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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38f350d32a577086dcf42183afee0e31d0a9a892 | 615 | ex | Elixir | test/factories/assessments/answer_factory.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | test/factories/assessments/answer_factory.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | test/factories/assessments/answer_factory.ex | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | defmodule Cadet.Assessments.AnswerFactory do
@moduledoc """
Factory for the Answer entity
"""
defmacro __using__(_opts) do
quote do
alias Cadet.Assessments.Answer
def answer_factory do
%Answer{
answer: %{},
autograding_status: :none,
comment: Faker.Lorem.S... | 19.21875 | 64 | 0.562602 |
38f3840e89a2840fabca4eed3df410204ef0bc00 | 271 | ex | Elixir | lib/sugar/templates/supervisor.ex | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 7 | 2016-01-28T13:31:07.000Z | 2021-01-30T06:20:08.000Z | lib/sugar/templates/supervisor.ex | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 3 | 2015-05-08T07:05:17.000Z | 2015-08-23T19:03:33.000Z | lib/sugar/templates/supervisor.ex | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 8 | 2015-05-08T06:31:46.000Z | 2019-05-30T19:56:18.000Z | defmodule Sugar.Templates.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [
worker(Sugar.Templates.Compiler, [])
]
supervise(children, strategy: :one_for_one)
end
end
| 16.9375 | 47 | 0.675277 |
38f390e2e93c5aa1de5ae4f0be82158ad0c483ec | 300 | ex | Elixir | lib/elixir_bank_web/token.ex | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | lib/elixir_bank_web/token.ex | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | lib/elixir_bank_web/token.ex | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | defmodule ElixirBankWeb.Token do
alias ElixirBankWeb.Endpoint
@max_age 86_400
@salt :crypto.strong_rand_bytes(32)
def sign(data), do: Phoenix.Token.sign(Endpoint, @salt, data)
def verify(token, max_age \\ @max_age), do: Phoenix.Token.verify(Endpoint, @salt, token, max_age: max_age)
end
| 27.272727 | 108 | 0.746667 |
38f3965c452bd65badc8b9a896f98990fc10e89e | 2,839 | ex | Elixir | core/web/template_engine.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/web/template_engine.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/web/template_engine.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraCore.TemplateEngine do
@moduledoc """
This is an implementation of `EEx.Engine` that auto-escape dynamic parts within HAML templates.
"""
@behaviour EEx.Engine
alias Antikythera.TemplateSanitizer
@impl true
def init(_o... | 31.898876 | 106 | 0.635083 |
38f3a4a5a333d3b830c40d2848e46c9bbd6c6e9d | 3,232 | ex | Elixir | lib/koans/12_pattern_matching.ex | wee911/elixir-koans-excerise | 71bd62fc3e2be91b654b69d3d791c39aaef9244b | [
"MIT"
] | null | null | null | lib/koans/12_pattern_matching.ex | wee911/elixir-koans-excerise | 71bd62fc3e2be91b654b69d3d791c39aaef9244b | [
"MIT"
] | null | null | null | lib/koans/12_pattern_matching.ex | wee911/elixir-koans-excerise | 71bd62fc3e2be91b654b69d3d791c39aaef9244b | [
"MIT"
] | null | null | null | defmodule PatternMatching do
use Koans
@intro "PatternMatching"
koan "One matches one" do
assert match?(1, ___)
end
koan "Patterns can be used to pull things apart" do
[head | tail] = [1, 2, 3, 4]
assert head == ___
assert tail == ___
end
koan "And then put them back together" do
... | 22.444444 | 101 | 0.595916 |
38f3c4b3353d6df58cf9b7aa74935732e4a53809 | 7,092 | ex | Elixir | lib/strategy/tags.ex | hypno2000/libcluster_ec2 | 4c4d036885d89a25de6aeeb5faf6da7b0add69a5 | [
"MIT"
] | null | null | null | lib/strategy/tags.ex | hypno2000/libcluster_ec2 | 4c4d036885d89a25de6aeeb5faf6da7b0add69a5 | [
"MIT"
] | null | null | null | lib/strategy/tags.ex | hypno2000/libcluster_ec2 | 4c4d036885d89a25de6aeeb5faf6da7b0add69a5 | [
"MIT"
] | null | null | null | defmodule ClusterEC2.Strategy.Tags do
@moduledoc """
This clustering strategy works by loading all instances that have the given
tag associated with them.
All instances must be started with the same app name and have security groups
configured to allow inter-node communication.
config :libcluster,
... | 33.771429 | 175 | 0.624224 |
38f3da5667acc6cdef2a4d24871c75ccd66d390c | 2,545 | ex | Elixir | lib/codes/codes_y78.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_y78.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_y78.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Y78 do
alias IcdCode.ICDCode
def _Y780 do
%ICDCode{full_code: "Y780",
category_code: "Y78",
short_code: "0",
full_name: "Diagnostic and monitoring radiological devices associated with adverse incidents",
short_name: "Diagnostic and monitorin... | 48.942308 | 137 | 0.716699 |
38f46535499d923cbb7e4d44aa476ef5049afabb | 338 | ex | Elixir | apps/re/lib/simulators/policy.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/lib/simulators/policy.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/simulators/policy.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Simulators.Policy do
@moduledoc """
Policy module for user permission on simulators
"""
alias Re.User
def authorize(_, %User{role: "admin"}, _), do: :ok
def authorize(:simulate, %User{}, _), do: :ok
def authorize(_, nil, _), do: {:error, :unauthorized}
def authorize(_, _, _), do: {:error... | 24.142857 | 55 | 0.650888 |
38f505aab5ca70dcc074afef6e09112764a574e0 | 977 | exs | Elixir | config/config.exs | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2016-07-06T02:06:31.000Z | 2016-07-06T02:06:31.000Z | config/config.exs | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2017-04-07T12:58:38.000Z | 2017-04-07T12:58:38.000Z | config/config.exs | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :phoenixAuthKata, PhoenixAuthKata.Endpoint,
url: [... | 32.566667 | 86 | 0.763562 |
38f50731551d4f66a55e57bb2c241aadf44b11c8 | 2,115 | exs | Elixir | test/game/npc_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | test/game/npc_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/game/npc_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.NPCTest do
use Data.ModelCase
import Test.DamageTypesHelper
@room Test.Game.Room
alias Game.NPC
alias Game.NPC.State
alias Game.Session.Registry
setup do
@room.clear_notifies()
@room.clear_says()
@room.clear_leaves()
start_and_clear_damage_types()
insert_damage_typ... | 29.375 | 126 | 0.634043 |
38f50e4d93ecfd0b38f9bc2b948f42851c9dc1f9 | 270 | exs | Elixir | test/parques_web/views/layout_view_test.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | test/parques_web/views/layout_view_test.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | test/parques_web/views/layout_view_test.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | defmodule ParquesWeb.LayoutViewTest do
use ParquesWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30 | 65 | 0.766667 |
38f51861e9fdbd196cdd165628221d77b28364f0 | 2,184 | ex | Elixir | home_page_local/lib/home_page/images/images.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/lib/home_page/images/images.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/lib/home_page/images/images.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | defmodule HomePage.Images do
@moduledoc """
The Images context.
"""
import Ecto.Query, warn: false
alias HomePage.Repo
alias HomePage.Images.Photo
@doc """
Returns the list of photos.
## Examples
iex> list_photos()
[%Photo{}, ...]
"""
def list_photos do
Photo
|> select([u... | 18.666667 | 76 | 0.555861 |
38f52abed96a3e46805aef7f5be06c694037bc84 | 1,219 | exs | Elixir | test/real_world_test.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 44 | 2017-01-22T03:54:32.000Z | 2022-01-24T16:06:19.000Z | test/real_world_test.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 2 | 2018-09-28T03:07:30.000Z | 2022-01-13T00:02:46.000Z | test/real_world_test.exs | wkhere/webassembly | f24b43a7383c73da907095d03bfdf54ea6ecbabe | [
"BSD-2-Clause"
] | 6 | 2018-03-03T16:45:11.000Z | 2021-05-28T16:09:20.000Z | defmodule WebAssembly.RealWorldTest do
use ExUnit.Case
import WebAssembly.TestHelper
use WebAssembly
test "empty p" do
assert (builder do: p) |> flush == "<p></p>"
assert (builder do
div do
p; p
end; p
end) |> flush == "<div><p></p><p></p></div><p></p>"
end
test "em... | 20.661017 | 60 | 0.497129 |
38f563e11aec5e0086a772986662341a113955e3 | 1,679 | ex | Elixir | clients/domains/lib/google_api/domains/v1/model/retrieve_transfer_parameters_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains/lib/google_api/domains/v1/model/retrieve_transfer_parameters_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains/lib/google_api/domains/v1/model/retrieve_transfer_parameters_response.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... | 35.723404 | 166 | 0.764741 |
38f573b24878de88857c842186cd9e6012bc2a29 | 3,188 | ex | Elixir | lib/shadowsocks.ex | lingoer/shadowsocks-ex | 745685e0871b90e9aaf455b3b30fca157527389d | [
"BSD-3-Clause"
] | 44 | 2017-06-23T06:14:54.000Z | 2021-11-17T09:58:16.000Z | lib/shadowsocks.ex | lingoer/shadowsocks-ex | 745685e0871b90e9aaf455b3b30fca157527389d | [
"BSD-3-Clause"
] | 5 | 2017-06-23T09:56:16.000Z | 2017-11-28T00:34:53.000Z | lib/shadowsocks.ex | lingoer/shadowsocks-ex | 745685e0871b90e9aaf455b3b30fca157527389d | [
"BSD-3-Clause"
] | 8 | 2017-06-26T08:41:33.000Z | 2021-07-15T12:01:46.000Z | defmodule Shadowsocks do
@moduledoc """
The Shadowsocks.
This module defines common apis to start,update,stop shadowsocks listeners.
### start a listener
Shadowsocks.start(args)
the `args` is a keyword list, fields:
* `type` required `atom` - the connection type, `:client` or `:server` or custo... | 28.464286 | 131 | 0.644918 |
38f5984d39e18aedd940489da162e07a08834b88 | 1,722 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/enable_vpc_service_controls_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/enable_vpc_service_controls_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/enable_vpc_service_controls_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.44 | 139 | 0.74971 |
38f59c2593973f6fc10a86435354d5aa13226974 | 976 | ex | Elixir | apps/nightcrawler/lib/nightcrawler/marvel/character.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/lib/nightcrawler/marvel/character.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/lib/nightcrawler/marvel/character.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | defmodule Nightcrawler.Marvel.Character do
@moduledoc false
@behaviour Nightcrawler.Marvel.Entity
use Ecto.Schema
import Ecto.Changeset
alias Nightcrawler.Parser
schema "characters" do
field(:description, :string)
field(:modified, :utc_datetime)
field(:name, :string)
embeds_one(:thumbnail,... | 25.025641 | 88 | 0.69877 |
38f59c8a99b39978c4b68edb24020789c85dda73 | 2,133 | exs | Elixir | lib/iex/test/test_helper.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/iex/test/test_helper.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/iex/test/test_helper.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | :ok = Application.start(:iex)
IEx.configure([colors: [enabled: false]])
ExUnit.start [trace: "--trace" in System.argv]
defmodule IEx.Case do
use ExUnit.CaseTemplate
@moduledoc false
# Provides convenience functions for testing IEx-related functionality.
# Use this module inside your test module like this:
#... | 28.065789 | 89 | 0.682138 |
38f5bea3ebbb680b42c2d34b704e21a82b0d9239 | 442 | ex | Elixir | lib/beam_to_ex_ast/atom.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 16 | 2016-02-12T15:15:58.000Z | 2021-08-24T21:48:34.000Z | lib/beam_to_ex_ast/atom.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 1 | 2016-02-17T04:58:38.000Z | 2016-02-17T04:58:38.000Z | lib/beam_to_ex_ast/atom.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 2 | 2016-02-17T03:21:23.000Z | 2016-03-08T09:23:27.000Z | import ProtocolEx
alias BeamToExAst.Translate
defimplEx BeamToExAst.Atom, {:atom, _ln, _a1}, for: Translate do
alias BeamToExAst.Translate
def to_elixir({:atom, ln, caller}, %{parents: [:call | _]} = opts) do
opts = Map.update!(opts, :parents, &[:atom | &1])
{params, opts} = Map.pop(opts, :call_params)
... | 26 | 71 | 0.658371 |
38f5d5ffbf4b6c759c69ced5fa52eb94fe75a757 | 397 | ex | Elixir | 35-first-class-function-compose.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | 35-first-class-function-compose.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | 35-first-class-function-compose.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | # First-class function : compose.
# ------------------------------------------
# Implement a function compose (A -> C)
# with parameters f (A -> B) and g (B -> C),
# which returns composition function g ∘ f.
# ------------------------------------------
# programming-idioms.org/idiom/35/first-class-function-compose
def... | 28.357143 | 62 | 0.521411 |
38f5f6e3196afb231e4f4c783d1eaa9ce3bb8870 | 1,342 | ex | Elixir | lib/exzeitable/html/show_button.ex | clayscode/exzeitable | 312e7a0aebda51f5cd3ccee800c1d1affd9d4248 | [
"MIT"
] | 138 | 2019-10-04T19:55:35.000Z | 2022-03-31T10:24:32.000Z | lib/exzeitable/html/show_button.ex | EnzymeCorp/exzeitable | 74c02ab82de56aaf150006f05836a65a7d47697f | [
"MIT"
] | 127 | 2019-10-03T21:51:27.000Z | 2022-03-31T02:57:00.000Z | lib/exzeitable/html/show_button.ex | EnzymeCorp/exzeitable | 74c02ab82de56aaf150006f05836a65a7d47697f | [
"MIT"
] | 14 | 2019-10-04T19:55:41.000Z | 2022-03-27T04:47:30.000Z | defmodule Exzeitable.HTML.ShowButton do
@moduledoc "Show buttons and the buttons that toggle their visibility"
use Exzeitable.HTML.Helpers
alias Exzeitable.HTML.{Filter, Format}
@spec show_buttons(map) :: [any()] | String.t()
def show_buttons(%{disable_hide: true}), do: ""
def show_buttons(%{show_field_bu... | 26.313725 | 77 | 0.658718 |
38f61d9f3eb284ad615541c66c859b9ed9ed879c | 7,044 | ex | Elixir | lib/nostrum/constants.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/constants.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/constants.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Constants do
@moduledoc false
def base_url, do: "https://discord.com/api/v7"
def cdn_url, do: "https://cdn.discordapp.com"
def gateway, do: "/gateway"
def gateway_bot, do: "/gateway/bot"
def channel(channel_id), do: "/channels/#{channel_id}"
def channel_messages(channel_id), do: "/chan... | 38.703297 | 97 | 0.691794 |
38f6267a7f537e2a2f54b93743ab60eb785e3431 | 3,460 | exs | Elixir | test/login/session_test.exs | Fibrasek/doorman | 1b32fc3d3dd39d077d69ad1d3ef62f80f3af59f4 | [
"MIT"
] | null | null | null | test/login/session_test.exs | Fibrasek/doorman | 1b32fc3d3dd39d077d69ad1d3ef62f80f3af59f4 | [
"MIT"
] | null | null | null | test/login/session_test.exs | Fibrasek/doorman | 1b32fc3d3dd39d077d69ad1d3ef62f80f3af59f4 | [
"MIT"
] | null | null | null | defmodule Doorman.Login.SessionTest do
use Doorman.ConnCase
alias Doorman.Login.Session
@valid_id 1
@invalid_id 2
@valid_secret "abc"
@invalid_secret "def"
defmodule SuccessRepoTemplate do
def generate_get_by(expected_secret) do
fn (Fake, opts) ->
id = Keyword.get(opts, :id)
s... | 32.336449 | 114 | 0.687861 |
38f666c92a8979b175fa4344a95b3703f1b062a5 | 159,589 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/api/projects.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/api/projects.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/api/projects.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.217492 | 1,162 | 0.610738 |
38f69e32d9f798c88ffbb7a8f32c5ff728525c6d | 82,970 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/api/projects.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... | 47.711328 | 1,521 | 0.637845 |
38f6c8b0b98e84fe9440f9350e9c7e7fbdeba4c8 | 456 | ex | Elixir | lib/class_roll/resource/classes/members/attendance.ex | mazurka/example-class-roll | 50e55eca6e0e3dce5214d1bb9b03a0421c0ed879 | [
"MIT"
] | null | null | null | lib/class_roll/resource/classes/members/attendance.ex | mazurka/example-class-roll | 50e55eca6e0e3dce5214d1bb9b03a0421c0ed879 | [
"MIT"
] | null | null | null | lib/class_roll/resource/classes/members/attendance.ex | mazurka/example-class-roll | 50e55eca6e0e3dce5214d1bb9b03a0421c0ed879 | [
"MIT"
] | null | null | null | defmodule ClassRoll.Resource.Classes.Members.Attendance do
use Mazurka.Resource
param member do
Member.get(value)
end
param class do
Class.get(value)
end
let dates = Date.list_by_member(class, member)
mediatype Mazurka.Mediatype.Hyperjson do
action do
%{
"collection" => for d... | 19.826087 | 82 | 0.664474 |
38f6d282e7b5a76742d1053ece36618a7f8827a3 | 12,130 | ex | Elixir | lib/absinthe/schema/notation/sdl_render.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | lib/absinthe/schema/notation/sdl_render.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | lib/absinthe/schema/notation/sdl_render.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | defmodule Absinthe.Schema.Notation.SDL.Render do
@moduledoc false
import Inspect.Algebra
alias Absinthe.Blueprint
@line_width 120
def inspect(term, %{pretty: true}) do
term
|> render()
|> concat(line())
|> format(@line_width)
|> to_string
end
def inspect(term, options) do
Inspe... | 25.429769 | 101 | 0.612943 |
38f6e8c5a8d9851bc4c8dc0fa4c447e9c4890c8a | 238 | exs | Elixir | config/config.exs | caredox/aws_ssm_provider | 50514804f366ece570734184adc76296cb197262 | [
"MIT"
] | 9 | 2019-07-15T17:30:54.000Z | 2021-02-22T15:46:17.000Z | config/config.exs | motherknows/aws_ssm_provider | 50514804f366ece570734184adc76296cb197262 | [
"MIT"
] | 2 | 2019-08-12T02:04:34.000Z | 2020-03-26T20:21:51.000Z | config/config.exs | caredox/aws_ssm_provider | 50514804f366ece570734184adc76296cb197262 | [
"MIT"
] | 3 | 2020-01-16T21:18:58.000Z | 2021-03-21T16:41:39.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
| 29.75 | 61 | 0.747899 |
38f6ee1cefeb2e99dc9d39145289e356bca5dbdc | 1,070 | ex | Elixir | lib/movement/builders/revision_uncorrect_all.ex | charlesdemers/accent | eeea52feb30d16ada5023c05fef37c08c267eff0 | [
"BSD-3-Clause"
] | null | null | null | lib/movement/builders/revision_uncorrect_all.ex | charlesdemers/accent | eeea52feb30d16ada5023c05fef37c08c267eff0 | [
"BSD-3-Clause"
] | null | null | null | lib/movement/builders/revision_uncorrect_all.ex | charlesdemers/accent | eeea52feb30d16ada5023c05fef37c08c267eff0 | [
"BSD-3-Clause"
] | null | null | null | defmodule Movement.Builders.RevisionUncorrectAll do
@behaviour Movement.Builder
import Movement.Context, only: [assign: 3]
alias Movement.Mappers.Operation, as: OperationMapper
alias Accent.Scopes.Translation, as: TranslationScope
alias Accent.{Repo, Translation}
@action "uncorrect_conflict"
def build... | 28.157895 | 99 | 0.72243 |
38f716ee14af00fd8a46ef76c8caf9c2ba6d6798 | 415 | ex | Elixir | dags/wrong_dag.ex | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | dags/wrong_dag.ex | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | dags/wrong_dag.ex | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | defmodule TestDagWrong do
@behaviour Erflow.Base.Dag
import Erflow.Base.Dag
@impl Erflow.Base.Dag
def build() do
t1 = Erflow.Base.Task.new(%{name: :task1})
t2 = Erflow.Base.Task.new(%{name: :task2})
t3 = Erflow.Base.Task.new(%{name: :task3})
t4 = Erflow.Base.Task.new(%{name: :task4})
dag ... | 24.411765 | 77 | 0.60241 |
38f720f659eb09ba327d061b9b1ac712e3c4d2d1 | 242 | exs | Elixir | test/growth_book/feature_test.exs | jeroenvisser101/growthbook-elixir | 1f9009c6dda77814623f3a30de8ea6d8ecdd3bc0 | [
"MIT"
] | 4 | 2022-01-30T04:25:43.000Z | 2022-02-02T03:06:32.000Z | test/growth_book/feature_test.exs | jeroenvisser101/growthbook-elixir | 1f9009c6dda77814623f3a30de8ea6d8ecdd3bc0 | [
"MIT"
] | null | null | null | test/growth_book/feature_test.exs | jeroenvisser101/growthbook-elixir | 1f9009c6dda77814623f3a30de8ea6d8ecdd3bc0 | [
"MIT"
] | null | null | null | defmodule GrowthBook.FeatureTest do
use ExUnit.Case, async: true
alias GrowthBook.Feature
doctest GrowthBook.Feature
describe "%Feature{}" do
test "doesn't enforce any keys" do
assert struct!(Feature, [])
end
end
end
| 20.166667 | 38 | 0.706612 |
38f7696fcd321a8642b66030674630600c2a95bd | 1,619 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_native_ad_logo.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_native_ad_logo.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_native_ad_logo.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.54717 | 88 | 0.704138 |
38f76fb71beeedd398457ea96b5e020084d5d34e | 766 | exs | Elixir | test/superwatch/api_test.exs | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | test/superwatch/api_test.exs | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | test/superwatch/api_test.exs | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | # defmodule Superwatch.ApiTest do
# use ExUnit.Case
#
# alias Superwatch.Api
# alias Superwatch.Svc.{Watcher, Worker}
# alias Superwatch.Svc.Store.{Agents, Prefs}
#
# setup do
# Prefs.setup_test_prefs()
# start_supervised!({Agents, []})
# start_supervised!({Prefs, []})
# start_supervised!({Wat... | 23.212121 | 46 | 0.625326 |
38f77442202098d07ca4a1eceafb4601cc8ba51f | 3,981 | ex | Elixir | clients/games/lib/google_api/games/v1/model/application.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/application.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/application.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 46.835294 | 183 | 0.680733 |
38f7969cede542c28048634fe5787c96499953b7 | 152 | exs | Elixir | test/test_helper.exs | redmaner/finch_jsonrpc | 985738c52070684b2c09e87a060a5f1d5be355f6 | [
"MIT"
] | null | null | null | test/test_helper.exs | redmaner/finch_jsonrpc | 985738c52070684b2c09e87a060a5f1d5be355f6 | [
"MIT"
] | null | null | null | test/test_helper.exs | redmaner/finch_jsonrpc | 985738c52070684b2c09e87a060a5f1d5be355f6 | [
"MIT"
] | null | null | null | ExUnit.start()
Application.ensure_all_started(:mox)
Mox.defmock(FinchMock, for: MockBehaviourFinch)
Mox.defmock(SystemMock, for: MockBehaviourSystem)
| 21.714286 | 49 | 0.822368 |
38f796dbbb94e027be47a9cd717c50a8b471e94d | 2,219 | exs | Elixir | test/wallaby/driver/process_workspace_test.exs | TheFirstAvenger/wallaby | f615b7d74b75629a9a0c2c95bd7fe5817fa2c310 | [
"MIT"
] | null | null | null | test/wallaby/driver/process_workspace_test.exs | TheFirstAvenger/wallaby | f615b7d74b75629a9a0c2c95bd7fe5817fa2c310 | [
"MIT"
] | null | null | null | test/wallaby/driver/process_workspace_test.exs | TheFirstAvenger/wallaby | f615b7d74b75629a9a0c2c95bd7fe5817fa2c310 | [
"MIT"
] | null | null | null | defmodule Wallaby.Driver.ProcessWorkspaceTest do
use ExUnit.Case, async: true
alias Wallaby.Driver.ProcessWorkspace
alias Wallaby.Driver.TemporaryPath
defmodule TestServer do
use GenServer
def start_link, do: GenServer.start_link(__MODULE__, [])
def stop(pid), do: GenServer.stop(pid)
@impl G... | 26.105882 | 88 | 0.675079 |
38f7cd2a7932a5aa91563e7857be6881280bf5ee | 1,254 | exs | Elixir | test/xema/all_of_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/xema/all_of_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/xema/all_of_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.AllOfTest do
use ExUnit.Case, async: true
import Xema, only: [validate: 2]
alias Xema.ValidationError
describe "keyword all_of:" do
setup do
%{
schema:
Xema.new({
:any,
all_of: [:integer, {:integer, minimum: 0}]
})
}
end
... | 22.392857 | 73 | 0.503987 |
38f7cfb130571bb6fad069f0e273f48b3fc08b88 | 21,994 | ex | Elixir | lib/read.ex | sasagawa888/Elxlog | da32577c62590bfcf33485bbb3714e53054dd3d0 | [
"BSD-2-Clause"
] | 20 | 2019-08-20T03:43:03.000Z | 2021-11-14T17:10:17.000Z | lib/read.ex | sasagawa888/Elxlog | da32577c62590bfcf33485bbb3714e53054dd3d0 | [
"BSD-2-Clause"
] | 3 | 2019-08-09T09:19:23.000Z | 2020-01-13T01:00:55.000Z | lib/read.ex | sasagawa888/Elxlog | da32577c62590bfcf33485bbb3714e53054dd3d0 | [
"BSD-2-Clause"
] | 6 | 2019-12-02T08:47:30.000Z | 2021-04-23T04:51:59.000Z | # ---------------read----------------------------------
defmodule Read do
@moduledoc """
Read module is input functions of Elxlog.
main function is parse/2
parse/2 recieve string from stdio or file
and return listed predicate or clause data
{return_val, buffer}
"""
@doc """
lowercase or number char... | 23.373007 | 93 | 0.509093 |
38f7e508c00cdebcb6803dce7c6a43ef5a5b60ff | 4,573 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/android_instrumentation_test.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/android_instrumentation_test.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/android_instrumentation_test.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... | 64.408451 | 505 | 0.736059 |
38f7e6767685e6d1c6cb82f54d50164ef633f3f9 | 7,692 | ex | Elixir | lib/mix/lib/mix/dep/loader.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/lib/mix/dep/loader.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/loader.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | # This module is responsible for loading dependencies
# of the current project. This module and its functions
# are private to Mix.
defmodule Mix.Dep.Loader do
@moduledoc false
@doc """
Gets all direct children of the current `Mix.Project`
as a `Mix.Dep` struct. Umbrella project dependencies
are included as ... | 27.471429 | 111 | 0.577483 |
38f80f9ef4e30e2b779b18faa37b55949f3773e2 | 733 | ex | Elixir | test/lib/fake_module.ex | ianrumford/testing_individual_elixir_doctests | adac33aa177db7b02c3c291be164179e268ae102 | [
"MIT"
] | null | null | null | test/lib/fake_module.ex | ianrumford/testing_individual_elixir_doctests | adac33aa177db7b02c3c291be164179e268ae102 | [
"MIT"
] | null | null | null | test/lib/fake_module.ex | ianrumford/testing_individual_elixir_doctests | adac33aa177db7b02c3c291be164179e268ae102 | [
"MIT"
] | null | null | null | defmodule FakeModule do
@moduledoc ~S"""
Fake Module To Demonstrate Testing Individual Doctests
"""
# these vars will be used for args in the defdelegates below
@args_vars 5 |> Macro.generate_arguments(__MODULE__)
# get the names and arities of the real module's function
@funs :functions |> RealModule.... | 24.433333 | 93 | 0.68895 |
38f821176a6a6cbcfc5ea588c7c3ef89501af429 | 72 | exs | Elixir | test/views/layout_view_test.exs | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | defmodule Elasr.LayoutViewTest do
use Elasr.ConnCase, async: true
end
| 18 | 33 | 0.805556 |
38f83ae1cc460a4d68b57f2fbfd145e1f36bb267 | 1,152 | exs | Elixir | mix.exs | moxley/bamboo_ses | 4756e66ace8772e800dbb96fc1da9f1f7e6c70e7 | [
"MIT"
] | null | null | null | mix.exs | moxley/bamboo_ses | 4756e66ace8772e800dbb96fc1da9f1f7e6c70e7 | [
"MIT"
] | null | null | null | mix.exs | moxley/bamboo_ses | 4756e66ace8772e800dbb96fc1da9f1f7e6c70e7 | [
"MIT"
] | null | null | null | defmodule BambooSes.MixProject do
use Mix.Project
def project do
[
app: :bamboo_ses,
elixir: "~> 1.6",
description: description(),
deps: deps(),
docs: docs(),
package: package(),
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/kalys/bamboo_se... | 21.333333 | 65 | 0.541667 |
38f868ed94987f32f7845bcc10ae8d6c0778cab3 | 79 | ex | Elixir | lib/prepay_and_use_web/views/user_settings_view.ex | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | lib/prepay_and_use_web/views/user_settings_view.ex | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | lib/prepay_and_use_web/views/user_settings_view.ex | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | defmodule PrepayAndUseWeb.UserSettingsView do
use PrepayAndUseWeb, :view
end
| 19.75 | 45 | 0.848101 |
38f881866dd77d0836ffc4d512e37c906d50bbaf | 1,896 | ex | Elixir | lib/stripe/tokens.ex | gitlunar/stripity-stripe | a45079ec3fcc2c80f686297614f78c52c41c6b80 | [
"BSD-3-Clause"
] | 1 | 2020-05-03T15:41:49.000Z | 2020-05-03T15:41:49.000Z | lib/stripe/tokens.ex | gitlunar/stripity-stripe | a45079ec3fcc2c80f686297614f78c52c41c6b80 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/tokens.ex | gitlunar/stripity-stripe | a45079ec3fcc2c80f686297614f78c52c41c6b80 | [
"BSD-3-Clause"
] | 2 | 2016-08-23T21:06:49.000Z | 2020-02-13T16:04:16.000Z | defmodule Stripe.Tokens do
@moduledoc """
API for working with Tokens at Stripe. Through this API you can:
-create
-retrieve
tokens for both credit card and bank account allowing you to use them instead of a credit card number in various operations.
Supports Connect workflow by allowing to pass in any API ... | 22.305882 | 126 | 0.593882 |
38f88742d581db2edf60a39124f889492dabafc4 | 476 | exs | Elixir | config/test.exs | korczis/maze | 128ca3958c9e62c4fdc53efa72799283d66b056d | [
"MIT"
] | null | null | null | config/test.exs | korczis/maze | 128ca3958c9e62c4fdc53efa72799283d66b056d | [
"MIT"
] | 3 | 2016-11-22T20:23:00.000Z | 2016-11-22T20:23:20.000Z | config/test.exs | korczis/maze | 128ca3958c9e62c4fdc53efa72799283d66b056d | [
"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 :maze, Maze.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :maze, Maze.Repo,
adapter: ... | 23.8 | 56 | 0.72479 |
38f89b2292f7a3958e649363d11421c6d5333c73 | 519 | ex | Elixir | lib/json_rpc/processor.ex | versus-systems/json_rpc_toolkit | 7fd2181e342d86cab029f8975ef78afe519fed8e | [
"MIT"
] | 2 | 2020-04-04T17:56:17.000Z | 2021-11-04T17:14:15.000Z | lib/json_rpc/processor.ex | versus-systems/json_rpc_toolkit | 7fd2181e342d86cab029f8975ef78afe519fed8e | [
"MIT"
] | 2 | 2021-07-01T23:23:54.000Z | 2021-08-16T22:18:28.000Z | lib/json_rpc/processor.ex | versus-systems/json_rpc_toolkit | 7fd2181e342d86cab029f8975ef78afe519fed8e | [
"MIT"
] | null | null | null | defmodule JSONRPC.Processor do
@callback init(keyword()) :: keyword()
@callback call(JSONRPC.Request.t(), keyword()) :: JSONRPC.Request.t()
defmacro __using__(_opts) do
quote do
@behaviour JSONRPC.Processor
@spec init(keyword()) :: keyword()
def init(opts), do: opts
@spec call(JSONR... | 24.714286 | 71 | 0.641618 |
38f8b7c784203e571418a14f866c249b69c03a19 | 1,751 | exs | Elixir | mix.exs | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | 1 | 2018-05-13T19:28:48.000Z | 2018-05-13T19:28:48.000Z | mix.exs | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | null | null | null | mix.exs | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | null | null | null | defmodule Reanix.Mixfile do
use Mix.Project
def project do
[
app: :reanix,
version: "0.0.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
de... | 26.938462 | 79 | 0.569389 |
38f8beee981118d0cf1e32c32eddfecb00b2f631 | 15,585 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/api/column.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/api/column.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/api/column.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 42.69863 | 187 | 0.624832 |
38f8e591307fa05ff1ccbc31d9d8b98d6e4ac7d0 | 9,038 | ex | Elixir | lib/ex_platform/accounts.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | 129 | 2021-05-30T10:10:59.000Z | 2022-03-27T14:42:48.000Z | lib/ex_platform/accounts.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | 48 | 2021-05-30T21:34:03.000Z | 2022-02-21T14:20:04.000Z | lib/ex_platform/accounts.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | 12 | 2021-05-30T22:03:49.000Z | 2022-02-08T19:59:16.000Z | defmodule ExPlatform.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias ExPlatform.Repo
alias ExPlatform.Accounts.{User, UserToken, UserNotifier}
## Database getters
@doc """
Gets a user by email.
## Examples
iex> get_user_by_email("foo@example.com")... | 25.822857 | 116 | 0.664196 |
38f8f1f76bdf462d68927a411829a0e4080d3efe | 1,290 | exs | Elixir | test/pbt/unknown_fields_test.exs | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 209 | 2020-11-19T11:17:27.000Z | 2022-03-20T12:47:31.000Z | test/pbt/unknown_fields_test.exs | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 101 | 2020-11-22T20:20:11.000Z | 2022-03-06T16:09:26.000Z | test/pbt/unknown_fields_test.exs | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 35 | 2020-11-26T14:45:13.000Z | 2022-03-22T23:22:00.000Z | defmodule Protobuf.UnknownFieldsTest do
use ExUnit.Case, async: true
use ExUnitProperties
import Protobuf.Wire.Types
alias ProtobufTestMessages.Proto3.TestAllTypesProto3
property "round-trip encoding and decoding of unknown fields" do
unknown_field_generator = unknown_field_generator()
check all u... | 33.947368 | 97 | 0.710078 |
38f90bf412af86a9718c641a5a7eb354255e78ab | 1,129 | ex | Elixir | backend/apps/students_crm_v2/lib/students_crm_v2/interactions/document/create.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | backend/apps/students_crm_v2/lib/students_crm_v2/interactions/document/create.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | 50 | 2018-07-29T09:17:35.000Z | 2019-02-26T05:23:34.000Z | backend/apps/students_crm_v2/lib/students_crm_v2/interactions/document/create.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | defmodule StudentsCrmV2.Interactions.Document.Create do
@moduledoc false
alias Ecto.Changeset
alias StudentsCrmV2.Models.{Document, User}
alias StudentsCrmV2.Repo
@valid_kinds ["identification", "parents_permission"]
@spec execute(
kind :: String.t(),
file :: Plug.Upload.t(),
... | 26.255814 | 97 | 0.64659 |
38f94a153bb8f608d6f11d740bbbab5d76d44ed6 | 1,571 | ex | Elixir | lib/pingboard/token_holder.ex | jgchristopher/pingboard-elixir | b828d220370ee7a1c3fec9e9c25a8df0d2e8b90f | [
"MIT"
] | null | null | null | lib/pingboard/token_holder.ex | jgchristopher/pingboard-elixir | b828d220370ee7a1c3fec9e9c25a8df0d2e8b90f | [
"MIT"
] | null | null | null | lib/pingboard/token_holder.ex | jgchristopher/pingboard-elixir | b828d220370ee7a1c3fec9e9c25a8df0d2e8b90f | [
"MIT"
] | null | null | null | defmodule Pingboard.TokenHolder do
# access token is valid for 7200 seconds
@max_age 72000000000
def start_link(client_id,client_secret) do
# Start an Agent to store the client_id,client_secret,access_token, and time the token was retrieved
Agent.start_link(
fn() ->
{access_token, retrieve... | 35.704545 | 156 | 0.670274 |
38f9a0d19e0f967aa83bd430bb523e34fbf5ff4a | 1,076 | ex | Elixir | apps/neoscan_web/lib/neoscan_web/controllers/address_controller.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoscan_web/lib/neoscan_web/controllers/address_controller.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_web/lib/neoscan_web/controllers/address_controller.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule NeoscanWeb.AddressController do
use NeoscanWeb, :controller
alias Neoscan.Addresses
alias Neoscan.BalanceHistories
def index(conn, %{"address" => address_hash}) do
Addresses.get_address_by_hash_for_view(address_hash)
|> route(conn, "1")
end
def go_to_page(conn, %{"address" => address_ha... | 23.391304 | 77 | 0.657063 |
38f9bb556e518ba253cd98df3beec49a63a0e363 | 2,735 | exs | Elixir | kousa/config/releases.exs | overlisted/dogehouse | fe53538aae829831cb0b04bee09fd24ed96ad097 | [
"MIT"
] | 1 | 2021-04-19T19:02:21.000Z | 2021-04-19T19:02:21.000Z | kousa/config/releases.exs | overlisted/dogehouse | fe53538aae829831cb0b04bee09fd24ed96ad097 | [
"MIT"
] | null | null | null | kousa/config/releases.exs | overlisted/dogehouse | fe53538aae829831cb0b04bee09fd24ed96ad097 | [
"MIT"
] | null | null | null | import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
environment variable DATABASE_URL is missing.
For example: ecto://USER:PASS@HOST/DATABASE
"""
config :kousa, Beef.Repo, url: database_url
config :kousa,
ben_github_id:
System.get_env("BEN_GITHUB_ID") ||
raise("""
... | 29.728261 | 86 | 0.678976 |
38f9cc3045732f2310638ae6764133a54853a3d2 | 727 | ex | Elixir | lib/demo_fixtures_web/gettext.ex | Aridjar/demo_fixtures | 3f427c3bd9aa6debab21b75122e0ba164f7fc217 | [
"MIT"
] | null | null | null | lib/demo_fixtures_web/gettext.ex | Aridjar/demo_fixtures | 3f427c3bd9aa6debab21b75122e0ba164f7fc217 | [
"MIT"
] | 2 | 2021-03-09T19:18:16.000Z | 2021-05-10T16:10:11.000Z | lib/demo_fixtures_web/gettext.ex | Aridjar/demo_fixtures | 3f427c3bd9aa6debab21b75122e0ba164f7fc217 | [
"MIT"
] | null | null | null | defmodule DemoFixturesWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import DemoFixturesWeb.Gettext
# Simple translation
gettext(... | 29.08 | 72 | 0.685007 |
38f9ddf128e7a781bcd3bf50ac366cef98c77036 | 1,184 | exs | Elixir | elixir/set1/challenge5/test/cryptic_test.exs | sdball/matasano-crypto-challenges | c539a605b4f709c7c202216ecedd7355e6b4a1b9 | [
"MIT"
] | null | null | null | elixir/set1/challenge5/test/cryptic_test.exs | sdball/matasano-crypto-challenges | c539a605b4f709c7c202216ecedd7355e6b4a1b9 | [
"MIT"
] | null | null | null | elixir/set1/challenge5/test/cryptic_test.exs | sdball/matasano-crypto-challenges | c539a605b4f709c7c202216ecedd7355e6b4a1b9 | [
"MIT"
] | null | null | null | defmodule CrypticTest do
use ExUnit.Case
doctest Cryptic
describe "Cryptic.single_byte_xor/2" do
test "performs an xor of the key against each byte of the given binary" do
text = "qpssp"
key = <<9>>
assert Cryptic.single_byte_xor(text, key) == "xyzzy"
end
end
describe "Cryptic.most... | 31.157895 | 84 | 0.678209 |
38f9ebd20f8fea50bc2df7a4709c5deb1362ec67 | 243 | exs | Elixir | tests/dummy/priv/repo/migrations/2016041605594822_alter_kitchens.exs | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/priv/repo/migrations/2016041605594822_alter_kitchens.exs | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | tests/dummy/priv/repo/migrations/2016041605594822_alter_kitchens.exs | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Dummy.Repo.Migrations.AlterKitchens do
use Ecto.Migration
def change do
alter table(:kitchens) do
add :shop_id, references(:shops, on_delete: :nothing)
end
create index(:kitchens, [:shop_id])
end
end | 18.692308 | 59 | 0.683128 |
38f9f86f3cc1c7f0d37e68abcb763df4eb2d7745 | 2,260 | ex | Elixir | lib/tune_web.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | null | null | null | lib/tune_web.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | null | null | null | lib/tune_web.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | null | null | null | defmodule TuneWeb do
@moduledoc false
@local_ip "192.168.15.5"
def subscribe(channel) do
Phoenix.PubSub.subscribe(Tune.PubSub, channel)
end
def broadcast(channel, event, payload) do
Phoenix.PubSub.broadcast(Tune.PubSub, channel, {event, payload})
end
def session_qr_code(socket_or_conn, session_... | 21.730769 | 78 | 0.670796 |
38fa050c7d8bb404e9bc41fb2bdc9ab8e330b62c | 3,571 | ex | Elixir | lib/type_check/internals/to_typespec.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/internals/to_typespec.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/internals/to_typespec.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | defmodule TypeCheck.Internals.ToTypespec do
def full_rewrite(ast, env) do
Macro.postwalk(ast, &rewrite(&1, env))
end
# TODO incorporate %Macro.Env{}.functions
# to check whether TypeCheck.Builtin was imported
# to see what kind of rewrite we should do.
def rewrite(ast, env) do
builtin_imports = env... | 24.128378 | 77 | 0.504621 |
38fa1d0efffb01d364cfe27004ec0f35e601dfed | 1,528 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disks_add_resource_policies_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disks_add_resource_policies_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/disks_add_resource_policies_request.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... | 32.510638 | 163 | 0.749346 |
38fa4aa7729c1cebcd2524378fe96239de6d8e75 | 1,581 | ex | Elixir | test/support/model_case.ex | plank-tools/oauth2_example | 22e9ad9d41676bd161ee854511babf814bf701e7 | [
"MIT"
] | 145 | 2015-01-07T21:29:53.000Z | 2022-01-08T18:27:35.000Z | test/support/model_case.ex | plank-tools/oauth2_example | 22e9ad9d41676bd161ee854511babf814bf701e7 | [
"MIT"
] | 19 | 2015-02-22T04:20:09.000Z | 2018-11-20T15:06:26.000Z | test/support/model_case.ex | plank-tools/oauth2_example | 22e9ad9d41676bd161ee854511babf814bf701e7 | [
"MIT"
] | 56 | 2015-04-10T05:19:05.000Z | 2021-12-02T19:44:06.000Z | defmodule OAuth2Example.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async... | 26.35 | 81 | 0.693865 |
38fa537b73bd93ea9540e57ee88e4fcad355c993 | 3,362 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/admin_quota_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/admin_quota_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/admin_quota_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 54.225806 | 610 | 0.710886 |
38fa785dcd96c0c365198288a07792c52ebbf8b2 | 2,524 | exs | Elixir | mix.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 3 | 2020-05-01T17:14:23.000Z | 2021-05-15T16:22:43.000Z | mix.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 13 | 2019-08-14T15:44:24.000Z | 2021-09-01T20:17:55.000Z | mix.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | null | null | null | defmodule GifMe.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: File.read!("VERSION") |> String.trim(),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: dialyzer(),
test_coverage: [tool: ExCoveralls],
pre... | 30.409639 | 98 | 0.574089 |
38face0668da875128acf6c311582604d0b57942 | 196 | ex | Elixir | test/support/simple_case.ex | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | test/support/simple_case.ex | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | test/support/simple_case.ex | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | defmodule Sibilant.SimpleCase do
@moduledoc false
use ExUnit.CaseTemplate
using do
quote do
import ExUnit.Assertions
import Sibilant.Test.Extra.Assertions
end
end
end
| 16.333333 | 43 | 0.72449 |
38faf800df7498d8277198ea3daacf09a67fe9ed | 1,457 | ex | Elixir | lib/portfolio_web/router.ex | hyperserve/portfolio | 5a144c33ad0d26ec188da07f8cdece05cd821ed7 | [
"MIT"
] | 1 | 2022-03-18T10:57:04.000Z | 2022-03-18T10:57:04.000Z | lib/portfolio_web/router.ex | hyperserve/portfolio | 5a144c33ad0d26ec188da07f8cdece05cd821ed7 | [
"MIT"
] | null | null | null | lib/portfolio_web/router.ex | hyperserve/portfolio | 5a144c33ad0d26ec188da07f8cdece05cd821ed7 | [
"MIT"
] | null | null | null | defmodule PortfolioWeb.Router do
use PortfolioWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {PortfolioWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
... | 25.561404 | 70 | 0.698696 |
38fb0bd6b01579e6d09e91e5a5fba95078beed4d | 1,771 | ex | Elixir | lib/true_type/ps_glyphs.ex | john-vinters/exttf | dea21d52ef55b66f4236dc1cf3115fc7791178da | [
"Apache-2.0"
] | null | null | null | lib/true_type/ps_glyphs.ex | john-vinters/exttf | dea21d52ef55b66f4236dc1cf3115fc7791178da | [
"Apache-2.0"
] | null | null | null | lib/true_type/ps_glyphs.ex | john-vinters/exttf | dea21d52ef55b66f4236dc1cf3115fc7791178da | [
"Apache-2.0"
] | null | null | null | #
# (c) Copyright 2021 John Vinters <john.vinters@gmail.com>
#
# 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 applicab... | 32.2 | 89 | 0.658385 |
38fb117a9799802789a6bd321f53eb0d50619ac8 | 1,863 | exs | Elixir | mix.exs | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | null | null | null | mix.exs | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | null | null | null | mix.exs | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | null | null | null | defmodule GRPC.Mixfile do
use Mix.Project
@version (case File.read("VERSION") do
{:ok, version} -> String.trim(version)
{:error, _} -> "0.0.0-development"
end)
def project do
[
app: :grpc,
version: @version,
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
b... | 27.397059 | 83 | 0.549651 |
38fb5835a2da394493828ef1cfcf54c9c5545bb9 | 919 | exs | Elixir | test/b2/large_file_test.exs | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 5 | 2018-02-16T15:32:41.000Z | 2020-03-31T10:55:24.000Z | test/b2/large_file_test.exs | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 8 | 2017-07-12T04:27:31.000Z | 2017-12-26T06:30:47.000Z | test/b2/large_file_test.exs | upmaru/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 2 | 2018-02-16T15:32:45.000Z | 2018-03-04T12:11:57.000Z | defmodule Upstream.B2.LargeFileTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Upstream.B2.{
LargeFile,
Account
}
setup_all do
authorization = Account.authorization()
{:ok, %{auth: authorization, file_name: "test_file.txt"}}
end
test "makes a call to start ... | 25.527778 | 82 | 0.685528 |
38fb69e4f3f84c71e983210225500818633fa7d9 | 229 | ex | Elixir | test/support/router.ex | leanpanda-com/phoenix_slime_live_view_collocated_template | 35bf60300d1d5f0d0bfb4163406e1b42aea5f731 | [
"MIT"
] | null | null | null | test/support/router.ex | leanpanda-com/phoenix_slime_live_view_collocated_template | 35bf60300d1d5f0d0bfb4163406e1b42aea5f731 | [
"MIT"
] | null | null | null | test/support/router.ex | leanpanda-com/phoenix_slime_live_view_collocated_template | 35bf60300d1d5f0d0bfb4163406e1b42aea5f731 | [
"MIT"
] | null | null | null | defmodule PhoenixSlime.LiveView.CollocatedTemplateTest.Endpoint.Router do
use Phoenix.Router
pipeline :browser do
plug :accepts, ["html"]
end
scope "/", Phoenix.LiveViewTest do
pipe_through [:browser]
end
end
| 19.083333 | 73 | 0.737991 |
38fb904b771e5fed48f283b1f94b7e36f662c04b | 327 | ex | Elixir | lib/console/repo.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console/repo.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console/repo.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Repo do
use Ecto.Repo, otp_app: :console, adapter: Ecto.Adapters.Postgres
use Scrivener, page_size: 5
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
e... | 25.153846 | 67 | 0.712538 |
38fb9417941317ee9db73c0640b1ad907303ba22 | 513 | ex | Elixir | test/support/web/router_template.ex | joaomdmoura/keeper | 3541dc4dcf06afa176bcd5827408accdd3d05f9d | [
"Apache-2.0"
] | 29 | 2016-11-06T05:43:17.000Z | 2020-01-05T00:35:57.000Z | test/support/web/router_template.ex | joaomdmoura/escort | 3541dc4dcf06afa176bcd5827408accdd3d05f9d | [
"Apache-2.0"
] | 9 | 2016-11-28T05:54:56.000Z | 2018-06-01T13:36:51.000Z | test/support/web/router_template.ex | joaomdmoura/escort | 3541dc4dcf06afa176bcd5827408accdd3d05f9d | [
"Apache-2.0"
] | 4 | 2016-11-28T20:31:02.000Z | 2019-07-12T20:26:57.000Z | defmodule Keeper.Router do
use Keeper.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Keeper do
pipe_through ... | 19 | 57 | 0.672515 |
38fba2ae8cd28e26bb0727c9a2f112555550aa3a | 1,176 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/connection.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... | 36.75 | 77 | 0.751701 |
38fbaa63441469940ff8963dc5ba0a7f27d7e92a | 1,064 | ex | Elixir | lib/mix/tasks/gen.controllers.ex | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 61 | 2020-05-27T01:33:39.000Z | 2022-03-30T20:46:02.000Z | lib/mix/tasks/gen.controllers.ex | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 18 | 2020-05-29T21:43:45.000Z | 2022-03-30T17:02:54.000Z | lib/mix/tasks/gen.controllers.ex | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 21 | 2020-06-14T17:02:56.000Z | 2022-01-08T18:54:51.000Z | defmodule Mix.Tasks.Shopifex.Gen.Controllers do
@shortdoc "Generates Shopifex controller files"
@moduledoc """
Generates schema files.
mix shopifex.gen.controller
mix shopifex.gen.controller --namespace shopify_app
## Arguments
* `--namespace` - namespace to prepend table, schema and controller... | 28 | 83 | 0.712406 |
38fbc46d70f12f546919d96de0d3afde522f8553 | 1,873 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/advertised_id.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/advertised_id.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/advertised_id.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... | 38.22449 | 369 | 0.757608 |
38fbe95b583b4e53245f03ec274a8a4b16c555ff | 60 | ex | Elixir | web/views/html_parameter_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/views/html_parameter_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/views/html_parameter_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.HtmlParameterView do
use Tox.Web, :view
end
| 15 | 34 | 0.783333 |
38fc4cb08b0567f3e42fdd9e2b8c6ddb3491d4a5 | 738 | ex | Elixir | dashboard/lib/dashboard/node.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | dashboard/lib/dashboard/node.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | 2 | 2021-03-09T20:59:23.000Z | 2021-05-10T18:01:00.000Z | dashboard/lib/dashboard/node.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | defmodule Dashboard.Node do
require Logger
@enforce_keys [:name, :status, :components]
defstruct [:name, :status, :components]
@type status :: :online | :offline
@type t() :: %__MODULE__{
name: Atom.t(),
status: status,
components: Map.t()
}
# @spec new(name) :: Dashboard.... | 24.6 | 66 | 0.620596 |
38fcb82d407799535747081c752efaf8d38cc920 | 574 | ex | Elixir | lib/table_rex/renderer.ex | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 187 | 2015-12-30T13:33:22.000Z | 2022-03-15T07:56:32.000Z | lib/table_rex/renderer.ex | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 42 | 2015-12-18T17:23:30.000Z | 2022-02-03T14:47:43.000Z | lib/table_rex/renderer.ex | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 23 | 2016-01-04T14:44:10.000Z | 2022-03-31T22:37:54.000Z | defmodule TableRex.Renderer do
@moduledoc """
An Elixir behaviour that defines the API Renderers should conform to, allowing
for display output in a variety of formats.
"""
@typedoc "Return value of the render function."
@type render_return :: {:ok, String.t()} | {:error, String.t()}
@doc "Returns a Map... | 35.875 | 88 | 0.712544 |
38fcbe68077c1c63b957bc7bb1934cad3e1b4780 | 2,611 | ex | Elixir | priv/templates/gen.components/catalogue/components_catalogue/modals.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | 2 | 2022-03-28T21:33:39.000Z | 2022-03-30T17:14:34.000Z | priv/templates/gen.components/catalogue/components_catalogue/modals.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | priv/templates/gen.components/catalogue/components_catalogue/modals.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | defmodule <%= catalogue_module %>.Modals do
use <%= web_module %>, :live_component
import <%= catalogue_module %>.Helpers
import <%= components_module %>.Modal
@impl Phoenix.LiveComponent
def render(assigns) do
~H"""
<div>
<section style="margin: 1rem;">
<h2>Pagination</h2>
<bu... | 30.011494 | 92 | 0.617388 |
38fceabd4d4d5a132bf7faeed89cb87350c337d0 | 190 | ex | Elixir | lib/manage_files.ex | edycop/elixir_hangman_game | 440f0e2d9fb556000c593344831dc9b327534ca5 | [
"MIT"
] | null | null | null | lib/manage_files.ex | edycop/elixir_hangman_game | 440f0e2d9fb556000c593344831dc9b327534ca5 | [
"MIT"
] | null | null | null | lib/manage_files.ex | edycop/elixir_hangman_game | 440f0e2d9fb556000c593344831dc9b327534ca5 | [
"MIT"
] | null | null | null | defmodule ManageFiles do
def read_file(filename) do
{:ok, content} = File.read(filename)
word_list = content |> String.split("\n", trim: true)
Enum.random(word_list)
end
end
| 23.75 | 57 | 0.684211 |
38fcecca884d52025a1781ab46b967512607d826 | 2,362 | ex | Elixir | lib/console/api_keys/api_key.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | null | null | null | lib/console/api_keys/api_key.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | 1 | 2021-04-03T09:29:31.000Z | 2021-04-03T09:29:31.000Z | lib/console/api_keys/api_key.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | null | null | null | defmodule Console.ApiKeys.ApiKey do
use Ecto.Schema
import Ecto.Changeset
alias Console.Helpers
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "api_keys" do
field :role, :string
field :name, :string
field :key, :binary
field :token, :string
field ... | 28.804878 | 140 | 0.65199 |
38fcf8f91a1c8cb4d6dcd09dbbc0c62e66e80b74 | 2,696 | ex | Elixir | apps/fz_http/lib/fz_http_web/live/setting_live/default_live.ex | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | 1 | 2022-02-02T06:44:37.000Z | 2022-02-02T06:44:37.000Z | apps/fz_http/lib/fz_http_web/live/setting_live/default_live.ex | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web/live/setting_live/default_live.ex | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.SettingLive.Default do
@moduledoc """
Manages the defaults view.
"""
use FzHttpWeb, :live_view
alias FzHttp.{ConnectivityChecks, Settings}
@help_texts %{
allowed_ips: """
Configures the default AllowedIPs setting for devices.
AllowedIPs determines which destination IPs ... | 31.717647 | 102 | 0.700297 |
38fd50d53e1c38b2d3c86201e6eabc43c6f4c9ad | 1,319 | exs | Elixir | test/splitwise/users_test.exs | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | 3 | 2019-09-29T04:15:29.000Z | 2021-04-02T14:52:04.000Z | test/splitwise/users_test.exs | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | null | null | null | test/splitwise/users_test.exs | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | 1 | 2022-02-22T15:32:16.000Z | 2022-02-22T15:32:16.000Z | defmodule ExSplitwise.UsersTest do
use ExUnit.Case, async: true
import Mox
setup :verify_on_exit!
alias ExSplitwise.{Client.Response, Users}
setup_all do
Application.put_env(:ex_splitwise, :consumer_key, "consumer_key")
Application.put_env(:ex_splitwise, :consumer_secret, "consumer_secret")
A... | 24.886792 | 87 | 0.617134 |
38fd53dc2d7b575192e1ddfd75629a17da075746 | 8,767 | exs | Elixir | lib/elixir/test/elixir/uri_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/test/elixir/uri_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/uri_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule URITest do
use ExUnit.Case, async: true
test "encode" do
assert URI.encode("4_test.is-s~") == "4_test.is-s~"
assert URI.encode("\r\n&<%>\" ゆ", &URI.char_unreserved?/1) ==
"%0D%0A%26%3C%25%3E%22%20%E3%82%86"
end
test "encode www form" d... | 40.400922 | 120 | 0.592905 |
38fd5b72095efc3d2d54cbe4999b741419befa7d | 337 | ex | Elixir | lib/phoenix_cms/accounts/role.ex | SerenityIK/phoenix_cms | 2e6f5068c5d3bf0a1372f6da4f910522f7faa6a4 | [
"Apache-2.0"
] | null | null | null | lib/phoenix_cms/accounts/role.ex | SerenityIK/phoenix_cms | 2e6f5068c5d3bf0a1372f6da4f910522f7faa6a4 | [
"Apache-2.0"
] | 17 | 2021-03-22T06:11:32.000Z | 2022-03-28T20:03:58.000Z | lib/phoenix_cms/accounts/role.ex | SerenityIK/phoenix_cms | 2e6f5068c5d3bf0a1372f6da4f910522f7faa6a4 | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixCms.Accounts.Role do
use Ecto.Schema
import Ecto.Changeset
alias PhoenixCms.Accounts.User
schema "roles" do
field :role, :string
has_many :user, User
timestamps()
end
@doc false
def changeset(role, attrs) do
role
|> cast(attrs, [:role])
|> validate_required([:... | 15.318182 | 37 | 0.664688 |
38fdcd336f399c1e2d3b5ed0ffb0f2fddcc61de8 | 4,977 | exs | Elixir | exercises/practice/pov/test/pov_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/pov/test/pov_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/pov/test/pov_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule PovTest do
use ExUnit.Case
def equal_trees?({a, children_a}, {a, children_b}) do
if length(children_a) == length(children_b) do
sorted_a = Enum.sort(children_a)
sorted_b = Enum.sort(children_b)
Enum.zip(sorted_a, sorted_b)
|> Enum.all?(fn {a, b} -> equal_trees?(a, b) end)
... | 31.5 | 91 | 0.554752 |
38fe0197aa01ae0ee43382e7c85a69b708a5f97e | 782 | ex | Elixir | airport/lib/airport/weather.ex | valevalorin/learning-elixir | cb7121b808341160ff225ea1ba61af1438c1b9b1 | [
"MIT"
] | null | null | null | airport/lib/airport/weather.ex | valevalorin/learning-elixir | cb7121b808341160ff225ea1ba61af1438c1b9b1 | [
"MIT"
] | null | null | null | airport/lib/airport/weather.ex | valevalorin/learning-elixir | cb7121b808341160ff225ea1ba61af1438c1b9b1 | [
"MIT"
] | null | null | null | defmodule Airport.Weather do
import SweetXml
def get_weather_data(url) do
url
|> HTTPoison.get
|> validate
end
def validate({:ok, %{status_code: 200, body: body}}) do
{:ok, body}
end
def validate({:ok, %{status_code: code, body: body}}) do
{:error, "Returned Status Code: #{code}~n#... | 25.225806 | 78 | 0.643223 |
38fe06dc9cf1ce9c82807bb53e65afef8ded2c5b | 746 | ex | Elixir | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/connection.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/connection.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-authentication/lib/com/github/asyncmc/mojang/authentication/elixir/server/connection.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.github.asyncmc.mojang.authentication.elixir.server.Connection do
@moduledoc """
Handle Tesla connections for com.github.asyncmc.mojang.authent... | 25.724138 | 91 | 0.730563 |
38fe429128aa0a5af7ce4dd3639bb7c10982c196 | 1,093 | ex | Elixir | lib/live_view_web/live/page_live.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | lib/live_view_web/live/page_live.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | 4 | 2021-07-19T22:03:03.000Z | 2021-07-22T16:38:34.000Z | lib/live_view_web/live/page_live.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | defmodule LiveViewWeb.PageLive do
use LiveViewWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, query: "", results: %{})}
end
@impl true
def handle_event("suggest", %{"q" => query}, socket) do
{:noreply, assign(socket, results: search(query), query: query)}
... | 27.325 | 84 | 0.602928 |
38fe6b495f43c25462cbb78c473002354d77df08 | 566 | ex | Elixir | apps/andi/test/integration/divo_ldap.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/andi/test/integration/divo_ldap.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/andi/test/integration/divo_ldap.ex | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule Andi.DivoLdap do
@moduledoc """
Defines a simple ldap server compatible with divo
for building a docker-compose file.
"""
def gen_stack(_envar \\ []) do
%{
ldap: %{
image: "osixia/openldap",
ports: ["389:389", "636:636"],
healthcheck: %{
test: [
... | 22.64 | 109 | 0.508834 |
38fe6c6ae8b4b1cf02d491298884ee3495b3a9cc | 250 | exs | Elixir | priv/repo/migrations/20180303174332_create_carts.exs | gpad/les | 2317b8055ab24aa857a6cda06f6e529c992c668c | [
"Apache-2.0"
] | 11 | 2018-04-06T14:02:15.000Z | 2020-12-09T10:44:03.000Z | priv/repo/migrations/20180303174332_create_carts.exs | gpad/les | 2317b8055ab24aa857a6cda06f6e529c992c668c | [
"Apache-2.0"
] | 1 | 2018-11-18T02:35:23.000Z | 2018-11-18T02:35:23.000Z | priv/repo/migrations/20180303174332_create_carts.exs | gpad/les | 2317b8055ab24aa857a6cda06f6e529c992c668c | [
"Apache-2.0"
] | null | null | null | defmodule Les.Repo.Migrations.CreateCarts do
use Ecto.Migration
def change do
create table(:carts) do
add :user_id, references(:users, on_delete: :delete_all)
timestamps()
end
create index(:carts, [:user_id])
end
end
| 17.857143 | 62 | 0.68 |
38fe7b803d55c0cec211ffb5e9e0ce5ac5f3dd2b | 934 | exs | Elixir | test/advent/y2020/d09_test.exs | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | test/advent/y2020/d09_test.exs | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | test/advent/y2020/d09_test.exs | ed-flanagan/advent-of-code-solutions-elixir | ca4b62f82088e7a120699fbba9809c04c76403a6 | [
"MIT"
] | null | null | null | defmodule Advent.Y2020.D09Test do
use ExUnit.Case
alias Advent.Y2020.D09
import D09, only: [part_one: 2, part_two: 2]
@example [
"35",
"20",
"15",
"25",
"47",
"40",
"62",
"55",
"65",
"95",
"102",
"117",
"150",
"182",
"127",
"219",
"299",
... | 16.678571 | 56 | 0.547109 |
38fea69cbe0ae477c5cb3fef8ce2f4f7a541f832 | 2,628 | ex | Elixir | apps/buzzcms_web/lib/buzzcms_web/schemas/forms.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms_web/lib/buzzcms_web/schemas/forms.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms_web/lib/buzzcms_web/schemas/forms.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule BuzzcmsWeb.Schema.Forms do
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
import Absinthe.Resolution.Helpers
alias BuzzcmsWeb.Data
alias BuzzcmsWeb.FormResolver
node object(:form) do
field :_id, non_null(:id), resolve: fn %{id: id}, _, _ -> {:ok, id} end
field :c... | 25.764706 | 94 | 0.674277 |
38feb61c465d7d09cffe7696349e3089b58cd4e7 | 1,834 | exs | Elixir | config/config.exs | WolfDan/ash_admin | 272db146d433b52d67d35c3497442c78044adb36 | [
"MIT"
] | 19 | 2021-03-16T09:01:22.000Z | 2022-03-07T06:16:56.000Z | config/config.exs | WolfDan/ash_admin | 272db146d433b52d67d35c3497442c78044adb36 | [
"MIT"
] | 11 | 2021-03-29T15:46:33.000Z | 2022-03-17T03:35:57.000Z | config/config.exs | WolfDan/ash_admin | 272db146d433b52d67d35c3497442c78044adb36 | [
"MIT"
] | 6 | 2021-03-27T19:24:52.000Z | 2022-03-15T10:19:31.000Z | use Mix.Config
pg_url = System.get_env("PG_URL") || "postgres:postgres@127.0.0.1"
pg_database = System.get_env("PG_DATABASE") || "ash_admin_dev"
Application.put_env(:ash_admin, Demo.Repo, url: "ecto://#{pg_url}/#{pg_database}")
config :phoenix, :json_library, Jason
config :ash_admin, ecto_repos: [Demo.Repo]
config :... | 28.65625 | 86 | 0.682661 |
38feba78be0c2e7836922ab77587e867049221ba | 776 | ex | Elixir | lib/ex_changerate/historical_rates.ex | 81dr/ex_changerate | b5df0d1aeac755d2826d000b08e23077ca7a0c62 | [
"0BSD"
] | 2 | 2020-06-07T09:29:23.000Z | 2020-11-16T01:59:40.000Z | lib/ex_changerate/historical_rates.ex | 81dr/ex_changerate | b5df0d1aeac755d2826d000b08e23077ca7a0c62 | [
"0BSD"
] | null | null | null | lib/ex_changerate/historical_rates.ex | 81dr/ex_changerate | b5df0d1aeac755d2826d000b08e23077ca7a0c62 | [
"0BSD"
] | null | null | null | defmodule ExChangerate.HistoricalRates do
@moduledoc """
Enables the use of Historical Rates Endpoint
*Note from documentation: Historical rates are available for most currencies all the way back to the year of 1999. You can query the API for historical rates by appending a date (format YYYY-MM-DD) to the base U... | 38.8 | 217 | 0.729381 |
38febe1ff6fcf8863e955078f1fb7e67f8ae83fc | 1,925 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/dicom_filter_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/dicom_filter_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/dicom_filter_config.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... | 40.957447 | 554 | 0.753766 |
38fecf65618754dbe8f4245c8384a91edcf38f33 | 843 | exs | Elixir | elixir/024/024.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 36 | 2015-01-24T08:11:52.000Z | 2021-03-21T00:32:00.000Z | elixir/024/024.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | null | null | null | elixir/024/024.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 4 | 2015-01-24T08:17:42.000Z | 2022-01-11T16:10:56.000Z | defmodule Euler do
def nth_permutation(list, n) do
nth_permutation(list |> Enum.sort |> Enum.with_index, [], n)
end
defp nth_permutation([_ | _] = list, current, max) do
f = cond do
length(list) > 1 -> (1..(length(list) - 1)) |> Enum.reduce(1, &(&1 * &2))
true -> 1
end
index = get_in... | 23.416667 | 124 | 0.584816 |
38fed91052a3bae85ab5cea947fc6532f8970163 | 14,370 | ex | Elixir | lib/examine.ex | kianmeng/examine | cc0d0454df811c618ea26c50221e5d7fe4180f61 | [
"MIT"
] | null | null | null | lib/examine.ex | kianmeng/examine | cc0d0454df811c618ea26c50221e5d7fe4180f61 | [
"MIT"
] | null | null | null | lib/examine.ex | kianmeng/examine | cc0d0454df811c618ea26c50221e5d7fe4180f61 | [
"MIT"
] | null | null | null | defmodule Examine do
@moduledoc """
Examine enhances inspect debugging by printing additional compile-time and runtime information,
include file code and execution times.
Global configuration:
* `:environments` - The environments in which the `Examine.inspect/2` macro will be expanded -- in all
othe... | 31.30719 | 110 | 0.591162 |
38fedc14a2ef145c4d01499c026c93f89f12a74e | 1,952 | exs | Elixir | config/dev.exs | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | null | null | null | config/dev.exs | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"MIT"
] | 7 | 2019-06-25T17:21:41.000Z | 2022-02-10T12:09:08.000Z | config/dev.exs | gautambaghel/stormchat | 1882467113158e7524d02d273e1f88439cc1f152 | [
"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 brunch.io to recompile .js and .css sources.
config :stormchat, StormchatWeb.Endpoint,
http: [port... | 33.084746 | 170 | 0.706455 |
38ff41a5eaa6b2e1471a752dbed43e323ee3376d | 873 | ex | Elixir | lib/health/accounts/user.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | lib/health/accounts/user.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | lib/health/accounts/user.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule Health.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
alias Health.Accounts.Credential
schema "users" do
field :name, :string
field :timezone, :string
has_one :credential, Credential
timestamps()
end
@doc false
def changeset(user, attrs) do
user
|> cast(attrs,... | 21.825 | 92 | 0.633448 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.