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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
383fe4ef5c8d7fa9c7630fdfbb4fced69eb4940f | 908 | ex | Elixir | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"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.62963 | 74 | 0.765419 |
383fff0e0ad8598b0085b8ea1e0217fc9055ab95 | 747 | ex | Elixir | lib/ex_effective_bootstrap/submit.ex | code-and-effect/ex_effective_bootstrap | 533e43ebd3bb83ec7a98eba3fd128d12fa43e2bb | [
"MIT"
] | 12 | 2020-01-05T14:47:36.000Z | 2021-07-23T14:59:19.000Z | lib/ex_effective_bootstrap/submit.ex | alanvardy/ex_effective_bootstrap | 533e43ebd3bb83ec7a98eba3fd128d12fa43e2bb | [
"MIT"
] | 4 | 2020-01-16T04:55:36.000Z | 2021-07-05T14:13:37.000Z | lib/ex_effective_bootstrap/submit.ex | alanvardy/ex_effective_bootstrap | 533e43ebd3bb83ec7a98eba3fd128d12fa43e2bb | [
"MIT"
] | 7 | 2020-01-22T07:48:51.000Z | 2021-07-23T14:59:25.000Z | defmodule ExEffectiveBootstrap.Submit do
@moduledoc "The submit button for an effective_form"
use Phoenix.HTML
alias ExEffectiveBootstrap.{Icons, Options}
alias Phoenix.HTML.Form
@spec effective_submit(any, Keyword.t()) :: Phoenix.HTML.Safe.t()
def effective_submit(value \\ "Save", opts \\ []) do
defau... | 28.730769 | 67 | 0.668005 |
384026bf9aa2c4dc8d563a63bc09ea30f5bb20c8 | 779 | ex | Elixir | test/support/channel_case.ex | pastleo/iex_line_bot | 73d02b45adc05bc7331fa5f88859861d04a2e71f | [
"MIT"
] | 1 | 2019-06-24T23:55:26.000Z | 2019-06-24T23:55:26.000Z | test/support/channel_case.ex | pastleo/iex_line_bot | 73d02b45adc05bc7331fa5f88859861d04a2e71f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | pastleo/iex_line_bot | 73d02b45adc05bc7331fa5f88859861d04a2e71f | [
"MIT"
] | null | null | null | defmodule IexLineBotWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interact... | 24.34375 | 59 | 0.72914 |
384029ac7e632ed1f9b7fe6a52ba4399a6204cb5 | 7,449 | ex | Elixir | lib/ash/actions/destroy.ex | tlietz/ash | 12cfe0d8486b4bf9d750f428b43d8adb87d5c964 | [
"MIT"
] | null | null | null | lib/ash/actions/destroy.ex | tlietz/ash | 12cfe0d8486b4bf9d750f428b43d8adb87d5c964 | [
"MIT"
] | null | null | null | lib/ash/actions/destroy.ex | tlietz/ash | 12cfe0d8486b4bf9d750f428b43d8adb87d5c964 | [
"MIT"
] | null | null | null | defmodule Ash.Actions.Destroy do
@moduledoc false
alias Ash.Actions.Helpers
alias Ash.Engine
alias Ash.Engine.Request
@spec run(Ash.Api.t(), Ash.Changeset.t(), Ash.Resource.Actions.action(), Keyword.t()) ::
{:ok, list(Ash.Notifier.Notification.t())}
| :ok
| {:error, Ash.Changes... | 30.780992 | 101 | 0.535777 |
3840463850f73795f58115b3768cb94435bed482 | 2,885 | exs | Elixir | test/helpers_test.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | test/helpers_test.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | test/helpers_test.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | defmodule HelpersTests do
use ExUnit.Case, async: true
doctest Timex.Helpers
alias Timex.Helpers
test "days_in_month with invalid year and month" do
assert {:error, :invalid_year} = Helpers.days_in_month(-1, 3)
assert {:error, :invalid_month} = Helpers.days_in_month(1, -3)
assert {:error, :invalid... | 37.960526 | 85 | 0.67175 |
384049f1f09a2723940b1c5759617e92dda3fa12 | 508 | ex | Elixir | lib/screenboard-scripts/jobs.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | null | null | null | lib/screenboard-scripts/jobs.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 1 | 2018-01-25T21:49:40.000Z | 2018-01-25T21:49:40.000Z | lib/screenboard-scripts/jobs.ex | justicedemocrats/livevox_layer | 2ead1d0ef7529e617de524391d3d19514815af18 | [
"MIT"
] | 2 | 2018-01-25T12:29:59.000Z | 2018-05-25T15:43:26.000Z | defmodule ScreenBoard.Jobs do
import ShortMaps
def revoke_and_share_all do
[327_102]
|> Enum.each(&revoke_and_share/1)
end
def revoke_and_share(board_id) do
Dog.Api.delete("screen/share/#{board_id}")
%{body: ~m(public_url)} = Dog.Api.post("screen/share/#{board_id}")
HTTPotion.post(
... | 22.086957 | 70 | 0.694882 |
384052ffde87fb69895f0d92e2a968e68cd111eb | 1,852 | ex | Elixir | lib/dagex/operations/create_edge.ex | jwilger/dagex | b6c0b660c6897ee1109e1d72937e993b7bfebb4f | [
"Apache-2.0"
] | null | null | null | lib/dagex/operations/create_edge.ex | jwilger/dagex | b6c0b660c6897ee1109e1d72937e993b7bfebb4f | [
"Apache-2.0"
] | null | null | null | lib/dagex/operations/create_edge.ex | jwilger/dagex | b6c0b660c6897ee1109e1d72937e993b7bfebb4f | [
"Apache-2.0"
] | null | null | null | defmodule Dagex.Operations.CreateEdge do
@moduledoc """
Represents a database operation to create a new edge between two nodes.
See `c:Dagex.create_edge/2`
"""
@type t() :: %__MODULE__{
node_type: String.t(),
parent: struct(),
parent_id: String.t(),
child: struct(),
... | 28.060606 | 95 | 0.62257 |
384063ce687705fec9da8e5ee3e0afab628effe5 | 21,446 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/policy.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 70.778878 | 586 | 0.749324 |
384082fe35a37a3f5dc724e8c9f9b0a9a40e7139 | 1,914 | exs | Elixir | elixir/priv/repo/seeds.exs | maxshay/web-homework | 9ae5eb1b6d67355568a7678a0ba3933a5d46700c | [
"MIT"
] | null | null | null | elixir/priv/repo/seeds.exs | maxshay/web-homework | 9ae5eb1b6d67355568a7678a0ba3933a5d46700c | [
"MIT"
] | null | null | null | elixir/priv/repo/seeds.exs | maxshay/web-homework | 9ae5eb1b6d67355568a7678a0ba3933a5d46700c | [
"MIT"
] | null | null | null | alias Homework.Users.User
alias Homework.Merchants.Merchant
alias Homework.Transactions.Transaction
# get some users
total_user_count = 10
%{body: body} = HTTPoison.get!("https://randomuser.me/api?results=#{total_user_count}")
%{"results" => results} = Jason.decode!(body)
persons_created = Enum.reduce(results, [], ... | 35.444444 | 166 | 0.676071 |
3840c17c566db27c35c09f2337ab5dd749103dd2 | 1,759 | ex | Elixir | clients/composer/lib/google_api/composer/v1/model/web_server_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/composer/lib/google_api/composer/v1/model/web_server_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/web_server_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.425532 | 401 | 0.749858 |
3840c4d527e61f0cc8938998bc62d77aa5582519 | 1,473 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_pause_evaluation_job_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_pause_evaluation_job_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_pause_evaluation_job_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.061224 | 105 | 0.777325 |
3840cf37de1b0e863628c67e2947b7bcdf23c376 | 2,614 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/function_mock.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/function_mock.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/function_mock.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.606061 | 161 | 0.730681 |
3840dd731487a722daa7f86818e5e647abaf61d2 | 12,695 | ex | Elixir | lib/dogmatix.ex | vptheron/dogmatix | 8998b95df8e9adf3f99df1adf2c04f42cd71ba6c | [
"Apache-2.0"
] | 8 | 2021-04-29T13:39:43.000Z | 2021-04-30T18:31:50.000Z | lib/dogmatix.ex | vptheron/dogmatix | 8998b95df8e9adf3f99df1adf2c04f42cd71ba6c | [
"Apache-2.0"
] | null | null | null | lib/dogmatix.ex | vptheron/dogmatix | 8998b95df8e9adf3f99df1adf2c04f42cd71ba6c | [
"Apache-2.0"
] | null | null | null | defmodule Dogmatix do
@moduledoc """
This module provides the main API to interface with a StasD/DogStatsD agent.
## Getting started
A new instance of Dogmatix can be started via the `start_link/2` function:
{:ok, pid} = Dogmatix.start_link("my_dogmatix", "localhost", 8125)
This will create a new in... | 35.460894 | 136 | 0.688145 |
38413466fd07ef0a4d90b4fcfe32d02a41e04414 | 2,807 | ex | Elixir | lib/elixir/lib/record/extractor.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record/extractor.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record/extractor.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule Record.Extractor do
@moduledoc false
# Retrieve a record definition from an Erlang file using
# the same lookup as the *include* attribute from Erlang modules.
def retrieve(name, from: file) when is_binary(file) do
file = String.to_char_list!(file)
realfile =
case :code.where_is_file(f... | 30.182796 | 100 | 0.644817 |
38413cb71b10f62319c2a08934f3861819aa9aad | 4,536 | ex | Elixir | lib/bamboo/adapters/mandrill_adapter.ex | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | null | null | null | lib/bamboo/adapters/mandrill_adapter.ex | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 1 | 2021-02-23T13:04:02.000Z | 2021-02-23T13:04:02.000Z | lib/bamboo/adapters/mandrill_adapter.ex | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | null | null | null | defmodule Bamboo.MandrillAdapter do
@moduledoc """
Sends email using Mandrill's JSON API.
Use this adapter to send emails through Mandrill's API. Requires that an API
key is set in the config. See `Bamboo.MandrillHelper` for extra functions that
can be used by `Bamboo.MandrillAdapter` (tagging, merge vars, e... | 27.828221 | 93 | 0.660935 |
38414bdeb59930e663638f9b1bbf259d32d1cd84 | 1,631 | ex | Elixir | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.930233 | 381 | 0.748007 |
384160d67d650c5c6e96725ef32dea086cdc4909 | 358 | ex | Elixir | lib/trento/application/integration/checks/dto/provider_dto.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento/application/integration/checks/dto/provider_dto.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento/application/integration/checks/dto/provider_dto.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Integration.Checks.ProviderDto do
@moduledoc """
Catalog entry by provider
"""
@required_fields [
:provider,
:groups
]
use Trento.Type
alias Trento.Integration.Checks.GroupDto
deftype do
field :provider, Ecto.Enum, values: [:azure, :aws, :gcp, :default, :unknown]
em... | 17.047619 | 80 | 0.687151 |
38419f102f2b4c48da34839327859d2a891a8565 | 555 | ex | Elixir | apps/reaper/lib/reaper/util.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/reaper/lib/reaper/util.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/reaper/lib/reaper/util.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Reaper.Util do
@moduledoc false
def via_tuple(id), do: {:via, Horde.Registry, {Reaper.Horde.Registry, id}}
def deep_merge(left, right), do: Map.merge(left, right, &deep_resolve/3)
defp deep_resolve(_key, %{} = left, %{} = right), do: deep_merge(left, right)
defp deep_resolve(_key, _left, right), do... | 34.6875 | 110 | 0.682883 |
3841aab950277565517d5f376341a6f34c8822c7 | 60 | ex | Elixir | lib/rox/db_options.ex | Tip-Off/rox | 4e53c0914c499957bb0ccd6e3aa434bc444f9513 | [
"MIT"
] | null | null | null | lib/rox/db_options.ex | Tip-Off/rox | 4e53c0914c499957bb0ccd6e3aa434bc444f9513 | [
"MIT"
] | null | null | null | lib/rox/db_options.ex | Tip-Off/rox | 4e53c0914c499957bb0ccd6e3aa434bc444f9513 | [
"MIT"
] | null | null | null | defmodule Rox.DBOptions do
defstruct total_threads: 1
end
| 15 | 28 | 0.816667 |
3841c178fb8f3a97224712045b719fd480f2bc47 | 1,922 | ex | Elixir | lib/docusign/model/signer_email_notifications.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/signer_email_notifications.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/signer_email_notifications.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.SignerEmailNotifications do
@moduledoc """
An array of email notifications that specifies the email the user receives when they... | 34.945455 | 320 | 0.680541 |
3841cd0231fb4e686284c7a4d88029a79781844d | 2,534 | exs | Elixir | test/phoenix_live_view/integrations/assigns_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | 4,659 | 2019-03-14T20:22:43.000Z | 2022-03-31T20:13:30.000Z | test/phoenix_live_view/integrations/assigns_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | 1,745 | 2019-03-14T22:04:38.000Z | 2022-03-31T17:26:25.000Z | test/phoenix_live_view/integrations/assigns_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | 744 | 2019-03-14T20:48:05.000Z | 2022-03-25T14:35:04.000Z | defmodule Phoenix.LiveView.AssignsTest do
use ExUnit.Case, async: true
import Plug.Conn
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveViewTest.Endpoint
@endpoint Endpoint
setup do
{:ok, conn: Plug.Test.init_test_session(Phoenix.ConnTest.build_conn(), %{})}
end
describe ... | 32.075949 | 96 | 0.613654 |
3841f7c8874da62456a9a48ff38d139ed45e36ea | 443 | exs | Elixir | priv/repo/migrations/20210213113743_add_buys_table.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | priv/repo/migrations/20210213113743_add_buys_table.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | priv/repo/migrations/20210213113743_add_buys_table.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Repo.Migrations.AddBuysTable do
use Ecto.Migration
def change do
create table(:buys) do
add :quantity, :integer
add :attendee_id, references(:attendees, on_delete: :delete_all, type: :uuid)
add :redeemable_id, references(:redeemables, on_delete: :delete_all)
timestamps... | 26.058824 | 97 | 0.713318 |
3842019b5974869cb31c4a11564e1c431df320f1 | 2,353 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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.881356 | 186 | 0.705057 |
384202ce17bbef4a2438083519bb70010de97dfb | 985 | ex | Elixir | lib/edgedb/protocol/codecs/builtin/datetime.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/datetime.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/datetime.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.Codecs.Builtin.DateTime do
@moduledoc false
use EdgeDB.Protocol.Codec
alias EdgeDB.Protocol.Datatypes
@seconds_before_2000_1_1_utc 946_684_800
defbuiltinscalarcodec(
type_name: "std::datetime",
type_id: Datatypes.UUID.from_string("00000000-0000-0000-0000-00000000010A"),
... | 25.25641 | 98 | 0.739086 |
38426c2ef11c30dae3633148822c5bf691ec8bd8 | 803 | ex | Elixir | test/support/conn_case.ex | mkrogemann/bird_watch | 2ce2d1489b25560d767d6ee8c7824f2c07d211c4 | [
"Apache-2.0"
] | 18 | 2016-02-25T22:03:43.000Z | 2017-10-03T09:19:46.000Z | test/support/conn_case.ex | mkrogemann/bird_watch | 2ce2d1489b25560d767d6ee8c7824f2c07d211c4 | [
"Apache-2.0"
] | 1 | 2016-03-18T03:41:04.000Z | 2016-03-21T21:02:51.000Z | test/support/conn_case.ex | mkrogemann/bird_watch | 2ce2d1489b25560d767d6ee8c7824f2c07d211c4 | [
"Apache-2.0"
] | 6 | 2016-05-17T04:40:15.000Z | 2021-08-20T05:39:37.000Z | defmodule BirdWatch.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the ... | 22.942857 | 56 | 0.722291 |
3842a6a5f5ddece6bb56702907b69f7c72ef6021 | 4,898 | ex | Elixir | lib/cors_plug.ex | billionlaughs/cors_plug | b2d6d0f6b7ed40b4e692736010de45b848573215 | [
"Apache-2.0"
] | null | null | null | lib/cors_plug.ex | billionlaughs/cors_plug | b2d6d0f6b7ed40b4e692736010de45b848573215 | [
"Apache-2.0"
] | null | null | null | lib/cors_plug.ex | billionlaughs/cors_plug | b2d6d0f6b7ed40b4e692736010de45b848573215 | [
"Apache-2.0"
] | 1 | 2019-10-01T07:15:52.000Z | 2019-10-01T07:15:52.000Z | defmodule CORSPlug do
import Plug.Conn
def defaults do
[
origin: "*",
credentials: true,
max_age: 1_728_000,
headers: [
"Authorization",
"Content-Type",
"Accept",
"Origin",
"User-Agent",
"DNT",
"Cache-Control",
"X-Mx-ReqTok... | 25.643979 | 116 | 0.613107 |
3842b903ab207cd7c5383fc2466bdedb5a1ea09b | 853 | exs | Elixir | apps/api_web/test/api_web/controllers/status_controller_test.exs | pacebus/mbta-api-fork | 6bf1d3a16e8917c9cfac0001b184c443be1f3abd | [
"MIT"
] | null | null | null | apps/api_web/test/api_web/controllers/status_controller_test.exs | pacebus/mbta-api-fork | 6bf1d3a16e8917c9cfac0001b184c443be1f3abd | [
"MIT"
] | null | null | null | apps/api_web/test/api_web/controllers/status_controller_test.exs | pacebus/mbta-api-fork | 6bf1d3a16e8917c9cfac0001b184c443be1f3abd | [
"MIT"
] | 1 | 2019-09-09T20:40:13.000Z | 2019-09-09T20:40:13.000Z | defmodule ApiWeb.StatusControllerTest do
use ApiWeb.ConnCase
test "returns service metadata", %{conn: conn} do
State.Feed.new_state(%Model.Feed{version: "TEST"})
conn = get(conn, status_path(conn, :index))
assert json = json_response(conn, 200)
assert_attribute_key(json, "feed_version")
assert_... | 34.12 | 62 | 0.729191 |
384375f404d7d46a0a76d5c07468e062524c824a | 205 | exs | Elixir | apps/meeple_web/test/meeple_web/controllers/dev/page_controller_test.exs | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | apps/meeple_web/test/meeple_web/controllers/dev/page_controller_test.exs | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | 13 | 2021-12-24T23:44:10.000Z | 2022-03-04T20:56:28.000Z | apps/meeple_web/test/meeple_web/controllers/dev/page_controller_test.exs | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | defmodule MeepleWeb.Dev.PageControllerTest do
use MeepleWeb.ConnCase
test "GET /colors", %{conn: conn} do
conn = get(conn, "/dev/colors")
assert html_response(conn, 200) =~ "Colors"
end
end
| 22.777778 | 47 | 0.692683 |
38438d691cd7af1e684c41f772224e15eb6ad900 | 942 | exs | Elixir | anituber/config/config.exs | Ogiwara-CostlierRain464/Anituber | 5ce128883ee609e785416b18cc9ca3ebc3877258 | [
"MIT"
] | null | null | null | anituber/config/config.exs | Ogiwara-CostlierRain464/Anituber | 5ce128883ee609e785416b18cc9ca3ebc3877258 | [
"MIT"
] | null | null | null | anituber/config/config.exs | Ogiwara-CostlierRain464/Anituber | 5ce128883ee609e785416b18cc9ca3ebc3877258 | [
"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 :anituber,
ecto_repos: [Anituber.Repo]
... | 33.642857 | 86 | 0.765393 |
38438e20d9a8f4cda75f0433948a86331ec3aece | 127 | exs | Elixir | config/test.exs | henrik/stockholm-elixir | 56a93e4dfb02f24f4ef69684dce5d4239b1e2cd4 | [
"Unlicense"
] | null | null | null | config/test.exs | henrik/stockholm-elixir | 56a93e4dfb02f24f4ef69684dce5d4239b1e2cd4 | [
"Unlicense"
] | null | null | null | config/test.exs | henrik/stockholm-elixir | 56a93e4dfb02f24f4ef69684dce5d4239b1e2cd4 | [
"Unlicense"
] | null | null | null | use Mix.Config
config :phoenix, StockholmElixir.Router,
http: [port: System.get_env("PORT") || 4001],
catch_errors: false
| 21.166667 | 47 | 0.724409 |
3843a211bbafe02e5eeaa392f5ff35237c015f72 | 407 | ex | Elixir | elixir/web/models/post.ex | afronski/playground-graphql | 903f3dc25e64fe6f45903a130cdb8d4b64990cf5 | [
"MIT"
] | null | null | null | elixir/web/models/post.ex | afronski/playground-graphql | 903f3dc25e64fe6f45903a130cdb8d4b64990cf5 | [
"MIT"
] | null | null | null | elixir/web/models/post.ex | afronski/playground-graphql | 903f3dc25e64fe6f45903a130cdb8d4b64990cf5 | [
"MIT"
] | null | null | null | defmodule Blog.Post do
use Blog.Web, :model
schema "posts" do
field :title, :string
field :body, :string
field :posted_at, Ecto.DateTime
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(struct, params \\ %{}) do
struct
|> cast(pa... | 19.380952 | 56 | 0.621622 |
3843ab1a97f6d9738efa7db0a8cd2af9e44da039 | 1,777 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/users_list_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/users_list_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/users_list_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.843137 | 158 | 0.742825 |
3843acf951c69e07a7328ef8e5fcc595a7cdddb5 | 609 | ex | Elixir | priv/catalogue/catalogue.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | priv/catalogue/catalogue.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | priv/catalogue/catalogue.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Catalogue do
use Surface.Catalogue
load_asset("../static/css/app.css", as: :css)
load_asset("../static/js/supabase_surface.js", as: :js)
@impl true
def config() do
[
head_css: """
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
... | 23.423077 | 91 | 0.55665 |
3843b9b0ff2593fd7d4ca64a2ee55640ab218bca | 1,049 | exs | Elixir | test/structs/sticker_test.exs | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 6 | 2018-05-22T07:13:47.000Z | 2019-10-17T03:40:22.000Z | test/structs/sticker_test.exs | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 2 | 2018-11-01T17:11:51.000Z | 2019-06-15T13:33:31.000Z | test/structs/sticker_test.exs | SpaceEEC/crux_structs | c10adb64ab6392c8601e4c53447128294daf0ae3 | [
"MIT"
] | 2 | 2018-10-29T06:53:41.000Z | 2019-06-14T19:15:56.000Z | defmodule Crux.Crux.StickerTest do
use ExUnit.Case, async: true
doctest Crux.Structs.Sticker
test "create/1" do
sticker =
%{
"id" => "755244649655959615",
"name" => "Affection",
"description" => "Wumpus's helmet featuring a heart emote",
"pack_id" => "755240383084232756"... | 33.83871 | 87 | 0.586273 |
3843cccb43d4952fba633108ce919a7698a1d468 | 749 | ex | Elixir | lib/mailjex/application.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 8 | 2017-10-10T15:51:33.000Z | 2021-08-18T01:06:49.000Z | lib/mailjex/application.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 5 | 2018-05-23T15:03:15.000Z | 2019-11-17T16:30:18.000Z | lib/mailjex/application.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 4 | 2018-11-16T15:45:22.000Z | 2019-11-16T16:19:48.000Z | defmodule Mailjex.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
ch... | 28.807692 | 67 | 0.695594 |
3843ce3fac459f077d0d4a046751f5cf4afb9c39 | 119 | ex | Elixir | lib/hexpm/repository/installs.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/installs.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/installs.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Installs do
use Hexpm.Web, :context
def all() do
Repo.all(Install.all())
end
end
| 14.875 | 38 | 0.697479 |
3843d1a0998147a483bb7a4f8cd8fbf66ad56cbd | 996 | exs | Elixir | mix.exs | tres/logstash-json | 81d69a1d429b4eb36c5f3cd7943b5bdcce3ab1cf | [
"MIT"
] | 36 | 2016-08-08T22:04:08.000Z | 2022-01-26T07:21:05.000Z | mix.exs | tres/logstash-json | 81d69a1d429b4eb36c5f3cd7943b5bdcce3ab1cf | [
"MIT"
] | 28 | 2016-07-25T12:32:43.000Z | 2021-11-19T14:58:28.000Z | mix.exs | tres/logstash-json | 81d69a1d429b4eb36c5f3cd7943b5bdcce3ab1cf | [
"MIT"
] | 28 | 2016-08-08T22:04:12.000Z | 2022-03-31T13:57:25.000Z | defmodule LogstashJson.Mixfile do
use Mix.Project
def project do
[
app: :logstash_json,
version: "0.7.5",
elixir: "~> 1.4",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
consolidate_protoc... | 21.191489 | 70 | 0.548193 |
3843d21267f96c1ae6ebebc47ffdc898445bfd0f | 2,865 | ex | Elixir | lib/absinthe/phase/document/validation/scalar_leafs.ex | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | null | null | null | lib/absinthe/phase/document/validation/scalar_leafs.ex | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | null | null | null | lib/absinthe/phase/document/validation/scalar_leafs.ex | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | null | null | null | # [sic]
defmodule Absinthe.Phase.Document.Validation.ScalarLeafs do
@moduledoc false
# Validates that all leaf nodes are scalars.
#
# # Examples:
# Assume `user` field is an object, and `email` is a scalar.
#
# ## DO NOT
# ```
# {
# user
# }
# ```
#
# ## DO
# ```
# {
# user {name ... | 23.875 | 126 | 0.639442 |
3843e8bc6e9278699be8edf4beb174701cdd5a0d | 3,564 | ex | Elixir | server/lib/bridge_tx.ex | turbo-cunnos/bitfeed | d7216e31e33316cf08efbb47695ca212bbb505f1 | [
"MIT"
] | 27 | 2022-01-01T14:58:22.000Z | 2022-03-22T06:11:18.000Z | server/lib/bridge_tx.ex | turbo-cunnos/bitfeed | d7216e31e33316cf08efbb47695ca212bbb505f1 | [
"MIT"
] | 22 | 2022-01-01T04:26:10.000Z | 2022-03-22T00:02:31.000Z | server/lib/bridge_tx.ex | turbo-cunnos/bitfeed | d7216e31e33316cf08efbb47695ca212bbb505f1 | [
"MIT"
] | 9 | 2022-01-03T07:34:36.000Z | 2022-03-14T23:19:56.000Z | require Logger
defmodule BitcoinStream.Bridge.Tx do
@moduledoc """
Bitcoin event bridge module.
Consumes a source of ZMQ bitcoin tx events
and forwards to connected websocket clients
"""
use GenServer
alias BitcoinStream.Protocol.Transaction, as: BitcoinTx
alias BitcoinStream.Mempool, as: Mempool
a... | 28.741935 | 101 | 0.612514 |
3843f196ec63765197bd176872d68bf2c9c4a5c9 | 7,324 | ex | Elixir | lib/ex_unit/lib/ex_unit/runner.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/runner.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/runner.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Runner do
@moduledoc false
defrecord Config, formatter: ExUnit.CLIFormatter, formatter_id: nil,
max_cases: 4, taken_cases: 0, async_cases: [],
sync_cases: [], include: [], exclude: []
def run(async, sync, opts, load_us) do
opts = normalize_opts(opts... | 30.773109 | 110 | 0.63053 |
384400e3486acca6b834f917c01e91f4467f983e | 2,268 | ex | Elixir | test/support/fixtures/dynamic/import_types.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-10-10T02:57:52.000Z | 2019-10-10T02:57:52.000Z | test/support/fixtures/dynamic/import_types.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-09-23T21:26:01.000Z | 2019-09-23T21:26:01.000Z | test/support/fixtures/dynamic/import_types.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Fixtures.ImportTypes do
defmodule AccountTypes do
use Absinthe.Schema.Notation
object :customer do
field :id, non_null(:id)
field :name, :string
field :mailing_address, :mailing_address
field :contact_methods, list_of(:contact_method)
end
object :employee d... | 23.381443 | 74 | 0.687831 |
38440553e9316b976a96759f78631d756a14a18b | 6,018 | ex | Elixir | instrumentation/opentelemetry_phoenix/lib/opentelemetry_phoenix.ex | learc83/opentelemetry-erlang-contrib | f083f3d7e7090bea18ed224e7d74db7fabd6a441 | [
"Apache-2.0"
] | null | null | null | instrumentation/opentelemetry_phoenix/lib/opentelemetry_phoenix.ex | learc83/opentelemetry-erlang-contrib | f083f3d7e7090bea18ed224e7d74db7fabd6a441 | [
"Apache-2.0"
] | null | null | null | instrumentation/opentelemetry_phoenix/lib/opentelemetry_phoenix.ex | learc83/opentelemetry-erlang-contrib | f083f3d7e7090bea18ed224e7d74db7fabd6a441 | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryPhoenix do
@moduledoc """
OpentelemetryPhoenix uses [telemetry](https://hexdocs.pm/telemetry/) handlers to create `OpenTelemetry` spans.
Current events which are supported include endpoint start/stop, router start/stop,
and router exceptions.
## Usage
In your application start:
... | 27.605505 | 112 | 0.660518 |
38441e00efceeaafefbd54df7be1c65dbcecd1ce | 12,522 | exs | Elixir | dev.exs | mveytsman/phoenix_live_dashboard | 9abcaf72be2ba2334c1d07c181f3312b732b5485 | [
"MIT"
] | 1 | 2020-11-04T16:17:32.000Z | 2020-11-04T16:17:32.000Z | dev.exs | mveytsman/phoenix_live_dashboard | 9abcaf72be2ba2334c1d07c181f3312b732b5485 | [
"MIT"
] | null | null | null | dev.exs | mveytsman/phoenix_live_dashboard | 9abcaf72be2ba2334c1d07c181f3312b732b5485 | [
"MIT"
] | 1 | 2020-11-16T14:01:08.000Z | 2020-11-16T14:01:08.000Z | # iex -S mix dev
Logger.configure(level: :debug)
pg_url = System.get_env("PG_URL") || "postgres:postgres@127.0.0.1"
pg_database = System.get_env("PG_DATABASE") || "phx_dashboard_dev"
Application.put_env(:phoenix_live_dashboard, Demo.Repo, url: "ecto://#{pg_url}/#{pg_database}")
defmodule Demo.Repo do
use Ecto.Repo,... | 27.520879 | 102 | 0.597748 |
38444e0205b0c3e0315354a1e6dfac01bf49fa60 | 1,039 | ex | Elixir | deps/timex/lib/comparable/datetime.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/timex/lib/comparable/datetime.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/timex/lib/comparable/datetime.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defimpl Timex.Comparable, for: DateTime do
alias Timex.AmbiguousDateTime
alias Timex.Comparable.Utils
alias Timex.Comparable.Diff
import Timex.Macros
def compare(a, :epoch, granularity), do: compare(a, Timex.epoch(), granularity)
def compare(a, :zero, granularity), do: compare(a, Timex... | 39.961538 | 91 | 0.663138 |
38448c4fa308afc8adc054d584b689aa2ae3156a | 1,176 | ex | Elixir | web/channels/user_socket.ex | timrourke/colorstorm-api | fee60a52701a4f773fcd2c8c5c70a472d0d52f09 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | timrourke/colorstorm-api | fee60a52701a4f773fcd2c8c5c70a472d0d52f09 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | timrourke/colorstorm-api | fee60a52701a4f773fcd2c8c5c70a472d0d52f09 | [
"MIT"
] | null | null | null | defmodule Colorstorm.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", Colorstorm.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and ... | 30.947368 | 83 | 0.704082 |
3844ccd492573aacabbbe266699a6790aad58f18 | 6,907 | ex | Elixir | lib/livebook/intellisense/signature_matcher.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | 1 | 2022-02-16T09:13:27.000Z | 2022-02-16T09:13:27.000Z | lib/livebook/intellisense/signature_matcher.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/intellisense/signature_matcher.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Intellisense.SignatureMatcher do
@moduledoc false
# This module allows for extracting information about
# function signatures matching an incomplete call.
alias Livebook.Intellisense.Docs
@type signature_info :: {name :: atom(), Docs.signature(), Docs.documentation(), Docs.spec()}
@do... | 30.973094 | 98 | 0.602722 |
3844dc3f4053d4cba6655ae99fb85e52fd408d17 | 1,262 | ex | Elixir | web/web.ex | alphagov/async-publishing-prototype | 0eab5956d8d24428bf817dfb3f5c7279ea1ff9e5 | [
"MIT"
] | 1 | 2016-11-11T19:23:09.000Z | 2016-11-11T19:23:09.000Z | web/web.ex | alphagov/async-publishing-prototype | 0eab5956d8d24428bf817dfb3f5c7279ea1ff9e5 | [
"MIT"
] | null | null | null | web/web.ex | alphagov/async-publishing-prototype | 0eab5956d8d24428bf817dfb3f5c7279ea1ff9e5 | [
"MIT"
] | 2 | 2019-08-29T11:38:59.000Z | 2021-04-10T20:05:06.000Z | defmodule AsyncPublishing.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use AsyncPublishing.Web, :controller
use AsyncPublishing.Web, :view
The definitions below will be executed for every view,
controlle... | 20.688525 | 88 | 0.687797 |
3845307ab819791eda0e0eb500d0b80bf86e5479 | 1,132 | ex | Elixir | test/support/channel_case.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | test/support/channel_case.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | test/support/channel_case.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule KwtoolWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wi... | 25.727273 | 63 | 0.722615 |
38453434c99ca69583cbc7e2c00ab1feb590084d | 471 | exs | Elixir | test/support/test_adapter.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 561 | 2019-03-18T09:10:57.000Z | 2022-03-27T17:34:59.000Z | test/support/test_adapter.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 94 | 2019-03-20T09:34:38.000Z | 2022-02-27T20:44:04.000Z | test/support/test_adapter.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 112 | 2019-03-25T03:27:26.000Z | 2022-03-21T12:43:59.000Z | defmodule GRPC.Test.ClientAdapter do
def connect(channel, _opts), do: {:ok, channel}
end
defmodule GRPC.Test.ServerAdapter do
def start(s, h, p, opts) do
{s, h, p, opts}
end
def stop(server) do
{server}
end
def stop(endpoint, server) do
{endpoint, server}
end
def send_reply(stream, data,... | 15.7 | 49 | 0.664544 |
384551d489e12bd711e942b5f798c24499d4199b | 1,416 | exs | Elixir | test/absinthe/execution/arguments/scalar_test.exs | dkarter/absinthe | d3c8a6d0f657ff63ff046ce366a52f7a479f7784 | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | test/absinthe/execution/arguments/scalar_test.exs | dkarter/absinthe | d3c8a6d0f657ff63ff046ce366a52f7a479f7784 | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | test/absinthe/execution/arguments/scalar_test.exs | dkarter/absinthe | d3c8a6d0f657ff63ff046ce366a52f7a479f7784 | [
"MIT"
] | null | null | null | defmodule Absinthe.Execution.Arguments.ScalarTest do
use Absinthe.Case, async: true
alias Absinthe.Blueprint.Input
@schema Absinthe.Fixtures.ArgumentsSchema
@graphql """
query {
requiredThing(name: "bob")
}
"""
test "works when specified as non null" do
assert_data(%{"requiredThing" => "bob"},... | 22.83871 | 106 | 0.617938 |
384551f3f9974b124d2b2d4cd7347bda13eb9712 | 576 | exs | Elixir | exercises/practice/space-age/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/space-age/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/space-age/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule SpaceAge.MixProject do
use Mix.Project
def project do
[
app: :space_age,
version: "0.1.0",
# elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extr... | 19.862069 | 87 | 0.576389 |
3845555edfddff8101952204957e6744eb741028 | 908 | exs | Elixir | day07/task2.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | 2 | 2016-12-26T20:44:04.000Z | 2017-02-10T19:59:55.000Z | day07/task2.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | null | null | null | day07/task2.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | null | null | null | defmodule Task do
def mirrored(text) do
result = Regex.scan(~r/(?=([a-z])(?!\1)([a-z])\1)/, text, capture: :all_but_first)
result = Enum.map(result, &Enum.join/1)
end
def correct_ip(ip) do
negative =
Regex.scan(~r/\[([a-z]+)\]/, ip, capture: :all_but_first)
|> Enum.map(&hd/1)
|> Enu... | 23.282051 | 86 | 0.551762 |
38455aabb3bda90a4f254c6d89fee4bba084e2a1 | 1,169 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/connection.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... | 35.424242 | 74 | 0.749358 |
38458386148782fd88549d5bbcca82486353460a | 1,313 | exs | Elixir | mix.exs | fbettag/pandadoc.ex | 4f7542f8e549e4feeed8e6ea2f76b014ef647d5d | [
"MIT"
] | null | null | null | mix.exs | fbettag/pandadoc.ex | 4f7542f8e549e4feeed8e6ea2f76b014ef647d5d | [
"MIT"
] | null | null | null | mix.exs | fbettag/pandadoc.ex | 4f7542f8e549e4feeed8e6ea2f76b014ef647d5d | [
"MIT"
] | null | null | null | defmodule PandaDoc.MixProject do
use Mix.Project
@project_url "https://github.com/fbettag/pandadoc.ex"
def project do
[
app: :pandadoc,
version: "0.1.2",
elixir: "~> 1.7",
source_url: @project_url,
homepage_url: @project_url,
name: "pandadoc.com API",
description: "... | 23.446429 | 87 | 0.550647 |
3845a972020237e535fa85981a2b41862b1882ba | 26,978 | ex | Elixir | lib/elixir/lib/system.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/lib/system.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/system.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule System do
@moduledoc """
The `System` module provides functions that interact directly
with the VM or the host system.
## Time
The `System` module also provides functions that work with time,
returning different times kept by the system with support for
different time units.
One of the comp... | 30.042316 | 97 | 0.678553 |
3845baffc9adb9df646d4749772974e2b7524ed9 | 1,851 | ex | Elixir | bench/algorithm/edigits/1.ex | turururu/Programming-Language-Benchmarks | de58f0ec355cad32fc64c1df5c7125fc584bf3c4 | [
"MIT"
] | 92 | 2021-04-21T17:53:00.000Z | 2022-03-26T06:47:25.000Z | bench/algorithm/edigits/1.ex | turururu/Programming-Language-Benchmarks | de58f0ec355cad32fc64c1df5c7125fc584bf3c4 | [
"MIT"
] | 49 | 2021-04-04T00:02:29.000Z | 2022-02-27T00:24:39.000Z | bench/algorithm/edigits/1.ex | turururu/Programming-Language-Benchmarks | de58f0ec355cad32fc64c1df5c7125fc584bf3c4 | [
"MIT"
] | 47 | 2021-05-19T05:28:33.000Z | 2022-02-21T11:53:48.000Z | import Math
defmodule App do
def main(args) do
n = String.to_integer(Enum.at(args,0,"27"), 10)
k = binary_search(n)
{p, q} = sum_terms(0, k-1)
p = p + q
a = pow(10, n - 1)
answer = div(p*a,q)
s = Integer.to_string(answer)
print(s, 0, n)
end
defp print(s, start, n) do
end_inde... | 20.566667 | 79 | 0.555375 |
3845d761f14f96bd12d5a0ad7e5c1ae869e9015c | 2,925 | ex | Elixir | clients/content/lib/google_api/content/v21/model/pos_inventory.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_inventory.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/v21/model/pos_inventory.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... | 41.197183 | 198 | 0.678291 |
3845fd8d1d0a8b5de6ea82e2c4d6ec0c10e5c688 | 3,479 | ex | Elixir | lib/helpers/interpolations.ex | mnussbaumer/cssex | da3b0add68d766faacb459c14a8eb43ca32aa9f4 | [
"MIT"
] | 13 | 2021-03-16T15:02:08.000Z | 2021-09-22T02:40:25.000Z | lib/helpers/interpolations.ex | mnussbaumer/cssex | da3b0add68d766faacb459c14a8eb43ca32aa9f4 | [
"MIT"
] | 3 | 2021-03-19T20:14:19.000Z | 2021-03-29T13:34:17.000Z | lib/helpers/interpolations.ex | mnussbaumer/cssex | da3b0add68d766faacb459c14a8eb43ca32aa9f4 | [
"MIT"
] | null | null | null | defmodule CSSEx.Helpers.Interpolations do
@moduledoc false
# replaces the value if it mentions a cssex variable and that variable is bound
# in either the local_scope (first match) or the global scope (second match)
alias CSSEx.Helpers.EEX, as: HEEX
@regex_val ~r/(?<interpolation><\$.+?\$>)|(?<eex_l><%=.+?e... | 33.133333 | 96 | 0.522277 |
3846050b06b3b96d686aca7c3bb07b21cf5726a5 | 521 | exs | Elixir | sample_application/config/test.exs | sevenmind/KaufmannEx | 44225125946921850316c272db53175bb1658fb7 | [
"MIT"
] | 84 | 2018-03-20T08:19:10.000Z | 2022-01-30T07:40:56.000Z | sample_application/config/test.exs | sevenmind/KaufmannEx | 44225125946921850316c272db53175bb1658fb7 | [
"MIT"
] | 23 | 2018-03-29T15:15:56.000Z | 2019-12-04T14:53:57.000Z | sample_application/config/test.exs | sevenmind/KaufmannEx | 44225125946921850316c272db53175bb1658fb7 | [
"MIT"
] | 8 | 2018-07-03T18:18:27.000Z | 2022-03-08T14:04:09.000Z | use Mix.Config
config :kaufmann_ex,
event_handler_mod: Sample.EventHandler,
consumer_group: System.get_env("CONSUMER_GROUP"),
default_topic: System.get_env("KAFKA_TOPIC"),
producer_mod: KaufmannEx.Publisher,
metadata_mod: Sample.Publisher,
schema_path: "priv/schemas",
schema_registry_uri: System.get_env(... | 30.647059 | 62 | 0.775432 |
3846182560a29215e8d6ad28f683b6088454670e | 5,218 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 62.86747 | 530 | 0.702376 |
38464d5cd332540ac44a1a360fcd83cf1e41bbad | 4,861 | ex | Elixir | lib/domo/type_ensurer_factory/batch_ensurer.ex | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 101 | 2020-06-11T23:51:50.000Z | 2022-03-30T16:29:18.000Z | lib/domo/type_ensurer_factory/batch_ensurer.ex | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 11 | 2020-10-11T11:50:24.000Z | 2022-02-12T08:54:50.000Z | lib/domo/type_ensurer_factory/batch_ensurer.ex | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 4 | 2020-07-02T08:54:22.000Z | 2021-12-26T09:59:15.000Z | defmodule Domo.TypeEnsurerFactory.BatchEnsurer do
@moduledoc false
alias Domo.ErrorBuilder
alias Domo.TypeEnsurerFactory.Alias
alias Domo.TypeEnsurerFactory.ModuleInspector
alias Domo.TypeEnsurerFactory.Error
def ensure_struct_integrity(plan_path) do
with {:ok, plan_map} <- read_plan(plan_path),
... | 30.38125 | 102 | 0.673935 |
38469a4a94811515f58488e59aae544a929f2065 | 1,303 | ex | Elixir | hippo-backend/lib/hippo_web/endpoint.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | 1 | 2020-09-20T14:16:03.000Z | 2020-09-20T14:16:03.000Z | hippo-backend/lib/hippo_web/endpoint.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | null | null | null | hippo-backend/lib/hippo_web/endpoint.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | null | null | null | defmodule HippoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hippo
socket("/socket", HippoWeb.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 static ... | 23.267857 | 63 | 0.67383 |
3846d3b120e5e95ab790b92ebc67eb1821076355 | 12,574 | ex | Elixir | clients/books/lib/google_api/books/v1/api/myconfig.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/myconfig.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/myconfig.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.093633 | 217 | 0.686416 |
3846d3e0358a3c637017d1ffbe61df826810f007 | 601 | ex | Elixir | crawler_challenge/test/factories/process_factory.ex | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/test/factories/process_factory.ex | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/test/factories/process_factory.ex | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallenge.ProcessFactory do
use ExMachina.Ecto, repo: CrawlerChallenge.Repo
use Timex
defmacro __using__(_opts) do
quote do
def process_factory do
%CrawlerChallenge.Processes.Process{
process_number: "0725703-91.2019.8.02.0001",
court: build(:courts)
... | 24.04 | 57 | 0.635607 |
3846ef5dde5536a7f55bfd719c033bbf115e9b28 | 7,598 | ex | Elixir | lib/ex_doc/formatter/html/templates.ex | Dalgona/ex_doc | 814627067175bfe894461cc3f235ee1d9b71b487 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/templates.ex | Dalgona/ex_doc | 814627067175bfe894461cc3f235ee1d9b71b487 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/templates.ex | Dalgona/ex_doc | 814627067175bfe894461cc3f235ee1d9b71b487 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.Templates do
@moduledoc false
require EEx
alias ExDoc.Formatter.HTML
@doc """
Generate content from the module template for a given `node`
"""
def module_page(module_node, nodes_map, config) do
summary = module_summary(module_node)
module_template(config, module_no... | 27.330935 | 105 | 0.631087 |
3846ff8ad23547458c1e61cfd6ed278c3996ff06 | 2,132 | ex | Elixir | lib/credo/code/parameters.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/code/parameters.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/code/parameters.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-06-30T16:32:44.000Z | 2020-06-30T16:32:44.000Z | defmodule Credo.Code.Parameters do
@moduledoc """
This module provides helper functions to analyse the parameters taken by a
function.
"""
@def_ops [:def, :defp, :defmacro]
@doc "Returns the parameter count for the given function's AST"
def count(nil), do: 0
for op <- @def_ops do
def count({unquo... | 22.680851 | 96 | 0.631332 |
384715b6853a3aafbd0fe9fbd2348aa9a775925d | 2,045 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1/model/completeness.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/completeness.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/completeness.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... | 38.584906 | 202 | 0.728606 |
38472666c42f2e1855ca9d965b40dce1b3763985 | 1,663 | ex | Elixir | lib/doctor_schedule_web/endpoint.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | null | null | null | lib/doctor_schedule_web/endpoint.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | 2 | 2021-08-21T13:02:30.000Z | 2021-08-24T12:13:21.000Z | lib/doctor_schedule_web/endpoint.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | null | null | null | defmodule DoctorScheduleWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :doctor_schedule
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
k... | 30.236364 | 97 | 0.726999 |
38472bcddd89341df4c24528f60951e71358c25b | 74,083 | exs | Elixir | test/ecto/adapters/postgres_test.exs | alco/ecto_sql | 62967b2dfef66f8efb9c3bd70b2bbb0f483a3848 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | alco/ecto_sql | 62967b2dfef66f8efb9c3bd70b2bbb0f483a3848 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/postgres_test.exs | alco/ecto_sql | 62967b2dfef66f8efb9c3bd70b2bbb0f483a3848 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.PostgresTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Queryable
alias Ecto.Adapters.Postgres.Connection, as: SQL
defmodule Schema do
use Ecto.Schema
schema "schema" do
field :x, :integer
field :y, :integer
field :z, :integer
field... | 43.475939 | 175 | 0.574396 |
38475fe3f9b41f12d07e804f525f30c32550817c | 6,434 | ex | Elixir | lib/ex_unit/lib/ex_unit/runner.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/ex_unit/lib/ex_unit/runner.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/runner.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Runner do
@moduledoc false
defrecord Config, formatter: ExUnit.CLIFormatter, formatter_id: nil,
max_cases: 4, taken_cases: 0, async_cases: [], sync_cases: []
def run(async, sync, opts, load_us) do
opts = normalize_opts(opts)
config = Config[max_cases: :erlang.system... | 31.082126 | 101 | 0.636773 |
384760eb9039b5c1aa859d33659a90589a990e57 | 3,875 | ex | Elixir | lib/scenes/components.ex | joaohf/axon-scenic | 33c449e1eb3487de4ad1bf03575ca25a6a013b89 | [
"BSD-3-Clause"
] | null | null | null | lib/scenes/components.ex | joaohf/axon-scenic | 33c449e1eb3487de4ad1bf03575ca25a6a013b89 | [
"BSD-3-Clause"
] | null | null | null | lib/scenes/components.ex | joaohf/axon-scenic | 33c449e1eb3487de4ad1bf03575ca25a6a013b89 | [
"BSD-3-Clause"
] | null | null | null | defmodule AxonScenic.Scene.Components do
@moduledoc """
Sample scene.
"""
use Scenic.Scene
alias Scenic.Graph
import Scenic.Primitives
import Scenic.Components
alias AxonScenic.Component.Nav
alias AxonScenic.Component.Notes
@body_offset 60
@notes """
\"Components\" shows the basic componen... | 29.135338 | 93 | 0.554065 |
3847890c88abea29e817814457d18c5988a7ccfc | 2,524 | ex | Elixir | lib/cforum/accounts/badge.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/accounts/badge.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/accounts/badge.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule Cforum.Accounts.Badge do
use CforumWeb, :model
@primary_key {:badge_id, :id, autogenerate: true}
@derive {Phoenix.Param, key: :badge_id}
@upvote "upvote"
def upvote, do: @upvote
@downvote "downvote"
def downvote, do: @downvote
@retag "retag"
def retag, do: @retag
@visit_close_reopen "... | 27.139785 | 104 | 0.712361 |
38478bf22d3225a55216168dcf7b18c01fd09340 | 33,398 | exs | Elixir | lib/elixir/test/elixir/file_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/elixir/test/elixir/file_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/file_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule Elixir.FileCase do
use ExUnit.CaseTemplate
import PathHelpers
using do
quote do
import PathHelpers
end
end
setup do
File.mkdir_p!(tmp_path)
:ok
end
teardown do
File.rm_rf(tmp_path)
:ok
end
end
defmodule FileTest do... | 26.010903 | 180 | 0.594287 |
3847a272e8cab343f13ca81afbf199630504ad30 | 126 | exs | Elixir | hello-elixir/hello-world.exs | florianbussmann/hello-world | f36cade4b04c7cc9e10e81e6a1b1b5c34816895a | [
"MIT"
] | 2 | 2015-03-15T03:13:01.000Z | 2021-05-31T11:55:35.000Z | hello-elixir/hello-world.exs | florianbussmann/hello-world | f36cade4b04c7cc9e10e81e6a1b1b5c34816895a | [
"MIT"
] | 1 | 2015-01-28T19:47:01.000Z | 2015-01-28T19:47:01.000Z | hello-elixir/hello-world.exs | florianbussmann/hello-world | f36cade4b04c7cc9e10e81e6a1b1b5c34816895a | [
"MIT"
] | 3 | 2015-01-25T00:20:49.000Z | 2015-04-13T03:39:05.000Z | -module(module_name). % you may use some other name
-compile(export_all).
hello() ->
io:format("~s~n", ["Hello, World."]). | 25.2 | 52 | 0.642857 |
3847a321cc94bbe7dfcca1cef84b728bc636398c | 340 | ex | Elixir | lib/cash_flow_ex/repo.ex | diogobaracho/cashflowex | 7b66ff98239407f2ea2e11bf1693783dd94a725b | [
"Apache-2.0"
] | null | null | null | lib/cash_flow_ex/repo.ex | diogobaracho/cashflowex | 7b66ff98239407f2ea2e11bf1693783dd94a725b | [
"Apache-2.0"
] | null | null | null | lib/cash_flow_ex/repo.ex | diogobaracho/cashflowex | 7b66ff98239407f2ea2e11bf1693783dd94a725b | [
"Apache-2.0"
] | null | null | null | defmodule CashFlowEx.Repo do
use Ecto.Repo,
adapter: Ecto.Adapters.Postgres,
otp_app: :cash_flow_ex
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, Application.get_env(:cash_flow_ex, CashFlowEx.Repo... | 24.285714 | 93 | 0.708824 |
3847e80ba7200d32d958aea453e3711cd321aa7e | 19,423 | ex | Elixir | lib/ecto/query.ex | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query.ex | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query.ex | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query do
@moduledoc ~S"""
Provides the Query DSL.
Queries are used to retrieve and manipulate data in a repository
(see `Ecto.Repo`). Although this module provides a complete API,
supporting expressions like `where/3`, `select/3` and so forth,
most of the times developers need to import only... | 30.635647 | 98 | 0.656387 |
384823a008059a09a85380b22f79212505e758bb | 1,279 | ex | Elixir | lib/cforum_web/mailers/user_mailer.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/mailers/user_mailer.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/mailers/user_mailer.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule CforumWeb.UserMailer do
use Phoenix.Swoosh, view: CforumWeb.UserMailerView, layout: {CforumWeb.LayoutView, :email}
import CforumWeb.Gettext
def confirmation_mail(user) do
new()
|> from(Application.get_env(:cforum, :mail_sender, "cforum@example.org"))
|> to({user.username, user.email})
|... | 32.794872 | 92 | 0.677091 |
3848904440246242ed62ffd09c4282b62b01959f | 261 | ex | Elixir | lib/swoosh.ex | vadimshvetsov/swoosh | 5a278c7959d9b704530ec3fe6b6df53fe3d47ca5 | [
"MIT"
] | null | null | null | lib/swoosh.ex | vadimshvetsov/swoosh | 5a278c7959d9b704530ec3fe6b6df53fe3d47ca5 | [
"MIT"
] | null | null | null | lib/swoosh.ex | vadimshvetsov/swoosh | 5a278c7959d9b704530ec3fe6b6df53fe3d47ca5 | [
"MIT"
] | null | null | null | defmodule Swoosh do
@moduledoc File.read!("README.md") |> String.replace("# Swoosh\n\n", "", global: false)
@version "1.0.0"
@doc false
def version, do: @version
@doc false
def json_library, do: Application.fetch_env!(:swoosh, :json_library)
end
| 21.75 | 89 | 0.678161 |
3848a5e6fe893d3c6252e740d1264ad33c015b96 | 80 | exs | Elixir | test/phlearn_web/views/page_view_test.exs | orneryhippo/phlearn | 7ef72120c8d4719ef90809f16907b5e98d6c54b1 | [
"MIT"
] | null | null | null | test/phlearn_web/views/page_view_test.exs | orneryhippo/phlearn | 7ef72120c8d4719ef90809f16907b5e98d6c54b1 | [
"MIT"
] | null | null | null | test/phlearn_web/views/page_view_test.exs | orneryhippo/phlearn | 7ef72120c8d4719ef90809f16907b5e98d6c54b1 | [
"MIT"
] | null | null | null | defmodule PhlearnWeb.PageViewTest do
use PhlearnWeb.ConnCase, async: true
end
| 20 | 38 | 0.825 |
3848b698e411e62ef3fdf7b8cb539b758715f5aa | 924 | ex | Elixir | lib/remedy/schema/embed_field.ex | bdanklin/nostrum | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | 3 | 2021-09-05T09:44:02.000Z | 2022-01-26T15:31:50.000Z | lib/remedy/schema/embed_field.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | lib/remedy/schema/embed_field.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | defmodule Remedy.Schema.EmbedField do
@moduledoc """
Discord Embed Field Object
"""
use Remedy.Schema
@typedoc """
Formed EmbedField Type.
"""
@type t :: %__MODULE__{
name: String.t(),
value: String.t(),
inline: boolean()
}
@typedoc """
EmbedField params.
""... | 20.086957 | 50 | 0.569264 |
3848e719d64667f8182c91cdd0093989edb244ed | 228 | exs | Elixir | priv/mock/community_patch_seeds.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/mock/community_patch_seeds.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/mock/community_patch_seeds.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | alias GroupherServer.CMS
# 1. place add community to GroupherServer.CMS.Delegate.SeedsConfig first
# 2. need manulay set cate in categorify_communities
# CMS.seed_communities(:pl_patch)
CMS.seed_communities(:framework_patch)
| 28.5 | 74 | 0.820175 |
3848e8af7b648656fc2260bf2557ec9da81f4268 | 2,497 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.015625 | 319 | 0.754505 |
3848eb6cdc203998f8da240bcf3c7c26c75450c5 | 1,266 | exs | Elixir | config/releases.exs | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 3 | 2020-04-21T22:48:23.000Z | 2020-05-12T19:58:31.000Z | config/releases.exs | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 1 | 2021-05-11T11:22:49.000Z | 2021-05-11T11:22:49.000Z | config/releases.exs | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envir... | 30.142857 | 67 | 0.730648 |
38495fb4021bc20592b5f0f58b2b930693d0f363 | 249 | ex | Elixir | lib/trimmr.ex | isakal/trimmr.ex | 72b94b399cc0d700f40a1fd2bc7528ae4cd4a81d | [
"MIT"
] | null | null | null | lib/trimmr.ex | isakal/trimmr.ex | 72b94b399cc0d700f40a1fd2bc7528ae4cd4a81d | [
"MIT"
] | null | null | null | lib/trimmr.ex | isakal/trimmr.ex | 72b94b399cc0d700f40a1fd2bc7528ae4cd4a81d | [
"MIT"
] | null | null | null | defmodule Trimmr do
@moduledoc """
Trimmr 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 |
3849a69657a7c2808d392ec746852dd36381bc1c | 212 | exs | Elixir | test/elixir_keeb_ui_web/controllers/page_controller_test.exs | amalbuquerque/elixir_keeb_ui | d203ccc128547668febd13a35d9472e5b4b3151a | [
"MIT"
] | 3 | 2020-07-07T15:57:55.000Z | 2021-08-12T05:09:38.000Z | test/elixir_keeb_ui_web/controllers/page_controller_test.exs | amalbuquerque/elixir_keeb_ui | d203ccc128547668febd13a35d9472e5b4b3151a | [
"MIT"
] | 3 | 2020-09-28T20:53:30.000Z | 2021-08-31T20:41:04.000Z | test/elixir_keeb_ui_web/controllers/page_controller_test.exs | amalbuquerque/elixir_keeb_ui | d203ccc128547668febd13a35d9472e5b4b3151a | [
"MIT"
] | 1 | 2021-07-16T13:49:09.000Z | 2021-07-16T13:49:09.000Z | defmodule ElixirKeeb.UIWeb.PageControllerTest do
use ElixirKeeb.UIWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.555556 | 60 | 0.688679 |
3849b90ff6d22d418d13779d339630f6f9af427c | 2,939 | exs | Elixir | test/wallaby/selenium/start_session_config_test.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | null | null | null | test/wallaby/selenium/start_session_config_test.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | 3 | 2021-08-18T20:39:11.000Z | 2022-01-11T22:45:06.000Z | test/wallaby/selenium/start_session_config_test.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | 1 | 2021-05-12T11:02:20.000Z | 2021-05-12T11:02:20.000Z | defmodule Wallaby.Selenium.StartSessionConfigTest do
use Wallaby.HttpClientCase, async: false
# These tests modify the application environment so need
# to be run with async: false
alias Wallaby.Selenium
alias Wallaby.Session
alias Wallaby.SettingsTestHelpers
alias Wallaby.TestSupport.JSONWireProtocolRe... | 30.298969 | 99 | 0.618578 |
3849f2de1152d82549612e631285081f327af5e9 | 2,483 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.985507 | 170 | 0.733387 |
3849facf93a99c6333492fb3ea44f6e374e9b2d9 | 23,505 | ex | Elixir | lib/elixir/lib/regex.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/lib/regex.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/regex.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | null | null | null | defmodule Regex do
@moduledoc ~S"""
Provides regular expressions for Elixir.
Regex is based on PCRE (Perl Compatible Regular Expressions) and
built on top of Erlang's `:re` module. More information can be found
in the [`:re` module documentation](http://www.erlang.org/doc/man/re.html).
Regular expressions... | 29.454887 | 98 | 0.623442 |
3849fd843a0d5605ad42e25273aed9ece64a2639 | 341 | ex | Elixir | lib/aggregation/supervisor.ex | egor-laufer/ex_insights | 601facefa91819d5de69d50c73f5f800a3893380 | [
"MIT"
] | null | null | null | lib/aggregation/supervisor.ex | egor-laufer/ex_insights | 601facefa91819d5de69d50c73f5f800a3893380 | [
"MIT"
] | null | null | null | lib/aggregation/supervisor.ex | egor-laufer/ex_insights | 601facefa91819d5de69d50c73f5f800a3893380 | [
"MIT"
] | null | null | null | defmodule ExInsights.Aggregation.Supervisor do
@moduledoc false
use Supervisor
@name __MODULE__
@worker ExInsights.Aggregation.Worker
def start_link(_) do
Supervisor.start_link(@name, [], name: @name)
end
def init(_) do
Supervisor.init(
[
@worker
],
strategy: :one_for... | 15.5 | 49 | 0.651026 |
384a40961958e783e8e3c52a935205a9cf186f12 | 332 | exs | Elixir | priv/repo/migrations/20170921025520_add_balance_to_account.exs | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 67 | 2016-10-24T04:11:40.000Z | 2021-11-25T16:46:51.000Z | priv/repo/migrations/20170921025520_add_balance_to_account.exs | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 6 | 2017-08-17T21:43:50.000Z | 2021-11-03T13:13:49.000Z | priv/repo/migrations/20170921025520_add_balance_to_account.exs | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 7 | 2017-08-13T01:43:37.000Z | 2022-01-11T04:38:27.000Z | defmodule Leather.Repo.Migrations.AddBalanceToAccount do
use Ecto.Migration
def change do
alter table(:accounts) do
add(:balance_available, :integer, null: false, default: 0)
add(:balance_current, :integer, null: false, default: 0)
add(:balance_limit, :integer, null: false, default: 0)
en... | 27.666667 | 64 | 0.701807 |
384a472966d6b43d53fb27db7c8338513dad2d7b | 506 | ex | Elixir | lib/hauer/dsl/resource.ex | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | lib/hauer/dsl/resource.ex | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | lib/hauer/dsl/resource.ex | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | defmodule Hauer.Dsl.Resource do
@moduledoc """
Resource wrapper that takes defined resources and generates code
"""
require Hauer.Dsl.Wrappers
alias Hauer.Dsl.Wrappers, as: Wrappers
defmacro map_resources([]) do
quote do
raise "You must define at list a route"
end
end
defmacro map_reso... | 20.24 | 66 | 0.675889 |
384a6d993299a5e20e7f0e21275950fe5057d6c8 | 2,457 | ex | Elixir | tutorials/official-tutorial/io-and-the-file-system.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | tutorials/official-tutorial/io-and-the-file-system.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | tutorials/official-tutorial/io-and-the-file-system.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | ########################################
# The `IO` Module
########################################
# The IO module is the main mechinism for writing and reading to/from stdout/stdin, stderr, files, and other IO devices.
# Basic usage is as follows
IO.puts "hello, world!"
#=>> hello, world!
#=> :ok
IO.gets "yes or ... | 22.962617 | 125 | 0.532357 |
384a708fbfbce17c1c46e409406ab75e0d3a50c3 | 29 | ex | Elixir | alchemist-server/test/my_module.ex | benjcal/vscode-elixir | ccf9457ebed29b80f8ac4f5e855cc9596d1546f6 | [
"MIT"
] | 221 | 2016-05-03T09:46:04.000Z | 2021-02-20T05:08:18.000Z | alchemist-server/test/my_module.ex | benjcal/vscode-elixir | ccf9457ebed29b80f8ac4f5e855cc9596d1546f6 | [
"MIT"
] | 104 | 2017-02-28T16:26:12.000Z | 2021-02-19T22:31:03.000Z | alchemist-server/test/my_module.ex | benjcal/vscode-elixir | ccf9457ebed29b80f8ac4f5e855cc9596d1546f6 | [
"MIT"
] | 59 | 2017-03-12T07:07:35.000Z | 2021-02-26T19:41:15.000Z | defmodule MyModule do
end
| 7.25 | 21 | 0.758621 |
384a827b1ccf6aba3713a65f285c4287fc7a3e35 | 1,361 | ex | Elixir | test/support/query_helper.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | 2 | 2021-04-25T20:59:53.000Z | 2021-07-13T22:49:20.000Z | test/support/query_helper.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | test/support/query_helper.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Test.QueryHelper do
import Ecto.Query
alias ExOauth2Provider.OauthAccessGrants.OauthAccessGrant
alias ExOauth2Provider.OauthAccessTokens.OauthAccessToken
def get_access_grant_by_code(code),
do: ExOauth2Provider.repo.get_by!(OauthAccessGrant, token: code)
def get_last_access_g... | 33.195122 | 80 | 0.778839 |
384ac82af94e187789a23e0f7359fbad86892251 | 5,788 | ex | Elixir | lib/kino/vega_lite.ex | maartenvanvliet/kino | 259d93f5d0dab9a085eaaa8d9eb0824063be83a2 | [
"Apache-2.0"
] | null | null | null | lib/kino/vega_lite.ex | maartenvanvliet/kino | 259d93f5d0dab9a085eaaa8d9eb0824063be83a2 | [
"Apache-2.0"
] | null | null | null | lib/kino/vega_lite.ex | maartenvanvliet/kino | 259d93f5d0dab9a085eaaa8d9eb0824063be83a2 | [
"Apache-2.0"
] | null | null | null | defmodule Kino.VegaLite do
@moduledoc """
A widget wrapping [VegaLite](https://hexdocs.pm/vega_lite) graphic.
This widget allow for rendering regular VegaLite graphic
and then streaming new data points to update the graphic.
## Examples
widget =
Vl.new(width: 400, height: 400)
|> Vl.m... | 26.796296 | 98 | 0.631652 |
384b456293f128ee438660433f218e7471832315 | 2,190 | exs | Elixir | config/prod.exs | ShaneKilkelly/teal | 494de9b9a3848ab57a5c3731c9d462bad335a3c0 | [
"MIT"
] | null | null | null | config/prod.exs | ShaneKilkelly/teal | 494de9b9a3848ab57a5c3731c9d462bad335a3c0 | [
"MIT"
] | null | null | null | config/prod.exs | ShaneKilkelly/teal | 494de9b9a3848ab57a5c3731c9d462bad335a3c0 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# Teal.Web.Endpoint.load_from_system_env/1 dynamically.
# Any dynamic configuration should be moved to such function.
#
... | 33.692308 | 67 | 0.716895 |
384b6b33072e6bb0eadcecbf5333c5ef9a5b30c8 | 247 | ex | Elixir | lib/quadquizaminos/meta.ex | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | lib/quadquizaminos/meta.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | lib/quadquizaminos/meta.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule Quadquizaminos.Meta do
@moduledoc """
get metadata about app while running
"""
@app :quadquizaminos
@doc """
get version of this app
"""
def version do
{:ok, vsn} = :application.get_key(@app, :vsn)
vsn
end
end
| 16.466667 | 49 | 0.639676 |
384b77deed6d2cecd6c44aaf564263f45a26d799 | 232 | ex | Elixir | lib/blockfrost/response/cardano/blocks/listing_of_previous_blocks_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | lib/blockfrost/response/cardano/blocks/listing_of_previous_blocks_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | lib/blockfrost/response/cardano/blocks/listing_of_previous_blocks_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Response.ListingOfPreviousBlocksResponse do
use Blockfrost.Response.BaseSchema
@type t :: Blockfrost.Shared.Block.t()
@doc false
def cast(body), do: Enum.map(body, &Blockfrost.Shared.Block.cast/1)
end
| 25.777778 | 69 | 0.771552 |
384b7ddd19ea8bfc8057b13799fe7eb4fa8232a4 | 1,489 | ex | Elixir | apps/badger_data/lib/badger_data/api/downstream.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | apps/badger_data/lib/badger_data/api/downstream.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | 9 | 2021-03-09T20:25:18.000Z | 2021-05-27T12:58:03.000Z | apps/badger_data/lib/badger_data/api/downstream.ex | andyl/badger | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | defmodule BadgerData.Api.Downstream do
alias BadgerData.Schema.{Downstream, Export}
alias BadgerData.Repo
import Ecto.Query
# ----- user_one -----
def downstream_one do
Repo.get_by(Downstream, id: 1) ||
Downstream.changeset(%Downstream{}, %{name: "aaa"}) |> Repo.insert!()
end
# ----- queries... | 20.39726 | 75 | 0.663533 |
384b7f3863605634b9a3a6a9c8e13120a3ea3758 | 1,932 | ex | Elixir | lib/mix/tasks/changex/update.ex | georgelima/changex | cb91da8c3b10c05acafd1fd49dae4ed6365a197b | [
"MIT"
] | 39 | 2015-02-12T11:49:52.000Z | 2021-09-04T06:18:00.000Z | lib/mix/tasks/changex/update.ex | georgelima/changex | cb91da8c3b10c05acafd1fd49dae4ed6365a197b | [
"MIT"
] | 2 | 2017-06-22T11:34:52.000Z | 2022-03-20T13:32:23.000Z | lib/mix/tasks/changex/update.ex | georgelima/changex | cb91da8c3b10c05acafd1fd49dae4ed6365a197b | [
"MIT"
] | 4 | 2016-05-19T15:01:27.000Z | 2022-03-14T15:46:31.000Z | defmodule Mix.Tasks.Changex.Update do
use Mix.Task
@shortdoc "Write an update to a file."
@moduledoc """
Write an update to the changelog file. Defaults to CHANGELOG.md
A `--format` argument can be passed to output the changelog in a
different format.
A `--file` option can be given to change the outpu... | 27.211268 | 104 | 0.683747 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.