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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a30f6d585e1091ca7f256e582a923507300176d | 2,172 | exs | Elixir | config/config.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | config/config.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | config/config.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"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.
# General application configuration
use Mix.Config
config :hammer,
backend: {Hammer.Backend.ETS,
... | 27.846154 | 86 | 0.739411 |
5a311508caefc013cc59d6a4db354bb8143d6b3f | 273 | ex | Elixir | lib/club/commanded.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | lib/club/commanded.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | lib/club/commanded.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Commanded do
use Commanded.Application, otp_app: :club
use Commanded.CommandDispatchValidation
router(Club.Accounts.Router)
router(Club.Brands.Router)
router(Club.Devices.Router)
router(Club.SurfaceTypes.Router)
router(Club.Colors.Router)
end
| 24.818182 | 43 | 0.794872 |
5a31404305317fbfc0cc48d16fdf687dc75f44f5 | 1,790 | ex | Elixir | test/support/model_case.ex | luisantunesdeveloper/streams | 98b85124dd1c39c2ebe1254e454be98863bacb7e | [
"MIT"
] | null | null | null | test/support/model_case.ex | luisantunesdeveloper/streams | 98b85124dd1c39c2ebe1254e454be98863bacb7e | [
"MIT"
] | null | null | null | test/support/model_case.ex | luisantunesdeveloper/streams | 98b85124dd1c39c2ebe1254e454be98863bacb7e | [
"MIT"
] | null | null | null | defmodule Streams.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. For ... | 27.121212 | 84 | 0.684916 |
5a315a7e3184027dc8fd631a1b5d23fb43321fe7 | 1,293 | exs | Elixir | test/validation/rules/consonant_test.exs | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | 60 | 2019-09-13T13:37:01.000Z | 2021-01-06T05:20:32.000Z | test/validation/rules/consonant_test.exs | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | 1 | 2019-12-16T13:57:22.000Z | 2019-12-16T13:57:22.000Z | test/validation/rules/consonant_test.exs | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | 5 | 2019-09-13T19:14:24.000Z | 2019-11-26T17:33:08.000Z | defmodule Validation.Rules.ConsonantTest do
use ExUnit.Case
alias Validation.Rules.Consonant, as: V
doctest Validation
test "valid consonant" do
assert V.validate?("b")
assert V.validate?("c")
assert V.validate?("d")
assert V.validate?("w")
assert V.validate?("y")
assert V.validate?("qr... | 29.386364 | 64 | 0.575406 |
5a318122560f50cf4893ec899d3566f005c3fb07 | 2,767 | ex | Elixir | lib/scidata/cifar10.ex | nallwhy/scidata | defac25088beb7865757235284499b5357844aba | [
"Apache-2.0"
] | 107 | 2021-04-16T16:07:38.000Z | 2022-03-06T19:43:12.000Z | lib/scidata/cifar10.ex | nallwhy/scidata | defac25088beb7865757235284499b5357844aba | [
"Apache-2.0"
] | 19 | 2021-04-16T17:32:14.000Z | 2022-01-19T15:05:53.000Z | lib/scidata/cifar10.ex | nallwhy/scidata | defac25088beb7865757235284499b5357844aba | [
"Apache-2.0"
] | 9 | 2021-04-17T20:49:55.000Z | 2022-01-19T04:00:34.000Z | defmodule Scidata.CIFAR10 do
@moduledoc """
Module for downloading the [CIFAR10 dataset](https://www.cs.toronto.edu/~kriz/cifar.html).
"""
require Scidata.Utils
alias Scidata.Utils
@base_url "https://www.cs.toronto.edu/~kriz/"
@dataset_file "cifar-10-binary.tar.gz"
@train_images_shape {50000, 3, 32, 3... | 30.076087 | 101 | 0.588724 |
5a318b5110943aa319a2eea4d6a5ea5a01fa2532 | 5,994 | exs | Elixir | priv/data/community/languages.exs | sdrees/website | 3adc22d0bfd99410658792707e58603089981b8d | [
"Apache-2.0"
] | 1 | 2019-10-31T19:59:41.000Z | 2019-10-31T19:59:41.000Z | priv/data/community/languages.exs | sdrees/website | 3adc22d0bfd99410658792707e58603089981b8d | [
"Apache-2.0"
] | null | null | null | priv/data/community/languages.exs | sdrees/website | 3adc22d0bfd99410658792707e58603089981b8d | [
"Apache-2.0"
] | null | null | null | [
%{
name: "Caramel",
link: "https://caramel.abstractmachines.dev/",
icon: "/images/community/languages/caramel.svg",
logo: nil,
about:
"Caramel is an experimental project, featuring primarily an Erlang backend to the OCaml compiler, that brings one of the most mature and expre... | 45.755725 | 260 | 0.667835 |
5a319a3382a95a57938b3f96ff40aba9cc72b87d | 1,656 | ex | Elixir | lib/chirper_web/router.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | null | null | null | lib/chirper_web/router.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 1 | 2021-03-10T07:27:11.000Z | 2021-03-10T07:27:11.000Z | lib/chirper_web/router.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | null | null | null | defmodule ChirperWeb.Router do
use ChirperWeb, :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 "/", ChirperWeb do
pipe_... | 28.551724 | 79 | 0.676329 |
5a31a1324bb8cdc9e00da6a5e8379ac1b84dd417 | 13,387 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/api/operations.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_shell/lib/google_api/cloud_shell/v1/api/operations.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/api/operations.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 47.471631 | 196 | 0.641219 |
5a31caaff6bb3b02cc270f4c99be5e715ab2895c | 95 | exs | Elixir | test/game_of_life/board_server_test.exs | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | 57 | 2016-04-28T09:02:27.000Z | 2021-12-16T20:03:05.000Z | test/game_of_life/board_server_test.exs | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | 1 | 2016-05-30T05:51:10.000Z | 2016-05-31T21:32:44.000Z | test/game_of_life/board_server_test.exs | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | 4 | 2016-05-27T18:38:23.000Z | 2019-05-30T11:03:45.000Z | defmodule GameOfLife.BoardServerTest do
use ExUnit.Case
doctest GameOfLife.BoardServer
end
| 19 | 39 | 0.842105 |
5a320a6bd0f90c16b6404e0c3bbb25385f0b272a | 97 | exs | Elixir | c_src/membrane/membrane.spec.exs | membraneframework/membrane-common-c | 7b43008a7c24fb84ac694cd179338eb72270e349 | [
"Apache-2.0"
] | 5 | 2018-07-27T20:36:22.000Z | 2018-09-11T02:27:04.000Z | c_src/membrane/membrane.spec.exs | membraneframework/membrane_common_c | 8f3d8014858f4cda4ec32a769fec401b75b80398 | [
"Apache-2.0"
] | 2 | 2021-05-20T20:22:25.000Z | 2022-03-30T12:16:29.000Z | c_src/membrane/membrane.spec.exs | membraneframework/membrane_common_c | 8f3d8014858f4cda4ec32a769fec401b75b80398 | [
"Apache-2.0"
] | 1 | 2018-07-28T02:54:53.000Z | 2018-07-28T02:54:53.000Z | sends {:membrane_log :: label, level :: atom, message :: string, time :: string, tags :: [atom]}
| 48.5 | 96 | 0.639175 |
5a3226d0b18ccd1973d4d2f24dab6d883b345006 | 910 | exs | Elixir | mix.exs | fire/hedwig_github | 12e4b3b6ffe2f45cdad24970a6c792829b45f3cb | [
"MIT"
] | null | null | null | mix.exs | fire/hedwig_github | 12e4b3b6ffe2f45cdad24970a6c792829b45f3cb | [
"MIT"
] | null | null | null | mix.exs | fire/hedwig_github | 12e4b3b6ffe2f45cdad24970a6c792829b45f3cb | [
"MIT"
] | null | null | null | defmodule HedwigGithub.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :hedwig_github,
name: "Hedwig Github",
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package,
description: "A github... | 23.333333 | 85 | 0.568132 |
5a325e4f70aca8ac41d3a1b4f15e29f197a1c4b1 | 222 | exs | Elixir | .formatter.exs | igormotta92/elixir_nlw_wabanex | d63a0d4c664d1909268a6127f108b636a3b46781 | [
"MIT"
] | null | null | null | .formatter.exs | igormotta92/elixir_nlw_wabanex | d63a0d4c664d1909268a6127f108b636a3b46781 | [
"MIT"
] | null | null | null | .formatter.exs | igormotta92/elixir_nlw_wabanex | d63a0d4c664d1909268a6127f108b636a3b46781 | [
"MIT"
] | null | null | null | # Configurções de formatação do código no auto-save
[
import_deps: [:absinthe, :ecto, :phoenix],
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"],
subdirectories: ["priv/*/migrations"]
]
| 31.714286 | 80 | 0.635135 |
5a32a0feb3964c28be4df843eb1d8e46f442ad29 | 1,140 | exs | Elixir | apps/feedback/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/feedback/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/feedback/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.625 | 95 | 0.75614 |
5a32c0f7a8de15fab52ceea02086987ec77d21a4 | 1,194 | exs | Elixir | test/ex_sdp/attribute/ssrc_test.exs | ccbill303/ex_sdp | ec99cecff1b297566248b8cd36b898668b4c89e9 | [
"Apache-2.0"
] | null | null | null | test/ex_sdp/attribute/ssrc_test.exs | ccbill303/ex_sdp | ec99cecff1b297566248b8cd36b898668b4c89e9 | [
"Apache-2.0"
] | null | null | null | test/ex_sdp/attribute/ssrc_test.exs | ccbill303/ex_sdp | ec99cecff1b297566248b8cd36b898668b4c89e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExSDP.Attribute.SSRCTest do
use ExUnit.Case
alias ExSDP.Attribute.SSRC
describe "SSRC parser" do
test "parses ssrc with attribute and value" do
ssrc = "4112531724 cname:HPd3XfRHXYUxzfsJ"
expected = %SSRC{id: 4_112_531_724, attribute: "cname", value: "HPd3XfRHXYUxzfsJ"}
assert {:o... | 32.27027 | 88 | 0.666667 |
5a3302e14ff4f73cdcf2e8c547d88a88f917b432 | 813 | ex | Elixir | lib/logbook/backends/logfmt/encoder.ex | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 2 | 2021-09-02T13:44:48.000Z | 2021-09-08T12:28:55.000Z | lib/logbook/backends/logfmt/encoder.ex | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 2 | 2020-06-24T20:45:45.000Z | 2021-09-02T13:02:50.000Z | lib/logbook/backends/logfmt/encoder.ex | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 1 | 2019-06-07T16:32:53.000Z | 2019-06-07T16:32:53.000Z | defmodule Logbook.Backends.Logfmt.Encoder do
@moduledoc false
# Encode keyword lists to a single string.
# Inspired by https://hex.pm/packages/logfmt, refactored to fit logfmt file
# logger backend needs.
alias Logbook.Backends.Logfmt.Value
@doc false
@spec encode(Keyword.t()) :: String.t()
def encod... | 22.583333 | 77 | 0.616236 |
5a33089099bb249ca55933b00135cfcda4108a6a | 21,382 | ex | Elixir | lib/plug/amqp/consumer_producer.ex | kantox/plug_amqp | 6bf20180220a5dc299d63623538670659f2553f1 | [
"MIT"
] | 1 | 2020-05-12T08:05:09.000Z | 2020-05-12T08:05:09.000Z | lib/plug/amqp/consumer_producer.ex | kantox/plug_amqp | 6bf20180220a5dc299d63623538670659f2553f1 | [
"MIT"
] | 21 | 2020-05-08T17:26:15.000Z | 2021-08-02T10:24:02.000Z | lib/plug/amqp/consumer_producer.ex | kantox/plug_amqp | 6bf20180220a5dc299d63623538670659f2553f1 | [
"MIT"
] | null | null | null | defmodule Plug.AMQP.ConsumerProducer do
@moduledoc ~s"""
A consumer-producer for RPC over *AMQP* protocol.
This module provides a consumer-producer for managing remote procedure calls
over *AMQP*. A consumer-producer creates at least one connection to an *AMQP*
broker. Request are received by consuming from ... | 34.431562 | 101 | 0.661631 |
5a330b607dc7698e23baeceb159155c90690d0ef | 1,111 | exs | Elixir | umbrellaproject/apps/app3/config/config.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | umbrellaproject/apps/app3/config/config.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | umbrellaproject/apps/app3/config/config.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"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... | 35.83871 | 73 | 0.749775 |
5a339cba3c8e2ee3c722205ccb3b03721627b4d7 | 1,499 | ex | Elixir | lib/moviematch.ex | yatender-oktalk/moviematch | c8de8752a96cfb63b30fc72e28d61501b977f982 | [
"MIT"
] | null | null | null | lib/moviematch.ex | yatender-oktalk/moviematch | c8de8752a96cfb63b30fc72e28d61501b977f982 | [
"MIT"
] | null | null | null | lib/moviematch.ex | yatender-oktalk/moviematch | c8de8752a96cfb63b30fc72e28d61501b977f982 | [
"MIT"
] | null | null | null | defmodule MovieMatch do
alias MovieMatch.{AppConfig, Imdb}
#create a separate file for app config and call method from there
# you'll never know when your application starts growing and later on it'll be difficult to modularize application
@yts_url AppConfig.yts_url()
defp is_movie?(yts_response) do
{:... | 33.311111 | 116 | 0.6998 |
5a339e29a9132cbe5ba215dac5196d9cd55be785 | 1,668 | ex | Elixir | test/support/model_case.ex | AlexKovalevych/evolution | 2271546f045d475d676f5993c25824496026694b | [
"MIT"
] | null | null | null | test/support/model_case.ex | AlexKovalevych/evolution | 2271546f045d475d676f5993c25824496026694b | [
"MIT"
] | null | null | null | test/support/model_case.ex | AlexKovalevych/evolution | 2271546f045d475d676f5993c25824496026694b | [
"MIT"
] | null | null | null | defmodule Evolution.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. Fo... | 26.0625 | 84 | 0.684652 |
5a33a4231a99e13517dc6410ce8612a3824d0ea4 | 138 | ex | Elixir | web/controllers/signup_controller.ex | tahmidsadik112/bloom | edf9995535cdb189b47addb7aee7311f590c5a87 | [
"MIT"
] | null | null | null | web/controllers/signup_controller.ex | tahmidsadik112/bloom | edf9995535cdb189b47addb7aee7311f590c5a87 | [
"MIT"
] | null | null | null | web/controllers/signup_controller.ex | tahmidsadik112/bloom | edf9995535cdb189b47addb7aee7311f590c5a87 | [
"MIT"
] | null | null | null | defmodule Bloom.SignupController do
use Bloom.Web, :controller
def signup(conn, _params) do
render conn, "signup.html"
end
end
| 17.25 | 35 | 0.731884 |
5a34163bb02b364b247e65e79a45eb631ff8883f | 3,082 | ex | Elixir | lib/datetime/ambiguous.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | null | null | null | lib/datetime/ambiguous.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | null | null | null | lib/datetime/ambiguous.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | null | null | null | defmodule Timex.AmbiguousDateTime do
@moduledoc """
Represents a DateTime which is ambiguous due to timezone rules.
## Ambiguity #1 - Non-existent times
Let's use American daylight savings time rules as our example here,
using America/Chicago as our example. Central Standard Time for that
zone ends at 2:0... | 46.69697 | 103 | 0.717716 |
5a343b9a5d00d5175b89c5c1dbe29a51f0ed04f8 | 146 | exs | Elixir | daniel/prog_elix/ch22/eg.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | daniel/prog_elix/ch22/eg.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/prog_elix/ch22/eg.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | defmodule My do
defmacro macro(code) do
IO.inspect code
code
end
end
defmodule Test do
require My
My.macro(IO.puts("hello"))
end
| 12.166667 | 28 | 0.684932 |
5a34489178beb9a7b9c3027798994efe4000a22d | 4,381 | ex | Elixir | lib/showoff/kid_parser.ex | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | null | null | null | lib/showoff/kid_parser.ex | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | 11 | 2015-09-10T02:03:49.000Z | 2021-11-25T11:38:59.000Z | lib/showoff/kid_parser.ex | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | null | null | null | defmodule Showoff.KidParser do
import NimbleParsec
def parse(str) do
try do
with {:ok, raw, _, _, _, _} <- pparse(str),
tuples when is_list(tuples) <- convert_to_tuples(raw) do
{:ok, Enum.reverse(tuples)}
end
rescue
_ -> {:error, "invalid shape"}
end
end
def con... | 21.26699 | 106 | 0.5622 |
5a3461012c010341adbf19ff9785e47877c52f66 | 1,704 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/packet_mirroring_forwarding_rule_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/packet_mirroring_forwarding_rule_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/packet_mirroring_forwarding_rule_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.08 | 160 | 0.735915 |
5a34674c09d505140c0dfd5e61d95e3b86e7190d | 535 | ex | Elixir | 2022/w04/bank_kata_ex/lib/bank/core/model/account-boundaries-service.ex | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/lib/bank/core/model/account-boundaries-service.ex | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | 2022/w04/bank_kata_ex/lib/bank/core/model/account-boundaries-service.ex | dc0d/workshop-notes | 971f0166116f1c6157ff999059e0151a2db539b8 | [
"MIT"
] | null | null | null | defmodule Bank.Core.Model.Account.Boundaries.Service do
@moduledoc false
alias Bank.Core.Model.Amount
@type reason :: any()
@type bank_statement :: String.t()
@callback deposit(account_id: String.t(), amount: Amount.t(), time: NaiveDateTime.t()) ::
:ok | {:error, reason()}
@callback withdra... | 35.666667 | 97 | 0.648598 |
5a3469de54e8c1b20c3209f97df59bfbde840569 | 1,026 | ex | Elixir | lib/postgrex/extensions/oid.ex | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/extensions/oid.ex | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/extensions/oid.ex | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Extensions.OID do
@moduledoc false
@oid_senders ~w(oidsend regprocsend regproceduresend regopersend
regoperatorsend regclasssend regtypesend xidsend cidsend)
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, Enum.map(@oid_senders, &{:send, &1})
@oid_... | 32.0625 | 77 | 0.650097 |
5a348bb715ae71bf5e7c39a39ee5d79d0ca58d27 | 2,153 | ex | Elixir | lib/ash/resource/transformers/belongs_to_attribute.ex | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | lib/ash/resource/transformers/belongs_to_attribute.ex | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | lib/ash/resource/transformers/belongs_to_attribute.ex | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Transformers.BelongsToAttribute do
@moduledoc """
Creates the attribute for belongs_to relationships that have `define_field?: true`
"""
use Ash.Dsl.Transformer
alias Ash.Dsl.Transformer
alias Ash.Error.Dsl.DslError
@extension Module.concat(["Ash", Resource, Dsl])
def transform... | 31.661765 | 98 | 0.631677 |
5a34900d8abfe32a056f70d794162780ff6391f3 | 5,817 | ex | Elixir | lib/distillery/tasks/clean.ex | kudlam/distillery | f6429f0cd36c7d54c51631c4964dfaf723b4a53e | [
"MIT"
] | null | null | null | lib/distillery/tasks/clean.ex | kudlam/distillery | f6429f0cd36c7d54c51631c4964dfaf723b4a53e | [
"MIT"
] | null | null | null | lib/distillery/tasks/clean.ex | kudlam/distillery | f6429f0cd36c7d54c51631c4964dfaf723b4a53e | [
"MIT"
] | 1 | 2019-06-05T09:44:31.000Z | 2019-06-05T09:44:31.000Z | defmodule Mix.Tasks.Distillery.Release.Clean do
@moduledoc """
Cleans release artifacts from the current project.
## Examples
# Cleans files associated with the latest release
mix distillery.release.clean
# Remove all release files
mix distillery.release.clean --implode
# Remove ... | 27.438679 | 95 | 0.628159 |
5a349364ca569ea981959e26cb53cddbd9889263 | 3,945 | exs | Elixir | exercises/concept/wine-cellar/test/wine_cellar_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 200 | 2019-12-12T13:50:59.000Z | 2022-02-20T22:38:42.000Z | exercises/concept/wine-cellar/test/wine_cellar_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 1,938 | 2019-12-12T08:07:10.000Z | 2021-01-29T12:56:13.000Z | exercises/concept/wine-cellar/test/wine_cellar_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 239 | 2019-12-12T14:09:08.000Z | 2022-03-18T00:04:07.000Z | defmodule WineCellarTest do
use ExUnit.Case
describe "explain_colors/0" do
# @tag :pending
test "returns a keyword list" do
assert WineCellar.explain_colors() == [
white: "Fermented without skin contact.",
red: "Fermented with skin contact using dark-colored grapes.",
... | 33.151261 | 97 | 0.525475 |
5a34ae9badeb7a9aaf01c0e482888ca9b7950810 | 1,750 | ex | Elixir | lib/oli_web/controllers/api/platform_instance_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/controllers/api/platform_instance_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/controllers/api/platform_instance_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.Api.PlatformInstanceController do
use OliWeb, :controller
alias Lti_1p3.DataProviders.EctoProvider.PlatformInstance
alias Oli.Lti.PlatformInstances
action_fallback OliWeb.FallbackController
def index(conn, _params) do
lti_1p3_platform_instances = PlatformInstances.list_lti_1p3_platform... | 35 | 101 | 0.733714 |
5a34d40ddca6ae19d3aa2efca3a7265a9e0f5806 | 71 | exs | Elixir | test/exif_parser_test.exs | bruceme/exif_parser | 38f8ccb9db82924229da3df89ce91a03e4c5decb | [
"Apache-2.0"
] | null | null | null | test/exif_parser_test.exs | bruceme/exif_parser | 38f8ccb9db82924229da3df89ce91a03e4c5decb | [
"Apache-2.0"
] | null | null | null | test/exif_parser_test.exs | bruceme/exif_parser | 38f8ccb9db82924229da3df89ce91a03e4c5decb | [
"Apache-2.0"
] | null | null | null | defmodule ExifParserTest do
use ExUnit.Case
doctest ExifParser
end
| 14.2 | 27 | 0.816901 |
5a34ff9359c18f492b2b22a1fc54dee57aed6c92 | 33,170 | ex | Elixir | lib/ecto/adapters/sql.ex | tcrossland/ecto_sql | 94a9bb8afe7c09f98f566433fa72ef93badc52ba | [
"Apache-2.0"
] | 1 | 2020-10-18T09:11:56.000Z | 2020-10-18T09:11:56.000Z | lib/ecto/adapters/sql.ex | tcrossland/ecto_sql | 94a9bb8afe7c09f98f566433fa72ef93badc52ba | [
"Apache-2.0"
] | 1 | 2021-01-19T22:05:44.000Z | 2021-02-18T22:38:43.000Z | lib/ecto/adapters/sql.ex | tcrossland/ecto_sql | 94a9bb8afe7c09f98f566433fa72ef93badc52ba | [
"Apache-2.0"
] | 1 | 2019-05-31T02:43:25.000Z | 2019-05-31T02:43:25.000Z | defmodule Ecto.Adapters.SQL do
@moduledoc """
This application provides functionality for working with
SQL databases in `Ecto`.
## Built-in adapters
By default, we support the following adapters:
* `Ecto.Adapters.Postgres` for Postgres
* `Ecto.Adapters.MyXQL` for MySQL
* `Ecto.Adapters.Tds` for... | 31.955684 | 162 | 0.626108 |
5a3507ccdddaf41444bbd71165694332d5e707a5 | 391 | ex | Elixir | lib/zaryn_web/controllers/up_controler.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn_web/controllers/up_controler.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn_web/controllers/up_controler.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule ZarynWeb.UpController do
@moduledoc false
use ZarynWeb, :controller
@doc """
Respond with 200 when node is ready otherwise with 503.
Used only to indicate that the first testnet node is bootrapped.
"""
def up(conn, _) do
:up = :persistent_term.get(:zaryn_up)
rescue
_ ->
resp(co... | 19.55 | 66 | 0.647059 |
5a3511d04cc30e05275a0727ffa7d4739f981788 | 3,522 | exs | Elixir | lib/logger/test/logger/formatter_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/logger/test/logger/formatter_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/formatter_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | defmodule Logger.FormatterTest do
use Logger.Case, async: true
doctest Logger.Formatter
import Logger.Formatter
test "prune/1" do
assert prune(1) == "�"
assert prune(<<"hí", 233>>) == "hí�"
assert prune(["hi" | 233]) == ["hi" | "�"]
assert prune([233 | "hi"]) == [233 | "hi"]
assert prune([... | 32.915888 | 95 | 0.568427 |
5a35166574259dd401dc02f47b01df4a90101e63 | 418 | exs | Elixir | test/models/dashboard_test.exs | cxz/pepper | 4efd817ed4d8435800210ef109916c4e42df4e80 | [
"MIT"
] | null | null | null | test/models/dashboard_test.exs | cxz/pepper | 4efd817ed4d8435800210ef109916c4e42df4e80 | [
"MIT"
] | null | null | null | test/models/dashboard_test.exs | cxz/pepper | 4efd817ed4d8435800210ef109916c4e42df4e80 | [
"MIT"
] | null | null | null | defmodule Pepper.DashboardTest do
use Pepper.ModelCase
alias Pepper.Dashboard
@valid_attrs %{}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Dashboard.changeset(%Dashboard{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes" do
ch... | 22 | 65 | 0.73445 |
5a352ab99ae8379c9753f95089f7f8a6cc094ebf | 6,050 | ex | Elixir | lib/kinesis/client.ex | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | lib/kinesis/client.ex | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | lib/kinesis/client.ex | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | defmodule Kinesis.Client do
@moduledoc """
This is the same Kinesis client we've been using in all our Pi code.
"""
alias ExAws.Kinesis
require ExAws, as: Aws
require Jason, as: JSON
use GenServer
require Logger
# PUBLIC
###########################################
def start_link(args) do
if... | 28.672986 | 95 | 0.668595 |
5a3538bdd6718e01c343cd2e377cd4002f1cbde5 | 1,911 | ex | Elixir | lib/reanix/accounts/user.ex | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | 1 | 2018-05-13T19:28:48.000Z | 2018-05-13T19:28:48.000Z | lib/reanix/accounts/user.ex | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | null | null | null | lib/reanix/accounts/user.ex | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | null | null | null | defmodule Reanix.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
alias Reanix.Accounts.User
schema "users" do
field(:name, :string)
field(:email, :string)
field(:password, :string, virtual: true)
field(:password_hash, :string)
field(:username, :string)
field(:is_staff, :boolean, ... | 26.178082 | 85 | 0.640502 |
5a35b224ab553be10d12654d73022076e7d13c4e | 1,444 | ex | Elixir | test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/endpoint.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/endpoint.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | test/fixtures/drunkin_phoenix_1_4/lib/drunkin_phoenix_web/endpoint.ex | willfore/bootleg_phoenix | ec49516ff9b3d3e2c3ad13fa6026fb614e8c527e | [
"MIT"
] | null | null | null | defmodule DrunkinPhoenixWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :drunkin_phoenix
socket "/socket", DrunkinPhoenixWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in produ... | 28.88 | 95 | 0.705679 |
5a35b2f88784f13aab4bbeb649e41be8a8fd70ea | 4,313 | ex | Elixir | lib/mailgun_ex.ex | aforward/mailgun_ex | 70456f4086ff5207c9c4b184f6237447448f0f9c | [
"MIT"
] | null | null | null | lib/mailgun_ex.ex | aforward/mailgun_ex | 70456f4086ff5207c9c4b184f6237447448f0f9c | [
"MIT"
] | null | null | null | lib/mailgun_ex.ex | aforward/mailgun_ex | 70456f4086ff5207c9c4b184f6237447448f0f9c | [
"MIT"
] | 1 | 2019-05-10T13:32:19.000Z | 2019-05-10T13:32:19.000Z | defmodule MailgunEx do
@moduledoc """
A client API to the MailGun Email RESTful API.
You can sign up for a free account at:
https://signup.mailgun.com/new/signup
And the latest API documentation is available at:
https://documentation.mailgun.com/en/latest/
To access direct calls to the servic... | 40.308411 | 131 | 0.666821 |
5a3695b651dd6e0503c218f7bd8480d089dcb74b | 394 | ex | Elixir | web/views/error_view.ex | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | web/views/error_view.ex | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | web/views/error_view.ex | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | defmodule OidMigrationIssue.ErrorView do
use OidMigrationIssue.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_... | 21.888889 | 47 | 0.713198 |
5a36aa1c2ee4ecc3246c8aec20e09dcda66712d2 | 3,012 | ex | Elixir | lib/server_manager/hetzner/hetzner.ex | Ianleeclark/illithid | 27b130d8d0619b7ee87ba9882386f995a7d79543 | [
"BSD-3-Clause"
] | null | null | null | lib/server_manager/hetzner/hetzner.ex | Ianleeclark/illithid | 27b130d8d0619b7ee87ba9882386f995a7d79543 | [
"BSD-3-Clause"
] | 6 | 2019-06-29T15:44:11.000Z | 2020-01-23T23:21:42.000Z | lib/server_manager/hetzner/hetzner.ex | Ianleeclark/illithid | 27b130d8d0619b7ee87ba9882386f995a7d79543 | [
"BSD-3-Clause"
] | null | null | null | defmodule Illithid.ServerManager.Hetzner.Supervisor do
@moduledoc false
@behaviour Illithid.ServerManager.ServerHostBehaviour
use DynamicSupervisor
alias Illithid.Models.{Server, ServerCreationContext}
alias Illithid.ServerManager.Worker
@worker_api Application.get_env(:illithid, :hetzner)[:api_module]
... | 28.149533 | 92 | 0.656707 |
5a36bf1efb74097f25f68c90ce178902d2e86bfe | 641 | ex | Elixir | lib/dyn_sup/dyn_sup.ex | brainlid/demo_supervisors_01 | be56955a2cb34bd780e8ba893a0320cbae3610a9 | [
"MIT"
] | null | null | null | lib/dyn_sup/dyn_sup.ex | brainlid/demo_supervisors_01 | be56955a2cb34bd780e8ba893a0320cbae3610a9 | [
"MIT"
] | null | null | null | lib/dyn_sup/dyn_sup.ex | brainlid/demo_supervisors_01 | be56955a2cb34bd780e8ba893a0320cbae3610a9 | [
"MIT"
] | null | null | null | defmodule SupDemo.DynSup do
# Automatically defines child_spec/1
use DynamicSupervisor
alias Supervisor.Spec
alias SupDemo.GenServer.SimpleWorker
def start_link(arg) do
DynamicSupervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
def start_child(args) do
# TODO: Experiement with the diffe... | 29.136364 | 80 | 0.74727 |
5a36d4214371b920201496e6238d972b0300f878 | 2,701 | exs | Elixir | test/unit/hologram/compiler/transformers/alias_directive_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/transformers/alias_directive_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/transformers/alias_directive_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.AliasDirectiveTransformerTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.AliasDirectiveTransformer
alias Hologram.Compiler.IR.AliasDirective
@module_1 Hologram.Test.Fixtures.Compiler.AliasDirectiveTransformer.Module1
@module_2 Hologram.Test.Fixtures.Compil... | 29.358696 | 103 | 0.71418 |
5a36d9bed8318b5bd4c155383ab56e6444564d71 | 542 | exs | Elixir | sips/014_otp_part_1_servers/otp_server_playground/test/fridge_server_test.exs | adamzaninovich/learning-elixir | 015d803682bad4eceaacff6e9a0a789b168a5e7a | [
"MIT"
] | null | null | null | sips/014_otp_part_1_servers/otp_server_playground/test/fridge_server_test.exs | adamzaninovich/learning-elixir | 015d803682bad4eceaacff6e9a0a789b168a5e7a | [
"MIT"
] | null | null | null | sips/014_otp_part_1_servers/otp_server_playground/test/fridge_server_test.exs | adamzaninovich/learning-elixir | 015d803682bad4eceaacff6e9a0a789b168a5e7a | [
"MIT"
] | null | null | null | defmodule FridgeServerTest do
use ExUnit.Case
test "putting something into the fridge" do
fridge = FridgeServer.start_link
assert :ok == FridgeServer.store fridge, :bacon
end
test "removing something from the fridge" do
fridge = FridgeServer.start_link
FridgeServer.store fridge, :bacon
ass... | 27.1 | 65 | 0.721402 |
5a36e569593d830b57984356a7abeadaba27eeb0 | 2,240 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/ios_version.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/testing/lib/google_api/testing/v1/model/ios_version.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/ios_version.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 ... | 35.555556 | 126 | 0.684821 |
5a36e86dfb566e82b2b82bc36822d312e911c5e6 | 1,637 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/label_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/label_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/label_value.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.886792 | 82 | 0.703115 |
5a36ed7ed342a16f5756d92daf8319225b089991 | 583 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180629040426_add_exchange_details_to_transaction_request_consumption.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_db/priv/repo/migrations/20180629040426_add_exchange_details_to_transaction_request_consumption.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180629040426_add_exchange_details_to_transaction_request_consumption.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletDB.Repo.Migrations.AddExchangeDetailsToTransactionRequestConsumption do
use Ecto.Migration
def change do
alter table(:transaction_request) do
add :exchange_account_uuid, references(:account, type: :uuid, column: :uuid)
add :exchange_wallet_address, references(:wallet, type: :string... | 36.4375 | 88 | 0.746141 |
5a36f2c8548a410b7c4e792d6d104181c68c61c9 | 2,744 | ex | Elixir | lib/oli/analytics/common.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/analytics/common.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/analytics/common.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.Analytics.Common do
import Ecto.Query, warn: false
alias Oli.Delivery.Snapshots.Snapshot
alias Oli.Authoring.Course.Project
alias Oli.Delivery.Sections.Section
def analytics_by_activity(project_slug) do
activity_num_attempts_rel_difficulty =
from(project in Project,
where: pro... | 33.060241 | 95 | 0.595845 |
5a36ffa5791167d1df6c5d91443dacd6ae8723d7 | 4,794 | exs | Elixir | apps/state/test/state/service_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/state/test/state/service_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/state/test/state/service_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule State.ServiceTest do
use ExUnit.Case
use Timex
alias Model.Service
alias Parse.Calendar
alias Parse.CalendarAttributes
alias Parse.CalendarDates
setup do
State.Service.new_state([])
:ok
end
test "init" do
assert {:ok, %{data: _, last_updated: nil}} = State.Service.init([])
e... | 25.913514 | 76 | 0.571131 |
5a37065156e29438c35d6692b23c7b1f1e9c7281 | 7,773 | exs | Elixir | test/argx_with_check_test.exs | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 2 | 2021-05-07T03:27:19.000Z | 2021-05-19T02:04:01.000Z | test/argx_with_check_test.exs | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 1 | 2021-05-10T14:09:36.000Z | 2021-05-10T14:10:11.000Z | test/argx_with_check_test.exs | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | null | null | null | ProjectA.Helper |> defmodule(do: def(get_default, do: "default"))
defmodule ProjectA.Argx do
use Argx.WithCheck, warn: false
def fmt_errors(errors), do: errors
end
defmodule ArgxWithCheckTest do
use ExUnit.Case
import ProjectA.Argx
describe "with_check" do
defmodule ProjectA.Argx.A do
@fixed_cur... | 28.788889 | 95 | 0.504953 |
5a370ccc8508ba7275aaf755bd450d33364225a4 | 921 | exs | Elixir | config/config.exs | flat235/upman | c480bc102ea20ceb597d261a290e07a1f6fa3e8a | [
"Apache-2.0"
] | 4 | 2018-08-10T20:41:49.000Z | 2018-11-29T15:56:05.000Z | config/config.exs | flat235/upman | c480bc102ea20ceb597d261a290e07a1f6fa3e8a | [
"Apache-2.0"
] | 6 | 2018-06-11T16:03:12.000Z | 2020-04-06T00:08:15.000Z | config/config.exs | flat235/upman | c480bc102ea20ceb597d261a290e07a1f6fa3e8a | [
"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.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :upman, UpmanWeb.Endpoint,
url: [host: "localhost"... | 34.111111 | 86 | 0.761129 |
5a371f9e61d828bc8a26a4c91073c733e7096e90 | 1,230 | exs | Elixir | test/absinthe/integration/execution/aliases/with_errors_test.exs | jshmrtn/absinthe | 4b40f3d4c0bfc868a2377fd7eeda40b42446624a | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/aliases/with_errors_test.exs | jshmrtn/absinthe | 4b40f3d4c0bfc868a2377fd7eeda40b42446624a | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/aliases/with_errors_test.exs | jshmrtn/absinthe | 4b40f3d4c0bfc868a2377fd7eeda40b42446624a | [
"MIT"
] | null | null | null | defmodule Elixir.Absinthe.Integration.Execution.Aliases.WithErrorsTest do
use Absinthe.Case, async: true
@query """
mutation { foo: failingThing(type: WITH_CODE) { name } }
"""
test "scenario #1" do
assert {:ok,
%{
data: %{"foo" => nil},
errors: [
... | 28.604651 | 106 | 0.460163 |
5a3723c1e89aa6e741c0a61c279bb3b6f9852426 | 1,149 | exs | Elixir | config/config.exs | joaodubas/nlw-06 | 7d6a0dedf99ae81e37b3830268ca28ff671ba922 | [
"MIT"
] | null | null | null | config/config.exs | joaodubas/nlw-06 | 7d6a0dedf99ae81e37b3830268ca28ff671ba922 | [
"MIT"
] | null | null | null | config/config.exs | joaodubas/nlw-06 | 7d6a0dedf99ae81e37b3830268ca28ff671ba922 | [
"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.
# General application configuration
use Mix.Config
config :wabanex,
ecto_repos: [Wabanex.Repo]
c... | 31.916667 | 86 | 0.767624 |
5a372808fe22580a8b44512ee519f1f841172547 | 1,643 | ex | Elixir | lib/ar_weekly_web.ex | Domeee/ar-weekly | 1ffa4f129fa4a654673c8ee8b0bef7dd87271f92 | [
"MIT"
] | 3 | 2019-03-05T16:45:08.000Z | 2019-08-23T12:10:57.000Z | lib/ar_weekly_web.ex | Domeee/ar-weekly | 1ffa4f129fa4a654673c8ee8b0bef7dd87271f92 | [
"MIT"
] | 2 | 2021-03-08T23:53:02.000Z | 2021-05-08T00:07:08.000Z | lib/ar_weekly_web.ex | Domeee/ar-weekly | 1ffa4f129fa4a654673c8ee8b0bef7dd87271f92 | [
"MIT"
] | null | null | null | defmodule ArWeeklyWeb 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 ArWeeklyWeb, :controller
use ArWeeklyWeb, :view
The definitions below will be executed for every view,
controlle... | 23.471429 | 83 | 0.691418 |
5a3743ec513249919309285fe9d30e8c501fed5b | 6,755 | ex | Elixir | lib/mipha/follows/follows.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | lib/mipha/follows/follows.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | lib/mipha/follows/follows.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule Mipha.Follows do
@moduledoc """
The Follows context.
"""
import Ecto.Query, warn: false
alias Ecto.Multi
alias Mipha.{
Repo,
Follows,
Accounts,
Notifications
}
alias Follows.Follow
alias Accounts.User
@doc """
Returns the list of follows.
## Examples
iex> li... | 20.978261 | 86 | 0.601184 |
5a37516e9d19cdfaea3137ee01c098836c2750d0 | 1,644 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/discovery.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/discovery.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/discovery.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.978723 | 196 | 0.749392 |
5a375f2f303fc3b1f618a5eff855be040921476b | 3,263 | exs | Elixir | test/log_test.exs | Carburetor/log | 120d535a090a41f52c141c5e08be294bb78e3a6c | [
"MIT"
] | null | null | null | test/log_test.exs | Carburetor/log | 120d535a090a41f52c141c5e08be294bb78e3a6c | [
"MIT"
] | null | null | null | test/log_test.exs | Carburetor/log | 120d535a090a41f52c141c5e08be294bb78e3a6c | [
"MIT"
] | null | null | null | defmodule LogTest do
use ExUnit.Case
defmodule Special do
def hello do
IO.puts("inside hello")
"asd"
end
end
defmodule MyLog do
use Log, tags: [:mylog]
end
defmodule Deeply.Nested.Module.WithLog do
# use Log.API, tags: [:use]
require MyLog
require Log.Inspect
requi... | 26.745902 | 79 | 0.547656 |
5a37b58f2ee05d4b1395391637a19f72e3668656 | 2,186 | exs | Elixir | config/prod.exs | robotarmy/serve_elm | 931787a55acbe076eac0c0b199c5cfc63425197e | [
"MIT"
] | null | null | null | config/prod.exs | robotarmy/serve_elm | 931787a55acbe076eac0c0b199c5cfc63425197e | [
"MIT"
] | null | null | null | config/prod.exs | robotarmy/serve_elm | 931787a55acbe076eac0c0b199c5cfc63425197e | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# ServeElmWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# D... | 33.630769 | 67 | 0.723239 |
5a37d1a0f1488a1f98eb7fad0362c99c308c5b39 | 1,184 | ex | Elixir | web/channels/user_socket.ex | vjdavid/elixir_trello | 2c44f467b86432369eacec7c045ab3d3551a1cb0 | [
"MIT"
] | 1 | 2020-12-23T18:28:53.000Z | 2020-12-23T18:28:53.000Z | web/channels/user_socket.ex | vjdavid/elixir_trello | 2c44f467b86432369eacec7c045ab3d3551a1cb0 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | vjdavid/elixir_trello | 2c44f467b86432369eacec7c045ab3d3551a1cb0 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PhoenixTrello.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify... | 31.157895 | 86 | 0.706081 |
5a37d3fcb84c5e6907898e346a9b82e71980758b | 420 | exs | Elixir | test/pummpcomm/history/change_paradigm_link_id_test.exs | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | test/pummpcomm/history/change_paradigm_link_id_test.exs | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | test/pummpcomm/history/change_paradigm_link_id_test.exs | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | defmodule Pummpcomm.History.ChangeParadigmLinkIDTest do
use ExUnit.Case
test "Change Paradigm Link ID" do
{:ok, history_page} = Base.decode16("3C0000400081083D0000000000003E000000000000")
decoded_events = Pummpcomm.History.decode_records(history_page, %{})
assert {:change_paradigm_link_id, %{timestamp... | 35 | 98 | 0.735714 |
5a37e1a45b1e02ae0423e34fa6177c5edda20a25 | 1,058 | exs | Elixir | test/purple/finance_test.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | test/purple/finance_test.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | test/purple/finance_test.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | defmodule Purple.FinanceTest do
use Purple.DataCase
alias Purple.Finance.Transaction
describe "transaction" do
test "get_cents\1" do
assert Transaction.get_cents("12-3.42") == 0
assert Transaction.get_cents("-123.42") == 0
assert Transaction.get_cents("$-1") == 0
assert Transaction.g... | 36.482759 | 62 | 0.641777 |
5a37e312b11228d8d1d859089f3392134824ce0e | 5,157 | ex | Elixir | clients/games/lib/google_api/games/v1/model/room.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/room.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room.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 ... | 57.94382 | 266 | 0.707388 |
5a37f02108d266607a1445005d73c52799ab77ee | 118 | exs | Elixir | examples/demo/elixir_libs/macro_app/test/macro_app_test.exs | relayr/rebar3_elixir_compile | d4b9aa1395ffb353de7df86412a9210b10f5d9bb | [
"BSD-3-Clause"
] | 69 | 2016-08-19T16:30:19.000Z | 2022-01-10T11:49:57.000Z | examples/demo/elixir_libs/macro_app/test/macro_app_test.exs | relayr/rebar3_elixir_compile | d4b9aa1395ffb353de7df86412a9210b10f5d9bb | [
"BSD-3-Clause"
] | 25 | 2016-08-19T13:13:40.000Z | 2021-04-21T13:41:41.000Z | examples/demo/elixir_libs/macro_app/test/macro_app_test.exs | relayr/rebar3_elixir_compile | d4b9aa1395ffb353de7df86412a9210b10f5d9bb | [
"BSD-3-Clause"
] | 25 | 2016-12-01T23:56:34.000Z | 2021-12-12T05:26:14.000Z | defmodule MacroAppTest do
use ExUnit.Case
doctest MacroApp
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.111111 | 25 | 0.677966 |
5a37f3d7bd0e85e21eed7c44f44f99e1a612fc50 | 907 | ex | Elixir | apps/admin_panel/lib/admin_panel/router.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/admin_panel/lib/admin_panel/router.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/admin_panel/lib/admin_panel/router.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.275862 | 74 | 0.736494 |
5a37f55ec893d0fc8b4e1ac110737bc2566f80be | 3,377 | ex | Elixir | Chapter 6/pooly version 1/lib/pooly_server.ex | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 6/pooly version 1/lib/pooly_server.ex | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 6/pooly version 1/lib/pooly_server.ex | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | defmodule Pooly.Server do
use GenServer
import Supervisor.Spec
defmodule State do
defstruct sup: nil, worker_sup: nil, size: nil, workers: nil, mfa: nil, monitors: nil
end
## Client API
def start_link(sup, pool_config) do
GenServer.start_link(__MODULE__, [sup, pool_config], name: __MODULE__)
end
def ch... | 26.382813 | 115 | 0.653243 |
5a37fb7b275c9f4b3a9b80a3dc03564e7a9dc379 | 1,761 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.22 | 157 | 0.727995 |
5a381b44e726461c3ff66080b35424221c050546 | 1,575 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_test_iam_permissions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_test_iam_permissions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_test_iam_permissions_response.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... | 33.510638 | 143 | 0.752381 |
5a3820415135d7286d78c168b7bc0df522fc00a2 | 1,741 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/bundles_list_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/bundles_list_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/bundles_list_response.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... | 34.137255 | 159 | 0.743825 |
5a38877763ea67d3e89b97ad155b54d04ff29e46 | 1,881 | ex | Elixir | lib/system/rabbitmq/connection.ex | exponentially/extreme_system | c3a63af286ace236726b32cc28b7b5445a9a9a29 | [
"MIT"
] | 9 | 2017-03-16T00:19:09.000Z | 2022-01-28T21:22:21.000Z | lib/system/rabbitmq/connection.ex | exponentially/extreme_system | c3a63af286ace236726b32cc28b7b5445a9a9a29 | [
"MIT"
] | 16 | 2018-09-05T07:44:17.000Z | 2019-04-29T09:18:09.000Z | lib/system/rabbitmq/connection.ex | exponentially/extreme_system | c3a63af286ace236726b32cc28b7b5445a9a9a29 | [
"MIT"
] | 7 | 2017-12-24T22:36:25.000Z | 2020-08-26T17:40:45.000Z | defmodule Extreme.System.RabbitMQ.Connection do
use GenServer
use AMQP
require Logger
### Client API
@doc """
Starts the RabbitMQ connection.
"""
def start_link(bus_settings, opts),
do: GenServer.start_link(__MODULE__, bus_settings, opts)
def get_connection(server),
do: GenServer.call(serve... | 29.390625 | 99 | 0.69697 |
5a38d5aae685b330f722f077a0e65e19dff61bcb | 728 | ex | Elixir | lib/afterglow/foreign_key/foreign_key.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow/foreign_key/foreign_key.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow/foreign_key/foreign_key.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.ForeignKey do
use Ecto.Schema
import EctoEnum, only: [defenum: 2]
import Ecto.Changeset
alias AfterGlow.ForeignKey
alias AfterGlow.Column
defenum(FkTypeEnum, fk: 0, guess: 1, user_defined: 2)
schema "foreign_keys" do
field(:name, :string)
field(:fk_type, FkTypeEnum)
belong... | 29.12 | 81 | 0.71978 |
5a38dc6b66be82ef5a1e91142941a131e7e8c906 | 2,282 | ex | Elixir | clients/content/lib/google_api/content/v2/model/productstatuses_custom_batch_response_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/productstatuses_custom_batch_response_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/productstatuses_custom_batch_response_entry.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... | 40.035088 | 170 | 0.746275 |
5a38def3ab06af183d373c008d292d1c8c0c7796 | 57 | ex | Elixir | lib/mars_web/views/layout_view.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 2 | 2020-08-28T19:17:33.000Z | 2020-09-13T18:49:20.000Z | lib/mars_web/views/layout_view.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | 5 | 2018-10-28T14:39:26.000Z | 2019-01-31T17:23:36.000Z | lib/mars_web/views/layout_view.ex | jchristopherinc/mars | a109958cb549ede8d983c3af8183d52528a5eaea | [
"MIT"
] | null | null | null | defmodule MarsWeb.LayoutView do
use MarsWeb, :view
end
| 14.25 | 31 | 0.789474 |
5a3913bb877606fb5cd65e2308e73828acb1291b | 728 | ex | Elixir | lib/mxpanel/api.ex | thiamsantos/mxpanel | b6d629f63a82d2247c7f2d9245ae389165e61d81 | [
"Apache-2.0"
] | 2 | 2021-06-29T13:21:15.000Z | 2021-07-20T15:47:12.000Z | lib/mxpanel/api.ex | thiamsantos/mxpanel | b6d629f63a82d2247c7f2d9245ae389165e61d81 | [
"Apache-2.0"
] | 32 | 2021-06-16T20:15:45.000Z | 2022-03-28T20:16:08.000Z | lib/mxpanel/api.ex | thiamsantos/mxpanel | b6d629f63a82d2247c7f2d9245ae389165e61d81 | [
"Apache-2.0"
] | null | null | null | defmodule Mxpanel.API do
@moduledoc false
def request(client, endpoint, data) do
encoded_data =
data
|> Mxpanel.json_library().encode!()
|> Base.encode64()
{http_mod, http_opts} = client.http_client
url = client.base_url |> URI.parse() |> Map.put(:path, endpoint) |> URI.to_string()
... | 26 | 95 | 0.604396 |
5a39224b7c18837b02a321db74871e33d97bcc6b | 4,096 | ex | Elixir | lib/griffin/model/graphql.ex | craigspaeth/griffin | 44a59e08b119b4725369e90dc1398b9ec51173b7 | [
"MIT"
] | null | null | null | lib/griffin/model/graphql.ex | craigspaeth/griffin | 44a59e08b119b4725369e90dc1398b9ec51173b7 | [
"MIT"
] | 2 | 2017-12-11T06:40:30.000Z | 2018-03-06T06:04:05.000Z | lib/griffin/model/graphql.ex | craigspaeth/griffin | 44a59e08b119b4725369e90dc1398b9ec51173b7 | [
"MIT"
] | null | null | null | defmodule Griffin.Model.GraphQL do
@moduledoc """
Module for converting models to graphql.
"""
@doc """
Converts a list of models into a plug that can be used to serve GraphQL
with GraphiQL.
"""
def plugify(conn, schema) do
opts = Absinthe.Plug.init(schema: schema)
Absinthe.Plug.call(conn, opts... | 24.380952 | 76 | 0.581055 |
5a393321c9a9c71ab6a5e4f67a64ee3cb70003c8 | 688 | exs | Elixir | kv/mix.exs | mrroot5/elixir-getting-started-tutorial | eeff5e01ff010be62cf636a2e3983beef782ffe2 | [
"MIT"
] | null | null | null | kv/mix.exs | mrroot5/elixir-getting-started-tutorial | eeff5e01ff010be62cf636a2e3983beef782ffe2 | [
"MIT"
] | null | null | null | kv/mix.exs | mrroot5/elixir-getting-started-tutorial | eeff5e01ff010be62cf636a2e3983beef782ffe2 | [
"MIT"
] | null | null | null | defmodule KV.MixProject do
use Mix.Project
def project do
[
app: :kv,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications... | 21.5 | 87 | 0.540698 |
5a3955a4277b83a499e8e9c441f4c539a85d9dc5 | 449 | exs | Elixir | config/test.exs | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | null | null | null | config/test.exs | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | null | null | null | config/test.exs | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | 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 :taskr, TaskrWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :taskr, Taskr.Repo,
us... | 23.631579 | 56 | 0.726058 |
5a39831cd25ebbf53b4e72ee99c587a728b4e9cb | 2,913 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy.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... | 41.028169 | 158 | 0.723653 |
5a3996c502006f7023cd3c845df17c8341789936 | 1,557 | ex | Elixir | lib/ecto/query/builder/preload.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | 1 | 2016-08-15T21:23:28.000Z | 2016-08-15T21:23:28.000Z | lib/ecto/query/builder/preload.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/preload.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.Preload do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a preload.
A preload may be an atom, a list of atoms or a keyword list
nested as a rose tree.
iex> escape(:foo)
:foo
iex> escape(foo: :bar)
[foo: :bar]
"""
@spec escape(Macro.t... | 25.95 | 86 | 0.640976 |
5a399f43d68b8ab4777fc93fcd2aee5ca252004a | 638 | ex | Elixir | lib/ex_oapi/parser/ecto_types/safe_ul_type.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/ecto_types/safe_ul_type.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/ecto_types/safe_ul_type.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | defmodule ExOAPI.EctoTypes.SafeUL do
@behaviour Ecto.Type
@type t() :: String.t()
@impl Ecto.Type
def type, do: :string
@impl Ecto.Type
def load(data), do: cast(data)
@impl Ecto.Type
def cast(data) when is_binary(data) do
with data <- Macro.underscore(data),
{:ok, data} <- ExOAPI.EctoTy... | 19.333333 | 65 | 0.625392 |
5a39c82d0f89bafc1d1b16f98f5f455d502b1b95 | 271 | ex | Elixir | lib/messengyr/web/controllers/fallback_controller.ex | josecarlo-macariola/messengyr | b0d141b3665b22be1efd740fde823c20e2ee9615 | [
"Unlicense"
] | null | null | null | lib/messengyr/web/controllers/fallback_controller.ex | josecarlo-macariola/messengyr | b0d141b3665b22be1efd740fde823c20e2ee9615 | [
"Unlicense"
] | null | null | null | lib/messengyr/web/controllers/fallback_controller.ex | josecarlo-macariola/messengyr | b0d141b3665b22be1efd740fde823c20e2ee9615 | [
"Unlicense"
] | null | null | null | defmodule Messengyr.Web.FallbackController do
use Messengyr.Web, :controller
alias Messengyr.Web.ErrorView
def call(conn, nil) do
conn
|> put_status(:not_found)
|> render(ErrorView, "error.json", message: "The resource couldn't be found!")
end
end
| 20.846154 | 82 | 0.712177 |
5a39d2778b14d32dbeb6cec3c4f4d6f39550da2e | 4,069 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/android_robo_test.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/android_robo_test.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/android_robo_test.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... | 57.309859 | 344 | 0.724502 |
5a39d8a3e2769f6f4c9895152900931fec4e731f | 1,803 | exs | Elixir | clients/home_graph/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/mix.exs | 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... | 26.910448 | 101 | 0.652801 |
5a39e7c46f7de42413800d161488901d06a9b0e8 | 2,235 | exs | Elixir | test/ex_ical/date_parser_test.exs | rhumbertgz/ex_ical | b445d09edcc92b83cc50b891e0eb9c83c6508135 | [
"MIT"
] | 23 | 2016-03-18T11:30:24.000Z | 2019-05-27T17:23:35.000Z | test/ex_ical/date_parser_test.exs | rhumbertgz/ex_ical | b445d09edcc92b83cc50b891e0eb9c83c6508135 | [
"MIT"
] | 16 | 2016-06-11T05:15:00.000Z | 2019-05-10T11:57:50.000Z | test/ex_ical/date_parser_test.exs | rhumbertgz/ex_ical | b445d09edcc92b83cc50b891e0eb9c83c6508135 | [
"MIT"
] | 17 | 2016-05-20T11:59:37.000Z | 2021-01-24T07:14:14.000Z | defmodule ExIcal.DateParserTest do
use ExUnit.Case
import ExIcal.Test.Utils
alias ExIcal.DateParser
doctest DateParser
date_match = %{year: 1969, month: 6, day: 20}
datetime_match = %{year: 1969, month: 6, day: 20,
hour: 20, minute: 18, second: 4}
chicago_tzmatch = "America/Chi... | 39.210526 | 79 | 0.599553 |
5a39f941a3254ecb155c7261127ad93e9cdc6a57 | 29,223 | ex | Elixir | deps/ecto/lib/ecto/adapters/mysql/connection.ex | davemarkov/wichat | df34a66094beafb121d0c9be54a886ef040d8ca6 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/mysql/connection.ex | davemarkov/wichat | df34a66094beafb121d0c9be54a886ef040d8ca6 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/mysql/connection.ex | davemarkov/wichat | df34a66094beafb121d0c9be54a886ef040d8ca6 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Mariaex) do
defmodule Ecto.Adapters.MySQL.Connection do
@moduledoc false
@behaviour Ecto.Adapters.SQL.Connection
## Connection
def child_spec(opts) do
Mariaex.child_spec(opts)
end
## Query
def prepare_execute(conn, name, sql, params, opts) do
query =... | 35.681319 | 116 | 0.603087 |
5a3a03c0eebad6282b9f25c97dfaba8a1d74e3f6 | 753 | exs | Elixir | tutorials/plug/plug_example/test/router_test.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | tutorials/plug/plug_example/test/router_test.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | tutorials/plug/plug_example/test/router_test.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule PlugExample.RouterTest do
use ExUnit.Case
use Plug.Test
alias PlugExample.Router
@content "<html><body>Hi!</body></html>"
@mimetype "text/html"
@opts Router.init([])
test "returns welcome" do
conn =
:get
|> conn("/", "")
|> Router.call(@opts)
assert conn.state == :... | 17.928571 | 66 | 0.576361 |
5a3a2531e62d8899aed33645ad44e2564744105e | 881 | ex | Elixir | exercises/practice/difference-of-squares/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/practice/difference-of-squares/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 9 | 2021-09-12T15:19:06.000Z | 2022-03-30T22:24:24.000Z | exercises/practice/difference-of-squares/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | null | null | null | defmodule Squares do
@moduledoc """
Calculate sum of squares, square of sum, difference between two sums from 1 to a given end number.
"""
@doc """
Calculate sum of squares from 1 to a given end number.
"""
@spec sum_of_squares(pos_integer) :: pos_integer
def sum_of_squares(number) do
Enum.reduce(1... | 28.419355 | 100 | 0.692395 |
5a3a587b25274e0a6d5cc2836a9f7e03cdcc1536 | 5,414 | ex | Elixir | farmbot_telemetry/lib/farmbot_telemetry.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_telemetry/lib/farmbot_telemetry.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_telemetry/lib/farmbot_telemetry.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotTelemetry do
@moduledoc """
Interface for farmbot system introspection and metrics
"""
@typedoc "Type of telemetry data"
@type kind() :: :event | :metric
@typedoc "UUID of the telemetry data"
@type uuid() :: String.t()
@typedoc "Classifier for telemetry data"
@type subsystem() :: a... | 26.80198 | 80 | 0.606206 |
5a3a695504a0b97e03dbf371f7b6576fc782c4ca | 2,353 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/google_cloud_redis_v1_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/google_cloud_redis_v1_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/redis/lib/google_api/redis/v1/model/google_cloud_redis_v1_operation_metadata.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... | 36.2 | 124 | 0.688483 |
5a3a858aa29208716f2b821531f232d6644dd64a | 664 | ex | Elixir | lib/domo/precondition_handler.ex | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | lib/domo/precondition_handler.ex | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | lib/domo/precondition_handler.ex | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | defmodule Domo.PreconditionHandler do
@moduledoc false
alias Domo.ErrorBuilder
def cast_to_ok_error(precond_result, opts) do
case precond_result do
true ->
:ok
:ok ->
:ok
false ->
message = apply(ErrorBuilder, :build_precond_field_error, [opts])
{:error, o... | 24.592593 | 129 | 0.625 |
5a3a869da767368e27b7cdb0487ff3775c13cfeb | 1,492 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta3_set_default_processor_version_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/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta3_set_default_processor_version_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta3_set_default_processor_version_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... | 30.44898 | 105 | 0.77748 |
5a3aad2f5ea8aac79979fc133244fc417f2137f0 | 2,149 | exs | Elixir | config/prod.exs | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | config/prod.exs | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | config/prod.exs | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 37.051724 | 77 | 0.714751 |
5a3ab05ebb6f2ecd5a9721e6eabd962e1ca9f32a | 875 | ex | Elixir | lib/mux/data/exports.ex | dylanjha/mux-elixir | 487c95f8fa79e8d8f56685d4681244f8439b79ee | [
"MIT"
] | null | null | null | lib/mux/data/exports.ex | dylanjha/mux-elixir | 487c95f8fa79e8d8f56685d4681244f8439b79ee | [
"MIT"
] | null | null | null | lib/mux/data/exports.ex | dylanjha/mux-elixir | 487c95f8fa79e8d8f56685d4681244f8439b79ee | [
"MIT"
] | null | null | null | defmodule Mux.Data.Exports do
@moduledoc """
This module provides functions for accessing lists of data exports. Currently the only exports
available are raw video views. [API Documentation](https://api-docs.mux.com/#export)
**Note:** These endpoints require that your plan has access to specific features. [Rea... | 29.166667 | 122 | 0.692571 |
5a3acb3d540c4f5df7125bc01298ca346c21b22e | 769 | exs | Elixir | test/surgex/parser/parsers/page_parser_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | test/surgex/parser/parsers/page_parser_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | test/surgex/parser/parsers/page_parser_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.Parser.PageParserTest do
use ExUnit.Case
alias Surgex.Parser.PageParser
test "nil" do
assert PageParser.call(nil) == {:ok, nil}
end
test "empty string" do
assert PageParser.call("") == {:ok, nil}
end
test "valid input" do
assert PageParser.call("123") == {:ok, 123}
end
... | 26.517241 | 66 | 0.659298 |
5a3b205743d421abb16468938df5986f674dd1c3 | 1,762 | ex | Elixir | lib/koans/08_maps.ex | rylek90/elixir-koans | 6919e8e89b5fe972e49c30f8c19746441dd4232d | [
"MIT"
] | null | null | null | lib/koans/08_maps.ex | rylek90/elixir-koans | 6919e8e89b5fe972e49c30f8c19746441dd4232d | [
"MIT"
] | null | null | null | lib/koans/08_maps.ex | rylek90/elixir-koans | 6919e8e89b5fe972e49c30f8c19746441dd4232d | [
"MIT"
] | null | null | null | defmodule Maps do
use Koans
@intro "Maps"
@person %{
first_name: "Jon",
last_name: "Snow",
age: 27,
}
koan "Maps represent structured data, like a person" do
assert @person == %{first_name: "Jon",
last_name: "Snow",
age: 27 }
end
koan "Fe... | 29.366667 | 113 | 0.628263 |
5a3b233d738e28052e1abf1d22f246f480160350 | 1,136 | ex | Elixir | test/support/xml.ex | mpotra/xdiff_plus | 575ea6b970c911640fcdda4105026ef3b9aff4aa | [
"Apache-2.0"
] | null | null | null | test/support/xml.ex | mpotra/xdiff_plus | 575ea6b970c911640fcdda4105026ef3b9aff4aa | [
"Apache-2.0"
] | null | null | null | test/support/xml.ex | mpotra/xdiff_plus | 575ea6b970c911640fcdda4105026ef3b9aff4aa | [
"Apache-2.0"
] | null | null | null | defmodule XdiffPlus.Support.XML do
alias XdiffPlus.Support.XML.{Element, Protocol, TextNode}
@char_space 0x20
@char_lf 0x0A
@char_tab 0x09
@char_ff 0x0C
defguard is_whitespace(s) when s in [@char_space, @char_lf, @char_tab, @char_ff]
def parse_string(str, opts \\ []) when is_binary(str) do
case Sax... | 19.254237 | 82 | 0.62588 |
5a3b2a9faf6f7284e979db14d779aee97774f4fc | 1,672 | exs | Elixir | test/services/revision_deleter_test.exs | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | null | null | null | test/services/revision_deleter_test.exs | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 2 | 2021-09-28T05:37:00.000Z | 2022-02-26T10:10:15.000Z | test/services/revision_deleter_test.exs | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | null | null | null | defmodule AccentTest.RevisionDeleter do
use Accent.RepoCase
alias Accent.{Language, Operation, Project, Repo, Revision, RevisionDeleter, Translation}
setup do
project = %Project{main_color: "#f00", name: "My project"} |> Repo.insert!()
french_language = %Language{name: "french"} |> Repo.insert!()
en... | 37.155556 | 161 | 0.711722 |
5a3b46902ef51dc9c037d459640b105da8b7e90c | 93 | exs | Elixir | apps/go_stop/config/config.exs | camirmas/go-stop-server | ecf3e919b9ee1d2e8b45e628bc10b4706cc4e698 | [
"MIT"
] | 8 | 2017-06-04T04:05:47.000Z | 2019-11-04T18:00:45.000Z | apps/go_stop/config/config.exs | camirmas/go-stop-server | ecf3e919b9ee1d2e8b45e628bc10b4706cc4e698 | [
"MIT"
] | 19 | 2018-04-19T07:24:57.000Z | 2019-08-07T16:37:05.000Z | apps/go_stop/config/config.exs | camirmas/go-stop-server | ecf3e919b9ee1d2e8b45e628bc10b4706cc4e698 | [
"MIT"
] | 1 | 2018-07-18T07:51:47.000Z | 2018-07-18T07:51:47.000Z | use Mix.Config
config :go_stop, ecto_repos: [GoStop.Repo]
import_config "#{Mix.env()}.exs"
| 15.5 | 42 | 0.72043 |
5a3bb58841290c162313f00a2023dfccaabdd5a9 | 193 | exs | Elixir | apps/re/priv/repo/migrations/20190520180920_add_suggested_price_field.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20190520180920_add_suggested_price_field.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20190520180920_add_suggested_price_field.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.AddSuggestedPriceField do
use Ecto.Migration
def change do
alter table(:price_suggestion_requests) do
add :suggested_price, :float
end
end
end
| 19.3 | 54 | 0.751295 |
5a3bc960fe46f70e3c6dc95f6933f71e016aa19f | 3,174 | ex | Elixir | apps/web_api/lib/web_api_web/controllers/snapshots_controller.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/web_api/lib/web_api_web/controllers/snapshots_controller.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/web_api/lib/web_api_web/controllers/snapshots_controller.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.WebApiWeb.SnapshotController do
use Staxx.WebApiWeb, :controller
action_fallback Staxx.WebApiWeb.FallbackController
alias Staxx.Testchain
alias Staxx.Testchain.SnapshotManager
alias Staxx.WebApiWeb.SuccessView
alias Staxx.WebApiWeb.ErrorView
alias Staxx.WebApiWeb.Schemas.TestchainSchema
... | 26.898305 | 85 | 0.615942 |
5a3c05238c00eec17ddb7755825560cd5343a415 | 1,003 | ex | Elixir | lib/revive/application.ex | TenTakano/Colonists | 8d989181705b06c91ecd17a7132291a417367893 | [
"MIT"
] | 1 | 2020-12-06T16:33:01.000Z | 2020-12-06T16:33:01.000Z | lib/revive/application.ex | TenTakano/Revive | 2f65b6c2b0c063c1224c24060cb17b93a9974002 | [
"MIT"
] | 2 | 2020-12-31T14:17:00.000Z | 2020-12-31T14:25:48.000Z | lib/revive/application.ex | TenTakano/Colonists | 8d989181705b06c91ecd17a7132291a417367893 | [
"MIT"
] | null | null | null | defmodule Revive.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
# Revive.Repo,
# Start the Telemetry supervisor
ReviveW... | 28.657143 | 64 | 0.697906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.