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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2a14c94aac7e27bd5e98a49c7219bebf8fb4977 | 3,796 | exs | Elixir | reactions_server/test/reactions_server_test.exs | nyolamike/bleacher_fire | 4ec43b01d06b44c3e39200248f709400a1d60b70 | [
"Apache-2.0"
] | null | null | null | reactions_server/test/reactions_server_test.exs | nyolamike/bleacher_fire | 4ec43b01d06b44c3e39200248f709400a1d60b70 | [
"Apache-2.0"
] | 1 | 2021-03-10T05:45:29.000Z | 2021-03-10T05:45:29.000Z | reactions_server/test/reactions_server_test.exs | nyolamike/bleacher_fire | 4ec43b01d06b44c3e39200248f709400a1d60b70 | [
"Apache-2.0"
] | null | null | null | defmodule ReactionsServerTest do
use ExUnit.Case, async: true
doctest ReactionsServer
test "Stores users reactions by content_id " do
request_pay_load = %{
type: "reaction",
action: "add",
content_id: "056af828-2efe-4631-8446-c52cabb67367",
user_id: "9e204fff-9b48-4000-8b21-6cc88be2f0... | 39.134021 | 143 | 0.729189 |
b2a198ea0d848774fb62f07a04992ade4276b5d4 | 2,875 | ex | Elixir | lib/structs/application.ex | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 6 | 2018-05-22T07:13:47.000Z | 2019-10-17T03:40:22.000Z | lib/structs/application.ex | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 2 | 2018-11-01T17:11:51.000Z | 2019-06-15T13:33:31.000Z | lib/structs/application.ex | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 2 | 2018-10-29T06:53:41.000Z | 2019-06-14T19:15:56.000Z | defmodule Crux.Structs.Application do
@moduledoc """
Represents a Discord [Application Object](https://discord.com/developers/docs/topics/oauth2#application-object).
"""
@moduledoc since: "0.3.0"
@behaviour Crux.Structs
alias Crux.Structs
alias Crux.Structs.{
Application,
Snowflake,
User,
... | 24.364407 | 114 | 0.553739 |
b2a1ed30fb9f148c4227de5715c10861e66d05d9 | 3,257 | ex | Elixir | lib/railway_ipc/adapters/rabbit_mq.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/railway_ipc/adapters/rabbit_mq.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/railway_ipc/adapters/rabbit_mq.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | defmodule RailwayIpc.Adapters.RabbitMQ do
@moduledoc false
@behaviour RailwayIpc.Adapters.Impl
alias __MODULE__
alias RailwayIpc.Payload
@impl true
@spec child_spec(config :: Keyword.t()) ::
[:supervisor.child_spec() | {module(), term()} | module()]
def child_spec(opts \\ []) do
consumers... | 25.849206 | 98 | 0.596561 |
b2a1f537b44bac092b39befcf4fe599ae61b3012 | 204 | ex | Elixir | testData/org/elixir_lang/formatting/multiple_aliases_align_container_arguments.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/formatting/multiple_aliases_align_container_arguments.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/formatting/multiple_aliases_align_container_arguments.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule Retort.Server.Generic.ResourcesTest do
alias Retort.{Authorization.Cant, Client, Factory, Repo, Resources.Timeout, Response.Error, RemoteTestAuthors,
TestAuthor, TestPost}
end
| 40.8 | 112 | 0.759804 |
b2a2380a58b4e0778c86d4f8cd742b974fbbd2d5 | 1,650 | exs | Elixir | test/advent/y2021/d08_test.exs | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | test/advent/y2021/d08_test.exs | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | test/advent/y2021/d08_test.exs | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | defmodule Advent.Y2021.D08Test do
use ExUnit.Case
import Advent.Y2021.D08, only: [part_one: 1, part_two: 1]
@example_input [
"be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe",
"edbfga begcd cbg gc gcadebf fbgde acbgfd abcde gfcbed gfec | fcgedb cgb dgebacf gc",
... | 35.869565 | 93 | 0.700606 |
b2a23a316088c1e420843ba1b0408e9118f82a01 | 651 | ex | Elixir | lib/zen_ex/query.ex | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | lib/zen_ex/query.ex | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | lib/zen_ex/query.ex | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | defmodule ZenEx.Query do
@moduledoc """
Query for URL
"""
@doc """
Build query from opts.
## Examples
iex> ZenEx.Query.build(per_page: 100)
"?per_page=100"
"""
@spec build(list()) :: String.t()
def build(opts) when is_list(opts) do
fragments =
opts
|> Enum.map(fn {k, v}... | 19.147059 | 89 | 0.50384 |
b2a24dd0c7d940cc5b13534d7da83ba991988ac9 | 1,144 | ex | Elixir | lib/watch_periodically.ex | sumup/tz | d9ee5fe095344955fa352bd3220e1f06a3105169 | [
"Apache-2.0"
] | null | null | null | lib/watch_periodically.ex | sumup/tz | d9ee5fe095344955fa352bd3220e1f06a3105169 | [
"Apache-2.0"
] | 1 | 2021-03-24T08:59:40.000Z | 2021-03-24T08:59:40.000Z | lib/watch_periodically.ex | sumup/tz | d9ee5fe095344955fa352bd3220e1f06a3105169 | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Mint.HTTP) do
defmodule Tz.WatchPeriodically do
use GenServer
require Logger
alias Tz.Updater
alias Tz.PeriodsProvider
defp watch() do
Logger.debug("Tz is checking for IANA time zone database updates")
case Updater.fetch_iana_tz_version() do
{:ok, lates... | 23.346939 | 93 | 0.605769 |
b2a2685389b407165c1dea95834243d6e5deb817 | 988 | ex | Elixir | api/test/support/channel_case.ex | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 34 | 2017-01-02T14:00:25.000Z | 2021-11-20T20:51:41.000Z | api/test/support/channel_case.ex | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 3 | 2017-08-02T19:38:27.000Z | 2022-03-02T03:34:27.000Z | api/test/support/channel_case.ex | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | 5 | 2017-02-19T20:34:09.000Z | 2021-10-05T11:35:11.000Z | defmodule Sling.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 and query models.
Finally, if the test case interacts with the database,
it cannot be asy... | 22.454545 | 67 | 0.697368 |
b2a290d27157170a9c414835ee10dc28cc777296 | 2,236 | ex | Elixir | lib/surface/components/link.ex | philippeqd/surface | 613ef1804721569dc1c59721a3009194b923642a | [
"MIT"
] | 1 | 2021-04-30T14:28:08.000Z | 2021-04-30T14:28:08.000Z | lib/surface/components/link.ex | davydog187/surface | 6547e015a70d06fe20548b5618d0666c4f7481d1 | [
"MIT"
] | null | null | null | lib/surface/components/link.ex | davydog187/surface | 6547e015a70d06fe20548b5618d0666c4f7481d1 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Link do
@moduledoc """
Generates a link to the given URL.
Provides similar capabilities to Phoenix's built-in `link/2` function.
Options `label` and `class` can be set directly and will override anything in `opts`.
All other options are forwarded to the underlying <a> tag.
##... | 24.304348 | 101 | 0.636852 |
b2a29b3c7e3b242c202e09e418d250bb81928954 | 570 | exs | Elixir | exercises/word-count/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/word-count/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/word-count/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2018-07-19T23:43:56.000Z | 2018-07-19T23:43:56.000Z | defmodule Words do
@ascii_punctuation ~r/!|"|\#|\$|%|&|'|\(|\)|\*|\+|,|\.|\/|:|;|<|=|>|\?|@|\[|\\|]|\^|_|`|\{|\||}|~/
def count(sentence) do
sentence
|> String.downcase()
|> remove_punctuation
|> to_words
|> summarize
end
defp remove_punctuation(string), do: String.replace(string, @ascii_p... | 23.75 | 100 | 0.582456 |
b2a2b550936b266fba837684934b036a7f871b6e | 7,364 | exs | Elixir | .credo.exs | os-ex/applescripts_ex | 6c4ffb766bbab32a6cf01dafad5dd27d98399aad | [
"Apache-2.0"
] | null | null | null | .credo.exs | os-ex/applescripts_ex | 6c4ffb766bbab32a6cf01dafad5dd27d98399aad | [
"Apache-2.0"
] | null | null | null | .credo.exs | os-ex/applescripts_ex | 6c4ffb766bbab32a6cf01dafad5dd27d98399aad | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
import CredoNaming.Check.Consistency.ModuleFilename, o... | 37.571429 | 97 | 0.609995 |
b2a30345aff9a23bc05afe87dafaa9e0d2afda65 | 2,110 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/firewall_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/firewall_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/firewall_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.811321 | 239 | 0.718009 |
b2a3598561ab40e526e656aa61dbcfe3b439f715 | 104 | ex | Elixir | lib/alfred/repo.ex | erickgnavar/google-chat-bot | eea16b91b264103047085158344432ce341b02c3 | [
"MIT"
] | 1 | 2020-05-31T22:04:57.000Z | 2020-05-31T22:04:57.000Z | lib/alfred/repo.ex | erickgnavar/google-chat-bot | eea16b91b264103047085158344432ce341b02c3 | [
"MIT"
] | null | null | null | lib/alfred/repo.ex | erickgnavar/google-chat-bot | eea16b91b264103047085158344432ce341b02c3 | [
"MIT"
] | null | null | null | defmodule Alfred.Repo do
use Ecto.Repo,
otp_app: :alfred,
adapter: Ecto.Adapters.Postgres
end
| 17.333333 | 35 | 0.721154 |
b2a37d849f634fc0b609e8750d97238dfc4fd19b | 60 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/StringHeredoc.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/StringHeredoc.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/StringHeredoc.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | """
One
""".{}
"""
One
""".{Two}
"""
One
""".{Two, Three}
| 5 | 16 | 0.333333 |
b2a3d7798cf057755a403bf77c1147c6b8019437 | 703 | exs | Elixir | apps/snitch/mix.exs | azimut/snitch | 2c9fddf3d08f5d129e5130b1a60a85c3c99ec4d9 | [
"Apache-2.0"
] | null | null | null | apps/snitch/mix.exs | azimut/snitch | 2c9fddf3d08f5d129e5130b1a60a85c3c99ec4d9 | [
"Apache-2.0"
] | null | null | null | apps/snitch/mix.exs | azimut/snitch | 2c9fddf3d08f5d129e5130b1a60a85c3c99ec4d9 | [
"Apache-2.0"
] | null | null | null | defmodule Snitch.Mixfile do
use Mix.Project
def project() do
[
app: :snitch,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
build_embedded: Mix.env() == ... | 24.241379 | 57 | 0.554765 |
b2a3eefc7c2a898a42d1c3b617f173b1e4b9d940 | 884 | ex | Elixir | lib/agonex/application.ex | Shikanime/Agonex | 2a0cb3dca54f7267ff43835a08cc78fcdd6bb0e0 | [
"MIT"
] | null | null | null | lib/agonex/application.ex | Shikanime/Agonex | 2a0cb3dca54f7267ff43835a08cc78fcdd6bb0e0 | [
"MIT"
] | null | null | null | lib/agonex/application.ex | Shikanime/Agonex | 2a0cb3dca54f7267ff43835a08cc78fcdd6bb0e0 | [
"MIT"
] | null | null | null | defmodule Agonex.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@config_schema [
health_interval: [
type: :pos_integer
],
grpc_options: [
type: :keyword_list
]
]
def start(_type, _ar... | 23.891892 | 82 | 0.673077 |
b2a3ef909b04b7fa46c983c370bfd8fb237ae175 | 1,514 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/pageviews_counts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/pageviews_counts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/blogger/lib/google_api/blogger/v3/model/pageviews_counts.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... | 30.28 | 100 | 0.716645 |
b2a40185b3632ba0d5d912854aff70451612e855 | 2,584 | ex | Elixir | clients/replica_pool/lib/google_api/replica_pool/v1beta2/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/replica_pool/lib/google_api/replica_pool/v1beta2/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/replica_pool/lib/google_api/replica_pool/v1beta2/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 30.046512 | 119 | 0.721362 |
b2a404e4ad38a29993ec623607cb9182276eea58 | 729 | exs | Elixir | test/renderer_test.exs | goods/mobiledoc-renderer-elixir | 288084f7fc43e65354679448238b218821b6549e | [
"MIT"
] | 4 | 2015-09-15T13:57:51.000Z | 2018-09-02T10:03:49.000Z | test/renderer_test.exs | goods/mobiledoc-renderer-elixir | 288084f7fc43e65354679448238b218821b6549e | [
"MIT"
] | 1 | 2016-09-02T14:39:30.000Z | 2016-09-02T14:39:30.000Z | test/renderer_test.exs | goods/mobiledoc-renderer-elixir | 288084f7fc43e65354679448238b218821b6549e | [
"MIT"
] | 3 | 2016-09-01T21:41:29.000Z | 2021-02-16T11:11:40.000Z | defmodule MobileDoc.RendererTest do
use ExUnit.Case
import MobileDoc.Renderer
test "renders a v0.2.0 mobiledoc" do
mobiledoc = %{
"version" => "0.2.0",
"sections" => [
[], # markers
[ # sections
[1, "P", [
[[], 0, "hello world"]]
]
]
... | 19.702703 | 63 | 0.441701 |
b2a428e2612c4537d3f77ae1d35b1817f154b537 | 637 | ex | Elixir | lib/rp_middleware.ex | DriesDeBackker/rp-middleware | 7066c584236cfb4894dfe40e0a81309e6d8dd1da | [
"MIT"
] | null | null | null | lib/rp_middleware.ex | DriesDeBackker/rp-middleware | 7066c584236cfb4894dfe40e0a81309e6d8dd1da | [
"MIT"
] | null | null | null | lib/rp_middleware.ex | DriesDeBackker/rp-middleware | 7066c584236cfb4894dfe40e0a81309e6d8dd1da | [
"MIT"
] | null | null | null | defmodule ReactiveMiddleware.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# List all child processes to be supervised
children = [
supervisor(ReactiveMiddleware.Registry, [[]]),
supervisor(ReactiveMiddleware.Evaluator, [[]]),
supervisor... | 30.333333 | 64 | 0.708006 |
b2a46a9d95e6ad8fe4234b64935cc75b9da254dc | 2,027 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/route_warnings.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/route_warnings.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/route_warnings.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... | 37.537037 | 194 | 0.708436 |
b2a47534ed6adf77c303f9488e47c441db507043 | 746 | ex | Elixir | lib/ex_oapi/parser/ecto_types/underscore_type.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/ecto_types/underscore_type.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/ecto_types/underscore_type.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | defmodule ExOAPI.EctoTypes.Underscore do
@behaviour Ecto.Type
@type t() :: String.t()
@impl Ecto.Type
def type, do: :string
@impl Ecto.Type
def load(data), do: cast(data)
@impl Ecto.Type
def cast(data) when is_binary(data) do
replaced = String.replace(data, ~r/[\-\s\.]/, "_")
{:ok, replaced}... | 19.631579 | 76 | 0.60992 |
b2a475eff4e4c3ada9d6b3cecaa5ab31156a4f68 | 2,402 | ex | Elixir | lib/liquor.ex | polyfox/liquor | 20be9ce4dc887c5298cee380e32a37f6b3eeb073 | [
"MIT"
] | 2 | 2019-07-28T16:19:17.000Z | 2019-07-31T10:34:01.000Z | lib/liquor.ex | polyfox/liquor | 20be9ce4dc887c5298cee380e32a37f6b3eeb073 | [
"MIT"
] | null | null | null | lib/liquor.ex | polyfox/liquor | 20be9ce4dc887c5298cee380e32a37f6b3eeb073 | [
"MIT"
] | 2 | 2019-07-28T16:19:20.000Z | 2021-12-06T15:19:28.000Z | defmodule Liquor do
@moduledoc """
Liquor is a search filter helper, it provides:
* whitelisting
* transformation
* filtering
"""
@type op ::
:match |
:unmatch |
:== |
:!= |
:>= |
:<= |
:> |
:<
@type search_spec :: %{
whitelist: Liquor.Whitelist.filter(),
t... | 31.605263 | 105 | 0.672773 |
b2a4999291faca0cb9c6d996d47a17c806304dc8 | 69 | exs | Elixir | test/distancia_test.exs | walerian777/distanco | e73e9d4f4d9a8821ac5028537a4d7237ed587cad | [
"MIT"
] | 2 | 2017-12-09T15:10:40.000Z | 2017-12-09T15:40:44.000Z | test/distancia_test.exs | walerian777/distancia | e73e9d4f4d9a8821ac5028537a4d7237ed587cad | [
"MIT"
] | null | null | null | test/distancia_test.exs | walerian777/distancia | e73e9d4f4d9a8821ac5028537a4d7237ed587cad | [
"MIT"
] | null | null | null | defmodule DistanciaTest do
use ExUnit.Case
doctest Distancia
end
| 13.8 | 26 | 0.811594 |
b2a4e16fb09f68f6f3f396c762726c93e3750f83 | 330 | ex | Elixir | lib/algae/tree/binary_search/applicative.ex | Naillik1/algae | cd47031ea151ab7880135f729bc0690cab579a20 | [
"MIT"
] | null | null | null | lib/algae/tree/binary_search/applicative.ex | Naillik1/algae | cd47031ea151ab7880135f729bc0690cab579a20 | [
"MIT"
] | 1 | 2019-03-09T17:15:56.000Z | 2019-03-09T17:15:56.000Z | lib/algae/tree/binary_search/applicative.ex | toraritte/algae | cd47031ea151ab7880135f729bc0690cab579a20 | [
"MIT"
] | null | null | null | alias Algae.Tree.BinarySearch.Node
import TypeClass
use Witchcraft
definst Witchcraft.Applicative, for: Algae.Tree.BinarySearch.Empty do
def of(_, data), do: %Node{node: data}
end
definst Witchcraft.Applicative, for: Algae.Tree.BinarySearch.Node do
@force_type_instance true
def of(_, data), do: %Node{node: ... | 25.384615 | 69 | 0.763636 |
b2a4faaa85ec7765a25fb93372d92baef3a2e705 | 448 | ex | Elixir | lib/neko/plug/authenticate.ex | Pussymuy/neko-achievements | 89bad224a7da25a071f5681b791e87182b05784c | [
"MIT"
] | null | null | null | lib/neko/plug/authenticate.ex | Pussymuy/neko-achievements | 89bad224a7da25a071f5681b791e87182b05784c | [
"MIT"
] | null | null | null | lib/neko/plug/authenticate.ex | Pussymuy/neko-achievements | 89bad224a7da25a071f5681b791e87182b05784c | [
"MIT"
] | null | null | null | defmodule Neko.Plug.Authenticate do
@moduledoc false
import Plug.Conn
def init(opts), do: opts
def call(conn, opts) do
conn |> get_auth_header() |> authenticate(opts[:token])
end
defp get_auth_header(conn) do
{conn, get_req_header(conn, "authorization")}
end
defp authenticate({conn, [token]... | 20.363636 | 59 | 0.676339 |
b2a54076cdcd77107de5b7d7fc9f294c29de9b7a | 2,454 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/gke_service.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/gke_service.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/gke_service.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... | 41.59322 | 293 | 0.710269 |
b2a552a34a74de0811f22ab61267f739b17fe89b | 1,233 | exs | Elixir | mix.exs | danielzfranklin/elixlsx | a5af55ed6c6ab80e22ce636434094b15862a9e0b | [
"MIT"
] | null | null | null | mix.exs | danielzfranklin/elixlsx | a5af55ed6c6ab80e22ce636434094b15862a9e0b | [
"MIT"
] | null | null | null | mix.exs | danielzfranklin/elixlsx | a5af55ed6c6ab80e22ce636434094b15862a9e0b | [
"MIT"
] | null | null | null | defmodule Elixlsx.Mixfile do
use Mix.Project
@source_url "https://github.com/xou/elixlsx"
@version "0.5.1"
def project do
[
app: :elixlsx,
version: @version,
elixir: "~> 1.7",
package: package(),
description: "Elixlsx is a writer for the MS Excel OpenXML format (`.xlsx`).",
... | 22.017857 | 84 | 0.522303 |
b2a595c16b835fadb89a32c37ce784dadebc791d | 329 | ex | Elixir | lib/ex_css.ex | olafura/ex_css | 9e38c853e5e9ea43b4f0650323e8f67c27889068 | [
"MIT"
] | 4 | 2020-01-03T13:48:55.000Z | 2022-03-17T08:00:27.000Z | lib/ex_css.ex | olafura/ex_css | 9e38c853e5e9ea43b4f0650323e8f67c27889068 | [
"MIT"
] | null | null | null | lib/ex_css.ex | olafura/ex_css | 9e38c853e5e9ea43b4f0650323e8f67c27889068 | [
"MIT"
] | null | null | null | defmodule ExCSS do
@moduledoc """
Documentation for ExCSS.Parser.
"""
def parse(css) do
with {:ok, tree, "", _, _, _} <- ExCSS.Parser.parse_css(css) do
{:ok, tree}
end
end
def stringify(tree, options \\ []) do
tree
|> ExCSS.Serializer.serialize(options)
|> IO.iodata_to_binary()
... | 18.277778 | 67 | 0.604863 |
b2a5a200b1b254a9e5af640bc75dc5c246dabf86 | 51,123 | ex | Elixir | lib/phoenix/controller.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller do
import Plug.Conn
alias Plug.Conn.AlreadySentError
require Logger
require Phoenix.Endpoint
@unsent [:unset, :set]
@moduledoc """
Controllers are used to group common functionality in the same
(pluggable) module.
For example, the route:
get "/users/:id", MyAppW... | 31.991865 | 137 | 0.675254 |
b2a5b84fb61fae405119c6c15705ef94c83f1038 | 658 | ex | Elixir | lib/hl7/2.3/segments/pes.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/pes.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/pes.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.Segments.PES do
@moduledoc false
require Logger
alias HL7.V2_3.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
sender_organization_name: DataTypes.Xon,
sender_individual_name: DataTypes.Xcn,
sender_address: DataTypes.Xad,
sender_telephone: DataTypes.Xt... | 26.32 | 46 | 0.708207 |
b2a5c4ea0cd38e575702024e99d9577e7414c3b7 | 2,172 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_configurations_for_user_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/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_configurations_for_user_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_configurations_for_user_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.606557 | 236 | 0.755985 |
b2a5d9241ab0a7562507130ba580f69e807311e6 | 20,845 | ex | Elixir | lib/console_web/controllers/router/device_controller.ex | DasThink/console | 54cde903e3f4e2ca93b14c1d3a7bf3b8a2c7372b | [
"Apache-2.0"
] | 1 | 2021-08-20T17:48:47.000Z | 2021-08-20T17:48:47.000Z | lib/console_web/controllers/router/device_controller.ex | DasThink/console | 54cde903e3f4e2ca93b14c1d3a7bf3b8a2c7372b | [
"Apache-2.0"
] | null | null | null | lib/console_web/controllers/router/device_controller.ex | DasThink/console | 54cde903e3f4e2ca93b14c1d3a7bf3b8a2c7372b | [
"Apache-2.0"
] | null | null | null | defmodule ConsoleWeb.Router.DeviceController do
use ConsoleWeb, :controller
alias Console.Repo
alias Console.Flows
alias Console.Labels
alias Console.Devices
alias Console.Devices.Device
alias Console.Channels
alias Console.Organizations
alias Console.DeviceStats
alias Console.HotspotStats
alias ... | 43.976793 | 193 | 0.573327 |
b2a5f481a93f7db729966a3b7a0c9df0c1e236fb | 2,399 | exs | Elixir | test/chat_api_web/controllers/user_settings_controller_test.exs | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | 1 | 2020-08-13T15:11:12.000Z | 2020-08-13T15:11:12.000Z | test/chat_api_web/controllers/user_settings_controller_test.exs | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | null | null | null | test/chat_api_web/controllers/user_settings_controller_test.exs | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.UserSettingsControllerTest do
use ChatApiWeb.ConnCase
alias ChatApi.{Accounts, Users, Repo}
alias ChatApi.Users.User
@create_attrs %{
email_alert_on_new_message: true
}
@update_attrs %{
email_alert_on_new_message: false
}
@password "supersecret123"
def user_settings_fi... | 28.903614 | 84 | 0.674865 |
b2a5fd25babd031ba8b37cbcbd678b3e8790b4a8 | 929 | exs | Elixir | bench/benchmarks_bench.exs | iboard/repox | 3b2d1a74439ae8ee6634bc8b37756773d1bed51d | [
"Unlicense"
] | null | null | null | bench/benchmarks_bench.exs | iboard/repox | 3b2d1a74439ae8ee6634bc8b37756773d1bed51d | [
"Unlicense"
] | 3 | 2015-05-10T20:49:22.000Z | 2015-05-20T19:18:12.000Z | bench/benchmarks_bench.exs | iboard/repox | 3b2d1a74439ae8ee6634bc8b37756773d1bed51d | [
"Unlicense"
] | null | null | null | defmodule BenchmarksBench do
@test_file "/tmp/#{__MODULE__}.bench"
@batch_size 10
use Benchfella
require Mongo.Bang
require BenchMacros
setup_all do
agent = Repox.start :normal, []
{:ok, agent}
end
bench "10x put to a Mongo collection", [gw: gen_mongo_gw()] do
BenchMacros.add_to_gateway... | 25.108108 | 64 | 0.604952 |
b2a616a0d60309d9f501f7437db07f13ea53e7ce | 46,678 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/organizations.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/organizations.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/organizations.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 53.224629 | 707 | 0.684755 |
b2a64c67ddb6b75e0d2a7f7674dce8cede7fb344 | 468 | ex | Elixir | lib/zcash_explorer/metrics/info_warmer.ex | nighthawk-apps/zcash-explorer | 87e6c61d8665f79de9e5efae6ef924b6096091fa | [
"Apache-2.0"
] | 5 | 2021-11-04T20:19:35.000Z | 2022-02-15T06:55:49.000Z | lib/zcash_explorer/metrics/info_warmer.ex | nighthawk-apps/zcash-explorer | 87e6c61d8665f79de9e5efae6ef924b6096091fa | [
"Apache-2.0"
] | 5 | 2021-09-12T01:36:25.000Z | 2022-02-18T07:28:42.000Z | lib/zcash_explorer/metrics/info_warmer.ex | nighthawk-apps/zcash-explorer | 87e6c61d8665f79de9e5efae6ef924b6096091fa | [
"Apache-2.0"
] | 8 | 2021-07-23T17:11:41.000Z | 2022-03-17T17:07:55.000Z | defmodule ZcashExplorer.Metrics.InfoWarmer do
use Cachex.Warmer
@doc """
Returns the interval for this warmer.
"""
def interval,
do: :timer.seconds(60)
@doc """
Executes this cache warmer.
"""
def execute(_state) do
Zcashex.getinfo() |> handle_result()
end
# ignores the warmer result in... | 18.72 | 46 | 0.649573 |
b2a659d1d2365c35502b647d41329d4cd0f02fef | 3,763 | ex | Elixir | lib/mix/tasks/autox.infer.migrations.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | lib/mix/tasks/autox.infer.migrations.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | lib/mix/tasks/autox.infer.migrations.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Autox.Infer.Migrations do
alias Fox.StringExt
alias Fox.AtomExt
alias Ecto.Association.BelongsTo
use Mix.Task
@shortdoc "Attempts to write migrations for all the files in the `web/models` folder"
def run(_) do
Mix.Task.run "compile", []
migration_cores = models_dir |> File.ls! |... | 30.844262 | 109 | 0.668084 |
b2a65a67beeef82009c131573c481c264778f69b | 1,529 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_add_fulfillment_places_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_add_fulfillment_places_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2beta_add_fulfillment_places_response.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... | 32.531915 | 165 | 0.780903 |
b2a69ce19cc9e0b220ed6398b22ccff003948bd9 | 2,975 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/audit_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/audit_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/audit_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 59.5 | 1,106 | 0.746891 |
b2a6cc1866b831277d594e1fdc8bf64e56c73dd5 | 882 | ex | Elixir | lib/timber/current_context.ex | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | lib/timber/current_context.ex | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | lib/timber/current_context.ex | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | defmodule Timber.CurrentContext do
@moduledoc """
Represents the current context stored in the `Elixir.Logger` metadata.
This module's sole purposes is to load and persist context from that metadata.
The actual context data structure is defined and managed in `Timber.Context`.
"""
alias Timber.Context
@... | 26.727273 | 80 | 0.710884 |
b2a6ce8efdb1d8eb912772e963ec7215a6b49011 | 1,386 | ex | Elixir | elixir/lib/homework_web/schemas/users_schema.ex | jwoods1/web-homework | 74c4c9470a5c56c434cb5452bc2d17a125f593c1 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | jwoods1/web-homework | 74c4c9470a5c56c434cb5452bc2d17a125f593c1 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/users_schema.ex | jwoods1/web-homework | 74c4c9470a5c56c434cb5452bc2d17a125f593c1 | [
"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(:company_id, :id)
field(:first_name, :string)
... | 25.666667 | 50 | 0.657287 |
b2a6e39ecdf8be7860562f97927c405b1439c9a6 | 1,786 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_rename_tag_template_field_enum_value_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_rename_tag_template_field_enum_value_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_rename_tag_template_field_enum_value_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.074074 | 156 | 0.768757 |
b2a7112f3559d75de0554c1601b64a1132b62320 | 5,817 | exs | Elixir | test/plug/adapters/test/conn_test.exs | tsrandrei/plug | 905daae475f6b527b37abd1d934b2f7e52bdf538 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/test/conn_test.exs | tsrandrei/plug | 905daae475f6b527b37abd1d934b2f7e52bdf538 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/test/conn_test.exs | tsrandrei/plug | 905daae475f6b527b37abd1d934b2f7e52bdf538 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Adapters.Test.ConnTest do
use ExUnit.Case, async: true
import Plug.Test
test "read_req_body/2" do
conn = conn(:get, "/", "abcdefghij")
{adapter, state} = conn.adapter
assert {:more, "abcde", state} = adapter.read_req_body(state, length: 5)
assert {:more, "f", state} = adapter.rea... | 37.288462 | 94 | 0.606154 |
b2a77c4b1ce11cc04f0610806b27a3e1852a0e98 | 714 | ex | Elixir | lib/plug/accesslog/default_formatter/response_bytes.ex | mneudert/plug_accesslog | 35e9ee77b0b123a0f7a8c3c76d088b3234cfa0ec | [
"Apache-2.0"
] | 32 | 2015-01-16T08:53:48.000Z | 2021-03-16T09:12:13.000Z | lib/plug/accesslog/default_formatter/response_bytes.ex | mneudert/plug_accesslog | 35e9ee77b0b123a0f7a8c3c76d088b3234cfa0ec | [
"Apache-2.0"
] | 14 | 2015-02-03T20:39:01.000Z | 2020-07-12T11:11:50.000Z | lib/plug/accesslog/default_formatter/response_bytes.ex | mneudert/plug_accesslog | 35e9ee77b0b123a0f7a8c3c76d088b3234cfa0ec | [
"Apache-2.0"
] | 6 | 2015-02-03T15:40:58.000Z | 2020-06-07T14:07:39.000Z | defmodule Plug.AccessLog.DefaultFormatter.ResponseBytes do
@moduledoc """
Calculates response size in bytes.
"""
import Plug.Conn
@doc """
Formats the log output.
"""
@spec format(Plug.Conn.t(), String.t()) :: iodata
def format(conn, fallback) do
bytes =
case get_resp_header(conn, "content... | 24.62069 | 84 | 0.62605 |
b2a7910cdb3f7a96f335b0fa70fce730f351030a | 731 | ex | Elixir | web/gettext.ex | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | web/gettext.ex | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | web/gettext.ex | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | defmodule TeamVacationTool.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 TeamVacationTool.Gettext
# Simple translation
gettex... | 29.24 | 72 | 0.690834 |
b2a7b4442284a73e7833b36bb840d3bc9caf4530 | 5,629 | ex | Elixir | lib/ex_aws/s3/direct_upload.ex | anylabs/ex_aws_s3_direct_upload | 745418e02be321f0e2db181f76fee7a8bcf14ed6 | [
"Apache-2.0"
] | null | null | null | lib/ex_aws/s3/direct_upload.ex | anylabs/ex_aws_s3_direct_upload | 745418e02be321f0e2db181f76fee7a8bcf14ed6 | [
"Apache-2.0"
] | null | null | null | lib/ex_aws/s3/direct_upload.ex | anylabs/ex_aws_s3_direct_upload | 745418e02be321f0e2db181f76fee7a8bcf14ed6 | [
"Apache-2.0"
] | null | null | null | defmodule ExAws.S3.DirectUpload do
@moduledoc """
Pre-signed S3 upload helper for client-side multipart POSTs, with support for using AWS Instance Roles,
which produce temporary credentials. This approach reduces the number of ENV variables to pass, among other benefits.
See:
[Browser-Based Upload using HT... | 28.145 | 144 | 0.645763 |
b2a7c4d435cd2624dd4834f9584ed07dfc1f6f3f | 11,540 | ex | Elixir | lib/ring_logger/client.ex | NeoAlchemist/ring_logger | 632c79f1a908ceaa70ca4949b74ec41f2426de33 | [
"Apache-2.0"
] | 48 | 2018-02-23T08:25:21.000Z | 2022-03-30T00:15:42.000Z | lib/ring_logger/client.ex | NeoAlchemist/ring_logger | 632c79f1a908ceaa70ca4949b74ec41f2426de33 | [
"Apache-2.0"
] | 31 | 2018-02-18T11:27:14.000Z | 2022-01-12T13:12:59.000Z | lib/ring_logger/client.ex | NeoAlchemist/ring_logger | 632c79f1a908ceaa70ca4949b74ec41f2426de33 | [
"Apache-2.0"
] | 10 | 2018-04-14T19:10:19.000Z | 2021-09-25T19:30:15.000Z | defmodule RingLogger.Client do
use GenServer
require Logger
@moduledoc """
Interact with the RingLogger
"""
alias RingLogger.Server
defmodule State do
@moduledoc false
defstruct io: :stdio,
colors: %{
debug: :cyan,
info: :normal,
war... | 27.025761 | 94 | 0.639341 |
b2a7cb39fc4a8efd6b8b652e0921e957660816fd | 2,238 | exs | Elixir | test/serum/file_test.exs | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | test/serum/file_test.exs | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | test/serum/file_test.exs | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | defmodule Serum.FileTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
import Serum.TestHelper
@content1 "The quick brown fox jumps over the lazy dog.\n"
setup_all do
tmp_dir = get_tmp_dir("serum_test_")
File.mkdir_p!(tmp_dir)
File.open!(Path.join(tmp_dir, "file1"), [:write, :utf8], ... | 23.557895 | 78 | 0.590259 |
b2a7d275923f09562a3114ee5911f14ea4350b1c | 2,858 | ex | Elixir | lib/math.ex | revzilla/monetized | 060e92d3b0ef82be15af3203180c6e2c64a66a9a | [
"MIT"
] | null | null | null | lib/math.ex | revzilla/monetized | 060e92d3b0ef82be15af3203180c6e2c64a66a9a | [
"MIT"
] | 1 | 2020-03-16T13:58:52.000Z | 2020-03-16T14:04:22.000Z | lib/math.ex | revzilla/monetized | 060e92d3b0ef82be15af3203180c6e2c64a66a9a | [
"MIT"
] | 2 | 2017-02-01T16:42:59.000Z | 2020-03-14T11:02:41.000Z | defmodule Monetized.Math do
alias Monetized.Money
alias Decimal
@moduledoc """
This module defines arithmetical operations on money.
All functions in this module take either money structs as
parameters from which the currency for the result is inferred or
if you don't care for the currency, any of the ... | 26.71028 | 122 | 0.646256 |
b2a7e05ed1e410bf391bb14a662ca1439e0cde6c | 167 | ex | Elixir | PipeOperator.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | PipeOperator.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | PipeOperator.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | 567
|> abs
|> Integer.to_string
|> String.reverse
|> IO.puts
# Now I truly understand the pipeline operator.
(1..10)
|> Enum.filter(&(&1 > 5))
|> Enum.map &IO.puts/1 | 15.181818 | 47 | 0.646707 |
b2a83f3c402f686919af50a8bd7b04e8dc125c02 | 9,138 | ex | Elixir | apps/omg/lib/omg/state/transaction/payment.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg/lib/omg/state/transaction/payment.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg/lib/omg/state/transaction/payment.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.281853 | 118 | 0.694791 |
b2a845ea3bcb1add38a08251d5824ad23d3581de | 1,232 | exs | Elixir | clients/monitoring/mix.exs | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/monitoring/mix.exs | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/monitoring/mix.exs | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Monitoring.V3.Mixfile do
use Mix.Project
@version "0.8.1"
def project do
[app: :google_api_monitoring,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
... | 25.666667 | 188 | 0.624188 |
b2a8741d35a3de6b2fb7c041b79a4a28e4e32375 | 487 | ex | Elixir | lib/robolia/accounts/user.ex | Robolia/robolia | cbd3ea24db460f213a3411f474d765536ae7871c | [
"MIT"
] | 1 | 2020-01-19T04:27:46.000Z | 2020-01-19T04:27:46.000Z | lib/robolia/accounts/user.ex | Robolia/robolia | cbd3ea24db460f213a3411f474d765536ae7871c | [
"MIT"
] | null | null | null | lib/robolia/accounts/user.ex | Robolia/robolia | cbd3ea24db460f213a3411f474d765536ae7871c | [
"MIT"
] | 1 | 2018-05-13T14:06:46.000Z | 2018-05-13T14:06:46.000Z | defmodule Robolia.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field(:name, :string)
field(:github_id, :integer)
field(:avatar_url, :string)
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(struct, params \\... | 21.173913 | 56 | 0.648871 |
b2a89ab03cd245f7d0a834c76d708c09eb9bd19d | 1,652 | ex | Elixir | lib/conduit_sqs.ex | rafaelsiqueira/conduit_sqs | 2e512fc03a9b36dcb96a5e050bbd44f4781c3840 | [
"MIT"
] | 9 | 2017-11-07T09:53:11.000Z | 2022-03-11T17:38:14.000Z | lib/conduit_sqs.ex | rafaelsiqueira/conduit_sqs | 2e512fc03a9b36dcb96a5e050bbd44f4781c3840 | [
"MIT"
] | 84 | 2018-05-23T11:49:19.000Z | 2021-08-03T05:22:36.000Z | lib/conduit_sqs.ex | rafaelsiqueira/conduit_sqs | 2e512fc03a9b36dcb96a5e050bbd44f4781c3840 | [
"MIT"
] | 11 | 2018-06-07T10:13:03.000Z | 2022-03-12T14:12:40.000Z | defmodule ConduitSQS do
@moduledoc """
Implements the Conduit adapter interface for SQS
"""
use Conduit.Adapter
use Supervisor
require Logger
alias ConduitSQS.{Meta, SQS, OptionValidator}
def child_spec([broker, _, _, _] = args) do
%{
id: name(broker),
start: {__MODULE__, :start_link, a... | 23.6 | 96 | 0.679782 |
b2a8a7769a008ada8e40c6cd6e5a76d6ea5c0167 | 99 | exs | Elixir | test/moneybot_test.exs | ararog/MoneyBOT | b49ad958b9ae6bb0cf712827dde235c2cac4e7e0 | [
"Apache-2.0"
] | 2 | 2015-04-23T17:59:13.000Z | 2015-04-24T18:21:25.000Z | test/moneybot_test.exs | ararog/MoneyBOT | b49ad958b9ae6bb0cf712827dde235c2cac4e7e0 | [
"Apache-2.0"
] | null | null | null | test/moneybot_test.exs | ararog/MoneyBOT | b49ad958b9ae6bb0cf712827dde235c2cac4e7e0 | [
"Apache-2.0"
] | null | null | null | defmodule MoneyBOTTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.375 | 25 | 0.656566 |
b2a8a7daf47e3de1d9c1389e79b4730e7b8924c9 | 263 | ex | Elixir | lib/facebook/config.ex | mgamini/facebook.ex | 66ab4b4864d67b55f3bef6f5b87b08eb35806f5e | [
"MIT"
] | 1 | 2015-03-13T06:56:43.000Z | 2015-03-13T06:56:43.000Z | lib/facebook/config.ex | mgamini/facebook.ex | 66ab4b4864d67b55f3bef6f5b87b08eb35806f5e | [
"MIT"
] | null | null | null | lib/facebook/config.ex | mgamini/facebook.ex | 66ab4b4864d67b55f3bef6f5b87b08eb35806f5e | [
"MIT"
] | null | null | null | defmodule Facebook.Config do
use LibEx.Config, application: :facebook
@doc """
iex> Facebook.Config.graph_url
"graph_url"
"""
defkey :graph_url
@doc """
iex> Facebook.Config.appsecret
"appsecrettokenhere"
"""
defkey :appsecret
end | 16.4375 | 42 | 0.669202 |
b2a8a8a7469d3c8e21a7c889830e9fb18d017462 | 739 | exs | Elixir | mix.exs | liveforeverx/exactor | 65a2cef190d2bd654d08c6f9ea49c8533bc432f6 | [
"MIT"
] | null | null | null | mix.exs | liveforeverx/exactor | 65a2cef190d2bd654d08c6f9ea49c8533bc432f6 | [
"MIT"
] | null | null | null | mix.exs | liveforeverx/exactor | 65a2cef190d2bd654d08c6f9ea49c8533bc432f6 | [
"MIT"
] | null | null | null | defmodule ExActor.Mixfile do
use Mix.Project
@version "0.5.0"
def project do
[
project: "ExActor",
version: @version,
elixir: "~> 0.14.0",
app: :exactor,
deps: deps,
package: [
contributors: ["Saša Jurić"],
licenses: ["MIT"],
links: [{"Github", "ht... | 20.527778 | 79 | 0.549391 |
b2a8c55f81781c2b47679f9c61bf6a3b03456dad | 278 | exs | Elixir | config/config.exs | Bentheburrito/caibot | 301720992d668b02f308343c60f53ae050b5481b | [
"MIT"
] | 2 | 2020-07-23T07:41:25.000Z | 2020-08-10T22:03:25.000Z | config/config.exs | Bentheburrito/caibot | 301720992d668b02f308343c60f53ae050b5481b | [
"MIT"
] | null | null | null | config/config.exs | Bentheburrito/caibot | 301720992d668b02f308343c60f53ae050b5481b | [
"MIT"
] | null | null | null | import Config
# For mix commands in dev enviroments, like "mix ecto.create"
config :caibot, CAIBot.Repo,
database: "caibot",
username: "postgres",
password: "postgres",
hostname: "localhost"
config :caibot,
ecto_repos: [CAIBot.Repo]
config :nosedrum,
prefix: "!"
| 18.533333 | 61 | 0.705036 |
b2a91c70257ef470958ceef1b4e3176e79f0b98a | 3,386 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/cohort_spec.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/cohort_spec.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/cohort_spec.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 62.703704 | 898 | 0.769935 |
b2a933b18653e41cfe5ffd0d134e84206ad6a350 | 145 | ex | Elixir | hexdocs__pm__phoenix__up_and_running.html/hello_test/lib/hello_test_web/controllers/page_controller.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello_test/lib/hello_test_web/controllers/page_controller.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello_test/lib/hello_test_web/controllers/page_controller.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule HelloTestWeb.PageController do
use HelloTestWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.125 | 40 | 0.744828 |
b2a96608b4d80b92e6cbbc79235e5e3526fbf7f7 | 1,493 | ex | Elixir | lib/whenever/output/redirection.ex | styx/whenever.ex | c3d57d6323f3681b790599291a3009e2000782d9 | [
"MIT"
] | null | null | null | lib/whenever/output/redirection.ex | styx/whenever.ex | c3d57d6323f3681b790599291a3009e2000782d9 | [
"MIT"
] | null | null | null | lib/whenever/output/redirection.ex | styx/whenever.ex | c3d57d6323f3681b790599291a3009e2000782d9 | [
"MIT"
] | null | null | null | defmodule Whenever.Output.Redirection do
@moduledoc """
Converts output options
"""
@doc """
Converts input to string
Example:
iex> Whenever.Output.Redirection.to_s("/var/log/cron.log") == ">> /var/log/cron.log 2>&1"
true
iex> Whenever.Output.Redirection.to_s(nil) == ">> /dev/null 2>&1"
true
... | 19.141026 | 91 | 0.600134 |
b2a9797773e28c1d7e39728923d1abca8e4a3e90 | 2,748 | exs | Elixir | test/models/user_test.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 523 | 2017-03-15T15:21:11.000Z | 2022-03-14T03:04:18.000Z | test/models/user_test.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 524 | 2017-03-16T18:31:09.000Z | 2022-02-26T10:02:06.000Z | test/models/user_test.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 60 | 2017-05-01T18:02:28.000Z | 2022-03-04T21:04:56.000Z | defmodule RemoteRetro.UserTest do
use RemoteRetro.DataCase
alias RemoteRetro.User
@mock_google_user_info Application.get_env(:remote_retro, :mock_google_user_info)
@valid_attrs %{
"email" => "mistertestuser@gmail.com",
"google_user_info" => %{test: "one two"},
"family_name" => "Vander Hoop",
... | 32.714286 | 118 | 0.680131 |
b2a9a321a4ee4e3cc96b54090bd7a3871865add4 | 2,330 | exs | Elixir | test/game/command/socials_test.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/command/socials_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/command/socials_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Command.SocialsTest do
use ExVenture.CommandCase
import Test.SocialsHelper
alias Data.Social
alias Game.Character
alias Game.Command.Socials
doctest Socials
setup do
start_and_clear_socials()
%Social{
id: 1,
name: "Smile",
command: "smile",
with_target: ... | 24.787234 | 86 | 0.62618 |
b2a9e6c8d4f022eb7a1437a163114c2bef217f6e | 153 | ex | Elixir | test/fixtures/headers/good_router_with_headers.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 1,305 | 2017-05-12T21:09:40.000Z | 2022-03-31T04:31:49.000Z | test/fixtures/headers/good_router_with_headers.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 95 | 2017-05-15T09:45:41.000Z | 2022-03-23T03:35:48.000Z | test/fixtures/headers/good_router_with_headers.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 86 | 2017-05-15T20:18:59.000Z | 2022-02-11T22:10:34.000Z | defmodule GoodRouter do
pipeline :browser do
plug(:accepts, ["html"])
plug(:put_secure_browser_headers, %{"additional" => "header"})
end
end
| 21.857143 | 66 | 0.686275 |
b2a9ed84b5e8290e9d959935557918b227394fd6 | 27 | ex | Elixir | lib/chemistry.ex | genericlady/chemistry | 35c6b08dbc1c6f9ff59dc20650b24284f0578ef1 | [
"Apache-2.0"
] | 4 | 2016-12-29T18:09:03.000Z | 2021-07-12T14:53:40.000Z | lib/chemistry.ex | genericlady/chemistry | 35c6b08dbc1c6f9ff59dc20650b24284f0578ef1 | [
"Apache-2.0"
] | 3 | 2016-12-26T17:55:00.000Z | 2018-05-07T15:09:51.000Z | lib/chemistry.ex | genericlady/chemistry | 35c6b08dbc1c6f9ff59dc20650b24284f0578ef1 | [
"Apache-2.0"
] | 1 | 2017-06-13T13:28:05.000Z | 2017-06-13T13:28:05.000Z | defmodule Chemistry do
end
| 9 | 22 | 0.851852 |
b2aa12da2b87c659b906341a0281260bd9266c74 | 988 | exs | Elixir | config/test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | config/test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | config/test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :nectar, Nectar.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :nectar, Nectar.Repo,
a... | 32.933333 | 79 | 0.795547 |
b2aa20ba7501a249aacb49755afee290f8967a26 | 4,420 | ex | Elixir | lib/ravenx/strategy/email.ex | tristanperalta/ravenx_email | 521f82d9456176090bae0656124b104a69ed67ac | [
"MIT"
] | null | null | null | lib/ravenx/strategy/email.ex | tristanperalta/ravenx_email | 521f82d9456176090bae0656124b104a69ed67ac | [
"MIT"
] | null | null | null | lib/ravenx/strategy/email.ex | tristanperalta/ravenx_email | 521f82d9456176090bae0656124b104a69ed67ac | [
"MIT"
] | 1 | 2021-03-07T04:41:23.000Z | 2021-03-07T04:41:23.000Z | defmodule Ravenx.Strategy.Email do
@moduledoc """
Ravenx Email strategy.
Used to dispatch notifications via email.
"""
@behaviour Ravenx.StrategyBehaviour
alias Bamboo.Mailer
@doc """
Function used to send a notification via email.
It receives two maps, containing the payload and options.
The ... | 32.262774 | 92 | 0.665611 |
b2aa3e57d32267eb0358ef8876b311871026cfda | 665 | ex | Elixir | api/web/views/bookmark_view.ex | NaiRobley/IntoTheBookmarks | a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda | [
"Apache-2.0"
] | null | null | null | api/web/views/bookmark_view.ex | NaiRobley/IntoTheBookmarks | a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda | [
"Apache-2.0"
] | 6 | 2021-05-25T05:47:16.000Z | 2022-02-26T04:42:31.000Z | api/web/views/bookmark_view.ex | NaiRobley/IntoTheBookmarks | a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda | [
"Apache-2.0"
] | null | null | null | defmodule IntoTheBookmarks.BookmarkView do
use IntoTheBookmarks.Web, :view
def render("index.json", %{bookmarks: bookmarks}) do
%{data: render_many(bookmarks, IntoTheBookmarks.BookmarkView, "bookmark.json")}
end
def render("show.json", %{bookmark: bookmark}) do
%{data: render_one(bookmark, IntoTheBook... | 31.666667 | 83 | 0.726316 |
b2aa4443a063eefbab69127d9b235028f3114c89 | 673 | exs | Elixir | test/views/error_view_test.exs | kimquy/phoenix_webpack_vue_boilerplate | 0067c7facaeb33c8c53fef7779becc708636c97a | [
"MIT"
] | 6 | 2017-05-19T14:00:24.000Z | 2017-07-07T21:19:18.000Z | test/views/error_view_test.exs | kimquy/phoenix_webpack_vue_boilerplate | 0067c7facaeb33c8c53fef7779becc708636c97a | [
"MIT"
] | 1 | 2017-05-19T14:04:37.000Z | 2017-05-19T14:05:31.000Z | test/views/error_view_test.exs | kimquy/phoenix_webpack_vue_boilerplate | 0067c7facaeb33c8c53fef7779becc708636c97a | [
"MIT"
] | null | null | null | defmodule PhoenixWebpackVueBoilerplate.ErrorViewTest do
use PhoenixWebpackVueBoilerplate.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(PhoenixWebpackVueBoilerplate.ErrorView, "404.html", []) ==
... | 30.590909 | 86 | 0.726597 |
b2aa5f9bf7b30c2f0a1a3765ecaf894fea34cfc2 | 3,450 | ex | Elixir | lib/policr_mini/businesses/statistic_business.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini/businesses/statistic_business.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini/businesses/statistic_business.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMini.StatisticBusiness do
@moduledoc """
用户业务功能的实现。
"""
use PolicrMini, business: PolicrMini.Schema.Statistic
import Ecto.Query, only: [from: 2]
@type status :: :passed | :timeout | :wronged | :other
@spec create(map) :: written_returns
def create(params) do
%Statistic{} |> Stati... | 26.744186 | 96 | 0.61913 |
b2aa88bfe5418c997b782635898736b973fd644c | 1,088 | ex | Elixir | lib/opencensus/absinthe/acc.ex | postmates/opencensus_absinthe | 0652d9e68acb5541c1d43a8b1eeb3d2d545be3f7 | [
"Apache-2.0"
] | null | null | null | lib/opencensus/absinthe/acc.ex | postmates/opencensus_absinthe | 0652d9e68acb5541c1d43a8b1eeb3d2d545be3f7 | [
"Apache-2.0"
] | null | null | null | lib/opencensus/absinthe/acc.ex | postmates/opencensus_absinthe | 0652d9e68acb5541c1d43a8b1eeb3d2d545be3f7 | [
"Apache-2.0"
] | null | null | null | defmodule Opencensus.Absinthe.Acc do
@moduledoc false
alias Absinthe.Blueprint
alias Absinthe.Resolution
alias Absinthe.Blueprint.Execution
@accumulator_key :opencensus_absinthe
@typedoc "Our Accumulator within the blueprint."
@type t :: %__MODULE__{
span_ctx: :opencensus.span_ctx(),
... | 32 | 82 | 0.690257 |
b2aaa11300ebc01c3f5b313c34378e3729d54edd | 4,952 | exs | Elixir | test/sanbase/signals/wallet_movement/trigger_eth_wallet_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | test/sanbase/signals/wallet_movement/trigger_eth_wallet_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | test/sanbase/signals/wallet_movement/trigger_eth_wallet_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Signal.EthWalletTriggerTest do
use Sanbase.DataCase, async: false
import Mock
import Sanbase.Factory
alias Sanbase.Model.Project
alias Sanbase.Signal.{
UserTrigger,
Trigger.EthWalletTriggerSettings,
Scheduler
}
alias Sanbase.Clickhouse.HistoricalBalance
setup do
Sa... | 26.913043 | 92 | 0.614701 |
b2aaadbbae3c2360e7aed1a62f39bd3bf43595f5 | 847 | exs | Elixir | mix.exs | koudelka/elixir-lz-string | 59130abee4ddd67b634888a069744a517d620c3e | [
"MIT"
] | 13 | 2016-02-10T06:00:47.000Z | 2019-10-23T06:49:41.000Z | mix.exs | koudelka/elixir-lz-string | 59130abee4ddd67b634888a069744a517d620c3e | [
"MIT"
] | null | null | null | mix.exs | koudelka/elixir-lz-string | 59130abee4ddd67b634888a069744a517d620c3e | [
"MIT"
] | 3 | 2017-06-24T02:13:29.000Z | 2019-09-19T19:36:24.000Z | defmodule LzString.Mixfile do
use Mix.Project
def project do
[app: :lz_string,
version: "0.0.7",
elixir: "~> 1.2",
package: package(),
deps: deps(),
description: "Elixir implementation of pieroxy's lz-string compression algorithm."]
end
# Configuration for the OTP application
#
... | 21.717949 | 88 | 0.618654 |
b2aab706a22f19c8fd5db60c84b4db8826095230 | 457 | ex | Elixir | lib/go_champs_api_web/controllers/search_controller.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/controllers/search_controller.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/controllers/search_controller.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.SearchController do
use GoChampsApiWeb, :controller
alias GoChampsApi.Tournaments
action_fallback GoChampsApiWeb.FallbackController
def index(conn, params) do
tournaments =
case params do
%{"term" => term} ->
term
|> Tournaments.search_tournament... | 20.772727 | 56 | 0.665208 |
b2aab8e53c1489795e931a652e4b0032bf20c691 | 1,965 | ex | Elixir | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/domain_call_evidence.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/domain_call_evidence.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/domain_call_evidence.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... | 39.3 | 200 | 0.751654 |
b2aaf3e800f32975ed2531f9702f7f9bbd14417e | 82 | ex | Elixir | testData/org/elixir_lang/parser_definition/anonymous_function_parsing_test_case/FnNoParenthesesManyArgumentsStabExpressionEnd.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/anonymous_function_parsing_test_case/FnNoParenthesesManyArgumentsStabExpressionEnd.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/anonymous_function_parsing_test_case/FnNoParenthesesManyArgumentsStabExpressionEnd.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | fn positional, key: value -> end
fn one, two -> end
fn one, two, key: value -> end | 27.333333 | 32 | 0.646341 |
b2ab180f6b527c4eb3529074a465e0c171d6ab03 | 631 | ex | Elixir | apps/re_integrations/lib/simulators/credipronto/client.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re_integrations/lib/simulators/credipronto/client.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_integrations/lib/simulators/credipronto/client.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule ReIntegrations.Credipronto.Client do
@moduledoc """
Module to wrap credipronto API logic
"""
@http_client Application.get_env(:re_integrations, :http, HTTPoison)
@url Application.get_env(:re_integrations, :credipronto_simulator_url, "")
@account_id Application.get_env(:re_integrations, :credipron... | 26.291667 | 80 | 0.70523 |
b2ab711c6e2cb7d497540e0dd3c254efdcffde80 | 3,450 | ex | Elixir | lib/rummage_phoenix.ex | acolin/rummage_phoenix | daeae19374e726e76402e2a5ccf4ab0244cf7462 | [
"MIT"
] | 72 | 2017-03-20T02:33:30.000Z | 2018-08-11T14:51:15.000Z | lib/rummage_phoenix.ex | acolin/rummage_phoenix | daeae19374e726e76402e2a5ccf4ab0244cf7462 | [
"MIT"
] | 46 | 2017-03-27T06:43:27.000Z | 2018-07-17T16:49:08.000Z | lib/rummage_phoenix.ex | aditya7iyengar/rummage_phoenix | 221dabcd0681c6c2e4a8c64cd346d0f9e50e607b | [
"MIT"
] | 30 | 2017-03-14T07:10:26.000Z | 2018-07-19T10:14:14.000Z | defmodule Rummage.Phoenix do
@moduledoc """
`Rummage.Phoenix` is a support framework for `Phoenix` that can be used to manipulate
`Phoenix` collections and `Ecto` models with Search, Sort and Paginate operations.
It accomplishes the above operations by using `Rummage.Ecto`, to paginate `Ecto`
queries and add... | 29.487179 | 87 | 0.706087 |
b2ab7ca9b39cde9414dfc2a7161e81a8babc33cf | 1,509 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_section_localization.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_section_localization.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_section_localization.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.4375 | 97 | 0.751491 |
b2abd42099cb8ad994d79bf8317c1c2a66459cce | 7,319 | exs | Elixir | test/jumubase_web/controllers/internal/participant_controller_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | test/jumubase_web/controllers/internal/participant_controller_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | test/jumubase_web/controllers/internal/participant_controller_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.Internal.ParticipantControllerTest do
use JumubaseWeb.ConnCase
alias Jumubase.Foundation.Contest
setup config do
login_if_needed(config)
end
describe "index/2" do
for role <- all_roles() do
@tag login_as: role
test "lists a contest's participants to authorized #{rol... | 33.420091 | 105 | 0.67277 |
b2abe077adc697b559c0e8d34ff6d6c1fe2e66a4 | 3,002 | ex | Elixir | lib/elixir/lib/range.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | defmodule Range do
@moduledoc """
Defines a range.
A range represents a discrete number of values where
the first and last values are integers.
Ranges can be either increasing (`first <= last`) or
decreasing (`first > last`). Ranges are also always
inclusive.
A range is represented internally as a st... | 22.916031 | 79 | 0.594937 |
b2abe1ed7883ddc04286af5b724a6d3df3acbe76 | 5,175 | ex | Elixir | lib/nerves_leds.ex | nerves-project/nerves_leds | 72cc864b335bf865bd6a9d568854907316cc384c | [
"Apache-2.0"
] | 11 | 2016-07-16T10:16:08.000Z | 2020-01-31T01:01:32.000Z | lib/nerves_leds.ex | nerves-project/nerves_leds | 72cc864b335bf865bd6a9d568854907316cc384c | [
"Apache-2.0"
] | 11 | 2015-10-01T18:33:30.000Z | 2020-10-02T22:53:56.000Z | lib/nerves_leds.ex | nerves-project/nerves_leds | 72cc864b335bf865bd6a9d568854907316cc384c | [
"Apache-2.0"
] | 8 | 2016-08-21T04:51:46.000Z | 2020-09-30T21:16:20.000Z | defmodule Nerves.Leds do
@moduledoc """
A convenient interface to setting LEDs defined in `/sys/class/leds`.
While an application could write directly to /sys/class/leds, the main advantage
of using this module is to provide a layer of abstraction that allows easily
defining application-specific led names an... | 26.675258 | 85 | 0.650435 |
b2ac32ff3d422703cfc5eedbacbdabe6664282d0 | 198 | exs | Elixir | priv/repo/migrations/20191025055334_add_name_to_events.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20191025055334_add_name_to_events.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20191025055334_add_name_to_events.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddNameToEvents do
use Ecto.Migration
use Plausible.Repo
def change do
alter table(:events) do
add :name, :string, null: false
end
end
end
| 18 | 54 | 0.712121 |
b2ac4ef4092306bc7f121427a02554a826fe4e02 | 227 | ex | Elixir | lib/elixirdo/base/generated.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | lib/elixirdo/base/generated.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | 5 | 2018-07-20T12:36:25.000Z | 2018-08-01T04:55:46.000Z | lib/elixirdo/base/generated.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | defmodule Elixirdo.Base.Generated do
def type(_type) do
:undefined
end
def type_name(type) do
type
end
def is_typeclass(_) do
false
end
def module(_instance, _typeclass) do
:undefined
end
end
| 12.611111 | 38 | 0.678414 |
b2ac818a35070a18ffaf3365a6615e2479f9ca0d | 1,887 | exs | Elixir | clients/cloud_debugger/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/mix.exs | 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... | 28.164179 | 139 | 0.661367 |
b2ac968aa64988f90eb19f82ff0e24cb131df0cd | 2,577 | ex | Elixir | lib/scripts/wolframalpha.ex | Inouju/mambo | facc3b4bca4ce88ae1e65219d9342105108d97f3 | [
"MIT"
] | 15 | 2016-01-24T00:08:40.000Z | 2017-09-04T05:40:48.000Z | lib/scripts/wolframalpha.ex | Inouju/mambo | facc3b4bca4ce88ae1e65219d9342105108d97f3 | [
"MIT"
] | 7 | 2016-02-07T07:14:16.000Z | 2020-01-26T23:57:09.000Z | lib/scripts/wolframalpha.ex | Inouju/mambo | facc3b4bca4ce88ae1e65219d9342105108d97f3 | [
"MIT"
] | 2 | 2016-03-23T14:16:44.000Z | 2020-03-22T13:46:59.000Z | defmodule Wolframalpha do
@moduledoc """
I'm a mathemagician yo! Wolframalpha script.
Examples
.wa <expression>
.calc <expression>
.convert <expression> to <units>
"""
use GenEvent
def init(key) do
{:ok, key}
end
def handle_event({:msg, {".help wolframalpha", _, {cid,_,_}}}, key) do
... | 23.861111 | 84 | 0.553357 |
b2ac98a57f8fc81711aa29c840301e694e793b69 | 4,834 | ex | Elixir | test/highlight/kernel.ex | LaudateCorpus1/tree-sitter-elixir | de3ec57591aebf451e710fc9c984cf601258baf5 | [
"Apache-2.0"
] | null | null | null | test/highlight/kernel.ex | LaudateCorpus1/tree-sitter-elixir | de3ec57591aebf451e710fc9c984cf601258baf5 | [
"Apache-2.0"
] | null | null | null | test/highlight/kernel.ex | LaudateCorpus1/tree-sitter-elixir | de3ec57591aebf451e710fc9c984cf601258baf5 | [
"Apache-2.0"
] | null | null | null | for x <- 1..10, x < 5, do: {x, x}
# <- keyword
# ^ variable
# ^ operator
# ^ number
# ^ operator
# ^ number
# ^ punctuation.delimiter
# ^ variable
# ^ operator
# ^ number
# ^ punctuation.delimiter
# ... | 27.465909 | 76 | 0.382913 |
b2aceedaef0e8002823e51164ac693dfbdbc2230 | 371 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
pnoun cm cm noun nst;
noun cm verb verb_aux nst;
pnoun cm pn verb nst;
noun cm verb pn cm;
pnoun pn verb verb_aux nst;
noun cm noun conj nst;
noun cm pn particle nst;
noun cm noun verb cm;
cm nst cm noun nst;
adverb pn verb verb_aux nst;
conj P_wh verb verb_aux nst;
noun pn cm verb noun;
... | 21.823529 | 29 | 0.716981 |
b2ad33aef1054d287245e3c6a2603a4d6111bfc9 | 1,153 | exs | Elixir | test/cadet/auth/providers/config_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | test/cadet/auth/providers/config_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | test/cadet/auth/providers/config_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule Cadet.Auth.Providers.ConfigTest do
use ExUnit.Case, async: true
alias Cadet.Auth.Providers.Config
@code "code"
@token "token"
@name "Test Name"
@username "testusername"
@role :student
@config [
%{
token: @token,
code: @code,
name: @name,
username: @username,
... | 21.754717 | 87 | 0.597572 |
b2ad612839472b1791c51da74e552e466b709edb | 331 | ex | Elixir | lib/database_yaml_config_provider/undefined_environment_error.ex | tlux/database_yaml_config_provider | 5b286a3529e28a75bd139be697a3746bb5e247a9 | [
"MIT"
] | null | null | null | lib/database_yaml_config_provider/undefined_environment_error.ex | tlux/database_yaml_config_provider | 5b286a3529e28a75bd139be697a3746bb5e247a9 | [
"MIT"
] | null | null | null | lib/database_yaml_config_provider/undefined_environment_error.ex | tlux/database_yaml_config_provider | 5b286a3529e28a75bd139be697a3746bb5e247a9 | [
"MIT"
] | null | null | null | defmodule DatabaseYamlConfigProvider.UndefinedEnvironmentError do
@moduledoc """
An error that raises when the config file does not contain an entry for the
expected environment.
"""
defexception [:env]
@impl true
def message(exception) do
"Environment not defined in configuration: #{exception.env}"... | 23.642857 | 77 | 0.752266 |
b2ad79a527b42b41ac7fdc1e024bc094dda11fbc | 2,409 | exs | Elixir | test/raxx/context_test.exs | varnerac/raxx | 0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93 | [
"Apache-2.0"
] | 401 | 2016-06-13T13:40:53.000Z | 2022-03-29T17:18:50.000Z | test/raxx/context_test.exs | varnerac/raxx | 0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93 | [
"Apache-2.0"
] | 148 | 2016-06-11T09:59:43.000Z | 2021-03-20T11:28:19.000Z | test/raxx/context_test.exs | varnerac/raxx | 0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93 | [
"Apache-2.0"
] | 31 | 2017-02-23T14:06:29.000Z | 2021-03-22T06:06:53.000Z | defmodule Raxx.ContextTest do
use ExUnit.Case
alias Raxx.Context
@moduletag :context
test "retrieve returns default values if the value is not present" do
assert :default == Context.retrieve(:foo, :default)
assert nil == Context.retrieve(:foo, nil)
end
test "retrieve returns nil as the default d... | 26.472527 | 104 | 0.675384 |
b2ad7d46d81df14637e02f56aee75b1f3d1db1e9 | 518 | ex | Elixir | lib/jaya_currency_converter/accounts/user.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter/accounts/user.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter/accounts/user.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | defmodule JayaCurrencyConverter.Accounts.User do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
alias JayaCurrencyConverter.Exchanges.Transaction
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :name, :string
has_many(:transactions,... | 20.72 | 52 | 0.710425 |
b2ad9b926955e0ec226d9acf801cf4349af3fc07 | 141 | exs | Elixir | test/coinpeer_test.exs | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | 2 | 2019-07-18T19:01:54.000Z | 2019-09-04T05:38:55.000Z | test/coinpeer_test.exs | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | 2 | 2019-07-04T04:26:16.000Z | 2019-08-08T12:50:52.000Z | test/coinpeer_test.exs | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | null | null | null | defmodule CoinpeerTest do
use ExUnit.Case
doctest Coinpeer
test "greets the world" do
assert Coinpeer.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
b2ae6e928b11cac450186a54ec5c6bf88e0aae1c | 266 | ex | Elixir | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/MatchedUnqualifiedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/MatchedUnqualifiedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/MatchedUnqualifiedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @function(
)(
)[key: value]
@function(
)(
) [key: value]
@function(
)(
)[()]
@function(
)(
) [()]
@function(
)(
)[matched_expression]
@function() [matched_expression]
@function(
)(
)[matched_expression,]
@function(
)(
) [matched_expression,]
| 8.060606 | 32 | 0.571429 |
b2ae722350f445eb799de3594183300d0da143be | 6,874 | ex | Elixir | lib/instagram_clone/accounts/user.ex | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 69 | 2021-04-11T21:57:26.000Z | 2022-03-30T01:09:40.000Z | lib/instagram_clone/accounts/user.ex | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 1 | 2021-04-16T17:38:11.000Z | 2021-04-16T17:38:11.000Z | lib/instagram_clone/accounts/user.ex | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 4 | 2021-04-16T10:45:18.000Z | 2021-07-23T15:08:08.000Z | defmodule InstagramClone.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
alias InstagramClone.Accounts.Follows
alias InstagramClone.Notifications.Notification
@derive {Inspect, except: [:password]}
schema "users" do
field :email, :string
field :password, :string, virtual: true
field :ha... | 34.542714 | 144 | 0.686645 |
b2ae72999ed912d83463fa4621371fe57d8f6796 | 3,655 | ex | Elixir | lib/oli_web/views/layout_view.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/views/layout_view.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/views/layout_view.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | defmodule OliWeb.LayoutView do
use OliWeb, :view
import OliWeb.DeliveryView,
only: [
user_role_is_student: 2,
user_name: 1,
user_role_text: 2,
user_role_color: 2,
user_icon: 1,
user_icon: 0,
account_linked?: 1,
logo_link_path: 1
]
import Oli.Branding
al... | 26.294964 | 118 | 0.604651 |
b2ae73741dd8dc6f28c64a9128c91e55e50011fa | 228 | exs | Elixir | config/config.exs | SophisticaSean/sentry-elixir | 94b37b5217f22097e264a41fe7b9a202cc32b716 | [
"MIT"
] | 502 | 2016-09-03T14:23:53.000Z | 2022-03-23T17:36:37.000Z | config/config.exs | SophisticaSean/sentry-elixir | 94b37b5217f22097e264a41fe7b9a202cc32b716 | [
"MIT"
] | 350 | 2016-08-29T18:53:26.000Z | 2022-03-27T15:45:38.000Z | config/config.exs | SophisticaSean/sentry-elixir | 94b37b5217f22097e264a41fe7b9a202cc32b716 | [
"MIT"
] | 147 | 2016-09-22T13:30:57.000Z | 2022-03-14T13:24:14.000Z | use Mix.Config
config :sentry,
included_environments: [:test, :dev, :prod],
environment_name: :dev,
tags: %{},
enable_source_code_context: true,
root_source_code_paths: [File.cwd!()]
import_config "#{Mix.env()}.exs"
| 20.727273 | 46 | 0.701754 |
b2ae78e77fb3136ce62970662f20863c0d062b90 | 2,573 | ex | Elixir | clients/people/lib/google_api/people/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/people/lib/google_api/people/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/people/lib/google_api/people/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.838235 | 157 | 0.666148 |
b2aea3bf2b2b6fdd9105f84ab39a0e5beb23dfc3 | 12,579 | ex | Elixir | lib/cassandra_ecto/migration/cql.ex | vintikzzz/cassandra_ecto | 95375fbc20bd7aedc81d38fe791086cab0d86e84 | [
"Apache-2.0"
] | 35 | 2016-12-12T01:21:10.000Z | 2022-03-17T13:31:11.000Z | lib/cassandra_ecto/migration/cql.ex | vintikzzz/cassandra_ecto | 95375fbc20bd7aedc81d38fe791086cab0d86e84 | [
"Apache-2.0"
] | 14 | 2016-12-24T19:38:55.000Z | 2018-03-15T17:57:44.000Z | lib/cassandra_ecto/migration/cql.ex | vintikzzz/cassandra_ecto | 95375fbc20bd7aedc81d38fe791086cab0d86e84 | [
"Apache-2.0"
] | 12 | 2017-02-21T02:35:08.000Z | 2018-09-01T09:32:31.000Z | defmodule Cassandra.Ecto.Migration.CQL do
@moduledoc """
Generates CQL-queries for Cassandra DDL statements.
"""
alias Ecto.Migration.{Table, Index, Reference, Constraint}
import Cassandra.Ecto.Helper
@creates [:create, :create_if_not_exists]
@drops [:drop, :drop_if_exists]
@allowed_column_opts [... | 41.378289 | 115 | 0.642022 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.