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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffc3bab987444120271668b6129ce6c66c3a7c8b | 293 | exs | Elixir | test/message_check/rng_test.exs | Celeo/gandalf_bot | f8e48b9a0b403fac5e29e514ce6c684d1bebeecc | [
"MIT"
] | null | null | null | test/message_check/rng_test.exs | Celeo/gandalf_bot | f8e48b9a0b403fac5e29e514ce6c684d1bebeecc | [
"MIT"
] | null | null | null | test/message_check/rng_test.exs | Celeo/gandalf_bot | f8e48b9a0b403fac5e29e514ce6c684d1bebeecc | [
"MIT"
] | null | null | null | defmodule Bot.Util.Rng.Test do
alias Bot.Util.Rng
use ExUnit.Case
test "get random number" do
num = Rng.get_number()
assert 1 <= num
assert num <= 10
end
test "store static number" do
Rng.enqueue_static(11)
num = Rng.get_number()
assert num == 11
end
end
| 17.235294 | 31 | 0.645051 |
ffc3ca23b7ca1f72d90840ff09e4baad2b098834 | 1,480 | ex | Elixir | lib/vim_snake_web/views/error_helpers.ex | theanht1/vim_snake | a7650acf579721917a27d2f6c65f3e0d03e2d893 | [
"MIT"
] | 19 | 2020-01-15T05:34:44.000Z | 2022-03-01T14:11:00.000Z | lib/vim_snake_web/views/error_helpers.ex | theanht1/vim_snake | a7650acf579721917a27d2f6c65f3e0d03e2d893 | [
"MIT"
] | 2 | 2021-09-14T03:06:58.000Z | 2022-02-12T04:31:34.000Z | lib/vim_snake_web/views/error_helpers.ex | theanht1/vim_snake | a7650acf579721917a27d2f6c65f3e0d03e2d893 | [
"MIT"
] | null | null | null | defmodule VimSnakeWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag... | 32.888889 | 77 | 0.670946 |
ffc3d635f34e36b6f68bf017e96947582d3e0ed8 | 1,360 | exs | Elixir | apps/admin_api/test/admin_api/v1/views/user_auth_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/test/admin_api/v1/views/user_auth_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/test/admin_api/v1/views/user_auth_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # 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 ... | 30.909091 | 90 | 0.706618 |
ffc3dfdb3c7de34cbcb4171ca2bdf21c0312eab5 | 1,858 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_systems_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_systems_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/v33/model/operating_systems_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... | 37.16 | 164 | 0.750807 |
ffc3f579847b6274eb35b56562207bd788e7b193 | 3,127 | ex | Elixir | lib/blue_jet/app/storefront/order_line_item/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/storefront/order_line_item/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/storefront/order_line_item/proxy.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Storefront.OrderLineItem.Proxy do
use BlueJet, :proxy
alias BlueJet.{Repo, Translation}
alias BlueJet.Storefront.{CRMService, CatalogueService, GoodsService, FulfillmentService}
def get_goods(oli = %{ product: %{ goods_type: "Stockable", goods_id: id }}) do
account = get_account(oli)
... | 31.908163 | 93 | 0.661337 |
ffc3f58c5c3f0c320e46beb8e1565973f2132c40 | 552 | exs | Elixir | config/test.exs | olafura/accent | b081bd96a816f5ffd79a1b28cd5ba022d5eda803 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | config/test.exs | queer/accent | 43a0ab8b43c99a8f8b3bde7020eb615c39037ad5 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | queer/accent | 43a0ab8b43c99a8f8b3bde7020eb615c39037ad5 | [
"BSD-3-Clause"
] | null | null | null | import Config
import_config "releases.exs"
config :accent, Accent.Endpoint,
http: [port: 4001],
server: false
config :accent, Accent.Repo, pool: Ecto.Adapters.SQL.Sandbox
config :accent, Accent.Mailer,
webapp_url: "http://example.com",
mailer_from: "accent-test@example.com",
x_smtpapi_header: ~s({"categor... | 25.090909 | 70 | 0.75 |
ffc41f37059e96e92baee084ca4546ec4c8e58c7 | 960 | ex | Elixir | deps/phoenix_live_reload/lib/phoenix_live_reload/application.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix_live_reload/lib/phoenix_live_reload/application.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix_live_reload/lib/phoenix_live_reload/application.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveReloader.Application do
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec
children = [worker(__MODULE__, [])]
Supervisor.start_link(children, strategy: :one_for_one)
end
def start_link do
opts = [dirs: [Path.absname("")], name... | 26.666667 | 89 | 0.626042 |
ffc432c331ef97cb44582d00b081a810d54803dd | 8,300 | ex | Elixir | lib/pow/plug.ex | rjurado01/pow | d97c013cafe06f51d30a56f4258d7ccc0952edf2 | [
"MIT"
] | 1 | 2021-05-27T21:33:29.000Z | 2021-05-27T21:33:29.000Z | lib/pow/plug.ex | rjurado01/pow | d97c013cafe06f51d30a56f4258d7ccc0952edf2 | [
"MIT"
] | null | null | null | lib/pow/plug.ex | rjurado01/pow | d97c013cafe06f51d30a56f4258d7ccc0952edf2 | [
"MIT"
] | null | null | null | defmodule Pow.Plug do
@moduledoc """
Plug helper methods.
"""
alias Plug.Conn
alias Pow.{Config, Operations, Plug.MessageVerifier}
@private_config_key :pow_config
@doc """
Get the current user assigned to the conn.
The config is fetched from the conn. See `current_user/2` for more.
"""
@spec cu... | 30.627306 | 146 | 0.666145 |
ffc44eca76505e967c36240d21076c5ea5d9a5c2 | 3,816 | ex | Elixir | clients/content/lib/google_api/content/v21/model/datafeed_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/datafeed_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/datafeed_status.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... | 47.7 | 164 | 0.692872 |
ffc45bd42fd85bb4f585a6ea35d10b64b9c1b0cd | 2,357 | ex | Elixir | lib/mix/phoenix/context.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | 2 | 2016-11-01T15:01:48.000Z | 2016-11-01T15:07:20.000Z | lib/mix/phoenix/context.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | lib/mix/phoenix/context.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | defmodule Mix.Phoenix.Context do
@moduledoc false
alias Mix.Phoenix.{Context, Schema}
defstruct name: nil,
module: nil,
schema: nil,
alias: nil,
base_module: nil,
web_module: nil,
basename: nil,
file: nil,
test_file:... | 25.901099 | 76 | 0.570216 |
ffc4707ad5c7cd88528e6d979dd1ac2d41cbdeb0 | 596 | exs | Elixir | test/vendor/rsa_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/vendor/rsa_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/vendor/rsa_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule RSATest do
require Helpers
use ExUnit.Case
alias FarmbotOS.Bootstrap.Authorization
def priv_key(), do: Authorization.rsa_decode_key(Helpers.priv_key())
def pub_key(), do: Authorization.rsa_decode_key(Helpers.pub_key())
test "decode_key" do
{:RSAPublicKey, huge_integer, small_integer} = pub_k... | 27.090909 | 70 | 0.72651 |
ffc47a5d1a52edc3f41a3ab9cfb88edfc8581a85 | 698 | exs | Elixir | test/changelog_web/views/podcast_view_test.exs | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | test/changelog_web/views/podcast_view_test.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | test/changelog_web/views/podcast_view_test.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.PodcastViewTest do
use ChangelogWeb.ConnCase, async: true
alias ChangelogWeb.PodcastView
describe "subscribe_on_overcast_url" do
test "reformats the Apple URL as necessary" do
p =
build(:podcast, apple_url: "https://itunes.apple.com/us/podcast/the-changelog/id341623264")... | 30.347826 | 99 | 0.712034 |
ffc48008a2cd9d57b6ee377650330c299e47c2ea | 1,338 | ex | Elixir | lib/salty/generichash_blake2b.ex | japhib/libsalty2 | b11e5441b81e3591f73b342ef81b26a1345ee670 | [
"Apache-2.0"
] | 1 | 2021-07-18T08:50:32.000Z | 2021-07-18T08:50:32.000Z | lib/salty/generichash_blake2b.ex | japhib/libsalty2 | b11e5441b81e3591f73b342ef81b26a1345ee670 | [
"Apache-2.0"
] | 1 | 2021-12-04T22:06:35.000Z | 2021-12-04T22:06:35.000Z | lib/salty/generichash_blake2b.ex | japhib/libsalty2 | b11e5441b81e3591f73b342ef81b26a1345ee670 | [
"Apache-2.0"
] | 6 | 2020-09-14T09:19:14.000Z | 2022-01-25T20:28:05.000Z | defmodule Salty.Generichash.Blake2b do
use Salty.Generichash
def bytes_min do
C.generichash_blake2b_BYTES_MIN()
end
def bytes_max do
C.generichash_blake2b_BYTES_MAX()
end
def bytes do
C.generichash_blake2b_BYTES()
end
def keybytes_min do
C.generichash_blake2b_KEYBYTES_MIN()
end
... | 19.391304 | 74 | 0.733931 |
ffc483c7c9f91d2b519927fa189bbdfe61591916 | 511 | exs | Elixir | early-chapters/guess.exs | nespera/progr-elixir-1.6 | d8b5751d5106ce81e440e2ad0a28abb0d00b18a2 | [
"Apache-2.0"
] | null | null | null | early-chapters/guess.exs | nespera/progr-elixir-1.6 | d8b5751d5106ce81e440e2ad0a28abb0d00b18a2 | [
"Apache-2.0"
] | null | null | null | early-chapters/guess.exs | nespera/progr-elixir-1.6 | d8b5751d5106ce81e440e2ad0a28abb0d00b18a2 | [
"Apache-2.0"
] | null | null | null | defmodule Chop do
def guess(target, low..high, goes \\ 1) do
try = div(low + high, 2)
IO.puts("Guessing #{try}")
guess(target, low..high, try, goes)
end
defp guess(target, _, target, goes), do: IO.puts "Yes. Answer is #{target}! Took #{goes} goes."
defp guess(target, low..high, _, goes) when targ... | 26.894737 | 97 | 0.614481 |
ffc49fa02ce5f0c12a548f17362fe91ea90ee1bd | 671 | ex | Elixir | lib/builder/car_director.ex | Fulnir/Elixir_Design_Pattern | 77e77541ac604968bfbfe9ebbd6b51f1c3442c1a | [
"MIT"
] | 3 | 2018-03-06T13:45:42.000Z | 2019-07-22T00:16:54.000Z | lib/builder/car_director.ex | Fulnir/Elixir_Design_Pattern | 77e77541ac604968bfbfe9ebbd6b51f1c3442c1a | [
"MIT"
] | null | null | null | lib/builder/car_director.ex | Fulnir/Elixir_Design_Pattern | 77e77541ac604968bfbfe9ebbd6b51f1c3442c1a | [
"MIT"
] | null | null | null | defmodule CarDirector do
@moduledoc """
Copyright © 2018 Edwin Buehler. All rights reserved.
"""
import CarBuilder
def construct, do: construct("")
def construct(name) do
case name do
"Blues Mobil" ->
CarBuilder.build()
|> name(name)
... | 25.807692 | 56 | 0.444113 |
ffc50c8bfc7363cb7a4055356fae356eaf5eb3f2 | 836 | ex | Elixir | channel-sender/lib/channel_sender_ex/core/pubsub/socket_event_bus.ex | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 2 | 2022-01-11T21:03:44.000Z | 2022-03-15T15:13:11.000Z | channel-sender/lib/channel_sender_ex/core/pubsub/socket_event_bus.ex | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 3 | 2021-12-21T21:04:20.000Z | 2022-03-15T16:16:45.000Z | channel-sender/lib/channel_sender_ex/core/pubsub/socket_event_bus.ex | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 2 | 2022-02-08T22:33:36.000Z | 2022-03-25T19:55:18.000Z | defmodule ChannelSenderEx.Core.PubSub.SocketEventBus do
@moduledoc """
Handles different socket events, as connected and disconnected, and abstracts in some way the socket/channel discovery and
association.
"""
alias ChannelSenderEx.Core.ChannelRegistry
alias ChannelSenderEx.Core.Channel
def notify_event... | 30.962963 | 124 | 0.721292 |
ffc516bad15bf3a09e9b033ce68c51c07aa22011 | 13,597 | ex | Elixir | lib/ecto/repo/preloader.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/preloader.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/preloader.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo.Preloader do
# The module invoked by user defined repos
# for preload related functionality.
@moduledoc false
require Ecto.Query
@doc """
Transforms a result set based on query preloads, loading
the associations onto their parent schema.
"""
@spec query([list], Ecto.Repo.t, list,... | 33.907731 | 108 | 0.616239 |
ffc51e33a9be89a1c3ae5a9a992834e25a739257 | 1,191 | exs | Elixir | mix.exs | jimmybot/reverse_proxy_plug | 489188bc16206b502410276b485e2721131efa16 | [
"MIT"
] | null | null | null | mix.exs | jimmybot/reverse_proxy_plug | 489188bc16206b502410276b485e2721131efa16 | [
"MIT"
] | null | null | null | mix.exs | jimmybot/reverse_proxy_plug | 489188bc16206b502410276b485e2721131efa16 | [
"MIT"
] | null | null | null | defmodule ReverseProxyPlug.MixProject do
use Mix.Project
def project do
[
app: :reverse_proxy_plug,
version: "1.3.1",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package... | 22.055556 | 77 | 0.564232 |
ffc5a86450284e705ae8fdc1cebbcca622b5314e | 3,183 | exs | Elixir | test/html_test.exs | fhunleth/excoveralls | 6332f4073a4a209d061382780ab702f5c7092ce2 | [
"MIT"
] | null | null | null | test/html_test.exs | fhunleth/excoveralls | 6332f4073a4a209d061382780ab702f5c7092ce2 | [
"MIT"
] | null | null | null | test/html_test.exs | fhunleth/excoveralls | 6332f4073a4a209d061382780ab702f5c7092ce2 | [
"MIT"
] | 1 | 2019-03-22T07:30:42.000Z | 2019-03-22T07:30:42.000Z | defmodule ExCoveralls.HtmlTest do
use ExUnit.Case
import Mock
import ExUnit.CaptureIO
alias ExCoveralls.Html
@file_name "excoveralls.html"
@file_size 20212
@test_output_dir "cover_test/"
@test_template_path "lib/templates/html/htmlcov/"
@content "defmodule Test do\n def test do\n end\nend\n"
... | 31.205882 | 116 | 0.610116 |
ffc5f51d706a055b09ee9fe325cb2e7b4fb0866e | 4,964 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_group_stats.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_group_stats.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/error_group_stats.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 63.641026 | 676 | 0.761483 |
ffc6078dbb0dc0d0f3d36d5b4c3868c20ec6421c | 800 | exs | Elixir | test/orders/report_test.exs | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | test/orders/report_test.exs | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | test/orders/report_test.exs | Sup3r-Us3r/exlivery | 7d8c5c0011f53cdca1fc8345e1b267355995ac35 | [
"MIT"
] | null | null | null | defmodule ExliveryTest.Orders.ReportTest do
use ExUnit.Case
import ExliveryTest.Support.Factory
alias Exlivery.Orders.Agent, as: OrderAgent
alias Exlivery.Orders.Report
describe "create/1" do
setup do
OrderAgent.start_link(%{})
:ok
end
test "creates the report file" do
:orde... | 20.512821 | 53 | 0.61625 |
ffc630dca66df42a47750587808a9b9189393da5 | 487 | ex | Elixir | lib/rumbl_web/views/error_view.ex | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | lib/rumbl_web/views/error_view.ex | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | lib/rumbl_web/views/error_view.ex | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule RumblWeb.ErrorView do
use RumblWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. Fo... | 28.647059 | 61 | 0.73306 |
ffc63a29892b383b28de23ad0783df7f58931ee9 | 201 | ex | Elixir | lib/playground/northwind/model.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | 27 | 2019-04-10T15:25:21.000Z | 2021-11-22T14:28:56.000Z | lib/playground/northwind/model.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | null | null | null | lib/playground/northwind/model.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | 2 | 2019-05-07T21:45:14.000Z | 2020-07-15T11:55:17.000Z | defmodule Playground.Northwind.Model do
defmacro __using__(_) do
parent = __MODULE__
quote do
use Ecto.Schema
import Ecto.Changeset
alias unquote(parent)
end
end
end
| 16.75 | 39 | 0.681592 |
ffc6b45176cefd2f0df6e81314768b81b967cf18 | 794 | ex | Elixir | apps/blunt/test/support/custom_dispatch_strategy/custom_command_handler.ex | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt/test/support/custom_dispatch_strategy/custom_command_handler.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt/test/support/custom_dispatch_strategy/custom_command_handler.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.CustomDispatchStrategy.CustomCommandHandler do
@type user :: map()
@type command :: struct()
@type context :: Blunt.DispatchContext.command_context()
@callback before_dispatch(command, context) :: {:ok, context()} | {:error, any()}
@callback handle_authorize(user, command, context) :: {:ok, c... | 30.538462 | 99 | 0.683879 |
ffc6c878cc716eaf3771cd81d3223496c0f0b409 | 9,737 | exs | Elixir | test/client_test.exs | sekiyama58/sentry-elixir | 1c1d31178eaffcedb1ccb3d9c48695f29962735a | [
"MIT"
] | 502 | 2016-09-03T14:23:53.000Z | 2022-03-23T17:36:37.000Z | test/client_test.exs | sekiyama58/sentry-elixir | 1c1d31178eaffcedb1ccb3d9c48695f29962735a | [
"MIT"
] | 350 | 2016-08-29T18:53:26.000Z | 2022-03-27T15:45:38.000Z | test/client_test.exs | sekiyama58/sentry-elixir | 1c1d31178eaffcedb1ccb3d9c48695f29962735a | [
"MIT"
] | 147 | 2016-09-22T13:30:57.000Z | 2022-03-14T13:24:14.000Z | defmodule Sentry.ClientTest do
use ExUnit.Case
import ExUnit.CaptureLog
import Sentry.TestEnvironmentHelper
require Logger
alias Sentry.{Client, Envelope}
test "authorization" do
modify_env(:sentry, dsn: "https://public:secret@app.getsentry.com/1")
{_endpoint, public_key, private_key} = Client.get... | 26.972299 | 96 | 0.595871 |
ffc6cd27f8bcf0561ac52f07ecc9c7f52e1bfd2f | 1,898 | exs | Elixir | clients/android_publisher/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/android_publisher/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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.328358 | 124 | 0.665964 |
ffc77c9f5f28c746ff6bdafd38fa901973abe813 | 650 | exs | Elixir | installer/mix.exs | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | 2 | 2021-02-15T07:55:38.000Z | 2021-03-05T18:04:53.000Z | installer/mix.exs | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | installer/mix.exs | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | defmodule Still.New.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :still_new,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: [
licenses: ["ISC"],
links: %{"GitHub" => "https://github... | 19.117647 | 71 | 0.556923 |
ffc789e03cc3eaee7474cfe23a180289bd14ab11 | 1,044 | ex | Elixir | lib/excommerce/application.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce/application.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce/application.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule Excommerce.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.625 | 88 | 0.719349 |
ffc7bc8373a8bad7828407514e73434cbf3235da | 3,040 | exs | Elixir | test/controllers/inbox_controller_test.exs | rubencaro/pedro | b550b3af700962283fa9e3985e1dcc2da2e14d0d | [
"MIT"
] | null | null | null | test/controllers/inbox_controller_test.exs | rubencaro/pedro | b550b3af700962283fa9e3985e1dcc2da2e14d0d | [
"MIT"
] | null | null | null | test/controllers/inbox_controller_test.exs | rubencaro/pedro | b550b3af700962283fa9e3985e1dcc2da2e14d0d | [
"MIT"
] | null | null | null | alias Pedro.Db.Messages
require Pedro.Helpers, as: H
defmodule Pedro.InboxControllerTest do
use Pedro.ConnCase, async: true
import Pedro.TestTools
test "POST /inbox/put validates signature" do
conn = build_conn()
|> put_req_header("content-type", "application/json")
|> post("/inbox/put", Poison.... | 34.157303 | 122 | 0.623355 |
ffc7d573f449119ae9f31c0c4f38afe7fbb8e585 | 1,576 | ex | Elixir | apps/hello_web/lib/hello_web/endpoint.ex | hui-ad/institute | 28242d9d324d710a0e70678ec2d79099f1d3a98d | [
"MIT"
] | 4 | 2019-06-12T19:05:34.000Z | 2019-08-18T15:02:56.000Z | apps/hello_web/lib/hello_web/endpoint.ex | hui-ad/institute | 28242d9d324d710a0e70678ec2d79099f1d3a98d | [
"MIT"
] | 33 | 2019-06-12T18:59:21.000Z | 2021-03-31T15:45:22.000Z | apps/hello_web/lib/hello_web/endpoint.ex | hui-ad/institute | 28242d9d324d710a0e70678ec2d79099f1d3a98d | [
"MIT"
] | 1 | 2019-06-16T09:38:08.000Z | 2019-06-16T09:38:08.000Z | defmodule HelloWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hello_web
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_hello_web... | 29.185185 | 103 | 0.718909 |
ffc814c3186e6e74a106b2244c9869e71316f9b5 | 1,505 | ex | Elixir | web/controllers/tag_controller.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | web/controllers/tag_controller.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | web/controllers/tag_controller.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | defmodule Hone.TagController do
use Hone.Web, :controller
alias Hone.Tag
plug :scrub_params, "tag" when action in [:create, :update]
def index(conn, _params) do
tags = Repo.all(Tag)
render(conn, "index.json", tags: tags)
end
def create(conn, %{"tag" => tag_params}) do
changeset = Tag.changes... | 25.948276 | 73 | 0.597342 |
ffc82c644b92e0f44568caefe47165a541e059da | 625 | ex | Elixir | lib/sanbase/insight/post_comment.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase/insight/post_comment.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase/insight/post_comment.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Insight.PostComment do
@moduledoc ~s"""
A mapping table connecting comments and posts.
This module is used to create, update, delete and fetch insight comments.
"""
use Ecto.Schema
import Ecto.Changeset
alias Sanbase.Comment
alias Sanbase.Insight.Post
schema "post_comments_mappin... | 22.321429 | 75 | 0.7008 |
ffc881c635def9010cf2d8cdc68e57cf41bbfe2b | 250 | ex | Elixir | lib/umbra/behaviour/default.ex | scorsi/Umbra | 16036742db98e39fdc5bf50bc63f6db7cb0e7e92 | [
"MIT"
] | null | null | null | lib/umbra/behaviour/default.ex | scorsi/Umbra | 16036742db98e39fdc5bf50bc63f6db7cb0e7e92 | [
"MIT"
] | 7 | 2020-06-07T08:26:09.000Z | 2020-06-07T08:38:36.000Z | lib/umbra/behaviour/default.ex | scorsi/Umbra | 16036742db98e39fdc5bf50bc63f6db7cb0e7e92 | [
"MIT"
] | null | null | null | defmodule Umbra.Behaviour.Default do
@moduledoc """
This is the default behaviour of `GenServer`.
It only does `use GenServer` behind the scene.
"""
@doc false
defmacro __using__(_) do
quote do
use GenServer
end
end
end
| 16.666667 | 48 | 0.676 |
ffc8999d67d522026eedb2e60920ad40bd5a5688 | 1,965 | ex | Elixir | lib/still/compiler/template_helpers/link.ex | hgg/still | 85477022d4c1e3c36d5f8da7a5a2ac0bc1bd09c9 | [
"0BSD"
] | null | null | null | lib/still/compiler/template_helpers/link.ex | hgg/still | 85477022d4c1e3c36d5f8da7a5a2ac0bc1bd09c9 | [
"0BSD"
] | null | null | null | lib/still/compiler/template_helpers/link.ex | hgg/still | 85477022d4c1e3c36d5f8da7a5a2ac0bc1bd09c9 | [
"0BSD"
] | null | null | null | defmodule Still.Compiler.TemplateHelpers.Link do
@moduledoc """
Renders an anchor HTML tag.
"""
import Still.Utils
alias Still.Compiler.TemplateHelpers.ContentTag
alias Still.SourceFile
@doc """
Uses `Still.Compiler.TemplateHelpers.ContentTag` to render an anchor tag.
Requires a `:to` option, the t... | 27.676056 | 78 | 0.652926 |
ffc8a623a9b3752325dc3dcd14961fa81e9c038f | 2,640 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/authentication_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_user/lib/google_api/service_user/v1/model/authentication_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_user/lib/google_api/service_user/v1/model/authentication_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40 | 161 | 0.739394 |
ffc8b172b68140e4df433040b814aa4c2820e3a8 | 59 | ex | Elixir | app/lib/noodl_web/views/ticket_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl_web/views/ticket_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl_web/views/ticket_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.TicketView do
use NoodlWeb, :view
end
| 14.75 | 32 | 0.79661 |
ffc8b58564fd4ceee06b71e673a451a909be72ae | 1,532 | ex | Elixir | example/test/support/data_case.ex | shufo/phoenix_sail | ad15f404ca3665efe3d345e5e0e7f9390fb972f1 | [
"MIT"
] | 1 | 2021-02-01T12:01:15.000Z | 2021-02-01T12:01:15.000Z | example/test/support/data_case.ex | shufo/phoenix_sail | ad15f404ca3665efe3d345e5e0e7f9390fb972f1 | [
"MIT"
] | null | null | null | example/test/support/data_case.ex | shufo/phoenix_sail | ad15f404ca3665efe3d345e5e0e7f9390fb972f1 | [
"MIT"
] | 1 | 2021-02-01T12:01:46.000Z | 2021-02-01T12:01:46.000Z | defmodule Example.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 t... | 27.357143 | 77 | 0.688642 |
ffc8c0ac0127e707be06e0e31741b57907cdb554 | 1,586 | ex | Elixir | lib/bamboo/api_error.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | null | null | null | lib/bamboo/api_error.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | null | null | null | lib/bamboo/api_error.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | 1 | 2020-04-21T12:36:34.000Z | 2020-04-21T12:36:34.000Z | defmodule Bamboo.ApiError do
@moduledoc """
Error used to represent a problem when sending emails through an external email service API.
"""
defexception [:message]
@doc """
Raises an `ApiError` with the given `message` or `service_name`, `response` and `params`.
An extra error message can be added usi... | 24.030303 | 96 | 0.656368 |
ffc8e156437f63ad576c07acab47ab1e0899fc86 | 1,760 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_workspaces_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_workspaces_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/list_workspaces_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... | 35.2 | 132 | 0.7375 |
ffc8f5b0b12369f91365e8f74334e3baee4ff13f | 289 | exs | Elixir | priv/repo/migrations/20200222223105_create_npcs.exs | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200222223105_create_npcs.exs | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200222223105_create_npcs.exs | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | defmodule Titeenipeli.Repo.Migrations.CreateNpcs do
use Ecto.Migration
def change do
create table(:npcs) do
add :name, :string
add :image_url, :string
add :max_hp, :integer
add :hp, :integer
add :level, :integer
timestamps()
end
end
end
| 18.0625 | 51 | 0.633218 |
ffc8fdb30f115511ca54e30a71852378531d8c1a | 8,510 | ex | Elixir | lib/scenic/component/input/slider.ex | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | lib/scenic/component/input/slider.ex | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | lib/scenic/component/input/slider.ex | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | defmodule Scenic.Component.Input.Slider do
@moduledoc """
Add a slider to a graph
## Data
`{ extents, initial_value}`
* `extents` gives the range of values. It can take several forms...
* `{min, max}` If `min` and `max` are integers, then the slider value will
be an integer.
* `{min, max}` If `... | 27.993421 | 96 | 0.562162 |
ffc906c741f19bbb48ace261f4850c72401f3aea | 15,900 | ex | Elixir | lib/oli_web/controllers/delivery_controller.ex | ctipperCMU/oli-torus | 231e8afc9ec6179e6081f327f4ebeb497703bfb8 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/delivery_controller.ex | ctipperCMU/oli-torus | 231e8afc9ec6179e6081f327f4ebeb497703bfb8 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/delivery_controller.ex | ctipperCMU/oli-torus | 231e8afc9ec6179e6081f327f4ebeb497703bfb8 | [
"MIT"
] | null | null | null | defmodule OliWeb.DeliveryController do
use OliWeb, :controller
alias Oli.Delivery.Sections
alias Oli.Delivery.Sections.{Section, SectionInvites}
alias Oli.Publishing
alias Oli.Institutions
alias Lti_1p3.Tool.{PlatformRoles, ContextRoles}
alias Oli.Accounts
alias Oli.Accounts.Author
alias Oli.Repo
... | 31.237721 | 98 | 0.649057 |
ffc929051ac80b062a8b79143e720b0f0a447499 | 1,623 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_audience_enabled.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_audience_enabled.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_audience_enabled.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.46 | 135 | 0.736907 |
ffc92ba7cdead30946ed1267eb819bae73c0053a | 724 | ex | Elixir | web/gettext.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2016-07-06T02:06:31.000Z | 2016-07-06T02:06:31.000Z | web/gettext.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2017-04-07T12:58:38.000Z | 2017-04-07T12:58:38.000Z | web/gettext.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | null | null | null | defmodule PhoenixAuthKata.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import PhoenixAuthKata.Gettext
# Simple translation
gettext "... | 28.96 | 71 | 0.687845 |
ffc93db8f69849bc1b79fa438d0f79fa49ef3164 | 355 | ex | Elixir | lib/step_flow/controllers/live_workers_controller.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | lib/step_flow/controllers/live_workers_controller.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | lib/step_flow/controllers/live_workers_controller.ex | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.LiveWorkersController do
use StepFlow, :controller
alias StepFlow.LiveWorkers
action_fallback(StepFlow.FallbackController)
def index(conn, params) do
live_workers = LiveWorkers.list_live_workers(params)
conn
|> put_view(StepFlow.LiveWorkersView)
|> render("index.json", liv... | 22.1875 | 56 | 0.766197 |
ffc94487fb66872e8821f9b7e8f2cc79270eef09 | 1,532 | ex | Elixir | lib/attachments_client.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | null | null | null | lib/attachments_client.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | null | null | null | lib/attachments_client.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 1 | 2019-11-08T13:20:11.000Z | 2019-11-08T13:20:11.000Z | defmodule ExMicrosoftBot.Client.Attachments do
@moduledoc """
This module provides the functions to get information related to attachments.
"""
import ExMicrosoftBot.Client, only: [authed_req_options: 1, deserialize_response: 2]
alias ExMicrosoftBot.Models, as: Models
alias ExMicrosoftBot.Client
@doc ""... | 42.555556 | 179 | 0.761097 |
ffc952ca23519e04eb5567f35f9a6421326ee37f | 251 | ex | Elixir | lib/mango_web/controllers/page_controller.ex | jacruzca/mango | 9978dc609ed1fc86aa40386e35fae06cb95f80fc | [
"MIT"
] | null | null | null | lib/mango_web/controllers/page_controller.ex | jacruzca/mango | 9978dc609ed1fc86aa40386e35fae06cb95f80fc | [
"MIT"
] | null | null | null | lib/mango_web/controllers/page_controller.ex | jacruzca/mango | 9978dc609ed1fc86aa40386e35fae06cb95f80fc | [
"MIT"
] | null | null | null | defmodule MangoWeb.PageController do
use MangoWeb, :controller
alias Mango.Catalog
def index(conn, _params) do
seasonal_products = Catalog.list_seasonal_products
render conn, "index.html", seasonal_products: seasonal_products
end
end
| 25.1 | 67 | 0.784861 |
ffc966e8ad22e9fba6237308a3aec6fbd32803f6 | 16,538 | ex | Elixir | lib/phoenix_live_view/helpers.ex | sbacarob/phoenix_live_view | dce42778671fa85801e7a537092b860edbb9759d | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | sbacarob/phoenix_live_view | dce42778671fa85801e7a537092b860edbb9759d | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | sbacarob/phoenix_live_view | dce42778671fa85801e7a537092b860edbb9759d | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Helpers do
@moduledoc """
A collection of helpers to be imported into your views.
"""
alias Phoenix.LiveView.{Component, Socket, Static}
@doc false
def live_patch(opts) when is_list(opts) do
live_link("patch", Keyword.fetch!(opts, :do), Keyword.delete(opts, :do))
end
@d... | 32.237817 | 100 | 0.650925 |
ffc96dfb294cc921d742f668c6571188a39f22c0 | 2,457 | exs | Elixir | mix.exs | fhunleth/kiosk_system_x86_64 | 8bde5080f7c1bf769d830aff504ed49425692574 | [
"Apache-2.0"
] | 10 | 2017-06-22T16:06:15.000Z | 2020-02-15T12:54:15.000Z | mix.exs | fhunleth/kiosk_system_x86_64 | 8bde5080f7c1bf769d830aff504ed49425692574 | [
"Apache-2.0"
] | 10 | 2017-09-15T05:13:21.000Z | 2020-02-09T08:24:48.000Z | mix.exs | fhunleth/kiosk_system_x86_64 | 8bde5080f7c1bf769d830aff504ed49425692574 | [
"Apache-2.0"
] | 5 | 2017-09-14T19:59:45.000Z | 2018-10-23T01:51:55.000Z | defmodule KioskSystemx8664.Mixfile do
use Mix.Project
@app :kiosk_system_x86_64
@version Path.join(__DIR__, "VERSION")
|> File.read!
|> String.trim
def project do
[
app: @app,
version: @version,
elixir: "~> 1.8",
compilers: Mix.compilers ++ [:nerves_package],
nerves_p... | 21.552632 | 77 | 0.576313 |
ffc97ef4fa5a30711c7952f2baec7434c01b723e | 942 | ex | Elixir | web/gettext.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/gettext.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/gettext.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import CodeCorps.Gettext
# Simple translation
gettext "Here is the... | 30.387097 | 72 | 0.646497 |
ffc9cdea78fd2587fca42fd39ae4cf83c4d50116 | 2,445 | exs | Elixir | test/dsl/signal_obs_test.exs | DriesDeBackker/bquarp-reactivity | 28c28fba7c60dcf0a4bee6cbcb2c67545dc5122c | [
"MIT"
] | 1 | 2019-07-18T12:44:08.000Z | 2019-07-18T12:44:08.000Z | test/dsl/signal_obs_test.exs | DriesDeBackker/bquarp-reactivity | 28c28fba7c60dcf0a4bee6cbcb2c67545dc5122c | [
"MIT"
] | null | null | null | test/dsl/signal_obs_test.exs | DriesDeBackker/bquarp-reactivity | 28c28fba7c60dcf0a4bee6cbcb2c67545dc5122c | [
"MIT"
] | null | null | null | defmodule Test.DSL.SignalObs do
use ExUnit.Case
alias Reactivity.DSL.SignalObs, as: Sobs
alias Observables.Obs
alias Observables.Subject
test "From observable" do
testproc = self()
obs = Subject.create()
obs
|> Sobs.from_plain_obs()
|> Obs.map(fn v -> send(testproc, v) end)
Subject... | 23.970588 | 76 | 0.584458 |
ffc9ce2d78b6f4754d5eb68521b640aba84023ba | 4,115 | ex | Elixir | lib/absinthe/phase/document/missing_literals.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/phase/document/missing_literals.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/phase/document/missing_literals.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Phase.Document.MissingLiterals do
@moduledoc false
# Fills out missing arguments and input object fields.
#
# Filling out means inserting a stubbed `Input.Argument` or `Input.Field` struct.
#
# Only those arguments which are non null and / or have a default value are filled
# out.
#
... | 28.576389 | 95 | 0.63791 |
ffca35367bc339332b6135a85b28759733fd1fcd | 432 | exs | Elixir | apps/api/test/api/views/base_view_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/api/test/api/views/base_view_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/api/test/api/views/base_view_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule API.View.BaseTest do
@moduledoc """
"""
use ExUnit.Case, async: true
alias API.View.Base
describe "serialize/3" do
test "serializes data, success and version" do
assert Base.serialize(%{some: "data"}, true, "1.2.3") == %{
data: %{some: "data"},
service_name... | 21.6 | 65 | 0.530093 |
ffca435abc8c22880a5dd2b4aacca9a561be1e2c | 342 | ex | Elixir | apps/authenticator/lib/application.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authenticator/lib/application.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authenticator/lib/application.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authenticator.Application do
@moduledoc false
use Application
@doc false
def start(_type, _args) do
Supervisor.start_link(children(), strategy: :one_for_one, name: Authenticator.Supervisor)
end
defp children do
:authenticator
|> Application.get_env(__MODULE__, [])
|> Keyword.get... | 20.117647 | 93 | 0.722222 |
ffca46a57bb9f63a31440a8647c4a2a0c3d593c5 | 1,695 | ex | Elixir | clients/domains/lib/google_api/domains/v1beta1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1beta1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1beta1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.06383 | 288 | 0.746313 |
ffca4edb60958a804e1caa97379b3ab62c2281f4 | 331 | ex | Elixir | lib/cryppo/initialization_worker.ex | Meeco/cryppo_ex | fd9b6f4f84c6668797b1e31f6e59bb5f42630a2a | [
"Apache-2.0"
] | null | null | null | lib/cryppo/initialization_worker.ex | Meeco/cryppo_ex | fd9b6f4f84c6668797b1e31f6e59bb5f42630a2a | [
"Apache-2.0"
] | null | null | null | lib/cryppo/initialization_worker.ex | Meeco/cryppo_ex | fd9b6f4f84c6668797b1e31f6e59bb5f42630a2a | [
"Apache-2.0"
] | 1 | 2021-06-01T07:46:14.000Z | 2021-06-01T07:46:14.000Z | defmodule Cryppo.InitializationWorker do
@moduledoc false
# for now the only point of this genserver is to seed
# Erlang random generator. Then it exits.
use GenServer
@spec start_link :: :ignore
def start_link do
:crypto.rand_seed()
:ignore
end
@impl true
def init(init_arg), do: {:ok, ini... | 18.388889 | 55 | 0.703927 |
ffca652c03ad60eba2008893266ec802c2bd14a5 | 972 | ex | Elixir | lib/bot/command_handler.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | lib/bot/command_handler.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | lib/bot/command_handler.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | defmodule Lanyard.DiscordBot.CommandHandler do
@command_map %{
"get" => Lanyard.DiscordBot.Commands.Get,
"set" => Lanyard.DiscordBot.Commands.Set,
"del" => Lanyard.DiscordBot.Commands.Del,
"apikey" => Lanyard.DiscordBot.Commands.ApiKey,
"kv" => Lanyard.DiscordBot.Commands.KV
}
def handle_mess... | 26.27027 | 70 | 0.574074 |
ffca7cbb0cff46c4cff53f6cf232f2afc94a0e82 | 203 | exs | Elixir | priv/repo/migrations/20171029204629_add_thread_details.exs | making3/summoner-alerts-service | b560d53cb39048049f52dd99d796eab52544da9d | [
"MIT"
] | null | null | null | priv/repo/migrations/20171029204629_add_thread_details.exs | making3/summoner-alerts-service | b560d53cb39048049f52dd99d796eab52544da9d | [
"MIT"
] | null | null | null | priv/repo/migrations/20171029204629_add_thread_details.exs | making3/summoner-alerts-service | b560d53cb39048049f52dd99d796eab52544da9d | [
"MIT"
] | null | null | null | defmodule SAS.Repo.Migrations.AddThreadDetails do
use Ecto.Migration
def change do
alter table(:threads) do
add :permalink, :string
add :created_utc, :utc_datetime
end
end
end
| 18.454545 | 49 | 0.704433 |
ffca958459185c8d12967944082283f1422c7426 | 526 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/empty_dir_volume.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/empty_dir_volume.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/empty_dir_volume.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Containers.Model.EmptyDirVolume do
@moduledoc """
The empty directory volume.
"""
@derive [Poison.Encoder]
d... | 20.230769 | 90 | 0.724335 |
ffca9c16f563229e49e6e07ea55b5f56e512f007 | 3,479 | ex | Elixir | web/ex_admin/errors_helper.ex | chaince/ex_admin | dee0b0fcf6c1c95d71290a8375a75b7da35c7c25 | [
"MIT"
] | null | null | null | web/ex_admin/errors_helper.ex | chaince/ex_admin | dee0b0fcf6c1c95d71290a8375a75b7da35c7c25 | [
"MIT"
] | null | null | null | web/ex_admin/errors_helper.ex | chaince/ex_admin | dee0b0fcf6c1c95d71290a8375a75b7da35c7c25 | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule ExAdmin.ErrorsHelper do
@moduledoc """
The primary purpose of this module is to take nested changeset errors created
by many_to_many and has many through relationships and change them into a format
that the forms can use to get the error message from the field name.
Changes sets such as:
... | 40.453488 | 135 | 0.663122 |
ffcaaae774bca035c283744b3de85a3df93699f3 | 6,443 | ex | Elixir | lib/credo/config_file.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/config_file.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/config_file.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | defmodule Credo.ConfigFile do
@doc """
`ConfigFile` structs represent all loaded and merged config files in a run.
"""
@config_filename ".credo.exs"
@default_config_name "default"
@default_config_file File.read!(@config_filename)
@default_glob "**/*.{ex,exs}"
@default_files_included [@default_glob]
... | 26.08502 | 85 | 0.651094 |
ffcaafa80dc6611daf51fbb9b2eaf57b797b193e | 1,174 | exs | Elixir | config/config.exs | GabrielMalakias/ex_air | 2f892d4c2e1313fc5d794de2e50769e4165ee5fc | [
"MIT"
] | null | null | null | config/config.exs | GabrielMalakias/ex_air | 2f892d4c2e1313fc5d794de2e50769e4165ee5fc | [
"MIT"
] | null | null | null | config/config.exs | GabrielMalakias/ex_air | 2f892d4c2e1313fc5d794de2e50769e4165ee5fc | [
"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
config :ex_air,
ecto_repos: [ExAir.Repo]
conf... | 28.634146 | 86 | 0.755537 |
ffcab8352c92b3525c017bbfee22f8a5a95f49a7 | 5,125 | ex | Elixir | lib/oauther.ex | drozdoff/oauther | 7989f04d4b2e91390f4a8cb99380948d7614e7d1 | [
"ISC"
] | null | null | null | lib/oauther.ex | drozdoff/oauther | 7989f04d4b2e91390f4a8cb99380948d7614e7d1 | [
"ISC"
] | null | null | null | lib/oauther.ex | drozdoff/oauther | 7989f04d4b2e91390f4a8cb99380948d7614e7d1 | [
"ISC"
] | null | null | null | defmodule OAuther do
defmodule Credentials do
defstruct [
:consumer_key,
:consumer_secret,
:token,
:token_secret,
method: :hmac_sha1
]
@type t :: %__MODULE__{
consumer_key: String.t(),
consumer_secret: String.t(),
token: nil | String.t(),
... | 26.417526 | 98 | 0.641171 |
ffcad1f5b6fb50345693e42c2747e0714e7ef7e1 | 126 | exs | Elixir | main.exs | zachschickler/advent-of-code-2021-elixir | 51a8a7bc6bd0ead7f833261ac8671e12ef0cece8 | [
"MIT"
] | null | null | null | main.exs | zachschickler/advent-of-code-2021-elixir | 51a8a7bc6bd0ead7f833261ac8671e12ef0cece8 | [
"MIT"
] | null | null | null | main.exs | zachschickler/advent-of-code-2021-elixir | 51a8a7bc6bd0ead7f833261ac8671e12ef0cece8 | [
"MIT"
] | null | null | null | IO.puts "Advent of Code 2021\n===================\n"
Code.eval_file "days/day1/day1.exs"
Code.eval_file "days/day2/day2.exs" | 25.2 | 52 | 0.634921 |
ffcaf21957bbb8deeb64a52cbd0a868202035116 | 2,229 | exs | Elixir | apps/content/test/content_web/controllers/comment_controller_test.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/content/test/content_web/controllers/comment_controller_test.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/content/test/content_web/controllers/comment_controller_test.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | defmodule Legendary.Content.CommentControllerTest do
use Legendary.Content.ConnCase
alias Legendary.Content.Comments
alias Legendary.Content.Posts
@post_attrs %{id: 456, name: "blergh", status: "publish"}
@create_attrs %{id: 123, content: "Hello world", post_id: 456}
@update_attrs %{id: 123, content: "Goo... | 33.268657 | 94 | 0.681023 |
ffcb1a474fd8ed0aa8da9a545020c95914f906d7 | 2,076 | ex | Elixir | lib/new_relic/transaction/trace.ex | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/transaction/trace.ex | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | 1 | 2019-02-08T01:08:31.000Z | 2019-02-20T00:24:51.000Z | lib/new_relic/transaction/trace.ex | binaryseed/elixir_agent | 25f1242c10516618d9ea3a9b18712e5bc41efad6 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Transaction.Trace do
defstruct start_time: nil,
metric_name: nil,
request_url: nil,
attributes: %{},
segments: [],
duration: nil,
cat_guid: "",
reserved_for_future_use: nil,
force_persist_flag: false,
... | 23.325843 | 98 | 0.57948 |
ffcb1abd3fdac44cc7cfd96728bf933f2764a579 | 729 | ex | Elixir | web/gettext.ex | TobiG77/phoenix_api_sample | 5d2e69537562ce921b8aa6c2b0d8cd3710490907 | [
"MIT"
] | null | null | null | web/gettext.ex | TobiG77/phoenix_api_sample | 5d2e69537562ce921b8aa6c2b0d8cd3710490907 | [
"MIT"
] | null | null | null | web/gettext.ex | TobiG77/phoenix_api_sample | 5d2e69537562ce921b8aa6c2b0d8cd3710490907 | [
"MIT"
] | null | null | null | defmodule PhoenixApiSample.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import PhoenixApiSample.Gettext
# Simple translation
gettext... | 29.16 | 71 | 0.689986 |
ffcb4b7809054f46ef927d57094d1c8c326c00d0 | 667 | exs | Elixir | mix.exs | jpcaruana/enigma | 50f7c42dd58cdc95322fb715b7d169717a13575d | [
"MIT"
] | null | null | null | mix.exs | jpcaruana/enigma | 50f7c42dd58cdc95322fb715b7d169717a13575d | [
"MIT"
] | 1 | 2016-08-28T20:30:33.000Z | 2016-08-28T20:30:33.000Z | mix.exs | jpcaruana/enigma | 50f7c42dd58cdc95322fb715b7d169717a13575d | [
"MIT"
] | 1 | 2021-04-28T15:30:09.000Z | 2021-04-28T15:30:09.000Z | defmodule Enigma.Mixfile do
use Mix.Project
def project do
[app: :enigma,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more... | 20.212121 | 77 | 0.605697 |
ffcb6e3e050b65d9c43d6fdd828263c91fb8d95b | 1,186 | exs | Elixir | clients/big_query_data_transfer/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/mix.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.BigQueryDataTransfer.V1.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :google_api_big_query_data_transfer,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
... | 24.708333 | 123 | 0.62226 |
ffcb8b156e7d31e85ee5f764de9cf39f95dffc7d | 791 | exs | Elixir | elixir/bracket-push/bracket_push.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/bracket-push/bracket_push.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/bracket-push/bracket_push.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | defmodule BracketPush do
@non_bracket_characters_pattern ~r/[^\{\}\[\]\(\)]/
@bracket_pairs_pattern ~r/(\{\}|\[\]|\(\))/
@doc """
Checks that all the brackets and braces in the string are matched correctly, and nested correctly
"""
@spec check_brackets(String.t) :: boolean
def check_brackets(str) do
... | 24.71875 | 99 | 0.670038 |
ffcb8e719fe7dcba29194ed7edae41c3fc1bdacd | 2,009 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_reason_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_reason_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_reason_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.527273 | 165 | 0.752613 |
ffcb976cf607f84d6d7a77ed39d8738314b75a6b | 1,833 | exs | Elixir | clients/cloud_build/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.358209 | 102 | 0.654664 |
ffcbbc74efd9784e8f6f2f18b9b6ae95c672dd6a | 1,033 | exs | Elixir | example/config/config.exs | anschwa/phoenix-tailwind | 01ebf4cb6a733b84cb777088468c78f4aa0b735a | [
"MIT"
] | 1 | 2021-02-01T12:01:15.000Z | 2021-02-01T12:01:15.000Z | example/config/config.exs | anschwa/phoenix-tailwind | 01ebf4cb6a733b84cb777088468c78f4aa0b735a | [
"MIT"
] | null | null | null | example/config/config.exs | anschwa/phoenix-tailwind | 01ebf4cb6a733b84cb777088468c78f4aa0b735a | [
"MIT"
] | 1 | 2021-02-01T12:01:46.000Z | 2021-02-01T12:01:46.000Z | # 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
config :example,
ecto_repos: [Example.Repo]
#... | 32.28125 | 86 | 0.771539 |
ffcbd1c3fdbe83c35fb082913f604d6676943be0 | 925 | ex | Elixir | test/support/channel_case.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 2 | 2020-08-28T19:17:33.000Z | 2020-09-13T18:49:20.000Z | test/support/channel_case.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 5 | 2018-10-28T14:39:26.000Z | 2019-01-31T17:23:36.000Z | test/support/channel_case.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | null | null | null | defmodule MarsWeb.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 data structures and query the data layer.
Finally, if the test case interacts with... | 23.125 | 59 | 0.708108 |
ffcc178a61bd06fc9b619ca700166c7038e9bb81 | 3,971 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/campaign.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/campaign.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/campaign.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... | 53.662162 | 352 | 0.712919 |
ffcc3e8f07191b8e237fbecbc0214c928517e264 | 2,585 | exs | Elixir | apps/blunt/test/blunt/message_test.exs | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt/test/blunt/message_test.exs | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt/test/blunt/message_test.exs | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.MessageTest do
use ExUnit.Case, async: true
alias Blunt.Message.Metadata
alias Blunt.MessageTest.Protocol
describe "simple message" do
alias Protocol.Simple
test "is struct" do
%Simple{name: nil} = struct!(Simple)
end
test "is ecto schema" do
assert [:name] == Simp... | 29.712644 | 120 | 0.662669 |
ffcc542f3de7ad631426ddaa771f7319e4910f71 | 459 | ex | Elixir | lib/appsignal/diagnose/library.ex | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | lib/appsignal/diagnose/library.ex | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | lib/appsignal/diagnose/library.ex | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | defmodule Appsignal.Diagnose.Library do
@appsignal_version Mix.Project.config[:version]
@agent_version Appsignal.Nif.agent_version
@nif Application.get_env(:appsignal, :appsignal_nif, Appsignal.Nif)
def info do
%{
language: "elixir",
agent_version: @agent_version,
agent_architecture: Apps... | 28.6875 | 72 | 0.742919 |
ffcc6965b03654e20955db0f560701a30be9d29b | 473 | ex | Elixir | lib/image.ex | mauricius/elixir-identicon | ebf967f18a5bb6a39d03969e9dd045d318e95d30 | [
"MIT"
] | null | null | null | lib/image.ex | mauricius/elixir-identicon | ebf967f18a5bb6a39d03969e9dd045d318e95d30 | [
"MIT"
] | null | null | null | lib/image.ex | mauricius/elixir-identicon | ebf967f18a5bb6a39d03969e9dd045d318e95d30 | [
"MIT"
] | null | null | null | defmodule Identicon.Image do
@typedoc """
Type that represents Image struct.
"""
defstruct hex: nil, color: nil, grid: nil, pixel_map: nil
@type t(hex, color, grid, pixel_map) :: %Identicon.Image{
hex: hex,
color: color,
grid: grid,
pixel_map: pixel_map
}
... | 22.52381 | 59 | 0.53277 |
ffcca92f5901473c1708517b92e7daf9a02c7d4e | 1,066 | ex | Elixir | lib/vnu/message_filter.ex | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 51 | 2020-04-11T22:30:43.000Z | 2022-01-14T13:24:56.000Z | lib/vnu/message_filter.ex | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 20 | 2020-04-13T12:20:49.000Z | 2022-03-29T18:32:41.000Z | lib/vnu/message_filter.ex | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | null | null | null | defmodule Vnu.MessageFilter do
@moduledoc """
A behavior for excluding certain messages from the validation result.
Modules implementing this behavior can be passed as a `:filter` option to:
- `Vnu.validate_html/2`, `Vnu.validate_css/2`, `Vnu.validate_svg/2`
- `Vnu.Assertions.assert_valid_html/2`, `Vnu.Asser... | 34.387097 | 114 | 0.694184 |
ffccc66b138eaa93c888fdec0b9a000d7daa6240 | 3,699 | ex | Elixir | apps/proxy/test/support/ex_chain/fake_ex_chain.ex | b-pmcg/staxx | 6cff299620ab4835ceca772357d1925737f2e528 | [
"Apache-2.0"
] | null | null | null | apps/proxy/test/support/ex_chain/fake_ex_chain.ex | b-pmcg/staxx | 6cff299620ab4835ceca772357d1925737f2e528 | [
"Apache-2.0"
] | null | null | null | apps/proxy/test/support/ex_chain/fake_ex_chain.ex | b-pmcg/staxx | 6cff299620ab4835ceca772357d1925737f2e528 | [
"Apache-2.0"
] | null | null | null | defmodule Staxx.Proxy.ExChain.FakeExChain do
@behaviour Staxx.Proxy.ExChain
use GenServer
def start_link(_),
do: GenServer.start_link(__MODULE__, %{chains: %{}, snapshots: %{}}, name: __MODULE__)
@impl GenServer
def init(state),
do: {:ok, state}
@impl GenServer
def handle_call(:chains, _, %{ch... | 24.496689 | 97 | 0.601244 |
ffccd9f9ae25afe1a94ba2549b2d52edab78cdbd | 237 | exs | Elixir | Chapter08/vocial-demo-chapter-8/priv/repo/migrations/20171125044437_add_vote_records_table.exs | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 10 | 2018-05-13T14:53:05.000Z | 2021-11-08T13:10:44.000Z | Chapter09/vocial-demo-chapter-9/priv/repo/migrations/20171125044437_add_vote_records_table.exs | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | null | null | null | Chapter09/vocial-demo-chapter-9/priv/repo/migrations/20171125044437_add_vote_records_table.exs | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 2 | 2019-04-23T10:54:33.000Z | 2019-04-27T15:47:07.000Z | defmodule Vocial.Repo.Migrations.AddVoteRecordsTable do
use Ecto.Migration
def change do
create table(:vote_records) do
add :ip_address, :string
add :poll_id, references(:polls)
timestamps()
end
end
end
| 18.230769 | 55 | 0.696203 |
ffccfaed49551c7b8e647c3eb749f7bd5659aae9 | 1,717 | ex | Elixir | apps/tai/lib/tai/venue_adapters/bitmex/cancel_order.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/venue_adapters/bitmex/cancel_order.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/venue_adapters/bitmex/cancel_order.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenueAdapters.Bitmex.CancelOrder do
alias Tai.Orders.Responses
@type order :: Tai.Orders.Order.t()
@type credentials :: map
@type response :: Responses.CancelAccepted.t()
@type reason ::
:timeout
| :overloaded
| {:nonce_not_increasing, msg :: String.t()}
... | 26.015152 | 78 | 0.670355 |
ffcd0783b65799759180f506d5d9c7369dae390d | 1,434 | ex | Elixir | lib/airtable_config.ex | justicedemocrats/airtable_config | 8342a93956a515ddbe169a8163b1acc25962f9d2 | [
"MIT"
] | null | null | null | lib/airtable_config.ex | justicedemocrats/airtable_config | 8342a93956a515ddbe169a8163b1acc25962f9d2 | [
"MIT"
] | null | null | null | lib/airtable_config.ex | justicedemocrats/airtable_config | 8342a93956a515ddbe169a8163b1acc25962f9d2 | [
"MIT"
] | null | null | null | defmodule AirtableConfig do
defmacro __using__(_opts \\ []) do
quote do
def start_link do
Agent.start_link(
fn ->
fetch_all([], 0)
end,
name: __MODULE__
)
end
def update() do
try do
config = fetch_all([], 0)
A... | 25.157895 | 121 | 0.502092 |
ffcd21e4362bf7261f1e6da3971bac22cf71467d | 285 | exs | Elixir | bench/vector/uniq.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 95 | 2020-10-18T09:27:46.000Z | 2022-03-29T20:03:16.000Z | bench/vector/uniq.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2021-09-22T20:30:08.000Z | 2021-10-13T23:55:34.000Z | bench/vector/uniq.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2020-12-15T12:36:16.000Z | 2020-12-15T12:36:16.000Z | list = Enum.to_list(1..50) ++ Enum.to_list(50..1)
vector = Aja.Vector.new(list)
Benchee.run(%{
"Aja.Vector.uniq/1 (vector)" => fn -> Aja.Vector.uniq(vector) end,
"Aja.Enum.uniq/1 (vector)" => fn -> Aja.Enum.uniq(vector) end,
"Enum.uniq/2 (list)" => fn -> Enum.uniq(list) end
})
| 31.666667 | 68 | 0.624561 |
ffcd243ef43a0693a9a066563d7c09859b5b4b1e | 3,739 | ex | Elixir | lib/pdf_party/reader/xref/table.ex | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 4 | 2018-10-26T02:11:14.000Z | 2019-04-25T20:59:52.000Z | lib/pdf_party/reader/xref/table.ex | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 1 | 2018-10-26T21:20:40.000Z | 2018-10-26T21:20:40.000Z | lib/pdf_party/reader/xref/table.ex | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 1 | 2018-10-26T02:11:17.000Z | 2018-10-26T02:11:17.000Z | defmodule PDFParty.Reader.XRef.TableParser do
@moduledoc """
XRef Table parser
"""
alias PDFParty.Reader.{
IOEx,
Numbers,
Parser,
XRef
}
def parse(io_device, start_offset) do
with {:ok, entries, trailer} <- read_xref_table(start_offset, io_device) do
document = %XRef{
ent... | 24.437908 | 81 | 0.577695 |
ffcd3b4b5545801b5ef74aabaf1ef125b69d6757 | 3,841 | ex | Elixir | lib/zaryn/shared_secrets/mem_tables_loader.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/shared_secrets/mem_tables_loader.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/shared_secrets/mem_tables_loader.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.SharedSecrets.MemTablesLoader do
@moduledoc false
use GenServer
alias Zaryn.Crypto
alias Zaryn.SharedSecrets.MemTables.NetworkLookup
alias Zaryn.SharedSecrets.MemTables.OriginKeyLookup
alias Zaryn.SharedSecrets.NodeRenewal
alias Zaryn.SharedSecrets.NodeRenewalScheduler
alias Zaryn.Tr... | 27.241135 | 97 | 0.672481 |
ffcd71cf9e0ac44e16244547da1c58b32a26f85e | 716 | ex | Elixir | web/gettext.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 299 | 2015-06-24T09:14:27.000Z | 2022-03-03T13:31:59.000Z | web/gettext.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 63 | 2015-07-04T19:42:12.000Z | 2021-12-10T14:27:28.000Z | web/gettext.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 49 | 2015-07-06T13:42:43.000Z | 2021-12-22T21:38:04.000Z | defmodule ElixirStatus.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ElixirStatus.Gettext
# Simple translation
gettext "Here i... | 28.64 | 71 | 0.684358 |
ffcd7de2d7d063e6d1f7d339f25f20d67913e121 | 1,681 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_comment.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_comment.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_comment.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.020833 | 150 | 0.764426 |
ffcdc0eb29a36750426a60e23579cfe3ac7ca078 | 791 | exs | Elixir | config/jsonb.exs | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | config/jsonb.exs | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | config/jsonb.exs | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, backends: []
config :ex_unit,
capture_log: true,
assert_receive_timeout: 2_000,
refute_receive_timeout: 100
default_config = [
column_data_type: "jsonb",
username: "postgres",
password: "postgres",
database: "eventstore_jsonb_test",
hostname: "localhost",
pool_size: 1... | 23.969697 | 86 | 0.768647 |
ffcdedd3cec2e7f075790c1f55a604315f2e78cd | 329 | ex | Elixir | lib/smlr/compressor/zstd.ex | data-twister/smlr | 6c5bbb5d45feb1426c643fef3d714dcee039ad00 | [
"MIT"
] | 5 | 2020-03-03T08:33:50.000Z | 2021-02-22T01:19:01.000Z | lib/smlr/compressor/zstd.ex | data-twister/smlr | 6c5bbb5d45feb1426c643fef3d714dcee039ad00 | [
"MIT"
] | null | null | null | lib/smlr/compressor/zstd.ex | data-twister/smlr | 6c5bbb5d45feb1426c643fef3d714dcee039ad00 | [
"MIT"
] | 1 | 2021-09-27T11:11:09.000Z | 2021-09-27T11:11:09.000Z | defmodule Smlr.Compressor.Zstd do
@moduledoc false
@behaviour Smlr.Compressor
alias Smlr.Config
def name do
"zstd"
end
def default_level do
4
end
def level(opts) do
Config.get_compressor_level(__MODULE__, opts)
end
def compress(data, opts) do
:zstd.compress(data, level(opts))
... | 13.708333 | 49 | 0.693009 |
ffce0281f02e74a55fd30c2469dd36c1e7fd9618 | 139 | ex | Elixir | pulsar/lib/pulsar_web/controllers/page_controller.ex | Dermah/pulsar.wtf | fed5734578eb4c8b93bd1cdcb6e2f6d894a4af9e | [
"MIT"
] | null | null | null | pulsar/lib/pulsar_web/controllers/page_controller.ex | Dermah/pulsar.wtf | fed5734578eb4c8b93bd1cdcb6e2f6d894a4af9e | [
"MIT"
] | 1 | 2021-03-09T21:33:42.000Z | 2021-03-09T21:33:42.000Z | pulsar/lib/pulsar_web/controllers/page_controller.ex | Dermah/pulsar.wtf | fed5734578eb4c8b93bd1cdcb6e2f6d894a4af9e | [
"MIT"
] | null | null | null | defmodule PulsarWeb.PageController do
use PulsarWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.375 | 37 | 0.733813 |
ffce0f3a600aa93c69290d6f5530b8e368d61287 | 1,736 | ex | Elixir | web/web.ex | rustedgrail/where_its_due | 2140006ecfbe29e9d4ebc1895b147a76b5376fc3 | [
"MIT"
] | null | null | null | web/web.ex | rustedgrail/where_its_due | 2140006ecfbe29e9d4ebc1895b147a76b5376fc3 | [
"MIT"
] | null | null | null | web/web.ex | rustedgrail/where_its_due | 2140006ecfbe29e9d4ebc1895b147a76b5376fc3 | [
"MIT"
] | null | null | null | defmodule WhereItsDue.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use WhereItsDue.Web, :controller
use WhereItsDue.Web, :view
The definitions below will be executed for every view,
controller, etc, so k... | 21.170732 | 88 | 0.668779 |
ffce4e30eb0d41fccba67d7528880bd1200541f6 | 1,115 | ex | Elixir | server/lib/idai_field_server_web/channels/user_socket.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/channels/user_socket.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/lib/idai_field_server_web/channels/user_socket.ex | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | defmodule IdaiFieldServerWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", IdaiFieldServerWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be se... | 30.972222 | 90 | 0.701345 |
ffce5b95c3be55db64e1f44cad7cb69811a53c17 | 9,246 | ex | Elixir | lib/coophub/repos_warmer.ex | camplight/coophub | 317b65be4f608f251d0e38b5385ac66c468f8850 | [
"MIT"
] | 1 | 2020-03-11T02:43:24.000Z | 2020-03-11T02:43:24.000Z | lib/coophub/repos_warmer.ex | camplight/coophub | 317b65be4f608f251d0e38b5385ac66c468f8850 | [
"MIT"
] | null | null | null | lib/coophub/repos_warmer.ex | camplight/coophub | 317b65be4f608f251d0e38b5385ac66c468f8850 | [
"MIT"
] | null | null | null | defmodule Coophub.Repos.Warmer do
use Cachex.Warmer
alias Coophub.Repos
alias Coophub.Schemas.{Organization, Repository}
require Logger
@repos_max_fetch Application.get_env(:coophub, :fetch_max_repos)
@repos_cache_name Application.get_env(:coophub, :main_cache_name)
@repos_cache_interval Application.ge... | 26.645533 | 105 | 0.594852 |
ffce6748f755b71daf381af4235148942d5b214d | 886 | exs | Elixir | test/presence_channel_test.exs | pkdcryptos/edgurgel-poxa | d99fbd3ac54317a180349ee91d8e20cdc8270a63 | [
"MIT"
] | null | null | null | test/presence_channel_test.exs | pkdcryptos/edgurgel-poxa | d99fbd3ac54317a180349ee91d8e20cdc8270a63 | [
"MIT"
] | null | null | null | test/presence_channel_test.exs | pkdcryptos/edgurgel-poxa | d99fbd3ac54317a180349ee91d8e20cdc8270a63 | [
"MIT"
] | null | null | null | defmodule Poxa.PresenceChannelTest do
use ExUnit.Case
import :meck
import Poxa.PresenceChannel
setup do
new Poxa.registry
on_exit fn -> unload() end
:ok
end
test "return unique user ids currently subscribed" do
expect(Poxa.registry, :unique_subscriptions, ["presence-channel"], [{ :user_id,... | 29.533333 | 100 | 0.586907 |
ffce73edb253e4b0de68d23bf7a5a278a4cb26f4 | 1,216 | ex | Elixir | lib/challenge_web/views/error_helpers.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | null | null | null | lib/challenge_web/views/error_helpers.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | 4 | 2021-01-18T22:25:19.000Z | 2021-01-20T17:36:23.000Z | lib/challenge_web/views/error_helpers.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | null | null | null | defmodule ChallengeWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static ar... | 35.764706 | 78 | 0.672697 |
ffce74eba5c15c9ed11bc8ae3748365200e609b9 | 13,460 | ex | Elixir | lib/chat_api_web/controllers/slack_controller.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/slack_controller.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/slack_controller.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.SlackController do
use ChatApiWeb, :controller
require Logger
alias ChatApiWeb.SlackAuthorizationView
alias ChatApi.{Conversations, Slack, SlackAuthorizations}
alias ChatApi.SlackAuthorizations.SlackAuthorization
action_fallback(ChatApiWeb.FallbackController)
@spec notify(Plug.Conn... | 34.690722 | 174 | 0.625854 |
ffce7de0f1c1c54f2001f0a8380dfaf06ceb9521 | 1,300 | exs | Elixir | config/dev.exs | bmbferreira/slack-quiet | 3bd08f102e1236189fd81580ded8b6548ddfc2cd | [
"MIT"
] | 5 | 2018-01-15T19:51:37.000Z | 2018-01-31T18:30:01.000Z | config/dev.exs | bmbferreira/slack-quiet | 3bd08f102e1236189fd81580ded8b6548ddfc2cd | [
"MIT"
] | null | null | null | config/dev.exs | bmbferreira/slack-quiet | 3bd08f102e1236189fd81580ded8b6548ddfc2cd | [
"MIT"
] | 1 | 2018-06-25T19:16:39.000Z | 2018-06-25T19:16:39.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :slack_quiet, SlackQuietWeb.Endpoint,
http: [p... | 34.210526 | 170 | 0.737692 |
ffceb23459e62ed058eec90c5d39fbca258c1ea2 | 1,419 | ex | Elixir | clients/licensing/lib/google_api/licensing/v1/model/license_assignment_insert.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/licensing/lib/google_api/licensing/v1/model/license_assignment_insert.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/licensing/lib/google_api/licensing/v1/model/license_assignment_insert.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.191489 | 84 | 0.740662 |
ffceb73db985d8666ab6bb5c72b81653fa82829b | 1,117 | exs | Elixir | config/config.exs | nicolafiorillo/clooney | 588f503966ef5511a5d336c8ed2e04d3aa9728ae | [
"MIT"
] | null | null | null | config/config.exs | nicolafiorillo/clooney | 588f503966ef5511a5d336c8ed2e04d3aa9728ae | [
"MIT"
] | null | null | null | config/config.exs | nicolafiorillo/clooney | 588f503966ef5511a5d336c8ed2e04d3aa9728ae | [
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.