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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffb781aa6ba7a8e426b4d6d513400f995b1fdcec | 2,556 | ex | Elixir | lib/arc_ecto/schema.ex | massetech/arc_ecto | 428bfc0fb2573b037dc856929117e161a82eb9e8 | [
"Apache-2.0"
] | null | null | null | lib/arc_ecto/schema.ex | massetech/arc_ecto | 428bfc0fb2573b037dc856929117e161a82eb9e8 | [
"Apache-2.0"
] | null | null | null | lib/arc_ecto/schema.ex | massetech/arc_ecto | 428bfc0fb2573b037dc856929117e161a82eb9e8 | [
"Apache-2.0"
] | null | null | null | defmodule Arc.Ecto.Schema do
defmacro __using__(_) do
quote do
import Arc.Ecto.Schema
end
end
defmacro cast_attachments(changeset_or_data, params, allowed, options \\ []) do
quote bind_quoted: [changeset_or_data: changeset_or_data,
params: params,
... | 33.194805 | 103 | 0.566119 |
ffb7cdfc6a78230a6adecd186ebe402d159daa68 | 1,325 | ex | Elixir | lib/remedy/schema/voice_state.ex | bdanklin/nostrum | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | 3 | 2021-09-05T09:44:02.000Z | 2022-01-26T15:31:50.000Z | lib/remedy/schema/voice_state.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | lib/remedy/schema/voice_state.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | defmodule Remedy.Schema.VoiceState do
@moduledoc """
Voice State Update Event
"""
use Remedy.Schema
@typedoc "Time at which the user requested to speak, if applicable"
@type t :: %__MODULE__{
guild_id: Snowflake.t(),
channel_id: Snowflake.t(),
user_id: Snowflake.t(),
... | 27.604167 | 85 | 0.621132 |
ffb7f2d7251283f06d6f40856bec60622f38d66c | 3,753 | ex | Elixir | lib/asciinema/asciicasts/asciicast.ex | philschatz/asciinema-server | ed69e0c1737f76ef639ecd9f3ef0e59c3e66250b | [
"Apache-2.0"
] | null | null | null | lib/asciinema/asciicasts/asciicast.ex | philschatz/asciinema-server | ed69e0c1737f76ef639ecd9f3ef0e59c3e66250b | [
"Apache-2.0"
] | null | null | null | lib/asciinema/asciicasts/asciicast.ex | philschatz/asciinema-server | ed69e0c1737f76ef639ecd9f3ef0e59c3e66250b | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.Asciicasts.Asciicast do
use Ecto.Schema
import Ecto.Changeset
alias Asciinema.Accounts.User
alias Asciinema.Asciicasts.Asciicast
alias Asciinema.PngGenerator.PngParams
@default_png_scale 2
@default_theme "asciinema"
schema "asciicasts" do
field :version, :integer
field :fil... | 29.551181 | 209 | 0.706368 |
ffb7f6ec1725237d2493366c9db493b2ecd0a1a3 | 1,513 | ex | Elixir | apps/language_server/lib/language_server/dialyzer/utils.ex | ngscheurich/elixir-ls | 4d671e5fbcab69df70e490d17cfb7affcf4d1383 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/dialyzer/utils.ex | ngscheurich/elixir-ls | 4d671e5fbcab69df70e490d17cfb7affcf4d1383 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/dialyzer/utils.ex | ngscheurich/elixir-ls | 4d671e5fbcab69df70e490d17cfb7affcf4d1383 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Dialyzer.Utils do
@epoch_gregorian_seconds 62_167_219_200
def dialyzable?(module) do
file = :code.which(module)
is_list(file) and match?({:ok, _}, :dialyzer_utils.get_core_from_beam(file))
end
def pathname_to_module(path) do
String.to_atom(Path.basename(path, ".be... | 26.54386 | 99 | 0.635823 |
ffb81c68f0a74aa877f5934e213dbdf04aa3de41 | 1,363 | exs | Elixir | test/swapper_test.exs | dougal/scatter_swap.ex | f596196330081265d4838e884ce73ac2143cd66e | [
"MIT"
] | null | null | null | test/swapper_test.exs | dougal/scatter_swap.ex | f596196330081265d4838e884ce73ac2143cd66e | [
"MIT"
] | null | null | null | test/swapper_test.exs | dougal/scatter_swap.ex | f596196330081265d4838e884ce73ac2143cd66e | [
"MIT"
] | null | null | null | defmodule ScatterSwap.SwapperTest do
use ExUnit.Case
doctest ScatterSwap.Swapper
alias ScatterSwap.Swapper
test "swap() uses a unique map to swap out one number for another" do
assert Swapper.swap([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]) == [9, 0, 1, 2, 3, 4, 5, 6, 7, 9]
assert Swapper.swap([0, 0, 0, 0, 0, 0, ... | 36.837838 | 95 | 0.526779 |
ffb824523c997d6b7fcc390315f3d05e3a3958c4 | 2,718 | ex | Elixir | lib/fun_with_flags/store/cache.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | lib/fun_with_flags/store/cache.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | lib/fun_with_flags/store/cache.ex | gburd/fun_with_flags | db44e02278d7c448c3a06327affe33ab0473a1da | [
"MIT"
] | null | null | null | defmodule FunWithFlags.Store.Cache do
@moduledoc """
The in-memory cache for the feature flag, backed by an ETS table.
This module is not meant to be used directly, but some of its functions can be
useful to debug flag state.
"""
@type ttl :: integer
@type cached_at :: integer
@doc false
use GenSer... | 22.097561 | 82 | 0.633186 |
ffb84fc66212d22939f796c10fc8ca81856f9eea | 19,607 | ex | Elixir | lib/json/ld/context.ex | alexgleason/jsonld-ex | 3205dbef2a9010c29a02813afcbc6586d37a2138 | [
"MIT"
] | 12 | 2020-06-18T18:23:34.000Z | 2022-01-05T15:00:09.000Z | lib/json/ld/context.ex | alexgleason/jsonld-ex | 3205dbef2a9010c29a02813afcbc6586d37a2138 | [
"MIT"
] | 5 | 2020-06-16T16:18:14.000Z | 2021-08-19T20:23:03.000Z | lib/json/ld/context.ex | alexgleason/jsonld-ex | 3205dbef2a9010c29a02813afcbc6586d37a2138 | [
"MIT"
] | 6 | 2020-06-17T22:25:51.000Z | 2021-08-19T19:55:49.000Z | defmodule JSON.LD.Context do
import JSON.LD.{IRIExpansion, Utils}
alias JSON.LD.Context.TermDefinition
alias JSON.LD.Options
alias RDF.IRI
@type local :: map | String.t() | nil
@type remote :: [map]
@type value :: map | String.t() | nil
@type t :: %__MODULE__{
term_defs: map,
def... | 36.376623 | 392 | 0.645178 |
ffb86860a6448fad67441edb6e6919f775536e3d | 4,113 | ex | Elixir | lib/absinthe/phase/subscription/subscribe_self.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/phase/subscription/subscribe_self.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/phase/subscription/subscribe_self.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Phase.Subscription.SubscribeSelf do
use Absinthe.Phase
alias Absinthe.Phase
@moduledoc false
alias Absinthe.Blueprint
@spec run(any, Keyword.t()) :: {:ok, Blueprint.t()}
def run(blueprint, options) do
with %{type: :subscription} = op <- Blueprint.current_operation(blueprint) do
... | 24.628743 | 102 | 0.601751 |
ffb86d6eac0069bb4909d3fcb31437bd0e808fa7 | 513 | ex | Elixir | deps/absinthe/lib/absinthe/blueprint/document/fragment/spread.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | lib/absinthe/blueprint/document/fragment/spread.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | lib/absinthe/blueprint/document/fragment/spread.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Blueprint.Document.Fragment.Spread do
@moduledoc false
alias Absinthe.Blueprint
@enforce_keys [:name]
defstruct [
:name,
directives: [],
source_location: nil,
# Populated by phases
complexity: nil,
flags: %{},
errors: [],
]
@type t :: %__MODULE__{
direc... | 19 | 63 | 0.658869 |
ffb89291f241a95a9b80d36d090a1f719b24e2b7 | 361 | exs | Elixir | test/ua_inspector/short_code_map/client_browsers_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 57 | 2015-04-07T03:10:45.000Z | 2019-03-11T01:01:40.000Z | test/ua_inspector/short_code_map/client_browsers_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 16 | 2015-03-09T19:56:17.000Z | 2019-03-16T14:24:02.000Z | test/ua_inspector/short_code_map/client_browsers_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 15 | 2015-02-02T23:14:00.000Z | 2019-03-16T13:15:05.000Z | defmodule UAInspector.ShortCodeMap.ClientBrowsersTest do
use ExUnit.Case, async: true
alias UAInspector.ShortCodeMap.ClientBrowsers
test "client browser" do
assert "PU" = ClientBrowsers.to_short("Puffin")
end
test "client browser not convertible" do
browser = "--unknown--"
assert ^browser = Cl... | 22.5625 | 56 | 0.745152 |
ffb89bbfdb52391716a770e39c63c6cdfd1d72fb | 952 | ex | Elixir | lib/blockchain_node/socket_handler.ex | dominicletz/blockchain-node | 85837c8c37477f6a145c40eab45d9d99ea606ffe | [
"Apache-2.0"
] | 1 | 2021-12-15T07:09:12.000Z | 2021-12-15T07:09:12.000Z | lib/blockchain_node/socket_handler.ex | dominicletz/blockchain-node | 85837c8c37477f6a145c40eab45d9d99ea606ffe | [
"Apache-2.0"
] | null | null | null | lib/blockchain_node/socket_handler.ex | dominicletz/blockchain-node | 85837c8c37477f6a145c40eab45d9d99ea606ffe | [
"Apache-2.0"
] | null | null | null | defmodule BlockchainNode.SocketHandler do
@behaviour :cowboy_websocket_handler
def init(_, _req, _opts) do
{:upgrade, :protocol, :cowboy_websocket}
end
# Called on websocket connection initialization.
def websocket_init(_type, req, _opts) do
:pg2.join(:websocket_connections, self())
state = %{}
... | 26.444444 | 69 | 0.688025 |
ffb8dc0b9c27d747fb86edb83b1734117ba1b04d | 696 | exs | Elixir | config/test.exs | andrebrito16/lyov | 9f1cf7b85745db3b8acc6dbe14d1633853a2311b | [
"MIT"
] | 1 | 2022-01-03T02:24:58.000Z | 2022-01-03T02:24:58.000Z | config/test.exs | andrebrito16/lyov | 9f1cf7b85745db3b8acc6dbe14d1633853a2311b | [
"MIT"
] | 1 | 2022-01-04T12:59:33.000Z | 2022-01-04T12:59:33.000Z | config/test.exs | andrebrito16/lyov | 9f1cf7b85745db3b8acc6dbe14d1633853a2311b | [
"MIT"
] | 1 | 2022-01-02T17:29:39.000Z | 2022-01-02T17:29:39.000Z | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :cgnaflightsapi, Cgnaflightsapi.Repo,
username: "postgres",
password: "postgres",
database: "cgnafligh... | 30.26087 | 73 | 0.761494 |
ffb8facc38e85ad34bcecffc8bd3b1b397368255 | 4,494 | ex | Elixir | lib/aws/generated/pi.ex | onno-vos-dev/aws-elixir | 00f02c2bce689b932948b6a4d603fd44bb5fc0e9 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/pi.ex | onno-vos-dev/aws-elixir | 00f02c2bce689b932948b6a4d603fd44bb5fc0e9 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/pi.ex | onno-vos-dev/aws-elixir | 00f02c2bce689b932948b6a4d603fd44bb5fc0e9 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.PI do
@moduledoc """
Amazon RDS Performance Insights
Amazon RDS Performance Insights enables you to monitor and explore different
dimensions of database load based on data captured from a... | 39.078261 | 136 | 0.742323 |
ffb90294d9c498e05317539e4eba0b18caa06ebb | 3,350 | exs | Elixir | config/prod.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.603774 | 74 | 0.714328 |
ffb921fd854d4d9d770d98185e4cdfd4b39ffea8 | 3,261 | exs | Elixir | test/spear/connection/configuration_test.exs | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 34 | 2021-04-15T22:16:38.000Z | 2022-03-11T10:20:11.000Z | test/spear/connection/configuration_test.exs | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 32 | 2021-04-05T18:07:35.000Z | 2021-11-04T19:32:58.000Z | test/spear/connection/configuration_test.exs | NFIBrokerage/spear | 611223d2cdba97daa63f2ddd81a08b4f55e72198 | [
"Apache-2.0"
] | 1 | 2021-10-11T15:53:42.000Z | 2021-10-11T15:53:42.000Z | defmodule Spear.Connection.ConfigurationTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
alias Spear.Connection.Configuration, as: Config
test "a minimal connection string produces valid config" do
config = Config.new(connection_string: "esdb://localhost:2113")
assert config.valid? == tr... | 28.356522 | 104 | 0.651334 |
ffb9a559ace683404d012f985a95d5c84c76bacb | 918 | exs | Elixir | mix.exs | shiryel/pawex | b6f08871eb5a971f0bd4226ea18044732ba0e15f | [
"MIT"
] | null | null | null | mix.exs | shiryel/pawex | b6f08871eb5a971f0bd4226ea18044732ba0e15f | [
"MIT"
] | null | null | null | mix.exs | shiryel/pawex | b6f08871eb5a971f0bd4226ea18044732ba0e15f | [
"MIT"
] | null | null | null | defmodule Pawex.MixProject do
use Mix.Project
def project do
[
app: :pawex,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
# ex_docs:
docs: fn ->
{result, _} = Code.eval_file("docs.exs")
result
end,
#... | 22.95 | 62 | 0.545752 |
ffb9e8b7f91f2c1667dc57189f7773aa39d699f9 | 2,355 | exs | Elixir | test/support/ecto_helper.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | null | null | null | test/support/ecto_helper.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | null | null | null | test/support/ecto_helper.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | null | null | null | defmodule Sentinel.TestRepo do
use Ecto.Repo, otp_app: :sentinel
end
alias Sentinel.TestRepo
defmodule Sentinel.Case do
use ExUnit.CaseTemplate
setup_all do
Ecto.Adapters.SQL.begin_test_transaction(TestRepo, [])
on_exit fn -> Ecto.Adapters.SQL.rollback_test_transaction(TestRepo, []) end
:ok
end
s... | 25.053191 | 79 | 0.655202 |
ffba211642569470028755f4277b6e2015bb4f72 | 1,848 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/location_policy.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/location_policy.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/location_policy.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.5 | 290 | 0.746753 |
ffba22f9bcee4cbabaaa63a48fde10817207177d | 468 | ex | Elixir | lib/web/socket/state.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | lib/web/socket/state.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | lib/web/socket/state.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | defmodule Web.Socket.State do
@moduledoc """
Struct for socket state
"""
@doc """
- status: "active" or "inactive"
- game: the connected game when active
- supports: list of features the socket supporst
- channels: list of channels the socket is subscribed to
- players: list of connected players
- ... | 29.25 | 80 | 0.707265 |
ffba25c2187e9a92af870c54c8a7b8515025d64a | 1,983 | ex | Elixir | lib/tables/hmtx.ex | bengtson/fonts | b41daac7e010ec95eb62f2f68c5987429d771e33 | [
"MIT"
] | null | null | null | lib/tables/hmtx.ex | bengtson/fonts | b41daac7e010ec95eb62f2f68c5987429d771e33 | [
"MIT"
] | null | null | null | lib/tables/hmtx.ex | bengtson/fonts | b41daac7e010ec95eb62f2f68c5987429d771e33 | [
"MIT"
] | null | null | null | defmodule Fonts.Tables.Hmtx do
def glyph_metrics_for_index(index, font) do
horiz_metrics_table = font["Tables"]["hmtx"]["Horizontal Metrics Table"]
offset = index * 4
<<
_::binary-size(offset),
advance_width::unsigned-integer-size(16),
left_side_bearing::signed-integer-size(16),
_... | 27.164384 | 76 | 0.598084 |
ffba2e23dab4dc7501c70b82362b5e145ec4161a | 1,065 | exs | Elixir | test/model/build_method_test.exs | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 8 | 2016-04-22T03:13:02.000Z | 2021-01-01T02:49:28.000Z | test/model/build_method_test.exs | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 2 | 2016-10-06T07:20:19.000Z | 2020-03-05T02:04:52.000Z | test/model/build_method_test.exs | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 5 | 2016-07-21T04:31:24.000Z | 2020-03-03T20:23:01.000Z | defmodule Model.BuildMethodTest do
use ExUnit.Case
test "defines a method for building models without specifying attributes" do
person = Person.build
assert person.name == nil
assert person.age == nil
assert person.email == nil
end
test "defines a method for building models by specifying requi... | 30.428571 | 88 | 0.688263 |
ffba82d66737c17fef74c6dabadf3fa3d0c50653 | 3,397 | exs | Elixir | apps/artemis/test/artemis/contexts/user/list_users_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis/test/artemis/contexts/user/list_users_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 3 | 2019-03-05T23:55:09.000Z | 2019-05-29T13:46:34.000Z | apps/artemis/test/artemis/contexts/user/list_users_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule Artemis.ListUsersTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.ListUsers
alias Artemis.Repo
alias Artemis.User
describe "access permissions" do
setup do
insert_list(3, :user)
{:ok, []}
end
test "returns empty list with no permissions" do
use... | 21.23125 | 69 | 0.604062 |
ffba8899c227b00c0f0e7f85d334f18262fc2330 | 9,147 | ex | Elixir | lib/teiserver/clans.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/clans.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/clans.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Clans do
@moduledoc """
The Clans context.
"""
import Ecto.Query, warn: false
alias Central.Helpers.QueryHelpers
alias Central.Repo
alias Teiserver.Clans.Clan
alias Teiserver.Clans.ClanLib
def clan_query(args) do
clan_query(nil, args)
end
def clan_query(id, args) do
... | 21.573113 | 81 | 0.640975 |
ffbaa1d8ca3020faa520d8309dfab581980d1feb | 697 | ex | Elixir | lib/changelog/meta/feeds.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | lib/changelog/meta/feeds.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | lib/changelog/meta/feeds.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | defmodule Changelog.Meta.Feeds do
alias Changelog.{PostView}
import Changelog.Router.Helpers
def rss_feeds(assigns), do: assigns |> get
defp get(%{podcast: podcast}) do
shared() ++ [%{url: feed_url(conn(), :podcast, podcast.slug), title: "#{podcast.name} Podcast Feed"}]
end
defp get(%{view_module: P... | 24.034483 | 105 | 0.629842 |
ffbabc7703352bff7386e35a9ddc3034d052f915 | 2,085 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_link_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_link_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_link_request.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.076923 | 148 | 0.686331 |
ffbac27a320057219eccd70b2c68a023741d7082 | 2,182 | ex | Elixir | lib/on_flow/crypto.ex | dangdennis/on_flow | cf3e59cd47bcdf77ee02131e3f269e71c7277556 | [
"MIT"
] | 3 | 2021-04-09T06:31:43.000Z | 2021-08-10T02:36:08.000Z | lib/on_flow/crypto.ex | dangdennis/on_flow | cf3e59cd47bcdf77ee02131e3f269e71c7277556 | [
"MIT"
] | 3 | 2021-04-09T07:09:32.000Z | 2022-03-13T18:38:00.000Z | lib/on_flow/crypto.ex | dangdennis/on_flow | cf3e59cd47bcdf77ee02131e3f269e71c7277556 | [
"MIT"
] | 3 | 2021-08-14T16:17:07.000Z | 2022-03-13T05:38:50.000Z | defmodule OnFlow.Crypto do
use Bitwise
@doc """
Generates a key pair.
"""
@spec generate_keys() :: %{public_key: String.t(), private_key: String.t()}
def generate_keys do
{<<4>> <> public_key, private_key} = :crypto.generate_key(:ecdh, :secp256r1)
public_key = Base.encode16(public_key, case: :lower... | 28.710526 | 90 | 0.647571 |
ffbac3bfd3786a4b6edb551c0e2af9d7f671de07 | 212 | exs | Elixir | priv/repo/migrations/20210203074554_update_accounts_index.exs | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 64 | 2020-02-10T20:42:46.000Z | 2021-11-16T10:47:50.000Z | priv/repo/migrations/20210203074554_update_accounts_index.exs | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 16 | 2020-02-10T20:45:57.000Z | 2022-03-04T12:53:34.000Z | priv/repo/migrations/20210203074554_update_accounts_index.exs | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 4 | 2020-04-03T17:13:19.000Z | 2020-07-17T12:56:31.000Z | defmodule MailgunLogger.Repo.Migrations.UpdateAccountsIndex do
use Ecto.Migration
def change do
drop(unique_index(:accounts, :api_key))
create(unique_index(:accounts, [:api_key, :domain]))
end
end
| 23.555556 | 62 | 0.754717 |
ffbacc7c4e86b36fb056a4befa3e7ba2cd804256 | 692 | ex | Elixir | apps/ewallet_config/lib/ewallet_config/vault.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_config/lib/ewallet_config/vault.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_config/lib/ewallet_config/vault.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletConfig.Vault do
@moduledoc false
use Cloak.Vault, otp_app: :ewallet_db
@impl Cloak.Vault
def init(config) do
env = Mix.env()
config =
Keyword.put(
config,
:ciphers,
default: {Cloak.Ciphers.AES.GCM, tag: "AES.GCM.V1", key: secret_key(env)}
)
{:... | 20.969697 | 94 | 0.586705 |
ffbadd1b6ecabccdd300f3541c0c62e0e9d49879 | 1,734 | ex | Elixir | lib/archery_competition_web.ex | barnaba/archery-competition | cd5d302431429218aeb72c71fa96981667d8d95c | [
"MIT"
] | null | null | null | lib/archery_competition_web.ex | barnaba/archery-competition | cd5d302431429218aeb72c71fa96981667d8d95c | [
"MIT"
] | 6 | 2018-07-11T21:01:51.000Z | 2018-07-11T21:06:07.000Z | lib/archery_competition_web.ex | barnaba/archery-competition | cd5d302431429218aeb72c71fa96981667d8d95c | [
"MIT"
] | null | null | null | defmodule ArcheryCompetitionWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ArcheryCompetitionWeb, :controller
use ArcheryCompetitionWeb, :view
The definitions below will be execut... | 25.5 | 70 | 0.710496 |
ffbb40494e0e0c55c246e7c4bbf54273c5d135b7 | 1,424 | ex | Elixir | lib/google_api/you_tube/v3/model/video_suggestions.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_suggestions.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_suggestions.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 33.116279 | 123 | 0.754213 |
ffbb5b0614a0cf16a62856e17d6d066d99e1efef | 3,574 | ex | Elixir | lib/ecto/repo/supervisor.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/ecto/lib/ecto/repo/supervisor.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/repo/supervisor.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Ecto.Repo.Supervisor do
@moduledoc false
use Supervisor
@doc """
Starts the repo supervisor.
"""
def start_link(repo, otp_app, adapter, opts) do
name = opts[:name] || Application.get_env(otp_app, repo)[:name] || repo
Supervisor.start_link(__MODULE__, {name, repo, otp_app, adapter, opts},... | 28.141732 | 92 | 0.63906 |
ffbb6d8714ec82ca5a61d345fd6a65abf39a914d | 1,651 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/conference_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/calendar/lib/google_api/calendar/v3/model/conference_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/conference_properties.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 ... | 32.372549 | 157 | 0.73834 |
ffbb898b42e514a102440db2c0234de24fa79575 | 28,101 | ex | Elixir | lib/ash/api/api.ex | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | lib/ash/api/api.ex | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | lib/ash/api/api.ex | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | defmodule Ash.Api do
@moduledoc """
An Api allows you to interact with your resources, and holds non-resource-specific configuration.
For example, the json api extension adds an api extension that lets you toggle authorization on/off
for all resources in that Api. You include them in an Api like so:
```elix... | 29.705074 | 173 | 0.569553 |
ffbbd002e8364dd267b87df9e4059d3c9e1c40fe | 25,012 | exs | Elixir | installer/test/phx_new_test.exs | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | 1 | 2022-02-09T00:31:50.000Z | 2022-02-09T00:31:50.000Z | installer/test/phx_new_test.exs | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | null | null | null | installer/test/phx_new_test.exs | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | null | null | null | Code.require_file "mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phx.NewTest do
use ExUnit.Case, async: false
import MixHelper
import ExUnit.CaptureIO
@app_name "phx_blog"
setup do
# The shell asks to install deps.
# We will politely say not.
send self(), {:mix_shell_input, :yes?, false}
:ok... | 40.212219 | 130 | 0.649568 |
ffbbded9f0d0563362e989838ceb3501b24837e3 | 415 | ex | Elixir | lib/casino/players/player_supervisor.ex | vellov/SQTests | 3bf20bb15245c11547efd885532be15044493eaf | [
"MIT"
] | null | null | null | lib/casino/players/player_supervisor.ex | vellov/SQTests | 3bf20bb15245c11547efd885532be15044493eaf | [
"MIT"
] | null | null | null | lib/casino/players/player_supervisor.ex | vellov/SQTests | 3bf20bb15245c11547efd885532be15044493eaf | [
"MIT"
] | null | null | null | defmodule Casino.Players.PlayerSupervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [worker(Casino.Players.Player, [], restart: :temporary)]
supervise(children, strategy: :simple_one_for_one)
end
def new_playe... | 23.055556 | 71 | 0.742169 |
ffbc5439775ff349024b985b777bec2e5e5fd2ca | 1,262 | ex | Elixir | lib/towwwer_web/endpoint.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 1 | 2019-05-03T13:39:40.000Z | 2019-05-03T13:39:40.000Z | lib/towwwer_web/endpoint.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 13 | 2019-03-27T05:40:41.000Z | 2019-05-24T10:43:31.000Z | lib/towwwer_web/endpoint.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | null | null | null | defmodule TowwwerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :towwwer
socket "/socket", TowwwerWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your stati... | 26.851064 | 69 | 0.708399 |
ffbc64c132075fea07690dc963b9d43231d6059a | 3,330 | ex | Elixir | samples/client/petstore/elixir/lib/swagger_petstore/api/pet.ex | dangthaison91/swagger-codegen-moya | d0f3a119f2af176cfad10a80c77dc9c77c9ed22f | [
"Apache-2.0"
] | 3 | 2017-09-07T16:18:04.000Z | 2020-11-05T02:20:50.000Z | samples/client/petstore/elixir/lib/swagger_petstore/api/pet.ex | dangthaison91/swagger-codegen-moya | d0f3a119f2af176cfad10a80c77dc9c77c9ed22f | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/swagger_petstore/api/pet.ex | dangthaison91/swagger-codegen-moya | d0f3a119f2af176cfad10a80c77dc9c77c9ed22f | [
"Apache-2.0"
] | 5 | 2017-05-01T15:47:40.000Z | 2021-12-29T03:23:06.000Z | defmodule SwaggerPetstore.Api.Pet do
@moduledoc """
Documentation for SwaggerPetstore.Api.Pet.
"""
use Tesla
plug Tesla.Middleware.BaseUrl, "http://petstore.swagger.io/v2"
plug Tesla.Middleware.JSON
def add_pet(body) do
method = [method: :post]
url = [url: "/pet"]
query_params = []
head... | 27.073171 | 145 | 0.603003 |
ffbc690934e031c3e9131b238e534e4fc51c7316 | 7,834 | ex | Elixir | lib/elsa/supervisor.ex | mhanberg/elsa | 53eb831ca4abcc0f2de6a8a9686bd13fc4767ca6 | [
"Apache-2.0"
] | 76 | 2019-05-31T20:35:19.000Z | 2022-02-26T10:15:27.000Z | lib/elsa/supervisor.ex | mhanberg/elsa | 53eb831ca4abcc0f2de6a8a9686bd13fc4767ca6 | [
"Apache-2.0"
] | 44 | 2019-06-13T14:43:30.000Z | 2022-03-31T12:16:19.000Z | lib/elsa/supervisor.ex | mhanberg/elsa | 53eb831ca4abcc0f2de6a8a9686bd13fc4767ca6 | [
"Apache-2.0"
] | 11 | 2019-06-05T02:23:06.000Z | 2022-02-10T16:14:33.000Z | defmodule Elsa.Supervisor do
@moduledoc """
Top-level supervisor that orchestrates all other components
of the Elsa library. Allows for a single point of integration
into your application supervision tree and configuration by way
of a series of nested keyword lists
Components not needed by a running applic... | 33.054852 | 128 | 0.693771 |
ffbc79e2965a8970b257ec5f411ff5c6305e3bea | 412 | ex | Elixir | test/support/conn_case.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | test/support/conn_case.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
"""
use ExUnit.CaseTemplate
using do
quote do
# Import conveniences for testing with connections
use Surface.LiveViewTest
@endpoint Endpoi... | 18.727273 | 56 | 0.699029 |
ffbcc49382e8bbe90e7bc8b01690aec8229175c6 | 399 | ex | Elixir | lib/ecto_tablestore/hashids.ex | xosdy/ecto_tablestore | bea08b70fcf7a12932e677b63882cfb936956b1a | [
"MIT"
] | null | null | null | lib/ecto_tablestore/hashids.ex | xosdy/ecto_tablestore | bea08b70fcf7a12932e677b63882cfb936956b1a | [
"MIT"
] | null | null | null | lib/ecto_tablestore/hashids.ex | xosdy/ecto_tablestore | bea08b70fcf7a12932e677b63882cfb936956b1a | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Hashids) do
defmodule EctoTablestore.Hashids do
@moduledoc false
use Ecto.Type
def type, do: :binary_id
def cast(id) when is_bitstring(id) do
{:ok, id}
end
def cast(_), do: :error
def load(term) when is_bitstring(term) do
{:ok, term}
end
def ... | 15.96 | 45 | 0.598997 |
ffbcdb9865fed310a80ef1e7c7cbbad61b46a313 | 2,996 | ex | Elixir | lib/chroxy/proxy_listener.ex | heydtn/chroxy | 68f2188ba835239bcb9e40856e117ef604c2248e | [
"MIT"
] | 4 | 2019-05-20T12:54:00.000Z | 2019-05-23T02:08:12.000Z | lib/chroxy/proxy_listener.ex | zacksiri/chroxy | 99b882d01271ea4353762961bc8030d70212bd42 | [
"MIT"
] | null | null | null | lib/chroxy/proxy_listener.ex | zacksiri/chroxy | 99b882d01271ea4353762961bc8030d70212bd42 | [
"MIT"
] | null | null | null | defmodule Chroxy.ProxyListener do
@moduledoc """
Reponsible for accepting upstream connections from client, and delegating
ownership of the connection to a new `Chroxy.ProxyServer` process which will
in turn create the transparent forwarding channel to the downstream host.
"""
use GenServer
require Logge... | 25.827586 | 98 | 0.63251 |
ffbd05af3366bf364a4fd0e271f77a361b4715ca | 8,012 | ex | Elixir | lib/ory/hydra.ex | churcho/ory-hydra-elixir | 6610df7bfc6cb4ae569a23cf7f7840d9873a28c2 | [
"MIT"
] | null | null | null | lib/ory/hydra.ex | churcho/ory-hydra-elixir | 6610df7bfc6cb4ae569a23cf7f7840d9873a28c2 | [
"MIT"
] | null | null | null | lib/ory/hydra.ex | churcho/ory-hydra-elixir | 6610df7bfc6cb4ae569a23cf7f7840d9873a28c2 | [
"MIT"
] | null | null | null | defmodule ORY.Hydra do
@moduledoc """
ORY Hydra is an open source OAuth 2.0 and OpenID Connect 1.0 provider. This
project provides an Elixir client for interacting with ORY Hydra's
administrative REST API.
For additional information about ORY Hydra please refer to their
[official documentation](https://www... | 21.308511 | 77 | 0.604718 |
ffbd2e7de0c2e87966a42f493d0207ce81b9aeed | 2,699 | ex | Elixir | lib/game/gossip.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/gossip.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/gossip.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Game.Gossip do
@moduledoc """
Callback module for Gossip
"""
require Logger
alias Game.Channel
alias Game.Channels
alias Game.Character
alias Game.Message
alias Game.Session
@behaviour Gossip.Client.Core
@behaviour Gossip.Client.Players
@behaviour Gossip.Client.Tells
@behaviour Go... | 22.680672 | 106 | 0.639126 |
ffbd329b93290f30af89891a3e1738c980ba50a6 | 1,351 | ex | Elixir | lib/elixir/lib/kernel/error_handler.ex | Sae497/elixir | 666a0bca8daac6a9dffb80db837c883805a6a22e | [
"Apache-2.0"
] | 1 | 2018-02-24T19:48:35.000Z | 2018-02-24T19:48:35.000Z | lib/elixir/lib/kernel/error_handler.ex | Sae497/elixir | 666a0bca8daac6a9dffb80db837c883805a6a22e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/error_handler.ex | Sae497/elixir | 666a0bca8daac6a9dffb80db837c883805a6a22e | [
"Apache-2.0"
] | null | null | null | # Implement error_handler pattern for Erlang
# which is integrated with Kernel.ParallelCompiler
defmodule Kernel.ErrorHandler do
@moduledoc false
@spec undefined_function(module, atom, list) :: term
def undefined_function(module, fun, args) do
ensure_loaded(module) or ensure_compiled(module, :module, true)
... | 30.704545 | 81 | 0.709104 |
ffbd6b9b789c11abba170b70ee6ec4bc2e203fd9 | 267 | ex | Elixir | lib/geo/h3index.ex | tierralibre/geo | c02606e1a524bcf20e6f49160c01a79a7eb5e6d8 | [
"MIT"
] | null | null | null | lib/geo/h3index.ex | tierralibre/geo | c02606e1a524bcf20e6f49160c01a79a7eb5e6d8 | [
"MIT"
] | null | null | null | lib/geo/h3index.ex | tierralibre/geo | c02606e1a524bcf20e6f49160c01a79a7eb5e6d8 | [
"MIT"
] | null | null | null | defmodule Geo.H3Index do
@moduledoc """
Defines the H3Index struct.
"""
#@type latitude :: number
#@type longitude :: number
#@type t :: %Geo.H3Index{coordinates: {longitude, latitude}, srid: integer | nil, properties: map}
defstruct h3index: nil
end
| 22.25 | 100 | 0.681648 |
ffbd82c0be32f7b479428d48116781758cc88753 | 7,066 | exs | Elixir | test/mongo/change_stream_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | null | null | null | test/mongo/change_stream_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | null | null | null | test/mongo/change_stream_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.ChangeStreamTest do
use ExUnit.Case, async: false # DO NOT MAKE ASYNCHRONOUS
setup_all do
assert {:ok, top} = Mongo.TestConnection.connect
Mongo.drop_database(top)
assert {:ok, %Mongo.InsertOneResult{}} = Mongo.insert_one(top, "users", %{name: "Waldo"})
%{pid: top}
end
setup do... | 32.562212 | 172 | 0.645202 |
ffbd93d27fdff37b00fd053a58c98f18f994b35f | 1,923 | exs | Elixir | mix.exs | zekus/miss-elixir | 675107573b30b9f1843930be980c72f755503678 | [
"Apache-2.0"
] | null | null | null | mix.exs | zekus/miss-elixir | 675107573b30b9f1843930be980c72f755503678 | [
"Apache-2.0"
] | null | null | null | mix.exs | zekus/miss-elixir | 675107573b30b9f1843930be980c72f755503678 | [
"Apache-2.0"
] | null | null | null | defmodule Miss.MixProject do
use Mix.Project
@app :miss
@name "Miss Elixir"
@repo "https://github.com/prodis/miss-elixir"
@version "0.1.4"
def project do
[
app: @app,
name: @name,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(... | 22.103448 | 95 | 0.573583 |
ffbdd55afd92db790ae91e732c5999df95a7c3a7 | 328 | ex | Elixir | lib/trento/domain/cluster/events/cluster_discovered_health_changed.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento/domain/cluster/events/cluster_discovered_health_changed.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento/domain/cluster/events/cluster_discovered_health_changed.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Domain.Events.ClusterDiscoveredHealthChanged do
@moduledoc """
This event is emitted when the discovered health of a cluster changes.
"""
use Trento.Event
defevent do
field :cluster_id, :string
field :discovered_health, Ecto.Enum, values: [:passing, :warning, :critical, :unknown]
... | 25.230769 | 90 | 0.737805 |
ffbdda6f3671d442ffbc8c83b08b3bd3f190086c | 15,947 | ex | Elixir | lib/core/asset.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Asset do
@moduledoc """
Top level module, with some helpers. Persists application resources to disk.
Submodules of this module usually (but not always) correspond to a
resource in the REST API. See official REST API docs for details.
"""
alias FarmbotOS.Asset.{
CriteriaRetriever,
... | 24.309451 | 86 | 0.625384 |
ffbdf4793a62ef57dc9f6155d988a063558cffa7 | 1,367 | ex | Elixir | apps/utils/lib/helpers/pid_helper.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/utils/lib/helpers/pid_helper.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/utils/lib/helpers/pid_helper.ex | 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 ... | 29.717391 | 74 | 0.70812 |
ffbe03caf9af9b8afd8c41ce3376e70b95000c79 | 1,187 | ex | Elixir | web/channels/user_socket.ex | seanreed1111/phoenix-first_app | 240d4d586a365392aa8c1fdf1a77986b7e7bd5f6 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | seanreed1111/phoenix-first_app | 240d4d586a365392aa8c1fdf1a77986b7e7bd5f6 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | seanreed1111/phoenix-first_app | 240d4d586a365392aa8c1fdf1a77986b7e7bd5f6 | [
"Apache-2.0"
] | null | null | null | defmodule FirstApp.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", FirstApp.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket, timeout: 45_000
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used t... | 31.236842 | 83 | 0.703454 |
ffbe1f934c3006daa6f3dd129d82da255e693b0d | 1,053 | ex | Elixir | elixir/camp/image_snatcher/image_snatcher.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/camp/image_snatcher/image_snatcher.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/camp/image_snatcher/image_snatcher.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule ImageSnatcher do
def start() do
get_cwd_list() |> sort_files
end
def get_cwd_list() do
files = File.ls(".")
case files do
{:ok, files} -> files
{:error, reason} -> IO.puts ~s{#{:file.format_error(reason)}}
end
end
def sort_files(files) do
Enum.each(files, fn file ->... | 23.4 | 70 | 0.555556 |
ffbe2fe9f92dd09506b83def3a8a25d95aa9839e | 2,143 | ex | Elixir | lib/time.ex | supernintendo/exmorph | aea3d65bd188003937478443827ab8df32bc8a01 | [
"RSA-MD",
"Apache-1.1"
] | null | null | null | lib/time.ex | supernintendo/exmorph | aea3d65bd188003937478443827ab8df32bc8a01 | [
"RSA-MD",
"Apache-1.1"
] | null | null | null | lib/time.ex | supernintendo/exmorph | aea3d65bd188003937478443827ab8df32bc8a01 | [
"RSA-MD",
"Apache-1.1"
] | null | null | null | defmodule Exmorph.Time do
@doc """
Takes a string representing time and returns the integer
value for that time in nanoseconds.
## Examples
iex> Exmorph.Time.from_string("100000ms")
1.0e11
iex> Exmorph.Time.from_string("10s")
10000000000
iex> Exmorph.Time.from_string("3min"... | 22.092784 | 61 | 0.607093 |
ffbe32998b7ff64031705e4e0fb247d77814e19f | 963 | exs | Elixir | test/rocketpay_web/views/users_view_test.exs | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | test/rocketpay_web/views/users_view_test.exs | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | test/rocketpay_web/views/users_view_test.exs | tairone-livinalli/rocketpay | f58be9330b678a486d717613790e9e3d9f0fe9d1 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersViewTest do
use RocketpayWeb.ConnCase
import Phoenix.View
alias Rocketpay.{Account, User}
alias RocketpayWeb.UsersView
test "renders create.json" do
name = "Tairone"
password = "123456"
nickname = "Tai"
email = "taironelivinalli@hotmail.com"
age = 25
{:ok... | 22.928571 | 73 | 0.557632 |
ffbe3aff00ee9592c6d670c4fa60adbbc94506bf | 2,139 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1/model/version.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/model/version.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/model/version.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... | 38.196429 | 146 | 0.711547 |
ffbe6e815da3362a5e06418821ec9cd0e29c4e6f | 249 | ex | Elixir | priv/example-projects/foo_bar_umbrella/apps/foo_bar/lib/foo_bar.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar/lib/foo_bar.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar/lib/foo_bar.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | defmodule FooBar do
@moduledoc """
FooBar keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.9 | 66 | 0.751004 |
ffbeae46644b10bba94105bbedd736e82f49c1eb | 250 | exs | Elixir | priv/repo/migrations/20190419162425_rename_table_auctions_userid_to_sellerid.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2021-02-01T12:09:07.000Z | 2021-03-14T12:20:43.000Z | priv/repo/migrations/20190419162425_rename_table_auctions_userid_to_sellerid.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 11 | 2019-04-09T18:01:16.000Z | 2019-05-16T15:02:24.000Z | priv/repo/migrations/20190419162425_rename_table_auctions_userid_to_sellerid.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2019-04-30T22:43:18.000Z | 2019-05-15T20:34:49.000Z | defmodule Renaissance.Repo.Migrations.RenameTableAuctionsUseridToSellerid do
use Ecto.Migration
def up do
rename table(:auctions), :user_id, to: :seller_id
end
def down do
rename table(:auctions), :seller_id, to: :user_id
end
end
| 20.833333 | 76 | 0.744 |
ffbebac75e1fd568084cdf415fef8919e07f06a3 | 8,213 | ex | Elixir | lib/chicken_race.ex | xeejp/chicken-race | e6a3cd0663fe90550f79ae6df3b5d385aa65f1a7 | [
"MIT"
] | null | null | null | lib/chicken_race.ex | xeejp/chicken-race | e6a3cd0663fe90550f79ae6df3b5d385aa65f1a7 | [
"MIT"
] | null | null | null | lib/chicken_race.ex | xeejp/chicken-race | e6a3cd0663fe90550f79ae6df3b5d385aa65f1a7 | [
"MIT"
] | null | null | null | defmodule ChickenRace do
use XeeThemeScript
@experiment_types [
"interaction",
"interaction_with_no_information"
]
# Callbacks
def script_type do
:message
end
def install, do: nil
def init do
{:ok, %{"data" => %{
started: false,
experiment_type: "interaction",
pa... | 31.467433 | 95 | 0.551686 |
ffbed87a9b9650778871a4835fdbd31420505536 | 1,091 | ex | Elixir | lib/medic/checks/homebrew.ex | geometerio/medic | ce5245b468f443174cfd45953db74172ea23e1e4 | [
"MIT"
] | 3 | 2021-06-18T18:42:35.000Z | 2022-02-09T01:54:58.000Z | lib/medic/checks/homebrew.ex | geometerio/medic | ce5245b468f443174cfd45953db74172ea23e1e4 | [
"MIT"
] | 3 | 2021-06-17T19:02:32.000Z | 2021-06-17T19:44:35.000Z | lib/medic/checks/homebrew.ex | geometerio/medic | ce5245b468f443174cfd45953db74172ea23e1e4 | [
"MIT"
] | 1 | 2022-03-10T19:16:14.000Z | 2022-03-10T19:16:14.000Z | defmodule Medic.Checks.Homebrew do
@moduledoc """
Expects a Brewfile to be present, and homebrew packages declared in the
Brewfile to be up-to-date.
## Examples
{Check.Homebrew, :bundled?}
"""
@doc """
Expects there to be a Brewfile, and for all the dependencies in that Brewfile
to be up to dat... | 27.275 | 94 | 0.618698 |
ffbeeb85c4638470d73a814dbc6a5be2a62caa89 | 261 | ex | Elixir | test/support/store.ex | xfumihiro/elasticsearch-elixir | bd71da03f54dd0c1b892d60472d05a4fe2be441e | [
"MIT"
] | null | null | null | test/support/store.ex | xfumihiro/elasticsearch-elixir | bd71da03f54dd0c1b892d60472d05a4fe2be441e | [
"MIT"
] | null | null | null | test/support/store.ex | xfumihiro/elasticsearch-elixir | bd71da03f54dd0c1b892d60472d05a4fe2be441e | [
"MIT"
] | null | null | null | defmodule Elasticsearch.Test.Store do
@moduledoc false
@behaviour Elasticsearch.Store
import Ecto.Query
alias Elasticsearch.Test.Repo
def load(Post, offset, limit) do
Post
|> offset(^offset)
|> limit(^limit)
|> Repo.all()
end
end
| 16.3125 | 37 | 0.681992 |
ffbef22de57b7334d4db15505e3b8529893a5a6a | 498 | exs | Elixir | projects/api/priv/repo/migrations/20180613013723_add_memberships_table.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/priv/repo/migrations/20180613013723_add_memberships_table.exs | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/priv/repo/migrations/20180613013723_add_memberships_table.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule Margaret.Repo.Migrations.AddMembershipsTable do
@moduledoc false
use Ecto.Migration
@doc false
def change do
create table(:memberships) do
add(
:customer_id,
references(:customers, on_delete: :delete_all),
null: false
)
add(:stripe_subscription_id, :str... | 20.75 | 65 | 0.674699 |
ffbf4916470ed2abb5560d61b2527e421393055a | 2,415 | exs | Elixir | test/decoding/parsing/exceptions_test.exs | shoeheart/csv | 676d5a07c4e3abf74fc56e1086a9386951dab7e8 | [
"MIT"
] | null | null | null | test/decoding/parsing/exceptions_test.exs | shoeheart/csv | 676d5a07c4e3abf74fc56e1086a9386951dab7e8 | [
"MIT"
] | null | null | null | test/decoding/parsing/exceptions_test.exs | shoeheart/csv | 676d5a07c4e3abf74fc56e1086a9386951dab7e8 | [
"MIT"
] | null | null | null | defmodule DecodingTests.ParsingTests.ExceptionsTest do
use ExUnit.Case
alias CSV.Decoding.Parser
alias CSV.EscapeSequenceError
test "raises a escape sequence error when given an invalid sequence of tokens" do
parsed =
Enum.map(
[
{[
{:double_quote, "\""},
... | 24.896907 | 83 | 0.36853 |
ffbf62df1b03951e175758119306dc408cab454b | 1,831 | ex | Elixir | lib/qwirkl_ex_web/telemetry.ex | ksherman/QwirkleEx | be4aa971767de916b9fc3a9a52124f17ce58b196 | [
"MIT"
] | 1 | 2021-02-01T12:09:47.000Z | 2021-02-01T12:09:47.000Z | lib/qwirkl_ex_web/telemetry.ex | ksherman/QwirkleEx | be4aa971767de916b9fc3a9a52124f17ce58b196 | [
"MIT"
] | null | null | null | lib/qwirkl_ex_web/telemetry.ex | ksherman/QwirkleEx | be4aa971767de916b9fc3a9a52124f17ce58b196 | [
"MIT"
] | null | null | null | defmodule QwirklExWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn... | 32.696429 | 86 | 0.673949 |
ffbf7f685c3553e0f52e9aa310e34b170ccb2dce | 1,941 | ex | Elixir | clients/container/lib/google_api/container/v1/model/usable_subnetwork_secondary_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container/lib/google_api/container/v1/model/usable_subnetwork_secondary_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container/lib/google_api/container/v1/model/usable_subnetwork_secondary_range.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... | 36.622642 | 169 | 0.726945 |
ffbf9feba7ba7a538760dde2de61e5923b0000b8 | 370 | exs | Elixir | test/other/other_test.exs | benyblack/Taex | a98bb1523497c455ce626cadd345185ecc03cea8 | [
"MIT"
] | null | null | null | test/other/other_test.exs | benyblack/Taex | a98bb1523497c455ce626cadd345185ecc03cea8 | [
"MIT"
] | null | null | null | test/other/other_test.exs | benyblack/Taex | a98bb1523497c455ce626cadd345185ecc03cea8 | [
"MIT"
] | null | null | null | defmodule Taex.Other do
use ExUnit.Case
alias Taex.Helpers
test "high helper" do
assert Helpers.high([1,2,3,4,5]) == 5
assert Helpers.high(5)== 5
assert Helpers.high([1,1,4,2,1,5]) == 5
end
test "low helper" do
assert Helpers.low([1,2,3,4,5]) == 1
assert Helpers.low(1) == 1
assert He... | 23.125 | 53 | 0.610811 |
ffbfb13a4fbad4784c189c174df6b3ec7ed50a07 | 3,368 | ex | Elixir | 2021/day11/lib/day11.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2021/day11/lib/day11.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2021/day11/lib/day11.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | defmodule Day11 do
@moduledoc """
Documentation for `Day11`.
"""
def part1(input, steps \\ 100) do
{map, maxrows, maxcols} = to_map(input)
step({map, 0}, maxrows, maxcols, steps)
|> elem(1)
end
def part2(input) do
{map, maxrows, maxcols} = to_map(input)
until_all_flash(map, maxrows, ... | 26.730159 | 88 | 0.570665 |
ffbfdb174a60f8ab938907f750f2eea342d9a8bc | 1,093 | ex | Elixir | web/router.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | 1 | 2020-07-17T14:02:31.000Z | 2020-07-17T14:02:31.000Z | web/router.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | null | null | null | web/router.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | 1 | 2019-12-02T17:51:36.000Z | 2019-12-02T17:51:36.000Z | defmodule Sonar.Router do
use Sonar.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", Sonar do
pipe_through ... | 24.840909 | 57 | 0.6871 |
ffbfe184df2ed8969314ffb80f655fe0c2bb7ff8 | 628 | exs | Elixir | test/rand_nif_test.exs | gyson/rand_nif | 2f087b9081766fdffd7bc6a383017930c412dc05 | [
"MIT"
] | 3 | 2019-02-24T21:33:45.000Z | 2021-09-03T16:21:21.000Z | test/rand_nif_test.exs | gyson/rand_nif | 2f087b9081766fdffd7bc6a383017930c412dc05 | [
"MIT"
] | null | null | null | test/rand_nif_test.exs | gyson/rand_nif | 2f087b9081766fdffd7bc6a383017930c412dc05 | [
"MIT"
] | null | null | null | defmodule RandNifTest do
use ExUnit.Case
doctest RandNif
test "RandNif.uniform/0" do
result = RandNif.uniform()
assert result >= 0.0
assert result < 1.0
end
test "RandNif.uniform/1" do
assert_raise ArgumentError, fn ->
RandNif.uniform("hello")
end
assert_raise ArgumentError, ... | 18.470588 | 38 | 0.644904 |
ffbfe559c0b49f6df908fbc2ad1382ece5e383ae | 1,853 | exs | Elixir | config/config.exs | SeppPenner/webbkoll | 4e1b8f6dab8c996996824fa83506114fb68e826e | [
"MIT"
] | 1 | 2019-11-28T09:43:24.000Z | 2019-11-28T09:43:24.000Z | config/config.exs | LinkBaseORG/webbkoll | 4e1b8f6dab8c996996824fa83506114fb68e826e | [
"MIT"
] | null | null | null | config/config.exs | LinkBaseORG/webbkoll | 4e1b8f6dab8c996996824fa83506114fb68e826e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :webbkoll,
locales: %{
"en" => "Engl... | 29.412698 | 90 | 0.689692 |
ffbfff4134883647dc45bbb5d3a24893ec719861 | 1,301 | exs | Elixir | data/web/deps/csv/mix.exs | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/csv/mix.exs | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/csv/mix.exs | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule CSV.Mixfile do
use Mix.Project
def project do
[
app: :csv,
version: "1.4.4",
elixir: "~> 1.1",
deps: deps,
package: package,
docs: &docs/0,
name: "CSV",
consolidate_protocols: true,
source_url: "https://github.com/beatrichartz/cs... | 23.232143 | 99 | 0.534204 |
ffc01acc56b818628ab010d5e98ab620d0ffeb5d | 34 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | (;) && (;)
(;) &&& (;)
(;) and (;) | 11.333333 | 11 | 0.088235 |
ffc02fb907b80958fc8b85d9c9159f53e3222ae8 | 1,172 | exs | Elixir | test/elixir_challenge_test.exs | jofan/elixir-challenge | 8090a0d6fbd87d95d193b1c0e036f7387c99815a | [
"MIT"
] | 1 | 2016-10-19T20:49:17.000Z | 2016-10-19T20:49:17.000Z | test/elixir_challenge_test.exs | jofan/elixir-challenge | 8090a0d6fbd87d95d193b1c0e036f7387c99815a | [
"MIT"
] | null | null | null | test/elixir_challenge_test.exs | jofan/elixir-challenge | 8090a0d6fbd87d95d193b1c0e036f7387c99815a | [
"MIT"
] | null | null | null | defmodule ElixirChallengeTest do
use ExUnit.Case
doctest ElixirChallenge
test "zero: math power" do
expected = 274877906944
actual = ElixirChallenge.zero 2, 38
IO.puts "Challenge 0: " <> to_string(actual)
assert actual == expected
end
test "one: decode string where m -> o" do
expected = ... | 22.538462 | 57 | 0.658703 |
ffc0411b49209589c655d6ef7af779de9fc18975 | 10,219 | ex | Elixir | lib/teiserver_web/router.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | lib/teiserver_web/router.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | lib/teiserver_web/router.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | defmodule TeiserverWeb.Router do
defmacro __using__(_opts \\ []) do
quote do
import unquote(__MODULE__)
end
end
defmacro teiserver_routes() do
quote do
scope "/", TeiserverWeb.General, as: :ts_general do
pipe_through([:browser, :nomenu_layout])
get("/code_of_conduct", Gen... | 43.67094 | 101 | 0.675311 |
ffc051ff58db1ffba8e8dad9e5bd5e0bc0cf8b81 | 84 | exs | Elixir | test/railway_ui_web/views/page_view_test.exs | SophieDeBenedetto/railway-ui | ceb253bccf63f278e93502e4dc6b113b31f6d8b2 | [
"MIT"
] | 2 | 2019-11-12T21:04:11.000Z | 2020-02-09T18:07:27.000Z | test/railway_ui_web/views/page_view_test.exs | SophieDeBenedetto/railway-ui | ceb253bccf63f278e93502e4dc6b113b31f6d8b2 | [
"MIT"
] | 4 | 2019-12-02T17:31:57.000Z | 2021-03-09T22:59:48.000Z | test/railway_ui_web/views/page_view_test.exs | SophieDeBenedetto/railway-ui | ceb253bccf63f278e93502e4dc6b113b31f6d8b2 | [
"MIT"
] | 2 | 2020-02-05T18:23:26.000Z | 2020-04-26T13:50:10.000Z | defmodule RailwayUiWeb.PageViewTest do
use RailwayUiWeb.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
ffc058f29a61d13928938ded201fdda2106823c7 | 1,772 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta2_document_page_dimension.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta2_document_page_dimension.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta2_document_page_dimension.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.551724 | 97 | 0.71614 |
ffc0a9e1e06aea40c14edf3a803895b9aabfe983 | 673 | ex | Elixir | web/models/user.ex | dogweather/ketobit | cd757648e5fee357b82716a2fb2d4542131312e7 | [
"MIT"
] | 6 | 2016-07-05T22:57:05.000Z | 2019-04-05T01:47:28.000Z | web/models/user.ex | dogweather/ketobit | cd757648e5fee357b82716a2fb2d4542131312e7 | [
"MIT"
] | null | null | null | web/models/user.ex | dogweather/ketobit | cd757648e5fee357b82716a2fb2d4542131312e7 | [
"MIT"
] | null | null | null | defmodule Ketobit.User do
use Ketobit.Web, :model
schema "users" do
field :name, :string
field :email, :string
field :user_id, :string
field :access_token, :binary
field :refresh_token, :binary
field :expires_at, Ecto.DateTime
timestamps
end
@required_fields ~w()
@optional_field... | 23.206897 | 79 | 0.699851 |
ffc0eb3e7fb87c633f4d5c11ef4d436044fe59ad | 1,159 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v2/connection.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/connection.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense/lib/google_api/ad_sense/v2/connection.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.194444 | 74 | 0.727351 |
ffc1096dc7aea1bc04a02a7103b9d5faddb5560b | 1,497 | ex | Elixir | clients/container/lib/google_api/container/v1/model/gcp_filestore_csi_driver_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container/lib/google_api/container/v1/model/gcp_filestore_csi_driver_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container/lib/google_api/container/v1/model/gcp_filestore_csi_driver_config.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... | 31.851064 | 123 | 0.746159 |
ffc10d9b6d8bfae2bf1fd45942099ac5bb5fd1e3 | 75 | ex | Elixir | lib/elixir_awesome_web/views/layout_view.ex | ddidwyll/awesome-elixir | 55b72305884cfd10510e25dd5f17f1a32765a17f | [
"MIT"
] | null | null | null | lib/elixir_awesome_web/views/layout_view.ex | ddidwyll/awesome-elixir | 55b72305884cfd10510e25dd5f17f1a32765a17f | [
"MIT"
] | null | null | null | lib/elixir_awesome_web/views/layout_view.ex | ddidwyll/awesome-elixir | 55b72305884cfd10510e25dd5f17f1a32765a17f | [
"MIT"
] | null | null | null | defmodule ElixirAwesomeWeb.LayoutView do
use ElixirAwesomeWeb, :view
end
| 18.75 | 40 | 0.84 |
ffc11c87e0ca6e0f353791b17470748435c17920 | 768 | ex | Elixir | lib/remote_retro_web/channels/retro_management_handlers.ex | dplain90/remote_retro | c7063c42c893215a54d336da2d7b068f2c120a7d | [
"MIT"
] | null | null | null | lib/remote_retro_web/channels/retro_management_handlers.ex | dplain90/remote_retro | c7063c42c893215a54d336da2d7b068f2c120a7d | [
"MIT"
] | null | null | null | lib/remote_retro_web/channels/retro_management_handlers.ex | dplain90/remote_retro | c7063c42c893215a54d336da2d7b068f2c120a7d | [
"MIT"
] | null | null | null | defmodule RemoteRetroWeb.RetroManagementHandlers do
import Phoenix.Channel
import ShorterMaps
alias RemoteRetro.{Emails, Mailer, Repo, Retro}
def handle_in("retro_edited", %{"stage" => "closed"}, socket) do
retro_id = socket.assigns.retro_id
update_retro!(retro_id, "closed")
Emails.action_items_em... | 26.482759 | 66 | 0.696615 |
ffc14da54f8bb77d87b673e86b7a8768e12cfd04 | 5,230 | ex | Elixir | lib/monocle/plugin.ex | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | 2 | 2018-02-11T01:18:24.000Z | 2020-01-12T17:19:22.000Z | lib/monocle/plugin.ex | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | lib/monocle/plugin.ex | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | defmodule Monocle.Plugin do
alias Monocle.Error
alias Monocle.Options
@moduledoc """
Plugins are modules that implement a render function. Right now that is `as_html`.
### API
#### Plugin Registration
When invoking `Monocle.as_html(some_md, options)` we can register plugins inside the `plugins` map, w... | 37.898551 | 136 | 0.602486 |
ffc15821bff5743f417f95b27b3c0a639a4033af | 200 | ex | Elixir | lib/gardenhose/api/api.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | lib/gardenhose/api/api.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | lib/gardenhose/api/api.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | defmodule Gardenhose.API do
use Lazymaru.Router
plug Plug.Static, at: "/static", from: "/my/static/path/"
mount Router.Group
def error(conn, _e) do
"Server Error" |> text(500)
end
end
| 18.181818 | 59 | 0.675 |
ffc1779e5c6bd99ff012feac43b918bfdd65afd0 | 596 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/67.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/67.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/67.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
SYM * ordinal * * noun * pn;
SYM * demonstrative verb_aux a82 noun * pn;
verb * demonstrative pnoun * noun * pn;
verb_aux a82 pn verb_aux a75 noun * pn;
verb * adjective cm * noun * pn;
verb_aux a19 adjective verb * pnoun * pn;
verb * demonstrative noun * noun * pn;
pn * verb pn * noun * pn;
... | 31.368421 | 44 | 0.645973 |
ffc1898e5483992f734244f43941c1e47e90e1e0 | 134 | ex | Elixir | sample_server/lib/sample_server_web/channels/presence.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 31 | 2019-03-26T15:26:21.000Z | 2022-02-16T14:33:13.000Z | sample_server/lib/sample_server_web/channels/presence.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 3 | 2019-04-05T19:45:09.000Z | 2019-10-25T01:48:57.000Z | sample_server/lib/sample_server_web/channels/presence.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 5 | 2019-03-27T14:16:28.000Z | 2022-02-18T12:01:46.000Z | defmodule SampleServerWeb.Presence do
use Phoenix.Presence,
otp_app: :sample_server,
pubsub_server: SampleServer.PubSub
end
| 22.333333 | 38 | 0.791045 |
ffc21ccbe49e3c4a1ac14609cea4d581c9ef3464 | 267 | ex | Elixir | lib/phoenix_checkers.ex | kowaliklukasz/phoenix-checkers | 30021838cc1b9fa2dac83e698d0844e7e281dc26 | [
"MIT"
] | null | null | null | lib/phoenix_checkers.ex | kowaliklukasz/phoenix-checkers | 30021838cc1b9fa2dac83e698d0844e7e281dc26 | [
"MIT"
] | null | null | null | lib/phoenix_checkers.ex | kowaliklukasz/phoenix-checkers | 30021838cc1b9fa2dac83e698d0844e7e281dc26 | [
"MIT"
] | null | null | null | defmodule PhoenixCheckers do
@moduledoc """
PhoenixCheckers keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.7 | 66 | 0.76779 |
ffc2642e5049edac39bc20b4bba9f1e8ad048eec | 437 | exs | Elixir | test/live_view_demo_web/views/error_view_test.exs | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | test/live_view_demo_web/views/error_view_test.exs | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | test/live_view_demo_web/views/error_view_test.exs | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | defmodule LiveViewDemoWeb.ErrorViewTest do
use LiveViewDemoWeb.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(LiveViewDemoWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.... | 29.133333 | 97 | 0.745995 |
ffc2915d22ec1eddf415de69456164b3f6254078 | 16,504 | ex | Elixir | lib/xgit/object.ex | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 94 | 2019-05-28T05:29:54.000Z | 2022-02-18T20:03:20.000Z | lib/xgit/object.ex | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 156 | 2019-05-26T03:27:24.000Z | 2020-10-08T05:44:26.000Z | lib/xgit/object.ex | scouten/redo | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 5 | 2019-05-28T16:35:55.000Z | 2021-06-16T14:25:17.000Z | # Copyright (C) 2008-2010, Google Inc.
# Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
# and other copyright owners as documented in the project's IP log.
#
# Elixir adaptation from jgit file:
# org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java
#
# Copyright (C) 2019, Eric Scouten <eric+xgit@scou... | 38.651054 | 97 | 0.667475 |
ffc2b44fa154033687bf63043535698e05dcc6c6 | 2,188 | ex | Elixir | clients/language/lib/google_api/language/v1/model/analyze_syntax_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/language/lib/google_api/language/v1/model/analyze_syntax_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/analyze_syntax_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 ... | 39.781818 | 159 | 0.728062 |
ffc2b4c921381ed828daaebd15e8f67a89551a64 | 9,090 | exs | Elixir | test/struct/elements_test.exs | h-ikeda/structex-web | 16768fe901d7adef3f3d81c26c3f5b5197b06088 | [
"MIT"
] | null | null | null | test/struct/elements_test.exs | h-ikeda/structex-web | 16768fe901d7adef3f3d81c26c3f5b5197b06088 | [
"MIT"
] | null | null | null | test/struct/elements_test.exs | h-ikeda/structex-web | 16768fe901d7adef3f3d81c26c3f5b5197b06088 | [
"MIT"
] | null | null | null | defmodule Struct.ElementsTest do
use Struct.DataCase
alias Struct.Elements
describe "inserted_wooden_siding_walls" do
alias Struct.Elements.InsertedWoodenSidingWall
@valid_attrs %{beam_height: 120.5, beam_width: 120.5, column_depth: 120.5, column_width: 120.5, fiber_direction_compressive_strength_of_si... | 83.394495 | 861 | 0.826953 |
ffc2bd51b2afd7492dfcfcd6f2f46b9f62c8019b | 700 | exs | Elixir | mix.exs | ElaWorkshop/ex_loglite | eed96e4c5f4e0fc160fdc742677531b339ba075b | [
"MIT"
] | 7 | 2016-09-24T07:06:09.000Z | 2017-05-08T08:47:53.000Z | mix.exs | ElaWorkshop/ex_loglite | eed96e4c5f4e0fc160fdc742677531b339ba075b | [
"MIT"
] | 1 | 2018-03-12T14:53:00.000Z | 2018-03-12T14:53:00.000Z | mix.exs | ElaWorkshop/ex_loglite | eed96e4c5f4e0fc160fdc742677531b339ba075b | [
"MIT"
] | null | null | null | defmodule ExLogLite.Mixfile do
use Mix.Project
def project do
[app: :ex_loglite,
version: "0.1.1",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description()]
end
def application, do... | 20.588235 | 71 | 0.572857 |
ffc2c6578614986ff0c07a0bff0b91e60acbe416 | 2,467 | ex | Elixir | examples/bulk_job_controller.ex | timbuckley/forcex | e3b4cac234d1f17d1be6d8c49a0081568a0b711e | [
"MIT"
] | 59 | 2015-06-10T13:12:16.000Z | 2021-04-27T07:09:33.000Z | examples/bulk_job_controller.ex | timbuckley/forcex | e3b4cac234d1f17d1be6d8c49a0081568a0b711e | [
"MIT"
] | 38 | 2016-04-06T01:12:43.000Z | 2019-10-17T17:16:06.000Z | examples/bulk_job_controller.ex | timbuckley/forcex | e3b4cac234d1f17d1be6d8c49a0081568a0b711e | [
"MIT"
] | 38 | 2015-10-07T03:35:51.000Z | 2020-10-29T17:59:38.000Z | defmodule BulkJobController do
use GenServer
use Forcex.Bulk.BatchHandler
use Forcex.Bulk.JobHandler
def start_link(params) do
GenServer.start_link(__MODULE__, params)
end
def init({:query, sobject, queries, client}) do
send(self(), :after_init)
{:ok, [sobject: sobject, queries: queries, clien... | 27.719101 | 124 | 0.632347 |
ffc2cf180a906f4b80141ca706c881bdb6c75648 | 128 | exs | Elixir | test/pomodoro_slack_test.exs | startupbuilders/pomodoro_slack | 4414d13246fd29454175d940fac916f36deb65a4 | [
"MIT"
] | null | null | null | test/pomodoro_slack_test.exs | startupbuilders/pomodoro_slack | 4414d13246fd29454175d940fac916f36deb65a4 | [
"MIT"
] | null | null | null | test/pomodoro_slack_test.exs | startupbuilders/pomodoro_slack | 4414d13246fd29454175d940fac916f36deb65a4 | [
"MIT"
] | null | null | null | defmodule PomodoroSlackTest do
use ExUnit.Case
doctest PomodoroSlack
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.222222 | 30 | 0.703125 |
ffc3208f2ad5eebe3b3ff650883ef40a9d9fb823 | 1,399 | ex | Elixir | lib/step_flow/workflows/workflow.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | lib/step_flow/workflows/workflow.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | lib/step_flow/workflows/workflow.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.Workflows.Workflow do
use Ecto.Schema
import Ecto.Changeset
alias StepFlow.Artifacts.Artifact
alias StepFlow.Jobs.Job
alias StepFlow.Rights.Right
alias StepFlow.Workflows.Workflow
@moduledoc false
schema "step_flow_workflow" do
field(:schema_version, :string)
field(:identif... | 23.316667 | 58 | 0.642602 |
ffc3244a92d0b4371b0f1964b401b3079f20930e | 14,496 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/subaccounts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/subaccounts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/subaccounts.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... | 44.603077 | 496 | 0.633623 |
ffc332fd7fa047be6be8afe5927cf95d28f90c61 | 1,370 | ex | Elixir | lib/cat_show_web/controllers/session_controller.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | lib/cat_show_web/controllers/session_controller.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | 1 | 2021-05-11T15:49:58.000Z | 2021-05-11T15:49:58.000Z | lib/cat_show_web/controllers/session_controller.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | defmodule CatShowWeb.SessionController do
use CatShowWeb, :controller
alias CatShow.Accounts
alias CatShow.Auth.Guardian
def create(conn, params) do
case authenticate(params) do
{:ok, user} ->
new_conn = Guardian.Plug.sign_in(conn, user)
token = Guardian.Plug.current_token(new_conn)
... | 24.464286 | 77 | 0.621898 |
ffc34272db2a2c15413dd3a2d5dd9422c057ce9a | 32,184 | exs | Elixir | test/row_test.exs | kianmeng/ecto_tablestore | d07b34a10e4476f15524d37e7a22210cdb9744b3 | [
"MIT"
] | null | null | null | test/row_test.exs | kianmeng/ecto_tablestore | d07b34a10e4476f15524d37e7a22210cdb9744b3 | [
"MIT"
] | null | null | null | test/row_test.exs | kianmeng/ecto_tablestore | d07b34a10e4476f15524d37e7a22210cdb9744b3 | [
"MIT"
] | null | null | null | defmodule EctoTablestore.RowTest do
use ExUnit.Case
alias EctoTablestore.TestSchema.{Order, User, User2, User3}
alias EctoTablestore.TestRepo
alias Ecto.Changeset
import EctoTablestore.Query, only: [condition: 2, condition: 1, filter: 1]
setup_all do
TestHelper.setup_all()
EctoTablestore.Support... | 32.345729 | 198 | 0.652063 |
ffc3485aade4fc719d8cfe8d21ef410d32e1166a | 525 | ex | Elixir | lib/triplex/plugs/ensure_plug_config.ex | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | lib/triplex/plugs/ensure_plug_config.ex | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | lib/triplex/plugs/ensure_plug_config.ex | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | defmodule Triplex.EnsurePlugConfig do
@moduledoc """
This is a struct that holds the configuration for `Triplex.EnsurePlug`.
Here are the config keys allowed:
- `assign`: the name of the assign where we must save the tenant.
- `callback`: function that might be called when the plug succeeded. It
must retu... | 29.166667 | 75 | 0.740952 |
ffc36ef0c6a66e160bfc122d9c73dc887a0921f6 | 1,596 | exs | Elixir | mix.exs | exit9/temple | eab538c1ca584f8d4b0ebe97111251bba28979e1 | [
"MIT"
] | null | null | null | mix.exs | exit9/temple | eab538c1ca584f8d4b0ebe97111251bba28979e1 | [
"MIT"
] | null | null | null | mix.exs | exit9/temple | eab538c1ca584f8d4b0ebe97111251bba28979e1 | [
"MIT"
] | null | null | null | defmodule Temple.MixProject do
use Mix.Project
def project do
[
app: :temple,
name: "Temple",
description: "An HTML DSL for Elixir and Phoenix",
version: "0.3.1",
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.7",
start_permanent: Mix.... | 24.553846 | 79 | 0.558271 |
ffc3717b0feb1e89562ceee9ebb44d918d480dcf | 1,826 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_intents_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_intents_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_intents_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.45283 | 189 | 0.761227 |
ffc38cb4b0b6e9d316c44ea01e1ae2e892443566 | 342 | exs | Elixir | priv/repo/migrations/20170101204412_create_deliveryservice_server.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | priv/repo/migrations/20170101204412_create_deliveryservice_server.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170101204412_create_deliveryservice_server.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.Repo.Migrations.CreateDeliveryserviceServer do
use Ecto.Migration
def change do
create table(:deliveryserviceservers) do
add :deliveryservice, references(:deliveryservices, column: :xml_id, type: :text)
add :server_host, references(:servers, column: :host, type: :text)
timestamp... | 28.5 | 87 | 0.72807 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.