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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
791d1b28306da2a2c0510c7887e4aa39004c509d | 3,189 | exs | Elixir | test/lindaex_test.exs | kemonomachi/lindaex | 7b80362b3c6e1e32531562b445d5ac1dbfc909dd | [
"WTFPL"
] | null | null | null | test/lindaex_test.exs | kemonomachi/lindaex | 7b80362b3c6e1e32531562b445d5ac1dbfc909dd | [
"WTFPL"
] | null | null | null | test/lindaex_test.exs | kemonomachi/lindaex | 7b80362b3c6e1e32531562b445d5ac1dbfc909dd | [
"WTFPL"
] | null | null | null | defmodule LindaExTest do
use ExUnit.Case
setup_all do
test_tuples = [
{:"Katja-sama", 11, "Seikon no Qwaser", "Ekaterina Kurae"},
{:Horo, "Ookami to Koushinryou"},
{:Eclaire, 14, "Dog Days"},
{:Shiro, 11, "No Game, no Life"}
]
{:ok, test_tuples: test_tuples}
end
setup %{te... | 25.926829 | 104 | 0.602697 |
791d306d384e978021c7d8b88f5ab1839578ea56 | 769 | ex | Elixir | lib/system/rabbitmq/consumers.ex | whitfin/extreme_system | a19830db1a4e2128517951f2eddffa9296317382 | [
"MIT"
] | null | null | null | lib/system/rabbitmq/consumers.ex | whitfin/extreme_system | a19830db1a4e2128517951f2eddffa9296317382 | [
"MIT"
] | null | null | null | lib/system/rabbitmq/consumers.ex | whitfin/extreme_system | a19830db1a4e2128517951f2eddffa9296317382 | [
"MIT"
] | null | null | null | defmodule Extreme.System.RabbitMQ.Consumers do
use Supervisor
def start_link(channel_manager, configuration, opts),
do: Supervisor.start_link(__MODULE__, {channel_manager, configuration}, opts)
def init({channel_manager, configuration}) do
children = configuration
|> Enum.map(&define_wor... | 38.45 | 111 | 0.73212 |
791d395390685f2b9ec603f786333a7d0aefb0c1 | 13,911 | exs | Elixir | apps/ewallet/test/ewallet/gates/transaction_gate_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/gates/transaction_gate_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/gates/transaction_gate_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-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 ... | 36.607895 | 94 | 0.650636 |
791d406ab0b7e8284c9f8bc75cb926ca5e6cb752 | 2,847 | ex | Elixir | lib/glimesh_web/controllers/channel_moderator_controller.ex | Heiwa1580/glimesh.tv | c5e1ed4d1011b4e2a54c173d142e7eb857457477 | [
"MIT"
] | 1 | 2020-08-02T00:12:28.000Z | 2020-08-02T00:12:28.000Z | lib/glimesh_web/controllers/channel_moderator_controller.ex | Heiwa1580/glimesh.tv | c5e1ed4d1011b4e2a54c173d142e7eb857457477 | [
"MIT"
] | null | null | null | lib/glimesh_web/controllers/channel_moderator_controller.ex | Heiwa1580/glimesh.tv | c5e1ed4d1011b4e2a54c173d142e7eb857457477 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.ChannelModeratorController do
use GlimeshWeb, :controller
alias Glimesh.Streams
alias Glimesh.Streams.ChannelModerator
plug :put_layout, "user-sidebar.html"
def index(conn, _params) do
channel = Streams.get_channel_for_user(conn.assigns.current_user)
channel_moderators = Stream... | 36.037975 | 93 | 0.723217 |
791d41fd561d0db97fe91cfb320e4f9f9e1165df | 485 | exs | Elixir | test/test_helper.exs | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/test_helper.exs | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/test_helper.exs | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | unless System.get_env("TEST_LEAVE_TEMP"), do: Temp.track!
unless Docker.ready? do
IO.puts """
It seems like Docker isn't running?
Please check:
1. Docker is installed: `docker version`
2. On OS X and Windows: `docker-machine start`
3. Environment is set up: `eval $(docker-machine env)`
"""
exit({:shu... | 24.25 | 66 | 0.715464 |
791d48f37bf6186fabc29e0a540cf49c13ef0f09 | 277 | exs | Elixir | sample_server/config/test.exs | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 31 | 2019-03-26T15:26:21.000Z | 2022-02-16T14:33:13.000Z | sample_server/config/test.exs | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 3 | 2019-04-05T19:45:09.000Z | 2019-10-25T01:48:57.000Z | sample_server/config/test.exs | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 5 | 2019-03-27T14:16:28.000Z | 2022-02-18T12:01:46.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :sample_server, SampleServerWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 25.181818 | 56 | 0.747292 |
791d693c89399ca2de059273cae7c279114999a0 | 7,837 | ex | Elixir | lib/jsonrpc2/server/handler.ex | drdgvhbh/jsonrpc2-elixir | 02d41b41e3625da1a81b8dd911a0b23bb99b1c9e | [
"Apache-2.0"
] | 49 | 2016-07-14T01:12:59.000Z | 2022-03-22T02:13:50.000Z | lib/jsonrpc2/server/handler.ex | drdgvhbh/jsonrpc2-elixir | 02d41b41e3625da1a81b8dd911a0b23bb99b1c9e | [
"Apache-2.0"
] | 18 | 2016-09-02T18:08:37.000Z | 2021-06-10T21:28:11.000Z | lib/jsonrpc2/server/handler.ex | drdgvhbh/jsonrpc2-elixir | 02d41b41e3625da1a81b8dd911a0b23bb99b1c9e | [
"Apache-2.0"
] | 26 | 2016-09-07T21:46:16.000Z | 2021-10-09T13:52:16.000Z | defmodule JSONRPC2.Server.Handler do
@moduledoc """
A transport-agnostic server handler for JSON-RPC 2.0.
## Example
defmodule SpecHandler do
use JSONRPC2.Server.Handler
def handle_request("subtract", [x, y]) do
x - y
end
def handle_request("subtract", %{"minuen... | 28.292419 | 105 | 0.624729 |
791d6af4121bdc8da2ec571a66f3e705ab6beb98 | 86 | exs | Elixir | test/nuzzelish_web/views/layout_view_test.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 2 | 2020-09-07T03:42:36.000Z | 2021-05-04T23:58:43.000Z | test/nuzzelish_web/views/layout_view_test.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 20 | 2020-01-15T03:26:48.000Z | 2020-02-02T20:53:39.000Z | test/nuzzelish_web/views/layout_view_test.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | null | null | null | defmodule NuzzelishWeb.LayoutViewTest do
use NuzzelishWeb.ConnCase, async: true
end
| 21.5 | 40 | 0.837209 |
791d7360b07bea925ec0adc9ea8f99ae116bc1c4 | 1,268 | ex | Elixir | lib/ttr_core/cards/train_card.ex | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 6 | 2018-09-23T21:04:50.000Z | 2021-03-13T02:56:23.000Z | lib/ttr_core/cards/train_card.ex | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 23 | 2018-08-24T17:09:18.000Z | 2021-08-02T12:15:23.000Z | lib/ttr_core/cards/train_card.ex | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 1 | 2018-08-24T16:59:45.000Z | 2018-08-24T16:59:45.000Z | defmodule TtrCore.Cards.TrainCard do
@moduledoc false
@car_counts [
box: 12, # yellow
passenger: 12, # blue
tanker: 12, # orange
reefer: 12, # white
freight: 12, # pink
hopper: 12, # black
coal: 12, # red
caboose: 12, # green
locomotive: 14 # gold
]
... | 22.642857 | 83 | 0.589117 |
791db6c26f1f8493e600a5ab15edf579ef0e56fe | 4,631 | exs | Elixir | test/plausible/stats/query_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | test/plausible/stats/query_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | test/plausible/stats/query_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Stats.QueryTest do
use ExUnit.Case, async: true
alias Plausible.Stats.Query
@site_inserted_at ~D[2020-01-01]
@site %Plausible.Site{
timezone: "UTC",
inserted_at: @site_inserted_at,
stats_start_date: @site_inserted_at
}
test "parses day format" do
q = Query.from(@site, %... | 30.668874 | 96 | 0.616713 |
791dc2df0d29bc3e5a8166113b9b379dd5b29c2e | 941 | exs | Elixir | test/type/type_function_var/intersection_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 97 | 2020-09-22T01:52:19.000Z | 2022-03-21T17:50:13.000Z | test/type/type_function_var/intersection_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 106 | 2020-09-22T18:55:28.000Z | 2021-11-30T01:51:04.000Z | test/type/type_function_var/intersection_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 3 | 2020-10-27T22:36:56.000Z | 2022-01-25T21:00:24.000Z | defmodule TypeTest.TypeFunctionVar.IntersectionTest do
use ExUnit.Case, async: true
use Type.Operators
@moduletag :intersection
import Type, only: :macros
alias Type.Function.Var
@any any()
@any_var %Var{name: :foo}
describe "the default variable" do
test "intersects with any and self" do
... | 22.404762 | 54 | 0.621679 |
791e2a6db878258a347e7ce5070396c0958d0dab | 1,037 | exs | Elixir | test/phoenix_gon/utils_test.exs | defaulterr0r/phoenix_gon | 19e678706fc4474ad71156d85bf3068d39c81ac9 | [
"MIT"
] | null | null | null | test/phoenix_gon/utils_test.exs | defaulterr0r/phoenix_gon | 19e678706fc4474ad71156d85bf3068d39c81ac9 | [
"MIT"
] | null | null | null | test/phoenix_gon/utils_test.exs | defaulterr0r/phoenix_gon | 19e678706fc4474ad71156d85bf3068d39c81ac9 | [
"MIT"
] | null | null | null | defmodule PhoenixGon.UtilsTest do
use ExUnit.Case, async: false
use RouterHelper
import PhoenixGon.Utils
alias Plug.Conn
describe "#variables" do
test 'conn' do
conn =
%Conn{}
|> with_gon
actual = variables(conn)
expectation = %PhoenixGon.Storage{}
assert actua... | 17 | 79 | 0.580521 |
791e30b08018b46653c31fe66b6d86eef3f65202 | 497 | exs | Elixir | test/phoenix_feathers/card_test.exs | timpile/phoenix_feathers | 6ac706d9384772f8cc5950ee2328fef77fa85413 | [
"MIT"
] | null | null | null | test/phoenix_feathers/card_test.exs | timpile/phoenix_feathers | 6ac706d9384772f8cc5950ee2328fef77fa85413 | [
"MIT"
] | null | null | null | test/phoenix_feathers/card_test.exs | timpile/phoenix_feathers | 6ac706d9384772f8cc5950ee2328fef77fa85413 | [
"MIT"
] | null | null | null | defmodule PhoenixFeathers.CardTest do
use ExUnit.Case
use PhoenixFeathers.LiveViewTest
defmodule MockLiveView do
use Phoenix.LiveView
def render(assigns) do
~L"""
<%= live_component @socket, PhoenixFeathers.Card do %>
<div>Inner block</div>
<% end %>
"""
end
e... | 21.608696 | 62 | 0.633803 |
791e4ab9beece9d106a49c0967a4c0b32d274b49 | 30 | ex | Elixir | lib/phoenix/ash_dashboard.ex | ash-project/ash_dashboard | 7685db1fc2e0298d332a71e37bd18b558cb2abf5 | [
"MIT"
] | null | null | null | lib/phoenix/ash_dashboard.ex | ash-project/ash_dashboard | 7685db1fc2e0298d332a71e37bd18b558cb2abf5 | [
"MIT"
] | null | null | null | lib/phoenix/ash_dashboard.ex | ash-project/ash_dashboard | 7685db1fc2e0298d332a71e37bd18b558cb2abf5 | [
"MIT"
] | null | null | null | defmodule AshDashboard do
end
| 10 | 25 | 0.866667 |
791e720826140e0921383a7c078293550eead14e | 170 | exs | Elixir | test/test_helper.exs | StephaneRob/ancestry-ecto | 28b6b30dc63cb4085026973a6917f1eb7b0fe0bd | [
"MIT"
] | 2 | 2020-08-02T19:14:46.000Z | 2020-08-07T11:02:38.000Z | test/test_helper.exs | StephaneRob/ancestry | 28b6b30dc63cb4085026973a6917f1eb7b0fe0bd | [
"MIT"
] | null | null | null | test/test_helper.exs | StephaneRob/ancestry | 28b6b30dc63cb4085026973a6917f1eb7b0fe0bd | [
"MIT"
] | 1 | 2020-07-27T05:52:29.000Z | 2020-07-27T05:52:29.000Z | {:ok, _} = Application.ensure_all_started(:ex_machina)
ExUnit.start()
AncestryEcto.TestRepo.start_link([])
Ecto.Adapters.SQL.Sandbox.mode(AncestryEcto.TestRepo, :manual)
| 34 | 62 | 0.794118 |
791e7650662eecbaf529c73613eab50d5ee6da58 | 382 | ex | Elixir | phoenix_test/web/views/error_view.ex | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | phoenix_test/web/views/error_view.ex | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | phoenix_test/web/views/error_view.ex | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | defmodule PhoenixTest.ErrorView do
use PhoenixTest.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_t... | 21.222222 | 47 | 0.704188 |
791e7fe1e6661eec7fda3467f993127053ce35cc | 5,726 | ex | Elixir | lib/mix/lib/releases/overlays.ex | TokiTori/distillery | 9158df6d17c8b70a201ade4ca0d3f243245ceebd | [
"MIT"
] | null | null | null | lib/mix/lib/releases/overlays.ex | TokiTori/distillery | 9158df6d17c8b70a201ade4ca0d3f243245ceebd | [
"MIT"
] | null | null | null | lib/mix/lib/releases/overlays.ex | TokiTori/distillery | 9158df6d17c8b70a201ade4ca0d3f243245ceebd | [
"MIT"
] | null | null | null | defmodule Mix.Releases.Overlays do
@moduledoc """
This module is responsible for applying overlays to a release, prior to packaging.
Overlays are templated with EEx, with bindings set to the values configured in `overlay_vars`.
There are some preconfigured overlay variables, namely:
- `erts_vsn`: The versi... | 37.92053 | 107 | 0.591687 |
791e82939e53bc8b9734ec66153715b3d91bd36b | 1,137 | exs | Elixir | config/config.exs | xeejp/xee_attendance | 6cdd1bdff443d9c0bbff43f95a32dfaa2586ea74 | [
"MIT"
] | null | null | null | config/config.exs | xeejp/xee_attendance | 6cdd1bdff443d9c0bbff43f95a32dfaa2586ea74 | [
"MIT"
] | null | null | null | config/config.exs | xeejp/xee_attendance | 6cdd1bdff443d9c0bbff43f95a32dfaa2586ea74 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.677419 | 73 | 0.755497 |
791e86e2245ee72001d542e10a0ef0e56f3ce399 | 954 | ex | Elixir | test/support/channel_case.ex | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | defmodule Thing.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be as... | 22.714286 | 64 | 0.698113 |
791ea487cee4ebc290bb40c752e3cce8ba74fbfd | 1,274 | ex | Elixir | lib/elsa/consumer.ex | fxn/elsa | 3d2b5eaccebab48799f8e9b68f78120cd1c3c0c1 | [
"Apache-2.0"
] | null | null | null | lib/elsa/consumer.ex | fxn/elsa | 3d2b5eaccebab48799f8e9b68f78120cd1c3c0c1 | [
"Apache-2.0"
] | null | null | null | lib/elsa/consumer.ex | fxn/elsa | 3d2b5eaccebab48799f8e9b68f78120cd1c3c0c1 | [
"Apache-2.0"
] | null | null | null | defmodule Elsa.Consumer do
@moduledoc """
Centralizes definition for common functions related
to consumer interactions.
"""
import Elsa.Supervisor, only: [registry: 1]
@type offset :: integer() | String.t()
@doc """
Retrieve the process id of a consumer registered to the
Elsa Registry and subscribes... | 31.85 | 111 | 0.684458 |
791eac7fa4e1284f1c98b68add26a913c19f7103 | 2,993 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/audit_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/audit_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/audit_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 59.86 | 1,110 | 0.747077 |
791eadcfd32b3b6540ab81b1e8d9b25aac3761d9 | 3,242 | ex | Elixir | lib/teiserver/battle/lobby/lobby_chat.ex | beyond-all-reason/teiserver | e394b5efe561eaf5700bca62e4e4263d8f720ac5 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/battle/lobby/lobby_chat.ex | beyond-all-reason/teiserver | e394b5efe561eaf5700bca62e4e4263d8f720ac5 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/battle/lobby/lobby_chat.ex | beyond-all-reason/teiserver | e394b5efe561eaf5700bca62e4e4263d8f720ac5 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Battle.LobbyChat do
alias Teiserver.{User, Chat}
alias Teiserver.Battle.{Lobby}
alias Phoenix.PubSub
@spec say(Types.userid(), String.t(), Types.lobby_id()) :: :ok | {:error, any}
def say(userid, "!start" <> s, lobby_id), do: say(userid, "!cv start" <> s, lobby_id)
def say(userid, "!joi... | 30.299065 | 105 | 0.590993 |
791eebd933e57bbc0a55d2b535191fc1b0dba6f4 | 1,956 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/run_task_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/run_task_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/run_task_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.152542 | 122 | 0.736196 |
791ef93c3a49db5d7cb2dc7d269c1843a0e0bf9e | 233 | exs | Elixir | config/test.exs | fertapric/cldr_dates_times | d1eff81c7a6e4d84484646465650d26d5dfc51db | [
"Apache-2.0"
] | 36 | 2019-07-26T18:08:04.000Z | 2022-03-08T00:37:49.000Z | config/test.exs | fertapric/cldr_dates_times | d1eff81c7a6e4d84484646465650d26d5dfc51db | [
"Apache-2.0"
] | 20 | 2019-06-12T07:44:57.000Z | 2022-03-02T15:31:52.000Z | config/test.exs | fertapric/cldr_dates_times | d1eff81c7a6e4d84484646465650d26d5dfc51db | [
"Apache-2.0"
] | 4 | 2020-05-29T08:42:08.000Z | 2022-03-01T15:40:24.000Z | # In test mode we compile and test all locales
use Mix.Config
config :ex_cldr,
default_locale: "en",
default_backend: MyApp.Cldr
config :ex_unit,
module_load_timeout: 220_000,
case_load_timeout: 220_000,
timeout: 220_000
| 19.416667 | 46 | 0.763948 |
791efd97eea8d5428c779c2c5c21be756cc652b4 | 395 | ex | Elixir | lib/forage/forage_plan.ex | lumenlunae/forage | af85889bb5a2e154d1aa92e98454c29b6d724120 | [
"MIT"
] | null | null | null | lib/forage/forage_plan.ex | lumenlunae/forage | af85889bb5a2e154d1aa92e98454c29b6d724120 | [
"MIT"
] | null | null | null | lib/forage/forage_plan.ex | lumenlunae/forage | af85889bb5a2e154d1aa92e98454c29b6d724120 | [
"MIT"
] | null | null | null | defmodule Forage.ForagePlan do
@moduledoc """
A forage plan, which can be used to run paginated queries on your repo.
"""
defstruct search: [],
sort: [],
pagination: []
def new(opts) do
%__MODULE__{
search: Keyword.get(opts, :search, []),
sort: Keyword.get(opts, :sort,... | 23.235294 | 73 | 0.58481 |
791f19a2beb8042b0dad68a573142dd8dd7f3ff4 | 78 | exs | Elixir | config/prod.exs | nicksanford/fido | a7dac2161eb486eb3209284e3fe1a9e497e31329 | [
"MIT"
] | null | null | null | config/prod.exs | nicksanford/fido | a7dac2161eb486eb3209284e3fe1a9e497e31329 | [
"MIT"
] | null | null | null | config/prod.exs | nicksanford/fido | a7dac2161eb486eb3209284e3fe1a9e497e31329 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, level: :info
import_config "prod.secret.exs"
| 13 | 31 | 0.75641 |
791f3f8ca1cad8d79f72b062f4f4bf80948518d9 | 1,335 | ex | Elixir | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 31.046512 | 83 | 0.746067 |
791f4a82e92e4797b8ed87c92372666b0620610f | 3,578 | ex | Elixir | lib/square_up/resources/v2/order.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 4 | 2020-10-21T18:34:50.000Z | 2022-03-16T06:25:44.000Z | lib/square_up/resources/v2/order.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 5 | 2020-10-21T23:16:32.000Z | 2021-05-13T13:42:44.000Z | lib/square_up/resources/v2/order.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 3 | 2020-10-21T21:20:36.000Z | 2021-03-15T18:00:30.000Z | defmodule SquareUp.V2.Order do
import Norm
import SquareUp.Client, only: [call: 2]
@spec update(
SquareUp.Client.t(),
%{required(:order_id) => binary()},
SquareUp.TypeSpecs.update_order_request(),
%{}
) :: SquareUp.Client.response(SquareUp.TypeSpecs.update_order_re... | 35.425743 | 97 | 0.671045 |
791f5d00f22b5f53ffdc470aa4f3d6f784b98bfc | 2,639 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/slsa_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/slsa_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/slsa_metadata.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... | 44.728814 | 250 | 0.732853 |
791f5ead8737d73523df71d744ee4887f0107d6b | 61 | ex | Elixir | apps/robby_web/web/views/maps_view.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/robby_web/web/views/maps_view.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/robby_web/web/views/maps_view.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | defmodule RobbyWeb.MapsView do
use RobbyWeb.Web, :view
end
| 15.25 | 30 | 0.786885 |
791f68bf14fbc4511e9bdd49d1c3fde5f3947fe1 | 608 | ex | Elixir | lib/mp_api_web/controllers/session_controller.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api_web/controllers/session_controller.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api_web/controllers/session_controller.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | defmodule MpApiWeb.SessionController do
use MpApiWeb, :controller
import MpApiWeb.Authorize
alias Phauxth.Confirm.Login
# If you are using Argon2 or Pbkdf2, add crypto: Comeonin.Argon2
# or crypto: Comeonin.Pbkdf2 to Login.verify (after Accounts)
def create(conn, %{"session" => params}) do
case Login.... | 32 | 73 | 0.682566 |
791f7105e615ea824b5e1e07b88307ed84fd9b50 | 8,482 | ex | Elixir | lib/chaperon/action/http.ex | jarrodmoldrich/chaperon | 6dffc1a744f8ac11581af89cf6cd99a62f52dd27 | [
"MIT"
] | null | null | null | lib/chaperon/action/http.ex | jarrodmoldrich/chaperon | 6dffc1a744f8ac11581af89cf6cd99a62f52dd27 | [
"MIT"
] | null | null | null | lib/chaperon/action/http.ex | jarrodmoldrich/chaperon | 6dffc1a744f8ac11581af89cf6cd99a62f52dd27 | [
"MIT"
] | null | null | null | defmodule Chaperon.Action.HTTP do
@moduledoc """
HTTP based actions to be run in a `Chaperon.Scenario` module for a given
`Chaperon.Session`.
This supports `GET`, `POST`, `PUT`, `PATCH`, `DELETE` & `HEAD` requests with
support for optional headers & query params.
"""
defstruct method: :get,
... | 23.626741 | 87 | 0.578166 |
791fccbc097737bd268ab93412f9857aa3298dc7 | 3,852 | ex | Elixir | lib/live_view_example_usage_web/live/chat/index.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 3 | 2021-09-13T07:07:46.000Z | 2021-11-21T09:42:39.000Z | lib/live_view_example_usage_web/live/chat/index.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 2 | 2021-09-18T17:16:16.000Z | 2021-11-21T23:25:23.000Z | lib/live_view_example_usage_web/live/chat/index.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 1 | 2021-09-13T07:07:50.000Z | 2021-09-13T07:07:50.000Z | defmodule LiveViewExampleUsageWeb.ChatLive do
use Phoenix.LiveView
alias LiveViewExampleUsageWeb.Presence
def mount(_params, session, socket) do
socket = redirect_to_login(session["user"], socket)
if connected?(socket) do
join_topics_and_track_presence(session["user"])
end
chats = topics(... | 24.535032 | 94 | 0.631101 |
791fdaa8244c3dd9f8c2c575c38e90f7bdcbb247 | 698 | exs | Elixir | test/gandalf/grant_types/client_credentials_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | 1 | 2018-05-01T01:34:56.000Z | 2018-05-01T01:34:56.000Z | test/gandalf/grant_types/client_credentials_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | test/gandalf/grant_types/client_credentials_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Gandalf.GrantType.ClientCredentialsTest do
use ExUnit.Case
use Gandalf.DB.Test.DataCase
use Gandalf.RepoBase
import Gandalf.Factory
alias Gandalf.GrantType.ClientCredentials, as: ClientCredentialsGrantType
setup do
client_owner = insert(:user)
client = insert(:client, user_id: client_owne... | 33.238095 | 86 | 0.753582 |
79200f8cd27706d00007bb4566e81f00c4a0659c | 408 | exs | Elixir | test/models/tag_test.exs | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | test/models/tag_test.exs | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | 4 | 2015-12-18T20:35:49.000Z | 2015-12-18T20:36:43.000Z | test/models/tag_test.exs | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | defmodule Clueless.TagTest do
use Clueless.ModelCase
alias Clueless.Tag
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Tag.changeset(%Tag{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes" do
... | 21.473684 | 53 | 0.715686 |
79205012d544a1751df2ea535a282ba6e5627102 | 1,986 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_delete_conversation_model_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_delete_conversation_model_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_delete_conversation_model_operation_metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.842105 | 160 | 0.752266 |
7920625619ed02d9d7acd8802481d79e647292ab | 1,570 | ex | Elixir | apps/tfcon_web/lib/tfcon_web/controllers/auth_controller.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | apps/tfcon_web/lib/tfcon_web/controllers/auth_controller.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | 2 | 2021-03-10T02:00:57.000Z | 2021-05-10T21:22:39.000Z | apps/tfcon_web/lib/tfcon_web/controllers/auth_controller.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | defmodule TfconWeb.AuthController do
use TfconWeb, :controller
use PhoenixSwagger
alias Tfcon.{Accounts, Guardian}
alias Tfcon.JsonHandler
def create(conn, %{"account_number" => account_number, "password" => password}) do
auth_data = Accounts.authenticate_user(account_number, password)
login_reply(c... | 27.068966 | 84 | 0.645223 |
79206427ad789c24e595e53c84cc5e3f636f64ca | 1,169 | exs | Elixir | test/storage_test.exs | aforward/temporal | ec71f48719c471a72a490583abe692c314dff080 | [
"MIT"
] | null | null | null | test/storage_test.exs | aforward/temporal | ec71f48719c471a72a490583abe692c314dff080 | [
"MIT"
] | null | null | null | test/storage_test.exs | aforward/temporal | ec71f48719c471a72a490583abe692c314dff080 | [
"MIT"
] | null | null | null | defmodule Temporal.StorageTest do
use ExUnit.Case
doctest Temporal.Storage
alias Temporal.Storage
test "save based on basedir, frequency and source" do
p = Storage.path("/tmp", :yearly, "https://example.com/x.txt")
assert {:ok, p} == Storage.save({:ok, "apples"}, "/tmp", :yearly, "https://example.com/... | 43.296296 | 98 | 0.635586 |
79206a89e30d72a3f195f77a689c2ed7d39cb0bc | 207 | exs | Elixir | test/_scripts/basic.exs | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 11 | 2020-07-13T20:43:43.000Z | 2021-05-18T23:52:27.000Z | test/_scripts/basic.exs | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 50 | 2020-07-13T02:20:14.000Z | 2020-08-17T16:45:17.000Z | test/_scripts/basic.exs | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 1 | 2021-03-11T17:02:21.000Z | 2021-03-11T17:02:21.000Z | # basic realbook that creates a directory in the temp directory.
def path, do: get(:dirname)
verify do
(run! "test -d #{path()}")
end
play do
log "creating #{path()}"
run! "mkdir -p #{path()}"
end
| 15.923077 | 64 | 0.63285 |
79206e5b2973ad93eb910afa3bccd628e6dae93d | 805 | ex | Elixir | lib/miotwo_web/controllers/train_controller.ex | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | 2 | 2018-08-24T18:09:34.000Z | 2020-07-20T01:42:37.000Z | lib/miotwo_web/controllers/train_controller.ex | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | null | null | null | lib/miotwo_web/controllers/train_controller.ex | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | 1 | 2018-05-16T22:57:57.000Z | 2018-05-16T22:57:57.000Z | defmodule MiotwoWeb.TrainController do
use MiotwoWeb, :controller
import ScoutApm.Tracing
alias Miotwo.TrainCache
# Proxy the raw response from MARTA,
# including content-type, status, and body.
def index(conn, %{}) do
case train_json() do
{:ok, resp} -> proxy(conn, resp)
{:error, %HTTPoiso... | 23.676471 | 52 | 0.642236 |
79209905c75690963de7d12c56cf5f0d9cca5232 | 809 | ex | Elixir | lib/sipper/file_name_cleaner.ex | jordelver/rubytapas | 145b92a33e12c4b7f06d10819dafe309b395642d | [
"MIT"
] | 114 | 2015-09-18T10:55:37.000Z | 2021-02-20T01:49:49.000Z | lib/sipper/file_name_cleaner.ex | jordelver/rubytapas | 145b92a33e12c4b7f06d10819dafe309b395642d | [
"MIT"
] | 26 | 2015-09-18T07:03:13.000Z | 2017-11-06T12:35:27.000Z | lib/sipper/file_name_cleaner.ex | jordelver/rubytapas | 145b92a33e12c4b7f06d10819dafe309b395642d | [
"MIT"
] | 26 | 2015-09-19T03:46:16.000Z | 2018-10-14T21:39:22.000Z | defmodule Sipper.FileNameCleaner do
def clean(name) do
name
|> String.replace(":", "-") # Breaks on Windows, shown as "/" on OS X.
end
def migrate_unclean(dir, file, cb) do
files_in_dir = File.ls!(dir)
cleaned_files_in_dir = Enum.into(files_in_dir, %{}, &{clean(&1), &1})
cleaned_file = clea... | 29.962963 | 94 | 0.694685 |
79209e9e5fdf1bbfe0444a2255799f15487008b5 | 1,241 | exs | Elixir | test/pow/phoenix/mailer/mail_test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | test/pow/phoenix/mailer/mail_test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | test/pow/phoenix/mailer/mail_test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Pow.Phoenix.MailerTemplate do
@moduledoc false
use Pow.Phoenix.Mailer.Template
template :mail_test,
"Test subject",
"""
<%= @value %> text
""",
"""
<%= content_tag(:h3, "\#{@value} HTML") %>
"""
end
defmodule Pow.Phoenix.MailerView do
@moduledoc false
use Pow.Phoenix.Mailer.View
end
... | 25.854167 | 80 | 0.662369 |
7920a72394c0b37bb4599a413c6c513f8e424a86 | 4,924 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/bubble_chart_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/bubble_chart_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/bubble_chart_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.946237 | 162 | 0.70857 |
7920a9f0bc44c81550da57148106bff60cabd4e0 | 47,320 | ex | Elixir | lib/livebook_web/live/session_live.ex | Adzz/livebook | ab0a237ab632aa617d4c9d75fbfc553b57d91dbd | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live.ex | Adzz/livebook | ab0a237ab632aa617d4c9d75fbfc553b57d91dbd | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live.ex | Adzz/livebook | ab0a237ab632aa617d4c9d75fbfc553b57d91dbd | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive do
use LivebookWeb, :live_view
import LivebookWeb.UserHelpers
import LivebookWeb.SessionHelpers
import Livebook.Utils, only: [access_by_id: 1]
alias LivebookWeb.SidebarHelpers
alias Livebook.{Sessions, Session, Delta, Notebook, Runtime, LiveMarkdown}
alias Livebook.Note... | 33.82416 | 185 | 0.615406 |
7920bb3eb05bfe180dbff8feaa87d033a4cb03e4 | 1,110 | ex | Elixir | clients/books/lib/google_api/books/v1/model/books_annotations_range.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/books_annotations_range.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/books_annotations_range.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... | 27.75 | 78 | 0.737838 |
7920c3493fcf1be0d3d15f69bfb4d76ddb24d6f3 | 739 | ex | Elixir | web/views/stat_block_view.ex | Enkidatron/Dnd_Tracker | e373e5375cd78f26b4f5afc0c54eb6a91826ba60 | [
"MIT"
] | null | null | null | web/views/stat_block_view.ex | Enkidatron/Dnd_Tracker | e373e5375cd78f26b4f5afc0c54eb6a91826ba60 | [
"MIT"
] | 6 | 2016-10-13T15:00:18.000Z | 2016-10-17T18:40:38.000Z | web/views/stat_block_view.ex | Enkidatron/Dnd_Tracker | e373e5375cd78f26b4f5afc0c54eb6a91826ba60 | [
"MIT"
] | null | null | null | defmodule DndTracker.StatBlockView do
use DndTracker.Web, :view
def render("index.json", %{stat_blocks: stat_blocks}) do
%{data: render_many(stat_blocks, DndTracker.StatBlockView, "stat_block.json")}
end
def render("show.json", %{stat_block: stat_block}) do
%{data: render_one(stat_block, DndTracker.St... | 30.791667 | 82 | 0.709066 |
792109a8c5f23e52182697017f49d1e1ab79d0a0 | 2,959 | exs | Elixir | test/ja_serializer/deserializer_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 322 | 2016-11-18T22:58:17.000Z | 2022-01-18T15:07:24.000Z | test/ja_serializer/deserializer_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 150 | 2016-11-17T20:14:51.000Z | 2021-03-12T03:56:57.000Z | test/ja_serializer/deserializer_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 104 | 2016-11-17T18:02:36.000Z | 2021-04-06T09:52:16.000Z | defmodule JaSerializer.DeserializerTest do
use ExUnit.Case
use Plug.Test
defmodule ExamplePlug do
use Plug.Builder
plug(Plug.Parsers, parsers: [:json], json_decoder: Poison)
plug(JaSerializer.Deserializer)
plug(:return)
def return(conn, _opts) do
send_resp(conn, 200, "success")
end... | 25.508621 | 72 | 0.582291 |
792109f3394023773085b2a2af6ebd8f15dab57c | 1,135 | exs | Elixir | config/config.exs | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | 3 | 2017-04-18T19:30:56.000Z | 2020-07-23T09:49:49.000Z | config/config.exs | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | 1 | 2021-11-09T20:36:06.000Z | 2021-11-09T20:36:06.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.612903 | 73 | 0.755066 |
7921251e987e8a906eed176142c3f99171034913 | 2,773 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/listen_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/listen_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/listen_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... | 46.216667 | 241 | 0.759827 |
792153461c548d42f9d617381bf3123103eab124 | 7,218 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/express_route_cross_connection_peerings.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/express_route_cross_connection_peerings.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/express_route_cross_connection_peerings.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Api.ExpressRouteCrossConnectionPeerings do
@moduledoc """
API calls for all endpoints tagged `ExpressRouteC... | 55.099237 | 334 | 0.764616 |
79218d754ffd9a4f236cbf417bc1e2ae540e4140 | 9,266 | ex | Elixir | installer/lib/phx_new/generator.ex | sunaku/phoenix | f06696118f17af71b78571583fcfaf6e388b2bd9 | [
"MIT"
] | null | null | null | installer/lib/phx_new/generator.ex | sunaku/phoenix | f06696118f17af71b78571583fcfaf6e388b2bd9 | [
"MIT"
] | null | null | null | installer/lib/phx_new/generator.ex | sunaku/phoenix | f06696118f17af71b78571583fcfaf6e388b2bd9 | [
"MIT"
] | null | null | null | defmodule Phx.New.Generator do
@moduledoc false
import Mix.Generator
alias Phx.New.{Project}
@phoenix Path.expand("../..", __DIR__)
@phoenix_version Version.parse!("1.4.0")
@callback prepare_project(Project.t) :: Project.t
@callback generate(Project.t) :: Project.t
defmacro __using__(_env) do
qu... | 34.966038 | 117 | 0.669005 |
7921954a350ed905d2b0a4344b936e6f234a76d5 | 515 | ex | Elixir | phoenix/discuss/web/models/user.ex | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | 1 | 2021-04-13T06:48:57.000Z | 2021-04-13T06:48:57.000Z | phoenix/discuss/web/models/user.ex | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | null | null | null | phoenix/discuss/web/models/user.ex | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | null | null | null | defmodule Discuss.User do
use Discuss.Web, :model
@derive {Poison.Encoder, only: [:name, :email]}
schema "users" do
field(:name, :string)
field(:provider, :string)
field(:token, :string)
field(:email, :string)
has_many(:topics, Discuss.Topic)
has_many(:comments, Discuss.Comment)
times... | 24.52381 | 60 | 0.638835 |
79219ad6678ab375efb866a8b61a2d8a69b86636 | 71 | exs | Elixir | test/views/layout_view_test.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | 1 | 2016-09-19T01:31:35.000Z | 2016-09-19T01:31:35.000Z | test/views/layout_view_test.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | null | null | null | defmodule Rumbl.LayoutViewTest do
use Rumbl.ConnCase, async: true
end | 23.666667 | 33 | 0.816901 |
79226a01f4ffc0447b716f1a2161b6bb7203cf8f | 184 | exs | Elixir | lib/mix/test/fixtures/umbrella_dep/mix.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/mix/test/fixtures/umbrella_dep/mix.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/fixtures/umbrella_dep/mix.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule UmbrellaDep.Mixfile do
use Mix.Project
def project do
[app: :umbrella_dep,
deps: deps]
end
defp deps do
[{:umbrella, path: "deps/umbrella"}]
end
end
| 14.153846 | 40 | 0.652174 |
79229571989409b10d857d3b4b411357881bd2b1 | 5,938 | ex | Elixir | oeml-sdk/elixir/lib/oeml_restapi/api/orders.ex | scorninpc/coinapi-sdk | e4ff6b79a26bb412ab9ac5f2d1e4a7cef560b1e7 | [
"MIT"
] | null | null | null | oeml-sdk/elixir/lib/oeml_restapi/api/orders.ex | scorninpc/coinapi-sdk | e4ff6b79a26bb412ab9ac5f2d1e4a7cef560b1e7 | [
"MIT"
] | null | null | null | oeml-sdk/elixir/lib/oeml_restapi/api/orders.ex | scorninpc/coinapi-sdk | e4ff6b79a26bb412ab9ac5f2d1e4a7cef560b1e7 | [
"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 OEML-RESTAPI.Api.Orders do
@moduledoc """
API calls for all endpoints tagged `Orders`.
"""
alias OEML-RESTAPI.Connection
import OEML-RESTAP... | 37.1125 | 265 | 0.685584 |
7922a02cd3ed073a24f29144fda6b093a3110d9c | 69 | ex | Elixir | lib/restfully/repo.ex | marcsugiyama/restfully | 8352bc5718c1298c836ed72fc9d7b5cd4a9695bb | [
"Apache-2.0"
] | 1 | 2018-03-14T23:48:57.000Z | 2018-03-14T23:48:57.000Z | lib/restfully/repo.ex | marcsugiyama/restfully | 8352bc5718c1298c836ed72fc9d7b5cd4a9695bb | [
"Apache-2.0"
] | null | null | null | lib/restfully/repo.ex | marcsugiyama/restfully | 8352bc5718c1298c836ed72fc9d7b5cd4a9695bb | [
"Apache-2.0"
] | 2 | 2018-06-04T12:37:32.000Z | 2021-06-15T11:45:05.000Z | defmodule Restfully.Repo do
use Ecto.Repo, otp_app: :restfully
end
| 17.25 | 36 | 0.782609 |
7922a970743da9acb5c25e6d2faa4beaf15c9087 | 389 | exs | Elixir | priv/repo/migrations/20171008095044_create_input_types.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171008095044_create_input_types.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171008095044_create_input_types.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | defmodule Escala.Repo.Migrations.CreateInputTypes do
use Ecto.Migration
def change do
create table(:input_types, primary_key: false) do
add :id, :uuid, primary_key: true, default: fragment("uuid_generate_v4()")
add :name, :text, null: false
add :has_option, :boolean, default: false, null: fal... | 27.785714 | 80 | 0.699229 |
7922b6a79af9b8cab124ab991592ca12aa7422d1 | 2,421 | ex | Elixir | plugins/one_chat/lib/one_chat_web/views/client_view.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat_web/views/client_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat_web/views/client_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChatWeb.ClientView do
use OneChatWeb, :view
def page_loading do
"""
<style>
#initial-page-loading .loading-animation {
background: linear-gradient(to top, #6c6c6c 0%, #aaaaaa 100%);
z-index: 1000;
}
.loading-animation {
top: 0;
right: 0;
... | 25.484211 | 78 | 0.537794 |
7923095ab736978e76d59d31524960d4d27a7a41 | 982 | ex | Elixir | lib/weather_api/cache/location_cache.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | lib/weather_api/cache/location_cache.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | lib/weather_api/cache/location_cache.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | defmodule WeatherApi.Cache.LocationCache do
use GenServer
alias WeatherApi.Models.Location
def start_link do
GenServer.start_link(__MODULE__, %{}, name: :location_cache)
end
def init(_) do
state = %{
location: %{}
}
{:ok, state}
end
... | 25.842105 | 71 | 0.588595 |
79231e1158dab09cf6e08ed2130fdda46fa18293 | 6,118 | ex | Elixir | lib/glimesh_web/live/support_modal/sub_form.ex | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/support_modal/sub_form.ex | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/support_modal/sub_form.ex | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.SupportModal.SubForm do
use GlimeshWeb, :live_view
alias Glimesh.Accounts
alias Glimesh.Payments
@impl true
def render(assigns) do
~L"""
<div>
<%= if @subscribed do %>
<%= if @canceling do %>
<h5><%= gettext("Resubscribe") %></h5>
<%= if @stripe_error do %>... | 39.217949 | 203 | 0.628637 |
792323caa9d85f4926a63814a69de5fb521fcb07 | 450 | exs | Elixir | test/shared/cache_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 845 | 2017-02-14T14:16:11.000Z | 2022-03-30T04:13:08.000Z | test/shared/cache_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 146 | 2017-04-29T16:11:14.000Z | 2022-03-29T08:49:05.000Z | test/shared/cache_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 50 | 2017-08-17T13:44:06.000Z | 2022-03-30T11:29:59.000Z | defmodule Nebulex.CacheTest do
@moduledoc """
Shared Tests
"""
defmacro __using__(_opts) do
quote do
use Nebulex.Cache.EntryTest
use Nebulex.Cache.EntryExpirationTest
use Nebulex.Cache.EntryPropTest
use Nebulex.Cache.QueryableTest
use Nebulex.Cache.TransactionTest
use Ne... | 23.684211 | 44 | 0.722222 |
79232e6ad5e3a51721978a07740ac99427ebbe4f | 1,451 | ex | Elixir | lib/lavapotion/stage/producer.ex | SamOphis/lavapotion | ccc5b144cc0eff554fc27dacf215e83842e13810 | [
"Apache-2.0"
] | 3 | 2018-11-25T00:57:43.000Z | 2019-05-16T13:13:26.000Z | lib/lavapotion/stage/producer.ex | SamOphis/lavapotion | ccc5b144cc0eff554fc27dacf215e83842e13810 | [
"Apache-2.0"
] | 2 | 2018-12-13T22:54:49.000Z | 2018-12-13T22:58:48.000Z | lib/lavapotion/stage/producer.ex | SamOphis/lavapotion | ccc5b144cc0eff554fc27dacf215e83842e13810 | [
"Apache-2.0"
] | 1 | 2019-01-16T23:16:37.000Z | 2019-01-16T23:16:37.000Z | # Copyright 2018 Sam Pritchard
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 29.02 | 74 | 0.684356 |
79235247d5dd05a12816f19611e55138540d1054 | 1,102 | exs | Elixir | config/dev.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | config/dev.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | config/dev.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :my_app_810758, MyApp_810758.Endpoint,
http: [... | 30.611111 | 74 | 0.715971 |
79235d6d90fdcc750b05f261a4c48606f666dbff | 1,679 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device_recent_users.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device_recent_users.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device_recent_users.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.58 | 142 | 0.727219 |
79236af00d40a26541b5b979c1c45459141d0f99 | 3,627 | exs | Elixir | test/rust/fn_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 3 | 2021-12-20T04:46:00.000Z | 2022-01-31T22:26:44.000Z | test/rust/fn_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 1 | 2021-12-20T14:46:50.000Z | 2021-12-20T14:46:50.000Z | test/rust/fn_test.exs | patefacio/kojin | 34f1959b7fa5fdc48e07ae6d81f8fa3ab31af982 | [
"MIT"
] | 1 | 2021-12-20T00:15:52.000Z | 2021-12-20T00:15:52.000Z | defmodule FnTest do
use ExUnit.Case
import Kojin
import Kojin.Rust.{Type, Fn, Parm, ToCode}
alias Kojin.Rust.Fn
import TestHelper
test "fn sigs" do
doc = "A simple function"
f = fun("f", doc, [])
assert f.name == :f
assert f.doc == doc
parm1 = parm(:a, :A, "An a")
f = fun(:f, doc... | 23.4 | 95 | 0.403364 |
7923e95a4b923d18042f9a4cc0617aec0ba6624a | 3,411 | exs | Elixir | test/igwet/admin/admin_test.exs | TheSwanFactory/igwet | 0a450686d1d222eb8e39e23ba5d2ea83657862d1 | [
"MIT"
] | null | null | null | test/igwet/admin/admin_test.exs | TheSwanFactory/igwet | 0a450686d1d222eb8e39e23ba5d2ea83657862d1 | [
"MIT"
] | 18 | 2018-02-25T11:13:46.000Z | 2022-03-28T03:43:38.000Z | test/igwet/admin/admin_test.exs | TheSwanFactory/igwet | 0a450686d1d222eb8e39e23ba5d2ea83657862d1 | [
"MIT"
] | 1 | 2019-01-04T12:16:47.000Z | 2019-01-04T12:16:47.000Z | defmodule Igwet.AdminTest do
use Igwet.DataCase
doctest Igwet.Admin
alias Igwet.Admin
describe "users" do
alias Igwet.Admin.User
@valid_attrs %{
authid: "some authid",
avatar: "some avatar",
last_login: ~N[2010-04-17 14:00:00],
name: "some name",
email: "me@me.com"
}... | 29.405172 | 82 | 0.627382 |
7923eded6db36cc6b74c4330c5ad16126a03bf22 | 537 | exs | Elixir | config/config.exs | zacky1972/basic_math | 78f65a731fc57e2a45324fe55005151c29d45f54 | [
"Apache-2.0"
] | null | null | null | config/config.exs | zacky1972/basic_math | 78f65a731fc57e2a45324fe55005151c29d45f54 | [
"Apache-2.0"
] | null | null | null | config/config.exs | zacky1972/basic_math | 78f65a731fc57e2a45324fe55005151c29d45f54 | [
"Apache-2.0"
] | 1 | 2021-12-07T01:52:18.000Z | 2021-12-07T01:52:18.000Z | # `import Config` instead of `use Mix.Config` when Elixir 1.9+
use Mix.Config
if Mix.env() == :dev do
config :git_hooks,
auto_install: true,
verbose: true,
branches: [
whitelist: ["feature-.*"],
blacklist: ["main"]
],
hooks: [
pre_commit: [
tasks: [
{:cmd, "mix... | 19.888889 | 62 | 0.472998 |
7923f21e3901ce1ad70fa627ec2ded419ae07841 | 1,294 | exs | Elixir | mix.exs | Qqwy/elixir_currying | f673e2d24728ebe449a3f8752a2617f0d56dc7b7 | [
"MIT"
] | 29 | 2016-07-09T21:22:22.000Z | 2019-05-07T18:19:26.000Z | mix.exs | Qqwy/elixir-currying | f673e2d24728ebe449a3f8752a2617f0d56dc7b7 | [
"MIT"
] | 26 | 2019-08-30T05:26:02.000Z | 2022-03-24T07:14:22.000Z | mix.exs | Qqwy/elixir-currying | f673e2d24728ebe449a3f8752a2617f0d56dc7b7 | [
"MIT"
] | 2 | 2017-06-22T05:21:17.000Z | 2018-10-01T09:08:14.000Z | defmodule Currying.Mixfile do
use Mix.Project
def project do
[app: :currying,
version: "1.0.3",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description()
]
end
# Configuration fo... | 23.527273 | 115 | 0.595827 |
7923f5835946561fc7988beb117d4a6d3bfc17ec | 821 | ex | Elixir | lib/ipay88/signature.ex | thekirinlab/ipay88 | 9481f432a246a6e47cfd5c7954f200cdf4c88c0e | [
"Apache-2.0"
] | 6 | 2021-07-26T09:39:43.000Z | 2021-09-06T01:50:10.000Z | lib/ipay88/signature.ex | thekirinlab/ipay88 | 9481f432a246a6e47cfd5c7954f200cdf4c88c0e | [
"Apache-2.0"
] | null | null | null | lib/ipay88/signature.ex | thekirinlab/ipay88 | 9481f432a246a6e47cfd5c7954f200cdf4c88c0e | [
"Apache-2.0"
] | null | null | null | defmodule IPay88.Signature do
@moduledoc """
Generate signatures for iPay88
"""
alias IPay88.Config
@doc """
Generate signature using SHA-256
## Examples
iex> IPay88.Signature.generate_payment_request_signature("A00000001", "1.00", "MYR")
"110f0be755ccfa9373aa38104bafbc5c6e5462344e44bcfbb7... | 22.805556 | 90 | 0.671133 |
792419bb85ad61be197e56a6537cc26611b35a52 | 19,521 | exs | Elixir | test/basic/accounts_test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | test/basic/accounts_test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | test/basic/accounts_test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule Basic.AccountsTest do
use Basic.DataCase
alias Basic.Accounts
import Basic.AccountsFixtures
alias Basic.Accounts.{User, UserToken}
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
refute Accounts.get_user_by_email("unknown@example.com")
... | 34.068063 | 173 | 0.659239 |
7924a415db98b7d7ceac097c1514e810ea4c62e2 | 1,089 | ex | Elixir | apps/reaper/lib/reaper/decoder/csv.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/reaper/lib/reaper/decoder/csv.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/reaper/lib/reaper/decoder/csv.ex | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | NimbleCSV.define(CsvParser, [])
defmodule Reaper.Decoder.Csv do
@moduledoc """
Reaper.Decoder implementation to decode a csv file into a stream of records
"""
defmodule CsvError do
defexception [:message]
end
@behaviour Reaper.Decoder
@impl Reaper.Decoder
def decode({:file, filename}, %SmartCity... | 24.2 | 94 | 0.61157 |
7924b9e361bf5313d7b97710482d5609c261d82e | 981 | exs | Elixir | test/models/appointment_test.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | test/models/appointment_test.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | test/models/appointment_test.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.AppointmentTest do
use Apiv4.ModelCase
alias Apiv4.Appointment
test "creation should work" do
account = build_account
company = build_company account
appointment_params = %{
"external_reference" => "fajskdf234",
"company_id" => company.id,
"golive_at" => Ecto.DateTim... | 31.645161 | 73 | 0.678899 |
7924ccecaab802dd6c5e078220ac3a6ec0703be1 | 3,560 | ex | Elixir | lib/vintage_net_bridge.ex | nerves-networking/vintage_net_bridge | 6c937d1cb7dc11e5b5537feaba144303dac3d3d4 | [
"Apache-2.0"
] | 3 | 2020-04-23T22:44:04.000Z | 2020-08-03T22:02:19.000Z | lib/vintage_net_bridge.ex | nerves-networking/vintage_net_bridge | 6c937d1cb7dc11e5b5537feaba144303dac3d3d4 | [
"Apache-2.0"
] | 9 | 2020-04-23T22:36:49.000Z | 2022-01-24T10:18:25.000Z | lib/vintage_net_bridge.ex | nerves-networking/vintage_net_bridge | 6c937d1cb7dc11e5b5537feaba144303dac3d3d4 | [
"Apache-2.0"
] | 1 | 2020-06-24T09:37:31.000Z | 2020-06-24T09:37:31.000Z | defmodule VintageNetBridge do
@moduledoc """
Configure network bridges with VintageNet
Configurations for this technology are maps with a `:type` field set to
`VintageNetBridge`. The following additional fields are supported:
* `:vintage_net_bridge` - Bridge options
* `:interfaces` - Set to a list of in... | 27.8125 | 95 | 0.662079 |
7924d92cacdbc91fa22a4c046f2beba8e9f2bf37 | 2,100 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/find_devices_by_owner_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/find_devices_by_owner_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/find_devices_by_owner_response.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 ... | 37.5 | 131 | 0.739524 |
7924e074bb5fa1b72ebc8b04570d9aa6c04c8c7b | 4,372 | ex | Elixir | lib/barna.ex | fartek/barna | cdcc7a89fa3e66459568863cf7713651abb0c688 | [
"MIT"
] | null | null | null | lib/barna.ex | fartek/barna | cdcc7a89fa3e66459568863cf7713651abb0c688 | [
"MIT"
] | null | null | null | lib/barna.ex | fartek/barna | cdcc7a89fa3e66459568863cf7713651abb0c688 | [
"MIT"
] | null | null | null | defmodule Barna do
@moduledoc """
This module contains all of the macro magic that ultimately generates the additional functions
in the schemas that `use` it.
Functions that are added to schemas:
- fetch/1
- list/1
"""
import Ecto.Query
defmacro __using__(_) do
quote do
use Ecto.Schema
... | 29.146667 | 122 | 0.509149 |
7924e118095b1693a427edf198efaae4c1245593 | 26,718 | ex | Elixir | lib/sweet_xml.ex | J3RN/sweet_xml | 18f3b299b14e0d33f30b9e873c2ca83231a1ef55 | [
"MIT"
] | null | null | null | lib/sweet_xml.ex | J3RN/sweet_xml | 18f3b299b14e0d33f30b9e873c2ca83231a1ef55 | [
"MIT"
] | null | null | null | lib/sweet_xml.ex | J3RN/sweet_xml | 18f3b299b14e0d33f30b9e873c2ca83231a1ef55 | [
"MIT"
] | null | null | null | defmodule SweetXpath do
@moduledoc false
defmodule Priv do
@moduledoc false
@doc false
def self_val(val), do: val
end
defstruct path: ".",
is_value: true,
is_list: false,
is_keyword: false,
is_optional: false,
cast_to: false,
transform_fun: &(Priv.self_val/1),
namespace... | 34.209987 | 165 | 0.605622 |
7925000c9174b2f646cd6f6ebbe7ce1e3d2138d8 | 1,154 | exs | Elixir | test/100/p7_test.exs | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | test/100/p7_test.exs | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | test/100/p7_test.exs | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | defmodule P7Test do
use ExUnit.Case
doctest P7
alias P7
import TestHelper, only: [mesure: 3]
test "01.txt", do: assert P7.solve(5) == true
test "02.txt", do: assert P7.solve(12) == false
test "03.txt", do: assert P7.solve(100_000) == true
test "04.txt", do: assert P7.solve(2_252) == true
test "05.txt", do: a... | 32.055556 | 55 | 0.643847 |
792547d271ba018a33d5fb9dc324fe3a120d0330 | 190 | ex | Elixir | lib/live_view/sales.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | lib/live_view/sales.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | 4 | 2021-07-19T22:03:03.000Z | 2021-07-22T16:38:34.000Z | lib/live_view/sales.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | defmodule LiveView.Sales do
def new_orders do
Enum.random(5..20)
end
def sales_amount do
Enum.random(100..1000)
end
def satisfaction do
Enum.random(90..95)
end
end
| 13.571429 | 27 | 0.678947 |
79256312e3824cfbfb6e6dd2ea3e1acdde1933ec | 8,797 | ex | Elixir | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v1/api/group_items.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v1/api/group_items.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v1/api/group_items.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... | 51.145349 | 713 | 0.721041 |
7925794e3cdfd8ac3db1be78921751cf5fd9361c | 1,085 | ex | Elixir | lib/hologram/compiler/transformers/alias_directive_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/transformers/alias_directive_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/transformers/alias_directive_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.AliasDirectiveTransformer do
alias Hologram.Compiler.Helpers
alias Hologram.Compiler.IR.AliasDirective
def transform({:alias, _, [{{_, _, [{_, _, module_segs}, _]}, _, aliases}, _]}) do
transform_multi_alias(module_segs, aliases)
end
def transform({:alias, _, [{{_, _, [{_, _,... | 28.552632 | 84 | 0.656221 |
792583a9cbad107528033692582ce89442379a3e | 1,033 | exs | Elixir | exercism.io/elixir/bob/bob.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | exercism.io/elixir/bob/bob.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | exercism.io/elixir/bob/bob.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | # Bob
# Bob is a lackadaisical teenager. In conversation, his responses are very limited.
# Bob answers 'Sure.' if you ask him a question.
# He answers 'Whoa, chill out!' if you yell at him.
# He says 'Fine. Be that way!' if you address him without actually saying anything.
# He answers 'Whatever.' to anything else... | 27.918919 | 83 | 0.596321 |
79258e08fb9414648bed9b2f07a85bfa4961a5df | 1,119 | exs | Elixir | config/config.exs | ramortegui/pcal | 6a5a3554f6cd1f3fe2e8458de1d8edf5861cddd1 | [
"MIT"
] | null | null | null | config/config.exs | ramortegui/pcal | 6a5a3554f6cd1f3fe2e8458de1d8edf5861cddd1 | [
"MIT"
] | null | null | null | config/config.exs | ramortegui/pcal | 6a5a3554f6cd1f3fe2e8458de1d8edf5861cddd1 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.748883 |
7925954b4b2d89bdb41d5074fe022e88cb179f8d | 479 | ex | Elixir | lib/ex_admin/themes/active_admin/page.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | lib/ex_admin/themes/active_admin/page.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | lib/ex_admin/themes/active_admin/page.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule ExAdmin.Theme.ActiveAdmin.Page do
@moduledoc false
use Xain
def columns(cols) do
col_count = Enum.count(cols)
count = Kernel.div 12, col_count
div ".columns" do
for {html, inx} <- Enum.with_index(cols) do
style = "width: #{100 / (12 / count) - 2}%;" <>
if inx < (col_... | 26.611111 | 70 | 0.574113 |
79259d4c8b7eafdaf1d20a059aee2daaadb3ed5e | 475 | exs | Elixir | mix.exs | skunkwerks/ucl-elixir | 059183f107db4997958e8cd57ae5a2e1557835a7 | [
"MIT"
] | null | null | null | mix.exs | skunkwerks/ucl-elixir | 059183f107db4997958e8cd57ae5a2e1557835a7 | [
"MIT"
] | null | null | null | mix.exs | skunkwerks/ucl-elixir | 059183f107db4997958e8cd57ae5a2e1557835a7 | [
"MIT"
] | null | null | null | defmodule UCL.MixProject do
use Mix.Project
def project do
[
app: :ucl,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_application... | 16.964286 | 59 | 0.56 |
7925be5b1b767a0468681b25d3ec7da4027c22c1 | 1,775 | ex | Elixir | lib/eth_event/transport.ex | etherharvest/eth_event | 488f526b382ca1c0ed5235d3a12ec059b0229fc4 | [
"MIT"
] | 1 | 2022-01-05T16:28:18.000Z | 2022-01-05T16:28:18.000Z | lib/eth_event/transport.ex | etherharvest/eth_event | 488f526b382ca1c0ed5235d3a12ec059b0229fc4 | [
"MIT"
] | null | null | null | lib/eth_event/transport.ex | etherharvest/eth_event | 488f526b382ca1c0ed5235d3a12ec059b0229fc4 | [
"MIT"
] | null | null | null | defmodule EthEvent.Transport do
@moduledoc """
Transport layer for JSON RPC from Ethereum nodes.
"""
use Tesla, docs: false, only: [:post]
alias EthEvent.Settings
############
# Public API
@doc """
Execute remote `method` with some optional `parameters`.
"""
@spec rpc(binary()) :: {:ok, term()}... | 21.91358 | 76 | 0.589859 |
7925d017c20f618c2efcc25d6467ca7593cdaadf | 2,625 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_security_marks.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_security_marks.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_security_marks.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 38.043478 | 123 | 0.736381 |
7925f7cde262274cb88c846e814b68c231fdff19 | 314 | ex | Elixir | lib/ext/map.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | lib/ext/map.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | lib/ext/map.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | defmodule Ext.Map do
def rename(map, old, new) do
case Map.pop(map, old, :not_found) do
{:not_found, _} -> map
{value, map} -> Map.put(map, new, value)
end
end
def rename(map, mapping) do
Enum.reduce(mapping, map, fn {old, new}, map ->
rename(map, old, new)
end)
end
end
| 20.933333 | 51 | 0.585987 |
79263310e2e5dd0b68a835a1e50122e16fcecde7 | 2,973 | ex | Elixir | lib/grovepi/board.ex | Tony1928/rpi-grovepi | 35fcf31607904aaff4b766a87e1328ff13866585 | [
"Apache-2.0"
] | 2 | 2018-09-06T21:30:01.000Z | 2018-09-06T21:30:08.000Z | lib/grovepi/board.ex | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | lib/grovepi/board.ex | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | defmodule GrovePi.Board do
@moduledoc """
Low-level interface for sending raw requests and receiving responses from a
GrovePi hat. Create one of these first and then use one of the other GrovePi
modules for interacting with a connected sensor, light, or actuator.
To check that your GrovePi hardware is workin... | 31.62766 | 84 | 0.695257 |
79264ed7b5893ff4d370a31ad66cd06a2aee804f | 1,892 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/list_clusters_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/list_clusters_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/list_clusters_response.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 ... | 37.84 | 253 | 0.739429 |
792683e6de0f9bf64e4c70f38e392246ebd17648 | 2,633 | ex | Elixir | lib/string_pinyin.ex | zhangsoledad/alchemic_pinyin | 5426c62b1a37e6b134d285c8f5ace9a52b3c36cb | [
"MIT"
] | 22 | 2016-03-29T07:50:15.000Z | 2018-08-23T09:49:41.000Z | lib/string_pinyin.ex | zhangsoledad/alchemic_pinyin | 5426c62b1a37e6b134d285c8f5ace9a52b3c36cb | [
"MIT"
] | 2 | 2016-11-02T08:06:47.000Z | 2021-12-23T13:22:38.000Z | lib/string_pinyin.ex | zhangsoledad/alchemic_pinyin | 5426c62b1a37e6b134d285c8f5ace9a52b3c36cb | [
"MIT"
] | 4 | 2016-03-31T05:24:30.000Z | 2021-10-07T02:06:49.000Z | defmodule String.Pinyin do
@moduledoc ~S"""
A Pinyin Libary.
"""
@external_resource data_path = Path.join(__DIR__, "data/pinyin.dat")
file_stream = File.stream!(data_path) |> Stream.with_index
pinyin_codes = Enum.reduce(file_stream, [], fn({line, index}, acc) ->
[han, pinyin, tone, pinyin_with_tone ] ... | 27.715789 | 95 | 0.640334 |
79268720b3c839203799c5093b32db3fc34cc57e | 12,830 | ex | Elixir | lib/changelog/schema/episode/episode.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | null | null | null | lib/changelog/schema/episode/episode.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | null | null | null | lib/changelog/schema/episode/episode.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | null | null | null | defmodule Changelog.Episode do
use Changelog.Schema, default_sort: :published_at
alias Changelog.{
EpisodeHost,
EpisodeGuest,
EpisodeRequest,
EpisodeTopic,
EpisodeStat,
EpisodeSponsor,
Files,
Github,
NewsItem,
Notifier,
Podcast,
Regexp,
Search,
Transcripts
... | 29.562212 | 98 | 0.669447 |
79269e20ddfdf6049e1c6cf65b5d576f6b12e28d | 1,992 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_playlist_item.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_playlist_item.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_playlist_item.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.888889 | 143 | 0.75 |
7926b85d744e501bc1bc7262b9ed484e5ebeea9b | 106 | ex | Elixir | lib/cai_data/repo.ex | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | lib/cai_data/repo.ex | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | lib/cai_data/repo.ex | Bentheburrito/caidata | 31ee94691293b926de77194585714d75c80fea0d | [
"MIT"
] | null | null | null | defmodule CAIData.Repo do
use Ecto.Repo,
otp_app: :caidata,
adapter: Ecto.Adapters.Postgres
end
| 17.666667 | 35 | 0.726415 |
7926bcab77d18feb0391162bbf5e5d5387f57bbe | 2,447 | ex | Elixir | test/support/test_client.ex | ashneyderman/barracuda | ecce6a1b4a217c0b676d7bfc711897817f4bc12e | [
"MIT"
] | 6 | 2016-08-24T17:53:31.000Z | 2021-02-05T11:18:16.000Z | test/support/test_client.ex | ashneyderman/barracuda | ecce6a1b4a217c0b676d7bfc711897817f4bc12e | [
"MIT"
] | 7 | 2016-12-28T13:09:30.000Z | 2017-03-06T11:11:10.000Z | test/support/test_client.ex | ashneyderman/barracuda | ecce6a1b4a217c0b676d7bfc711897817f4bc12e | [
"MIT"
] | null | null | null | defmodule Barracuda.TestClient.Hello1 do
@behaviour Barracuda.Interceptor
import Barracuda.Call
def init(opts), do: opts
def link(next, %Barracuda.Call{assigns: current} = params, _opts \\ []) do
params
|> assign(:chain, record_chain(Map.get(current, :chain, [])))
|> next.()
end
defp record_ch... | 26.89011 | 96 | 0.67593 |
7926c2218184ecd87054585184b9ba45b6004249 | 1,277 | exs | Elixir | test/benchmark.exs | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | 4 | 2018-10-28T16:35:31.000Z | 2021-08-17T05:49:55.000Z | test/benchmark.exs | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | null | null | null | test/benchmark.exs | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | null | null | null | alias Pbuf.Tests.{Everything, Child, Sub}
everything = %Everything{
bool: true, int32: -21, int64: -9922232, uint32: 82882, uint64: 199922332321984,
sint32: -221331, sint64: -29, fixed32: 4294967295, sfixed32: -2147483647,
fixed64: 1844674407370955161, sfixed64: -9223372036854775807,
float: 2.5, double: -3.551... | 47.296296 | 100 | 0.665623 |
7926c6f91d170f6412c052d95b71f91ff2ea2d16 | 211 | exs | Elixir | priv/repo/migrations/20190325091759_add_project_id_foreign_key.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20190325091759_add_project_id_foreign_key.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20190325091759_add_project_id_foreign_key.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | defmodule Evercam.Repo.Migrations.AddProjectIdForeignKey do
use Ecto.Migration
def change do
alter table(:cameras) do
add :project_id, references(:projects, on_delete: :nothing)
end
end
end
| 21.1 | 65 | 0.739336 |
7926c745744097f135c23ca474d5ec964f0caf9b | 461 | ex | Elixir | web/models/ticket.ex | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | web/models/ticket.ex | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | web/models/ticket.ex | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | defmodule SprintPoker.Ticket do
use SprintPoker.Web, :model
schema "tickets" do
field :name, :string
field :points, :string
belongs_to :game, SprintPoker.Game, type: :binary_id
timestamps
end
@required_fields ~w(name game_id)
@optional_fields ~w(points)
def changeset(model, params \\ :em... | 21.952381 | 56 | 0.683297 |
7926d3247389c85c639c4fcdc657beab35134ff8 | 2,598 | ex | Elixir | lib/exredis/sub.ex | aforward-oss/exredis | cf9e72e971231eaf1e99c422bd84bbb40215c84b | [
"MIT"
] | null | null | null | lib/exredis/sub.ex | aforward-oss/exredis | cf9e72e971231eaf1e99c422bd84bbb40215c84b | [
"MIT"
] | null | null | null | lib/exredis/sub.ex | aforward-oss/exredis | cf9e72e971231eaf1e99c422bd84bbb40215c84b | [
"MIT"
] | null | null | null | defmodule Exredis.Sub do
@moduledoc """
Subscribe functions for exredis
"""
defmacro __using__(_opts) do
quote do
import Exredis.Sub
end
end
@type reconnect :: :no_reconnect | integer
@type max_queue :: :infinity | integer
@type behaviour :: :drop | :exit
@type start_link :: { :ok, ... | 26.510204 | 86 | 0.628945 |
7926d85ebd23682c8252821c6c37bef482e0d577 | 5,483 | ex | Elixir | lib/float_pp/round.ex | juliandicks/elixir-float_pp | 129ff8f71e90b69d70be2d1fa4f7fb3d7a96945e | [
"Apache-2.0"
] | 2 | 2019-04-29T17:51:56.000Z | 2020-01-02T18:25:45.000Z | lib/float_pp/round.ex | juliandicks/elixir-float_pp | 129ff8f71e90b69d70be2d1fa4f7fb3d7a96945e | [
"Apache-2.0"
] | 2 | 2016-06-10T18:59:39.000Z | 2020-04-10T10:22:37.000Z | lib/float_pp/round.ex | ewildgoose/elixir-float_pp | 303421cddbb97e9877edb1d79cc33c5ede236ed3 | [
"Apache-2.0"
] | 2 | 2016-08-16T08:38:56.000Z | 2019-04-29T17:52:05.000Z | defmodule FloatPP.Round do
@moduledoc """
Implement rounding of a list of decimal digits to an arbitrary precision
using one of several rounding algorithms.
Rounding algorithms are based on the definitions given in IEEE 754, but also
include 2 additional options (effectively the complementary versions):
#... | 40.614815 | 116 | 0.654569 |
7926dab55a6291ad73c352fb6b6fe4eb3b059a20 | 6,989 | ex | Elixir | lib/scanner/lib/utils.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | 8 | 2020-07-27T09:11:24.000Z | 2020-09-21T20:57:45.000Z | lib/scanner/lib/utils.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | 1 | 2021-05-14T13:30:27.000Z | 2021-05-14T13:30:27.000Z | lib/scanner/lib/utils.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | null | null | null | defmodule ExGherkin.Scanner.Utils do
@moduledoc false
def data_table_pipe_splitter(line, offset_count \\ 0)
def data_table_pipe_splitter(line, offset_count) when is_integer(offset_count) do
data_table_pipe_splitter(line, {true, false, offset_count, offset_count, "", []})
end
def data_table_pipe_splitte... | 28.295547 | 96 | 0.629561 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.