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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
975a53696a2a8db049f9253146b443b3720eaed0 | 1,610 | ex | Elixir | clients/content/lib/google_api/content/v2/model/error.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/error.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/error.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... | 30.377358 | 84 | 0.690062 |
975a713ac7c72feb0d5070b6353382c2aed2ce5c | 1,866 | ex | Elixir | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_carriers_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_carriers_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_carriers_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.884615 | 175 | 0.745981 |
975a8e98ccfbdc7833c424135dd985745f8a8455 | 1,136 | exs | Elixir | test/web/controllers/user_invite_accept_controller_test.exs | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 5 | 2019-08-29T20:22:25.000Z | 2020-04-01T17:40:48.000Z | test/web/controllers/user_invite_accept_controller_test.exs | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 34 | 2019-03-06T17:53:29.000Z | 2021-09-01T01:25:23.000Z | test/web/controllers/user_invite_accept_controller_test.exs | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 2 | 2020-01-10T22:12:36.000Z | 2021-01-22T04:37:45.000Z | defmodule Web.UserInviteAcceptControllerTest do
use Web.ConnCase
describe "accepting your invite" do
test "successfully", %{conn: conn} do
user = TestHelpers.create_invited_user()
params = %{
first_name: "User",
last_name: "Example",
phone_number: "123-123-1234",
pa... | 25.244444 | 97 | 0.617958 |
975a9e9309ccf583643384571cfd8c4c0eb61334 | 2,351 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case_case_content.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case_case_content.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_conditional_cases_case_case_content.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.919355 | 179 | 0.775415 |
975aacb0f637869e9b453b2751fd000517360f7c | 506 | exs | Elixir | config/config.exs | celaxodon/elixir_git_hooks | 108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad | [
"MIT"
] | null | null | null | config/config.exs | celaxodon/elixir_git_hooks | 108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad | [
"MIT"
] | null | null | null | config/config.exs | celaxodon/elixir_git_hooks | 108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad | [
"MIT"
] | null | null | null | use Mix.Config
config :git_hooks,
hooks: [
commit_msg: [
verbose: true,
tasks: [
{:file, "./priv/test_script", include_hook_args: true},
{:cmd, "elixir ./priv/test_task.ex", include_hook_args: true}
]
],
pre_commit: [
verbose: true,
tasks: [
"mix form... | 18.740741 | 69 | 0.5 |
975ab9eb7992269dcea743797e507f96f6942ba0 | 57 | ex | Elixir | web/views/page_view.ex | korczis/web-spa | 0e8d684fbd8c91b9c745c75c757517821fc24a3a | [
"MIT"
] | 1 | 2021-01-17T21:57:46.000Z | 2021-01-17T21:57:46.000Z | web/views/page_view.ex | korczis/web-spa | 0e8d684fbd8c91b9c745c75c757517821fc24a3a | [
"MIT"
] | null | null | null | web/views/page_view.ex | korczis/web-spa | 0e8d684fbd8c91b9c745c75c757517821fc24a3a | [
"MIT"
] | 1 | 2017-07-13T08:34:20.000Z | 2017-07-13T08:34:20.000Z | defmodule WebSpa.PageView do
use WebSpa.Web, :view
end
| 14.25 | 28 | 0.77193 |
975abfd39e90b1788bba2565d0d82d18260ccc36 | 1,928 | ex | Elixir | exercises/practice/two-bucket/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/two-bucket/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/two-bucket/.meta/example.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule TwoBucket do
defstruct [:bucket_one, :bucket_two, :moves]
@type t :: %TwoBucket{bucket_one: integer, bucket_two: integer, moves: integer}
@doc """
Find the quickest way to fill a bucket with some amount of water from two buckets of specific sizes.
"""
@spec measure(
size_one :: integer,... | 31.606557 | 102 | 0.610477 |
975aed3e5a396630ad0ee0ef758759bab9ea5a58 | 1,828 | exs | Elixir | clients/chat/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/chat/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/chat/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"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... | 27.283582 | 109 | 0.653173 |
975af0e6929b60e6b20ffb5d629eda449ada44f3 | 12,318 | exs | Elixir | test/subscriptions/subscriptions_test.exs | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/subscriptions/subscriptions_test.exs | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/subscriptions/subscriptions_test.exs | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.SubscriptionsTest do
use ExUnit.Case
alias Commanded.DefaultApp
alias Commanded.EventStore.RecordedEvent
alias Commanded.Subscriptions
describe "register subscription" do
setup do
start_supervised!(DefaultApp)
:ok
end
test "should be registered" do
:ok = Su... | 32.330709 | 96 | 0.627699 |
975b004be7eb545252fe6b5f3606e2d002d8e001 | 1,763 | exs | Elixir | clients/logging/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/logging/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/logging/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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... | 26.313433 | 98 | 0.646625 |
975b17fb2c58bed0aaaeb17cd90546f450679af2 | 1,901 | exs | Elixir | mix.exs | gabrielrinaldi/surface | 7e549911081225172de331089a12b7309481ce71 | [
"MIT"
] | null | null | null | mix.exs | gabrielrinaldi/surface | 7e549911081225172de331089a12b7309481ce71 | [
"MIT"
] | null | null | null | mix.exs | gabrielrinaldi/surface | 7e549911081225172de331089a12b7309481ce71 | [
"MIT"
] | null | null | null | defmodule Surface.MixProject do
use Mix.Project
@version "0.7.0"
def project do
[
app: :surface,
version: @version,
elixir: "~> 1.11",
description: "A component based library for Phoenix LiveView",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.comp... | 23.182927 | 78 | 0.551815 |
975bb9c00f545d67fe15dfaad22a1fc73dadc152 | 7,117 | ex | Elixir | lib/map_a.ex | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | 8 | 2020-09-04T19:38:41.000Z | 2021-06-05T18:59:49.000Z | lib/map_a.ex | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | null | null | null | lib/map_a.ex | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | null | null | null | defmodule FlowAssertions.MapA do
use FlowAssertions.Define
alias FlowAssertions.Messages
alias FlowAssertions.{MiscA,EnumA}
@moduledoc """
Assertions that apply to Maps and structures and sometimes to keyword lists.
`assert_fields/2` and `assert_same_map/3` are the most important.
"""
@doc """
Test... | 29.903361 | 85 | 0.658423 |
975bc2b4bc4ca07043bb9aa173c3e05f7f59950b | 2,262 | exs | Elixir | mix.exs | rupurt/phoenix_live_dashboard | f4d0c33c17619e2b37eb42c5e789d058922d5079 | [
"MIT"
] | null | null | null | mix.exs | rupurt/phoenix_live_dashboard | f4d0c33c17619e2b37eb42c5e789d058922d5079 | [
"MIT"
] | null | null | null | mix.exs | rupurt/phoenix_live_dashboard | f4d0c33c17619e2b37eb42c5e789d058922d5079 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :phoenix_live_dashboard,
version: @version,
elixir: "~> 1.7",
compilers: [:phoenix] ++ Mix.compilers(),
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
packag... | 26.928571 | 98 | 0.603448 |
975be5f161c69deaf0fe467faa34b092a6ccc366 | 2,181 | ex | Elixir | lib/plug_misdirected_request.ex | jshmrtn/plug-misdirected-request | c2eaa56da654a9c5d3ed99852773b600fd7cd612 | [
"MIT"
] | null | null | null | lib/plug_misdirected_request.ex | jshmrtn/plug-misdirected-request | c2eaa56da654a9c5d3ed99852773b600fd7cd612 | [
"MIT"
] | null | null | null | lib/plug_misdirected_request.ex | jshmrtn/plug-misdirected-request | c2eaa56da654a9c5d3ed99852773b600fd7cd612 | [
"MIT"
] | null | null | null | defmodule PlugMisdirectedRequest do
@moduledoc """
Add this plug to your pipeline.
### Configuration
The plug can be included with either a given domain or with
the option `auto` (`phoenix` only).
plug(PlugMisdirectedRequest, domain: "whitelisted.domain.com")
plug(PlugMisdirectedRequest, domai... | 22.030303 | 89 | 0.581843 |
975beb7f8022cc176c972e0f045d5731faaa258a | 52 | ex | Elixir | lib/spike/command/flush.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | 1 | 2019-04-16T22:13:23.000Z | 2019-04-16T22:13:23.000Z | lib/spike/command/flush.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | lib/spike/command/flush.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | defmodule Spike.Command.Flush do
defstruct []
end
| 13 | 32 | 0.769231 |
975bf0762542fc44dcea9a1d4bfdcd520176eb1d | 1,171 | ex | Elixir | lib/commodity_api/iam/user/phone_number/phone_number_policy.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/iam/user/phone_number/phone_number_policy.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/iam/user/phone_number/phone_number_policy.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 27.880952 | 77 | 0.713066 |
975c50c2cd0bd9f8a6c7578ba27468b219664524 | 4,531 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/paragraph_style.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/slides/lib/google_api/slides/v1/model/paragraph_style.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/paragraph_style.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 ... | 48.72043 | 169 | 0.715736 |
975ca75d7cf64b2e9523154a0c69f45a7e4c065e | 4,756 | exs | Elixir | integration_test/cases/query_test.exs | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | null | null | null | integration_test/cases/query_test.exs | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | null | null | null | integration_test/cases/query_test.exs | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.QueryTest do
use Wallaby.Integration.SessionCase, async: true
test "the driver can execute queries", %{session: session} do
elements =
session
|> Browser.visit("/")
|> Browser.find(Query.css("#child"))
assert elements != "Failure"
end
test "disregards e... | 27.812865 | 100 | 0.622161 |
975cbe1ae20c7adbbf1fce7da3ad02376d7eb47d | 1,554 | ex | Elixir | apps/discordbot/lib/discordbot/voice/udp.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/lib/discordbot/voice/udp.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/lib/discordbot/voice/udp.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.Voice.UDP do
@moduledoc """
UDP interactions for the voice API.
"""
alias DiscordBot.Voice.Connection
@doc """
Opens and prepares a UDP socket and connection with Discord.
"""
@spec open(String.t(), integer, integer) :: Connection.t()
def open(discord_ip, discord_port, ssrc) do
... | 22.852941 | 75 | 0.619691 |
975cbeb4d7891a7305e72c8ea8c1e472bcb96620 | 2,972 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/release_quota_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/release_quota_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/release_quota_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 52.140351 | 770 | 0.762113 |
975cc1d5d5f97ebb6bf6ec8e3ad2adb4bdbc3795 | 46,853 | ex | Elixir | lib/elixir/lib/exception.ex | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/exception.ex | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/exception.ex | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | defmodule Exception do
@moduledoc """
Functions to format throw/catch/exit and exceptions.
Note that stacktraces in Elixir are only available inside
catch and rescue by using the `__STACKTRACE__/0` variable.
Do not rely on the particular format returned by the `format*`
functions in this module. They may ... | 29.541614 | 153 | 0.648774 |
975cdefa7d51c58b492c80b27b64da444562050d | 257 | ex | Elixir | apps/bookmarker/lib/bookmarker.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/lib/bookmarker.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/lib/bookmarker.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker do
@moduledoc """
Bookmarker keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
975cdf4753a92494ae4f037e99b0b0b24f40289f | 1,129 | exs | Elixir | config/config.exs | xeejp/Linda_Problem | 2d3c75d9900f670d39634fc892744a064bcfd821 | [
"MIT"
] | null | null | null | config/config.exs | xeejp/Linda_Problem | 2d3c75d9900f670d39634fc892744a064bcfd821 | [
"MIT"
] | null | null | null | config/config.exs | xeejp/Linda_Problem | 2d3c75d9900f670d39634fc892744a064bcfd821 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.753764 |
975d0a2106b0330ad6f32cea0c402f35810038cb | 1,214 | exs | Elixir | mix.exs | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | 1 | 2022-03-16T21:37:14.000Z | 2022-03-16T21:37:14.000Z | mix.exs | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | 2 | 2022-03-16T20:11:33.000Z | 2022-03-25T17:08:23.000Z | mix.exs | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | null | null | null | defmodule Sanity.Cache.MixProject do
use Mix.Project
@version "0.4.0"
def project do
[
app: :sanity_cache,
description:
"Opinionated library for caching Sanity CMS content in an ETS table for submillisecond response times.",
version: @version,
elixir: "~> 1.12",
start_p... | 24.28 | 112 | 0.5486 |
975d1bf20dc2936897bfc8c634f605e7dbea908e | 346 | ex | Elixir | elixir_grpc_bench/lib/server.ex | fenollp/grpc_bench | 11ea6ca404e002e608d7d6cc20b45ef039bfa953 | [
"MIT"
] | null | null | null | elixir_grpc_bench/lib/server.ex | fenollp/grpc_bench | 11ea6ca404e002e608d7d6cc20b45ef039bfa953 | [
"MIT"
] | null | null | null | elixir_grpc_bench/lib/server.ex | fenollp/grpc_bench | 11ea6ca404e002e608d7d6cc20b45ef039bfa953 | [
"MIT"
] | 1 | 2022-02-10T04:19:25.000Z | 2022-02-10T04:19:25.000Z | defmodule Helloworld.Greeter.Server do
use GRPC.Server, service: Helloworld.Greeter.Service, compressors: [GRPC.Compressor.Gzip]
@spec say_hello(Helloworld.HelloRequest.t(), GRPC.Server.Stream.t()) ::
Helloworld.HelloReply.t()
def say_hello(request, _stream) do
Helloworld.HelloReply.new(response: r... | 34.6 | 91 | 0.751445 |
975d33a9fce5092da72a072a55583a590fd1c754 | 920 | exs | Elixir | test/shopify_api/graphql/telemetry_test.exs | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 18 | 2019-06-07T13:36:39.000Z | 2021-08-03T21:06:36.000Z | test/shopify_api/graphql/telemetry_test.exs | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 158 | 2018-08-30T22:09:00.000Z | 2021-09-22T01:18:59.000Z | test/shopify_api/graphql/telemetry_test.exs | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 4 | 2020-09-05T00:48:46.000Z | 2020-09-30T15:53:50.000Z | defmodule ShopifyAPI.GraphQL.TelemetryTest do
use ExUnit.Case
alias HTTPoison.Error
alias ShopifyAPI.AuthToken
alias ShopifyAPI.GraphQL.{Response, Telemetry}
@module "module"
@time 1202
setup _context do
token = %AuthToken{
token: "1234",
shop_name: "localhost"
}
{:ok, %{auth_t... | 26.285714 | 97 | 0.651087 |
975d47387a7169227ebfdc0729936a3da0a8114d | 756 | ex | Elixir | docs/supervisors/sample_project/lib/sample_project/application.ex | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | docs/supervisors/sample_project/lib/sample_project/application.ex | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | docs/supervisors/sample_project/lib/sample_project/application.ex | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule SampleProject.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Starts a worker by calling: SampleProject.Worker.start_link(arg)
{SampleProject.Demo, ... | 30.24 | 72 | 0.660053 |
975d658770f55d7c514efe38af4244d4d917595e | 1,214 | ex | Elixir | lib/csv_uploader/application.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | lib/csv_uploader/application.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | lib/csv_uploader/application.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | defmodule CsvUploader.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 31.128205 | 89 | 0.708402 |
975d7917cfb801115df02f0993f6137e4156a8db | 961 | ex | Elixir | test/support/channel_case.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | 3 | 2018-08-17T13:42:45.000Z | 2018-08-17T17:05:11.000Z | test/support/channel_case.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | defmodule DataProcessorWeb.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 datastructures and query the data layer.
Finally, if the test case intera... | 25.289474 | 75 | 0.723205 |
975d8051672e464432000b52a6afa19dec6dd45f | 2,186 | ex | Elixir | lib/neko/user_rate/store/registry.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/user_rate/store/registry.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/user_rate/store/registry.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | defmodule Neko.UserRate.Store.Registry do
@moduledoc """
Registry of user rate stores:
each user is mapped to his user rate store.
"""
use GenServer
#------------------------------------------------------------------
# Client API
#------------------------------------------------------------------
d... | 26.02381 | 78 | 0.559927 |
975da3e29742f4133d58a4f7e58d95c6b5cec700 | 288 | exs | Elixir | test/support/dummy_crypto.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 130 | 2016-06-21T07:58:46.000Z | 2022-01-01T21:45:23.000Z | test/support/dummy_crypto.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 50 | 2016-06-29T16:01:42.000Z | 2019-08-07T21:33:49.000Z | test/support/dummy_crypto.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 20 | 2016-07-02T11:37:33.000Z | 2018-10-26T19:12:41.000Z | defmodule Openmaize.DummyCrypto do
@moduledoc """
A dummy crypto module for testing purposes.
"""
def hashpwsalt(password) do
"dumb-#{password}-crypto"
end
def dummy_checkpw do
false
end
def checkpw(password, salt) do
salt == hashpwsalt(password)
end
end
| 16 | 45 | 0.6875 |
975db600afc7dab12f8ccf930cbb2c0fee65404c | 8,718 | ex | Elixir | elixir/lib/junks/auth/auth.ex | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | 1 | 2019-04-29T17:46:44.000Z | 2019-04-29T17:46:44.000Z | elixir/lib/junks/auth/auth.ex | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | elixir/lib/junks/auth/auth.ex | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | defmodule Junks.Auth do
@moduledoc """
The Auth context.
"""
@auth_scheme "Bearer"
import Ecto.Query, warn: false
alias Ecto.Multi
alias Junks.Repo
alias Junks.Auth.Group
alias Junks.Auth.ResetToken
alias Junks.Auth.User
alias Junks.Auth.UserGroup
alias Junks.Errors
@doc """
owns_group(... | 23.18617 | 137 | 0.567791 |
975dbe0234eff611e3b13428bd3d3e5a41bf853c | 790 | ex | Elixir | apps/financial_system_web/lib/financial_system_web/controllers/api/transfer_controller.ex | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | null | null | null | apps/financial_system_web/lib/financial_system_web/controllers/api/transfer_controller.ex | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | 2 | 2021-03-10T03:19:32.000Z | 2021-09-02T04:33:17.000Z | apps/financial_system_web/lib/financial_system_web/controllers/api/transfer_controller.ex | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | null | null | null | defmodule FinancialSystemWeb.Api.TransferController do
use FinancialSystemWeb, :controller
alias FinancialSystem.Transaction.Transfer
alias FinancialSystem.Transaction
alias FinancialSystem.Repo
def create(conn, %{"account_id" => account_id, "transfer" => transfer_params}) do
transfer_params = transfer_p... | 34.347826 | 130 | 0.683544 |
975e078f848f77a12b89e9835a78df8db88718e1 | 145 | exs | Elixir | .formatter.exs | tino415/sse_parser_ex | 05421e12363aade5a3a4e1006adf9c2d9f779114 | [
"MIT"
] | 1 | 2020-06-06T22:54:33.000Z | 2020-06-06T22:54:33.000Z | .formatter.exs | tino415/sse_parser_ex | 05421e12363aade5a3a4e1006adf9c2d9f779114 | [
"MIT"
] | null | null | null | .formatter.exs | tino415/sse_parser_ex | 05421e12363aade5a3a4e1006adf9c2d9f779114 | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test,support,scripts}/**/*.{ex,exs}"],
import_deps: [:typed_struct]
]
| 24.166667 | 86 | 0.627586 |
975e1bba63f50ec2e97ba09fcd29eeba59795a18 | 8,803 | ex | Elixir | lib/ielixir/socket/shell.ex | tyrchen/IElixir | 017f3981e9c734d871b21530e2a0e52cd0122161 | [
"Apache-2.0"
] | 363 | 2015-07-12T07:36:38.000Z | 2022-03-23T22:48:41.000Z | lib/ielixir/socket/shell.ex | tyrchen/IElixir | 017f3981e9c734d871b21530e2a0e52cd0122161 | [
"Apache-2.0"
] | 51 | 2015-07-30T08:40:46.000Z | 2021-12-03T09:18:58.000Z | lib/ielixir/socket/shell.ex | tyrchen/IElixir | 017f3981e9c734d871b21530e2a0e52cd0122161 | [
"Apache-2.0"
] | 50 | 2015-07-30T05:31:58.000Z | 2021-12-03T09:15:58.000Z | defmodule IElixir.Socket.Shell do
@moduledoc """
"Shell: this single ROUTER socket allows multiple incoming connections from
frontends, and this is the socket where requests for code execution, object
information, prompts, etc. are made to the kernel by any frontend.
The communication on this socket is a sequ... | 27.003067 | 94 | 0.661593 |
975e1ff38c438a269de770105004c0eb79bfce60 | 290 | ex | Elixir | lib/hologram/compiler/transformers/unquote_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/transformers/unquote_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/transformers/unquote_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.UnquoteTransformer do
alias Hologram.Compiler.{Context, Transformer}
alias Hologram.Compiler.IR.Unquote
def transform({:unquote, _, [expr]}, %Context{} = context) do
expr = Transformer.transform(expr, context)
%Unquote{expression: expr}
end
end
| 29 | 63 | 0.744828 |
975e300927e79402b0338f237bc3b8cb15f921f7 | 658 | ex | Elixir | test/factories/course/material_factory.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | test/factories/course/material_factory.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 2 | 2020-04-22T09:06:38.000Z | 2020-04-22T09:15:33.000Z | test/factories/course/material_factory.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 1 | 2020-06-01T03:26:02.000Z | 2020-06-01T03:26:02.000Z | defmodule Cadet.Course.MaterialFactory do
@moduledoc """
Factory for Material entity
"""
defmacro __using__(_opts) do
quote do
alias Cadet.Course.{Category, Material}
def material_folder_factory do
%Category{
title: Faker.Cat.name(),
description: Faker.Cat.breed(),
... | 22.689655 | 49 | 0.582067 |
975e38f4a9bd3e7e7ad57acaf288fd8eebc5fae1 | 124 | ex | Elixir | notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/hospital/repo.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 14 | 2021-11-19T00:22:09.000Z | 2022-01-29T03:58:09.000Z | notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/hospital/repo.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | null | null | null | notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/hospital/repo.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 1 | 2022-03-01T00:49:50.000Z | 2022-03-01T00:49:50.000Z | defmodule EctoExample.Hospital.Repo do
use Ecto.Repo,
otp_app: :ecto_example,
adapter: Ecto.Adapters.Postgres
end
| 20.666667 | 38 | 0.758065 |
975e40e5c186e3cf31931ce7c8a2424d5c9d2e1e | 69 | ex | Elixir | web/views/user_view.ex | chrisfishwood/shopping_list | 4ac312ac3e70e901ae8ff09814c5cc1763132a80 | [
"MIT"
] | null | null | null | web/views/user_view.ex | chrisfishwood/shopping_list | 4ac312ac3e70e901ae8ff09814c5cc1763132a80 | [
"MIT"
] | null | null | null | web/views/user_view.ex | chrisfishwood/shopping_list | 4ac312ac3e70e901ae8ff09814c5cc1763132a80 | [
"MIT"
] | null | null | null | defmodule ShoppingList.UserView do
use ShoppingList.Web, :view
end
| 17.25 | 34 | 0.811594 |
975e683449c535551945d311984f1a9376f44693 | 4,105 | ex | Elixir | lib/banchan/accounts/user_token.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan/accounts/user_token.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan/accounts/user_token.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule Banchan.Accounts.UserToken do
@moduledoc false
use Ecto.Schema
import Ecto.Query
@hash_algorithm :sha256
@rand_size 32
# It is very important to keep the reset password token expiry short,
# since someone with access to the email may take over the account.
@reset_password_validity_in_days 1... | 28.908451 | 97 | 0.68916 |
975ea7441c250f01c105228dae5a380796a2d24d | 1,163 | ex | Elixir | lib/runlet/ctrl/kill.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 4 | 2020-01-12T19:04:46.000Z | 2021-09-20T14:37:22.000Z | lib/runlet/ctrl/kill.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | null | null | null | lib/runlet/ctrl/kill.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 1 | 2021-09-20T14:37:25.000Z | 2021-09-20T14:37:25.000Z | defmodule Runlet.Ctrl.Kill do
@moduledoc "Terminate a running event stream process"
@doc """
Terminate the process running an event stream. Accepts a PID or a list
of PIDs:
kill 1234
kill "1234"
kill "1234 123.5 1256"
"""
@spec exec(Runlet.t(), Runlet.PID.t() | String.t(), String.t()) ::... | 23.26 | 72 | 0.587274 |
975ebc604d19ea9ba786e1da63896beda3d5c3b7 | 22,012 | exs | Elixir | test/lib/absinthe/plug_test.exs | heretask/absinthe_plug | 7e44d0d4b7fe10883664e9feb8f1fe9ee89dcdb5 | [
"MIT"
] | 234 | 2016-03-02T07:38:25.000Z | 2022-03-14T19:44:17.000Z | test/lib/absinthe/plug_test.exs | heretask/absinthe_plug | 7e44d0d4b7fe10883664e9feb8f1fe9ee89dcdb5 | [
"MIT"
] | 205 | 2016-03-02T13:52:53.000Z | 2022-03-31T23:31:36.000Z | test/lib/absinthe/plug_test.exs | heretask/absinthe_plug | 7e44d0d4b7fe10883664e9feb8f1fe9ee89dcdb5 | [
"MIT"
] | 168 | 2016-03-02T09:23:56.000Z | 2022-03-31T23:27:58.000Z | defmodule Absinthe.PlugTest do
use Absinthe.Plug.TestCase
alias Absinthe.Plug.TestSchema
alias Absinthe.Plug.TestPubSub
@foo_result ~s({"data":{"item":{"name":"Foo"}}})
@bar_result ~s({"data":{"item":{"name":"Bar"}}})
@variable_query """
query FooQuery($id: ID!){
item(id: $id) {
name
}
}... | 30.487535 | 97 | 0.569235 |
975ed2acc98872be525a4403f37d4969620c08d5 | 5,336 | exs | Elixir | test/backroll_test.exs | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | 1 | 2020-01-13T19:56:02.000Z | 2020-01-13T19:56:02.000Z | test/backroll_test.exs | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | test/backroll_test.exs | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | defmodule BackrollTest do
use ExUnit.Case
# helper step modules
defmodule Multiplier do
@behaviour Backroll.Step
def run(data, nil) do
{:ok, data * 2}
end
def run(data, mult) do
{:ok, data * mult}
end
def rollback(data, _, _reason) do
{:ok, data}
end
end
defmo... | 24.703704 | 95 | 0.507121 |
975f0081638e6d9e33783c4b1c930097152ae11b | 93 | ex | Elixir | lib/dgraph_ex/core/expr/ge.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:41.000Z | 2019-05-01T15:18:41.000Z | lib/dgraph_ex/core/expr/ge.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | null | null | null | lib/dgraph_ex/core/expr/ge.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:48.000Z | 2019-05-01T15:18:48.000Z | defmodule DgraphEx.Core.Expr.Ge do
@moduledoc false
use DgraphEx.Core.Expr.Neq, :ge
end
| 15.5 | 34 | 0.752688 |
975f02c9379fd50ec0bd389589b0852692599488 | 9,940 | ex | Elixir | lib/diode.ex | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 6 | 2019-09-06T07:55:35.000Z | 2020-07-29T14:12:53.000Z | lib/diode.ex | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 15 | 2019-09-06T07:58:01.000Z | 2021-03-06T17:04:46.000Z | lib/diode.ex | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 3 | 2019-10-17T11:55:14.000Z | 2021-02-02T16:31:23.000Z | # Diode Server
# Copyright 2021 Diode
# Licensed under the Diode License, Version 1.1
require Logger
defmodule Diode do
use Application
# Ignoring all info level sasl messages
def filter_function(event, _) do
case event do
%{level: :info, meta: %{domain: [:otp, :sasl]}} -> :stop
_other -> :ignor... | 23.498818 | 96 | 0.575252 |
975f03ea5b450b5abd3312f3f4c64df3b224df50 | 34 | exs | Elixir | test/kvstore_test.exs | TenderPro/test-elixir-2017 | 208f2431fe3d264b94f44b0fa3766fc322fc78f5 | [
"MIT"
] | 1 | 2017-06-08T13:58:49.000Z | 2017-06-08T13:58:49.000Z | test/kvstore_test.exs | TenderPro/test-elixir-2017 | 208f2431fe3d264b94f44b0fa3766fc322fc78f5 | [
"MIT"
] | null | null | null | test/kvstore_test.exs | TenderPro/test-elixir-2017 | 208f2431fe3d264b94f44b0fa3766fc322fc78f5 | [
"MIT"
] | 2 | 2019-10-01T06:42:42.000Z | 2019-10-02T05:36:33.000Z | Тестируем как можно больше кейсов. | 34 | 34 | 0.852941 |
975f1803544a0b0d6a8c84a24d3e5bd9f0a09f4c | 761 | ex | Elixir | lib/flowr/platform/client.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr/platform/client.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr/platform/client.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule Flowr.Platform.Client do
@spec rest_client(binary) :: RingCentral.t()
def rest_client(access_token) do
RingCentral.build(
client_id: client_id(),
client_secret: client_secret(),
server_url: server_url(),
token_info: %{
"access_token" => access_token
}
)
end
... | 21.742857 | 79 | 0.672799 |
975f20a20e6f67c2b031b14ca387016d3018fedb | 158 | ex | Elixir | dev/backend.ex | elixir-cldr/cldr_calendars_persian | 86ee0174afb07be224495160faba55b06e5e02f8 | [
"Apache-2.0"
] | 1 | 2021-09-30T17:19:47.000Z | 2021-09-30T17:19:47.000Z | dev/backend.ex | elixir-cldr/cldr_calendars_persian | 86ee0174afb07be224495160faba55b06e5e02f8 | [
"Apache-2.0"
] | null | null | null | dev/backend.ex | elixir-cldr/cldr_calendars_persian | 86ee0174afb07be224495160faba55b06e5e02f8 | [
"Apache-2.0"
] | null | null | null | require Cldr.Calendar
defmodule MyApp.Cldr do
use Cldr,
locales: ["fa", "fr", "en", "de"],
default_locale: "en",
providers: [Cldr.Calendar]
end | 19.75 | 38 | 0.639241 |
975f39342839362586735f39c9cb6fe958f3de19 | 2,552 | exs | Elixir | test/falco/integration/connection_test.exs | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 5 | 2022-02-08T13:51:08.000Z | 2022-02-09T14:12:47.000Z | test/falco/integration/connection_test.exs | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 1 | 2022-02-08T15:46:07.000Z | 2022-02-08T15:46:07.000Z | test/falco/integration/connection_test.exs | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | null | null | null | defmodule Falco.Integration.ConnectionTest do
use Falco.Integration.TestCase
@cert_path Path.expand("./tls/server1.pem", :code.priv_dir(:falco))
@key_path Path.expand("./tls/server1.key", :code.priv_dir(:falco))
@ca_path Path.expand("./tls/ca.pem", :code.priv_dir(:falco))
defmodule FeatureServer do
use ... | 35.444444 | 95 | 0.66105 |
975f43136f0d56e2c1d7ce1b9cb28335c6f5900a | 1,475 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_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 ... | 31.382979 | 133 | 0.740339 |
975f6a9d8327c3dea8fc885eb60ebe1ada452b19 | 4,221 | exs | Elixir | test/scenic_jsx_test.exs | olafura/scenic_jsx | 19fe024373023b8d7987d0a45a5421dd63b7a12b | [
"Apache-2.0"
] | 1 | 2018-09-22T21:53:52.000Z | 2018-09-22T21:53:52.000Z | test/scenic_jsx_test.exs | olafura/scenic_jsx | 19fe024373023b8d7987d0a45a5421dd63b7a12b | [
"Apache-2.0"
] | null | null | null | test/scenic_jsx_test.exs | olafura/scenic_jsx | 19fe024373023b8d7987d0a45a5421dd63b7a12b | [
"Apache-2.0"
] | null | null | null | defmodule ScenicJsxTest do
use ExUnit.Case
require ScenicJsx
import ScenicJsx
import Scenic.Primitives
import Scenic.Components
doctest ScenicJsx
test "test simple jsx" do
assert {:ok, _} =
~z(<foo something=#{{1, 1}}><bar2 something="a"/><a>2</a></foo>)raw
|> parse_jsx()
... | 31.266667 | 94 | 0.523336 |
975f7d50f4a11cc92d6683b5ec386dd0d9c39679 | 702 | ex | Elixir | lib/live_web/gettext.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | lib/live_web/gettext.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | lib/live_web/gettext.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | defmodule LiveWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import LiveWeb.Gettext
# Simple translation
gettext("Here is the str... | 28.08 | 72 | 0.673789 |
975f9f9af2918bb6025d936b5f03516580824d57 | 749 | ex | Elixir | lib/gremlex/vertex_property.ex | elljoh/gremlex | a83fc3a0c46c19efebd6d4881a71adb058a80e38 | [
"MIT"
] | 61 | 2018-05-10T17:03:41.000Z | 2021-04-28T21:45:27.000Z | lib/gremlex/vertex_property.ex | elljoh/gremlex | a83fc3a0c46c19efebd6d4881a71adb058a80e38 | [
"MIT"
] | 19 | 2018-05-10T17:14:42.000Z | 2020-12-17T20:43:07.000Z | lib/gremlex/vertex_property.ex | elljoh/gremlex | a83fc3a0c46c19efebd6d4881a71adb058a80e38 | [
"MIT"
] | 24 | 2018-08-23T17:42:26.000Z | 2022-03-22T20:31:16.000Z | defmodule Gremlex.VertexProperty do
@type t :: %Gremlex.VertexProperty{
label: String.t(),
id: number(),
value: any(),
vertex: number()
}
@enforce_keys [:label, :id, :value]
@derive [Poison.Encoder]
defstruct [:label, :id, :value, :vertex]
def from_response(%{"... | 32.565217 | 98 | 0.59279 |
975fd1f16c89e338e42a9dcd00705fd9949659f0 | 1,098 | ex | Elixir | apps/artemis/lib/artemis/schemas/team.ex | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/lib/artemis/schemas/team.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/lib/artemis/schemas/team.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.Team do
use Artemis.Schema
use Artemis.Schema.SQL
use Assoc.Schema, repo: Artemis.Repo
schema "teams" do
field :description, :string
field :name, :string
field :user_count, :integer, virtual: true
has_many :event_templates, Artemis.EventTemplate, on_delete: :delete_all, on_r... | 21.115385 | 97 | 0.67122 |
975fd802f2a2d0de0079b54d289da16de1232ffe | 28,265 | ex | Elixir | lib/rdf/dataset.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/dataset.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/dataset.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.Dataset do
@moduledoc """
A set of `RDF.Graph`s.
It may have multiple named graphs and at most one unnamed ("default") graph.
`RDF.Dataset` implements:
- Elixir's `Access` behaviour
- Elixir's `Enumerable` protocol
- Elixir's `Inspect` protocol
- the `RDF.Data` protocol
"""
@behav... | 32.413991 | 145 | 0.615567 |
975fdfd459e5fa4314e196dddf9ac86eb5c5c5f5 | 7,168 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1/model/policy.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... | 121.491525 | 2,012 | 0.751674 |
975fec9d46a21c9dd9da04b2d8e6a433d6c2c78f | 2,370 | exs | Elixir | examples/vision/resnet50.exs | kianmeng/axon | 15e2ce547e98e20946f0b0091440baf3e5e0f2d6 | [
"Apache-2.0"
] | 922 | 2021-04-08T11:48:26.000Z | 2022-03-30T05:17:52.000Z | examples/vision/resnet50.exs | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 112 | 2021-04-08T20:27:37.000Z | 2022-03-31T21:22:09.000Z | examples/vision/resnet50.exs | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 56 | 2021-04-08T12:54:16.000Z | 2022-03-29T01:36:18.000Z | Mix.install([
{:axon, "~> 0.1.0-dev", github: "elixir-nx/axon"},
])
defmodule ResNet50 do
defp conv_block(x, kernel_size, [f1, f2, f3], strides \\ [2, 2]) do
shortcut =
x
|> Axon.conv(f3, kernel_size: {1, 1}, strides: strides)
|> Axon.batch_norm()
main =
x
|> Axon.conv(f1, k... | 26.629213 | 87 | 0.53038 |
97601aae5b4b20bc1e372cfaec8b9da788a14453 | 531 | ex | Elixir | examples/1_phoenix_app/lib/phoenix_app_web/vnu_message_filter.ex | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 51 | 2020-04-11T22:30:43.000Z | 2022-01-14T13:24:56.000Z | examples/1_phoenix_app/lib/phoenix_app_web/vnu_message_filter.ex | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 20 | 2020-04-13T12:20:49.000Z | 2022-03-29T18:32:41.000Z | examples/1_phoenix_app/lib/phoenix_app_web/vnu_message_filter.ex | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | null | null | null | defmodule PhoenixAppWeb.VnuHTMLMessageFilter do
@behaviour Vnu.MessageFilter
@impl Vnu.MessageFilter
def exclude_message?(%Vnu.Message{message: message}) do
# Those errors are caused by the CSRF meta tag (`csrf_meta_tag()`) present in the layout
patterns_to_ignore = [
~r/A document must not include... | 35.4 | 95 | 0.711864 |
97604b6a9ea590a2c582fb1458daa51c901987aa | 207 | ex | Elixir | lib/pretty_boi.ex | dark-elixir/pretty_boi | d88c25855ebec3dab442b35b89dae200a979f3dd | [
"Apache-2.0"
] | null | null | null | lib/pretty_boi.ex | dark-elixir/pretty_boi | d88c25855ebec3dab442b35b89dae200a979f3dd | [
"Apache-2.0"
] | null | null | null | lib/pretty_boi.ex | dark-elixir/pretty_boi | d88c25855ebec3dab442b35b89dae200a979f3dd | [
"Apache-2.0"
] | null | null | null | defmodule PrettyBoi do
@moduledoc """
Documentation for `PrettyBoi`.
"""
@doc """
Hello world.
## Examples
iex> PrettyBoi.hello()
:world
"""
def hello do
:world
end
end
| 10.894737 | 32 | 0.570048 |
9760537361c6dd2a444a2a0816e23357596d7549 | 1,543 | exs | Elixir | backend/mix.exs | daffyd-jones/wasm-proj | 0eaf167d16a88cb88a4c6cfd61ecf0d9251c348c | [
"Apache-2.0",
"MIT"
] | null | null | null | backend/mix.exs | daffyd-jones/wasm-proj | 0eaf167d16a88cb88a4c6cfd61ecf0d9251c348c | [
"Apache-2.0",
"MIT"
] | null | null | null | backend/mix.exs | daffyd-jones/wasm-proj | 0eaf167d16a88cb88a4c6cfd61ecf0d9251c348c | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Backend.MixProject do
use Mix.Project
def project do
[
app: :backend,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: ... | 25.295082 | 84 | 0.584576 |
976066be8caa70f8e14d0a6848394185a22414d9 | 1,159 | ex | Elixir | math/dyson.ex | codecakes/elixir_days | 66fab751eef5bceff1ddf895f77464f3a9284bdf | [
"MIT"
] | null | null | null | math/dyson.ex | codecakes/elixir_days | 66fab751eef5bceff1ddf895f77464f3a9284bdf | [
"MIT"
] | null | null | null | math/dyson.ex | codecakes/elixir_days | 66fab751eef5bceff1ddf895f77464f3a9284bdf | [
"MIT"
] | null | null | null | defmodule Dyson do
@moduledoc """
least positive n-parasitic number in Base 10 number system
"""
@doc """
in base 10
"""
def dyson(n), do: smallest_num(n, [n])
def mul_head(n, alist, carry \\ 0) do
h = case alist do
[h | t] -> h
[h] -> h
end
... | 32.194444 | 107 | 0.572045 |
97607725a96965a8b93625e671988c071c6fbd05 | 6,057 | ex | Elixir | apps/site/lib/site_web/controllers/helpers.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | null | null | null | apps/site/lib/site_web/controllers/helpers.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | 65 | 2021-05-06T18:38:33.000Z | 2022-03-28T20:50:04.000Z | apps/site/lib/site_web/controllers/helpers.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | null | null | null | defmodule SiteWeb.ControllerHelpers do
@moduledoc false
import Plug.Conn, only: [halt: 1, put_resp_content_type: 2, put_status: 2]
import Phoenix.Controller, only: [render: 3, put_view: 2, put_layout: 2]
alias Alerts.{Alert, InformedEntity, Match, Repo}
alias Phoenix.Controller
alias Plug.Conn
alias Rou... | 31.061538 | 98 | 0.678058 |
976079ceea240f718c4deb26d2082d2c1c5000f5 | 78 | exs | Elixir | programming_elixir_1.3_snippets/enum/stream3.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | programming_elixir_1.3_snippets/enum/stream3.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | programming_elixir_1.3_snippets/enum/stream3.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | IO.puts File.stream!("/usr/share/dict/words")
|> Enum.max_by(&String.length/1) | 39 | 45 | 0.717949 |
9760862c9185631c328b4f2d4461b8cf75042c94 | 129 | exs | Elixir | examples/simple_umbrella_app/apps/app_b/test/app_b_test.exs | esl/gradient | 822da399872a38b77440858971f4147694e85fac | [
"Apache-2.0"
] | 75 | 2021-11-17T11:55:13.000Z | 2022-03-28T04:35:04.000Z | examples/simple_umbrella_app/apps/app_b/test/app_b_test.exs | esl/gradient | 822da399872a38b77440858971f4147694e85fac | [
"Apache-2.0"
] | 48 | 2021-11-15T13:56:14.000Z | 2022-03-31T15:55:47.000Z | examples/simple_umbrella_app/apps/app_b/test/app_b_test.exs | esl/gradient | 822da399872a38b77440858971f4147694e85fac | [
"Apache-2.0"
] | 6 | 2021-12-22T20:41:27.000Z | 2022-03-09T09:07:38.000Z | defmodule AppBTest do
use ExUnit.Case
doctest AppB
test "greets the world" do
assert AppB.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
9760a8fc3f7cbfac5753ef9562a0c9dfe4e179be | 1,267 | ex | Elixir | lib/google_api/you_tube/v3/model/live_stream_health_status.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/live_stream_health_status.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/live_stream_health_status.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 30.902439 | 115 | 0.75296 |
9760b6e9e816d6dcab19bbe7bbe80f6ca12ba94b | 836 | ex | Elixir | lib/surface_bulma/form/control_field.ex | thorsten-de/surface_bulma_components | 12ba1f6847c4591cb68b3af727742eb9e40c5f86 | [
"MIT"
] | null | null | null | lib/surface_bulma/form/control_field.ex | thorsten-de/surface_bulma_components | 12ba1f6847c4591cb68b3af727742eb9e40c5f86 | [
"MIT"
] | null | null | null | lib/surface_bulma/form/control_field.ex | thorsten-de/surface_bulma_components | 12ba1f6847c4591cb68b3af727742eb9e40c5f86 | [
"MIT"
] | null | null | null | defmodule SurfaceBulma.Form.ControlField do
@moduledoc """
combines a bulma field with label, control and error tag into
a form
"""
use Surface.Component
alias Surface.Components.Form
alias Form.{Field, Label, ErrorTag}
@doc "The field name"
prop name, :atom, required: true
@doc "The text of the ... | 23.222222 | 64 | 0.633971 |
9760baf9662844bd6c9d252b824c55b3ce17663a | 290 | ex | Elixir | lib/database_yaml_config_provider/invalid_file_format_error.ex | tlux/database_yaml_config_provider | 5b286a3529e28a75bd139be697a3746bb5e247a9 | [
"MIT"
] | null | null | null | lib/database_yaml_config_provider/invalid_file_format_error.ex | tlux/database_yaml_config_provider | 5b286a3529e28a75bd139be697a3746bb5e247a9 | [
"MIT"
] | null | null | null | lib/database_yaml_config_provider/invalid_file_format_error.ex | tlux/database_yaml_config_provider | 5b286a3529e28a75bd139be697a3746bb5e247a9 | [
"MIT"
] | null | null | null | defmodule DatabaseYamlConfigProvider.InvalidFileFormatError do
@moduledoc """
An error that raises when the parsed config file has an invalid format.
"""
defexception [:data]
@impl true
def message(exception) do
"Invalid file format: #{inspect(exception.data)}"
end
end
| 22.307692 | 73 | 0.737931 |
9760c03f07d2bac5078fc2c85fb43c787ce2099e | 2,403 | ex | Elixir | test/support/hmac.ex | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 11 | 2021-02-24T09:21:11.000Z | 2021-12-26T03:51:25.000Z | test/support/hmac.ex | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 5 | 2021-03-18T14:15:37.000Z | 2022-03-02T09:53:42.000Z | test/support/hmac.ex | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 6 | 2021-02-24T09:21:01.000Z | 2021-11-16T08:45:03.000Z | defmodule Oasis.Test.Support.HMAC do
def case_host_only() do
%{
credential: "test_client",
secret: "secret",
path_and_query: "/test_hmac_host_only?a=b",
host: "localhost:4000",
signed_headers: "host",
signature_sha256: "XOZxCY4ccTBtHmMDoyURR2SO+cRUV4ZvmxGD0KAdpmU=",
signa... | 27.306818 | 99 | 0.663337 |
9761254d669bf6f511de6f2d1c91465e2c29912f | 2,087 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/report_type.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/report_type.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/report_type.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.982759 | 138 | 0.703402 |
97616533b65043ced45ccb285d448cfd01c8903a | 366 | ex | Elixir | web/views/dead_view.ex | apodlaski/verk_web | 91c544b1f792f929e06f18e26b964e23a5771a8a | [
"MIT"
] | 82 | 2016-02-08T04:33:54.000Z | 2022-03-29T07:17:36.000Z | web/views/dead_view.ex | apodlaski/verk_web | 91c544b1f792f929e06f18e26b964e23a5771a8a | [
"MIT"
] | 81 | 2016-03-09T02:17:40.000Z | 2021-12-05T07:29:04.000Z | web/views/dead_view.ex | apodlaski/verk_web | 91c544b1f792f929e06f18e26b964e23a5771a8a | [
"MIT"
] | 42 | 2016-04-05T21:35:31.000Z | 2021-11-09T11:58:26.000Z | defmodule VerkWeb.DeadView do
use VerkWeb.Web, :view
def jobs(dead_jobs) do
Enum.map(dead_jobs, fn dead_job ->
%{
jid: dead_job.jid,
retry_count: dead_job.retry_count,
class: dead_job.class,
args: dead_job.args |> inspect,
original_json: dead_job.original_json,
... | 21.529412 | 46 | 0.617486 |
9761b11f7a07e21c87e1a348eae290224983920b | 5,987 | ex | Elixir | lib/aws/code_build.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | 223 | 2015-05-29T17:45:35.000Z | 2021-06-29T08:37:14.000Z | lib/aws/code_build.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | 33 | 2015-11-20T20:56:43.000Z | 2021-07-09T20:13:34.000Z | lib/aws/code_build.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | 62 | 2015-06-14T20:53:24.000Z | 2021-12-13T07:20:15.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.CodeBuild do
@moduledoc """
AWS CodeBuild
AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild
compiles your source code, runs unit tests, and produces artifacts that ... | 33.634831 | 77 | 0.682813 |
9761ba7dfd4330dad6ae32fd2944369ef4876059 | 257 | ex | Elixir | lib/romulus_app.ex | haighis/romulus_app | d1c85ecb72d935eb9dd314617448bd56b53789e9 | [
"MIT"
] | null | null | null | lib/romulus_app.ex | haighis/romulus_app | d1c85ecb72d935eb9dd314617448bd56b53789e9 | [
"MIT"
] | null | null | null | lib/romulus_app.ex | haighis/romulus_app | d1c85ecb72d935eb9dd314617448bd56b53789e9 | [
"MIT"
] | null | null | null | defmodule RomulusApp do
@moduledoc """
RomulusApp keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
9761cc7d9c830cb34a71a24a48315418060f90d6 | 1,123 | ex | Elixir | lib/ex_abnf/capture_result.ex | sainteos/ex_abnf | 6ba09858bc7e10870ed9d120854e2a23a9cd1b81 | [
"Apache-2.0"
] | null | null | null | lib/ex_abnf/capture_result.ex | sainteos/ex_abnf | 6ba09858bc7e10870ed9d120854e2a23a9cd1b81 | [
"Apache-2.0"
] | null | null | null | lib/ex_abnf/capture_result.ex | sainteos/ex_abnf | 6ba09858bc7e10870ed9d120854e2a23a9cd1b81 | [
"Apache-2.0"
] | 2 | 2021-03-01T12:02:27.000Z | 2021-03-01T13:33:19.000Z | defmodule ABNF.CaptureResult do
@moduledoc """
Capture result, used when returning a result after applying a grammar to an
input.
Copyright 2015 Marcelo Gornstein <marcelog@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | 38.724138 | 78 | 0.691006 |
9761e149b1cd63c2c3bd875db544f0c324ebf943 | 1,361 | exs | Elixir | examples/simple/config/dev.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | 1 | 2019-04-16T11:31:37.000Z | 2019-04-16T11:31:37.000Z | examples/simple/config/dev.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | null | null | null | examples/simple/config/dev.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :simple, Simple.Endpoint,
http: [port: 4000],
... | 29.586957 | 73 | 0.681852 |
97626c6784324a28c3f0be5672a00759437e1dc5 | 380 | ex | Elixir | apps/backoffice/web/views/error_view.ex | devnacho/acme_bank | cee19a490d2b3c04465273b7a6212d7e6a81f736 | [
"MIT"
] | 776 | 2016-07-16T14:24:37.000Z | 2022-03-07T17:05:11.000Z | apps/backoffice/web/views/error_view.ex | fercho1224/devops | 81a352d857e190963d9f045d73c91f3c36a12064 | [
"MIT"
] | 19 | 2016-09-03T15:06:57.000Z | 2021-12-10T10:04:05.000Z | apps/backoffice/web/views/error_view.ex | fercho1224/devops | 81a352d857e190963d9f045d73c91f3c36a12064 | [
"MIT"
] | 130 | 2016-09-03T19:44:27.000Z | 2022-01-16T12:27:54.000Z | defmodule Backoffice.ErrorView do
use Backoffice.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_found(_tem... | 21.111111 | 47 | 0.702632 |
97628111336ffa533d511b62727f113eb7637c3e | 482 | exs | Elixir | installer/templates/new/config/prod.secret.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | installer/templates/new/config/prod.secret.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | installer/templates/new/config/prod.secret.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | use Mix.Config
# In this file, we keep production configuration that
# you likely want to automate and keep it away from
# your version control system.
#
# You should document the content of this
# file or create a script for recreating it, since it's
# kept out of version control and might be hard to recover
# or rec... | 37.076923 | 68 | 0.748963 |
97628df0ba63357e5a22de3724361a383888cea7 | 1,684 | ex | Elixir | blockchain/lib/blockchain_web/endpoint.ex | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | blockchain/lib/blockchain_web/endpoint.ex | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | blockchain/lib/blockchain_web/endpoint.ex | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | defmodule BlockchainWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :blockchain
socket "/socket", BlockchainWeb.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... | 29.034483 | 95 | 0.710808 |
97629936bc90a9f5666fe45a9e12ce908bbb0d14 | 10,398 | ex | Elixir | monitoring_hub/apps/monitoring_hub_utils/lib/monitoring_hub_utils/message_log.ex | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/monitoring_hub_utils/lib/monitoring_hub_utils/message_log.ex | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/monitoring_hub_utils/lib/monitoring_hub_utils/message_log.ex | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | defmodule MonitoringHubUtils.MessageLog do
use GenServer
require Logger
## Client API
def start_link(log_name, log_limit \\ 3600) do
{:ok, _pid} = GenServer.start_link(__MODULE__, [log_limit: log_limit], name: via_tuple(log_name))
end
def log_message(log_name, %{"time" => _} = message) do
GenServ... | 35.855172 | 154 | 0.692922 |
9762b7925d4d5d95f6ba0c6c6909a32f32a3817a | 1,062 | ex | Elixir | lib/elixir_pale_ale/spi_ale.ex | elcritch/elixir_forth_ale | 6f72ef2a07aa393a9267aea862826605ad714fd1 | [
"Apache-2.0"
] | null | null | null | lib/elixir_pale_ale/spi_ale.ex | elcritch/elixir_forth_ale | 6f72ef2a07aa393a9267aea862826605ad714fd1 | [
"Apache-2.0"
] | null | null | null | lib/elixir_pale_ale/spi_ale.ex | elcritch/elixir_forth_ale | 6f72ef2a07aa393a9267aea862826605ad714fd1 | [
"Apache-2.0"
] | null | null | null | defmodule ForthAle.SPI do
@enforce_keys [:pid, :cs]
defstruct @enforce_keys
end
defimpl HalIO, for: ForthAle.SPI do
@spec read(self :: pid(), count :: non_neg_integer()) :: {:ok, binary} | {:error, term}
def read(device, read_count) do
Serial.write(device.pid, [read_count, device.spi_dev_name, "|spi-read"]... | 31.235294 | 89 | 0.653484 |
9762bf70981b1d258e0f976ae013522e5625e873 | 4,004 | ex | Elixir | test/support/live_views/flash.ex | dbi1/phoenix_live_view | 1fff01e0234a75b369ac9085b3b4ec096ef0b52b | [
"MIT"
] | null | null | null | test/support/live_views/flash.ex | dbi1/phoenix_live_view | 1fff01e0234a75b369ac9085b3b4ec096ef0b52b | [
"MIT"
] | null | null | null | test/support/live_views/flash.ex | dbi1/phoenix_live_view | 1fff01e0234a75b369ac9085b3b4ec096ef0b52b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest.FlashLive do
use Phoenix.LiveView
def render(assigns) do
~L"""
uri[<%= @uri %>]
root[<%= live_flash(@flash, :info) %>]:info
root[<%= live_flash(@flash, :error) %>]:error
<%= live_component @socket, Phoenix.LiveViewTest.FlashComponent, id: "flash-component" %>
... | 33.647059 | 116 | 0.627872 |
9762d901d27e1932bcba9f39586f229cc7adf203 | 632 | ex | Elixir | lib/earmark_tag_cloud/cli.ex | RobertDober/earmark_tag_cloud | bb95144e541275c014fd85f50343e0a7daa52ff3 | [
"Apache-2.0"
] | 1 | 2016-12-05T10:01:13.000Z | 2016-12-05T10:01:13.000Z | lib/earmark_tag_cloud/cli.ex | RobertDober/earmark_tag_cloud | bb95144e541275c014fd85f50343e0a7daa52ff3 | [
"Apache-2.0"
] | 6 | 2016-12-05T10:03:58.000Z | 2021-10-05T10:17:37.000Z | lib/earmark_tag_cloud/cli.ex | RobertDober/earmark_tag_cloud | bb95144e541275c014fd85f50343e0a7daa52ff3 | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkTagCloud.Cli do
@usage """
usage:
earmark_tag_cloud --help
earmark_tag_cloud --version
earmark_tag_cloud [ options... <file> ]
convert file from Markdown to HTML.using Earmark and allowing for EarmarkTagCloud annotations
cond do
file ends with .eex -> treat it as an ... | 19.75 | 95 | 0.64557 |
9762dad7269a466b55566f93355b33549b8fcce2 | 917 | exs | Elixir | mix.exs | mauricius/elixir-identicon | ebf967f18a5bb6a39d03969e9dd045d318e95d30 | [
"MIT"
] | null | null | null | mix.exs | mauricius/elixir-identicon | ebf967f18a5bb6a39d03969e9dd045d318e95d30 | [
"MIT"
] | null | null | null | mix.exs | mauricius/elixir-identicon | ebf967f18a5bb6a39d03969e9dd045d318e95d30 | [
"MIT"
] | null | null | null | defmodule Identicon.Mixfile do
use Mix.Project
def project do
[
app: :identicon,
version: "0.1.0",
elixir: "~> 1.4",
escript: [main_module: Identicon.CLI],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Configurat... | 22.925 | 79 | 0.597601 |
97633f620e71e249e1db29080e080ebaad8c392b | 961 | ex | Elixir | lib/flowr/exterior/account.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr/exterior/account.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr/exterior/account.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule Flowr.Exterior.Account do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "connector_accounts" do
field :credentials, :map, default: %{}
field :name, :string
belongs_to(:connector, Flowr.Exterior.Connector)
... | 25.289474 | 86 | 0.699272 |
976343b0f1d837af4cb567b64bc25a9ab8bef39a | 921 | ex | Elixir | test/support/channel_case.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | test/support/channel_case.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | test/support/channel_case.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | defmodule OfhWeb.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 datastructures and query the data layer.
Finally, if the test case interacts with t... | 24.236842 | 65 | 0.711183 |
9763ab0627272adeb96d51bd1d5c5895c27e4882 | 1,830 | ex | Elixir | lib/avrora/storage/file.ex | matreyes/avrora | 4eed729c24a016445ca0ec66f83821a57d669fba | [
"MIT"
] | null | null | null | lib/avrora/storage/file.ex | matreyes/avrora | 4eed729c24a016445ca0ec66f83821a57d669fba | [
"MIT"
] | null | null | null | lib/avrora/storage/file.ex | matreyes/avrora | 4eed729c24a016445ca0ec66f83821a57d669fba | [
"MIT"
] | null | null | null | defmodule Avrora.Storage.File do
@moduledoc """
`Avora.Storage` behavior implementation which uses the filesystem.
Schema name `<namespace>.<namespace>.<name>` will be stored to path
`namespace/namespace/name.avsc`.
"""
require Logger
alias Avrora.{Config, Schema}
alias Avrora.Schema.Name
@behaviou... | 26.142857 | 95 | 0.642623 |
9763bcf13ea7705193ad5b4c287ac95afe984698 | 13,373 | ex | Elixir | lib/nebulex/adapters/local.ex | bbassett/nebulex | 4bbe24358a128a6205309c09c2ca758a89dfce40 | [
"MIT"
] | 1 | 2021-03-04T12:47:10.000Z | 2021-03-04T12:47:10.000Z | lib/nebulex/adapters/local.ex | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | null | null | null | lib/nebulex/adapters/local.ex | peburrows/nebulex | df9146e3af6600e79e5f0db2a74e0be7b1055250 | [
"MIT"
] | null | null | null | defmodule Nebulex.Adapters.Local do
@moduledoc """
Adapter module for Local Generational Cache.
It uses [Shards](https://github.com/cabol/shards) as in-memory backend
(ETS tables are used internally).
## Features
* Support for generational cache – inspired by
[epocxy](https://github.com/duomark/e... | 26.586481 | 94 | 0.622822 |
9763dfc7a772068c7cd114a2cb447ab206516f6c | 2,144 | ex | Elixir | lib/ex_postmen/request.ex | hieuphq/ex_postmen_client | 85183ac2e067471f1c280e6e2a3e37f7cca25937 | [
"MIT"
] | null | null | null | lib/ex_postmen/request.ex | hieuphq/ex_postmen_client | 85183ac2e067471f1c280e6e2a3e37f7cca25937 | [
"MIT"
] | null | null | null | lib/ex_postmen/request.ex | hieuphq/ex_postmen_client | 85183ac2e067471f1c280e6e2a3e37f7cca25937 | [
"MIT"
] | null | null | null | defmodule ExPostmen.Request do
defstruct [
headers: [],
http_method: nil,
params: nil,
path: nil
]
@api_base "https://api.easypost.com/v2"
@http_opts []
@open_timeout 30
@timeout 60
# Main domain used during normal usage.
@main_domain "postmen.com"
... | 26.146341 | 83 | 0.617071 |
976400a470f706886a7feddf2abcd12eac44b050 | 2,501 | exs | Elixir | test/response_handler_test.exs | pfitz/bahn_ex | 4948e9107a37d4ee3027226578b958059a88524c | [
"MIT"
] | null | null | null | test/response_handler_test.exs | pfitz/bahn_ex | 4948e9107a37d4ee3027226578b958059a88524c | [
"MIT"
] | null | null | null | test/response_handler_test.exs | pfitz/bahn_ex | 4948e9107a37d4ee3027226578b958059a88524c | [
"MIT"
] | null | null | null | defmodule ResponseHandlerTest do
use ExUnit.Case, async: true
alias BahnEx.ResponseHandler
alias HTTPoison.Response
@location_json """
[
{
"name": "Dresden Hbf",
"lon": 13.732039,
"lat": 51.040562,
"id": 8010085
},
{
"name": "Dresden-Neustadt",
"lon": 13.74070... | 29.77381 | 109 | 0.647341 |
9764201d8d887214c548e0bba8e1da72cc2eae8a | 865 | ex | Elixir | apps/game_server/lib/game_server/tic_tac_toe/ttt_game_supervisor.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 6 | 2021-03-25T21:02:28.000Z | 2022-02-10T08:11:28.000Z | apps/game_server/lib/game_server/tic_tac_toe/ttt_game_supervisor.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 20 | 2020-09-02T23:17:29.000Z | 2022-03-27T22:54:20.000Z | apps/game_server/lib/game_server/tic_tac_toe/ttt_game_supervisor.ex | powelli13/dara-dots | 728a622e761867ff114c9dbdbf57ff76ab0fb992 | [
"MIT"
] | 2 | 2021-03-25T21:08:15.000Z | 2021-09-25T19:11:36.000Z | defmodule GameServer.TttGameSupervisor do
@moduledoc """
Dynamic supervisor used to retrieve the PIDs
of Tic Tac Toe running games given the ID
generated when the game process was started.
"""
use DynamicSupervisor
def start_link(init_arg) do
DynamicSupervisor.start_link(
__MODULE__,
init... | 21.097561 | 50 | 0.678613 |
976421295d3f7b7ecdc8cecdfa6fcaf426dfac95 | 824 | ex | Elixir | lib/slot_sync/dispatcher.ex | IanVaughan/slot_sync | 20ed8e6f75d007053eb3fc45b6c0e237489c4b73 | [
"MIT"
] | null | null | null | lib/slot_sync/dispatcher.ex | IanVaughan/slot_sync | 20ed8e6f75d007053eb3fc45b6c0e237489c4b73 | [
"MIT"
] | 1 | 2018-10-12T11:50:47.000Z | 2018-10-12T11:50:47.000Z | lib/slot_sync/dispatcher.ex | IanVaughan/slot_sync | 20ed8e6f75d007053eb3fc45b6c0e237489c4b73 | [
"MIT"
] | 1 | 2018-10-18T21:47:22.000Z | 2018-10-18T21:47:22.000Z | defmodule SlotSync.Dispatcher do
@moduledoc """
Routes data from incoming payload into isolated messages to a dedicated processor.
Incoming payloads from WIW have various keys of data in
["end", "locations", "positions", "shifts", "sites", "start", "users"]
We might proess the others, but for now just proces... | 35.826087 | 97 | 0.68932 |
97642cffb41e05bb78969a6936fc94f3945ae05d | 502 | exs | Elixir | mix.exs | ElixirTradingTools/chart_pattern_detection | df405d5501a976da4ccf526e7207ec1bb1272325 | [
"MIT"
] | 3 | 2021-04-06T18:00:51.000Z | 2021-06-04T14:51:27.000Z | mix.exs | ElixirTradingTools/chart_pattern_detection | df405d5501a976da4ccf526e7207ec1bb1272325 | [
"MIT"
] | null | null | null | mix.exs | ElixirTradingTools/chart_pattern_detection | df405d5501a976da4ccf526e7207ec1bb1272325 | [
"MIT"
] | 1 | 2021-07-10T07:42:39.000Z | 2021-07-10T07:42:39.000Z | defmodule ChartPatternDetection.MixProject do
use Mix.Project
def project do
[
app: :chart_pattern_detection,
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 appli... | 17.928571 | 59 | 0.593625 |
97642e7e61cf239d85a9778c08ff0685da36ac96 | 6,465 | ex | Elixir | lib/changelog_web/controllers/news_item_controller.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog_web/controllers/news_item_controller.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/news_item_controller.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.NewsItemController do
use ChangelogWeb, :controller
alias Changelog.{NewsItem, NewsItemComment, NewsSponsorship, Subscription}
alias ChangelogWeb.NewsItemView
plug RequireUser, "before submitting" when action in [:create]
plug RequireUser, "before subscribing" when action in [:subscri... | 29.253394 | 96 | 0.622428 |
9764884f5f341f7e505a5a9afa136acc145a5128 | 65 | exs | Elixir | config/dev.exs | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 220 | 2020-09-12T18:16:29.000Z | 2022-03-15T14:39:05.000Z | config/dev.exs | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 60 | 2020-09-23T14:20:36.000Z | 2021-03-08T08:55:57.000Z | config/dev.exs | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 25 | 2020-09-19T09:06:10.000Z | 2021-08-24T23:48:39.000Z | import Config
config :fika,
router_path: "examples/router.fi"
| 13 | 35 | 0.753846 |
9764a124818350d070e250e643a0c66ffa85262d | 841 | ex | Elixir | portfolio/lib/portfolio_web/controllers/user_registration_controller.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | null | null | null | portfolio/lib/portfolio_web/controllers/user_registration_controller.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | 11 | 2020-04-29T10:28:20.000Z | 2020-04-29T11:03:13.000Z | portfolio/lib/portfolio_web/controllers/user_registration_controller.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | null | null | null | defmodule PortfolioWeb.UserRegistrationController do
use PortfolioWeb, :controller
alias Portfolio.Accounts
alias Portfolio.Accounts.User
alias PortfolioWeb.UserAuth
def new(conn, _params) do
changeset = Accounts.change_user_registration(%User{})
render(conn, "new.html", changeset: changeset)
end
... | 27.129032 | 61 | 0.652794 |
9764c8a21da2e28df7c04a5628008700576b5bc9 | 17,959 | ex | Elixir | lib/commanded/aggregates/aggregate.ex | SimpleBet/commanded | dc89737bd22daf4f6c5b3333b5d8d8de47fea5b8 | [
"MIT"
] | null | null | null | lib/commanded/aggregates/aggregate.ex | SimpleBet/commanded | dc89737bd22daf4f6c5b3333b5d8d8de47fea5b8 | [
"MIT"
] | null | null | null | lib/commanded/aggregates/aggregate.ex | SimpleBet/commanded | dc89737bd22daf4f6c5b3333b5d8d8de47fea5b8 | [
"MIT"
] | null | null | null | defmodule Commanded.Aggregates.Aggregate do
@moduledoc """
Aggregate is a `GenServer` process used to provide access to an
instance of an event sourced aggregate.
It allows execution of commands against an aggregate instance, and handles
persistence of created events to the configured event store. Concurrent... | 31.673721 | 100 | 0.684838 |
9764caaaa0d8ef613b2ab0db763740cc6119c90c | 14,950 | ex | Elixir | lib/screens/departures/departure.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/departures/departure.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/departures/departure.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.Departures.Departure do
@moduledoc false
require Logger
alias Screens.Predictions.Prediction
alias Screens.Schedules.Schedule
alias Screens.Trips.Trip
alias Screens.Vehicles.Vehicle
defstruct id: nil,
stop_name: nil,
route: nil,
route_id: nil,
... | 31.016598 | 103 | 0.656722 |
97652a3a38b74ed9ff5e9a6fbfa9ca342e4b645a | 3,372 | ex | Elixir | lib/domo/type_ensurer_factory/module_inspector.ex | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 101 | 2020-06-11T23:51:50.000Z | 2022-03-30T16:29:18.000Z | lib/domo/type_ensurer_factory/module_inspector.ex | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 11 | 2020-10-11T11:50:24.000Z | 2022-02-12T08:54:50.000Z | lib/domo/type_ensurer_factory/module_inspector.ex | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 4 | 2020-07-02T08:54:22.000Z | 2021-12-26T09:59:15.000Z | defmodule Domo.TypeEnsurerFactory.ModuleInspector do
@moduledoc false
alias Domo.CodeEvaluation
alias Domo.TypeEnsurerFactory.ResolvePlanner
@type_ensurer_atom :TypeEnsurer
defdelegate ensure_loaded?(module), to: Code
def module_context?(env) do
not is_nil(env.module) and is_nil(env.function)
end
... | 29.068966 | 109 | 0.64739 |
976557bebd62b9e44a4cf7c4243892ddd451b6f4 | 1,924 | ex | Elixir | lib/mix/lib/mix/local.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/local.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/local.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Local do
@moduledoc false
@doc """
The path for local archives.
Check `mix archive` for info.
"""
def archives_path do
System.get_env("MIX_ARCHIVES") ||
Path.join(Mix.Utils.mix_home, "archives")
end
@doc """
Append archives paths into Erlang code path.
"""
def append_arc... | 24.987013 | 100 | 0.64657 |
9765636e42882b375a0433d3d8011311f93937ed | 421 | exs | Elixir | test/file_test.exs | Manzanit0/spidey | 9d5b1de5bc2f8fa8f925c449aa1ffd5613edf99b | [
"MIT"
] | 4 | 2020-09-14T09:21:01.000Z | 2020-09-19T07:31:40.000Z | test/file_test.exs | Manzanit0/spidey | 9d5b1de5bc2f8fa8f925c449aa1ffd5613edf99b | [
"MIT"
] | 1 | 2021-03-10T23:19:36.000Z | 2021-04-04T10:59:00.000Z | test/file_test.exs | Manzanit0/spidey | 9d5b1de5bc2f8fa8f925c449aa1ffd5613edf99b | [
"MIT"
] | null | null | null | defmodule FileTest do
use ExUnit.Case, async: true
@test_file "test_file.txt"
setup do
on_exit(fn ->
File.rm!(@test_file)
end)
end
test "save a list of urls in sitemap format" do
urls = ["one.com", "two.co.uk", "three.es"]
:ok = Spidey.File.save(urls, @test_file)
assert File.exi... | 20.047619 | 73 | 0.631829 |
9765735b7bcd46162a5e0ed65fb9cb4c35020b33 | 1,889 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_operation_metadata.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... | 35.641509 | 114 | 0.731075 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.