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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da818a8d4b966afe4eec2449986ca683d9c23e88 | 2,465 | exs | Elixir | test/wechat/plugs/wechat_site_test.exs | sjava/ex_wechat | 521e119be8cc960453002c099d57f7474bfd7735 | [
"MIT"
] | null | null | null | test/wechat/plugs/wechat_site_test.exs | sjava/ex_wechat | 521e119be8cc960453002c099d57f7474bfd7735 | [
"MIT"
] | null | null | null | test/wechat/plugs/wechat_site_test.exs | sjava/ex_wechat | 521e119be8cc960453002c099d57f7474bfd7735 | [
"MIT"
] | null | null | null | defmodule Wechat.Plugs.WechatSiteTest do
use ExUnit.Case
use Plug.Test
alias Wechat.TestCase
defmodule MyRouter do
use Plug.Router
alias Wechat.Plugs.WechatSiteTest.WechatSiteController
plug :match
plug :dispatch
plug :fetch_query_params
plug :init_test_session
plug Wechat.Plugs.W... | 25.947368 | 91 | 0.679108 |
da819563cf15b883e04097f3f2c261bf6f01cd09 | 2,299 | exs | Elixir | mix.exs | petermm/phoenix_live_view | d4fcefd666aac4a08b8cdcd14ba82b523b25ac75 | [
"MIT"
] | null | null | null | mix.exs | petermm/phoenix_live_view | d4fcefd666aac4a08b8cdcd14ba82b523b25ac75 | [
"MIT"
] | null | null | null | mix.exs | petermm/phoenix_live_view | d4fcefd666aac4a08b8cdcd14ba82b523b25ac75 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.MixProject do
use Mix.Project
@version "0.13.2"
def project do
[
app: :phoenix_live_view,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: compilers(Mix.env()),
p... | 23.947917 | 99 | 0.586342 |
da81971565bdb9c6f8ef9a25296959065a249fcc | 3,792 | exs | Elixir | test/helpers_test.exs | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | test/helpers_test.exs | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | test/helpers_test.exs | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 1 | 2019-06-05T08:07:32.000Z | 2019-06-05T08:07:32.000Z | defmodule ExAdmin.HelpersTest do
use ExUnit.Case
alias ExAdmin.Helpers
alias TestExAdmin.Noid
alias TestExAdmin.Simple
alias TestExAdmin.Maps
use Xain
test "build_field" do
res = Helpers.build_field(%Noid{description: "desc"}, %{},
{:description, %{}}, fn(contents, field_name) ->
ExAdmi... | 35.111111 | 121 | 0.662184 |
da81a9198e9c15af16fbd45e2b4039efbb67afca | 26,800 | exs | Elixir | integration_test/cases/preload.exs | dvic/ecto | 6efcc52799d9573651b27aac68a699a6dc30d661 | [
"Apache-2.0"
] | 3,931 | 2016-06-16T11:38:48.000Z | 2022-03-31T21:24:19.000Z | integration_test/cases/preload.exs | dvic/ecto | 6efcc52799d9573651b27aac68a699a6dc30d661 | [
"Apache-2.0"
] | 2,343 | 2016-06-16T11:18:09.000Z | 2022-03-27T23:44:43.000Z | deps/ecto/integration_test/cases/preload.exs | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 1,300 | 2016-06-17T13:56:59.000Z | 2022-03-31T01:46:20.000Z | defmodule Ecto.Integration.PreloadTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true)
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.Comment
alias Ecto.Integration.Item
alias Ecto.Integration.Permalink... | 37.482517 | 110 | 0.611978 |
da81c0d489b9bf5a6e3d7b1b8b861aaf0f76ec7e | 827 | exs | Elixir | mix.exs | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | null | null | null | mix.exs | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | 1 | 2020-07-22T14:46:30.000Z | 2020-07-22T14:46:30.000Z | mix.exs | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | 1 | 2019-11-15T07:22:49.000Z | 2019-11-15T07:22:49.000Z | defmodule NodePinger.MixProject do
use Mix.Project
def project do
[
app: :node_pinger,
version: "0.1.1",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
lockfile: "mix.lock",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
... | 21.763158 | 88 | 0.570738 |
da81e14f44795b0f7525d917c30d0f6f782c6e10 | 342 | ex | Elixir | lib/bot_ex/behaviours/grouping_strategy.ex | bot-ex/bot_ex | 7f28464723187ef415b5e6926e4c48e2ace50fad | [
"MIT"
] | 20 | 2020-04-10T11:25:47.000Z | 2021-11-08T08:03:22.000Z | lib/bot_ex/behaviours/grouping_strategy.ex | bot-ex/botex | 7f28464723187ef415b5e6926e4c48e2ace50fad | [
"MIT"
] | 1 | 2020-07-21T08:01:50.000Z | 2020-07-22T17:53:00.000Z | lib/bot_ex/behaviours/grouping_strategy.ex | bot-ex/botex | 7f28464723187ef415b5e6926e4c48e2ace50fad | [
"MIT"
] | 2 | 2020-04-11T11:12:03.000Z | 2020-07-21T07:37:55.000Z | defmodule BotEx.Behaviours.GroupingStrategy do
@moduledoc """
The behaviour for a module that implements a message buffering strategy
"""
alias BotEx.Models.Message
@doc """
This function uses `BotEx.Routing.Router` for grouping messages by some parameters
"""
@callback group_and_send(msgs :: [Message.... | 28.5 | 84 | 0.719298 |
da81f88e9dc769effb7d43a79ef5aea84c119d18 | 2,247 | exs | Elixir | config/config.exs | jchristgit/bolt | baab9de9cc9b826714690ba5e68137e1192b9e24 | [
"0BSD"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | config/config.exs | jchristgit/bolt | baab9de9cc9b826714690ba5e68137e1192b9e24 | [
"0BSD"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | config/config.exs | jchristgit/bolt | baab9de9cc9b826714690ba5e68137e1192b9e24 | [
"0BSD"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
import Config
config :bolt,
botlog_channel: System.get_env("BOTLOG_CHANNEL"),
ecto_repos: [Bolt.Repo],
prefix: System.get_env("BOT_PREFIX") || ".",
superusers:
(System.get_env("SUPERUSE... | 28.0875 | 73 | 0.713841 |
da821aebeb3839d38b93be738f4f57d3f9f419b7 | 1,205 | ex | Elixir | backend/lib/backend/crux/authorizer.ex | Szetty/seven_wonders | 77f6f4ff015a8fc481c7edfc87e3cd77b61bc79b | [
"MIT"
] | 1 | 2020-05-28T15:51:47.000Z | 2020-05-28T15:51:47.000Z | backend/lib/backend/crux/authorizer.ex | Szetty/seven_wonders | 77f6f4ff015a8fc481c7edfc87e3cd77b61bc79b | [
"MIT"
] | 35 | 2020-05-23T17:33:56.000Z | 2022-02-14T00:53:06.000Z | backend/lib/backend/crux/authorizer.ex | Szetty/seven_wonders | 77f6f4ff015a8fc481c7edfc87e3cd77b61bc79b | [
"MIT"
] | null | null | null | defmodule Backend.Crux.Authorizer do
alias __MODULE__
use GenServer
defmodule User do
defstruct [:name, :game_id]
end
defstruct users: %{}
# Client
def start_link([]) do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def create_user(name) do
GenServer.call(__MODULE__, {:cr... | 21.517857 | 90 | 0.615768 |
da82206bac0270a74a4e1f67548fa357c686b08b | 5,836 | exs | Elixir | apps/language_server/test/providers/code_lens/type_spec/contract_translator_test.exs | skyturtleio/elixir-ls | 3fb15d87527f2cbdedf0d9b449c1f7ca61956f30 | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/test/providers/code_lens/type_spec/contract_translator_test.exs | skyturtleio/elixir-ls | 3fb15d87527f2cbdedf0d9b449c1f7ca61956f30 | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/test/providers/code_lens/type_spec/contract_translator_test.exs | skyturtleio/elixir-ls | 3fb15d87527f2cbdedf0d9b449c1f7ca61956f30 | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.LanguageServer.Providers.CodeLens.TypeSpec.ContractTranslatorTest do
use ExUnit.Case, async: true
alias ElixirLS.LanguageServer.Providers.CodeLens.TypeSpec.ContractTranslator
test "translate struct when struct.t type exists" do
contract = '() -> \#{\'__struct__\':=\'Elixir.DateTime\'}'
... | 31.545946 | 98 | 0.604524 |
da823525441f46dcee19c08cfe2086769dba9fff | 44,189 | ex | Elixir | lib/ecto/adapters/tablestore.ex | dvlp123456/ecto_tablestore | 2f6d13330e7de9425fc8d20e435e2eb7bcfced09 | [
"MIT"
] | 7 | 2019-09-09T01:42:21.000Z | 2021-03-03T07:19:52.000Z | lib/ecto/adapters/tablestore.ex | dvlp123456/ecto_tablestore | 2f6d13330e7de9425fc8d20e435e2eb7bcfced09 | [
"MIT"
] | 17 | 2020-04-10T04:10:00.000Z | 2022-03-21T10:27:04.000Z | lib/ecto/adapters/tablestore.ex | dvlp123456/ecto_tablestore | 2f6d13330e7de9425fc8d20e435e2eb7bcfced09 | [
"MIT"
] | 7 | 2019-12-04T08:39:43.000Z | 2022-03-18T09:24:42.000Z | defmodule Ecto.Adapters.Tablestore do
@moduledoc false
@behaviour Ecto.Adapter
@behaviour Ecto.Adapter.Schema
@behaviour Ecto.Adapter.Storage
alias __MODULE__
alias EctoTablestore.Sequence
alias ExAliyunOts.Error
alias ExAliyunOts.Const.{
PKType,
ReturnType,
FilterType,
LogicOperator,... | 29.264238 | 176 | 0.6276 |
da826ba15741aebb0829aa9774807d13d5840b24 | 10,373 | exs | Elixir | test/solverl_test.exs | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | null | null | null | test/solverl_test.exs | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | null | null | null | test/solverl_test.exs | mbta/solverl | 3d972db4fa173e9453357814884bd37f52a9713d | [
"MIT"
] | null | null | null | defmodule SolverlTest do
use ExUnit.Case
doctest Solverl
import MinizincUtils
@nqueens_model resource_file("mzn/nqueens.mzn")
@sudoku_model resource_file("mzn/sudoku.mzn")
@aust_model resource_file("mzn/aust.mzn")
@test1_model resource_file("mzn/test1.mzn")
@test_data2 resource_file("mzn/test_data2.d... | 31.625 | 123 | 0.620457 |
da827336ac7b65a3c0d04cbef6c9d43278f6de89 | 5,818 | exs | Elixir | test/pow/plug_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | test/pow/plug_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | test/pow/plug_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | defmodule Pow.PlugTest do
use ExUnit.Case
doctest Pow.Plug
alias Plug.{Conn, ProcessStore, Test}
alias Plug.Session, as: PlugSession
alias Pow.{Config, Config.ConfigError, Plug, Plug.Session}
alias Pow.Test.{ContextMock, Ecto.Users.User, EtsCacheMock}
@default_config [
current_user_assigns_key: :cur... | 31.79235 | 159 | 0.683053 |
da827a5d770e41797e620c722ecb161bc14335c9 | 1,765 | exs | Elixir | config/config.exs | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | config/config.exs | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | config/config.exs | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :coop_minesweeper,
ecto_repos: [CoopMineswee... | 33.301887 | 117 | 0.742776 |
da8285a6144b4e021ea6d40e2b11a4e432402d2c | 2,227 | ex | Elixir | lib/digraphviz/convert.ex | couchemar/digraphviz | 46f457a1cb51bfd0139a3c9dbcd6c0ead43b4f89 | [
"MIT"
] | null | null | null | lib/digraphviz/convert.ex | couchemar/digraphviz | 46f457a1cb51bfd0139a3c9dbcd6c0ead43b4f89 | [
"MIT"
] | null | null | null | lib/digraphviz/convert.ex | couchemar/digraphviz | 46f457a1cb51bfd0139a3c9dbcd6c0ead43b4f89 | [
"MIT"
] | null | null | null | defmodule Digraphviz.Converter do
@moduledoc false
defmodule Document do
@moduledoc false
defstruct ~w(
digraph
subgraphs
node_converter
edge_converter
)a
end
alias Digraphviz.Types
def from(digraph) do
%Document{digraph: digraph}
end
def convert(graph, type \\ :... | 22.049505 | 89 | 0.594522 |
da828d580be4abc7110c61c159535785354cc3eb | 487 | ex | Elixir | prism/lib/prism_web/views/error_view.ex | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | 5 | 2019-10-19T16:44:47.000Z | 2020-05-05T16:33:58.000Z | prism/lib/prism_web/views/error_view.ex | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | prism/lib/prism_web/views/error_view.ex | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | defmodule PrismWeb.ErrorView do
use PrismWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. Fo... | 28.647059 | 61 | 0.73306 |
da82978cbcec913129bc889a833a95764ed9cc00 | 517 | exs | Elixir | priv/repo/migrations/003_create_edges.exs | TheSwanFactory/igwet | 0a450686d1d222eb8e39e23ba5d2ea83657862d1 | [
"MIT"
] | null | null | null | priv/repo/migrations/003_create_edges.exs | TheSwanFactory/igwet | 0a450686d1d222eb8e39e23ba5d2ea83657862d1 | [
"MIT"
] | 18 | 2018-02-25T11:13:46.000Z | 2022-03-28T03:43:38.000Z | priv/repo/migrations/003_create_edges.exs | TheSwanFactory/igwet | 0a450686d1d222eb8e39e23ba5d2ea83657862d1 | [
"MIT"
] | 1 | 2019-01-04T12:16:47.000Z | 2019-01-04T12:16:47.000Z | defmodule Igwet.Repo.Migrations.CreateEdges do
use Ecto.Migration
def change do
create table(:edges) do
add(:subject_id, references(:nodes, on_delete: :delete_all, type: :uuid))
add(:predicate_id, references(:nodes, on_delete: :delete_all, type: :uuid))
add(:object_id, references(:nodes, on_d... | 28.722222 | 81 | 0.676983 |
da82a098b5561e8e6d9325e2e815775896ee5916 | 65 | ex | Elixir | lib/readerl/repo.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | 3 | 2015-10-31T02:33:29.000Z | 2016-07-19T06:25:03.000Z | lib/readerl/repo.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | lib/readerl/repo.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | defmodule Readerl.Repo do
use Ecto.Repo, otp_app: :readerl
end
| 16.25 | 34 | 0.769231 |
da82bf2e23e3e08398af99775d765f0d372afaf1 | 1,819 | exs | Elixir | clients/library_agent/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/library_agent/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/library_agent/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.149254 | 104 | 0.654206 |
da832fb4e3ef96bb1664a25704bba0eb1e281aff | 1,748 | exs | Elixir | config/releases.sample.exs | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | config/releases.sample.exs | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | config/releases.sample.exs | StickyFloors/quizquadaminos | 03e3b5f150d3a911efa2174bc4631a0ee6b54888 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | import Config
# host_url is the static IP address provided once VM instance has been launched.
# Replace this with the one provided.
host_url = "35.232.208.120"
# Configure your database
# In order to configure the database, you must create a database instance on GCP.
# Provide the username, password, database name a... | 35.673469 | 98 | 0.75286 |
da834702274f5ef230d9b7b3987d0f253d4eec78 | 1,649 | ex | Elixir | DL-5TM/DL-5TM.ELEMENT-IoT.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 13 | 2020-01-18T22:08:44.000Z | 2022-02-06T14:19:57.000Z | DL-5TM/DL-5TM.ELEMENT-IoT.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 4 | 2019-05-10T07:17:41.000Z | 2021-10-20T16:24:04.000Z | DL-5TM/DL-5TM.ELEMENT-IoT.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 15 | 2019-06-04T06:13:32.000Z | 2022-02-15T07:28:52.000Z |
# https://www.decentlab.com/products/legacy-soil-moisture-and-temperature-sensor-for-lorawan
defmodule Parser do
use Platform.Parsing.Behaviour
## test payloads
# 02023b0003003702710c60
# 02023b00020c60
def fields do
[
%{field: "dielectric_permittivity", display: "Dielectric permittivity", u... | 31.711538 | 137 | 0.571862 |
da8397a36bf9a96089bc3b8208e18944838980ef | 1,598 | exs | Elixir | test/groupher_server_web/mutation/cms/upvotes/radar_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/upvotes/radar_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/upvotes/radar_upvote_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Upvotes.RadarUpvote do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.CMS
setup do
{:ok, radar} = db_insert(:radar)
{:ok, user} = db_insert(:user)
guest_conn = simu_conn(:guest)
user_conn = simu_conn(:user, user)
{:ok, ~m(user_co... | 24.584615 | 82 | 0.61577 |
da83c9d3b777cfbe3ea2aba387e18c27d70e214a | 1,003 | ex | Elixir | clients/chrome_ux_report/lib/google_api/chrome_ux_report/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chrome_ux_report/lib/google_api/chrome_ux_report/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chrome_ux_report/lib/google_api/chrome_ux_report/v1/connection.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... | 33.433333 | 74 | 0.750748 |
da83eb37b60fe84dd62e7e1491c7b3de6c623585 | 4,003 | exs | Elixir | test/lib/cryptozaur/drivers/leverex_rest_test.exs | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 5 | 2018-09-19T09:13:15.000Z | 2021-10-20T23:29:57.000Z | test/lib/cryptozaur/drivers/leverex_rest_test.exs | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 6 | 2018-07-29T05:33:02.000Z | 2018-09-18T20:42:19.000Z | test/lib/cryptozaur/drivers/leverex_rest_test.exs | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 3 | 2018-07-24T05:55:04.000Z | 2018-09-19T09:14:08.000Z | defmodule Cryptozaur.Drivers.LeverexRestTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney, options: [clear_mock: true]
require OK
setup_all do
HTTPoison.start()
credentials = Application.get_env(:cryptozaur, :leverex, key: "", secret: "")
{:ok, driver} = Cryptozaur.Drivers.Le... | 42.136842 | 1,182 | 0.567325 |
da8437d2dd4db38267ba25ca91770ffef34ce07e | 7,035 | exs | Elixir | test/swoosh/adapters/mandrill_test.exs | henb/swoosh | 54534c411d1b9be46d94c2f75e102098a3ad28ea | [
"MIT"
] | null | null | null | test/swoosh/adapters/mandrill_test.exs | henb/swoosh | 54534c411d1b9be46d94c2f75e102098a3ad28ea | [
"MIT"
] | null | null | null | test/swoosh/adapters/mandrill_test.exs | henb/swoosh | 54534c411d1b9be46d94c2f75e102098a3ad28ea | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.MandrillTest do
use AdapterCase, async: true
import Swoosh.Email
alias Swoosh.Adapters.Mandrill
@success_response """
[
{
"email": "steve.rogers@example.com",
"status": "sent",
"_id": "9",
"reject_reason" :null
}
]
"""
@queued_... | 38.653846 | 200 | 0.527221 |
da84a22b2797ad455e32092a0351518c8ddb47a2 | 591 | exs | Elixir | mix.exs | umka1332/rpc | b7acbe281ace700c8dfa2cce5c8e4cda00cac44e | [
"ISC"
] | 1 | 2020-10-05T18:29:08.000Z | 2020-10-05T18:29:08.000Z | mix.exs | umka1332/rpc | b7acbe281ace700c8dfa2cce5c8e4cda00cac44e | [
"ISC"
] | null | null | null | mix.exs | umka1332/rpc | b7acbe281ace700c8dfa2cce5c8e4cda00cac44e | [
"ISC"
] | null | null | null | defmodule RPC.Mixfile do
use Mix.Project
def project() do
[
app: :rpc,
version: "0.9.2",
elixir: "~> 1.7",
description: "RPC Remote Procedure Call",
package: package(),
deps: deps()
]
end
def package do
[
files: ~w(include src mix.exs LICENSE),
licen... | 16.885714 | 58 | 0.510998 |
da84c76b6570f419294782729e651f656322cdaa | 1,007 | ex | Elixir | lib/space.ex | geistesk/spaceapi | 7506dfa9f8f95abef87c65b9dd61014a56fdc125 | [
"MIT"
] | null | null | null | lib/space.ex | geistesk/spaceapi | 7506dfa9f8f95abef87c65b9dd61014a56fdc125 | [
"MIT"
] | null | null | null | lib/space.ex | geistesk/spaceapi | 7506dfa9f8f95abef87c65b9dd61014a56fdc125 | [
"MIT"
] | null | null | null | defmodule SpaceApi.Space do
alias SpaceApi.Space
@moduledoc """
A module to describe the status of a Space API-endpoint. The struct has just
some elements which could be parsed from every version of the Space API. The
whole JSON-Respone is stored in _raw_json_.
* _space_ Name of the space
* _logo_ URL to... | 30.515152 | 78 | 0.61569 |
da85343252ce9d1e2dd621d254c41993dbe4527a | 962 | ex | Elixir | test/support/channel_case.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 5 | 2019-07-13T22:20:50.000Z | 2020-07-13T05:05:43.000Z | test/support/channel_case.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 33 | 2019-08-01T03:48:23.000Z | 2021-07-28T03:29:40.000Z | test/support/channel_case.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 2 | 2019-09-03T22:45:11.000Z | 2020-01-01T23:56:58.000Z | defmodule HammocWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wi... | 25.315789 | 85 | 0.718295 |
da853a9da4a82c03620137699372f242f9d16a33 | 1,291 | ex | Elixir | lib/docker/request.ex | azukiapp/exdocker | 87ed188d72150df74d030fc8431888dbc61edcd6 | [
"Apache-2.0"
] | 1 | 2015-06-13T03:33:49.000Z | 2015-06-13T03:33:49.000Z | lib/docker/request.ex | azukiapp/exdocker | 87ed188d72150df74d030fc8431888dbc61edcd6 | [
"Apache-2.0"
] | null | null | null | lib/docker/request.ex | azukiapp/exdocker | 87ed188d72150df74d030fc8431888dbc61edcd6 | [
"Apache-2.0"
] | null | null | null | defmodule Docker.Request do
defmacro __using__(_opts) do
quote do
import unquote(__MODULE__), only: :macros
@root_endpoint ""
end
end
defmacro root_endpoint(url) do
quote do
@root_endpoint @root_endpoint <> unquote(url)
end
end
defmacro entry(endpoint, url // nil) do
f... | 25.82 | 86 | 0.61038 |
da853e5b3b8a8d45441ed2b7e27071d55cf7ea06 | 2,301 | ex | Elixir | lib/sanbase/alerts/trigger/settings/result_builder/transformer.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/alerts/trigger/settings/result_builder/transformer.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/alerts/trigger/settings/result_builder/transformer.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Alert.ResultBuilder.Transformer do
defmodule Data do
@derive Jason.Encoder
defstruct [
:identifier,
:current,
:previous,
:previous_average,
:absolute_change,
:percent_change
]
defimpl String.Chars, for: __MODULE__ do
def to_string(data), do:... | 30.68 | 117 | 0.619731 |
da859f2acd5e67ff6a787133f9743507ec7b81d4 | 517 | exs | Elixir | apps/cronitex/priv/repo/migrations/20201025132736_create_cronmonitors.exs | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 1 | 2020-11-05T15:38:53.000Z | 2020-11-05T15:38:53.000Z | apps/cronitex/priv/repo/migrations/20201025132736_create_cronmonitors.exs | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 36 | 2020-10-24T01:28:42.000Z | 2022-02-07T11:11:37.000Z | apps/cronitex/priv/repo/migrations/20201025132736_create_cronmonitors.exs | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | null | null | null | defmodule Cronitex.Repo.Migrations.CreateCronmonitors do
use Ecto.Migration
def change do
create table(:cronmonitors) do
add :name, :string
add :token, :string
add :cron_expression, :map
add :start_tolerance_seconds, :integer
add :user_id, references(:users)
timestamps()
... | 25.85 | 57 | 0.682785 |
da85a027c490b2c5fd61609fb0f1e3996c25704d | 8,140 | ex | Elixir | apps/language_server/lib/language_server/build.ex | lukaszsamson/elixir-ls-1 | 767e17471301b6aaf63d501b8df6441ec1dc11f2 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/build.ex | lukaszsamson/elixir-ls-1 | 767e17471301b6aaf63d501b8df6441ec1dc11f2 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/build.ex | lukaszsamson/elixir-ls-1 | 767e17471301b6aaf63d501b8df6441ec1dc11f2 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Build do
alias ElixirLS.LanguageServer.{Server, JsonRpc, SourceFile, Diagnostics}
def build(parent, root_path, opts) do
if Path.absname(File.cwd!()) != Path.absname(root_path) do
IO.puts("Skipping build because cwd changed from #{root_path} to #{File.cwd!()}")
{nil... | 28.263889 | 97 | 0.557125 |
da85a4270bd9e4483415ac4794bd9c25e01fbf49 | 1,953 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_document_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_document_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_document_operation_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... | 34.263158 | 192 | 0.771121 |
da85b2e0a52461f18a526c1b014165e9d2aa4627 | 1,875 | ex | Elixir | lib/aoc/day_08.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | lib/aoc/day_08.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | lib/aoc/day_08.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | defmodule AoC.Day08 do
@moduledoc false
def part_1 do
"data/day08-input.txt"
|> load_image_data()
|> Enum.map(fn pixels -> Enum.group_by(pixels, fn pixel -> pixel end) end)
|> Enum.map(&reduce_to_pixel_count/1)
|> Enum.min_by(&Map.get(&1, 0))
|> (fn counts -> Map.get(counts, 1, 0) * Map.get... | 26.041667 | 95 | 0.597867 |
da85dc1200e31f4c9420f0b58d2c42b071f90680 | 455 | ex | Elixir | lib/changelog/policies/admin/person.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog/policies/admin/person.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog/policies/admin/person.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Policies.Admin.Person do
use Changelog.Policies.Default
def create(actor), do: is_admin_editor_or_host(actor)
def index(actor), do: is_admin_editor_or_host(actor)
def show(actor, _), do: is_admin_editor_or_host(actor)
def update(actor, _), do: is_admin_editor_or_host(actor)
def slack(ac... | 37.916667 | 58 | 0.762637 |
da8610f2e8efdb596a5d2ef4abeb6338e1548407 | 33,928 | ex | Elixir | test/support/responses/rss_service_status_response.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/support/responses/rss_service_status_response.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | test/support/responses/rss_service_status_response.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Test.Support.Responses.RssServiceStatusResponse do
def get() do
"""
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>GitHub Status - Incident History</title>
<link>https://www.githubstatus.com</l... | 157.074074 | 3,887 | 0.679321 |
da861145eb0bb320e1a4c6bda258e4fd2346f1e9 | 2,057 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_apply_configuration_request.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/customer_apply_configuration_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_apply_configuration_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 ... | 36.732143 | 163 | 0.755469 |
da8642a48164ac0159160301968bba7e88da342a | 2,350 | exs | Elixir | mix.exs | falti/commanded-uniqueness-middleware | 88bd1e54f7f4e2be074ed9d841b47fac6b3023f2 | [
"MIT"
] | null | null | null | mix.exs | falti/commanded-uniqueness-middleware | 88bd1e54f7f4e2be074ed9d841b47fac6b3023f2 | [
"MIT"
] | null | null | null | mix.exs | falti/commanded-uniqueness-middleware | 88bd1e54f7f4e2be074ed9d841b47fac6b3023f2 | [
"MIT"
] | null | null | null | defmodule Commanded.Middleware.Uniqueness.MixProject do
use Mix.Project
@version "0.6.2"
def project do
[
app: :commanded_uniqueness_middleware,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps()... | 24.479167 | 82 | 0.579574 |
da864ca03400020cb2364be12a2e30f9b5f33d04 | 1,785 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/file_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/file_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/file_info.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... | 35.7 | 220 | 0.739496 |
da867af902d9c463fe213ca0a9f596f99845d988 | 103,526 | ex | Elixir | lib/aws/generated/waf.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/waf.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/waf.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.WAF do
@moduledoc """
This is **AWS WAF Classic** documentation.
For more information, see [AWS WAF Classic](https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html)
... | 43.811257 | 149 | 0.737332 |
da86b3270a47b1b683225fc29938cfee382ed9a3 | 1,836 | exs | Elixir | test/logger_test.exs | ppraisethesun/logger_papertrail_backend | c8ae5af08306dfe788b2fd59aa373e4ed2bc69f6 | [
"MIT"
] | 53 | 2015-12-26T22:52:21.000Z | 2022-01-25T03:56:48.000Z | test/logger_test.exs | ppraisethesun/logger_papertrail_backend | c8ae5af08306dfe788b2fd59aa373e4ed2bc69f6 | [
"MIT"
] | 21 | 2015-10-02T13:15:46.000Z | 2021-01-12T19:14:34.000Z | test/logger_test.exs | ppraisethesun/logger_papertrail_backend | c8ae5af08306dfe788b2fd59aa373e4ed2bc69f6 | [
"MIT"
] | 11 | 2016-08-20T22:59:59.000Z | 2021-12-12T18:04:16.000Z | defmodule LoggerPapertrailBackend.LoggerTest do
use ExUnit.Case, async: true
require Logger
@system_name "test_system_name"
@port 29123
setup do
:ok = Application.put_env(:logger, :backends, [ LoggerPapertrailBackend.Logger ])
:ok = Application.put_env(:logger, :logger_papertrail_backend,
url:... | 30.098361 | 85 | 0.694989 |
da86b79187d96bb5c8da5630dd7c150ff8aa5161 | 59 | ex | Elixir | web/views/layout_view.ex | ktornwall/elixir_conf_2016_demo | 5a0adf832773714ba7743c049964623262ee7a13 | [
"MIT"
] | 27 | 2016-09-02T19:26:16.000Z | 2017-11-30T02:27:16.000Z | web/views/layout_view.ex | katzenbar/elixir_conf_2016_demo | 5a0adf832773714ba7743c049964623262ee7a13 | [
"MIT"
] | 1 | 2016-10-23T18:24:59.000Z | 2016-10-23T18:24:59.000Z | web/views/layout_view.ex | ktornwall/elixir_conf_2016_demo | 5a0adf832773714ba7743c049964623262ee7a13 | [
"MIT"
] | 4 | 2016-10-08T02:51:41.000Z | 2017-12-05T02:02:40.000Z | defmodule ExConf.LayoutView do
use ExConf.Web, :view
end
| 14.75 | 30 | 0.779661 |
da86d052878ea6c7adcc56d584854ada6e99bbdb | 899 | ex | Elixir | test/support/behaviour_with_macrocallbacks.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 216 | 2019-01-05T02:08:51.000Z | 2022-03-23T23:59:56.000Z | test/support/behaviour_with_macrocallbacks.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 102 | 2019-01-18T04:59:06.000Z | 2022-01-10T14:21:24.000Z | test/support/behaviour_with_macrocallbacks.ex | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 31 | 2019-01-16T08:19:34.000Z | 2022-03-07T08:06:22.000Z | defmodule ElixirSenseExample.BehaviourWithMacrocallback do
@doc """
A required macrocallback
"""
@macrocallback required(atom) :: Macro.t()
@doc """
An optional macrocallback
"""
@macrocallback optional(a) :: Macro.t() when a: atom
@optional_callbacks [optional: 1]
end
defmodule ElixirSenseExample.... | 26.441176 | 91 | 0.699666 |
da86e0fed8e869a86134016b73518fc80f558b1d | 536 | ex | Elixir | lib/mastani_server/accounts/source_contribute.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/accounts/source_contribute.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/accounts/source_contribute.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Accounts.SourceContribute do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
@optional_fields ~w(web server mobile we_app h5)a
@type t :: %SourceContribute{}
embedded_schema do
field(:web, :boolean)
field(:server, :boolean)
field(:mobile, :boo... | 21.44 | 66 | 0.708955 |
da87467c0f689350d4bdcc33e14bea99d7dcd6d8 | 1,598 | ex | Elixir | apps/nectar/web/controllers/session_controller.ex | saurabharch/nectarcommerce | 3497ab8f0c3fcf5a679dc112d905fea9e6df45ac | [
"MIT"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | apps/nectar/web/controllers/session_controller.ex | sshyran/elixir-nectar-commerce | 87f846ef1bc5cd2d675165b468ae7014dd4fe354 | [
"MIT"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | apps/nectar/web/controllers/session_controller.ex | sshyran/nectarcommerce | 3497ab8f0c3fcf5a679dc112d905fea9e6df45ac | [
"MIT"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.SessionController do
use Nectar.Web, :controller
alias Nectar.User
alias Nectar.Repo
plug :scrub_params, "user" when action in [:create]
def new(conn, _params) do
changeset = User.login_changeset(%User{})
render conn, "new.html", changeset: changeset
end
def create(conn, %{"use... | 29.054545 | 92 | 0.62766 |
da8767cbce4328a3142d2ac80a80d43107861575 | 266 | exs | Elixir | blank/test/blank_web/views/layout_view_test.exs | unozerocode/turbo-journey | 55c54e4b10bb1e49a1f999fd0eb03acdd35fef98 | [
"MIT"
] | null | null | null | blank/test/blank_web/views/layout_view_test.exs | unozerocode/turbo-journey | 55c54e4b10bb1e49a1f999fd0eb03acdd35fef98 | [
"MIT"
] | 2 | 2021-03-10T20:40:33.000Z | 2021-05-11T16:13:21.000Z | blank/test/blank_web/views/layout_view_test.exs | unozerocode/turbo-journey | 55c54e4b10bb1e49a1f999fd0eb03acdd35fef98 | [
"MIT"
] | null | null | null | defmodule BlankWeb.LayoutViewTest do
use BlankWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 29.555556 | 65 | 0.763158 |
da8782bcd7a86f404f2763b977bbcd39ee8c3479 | 886 | ex | Elixir | clients/vector_tile/lib/google_api/vector_tile/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/vector_tile/lib/google_api/vector_tile/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vector_tile/lib/google_api/vector_tile/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.814815 | 74 | 0.759594 |
da87bd57fbc380b4329575b88fe7cf3a4b84fd5d | 2,005 | ex | Elixir | lib/crudimentary/policy.ex | CRUDimentary/crudimentary_policy | cfa40d469cda6d911a4daf626473e1f4eab91ab8 | [
"MIT"
] | null | null | null | lib/crudimentary/policy.ex | CRUDimentary/crudimentary_policy | cfa40d469cda6d911a4daf626473e1f4eab91ab8 | [
"MIT"
] | null | null | null | lib/crudimentary/policy.ex | CRUDimentary/crudimentary_policy | cfa40d469cda6d911a4daf626473e1f4eab91ab8 | [
"MIT"
] | null | null | null | defmodule CRUDimentary.Policy do
@moduledoc """
This module generates and defines set of overridable functions which regulate scope of access
and action authorization based on the current account properties.
"""
defmacro __using__(_) do
quote do
def scope(queryable, _current_account, _parent) do
... | 34.568966 | 97 | 0.654863 |
da87fe859ee7826af6339ced987e3be6009d79fc | 1,531 | ex | Elixir | lib/bamboo/adapters/test_adapter.ex | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | lib/bamboo/adapters/test_adapter.ex | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | lib/bamboo/adapters/test_adapter.ex | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | 1 | 2018-08-02T12:36:21.000Z | 2018-08-02T12:36:21.000Z | defmodule Bamboo.TestAdapter do
@moduledoc """
Used for testing email delivery
No emails are sent, instead a message is sent to the current process and can
be asserted on with helpers from `Bamboo.Test`.
## Example config
# Typically done in config/test.exs
config :my_app, MyApp.Mailer,
... | 25.949153 | 82 | 0.693011 |
da8840759dadda2d405631d86976aef77d13624d | 2,073 | ex | Elixir | lib/naive_bayes/data.ex | gstamp/naive_bayes | cfd18d1fb1b8524609b08c1a0b93a6feba6e5e8a | [
"MIT"
] | 10 | 2016-04-26T20:52:57.000Z | 2021-08-08T12:35:39.000Z | lib/naive_bayes/data.ex | gstamp/naive_bayes | cfd18d1fb1b8524609b08c1a0b93a6feba6e5e8a | [
"MIT"
] | 2 | 2018-11-09T00:59:59.000Z | 2018-12-10T11:56:02.000Z | lib/naive_bayes/data.ex | gstamp/naive_bayes | cfd18d1fb1b8524609b08c1a0b93a6feba6e5e8a | [
"MIT"
] | 3 | 2018-06-15T21:49:56.000Z | 2021-02-21T22:49:56.000Z | defmodule Data do
@moduledoc false
defstruct categories: %{}
def increment_examples(data, category) do
data = if get_in(data.categories, [category]) == nil do
put_in(data.categories[category], %{})
else
data
end
data = update_in(data.categories[category][:examples], fn e ->
ca... | 24.678571 | 74 | 0.610227 |
da884dbc265d77108a6a7b532cc990978e1c1b54 | 330 | ex | Elixir | lib/exscript/stdlib/list.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | 1 | 2017-12-15T23:55:05.000Z | 2017-12-15T23:55:05.000Z | lib/exscript/stdlib/list.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | null | null | null | lib/exscript/stdlib/list.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | null | null | null | defmodule ExScript.Stdlib.List do
def first(_list) do
JS.embed("_list[0]")
end
def delete_at(_list, _index) do
JS.embed("[..._list.slice(0, _index), ..._list.slice(_index + 1)]")
end
def replace_at(_list, _index, _val) do
JS.embed("[..._list.slice(0, _index), _val, ..._list.slice(_index + 1)]")
... | 23.571429 | 77 | 0.636364 |
da885da59c8c7baab3af49542148f0c357c4fef3 | 693 | ex | Elixir | lib/sched_ex/stats/value.ex | matthewoden/SchedEx | 99710fb2c0ca49946d5d90cc494c26531ce69b6d | [
"MIT"
] | null | null | null | lib/sched_ex/stats/value.ex | matthewoden/SchedEx | 99710fb2c0ca49946d5d90cc494c26531ce69b6d | [
"MIT"
] | null | null | null | lib/sched_ex/stats/value.ex | matthewoden/SchedEx | 99710fb2c0ca49946d5d90cc494c26531ce69b6d | [
"MIT"
] | 1 | 2018-09-19T14:06:26.000Z | 2018-09-19T14:06:26.000Z | defmodule SchedEx.Stats.Value do
@moduledoc false
defstruct min: nil, max: nil, avg: nil, count: 0, histogram: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
@num_periods 50
@weight_factor 2 / (@num_periods + 1)
@bucket_size 100
def update(%__MODULE__{min: min, max: max, avg: avg, count: count, histogram: his... | 30.130435 | 104 | 0.607504 |
da88670d7d9f1851ff729a74a3bf0b2e53243ef3 | 991 | ex | Elixir | lib/top5_2/application.ex | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | lib/top5_2/application.ex | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | 2 | 2021-03-09T09:26:25.000Z | 2021-05-09T08:58:51.000Z | lib/top5_2/application.ex | rpillar/Top5_Elixir2 | 9f3a9a0315c5dc53cb53aab93deadccdb697a868 | [
"MIT"
] | null | null | null | defmodule Top52.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the Ecto repository
Top52.Repo,
# ... | 30.030303 | 73 | 0.707366 |
da8871c33a90ab3212184a71629f60e98e2401b9 | 1,622 | ex | Elixir | lib/flamelex/gui/utils/fonts.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 10 | 2021-03-02T20:05:13.000Z | 2022-03-14T21:10:39.000Z | lib/flamelex/gui/utils/fonts.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-14T18:29:44.000Z | 2021-12-23T20:38:27.000Z | lib/flamelex/gui/utils/fonts.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-05T20:41:26.000Z | 2021-12-26T01:46:42.000Z | defmodule Flamelex.GUI.Fonts do
#TODO this should be config driven I guess
#TODO the font should be a config
# def primary do
# # Flamelex.GUI.Fonts.font_hash(:ibm_plex_mono)
# "fonts/custom_font.ttf"
# end
def primary(:font) do
:ibm_plex_mono
end
@doc """
The default font size.
"""
... | 21.064935 | 79 | 0.68619 |
da88872fced548d27b9e921d7fbf0e7bbc08bd56 | 779 | ex | Elixir | lib/crdt/g_counter.ex | jeffrey-xiao/crdt_ex | 93ee570a9eab8749e4fc05d3903cd0e9d53f7c9c | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/crdt/g_counter.ex | jeffrey-xiao/crdt_ex | 93ee570a9eab8749e4fc05d3903cd0e9d53f7c9c | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/crdt/g_counter.ex | jeffrey-xiao/crdt_ex | 93ee570a9eab8749e4fc05d3903cd0e9d53f7c9c | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Crdt.GCounter do
@moduledoc """
A G-Counter is a counter that only allows for increments.
"""
alias Crdt.VectorClock
@type t :: VectorClock.t()
@doc """
Returns a new, empty G-Counter.
"""
@spec new :: t()
def new, do: VectorClock.new()
@doc """
Merges `c1` and `c2`.
"""
@spec m... | 21.054054 | 87 | 0.594352 |
da88a7c427ae97c6c79f739226624714c16a97ce | 553 | ex | Elixir | apps/bus_detective/lib/bus_detective/gtfs/service_exception.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective/lib/bus_detective/gtfs/service_exception.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective/lib/bus_detective/gtfs/service_exception.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | defmodule BusDetective.GTFS.ServiceException do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
alias BusDetective.GTFS.{Feed, Service}
schema "service_exceptions" do
belongs_to(:feed, Feed)
belongs_to(:service, Service)
field(:date, :date)
field(:exception, :integer)
timestamp... | 21.269231 | 68 | 0.703436 |
da88a92384939dd4611e321dfd2f6f7c36a1bb3f | 460 | ex | Elixir | lib/professor_stats.ex | jakehafdahl/email-service | 696c1fce52e0d432ade513ce6ad36edcd76ec0cd | [
"MIT"
] | null | null | null | lib/professor_stats.ex | jakehafdahl/email-service | 696c1fce52e0d432ade513ce6ad36edcd76ec0cd | [
"MIT"
] | null | null | null | lib/professor_stats.ex | jakehafdahl/email-service | 696c1fce52e0d432ade513ce6ad36edcd76ec0cd | [
"MIT"
] | null | null | null | defmodule ProfessorStats do
use Application
require Logger
def start(_type, args) do
import Supervisor.Spec
children = [
supervisor(ProfessorStats.Repo,[]),
supervisor(ProfessorStats.CalcService,[]),
supervisor(ProfessorStats.ScheduleService,[]),
worker(Task, [ProfessorStats, :loop, args])
]
o... | 19.166667 | 66 | 0.734783 |
da88bfff3a3c2efb1ded45305e90426e21da009e | 4,255 | ex | Elixir | lib/teiserver/coordinator/coordinator_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver/coordinator/coordinator_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver/coordinator/coordinator_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | defmodule Teiserver.Coordinator.CoordinatorLib do
def help() do
# [] = optional argument, first option is the default
# () = non optional argument
# Anything flagged as TODO is either not implemented or not fully tested
"""
Commands
TODO: status
status info about the battle lobby
TODO: help
dis... | 34.877049 | 134 | 0.762632 |
da88d0eef4f2289e590ecfea09a35a44e0c38917 | 1,759 | ex | Elixir | lib/neo4j_sips/response.ex | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 90 | 2015-10-12T17:57:11.000Z | 2021-04-26T06:29:00.000Z | lib/neo4j_sips/response.ex | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 23 | 2015-12-04T01:56:03.000Z | 2019-10-08T23:23:37.000Z | lib/neo4j_sips/response.ex | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 36 | 2016-01-06T16:07:56.000Z | 2021-02-18T09:29:48.000Z | defmodule Neo4j.Sips.Response do
@moduledoc ~S"""
Defines the structure for a raw REST response received from a Neo4j server.
"""
# @derive Access
defstruct [:results, :transaction, :commit, :errors]
def to_rows(sip) do
get_results(sip, "row")
end
def to_graph(sip) do
get_results(sip, "graph"... | 25.128571 | 115 | 0.604889 |
da88e1729bbc42699ca5a9a620e52ae4f8efc74b | 1,795 | ex | Elixir | lib/phoenix_starter_web/views/layout_view.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 3 | 2021-03-19T10:39:02.000Z | 2021-07-25T19:54:09.000Z | lib/phoenix_starter_web/views/layout_view.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 204 | 2020-11-27T06:00:31.000Z | 2022-03-25T08:08:16.000Z | lib/phoenix_starter_web/views/layout_view.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | null | null | null | defmodule PhoenixStarterWeb.LayoutView do
use PhoenixStarterWeb, :view
alias Phoenix.HTML
alias PhoenixStarter.Users
@type flash_key() :: :info | :warning | :error
@doc """
Returns HTML for an alert banner based on a `%Plug.Conn{}` struct or a
LiveView flash assign.
The outermost tag is assigned a s... | 26.791045 | 91 | 0.645682 |
da89098d2af0076bb88c7b0cb4b00907098c02f2 | 449 | ex | Elixir | test/example_embed.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | test/example_embed.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | test/example_embed.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule MyApp.MyStruct do
use Nostrum.Struct.Embed
defstruct []
def title(_), do: "craig"
def description(_), do: "nostrum"
def url(_), do: "https://google.com/"
def timestamp(_), do: "2016-05-05T21:04:13.203Z"
def color(_), do: 431_948
def fields(_) do
[
%Nostrum.Struct.Embed.Field{name:... | 23.631579 | 84 | 0.634744 |
da891aa981fc2af08b850d6601285790e38adeba | 1,999 | ex | Elixir | test/support/layout_view.ex | almirsarajcic/phoenix_live_view | 6cecf857494d4ec43d89be5d6cc4d4d4ff53780d | [
"MIT"
] | 1 | 2021-06-28T12:31:07.000Z | 2021-06-28T12:31:07.000Z | test/support/layout_view.ex | almirsarajcic/phoenix_live_view | 6cecf857494d4ec43d89be5d6cc4d4d4ff53780d | [
"MIT"
] | null | null | null | test/support/layout_view.ex | almirsarajcic/phoenix_live_view | 6cecf857494d4ec43d89be5d6cc4d4d4ff53780d | [
"MIT"
] | 1 | 2021-11-20T01:11:28.000Z | 2021-11-20T01:11:28.000Z | defmodule Phoenix.LiveViewTest.LayoutView do
use Phoenix.View, root: ""
alias Phoenix.LiveViewTest.Router.Helpers, as: Routes
import Phoenix.LiveView.Helpers
def render("app.html", assigns) do
# Assert those assigns are always available
_ = assigns.live_module
_ = assigns.live_action
["LAYOUT"... | 25.628205 | 102 | 0.61931 |
da8983d8fb7d268c065719372addd588baf2866e | 254 | ex | Elixir | lib/user_points_manager_web/controllers/health_controller.ex | Geekfish/random-user-points-service | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | null | null | null | lib/user_points_manager_web/controllers/health_controller.ex | Geekfish/random-user-points-service | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | 4 | 2021-08-16T11:44:58.000Z | 2021-08-19T15:45:10.000Z | lib/user_points_manager_web/controllers/health_controller.ex | Geekfish/user-points-manager | d0416ef8fc1f2591023763c0078d15c62f5fba3c | [
"MIT"
] | null | null | null | defmodule UserPointsManagerWeb.HealthController do
@moduledoc """
Simple controller that always returns a succesful health-check.
"""
use UserPointsManagerWeb, :controller
def show(conn, _params) do
json(conn, %{status: "pass"})
end
end
| 23.090909 | 65 | 0.73622 |
da89959daa66dfce2cf34a400f4227533f8103a1 | 2,850 | ex | Elixir | clients/content/lib/google_api/content/v2/model/carrier_rate.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/carrier_rate.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/carrier_rate.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 ... | 45.967742 | 283 | 0.703509 |
da89967ea3a8a3ffa368c2e9394a14624f6ff7ac | 190 | ex | Elixir | Getting-Started-with-Phoenix/rsvp_umbrella/apps/rsvp/lib/rsvp.ex | timothydang/elixir-phoenix-training | f21ca5b4b48bf8c7188897d09b9d6565f7a46f0e | [
"Apache-2.0"
] | null | null | null | Getting-Started-with-Phoenix/rsvp_umbrella/apps/rsvp/lib/rsvp.ex | timothydang/elixir-phoenix-training | f21ca5b4b48bf8c7188897d09b9d6565f7a46f0e | [
"Apache-2.0"
] | 3 | 2020-07-17T15:52:56.000Z | 2021-05-09T22:33:57.000Z | Getting-Started-with-Phoenix/rsvp_umbrella/apps/rsvp/lib/rsvp.ex | timothydang/elixir-phoenix-training | f21ca5b4b48bf8c7188897d09b9d6565f7a46f0e | [
"Apache-2.0"
] | null | null | null | defmodule Rsvp do
@moduledoc """
Documentation for Rsvp.
"""
@doc """
Hello world.
## Examples
iex> Rsvp.hello()
:world
"""
def hello do
:world
end
end
| 10 | 25 | 0.542105 |
da8997c871826db7bdae9c4b754514a9af5b4465 | 164 | exs | Elixir | test/balenax_test.exs | Sebi55/balenax | c2aa9a9b29a47b53a5d98a0bc3b3471967a6e78a | [
"MIT"
] | null | null | null | test/balenax_test.exs | Sebi55/balenax | c2aa9a9b29a47b53a5d98a0bc3b3471967a6e78a | [
"MIT"
] | null | null | null | test/balenax_test.exs | Sebi55/balenax | c2aa9a9b29a47b53a5d98a0bc3b3471967a6e78a | [
"MIT"
] | null | null | null | defmodule BalenaxTest do
use ExUnit.Case, async: true
# @todo all tests are non sense
@balenax_test_api_key "0x0000000000000000000000000000000000000000"
end
| 23.428571 | 68 | 0.804878 |
da89d44119a9c8c017213a0918778f971c054938 | 613 | exs | Elixir | test/json_test_suite.exs | suexcxine/jaxon | fb638f76945236822e8e015ee4b4d79b8255b71e | [
"Apache-2.0"
] | 161 | 2018-04-08T17:28:36.000Z | 2021-12-07T00:10:26.000Z | test/json_test_suite.exs | suexcxine/jaxon | fb638f76945236822e8e015ee4b4d79b8255b71e | [
"Apache-2.0"
] | 21 | 2018-07-28T13:11:04.000Z | 2021-06-27T16:00:36.000Z | test/json_test_suite.exs | suexcxine/jaxon | fb638f76945236822e8e015ee4b4d79b8255b71e | [
"Apache-2.0"
] | 14 | 2018-08-15T17:17:04.000Z | 2021-08-18T00:21:24.000Z | defmodule Jason.JsonTestSuite do
use ExUnit.Case, async: true
@json_test_suite_path "json_test_suite"
"#{@json_test_suite_path}/*.json"
|> Path.wildcard()
|> Enum.each(fn
file = "json_test_suite/n_" <> name ->
test name do
assert {:error, _} = Jaxon.decode(File.read!(unquote(file)))
... | 24.52 | 68 | 0.606852 |
da89e138b426a82048b7174466b4707895904c53 | 440 | ex | Elixir | web/models/user.ex | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | 15 | 2017-01-06T05:52:23.000Z | 2022-02-14T10:05:42.000Z | web/models/user.ex | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | 1 | 2019-09-09T06:23:35.000Z | 2020-10-25T21:36:51.000Z | web/models/user.ex | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | null | null | null | defmodule Learnrls.User do
use Learnrls.Web, :model
@primary_key {:id, :binary_id, autogenerate: true}
schema "users" do
field :name, :string
timestamps()
has_many :messages, Learnrls.Message, foreign_key: :from
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def ... | 20 | 60 | 0.645455 |
da89ea99f7d21ea7e8903629f5b9395cfcab095a | 1,844 | ex | Elixir | clients/content/lib/google_api/content/v2/model/liasettings_custom_batch_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/liasettings_custom_batch_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/liasettings_custom_batch_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.88 | 169 | 0.748373 |
da89f9e98b4acd8acf581e2afeeeca91f8a71da5 | 1,141 | exs | Elixir | deps/makeup_elixir/mix.exs | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/makeup_elixir/mix.exs | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/makeup_elixir/mix.exs | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule MakeupElixir.Mixfile do
use Mix.Project
@version "0.8.0"
def project do
[
app: :makeup_elixir,
version: @version,
elixir: "~> 1.4",
start_permanent: Mix.env == :prod,
deps: deps(),
# Package
package: package(),
description: description(),
docs:... | 19.672414 | 67 | 0.533742 |
da8a063ec3d377ef15d6305dda67c8689ce638ed | 1,393 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/empty.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/empty.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/empty.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... | 37.648649 | 381 | 0.740847 |
da8a647487d117dd71ff90fee9a35b36fb023092 | 258 | exs | Elixir | apps/firestorm_data/priv/repo/migrations/20170306042642_create_threads_follows.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_data/priv/repo/migrations/20170306042642_create_threads_follows.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_data/priv/repo/migrations/20170306042642_create_threads_follows.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormData.Repo.Migrations.CreateThreadsFollows do
use Ecto.Migration
def change do
create table(:threads_follows) do
add :assoc_id, references(:threads)
add :user_id, references(:users)
timestamps()
end
end
end
| 21.5 | 63 | 0.717054 |
da8a7c75485d73d59a3b89d3a0a7fa6637340d3b | 1,069 | ex | Elixir | www/ember-phoenix-starter-app/server/test/support/conn_case.ex | cheeseweasel/ember-phoenix-starter-app-box | e8363142a055ceb9ea39af9f84a0c1f856c02bfb | [
"MIT"
] | null | null | null | www/ember-phoenix-starter-app/server/test/support/conn_case.ex | cheeseweasel/ember-phoenix-starter-app-box | e8363142a055ceb9ea39af9f84a0c1f856c02bfb | [
"MIT"
] | null | null | null | www/ember-phoenix-starter-app/server/test/support/conn_case.ex | cheeseweasel/ember-phoenix-starter-app-box | e8363142a055ceb9ea39af9f84a0c1f856c02bfb | [
"MIT"
] | null | null | null | defmodule Starterapp.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the... | 24.860465 | 69 | 0.707203 |
da8aaaa4b3f1cf84206a7dd48a288d952e043899 | 21,751 | exs | Elixir | test/credo/check/warning/unused_enum_operation_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/warning/unused_enum_operation_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/warning/unused_enum_operation_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Warning.UnusedEnumOperationTest do
use Credo.Test.Case
@described_check Credo.Check.Warning.UnusedEnumOperation
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def some_function(parameter1, parameter2) do
Enum.join(parameter1) + paramet... | 24.943807 | 145 | 0.571882 |
da8ab91795535533011dab74cd30a534d45d0f27 | 646 | ex | Elixir | lib/bigchaindb_ex/base58.ex | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 4 | 2018-04-20T15:39:27.000Z | 2019-04-16T08:40:27.000Z | lib/bigchaindb_ex/base58.ex | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 2 | 2018-03-20T02:41:46.000Z | 2018-04-12T12:43:45.000Z | lib/bigchaindb_ex/base58.ex | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 1 | 2018-04-01T07:46:44.000Z | 2018-04-01T07:46:44.000Z | defmodule BigchaindbEx.Base58 do
@alphabet ~c(123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz)
@doc """
Encodes the given integer.
"""
def encode_int(x), do: _encode(x, [])
@doc """
Decodes the given string.
"""
def decode(enc), do: _decode(enc |> to_char_list, 0)
defp _encode(0, [... | 26.916667 | 74 | 0.628483 |
da8abca1deb262ab80f0d34f4d1b1b01b1b6dff3 | 1,513 | ex | Elixir | lib/hello_finance/user/account/transfer/create.ex | dcdourado/hello_finance | ff7d3b67c0c39c3c60675d018b49f5c7e304610b | [
"MIT"
] | null | null | null | lib/hello_finance/user/account/transfer/create.ex | dcdourado/hello_finance | ff7d3b67c0c39c3c60675d018b49f5c7e304610b | [
"MIT"
] | null | null | null | lib/hello_finance/user/account/transfer/create.ex | dcdourado/hello_finance | ff7d3b67c0c39c3c60675d018b49f5c7e304610b | [
"MIT"
] | null | null | null | defmodule HelloFinance.User.Account.Transfer.Create do
alias Ecto.Multi
alias HelloFinance.Repo
alias HelloFinance.User.Account
alias Account.Transfer
def call(params) do
params
|> Transfer.build()
|> create_transfer()
end
defp create_transfer({:error, _changeset} = error), do: error
defp... | 27.017857 | 82 | 0.678123 |
da8ac9681995f3de6a6300afda42de25d31a7369 | 7,518 | ex | Elixir | host_core/lib/host_core/providers/provider_module.ex | protochron/wasmcloud-otp | fd07262074b98b06106a31fd1957dc2319d438a5 | [
"Apache-2.0"
] | 84 | 2021-06-09T16:30:27.000Z | 2022-03-27T23:41:25.000Z | host_core/lib/host_core/providers/provider_module.ex | protochron/wasmcloud-otp | fd07262074b98b06106a31fd1957dc2319d438a5 | [
"Apache-2.0"
] | 239 | 2021-06-07T14:00:09.000Z | 2022-03-30T17:06:05.000Z | host_core/lib/host_core/providers/provider_module.ex | protochron/wasmcloud-otp | fd07262074b98b06106a31fd1957dc2319d438a5 | [
"Apache-2.0"
] | 20 | 2021-06-10T01:10:35.000Z | 2022-03-17T15:59:57.000Z | defmodule HostCore.Providers.ProviderModule do
@moduledoc false
use GenServer, restart: :transient
require Logger
alias HostCore.CloudEvent
@thirty_seconds 30_000
defmodule State do
@moduledoc false
defstruct [
:os_port,
:os_pid,
:link_name,
:contract_id,
:public_key... | 25.228188 | 97 | 0.64299 |
da8af629d19c87164b528f3b69e643fc427056d0 | 2,152 | exs | Elixir | apps/service_acquire/test/service_acquire/query/where/bbox_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/test/service_acquire/query/where/bbox_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/test/service_acquire/query/where/bbox_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Acquire.Query.Where.BboxTest do
use ExUnit.Case
use Placebo
alias Acquire.Query.Where.Bbox
alias Acquire.Query.ST
alias Acquire.Query.Where.{Function, Or, Functions}
@instance Acquire.Application.instance()
describe "to_queryable/2" do
test "returns queryable object for one geospatial fie... | 32.119403 | 86 | 0.572491 |
da8b00bcf872ed40fe6d50cd20cce7432a5b24db | 2,038 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/project.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dns/lib/google_api/dns/v1/model/project.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dns/lib/google_api/dns/v1/model/project.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... | 36.392857 | 169 | 0.694308 |
da8b034bb5325f500718507da68d58160a40d048 | 363 | exs | Elixir | test-scenarios/hash-sha256.exs | ivanjj22/performance-benchmark-stacks | 085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c | [
"MIT"
] | 5 | 2021-05-14T13:59:13.000Z | 2022-02-06T19:28:50.000Z | test-scenarios/hash-sha256.exs | ivanjj22/performance-benchmark-stacks | 085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c | [
"MIT"
] | null | null | null | test-scenarios/hash-sha256.exs | ivanjj22/performance-benchmark-stacks | 085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c | [
"MIT"
] | 4 | 2021-04-28T20:34:37.000Z | 2021-10-06T20:29:47.000Z | import Config
config :perf_analizer,
url: "http://ip:8080/hash",
request: %{
method: "GET",
headers: [],
body: nil
},
execution: %{
steps: 10,
increment: 50,
duration: 10000,
constant_load: false
},
distributed: :m... | 18.15 | 34 | 0.479339 |
da8b0cf228989913f82d757a2adaca98610e7f3a | 7,534 | exs | Elixir | test/oli/delivery/hierarchy_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/delivery/hierarchy_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/delivery/hierarchy_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.HierarchyTest do
use Oli.DataCase
alias Oli.Delivery.Hierarchy
alias Oli.Delivery.Hierarchy.HierarchyNode
alias Oli.Publishing
alias Oli.Publishing.DeliveryResolver
describe "hierarchy node" do
setup do
map = Seeder.base_project_with_resource4()
hierarchy = Delivery... | 33.784753 | 97 | 0.633263 |
da8b336a4227a6b3bea1ec2e91ffc2b61407bcae | 3,078 | exs | Elixir | Problem011/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 167 | 2015-08-12T19:32:03.000Z | 2022-03-25T12:26:43.000Z | Problem011/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 153 | 2016-02-16T02:05:31.000Z | 2020-11-06T15:35:51.000Z | Problem011/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 84 | 2015-08-12T20:54:04.000Z | 2022-02-27T05:14:53.000Z | master_grid_array = "08,02,22,97,38,15,00,40,00,75,04,05,07,78,52,12,50,77,91,08,
49,49,99,40,17,81,18,57,60,87,17,40,98,43,69,48,04,56,62,00,
81,49,31,73,55,79,14,29,93,71,40,67,53,88,30,03,49,13,36,65,
52,70,95,23,04,60,11,42,69,24,68,56,01,32,56,71,37,02,36,91,
22,31,16,71,51,67,63,89,41,92,36,54,22,40,40,28,66,33,1... | 35.790698 | 81 | 0.646524 |
da8b4f8a62038a36850609e3629dc74c46e35903 | 26,319 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/exit_processor/core.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/core.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/core.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 41.578199 | 120 | 0.718796 |
da8b5ee14648da129bbb036ec8ef833ebca3a61f | 1,244 | exs | Elixir | config/config.exs | AZagatti/rocketpay | 2964bae698bdbe4052f1f26ef47bef70a1e4a4b9 | [
"MIT"
] | 2 | 2021-02-23T00:02:01.000Z | 2021-03-01T17:55:55.000Z | config/config.exs | AZagatti/rocketpay | 2964bae698bdbe4052f1f26ef47bef70a1e4a4b9 | [
"MIT"
] | null | null | null | config/config.exs | AZagatti/rocketpay | 2964bae698bdbe4052f1f26ef47bef70a1e4a4b9 | [
"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.
# General application configuration
use Mix.Config
config :rocketpay,
ecto_repos: [Rocketpay.Repo... | 31.1 | 86 | 0.766881 |
da8b86050945aa380498a65d0dce8221d6395050 | 2,263 | ex | Elixir | lib/kamex/interpreter/builtins/fold.ex | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | 14 | 2022-01-01T14:40:55.000Z | 2022-01-07T12:59:05.000Z | lib/kamex/interpreter/builtins/fold.ex | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | null | null | null | lib/kamex/interpreter/builtins/fold.ex | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | null | null | null | defmodule Kamex.Interpreter.Builtins.Fold do
@moduledoc false
import Kamex.Interpreter, only: [compute_expr: 2]
alias Kamex.Exceptions
defmacro supported do
quote do
%{
foldl: :foldl,
foldr: :foldr,
foldl1: :foldl1,
foldr1: :foldr1,
scanl: :scanl,
scan... | 28.2875 | 96 | 0.596553 |
da8ba033a71432a1e00e1e3076b1c7b486fe4ac7 | 136 | exs | Elixir | archive/templates/new/app_name/test/app_name_test.exs | zackehh/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 14 | 2016-12-06T03:55:52.000Z | 2017-05-23T12:07:07.000Z | bootstrap/templates/new/test/app_name_test.exs | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | 3 | 2016-11-28T20:58:05.000Z | 2017-05-31T23:51:52.000Z | archive/templates/new/app_name/test/app_name_test.exs | zackehh/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 1 | 2020-03-03T21:07:44.000Z | 2020-03-03T21:07:44.000Z | defmodule <%= app_module %>Test do
use ExUnit.Case
doctest <%= app_module %>
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.111111 | 34 | 0.617647 |
da8bef1056941e0b33d5a8e406017eff2925c600 | 412 | ex | Elixir | examples/titan_elixir/apps/titan/lib/titan/application.ex | zhongwencool/ecron | b3c6dce3f607ecccacfbe67ef77fe42facc862ac | [
"Apache-2.0"
] | 39 | 2019-09-18T17:03:19.000Z | 2022-01-17T08:16:08.000Z | examples/titan_elixir/apps/titan/lib/titan/application.ex | zhongwencool/ecron | b3c6dce3f607ecccacfbe67ef77fe42facc862ac | [
"Apache-2.0"
] | 2 | 2019-10-14T13:31:00.000Z | 2020-01-14T16:32:09.000Z | examples/titan_elixir/apps/titan/lib/titan/application.ex | zhongwencool/ecron | b3c6dce3f607ecccacfbe67ef77fe42facc862ac | [
"Apache-2.0"
] | 3 | 2020-04-15T22:58:02.000Z | 2021-05-03T08:21:50.000Z | defmodule Titan.Application do
@moduledoc false
use Application
def start(_type, _args) do
:ok = TitanEcronLogger.attach()
children = [
{StatefulCron.SendInterval, []},
{StatefulCron.SendAfter, []},
]
opts = [strategy: :one_for_one, name: Titan.Supervisor]
Supervisor.start_link(c... | 19.619048 | 59 | 0.665049 |
da8beff08d247c4ca29f0983ee11829765c3893a | 26,045 | ex | Elixir | lib/inductive_graph.ex | rtvu/inductive_graph | d6b0bebabf9d1124774c9c4e53d621593735c6e7 | [
"MIT"
] | 3 | 2021-01-25T13:13:23.000Z | 2021-03-30T19:51:38.000Z | lib/inductive_graph.ex | rtvu/inductive_graph | d6b0bebabf9d1124774c9c4e53d621593735c6e7 | [
"MIT"
] | null | null | null | lib/inductive_graph.ex | rtvu/inductive_graph | d6b0bebabf9d1124774c9c4e53d621593735c6e7 | [
"MIT"
] | null | null | null | defmodule InductiveGraph do
@moduledoc """
Functions that work on graphs as an inductive data structure.
"""
alias InductiveGraph, as: Graph
alias InductiveGraph.Internal
alias InductiveGraph.Utilities
@opaque t :: %__MODULE__{}
@type value :: term
@type edge_value :: value
@type vertex_value :: v... | 33.220663 | 123 | 0.597159 |
da8bf1228f66393ab054893bc76dff095abb5a78 | 705 | ex | Elixir | lib/chess_web/gettext.ex | embik/chess | a6b494cb9d3bc539612af6c4aa97b05c9fe3c52a | [
"MIT"
] | null | null | null | lib/chess_web/gettext.ex | embik/chess | a6b494cb9d3bc539612af6c4aa97b05c9fe3c52a | [
"MIT"
] | null | null | null | lib/chess_web/gettext.ex | embik/chess | a6b494cb9d3bc539612af6c4aa97b05c9fe3c52a | [
"MIT"
] | null | null | null | defmodule ChessWeb.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 ChessWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
da8c02277e7fcdbb5e71ca8995f03ee495dfd360 | 527 | ex | Elixir | lib/health/data/blood_pressures/pressure.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | lib/health/data/blood_pressures/pressure.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | lib/health/data/blood_pressures/pressure.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule Health.Data.BloodPressures.Pressure do
use Ecto.Schema
import Ecto.Changeset
schema "pressures" do
field :diastolic, :integer
field :heart_rate, :integer
field :systolic, :integer
field :time, :utc_datetime
field :note, :string
field :user_id, :id
timestamps()
end
@doc... | 22.913043 | 70 | 0.681214 |
da8c15b70a39eac3d9c56ce0b29893cde1713b35 | 10,184 | exs | Elixir | test/phoenix/socket/transport_test.exs | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | null | null | null | test/phoenix/socket/transport_test.exs | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | null | null | null | test/phoenix/socket/transport_test.exs | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | null | null | null | System.put_env("TRANSPORT_TEST_HOST", "host.com")
defmodule Phoenix.Socket.TransportTest do
use ExUnit.Case, async: true
use RouterHelper
import ExUnit.CaptureLog
alias Phoenix.Socket.Transport
@secret_key_base String.duplicate("abcdefgh", 8)
Application.put_env :phoenix, __MODULE__.Endpoint,
force... | 33.721854 | 103 | 0.653967 |
da8c41af8cf110075f6d55d6578adbf086072db6 | 726 | exs | Elixir | priv/repo/migrations/20190628133848_add_project_id_to_tags.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | priv/repo/migrations/20190628133848_add_project_id_to_tags.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | priv/repo/migrations/20190628133848_add_project_id_to_tags.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Repo.Migrations.AddProjectIdToTags do
use Ecto.Migration
def up do
alter table(:tags) do
add :project_id, references(:projects, on_delete: :delete_all)
end
create index(:tags, [:project_id])
execute("DELETE FROM tags t WHERE NOT EXISTS (SELECT * FROM taggings ti WHERE ti.tag_i... | 29.04 | 221 | 0.690083 |
da8c51d04a08341a457b47c6d548773fd2932e5e | 3,710 | ex | Elixir | lib/teiserver/protocols/tachyon/lobby_in.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/protocols/tachyon/lobby_in.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | null | null | null | lib/teiserver/protocols/tachyon/lobby_in.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Teiserver.Protocols.Tachyon.LobbyIn do
alias Teiserver.Battle.Lobby
alias Teiserver.{Client, Coordinator}
import Teiserver.Protocols.TachyonOut, only: [reply: 4]
import Central.Helpers.NumberHelper, only: [int_parse: 1]
alias Phoenix.PubSub
require Logger
@spec do_handle(String.t(), Map.t(), Ma... | 36.372549 | 151 | 0.650674 |
da8c76d42c59bee5069a9e525a456df827c0da56 | 1,277 | exs | Elixir | examples/sort_dependencies.exs | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 118 | 2021-05-26T05:00:32.000Z | 2022-03-13T16:25:36.000Z | examples/sort_dependencies.exs | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 35 | 2021-06-02T20:18:48.000Z | 2022-03-31T20:52:22.000Z | examples/sort_dependencies.exs | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 5 | 2021-06-15T18:01:04.000Z | 2022-02-13T09:14:28.000Z | Code.require_file("examples/bootstrap.exs")
"""
defmodule MyApp.MixProject do
use Mix.Project
def project do
[
app: :my_app,
version: "0.1.0",
elixir: "~> 1.13.0-dev",
start_permanent: Mix.env() == :prod,
deps: deps(),
]
end
# Run "mix help deps" to learn about dependenc... | 22.403509 | 87 | 0.477682 |
da8c8a8d9358f79be727c41bbbc165d85c5f098a | 5,806 | ex | Elixir | lib/livebook_web/live/session_live/section_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 657 | 2021-07-15T07:38:37.000Z | 2022-03-31T16:47:48.000Z | lib/livebook_web/live/session_live/section_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 411 | 2021-07-15T07:41:54.000Z | 2022-03-31T21:34:22.000Z | lib/livebook_web/live/session_live/section_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 112 | 2021-07-16T02:13:21.000Z | 2022-03-30T01:25:08.000Z | defmodule LivebookWeb.SessionLive.SectionComponent do
use LivebookWeb, :live_component
def render(assigns) do
~H"""
<section data-element="section" data-section-id={@section_view.id}>
<div class="flex space-x-4 items-center"
data-element="section-headline"
id={@section_view.id}
... | 46.822581 | 141 | 0.533758 |
da8c909cf11466f23a4b1edcbc7f78e8d34fa8c9 | 1,361 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 37.805556 | 77 | 0.737693 |
da8ca43e32667066b81f7f0993779e640ab89d82 | 5,265 | ex | Elixir | lib/ex_oauth2_provider/config.ex | aidanranney/ex_oauth2_provider | b6ab9c37d39430cd220b2be9794502111c05585c | [
"MIT"
] | 161 | 2017-02-27T19:29:17.000Z | 2021-12-22T12:29:14.000Z | lib/ex_oauth2_provider/config.ex | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 54 | 2017-03-23T21:05:03.000Z | 2022-02-22T00:16:59.000Z | lib/ex_oauth2_provider/config.ex | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 49 | 2017-02-26T22:38:34.000Z | 2022-03-07T19:17:03.000Z | defmodule ExOauth2Provider.Config do
@moduledoc false
@spec repo(keyword()) :: module()
def repo(config) do
get(config, :repo) || raise """
No `:repo` found in ExOauth2Provider configuration.
Please set up the repo in your configuration:
config #{inspect Keyword.get(config, :otp_app, :ex_... | 31.909091 | 115 | 0.687559 |
da8cb2bead12a4fd6710fdf9f2a44c621f006c5f | 1,888 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/operation_event.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/genomics/lib/google_api/genomics/v1/model/operation_event.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/operation_event.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 34.962963 | 194 | 0.730403 |
da8cb5ce57d43b899bfb87b652fcf1ac4b4fd6d7 | 980 | exs | Elixir | config/config.exs | SimplySerenity/Selenia-Server | 6cadbce349544f4f26435086ab108dcc604d627b | [
"MIT"
] | null | null | null | config/config.exs | SimplySerenity/Selenia-Server | 6cadbce349544f4f26435086ab108dcc604d627b | [
"MIT"
] | 2 | 2019-04-14T22:49:31.000Z | 2019-04-18T05:02:37.000Z | config/config.exs | SimplySerenity/Selenia-Server | 6cadbce349544f4f26435086ab108dcc604d627b | [
"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.
# General application configuration
use Mix.Config
# Configures the endpoint
config :selenia_server... | 35 | 86 | 0.776531 |
da8ccc433e0805651afaaa48ad9490d84525b19e | 1,131 | exs | Elixir | apps/services/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/services/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/services/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.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.483871 | 73 | 0.751547 |
da8d0aff8375ff9dcb7529a0322ad7747c38c3ea | 4,376 | ex | Elixir | lib/sourceror/lines_corrector.ex | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 118 | 2021-05-26T05:00:32.000Z | 2022-03-13T16:25:36.000Z | lib/sourceror/lines_corrector.ex | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 35 | 2021-06-02T20:18:48.000Z | 2022-03-31T20:52:22.000Z | lib/sourceror/lines_corrector.ex | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 5 | 2021-06-15T18:01:04.000Z | 2022-02-13T09:14:28.000Z | defmodule Sourceror.LinesCorrector do
@moduledoc false
import Sourceror, only: [get_line: 1, correct_lines: 2]
import Sourceror.Identifier, only: [is_binary_op: 1]
@doc """
Corrects the line numbers of AST nodes such that they are correctly ordered.
* If a node has no line number, it's assumed to be in ... | 27.522013 | 94 | 0.633912 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.