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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38b73866caafcb60997cd6863b117954e04a6d78 | 591 | exs | Elixir | apps/cms/test/custom_html5_scrubber_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/cms/test/custom_html5_scrubber_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/cms/test/custom_html5_scrubber_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule CMS.CustomHTML5ScrubberTest do
use ExUnit.Case, async: true
import CMS.CustomHTML5Scrubber
test "allows the mailto URI scheme" do
html = "Please email <a href=\"mailto:AACT@ctps.org\">AACT@ctps.org</a>"
assert html5(html) == html
end
test "allows the tel URI scheme" do
html = "Call me:... | 29.55 | 85 | 0.673435 |
38b74025372f301875de592de96310dd549e21e7 | 306 | ex | Elixir | graphql-elixir/lib/graphql_sample_web/schema/models.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | 1 | 2019-04-14T04:19:37.000Z | 2019-04-14T04:19:37.000Z | graphql-elixir/lib/graphql_sample_web/schema/models.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | null | null | null | graphql-elixir/lib/graphql_sample_web/schema/models.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | null | null | null | defmodule GraphqlSampleWeb.Schema.Models do
use Absinthe.Schema.Notation
@desc "Book"
object :book do
@desc "The book's id"
field :id, non_null(:id)
@desc "The book's title"
field :title, non_null(:string)
@desc "The book's author"
field :author, non_null(:string)
end
end
| 21.857143 | 43 | 0.669935 |
38b79043e73d7fe6b0ee96cde7922ca46a8c238f | 2,481 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.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 ... | 33.08 | 140 | 0.684805 |
38b79c12a9f8148fd7ff1fbc97de7dc86cb4df68 | 1,083 | exs | Elixir | test/conversion_test.exs | Zurga/cldr_units | d90ae5987608b741bd0f531fd760f1e142ff9293 | [
"Apache-2.0"
] | null | null | null | test/conversion_test.exs | Zurga/cldr_units | d90ae5987608b741bd0f531fd760f1e142ff9293 | [
"Apache-2.0"
] | null | null | null | test/conversion_test.exs | Zurga/cldr_units | d90ae5987608b741bd0f531fd760f1e142ff9293 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Unit.Conversion.Test do
use ExUnit.Case
alias Cldr.Unit.Test.ConversionData
for t <- ConversionData.conversions() do
test "##{t.line} that #{t.from} is convertible to #{t.to}" do
{:ok, from} = Cldr.Unit.Parser.canonical_base_unit(unquote(t.from))
{:ok, to} = Cldr.Unit.Parser.canon... | 32.818182 | 90 | 0.652816 |
38b7ac0f8b195975d5a275580a7589398cc7c514 | 1,805 | exs | Elixir | apps/service_profile/test/profile/event/handler_test.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_profile/test/profile/event/handler_test.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_profile/test/profile/event/handler_test.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Profile.Event.HandlerTest do
use ExUnit.Case
use Placebo
@instance Profile.Application.instance()
import Events, only: [extract_start: 0, profile_update: 0]
import Definition, only: [identifier: 1]
alias Profile.ViewState
setup do
allow Profile.Feed.Supervisor.start_child(any()), return: ... | 26.544118 | 73 | 0.606648 |
38b80799adf2ca90a032859311a9ae356767ec2d | 152 | ex | Elixir | web/controllers/page_controller.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | defmodule GitEctoSandbox.PageController do
use GitEctoSandbox.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 19 | 42 | 0.756579 |
38b83cde056d5c4f35bfbde02ed23dbe06e38150 | 2,028 | exs | Elixir | lib/ex_unit/test/ex_unit/capture_log_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/capture_log_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/capture_log_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule ExUnit.CaptureLogTest do
use ExUnit.Case
require Logger
import ExUnit.CaptureLog
setup_all do
:ok = Logger.remove_backend(:console)
on_exit(fn -> Logger.add_backend(:console, flush: true) end)
end
test "no output" do
assert capture_l... | 21.806452 | 64 | 0.596647 |
38b840a1843fcf7248ad256ed9ecdc1561b47a0a | 9,672 | ex | Elixir | lib/absinthe/resolution/helpers.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-10-10T02:57:52.000Z | 2019-10-10T02:57:52.000Z | lib/absinthe/resolution/helpers.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-09-23T21:26:01.000Z | 2019-09-23T21:26:01.000Z | lib/absinthe/resolution/helpers.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | null | null | null | defmodule Absinthe.Resolution.Helpers do
@moduledoc """
Handy functions for returning async or batched resolution functions
Using `Absinthe.Schema.Notation` or (by extension) `Absinthe.Schema` will
automatically import the `batch` and `async` helpers. Dataloader helpers
require an explicit `import Absinthe.R... | 32.02649 | 93 | 0.637614 |
38b85826fdc976b3b9a5fd579e94d3c806928728 | 286 | ex | Elixir | apps/wechat_mp/lib/wechat_mp/api/model/sns_user.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_mp/lib/wechat_mp/api/model/sns_user.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_mp/lib/wechat_mp/api/model/sns_user.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatMP.Api.Model.SNSUser do
use WechatBase.Api.Model.JsonResponse
model do
field :openid
field :nickname
field :sex, as: :gender
field :province
field :city
field :country
field :headimgurl
field :privilege
field :unionid
end
end
| 16.823529 | 39 | 0.681818 |
38b875a2156a944f9f43e9ab822b85e98ade4c4d | 4,079 | ex | Elixir | lib/changelog/schema/post/post.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog/schema/post/post.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog/schema/post/post.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Post do
use Changelog.Schema, default_sort: :published_at
alias Changelog.{Files, NewsItem, Person, PostTopic, Regexp}
schema "posts" do
field :title, :string
field :subtitle, :string
field :slug, :string
field :guid, :string
field :canonical_url, :string
field :ima... | 28.929078 | 98 | 0.679578 |
38b876155d7a225e8befd81189eea2b56b2d78b8 | 1,640 | ex | Elixir | lib/glimesh_web/live/events/components/event_card.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/live/events/components/event_card.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/live/events/components/event_card.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.Events.Components.EventCard do
use Surface.Component
alias Glimesh.EventsTeam.Event
alias GlimeshWeb.Router.Helpers, as: Routes
prop event, :struct
prop class, :css_class
slot footer
def render(%{event: %Event{}} = assigns) do
~F"""
<div class={"card h-100", @class}>
... | 28.275862 | 86 | 0.54878 |
38b8cc7ef7ca8765eb5ca9a934ba2a10f41beee1 | 1,137 | exs | Elixir | config/config.exs | MrCasimiro/elixir-xml-to-map | 51373f000c91ca104976ccdcdc679411e00b04a2 | [
"Apache-2.0"
] | 40 | 2017-05-27T00:05:01.000Z | 2022-03-17T05:10:48.000Z | config/config.exs | MrCasimiro/elixir-xml-to-map | 51373f000c91ca104976ccdcdc679411e00b04a2 | [
"Apache-2.0"
] | 11 | 2017-09-23T16:12:39.000Z | 2021-12-16T19:20:11.000Z | config/config.exs | MrCasimiro/elixir-xml-to-map | 51373f000c91ca104976ccdcdc679411e00b04a2 | [
"Apache-2.0"
] | 24 | 2017-01-18T05:06:18.000Z | 2021-11-21T19:26:12.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... | 36.677419 | 73 | 0.755497 |
38b8cd8be0ede607b4bddaaf09fd93d6e5f5ccde | 7,617 | ex | Elixir | lib/commanded/event_store/event_store.ex | tooploox/commanded | 50cd809830e82b535ce610c2baebc02d3ea13cfe | [
"MIT"
] | null | null | null | lib/commanded/event_store/event_store.ex | tooploox/commanded | 50cd809830e82b535ce610c2baebc02d3ea13cfe | [
"MIT"
] | null | null | null | lib/commanded/event_store/event_store.ex | tooploox/commanded | 50cd809830e82b535ce610c2baebc02d3ea13cfe | [
"MIT"
] | null | null | null | defmodule Commanded.EventStore do
@moduledoc """
Defines the behaviour to be implemented by an event store adapter to be used by Commanded.
"""
alias Commanded.EventStore.{EventData, RecordedEvent, SnapshotData}
@type stream_uuid :: String.t()
@type start_from :: :origin | :current | integer
@type expec... | 33.407895 | 98 | 0.68951 |
38b8e1136148b4912a097e83e5d3de77395cdc3b | 2,621 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/update_table_row_properties_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_table_row_properties_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_table_row_properties_request.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... | 45.982456 | 547 | 0.737505 |
38b916b4d592d912e796fcaba727c43e17193b6c | 402 | ex | Elixir | lib/rocketpay/accounts/deposit.ex | RafaelVsc/phx-rocketpay | 91435f0539a961691394809058b97a4e1b58fa84 | [
"RSA-MD"
] | 2 | 2021-03-01T09:15:57.000Z | 2021-03-02T23:30:57.000Z | lib/rocketpay/accounts/deposit.ex | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/deposit.ex | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | null | null | null | defmodule Rocketpay.Accounts.Deposit do
alias Rocketpay.Accounts.Operation
alias Rocketpay.Repo
def call(params) do
params
|> Operation.call(:deposit)
|> run_transaction()
end
defp run_transaction(multi) do
case Repo.transaction(multi) do
{:error, _operation, reason, _changes} -> {:er... | 21.157895 | 64 | 0.669154 |
38b92e89dc44c2936b35730e12f987795d9fac22 | 228 | exs | Elixir | 04_quicksort/elixir/04_recursive_max.exs | filchyboy/grokking_algorithms_work | 16dace97610e2cb0938704e2b8cfd6e92d6b024d | [
"MIT"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | book04grokkingAlgo/04_quicksort/elixir/04_recursive_max.exs | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 160 | 2021-04-26T19:04:15.000Z | 2022-03-26T20:18:37.000Z | book04grokkingAlgo/04_quicksort/elixir/04_recursive_max.exs | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | defmodule Recursive do
def max([x]), do: x
def max([head | tail]) do
get_max(head, max(tail))
end
defp get_max(x, y) when x > y, do: x
defp get_max(_, y), do: y
end
IO.puts(Recursive.max([1, 5, 10, 25, 16, 1]))
| 17.538462 | 45 | 0.592105 |
38b93705ea3edc0426d6f767c960e4fb759f2dc7 | 4,857 | ex | Elixir | lib/absinthe/phase/schema/introspection.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-10-10T02:57:52.000Z | 2019-10-10T02:57:52.000Z | lib/absinthe/phase/schema/introspection.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-09-23T21:26:01.000Z | 2019-09-23T21:26:01.000Z | lib/absinthe/phase/schema/introspection.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Schema.Introspection do
@moduledoc false
use Absinthe.Phase
alias Absinthe.Blueprint
alias Absinthe.Blueprint.Schema.FieldDefinition
alias Absinthe.Blueprint.Schema.InputValueDefinition
alias Absinthe.Blueprint.TypeReference.NonNull
alias Absinthe.Blueprint.Schema.ObjectTypeDefi... | 28.403509 | 97 | 0.628989 |
38b96cd9601d6473abf5f58e9c582fc577107702 | 5,325 | ex | Elixir | lib/cxs_starter/accounts/user.ex | antp/cxs_starter | 349cbd61e561f276b552f95e88e24e01397b8519 | [
"MIT"
] | null | null | null | lib/cxs_starter/accounts/user.ex | antp/cxs_starter | 349cbd61e561f276b552f95e88e24e01397b8519 | [
"MIT"
] | null | null | null | lib/cxs_starter/accounts/user.ex | antp/cxs_starter | 349cbd61e561f276b552f95e88e24e01397b8519 | [
"MIT"
] | null | null | null | defmodule CxsStarter.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
@derive {Inspect, except: [:password]}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :name, :string
field :email, :string
field :password, :string, virtual: true... | 30.603448 | 112 | 0.679249 |
38b98029b1e8a231e068779e0270320fa895b3d6 | 844 | ex | Elixir | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/operation_entity_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/operation_entity_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/operation_entity_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # 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 Microsoft.Azure.Management.Preview.BotService.Model.OperationEntityListResult do
@moduledoc """
The list of bot service operation response.
... | 28.133333 | 113 | 0.739336 |
38b9d28dad897dd4951e198b4348b14cc0285e61 | 1,462 | ex | Elixir | src/app/validation/lib/coda/statistics/block_production_rate.ex | sosedoff/coda | f1c2b807dc608d637c6f7ab933b527f16b413b22 | [
"Apache-2.0"
] | null | null | null | src/app/validation/lib/coda/statistics/block_production_rate.ex | sosedoff/coda | f1c2b807dc608d637c6f7ab933b527f16b413b22 | [
"Apache-2.0"
] | null | null | null | src/app/validation/lib/coda/statistics/block_production_rate.ex | sosedoff/coda | f1c2b807dc608d637c6f7ab933b527f16b413b22 | [
"Apache-2.0"
] | null | null | null | defmodule Coda.Statistics.BlockProductionRate do
@moduledoc "A scalar stastics that monitors the block production rate of a block producer"
alias Architecture.ResourceSet
alias Architecture.Statistic
use Statistic
@impl true
def log_providers, do: [Coda.Providers.BlockProduced]
@impl true
def resourc... | 25.206897 | 92 | 0.708618 |
38b9ea084dd2a7383ff8bd7ab88af17ea853e7be | 1,426 | ex | Elixir | test/support/api_case.ex | bitcrowd/carbonite | 663af92caa2afa8838cb43800da8e320f323276a | [
"Apache-2.0"
] | 26 | 2021-10-30T06:32:20.000Z | 2022-03-28T14:34:24.000Z | test/support/api_case.ex | bitcrowd/carbonite | 663af92caa2afa8838cb43800da8e320f323276a | [
"Apache-2.0"
] | 8 | 2021-10-20T08:03:34.000Z | 2022-02-25T08:48:14.000Z | test/support/api_case.ex | bitcrowd/carbonite | 663af92caa2afa8838cb43800da8e320f323276a | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
defmodule Carbonite.APICase do
@moduledoc false
use ExUnit.CaseTemplate
import Ecto.Changeset, only: [change: 2]
import Ecto.Query, only: [order_by: 2]
alias Carbonite.{Query, TestRepo, Transaction}
alias Ecto.Adapters.SQL.Sandbox
using do
quote do
import... | 20.666667 | 64 | 0.641655 |
38b9f7f99271f734645b7be6d3c5fbb26d6a5633 | 3,133 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_ship_line_items.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_ship_line_items.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_ship_line_items.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 ... | 44.126761 | 283 | 0.729652 |
38ba546f18cb659ddae92b84c5d72e4d94f9fa78 | 71 | ex | Elixir | lib/conductor_web/views/admin/home_view.ex | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | null | null | null | lib/conductor_web/views/admin/home_view.ex | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | 2 | 2021-03-10T20:23:26.000Z | 2021-05-11T15:56:49.000Z | lib/conductor_web/views/admin/home_view.ex | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | 1 | 2020-06-05T02:34:58.000Z | 2020-06-05T02:34:58.000Z | defmodule ConductorWeb.Admin.HomeView do
use ConductorWeb, :view
end
| 17.75 | 40 | 0.816901 |
38ba5d737707bccd74a1829350138d3fa23acedd | 6,061 | exs | Elixir | .credo.exs | pdgonzalez872/plaid-elixir | 90d14c24fc95cb4629920aadc14880bae3f5e28b | [
"MIT"
] | 50 | 2016-10-19T16:34:27.000Z | 2022-03-17T03:55:54.000Z | .credo.exs | pdgonzalez872/plaid-elixir | 90d14c24fc95cb4629920aadc14880bae3f5e28b | [
"MIT"
] | 47 | 2017-11-08T19:19:09.000Z | 2022-03-23T00:53:22.000Z | .credo.exs | pdgonzalez872/plaid-elixir | 90d14c24fc95cb4629920aadc14880bae3f5e28b | [
"MIT"
] | 40 | 2016-10-27T14:39:14.000Z | 2022-03-01T01:03:17.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 37.645963 | 91 | 0.633394 |
38ba9864c04d60bb8380a9ea6054ac59f157e36f | 2,251 | exs | Elixir | test/pow_assent/strategies/vk_test.exs | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | test/pow_assent/strategies/vk_test.exs | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | test/pow_assent/strategies/vk_test.exs | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | defmodule PowAssent.Strategy.VKTest do
use PowAssent.Test.OAuth2TestCase
alias PowAssent.Strategy.VK
@users_response [
%{
"id" => 210_700_286,
"first_name" => "Lindsay",
"last_name" => "Stirling",
"screen_name" => "lindseystirling",
"photo_200" => "https://pp.userapi.com/c84063... | 33.597015 | 171 | 0.632608 |
38bab3145164bbf67d0c2d0c0be249c7066e14cb | 1,656 | ex | Elixir | lib/ex_appointment_web/endpoint.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | 1 | 2021-03-28T17:41:37.000Z | 2021-03-28T17:41:37.000Z | lib/ex_appointment_web/endpoint.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | null | null | null | lib/ex_appointment_web/endpoint.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | null | null | null | defmodule ExAppointmentWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ex_appointment
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key... | 30.109091 | 97 | 0.726449 |
38bab3605fd6e10444b3d7e829a444569f5520e8 | 1,284 | ex | Elixir | lib/yggdrasil/config/icon.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | 4 | 2022-01-27T09:10:05.000Z | 2022-03-09T04:38:13.000Z | lib/yggdrasil/config/icon.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | lib/yggdrasil/config/icon.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | defmodule Yggdrasil.Config.Icon do
@moduledoc """
This module defines configuration variables for ICON 2.0 WebSocket connection.
"""
use Skogsra
@envdoc """
WebSocket max retries for the backoff algorithm. Defaults to `3`.
The backoff algorithm is exponential:
```
backoff_time = retries² * random(1... | 22.137931 | 80 | 0.672118 |
38babd27e382112a1c29a14de9ea0abc6df9b416 | 8,883 | ex | Elixir | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/api/servers.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/api/servers.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/api/servers.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # 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 Microsoft.Azure.Management.Database.MySql.Api.Servers do
@moduledoc """
API calls for all endpoints tagged `Servers`.
"""
alias Microsoft... | 48.540984 | 256 | 0.727907 |
38bac944db0a7d7adf09402813f4db8c175f6982 | 367 | ex | Elixir | lib/bitcoin/protocol/messages/verack.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | lib/bitcoin/protocol/messages/verack.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 2 | 2017-09-07T13:58:57.000Z | 2018-01-13T10:38:07.000Z | lib/bitcoin/protocol/messages/verack.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.Protocol.Messages.Verack do
@moduledoc """
The verack message is sent in reply to version.
This message consists of only a message header with the command string "verack".
https://en.bitcoin.it/wiki/Protocol_specification#verack
"""
defstruct []
def parse(_data) do
%__MODUL... | 19.315789 | 84 | 0.694823 |
38bafd0b438b8a5913020a500ca3963b74dffae9 | 210 | exs | Elixir | apps/re/priv/repo/migrations/20170626133913_create_listing.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20170626133913_create_listing.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20170626133913_create_listing.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.CreateListing do
use Ecto.Migration
def change do
create table(:listings) do
add :description, :string
add :name, :string
timestamps()
end
end
end
| 16.153846 | 45 | 0.666667 |
38bafd3bc1e2112ea4d83a75636db3d0e65a0748 | 6,899 | ex | Elixir | lib/bolt_sips/internals/bolt_protocol_v3.ex | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 242 | 2016-09-09T22:32:00.000Z | 2022-02-20T18:50:29.000Z | lib/bolt_sips/internals/bolt_protocol_v3.ex | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 100 | 2016-10-18T04:19:09.000Z | 2021-11-15T19:14:47.000Z | lib/bolt_sips/internals/bolt_protocol_v3.ex | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 51 | 2016-10-31T20:05:52.000Z | 2022-01-20T11:45:49.000Z | defmodule Bolt.Sips.Internals.BoltProtocolV3 do
alias Bolt.Sips.Internals.BoltProtocol
alias Bolt.Sips.Internals.BoltProtocolHelper
alias Bolt.Sips.Internals.Error
@doc """
Implementation of Bolt's HELLO. It initialises the connection.
Expects a transport module (i.e. `gen_tcp`) and a `Port`. Accepts
au... | 29.865801 | 100 | 0.63386 |
38bb36f3dc9a78190556a2203a60c52ef4984fb9 | 168 | ex | Elixir | test/support/only_query_schema.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | test/support/only_query_schema.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | test/support/only_query_schema.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Test.OnlyQuerySchema do
use Absinthe.Schema
query do
field :hello, :string do
resolve fn _, _ -> {:ok, "world"} end
end
end
end
| 16.8 | 43 | 0.654762 |
38bb90a006bd42fe2e9b0b8a30f736bc99c1926e | 2,951 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/configuration_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/configuration_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/configuration_spec.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... | 44.044776 | 177 | 0.749915 |
38bb92358aced424056eff8941bee27168a6d0e3 | 2,699 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.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... | 40.893939 | 158 | 0.742127 |
38bbda71b09ee0c3d2fa20c07d95985395c4ca79 | 717 | exs | Elixir | back-end/mix.exs | patternmatch/button-for-slack | 5d159d2662bcaacb0490f0523aec91bd3134e6a9 | [
"MIT"
] | 3 | 2019-03-15T07:11:36.000Z | 2020-01-19T03:23:00.000Z | back-end/mix.exs | patternmatch/button-for-slack | 5d159d2662bcaacb0490f0523aec91bd3134e6a9 | [
"MIT"
] | null | null | null | back-end/mix.exs | patternmatch/button-for-slack | 5d159d2662bcaacb0490f0523aec91bd3134e6a9 | [
"MIT"
] | null | null | null | defmodule ButtonForSlackEx.MixProject do
use Mix.Project
def project do
[
app: :button_for_slack_ex,
version: "1.0.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
def... | 20.485714 | 63 | 0.529986 |
38bbfa75a87192597f862abad6fff2d5dae56a87 | 4,997 | ex | Elixir | lib/rdf/star/quad.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | lib/rdf/star/quad.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | lib/rdf/star/quad.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 2 | 2018-01-19T15:48:27.000Z | 2020-03-01T00:29:35.000Z | defmodule RDF.Star.Quad do
@moduledoc """
Helper functions for RDF-star quads.
An RDF-star quad is represented as a plain Elixir tuple consisting of four valid
RDF values for subject, predicate, object and a graph name.
As opposed to an `RDF.Quad` the subject or object can be a triple.
"""
alias RDF.Sta... | 39.039063 | 151 | 0.644987 |
38bc135c59d4ffd84fc4a0c1c54460ac3027750f | 2,845 | ex | Elixir | lib/ecto/query/builder/group_by.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | lib/ecto/query/builder/group_by.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/group_by.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.GroupBy do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a list of quoted expressions.
See `Ecto.Builder.escape/2`.
iex> escape(quote do [x.x, 13] end, [x: 0], __ENV__)
{[{:{}, [], [{:{}, [], [:., [], [{:{}, [], [:&, ... | 28.737374 | 82 | 0.594728 |
38bc2c6b3086d090432d690a9277a26cec32e656 | 1,333 | ex | Elixir | apps/data_warehouse/lib/data_warehouse/subscriber/worker.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | apps/data_warehouse/lib/data_warehouse/subscriber/worker.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | apps/data_warehouse/lib/data_warehouse/subscriber/worker.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | defmodule DataWarehouse.Subscriber.Worker do
use GenServer
require Logger
defmodule State do
@enforce_keys [:topic]
defstruct [:topic]
end
def start_link(topic) do
GenServer.start_link(
__MODULE__,
topic,
name: via_tuple(topic)
)
end
def init(topic) do
Logger.info... | 19.602941 | 68 | 0.646662 |
38bc3011da1fe73fde4b601f9b66170032d5e373 | 680 | exs | Elixir | mix.exs | 3decibels/yams | c00bfb02f8c0e41d94afcd1a2d2dbf248fce5be0 | [
"MIT"
] | null | null | null | mix.exs | 3decibels/yams | c00bfb02f8c0e41d94afcd1a2d2dbf248fce5be0 | [
"MIT"
] | null | null | null | mix.exs | 3decibels/yams | c00bfb02f8c0e41d94afcd1a2d2dbf248fce5be0 | [
"MIT"
] | null | null | null | defmodule Yams.MixProject do
use Mix.Project
def project do
[
app: :yams,
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
[
mod: {Yams.App... | 19.428571 | 59 | 0.497059 |
38bc42c5c34937e5ff93151e8b1ac91e57ae2f59 | 1,257 | ex | Elixir | discuss/web/views/error_helpers.ex | vegashat/Cards | bfb5a4dfbd9d6b7cf5c0df576a39fa6f94bf7c34 | [
"Apache-2.0"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | discuss/web/views/error_helpers.ex | vegashat/Cards | bfb5a4dfbd9d6b7cf5c0df576a39fa6f94bf7c34 | [
"Apache-2.0"
] | 1 | 2021-03-09T12:34:49.000Z | 2021-03-09T12:34:49.000Z | discuss/web/views/error_helpers.ex | vegashat/Cards | bfb5a4dfbd9d6b7cf5c0df576a39fa6f94bf7c34 | [
"Apache-2.0"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | defmodule Discuss.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
content_tag :... | 30.658537 | 73 | 0.668258 |
38bc7645856b2e93d56cf30e332e85faf1d200f5 | 209 | ex | Elixir | lib/helpers/datetime.ex | lorantkurthy/elixir-janus | 3c468b91445f8bcddc58fe7c5356ddc6da625c9e | [
"Apache-2.0"
] | 8 | 2020-10-06T01:01:19.000Z | 2022-01-22T06:06:51.000Z | lib/helpers/datetime.ex | lorantkurthy/elixir-janus | 3c468b91445f8bcddc58fe7c5356ddc6da625c9e | [
"Apache-2.0"
] | 12 | 2020-08-24T14:47:34.000Z | 2020-10-05T08:03:56.000Z | lib/helpers/datetime.ex | lorantkurthy/elixir-janus | 3c468b91445f8bcddc58fe7c5356ddc6da625c9e | [
"Apache-2.0"
] | 3 | 2020-11-06T18:44:16.000Z | 2022-03-17T08:14:59.000Z | defmodule Janus.DateTimeUtils do
@behaviour DateTime.Behaviour
@datetime Application.get_env(:elixir_janus, :date_time_module, DateTime)
@impl true
def utc_now() do
@datetime.utc_now()
end
end
| 19 | 75 | 0.755981 |
38bcb5838f3955d963f40ff0b1038909c8446287 | 2,148 | ex | Elixir | lib/console/services/alertmanager.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | lib/console/services/alertmanager.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | lib/console/services/alertmanager.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.Services.Alertmanager do
use Console.Services.Base
alias Console.PubSub
alias Console.Schema.{AlertmanagerIncident, Notification}
alias Alertmanager.Alert
@sinks [
Console.Alertmanager.Notification,
Console.Alertmanager.Incidents
]
def get_notification(fingerprint),
do: Con... | 30.685714 | 103 | 0.649907 |
38bcc6966c35ac3d05f6b3d9b42beab779d6797c | 1,177 | exs | Elixir | test/phoenix_live_view/socket_test.exs | liveforeverx/phoenix_live_view | 19ed14d93d321eb85f07b29b05c3dd3954ac5972 | [
"MIT"
] | null | null | null | test/phoenix_live_view/socket_test.exs | liveforeverx/phoenix_live_view | 19ed14d93d321eb85f07b29b05c3dd3954ac5972 | [
"MIT"
] | null | null | null | test/phoenix_live_view/socket_test.exs | liveforeverx/phoenix_live_view | 19ed14d93d321eb85f07b29b05c3dd3954ac5972 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.SocketTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView
alias Phoenix.LiveView.{View, Socket}
alias Phoenix.LiveViewTest.{Endpoint, Router}
@socket View.configure_socket(%Socket{endpoint: Endpoint, router: Router}, %{})
describe "get_connect_params" do
test "raise... | 30.973684 | 81 | 0.697536 |
38bccba5281f25b93f709aa1cf2ae7ae698c5a61 | 31,673 | ex | Elixir | clients/storage/lib/google_api/storage/v1/api/buckets.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/api/buckets.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/api/buckets.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.628571 | 247 | 0.624254 |
38bce11f62a30de6a620b63f3fafd659e637677d | 2,835 | exs | Elixir | mix.exs | fire/accent | 027dd6d5909867f3468268c68b6adea47661e5c6 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | fire/accent | 027dd6d5909867f3468268c68b6adea47661e5c6 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | fire/accent | 027dd6d5909867f3468268c68b6adea47661e5c6 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Mixfile do
use Mix.Project
def project do
[
app: :accent,
version: "0.0.1",
elixir: "~> 1.7.0",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
... | 26.25 | 79 | 0.520988 |
38bce5e3ba4a3429e30322880ef6dacc947b1546 | 76 | ex | Elixir | web/views/doc_view.ex | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | web/views/doc_view.ex | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | web/views/doc_view.ex | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | defmodule MicroServerShell.DocView do
use MicroServerShell.Web, :view
end
| 19 | 37 | 0.828947 |
38bd091c83c93d61dbc0d99886a3553ad60db107 | 8,216 | exs | Elixir | test/google_apis/generator/elixir_generator/endpoint_test.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | test/google_apis/generator/elixir_generator/endpoint_test.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | test/google_apis/generator/elixir_generator/endpoint_test.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 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 writing, ... | 29.768116 | 216 | 0.628895 |
38bd1cfb1addddbb97d05b6c203db4b17a857484 | 667 | exs | Elixir | language-practice/Elixir/elixir-pdx/relyrics/mix.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-pdx/relyrics/mix.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-pdx/relyrics/mix.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | defmodule Relyric.Mixfile do
use Mix.Project
def project do
[app: :relyric,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more... | 20.212121 | 77 | 0.608696 |
38bd2688c062c7803d04d23123c47b66e700396d | 4,606 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/task_runner_settings.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/task_runner_settings.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/task_runner_settings.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... | 54.833333 | 476 | 0.741641 |
38bd2fa1b6e7833b87322953e6ad283bf069f69c | 324 | ex | Elixir | lib/forecastr/owm/http.ex | densefog/forecastr | 5b95b52ecd6a1324cac5e8616f693e929135a331 | [
"Apache-2.0"
] | 11 | 2018-03-26T07:09:17.000Z | 2020-01-12T21:52:03.000Z | lib/forecastr/owm/http.ex | densefog/forecastr | 5b95b52ecd6a1324cac5e8616f693e929135a331 | [
"Apache-2.0"
] | 3 | 2018-03-27T09:10:54.000Z | 2018-04-10T19:08:03.000Z | lib/forecastr/owm/http.ex | densefog/forecastr | 5b95b52ecd6a1324cac5e8616f693e929135a331 | [
"Apache-2.0"
] | 7 | 2018-03-26T07:09:20.000Z | 2021-03-06T14:43:44.000Z | defmodule Forecastr.OWM.HTTP do
@moduledoc false
use HTTPoison.Base
def process_request_url(url), do: "http://" <> url
def process_request_options(options),
do:
Keyword.merge(
options,
params: Map.merge(options[:params], %{APPID: Application.fetch_env!(:forecastr, :appid)})
)
... | 21.6 | 97 | 0.660494 |
38bd31f0bff0f3bd80f3e58852dc56e9a2a4cee2 | 751 | exs | Elixir | mix.exs | dbrundage89/kraken_client | d7561ed329856d055f0db988b3741547e1aab600 | [
"Apache-2.0"
] | null | null | null | mix.exs | dbrundage89/kraken_client | d7561ed329856d055f0db988b3741547e1aab600 | [
"Apache-2.0"
] | null | null | null | mix.exs | dbrundage89/kraken_client | d7561ed329856d055f0db988b3741547e1aab600 | [
"Apache-2.0"
] | null | null | null | defmodule Exchanges.MixProject do
use Mix.Project
def project do
[
app: :exchanges,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extr... | 21.457143 | 87 | 0.561917 |
38bd72c8b318a498605087381d8d8b99976e31a3 | 1,603 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/omid_targeting_option_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/omid_targeting_option_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/omid_targeting_option_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.106383 | 161 | 0.753587 |
38bd837fb213a0169764f2b788df3e18ccc53eb5 | 1,440 | ex | Elixir | lib/flamelex/gui/structs/dimensions.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 10 | 2021-03-02T20:05:13.000Z | 2022-03-14T21:10:39.000Z | lib/flamelex/gui/structs/dimensions.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 2 | 2021-12-14T18:29:44.000Z | 2021-12-23T20:38:27.000Z | lib/flamelex/gui/structs/dimensions.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 2 | 2021-12-05T20:41:26.000Z | 2021-12-26T01:46:42.000Z | defmodule Flamelex.GUI.Structs.Dimensions do
@moduledoc """
Struct which holds 2d points.
"""
use Flamelex.{ProjectAliases, CustomGuards}
#TODO right now this works in pixels, we ought to consider supporting lines/columns
defstruct [
width: 0,
height: 0
]
def new(:viewport_size) do
#TOD... | 26.181818 | 93 | 0.678472 |
38bda01a808925a56b5976e4eb852c4675e58e22 | 1,879 | exs | Elixir | clients/display_video/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/display_video/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/display_video/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"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... | 28.044776 | 124 | 0.658329 |
38bdb37046174670ac3c970fd41a87ba63c90a41 | 1,586 | ex | Elixir | lib/tasks/version/minor.ex | bulld0zer/elixir-version-release | f659bf0bf21167684eb12cf6be3d38bc9291d64b | [
"MIT"
] | 16 | 2020-08-25T16:30:47.000Z | 2022-03-23T12:41:55.000Z | lib/tasks/version/minor.ex | bulld0zer/elixir-version-release | f659bf0bf21167684eb12cf6be3d38bc9291d64b | [
"MIT"
] | 18 | 2021-03-23T05:54:50.000Z | 2022-03-24T08:03:21.000Z | lib/tasks/version/minor.ex | bulld0zer/elixir-version-release | f659bf0bf21167684eb12cf6be3d38bc9291d64b | [
"MIT"
] | 1 | 2021-05-12T09:05:35.000Z | 2021-05-12T09:05:35.000Z | defmodule Mix.Tasks.Version.Minor do
use Mix.Task
require Logger
alias VersionRelease.Changelog
alias VersionRelease.Config
alias VersionRelease.Git
alias VersionRelease.Hex
alias VersionRelease.Version
def run(opts) do
opts
|> Config.create()
|> Git.is_clean()
|> bump_minor()
|> ... | 21.432432 | 99 | 0.546028 |
38bdb8c4af40971b1bed02b74334ce573f702c94 | 313 | ex | Elixir | lib/harald/data_type.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 59 | 2019-02-16T00:09:58.000Z | 2020-03-29T23:37:36.000Z | lib/harald/data_type.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 19 | 2019-02-15T22:41:43.000Z | 2020-02-15T19:20:57.000Z | lib/harald/data_type.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 9 | 2020-05-07T00:02:36.000Z | 2021-09-17T18:17:46.000Z | defmodule Harald.DataType do
@moduledoc """
Reference: Core Specification Supplement, Part A
"""
alias Harald.DataType.{ManufacturerData, ServiceData}
@doc """
Returns a list of data type implementation modules.
"""
def modules do
[
ManufacturerData,
ServiceData
]
end
end
| 17.388889 | 55 | 0.677316 |
38be01908830f1879c68a31753a4e64e0b87a120 | 1,646 | ex | Elixir | lib/exchange/adapters/rabbitmq/producer.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 2 | 2021-09-01T08:30:14.000Z | 2022-02-08T18:15:11.000Z | lib/exchange/adapters/rabbitmq/producer.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 35 | 2020-08-12T16:04:46.000Z | 2022-03-24T04:07:16.000Z | lib/exchange/adapters/rabbitmq/producer.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 1 | 2020-09-17T13:07:50.000Z | 2020-09-17T13:07:50.000Z | if Code.ensure_loaded?(AMQP) do
defmodule Exchange.Adapters.RabbitBus.Producer do
@moduledoc """
This module is a server and producer of events.
It receives requests through the GenServer API and sends messages to an RabbitMQ exchange.
This module manages the necessary resources to use the RabbitMQ
... | 28.877193 | 94 | 0.62819 |
38be02d6673b4befc1c2ddc825fa5291145ce4c0 | 417 | exs | Elixir | test/golixir_web/views/error_view_test.exs | robotpistol/golixir | 6a9db6177ccfdcd7960588cfbae2b3fcfff3fee0 | [
"MIT"
] | null | null | null | test/golixir_web/views/error_view_test.exs | robotpistol/golixir | 6a9db6177ccfdcd7960588cfbae2b3fcfff3fee0 | [
"MIT"
] | null | null | null | test/golixir_web/views/error_view_test.exs | robotpistol/golixir | 6a9db6177ccfdcd7960588cfbae2b3fcfff3fee0 | [
"MIT"
] | null | null | null | defmodule GolixirWeb.ErrorViewTest do
use GolixirWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(GolixirWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
as... | 27.8 | 92 | 0.733813 |
38be1c197b2c8c9c92f34314914b33464044f7f6 | 2,642 | exs | Elixir | tests/dummy/test/controllers/shop_controller_test.exs | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/test/controllers/shop_controller_test.exs | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | tests/dummy/test/controllers/shop_controller_test.exs | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Dummy.ShopControllerTest do
use Dummy.ConnCase
alias Dummy.SeedSupport
alias Autox.ContextUtils
test "simple post create", %{conn: conn} do
params = %{
"data" => %{
"type" => "shops",
"attributes" => SeedSupport.shop_attributes
}
}
conn = conn
|> post("/api/... | 28.408602 | 113 | 0.508706 |
38be3d32c1c0cc3460c5322f28b3ca746fb14666 | 78 | exs | Elixir | test/test_helper.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | test/test_helper.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | test/test_helper.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(MultipleProducts.Repo, :manual)
| 26 | 62 | 0.807692 |
38be44d240beb8917188242b19d878c1ea7cb75c | 561 | ex | Elixir | lib/spawn_api_web/views/changeset_view.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | 2 | 2018-12-19T16:12:41.000Z | 2020-01-20T17:37:15.000Z | lib/spawn_api_web/views/changeset_view.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | lib/spawn_api_web/views/changeset_view.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | defmodule SpawnApiWeb.ChangesetView do
use SpawnApiWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`SpawnApiWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changeset,... | 28.05 | 65 | 0.73975 |
38be5e6b7e41ef109d702935e81ed280212ae3dc | 478 | ex | Elixir | lib/embed_chat_web/models/visitor.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 27 | 2016-10-15T12:13:22.000Z | 2021-02-07T20:31:41.000Z | lib/embed_chat_web/models/visitor.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | null | null | null | lib/embed_chat_web/models/visitor.ex | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 4 | 2016-08-21T15:03:29.000Z | 2019-11-22T13:15:29.000Z | defmodule EmbedChat.Visitor do
use EmbedChatWeb, :model
schema "visitors" do
field :name, :string
field :email, :string
field :note, :string
has_many :addresses, EmbedChat.Address
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(stru... | 20.782609 | 56 | 0.633891 |
38be5f14a08f792df71d39c804e60f6abe372b69 | 2,348 | ex | Elixir | lib/timber/event.ex | zabrador/timber-elixir | 59e1e43f0a5e936173631a6346cf339e6a783f09 | [
"0BSD"
] | null | null | null | lib/timber/event.ex | zabrador/timber-elixir | 59e1e43f0a5e936173631a6346cf339e6a783f09 | [
"0BSD"
] | null | null | null | lib/timber/event.ex | zabrador/timber-elixir | 59e1e43f0a5e936173631a6346cf339e6a783f09 | [
"0BSD"
] | null | null | null | defmodule Timber.Event do
@moduledoc false
alias Timber.Events
alias Timber.Utils.Map, as: UtilsMap
@type t ::
Events.ChannelJoinEvent.t()
| Events.ChannelReceiveEvent.t()
| Events.ControllerCallEvent.t()
| Events.CustomEvent.t()
| Events.ErrorEvent.t()
... | 27.302326 | 81 | 0.660988 |
38bec551857b6a85d46db804ccbe271fc2069121 | 610 | exs | Elixir | mix.exs | aef-/scatonslack | 7f5b01464a48482981f6b74a1013bf82d739b3e1 | [
"MIT"
] | null | null | null | mix.exs | aef-/scatonslack | 7f5b01464a48482981f6b74a1013bf82d739b3e1 | [
"MIT"
] | null | null | null | mix.exs | aef-/scatonslack | 7f5b01464a48482981f6b74a1013bf82d739b3e1 | [
"MIT"
] | null | null | null | defmodule ScatOnSlack.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, gi... | 22.592593 | 77 | 0.642623 |
38bed6336e5f792e35c29a2983934fa800383993 | 1,680 | ex | Elixir | farmbot_os/lib/farmbot_os/sys_calls/change_ownership.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_os/lib/farmbot_os/sys_calls/change_ownership.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/sys_calls/change_ownership.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.SysCalls.ChangeOwnership do
@moduledoc false
require Logger
require FarmbotCore.Logger
import FarmbotCore.Config, only: [get_config_value: 3, update_config_value: 4]
alias FarmbotCore.{Asset, EctoMigrator}
alias FarmbotExt.Bootstrap.Authorization
def change_ownership(email, secret, s... | 29.473684 | 80 | 0.677976 |
38beda0cb39e8b85f0d1f1006add7db8d20ba72d | 1,604 | ex | Elixir | web/controllers/user_controller.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/controllers/user_controller.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/controllers/user_controller.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | defmodule MemoApi.UserController do
use MemoApi.Web, :controller
alias MemoApi.User
alias MemoApi.Auth
plug :scrub_params, "user" when action in [:create, :update]
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.json", users: users)
end
def create(conn, %{"user" => user_... | 26.295082 | 76 | 0.609102 |
38bef04a886170b7edb04979f18de561b2b79f64 | 27,972 | ex | Elixir | lib/elixir/lib/map.ex | LaudateCorpus1/elixir | b131f874640775fdf08707d5b2fbbc1e91722cd0 | [
"Apache-2.0"
] | 2 | 2020-08-11T16:19:53.000Z | 2020-08-11T18:07:11.000Z | lib/elixir/lib/map.ex | LaudateCorpus1/elixir | b131f874640775fdf08707d5b2fbbc1e91722cd0 | [
"Apache-2.0"
] | 1 | 2021-10-21T08:22:30.000Z | 2021-10-21T08:22:30.000Z | lib/elixir/lib/map.ex | LaudateCorpus1/elixir | b131f874640775fdf08707d5b2fbbc1e91722cd0 | [
"Apache-2.0"
] | null | null | null | defmodule Map do
@moduledoc """
Maps are the "go to" key-value data structure in Elixir.
Maps can be created with the `%{}` syntax, and key-value pairs can be
expressed as `key => value`:
iex> %{}
%{}
iex> %{"one" => :two, 3 => "four"}
%{3 => "four", "one" => :two}
Key-value pairs i... | 26.191011 | 107 | 0.582976 |
38beffcdf89ad206e327cca7489c1d2e89be1379 | 2,844 | ex | Elixir | lib/hexpm/accounts/auth.ex | Jks15063/hexpm | 3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b | [
"Apache-2.0"
] | 2 | 2020-03-01T18:23:33.000Z | 2021-01-15T10:15:45.000Z | lib/hexpm/accounts/auth.ex | Jks15063/hexpm | 3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b | [
"Apache-2.0"
] | 3 | 2020-06-30T11:24:41.000Z | 2020-08-05T15:47:34.000Z | lib/hexpm/accounts/auth.ex | Jks15063/hexpm | 3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Accounts.Auth do
import Ecto.Query, only: [from: 2]
alias Hexpm.Accounts.{Key, Keys, User, Users}
def key_auth(user_secret, usage_info) do
# Database index lookup on the first part of the key and then
# secure compare on the second part to avoid timing attacks
app_secret = Applicatio... | 24.947368 | 97 | 0.58685 |
38bf0b4c1ff90503a05c50a9caae648e4ef206e6 | 3,507 | exs | Elixir | test/integration/telemetry_test.exs | aaronrenner/oban | b55ca4eb10e5c688311b57c8119161df53187379 | [
"Apache-2.0"
] | null | null | null | test/integration/telemetry_test.exs | aaronrenner/oban | b55ca4eb10e5c688311b57c8119161df53187379 | [
"Apache-2.0"
] | null | null | null | test/integration/telemetry_test.exs | aaronrenner/oban | b55ca4eb10e5c688311b57c8119161df53187379 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.TelemetryTest do
use Oban.Case
import ExUnit.CaptureLog
alias Oban.{PerformError, Telemetry}
@moduletag :integration
defmodule Handler do
def handle([:oban, :job, :start], %{system_time: start_time}, meta, pid) do
send(pid, {:event, :start, start_time, meta})
end
... | 28.282258 | 97 | 0.587967 |
38bf268c379bb51412521a537b8de03344128af9 | 3,175 | ex | Elixir | deps/file_system/lib/file_system/backends/fs_poll.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/file_system/lib/file_system/backends/fs_poll.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/file_system/lib/file_system/backends/fs_poll.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | require Logger
defmodule FileSystem.Backends.FSPoll do
@moduledoc """
FileSysetm backend for any OS, a GenServer that regularly scans file system to
detect changes and send them to the worker process.
## Backend Options
* `:interval` (integer, default: 1000), polling interval
## Use FSPoll ... | 29.672897 | 93 | 0.655118 |
38bf28b6f0ed5612e1c2ffa751fc554a940d6aa1 | 6,616 | ex | Elixir | lib/central/helpers/general_test_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/helpers/general_test_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/helpers/general_test_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Helpers.GeneralTestLib do
import Phoenix.ConnTest, only: [build_conn: 0, post: 3]
import Ecto.Query
alias Central.Repo
import Phoenix.ChannelTest
# use Phoenix.ConnTest
@endpoint CentralWeb.Endpoint
alias Central.Account.AuthLib
alias Central.Account
alias Central.Account.User
... | 26.785425 | 94 | 0.586457 |
38bf3128933adeee03f8fede943a79d300f7239f | 9,869 | ex | Elixir | lib/serum/theme.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | lib/serum/theme.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | lib/serum/theme.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | defmodule Serum.Theme do
@moduledoc """
A behaviour that all Serum theme module must implement.
A Serum theme is a set of predefined templates and assets which are used
while Serum is building a project.
More specifically, a Serum theme is a Mix project which has the following
contents:
- Modules that ... | 26.745257 | 84 | 0.606951 |
38bf60e389cf990e9dddfe1c2492a26dcd628a7f | 31,739 | ex | Elixir | clients/dns/lib/google_api/dns/v1/api/managed_zones.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/api/managed_zones.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/api/managed_zones.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.230655 | 351 | 0.619742 |
38bf85178a941308d72241233d10be7b6f0d4777 | 4,325 | ex | Elixir | web/controllers/api/v1/experiment_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/controllers/api/v1/experiment_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/controllers/api/v1/experiment_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.ExperimentController do
use EmotionsWheelBackend.Web, :controller
import EmotionsWheelBackend.ExperimentUpdate
alias EmotionsWheelBackend.{Repo, Experiment, ExperimentsHasPhotos}
def index(conn, _params) do
experiments = Experiment |> Repo.all
render(conn, "index.json", ... | 32.765152 | 116 | 0.661965 |
38bf8fbc19e76b09eccaf4455db06f5dbaa77ff7 | 1,062 | ex | Elixir | lib/amrita_web/channels/user_socket.ex | u3paka/Amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | null | null | null | lib/amrita_web/channels/user_socket.ex | u3paka/Amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | 2 | 2020-07-17T08:34:44.000Z | 2021-03-09T08:33:47.000Z | lib/amrita_web/channels/user_socket.ex | u3paka/amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | null | null | null | defmodule AmritaWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", AmritaWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels... | 31.235294 | 83 | 0.695857 |
38bfdf95ee3e53bbd007bc57550ad977e2c0d079 | 47 | exs | Elixir | config/prod.exs | Chlorophytus/exfwghtblog | 4508cf1368bfe8ea809acbef3f0abb31702169d5 | [
"MIT"
] | null | null | null | config/prod.exs | Chlorophytus/exfwghtblog | 4508cf1368bfe8ea809acbef3f0abb31702169d5 | [
"MIT"
] | null | null | null | config/prod.exs | Chlorophytus/exfwghtblog | 4508cf1368bfe8ea809acbef3f0abb31702169d5 | [
"MIT"
] | null | null | null | import Config
config :exfwghtblog,
port: 80
| 9.4 | 20 | 0.744681 |
38bfefa532b30412fd5b28b01e9b1042295af5cb | 5,392 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/drive_capabilities.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/drive/lib/google_api/drive/v3/model/drive_capabilities.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/drive/lib/google_api/drive/v3/model/drive_capabilities.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... | 55.020408 | 226 | 0.699926 |
38bff453a9ec5c0fd9226280da2d6d2c67616a3b | 2,658 | exs | Elixir | mix.exs | charlesdemers/accent | eeea52feb30d16ada5023c05fef37c08c267eff0 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | charlesdemers/accent | eeea52feb30d16ada5023c05fef37c08c267eff0 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | charlesdemers/accent | eeea52feb30d16ada5023c05fef37c08c267eff0 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Mixfile do
use Mix.Project
def project do
[
app: :accent,
version: "0.0.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
... | 26.316832 | 79 | 0.530474 |
38c010e7c69b4527432e497cdaf6673668797c5b | 6,396 | ex | Elixir | lib/ptr/mix/tasks/ptr.gen.schema.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | lib/ptr/mix/tasks/ptr.gen.schema.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | lib/ptr/mix/tasks/ptr.gen.schema.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Ptr.Gen.Schema do
@shortdoc "Generates an Ecto schema and migration file"
@moduledoc """
Generates an Ecto schema and migration.
mix ptr.gen.schema Blog.Post blog_posts title:string views:integer
The first argument is the schema module followed by its plural
name (used as the tabl... | 27.930131 | 109 | 0.685116 |
38c01640721a6023ae0b12e54486694528d87ebf | 4,783 | ex | Elixir | lib/server_manager/hetzner/api/prod.ex | Ianleeclark/illithid | 27b130d8d0619b7ee87ba9882386f995a7d79543 | [
"BSD-3-Clause"
] | null | null | null | lib/server_manager/hetzner/api/prod.ex | Ianleeclark/illithid | 27b130d8d0619b7ee87ba9882386f995a7d79543 | [
"BSD-3-Clause"
] | 6 | 2019-06-29T15:44:11.000Z | 2020-01-23T23:21:42.000Z | lib/server_manager/hetzner/api/prod.ex | Ianleeclark/illithid | 27b130d8d0619b7ee87ba9882386f995a7d79543 | [
"BSD-3-Clause"
] | null | null | null | defmodule Illithid.ServerManager.Hetzner.API.Prod do
@behaviour Illithid.ServerManager.HostAPIBehaviour
@moduledoc """
The production API handler
"""
alias Jason
alias Illithid.Constants.Hosts
alias Illithid.Utils.BaseAPI
alias Illithid.Models.{Region, Server}
require Logger
@url "https://api.het... | 27.97076 | 91 | 0.576416 |
38c02aac4bb124746e1a3d08500ca08feefd7a47 | 279 | ex | Elixir | lib/cforum_web/views/users/registration_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/users/registration_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/users/registration_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.Users.RegistrationView do
use CforumWeb, :view
def page_title(:new, _), do: gettext("register")
def page_heading(:new, _), do: gettext("register")
def body_id(:new, _), do: "registrations-new"
def body_classes(:new, _), do: "registrations new"
end
| 31 | 52 | 0.713262 |
38c0401908bb0b4eb73efdf0753f7aa08cebdb20 | 2,584 | exs | Elixir | apps/ldap_wrapper/config/ldap_wrapper.schema.exs | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/ldap_wrapper/config/ldap_wrapper.schema.exs | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/ldap_wrapper/config/ldap_wrapper.schema.exs | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | @moduledoc """
A schema is a keyword list which represents how to map, transform, and validate
configuration values parsed from the .conf file. The following is an explanation of
each key in the schema definition in order of appearance, and how to use them.
## Import
A list of application names (as atoms), which repr... | 39.151515 | 94 | 0.752322 |
38c05309f05bb8275acca23d874455bd07d859ee | 3,037 | ex | Elixir | lib/zippy/ZBinTree.ex | tchoutri/Zippy | 027dc168a2e3fb3b485a94f04057c52ba018efe7 | [
"MIT"
] | 7 | 2017-02-12T17:26:20.000Z | 2020-01-20T17:43:39.000Z | lib/zippy/ZBinTree.ex | tchoutri/Zippy | 027dc168a2e3fb3b485a94f04057c52ba018efe7 | [
"MIT"
] | null | null | null | lib/zippy/ZBinTree.ex | tchoutri/Zippy | 027dc168a2e3fb3b485a94f04057c52ba018efe7 | [
"MIT"
] | null | null | null | defmodule Zippy.ZBinTree do
@moduledoc """
This module implements Zipper binary trees, that allow you to traverse them in two directions.
This module is a port of Fred Hebert's [“Zippers”](https://github.com/ferd/zippers) library, under the MIT licence.
"""
alias __MODULE__
## Type declarations
@t... | 39.441558 | 117 | 0.594007 |
38c0885c8232116bb81b31756e6bf2eaa8e23b23 | 1,038 | ex | Elixir | test/support/conn_case.ex | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | defmodule FitawebWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the... | 26.615385 | 69 | 0.719653 |
38c0c230ba55c06ae1bb3e12e4e05a562e92eaab | 1,830 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/quota.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/quota.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/quota.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... | 32.678571 | 138 | 0.679781 |
38c1027a029d1fddb3bdd70b6f00d77aeae813e1 | 4,645 | ex | Elixir | lib/hacker_news_aggregator.ex | SanketSapkal/hacker_news_aggregator | 06aa17915b31c4a404d8835621e311885fef7285 | [
"MIT"
] | null | null | null | lib/hacker_news_aggregator.ex | SanketSapkal/hacker_news_aggregator | 06aa17915b31c4a404d8835621e311885fef7285 | [
"MIT"
] | null | null | null | lib/hacker_news_aggregator.ex | SanketSapkal/hacker_news_aggregator | 06aa17915b31c4a404d8835621e311885fef7285 | [
"MIT"
] | null | null | null | defmodule HackerNewsAggregator do
@moduledoc """
Hacker News Aggregator which collects top stories periodically from hacker-news
and stores it in the memory.
It is built using GenServer, and the top stories are stored in the process
memory.
"""
use GenServer
alias HackerNewsAggregator.HTTPClient
#... | 30.761589 | 94 | 0.653606 |
38c138f270ae78a326cddb12dc5d66496bd0cf0b | 1,043 | ex | Elixir | anituber/test/support/conn_case.ex | Ogiwara-CostlierRain464/Anituber | 5ce128883ee609e785416b18cc9ca3ebc3877258 | [
"MIT"
] | null | null | null | anituber/test/support/conn_case.ex | Ogiwara-CostlierRain464/Anituber | 5ce128883ee609e785416b18cc9ca3ebc3877258 | [
"MIT"
] | null | null | null | anituber/test/support/conn_case.ex | Ogiwara-CostlierRain464/Anituber | 5ce128883ee609e785416b18cc9ca3ebc3877258 | [
"MIT"
] | null | null | null | defmodule AnituberWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if th... | 26.74359 | 70 | 0.720997 |
38c14d2643c4e288ef89a8849b732b28233104d4 | 1,648 | ex | Elixir | lib/fexr_web/endpoint.ex | Schultzer/fexr | f64d67b78bc785ae967f4c1193491a1d9cf33279 | [
"MIT",
"Unlicense"
] | 4 | 2017-08-13T09:03:24.000Z | 2018-06-19T06:32:07.000Z | lib/fexr_web/endpoint.ex | Schultzer/fexr | f64d67b78bc785ae967f4c1193491a1d9cf33279 | [
"MIT",
"Unlicense"
] | null | null | null | lib/fexr_web/endpoint.ex | Schultzer/fexr | f64d67b78bc785ae967f4c1193491a1d9cf33279 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule FexrWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :fexr
socket "/socket", FexrWeb.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 Plug.Static,
... | 28.413793 | 95 | 0.703883 |
38c1e3b85e0636fb9df0a7d453d1cbf0cc7c3442 | 1,503 | exs | Elixir | rel/config.exs | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | 1 | 2017-07-20T17:41:13.000Z | 2017-07-20T17:41:13.000Z | rel/config.exs | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | rel/config.exs | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# T... | 30.673469 | 81 | 0.726547 |
38c1f89b367ede07555a41be74bb13e2fe04ef7d | 2,119 | ex | Elixir | lib/recaptcha.ex | kianmeng/recaptcha | 1db06077e87f199fe902a86bc34a5d4f79fd1a40 | [
"MIT"
] | null | null | null | lib/recaptcha.ex | kianmeng/recaptcha | 1db06077e87f199fe902a86bc34a5d4f79fd1a40 | [
"MIT"
] | null | null | null | lib/recaptcha.ex | kianmeng/recaptcha | 1db06077e87f199fe902a86bc34a5d4f79fd1a40 | [
"MIT"
] | null | null | null | defmodule Recaptcha do
@moduledoc """
A module for verifying reCAPTCHA version 2.0 response strings.
See the [documentation](https://developers.google.com/recaptcha/docs/verify)
for more details.
"""
alias Recaptcha.{Config, Http, Response}
@http_client Application.get_env(:recaptcha, :http_clien... | 29.430556 | 83 | 0.64134 |
38c2e4e11c1befe05c63807b31d2c74821ef73f5 | 1,253 | ex | Elixir | test/support/conn_case.ex | abmBispo/keycloak-poc | 3730a1966e737370cdd22d9f457770224999068e | [
"MIT"
] | 1 | 2021-10-24T00:47:19.000Z | 2021-10-24T00:47:19.000Z | test/support/conn_case.ex | abmBispo/keycloak-poc | 3730a1966e737370cdd22d9f457770224999068e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | abmBispo/keycloak-poc | 3730a1966e737370cdd22d9f457770224999068e | [
"MIT"
] | null | null | null | defmodule KeyCloakPocWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, i... | 31.325 | 92 | 0.738228 |
38c354e6a6c047abf1af80cdc649dbb515156509 | 583 | exs | Elixir | test/views/error_view_test.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | defmodule BioMonitor.ErrorViewTest do
use BioMonitor.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(BioMonitor.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
38c37eebf7d4cf5e93971c2bf5a3bc62186c7fa7 | 1,380 | ex | Elixir | lib/explorer/datasets.ex | ricpruss/explorer | 7691eaa694b7260178e0f87311552f09269123f0 | [
"MIT"
] | 287 | 2021-08-20T15:06:19.000Z | 2022-03-30T05:24:27.000Z | lib/explorer/datasets.ex | ricpruss/explorer | 7691eaa694b7260178e0f87311552f09269123f0 | [
"MIT"
] | 77 | 2021-08-20T02:32:51.000Z | 2022-03-31T23:51:19.000Z | lib/explorer/datasets.ex | ricpruss/explorer | 7691eaa694b7260178e0f87311552f09269123f0 | [
"MIT"
] | 27 | 2021-08-21T11:16:18.000Z | 2022-03-20T23:12:20.000Z | defmodule Explorer.Datasets do
alias Explorer.DataFrame
@datasets_dir Path.join(File.cwd!(), "datasets")
@doc """
CO2 emissions from fossil fuels since 2010, by country
## Citation
Boden, T.A., G. Marland, and R.J. Andres. 2013. Global, Regional, and National Fossil-Fuel CO2
Emissions. Carbon Diox... | 32.857143 | 104 | 0.721014 |
38c39b9cffdb35a2067347f9c70c3bca94386025 | 892 | ex | Elixir | debian/prerm.ex | michaelw/python-ssh-ldap-pubkey-deb | 34d50226d9aa3c47b10247b82d5cbf75984eff5b | [
"MIT"
] | null | null | null | debian/prerm.ex | michaelw/python-ssh-ldap-pubkey-deb | 34d50226d9aa3c47b10247b82d5cbf75984eff5b | [
"MIT"
] | null | null | null | debian/prerm.ex | michaelw/python-ssh-ldap-pubkey-deb | 34d50226d9aa3c47b10247b82d5cbf75984eff5b | [
"MIT"
] | null | null | null | #!/bin/sh
# prerm script for python-ssh-ldap-pubkey
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <packag... | 22.871795 | 76 | 0.628924 |
38c3ae50e9307288002d7eb5ed3ff3d4682680dd | 77 | exs | Elixir | config/dev.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | config/dev.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | config/dev.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | 1 | 2021-09-07T15:25:40.000Z | 2021-09-07T15:25:40.000Z | use Mix.Config
config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
| 19.25 | 60 | 0.831169 |
38c3ba1624c5c683f7c08d8add37965fb24186b7 | 9,021 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/logs.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/logs.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/logging/lib/google_api/logging/v2/api/logs.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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.685185 | 576 | 0.65924 |
38c3bce650498051c3394a38de6b0ae911f4c888 | 274 | ex | Elixir | lib/gcloud_speech_to_text/app.ex | membraneframework/membrane-element-gcloud-speech-to-text | 18483aae342af59f0dbbec1cf26cfbc9ccb9fd3b | [
"Apache-2.0"
] | null | null | null | lib/gcloud_speech_to_text/app.ex | membraneframework/membrane-element-gcloud-speech-to-text | 18483aae342af59f0dbbec1cf26cfbc9ccb9fd3b | [
"Apache-2.0"
] | null | null | null | lib/gcloud_speech_to_text/app.ex | membraneframework/membrane-element-gcloud-speech-to-text | 18483aae342af59f0dbbec1cf26cfbc9ccb9fd3b | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.GCloud.SpeechToText.Application do
@moduledoc false
use Application
@impl Application
def start(_type, _args) do
children = []
opts = [strategy: :one_for_one, name: __MODULE__]
Supervisor.start_link(children, opts)
end
end
| 21.076923 | 61 | 0.733577 |
38c3c85e8fd4ad54bc853a6160c92999a0c62c67 | 97 | ex | Elixir | lib/fish/repo.ex | wdiechmann/fish | b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8 | [
"MIT"
] | 1 | 2021-02-09T23:49:40.000Z | 2021-02-09T23:49:40.000Z | lib/fish/repo.ex | wdiechmann/fish | b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8 | [
"MIT"
] | null | null | null | lib/fish/repo.ex | wdiechmann/fish | b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8 | [
"MIT"
] | null | null | null | defmodule Fish.Repo do
use Ecto.Repo,
otp_app: :fish,
adapter: Ecto.Adapters.MyXQL
end
| 16.166667 | 32 | 0.701031 |
38c3d3edea405f7b5f3bda67a24e88098bdbb561 | 2,192 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_super_chat_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_super_chat_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_super_chat_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.152542 | 151 | 0.702555 |
38c3f2e82c2c7ed72dd89388ecb081820998c023 | 508 | exs | Elixir | mix.exs | FredrikL/bookmarker | 23b91e408c142d044526b11106a01c93ab1dd823 | [
"MIT"
] | null | null | null | mix.exs | FredrikL/bookmarker | 23b91e408c142d044526b11106a01c93ab1dd823 | [
"MIT"
] | null | null | null | mix.exs | FredrikL/bookmarker | 23b91e408c142d044526b11106a01c93ab1dd823 | [
"MIT"
] | null | null | null | defmodule Bookmarker.Mixfile do
use Mix.Project
def project do
[
app: :bookmarker,
escript: escript_config(),
default_task: "escript.build",
version: "1.0.0",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
... | 17.517241 | 42 | 0.584646 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.