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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97de17803bfc6d58cfa198cdefca7a6cdca0c4e5 | 1,140 | ex | Elixir | lib/ark_elixir/signature.ex | Highjhacker/Ark-Elixir | 02925b4d19ff72f1f367a0a0096119be6cc42ca5 | [
"MIT"
] | 14 | 2017-10-30T21:25:12.000Z | 2021-04-30T01:22:43.000Z | lib/ark_elixir/signature.ex | Highjhacker/Ark-Elixir | 02925b4d19ff72f1f367a0a0096119be6cc42ca5 | [
"MIT"
] | 8 | 2017-12-24T00:00:42.000Z | 2018-01-05T18:45:13.000Z | lib/ark_elixir/signature.ex | Highjhacker/Ark-Elixir | 02925b4d19ff72f1f367a0a0096119be6cc42ca5 | [
"MIT"
] | 2 | 2017-12-24T17:55:41.000Z | 2018-02-22T20:17:04.000Z | defmodule Ark_Elixir.Signature do
@moduledoc """
Operations for Signatures.
"""
@doc """
Get the fee for a signature.
## Examples
iex> Ark_Elixir.Signature.get_signature_fee
%{"fee" => 500000000, "success" => true}
iex> Ark_Elixir.Signature.get_signature_fee([network: ... | 31.666667 | 115 | 0.657895 |
97de398d31618e50f2e77d15e6ad36fa71741c94 | 141 | exs | Elixir | test/jorb_demo_test.exs | appcues/jorb_demo | 377b93fb7ae31955326a3112ed4a9a360a06e6b3 | [
"MIT"
] | null | null | null | test/jorb_demo_test.exs | appcues/jorb_demo | 377b93fb7ae31955326a3112ed4a9a360a06e6b3 | [
"MIT"
] | null | null | null | test/jorb_demo_test.exs | appcues/jorb_demo | 377b93fb7ae31955326a3112ed4a9a360a06e6b3 | [
"MIT"
] | null | null | null | defmodule JorbDemoTest do
use ExUnit.Case
doctest JorbDemo
test "greets the world" do
assert JorbDemo.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
97de41b8b6b23e551a03c1d1791607ba844b3f9c | 8,668 | ex | Elixir | lib/collision/polygon/regular_polygon.ex | tpoulsen/collision | 6dc6635e9a8623af3d5b88d901903040dc5b046f | [
"BSD-2-Clause"
] | 17 | 2016-08-01T22:10:27.000Z | 2021-03-11T10:43:50.000Z | lib/collision/polygon/regular_polygon.ex | smpoulsen/collision | 6dc6635e9a8623af3d5b88d901903040dc5b046f | [
"BSD-2-Clause"
] | 3 | 2016-08-02T02:15:58.000Z | 2016-08-18T19:29:14.000Z | lib/collision/polygon/regular_polygon.ex | smpoulsen/collision | 6dc6635e9a8623af3d5b88d901903040dc5b046f | [
"BSD-2-Clause"
] | 3 | 2016-08-18T18:48:41.000Z | 2019-04-21T14:21:44.000Z | defmodule Collision.Polygon.RegularPolygon do
@moduledoc """
A regular polygon is equiangular and equilateral -- all
angles and all sides be equal. With enough sides,
a regular polygon tends toward a circle.
"""
defstruct sides: 3, radius: 0, rotation_angle: 0.0, midpoint: %{x: 0, y: 0}, polygon: nil
ali... | 37.201717 | 103 | 0.651131 |
97de63c8491d283ba3ffb17ca499bcb294b3ca11 | 77 | exs | Elixir | test/test_helper.exs | Hermanlangner/events_dashboard | 30d5d3666ac8057bfd91dd33131d8132c97cfec9 | [
"MIT"
] | null | null | null | test/test_helper.exs | Hermanlangner/events_dashboard | 30d5d3666ac8057bfd91dd33131d8132c97cfec9 | [
"MIT"
] | null | null | null | test/test_helper.exs | Hermanlangner/events_dashboard | 30d5d3666ac8057bfd91dd33131d8132c97cfec9 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(EventsDashboard.Repo, :manual)
| 25.666667 | 61 | 0.805195 |
97de7fe5eefb9e7a99038c9430979449ad7b077a | 84 | exs | Elixir | test/helmsman_web/views/layout_view_test.exs | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 2 | 2017-10-25T14:21:36.000Z | 2018-08-24T17:49:51.000Z | test/helmsman_web/views/layout_view_test.exs | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 4 | 2017-10-18T01:36:16.000Z | 2018-03-20T20:07:41.000Z | test/helmsman_web/views/layout_view_test.exs | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | null | null | null | defmodule HelmsmanWeb.LayoutViewTest do
use HelmsmanWeb.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
97de84fa70b9d8920d1b23fe5428da6872ce8334 | 2,334 | ex | Elixir | lib/tilex_web/views/layout_view.ex | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | lib/tilex_web/views/layout_view.ex | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | lib/tilex_web/views/layout_view.ex | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | defmodule TilexWeb.LayoutView do
use TilexWeb, :view
@request_tracking Application.get_env(:tilex, :request_tracking)
def current_user(conn) do
Guardian.Plug.current_resource(conn)
end
def ga_identifier do
Application.get_env(:tilex, :ga_identifier)
end
def imgur_api_key(conn) do
current_u... | 28.120482 | 285 | 0.706084 |
97de8b57fedcdaee8b48ebb6f6bf6be7ea0fd5bd | 2,104 | exs | Elixir | test/pow_assent/ecto/user_identities/schema_test.exs | rjowens/pow_assent | 585f0012a8a1fcec5ce15f86e8fd24a838fa61b5 | [
"MIT"
] | null | null | null | test/pow_assent/ecto/user_identities/schema_test.exs | rjowens/pow_assent | 585f0012a8a1fcec5ce15f86e8fd24a838fa61b5 | [
"MIT"
] | null | null | null | test/pow_assent/ecto/user_identities/schema_test.exs | rjowens/pow_assent | 585f0012a8a1fcec5ce15f86e8fd24a838fa61b5 | [
"MIT"
] | null | null | null | module_raised_with =
try do
defmodule PowAssent.Test.UserIdentities.InvalidUserIdentity do
use PowAssent.Ecto.UserIdentities.Schema
end
rescue
e in PowAssent.Config.ConfigError -> e.message
end
defmodule PowAssent.Ecto.UserIdentities.SchemaTest do
use PowAssent.Test.Ecto.TestCase
doctest Po... | 31.878788 | 152 | 0.681559 |
97deb7903864da385fe8b67834fb26dcd0c0af85 | 1,255 | exs | Elixir | config/releases.exs | vbergae/postoffice | cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43 | [
"Apache-2.0"
] | null | null | null | config/releases.exs | vbergae/postoffice | cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43 | [
"Apache-2.0"
] | null | null | null | config/releases.exs | vbergae/postoffice | cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43 | [
"Apache-2.0"
] | null | null | null | import Config
config :postoffice, PostofficeWeb.Endpoint,
secret_key_base: {:system, "SECRET_KEY_BASE", default: "12121212"}
config :postoffice, pubsub_project_name: {:system, "GCLOUD_PUBSUB_PROJECT_ID", default: "test"}
config :postoffice, Postoffice.Repo,
username: {:system, "DB_USERNAME", default: "postgres"}... | 36.911765 | 95 | 0.69004 |
97decca7b6b29dc2952471b04e38e9f62c81a805 | 339 | ex | Elixir | lib/ja_serializer/formatter/relationship.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | 1 | 2017-08-31T04:00:15.000Z | 2017-08-31T04:00:15.000Z | lib/ja_serializer/formatter/relationship.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/formatter/relationship.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | null | null | null | defimpl JaSerializer.Formatter, for: JaSerializer.Builder.Relationship do
alias JaSerializer.Formatter.Utils
def format(rel) do
json = %{}
|> Utils.add_data_if_present(JaSerializer.Formatter.format(rel.data))
|> Utils.put_if_present(:links, Utils.array_to_hash(rel.links))
{Utils.format_key(rel.name... | 30.818182 | 73 | 0.746313 |
97ded81fa0aa33f224102c02bd40dd48dd36ae96 | 2,288 | ex | Elixir | lib/kuddle/config/utils.ex | IceDragon200/kuddle_config | f9006f20e4a05d968858f2b2bc9c625132e4ac54 | [
"MIT"
] | 1 | 2022-02-15T00:59:16.000Z | 2022-02-15T00:59:16.000Z | lib/kuddle/config/utils.ex | IceDragon200/kuddle_config | f9006f20e4a05d968858f2b2bc9c625132e4ac54 | [
"MIT"
] | null | null | null | lib/kuddle/config/utils.ex | IceDragon200/kuddle_config | f9006f20e4a05d968858f2b2bc9c625132e4ac54 | [
"MIT"
] | null | null | null | defmodule Kuddle.Config.Utils do
@spec apply_configuration(Keyword.t()) :: :ok
def apply_configuration(config) do
for {app_name, app_config} <- config do
base = Application.get_all_env(app_name)
merged = deep_merge(base, app_config)
# Persist key/value pairs for this app
for {k, v} <- ... | 26.917647 | 84 | 0.662587 |
97ded8dfff24c6d3fa6ab7784b55c457ee478cbd | 467 | ex | Elixir | lib/react_chatroom_web/authenticate.ex | dannypsnl/react_chatroom | 7d2da19272f3a635fdaaba940551f9ae9483f877 | [
"BSD-2-Clause"
] | null | null | null | lib/react_chatroom_web/authenticate.ex | dannypsnl/react_chatroom | 7d2da19272f3a635fdaaba940551f9ae9483f877 | [
"BSD-2-Clause"
] | null | null | null | lib/react_chatroom_web/authenticate.ex | dannypsnl/react_chatroom | 7d2da19272f3a635fdaaba940551f9ae9483f877 | [
"BSD-2-Clause"
] | null | null | null | defmodule ReactChatroomWeb.Authenicate do
@user_salt "rwlkzxncx"
def sign(data) do
Phoenix.Token.sign(ReactChatroomWeb.Endpoint, @user_salt, data)
end
def verify(token) do
Phoenix.Token.verify(ReactChatroomWeb.Endpoint, @user_salt, token, max_age: 365 * 24 * 3600)
end
@s Hashids.new(salt: @user_s... | 21.227273 | 96 | 0.691649 |
97df39e2543b55a760a8e14f28f5199fdcb9e0ae | 19,236 | exs | Elixir | lib/zeitperiode_test.exs | STUDITEMPS/jehovakel_ex_times | 093d4f96ed5bda345d6731a8ce30e9ab3eeb0e7b | [
"MIT"
] | null | null | null | lib/zeitperiode_test.exs | STUDITEMPS/jehovakel_ex_times | 093d4f96ed5bda345d6731a8ce30e9ab3eeb0e7b | [
"MIT"
] | 6 | 2021-03-22T03:04:58.000Z | 2021-12-22T09:26:24.000Z | lib/zeitperiode_test.exs | STUDITEMPS/jehovakel_ex_times | 093d4f96ed5bda345d6731a8ce30e9ab3eeb0e7b | [
"MIT"
] | 2 | 2021-06-28T06:45:36.000Z | 2021-07-05T09:27:42.000Z | defmodule Shared.ZeitperiodeTest do
use ExUnit.Case, async: true
use PropCheck
alias Shared.Zeitperiode, as: Periode
import Support.TimeAssertionHelper
describe "Konstruktion aus Date und Times" do
test "wenn von ist kleiner als bis" do
date = ~D[2018-03-20]
von = ~T[10:00:00]
bis = ~T... | 34.35 | 111 | 0.61073 |
97df6371f7cbc3000ef2b78ca14a9489769c045a | 3,824 | exs | Elixir | test/credo/check/code_helper_test.exs | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | test/credo/check/code_helper_test.exs | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | test/credo/check/code_helper_test.exs | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.Check.CodeHelperTest do
use Credo.TestHelper
alias Credo.Check.CodeHelper
test "it should return true" do
parent = {{:., [line: 5], [{:__aliases__, [counter: 0, line: 5], [:String]}, :split]},
[line: 5], [{:parameter1, [line: 5], nil}]}
child = {:parameter1, [line: 5], nil}... | 34.45045 | 150 | 0.489017 |
97df95298f438306e4d8709e316d2dd42c2dfd52 | 2,283 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/create_instance_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/spanner/lib/google_api/spanner/v1/model/create_instance_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/create_instance_metadata.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.42623 | 135 | 0.715287 |
97df9fbdfc4acc9835027807485c21e2a5e754bd | 3,369 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/htt_p2_health_check.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/htt_p2_health_check.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/htt_p2_health_check.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... | 51.830769 | 593 | 0.714455 |
97dfb064c232ee5eacc0789932343227a596de84 | 3,167 | ex | Elixir | lib/teslamate/vehicles.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | lib/teslamate/vehicles.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | lib/teslamate/vehicles.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles do
use Supervisor
require Logger
alias __MODULE__.Vehicle
alias TeslaMate.Settings.CarSettings
alias TeslaMate.Log.Car
alias TeslaMate.Log
@name __MODULE__
def start_link(opts) do
Supervisor.start_link(__MODULE__, opts, name: @name)
end
def list do
Superviso... | 24.742188 | 96 | 0.610357 |
97dfda8a6dcfbda85dec9a202fb38aae2af22ad0 | 4,462 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | 10 | 2018-04-12T18:16:40.000Z | 2018-04-14T06:05:42.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | 13 | 2018-05-25T19:31:49.000Z | 2018-05-31T14:27:43.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | 2 | 2018-04-12T18:19:47.000Z | 2018-04-12T18:57:46.000Z | defmodule NervesHubWWWWeb.AccountController do
use NervesHubWWWWeb, :controller
alias Ecto.Changeset
alias NervesHubWebCore.Accounts
alias NervesHubWebCore.Accounts.User
alias NervesHubWebCore.Accounts.Email
alias NervesHubWebCore.Mailer
alias NervesHubWWWWeb.AccountLive
plug(NervesHubWebCore.Plugs.Al... | 27.714286 | 94 | 0.606006 |
97e012e4be2cf22b4d2709e3402c01ecb47ca09a | 1,279 | ex | Elixir | lib/mix/start_sent_email_viewer_task.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | null | null | null | lib/mix/start_sent_email_viewer_task.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | null | null | null | lib/mix/start_sent_email_viewer_task.ex | clairton/bamboo | f2e4ddf177bbcf2c90d010c53c2fa9251fdf1b01 | [
"MIT"
] | 1 | 2020-04-21T12:36:34.000Z | 2020-04-21T12:36:34.000Z | defmodule Mix.Tasks.Bamboo.StartSentEmailViewer do
use Mix.Task
@moduledoc false
# This coud be used in the future by the public, but right now it's only
# suitable for development.
def run(_) do
Mix.Task.run("app.start")
{:ok, _} = Application.ensure_all_started(:cowboy)
Plug.Adapters.Cowboy.h... | 23.685185 | 76 | 0.592651 |
97e03ed55fae6b9f5e83667eb1ba6ad2e381ba8f | 337 | exs | Elixir | apps/kv/test/kv/bucket_test.exs | mareksuscak/elixir-kv-store | 243ef4ae6ff5a3aa7bbe78880059add26b1ab5f5 | [
"MIT"
] | null | null | null | apps/kv/test/kv/bucket_test.exs | mareksuscak/elixir-kv-store | 243ef4ae6ff5a3aa7bbe78880059add26b1ab5f5 | [
"MIT"
] | null | null | null | apps/kv/test/kv/bucket_test.exs | mareksuscak/elixir-kv-store | 243ef4ae6ff5a3aa7bbe78880059add26b1ab5f5 | [
"MIT"
] | null | null | null | defmodule KV.BucketTest do
use ExUnit.Case, async: true
setup do
{:ok, bucket} = KV.Bucket.start_link
{:ok, bucket: bucket}
end
test "stores values by key", %{bucket: bucket} do
assert KV.Bucket.get(bucket, "milk") == nil
KV.Bucket.put(bucket, "milk", 3)
assert KV.Bucket.get(bucket, "milk... | 22.466667 | 51 | 0.64095 |
97e040a40df5b1a5e488aa3118398f90b5d308af | 3,696 | ex | Elixir | lib/rig_inbound_gateway/api_proxy/handler/nats.ex | isabella232/reactive-interaction-gateway | f1b627d97bc648a3bd53223b9c3441f5d48b7c5b | [
"Apache-2.0"
] | null | null | null | lib/rig_inbound_gateway/api_proxy/handler/nats.ex | isabella232/reactive-interaction-gateway | f1b627d97bc648a3bd53223b9c3441f5d48b7c5b | [
"Apache-2.0"
] | 1 | 2021-02-23T18:08:32.000Z | 2021-02-23T18:08:32.000Z | lib/rig_inbound_gateway/api_proxy/handler/nats.ex | isabella232/reactive-interaction-gateway | f1b627d97bc648a3bd53223b9c3441f5d48b7c5b | [
"Apache-2.0"
] | null | null | null | defmodule RigInboundGateway.ApiProxy.Handler.Nats do
@moduledoc """
Handles requests for NATS targets.
"""
require Logger
use Rig.Config, [:timeout, :cors]
alias Plug.Conn
alias Rig.Connection.Codec
alias RigInboundGateway.ApiProxy.Handler
alias RigMetrics.ProxyMetrics
@behaviour Handler
@help... | 26.782609 | 98 | 0.626894 |
97e0423f381d2c3e46830c055aedc44c9a340451 | 4,067 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.481013 | 869 | 0.76297 |
97e051aa36b2450cfd0d4062792e3750a0966a09 | 63 | ex | Elixir | lib/tweet_bot_web/views/page_view.ex | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 14 | 2018-03-23T04:13:29.000Z | 2021-07-26T06:15:50.000Z | lib/tweet_bot_web/views/page_view.ex | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 2 | 2021-03-08T18:20:20.000Z | 2021-05-06T22:47:09.000Z | lib/tweet_bot_web/views/page_view.ex | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 3 | 2020-11-04T08:11:47.000Z | 2022-01-13T17:41:42.000Z | defmodule TweetBotWeb.PageView do
use TweetBotWeb, :view
end
| 15.75 | 33 | 0.809524 |
97e09221ecc1642f1ec972252c3db72f1b39c517 | 228 | exs | Elixir | test/lib/canvas_api/uuid_match_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | test/lib/canvas_api/uuid_match_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | test/lib/canvas_api/uuid_match_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.UUIDMatchTest do
use ExUnit.Case, async: true
require CanvasAPI.UUIDMatch
test "matches a UUID" do
uuid = Ecto.UUID.generate();
assert match?(CanvasAPI.UUIDMatch.match_uuid(), uuid)
end
end
| 20.727273 | 57 | 0.732456 |
97e09248c4c635ffb9061a0141ced75165cf9c76 | 3,951 | ex | Elixir | lib/commander.ex | Mendess2526/coxir_commander | df72cc61d464e074e305f155e87c96d9a42308fa | [
"Apache-2.0"
] | null | null | null | lib/commander.ex | Mendess2526/coxir_commander | df72cc61d464e074e305f155e87c96d9a42308fa | [
"Apache-2.0"
] | null | null | null | lib/commander.ex | Mendess2526/coxir_commander | df72cc61d464e074e305f155e87c96d9a42308fa | [
"Apache-2.0"
] | null | null | null | defmodule Coxir.Commander do
import __MODULE__.Helpers
defmacro __using__(_opts) do
quote do
unquote reset()
unquote definitions()
end
end
defmacro __before_compile__(environment) do
# Parameters
module = environment
|> Map.get(:module)
commands = module
|> Module.get_... | 19.273171 | 58 | 0.494305 |
97e0b249aded68315a1d8213fc6c0075a2076db0 | 4,035 | ex | Elixir | test/support/fixtures/import_types.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2020-08-12T12:34:40.000Z | 2020-08-12T12:34:40.000Z | test/support/fixtures/import_types.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | test/support/fixtures/import_types.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | defmodule Absinthe.Fixtures.ImportTypes do
defmodule AccountTypes do
use Absinthe.Schema.Notation
object :customer do
field :id, non_null(:id)
field :name, :string
field :mailing_address, :mailing_address
field :contact_methods, list_of(:contact_method)
end
object :employee d... | 23.87574 | 74 | 0.685006 |
97e0cc4f2e7e4a84f2044876dbb749d6bfb9efa7 | 1,292 | exs | Elixir | test/test_helper.exs | hauleth/cabbage | e29557f3a05f779407040930abdda41479a1fa8e | [
"MIT"
] | null | null | null | test/test_helper.exs | hauleth/cabbage | e29557f3a05f779407040930abdda41479a1fa8e | [
"MIT"
] | null | null | null | test/test_helper.exs | hauleth/cabbage | e29557f3a05f779407040930abdda41479a1fa8e | [
"MIT"
] | null | null | null | Logger.configure_backend(:console, colors: [enabled: false])
ExUnit.start(trace: "--trace" in System.argv())
# Beam files compiled on demand
path = Path.expand("../tmp/beams", __DIR__)
File.rm_rf!(path)
File.mkdir_p!(path)
Code.prepend_path(path)
defmodule CabbageTestHelper do
import ExUnit.CaptureIO
def run(fil... | 28.711111 | 108 | 0.698142 |
97e0ea67ef59f60c354a774829f45dff4add164b | 349 | ex | Elixir | lib/liberator/encoding/identity.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 36 | 2020-10-03T16:58:57.000Z | 2021-11-27T09:33:51.000Z | lib/liberator/encoding/identity.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 23 | 2020-10-13T00:23:03.000Z | 2022-03-10T11:05:22.000Z | lib/liberator/encoding/identity.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 1 | 2020-10-12T20:33:30.000Z | 2020-10-12T20:33:30.000Z | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule Liberator.Encoding.Identity do
@behaviour Liberator.Encoding
@moduledoc """
An implementation of the `identity` compression used in HTTP.
That is to say, a no-op function that returns its argument.
"""
@impl true
def... | 21.8125 | 63 | 0.73639 |
97e0f085fcdf0503d411cc0828d29db410d62f79 | 75 | ex | Elixir | lib/websocket_chat_web/views/layout_view.ex | c18t/elixir-phx-websocket-chat | 4dc921599b263a856a23d04200631bfee83e3fc3 | [
"WTFPL"
] | null | null | null | lib/websocket_chat_web/views/layout_view.ex | c18t/elixir-phx-websocket-chat | 4dc921599b263a856a23d04200631bfee83e3fc3 | [
"WTFPL"
] | null | null | null | lib/websocket_chat_web/views/layout_view.ex | c18t/elixir-phx-websocket-chat | 4dc921599b263a856a23d04200631bfee83e3fc3 | [
"WTFPL"
] | 1 | 2020-11-17T08:23:18.000Z | 2020-11-17T08:23:18.000Z | defmodule WebsocketChatWeb.LayoutView do
use WebsocketChatWeb, :view
end
| 18.75 | 40 | 0.84 |
97e10540eae4501793d6b955947b381786faff79 | 792 | ex | Elixir | web/channels/room_channel.ex | apodlaski/verk_web | 91c544b1f792f929e06f18e26b964e23a5771a8a | [
"MIT"
] | null | null | null | web/channels/room_channel.ex | apodlaski/verk_web | 91c544b1f792f929e06f18e26b964e23a5771a8a | [
"MIT"
] | null | null | null | web/channels/room_channel.ex | apodlaski/verk_web | 91c544b1f792f929e06f18e26b964e23a5771a8a | [
"MIT"
] | null | null | null | defmodule VerkWeb.RoomChannel do
use Phoenix.Channel
alias VerkWeb.TrackingJobsHandler
alias VerkWeb.TrackingQueuesHandler
@doc false
def join("rooms:jobs", _, socket) do
{:ok, _pid} = TrackingJobsHandler.start_link(self())
{:ok, socket}
end
@doc false
def join("rooms:queues", _, socket) do
... | 23.294118 | 63 | 0.67298 |
97e109a21e5038afa3259f4f6ce8084a29c6eb94 | 7,422 | exs | Elixir | test/mix/tasks/phoenix.gen.json_test.exs | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | test/mix/tasks/phoenix.gen.json_test.exs | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | test/mix/tasks/phoenix.gen.json_test.exs | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | Code.require_file "../../../installer/test/mix_helper.exs", __DIR__
defmodule Phoenix.DupJSONController do
end
defmodule Phoenix.DupJSONView do
end
defmodule Mix.Tasks.Phoenix.Gen.JsonTest do
use ExUnit.Case
import MixHelper
setup do
Mix.Task.clear
:ok
end
test "generates json resource" do
in... | 37.675127 | 105 | 0.638103 |
97e10bfa64ccf04c6778843557dd99dfa79d08a3 | 945 | exs | Elixir | config/config.exs | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | null | null | null | config/config.exs | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | 1 | 2018-05-31T02:43:11.000Z | 2018-05-31T02:43:11.000Z | config/config.exs | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"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 :yggdrasil,
ecto_repos: [Yggdrasil.Repo]... | 33.75 | 86 | 0.765079 |
97e1120e504fbec404726ae2edfed6bb65d665a7 | 377 | ex | Elixir | test/support/extensions/persistent_session/repo_mock.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | 1 | 2021-05-27T21:33:29.000Z | 2021-05-27T21:33:29.000Z | test/support/extensions/persistent_session/repo_mock.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | test/support/extensions/persistent_session/repo_mock.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule PowPersistentSession.Test.RepoMock do
@moduledoc false
alias Pow.Ecto.Schema.Password
alias PowPersistentSession.Test.Users.User
def get_by(User, [id: 1], _opts), do: %User{id: 1}
def get_by(User, [id: -1], _opts), do: nil
def get_by(User, [email: "test@example.com"], _opts),
do: %User{id: 1... | 31.416667 | 71 | 0.710875 |
97e137f980eda9f59e0da1c770fd7d79cbfc8d02 | 476 | exs | Elixir | tags/config/test.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | tags/config/test.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | tags/config/test.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"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 :tags, Tags.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :tags, Tags.Repo,
adapter: ... | 23.8 | 56 | 0.72479 |
97e139954e04a0eefdae73def216b678b2907d7d | 1,464 | exs | Elixir | test/test_helper.exs | rchallapalli/elixir-thrift | 729e3f616947a6c75762252bb2726221eea2e31b | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | rchallapalli/elixir-thrift | 729e3f616947a6c75762252bb2726221eea2e31b | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | rchallapalli/elixir-thrift | 729e3f616947a6c75762252bb2726221eea2e31b | [
"Apache-2.0"
] | null | null | null | ExUnit.configure(exclude: [pending: true], capture_log: true)
ExUnit.start()
defmodule ThriftTestHelpers do
defmacro __using__(_) do
quote do
require ThriftTestHelpers
import ThriftTestHelpers
end
end
def build_thrift_file(base_dir, {file_name, contents}) do
file_relative_path = Atom.to... | 23.238095 | 90 | 0.695355 |
97e17430375493f2e6f4a06a979a1dbcb3d7f553 | 553 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/inbound_nat_rule.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/inbound_nat_rule.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/inbound_nat_rule.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.InboundNatRule do
@moduledoc """
Inbound NAT rule of the load balancer.
"""
@derive [Poison.Enco... | 21.269231 | 87 | 0.712477 |
97e1a332c5e989e1eea9e0422c86ab785233c5eb | 403 | exs | Elixir | mix.exs | salmanebah/gen_thumbnail | 58e8e0ce8661b18725704c04cf2f33d7edd6e51e | [
"MIT"
] | 1 | 2019-06-06T12:03:37.000Z | 2019-06-06T12:03:37.000Z | mix.exs | salmanebah/gen_thumbnail | 58e8e0ce8661b18725704c04cf2f33d7edd6e51e | [
"MIT"
] | null | null | null | mix.exs | salmanebah/gen_thumbnail | 58e8e0ce8661b18725704c04cf2f33d7edd6e51e | [
"MIT"
] | null | null | null | defmodule GenThumbnail.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#... | 19.190476 | 59 | 0.655087 |
97e1c510b3f04bfc40fce8c32ab4572325c6cb61 | 1,580 | ex | Elixir | lib/plug_session_db_store_web/views/error_helpers.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | 3 | 2021-02-15T13:03:15.000Z | 2022-01-25T11:07:47.000Z | lib/plug_session_db_store_web/views/error_helpers.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | lib/plug_session_db_store_web/views/error_helpers.ex | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | defmodule PlugSessionDbStoreWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
c... | 32.916667 | 87 | 0.672152 |
97e21048a59f15cb91b48306297864202f7f85b4 | 8,105 | ex | Elixir | lib/stripe/subscriptions/subscription_schedule.ex | levfurtado/stripity_stripe_test | 28d9ebd366b046ec1ea05690fff5eaa15093e521 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_schedule.ex | levfurtado/stripity_stripe_test | 28d9ebd366b046ec1ea05690fff5eaa15093e521 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_schedule.ex | levfurtado/stripity_stripe_test | 28d9ebd366b046ec1ea05690fff5eaa15093e521 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.SubscriptionSchedule do
@moduledoc """
Work with Stripe subscription schedule objects.
"""
use Stripe.Entity
import Stripe.Request
@type plans :: %{
plan: String.t(),
quantity: pos_integer
}
@type phases :: %{
application_fee_percent: float | nil,... | 33.491736 | 98 | 0.537446 |
97e212d9c4a176f2fcf5ccf4a4ed353b7fc8816d | 417 | ex | Elixir | lib/hedwig_dad_joke/responders.ex | maxbeizer/hedwig_dad_joke | 11730fcd85b2a9a2ffe984aa66d4d6a9a699d280 | [
"MIT"
] | null | null | null | lib/hedwig_dad_joke/responders.ex | maxbeizer/hedwig_dad_joke | 11730fcd85b2a9a2ffe984aa66d4d6a9a699d280 | [
"MIT"
] | 5 | 2019-01-10T03:41:11.000Z | 2019-07-02T02:17:25.000Z | lib/hedwig_dad_joke/responders.ex | maxbeizer/hedwig_dad_joke | 11730fcd85b2a9a2ffe984aa66d4d6a9a699d280 | [
"MIT"
] | null | null | null | defmodule HedwigDadJoke.Responders do
@moduledoc """
Responders for the dad joke plugin.
"""
use Hedwig.Responder
@joke_module Application.get_env(:hedwig_dad_joke, :joke_module, HedwigDadJoke)
@usage """
hedwig dad joke - Replies with a joke that will make your eyes roll
"""
respond ~r/(dadjoke|dad ... | 26.0625 | 81 | 0.705036 |
97e2216246a8c2c32d7f67ed5e8e782f6029f63b | 1,434 | ex | Elixir | lib/xeroxero/core_api/models/journals/journal/journal_line.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-12-01T18:21:31.000Z | 2021-12-01T18:21:31.000Z | lib/xeroxero/core_api/models/journals/journal/journal_line.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | null | null | null | lib/xeroxero/core_api/models/journals/journal/journal_line.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-10-01T12:09:46.000Z | 2021-10-01T12:09:46.000Z | defmodule XeroXero.CoreApi.Models.Journals.Journal.JournalLine do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, except: [:__meta__, :id]}
@fields [
:JournalLineID,
:AccountID,
:AccountCode,
:AccountType,
:AccountName,
:Descrip... | 29.875 | 99 | 0.604603 |
97e2438ca6a9e378237874e55bf9a9e0c387d43d | 564 | ex | Elixir | lib/types/object.ex | mtvch/j-viewer | 54d5a0a8bc6a37a77e94d2b4c5bf9db0c0c6e5a7 | [
"MIT"
] | 1 | 2021-08-05T05:39:00.000Z | 2021-08-05T05:39:00.000Z | lib/types/object.ex | mtvch/j-viewer | 54d5a0a8bc6a37a77e94d2b4c5bf9db0c0c6e5a7 | [
"MIT"
] | null | null | null | lib/types/object.ex | mtvch/j-viewer | 54d5a0a8bc6a37a77e94d2b4c5bf9db0c0c6e5a7 | [
"MIT"
] | null | null | null | defmodule JViewer.Types.Object do
defstruct [
:fields
]
@behaviour JViewer.Types
@type t :: %{
__struct__: atom(),
fields: list(Field.t()) | nil
}
alias JViewer.Types.Object.Field
@impl true
def apply_schema(%__MODULE__{fields: fields}, %{} = data, general_handlers_para... | 19.448276 | 84 | 0.601064 |
97e2684ea665b030c41848d047c62228139a9575 | 137 | ex | Elixir | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/controllers/page_controller.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/controllers/page_controller.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/controllers/page_controller.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule ADemoWeb.PageController do
use ADemoWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.125 | 36 | 0.729927 |
97e26917c1bfd62aed2f842542bbc358ef0ea6be | 624 | exs | Elixir | test/day_10_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | 1 | 2020-12-19T18:40:00.000Z | 2020-12-19T18:40:00.000Z | test/day_10_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | test/day_10_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | defmodule Day10Test do
use ExUnit.Case, async: true
require Input
test "part1 input" do
f = Input.path()
assert Day10.part1(f) == 2400
end
test "part1 example" do
f = Input.example()
assert Day10.part1(f) == 35
end
test "part1 example2" do
f = Input.example(2)
assert Day10.part1... | 17.828571 | 48 | 0.626603 |
97e29062b0f587fb7e6317639b4c3e04cfe18ae7 | 6,069 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_response_message.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_response_message.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_response_message.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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... | 63.884211 | 870 | 0.78003 |
97e29a5588a00912c7224538e841d9d0bd84c5d0 | 1,608 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/move_folder_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/move_folder_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/move_folder_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.212766 | 225 | 0.751244 |
97e2b66ee59129abd0f5208fe5fee616078aa6e7 | 180 | ex | Elixir | lib/better_big_canvas_web/views/canvas_view.ex | ChristianTovar/better-big-canvas | dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0 | [
"MIT"
] | 9 | 2021-02-25T19:58:34.000Z | 2022-03-29T22:46:57.000Z | lib/better_big_canvas_web/views/canvas_view.ex | ChristianTovar/better-big-canvas | dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0 | [
"MIT"
] | 3 | 2021-05-28T17:40:32.000Z | 2021-06-07T16:31:58.000Z | lib/better_big_canvas_web/views/canvas_view.ex | ChristianTovar/better-big-canvas | dd777ba83fed1e4c59ba92a25ee48cb7f0bf93e0 | [
"MIT"
] | 2 | 2021-02-25T19:58:39.000Z | 2021-08-16T22:55:32.000Z | defmodule BetterBigCanvasWeb.CanvasView do
use BetterBigCanvasWeb, :view
@spec row_enumerable :: [non_neg_integer()]
def row_enumerable, do: Enum.map(0..29, &(&1 * 30))
end
| 25.714286 | 53 | 0.733333 |
97e2c044173c12c5cd1859c5cf1ebd2bac5b1c77 | 632 | ex | Elixir | lib/lavalex/default_node.ex | TeeSeal/lavalex | 6ce016bcc557189d3ea36ecaafae55d0d5399bd3 | [
"MIT"
] | null | null | null | lib/lavalex/default_node.ex | TeeSeal/lavalex | 6ce016bcc557189d3ea36ecaafae55d0d5399bd3 | [
"MIT"
] | null | null | null | lib/lavalex/default_node.ex | TeeSeal/lavalex | 6ce016bcc557189d3ea36ecaafae55d0d5399bd3 | [
"MIT"
] | null | null | null | defmodule Lavalex.DefaultNode do
require Logger
@behaviour Lavalex.Node
@impl Lavalex.Node
@spec handle_player_update(map, Lavalex.Node.state) :: :ok
def handle_player_update(data, _state) do
Logger.info("[Lavalex] Player Update: " <> inspect(data))
end
@impl Lavalex.Node
@spec handle_stats(map, ... | 26.333333 | 61 | 0.700949 |
97e32b19254a311a9686f68daae20d689185ac1f | 66 | exs | Elixir | .iex.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | .iex.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | 101 | 2020-04-26T03:07:51.000Z | 2022-03-27T06:17:52.000Z | .iex.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | Application.put_env(:elixir, :ansi_enabled, true)
import Tai.IEx
| 16.5 | 49 | 0.787879 |
97e33ddc81d23dc2f009ae4f86e25e66ad70fc92 | 5,532 | ex | Elixir | lib/datastructures/hash.ex | santosh79/remixdb | 4f5ab898241b61ef00acf508c63363520c7b87d0 | [
"MIT"
] | 48 | 2016-06-01T11:40:34.000Z | 2021-05-26T13:20:42.000Z | lib/datastructures/hash.ex | santosh79/remixdb | 4f5ab898241b61ef00acf508c63363520c7b87d0 | [
"MIT"
] | 2 | 2016-06-06T10:20:03.000Z | 2016-06-11T05:06:10.000Z | lib/datastructures/hash.ex | santosh79/remixdb | 4f5ab898241b61ef00acf508c63363520c7b87d0 | [
"MIT"
] | 3 | 2016-07-02T20:54:58.000Z | 2018-04-10T02:36:26.000Z | alias Remixdb.Counter, as: Counter
defmodule Remixdb.Hash do
use GenServer
@name :remixdb_hash
def start_link(_args) do
GenServer.start_link __MODULE__, :ok, name: @name
end
def init(:ok) do
{:ok, Map.new}
end
def flushall() do
GenServer.call @name, :flushall
end
def dbsize() do
... | 22.487805 | 73 | 0.607918 |
97e36479246fbe4a69f1064e6fb02d7e68d30018 | 1,090 | ex | Elixir | test/support/test_modules/live_counter.ex | BrooklinJazz/kino | 5ce878691798259c592b4298097e72353e23880c | [
"Apache-2.0"
] | null | null | null | test/support/test_modules/live_counter.ex | BrooklinJazz/kino | 5ce878691798259c592b4298097e72353e23880c | [
"Apache-2.0"
] | null | null | null | test/support/test_modules/live_counter.ex | BrooklinJazz/kino | 5ce878691798259c592b4298097e72353e23880c | [
"Apache-2.0"
] | null | null | null | defmodule Kino.TestModules.LiveCounter do
use Kino.JS
use Kino.JS.Live
def new(count) do
Kino.JS.Live.new(__MODULE__, count)
end
def bump(widget, by \\ 1) do
Kino.JS.Live.cast(widget, {:bump, by})
end
def read(widget) do
Kino.JS.Live.call(widget, :read)
end
@impl true
def init(count,... | 17.868852 | 49 | 0.605505 |
97e36d283a7475caec4402d81b2b46a5406302e7 | 465 | exs | Elixir | examples/learning_switch/mix.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | examples/learning_switch/mix.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | examples/learning_switch/mix.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule LearningSwitch.Mixfile do
use Mix.Project
def project do
[
app: :learning_switch,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[extra_... | 19.375 | 59 | 0.593548 |
97e39c0537baed35469cb660b4b941bccc984c03 | 17,488 | ex | Elixir | lib/commanded/event_store/adapters/in_memory.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | lib/commanded/event_store/adapters/in_memory.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | lib/commanded/event_store/adapters/in_memory.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | defmodule Commanded.EventStore.Adapters.InMemory do
@moduledoc """
An in-memory event store adapter useful for testing as no persistence provided.
"""
@behaviour Commanded.EventStore
use GenServer
defmodule State do
@moduledoc false
defstruct [
:serializer,
persisted_events: [],
... | 29.441077 | 101 | 0.678808 |
97e3f9a9082b004ea554ff8c665ffc2cfe1ac402 | 1,139 | exs | Elixir | mix.exs | jchristgit/bolt | baab9de9cc9b826714690ba5e68137e1192b9e24 | [
"0BSD"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | mix.exs | jchristgit/bolt | baab9de9cc9b826714690ba5e68137e1192b9e24 | [
"0BSD"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | mix.exs | jchristgit/bolt | baab9de9cc9b826714690ba5e68137e1192b9e24 | [
"0BSD"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.MixProject do
use Mix.Project
def project do
[
app: :bolt,
version: "0.11.2",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
preferred_cli_env: [coveralls: :test],
aliases: aliases()
]
end
# Run "mix help compile.app" to l... | 21.903846 | 62 | 0.543459 |
97e4093bc0f3c8078e2e43532ec515a20a943a02 | 641 | ex | Elixir | lib/nsq/test/auth_server.ex | wingyplus/elixir_nsq | a3d6af736efb508c2e3dfbc8d1cab3c624f57c53 | [
"MIT"
] | null | null | null | lib/nsq/test/auth_server.ex | wingyplus/elixir_nsq | a3d6af736efb508c2e3dfbc8d1cab3c624f57c53 | [
"MIT"
] | 9 | 2020-04-05T15:39:46.000Z | 2020-04-06T17:29:00.000Z | lib/nsq/test/auth_server.ex | wingyplus/elixir_nsq | a3d6af736efb508c2e3dfbc8d1cab3c624f57c53 | [
"MIT"
] | null | null | null | defmodule NSQ.Test.AuthServer do
# This sets up an auth server for NSQD (run from Procfile) so that we can
# test auth properly.
def start(port) do
[:ranch, :cowlib, :cowboy, :http_server] |> Enum.each(&Application.start/1)
HttpServer.start(
path: "/auth",
port: port,
response:
... | 24.653846 | 79 | 0.50078 |
97e42ba402027108059e70f4717e938d3af36632 | 1,588 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/gender_targeting_option_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/gender_targeting_option_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/gender_targeting_option_details.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.787234 | 153 | 0.753149 |
97e4333f8a1471ef18d0b2aa45aa26e9868b1260 | 350 | ex | Elixir | lib/skeleton/methods/gets.ex | haskric/map_schema | 615d6428e168a0d3991d334cba76c2d8e5c417b6 | [
"MIT"
] | 3 | 2020-12-15T09:04:57.000Z | 2021-06-11T02:01:09.000Z | lib/skeleton/methods/gets.ex | haskric/map_schema | 615d6428e168a0d3991d334cba76c2d8e5c417b6 | [
"MIT"
] | null | null | null | lib/skeleton/methods/gets.ex | haskric/map_schema | 615d6428e168a0d3991d334cba76c2d8e5c417b6 | [
"MIT"
] | null | null | null | defmodule MapSchema.Methods.Gets do
@moduledoc false
@doc """
The module have the internal functionality of the methods get
"""
def generic_get(mapa, lista_fields) do
get_in(mapa, lista_fields)
end
# The validation should be present in macros.
#def generic_get(_, _) do
# Exceptions.throw_error_... | 20.588235 | 63 | 0.725714 |
97e4438655e9b07496e53d55a5ea1d92454bea95 | 708 | ex | Elixir | lib/webapp_web/gettext.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | lib/webapp_web/gettext.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | lib/webapp_web/gettext.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule WebappWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import WebappWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
97e47161d0065bb28b24600b06b5ab2e0d836f2b | 3,020 | ex | Elixir | lib/kafka_ex/consumer_group/heartbeat.ex | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | lib/kafka_ex/consumer_group/heartbeat.ex | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | lib/kafka_ex/consumer_group/heartbeat.ex | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | defmodule KafkaEx.ConsumerGroup.Heartbeat do
@moduledoc false
# GenServer to send heartbeats to the broker
#
# A `HeartbeatRequest` is sent periodically by each active group member (after
# completing the join/sync phase) to inform the broker that the member is
# still alive and participating in the group.... | 33.555556 | 80 | 0.696689 |
97e47f10b7c90754f19fcff883e6554acd321b2e | 3,689 | ex | Elixir | lib/ex_money_web/models/login.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 184 | 2015-11-23T20:51:50.000Z | 2022-03-30T01:01:39.000Z | lib/ex_money_web/models/login.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 15 | 2015-11-26T16:00:20.000Z | 2018-05-25T20:13:39.000Z | lib/ex_money_web/models/login.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 21 | 2015-11-26T21:34:40.000Z | 2022-03-26T02:56:42.000Z | defmodule ExMoney.Login do
use ExMoney.Web, :model
alias ExMoney.Login
schema "logins" do
field :secret, :string
field :saltedge_login_id, :integer
field :finished, :boolean, default: false
field :finished_recent, :boolean, default: false
field :partial, :boolean, default: false
field :a... | 24.758389 | 83 | 0.704798 |
97e492b054c85ae812182547ce637314e5a51027 | 1,818 | exs | Elixir | test/commodity_api/iam/user/phone_number/log/log_policy_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | test/commodity_api/iam/user/phone_number/log/log_policy_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | test/commodity_api/iam/user/phone_number/log/log_policy_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 33.666667 | 77 | 0.734323 |
97e492f5d3312170192a1fe6fbd0e8d1f2210fc9 | 251 | exs | Elixir | lib/mix/test/mix_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/mix/test/mix_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule MixTest do
use MixTest.Case
test :shell do
assert Mix.shell == Mix.Shell.Process
end
test :env do
assert Mix.env == :dev
Mix.env(:prod)
assert Mix.env == :prod
end
end | 16.733333 | 44 | 0.669323 |
97e4df90af84b1215c7410bc5fa696ee1976c21a | 427 | exs | Elixir | farmbot_core/priv/asset/migrations/20191212210054_resync_firmware_config.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/asset/migrations/20191212210054_resync_firmware_config.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/asset/migrations/20191212210054_resync_firmware_config.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.Repo.Migrations.ResyncFirmwareConfig do
use Ecto.Migration
def change do
alter table("firmware_configs") do
add(:movement_microsteps_x, :float)
add(:movement_microsteps_y, :float)
add(:movement_microsteps_z, :float)
end
# will resync the firmware params
... | 25.117647 | 79 | 0.704918 |
97e4ea17ac60a2a9bf4fbc9b4b6b63b1e136ab7b | 715 | ex | Elixir | web/gettext.ex | fs/sentinel_api | 6f6f8ab3e3bf10c44a1d8e025aceded121a420e0 | [
"MIT"
] | null | null | null | web/gettext.ex | fs/sentinel_api | 6f6f8ab3e3bf10c44a1d8e025aceded121a420e0 | [
"MIT"
] | null | null | null | web/gettext.ex | fs/sentinel_api | 6f6f8ab3e3bf10c44a1d8e025aceded121a420e0 | [
"MIT"
] | null | null | null | defmodule SentinelApi.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import SentinelApi.Gettext
# Simple translation
gettext "Here is... | 28.6 | 72 | 0.683916 |
97e4f5b3e290c0063e0aaf219c2ef77b8ef44730 | 1,974 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__suggest_trials_request.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__suggest_trials_request.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__suggest_trials_request.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... | 37.961538 | 338 | 0.75228 |
97e50ff6a9c8da6b38cccde628ee3fa5b4e46dc8 | 2,260 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/activities_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/activities_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/activities_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.Admin.Blog.ActivitiesComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="col-sm-5 vazir list-activity-blog-post-and-category">
<h3 class="admin-dashbord-h3-right-side-title vazir">
<%= MishkaTranslator.Gettext.dgettext("html_live_... | 45.2 | 241 | 0.632301 |
97e51a9d35675ef766aa4998089b81dde3072cd9 | 1,214 | ex | Elixir | lib/drab_spike_web/channels/user_socket.ex | kimlindholm/drab_spike | f7573dade90d1cc3dcb54a30aa5a1c09445516fa | [
"MIT"
] | null | null | null | lib/drab_spike_web/channels/user_socket.ex | kimlindholm/drab_spike | f7573dade90d1cc3dcb54a30aa5a1c09445516fa | [
"MIT"
] | 8 | 2019-10-31T11:27:57.000Z | 2022-02-09T23:00:28.000Z | lib/drab_spike_web/channels/user_socket.ex | kimlindholm/drab_spike | f7573dade90d1cc3dcb54a30aa5a1c09445516fa | [
"MIT"
] | null | null | null | defmodule DrabSpikeWeb.UserSocket do
use Phoenix.Socket
use Drab.Socket
## Channels
# channel "room:*", DrabSpikeWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket, timeout: 45_000
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the cli... | 31.128205 | 84 | 0.705931 |
97e528a92cf32604a27d5177a042c29a0e4717b2 | 910 | ex | Elixir | lib/policr_mini_bot/captchas/image_captcha.ex | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | lib/policr_mini_bot/captchas/image_captcha.ex | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | lib/policr_mini_bot/captchas/image_captcha.ex | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | defmodule PolicrMiniBot.ImageCaptcha do
@moduledoc """
提供图片验证的模块。
当前此模块的实现为提供一张图片和包含一个正确答案的三个候选词。
需要用户识别图片中的内容进行选择。
"""
use PolicrMiniBot.Captcha
defmodule Error do
defexception [:message]
end
@count 3
@impl true
def make!(_chat_id) do
# 获得随机数量的系列图片
series_images = PolicrMiniBot.Im... | 21.666667 | 96 | 0.682418 |
97e533bf3d6fc852505a6000620c33c5571ca797 | 1,235 | ex | Elixir | lib/sanbase_web/graphql/schema/queries/tech_indicators_queries.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/queries/tech_indicators_queries.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/queries/tech_indicators_queries.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Schema.TechIndicatorsQueries do
@moduledoc ~s"""
Queries wrapping tech-indicators API
"""
use Absinthe.Schema.Notation
import SanbaseWeb.Graphql.Cache, only: [cache_resolve: 1]
alias SanbaseWeb.Graphql.Resolvers.TechIndicatorsResolver
alias SanbaseWeb.Graphql.Complexity
a... | 33.378378 | 111 | 0.731984 |
97e535ca80a0fa04786486343fc7f6d1bc44ae6a | 1,421 | ex | Elixir | fogex/lib/fogex/modules/connector/starter.ex | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/lib/fogex/modules/connector/starter.ex | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/lib/fogex/modules/connector/starter.ex | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | defmodule FogEx.Modules.Connector.Starter do
use GenServer
alias FogEx.Modules.Connector.MQTT.Supervisor, as: MQTTSupervisor
alias FogEx.Modules.Connector.Supervisor, as: ConnectorSupervisor
require Logger
def start_link(opts) do
GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl t... | 24.929825 | 83 | 0.63969 |
97e5428e90487dac19bca2cd2cf4bf50f78e677b | 5,604 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/asset.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/asset.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/asset.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... | 49.157895 | 161 | 0.7293 |
97e55fbb83f791e45cf68bdfe35cac21b72e993c | 97 | ex | Elixir | lib/response/ssml_output_speech.ex | mtrudel/phoenix_alexa | 3418f7548d077ebe2e3fe039cc4d4825dcb01f3b | [
"MIT"
] | 10 | 2016-11-07T01:15:05.000Z | 2020-10-14T14:15:54.000Z | lib/response/ssml_output_speech.ex | mtrudel/phoenix_alexa | 3418f7548d077ebe2e3fe039cc4d4825dcb01f3b | [
"MIT"
] | 2 | 2017-03-19T14:16:33.000Z | 2018-11-05T18:49:57.000Z | lib/response/ssml_output_speech.ex | mtrudel/phoenix_alexa | 3418f7548d077ebe2e3fe039cc4d4825dcb01f3b | [
"MIT"
] | 11 | 2016-12-30T23:32:40.000Z | 2019-08-18T16:30:16.000Z | defmodule PhoenixAlexa.SsmlOutputSpeech do
defstruct type: "SSML",
ssml: nil
end | 19.4 | 42 | 0.680412 |
97e562d9dca5201747d1e38be0089d39b5196adb | 175 | ex | Elixir | lib/exhttpclient.ex | Lu-i/ExHTTPClient | 7934fa7b4feb921cb631a7c09676d5564b103943 | [
"MIT"
] | null | null | null | lib/exhttpclient.ex | Lu-i/ExHTTPClient | 7934fa7b4feb921cb631a7c09676d5564b103943 | [
"MIT"
] | null | null | null | lib/exhttpclient.ex | Lu-i/ExHTTPClient | 7934fa7b4feb921cb631a7c09676d5564b103943 | [
"MIT"
] | null | null | null | defmodule ExHTTPClient do
use HTTPoison.Base
def process_response_body(body) do
case Json.decode(body) do
{:ok, body} -> body
_ -> body
end
end
end
| 15.909091 | 36 | 0.645714 |
97e5701f6ffd80cf459d665e53e24ff221325ff1 | 5,131 | exs | Elixir | lib/elixir/test/elixir/code_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/test/elixir/code_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule CodeTest do
use ExUnit.Case, async: true
doctest Code
import PathHelpers
def genmodule(name) do
defmodule name do
Kernel.LexicalTracker.remotes(__MODULE__)
end
end
contents = quote do
defmodule CodeTest.Sample do
def eval_qu... | 28.825843 | 105 | 0.643734 |
97e5af8d5a4a0a744429f4b89dd20acd0a786260 | 1,382 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.904762 | 96 | 0.776411 |
97e5ea9816b4a40baf7947590ce9fa61667be530 | 73 | exs | Elixir | config/config.exs | mimimalizam/hello-world | 13799bcf0aecd823042130b07db74bfd37784955 | [
"Apache-2.0"
] | null | null | null | config/config.exs | mimimalizam/hello-world | 13799bcf0aecd823042130b07db74bfd37784955 | [
"Apache-2.0"
] | null | null | null | config/config.exs | mimimalizam/hello-world | 13799bcf0aecd823042130b07db74bfd37784955 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Start server in OTP
# config :grpc, start_server: true
| 14.6 | 34 | 0.739726 |
97e612cc80d0d23e222777ee22a99337632d1b4d | 9,558 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/experiment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/experiment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/experiment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 74.093023 | 629 | 0.730278 |
97e62c2ab61a7ea3110f90df22210fb21ed75de6 | 978 | ex | Elixir | lib/raagtime.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | lib/raagtime.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | lib/raagtime.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | defmodule Raagtime 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(Raagtime... | 31.548387 | 71 | 0.711656 |
97e693321ce4062fddd68cac70dcb3157ee78690 | 1,357 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/buyer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/buyer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/buyer.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... | 28.87234 | 87 | 0.730287 |
97e69bf48c6df6aae2853e3bf3d676859c855c5f | 1,080 | ex | Elixir | lib/plug/session/store.ex | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | lib/plug/session/store.ex | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | lib/plug/session/store.ex | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Plug.Session.Store do
@moduledoc """
Specification for session stores.
"""
@type sid :: term | nil
@type cookie :: binary
@type session :: map
@doc """
Initializes the store.
The options returned from this function will be given
to `get/3`, `put/4` and `delete/3`.
"""
@callback init(... | 26.341463 | 70 | 0.678704 |
97e69fc931a2c553c8e0e155a45206cbad52c53d | 3,623 | ex | Elixir | lib/data_processor/coherence/schemas.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | lib/data_processor/coherence/schemas.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | 3 | 2018-08-17T13:42:45.000Z | 2018-08-17T17:05:11.000Z | lib/data_processor/coherence/schemas.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | defmodule DataProcessor.Coherence.Schemas do
use Coherence.Config
import Ecto.Query
@user_schema Config.user_schema
@repo Config.repo
def list_user do
@repo.all @user_schema
end
def list_by_user(opts) do
@repo.all query_by(@user_schema, opts)
end
def get_by_user(opts) do
@repo... | 21.825301 | 73 | 0.660226 |
97e6a528566f3128a3707566cc4905ec33f15eca | 190 | exs | Elixir | priv/repo/migrations/20200224170949_add_message_to_interests.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | priv/repo/migrations/20200224170949_add_message_to_interests.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | priv/repo/migrations/20200224170949_add_message_to_interests.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | defmodule Adoptoposs.Repo.Migrations.AddMessageToInterests do
use Ecto.Migration
def change do
alter table(:interests) do
add :message, :string, default: ""
end
end
end
| 19 | 61 | 0.715789 |
97e6ab1901db8a36328ca2a5d1fd74db5768e505 | 1,138 | ex | Elixir | apps/graphql/lib/graphql/resolvers/reimbursement/medical_program.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/lib/graphql/resolvers/reimbursement/medical_program.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/lib/graphql/resolvers/reimbursement/medical_program.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.Resolvers.MedicalProgram do
@moduledoc false
import Core.Utils.TypesConverter, only: [atoms_to_strings: 1]
import GraphQL.Filters.Base, only: [filter: 2]
import Ecto.Query, only: [order_by: 2]
alias Absinthe.Relay.Connection
alias Core.MedicalPrograms
alias Core.MedicalPrograms.Medical... | 33.470588 | 97 | 0.721441 |
97e6c441c8848f464227b4a4dac0d6fb9f06cbb6 | 1,064 | exs | Elixir | mix.exs | samueljseay/hound_page_object | 5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8 | [
"MIT"
] | 20 | 2016-07-02T10:10:43.000Z | 2021-01-07T19:03:56.000Z | mix.exs | samueljseay/hound_page_object | 5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8 | [
"MIT"
] | 6 | 2016-12-31T22:31:22.000Z | 2018-06-12T01:00:07.000Z | mix.exs | samueljseay/hound_page_object | 5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8 | [
"MIT"
] | 7 | 2016-09-02T15:07:20.000Z | 2021-09-13T17:09:49.000Z | defmodule PageObject.Mixfile do
use Mix.Project
@version "0.4.0"
def project do
[app: :page_object,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
description: description(),
package: package()]
end... | 23.644444 | 104 | 0.589286 |
97e6fbf1f644ad9bd28baf71e4abcb7324ef19ac | 159 | ex | Elixir | lib/reviews_framework_web/controllers/page_controller.ex | gedzubo/reviews_framework | 5b5961190ceed4d8a5e6c878b3854007084519aa | [
"MIT"
] | null | null | null | lib/reviews_framework_web/controllers/page_controller.ex | gedzubo/reviews_framework | 5b5961190ceed4d8a5e6c878b3854007084519aa | [
"MIT"
] | null | null | null | lib/reviews_framework_web/controllers/page_controller.ex | gedzubo/reviews_framework | 5b5961190ceed4d8a5e6c878b3854007084519aa | [
"MIT"
] | null | null | null | defmodule ReviewsFrameworkWeb.PageController do
use ReviewsFrameworkWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 19.875 | 47 | 0.767296 |
97e6ffb421559a9c5057921bf33e49265e3d07d5 | 68 | exs | Elixir | test/test_helper.exs | SXKDZ/MultiJump | 97db71c3b207d8113987757a30f2f318c4a2fb58 | [
"MIT"
] | null | null | null | test/test_helper.exs | SXKDZ/MultiJump | 97db71c3b207d8113987757a30f2f318c4a2fb58 | [
"MIT"
] | null | null | null | test/test_helper.exs | SXKDZ/MultiJump | 97db71c3b207d8113987757a30f2f318c4a2fb58 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Jump.Repo, :manual)
| 13.6 | 50 | 0.75 |
97e714df31f44e7cf8395cd557854d124d68e7e8 | 65 | ex | Elixir | lib/storeHall_web/views/mail_view.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | lib/storeHall_web/views/mail_view.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | lib/storeHall_web/views/mail_view.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHallWeb.MailView do
use StoreHallWeb, :view
end
| 16.25 | 34 | 0.815385 |
97e730da8c1c928182221d48c6247b67a734a581 | 454 | exs | Elixir | priv/repo/migrations/20210613135049_modify_fixed_deposit_tracking_fields_wallet_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210613135049_modify_fixed_deposit_tracking_fields_wallet_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210613135049_modify_fixed_deposit_tracking_fields_wallet_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraph.Repo.Migrations.ModifyFixedDepositTrackingFieldsWalletProducts do
use Ecto.Migration
def up do
alter table("wallet_products") do
remove :fixed_deposit_maturity_date
remove :interest_last_paid_on
end
end
def down do
alter table("wallet_products") do
... | 25.222222 | 88 | 0.718062 |
97e7336a48baf7b0fd2ccb107c71eae330b734ec | 2,714 | ex | Elixir | test/support/test_datatypes.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | test/support/test_datatypes.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | test/support/test_datatypes.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.TestDatatypes do
defmodule Initials do
use RDF.XSD.Datatype.Restriction,
name: "initials",
id: "http://example.com/initials",
base: RDF.XSD.String
def_facet_constraint RDF.XSD.Facets.Length, 2
end
defmodule UsZipcode do
use RDF.XSD.Datatype.Restriction,
name: "u... | 26.871287 | 71 | 0.688651 |
97e78f244acb48d40ba5cd23011cc5d53c6454d4 | 1,258 | ex | Elixir | lib/temple/live_view_engine.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | lib/temple/live_view_engine.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | lib/temple/live_view_engine.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | defmodule Temple.LiveViewEngine do
@behaviour Phoenix.Template.Engine
@moduledoc """
The Temple LiveView engine makes it possible to use Temple with Phoenix LiveView.
To get started, you will configure Phoenix to use this module for `.lexs` files.
```elixir
# config.exs
config :phoenix, :template_engin... | 26.765957 | 128 | 0.653418 |
97e794e51060bab9c2c4d416c2e8ded91cd580d2 | 93,594 | ex | Elixir | lib/elixir/lib/enum.ex | jayashe/elixir | 6803c87465552624dac017de53156e806762047d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | jayashe/elixir | 6803c87465552624dac017de53156e806762047d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | jayashe/elixir | 6803c87465552624dac017de53156e806762047d | [
"Apache-2.0"
] | null | null | null | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression:
Enum.map([1, 2, 3], &(&1 * 2))
invokes `Enume... | 27.723341 | 105 | 0.616514 |
97e79c6e148fae6d5e4efd76cbdb9d83f9cdf2e6 | 3,781 | exs | Elixir | test/penelope/ml/vector_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 53 | 2017-10-13T06:39:49.000Z | 2022-03-28T19:43:42.000Z | test/penelope/ml/vector_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 12 | 2018-01-08T23:05:37.000Z | 2019-08-02T12:59:27.000Z | test/penelope/ml/vector_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 4 | 2018-06-13T19:45:57.000Z | 2019-10-17T13:37:06.000Z | defmodule Penelope.ML.VectorTest do
@moduledoc """
These tests verify the vector module.
"""
use ExUnit.Case, async: true
import ExUnitProperties
import Penelope.ML.Vector
import Penelope.TestUtility
alias StreamData, as: Gen
test "size" do
assert size(empty()) == 0
assert size(from_list([... | 25.547297 | 74 | 0.548268 |
97e79f394265dabb47c2c1733a246724e767eb5b | 1,864 | exs | Elixir | example/example_bot.exs | kingdomcoding/telegram | 6b8e6997fb744fa56692eb9ed1ead3e593a85cc9 | [
"MIT"
] | 87 | 2017-10-24T17:52:13.000Z | 2022-03-30T19:31:43.000Z | example/example_bot.exs | kingdomcoding/telegram | 6b8e6997fb744fa56692eb9ed1ead3e593a85cc9 | [
"MIT"
] | 115 | 2017-09-16T20:01:34.000Z | 2021-08-05T09:20:02.000Z | example/example_bot.exs | kingdomcoding/telegram | 6b8e6997fb744fa56692eb9ed1ead3e593a85cc9 | [
"MIT"
] | 19 | 2018-01-27T20:11:43.000Z | 2022-03-19T14:08:53.000Z | # TOKEN="..." mix run example/example_bot.exs
defmodule SleepBot do
@behaviour Telegram.Bot
@impl Telegram.Bot
def handle_update(
%{"message" => %{"text" => "/sleep" <> seconds_arg, "chat" => %{"id" => chat_id}, "message_id" => message_id}},
token
) do
seconds = seconds_arg |> parse_se... | 24.207792 | 119 | 0.633584 |
97e7d09d0addd30257df6ac44999cce09b849128 | 7,757 | ex | Elixir | lib/mentat.ex | kianmeng/mentat | b2801afec2e75acad6f66c860e9e5153d8b60d4a | [
"MIT"
] | null | null | null | lib/mentat.ex | kianmeng/mentat | b2801afec2e75acad6f66c860e9e5153d8b60d4a | [
"MIT"
] | null | null | null | lib/mentat.ex | kianmeng/mentat | b2801afec2e75acad6f66c860e9e5153d8b60d4a | [
"MIT"
] | null | null | null | defmodule Mentat do
@moduledoc """
Provides a basic cache with ttls.
## Usage
A cache must be given a name when its started.
```
Mentat.start_link(name: :my_cache)
```
After its been started you can store and retrieve values:
```
Mentat.put(:my_cache, user_id, user)
user = Mentat.get(:my_cach... | 24.862179 | 100 | 0.595591 |
97e7d33a8f534298a7a60b4cf88a29537ab442ae | 70 | ex | Elixir | lib/exercism.ex | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | lib/exercism.ex | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | lib/exercism.ex | ravanscafi/exercism-elixir | 0f5c8c923166a0a795c323c7e2d6ccc9da572fcf | [
"MIT"
] | null | null | null | defmodule Exercism do
def hello() do
IO.puts("Hello")
end
end
| 11.666667 | 21 | 0.657143 |
97e7dd42b1f41f74d8be0461d49e5366d05a7c4f | 2,930 | exs | Elixir | test/level_web/graphql/subscriptions/group_membership_updated_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level_web/graphql/subscriptions/group_membership_updated_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level_web/graphql/subscriptions/group_membership_updated_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.GraphQL.GroupMembershipUpdatedTest do
use LevelWeb.ChannelCase
alias Level.Groups
alias Level.Groups.GroupUser
@operation """
subscription GroupSubscription(
$id: ID!
) {
groupSubscription(groupId: $id) {
__typename
... on GroupMembershipUpdatedPayload {
... | 26.396396 | 99 | 0.55529 |
97e7e9ef8a56de3ed0f50f5678a1222f9668abff | 9,691 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/operations.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... | 56.343023 | 1,450 | 0.65824 |
97e8116b4d4ff91695cb7dd66ce895797f22d0ea | 588 | exs | Elixir | mix.exs | genericsoma/SymMath | 97ee3414944e40070f2fc422767a2eb1038c93cd | [
"MIT"
] | null | null | null | mix.exs | genericsoma/SymMath | 97ee3414944e40070f2fc422767a2eb1038c93cd | [
"MIT"
] | null | null | null | mix.exs | genericsoma/SymMath | 97ee3414944e40070f2fc422767a2eb1038c93cd | [
"MIT"
] | null | null | null | defmodule SymMath.Mixfile do
use Mix.Project
def project do
[app: :symmath,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger]]
end
# Depe... | 18.967742 | 77 | 0.607143 |
97e82aaad7c293802f5d884d2a3dc54eb4c6f87a | 1,378 | ex | Elixir | examples/bloggy/test/support/data_case.ex | wojtekmach/resourceful | 8425140aa1e89dfababcb2faa7bc4e2f59722661 | [
"Apache-2.0"
] | 1 | 2020-01-06T00:38:43.000Z | 2020-01-06T00:38:43.000Z | examples/bloggy/test/support/data_case.ex | wojtekmach/resourceful | 8425140aa1e89dfababcb2faa7bc4e2f59722661 | [
"Apache-2.0"
] | null | null | null | examples/bloggy/test/support/data_case.ex | wojtekmach/resourceful | 8425140aa1e89dfababcb2faa7bc4e2f59722661 | [
"Apache-2.0"
] | null | null | null | defmodule Bloggy.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ... | 25.518519 | 77 | 0.67852 |
97e84c7ed724ae3868ca75c02d5d9558a87b4ff9 | 1,727 | ex | Elixir | lib/twatch/actions/stream.ex | wisq/twatch | 544734db17b07428ad58041ffc9c4163d6abf090 | [
"Apache-2.0"
] | 1 | 2019-03-01T07:22:41.000Z | 2019-03-01T07:22:41.000Z | lib/twatch/actions/stream.ex | wisq/twatch | 544734db17b07428ad58041ffc9c4163d6abf090 | [
"Apache-2.0"
] | null | null | null | lib/twatch/actions/stream.ex | wisq/twatch | 544734db17b07428ad58041ffc9c4163d6abf090 | [
"Apache-2.0"
] | null | null | null | defmodule Twatch.Actions.Stream do
require Logger
alias Hound.Helpers.{Page, Element}
import Twatch.Helpers
def ensure_category(name) do
if is_category(name) do
:cont
else
Logger.info("Channel has wrong / no category; selecting a new one.")
navigate_to("data:,")
:halt
end
... | 23.026667 | 82 | 0.623046 |
97e84e213c885b9112913e7867ab44e64f2ef1e5 | 3,626 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/file_occurrence.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/file_occurrence.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/file_occurrence.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.070423 | 236 | 0.709597 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.