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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
742bc3528bf91f575097782b812e96eeec0968aa | 690 | ex | Elixir | lib/consul/request.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | 3 | 2018-07-11T08:20:22.000Z | 2018-07-21T23:33:44.000Z | lib/consul/request.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | null | null | null | lib/consul/request.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | null | null | null | #
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Undead Labs, LLC
#
defmodule Consul.Request do
use HTTPoison.Base
def process_url(url) do
case String.downcase(url) do
<<"http://"::utf8, _::binary>> ->
url
<<"https://"::utf8, _::binary>> ->
url
_ ->
Path.join("ht... | 16.428571 | 55 | 0.55942 |
742bc6ea336f896e6d754f04038263706ec46256 | 65 | ex | Elixir | nevernote/lib/nevernote_web/views/page_view.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | 4 | 2019-01-07T09:15:23.000Z | 2021-06-18T02:56:14.000Z | nevernote/lib/nevernote_web/views/page_view.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | nevernote/lib/nevernote_web/views/page_view.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | defmodule NevernoteWeb.PageView do
use NevernoteWeb, :view
end
| 16.25 | 34 | 0.815385 |
742bdad017fcdf18a34f9b53715980ad6cdbee55 | 2,120 | ex | Elixir | lib/messenger_bot/client/middlewares/event_bus.ex | mustafaturan/messenger_bot | c6c634ace2b2df02acf4a06c9b24790893d88d60 | [
"Unlicense"
] | 16 | 2018-04-19T23:50:47.000Z | 2020-07-18T08:28:07.000Z | lib/messenger_bot/client/middlewares/event_bus.ex | mustafaturan/messenger_bot | c6c634ace2b2df02acf4a06c9b24790893d88d60 | [
"Unlicense"
] | 62 | 2018-11-05T08:21:23.000Z | 2021-08-02T13:15:16.000Z | lib/messenger_bot/client/middlewares/event_bus.ex | mustafaturan/messenger_bot | c6c634ace2b2df02acf4a06c9b24790893d88d60 | [
"Unlicense"
] | 4 | 2019-04-25T13:30:45.000Z | 2020-07-12T15:39:23.000Z | defmodule MessengerBot.Client.Middleware.EventBus do
@moduledoc false
############################################################################
# Tesla Middleware implementation for EventBus notifications #
############################################################################
alias E... | 25.238095 | 78 | 0.60566 |
742bdbbe7a221bac0e96506dde9a39b01bdd297a | 45,284 | ex | Elixir | lib/ecto/migration.ex | tashirosota/ecto_sql | 93038c2cac16706b642121a5839d1068d5b45212 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | tashirosota/ecto_sql | 93038c2cac16706b642121a5839d1068d5b45212 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | tashirosota/ecto_sql | 93038c2cac16706b642121a5839d1068d5b45212 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration do
@moduledoc """
Migrations are used to modify your database schema over time.
This module provides many helpers for migrating the database,
allowing developers to use Elixir to alter their storage in
a way that is database independent.
Migrations typically provide two operations... | 33.920599 | 118 | 0.677392 |
742bec098faf592efa5cb66dd4f370af706d1c87 | 18,914 | ex | Elixir | lib/live_element/html_tokenizer.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/html_tokenizer.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | lib/live_element/html_tokenizer.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElement.HTMLTokenizer do
@moduledoc false
@space_chars '\s\t\f'
@quote_chars '"\''
@stop_chars '>/=\r\n' ++ @quote_chars ++ @space_chars
defmodule ParseError do
@moduledoc false
defexception [:file, :line, :column, :description]
@impl true
def message(exception) do
locati... | 33.956912 | 108 | 0.652427 |
742c598ede94ac0861e0db5a616d68d5469b4069 | 1,576 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/model/page_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/surveys/lib/google_api/surveys/v2/model/page_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/page_info.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 ... | 29.735849 | 77 | 0.699873 |
742c664add7cbb31dd3b01aa6d670a4a989e3e03 | 3,387 | exs | Elixir | test/clean_mixer/workspace_test.exs | kianmeng/clean_mixer | c2ce915156472a86828b53538efb8979bebcd78d | [
"Apache-2.0"
] | 45 | 2020-07-14T11:01:45.000Z | 2022-03-10T18:40:04.000Z | test/clean_mixer/workspace_test.exs | kianmeng/clean_mixer | c2ce915156472a86828b53538efb8979bebcd78d | [
"Apache-2.0"
] | 3 | 2021-07-03T15:37:02.000Z | 2021-07-13T08:59:08.000Z | test/clean_mixer/workspace_test.exs | kianmeng/clean_mixer | c2ce915156472a86828b53538efb8979bebcd78d | [
"Apache-2.0"
] | 4 | 2020-02-01T01:20:53.000Z | 2020-06-18T11:58:55.000Z | defmodule CleanMixer.WorkspaceTest do
use ExUnit.Case
alias CleanMixer.Workspace
alias CleanMixer.ArchMap
alias CleanMixer.Project
alias CleanMixer.ArchMap.Component
alias CleanMixer.ArchMap.Dependency
alias CleanMixer.CodeMap
alias CleanMixer.CodeMap.SourceFile
alias CleanMixer.CodeMap.FileDependenc... | 26.460938 | 102 | 0.637142 |
742c67f8690b43e7a1b5291fe8cefdb6375634db | 1,139 | exs | Elixir | onboarding/service/priv/repo/seeds.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | onboarding/service/priv/repo/seeds.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | onboarding/service/priv/repo/seeds.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | # 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:
#
# OnboardingService.Repo.insert!(%OnboardingService.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and ... | 33.5 | 68 | 0.799824 |
742c6d5f665441ccb1d695cc1a9a2717db87a98f | 6,343 | exs | Elixir | apps/ewallet_db/test/ewallet_db/wallet_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/test/ewallet_db/wallet_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/test/ewallet_db/wallet_test.exs | 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... | 32.528205 | 91 | 0.638341 |
742c758784193e99fdfe2ac46f515e7ee0b6520c | 774 | exs | Elixir | test/user/patch/arity_test.exs | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 57 | 2020-04-22T00:19:04.000Z | 2022-03-20T11:57:00.000Z | test/user/patch/arity_test.exs | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 9 | 2021-10-29T20:54:56.000Z | 2022-02-19T03:41:01.000Z | test/user/patch/arity_test.exs | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 2 | 2021-07-02T14:41:48.000Z | 2022-01-12T11:47:26.000Z | defmodule Patch.Test.User.Patch.ArityTest do
use ExUnit.Case
use Patch
alias Patch.Test.Support.User.Patch.Arity
describe "patch has no arity restrictions" do
test "can patch a function of arity 0" do
assert Arity.function_of_arity_0() == :original
patch(Arity, :function_of_arity_0, :patched)... | 28.666667 | 136 | 0.609819 |
742c96f8ecb625a9051185fab986a01dccebfddb | 530 | exs | Elixir | test/wechat/helpers/method_generator_test.exs | h1u2i3/ex_wechat | 0d5dc88f3f694cac9e46dd6529a1df203d60cdf1 | [
"MIT"
] | 23 | 2016-12-25T13:38:38.000Z | 2020-11-02T15:06:10.000Z | test/wechat/helpers/method_generator_test.exs | h1u2i3/ex_wechat | 0d5dc88f3f694cac9e46dd6529a1df203d60cdf1 | [
"MIT"
] | 15 | 2016-11-05T17:00:18.000Z | 2019-08-28T10:00:41.000Z | test/wechat/helpers/method_generator_test.exs | h1u2i3/ex_wechat | 0d5dc88f3f694cac9e46dd6529a1df203d60cdf1 | [
"MIT"
] | 8 | 2017-07-04T03:44:25.000Z | 2020-11-11T08:32:39.000Z | defmodule Wechat.Helpers.MethodGeneratorTest do
use ExUnit.Case, async: true
use Wechat.Base
alias Wechat.TestCase
defmodule ApiDemo do
use Wechat.Api
@api [:access_token]
end
@data "get real data"
test "shoud generate the right methods" do
methods = ApiDemo.__info__(:functions)
asser... | 19.62963 | 51 | 0.709434 |
742c9872201defc0ff17c56fbf23da17930e5b97 | 972 | ex | Elixir | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/saml_configuration_info.ex | hoomaan-kh/swagger-aem | 0b19225bb6e071df761d176cbc13565891fe895f | [
"Apache-2.0"
] | null | null | null | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/saml_configuration_info.ex | hoomaan-kh/swagger-aem | 0b19225bb6e071df761d176cbc13565891fe895f | [
"Apache-2.0"
] | null | null | null | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/saml_configuration_info.ex | hoomaan-kh/swagger-aem | 0b19225bb6e071df761d176cbc13565891fe895f | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdobeExperienceManager(AEM)API.Model.SamlConfigurationInfo do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"pid",
:"ti... | 25.578947 | 117 | 0.695473 |
742ca29248b8ae1447503ccab06de075fe581642 | 389 | exs | Elixir | test/custodian/github/merges_test.exs | newaperio/custodian | 6614fa63f5aeb88be82927548522617f3d877faf | [
"MIT"
] | 4 | 2018-01-24T19:58:37.000Z | 2021-09-18T13:08:16.000Z | test/custodian/github/merges_test.exs | newaperio/custodian | 6614fa63f5aeb88be82927548522617f3d877faf | [
"MIT"
] | 12 | 2017-12-26T21:46:34.000Z | 2019-05-15T17:39:22.000Z | test/custodian/github/merges_test.exs | newaperio/custodian | 6614fa63f5aeb88be82927548522617f3d877faf | [
"MIT"
] | 1 | 2018-08-28T16:49:05.000Z | 2018-08-28T16:49:05.000Z | defmodule Custodian.Github.MergesTest do
use ExUnit.Case, async: true
alias Custodian.Bots.Bot
@github Application.get_env(:custodian, :github_api)
@repo %Bot{
owner: "lleger",
name: "gh-api-test"
}
test "merges head into base" do
assert @github.Merges.merge(@repo, "lleger-patch-1", "master"... | 21.611111 | 66 | 0.683805 |
742caa8c75916c6d3235edf7dd54c8fdfdbfaef3 | 896 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.185185 | 74 | 0.762277 |
742cbc148686b94ae83c8315b1da3c9c2095be83 | 2,524 | exs | Elixir | test/controllers/tag_controller_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | test/controllers/tag_controller_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | test/controllers/tag_controller_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | defmodule Ginjyo.TagControllerTest do
use Ginjyo.ConnCase
alias Ginjyo.Factory
alias Ginjyo.Tag
@valid_attrs %{name: "some content", slug: "somecontent"}
@invalid_attrs %{}
setup do
conn = conn()
role = Factory.create(:role, rank: 10)
user = Factory.create(:user, role: role)
tag = Factory... | 33.653333 | 98 | 0.667195 |
742cd5b16d9bb41e91e9f923ac54b5c09b3c20e6 | 455 | ex | Elixir | lib/lle_cymraeg_web/views/comment_view.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/views/comment_view.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/views/comment_view.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | defmodule LleCymraegWeb.CommentView do
use LleCymraegWeb, :view
alias LleCymraegWeb.CommentView
def render("index.json", %{comments: comments}) do
%{data: render_many(comments, CommentView, "comment.json")}
end
def render("show.json", %{comment: comment}) do
%{data: render_one(comment, CommentView, ... | 25.277778 | 63 | 0.692308 |
742ceb4ecc9ecd41679a54845aeb5ecdf8256268 | 65 | ex | Elixir | app/lib/hobby_dapp_web/views/root_view.ex | irisTa56/hobby_dapp | 5738995f4f68202aeb50df7fd23fd5c6b84ee244 | [
"MIT"
] | null | null | null | app/lib/hobby_dapp_web/views/root_view.ex | irisTa56/hobby_dapp | 5738995f4f68202aeb50df7fd23fd5c6b84ee244 | [
"MIT"
] | null | null | null | app/lib/hobby_dapp_web/views/root_view.ex | irisTa56/hobby_dapp | 5738995f4f68202aeb50df7fd23fd5c6b84ee244 | [
"MIT"
] | null | null | null | defmodule HobbyDappWeb.RootView do
use HobbyDappWeb, :view
end
| 16.25 | 34 | 0.815385 |
742d0a7f2e04dca045f9b5dd76c51f35d99ac5e6 | 5,663 | ex | Elixir | lib/p_enum.ex | zfletch/p_enum | 912e87f779b5ff49edf2b56f63a8dc4a6ff9bb40 | [
"Apache-2.0"
] | null | null | null | lib/p_enum.ex | zfletch/p_enum | 912e87f779b5ff49edf2b56f63a8dc4a6ff9bb40 | [
"Apache-2.0"
] | null | null | null | lib/p_enum.ex | zfletch/p_enum | 912e87f779b5ff49edf2b56f63a8dc4a6ff9bb40 | [
"Apache-2.0"
] | null | null | null | defmodule PEnum do
@moduledoc """
Parallel `Enum`. This library provides a set of functions similar to the
ones in the [Enum](https://hexdocs.pm/elixir/Enum.html) module except that
the function is executed on each element parallel.
The behavior of each of the functions should be the same as the `Enum` varie... | 31.115385 | 90 | 0.621932 |
742d156c860bd6a1aa961c4d3ddf7a65a8b9ab7b | 2,223 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/batch_annotate_files_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/batch_annotate_files_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/batch_annotate_files_request.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... | 35.854839 | 180 | 0.723797 |
742d3ec08a53dcd19756c3fe44369a6dc739556a | 212 | ex | Elixir | lib/hound/response_parsers/geckodriver.ex | myfreeweb/hound | 9277401c86adc4f62c14a91b42b21c4460fb9aac | [
"MIT"
] | null | null | null | lib/hound/response_parsers/geckodriver.ex | myfreeweb/hound | 9277401c86adc4f62c14a91b42b21c4460fb9aac | [
"MIT"
] | null | null | null | lib/hound/response_parsers/geckodriver.ex | myfreeweb/hound | 9277401c86adc4f62c14a91b42b21c4460fb9aac | [
"MIT"
] | null | null | null | defmodule Hound.ResponseParsers.GeckoDriver do
@moduledoc false
use Hound.ResponseParser
def handle_error(%{"message" => "Unable to locate element:" <> _rest}) do
{:error, :no_such_element}
end
end
| 21.2 | 75 | 0.726415 |
742d464696983f54b1dc4c6023d45165b482d408 | 3,826 | exs | Elixir | exercise_2.11.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | 2 | 2019-08-26T13:17:27.000Z | 2020-09-24T13:16:07.000Z | exercise_2.11.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | exercise_2.11.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | defmodule Interval do
def make(lower, upper), do: [lower | upper]
def lower(interval), do: hd interval
def upper(interval), do: tl interval
def add(x, y), do: make(lower(x) + lower(y), upper(x) + upper(y))
def sub(x, y), do: make(lower(x) - upper(y), upper(x) - lower(y))
# L1 -, U1 -, L2 -, U2 - -> [U1... | 33.858407 | 97 | 0.533978 |
742d515122442749ce5c0b6b92e47e73f9b3f653 | 17,201 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/achievement_configurations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/achievement_configurations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/achievement_configurations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.65736 | 240 | 0.629556 |
742df4846840b3b821d8cc5c141cf1cabbc3a5c8 | 343 | exs | Elixir | {{cookiecutter.app_name}}/config/deploy/production.exs | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-01-16T15:40:04.000Z | 2020-01-11T19:34:42.000Z | {{cookiecutter.app_name}}/config/deploy/staging.exs | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-03-10T14:18:37.000Z | 2018-03-13T20:43:06.000Z | {{cookiecutter.app_name}}/config/deploy/staging.exs | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 1 | 2019-10-11T20:52:31.000Z | 2019-10-11T20:52:31.000Z | use Bootleg.Config
role(:build, "46.101.140.16", workspace: "builds", user: "stephane", identity: "/Users/stephanerobino/.ssh/digital-ocean", release_workspace: "/home/stephane")
role(:app, "46.101.140.16", workspace: "public_html", user: "stephane", identity: "/Users/stephanerobino/.ssh/digital-ocean", release_worksp... | 68.6 | 162 | 0.737609 |
742df5fdff209fb2344c2ad213eaa25f067d044a | 1,558 | ex | Elixir | lib/playground_web/views/error_helpers.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | lib/playground_web/views/error_helpers.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | lib/playground_web/views/error_helpers.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | defmodule PlaygroundWeb.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_t... | 32.458333 | 79 | 0.667522 |
742e07d7380313af6aa1c2a13686da3c7b18a70d | 562 | ex | Elixir | apps/elixir_ls_debugger/lib/debugger/utils.ex | mnishiguchi/elixir-ls | 1e7a52ca242bf06942c405aab043a612fcd2a211 | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/lib/debugger/utils.ex | mnishiguchi/elixir-ls | 1e7a52ca242bf06942c405aab043a612fcd2a211 | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/lib/debugger/utils.ex | mnishiguchi/elixir-ls | 1e7a52ca242bf06942c405aab043a612fcd2a211 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.Debugger.Utils do
def parse_mfa(mfa_str) do
case Code.string_to_quoted(mfa_str) do
{:ok, {:/, _, [{{:., _, [mod, fun]}, _, []}, arity]}}
when is_atom(fun) and is_integer(arity) ->
case mod do
atom when is_atom(atom) ->
{:ok, {atom, fun, arity}}
... | 25.545455 | 59 | 0.507117 |
742e099ff6ed9cfedef530d10feae5c00ea4e73f | 976 | ex | Elixir | backend/lib/backend.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/lib/backend.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/lib/backend.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | defmodule Backend do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Backend.E... | 31.483871 | 71 | 0.711066 |
742e26b026f6cb9de607d132288ebd54940ccceb | 419 | ex | Elixir | lib/rocketpay/numbers.ex | lopes05/rocketpay_nlw | f77a586592700f5263d4a96fb965497223c636c8 | [
"MIT"
] | null | null | null | lib/rocketpay/numbers.ex | lopes05/rocketpay_nlw | f77a586592700f5263d4a96fb965497223c636c8 | [
"MIT"
] | null | null | null | lib/rocketpay/numbers.ex | lopes05/rocketpay_nlw | f77a586592700f5263d4a96fb965497223c636c8 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Numbers do
def sum_from_file(filename) do
"#{filename}.csv"
|> File.read()
|> handle_file()
end
defp handle_file({:ok, result}) do
result =
String.split(result, ",")
|> Stream.map(fn number -> String.to_integer(number) end)
|> Enum.sum()
{:ok, %{result: r... | 24.647059 | 80 | 0.608592 |
742e69f5d5525ec4c9e7e0af8ad814ec5b0d83d5 | 129 | exs | Elixir | test/dups_test.exs | gornik/dups | 30ecf3de8e218305ca5b0bf6085fe1e4fe33f487 | [
"MIT"
] | 4 | 2018-11-25T22:45:22.000Z | 2018-11-29T06:09:15.000Z | test/dups_test.exs | gornik/dups | 30ecf3de8e218305ca5b0bf6085fe1e4fe33f487 | [
"MIT"
] | null | null | null | test/dups_test.exs | gornik/dups | 30ecf3de8e218305ca5b0bf6085fe1e4fe33f487 | [
"MIT"
] | null | null | null | defmodule DupsTest do
use ExUnit.Case
doctest Dups
test "greets the world" do
assert Dups.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
742e82394b519b9d9f294ccc7c24c9662eafcb87 | 149 | exs | Elixir | test/elixir/.formatter.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/.formatter.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2017-09-05T15:46:20.000Z | 2017-09-05T15:46:20.000Z | test/elixir/.formatter.exs | garrensmith/couchdb | 25838d078b1cf8ef5554f41c0b51d8628ca712ba | [
"Apache-2.0"
] | null | null | null | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 90,
rename_deprecated_at: "1.5.0"
]
| 21.285714 | 70 | 0.604027 |
742e8806423c0e6a6a24cf75888e2e711959e179 | 622 | exs | Elixir | test/lua_scripts/require_test.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | test/lua_scripts/require_test.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | test/lua_scripts/require_test.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | defmodule MicroServerTest.LuaScript.RequireTest do
use MicroServerTest.MyCase, async: false
setup_all do
lua_script = ~s|
require(crypto, string_tools)
function on_http(ticket, message)
trace(string_tools.join_with("_", 1,2,3.1,400000000000000))
return crypto.password_hash("12345")
end... | 23.923077 | 94 | 0.684887 |
742ec014e557d2db7ce51f5cf8d8a4ad8327012d | 1,601 | ex | Elixir | lib/hexedio_web.ex | netsudo/hexedio | 3e0e1ff7cfffcd704ba60394d0a38c4d8608e100 | [
"MIT"
] | null | null | null | lib/hexedio_web.ex | netsudo/hexedio | 3e0e1ff7cfffcd704ba60394d0a38c4d8608e100 | [
"MIT"
] | 3 | 2020-07-16T05:37:16.000Z | 2022-03-16T08:58:28.000Z | lib/hexedio_web.ex | netsudo/hexedio | 3e0e1ff7cfffcd704ba60394d0a38c4d8608e100 | [
"MIT"
] | null | null | null | defmodule HexedioWeb 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 HexedioWeb, :controller
use HexedioWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.544118 | 69 | 0.686446 |
742ec647552a26bf5f8106597ac9b5398fda3562 | 378 | exs | Elixir | priv/repo/migrations/20190922164740_create_users.exs | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190922164740_create_users.exs | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190922164740_create_users.exs | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | defmodule Titeenipeli.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :first_name, :string
add :last_name, :string
add :username, :string
add :photo_url, :string
add :guild_id, references(:guilds, on_delete: :nothing)
timestamps()... | 21 | 61 | 0.661376 |
742ed3ba6aae8ad485a2502a9a33b318c24e9487 | 585 | exs | Elixir | year_2015/test/day_14/reindeer_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2015/test/day_14/reindeer_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2015/test/day_14/reindeer_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day14.ReindeerTest do
use ExUnit.Case, async: true
test "it can parse reindeer" do
comet = Day14.Reindeer.parse("Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seconds.")
assert %Day14.Reindeer{speed: 14, duration: 10, rest: 127} = comet
end
test "it can compute flying dist... | 36.5625 | 109 | 0.704274 |
742f391a63c746df046a06c6944f3a60e3d686dc | 132 | exs | Elixir | test/fixtures/example_app/config/config.exs | amco/exrm | 2600bffb92c6e129dd513978578992fc64d9ce08 | [
"MIT"
] | 986 | 2015-01-01T13:20:41.000Z | 2021-09-03T02:18:55.000Z | test/fixtures/example_app/config/config.exs | amco/exrm | 2600bffb92c6e129dd513978578992fc64d9ce08 | [
"MIT"
] | 332 | 2015-01-02T09:17:25.000Z | 2018-04-06T22:32:25.000Z | test/fixtures/example_app/config/config.exs | amco/exrm | 2600bffb92c6e129dd513978578992fc64d9ce08 | [
"MIT"
] | 132 | 2015-01-05T06:11:21.000Z | 2019-10-31T13:31:12.000Z | use Mix.Config
config :test,
foo: "nope",
env: :wat,
"debug_level": {:on, [:passive]}
import_config "config.#{Mix.env}.exs"
| 14.666667 | 37 | 0.628788 |
742f871158922ea79ed8a54712c0b6bc8e9cc95f | 483 | ex | Elixir | 04-chapter/exercise-04.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | 1 | 2022-03-01T13:54:43.000Z | 2022-03-01T13:54:43.000Z | 04-chapter/exercise-04.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | null | null | null | 04-chapter/exercise-04.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | null | null | null | defmodule Sum do
def up_to(0), do: 0
def up_to(n), do: up_to_t(n, n, 0)
defp up_to_t(_n, m, acc) when m == 0, do: acc
defp up_to_t(n, m, acc) when m > 0 do
up_to_t(n, m - 1, acc + m)
end
end
defmodule Math do
def sum([]), do: 0
def sum([head]), do: head
def sum([head | tail]), do: sum_t(tail, hea... | 20.125 | 52 | 0.57764 |
742fad704d1639b784b3b125d9d89816b25a4df7 | 258 | exs | Elixir | time_tracker_backend/priv/repo/migrations/20160911004655_add_uniqueness_constraint_to_projects_name.exs | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 382 | 2016-08-18T07:34:27.000Z | 2021-02-25T20:46:34.000Z | time_tracker_backend/priv/repo/migrations/20160911004655_add_uniqueness_constraint_to_projects_name.exs | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 1 | 2017-09-30T00:01:26.000Z | 2017-09-30T00:01:26.000Z | time_tracker_backend/priv/repo/migrations/20160911004655_add_uniqueness_constraint_to_projects_name.exs | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 45 | 2016-08-30T07:34:04.000Z | 2020-01-27T11:39:26.000Z | defmodule TimeTrackerBackend.Repo.Migrations.AddUniquenessConstraintToProjectsName do
use Ecto.Migration
def change do
alter table(:projects) do
modify :name, :string, unique: true
end
create unique_index(:projects, [:name])
end
end
| 23.454545 | 85 | 0.744186 |
742fba8f389efbebcbcd0c5d119225f1c839d185 | 899 | ex | Elixir | exercises/concept/need-for-speed/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/need-for-speed/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/need-for-speed/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule NeedForSpeed do
alias NeedForSpeed.Race
alias NeedForSpeed.RemoteControlCar, as: Car
import IO, only: [puts: 1]
import IO.ANSI, except: [color: 1]
def print_race(%Race{} = race) do
puts("""
🏁 #{race.title} 🏁
Status: #{Race.display_status(race)}
Distance: #{Race.display_distance(r... | 21.926829 | 66 | 0.593993 |
742fce13a132f98146b755bd6ba26bddb9d85eb0 | 436 | ex | Elixir | lib/type.ex | sizumita/DMLRunner | 9200346be11cf7422f34d54c4065fab2010d79c4 | [
"MIT"
] | null | null | null | lib/type.ex | sizumita/DMLRunner | 9200346be11cf7422f34d54c4065fab2010d79c4 | [
"MIT"
] | null | null | null | lib/type.ex | sizumita/DMLRunner | 9200346be11cf7422f34d54c4065fab2010d79c4 | [
"MIT"
] | null | null | null | defmodule Type do
defstruct name: "", valuetype: nil, parent: ""
def from_json(%{"name" => name, "value" => type}, parent) do
%Type{
name: name,
valuetype: type,
parent: parent
}
end
end
defmodule TypeDef do
def from_json(%{"type" => "typedef", "name" => name, "values" => values}) do... | 24.222222 | 104 | 0.582569 |
74300e508686c278fc1a4e9fc7e4b62abd6a0aa6 | 11,736 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_reserved_throughput_details.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_reserved_throughput_details.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_reserved_throughput_details.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStore.ReservedThroughputDetails) do
@moduledoc false
(
defstruct(capacity_unit: nil, last_increase_time: nil, last_decrease_time: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try d... | 28.485437 | 98 | 0.488412 |
74303711d86e4d7624329713713d7ef2b900495d | 2,917 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_list.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/target_vpn_gateway_list.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/target_vpn_gateway_list.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... | 47.048387 | 393 | 0.720261 |
74303dee4753ae775ebee7b5c479f93e170a9727 | 7,227 | exs | Elixir | .credo.exs | axelson/mix_machine | f5d2ee0fb98dd8c939671be1993badd41444cad6 | [
"MIT"
] | 7 | 2021-09-28T20:57:33.000Z | 2021-11-27T19:46:28.000Z | .credo.exs | axelson/mix_machine | f5d2ee0fb98dd8c939671be1993badd41444cad6 | [
"MIT"
] | 8 | 2021-09-29T17:55:57.000Z | 2022-01-19T11:38:30.000Z | .credo.exs | axelson/mix_machine | f5d2ee0fb98dd8c939671be1993badd41444cad6 | [
"MIT"
] | 2 | 2021-09-30T09:47:06.000Z | 2021-11-27T02:35:12.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 ... | 39.064865 | 97 | 0.618514 |
743056c7c280ffe51b38621fb934337cbb416774 | 800 | ex | Elixir | lib/club_backend/accounts/user.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | null | null | null | lib/club_backend/accounts/user.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | 6 | 2020-07-31T23:02:34.000Z | 2021-02-26T21:10:10.000Z | lib/club_backend/accounts/user.ex | ufosc/club-backend-ex | 87b55bc9fcccd9d458ee3277c3153f608f3a8a5e | [
"MIT"
] | 2 | 2020-08-23T23:04:00.000Z | 2020-10-03T03:18:11.000Z | defmodule ClubBackend.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :email, :string
field :password_hash, :string
field :username, :string
field :password, :string, virtual: true
... | 25 | 93 | 0.69125 |
7430852992589bcaf3c166032864ddb811a98809 | 3,511 | exs | Elixir | test/vintage_net_wifi/wpa_supplicant_ll_test.exs | pojiro/vintage_net_wifi | 1033585be6c4a8a65e6085e99b9f470711ceec1c | [
"Apache-2.0"
] | 20 | 2019-12-03T18:26:25.000Z | 2022-02-08T09:27:23.000Z | test/vintage_net_wifi/wpa_supplicant_ll_test.exs | pojiro/vintage_net_wifi | 1033585be6c4a8a65e6085e99b9f470711ceec1c | [
"Apache-2.0"
] | 29 | 2020-01-21T02:21:47.000Z | 2022-02-16T13:02:24.000Z | test/vintage_net_wifi/wpa_supplicant_ll_test.exs | pojiro/vintage_net_wifi | 1033585be6c4a8a65e6085e99b9f470711ceec1c | [
"Apache-2.0"
] | 12 | 2020-02-16T16:48:03.000Z | 2022-03-24T12:10:52.000Z | defmodule VintageNetWiFi.WPASupplicantLLTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias VintageNetWiFi.WPASupplicantLL
alias VintageNetWiFiTest.MockWPASupplicant
setup do
socket_path = "test_tmp/tmp_wpa_supplicant_socket"
mock = start_supervised!({MockWPASupplicant, socket_path})
on_exit... | 34.762376 | 100 | 0.705782 |
7430970fc890511c50ee68129020544428014206 | 266 | exs | Elixir | test/mulch_web/views/layout_view_test.exs | msaminsky/mulch | c5bd26fe2cb13cc7ebfc58d858686209febc32dc | [
"MIT"
] | 1 | 2020-10-20T22:50:45.000Z | 2020-10-20T22:50:45.000Z | test/mulch_web/views/layout_view_test.exs | msaminsky/mulch | c5bd26fe2cb13cc7ebfc58d858686209febc32dc | [
"MIT"
] | null | null | null | test/mulch_web/views/layout_view_test.exs | msaminsky/mulch | c5bd26fe2cb13cc7ebfc58d858686209febc32dc | [
"MIT"
] | null | null | null | defmodule MulchWeb.LayoutViewTest do
use MulchWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 29.555556 | 65 | 0.763158 |
7430aae4585f78fb9d52e9a9912674852681dc3c | 4,603 | ex | Elixir | lib/credo/check/consistency/helper.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/credo/check/consistency/helper.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/check/consistency/helper.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.Helper do
@moduledoc """
This module contains functions that are used by several
consistency checks.
# On properties and property lists
Imagine a test that checks files for whether they use soft-tabs or hard-tabs
for indentation.
property_values in this case might be :... | 29.696774 | 102 | 0.677167 |
7430c644f2f31c6337187f206faea8742b900d49 | 11,866 | exs | Elixir | test/avrora/resolver_test.exs | apellizzn/avrora | 02a5eb563d85f06b6af25fbed220c508bc2bf410 | [
"MIT"
] | null | null | null | test/avrora/resolver_test.exs | apellizzn/avrora | 02a5eb563d85f06b6af25fbed220c508bc2bf410 | [
"MIT"
] | null | null | null | test/avrora/resolver_test.exs | apellizzn/avrora | 02a5eb563d85f06b6af25fbed220c508bc2bf410 | [
"MIT"
] | null | null | null | defmodule Avrora.ResolverTest do
use ExUnit.Case, async: true
doctest Avrora.Resolver
import Mox
import Support.Config
import ExUnit.CaptureLog
alias Avrora.{Resolver, Schema}
setup :verify_on_exit!
setup :support_config
describe "resolve_any/1" do
test "when registry is configured and schema w... | 25.62851 | 144 | 0.589837 |
743126cea2179c8ace6ac5f828434d2af0970bc4 | 278 | exs | Elixir | apps/maintenance_web/test/maintenance_web/views/layout_view_test.exs | eksperimental/maintenance | 5d332f4886b59510e37d32ad89c724840989ada0 | [
"CC0-1.0",
"MIT-0"
] | 3 | 2021-11-13T04:50:40.000Z | 2022-01-09T21:27:33.000Z | apps/maintenance_web/test/maintenance_web/views/layout_view_test.exs | eksperimental/maintenance | 5d332f4886b59510e37d32ad89c724840989ada0 | [
"CC0-1.0",
"MIT-0"
] | null | null | null | apps/maintenance_web/test/maintenance_web/views/layout_view_test.exs | eksperimental/maintenance | 5d332f4886b59510e37d32ad89c724840989ada0 | [
"CC0-1.0",
"MIT-0"
] | null | null | null | defmodule MaintenanceWeb.LayoutViewTest do
use MaintenanceWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.888889 | 65 | 0.773381 |
7431336fc54f36203db53e6ee5f1deceb8bb7530 | 386 | ex | Elixir | web/views/error_view.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | 1 | 2017-06-19T18:18:11.000Z | 2017-06-19T18:18:11.000Z | web/views/error_view.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | defmodule JwMinistryApi.ErrorView do
use JwMinistryApi.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_foun... | 21.444444 | 47 | 0.707254 |
743148adb0fcb849efb528706a47baa8d8316eb5 | 206 | ex | Elixir | lib/hl7/2.3.1/segments/nck.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/nck.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/nck.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.NCK do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
system_date_time: DataTypes.Ts
]
end
| 15.846154 | 36 | 0.679612 |
74314efeece6bdbe6f24eac10fd34b9504c387dd | 1,899 | exs | Elixir | apps/rumbl/mix.exs | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/rumbl/mix.exs | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/rumbl/mix.exs | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | defmodule Rumbl.Mixfile do
use Mix.Project
def project do
[app: :rumbl,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
com... | 30.629032 | 89 | 0.587678 |
7431c07f41062649e63dd45992e85918a943dcd4 | 626 | ex | Elixir | lib/docusign/model/template_match.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/template_match.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/template_match.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.TemplateMatch do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:documentEndPage,
:documentStartPage,
... | 21.586207 | 75 | 0.669329 |
7431c0ca5b766391f98c07a4f2310e99d7fe25de | 1,402 | exs | Elixir | apps/dead_letter/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/dead_letter/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/dead_letter/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | defmodule DeadLetter.MixProject do
use Mix.Project
def project do
[
app: :dead_letter,
version: "1.0.7",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.8",
elixir_paths: elixi... | 26.961538 | 88 | 0.539943 |
7431c39bb60581fef3cd04fed48a6e49879c94d5 | 1,914 | exs | Elixir | preview/config/dev.exs | podlove/podlove-preview | 7a12cedf338929762e8ef4dea69771e29a89f132 | [
"MIT"
] | 2 | 2019-02-23T12:19:46.000Z | 2020-02-18T11:53:09.000Z | preview/config/dev.exs | podlove/podlove-preview | 7a12cedf338929762e8ef4dea69771e29a89f132 | [
"MIT"
] | 5 | 2019-01-09T16:18:04.000Z | 2019-01-19T10:10:30.000Z | preview/config/dev.exs | podlove/podlove-preview | 7a12cedf338929762e8ef4dea69771e29a89f132 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :preview, PreviewWeb.Endpoint,
http: [:inet6, po... | 28.147059 | 68 | 0.683908 |
7431fe8073aff3a30bf613e67d12cfcca23ab66d | 559 | ex | Elixir | lib/paushal_web/router.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | null | null | null | lib/paushal_web/router.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | 6 | 2021-03-20T17:24:05.000Z | 2021-03-20T17:41:19.000Z | lib/paushal_web/router.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | null | null | null | defmodule PaushalWeb.Router do
use PaushalWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", PaushalWeb do
pipe_... | 19.964286 | 54 | 0.676208 |
7431ffeef7cf04579ae134eb8eb3a7f9c6f37f4a | 328 | exs | Elixir | tests_elixir/mix.exs | kelostrada/prettier-plugin-eex | ad564af3a5f941c6d0985f53dca4757b87fb58e1 | [
"MIT"
] | 120 | 2021-01-25T18:41:13.000Z | 2022-02-05T23:49:12.000Z | tests_elixir/mix.exs | kelostrada/prettier-plugin-eex | ad564af3a5f941c6d0985f53dca4757b87fb58e1 | [
"MIT"
] | 64 | 2021-01-25T18:29:18.000Z | 2022-03-21T13:11:10.000Z | tests_elixir/mix.exs | kelostrada/prettier-plugin-eex | ad564af3a5f941c6d0985f53dca4757b87fb58e1 | [
"MIT"
] | 8 | 2021-01-27T02:15:29.000Z | 2022-03-30T11:58:15.000Z | defmodule TestsElixir.MixProject do
use Mix.Project
def project do
[
app: :tests_elixir,
version: "0.1.0",
elixir: "~> 1.8",
aliases: aliases()
]
end
def aliases do
[
prettier: "cmd ../node_modules/.bin/prettier --plugin ../ --check ./formatted_views --color"
]
... | 17.263158 | 98 | 0.579268 |
743201fb0d6b39844530e80cafa029ce8035f28e | 938 | ex | Elixir | test/support/channel_case.ex | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | 2 | 2021-05-30T20:11:44.000Z | 2021-12-20T19:08:56.000Z | test/support/channel_case.ex | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | null | null | null | test/support/channel_case.ex | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | 1 | 2022-01-23T05:29:08.000Z | 2022-01-23T05:29:08.000Z | defmodule ElCloudWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts w... | 24.684211 | 69 | 0.715352 |
743210009c76c29c2f137aa417d0fca326ae31c2 | 7,018 | ex | Elixir | lib/domo/type_ensurer_factory/resolver.ex | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | lib/domo/type_ensurer_factory/resolver.ex | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | lib/domo/type_ensurer_factory/resolver.ex | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | defmodule Domo.TypeEnsurerFactory.Resolver do
@moduledoc false
alias Domo.TypeEnsurerFactory.Alias
alias Domo.TypeEnsurerFactory.Error
alias Domo.TypeEnsurerFactory.ModuleInspector
alias Domo.TypeEnsurerFactory.Resolver.Fields
def resolve(plan_path, preconds_path, types_path, deps_path, write_file_module ... | 31.330357 | 129 | 0.642633 |
74324cc41012314ac61696a0d00f05080c09a715 | 5,633 | ex | Elixir | lib/amqp/gen/consumer.ex | parry84/amqpx | 41bb9a5c7095e2e2720fc4dcd65c1a14df98a656 | [
"MIT"
] | null | null | null | lib/amqp/gen/consumer.ex | parry84/amqpx | 41bb9a5c7095e2e2720fc4dcd65c1a14df98a656 | [
"MIT"
] | null | null | null | lib/amqp/gen/consumer.ex | parry84/amqpx | 41bb9a5c7095e2e2720fc4dcd65c1a14df98a656 | [
"MIT"
] | null | null | null | defmodule Amqpx.Gen.Consumer do
@moduledoc """
Generic implementation of amqp consumer
"""
require Logger
use GenServer
import Amqpx.Core
alias Amqpx.{Channel, Basic}
defstruct [
:channel,
:handler_module,
:handler_state,
prefetch_count: 50,
backoff: 5_000
]
@type state() :: %_... | 26.82381 | 99 | 0.606959 |
74325f479d15edb7c189d2300e62c29c3d53c99e | 14,519 | exs | Elixir | lib/mix/test/mix/tasks/test_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/test/mix/tasks/test_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/mix/test/mix/tasks/test_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.TestTest do
use MixTest.Case
describe "ex_unit_opts/1" do
test "returns ex unit options" do
assert ex_unit_opts_from_given(unknown: "ok", seed: 13) == [seed: 13]
end
test "returns includes and excludes" do
included = ... | 30.891489 | 96 | 0.551691 |
74326d0083eb4d1ecf421f56b4dfb102725fac16 | 160 | exs | Elixir | priv/repo/migrations/20180513145927_create_track_index.exs | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 3 | 2018-05-17T17:43:06.000Z | 2018-06-09T02:12:25.000Z | priv/repo/migrations/20180513145927_create_track_index.exs | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 2 | 2018-06-04T15:51:36.000Z | 2018-06-20T11:31:23.000Z | priv/repo/migrations/20180513145927_create_track_index.exs | samuelbriole/jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | null | null | null | defmodule Jukee.Repo.Migrations.CreateTrackIndex do
use Ecto.Migration
def change do
create unique_index(:tracks, [:provider, :external_id])
end
end
| 20 | 59 | 0.7625 |
743288ef43100c1547a7c847ebff8e8808f05dd5 | 4,130 | exs | Elixir | test/register_test.exs | erikmueller/ex_admin | af8f3e23a03148d8365cc3b71286f855fb919f8c | [
"MIT"
] | null | null | null | test/register_test.exs | erikmueller/ex_admin | af8f3e23a03148d8365cc3b71286f855fb919f8c | [
"MIT"
] | null | null | null | test/register_test.exs | erikmueller/ex_admin | af8f3e23a03148d8365cc3b71286f855fb919f8c | [
"MIT"
] | null | null | null | defmodule TestExAdmin.ExAdmin.Test do
use ExAdmin.Register
register_resource TestExAdmin.Simple do
controller do
before_filter :one, only: [:create, :update]
after_filter :two
def one(conn, params) do
{conn, Map.put(params, before: 1)}
end
def two(conn, params) do
... | 28.095238 | 104 | 0.643341 |
7432ae496131c5befd54c57307222b6d7a9584dd | 59 | ex | Elixir | lib/aspekt_web/views/page_view.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt_web/views/page_view.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt_web/views/page_view.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | defmodule AspektWeb.PageView do
use AspektWeb, :view
end
| 14.75 | 31 | 0.79661 |
7432b67b3bcbe502c48da5084d1f0068caf51884 | 1,899 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/complete_query_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/complete_query_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/complete_query_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.235294 | 133 | 0.753555 |
7432ce2db29723678e35c4ca36f7bf22145c9934 | 841 | exs | Elixir | mix.exs | ludwikbukowski/decorator | 697c688bc89961d738939d7771f7eeea6251eea1 | [
"MIT"
] | null | null | null | mix.exs | ludwikbukowski/decorator | 697c688bc89961d738939d7771f7eeea6251eea1 | [
"MIT"
] | null | null | null | mix.exs | ludwikbukowski/decorator | 697c688bc89961d738939d7771f7eeea6251eea1 | [
"MIT"
] | null | null | null | defmodule Decorator.Mixfile do
use Mix.Project
def project do
[app: :decorator,
version: "1.2.3",
elixir: "~> 1.3",
elixirc_options: [warnings_as_errors: true],
description: description(),
package: package(),
source_url: "https://github.com/arjan/decorator",
homepage_url: "ht... | 22.131579 | 65 | 0.606421 |
7433115cf1b4a2a3332238fa122177d980a75c77 | 1,683 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/acknowledge_task_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/acknowledge_task_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/acknowledge_task_request.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... | 35.808511 | 268 | 0.759952 |
74331af382806934321f4b6ed06e57fa61466865 | 756 | ex | Elixir | lib/job_board_web/controllers/auth_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/auth_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/auth_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.AuthController do
use JobBoardWeb, :controller
alias JobBoard.Accounts
def logout(conn) do
Accounts.remove_token(conn.assigns.current_user)
conn
|> clear_session()
|> put_flash(:info, "Signed Out")
end
def login(conn, user) do
token = Accounts.set_token(user)
... | 24.387097 | 70 | 0.67328 |
7433465a638a71d66f949332ea78a9f2d2390ec4 | 743 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/route_properties_format.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.Network/lib/microsoft/azure/management/network/model/route_properties_format.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/route_properties_format.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.Network.Model.RoutePropertiesFormat do
@moduledoc """
Route resource
"""
@derive [Poison.Encoder]
defstruct ... | 23.21875 | 94 | 0.701211 |
7433b228a61ddadd8eb13dcbc56c5b9e0abec710 | 483 | ex | Elixir | apps/tai/lib/tai/orders/responses/create_accepted.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/orders/responses/create_accepted.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/orders/responses/create_accepted.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.Responses.CreateAccepted do
@moduledoc """
Returned from venue adapters when accepted for creation. Updates to the order
will be received from the stream.
"""
@type venue_order_id :: Tai.Orders.Order.venue_order_id()
@type t :: %__MODULE__{
id: venue_order_id,
rece... | 28.411765 | 80 | 0.693582 |
7433b2a53bea6f6b630cf9ff566041acabe9a1a3 | 638 | ex | Elixir | web/plugs/check_username.ex | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | 1 | 2020-01-19T03:29:22.000Z | 2020-01-19T03:29:22.000Z | web/plugs/check_username.ex | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | null | null | null | web/plugs/check_username.ex | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | null | null | null | defmodule InteractiveTetris.CheckUsername do
import Plug.Conn
def init(options), do: options
defp redirect(conn, url) do
html = Plug.HTML.html_escape(url)
body = "<html><body>You are being <a href=\"#{html}\">redirected</a>.</body></html>"
conn
|> put_resp_header("location", url)
|> put_res... | 30.380952 | 101 | 0.675549 |
7433d82b284f9185f8c57b8e1920897b301eab4d | 275 | exs | Elixir | .formatter.exs | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | .formatter.exs | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | .formatter.exs | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | [
inputs: [
"lib/*/{lib,unicode,test}/**/*.{ex,exs}",
"lib/*/mix.exs"
],
locals_without_parens: [
# Formatter tests
assert_format: 2,
assert_format: 3,
assert_same: 1,
assert_same: 2,
# Mix tests
in_fixture: 2,
in_tmp: 2
]
]
| 14.473684 | 45 | 0.545455 |
7433dfcd72178e19627744f66f8ca0048374131c | 1,063 | ex | Elixir | code_flow/lib/comprehension.ex | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/lib/comprehension.ex | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/lib/comprehension.ex | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | # ---
# Excerpted from "Thinking Elixir - CodeFlow", published by Mark Ericksen.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact me if you are in doubt. I make
# no guarantees that this code is fit for any purpose. Visit
# https://thinki... | 30.371429 | 81 | 0.638758 |
74343403e0f4c9eb821e24a663c76aad4d5b62ce | 1,051 | ex | Elixir | lib/elixirfm/geo.ex | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | lib/elixirfm/geo.ex | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | lib/elixirfm/geo.ex | boonious/Elixirfm | 8f07f6ec296da254307ed190a13a0f8a42c7a80a | [
"MIT"
] | null | null | null | defmodule Elixirfm.Geo do
@moduledoc """
Last.fm Geo endpoint api
"""
@method "geo"
defp uri(url), do: Elixirfm.get_request(@method <> url)
@doc """
Get the most popular artists on Last.fm by country.
```query``` must be a country name, as defined by the [ISO 3166-1](http://www.nationsonline.org/onew... | 37.535714 | 153 | 0.67745 |
743467b8493c1ba06f6106dbfe5fac747c6fd4fb | 81 | exs | Elixir | src/basic/03_tuple.exs | mkdika/learn-elixir | f66defe8c7255f2b36dcf668e10389b0f2b0985a | [
"MIT"
] | null | null | null | src/basic/03_tuple.exs | mkdika/learn-elixir | f66defe8c7255f2b36dcf668e10389b0f2b0985a | [
"MIT"
] | null | null | null | src/basic/03_tuple.exs | mkdika/learn-elixir | f66defe8c7255f2b36dcf668e10389b0f2b0985a | [
"MIT"
] | null | null | null | # Tuple
# once created, tuple can not be modified.
t1 = {:maikel, 1234, 0.234}
| 13.5 | 42 | 0.654321 |
7434909b87c47bc1fdb56ab0b3a76ee8cabf84b1 | 34,435 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.852197 | 196 | 0.619573 |
7435250217d97bef46ac57a26109c84526e72a64 | 670 | ex | Elixir | lib/policr_mini_web/views/api/third_party_view.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini_web/views/api/third_party_view.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini_web/views/api/third_party_view.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniWeb.API.ThirdPartyView do
@moduledoc """
渲染前台第三方实例数据。
"""
use PolicrMiniWeb, :view
@spec render(String.t(), map()) :: map()
def render("third_party.json", %{third_party: third_party}) do
third_party
|> Map.drop([:__meta__, :hardware, :inserted_at, :updated_at])
|> Map.from_... | 24.814815 | 80 | 0.665672 |
7435324240a4688c9c49ef733a3e86da0a13043f | 1,937 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/uniform_sharding.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/uniform_sharding.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/uniform_sharding.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... | 41.212766 | 421 | 0.75271 |
74353c752e7708c075ca0da2f7cc2b4addbfe411 | 1,856 | exs | Elixir | mix.exs | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | mix.exs | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | null | null | null | mix.exs | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | null | null | null | defmodule Rumbl.MixProject do
use Mix.Project
def project do
[
app: :rumbl,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
d... | 27.701493 | 84 | 0.57597 |
743549b5b9b216e67f29333580378542abdf53eb | 6,440 | ex | Elixir | lib/omise/recipient.ex | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | null | null | null | lib/omise/recipient.ex | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | null | null | null | lib/omise/recipient.ex | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | null | null | null | defmodule Omise.Recipient do
@moduledoc ~S"""
Provides Recipient API interfaces.
<https://www.omise.co/recipients-api>
"""
use Omise.HTTPClient, endpoint: "recipients"
defstruct object: "recipient",
id: nil,
livemode: nil,
location: nil,
verified: nil,
... | 30.377358 | 140 | 0.600776 |
74356cebb1eab9686373f0861407d7526cb0c56b | 6,221 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_parameters.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_parameters.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_parameters.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 74.951807 | 889 | 0.738306 |
743596c0077fe08fc356fb48c061ee3465ac4e8e | 104 | ex | Elixir | bowman/lib/bowman/repo.ex | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | null | null | null | bowman/lib/bowman/repo.ex | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | 3 | 2020-07-17T01:30:50.000Z | 2021-05-08T20:23:35.000Z | bowman/lib/bowman/repo.ex | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | null | null | null | defmodule Bowman.Repo do
use Ecto.Repo,
otp_app: :bowman,
adapter: Ecto.Adapters.Postgres
end
| 17.333333 | 35 | 0.721154 |
7435a28b347da8b4483ddd1758e435806205f6b7 | 5,458 | ex | Elixir | lib/mdns/client.ex | mickel8/mdns | c3331f201d0ddd77fe311e917e15565fbb5c6cb2 | [
"Apache-2.0"
] | null | null | null | lib/mdns/client.ex | mickel8/mdns | c3331f201d0ddd77fe311e917e15565fbb5c6cb2 | [
"Apache-2.0"
] | null | null | null | lib/mdns/client.ex | mickel8/mdns | c3331f201d0ddd77fe311e917e15565fbb5c6cb2 | [
"Apache-2.0"
] | null | null | null | defmodule Mdns.Client do
use GenServer
require Logger
alias Mdns.Utilities.Network
@query_packet %DNS.Record{
header: %DNS.Header{},
qdlist: []
}
defmodule State do
defstruct devices: %{},
udp: nil,
handlers: [],
queries: []
end
defmodule Device d... | 25.504673 | 103 | 0.589593 |
7435b4482351ea3682253c6605e7783fed0780f1 | 1,935 | ex | Elixir | apps/artemis_web/lib/artemis_web/view_helpers/notifications.ex | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis_web/lib/artemis_web/view_helpers/notifications.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis_web/lib/artemis_web/view_helpers/notifications.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule ArtemisWeb.ViewHelper.Notifications do
use Phoenix.HTML
import ArtemisWeb.Guardian.Helpers
@doc """
Generates a notification
"""
def render_notification(type, params \\ []) do
Phoenix.View.render(ArtemisWeb.LayoutView, "notification_#{type}.html", params)
end
@doc """
Generates a noti... | 24.493671 | 86 | 0.660465 |
7435bee9c5553572f9be8631ea36bfb4211b6a43 | 225 | exs | Elixir | priv/repo/migrations/20180317114920_set_utc.exs | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180317114920_set_utc.exs | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180317114920_set_utc.exs | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repo.Migrations.SetUtc do
use Ecto.Migration
def change do
database_name = Keyword.fetch!(Hexpm.Repo.config(), :database)
execute "ALTER DATABASE #{database_name} SET timezone TO 'UTC'"
end
end
| 25 | 67 | 0.737778 |
7435f9d1a1f5970230ae634db10c2221de0237af | 333 | ex | Elixir | lib/wechat/utils/signature_verifier.ex | ZhengQingchen/wechat | c1d1cdbf2578fc27ece38b5ca702e22e7817da07 | [
"MIT"
] | 36 | 2016-09-08T06:12:34.000Z | 2018-08-14T03:45:16.000Z | lib/wechat/utils/signature_verifier.ex | ZhengQingchen/wechat | c1d1cdbf2578fc27ece38b5ca702e22e7817da07 | [
"MIT"
] | 15 | 2016-09-06T04:25:19.000Z | 2017-12-14T12:08:14.000Z | lib/wechat/utils/signature_verifier.ex | ZhengQingchen/wechat | c1d1cdbf2578fc27ece38b5ca702e22e7817da07 | [
"MIT"
] | 10 | 2016-09-06T03:58:10.000Z | 2017-12-14T06:36:51.000Z | defmodule Wechat.Utils.SignatureVerifier do
@moduledoc """
Verify wechat signature.
"""
alias Plug.Crypto, as: PCryto
def verify?(args, signature) do
args
|> sign
|> PCryto.secure_compare(signature)
end
def sign(args) do
args
|> Enum.sort()
|> Enum.join()
|> Wechat.Util.sha1... | 15.857143 | 43 | 0.627628 |
7435fe5f7a456485338c27069aab1efb01d57830 | 85 | exs | Elixir | test/ex_micro_blog_web/controllers/timeline_controller_test.exs | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 3 | 2020-04-21T22:48:23.000Z | 2020-05-12T19:58:31.000Z | test/ex_micro_blog_web/controllers/timeline_controller_test.exs | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 1 | 2021-05-11T11:22:49.000Z | 2021-05-11T11:22:49.000Z | test/ex_micro_blog_web/controllers/timeline_controller_test.exs | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | null | null | null | defmodule ExMicroBlogWeb.TimelineControllerTest do
use ExMicroBlogWeb.ConnCase
end
| 21.25 | 50 | 0.882353 |
7436226d9eeddc6416b19c674c354410948b0ce9 | 69 | exs | Elixir | behaviours-en-elixir/demo/test/test_helper.exs | erickgnavar/talks | 63a47169eefa91f32dd9a120a56b6cc564c2e323 | [
"MIT"
] | null | null | null | behaviours-en-elixir/demo/test/test_helper.exs | erickgnavar/talks | 63a47169eefa91f32dd9a120a56b6cc564c2e323 | [
"MIT"
] | null | null | null | behaviours-en-elixir/demo/test/test_helper.exs | erickgnavar/talks | 63a47169eefa91f32dd9a120a56b6cc564c2e323 | [
"MIT"
] | null | null | null | ExUnit.start()
Mox.defmock(Demo.PokeApiMock, for: Demo.PokeApiSpec)
| 17.25 | 52 | 0.782609 |
743645fc043a4073b8afddab852f1f9335621b07 | 1,319 | exs | Elixir | test/ravenex/exception_parser_test.exs | hayesgm/ravenex | 536a49d4daad920ce8cf382714c02052938d72f2 | [
"MIT"
] | 10 | 2016-04-24T14:20:52.000Z | 2018-03-05T23:42:07.000Z | test/ravenex/exception_parser_test.exs | hayesgm/ravenex | 536a49d4daad920ce8cf382714c02052938d72f2 | [
"MIT"
] | 6 | 2016-06-13T09:19:49.000Z | 2018-09-06T23:00:24.000Z | test/ravenex/exception_parser_test.exs | hayesgm/ravenex | 536a49d4daad920ce8cf382714c02052938d72f2 | [
"MIT"
] | 8 | 2016-04-27T14:31:02.000Z | 2018-09-04T17:09:38.000Z | defmodule Ravenex.ExceptionParserTest do
use ExUnit.Case
setup_all do
if Process.whereis(RavenexSupervisor) == nil do
Application.put_env(:ravenex, :scrubbers, nil)
RavenexSupervisor.start_link([max_restarts: 20])
end
:ok
end
test "should parse exception" do
exception = try do
... | 36.638889 | 173 | 0.663381 |
743657f5035536f35f8dba07f3ec99316dd1de8e | 2,321 | ex | Elixir | documentation/examples/consumer_options.ex | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 164 | 2018-03-25T10:02:09.000Z | 2022-03-15T12:39:24.000Z | documentation/examples/consumer_options.ex | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 239 | 2018-03-14T13:08:42.000Z | 2022-03-20T08:59:16.000Z | documentation/examples/consumer_options.ex | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 41 | 2018-05-15T10:07:13.000Z | 2022-02-11T14:36:27.000Z | defmodule ExampleConsumerOptions do
@moduledoc """
Example GenRMQ.Consumer implementation.
Sample usage:
```
MIX_ENV=test iex -S mix
iex(1)> ExampleConsumerOptions.start_link()
```
"""
@behaviour GenRMQ.Consumer
require Logger
alias GenRMQ.Message
############################################... | 28.304878 | 144 | 0.567428 |
74366441f3f27b7dc5628436bf16ca21337fa1cb | 3,788 | ex | Elixir | lib/avr/ihex.ex | luisgabrielroldan/avr | a21b3bfce083adbbcd9a223ec6e4b12ae0439e34 | [
"Apache-2.0"
] | 10 | 2020-01-07T06:54:25.000Z | 2021-10-16T06:42:19.000Z | lib/avr/ihex.ex | luisgabrielroldan/ex_avr | a21b3bfce083adbbcd9a223ec6e4b12ae0439e34 | [
"Apache-2.0"
] | null | null | null | lib/avr/ihex.ex | luisgabrielroldan/ex_avr | a21b3bfce083adbbcd9a223ec6e4b12ae0439e34 | [
"Apache-2.0"
] | 2 | 2020-11-24T12:06:50.000Z | 2021-03-15T12:48:14.000Z | defmodule AVR.IHex do
@moduledoc false
use Bitwise
defstruct regions: nil
defmodule State do
@moduledoc false
defstruct buffer: nil, type: nil, nextaddr: nil, eof: nil, baseaddr: nil, startaddr: nil
end
@type baseaddr :: non_neg_integer()
@type region :: {baseaddr(), binary()}
@type t :: %_... | 23.097561 | 96 | 0.555438 |
743673a03460802f95d1b184e19d58c60d50c304 | 14,378 | ex | Elixir | lib/web/controllers/project_controller.ex | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | lib/web/controllers/project_controller.ex | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | lib/web/controllers/project_controller.ex | gebner/bors-ng | 7a88ef7cceb1f112374a426a4bdfffc323b44a61 | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.ProjectController do
@moduledoc """
Shows a list of repositories, a single repository,
and the repository's settings page.
n.b.
We call it a project internally, though it corresponds
to a GitHub repository. This is to avoid confusing
a GitHub repo with an Ecto repo.
"""
use BorsNG.W... | 32.455982 | 85 | 0.636111 |
74367a21cc3c981a156b5d2066e5eba0d9f085f3 | 2,333 | ex | Elixir | lib/sanbase/billing/plan/custom_access.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/billing/plan/custom_access.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/billing/plan/custom_access.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Billing.Plan.CustomAccess do
@moduledoc ~s"""
Provide per-query custom access configuration.
Some queries have custom access logic. For example for Token Age Consumed
we're showing everything except the last 30 days for free users.
In order to add a new custom metric the description must b... | 35.348485 | 99 | 0.687955 |
7436883920eca392a5e6d2556df9570adfcd17bb | 383 | ex | Elixir | otp_examples/chat/lib/chat/supervisor.ex | hbobenicio/elixir-examples | a116955b6e180f295dde5a41bd729fcd5d69857e | [
"Apache-2.0"
] | null | null | null | otp_examples/chat/lib/chat/supervisor.ex | hbobenicio/elixir-examples | a116955b6e180f295dde5a41bd729fcd5d69857e | [
"Apache-2.0"
] | null | null | null | otp_examples/chat/lib/chat/supervisor.ex | hbobenicio/elixir-examples | a116955b6e180f295dde5a41bd729fcd5d69857e | [
"Apache-2.0"
] | null | null | null | defmodule Chat.Supervisor do
@moduledoc """
The Chat Supervisor
"""
use Supervisor
# API
def start_link do
Supervisor.start_link(__MODULE__, :ok, [name: __MODULE__])
end
# CALLBACKS
def init(:ok) do
children = [
Chat.ChannelList # Calls Chat.ChannelList.start_link/1 with []
]
... | 15.958333 | 68 | 0.668407 |
74369f0d65d9715184054dd468b071564157c4f9 | 5,319 | ex | Elixir | lib/event_store/storage/database.ex | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | lib/event_store/storage/database.ex | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | lib/event_store/storage/database.ex | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | defmodule EventStore.Storage.Database do
@moduledoc false
require Logger
def create(config), do: storage_up(config)
def drop(config), do: storage_down(config)
def execute(config, script) do
opts = Keyword.put(config, :timeout, :infinity)
case run_query(script, opts) do
{:ok, _} -> :ok
... | 25.449761 | 94 | 0.590149 |
7436fba69149fe21333c848cbf5f0bdfc2cb6141 | 14,506 | ex | Elixir | test/support/test_consumers.ex | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | test/support/test_consumers.ex | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | test/support/test_consumers.ex | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | defmodule TestConsumer do
defmodule Default do
@moduledoc false
@behaviour GenRMQ.Consumer
def init() do
[
queue: "gen_rmq_in_queue",
exchange: "gen_rmq_in_exchange",
routing_key: "#",
prefetch_count: "10",
connection: "amqp://guest:guest@localhost:5672",
... | 24.136439 | 77 | 0.637047 |
7437053c8c03e859db6f1bf4274ec29012f8310b | 893 | exs | Elixir | test/hora/changeset_test.exs | sticksnleaves/me | a63478c4eb82f586da706c9394156018f35ca686 | [
"MIT"
] | 5 | 2017-04-07T19:27:27.000Z | 2020-10-30T23:24:16.000Z | test/hora/changeset_test.exs | sticksnleaves/me | a63478c4eb82f586da706c9394156018f35ca686 | [
"MIT"
] | null | null | null | test/hora/changeset_test.exs | sticksnleaves/me | a63478c4eb82f586da706c9394156018f35ca686 | [
"MIT"
] | null | null | null | defmodule Hora.EctoTest do
use ExUnit.Case
defmodule TestModule do
use Ecto.Schema
import Ecto.Changeset
import Hora.Changeset
schema "some schema" do
field :password, :string, virtual: true
field :password_digest, :string
end
def changeset(schema, params) do
schema
... | 24.805556 | 85 | 0.68533 |
7437381ae25dbb125a2fde6d135fa86cf7209365 | 3,451 | ex | Elixir | rustler_mix/lib/mix/tasks/rustler.new.ex | jtdowney/rustler | c61ab3c407e3d8040e3a3b54889f5c388c5c80e5 | [
"Apache-2.0",
"MIT"
] | null | null | null | rustler_mix/lib/mix/tasks/rustler.new.ex | jtdowney/rustler | c61ab3c407e3d8040e3a3b54889f5c388c5c80e5 | [
"Apache-2.0",
"MIT"
] | null | null | null | rustler_mix/lib/mix/tasks/rustler.new.ex | jtdowney/rustler | c61ab3c407e3d8040e3a3b54889f5c388c5c80e5 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Mix.Tasks.Rustler.New do
use Mix.Task
import Mix.Generator
@shortdoc "Creates a new Rustler project"
@moduledoc """
Generates boilerplate for a new Rustler project.
Usage:
```
mix rustler.new [--module <Module>] [--name <Name>] [--otp-app <OTP App>]
```
"""
@basic [
{:eex, "basic... | 25.007246 | 103 | 0.592582 |
74374b07c3c90f85a830ad35c1987443ff462691 | 2,386 | ex | Elixir | lib/ggity/geom/point.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 47 | 2020-06-21T15:23:54.000Z | 2022-03-13T01:24:19.000Z | lib/ggity/geom/point.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 3 | 2020-11-28T11:00:59.000Z | 2020-11-30T18:20:37.000Z | lib/ggity/geom/point.ex | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 2 | 2020-11-28T10:40:10.000Z | 2021-05-28T06:44:47.000Z | defmodule GGity.Geom.Point do
@moduledoc false
alias GGity.{Geom, Plot}
@type t() :: %__MODULE__{}
@type plot() :: %Plot{}
@type record() :: map()
@type mapping() :: map()
defstruct data: nil,
mapping: nil,
stat: :identity,
position: :identity,
key_glyph:... | 30.589744 | 98 | 0.605616 |
74374c25d06270c02e243cf95d620030b2a20a4c | 2,369 | ex | Elixir | lib/game_web.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | lib/game_web.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | 1 | 2021-10-18T21:44:37.000Z | 2021-10-18T21:44:37.000Z | lib/game_web.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | defmodule GameWeb 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 GameWeb, :controller
use GameWeb, :view
The definitions below will be executed for every view, controller, etc, so keep th... | 22.778846 | 90 | 0.676235 |
743758a3b56d3ab84635756c85809469b3afc964 | 1,530 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/confidential_instance_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/confidential_instance_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/confidential_instance_config.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... | 32.553191 | 146 | 0.755556 |
74376002ead6f9f1055028a9adc2894d103f5097 | 1,242 | ex | Elixir | lib/gps_web/router.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | 1 | 2021-03-28T08:22:40.000Z | 2021-03-28T08:22:40.000Z | lib/gps_web/router.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | null | null | null | lib/gps_web/router.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | 1 | 2021-01-15T12:40:12.000Z | 2021-01-15T12:40:12.000Z | defmodule GpsWeb.Router do
use GpsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {GpsWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, [... | 25.875 | 70 | 0.685185 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.