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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac71d0ec51d510ecf6803c33914d2b34c9656edc | 2,101 | ex | Elixir | lib/changelog/schema/news/news_ad.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog/schema/news/news_ad.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | null | null | null | lib/changelog/schema/news/news_ad.ex | yanokwa/changelog.com | 88093bada9ff294159246b8200b3121cf41666f7 | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.NewsAd do
use Changelog.Schema
alias Changelog.{Files, NewsIssueAd, NewsSponsorship, Regexp}
schema "news_ads" do
field :url, :string
field :headline, :string
field :story, :string
field :image, Files.Image.Type
field :active, :boolean, default: true
field :newslette... | 27.644737 | 107 | 0.681104 |
ac71d2346381e75c34d162c89e84c4099939d1b2 | 7,539 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_operation.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_operation.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_operation.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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... | 66.716814 | 815 | 0.743998 |
ac71d60bdc3053fae4c78151aebfb7ac2758108d | 25,489 | exs | Elixir | test/integration_test.exs | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 11 | 2021-02-24T09:21:11.000Z | 2021-12-26T03:51:25.000Z | test/integration_test.exs | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 5 | 2021-03-18T14:15:37.000Z | 2022-03-02T09:53:42.000Z | test/integration_test.exs | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 6 | 2021-02-24T09:21:01.000Z | 2021-11-16T08:45:03.000Z | defmodule Oasis.IntegrationTest do
use ExUnit.Case, async: false
setup_all do
{:ok, _} = Oasis.HTTPServer.start(4002)
{:ok, url: "http://localhost:4002"}
end
test "hello", %{url: url} do
start_supervised!({Finch, name: TestFinch})
url = "#{url}/hello"
assert {:ok, response} = Finch.build... | 33.67107 | 126 | 0.619718 |
ac71dccd03f11bab5464b6a5ddb92090bed0ad66 | 2,026 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/batch_create_bitbucket_server_connected_repositories_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/batch_create_bitbucket_server_connected_repositories_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/batch_create_bitbucket_server_connected_repositories_response.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... | 36.178571 | 194 | 0.778381 |
ac722123f84344b08163ef3352d01d5f50b43e73 | 82,859 | ex | Elixir | lib/ecto/changeset.ex | ohta-rh/ecto | d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | ohta-rh/ecto | d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | ohta-rh/ecto | d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating structs.
There is an example of working with changesets in the introductory
documentation in the `Ecto` module. The functions `cast/3` and
`change/2` are the usual en... | 37.731785 | 169 | 0.66058 |
ac72667177bd4b7bcf932799a6859ed6ab710bc1 | 249 | ex | Elixir | lib/twivia.ex | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | lib/twivia.ex | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | lib/twivia.ex | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | defmodule Twivia do
@moduledoc """
Twivia 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 |
ac7279c2fbceefb0ee93e0bf73eb857ff9b942dd | 724 | ex | Elixir | lib/soccer_table_web/gettext.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-05-09T02:09:21.000Z | 2020-05-09T02:09:21.000Z | lib/soccer_table_web/gettext.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | null | null | null | lib/soccer_table_web/gettext.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-07-07T21:38:33.000Z | 2020-07-07T21:38:33.000Z | defmodule SoccerTableWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import SoccerTableWeb.Gettext
# Simple translation
gettext("H... | 28.96 | 72 | 0.683702 |
ac727f18530575dfd85d2dcbb9446d69a290eb93 | 5,837 | exs | Elixir | apps/discovery_api/test/unit/discovery_api/data/dataset_update_event_handler_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/discovery_api/test/unit/discovery_api/data/dataset_update_event_handler_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/discovery_api/test/unit/discovery_api/data/dataset_update_event_handler_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApi.Data.DatasetUpdateEventHandlerTest do
use ExUnit.Case
use Placebo
alias DiscoveryApi.Data.SystemNameCache
alias DiscoveryApiWeb.Plugs.ResponseCache
alias DiscoveryApi.Schemas.Organizations
alias DiscoveryApi.Search.Elasticsearch
import SmartCity.Event, only: [dataset_update: 0, da... | 40.255172 | 138 | 0.694021 |
ac72923770eb764edb41f898cd32db83d2eefdd4 | 728 | exs | Elixir | nerves.exs | strobe-audio/nerves_toolchain_arm_unknown_linux_gnueabihf | 166323f31ba00e6c15220aefc9d68d36d095eee0 | [
"Apache-2.0"
] | null | null | null | nerves.exs | strobe-audio/nerves_toolchain_arm_unknown_linux_gnueabihf | 166323f31ba00e6c15220aefc9d68d36d095eee0 | [
"Apache-2.0"
] | null | null | null | nerves.exs | strobe-audio/nerves_toolchain_arm_unknown_linux_gnueabihf | 166323f31ba00e6c15220aefc9d68d36d095eee0 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
app = :nerves_toolchain_arm_unknown_linux_gnueabihf
# github replaces any '+' in a filename so we proactively replace them with '_'
version_filename = version |> String.replace("+", "_")
config app, :nerves_env,
type: :tool... | 28 | 198 | 0.728022 |
ac729ecf3376e796454bbb56211b7e7db9d160f4 | 2,537 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/representative_info_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/representative_info_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/representative_info_response.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... | 43 | 170 | 0.757194 |
ac72bdacd377b69272465ef5ce31aca3ea629b81 | 6,415 | ex | Elixir | lib/phoenix/router/route.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | lib/phoenix/router/route.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | lib/phoenix/router/route.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule Phoenix.Router.Route do
# This module defines the Route struct that is used
# throughout Phoenix's router. This struct is private
# as it contains internal routing information.
@moduledoc false
alias Phoenix.Router.Route
@doc """
The `Phoenix.Router.Route` struct. It stores:
* `:verb` - t... | 34.675676 | 146 | 0.652221 |
ac72c9a4eb855cae1cfa0f8caa7fc1cc0db1041e | 1,478 | ex | Elixir | lib/thumbnail.ex | lsimoneau/xthumb | 902d94f99d77e31f6f6278794e9a2f7422294b37 | [
"Apache-2.0"
] | 4 | 2015-02-11T06:26:00.000Z | 2018-07-17T10:19:19.000Z | lib/thumbnail.ex | lsimoneau/xthumb | 902d94f99d77e31f6f6278794e9a2f7422294b37 | [
"Apache-2.0"
] | null | null | null | lib/thumbnail.ex | lsimoneau/xthumb | 902d94f99d77e31f6f6278794e9a2f7422294b37 | [
"Apache-2.0"
] | null | null | null | defmodule Thumbnail do
use Application
@doc """
Takes a source image `src`, a target path `dest`, a base name `name` to be used for generated files, and list of tuples `sizes` representing named thumbnails to generate.
Thumbnail.process(
"./foo.png",
"./destination',
"foo",
... | 28.980392 | 172 | 0.640054 |
ac72ef215c3d0dcd7505b2798757ae19f93d20bb | 801 | exs | Elixir | apps/artemis_web/test/artemis_web/browser/home_page_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis_web/test/artemis_web/browser/home_page_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 3 | 2019-03-05T23:55:09.000Z | 2019-05-29T13:46:34.000Z | apps/artemis_web/test/artemis_web/browser/home_page_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule ArtemisWeb.HomePageTest do
use ArtemisWeb.ConnCase
use ExUnit.Case
use Hound.Helpers
import ArtemisWeb.BrowserHelpers
import ArtemisWeb.Router.Helpers
@moduletag :browser
@url home_url(ArtemisWeb.Endpoint, :index)
hound_session()
describe "authentication" do
test "when unauthenticate... | 18.627907 | 56 | 0.662921 |
ac7349c5f53e37474514f0385a676e8371915399 | 71 | exs | Elixir | test/test_helper.exs | lamesensei/carpark-sg | 368106f6362e9df515b0e49717e3b5d6d88cdc71 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | lamesensei/carpark-sg | 368106f6362e9df515b0e49717e3b5d6d88cdc71 | [
"Apache-2.0"
] | 1 | 2021-02-03T07:49:54.000Z | 2021-02-03T07:49:54.000Z | test/test_helper.exs | lamesensei/carpark-sg | 368106f6362e9df515b0e49717e3b5d6d88cdc71 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(CarparkSg.Repo, :manual)
| 23.666667 | 55 | 0.788732 |
ac73553902000d5ec89564edb5138f00b579d257 | 12,610 | ex | Elixir | lib/phoenix/live_dashboard/system_info.ex | vorce/phoenix_live_dashboard | 48133a7e2dd5c547c002778caa67d78922912759 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/system_info.ex | vorce/phoenix_live_dashboard | 48133a7e2dd5c547c002778caa67d78922912759 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/system_info.ex | vorce/phoenix_live_dashboard | 48133a7e2dd5c547c002778caa67d78922912759 | [
"MIT"
] | 1 | 2021-02-04T03:06:20.000Z | 2021-02-04T03:06:20.000Z | defmodule Phoenix.LiveDashboard.SystemInfo do
# Helpers for fetching and formatting system info.
@moduledoc false
def ensure_loaded(node) do
case :rpc.call(node, :code, :ensure_loaded, [__MODULE__]) do
{:module, _} -> maybe_replace(node, fetch_capabilities(node))
{:error, :nofile} -> load(node)
... | 28.084633 | 97 | 0.631086 |
ac736d6e0e427abfcb2498a66f3395ceff3e2884 | 531 | ex | Elixir | lib/strto_web/views/error_view.ex | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | lib/strto_web/views/error_view.ex | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | lib/strto_web/views/error_view.ex | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | defmodule StrtoWeb.ErrorView do
use StrtoWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from
#... | 31.235294 | 83 | 0.717514 |
ac738b605ca1482aa2e2180ceb74a94934933159 | 65 | ex | Elixir | lib/chirper_web/views/session_view.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 2 | 2019-10-10T11:57:29.000Z | 2019-12-17T18:04:10.000Z | lib/chirper_web/views/session_view.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 86 | 2019-04-27T16:18:58.000Z | 2021-05-28T23:13:36.000Z | lib/chirper_web/views/session_view.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 1 | 2020-07-16T04:52:47.000Z | 2020-07-16T04:52:47.000Z | defmodule ChirperWeb.SessionView do
use ChirperWeb, :view
end
| 13 | 35 | 0.8 |
ac738ef88c6e1fb4640903044fa0d6af16bee07e | 306 | exs | Elixir | assignment_3/priv/repo/migrations/20190706051727_create_customer_addresses.exs | woutdp/assignment-vrify | c022117c87a2fff63f87a594848ecd58738567a0 | [
"MIT"
] | null | null | null | assignment_3/priv/repo/migrations/20190706051727_create_customer_addresses.exs | woutdp/assignment-vrify | c022117c87a2fff63f87a594848ecd58738567a0 | [
"MIT"
] | null | null | null | assignment_3/priv/repo/migrations/20190706051727_create_customer_addresses.exs | woutdp/assignment-vrify | c022117c87a2fff63f87a594848ecd58738567a0 | [
"MIT"
] | null | null | null | defmodule VRIFY.Repo.Migrations.CreateCustomerAddresses do
use Ecto.Migration
def change do
create table(:customer_addresses) do
add :customer_id, :integer
add :street_address, :string
add :postal_code, :integer
add :country, :string
timestamps()
end
end
end
| 19.125 | 58 | 0.689542 |
ac73b20c13ac5288040670939dab5f1f4468ce95 | 2,899 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/sponsor_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/sponsor_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/sponsor_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 42.632353 | 174 | 0.697482 |
ac73ce02ca496f7fb38415f9e47b167aedb08f91 | 5,572 | exs | Elixir | test/absinthe/phase/execution/non_null_test.exs | ymtszw/absinthe | cc9cf2dcde981b6a49fdc0ea20f60f9d6e9aa9fd | [
"MIT"
] | null | null | null | test/absinthe/phase/execution/non_null_test.exs | ymtszw/absinthe | cc9cf2dcde981b6a49fdc0ea20f60f9d6e9aa9fd | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | test/absinthe/phase/execution/non_null_test.exs | ymtszw/absinthe | cc9cf2dcde981b6a49fdc0ea20f60f9d6e9aa9fd | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Execution.NonNullTest do
use Absinthe.Case, async: true
defmodule Schema do
use Absinthe.Schema
defp thing_resolver(_, %{make_null: make_null}, _) do
if make_null do
{:ok, nil}
else
{:ok, %{}}
end
end
defp thing_resolver(_, _, _)... | 24.331878 | 102 | 0.553841 |
ac73e336723d9f032b99f85f131735ce93336c2c | 3,110 | exs | Elixir | day-2/part1.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | 1 | 2019-05-14T04:42:31.000Z | 2019-05-14T04:42:31.000Z | day-2/part1.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | null | null | null | day-2/part1.exs | bmatcuk/adventofcode2018 | b4ca1474b4cc6bc310a5965fdf09795b410cc94c | [
"MIT"
] | null | null | null | defmodule AoC.Day2.Part1 do
@moduledoc """
--- Day 2: Inventory Management System ---
You stop falling through time, catch your breath, and check the screen on the
device. "Destination reached. Current Year: 1518. Current Location: North
Pole Utility Closet 83N10." You made it! Now, to find those anomalies.
... | 45.072464 | 96 | 0.707074 |
ac74604e46ae523405e69b6655ed07790d3ec572 | 550 | exs | Elixir | test/serum/error/posix_message_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test/serum/error/posix_message_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test/serum/error/posix_message_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | defmodule Serum.Error.POSIXMessageTest do
use ExUnit.Case, async: true
alias Serum.Error.Format
alias Serum.Error.POSIXMessage
setup_all do
message = %POSIXMessage{reason: :enoent}
{:ok, message: message}
end
describe "with text formatter" do
test "the formatted text contains the string repr... | 22 | 87 | 0.663636 |
ac7470251f1e62acfa338bc5f2c44b4e5783a0ca | 1,985 | ex | Elixir | lib/phoenix_linguist.ex | szTheory/phoenix_linguist | 28a21d89000df1127ad4118191b3e815d97f1d9f | [
"MIT"
] | 19 | 2015-03-08T23:55:00.000Z | 2019-05-14T12:47:20.000Z | lib/phoenix_linguist.ex | szTheory/phoenix_linguist | 28a21d89000df1127ad4118191b3e815d97f1d9f | [
"MIT"
] | 4 | 2015-07-03T19:33:43.000Z | 2020-02-10T12:28:17.000Z | lib/phoenix_linguist.ex | szTheory/phoenix_linguist | 28a21d89000df1127ad4118191b3e815d97f1d9f | [
"MIT"
] | 7 | 2015-05-19T06:35:26.000Z | 2019-12-18T04:50:37.000Z | defmodule PhoenixLinguist do
@moduledoc """
module that helps integrating linguist into phoenix
"""
import Plug.Conn, only: [get_req_header: 2, get_session: 2, put_session: 3]
import Phoenix.Controller, only: [endpoint_module: 1]
@doc """
get the prefered locale based on the input locale, session and a... | 22.816092 | 108 | 0.652897 |
ac74928e980e82f4ba74a6c9716f7c6872658fb2 | 8,282 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/metric_descriptor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/metric_descriptor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/metric_descriptor.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... | 66.790323 | 1,192 | 0.703574 |
ac74963fa7cb950b36623a90046c23eb25989dc1 | 1,198 | ex | Elixir | web/channels/user_socket.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | 5 | 2015-11-07T11:27:08.000Z | 2017-06-23T00:54:20.000Z | web/channels/user_socket.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | defmodule SanaServerPhoenix.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", SanaServerPhoenix.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used ... | 31.526316 | 91 | 0.708681 |
ac749ef6937c21b6ab108bb4dfd5ee383690b9a8 | 2,041 | exs | Elixir | test/lib/timber/events/http_response_event_test.exs | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | test/lib/timber/events/http_response_event_test.exs | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | test/lib/timber/events/http_response_event_test.exs | girishramnani/timber-elixir | 7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5 | [
"ISC"
] | null | null | null | defmodule Timber.Events.HTTPResponseEventTest do
use Timber.TestCase
alias Timber.Events.HTTPResponseEvent
describe "Timber.Events.HTTPResponseEvent.new/1" do
test "normalizes headers from a list" do
headers = [{"x-request-id", "value"}, {"content_type", "type"}]
result = HTTPResponseEvent.new(h... | 44.369565 | 135 | 0.682509 |
ac74ae6b196cbea5caeb8f632c16a6962501a032 | 65 | ex | Elixir | app/lib/hobby_dapp_web/views/page_view.ex | irisTa56/hobby_dapp | 5738995f4f68202aeb50df7fd23fd5c6b84ee244 | [
"MIT"
] | null | null | null | app/lib/hobby_dapp_web/views/page_view.ex | irisTa56/hobby_dapp | 5738995f4f68202aeb50df7fd23fd5c6b84ee244 | [
"MIT"
] | null | null | null | app/lib/hobby_dapp_web/views/page_view.ex | irisTa56/hobby_dapp | 5738995f4f68202aeb50df7fd23fd5c6b84ee244 | [
"MIT"
] | null | null | null | defmodule HobbyDappWeb.PageView do
use HobbyDappWeb, :view
end
| 16.25 | 34 | 0.815385 |
ac74b32a9fe69cad44240eaf088b91c92d4243b6 | 383 | ex | Elixir | lib/session/supervisor.ex | verrchu/james | 266ad1bc81afe239b962a9f8106fa695b237dcb1 | [
"MIT"
] | null | null | null | lib/session/supervisor.ex | verrchu/james | 266ad1bc81afe239b962a9f8106fa695b237dcb1 | [
"MIT"
] | null | null | null | lib/session/supervisor.ex | verrchu/james | 266ad1bc81afe239b962a9f8106fa695b237dcb1 | [
"MIT"
] | null | null | null | defmodule James.Session.Supervisor do
use DynamicSupervisor
alias James.Session
def start_link(args) do
DynamicSupervisor.start_link(__MODULE__, args, name: __MODULE__)
end
def init(_) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def start_child(chat_id) do
{:ok, _pid} = DynamicSu... | 21.277778 | 79 | 0.749347 |
ac74c13d23d07865e7e1b9e5c73b56237fd82502 | 687 | ex | Elixir | lib/sonex.ex | brousalis/sonex | 237b6e233aabb2a18a67437dbeb0126abd5316cf | [
"MIT"
] | null | null | null | lib/sonex.ex | brousalis/sonex | 237b6e233aabb2a18a67437dbeb0126abd5316cf | [
"MIT"
] | null | null | null | lib/sonex.ex | brousalis/sonex | 237b6e233aabb2a18a67437dbeb0126abd5316cf | [
"MIT"
] | null | null | null | defmodule Sonex do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Define workers and child supervisors to be supervised
# worker(Sonex... | 29.869565 | 67 | 0.691412 |
ac74c8b73e7140a955161e518c23a6441884dde8 | 1,346 | ex | Elixir | lib/slack/reminder.ex | jclem/slack_ex | e2376cea87c35d14cc31dc545ff8e99106dee28c | [
"MIT"
] | 21 | 2016-06-28T04:03:55.000Z | 2020-01-19T01:51:11.000Z | lib/slack/reminder.ex | jclem/slack_ex | e2376cea87c35d14cc31dc545ff8e99106dee28c | [
"MIT"
] | 5 | 2016-06-28T04:34:14.000Z | 2019-12-09T20:09:12.000Z | lib/slack/reminder.ex | jclem/slack_ex | e2376cea87c35d14cc31dc545ff8e99106dee28c | [
"MIT"
] | 6 | 2016-06-28T04:27:08.000Z | 2020-04-22T11:07:03.000Z | defmodule Slack.Reminder do
@moduledoc """
Functions for Reminders
"""
@base "reminders"
use Slack.Request
@doc """
Create a reminder.
https://api.slack.com/methods/reminders.add
## Examples
Slack.Reminder.add(client, text: "Walk the dog")
"""
@spec add(Slack.Client.t, Keyword.t) :: ... | 19.228571 | 67 | 0.67162 |
ac74dfb61a57746da41c6392a8e956cb060e0900 | 9,934 | exs | Elixir | exercises/custom-set/custom_set_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/custom-set/custom_set_test.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/custom-set/custom_set_test.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("custom_set.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule CustomSetTest do
use ExUnit.Case
# @tag :pending
describe "new" do
test "returns a CustomSet struct" do
assert CustomSet.new([]) == %C... | 33.560811 | 98 | 0.659352 |
ac74e034415fdf220c739779b89181600b027374 | 1,010 | exs | Elixir | config/config.exs | jbcaprell/absinthe_tutorial | 52db65e9b07e4117ec2ef44a91028a0f01e5dd8a | [
"MIT"
] | null | null | null | config/config.exs | jbcaprell/absinthe_tutorial | 52db65e9b07e4117ec2ef44a91028a0f01e5dd8a | [
"MIT"
] | null | null | null | config/config.exs | jbcaprell/absinthe_tutorial | 52db65e9b07e4117ec2ef44a91028a0f01e5dd8a | [
"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.
# General application configuration
use Mix.Config
config :blog,
ecto_repos: [Blog.Repo]
# Confi... | 31.5625 | 86 | 0.764356 |
ac74e4a8ff36111bf17b40b7df4405e029903d3f | 4,562 | ex | Elixir | lib/ex_unit/lib/ex_unit/capture_log.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 1 | 2020-02-27T22:11:53.000Z | 2020-02-27T22:11:53.000Z | lib/ex_unit/lib/ex_unit/capture_log.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/capture_log.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 1 | 2022-01-08T16:30:22.000Z | 2022-01-08T16:30:22.000Z | defmodule ExUnit.CaptureLog do
@moduledoc ~S"""
Functionality to capture logs for testing.
## Examples
defmodule AssertionTest do
use ExUnit.Case
import ExUnit.CaptureLog
require Logger
test "example" do
{result, log} =
with_log(fn ->
L... | 26.994083 | 96 | 0.606971 |
ac74ec03e59d8c89c92b2fd69164cb31124d97ba | 14,002 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/http_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/http_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/http_rule.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... | 181.844156 | 9,771 | 0.74218 |
ac74f9f91ff61bc5d2d059f4396c42a0634b9bdb | 125 | ex | Elixir | crawler_challenge/lib/crawler_challenge/repo.ex | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/lib/crawler_challenge/repo.ex | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/lib/crawler_challenge/repo.ex | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallenge.Repo do
use Ecto.Repo,
otp_app: :crawler_challenge,
adapter: Ecto.Adapters.Postgres
end
| 20.833333 | 35 | 0.768 |
ac75103a42b8e34a6406c37da1a6bcdd97b4a841 | 15,560 | ex | Elixir | lib/new_relic/harvest/collector/metric_data.ex | kianmeng/elixir_agent | 3362715cf9b69a3ec95ea4c1751c65b3c4f6b4cc | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/metric_data.ex | kianmeng/elixir_agent | 3362715cf9b69a3ec95ea4c1751c65b3c4f6b4cc | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/metric_data.ex | kianmeng/elixir_agent | 3362715cf9b69a3ec95ea4c1751c65b3c4f6b4cc | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Harvest.Collector.MetricData do
# Heper functions for generating Metrics with the correct timeslice values
@moduledoc false
alias NewRelic.Metric
def transform(:http_dispatcher, duration_s: duration_s),
do: %Metric{
name: :HttpDispatcher,
call_count: 1,
total_call_tim... | 29.525617 | 90 | 0.601478 |
ac7514d29e9352c62546fcd11eecda49ae73eacd | 194 | exs | Elixir | priv/repo/migrations/20201227210759_add_slack_channel_name_to_companies.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20201227210759_add_slack_channel_name_to_companies.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20201227210759_add_slack_channel_name_to_companies.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.AddSlackChannelNameToCompanies do
use Ecto.Migration
def change do
alter table(:companies) do
add :slack_channel_name, :string
end
end
end
| 19.4 | 67 | 0.752577 |
ac75193d8175d003bceafdd317afd55f9c7f0406 | 274 | exs | Elixir | test/starjumps_web/views/layout_view_test.exs | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | 4 | 2021-02-22T04:05:29.000Z | 2022-01-25T18:03:04.000Z | test/starjumps_web/views/layout_view_test.exs | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | null | null | null | test/starjumps_web/views/layout_view_test.exs | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | 1 | 2021-12-16T15:45:43.000Z | 2021-12-16T15:45:43.000Z | defmodule StarjumpsWeb.LayoutViewTest do
use StarjumpsWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.444444 | 65 | 0.770073 |
ac7538502b3030d99b93b648a8863412001bc77d | 706 | ex | Elixir | lib/telemetry/application.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | lib/telemetry/application.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | lib/telemetry/application.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotTelemetry.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def config do
user_defined = Application.get_all_env(:farmbot)
Keyword.merge(
[access: :read_write, type: :set, file: '/tmp/fa... | 26.148148 | 77 | 0.703966 |
ac7568222211365ba2909b1ece34d8ab1ffd19bf | 1,725 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/list_device_config_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/list_device_config_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/list_device_config_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.702128 | 230 | 0.76 |
ac75a857f8d4307c1ed2d794b16261aaf0ffd852 | 1,943 | ex | Elixir | lib/serum/file.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | lib/serum/file.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | lib/serum/file.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | defmodule Serum.File do
@moduledoc """
Defines a struct representing a file to be read or written.
## Fields
* `src`: Source path
* `dest`: Destination path
* `in_data`: Data read from a file
* `out_data`: Data to be written to a file
"""
import Serum.IOProxy, only: [put_msg: 2]
alias Serum.Resul... | 24.910256 | 88 | 0.591354 |
ac75bad9a157e9ec42a5ad33c37369aef57f18f3 | 1,272 | ex | Elixir | lib/hl7/2.5/segments/rxa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/rxa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/rxa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.RXA do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
give_sub_id_counter: nil,
administration_sub_id_counter: nil,
date_time_start_of_administration: DataTypes.Ts,
date_time_end_of_administratio... | 33.473684 | 61 | 0.73978 |
ac75c3e8f95153376ee1f5fa801ae0e32d864f2b | 979 | ex | Elixir | backend/test/support/subscription_case.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | 7 | 2020-03-27T08:26:52.000Z | 2021-08-29T09:50:31.000Z | backend/test/support/subscription_case.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | backend/test/support/subscription_case.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | defmodule CaffeWeb.SubscriptionCase do
@moduledoc """
This module defines the test case to be used by subscription tests
"""
use ExUnit.CaseTemplate
using do
quote do
use CaffeWeb.ChannelCase
use Absinthe.Phoenix.SubscriptionTest, schema: CaffeWeb.Schema
import Caffe.Factory
defp... | 26.459459 | 80 | 0.652707 |
ac75c99af6193cb9c96915870195577e615d19eb | 562 | exs | Elixir | test/farmbot_os/syscalls/send_message_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_os/test/farmbot_os/syscalls/send_message_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_os/test/farmbot_os/syscalls/send_message_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotOS.SysCalls.SendMessageTest do
use ExUnit.Case
use Mimic
setup :verify_on_exit!
alias FarmbotOS.SysCalls.SendMessage
test "send_message" do
expect(FarmbotOS.SysCalls, :get_cached_position, fn ->
[x: 1.2, y: 2.3, z: 3.4]
end)
expect(FarmbotCore.LogExecutor, :execute, 1, f... | 22.48 | 58 | 0.628114 |
ac75e251a9c7dbe7615080239378a1db4913b256 | 177 | exs | Elixir | priv/repo/migrations/20191221180801_create_used.exs | SquashConsulting/hopper | d68ac8b4749b2411959c2ba7be7cd9402a3e4b2b | [
"BSD-3-Clause"
] | 1 | 2019-12-22T16:00:11.000Z | 2019-12-22T16:00:11.000Z | priv/repo/migrations/20191221180801_create_used.exs | SquashConsulting/hopper | d68ac8b4749b2411959c2ba7be7cd9402a3e4b2b | [
"BSD-3-Clause"
] | 2 | 2021-03-10T02:31:42.000Z | 2021-05-10T22:02:29.000Z | priv/repo/migrations/20191221180801_create_used.exs | SquashConsulting/hopper | d68ac8b4749b2411959c2ba7be7cd9402a3e4b2b | [
"BSD-3-Clause"
] | null | null | null | defmodule Hopper.Repo.Migrations.CreateUsed do
import Hopper.Repo
def up do
create_collection("used", :edge)
end
def down do
drop_collection("used")
end
end
| 14.75 | 46 | 0.711864 |
ac75edf1c0597c6df819c92f8e57506c5f4737be | 2,018 | exs | Elixir | config/prod.exs | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | config/prod.exs | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | config/prod.exs | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.035714 | 66 | 0.71556 |
ac75feb917e033c34902fb4bca543223ea28ced4 | 1,231 | exs | Elixir | test/pay_nl/payment_notification_test.exs | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | 3 | 2017-10-03T12:30:57.000Z | 2020-01-06T00:23:59.000Z | test/pay_nl/payment_notification_test.exs | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | null | null | null | test/pay_nl/payment_notification_test.exs | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | 1 | 2019-02-11T11:12:17.000Z | 2019-02-11T11:12:17.000Z | defmodule PayNL.PaymentNotificationTest do
use ExUnit.Case, async: false
use ExVCR.Mock
setup_all do
ExVCR.Config.cassette_library_dir("test/vcr_cassettes")
:ok
end
@ipn %{
"action" => "pending",
"amount" => "1.000",
"domain_id" => "",
"enduser_id" => "0",
"extra1" => "testing"... | 25.122449 | 128 | 0.603574 |
ac760a301bfeaf9d2ba7455a5b42df6ac8c29774 | 16,213 | ex | Elixir | lib/ok.ex | iStefo/OK | cb98f2ee1be66e7af11d6a103470dd5f138f335b | [
"Apache-2.0"
] | null | null | null | lib/ok.ex | iStefo/OK | cb98f2ee1be66e7af11d6a103470dd5f138f335b | [
"Apache-2.0"
] | null | null | null | lib/ok.ex | iStefo/OK | cb98f2ee1be66e7af11d6a103470dd5f138f335b | [
"Apache-2.0"
] | null | null | null | defmodule OK do
@moduledoc """
The `OK` module enables clean and expressive error handling when coding with
idiomatic `:ok`/`:error` tuples. We've included many examples in the function
docs here, but you can also check out the
[README](https://github.com/CrowdHailer/OK/blob/master/README.md) for more
detai... | 27.857388 | 121 | 0.581262 |
ac76292e36f1a9ef1ebf870c4b8d826d2f99dd8a | 2,312 | ex | Elixir | lib/sparql_server/router/access_groups_support.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | lib/sparql_server/router/access_groups_support.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | lib/sparql_server/router/access_groups_support.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | defmodule SparqlServer.Router.AccessGroupSupport do
require Logger
require ALog
@moduledoc """
Provides supporting functions for working with the encoding and
decoding of access groups with respect to the connection.
"""
@doc """
Encodes hte JSON access groups in such a way that they can be placed
o... | 28.195122 | 109 | 0.674308 |
ac76430eb2eba4a67b564a799c6489fb91d1d2af | 7,470 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/files.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/files.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/files.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... | 45.272727 | 196 | 0.625435 |
ac768a6fc952cb839eae89c838811b8892b1bfc8 | 1,378 | ex | Elixir | test/support/data_case.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | test/support/data_case.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | test/support/data_case.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | defmodule Gexbot.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ... | 25.518519 | 77 | 0.67852 |
ac76e75b71fd4e035ef970f74e94d4f1126a7c01 | 5,232 | ex | Elixir | deps/jason/lib/jason.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/jason/lib/jason.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | deps/jason/lib/jason.ex | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | defmodule Jason do
@moduledoc """
A blazing fast JSON parser and generator in pure Elixir.
"""
@type escape :: :json | :unicode_safe | :html_safe | :javascript_safe
@type maps :: :naive | :strict
@type encode_opt :: {:escape, escape} | {:maps, maps}
@type keys :: :atoms | :atoms! | :strings | :copy | (... | 35.114094 | 95 | 0.66724 |
ac771644eb8ca5727e4122e9c67893f099891c7e | 1,253 | ex | Elixir | lib/advent2019_web/controllers/day12_controller.ex | neslinesli93/advent-of-code-2019-phoenix-react | d7523d0bda5581990c21e8113e5c78c4f0ff921a | [
"MIT"
] | null | null | null | lib/advent2019_web/controllers/day12_controller.ex | neslinesli93/advent-of-code-2019-phoenix-react | d7523d0bda5581990c21e8113e5c78c4f0ff921a | [
"MIT"
] | null | null | null | lib/advent2019_web/controllers/day12_controller.ex | neslinesli93/advent-of-code-2019-phoenix-react | d7523d0bda5581990c21e8113e5c78c4f0ff921a | [
"MIT"
] | null | null | null | defmodule Advent2019Web.Day12Controller do
use Advent2019Web, :controller
@doc """
Calculate the acceleration according to the instruction.
The accelerations given to v is +/- 1 to tend to ov, or 0 when the values are
identical.
"""
def acc_value(v, ov) do
if v == ov do
0
else
if v > ... | 28.477273 | 100 | 0.523543 |
ac7720284705e43b59e4c58707d8e7e376c14cae | 6,729 | ex | Elixir | lib/que/worker.ex | gmartsenkov/que | e69e73e9c00266b0f447c712780ea010276cec4d | [
"MIT"
] | 645 | 2017-01-07T21:34:26.000Z | 2022-03-16T06:58:04.000Z | lib/que/worker.ex | gmartsenkov/que | e69e73e9c00266b0f447c712780ea010276cec4d | [
"MIT"
] | 19 | 2017-05-03T14:48:14.000Z | 2021-05-30T19:33:05.000Z | lib/que/worker.ex | gmartsenkov/que | e69e73e9c00266b0f447c712780ea010276cec4d | [
"MIT"
] | 33 | 2017-05-01T20:04:32.000Z | 2021-05-27T09:48:13.000Z | defmodule Que.Worker do
@moduledoc """
Defines a Worker for processing Jobs.
The defined worker is responsible for processing passed jobs, and
handling the job's success and failure callbacks. The defined
worker must export a `perform/1` callback otherwise compilation
will fail.
## Basic Worker
```
... | 23.044521 | 94 | 0.672462 |
ac7727d6cd3e6343d3719b6527d38af642b0ff88 | 929 | ex | Elixir | lib/elixir_films_web/router.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | lib/elixir_films_web/router.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | lib/elixir_films_web/router.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | defmodule ElixirFilmsWeb.Router do
use ElixirFilmsWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", ElixirFilmsWeb do
pipe_through :api
resources "/movies", MovieController, only: [:index, :show]
post "/movies/import", MovieController, :omdb_import
end
# Enables Liv... | 29.967742 | 70 | 0.717976 |
ac774f940e40cadcb2887989fbf328f10358156f | 2,750 | ex | Elixir | test/support/order.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | 15 | 2021-11-10T23:15:29.000Z | 2022-03-26T01:03:38.000Z | test/support/order.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | test/support/order.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | defmodule Leaf do
@moduledoc false
@derive {Nestru.Decoder, %{leaf: Leaf}}
defstruct [:leaf, :value]
end
defmodule OrdersBook do
@moduledoc false
@derive Nestru.Encoder
defstruct [:orders]
defimpl Nestru.Decoder do
def from_map_hint(_value, _context, map) do
case map[:orders] do
# w... | 20.676692 | 78 | 0.598909 |
ac776364f8addbb6ae7a2423c47f76db04056714 | 4,586 | exs | Elixir | lib/elixir/test/elixir/calendar/date_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/test/elixir/calendar/date_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar/date_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | Code.require_file("../test_helper.exs", __DIR__)
Code.require_file("holocene.exs", __DIR__)
Code.require_file("fakes.exs", __DIR__)
defmodule DateTest do
use ExUnit.Case, async: true
doctest Date
test "sigil_D" do
assert ~D[2000-01-01] ==
%Date{calendar: Calendar.ISO, year: 2000, month: 1, day:... | 35.007634 | 106 | 0.615787 |
ac778ce438dba8610ad9865ff156719fa111c8bb | 899 | exs | Elixir | bench/ord_map/put_new.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 95 | 2020-10-18T09:27:46.000Z | 2022-03-29T20:03:16.000Z | bench/ord_map/put_new.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2021-09-22T20:30:08.000Z | 2021-10-13T23:55:34.000Z | bench/ord_map/put_new.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2020-12-15T12:36:16.000Z | 2020-12-15T12:36:16.000Z | defmodule Bench.Maps.PutNew do
def inputs() do
for n <- [10, 100, 10_000] do
{"n = #{n}", n}
end
end
def create_scenario(from_list_callback, put_callback) do
{
fn {map, keys} ->
Enum.reduce(keys, map, fn key, acc -> put_callback.(acc, key, :foo) end)
end,
before_scenar... | 24.297297 | 97 | 0.53059 |
ac77dfc900e81d5e26ecdbaa59ed4e95226345a2 | 2,334 | ex | Elixir | lib/ElixirWx/WxStatusBar.ex | DwayneDibley/ElixirWxTests | 1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4 | [
"Apache-2.0"
] | 3 | 2018-10-26T21:12:47.000Z | 2020-09-01T02:09:34.000Z | lib/ElixirWx/WxStatusBar.ex | DwayneDibley/ElixirWxTests | 1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4 | [
"Apache-2.0"
] | null | null | null | lib/ElixirWx/WxStatusBar.ex | DwayneDibley/ElixirWxTests | 1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4 | [
"Apache-2.0"
] | null | null | null | defmodule WxStatusBar do
import WxUtilities
import WinInfo
require Logger
@moduledoc """
A status bar is a narrow window that can be placed along the bottom of a frame
to show small amounts of status information.
A status bar can contain one or more fields, one or more of which can be
variable length ... | 26.522727 | 86 | 0.661525 |
ac77e64cd00d3d72b90415cb7d567b33133b1db6 | 900 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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.333333 | 74 | 0.763333 |
ac7812d4bcd419c88ae0ee53534d403626717785 | 526 | exs | Elixir | examples/ssl.exs | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | examples/ssl.exs | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | examples/ssl.exs | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | # Run this app from Dynamo root with:
#
# mix run -r examples/ssl.exs --no-halt
#
defmodule SSLSample do
use Dynamo
use Dynamo.Router
config :server, port: 3030
# See other SSL options here:
# http://www.erlang.org/doc/man/ssl.html
config :ssl,
port: 3031,
keyfile: Path.expand("../ssl/key.pem"... | 20.230769 | 55 | 0.661597 |
ac7816295c7c49c219460fa81375e7bc3b311444 | 226 | ex | Elixir | lib/phone/sh.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/sh.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/sh.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.SH do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(290)()(.{5})/
def country, do: "Saint Helena and Tristan da Cunha"
def a2, do: "SH"
def a3, do: "SHN"
matcher(:regex, ["290"])
end
| 17.384615 | 54 | 0.619469 |
ac78299e330f28f4ff6c7c39d830bec9cac0a90a | 660 | exs | Elixir | apps/local_ledger/test/test_helper.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/local_ledger/test/test_helper.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/local_ledger/test/test_helper.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.823529 | 74 | 0.766667 |
ac782d5918ae705a38d12d70ef7af2386bad2e92 | 633 | exs | Elixir | test/db/old_animal_sink_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | test/db/old_animal_sink_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | test/db/old_animal_sink_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.OldAnimalSinkTest do
use Eecrit.ModelCase
alias Eecrit.OldAnimal
@valid_date "2011-03-29"
@valid_with_string_date %{kind: "kind", name: "name",
procedure_description_kind: hd(OldAnimal.valid_species),
date_removed_from_service: @valid_dat... | 35.166667 | 84 | 0.699842 |
ac783c26646dd9aa910c2d7666d3802cc6882c38 | 1,862 | ex | Elixir | lib/events/users.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events/users.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events/users.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | defmodule Events.Users do
@moduledoc """
The Users context.
"""
import Ecto.Query, warn: false
alias Events.Repo
alias Events.Users.User
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
Repo.all(User)
end
@doc """
G... | 15.779661 | 59 | 0.574114 |
ac786d249e9bdc00b1785b35b1dfdc5218a49f70 | 48 | ex | Elixir | lib/astro/lunar.ex | danepod/astro | f355a90e5102a5e579ad37c0222560c152c73222 | [
"Apache-2.0"
] | null | null | null | lib/astro/lunar.ex | danepod/astro | f355a90e5102a5e579ad37c0222560c152c73222 | [
"Apache-2.0"
] | null | null | null | lib/astro/lunar.ex | danepod/astro | f355a90e5102a5e579ad37c0222560c152c73222 | [
"Apache-2.0"
] | null | null | null | defmodule Astro.Lunar do
@moduledoc false
end | 12 | 24 | 0.791667 |
ac787ef5a547142d34d8434705fe635c38ca6895 | 1,139 | ex | Elixir | clients/licensing/lib/google_api/licensing/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/licensing/lib/google_api/licensing/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/licensing/lib/google_api/licensing/v1/connection.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 ... | 34.515152 | 77 | 0.739245 |
ac789dbd08b232fd3e37eca50b756173ef7413c6 | 1,810 | exs | Elixir | mix.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | mix.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | mix.exs | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | defmodule DarkEcto.MixProject do
@moduledoc """
Mix Project for `DarkEcto`
"""
use Mix.Project
@version "1.0.1"
@name "DarkEcto"
@hexpm_url "http://hexdocs.pm/dark_ecto"
@github_url "https://github.com/dark-elixir/dark_ecto"
@description "Libraries and utils for manipulating `Absinthe` or `Ecto`."
... | 21.294118 | 75 | 0.564641 |
ac78b3af67992a333634b77baf8f24552c43e3be | 9,665 | ex | Elixir | clients/books/lib/google_api/books/v1/api/promooffer.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/promooffer.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/promooffer.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 43.931818 | 196 | 0.609933 |
ac78dae0f971087aa2f0bace1bece1d0f5b8af98 | 35,088 | ex | Elixir | lib/baiji/service/cloudwatch.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/cloudwatch.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/cloudwatch.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | defmodule Baiji.CloudWatch do
@moduledoc """
Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the
applications you run on AWS in real time. You can use CloudWatch to collect
and track metrics, which are the variables you want to measure for your
resources and applications.
CloudWat... | 74.655319 | 17,159 | 0.621153 |
ac78e736e16e4619af5915d44fdbc873ff7db478 | 234 | exs | Elixir | test/config_storage/string_value_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | test/config_storage/string_value_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | test/config_storage/string_value_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Config.StringValueTest do
use ExUnit.Case
alias FarmbotCore.Config.StringValue
test "changeset" do
sv = %StringValue{value: "Foo"}
cs = StringValue.changeset(sv)
assert cs.data == sv
end
end
| 21.272727 | 47 | 0.722222 |
ac78ef1b28b43a2db05ea836cff51057da2202bc | 1,636 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/goal_parent_link.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/goal_parent_link.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/goal_parent_link.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... | 32.078431 | 96 | 0.727384 |
ac78f3eb772e3e263fafc9c652485d8fe4e57901 | 606 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/plugs/org_user.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/plugs/org_user.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/plugs/org_user.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWWWWeb.Plugs.OrgUser do
use NervesHubWWWWeb, :plug
alias NervesHubWebCore.Accounts
def init(opts) do
opts
end
def call(%{assigns: %{org: org}, params: %{"user_id" => user_id}} = conn, _opts) do
with {:ok, user} <- Accounts.get_user(user_id),
{:ok, org_user} <- Accounts.g... | 23.307692 | 85 | 0.60066 |
ac79052ca413a94885eccb4895349f92ffb98660 | 1,710 | exs | Elixir | mix.exs | jeffutter/ex_rogue | 57207966764516db95a8af7625ba6e3cdc12651d | [
"MIT"
] | null | null | null | mix.exs | jeffutter/ex_rogue | 57207966764516db95a8af7625ba6e3cdc12651d | [
"MIT"
] | 2 | 2021-03-10T11:32:10.000Z | 2021-05-11T07:17:36.000Z | mix.exs | jeffutter/ex_rogue | 57207966764516db95a8af7625ba6e3cdc12651d | [
"MIT"
] | null | null | null | defmodule ExRogue.MixProject do
use Mix.Project
def project do
[
app: :ex_rogue,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.71875 | 79 | 0.574269 |
ac79138d75d68113b3d5e7a98df496cb5ca38d42 | 1,590 | ex | Elixir | web/channels/user_socket.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 6 | 2017-06-13T19:35:05.000Z | 2020-05-05T06:50:34.000Z | web/channels/user_socket.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 1 | 2021-09-27T11:58:11.000Z | 2021-09-27T11:58:11.000Z | defmodule NlbPipeline.UserSocket do
use Phoenix.Socket
## Channels
channel "risk_management:*", NlbPipeline.RiskManagementChannel
channel "support:*", NlbPipeline.SupportChannel
channel "control:lobby", NlbPipeline.ControlChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket,
timeout: 45_0... | 31.176471 | 82 | 0.72327 |
ac7913a42bf6ad38587a769f4704b5b48e7391af | 1,891 | ex | Elixir | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.82 | 184 | 0.754098 |
ac7924c4f6bf1175667233f859091f9a727d72df | 3,657 | ex | Elixir | clients/access_approval/lib/google_api/access_approval/v1/model/access_approval_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/model/access_approval_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/model/access_approval_settings.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... | 46.884615 | 186 | 0.731474 |
ac795f43c910950733a44112094f0281960a9b65 | 475 | ex | Elixir | lib/scoop/post.ex | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | lib/scoop/post.ex | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | lib/scoop/post.ex | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | defmodule Scoop.Post do
use Ecto.Schema
import Ecto.Changeset
schema "posts" do
field :content, :string
field :title, :string
belongs_to :author, Scoop.User
belongs_to :group, Scoop.Group
timestamps()
end
@doc false
def changeset(post, attrs) do
post
|> cast(attrs, [:title, :... | 20.652174 | 67 | 0.665263 |
ac79640b9b143f66fcc6591d3d792d8508cbd967 | 2,116 | exs | Elixir | elixir/triangle/test/triangle_test.exs | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | elixir/triangle/test/triangle_test.exs | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | elixir/triangle/test/triangle_test.exs | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | defmodule TriangleTest do
use ExUnit.Case
# @tag :pending
test "equilateral triangles have equal sides" do
assert Triangle.kind(2, 2, 2) == {:ok, :equilateral}
end
@tag :pending
test "larger equilateral triangles also have equal sides" do
assert Triangle.kind(10, 10, 10) == {:ok, :equilateral}
e... | 28.594595 | 89 | 0.677221 |
ac797f56b940c8a492ffb0d4482d041fdc58ca67 | 3,096 | ex | Elixir | architect/lib/architect/builds/builds.ex | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 3 | 2017-12-09T21:05:54.000Z | 2019-08-06T08:13:34.000Z | architect/lib/architect/builds/builds.ex | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 63 | 2017-09-09T15:44:24.000Z | 2022-03-03T22:16:24.000Z | architect/lib/architect/builds/builds.ex | VJftw/velocity | 8335c39c510dbde1446e6cde03eebb450339d212 | [
"Apache-2.0"
] | 5 | 2017-09-14T00:17:22.000Z | 2019-11-27T14:43:45.000Z | defmodule Architect.Builds do
@moduledoc """
The Builds context.
"""
require Logger
import Ecto.Query, warn: false
alias Architect.Repo
alias Architect.Builds.Build
alias Architect.Builds.Task
alias Architect.Builds.Stage
@doc """
Returns the list of builds.
"""
def list_builds do
Repo.... | 21.061224 | 92 | 0.592377 |
ac79b1fc9f7e6bde604e07c09791c1aa5351e920 | 556 | ex | Elixir | web/views/cachegroup_type_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/views/cachegroup_type_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/views/cachegroup_type_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.CachegroupTypeView do
use Tox.Web, :view
def render("index.json", %{cachegroup_types: cachegroup_types}) do
%{data: render_many(cachegroup_types, Tox.CachegroupTypeView, "cachegroup_type.json")}
end
def render("show.json", %{cachegroup_type: cachegroup_type}) do
%{data: render_one(cacheg... | 32.705882 | 90 | 0.751799 |
ac79b7b83576994a1188e2cb7380a754a8e16e13 | 2,350 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/deny_maintenance_period.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/deny_maintenance_period.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/deny_maintenance_period.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... | 44.339623 | 324 | 0.72 |
ac79c0dbf6ddae061d7876870981522be2edc27c | 4,317 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/group.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/group.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/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... | 59.958333 | 758 | 0.712069 |
ac79facdb865ab8f855139e2b0bbce38fc13f797 | 2,874 | exs | Elixir | mix.exs | ringvold/kiosk_system_rpi3 | 0fd464a4743d6de2eae757df11f60254b66fa6b2 | [
"Apache-2.0"
] | null | null | null | mix.exs | ringvold/kiosk_system_rpi3 | 0fd464a4743d6de2eae757df11f60254b66fa6b2 | [
"Apache-2.0"
] | null | null | null | mix.exs | ringvold/kiosk_system_rpi3 | 0fd464a4743d6de2eae757df11f60254b66fa6b2 | [
"Apache-2.0"
] | null | null | null | defmodule KioskSystemRpi3.MixProject do
use Mix.Project
@app :kiosk_system_rpi3
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
build_runner =
if System.get_env("CI") != nil do
Nerves.Artifact.BuildRunners.Local
else
Nerves.Artifact.BuildRunners... | 22.992 | 79 | 0.585943 |
ac7a0d555835d3bb86d91633a3476864ec1c1a13 | 1,160 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/examples/session/count_to.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/session/count_to.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam/lib/ockam/examples/session/count_to.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1 | 2021-12-01T19:40:11.000Z | 2021-12-01T19:40:11.000Z | defmodule Ockam.Examples.Session.CountTo do
@moduledoc false
alias Ockam.Session.Pluggable, as: Session
alias Ockam.Session.Spawner
alias Ockam.Examples.Session.CountTo.DataWorker, as: DataWorker
def create_spawner() do
responder_options = [
worker_mod: DataWorker,
handshake: Ockam.Examples... | 23.2 | 65 | 0.689655 |
ac7a27302045884a441e206c5470dd323c931cc7 | 652 | ex | Elixir | lib/props/parameters.ex | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | 1 | 2020-06-09T10:42:58.000Z | 2020-06-09T10:42:58.000Z | lib/props/parameters.ex | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | null | null | null | lib/props/parameters.ex | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | null | null | null | defmodule ICalex.Props.Parameters do
@moduledoc false
defstruct parameters: %{}
def is_empty(%ICalex.Props.Parameters{parameters: parameters} = _params),
do: parameters === %{}
def to_ical(%ICalex.Props.Parameters{parameters: parameters} = _params, sorted \\ true) do
regex = Regex.compile!("[,;: ’']")... | 28.347826 | 92 | 0.638037 |
ac7a2b9cb13e46c9e2f284be8c0367b13a5f19da | 3,336 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert_metadata.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... | 51.323077 | 722 | 0.711331 |
ac7a30d43c664b6532dbf7a74669292808dc2d77 | 2,017 | exs | Elixir | mix.exs | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | mix.exs | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | mix.exs | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | defmodule HerminioTorres.MixProject do
use Mix.Project
def project do
[
app: :herminio_torres,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(... | 26.539474 | 84 | 0.571145 |
ac7a389f0ab89cf8dfd5ed991880bb145159673b | 10 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_in_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0b0 in 0b1 | 10 | 10 | 0.8 |
ac7a3b2abf2b2714f528e1e4e61a72a15ea073b0 | 2,352 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.864407 | 187 | 0.706633 |
ac7a471aaff8ee6696f0b2810fe784ce93c3e6f9 | 1,908 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/delete_range_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/delete_range_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/delete_range_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 ... | 36 | 125 | 0.731656 |
ac7a543808cb615ee15dc6f2b351737cbae93a78 | 811 | ex | Elixir | lib/ex_ftx/spot_margin/borrow_summary.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-09-27T17:19:41.000Z | 2022-03-16T09:28:13.000Z | lib/ex_ftx/spot_margin/borrow_summary.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-07-28T19:53:02.000Z | 2021-09-27T15:48:38.000Z | lib/ex_ftx/spot_margin/borrow_summary.ex | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 4 | 2021-08-01T11:25:58.000Z | 2021-10-11T22:15:44.000Z | defmodule ExFtx.SpotMargin.BorrowSummary do
alias ExFtx.JsonResponse
@type credentials :: ExFtx.Credentials.t()
@type borrow_summary :: ExFtx.BorrowSummary.t()
@type result :: {:ok, [borrow_summary]} | {:error, :parse_result_item}
@spec get :: result
def get do
"/spot_margin/borrow_summary"
|> ExF... | 26.16129 | 78 | 0.630086 |
ac7a5fcd582cfed667b494336fb7fcd0dafcfaa1 | 2,027 | ex | Elixir | web/views/instagram_view.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | 1 | 2020-01-13T23:43:55.000Z | 2020-01-13T23:43:55.000Z | web/views/instagram_view.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | 8 | 2016-06-12T15:18:56.000Z | 2018-11-15T12:11:22.000Z | web/views/instagram_view.ex | twined/brando_instagram | ce15b02b4daddcc194971b1665bf9eaf172b0789 | [
"MIT"
] | null | null | null | defmodule Brando.Instagram.Admin.InstagramView do
@moduledoc """
View for the Brando Instagram module.
"""
use Brando.Web, :view
import Brando.Instagram.Gettext
@approved_header ~s(<h3 class="negative">#{gettext("Approved")}</h3>) <>
~s(<div class="image-selection-pool approved">)
@rej... | 38.980769 | 86 | 0.562901 |
ac7a61b0c2906478347b64a3eb9402e1c3a0a445 | 938 | ex | Elixir | test/support/channel_case.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 1 | 2019-05-03T13:39:40.000Z | 2019-05-03T13:39:40.000Z | test/support/channel_case.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 13 | 2019-03-27T05:40:41.000Z | 2019-05-24T10:43:31.000Z | test/support/channel_case.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | null | null | null | defmodule TowwwerWeb.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 w... | 24.684211 | 69 | 0.715352 |
ac7a636e411950480a8ff87414a6571e1dcc29a0 | 818 | exs | Elixir | mix.exs | my-flow/raftex | 6be505fbe1625132a933813e0534d414850b9f1d | [
"MIT"
] | 25 | 2015-03-17T01:57:47.000Z | 2022-03-01T18:40:03.000Z | mix.exs | my-flow/raftex | 6be505fbe1625132a933813e0534d414850b9f1d | [
"MIT"
] | 1 | 2015-06-23T07:40:07.000Z | 2015-06-23T07:40:07.000Z | mix.exs | my-flow/raftex | 6be505fbe1625132a933813e0534d414850b9f1d | [
"MIT"
] | 6 | 2015-06-23T05:07:34.000Z | 2022-03-01T18:40:10.000Z | defmodule Raftex.Mixfile do
use Mix.Project
def project do
[app: :raftex,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: ["lib", "web"],
compilers: [:phoenix] ++ Mix.compilers,
deps: deps,
test_coverage: [tool: ExCoveralls]]
end
# Configuration for the OTP application
#... | 22.108108 | 67 | 0.57335 |
ac7a7868e50e2c5c88b702fa3d3a8234f6b48a39 | 422 | exs | Elixir | apps/fz_common/test/fz_map_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 5 | 2020-05-22T00:24:39.000Z | 2021-06-18T18:28:45.000Z | apps/fz_common/test/fz_map_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 64 | 2020-05-22T00:31:00.000Z | 2021-06-28T15:21:33.000Z | apps/fz_common/test/fz_map_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 2 | 2020-05-22T00:27:52.000Z | 2021-03-14T19:37:27.000Z | defmodule FzCommon.FzMapTest do
use ExUnit.Case, async: true
alias FzCommon.FzMap
describe "compact/1" do
@data %{foo: nil, bar: "hello"}
test "removes nil values" do
assert FzMap.compact(@data) == %{bar: "hello"}
end
end
describe "compact/2" do
@data %{foo: "bar", bar: ""}
test... | 19.181818 | 54 | 0.606635 |
ac7a7be5bfe396e2a1931f0cb01c1d8b2bfbe5b2 | 26,079 | ex | Elixir | lib/plug/debugger.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | lib/plug/debugger.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/plug/debugger.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Debugger do
@moduledoc """
A module (**not a plug**) for debugging in development.
This module is commonly used within a `Plug.Builder` or a `Plug.Router`
and it wraps the `call/2` function.
Notice `Plug.Debugger` *does not* catch errors, as errors should still
propagate so that the Elixir ... | 58.082405 | 12,756 | 0.796158 |
ac7a9868592bce86cb4d6cb8445380c85b1f25a9 | 4,643 | exs | Elixir | test/quarry/load_test.exs | enewbury/ecto_quarry | 396f2a2156c33595213cd822111c0832a9e1a757 | [
"MIT"
] | 5 | 2021-12-27T02:03:17.000Z | 2022-03-04T16:05:38.000Z | test/quarry/load_test.exs | enewbury/ecto_quarry | 396f2a2156c33595213cd822111c0832a9e1a757 | [
"MIT"
] | 1 | 2021-12-27T05:30:12.000Z | 2022-02-10T05:33:47.000Z | test/quarry/load_test.exs | enewbury/quarry | 396f2a2156c33595213cd822111c0832a9e1a757 | [
"MIT"
] | null | null | null | defmodule Quarry.LoadTest do
use ExUnit.Case
doctest Quarry.Load
alias Quarry.Load
import Ecto.Query
alias Quarry.{Comment, Post, Load}
setup do
%{base: {from(p in Post, as: :post), []}}
end
test "can preload belongs_to", %{base: base} do
expected =
from(
p in Post,
as: ... | 28.660494 | 94 | 0.584105 |
ac7a98e059a5a1282fe07b45594dbcc6d60031ad | 612 | ex | Elixir | lib/super_issuer/ethereum/event.ex | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 2 | 2021-02-12T09:21:56.000Z | 2021-02-22T08:52:20.000Z | lib/super_issuer/ethereum/event.ex | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 4 | 2021-02-22T08:53:43.000Z | 2021-06-09T09:24:46.000Z | lib/super_issuer/ethereum/event.ex | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | null | null | null | defmodule SuperIssuer.Ethereum.Event do
alias SuperIssuer.Ethereum.Argument
alias __MODULE__
@type t :: %Event{name: String.t(), args: list(Argument.t())}
defstruct [:name, :args]
def get_signature(%Event{name: name, args: args}) do
hash =
"#{name}(#{args |> Enum.map(&Argument.canonical_type_of(&1... | 22.666667 | 92 | 0.637255 |
ac7ae7d214ea7ab802c06b48d46d9d2e40282b5c | 597 | ex | Elixir | elixir/lib/com/spoonacular/client/model/inline_response_200_21_calories_confidence_range95_percent.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 21 | 2019-08-09T18:53:26.000Z | 2022-03-14T22:10:10.000Z | elixir/lib/com/spoonacular/client/model/inline_response_200_21_calories_confidence_range95_percent.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | null | null | null | elixir/lib/com/spoonacular/client/model/inline_response_200_21_calories_confidence_range95_percent.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 55 | 2019-08-13T17:52:47.000Z | 2022-03-27T04:29:34.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 com.spoonacular.client.Model.InlineResponse20021CaloriesConfidenceRange95Percent do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct ... | 21.321429 | 112 | 0.705193 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.