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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a6a5580ceb47b4ffd262cb31701fd1c0bb3bcf2 | 862 | exs | Elixir | priv/repo/migrations/20211004192852_create_intercom_authorizations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20211004192852_create_intercom_authorizations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20211004192852_create_intercom_authorizations.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.CreateIntercomAuthorizations do
use Ecto.Migration
def change do
create table(:intercom_authorizations, primary_key: false) do
add(:id, :binary_id, primary_key: true)
add(:access_token, :string, null: false)
add(:token_type, :string)
add(:scope, :string... | 26.121212 | 87 | 0.663573 |
7a6ac6adfbb5a56dabec1cd476791a5a29480b99 | 456 | ex | Elixir | apps/gitgud_web/lib/gitgud_web/views/maintainer_view.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web/views/maintainer_view.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web/views/maintainer_view.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | defmodule GitGud.Web.MaintainerView do
@moduledoc false
use GitGud.Web, :view
alias GitGud.Maintainer
@spec permission_select(Phoenix.HTML.Form.t, atom, Maintainer.t) :: binary
def permission_select(form, key, maintainer) do
select(form, key, ["admin", "read", "write"], selected: maintainer.permission)
... | 30.4 | 89 | 0.708333 |
7a6b2fd4d8aa05cadcc24cc9ba60f5fca3a445cc | 162 | ex | Elixir | lib/afk/scancode/protocol.ex | nerves-keyboard/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 4 | 2020-10-31T04:55:04.000Z | 2021-10-11T21:44:54.000Z | lib/afk/scancode/protocol.ex | doughsay/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 46 | 2019-12-13T05:46:08.000Z | 2020-10-29T13:07:40.000Z | lib/afk/scancode/protocol.ex | nerves-keyboard/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 1 | 2020-01-02T13:35:03.000Z | 2020-01-02T13:35:03.000Z | defprotocol AFK.Scancode.Protocol do
@moduledoc false
@spec scancode(keycode :: AFK.Keycode.with_scancode()) :: AFK.Scancode.t()
def scancode(keycode)
end
| 23.142857 | 76 | 0.746914 |
7a6b4c37dcbddc74b5fedf4330c845a955d64f7e | 358 | exs | Elixir | test/real_world_web/controllers/tag_controller_test.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | 1 | 2019-09-28T05:50:46.000Z | 2019-09-28T05:50:46.000Z | test/real_world_web/controllers/tag_controller_test.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | test/real_world_web/controllers/tag_controller_test.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | defmodule RealWorldWeb.TagControllerTest do
use RealWorldWeb.ConnCase
import RealWorld.Factory
setup do
user = insert(:user)
insert(:article, author: user)
:ok
end
test "lists all entries on index", %{conn: conn} do
conn = get conn, tag_path(conn, :index)
assert json_response(conn, 200)[... | 22.375 | 63 | 0.675978 |
7a6b5073827b3809b0da329485ba33dc396df6f1 | 459 | exs | Elixir | test/resource_pool_web/views/error_view_test.exs | code-mancers/resource-pool | 83610857b63ec3d0b5e215f6ac63e12ccb99c2f1 | [
"MIT"
] | null | null | null | test/resource_pool_web/views/error_view_test.exs | code-mancers/resource-pool | 83610857b63ec3d0b5e215f6ac63e12ccb99c2f1 | [
"MIT"
] | null | null | null | test/resource_pool_web/views/error_view_test.exs | code-mancers/resource-pool | 83610857b63ec3d0b5e215f6ac63e12ccb99c2f1 | [
"MIT"
] | null | null | null | defmodule ResourcePoolWeb.ErrorViewTest do
use ResourcePoolWeb.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(ResourcePoolWeb.ErrorView, "404.html", []) ==
"Not Found"
end
test "r... | 27 | 73 | 0.71024 |
7a6b54627bb9d7112ef29507a17b22e145912098 | 5,965 | ex | Elixir | lib/surface/compiler/parse_tree_translator.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | 1 | 2021-06-04T20:46:52.000Z | 2021-06-04T20:46:52.000Z | lib/surface/compiler/parse_tree_translator.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | lib/surface/compiler/parse_tree_translator.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.ParseTreeTranslator do
@behaviour Surface.Compiler.NodeTranslator
alias Surface.IOHelper
alias Surface.Compiler.Helpers
def handle_init(state), do: state
def handle_expression(expression, meta, state) do
{{:expr, expression, to_meta(meta)}, state}
end
def handle_comment(... | 26.277533 | 93 | 0.62917 |
7a6b9ea5a110a3500c357b41bc62f4dfb4dc73a9 | 382 | exs | Elixir | priv/repo/migrations/20210316002511_create_user_table.exs | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | priv/repo/migrations/20210316002511_create_user_table.exs | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | priv/repo/migrations/20210316002511_create_user_table.exs | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | defmodule Phxpay.Repo.Migrations.CreateUserTable do
use Ecto.Migration
def change do
create table :users do
add :name, :string
add :age, :integer
add :email, :string
add :password_hash, :string
add :nickname, :string
timestamps()
end
create unique_index(:users, [:e... | 20.105263 | 51 | 0.649215 |
7a6bb59201b5df5b74ab444a6bd1266d7fc19f29 | 3,203 | ex | Elixir | lib/chat_api/hubspot/client.ex | lucasavila00/papercups | 326dab99008d2d6e01db351aa6252b3fef6ce4d8 | [
"MIT"
] | null | null | null | lib/chat_api/hubspot/client.ex | lucasavila00/papercups | 326dab99008d2d6e01db351aa6252b3fef6ce4d8 | [
"MIT"
] | null | null | null | lib/chat_api/hubspot/client.ex | lucasavila00/papercups | 326dab99008d2d6e01db351aa6252b3fef6ce4d8 | [
"MIT"
] | null | null | null | defmodule ChatApi.Hubspot.Client do
@moduledoc """
A module to handle interacting with the HubSpot API
"""
require Logger
use Tesla
plug(Tesla.Middleware.BaseUrl, "https://api.hubapi.com")
plug(Tesla.Middleware.Headers, [
{"content-type", "application/json; charset=utf-8"}
])
plug(Tesla.Middl... | 25.420635 | 77 | 0.602248 |
7a6bb927d72b544976371b69a929ebc475afb3e6 | 2,371 | exs | Elixir | test/unpoly_test.exs | yrashk/ex_unpoly | f4c736799fa67eae476a31b9bfb9eb844c02b369 | [
"MIT"
] | 1 | 2021-01-31T13:39:00.000Z | 2021-01-31T13:39:00.000Z | test/unpoly_test.exs | yrashk/ex_unpoly | f4c736799fa67eae476a31b9bfb9eb844c02b369 | [
"MIT"
] | null | null | null | test/unpoly_test.exs | yrashk/ex_unpoly | f4c736799fa67eae476a31b9bfb9eb844c02b369 | [
"MIT"
] | null | null | null | defmodule UnpolyTest do
use ExUnit.Case, async: true
use Plug.Test
describe "target/1" do
test "returns selector from header" do
target =
conn(:get, "/foo")
|> put_req_header("x-up-target", ".css.selector")
|> Unpoly.target()
assert ".css.selector" = target
end
t... | 26.640449 | 93 | 0.602699 |
7a6bb9d6b5a8422e828a9878c7871badcc4437ef | 1,123 | exs | Elixir | calculator/config/config.exs | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | 6 | 2017-04-17T22:19:53.000Z | 2019-05-14T09:49:22.000Z | calculator/config/config.exs | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | null | null | null | calculator/config/config.exs | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"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.225806 | 73 | 0.752449 |
7a6bc5a321a8e401a84688fcf8835ffc793691b4 | 2,145 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/dynamic_segment.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/dynamic_segment.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/dynamic_segment.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.722222 | 122 | 0.758042 |
7a6bc9a42354899ba7d33decffb03ff989455ebb | 604 | ex | Elixir | lib/ex_zample/sequence.ex | ulissesalmeida/ex_zample | b177bdad8469ad7743bc247e9983bb6e65d1ac99 | [
"MIT"
] | 9 | 2020-02-29T10:44:06.000Z | 2020-11-19T21:49:02.000Z | lib/ex_zample/sequence.ex | ulissesalmeida/ex_zample | b177bdad8469ad7743bc247e9983bb6e65d1ac99 | [
"MIT"
] | 5 | 2020-03-28T15:41:06.000Z | 2020-10-07T08:31:40.000Z | lib/ex_zample/sequence.ex | ulissesalmeida/ex_zample | b177bdad8469ad7743bc247e9983bb6e65d1ac99 | [
"MIT"
] | 1 | 2020-03-28T15:14:52.000Z | 2020-03-28T15:14:52.000Z | defmodule ExZample.Sequence do
@moduledoc false
use Agent
alias ExZample.SequenceRegistry
def start_link(%{sequence_name: sequence_name, sequence_fun: sequence_fun} = params) do
initial_index = Map.get(params, :initial_index, 1)
Agent.start_link(fn -> {sequence_fun, initial_index} end, name: via(seque... | 31.789474 | 90 | 0.740066 |
7a6c2e92a667433b2c1545d8289f88a8b47f543f | 1,325 | ex | Elixir | lib/radixir/gateway/request/build_transaction/action/register_validator.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 16 | 2022-01-05T20:41:55.000Z | 2022-03-25T09:06:43.000Z | lib/radixir/gateway/request/build_transaction/action/register_validator.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | null | null | null | lib/radixir/gateway/request/build_transaction/action/register_validator.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 1 | 2022-02-10T21:55:26.000Z | 2022-02-10T21:55:26.000Z | defmodule Radixir.Gateway.Request.BuildTransaction.Action.RegisterValidator do
@moduledoc false
# @moduledoc """
# Methods to create each map in `RegisterValidator` action.
# """
alias Radixir.StitchPlan
@type stitch_plans :: list(keyword)
@type params :: keyword
@doc """
Generates stitch plan for `... | 27.604167 | 106 | 0.680755 |
7a6c444b36c5727f4ab3d6c0e2ea4e198f4b457e | 987 | exs | Elixir | config/prod.secret.exs | tfwright/phoenix_live_vue_test | f560401c28fdf0132c33e4943a80357110d16160 | [
"MIT"
] | null | null | null | config/prod.secret.exs | tfwright/phoenix_live_vue_test | f560401c28fdf0132c33e4943a80357110d16160 | [
"MIT"
] | 1 | 2021-05-11T13:17:32.000Z | 2021-05-11T13:17:32.000Z | config/prod.secret.exs | tfwright/phoenix_live_vue_test | f560401c28fdf0132c33e4943a80357110d16160 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 32.9 | 81 | 0.743668 |
7a6c45ff1cae9023371b4682246d207807a51dfd | 1,610 | exs | Elixir | mix.exs | linjunpop/bamboo_sendcloud | f62c41f4e3c9d352755d55a655e17f535973d298 | [
"MIT"
] | 6 | 2017-03-24T06:05:56.000Z | 2020-04-24T10:20:46.000Z | mix.exs | linjunpop/bamboo_sendcloud | f62c41f4e3c9d352755d55a655e17f535973d298 | [
"MIT"
] | 2 | 2019-03-11T23:02:03.000Z | 2021-02-18T14:34:27.000Z | mix.exs | linjunpop/bamboo_sendcloud | f62c41f4e3c9d352755d55a655e17f535973d298 | [
"MIT"
] | 4 | 2017-07-18T06:16:38.000Z | 2020-06-16T06:20:01.000Z | defmodule Bamboo.Sendcloud.Mixfile do
use Mix.Project
@version "0.2.0"
@project_url "https://github.com/linjunpop/bamboo_sendcloud"
def project do
[
app: :bamboo_sendcloud,
version: @version,
elixir: "~> 1.4",
source_url: @project_url,
homepage_url: @project_url,
name: ... | 24.029851 | 79 | 0.553416 |
7a6c4aa4752b5c5475c6c1693a4ec849267f52da | 644 | ex | Elixir | repository_summary/lib/repository_summary_web/views/error_view.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/lib/repository_summary_web/views/error_view.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/lib/repository_summary_web/views/error_view.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | defmodule RepositorySummaryWeb.ErrorView do
use RepositorySummaryWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the... | 28 | 83 | 0.700311 |
7a6c5dbb6adcd60580cbab13a29912121a206d5f | 4,790 | ex | Elixir | lib/coherence/plugs/authorization/token.ex | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | 2 | 2018-01-19T06:12:16.000Z | 2018-03-12T07:17:17.000Z | lib/coherence/plugs/authorization/token.ex | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/token.ex | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | 1 | 2019-09-11T10:21:21.000Z | 2019-09-11T10:21:21.000Z | defmodule Coherence.Authentication.Token do
@moduledoc """
Implements token based authentication. To use add
plug Coherence.Authentication.Token, source: :params, param: "auth_token"
or
plug Coherence.Authentication.Token, source: :session, param: "auth_token"
or
plug Coherence.Auth... | 30.903226 | 92 | 0.682046 |
7a6c9672d448ad12e8647f3ce0caf584da75a8be | 125 | ex | Elixir | lib/metrics/repo_instrumenter.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/metrics/repo_instrumenter.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/metrics/repo_instrumenter.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Metrics.RepoInstrumenter do
@moduledoc """
Ecto Repo instrumenter
"""
use Prometheus.EctoInstrumenter
end
| 15.625 | 37 | 0.76 |
7a6c9b8767a142354918b42e9f0814fbbd5aeb2d | 145 | exs | Elixir | apps/core/test/core_test.exs | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 19 | 2019-09-17T18:14:36.000Z | 2021-12-06T07:29:27.000Z | apps/core/test/core_test.exs | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 5 | 2019-09-30T04:57:14.000Z | 2020-11-10T15:41:03.000Z | apps/core/test/core_test.exs | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 2 | 2019-09-17T19:03:16.000Z | 2021-03-01T01:04:31.000Z | defmodule CoreTest do
use ExUnit.Case
doctest Core
test "Starting Application" do
assert Application.started_applications()
end
end
| 16.111111 | 45 | 0.765517 |
7a6ce23c4eec89a283aa0a47c2e3d07c5e82d035 | 243 | ex | Elixir | lib/ppg.ex | ohyecloudy/phoenix-prometheus-grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | 1 | 2020-04-23T08:18:08.000Z | 2020-04-23T08:18:08.000Z | lib/ppg.ex | ohyecloudy/phoenix_prometheus_grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | null | null | null | lib/ppg.ex | ohyecloudy/phoenix_prometheus_grafana | e956f27a34c794e85d1e89fc61af79be18a0ce35 | [
"MIT"
] | null | null | null | defmodule Ppg do
@moduledoc """
Ppg keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.3 | 66 | 0.744856 |
7a6ce47538ded5bcc40e5c983e7ddeb9dc84b1a4 | 1,000 | exs | Elixir | test/storeHall/images_test.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | test/storeHall/images_test.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | test/storeHall/images_test.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHall.ImagesTest do
use StoreHall.DataCase
use ExUnitProperties
alias StoreHall.Fixture
alias StoreHall.Items
alias StoreHall.FileUploader
describe "images" do
@tag :skip
test "fileUploader url uses tags from item" do
check all(
item <- Fixture.item_generator(),
... | 26.315789 | 79 | 0.607 |
7a6cfcc2be02912e304820d86232ceecbb1b49ae | 2,772 | ex | Elixir | lib/webapp/accounts/user.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | lib/webapp/accounts/user.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | lib/webapp/accounts/user.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule Webapp.Accounts.User do
use WebappWeb, :model
alias Webapp.{
Sessions.Session,
Accounts.User,
Accounts.Member,
Accounts.SSHPublicKey,
Types.UserRole
}
schema "users" do
field(:email, :string)
field(:name, :string)
field(:password, :string, virtual: true)
field(:pa... | 29.178947 | 98 | 0.675325 |
7a6cfe06bd224bc5940b3d8bd948a2d9866e2edb | 2,664 | exs | Elixir | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/venue_message_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/venue_message_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/venue_message_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.VenueMessageTest do
use ExUnit.Case, async: true
alias Tai.VenueAdapters.Bitmex.Stream.ProcessAuth
test ".extract/2 returns a list of order update messages" do
messages =
ProcessAuth.VenueMessage.extract(%{
"table" => "order",
"actio... | 33.721519 | 84 | 0.605856 |
7a6d14cb8d5b860ae78b02cfbbfddd596b23a936 | 956 | ex | Elixir | lib/dialyxir/warnings/unused_function.ex | staring-frog/dialyxir | b78735f75b325238b7db20d9eed22f018cca5f26 | [
"Apache-2.0"
] | 1,455 | 2015-01-03T02:53:19.000Z | 2022-03-12T00:31:25.000Z | lib/dialyxir/warnings/unused_function.ex | staring-frog/dialyxir | b78735f75b325238b7db20d9eed22f018cca5f26 | [
"Apache-2.0"
] | 330 | 2015-05-14T13:53:13.000Z | 2022-03-29T17:12:23.000Z | lib/dialyxir/warnings/unused_function.ex | staring-frog/dialyxir | b78735f75b325238b7db20d9eed22f018cca5f26 | [
"Apache-2.0"
] | 146 | 2015-02-03T18:19:43.000Z | 2022-03-07T10:05:20.000Z | defmodule Dialyxir.Warnings.UnusedFunction do
@moduledoc """
Due to issues higher in the function or call stack, while the
function is recognized as used by the compiler, it will never be
recognized as having been called until the other error is resolved.
## Example
defmodule Example do
def ok... | 22.761905 | 69 | 0.656904 |
7a6d4d51057d5fa7fedb368c1fb7d0d51d1be1d2 | 24 | ex | Elixir | lib/liquio.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | 5 | 2016-09-12T08:31:14.000Z | 2018-03-12T23:40:08.000Z | lib/liquio.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | null | null | null | lib/liquio.ex | zan-kusterle/Liquio | 341556529633f9a99ad95b502f182d6644b9b1ed | [
"MIT"
] | null | null | null | defmodule Liquio do
end
| 8 | 19 | 0.833333 |
7a6d76afc9a95d518851bcd10cb432229c9af09b | 247 | exs | Elixir | priv/repo/migrations/20190125031656_add_author_overrides_to_posts.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | priv/repo/migrations/20190125031656_add_author_overrides_to_posts.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | priv/repo/migrations/20190125031656_add_author_overrides_to_posts.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Repo.Migrations.AddAuthorOverridesToPosts do
use Ecto.Migration
def change do
alter table(:posts) do
add :author_display_name, :text
add :avatar_initials, :text
add :avatar_color, :text
end
end
end
| 20.583333 | 60 | 0.708502 |
7a6d805144432826bfe163b2998d3e9ca49b7324 | 20,561 | ex | Elixir | lib/customerio.ex | Virviil/customerio | 7edda5d75b60fbfa8a684aee214fc2600ba9094e | [
"MIT"
] | 6 | 2019-02-21T09:15:05.000Z | 2020-11-17T18:08:46.000Z | lib/customerio.ex | Virviil/customerio | 7edda5d75b60fbfa8a684aee214fc2600ba9094e | [
"MIT"
] | 2 | 2019-06-04T06:31:10.000Z | 2022-02-09T05:38:07.000Z | lib/customerio.ex | Virviil/customerio | 7edda5d75b60fbfa8a684aee214fc2600ba9094e | [
"MIT"
] | 5 | 2017-10-02T22:07:19.000Z | 2022-02-01T18:37:34.000Z | defmodule Customerio do
@moduledoc """
Main module to interact with API.
"""
import Customerio.Util
@typedoc """
Represents fuzzy type that can be used to send data to Customer.IO
"""
@type value :: number | String.t() | atom()
@typedoc """
Represents the type of an Customer.IO API answers
"""
... | 23.797454 | 97 | 0.569184 |
7a6d883d5b8ae957160e34a7b8507db77aa3f7b4 | 9,531 | ex | Elixir | deps/phoenix_ecto/lib/phoenix_ecto/sql/sandbox.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/phoenix_ecto/lib/phoenix_ecto/sql/sandbox.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | 4 | 2021-03-04T13:00:52.000Z | 2021-03-12T12:42:09.000Z | deps/phoenix_ecto/lib/phoenix_ecto/sql/sandbox.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | null | null | null | defmodule Phoenix.Ecto.SQL.Sandbox do
@moduledoc """
A plug to allow concurrent, transactional acceptance tests with [`Ecto.Adapters.SQL.Sandbox`]
(https://hexdocs.pm/ecto_sql/Ecto.Adapters.SQL.Sandbox.html).
## Example
This plug should only be used during tests. First, set a flag to
enable it in `config/... | 31.045603 | 95 | 0.672647 |
7a6dd759d9e4582ebd176e29831d319760a4f554 | 252 | exs | Elixir | priv/repo/migrations/20180504222508_change_limit_of_offers_summary.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | priv/repo/migrations/20180504222508_change_limit_of_offers_summary.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | priv/repo/migrations/20180504222508_change_limit_of_offers_summary.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | defmodule ElixirJobs.Repo.Migrations.ChangeLimitOfOffersSummary do
use Ecto.Migration
def change do
alter table(:offers) do
modify :description, :string, size: 1000, null: true
modify :summary, :string, size: 450
end
end
end
| 22.909091 | 66 | 0.714286 |
7a6de6e7e0ccbb6bc53d90275975e59f53649311 | 2,451 | exs | Elixir | test/groupher_server/cms/cheatsheet_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/cheatsheet_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/cheatsheet_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.Cheatsheet do
use GroupherServer.TestTools
alias Helper.ORM
alias GroupherServer.CMS
alias CMS.Model.{CommunityCheatsheet}
setup do
{:ok, user} = db_insert(:user)
# {:ok, post} = db_insert(:post)
{:ok, community} = db_insert(:community)
cheatsheet_attrs = ... | 37.136364 | 97 | 0.725826 |
7a6df7bbc14d520540b989a4f773e964f5fa3468 | 694 | exs | Elixir | apps/ewallet/test/ewallet/exchange/calculation_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/exchange/calculation_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/exchange/calculation_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 ... | 34.7 | 74 | 0.766571 |
7a6e12243c07a87c960de9bcd39805b706f20392 | 757 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/local_network_gateway.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/local_network_gateway.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/local_network_gateway.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.LocalNetworkGateway do
@moduledoc """
A common class for general resource information
"""
@deriv... | 22.264706 | 92 | 0.656539 |
7a6e2dbbf9fde3140e408531f006eaaf7c9850f0 | 1,645 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/examples/session/count_to/handshake.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/session/count_to/handshake.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam/lib/ockam/examples/session/count_to/handshake.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1 | 2021-12-01T19:40:11.000Z | 2021-12-01T19:40:11.000Z | defmodule Ockam.Examples.Session.CountTo.Handshake do
@moduledoc """
Example multi-message handshake
Counts to a `count_to` number, each new handshake message
increasing the number, starting the data worker when reaching `count_to`
Options:
`count_to` - number of handshakes to send
"""
@behaviour Ock... | 26.532258 | 97 | 0.677204 |
7a6eb039d379c165190023afbb8cfee722428bda | 1,867 | ex | Elixir | lib/pluggy/models/school.ex | TE4-David-Sundqvist/Pro1-Docsify | b6857195508c1d6135f9084cc383e853468bf012 | [
"MIT"
] | null | null | null | lib/pluggy/models/school.ex | TE4-David-Sundqvist/Pro1-Docsify | b6857195508c1d6135f9084cc383e853468bf012 | [
"MIT"
] | null | null | null | lib/pluggy/models/school.ex | TE4-David-Sundqvist/Pro1-Docsify | b6857195508c1d6135f9084cc383e853468bf012 | [
"MIT"
] | null | null | null | defmodule Pluggy.School do
defstruct(id: nil, name: "")
alias Pluggy.School
alias Pluggy.Group
alias Pluggy.Teacher
def get(id) do
Postgrex.query!(DB, "SELECT id, name FROM schools WHERE id = $1 LIMIT 1", [id],
pool: DBConnection.ConnectionPool
).rows
|> to_struct
end
def get_id(usern... | 33.945455 | 122 | 0.677022 |
7a6ebf08a748163e2091cdae96ad38485105b509 | 872 | ex | Elixir | apps/tai/lib/tai/new_orders/transitions/accept_amend.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/new_orders/transitions/accept_amend.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/new_orders/transitions/accept_amend.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.NewOrders.Transitions.AcceptAmend do
@moduledoc """
The amend request has been accepted by the venue. The result of the amended
order is received in the stream.
"""
use Ecto.Schema
import Ecto.Changeset
@behaviour Tai.NewOrders.Transition
@type t :: %__MODULE__{}
@primary_key false
... | 21.8 | 77 | 0.728211 |
7a6ed9c86528abba9019455ef4b1aefaa3fa6bc5 | 10,949 | ex | Elixir | lib/letex.ex | spatchkaa/letex | 67e9d7a7cc3155bec6b564f6da368c884cc4144f | [
"MIT"
] | 2 | 2019-02-28T21:25:40.000Z | 2020-10-19T19:45:09.000Z | lib/letex.ex | spatchkaa/letex | 67e9d7a7cc3155bec6b564f6da368c884cc4144f | [
"MIT"
] | null | null | null | lib/letex.ex | spatchkaa/letex | 67e9d7a7cc3155bec6b564f6da368c884cc4144f | [
"MIT"
] | null | null | null | defmodule Letex do
@moduledoc """
Lisp-esque Let to support easy stateful lexical closures in Elixir
"""
defmacro __using__(_opts) do
quote do
require unquote(__MODULE__)
import unquote(__MODULE__)
var!(state_agent, Letex) = nil
end
end
@doc """
Accepts a keyword-list and a do b... | 31.372493 | 100 | 0.655676 |
7a6eddecb1a28f5845feb1d405661e0bd311d2b5 | 1,710 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_set_line_item_metadata_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_set_line_item_metadata_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_set_line_item_metadata_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.529412 | 164 | 0.748538 |
7a6f3fdd1a7c58c312c9af85c19f737abd18c79b | 6,392 | ex | Elixir | lib/ecto/query/builder/order_by.ex | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 3,931 | 2016-06-16T11:38:48.000Z | 2022-03-31T21:24:19.000Z | lib/ecto/query/builder/order_by.ex | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 2,343 | 2016-06-16T11:18:09.000Z | 2022-03-27T23:44:43.000Z | deps/ecto/lib/ecto/query/builder/order_by.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 1,300 | 2016-06-17T13:56:59.000Z | 2022-03-31T01:46:20.000Z | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.OrderBy do
@moduledoc false
alias Ecto.Query.Builder
@directions [
:asc,
:asc_nulls_last,
:asc_nulls_first,
:desc,
:desc_nulls_last,
:desc_nulls_first
]
@doc """
Returns `true` if term is a valid order_by direction; o... | 31.643564 | 118 | 0.625626 |
7a6f72874e5e160f16ff61a01fe44c8fa151311a | 104 | exs | Elixir | apps/fetch/test/test_helper.exs | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/fetch/test/test_helper.exs | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/fetch/test/test_helper.exs | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | 1 | 2019-09-09T20:40:13.000Z | 2019-09-09T20:40:13.000Z | ExUnit.start()
Application.ensure_all_started(:bypass)
{:ok, _pid} = Fetch.FileTap.MockTap.start_link()
| 26 | 48 | 0.778846 |
7a6fab10cc3c8e6e42f2d5e01bc6ff19d20b3bc1 | 1,285 | ex | Elixir | lib/console/board.ex | mrfishball/TicTacToeElixir | e26c55b53f118a1cddb141db3d1ee6b969b756e0 | [
"MIT"
] | null | null | null | lib/console/board.ex | mrfishball/TicTacToeElixir | e26c55b53f118a1cddb141db3d1ee6b969b756e0 | [
"MIT"
] | 1 | 2018-07-19T17:52:53.000Z | 2018-07-19T18:11:24.000Z | lib/console/board.ex | mrfishball/TicTacToeElixir | e26c55b53f118a1cddb141db3d1ee6b969b756e0 | [
"MIT"
] | null | null | null | defmodule TTT.Console.Board do
alias TTT.Console.IO, as: ConsoleIO
alias TTT.Console.Colorizer, as: Colorizer
require Integer
@board_bounds 0..2
def new_board(left_pad, right_pad) do
for col <- @board_bounds, row <- @board_bounds,
into: %{}, do: {{col, row}, "#{left_pad}#{(col + row + 1) + (row * 2... | 29.204545 | 90 | 0.62179 |
7a6fb60ce7ddc105a0bc8b5e7d3e6efe612ec354 | 1,284 | ex | Elixir | lib/icalendar.ex | clockkcom/icalendar | a476eff9e17f4a386e81e06353a9109645f03388 | [
"MIT"
] | 82 | 2016-05-13T10:13:10.000Z | 2022-02-23T04:11:12.000Z | lib/icalendar.ex | clockkcom/icalendar | a476eff9e17f4a386e81e06353a9109645f03388 | [
"MIT"
] | 50 | 2015-12-24T12:30:55.000Z | 2022-03-22T18:13:19.000Z | lib/icalendar.ex | clockkcom/icalendar | a476eff9e17f4a386e81e06353a9109645f03388 | [
"MIT"
] | 43 | 2016-05-25T15:11:18.000Z | 2022-03-19T16:54:58.000Z | defmodule ICalendar do
@moduledoc """
Generating ICalendars.
"""
defstruct events: []
defdelegate to_ics(events, options \\ []), to: ICalendar.Serialize
defdelegate from_ics(events), to: ICalendar.Deserialize
@doc """
To create a Phoenix/Plug controller and view that output ics format:
Add to your ... | 23.345455 | 72 | 0.669003 |
7a6ff09f688e276fd2efbef6ad9f55231e14f05b | 2,317 | ex | Elixir | clients/content/lib/google_api/content/v21/model/product_delivery_time.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/product_delivery_time.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/product_delivery_time.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.127273 | 305 | 0.751403 |
7a6ffdaeb0ff0b84ecc2d906a6f5fe111597cbdc | 1,572 | exs | Elixir | mix.exs | filipevarjao/jason | a215910b1045c859bb10499ced7595458c0ee70c | [
"Apache-2.0"
] | 1,325 | 2017-12-21T22:15:21.000Z | 2022-03-25T08:02:16.000Z | mix.exs | filipevarjao/jason | a215910b1045c859bb10499ced7595458c0ee70c | [
"Apache-2.0"
] | 138 | 2017-12-21T22:15:42.000Z | 2022-03-09T10:27:28.000Z | mix.exs | filipevarjao/jason | a215910b1045c859bb10499ced7595458c0ee70c | [
"Apache-2.0"
] | 158 | 2017-12-23T04:48:38.000Z | 2022-03-25T11:13:26.000Z | defmodule Jason.Mixfile do
use Mix.Project
@source_url "https://github.com/michalmuskala/jason"
@version "1.2.2"
def project() do
[
app: :jason,
version: @version,
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
deps: de... | 20.415584 | 65 | 0.547074 |
7a70008d4248574834a00b050628891aefdb8c86 | 3,517 | ex | Elixir | lib/example2.ex | ianrumford/metaprogramming_without_macros_examples | 191325f33a5d99fd08a1b1aff795e7cad775e558 | [
"MIT"
] | 1 | 2017-05-26T15:28:28.000Z | 2017-05-26T15:28:28.000Z | lib/example2.ex | ianrumford/metaprogramming_without_macros_examples | 191325f33a5d99fd08a1b1aff795e7cad775e558 | [
"MIT"
] | null | null | null | lib/example2.ex | ianrumford/metaprogramming_without_macros_examples | 191325f33a5d99fd08a1b1aff795e7cad775e558 | [
"MIT"
] | null | null | null | defmodule MWMExample2Helpers do
# helper to apply a proxy dictionary in the
# transformation of a template snippet
defp helper_transform_template_snippet(template, proxy_dict)
# simple atom
defp helper_transform_template_snippet(n, proxy_dict) when is_atom(n) do
case proxy_dict |> Map.has_key?(n) do
... | 28.593496 | 87 | 0.696332 |
7a704cb7d132148a01993e026fe59d23038d0890 | 6,313 | exs | Elixir | lib/logger/test/logger/backends/console_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/logger/test/logger/backends/console_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/logger/test/logger/backends/console_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Logger.Backends.ConsoleTest do
use Logger.Case
require Logger
import ExUnit.CaptureIO
setup do
on_exit(fn ->
:ok =
Logger.configure_backend(
:console,
format: nil,
device: :user,
level: nil,
metadata: [],
colors: [enabled:... | 33.759358 | 98 | 0.634722 |
7a70512873a6257eed25e2490f8eb903e50cebf1 | 663 | exs | Elixir | mix.exs | elfelrandcor/learning_elixir_simple_queue | efc01fa09d7f7f67c6772250fe68a125c8858de9 | [
"MIT"
] | null | null | null | mix.exs | elfelrandcor/learning_elixir_simple_queue | efc01fa09d7f7f67c6772250fe68a125c8858de9 | [
"MIT"
] | null | null | null | mix.exs | elfelrandcor/learning_elixir_simple_queue | efc01fa09d7f7f67c6772250fe68a125c8858de9 | [
"MIT"
] | null | null | null | defmodule Queue.MixProject do
use Mix.Project
def project do
[
app: :queue,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
applications:... | 20.71875 | 88 | 0.552036 |
7a705445f896201b417adc79c60387b9456455d8 | 240 | ex | Elixir | lib/geo/pointz.ex | aseigo/geo | 327d6df8e16cb68a3ad295707e5215d5a2153ae2 | [
"MIT"
] | null | null | null | lib/geo/pointz.ex | aseigo/geo | 327d6df8e16cb68a3ad295707e5215d5a2153ae2 | [
"MIT"
] | null | null | null | lib/geo/pointz.ex | aseigo/geo | 327d6df8e16cb68a3ad295707e5215d5a2153ae2 | [
"MIT"
] | null | null | null | defmodule Geo.PointZ do
@moduledoc """
Defines the PointZ struct.
"""
@type t :: %Geo.PointZ{coordinates: {number, number, number}, srid: integer, properties: map}
defstruct coordinates: {0, 0, 0}, srid: nil, properties: %{}
end
| 26.666667 | 95 | 0.670833 |
7a7075ff0361c33581af23b754aecf2b508620bb | 568 | ex | Elixir | test/support/websocket_server/server.ex | lorantkurthy/elixir-janus-transport-ws | 73b12d2857337ea099aad98d7fa089b44a4a3019 | [
"Apache-2.0"
] | 4 | 2020-10-21T23:39:30.000Z | 2021-12-04T09:21:54.000Z | test/support/websocket_server/server.ex | lorantkurthy/elixir-janus-transport-ws | 73b12d2857337ea099aad98d7fa089b44a4a3019 | [
"Apache-2.0"
] | 3 | 2020-08-28T12:20:04.000Z | 2021-01-25T11:35:45.000Z | test/support/websocket_server/server.ex | lorantkurthy/elixir-janus-transport-ws | 73b12d2857337ea099aad98d7fa089b44a4a3019 | [
"Apache-2.0"
] | 2 | 2020-11-06T18:47:33.000Z | 2021-05-20T08:17:10.000Z | defmodule TestWebSocket.Server do
@default_port 8081
def get_url(port \\ @default_port) do
"ws://localhost:#{port}/ws"
end
def start(port \\ @default_port) do
cowboy_server =
Plug.Cowboy.http(
WebSocket.Router,
[scheme: :http],
TestWebSocket.Router.options(port: port)
... | 20.285714 | 54 | 0.621479 |
7a708cc3ddbf0ac7a9ff42f89787c154b094c75f | 1,233 | ex | Elixir | examples/ct_ecto/lib/ct.ex | 50kudos/closure_table | 4c1a8e321318dc2dcb2d178b9dbc58431e0211e4 | [
"Apache-2.0"
] | 16 | 2019-09-08T14:31:36.000Z | 2022-02-14T19:50:23.000Z | examples/ct_ecto/lib/ct.ex | 50kudos/closure_table | 4c1a8e321318dc2dcb2d178b9dbc58431e0211e4 | [
"Apache-2.0"
] | 6 | 2019-09-14T06:03:41.000Z | 2021-05-16T00:53:40.000Z | examples/ct_ecto/lib/ct.ex | 50kudos/closure_table | 4c1a8e321318dc2dcb2d178b9dbc58431e0211e4 | [
"Apache-2.0"
] | 7 | 2019-09-13T16:39:45.000Z | 2021-05-11T06:15:04.000Z | defmodule CT do
@moduledoc false
alias CT.{MyCTE, Repo, Author, Comment}
def get(schema, query) do
Repo.get_by(schema, query)
end
@spec comment(String.t(), Author.t()) :: {:ok, list} | {:error, any}
def comment(text, %Author{} = author) do
cs = Comment.changeset(%{text: text}, author)
with {... | 25.6875 | 79 | 0.608273 |
7a709b629fffa1f562c01cfcd11b8de2ff3e61ba | 824 | ex | Elixir | lib/plaid/link_token/user.ex | ktayah/elixir-plaid | 2e537d4b79f36b5a31df8b27de079e2cc1dedfda | [
"MIT"
] | null | null | null | lib/plaid/link_token/user.ex | ktayah/elixir-plaid | 2e537d4b79f36b5a31df8b27de079e2cc1dedfda | [
"MIT"
] | null | null | null | lib/plaid/link_token/user.ex | ktayah/elixir-plaid | 2e537d4b79f36b5a31df8b27de079e2cc1dedfda | [
"MIT"
] | null | null | null | defmodule Plaid.LinkToken.User do
@moduledoc """
[Plaid link token user argument.](https://plaid.com/docs/api/tokens/#link-token-create-request-user)
"""
@type t :: %__MODULE__{
client_user_id: String.t(),
legal_name: String.t() | none(),
phone_number: String.t() | none(),
... | 26.580645 | 102 | 0.615291 |
7a70a97b5e04ce297dae69aaad88c088fa078ebb | 10,821 | exs | Elixir | test/tonic_test.exs | ScrimpyCat/Tonic | 7e96f2f2282d473d70974e36d55c21b6a3dfd55a | [
"BSD-2-Clause"
] | 8 | 2016-04-16T00:02:44.000Z | 2021-09-06T02:55:26.000Z | test/tonic_test.exs | ScrimpyCat/Tonic | 7e96f2f2282d473d70974e36d55c21b6a3dfd55a | [
"BSD-2-Clause"
] | 1 | 2017-08-11T17:55:36.000Z | 2017-09-26T14:51:43.000Z | test/tonic_test.exs | ScrimpyCat/Tonic | 7e96f2f2282d473d70974e36d55c21b6a3dfd55a | [
"BSD-2-Clause"
] | 1 | 2018-04-30T14:48:12.000Z | 2018-04-30T14:48:12.000Z | defmodule TonicTest do
defmodule OrderTest do
use ExUnit.Case
use Tonic
uint32 :a
uint8 :b
float32 :c
uint8 :d
setup do
{
:ok, data: <<
1 :: integer-size(32)-unsigned-native,
2 :: integer-si... | 32.890578 | 109 | 0.408927 |
7a70adc8788cc80826c897693257f6fa404f1223 | 1,825 | exs | Elixir | mix.exs | joaoeliandro/delivery | f8f2ea20a0fa595ccd754a725cfadf35a8c89c69 | [
"MIT"
] | null | null | null | mix.exs | joaoeliandro/delivery | f8f2ea20a0fa595ccd754a725cfadf35a8c89c69 | [
"MIT"
] | null | null | null | mix.exs | joaoeliandro/delivery | f8f2ea20a0fa595ccd754a725cfadf35a8c89c69 | [
"MIT"
] | null | null | null | defmodule Delivery.MixProject do
use Mix.Project
def project do
[
app: :delivery,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps... | 27.238806 | 84 | 0.570959 |
7a70c8e8c9f20e4e9f1c01f49bf6f282778ed872 | 337 | exs | Elixir | test/string_math_test.exs | jeffcole/string_math | be67998e01011d4d10a72af3f92527ef2d501814 | [
"MIT"
] | null | null | null | test/string_math_test.exs | jeffcole/string_math | be67998e01011d4d10a72af3f92527ef2d501814 | [
"MIT"
] | null | null | null | test/string_math_test.exs | jeffcole/string_math | be67998e01011d4d10a72af3f92527ef2d501814 | [
"MIT"
] | null | null | null | defmodule StringMathTest do
use ExUnit.Case
doctest StringMath
test "handles addition" do
assert StringMath.compute("1+2") == 3
end
test "handles multiplication" do
assert StringMath.compute("2*3") == 6
end
test "handles both addition and multiplication" do
assert StringMath.compute("1+2*3"... | 19.823529 | 52 | 0.700297 |
7a70ce3910144c76300cdad3cc5adab9e771479f | 1,133 | exs | Elixir | mix.exs | toberoni/paapi5 | 7d2fc038bd39bf68cfa40fd990d98f55c34d80d8 | [
"MIT"
] | null | null | null | mix.exs | toberoni/paapi5 | 7d2fc038bd39bf68cfa40fd990d98f55c34d80d8 | [
"MIT"
] | null | null | null | mix.exs | toberoni/paapi5 | 7d2fc038bd39bf68cfa40fd990d98f55c34d80d8 | [
"MIT"
] | null | null | null | defmodule Paapi5.MixProject do
use Mix.Project
@source_url "https://github.com/dallagi/paapi5"
@version "0.1.1"
def project do
[
app: :paapi5,
description: "A minimalistic library for the Amazon Product Advertising Api version 5 (PAAPI5).",
version: @version,
elixir: "~> 1.10",
... | 24.630435 | 103 | 0.54722 |
7a70e8a197c3d04938af0b5acd0bd09049a30cdc | 32 | ex | Elixir | scaffold/templates/normal_app/lib/app_name.ex | kernelgarden/freddie | ec8bce295bc9b74ff5364708d04b1346184cf6e4 | [
"MIT"
] | 8 | 2019-03-16T04:13:37.000Z | 2020-03-16T01:57:41.000Z | scaffold/templates/normal_app/lib/app_name.ex | kernelgarden/freddie | ec8bce295bc9b74ff5364708d04b1346184cf6e4 | [
"MIT"
] | null | null | null | scaffold/templates/normal_app/lib/app_name.ex | kernelgarden/freddie | ec8bce295bc9b74ff5364708d04b1346184cf6e4 | [
"MIT"
] | null | null | null | defmodule <%= app_mod %> do
end
| 10.666667 | 27 | 0.65625 |
7a70eb622072a089d18102f0048e784a6ec246e3 | 245 | exs | Elixir | config/config.exs | 123mitnik/phx_izitoast | bcd92da3683ba9c267a9128ee65eb1f544c3864b | [
"MIT"
] | 4 | 2020-03-16T18:44:43.000Z | 2020-07-26T13:28:22.000Z | config/config.exs | 123mitnik/phx_izitoast | bcd92da3683ba9c267a9128ee65eb1f544c3864b | [
"MIT"
] | 1 | 2020-04-02T10:33:45.000Z | 2020-04-09T05:41:52.000Z | config/config.exs | 123mitnik/phx_izitoast | bcd92da3683ba9c267a9128ee65eb1f544c3864b | [
"MIT"
] | 3 | 2020-04-08T17:48:41.000Z | 2021-09-02T13:42:07.000Z | use Mix.Config
config :phx_izitoast, :opts,
# bottomRight, bottomLeft, topRight, topLeft, topCenter,
position: "topRight",
# dark,
theme: "light",
timeout: 5000,
close: true,
titleSize: 18,
messageSize: 18,
progressBar: true
| 18.846154 | 59 | 0.685714 |
7a70f1ca66a1c1dd0f1c60b0989b23b13c1ead02 | 251 | ex | Elixir | apps/auth/web/router.ex | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | apps/auth/web/router.ex | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | apps/auth/web/router.ex | mikrofusion/passwordless | 26621389cc0e8e307080b1eb5be42b0527e6611b | [
"MIT"
] | null | null | null | defmodule Auth.Router do
use Auth.Web, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/auth", Auth do
pipe_through :api
post "/email", AuthController, :email
post "/login", AuthController, :login
end
end
| 16.733333 | 42 | 0.63745 |
7a70f3a2c1f8ad75bf5670c5ab79f919294d5a68 | 1,074 | exs | Elixir | test/langue/xliff_1_2/expectation_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | test/langue/xliff_1_2/expectation_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | test/langue/xliff_1_2/expectation_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule LangueTest.Formatter.XLIFF12.Expectation do
alias Langue.Entry
defmodule Simple do
use Langue.Expectation.Case
def render do
"""
<file original="project-a" datatype="plaintext" source-language="en" target-language="fr">
<body>
<trans-unit id="greeting">
... | 29.027027 | 113 | 0.552142 |
7a70f8ea8136691ee7d75788f553cf37a166264b | 1,664 | ex | Elixir | lib/geo/json.ex | idlehands/geo | c386540a951a291ecd6b3c89b95c9afd84e0e86b | [
"MIT"
] | 1 | 2021-08-23T13:14:22.000Z | 2021-08-23T13:14:22.000Z | lib/geo/json.ex | idlehands/geo | c386540a951a291ecd6b3c89b95c9afd84e0e86b | [
"MIT"
] | null | null | null | lib/geo/json.ex | idlehands/geo | c386540a951a291ecd6b3c89b95c9afd84e0e86b | [
"MIT"
] | null | null | null | defmodule Geo.JSON do
alias Geo.JSON.{Decoder, Encoder}
@moduledoc """
Converts Geo structs to and from a map representing GeoJSON.
You are responsible to encoding and decoding of JSON. This is so
that you can use any JSON parser you want as well as making it
so that you can use the resulting GeoJSON str... | 30.814815 | 82 | 0.655048 |
7a70f9146089a00eb469fad1b878365e5e49e387 | 25,547 | ex | Elixir | lib/decoder.ex | baseballlover723/jason | ec2042e4e47442bf3d58410934b8e8f6ff850b3f | [
"Apache-2.0"
] | 1,325 | 2017-12-21T22:15:21.000Z | 2022-03-25T08:02:16.000Z | lib/decoder.ex | baseballlover723/jason | ec2042e4e47442bf3d58410934b8e8f6ff850b3f | [
"Apache-2.0"
] | 138 | 2017-12-21T22:15:42.000Z | 2022-03-09T10:27:28.000Z | lib/decoder.ex | baseballlover723/jason | ec2042e4e47442bf3d58410934b8e8f6ff850b3f | [
"Apache-2.0"
] | 158 | 2017-12-23T04:48:38.000Z | 2022-03-25T11:13:26.000Z | defmodule Jason.DecodeError do
@type t :: %__MODULE__{position: integer, data: String.t}
defexception [:position, :token, :data]
def message(%{position: position, token: token}) when is_binary(token) do
"unexpected sequence at position #{position}: #{inspect token}"
end
def message(%{position: position,... | 38.825228 | 119 | 0.626649 |
7a7107cadcf74c8fae8e660e86c6332d869291eb | 1,200 | ex | Elixir | web/channels/user_socket.ex | mapmeld/superfund-me | 8bd1aeb78504e6ae068cf57dbefca05bebbb2b07 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | mapmeld/superfund-me | 8bd1aeb78504e6ae068cf57dbefca05bebbb2b07 | [
"MIT"
] | 3 | 2016-09-09T21:09:17.000Z | 2017-09-13T17:55:20.000Z | web/channels/user_socket.ex | Georeactor/superfund-me | 8bd1aeb78504e6ae068cf57dbefca05bebbb2b07 | [
"MIT"
] | null | null | null | defmodule Superfundme.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", Superfundme.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket,
timeout: 45_000
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
#... | 30.769231 | 84 | 0.703333 |
7a710f6c5013e405b98d13cdab0a0b1c86cf3c0c | 2,055 | ex | Elixir | lib/surface_bootstrap/breadcrumb.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 17 | 2021-02-18T20:10:52.000Z | 2021-12-30T14:41:00.000Z | lib/surface_bootstrap/breadcrumb.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 9 | 2021-03-21T20:15:48.000Z | 2021-06-23T07:45:20.000Z | lib/surface_bootstrap/breadcrumb.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 10 | 2021-03-21T20:10:37.000Z | 2021-12-28T00:06:06.000Z | defmodule SurfaceBootstrap.Breadcrumb do
use Surface.Component
@moduledoc """
Can take a list of breadcrumb maps with keys `url`, `text` and `active`
or a slot list of `Breadcrumb.Item`.
"""
alias Surface.Components.{Link, LiveRedirect, LivePatch}
@doc "What kind of link to be rendered? `Link`, `LiveRed... | 27.77027 | 84 | 0.521168 |
7a7124c6a3ae6790b0c967904c3e8e6eae9778c4 | 1,162 | exs | Elixir | RAEM/raem/priv/repo/migrations/20180304230506_create_cpcs.exs | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | null | null | null | RAEM/raem/priv/repo/migrations/20180304230506_create_cpcs.exs | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | null | null | null | RAEM/raem/priv/repo/migrations/20180304230506_create_cpcs.exs | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | 2 | 2018-02-24T19:56:21.000Z | 2018-02-26T00:16:41.000Z | defmodule Raem.Repo.Migrations.CreateCpcs do
use Ecto.Migration
def change do
create table(:cpcs) do
add :ano, :string
add :concluintes_inscritos, :integer
add :concluintes_participantes, :integer
add :nota_bruta_fg, :float
add :nota_bruta_ce, :float
add :nota_bruta_geral, :... | 30.578947 | 51 | 0.69105 |
7a7125c491fd0cb1dbd235dbeeddc103f4912f17 | 1,399 | ex | Elixir | clients/manufacturers/lib/google_api/manufacturers/v1/model/price.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/lib/google_api/manufacturers/v1/model/price.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/lib/google_api/manufacturers/v1/model/price.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... | 29.145833 | 87 | 0.741244 |
7a7155826014a04efa544961ba18d0ced3ac52b7 | 1,403 | exs | Elixir | test/cocktail/validation/time_of_day_test.exs | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 117 | 2017-09-09T00:02:32.000Z | 2022-02-10T15:36:28.000Z | test/cocktail/validation/time_of_day_test.exs | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 193 | 2017-09-09T22:49:18.000Z | 2022-03-30T13:05:25.000Z | test/cocktail/validation/time_of_day_test.exs | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 20 | 2018-01-04T14:58:42.000Z | 2021-11-25T13:59:10.000Z | defmodule Cocktail.TimeOfDayTest do
use ExUnit.Case
alias Cocktail.Schedule
import Cocktail.TestSupport.DateTimeSigil
test "a daily schedule with a time of day option" do
schedule =
~N[2017-09-09 09:00:00]
|> Schedule.new()
|> Schedule.add_recurrence_rule(:daily, times: [~T[10:00:00], ~... | 31.177778 | 96 | 0.564505 |
7a715ea57db6a89d81f354df52abf285f3c0a770 | 1,615 | ex | Elixir | lib/api/gall/metadata.ex | mirtyl-wacdec/urbit_ex | 82db4e96c2f3dc2a28e65c442350d7f8b228901f | [
"MIT"
] | 7 | 2021-05-22T12:05:41.000Z | 2021-08-11T20:05:59.000Z | lib/api/gall/metadata.ex | mirtyl-wacdec/urbit_ex | 82db4e96c2f3dc2a28e65c442350d7f8b228901f | [
"MIT"
] | null | null | null | lib/api/gall/metadata.ex | mirtyl-wacdec/urbit_ex | 82db4e96c2f3dc2a28e65c442350d7f8b228901f | [
"MIT"
] | 2 | 2021-05-29T10:10:52.000Z | 2021-08-11T20:06:07.000Z | defmodule UrbitEx.API.Metadata do
@moduledoc """
Client API to interact with the `metadata-store` of your Urbit ship.
Allows you to change the metadata of groups and channels you own or are admin of, as well as preview metadata of groups you don't belong to yet.
"""
alias UrbitEx.{MetadataStore, API, Acti... | 31.666667 | 148 | 0.650155 |
7a71626912e61da12354ce06090ceec94b290853 | 1,066 | exs | Elixir | config/config.exs | ebostijancic/load_log | 19a885704fcd427549eba3efd3f930ac4c52c3f6 | [
"MIT"
] | 2 | 2017-03-04T23:21:45.000Z | 2021-01-31T17:45:45.000Z | config/config.exs | ebostijancic/load_log | 19a885704fcd427549eba3efd3f930ac4c52c3f6 | [
"MIT"
] | 2 | 2016-12-04T15:27:41.000Z | 2019-04-11T09:43:07.000Z | config/config.exs | ebostijancic/load_log | 19a885704fcd427549eba3efd3f930ac4c52c3f6 | [
"MIT"
] | 1 | 2019-04-10T15:11:35.000Z | 2019-04-10T15:11:35.000Z | use Mix.Config
config :load_log, max_items: 1440
config :load_log, interval: 60000
# 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 parent project. For this reason,
# if you want to provide ... | 33.3125 | 73 | 0.747655 |
7a717bffe5f1e639fa88d5d2cfdecefb36231b71 | 73 | ex | Elixir | web/views/page_view.ex | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | 2 | 2017-07-25T09:12:57.000Z | 2017-07-25T11:25:07.000Z | web/views/page_view.ex | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | null | null | null | web/views/page_view.ex | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | 1 | 2018-10-29T18:53:04.000Z | 2018-10-29T18:53:04.000Z | defmodule TakeItForASpin.PageView do
use TakeItForASpin.Web, :view
end
| 18.25 | 36 | 0.821918 |
7a71a1d7177b9da38d60724057352d6da884184d | 3,512 | ex | Elixir | lib/arkenston/mutator/author_mutator.ex | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 1 | 2019-04-29T18:07:08.000Z | 2019-04-29T18:07:08.000Z | lib/arkenston/mutator/author_mutator.ex | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 126 | 2020-12-03T15:39:31.000Z | 2022-03-30T22:02:23.000Z | lib/arkenston/mutator/author_mutator.ex | dolfinus/arkenston-backend | 258880936dce673eb15db0c4b52e68d3d40c58ff | [
"MIT"
] | null | null | null | defmodule Arkenston.Mutator.AuthorMutator do
alias Arkenston.Repo
alias Arkenston.Subject
alias Arkenston.Subject.Author
alias Arkenston.Permissions
alias Arkenston.Repo
@spec create(parent :: any, args :: map, info :: map) :: {:ok, Author.t() | Ecto.Changeset.t()}
def create(parent \\ nil, args, info \... | 29.266667 | 98 | 0.537016 |
7a71b119fa88004b439badf368a87d8f5bb78541 | 3,036 | ex | Elixir | 2017/elixir/day23/lib/day23.ex | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day23/lib/day23.ex | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day23/lib/day23.ex | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | defmodule Day23 do
def solveA(filename) do
instructions =
filename
|> parse
rec_solve(instructions, %{}, 0, 0, tuple_size(instructions) - 1)
|> elem(0)
end
def solveB(filename) do
# Looking at the instructions we can see that h will be incremented when f = 0,
# and f = 0 when b = ... | 25.090909 | 92 | 0.555336 |
7a71e75c6c83a4b1894b8b428391ee2807fb5c6d | 1,739 | ex | Elixir | lib/curator_recoverable.ex | curator-ex/curator_recoverable | e1f1d65e5545310378aa06cf39740a20f1bc3d26 | [
"MIT"
] | null | null | null | lib/curator_recoverable.ex | curator-ex/curator_recoverable | e1f1d65e5545310378aa06cf39740a20f1bc3d26 | [
"MIT"
] | 1 | 2017-04-02T02:39:22.000Z | 2017-04-02T02:39:22.000Z | lib/curator_recoverable.ex | curator-ex/curator_recoverable | e1f1d65e5545310378aa06cf39740a20f1bc3d26 | [
"MIT"
] | null | null | null | defmodule CuratorRecoverable do
@moduledoc """
CuratorRecoverable: A curator module to handle user "forgotten password".
"""
if !(
(Application.get_env(:curator_recoverable, CuratorRecoverable) && Keyword.get(Application.get_env(:curator_recoverable, CuratorRecoverable), :repo)) ||
(Application.g... | 37.804348 | 165 | 0.747556 |
7a71f12c064d74a63607d53503d3f27e276c8dac | 880 | ex | Elixir | lib/docusign/model/envelope_attachments.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/envelope_attachments.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/envelope_attachments.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.EnvelopeAttachments do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:accessControl,
:attachmentId,
... | 23.157895 | 80 | 0.646591 |
7a71fb02a63039f44e33ca6dc6e092b47a53fce3 | 534 | ex | Elixir | lib/abi/parser.ex | atoulme/abi | f3d1f24a27877cdd55e1d1735675263fe4692a56 | [
"MIT"
] | 1 | 2022-03-22T17:49:35.000Z | 2022-03-22T17:49:35.000Z | lib/abi/parser.ex | atoulme/abi | f3d1f24a27877cdd55e1d1735675263fe4692a56 | [
"MIT"
] | null | null | null | lib/abi/parser.ex | atoulme/abi | f3d1f24a27877cdd55e1d1735675263fe4692a56 | [
"MIT"
] | null | null | null | defmodule ABI.Parser do
@moduledoc false
@doc false
def parse!(str, opts \\ []) do
{:ok, tokens, _} = str |> String.to_charlist |> :ethereum_abi_lexer.string
tokens = case opts[:as] do
nil -> tokens
:type -> [{:"expecting type", 1} | tokens]
:selector -> [{:"expecting selector", 1} | t... | 24.272727 | 82 | 0.606742 |
7a721b93ac0c4a67f3514b923d5b5fc1896c9d23 | 4,536 | ex | Elixir | lib/appsignal/error_handler.ex | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | lib/appsignal/error_handler.ex | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | lib/appsignal/error_handler.ex | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | defmodule Appsignal.ErrorHandler do
@moduledoc """
Error handler which sends all crash reports to the AppSignal backend.
When you add `:appsignal` to your application's dependencies, this
error logger will automatically be installed. All processes that are
supervised, like GenServers, Tasks, Agents, Supervis... | 30.857143 | 97 | 0.69731 |
7a7251c19d01e3ee2c2b3cdb36718d1d63d1c79a | 348 | ex | Elixir | lib/exdgraph/config_agent.ex | draftedus/exdgraph | f6df9057e5893bbd41cf3f33cc602cfe7e2524f0 | [
"Apache-2.0"
] | 108 | 2018-02-23T15:20:09.000Z | 2021-05-26T11:48:17.000Z | lib/exdgraph/config_agent.ex | draftedus/exdgraph | f6df9057e5893bbd41cf3f33cc602cfe7e2524f0 | [
"Apache-2.0"
] | 28 | 2018-02-25T09:30:38.000Z | 2021-12-22T03:57:39.000Z | lib/exdgraph/config_agent.ex | draftedus/exdgraph | f6df9057e5893bbd41cf3f33cc602cfe7e2524f0 | [
"Apache-2.0"
] | 14 | 2018-03-01T17:19:56.000Z | 2021-03-02T16:57:58.000Z | defmodule ExDgraph.ConfigAgent do
@moduledoc """
Just hold the user config and offer some utility for accessing it
"""
use Agent
@doc false
def start_link(opts) do
Agent.start_link(fn -> %{opts: opts} end, name: __MODULE__)
end
@doc false
def get_config do
Agent.get(__MODULE__, fn state -> ... | 19.333333 | 67 | 0.686782 |
7a725bd4a41c8c5b5490b149cf6ff22bcaf3b287 | 614 | exs | Elixir | test/opus/pipeline_error_test.exs | hubertlepicki/opus | e1568bc81f678529e812455534ea663bb1ab4394 | [
"MIT"
] | 303 | 2018-09-11T10:19:01.000Z | 2022-03-11T00:57:44.000Z | test/opus/pipeline_error_test.exs | hubertlepicki/opus | e1568bc81f678529e812455534ea663bb1ab4394 | [
"MIT"
] | 24 | 2018-09-26T10:38:05.000Z | 2021-09-29T12:51:28.000Z | test/opus/pipeline_error_test.exs | hubertlepicki/opus | e1568bc81f678529e812455534ea663bb1ab4394 | [
"MIT"
] | 16 | 2018-10-05T18:54:18.000Z | 2022-02-19T18:59:45.000Z | defmodule Opus.PipelineErrorTest do
use ExUnit.Case
alias Opus.PipelineError, as: Subject
describe "error message" do
test "it has info for the pipeline module stage and error" do
error = %Subject{
error: %RuntimeError{},
pipeline: :pipeline,
stage: :stage,
input: 42,
... | 25.583333 | 133 | 0.576547 |
7a725e28a041cda47f1687894065185e9e70fa09 | 637 | ex | Elixir | 18-depth-first-traversing-of-a-tree.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | 18-depth-first-traversing-of-a-tree.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | 18-depth-first-traversing-of-a-tree.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | # Depth-first traversing of a tree.
# ----------------------------------------------------------------
# Call a function `fun` on every node of a tree,
# in depth-first prefix order.
# ----------------------------------------------------------------
# programming-idioms.org/idiom/18/depth-first-traversing-of-a-tree
de... | 28.954545 | 66 | 0.565149 |
7a726dbff12c0c97fcf3396606a64860833f031a | 246 | exs | Elixir | v02/ch14/case2.edit0.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch14/case2.edit0.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch14/case2.edit0.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | list = [100, [1, 2, 3], %{value: 7}, true]
for e <- list do
x = case e do
n when is_integer(n) -> n
l when is_list(l) -> Enum.join(l, ":")
m when is_map(m) -> "value = #{m.value}"
b when is_boolean(b) -> b
end
IO.puts x
end
| 22.363636 | 44 | 0.528455 |
7a7291530385184de7cd1a904c52dc368db98cca | 3,320 | ex | Elixir | lib/vega_web/live/menu_component.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 4 | 2020-03-22T22:12:29.000Z | 2020-07-01T22:32:01.000Z | lib/vega_web/live/menu_component.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2021-03-10T11:53:41.000Z | 2021-10-17T11:18:54.000Z | lib/vega_web/live/menu_component.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2020-03-30T19:03:23.000Z | 2022-01-17T20:21:42.000Z | defmodule Vega.MenuComponent do
@moduledoc """
This components renders the menu for a board. It is responsible for changing some attributes of the board:
* color: set background color of the board
* decriptions: set the optional description of the board
"""
use VegaWeb, :component
import VegaWeb.Views.... | 28.135593 | 152 | 0.627108 |
7a72a15a18c6623f4f3a89ae23ac7134123968a5 | 372 | ex | Elixir | lib/wechat/application.ex | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | lib/wechat/application.ex | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | lib/wechat/application.ex | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | defmodule Wechat.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
{Wechat.Workers.AccessToken, []},
{Wechat.Workers.JSAPITicket, []},
{Task.Supervisor, [name: Wechat.TaskSupervisor]}
]
opts = [strategy: :one_for_one, name: Wechat.Supervisor]
... | 21.882353 | 60 | 0.674731 |
7a72c1015317e914edf50f20896fce48b7a47b45 | 80 | exs | Elixir | test/views/page_view_test.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | defmodule KittehTest.PageViewTest do
use KittehTest.ConnCase, async: true
end
| 20 | 38 | 0.825 |
7a72ddaa7872553ed98d688246919b4caf0d4264 | 59 | ex | Elixir | server/lib/coyote_web/views/page_view.ex | Spectory/SpectoPusher | d1ea61dce43a87169381f04080a7d5829d5d09f9 | [
"MIT"
] | null | null | null | server/lib/coyote_web/views/page_view.ex | Spectory/SpectoPusher | d1ea61dce43a87169381f04080a7d5829d5d09f9 | [
"MIT"
] | 3 | 2017-07-08T20:12:49.000Z | 2017-11-03T11:51:02.000Z | server/lib/coyote_web/views/page_view.ex | Spectory/coyote | d1ea61dce43a87169381f04080a7d5829d5d09f9 | [
"MIT"
] | 1 | 2017-06-16T18:29:44.000Z | 2017-06-16T18:29:44.000Z | defmodule CoyoteWeb.PageView do
use CoyoteWeb, :view
end
| 14.75 | 31 | 0.79661 |
7a72eaaf99d08b98c45b637eff55f9ac9b413111 | 859 | ex | Elixir | lib/multi_tenancex/auth/guardian.ex | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | 30 | 2018-06-27T17:51:53.000Z | 2021-04-24T03:17:55.000Z | lib/multi_tenancex/auth/guardian.ex | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | null | null | null | lib/multi_tenancex/auth/guardian.ex | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | 7 | 2018-07-24T17:56:14.000Z | 2019-12-31T02:10:13.000Z | defmodule MultiTenancex.Guardian do
use Guardian, otp_app: :multi_tenancex
import MultiTenancexWeb.Gettext
alias Comeonin.Bcrypt
alias MultiTenancex.Accounts
def subject_for_token(resource, _claims) do
sub = to_string(resource.id)
{:ok, sub}
end
def resource_from_claims(claims) do
id = cla... | 23.216216 | 66 | 0.710128 |
7a730967b5d2c6230b42d25d47b2d558e6cc15c7 | 2,600 | ex | Elixir | lib/day21.ex | erljef/adventofcode-2017 | ce601ee8b812a0255178a4074f05a577c9288a8f | [
"WTFPL"
] | null | null | null | lib/day21.ex | erljef/adventofcode-2017 | ce601ee8b812a0255178a4074f05a577c9288a8f | [
"WTFPL"
] | null | null | null | lib/day21.ex | erljef/adventofcode-2017 | ce601ee8b812a0255178a4074f05a577c9288a8f | [
"WTFPL"
] | null | null | null | defmodule Day21 do
use Tensor
def read_file(path) do
File.stream!(path)
|> parse_input
end
def parse_input(rows) do
rows
|> Enum.map(&parse_rule/1)
|> Enum.reduce([], fn {from, to}, acc -> acc ++ (variations(from) |> Enum.map(&({&1, to}))) end)
|> Map.new
end
def parse_rule(row) d... | 29.545455 | 238 | 0.613462 |
7a731f4799a4bbc11dccc56640b81ec450228214 | 89 | ex | Elixir | apps/artemis_notify/lib/artemis_notify/router.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_notify/lib/artemis_notify/router.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_notify/lib/artemis_notify/router.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisNotify.Router do
use ArtemisNotify, :router
scope "/" do
end
end
| 12.714286 | 33 | 0.730337 |
7a7323d81ecdbe67c8b7595fa7dc81e7a36fe76c | 33,897 | ex | Elixir | lib/teslamate/vehicles/vehicle.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | lib/teslamate/vehicles/vehicle.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | lib/teslamate/vehicles/vehicle.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle do
use GenStateMachine
require Logger
alias __MODULE__.Summary
alias TeslaMate.{Vehicles, Api, Log, Locations, Settings, Convert}
alias TeslaMate.Settings.CarSettings
alias TeslaApi.Vehicle.State.{Climate, VehicleState, Drive, Charge, VehicleConfig}
alias TeslaApi.V... | 35.457113 | 100 | 0.644511 |
7a7326ad68ea926a38540fd803d36cc7f511c2b4 | 2,812 | ex | Elixir | lib/logger_json/formatters/google_cloud_logger.ex | thulio/logger_json | 3c3c2731772d1d937a61ec8d3d09d9288f4fac8f | [
"MIT"
] | null | null | null | lib/logger_json/formatters/google_cloud_logger.ex | thulio/logger_json | 3c3c2731772d1d937a61ec8d3d09d9288f4fac8f | [
"MIT"
] | null | null | null | lib/logger_json/formatters/google_cloud_logger.ex | thulio/logger_json | 3c3c2731772d1d937a61ec8d3d09d9288f4fac8f | [
"MIT"
] | null | null | null | defmodule LoggerJSON.Formatters.GoogleCloudLogger do
@moduledoc """
Google Cloud Logger formatter.
"""
@behaviour LoggerJSON.Formatter
@doc """
Builds a map that corresponds to Google Cloud Logger
[`LogEntry`](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) format.
"""
def format... | 31.595506 | 94 | 0.669986 |
7a733178fdebc71f1624e12f4da57c1641fd3486 | 285 | ex | Elixir | lib/tracker/events.ex | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | 1 | 2019-11-21T14:33:52.000Z | 2019-11-21T14:33:52.000Z | lib/tracker/events.ex | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | 1 | 2021-03-09T23:50:54.000Z | 2021-03-09T23:50:54.000Z | lib/tracker/events.ex | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | null | null | null | defmodule Tracker.Events do
def position(x, y) do
# Remover a linha abaixo e enviar para o Kafka
TrackerWeb.ClientCanvas.send_position(x, y)
end
def click(x, y) do
# Remover a linha abaixo e enviar para o Kafka
TrackerWeb.ClientCanvas.send_click(x, y)
end
end
| 23.75 | 50 | 0.712281 |
7a7331e7908ce60bbdcd96f0512c3255f45fee27 | 2,462 | ex | Elixir | lib/bing_translator/base.ex | GoCorus/bing_translator | e78a316746530574d27b92ac30777a7368422843 | [
"MIT"
] | 7 | 2016-03-21T20:51:55.000Z | 2020-03-31T03:28:24.000Z | lib/bing_translator/base.ex | GoCorus/bing_translator | e78a316746530574d27b92ac30777a7368422843 | [
"MIT"
] | null | null | null | lib/bing_translator/base.ex | GoCorus/bing_translator | e78a316746530574d27b92ac30777a7368422843 | [
"MIT"
] | 2 | 2017-06-01T02:52:59.000Z | 2020-12-07T03:48:00.000Z | defmodule BingTranslator.Base do
@moduledoc """
Base API Client
"""
defmacro __using__(endpoint) do
quote do
use HTTPoison.Base
alias BingTranslator.Config
@endpoint unquote(endpoint)
# secs
@expires 480
def process_url(path) do
Path.join(@endpoint, path)
... | 24.62 | 92 | 0.559708 |
7a736222217a8f6bd79f41f3363e168a7d7b64eb | 928 | ex | Elixir | apps/thundermoon_web/lib/thundermoon_web/live/lotka_volterra_live/chart.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/thundermoon_web/lib/thundermoon_web/live/lotka_volterra_live/chart.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/thundermoon_web/lib/thundermoon_web/live/lotka_volterra_live/chart.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | defmodule ThundermoonWeb.LotkaVolterraLive.Chart do
use ThundermoonWeb, :live_component
@impl true
def update(assigns, socket) do
{:ok,
socket
|> assign(assigns)
|> set_x_axis()
|> push_data_to_client()}
end
@impl true
def render(assigns) do
~H"""
<div id="chart-container" ... | 25.081081 | 89 | 0.65194 |
7a73c83f0cd367cfa311eff26202fac9df60373c | 114 | ex | Elixir | lib/arc/actions/signed_upload_method.ex | Byzanteam-Labs/ex_arc | 615923775a4b1c81170bd18302978cdf7cfd9b65 | [
"MIT"
] | null | null | null | lib/arc/actions/signed_upload_method.ex | Byzanteam-Labs/ex_arc | 615923775a4b1c81170bd18302978cdf7cfd9b65 | [
"MIT"
] | null | null | null | lib/arc/actions/signed_upload_method.ex | Byzanteam-Labs/ex_arc | 615923775a4b1c81170bd18302978cdf7cfd9b65 | [
"MIT"
] | 1 | 2019-01-24T09:20:46.000Z | 2019-01-24T09:20:46.000Z | defmodule Arc.Actions.SignedUploadMethod do
@callback run(atom(), %Arc.OSSFileObject{}, Keyword.t()) :: %{}
end
| 28.5 | 65 | 0.710526 |
7a73e1e8ff62a64133d70281cf036ecf67c237f1 | 2,769 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_node_slo_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_node_slo_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/google_cloud_saasaccelerator_management_providers_v1_node_slo_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.6 | 444 | 0.751174 |
7a73e33b1c12d89bd4ff2b521debd7b8d3831981 | 553 | exs | Elixir | config/test.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | config/test.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | config/test.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | use Mix.Config
# Configure triplex
config :triplex,
reserved_tenants: [
"www", "api", "admin", "security", "app", "staging", ~r/^db\d+$/
]
# Configure your database
config :triplex, ecto_repos: [Triplex.TestRepo]
config :triplex, Triplex.TestRepo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env(... | 27.65 | 68 | 0.701627 |
7a73ecbfbe99220df9abc3c545cecd03ec022e47 | 1,827 | ex | Elixir | lib/todo_api/accounts.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | 1 | 2020-11-12T08:26:51.000Z | 2020-11-12T08:26:51.000Z | lib/todo_api/accounts.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | null | null | null | lib/todo_api/accounts.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | null | null | null | defmodule TodoApi.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias TodoApi.Repo
alias TodoApi.Accounts.User
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
Repo.all(User)
end
... | 16.026316 | 59 | 0.561576 |
7a742fae3bcd471f16ff473355ce247362d43e23 | 1,123 | exs | Elixir | config/config.exs | AlexVKO/quickbooks-elixir | 0e9f69e2e4a6b538d94bd16b546aa43e65814bbb | [
"MIT"
] | 7 | 2017-01-23T15:50:49.000Z | 2021-04-30T01:20:11.000Z | config/config.exs | AlexVKO/quickbooks-elixir | 0e9f69e2e4a6b538d94bd16b546aa43e65814bbb | [
"MIT"
] | null | null | null | config/config.exs | AlexVKO/quickbooks-elixir | 0e9f69e2e4a6b538d94bd16b546aa43e65814bbb | [
"MIT"
] | 5 | 2017-01-24T00:18:35.000Z | 2017-06-09T04:00:23.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.225806 | 73 | 0.752449 |
7a74766d1354fc60901da52600ddee6cea96f5e3 | 1,717 | exs | Elixir | lib/elixir/test/elixir/access_test.exs | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/access_test.exs | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/access_test.exs | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule AccessTest do
use ExUnit.Case, async: true
# Test nil at compilation time does not fail
# and that @config[:foo] has proper precedence.
@config nil
nil = @config[:foo]
@config [foo: :bar]
:bar = @config[:foo]
@mod :lists
[1, 2, 3] = @mod.flatt... | 30.660714 | 103 | 0.561444 |
7a74edd137a4c1556f9bbdfc193bb8f00897b42f | 116 | exs | Elixir | test/avocado_test.exs | austinsmorris/avocado | 87ed4843be7a728a1099bad6e08f43dcd82a0a3e | [
"MIT"
] | null | null | null | test/avocado_test.exs | austinsmorris/avocado | 87ed4843be7a728a1099bad6e08f43dcd82a0a3e | [
"MIT"
] | null | null | null | test/avocado_test.exs | austinsmorris/avocado | 87ed4843be7a728a1099bad6e08f43dcd82a0a3e | [
"MIT"
] | null | null | null | defmodule AvocadoTest do
use ExUnit.Case
doctest Avocado
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.888889 | 24 | 0.672414 |
7a750683c2f7564a4efbd52578a68b1d8922fc0b | 2,897 | exs | Elixir | test/ecto/validator_test.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | test/ecto/validator_test.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | test/ecto/validator_test.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.ValidatorTest do
use ExUnit.Case, async: true
import Ecto.Validator
defrecord User, name: "jose", age: 27
test "record with no predicate" do
assert record(User.new, []) == []
end
test "record dispatches to a module predicate" do
assert record(User.new, name: present()) == []
as... | 34.082353 | 104 | 0.619261 |
7a7512ceeef832cddf94f7b4593ed112fbe2bb0e | 2,280 | ex | Elixir | lib/toolshed/http.ex | CaptChrisD/toolshed | 99476a90a2c9443ea9ebd6cf88423a1f402f3c26 | [
"Apache-2.0"
] | null | null | null | lib/toolshed/http.ex | CaptChrisD/toolshed | 99476a90a2c9443ea9ebd6cf88423a1f402f3c26 | [
"Apache-2.0"
] | null | null | null | lib/toolshed/http.ex | CaptChrisD/toolshed | 99476a90a2c9443ea9ebd6cf88423a1f402f3c26 | [
"Apache-2.0"
] | null | null | null | defmodule Toolshed.HTTP do
@moduledoc """
Helpers that make HTTP requests
"""
@doc """
Display the local weather
See http://wttr.in/:help for more information.
"""
@spec weather() :: :"do not show this result in output"
def weather() do
# :inets isn't listed in the dependencies so that it can be... | 26.823529 | 92 | 0.61886 |
7a75253d48b700b3e727e57ab6bd270d380f6703 | 1,460 | ex | Elixir | lib/elixir_bank_web.ex | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | lib/elixir_bank_web.ex | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | lib/elixir_bank_web.ex | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | defmodule ElixirBankWeb 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 ElixirBankWeb, :controller
use ElixirBankWeb, :view
The definitions below will be executed for every view,
con... | 22.8125 | 83 | 0.693836 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.