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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
213cbc673dc33399bccd6e5671c966b6c8084a5b | 1,571 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_text_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_text_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_text_input.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... | 33.425532 | 164 | 0.75175 |
213d08f02d1ba361f5d5a004812d514b9f8aa506 | 461 | exs | Elixir | test/commerce_cure/data_type_test.exs | auroche/commerce_cure | 82e2d60d1044f86dd2f491f4713a31132d709ccf | [
"MIT"
] | null | null | null | test/commerce_cure/data_type_test.exs | auroche/commerce_cure | 82e2d60d1044f86dd2f491f4713a31132d709ccf | [
"MIT"
] | null | null | null | test/commerce_cure/data_type_test.exs | auroche/commerce_cure | 82e2d60d1044f86dd2f491f4713a31132d709ccf | [
"MIT"
] | null | null | null | defmodule CommerceCure.DataTypeTest do
use ExUnit.Case
alias CommerceCure.{
Address,
BillingAddress,
Country,
ExpiryDate,
Month,
Name,
PaymentCardNumber,
PaymentCard,
Phone,
Province,
Year
}
doctest Address
doctest BillingAddress
doctest Country
doctest Expir... | 15.896552 | 38 | 0.713666 |
213d2e47fb64df1dabd8e856ca59b0556d7a8002 | 536 | ex | Elixir | test/support/removes_ticket.ex | locaweb/cassette-plug | 31465e6e0e558f271649bda99e4d4d8e66179e69 | [
"MIT"
] | 1 | 2019-06-05T22:40:30.000Z | 2019-06-05T22:40:30.000Z | test/support/removes_ticket.ex | locaweb/cassette-plug | 31465e6e0e558f271649bda99e4d4d8e66179e69 | [
"MIT"
] | 9 | 2017-10-17T17:29:47.000Z | 2021-09-30T15:03:09.000Z | test/support/removes_ticket.ex | locaweb/cassette-plug | 31465e6e0e558f271649bda99e4d4d8e66179e69 | [
"MIT"
] | 4 | 2016-10-05T04:00:16.000Z | 2021-10-02T03:18:03.000Z | defmodule RemovesTicket do
@moduledoc """
Macro module with a test asserting that a given url has its ticket param
removed
"""
alias Cassette.Plug.DefaultHandler
alias Plug.Conn
defmacro test_removes_ticket(source, expected) do
quote do
test "url/2 removes the ticket from #{unquote(source)}" d... | 26.8 | 96 | 0.679104 |
213d3a4fa27cf8ac753018648aa80754facae85b | 7,406 | ex | Elixir | lib/livebook/utils.ex | chamot1111/livebook | 4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook/utils.ex | chamot1111/livebook | 4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook/utils.ex | chamot1111/livebook | 4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Utils do
@moduledoc false
@type id :: binary()
@doc """
Generates a random binary id.
"""
@spec random_id() :: id()
def random_id() do
:crypto.strong_rand_bytes(20) |> Base.encode32(case: :lower)
end
@doc """
Generates a random short binary id.
"""
@spec random_short_id... | 25.985965 | 103 | 0.600189 |
213d3ad04b03afedc8b92f096b85b4e02b3548d6 | 85 | exs | Elixir | .formatter.exs | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | 2 | 2020-04-09T06:42:15.000Z | 2022-03-03T15:52:38.000Z | .formatter.exs | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | 5 | 2020-04-28T16:05:46.000Z | 2021-01-03T14:08:19.000Z | .formatter.exs | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | null | null | null | [
inputs: ["{mix,.formatter}.exs", "config/*.exs"],
subdirectories: ["apps/*"]
]
| 17 | 51 | 0.564706 |
213d43a5c815e286f6f293e58056a0efd2e28220 | 1,450 | ex | Elixir | lib/eximap/imap/response.ex | flussonic/eximap | 3829a004f7ff503165f4e18b3bb9308c8ea1ab81 | [
"Apache-2.0"
] | null | null | null | lib/eximap/imap/response.ex | flussonic/eximap | 3829a004f7ff503165f4e18b3bb9308c8ea1ab81 | [
"Apache-2.0"
] | null | null | null | lib/eximap/imap/response.ex | flussonic/eximap | 3829a004f7ff503165f4e18b3bb9308c8ea1ab81 | [
"Apache-2.0"
] | 6 | 2018-11-14T06:17:36.000Z | 2020-12-20T05:03:51.000Z | defmodule Eximap.Imap.Response do
@moduledoc ~S"""
Parse responses returned by the IMAP server and convert them to a structured format
"""
alias Eximap.Imap.Response
defstruct request: nil, body: [], status: "OK", error: nil, message: nil
def parse(resp, []), do: resp
def parse(resp, lines) do
{{sta... | 29 | 88 | 0.634483 |
213d5652093f63e3a73f31d7a07c80f429eaa2b3 | 1,717 | ex | Elixir | lib/postoffice_web/controllers/publisher_controller.ex | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | lib/postoffice_web/controllers/publisher_controller.ex | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | lib/postoffice_web/controllers/publisher_controller.ex | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | defmodule PostofficeWeb.PublisherController do
use PostofficeWeb, :controller
alias Postoffice.Messaging
alias Postoffice.Messaging.Publisher
def new(conn, _params) do
changeset = Publisher.changeset(%Publisher{}, %{})
topics =
Messaging.list_topics()
|> Enum.map(&{"#{&1.name}", &1.id})
... | 29.101695 | 89 | 0.662202 |
213d6475ccd2f8629bf3efc59a110ca5737369dd | 1,462 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/add_chart_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/add_chart_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/add_chart_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.458333 | 87 | 0.751026 |
213da6ec74e26442fe83f8252cdd75d04da3be97 | 2,109 | exs | Elixir | test/date_convert_iso_date_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 6 | 2019-08-29T12:31:03.000Z | 2021-08-28T23:15:39.000Z | test/date_convert_iso_date_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 8 | 2019-11-08T09:13:00.000Z | 2021-12-26T05:34:28.000Z | test/date_convert_iso_date_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 2 | 2020-05-08T12:19:01.000Z | 2022-03-03T14:53:06.000Z | defmodule Cldr.Calendar.DateConvert.Test do
use ExUnit.Case, asynch: true
alias Cldr.Calendar.Base.Month
alias Cldr.Calendar.Config
test "that {2019, 1, 1} converts to {2018, 12, 1} for month-based calendar starting in Feb " do
assert Month.date_from_iso_date(2019, 1, 1, %Config{month_of_year: 2}) == {2018... | 45.847826 | 101 | 0.675676 |
213de8e54e4e911d04b43af6d1b02d6ed0335623 | 2,952 | ex | Elixir | lib/depot/filesystem.ex | jmks/depot | 32dd795e29231ee4333c0e825a504659b4abe04b | [
"Apache-2.0"
] | null | null | null | lib/depot/filesystem.ex | jmks/depot | 32dd795e29231ee4333c0e825a504659b4abe04b | [
"Apache-2.0"
] | null | null | null | lib/depot/filesystem.ex | jmks/depot | 32dd795e29231ee4333c0e825a504659b4abe04b | [
"Apache-2.0"
] | null | null | null | defmodule Depot.Filesystem do
@moduledoc """
Behaviour of a `Depot` filesystem.
"""
@callback write(path :: Path.t(), contents :: binary, opts :: keyword()) :: :ok | {:error, term}
@callback read(path :: Path.t(), opts :: keyword()) :: {:ok, binary} | {:error, term}
@callback read_stream(path :: Path.t(), o... | 32.43956 | 98 | 0.57893 |
213e08b6f068692e1f1ca6aa2f134ab7d9af5041 | 138 | exs | Elixir | test/chromex_test.exs | Jwsonic/chromex | 5247172aad07580bdb359adb622c00afce9dba8e | [
"MIT"
] | null | null | null | test/chromex_test.exs | Jwsonic/chromex | 5247172aad07580bdb359adb622c00afce9dba8e | [
"MIT"
] | null | null | null | test/chromex_test.exs | Jwsonic/chromex | 5247172aad07580bdb359adb622c00afce9dba8e | [
"MIT"
] | null | null | null | defmodule ChromexTest do
use ExUnit.Case
doctest Chromex
test "greets the world" do
assert Chromex.hello() == :world
end
end
| 15.333333 | 36 | 0.710145 |
213ea11e09e3bdb37c7d851cc98934028a52cf8c | 361 | exs | Elixir | test/mipha_web/controllers/admin/topic_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | test/mipha_web/controllers/admin/topic_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | test/mipha_web/controllers/admin/topic_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule MiphaWeb.Admin.TopicControllerTest do
use MiphaWeb.ConnCase
@tag :as_admin
test "lists all topics on index", %{conn: conn} do
t1 = insert(:topic)
t2 = insert(:topic)
conn = get(conn, admin_topic_path(conn, :index))
assert conn.status == 200
assert conn.resp_body =~ t1.title
ass... | 24.066667 | 52 | 0.684211 |
213eb2fe6c814a9858a39605056a42d55312332b | 2,129 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/subnetwork_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/subnetwork_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/subnetwork_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.425926 | 194 | 0.718178 |
213ecbe028c2361c674d04a8446f91f7a595cf73 | 4,525 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_management/lib/google_api/games_management/v1management/api/applications.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.932039 | 240 | 0.657459 |
213eec295931419b7ee73df2c40b93fc5e328312 | 137 | exs | Elixir | config/config.exs | BasileNouvellet/broadway_rabbitmq | 132591dca4975d1f972f5a238cf1fedfd71504c8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | BasileNouvellet/broadway_rabbitmq | 132591dca4975d1f972f5a238cf1fedfd71504c8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | BasileNouvellet/broadway_rabbitmq | 132591dca4975d1f972f5a238cf1fedfd71504c8 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :logger, handle_otp_reports: false
config :lager,
error_logger_redirect: false,
handlers: [level: :critical]
| 17.125 | 41 | 0.766423 |
213ef0b4812366a595f62ab6cfa89123eea0c1e4 | 7,343 | ex | Elixir | deps/ecto/lib/ecto/adapter.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/ecto/lib/ecto/adapter.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapter.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Ecto.Adapter do
@moduledoc """
This module specifies the adapter API that an adapter is required to
implement.
"""
use Behaviour
@type t :: module
@type query_meta :: map
@type model_meta :: %{source: {prefix :: binary, table :: binary}, model: atom, context: term}
@type fields :: Keyword.... | 37.274112 | 104 | 0.692496 |
213f3ef1285a7a9f2b161f0b1ddab15e7e12cf5b | 1,058 | exs | Elixir | clients/chat/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chat/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chat/test/test_helper.exs | 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... | 29.388889 | 83 | 0.73724 |
213f4876490027ad8f7bd979aa9724149bb3e706 | 1,744 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_trigger_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_trigger_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_trigger_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.333333 | 243 | 0.760894 |
213f5988d62503ca9c54763b152fc1ee860cfad9 | 1,698 | exs | Elixir | test/xml_parser/xml_node_finder_test.exs | paggi-com/lib-quinn | debbeff809e31f15156486e51226175f355223a9 | [
"Apache-2.0"
] | 45 | 2015-01-02T23:15:14.000Z | 2021-12-12T21:29:14.000Z | test/xml_parser/xml_node_finder_test.exs | paggi-com/lib-quinn | debbeff809e31f15156486e51226175f355223a9 | [
"Apache-2.0"
] | 12 | 2015-10-07T21:10:59.000Z | 2019-01-25T15:33:05.000Z | test/xml_parser/xml_node_finder_test.exs | paggi-com/lib-quinn | debbeff809e31f15156486e51226175f355223a9 | [
"Apache-2.0"
] | 17 | 2015-09-25T09:21:48.000Z | 2019-03-25T19:31:29.000Z | defmodule Quinn.NodeFinderTest do
use ExUnit.Case
@html_tree %{attr: nil,
name: :html,
value: [%{attr: nil, name: :head, value: ["title"]},
%{attr: nil, name: :title, value: []},
%{attr: nil, name: :body, value:... | 36.913043 | 111 | 0.545936 |
213f7fb90e622f89f8eb8af43e5832892f976057 | 787 | exs | Elixir | teachme/deps/decimal/mix.exs | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | teachme/deps/decimal/mix.exs | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | teachme/deps/decimal/mix.exs | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | defmodule Decimal.Mixfile do
use Mix.Project
@version "1.7.0"
def project() do
[
app: :decimal,
version: @version,
elixir: "~> 1.0",
deps: deps(),
name: "Decimal",
source_url: "https://github.com/ericmj/decimal",
docs: [source_ref: "v#{@version}", main: "readme", ex... | 18.738095 | 80 | 0.556544 |
213f859457498cc14fe97af41a27860bc4f6a55c | 10,638 | ex | Elixir | lib/phoenix/digester.ex | gjaldon/phoenix | a85a13d8bfbd7d768bb86d38da427875df3fb703 | [
"MIT"
] | 1 | 2015-05-19T11:04:16.000Z | 2015-05-19T11:04:16.000Z | lib/phoenix/digester.ex | gjaldon/phoenix | a85a13d8bfbd7d768bb86d38da427875df3fb703 | [
"MIT"
] | null | null | null | lib/phoenix/digester.ex | gjaldon/phoenix | a85a13d8bfbd7d768bb86d38da427875df3fb703 | [
"MIT"
] | null | null | null | defmodule Phoenix.Digester do
@digested_file_regex ~r/(-[a-fA-F\d]{32})/
@manifest_version 1
@empty_manifest %{
"version" => 1,
"digests" => %{},
"latest" => %{}
}
defp now() do
:calendar.datetime_to_gregorian_seconds(:calendar.universal_time)
end
@moduledoc false
@doc """
Digests a... | 31.196481 | 107 | 0.669769 |
213f9330175be72ba893ea76b473678a10b11bad | 11,783 | ex | Elixir | kousa/lib/kousa/room.ex | Neaxic/dogehouse | 4da9d2643939f9f8c672b8b6b3b0b5060b36f9d3 | [
"MIT"
] | 1 | 2021-10-01T07:40:30.000Z | 2021-10-01T07:40:30.000Z | kousa/lib/kousa/room.ex | Neaxic/dogehouse | 4da9d2643939f9f8c672b8b6b3b0b5060b36f9d3 | [
"MIT"
] | null | null | null | kousa/lib/kousa/room.ex | Neaxic/dogehouse | 4da9d2643939f9f8c672b8b6b3b0b5060b36f9d3 | [
"MIT"
] | null | null | null | defmodule Kousa.Room do
alias Kousa.Utils.RegUtils
alias Kousa.Utils.VoiceServerUtils
alias Beef.Users
alias Beef.Follows
alias Beef.Rooms
# note the following 2 module aliases are on the chopping block!
alias Beef.RoomPermissions
alias Beef.RoomBlocks
def set_auto_speaker(user_id, value) do
room... | 29.4575 | 113 | 0.589578 |
213f9ae03f9ef7141d1cae25b299783ba551358c | 159 | ex | Elixir | lib/hl7/2.2/datatypes/ts.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/datatypes/ts.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/datatypes/ts.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_2.DataTypes.Ts do
@moduledoc false
use HL7.DataType,
fields: [
time_of_an_event: nil,
degree_of_precision: nil
]
end
| 15.9 | 34 | 0.672956 |
213f9ef18cd867b97dacacccd95d1cfe4f95fa0c | 6,863 | ex | Elixir | lib/liquex.ex | univers-agency/liquex | 1a12e56be21da064d092b76fa3cce9bcb192103c | [
"MIT"
] | null | null | null | lib/liquex.ex | univers-agency/liquex | 1a12e56be21da064d092b76fa3cce9bcb192103c | [
"MIT"
] | null | null | null | lib/liquex.ex | univers-agency/liquex | 1a12e56be21da064d092b76fa3cce9bcb192103c | [
"MIT"
] | null | null | null | defmodule Liquex do
@moduledoc """
Liquid template renderer for Elixir with a goal of 100% compatibility with the
[Liquid](https://shopify.github.io/liquid/) gem by [Shopify](https://www.shopify.com/).
## Basic Usage
iex> {:ok, template_ast} = Liquex.parse("Hello {{ name }}!")
iex> context = Lique... | 33.807882 | 101 | 0.646219 |
213fc3b74ff06496d1f89ba10b699dafa86b36ff | 1,602 | exs | Elixir | mix.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | mix.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | mix.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | defmodule BudgetApi.Mixfile do
use Mix.Project
def project do
[app: :budget_api,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
a... | 29.127273 | 78 | 0.599875 |
213fcdb1e58dc5f600af0be1be2919e3d245ea09 | 346 | ex | Elixir | web/models/topic.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | web/models/topic.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | web/models/topic.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | defmodule Discuss.Topic do
use Discuss.Web, :model
schema "topics" do
field :title, :string
belongs_to :user, Discuss.User
has_many :comments, Discuss.Comment
end
def changeset(struct, params \\ %{}) do
struct
|> cast(params, [:title])
|> validate_requ... | 23.066667 | 43 | 0.589595 |
213fd84392508554385cd9aaa0d5b24fec66de01 | 38,716 | exs | Elixir | lib/elixir/test/elixir/enum_test.exs | DavidAlphaFox/elixir | de414fe998efcb07e05210a2c07b2496319716fd | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/test/elixir/enum_test.exs | DavidAlphaFox/elixir | de414fe998efcb07e05210a2c07b2496319716fd | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | DavidAlphaFox/elixir | de414fe998efcb07e05210a2c07b2496319716fd | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule EnumTest.List do
use ExUnit.Case, async: true
test "empty?" do
assert Enum.empty?([])
refute Enum.empty?([1, 2, 3])
refute Enum.empty?(1..3)
end
test "member?" do
assert Enum.member?([1, 2, 3], 2)
refute Enum.member?([], 0)
refute... | 32.290242 | 114 | 0.5109 |
213fe3c84f3a2508a0d01db597737df1499f28e4 | 3,406 | ex | Elixir | lib/gcm.ex | thusfresh/gcm | 0774ad441f36303f51752f8e03a440de9b88e786 | [
"MIT"
] | null | null | null | lib/gcm.ex | thusfresh/gcm | 0774ad441f36303f51752f8e03a440de9b88e786 | [
"MIT"
] | null | null | null | lib/gcm.ex | thusfresh/gcm | 0774ad441f36303f51752f8e03a440de9b88e786 | [
"MIT"
] | null | null | null | defmodule GCM do
@moduledoc """
GCM push notifications to devices.
```
iex> GCM.push("api_key", ["registration_id"], %{notification: %{ title: "Hello!"} })
{:ok,
%{body: "...",
canonical_ids: [], failure: 0,
headers: [{"Content-Type", "application/json; charset=UTF-8"},
{"Vary", "Accept-En... | 36.623656 | 103 | 0.601585 |
213ff957dd4c66c382ade17c0a6228f60290a40c | 1,792 | ex | Elixir | lib/game/npc/actions/commands_skill.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | lib/game/npc/actions/commands_skill.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | lib/game/npc/actions/commands_skill.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | defmodule Game.NPC.Actions.CommandsSkill do
@moduledoc """
Use a skill on the NPC's target
"""
alias Game.Character
alias Game.Command.Skills, as: CommandSkills
alias Game.Effect
alias Game.Environment
alias Game.Format.Skills, as: FormatSkills
alias Game.Skill
alias Game.Skills
def act(state, a... | 22.4 | 76 | 0.616071 |
2140018183e917f9373e7eba84fe73779664e5f2 | 838 | exs | Elixir | test/controllers/user_controller.exs | iandeherdt/phoenix-logger | 598a049078a262771d77a078ac7383c0cb0d37d8 | [
"MIT"
] | null | null | null | test/controllers/user_controller.exs | iandeherdt/phoenix-logger | 598a049078a262771d77a078ac7383c0cb0d37d8 | [
"MIT"
] | null | null | null | test/controllers/user_controller.exs | iandeherdt/phoenix-logger | 598a049078a262771d77a078ac7383c0cb0d37d8 | [
"MIT"
] | null | null | null | defmodule TodoApi.UserControllerTest do
use PhoenixLogger.ConnCase
alias PhoenixLogger.User
@valid_attrs %{email: "foo@bar.com", password: "s3cr3t"}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "creates and renders resource when ... | 31.037037 | 91 | 0.678998 |
2140194a82693816927962edcfd72862d7bfbb14 | 4,926 | ex | Elixir | lib/system/farmbot_system_network.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/system/farmbot_system_network.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/system/farmbot_system_network.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | defmodule Farmbot.System.Network do
@moduledoc """
Network functionality.
"""
require Logger
use GenServer
alias Farmbot.System.FS.ConfigStorage, as: CS
alias Farmbot.System.Network.SSH
alias Farmbot.System.Network.Ntp
alias Farmbot.Auth
@spec mod(atom) :: atom
defp mod(target), do: Module.conc... | 26.342246 | 82 | 0.649817 |
21404f346b89fcb1d63def18381f9f9fd0c6a7fa | 3,113 | ex | Elixir | lib/code_corps_web/controllers/user_task_controller.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps_web/controllers/user_task_controller.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps_web/controllers/user_task_controller.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.UserTaskController do
@moduledoc false
use CodeCorpsWeb, :controller
alias CodeCorps.{
Analytics.SegmentTracker,
UserTask,
User,
Helpers.Query
}
action_fallback CodeCorpsWeb.FallbackController
plug CodeCorpsWeb.Plug.DataToAttributes
@spec index(Conn.t, map) :: Con... | 39.405063 | 111 | 0.668166 |
21408a4c6842eaa1abfd9237c478327678f9c97a | 520 | ex | Elixir | test/support/fixtures/files/images_fixtures.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/support/fixtures/files/images_fixtures.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/support/fixtures/files/images_fixtures.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | defmodule Philopets.Files.ImagesFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Philopets.Files.Images` context.
"""
alias Philopets.Accounts.ProfilesFixtures
@doc """
Generate a image.
"""
def image_fixture(attrs \\ %{}) do
{:ok, image} =
attrs
... | 21.666667 | 57 | 0.634615 |
2140989d8057f3f733b3303c5d4ae58e6dfe4e5a | 334 | ex | Elixir | deps/postgrex/lib/postgrex/binary_extension.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/binary_extension.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/binary_extension.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Postgrex.BinaryExtension do
@moduledoc false
defmacro __using__(matching) do
quote location: :keep do
@behaviour Postgrex.Extension
def init(_), do: nil
def matching(_), do: unquote(matching)
def format(_), do: :binary
defoverridable [init: 1]
end... | 17.578947 | 45 | 0.622754 |
2140acb10eb215908d0cc75b1108c4a66e5a97d0 | 8,753 | exs | Elixir | lib/ex_unit/test/ex_unit/capture_io_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/capture_io_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/capture_io_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule ExUnit.CaptureIOTest do
use ExUnit.Case
defmodule GetUntil do
def until_new_line(_, :eof, _) do
{:done, :eof, []}
end
def until_new_line(this_far, chars, stop_char) do
case Enum.split_while(chars, fn(c) -> c != stop_char end) do
... | 24.725989 | 114 | 0.537644 |
2140acba5eef4cba20242b4eaf4dede8582414d4 | 2,059 | exs | Elixir | apps/tai/test/tai/iex/commands/markets_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/iex/commands/markets_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/iex/commands/markets_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.IEx.MarketsTest do
use Tai.TestSupport.DataCase, async: false
import ExUnit.CaptureIO
alias Tai.Markets.{Quote, PricePoint}
test "shows all inside quotes and the time they were last processed and changed" do
%Quote{
venue_id: :test_exchange_a,
product_symbol: :btc_usd,
bids:... | 37.436364 | 89 | 0.508985 |
2140b8ed075bdd8cf39027b6328f52184fc82f13 | 251 | ex | Elixir | lib/egcovac.ex | karembadawy/egcovac | a1ddb339656d41b29ea098cd8be6c4934dec6eee | [
"MIT"
] | null | null | null | lib/egcovac.ex | karembadawy/egcovac | a1ddb339656d41b29ea098cd8be6c4934dec6eee | [
"MIT"
] | null | null | null | lib/egcovac.ex | karembadawy/egcovac | a1ddb339656d41b29ea098cd8be6c4934dec6eee | [
"MIT"
] | null | null | null | defmodule Egcovac do
@moduledoc """
Egcovac 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.1 | 66 | 0.752988 |
2140f88d894476b9047db04a3172a943f4fd608e | 7,972 | exs | Elixir | mix.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | mix.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | mix.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.MixProject do
use Mix.Project
def project do
[
app: :grizzly,
version: "0.6.3",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
description: description(),
... | 42.404255 | 89 | 0.698445 |
2140f92b0b0bf525dcbc46d03eccf156e678ea34 | 3,939 | ex | Elixir | lib/arpeggiate.ex | onyxrev/arpeggiate | e57fcb61428f7698f84233e5f93dfc998e922a0f | [
"Apache-2.0"
] | 1 | 2017-11-16T16:46:46.000Z | 2017-11-16T16:46:46.000Z | lib/arpeggiate.ex | onyxrev/arpeggiate | e57fcb61428f7698f84233e5f93dfc998e922a0f | [
"Apache-2.0"
] | 1 | 2017-10-25T01:27:07.000Z | 2017-10-25T01:27:07.000Z | lib/arpeggiate.ex | onyxrev/arpeggiate | e57fcb61428f7698f84233e5f93dfc998e922a0f | [
"Apache-2.0"
] | null | null | null | defmodule Arpeggiate do
defstruct steps: []
defmacro __using__(__) do
quote do
use Ecto.Schema
import Ecto
import Ecto.Changeset
import Arpeggiate
@primary_key false
end
end
defmacro run(operation, params) do
quote do
iterate_over_steps(__MODULE__, unquote(ope... | 24.314815 | 99 | 0.645341 |
2140ffbc2ac0805f09bb18ab6dfcebbde449bd7b | 195 | exs | Elixir | test/controllers/page_controller_test.exs | Baransu/togither | 87483348f0b800c2a28b2dabc77180a5b49ea59e | [
"BSD-3-Clause"
] | 1 | 2016-08-11T04:06:29.000Z | 2016-08-11T04:06:29.000Z | test/controllers/page_controller_test.exs | Baransu/togither | 87483348f0b800c2a28b2dabc77180a5b49ea59e | [
"BSD-3-Clause"
] | 1 | 2017-02-17T19:20:29.000Z | 2017-02-17T20:27:44.000Z | test/controllers/page_controller_test.exs | Baransu/togither | 87483348f0b800c2a28b2dabc77180a5b49ea59e | [
"BSD-3-Clause"
] | null | null | null | defmodule Togither.PageControllerTest do
use Togither.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.666667 | 60 | 0.676923 |
214114c275472e58bf141b7c9336652043e53982 | 356 | exs | Elixir | apps/data/priv/repo/migrations/20181115224307_create_game_stats.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/data/priv/repo/migrations/20181115224307_create_game_stats.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/data/priv/repo/migrations/20181115224307_create_game_stats.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineData.Repo.Migrations.CreateGameStats do
use Ecto.Migration
def change do
create table(:player_statistics) do
add(:game_id, references(:games), null: false)
add(:player_count, :integer, null: false)
add(:recorded_at, :utc_datetime, null: false)
end
create index(:pla... | 25.428571 | 58 | 0.713483 |
21412318f1702c1f65332b4e48e39ea73b987770 | 6,575 | ex | Elixir | lib/ash/error/error.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | lib/ash/error/error.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | lib/ash/error/error.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | defmodule Ash.Error do
@moduledoc """
Tools and utilities used by Ash to manage and conform errors
"""
alias Ash.Error.{Forbidden, Framework, Invalid, Unknown}
@type error_class() :: :invalid | :authorization | :framework | :unknown
@type t :: struct
# We use these error classes also to choose a singl... | 26.946721 | 91 | 0.61673 |
21412abcc83b7cb46c8f731946cd8c5ed6242c60 | 4,809 | exs | Elixir | prag-programing/Part1/StringsAndBinaries/stringliterals.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | 1 | 2017-03-29T04:10:50.000Z | 2017-03-29T04:10:50.000Z | prag-programing/Part1/StringsAndBinaries/stringliterals.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | prag-programing/Part1/StringsAndBinaries/stringliterals.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | """
String Literals
Matthew Ahrens
Chapter 11
"""
#single quoted vs double quoted
#Both can hold UTF-8 encoded characters
#Both can have escape sequences
# \a, \e. \r, \v, \b,\ f, \s, \d, \n, \t, \xhhh (hex digit)
#string interpolation
name = "Matt"
str1 = "Hello, #{name}!"
str2 = 'Goodbye, #{name}!'
#Support heredoc... | 26.423077 | 89 | 0.662508 |
21414eb3326c1015a0a0b83e028ac325a99b1cd3 | 2,503 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/game_services/lib/google_api/game_services/v1/model/schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.696429 | 486 | 0.715541 |
21416d473d134b086754064e57a0bee2744dbaf1 | 461 | exs | Elixir | test/models/user_test.exs | jbr/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 335 | 2015-06-19T18:27:51.000Z | 2020-11-25T19:00:27.000Z | test/models/user_test.exs | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 33 | 2015-06-24T17:00:01.000Z | 2017-11-23T09:53:29.000Z | test/models/user_test.exs | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 95 | 2015-06-30T22:18:00.000Z | 2022-01-14T13:47:10.000Z | defmodule PhoenixGuardian.UserTest do
use PhoenixGuardian.ModelCase
alias PhoenixGuardian.User
@valid_attrs %{name: "some content", email: "foo@example.com"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert changeset.valid?
end
... | 24.263158 | 64 | 0.73102 |
214176cef6a80d1eb51e7a4faa59ce5240947cb1 | 1,086 | exs | Elixir | brain_wall/test/brain_wall/scorer_test.exs | NashFP/icfp-contest-2021 | 384e607bb2ad16b18a2d319b8f7f50a22a37a353 | [
"BSD-3-Clause"
] | null | null | null | brain_wall/test/brain_wall/scorer_test.exs | NashFP/icfp-contest-2021 | 384e607bb2ad16b18a2d319b8f7f50a22a37a353 | [
"BSD-3-Clause"
] | null | null | null | brain_wall/test/brain_wall/scorer_test.exs | NashFP/icfp-contest-2021 | 384e607bb2ad16b18a2d319b8f7f50a22a37a353 | [
"BSD-3-Clause"
] | null | null | null | defmodule BrainWall.ScorerTest do
use ExUnit.Case
alias BrainWall.Scorer
doctest Scorer
test "Scorer" do
problem = BrainWall.Problem.get(1)
solution = [
{21, 28},
{31, 28},
{31, 87},
{29, 41},
{44, 43},
{58, 70},
{38, 79},
{32, 31},
{36, 50},
... | 20.884615 | 77 | 0.520258 |
21417f1725a63ebd6858d5723458b62b713c1cfc | 1,089 | ex | Elixir | lib/senti_web/channels/user_socket.ex | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | lib/senti_web/channels/user_socket.ex | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | lib/senti_web/channels/user_socket.ex | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | defmodule SentiWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "session:*", SentiWeb.SessionChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channe... | 30.25 | 83 | 0.696051 |
21418577f8a7a6c3d1fa6adc8225fb22cb4e00f1 | 2,904 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/api/page_views.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/api/page_views.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/api/page_views.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... | 38.210526 | 170 | 0.69146 |
2141a9a2545161a3f8584f1cc6fc42f926c81836 | 240 | exs | Elixir | .credo.exs | kuiro5/cloud_watch | ed7261d4448bbb4f7b04ff0f33a248eed3044a4b | [
"MIT"
] | 23 | 2016-11-19T22:23:51.000Z | 2021-05-05T17:02:36.000Z | .credo.exs | kuiro5/cloud_watch | ed7261d4448bbb4f7b04ff0f33a248eed3044a4b | [
"MIT"
] | 16 | 2017-12-20T21:38:20.000Z | 2021-05-18T18:19:53.000Z | .credo.exs | kuiro5/cloud_watch | ed7261d4448bbb4f7b04ff0f33a248eed3044a4b | [
"MIT"
] | 22 | 2018-01-26T01:50:41.000Z | 2021-03-04T02:13:51.000Z | %{
configs: [
%{
name: "default",
files: %{
included: ["lib"],
},
checks: [
{Credo.Check.Consistency.TabsOrSpaces},
{Credo.Check.Readability.MaxLineLength, false},
]
}
]
}
| 14.117647 | 55 | 0.466667 |
2141afedcacaecc10786c3f592bd092ae14a6c19 | 185 | exs | Elixir | priv/repo/migrations/20210222073407_update_event_timestamps.exs | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 2 | 2021-02-12T09:21:56.000Z | 2021-02-22T08:52:20.000Z | priv/repo/migrations/20210222073407_update_event_timestamps.exs | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 4 | 2021-02-22T08:53:43.000Z | 2021-06-09T09:24:46.000Z | priv/repo/migrations/20210222073407_update_event_timestamps.exs | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | null | null | null | defmodule SuperIssuer.Repo.Migrations.UpdateEventTimestamps do
use Ecto.Migration
def change do
alter table :event do
timestamps()
remove :topics
end
end
end
| 16.818182 | 62 | 0.713514 |
2141d43f3c69e1c32c7ae7b5fc8b0ada681dfd89 | 1,784 | ex | Elixir | lib/delugex/message_store/static.ex | Fire-Dragon-DoL/esp_ex | 0cd95de570ed7963744b298ad403fe4e1947dd2b | [
"MIT"
] | null | null | null | lib/delugex/message_store/static.ex | Fire-Dragon-DoL/esp_ex | 0cd95de570ed7963744b298ad403fe4e1947dd2b | [
"MIT"
] | null | null | null | lib/delugex/message_store/static.ex | Fire-Dragon-DoL/esp_ex | 0cd95de570ed7963744b298ad403fe4e1947dd2b | [
"MIT"
] | null | null | null | defmodule Delugex.MessageStore.Static do
@moduledoc false
# You should never use this MessageStore since it doesn't reflect correct
# behaviour for an event store (it's static). It's used only in test suite
use Delugex.MessageStore
alias Delugex.Event.Raw
alias Delugex.Stream.Name
@stream_name %Name{c... | 23.786667 | 76 | 0.640695 |
2141d9f912ec6d27153769ce0f4c4d07e4db25ed | 8,432 | exs | Elixir | lib/elixir/test/elixir/supervisor_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/test/elixir/supervisor_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/supervisor_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule SupervisorTest do
use ExUnit.Case, async: true
defmodule Stack do
use GenServer
def start_link({state, opts}) do
GenServer.start_link(__MODULE__, state, opts)
end
def init(args) do
{:ok, args}
end
def handle_call(:pop, ... | 31.462687 | 95 | 0.616105 |
21427da816279bb0fce2b192f53688cc95fb10d7 | 4,580 | ex | Elixir | lib/google_api/compute/v1/model/https_health_check_legacy.ex | greg-rychlewski/google_api_compute | 08061de03f1e9688d6ab69df08501485ecd3f97e | [
"Apache-2.0"
] | null | null | null | lib/google_api/compute/v1/model/https_health_check_legacy.ex | greg-rychlewski/google_api_compute | 08061de03f1e9688d6ab69df08501485ecd3f97e | [
"Apache-2.0"
] | null | null | null | lib/google_api/compute/v1/model/https_health_check_legacy.ex | greg-rychlewski/google_api_compute | 08061de03f1e9688d6ab69df08501485ecd3f97e | [
"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... | 53.882353 | 490 | 0.691048 |
21428397a1ee0e78ebc6eb6cb7328b8b4f4fad7a | 485 | ex | Elixir | phoenix-app/flyr/lib/flyr_web/views/error_view.ex | rounakdatta/flyr | b455bd44f712b4d7f31d23df7059bd2b88a53bea | [
"WTFPL"
] | 1 | 2018-11-23T08:36:25.000Z | 2018-11-23T08:36:25.000Z | phoenix-app/flyr/lib/flyr_web/views/error_view.ex | rounakdatta/flyr | b455bd44f712b4d7f31d23df7059bd2b88a53bea | [
"WTFPL"
] | 1 | 2018-10-07T14:34:50.000Z | 2018-10-08T19:46:29.000Z | phoenix-app/flyr/lib/flyr_web/views/error_view.ex | rounakdatta/flyr | b455bd44f712b4d7f31d23df7059bd2b88a53bea | [
"WTFPL"
] | null | null | null | defmodule FlyrWeb.ErrorView do
use FlyrWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. For ... | 28.529412 | 61 | 0.731959 |
2142cbea17fcb8818734ba8610514251531418fa | 962 | exs | Elixir | config/config.exs | workgena/instant_poll | 94be29da99cfcb54576ae0ce34d395fff7b8ca39 | [
"MIT"
] | 1 | 2018-11-30T09:08:09.000Z | 2018-11-30T09:08:09.000Z | config/config.exs | workgena/instant_poll | 94be29da99cfcb54576ae0ce34d395fff7b8ca39 | [
"MIT"
] | 5 | 2021-01-28T19:08:56.000Z | 2021-05-07T22:43:54.000Z | config/config.exs | workgena/instant_poll | 94be29da99cfcb54576ae0ce34d395fff7b8ca39 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :instant_poll,
ecto_repos: [InstantPoll.... | 34.357143 | 86 | 0.767152 |
2142cc2aaae0d34bc7a6a139ad03548d898c9a82 | 823 | exs | Elixir | priv/repo/migrations/20181216004352_create_new_auction_tables.exs | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | priv/repo/migrations/20181216004352_create_new_auction_tables.exs | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | priv/repo/migrations/20181216004352_create_new_auction_tables.exs | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | defmodule Wow.Repo.Migrations.CreateNewAuctionTables do
use Ecto.Migration
def change do
create table(:auction_bid) do
add :bid, :bigint, null: false
add :item, :bigint, null: false
add :owner, :string, null: false
add :owner_realm, :string, null: false
add :buyout, :bigint, null:... | 31.653846 | 80 | 0.664642 |
2142d60e6b51da46239c60eaa95d6eebd21ce885 | 257 | ex | Elixir | dpp/lib/robot/robot_joints.ex | XiaoxiaoZ/Distributed-path-planner | a7467e08e60248793dc55624497fd91bdb45ca14 | [
"MIT"
] | null | null | null | dpp/lib/robot/robot_joints.ex | XiaoxiaoZ/Distributed-path-planner | a7467e08e60248793dc55624497fd91bdb45ca14 | [
"MIT"
] | 6 | 2021-12-12T13:23:17.000Z | 2021-12-17T12:03:46.000Z | dpp/lib/robot/robot_joints.ex | XiaoxiaoZ/Distributed-path-planner | a7467e08e60248793dc55624497fd91bdb45ca14 | [
"MIT"
] | null | null | null | defmodule Robot.Joints do
@moduledoc """
Robot Joints struct
joint1: 0.0, joint2: 0.0, joint3: 0.0, joint4: 0.0, joint5: 0.0, joint6: 0.0
"""
defstruct joint1: 0.0, joint2: 0.0, joint3: 0.0, joint4: 0.0, joint5: 0.0, joint6: 0.0
end | 32.125 | 90 | 0.607004 |
2142ea52a2974a2be590c4835397202decd8729b | 2,719 | ex | Elixir | lib/oli_web/live/common/manual_modal.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/live/common/manual_modal.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/live/common/manual_modal.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule OliWeb.Common.ManualModal do
@moduledoc """
A reusable LivewComponent for a Bootstrap modal, one that is manually controlled via JavaScript, and that
must be added and removed from a parent LiveView programmatically when it needs to be shown.
This component should be used in place of `OliWeb.Common.M... | 39.405797 | 148 | 0.654652 |
21434aa53d98d8017aba02d02b57eb5df612d5d6 | 340 | ex | Elixir | lib/hl7/2.3.1/segments/om5.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/om5.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/om5.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.OM5 do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
sequence_number_test_observation_master_file: nil,
test_observations_included_within_an_ordered_test_battery: DataTypes.Ce,
observation_id_suff... | 22.666667 | 78 | 0.747059 |
214365b455939c5b9c20d97ea9f623a078a5a54f | 301 | exs | Elixir | priv/repo/migrations/20180628140737_remove_event_id_infraction_jsonb_attribute.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | priv/repo/migrations/20180628140737_remove_event_id_infraction_jsonb_attribute.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | priv/repo/migrations/20180628140737_remove_event_id_infraction_jsonb_attribute.exs | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.Repo.Migrations.RemoveEventIdInfractionJsonbAttribute do
use Ecto.Migration
def down do
require Logger
Logger.warn("cannot re-add `event_id` JSONB attribute to infractions.data")
end
def up do
execute("UPDATE infractions SET data = data - 'event_id';")
end
end
| 21.5 | 79 | 0.740864 |
21436986c5b7323d009cde5da25434ba675bf5d7 | 946 | exs | Elixir | mix.exs | Vinny1892/ecommerce_user | 778fcbc77e892c766db452fefbd181e3716638ad | [
"MIT"
] | 4 | 2021-05-20T02:52:56.000Z | 2021-07-15T17:41:06.000Z | mix.exs | Vinny1892/ecommerce_user | 778fcbc77e892c766db452fefbd181e3716638ad | [
"MIT"
] | null | null | null | mix.exs | Vinny1892/ecommerce_user | 778fcbc77e892c766db452fefbd181e3716638ad | [
"MIT"
] | 1 | 2021-07-02T19:40:32.000Z | 2021-07-02T19:40:32.000Z | defmodule EcommerceUser.MixProject do
use Mix.Project
def project do
[
app: :ecommerce_user,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 24.894737 | 87 | 0.55074 |
214369a980c18ac3d5a385aac4752b68cc565aef | 1,052 | exs | Elixir | mix.exs | gergo-papp/trie | 259ff77bc20917ecf1432b8b1a7cb21b51d89978 | [
"MIT"
] | null | null | null | mix.exs | gergo-papp/trie | 259ff77bc20917ecf1432b8b1a7cb21b51d89978 | [
"MIT"
] | null | null | null | mix.exs | gergo-papp/trie | 259ff77bc20917ecf1432b8b1a7cb21b51d89978 | [
"MIT"
] | null | null | null | #-*-Mode:elixir;coding:utf-8;tab-width:2;c-basic-offset:2;indent-tabs-mode:()-*-
# ex: set ft=elixir fenc=utf-8 sts=2 ts=2 sw=2 et nomod:
defmodule Trie.Mixfile do
use Mix.Project
def project do
[app: :trie,
version: "2.0.0",
language: :erlang,
erlc_options: [
:debug_info,
:warnin... | 22.869565 | 80 | 0.624525 |
21439516f78457eed8cfa994a806e11053b288e4 | 242 | exs | Elixir | config.exs | silkkycloud/docker-pleroma | f77274ac2f012562582fd8ca5a04a3df255fcd89 | [
"Unlicense"
] | 1 | 2022-01-07T09:33:34.000Z | 2022-01-07T09:33:34.000Z | config.exs | silkkycloud/docker-pleroma | f77274ac2f012562582fd8ca5a04a3df255fcd89 | [
"Unlicense"
] | 3 | 2021-11-10T15:18:28.000Z | 2021-11-29T00:14:42.000Z | config.exs | silkkycloud/docker-pleroma | f77274ac2f012562582fd8ca5a04a3df255fcd89 | [
"Unlicense"
] | null | null | null | # This file can be used for additional static configuration
import Config
config :pleroma, configurable_from_database: true
# Media proxy
config :pleroma, :media_proxy,
enabled: true
config :pleroma, :media_preview_proxy,
enabled: true
| 22 | 59 | 0.793388 |
21439525faa1bbc62f7a17f705c1f1ba3a58c877 | 2,046 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/aws_s3_data.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/aws_s3_data.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/aws_s3_data.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.92 | 273 | 0.741935 |
2143ab87db8f2f8c8b126d2ce236d53d97535b3f | 1,921 | ex | Elixir | lib/beamchmark/suite/measurements.ex | kianmeng/beamchmark | e5ee1af12339c5161dda0245f254bee9a382697d | [
"Apache-2.0"
] | null | null | null | lib/beamchmark/suite/measurements.ex | kianmeng/beamchmark | e5ee1af12339c5161dda0245f254bee9a382697d | [
"Apache-2.0"
] | null | null | null | lib/beamchmark/suite/measurements.ex | kianmeng/beamchmark | e5ee1af12339c5161dda0245f254bee9a382697d | [
"Apache-2.0"
] | null | null | null | defmodule Beamchmark.Suite.Measurements do
@moduledoc """
The module is responsible for gathering BEAM statistics during benchmarking.
"""
alias __MODULE__.SchedulerInfo
alias __MODULE__.CpuInfo
alias Beamchmark.Suite.CPU.CpuTask
@type reductions_t() :: non_neg_integer()
@type context_switches_t() :: ... | 26.315068 | 85 | 0.689745 |
2143bee751731503a330f30f020c2151dc664c16 | 866 | ex | Elixir | test/support/conn_case.ex | Schultzer/fexr | f64d67b78bc785ae967f4c1193491a1d9cf33279 | [
"MIT",
"Unlicense"
] | 4 | 2017-08-13T09:03:24.000Z | 2018-06-19T06:32:07.000Z | test/support/conn_case.ex | Schultzer/fexr | f64d67b78bc785ae967f4c1193491a1d9cf33279 | [
"MIT",
"Unlicense"
] | null | null | null | test/support/conn_case.ex | Schultzer/fexr | f64d67b78bc785ae967f4c1193491a1d9cf33279 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule FexrWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the te... | 24.742857 | 58 | 0.726328 |
2143ce6f7c93c0fc8cde1627a1911f6a8ca34d04 | 669 | ex | Elixir | debian/watch.ex | tqrg-bot/jenkins | 04a2d31ca955c92c3604ca75f79507829f5c5a7a | [
"MIT"
] | 1 | 2020-01-09T15:48:40.000Z | 2020-01-09T15:48:40.000Z | debian/watch.ex | fujibee/hudson | 4f9510a0d46079be7262b9af03b3e5855882af57 | [
"MIT"
] | 2 | 2021-02-03T19:30:11.000Z | 2021-02-03T19:30:14.000Z | debian/watch.ex | fujibee/hudson | 4f9510a0d46079be7262b9af03b3e5855882af57 | [
"MIT"
] | null | null | null | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.c... | 29.086957 | 70 | 0.714499 |
2143e4b17e11e8844ddbc99b6ba951e75adaac05 | 1,161 | ex | Elixir | elixir_advent/lib/elixir_advent.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | elixir_advent/lib/elixir_advent.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | elixir_advent/lib/elixir_advent.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | defmodule ElixirAdvent do
@moduledoc """
Documentation for `ElixirAdvent`.
"""
def run_day(day_number) do
case Path.wildcard("samples/day#{day_number}_*") do
[] ->
IO.puts("no input files")
paths ->
with runner = get_runner(day_number) do
Enum.each(paths, &run_file(&1... | 19.677966 | 55 | 0.573643 |
214437faaff5b7f06e47ed30916ca2f0225c34cf | 1,421 | ex | Elixir | lib/gaga_web/router.ex | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 13 | 2020-11-22T18:43:21.000Z | 2022-02-12T00:57:45.000Z | lib/gaga_web/router.ex | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 2 | 2020-11-25T16:58:15.000Z | 2021-06-21T12:02:41.000Z | lib/gaga_web/router.ex | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 4 | 2020-11-23T08:14:03.000Z | 2022-01-25T08:18:41.000Z | defmodule GagaWeb.Router do
use GagaWeb, :router
import GagaWeb.UserAuth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {GagaWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :fetch_... | 26.314815 | 92 | 0.698804 |
2144547e46e01d13c09500703d1ca9ff35f0bb0e | 276 | ex | Elixir | apps/rest_api/lib/controller.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/rest_api/lib/controller.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/rest_api/lib/controller.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule RestAPI.Controller do
@moduledoc """
Helpers to be used in controllers.
"""
defmacro __using__(_opts) do
quote do
use Phoenix.Controller, namespace: RestAPI
import Plug.Conn
alias RestAPI.Router.Helpers, as: Routes
end
end
end
| 17.25 | 48 | 0.681159 |
21445b13a5e56e9483871e64091b69613d108d32 | 8,401 | ex | Elixir | clients/people/lib/google_api/people/v1/api/other_contacts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/api/other_contacts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/people/lib/google_api/people/v1/api/other_contacts.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... | 51.858025 | 384 | 0.657422 |
21445bf7e79e0178c74311f880cce1605fb93cbe | 2,881 | exs | Elixir | test/rihanna_test.exs | slashdotdash/rihanna | 567672735057ce15b34cb394999164073c795746 | [
"MIT"
] | null | null | null | test/rihanna_test.exs | slashdotdash/rihanna | 567672735057ce15b34cb394999164073c795746 | [
"MIT"
] | null | null | null | test/rihanna_test.exs | slashdotdash/rihanna | 567672735057ce15b34cb394999164073c795746 | [
"MIT"
] | 1 | 2019-10-10T23:24:10.000Z | 2019-10-10T23:24:10.000Z | defmodule RihannaTest do
use ExUnit.Case, async: false
doctest Rihanna
import Rihanna
import TestHelper
alias Rihanna.Mocks.MockJob
setup_all [:create_jobs_table]
@term {IO, :puts, ["Work, work, work, work, work."]}
describe "`enqueue/1` with mfa" do
test "returns the job struct" do
{:ok, ... | 27.970874 | 83 | 0.633114 |
214465aba04a1653c53ec9d4ed37b56b8751b1f1 | 3,363 | exs | Elixir | test/bounty_test.exs | grace-in-wonderland/safeish | 9241486f5a563089a537bdab30d7cba06d05d08e | [
"MIT"
] | 28 | 2020-12-26T17:00:13.000Z | 2022-02-16T09:09:30.000Z | test/bounty_test.exs | grace-in-wonderland/safeish | 9241486f5a563089a537bdab30d7cba06d05d08e | [
"MIT"
] | 4 | 2020-12-26T21:10:24.000Z | 2021-06-17T15:37:53.000Z | test/bounty_test.exs | grace-in-wonderland/safeish | 9241486f5a563089a537bdab30d7cba06d05d08e | [
"MIT"
] | 7 | 2020-12-26T15:40:07.000Z | 2021-07-07T17:14:58.000Z | defmodule BountyTest do
@moduledoc """
## BOUNTY CONDITIONS
I, Robin Hilliard, will pay the submitter of the first pull request to
my github repo for this project that causes the test
"bounty 5 checked code can guess the secret"
to pass by changing the contents of `bounty_winners/Elixir.Bounty5.beam`... | 39.564706 | 107 | 0.668748 |
2144964a7cb7fbdb28fb100f78e080ee03b60af2 | 57 | ex | Elixir | web/views/page_view.ex | jnbt/placex | 8b031f04df092ed94ba660acbc8f3fcd18d2beb8 | [
"MIT"
] | 3 | 2016-01-18T16:20:57.000Z | 2017-08-02T18:04:19.000Z | web/views/page_view.ex | jnbt/placex | 8b031f04df092ed94ba660acbc8f3fcd18d2beb8 | [
"MIT"
] | null | null | null | web/views/page_view.ex | jnbt/placex | 8b031f04df092ed94ba660acbc8f3fcd18d2beb8 | [
"MIT"
] | null | null | null | defmodule Placex.PageView do
use Placex.Web, :view
end
| 14.25 | 28 | 0.77193 |
2144abab24439f90cca99f094a8143715ef1da9d | 4,820 | ex | Elixir | lib/ex_machina/strategy.ex | cnsa/ex_machina | 8a55155df735b2d0c143676f451a7a1ee191dc85 | [
"MIT"
] | null | null | null | lib/ex_machina/strategy.ex | cnsa/ex_machina | 8a55155df735b2d0c143676f451a7a1ee191dc85 | [
"MIT"
] | null | null | null | lib/ex_machina/strategy.ex | cnsa/ex_machina | 8a55155df735b2d0c143676f451a7a1ee191dc85 | [
"MIT"
] | null | null | null | defmodule ExMachina.Strategy do
@moduledoc ~S"""
Module for making new strategies for working with factories
## Example
defmodule MyApp.JsonEncodeStrategy do
# The function_name will be used to generate functions in your factory
# This example adds json_encode/1, json_encode/2, json_encode... | 32.348993 | 99 | 0.666598 |
2144ac1088efee5202a96253acfa28f0c3be24e5 | 56,389 | ex | Elixir | lib/mix/lib/mix/tasks/release.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Release do
use Mix.Task
@shortdoc "Assembles a self-contained release"
@moduledoc """
Assembles a self-contained release for the current project:
MIX_ENV=prod mix release
MIX_ENV=prod mix release NAME
Once a release is assembled, it can be packaged and deployed to a
targe... | 39.18624 | 106 | 0.696537 |
2144df22fc69abdaa63d1ff4d995cd090f904382 | 1,643 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_condition.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_condition.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_condition.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.957447 | 121 | 0.760803 |
2144ed52ebc19c0a6005a3804d6b397c7e6efd3c | 7,567 | exs | Elixir | test/breadboard/gpio/base_gpio_test.exs | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | test/breadboard/gpio/base_gpio_test.exs | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | test/breadboard/gpio/base_gpio_test.exs | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | defmodule BaseGPIOTest do
use ExUnit.Case
defmodule TestGPIOPin do
use Breadboard.GPIO.BaseGPIOHelper
@pinout_map %{
0 => [pin_name: "GPIO0"],
1 => [pin_name: "GPIO1", sysfs: 345],
2 => [pin_name: "SPECIFIC_GPIO_NAME"],
3 => [pin_name: "GPIO3", pin: 5],
5 => [pin_name: "GPIO5... | 26.093103 | 98 | 0.479715 |
214507552f50ab2a62648400a6dd975015d4e4ec | 2,979 | ex | Elixir | lib/protobuf/protoc/cli.ex | gialib/protobuf-elixir | 25598a2ae13eee56550467901d789dc9b21aab17 | [
"MIT"
] | 2 | 2019-06-01T05:52:52.000Z | 2019-06-01T06:03:10.000Z | lib/protobuf/protoc/cli.ex | gialib/protobuf-elixir | 25598a2ae13eee56550467901d789dc9b21aab17 | [
"MIT"
] | 3 | 2019-09-19T14:52:12.000Z | 2019-09-24T15:45:07.000Z | lib/protobuf/protoc/cli.ex | gialib/protobuf-elixir | 25598a2ae13eee56550467901d789dc9b21aab17 | [
"MIT"
] | 1 | 2018-12-03T07:04:27.000Z | 2018-12-03T07:04:27.000Z | defmodule Protobuf.Protoc.CLI do
def main(_) do
# https://groups.google.com/forum/#!topic/elixir-lang-talk/T5enez_BBTI
:io.setopts(:standard_io, encoding: :latin1)
bin = IO.binread(:all)
request = Protobuf.Decoder.decode(bin, Google.Protobuf.Compiler.CodeGeneratorRequest)
# debug
# raise inspe... | 29.79 | 94 | 0.673045 |
21452de8334e2a6d0df5ca3fe750a2f44f87412b | 1,574 | exs | Elixir | apps/chatter_web/test/chatter_web/views/users_live/edit_test.exs | barboza/chatter | 16a56aea83eceb0fd1a709f3bc8d3a24812996cd | [
"MIT"
] | 2 | 2019-08-29T19:35:01.000Z | 2019-08-31T04:08:03.000Z | apps/chatter_web/test/chatter_web/views/users_live/edit_test.exs | barboza/chatter | 16a56aea83eceb0fd1a709f3bc8d3a24812996cd | [
"MIT"
] | 1 | 2021-03-09T16:10:46.000Z | 2021-03-09T16:10:46.000Z | apps/chatter_web/test/chatter_web/views/users_live/edit_test.exs | barboza/chatter | 16a56aea83eceb0fd1a709f3bc8d3a24812996cd | [
"MIT"
] | null | null | null | defmodule ChatterWeb.UserLive.EditTest do
use ChatterWeb.ConnCase
import Phoenix.LiveViewTest
import Chatter.UserFactory
alias Chatter.Accounts
@endpoint ChatterWeb.Endpoint
@invalid_params %{"user" => %{"name" => ""}}
setup do
{:ok, %{user: insert(:user)}}
end
test "renders edit form with corr... | 31.48 | 91 | 0.668361 |
21453308c7034e71d6d937c304f5dafb0c70a467 | 1,649 | ex | Elixir | apps/omg_utils/lib/omg_utils/http_rpc/encoding.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_utils/lib/omg_utils/http_rpc/encoding.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_utils/lib/omg_utils/http_rpc/encoding.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 37.477273 | 83 | 0.699818 |
21456b0582b2c2d0d79ba82942350c153cf68792 | 388 | ex | Elixir | lib/prelude/atom.ex | elixir-packages/elixir_prelude | 967e1f54561436fed7f2a33191bbba3f779dde15 | [
"WTFPL"
] | null | null | null | lib/prelude/atom.ex | elixir-packages/elixir_prelude | 967e1f54561436fed7f2a33191bbba3f779dde15 | [
"WTFPL"
] | null | null | null | lib/prelude/atom.ex | elixir-packages/elixir_prelude | 967e1f54561436fed7f2a33191bbba3f779dde15 | [
"WTFPL"
] | null | null | null | defmodule Prelude.Atom do
@moduledoc "Functions operating on `atoms`."
@doc """
Converts atoms to strings, leaving existing strings alone.
Example:
iex> Prelude.Atom.to_string("string")
"string"
iex> Prelude.Atom.to_string(:atom)
"atom"
"""
def to_string(x) when is_atom(x), do:... | 20.421053 | 60 | 0.657216 |
214571efe0fb1aef18f4ef0f3ac9f331f6aa0fa7 | 1,010 | ex | Elixir | demo_backend/lib/demo_server/application.ex | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | 7 | 2020-11-12T14:30:30.000Z | 2021-08-03T20:49:53.000Z | demo_backend/lib/demo_server/application.ex | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | null | null | null | demo_backend/lib/demo_server/application.ex | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | 1 | 2022-01-09T07:25:14.000Z | 2022-01-09T07:25:14.000Z | defmodule DemoServer.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 = [
# Start the Telemetry supervisor
DemoServerWeb.Telemetry,
# Start the PubSub system
... | 29.705882 | 68 | 0.712871 |
21457d64ed03c889dea0e194257b0122fb07c41d | 1,558 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/timestamp_range.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/timestamp_range.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/jobs/lib/google_api/jobs/v3/model/timestamp_range.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... | 31.16 | 81 | 0.717587 |
21457ef924893c123b66e8fb4ae89ed1f73222ee | 1,121 | ex | Elixir | lib/phx_view_helpers.ex | thenrio/phx_component_helpers | dba106a6cd1ce93d9a6a038e5da703601eff2816 | [
"MIT"
] | null | null | null | lib/phx_view_helpers.ex | thenrio/phx_component_helpers | dba106a6cd1ce93d9a6a038e5da703601eff2816 | [
"MIT"
] | null | null | null | lib/phx_view_helpers.ex | thenrio/phx_component_helpers | dba106a6cd1ce93d9a6a038e5da703601eff2816 | [
"MIT"
] | null | null | null | defmodule PhxViewHelpers do
@moduledoc """
`PhxComponentHelpers` are helper functions meant to be used within Phoenix
your views to facilitate usage of live_components inside templates.
"""
import PhxComponentHelpers.CSS
@doc ~S"""
Extends `Phoenix.HTML.Form.form_for/3` options to merge css class as wi... | 33.969697 | 78 | 0.759144 |
2145953aa27c89de4728f55011b977a07933e7b7 | 4,072 | ex | Elixir | deps/phoenix/lib/phoenix/endpoint/cowboy_handler.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/endpoint/cowboy_handler.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/endpoint/cowboy_handler.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.CowboyHandler do
@moduledoc """
The Cowboy adapter for Phoenix.
It implements the required `child_spec/3` function as well
as the handler for the WebSocket transport.
## Custom dispatch options
*NOTE*: This feature depends on the internals of Cowboy 1.0 API
and how it integra... | 34.508475 | 103 | 0.65275 |
2145995e3343090346f89fb7fc3ea675dd86622c | 770 | ex | Elixir | apps/blockchain_web/lib/blockchain_web/application.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/lib/blockchain_web/application.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/lib/blockchain_web/application.ex | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | defmodule BlockchainWeb.Application do
use Application
alias Blockchain.Worker
@worker_name WebWorker
@doc """
Get the application-wide worker's head
"""
def head, do: Worker.head(@worker_name)
@doc """
Get the application-wide worker's chain
"""
def chain, do: Worker.chain(@worker_name)
de... | 22 | 67 | 0.706494 |
2145e7a246cfa921503e0cfb123adcfffc79d71b | 14,724 | ex | Elixir | lib/elixir/lib/task/supervisor.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/elixir/lib/task/supervisor.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervisor.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | defmodule Task.Supervisor do
@moduledoc """
A task supervisor.
This module defines a supervisor which can be used to dynamically
supervise tasks.
A task supervisor is started with no children, often under a
supervisor and a name:
children = [
{Task.Supervisor, name: MyApp.TaskSupervisor}
... | 37.275949 | 97 | 0.691117 |
2146241d25c01784a94ee75733c6714d40ee67df | 2,040 | ex | Elixir | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_list_customers_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_list_customers_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_list_customers_response.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... | 36.428571 | 172 | 0.74951 |
21462438978a14747d8f1b076b07f851ff49f4bd | 784 | exs | Elixir | mix.exs | opie4624/cveslash | 1c051de058de9e1af0a53acfa899fa34205bf304 | [
"MIT"
] | null | null | null | mix.exs | opie4624/cveslash | 1c051de058de9e1af0a53acfa899fa34205bf304 | [
"MIT"
] | null | null | null | mix.exs | opie4624/cveslash | 1c051de058de9e1af0a53acfa899fa34205bf304 | [
"MIT"
] | null | null | null | defmodule Cveupdater.Mixfile do
use Mix.Project
def project do
[app: :cveupdater,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" fo... | 19.6 | 77 | 0.5625 |
214654aa5f3c1e4749adf21eee2b6e37682704e2 | 2,920 | exs | Elixir | test/api/milestone_test.exs | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | test/api/milestone_test.exs | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | test/api/milestone_test.exs | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Api.MilestoneTest do
use ExUnit.Case, async: true
use Mimic
alias ExClubhouse.Support.ResponseBuilder
alias ExClubhouse.Api.Milestone
alias ExClubhouse.Model
alias ExClubhouse.Model.Input
describe "list/1" do
test "succeeds with the right response" do
HTTPoison
|> e... | 23.739837 | 83 | 0.569863 |
2146b408ffbea661357c7597749371ece9cbc0a1 | 777 | ex | Elixir | lib/banking_graph/banking/transactions/interest_payment.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | lib/banking_graph/banking/transactions/interest_payment.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | lib/banking_graph/banking/transactions/interest_payment.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraph.Banking.Transactions.InterestPayment do
@moduledoc false
def build(interest_collection_account_id, loan_account_id, amount, auth_account_id, client_id, branch_id) do
description = "Interest Collection"
transaction_reference = generate_transaction_reference()
[
... | 35.318182 | 137 | 0.719434 |
2146b6962db59315198327e08cf3ced6b6f7a395 | 2,134 | ex | Elixir | lib/exploder.ex | nicklayb/php_assoc_map | 9bf8c8c1e0134552d061365d11490306b28c69ae | [
"MIT"
] | 2 | 2019-01-09T14:50:42.000Z | 2020-10-21T02:33:22.000Z | lib/exploder.ex | nicklayb/php_assoc_map | 9bf8c8c1e0134552d061365d11490306b28c69ae | [
"MIT"
] | 1 | 2018-05-29T03:31:43.000Z | 2018-05-29T03:31:43.000Z | lib/exploder.ex | nicklayb/php_assoc_map | 9bf8c8c1e0134552d061365d11490306b28c69ae | [
"MIT"
] | null | null | null | defmodule PhpAssocMap.Exploder do
@break_line "\n"
@doc """
Indents the whole associative array using either tabs or spaces. Defaults to 2 spaces.
Use explode/2 to specify identation.
Exemples
iex> PhpAssocMap.Exploder.explode("['key'=>['next'=>'value']]")
"[\n 'key'=>[\n 'next'=... | 30.056338 | 91 | 0.604967 |
2146b7035f91e7fca10c527b7e814239aa357b10 | 3,689 | ex | Elixir | lib/usir/conn.ex | usir/usir_ex | 059cc1679dcdc9defcad17a4aac3492a33e529e5 | [
"MIT"
] | null | null | null | lib/usir/conn.ex | usir/usir_ex | 059cc1679dcdc9defcad17a4aac3492a33e529e5 | [
"MIT"
] | null | null | null | lib/usir/conn.ex | usir/usir_ex | 059cc1679dcdc9defcad17a4aac3492a33e529e5 | [
"MIT"
] | null | null | null | defmodule Usir.Conn do
defstruct [format: nil,
backend: nil,
handler: nil,
handler_state: nil]
require Logger
alias Usir.Format
def init(backend, format, handler, handler_opts, protocol_info) do
case handler.init(handler_opts, protocol_info) do
{:ok, state} ->
... | 33.844037 | 119 | 0.604771 |
2146c7b47b3b43a05cec7d6e2e11fdf4664f9ef4 | 373 | ex | Elixir | web/workflows/move_stock_back_from_line_item.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/workflows/move_stock_back_from_line_item.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/workflows/move_stock_back_from_line_item.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Workflow.MoveStockBackFromLineItem do
alias Ecto.Multi
def run(repo, variant, restock_quantity), do: repo.transaction(steps(variant, restock_quantity))
def steps(variant, quantity) do
changeset = Nectar.Variant.restocking_changeset(variant, %{restock_count: quantity})
Multi.new()
|>... | 31.083333 | 98 | 0.766756 |
2146d93bca1755c55415b773cdc995f11a3e9f51 | 1,900 | exs | Elixir | clients/firebase_dynamic_links/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase_dynamic_links/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.358209 | 113 | 0.666842 |
2146f6d3f938afb76e7a5c152f5ab1ca9e54795c | 997 | ex | Elixir | lib/adyen_checkout_ex/model/response_additional_data_billing_address.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/response_additional_data_billing_address.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/response_additional_data_billing_address.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 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 AdyenCheckoutEx.Model.ResponseAdditionalDataBillingAddress do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"billingAddress... | 27.694444 | 91 | 0.707121 |
21470ed9389464a1f70d8c54bb39aeaccf6298bc | 1,669 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__object_tracking_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__object_tracking_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__object_tracking_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.096154 | 168 | 0.753146 |
214713fa4e66e49550c3f9f56518866122b3c33d | 294 | ex | Elixir | web/views/changeset_view.ex | LouisProulx/test-peepchat-backend | 76c6b1a1a31820bcb6c79addaeb85d5f1a0ad47c | [
"MIT"
] | null | null | null | web/views/changeset_view.ex | LouisProulx/test-peepchat-backend | 76c6b1a1a31820bcb6c79addaeb85d5f1a0ad47c | [
"MIT"
] | null | null | null | web/views/changeset_view.ex | LouisProulx/test-peepchat-backend | 76c6b1a1a31820bcb6c79addaeb85d5f1a0ad47c | [
"MIT"
] | null | null | null | defmodule Peepchat.ChangesetView do
use Peepchat.Web, :view
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changeset, &translate_error/1)
end
def render("error.json", %{changeset: changeset}) do
JaSerializer.EctoErrorSerializer.format(changeset)
end
end
| 22.615385 | 65 | 0.768707 |
21472315daee6d9eefa1686ac052ddc0f646a272 | 302 | ex | Elixir | lib/mix/lib/mix/tasks/escript.uninstall.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.uninstall.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.uninstall.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Escript.Uninstall do
use Mix.Task
@shortdoc "Uninstall escripts"
@moduledoc """
Uninstall local escripts:
mix escript.uninstall escript_name
"""
@spec run(OptionParser.argv) :: :ok
def run(argv) do
Mix.Local.Installer.uninstall(:escript, argv)
end
end
| 17.764706 | 49 | 0.701987 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.