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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97c81379d2ba0ca8544f906a406820a67e5b7640 | 317 | exs | Elixir | priv/repo/migrations/20181015204001_create_jobs.exs | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 333 | 2019-05-18T14:01:17.000Z | 2022-03-22T05:07:40.000Z | priv/repo/migrations/20181015204001_create_jobs.exs | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 89 | 2019-05-18T10:01:54.000Z | 2021-05-12T15:19:26.000Z | priv/repo/migrations/20181015204001_create_jobs.exs | envato/elixir-companies | 7488075d1a372c9ca8fa6603f93e384b73977526 | [
"MIT"
] | 33 | 2019-06-07T00:33:53.000Z | 2022-03-21T05:38:28.000Z | defmodule Companies.Repo.Migrations.CreateJobs do
use Ecto.Migration
def change do
create table(:jobs) do
add(:title, :string)
add(:url, :string)
add(:company_id, references(:companies, on_delete: :delete_all))
timestamps()
end
create(index(:jobs, [:company_id]))
end
end
| 19.8125 | 70 | 0.659306 |
97c82084fafa6be8fb62b56b61e3d9c8ccd590f0 | 1,086 | ex | Elixir | lib/kvstore.ex | tanks/elixir_test_kv | 64d2ff7b1b20f5b9f5676ceb11e67bdd79e95777 | [
"MIT"
] | 1 | 2018-12-25T11:49:17.000Z | 2018-12-25T11:49:17.000Z | lib/kvstore.ex | tanks/elixir_test_kv | 64d2ff7b1b20f5b9f5676ceb11e67bdd79e95777 | [
"MIT"
] | null | null | null | lib/kvstore.ex | tanks/elixir_test_kv | 64d2ff7b1b20f5b9f5676ceb11e67bdd79e95777 | [
"MIT"
] | null | null | null | defmodule KVstore do
@moduledoc """
Модуль <b>KVstore</b> - точкой входа приложения.
"""
use Application
require Logger
# 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
# ... | 30.166667 | 78 | 0.692449 |
97c8272a76550fc158984134c2f78424a25e298b | 1,555 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product_unit_pricing_base_measure.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/product_unit_pricing_base_measure.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_unit_pricing_base_measure.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 ... | 31.1 | 89 | 0.724759 |
97c82a13f44aa19061bcc2785420f22b1c9a5d44 | 1,304 | ex | Elixir | lib/crawly/pipelines/csv_encoder.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | 1 | 2020-10-02T18:33:23.000Z | 2020-10-02T18:33:23.000Z | lib/crawly/pipelines/csv_encoder.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | lib/crawly/pipelines/csv_encoder.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Pipelines.CSVEncoder do
@moduledoc """
Encodes a given item (map) into CSV. Does not flatten nested maps.
### Options
If no fields are given, the item is dropped from the pipeline.
- `:fields`, required: The fields to extract out from the scraped item. Falls back to the global config `:item`.... | 30.325581 | 114 | 0.569785 |
97c85f44161c0fb638559dfa9b83aaf26fd22816 | 2,186 | exs | Elixir | test/aeacus/authenticator_test.exs | onyxrev/aeacus | 9b638d7c39f6ad446eb470d8b0208261fd5da42d | [
"BSD-3-Clause"
] | null | null | null | test/aeacus/authenticator_test.exs | onyxrev/aeacus | 9b638d7c39f6ad446eb470d8b0208261fd5da42d | [
"BSD-3-Clause"
] | null | null | null | test/aeacus/authenticator_test.exs | onyxrev/aeacus | 9b638d7c39f6ad446eb470d8b0208261fd5da42d | [
"BSD-3-Clause"
] | null | null | null | defmodule Aeacus.AuthenticatorTest do
require IEx
use ExUnit.Case
use Aeacus.Test.Helper
setup tags do
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
:ok
end
test "authenticate with app config" do
assert_ok Authenticator.authenticate %{identity: @email, password... | 30.788732 | 98 | 0.713175 |
97c881bc048d52b8da8ad1d417f1b1d25e7b8648 | 850 | ex | Elixir | lib/yummy_web/channels/user_socket.ex | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 122 | 2017-11-24T11:28:17.000Z | 2022-02-25T17:05:20.000Z | lib/yummy_web/channels/user_socket.ex | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 6 | 2018-01-11T22:07:44.000Z | 2021-11-21T15:41:42.000Z | lib/yummy_web/channels/user_socket.ex | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 25 | 2018-04-01T02:43:21.000Z | 2022-02-15T03:22:54.000Z | defmodule YummyWeb.UserSocket do
use Phoenix.Socket
use Absinthe.Phoenix.Socket, schema: YummyWeb.Schema
## Channels
# channel "room:*", YummyWeb.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed... | 29.310345 | 64 | 0.717647 |
97c898395d107ad56236b48cdd4f3125fe422a9e | 1,095 | ex | Elixir | lib/sanbase_web/admin/model/project_btc_address.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/model/project_btc_address.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/model/project_btc_address.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.Model.ProjectBtcAddress do
use ExAdmin.Register
import Ecto.Query, warn: false
alias Sanbase.Model.ProjectBtcAddress
alias Sanbase.Model.Project
register_resource Sanbase.Model.ProjectBtcAddress do
form address do
inputs do
input(address, :address)
in... | 23.297872 | 84 | 0.656621 |
97c8aa02c27279b72249be649069f547f61eea5e | 4,281 | ex | Elixir | lib/websockex/errors.ex | Ma233/gunpowder | c1de28940c42aee6af6fb8aed53afe30bbb2eda9 | [
"MIT"
] | null | null | null | lib/websockex/errors.ex | Ma233/gunpowder | c1de28940c42aee6af6fb8aed53afe30bbb2eda9 | [
"MIT"
] | 1 | 2021-12-24T06:23:32.000Z | 2021-12-24T06:23:32.000Z | lib/websockex/errors.ex | Ma233/gunpowder | c1de28940c42aee6af6fb8aed53afe30bbb2eda9 | [
"MIT"
] | 1 | 2021-12-24T06:03:18.000Z | 2021-12-24T06:03:18.000Z | defmodule WebSockex.ApplicationError do
@moduledoc false
defexception [:reason]
def message(%__MODULE__{reason: :not_started}) do
"""
The :websockex application is not started.
Please start the applications with Application.ensure_all_started(:websockex)
"""
end
end
defmodule WebSockex.ConnErr... | 29.729167 | 130 | 0.723429 |
97c8b9e25fa97f245468f519b3d1d81c41a35d31 | 555 | ex | Elixir | lib/xtb_client/messages/symbol_volume.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/symbol_volume.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/symbol_volume.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | defmodule XtbClient.Messages.SymbolVolume do
@moduledoc """
Info about symbol ticker + volume.
## Parameters
- `symbol` symbol name,
- `volume` volume in lots.
"""
@type t :: %__MODULE__{
symbol: binary(),
volume: float()
}
@enforce_keys [:symbol, :volume]
@derive Jas... | 19.137931 | 53 | 0.598198 |
97c8bbb4a82fdb94ea851218ae3c1bf4fbf34244 | 215 | exs | Elixir | test/elixir_boilerplate_web/home/controller_test.exs | Amirhat/test-elixir-boilerplate | 2429a061d0b7b51ac838d15ffc629a667ed9e941 | [
"BSD-3-Clause"
] | 854 | 2019-03-18T19:13:58.000Z | 2022-03-30T01:47:30.000Z | test/elixir_boilerplate_web/home/controller_test.exs | Amirhat/test-elixir-boilerplate | 2429a061d0b7b51ac838d15ffc629a667ed9e941 | [
"BSD-3-Clause"
] | 167 | 2019-03-18T21:23:28.000Z | 2022-03-31T19:07:34.000Z | test/elixir_boilerplate_web/home/controller_test.exs | Amirhat/test-elixir-boilerplate | 2429a061d0b7b51ac838d15ffc629a667ed9e941 | [
"BSD-3-Clause"
] | 63 | 2019-03-28T14:19:11.000Z | 2022-02-15T17:22:14.000Z | defmodule ElixirBoilerplateWeb.Home.ControllerTest do
use ElixirBoilerplateWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Hello, world!"
end
end
| 23.888889 | 54 | 0.697674 |
97c8c04746df1056a5cba23e99a843617981a9a4 | 5,391 | ex | Elixir | lib/open_telemetry/honeycomb/exporter.ex | lirossarvet/opentelemetry_honeycomb | 24d7ad9e318a758f8154c6294aab6c67084280ac | [
"Apache-2.0"
] | null | null | null | lib/open_telemetry/honeycomb/exporter.ex | lirossarvet/opentelemetry_honeycomb | 24d7ad9e318a758f8154c6294aab6c67084280ac | [
"Apache-2.0"
] | 11 | 2020-04-25T06:15:09.000Z | 2022-02-22T23:11:17.000Z | lib/open_telemetry/honeycomb/exporter.ex | lirossarvet/opentelemetry_honeycomb | 24d7ad9e318a758f8154c6294aab6c67084280ac | [
"Apache-2.0"
] | 5 | 2020-09-28T10:51:18.000Z | 2021-03-16T01:29:19.000Z | defmodule OpenTelemetry.Honeycomb.Exporter do
@moduledoc """
Exporter implementation.
`:otel_batch_processor` calls `export/3`, which:
* fetches the attributes of the named resource
* loads the spans from the named ETS table
* converts the spans to Honeycomb events
* chunks them according to Honeycomb's... | 31.526316 | 98 | 0.67928 |
97c8d21709fc15924e4b89b801327ef67036d471 | 717 | ex | Elixir | exercism/elixir/hamming/lib/hamming.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/hamming/lib/hamming.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/hamming/lib/hamming.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule Hamming do
@doc """
Returns number of differences between two strands of DNA, known as the Hamming Distance.
## Examples
iex> Hamming.hamming_distance('AAGTCATA', 'TAGCGATC')
{:ok, 4}
"""
@spec hamming_distance([char], [char]) :: {:ok, non_neg_integer} | {:error, String.t()}
def hamming_dist... | 37.736842 | 129 | 0.684798 |
97c8dd8232b07d786f6cfe2ac2715af2766affb2 | 102 | exs | Elixir | test/test_helper.exs | grain-team/ueberauth_zoom | 115367b5a6dbae3807dd469a5ccc6d0bcc5289bb | [
"MIT"
] | 1 | 2020-07-20T15:58:33.000Z | 2020-07-20T15:58:33.000Z | test/test_helper.exs | grain-team/ueberauth_zoom | 115367b5a6dbae3807dd469a5ccc6d0bcc5289bb | [
"MIT"
] | null | null | null | test/test_helper.exs | grain-team/ueberauth_zoom | 115367b5a6dbae3807dd469a5ccc6d0bcc5289bb | [
"MIT"
] | 3 | 2021-04-02T14:14:41.000Z | 2021-11-23T19:32:19.000Z | ExUnit.start()
Mox.defmock(OAuthMock, for: [OAuth2.Strategy, Ueberauth.Strategy.Zoom.OAuthStrategy])
| 25.5 | 85 | 0.794118 |
97c8e3f927ba3965c0de75d206e84345af45bca0 | 1,141 | exs | Elixir | config/config.exs | jj1bdx/plug_url_redirector | 80f90020716eef77e9e5f6e6f7655474698557ae | [
"MIT"
] | 2 | 2017-01-21T14:07:43.000Z | 2018-01-09T08:25:20.000Z | config/config.exs | jj1bdx/plug_url_redirector | 80f90020716eef77e9e5f6e6f7655474698557ae | [
"MIT"
] | null | null | null | config/config.exs | jj1bdx/plug_url_redirector | 80f90020716eef77e9e5f6e6f7655474698557ae | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.756354 |
97c8f5d38629b53d865aa04398008f3fbcb12d0e | 2,377 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_conversation_event.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_conversation_event.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_conversation_event.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... | 39.616667 | 217 | 0.757257 |
97c8f8ca52ea96da974c96c9c95a56aa91b7e8e1 | 134 | exs | Elixir | test/emqx_elixir_plugin_test.exs | zmstone/emqx-elixir-plugin | 164bef057cf51c54bd39a883e8f547e6f60e65cf | [
"Apache-2.0"
] | 9 | 2018-10-17T19:41:03.000Z | 2021-12-13T17:37:43.000Z | test/emqx_elixir_plugin_test.exs | zmstone/emqx-elixir-plugin | 164bef057cf51c54bd39a883e8f547e6f60e65cf | [
"Apache-2.0"
] | 4 | 2018-09-17T09:02:37.000Z | 2021-03-19T09:05:00.000Z | test/emqx_elixir_plugin_test.exs | zmstone/emqx-elixir-plugin | 164bef057cf51c54bd39a883e8f547e6f60e65cf | [
"Apache-2.0"
] | 8 | 2018-09-07T09:51:04.000Z | 2022-03-14T16:52:08.000Z | defmodule EmqxElixirPluginTest do
use ExUnit.Case
doctest EmqxElixirPlugin
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.888889 | 33 | 0.716418 |
97c94659c629d4eb23d7dab755bdf65af0294ff9 | 962 | ex | Elixir | lib/joi/util.ex | diegosouza/joi | 0cfef6a5be13e13734988e88379b97080165e04f | [
"MIT"
] | null | null | null | lib/joi/util.ex | diegosouza/joi | 0cfef6a5be13e13734988e88379b97080165e04f | [
"MIT"
] | null | null | null | lib/joi/util.ex | diegosouza/joi | 0cfef6a5be13e13734988e88379b97080165e04f | [
"MIT"
] | null | null | null | defmodule Joi.Util do
@types [:boolean, :date, :datetime, :list, :map, :number, :string]
def error_message(field, message, type) do
{:error, %{field: field, message: message, type: type, constraint: type}}
end
def error_message(field, message, type, constraint) do
{:error, %{field: field, message: mess... | 30.0625 | 83 | 0.685031 |
97c95ec6ab841c47862087ed4a6a8e67df74f3aa | 199 | exs | Elixir | backend/test/backend_web/controllers/page_controller_test.exs | ericgroom/gatorgoods | c78af60f463c6c8c6762101a2d8e7102d43bd804 | [
"MIT"
] | 3 | 2018-03-16T06:26:39.000Z | 2019-12-17T19:30:24.000Z | backend/test/backend_web/controllers/page_controller_test.exs | s6o/elm-msgpack | 71e095eed28ae9803be6cb22f7ccc9f82d717c3d | [
"MIT"
] | 9 | 2020-02-12T00:40:03.000Z | 2021-12-09T01:11:33.000Z | backend/test/backend_web/controllers/page_controller_test.exs | s6o/elm-msgpack | 71e095eed28ae9803be6cb22f7ccc9f82d717c3d | [
"MIT"
] | null | null | null | defmodule BackendWeb.PageControllerTest do
use BackendWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
97c964be0b5bc5c01d9c444bad02efda1f15ae48 | 1,293 | exs | Elixir | hello_elixir/test/enum/enumerate.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | hello_elixir/test/enum/enumerate.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | 4 | 2021-10-06T22:07:13.000Z | 2022-02-27T10:35:34.000Z | hello_elixir/test/enum/enumerate.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | defmodule Enumerate do
@moduledoc ~S"""
Copyright <Woobest> 2020. All Rights Reserved.
History:
2020-03-19 13:43, fred 'wangxingfred@gmail.com', create module
TODO 编写模块描述
"""
def reduce_test(batch) do
list = [1, 2, 3, 4, 5, 6, 7, 8]
acc = 0
... | 26.387755 | 75 | 0.466357 |
97c96cf7ce2e2be7d6f5a6516ab9f2b6c7acf300 | 6,687 | ex | Elixir | lib/mix/lib/mix/tasks/deps.ex | schabou/elixir | 7634f3f4c9380bdadd0e74eb76e9f7ae8cf27a1d | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.ex | schabou/elixir | 7634f3f4c9380bdadd0e74eb76e9f7ae8cf27a1d | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.ex | schabou/elixir | 7634f3f4c9380bdadd0e74eb76e9f7ae8cf27a1d | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps do
use Mix.Task
import Mix.Dep, only: [load_on_environment: 1, format_dep: 1, format_status: 1, check_lock: 1]
@shortdoc "Lists dependencies and their status"
@moduledoc ~S"""
Lists all dependencies and their status.
Dependencies must be specified in the `mix.exs` file in one of... | 38.211429 | 105 | 0.687752 |
97c9746937960c140f9b29d7108c3d54fc40b73b | 2,316 | ex | Elixir | userManagementService/lib/user_management/company_endpoint.ex | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-25T18:24:27.000Z | 2021-05-25T18:24:27.000Z | userManagementService/lib/user_management/company_endpoint.ex | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-23T09:50:10.000Z | 2021-05-23T09:50:10.000Z | userManagementService/lib/user_management/company_endpoint.ex | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | null | null | null | defmodule Api.CompanyEndpoint do
use Plug.Router
alias Api.Models.Company
alias Api.Views.CompanyView
alias Api.Plugs.JsonTestPlug
alias Api.Service.Publisher
@api_port Application.get_env(:user_management, :api_port)
@api_host Application.get_env(:user_management, :api_host)
@api_scheme Application.g... | 24.125 | 97 | 0.541883 |
97c9adfc6445484ab79168940a326da396c19f68 | 9,041 | ex | Elixir | lib/tentacat.ex | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | lib/tentacat.ex | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | lib/tentacat.ex | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | defmodule Tentacat do
use HTTPoison.Base
alias Tentacat.Client
@user_agent [{"User-agent", "tentacat"}]
@type response :: {:ok, :jsx.json_term, HTTPoison.Response.t } | {integer, any, HTTPoison.Response.t}
@spec process_response_body(binary) :: term
def process_response_body(""), do: nil
def process_re... | 35.178988 | 138 | 0.658002 |
97c9b897f428f720d963a26fac47bc5f407a7f2f | 2,736 | exs | Elixir | test/integration/elsa/consumer_test.exs | fxn/elsa | 3d2b5eaccebab48799f8e9b68f78120cd1c3c0c1 | [
"Apache-2.0"
] | null | null | null | test/integration/elsa/consumer_test.exs | fxn/elsa | 3d2b5eaccebab48799f8e9b68f78120cd1c3c0c1 | [
"Apache-2.0"
] | null | null | null | test/integration/elsa/consumer_test.exs | fxn/elsa | 3d2b5eaccebab48799f8e9b68f78120cd1c3c0c1 | [
"Apache-2.0"
] | null | null | null | defmodule Elsa.ConsumerTest do
use ExUnit.Case
use Divo
import AsyncAssertion
require Logger
@brokers [localhost: 9092]
test "Elsa.Consumer will hand messages to the handler with state" do
topic = "consumer-test1"
Elsa.create_topic(@brokers, topic, partitions: 2)
{:ok, pid} =
Elsa.Super... | 27.36 | 106 | 0.645468 |
97c9e8817fd513298a74586ad15ef6f8f8341f05 | 2,165 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_content_item.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_content_item.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_content_item.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 ... | 39.363636 | 170 | 0.738106 |
97ca0c944252fdd2419b10945efc24ee70787358 | 546 | ex | Elixir | exercism/log-level/log_level.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/log-level/log_level.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/log-level/log_level.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule LogLevel do
def to_label(level, legacy?) do
cond do
level == 0 and not legacy? -> :trace
level == 1 -> :debug
level == 2 -> :info
level == 3 -> :warning
level == 4 -> :error
level == 5 and not legacy? -> :fatal
true -> :unknown
end
end
def alert_recipie... | 21.84 | 44 | 0.540293 |
97ca13f0b10a59128f64e2a06256cc64c970d272 | 1,367 | exs | Elixir | config/config.exs | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | null | null | null | config/config.exs | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | null | null | null | config/config.exs | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"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 :contento,
ecto_repos: [Contento.Repo]
... | 32.547619 | 86 | 0.779078 |
97ca34f833e42d4778daa0466fd9e706fb6beb16 | 36,380 | ex | Elixir | deps/ecto/lib/ecto/association.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/association.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/association.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | import Ecto.Query, only: [from: 2, join: 4, distinct: 3]
defmodule Ecto.Association.NotLoaded do
@moduledoc """
Struct returned by one to one associations when they are not loaded.
The fields are:
* `__field__` - the association field in `owner`
* `__owner__` - the schema that owns the association
... | 34.947166 | 112 | 0.66039 |
97ca715cf7d510513740a4632d7edf6ade26a537 | 419 | ex | Elixir | apps/tracing_5/lib/supervisor.ex | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/tracing_5/lib/supervisor.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/tracing_5/lib/supervisor.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule ClientAndServer.MainSupervisor do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
supervisor(ClientAndServer.Server.SocketsSupervisor, [], restart: :temporary),
supervisor(ClientAndServer.Client.PoolSup... | 26.1875 | 84 | 0.725537 |
97ca7f516d9e6d5cb9528b63ce32af08de35a534 | 686 | ex | Elixir | examples/test_frontend_socket/lib/test_frontend_socket/application.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 78 | 2018-12-02T23:58:37.000Z | 2021-09-30T18:52:45.000Z | examples/test_frontend_socket/lib/test_frontend_socket/application.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 23 | 2018-11-27T14:57:20.000Z | 2021-09-24T16:14:43.000Z | examples/test_frontend_socket/lib/test_frontend_socket/application.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 3 | 2019-01-30T02:08:37.000Z | 2021-09-03T20:53:35.000Z | defmodule TestFrontendSocket.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
PushEx,
Plug.Cowboy.child_spec(
scheme: :http,
plug: {Plug.Static, ... | 23.655172 | 72 | 0.650146 |
97ca8fadce9e765488fda88329a9285b8894d287 | 284 | exs | Elixir | onboarding/service/priv/repo/migrations/20161006190435_create_products_feeds.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | onboarding/service/priv/repo/migrations/20161006190435_create_products_feeds.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | onboarding/service/priv/repo/migrations/20161006190435_create_products_feeds.exs | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | defmodule OnboardingService.Repo.Migrations.CreateProductsFeeds do
use Ecto.Migration
def change do
create table(:products_feeds) do
add :name, :string
add :url, :string
add :format, :string
add :schedule, :string
timestamps
end
end
end
| 17.75 | 66 | 0.672535 |
97cab6e807d1bcf8f2076132b1daedcf8e93c0c4 | 929 | ex | Elixir | apps/playground_web/lib/playground/posts/posts.ex | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_web/lib/playground/posts/posts.ex | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_web/lib/playground/posts/posts.ex | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | defmodule Playground.Posts do
@moduledoc """
The Posts context.
"""
alias Playground.Posts.PostClient
@doc """
Returns the list of latest posts with comments.
## Examples
iex> list_latest_posts()
{:ok,
[
%{"id" => 1, "content" => "New post", "comments" => []},
..... | 21.604651 | 66 | 0.522067 |
97cac8dca0298af10c256289d19b2261c702ef51 | 1,594 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/text_button.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/text_button.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/text_button.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... | 31.254902 | 77 | 0.726474 |
97cad8f862eaed2dc8c497e6c4b7e98a90f6160b | 366 | ex | Elixir | lib/afterglow_web/views/widget_view.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow_web/views/widget_view.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow_web/views/widget_view.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.WidgetView do
use AfterGlow.Web, :view
use JaSerializer.PhoenixView
alias AfterGlow.WidgetItemView
attributes([
:name,
:column_name,
:inserted_at,
:updated_at,
:renderer
])
has_many(
:widget_items,
field: :widget_items,
type: "widget-items",
serializ... | 16.636364 | 33 | 0.674863 |
97cadc9aff9d07710f306826cc5b974cdca7f990 | 9,115 | ex | Elixir | lib/empty/accounts.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | lib/empty/accounts.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | lib/empty/accounts.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | defmodule Empty.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Empty.Repo
alias Empty.Accounts.{User, UserToken, UserNotifier}
## Database getters
@doc """
Gets a user by email.
## Examples
iex> get_user_by_email("foo@example.com")
%User{}
... | 25.676056 | 116 | 0.661547 |
97cae40d27be73d6433f544c8b9192056e2e5752 | 1,466 | ex | Elixir | lib/qitech/middleware/auth.ex | caiaffa/qitech_ex | 8770d1234213b0cea97132867880d754a2e3f20f | [
"MIT"
] | 11 | 2021-03-01T17:11:55.000Z | 2022-02-18T18:24:00.000Z | lib/qitech/middleware/auth.ex | caiaffa/qitech_ex | 8770d1234213b0cea97132867880d754a2e3f20f | [
"MIT"
] | null | null | null | lib/qitech/middleware/auth.ex | caiaffa/qitech_ex | 8770d1234213b0cea97132867880d754a2e3f20f | [
"MIT"
] | null | null | null | defmodule QITech.Middleware.Auth do
@moduledoc false
@behaviour Tesla.Middleware
alias QITech.JWT.Token
def call(env, next, _opts) do
env
|> prepare_request()
|> Tesla.run(next)
|> prepare_response()
end
defp prepare_request(%{body: body} = env) when is_map(body) do
{:ok, encoded_bod... | 24.433333 | 71 | 0.643929 |
97caf6779bc4c858183d45087f3b15c0e5737d5f | 2,464 | ex | Elixir | lib/loki/directory.ex | Selvaticus/loki | 58006dcf5752595ed7b875bee265423074895ae4 | [
"MIT"
] | 83 | 2016-11-27T11:15:58.000Z | 2021-12-24T21:04:04.000Z | lib/loki/directory.ex | Selvaticus/loki | 58006dcf5752595ed7b875bee265423074895ae4 | [
"MIT"
] | 28 | 2016-12-08T14:18:32.000Z | 2019-01-08T10:57:54.000Z | lib/loki/directory.ex | Selvaticus/loki | 58006dcf5752595ed7b875bee265423074895ae4 | [
"MIT"
] | 9 | 2017-02-08T21:56:18.000Z | 2019-06-09T02:14:07.000Z | defmodule Loki.Directory do
import Loki.Shell
@moduledoc """
Working with folders helpers.
"""
@doc """
Helper for create directory.
"""
@spec create_directory(Path.t) :: :ok | {:error, Atom.t}
def create_directory(path) when is_bitstring(path), do: create_directory(path, [])
@spec create_direc... | 28.321839 | 100 | 0.64651 |
97cb11cc4324cf1724c0be8123ed89ca3b77fdf7 | 4,355 | ex | Elixir | lib/mix/tasks/new.ex | nathanjohnson320/elmer | 41ce46422dec91a2ab342c098e010eaf1cc7c98f | [
"MIT"
] | 9 | 2016-05-31T04:49:27.000Z | 2017-06-17T11:50:36.000Z | lib/mix/tasks/new.ex | nathanjohnson320/elmer | 41ce46422dec91a2ab342c098e010eaf1cc7c98f | [
"MIT"
] | null | null | null | lib/mix/tasks/new.ex | nathanjohnson320/elmer | 41ce46422dec91a2ab342c098e010eaf1cc7c98f | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Elmer.New do
@shortdoc "Creates new elm applications"
@moduledoc """
This is a mix task for creating new elm applications.
"""
use Mix.Task
@doc """
Creates a new elm application in directory specified by the user.
Run with `mix elmer.new`
Different types of apps can be generat... | 36.90678 | 117 | 0.617681 |
97cb4b63388f5c9bcc3f3b79f8cb8159dc68a8ee | 7,614 | ex | Elixir | lib/cforum_web/controllers/users/user_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum_web/controllers/users/user_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum_web/controllers/users/user_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule CforumWeb.Users.UserController do
use CforumWeb, :controller
alias Cforum.Users
alias Cforum.Threads.Thread
alias Cforum.Messages.Message
alias Cforum.MessagesUsers
alias Cforum.Votes.Vote
alias Cforum.Votes
alias Cforum.Scores.Score
alias Cforum.Abilities
alias Cforum.Helpers
ali... | 29.742188 | 113 | 0.639349 |
97cb74d7ef1b12c60daf1e347587c43fd9aca483 | 79 | exs | Elixir | test/views/layout_view_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | 2 | 2016-08-07T12:27:07.000Z | 2017-07-19T22:28:36.000Z | test/views/layout_view_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | null | null | null | test/views/layout_view_test.exs | emanchado/cataloger | 4ecd08e26017fd19b1a26196e87604b3d973b6be | [
"BSD-3-Clause"
] | 1 | 2018-11-22T03:08:25.000Z | 2018-11-22T03:08:25.000Z | defmodule Cataloger.LayoutViewTest do
use Cataloger.ConnCase, async: true
end | 26.333333 | 37 | 0.835443 |
97cb80468dd518a4c9b80649fbbd208eaae59d93 | 1,842 | exs | Elixir | test/friendly_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | null | null | null | test/friendly_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | test/friendly_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.FriendlyMockTest do
use BorsNG.Worker.TestCase
alias BorsNG.GitHub.FriendlyMock
setup do
FriendlyMock.init_state
# Can't figure out why syncing doesn't add the user.
# Probably because we're missing all the Supervisors?
BorsNG.Database.Repo.insert!(%BorsNG.Database.User{
u... | 34.754717 | 126 | 0.668838 |
97cbaaebe98b43bfe4413ffd68bbb51d99907479 | 504 | exs | Elixir | test/sna_web/token_test.exs | runasio/sna | 39127ec4c2c9b97fd4583b2683fce634fe74613b | [
"Apache-2.0"
] | 6 | 2019-07-16T13:34:33.000Z | 2020-08-25T08:51:01.000Z | test/sna_web/token_test.exs | runasio/sna | 39127ec4c2c9b97fd4583b2683fce634fe74613b | [
"Apache-2.0"
] | 3 | 2019-07-17T14:18:50.000Z | 2020-06-06T08:07:45.000Z | test/sna_web/token_test.exs | runasio/sna | 39127ec4c2c9b97fd4583b2683fce634fe74613b | [
"Apache-2.0"
] | 2 | 2019-07-17T05:42:04.000Z | 2020-05-06T11:12:53.000Z | defmodule SnaWeb.TokenTest do
use ExUnit.Case
doctest SnaWeb
defp example_email do
"mailbox@example.org"
end
test "token generation and validation" do
case SnaWeb.Token.generate_bearer(%{"email" => example_email()}) do
{:ok, token, _} ->
case SnaWeb.Token.validate_bearer(token) do
... | 21 | 71 | 0.579365 |
97cbcf4a29077edd5e2a3743f1b799dd83c6382b | 1,414 | ex | Elixir | apps/feedex_core/lib/feedex_core/ctx/account/user.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_core/lib/feedex_core/ctx/account/user.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_core/lib/feedex_core/ctx/account/user.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexCore.Ctx.Account.User do
@moduledoc """
User DataModel.
"""
use Ecto.Schema
alias FeedexCore.Ctx.Account
import Ecto.Changeset
schema "users" do
field(:name, :string)
field(:email, :string)
field(:pwd, :string, virtual: true)
field(:pwd_hash, :string)
timestamps(type: ... | 24.37931 | 65 | 0.649929 |
97cbd440393caa2c8159588d2109020cccd450bc | 4,347 | ex | Elixir | lib/changelog/data/podcast/podcast.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/data/podcast/podcast.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/data/podcast/podcast.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.Podcast do
use Changelog.Data
alias Changelog.{Episode, EpisodeStat, NewsItem, PodcastTopic, PodcastHost, Regexp}
defenum Status, draft: 0, soon: 1, published: 2, retired: 3
schema "podcasts" do
field :name, :string
field :slug, :string
field :status, Status
field :descrip... | 26.02994 | 160 | 0.668507 |
97cbe6948a0ce9aaf695da35c45670ea00fe813b | 366 | ex | Elixir | apps/rtr/web/views/error_view.ex | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/rtr/web/views/error_view.ex | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/rtr/web/views/error_view.ex | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | defmodule Rtr.ErrorView do
use Rtr.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, assigns... | 20.333333 | 47 | 0.691257 |
97cbeaff23b480c37ef1c0dd775483e42638221b | 19,790 | ex | Elixir | lib/surface/api.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/api.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/api.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | defmodule Surface.API do
@moduledoc false
alias Surface.IOHelper
@types [
:any,
:css_class,
:list,
:event,
:boolean,
:string,
:time,
:date,
:datetime,
:naive_datetime,
:number,
:integer,
:decimal,
:map,
:fun,
:atom,
:module,
:changeset,
... | 27.035519 | 140 | 0.61334 |
97cc0e28c8de3d86dba03ddeca8a8bf1a191b79a | 290 | ex | Elixir | lib/geoip/error.ex | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 90 | 2016-09-03T08:17:18.000Z | 2022-02-16T13:56:50.000Z | lib/geoip/error.ex | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 24 | 2016-09-05T07:02:02.000Z | 2022-02-01T16:14:01.000Z | lib/geoip/error.ex | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 14 | 2016-12-12T10:15:35.000Z | 2021-11-11T18:48:42.000Z | defmodule GeoIP.Error do
defexception reason: nil, id: nil
@type t :: %__MODULE__{id: reference, reason: any}
def message(%__MODULE__{reason: reason, id: nil}), do: inspect(reason)
def message(%__MODULE__{reason: reason, id: id}), do: "[Reference: #{id}] - #{inspect(reason)}"
end
| 36.25 | 97 | 0.686207 |
97cc1e2c1b51a3964299dc3caff05fc51c8befdd | 518 | exs | Elixir | test/scenic/primitive/style/scissor_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/scissor_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/scissor_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2018-06-18.
# Copyright © 2018-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Style.ScissorTest do
use ExUnit.Case, async: true
doctest Scenic.Primitive.Style.Scissor
alias Scenic.Primitive.Style.Scissor
test "validate accepts valid data" do
assert... | 24.666667 | 60 | 0.702703 |
97cc25a435e50d6aea99616589149c55b5fa0262 | 1,839 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_expressions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_expressions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_expressions.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.058824 | 137 | 0.744426 |
97cc2be2822f6fc90688e22273f2e3375161c79d | 707 | exs | Elixir | space-age/space_age.exs | myrridin/exercism-elixir | 45edff443759bb3e23e5c9746e04927d9fa40f3f | [
"MIT"
] | null | null | null | space-age/space_age.exs | myrridin/exercism-elixir | 45edff443759bb3e23e5c9746e04927d9fa40f3f | [
"MIT"
] | null | null | null | space-age/space_age.exs | myrridin/exercism-elixir | 45edff443759bb3e23e5c9746e04927d9fa40f3f | [
"MIT"
] | null | null | null | defmodule SpaceAge do
@type planet :: :mercury | :venus | :earth | :mars | :jupiter
| :saturn | :neptune | :uranus
@earth_years 31557600
@years %{
mercury: @earth_years * 0.2408467,
venus: @earth_years * 0.61519726,
earth: @earth_years * 1.0,
mars: @earth_years * 1.8808158,... | 29.458333 | 77 | 0.630835 |
97cc3ee022bba4d93a7d6b4d8a6c658c1cd1a869 | 1,755 | ex | Elixir | clients/language/lib/google_api/language/v1/model/analyze_entities_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/analyze_entities_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/analyze_entities_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 33.75 | 105 | 0.740741 |
97cc43a117cc22d41eea1dfcc21575ea1a4a426d | 5,595 | ex | Elixir | lib/solana/system_program/nonce.ex | dcrck/solana-elixir | 3ab8531129d303b3951a292ce2813ebcb9ab2cb3 | [
"MIT"
] | 15 | 2021-11-16T23:56:03.000Z | 2022-02-19T08:48:30.000Z | lib/solana/system_program/nonce.ex | dcrck/solana-elixir | 3ab8531129d303b3951a292ce2813ebcb9ab2cb3 | [
"MIT"
] | null | null | null | lib/solana/system_program/nonce.ex | dcrck/solana-elixir | 3ab8531129d303b3951a292ce2813ebcb9ab2cb3 | [
"MIT"
] | 1 | 2021-11-29T06:33:51.000Z | 2021-11-29T06:33:51.000Z | defmodule Solana.SystemProgram.Nonce do
@moduledoc """
Functions for interacting with the [System
Program](https://docs.solana.com/developing/runtime-facilities/programs#system-program)'s
nonce accounts, required for [durable transaction
nonces](https://docs.solana.com/offline-signing/durable-nonce).
These... | 26.516588 | 91 | 0.595532 |
97cc5cddc6e99c25adccdfb874dc5bb5181991a7 | 5,822 | exs | Elixir | test/metric_transaction_test.exs | backdoer/elixir_agent | b42f891ed667fa799d0b82244fb465ce54429127 | [
"Apache-2.0"
] | null | null | null | test/metric_transaction_test.exs | backdoer/elixir_agent | b42f891ed667fa799d0b82244fb465ce54429127 | [
"Apache-2.0"
] | null | null | null | test/metric_transaction_test.exs | backdoer/elixir_agent | b42f891ed667fa799d0b82244fb465ce54429127 | [
"Apache-2.0"
] | null | null | null | defmodule MetricTransactionTest do
use ExUnit.Case
use Plug.Test
alias NewRelic.Harvest.Collector
defmodule TestPlugAppForward do
import Plug.Conn
def init(opts), do: opts
def call(conn, _opts), do: send_resp(conn, 200, "ok")
end
defmodule Status do
use Plug.Router
plug(:match)
... | 27.333333 | 96 | 0.669014 |
97cc7a064587d96e2d2a9efedda568a2f7d37c31 | 766 | ex | Elixir | web/controllers/registration_controller.ex | ultimatemonty/peepchat-api | c6359319d0380c71541e0813131866020555a471 | [
"MIT"
] | null | null | null | web/controllers/registration_controller.ex | ultimatemonty/peepchat-api | c6359319d0380c71541e0813131866020555a471 | [
"MIT"
] | null | null | null | web/controllers/registration_controller.ex | ultimatemonty/peepchat-api | c6359319d0380c71541e0813131866020555a471 | [
"MIT"
] | null | null | null | defmodule Peepchat.RegistrationController do
use Peepchat.Web, :controller
alias Peepchat.User
def create(conn, %{"data" => %{"type" => "users",
"attributes" => %{"email" => email,
"password" => password,
"password-confirmation" => password_confirmation}}}) do
changeset = User.changeset %Us... | 28.37037 | 77 | 0.629243 |
97cc850b2ba59b271c214fb0d458b432e2ec26a4 | 878 | exs | Elixir | config/test.exs | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | 4 | 2021-03-09T19:35:37.000Z | 2022-03-20T23:31:19.000Z | config/test.exs | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | config/test.exs | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :price_register, PriceRegister.Repo,
database: "price_register_test#{System.get_env("MIX_TEST_PARTITION")}... | 30.275862 | 73 | 0.755125 |
97cc8b165377ed9f5a211fb720db3a868c971151 | 1,968 | ex | Elixir | lib/command.ex | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | 1 | 2020-01-13T09:27:21.000Z | 2020-01-13T09:27:21.000Z | lib/command.ex | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | null | null | null | lib/command.ex | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | null | null | null | defmodule Irateburgers.Command do
@moduledoc """
Handles locking and event persistence for command execution.
"""
alias Irateburgers.{CommandProtocol, ErrorHelpers, Event, EventProtocol, Repo}
alias Ecto.Changeset
@doc """
Execute a command against an aggregate, commiting the resulting events to the eve... | 33.355932 | 90 | 0.676829 |
97cc91faf35d1c2f96a1fc62d7d59119b051482c | 1,494 | ex | Elixir | coherence_demo-0.6/lib/coherence_demo_web/views/error_helpers.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo-0.6/lib/coherence_demo_web/views/error_helpers.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo-0.6/lib/coherence_demo_web/views/error_helpers.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | defmodule CoherenceDemoWeb.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) ->
cont... | 33.2 | 82 | 0.674699 |
97cc9bd526ee6158de896bfcd1565e5843f147c3 | 186 | exs | Elixir | priv/repo/migrations/20210223192701_add_street_2_to_place_addresses.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | priv/repo/migrations/20210223192701_add_street_2_to_place_addresses.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | priv/repo/migrations/20210223192701_add_street_2_to_place_addresses.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Repo.Migrations.AddStreet2ToPlaceAddresses do
use Ecto.Migration
def change do
alter table(:place_addresses) do
add :street_2, :text
end
end
end
| 18.6 | 65 | 0.741935 |
97cca261ec1e502c974e2fc3a0ac34235bc9d2b1 | 38,720 | ex | Elixir | lib/pictionary/stores/word_store.ex | LaudateCorpus1/pictionary | 7dd352cb38904e3ba643609d8d5eb90535eb5107 | [
"MIT"
] | 10 | 2021-06-20T08:22:32.000Z | 2021-07-08T14:35:53.000Z | lib/pictionary/stores/word_store.ex | Arp-G/pictionary | 7dd352cb38904e3ba643609d8d5eb90535eb5107 | [
"MIT"
] | 3 | 2021-06-20T14:37:10.000Z | 2022-02-13T14:03:37.000Z | lib/pictionary/stores/word_store.ex | LaudateCorpus1/pictionary | 7dd352cb38904e3ba643609d8d5eb90535eb5107 | [
"MIT"
] | 1 | 2022-02-08T07:49:51.000Z | 2022-02-08T07:49:51.000Z | defmodule Pictionary.Stores.WordStore do
def get_words_list() do
word_list()
|> Enum.map(&String.downcase/1)
|> MapSet.new()
end
defp word_list do
[
"Pac-Man",
"bow",
"Apple",
"chest",
"six pack",
"nail",
"tornado",
"Mickey Mouse",
"Youtube",
... | 16.754652 | 40 | 0.397908 |
97cd2f4c123a070e5f50e846739c9d14cd12651c | 4,157 | exs | Elixir | test/flow_test/flow_composition_test.exs | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | test/flow_test/flow_composition_test.exs | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | test/flow_test/flow_composition_test.exs | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | defmodule Ash.FlowTest.FlowCompositionTest do
@moduledoc false
use ExUnit.Case, async: false
alias Ash.Test.Support.Flow.{Api, Org, User}
setup do
ExUnit.CaptureLog.capture_log(fn ->
Ash.DataLayer.Mnesia.start(Api)
end)
on_exit(fn ->
ExUnit.CaptureLog.capture_log(fn ->
:mnesia... | 21.317949 | 87 | 0.595862 |
97cd8752546dd37468a01c258a4b2aa5b472f98d | 1,532 | ex | Elixir | apps/ui/lib/ui.ex | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 3 | 2020-05-01T17:14:23.000Z | 2021-05-15T16:22:43.000Z | apps/ui/lib/ui.ex | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 13 | 2019-08-14T15:44:24.000Z | 2021-09-01T20:17:55.000Z | apps/ui/lib/ui.ex | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | null | null | null | defmodule Ui do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use Ui, :controller
use Ui, :view
The definitions below will be executed for every view,
controller, etc, so keep them short ... | 22.202899 | 83 | 0.669713 |
97cd94ba275e97d0a0b11f4aa6b5b6ebd979890c | 354 | ex | Elixir | lib/copadelrey_api/game_player.ex | trestini/copadelrey-api | d042ae5535c2a8860cb34e59078b2af15aec4c09 | [
"Apache-2.0"
] | null | null | null | lib/copadelrey_api/game_player.ex | trestini/copadelrey-api | d042ae5535c2a8860cb34e59078b2af15aec4c09 | [
"Apache-2.0"
] | 2 | 2021-03-09T18:24:01.000Z | 2021-05-10T15:20:30.000Z | lib/copadelrey_api/game_player.ex | trestini/copadelrey-api | d042ae5535c2a8860cb34e59078b2af15aec4c09 | [
"Apache-2.0"
] | null | null | null | defmodule Cup.GamePlayer do
use Ecto.Schema
import Ecto.Changeset
schema "game_players" do
field :team, :string
belongs_to :game, Cup.Game
belongs_to :player, Cup.Player
timestamps()
end
@doc false
def changeset(game_player, attrs) do
game_player
|> cast(attrs, [:team])
|> val... | 17.7 | 38 | 0.675141 |
97cd960500f79c9cd6a5671bd2c7a37472652a6c | 8,752 | ex | Elixir | deps/plug/lib/plug/debugger.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | deps/plug/lib/plug/debugger.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | deps/plug/lib/plug/debugger.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | # The debugger is based on Better Errors, under MIT LICENSE.
#
# Copyright (c) 2012 Charlie Somerville
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# witho... | 29.369128 | 99 | 0.650137 |
97cdc8f122292477f598845d5a086a8164989264 | 290 | ex | Elixir | apps/raptor/lib/raptor_web/router.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/raptor/lib/raptor_web/router.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/raptor/lib/raptor_web/router.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule RaptorWeb.Router do
use RaptorWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", RaptorWeb do
pipe_through :api
get("/authorize", AuthorizeController, :authorize)
get("/listAccessGroups", ListAccessGroupsController, :list)
end
end
| 20.714286 | 63 | 0.703448 |
97cdcd03e060f17a86988f5811a6a3e33ff82ada | 5,796 | ex | Elixir | lib/cardigan/game.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 2 | 2020-05-05T06:07:16.000Z | 2020-05-09T02:12:32.000Z | lib/cardigan/game.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 21 | 2020-05-05T16:06:57.000Z | 2020-07-07T17:25:46.000Z | lib/cardigan/game.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | null | null | null | defmodule Cardigan.Game do
alias Cardigan.{Deck, Card}
@behaviour Access
defstruct name: nil,
min_num_of_players: 1,
max_num_of_players: 20,
metadata: nil,
decks: [],
hands: [],
started: false
# Implementing the Access behaviour by deleg... | 24.66383 | 94 | 0.5647 |
97cdda11edf3eda34f22a4a1175a265b70193a7d | 414 | exs | Elixir | cmark_native_darwin_x86_64/mix.exs | wojtekmach/cmark_native | 5a7f085a3497c561c64aca6864301aadbf536b89 | [
"Apache-2.0",
"MIT"
] | null | null | null | cmark_native_darwin_x86_64/mix.exs | wojtekmach/cmark_native | 5a7f085a3497c561c64aca6864301aadbf536b89 | [
"Apache-2.0",
"MIT"
] | null | null | null | cmark_native_darwin_x86_64/mix.exs | wojtekmach/cmark_native | 5a7f085a3497c561c64aca6864301aadbf536b89 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule CmarkNativeDarwinX86_64.MixProject do
use Mix.Project
def project do
[
app: :cmark_native_darwin_x86_64,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
... | 15.923077 | 47 | 0.557971 |
97cdef8fa803977f05af18b85578a3baa8b5c503 | 1,304 | exs | Elixir | binary-search/binary_search_test.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | binary-search/binary_search_test.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | binary-search/binary_search_test.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("binary_search.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule BinarySearchTest do
use ExUnit.Case
test "returns :not_found on empty tuple" do
assert BinarySearch.search({}, 2) == :not_found
end
... | 29.636364 | 64 | 0.657209 |
97cdf9c625901abaa13499441656201d6ade6bcd | 1,775 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_colors.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_colors.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_colors.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... | 32.87037 | 157 | 0.728451 |
97ce0a808c86f805596dcaae022a45d9916f05cd | 1,327 | exs | Elixir | config/config.exs | bluecloudy/ecto_neo4j | fcd0c0f57f2daf6b6c8c5ae3d70f2c50a5f8dc76 | [
"MIT"
] | null | null | null | config/config.exs | bluecloudy/ecto_neo4j | fcd0c0f57f2daf6b6c8c5ae3d70f2c50a5f8dc76 | [
"MIT"
] | null | null | null | config/config.exs | bluecloudy/ecto_neo4j | fcd0c0f57f2daf6b6c8c5ae3d70f2c50a5f8dc76 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 31.595238 | 73 | 0.743783 |
97ce5e426e23aeecec5313dce3a8159d79989be2 | 4,429 | ex | Elixir | testData/org/elixir_lang/parser_definition/general_parsing_test_case/Pygment.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/general_parsing_test_case/Pygment.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/general_parsing_test_case/Pygment.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | # Numbers
0b0101011
1234 ; 0x1A ; 0xbeef ; 0763 ; 0o123
3.14 ; 5.0e21 ; 0.5e-12
100_000_000
# these are not valid numbers
0b012 ; 0xboar ; 0o888
0B01 ; 0XAF ; 0O123
# Characters
?a ; ?1 ; ?\n ; ?\s ; ?\c ; ? ; ?,
?\x{12} ; ?\x{abcd}
?\x34 ; ?\xF
# these show that only the first digit is part of the character
?\123 ;... | 19.17316 | 78 | 0.54098 |
97ce6aecd542cb9268a7314b96bd070ce2d96cc5 | 553 | exs | Elixir | test/views/error_view_test.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | 1 | 2017-04-22T12:36:19.000Z | 2017-04-22T12:36:19.000Z | test/views/error_view_test.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | null | null | null | defmodule Ruru.ErrorViewTest do
use Ruru.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Ruru.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
asser... | 25.136364 | 66 | 0.667269 |
97ce8006560196f09bc37c418c3a4a1cf9e98c50 | 2,159 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/pricing_schedule_pricing_period.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/pricing_schedule_pricing_period.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/pricing_schedule_pricing_period.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.59322 | 201 | 0.704493 |
97cedfc2f0ff92b98195f34bbd952e94a2b09d41 | 54 | exs | Elixir | config/config.exs | optikfluffel/veil | 9c22a0370e9ea9fa6f1c7f04666d91109a7dff97 | [
"MIT"
] | 164 | 2018-02-10T21:33:40.000Z | 2022-03-15T06:10:50.000Z | config/config.exs | optikfluffel/veil | 9c22a0370e9ea9fa6f1c7f04666d91109a7dff97 | [
"MIT"
] | 21 | 2018-02-15T02:31:40.000Z | 2021-04-04T07:16:43.000Z | config/config.exs | optikfluffel/veil | 9c22a0370e9ea9fa6f1c7f04666d91109a7dff97 | [
"MIT"
] | 14 | 2018-03-24T11:15:07.000Z | 2020-06-28T12:33:38.000Z | use Mix.Config
config :veil, :environment, Mix.env()
| 13.5 | 37 | 0.722222 |
97cf02fffafcfb8ff8f93dcf1c47fd60d7cd153b | 2,241 | exs | Elixir | priv/repo/migrations/20180507203357_initial.exs | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | 1 | 2019-07-04T03:23:31.000Z | 2019-07-04T03:23:31.000Z | priv/repo/migrations/20180507203357_initial.exs | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180507203357_initial.exs | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | null | null | null | defmodule Lucidboard.Repo.Migrations.Initial do
@moduledoc false
use Ecto.Migration
def change do
create table(:users) do
add(:name, :string, null: false)
add(:full_name, :string, null: false)
add(:settings, :jsonb, null: false, default: "{}")
add(:avatar_url, :string)
timestam... | 28.0125 | 80 | 0.615797 |
97cf197a849d989e6b8294ce6a9162e3d088beb8 | 3,150 | exs | Elixir | test/mix/tasks/phx.new_test.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.new_test.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.new_test.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | for pattern <- ["../../../installer/lib/phx_new/project.ex",
"../../../installer/lib/phx_new/generator.ex",
"../../../installer/lib/phx_new/*.ex",
"../../../installer/lib/mix/tasks/phx.new.ex",
"../../../installer/test/mix_helper.exs"],
file <- [_|_] =... | 37.058824 | 83 | 0.609206 |
97cf4b51b72050e08c5c7bdc70ef1978e60b3264 | 3,131 | ex | Elixir | lib/konvex/implementation/riak/ability/to_remove_value_from_text_set_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-03-08T08:30:24.000Z | 2022-03-08T08:30:24.000Z | lib/konvex/implementation/riak/ability/to_remove_value_from_text_set_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-01-28T16:45:57.000Z | 2022-01-28T16:56:22.000Z | lib/konvex/implementation/riak/ability/to_remove_value_from_text_set_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | null | null | null | defmodule Konvex.Implementation.Riak.Ability.ToRemoveValueFromTextSetValue do
defmacro __using__(
[
bucket_name: <<_, _ :: binary>> = bucket_name,
connection: quoted_riak_connection,
set_type_name: <<_, _ :: binary>> = set_type_name
]
)... | 40.141026 | 133 | 0.548068 |
97cf4c2f08340e2de29e6a6fe053d67ec0e8915c | 1,615 | ex | Elixir | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_protobuf_empty.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_protobuf_empty.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_protobuf_empty.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.452381 | 345 | 0.770898 |
97cf6dec8c0de22951d3dc55933bf8b4015393bc | 5,139 | ex | Elixir | lib/slackex/groups.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 30 | 2016-01-12T18:05:37.000Z | 2020-06-19T19:54:11.000Z | lib/slackex/groups.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 7 | 2016-01-12T18:23:35.000Z | 2020-11-30T13:26:47.000Z | lib/slackex/groups.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 5 | 2016-11-01T17:17:38.000Z | 2019-10-29T16:08:45.000Z | defmodule Slackex.Groups do
@moduledoc """
Get info on your team's private channels.
"""
@doc """
This method archives a private channel.
"""
def archive(channel, options \\ %{}) do
params = options |> Map.merge(%{channel: channel})
Slackex.request("groups.archive", params)
end
@doc """
Th... | 30.408284 | 72 | 0.681066 |
97cf70b9f95120f8f743fb8b8184ddafb7928bb5 | 7,075 | ex | Elixir | lib/exvcr/handler.ex | myxplor/exvcr | 84aa3ebce2412aff3eff25dea14cd39b08a5a32d | [
"MIT"
] | null | null | null | lib/exvcr/handler.ex | myxplor/exvcr | 84aa3ebce2412aff3eff25dea14cd39b08a5a32d | [
"MIT"
] | null | null | null | lib/exvcr/handler.ex | myxplor/exvcr | 84aa3ebce2412aff3eff25dea14cd39b08a5a32d | [
"MIT"
] | null | null | null | defmodule ExVCR.Handler do
@moduledoc """
Provide operations for request/response.
"""
alias ExVCR.Recorder
alias ExVCR.Actor.Options
alias ExVCR.Util
@doc """
Get response from either server or cache.
"""
def get_response(recorder, request) do
if ignore_request?(request, recorder) do
ge... | 32.906977 | 119 | 0.689046 |
97cf74a698a41ef18ead82778fa01e4cfeb9d7e4 | 85 | exs | Elixir | test/views/layout_view_test.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | defmodule IascSubastas.LayoutViewTest do
use IascSubastas.ConnCase, async: true
end | 28.333333 | 40 | 0.847059 |
97cf78804ca7c70b060b3a2e38643fa03df95cd2 | 1,887 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_group_autoscaling_policy.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/node_group_autoscaling_policy.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/node_group_autoscaling_policy.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... | 35.603774 | 183 | 0.716481 |
97cf8b6060ebbc0bbc00fbf81feba13f56b44664 | 1,573 | ex | Elixir | lib/lucidboard_web/router.ex | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | 1 | 2019-07-04T03:23:31.000Z | 2019-07-04T03:23:31.000Z | lib/lucidboard_web/router.ex | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | null | null | null | lib/lucidboard_web/router.ex | yvc74/lucidboard | cf524c4ac0000c7873d6d313b8b067f08a768f09 | [
"MIT"
] | null | null | null | defmodule LucidboardWeb.Router do
use LucidboardWeb, :router
alias LucidboardWeb.LayoutView
# require Ueberauth
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_flash)
plug(Phoenix.LiveView.Flash)
plug(LucidboardWeb.LoadUserPlug)
plug(:protect_from_forgery)... | 27.12069 | 78 | 0.689765 |
97cf95747520211237cb99a5041d86f14b7a3815 | 155 | ex | Elixir | test/test_modules/testmodule2.ex | Awlexus/Ecbolic | 754a6601853c211a0d4b7572d7f239b26e9867de | [
"Apache-2.0"
] | null | null | null | test/test_modules/testmodule2.ex | Awlexus/Ecbolic | 754a6601853c211a0d4b7572d7f239b26e9867de | [
"Apache-2.0"
] | 1 | 2018-09-10T21:29:27.000Z | 2018-09-10T21:29:27.000Z | test/test_modules/testmodule2.ex | Awlexus/Ecbolic | 754a6601853c211a0d4b7572d7f239b26e9867de | [
"Apache-2.0"
] | null | null | null | defmodule TestModule2 do
use Ecbolic
Ecbolic.help("Repeats what you just said")
Ecbolic.usage("echo <text:str>")
def echo(string), do: string
end
| 19.375 | 44 | 0.722581 |
97cf972601e703b2adf63dac2d7fa6f926602c53 | 353 | exs | Elixir | priv/repo/migrations/20180428034143_remove_posts_comments_replies.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20180428034143_remove_posts_comments_replies.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20180428034143_remove_posts_comments_replies.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.RemovePostsCommentsReplies do
use Ecto.Migration
def change do
drop(table(:posts_comments_replies))
# drop(index(:posts_comments_replies, [:comment_id]))
# drop(index(:posts_comments_replies, [:reply_id]))
# create(unique_index(:posts_comments_replies, [:co... | 29.416667 | 77 | 0.756374 |
97cfb3b9995fccb67f55bdd2e11425d8d67e0084 | 308 | ex | Elixir | ola_mundo/lib/ola_mundo.ex | diogobaracho/lab_exunit | 2fc4445a50c7faa95d057dcb69d9bb9c6833c9f0 | [
"Apache-2.0"
] | 1 | 2020-03-04T20:42:23.000Z | 2020-03-04T20:42:23.000Z | ola_mundo/lib/ola_mundo.ex | diogobaracho/lab_exunit | 2fc4445a50c7faa95d057dcb69d9bb9c6833c9f0 | [
"Apache-2.0"
] | null | null | null | ola_mundo/lib/ola_mundo.ex | diogobaracho/lab_exunit | 2fc4445a50c7faa95d057dcb69d9bb9c6833c9f0 | [
"Apache-2.0"
] | null | null | null | defmodule OlaMundo do
@moduledoc """
Documentation for `OlaMundo`.
"""
@doc """
Hello world.
## Examples
iex> OlaMundo.hello()
:world
iex> OlaMundo.hello("Ciclano")
"Olá Ciclano"
"""
def hello do
:world
end
def hello(name) do
"Olá #{name}"
end
end
| 11.846154 | 36 | 0.558442 |
97cffbe752331e8fe025a557301dfa7f9c1ff37b | 3,188 | ex | Elixir | lib/codes/codes_d07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_D07 do
alias IcdCode.ICDCode
def _D070 do
%ICDCode{full_code: "D070",
category_code: "D07",
short_code: "0",
full_name: "Carcinoma in situ of endometrium",
short_name: "Carcinoma in situ of endometrium",
category_name: "Carcinoma i... | 32.865979 | 81 | 0.608218 |
97d0069ea8da0f7e05a701e2b6e3979b58c1409d | 166 | exs | Elixir | .formatter.exs | amatalai/struct_cop | 0b7da31f1fde77782cebc8e61c722b92eda29a4b | [
"Apache-2.0"
] | 13 | 2019-12-08T21:08:33.000Z | 2021-07-07T09:05:01.000Z | .formatter.exs | amatalai/struct_cop | 0b7da31f1fde77782cebc8e61c722b92eda29a4b | [
"Apache-2.0"
] | null | null | null | .formatter.exs | amatalai/struct_cop | 0b7da31f1fde77782cebc8e61c722b92eda29a4b | [
"Apache-2.0"
] | 1 | 2019-12-30T13:05:26.000Z | 2019-12-30T13:05:26.000Z | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{lib,test}/**/*.{ex,exs}"],
import_deps: [:ecto],
locals_without_parens: [
assert_raise: 1
]
]
| 18.444444 | 63 | 0.584337 |
97d017e7384a744da88091704e0e85681d66d466 | 61 | ex | Elixir | web/views/page_view.ex | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | web/views/page_view.ex | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | web/views/page_view.ex | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | defmodule Hyperdrives.PageView do
use Hyperdrives.View
end
| 15.25 | 33 | 0.836066 |
97d039ce502e7a9f1cd5ed170be21c66f6a21284 | 1,668 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_tag_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_tag_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_tag_response.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... | 34.040816 | 144 | 0.742806 |
97d064c1c615ffb3828af4583978432b3481b8a5 | 3,267 | exs | Elixir | test/routes/public_router_test.exs | TheLe0/bankingixir | 3f5f81452ad26f813b160c046143d316baa3985e | [
"MIT"
] | null | null | null | test/routes/public_router_test.exs | TheLe0/bankingixir | 3f5f81452ad26f813b160c046143d316baa3985e | [
"MIT"
] | 1 | 2022-01-31T14:04:19.000Z | 2022-01-31T14:06:46.000Z | test/routes/public_router_test.exs | TheLe0/bankingixir | 3f5f81452ad26f813b160c046143d316baa3985e | [
"MIT"
] | null | null | null | defmodule PublicRouterTest do
use ExUnit.Case
use Plug.Test
alias PublicRouter
alias Token
@opts PublicRouter.init([])
@account "1234567890"
@header_content "Basic " <> Base.encode64("admin:admin")
setup do
{:ok, sup} = Accounts.start_link()
on_exit(fn ->
refute Process.alive?(sup), "S... | 21.635762 | 80 | 0.533211 |
97d06c253233a9a3481c08b6b9661b4ab35b04b8 | 66 | exs | Elixir | test/test_helper.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | test/test_helper.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | test/test_helper.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Core.Repo, :manual)
| 13.2 | 50 | 0.772727 |
97d07bf55018d9a2de821161b2bdfc501abd3ba1 | 1,555 | exs | Elixir | mix.exs | kianmeng/ex_secp256k1 | ffa0dbac8494d94de20ff0a16095ed866534ed12 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/ex_secp256k1 | ffa0dbac8494d94de20ff0a16095ed866534ed12 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/ex_secp256k1 | ffa0dbac8494d94de20ff0a16095ed866534ed12 | [
"MIT"
] | null | null | null | defmodule ExSecp256k1.MixProject do
use Mix.Project
def project do
[
app: :ex_secp256k1,
version: "0.1.2",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
deps: deps(),
name: "ExS... | 19.683544 | 130 | 0.540836 |
97d08f62adee446433398f8a1f8c5e6253f18a16 | 112 | exs | Elixir | other/tests/test/tests_test.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | 1 | 2016-12-25T09:53:53.000Z | 2016-12-25T09:53:53.000Z | other/tests/test/tests_test.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | other/tests/test/tests_test.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | defmodule TestsTest do
use ExUnit.Case
doctest Tests
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
97d099589bca9145101ccafba80a05b9284ae1b2 | 1,962 | ex | Elixir | backend/lib/honeyland_web/resolvers/astarte.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland_web/resolvers/astarte.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland_web/resolvers/astarte.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 28.852941 | 74 | 0.700815 |
97d0de2f88e7f7ba6009653d418d5ddaa025895d | 279 | exs | Elixir | test/list_filter_test.exs | brunobamaral/igniter-list-filter-challenge | c6aaf668a9c843b5ab8ea3d3fc98a2a0aa521376 | [
"Apache-2.0"
] | null | null | null | test/list_filter_test.exs | brunobamaral/igniter-list-filter-challenge | c6aaf668a9c843b5ab8ea3d3fc98a2a0aa521376 | [
"Apache-2.0"
] | null | null | null | test/list_filter_test.exs | brunobamaral/igniter-list-filter-challenge | c6aaf668a9c843b5ab8ea3d3fc98a2a0aa521376 | [
"Apache-2.0"
] | null | null | null | defmodule ListFilterTest do
use ExUnit.Case
describe "call/1" do
test "count and return only number unpair of a list" do
example = ["1", "3", "6", "43", "banana", "6", "abc"]
response = ListFilter.call(example)
assert response == 3
end
end
end
| 19.928571 | 59 | 0.612903 |
97d15453c8eb911fca115d0c4a0c5b05a2f14e9a | 1,800 | ex | Elixir | lib/processlru.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 8 | 2021-03-12T15:35:09.000Z | 2022-03-06T06:37:49.000Z | lib/processlru.ex | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 15 | 2019-09-06T07:58:01.000Z | 2021-03-06T17:04:46.000Z | lib/processlru.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 5 | 2021-10-01T12:52:28.000Z | 2022-02-02T19:29:56.000Z | # Diode Server
# Copyright 2021 Diode
# Licensed under the Diode License, Version 1.1
defmodule ProcessLru do
@moduledoc """
Provides Least-Recently-Used Queue with a fixed maximum size
"""
def new(name \\ nil, max_size) do
name =
case name do
nil -> make_ref()
_other -> name
en... | 19.354839 | 76 | 0.55 |
97d154ea04553137c082be0de038e48e487cf155 | 1,868 | exs | Elixir | Chapter09/apps/elixir_drip/mix.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter09/apps/elixir_drip/mix.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter09/apps/elixir_drip/mix.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDrip.Mixfile do
use Mix.Project
def project do
[
app: :elixir_drip,
version: "0.0.8",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixirc... | 27.470588 | 79 | 0.563704 |
97d1565e817a6035be66b1c0d69578684e216aed | 2,014 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/advertised_id.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/advertised_id.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/advertised_id.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 38.730769 | 371 | 0.74429 |
97d1736902a75f98e5381c0327af0e0d07a07b5e | 283 | exs | Elixir | priv/repo/migrations/20170708183203_create_line_items_table.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | priv/repo/migrations/20170708183203_create_line_items_table.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | priv/repo/migrations/20170708183203_create_line_items_table.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule Shopix.Repo.Migrations.CreateLineItemsTable do
use Ecto.Migration
def change do
create table(:line_items) do
add :order_id, references(:orders)
add :product_id, references(:products)
add :quantity, :integer
timestamps()
end
end
end
| 18.866667 | 56 | 0.69258 |
97d1a38d0d20b557895feb062f953a49a3a84d51 | 6,812 | exs | Elixir | test/sptfy/follow_test.exs | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 5 | 2020-12-14T15:46:26.000Z | 2021-03-20T22:32:58.000Z | test/sptfy/follow_test.exs | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 9 | 2020-12-25T14:36:11.000Z | 2021-01-25T14:03:18.000Z | test/sptfy/follow_test.exs | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | null | null | null | defmodule Sptfy.FollowTest do
use ExUnit.Case, async: false
import Mock
alias Sptfy.Follow
alias Sptfy.Object.{FullArtist, Paging}
describe "follow_playlist/2" do
test "returns :ok" do
with_mock Sptfy.Client.HTTP, put: fn _, "/v1/playlists/abc/followers", _, _ -> MockHelpers.response(%{}) end do
... | 39.836257 | 148 | 0.629477 |
97d1a410a9f0118785e97462fceec5b9e46ab91a | 92 | exs | Elixir | test/views/page_view_test.exs | yasuhiro-okada-aktsk/sample_elixir_exrm | 755abee8b7ee64dc82679d09c800d301393063ab | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | yasuhiro-okada-aktsk/sample_elixir_exrm | 755abee8b7ee64dc82679d09c800d301393063ab | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | yasuhiro-okada-aktsk/sample_elixir_exrm | 755abee8b7ee64dc82679d09c800d301393063ab | [
"MIT"
] | null | null | null | defmodule SampleElixirExrm.PageViewTest do
use SampleElixirExrm.ConnCase, async: true
end
| 23 | 44 | 0.847826 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.