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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7e88280c6542738637ed43698b99b2ecfd8104f | 1,473 | ex | Elixir | lib/tauth_proxy/proxy_server.ex | tellerhq/tauth_proxy | 761ce3dea4eb895f9ed67bbc479dfc4adabe7286 | [
"MIT"
] | 10 | 2017-12-14T10:40:40.000Z | 2018-06-18T09:46:13.000Z | lib/tauth_proxy/proxy_server.ex | tellerhq/tauth_proxy | 761ce3dea4eb895f9ed67bbc479dfc4adabe7286 | [
"MIT"
] | null | null | null | lib/tauth_proxy/proxy_server.ex | tellerhq/tauth_proxy | 761ce3dea4eb895f9ed67bbc479dfc4adabe7286 | [
"MIT"
] | null | null | null | defmodule TAuthProxy.ProxyServer do
use Plug.Router
import Plug.Conn
plug Plug.Logger, log: :debug
plug :match
plug :dispatch
@www "https://teller.io"
@api "https://api.teller.io"
match "/api/*path" do
dir = Application.app_dir(:tauth_proxy)
{:ok, client} =
:hackney.request(method(conn... | 24.55 | 76 | 0.600136 |
f7e8bb7aa25864b77058163b3493c5e9d621b597 | 2,200 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/file_list.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/file_list.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/file_list.ex | 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... | 39.285714 | 297 | 0.711818 |
f7e8bfaed52b5068dd3ae50d41d2bd396e54fb67 | 270 | exs | Elixir | config/test.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | null | null | null | config/test.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | 2 | 2022-02-17T21:25:57.000Z | 2022-02-17T21:33:15.000Z | config/test.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :foresight, ForesightWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.545455 | 56 | 0.740741 |
f7e8c266ddaeb7f847d1089a5ff75d3e5c21e6c0 | 457 | ex | Elixir | lib/draw_something/dictionary/crawler/supervisor.ex | ShockN745/drawcheat | d02fa05c1499e3c91d7dd85342c0b149b203c240 | [
"MIT"
] | null | null | null | lib/draw_something/dictionary/crawler/supervisor.ex | ShockN745/drawcheat | d02fa05c1499e3c91d7dd85342c0b149b203c240 | [
"MIT"
] | null | null | null | lib/draw_something/dictionary/crawler/supervisor.ex | ShockN745/drawcheat | d02fa05c1499e3c91d7dd85342c0b149b203c240 | [
"MIT"
] | null | null | null | defmodule DrawSomething.Dictionary.Crawler.Supervisor do
use Supervisor
import Supervisor.Spec
def start_link do
Supervisor.start_link __MODULE__, :ok, name: __MODULE__
end
def start_crawler(start_idx, end_idx) do
Supervisor.start_child __MODULE__, [start_idx, end_idx]
end
def init(:ok) do
... | 20.772727 | 59 | 0.73523 |
f7e8d03df943ebb21e619fd7b811b96ffb679df3 | 2,301 | exs | Elixir | test/elxpro_blog/comments_test.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | test/elxpro_blog/comments_test.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | 4 | 2021-08-11T03:19:33.000Z | 2021-09-26T01:29:58.000Z | test/elxpro_blog/comments_test.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | defmodule ElxproBlog.CommentsTest do
use ElxproBlog.DataCase
alias ElxproBlog.Comments.Core.CommentRepo
alias ElxproBlog.Factory
describe "comments" do
alias ElxproBlog.Comments.Data.Comment
@valid_attrs %{content: "some content"}
@update_attrs %{content: "some updated content"}
@invalid_attr... | 37.112903 | 94 | 0.704476 |
f7e8f221c7f1c61148b4ae50fabff9ca81686816 | 63 | ex | Elixir | lib/littlechat/connected_user.ex | BenBera/littleChatWebrtc | 91850323d0e60c4049a84ff8985b09856b356016 | [
"MIT"
] | 166 | 2020-07-15T14:47:19.000Z | 2022-03-25T03:57:35.000Z | lib/littlechat/connected_user.ex | BenBera/littleChatWebrtc | 91850323d0e60c4049a84ff8985b09856b356016 | [
"MIT"
] | 12 | 2020-07-01T23:32:47.000Z | 2021-03-18T21:21:28.000Z | lib/littlechat/connected_user.ex | BenBera/littleChatWebrtc | 91850323d0e60c4049a84ff8985b09856b356016 | [
"MIT"
] | 21 | 2020-07-15T14:59:39.000Z | 2022-03-20T21:05:16.000Z | defmodule Littlechat.ConnectedUser do
defstruct uuid: ""
end
| 15.75 | 37 | 0.793651 |
f7e8f514161a7d93b9ef30a45fd277d0689751e6 | 1,381 | ex | Elixir | lib/musiccast/upnp/plug/event_dispatcher.ex | almightycouch/musiccast | eba8107d4e0829f988693625d59d72090133a78a | [
"MIT"
] | 6 | 2017-03-18T21:04:52.000Z | 2020-09-27T00:43:02.000Z | lib/musiccast/upnp/plug/event_dispatcher.ex | almightycouch/musiccast | eba8107d4e0829f988693625d59d72090133a78a | [
"MIT"
] | null | null | null | lib/musiccast/upnp/plug/event_dispatcher.ex | almightycouch/musiccast | eba8107d4e0829f988693625d59d72090133a78a | [
"MIT"
] | 1 | 2021-01-11T17:23:22.000Z | 2021-01-11T17:23:22.000Z | defmodule MusicCast.UPnP.Plug.EventDispatcher do
@moduledoc """
A `Plug` for receiving and dispatching UPnP notification events.
In order to subscribe to UPnP events, the `:upnp_callback_url` config must be configured correctly:
config :musiccast,
upnp_callback_url: "http://192.168.0.42:4000/upnp/... | 27.62 | 103 | 0.689356 |
f7e8fc32acfcad85197a24d4fdb067db5d905f0c | 405 | ex | Elixir | display/lib/display/application.ex | Jwsonic/air | b4f6ed4b2be47aee78b40345044c96de1fc49813 | [
"MIT"
] | 1 | 2021-12-14T09:20:06.000Z | 2021-12-14T09:20:06.000Z | display/lib/display/application.ex | Jwsonic/air | b4f6ed4b2be47aee78b40345044c96de1fc49813 | [
"MIT"
] | null | null | null | display/lib/display/application.ex | Jwsonic/air | b4f6ed4b2be47aee78b40345044c96de1fc49813 | [
"MIT"
] | null | null | null | defmodule Display.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 = [
{Scenic, viewports: [Application.get_env(:display, :viewport)]}
]
opts = [strategy: :one_fo... | 23.823529 | 69 | 0.711111 |
f7e92cc16c87834ae1d985ec4df0b98e4766f0ce | 5,054 | ex | Elixir | lib/ElixirWx/WxFunctions.ex | DwayneDibley/ElixirWxTests | 1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4 | [
"Apache-2.0"
] | 3 | 2018-10-26T21:12:47.000Z | 2020-09-01T02:09:34.000Z | lib/ElixirWx/WxFunctions.ex | DwayneDibley/ElixirWxTests | 1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4 | [
"Apache-2.0"
] | null | null | null | lib/ElixirWx/WxFunctions.ex | DwayneDibley/ElixirWxTests | 1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4 | [
"Apache-2.0"
] | null | null | null | defmodule WxFunctions do
require Logger
# import WxUtilities
@moduledoc """
```
## General functions
newWindow({window_spec, evt_handler}, show)
newWindow(name, {window_spec, evt_handler}, show)
"""
# @doc """
# Create a new window where:
# windiw_spec: Ths file containing the window specificati... | 31.006135 | 88 | 0.598338 |
f7e92d65e9d985f0ce4bbde2f138c7590d6918f8 | 1,928 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_uiv1beta3_disable_processor_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_uiv1beta3_disable_processor_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_uiv1beta3_disable_processor_metadata.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... | 34.428571 | 190 | 0.767635 |
f7e994055d079352dec775d1c1970f66d284aa96 | 12,475 | exs | Elixir | test/lib/code_corps/github/sync/task/changeset_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/github/sync/task/changeset_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/github/sync/task/changeset_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.GitHub.Sync.Task.ChangesetTest do
@moduledoc false
use CodeCorps.DbAccessCase
alias CodeCorps.GitHub.Sync.Task
alias Ecto.Changeset
describe "create_changeset/4" do
test "assigns proper changes to the task" do
github_issue = insert(
:github_issue,
github_create... | 43.926056 | 141 | 0.700521 |
f7e9f8cd8b3edbc62fbcb8a1b2148f04512a3c42 | 281 | ex | Elixir | lib/module_example/child_module1.ex | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | lib/module_example/child_module1.ex | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | lib/module_example/child_module1.ex | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | defmodule ModuleExample.ChildModule1 do
@moduledoc """
Documentation for `ModuleExample.ChildModule1`.
"""
@doc """
Name of the module
## Examples
iex> ModuleExample.ChildModule1.name()
ModuleExample.ChildModule1
"""
def name(), do: __MODULE__
end | 15.611111 | 49 | 0.679715 |
f7ea2e113d0a51c2ebd002c317d6d62502bded86 | 1,973 | exs | Elixir | apps/roadtrip_web/mix.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | 2 | 2022-01-19T17:59:21.000Z | 2022-01-19T18:05:05.000Z | apps/roadtrip_web/mix.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | apps/roadtrip_web/mix.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | defmodule RoadtripWeb.MixProject do
use Mix.Project
def project do
[
app: :roadtrip_web,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
elixirc_paths: e... | 27.788732 | 68 | 0.555499 |
f7ea31ad6d6f0c294271b88f7e32664f1cfd1a0a | 2,014 | exs | Elixir | config/dev.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | config/dev.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | 4 | 2021-03-09T00:47:04.000Z | 2022-02-10T15:15:28.000Z | config/dev.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :onsor, OnsorWeb.Endpoint,
http: [port: 4000],
... | 27.216216 | 68 | 0.684211 |
f7ea86ca3c6380490096fa78a330e18f9fee17ce | 2,084 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.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... | 39.320755 | 159 | 0.739443 |
f7eaa1847c1c72f36d7b6af25f47d22a96c79759 | 2,424 | ex | Elixir | apps/ewallet/lib/ewallet/gates/transfer_gate.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet/lib/ewallet/gates/transfer_gate.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/gates/transfer_gate.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWallet.TransferGate do
@moduledoc """
Handles the logic for a transfer of value between two addresses.
"""
alias EWallet.TransferFormatter
alias LocalLedger.Entry
alias EWalletDB.Transfer
@doc """
Gets or inserts a transfer using the given idempotency token and other given attributes.
## ... | 23.764706 | 90 | 0.643152 |
f7eaad890ed9d0d227ec5fe0c688bb4c12180001 | 525 | exs | Elixir | priv/repo/migrations/20211007062947_add_missing_uniq_index_for_aritlce_upvotes.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20211007062947_add_missing_uniq_index_for_aritlce_upvotes.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20211007062947_add_missing_uniq_index_for_aritlce_upvotes.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.AddMissingUniqIndexForAritlceUpvotes do
use Ecto.Migration
def change do
create(unique_index(:article_upvotes, [:user_id, :meetup_id]))
create(unique_index(:article_upvotes, [:user_id, :drink_id]))
create(unique_index(:article_upvotes, [:user_id, :blog_id]))
... | 40.384615 | 80 | 0.754286 |
f7eac964a783e0dcb5a47d885acf082d17a7cb52 | 561 | ex | Elixir | lib/rethinkdb.ex | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 530 | 2015-05-12T21:06:49.000Z | 2021-07-29T01:06:43.000Z | lib/rethinkdb.ex | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 122 | 2015-05-12T03:12:50.000Z | 2019-11-11T11:21:10.000Z | lib/rethinkdb.ex | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 79 | 2015-05-14T17:14:52.000Z | 2022-02-14T07:00:00.000Z | defmodule RethinkDB do
@moduledoc """
Some convenience functions for interacting with RethinkDB.
"""
@doc """
See `RethinkDB.Connection.run/2`
"""
defdelegate run(query, pid), to: RethinkDB.Connection
@doc """
See `RethinkDB.Connection.run/3`
"""
defdelegate run(query, pid, opts), to: RethinkDB... | 20.035714 | 61 | 0.686275 |
f7eae1b1c3774fd0ff53348dbfe72998dd696ea5 | 307 | exs | Elixir | test/fl_hook/handshake_error_test.exs | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | 1 | 2022-01-26T21:06:26.000Z | 2022-01-26T21:06:26.000Z | test/fl_hook/handshake_error_test.exs | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | test/fl_hook/handshake_error_test.exs | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | defmodule FLHook.HandshakeErrorTest do
use ExUnit.Case, async: true
alias FLHook.HandshakeError
describe "message/1" do
test "get message" do
assert Exception.message(%HandshakeError{actual_message: "Lorem Ipsum"}) ==
"Socket is not a valid FLHook socket"
end
end
end
| 23.615385 | 81 | 0.697068 |
f7eaeffcb8f907f649d39b99b67afc56e9f77ac2 | 15,679 | ex | Elixir | lib/iex/lib/iex.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule IEx do
@moduledoc ~S"""
Elixir's interactive shell.
This module is the main entry point for Interactive Elixir and
in this documentation we will talk a bit about how IEx works.
Notice that some of the functionalities described here will not be available
depending on your terminal. In particular,... | 29.864762 | 97 | 0.667581 |
f7eaf8ec24ae7950f3e0a2b3e9ed65999b127e18 | 11,291 | exs | Elixir | lib/mix/test/mix/rebar_test.exs | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | 1 | 2018-10-02T13:55:29.000Z | 2018-10-02T13:55:29.000Z | lib/mix/test/mix/rebar_test.exs | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/rebar_test.exs | mertonium/elixir | 74e666156906974082f6b4d34dfbe6988d6465c0 | [
"Apache-2.0"
] | 1 | 2021-09-30T01:21:02.000Z | 2021-09-30T01:21:02.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.RebarTest do
use MixTest.Case
defmodule RebarAsDep do
def project do
[
app: :rebar_as_dep,
version: "0.1.0",
deps: [
{:rebar_dep, path: MixTest.Case.tmp_path("rebar_dep"), app: false}
]
]
e... | 33.01462 | 97 | 0.585422 |
f7eb55c2312792e268ab0cf9af3608a3b0d3714e | 563 | exs | Elixir | test/utils_test.exs | Phiriq/noisex | 274a7fb9317b05dcf303803664335affa1c92b35 | [
"MIT"
] | 2 | 2021-06-17T21:07:57.000Z | 2021-06-18T15:52:34.000Z | test/utils_test.exs | Phiriq/noisex | 274a7fb9317b05dcf303803664335affa1c92b35 | [
"MIT"
] | null | null | null | test/utils_test.exs | Phiriq/noisex | 274a7fb9317b05dcf303803664335affa1c92b35 | [
"MIT"
] | null | null | null | defmodule Isotope.UtilsTest do
use ExUnit.Case, async: true
doctest Isotope.Utils
import ExUnit.CaptureIO
alias Isotope.{Noise, Utils}
test "show_noisemap/1 outputs visualization to stdout" do
{:ok, noise} = Noise.new()
output =
fn ->
noise
|> Noise.noise_map({10, 10})
... | 21.653846 | 59 | 0.637655 |
f7eb6302d08ae6931522b26a473dd7e04dcf8d90 | 1,054 | ex | Elixir | lib/mailjex/api/message.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 8 | 2017-10-10T15:51:33.000Z | 2021-08-18T01:06:49.000Z | lib/mailjex/api/message.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 5 | 2018-05-23T15:03:15.000Z | 2019-11-17T16:30:18.000Z | lib/mailjex/api/message.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 4 | 2018-11-16T15:45:22.000Z | 2019-11-16T16:19:48.000Z | defmodule Mailjex.Api.Message do
@moduledoc false
import Mailjex.Utils.Comms
def list(params \\ %{}) do
url_params = params |> URI.encode_query
request(:get, "/REST/message?#{url_params}")
|> decode_json
end
def history(params \\ %{}) do
url_params = params |> URI.encode_query
request(... | 22.425532 | 62 | 0.6537 |
f7eb865039b6018e21e6fb613011c315e4f2e9e3 | 603 | ex | Elixir | lib/realbook/dictionary.ex | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 11 | 2020-07-13T20:43:43.000Z | 2021-05-18T23:52:27.000Z | lib/realbook/dictionary.ex | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 50 | 2020-07-13T02:20:14.000Z | 2020-08-17T16:45:17.000Z | lib/realbook/dictionary.ex | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 1 | 2021-03-11T17:02:21.000Z | 2021-03-11T17:02:21.000Z | defmodule Realbook.Dictionary do
@moduledoc false
# private implementation of realbook setters and getters.
alias Realbook.Storage
@spec set(keyword) :: :ok
def set(keyword) do
Storage.update(:dictionary, &Keyword.merge(&1, keyword))
end
@spec get(atom, term) :: term
def get(key, default \\ nil) ... | 20.1 | 60 | 0.640133 |
f7eb9e9d4f68ad75428a00dca414260333d5fe68 | 1,065 | ex | Elixir | lib/visualixir_web/channels/nodes_channel.ex | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 1,311 | 2015-11-08T02:21:41.000Z | 2022-03-25T17:32:57.000Z | lib/visualixir_web/channels/nodes_channel.ex | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 30 | 2015-11-09T17:07:50.000Z | 2022-02-10T17:13:50.000Z | lib/visualixir_web/channels/nodes_channel.ex | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 58 | 2015-11-08T16:50:00.000Z | 2022-03-30T13:03:18.000Z | defmodule VisualixirWeb.NodesChannel do
use Visualixir.Web, :channel
require Logger
alias VisualixirWeb.Endpoint
alias VisualixirWeb.TraceChannel
alias Visualixir.Tracer
@channel "nodes"
def join(@channel, _auth_msg, socket) do
{:ok, nodes_msg(), socket}
end
def refresh do
Endpoint.broadcas... | 20.09434 | 85 | 0.686385 |
f7eb9fe29504bdc475e0d829fda58b58979013d1 | 901 | ex | Elixir | lib/rockelivery/orders/create.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery/orders/create.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery/orders/create.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule Rockelivery.Orders.Create do
import Ecto.Query
alias Rockelivery.{Error, Item, Order, Repo}
alias Rockelivery.Orders.ValidateAndMultiplyItems
def call(%{"items" => items_params} = params) do
items_ids = Enum.map(items_params, fn item -> item["id"] end)
query = from item in Item, where: item... | 29.064516 | 95 | 0.672586 |
f7ebc084c8eaf426cc0d8f7b496ccd60e029884f | 3,118 | exs | Elixir | Primer/9_looping_and_recursion.exs | joelbandi/elixir-start-here | 65722377d455a4b4678658eee56713681c6f16ce | [
"MIT"
] | null | null | null | Primer/9_looping_and_recursion.exs | joelbandi/elixir-start-here | 65722377d455a4b4678658eee56713681c6f16ce | [
"MIT"
] | null | null | null | Primer/9_looping_and_recursion.exs | joelbandi/elixir-start-here | 65722377d455a4b4678658eee56713681c6f16ce | [
"MIT"
] | null | null | null | # looping in elixir is done with recursion. Elixir does not have any for loop kind of deals anywhere
# Let's rewrite map function.
import IO, only: [puts: 1]
defmodule Sample.Enum do
def map([], f) do # you can use pattern matching in this this case to handle termination cases
# pattern matchin is useful in achie... | 40.493506 | 152 | 0.676074 |
f7ebc13e3f19c7567746cd8d038ea7e0c345ea34 | 1,129 | exs | Elixir | config/config.exs | mendrugory/enchufeweb | f87d24869eb71cabae436c9e105f88cc5f3d7313 | [
"MIT"
] | 5 | 2017-09-11T12:17:58.000Z | 2018-02-20T16:37:33.000Z | config/config.exs | mendrugory/enchufeweb | f87d24869eb71cabae436c9e105f88cc5f3d7313 | [
"MIT"
] | null | null | null | config/config.exs | mendrugory/enchufeweb | f87d24869eb71cabae436c9e105f88cc5f3d7313 | [
"MIT"
] | 2 | 2018-02-20T16:37:39.000Z | 2018-09-27T23:05:17.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.419355 | 73 | 0.752879 |
f7ebe14fb509ddcae2588084e05bb3d40dcc1536 | 2,348 | exs | Elixir | test/query/joins_test.exs | scottdavis/rethinkdb-elixir | 28727810d6af07f07056082ce471be90cb10f4a0 | [
"MIT"
] | 6 | 2018-09-21T09:15:06.000Z | 2020-12-05T21:50:35.000Z | test/query/joins_test.exs | scottdavis/rethinkdb-elixir | 28727810d6af07f07056082ce471be90cb10f4a0 | [
"MIT"
] | 44 | 2018-09-25T13:16:41.000Z | 2021-08-02T13:14:38.000Z | test/query/joins_test.exs | scottdavis/rethinkdb-elixir | 28727810d6af07f07056082ce471be90cb10f4a0 | [
"MIT"
] | 3 | 2019-03-13T03:11:47.000Z | 2020-12-15T00:50:54.000Z | defmodule JoinsTest do
use ExUnit.Case, async: false
use RethinkDB.Connection
import RethinkDB.Query
alias RethinkDB.Record
alias RethinkDB.Collection
require RethinkDB.Lambda
import RethinkDB.Lambda
@table_name "joins_test_table_1"
setup_all do
start_link()
table_create(@table_name) |> run... | 24.458333 | 93 | 0.430579 |
f7ec00460864ea8f60a55a5f901af6e495185666 | 4,479 | ex | Elixir | lib/mix/tasks/certs_dev.ex | kwoodwardizi/MongoosePush | 9d8408367ccaea56742c3963157a9e861dff1551 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/certs_dev.ex | kwoodwardizi/MongoosePush | 9d8408367ccaea56742c3963157a9e861dff1551 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/certs_dev.ex | kwoodwardizi/MongoosePush | 9d8408367ccaea56742c3963157a9e861dff1551 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Certs.Dev do
@moduledoc """
Generate fake certs (placeholders) for `HTTPS` endpoint and `APNS` service.
Please be aware that `APNS` requires valid Apple Developer certificates, so it
will not accept those fake certificates. Generated certificates may be used
only with mock APNS service (l... | 30.889655 | 146 | 0.604153 |
f7ec1e865fa81e93f490e397e91e5325379e9cff | 3,447 | ex | Elixir | lib/gutenex/pdf/builders/image_builder.ex | tulinmola/gutenex | 09a17dada273e089685176b5a14820430624675f | [
"MIT"
] | 184 | 2015-01-16T23:05:42.000Z | 2018-10-25T18:51:52.000Z | lib/gutenex/pdf/builders/image_builder.ex | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 15 | 2015-05-29T00:28:08.000Z | 2018-10-11T18:55:35.000Z | lib/gutenex/pdf/builders/image_builder.ex | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 32 | 2015-02-14T07:39:48.000Z | 2018-09-12T21:01:02.000Z | defmodule Gutenex.PDF.Builders.ImageBuilder do
alias Gutenex.PDF.Context
alias Gutenex.PDF.RenderContext
alias Gutenex.PDF.Images
def build({%RenderContext{} = render_context, %Context{} = context}) do
render_context = add_images(render_context, Map.to_list(context.images))
{render_context, context}
... | 28.966387 | 100 | 0.684943 |
f7ec3dfbadb129fa9b51a72d497afce097c6bdac | 2,051 | ex | Elixir | elixir/lib/homework/transactions.ex | Koyamot/Divvy-EngineerExercise | de2f2c0d1ad461b2bbb937fa1483c18d4ececc6a | [
"MIT"
] | null | null | null | elixir/lib/homework/transactions.ex | Koyamot/Divvy-EngineerExercise | de2f2c0d1ad461b2bbb937fa1483c18d4ececc6a | [
"MIT"
] | 8 | 2022-01-17T20:50:29.000Z | 2022-01-17T20:54:41.000Z | elixir/lib/homework/transactions.ex | Koyamot/Divvy-EngineerExercise | de2f2c0d1ad461b2bbb937fa1483c18d4ececc6a | [
"MIT"
] | 1 | 2022-01-19T06:55:41.000Z | 2022-01-19T06:55:41.000Z | defmodule Homework.Transactions do
@moduledoc """
The Transactions context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Transactions.Transaction
@doc """
Returns the list of transactions.
## Examples
iex> list_transactions([])
[%Transaction{}, ...]
"""
d... | 19.533333 | 71 | 0.643101 |
f7ec7da5e0a69b3b6bd68f0aea3d43dd1c12f4ad | 5,878 | ex | Elixir | lib/yacto/migration/structure.ex | aman-io/yacto | 4c26772343a9029923ad7e25245f17f2be22a1a1 | [
"Apache-2.0"
] | 56 | 2017-11-30T02:07:07.000Z | 2022-02-16T17:38:42.000Z | lib/yacto/migration/structure.ex | aman-io/yacto | 4c26772343a9029923ad7e25245f17f2be22a1a1 | [
"Apache-2.0"
] | 22 | 2018-01-04T00:34:51.000Z | 2021-08-01T06:52:10.000Z | lib/yacto/migration/structure.ex | aman-io/yacto | 4c26772343a9029923ad7e25245f17f2be22a1a1 | [
"Apache-2.0"
] | 13 | 2018-08-08T05:32:42.000Z | 2021-07-30T14:57:35.000Z | defmodule Yacto.Migration.Structure do
defstruct source: nil,
prefix: nil,
primary_key: [:id],
fields: [:id],
field_sources: %{id: :id},
types: %{id: :id},
associations: [],
embeds: [],
read_after_writes: [],
a... | 27.596244 | 96 | 0.59459 |
f7ec8439bb31b66081a3759b0186d7ab1615885a | 411 | exs | Elixir | config/config.exs | BenMorganIO/guardian_db | e16a4d76e6286c77e7b0097c6234be085eb23160 | [
"MIT"
] | null | null | null | config/config.exs | BenMorganIO/guardian_db | e16a4d76e6286c77e7b0097c6234be085eb23160 | [
"MIT"
] | null | null | null | config/config.exs | BenMorganIO/guardian_db | e16a4d76e6286c77e7b0097c6234be085eb23160 | [
"MIT"
] | null | null | null | use Mix.Config
config :guardian, Guardian.DB,
issuer: "GuardianDB",
secret_key: "HcdlxxmyDRvfrwdpjUPh2M8mWP+KtpOQK1g6fT5SHrnflSY8KiWeORqN6IZSJYTA",
repo: Guardian.DB.TestSupport.Repo
config :guardian_db, ecto_repos: [Guardian.DB.TestSupport.Repo]
config :guardian_db, Guardian.DB.TestSupport.Repo,
database: "... | 29.357143 | 81 | 0.793187 |
f7ec8df8359b71eb583d15b856c06ea1fbd1b789 | 777 | ex | Elixir | lib/cachex/actions/count.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | lib/cachex/actions/count.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | lib/cachex/actions/count.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Actions.Count do
@moduledoc false
# Command module to allow the counting of a cache.
#
# Counting a cache will make sure to take the expiration time of items into
# consideration, making the semantics different to those of the `size()` calls.
alias Cachex.Query
# import needed macros
i... | 29.884615 | 81 | 0.688546 |
f7ec99e7149c122b27e7ae2c4881b35418271f61 | 1,185 | ex | Elixir | lib/events_tools_web/channels/user_socket.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | lib/events_tools_web/channels/user_socket.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | lib/events_tools_web/channels/user_socket.ex | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsToolsWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", EventsToolsWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to veri... | 31.184211 | 86 | 0.706329 |
f7eca8d781b6e717b4ca6891936dc1c811824e45 | 1,075 | ex | Elixir | test/support/conn_case.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | test/support/conn_case.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | test/support/conn_case.ex | manojsamanta/codebreaker-prototype | 14d521db45784dee692de9e7252dd6a54bb793bb | [
"MIT"
] | null | null | null | defmodule LiveViewDemoWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, ... | 27.564103 | 74 | 0.724651 |
f7ecb412d52dfb8038c52862a9c3aba5a8f0146d | 109 | ex | Elixir | examples/lib/fibonacci.ex | jresendiz27/TestingElixir | b211876aa6c467221260a8aab1cf75b11fa0c5a7 | [
"Apache-2.0"
] | null | null | null | examples/lib/fibonacci.ex | jresendiz27/TestingElixir | b211876aa6c467221260a8aab1cf75b11fa0c5a7 | [
"Apache-2.0"
] | null | null | null | examples/lib/fibonacci.ex | jresendiz27/TestingElixir | b211876aa6c467221260a8aab1cf75b11fa0c5a7 | [
"Apache-2.0"
] | null | null | null | defmodule Fibonacci do
def fib(0), do: 0
def fib(1), do: 1
def fib(n), do: fib(n - 1) + fib(n - 2)
end
| 18.166667 | 41 | 0.568807 |
f7ecdc8315989a015d120601139b91f9ccb43819 | 1,248 | ex | Elixir | lib/surface/formatter/phases/newlines.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 468 | 2021-03-11T23:10:41.000Z | 2022-03-30T20:12:06.000Z | lib/surface/formatter/phases/newlines.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 248 | 2021-03-12T07:39:37.000Z | 2022-03-31T13:36:44.000Z | lib/surface/formatter/phases/newlines.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 46 | 2021-03-22T09:28:58.000Z | 2022-03-23T21:32:20.000Z | defmodule Surface.Formatter.Phases.Newlines do
@moduledoc """
Standardizes usage of newlines.
- Prevents more than 1 empty line in a row.
- Prevents an empty line separating an opening/closing tag from the contents inside.
"""
@behaviour Surface.Formatter.Phase
alias Surface.Formatter.Phase
def run(n... | 25.469388 | 86 | 0.669071 |
f7ed1a481d4190c903ebbeccd9b8ea8050455606 | 227 | exs | Elixir | priv/repo/migrations/20170123152224_add_password_to_user.exs | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | 1 | 2017-01-25T21:34:37.000Z | 2017-01-25T21:34:37.000Z | priv/repo/migrations/20170123152224_add_password_to_user.exs | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | 40 | 2017-02-09T07:22:25.000Z | 2020-10-28T13:43:12.000Z | priv/repo/migrations/20170123152224_add_password_to_user.exs | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | null | null | null | defmodule Callforpapers.Repo.Migrations.AddPasswordToUser do
use Ecto.Migration
def change do
alter table(:presenters) do
add :password, :string, virtual: true
add :password_hash, :string
end
end
end
| 20.636364 | 60 | 0.718062 |
f7ed341b10fd5e23f78095f42b14ec2fbb22c757 | 4,788 | ex | Elixir | lib/covid19_api_web/controllers/covid19_controller.ex | HenningLanghorst/jhu_csse_covid19_api | 46861f31ce7154f74c377d37a31bd4283524894f | [
"MIT"
] | null | null | null | lib/covid19_api_web/controllers/covid19_controller.ex | HenningLanghorst/jhu_csse_covid19_api | 46861f31ce7154f74c377d37a31bd4283524894f | [
"MIT"
] | null | null | null | lib/covid19_api_web/controllers/covid19_controller.ex | HenningLanghorst/jhu_csse_covid19_api | 46861f31ce7154f74c377d37a31bd4283524894f | [
"MIT"
] | null | null | null | defmodule Covid19ApiWeb.Covid19Controller do
use Covid19ApiWeb, :controller
import Covid19ApiWeb.DateOperations
@files %{
"confirmed" =>
"csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv",
"deaths" =>
"csse_covid_19_data/csse_covid_19_time_series/time_ser... | 26.748603 | 94 | 0.573517 |
f7ed46af018d95ef7050c94c53ba03a339d96dff | 346 | ex | Elixir | lib/makeup/lexer.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/lexer.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/lexer.ex | rubysolo/makeup | e1c5d27e3f14c04904d74b94b6298bbc28a406c3 | [
"BSD-2-Clause"
] | null | null | null | defmodule Makeup.Lexer do
def merge([{tag, meta, value1}, {tag, meta, value2} | rest]),
do: merge [{tag, meta, value1 <> value2} | rest]
def merge([token | rest]),
do: [token | merge(rest)]
def merge([]),
do: []
def unlex(tokens) do
tokens
|> Enum.map(fn {_, _, value} -> value end)
|... | 21.625 | 63 | 0.557803 |
f7ed5225de8fe3ac98ae8c45b7cd615fa9fa6561 | 10,432 | exs | Elixir | apps/ewallet/test/ewallet/fetchers/amount_fetcher_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/fetchers/amount_fetcher_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/fetchers/amount_fetcher_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 27.308901 | 129 | 0.545725 |
f7ed5b4528c78d5b114f2c4b761cfac65fe7c7a4 | 1,365 | ex | Elixir | lib/godfist/requests/champion_mastery.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 6 | 2017-07-27T08:23:25.000Z | 2020-01-14T19:17:52.000Z | lib/godfist/requests/champion_mastery.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 7 | 2017-08-26T06:01:16.000Z | 2018-04-03T18:30:44.000Z | lib/godfist/requests/champion_mastery.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 2 | 2017-08-26T05:50:29.000Z | 2018-10-01T20:44:42.000Z | defmodule Godfist.ChampionMastery do
@moduledoc """
Module to get Champion masteries
"""
alias Godfist.LeagueRates
@endpoint "/lol/champion-mastery/v3"
@doc """
Get all champion mastery entries by number of champion points.
## Example
```elixir
iex> Godfist.ChampionMastery.by_summoner(:na, summ... | 23.534483 | 87 | 0.65641 |
f7edd0278f4399c140a87e2f37308deb111eae4e | 679 | ex | Elixir | eSalud/web/views/diagnostic__patient_view.ex | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | eSalud/web/views/diagnostic__patient_view.ex | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | eSalud/web/views/diagnostic__patient_view.ex | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | defmodule ESalud.Diagnostic_PatientView do
use ESalud.Web, :view
def render("index.json", %{diagnostic_patients: diagnostic_patients}) do
%{data: render_many(diagnostic_patients, ESalud.Diagnostic_PatientView, "diagnostic__patient.json")}
end
def render("show.json", %{diagnostic__patient: diagnostic__pati... | 37.722222 | 104 | 0.78056 |
f7eddf401189067580a77900c2c8b2484be0573a | 65 | ex | Elixir | lib/msir/mailer.ex | atilla777/msir | 602df87890c2d49b4a19ce490f271b503484b618 | [
"BSD-2-Clause"
] | null | null | null | lib/msir/mailer.ex | atilla777/msir | 602df87890c2d49b4a19ce490f271b503484b618 | [
"BSD-2-Clause"
] | null | null | null | lib/msir/mailer.ex | atilla777/msir | 602df87890c2d49b4a19ce490f271b503484b618 | [
"BSD-2-Clause"
] | null | null | null | defmodule Msir.Mailer do
use Swoosh.Mailer, otp_app: :msir
end
| 16.25 | 35 | 0.769231 |
f7ede5d6ca9c6bffc41ef818f255c2f42b535bd3 | 1,106 | exs | Elixir | test/bank_stone/operations_test.exs | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 3 | 2020-04-25T11:35:06.000Z | 2021-10-06T19:59:47.000Z | test/bank_stone/operations_test.exs | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 12 | 2019-11-04T11:06:37.000Z | 2019-11-21T11:03:57.000Z | test/bank_stone/operations_test.exs | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 1 | 2020-12-11T07:05:04.000Z | 2020-12-11T07:05:04.000Z | defmodule BankStone.OperationsTest do
use BankStone.DataCase
alias BankStone.Repo
describe "users" do
alias BankStone.Accounts.Account
alias BankStone.Accounts.Operations
def account_fixture do
{:ok, account} = Repo.insert(Account.changeset(%Account{}))
account
end
test "perfor... | 29.891892 | 79 | 0.670886 |
f7edf809ac260bd4bcd1b1de36ca3915a5eb3a31 | 65 | ex | Elixir | lib/birdcage_web/views/layout_view.ex | forest/birdcage | 4c1d851d9ae01ebe94c0366a6e2d932db7435d19 | [
"Apache-2.0"
] | 2 | 2020-10-04T16:07:25.000Z | 2020-12-25T14:28:28.000Z | lib/birdcage_web/views/layout_view.ex | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 11 | 2020-07-10T16:05:17.000Z | 2020-08-25T23:44:34.000Z | lib/birdcage_web/views/layout_view.ex | forest/birdcage | 4c1d851d9ae01ebe94c0366a6e2d932db7435d19 | [
"Apache-2.0"
] | 1 | 2020-08-06T18:56:52.000Z | 2020-08-06T18:56:52.000Z | defmodule BirdcageWeb.LayoutView do
use BirdcageWeb, :view
end
| 16.25 | 35 | 0.815385 |
f7edfadeba56ef1a8695ffb76a3d3b5989a3d386 | 22 | ex | Elixir | lib/elixir/lib/tuple.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | 1 | 2017-10-29T16:37:08.000Z | 2017-10-29T16:37:08.000Z | lib/elixir/lib/tuple.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/tuple.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | defmodule Tuple do
end | 11 | 18 | 0.863636 |
f7ee09249843a23bc4d028225790249afebf48b5 | 21,287 | exs | Elixir | test/operation_test.exs | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | test/operation_test.exs | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | test/operation_test.exs | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | defmodule OperationTest do
use ExUnit.Case, async: true
defmodule Operation do
use Exop.Operation
parameter :param1, type: :integer
parameter :param2, type: :string
def process(params) do
["This is the process/1 params", params]
end
end
@valid_contract [
%{name: :param1, opts: ... | 29.280605 | 138 | 0.614413 |
f7ee13a84c0660b920fd2106baee0b9206b50180 | 663 | ex | Elixir | apps/alerts/lib/banner.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/alerts/lib/banner.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/alerts/lib/banner.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Alerts.Banner do
alias Alerts.Alert
alias Alerts.InformedEntitySet
defstruct id: "",
title: "",
url: nil,
effect: :unknown,
severity: 5,
informed_entity_set: %InformedEntitySet{}
@type individual_route_type :: 1..10
@type route_type_list ... | 26.52 | 61 | 0.591252 |
f7ee1db611559870a4ba8e363fe62af5f8b35fd0 | 344 | exs | Elixir | priv/repo/seeds.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | priv/repo/seeds.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | priv/repo/seeds.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Slax.Repo.insert!(%Slax.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail i... | 28.666667 | 61 | 0.700581 |
f7ee22045a72c35854b806a909aa44cc79d4f92a | 2,444 | ex | Elixir | lib/glimesh/payments/payable.ex | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | lib/glimesh/payments/payable.ex | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | lib/glimesh/payments/payable.ex | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | defmodule Glimesh.Payments.Payable do
@moduledoc """
Generic storage for anytime we're responsible to pay a user.
Designed so we can accept Stripe Checkout Sessions, Stripe Invoices, and in the long-term future Paypal transactions.
"""
use Ecto.Schema
import Ecto.Changeset
schema "payables" do
field... | 25.726316 | 119 | 0.670213 |
f7ee2712e249bf5e66fd885fc9f04a48388d5427 | 751 | ex | Elixir | test/fixtures/gen_stage_persistent_handler.ex | NFIBrokerage/volley | 592dc5cbf7cbcfb8648f779fea433c721f3893c0 | [
"Apache-2.0"
] | 3 | 2021-05-03T16:33:37.000Z | 2021-09-12T08:03:23.000Z | test/fixtures/gen_stage_persistent_handler.ex | NFIBrokerage/volley | 592dc5cbf7cbcfb8648f779fea433c721f3893c0 | [
"Apache-2.0"
] | 1 | 2021-09-08T15:18:58.000Z | 2021-09-08T15:19:50.000Z | test/fixtures/gen_stage_persistent_handler.ex | NFIBrokerage/volley | 592dc5cbf7cbcfb8648f779fea433c721f3893c0 | [
"Apache-2.0"
] | null | null | null | defmodule Volley.GenStagePersistentHandler do
@moduledoc """
A test fixture for consuming persistent subscriptions as a GenStage instead
of a Broadway topology
"""
use GenStage
def start_link(opts) do
GenStage.start_link(__MODULE__, opts)
end
@impl GenStage
def init(opts) do
producer = Keyw... | 20.297297 | 77 | 0.652463 |
f7ee41de33669f468faab88296116629f1f7ab7a | 191 | ex | Elixir | lib/binance/futures/schemas/bid.ex | Fadhil/binance.ex | b4cda870c9fab475e43f2498f8f28dec0353e952 | [
"MIT"
] | null | null | null | lib/binance/futures/schemas/bid.ex | Fadhil/binance.ex | b4cda870c9fab475e43f2498f8f28dec0353e952 | [
"MIT"
] | null | null | null | lib/binance/futures/schemas/bid.ex | Fadhil/binance.ex | b4cda870c9fab475e43f2498f8f28dec0353e952 | [
"MIT"
] | 1 | 2021-02-22T22:56:22.000Z | 2021-02-22T22:56:22.000Z | defmodule Binance.Futures.Schemas.Bid do
defstruct [:price, :quantity]
def new([price, quantity] = _bid) do
%__MODULE__{
price: price,
quantity: quantity
}
end
end
| 17.363636 | 40 | 0.649215 |
f7ee7d74cfcddff5e737996f1e08b2c9b7489e05 | 9,776 | ex | Elixir | lib/mix/lib/mix.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/mix/lib/mix.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/mix/lib/mix.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Mix do
@moduledoc ~S"""
Mix is a build tool that provides tasks for creating, compiling,
and testing Elixir projects, managing its dependencies, and more.
## Mix.Project
The foundation of Mix is a project. A project can be defined by using
`Mix.Project` in a module, usually placed in a file name... | 29.98773 | 102 | 0.674611 |
f7eea9c7777ee2a400f45f98f06589b0f1c01e42 | 1,791 | ex | Elixir | lib/couchdb_adapter/tesla/middleware/couchdb_oauth.ex | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | 2 | 2017-06-14T19:59:03.000Z | 2017-06-26T04:41:56.000Z | lib/couchdb_adapter/tesla/middleware/couchdb_oauth.ex | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | lib/couchdb_adapter/tesla/middleware/couchdb_oauth.ex | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | defmodule Tesla.Middleware.CouchDB.OAuth do
@moduledoc """
Basic authentication middleware
[Wiki on the topic](https://en.wikipedia.org/wiki/Basic_access_authentication)
Example:
defmodule MyClient do
use Tesla
def client(username, password, opts \\ %{}) do
Tesla.build_client ... | 25.585714 | 119 | 0.632607 |
f7eec63c8dd9afc8419e34656eb568fb200b3d9c | 576 | exs | Elixir | mix.exs | lukyanov/broadway_ecto_job | 686db1cd97d7fb88ca9dc8a0c4e050390286598c | [
"MIT"
] | null | null | null | mix.exs | lukyanov/broadway_ecto_job | 686db1cd97d7fb88ca9dc8a0c4e050390286598c | [
"MIT"
] | null | null | null | mix.exs | lukyanov/broadway_ecto_job | 686db1cd97d7fb88ca9dc8a0c4e050390286598c | [
"MIT"
] | null | null | null | defmodule BroadwayEctoJob.Producer.MixProject do
use Mix.Project
def project do
[
app: :broadway_ecto_job,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def applicati... | 19.2 | 59 | 0.569444 |
f7eee7a6efe14cc9c12c7098f1a8ff1147641b65 | 6,263 | ex | Elixir | lib/lambdapad/generate.ex | Coruja-Digital/lambdapad | 28a171f1218396ef4ab1837584de79f2054665c8 | [
"Apache-2.0"
] | null | null | null | lib/lambdapad/generate.ex | Coruja-Digital/lambdapad | 28a171f1218396ef4ab1837584de79f2054665c8 | [
"Apache-2.0"
] | null | null | null | lib/lambdapad/generate.ex | Coruja-Digital/lambdapad | 28a171f1218396ef4ab1837584de79f2054665c8 | [
"Apache-2.0"
] | null | null | null | defmodule Lambdapad.Generate do
alias Lambdapad.Config
def resolve_uri(config, name, funct_or_uri, vars, index \\ nil)
def resolve_uri(_config, _name, funct, vars, index) when is_function(funct) do
funct.(index, vars)
end
def resolve_uri(config, name, uri, vars, _index) when is_binary(uri) do
uri_m... | 33.854054 | 112 | 0.642025 |
f7eef72b02415b984069e2ba356fb7855b3051d9 | 97 | ex | Elixir | apps/api_web/lib/api_web/controllers/exceptions.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/controllers/exceptions.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/controllers/exceptions.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | 1 | 2019-09-09T20:40:13.000Z | 2019-09-09T20:40:13.000Z | defimpl Plug.Exception, for: ApiAccounts.NoResultsError do
def status(_expection), do: 404
end
| 24.25 | 58 | 0.793814 |
f7ef147dd0b863a607f74dc244131754a44628be | 692 | ex | Elixir | lib/wabanex/users/get.ex | daniel-leal/wabanex | c0666de8f663c59ff3861331db5331e143d94b41 | [
"RSA-MD"
] | null | null | null | lib/wabanex/users/get.ex | daniel-leal/wabanex | c0666de8f663c59ff3861331db5331e143d94b41 | [
"RSA-MD"
] | null | null | null | lib/wabanex/users/get.ex | daniel-leal/wabanex | c0666de8f663c59ff3861331db5331e143d94b41 | [
"RSA-MD"
] | null | null | null | defmodule Wabanex.Users.Get do
import Ecto.Query
alias Ecto.UUID
alias Wabanex.{Repo, Training, User}
def call(id) do
id
|> UUID.cast()
|> handle_response()
end
defp handle_response(:error) do
{:error, "Invalid UUID"}
end
defp handle_response({:ok, uuid}) do
case Repo.get(User, uu... | 20.969697 | 76 | 0.640173 |
f7ef3d8f39b59c1e78494003a904e5925289d821 | 11,965 | exs | Elixir | test/ueberauth_adfs/adfs_test.exs | fatboypunk/ueberauth_adfs | 8ab4a4b604370599a48dd10fbc10a2546a5caa97 | [
"MIT"
] | null | null | null | test/ueberauth_adfs/adfs_test.exs | fatboypunk/ueberauth_adfs | 8ab4a4b604370599a48dd10fbc10a2546a5caa97 | [
"MIT"
] | null | null | null | test/ueberauth_adfs/adfs_test.exs | fatboypunk/ueberauth_adfs | 8ab4a4b604370599a48dd10fbc10a2546a5caa97 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.ADFSTest do
use ExUnit.Case
use Ueberauth.Strategy
# Load ADFS Test Handler
Code.load_file("test/ueberauth_adfs/adfs_test_handler.exs")
import Mock
alias Ueberauth.Strategy.ADFS
@env_values adfs_url: "https://example.com",
adfs_metadata_url: "https://example.... | 33.991477 | 122 | 0.569745 |
f7ef4c12f91a404236015426b4b399152b3432ee | 1,819 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1/model/location_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1/model/location_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/memcache/lib/google_api/memcache/v1/model/location_metadata.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... | 37.122449 | 334 | 0.736668 |
f7ef6f509f999596a4abaa37faa5293467edd118 | 1,567 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/comment_actor_client_specific_actor_info_youtube_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/lib/google_api/plus/v1/model/comment_actor_client_specific_actor_info_youtube_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/plus/lib/google_api/plus/v1/model/comment_actor_client_specific_actor_info_youtube_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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... | 30.134615 | 104 | 0.747288 |
f7ef737a6a74f9973d824cdc28d45a8647e960e5 | 1,385 | ex | Elixir | lib/checker_mal/application.ex | Hiyori-API/checker-mal | c52f6e8a248ba160ffebc2c9369a933fc8fc4499 | [
"MIT"
] | 10 | 2020-06-12T18:36:58.000Z | 2022-02-20T11:07:49.000Z | lib/checker_mal/application.ex | Hiyori-API/checker-mal | c52f6e8a248ba160ffebc2c9369a933fc8fc4499 | [
"MIT"
] | 7 | 2020-05-08T06:03:08.000Z | 2022-01-24T02:57:16.000Z | lib/checker_mal/application.ex | Hiyori-API/checker-mal | c52f6e8a248ba160ffebc2c9369a933fc8fc4499 | [
"MIT"
] | 1 | 2020-12-03T03:49:27.000Z | 2020-12-03T03:49:27.000Z | defmodule CheckerMal.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
defp unapproved_html() do
if Application.get_env(:checker_mal, :unapproved_html_enabled, false) do
[
CheckerMal.UnapprovedHtml.En... | 27.156863 | 76 | 0.662094 |
f7efe29f69b4bf4f68d279e0aa6ebcc8d776ce03 | 15,221 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.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... | 38.436869 | 221 | 0.678602 |
f7f00adedfa4931a73254bde34dbd825f6dff11b | 873 | ex | Elixir | lib/rotational_cipher.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | lib/rotational_cipher.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | lib/rotational_cipher.ex | NullChronos/exercism | 1a30fa34e780303582c562e452534b9b45944f77 | [
"MIT"
] | null | null | null | defmodule RotationalCipher do
@doc """
Given a plaintext and amount to shift by, return a rotated string.
Example:
iex> RotationalCipher.rotate("Attack at dawn", 13)
"Nggnpx ng qnja"
"""
@spec rotate(text :: String.t(), shift :: integer) :: String.t()
def rotate(text, shift) do
chars = String.codep... | 24.25 | 68 | 0.646048 |
f7f00d4e120e06e080c8ce1933e53df199111710 | 2,470 | ex | Elixir | lib/moneybirx/client.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2019-10-16T11:33:39.000Z | 2019-10-16T11:33:39.000Z | lib/moneybirx/client.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | null | null | null | lib/moneybirx/client.ex | Codaisseur/moneybirx | acf552e1b912c77a919a5563d37c51e0db67032b | [
"MIT"
] | 1 | 2021-07-27T17:54:20.000Z | 2021-07-27T17:54:20.000Z | defmodule Moneybirx.Client do
@moduledoc false
defmacro __using__(_) do
quote do
use HTTPoison.Base
@content_type "application/json"
@version "v2"
def endpoint, do: Application.get_env(:moneybirx, :endpoint, "https://moneybird.com/api/v2")
def process_url(path) do
if pat... | 22.87037 | 98 | 0.575709 |
f7f0229b6c2e6d4d9206c016fb254e3c6315b5b5 | 1,445 | ex | Elixir | lib/koans/17_agents.ex | CuriousCurmudgeon/elixir-koans | d085a59c55495623268cd2051d8e53d2ebd88b96 | [
"MIT"
] | null | null | null | lib/koans/17_agents.ex | CuriousCurmudgeon/elixir-koans | d085a59c55495623268cd2051d8e53d2ebd88b96 | [
"MIT"
] | null | null | null | lib/koans/17_agents.ex | CuriousCurmudgeon/elixir-koans | d085a59c55495623268cd2051d8e53d2ebd88b96 | [
"MIT"
] | null | null | null | defmodule Agents do
use Koans
@intro "Agents"
koan "Agents maintain state, so you can ask them about it" do
{:ok, pid} = Agent.start_link(fn -> "Hi there" end)
# & &1 == fn state -> state end (Programming Elixir calls this the "identity function" on page 257)
# Also, 1.10 added Function.identity/1
... | 29.489796 | 103 | 0.641522 |
f7f0348a7a7367cbfb750c3f28f3ab445ed86527 | 1,973 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/batch_create_sessions_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/batch_create_sessions_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/spanner/lib/google_api/spanner/v1/model/batch_create_sessions_request.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... | 39.46 | 339 | 0.750634 |
f7f03d511e26761e8c2e6c3ec2eaedb01f54d369 | 159 | ex | Elixir | lib/test/slack.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | lib/test/slack.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | lib/test/slack.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | defmodule Test.Slack do
def notify(_post, _developer, _channel, _url) do
:ok
end
def notify_of_awards(_post, _developer, _url) do
:ok
end
end
| 15.9 | 50 | 0.698113 |
f7f03dcd004ffcf73a7a8bd49e6fc1bb1d457382 | 1,584 | ex | Elixir | test/support/data_case.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | null | null | null | test/support/data_case.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | 6 | 2021-03-20T17:24:05.000Z | 2021-03-20T17:41:19.000Z | test/support/data_case.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | null | null | null | defmodule Paushal.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to t... | 27.789474 | 77 | 0.692551 |
f7f05c945f11bf9d0c9aa2e022dc76beac49b863 | 108 | exs | Elixir | config/test.exs | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | 15 | 2017-01-31T14:18:27.000Z | 2021-05-24T18:25:01.000Z | config/test.exs | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | 10 | 2016-09-18T23:55:28.000Z | 2016-09-30T06:35:10.000Z | config/test.exs | dhirajbajaj/link_preview | b500c27b0244ec64563cae80a078c94adb12dec8 | [
"Apache-2.0"
] | 11 | 2018-02-20T04:36:41.000Z | 2022-03-02T13:16:54.000Z | use Mix.Config
config :httparrot,
http_port: 8888,
https_port: 8484,
ssl: true,
unix_socket: false
| 13.5 | 20 | 0.712963 |
f7f075e095c602502b70a5c3738e3b4c510903b2 | 6,554 | ex | Elixir | lib/subscription.ex | goravbhootra/braintree-elixir | 53c10216125c13c05a19edf1dc1c98a818c46e09 | [
"MIT"
] | null | null | null | lib/subscription.ex | goravbhootra/braintree-elixir | 53c10216125c13c05a19edf1dc1c98a818c46e09 | [
"MIT"
] | null | null | null | lib/subscription.ex | goravbhootra/braintree-elixir | 53c10216125c13c05a19edf1dc1c98a818c46e09 | [
"MIT"
] | null | null | null | defmodule Braintree.Subscription do
@moduledoc """
Manage customer subscriptions to recurring billing plans.
For additional reference see:
https://developers.braintreepayments.com/reference/request/subscription/create/ruby
"""
use Braintree.Construction
alias Braintree.{HTTP, Transaction, AddOn, Search... | 31.815534 | 93 | 0.611993 |
f7f096f0422c210755f551683a3526c916946527 | 1,029 | ex | Elixir | lib/oauth_xyz/application.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 2 | 2020-04-22T13:22:25.000Z | 2020-12-01T12:01:30.000Z | lib/oauth_xyz/application.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 3 | 2019-12-05T01:32:09.000Z | 2019-12-09T01:15:32.000Z | lib/oauth_xyz/application.ex | ritou/elixir-oauth-xyz-web | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | null | null | null | defmodule OAuthXYZ.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.15625 | 86 | 0.716229 |
f7f0a6532babd01acc427ed1974fb283acbb525a | 437 | ex | Elixir | lib/release_tasks.ex | BenBera/littleChatWebrtc | 91850323d0e60c4049a84ff8985b09856b356016 | [
"MIT"
] | 166 | 2020-07-15T14:47:19.000Z | 2022-03-25T03:57:35.000Z | lib/release_tasks.ex | BenBera/littleChatWebrtc | 91850323d0e60c4049a84ff8985b09856b356016 | [
"MIT"
] | 12 | 2020-07-01T23:32:47.000Z | 2021-03-18T21:21:28.000Z | lib/release_tasks.ex | BenBera/littleChatWebrtc | 91850323d0e60c4049a84ff8985b09856b356016 | [
"MIT"
] | 21 | 2020-07-15T14:59:39.000Z | 2022-03-20T21:05:16.000Z | defmodule Littlechat.ReleaseTasks do
@app :littlechat
def migrate do
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
end
def rollback(repo, version) do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :down, to:... | 23 | 91 | 0.652174 |
f7f0c7ff2392c7c0c2000d9cc77348bb255704e2 | 1,276 | exs | Elixir | 2017/elixir/day6b.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day6b.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day6b.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | defmodule Day6 do
def solve(banks) do
recur(banks, %{}, 0, length(banks))
end
defp recur(banks, seen_banks, steps, size) do
if Map.has_key?(seen_banks, banks) do
steps - seen_banks[banks]
else
seen_banks = Map.put(seen_banks, banks, steps)
{index, value} = find_max(banks)
ban... | 21.627119 | 59 | 0.569749 |
f7f0dd7ce3dbb70d79d28b75cf47ed20ffd3a0dd | 1,622 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/feature.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/feature.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/feature.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... | 32.44 | 138 | 0.721332 |
f7f0e0f150bab3aca4658bb1e5268826eae31d35 | 1,345 | ex | Elixir | release/elixir/drone_app/lib/drone_app_supervisor.ex | o-kurnenkov/otp_basis | 9717d73151a2f898d9c52485df91452bbb46548a | [
"MIT"
] | 1 | 2016-11-01T18:03:26.000Z | 2016-11-01T18:03:26.000Z | release/elixir/drone_app/lib/drone_app_supervisor.ex | o-kurnenkov/otp_basis | 9717d73151a2f898d9c52485df91452bbb46548a | [
"MIT"
] | null | null | null | release/elixir/drone_app/lib/drone_app_supervisor.ex | o-kurnenkov/otp_basis | 9717d73151a2f898d9c52485df91452bbb46548a | [
"MIT"
] | null | null | null | defmodule DroneApp.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [], name: :drone_supervisor)
end
def start_child(drone_name) do
Supervisor.start_child(:drone_supervisor, [drone_name])
end
def which_children do
Supervisor.which_children(:drone_supervisor)
... | 24.907407 | 66 | 0.699628 |
f7f0fd877a402b9fd2d57e604a025feec01e6fd5 | 1,884 | exs | Elixir | config/prod.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | null | null | null | config/prod.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | 2 | 2022-02-17T21:25:57.000Z | 2022-02-17T21:33:15.000Z | config/prod.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.230769 | 66 | 0.712845 |
f7f10dd2fac6f1bf0e4c30a16e3d367c12992b52 | 1,125 | exs | Elixir | config/config.exs | HallowXIII/ymserver | 8261bc5f773505ea6a8688b1f68f3fc741b055ad | [
"MIT"
] | null | null | null | config/config.exs | HallowXIII/ymserver | 8261bc5f773505ea6a8688b1f68f3fc741b055ad | [
"MIT"
] | null | null | null | config/config.exs | HallowXIII/ymserver | 8261bc5f773505ea6a8688b1f68f3fc741b055ad | [
"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.290323 | 73 | 0.752 |
f7f1256ea9260990a3c960fe482db1561db82b3f | 6,727 | ex | Elixir | lib/elsa/supervisor.ex | keathley/elsa | a0518b75e4dedcdd91e6e4e1ed15292868035fc5 | [
"Apache-2.0"
] | null | null | null | lib/elsa/supervisor.ex | keathley/elsa | a0518b75e4dedcdd91e6e4e1ed15292868035fc5 | [
"Apache-2.0"
] | null | null | null | lib/elsa/supervisor.ex | keathley/elsa | a0518b75e4dedcdd91e6e4e1ed15292868035fc5 | [
"Apache-2.0"
] | null | null | null | defmodule Elsa.Supervisor do
@moduledoc """
Top-level supervisor that orchestrates all other components
of the Elsa library. Allows for a single point of integration
into your application supervision tree and configuration by way
of a series of nested keyword lists
Components not needed by a running applic... | 32.497585 | 128 | 0.687379 |
f7f13159ecb3796e83213a66a987c684201fdbd9 | 1,118 | ex | Elixir | web/models/tag.ex | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/web/models/tag.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/web/models/tag.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.Tag do
use Artour.Web, :model
import Artour.ModelHelpers.SlugValidator, only: [validate_slug: 2]
schema "tags" do
field :name, :string
field :slug, :string
many_to_many :posts, Artour.Post, join_through: "post_tags", on_delete: :delete_all
has_many :post_tags, Artour.PostTag
... | 22.816327 | 87 | 0.65653 |
f7f144e0d593b8e381f74bc8c6c03956ce53a5c1 | 1,529 | ex | Elixir | lib/zcashex/client.ex | nighthawk-apps/zcashex | dca51cca3df69586016b24277614565514e1b8e2 | [
"Apache-2.0"
] | 1 | 2021-05-19T05:56:18.000Z | 2021-05-19T05:56:18.000Z | lib/zcashex/client.ex | nighthawk-apps/zcashex | dca51cca3df69586016b24277614565514e1b8e2 | [
"Apache-2.0"
] | null | null | null | lib/zcashex/client.ex | nighthawk-apps/zcashex | dca51cca3df69586016b24277614565514e1b8e2 | [
"Apache-2.0"
] | null | null | null | defmodule Zcashex.Client do
@moduledoc """
Client that communicates with the Zcash node.
"""
use GenServer
require Logger
def init(state) do
{:ok, state}
end
@doc """
Calls a given Zcashd's JSON-RPC endpoint with params
"""
def handle_call({:call_endpoint, method, params}, _from, state) do
... | 27.303571 | 93 | 0.548725 |
f7f16e8b7ecc48788fbf2f477662021dec3d4785 | 764 | ex | Elixir | code examples/example-15-26.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/example-15-26.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/example-15-26.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | iex(1)> s = %Stewtype{}
%Stewtype{ingredients: [], stewtype: :veg}
iex(2)> sb = %{s|stewtype: :beef}
%Stewtype{ingredients: [], stewtype: :beef}
iex(3)> su = %{s|stewtype: :chicken}
%Stewtype{ingredients: [], stewtype: :chicken}
iex(4)> VegStew.print(s)
{:ok, "It's a vegetable stew"}
iex(5)> sb = %{s|stewtype: :beef}
%... | 30.56 | 46 | 0.65445 |
f7f16eda68e74c74e163fe998620797546e4dff7 | 788 | ex | Elixir | lib/ash/resource/identity.ex | sobolevn/ash | 5eca8379377a633100ca14c13c6994fa61c8f7ea | [
"MIT"
] | null | null | null | lib/ash/resource/identity.ex | sobolevn/ash | 5eca8379377a633100ca14c13c6994fa61c8f7ea | [
"MIT"
] | null | null | null | lib/ash/resource/identity.ex | sobolevn/ash | 5eca8379377a633100ca14c13c6994fa61c8f7ea | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Identity do
@moduledoc "Represents a unique constraint on a resource"
defstruct [:name, :keys]
@schema [
name: [
type: :atom,
required: true,
doc:
"The name of the identity. Used by extensions to target specific identities for fetching single instances of a re... | 23.176471 | 128 | 0.623096 |
f7f175525d3caf18a067deda7a6ec8eebcc95ede | 2,200 | ex | Elixir | lib/ecto_mysql_extras/queries/long_running_queries.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | null | null | null | lib/ecto_mysql_extras/queries/long_running_queries.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | 9 | 2021-10-13T08:31:33.000Z | 2021-12-24T13:19:09.000Z | lib/ecto_mysql_extras/queries/long_running_queries.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | 1 | 2021-12-29T16:52:00.000Z | 2021-12-29T16:52:00.000Z | defmodule EctoMySQLExtras.LongRunningQueries do
@moduledoc """
Query all long running queries.
Data is retrieved from the `information_schema` database and the `plugins` table.
The `:threshold` argument is in milliseconds. The duration for MySQL is displayed
in seconds, for MariaDB this is in millieseconds.
... | 26.829268 | 83 | 0.545455 |
f7f1b98b0d796862f23a7dc2e0d6f3832f086329 | 2,819 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/transaction_request.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_db/lib/ewallet_db/transaction_request.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/transaction_request.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletDB.TransactionRequest do
@moduledoc """
Ecto Schema representing transaction requests.
"""
use Ecto.Schema
import Ecto.Changeset
import EWalletDB.Validator
alias Ecto.UUID
alias EWalletDB.{TransactionRequest, TransactionRequestConsumption,
Repo, MintedToken, User, Bal... | 31.322222 | 78 | 0.600568 |
f7f2232375a4ad3f1b7cbd1773353b62f7c8ad2e | 1,282 | exs | Elixir | examples/friends/config/config.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | examples/friends/config/config.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | examples/friends/config/config.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :friends, Friends.Repo,
adapter: Ecto.Adapters.Postgres,
database: "friends_repo",
hostname: "localhost"
config :friends, ecto_repos: [Friends.Repo]
# This configurat... | 32.871795 | 73 | 0.74961 |
f7f2389ff314f6a794fd1c5903e05dc87eaf75bc | 1,112 | ex | Elixir | lib/ledger.ex | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | lib/ledger.ex | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | lib/ledger.ex | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | defmodule UltraDark.Ledger do
alias UltraDark.Blockchain.Block
alias UltraDark.Store
require Exleveldb
@store_dir ".chaindata"
def initialize do
Store.initialize(@store_dir)
end
@doc """
Add a block to leveldb, indexing it by its hash (this is the most likely piece of data to be unique)
"""
... | 23.166667 | 104 | 0.653777 |
f7f248783f2bb8c6f366237eda9c352725776948 | 278 | ex | Elixir | example/lib/api.ex | koudelka/behaves_like | 516405e05aadd13b1f927a99f11d5e2c62dcb9f6 | [
"MIT"
] | 6 | 2018-06-06T23:45:45.000Z | 2020-01-13T20:34:14.000Z | example/lib/api.ex | koudelka/behaves_like | 516405e05aadd13b1f927a99f11d5e2c62dcb9f6 | [
"MIT"
] | null | null | null | example/lib/api.ex | koudelka/behaves_like | 516405e05aadd13b1f927a99f11d5e2c62dcb9f6 | [
"MIT"
] | 2 | 2018-07-03T23:31:40.000Z | 2018-11-06T20:55:35.000Z | defmodule Example.API do
import BehavesLike, only: [spec_and_callback: 1]
@type id :: binary()
@type result :: Example.Type.t()
@type error :: any()
spec_and_callback get(id) :: {:ok, result} | {:error, error}
def get(id) do
Example.Backend.get(id)
end
end
| 19.857143 | 62 | 0.651079 |
f7f24c5b0535dda5586a1ed06d98cf07c5c5f5dc | 1,694 | ex | Elixir | lib/2021/6.ex | ballpointcarrot/advent-of-code-2021 | a1adde8a13069efedfc7c190d6c71b06c2d15173 | [
"MIT"
] | null | null | null | lib/2021/6.ex | ballpointcarrot/advent-of-code-2021 | a1adde8a13069efedfc7c190d6c71b06c2d15173 | [
"MIT"
] | null | null | null | lib/2021/6.ex | ballpointcarrot/advent-of-code-2021 | a1adde8a13069efedfc7c190d6c71b06c2d15173 | [
"MIT"
] | null | null | null | import AOC
aoc 2021, 6 do
def next_generation(fish) do
next_fish =
Enum.map(fish, fn f ->
case f do
0 -> 6
_ -> f - 1
end
end)
number_of_new_fish = Enum.count(fish, &(&1 == 0))
# thanks, StackOverflow: https://stackoverflow.com/a/41351683
next_fish ++ ... | 23.527778 | 66 | 0.567296 |
f7f250099d658ba4108ebf23f482ae90734cb6cb | 71 | exs | Elixir | pattern_matching_and_state_machines/test/test_helper.exs | StoiximanServices/blog | b164ae5e8fb4701ee40925aca9aef2297b80be95 | [
"MIT"
] | 10 | 2016-11-28T03:38:36.000Z | 2021-08-24T10:38:38.000Z | pattern_matching_and_state_machines/test/test_helper.exs | StoiximanServices/blog | b164ae5e8fb4701ee40925aca9aef2297b80be95 | [
"MIT"
] | null | null | null | pattern_matching_and_state_machines/test/test_helper.exs | StoiximanServices/blog | b164ae5e8fb4701ee40925aca9aef2297b80be95 | [
"MIT"
] | 3 | 2018-07-11T08:31:41.000Z | 2019-01-24T18:16:44.000Z | ExUnit.start()
Code.require_file "string_formatter_tests.ex", __DIR__
| 17.75 | 54 | 0.816901 |
f7f25c9bc0ae4dcf50b5ccb9b3166b841f451650 | 2,094 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__label_segment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__label_segment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__label_segment.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.9 | 179 | 0.751671 |
f7f26e67907af79c9cdcec5cc3904248b2ffaacd | 467 | exs | Elixir | config/test.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 5 | 2019-07-27T14:57:38.000Z | 2020-11-01T00:26:32.000Z | config/test.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 6 | 2019-07-29T03:45:23.000Z | 2021-05-10T03:49:39.000Z | config/test.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 2 | 2019-07-29T02:17:02.000Z | 2020-02-17T17:59:05.000Z | use Mix.Config
# Configure your database
config :live_dendron, LiveDendron.Repo,
username: "postgres",
password: "",
database: "live_dendron_test",
hostname: "db",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :live_... | 24.578947 | 56 | 0.736617 |
f7f28e29b739f1a9cebf025f8eacc43f852c831a | 29,579 | ex | Elixir | lib/logger/lib/logger.ex | tmikeschu/elixir | ae108c110af3220cd4f729ac25edb06f0f81c884 | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger.ex | tmikeschu/elixir | ae108c110af3220cd4f729ac25edb06f0f81c884 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/logger/lib/logger.ex | tmikeschu/elixir | ae108c110af3220cd4f729ac25edb06f0f81c884 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Logger do
@moduledoc ~S"""
A logger for Elixir applications.
It includes many features:
* Provides debug, info, warn, and error levels.
* Supports multiple backends which are automatically
supervised when plugged into `Logger`.
* Formats and truncates messages on the client
t... | 33.460407 | 101 | 0.68312 |
f7f28f8d6f06e69a0c8c0059520123c4ef5fc2c2 | 420 | ex | Elixir | lib/phoenix_example/b_table_context/b_table.ex | getong/phoenix_example | cec4ba1ab2d601a3d4c709d3b77b1284f28ae36b | [
"Apache-2.0"
] | null | null | null | lib/phoenix_example/b_table_context/b_table.ex | getong/phoenix_example | cec4ba1ab2d601a3d4c709d3b77b1284f28ae36b | [
"Apache-2.0"
] | 6 | 2020-07-20T14:24:28.000Z | 2022-03-29T02:25:55.000Z | lib/phoenix_example/b_table_context/b_table.ex | getong/phoenix_example | cec4ba1ab2d601a3d4c709d3b77b1284f28ae36b | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixExample.BTableContext.BTable do
@moduledoc """
The ATable schema
"""
use Ecto.Schema
import Ecto.Changeset
schema "b_table" do
field :age, :integer
field :name, :string
# timestamps()
timestamps(type: :utc_datetime_usec)
end
@doc false
def changeset(b_table, attrs)... | 17.5 | 48 | 0.657143 |
f7f29abda0f8c2c841e76fce7e5ec5639d693a46 | 708 | ex | Elixir | lib/mastani_server/accounts/purchase.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/purchase.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/accounts/purchase.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Accounts.Purchase do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
alias MastaniServer.Accounts.User
@required_fields ~w(user_id)a
@optional_fields ~w(theme community_chart brainwash_free)a
@type t :: %Purchase{}
schema "purchases" do
belongs_to... | 22.83871 | 60 | 0.720339 |
f7f29fe8490d119b384c4b3ebe5a92fdd78f8853 | 606 | exs | Elixir | test/absinthe/integration/execution/aliases/with_errors_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | test/absinthe/integration/execution/aliases/with_errors_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2019-03-07T00:26:03.000Z | 2019-08-19T17:30:30.000Z | test/absinthe/integration/execution/aliases/with_errors_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-01-18T20:49:03.000Z | 2019-01-18T20:49:03.000Z | defmodule Elixir.Absinthe.Integration.Execution.Aliases.WithErrorsTest do
use Absinthe.Case, async: true
@query """
mutation { foo: failingThing(type: WITH_CODE) { name } }
"""
test "scenario #1" do
assert {:ok,
%{
data: %{"foo" => nil},
errors: [
... | 26.347826 | 80 | 0.465347 |
f7f2c5b9b058edb5f57c3f6c3d6c6d72604ad26c | 476 | ex | Elixir | priv/templates/autox.infer.models/model.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | priv/templates/autox.infer.models/model.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | priv/templates/autox.infer.models/model.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule <%= base %>.<%= model %> do
use <%= base %>.Web, :model
schema "<%= collection_name %>" do
timestamps
end
@create_fields ~w()
@update_fields @create_fields
@optional_fields ~w()
def create_changeset(model, params\\:empty) do
model
|> cast(params, @create_fields, @optional_fields)... | 19.04 | 53 | 0.661765 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.