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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03a218a701b944f5124e54140efc58d1ea8b9931 | 968 | exs | Elixir | test/ecto_label_tree/postgrex_test.exs | RomanKotov/ecto_ltree | b2863fd31a3304ec07b9c43e09f5c985d8652deb | [
"MIT"
] | 24 | 2018-04-03T11:36:54.000Z | 2021-09-21T09:37:15.000Z | test/ecto_label_tree/postgrex_test.exs | RomanKotov/ecto_ltree | b2863fd31a3304ec07b9c43e09f5c985d8652deb | [
"MIT"
] | 8 | 2019-06-01T13:49:37.000Z | 2022-03-29T04:18:39.000Z | test/ecto_label_tree/postgrex_test.exs | RomanKotov/ecto_ltree | b2863fd31a3304ec07b9c43e09f5c985d8652deb | [
"MIT"
] | 10 | 2019-02-01T16:52:48.000Z | 2022-02-23T03:46:09.000Z | defmodule EctoLtree.PostgrexTest do
use ExUnit.Case
setup do
{:ok, pid} = Postgrex.start_link(EctoLtree.TestRepo.config_postgrex())
{:ok, [pid: pid]}
end
test "insert item", context do
pid = context[:pid]
path = "this.is.the.path"
{:ok, _} = Postgrex.query(pid, "INSERT INTO items (path) VA... | 32.266667 | 88 | 0.609504 |
03a21b2121118aeabea0e974ce909ed612be3519 | 2,015 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload_fedramp_moderate_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload_fedramp_moderate_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload_fedramp_moderate_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.350877 | 219 | 0.778164 |
03a21e38956f759201d1929e098d8a9df8f44a7e | 3,493 | ex | Elixir | bench/lib/datasets/google_message3/benchmark_message3_7.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | bench/lib/datasets/google_message3/benchmark_message3_7.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | bench/lib/datasets/google_message3/benchmark_message3_7.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defmodule Benchmarks.GoogleMessage3.Message11018 do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{}
defstruct []
end
defmodule Benchmarks.GoogleMessage3.Message10800 do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
field10808: String.t(),
... | 26.869231 | 80 | 0.678214 |
03a24cd36186c11f47e14b2946ab50b1b3830e99 | 1,674 | ex | Elixir | lib/screens/route_patterns/route_pattern.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/route_patterns/route_pattern.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/route_patterns/route_pattern.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.RoutePatterns.RoutePattern do
@moduledoc false
alias Screens.RoutePatterns
alias Screens.Routes.Route
alias Screens.Stops.Stop
alias Screens.Trips.Trip
alias Screens.V3Api
defstruct id: nil,
direction_id: nil,
typicality: nil,
route_id: nil,
... | 26.571429 | 93 | 0.55675 |
03a2553644e1270b02a8975946687f1b9c4cc03f | 205 | exs | Elixir | priv/repo/migrations/20180825231845_remove_education_company_in_users.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20180825231845_remove_education_company_in_users.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20180825231845_remove_education_company_in_users.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.RemoveEducationCompanyInUsers do
use Ecto.Migration
def change do
alter table(:users) do
remove(:company)
remove(:education)
end
end
end
| 18.636364 | 73 | 0.726829 |
03a2823397397434dc257f51aaad900f19370312 | 417 | ex | Elixir | lib/glimesh_web/live/user_live/index.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | 1 | 2020-08-02T00:12:28.000Z | 2020-08-02T00:12:28.000Z | lib/glimesh_web/live/user_live/index.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/index.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserLive.Index do
use GlimeshWeb, :live_view
alias Glimesh.Accounts
def mount(_, session, socket) do
users = Accounts.list_users()
# If the viewer is logged in set their locale, otherwise it defaults to English
if session["locale"], do: Gettext.put_locale(session["locale"])
... | 24.529412 | 83 | 0.681055 |
03a2a2bef442792231729a9a1705818636953707 | 562 | ex | Elixir | elixir/roman-numerals/lib/roman_numerals.ex | quatauta/exercism | 8c8a477a83719cbe57630c6a2884d40cc1808149 | [
"MIT"
] | 1 | 2022-01-23T20:34:27.000Z | 2022-01-23T20:34:27.000Z | elixir/roman-numerals/lib/roman_numerals.ex | quatauta/exercism | 8c8a477a83719cbe57630c6a2884d40cc1808149 | [
"MIT"
] | null | null | null | elixir/roman-numerals/lib/roman_numerals.ex | quatauta/exercism | 8c8a477a83719cbe57630c6a2884d40cc1808149 | [
"MIT"
] | null | null | null | defmodule RomanNumerals do
@symbols [
[1000, "M"],
[900, "CM"],
[500, "D"],
[400, "CD"],
[100, "C"],
[90, "XC"],
[50, "L"],
[40, "XL"],
[10, "X"],
[9, "IX"],
[5, "V"],
[4, "IV"],
[1, "I"]
]
@moduledoc """
Convert the number to a roman number.
"""
@spec nu... | 19.37931 | 87 | 0.491103 |
03a2ad9ab90d93b68d88dbe9468cb691198c7d82 | 2,071 | ex | Elixir | lib/ex_binance/public.ex | buurzx/ex_binance | 95c273bc2b04c8c22eda26b5905f81ae9646577c | [
"MIT"
] | null | null | null | lib/ex_binance/public.ex | buurzx/ex_binance | 95c273bc2b04c8c22eda26b5905f81ae9646577c | [
"MIT"
] | null | null | null | lib/ex_binance/public.ex | buurzx/ex_binance | 95c273bc2b04c8c22eda26b5905f81ae9646577c | [
"MIT"
] | null | null | null | defmodule ExBinance.Public do
import ExBinance.Rest.HTTPClient, only: [get: 2]
def ping, do: get("/api/v1/ping", %{})
def server_time do
with {:ok, %{"serverTime" => time}} <- get("/api/v1/time", %{}) do
{:ok, time}
end
end
def exchange_info do
with {:ok, data} <- get("/fapi/v1/exchangeIn... | 27.986486 | 97 | 0.582327 |
03a2c6c528d8ebeec1d05243d31ea77ff980927a | 412 | ex | Elixir | apps/glayu_core/lib/glayu/url.ex | pmartinezalvarez/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 51 | 2017-05-21T07:27:34.000Z | 2017-11-30T04:34:17.000Z | apps/glayu_core/lib/glayu/url.ex | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 17 | 2017-06-14T18:40:44.000Z | 2017-08-20T16:14:58.000Z | apps/glayu_core/lib/glayu/url.ex | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 5 | 2017-06-04T19:55:56.000Z | 2017-07-29T16:18:58.000Z | defmodule Glayu.URL do
@root "/"
@index "index"
@html_ext ".html"
def root() do
@root
end
def home() do
Path.join(@root, @index <> @html_ext)
end
def path(:category, keys) do
Path.join([@root] ++ keys ++ [@index <> @html_ext])
end
def path(_, premalink) do
{file, partial} = List... | 17.166667 | 56 | 0.57767 |
03a30ed47e95b9268c6066a47158016982dbd4db | 1,807 | ex | Elixir | lib/exploring_mars.ex | pcstl/swap-challenge | bc0a84773cd3cb0b48eb23d5dbda47e9d99b4c2c | [
"BSD-3-Clause"
] | null | null | null | lib/exploring_mars.ex | pcstl/swap-challenge | bc0a84773cd3cb0b48eb23d5dbda47e9d99b4c2c | [
"BSD-3-Clause"
] | null | null | null | lib/exploring_mars.ex | pcstl/swap-challenge | bc0a84773cd3cb0b48eb23d5dbda47e9d99b4c2c | [
"BSD-3-Clause"
] | null | null | null | defmodule ExploringMars do
@moduledoc """
Start reading here.
The program defined in this project can be ran in three ways:
* It can be used as a CLI application
* It can be used interactively, reading the problem statement
from files and running the program specification
* Or it can be used interacti... | 48.837838 | 79 | 0.768124 |
03a323e791a5af36e45563d705360291713e6e37 | 61 | ex | Elixir | web/views/page_view.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | web/views/page_view.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | 4 | 2015-12-18T20:35:49.000Z | 2015-12-18T20:36:43.000Z | web/views/page_view.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | defmodule Clueless.PageView do
use Clueless.Web, :view
end
| 15.25 | 30 | 0.786885 |
03a3397be6df8ca248e6a9be7e8eab8810d42a2a | 772 | ex | Elixir | lib/data/color.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/data/color.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/data/color.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Data.Color do
@moduledoc """
Static color data
"""
@doc """
Valid color codes
"""
def options() do
[
"black",
"red",
"green",
"yellow",
"blue",
"magenta",
"cyan",
"white"
]
end
@doc """
Valid map color codes
"""
def map_colors()... | 13.310345 | 68 | 0.426166 |
03a350d61ea2142999775dcf4b287d647d256c49 | 933 | exs | Elixir | priv/repo/migrations/20180310145608_create_posts.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T15:46:49.000Z | 2021-01-13T15:46:49.000Z | priv/repo/migrations/20180310145608_create_posts.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T16:42:24.000Z | 2021-01-13T16:42:24.000Z | priv/repo/migrations/20180310145608_create_posts.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | null | null | null | defmodule Litelist.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :type, :string
add :title, :string
add :description, :text
add :price, :float
add :slug, :string
add :url, :string
add :location, :string
add :contact_i... | 26.657143 | 70 | 0.633441 |
03a357ad705182b810bf3b24efc77344f9d21391 | 279 | ex | Elixir | lib/live_beats/repo.ex | dsdshcym/live_beats | 554c97fde490b75cf1868e152a73f4066d8470b6 | [
"MIT"
] | 547 | 2022-02-02T14:11:31.000Z | 2022-03-31T12:34:03.000Z | lib/live_beats/repo.ex | dsdshcym/live_beats | 554c97fde490b75cf1868e152a73f4066d8470b6 | [
"MIT"
] | 24 | 2022-02-02T14:11:36.000Z | 2022-02-23T20:14:43.000Z | lib/live_beats/repo.ex | dsdshcym/live_beats | 554c97fde490b75cf1868e152a73f4066d8470b6 | [
"MIT"
] | 63 | 2022-02-02T15:59:36.000Z | 2022-03-23T05:30:43.000Z | defmodule LiveBeats.Repo do
use Ecto.Repo,
otp_app: :live_beats,
adapter: Ecto.Adapters.Postgres
def replica, do: LiveBeats.config([:replica])
end
defmodule LiveBeats.ReplicaRepo do
use Ecto.Repo,
otp_app: :live_beats,
adapter: Ecto.Adapters.Postgres
end
| 19.928571 | 47 | 0.734767 |
03a357d12362106d2a0cb704603f3955216578d4 | 1,442 | ex | Elixir | lib/ellsberg_paradox_simple/participant.ex | xeejp/xee_ellsberg_paradox_simple | 81bc0c37146e8d04c6c9c2bbb40aec41c9d77ef0 | [
"MIT"
] | null | null | null | lib/ellsberg_paradox_simple/participant.ex | xeejp/xee_ellsberg_paradox_simple | 81bc0c37146e8d04c6c9c2bbb40aec41c9d77ef0 | [
"MIT"
] | null | null | null | lib/ellsberg_paradox_simple/participant.ex | xeejp/xee_ellsberg_paradox_simple | 81bc0c37146e8d04c6c9c2bbb40aec41c9d77ef0 | [
"MIT"
] | null | null | null | defmodule EllsbergParadoxSimple.Participant do
alias EllsbergParadoxSimple.Actions
require Logger
# Actions
def fetch_contents(data, id) do
# if data.page == "waiting", do: data = data |> put_in([:participants, id, :active], true)
Actions.update_participant_contents(data, id)
end
def next_question... | 32.772727 | 101 | 0.608183 |
03a3725f9598b7339fea347ab2fda60572b046f4 | 1,024 | exs | Elixir | test/asciinema/vt_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | test/asciinema/vt_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | test/asciinema/vt_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.VtTest do
use ExUnit.Case
alias Asciinema.Vt
@moduletag :vt
test "Vt.Worker" do
{:ok, pid} = Vt.Worker.start_link(nil)
assert Vt.Worker.new(pid, 8, 3) == :ok
assert Vt.Worker.feed(pid, "foobar\r\n") == :ok
assert Vt.Worker.feed(pid, "baz") == :ok
assert Vt.Worker.feed(... | 26.947368 | 95 | 0.539063 |
03a3b182a2088ea2709fe3397d9569ee599911e0 | 943 | ex | Elixir | test/support/channel_case.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | defmodule Chankins.Web.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 ... | 24.815789 | 70 | 0.715801 |
03a3b4d9f85c14755e3de02975d317e8a0a98731 | 2,991 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__request_logging_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__request_logging_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__request_logging_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... | 57.519231 | 677 | 0.775995 |
03a3bd2314713ce3b7e7b2c74a69e30790e1b027 | 10,697 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/section_style.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/section_style.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/section_style.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.955446 | 176 | 0.718332 |
03a3d8a1e7fd98dd6cc3d1c651d4658f7f2b0e75 | 1,488 | ex | Elixir | lib/xdr/transactions/fee_bump_inner_tx.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/fee_bump_inner_tx.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/fee_bump_inner_tx.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.FeeBumpInnerTx do
@moduledoc """
Representation of Stellar `FeeBumpInnerTx` type.
"""
alias StellarBase.XDR.{EnvelopeType, TransactionV1Envelope}
@behaviour XDR.Declaration
@arms [ENVELOPE_TYPE_TX: TransactionV1Envelope]
@type envelope :: TransactionV1Envelope.t()
@type t :... | 24.8 | 75 | 0.66129 |
03a3ee3666b656d05c99a03fb41b6a2cc21f5462 | 6,923 | ex | Elixir | mpc-wallet/demo/server/lib/mpcwallet.ex | acatinon/nash-rust | f2350bbd99a3193cadf95ef62d7e62aca9145ec2 | [
"MIT"
] | 4 | 2020-10-30T00:15:51.000Z | 2021-07-05T09:14:58.000Z | mpc-wallet/demo/server/lib/mpcwallet.ex | acatinon/nash-rust | f2350bbd99a3193cadf95ef62d7e62aca9145ec2 | [
"MIT"
] | 33 | 2020-09-16T22:43:27.000Z | 2021-11-11T20:24:35.000Z | mpc-wallet/demo/server/lib/mpcwallet.ex | acatinon/nash-rust | f2350bbd99a3193cadf95ef62d7e62aca9145ec2 | [
"MIT"
] | 8 | 2020-09-18T06:45:35.000Z | 2021-03-27T19:53:15.000Z | defmodule Server.MPCwallet do
@moduledoc """
Library for the server part of the MPC-based API keys.
Glossary of terms:
- MPC: Multi-party computation. A method to have multiple parties compute a function while keeping their inputs private. For our case, the function is creating a digital signature and the ... | 30.364035 | 229 | 0.707352 |
03a400a3b791f3331083c8afd6580ba3c8c0f61c | 7,922 | exs | Elixir | test/ack_test.exs | angrycandy/elixir-mllp | f3b5988c0d9f2fefaca16890b13f8c08db2ce382 | [
"Apache-2.0"
] | 22 | 2018-10-08T18:37:23.000Z | 2022-02-22T13:53:38.000Z | test/ack_test.exs | angrycandy/elixir-mllp | f3b5988c0d9f2fefaca16890b13f8c08db2ce382 | [
"Apache-2.0"
] | 27 | 2020-03-03T16:29:22.000Z | 2022-03-16T20:09:59.000Z | test/ack_test.exs | angrycandy/elixir-mllp | f3b5988c0d9f2fefaca16890b13f8c08db2ce382 | [
"Apache-2.0"
] | 10 | 2019-03-29T04:19:59.000Z | 2021-12-13T17:39:08.000Z | defmodule AckTest do
use ExUnit.Case
alias MLLP.Ack
doctest Ack
import HL7.Query
describe "get_ack_for_message" do
test "for an invalid HL7 message returns a valid AR ack message" do
bad_message =
"Bad Message"
|> HL7.Message.new()
ack = Ack.get_ack_for_message(bad_message, "... | 34.745614 | 150 | 0.673441 |
03a42c0253fd43a6e0b627a24eb70175d72b727b | 1,129 | ex | Elixir | test/support/channel_case.ex | yosefbennywidyo/phoenix_app | 04c49fc324e137589006ada3a6cb414c466be86d | [
"MIT"
] | 47 | 2020-03-04T00:24:26.000Z | 2022-01-14T23:34:52.000Z | test/support/channel_case.ex | yosefbennywidyo/phoenix_app | 04c49fc324e137589006ada3a6cb414c466be86d | [
"MIT"
] | 2 | 2020-06-09T22:25:06.000Z | 2020-06-30T21:18:37.000Z | test_projects/phoenix_app/test/support/channel_case.ex | qhwa/dockerize | d930f06da89a686961da7a5b5bdadb4c9b01ec32 | [
"MIT"
] | null | null | null | defmodule PhoenixAppWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interact... | 27.536585 | 72 | 0.731621 |
03a44acf9d018c5fcb256454c3e53586c9d9ee7f | 912 | ex | Elixir | lib/data_generator/application.ex | UrbanOS-Examples/data-generator | dcf3fb19fbb04809a73b52aac12e564a7749e71f | [
"Apache-2.0"
] | null | null | null | lib/data_generator/application.ex | UrbanOS-Examples/data-generator | dcf3fb19fbb04809a73b52aac12e564a7749e71f | [
"Apache-2.0"
] | null | null | null | lib/data_generator/application.ex | UrbanOS-Examples/data-generator | dcf3fb19fbb04809a73b52aac12e564a7749e71f | [
"Apache-2.0"
] | null | null | null | defmodule DataGenerator.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application star... | 30.4 | 72 | 0.73136 |
03a4565006bead8166bc57b07f0b377d398fdc63 | 993 | ex | Elixir | lib/tarkus/application.ex | ramonsantos/tarkus | fe59b810b448824e149c19c7568bd284aef6407a | [
"MIT"
] | 1 | 2020-11-07T01:59:11.000Z | 2020-11-07T01:59:11.000Z | lib/tarkus/application.ex | ramonsantos/tarkus | fe59b810b448824e149c19c7568bd284aef6407a | [
"MIT"
] | null | null | null | lib/tarkus/application.ex | ramonsantos/tarkus | fe59b810b448824e149c19c7568bd284aef6407a | [
"MIT"
] | null | null | null | defmodule Tarkus.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 endpoint when the app... | 32.032258 | 84 | 0.716012 |
03a46345cb93439205f4efdd608b3372bff0dc37 | 1,163 | exs | Elixir | clients/cloud_functions/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.CloudFunctions.V1.Mixfile do
use Mix.Project
@version "0.2.0"
def project() do
[
app: :google_api_cloud_functions,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
... | 23.734694 | 115 | 0.602752 |
03a476c07e74f666f5de3ece9b407b8cb647f4a3 | 483 | ex | Elixir | lib/elixir_jobs_web/plugs/guardian_pipeline.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | lib/elixir_jobs_web/plugs/guardian_pipeline.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | lib/elixir_jobs_web/plugs/guardian_pipeline.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | defmodule ElixirJobsWeb.Plugs.GuardianPipeline do
@moduledoc """
Main pipeline for Guardian set-up on each request.
"""
use Guardian.Plug.Pipeline, otp_app: :elixir_jobs
alias ElixirJobsWeb.Plugs.CurrentUser
plug Guardian.Plug.Pipeline,
module: ElixirJobsWeb.Guardian,
error_handler: ElixirJobsWeb... | 24.15 | 52 | 0.784679 |
03a477a6f45da0078b396ee7201d199aebdb41db | 361 | exs | Elixir | priv/repo/seeds.exs | janeek1995/AiMiddleware | 0ca3b4d5dd89ad80c46a5e8f18bb2615ed809bd3 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | janeek1995/AiMiddleware | 0ca3b4d5dd89ad80c46a5e8f18bb2615ed809bd3 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | janeek1995/AiMiddleware | 0ca3b4d5dd89ad80c46a5e8f18bb2615ed809bd3 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# AiMiddleware.Repo.insert!(%AiMiddleware.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as... | 30.083333 | 61 | 0.714681 |
03a486c91ba14cbca12ad541af79af917c6b4c45 | 13,234 | ex | Elixir | lib/phoenix/endpoint/supervisor.ex | blutack/phoenix | e6d19272edfd980745d0a31a9217312580959eb9 | [
"MIT"
] | 1 | 2021-06-26T03:57:48.000Z | 2021-06-26T03:57:48.000Z | lib/phoenix/endpoint/supervisor.ex | blutack/phoenix | e6d19272edfd980745d0a31a9217312580959eb9 | [
"MIT"
] | 1 | 2020-04-28T21:39:07.000Z | 2020-04-28T21:39:07.000Z | lib/phoenix/endpoint/supervisor.ex | blutack/phoenix | e6d19272edfd980745d0a31a9217312580959eb9 | [
"MIT"
] | 1 | 2021-06-22T08:06:06.000Z | 2021-06-22T08:06:06.000Z | defmodule Phoenix.Endpoint.Supervisor do
# This module contains the logic used by most functions in Phoenix.Endpoint
# as well the supervisor for sockets, adapters, watchers, etc.
@moduledoc false
require Logger
use Supervisor
@doc """
Starts the endpoint supervision tree.
"""
def start_link(otp_app... | 29.02193 | 110 | 0.655509 |
03a488d22c504911ec701d19c7df7d1aa516abf3 | 131 | exs | Elixir | test/test_helper.exs | kddeisz/pro-publica | 4d41de8d2873e6aa639378def3df7f736a36ff93 | [
"MIT"
] | null | null | null | test/test_helper.exs | kddeisz/pro-publica | 4d41de8d2873e6aa639378def3df7f736a36ff93 | [
"MIT"
] | null | null | null | test/test_helper.exs | kddeisz/pro-publica | 4d41de8d2873e6aa639378def3df7f736a36ff93 | [
"MIT"
] | null | null | null | File.exists?(".token") && !System.get_env("TOKEN") &&
System.put_env("TOKEN", File.read!(".token") |> String.trim)
ExUnit.start
| 26.2 | 62 | 0.648855 |
03a48a2028cdd1e792256ae8ab80c162dcbbfe7f | 8,023 | ex | Elixir | lib/kafka_ex/server_0_p_9_p_0.ex | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | lib/kafka_ex/server_0_p_9_p_0.ex | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | lib/kafka_ex/server_0_p_9_p_0.ex | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | defmodule KafkaEx.Server0P9P0 do
@moduledoc """
Implements KafkaEx.Server behaviors for Kafka >= 0.9.0 < 0.10.1 API.
"""
# these functions aren't implemented for 0.9.0
@dialyzer [
{:nowarn_function, kafka_server_create_topics: 3},
{:nowarn_function, kafka_server_delete_topics: 3},
{:nowarn_fun... | 27.857639 | 94 | 0.690764 |
03a4a65afd732da42096e6af2652805fc8a90020 | 1,323 | exs | Elixir | config/config.exs | abadongutierrez/ecto_test | b3ad37c0e157117fd1b3b340452de4939589f605 | [
"Apache-2.0"
] | null | null | null | config/config.exs | abadongutierrez/ecto_test | b3ad37c0e157117fd1b3b340452de4939589f605 | [
"Apache-2.0"
] | null | null | null | config/config.exs | abadongutierrez/ecto_test | b3ad37c0e157117fd1b3b340452de4939589f605 | [
"Apache-2.0"
] | 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... | 33.075 | 73 | 0.749811 |
03a4b03ade417daec71232b2277c946242b4bfd5 | 1,480 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.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... | 34.418605 | 115 | 0.758784 |
03a4d1dc64c3f480c9df461a40fb15a05f4a9218 | 5,313 | ex | Elixir | implementations/elixir/lib/ockam/vault.ex | hollyfeld/ockam | 10a618b60b5b913821bfa8df3ad9693a70913ace | [
"Apache-2.0"
] | 1 | 2021-01-02T11:42:16.000Z | 2021-01-02T11:42:16.000Z | implementations/elixir/lib/ockam/vault.ex | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | implementations/elixir/lib/ockam/vault.ex | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Vault do
@moduledoc """
"""
alias Ockam.Vault.NIF
defmodule Secret do
@moduledoc false
defstruct [:reference]
@opaque t :: %__MODULE__{}
end
defmodule SecretAttributes do
@moduledoc false
defstruct ty: :buffer, length: 0, persistence: :ephemeral, purpose: :key_agreeme... | 35.18543 | 98 | 0.685488 |
03a4d8416a2bd0d282fdec6334010cc92cbde9b9 | 12,216 | ex | Elixir | lib/stripe/connect/account.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/account.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/account.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Account do
@moduledoc """
Work with Stripe Connect account objects.
You can:
- Retrieve your own account
- Retrieve an account with a specified `id`
This module does not yet support managed accounts.
Stripe API reference: https://stripe.com/docs/api#account
"""
use Stripe.Entity
... | 33.56044 | 98 | 0.576785 |
03a4e39069962f82ce168cfcff25e80ef148f5e6 | 6,257 | exs | Elixir | test/integration/build_test.exs | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 32 | 2017-12-26T18:08:41.000Z | 2022-03-24T21:18:11.000Z | test/integration/build_test.exs | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 4 | 2018-01-17T11:56:08.000Z | 2022-03-24T21:16:27.000Z | test/integration/build_test.exs | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 7 | 2017-12-29T13:06:31.000Z | 2022-03-24T05:56:56.000Z | defmodule Construct.Integration.BuildTest do
use Construct.TestCase
test "use/2 creates make/0,1,2 make!/0,1,2 and cast/1,2" do
module = create_construct do
field :key
end
module_name = name(module)
Enum.each(0..2, fn(arity) ->
assert function_exported?(module_name, :make, arity)
... | 29.238318 | 114 | 0.655746 |
03a4e88862c7d689464e8bca77b0d88b819487e8 | 147 | exs | Elixir | test/reverse_iap_test.exs | bbhoss/reverse_iap | 313daf3a4a30a4bb52a137209132336e0ab931b7 | [
"Apache-2.0"
] | 8 | 2020-08-10T10:05:15.000Z | 2021-04-21T07:25:04.000Z | test/reverse_iap_test.exs | bbhoss/reverse_iap | 313daf3a4a30a4bb52a137209132336e0ab931b7 | [
"Apache-2.0"
] | null | null | null | test/reverse_iap_test.exs | bbhoss/reverse_iap | 313daf3a4a30a4bb52a137209132336e0ab931b7 | [
"Apache-2.0"
] | 1 | 2021-04-20T19:00:15.000Z | 2021-04-20T19:00:15.000Z | defmodule ReverseIapTest do
use ExUnit.Case
doctest ReverseIap
test "greets the world" do
assert ReverseIap.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
03a4f2a8c962545ae8e926a6aac8b0c1cf9295cf | 1,003 | exs | Elixir | test/etdpay/users/create_test.exs | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | test/etdpay/users/create_test.exs | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | test/etdpay/users/create_test.exs | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | defmodule Etdpay.Users.CreateTest do
use Etdpay.DataCase, async: true
alias Etdpay.User
alias Etdpay.Users.Create
describe "call/1" do
test "when all params are valid, returns an user" do
params = %{
name: "Fulano De Tal",
password: "12345678",
nickname: "fulano",
ema... | 23.325581 | 71 | 0.581256 |
03a57217c6fbe70ce9ab0846c65c8749951eda70 | 2,226 | ex | Elixir | ex_graphs_book/apps/native_graph/lib/native_graph/serializers/dot.ex | NickMcG/ExGraphsBook | 89276d374dd21cc4605a4b1b5a05b177723680c2 | [
"Apache-2.0"
] | null | null | null | ex_graphs_book/apps/native_graph/lib/native_graph/serializers/dot.ex | NickMcG/ExGraphsBook | 89276d374dd21cc4605a4b1b5a05b177723680c2 | [
"Apache-2.0"
] | null | null | null | ex_graphs_book/apps/native_graph/lib/native_graph/serializers/dot.ex | NickMcG/ExGraphsBook | 89276d374dd21cc4605a4b1b5a05b177723680c2 | [
"Apache-2.0"
] | null | null | null | defmodule NativeGraph.Serializers.DOT do
use NativeGraph.Serializer
alias NativeGraph.Serializer
def serialize(%Graph{type: type} = g) do
type = if type == :directed, do: "digraph", else: "graph"
result = "strict #{type} {\n" <> serialize_nodes(g) <> serialize_edges(g) <> "}\n"
{:ok, result}
end
... | 31.8 | 116 | 0.535939 |
03a5d8c37d30f1c90b985b6529ef6012e4e64302 | 241 | ex | Elixir | lib/ptolemy/application.ex | D-Town44/ptolemy | 5764c48f05e68bc6f7bc7b7af76fc640845b662e | [
"MIT"
] | null | null | null | lib/ptolemy/application.ex | D-Town44/ptolemy | 5764c48f05e68bc6f7bc7b7af76fc640845b662e | [
"MIT"
] | null | null | null | lib/ptolemy/application.ex | D-Town44/ptolemy | 5764c48f05e68bc6f7bc7b7af76fc640845b662e | [
"MIT"
] | null | null | null | defmodule Ptolemy.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = []
opts = [strategy: :one_for_one, name: Ptolemy.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 17.214286 | 63 | 0.692946 |
03a604bbc1e2adafe4d9faba016b45d3aa753ebb | 7,881 | exs | Elixir | test/prometheus_parser_test.exs | Logflare/turnio-prometheus-parser | 588e72e3779fb78621a008a81ee5426909145f89 | [
"Apache-2.0"
] | null | null | null | test/prometheus_parser_test.exs | Logflare/turnio-prometheus-parser | 588e72e3779fb78621a008a81ee5426909145f89 | [
"Apache-2.0"
] | null | null | null | test/prometheus_parser_test.exs | Logflare/turnio-prometheus-parser | 588e72e3779fb78621a008a81ee5426909145f89 | [
"Apache-2.0"
] | null | null | null | defmodule PrometheusParserTest do
use ExUnit.Case
import PrometheusParser
test "parse garbage" do
assert parse("blurp") == {:error, "Unsupported syntax: \"blurp\""}
end
test "parse comment" do
assert parse("# Some documenting text") ==
{:ok,
%PrometheusParser.Line{
... | 32.974895 | 156 | 0.501332 |
03a68f9562ada7bd325b68b64d91c44b864e0e4a | 4,514 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_entity_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_entity_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_entity_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 55.728395 | 436 | 0.72397 |
03a6b0438b7f7e7992ce022e573dd29d8bf83705 | 881 | ex | Elixir | lib/anchore_engine_api_server/model/image_reference.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/image_reference.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/image_reference.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule AnchoreEngineAPIServer.Model.ImageReference do
@moduledoc """
A summary of an image identity, including digest, id (if available), and any tag... | 25.911765 | 128 | 0.713961 |
03a6b36de74e1bfaea82a694d2e3d67b87568bd3 | 877 | ex | Elixir | deps/phoenix_live_reload/lib/phoenix_live_reload/channel.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/phoenix_live_reload/lib/phoenix_live_reload/channel.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/phoenix_live_reload/lib/phoenix_live_reload/channel.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveReload.Channel do
@moduledoc """
Phoenix's live-reload channel
"""
use Phoenix.Channel
def join("phoenix:live_reload", _msg, socket) do
{:ok, _} = Application.ensure_all_started(:phoenix_live_reload)
patterns = socket.endpoint.config(:live_reload)[:patterns]
:fs.subscribe()... | 26.575758 | 72 | 0.677309 |
03a6ca831d9ceb7adc40db32432331661508c490 | 7,148 | exs | Elixir | test/unit/datatypes/generic_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/datatypes/generic_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/datatypes/generic_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.Literal.GenericTest do
use RDF.Test.Case
alias RDF.Literal
alias RDF.Literal.Generic
@valid %{
# input => { value , datatype }
"foo" => { "foo" , "http://example.com/datatype" },
}
describe "new" do
test "with value and datatype" do
Enum.each @valid, fn {input, {value, d... | 35.919598 | 105 | 0.608702 |
03a707c13483fb5f5e718792040f54c8d0058caa | 1,757 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_set_parameter_action.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_set_parameter_action.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_set_parameter_action.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... | 31.945455 | 118 | 0.738759 |
03a70920818f1760bdf1a41af2db35629e8378f5 | 1,658 | ex | Elixir | lib/changelog/buffer/buffer.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog/buffer/buffer.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog/buffer/buffer.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | defmodule Changelog.Buffer do
alias Changelog.NewsItem
alias Changelog.Buffer.{Client, Content}
@shared ~w(506b005149bbd8223400006b 5d27885cb3e9832ca87111a8)
@afk ~w(5af9b7a28bae46d01ead92d3)
@brainscience ~w(5d49c7410eb4bb4992040a42)
@changelog ~w(4f3ad7c8512f7ef962000004)
@foundersta... | 36.043478 | 80 | 0.698432 |
03a70e482aa52b8bbb455fbc595cee9ec77da2ed | 2,819 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/memberships_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/memberships_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/memberships_details.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.046875 | 228 | 0.740688 |
03a71bf487d98979c67c6cfd7061205f8f206369 | 1,529 | exs | Elixir | test/cocktail/span_test.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 117 | 2017-09-09T00:02:32.000Z | 2022-02-10T15:36:28.000Z | test/cocktail/span_test.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 193 | 2017-09-09T22:49:18.000Z | 2022-03-30T13:05:25.000Z | test/cocktail/span_test.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 20 | 2018-01-04T14:58:42.000Z | 2021-11-25T13:59:10.000Z | defmodule Cocktail.SpanTest do
use ExUnit.Case
alias Cocktail.Span
doctest Cocktail.Span, import: true
test "contains" do
span1 = Span.new(~N[2017-09-09 09:00:00], ~N[2017-09-09 12:00:00])
span2 = Span.new(~N[2017-09-09 10:00:00], ~N[2017-09-09 11:00:00])
assert Span.overlap_mode(span1, span2) =... | 30.58 | 70 | 0.64552 |
03a7255f715b5eaa3aa5f408b61a27f8c54f775b | 9,666 | exs | Elixir | test/ecto/migrator_test.exs | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | jeregrine/ecto | 98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.MigratorTest do
use ExUnit.Case
import Support.FileHelpers
import Ecto.Migrator
import ExUnit.CaptureLog
alias Ecto.TestRepo
alias Ecto.Migration.SchemaMigration
defmodule Migration do
use Ecto.Migration
def up do
execute "up"
end
def down do
execute "down"
... | 28.682493 | 113 | 0.669874 |
03a729b20677a63060a097d65d4d7c3aabb50e35 | 12,970 | exs | Elixir | test/burox_test.exs | erickueen/burox | ca750675d2b654cf7804f6a403780db950a1c42e | [
"MIT"
] | 14 | 2018-03-21T18:03:14.000Z | 2022-01-23T05:21:57.000Z | test/burox_test.exs | erickueen/burox | ca750675d2b654cf7804f6a403780db950a1c42e | [
"MIT"
] | 11 | 2018-03-06T21:35:17.000Z | 2019-03-28T21:38:34.000Z | test/burox_test.exs | erickueen/burox | ca750675d2b654cf7804f6a403780db950a1c42e | [
"MIT"
] | 10 | 2018-02-26T19:41:08.000Z | 2020-03-19T18:58:41.000Z | defmodule BuroxTest do
use ExUnit.Case
import Mox
alias Burox.Request
alias Burox.Request.Persona
alias Burox.Request.Direccion
@valid_person_data %Request{
persona: %Persona{
apellido_paterno: "MENDEZ",
apellido_materno: "GONZALEZ",
primer_nombre: "ANTUANET",
rfc: "MEGA510503R... | 45.034722 | 833 | 0.5633 |
03a736f9f5265997b840037741e34c43d4b5b1cc | 3,479 | exs | Elixir | test/logger_logstash_backend_test.exs | otherchris/logger_logstash_backend | f1eaf05468d4dc9af43d58f398a15e02d0b6af76 | [
"Apache-2.0"
] | null | null | null | test/logger_logstash_backend_test.exs | otherchris/logger_logstash_backend | f1eaf05468d4dc9af43d58f398a15e02d0b6af76 | [
"Apache-2.0"
] | null | null | null | test/logger_logstash_backend_test.exs | otherchris/logger_logstash_backend | f1eaf05468d4dc9af43d58f398a15e02d0b6af76 | [
"Apache-2.0"
] | null | null | null | ################################################################################
# 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 with the License.
# You may obtain a copy of the License at
#
# ... | 27.611111 | 80 | 0.579477 |
03a7a9a4968a83050937180d763d11615e98c909 | 220 | ex | Elixir | lib/tidy/report.ex | IanLuites/tidy | 8427986dd0261139a8e25a6fb6f9a938608500c6 | [
"MIT"
] | null | null | null | lib/tidy/report.ex | IanLuites/tidy | 8427986dd0261139a8e25a6fb6f9a938608500c6 | [
"MIT"
] | 1 | 2020-09-02T10:03:53.000Z | 2020-09-02T10:03:53.000Z | lib/tidy/report.ex | IanLuites/tidy | 8427986dd0261139a8e25a6fb6f9a938608500c6 | [
"MIT"
] | 1 | 2020-09-01T16:20:38.000Z | 2020-09-01T16:20:38.000Z | defmodule Tidy.Report.Errors do
defstruct module: [],
function: %{}
end
defmodule Tidy.Report do
@moduledoc """
"""
defstruct [
:module,
:reference,
errors: %Tidy.Report.Errors{}
]
end
| 14.666667 | 33 | 0.6 |
03a7b9fe7b4e528744c24094cdfb2fb2aff9d260 | 970 | ex | Elixir | dev/market/lib/market.ex | miniguez/elixirmarket | e8ef1fcd062abdad754a017bfd58fa160f8fed44 | [
"Apache-2.0"
] | null | null | null | dev/market/lib/market.ex | miniguez/elixirmarket | e8ef1fcd062abdad754a017bfd58fa160f8fed44 | [
"Apache-2.0"
] | null | null | null | dev/market/lib/market.ex | miniguez/elixirmarket | e8ef1fcd062abdad754a017bfd58fa160f8fed44 | [
"Apache-2.0"
] | null | null | null | defmodule Market do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Market.End... | 31.290323 | 71 | 0.709278 |
03a7bc22313ee70d39ba83044292258681d0aaf8 | 12,458 | ex | Elixir | lib/statix.ex | dnlserrano/statix | 00c9d690f41847cab8ad5e70f28e501f98035797 | [
"0BSD"
] | 255 | 2015-05-14T13:39:57.000Z | 2022-03-02T14:50:33.000Z | lib/statix.ex | dnlserrano/statix | 00c9d690f41847cab8ad5e70f28e501f98035797 | [
"0BSD"
] | 47 | 2015-05-17T13:14:13.000Z | 2021-07-16T15:07:52.000Z | lib/statix.ex | dnlserrano/statix | 00c9d690f41847cab8ad5e70f28e501f98035797 | [
"0BSD"
] | 68 | 2015-05-16T15:30:04.000Z | 2022-02-02T16:29:39.000Z | defmodule Statix do
@moduledoc """
Writer for [StatsD](https://github.com/etsy/statsd)-compatible servers.
To get started with Statix, you have to create a module that calls `use
Statix`, like this:
defmodule MyApp.Statix do
use Statix
end
This will make `MyApp.Statix` a Statix connecti... | 27.62306 | 179 | 0.628672 |
03a7d4d5dd4d626d97e662a78230e39524ed8a3a | 2,641 | ex | Elixir | test/support/api.ex | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/support/api.ex | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/support/api.ex | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | defmodule MongoosePush.Support.API do
alias HTTPoison.Response
def sample_notification(service) do
%{
:service => service,
:alert => %{
:title => "title value",
:body => "body value",
:click_action => "click.action",
:tag => "tag value"
}
}
end
def sam... | 23.792793 | 73 | 0.563044 |
03a7f86dfd7bfcc5c05054d7b603471dbfc9f9ff | 191 | ex | Elixir | apps/emporium_api/modules/mod_hello/controllers/hello_controller.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/modules/mod_hello/controllers/hello_controller.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/modules/mod_hello/controllers/hello_controller.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | defmodule Emporium.HelloController do
use EmporiumApi.Web, :controller
def index(conn, _params) do
render conn, "index.html", layout: {Emporium.HelloLayoutView, "app.html"}
end
end | 27.285714 | 77 | 0.748691 |
03a820e9b7779c156985f336972fe42761b59de2 | 1,822 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/resource_record.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/resource_record.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/resource_record.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 ... | 34.377358 | 170 | 0.705818 |
03a84b29499cd94b5cfe65b8e821f461db7c5413 | 3,034 | exs | Elixir | apps/ello_v2/test/controllers/manage/activity_count_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_v2/test/controllers/manage/activity_count_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_v2/test/controllers/manage/activity_count_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.V2.Manage.ActivityCountControllerTest do
use Ello.V2.ConnCase
setup %{conn: conn} do
Ecto.Adapters.SQL.Sandbox.mode(Ello.Core.Repo, {:shared, self()})
archer = Script.insert(:archer)
brand = Factory.insert(:user, username: "yolo")
staff = Factory.insert(:user, %{is_staff: true})
... | 46.676923 | 132 | 0.701055 |
03a85cfe240d1fadd70217583b334bea5bc557ee | 2,588 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_return_line_item.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/orders_custom_batch_request_entry_return_line_item.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/orders_custom_batch_request_entry_return_line_item.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... | 42.42623 | 456 | 0.710201 |
03a86181728cfb9dbb98f6c6cf88562ba6d0a269 | 880 | exs | Elixir | mix.exs | papercups-io/ex_papercups | 319c3c923c9015e8f3ea5e131581643a0978a3db | [
"MIT"
] | null | null | null | mix.exs | papercups-io/ex_papercups | 319c3c923c9015e8f3ea5e131581643a0978a3db | [
"MIT"
] | null | null | null | mix.exs | papercups-io/ex_papercups | 319c3c923c9015e8f3ea5e131581643a0978a3db | [
"MIT"
] | null | null | null | defmodule ExPapercups.MixProject do
use Mix.Project
def project do
[
app: :ex_papercups,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
source_url: "https://github.com/paperc... | 20.465116 | 74 | 0.582955 |
03a863730c65ab41031c4bb5c6dd28b916ae58c7 | 2,546 | ex | Elixir | lib/exnn/connectome.ex | zampino/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 104 | 2015-06-18T18:54:25.000Z | 2021-11-04T15:07:02.000Z | lib/exnn/connectome.ex | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 3 | 2016-10-09T11:19:42.000Z | 2018-09-17T16:36:32.000Z | lib/exnn/connectome.ex | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 17 | 2016-03-08T19:02:51.000Z | 2019-04-27T16:40:52.000Z | defmodule EXNN.Connectome do
@moduledoc """
Stores genomes forming the system,
with their inner information.
On boot it expands
a pattern of the form:
[sensor: [S_ID_1, S_ID_2, ..., S_ID_l],
neuron: {N_1, N_2, ..., N_m},
actuator: [A_ID_1, A_ID_2, ..., A_ID_n]
where N_s, N_i, N_a ... | 26.247423 | 58 | 0.649254 |
03a8812fe576542e3c187d6dfc7dfcdcb878d5e7 | 10,343 | ex | Elixir | lib/quantum/job_broadcaster.ex | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | lib/quantum/job_broadcaster.ex | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | lib/quantum/job_broadcaster.ex | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.JobBroadcaster do
@moduledoc false
# This Module is here to broadcast added / removed tabs into the execution pipeline.
use GenStage
require Logger
alias Quantum.Job
alias __MODULE__.{InitOpts, StartOpts, State}
@type event :: {:add, Job.t()} | {:remove, Job.t()}
# Start Job Broa... | 28.336986 | 107 | 0.546747 |
03a88cafd460fa0555fafb4c570fead7adbacbc1 | 2,587 | ex | Elixir | lib/payment_messenger/types/validator.ex | aleDsz/payment-messenger | 91477413373b96167fc8185ff7dc0acc78c8be41 | [
"Apache-2.0"
] | 2 | 2021-07-18T11:41:29.000Z | 2021-07-18T22:27:04.000Z | lib/payment_messenger/types/validator.ex | aleDsz/payment-messenger | 91477413373b96167fc8185ff7dc0acc78c8be41 | [
"Apache-2.0"
] | null | null | null | lib/payment_messenger/types/validator.ex | aleDsz/payment-messenger | 91477413373b96167fc8185ff7dc0acc78c8be41 | [
"Apache-2.0"
] | null | null | null | defmodule PaymentMessenger.Types.Validator do
@moduledoc """
The custom Ecto types validator for ISO-8583
"""
# Guard to check if given value is a valid tag
defguardp is_tag(tag) when byte_size(tag) == 3 or byte_size(tag) == 7
@typep value :: String.t() | integer()
@typep tlv :: {String.t(), pos_integer... | 25.613861 | 81 | 0.635872 |
03a8b26e1795eb56eba73b57e3da242b643b7328 | 1,914 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/date_range_values.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/date_range_values.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/date_range_values.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 ... | 34.178571 | 153 | 0.738245 |
03a8b5529ef33089f3bcf671f797f0e0fac8f48f | 2,013 | exs | Elixir | test/changelog/data/person_test.exs | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | test/changelog/data/person_test.exs | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | test/changelog/data/person_test.exs | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.PersonTest do
use Changelog.DataCase
alias Changelog.Person
@valid_attrs %{name: "Joe Blow", email: "joe@blow.com", handle: "joeblow"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Person.changeset(%Person{}, @valid_attrs)
assert changeset.valid?
end... | 30.969231 | 82 | 0.691505 |
03a8f3bd9642b2c17ac2b7f63f50418e31d4afdd | 1,122 | exs | Elixir | config/config.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | config/config.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | config/config.exs | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"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 :attendance,
ecto_repos: [Attendance.Rep... | 34 | 86 | 0.765597 |
03a8fdb5eaf362cca171e066570959e960d57623 | 568 | exs | Elixir | config/test.exs | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | config/test.exs | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | config/test.exs | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :canon, CanonWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :canon, Canon.Repo,
us... | 24.695652 | 56 | 0.730634 |
03a921d941be14674324015dc54e7561e45d726c | 1,152 | ex | Elixir | apps/omg_jsonrpc/lib/server.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_jsonrpc/lib/server.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_jsonrpc/lib/server.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 37.16129 | 109 | 0.770833 |
03a9362576bc34dd0f164451f252245cfac85885 | 339 | exs | Elixir | priv/repo/migrations/20151225091657_create_list.exs | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 2,784 | 2016-01-06T03:16:07.000Z | 2022-03-14T03:52:20.000Z | priv/repo/migrations/20151225091657_create_list.exs | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 49 | 2016-01-07T11:48:10.000Z | 2020-04-27T16:10:12.000Z | priv/repo/migrations/20151225091657_create_list.exs | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 586 | 2016-01-11T17:02:13.000Z | 2021-12-01T10:54:47.000Z | defmodule PhoenixTrello.Repo.Migrations.CreateList do
use Ecto.Migration
def change do
create table(:lists) do
add :name, :string, null: false
add :position, :integer, defaul: 0
add :board_id, references(:boards, on_delete: :delete_all)
timestamps
end
create index(:lists, [:bo... | 21.1875 | 64 | 0.675516 |
03a95089aff349014be4ee2c695ab103e9a806a9 | 7,313 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/user_role_permission_groups.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/user_role_permission_groups.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/user_role_permission_groups.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... | 40.854749 | 196 | 0.624778 |
03a95a934565a97566356f763267cb6acdf5331a | 286 | exs | Elixir | test/cableclub_web/live/page_live_test.exs | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | test/cableclub_web/live/page_live_test.exs | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | test/cableclub_web/live/page_live_test.exs | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | defmodule CableClubWeb.PageLiveTest do
use CableClubWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html
assert render(page_live)
end
end
| 23.833333 | 60 | 0.744755 |
03a96267230b5089ad460d5e534bdad0d0cd3692 | 1,665 | ex | Elixir | frameworks/Elixir/phoenix/web/controllers/page_controller.ex | kbrock/FrameworkBenchmarks | 18e0797cd82438d4d37e0bc964dcc22dc48c0cb0 | [
"BSD-3-Clause"
] | null | null | null | frameworks/Elixir/phoenix/web/controllers/page_controller.ex | kbrock/FrameworkBenchmarks | 18e0797cd82438d4d37e0bc964dcc22dc48c0cb0 | [
"BSD-3-Clause"
] | 2 | 2022-01-21T23:51:43.000Z | 2022-01-21T23:51:45.000Z | frameworks/Elixir/phoenix/web/controllers/page_controller.ex | kbrock/FrameworkBenchmarks | 18e0797cd82438d4d37e0bc964dcc22dc48c0cb0 | [
"BSD-3-Clause"
] | null | null | null | defmodule Hello.PageController do
use Hello.Web, :controller
alias Hello.World
alias Hello.Fortune
def index(conn, _params) do
conn
|> json(%{"TE Benchmarks\n" => "Started"})
end
# avoid namespace collision
def _json(conn, _params) do
conn
|> json(%{message: "Hello, world!"})
end
de... | 22.2 | 105 | 0.572973 |
03a9728cc116d6864f8fb6457f2993d4410c9d73 | 3,375 | ex | Elixir | clients/content/lib/google_api/content/v21/model/account_item_updates.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_item_updates.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_item_updates.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"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... | 59.210526 | 365 | 0.769481 |
03a97d178c4b9e2ab11df9f3abcd3a884ad8171b | 549 | ex | Elixir | lib/analytics/service/consumer_dynamic_supervisor.ex | OnceApp/Analytics | 4d3d6fd5eb5c7ec18b4df23515bb25661df818d9 | [
"MIT"
] | null | null | null | lib/analytics/service/consumer_dynamic_supervisor.ex | OnceApp/Analytics | 4d3d6fd5eb5c7ec18b4df23515bb25661df818d9 | [
"MIT"
] | null | null | null | lib/analytics/service/consumer_dynamic_supervisor.ex | OnceApp/Analytics | 4d3d6fd5eb5c7ec18b4df23515bb25661df818d9 | [
"MIT"
] | 1 | 2019-08-08T16:39:56.000Z | 2019-08-08T16:39:56.000Z | defmodule Analytics.ConsumerDynamicSupervisor do
use DynamicSupervisor
def start_link(_) do
DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def start_child(type, pid_to_subscribe) do
DynamicSupervisor.start_child(
__MODULE__,
%{
id: Analytics.ConsumerSupervisor,... | 22.875 | 85 | 0.703097 |
03a9a6d25ac0b6430b01629860b3844649158b99 | 2,393 | ex | Elixir | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/date.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_deploy/lib/google_api/cloud_deploy/v1/model/date.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/date.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... | 45.150943 | 567 | 0.713331 |
03aa2005ee2c32056a5a301192d265c6ba285014 | 716 | ex | Elixir | lib/doc/endpoint.ex | IanLuites/api_doc | b93ac8d82888c96bde7c55a08ec5716926976097 | [
"MIT"
] | 1 | 2020-01-12T03:41:03.000Z | 2020-01-12T03:41:03.000Z | lib/doc/endpoint.ex | IanLuites/api_doc | b93ac8d82888c96bde7c55a08ec5716926976097 | [
"MIT"
] | 1 | 2019-04-17T15:32:15.000Z | 2019-04-17T15:32:15.000Z | lib/doc/endpoint.ex | IanLuites/api_doc | b93ac8d82888c96bde7c55a08ec5716926976097 | [
"MIT"
] | null | null | null | defmodule APIDoc.Doc.Endpoint do
@moduledoc ~S"""
"""
alias APIDoc.Doc.{Param, Response}
@typedoc @moduledoc
@type t :: %__MODULE__{
method: :get | :post | :put | :patch | :delete,
path: [String.t() | atom],
id: String.t(),
summary: String.t(),
description: ... | 18.842105 | 57 | 0.488827 |
03aa27abdfccfdaa6c0d9d9fedc76508721fcc7b | 495 | ex | Elixir | lib/codenamex_web/views/error_view.ex | bernardoamc/codenamex | 6e3219569e4d9b8f4fe9273145b372ba182ab945 | [
"MIT"
] | null | null | null | lib/codenamex_web/views/error_view.ex | bernardoamc/codenamex | 6e3219569e4d9b8f4fe9273145b372ba182ab945 | [
"MIT"
] | 2 | 2020-07-20T14:23:21.000Z | 2020-08-01T21:18:45.000Z | lib/codenamex_web/views/error_view.ex | bernardoamc/codenamex | 6e3219569e4d9b8f4fe9273145b372ba182ab945 | [
"MIT"
] | null | null | null | defmodule CodenamexWeb.ErrorView do
use CodenamexWeb, :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 ... | 29.117647 | 61 | 0.737374 |
03aa4d1e380d6751439e8f8977fbb4405fe26c52 | 1,866 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/installation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/installation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/installation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.884615 | 173 | 0.740622 |
03aa8b8a10a4adf30e935785d19664778497f750 | 11,899 | exs | Elixir | test/credo/check/warning/unused_string_operation_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/warning/unused_string_operation_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/warning/unused_string_operation_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Warning.UnusedStringOperationTest do
use Credo.TestHelper
@described_check Credo.Check.Warning.UnusedStringOperation
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def some_function(parameter1, parameter2) do
String.split(parameter1) + parameter2
en... | 25.371002 | 145 | 0.652324 |
03aac7eda4a508886c172ff482c3eb2459246650 | 2,844 | ex | Elixir | lib/extracker/router.ex | Cantido/ex_tracker | 32f5785a39b5da209e2a4564f6e004479283fc1e | [
"MIT"
] | 1 | 2021-11-23T04:29:37.000Z | 2021-11-23T04:29:37.000Z | lib/extracker/router.ex | Cantido/ex_tracker | 32f5785a39b5da209e2a4564f6e004479283fc1e | [
"MIT"
] | 6 | 2020-11-10T03:44:44.000Z | 2022-02-28T11:05:39.000Z | lib/extracker/router.ex | Cantido/ex_tracker | 32f5785a39b5da209e2a4564f6e004479283fc1e | [
"MIT"
] | 1 | 2020-01-08T16:23:42.000Z | 2020-01-08T16:23:42.000Z | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule Extracker.Router do
@moduledoc false
use Plug.Router
if Mix.env() == :dev do
use Plug.Debugger
end
use Plug.ErrorHandler
plug(:match)
plug(:dispatch)
get "/announce" do
conn = fetch_query_params(conn)
... | 23.89916 | 95 | 0.607947 |
03ab046c0410887b5b2cf1a5da5d08bada9921f8 | 243 | ex | Elixir | lib/cip.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/cip.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | lib/cip.ex | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | defmodule Cip do
@moduledoc """
Cip 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
| 24.3 | 66 | 0.744856 |
03ab1b2fa2dbb5f6d5d32849a32ee75d0ed0e2a4 | 2,418 | ex | Elixir | clients/books/lib/google_api/books/v1/model/reading_position.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/reading_position.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/reading_position.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.2 | 167 | 0.687758 |
03ab37c3c2b61fded1a1aaff3a69cd2dde15d405 | 965 | exs | Elixir | priv/repo/migrations/20200916073549_create_character_sessions.exs | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | priv/repo/migrations/20200916073549_create_character_sessions.exs | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | priv/repo/migrations/20200916073549_create_character_sessions.exs | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | defmodule CAIData.Repo.Migrations.CreateCharacterSessions do
use Ecto.Migration
def change do
create table(:character_sessions) do
add :character_id, :string, size: 19
add :faction_id, :integer
add :name, :string, size: 70
add :kills, :integer
add :kills_hs, :integer
add :kills_ivi, :integer
... | 30.15625 | 86 | 0.701554 |
03ab500db5aca1a318dc2d0394047f4bab0bd550 | 1,592 | exs | Elixir | apps/graphql/test/unit/middleware/check_user_role_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/test/unit/middleware/check_user_role_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/test/unit/middleware/check_user_role_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.Unit.Middleware.CheckUserRoleTest do
@moduledoc false
use ExUnit.Case, async: true
import Mox
alias Ecto.UUID
alias GraphQL.Middleware.{CheckUserRole, FormatErrors}
@query """
query ResourceQuery {
resourceField {database_id}
}
"""
setup :verify_on_exit!
defmodule... | 22.422535 | 83 | 0.598618 |
03ab7b712b2d29d6ee4029ea68491efb19723f24 | 248 | ex | Elixir | lib/cbstats_importer/supervisor.ex | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | 1 | 2016-01-06T18:19:35.000Z | 2016-01-06T18:19:35.000Z | lib/cbstats_importer/supervisor.ex | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | null | null | null | lib/cbstats_importer/supervisor.ex | micahyoung/cbstats-importer | a7176b3a25d8a4e919ddda32475c9ecf65e9892a | [
"Unlicense",
"MIT"
] | null | null | null | defmodule CbstatsImporter.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
tree = [ worker(CbstatsImporter.Repo, []) ]
supervise(tree, strategy: :one_for_all)
end
end
| 19.076923 | 47 | 0.697581 |
03ab88ab55ab14e46edd55dd891589f246b23407 | 429 | exs | Elixir | test/regressions/i072_quotes_in_linx_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/regressions/i072_quotes_in_linx_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/regressions/i072_quotes_in_linx_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Regressions.I072QuotesInLinx do
use ExUnit.Case, async: true
test "Issue https://github.com/pragdave/earmark/issues/72" do
# assert Earmark.as_html!(~s{"Earmark"}) ==
# ~s{<p>“Earmark”</p>\n}
assert Earmark.as_html!(~s{["Earmark"](https://github.com/pragdave/earmark/)}) ==
~s{<p><a href="... | 30.642857 | 85 | 0.664336 |
03ab9007073463fce1cbb379de1c177dbd666281 | 8,263 | ex | Elixir | lib/level/posts/create_post.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/posts/create_post.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/posts/create_post.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Posts.CreatePost do
@moduledoc false
import Ecto.Query
alias Ecto.Multi
alias Level.Events
alias Level.Files
alias Level.Groups
alias Level.Mentions
alias Level.Notifications
alias Level.Posts
alias Level.Repo
alias Level.Schemas.Group
alias Level.Schemas.Post
alias Level.Sch... | 27.543333 | 91 | 0.667191 |
03abccf12aa401118ff40460187f9cdb14ee1d1e | 351 | exs | Elixir | server/priv/repo/seeds.exs | d-exclaimation/echoppe | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | 1 | 2021-05-13T00:53:52.000Z | 2021-05-13T00:53:52.000Z | server/priv/repo/seeds.exs | d-exclaimation/ez-cart | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | 1 | 2021-06-02T19:18:10.000Z | 2021-06-07T16:44:36.000Z | server/priv/repo/seeds.exs | d-exclaimation/ez-cart | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Echoppe.Repo.insert!(%Echoppe.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
03abf8f597665e2983c6dea469cdaeb92e3199b1 | 2,405 | ex | Elixir | lib/2020/day7.ex | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | lib/2020/day7.ex | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | lib/2020/day7.ex | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | defmodule AOC.Day7 do
def run(input) do
rules = String.split(input, [" bags contain ", "\n"]) |> build_rules()
num = AOC.time(&num_bags_containing/2, [rules, "shiny gold"])
IO.puts "Num of bags containing shiny gold: #{num}"
num2 = AOC.time(&num_bags_inside/2, [rules, "shiny gold"])
IO.puts "Num of bags in... | 45.377358 | 160 | 0.708108 |
03ac191a449aa0fcc29f772d23a08ce1e83e05e3 | 1,080 | ex | Elixir | test/support/conn_case.ex | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | defmodule GraphqlServerWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally,... | 27.692308 | 75 | 0.725926 |
03ac1afbb0ae25b888831a78b45dbbf8d998c33e | 82 | exs | Elixir | Phoenix_Sockets/example1/test/example1_web/views/page_view_test.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | Phoenix_Sockets/example1/test/example1_web/views/page_view_test.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | null | null | null | Phoenix_Sockets/example1/test/example1_web/views/page_view_test.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | defmodule Example1Web.PageViewTest do
use Example1Web.ConnCase, async: true
end
| 20.5 | 39 | 0.829268 |
03ac6a2b1f5d3cc3a75618cf5b31b097427b0628 | 475 | ex | Elixir | template/$PROJECT_NAME$/lib/$PROJECT_NAME$/application.ex | aforward/gen_template_ecto_service | 02d2cf88e4ba75dc68bedc604f8e31a3c67bcacb | [
"Apache-2.0"
] | 3 | 2017-08-18T15:08:43.000Z | 2022-01-03T23:53:42.000Z | template/$PROJECT_NAME$/lib/$PROJECT_NAME$/application.ex | aforward/gen_template_ecto_service | 02d2cf88e4ba75dc68bedc604f8e31a3c67bcacb | [
"Apache-2.0"
] | 1 | 2019-01-03T07:49:54.000Z | 2019-01-03T07:49:54.000Z | template/$PROJECT_NAME$/lib/$PROJECT_NAME$/application.ex | aforward/gen_template_ecto_service | 02d2cf88e4ba75dc68bedc604f8e31a3c67bcacb | [
"Apache-2.0"
] | 2 | 2017-09-19T00:27:55.000Z | 2019-10-23T03:05:11.000Z | defmodule <%= @project_name_camel_case %>.Application do
@moduledoc false
# See http://elixir-lang.org/docs/stable/elixir/Application.html
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(<%= @project_name_camel_case %>.Repo, []),
]
op... | 20.652174 | 66 | 0.656842 |
03ac9cec351f551a75ed1083085bbd8a8732eed0 | 56 | ex | Elixir | lib/elirc/plugin/message/spam.ex | rockerBOO/elirc_twitch | 6399f717c012df10df7914c216f5d3f9c425844c | [
"MIT"
] | 20 | 2015-06-18T03:30:58.000Z | 2021-01-11T19:55:00.000Z | lib/elirc/plugin/message/spam.ex | rockerBOO/elirc_twitch | 6399f717c012df10df7914c216f5d3f9c425844c | [
"MIT"
] | 1 | 2015-06-24T01:03:31.000Z | 2015-06-24T12:41:21.000Z | lib/elirc/plugin/message/spam.ex | rockerBOO/elirc_twitch | 6399f717c012df10df7914c216f5d3f9c425844c | [
"MIT"
] | 7 | 2015-06-22T14:25:12.000Z | 2016-01-21T03:39:02.000Z | defmodule Elirc.Spam do
def find(message) do
end
end | 9.333333 | 23 | 0.75 |
03acb68aade027d7674af5b2f9e3dea2103429eb | 187 | ex | Elixir | 2019/elixir/aoc/lib/aoc.ex | drincruz/advent-of-code | 45b639fc2eddfe45ed4387f7bf2be9a3d3cd6ec2 | [
"MIT"
] | 1 | 2020-11-08T22:17:37.000Z | 2020-11-08T22:17:37.000Z | 2019/elixir/aoc/lib/aoc.ex | drincruz/advent-of-code | 45b639fc2eddfe45ed4387f7bf2be9a3d3cd6ec2 | [
"MIT"
] | null | null | null | 2019/elixir/aoc/lib/aoc.ex | drincruz/advent-of-code | 45b639fc2eddfe45ed4387f7bf2be9a3d3cd6ec2 | [
"MIT"
] | null | null | null | defmodule Aoc do
@moduledoc """
Documentation for Aoc.
"""
@doc """
Hello world.
## Examples
iex> Aoc.hello()
:world
"""
def hello do
:world
end
end
| 9.842105 | 24 | 0.534759 |
03acb697e914c590b3410c57fdf5ba4febe0ca9a | 812 | ex | Elixir | lib/farmbot/system/config_storage/network_interface.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/system/config_storage/network_interface.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/system/config_storage/network_interface.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.System.ConfigStorage.NetworkInterface do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
use Farmbot.Logger
schema "network_interfaces" do
field(:name, :string, null: false)
field(:type, :string, null: false)
## For wireless interfaces
field(:ssid, :string)
fiel... | 23.2 | 58 | 0.678571 |
03acba56796a6413e8938bc0e78913242f1f8748 | 3,224 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/expr.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/expr.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/expr.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... | 57.571429 | 1,092 | 0.736663 |
03ace64d4631a6da6345776cdd215b1505092c98 | 839 | exs | Elixir | mix.exs | saulecabrera/leibniz | b26cff59bb571095f926f7df859810901c4ca33b | [
"MIT"
] | 19 | 2018-04-16T11:12:36.000Z | 2020-02-21T08:07:36.000Z | mix.exs | saulecabrera/leibniz | b26cff59bb571095f926f7df859810901c4ca33b | [
"MIT"
] | 2 | 2018-05-05T21:08:39.000Z | 2018-05-06T14:29:54.000Z | mix.exs | saulecabrera/leibniz | b26cff59bb571095f926f7df859810901c4ca33b | [
"MIT"
] | 1 | 2020-02-21T08:07:52.000Z | 2020-02-21T08:07:52.000Z | defmodule Leibniz.MixProject do
use Mix.Project
@desc "Math expression parser and evaluator"
def project do
[
app: :leibniz,
version: "1.0.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env:... | 19.97619 | 71 | 0.558999 |
03acf1d237954559dbb1a2174d85b5e2fd1551ca | 165 | exs | Elixir | config/test.ci.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 108 | 2018-08-24T19:47:59.000Z | 2022-03-24T13:15:42.000Z | config/test.ci.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 20 | 2018-10-09T18:32:37.000Z | 2022-03-19T08:46:16.000Z | config/test.ci.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 13 | 2018-10-09T18:30:16.000Z | 2022-01-26T23:37:20.000Z | use Mix.Config
config :trans, Trans.Repo,
username: "postgres",
password: "postgres",
database: "trans_test",
pool: Ecto.Adapters.SQL.Sandbox,
log: false
| 18.333333 | 34 | 0.70303 |
03acfc69d2493c7db4eaa13ecc648d1587bf6b86 | 524 | ex | Elixir | samples/client/petstore/elixir/lib/swagger_petstore/model/special_model_name.ex | derBiggi/swagger-codegen | 99dad052ec506796f3ed13b19364cf827ff0f256 | [
"Apache-2.0"
] | 14,570 | 2015-01-01T21:46:46.000Z | 2022-03-31T22:28:15.000Z | samples/client/petstore/elixir/lib/swagger_petstore/model/special_model_name.ex | derBiggi/swagger-codegen | 99dad052ec506796f3ed13b19364cf827ff0f256 | [
"Apache-2.0"
] | 9,058 | 2015-01-08T15:49:17.000Z | 2022-03-31T13:10:01.000Z | samples/client/petstore/elixir/lib/swagger_petstore/model/special_model_name.ex | LaudateCorpus1/swagger-codegen | e4f322ce197f1d6a0643de80f9a20bb521480426 | [
"Apache-2.0"
] | 6,907 | 2015-01-02T05:29:47.000Z | 2022-03-31T00:55:45.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule SwaggerPetstore.Model.SpecialModelName do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"$special[property.name]"
]
... | 20.153846 | 75 | 0.704198 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.