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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
797d441bcf9e1130928e98acc6711623c53f6a9f | 3,118 | ex | Elixir | lib/membrane/element/base/filter.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base/filter.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base/filter.ex | mkaput/membrane-core | f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.Base.Filter do
@moduledoc """
Module defining behaviour for filters - elements processing data.
Behaviours for filters are specified, besides this place, in modules
`Membrane.Element.Base.Mixin.CommonBehaviour`,
`Membrane.Element.Base.Mixin.SourceBehaviour`,
and `Membrane.Element... | 34.644444 | 88 | 0.659076 |
797d4bfd06fa4332701c16524d9b806eee2eca4c | 3,584 | ex | Elixir | lib/safira/accounts/attendee.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | lib/safira/accounts/attendee.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | lib/safira/accounts/attendee.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Accounts.Attendee do
use Ecto.Schema
use Arc.Ecto.Schema
import Ecto.Changeset
alias Safira.Accounts.User
alias Safira.Contest.Redeem
alias Safira.Contest.Badge
alias Safira.Contest.Referral
alias Safira.Contest.DailyToken
alias Safira.Store.Redeemable
alias Safira.Store.Buy
alia... | 32 | 110 | 0.686663 |
797d5e6a09dcb027d495484f1570390c69fcbc1e | 1,621 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/get_publisher_profiles_by_account_id_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/get_publisher_profiles_by_account_id_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/get_publisher_profiles_by_account_id_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 30.018519 | 104 | 0.763109 |
797d76535f57d8cc650d501bab528617bde0047f | 1,232 | exs | Elixir | clients/vision/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Vision.V1.Mixfile do
use Mix.Project
@version "0.9.0"
def project() do
[
app: :google_api_vision,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: packa... | 24.64 | 106 | 0.605519 |
797d96c8ed0eba9c4ccd8a6f9c68db7aff95f851 | 3,695 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/list_population_term.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/list_population_term.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/list_population_term.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 54.338235 | 419 | 0.724763 |
797da6d8ceca028088aee973a03606dc322e43b8 | 2,368 | ex | Elixir | lib/absinthe/phase/telemetry.ex | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/phase/telemetry.ex | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/phase/telemetry.ex | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Phase.Telemetry do
@moduledoc """
Gather and report telemetry about an operation.
"""
@operation_start [:absinthe, :execute, :operation, :start]
@operation_stop [:absinthe, :execute, :operation, :stop]
@subscription_start [:absinthe, :subscription, :publish, :start]
@subscription_stop ... | 28.53012 | 85 | 0.663851 |
797dbcc601cf7ce28869218a5640bd9e5f0615cd | 1,801 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/localized_string.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/localized_string.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/localized_string.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... | 33.981132 | 171 | 0.722932 |
797dfef36ac332fb8ac44225e69d51cfeab09ddf | 282 | ex | Elixir | lib/ex_euler.ex | weiland/ex_euler | 8699a4e9bc3f83d80bdcf75429a7e724b8be5922 | [
"WTFPL"
] | 1 | 2017-01-02T19:14:16.000Z | 2017-01-02T19:14:16.000Z | lib/ex_euler.ex | weiland/ex_euler | 8699a4e9bc3f83d80bdcf75429a7e724b8be5922 | [
"WTFPL"
] | null | null | null | lib/ex_euler.ex | weiland/ex_euler | 8699a4e9bc3f83d80bdcf75429a7e724b8be5922 | [
"WTFPL"
] | null | null | null | defmodule ExEuler do
@moduledoc """
Documentation for ExEuler.
"""
@doc """
Show the results in the Terminal.
"""
def run do
IO.puts "Problem 001"
IO.inspect ExEuler.Problem001.solve
IO.puts "Problem 002"
IO.inspect ExEuler.Problem002.solve
end
end
| 17.625 | 39 | 0.666667 |
797e3a6376a0b0ee2188daa1d0078a2d2baaac9f | 2,133 | exs | Elixir | mix.exs | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | 1 | 2020-04-23T11:36:03.000Z | 2020-04-23T11:36:03.000Z | mix.exs | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | mix.exs | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.MixProject do
use Mix.Project
@version "0.2.0"
def project do
[
app: :phoenix_live_dashboard,
version: @version,
elixir: "~> 1.7",
compilers: [:phoenix] ++ Mix.compilers(),
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
packag... | 25.698795 | 85 | 0.595874 |
797e57401aa7406a1a6576f46cae32a987a4b8a2 | 79 | exs | Elixir | apps/core/priv/repo/seeds/05_provision_influx_v3.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/priv/repo/seeds/05_provision_influx_v3.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/priv/repo/seeds/05_provision_influx_v3.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | import Botanist
alias Core.Services.Metrics
seed do
Metrics.provision()
end
| 11.285714 | 27 | 0.797468 |
797e5ac4bd602a3cbc8c0a36726ea49b9379be07 | 5,804 | ex | Elixir | lib/ecto_mnesia/record/context/match_spec.ex | jdoig/ecto_mnesia | 592cc47219a18158176e1445132370890a4f0be3 | [
"MIT"
] | null | null | null | lib/ecto_mnesia/record/context/match_spec.ex | jdoig/ecto_mnesia | 592cc47219a18158176e1445132370890a4f0be3 | [
"MIT"
] | null | null | null | lib/ecto_mnesia/record/context/match_spec.ex | jdoig/ecto_mnesia | 592cc47219a18158176e1445132370890a4f0be3 | [
"MIT"
] | null | null | null | defmodule EctoMnesia.Record.Context.MatchSpec do
@moduledoc """
This module provides a context that is able to rebuild Mnesia `match_spec` by `Ecto.Query` AST whenever new query
is assigned to a context.
Specs:
- [QLC](http://erlang.org/doc/man/qlc.html)
- [Match Specification](http://erlang.org/doc/ap... | 37.445161 | 118 | 0.679704 |
797e70a8fd1cf2edc26563ae13a9e63889aa116c | 1,348 | ex | Elixir | lib/iris.ex | jrbart/deeppipe2 | ac242f680c8a523dca0cd7bb1cbe7192823ee356 | [
"BSD-2-Clause"
] | 99 | 2020-02-12T23:15:57.000Z | 2022-01-09T08:05:29.000Z | lib/iris.ex | jrbart/deeppipe2 | ac242f680c8a523dca0cd7bb1cbe7192823ee356 | [
"BSD-2-Clause"
] | 27 | 2020-03-01T09:54:55.000Z | 2021-09-18T21:38:43.000Z | lib/iris.ex | jrbart/deeppipe2 | ac242f680c8a523dca0cd7bb1cbe7192823ee356 | [
"BSD-2-Clause"
] | 8 | 2020-04-19T22:14:32.000Z | 2021-03-12T07:05:10.000Z | defmodule Iris do
import Network
alias Deeppipe, as: DP
@moduledoc """
test with iris dataset
"""
defnetwork init_network0(_x) do
_x
|> w(4, 100)
|> b(100)
|> relu
|> w(100, 50)
|> b(50)
|> relu
|> w(50, 3)
|> b(3)
|> softmax
end
def sgd(m, n) do
image = tr... | 18.985915 | 80 | 0.551187 |
797e99f3140d45f2242893cf5ba0519966af9939 | 2,811 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_file_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_file_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_file_metadata.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... | 41.955224 | 396 | 0.737816 |
797eafd6b963f226c20a6e14fa0059f96aee5d09 | 12,452 | ex | Elixir | lib/repo.ex | superfly/fly_postgres_elixir | a8e0580e750cf2f3ee66c74a8f329a2848ebf991 | [
"Apache-2.0"
] | 36 | 2021-11-03T04:48:21.000Z | 2022-03-19T20:13:41.000Z | lib/repo.ex | superfly/fly_postgres_elixir | a8e0580e750cf2f3ee66c74a8f329a2848ebf991 | [
"Apache-2.0"
] | 13 | 2021-11-01T23:01:38.000Z | 2022-03-23T13:40:14.000Z | lib/repo.ex | superfly/fly_postgres_elixir | a8e0580e750cf2f3ee66c74a8f329a2848ebf991 | [
"Apache-2.0"
] | 6 | 2021-11-11T20:28:59.000Z | 2022-03-14T05:55:09.000Z | defmodule Fly.Repo do
@moduledoc """
This wraps the built-in `Ecto.Repo` functions to proxy writable functions like
insert, update and delete to be performed on the an Elixir node in the primary
region.
To use it, rename your existing repo module and add a new module with the same
name as your original rep... | 31.13 | 100 | 0.632669 |
797ec8c86fe3dcbc07acd84bb833b07c50cbbeef | 549 | ex | Elixir | deps/postgrex/lib/postgrex/extensions/bool.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/bool.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/bool.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Postgrex.Extensions.Bool do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "boolsend"
def encode(_) do
quote location: :keep do
true ->
<<1 :: int32, 1>>
false ->
<<1 :: int32, 0>>
other ->
raise ... | 22.875 | 86 | 0.566485 |
797edd91648f7609ef6f16db65e207050f8592a3 | 7,086 | ex | Elixir | lib/mix/tasks/prom_ex.gen.config.ex | keatz55/prom_ex | ccf1066f63982938a6f0116528b2d07b4960187a | [
"MIT"
] | null | null | null | lib/mix/tasks/prom_ex.gen.config.ex | keatz55/prom_ex | ccf1066f63982938a6f0116528b2d07b4960187a | [
"MIT"
] | null | null | null | lib/mix/tasks/prom_ex.gen.config.ex | keatz55/prom_ex | ccf1066f63982938a6f0116528b2d07b4960187a | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.PromEx.Gen.Config do
@moduledoc """
This Mix Task generates a PromEx config module in your project. This config
file acts as a starting point with instructions on how to set up PromEx
in your application, some default PromEx metrics plugins, and their
accompanying dashboards.
The follow... | 32.504587 | 110 | 0.606266 |
797f125424a8328cbbff2c50ded3aeae656adb57 | 1,533 | exs | Elixir | test/resource/actions/update_test.exs | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | test/resource/actions/update_test.exs | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | test/resource/actions/update_test.exs | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Test.Dsl.Resource.Actions.UpdateTest do
use ExUnit.Case, async: true
defmacrop defposts(do: body) do
quote do
defmodule Post do
use Ash.Resource,
data_layer: Ash.DataLayer.Ets
attributes do
uuid_primary_key :id
end
unquote(body)
en... | 22.544118 | 118 | 0.516634 |
797f1d000eef305b2902ed80c8b0f08316b591f8 | 6,435 | exs | Elixir | test/zss_service/message_test.exs | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | test/zss_service/message_test.exs | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | 13 | 2017-05-20T12:19:37.000Z | 2017-07-16T10:31:34.000Z | test/zss_service/message_test.exs | nickve28/zss_service_suite_service_ex | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | defmodule ZssService.MessageTest do
use ExUnit.Case
alias ZssService.{Message, Address}
doctest Message
doctest Address
describe "when converting to frames (to_frames)" do
test "should encode Integer payload" do
message = Message.new "SUBSCRIPTION", "CREATE"
message = %Message{message | payl... | 31.237864 | 98 | 0.608858 |
797f29f3c328f7d7a606e5df083e9a8ee3cae673 | 9,570 | ex | Elixir | lib/ecto/adapters/riak/object.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | 1 | 2015-08-27T13:17:10.000Z | 2015-08-27T13:17:10.000Z | lib/ecto/adapters/riak/object.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/riak/object.ex | TanYewWei/ecto | 916c6467d5f7368fa10ecd7cfcfd2d4a9924a282 | [
"Apache-2.0"
] | null | null | null | !defmodule Ecto.Adapters.Riak.Object do
alias :riakc_obj, as: RiakObject
alias Ecto.Adapters.Riak.DateTime
alias Ecto.Adapters.Riak.RequiredFieldUndefinedError
alias Ecto.Adapters.Riak.Util, as: RiakUtil
@type statebox :: :statebox.statebox
@type ecto_type :: Ecto.DateTime | Ecto.Interval | Ecto.Binar... | 29.813084 | 89 | 0.59279 |
797f70689a2c36848f7da0c563e626319b8fd248 | 1,209 | exs | Elixir | test/unit/compiler_error_parser_test.exs | elbow-jason/zigler | 3de4d6fe4def265b689bd21d3e0abad551bd2d50 | [
"MIT"
] | null | null | null | test/unit/compiler_error_parser_test.exs | elbow-jason/zigler | 3de4d6fe4def265b689bd21d3e0abad551bd2d50 | [
"MIT"
] | null | null | null | test/unit/compiler_error_parser_test.exs | elbow-jason/zigler | 3de4d6fe4def265b689bd21d3e0abad551bd2d50 | [
"MIT"
] | null | null | null | defmodule ZiglerTest.CompilerErrorParserTest do
use ExUnit.Case, async: true
alias Zigler.Parser.Error
@moduletag :parser
describe "when passing code lines to the parser" do
test "a non-tag line is an error" do
assert {:error, _, _, _, _, _}
= Error.check_ref("fn foo(x: i64) i64 {")
end... | 31.815789 | 80 | 0.669148 |
797fe961a4440f1c7b23e8fa0ddf6e0c2461a4ea | 807 | ex | Elixir | lib/apa_comp.ex | razuf/apa | 1052973da9a726c2914182562fa1f433fe303c8d | [
"Apache-2.0"
] | 4 | 2020-04-22T05:31:13.000Z | 2020-06-23T08:20:17.000Z | lib/apa_comp.ex | razuf/apa | 1052973da9a726c2914182562fa1f433fe303c8d | [
"Apache-2.0"
] | null | null | null | lib/apa_comp.ex | razuf/apa | 1052973da9a726c2914182562fa1f433fe303c8d | [
"Apache-2.0"
] | null | null | null | defmodule ApaComp do
@moduledoc """
APA : Arbitrary Precision Arithmetic - Comparision - ApaComp.
"""
@doc """
Comparison - internal function - please call Apa.comp(left, right, sclae, precision)
The 'precision' of an ApaNumber is the total count of significant digits in the whole number, that is, the numb... | 36.681818 | 161 | 0.672862 |
797fefe4c9b0e1660092f1e6a79fa33d98401fe3 | 251 | ex | Elixir | test/support/rbac/resources/registry.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | null | null | null | test/support/rbac/resources/registry.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | 1 | 2020-06-05T01:06:15.000Z | 2020-06-05T01:06:15.000Z | test/support/rbac/resources/registry.ex | ash-project/ash_policy_access | a954bf12e3a65c9ea0b0eb888162064cae786cbd | [
"MIT"
] | null | null | null | defmodule AshPolicyAuthorizer.Test.Rbac.Registry do
@moduledoc false
use Ash.Registry
alias AshPolicyAuthorizer.Test.Rbac
entries do
entry(Rbac.User)
entry(Rbac.Organization)
entry(Rbac.Membership)
entry(Rbac.File)
end
end
| 17.928571 | 51 | 0.74502 |
797ffa786a595fdd80b8dab1aa687d09b016350e | 1,995 | ex | Elixir | lib/api/map.ex | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | lib/api/map.ex | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | lib/api/map.ex | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Cloud Stack Lang Contributors
#
# 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 ag... | 30.692308 | 97 | 0.655138 |
7980143489149f6eb7e0f23b252828dea71dfcac | 5,674 | ex | Elixir | lib/archcomposer.ex | themaxhero/Arch-Composer | 5c93e72c7c2fce9d7e0d63ad81ef0b86f0c5b4a6 | [
"MIT"
] | null | null | null | lib/archcomposer.ex | themaxhero/Arch-Composer | 5c93e72c7c2fce9d7e0d63ad81ef0b86f0c5b4a6 | [
"MIT"
] | 10 | 2020-09-02T19:16:17.000Z | 2020-09-04T16:49:23.000Z | lib/archcomposer.ex | themaxhero/Arch-Composer | 5c93e72c7c2fce9d7e0d63ad81ef0b86f0c5b4a6 | [
"MIT"
] | null | null | null | defmodule Archcomposer do
@moduledoc """
Documentation for `Archcomposer`.
"""
@doc """
get_config
Extracts the config from the config file.
"""
def get_config(config) do
config
end
@doc """
get_disk_information
"""
def get_disk_information(config) do
config
end
@doc """
get_u... | 19.104377 | 135 | 0.615615 |
79802f4c9a9cfd3ee0e1437c0165f464db872347 | 5,250 | ex | Elixir | lib/spandex_tesla.ex | thiamsantos/spandex_tesla | b1dab3045cb7227cad054be40e25a948ab1106d3 | [
"Apache-2.0"
] | 5 | 2020-02-16T23:10:55.000Z | 2022-03-18T09:25:41.000Z | lib/spandex_tesla.ex | thiamsantos/spandex_tesla | b1dab3045cb7227cad054be40e25a948ab1106d3 | [
"Apache-2.0"
] | 31 | 2020-07-21T12:23:06.000Z | 2022-03-28T02:09:52.000Z | lib/spandex_tesla.ex | thiamsantos/spandex_tesla | b1dab3045cb7227cad054be40e25a948ab1106d3 | [
"Apache-2.0"
] | 7 | 2020-07-18T01:41:41.000Z | 2021-11-26T17:08:42.000Z | defmodule SpandexTesla do
@external_resource "README.md"
@moduledoc "README.md"
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
defmodule Error do
@moduledoc """
Struct used to identify the errors.
"""
defexception [:message]
end
@do... | 27.631579 | 95 | 0.618286 |
79804543524abfab86afd31213eb0048b0d657b5 | 1,953 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/permission_change.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive_activity/lib/google_api/drive_activity/v2/model/permission_change.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/permission_change.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.06 | 157 | 0.749104 |
798052ccd6bb9accfc9d31886da427e98b0b568b | 894 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/security_center/lib/google_api/security_center/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.111111 | 74 | 0.761745 |
7980aeb4b016e8b513357858a02af6e88d8c971a | 701 | ex | Elixir | lib/langue/langue.ex | gitter-badger/accent-1 | b2fdf26e598d832550eceaa40cd8055f93bca216 | [
"BSD-3-Clause"
] | null | null | null | lib/langue/langue.ex | gitter-badger/accent-1 | b2fdf26e598d832550eceaa40cd8055f93bca216 | [
"BSD-3-Clause"
] | null | null | null | lib/langue/langue.ex | gitter-badger/accent-1 | b2fdf26e598d832550eceaa40cd8055f93bca216 | [
"BSD-3-Clause"
] | null | null | null | defmodule Langue do
@formats [
Android,
CSV,
Es6Module,
Gettext,
JavaProperties,
JavaPropertiesXml,
Json,
Rails,
SimpleJson,
Strings
]
for format <- @formats, module = Module.concat([Langue, Formatter, format]), name = module.name() do
def parser_from_format(unquote(na... | 25.962963 | 102 | 0.670471 |
7980b20d826f617ad16620b407cc7fad343c1016 | 1,239 | ex | Elixir | lib/changelog_web/controllers/episode_request_controller.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/controllers/episode_request_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/controllers/episode_request_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.EpisodeRequestController do
use ChangelogWeb, :controller
alias Changelog.{EpisodeRequest}
plug RequireUser, "before submitting" when action in [:create]
def new(conn = %{assigns: %{podcasts: podcasts}}, params) do
podcast = Enum.find(podcasts, fn p -> p.slug == params["slug"] end)... | 30.219512 | 97 | 0.650525 |
7980bc017cfa9a18a0a0e7c7b430feb9e9b25afb | 2,146 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_grpc_proxy_list_warning.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_grpc_proxy_list_warning.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/target_grpc_proxy_list_warning.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.740741 | 194 | 0.724604 |
7980d1c490e41bb86e2b144099c9cffeb3c85ef5 | 1,171 | ex | Elixir | example/backend/lib/backend_web/channels/presence_channel.ex | farolanf/phoenix-socket-dart | 3fb441c53a25e2f7ea6f8f0ca9e7bfc25e45cdfd | [
"BSD-3-Clause"
] | 30 | 2020-11-10T07:32:36.000Z | 2022-02-06T20:34:34.000Z | example/backend/lib/backend_web/channels/presence_channel.ex | farolanf/phoenix-socket-dart | 3fb441c53a25e2f7ea6f8f0ca9e7bfc25e45cdfd | [
"BSD-3-Clause"
] | 22 | 2020-11-28T20:23:34.000Z | 2022-03-23T22:32:52.000Z | example/backend/lib/backend_web/channels/presence_channel.ex | farolanf/phoenix-socket-dart | 3fb441c53a25e2f7ea6f8f0ca9e7bfc25e45cdfd | [
"BSD-3-Clause"
] | 19 | 2020-11-10T14:22:05.000Z | 2022-02-15T10:22:43.000Z | defmodule BackendWeb.PresenceChannel do
use BackendWeb, :channel
alias BackendWeb.Presence
@impl true
def join("presence:lobby", payload, socket) do
if authorized?(payload) do
send(self(), :after_join)
{:ok, socket}
else
{:error, %{reason: "unauthorized"}}
end
end
# # Channel... | 25.456522 | 66 | 0.659266 |
7980d5bc5741518cdc3151327b52f69ed6930d9b | 582 | ex | Elixir | apps/ello_v3/lib/ello_v3/application.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_v3/lib/ello_v3/application.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_v3/lib/ello_v3/application.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.V3.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Ello.V3.Worker.start_l... | 27.714286 | 66 | 0.702749 |
7980d7f707f3ac317b607c0fb888e762a5ec82c5 | 3,656 | ex | Elixir | backend/lib/honeyland/error.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/error.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/error.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 27.283582 | 89 | 0.650985 |
798105efa39508ed6ba9f1e153a60e7188d073b8 | 696 | ex | Elixir | lib/social_network/image.ex | Symbolk/social_network | 11df1ba9bc19fd140b630ac2abbd4b13b42def92 | [
"MIT"
] | 17 | 2017-01-02T10:38:28.000Z | 2021-02-28T22:16:54.000Z | lib/social_network/image.ex | Symbolk/social_network | 11df1ba9bc19fd140b630ac2abbd4b13b42def92 | [
"MIT"
] | null | null | null | lib/social_network/image.ex | Symbolk/social_network | 11df1ba9bc19fd140b630ac2abbd4b13b42def92 | [
"MIT"
] | 2 | 2017-01-09T13:02:13.000Z | 2018-06-16T22:01:53.000Z | defmodule Image do
use Arc.Definition
# def __storage, do: Arc.Storage.Local
@versions [:original, :thumb]
@extension_whitelist ~w(.jpg .jpeg .gif .png)
def acl(:thumb, _), do: :public_read
def validate({file, _}) do
file_extension = file.file_name |> Path.extname |> String.downcase
Enum.membe... | 23.2 | 87 | 0.676724 |
79810a68a4524870393d8d3157b983ba6465a573 | 3,636 | exs | Elixir | test/plug/telemetry_test.exs | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | test/plug/telemetry_test.exs | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | test/plug/telemetry_test.exs | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | Application.ensure_all_started(:telemetry)
defmodule Plug.TelemetryTest do
use ExUnit.Case, async: true
use Plug.Test
defmodule MyPlug do
use Plug.Builder
plug Plug.Telemetry, event_prefix: [:pipeline], extra_options: :hello
plug :send_resp, 200
defp send_resp(conn, status) do
Plug.Conn.... | 28.186047 | 97 | 0.670792 |
79812e062eb977266d8f642d4be3cfae7a8aafd5 | 505 | ex | Elixir | lib/threehundred60_web/views/error_view.ex | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | 13 | 2020-06-03T08:17:45.000Z | 2021-03-11T04:37:52.000Z | lib/threehundred60_web/views/error_view.ex | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | null | null | null | lib/threehundred60_web/views/error_view.ex | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | 1 | 2020-06-26T16:53:14.000Z | 2020-06-26T16:53:14.000Z | defmodule Threehundred60Web.ErrorView do
use Threehundred60Web, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the... | 29.705882 | 61 | 0.742574 |
798158b25ce2729c8bc074d865abdfda2a66f581 | 894 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.111111 | 74 | 0.761745 |
7981600df48c5953813bd583c8b847df158b41f1 | 12,693 | ex | Elixir | lib/con_cache.ex | stefanchrobot/con_cache | 9a497cbf1a1295310480598538ba50686b349ef8 | [
"MIT"
] | null | null | null | lib/con_cache.ex | stefanchrobot/con_cache | 9a497cbf1a1295310480598538ba50686b349ef8 | [
"MIT"
] | null | null | null | lib/con_cache.ex | stefanchrobot/con_cache | 9a497cbf1a1295310480598538ba50686b349ef8 | [
"MIT"
] | null | null | null | defmodule ConCache.Item do
@moduledoc """
This struct can be used in place of naked values to set per-item TTL values.
"""
defstruct value: nil, ttl: :infinity
@type t :: %ConCache.Item{
value: ConCache.value(),
ttl: pos_integer | :infinity | :renew | :no_update
}
end
defmodule C... | 35.160665 | 135 | 0.682108 |
798160c4c034134dd5588d2257efb9074650786e | 1,775 | ex | Elixir | clients/play_custom_app/lib/google_api/play_custom_app/v1/model/custom_app.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/play_custom_app/lib/google_api/play_custom_app/v1/model/custom_app.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/play_custom_app/lib/google_api/play_custom_app/v1/model/custom_app.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... | 33.490566 | 148 | 0.709859 |
7981769f21591a018772aeb76c8d6627871dd087 | 1,677 | exs | Elixir | ttrack-backend/mix.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/mix.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/mix.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | defmodule Ttrack.MixProject do
use Mix.Project
def project do
[
app: :ttrack,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.203125 | 79 | 0.571855 |
79818c8ccdc292a99b5fe22a1e9ba82c6dfe9d2a | 996 | exs | Elixir | test/ex_doc/formatter/html/erlang_test.exs | mayel/ex_doc | 6e5ecfa7d6248fd8038caf4e9f4ac02eb13d0d0f | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/erlang_test.exs | mayel/ex_doc | 6e5ecfa7d6248fd8038caf4e9f4ac02eb13d0d0f | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/erlang_test.exs | mayel/ex_doc | 6e5ecfa7d6248fd8038caf4e9f4ac02eb13d0d0f | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.ErlangTest do
use ExUnit.Case
import TestHelper
@moduletag :otp_eep48
@moduletag :tmp_dir
test "it works", c do
erlc(c, :foo, ~S"""
%% @doc
%% foo module.
-module(foo).
-export([foo/1]).
-export_type([t/0]).
%% @doc
%% f/0 function.
-spec f... | 21.652174 | 92 | 0.549197 |
79818d43814d396717ba8807f5332f3c2648d7c2 | 1,817 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/preview_update_game_server_cluster_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1/model/preview_update_game_server_cluster_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1/model/preview_update_game_server_cluster_response.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... | 34.942308 | 115 | 0.749587 |
79819a2f671bafe540f30e71481bb5a71405b466 | 3,948 | exs | Elixir | test/phoenix/integration/websocket_socket_test.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | test/phoenix/integration/websocket_socket_test.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | test/phoenix/integration/websocket_socket_test.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | Code.require_file("../../support/websocket_client.exs", __DIR__)
defmodule Phoenix.Integration.WebSocketTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
alias Phoenix.Integration.WebsocketClient
alias __MODULE__.Endpoint
@moduletag :capture_log
@port 5907
@path "ws://127.0.0.1:#{@port}/ws/... | 29.909091 | 91 | 0.631966 |
7981a55447e9f975aa600cd2117be4faa81ac8a6 | 2,263 | exs | Elixir | server/test/events_app/events_test.exs | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/test/events_app/events_test.exs | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/test/events_app/events_test.exs | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | 1 | 2021-04-10T18:37:30.000Z | 2021-04-10T18:37:30.000Z | defmodule CompanyTest.EventsTest do
use CompanyTest.DataCase
alias CompanyTest.Events
describe "events" do
alias CompanyTest.Events.Event
@valid_attrs %{body: "some body", date: "some date", event_title: "some event_title"}
@update_attrs %{body: "some updated body", date: "some updated date", event... | 32.797101 | 114 | 0.665488 |
7981be007e7e1ff8282fee6e9f7e7646c552813d | 1,329 | exs | Elixir | backend/test/spades_chat/chat_server_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/test/spades_chat/chat_server_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/test/spades_chat/chat_server_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule ChatServerTest do
use ExUnit.Case, async: true
alias SpadesChat.{ChatServer}
describe "start_link/1" do
test "spawns a process" do
chat_name = generate_chat_name()
assert {:ok, _pid} = ChatServer.start_link(chat_name)
end
test "each name can only have one process" do
cha... | 26.58 | 65 | 0.665914 |
7981cbe899b98074705a63ade21958d75468a561 | 7,191 | ex | Elixir | lib/sitemap/builders/url.ex | ikeikeikeike/ex_sitemap_generator | bab8cdc153b07ddd1183cdc4d01e966bfebfcfdc | [
"MIT"
] | 103 | 2016-04-26T17:31:58.000Z | 2022-02-15T12:26:06.000Z | lib/sitemap/builders/url.ex | ikeikeikeike/ex_sitemap_generator | bab8cdc153b07ddd1183cdc4d01e966bfebfcfdc | [
"MIT"
] | 31 | 2016-06-02T17:26:56.000Z | 2021-11-17T13:19:26.000Z | lib/sitemap/builders/url.ex | ikeikeikeike/ex_sitemap_generator | bab8cdc153b07ddd1183cdc4d01e966bfebfcfdc | [
"MIT"
] | 24 | 2016-09-09T23:45:25.000Z | 2021-02-15T16:36:43.000Z | defmodule Sitemap.Builders.Url do
alias Sitemap.Funcs
alias Sitemap.Config
import XmlBuilder
def to_xml(link, attrs \\ []) do
elms =
element(
:url,
Funcs.eraser([
element(:loc, Path.join(Config.get().host, link || "")),
element(
:lastmod,
Fu... | 33.291667 | 99 | 0.573773 |
7981cdf2ee05f9f75532f92b8443b5ab6d15099b | 11,903 | ex | Elixir | lib/live_element/upload.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/upload.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/upload.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElement.Upload do
# Operations integrating LiveElement.Socket with UploadConfig.
@moduledoc false
alias LiveElement.{Socket, Utils, UploadConfig, UploadEntry}
@refs_to_names :__phoenix_refs_to_names__
@doc """
Allows an upload.
"""
def allow_upload(%Socket{} = socket, name, opts) when i... | 31.24147 | 106 | 0.642527 |
7981e59ce7711e3c597a88add370fae7f6d74e9c | 108 | ex | Elixir | backend/lib/getaways/repo.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/lib/getaways/repo.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/lib/getaways/repo.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule Getaways.Repo do
use Ecto.Repo,
otp_app: :getaways,
adapter: Ecto.Adapters.Postgres
end
| 18 | 35 | 0.731481 |
79821ace54626601a7ebe36ce585eddf2019e0c0 | 484 | ex | Elixir | web/lib/squitter_web/application.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 34 | 2017-08-30T02:29:41.000Z | 2021-05-29T20:21:43.000Z | web/lib/squitter_web/application.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 7 | 2017-09-12T05:27:23.000Z | 2020-01-06T22:07:52.000Z | web/lib/squitter_web/application.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 9 | 2017-09-11T22:17:55.000Z | 2022-01-31T03:07:58.000Z | defmodule Squitter.Web.Application do
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec
Logger.debug("Squitter web starting up")
children = [
supervisor(Squitter.Web.Endpoint, [])
]
opts = [strategy: :one_for_one, name: Squitter.Web.Supervisor]
Supe... | 21.043478 | 66 | 0.706612 |
79823eb2e89e85654de3c381ba1397167dc6d31b | 424 | ex | Elixir | server/apps/boardr/lib/boardr/release.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2021-04-08T17:26:27.000Z | 2021-04-08T17:26:27.000Z | server/apps/boardr/lib/boardr/release.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2022-02-13T05:50:46.000Z | 2022-02-13T05:50:46.000Z | server/apps/boardr/lib/boardr/release.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | null | null | null | defmodule Boardr.Release do
@app :boardr
def migrate do
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
end
def rollback(repo, version) do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :down, to: version))
... | 22.315789 | 91 | 0.641509 |
798266ba0303557bddcda4deee0bd577ac0c28ec | 719 | ex | Elixir | lib/syn_osc/relative_base.ex | camshaft/syn_osc_ex | c7ed257f2ea772f197096d356467e812a0d5e59a | [
"MIT"
] | 1 | 2020-12-08T01:44:03.000Z | 2020-12-08T01:44:03.000Z | lib/syn_osc/relative_base.ex | camshaft/syn_osc_ex | c7ed257f2ea772f197096d356467e812a0d5e59a | [
"MIT"
] | null | null | null | lib/syn_osc/relative_base.ex | camshaft/syn_osc_ex | c7ed257f2ea772f197096d356467e812a0d5e59a | [
"MIT"
] | null | null | null | defmodule SynOSC.RelativeBase do
defstruct id: nil,
cents: nil,
numerator: nil,
denominator: nil
end
defimpl OSC.Encoder, for: SynOSC.RelativeBase do
use SynOSC
def encode(message, options) do
message
|> call("BASE")
|> set_arguments(format_base(message))
|> O... | 23.966667 | 127 | 0.681502 |
7982840f4d19c920e7b3660138bbed782054faf1 | 2,458 | exs | Elixir | config/prod.exs | EssenceOfChaos/lil_links | 8666d317063b7388296cf11a4dec00a0c339db39 | [
"MIT"
] | 1 | 2019-04-24T03:02:27.000Z | 2019-04-24T03:02:27.000Z | config/prod.exs | EssenceOfChaos/lil_links | 8666d317063b7388296cf11a4dec00a0c339db39 | [
"MIT"
] | null | null | null | config/prod.exs | EssenceOfChaos/lil_links | 8666d317063b7388296cf11a4dec00a0c339db39 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 34.138889 | 69 | 0.714402 |
7982cf3c4c061dc0a256cf88eae871294fbfcc82 | 325 | ex | Elixir | lib/json/parser.ex | azukiapp/exjson | 6021434570092b5e31ff379b17a12abb47e7a45c | [
"Apache-2.0"
] | 1 | 2015-06-13T03:35:41.000Z | 2015-06-13T03:35:41.000Z | lib/json/parser.ex | azukiapp/exjson | 6021434570092b5e31ff379b17a12abb47e7a45c | [
"Apache-2.0"
] | null | null | null | lib/json/parser.ex | azukiapp/exjson | 6021434570092b5e31ff379b17a12abb47e7a45c | [
"Apache-2.0"
] | null | null | null | defmodule JSON.Parser do
def parse(thing) when is_binary(thing) do
parse(binary_to_list(thing))
end
def parse(thing) when is_list(thing) do
tokens = JSON.Scanner.scan(thing)
parse(tokens)
end
def parse({:ok, list, _}) do
result = :json_parser.parse(list)
elem(result, 1)
end
... | 18.055556 | 43 | 0.652308 |
7983059f9c86696caa1813a6e780c05f1c1e4cbf | 279 | ex | Elixir | lib/phoenix_api_auth_starter.ex | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | lib/phoenix_api_auth_starter.ex | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | lib/phoenix_api_auth_starter.ex | CMcDonald82/phoenix-api-auth-starter | 916db91ceba32399b8d30cc6a6e35804bc0d18b1 | [
"MIT"
] | null | null | null | defmodule PhoenixApiAuthStarter do
@moduledoc """
PhoenixApiAuthStarter 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
| 27.9 | 66 | 0.777778 |
79831ed3d4e700febf4b0ce8aed2e24f20afe54a | 2,545 | ex | Elixir | test/support/test_adapter.ex | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | 69 | 2018-09-14T18:17:50.000Z | 2022-01-11T01:20:55.000Z | test/support/test_adapter.ex | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | 49 | 2018-10-11T02:47:58.000Z | 2022-03-17T09:10:07.000Z | test/support/test_adapter.ex | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | 27 | 2018-09-19T14:14:06.000Z | 2022-03-07T21:16:33.000Z | defmodule TestAdapter do
@moduledoc false
@behaviour Spandex.Adapter
require Logger
alias Spandex.{SpanContext, Tracer}
@max_id 9_223_372_036_854_775_807
@impl Spandex.Adapter
def trace_id(), do: :rand.uniform(@max_id)
@impl Spandex.Adapter
def span_id(), do: trace_id()
@impl Spandex.Adapter
... | 28.277778 | 109 | 0.682515 |
7983206913835e89a70523c195ae7854e6d55a96 | 279 | exs | Elixir | priv/repo/migrations/20160702161258_create_user.exs | elixir-carbon/carbon | 9537596c9a409e4573cb7cb75cfa0a2e31d9b153 | [
"Apache-2.0"
] | 13 | 2016-07-04T00:44:18.000Z | 2016-07-11T22:02:11.000Z | priv/repo/migrations/20160702161258_create_user.exs | elixir-carbon/carbon | 9537596c9a409e4573cb7cb75cfa0a2e31d9b153 | [
"Apache-2.0"
] | 1 | 2016-07-12T23:09:45.000Z | 2016-07-13T01:19:11.000Z | priv/repo/migrations/20160702161258_create_user.exs | elixirdrops/carbon | 9537596c9a409e4573cb7cb75cfa0a2e31d9b153 | [
"Apache-2.0"
] | 1 | 2016-12-10T07:27:04.000Z | 2016-12-10T07:27:04.000Z | defmodule Carbon.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :password_hash, :string
add :password_reset_token, :string
timestamps
end
create index(:users, [:email])
end
end
| 18.6 | 46 | 0.684588 |
79832ee0cf6adfd3084ff31278d0d296ede82c73 | 721 | ex | Elixir | nucleotide-count/lib/nucleotide_count.ex | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | nucleotide-count/lib/nucleotide_count.ex | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | nucleotide-count/lib/nucleotide_count.ex | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | defmodule NucleotideCount do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a DNA strand.
## Examples
iex> NucleotideCount.count('AATAA', ?A)
4
iex> NucleotideCount.count('AATAA', ?T)
1
"""
@spec count(charlist(), char()) :: non_neg_integer()
def count(strand, nucleoti... | 20.6 | 66 | 0.626907 |
79833c38578c0b1db4e9780a1f239755049e0c99 | 98 | exs | Elixir | robotica_common/config/docker.exs | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_common/config/docker.exs | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_common/config/docker.exs | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | use Mix.Config
config :robotica_common,
compile_config_files: false,
config_common_file: nil
| 16.333333 | 30 | 0.806122 |
79836d05eff038b818d4cec4fb9ff2b2fb7074a5 | 301 | exs | Elixir | priv/repo/migrations/20200120043228_create_links_statuses.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 2 | 2020-09-07T03:42:36.000Z | 2021-05-04T23:58:43.000Z | priv/repo/migrations/20200120043228_create_links_statuses.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 20 | 2020-01-15T03:26:48.000Z | 2020-02-02T20:53:39.000Z | priv/repo/migrations/20200120043228_create_links_statuses.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | null | null | null | defmodule Nuzzelish.Repo.Migrations.CreateLinksStatuses do
use Ecto.Migration
def change do
create table(:links_statuses) do
add :link_id, references(:links)
add :status_id, references(:statuses)
end
create unique_index(:links_statuses, [:link_id, :status_id])
end
end
| 23.153846 | 64 | 0.727575 |
79837aadf7158c369ab57a9d103269be4c32bdd7 | 756 | exs | Elixir | elixir/worker.exs | nkokkos/rabbitmq-tutorials | 949d94ba475bc98736313632ac954461f2b05e36 | [
"Apache-2.0"
] | 2 | 2019-03-27T00:42:58.000Z | 2019-03-28T02:32:09.000Z | elixir/worker.exs | nkokkos/rabbitmq-tutorials | 949d94ba475bc98736313632ac954461f2b05e36 | [
"Apache-2.0"
] | 8 | 2019-11-04T10:50:05.000Z | 2022-02-09T01:02:33.000Z | elixir/worker.exs | nkokkos/rabbitmq-tutorials | 949d94ba475bc98736313632ac954461f2b05e36 | [
"Apache-2.0"
] | 1 | 2019-04-17T10:10:02.000Z | 2019-04-17T10:10:02.000Z | defmodule Worker do
def wait_for_messages(channel) do
receive do
{:basic_deliver, payload, meta} ->
IO.puts " [x] Received #{payload}"
payload
|> to_char_list
|> Enum.count(fn x -> x == ?. end)
|> Kernel.*(1000)
|> :timer.sleep
IO.puts " [x] Done."
... | 26.068966 | 65 | 0.641534 |
798392d7819d2d4e3b465122b916b0622c8a683f | 2,469 | exs | Elixir | test/mix/tasks/ecto.rollback_test.exs | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 384 | 2018-10-03T17:52:39.000Z | 2022-03-24T17:54:21.000Z | test/mix/tasks/ecto.rollback_test.exs | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 357 | 2018-10-06T13:47:33.000Z | 2022-03-29T08:18:02.000Z | test/mix/tasks/ecto.rollback_test.exs | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 251 | 2018-10-04T11:06:41.000Z | 2022-03-29T07:22:53.000Z | defmodule Mix.Tasks.Ecto.RollbackTest do
use ExUnit.Case
import Mix.Tasks.Ecto.Rollback, only: [run: 2]
import Support.FileHelpers
@migrations_path Path.join([tmp_path(), inspect(Ecto.Migrate), "migrations"])
setup do
File.mkdir_p!(@migrations_path)
:ok
end
defmodule Repo do
def start_link... | 23.970874 | 88 | 0.610369 |
79839dad3057eb598f21b8f1d112f045559a1a05 | 74 | ex | Elixir | web/views/coherence/session_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | web/views/coherence/session_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | web/views/coherence/session_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Coherence.SessionView do
use Uptom.Coherence.Web, :view
end
| 12.333333 | 34 | 0.783784 |
7983a6aee7607fa4b9c7048ae7cbcdee97069ba9 | 44,571 | ex | Elixir | deps/ecto/lib/ecto/query.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | deps/ecto/lib/ecto/query.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/query.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | defmodule Ecto.SubQuery do
@moduledoc """
Stores subquery information.
"""
defstruct [:query, :params, :select, :cache]
end
defmodule Ecto.Query do
@moduledoc ~S"""
Provides the Query DSL.
Queries are used to retrieve and manipulate data from a repository
(see `Ecto.Repo`). Ecto queries come in two fl... | 32.94235 | 139 | 0.663929 |
7983b1dbcf1b5239242e399e68ecc3d710bfb44e | 1,186 | exs | Elixir | spec/haml_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | spec/haml_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | spec/haml_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | defmodule HamlSpec do
use ESpec, async: true
{:ok, json} = File.read "#{__DIR__}/haml_spec/tests.json"
tests = Poison.Parser.parse! json
@context_names [
"headers",
"basic Haml tags and CSS",
"tags with unusual HTML characters",
"tags with unusual CSS identifiers",
"tags with inline conten... | 32.054054 | 107 | 0.618044 |
7983bd963777bb5559099434951403790bd8e61d | 2,004 | exs | Elixir | config/prod.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | config/prod.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | config/prod.exs | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 36.436364 | 66 | 0.716567 |
7983cc472b19116c2708bebc9555d591674985cc | 1,638 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_create_test_return_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_create_test_return_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/orders_create_test_return_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.76 | 161 | 0.73199 |
7983d2940c21b6655bc4f0e5245beb551fbf80ea | 550 | ex | Elixir | apps/graphql/lib/graphql/middleware/filter_argument.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/lib/graphql/middleware/filter_argument.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/lib/graphql/middleware/filter_argument.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.Middleware.FilterArgument do
@moduledoc """
This middleware prepares the `filter` argument on connection fields as condition for `Ecto.Query.where/2`
"""
@behaviour Absinthe.Middleware
@filter_arg :filter
def call(%{state: :unresolved, arguments: arguments} = resolution, _) do
filte... | 23.913043 | 107 | 0.687273 |
7984422728b54bdbcf9d74c7039a91924f8d3f4b | 174 | exs | Elixir | test/fontais/option/doctest1_test.exs | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | test/fontais/option/doctest1_test.exs | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | test/fontais/option/doctest1_test.exs | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | defmodule PlymioFontaisOptionDoctest1Test do
use ExUnit.Case, async: true
use PlymioFontaisHelperTest
import Plymio.Fontais.Option
doctest Plymio.Fontais.Option
end
| 21.75 | 44 | 0.827586 |
79844c72e6fb046802cc0709674c2344de32ade4 | 257 | ex | Elixir | lib/radiator_web/graphql/admin/resolvers/session.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | lib/radiator_web/graphql/admin/resolvers/session.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | lib/radiator_web/graphql/admin/resolvers/session.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.GraphQL.Admin.Resolvers.Session do
alias RadiatorWeb.GraphQL.Helpers.UserHelpers
def prolong_authenticated_session(_parent, _params, %{context: %{current_user: user}}) do
UserHelpers.new_session_for_valid_user(user)
end
end
| 32.125 | 91 | 0.81323 |
79845854752045c0855c28a1056822f042aacccb | 2,182 | ex | Elixir | test/support/live_views/update.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/live_views/update.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/live_views/update.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElementTest.TZLive do
use LiveElement
def render(%{name: "NestedAppend"} = assigns) do
~H"""
time: <%= @time %> <%= @name %>
<div id={"append-" <> @name} phx-update="append"><%= for item <- @items do %>
<!-- example -->
<div id={"item-" <> item}><%= item %></div>
<% end %>... | 28.710526 | 119 | 0.570577 |
7984a95dcad80462c03d530de6c7b83a3c3414b7 | 4,975 | ex | Elixir | lib/rules/default.ex | Mendor/mudkip | 65d265508ffe474835237d9302d1851da6cc0a27 | [
"WTFPL"
] | 1 | 2017-02-18T04:36:16.000Z | 2017-02-18T04:36:16.000Z | lib/rules/default.ex | Mendor/mudkip | 65d265508ffe474835237d9302d1851da6cc0a27 | [
"WTFPL"
] | null | null | null | lib/rules/default.ex | Mendor/mudkip | 65d265508ffe474835237d9302d1851da6cc0a27 | [
"WTFPL"
] | null | null | null | defmodule Mudkip.Rules.Default do
@moduledoc """
Default rendering rules set. The other rendering rules may be written using this one as
an example.
Every rules set should has method `render/1` accepting the list of binary strings as
the only parameter. Then this list should be compiled to HTML in a... | 27.638889 | 100 | 0.526633 |
7984cb6a7446a6649af2324787e6a2f245af2357 | 1,492 | ex | Elixir | lib/space_raiders_web/views/error_helpers.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | lib/space_raiders_web/views/error_helpers.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | lib/space_raiders_web/views/error_helpers.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | defmodule SpaceRaidersWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content... | 33.155556 | 81 | 0.673592 |
7984e10b90d1c49e1e2257dcee07226bff4a53db | 1,759 | ex | Elixir | getting-started/lib/getting_started_elixir_web.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 274 | 2017-08-25T06:39:51.000Z | 2022-03-15T21:03:27.000Z | getting-started/lib/getting_started_elixir_web.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 15 | 2017-10-03T17:05:48.000Z | 2021-11-23T00:33:23.000Z | getting-started/lib/getting_started_elixir_web.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 42 | 2017-08-28T20:08:47.000Z | 2022-01-18T07:51:02.000Z | defmodule GettingStartedElixirWeb 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 GettingStartedElixirWeb, :controller
use GettingStartedElixirWeb, :view
The definitions below will be ... | 25.867647 | 73 | 0.714611 |
7984f04a141ad70ef21a557f5a5a78d625a0b34d | 4,590 | ex | Elixir | lib/white_bread/outputers/json.ex | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 209 | 2015-03-03T14:14:28.000Z | 2020-10-26T03:23:48.000Z | lib/white_bread/outputers/json.ex | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 83 | 2015-03-23T11:46:51.000Z | 2020-11-04T09:47:06.000Z | lib/white_bread/outputers/json.ex | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 46 | 2015-06-12T17:37:21.000Z | 2020-10-30T09:52:45.000Z | defmodule WhiteBread.Outputers.JSON do
use GenServer
@moduledoc """
This generic server accumulates information about White Bread
scenarios then formats them as JSON and outputs them to a file in
one go.
"""
defstruct path: nil, data: []
## Client Interface
@doc false
def start do
{:ok, outp... | 27.159763 | 99 | 0.652941 |
798501e7287d503171f64e6f16566c23c15206ff | 1,862 | ex | Elixir | test/support/fixtures.ex | Ross65536/ex_oauth2_provider | 348debc7b5cd068d1b5a03bacfe67c2c89f8077e | [
"MIT"
] | null | null | null | test/support/fixtures.ex | Ross65536/ex_oauth2_provider | 348debc7b5cd068d1b5a03bacfe67c2c89f8077e | [
"MIT"
] | 1 | 2022-03-26T12:42:37.000Z | 2022-03-26T12:42:37.000Z | test/support/fixtures.ex | Ross65536/ex_oauth2_provider | 348debc7b5cd068d1b5a03bacfe67c2c89f8077e | [
"MIT"
] | 1 | 2022-02-21T12:45:09.000Z | 2022-02-21T12:45:09.000Z | defmodule ExOauth2Provider.Test.Fixtures do
@moduledoc false
alias ExOauth2Provider.AccessTokens
alias Dummy.{OauthApplications.OauthApplication, OauthAccessGrants.OauthAccessGrant, Repo, Users.User}
alias Ecto.Changeset
def resource_owner(attrs \\ []) do
attrs = Keyword.merge([email: "foo@example.com"]... | 26.225352 | 104 | 0.641783 |
798510e2d74ad2e1cdb9a045cc1beaf4232d4e68 | 823 | exs | Elixir | test/outputers/style_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 209 | 2015-03-03T14:14:28.000Z | 2020-10-26T03:23:48.000Z | test/outputers/style_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 83 | 2015-03-23T11:46:51.000Z | 2020-11-04T09:47:06.000Z | test/outputers/style_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 46 | 2015-06-12T17:37:21.000Z | 2020-10-30T09:52:45.000Z | defmodule WhiteBread.Outputers.StyleTests do
use ExUnit.Case
alias WhiteBread.Outputers.Style
test "check failed message is in `red` colour encoding" do
styled_binary = Style.failed("Exception was thrown")
assert styled_binary == "\e[31mException was thrown\e[0m"
end
test "check success message is in `green`... | 32.92 | 70 | 0.753341 |
798518b345b1efdf3816f97eccd4013750b0b426 | 1,192 | ex | Elixir | lib/vega/warning_color_rule.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 4 | 2020-03-22T22:12:29.000Z | 2020-07-01T22:32:01.000Z | lib/vega/warning_color_rule.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2021-03-10T11:53:41.000Z | 2021-10-17T11:18:54.000Z | lib/vega/warning_color_rule.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2020-03-30T19:03:23.000Z | 2022-01-17T20:21:42.000Z | defmodule Vega.WarningColorRule do
@moduledoc false
use Yildun.Collection
alias Vega.WarningColorRule
document do
attribute :color, String.t() ## the default color
attribute :n, non_neg_integer() ## threshold
attribute :warning, String.t() ## the warning color
end
def new(color, n, wa... | 24.833333 | 98 | 0.656879 |
79853e293d5412ffbffe18a652d1b189fe66d873 | 2,265 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.952381 | 192 | 0.746137 |
7985478cbc2541abe4ed9955df191fa074d4d127 | 4,136 | ex | Elixir | lib/livebook_web/live/settings_live.ex | Fudoshiki/livebook | 0b30fd02d9a50b84873725f3e05974d62fee398f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/settings_live.ex | Fudoshiki/livebook | 0b30fd02d9a50b84873725f3e05974d62fee398f | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/settings_live.ex | Fudoshiki/livebook | 0b30fd02d9a50b84873725f3e05974d62fee398f | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SettingsLive do
use LivebookWeb, :live_view
import LivebookWeb.UserHelpers
alias LivebookWeb.{SidebarHelpers, PageHelpers}
@impl true
def mount(_params, _session, socket) do
file_systems = Livebook.Config.file_systems()
file_systems_env = Livebook.Config.file_systems_as_env(fi... | 36.928571 | 109 | 0.611944 |
7985832f0840e474e95dea01a1cb7ecdddefaf8f | 8,314 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/campaign_creative_associations.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/campaign_creative_associations.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/campaign_creative_associations.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... | 42.635897 | 196 | 0.631224 |
79858e45350d8106d921c697f2c47f693eb82c6a | 2,941 | ex | Elixir | lib/transport/tcp.ex | ityonemo/transporter | 7dfbc736b383421f29d3f5418fd1b92b5a0a0eff | [
"BSD-3-Clause"
] | 1 | 2021-04-28T15:14:45.000Z | 2021-04-28T15:14:45.000Z | lib/transport/tcp.ex | ityonemo/transport | 7dfbc736b383421f29d3f5418fd1b92b5a0a0eff | [
"BSD-3-Clause"
] | null | null | null | lib/transport/tcp.ex | ityonemo/transport | 7dfbc736b383421f29d3f5418fd1b92b5a0a0eff | [
"BSD-3-Clause"
] | null | null | null | defmodule Transport.Tcp do
@moduledoc """
implements a tcp transport strategy.
"""
@behaviour Transport
alias Transport
@type socket :: Transport.socket
@connection_opts [:binary, active: false]
@spec send(socket, iodata) :: :ok | {:error, term}
@doc "Callback implementation for `c:Transport.send/... | 31.967391 | 83 | 0.66372 |
7985eaef96fed90dcb56b045d234cda8d7260025 | 1,812 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orderinvoices_create_charge_invoice_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderinvoices_create_charge_invoice_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderinvoices_create_charge_invoice_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.555556 | 216 | 0.737307 |
7985ecd04a9e92dd16f4ec2f88e56c616592d64d | 4,339 | ex | Elixir | lib/oban/migrations.ex | iautom8things/oban | 5f1dfc277c2933fdc0dada812dbbca31c6d55fa0 | [
"Apache-2.0"
] | null | null | null | lib/oban/migrations.ex | iautom8things/oban | 5f1dfc277c2933fdc0dada812dbbca31c6d55fa0 | [
"Apache-2.0"
] | null | null | null | lib/oban/migrations.ex | iautom8things/oban | 5f1dfc277c2933fdc0dada812dbbca31c6d55fa0 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Migrations do
@moduledoc """
Migrations create and modify the database tables Oban needs to funtion.
## Usage
To use migrations in your application you'll need to generate an `Ecto.Migration` that wraps
calls to `Oban.Migrations`:
```bash
mix ecto.gen.migration add_oban
```
Open the... | 25.982036 | 97 | 0.694861 |
7985f064177e0281a5b8200845f337ff9dccd669 | 399 | exs | Elixir | config/config.exs | maxneuvians/maple | 9785945c9fce814d7bd63e0c055cc7e71765e322 | [
"MIT"
] | 24 | 2017-10-03T17:22:35.000Z | 2021-06-09T20:19:43.000Z | config/config.exs | maxneuvians/pique | 1f153d98e18cf58736abadf6efa73386eedb077c | [
"MIT"
] | 2 | 2017-11-20T04:17:26.000Z | 2018-12-12T23:39:07.000Z | config/config.exs | maxneuvians/pique | 1f153d98e18cf58736abadf6efa73386eedb077c | [
"MIT"
] | 4 | 2017-10-29T17:03:08.000Z | 2018-08-30T20:57:24.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Import environment specific config. This must remain at the bottom
# of this file s... | 36.272727 | 68 | 0.789474 |
7986097ecc394001588305974f9487b35d8c69a3 | 1,019 | ex | Elixir | lib/bex/piece.ex | ckampfe/bex | cfbfdd600e03ebb9ef60c3f2f8cb61b0640455ff | [
"BSD-3-Clause"
] | null | null | null | lib/bex/piece.ex | ckampfe/bex | cfbfdd600e03ebb9ef60c3f2f8cb61b0640455ff | [
"BSD-3-Clause"
] | null | null | null | lib/bex/piece.ex | ckampfe/bex | cfbfdd600e03ebb9ef60c3f2f8cb61b0640455ff | [
"BSD-3-Clause"
] | null | null | null | defmodule Bex.Piece do
defstruct [:index, :length]
@type t :: %__MODULE__{index: non_neg_integer(), length: pos_integer()}
@spec read(t, :file.io_device()) :: {:ok, term} | :eof | {:error, term}
def read(%__MODULE__{length: length} = piece, file) do
location = byte_location(piece)
:file.pread(file, lo... | 29.970588 | 90 | 0.638862 |
798613c6255288df67a7c5a1d18ae9ef449c519a | 1,477 | ex | Elixir | ros/ros_ui_runner/lib/ros_ui_runner_web/endpoint.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_runner/lib/ros_ui_runner_web/endpoint.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_runner/lib/ros_ui_runner_web/endpoint.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.RunnerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ros_ui_runner
socket "/socket", Ros.RunnerWeb.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 deployin... | 26.854545 | 69 | 0.701422 |
7986174ff036219fc2be49db2bc63cf03c2c51c3 | 762 | ex | Elixir | lib/redex/command/mset.ex | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | 173 | 2019-03-15T15:05:11.000Z | 2022-01-10T08:21:48.000Z | lib/redex/command/mset.ex | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | null | null | null | lib/redex/command/mset.ex | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | 9 | 2019-07-28T01:20:43.000Z | 2021-08-18T03:41:44.000Z | defmodule Redex.Command.MSET do
use Redex.Command
def exec(pairs = [_, _ | _], state = %State{quorum: quorum, db: db}) do
if length(pairs) |> rem(2) != 0 do
wrong_arg_error("MSET")
else
if readonly?(quorum) do
{:error, "READONLY You can't write against a read only replica."}
else
... | 26.275862 | 73 | 0.577428 |
798625274cda34a8bb99c38d4260a846e2866414 | 63 | ex | Elixir | web/views/coherence/layout_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | web/views/coherence/layout_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | web/views/coherence/layout_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Coherence.LayoutView do
use Uptom.Web, :view
end
| 10.5 | 33 | 0.761905 |
798626835a2d18b9c8174c980521f36bb0650b92 | 1,726 | ex | Elixir | apps/financial_system_web/lib/financial_system_web.ex | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | null | null | null | apps/financial_system_web/lib/financial_system_web.ex | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | 2 | 2021-03-10T03:19:32.000Z | 2021-09-02T04:33:17.000Z | apps/financial_system_web/lib/financial_system_web.ex | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | null | null | null | defmodule FinancialSystemWeb 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 FinancialSystemWeb, :controller
use FinancialSystemWeb, :view
The definitions below will be executed for ev... | 25.014493 | 83 | 0.706837 |
7986546236b4977a5e4d24c054205784d99d95c9 | 7,199 | ex | Elixir | lib/horde/supervisor.ex | SvenW/horde | 6db5b835d188382b2ad6ebe026871bf7558224b2 | [
"MIT"
] | null | null | null | lib/horde/supervisor.ex | SvenW/horde | 6db5b835d188382b2ad6ebe026871bf7558224b2 | [
"MIT"
] | null | null | null | lib/horde/supervisor.ex | SvenW/horde | 6db5b835d188382b2ad6ebe026871bf7558224b2 | [
"MIT"
] | null | null | null | defmodule Horde.Supervisor do
@moduledoc """
A distributed supervisor.
Horde.Supervisor implements a distributed DynamicSupervisor backed by a add-wins last-write-wins δ-CRDT (provided by `DeltaCrdt.AWLWWMap`). This CRDT is used for both tracking membership of the cluster and tracking supervised processes.
Us... | 43.896341 | 805 | 0.718572 |
7986767aab2fbca9ec708d8b02e8c7157a842230 | 1,970 | ex | Elixir | lib/chat_api/accounts.ex | primeithard/livachat | b338467d3205ba2afc49a31af2fc1438f75aab47 | [
"MIT"
] | null | null | null | lib/chat_api/accounts.ex | primeithard/livachat | b338467d3205ba2afc49a31af2fc1438f75aab47 | [
"MIT"
] | null | null | null | lib/chat_api/accounts.ex | primeithard/livachat | b338467d3205ba2afc49a31af2fc1438f75aab47 | [
"MIT"
] | null | null | null | defmodule ChatApi.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.Accounts.Account
@doc """
Returns the list of accounts.
## Examples
iex> list_accounts()
[%Account{}, ...]
"""
def list_accounts do
Repo.all(... | 18.240741 | 88 | 0.601015 |
7986816748257f4fd6e5dc78efbc66bb599868de | 473 | ex | Elixir | lib/probe/supervisor.ex | atlas-forks/instruments | 9df31ecf5388916fbd7a5ebb331ebac371df3e9d | [
"MIT"
] | null | null | null | lib/probe/supervisor.ex | atlas-forks/instruments | 9df31ecf5388916fbd7a5ebb331ebac371df3e9d | [
"MIT"
] | null | null | null | lib/probe/supervisor.ex | atlas-forks/instruments | 9df31ecf5388916fbd7a5ebb331ebac371df3e9d | [
"MIT"
] | null | null | null | defmodule Instruments.Probe.Supervisor do
@moduledoc false
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init([]) do
children = [
worker(Instruments.Probe.Runner, [])
]
supervise(children, strategy: :simple_one_for_one, name: __MODULE... | 22.52381 | 75 | 0.714588 |
79869ffc840d5483bdd176a6d9ce1b8319bee020 | 1,113 | exs | Elixir | test/ex_firebase/auth/auth_test.exs | alfietham/ex_firebase | f8f6666db003940138b8fe79e1c5be4a6e580de1 | [
"MIT"
] | 6 | 2019-03-23T10:18:13.000Z | 2021-12-30T15:15:15.000Z | test/ex_firebase/auth/auth_test.exs | alfietham/ex_firebase | f8f6666db003940138b8fe79e1c5be4a6e580de1 | [
"MIT"
] | null | null | null | test/ex_firebase/auth/auth_test.exs | alfietham/ex_firebase | f8f6666db003940138b8fe79e1c5be4a6e580de1 | [
"MIT"
] | 3 | 2019-05-16T01:32:20.000Z | 2021-12-30T16:02:30.000Z | defmodule ExFirebase.AuthTest do
use ExUnit.Case
alias ExFirebase.{Auth, Error}
@public_keys File.cwd!()
|> Path.join("/test/fixtures/public-keys.json")
|> File.read!()
|> Poison.decode!()
test "access_token/0 returns cached access token" do
assert {:ok, _acce... | 30.081081 | 87 | 0.667565 |
7986a99f671617b9306e73364d2b726e8ae0d608 | 1,290 | exs | Elixir | elixir/tour/mix_and_otp/kv_umbrella/apps/kv_server/test/kv_server_test.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/mix_and_otp/kv_umbrella/apps/kv_server/test/kv_server_test.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/mix_and_otp/kv_umbrella/apps/kv_server/test/kv_server_test.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | defmodule KVServerTest do
use ExUnit.Case
# doctest KVServer
@moduletag :capture_log
setup do
Application.stop(:kv)
:ok = Application.start(:kv)
end
setup do
opts = [:binary, packet: :line, active: false]
{:ok, socket} = :gen_tcp.connect('localhost', 4040, opts)
%{socket: socket}
e... | 25.8 | 81 | 0.639535 |
7986b756afd9e46afaa5213975bd9b43eda6ff16 | 360 | ex | Elixir | lib/hologram/compiler/pattern_deconstructor/map_type.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/pattern_deconstructor/map_type.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/pattern_deconstructor/map_type.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Compiler.IR.MapAccess
alias Hologram.Compiler.IR.MapType
alias Hologram.Compiler.PatternDeconstructor
defimpl PatternDeconstructor, for: MapType do
def deconstruct(%{data: data}, path) do
Enum.reduce(data, [], fn {key, value}, acc ->
acc ++ PatternDeconstructor.deconstruct(value, path ++ [%M... | 30 | 84 | 0.733333 |
7986bb33a30c997aac59e2c8911a820530ad711b | 470 | ex | Elixir | lib/sanbase_web/admin/coinmarketcap/schedule_rescrape_price.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/coinmarketcap/schedule_rescrape_price.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/coinmarketcap/schedule_rescrape_price.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.ScheduleRescrapePrice do
use ExAdmin.Register
register_resource Sanbase.ExternalServices.Coinmarketcap.ScheduleRescrapePrice do
form srp do
inputs do
input(srp, :from, type: NaiveDateTime)
input(srp, :to, type: NaiveDateTime)
input(
srp,
... | 24.736842 | 94 | 0.651064 |
7986d86bde62b75d3c3225fb30f825b596f6a4e4 | 512 | exs | Elixir | programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-2-plug/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-2-plug/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/hello-world-elixir-web-app-in-3-variants/variant-2-plug/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule HelloWorld.Mixfile do
use Mix.Project
def project do
[app: :hello_world,
version: "0.1.0",
elixir: "~> 1.3",
deps: deps()]
end
def application do
[
mod: {HelloWorld, []},
applications: applications(Mix.env)
]
end
defp applications(:dev), do: applications(:... | 18.285714 | 61 | 0.535156 |
79871c89705fe49d69132bf619e5554dae892aff | 56,932 | ex | Elixir | lib/mix/lib/mix/tasks/release.ex | btkostner/elixir | cc2289806b3839f79a5c9ee42d138c1faa7fc0a6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.ex | btkostner/elixir | cc2289806b3839f79a5c9ee42d138c1faa7fc0a6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.ex | btkostner/elixir | cc2289806b3839f79a5c9ee42d138c1faa7fc0a6 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Release do
use Mix.Task
@shortdoc "Assembles a self-contained release"
@moduledoc """
Assembles a self-contained release for the current project:
MIX_ENV=prod mix release
MIX_ENV=prod mix release NAME
Once a release is assembled, it can be packaged and deployed to a
targe... | 39.31768 | 106 | 0.695865 |
79873108257972756bdb63159107d136100cfac4 | 1,919 | exs | Elixir | config/dev.exs | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 2 | 2020-05-05T06:07:16.000Z | 2020-05-09T02:12:32.000Z | config/dev.exs | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 21 | 2020-05-05T16:06:57.000Z | 2020-07-07T17:25:46.000Z | config/dev.exs | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :cardigan, CardiganWeb.Endpoint,
http: [port: 40... | 28.220588 | 68 | 0.684732 |
7987417d50116d29fe33dc48f3dad49a7614488f | 1,158 | ex | Elixir | debian/watch.ex | XMuli/lfxSpeed | 1bc58d743df9f00e034a9f9e17528dd5a897274e | [
"MIT"
] | 33 | 2020-11-28T09:31:51.000Z | 2022-01-07T09:54:45.000Z | debian/watch.ex | XMuli/lfxSpeed | 1bc58d743df9f00e034a9f9e17528dd5a897274e | [
"MIT"
] | 10 | 2020-11-19T02:50:16.000Z | 2021-12-04T06:17:15.000Z | debian/watch.ex | XMuli/lfxSpeed | 1bc58d743df9f00e034a9f9e17528dd5a897274e | [
"MIT"
] | 4 | 2020-12-12T03:10:17.000Z | 2021-04-07T03:11:26.000Z | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 4 file
version=4
# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig
#opts="pgpsigurlmangle=s%$%.s... | 29.692308 | 92 | 0.670121 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.