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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a66835bb5f9cbd4e744a2afb3bf3ee7d2da9534 | 2,385 | ex | Elixir | apps/gitgud/lib/gitgud/queries/gpg_key_query.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud/lib/gitgud/queries/gpg_key_query.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud/lib/gitgud/queries/gpg_key_query.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.GPGKeyQuery do
@moduledoc """
Conveniences for GPG key related queries.
"""
@behaviour GitGud.DBQueryable
alias GitGud.DB
alias GitGud.DBQueryable
alias GitGud.GPGKey
import Ecto.Query
@doc """
Returns a GPG key for the given `id`.
"""
@spec by_id(pos_integer, keyword) :: G... | 26.208791 | 101 | 0.649895 |
1a66cfc5063ee3152c504f6bf321f6d1e54eefd1 | 419 | exs | Elixir | priv/repo/migrations/20210533493741_create_projects.exs | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210533493741_create_projects.exs | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210533493741_create_projects.exs | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | defmodule PrepayAndUse.Repo.Migrations.CreateProjects do
use Ecto.Migration
def change do
create table(:projects) do
add :title, :string, null: false
add :body, :string
add :is_done, :boolean, default: true, null: false
add :price, :integer, default: 20, null: false
add :user_id... | 22.052632 | 77 | 0.661098 |
1a66daf259471b8fb1aa79a5182b82491ec14d50 | 712 | ex | Elixir | lib/short_url_web/gettext.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 170 | 2018-02-06T05:04:25.000Z | 2021-01-27T07:45:25.000Z | lib/short_url_web/gettext.ex | imfycc/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 3 | 2021-03-09T01:06:36.000Z | 2022-02-09T22:57:27.000Z | lib/short_url_web/gettext.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 26 | 2018-02-26T06:53:10.000Z | 2020-11-08T23:02:13.000Z | defmodule ShortUrlWeb.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 ShortUrlWeb.Gettext
# Simple translation
gettext "Here is... | 28.48 | 72 | 0.682584 |
1a66e35352814e880df738e364fd3a958dff9423 | 2,066 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/schema_field_spec_numeric_indexing_spec.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/schema_field_spec_numeric_indexing_spec.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/schema_field_spec_numeric_indexing_spec.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... | 41.32 | 224 | 0.749758 |
1a66f81316b7d5f86ecb0985ea95b234cbe87899 | 1,096 | exs | Elixir | packet_analyzer/mix.exs | niya1123/PacketAnalyzer | 65236372812ef9f593df460d054ee7ee487d1a74 | [
"MIT"
] | null | null | null | packet_analyzer/mix.exs | niya1123/PacketAnalyzer | 65236372812ef9f593df460d054ee7ee487d1a74 | [
"MIT"
] | 2 | 2021-03-10T02:15:32.000Z | 2021-05-10T21:48:57.000Z | packet_analyzer/mix.exs | niya1123/PacketAnalyzer | 65236372812ef9f593df460d054ee7ee487d1a74 | [
"MIT"
] | null | null | null | defmodule PacketAnalyzer.MixProject do
use Mix.Project
def project do
[
app: :packet_analyzer,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: de... | 24.355556 | 57 | 0.584854 |
1a6721e7255d05258ade6268dfcd38c3460824a3 | 1,363 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/commit_response.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.630435 | 114 | 0.755686 |
1a6749064d9f9f32cd684f542e9865b1bc6563cb | 324 | exs | Elixir | AnonymousFunctions/5.1.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | 2 | 2015-11-14T21:35:01.000Z | 2017-07-12T07:09:40.000Z | AnonymousFunctions/5.1.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | AnonymousFunctions/5.1.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | Create and run the functions that do the following:
list_concat.([:a, :b], [:c, :d]) #=> [:a, :b, :c, :d]
sum.(1, 2, 3) #=> 6
pair_tuple_to_list.( { 1234, 5678 } ) #=> [ 1234, 5678 ]
list_concat = fn ([a, b], [c, d]) -> [a, b, c, d] end
sum = fn a, b, c -> a + b + c end
pair_tuple_to_list = fn {a, b} -> [ a, b ] ... | 23.142857 | 56 | 0.515432 |
1a6765f6d81e0221255ac8511fc81534426bbeff | 11,026 | ex | Elixir | lib/hexpm/repository/package.ex | thiamsantos/hexpm | 790bae9e761fe9b2dd6901618054ad533ef24599 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package.ex | thiamsantos/hexpm | 790bae9e761fe9b2dd6901618054ad533ef24599 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package.ex | thiamsantos/hexpm | 790bae9e761fe9b2dd6901618054ad533ef24599 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Package do
use HexpmWeb, :schema
import Ecto.Query, only: [from: 2, where: 3]
@derive {HexpmWeb.Stale, assocs: [:releases, :owners, :downloads]}
@derive {Phoenix.Param, key: :name}
schema "packages" do
field :name, :string
field :docs_updated_at, :utc_datetime_usec
fie... | 25.943529 | 113 | 0.622075 |
1a6773da0ef1b8761dc3053f76fc1e7e3e19d959 | 1,276 | ex | Elixir | lib/data_quacker/context.ex | fiodorbaczynski/trivial_csv | 5d80a260f385bf2cbbd296a5ca359c9865510317 | [
"Apache-2.0"
] | 20 | 2019-08-02T08:25:51.000Z | 2021-05-18T21:28:47.000Z | lib/data_quacker/context.ex | fiodorbaczynski/trivial_csv | 5d80a260f385bf2cbbd296a5ca359c9865510317 | [
"Apache-2.0"
] | null | null | null | lib/data_quacker/context.ex | fiodorbaczynski/trivial_csv | 5d80a260f385bf2cbbd296a5ca359c9865510317 | [
"Apache-2.0"
] | null | null | null | defmodule DataQuacker.Context do
@moduledoc ~S"""
This module provides a struct
to hold contextual data
for CSV parsing
## Metadata
Metadata is a tuple of an atom and another atom or a non-negative integer. The first is the type of the entity currently being processed (`:field`, `:row`, etc.). The second ... | 31.9 | 259 | 0.702978 |
1a67a587b132253a6873c9bcca2f660a121214b6 | 883 | ex | Elixir | lib/mix/tasks/carguero_task_bunny.queue.reset.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | 2 | 2020-12-03T18:09:00.000Z | 2021-01-17T22:44:50.000Z | lib/mix/tasks/carguero_task_bunny.queue.reset.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | lib/mix/tasks/carguero_task_bunny.queue.reset.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.CargueroTaskBunny.Queue.Reset do
use Mix.Task
@shortdoc "Reset all queues in config files"
@moduledoc """
Mix task to reset all queues.
It deletes the queues and creates them again.
Therefore all messages in the queues are removed.
"""
alias CargueroTaskBunny.{Connection, Config,... | 23.236842 | 62 | 0.681767 |
1a67b2be6ff32335eddcbafd4fdc0edd8a5d90f1 | 779 | ex | Elixir | kata/lib/kata.ex | akliemke/elixir-katas | d309ac88dcb082fe987f3446058646cba8ee6368 | [
"MIT"
] | null | null | null | kata/lib/kata.ex | akliemke/elixir-katas | d309ac88dcb082fe987f3446058646cba8ee6368 | [
"MIT"
] | null | null | null | kata/lib/kata.ex | akliemke/elixir-katas | d309ac88dcb082fe987f3446058646cba8ee6368 | [
"MIT"
] | null | null | null | defmodule KATA do
@moduledoc """
Documentation for KATA.
"""
@doc """
Hello world.
## Examples
iex> KATA.hello()
:world
"""
def hello do
:world
end
def high(str) do
String.graphemes(str)
|>patter
end
def create_values do
%{"a"=> 1, "b" => 2, "c" => 3, "d" => 4,... | 17.704545 | 114 | 0.436457 |
1a67c474807ba2068e65a6d4575e56637bda8909 | 363 | ex | Elixir | apps/kv/lib/kv/supervisor.ex | mareksuscak/elixir-kv-store | 243ef4ae6ff5a3aa7bbe78880059add26b1ab5f5 | [
"MIT"
] | null | null | null | apps/kv/lib/kv/supervisor.ex | mareksuscak/elixir-kv-store | 243ef4ae6ff5a3aa7bbe78880059add26b1ab5f5 | [
"MIT"
] | null | null | null | apps/kv/lib/kv/supervisor.ex | mareksuscak/elixir-kv-store | 243ef4ae6ff5a3aa7bbe78880059add26b1ab5f5 | [
"MIT"
] | null | null | null | defmodule KV.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok)
end
def init(:ok) do
children = [
worker(KV.Registry, [KV.Registry]),
supervisor(KV.Bucket.Supervisor, []),
supervisor(Task.Supervisor, [[name: KV.RouterTasks]])
]
supervise(ch... | 20.166667 | 59 | 0.669421 |
1a67e727d1a58f6b82183d7d22a4186db503d560 | 5,118 | exs | Elixir | test/properties_test.exs | adrianomitre/surface | 08ca850b1114ebbdda03294da181dea7d4b0d9b7 | [
"MIT"
] | null | null | null | test/properties_test.exs | adrianomitre/surface | 08ca850b1114ebbdda03294da181dea7d4b0d9b7 | [
"MIT"
] | null | null | null | test/properties_test.exs | adrianomitre/surface | 08ca850b1114ebbdda03294da181dea7d4b0d9b7 | [
"MIT"
] | null | null | null | defmodule Surface.PropertiesTest do
use ExUnit.Case, async: true
import Surface
import ComponentTestHelper
defmodule MapProp do
use Surface.Component
property prop, :map
def render(assigns) do
~H"""
Map?: {{ is_map(@prop) }}
<span :for={{ {k, v} <- @prop }}>key: {{k}}, value: {... | 23.585253 | 86 | 0.494138 |
1a6822ec1736253a7f63110205658aca1cd1e4d1 | 1,131 | exs | Elixir | config/config.exs | LiveYourProject/mapillixir | f6d08bcdcf7318380bf6186cc020c3ac45149498 | [
"Apache-2.0"
] | null | null | null | config/config.exs | LiveYourProject/mapillixir | f6d08bcdcf7318380bf6186cc020c3ac45149498 | [
"Apache-2.0"
] | null | null | null | config/config.exs | LiveYourProject/mapillixir | f6d08bcdcf7318380bf6186cc020c3ac45149498 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.483871 | 73 | 0.751547 |
1a682945bf78a84fdaa9db4a15ab789ecb7f8cae | 2,136 | ex | Elixir | apps/elixir_security_advisory_api/lib/elixir_security_advisory_api.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 5 | 2019-01-03T18:33:40.000Z | 2021-01-25T10:15:06.000Z | apps/elixir_security_advisory_api/lib/elixir_security_advisory_api.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 15 | 2018-12-27T16:59:06.000Z | 2019-01-04T17:34:38.000Z | apps/elixir_security_advisory_api/lib/elixir_security_advisory_api.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | null | null | null | defmodule ElixirSecurityAdvisoryApi 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 ElixirSecurityAdvisoryApi, :controller
use ElixirSecurityAdvisoryApi, :view
The definitions below wi... | 23.472527 | 83 | 0.718165 |
1a683cfeacdf2a91590fdd6df79f4307676eb732 | 340 | ex | Elixir | lib/scenic/assets/static/image.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/assets/static/image.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/assets/static/image.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2021-05-05.
# Copyright © 2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Assets.Static.Image do
@moduledoc false
def parse_meta(bin) do
case ExImageInfo.info(bin) do
{mime, width, height, _type} -> {:ok, {__MODULE__, {width, height, mime}}}
_ -> :erro... | 21.25 | 80 | 0.661765 |
1a683fd07b4042e65f65f08c0aa4d2c1b6563003 | 1,337 | ex | Elixir | lib/asciinema_web/views/error_helpers.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/error_helpers.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/error_helpers.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(err... | 28.446809 | 78 | 0.666417 |
1a6844c47ed263795628664e39b7adad062dff54 | 1,790 | ex | Elixir | server/lib/protocol/block.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | 1 | 2022-03-31T03:49:59.000Z | 2022-03-31T03:49:59.000Z | server/lib/protocol/block.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | null | null | null | server/lib/protocol/block.ex | runcitadel/bitfeed | 2169704007610b02ab9a94b03bfd1c2fa797d80f | [
"MIT"
] | null | null | null | defmodule BitcoinStream.Protocol.Block do
@moduledoc """
Summarised bitcoin block.
Extends Bitcoinex.Block by computing total block value & size
and condensing transactions into only id, value and version
"""
alias BitcoinStream.Protocol.Block
alias BitcoinStream.Protocol.Transaction, as: BitcoinTx
@derive Jas... | 22.948718 | 79 | 0.685475 |
1a685c6aed076bdaa705f44d3c16485be8863bc5 | 3,149 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/quota.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/quota.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/quota.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 43.736111 | 142 | 0.734836 |
1a68bbaed298d9a622352d14b867b448c751e0b4 | 910 | ex | Elixir | lib/events_api_web/controllers/fallback_controller.ex | gissandrogama/events | 1b21b151a336ae5eef8bf1d68f2a792194f21be3 | [
"MIT"
] | null | null | null | lib/events_api_web/controllers/fallback_controller.ex | gissandrogama/events | 1b21b151a336ae5eef8bf1d68f2a792194f21be3 | [
"MIT"
] | 4 | 2021-02-10T22:04:56.000Z | 2021-02-12T22:01:42.000Z | lib/events_api_web/controllers/fallback_controller.ex | gissandrogama/events | 1b21b151a336ae5eef8bf1d68f2a792194f21be3 | [
"MIT"
] | 1 | 2021-03-22T13:48:48.000Z | 2021-03-22T13:48:48.000Z | defmodule EventsApiWeb.FallbackController do
@moduledoc """
Traduz os resultados da ação do controlador em respostas `Plug.Conn` válidas.
Veja `Phoenix.Controller.action_fallback/1` para mais detalhes.
"""
use EventsApiWeb, :controller
# Esta cláusula trata os erros retornados pela inserção/atualização/ex... | 29.354839 | 88 | 0.702198 |
1a68d5910af0b67260ad643952e0d6b86a901db3 | 1,770 | ex | Elixir | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/mount.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/mount.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/life_sciences/lib/google_api/life_sciences/v2beta/model/mount.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... | 33.396226 | 123 | 0.708475 |
1a68e52c92b664c557a7f01e46aa1b879273aced | 57 | ex | Elixir | lib/loom_web/views/layout_view.ex | simonfraserduncan/my-copy | 03c618035a06a63d8fcf9f6511ef59d3e4cf2da9 | [
"Apache-2.0"
] | 4 | 2021-02-20T02:47:36.000Z | 2021-06-08T18:42:40.000Z | lib/loom_web/views/layout_view.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | null | null | null | lib/loom_web/views/layout_view.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | 1 | 2021-02-17T18:28:35.000Z | 2021-02-17T18:28:35.000Z | defmodule LoomWeb.LayoutView do
use LoomWeb, :view
end
| 14.25 | 31 | 0.789474 |
1a6935a784085ecbaea78c3a574d34fefb14c9b7 | 2,855 | exs | Elixir | config/runtime.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 1 | 2022-02-14T16:40:55.000Z | 2022-02-14T16:40:55.000Z | config/runtime.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | config/runtime.exs | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 39.652778 | 82 | 0.705779 |
1a693b769892b926e7c62326e70415a0dbd17c15 | 4,207 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/reports.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/reports.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/reports.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.84466 | 196 | 0.642263 |
1a694fcfcff4099845e863d7ab1e6342b29a92fe | 703 | exs | Elixir | test/scenic/primitive/style/text_base_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/text_base_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/text_base_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2021-02-05.
# Copyright © 2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Style.TextBaseTest do
use ExUnit.Case, async: true
doctest Scenic.Primitive.Style.TextBase
alias Scenic.Primitive.Style.TextBase
test "validate accepts valid data" do
assert T... | 29.291667 | 65 | 0.698435 |
1a69613d76915e438fdb0142b176412b4f8b9f6e | 2,058 | exs | Elixir | mix.exs | Fudoshiki/elixir-mongodb-driver | 28273e2e0bb9ef0cf9a4bb48aed17336446257f6 | [
"Apache-2.0"
] | null | null | null | mix.exs | Fudoshiki/elixir-mongodb-driver | 28273e2e0bb9ef0cf9a4bb48aed17336446257f6 | [
"Apache-2.0"
] | null | null | null | mix.exs | Fudoshiki/elixir-mongodb-driver | 28273e2e0bb9ef0cf9a4bb48aed17336446257f6 | [
"Apache-2.0"
] | null | null | null | defmodule Mongodb.Mixfile do
use Mix.Project
@version "0.8.0"
def project() do
[app: :mongodb_driver,
version: @version,
elixirc_paths: elixirc_paths(Mix.env),
elixir: "~> 1.8",
name: "mongodb-driver",
deps: deps(),
docs: docs(),
description: description(),
package: p... | 28.191781 | 133 | 0.573858 |
1a6967875639c1023a7c65849daaf652aeb9a1cd | 2,391 | exs | Elixir | mix.exs | ivanpetrovic/dissolver | e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a | [
"MIT"
] | null | null | null | mix.exs | ivanpetrovic/dissolver | e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a | [
"MIT"
] | null | null | null | mix.exs | ivanpetrovic/dissolver | e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a | [
"MIT"
] | null | null | null | defmodule Dissolver.Mixfile do
use Mix.Project
@version "0.9.4"
def project do
[
app: :dissolver,
version: @version,
elixir: "~> 1.9",
elixirc_paths: path(Mix.env()),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
d... | 25.709677 | 77 | 0.545379 |
1a696c55cd089343d7794667be95ac13720f400b | 843 | ex | Elixir | lib/oli/activities/manifest.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/activities/manifest.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/activities/manifest.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Activities.Manifest do
import Oli.Utils
defstruct [
:id,
:friendlyName,
:description,
:delivery,
:authoring,
:allowClientEvaluation,
:global
]
def parse(
%{
"id" => id,
"friendlyName" => friendlyName,
"description" => description,... | 22.184211 | 76 | 0.609727 |
1a69749c39b31cda7c0799232298fd7222cb5d69 | 8,623 | exs | Elixir | kousa/test/beef/rooms_test.exs | BronzW/dogehouse | 6cebfd22af728112a861a9e2ea6202cd848abab6 | [
"MIT"
] | null | null | null | kousa/test/beef/rooms_test.exs | BronzW/dogehouse | 6cebfd22af728112a861a9e2ea6202cd848abab6 | [
"MIT"
] | null | null | null | kousa/test/beef/rooms_test.exs | BronzW/dogehouse | 6cebfd22af728112a861a9e2ea6202cd848abab6 | [
"MIT"
] | null | null | null | defmodule Kousa.Beef.RoomsTest do
# allow tests to run in parallel
use ExUnit.Case, async: true
use Kousa.Support.EctoSandbox
alias Kousa.Support.Factory
alias Beef.Schemas.User
alias Beef.Schemas.Room
alias Beef.Rooms
alias Beef.Repo
alias Beef.RoomBlocks
describe "Rooms" do
# need to mock us... | 27.726688 | 135 | 0.581468 |
1a698012e554b9fc0849bb71f153f08fa7ecffc2 | 752 | ex | Elixir | lib/norm/spec/and.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | lib/norm/spec/and.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | lib/norm/spec/and.ex | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | defmodule Norm.Spec.And do
@moduledoc false
defstruct [:left, :right]
defimpl Norm.Conformer.Conformable do
alias Norm.Conformer.Conformable
def conform(%{left: l, right: r}, input, path) do
errors =
[l, r]
|> Enum.map(fn spec -> Conformable.conform(spec, input, path) end)
... | 21.485714 | 74 | 0.574468 |
1a6987ef9547aa5f43470fe721ddac0e385d9f3a | 537 | ex | Elixir | lib/mbanking_web/views/error_view.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | lib/mbanking_web/views/error_view.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | lib/mbanking_web/views/error_view.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | defmodule MbankingWeb.ErrorView do
use MbankingWeb, :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 status message fr... | 31.588235 | 83 | 0.72067 |
1a698bcbaeba179485c7113817d3fc6e1e70f6a5 | 6,044 | exs | Elixir | test/tempo/iso8601/interval_test.exs | kipcole9/tempo | 817714acd6baf38be3a8a997ef1d205206d79adc | [
"Apache-2.0"
] | 16 | 2021-01-03T12:53:52.000Z | 2021-08-25T03:47:14.000Z | test/tempo/iso8601/interval_test.exs | kipcole9/tempo | 817714acd6baf38be3a8a997ef1d205206d79adc | [
"Apache-2.0"
] | 3 | 2021-01-10T09:32:22.000Z | 2021-07-19T12:16:17.000Z | test/tempo/iso8601/interval_test.exs | kipcole9/tempo | 817714acd6baf38be3a8a997ef1d205206d79adc | [
"Apache-2.0"
] | 1 | 2021-01-10T09:01:11.000Z | 2021-01-10T09:01:11.000Z | defmodule Tempo.Parser.Interval.Test do
use ExUnit.Case, async: true
alias Tempo.Iso8601.Parser
test "Intervals" do
assert Parser.parse("2018-01-15/02-20") ==
{:ok,
[
interval: [
date: [year: 2018, month: 1, day_of_month: 15],
da... | 29.198068 | 90 | 0.325447 |
1a699917cefa13dfe7de0cc6238901589472d0cb | 8,639 | ex | Elixir | web_finngen_r8/lib/risteys_web/controllers/phenocode_controller.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/lib/risteys_web/controllers/phenocode_controller.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/lib/risteys_web/controllers/phenocode_controller.ex | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | defmodule RisteysWeb.PhenocodeController do
use RisteysWeb, :controller
alias Risteys.{
Repo,
ATCDrug,
CoxHR,
DrugStats,
FGEndpoint,
MortalityStats,
Phenocode,
StatsSex
}
import Ecto.Query
def show(conn, %{"name" => name}) do
case Repo.get_by(Phenocode, name: name) do
... | 25.260234 | 98 | 0.581317 |
1a69b917fe7dae7a396572af7f382bc54b111e72 | 2,549 | exs | Elixir | test/money/money_test.exs | JVZELLER/sistema-financeiro | 98ed39019219f5c0065912fe3be2f9e33e10cf41 | [
"MIT"
] | 2 | 2020-04-01T02:35:59.000Z | 2021-07-26T05:21:01.000Z | test/money/money_test.exs | JVZELLER/sistema-financeiro | 98ed39019219f5c0065912fe3be2f9e33e10cf41 | [
"MIT"
] | null | null | null | test/money/money_test.exs | JVZELLER/sistema-financeiro | 98ed39019219f5c0065912fe3be2f9e33e10cf41 | [
"MIT"
] | null | null | null | defmodule MoneyTest do
use ExUnit.Case, async: true
doctest Money
describe "tests Money creation" do
test "new/1" do
assert Money.new(1) == %Money{amount: 100, currency: :BRL}
assert Money.new(2.5) == %Money{amount: 250, currency: :BRL}
end
test "new/2" do
assert Money.new(1, :USD)... | 32.679487 | 95 | 0.593566 |
1a69c9d92f91a05a72b79f51571618f2c610d6de | 505 | ex | Elixir | clients/elixir/lib/fast_api/model/body_apply_image_image_colorization__post.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | 1 | 2022-03-30T11:33:28.000Z | 2022-03-30T11:33:28.000Z | clients/elixir/lib/fast_api/model/body_apply_image_image_colorization__post.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | null | null | null | clients/elixir/lib/fast_api/model/body_apply_image_image_colorization__post.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | 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 FastAPI.Model.BodyApplyImageImageColorizationPost do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"image"
]
@type t :... | 19.423077 | 91 | 0.708911 |
1a69cbe773d4e32a3f89d8f230ed1917632d8d7e | 503 | ex | Elixir | lib/nr_phoenix_demo_web/views/error_view.ex | jbhardman/nr-phoenix-demo-app | 1369ced0e87e6ab36443c50158bd340e05242afc | [
"Apache-2.0"
] | 1 | 2022-01-25T08:26:38.000Z | 2022-01-25T08:26:38.000Z | lib/nr_phoenix_demo_web/views/error_view.ex | jbhardman/nr-phoenix-demo-app | 1369ced0e87e6ab36443c50158bd340e05242afc | [
"Apache-2.0"
] | 4 | 2022-01-21T13:23:49.000Z | 2022-01-25T08:21:44.000Z | lib/nr_phoenix_demo_web/views/error_view.ex | jbhardman/nr-phoenix-demo-app | 1369ced0e87e6ab36443c50158bd340e05242afc | [
"Apache-2.0"
] | 1 | 2022-02-23T22:33:42.000Z | 2022-02-23T22:33:42.000Z | defmodule NrPhoenixDemoWeb.ErrorView do
use NrPhoenixDemoWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the t... | 29.588235 | 61 | 0.741551 |
1a69e077382995633af370c8c8d6891644cdee2d | 3,247 | ex | Elixir | lib/aws_ingress_operator/schemas/validations.ex | bennyhat/aws_ingress_operator | 81a1c873cbea95a8ba721ac1147c421dcaf1de45 | [
"MIT"
] | null | null | null | lib/aws_ingress_operator/schemas/validations.ex | bennyhat/aws_ingress_operator | 81a1c873cbea95a8ba721ac1147c421dcaf1de45 | [
"MIT"
] | null | null | null | lib/aws_ingress_operator/schemas/validations.ex | bennyhat/aws_ingress_operator | 81a1c873cbea95a8ba721ac1147c421dcaf1de45 | [
"MIT"
] | null | null | null | defmodule AwsIngressOperator.Schemas.Validations do
import Ecto.Changeset
alias AwsIngressOperator.Addresses
alias AwsIngressOperator.Certificates
alias AwsIngressOperator.LoadBalancers
alias AwsIngressOperator.SecurityGroups
alias AwsIngressOperator.Subnets
alias AwsIngressOperator.TargetGroups
def v... | 22.866197 | 87 | 0.570065 |
1a69e4d8a44fca36c65bbad2b14d2b5735a76b72 | 781 | ex | Elixir | lib/backend/azlyrics.ex | rmilushev/lyrics | 794edcc4f3c5e6637bfe49edd88b8256143658b0 | [
"Apache-2.0"
] | 2 | 2019-06-14T22:42:46.000Z | 2020-01-12T21:52:00.000Z | lib/backend/azlyrics.ex | rmilushev/lyrics | 794edcc4f3c5e6637bfe49edd88b8256143658b0 | [
"Apache-2.0"
] | 1 | 2020-06-13T20:51:33.000Z | 2020-06-13T20:51:33.000Z | lib/backend/azlyrics.ex | rmilushev/lyrics | 794edcc4f3c5e6637bfe49edd88b8256143658b0 | [
"Apache-2.0"
] | 1 | 2020-06-13T20:06:56.000Z | 2020-06-13T20:06:56.000Z | defmodule Lyrics.Backend.AZLyrics do
def get(artist, title) do
artist = Regex.replace(~r/[^A-Za-z0-9]+/, artist, "")
title = Regex.replace(~r/[^A-Za-z0-9]+/, title, "")
url = "http://azlyrics.com/lyrics/#{String.downcase(artist)}/#{String.downcase(title)}.html"
up_partition =
"<!-- Usage of az... | 30.038462 | 141 | 0.612036 |
1a69e8769716372dfe2cc4e88b50d53cdcce9e31 | 2,411 | ex | Elixir | clients/content/lib/google_api/content/v21/model/return_address_address.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/return_address_address.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/return_address_address.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... | 38.887097 | 186 | 0.689341 |
1a69ef737f0b8790acc6aa31fe60773e3f0ea784 | 303 | exs | Elixir | priv/repo/migrations/20200603004258_create_music_profiles.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | priv/repo/migrations/20200603004258_create_music_profiles.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | priv/repo/migrations/20200603004258_create_music_profiles.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | defmodule Songmate.Repo.Migrations.CreateMusicProfiles do
use Ecto.Migration
def change do
create table(:music_profiles) do
add(:user_id, references(:users, on_delete: :delete_all, null: false))
timestamps()
end
create(unique_index(:music_profiles, [:user_id]))
end
end
| 21.642857 | 76 | 0.716172 |
1a69f5284423f2ad192fb9559ea66d6e414a81f7 | 206 | ex | Elixir | lib/awesome/iex.ex | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | lib/awesome/iex.ex | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | lib/awesome/iex.ex | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | defmodule Awesome.IEx do
defmacro __using__(_opts) do
quote do
alias Awesome.{Repo, Lists, Accounts}
alias Awesome.Lists.{Author, List}
alias Awesome.Accounts.User
end
end
end
| 20.6 | 43 | 0.684466 |
1a69fda6e342a1fbd8324d2472c49d5765842078 | 2,033 | ex | Elixir | clients/eventarc/lib/google_api/eventarc/v1/model/list_triggers_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/eventarc/lib/google_api/eventarc/v1/model/list_triggers_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/eventarc/lib/google_api/eventarc/v1/model/list_triggers_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.358491 | 182 | 0.721102 |
1a6a0fc9593c386984ea657b87448bc0e03a6b00 | 442 | ex | Elixir | lib/surface/catalogue/components/tabs/tabItem.ex | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | 132 | 2021-02-02T04:03:17.000Z | 2022-03-24T07:02:00.000Z | lib/surface/catalogue/components/tabs/tabItem.ex | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | 30 | 2021-02-16T13:18:43.000Z | 2022-03-20T20:25:47.000Z | lib/surface/catalogue/components/tabs/tabItem.ex | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | 17 | 2021-03-20T16:23:13.000Z | 2022-03-15T16:21:08.000Z | defmodule Surface.Catalogue.Components.Tabs.TabItem do
@moduledoc false
use Surface.Component, slot: "tabs"
@doc "Item label"
prop label, :string, default: ""
@doc "Item icon"
prop icon, :string
@doc "Item is disabled"
prop disabled, :boolean, default: false
@doc "Item is visible"
prop visible,... | 21.047619 | 54 | 0.708145 |
1a6a5bd1b17f7e46fe67a5b4b4c18c07d060c877 | 20,992 | exs | Elixir | apps/ewallet/test/ewallet/gates/transaction_request_gate_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/test/ewallet/gates/transaction_request_gate_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/gates/transaction_request_gate_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.TransactionRequestGateTest do
use EWallet.LocalLedgerCase, async: true
alias EWallet.TransactionRequestGate
alias EWalletDB.{AccountUser, Token, TransactionRequest, User, Wallet}
setup do
{:ok, user} = :user |> params_for() |> User.insert()
{:ok, account} = :account |> params_for() |>... | 32.74883 | 97 | 0.598133 |
1a6a685e2863bee47b967cd9ca7891fac5f457d1 | 413 | exs | Elixir | test/sudoku_web/views/error_view_test.exs | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | test/sudoku_web/views/error_view_test.exs | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | test/sudoku_web/views/error_view_test.exs | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | defmodule SudokuWeb.ErrorViewTest do
use SudokuWeb.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(SudokuWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
1a6aa5ab4d5f54531c8d3692fc636f45920a8b1b | 1,947 | ex | Elixir | web/channels/comment_helper.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | web/channels/comment_helper.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | web/channels/comment_helper.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | defmodule BlogEngine.CommentHelper do
alias BlogEngine.Comment
alias BlogEngine.Post
alias BlogEngine.User
alias BlogEngine.Repo
import Ecto, only: [build_assoc: 2]
def create(%{"postId" => post_id, "body" => body, "author" => author}, _socket) do
post = get_post(post_id)
chang... | 31.918033 | 99 | 0.606061 |
1a6aabe62e8cd93f992bc1499214c5f10902b5bf | 2,188 | ex | Elixir | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/deserializer.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/deserializer.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/deserializer.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.257143 | 95 | 0.680987 |
1a6abbb7280e2c57792b8f6397fe16a5b15e3a71 | 2,571 | exs | Elixir | mix.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | null | null | null | mix.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | null | null | null | mix.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | null | null | null | defmodule Courtbot.Mixfile do
use Mix.Project
def project do
[
app: :courtbot,
version: "0.3.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 30.607143 | 79 | 0.536367 |
1a6ac02b5b5c05cc3ffe1287e453229541a4165c | 2,657 | exs | Elixir | agent.exs | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | agent.exs | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | agent.exs | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | null | null | null | # DO NOT EDIT
# This is a generated file by the `rake ship` family of tasks in the
# appsignal-agent repository.
# Modifications to this file will be overwritten with the next agent release.
defmodule Appsignal.Agent do
def version, do: "15ee07b"
def mirrors do
[
"https://appsignal-agent-releases.global... | 38.507246 | 85 | 0.685736 |
1a6b4387bf2533c6b873dc7c5850a7c2931e47e2 | 957 | ex | Elixir | lib/codes/codes_l93.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l93.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l93.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_L93 do
alias IcdCode.ICDCode
def _L930 do
%ICDCode{full_code: "L930",
category_code: "L93",
short_code: "0",
full_name: "Discoid lupus erythematosus",
short_name: "Discoid lupus erythematosus",
category_name: "Discoid lupus erythem... | 28.147059 | 65 | 0.62278 |
1a6b61a3eaac3b39f18f179a6c2d503aa8a565c0 | 1,816 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/metadata_filter_label_match.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/metadata_filter_label_match.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/metadata_filter_label_match.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... | 34.923077 | 130 | 0.731278 |
1a6b77651b06ca9c25a88272a0c3794b1324b745 | 600 | exs | Elixir | spec/field_float_spec.exs | eloy/extruder | 3adfb8c024edc734aa3f721cbb2c53b1ac977389 | [
"MIT"
] | 1 | 2018-05-03T00:24:50.000Z | 2018-05-03T00:24:50.000Z | spec/field_float_spec.exs | eloy/extruder | 3adfb8c024edc734aa3f721cbb2c53b1ac977389 | [
"MIT"
] | null | null | null | spec/field_float_spec.exs | eloy/extruder | 3adfb8c024edc734aa3f721cbb2c53b1ac977389 | [
"MIT"
] | null | null | null | defmodule FieldFloatSpec do
use ESpec
defmodule TestModel do
use Extruder
defmodel do
field :foo, :float
end
end
it "should accept numbers" do
{:ok, model} = TestModel.extrude %{foo: 1.9}
expect(model.foo) |> to(eq(1.9))
end
it "should convert numbers from strings" do
{:ok,... | 20 | 66 | 0.631667 |
1a6bc4f9608c4e1cbf46860a9ce11bbfef338fb6 | 817 | ex | Elixir | test/test_tcp_server.ex | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | 3 | 2018-10-27T18:18:14.000Z | 2020-11-27T11:47:41.000Z | test/test_tcp_server.ex | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | null | null | null | test/test_tcp_server.ex | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | 3 | 2019-01-07T12:32:44.000Z | 2021-09-05T07:24:09.000Z | defmodule Frettchen.TestTcpServer do
@moduledoc """
A test TCP server to receive the payload
send by the Sender to the Collector. The
correpsonding tests check if this process
has called a recieving data action.
"""
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, :ok, name: __MO... | 21.5 | 59 | 0.680539 |
1a6bd041eb5961ac309527529e0f6bb06e266177 | 297 | ex | Elixir | test/support/mix/tasks/test_env_wait.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | test/support/mix/tasks/test_env_wait.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | test/support/mix/tasks/test_env_wait.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | defmodule Mix.Tasks.Test.Env.Wait do
use Mix.Task
alias Mix.Tasks.Test.Env.Utils
@shortdoc "Checks test/test.integration dependencies"
@spec run(term) :: :ok
def run([]), do: run(["5000"])
def run([time | _]) do
:ok = Utils.wait_for_services(String.to_integer(time))
end
end
| 19.8 | 58 | 0.676768 |
1a6c2e942f3ff8f772cd4fc2066099959949237e | 4,488 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/audit_advertiser_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/audit_advertiser_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/audit_advertiser_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 66 | 587 | 0.756684 |
1a6c404d6bc228f4f7d6c35d6c1415374242d4c6 | 96 | exs | Elixir | apps/fw/config/config.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 16 | 2016-09-14T16:57:33.000Z | 2017-11-11T16:31:14.000Z | apps/fw/config/config.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 5 | 2016-09-08T07:14:44.000Z | 2018-11-09T12:34:19.000Z | apps/fw/config/config.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | null | null | null | use Mix.Config
config :porcelain, driver: Porcelain.Driver.Basic
import_config "secret.exs"
| 12 | 49 | 0.78125 |
1a6c44fe25c213e11d7aefdfc34b763b2cf3ca64 | 1,326 | ex | Elixir | lib/peg/input.ex | RobertDober/peg_to_parse | 497dbc157653798942a4f3ad612745cfa7550648 | [
"Apache-2.0"
] | null | null | null | lib/peg/input.ex | RobertDober/peg_to_parse | 497dbc157653798942a4f3ad612745cfa7550648 | [
"Apache-2.0"
] | null | null | null | lib/peg/input.ex | RobertDober/peg_to_parse | 497dbc157653798942a4f3ad612745cfa7550648 | [
"Apache-2.0"
] | null | null | null | defmodule Peg.Input do
defstruct col: 0, errors: [], lines: [], lnb: 1, current: ""
def new(input)
def new(%__MODULE__{} = input), do: input
def new(input) when is_binary(input), do: new(String.split(input, "\n"))
def new([]), do: %__MODULE__{lines: [""], current: ""}
def new([current|_]=lines), do: %__MO... | 29.466667 | 85 | 0.604072 |
1a6c58648088bf946f5a62b2d11d2671c827981e | 1,601 | ex | Elixir | lib/polygon_web.ex | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | lib/polygon_web.ex | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | lib/polygon_web.ex | TeamPolygon/triangle | 130b4e9fe2eb14d60032d60f553e4e17d4e8eab8 | [
"MIT"
] | null | null | null | defmodule PolygonWeb 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 PolygonWeb, :controller
use PolygonWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.544118 | 69 | 0.686446 |
1a6c6d8de2a4c33199fd63b0ef45f777c9bb69f4 | 1,168 | ex | Elixir | example/lib/example_web/channels/user_socket.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | 169 | 2016-04-08T10:47:43.000Z | 2021-01-19T15:37:34.000Z | example/lib/example_web/channels/user_socket.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | 36 | 2016-04-07T13:28:02.000Z | 2021-01-27T08:16:35.000Z | example/lib/example_web/channels/user_socket.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | 42 | 2016-04-08T14:31:33.000Z | 2021-01-21T09:24:51.000Z | defmodule ExampleWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "ping", ExampleWeb.PingChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authe... | 30.736842 | 83 | 0.705479 |
1a6c9010d18d3f59aea95fdaa755c46f4805eb6b | 324 | exs | Elixir | test/parallel_dots_test.exs | Eweev/paralleldots_ex | 04f22df1ad72c8f4cee8fc2442c3026df7619665 | [
"MIT"
] | null | null | null | test/parallel_dots_test.exs | Eweev/paralleldots_ex | 04f22df1ad72c8f4cee8fc2442c3026df7619665 | [
"MIT"
] | null | null | null | test/parallel_dots_test.exs | Eweev/paralleldots_ex | 04f22df1ad72c8f4cee8fc2442c3026df7619665 | [
"MIT"
] | null | null | null | defmodule ParallelDotsTest do
use ExUnit.Case
require Logger
doctest ParallelDots
test "intent analysis" do
case ParallelDots.text_analysis("what do you want from me", "intent") do
{:ok, response} ->
assert response["code"] == 200
{:error, reason} ->
assert false
end
end
... | 20.25 | 76 | 0.648148 |
1a6ca5479cec3f21e3c52d3d0fb9b539783f27aa | 407 | exs | Elixir | backend/priv/repo/migrations/20170522160732_create_coherence_invitable.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/priv/repo/migrations/20170522160732_create_coherence_invitable.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/priv/repo/migrations/20170522160732_create_coherence_invitable.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule Aptamer.Repo.Migrations.CreateCoherenceInvitable do
use Ecto.Migration
def change do
create table(:invitations, primary_key: false) do
add(:id, :binary_id, primary_key: true)
add(:name, :string)
add(:email, :string)
add(:token, :string)
timestamps
end
create(uni... | 23.941176 | 61 | 0.670762 |
1a6cc02c14f7f3974d7df882419a43e2126870f1 | 2,099 | exs | Elixir | test/absinthe/type/enum_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2020-08-12T12:34:40.000Z | 2020-08-12T12:34:40.000Z | test/absinthe/type/enum_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | test/absinthe/type/enum_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | defmodule Absinthe.Type.EnumTest do
use Absinthe.Case, async: true
alias Absinthe.Type
defmodule TestSchema do
use Absinthe.Schema
query do
field :channel, :color_channel, description: "The active color channel" do
resolve fn _, _ ->
{:ok, :red}
end
end
end
... | 27.986667 | 93 | 0.628871 |
1a6cc25ebac2de05bb029d58aa9e74a0a36e85c8 | 846 | exs | Elixir | fridge/apps/server/config/config.exs | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | 2 | 2018-02-01T22:56:09.000Z | 2020-01-20T19:57:48.000Z | fridge/apps/server/config/config.exs | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | null | null | null | fridge/apps/server/config/config.exs | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"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 :server, ServerWeb.Endpoint,
url: [host: "localhos... | 35.25 | 86 | 0.757683 |
1a6d29f90b433d9019bcd6e8bf2aaee2c486eeae | 1,119 | exs | Elixir | mix.exs | svan-jansson/ex_winlog | 6e663a9214efd8a36e2c09cdeaa402050d3c97f7 | [
"MIT"
] | 6 | 2019-11-18T21:38:20.000Z | 2019-12-17T01:43:29.000Z | mix.exs | svan-jansson/ex_winlog | 6e663a9214efd8a36e2c09cdeaa402050d3c97f7 | [
"MIT"
] | 3 | 2019-12-10T16:48:04.000Z | 2019-12-12T15:25:07.000Z | mix.exs | svan-jansson/ex_winlog | 6e663a9214efd8a36e2c09cdeaa402050d3c97f7 | [
"MIT"
] | 3 | 2019-12-10T15:55:35.000Z | 2019-12-11T13:53:36.000Z | defmodule ExWinlog.MixProject do
use Mix.Project
def project do
[
app: :ex_winlog,
version: "0.1.8",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: [ex_winlog_nif: [mode: if(Mix.env() == :p... | 22.38 | 98 | 0.561215 |
1a6d3640565e2e2c3f53509c1af6b2112bf3f6ff | 1,872 | exs | Elixir | lib/mix/test/mix/tasks/local.public_keys_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/test/mix/tasks/local.public_keys_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/mix/test/mix/tasks/local.public_keys_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.Local.PublicKeysTest do
use MixTest.Case
@pub """
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmlRL//AgfszL2vkk7G3K
t+vrI2d3aG+fGD4BZ1k1Qd/mS0EoDNfDQCpqtLzdM7oOjtu0BNCBvG3HC0tlAU92
i3EFqEC7RSHNIGYrQ4g5WwGQMw8... | 34.036364 | 97 | 0.692308 |
1a6d4d2ae1ba1428412d9e5b5b0e2b9978205f89 | 389 | exs | Elixir | test/slime_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 312 | 2015-12-28T05:25:47.000Z | 2022-02-16T05:18:16.000Z | test/slime_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 105 | 2015-12-27T21:20:58.000Z | 2022-02-24T05:23:38.000Z | test/slime_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 45 | 2016-01-12T04:02:01.000Z | 2021-09-14T16:19:18.000Z | defmodule SlimeTest do
use ExUnit.Case
doctest Slime
test "TemplateSyntaxError banner with error in first column" do
error = %Slime.TemplateSyntaxError{column: 0, line: "test line", line_number: 1}
assert Slime.TemplateSyntaxError.message(error) == ~S"""
Syntax error
INPUT, Line 1,... | 24.3125 | 84 | 0.624679 |
1a6d4db56742ae405a822414b6bfddcea6fb1571 | 1,112 | exs | Elixir | mix.exs | nathanhornby/emojiclock-elixir | aae39fe30773bf3ed81ee18d05eb791803e04e3a | [
"MIT"
] | 3 | 2017-08-26T06:15:21.000Z | 2020-06-19T12:58:03.000Z | mix.exs | nathanhornby/emojiclock-elixir | aae39fe30773bf3ed81ee18d05eb791803e04e3a | [
"MIT"
] | null | null | null | mix.exs | nathanhornby/emojiclock-elixir | aae39fe30773bf3ed81ee18d05eb791803e04e3a | [
"MIT"
] | null | null | null | defmodule EmojiClock.Mixfile do
use Mix.Project
@version "2.0.4"
def project do
[app: :emojiclock,
version: @version,
description: description(),
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
deps: deps(),
#... | 22.693878 | 78 | 0.566547 |
1a6d6e8d5d86b432dc95f233ae468e3261150eac | 10,883 | ex | Elixir | lib/elixir/lib/kernel/cli.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/lib/kernel/cli.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/cli.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.CLI do
@moduledoc false
defrecord Config, commands: [], output: ".", compile: [],
halt: true, compiler_options: [], errors: [],
verbose_compile: false
@doc """
This is the API invoked by Elixir boot process.
"""
def main(argv) do
argv = for arg ... | 27.139651 | 99 | 0.620877 |
1a6d7e8cfa61753f554dbf7ddb66d042d6500d22 | 399 | ex | Elixir | lib/changelog/hashid.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | lib/changelog/hashid.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | lib/changelog/hashid.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | defmodule Changelog.Hashid do
def encode(ids) when is_list(ids), do: Hashids.encode(hashid(), ids)
def encode(id), do: Hashids.encode(hashid(), [id])
def decode(encoded) do
decoded = Hashids.decode!(hashid(), encoded)
if length(decoded) > 1 do
decoded
else
List.first(decoded)
end
e... | 21 | 70 | 0.661654 |
1a6d8aad865d54fe67749324d696cc7cb7024562 | 1,125 | ex | Elixir | lib/gitexpress/worker.ex | juhalehtonen/GitExPress | 1116d72fdf74571a7506d6550f0f55fde3293422 | [
"MIT"
] | null | null | null | lib/gitexpress/worker.ex | juhalehtonen/GitExPress | 1116d72fdf74571a7506d6550f0f55fde3293422 | [
"MIT"
] | null | null | null | lib/gitexpress/worker.ex | juhalehtonen/GitExPress | 1116d72fdf74571a7506d6550f0f55fde3293422 | [
"MIT"
] | null | null | null | defmodule GitExPress.Worker do
@moduledoc """
Initializes the entry database on startup.
"""
use GenServer
alias GitExPress.Entries
alias GitExPress.Entries.Storage
# Client API
def start_link(args \\ []) do
GenServer.start_link(__MODULE__, :ok, args)
end
def reload_entries do
GenServer.c... | 21.634615 | 79 | 0.675556 |
1a6d8d919e9628c836bb1b142e488dac1665a06b | 6,224 | ex | Elixir | lib/podium.ex | backdoer/podium_ex | eb790c0f67f8c9765b11fc174beee63c0816ea1c | [
"MIT"
] | 7 | 2018-11-19T19:38:29.000Z | 2020-11-03T05:28:55.000Z | lib/podium.ex | backdoer/podium_ex | eb790c0f67f8c9765b11fc174beee63c0816ea1c | [
"MIT"
] | 1 | 2019-10-16T21:55:41.000Z | 2019-10-17T00:25:24.000Z | lib/podium.ex | backdoer/podium_ex | eb790c0f67f8c9765b11fc174beee63c0816ea1c | [
"MIT"
] | 6 | 2019-10-15T16:16:40.000Z | 2020-04-23T23:41:42.000Z | defmodule Podium do
@moduledoc """
Podium is a client for Podium's public API. It allows you to create new
messages and send them, among other things.
All functions accept a keyword list of options as an optional second
argument. Those options will be passed through to `HTTPoison.Request`. Other
options in... | 29.220657 | 134 | 0.648779 |
1a6d904288e30e9b955639793f2ab56d20d1eb37 | 4,019 | ex | Elixir | lib/chat_api/conversations/helpers.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api/conversations/helpers.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api/conversations/helpers.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | defmodule ChatApi.Conversations.Helpers do
@moduledoc """
Helper methods for Conversations context.
"""
require Logger
alias ChatApi.{Slack, SlackAuthorizations, SlackConversationThreads}
alias ChatApi.Conversations.Conversation
@spec format(Conversation.t()) :: map()
def format(%Conversation{} = conv... | 33.773109 | 107 | 0.620801 |
1a6db433c58c353b061989cfa891162d395de874 | 1,750 | ex | Elixir | lib/configuration.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | lib/configuration.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | lib/configuration.ex | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | defmodule Configuration do
@moduledoc """
Generate a Map with all configuration information and inject configuration
into application environment for compatibility with some library
"""
alias Vapor.Provider.{Dotenv, Env, Group}
@doc """
Loads and injects the configuration.
"""
def load! do
confi... | 20.114943 | 76 | 0.602857 |
1a6dc52b7ed83138d5b35b1b2d30bbc7f54b193f | 1,929 | exs | Elixir | config/prod.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | config/prod.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | config/prod.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | use Mix.Config
config :draft, Draft.Repo,
aws_rds_mod: ExAws.RDS,
show_sensitive_data_on_connection_error: false,
ssl: true
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manif... | 35.072727 | 90 | 0.712805 |
1a6dd0b64608d2e2afca026e8cfeb1c4a9f6ac8a | 2,709 | exs | Elixir | bench/fast_counter/tag_handling.exs | scohen/instruments | 6162bd3280795b544d052fce871acd9975aee542 | [
"MIT"
] | 167 | 2017-11-09T08:25:21.000Z | 2020-03-05T12:26:20.000Z | bench/fast_counter/tag_handling.exs | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 7 | 2020-05-13T15:16:08.000Z | 2022-03-03T01:39:56.000Z | bench/fast_counter/tag_handling.exs | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 16 | 2017-11-10T10:35:37.000Z | 2020-02-25T09:54:53.000Z | keyword_merge = fn input ->
for _ <- 1..100 do
case Keyword.get(input, :tags) do
tags when is_list(tags) ->
{:test, Keyword.merge(input, tags: Enum.sort(tags))}
_ ->
{:test, input}
end
end
end
keyword_merge_special = fn input ->
for _ <- 1..100 do
case Keyword.get(input, ... | 24.627273 | 188 | 0.547804 |
1a6dd71a9770713339490396f85bf560d0432b1d | 1,173 | ex | Elixir | web/controllers/api/v1/auth_controller.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | 1 | 2017-02-18T21:20:17.000Z | 2017-02-18T21:20:17.000Z | web/controllers/api/v1/auth_controller.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | web/controllers/api/v1/auth_controller.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | defmodule Panglao.Api.V1.AuthController do
use Panglao.Web, :controller
alias Panglao.{Repo, UserFromAuth}
plug Ueberauth
def login(%Plug.Conn{assigns: %{ueberauth_auth: %{uid: uid} = auth}} = conn, _params)
when not is_nil(uid) do
current_user = Guardian.Plug.current_resource conn
case User... | 27.27907 | 88 | 0.58312 |
1a6dd792f56d9caf01a82a3245224ef7c467a5a0 | 917 | ex | Elixir | apps/artemis/lib/artemis/repo/helpers.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/repo/helpers.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/repo/helpers.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-04-10T13:34:15.000Z | 2019-05-17T02:42:24.000Z | defmodule Artemis.Repo.Helpers do
alias Artemis.Repo
import Artemis.Helpers
require Logger
@doc """
Adds default pagination params.
"""
def pagination_params(params, options \\ []) do
params
|> keys_to_strings()
|> Map.put_new("page_size", Keyword.get(options, :default_page_size, 10))
|... | 23.512821 | 79 | 0.61723 |
1a6dd967f8076eb8aa8d01580983a92d197ae412 | 22,651 | ex | Elixir | lib/matcha/rewrite.ex | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | 6 | 2019-10-03T15:03:31.000Z | 2021-12-22T17:38:56.000Z | lib/matcha/rewrite.ex | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | 11 | 2021-12-07T23:47:10.000Z | 2021-12-21T08:52:16.000Z | lib/matcha/rewrite.ex | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | null | null | null | defmodule Matcha.Rewrite do
alias Matcha.Rewrite
@moduledoc """
About rewrites.
"""
alias Matcha.Context
alias Matcha.Error
alias Matcha.Source
alias Matcha.Pattern
alias Matcha.Spec
defstruct [:env, :context, :source, bindings: %{vars: %{}, count: 0}]
@type t :: %__MODULE__{
env: M... | 30.322624 | 133 | 0.638868 |
1a6df18f66da2e4e7f16c23cb6f321d6f9d7a738 | 313 | exs | Elixir | apps/re/priv/repo/migrations/20190430183113_add_seller_lead_tour_appointment.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20190430183113_add_seller_lead_tour_appointment.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20190430183113_add_seller_lead_tour_appointment.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.AddSellerLeadTourAppointment do
use Ecto.Migration
def change do
alter table(:tour_appointments) do
add :site_seller_lead_uuid, references(:site_seller_leads, type: :uuid, column: :uuid)
end
create index(:tour_appointments, [:site_seller_lead_uuid])
end
end
| 26.083333 | 92 | 0.760383 |
1a6e078d71d6c312720d41c6425f1c0b6ad2dffb | 273 | ex | Elixir | lib/riverside/codec/raw_binary.ex | LukasDoesDev/riverside | c2866be6c152e38cc142becf3e9c8c042c80ed57 | [
"MIT"
] | 63 | 2018-05-02T16:47:44.000Z | 2022-03-07T09:48:58.000Z | lib/riverside/codec/raw_binary.ex | LukasDoesDev/riverside | c2866be6c152e38cc142becf3e9c8c042c80ed57 | [
"MIT"
] | 20 | 2017-09-24T00:42:12.000Z | 2021-12-11T12:00:13.000Z | lib/riverside/codec/raw_binary.ex | LukasDoesDev/riverside | c2866be6c152e38cc142becf3e9c8c042c80ed57 | [
"MIT"
] | 9 | 2019-02-18T10:09:30.000Z | 2021-12-09T21:11:02.000Z | defmodule Riverside.Codec.RawBinary do
@behaviour Riverside.Codec
require Logger
@impl Riverside.Codec
def frame_type do
:binary
end
@impl Riverside.Codec
def encode(msg), do: {:ok, msg}
@impl Riverside.Codec
def decode(data), do: {:ok, data}
end
| 16.058824 | 38 | 0.699634 |
1a6e3ca10894e11f3b54721706a1ba3249e6cc41 | 1,153 | exs | Elixir | mix.exs | hongsw/ex_leaky_limiter | 84733f0e3176d0cbf4bca6e35c192baea0763ee3 | [
"MIT"
] | null | null | null | mix.exs | hongsw/ex_leaky_limiter | 84733f0e3176d0cbf4bca6e35c192baea0763ee3 | [
"MIT"
] | null | null | null | mix.exs | hongsw/ex_leaky_limiter | 84733f0e3176d0cbf4bca6e35c192baea0763ee3 | [
"MIT"
] | null | null | null | defmodule ExLeakyLimiter.MixProject do
use Mix.Project
def project do
[
app: :ex_leaky_limiter,
version: "0.1.0",
elixir: "~> 1.7",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()... | 25.065217 | 97 | 0.58196 |
1a6e40b0d45a812eba591c7f32177ec2b4390276 | 3,407 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_dicom_gcs_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_dicom_gcs_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_dicom_gcs_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 61.945455 | 1,433 | 0.756384 |
1a6e427754860d9c41b8e74e4e068beecbb17a1a | 953 | exs | Elixir | config/config.exs | raincrash/hackton | f85f049c79df25039d2c04e174d8a7b8fb946942 | [
"MIT"
] | 1 | 2016-03-15T17:50:12.000Z | 2016-03-15T17:50:12.000Z | config/config.exs | raincrash/hackton | f85f049c79df25039d2c04e174d8a7b8fb946942 | [
"MIT"
] | null | null | null | config/config.exs | raincrash/hackton | f85f049c79df25039d2c04e174d8a7b8fb946942 | [
"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 :hackton, Hackton.Endpoint,
url: [host: "localhost... | 31.766667 | 86 | 0.751312 |
1a6e82f6e091c70888e53bcc25575c7ab1e4ec71 | 517 | exs | Elixir | test/models/game_test.exs | rustedgrail/where_its_due | 2140006ecfbe29e9d4ebc1895b147a76b5376fc3 | [
"MIT"
] | null | null | null | test/models/game_test.exs | rustedgrail/where_its_due | 2140006ecfbe29e9d4ebc1895b147a76b5376fc3 | [
"MIT"
] | null | null | null | test/models/game_test.exs | rustedgrail/where_its_due | 2140006ecfbe29e9d4ebc1895b147a76b5376fc3 | [
"MIT"
] | null | null | null | defmodule WhereItsDue.GameTest do
use WhereItsDue.ModelCase
alias WhereItsDue.Game
@valid_attrs %{aliases: [], deck: "some content", description: "some content", giant_bomb_id: 42, image: [], name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Game.changeset(%... | 27.210526 | 132 | 0.717602 |
1a6e9b5022f08ea950fd0947345d15030896ecce | 3,012 | ex | Elixir | lib/xgit/config_entry.ex | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 94 | 2019-05-28T05:29:54.000Z | 2022-02-18T20:03:20.000Z | lib/xgit/config_entry.ex | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 156 | 2019-05-26T03:27:24.000Z | 2020-10-08T05:44:26.000Z | lib/xgit/config_entry.ex | scouten/redo | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 5 | 2019-05-28T16:35:55.000Z | 2021-06-16T14:25:17.000Z | defmodule Xgit.ConfigEntry do
@moduledoc ~S"""
Represents one entry in a git configuration dictionary.
This is also commonly referred to as a "config _line_" because it typically
occupies one line in a typical git configuration file.
The semantically-important portion of a configuration file (i.e. everythin... | 28.685714 | 98 | 0.65405 |
1a6ecf3c7869705379db1f3a70955cd6336b588b | 3,644 | exs | Elixir | test/plugs/session_plugs_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | test/plugs/session_plugs_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | test/plugs/session_plugs_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.SessionPlugsTest do
use Eecrit.PlugCase
alias Eecrit.SessionPlugs
alias Eecrit.AbilityGroupChooser
alias Eecrit.AbilityGroup
alias Eecrit.Organization
alias Eecrit.User
alias Phoenix.Controller
describe "an `:add_current_user` function" do
def subject(conn, user_id) do
conn =... | 33.431193 | 80 | 0.664654 |
1a6ee1abf012ceb453985b38009596edea4f395e | 2,036 | exs | Elixir | test/chirper_web/controllers/session_controller_test.exs | ritavaz02/Produtos | b29ed74e428eb9391ccd12460d1dcb005d040400 | [
"MIT"
] | null | null | null | test/chirper_web/controllers/session_controller_test.exs | ritavaz02/Produtos | b29ed74e428eb9391ccd12460d1dcb005d040400 | [
"MIT"
] | null | null | null | test/chirper_web/controllers/session_controller_test.exs | ritavaz02/Produtos | b29ed74e428eb9391ccd12460d1dcb005d040400 | [
"MIT"
] | null | null | null | defmodule ChirperWeb.SessionControllerTest do
use ChirperWeb.ConnCase
alias Chirper.Accounts
@valid_attrs %{password: "some encrypted_password", password_confirmation: "some encrypted_password", username: "some username", money: "some money"}
@valid_login %{password: "some encrypted_password", username: "some ... | 36.357143 | 151 | 0.672888 |
1a6ee2f0fd859b374c262e0e661eda19528ddd9a | 92 | exs | Elixir | test/mudkip_test.exs | Mendor/mudkip | 65d265508ffe474835237d9302d1851da6cc0a27 | [
"WTFPL"
] | 1 | 2017-02-18T04:36:16.000Z | 2017-02-18T04:36:16.000Z | test/mudkip_test.exs | Mendor/mudkip | 65d265508ffe474835237d9302d1851da6cc0a27 | [
"WTFPL"
] | null | null | null | test/mudkip_test.exs | Mendor/mudkip | 65d265508ffe474835237d9302d1851da6cc0a27 | [
"WTFPL"
] | null | null | null | defmodule MudkipTest do
use ExUnit.Case
test "the truth" do
assert(true)
end
end
| 11.5 | 23 | 0.695652 |
1a6eed8fa6d6d668905314d9788195c9e48b921f | 4,391 | ex | Elixir | lib/chat_api_web/views/customer_view.ex | chops318/papercups | 5b91c540c8bd56967ba3da8132a163002b80251a | [
"MIT"
] | null | null | null | lib/chat_api_web/views/customer_view.ex | chops318/papercups | 5b91c540c8bd56967ba3da8132a163002b80251a | [
"MIT"
] | null | null | null | lib/chat_api_web/views/customer_view.ex | chops318/papercups | 5b91c540c8bd56967ba3da8132a163002b80251a | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.CustomerView do
use ChatApiWeb, :view
alias ChatApiWeb.{
CompanyView,
ConversationView,
CustomerView,
IssueView,
MessageView,
NoteView,
TagView,
CSVHelpers
}
alias ChatApi.Companies.Company
alias ChatApi.Customers.Customer
@customer_csv_ordered_fields ... | 31.364286 | 97 | 0.674106 |
1a6f1d8c2e2c5820eafa097cc65ab05ea519dcc3 | 10,435 | ex | Elixir | lib/hexpm/web/views/dashboard/repository_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/dashboard/repository_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/dashboard/repository_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.Dashboard.RepositoryView do
use Hexpm.Web, :view
alias Hexpm.Web.DashboardView
defp repository_roles_selector() do
Enum.map(repository_roles(), fn {name, id, _title} ->
{name, id}
end)
end
defp repository_roles() do
[
{"Admin", "admin", "This role has full control... | 27.033679 | 97 | 0.521706 |
1a6f293cb5c95d2e78ac09aa1c4dc0946a5249b4 | 425 | ex | Elixir | apps/publishing/test/support/factory.ex | felipelincoln/branchpage | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 49 | 2021-06-06T05:40:30.000Z | 2021-08-23T04:50:46.000Z | apps/publishing/test/support/factory.ex | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 40 | 2021-01-09T16:50:50.000Z | 2021-10-01T16:27:35.000Z | apps/publishing/test/support/factory.ex | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 5 | 2021-02-20T12:58:39.000Z | 2022-02-01T02:23:23.000Z | defmodule Publishing.Factory do
@moduledoc """
Module for teste data fabrication
"""
use ExMachina.Ecto, repo: Publishing.Repo
alias Publishing.Interact.DailyImpressionCounter
alias Publishing.Manage.{Article, Blog, Platform}
def article_factory, do: %Article{}
def blog_factory, do: %Blog{}
def pla... | 26.5625 | 69 | 0.762353 |
1a6f2d8b90ad9142af376febdea00e9b7e509647 | 1,289 | exs | Elixir | mix.exs | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | mix.exs | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | mix.exs | k-cross/plotex | 5b5634bf47d677172e7c8da4877ebe38f62d16a1 | [
"Apache-2.0"
] | null | null | null | defmodule Plotex.MixProject do
use Mix.Project
def project do
[
app: :plotex,
version: "0.3.1",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package()
]
end
# Run "mix help compile.app" to learn abou... | 24.320755 | 87 | 0.565555 |
1a6f9b6f5d7ef3ce19297bf0160dfd5f7e17a14d | 499 | exs | Elixir | elixir/learning-files/part-4/cases.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | null | null | null | elixir/learning-files/part-4/cases.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | 1 | 2018-10-05T06:00:01.000Z | 2018-10-05T06:00:01.000Z | elixir/learning-files/part-4/cases.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | 1 | 2018-10-05T04:43:55.000Z | 2018-10-05T04:43:55.000Z | # Cases are pretty much the same as most languages except we get to draw cool arrows
case {1, 2, 3} do
{4, 5, 6} ->
"This clause won't match"
{1, x, 3} ->
"This clause will match and bind x to 2 in this clause"
_ ->
"This clause would match any value"
end
# Cases can also have "Guards" aka. extra mat... | 26.263158 | 84 | 0.637275 |
1a6fae26bbea793b89ed4fcba11c1c4cea532bf2 | 1,600 | ex | Elixir | lib/groupher_server_web.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server_web.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server_web.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServerWeb 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 GroupherServerWeb, :controller
use GroupherServerWeb, :view
The definitions below will be executed for every... | 24.242424 | 69 | 0.709375 |
1a6ffbbc91240c83ef048f7a84f41525af48cc56 | 66 | ex | Elixir | app/lib/jtfparty_web/views/session_view.ex | gkzz/jtfparty | d1190b9988857980e0a83cca877d1288f66a8a94 | [
"MIT"
] | null | null | null | app/lib/jtfparty_web/views/session_view.ex | gkzz/jtfparty | d1190b9988857980e0a83cca877d1288f66a8a94 | [
"MIT"
] | 17 | 2020-08-16T12:47:00.000Z | 2021-04-06T17:09:15.000Z | app/lib/jtfparty_web/views/session_view.ex | gkzz/jtfparty | d1190b9988857980e0a83cca877d1288f66a8a94 | [
"MIT"
] | 1 | 2020-08-07T04:33:52.000Z | 2020-08-07T04:33:52.000Z | defmodule JtfpartyWeb.SessionView do
use JtfpartyWeb, :view
end
| 16.5 | 36 | 0.818182 |
1a7008056c5c6df83eb1a5e58f191a334ed01db4 | 4,819 | exs | Elixir | config/prodaws.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | config/prodaws.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | config/prodaws.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 28.347059 | 76 | 0.656568 |
1a70149a39f47d78974deca1857f73b684db608a | 971 | ex | Elixir | lib/monzo/feed.ex | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 8 | 2016-10-02T12:05:47.000Z | 2020-06-22T12:37:32.000Z | lib/monzo/feed.ex | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 51 | 2018-03-12T05:19:14.000Z | 2021-08-03T05:15:19.000Z | lib/monzo/feed.ex | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 3 | 2017-10-30T07:44:38.000Z | 2020-04-19T12:04:33.000Z | defmodule Monzo.Feed do
@moduledoc """
[Monzo API reference](https://monzo.com/docs/#feed)
"""
@endpoint "feed"
defmodule BasicItem do
defstruct background_color: nil, body: nil, body_color: nil,
image_url: nil, title: nil, title_color: nil
@type t :: %__MODULE__{
background_col... | 24.897436 | 107 | 0.61277 |
1a703b4c4851ba462dd0ae106cb7afa9f42b85d1 | 2,842 | ex | Elixir | lib/langue/formatter/android/parser.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/langue/formatter/android/parser.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/langue/formatter/android/parser.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Langue.Formatter.Android.Parser do
@behaviour Langue.Formatter.Parser
alias Langue.Entry
def parse(%{render: render}) do
case :mochiweb_html.parse(render) do
{"resources", _options, strings} ->
entries =
strings
|> Enum.reduce(%{comment: [], entries: [], index: 1}... | 26.314815 | 84 | 0.555947 |
1a704181298f2bb70fcf7f5083a7ceb55f5628a4 | 2,123 | exs | Elixir | test/surface/renderer_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | test/surface/renderer_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 248 | 2021-03-12T07:39:37.000Z | 2022-03-31T13:36:44.000Z | test/surface/renderer_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule Surface.RendererTest do
use Surface.ConnCase, async: true
alias Surface.RendererTest.Components.ComponentWithExternalTemplate
alias Surface.RendererTest.Components.LiveComponentWithExternalTemplate
alias Surface.RendererTest.Components.LiveViewWithExternalTemplate
defmodule View do
use Surface... | 26.5375 | 87 | 0.670749 |
1a705ee7f010b48d013adefd3fd9243e4b2dda04 | 808 | exs | Elixir | test/date_test.exs | svrdlans/calecto | 6423a6958b545dcec2974750b82f5634c0db94c7 | [
"MIT"
] | 137 | 2015-05-23T20:13:40.000Z | 2021-11-08T17:04:43.000Z | test/date_test.exs | svrdlans/calecto | 6423a6958b545dcec2974750b82f5634c0db94c7 | [
"MIT"
] | 35 | 2015-07-14T14:46:28.000Z | 2021-01-27T20:40:49.000Z | test/date_test.exs | svrdlans/calecto | 6423a6958b545dcec2974750b82f5634c0db94c7 | [
"MIT"
] | 25 | 2015-07-29T08:40:27.000Z | 2021-09-30T15:48:04.000Z | defmodule DateTest do
use ExUnit.Case
@calendar_date %Date{day: 29, month: 7, year: 2015}
@string_date "2015-07-29"
@map_date %{"day" => "29", "month" => "7", "year" => "2015"}
@tuple_date {2015, 7, 29}
test "dump Date" do
assert Calecto.Date.dump(@calendar_date) == {:ok, @tuple_date}
end
test "... | 27.862069 | 69 | 0.657178 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.