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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73ec7c1c1a0c873d6941091801aeb1e789f10c8b | 448 | ex | Elixir | lib/sanbase_web/admin/auth/api_call_limit.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/auth/api_call_limit.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/auth/api_call_limit.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.ApiCallLimit do
use ExAdmin.Register
register_resource Sanbase.ApiCallLimit do
index do
column(:id)
column(:user, link: true)
column(:remote_ip)
column(:has_limits)
column(:api_calls_limit_plan)
column(:api_calls)
end
show acl do
a... | 17.92 | 44 | 0.638393 |
73ec7f7fc2812a8261f05ff7b849cec62fcc55c6 | 371 | exs | Elixir | priv/repo/migrations/20171201141936_add_gravatar_to_emails.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | priv/repo/migrations/20171201141936_add_gravatar_to_emails.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | priv/repo/migrations/20171201141936_add_gravatar_to_emails.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Repo.Migrations.AddGravatarToEmails do
use Ecto.Migration
def up() do
alter table(:emails) do
add(:gravatar, :boolean, default: false, null: false)
end
execute("""
UPDATE emails
SET gravatar = true
WHERE public
""")
end
def down() do
alter table(:em... | 16.863636 | 59 | 0.619946 |
73ecb01b47610d7971394ba77e699b58984a6b5f | 3,189 | exs | Elixir | projects/standup/test/standup_web/controllers/journal_controller_test.exs | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2020-02-11T06:00:11.000Z | 2020-02-11T06:00:11.000Z | projects/standup/test/standup_web/controllers/journal_controller_test.exs | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2017-09-23T19:41:29.000Z | 2017-09-25T05:12:38.000Z | projects/standup/test/standup_web/controllers/journal_controller_test.exs | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | null | null | null | defmodule StandupWeb.JournalControllerTest do
use StandupWeb.ConnCase
alias Standup.Content
@create_attrs %{completed_at: "2010-04-17T14:00:00Z", description: "some description", public: true, started_at: "2010-04-17T14:00:00Z", tags: [], title: "some title"}
@update_attrs %{completed_at: "2011-05-18T15:01:01... | 35.831461 | 186 | 0.678269 |
73ecb8ede9ed119ab9002b86880ecccd999ec2a8 | 424 | exs | Elixir | elixir_backend/migrations/20210607193148_create_rooms.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/migrations/20210607193148_create_rooms.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/migrations/20210607193148_create_rooms.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | defmodule ClubhouseData.Repo.Migrations.CreateRooms do
use Ecto.Migration
def change do
create table(:rooms) do
add :name, :string
add :numUsers, :integer
add :type, :string
add :isLive, :boolean
add :isScheduled, :boolean
add :scheduledStart, :string
add... | 22.315789 | 54 | 0.617925 |
73eccc7353403cf9e66104b70df63c5010e58a75 | 314 | exs | Elixir | test/type_test.exs | gregpardo/arc_ecto_paperclip | 4b1af69597ed0dadf7de1efa3b920ddae8cd3b53 | [
"Apache-2.0"
] | 1 | 2019-07-10T16:00:08.000Z | 2019-07-10T16:00:08.000Z | test/type_test.exs | gregpardo/arc_ecto_paperclip | 4b1af69597ed0dadf7de1efa3b920ddae8cd3b53 | [
"Apache-2.0"
] | null | null | null | test/type_test.exs | gregpardo/arc_ecto_paperclip | 4b1af69597ed0dadf7de1efa3b920ddae8cd3b53 | [
"Apache-2.0"
] | null | null | null | defmodule ArcTest.Ecto.Paperclip.Type do
use ExUnit.Case, async: false
test "dumps files" do
{:ok, value} = DummyDefinition.Type.dump("file.png")
assert value == "file.png"
end
test "loads file" do
{:ok, value} = DummyDefinition.Type.load("file.png")
assert value == "file.png"
end
end
| 22.428571 | 56 | 0.66242 |
73ed0f971109b935bd27f96b306b4ed264b816db | 6,060 | ex | Elixir | lib/seven/sync/api_command_router.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 7 | 2019-08-23T16:28:34.000Z | 2020-12-18T04:57:51.000Z | lib/seven/sync/api_command_router.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 9 | 2021-07-29T16:18:30.000Z | 2021-07-29T16:36:59.000Z | lib/seven/sync/api_command_router.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 6 | 2020-04-07T15:41:50.000Z | 2021-10-01T19:03:08.000Z | defmodule Seven.Sync.ApiCommandRouter do
@moduledoc """
Make a syncronized command.
Example:
```elixir
defmodule MyApp.Command.Ping do
alias __MODULE__
require Logger
use Seven.Sync.ApiCommandRouter,
post: %{
command: "Ping",
pre_command: &Ping.pre_comm... | 33.480663 | 164 | 0.614026 |
73ed11e40fdd9e9bfd2d19e0ee0a70b392119fb1 | 264 | exs | Elixir | spawning-a-new-process/03_procs.exs | herminiotorres/elixir-for-programmers | 6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e | [
"MIT"
] | 1 | 2020-08-10T21:07:43.000Z | 2020-08-10T21:07:43.000Z | spawning-a-new-process/03_procs.exs | herminiotorres/elixir-for-programmers | 6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e | [
"MIT"
] | null | null | null | spawning-a-new-process/03_procs.exs | herminiotorres/elixir-for-programmers | 6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e | [
"MIT"
] | null | null | null | defmodule Procs do
def greeter(count) do
receive do
{:add, number} ->
greeter(count + number)
{:reset} ->
greeter(0)
message ->
IO.puts("#{count}: Hello #{inspect(message)}")
greeter(count)
end
end
end
| 18.857143 | 54 | 0.530303 |
73ed204f77346c1cfd5197fcb42fa022ef3f2741 | 1,178 | exs | Elixir | test/commits_test.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | test/commits_test.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | test/commits_test.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | defmodule Tentacat.CommitsTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Commits
doctest Tentacat.Commits
@client Tentacat.Client.new(%{access_token: "yourtokencomeshere"})
# setup_all do
# HTTPoison.start
# end
test "list/3" do
use_cassette... | 28.731707 | 135 | 0.680815 |
73ed34fec53af836309bfb785f7858dbe7aa84f6 | 991 | exs | Elixir | config/config.exs | amohamedali/bbc_schedulor_phoenix | 0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa | [
"MIT"
] | null | null | null | config/config.exs | amohamedali/bbc_schedulor_phoenix | 0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa | [
"MIT"
] | null | null | null | config/config.exs | amohamedali/bbc_schedulor_phoenix | 0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :bbc_schedulor_phoenix, BbcSchedulorPhoenix.Endpoint... | 33.033333 | 86 | 0.766902 |
73ed44f670c3a0cba4bac4fe3a85abbbc82157d5 | 84 | ex | Elixir | lib/earmark_parser2/error.ex | RobertDober/EarmarkParser2 | a50053a20e7aa2d5e6041d778dd9f19bb043da1b | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser2/error.ex | RobertDober/EarmarkParser2 | a50053a20e7aa2d5e6041d778dd9f19bb043da1b | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser2/error.ex | RobertDober/EarmarkParser2 | a50053a20e7aa2d5e6041d778dd9f19bb043da1b | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkParser2.Error do
@moduledoc false
defexception [:message]
end
| 14 | 33 | 0.785714 |
73ed691e69dac7f200be3fc2ea11e11b502d502b | 1,558 | ex | Elixir | lib/utils.ex | kenspirit/elixir-merkle-patricia-tree | 31ffdc401a7df38bfe254466b3ff122c10229fa3 | [
"MIT"
] | 8 | 2018-04-25T18:15:53.000Z | 2021-02-09T20:42:46.000Z | lib/utils.ex | kenspirit/elixir-merkle-patricia-tree | 31ffdc401a7df38bfe254466b3ff122c10229fa3 | [
"MIT"
] | 9 | 2018-06-19T09:42:46.000Z | 2018-12-12T00:13:58.000Z | lib/utils.ex | kenspirit/elixir-merkle-patricia-tree | 31ffdc401a7df38bfe254466b3ff122c10229fa3 | [
"MIT"
] | 7 | 2018-07-30T22:05:19.000Z | 2022-03-06T09:22:51.000Z | defmodule MerklePatriciaTree.Utils do
@moduledoc """
Helper functions related to common operations
"""
@hash_bytes 32
@doc """
Returns a semi-random string of length `length` that
can be represented by alphanumeric characters.
Adopted from https://stackoverflow.com/a/32002566.
## Examples
i... | 23.969231 | 99 | 0.681643 |
73ed9fb98fcec0a8e21fb672c1cdc33b5910909c | 644 | ex | Elixir | lib/waffle/definition.ex | xMunch/waffle | 2c60c64bb7ccfe878d50ca809dbd6dfe15046558 | [
"Apache-2.0"
] | 562 | 2019-08-30T01:09:36.000Z | 2022-03-22T08:27:39.000Z | lib/waffle/definition.ex | ndarilek/waffle | 5880ae5ac146a33251bee6142be347e3df53b36d | [
"Apache-2.0"
] | 76 | 2019-08-26T20:24:14.000Z | 2022-03-05T07:38:43.000Z | lib/waffle/definition.ex | ndarilek/waffle | 5880ae5ac146a33251bee6142be347e3df53b36d | [
"Apache-2.0"
] | 46 | 2019-09-13T19:07:12.000Z | 2022-02-02T01:35:10.000Z | defmodule Waffle.Definition do
@moduledoc ~S"""
Defines uploader to manage files.
defmodule Avatar do
use Waffle.Definition
end
Consists of several components to manage different parts of file
managing process.
* `Waffle.Definition.Versioning`
* `Waffle.Definition.Storage`
*... | 18.4 | 66 | 0.677019 |
73edb9858f3f3cbaa87a9214614914bdd6660dff | 3,504 | ex | Elixir | lib/vekil/protocol/forom.ex | ianrumford/plymio_vekil | 070ab783dc8f7747002df61704285947eea583a2 | [
"MIT"
] | null | null | null | lib/vekil/protocol/forom.ex | ianrumford/plymio_vekil | 070ab783dc8f7747002df61704285947eea583a2 | [
"MIT"
] | null | null | null | lib/vekil/protocol/forom.ex | ianrumford/plymio_vekil | 070ab783dc8f7747002df61704285947eea583a2 | [
"MIT"
] | null | null | null | defprotocol Plymio.Vekil.Forom do
@moduledoc ~S"""
The `Plymio.Vekil.Forom` protocol is implemented by the values
returned by the *vekil* accessor functions (e.g. `Plymio.Vekil.proxy_fetch/2`).
See `Plymio.Vekil` for a general overview and explanation of the documentation terms.
## Implementation Modules' ... | 31.00885 | 103 | 0.661244 |
73edceb97545ea5c8fcb167cdd9494704702fd12 | 2,478 | exs | Elixir | map_update.exs | zoten/my-elixir-benches | 990ad33b6875948eed6d1f67a68842976d585086 | [
"MIT"
] | null | null | null | map_update.exs | zoten/my-elixir-benches | 990ad33b6875948eed6d1f67a68842976d585086 | [
"MIT"
] | null | null | null | map_update.exs | zoten/my-elixir-benches | 990ad33b6875948eed6d1f67a68842976d585086 | [
"MIT"
] | null | null | null | Mix.install([
{:benchee, "~> 1.0"},
{:benchee_html, "~> 1.0"},
{:benchee_json, "~> 1.0"}
])
# inspired by https://blog.brian-underwood.codes/elixir/2021/07/23/How-Far-Can-I-Push-a-GenServer?utm_medium=email&utm_source=elixir-radar#benchmark.exs
defmodule Tester do
def update!(map, key) do
try do
{:o... | 33.486486 | 152 | 0.653349 |
73edd4b91cd062f45ab5af92bd3c7df73fe00ca0 | 81 | ex | Elixir | web/views/page_view.ex | jasonlam604/jasonlam604-website | 95d3ecd9716b347ff4d9bbf5fc255d2ab5b008b7 | [
"MIT"
] | null | null | null | web/views/page_view.ex | jasonlam604/jasonlam604-website | 95d3ecd9716b347ff4d9bbf5fc255d2ab5b008b7 | [
"MIT"
] | null | null | null | web/views/page_view.ex | jasonlam604/jasonlam604-website | 95d3ecd9716b347ff4d9bbf5fc255d2ab5b008b7 | [
"MIT"
] | null | null | null | defmodule Jasonlam604Website.PageView do
use Jasonlam604Website.Web, :view
end
| 20.25 | 40 | 0.839506 |
73edd8a5a08ffde1d81b357a0abf59b85cf4048f | 2,554 | ex | Elixir | lib/hound/response_parser.ex | myfreeweb/hound | 9277401c86adc4f62c14a91b42b21c4460fb9aac | [
"MIT"
] | null | null | null | lib/hound/response_parser.ex | myfreeweb/hound | 9277401c86adc4f62c14a91b42b21c4460fb9aac | [
"MIT"
] | null | null | null | lib/hound/response_parser.ex | myfreeweb/hound | 9277401c86adc4f62c14a91b42b21c4460fb9aac | [
"MIT"
] | null | null | null | defmodule Hound.ResponseParser do
@moduledoc """
Defines a behaviour for parsing driver responses
and provides a default implementation of the behaviour
"""
require Logger
@callback handle_response(any, integer, String.t) :: any
@callback handle_error(map) :: {:error, any}
defmacro __using__(_) do
... | 29.022727 | 107 | 0.655051 |
73eddd6fcd4955617d33da6ed37a740f5266b0f8 | 657 | ex | Elixir | lib/ai/media_provider/media_provider.ex | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | lib/ai/media_provider/media_provider.ex | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | lib/ai/media_provider/media_provider.ex | mirai-audio/- | 365c0fba614543bf40ebaae55de47bc541bd473f | [
"MIT"
] | null | null | null | defmodule Ai.MediaProvider do
defstruct provider: "",
provider_uid: ""
@callback parse(String.t) :: {:ok, %__MODULE__{}} | {:error, String.t}
def parse!(url) do
implementation = detect_implementation(url)
case implementation.parse(url) do
{:error, error} -> {:error, "parse error: #{err... | 25.269231 | 72 | 0.628615 |
73eddf76b46d393e0101289a24011f97ba1d7acb | 8,693 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/api/media.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/api/media.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/api/media.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 39.513636 | 252 | 0.663407 |
73ee2ce5abc194700034da2242e6d768a9e25bd2 | 1,210 | ex | Elixir | lib/chroxy/application.ex | julienmarie/chroxy | a60525d4597ca4183954841df8973a6996cae1cc | [
"MIT"
] | null | null | null | lib/chroxy/application.ex | julienmarie/chroxy | a60525d4597ca4183954841df8973a6996cae1cc | [
"MIT"
] | null | null | null | lib/chroxy/application.ex | julienmarie/chroxy | a60525d4597ca4183954841df8973a6996cae1cc | [
"MIT"
] | null | null | null | defmodule Chroxy.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
require Logger
def start(_type, _args) do
# HACK to get exec running as root.
Application.put_env(:exec, :root, true)
Application.put_env... | 31.025641 | 73 | 0.706612 |
73ee7e7095e9c79d186572f0d7e82c9ff62a29fb | 346 | ex | Elixir | lib/ex_vertx/application.ex | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | 16 | 2019-03-18T12:46:38.000Z | 2020-10-14T09:30:52.000Z | lib/ex_vertx/application.ex | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | null | null | null | lib/ex_vertx/application.ex | PharosProduction/ExVertx | eb52d9ded96d5e344780304c4bb93f6302386f49 | [
"Apache-2.0"
] | 1 | 2019-04-30T21:26:28.000Z | 2019-04-30T21:26:28.000Z | defmodule ExVertx.Application do
@moduledoc false
use Application
# Callbacks
@impl true
def start(_type, _args) do
children = [
{DynamicSupervisor, strategy: :one_for_one, name: ExVertx.BusSupervisor}
]
opts = [strategy: :one_for_one, name: ExVertx.Supervisor]
Supervisor.start_link(... | 19.222222 | 78 | 0.705202 |
73ee8b6e081277bb1e2b8d8ebb427e64170f4e63 | 3,306 | ex | Elixir | apps/ui/lib/ui/shift_register.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | apps/ui/lib/ui/shift_register.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | apps/ui/lib/ui/shift_register.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | defmodule ShiftRegister do
@moduledoc """
Controls a 74hc595 shift register
Connect GPIO pins on your PI to pins 11, 12, 14 of the 74hc595.
For an 74hc595n, if you put the package pins down, the pin layout looks like this (`U` is the
notch on the end of the package.)
```
output1 -> 1 U 16 <- 5V power i... | 32.097087 | 97 | 0.669389 |
73eeca6e6d98066c46cee17db4893f1735040aaa | 1,931 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_entity_id.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_entity_id.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_entity_id.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.862745 | 165 | 0.760746 |
73eee085e9b29934b49977d90ca440ebb819293e | 2,016 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_fields_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_fields_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_fields_list_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... | 38.037736 | 162 | 0.737599 |
73eee5d1619bf0ab04a0a4554662230e726cb069 | 63 | ex | Elixir | web/views/layout_view.ex | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | web/views/layout_view.ex | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | web/views/layout_view.ex | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | defmodule MyChatEx.LayoutView do
use MyChatEx.Web, :view
end
| 15.75 | 32 | 0.793651 |
73eef80fc3633b5da0974956b737c8d8ec6f8914 | 1,600 | ex | Elixir | test/support/data_case.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | test/support/data_case.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | 25 | 2021-03-23T07:27:21.000Z | 2021-10-31T15:09:52.000Z | test/support/data_case.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | defmodule Gscraper.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to ... | 26.666667 | 77 | 0.689375 |
73eefb7e48e86f35af7dbf3edda6dd7f5dcd1d36 | 2,583 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__replica_config.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__replica_config.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__replica_config.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.359375 | 197 | 0.743709 |
73eefbec17350cd96c4a27ce321b4c5d1adf55c2 | 2,412 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1/model/vpn_gateway_info.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/model/vpn_gateway_info.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/model/vpn_gateway_info.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... | 38.903226 | 231 | 0.692786 |
73ef3cdf3a233237ae75158a7bdaa86de0f713e1 | 149 | exs | Elixir | priv/repo/migrations/20180706005343_remove_subscribed_channels.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | priv/repo/migrations/20180706005343_remove_subscribed_channels.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | priv/repo/migrations/20180706005343_remove_subscribed_channels.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | defmodule Grapevine.Repo.Migrations.RemoveSubscribedChannels do
use Ecto.Migration
def change do
drop table(:subscribed_channels)
end
end
| 18.625 | 63 | 0.798658 |
73ef6c4fa1447bd9f8d47837bcab0779601ae080 | 1,152 | ex | Elixir | lib/entry.ex | narck/gblex | e1938621968d0586a13c36cbba264f757057ffe1 | [
"MIT"
] | null | null | null | lib/entry.ex | narck/gblex | e1938621968d0586a13c36cbba264f757057ffe1 | [
"MIT"
] | 2 | 2017-04-24T11:47:03.000Z | 2017-05-14T12:48:35.000Z | lib/entry.ex | narck/gblex | e1938621968d0586a13c36cbba264f757057ffe1 | [
"MIT"
] | null | null | null | defmodule Gblex.Entry do
@enforce_keys [:date, :slug, :markdown, :title]
defstruct [:date,
:slug,
:title,
:markdown,
:html]
@doc """
Reads a `filename` into a tuple containing an `%Gblex.Entry{}` struct.
Files come directly from `File.ls!` a... | 20.945455 | 74 | 0.522569 |
73ef71e2a5c63f7320c90a77aee42af61c4a7402 | 2,274 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_create_entities_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_create_entities_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_create_entities_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 36.677419 | 348 | 0.755937 |
73ef9f0842804d71994c124d729ffb3a88a061b0 | 2,904 | exs | Elixir | test/acceptances/mapping_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | test/acceptances/mapping_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | test/acceptances/mapping_test.exs | williamtran29/tirex_aws | 8affc13d32978db47e083bec7ae11c5546f89395 | [
"Apache-2.0"
] | null | null | null | defmodule Acceptances.MappingTest do
use ExUnit.Case
use Tirexs.Mapping
alias Tirexs.{HTTP, Resources}
setup_all do
HTTP.delete("bear_test") && :ok
end
test "mappings definition (basic)" do
index = [index: "bear_test", type: "bear_type"]
mappings do
indexes "mn_opts_", [type: "object"]... | 35.414634 | 431 | 0.611915 |
73efa32b931848fa57e872e649af7434d92b7d4b | 245 | ex | Elixir | test/support/cms/V3/Database/mock_tag_table.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | test/support/cms/V3/Database/mock_tag_table.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | test/support/cms/V3/Database/mock_tag_table.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | defmodule Noizu.Support.V3.CMS.Database.Article.Tag.MockTable do
@moduledoc false
require Noizu.Testing.Mnesia.TableMocker
Noizu.Testing.Mnesia.TableMocker.customize() do
@table Noizu.V3.CMS.Database.Article.Tag.Table
end
end
| 30.625 | 65 | 0.771429 |
73efa6df20057d1a51e12b97dae758754235fa81 | 2,026 | ex | Elixir | clients/secret_manager/lib/google_api/secret_manager/v1/model/list_secrets_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1/model/list_secrets_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1/model/list_secrets_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.836364 | 156 | 0.727542 |
73efae52b0215e9a0f851759679b172828a6a8a6 | 130,249 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 50.484109 | 1,300 | 0.6384 |
73efb1d68f33ee34be4ee10182ed6cb54722fdf1 | 200 | exs | Elixir | test/oli_web/controllers/static_page_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli_web/controllers/static_page_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli_web/controllers/static_page_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.StaticPageControllerTest do
use OliWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to OLI Torus!"
end
end
| 22.222222 | 62 | 0.675 |
73efb87746ec59e1b04fd0e94f3f8906e9fbbe98 | 563 | ex | Elixir | lib/console_web/views/config_profile_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console_web/views/config_profile_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console_web/views/config_profile_view.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule ConsoleWeb.ConfigProfileView do
use ConsoleWeb, :view
alias ConsoleWeb.ConfigProfileView
def render("show.json", %{config_profile: config_profile}) do
render_one(config_profile, ConfigProfileView, "config_profile.json")
end
def render("config_profile.json", %{config_profile: config_profile}) d... | 29.631579 | 73 | 0.751332 |
73efd0a7ac389684bcedbcab74ce83b579c944b4 | 207 | exs | Elixir | src/priv/repo/migrations/20211004013501_create_pokemons.exs | ivanrosolen/how-to-elixir-phoenix | 0ee910a1662e5c6cc1a6c781be6eeef99839badb | [
"MIT"
] | null | null | null | src/priv/repo/migrations/20211004013501_create_pokemons.exs | ivanrosolen/how-to-elixir-phoenix | 0ee910a1662e5c6cc1a6c781be6eeef99839badb | [
"MIT"
] | null | null | null | src/priv/repo/migrations/20211004013501_create_pokemons.exs | ivanrosolen/how-to-elixir-phoenix | 0ee910a1662e5c6cc1a6c781be6eeef99839badb | [
"MIT"
] | null | null | null | defmodule Ivan.Repo.Migrations.CreatePokemons do
use Ecto.Migration
def change do
create table(:pokemons) do
add :name, :string
add :type, :string
timestamps()
end
end
end
| 14.785714 | 48 | 0.657005 |
73f01a7765dd6b9d5ced4a15f5fa1d4c2db613da | 731 | ex | Elixir | backend/apps/login_token_cache/lib/login_token_cache.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | backend/apps/login_token_cache/lib/login_token_cache.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | 50 | 2018-07-29T09:17:35.000Z | 2019-02-26T05:23:34.000Z | backend/apps/login_token_cache/lib/login_token_cache.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | defmodule LoginTokenCache do
@moduledoc false
def get(key) do
value = ConCache.get(:login_token_cache, key)
ConCache.delete(:login_token_cache, key)
responce(value)
end
def generate(value) do
generate(value, 1)
end
defp generate(value, seq_number) do
key = random_string(5 + div(seq_... | 20.885714 | 66 | 0.666211 |
73f0519b00d216e9f039bd6b34731dd9c981b451 | 9,848 | ex | Elixir | gherkin/elixir/lib/gherkin/pickle_compiler/pickle_compiler.ex | lamkr/cucumber-common | 914bc5cd72198eb4dd93d7228f2e167a16e23ac3 | [
"MIT"
] | 3,974 | 2015-01-01T10:21:24.000Z | 2021-05-07T09:51:49.000Z | gherkin/elixir/lib/gherkin/pickle_compiler/pickle_compiler.ex | lamkr/cucumber-common | 914bc5cd72198eb4dd93d7228f2e167a16e23ac3 | [
"MIT"
] | 1,298 | 2015-01-01T08:19:06.000Z | 2021-05-07T17:12:31.000Z | gherkin/elixir/lib/gherkin/pickle_compiler/pickle_compiler.ex | lamkr/cucumber-common | 914bc5cd72198eb4dd93d7228f2e167a16e23ac3 | [
"MIT"
] | 923 | 2015-01-02T16:14:05.000Z | 2021-05-05T05:59:48.000Z | defmodule CucumberGherkin.PickleCompiler do
@moduledoc false
defstruct id_gen: nil, pickles: [], language: nil, uri: nil
alias CucumberMessages.GherkinDocument.Feature, as: FeatureMessage
alias CucumberMessages.GherkinDocument.Feature.Scenario, as: ScenarioMessage
alias CucumberMessages.GherkinDocument.Featu... | 35.681159 | 98 | 0.677498 |
73f06ca194c9165431aaf7dd44e3c7b92b1eb342 | 2,269 | exs | Elixir | test/changelog_web/controllers/news_item_comment_controller_test.exs | axelson/changelog.com | bad9f461aabbde0faa938f7b2ae643ed47d1df9b | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | test/changelog_web/controllers/news_item_comment_controller_test.exs | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | test/changelog_web/controllers/news_item_comment_controller_test.exs | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.NewsItemCommentControllerTest do
use ChangelogWeb.ConnCase
import Mock
alias Changelog.{NewsItemComment, Notifier}
@tag :as_user
test "previewing a comment", %{conn: conn} do
conn = post(conn, Routes.news_item_comment_path(conn, :preview), md: "## Ohai!")
assert html_response... | 30.662162 | 96 | 0.672984 |
73f072ceec333510395cb5a8ab0003ce92c81537 | 1,137 | exs | Elixir | dev/hello_world/config/config.exs | toff63/aws_setup_template | 4b9e4780cd6fd5810c9d31376ff8febd35ea84e1 | [
"MIT"
] | 3 | 2019-08-10T11:25:40.000Z | 2019-08-11T12:15:27.000Z | dev/hello_world/config/config.exs | toff63/aws_setup_template | 4b9e4780cd6fd5810c9d31376ff8febd35ea84e1 | [
"MIT"
] | null | null | null | dev/hello_world/config/config.exs | toff63/aws_setup_template | 4b9e4780cd6fd5810c9d31376ff8febd35ea84e1 | [
"MIT"
] | 1 | 2019-08-09T21:03:02.000Z | 2019-08-09T21:03:02.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... | 36.677419 | 73 | 0.752858 |
73f089302bd69a73fc48d141e5f7bf1d66e023b4 | 121 | ex | Elixir | lib/bgsite_official/repo.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 1 | 2021-08-05T12:44:37.000Z | 2021-08-05T12:44:37.000Z | lib/bgsite_official/repo.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 16 | 2021-02-20T19:22:45.000Z | 2021-06-14T13:59:01.000Z | lib/bgsite_official/repo.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 3 | 2021-05-17T17:54:43.000Z | 2021-11-03T15:30:30.000Z | defmodule BgsiteOfficial.Repo do
use Ecto.Repo,
otp_app: :bgsite_official,
adapter: Ecto.Adapters.Postgres
end
| 20.166667 | 35 | 0.760331 |
73f09b00bd1596866b8aa6bf2854c9e91bf8f288 | 133 | exs | Elixir | test/beiin_test.exs | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | test/beiin_test.exs | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | test/beiin_test.exs | cgmcintyr/beiin | db447610b938e734baae50a5263a7a1828e871b7 | [
"MIT"
] | null | null | null | defmodule Beiin.Test do
use ExUnit.Case
doctest Beiin
test "greets the world" do
assert Beiin.hello() == :world
end
end
| 14.777778 | 34 | 0.691729 |
73f0b3422482dd0e5191f62a1d5e8f68b8151e83 | 6,678 | ex | Elixir | lib/oli_web/live/users/author_detail_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/live/users/author_detail_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/live/users/author_detail_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.Users.AuthorsDetailView do
use Surface.LiveView, layout: {OliWeb.LayoutView, "live.html"}
use OliWeb.Common.Modal
import OliWeb.Common.Utils
alias Oli.Accounts
alias Oli.Accounts.{Author, SystemRole}
alias OliWeb.Accounts.Modals.{
LockAccountModal,
UnlockAccountModal,
DeleteA... | 24.372263 | 108 | 0.606469 |
73f0c7c53846bf1c224f8ddc4847586a33c2c3d4 | 1,608 | exs | Elixir | mix.exs | discordapp/sorted_set_nif | f2212fb7f9c7407ecb174aab0c0cc4f6b96616ed | [
"MIT"
] | 901 | 2019-05-17T16:15:52.000Z | 2020-03-23T03:25:32.000Z | mix.exs | sthagen/sorted_set_nif | f2212fb7f9c7407ecb174aab0c0cc4f6b96616ed | [
"MIT"
] | 10 | 2019-05-18T05:02:31.000Z | 2020-01-30T01:44:03.000Z | mix.exs | sthagen/sorted_set_nif | f2212fb7f9c7407ecb174aab0c0cc4f6b96616ed | [
"MIT"
] | 38 | 2019-05-17T17:59:59.000Z | 2020-03-08T09:32:32.000Z | defmodule SortedSet.MixProject do
use Mix.Project
def project do
[
app: :sorted_set_nif,
name: "SortedSet",
version: "1.2.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(),
deps: deps(),
docs: docs(),
elixirc_paths: elixi... | 24 | 173 | 0.560323 |
73f0cbc2601487a45f2b2d6ad681013aae2a70bd | 474 | exs | Elixir | config/test.exs | kmikko/phoenix-starter | 679af9ddea22e207c037c7de94a5e7fc775389d3 | [
"MIT"
] | null | null | null | config/test.exs | kmikko/phoenix-starter | 679af9ddea22e207c037c7de94a5e7fc775389d3 | [
"MIT"
] | null | null | null | config/test.exs | kmikko/phoenix-starter | 679af9ddea22e207c037c7de94a5e7fc775389d3 | [
"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 :app, AppWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :app, App.Repo,
adapter: E... | 23.7 | 56 | 0.723629 |
73f0e3dc7210837678af0cb0e021b9bf3f97b9f9 | 7,423 | ex | Elixir | deps/plug/lib/plug/test.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/plug/lib/plug/test.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/plug/lib/plug/test.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Plug.Test do
@moduledoc """
Conveniences for testing plugs.
This module can be used in your test cases, like this:
use ExUnit.Case, async: true
use Plug.Test
Using this module will:
* import all the functions from this module
* import all the functions from the `Plu... | 31.99569 | 97 | 0.64381 |
73f12124c59e165d37f39378a45e4e69bc54d2f5 | 3,813 | ex | Elixir | lib/koans/12_pattern_matching.ex | loicginoux/elixir-koans | 11a15fd55771fed43823db9429d6fa8ba60fa73f | [
"MIT"
] | null | null | null | lib/koans/12_pattern_matching.ex | loicginoux/elixir-koans | 11a15fd55771fed43823db9429d6fa8ba60fa73f | [
"MIT"
] | null | null | null | lib/koans/12_pattern_matching.ex | loicginoux/elixir-koans | 11a15fd55771fed43823db9429d6fa8ba60fa73f | [
"MIT"
] | null | null | null | defmodule PatternMatching do
use Koans
@intro "PatternMatching"
koan "One matches one" do
assert match?(1, 1)
end
koan "Patterns can be used to pull things apart" do
[head | tail] = [1, 2, 3, 4]
assert head == 1
assert tail == [2, 3, 4]
end
koan "And then put them back together" do
... | 23.537037 | 101 | 0.593234 |
73f1387fdc039c08042ccc80fb33fe4ba6c828ee | 336 | exs | Elixir | app/priv/repo/migrations/20200328114129_create_sponsors.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/priv/repo/migrations/20200328114129_create_sponsors.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/priv/repo/migrations/20200328114129_create_sponsors.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Repo.Migrations.CreateSponsors do
use Ecto.Migration
def change do
create table(:sponsors, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :description, :string
add :image, :string
add :company_info, :text
timestamps()
... | 21 | 50 | 0.660714 |
73f14dac344a964e4ac226e63088bd735aa6f3e4 | 1,117 | exs | Elixir | config/config.exs | CodeSteak/Bf2nasm | f3b9090133b66c4902a2f6dcee048d911e4a872b | [
"MIT"
] | 8 | 2017-05-26T15:47:52.000Z | 2022-01-04T23:13:57.000Z | config/config.exs | CodeSteak/Bf2nasm | f3b9090133b66c4902a2f6dcee048d911e4a872b | [
"MIT"
] | null | null | null | config/config.exs | CodeSteak/Bf2nasm | f3b9090133b66c4902a2f6dcee048d911e4a872b | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.032258 | 73 | 0.751119 |
73f15b76249fb8a4504b74ff5ae26b67855420c7 | 1,328 | ex | Elixir | farmbot_ext/lib/farmbot_ext/api/sync_group.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_ext/lib/farmbot_ext/api/sync_group.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | farmbot_ext/lib/farmbot_ext/api/sync_group.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | defmodule FarmbotExt.API.SyncGroup do
@moduledoc "Handles dependency ordering."
alias FarmbotCore.Asset.{
Device,
FarmEvent,
FarmwareEnv,
FirstPartyFarmware,
FarmwareInstallation,
FbosConfig,
FirmwareConfig,
Peripheral,
PinBinding,
Point,
PointGroup,
# PublicKey,
... | 18.704225 | 83 | 0.615211 |
73f1678bb5b60582524a774d01336826fa404498 | 290 | ex | Elixir | test/support/name_struct.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 148 | 2017-04-10T06:22:02.000Z | 2022-03-31T11:19:14.000Z | test/support/name_struct.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 81 | 2017-04-09T15:17:03.000Z | 2022-03-01T16:25:32.000Z | test/support/name_struct.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 62 | 2018-05-31T06:49:55.000Z | 2022-01-24T09:15:04.000Z | defmodule NameStruct do
@moduledoc """
Needed for tests on structs that implement the Jason.Encoder protocol.
Defining this struct in the test module wouldn't work, since the .exs files
are not within the compilation folders.
"""
@derive Jason.Encoder
defstruct [:name]
end
| 24.166667 | 77 | 0.744828 |
73f185cbca6e9eae272c9e2449bd780663aa08ff | 2,832 | exs | Elixir | test/acceptance/ast/links_images/simple_pure_links_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/simple_pure_links_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/simple_pure_links_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Acceptance.Ast.LinksImages.SimplePureLinksTest do
use Support.AcceptanceTestCase
import Support.Helpers, only: [as_ast: 1, as_ast: 2, parse_html: 1]
@moduletag :ast
describe "simple pure links not yet enabled" do
test "issue deprecation warning surpressed" do
markdown = "https://github.co... | 36.307692 | 209 | 0.613701 |
73f1aa47612ce772f54514e55e88f0c98d6b290a | 89 | exs | Elixir | test/tempo_test.exs | LostKobrakai/tempo | 09882266b3ed319daad715c8d3e475a28c475e60 | [
"Apache-2.0"
] | null | null | null | test/tempo_test.exs | LostKobrakai/tempo | 09882266b3ed319daad715c8d3e475a28c475e60 | [
"Apache-2.0"
] | null | null | null | test/tempo_test.exs | LostKobrakai/tempo | 09882266b3ed319daad715c8d3e475a28c475e60 | [
"Apache-2.0"
] | null | null | null | defmodule TempoTest do
use ExUnit.Case
doctest Tempo
test "Parsing" do
end
end
| 9.888889 | 22 | 0.719101 |
73f1fd1e51f0f0d7e8530e7f78aa564abec6d159 | 2,675 | ex | Elixir | lib/ratatouille/renderer/element/panel.ex | CyberFlameGO/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 504 | 2019-01-13T21:53:21.000Z | 2022-03-31T20:58:21.000Z | lib/ratatouille/renderer/element/panel.ex | iboard/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 28 | 2019-01-26T21:00:23.000Z | 2021-12-28T19:06:15.000Z | lib/ratatouille/renderer/element/panel.ex | iboard/ratatouille | cc7b6a37e0b1757cd89cc5084343814a79dd86dc | [
"MIT"
] | 21 | 2019-02-21T09:08:27.000Z | 2021-12-20T15:51:10.000Z | defmodule Ratatouille.Renderer.Element.Panel do
@moduledoc false
@behaviour Ratatouille.Renderer
alias ExTermbox.Position
alias Ratatouille.Renderer.{Border, Box, Canvas, Element, Text}
@default_padding 1
@border_width 1
@margin_y 1
@title_offset_x 2
@impl true
def render(
%Canvas{render_... | 26.22549 | 78 | 0.649346 |
73f20b9f2518510a4ee5cfb61b034fe41330034c | 1,435 | ex | Elixir | apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/data_pipeline_supervisor.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/data_pipeline_supervisor.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/data_pipeline_supervisor.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 31.195652 | 87 | 0.749826 |
73f23a790b9efcbcbeb6962393ae5c7170a031f1 | 2,291 | ex | Elixir | lib/boss.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | 1 | 2018-10-11T06:58:02.000Z | 2018-10-11T06:58:02.000Z | lib/boss.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | null | null | null | lib/boss.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | null | null | null | defmodule Boss do
@moduledoc """
Main interface against beam_olympics server
"""
@typedoc """
A function spec
"""
@type spec :: %{
input: [String.t],
output: String.t
}
@typedoc """
A Task, as defined by beam_olympics
"""
@type task :: %{
... | 20.63964 | 75 | 0.520733 |
73f2480d586abb4c40bf46a4d76c4ed5a377626a | 2,272 | exs | Elixir | test/features/visitor_searches_posts_test.exs | RyanWillDev/tilex | 1fef06ca37434c9448c97e5a7387af2e7039b46c | [
"MIT"
] | null | null | null | test/features/visitor_searches_posts_test.exs | RyanWillDev/tilex | 1fef06ca37434c9448c97e5a7387af2e7039b46c | [
"MIT"
] | null | null | null | test/features/visitor_searches_posts_test.exs | RyanWillDev/tilex | 1fef06ca37434c9448c97e5a7387af2e7039b46c | [
"MIT"
] | null | null | null | defmodule VisiorSearchesPosts do
use Tilex.IntegrationCase, async: true
def fill_in_search(session, query) do
session
|> visit("/")
|> find(Query.css(".site_nav__search .site_nav__link"))
|> Element.click()
session
|> fill_in(Query.text_field("q"), with: query)
|> click(Query.button("S... | 32.457143 | 77 | 0.696743 |
73f24d49aebb8683028e3193ffc49d4a79601e9e | 1,197 | ex | Elixir | lib/learnrls/endpoint.ex | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | 15 | 2017-01-06T05:52:23.000Z | 2022-02-14T10:05:42.000Z | lib/learnrls/endpoint.ex | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | 1 | 2019-09-09T06:23:35.000Z | 2020-10-25T21:36:51.000Z | lib/learnrls/endpoint.ex | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | null | null | null | defmodule Learnrls.Endpoint do
use Phoenix.Endpoint, otp_app: :learnrls
socket "/socket", Learnrls.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static... | 27.837209 | 69 | 0.715957 |
73f24f564f0ba759981910d69ebfa2dd0dced2fc | 53 | ex | Elixir | web/views/layout_view.ex | joaoevangelista/iss-phoenix | ad30fa88ebe1172a1e14f22896edf73e97490ce5 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | joaoevangelista/iss-phoenix | ad30fa88ebe1172a1e14f22896edf73e97490ce5 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | joaoevangelista/iss-phoenix | ad30fa88ebe1172a1e14f22896edf73e97490ce5 | [
"MIT"
] | null | null | null | defmodule ISS.LayoutView do
use ISS.Web, :view
end
| 13.25 | 27 | 0.754717 |
73f26944795f0071244a7781a1cb2d1e2be65734 | 1,214 | ex | Elixir | lib/ex_micro_blog_web/live/user_live_index.ex | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 3 | 2020-04-21T22:48:23.000Z | 2020-05-12T19:58:31.000Z | lib/ex_micro_blog_web/live/user_live_index.ex | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 1 | 2021-05-11T11:22:49.000Z | 2021-05-11T11:22:49.000Z | lib/ex_micro_blog_web/live/user_live_index.ex | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | null | null | null | defmodule ExMicroBlogWeb.UserLive.Index do
use Phoenix.LiveView
alias ExMicroBlog.Accounts
def render(assigns) do
Phoenix.View.render(ExMicroBlogWeb.UserView, "index.html", assigns)
end
def mount(_, %{"current_user_id" => current_user_id}, socket)
when is_nil(current_user_id) do
setup(nil, so... | 25.829787 | 79 | 0.707578 |
73f26b777c7fc918c2396eb24d4dcea2f035755d | 458 | exs | Elixir | test/mafia_interface_web/views/error_view_test.exs | menxs/mafia_interface | 311f709e512dca4e26b0c0faccf5dfe07df20673 | [
"MIT"
] | null | null | null | test/mafia_interface_web/views/error_view_test.exs | menxs/mafia_interface | 311f709e512dca4e26b0c0faccf5dfe07df20673 | [
"MIT"
] | null | null | null | test/mafia_interface_web/views/error_view_test.exs | menxs/mafia_interface | 311f709e512dca4e26b0c0faccf5dfe07df20673 | [
"MIT"
] | 1 | 2022-03-28T06:09:12.000Z | 2022-03-28T06:09:12.000Z | defmodule MafiaInterfaceWeb.ErrorViewTest do
use MafiaInterfaceWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(MafiaInterfaceWeb.ErrorView, "404.html", []) == "Not Found"
end
test "render... | 28.625 | 87 | 0.729258 |
73f27cc0b420ff9ccaf3562a475f368416f6b830 | 991 | ex | Elixir | exercism/file-sniffer/file_sniffer.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/file-sniffer/file_sniffer.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/file-sniffer/file_sniffer.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule FileSniffer do
def type_from_extension("exe"), do: "application/octet-stream"
def type_from_extension("bmp"), do: "image/bmp"
def type_from_extension("png"), do: "image/png"
def type_from_extension("jpg"), do: "image/jpg"
def type_from_extension("gif"), do: "image/gif"
def type_from_binary(<<0x7F... | 28.314286 | 88 | 0.67003 |
73f2880f255221c2e9e6299b1e6bc1178d907016 | 2,321 | ex | Elixir | lib/ex_unit_embedded.ex | hauleth/ex_unit_embedded | 2969a813487d5e5582d4a2b2b78654451ab26aae | [
"Apache-2.0"
] | 2 | 2020-03-03T10:41:33.000Z | 2020-03-03T14:47:50.000Z | lib/ex_unit_embedded.ex | hauleth/ex_unit_embedded | 2969a813487d5e5582d4a2b2b78654451ab26aae | [
"Apache-2.0"
] | null | null | null | lib/ex_unit_embedded.ex | hauleth/ex_unit_embedded | 2969a813487d5e5582d4a2b2b78654451ab26aae | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Łukasz Niemier
#
# 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 ... | 26.988372 | 84 | 0.619561 |
73f28eb888c384b1e0c70239b5c69664affd0c93 | 560 | exs | Elixir | test/mssqlex/login_test.exs | rzane/mssqlex | f23bd7d5ac07ce220cab9a92517596b4de493188 | [
"Apache-2.0"
] | null | null | null | test/mssqlex/login_test.exs | rzane/mssqlex | f23bd7d5ac07ce220cab9a92517596b4de493188 | [
"Apache-2.0"
] | null | null | null | test/mssqlex/login_test.exs | rzane/mssqlex | f23bd7d5ac07ce220cab9a92517596b4de493188 | [
"Apache-2.0"
] | null | null | null | defmodule Mssqlex.LoginTest do
use ExUnit.Case, async: false
alias Mssqlex.Result
test "Given valid details, connects to database" do
assert {:ok, pid} = Mssqlex.start_link([])
assert {:ok, _, %Result{num_rows: 1, rows: [["test"]]}} =
Mssqlex.query(pid, "SELECT 'test'", [])
end
test "Given in... | 28 | 70 | 0.65 |
73f29e35ae57b9d8188d56db91aabd1a19da9c6a | 2,409 | ex | Elixir | lib/mpeg_audio_frame_parser/impl.ex | rfwatson/elixir-mp3-frame-parser | 7e5661e2f5c39bed7ba587ba746ac1dd233b8717 | [
"Unlicense"
] | 1 | 2018-07-19T19:00:41.000Z | 2018-07-19T19:00:41.000Z | lib/mpeg_audio_frame_parser/impl.ex | rfwatson/mpeg-audio-frame-parser | 7e5661e2f5c39bed7ba587ba746ac1dd233b8717 | [
"Unlicense"
] | null | null | null | lib/mpeg_audio_frame_parser/impl.ex | rfwatson/mpeg-audio-frame-parser | 7e5661e2f5c39bed7ba587ba746ac1dd233b8717 | [
"Unlicense"
] | null | null | null | defmodule MPEGAudioFrameParser.Impl do
alias MPEGAudioFrameParser.Frame
require Logger
@sync_word 0b11111111111
@initial_state %{leftover: <<>>, current_frame: nil, frames: []}
def init() do
{:ok, @initial_state}
end
def add_packet(state, packet) do
process_bytes(state, packet)
end
def pop... | 31.285714 | 110 | 0.681196 |
73f2b136468e0e118c28b8ec37ff9a88dd12520f | 145,977 | ex | Elixir | lib/codes/codes_t50.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t50.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t50.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_T50 do
alias IcdCode.ICDCode
def _T500X1A do
%ICDCode{full_code: "T500X1A",
category_code: "T50",
short_code: "0X1A",
full_name: "Poisoning by mineralocorticoids and their antagonists, accidental (unintentional), initial encounter",
short_na... | 49.940814 | 158 | 0.688067 |
73f3063f26513059d26733ee98fe0864555f3e71 | 1,212 | exs | Elixir | Intermediate/behaviors_and_callbacks.exs | joelbandi/elixir-start-here | 65722377d455a4b4678658eee56713681c6f16ce | [
"MIT"
] | null | null | null | Intermediate/behaviors_and_callbacks.exs | joelbandi/elixir-start-here | 65722377d455a4b4678658eee56713681c6f16ce | [
"MIT"
] | null | null | null | Intermediate/behaviors_and_callbacks.exs | joelbandi/elixir-start-here | 65722377d455a4b4678658eee56713681c6f16ce | [
"MIT"
] | null | null | null | # behaviours and callbacks are a way to standardize and enforce a consistent public user facing API if required.
# in Java this is achieved using interfaces.
# Many libraries like plug use behaviours to enforce a common api people can use
# Lets create a behaviour module
defmodule Parser do
@callback parse(String... | 26.347826 | 112 | 0.723597 |
73f331fe8a4f46772e0a9a6c3a29d9c574e6b5ff | 1,548 | exs | Elixir | mix.exs | GmateApp/server | 48e73e6331c2f880754c22ab08b8476cb4a1a528 | [
"Apache-2.0"
] | null | null | null | mix.exs | GmateApp/server | 48e73e6331c2f880754c22ab08b8476cb4a1a528 | [
"Apache-2.0"
] | null | null | null | mix.exs | GmateApp/server | 48e73e6331c2f880754c22ab08b8476cb4a1a528 | [
"Apache-2.0"
] | null | null | null | defmodule Gm8.Mixfile do
use Mix.Project
def project do
[
app: :gm8,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps()
... | 25.377049 | 79 | 0.576227 |
73f34629038c86ae85f39f1e9e9a4461e60556f2 | 4,303 | ex | Elixir | deps/ecto_sql/lib/mix/tasks/ecto.rollback.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/ecto_sql/lib/mix/tasks/ecto.rollback.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/ecto_sql/lib/mix/tasks/ecto.rollback.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Ecto.Rollback do
use Mix.Task
import Mix.Ecto
import Mix.EctoSQL
@shortdoc "Rolls back the repository migrations"
@aliases [
r: :repo,
n: :step
]
@switches [
all: :boolean,
step: :integer,
to: :integer,
quiet: :boolean,
prefix: :string,
pool_size: :in... | 31.639706 | 100 | 0.662561 |
73f383737cace887cc5a59654ceaef1ef630d70f | 8,340 | ex | Elixir | lib/kinesis_client/stream/coordinator.ex | knocklabs/kcl_ex | d032744cb037cea351af1fad826923253bced2b4 | [
"Apache-2.0"
] | null | null | null | lib/kinesis_client/stream/coordinator.ex | knocklabs/kcl_ex | d032744cb037cea351af1fad826923253bced2b4 | [
"Apache-2.0"
] | null | null | null | lib/kinesis_client/stream/coordinator.ex | knocklabs/kcl_ex | d032744cb037cea351af1fad826923253bced2b4 | [
"Apache-2.0"
] | null | null | null | defmodule KinesisClient.Stream.Coordinator do
@moduledoc """
This module will describe a given stream and enumerate all the shards. It will then handle
starting and stopping `KinesisClient.Stream.Shard` processes as necessary to ensure the
stream is processed completely and in the correct order.
"""
use Gen... | 28.758621 | 101 | 0.616906 |
73f39e4bd634130af6b3bfe68fcccc071ac6a8d3 | 391 | exs | Elixir | test/regressions/i050_lists_with_code_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/regressions/i050_lists_with_code_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/regressions/i050_lists_with_code_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Regressions.I050ListsWithCodeTest do
use ExUnit.Case, async: true
@i50_inline_code_in_list_item """
+ ```escape```
"""
test "https://github.com/pragdave/earmark/issues/50" do
result = Earmark.as_html! @i50_inline_code_in_list_item
assert result == ~s[<ul>\n<li><code class="inline">escape</co... | 27.928571 | 85 | 0.703325 |
73f39f77799e0dc68833e64b224f1588fe914f10 | 1,965 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/placements_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/placements_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/placements_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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... | 36.388889 | 158 | 0.743003 |
73f3da4519303d98ac480630783be0000c88dc8d | 2,000 | ex | Elixir | lib/Base/QueuingSystems/queue.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | 2 | 2018-10-19T06:14:08.000Z | 2018-11-23T00:56:09.000Z | lib/Base/QueuingSystems/queue.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | lib/Base/QueuingSystems/queue.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | defmodule Servus.PlayerQueue do
use GenServer
require Logger
alias Servus.PidStore
alias Servus.Serverutils
@doc """
Start a new player queue for a backend of type `logic`
allowing `players_per_game` players.
"""
def start_link(players_per_game, logic, queueName) do
{:ok, pid} =
GenServer.s... | 27.777778 | 131 | 0.6265 |
73f3fd63a0dbecca2f7825b78ac78b00071a3749 | 1,812 | ex | Elixir | elixir/lib/homework_web/schemas/users_schema.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schemas.UsersSchema do
@moduledoc """
Defines the graphql schema for user.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.UsersResolver
object :user do
field(:id, non_null(:id))
field(:dob, :string)
field(:first_name, :string)
field(:last_name, :string)
... | 22.37037 | 44 | 0.637417 |
73f44d18fc0103962921f2f50abaf0359a66ed0a | 2,096 | ex | Elixir | lib/database.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | 2 | 2015-04-11T04:30:34.000Z | 2015-04-18T19:12:25.000Z | lib/database.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | null | null | null | lib/database.ex | cantsin/katakuri | f92c733b86ff8ca6f02a444ca773c25be9585d73 | [
"Apache-2.0"
] | null | null | null | defmodule SlackDatabase do
use GenServer
require Logger
@db_hostname "localhost"
@db_username "postgres"
@db_password "postgres"
@db_database "katakuri"
def start_link(_state) do
GenServer.start_link(__MODULE__, :ok, [name: :database])
end
def timestamp_to_calendar(ts) do
{{ts.year, ts.mo... | 27.578947 | 97 | 0.606393 |
73f45c7ac79de2ed22a91d53c09a6048ec240575 | 378 | ex | Elixir | lib/rpx/summarizer.ex | andrewaguiar/rpx | 945ff12edc0f64a0c45a15aaa0af65b73e51bb9b | [
"MIT"
] | 1 | 2018-04-24T13:34:16.000Z | 2018-04-24T13:34:16.000Z | lib/rpx/summarizer.ex | andrewaguiar/rpx | 945ff12edc0f64a0c45a15aaa0af65b73e51bb9b | [
"MIT"
] | null | null | null | lib/rpx/summarizer.ex | andrewaguiar/rpx | 945ff12edc0f64a0c45a15aaa0af65b73e51bb9b | [
"MIT"
] | null | null | null | defmodule Rpx.Summarizer do
alias Rpx.Colors
def print(matched_lines) do
total_lines = matched_lines
|> length
total_files = matched_lines
|> Enum.map(fn {_, file, _, _} -> file end)
|> Enum.uniq
|> length
IO.puts(
"\n#{Colors.green(total_files)} files and #{Colors.green... | 19.894737 | 81 | 0.603175 |
73f4671863dffdb82af011a0ea15b21bc7a180f7 | 2,160 | ex | Elixir | lib/phoenix_live_view/plug.ex | tiagoefmoraes/phoenix_live_view | ed77fa52443c77bd9f281f1a64da832a6e8724e8 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/plug.ex | tiagoefmoraes/phoenix_live_view | ed77fa52443c77bd9f281f1a64da832a6e8724e8 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/plug.ex | tiagoefmoraes/phoenix_live_view | ed77fa52443c77bd9f281f1a64da832a6e8724e8 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Plug do
@moduledoc false
alias Phoenix.LiveView.Controller
@behaviour Plug
@link_header "x-requested-with"
def link_header, do: @link_header
@impl Plug
def init(view) when is_atom(view), do: view
def init(opts) when is_list(opts) do
view = Keyword.fetch!(opts, :view)
... | 24.827586 | 98 | 0.636111 |
73f46c978d581e2c03973289f1ba232730d22e13 | 6,196 | ex | Elixir | lib/bakeware/assembler.ex | doawoo/bakeware | 17afc53b6e5e5c5b98d45f942433400d64be0a1c | [
"Apache-2.0"
] | 1 | 2021-12-27T23:27:07.000Z | 2021-12-27T23:27:07.000Z | lib/bakeware/assembler.ex | doawoo/bakeware | 17afc53b6e5e5c5b98d45f942433400d64be0a1c | [
"Apache-2.0"
] | null | null | null | lib/bakeware/assembler.ex | doawoo/bakeware | 17afc53b6e5e5c5b98d45f942433400d64be0a1c | [
"Apache-2.0"
] | null | null | null | defmodule Bakeware.Assembler do
@moduledoc false
defstruct [
:start_command,
:compress?,
:compression_level,
:cpio,
:launcher,
:name,
:output,
:path,
:release,
:rel_path,
:trailer
]
@type t() :: %__MODULE__{
start_command: binary(),
compress?: boo... | 25.603306 | 119 | 0.618464 |
73f49a58e34451bd8e9d92f1f5c4161d84030ac6 | 1,888 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/volume.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/volume.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/volume.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... | 33.122807 | 88 | 0.71928 |
73f49d8cb32fdcf25e656261684f1e595187d64f | 3,110 | ex | Elixir | lib/versioning/change.ex | nsweeting/versioning | 0de0102deea00c020025d74a64f5e57617c855da | [
"MIT"
] | 24 | 2018-11-11T15:02:18.000Z | 2020-11-11T21:21:58.000Z | lib/versioning/change.ex | nsweeting/versioning | 0de0102deea00c020025d74a64f5e57617c855da | [
"MIT"
] | null | null | null | lib/versioning/change.ex | nsweeting/versioning | 0de0102deea00c020025d74a64f5e57617c855da | [
"MIT"
] | null | null | null | defmodule Versioning.Change do
@moduledoc """
Defines a versioning change.
A versioning change is used to make small changes to data of a certain type.
They are used within a `Versioning.Schema`. Changes should attempt to be as
focused as possible to ensure complexity is kept to a minimum.
## Example
... | 30.194175 | 91 | 0.673633 |
73f49dcf82a0f17985db9cd341b78ddf95e5c272 | 286 | ex | Elixir | lib/rocketpay/accounts/transactions/response.ex | leoferreiralima/rocketpay | afc8e89d30e7cef6c9e8f1a3bc4007cffd0ece31 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/transactions/response.ex | leoferreiralima/rocketpay | afc8e89d30e7cef6c9e8f1a3bc4007cffd0ece31 | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/transactions/response.ex | leoferreiralima/rocketpay | afc8e89d30e7cef6c9e8f1a3bc4007cffd0ece31 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Accounts.Transactions.Response do
alias Rocketpay.Account
defstruct [:to_account, :from_account]
def build(%Account{} = from_account, %Account{} = to_account) do
%__MODULE__{
from_account: from_account,
to_account: to_account
}
end
end
| 22 | 66 | 0.72028 |
73f4cbbb717a4d6a61cdab137816290777102795 | 1,475 | exs | Elixir | config/config.exs | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | config/config.exs | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | 2 | 2021-03-09T11:51:15.000Z | 2021-05-10T01:10:16.000Z | config/config.exs | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :html_playback,... | 28.921569 | 86 | 0.718644 |
73f4cc82260407af372defba8b32f86c9ea42272 | 144 | ex | Elixir | lib/crc32c_rust.ex | jamesvl/crc32c | e9dc4b3ffed2ea486c62eab970c65f742e777426 | [
"MIT"
] | null | null | null | lib/crc32c_rust.ex | jamesvl/crc32c | e9dc4b3ffed2ea486c62eab970c65f742e777426 | [
"MIT"
] | null | null | null | lib/crc32c_rust.ex | jamesvl/crc32c | e9dc4b3ffed2ea486c62eab970c65f742e777426 | [
"MIT"
] | null | null | null | defmodule Crc32c do
use Rustler,
otp_app: :crc32c,
crate: "crc32crust"
def calc(_data), do: :erlang.nif_error(:nif_not_loaded)
end
| 18 | 57 | 0.701389 |
73f4e51c9bca757b86ac874b962e37b2cf9a0b00 | 749 | ex | Elixir | lib/freddy/adapter/sandbox/channel.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 10 | 2017-06-28T11:39:39.000Z | 2021-11-19T23:23:16.000Z | lib/freddy/adapter/sandbox/channel.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 16 | 2017-01-07T15:34:36.000Z | 2021-05-05T11:07:31.000Z | lib/freddy/adapter/sandbox/channel.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 4 | 2018-10-08T19:54:46.000Z | 2021-05-05T10:49:10.000Z | defmodule Freddy.Adapter.Sandbox.Channel do
@moduledoc false
use GenServer
alias Freddy.Adapter.Sandbox.Connection
def open(connection) do
case Connection.get_on_open_channel(connection) do
:ok -> GenServer.start_link(__MODULE__, connection)
other -> other
end
end
def monitor(channel... | 20.243243 | 70 | 0.70494 |
73f52c8e2ce1bbc16e9405580ab95039af54c8da | 39,473 | exs | Elixir | test/row_test.exs | hou8/ecto_tablestore | 523967c72622755ad050de6ed6add296721fcbbb | [
"MIT"
] | null | null | null | test/row_test.exs | hou8/ecto_tablestore | 523967c72622755ad050de6ed6add296721fcbbb | [
"MIT"
] | null | null | null | test/row_test.exs | hou8/ecto_tablestore | 523967c72622755ad050de6ed6add296721fcbbb | [
"MIT"
] | null | null | null | defmodule EctoTablestore.RowTest do
use ExUnit.Case
alias EctoTablestore.TestSchema.{Order, User, User2, User3, User4, EmbedItem}
alias EctoTablestore.TestRepo
alias Ecto.Changeset
import EctoTablestore.Query, only: [condition: 2, condition: 1, filter: 1]
setup_all do
TestHelper.setup_all()
Ecto... | 32.541632 | 198 | 0.636663 |
73f55a5310b4d12aa4856f07bac7603fe663d38a | 473 | ex | Elixir | lib/toki/parser.ex | tommy351/toki | 099591c6ab5dcbad91c4c45ff87ab7e6d05959bc | [
"MIT"
] | 3 | 2016-07-19T03:23:33.000Z | 2016-09-15T11:57:37.000Z | lib/toki/parser.ex | tommy351/toki | 099591c6ab5dcbad91c4c45ff87ab7e6d05959bc | [
"MIT"
] | null | null | null | lib/toki/parser.ex | tommy351/toki | 099591c6ab5dcbad91c4c45ff87ab7e6d05959bc | [
"MIT"
] | null | null | null | defmodule Toki.Parser do
use Toki.Unit.Year, :parse
use Toki.Unit.Month, :parse
use Toki.Unit.Day, :parse
use Toki.Unit.Hour, :parse
use Toki.Unit.Minute, :parse
use Toki.Unit.Second, :parse
@spec parse(String.t, String.t) :: Toki.DateTime.t
def parse(value, pattern) do
Toki.Pattern.compile... | 22.52381 | 52 | 0.661734 |
73f57e2e675b4beb9759acf58a63fc12aaeb407a | 2,996 | ex | Elixir | lib/tty2048/grid.ex | lexmag/tty2048 | f800247354593929b653f9f947a7c6f1844ad9fe | [
"0BSD"
] | 171 | 2015-01-05T16:25:57.000Z | 2022-01-14T03:05:51.000Z | lib/tty2048/grid.ex | lexmag/tty2048 | f800247354593929b653f9f947a7c6f1844ad9fe | [
"0BSD"
] | 1 | 2016-06-16T11:53:27.000Z | 2016-06-16T11:53:27.000Z | lib/tty2048/grid.ex | lexmag/tty2048 | f800247354593929b653f9f947a7c6f1844ad9fe | [
"0BSD"
] | 29 | 2015-04-30T15:02:54.000Z | 2021-03-04T18:48:42.000Z | defmodule Tty2048.Grid do
@sides [:up, :down, :right, :left]
def new(size) when size > 0 do
make_grid(size)
|> seed |> seed
end
def move(grid, side)
when is_list(grid) and side in @sides do
case try_move(grid, side) do
:noop -> {grid, 0}
{:ok, grid, points} ->
{seed(grid), po... | 20.662069 | 69 | 0.579105 |
73f5aedf98b9d484e5c3dfb37e545ad59bd67258 | 1,848 | ex | Elixir | lib/auth0_ex/authentication/login.ex | warmwaffles/auth0_ex | d0d7ad895c4db79d366c9c55e289a944c891936c | [
"Apache-2.0"
] | 38 | 2016-08-31T12:44:19.000Z | 2021-06-17T18:23:21.000Z | lib/auth0_ex/authentication/login.ex | warmwaffles/auth0_ex | d0d7ad895c4db79d366c9c55e289a944c891936c | [
"Apache-2.0"
] | 24 | 2017-01-12T17:53:10.000Z | 2022-03-14T13:43:12.000Z | lib/auth0_ex/authentication/login.ex | warmwaffles/auth0_ex | d0d7ad895c4db79d366c9c55e289a944c891936c | [
"Apache-2.0"
] | 24 | 2017-01-27T20:51:57.000Z | 2022-03-11T19:58:40.000Z | defmodule Auth0Ex.Authentication.Login do
@moduledoc """
A module that handles login stuff for authentication API
"""
use Auth0Ex.Api
@doc """
Given the social provider's access_token and the connection, this endpoint will authenticate
the user with the provider and return a JSON with the `access_token`... | 33.6 | 134 | 0.694805 |
73f5b9764322da1cabae32c60ae186daa1d50ff1 | 257 | exs | Elixir | config/test.exs | embik/blog | ee8e604fe0bba0bade5466cc180475dbe80bb6b6 | [
"Apache-2.0"
] | 6 | 2017-04-17T22:19:53.000Z | 2019-05-14T09:49:22.000Z | blog/config/test.exs | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | 1 | 2017-08-14T09:00:30.000Z | 2017-08-14T16:18:44.000Z | blog/config/test.exs | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"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 :blog, Blog.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 23.363636 | 56 | 0.727626 |
73f5c6f2c9c8ee96c8898203784fa292497ea292 | 1,698 | exs | Elixir | mix.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | mix.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | mix.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | defmodule VerkWeb.Mixfile do
use Mix.Project
@description """
A Verk dashboard
"""
def project do
[app: :verk_web,
version: "1.4.0",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
... | 29.275862 | 118 | 0.556537 |
73f5e288ed5ed0ee725b36dc30187122c8efcaf3 | 10,620 | ex | Elixir | lib/iex/lib/iex/evaluator.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/evaluator.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/iex/lib/iex/evaluator.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Evaluator do
@moduledoc false
@doc """
Eval loop for an IEx session. Its responsibilities include:
* loading of .iex files
* evaluating code
* trapping exceptions in the code being evaluated
* keeping expression history
"""
def init(command, server, leader, opts) do
ref = ... | 29.831461 | 95 | 0.645292 |
73f5e9af6f1e6657f67929e4cd782db523ad2f48 | 2,723 | ex | Elixir | examples/grpc/elixir/car5g/lib/generated_proto_files/common.pb.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | examples/grpc/elixir/car5g/lib/generated_proto_files/common.pb.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | examples/grpc/elixir/car5g/lib/generated_proto_files/common.pb.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | defmodule Base.Empty do
@moduledoc false
use Protobuf, syntax: :proto3
defstruct []
end
defmodule Base.ClientId do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
id: String.t
}
defstruct [:id]
field :id, 1, type: :string
end
defmodule Base.SignalId do
@moduledoc fal... | 19.875912 | 63 | 0.661036 |
73f647f1923c98142ac12cf56007f8bd21366f8a | 1,269 | exs | Elixir | config/prod.secret.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | 1 | 2021-09-27T06:15:08.000Z | 2021-09-27T06:15:08.000Z | config/prod.secret.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | null | null | null | config/prod.secret.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | 1 | 2021-12-21T12:47:59.000Z | 2021-12-21T12:47:59.000Z | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 30.214286 | 67 | 0.724192 |
73f6a1d848b6325db205e613669063f6a2c45956 | 2,012 | exs | Elixir | config/prod.exs | brunodantas/wabanex | 4d8e4258969203cf0adf5b6561fbd862085afed7 | [
"MIT"
] | 61 | 2021-06-22T00:15:59.000Z | 2022-01-31T15:13:51.000Z | config/prod.exs | brunodantas/wabanex | 4d8e4258969203cf0adf5b6561fbd862085afed7 | [
"MIT"
] | 1 | 2021-06-21T18:42:41.000Z | 2021-06-21T18:42:41.000Z | config/prod.exs | brunodantas/wabanex | 4d8e4258969203cf0adf5b6561fbd862085afed7 | [
"MIT"
] | 56 | 2021-06-21T17:17:36.000Z | 2022-03-15T02:48:59.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.928571 | 66 | 0.714712 |
73f6c5736966d3a40e5cd0091870e4a27fc4fd1f | 3,213 | ex | Elixir | lib/versioned/migration.ex | rossvz/versioned | 22fd40ce7833d0ede80ac9c3dd2e2b8482b50322 | [
"MIT"
] | null | null | null | lib/versioned/migration.ex | rossvz/versioned | 22fd40ce7833d0ede80ac9c3dd2e2b8482b50322 | [
"MIT"
] | null | null | null | lib/versioned/migration.ex | rossvz/versioned | 22fd40ce7833d0ede80ac9c3dd2e2b8482b50322 | [
"MIT"
] | null | null | null | defmodule Versioned.Migration do
@moduledoc """
Allows creating tables for versioned schemas.
## Example
defmodule MyApp.Repo.Migrations.CreateCar do
use Versioned.Migration
def change do
create_versioned_table(:cars) do
add :name, :string
end
end
... | 30.028037 | 93 | 0.633053 |
73f6cd351637d7a1ede445c1e5edda84de68056f | 563 | exs | Elixir | test/easypost/response_test.exs | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 6 | 2017-09-21T13:19:56.000Z | 2021-01-07T18:31:42.000Z | test/easypost/response_test.exs | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | null | null | null | test/easypost/response_test.exs | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 2 | 2018-07-11T07:12:08.000Z | 2020-06-29T02:04:48.000Z | defmodule EasyPost.ResponseTest do
use ExUnit.Case, async: true
alias EasyPost.{ Config, Response }
test "new/2" do
body = "{ \"ok\": true }"
headers = [{ "some-header", "some-header-value" }]
status_code = 200
expected = %Response{}
expected = Map.put(expected, :body, %{ "ok" => true })
... | 26.809524 | 119 | 0.650089 |
73f710566b9751782d990f7ce0415642ad1f3afa | 791 | ex | Elixir | lib/flop/custom_types/operator.ex | tedgkassen/flop | 7268b14b8eff4e4ca93f9541382e46f8d249f2ec | [
"MIT"
] | null | null | null | lib/flop/custom_types/operator.ex | tedgkassen/flop | 7268b14b8eff4e4ca93f9541382e46f8d249f2ec | [
"MIT"
] | null | null | null | lib/flop/custom_types/operator.ex | tedgkassen/flop | 7268b14b8eff4e4ca93f9541382e46f8d249f2ec | [
"MIT"
] | null | null | null | defmodule Flop.CustomTypes.Operator do
@moduledoc false
use Ecto.Type
def type, do: :string
@allowed_operators [:==, :!=, :=~, :<=, :<, :>=, :>, :in]
@allowed_operators_str Enum.map(@allowed_operators, &to_string/1)
def cast(operator) when operator in @allowed_operators_str do
{:ok, String.to_existin... | 25.516129 | 75 | 0.692794 |
73f73a44b3c2c0ac533ba68565fec9c0787d61d6 | 595 | ex | Elixir | elixir/lib/com/spoonacular/client/model/inline_response_200_28_servings.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 21 | 2019-08-09T18:53:26.000Z | 2022-03-14T22:10:10.000Z | elixir/lib/com/spoonacular/client/model/inline_response_200_28_servings.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | null | null | null | elixir/lib/com/spoonacular/client/model/inline_response_200_28_servings.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 55 | 2019-08-13T17:52:47.000Z | 2022-03-27T04:29:34.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.spoonacular.client.Model.InlineResponse20028Servings do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"number",
:"s... | 19.833333 | 91 | 0.665546 |
73f7a971f9698f0c932eca3f78d4d733e40f5def | 1,888 | exs | Elixir | clients/memcache/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/memcache/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/memcache/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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... | 28.179104 | 160 | 0.660487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.