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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d84152bd7a1ce0a9ab3344cd1f1b96cbad94fa5 | 870 | ex | Elixir | apps/proxy/lib/proxy/chain/supervisor.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/proxy/lib/proxy/chain/supervisor.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/proxy/lib/proxy/chain/supervisor.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | defmodule Staxx.Proxy.Chain.Supervisor do
@moduledoc """
Supervisor that will watch all chains running
"""
alias Staxx.Proxy.Chain
# Automatically defines child_spec/1
use DynamicSupervisor
@doc false
def start_link(arg) do
DynamicSupervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
... | 26.363636 | 82 | 0.728736 |
1d8415528f2b8db2c80035247362d4a60593546a | 6,972 | ex | Elixir | clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_instance.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_instance.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_instance.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... | 55.333333 | 373 | 0.723322 |
1d844a80c117d528942ce321fb2e928d0dad7624 | 96 | exs | Elixir | test/views/page_view_test.exs | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | test/views/page_view_test.exs | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | test/views/page_view_test.exs | llxff/projects_statistics | 343508fc8fc8e9238a546f5230fff50e21126417 | [
"Unlicense"
] | null | null | null | defmodule ProjectsStatistics.PageViewTest do
use ProjectsStatistics.ConnCase, async: true
end
| 24 | 46 | 0.854167 |
1d84abc56b1feef0900fd6e34f9d12261351bf87 | 2,145 | exs | Elixir | apps/omg_watcher/test/omg_watcher/state/transaction/fee_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher/test/omg_watcher/state/transaction/fee_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher/test/omg_watcher/state/transaction/fee_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 36.355932 | 110 | 0.697902 |
1d84d5a97b6622cb03e4c31896378648c15e8250 | 513 | exs | Elixir | integration_test/support/repo.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | integration_test/support/repo.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | integration_test/support/repo.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.Repo do
defmacro __using__(opts) do
quote do
config = Application.get_env(:ecto, __MODULE__)
config = Keyword.put(config, :loggers, [{Ecto.LogEntry, :log, []},
{Ecto.Integration.Repo, :log, [:on_log]}])
Application.put_env(... | 28.5 | 88 | 0.592593 |
1d84ecbb25bde74f31687dc5e93c92a994d92ca7 | 1,800 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_refund.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_refund.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_refund.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... | 32.142857 | 108 | 0.728333 |
1d84f52024dcd7eeed65c10e1d06584774f2e50e | 2,094 | ex | Elixir | clients/content/lib/google_api/content/v2/model/liasettings_get_accessible_gmb_accounts_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/liasettings_get_accessible_gmb_accounts_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/liasettings_get_accessible_gmb_accounts_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... | 38.072727 | 222 | 0.744986 |
1d84f837cc43bfe484701d7408999f683d9f48c5 | 779 | exs | Elixir | elixir/plug-cowboy/mix.exs | ivanjj22/performance-benchmark-stacks | 085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c | [
"MIT"
] | 5 | 2021-05-14T13:59:13.000Z | 2022-02-06T19:28:50.000Z | elixir/plug-cowboy/mix.exs | ivanjj22/performance-benchmark-stacks | 085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c | [
"MIT"
] | null | null | null | elixir/plug-cowboy/mix.exs | ivanjj22/performance-benchmark-stacks | 085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c | [
"MIT"
] | 4 | 2021-04-28T20:34:37.000Z | 2021-10-06T20:29:47.000Z | defmodule PlugCowboyApp.MixProject do
use Mix.Project
def project do
[
app: :plug_cowboy_app,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 22.257143 | 87 | 0.545571 |
1d8534822971092dc1290c4d435ac87713e01dfa | 19,429 | exs | Elixir | apps/reaper/test/unit/reaper/data_extract/extract_step_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 18 | 2020-11-13T15:38:24.000Z | 2021-05-26T00:40:08.000Z | apps/reaper/test/unit/reaper/data_extract/extract_step_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 365 | 2020-09-21T12:31:40.000Z | 2021-09-25T14:54:21.000Z | apps/reaper/test/unit/reaper/data_extract/extract_step_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 3 | 2020-10-06T16:17:49.000Z | 2021-09-03T17:11:41.000Z | defmodule Reaper.DataExtract.ExtractStepTest do
use ExUnit.Case
alias SmartCity.TestDataGenerator, as: TDG
alias Reaper.DataExtract.ExtractStep
alias Reaper.Cache.AuthCache
use Placebo
@dataset_id "12345-6789"
@csv """
one,two,three
four,five,six
"""
@csvquery """
this,is,another
csv,with,... | 27.676638 | 120 | 0.494055 |
1d858895a1299ade5cf967ef9cc415e70545d76f | 5,230 | ex | Elixir | deps/earmark/lib/earmark/plugin.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/earmark/lib/earmark/plugin.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/earmark/lib/earmark/plugin.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-09-15T17:47:35.000Z | 2020-09-15T17:47:35.000Z | defmodule Earmark.Plugin do
alias Earmark.Error
alias Earmark.Options
@moduledoc """
Plugins are modules that implement a render function. Right now that is `as_html`.
### API
#### Plugin Registration
When invoking `Earmark.as_html(some_md, options)` we can register plugins inside the `plugins` map, w... | 37.898551 | 136 | 0.602486 |
1d85c1088a20763146d3094d1ee7af40311963e8 | 1,129 | exs | Elixir | config/config.exs | arghmeleg/pdf_pal | 0e40d7632b430d82192a05c059cff88f5a771ff4 | [
"MIT"
] | 1 | 2019-12-24T00:57:01.000Z | 2019-12-24T00:57:01.000Z | config/config.exs | arghmeleg/pdf_pal | 0e40d7632b430d82192a05c059cff88f5a771ff4 | [
"MIT"
] | null | null | null | config/config.exs | arghmeleg/pdf_pal | 0e40d7632b430d82192a05c059cff88f5a771ff4 | [
"MIT"
] | 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... | 36.419355 | 73 | 0.751107 |
1d85c44e106b7944b27fa150d36f80306ae88125 | 1,431 | ex | Elixir | lib/csquery/exceptions.ex | KineticCafe/csquery | 38f1ff1fbd613434e5fbcf6d083f0fcc141470b9 | [
"MIT"
] | 1 | 2019-12-05T01:11:23.000Z | 2019-12-05T01:11:23.000Z | lib/csquery/exceptions.ex | KineticCafe/csquery | 38f1ff1fbd613434e5fbcf6d083f0fcc141470b9 | [
"MIT"
] | null | null | null | lib/csquery/exceptions.ex | KineticCafe/csquery | 38f1ff1fbd613434e5fbcf6d083f0fcc141470b9 | [
"MIT"
] | null | null | null | defmodule CSQuery.NoFieldValuesError do
defexception [:message]
def exception(operator) do
%__MODULE__{message: "Expression for operator `#{operator}` has no field values."}
end
end
defmodule CSQuery.TooManyFieldValuesError do
defexception [:message]
def exception({operator, size}) do
msg = "Expres... | 28.058824 | 105 | 0.756115 |
1d85dc0b0ff284847a8df9b20736b44532a207b5 | 25,933 | ex | Elixir | lib/comtac_klax.ex | flixbi/element-parsers | b92ef1cff139130acbac4f40d0d48568a3de6590 | [
"MIT"
] | 1 | 2021-04-06T09:30:10.000Z | 2021-04-06T09:30:10.000Z | lib/comtac_klax.ex | SeppPenner/element-parsers | 8a2594e0f15ca7177f6782d0441f25e3e55b8416 | [
"MIT"
] | null | null | null | lib/comtac_klax.ex | SeppPenner/element-parsers | 8a2594e0f15ca7177f6782d0441f25e3e55b8416 | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
require Logger
# ELEMENT IoT Parser for Comtac KLAX device.
# Changelog
# 2019-02-13 [nk]: Initial Version by Niklas, registers and interval fixed.
# 2019-03-04 [jb]: Skipping invalid backdated values when value==0.0; Added mode "Logarex"
# 2019-0... | 37.969253 | 203 | 0.550303 |
1d860eca305c485ef4675fa22ef3d76114cedf71 | 744 | ex | Elixir | lib/exquickbooks/api/account.ex | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | lib/exquickbooks/api/account.ex | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | lib/exquickbooks/api/account.ex | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | defmodule ExQuickBooks.API.Account do
@moduledoc """
Functions for interacting with the Account API.
This module directly implements operations from the official API:
<https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account>
"""
use ExQuickBooks.Endpoint, base_url: ExQuickB... | 29.76 | 91 | 0.724462 |
1d86728e73517ade88b7c3377a2b15c73356c2ab | 7,831 | ex | Elixir | lib/livebook/live_markdown/import.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | 1 | 2021-05-21T22:14:23.000Z | 2021-05-21T22:14:23.000Z | lib/livebook/live_markdown/import.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:09:08.000Z | 2021-09-18T01:09:08.000Z | lib/livebook/live_markdown/import.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.LiveMarkdown.Import do
alias Livebook.Notebook
alias Livebook.LiveMarkdown.MarkdownHelpers
@doc """
Converts the given Markdown document into a notebook data structure.
Returns the notebook structure and list if informative messages/warnings
related to the imported input.
"""
@spec ... | 35.116592 | 97 | 0.653684 |
1d8683bce8a94d755ef6c9c3586ba5ece81bb254 | 2,858 | ex | Elixir | lib/adz.ex | operable/adz | 648c292d40740f96e26deb42b23308218de7e66a | [
"Apache-2.0"
] | null | null | null | lib/adz.ex | operable/adz | 648c292d40740f96e26deb42b23308218de7e66a | [
"Apache-2.0"
] | null | null | null | lib/adz.ex | operable/adz | 648c292d40740f96e26deb42b23308218de7e66a | [
"Apache-2.0"
] | null | null | null | defmodule Adz do
@timestamp_format "~.4.0w-~.2.0w-~.2.0wT~.2.0w:~.2.0w:~.2.0w"
@timestamp_micros_format "~.4.0w-~.2.0w-~.2.0wT~.2.0w:~.2.0w:~.2.0w.~.4.0w"
defmacro __using__(_) do
quote do
require Logger
import unquote(__MODULE__), only: [ready: 1]
end
end
defmacro ready(value) do
q... | 26.220183 | 87 | 0.60042 |
1d86ba0b48c4b06a9a6df03e12d6425fd3e5ec9c | 1,162 | ex | Elixir | apps/object_storage/lib/object_storage_web/router.ex | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/object_storage/lib/object_storage_web/router.ex | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/object_storage/lib/object_storage_web/router.ex | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | defmodule Legendary.ObjectStorageWeb.Router do
use Legendary.ObjectStorageWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {Legendary.ObjectStorageWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_br... | 29.05 | 80 | 0.728916 |
1d86d39f6da5eae79032bbf09c741ceca9a15c29 | 500 | ex | Elixir | apps/firestorm_web/lib/firestorm_web/earmark/auto_linker.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_web/lib/firestorm_web/earmark/auto_linker.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_web/lib/firestorm_web/earmark/auto_linker.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormWeb.Earmark.AutoLinker do
@moduledoc """
AutoLinker will run on a string and return the string with any naked links
wrapped in an `a` tag with the link as both content and href..
"""
# A RegEx to match any URL that has spaces or newlines on either side of it.
@url_regex ~r{([ \n]+|^)(htt... | 33.333333 | 110 | 0.588 |
1d86e96819385a23337ae4e76bb2040f1a6ddc4d | 495 | exs | Elixir | test/bio/pellet_test.exs | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | test/bio/pellet_test.exs | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | test/bio/pellet_test.exs | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | defmodule Bio.PelletTest do
alias Bio.{Physic, Pellet, Position}
use ExUnit.Case
use ExUnitProperties
doctest Pellet
test "new/1" do
check all mass <- StreamData.positive_integer(),
x <- StreamData.positive_integer(),
y <- StreamData.positive_integer() do
physic = %Phy... | 23.571429 | 67 | 0.640404 |
1d870e8772d39605510c451cdffd499b18b375ca | 71 | ex | Elixir | lib/offsite/mailer.ex | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | lib/offsite/mailer.ex | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | lib/offsite/mailer.ex | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | defmodule Offsite.Mailer do
use Swoosh.Mailer, otp_app: :offsite
end
| 17.75 | 38 | 0.788732 |
1d875b2c07782a08fb4c0ed7b7fcdfec3b3af34a | 2,384 | ex | Elixir | lib/strava/api/uploads.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/api/uploads.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/api/uploads.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.Uploads do
@moduledoc """
API calls for all endpoints tagged `Uploads`.
"""
alias Strava.Client
import Strava.RequestBuilder
@doc """
Upload Activity
Uploads a new data file to create an activity from. Requires activity:write scope.
## Parameters
- client (Strava.Client): Client... | 30.564103 | 113 | 0.639681 |
1d878ba47ee835021366d975ade5b1eeaac9ede6 | 392 | exs | Elixir | priv/repo/migrations/20181128021428_create_users.exs | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | priv/repo/migrations/20181128021428_create_users.exs | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | priv/repo/migrations/20181128021428_create_users.exs | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | defmodule Hubby.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string, null: false
add :email, :string, null: false
add :avatar, :string, null: false
add :provider, :string, null: false
add :token, :string, null: false
ti... | 21.777778 | 46 | 0.640306 |
1d8797981e7d82105d68a5a273b09e127ad0be8d | 6,529 | ex | Elixir | lib/worker/syncer.ex | saifelse/bors-ng | 031ecd3474b7c7dc72462a708e120c28cf13b3ad | [
"Apache-2.0"
] | null | null | null | lib/worker/syncer.ex | saifelse/bors-ng | 031ecd3474b7c7dc72462a708e120c28cf13b3ad | [
"Apache-2.0"
] | null | null | null | lib/worker/syncer.ex | saifelse/bors-ng | 031ecd3474b7c7dc72462a708e120c28cf13b3ad | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Worker.Syncer do
@moduledoc """
A background task that pulls a full list of opened pull requests from a repo.
Patches that don't come up get closed,
and patches that don't exist get created.
"""
alias BorsNG.Worker.Syncer
alias BorsNG.Database.Patch
alias BorsNG.Database.Project
alia... | 28.510917 | 151 | 0.607444 |
1d87b26910eddeb28eb47550ba0351c0f5a5d48d | 544 | ex | Elixir | lib/uro/plug/require_prop_upload_permission.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | lib/uro/plug/require_prop_upload_permission.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | lib/uro/plug/require_prop_upload_permission.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule Uro.Plug.RequirePropUploadPermission do
import Plug.Conn
@doc false
def init(options), do: options
@doc false
@spec call(Conn.t(), atom()) :: Conn.t()
def call(conn, handler) do
conn
|> UroWeb.Helpers.UserContentHelper.session_has_prop_upload_permission?
|> maybe_halt(conn, handler)
... | 20.923077 | 75 | 0.681985 |
1d87e62021dc96843343ad21072f7e3e360124f8 | 927 | ex | Elixir | lib/base62_uuid_field.ex | jclem/base62_uuid_field | eb82d3658c0890dd2c6fdf88c1a8b818d89b61aa | [
"MIT"
] | 1 | 2018-12-13T20:31:42.000Z | 2018-12-13T20:31:42.000Z | lib/base62_uuid_field.ex | jclem/base62_uuid_field | eb82d3658c0890dd2c6fdf88c1a8b818d89b61aa | [
"MIT"
] | null | null | null | lib/base62_uuid_field.ex | jclem/base62_uuid_field | eb82d3658c0890dd2c6fdf88c1a8b818d89b61aa | [
"MIT"
] | null | null | null | defmodule Base62UUIDField do
@moduledoc """
A field that is stored as a v4 UUID but presented as a Base62-encoded binary string.
"""
use Ecto.Type
@spec type() :: :string
def type, do: :string
@spec cast(any) :: {:ok, String.t()} | :error
def cast(val) when is_binary(val), do: {:ok, val}
def cast(_... | 22.609756 | 86 | 0.601942 |
1d87e903d8eb61414c2e813fd823df1e6d81b560 | 9,248 | exs | Elixir | test/lib/absinthe/relay/node_test.exs | archseer/absinthe_relay | c3c85ca88adb8e925e846a515f75d93224b1f17d | [
"MIT"
] | 176 | 2016-03-02T06:38:55.000Z | 2022-03-11T13:02:24.000Z | test/lib/absinthe/relay/node_test.exs | archseer/absinthe_relay | c3c85ca88adb8e925e846a515f75d93224b1f17d | [
"MIT"
] | 167 | 2016-03-01T07:28:05.000Z | 2022-03-23T03:36:19.000Z | test/lib/absinthe/relay/node_test.exs | archseer/absinthe_relay | c3c85ca88adb8e925e846a515f75d93224b1f17d | [
"MIT"
] | 104 | 2016-03-09T22:28:13.000Z | 2022-03-30T17:02:33.000Z | defmodule Absinthe.Relay.NodeTest do
use Absinthe.Relay.Case, async: true
import ExUnit.CaptureLog
alias Absinthe.Relay.Node
defmodule Schema do
use Absinthe.Schema
use Absinthe.Relay.Schema, :classic
@foos %{
"1" => %{id: "1", name: "Bar 1"},
"2" => %{id: "2", name: "Bar 2"}
}
... | 28.024242 | 109 | 0.512543 |
1d88164a948cd6eedf020c0e6e14e617bf7b9316 | 1,125 | ex | Elixir | lib/delta_crdt/or_map.ex | evadne/delta_crdt_ex | 3ec6940edd6fdf5ee047f5e402e4054f4ad678c9 | [
"MIT"
] | 1 | 2019-11-11T16:58:03.000Z | 2019-11-11T16:58:03.000Z | lib/delta_crdt/or_map.ex | evadne/delta_crdt_ex | 3ec6940edd6fdf5ee047f5e402e4054f4ad678c9 | [
"MIT"
] | null | null | null | lib/delta_crdt/or_map.ex | evadne/delta_crdt_ex | 3ec6940edd6fdf5ee047f5e402e4054f4ad678c9 | [
"MIT"
] | null | null | null | defmodule DeltaCrdt.ORMap do
@moduledoc false
alias DeltaCrdt.{CausalDotMap, DummyCausalCrdt, CausalContext, DotStore}
def apply({m, f, a}, key, i, %CausalDotMap{} = map) do
val = Map.get(map.state, key, DummyCausalCrdt.new())
delta_op = apply(m, f, a ++ [i, %{val | causal_context: map.causal_context}])... | 26.162791 | 97 | 0.622222 |
1d88198be2dbcae04cf98b7a93192296f8c453f2 | 2,708 | ex | Elixir | lib/ex_pirate/utils.ex | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | lib/ex_pirate/utils.ex | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | lib/ex_pirate/utils.ex | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | defmodule ExPirate.Utils do
#
@type ep :: ExPirate.ep()
@type item :: ExPirate.item()
@type attr :: ExPirate.attr()
@type custom :: ExPirate.custom()
#
defp now(), do: System.monotonic_time()
# GET_PROP, UPD_PROP, SET_PROP
@doc """
Returns `:ttl`, `:expired?`, `:attrs` or a custom property using
... | 24.178571 | 73 | 0.592319 |
1d88219edb0c2666984ee182b4ee98b25a96188a | 753 | ex | Elixir | lib/monad/law.ex | lerencao/MonadEx | b8276cfc354da1e31d82e5ca9dfaa624340e835b | [
"MIT"
] | null | null | null | lib/monad/law.ex | lerencao/MonadEx | b8276cfc354da1e31d82e5ca9dfaa624340e835b | [
"MIT"
] | null | null | null | lib/monad/law.ex | lerencao/MonadEx | b8276cfc354da1e31d82e5ca9dfaa624340e835b | [
"MIT"
] | 1 | 2018-09-27T20:47:16.000Z | 2018-09-27T20:47:16.000Z | defmodule Monad.Law do
@moduledoc false
use Monad.Operators
# The three monad laws, see:
# https://www.haskell.org/haskellwiki/Monad_laws
# https://en.wikipedia.org/wiki/Monad_(functional_programming)#Monad_laws
# http://codeplease.io/monads/
# In Haskell:
# (return x) >>= f ≡ f x
@doc false
def ... | 23.53125 | 75 | 0.60425 |
1d882c1cba29eeed34aa90d860f80d4d61fb3767 | 657 | ex | Elixir | examples/basic/lib/components/page_1.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | examples/basic/lib/components/page_1.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | examples/basic/lib/components/page_1.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | defmodule Basic.Component.Page1 do
use SnapFramework.Component,
name: :page_1_scene,
template: "lib/components/page_1.eex",
controller: Basic.Component.Page1Controller,
assigns: [
btn_text: "Update Button",
buttons: [
"test 1",
"test 2",
"test 3",
"test 4",
... | 20.53125 | 55 | 0.595129 |
1d887c59807aa58699b509343a9d7994225610ef | 2,097 | ex | Elixir | lib/koans/09_map_sets.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | lib/koans/09_map_sets.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | lib/koans/09_map_sets.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | defmodule MapSets do
use Koans
@intro "My name is Set, MapSet."
@set MapSet.new([1, 2, 3, 4, 5])
koan "I am very similar to a list" do
assert Enum.fetch(@set, 0) == {:ok, 1}
end
koan "However, I do not allow duplication" do
new_set = MapSet.new([1, 1, 2, 3, 3, 3])
assert MapSet.size(new_set... | 24.670588 | 85 | 0.644731 |
1d888f0e9afd96c3f762522d79e93959fdf136a4 | 6,198 | ex | Elixir | lib/membrane_rtsp/session/manager.ex | simoexpo/membrane_rtsp | f5fe12364535fd4ca234bc80c57a2f0c89e5fe25 | [
"Apache-2.0"
] | null | null | null | lib/membrane_rtsp/session/manager.ex | simoexpo/membrane_rtsp | f5fe12364535fd4ca234bc80c57a2f0c89e5fe25 | [
"Apache-2.0"
] | null | null | null | lib/membrane_rtsp/session/manager.ex | simoexpo/membrane_rtsp | f5fe12364535fd4ca234bc80c57a2f0c89e5fe25 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTSP.Session.Manager do
@moduledoc false
use GenServer
alias Membrane.RTSP.{Request, Response, Transport}
@user_agent "MembraneRTSP/#{Mix.Project.config()[:version]} (Membrane Framework RTSP Client)"
defmodule State do
@moduledoc false
@enforce_keys [:transport, :uri]
defstru... | 30.382353 | 96 | 0.609874 |
1d88a0b77a98d0d03b003f5091250def4fc71324 | 57,128 | exs | Elixir | test/ecto/query/planner_test.exs | CrazyEggInc/ecto | 790616281a787a9f5715476c62d811b8b64beedd | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | CrazyEggInc/ecto | 790616281a787a9f5715476c62d811b8b64beedd | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | CrazyEggInc/ecto | 790616281a787a9f5715476c62d811b8b64beedd | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Query.PlannerTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Query.Planner
alias Ecto.Query.JoinExpr
defmodule Comment do
use Ecto.Schema
schema "comments" do
field :text, :string
... | 41.04023 | 193 | 0.590866 |
1d88a7e39bdbd7df479d3940454a2c14e3d962f7 | 3,382 | exs | Elixir | integration_test/support/migration.exs | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | integration_test/support/migration.exs | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | integration_test/support/migration.exs | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.Migration do
use Ecto.Migration
def change do
create table(:users, comment: "users table") do
add :name, :string, comment: "name column"
add :custom_id, :uuid
timestamps()
end
create table(:posts) do
add :title, :string, size: 100
add :counter, ... | 27.274194 | 75 | 0.636606 |
1d88ab8562d9a8571907f90f35fb3c9fa5d7a06d | 646 | exs | Elixir | apps/artemis_web/test/artemis_web/browser/on_call_page_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/test/artemis_web/browser/on_call_page_test.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/test/artemis_web/browser/on_call_page_test.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisWeb.OnCallPageTest do
use ArtemisWeb.ConnCase
use ExUnit.Case
use Hound.Helpers
import ArtemisWeb.BrowserHelpers
import ArtemisWeb.Router.Helpers
@moduletag :browser
@url on_call_url(ArtemisWeb.Endpoint, :index)
hound_session()
describe "authentication" do
test "requires authe... | 17.944444 | 47 | 0.679567 |
1d88b03aa030754dc3abc23deec731772966ec4b | 251 | exs | Elixir | config/test.exs | ekousanakis/ex_rabbitmq_rpc | d0f8d06aa52a0aea3944cf1ab55a542d175cbbdb | [
"MIT"
] | null | null | null | config/test.exs | ekousanakis/ex_rabbitmq_rpc | d0f8d06aa52a0aea3944cf1ab55a542d175cbbdb | [
"MIT"
] | null | null | null | config/test.exs | ekousanakis/ex_rabbitmq_rpc | d0f8d06aa52a0aea3944cf1ab55a542d175cbbdb | [
"MIT"
] | null | null | null | use Mix.Config
config :logger,
level: :error
config :exrabbitmq, :test,
username: "guest",
password: "guest",
host: "localhost",
queue: "ex_rabbitmq_rpc_test",
queue_opts: [auto_delete: true],
consume_opts: [no_ack: false]
| 19.307692 | 35 | 0.661355 |
1d88bf235a60154ca65fdd2cd4d6501fbd75cf3c | 153 | ex | Elixir | web/controllers/page_controller.ex | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | defmodule GdPush.PageController do
use GdPush.Web, :controller
require Logger
def index(conn, _params) do
render conn, "index.html"
end
end
| 17 | 34 | 0.732026 |
1d88dd4ff9385bc240a3177121760c53be58bcca | 5,213 | ex | Elixir | lib/epicenter_web/live/user_live.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | lib/epicenter_web/live/user_live.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | lib/epicenter_web/live/user_live.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.UserLive do
use EpicenterWeb, :live_view
import EpicenterWeb.ConfirmationModal, only: [confirmation_prompt: 1]
import EpicenterWeb.LiveHelpers,
only: [
assign_defaults: 1,
assign_form_changeset: 2,
assign_form_changeset: 3,
assign_page_title: 2,
authentic... | 31.029762 | 138 | 0.633416 |
1d891c551cc3a0157eb3990efea83d8e99c86832 | 1,815 | ex | Elixir | lib/media_server_web/router.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | lib/media_server_web/router.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | lib/media_server_web/router.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | defmodule MediaServerWeb.Router do
use MediaServerWeb, :router
import MediaServerWeb.UserAuth
import Phoenix.LiveDashboard.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {MediaServerWeb.LayoutView, :root}
plug :protect_... | 28.359375 | 81 | 0.711295 |
1d8941670ac6d092223509b7e373a12830e48353 | 1,663 | ex | Elixir | lib/oauth_xyz_web/endpoint.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 2 | 2020-04-22T13:22:25.000Z | 2020-12-01T12:01:30.000Z | lib/oauth_xyz_web/endpoint.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 3 | 2019-12-05T01:32:09.000Z | 2019-12-09T01:15:32.000Z | lib/oauth_xyz_web/endpoint.ex | ritou/elixir-oauth-xyz-web | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | null | null | null | defmodule OAuthXYZWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :oauth_xyz
socket("/socket", OAuthXYZWeb.UserSocket)
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plu... | 28.186441 | 95 | 0.704149 |
1d89530a7300004d4596976a31cf1bed58a0f085 | 42 | ex | Elixir | test/fixtures/test.ex | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | 716 | 2015-01-04T20:41:01.000Z | 2022-03-29T08:44:09.000Z | test/fixtures/test.ex | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | 255 | 2015-01-03T23:41:58.000Z | 2022-03-19T23:06:06.000Z | test/fixtures/test.ex | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | 217 | 2015-03-31T20:17:58.000Z | 2022-02-20T23:46:41.000Z | defmodule Test do
def test do
end
end
| 8.4 | 17 | 0.714286 |
1d898ddc3476e9460125b65952e34ffe065f91d7 | 2,616 | ex | Elixir | lib/elixir/lib/behaviour.ex | bellthoven/elixir | 14610cb09b8d093d9513f97b7f4da82bdcbdd46d | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/lib/behaviour.ex | bellthoven/elixir | 14610cb09b8d093d9513f97b7f4da82bdcbdd46d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/behaviour.ex | bellthoven/elixir | 14610cb09b8d093d9513f97b7f4da82bdcbdd46d | [
"Apache-2.0"
] | null | null | null | defmodule Behaviour do
@moduledoc """
This module has been deprecated.
Instead of `defcallback`, one can simply use `@callback`.
Instead of `defmacrocallback`, one can simply use `@macrocallback`.
Instead of `__behaviour__(:callbacks)`, one can simply use `behaviour_info(:callbacks)`.
"""
# TODO: Deprec... | 25.90099 | 95 | 0.633028 |
1d899d5473864f3c7cb1f57fe0787406cbf1e55b | 76,727 | ex | Elixir | clients/eventarc/lib/google_api/eventarc/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/eventarc/lib/google_api/eventarc/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/eventarc/lib/google_api/eventarc/v1/api/projects.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... | 47.014093 | 802 | 0.619873 |
1d89e539df6518e9899d54958d76615113b251ba | 67 | ex | Elixir | lib/satellite_web/views/layout_view.ex | joshnuss/satellite-prototype | 9cf813d8b75efab9a8118f9fecb9ac6f70bd841a | [
"MIT"
] | null | null | null | lib/satellite_web/views/layout_view.ex | joshnuss/satellite-prototype | 9cf813d8b75efab9a8118f9fecb9ac6f70bd841a | [
"MIT"
] | null | null | null | lib/satellite_web/views/layout_view.ex | joshnuss/satellite-prototype | 9cf813d8b75efab9a8118f9fecb9ac6f70bd841a | [
"MIT"
] | null | null | null | defmodule SatelliteWeb.LayoutView do
use SatelliteWeb, :view
end
| 16.75 | 36 | 0.820896 |
1d8a00a8a367661c5de232a8b4c080f3bd9246cc | 5,114 | ex | Elixir | lib/tw/v1_1/client.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | lib/tw/v1_1/client.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | lib/tw/v1_1/client.ex | en30/tw | 10c705953e9b3bf97abf9b4c221486976eac32d4 | [
"MIT"
] | null | null | null | defmodule Tw.V1_1.Client do
@moduledoc """
Client for Twitter API v1.1.
"""
alias Tw.HTTP
alias Tw.JSON
alias Tw.OAuth
alias Tw.V1_1.TwitterAPIError
@base_uri URI.parse("https://api.twitter.com/1.1")
@media_base_uri URI.parse("https://upload.twitter.com/1.1")
defstruct [:http_client, :credentials... | 29.732558 | 119 | 0.62808 |
1d8a140fe28951adc52ac6075c770611f58d6865 | 6,612 | exs | Elixir | test/blog_api_web/controllers/user_controller_test.exs | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | test/blog_api_web/controllers/user_controller_test.exs | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | 5 | 2021-01-13T04:16:16.000Z | 2021-01-13T21:43:00.000Z | test/blog_api_web/controllers/user_controller_test.exs | gissandrogama/blog_api | 9378d7844a1535d0c9663cc07ca92fc5d282ee92 | [
"MIT"
] | null | null | null | defmodule BlogApiWeb.UserControllerTest do
use BlogApiWeb.ConnCase, async: true
import BlogApiWeb.Auth.Guardian
import BlogApi.UserFixture
@valid_user %{
display_name: "some displayName",
email: "some@email.com",
image: "some image",
password: "123456"
}
@update_user %{
display_name: ... | 29.517857 | 97 | 0.559286 |
1d8a219fc830401acefed15d56c4800bbe2390cf | 7,740 | ex | Elixir | lib/elixir/lib/map_set.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule MapSet do
@moduledoc """
A set of functions for working with sets.
The `MapSet` is represented internally as a struct,
therefore `%MapSet{}` can be used whenever there is a
need to match on any `MapSet`. Note though the struct
fields are private and must not be accessed directly.
Instead, use t... | 22.305476 | 88 | 0.580103 |
1d8a25dcf2c21abd1ec019bca2bc7da8d4d9e3fc | 534 | exs | Elixir | config/runtime.exs | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | null | null | null | config/runtime.exs | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | 11 | 2015-09-10T02:03:49.000Z | 2021-11-25T11:38:59.000Z | config/runtime.exs | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | null | null | null | import Config
if config_env() == :prod do
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
environment variable SECRET_KEY_BASE is missing.
You can generate one by calling: mix phx.gen.secret
"""
config :blog, BlogWeb.Endpoint,
# IMPORTANT: tell our app about the ho... | 26.7 | 77 | 0.642322 |
1d8a26f6ad505515bef66bd7a0347b5e2d63776e | 827 | ex | Elixir | lib/cloak/fields/float.ex | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | lib/cloak/fields/float.ex | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | lib/cloak/fields/float.ex | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | defmodule Cloak.Fields.Float do
@moduledoc """
An `Ecto.Type` to encrypt a float field.
## Migration
The database field must be of type `:binary`.
add :encrypted_field, :binary
## Usage
Define an `Encrypted.Float` module in your project:
defmodule MyApp.Encrypted.Float do
use Cloak... | 20.675 | 67 | 0.652963 |
1d8a5e96ca3648c0c661cc176d66a50e9d1964e7 | 1,110 | ex | Elixir | lib/niacademy_web/controllers/activity_controller.ex | Ruin0x11/niacademy | f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f | [
"MIT"
] | null | null | null | lib/niacademy_web/controllers/activity_controller.ex | Ruin0x11/niacademy | f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f | [
"MIT"
] | null | null | null | lib/niacademy_web/controllers/activity_controller.ex | Ruin0x11/niacademy | f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f | [
"MIT"
] | null | null | null | defmodule NiacademyWeb.ActivityController do
use NiacademyWeb, :controller
alias Niacademy.Session
def create(conn, params) do
with session_params <- Niacademy.Db.create_session_changeset(params),
{:ok, %Session{} = session} <- Session.create(session_params) do
conn
|> redirect(to: Route... | 37 | 110 | 0.683784 |
1d8a681c38a2dfc7964c7e1c7dbfc28e76228ea7 | 1,474 | ex | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/notifications/email/template.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/notifications/email/template.ex | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/notifications/email/template.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2019-07-12T11:16:42.000Z | 2020-06-08T15:03:36.000Z | defmodule <%= @project_name_camel_case %>.Notifications.Email.Template do
@moduledoc """
PRIVATE module which renders email templates from `templates/`.
## Example
<%= @project_name_camel_case %>.Notifications.Email.Template.render("sample.html", %{name: "John"})
# => "<p>Hi John!</p>"
"""
@tem... | 29.48 | 105 | 0.642469 |
1d8a6c130136450ccbac7e44aa481844ffaa9f0e | 4,308 | ex | Elixir | lib/logger/lib/logger/formatter.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/logger/lib/logger/formatter.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/formatter.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [inspect: 2]
defmodule Logger.Formatter do
@moduledoc ~S"""
Conveniences for formatting data for logs.
This module allows developers to specify a string that
serves as template for log messages, for example:
$time $metadata[$level] $message\n
Will print error messages as:
... | 35.311475 | 99 | 0.64624 |
1d8ab5b4cec72adea84d0839b892a7e01ebad0af | 3,386 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/operation_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/operation_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/operation_metadata.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 ... | 43.974026 | 169 | 0.689604 |
1d8aba4546a9a2945ed991498bb51246a5987da1 | 192 | exs | Elixir | apps/core/priv/repo/migrations/20181022150711_add_assignee_id_to_contract_requests.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/repo/migrations/20181022150711_add_assignee_id_to_contract_requests.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/repo/migrations/20181022150711_add_assignee_id_to_contract_requests.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Repo.Migrations.AddAssigneeIdToContractRequests do
use Ecto.Migration
def change do
alter table(:contract_requests) do
add(:assignee_id, :uuid)
end
end
end
| 19.2 | 65 | 0.744792 |
1d8ac1e48947b190dc31ce9aad45456660828b7a | 2,092 | ex | Elixir | lib/stripe_post/api.ex | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | null | null | null | lib/stripe_post/api.ex | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | 1 | 2021-07-22T19:32:28.000Z | 2021-07-22T20:04:03.000Z | lib/stripe_post/api.ex | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | null | null | null | defmodule StripePost.Api do
@moduledoc """
Take several options, and an HTTP method and send the request to StripePost
The available options are comprised of those to helper generate the StripePost
URL, to extract data for the request and authenticate your API call.
URL `opts` (to help create the resolved S... | 33.206349 | 101 | 0.674952 |
1d8acef795ad9cb8319d59e6a70aa1f71fe9ae2c | 1,113 | exs | Elixir | config/config.exs | couchemar/elixir-janus | 50dd60ff056ea93dd282fb8ea050d1addf4bfc5d | [
"MIT"
] | 41 | 2016-12-21T13:28:14.000Z | 2021-09-11T14:48:05.000Z | config/config.exs | meetupcall/elixir-janus | af24ac04ef61d40ea0a582c0d182826d2075eb72 | [
"MIT"
] | 11 | 2017-01-04T20:22:16.000Z | 2020-09-07T06:29:22.000Z | config/config.exs | meetupcall/elixir-janus | af24ac04ef61d40ea0a582c0d182826d2075eb72 | [
"MIT"
] | 13 | 2016-12-21T13:28:16.000Z | 2021-05-15T07:48:50.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... | 35.903226 | 73 | 0.750225 |
1d8b0c5a6950ccc7c40f91f1b49dc8b22c943aa3 | 483 | ex | Elixir | apps/naive/lib/naive/supervisor.ex | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | apps/naive/lib/naive/supervisor.ex | Cinderella-Man/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | apps/naive/lib/naive/supervisor.ex | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | defmodule Naive.Supervisor do
use Supervisor
def start_link(_) do
Supervisor.start_link(
__MODULE__,
[],
name: __MODULE__
)
end
def init(_) do
Supervisor.init(
[
{Registry, [keys: :unique, name: :naive_symbol_supervisors]},
{Naive.DynamicSymbolSupervisor, []... | 18.576923 | 69 | 0.57971 |
1d8b112964ca7454321af626f6e56aba812e1384 | 3,237 | exs | Elixir | config/runtime.exs | moroz/phoenix-totp-demo | b07b1925a1116ecbade15cb37764e4aebf442b5b | [
"MIT"
] | null | null | null | config/runtime.exs | moroz/phoenix-totp-demo | b07b1925a1116ecbade15cb37764e4aebf442b5b | [
"MIT"
] | null | null | null | config/runtime.exs | moroz/phoenix-totp-demo | b07b1925a1116ecbade15cb37764e4aebf442b5b | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 37.639535 | 82 | 0.699104 |
1d8b183c067eae783e6168a181692ca140580540 | 6,943 | exs | Elixir | deps/ecto_sql/integration_test/sql/transaction.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto_sql/integration_test/sql/transaction.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto_sql/integration_test/sql/transaction.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Ecto.Integration.TransactionTest do
# We can keep this test async as long as it
# is the only one access the transactions table
use Ecto.Integration.Case, async: true
import Ecto.Query
alias Ecto.Integration.PoolRepo # Used for writes
alias Ecto.Integration.TestRepo # Used for reads
@... | 26.910853 | 99 | 0.605934 |
1d8b3fee1d4dafbc858625f38e59044355cceaec | 776 | ex | Elixir | atom.symlink copy/packages/autocomplete-elixir/lib/alchemide/typer/lib/scoper.ex | SingularityMatrix/-dotfiles- | 74c43bea42b966184ae0180970ef88686cee4fab | [
"MIT"
] | null | null | null | atom.symlink copy/packages/autocomplete-elixir/lib/alchemide/typer/lib/scoper.ex | SingularityMatrix/-dotfiles- | 74c43bea42b966184ae0180970ef88686cee4fab | [
"MIT"
] | null | null | null | atom.symlink copy/packages/autocomplete-elixir/lib/alchemide/typer/lib/scoper.ex | SingularityMatrix/-dotfiles- | 74c43bea42b966184ae0180970ef88686cee4fab | [
"MIT"
] | null | null | null | defmodule Scoper do
def close_block (code) do
end
def compile(string) do
handle(Code.string_to_quoted string )
end
def handle {:error, {line, msg, _}} do
end
def handle {:ok, code} do
end
def get_variables({a,_b,c}) when not is_list(c) do
[a]
end
def get_variables(a) when is_tupl... | 17.244444 | 69 | 0.618557 |
1d8b52469c01d03027f507e794ffc945eeed408e | 709 | exs | Elixir | test/core/util_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | test/core/util_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | test/core/util_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Cloud Stack Lang Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 35.45 | 74 | 0.770099 |
1d8b6431718518d96f7ebf094166ce38980b0a53 | 1,550 | ex | Elixir | daily_meals/test/support/data_case.ex | joabehenrique/daily-meals | ea8919a45dc155046289c96854348bd7ed89c1fb | [
"MIT"
] | null | null | null | daily_meals/test/support/data_case.ex | joabehenrique/daily-meals | ea8919a45dc155046289c96854348bd7ed89c1fb | [
"MIT"
] | null | null | null | daily_meals/test/support/data_case.ex | joabehenrique/daily-meals | ea8919a45dc155046289c96854348bd7ed89c1fb | [
"MIT"
] | null | null | null | defmodule DailyMeals.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,
we enable the SQL sandbox, so changes done t... | 27.678571 | 77 | 0.692258 |
1d8b7eb98524ec9985fc1eaf7175468b0ba7985c | 14,210 | ex | Elixir | lib/brando_admin/components/form/input/image.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_admin/components/form/input/image.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_admin/components/form/input/image.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input.Image do
use Surface.LiveComponent
use Phoenix.HTML
import Ecto.Changeset
alias BrandoAdmin.Components.Modal
alias BrandoAdmin.Components.Form.FieldBase
# alias BrandoAdmin.Components.Form.Input.Image.FocalPoint
alias BrandoAdmin.Components.Form.MapInputs
al... | 44.130435 | 774 | 0.469529 |
1d8ba15b5c5305ea3ba529cb8e161ec2f3bf5373 | 569 | ex | Elixir | lib/purely.ex | jdfrens/ex_pfds | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | 7 | 2016-12-13T22:15:35.000Z | 2021-12-14T14:37:10.000Z | lib/purely.ex | jdfrens/ex_pfds | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | 31 | 2019-04-26T19:46:51.000Z | 2022-03-23T11:56:12.000Z | lib/purely.ex | jdfrens/purely | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | null | null | null | defmodule Purely do
@moduledoc """
Elixir implementation of purely functional data structures as
described in [_Purely Functional Data
Structures_](https://www.amazon.com/Purely-Functional-Structures-Chris-Okasaki-ebook/dp/B00AKE1V04)
by Chris Okasaki.
Typespecs are included but are obviously not as rigoro... | 37.933333 | 101 | 0.771529 |
1d8c069b4660b7cb4cd2d685f4e860eea4bf9956 | 5,382 | exs | Elixir | config/runtime.exs | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | config/runtime.exs | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | config/runtime.exs | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.442857 | 97 | 0.692122 |
1d8c0db7846756ccee9d6d0dee2ce709279a520f | 359 | ex | Elixir | packages/elixir/lib/riptide/handlers/mutation.ex | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 11 | 2020-01-20T16:42:00.000Z | 2021-09-18T11:36:45.000Z | packages/elixir/lib/riptide/handlers/mutation.ex | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 16 | 2020-04-05T19:26:14.000Z | 2020-05-21T14:50:59.000Z | packages/elixir/lib/riptide/handlers/mutation.ex | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 2 | 2020-10-16T11:01:57.000Z | 2021-01-20T21:11:52.000Z | defmodule Riptide.Handler.Mutation do
@moduledoc false
use Riptide.Handler
def handle_call("riptide.mutation", mut, state) do
(mut["merge"] || %{})
|> Riptide.Mutation.new(mut["delete"] || %{})
|> Riptide.mutation(state)
|> case do
{:ok, _mut} -> {:reply, :ok, state}
{:error, err} -> ... | 23.933333 | 52 | 0.590529 |
1d8c18c5272b774b78bf94fd1f4e41969338286a | 3,300 | ex | Elixir | lib/advent_of_code.ex | JohnB/2021adventOfCode | 9fa651f22bf4813930994722761b924ee981a7dc | [
"Apache-2.0"
] | null | null | null | lib/advent_of_code.ex | JohnB/2021adventOfCode | 9fa651f22bf4813930994722761b924ee981a7dc | [
"Apache-2.0"
] | null | null | null | lib/advent_of_code.ex | JohnB/2021adventOfCode | 9fa651f22bf4813930994722761b924ee981a7dc | [
"Apache-2.0"
] | 1 | 2021-12-10T19:18:37.000Z | 2021-12-10T19:18:37.000Z | defmodule AdventOfCode do
@moduledoc """
Helper module for dealing with text input from the AOC puzzles.
Originally created for the 2021 competition.
To use from LiveBook:
IEx.Helpers.c("lib/advent_of_code.ex")
alias AdventOfCode, as: AOC
"""
alias Kino
# Grid-based helpers
def as_grid(multi... | 24.626866 | 79 | 0.619697 |
1d8c22adb1616ffa66c130cbc207f1a798a867d7 | 1,929 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/search_transitive_memberships_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/search_transitive_memberships_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/search_transitive_memberships_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.58 | 156 | 0.75635 |
1d8c492b3cd05b9298577f3f2730d097fa1756b5 | 4,366 | ex | Elixir | apps/toniefy/lib/toniex_web/controllers/user_auth.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 17 | 2021-04-12T10:01:14.000Z | 2022-02-25T17:30:27.000Z | apps/toniefy/lib/toniex_web/controllers/user_auth.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 1 | 2022-03-09T09:35:00.000Z | 2022-03-09T11:46:14.000Z | apps/toniefy/lib/toniex_web/controllers/user_auth.ex | benvp/toniefy | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | null | null | null | defmodule ToniexWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias Toniex.Accounts
alias ToniexWeb.Router.Helpers, as: Routes
# Make the remember me cookie valid for 60 days.
# If you want bump or reduce this value, also change
# the token expiry itself in UserToken.
@max_age 60 * 60 * 2... | 29.106667 | 81 | 0.694457 |
1d8c5564f846a34a27c42449d175b30e282e4316 | 2,220 | ex | Elixir | apps/admin_api/lib/admin_api/v1/auth/admin_api_auth.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/auth/admin_api_auth.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/auth/admin_api_auth.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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 writi... | 31.267606 | 78 | 0.697748 |
1d8c5efc6939eb3764117af7cc8c5cf7c189fdae | 227,048 | ex | Elixir | lib/cldr/language_tag/rfc5646_parser.ex | nickel/cldr | 4c463326bd699a167d58b00aeb226489306dd7f8 | [
"Apache-2.0"
] | null | null | null | lib/cldr/language_tag/rfc5646_parser.ex | nickel/cldr | 4c463326bd699a167d58b00aeb226489306dd7f8 | [
"Apache-2.0"
] | null | null | null | lib/cldr/language_tag/rfc5646_parser.ex | nickel/cldr | 4c463326bd699a167d58b00aeb226489306dd7f8 | [
"Apache-2.0"
] | null | null | null | # Generated from ./lib/cldr/language_tag/rfc5646_parser.ex.exs, do not edit.
# Generated at 2021-07-01 10:19:10Z.
defmodule Cldr.Rfc5646.Parser do
@moduledoc false
alias Cldr.LanguageTag
import Cldr.Rfc5646.Helpers
def parse(rule \\ :language_tag, input) when is_atom(rule) and is_binary(input) do
apply(... | 29.525098 | 133 | 0.579622 |
1d8c5f56a57c9a94643726b04ddfbe7a967bbf5c | 106 | ex | Elixir | apple_store/lib/compute.ex | anildigital/advanced_elixir | 602717dc4f20ab6ae0e3fccbf575d79fea41d030 | [
"Apache-2.0"
] | null | null | null | apple_store/lib/compute.ex | anildigital/advanced_elixir | 602717dc4f20ab6ae0e3fccbf575d79fea41d030 | [
"Apache-2.0"
] | null | null | null | apple_store/lib/compute.ex | anildigital/advanced_elixir | 602717dc4f20ab6ae0e3fccbf575d79fea41d030 | [
"Apache-2.0"
] | null | null | null | defmodule Compute do
def process_events(events) do
Enum.map(events, fn (n) -> n * 100 end)
end
end | 21.2 | 43 | 0.679245 |
1d8c665ca6d663bf92b06905d1c781b732bc2201 | 395 | ex | Elixir | lib/opentelemetry_logger_metadata.ex | salemove/opentelemetry_logger_metadata | 775f9254fe1e343ac877a2ed0ac73ad39225bc29 | [
"MIT"
] | null | null | null | lib/opentelemetry_logger_metadata.ex | salemove/opentelemetry_logger_metadata | 775f9254fe1e343ac877a2ed0ac73ad39225bc29 | [
"MIT"
] | 4 | 2021-09-20T21:29:19.000Z | 2022-03-31T18:02:47.000Z | lib/opentelemetry_logger_metadata.ex | salemove/opentelemetry_logger_metadata | 775f9254fe1e343ac877a2ed0ac73ad39225bc29 | [
"MIT"
] | null | null | null | defmodule OpentelemetryLoggerMetadata do
@moduledoc """
Adds OpenTelemetry trace identifiers to logs.
In your application start:
```elixir
def start(_type, _args) do
OpenTelemetry.register_application_tracer(:my_project)
OpentelemetryLoggerMetadata.setup()
# ...
end
```
... | 18.809524 | 62 | 0.681013 |
1d8c73032e033b4fa645f49a9ee7015faf86289f | 13,460 | ex | Elixir | lib/mix/lib/mix/project.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/project.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/project.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Project do
@moduledoc """
Defines and manipulate Mix projects.
In order to configure Mix, a developer needs to use
`Mix.Project` in a module and define a function named
`project` that returns a keyword list with configuration.
defmodule MyApp do
use Mix.Project
def proje... | 26.866267 | 103 | 0.644205 |
1d8c7313643228cc7579e8e7ca3f2ecd59f709bf | 2,322 | ex | Elixir | lib/sbom_poc_web.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 2 | 2020-10-04T12:41:58.000Z | 2021-03-11T20:51:26.000Z | lib/sbom_poc_web.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 113 | 2020-07-25T02:29:33.000Z | 2022-03-01T01:07:23.000Z | lib/sbom_poc_web.ex | TraceyOnim/SbomPoc-sFractal | bac895a7eda61c47c00b8bbe682a6fda4dd7255c | [
"MIT"
] | 5 | 2020-07-10T09:57:58.000Z | 2021-03-11T20:51:29.000Z | defmodule SbomPocWeb 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 SbomPocWeb, :controller
use SbomPocWeb, :view
The definitions below will be executed for every view,
controller, ... | 22.543689 | 78 | 0.682171 |
1d8c7aca4b0c0b67edc6b45a1935f05c9ed9f235 | 253 | exs | Elixir | priv/repo/migrations/20180218221754_add_room_id_to_quest_steps.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20180218221754_add_room_id_to_quest_steps.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20180218221754_add_room_id_to_quest_steps.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.AddRoomIdToQuestSteps do
use Ecto.Migration
def change do
alter table(:quest_steps) do
add :room_id, references(:rooms)
end
create index(:quest_steps, [:quest_id, :room_id], unique: true)
end
end
| 21.083333 | 67 | 0.715415 |
1d8c8c390e9cd0ec697a9d66dc23ba0bc6c18d93 | 155 | exs | Elixir | .formatter.exs | manuel-rubio/gutenex | 73b87d2c948dc4afb08559c853d42e01779b6419 | [
"MIT"
] | null | null | null | .formatter.exs | manuel-rubio/gutenex | 73b87d2c948dc4afb08559c853d42e01779b6419 | [
"MIT"
] | null | null | null | .formatter.exs | manuel-rubio/gutenex | 73b87d2c948dc4afb08559c853d42e01779b6419 | [
"MIT"
] | null | null | null | [
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"],
subdirectories: ["priv/*/migrations"],
line_length: 80
# locals_without_parens: [],
]
| 22.142857 | 60 | 0.587097 |
1d8c9d20ff814d93f85bff3adc8213c4106d0f9e | 216 | exs | Elixir | apps/core/priv/prm_repo/migrations/20180303100446_add_fields_to_parties.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20180303100446_add_fields_to_parties.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20180303100446_add_fields_to_parties.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.AddFieldsToParties do
use Ecto.Migration
def change do
alter table(:parties) do
add(:about_myself, :string)
add(:working_experience, :integer)
end
end
end
| 19.636364 | 55 | 0.712963 |
1d8cc9a8e62cc1b262f737d8a740112fcaba9a58 | 2,703 | exs | Elixir | mix.exs | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 1 | 2022-02-10T13:54:39.000Z | 2022-02-10T13:54:39.000Z | mix.exs | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 11 | 2020-07-10T16:05:17.000Z | 2020-08-25T23:44:34.000Z | mix.exs | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 1 | 2020-08-06T18:56:52.000Z | 2020-08-06T18:56:52.000Z | defmodule Birdcage.MixProject do
use Mix.Project
def project do
[
app: :birdcage,
version: "1.4.3",
description: "Birdcage",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
test_coverage: [tool: ExCoveralls... | 28.15625 | 84 | 0.553459 |
1d8d25d85c3153e8083a8fe6a00111b9da22c0f8 | 1,840 | ex | Elixir | lib/external_info.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | lib/external_info.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | lib/external_info.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | defmodule ExternalInfo do
@moduledoc """
Helper code to work with external information. This ensures it's
easy to add specifically scoped data to structs.
In order to use the methods offered by this module, the struct must
have an ':external' property containing a map.
The most common use is to use Exter... | 28.307692 | 70 | 0.678261 |
1d8d26bd3b1c1611851ea826937bbd4b4b875c7f | 589 | ex | Elixir | priv/catalogue/hergetto_web/hero/example02.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 8 | 2021-03-07T16:24:05.000Z | 2022-02-28T02:36:35.000Z | priv/catalogue/hergetto_web/hero/example02.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | 126 | 2021-02-15T10:51:07.000Z | 2022-03-28T02:25:01.000Z | priv/catalogue/hergetto_web/hero/example02.ex | dusthijsvdh/hergetto | 87598d8023a68fdb23b0eeb7659f5c61113997c9 | [
"MIT"
] | null | null | null | defmodule HergettoWeb.Components.Hero.Example02 do
@moduledoc """
Example using the `color` property.
"""
use Surface.Catalogue.Example,
subject: HergettoWeb.Components.Hero,
height: "700px",
title: "Colors"
alias HergettoWeb.Components.Hero
def render(assigns) do
~F"""
<Hero
na... | 17.848485 | 50 | 0.585739 |
1d8d3bdbcfecf2790219da4601056a270355016c | 1,337 | ex | Elixir | lib/ingram_marketplace/deserializer.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/deserializer.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/deserializer.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | defmodule Ingram.Marketplace.Deserializer do
@moduledoc """
Helper functions for deserializing responses into models
"""
alias Poison.Decode
@doc """
Update the provided model with a deserialization of a nested value
"""
@spec deserialize(map(), atom(), :date | :list | :map | :struct, any(), keyword() ... | 26.74 | 93 | 0.61107 |
1d8d8c03b44d96f2ae3b76ccf1cb7f939941a56b | 162 | exs | Elixir | lib/otp_applications/test/otp_applications_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | lib/otp_applications/test/otp_applications_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | 1 | 2020-01-28T00:19:53.000Z | 2020-01-28T00:19:53.000Z | lib/otp_applications/test/otp_applications_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | defmodule OTPApplicationsTest do
use ExUnit.Case
doctest OTPApplications
test "greets the world" do
assert OTPApplications.hello() == :world
end
end
| 18 | 44 | 0.753086 |
1d8dc70632ff74c3f9674b507c3615fd66193052 | 2,102 | ex | Elixir | apps/pipeline/lib/pipeline/writer/table_writer.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/pipeline/lib/pipeline/writer/table_writer.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/pipeline/lib/pipeline/writer/table_writer.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule Pipeline.Writer.TableWriter do
@moduledoc """
Implementation of `Pipeline.Writer` for PrestoDB tables.
"""
@behaviour Pipeline.Writer
alias Pipeline.Writer.TableWriter.{Compaction, Statement}
alias Pipeline.Application
require Logger
@type schema() :: [map()]
@impl Pipeline.Writer
@spec... | 24.16092 | 86 | 0.618934 |
1d8dd62a9c8ce65da6ab8f71320a4b3ba5ee5bc3 | 1,055 | ex | Elixir | learning/gnome/game/socket_gallows/lib/socket_gallows_web/channels/hangman_channel.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/gnome/game/socket_gallows/lib/socket_gallows_web/channels/hangman_channel.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/gnome/game/socket_gallows/lib/socket_gallows_web/channels/hangman_channel.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule SocketGallowsWeb.HangmanChannel do
require Logger
use Phoenix.Channel
@type response() :: {:ok | :noreply, Phoenix.Socket.t()}
@spec join(room :: String.t(), list, Phoenix.Socket.t()) :: response()
def join("hangman:game", _args, socket) do
game = Hangman.new_game()
socket = assign(socket,... | 25.731707 | 81 | 0.65782 |
1d8dd96a021f45c09ddb8e350495835e8385b3dd | 1,256 | exs | Elixir | exercism/elixir/nucleotide-count/test/nucleotide_count_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/nucleotide-count/test/nucleotide_count_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/nucleotide-count/test/nucleotide_count_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule NucleotideCountTest do
use ExUnit.Case
describe "count" do
test "empty dna string has no adenine" do
assert NucleotideCount.count('', ?A) == 0
end
test "one nucleotide" do
assert NucleotideCount.count('G', ?G) == 1
end
test "repetitive cytosine gets counted" do
ass... | 27.911111 | 82 | 0.613057 |
1d8e054422192425af07890eadbf70248890d0a5 | 3,503 | ex | Elixir | lib/swagger/client/api/api_docsapplications_format.ex | CordBoard/ostip-exari | a7a40e438c9a2ab358c28c164cec445a0345d15e | [
"Apache-2.0"
] | null | null | null | lib/swagger/client/api/api_docsapplications_format.ex | CordBoard/ostip-exari | a7a40e438c9a2ab358c28c164cec445a0345d15e | [
"Apache-2.0"
] | null | null | null | lib/swagger/client/api/api_docsapplications_format.ex | CordBoard/ostip-exari | a7a40e438c9a2ab358c28c164cec445a0345d15e | [
"Apache-2.0"
] | 1 | 2018-10-27T07:10:02.000Z | 2018-10-27T07:10:02.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Swagger.Client.Api.ApiDocsapplicationsFormat do
@moduledoc """
API calls for all endpoints tagged `ApiDocsapplicationsFormat`.
"""
alias ... | 30.46087 | 147 | 0.663431 |
1d8e21905d31a5a5ef1b85f9a1f676da3776acf0 | 473 | exs | Elixir | test/faker/name_test.exs | forksss/faker | 380ca7d5f5be6a43fdbbe471ee96a60cd7c706fe | [
"MIT"
] | 2 | 2016-04-23T15:09:51.000Z | 2017-03-02T12:04:42.000Z | test/faker/name_test.exs | batate/faker | b352ea8254ddf3185ce2839f91c862605e8a0498 | [
"MIT"
] | null | null | null | test/faker/name_test.exs | batate/faker | b352ea8254ddf3185ce2839f91c862605e8a0498 | [
"MIT"
] | null | null | null | defmodule NameTest do
use ExUnit.Case, async: true
test "first_name/0" do
assert is_binary(Faker.Name.first_name)
end
test "last_name/0" do
assert is_binary(Faker.Name.last_name)
end
test "name/0" do
assert is_binary(Faker.Name.name)
end
test "prefix/0" do
assert is_binary(Faker.Name... | 16.892857 | 43 | 0.693446 |
1d8e2c65b161e150ab4f2774e838d749dd024154 | 10,220 | exs | Elixir | test/phoenix/router/resources_test.exs | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | test/phoenix/router/resources_test.exs | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | test/phoenix/router/resources_test.exs | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.ResourcesTest do
use ExUnit.Case, async: true
use RouterHelper
defmodule UserController do
use Phoenix.Controller
def show(conn, _params), do: text(conn, "show users")
def index(conn, _params), do: text(conn, "index users")
def new(conn, _params), do: text(conn, "new user... | 33.398693 | 100 | 0.631996 |
1d8e42105d6326dc7de22b6339fc296d257f4da5 | 1,388 | ex | Elixir | lib/phoenix_sample_web/router.ex | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | null | null | null | lib/phoenix_sample_web/router.ex | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | null | null | null | lib/phoenix_sample_web/router.ex | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixSampleWeb.Router do
use PhoenixSampleWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {PhoenixSampleWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipelin... | 28.916667 | 87 | 0.716138 |
1d8e6e8a7f6aa93e51ca7123b759dd636c64cf18 | 1,965 | ex | Elixir | web/controllers/payment_controller.ex | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | 1 | 2016-02-04T17:16:54.000Z | 2016-02-04T17:16:54.000Z | web/controllers/payment_controller.ex | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | web/controllers/payment_controller.ex | sysdia-solutions/basic_books | 251dae71d1dc3d5516464e38e0efede1af9949fe | [
"MIT"
] | null | null | null | defmodule BasicBooks.PaymentController do
use BasicBooks.Web, :controller
alias BasicBooks.Payment
plug :scrub_params, "payment" when action in [:create, :update]
def index(conn, _params) do
payments = Repo.all(Payment)
render(conn, "index.html", payments: payments)
end
def new(conn, _params) do... | 28.897059 | 73 | 0.640712 |
1d8ee61d28676346377e925dfda1090fd9620317 | 312 | exs | Elixir | programming_elixir/chapter6/guard.exs | hectoregm/elixir | c4dc9cd327c6d935de93337e5c52d58b82c4d339 | [
"MIT"
] | null | null | null | programming_elixir/chapter6/guard.exs | hectoregm/elixir | c4dc9cd327c6d935de93337e5c52d58b82c4d339 | [
"MIT"
] | null | null | null | programming_elixir/chapter6/guard.exs | hectoregm/elixir | c4dc9cd327c6d935de93337e5c52d58b82c4d339 | [
"MIT"
] | null | null | null | defmodule Guard do
def what_is(x) when is_number(x) do
IO.puts "#{x} is a number"
end
def what_is(x) when is_list(x) do
IO.puts "#{inspect(x)} is a list"
end
def what_is(x) when is_atom(x) do
IO.puts "#{x} is an atom"
end
end
Guard.what_is(99)
Guard.what_is(:cat)
Guard.what_is([1,2,3])
| 19.5 | 37 | 0.644231 |
1d8ee6ff56f0a071b5aca75318872606893dc375 | 1,803 | ex | Elixir | clients/firebase_ml/lib/google_api/firebase_ml/v1/model/list_operations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_ml/lib/google_api/firebase_ml/v1/model/list_operations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_ml/lib/google_api/firebase_ml/v1/model/list_operations_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.06 | 169 | 0.739323 |
1d8ef1b0e5bcea7deb1889135063af6576d2e4a4 | 634 | exs | Elixir | test/mix/tasks/list_usages_test.exs | mugimaru73/clean_mixer | cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/list_usages_test.exs | mugimaru73/clean_mixer | cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/list_usages_test.exs | mugimaru73/clean_mixer | cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.CleanMixer.ListUsagesTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "lists project components and their usages" do
output =
capture_io(fn ->
Mix.Task.rerun("clean_mixer.list_usages", ["-v"])
end)
assert output =~ "code_map <- [arch_map, compiler_manifests, ... | 27.565217 | 92 | 0.586751 |
1d8f65da63e04503baaee0d52af4a00a0c5caf3f | 2,288 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_refund.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_refund.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_refund.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... | 38.133333 | 137 | 0.734266 |
1d8f775b1ef111b4487339639ec6750e942103eb | 4,855 | ex | Elixir | lib/cachex/hook.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | lib/cachex/hook.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | lib/cachex/hook.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Hook do
@moduledoc """
Module controlling hook behaviour definitions.
This module defines the hook implementations for Cachex, allowing the user to
add hooks into the command execution. This means that users can build plugin
style listeners in order to do things like logging. Hooks can be re... | 25.552632 | 79 | 0.583934 |
1d8fa697b56ee338f4b3fa93edc4081420a9168d | 15,008 | ex | Elixir | lib/elixir/lib/record.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | defmodule Record do
@moduledoc """
Module to work with, define, and import records.
Records are simply tuples where the first element is an atom:
iex> Record.is_record {User, "john", 27}
true
This module provides conveniences for working with records at
compilation time, where compile-time fiel... | 32.840263 | 128 | 0.642791 |
1d8fa6a0ef6e8f445dd30b7e9111294bc5e43955 | 5,445 | exs | Elixir | blue_sky/priv/repo/seeds.exs | Rumel/bluesky | 9c68cad09e90d98411117ea7334f41c88c82ab19 | [
"MIT"
] | 2 | 2016-03-11T00:50:04.000Z | 2016-04-05T02:17:20.000Z | blue_sky/priv/repo/seeds.exs | Rumel/bluesky | 9c68cad09e90d98411117ea7334f41c88c82ab19 | [
"MIT"
] | null | null | null | blue_sky/priv/repo/seeds.exs | Rumel/bluesky | 9c68cad09e90d98411117ea7334f41c88c82ab19 | [
"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:
#
# BlueSky.Repo.insert!(%BlueSky.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will ... | 22.593361 | 139 | 0.635262 |
1d8fbf1c100149aac11ed9a1edb31e95c72e9058 | 1,100 | ex | Elixir | 2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo_web/controllers/todo_controller.ex | rellen/talks | 97e123e6cb331b78fa737c90cedc2974a35243e4 | [
"CC-BY-4.0"
] | 1 | 2022-02-16T09:00:34.000Z | 2022-02-16T09:00:34.000Z | 2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo_web/controllers/todo_controller.ex | rellen/talks | 97e123e6cb331b78fa737c90cedc2974a35243e4 | [
"CC-BY-4.0"
] | null | null | null | 2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo_web/controllers/todo_controller.ex | rellen/talks | 97e123e6cb331b78fa737c90cedc2974a35243e4 | [
"CC-BY-4.0"
] | null | null | null | defmodule PromExDemoWeb.TodoController do
use PromExDemoWeb, :controller
alias PromExDemo.Todos
alias PromExDemo.Todos.Todo
action_fallback PromExDemoWeb.FallbackController
def index(conn, _params) do
todo = Todos.list_todo()
render(conn, "index.json", todo: todo)
end
def create(conn, %{"todo"... | 25 | 73 | 0.630909 |
1d902012d55462fe1af6351909e5856200f8514c | 210 | exs | Elixir | priv/repo/migrations/20171201142852_add_video_hash_to_lesson.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 17 | 2017-11-14T14:03:18.000Z | 2021-12-10T04:18:48.000Z | priv/repo/migrations/20171201142852_add_video_hash_to_lesson.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 21 | 2017-11-19T13:38:07.000Z | 2022-02-10T00:11:14.000Z | priv/repo/migrations/20171201142852_add_video_hash_to_lesson.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 2 | 2019-09-03T03:32:13.000Z | 2021-02-23T21:52:57.000Z | defmodule Platform.Repo.Migrations.AddVideoHashToLesson do
use Ecto.Migration
def change do
alter table(:lessons) do
add :video_hash, :string
add :video_sync_pid, :string
end
end
end
| 19.090909 | 58 | 0.714286 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.