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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33ac30cf2570f6dea76caf48dd2b892e77ba68fc | 4,114 | exs | Elixir | homesynck/test/homesynck_web/live/update_received_live_test.exs | PJS4-projet-gestionnaire-de-contact/Gambett-Server | fa30a85ffa6da480e177d40364dd59f73f0ad892 | [
"MIT"
] | 5 | 2021-03-28T21:20:41.000Z | 2021-07-02T22:46:29.000Z | homesynck/test/homesynck_web/live/update_received_live_test.exs | PJS4-projet-gestionnaire-de-contact/Gambett-Server | fa30a85ffa6da480e177d40364dd59f73f0ad892 | [
"MIT"
] | null | null | null | homesynck/test/homesynck_web/live/update_received_live_test.exs | PJS4-projet-gestionnaire-de-contact/Gambett-Server | fa30a85ffa6da480e177d40364dd59f73f0ad892 | [
"MIT"
] | null | null | null | defmodule HomesynckWeb.UpdateReceivedLiveTest do
use HomesynckWeb.ConnCase
import Phoenix.LiveViewTest
alias Homesynck.Sync
@create_attrs %{}
@update_attrs %{}
@invalid_attrs %{}
defp fixture(:update_received) do
{:ok, update_received} = Sync.create_update_received(@create_attrs)
update_receiv... | 34.571429 | 99 | 0.667234 |
33ac67a065a3a74757b42802d7e55eaf38f09daf | 5,909 | ex | Elixir | lib/pigeon/fcm.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 545 | 2015-09-06T15:50:32.000Z | 2022-03-21T08:21:11.000Z | lib/pigeon/fcm.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 178 | 2016-01-14T22:21:20.000Z | 2022-02-18T22:34:30.000Z | lib/pigeon/fcm.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 124 | 2016-01-17T11:30:16.000Z | 2022-02-28T16:59:41.000Z | defmodule Pigeon.FCM do
@moduledoc """
`Pigeon.Adapter` for Firebase Cloud Messaging (FCM) push notifications.
## Getting Started
1. Create a `FCM` dispatcher.
```
# lib/fcm.ex
defmodule YourApp.FCM do
use Pigeon.Dispatcher, otp_app: :your_app
end
```
2. (Optional) Add configuration to your ... | 24.518672 | 82 | 0.628871 |
33ac7deda1ec430b0e482c3a619f67f565b8d9cd | 2,062 | exs | Elixir | dummy/config/dev.exs | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 4 | 2019-01-23T14:10:31.000Z | 2019-05-14T15:41:11.000Z | dummy/config/dev.exs | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 35 | 2019-02-19T02:11:33.000Z | 2021-09-01T07:09:42.000Z | dummy/config/dev.exs | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 4 | 2019-11-03T16:11:39.000Z | 2022-03-05T14:34:23.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :dummy, DummyWeb.Endpoint,
http: [port: 4000],
... | 27.131579 | 68 | 0.683802 |
33ac86565ba5b5c42ba2c59c97dd0ba7cf448a26 | 3,542 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/document.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/document.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1/model/document.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... | 63.25 | 1,160 | 0.716262 |
33aca3b28a41f948ac6cb97ae1d73d65bb625a36 | 9,676 | ex | Elixir | lib/phoenix/socket.ex | thegrubbsian/phoenix | a8ff809ddd24a2c4277da5cca122d70709313ac8 | [
"MIT"
] | null | null | null | lib/phoenix/socket.ex | thegrubbsian/phoenix | a8ff809ddd24a2c4277da5cca122d70709313ac8 | [
"MIT"
] | null | null | null | lib/phoenix/socket.ex | thegrubbsian/phoenix | a8ff809ddd24a2c4277da5cca122d70709313ac8 | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket do
@moduledoc ~S"""
Holds state for every channel, pointing to its transport,
pubsub server and more.
## Socket Fields
* `id` - The string id of the socket
* `assigns` - The map of socket assigns, default: `%{}`
* `channel` - The channel module where this socket originated
* `... | 31.212903 | 96 | 0.660294 |
33ad096ed4dafb6cb92a60f585eb3c34ce5c2afe | 526 | ex | Elixir | lib/epicenter_web/person_helpers.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | lib/epicenter_web/person_helpers.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | lib/epicenter_web/person_helpers.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.PersonHelpers do
alias Epicenter.Cases.Person
alias Epicenter.MajorDetailed
alias EpicenterWeb.Format
def demographic_field(person, field),
do: person |> Person.coalesce_demographics() |> Map.get(field)
def demographic_field(person, :race = field, :format),
do: person |> demog... | 35.066667 | 102 | 0.754753 |
33ad1244b710039ae12887ed4baa53d70516e0b5 | 1,706 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/date_shift_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/date_shift_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/date_shift_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.12 | 132 | 0.744431 |
33ad56247ca8e96af365c746c6dd8325c4ed1389 | 191 | ex | Elixir | lib/rockelivery_web/controllers/welcome_controller.ex | cassiofariasmachado/rockelivery | 3d88d4d8af1cdc3f2988edc69162d848009babbd | [
"MIT"
] | 1 | 2021-09-27T06:15:08.000Z | 2021-09-27T06:15:08.000Z | lib/rockelivery_web/controllers/welcome_controller.ex | cassiofariasmachado/rockelivery | 3d88d4d8af1cdc3f2988edc69162d848009babbd | [
"MIT"
] | null | null | null | lib/rockelivery_web/controllers/welcome_controller.ex | cassiofariasmachado/rockelivery | 3d88d4d8af1cdc3f2988edc69162d848009babbd | [
"MIT"
] | 1 | 2021-12-21T12:47:59.000Z | 2021-12-21T12:47:59.000Z | defmodule RockeliveryWeb.WelcomeController do
use RockeliveryWeb, :controller
def index(conn, _params) do
conn
|> put_status(:ok)
|> json(%{message: "Welcome :)"})
end
end
| 19.1 | 45 | 0.680628 |
33ad62470bbbd0681bb7b30423d6af03fe3e16a0 | 263 | ex | Elixir | lib/roiimPpaysafe.ex | GhAc-2017/RoiimPpaysafe | 9bf5f899bce0ec5045c5eee0a358ffa2d3c29d81 | [
"MIT"
] | null | null | null | lib/roiimPpaysafe.ex | GhAc-2017/RoiimPpaysafe | 9bf5f899bce0ec5045c5eee0a358ffa2d3c29d81 | [
"MIT"
] | null | null | null | lib/roiimPpaysafe.ex | GhAc-2017/RoiimPpaysafe | 9bf5f899bce0ec5045c5eee0a358ffa2d3c29d81 | [
"MIT"
] | null | null | null | defmodule RoiimPpaysafe do
@moduledoc """
RoiimPpaysafe keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.3 | 66 | 0.764259 |
33ada23eea55b87a1f47dd30557b13ce08c8bb31 | 1,543 | exs | Elixir | test/prismic/prismic_test.exs | SolaceClub/prismic | 29841a3c76a20f444d7cf576ac0f39bf7096afa4 | [
"Apache-2.0"
] | null | null | null | test/prismic/prismic_test.exs | SolaceClub/prismic | 29841a3c76a20f444d7cf576ac0f39bf7096afa4 | [
"Apache-2.0"
] | null | null | null | test/prismic/prismic_test.exs | SolaceClub/prismic | 29841a3c76a20f444d7cf576ac0f39bf7096afa4 | [
"Apache-2.0"
] | null | null | null | defmodule Solace.ComponentCase do
@moduledoc """
This module defines the test case to be used by
component tests.
"""
use ExUnit.CaseTemplate
using do
quote do
end
end
setup tags do
:ok
end
end
defmodule Solace.PrismicTest do
alias Solace.Prismic.Api
use Solace.ComponentCase
@... | 24.887097 | 135 | 0.692806 |
33adc88227b425cfe6fe45979c88b87f69d7f8af | 1,331 | ex | Elixir | 02-conditions/cond_example_1.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 02-conditions/cond_example_1.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 02-conditions/cond_example_1.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | result = cond do
2 + 3 == 4 -> "2 + 3 == 4"
2 * 3 == 4 -> "2 * 3 == 4"
1 + 1 == 2 -> "1 + 1 == 2"
end
IO.puts result
result = cond do
2 + 3 == 4 -> "2 + 3 == 4"
2 * 3 == 4 -> "2 * 3 == 4"
1 + 2 == 2 -> "1 + 2 == 2"
true -> nil # Needed when the rest of cases are false
end
IO.puts result
result = cond do... | 21.819672 | 65 | 0.561983 |
33add3de7456b65360c210272260180bed807afe | 3,007 | ex | Elixir | lib/tesla_cacher.ex | kianmeng/TeslaCacher | 472bcd1377aaf15c48d762e1dcac5d3a7c0c71ab | [
"Apache-2.0"
] | null | null | null | lib/tesla_cacher.ex | kianmeng/TeslaCacher | 472bcd1377aaf15c48d762e1dcac5d3a7c0c71ab | [
"Apache-2.0"
] | null | null | null | lib/tesla_cacher.ex | kianmeng/TeslaCacher | 472bcd1377aaf15c48d762e1dcac5d3a7c0c71ab | [
"Apache-2.0"
] | null | null | null | defmodule Tesla.Middleware.Cacher do
@behaviour Tesla.Middleware
@moduledoc """
Cache the result in redis.
### Example
```elixir
defmodule MyClient do
use Tesla
plug Tesla.Middleware.Cacher,
redix: :redix,
expiry: :timer.seconds(2),
timeout: :timer.seconds(5),
prefix: :tes... | 24.647541 | 97 | 0.629199 |
33ade2a682412869baffeb47f8b65b840b347218 | 1,086 | ex | Elixir | test/support/conn_case.ex | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 333 | 2019-05-18T14:01:17.000Z | 2022-03-22T05:07:40.000Z | test/support/conn_case.ex | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 89 | 2019-05-18T10:01:54.000Z | 2021-05-12T15:19:26.000Z | test/support/conn_case.ex | envato/elixir-companies | 7488075d1a372c9ca8fa6603f93e384b73977526 | [
"MIT"
] | 33 | 2019-06-07T00:33:53.000Z | 2022-03-21T05:38:28.000Z | defmodule CompaniesWeb.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
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if ... | 27.15 | 71 | 0.719153 |
33aded97ed8b088e290e215ac44325732afd1657 | 1,080 | ex | Elixir | lib/brando_admin/components/dropdown_button.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando_admin/components/dropdown_button.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando_admin/components/dropdown_button.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule BrandoAdmin.Components.Button do
use BrandoAdmin, :component
def dropdown(assigns) do
[_, %{event: event_name}] = List.first(assigns.event.ops)
assigns =
assigns
|> assign(:event_name, event_name)
|> assign_new(:loading, fn -> false end)
|> assign_new(:confirm, fn -> fals... | 27 | 61 | 0.502778 |
33adf8a5a4fe51723755053ddd996e0af79e158d | 1,986 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quasi_identifier_field.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quasi_identifier_field.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quasi_identifier_field.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.72 | 241 | 0.751762 |
33ae077973779283aba4a725c6c5362beeeeba59 | 7,360 | ex | Elixir | farmbot_ext/lib/farmbot_ext/api.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_ext/lib/farmbot_ext/api.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | farmbot_ext/lib/farmbot_ext/api.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | defmodule FarmbotExt.API do
@moduledoc """
Module where all Farmbot specific HTTP calls are done
"""
alias FarmbotExt.{API, JWT}
alias FarmbotCore.JSON
alias FarmbotCore.Asset.{
FbosConfig,
FirmwareConfig,
StorageAuth
}
alias FarmbotCore.{BotState, BotState.JobProgress.Percent, Project}
... | 29.090909 | 101 | 0.612364 |
33ae1ef29d6df4c09cb6262ed3b64d3ec74b7a96 | 3,390 | exs | Elixir | apps/tai/test/tai/venue_adapters/deribit/product_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/venue_adapters/deribit/product_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/venue_adapters/deribit/product_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenuesAdapters.Deribit.ProductTest do
use ExUnit.Case, async: false
setup do
on_exit(fn ->
:ok = Application.stop(:tzdata)
end)
{:ok, _} = Application.ensure_all_started(:tzdata)
:ok
end
describe ".build/2" do
@base_attrs %{
instrument_name: "BTC-25SEP20",
... | 36.06383 | 93 | 0.678171 |
33ae497b7afff808a5908f457832c4dd7b9c793d | 10,541 | exs | Elixir | test/teslamate/vehicles/vehicle/charging_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/charging_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/charging_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.ChargingTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Log.ChargingProcess
import ExUnit.CaptureLog
@log_opts format: "[$level] $message\n",
colors: [enabled: false]
test "logs a full charging cycle", %{test: name} do
now_ts = DateTime.u... | 40.232824 | 96 | 0.620719 |
33ae4ea03319bcc13bfa66e72e3493e3f966a5e7 | 192 | exs | Elixir | test/hub_web/controllers/page_controller_test.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | test/hub_web/controllers/page_controller_test.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | 5 | 2020-07-17T23:35:42.000Z | 2021-05-10T07:00:10.000Z | test/hub_web/controllers/page_controller_test.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | defmodule HubWeb.PageControllerTest do
use HubWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.333333 | 60 | 0.666667 |
33ae816b6f125db8dc8b7fcef836059f97af6101 | 23,575 | ex | Elixir | lib/ecto/query/planner.ex | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/ecto/query/planner.ex | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Planner do
# Normalizes a query and its parameters.
@moduledoc false
alias Ecto.Query.SelectExpr
alias Ecto.Query.JoinExpr
if map_size(%Ecto.Query{}) != 17 do
raise "Ecto.Query match out of date in builder"
end
@doc """
Validates and cast the given fields belonging to the giv... | 33.34512 | 114 | 0.622481 |
33ae8bd905e8c84da2c129d0dd83242fcf51e977 | 555 | ex | Elixir | lib/credo/application.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/application.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/application.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-06-30T16:32:44.000Z | 2020-06-30T16:32:44.000Z | defmodule Credo.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(Credo.CLI.Output.Shell, []),
worker(Credo.Service.Commands, []),
worker(Credo.Service.SourceFileScopes, []),
worker(Credo.Service.So... | 25.227273 | 59 | 0.675676 |
33ae9811f131e473e7f2f621b0e3048bb786c5d1 | 2,364 | ex | Elixir | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1beta1/model/ip_reputation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1beta1/model/ip_reputation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1beta1/model/ip_reputation.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... | 42.214286 | 303 | 0.716159 |
33aea18a21543693aa3dbc139d8cc4183c29ed82 | 2,084 | ex | Elixir | apps/snitch_core/priv/repo/seed/shipping.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/seed/shipping.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/seed/shipping.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Seed.Shipping do
@moduledoc false
import Ecto.Query
import Snitch.Tools.Helper.{Shipment, Zone}
alias Snitch.Data.Model.{Country, ShippingMethod, State}
alias Snitch.Data.Schema.State, as: StateSchema
alias Snitch.Data.Schema.ShippingMethod, as: ShippingMethodSchema
alias Snitch.Data.Sc... | 26.717949 | 80 | 0.623321 |
33aeb0e13d63ef08f6a237b2ad05017bca9046c8 | 1,982 | exs | Elixir | apps/bernard_api/config/dev.exs | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | apps/bernard_api/config/dev.exs | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | apps/bernard_api/config/dev.exs | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"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 brunch.io to recompile .js and .css sources.
#
# Dyanmic configuration of the endpoint is set in
# E... | 32.491803 | 170 | 0.718466 |
33aec3f3d83bbc1cec26ca4d7fcb4edd29084509 | 3,275 | ex | Elixir | apps/ui/lib/ui_web/live/price_chart_live.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 49 | 2019-10-28T22:27:28.000Z | 2021-10-11T06:40:29.000Z | apps/ui/lib/ui_web/live/price_chart_live.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 9 | 2019-08-30T13:15:36.000Z | 2019-10-10T21:25:14.000Z | apps/ui/lib/ui_web/live/price_chart_live.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 7 | 2019-10-31T06:19:26.000Z | 2021-09-30T04:20:58.000Z | defmodule UiWeb.PriceChartLive do
use Phoenix.LiveView
alias Timex, as: T
def render(assigns) do
~L"""
<%= if not is_nil(@data.symbol) do %>
<div class="row">
<div class="col-md-12">
<!-- AREA CHART -->
<div class="box box-primary">
<div class="bo... | 31.190476 | 154 | 0.485191 |
33aee2139a872c4e35122bac3bd8de599ab7f85a | 1,749 | ex | Elixir | lib/sanbase/twitter/followers_scheduler.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase/twitter/followers_scheduler.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase/twitter/followers_scheduler.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.Twitter.FollowersScheduler do
use GenServer
alias Sanbase.Twitter
alias Sanbase.Twitter.FollowersWorker
require Logger
require Sanbase.Utils.Config, as: Config
@oban_conf_name :oban_scrapers
@oban_queue :twitter_followers_migration_queue
def start_link(opts \\ []) do
GenServer.... | 26.5 | 90 | 0.698685 |
33aef292dc4251eb47044a4df399bfe9db1cc3f1 | 78 | ex | Elixir | lib/leaderboards_web/views/pow/session_view.ex | jordyvanvorselen/leaderboards | 0087c756a157f0e9ccbee3ec02a21d0c813e40a9 | [
"MIT"
] | null | null | null | lib/leaderboards_web/views/pow/session_view.ex | jordyvanvorselen/leaderboards | 0087c756a157f0e9ccbee3ec02a21d0c813e40a9 | [
"MIT"
] | null | null | null | lib/leaderboards_web/views/pow/session_view.ex | jordyvanvorselen/leaderboards | 0087c756a157f0e9ccbee3ec02a21d0c813e40a9 | [
"MIT"
] | null | null | null | defmodule LeaderboardsWeb.Pow.SessionView do
use LeaderboardsWeb, :view
end
| 19.5 | 44 | 0.833333 |
33aefdaa672e0658f38dce3ffcb380e88e2b64ed | 4,502 | ex | Elixir | lib/util/crypto.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | lib/util/crypto.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | lib/util/crypto.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Crypto do
@doc """
Checks equality of the given two binaries in constant-time to avoid [timing attacks](http://codahale.com/a-lesson-in-timing-attacks/).
"""
defun secure_compare(left :: v[binary], right :: v[binary... | 41.302752 | 165 | 0.665926 |
33af0fad75ee29747a91caf7956a607accedbfdb | 634 | exs | Elixir | day03/test/day03_test.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | day03/test/day03_test.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | day03/test/day03_test.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | defmodule Day03Test do
use ExUnit.Case
doctest Day03
test "part 1 with example" do
assert Day03.part1(">") == 2
assert Day03.part1("^>v<") == 4
assert Day03.part1("^v^v^v^v^v") == 2
end
test "part 1 with my input data" do
assert Day03.part1(input()) == 2592
end
test "part 2 with example... | 20.451613 | 42 | 0.589905 |
33af27826c204cb5184483c0cf7ef5dbbc8c59e2 | 1,581 | ex | Elixir | alerts/lib/alerts_web.ex | juanseph/elixir_alerts | c9e777417ff33e8ca6d766f770ae63d68d111a8a | [
"MIT"
] | 1 | 2020-04-27T17:54:12.000Z | 2020-04-27T17:54:12.000Z | alerts/lib/alerts_web.ex | juanseph/elixir_alerts | c9e777417ff33e8ca6d766f770ae63d68d111a8a | [
"MIT"
] | null | null | null | alerts/lib/alerts_web.ex | juanseph/elixir_alerts | c9e777417ff33e8ca6d766f770ae63d68d111a8a | [
"MIT"
] | null | null | null | defmodule AlertsWeb 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 AlertsWeb, :controller
use AlertsWeb, :view
The definitions below will be executed for every view,
controller, etc... | 22.913043 | 69 | 0.68754 |
33af37c06a6342dc055cbbc0da807c7d72ec143d | 294 | exs | Elixir | .formatter.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | .formatter.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | .formatter.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | locals_without_parens = [xema: 2, field: 2, field: 3, required: 1]
[
inputs: ["mix.exs", ".dialyzer_ignore.exs", "{config,lib,test,bench}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens ++ [assert_blame: 3],
export: [
locals_without_parens: locals_without_parens
]
]
| 29.4 | 87 | 0.690476 |
33af523643805e2c3ec77dec3730c3bd44f6cb41 | 622 | ex | Elixir | lib/ecto_facade/algorithms/roundrobin.ex | azranel/ecto_facade | c900a2bda493fdbaca8f2f7be36a3a738b428994 | [
"MIT"
] | 74 | 2018-01-17T10:17:34.000Z | 2022-02-01T05:08:20.000Z | lib/ecto_facade/algorithms/roundrobin.ex | samgaw/ecto_facade | c900a2bda493fdbaca8f2f7be36a3a738b428994 | [
"MIT"
] | 13 | 2018-01-13T18:54:09.000Z | 2019-09-16T23:58:57.000Z | lib/ecto_facade/algorithms/roundrobin.ex | samgaw/ecto_facade | c900a2bda493fdbaca8f2f7be36a3a738b428994 | [
"MIT"
] | 7 | 2018-02-14T18:49:12.000Z | 2021-07-01T04:06:51.000Z | defmodule EctoFacade.Algorithms.Roundrobin do
@moduledoc """
Algorithm for ecto facade to return next repository
"""
@behaviour EctoFacade.Algorithm
defmodule Storage do
use Agent
def start_link(repos) do
Agent.start_link(fn -> :queue.from_list(repos) end, name: __MODULE__)
end
def g... | 21.448276 | 75 | 0.678457 |
33af7895ab25f1e119d81ea9c8f932536cb76dad | 755 | ex | Elixir | lib/commodity_api/util/type/types.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/util/type/types.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/util/type/types.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 37.75 | 77 | 0.728477 |
33afbdf348d4ade9fc1a952aea7942b29380959d | 1,389 | exs | Elixir | apps/service_profile/mix.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_profile/mix.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_profile/mix.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Profile.MixProject do
use Mix.Project
def project do
[
app: :service_profile,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: M... | 26.711538 | 56 | 0.564435 |
33afc2917c6602b7c55a3703138b5499477993ce | 769 | ex | Elixir | test/support/channel_case.ex | aridjar-umbrella-guide/admin | 21050a3e8957116ef35f03ff8b8b1b46f68e632a | [
"MIT"
] | null | null | null | test/support/channel_case.ex | aridjar-umbrella-guide/admin | 21050a3e8957116ef35f03ff8b8b1b46f68e632a | [
"MIT"
] | 1 | 2021-03-09T01:41:00.000Z | 2021-03-09T01:41:00.000Z | test/support/channel_case.ex | aridjar-umbrella-guide/admin | 21050a3e8957116ef35f03ff8b8b1b46f68e632a | [
"MIT"
] | 1 | 2019-04-17T17:06:14.000Z | 2019-04-17T17:06:14.000Z | defmodule AdminWeb.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 wit... | 24.03125 | 59 | 0.725618 |
33afc4d24e548fa331041d156f75deaba9b19b49 | 819 | ex | Elixir | samples/client/petstore/elixir/lib/open_api_petstore/model/user.ex | kymbalon/openapi-generator | 8327a920408314aacb7d00f64285ae88e9195633 | [
"Apache-2.0"
] | 2 | 2019-04-17T19:01:32.000Z | 2019-04-17T19:05:56.000Z | samples/client/petstore/elixir/lib/open_api_petstore/model/user.ex | kymbalon/openapi-generator | 8327a920408314aacb7d00f64285ae88e9195633 | [
"Apache-2.0"
] | 7 | 2021-03-01T21:26:03.000Z | 2022-02-27T10:10:20.000Z | samples/client/petstore/elixir/lib/open_api_petstore/model/user.ex | kymbalon/openapi-generator | 8327a920408314aacb7d00f64285ae88e9195633 | [
"Apache-2.0"
] | 4 | 2019-04-08T17:06:09.000Z | 2020-06-09T18:16:08.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenAPIPetstore.Model.User do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"id",
:"username",
:"firstName",
:"... | 20.475 | 91 | 0.592186 |
33afd6bd337d5161d9d9c71672c6aa23e476dbe6 | 19,117 | exs | Elixir | test/alter_test.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | test/alter_test.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | test/alter_test.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | defmodule AlterTest do
use ExUnit.Case, async: false
import Postgrex.TestHelper
@moduletag :capture_log
setup context do
options = [database: "postgrex_test", backoff_type: :stop,
prepare: context[:prepare] || :named]
reset = fn() ->
{:ok, pid} = Postgrex.start_link(options)
... | 38.776876 | 113 | 0.639274 |
33afefd9613ae7d266d2adf78fe12768344671be | 917 | ex | Elixir | lib/surface/components/form/text_input.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/components/form/text_input.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/components/form/text_input.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.TextInput do
@moduledoc """
An input field that let the user enter a **single-line text**.
Provides a wrapper for Phoenix.HTML.Form's `text_input/3` function.
All options passed via `opts` will be sent to `text_input/3`, `value` and
`class` can be set directly and will over... | 26.970588 | 76 | 0.671756 |
33aff99ed758ac9e9342d7925faa1ff9356f9d91 | 215 | ex | Elixir | lib/lucidboard_web/controllers/page_controller.ex | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | 1 | 2019-07-04T03:23:31.000Z | 2019-07-04T03:23:31.000Z | lib/lucidboard_web/controllers/page_controller.ex | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | null | null | null | lib/lucidboard_web/controllers/page_controller.ex | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | null | null | null | defmodule LucidboardWeb.PageController do
use LucidboardWeb, :controller
alias LucidboardWeb.LayoutView
def index(conn, _params) do
render(conn, "index.html", layout: {LayoutView, :full_width})
end
end
| 23.888889 | 65 | 0.762791 |
33b0033fc8f524b6626cc0fa626d596fff5f7d0a | 537 | ex | Elixir | 05-chapter/exercise_03.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 05-chapter/exercise_03.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 05-chapter/exercise_03.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | fizzbuzz = fn
0, 0, _ -> "FizzBuzz"
0, _, _ -> "Fizz"
_, 0, _ -> "Buzz"
_, _, c -> c
end
remainder = fn
n -> fizzbuzz.(rem(n, 3), rem(n, 5), n)
end
IO.puts("remainder.(10)")
IO.inspect(remainder.(10))
IO.puts("remainder.(11)")
IO.inspect(remainder.(11))
IO.puts("remainder.(12)")
IO.inspect(remainder.(12))... | 16.78125 | 41 | 0.623836 |
33b00bb87663eab0a8108619526aff40b820bf77 | 50,131 | ex | Elixir | lib/mongo.ex | GoodBuyGear/elixir-mongodb-driver | 0a62b02f445f1ee00613e6290e066fb1710ac045 | [
"Apache-2.0"
] | null | null | null | lib/mongo.ex | GoodBuyGear/elixir-mongodb-driver | 0a62b02f445f1ee00613e6290e066fb1710ac045 | [
"Apache-2.0"
] | null | null | null | lib/mongo.ex | GoodBuyGear/elixir-mongodb-driver | 0a62b02f445f1ee00613e6290e066fb1710ac045 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo do
@moduledoc """
The main entry point for doing queries. All functions take a topology to
run the query on.
## Generic options
All operations take these options.
* `:timeout` - The maximum time that the caller is allowed the to hold the
connection’s state (ignored when using a ru... | 36.353154 | 184 | 0.641739 |
33b019ab58f8a83162606392dc0331714eac0fcf | 290 | exs | Elixir | priv/repo/migrations/20171115201624_drop_github_repos_project_id_unique_index_if_exists.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20171115201624_drop_github_repos_project_id_unique_index_if_exists.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20171115201624_drop_github_repos_project_id_unique_index_if_exists.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.DropGithubReposProjectIdUniqueIndexIfExists do
use Ecto.Migration
def up do
drop_if_exists index(:github_repos, [:project_id], unique: true)
create_if_not_exists index(:github_repos, [:project_id])
end
def down do
# no-op
end
end
| 22.307692 | 82 | 0.758621 |
33b06a770dd2494d2a2c2b510f901970640adcc7 | 1,559 | exs | Elixir | mix.exs | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 298 | 2017-06-05T14:28:23.000Z | 2022-03-30T16:53:44.000Z | mix.exs | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 28 | 2017-07-21T01:06:47.000Z | 2021-03-07T12:32:56.000Z | mix.exs | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 77 | 2017-08-14T20:12:03.000Z | 2021-12-08T22:24:59.000Z | defmodule Conduit.Mixfile do
use Mix.Project
def project do
[
app: :conduit,
version: "0.0.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.87931 | 91 | 0.514432 |
33b06f3479dadc1bcd88ad92f2a589057a5733be | 3,620 | exs | Elixir | test/test_helper.exs | feng19/phoenix_live_dashboard | a415422e2ef11527c983a29fb9f3c9e03808439c | [
"MIT"
] | null | null | null | test/test_helper.exs | feng19/phoenix_live_dashboard | a415422e2ef11527c983a29fb9f3c9e03808439c | [
"MIT"
] | null | null | null | test/test_helper.exs | feng19/phoenix_live_dashboard | a415422e2ef11527c983a29fb9f3c9e03808439c | [
"MIT"
] | null | null | null | System.put_env("PHX_DASHBOARD_TEST", "PHX_DASHBOARD_ENV_VALUE")
pg_url = System.get_env("PG_URL") || "postgres:postgres@127.0.0.1"
Application.put_env(:phoenix_live_dashboard, Phoenix.LiveDashboardTest.Repo,
url: "ecto://#{pg_url}/phx_dashboard_test"
)
defmodule Phoenix.LiveDashboardTest.Repo do
use Ecto.Repo, o... | 28.503937 | 91 | 0.752762 |
33b0fd0e0c0cbbadc254d322b50fb9442d8a2963 | 222 | exs | Elixir | config/test.exs | erickueen/burox | ca750675d2b654cf7804f6a403780db950a1c42e | [
"MIT"
] | 14 | 2018-03-21T18:03:14.000Z | 2022-01-23T05:21:57.000Z | config/test.exs | erickueen/burox | ca750675d2b654cf7804f6a403780db950a1c42e | [
"MIT"
] | 11 | 2018-03-06T21:35:17.000Z | 2019-03-28T21:38:34.000Z | config/test.exs | erickueen/burox | ca750675d2b654cf7804f6a403780db950a1c42e | [
"MIT"
] | 10 | 2018-02-26T19:41:08.000Z | 2020-03-19T18:58:41.000Z | use Mix.Config
config :logger, level: :warn
config :burox,
buro_user: "user",
buro_password: "password",
buro_user_propsector: "user",
buro_password_prospector: "password",
buro_service: Burox.BuroService.Mock
| 20.181818 | 39 | 0.747748 |
33b10c6e90718a500707ee4fdc7d34d8801a5e29 | 1,111 | exs | Elixir | config/config.exs | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | config/config.exs | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | config/config.exs | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.83871 | 73 | 0.753375 |
33b10ebcf6d608325eed2f4839b86b5285661a5a | 2,811 | ex | Elixir | lib/api/util.ex | bwireman/censys_elixir | 2fb0b92cc3071d99431b8e1cdd66f31124f9ddb5 | [
"MIT"
] | 4 | 2021-06-13T17:53:15.000Z | 2021-07-27T20:54:10.000Z | lib/api/util.ex | bwireman/censys_elixir | 2fb0b92cc3071d99431b8e1cdd66f31124f9ddb5 | [
"MIT"
] | 2 | 2021-07-27T20:33:09.000Z | 2022-03-23T19:17:48.000Z | lib/api/util.ex | bwireman/censys_ex | 2fb0b92cc3071d99431b8e1cdd66f31124f9ddb5 | [
"MIT"
] | null | null | null | defmodule CensysEx.Util do
@moduledoc false
# RFC3339 format
@at_time_format "%Y-%m-%dT%H:%M:%S"
@invalid_message "Invalid API response"
@invalid_api_resp {:error, @invalid_message}
@spec get_client() :: CensysEx.APIBehavior.t()
def get_client, do: Application.get_env(:censys_ex, :client, CensysEx.API)... | 36.506494 | 115 | 0.655639 |
33b1126ece560f9f2dc474094b684f4522a76faa | 1,029 | ex | Elixir | services/fc_inventory/lib/fc_inventory/events/entry_added.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_inventory/lib/fc_inventory/events/entry_added.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_inventory/lib/fc_inventory/events/entry_added.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCInventory.EntryAdded do
use FCBase, :event
@version 1
typedstruct do
field :__version__, integer(), default: @version
field :request_id, String.t()
field :requester_id, String.t()
field :requester_type, String.t()
field :requester_role, String.t()
field :client_id, String.t(... | 25.725 | 75 | 0.672498 |
33b1506d3f4fd6a395df4c36fa27234cdace4ea1 | 797 | exs | Elixir | test/wallaby/phantom/driver/js_errors_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/phantom/driver/js_errors_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/phantom/driver/js_errors_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Phantom.Driver.JSErrorsTest do
use Wallaby.SessionCase, async: true
import ExUnit.CaptureIO
test "it captures javascript errors", %{session: session} do
assert_raise Wallaby.JSError, fn ->
session
|> visit("/errors.html")
|> click_button("Throw an Error")
end
end
... | 21.540541 | 68 | 0.624843 |
33b19d60d6588579f4d4d24565a1e34f1f9b936e | 1,973 | ex | Elixir | lib/exec.ex | joaohf/docker-elixir | cb378660abcb67f83478bf93e0ab02729b12a244 | [
"Apache-2.0"
] | null | null | null | lib/exec.ex | joaohf/docker-elixir | cb378660abcb67f83478bf93e0ab02729b12a244 | [
"Apache-2.0"
] | null | null | null | lib/exec.ex | joaohf/docker-elixir | cb378660abcb67f83478bf93e0ab02729b12a244 | [
"Apache-2.0"
] | null | null | null | defmodule Docker.Exec do
@moduledoc """
Docker exec methods.
"""
require Logger
@base_exec_uri "/exec"
@base_containers_uri "/containers"
@doc """
Run a command inside a running container.
"""
def create(id, conf) do
"#{@base_containers_uri}/#{id}/exec"
|> Docker.Client.post(conf)
|> de... | 24.060976 | 92 | 0.583376 |
33b1a0c8807fadfca093e7d8a997cc1e75431a9a | 135 | exs | Elixir | code examples/example-9-5.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/example-9-5.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/example-9-5.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defp deps do
[
{:mongodb_ecto, "~> 0.1"},
{:dar_model, path: "~/Projects/creative-common-dar/Erlang/Libs/dar_model"}
]
end
| 19.285714 | 78 | 0.622222 |
33b1b92009dd84ada9b7e9e0ecfe274dc6cd3388 | 809 | exs | Elixir | test/enforcer_test.exs | pareeohnos/rampart | 21afc1b6880d9f1ba11ece8872fd88de917e39e9 | [
"MIT"
] | 2 | 2017-05-03T15:02:01.000Z | 2017-05-04T01:18:53.000Z | test/enforcer_test.exs | pareeohnos/rampart | 21afc1b6880d9f1ba11ece8872fd88de917e39e9 | [
"MIT"
] | null | null | null | test/enforcer_test.exs | pareeohnos/rampart | 21afc1b6880d9f1ba11ece8872fd88de917e39e9 | [
"MIT"
] | null | null | null | defmodule EnforcerTest do
use ExUnit.Case, async: true
use Plug.Test
doctest Rampart.Enforcer
alias Rampart.Enforcer
test "adds a before_send callback" do
conn =
conn(:get, "/hello")
|> Plug.Conn.assign(:authorized, true)
|> Enforcer.call([])
assert Enum.count(conn.before_send) ==... | 23.114286 | 68 | 0.639061 |
33b1cd357460d4b6607f523adbeacdc25383b62b | 425 | ex | Elixir | elixir/58_Greedy_Snake/lib/gui.ex | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | 1 | 2021-11-04T11:49:46.000Z | 2021-11-04T11:49:46.000Z | elixir/06_Retirement_Calculator/gui/lib/gui.ex | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | 8 | 2019-12-16T09:37:36.000Z | 2020-07-02T06:00:30.000Z | elixir/06_Retirement_Calculator/gui/lib/gui.ex | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | null | null | null | defmodule Gui do
@moduledoc """
Starter application using the Scenic framework.
"""
def start(_type, _args) do
# load the viewport configuration from config
main_viewport_config = Application.get_env(:gui, :viewport)
# start the application with the viewport
children = [
{Scenic, viewpor... | 23.611111 | 63 | 0.708235 |
33b1d760bc4a434f576307420f160ecc10a29199 | 2,059 | ex | Elixir | clients/people/lib/google_api/people/v1/model/event.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/event.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/event.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... | 36.122807 | 197 | 0.715881 |
33b1e8e4f7e75b0453222fd36eb5d0e4dd8a4f3e | 3,886 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/scheduling.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/scheduling.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/scheduling.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... | 57.147059 | 437 | 0.733659 |
33b1f3e808029d60d66d0c3f65f3d6757c128f25 | 365 | ex | Elixir | lib/team_budget_graphql/resolvers/invite_resolver.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | lib/team_budget_graphql/resolvers/invite_resolver.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | lib/team_budget_graphql/resolvers/invite_resolver.ex | AkioCode/elxpro4-teambudget | a7e67d5e1ec538df6cc369cc4f385d005bf60eda | [
"MIT"
] | null | null | null | defmodule TeamBudgetGraphql.Resolvers.InviteResolver do
alias TeamBudget.Invites
def send_invite(_parent, %{invites: invites}, %{
context: %{current_user: current_user, team: team}
}) do
Invites.send_invite(invites, current_user, team)
end
def create_user(_parent, %{user: user}, resolutions)... | 26.071429 | 58 | 0.723288 |
33b20aa9f3b1f419dc4931d08433fa078177d43c | 774 | exs | Elixir | test/filter_map_test.exs | andersonmcook/filter_map | f52e98168724aa5a939cacb0f80a48922bb8a432 | [
"MIT"
] | null | null | null | test/filter_map_test.exs | andersonmcook/filter_map | f52e98168724aa5a939cacb0f80a48922bb8a432 | [
"MIT"
] | null | null | null | test/filter_map_test.exs | andersonmcook/filter_map | f52e98168724aa5a939cacb0f80a48922bb8a432 | [
"MIT"
] | null | null | null | defmodule FilterMapTest do
@moduledoc false
use ExUnit.Case
import Util
test "all same" do
arg = Enum.to_list(1..100)
result = for n <- arg, odd?(n), do: square(n)
assert FilterMap.filter_map_concat(arg, &odd?/1, &square/1) == result
assert FilterMap.filter_map(arg, &odd?/1, &square/1) == ... | 25.8 | 93 | 0.630491 |
33b248efde84ac29777220828f7e0883012fad05 | 6,161 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/floodlight_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/floodlight_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/floodlight_configuration.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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... | 56.009091 | 244 | 0.758643 |
33b26c177994ee382016d7e131da05841ee9602f | 421 | exs | Elixir | test/basic-test.exs | sdelixir/Bank-Account | ac98bdf91c27d2066d95d0a0d222ca8875ae1f61 | [
"MIT"
] | 5 | 2016-10-26T11:15:03.000Z | 2022-02-04T13:39:23.000Z | test/basic-test.exs | sdelixir/Bank-Account | ac98bdf91c27d2066d95d0a0d222ca8875ae1f61 | [
"MIT"
] | null | null | null | test/basic-test.exs | sdelixir/Bank-Account | ac98bdf91c27d2066d95d0a0d222ca8875ae1f61 | [
"MIT"
] | null | null | null | defmodule BasicTest do
def test(test_name, expected, actual) do
IO.puts test_name
display_results(expected, actual)
end
def display_results(expected, actual) do
result = (expected == actual)
if result do
IO.puts "PASS"
else
IO.puts "Expected: #{expected}"
IO.puts "Actual: ... | 20.047619 | 48 | 0.574822 |
33b26ef84ad9ed11bed570a50f22fb93e061a14c | 1,861 | exs | Elixir | mix.exs | TylerTemp/jollacn-api | 4e0d887ea9bf4c5fd94dd1880682de1f6384a078 | [
"MIT"
] | null | null | null | mix.exs | TylerTemp/jollacn-api | 4e0d887ea9bf4c5fd94dd1880682de1f6384a078 | [
"MIT"
] | null | null | null | mix.exs | TylerTemp/jollacn-api | 4e0d887ea9bf4c5fd94dd1880682de1f6384a078 | [
"MIT"
] | null | null | null | defmodule JollaCNAPI.MixProject do
use Mix.Project
def project do
[
app: :jollacn_api,
version: "0.2.1",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
def application do
[
extra_applications: [
:logge... | 24.486842 | 90 | 0.488447 |
33b2867af183dfc56b0c54ee2148708800f61f84 | 3,056 | ex | Elixir | lib/segment/server.ex | joshsmith/segment_elixir | 0cf5548b805cdfcaf547b9d213173388a7ea2005 | [
"MIT"
] | 2 | 2019-05-10T13:20:39.000Z | 2019-05-10T15:08:21.000Z | lib/segment/server.ex | joshsmith/segment_elixir | 0cf5548b805cdfcaf547b9d213173388a7ea2005 | [
"MIT"
] | 7 | 2019-05-10T15:28:18.000Z | 2019-06-13T16:44:59.000Z | lib/segment/server.ex | joshsmith/segment_elixir | 0cf5548b805cdfcaf547b9d213173388a7ea2005 | [
"MIT"
] | 1 | 2019-05-24T18:41:57.000Z | 2019-05-24T18:41:57.000Z | defmodule Segment.Server do
@moduledoc """
Provides the api for sending data to Segment.io.
All functions are implemented as Genserver casts so that they are out-of-band
for clients.
"""
use GenServer
alias Segment.Http
alias Segment.{Track, Identify, Screen, Alias, Group, Page, Context}
require Lo... | 26.344828 | 87 | 0.641361 |
33b297f49918e9acc7a9774b3b37817449d93ab2 | 731 | ex | Elixir | lib/cort_ex/sensor.ex | EddyShure/cort_ex | 36f24b7777b283b89c6f33ed8efd99483d91bae9 | [
"MIT"
] | null | null | null | lib/cort_ex/sensor.ex | EddyShure/cort_ex | 36f24b7777b283b89c6f33ed8efd99483d91bae9 | [
"MIT"
] | null | null | null | lib/cort_ex/sensor.ex | EddyShure/cort_ex | 36f24b7777b283b89c6f33ed8efd99483d91bae9 | [
"MIT"
] | null | null | null | defmodule CortEx.Sensor do
use GenServer
require Logger
def start_link(id, outputs) do
Logger.debug("Starting sensor ##{id}")
GenServer.start_link(__MODULE__, outputs, name: via_tuple(id))
end
defp via_tuple(neuron_id), do: {:via, Registry, {CortEx.NeuronRegistry, neuron_id}}
def init(outputs) ... | 26.107143 | 85 | 0.688098 |
33b2c82ce473132400ff6ce2c401f5041f33a665 | 10,353 | exs | Elixir | test/test_dispatch_form_test.exs | DefactoSoftware/test_dispatch | 04465012c5e40b5165b958682cbcf718156e9db9 | [
"MIT"
] | 3 | 2020-04-15T11:58:13.000Z | 2022-01-14T04:29:43.000Z | test/test_dispatch_form_test.exs | DefactoSoftware/test_dispatch | 04465012c5e40b5165b958682cbcf718156e9db9 | [
"MIT"
] | 95 | 2020-03-15T15:03:47.000Z | 2022-03-25T04:31:20.000Z | test/test_dispatch_form_test.exs | DefactoSoftware/test_dispatch | 04465012c5e40b5165b958682cbcf718156e9db9 | [
"MIT"
] | null | null | null | defmodule TestDispatch.FormTest do
use TestDispatch.ConnCase
describe "form with entity and empty form controls" do
test "dispatches form with attributes", %{conn: conn} do
attrs = %{
name: "John Doe",
email: "john@doe.com",
description: "Just a regular joe",
roles: ["admi... | 31.277946 | 97 | 0.533469 |
33b2e3858d8a1852cbb794300f1c005edb856714 | 2,527 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_schedule.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_schedule.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_schedule.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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.42623 | 238 | 0.743569 |
33b2e69b442ccb7b1e73dc4d19908ff285dbed76 | 4,112 | ex | Elixir | lib/demo_web/live/component/modal_live.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 21 | 2019-12-15T19:14:56.000Z | 2022-02-07T16:04:30.000Z | lib/demo_web/live/component/modal_live.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 4 | 2020-02-06T01:05:28.000Z | 2020-09-07T19:08:45.000Z | lib/demo_web/live/component/modal_live.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 6 | 2019-12-15T19:15:02.000Z | 2021-09-16T20:35:53.000Z | defmodule DemoWeb.LiveComponent.ModalLive do
@moduledoc """
This is a general modal component with title, body text, and two buttons.
A required action string and optional parameter are provided for each
button when the modal is initialized. These will be returned to the caller
when the corresponding button ... | 28.358621 | 94 | 0.490516 |
33b30a97e31b888b9edfc0e119adc8bd4ead32ec | 513 | ex | Elixir | lib/rill/message_store/ecto/postgres/database/serialize.ex | Carburetor/rill | 6ba477373cff28f56fbead9a316166d994da67d3 | [
"MIT"
] | null | null | null | lib/rill/message_store/ecto/postgres/database/serialize.ex | Carburetor/rill | 6ba477373cff28f56fbead9a316166d994da67d3 | [
"MIT"
] | null | null | null | lib/rill/message_store/ecto/postgres/database/serialize.ex | Carburetor/rill | 6ba477373cff28f56fbead9a316166d994da67d3 | [
"MIT"
] | null | null | null | defmodule Rill.MessageStore.Ecto.Postgres.Database.Serialize do
alias Rill.MessageStore.MessageData.Transform.Map.JSON
@spec data(data :: map() | nil) :: String.t()
def data(%{} = data) when data == %{}, do: data(nil)
def data(nil), do: nil
def data(%{} = data), do: JSON.write(data)
@spec metadata(metadat... | 36.642857 | 70 | 0.653021 |
33b3324a03760cfd7f71d3853ad6edc2ccba51a4 | 1,222 | exs | Elixir | test/lib/crawler/http_test.exs | Gauthamiv/crawler | 394b09d4e8f4c15abefc6295c1b3e72fb82d5416 | [
"MIT"
] | 1 | 2018-08-15T13:26:19.000Z | 2018-08-15T13:26:19.000Z | test/lib/crawler/http_test.exs | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | null | null | null | test/lib/crawler/http_test.exs | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | null | null | null | defmodule Crawler.HTTPTest do
use Crawler.TestCase, async: true
alias Crawler.HTTP
doctest HTTP
test "default user agent", %{bypass: bypass, url: url} do
Agent.start_link(fn -> "" end, name: HTTP.DefaultUA)
Bypass.expect_once bypass, "GET", "/http/default_ua", fn (conn) ->
{_, ua} = Enum.find(... | 26 | 78 | 0.603928 |
33b33baea4b87cad6e1563a99e25e7699f03e695 | 307 | ex | Elixir | lib/repg2/application.ex | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | lib/repg2/application.ex | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | lib/repg2/application.ex | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | defmodule RePG2.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(RePG2.Worker, [])
]
opts = [strategy: :one_for_one, name: RePG2.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 18.058824 | 59 | 0.680782 |
33b33bf73c3bdfe4172747b1476fff04951be932 | 3,817 | ex | Elixir | lib/engine/helper/helper.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | 7 | 2019-04-13T01:11:18.000Z | 2020-08-11T08:11:03.000Z | lib/engine/helper/helper.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | null | null | null | lib/engine/helper/helper.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | null | null | null | defmodule OverDB.Engine.Helper do
@spec tell_workers(list, atom) :: nil
def tell_workers([{pid, ref, send_cast?} | ids], msg) do
send_cast?(send_cast?, pid, msg, ref)
tell_workers(ids, msg)
end
@spec tell_workers([], atom) :: nil
def tell_workers([], _msg) do
nil
end
@spec tell_workers(lis... | 25.111842 | 108 | 0.651559 |
33b37527e116245637c5bc4bf72d7aa8084392ee | 8,544 | ex | Elixir | lib/phoenix/live_dashboard/pages/home_page.ex | vegg89/phoenix_live_dashboard | bedfa909fe5ba9f42723a6e29d7f4dcc98c86488 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/home_page.ex | vegg89/phoenix_live_dashboard | bedfa909fe5ba9f42723a6e29d7f4dcc98c86488 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/home_page.ex | vegg89/phoenix_live_dashboard | bedfa909fe5ba9f42723a6e29d7f4dcc98c86488 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.HomePage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder
alias Phoenix.LiveDashboard.{
SystemInfo,
CardUsageComponent,
ColorBarComponent,
ColorBarLegendComponent
}
@temporary_assigns [system_info: nil, system_usage: nil]
@versions_sections [
{... | 34.731707 | 209 | 0.552786 |
33b385195338b9a2128ede59e1294df1b4dc5740 | 4,772 | ex | Elixir | lib/pigeon/apns/config.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 545 | 2015-09-06T15:50:32.000Z | 2022-03-21T08:21:11.000Z | lib/pigeon/apns/config.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 178 | 2016-01-14T22:21:20.000Z | 2022-02-18T22:34:30.000Z | lib/pigeon/apns/config.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 124 | 2016-01-17T11:30:16.000Z | 2022-02-28T16:59:41.000Z | defmodule Pigeon.APNS.Config do
@moduledoc false
defstruct cert: nil,
key: nil,
port: 443,
ping_period: 600_000,
uri: nil
@typedoc ~S"""
Certificate APNS configuration struct
This struct should not be set directly. Instead use `new/1`
with `t:config_opts/0`... | 28.070588 | 97 | 0.615046 |
33b399aa25788b249b0871893e313ebed3fdad9c | 1,097 | exs | Elixir | examples/ecto_poll_queue/cockroachdb/priv/repo/migrations/20180408023001_create_photos_and_users.exs | rodrigues/honeydew | 05777189f30b3b13428027ce75bdecf6d7b760db | [
"MIT"
] | null | null | null | examples/ecto_poll_queue/cockroachdb/priv/repo/migrations/20180408023001_create_photos_and_users.exs | rodrigues/honeydew | 05777189f30b3b13428027ce75bdecf6d7b760db | [
"MIT"
] | null | null | null | examples/ecto_poll_queue/cockroachdb/priv/repo/migrations/20180408023001_create_photos_and_users.exs | rodrigues/honeydew | 05777189f30b3b13428027ce75bdecf6d7b760db | [
"MIT"
] | null | null | null | defmodule EctoPollQueueExample.Repo.Migrations.CreatePhotosAndUsers do
use Ecto.Migration
import Honeydew.EctoPollQueue.Migration
import EctoPollQueueExample.User, only: [notify_queue: 0]
import EctoPollQueueExample.Photo, only: [classify_queue: 0]
alias Honeydew.EctoSource.ErlangTerm
def change do
cre... | 30.472222 | 79 | 0.701003 |
33b3e608bc1362582cb6c177e89155d4bcb2f81d | 2,499 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_conversation_turn_user_input.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_conversation_turn_user_input.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_conversation_turn_user_input.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... | 40.967213 | 208 | 0.742697 |
33b45652f89f7d7677f623a116cf45f3cf8185af | 1,869 | ex | Elixir | apps/providers/lib/helpers/provisioner.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/providers/lib/helpers/provisioner.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/providers/lib/helpers/provisioner.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Providers.Helpers.Provisioner do
@moduledoc """
Recursively traverses a map, list, or struct and executes any providers found. Raises exceptions from providers as `ProviderNotFound`
"""
alias Provider.Exceptions
require Logger
def provision(%module{} = struct) do
destructed_struct = Map.from_... | 32.789474 | 135 | 0.701445 |
33b45906d4d0f6e2c0ebcefe6dacf18584577ed6 | 3,885 | ex | Elixir | lib/kirby/context/documento_responsaveis.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | lib/kirby/context/documento_responsaveis.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | lib/kirby/context/documento_responsaveis.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | defmodule Kirby.Context.DocumentoResponsaveis do
@moduledoc """
Public Kirby DocumentoResponsavel API
"""
import Ecto.Query
alias Kirby.Entities.DocumentoResponsavel
alias Kirby.Repo
@doc """
Returns the list of `DocumentoResponsavel`.
## Examples
iex> __MODULE__.list()
[%DocumentoResp... | 23.689024 | 98 | 0.636551 |
33b46086c2f8986bd18b7e46d5ca482db984d6d9 | 706 | ex | Elixir | apps/web/lib/web/controller/auth_controller.ex | felipelincoln/branchpage | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 49 | 2021-06-06T05:40:30.000Z | 2021-08-23T04:50:46.000Z | apps/web/lib/web/controller/auth_controller.ex | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 40 | 2021-01-09T16:50:50.000Z | 2021-10-01T16:27:35.000Z | apps/web/lib/web/controller/auth_controller.ex | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 5 | 2021-02-20T12:58:39.000Z | 2022-02-01T02:23:23.000Z | defmodule Web.AuthController do
use Phoenix.Controller
alias Publishing.Manage
alias Ueberauth.Strategy.Helpers
import Plug.Conn
plug Ueberauth
def request(conn, _params) do
render(conn, callback_url: Helpers.callback_url(conn))
end
def callback(%{assigns: %{ueberauth_auth: data}} = conn, %{"pr... | 22.0625 | 88 | 0.684136 |
33b48c86f289a2a32285a1b4332ee9f35108c177 | 3,072 | ex | Elixir | apps/mishka_content/lib/general/comment_like.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_content/lib/general/comment_like.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_content/lib/general/comment_like.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | defmodule MishkaContent.General.CommentLike do
alias MishkaDatabase.Schema.MishkaContent.CommentLike
import Ecto.Query
use MishkaDeveloperTools.DB.CRUD,
module: CommentLike,
error_atom: :comment_like,
repo: MishkaDatabase.Repo
@type data_uuid() :: Ecto.UUID.t
@type record_inp... | 32.680851 | 97 | 0.693685 |
33b4935a9b32c1737bc9b4c8f861671efaeb72fc | 29,112 | exs | Elixir | test/trento/application/integration/discovery/policies/cluster_policy_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | test/trento/application/integration/discovery/policies/cluster_policy_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | test/trento/application/integration/discovery/policies/cluster_policy_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Integration.Discovery.ClusterPolicyTest do
use ExUnit.Case
use Trento.DataCase
import Trento.Integration.DiscoveryFixturesHelper
alias Trento.Integration.Discovery.ClusterPolicy
alias Trento.Domain.Commands.RegisterClusterHost
alias Trento.Domain.{
ClusterNode,
ClusterResource,
... | 41.767575 | 116 | 0.381423 |
33b493e19ec6d50d901690d879d5e7ea4e7321d9 | 5,176 | ex | Elixir | lib/ex_ihdl_subscription_base.ex | Hutchison-Technologies/ex_ihdl_subscription_base | 1c8609aefd0d71e2b24805ab936c80a605b3f88e | [
"MIT"
] | null | null | null | lib/ex_ihdl_subscription_base.ex | Hutchison-Technologies/ex_ihdl_subscription_base | 1c8609aefd0d71e2b24805ab936c80a605b3f88e | [
"MIT"
] | null | null | null | lib/ex_ihdl_subscription_base.ex | Hutchison-Technologies/ex_ihdl_subscription_base | 1c8609aefd0d71e2b24805ab936c80a605b3f88e | [
"MIT"
] | null | null | null | defmodule ExIhdlSubscriptionBase do
@moduledoc """
Thin implementation of the ExGcloudPubsubPuller.PullController behaviour.
To make use of this module, `use` it, and implement the callbacks.
## Examples
defmodule MySub do
use ExIhdlSubscriptionBase
@impl true
def moap_module()... | 28.596685 | 130 | 0.619977 |
33b4cd62137443719a1ff599ff3e3d3fdaeb4d95 | 1,515 | ex | Elixir | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/text_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/text_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/text_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.3 | 82 | 0.716832 |
33b4e4ef0d28cd9c38045703acd89db70a08bb3b | 12,641 | ex | Elixir | lib/trento/application/integration/discovery/policies/cluster_policy.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/discovery/policies/cluster_policy.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/discovery/policies/cluster_policy.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Integration.Discovery.ClusterPolicy do
@moduledoc """
This module contains functions to trasnform cluster related integration events into commands.
"""
alias Trento.Domain.Commands.RegisterClusterHost
@uuid_namespace Application.compile_env!(:trento, :uuid_namespace)
def handle(%{
... | 30.026128 | 104 | 0.606123 |
33b5108d34250b9420c04cd0b4d1df35e7638198 | 1,828 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_async_annotate_file_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_async_annotate_file_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_async_annotate_file_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.153846 | 183 | 0.771882 |
33b531f88a82cff173c4e74433008e9f4b8e742a | 3,392 | exs | Elixir | test/run_workflows/conditional_branched_workflows/conditional_branched_workflow_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | test/run_workflows/conditional_branched_workflows/conditional_branched_workflow_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | test/run_workflows/conditional_branched_workflows/conditional_branched_workflow_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.RunWorkflows.ConditionalBranchedWorkflowTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
alias StepFlow.Step
doctest StepFlow
setup do
# Explicitly get a connection before each test
:ok = Sandbox.checkout(StepFlow.Repo)
# Setting the shared mode
San... | 26.294574 | 76 | 0.572229 |
33b53618980a6078c64ffa6ee4b0303f950e94dd | 2,111 | ex | Elixir | implementations/elixir/ockam/ockam_hub/lib/hub/service/provider/routing.ex | calebbourg/ockam | 4a1803400909f85e14ec0c35cdfcc60c0a42b5c9 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/lib/hub/service/provider/routing.ex | calebbourg/ockam | 4a1803400909f85e14ec0c35cdfcc60c0a42b5c9 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/lib/hub/service/provider/routing.ex | calebbourg/ockam | 4a1803400909f85e14ec0c35cdfcc60c0a42b5c9 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Hub.Service.Provider.Routing do
@moduledoc """
Implementation for Ockam.Hub.Service.Provider
providing basic ockam routing services, :echo and :forwarding
"""
@behaviour Ockam.Hub.Service.Provider
alias Ockam.Hub.Service.Echo, as: EchoService
alias Ockam.Hub.Service.Forwarding, as: Forwa... | 30.594203 | 96 | 0.731881 |
33b5565162631dde13ff0d090b62814dfd8b464e | 14 | ex | Elixir | testData/org/elixir_lang/parser_definition/atom_parsing_test_case/DoubleQuotedInterpolation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/atom_parsing_test_case/DoubleQuotedInterpolation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/atom_parsing_test_case/DoubleQuotedInterpolation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | :"foo#{"bar"}" | 14 | 14 | 0.428571 |
33b559bc26b1c4e58e82f367a9802ccba674ca2a | 1,236 | exs | Elixir | config/config.exs | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 19 | 2018-05-10T09:33:25.000Z | 2022-01-25T11:57:33.000Z | config/config.exs | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 23 | 2019-11-28T07:51:52.000Z | 2022-03-09T08:33:42.000Z | config/config.exs | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 9 | 2019-01-30T03:17:12.000Z | 2021-12-14T02:23:32.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 32.526316 | 73 | 0.753236 |
33b562f4b1a97556d743b4b313f19764a1772806 | 2,501 | exs | Elixir | test/nerves/system/linter/linter_test.exs | nerves-project/nerves_system_linter | b1f4f7e7e5b522dffeb928f6c0fdccd548e20c6f | [
"Apache-2.0"
] | 4 | 2017-10-20T04:06:33.000Z | 2019-01-30T10:34:42.000Z | test/nerves/system/linter/linter_test.exs | nerves-project/nerves_system_linter | b1f4f7e7e5b522dffeb928f6c0fdccd548e20c6f | [
"Apache-2.0"
] | 7 | 2017-10-24T12:40:20.000Z | 2018-01-25T16:06:17.000Z | test/nerves/system/linter/linter_test.exs | nerves-project/nerves_system_linter | b1f4f7e7e5b522dffeb928f6c0fdccd548e20c6f | [
"Apache-2.0"
] | 2 | 2017-10-19T00:36:12.000Z | 2018-08-23T23:12:18.000Z | defmodule Nerves.System.LinterTest do
use ExUnit.Case
alias Nerves.System.Linter
alias Nerves.System.Defconfig
defmodule SuccessRule do
use Nerves.System.Linter.Rule
ensure_package("BR2_PACKAGE_NERVES_CONFIG")
# ensure_value_match("PACKAGE_NAME", <<"nerves_system_", rest :: binary>>)
evaluate()... | 28.747126 | 84 | 0.702119 |
33b575159e3eaed091f813a38afd35c0ef79f06f | 4,679 | exs | Elixir | test/cloudevents/event_test.exs | mikehelmick/sdk-elixir | 90eff352bc3823868285054cf13d132a6f10430f | [
"Apache-2.0"
] | 1 | 2020-11-09T21:33:11.000Z | 2020-11-09T21:33:11.000Z | test/cloudevents/event_test.exs | mikehelmick/sdk-elixir | 90eff352bc3823868285054cf13d132a6f10430f | [
"Apache-2.0"
] | null | null | null | test/cloudevents/event_test.exs | mikehelmick/sdk-elixir | 90eff352bc3823868285054cf13d132a6f10430f | [
"Apache-2.0"
] | null | null | null | defmodule CloudEvents.EventTest do
use ExUnit.Case, async: true
test "missing id" do
event = %CloudEvents.Event{specversion: "1.0", source: "foo", type: "bar"}
{:error, [message]} = CloudEvents.Event.validate(event)
assert message == "CloudEvents attribute `id` must be present"
end
test "invalid i... | 43.728972 | 107 | 0.673221 |
33b5ade899e9aacc6060dca3a85162d54206ce97 | 386 | ex | Elixir | web/views/error_view.ex | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | 2 | 2015-08-04T02:04:56.000Z | 2016-06-18T00:43:10.000Z | web/views/error_view.ex | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | null | null | null | web/views/error_view.ex | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | null | null | null | defmodule MyApp_7191136.ErrorView do
use MyApp_7191136.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_foun... | 21.444444 | 47 | 0.707254 |
33b6145b78e489dfa219e014c766485fdd36d812 | 171,303 | ex | Elixir | lib/elixir/lib/kernel.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | # Use elixir_bootstrap module to be able to bootstrap Kernel.
# The bootstrap module provides simpler implementations of the
# functions removed, simple enough to bootstrap.
import Kernel,
except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2, defmacro: 1, defmacro: 2, defmacrop: 2]
import :elixir_bootstrap
defmodul... | 27.053538 | 116 | 0.634782 |
33b62a4408576677a45d42ca8bf90593871974eb | 356 | ex | Elixir | apps/tai/lib/tai/events/connected_stats.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/events/connected_stats.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/events/connected_stats.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Events.ConnectedStats do
@type t :: %Tai.Events.ConnectedStats{
venue_id: atom,
received_at: DateTime.t(),
bots: number,
users: number
}
@enforce_keys [
:venue_id,
:received_at,
:bots,
:users
]
defstruct [
:venue_id,
:receive... | 16.181818 | 40 | 0.547753 |
33b6462f130ab0f991f5b09a11cbc42d8bc1ad3f | 355 | exs | Elixir | priv/repo/seeds.exs | exacs/liqen_core | bba1727ff3b3061ad5a0ecb668eb3038070836a4 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | exacs/liqen_core | bba1727ff3b3061ad5a0ecb668eb3038070836a4 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | exacs/liqen_core | bba1727ff3b3061ad5a0ecb668eb3038070836a4 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# LiqenCore.Repo.insert!(%LiqenCore.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 29.583333 | 61 | 0.709859 |
33b664de6fd2febc817a90d1d972f02319f88de3 | 1,079 | ex | Elixir | test/support/channel_case.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | defmodule RefWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts with ... | 29.162162 | 84 | 0.732159 |
33b67fe00d1f3ac334a237b40567e7f7e14e1f48 | 3,366 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/web_detection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/web_detection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/web_detection.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... | 54.290323 | 292 | 0.736185 |
33b6a26f79f13827af409904500bf93793c91afc | 9,450 | exs | Elixir | lib/logger/test/logger_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule LoggerTest do
use Logger.Case
require Logger
setup_all do
Logger.configure_backend(:console, metadata: [:application, :module])
on_exit(fn ->
Logger.configure_backend(:console, metadata: [])
end)
end
defp msg_with_meta(text) do
msg("module=LoggerTest #{text}")
end
test "... | 27.631579 | 88 | 0.628571 |
33b6b6dbe26549b597936ce4608b63830828e529 | 3,799 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/api/text.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/api/text.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/api/text.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... | 43.170455 | 196 | 0.659121 |
33b7332b2b82cfd930ea85127fe9696f57a1ea74 | 1,082 | ex | Elixir | lib/elixirdo/instance/monad_trans/state/monad_writer.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | lib/elixirdo/instance/monad_trans/state/monad_writer.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | 5 | 2018-07-20T12:36:25.000Z | 2018-08-01T04:55:46.000Z | lib/elixirdo/instance/monad_trans/state/monad_writer.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | defmodule Elixirdo.Instance.MonadTrans.State.MonadWriter do
use Elixirdo.Base
use Elixirdo.Expand
use Elixirdo.Typeclass.Monad
use Elixirdo.Typeclass.Monad.Writer, import_monad_writer: true
alias Elixirdo.Instance.MonadTrans.State, as: StateT
import_type StateT.state_t()
definstance monad_writer(state_... | 22.541667 | 64 | 0.566543 |
33b77c606b707651c1bf851670776dc08110fcc6 | 751 | ex | Elixir | lib/absinthe/language/object_field.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/language/object_field.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/language/object_field.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Language.ObjectField do
@moduledoc false
alias Absinthe.{Blueprint, Language}
defstruct name: nil,
value: nil,
loc: %{start_line: nil}
@type t :: %__MODULE__{
name: String.t(),
value: Language.value_t(),
loc: Language.loc_t()
}
... | 25.896552 | 98 | 0.633822 |
33b78e71de10c953b7a5c61ee3c610cbbd536704 | 144 | ex | Elixir | lib/tribevibe_web/controllers/page_controller.ex | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | lib/tribevibe_web/controllers/page_controller.ex | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | lib/tribevibe_web/controllers/page_controller.ex | futurice/tribevibe-server | d51fa08528e6391ee50c98adf8696ca35af2c53d | [
"MIT"
] | null | null | null | defmodule TribevibeWeb.PageController do
use TribevibeWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18 | 40 | 0.75 |
33b7999c4b2145b0bd7dce1a8dd3d9c1170d1090 | 570 | ex | Elixir | test/helpers/authentication_helpers.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 30 | 2018-06-16T00:41:59.000Z | 2021-03-05T08:39:02.000Z | test/helpers/authentication_helpers.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 221 | 2018-01-15T20:33:13.000Z | 2022-02-16T00:53:35.000Z | test/helpers/authentication_helpers.ex | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 5 | 2018-02-20T17:25:19.000Z | 2018-12-29T00:09:30.000Z | defmodule Chess.AuthenticationHelpers do
@moduledoc false
use Wallaby.DSL
import Wallaby.Query
import Chess.Factory
def create_user_and_login(session) do
insert(:user, %{
name: "Link",
email: "link@hyrule.com",
password: "ilovezelda"
})
session
|> login("link@hyrule.com"... | 19.655172 | 54 | 0.64386 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.