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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62bd8da95925f396febefcd87ac7460f67c55522 | 1,779 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_filtering_reasons_reasons.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_filtering_reasons_reasons.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_filtering_reasons_reasons.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.58 | 188 | 0.745363 |
62bdbd03d7552951fd4a3407e2cb6139167b6ddb | 145 | ex | Elixir | netaxs_sniff/suckmisic/lib/suckmisic_web/controllers/page_controller.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic_web/controllers/page_controller.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | netaxs_sniff/suckmisic/lib/suckmisic_web/controllers/page_controller.ex | TomasMadeja/santomet-playground | f4467233401756e276612b8a94421e7820ad67fc | [
"WTFPL"
] | null | null | null | defmodule SuckmisicWeb.PageController do
use SuckmisicWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.125 | 40 | 0.744828 |
62bdc2c9a17f0305a1170ab82777f070a2eeae5f | 4,757 | ex | Elixir | lib/tables.ex | srfsh/pointers | ed1b4d743c410ba192fc5b92385e2fe39c623780 | [
"Apache-2.0"
] | 1 | 2021-04-30T13:24:57.000Z | 2021-04-30T13:24:57.000Z | lib/tables.ex | srfsh/pointers | ed1b4d743c410ba192fc5b92385e2fe39c623780 | [
"Apache-2.0"
] | null | null | null | lib/tables.ex | srfsh/pointers | ed1b4d743c410ba192fc5b92385e2fe39c623780 | [
"Apache-2.0"
] | 3 | 2021-07-15T07:13:25.000Z | 2021-12-12T23:34:48.000Z | defmodule Pointers.Tables do
@moduledoc """
A Global cache of Tables to be queried by their (Pointer) IDs, table
names or Ecto Schema module names.
Use of the Table Service requires:
1. You have run the migrations shipped with this library.
2. You have started `Pointers.Tables` before querying.
3. All O... | 33.737589 | 103 | 0.667648 |
62bdcfc68584c02a3bf7a5aae19525d36ddd41fd | 1,137 | ex | Elixir | lib/console/graphql/kubernetes/cron_job.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | lib/console/graphql/kubernetes/cron_job.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | lib/console/graphql/kubernetes/cron_job.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.GraphQl.Kubernetes.CronJob do
use Console.GraphQl.Schema.Base
import Console.GraphQl.Kubernetes.Base
alias Console.GraphQl.Resolvers.Kubernetes
object :cron_job do
field :metadata, non_null(:metadata)
field :status, non_null(:cron_status)
field :spec, non_null(:cron_spec)
... | 31.583333 | 96 | 0.655233 |
62bde26f4140f3d9999ad3fea8af84862b28f5ed | 1,574 | ex | Elixir | elixir/lib/homework_web/endpoint.ex | joshalling/web-homework | 348e97156e249c9e9dc3ce730bf345ba87e2370e | [
"MIT"
] | null | null | null | elixir/lib/homework_web/endpoint.ex | joshalling/web-homework | 348e97156e249c9e9dc3ce730bf345ba87e2370e | [
"MIT"
] | null | null | null | elixir/lib/homework_web/endpoint.ex | joshalling/web-homework | 348e97156e249c9e9dc3ce730bf345ba87e2370e | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :homework
use Absinthe.Phoenix.Endpoint
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
st... | 27.137931 | 98 | 0.70648 |
62bdf99fccbcdebdab40afabd87f3d5bde8d7157 | 4,547 | exs | Elixir | apps/andi/test/unit/andi_web/live/search/manage_datasets_modal_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/test/unit/andi_web/live/search/manage_datasets_modal_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/test/unit/andi_web/live/search/manage_datasets_modal_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule AndiWeb.Search.ManageDatasetsModalTest do
use AndiWeb.Test.AuthConnCase.UnitCase
use Placebo
alias Andi.Schemas.User
import Phoenix.LiveViewTest
import FlokiHelpers, only: [get_text: 2]
alias SmartCity.TestDataGenerator, as: TDG
alias Andi.InputSchemas.AccessGroups
alias Andi.InputSchemas.Ac... | 40.238938 | 127 | 0.673411 |
62be0b23b69afc1c06cbb74f5f64e6d24d57e24f | 643 | exs | Elixir | mix.exs | jurraca/soltracker | 9d92457a4852e0d5689dcab1a5a138081d2e65a6 | [
"MIT"
] | null | null | null | mix.exs | jurraca/soltracker | 9d92457a4852e0d5689dcab1a5a138081d2e65a6 | [
"MIT"
] | null | null | null | mix.exs | jurraca/soltracker | 9d92457a4852e0d5689dcab1a5a138081d2e65a6 | [
"MIT"
] | null | null | null | defmodule SolTracker.MixProject do
use Mix.Project
def project do
[
app: :soltracker,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mo... | 19.484848 | 59 | 0.531882 |
62be2b19589b223d48131dce340c324904b3c5c4 | 1,287 | exs | Elixir | apps/admin_api/test/admin_api/global/views/error_view_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/admin_api/test/admin_api/global/views/error_view_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/global/views/error_view_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule AdminAPI.ErrorViewTest do
use AdminAPI.ViewCase, :v1
alias AdminAPI.ErrorView
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
describe "AdminAPI.ErrorView.render/2" do
# Potential candidate to be moved to a shared library
# credo:disable-for-next-line C... | 26.8125 | 80 | 0.609169 |
62be63aa2d0208cddf222c8e47a606b2199d022f | 2,181 | exs | Elixir | config/dev.exs | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | 3 | 2021-08-30T20:22:39.000Z | 2022-03-16T10:27:50.000Z | config/dev.exs | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | null | null | null | config/dev.exs | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | 2 | 2021-08-18T17:20:46.000Z | 2021-09-01T04:15:31.000Z | use Mix.Config
# Configure your database
config :questionator, Questionator.Repo,
username: "postgres",
password: "postgres",
database: "questionator_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and... | 28.324675 | 68 | 0.696928 |
62be6841dcf8f691d6d191e233ac965671d04c96 | 766 | ex | Elixir | apps/core/lib/core/application.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 19 | 2019-09-17T18:14:36.000Z | 2021-12-06T07:29:27.000Z | apps/core/lib/core/application.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 5 | 2019-09-30T04:57:14.000Z | 2020-11-10T15:41:03.000Z | apps/core/lib/core/application.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 2 | 2019-09-17T19:03:16.000Z | 2021-03-01T01:04:31.000Z | defmodule Core.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
alias OverDB.{Ring.Monitor, Engine.Preparer}
alias Core.Utils.Importer
require Logger
use Application
def start(_type, _args) do
Logger.info("Starting core app... | 28.37037 | 79 | 0.689295 |
62be70019c17d706402108c2dd16b3c0a4874f95 | 860 | ex | Elixir | lib/eagle/endpoint.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | 1 | 2015-11-15T08:07:48.000Z | 2015-11-15T08:07:48.000Z | lib/eagle/endpoint.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | null | null | null | lib/eagle/endpoint.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | null | null | null | defmodule Eagle.Endpoint do
use Phoenix.Endpoint, otp_app: :eagle
# 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 production.
plug Plug.Static,
at: "/", from: :eagle, gzip: false,
o... | 23.888889 | 65 | 0.695349 |
62bec5f4372daf26a4ff3b0bfb28b6bfe294a0d1 | 89 | exs | Elixir | apps/route_patterns/config/test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/route_patterns/config/test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/route_patterns/config/test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | use Mix.Config
config :route_patterns, :route_patterns_repo_api, RoutePatterns.MockRepo
| 22.25 | 72 | 0.853933 |
62bec9c2ef740ad7e5bec810b4a004be015cd02e | 197 | ex | Elixir | lib/jack_rabbit/worker.ex | norbu09/jack_rabbit | e46ca0ed9bec1e879a3e0edce616b79e436e4b50 | [
"BSD-2-Clause"
] | null | null | null | lib/jack_rabbit/worker.ex | norbu09/jack_rabbit | e46ca0ed9bec1e879a3e0edce616b79e436e4b50 | [
"BSD-2-Clause"
] | null | null | null | lib/jack_rabbit/worker.ex | norbu09/jack_rabbit | e46ca0ed9bec1e879a3e0edce616b79e436e4b50 | [
"BSD-2-Clause"
] | null | null | null | defmodule JackRabbit.Worker do
@callback process(pid :: pid, job :: term) ::
{:ok, result :: term, new_state :: term}
| {:error, reason :: term, new_state :: term}
end
| 28.142857 | 59 | 0.563452 |
62bed147069dd506a47105c38703ef34de5bcb1c | 1,480 | exs | Elixir | mix.exs | nucleartide/errors | 3c24fa246d4880350d969672ce73a84d53c8fa6a | [
"MIT"
] | 26 | 2017-09-28T11:58:05.000Z | 2019-10-27T06:57:35.000Z | mix.exs | nucleartide/errors | 3c24fa246d4880350d969672ce73a84d53c8fa6a | [
"MIT"
] | 11 | 2017-09-30T13:51:39.000Z | 2019-11-11T01:36:11.000Z | mix.exs | nucleartide/errors | 3c24fa246d4880350d969672ce73a84d53c8fa6a | [
"MIT"
] | null | null | null | defmodule Errors.Mixfile do
use Mix.Project
def project do
[
app: :errors,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
source_url: "https://github.com/nucleartide/errors",
... | 24.666667 | 88 | 0.584459 |
62bf03da6720c5ffbb1c633848fb0af8a410d650 | 2,210 | ex | Elixir | lib/nerves_network/config.ex | mattneel/nerves_network | 192a6f7c0cc59696ad82c95c2ac6c1e979994d21 | [
"Apache-2.0"
] | 1 | 2020-04-25T11:48:00.000Z | 2020-04-25T11:48:00.000Z | lib/nerves_network/config.ex | mattneel/nerves_network | 192a6f7c0cc59696ad82c95c2ac6c1e979994d21 | [
"Apache-2.0"
] | null | null | null | lib/nerves_network/config.ex | mattneel/nerves_network | 192a6f7c0cc59696ad82c95c2ac6c1e979994d21 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Network.Config do
@moduledoc false
use GenServer
require Logger
alias SystemRegistry, as: SR
alias Nerves.Network.{IFSupervisor, Types}
@scope [:config, :network_interface]
@priority :nerves_network
def start_link do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
... | 24.021739 | 71 | 0.609955 |
62bf0be1bffa5050f3666bcc84fe497c48a2c4cb | 244 | exs | Elixir | test/day_05_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | 1 | 2020-12-19T18:40:00.000Z | 2020-12-19T18:40:00.000Z | test/day_05_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | test/day_05_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | defmodule Day05Test do
use ExUnit.Case, async: true
require Input
test "part1 input" do
f = Input.path()
assert Day05.part1(f) == 813
end
test "part2 input" do
f = Input.path()
assert Day05.part2(f) == 612
end
end
| 16.266667 | 32 | 0.635246 |
62bf2c2efb5e3b6a33d787bf087c4d210cb9cf7e | 362 | exs | Elixir | test/africas_talker_sms_test.exs | wycliffogembo87/africas_talker_sms | 0cfe2ed7dcde27ab4b6129bfc8c94030de0f1582 | [
"Apache-2.0"
] | null | null | null | test/africas_talker_sms_test.exs | wycliffogembo87/africas_talker_sms | 0cfe2ed7dcde27ab4b6129bfc8c94030de0f1582 | [
"Apache-2.0"
] | null | null | null | test/africas_talker_sms_test.exs | wycliffogembo87/africas_talker_sms | 0cfe2ed7dcde27ab4b6129bfc8c94030de0f1582 | [
"Apache-2.0"
] | null | null | null | defmodule AfricasTalkerSmsTest do
use ExUnit.Case
doctest AfricasTalkerSms
test "sends a non premium sms" do
assert AfricasTalkerSms.send_non_premium_sms(
"my_at_username",
"my_at_api_key",
"+254711XXXYYY",
"This is a text message"
) == "The supp... | 25.857143 | 56 | 0.638122 |
62bf447a07427ffa0819e7cd7dfcaf9cee50655e | 2,212 | ex | Elixir | lib/sobelow/config/headers.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 1,305 | 2017-05-12T21:09:40.000Z | 2022-03-31T04:31:49.000Z | lib/sobelow/config/headers.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 95 | 2017-05-15T09:45:41.000Z | 2022-03-23T03:35:48.000Z | lib/sobelow/config/headers.ex | juancgalvis/sobelow | 9ae3874c26ab7cfa6c8a8517ccd02af98e187585 | [
"Apache-2.0"
] | 86 | 2017-05-15T20:18:59.000Z | 2022-02-11T22:10:34.000Z | defmodule Sobelow.Config.Headers do
@moduledoc """
# Missing Secure HTTP Headers
By default, Phoenix HTTP responses contain a number of
secure HTTP headers that attempt to mitigate XSS,
click-jacking, and content-sniffing attacks.
Missing Secure HTTP Headers is flagged by `sobelow` when
a pipeline accep... | 25.72093 | 77 | 0.666817 |
62bf788962c9d2afc9a5d6d1d48e68891d22a9db | 7,266 | exs | Elixir | .credo.exs | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | .credo.exs | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | .credo.exs | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.444444 | 105 | 0.612854 |
62bf86a39ee889a7ec5207d968bb7975366e8c7b | 7,276 | ex | Elixir | lib/hexpm/repository/assets.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/assets.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/assets.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Assets do
def push_release(release, body) do
opts = [
cache_control: "public, max-age=604800",
meta: [{"surrogate-key", tarball_cdn_key(release)}]
]
Hexpm.Store.put(nil, :s3_bucket, tarball_store_key(release), body, opts)
Hexpm.CDN.purge_key(:fastly_hexrepo, tar... | 29.577236 | 94 | 0.669874 |
62bfb11cbb370c6261371c965e7c9656645dfed6 | 17,632 | exs | Elixir | test/ace/http1/server_test.exs | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | test/ace/http1/server_test.exs | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | test/ace/http1/server_test.exs | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | defmodule Ace.HTTP1.ServerTest do
use ExUnit.Case, async: true
setup do
{:ok, service} =
Ace.HTTP.Service.start_link(
{Raxx.Forwarder, %{test: self()}},
port: 0,
certfile: Support.test_certfile(),
keyfile: Support.test_keyfile()
)
{:ok, port} = Ace.HTTP.Service.... | 27.810726 | 109 | 0.604469 |
62bfdd2f4ec092a5d4a7b7a71c609d914871c203 | 2,547 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.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... | 44.684211 | 335 | 0.758539 |
62bff97d64c2748926217a6c29ca899d70b10942 | 661 | exs | Elixir | mix.exs | naps62/care-x-sherlock-solutions | 8bd448a5f23caba293c3ce931f4fd5a4e00ae86d | [
"MIT"
] | null | null | null | mix.exs | naps62/care-x-sherlock-solutions | 8bd448a5f23caba293c3ce931f4fd5a4e00ae86d | [
"MIT"
] | null | null | null | mix.exs | naps62/care-x-sherlock-solutions | 8bd448a5f23caba293c3ce931f4fd5a4e00ae86d | [
"MIT"
] | null | null | null | defmodule Sherlock.MixProject do
use Mix.Project
def project do
[
app: :sherlock,
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_... | 20.65625 | 87 | 0.544629 |
62c0357ff89489c2e43741d24b626e755b90ce38 | 6,484 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.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... | 42.379085 | 198 | 0.645743 |
62c0394eb503a5b975887224dbbfc7e063dcb453 | 662 | ex | Elixir | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/payee_info.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/payee_info.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/payee_info.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.PaymentOrders.PostRequest.PayeeInfo do
@moduledoc """
"""
@typedoc """
.payment_order.payee_info
"""
@type t :: %__MODULE__{
:payee_id => String.t(),
:payee_reference => String.t(),
:payee_name => String.t() | nil,
:product_ca... | 22.066667 | 79 | 0.586103 |
62c063121c7b078fcfca38ac62cd4909e01615dc | 1,479 | ex | Elixir | echo/lib/echo_web/router.ex | mrjbj/liveview_sept_2021 | 1722a9527acef2b4584810976fecc507cc3eda8b | [
"MIT"
] | 1 | 2021-09-14T01:52:42.000Z | 2021-09-14T01:52:42.000Z | echo/lib/echo_web/router.ex | mrjbj/liveview_sept_2021 | 1722a9527acef2b4584810976fecc507cc3eda8b | [
"MIT"
] | 1 | 2021-09-17T11:30:04.000Z | 2021-09-17T11:30:04.000Z | echo/lib/echo_web/router.ex | mrjbj/liveview_sept_2021 | 1722a9527acef2b4584810976fecc507cc3eda8b | [
"MIT"
] | 4 | 2021-09-14T00:04:39.000Z | 2021-09-15T15:14:52.000Z | defmodule EchoWeb.Router do
use EchoWeb, :router
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_live_flash)
plug(:put_root_layout, {EchoWeb.LayoutView, :root})
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
end
pipeline :api do
plug(:a... | 27.90566 | 70 | 0.681542 |
62c079ad4688ab30db75f3f1f746d12ed3b99768 | 991 | exs | Elixir | mix.exs | jschoch/guardex | 26b2894385efbf032527ceef4a38c23e454faf40 | [
"MIT"
] | null | null | null | mix.exs | jschoch/guardex | 26b2894385efbf032527ceef4a38c23e454faf40 | [
"MIT"
] | null | null | null | mix.exs | jschoch/guardex | 26b2894385efbf032527ceef4a38c23e454faf40 | [
"MIT"
] | null | null | null | defmodule Guardex.Mixfile do
use Mix.Project
def project do
[app: :guardex,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
en... | 26.078947 | 63 | 0.610494 |
62c080c1264b9ad551f7bbd354e00571c4392cb7 | 112 | exs | Elixir | exercises/02-higher-order-functions/01-first-class-functions/08-closures-2/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/02-higher-order-functions/01-first-class-functions/08-closures-2/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/02-higher-order-functions/01-first-class-functions/08-closures-2/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Math do
def sqrt(x) do
Functions.fixedpoint(fn y -> y - (y * y - x) / (2 * x) end, x)
end
end
| 18.666667 | 66 | 0.5625 |
62c08fef6554326afdab700ec811d6ca9908ba18 | 2,322 | ex | Elixir | backend/lib/edgehog_web/controllers/trigger_controller.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/lib/edgehog_web/controllers/trigger_controller.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/lib/edgehog_web/controllers/trigger_controller.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# 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 app... | 29.025 | 94 | 0.663221 |
62c0b81fc186ea90ea33f5f6d689518f40e46e90 | 1,564 | exs | Elixir | test/commands/sudo_append_test.exs | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 11 | 2020-07-13T20:43:43.000Z | 2021-05-18T23:52:27.000Z | test/commands/sudo_append_test.exs | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 50 | 2020-07-13T02:20:14.000Z | 2020-08-17T16:45:17.000Z | test/commands/sudo_append_test.exs | ityonemo/realbook | cc506144492b9344b540181a63ba35b6f5943c9c | [
"MIT"
] | 1 | 2021-03-11T17:02:21.000Z | 2021-03-11T17:02:21.000Z | defmodule RealbookTest.Commands.SudoAppendTest do
use ExUnit.Case, async: true
setup do
random_dirname = Realbook.tmp_dir!
File.mkdir_p!(random_dirname)
tmp_filename = 0..0xFFFFFFFF
|> Enum.random
|> Integer.to_string(16)
tmp_dir = Realbook.tmp_dir!()
path = Path.join(tmp_dir, tmp_fi... | 20.311688 | 64 | 0.569693 |
62c103b128d5d9c524307a2c26702348bc997e70 | 1,790 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/list_beacon_attachments_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/list_beacon_attachments_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/list_beacon_attachments_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.291667 | 115 | 0.773184 |
62c12c0a4de3528052e6171489742bf6a2a176c5 | 106 | ex | Elixir | test/commands/support/composite/unregistered_command.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/commands/support/composite/unregistered_command.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/commands/support/composite/unregistered_command.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Commands.Composite.UnregisteredCommand do
@moduledoc false
defstruct [:uuid]
end
| 17.666667 | 61 | 0.811321 |
62c16bab9eae124e1a848aaf1a1367844941ea66 | 2,239 | ex | Elixir | dio/exibee/lib/exi/exi_connect_server.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | dio/exibee/lib/exi/exi_connect_server.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | dio/exibee/lib/exi/exi_connect_server.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | defmodule Exi.ConnectServer do
@moduledoc """
Nerves起動時に `Node.connect()` を受け入れるための準備をする。
## 使い方
application.exに以下を記載する。
```
{Exi.ConnectServer, [node_name, cookie]}
```
- node_name: 自分のノード名
- cookie: クッキー(共通鍵)
## 例
```
{Exi.ConnectServer, ["my_node_name", "comecomeeverybody"]}
```
""... | 22.168317 | 126 | 0.602054 |
62c176a6cd2bc78438137b4a0bc6a24e818d45aa | 1,608 | ex | Elixir | lib/phx_boilerplate_web.ex | zegohome/phoenix-boilerplate | 38d7a978dd1ace4885217dba601a7369d50a72e0 | [
"Apache-2.0"
] | null | null | null | lib/phx_boilerplate_web.ex | zegohome/phoenix-boilerplate | 38d7a978dd1ace4885217dba601a7369d50a72e0 | [
"Apache-2.0"
] | null | null | null | lib/phx_boilerplate_web.ex | zegohome/phoenix-boilerplate | 38d7a978dd1ace4885217dba601a7369d50a72e0 | [
"Apache-2.0"
] | null | null | null | defmodule PhxBoilerplateWeb 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 PhxBoilerplateWeb, :controller
use PhxBoilerplateWeb, :view
The definitions below will be executed for every... | 24.738462 | 69 | 0.705846 |
62c1cfee311fe92834e47587b7848e6616772d43 | 1,588 | ex | Elixir | lib/live_view_example_usage_web/views/error_helpers.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 3 | 2021-09-13T07:07:46.000Z | 2021-11-21T09:42:39.000Z | lib/live_view_example_usage_web/views/error_helpers.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 2 | 2021-09-18T17:16:16.000Z | 2021-11-21T23:25:23.000Z | lib/live_view_example_usage_web/views/error_helpers.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 1 | 2021-09-13T07:07:50.000Z | 2021-09-13T07:07:50.000Z | defmodule LiveViewExampleUsageWeb.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
Enum.map(Keyword.get_values(form.errors, field), fn error ->
... | 33.083333 | 89 | 0.673804 |
62c1d8192aa35ce561a8e7eb9e53acdc2b5a3b46 | 2,146 | exs | Elixir | test/acceptance_test.exs | gabrielelana/docopt.ex | f077e1c3e926590d34d806b3730630072ef3c108 | [
"MIT"
] | null | null | null | test/acceptance_test.exs | gabrielelana/docopt.ex | f077e1c3e926590d34d806b3730630072ef3c108 | [
"MIT"
] | null | null | null | test/acceptance_test.exs | gabrielelana/docopt.ex | f077e1c3e926590d34d806b3730630072ef3c108 | [
"MIT"
] | null | null | null | defmodule Docopt.Test.Acceptance do
use ExUnit.Case
defmodule Parser do
import Enum
def parse(file) do
File.stream!(file)
|> reduce({:skip, 0, 0, "", []}, &parse/2)
|> unpack
|> reverse
end
def parse(line, {:skip, lc, tc, docopt, ats}) do
cond do
match = Rege... | 28.613333 | 91 | 0.480429 |
62c1e819dec2d6dd2522342990b41e29d2a0e31b | 5,962 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenses.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenses.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenses.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 ... | 41.402778 | 187 | 0.650621 |
62c2000dd5eb103d8393c53e58f7b77cbb3fcb6e | 919 | ex | Elixir | apps/aeutil/lib/bits.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aeutil/lib/bits.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aeutil/lib/bits.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | # Taken from http://minhajuddin.com/2016/11/01/how-to-extract-bits-from-a-binary-in-elixir/
# License: CC BY-SA 3.0
defmodule Aeutil.Bits do
def bech32_encode(prefix, bin) do
SegwitAddr.encode(prefix, 0, :binary.bin_to_list(bin))
end
def bech32_decode(bech32) do
{:ok, {_, _, bin_list}} = SegwitAddr.decod... | 34.037037 | 91 | 0.708379 |
62c227e34b81f8199c9d1a060f2028adae4f21c4 | 184 | ex | Elixir | lib/mix/task_description.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | lib/mix/task_description.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | lib/mix/task_description.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Hex.Mix.TaskDescription do
@moduledoc false
@type args :: String.t()
@type docs :: String.t()
@type task_spec :: {args, docs}
@callback tasks() :: [task_spec]
end
| 20.444444 | 36 | 0.663043 |
62c235401a6100801624e61f36614ab256ba251f | 3,278 | ex | Elixir | lib/butters.ex | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | 1 | 2019-09-07T16:28:01.000Z | 2019-09-07T16:28:01.000Z | lib/butters.ex | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | null | null | null | lib/butters.ex | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | null | null | null | defmodule Butters do
@moduledoc """
Documentation for Butters.
"""
require Logger
alias Kazan.Apis.Core.V1.Pod
alias Kazan.Models.Apimachinery.Meta.V1.ObjectMeta
@doc """
Create a Kazan server object that is authenticated with gcloud.
"""
def gke_server() do
"~/.kube/config"
|> Path.expand... | 28.504348 | 121 | 0.657108 |
62c240c20375717d515da3ead931c9a4f72358e0 | 1,616 | exs | Elixir | apps/state/test/state/alert/informed_entity_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/state/test/state/alert/informed_entity_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/state/test/state/alert/informed_entity_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule State.Alert.InformedEntityTest do
@moduledoc false
use ExUnit.Case, async: true
import State.Alert.InformedEntity
alias Model.Alert
@table __MODULE__
@alerts [
%Alert{
id: "1",
informed_entity: [%{route_type: 1, route: "Red"}]
},
%Alert{
id: "2",
informed_enti... | 27.389831 | 91 | 0.561262 |
62c245144cb495f9944fabaef3f33c1392e6b7ae | 2,089 | ex | Elixir | lib/plugin_manager/event/reference/on_user_after_logout.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-18T14:32:15.000Z | 2022-03-24T06:33:21.000Z | lib/plugin_manager/event/reference/on_user_after_logout.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-25T08:30:42.000Z | 2022-03-27T17:13:46.000Z | lib/plugin_manager/event/reference/on_user_after_logout.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | null | null | null | defmodule MishkaInstaller.Reference.OnUserAfterLogout do
@moduledoc """
This event is triggered whenever a user is successfully logged out. if there is any active module in this section on state,
this module sends a request as a Task tool to the developer call function that includes `user_id()`, `ip()`, `endp... | 67.387097 | 128 | 0.692676 |
62c266b7fd2acea06f7a8342f7449417e1119cfc | 1,842 | ex | Elixir | rojak-api/lib/rojak_api/data/news.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 107 | 2016-10-02T05:54:42.000Z | 2021-08-05T00:20:51.000Z | rojak-api/lib/rojak_api/data/news.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 134 | 2016-10-02T21:21:08.000Z | 2016-12-27T02:46:34.000Z | rojak-api/lib/rojak_api/data/news.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 54 | 2016-10-02T08:47:56.000Z | 2020-03-08T00:56:03.000Z | defmodule RojakAPI.Data.News do
import Ecto.Query
alias RojakAPI.Repo
alias RojakAPI.Data.Schemas.News
def fetch(%{limit: limit, offset: offset, embed: embed, media_id: media_id, candidate_id: candidate_id}) do
query = from n in News,
where: n.is_analyzed == true,
limit: ^limit,
offset: ... | 27.492537 | 109 | 0.676982 |
62c2b7113bc20c864f04bc5250622d6b70e83089 | 522 | exs | Elixir | test/models/build_test.exs | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | test/models/build_test.exs | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | test/models/build_test.exs | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.BuildTest do
use Librecov.ModelCase
alias Librecov.Build
test "current_for_project when no build exist" do
insert(:build, completed: false)
refute Build.current_for_project(Build, insert(:project)) |> Repo.first()
end
test "current_for_project when build exists" do
existing_b... | 30.705882 | 84 | 0.743295 |
62c2ca0794bdbac77ff24a0c268d4b941648870e | 1,348 | ex | Elixir | lib/triton/setup.ex | sewinter/triton | 7a821929dddee0d8ffc802ac36c044921bb49871 | [
"MIT"
] | null | null | null | lib/triton/setup.ex | sewinter/triton | 7a821929dddee0d8ffc802ac36c044921bb49871 | [
"MIT"
] | null | null | null | lib/triton/setup.ex | sewinter/triton | 7a821929dddee0d8ffc802ac36c044921bb49871 | [
"MIT"
] | null | null | null | defmodule Triton.Setup do
require IEx
defmacro __before_compile__(_) do
module = __CALLER__.module
statements = Module.get_attribute(module, :setup_statements)
quote do
def __execute__(), do: __execute__(nil, nil)
def __execute__(_, _) do
unquote(Macro.escape(statements))
|>... | 29.304348 | 108 | 0.64095 |
62c2ccf10cd1ce561fe09308a616e557f60a004a | 1,588 | exs | Elixir | todoList/mix.exs | Mateusz-Stempniewicz/elixir-restservice | 2a8f1e7950fd33b202174ea1b2cb2ba0f1620416 | [
"MIT"
] | null | null | null | todoList/mix.exs | Mateusz-Stempniewicz/elixir-restservice | 2a8f1e7950fd33b202174ea1b2cb2ba0f1620416 | [
"MIT"
] | null | null | null | todoList/mix.exs | Mateusz-Stempniewicz/elixir-restservice | 2a8f1e7950fd33b202174ea1b2cb2ba0f1620416 | [
"MIT"
] | null | null | null | defmodule TodoList.Mixfile do
use Mix.Project
def project do
[
app: :todoList,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps... | 26.032787 | 79 | 0.584383 |
62c2d09533c32a67e3af6a4687d9f9acd10181a1 | 2,720 | ex | Elixir | test/support/websocket_client.ex | ACBullen/master_proxy | 5893a425b0ed8d963a02e68b5052d61cebfabf70 | [
"MIT"
] | 98 | 2018-12-12T04:33:54.000Z | 2022-03-23T07:41:45.000Z | test/support/websocket_client.ex | ACBullen/master_proxy | 5893a425b0ed8d963a02e68b5052d61cebfabf70 | [
"MIT"
] | 14 | 2018-12-19T08:00:04.000Z | 2022-02-01T08:38:46.000Z | test/support/websocket_client.ex | ACBullen/master_proxy | 5893a425b0ed8d963a02e68b5052d61cebfabf70 | [
"MIT"
] | 21 | 2018-12-12T14:31:32.000Z | 2022-03-09T17:19:40.000Z | # Copied from https://raw.githubusercontent.com/phoenixframework/phoenix/v1.4/test/support/websocket_client.exs
defmodule MasterProxy.Integration.WebsocketClient do
alias Phoenix.Socket.Message
require Logger
@doc """
Starts the WebSocket server for given ws URL. Received Socket.Message's
are forwarded to th... | 26.153846 | 111 | 0.66875 |
62c2ede02e477691e99890407e9cc3beec8a081f | 3,534 | ex | Elixir | test/support/factory.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | test/support/factory.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | test/support/factory.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | defmodule Adoptoposs.Factory do
@moduledoc """
Defines the factories to create records and resources
"""
use ExMachina.Ecto, repo: Adoptoposs.Repo
alias Adoptoposs.{Network, Accounts, Submissions, Communication, Tags}
def user_factory do
%Accounts.User{
uid: sequence("uid"),
provider: "pr... | 26.373134 | 85 | 0.612054 |
62c311e4b43cce2a163f57ff569de3ca7ef4c8cc | 948 | ex | Elixir | tools/astarte_e2e/lib/astarte_e2e/config/positive_integer_or_infinity.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | tools/astarte_e2e/lib/astarte_e2e/config/positive_integer_or_infinity.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | tools/astarte_e2e/lib/astarte_e2e/config/positive_integer_or_infinity.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# 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 appl... | 23.7 | 74 | 0.697257 |
62c3134b800e6a78312cf7a76d25a3169687fc84 | 984 | exs | Elixir | config/config.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | config/config.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | config/config.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | import Config
config :plausible,
ecto_repos: [Plausible.Repo, Plausible.ClickhouseRepo]
config :plausible, PlausibleWeb.Endpoint, pubsub_server: Plausible.PubSub
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
# Use Jason for JSON pa... | 22.883721 | 73 | 0.76626 |
62c3288fd77122bf9f867faaaa175f6d8e3347c8 | 198 | ex | Elixir | apps/welcome2_game/lib/welcome2_game.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | apps/welcome2_game/lib/welcome2_game.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | 13 | 2020-03-22T08:00:57.000Z | 2022-03-07T16:35:36.000Z | apps/welcome2_game/lib/welcome2_game.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | defmodule Welcome2Game do
def new_game do
{:ok, pid} = Supervisor.start_child(Welcome2Game.Supervisor, [])
pid
end
def make_move(pid, move) do
GenServer.call(pid, move)
end
end
| 18 | 68 | 0.691919 |
62c330ffab78af1ee66d41b80bed68fa51d2ebbb | 881 | ex | Elixir | lib/elixlsx/style/fill.ex | leandrocp/elixlsx | df235284306d33becf4d6090b901c10422c237f0 | [
"MIT"
] | 215 | 2015-11-24T09:11:30.000Z | 2022-02-08T13:38:22.000Z | lib/elixlsx/style/fill.ex | leandrocp/elixlsx | df235284306d33becf4d6090b901c10422c237f0 | [
"MIT"
] | 90 | 2016-06-06T13:00:06.000Z | 2022-03-30T21:09:50.000Z | lib/elixlsx/style/fill.ex | leandrocp/elixlsx | df235284306d33becf4d6090b901c10422c237f0 | [
"MIT"
] | 92 | 2016-01-06T14:45:28.000Z | 2022-03-16T12:29:58.000Z | defmodule Elixlsx.Style.Fill do
@moduledoc ~S"""
Fill styling properties.
Supported formatting properties are:
- bg_color: (Hex-)String
"""
alias __MODULE__
import Elixlsx.Color, only: [to_rgb_color: 1]
defstruct fg_color: nil
@type t :: %Fill{
fg_color: String.t()
}
@doc ~S"""... | 21.487805 | 109 | 0.614075 |
62c35142ca8fad34617199a612868a3ff756a7a3 | 293 | ex | Elixir | lib/phone/nanp/toll_free.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/nanp/toll_free.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/nanp/toll_free.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.NANP.TollFree do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(1)(800|833|844|855|866|877|888)([2-9].{6})$/
def country, do: "NANP toll-free"
def a2, do: ""
def a3, do: ""
matcher(:regex, ["1800", "1833", "1844", "1855", "1866", "1877", "1888"])
end
| 22.538462 | 75 | 0.59727 |
62c352785d9f6f92db66f24eca88fab9fe25efbc | 1,135 | ex | Elixir | clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/connection.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.393939 | 74 | 0.74185 |
62c38cf98274118b5f490dcce6e6d5fc99de4a8c | 124 | ex | Elixir | web/views/admin_association_view.ex | devonestes/ex_admin | e135ae7c28de78fc87baf519ff8a32da12e8bf66 | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | web/views/admin_association_view.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | web/views/admin_association_view.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | Code.ensure_compiled(ExAdmin.Web)
defmodule ExAdmin.AdminAssociationView do
@moduledoc false
use ExAdmin.Web, :view
end
| 20.666667 | 41 | 0.814516 |
62c3b3b8ed202e9077c24b8b334a55daef5bf5b2 | 1,079 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/client/blog_post/sub_comment.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/components/client/blog_post/sub_comment.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/components/client/blog_post/sub_comment.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.Client.BlogPost.SubComment do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="phx-modal"
phx-window-keydown="close_modal"
phx-key="escape"
phx-capture-click="close_modal">
<div class="phx-modal-content col-sm-4">
<... | 30.828571 | 161 | 0.583874 |
62c3ba03cb3f8a10de3f7dff2752d8aa7cd96310 | 5,457 | ex | Elixir | lib/superwatch/svc/store.ex | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | lib/superwatch/svc/store.ex | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | lib/superwatch/svc/store.ex | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | defmodule Superwatch.Svc.Store do
@moduledoc """
Keeps two agent stores:
- root <- ~/.superwatch.yml
- overlay <- ./.superwatch.yml
The source of config info is a yaml file.
- test: priv/superwatch.yml
- prod/dev: ~/.superwatch.yaml
api:
- api_root_file
- api_overlay_file
- api_root_data
-... | 22.093117 | 85 | 0.647059 |
62c3e5d7b6e37d4d3ebd691b9d5372dac64179df | 326 | exs | Elixir | test/axon_web/live/page_live_test.exs | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | test/axon_web/live/page_live_test.exs | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | test/axon_web/live/page_live_test.exs | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | defmodule AxonWeb.PageLiveTest do
use AxonWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Phoenix!"
assert render(page_live) =~ "Welcome to Phoenix!"
en... | 27.166667 | 60 | 0.720859 |
62c3f585999808be5d43375fb8c42b95184c2d34 | 2,572 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/commit_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/spanner/lib/google_api/spanner/v1/model/commit_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/commit_request.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 ... | 40.825397 | 171 | 0.731337 |
62c474adb3d1c31cfb8cb1186eb6b6d66a82517c | 21 | ex | Elixir | testData/org/elixir_lang/parser_definition/string_line_parsing_test_case/Multiline.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/string_line_parsing_test_case/Multiline.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/string_line_parsing_test_case/Multiline.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z |
"
multiple
lines
" | 3 | 8 | 0.619048 |
62c47b8d477755c20ec22539d2a20af59096fa29 | 4,242 | ex | Elixir | lib/cielo/entities/payment.ex | brunolouvem/cielo | ec1bc4c728ccf2f0a577aec5e0c1657bc97c964b | [
"MIT"
] | 1 | 2020-11-05T01:21:29.000Z | 2020-11-05T01:21:29.000Z | lib/cielo/entities/payment.ex | brunolouvem/cielo | ec1bc4c728ccf2f0a577aec5e0c1657bc97c964b | [
"MIT"
] | null | null | null | lib/cielo/entities/payment.ex | brunolouvem/cielo | ec1bc4c728ccf2f0a577aec5e0c1657bc97c964b | [
"MIT"
] | null | null | null | defmodule Cielo.Entities.CreditCardPayment do
use Cielo.Entities.Base
alias Cielo.Entities
embedded_schema do
field(:amount, :integer)
field(:installments, :integer)
field(:is_crypto_currency_negotiation, :boolean)
field(:soft_descriptor, :string)
field(:type, :string)
embeds_one(:credit... | 23.831461 | 97 | 0.674917 |
62c47c6336d0188f12fea83dfdffe614b1cb284b | 1,649 | ex | Elixir | lib/mux/data/video_views.ex | dylanjha/mux-elixir | 487c95f8fa79e8d8f56685d4681244f8439b79ee | [
"MIT"
] | null | null | null | lib/mux/data/video_views.ex | dylanjha/mux-elixir | 487c95f8fa79e8d8f56685d4681244f8439b79ee | [
"MIT"
] | null | null | null | lib/mux/data/video_views.ex | dylanjha/mux-elixir | 487c95f8fa79e8d8f56685d4681244f8439b79ee | [
"MIT"
] | null | null | null | defmodule Mux.Data.VideoViews do
@moduledoc """
This module provides functions for interacting with individual video views. Note, the raw video views
contain _quite_ a lot of data, so the `list` endpoint includes a filtered set of keys for each view.
[API Documentation](https://api-docs.mux.com/#video-view).
... | 31.711538 | 127 | 0.673135 |
62c49a185c9210a8e446bde8c55e05027376d873 | 7,282 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/account_permission_groups.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/account_permission_groups.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/account_permission_groups.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.681564 | 196 | 0.623867 |
62c4b777ed47c366a9e2a4476cb9982ca26ba5ef | 1,010 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20171031174651_create_auth_token_table.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/priv/repo/migrations/20171031174651_create_auth_token_table.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/priv/repo/migrations/20171031174651_create_auth_token_table.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.580645 | 74 | 0.727723 |
62c4bc01fda0746bd75a7c14b6ba97bc8ba4f3c9 | 451 | ex | Elixir | lib/cayenne/lpp/type/relative_humidity.ex | janpieper/cayenne_lpp | 432003d00553cc05a4faa80dddaa2429e2cf5b6b | [
"MIT"
] | 1 | 2020-08-24T08:14:09.000Z | 2020-08-24T08:14:09.000Z | lib/cayenne/lpp/type/relative_humidity.ex | janpieper/cayenne_lpp | 432003d00553cc05a4faa80dddaa2429e2cf5b6b | [
"MIT"
] | null | null | null | lib/cayenne/lpp/type/relative_humidity.ex | janpieper/cayenne_lpp | 432003d00553cc05a4faa80dddaa2429e2cf5b6b | [
"MIT"
] | null | null | null | defmodule Cayenne.LPP.Type.RelativeHumidity do
@moduledoc """
Cayenne LPP type for relative humidity
### Example
```elixir
alias Cayenne.LPP.{Buffer, Encoder}
alias Cayenne.LPP.Type.RelativeHumidity
buffer =
40.5
|> RelativeHumidity.new()
|> Encoder.encode(temperature)
Buffer.to_string(b... | 17.346154 | 46 | 0.660754 |
62c4c48883a4acf3074968cfd0c80547ace1d0f3 | 1,582 | ex | Elixir | lib/integrate_web/controllers/specification_controller.ex | integratedb/core | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | 13 | 2021-01-28T14:45:43.000Z | 2021-11-04T21:54:19.000Z | lib/integrate_web/controllers/specification_controller.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | lib/integrate_web/controllers/specification_controller.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | defmodule IntegrateWeb.SpecificationController do
use IntegrateWeb, :controller
alias Integrate.Specification
alias Integrate.Specification.Spec
alias Integrate.SpecificationData
alias Integrate.Stakeholders
alias Integrate.Stakeholders.Stakeholder
action_fallback IntegrateWeb.FallbackController
@ty... | 30.423077 | 94 | 0.662453 |
62c4c88080771e09807b3e5587dc55e0b1e9f5ea | 342 | exs | Elixir | test/good_times/date_test.exs | elixir-twister/good_times | 62c111dbd160aa678c2c652dbc0ee06230d632c6 | [
"MIT"
] | null | null | null | test/good_times/date_test.exs | elixir-twister/good_times | 62c111dbd160aa678c2c652dbc0ee06230d632c6 | [
"MIT"
] | null | null | null | test/good_times/date_test.exs | elixir-twister/good_times | 62c111dbd160aa678c2c652dbc0ee06230d632c6 | [
"MIT"
] | null | null | null | defmodule GoodTimes.DateTest do
use ExUnit.Case, async: true
import GoodTimes
import GoodTimes.Convert
import GoodTimes.Date
test "today" do
assert today == to_date(now)
end
test "tomorrow" do
assert tomorrow == to_date(a_day_from_now)
end
test "yesterday" do
assert yesterday == to_date... | 18 | 46 | 0.716374 |
62c4dcbe7b76de087838563da12ca32e47a3d864 | 2,818 | ex | Elixir | lib/plausible_web/email.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | lib/plausible_web/email.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | lib/plausible_web/email.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.Email do
use Bamboo.Phoenix, view: PlausibleWeb.EmailView
import Bamboo.PostmarkHelper
def welcome_email(user) do
new_email()
|> to(user)
|> from("Uku Taht <uku@plausible.io>")
|> tag("welcome-email")
|> subject("Welcome to Plausible :) Plus, a quick question...")
|... | 28.464646 | 85 | 0.633073 |
62c50aa9fd700cdf2b496f5879da3b4059a0d6a6 | 35,824 | exs | Elixir | test/ecto/changeset/embedded_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-07-25T17:42:33.000Z | 2019-07-25T17:42:33.000Z | test/ecto/changeset/embedded_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 2 | 2020-04-23T00:19:07.000Z | 2020-04-23T00:24:25.000Z | test/ecto/changeset/embedded_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2020-10-07T16:52:00.000Z | 2020-10-07T16:52:00.000Z | defmodule Ecto.Changeset.EmbeddedTest do
use ExUnit.Case, async: true
alias Ecto.Changeset
alias Ecto.Changeset.Relation
alias Ecto.Embedded
alias Ecto.TestRepo
alias __MODULE__.Author
alias __MODULE__.Profile
alias __MODULE__.Post
defmodule Author do
use Ecto.Schema
schema "authors" do
... | 36.970072 | 128 | 0.646941 |
62c52d4148cf023f3a885b4056c3b6c46c6d3df9 | 101 | ex | Elixir | lib/noted/repo.ex | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | lib/noted/repo.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | lib/noted/repo.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | defmodule Noted.Repo do
use Ecto.Repo,
otp_app: :noted,
adapter: Ecto.Adapters.SQLite3
end
| 16.833333 | 34 | 0.712871 |
62c55d0f0f94d8c23e060820929a9717323a43aa | 4,742 | exs | Elixir | test/kalevala/output/tables_test.exs | fugufish/kalevala | 34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94 | [
"MIT"
] | 125 | 2020-02-09T17:05:27.000Z | 2022-03-31T03:31:00.000Z | test/kalevala/output/tables_test.exs | fugufish/kalevala | 34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94 | [
"MIT"
] | 19 | 2020-02-20T02:36:38.000Z | 2021-08-03T16:24:19.000Z | test/kalevala/output/tables_test.exs | fugufish/kalevala | 34d9e63fac0e51ae5c0f40da340c9f3eaaed6b94 | [
"MIT"
] | 8 | 2020-04-07T05:06:20.000Z | 2021-11-20T06:43:14.000Z | defmodule Kalevala.Output.TablesTest do
use ExUnit.Case
alias Kalevala.Output
alias Kalevala.Output.Tags
alias Kalevala.Output.TagColors
alias Kalevala.Output.Tables
describe "parsing tables" do
test "parses table tags" do
iodata = [~s(Table {table} {row}\n{cell}Hello, world{/cell}{/row}{/tabl... | 22.580952 | 91 | 0.452763 |
62c57cd179b9c744ab1c638afc6dee3417153ec3 | 379 | ex | Elixir | test/support/test_server.ex | fr0stbyte/spandex_otlp | 5c311939c4035ea094cb7c22c96522e2bf08ba42 | [
"MIT"
] | 2 | 2021-05-24T16:34:13.000Z | 2021-05-25T06:14:54.000Z | test/support/test_server.ex | fr0stbyte/spandex_otlp | 5c311939c4035ea094cb7c22c96522e2bf08ba42 | [
"MIT"
] | 5 | 2021-05-22T19:30:03.000Z | 2021-05-25T03:01:10.000Z | test/support/test_server.ex | fr0stbyte/spandex_otlp | 5c311939c4035ea094cb7c22c96522e2bf08ba42 | [
"MIT"
] | 3 | 2021-05-25T06:15:00.000Z | 2022-01-28T18:58:59.000Z | defmodule SpandexOTLP.TestServer do
@moduledoc false
use GRPC.Server,
service: SpandexOTLP.Opentelemetry.Proto.Collector.Trace.V1.TraceService.Service
alias SpandexOTLP.Opentelemetry.Proto.Collector.Trace.V1.ExportTraceServiceResponse
def export(request, _stream) do
SpandexOTLP.RequestStore.put_reque... | 27.071429 | 85 | 0.810026 |
62c591fb020792817471b78f099652093d9dcd1c | 1,666 | ex | Elixir | othello/lib/othello_web/endpoint.ex | Wycode-fish/WEBDEV-PROJECT-1 | fad6870c97225ce206ed6b90645bb626b76f598c | [
"MIT"
] | null | null | null | othello/lib/othello_web/endpoint.ex | Wycode-fish/WEBDEV-PROJECT-1 | fad6870c97225ce206ed6b90645bb626b76f598c | [
"MIT"
] | null | null | null | othello/lib/othello_web/endpoint.ex | Wycode-fish/WEBDEV-PROJECT-1 | fad6870c97225ce206ed6b90645bb626b76f598c | [
"MIT"
] | null | null | null | defmodule OthelloWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :othello
socket "/socket", OthelloWeb.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 production.
plug Plug.Sta... | 28.724138 | 95 | 0.707683 |
62c5f3a475053dcb668fded0e1662f307911aa6a | 7,163 | ex | Elixir | lib/firestorm_web/forums/forums.ex | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | lib/firestorm_web/forums/forums.ex | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | lib/firestorm_web/forums/forums.ex | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | defmodule FirestormWeb.Forums do
@moduledoc """
The boundary for the Forums system.
"""
import Ecto.{Query, Changeset}, warn: false
alias FirestormWeb.Repo
alias Ecto.Multi
alias FirestormWeb.Forums.{User, Category, Thread, Post}
@doc """
Returns the list of users.
## Examples
iex> list_us... | 19.464674 | 87 | 0.597934 |
62c5fc2f342a58b21da37dfc89cb68b4d656d03e | 491 | ex | Elixir | teachme/lib/teachme_web/views/error_view.ex | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | teachme/lib/teachme_web/views/error_view.ex | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | teachme/lib/teachme_web/views/error_view.ex | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | defmodule TeachmeWeb.ErrorView do
use TeachmeWeb, :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 template name... | 28.882353 | 61 | 0.735234 |
62c60323c9788102b41446dafddf6592a15403ba | 286 | ex | Elixir | lib/littlechat_web/stun.ex | nicbet/littlechat | 9d32ca7b7f94aef78476dc049eb0a694b3bdfdc1 | [
"MIT"
] | null | null | null | lib/littlechat_web/stun.ex | nicbet/littlechat | 9d32ca7b7f94aef78476dc049eb0a694b3bdfdc1 | [
"MIT"
] | null | null | null | lib/littlechat_web/stun.ex | nicbet/littlechat | 9d32ca7b7f94aef78476dc049eb0a694b3bdfdc1 | [
"MIT"
] | null | null | null | defmodule LittlechatWeb.Stun do
use GenServer
def start_link(_) do
GenServer.start_link(__MODULE__, [])
end
@impl true
@doc """
Starts the erlang stun server at port 3478.
"""
def init(_) do
:stun_listener.add_listener(3478, :udp, [])
{:ok, []}
end
end
| 15.888889 | 47 | 0.643357 |
62c617ee74c10d487115eb437b1eb8bb0275412d | 2,377 | ex | Elixir | deps/credo/lib/credo/check/consistency/space_around_operators/without_space.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/credo/lib/credo/check/consistency/space_around_operators/without_space.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/credo/lib/credo/check/consistency/space_around_operators/without_space.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.SpaceAroundOperators.WithoutSpace do
use Credo.Check.CodePattern
alias Credo.Check.Consistency.SpaceAroundOperators.SpaceHelper
def property_value, do: :without_space
def property_value_for(source_file, _params) do
property_values_for(source_file)
end
defp property_... | 28.987805 | 123 | 0.671435 |
62c61b5ae1de57eedb172e7d44a1f1e1a681c16c | 2,879 | ex | Elixir | lib/con_mon/state_server.ex | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | 3 | 2019-05-28T11:53:04.000Z | 2021-06-01T12:36:56.000Z | lib/con_mon/state_server.ex | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | null | null | null | lib/con_mon/state_server.ex | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | null | null | null | defmodule ConMon.StateServer do
use GenServer
@me __MODULE__
def start_link(_) do
GenServer.start_link(__MODULE__, %{status: nil, downtime: []}, name: @me)
end
def init(state) do
{:ok, state}
end
def clear_state do
GenServer.cast(@me, :clear)
end
def connected do
GenServer.cast(@m... | 23.217742 | 115 | 0.617923 |
62c630a7eecbd514fa80556758f151879d9e25dd | 1,066 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_data.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_data.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/operation_data.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... | 28.052632 | 83 | 0.743902 |
62c630a910a5dcafff927dbe8752f47887a9fa50 | 867 | ex | Elixir | lib/koans/01_equalities.ex | dkaplan88/elixir-koans | 0be7ae0455aa1ea6e1c45467ffba47c1c9106153 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | dkaplan88/elixir-koans | 0be7ae0455aa1ea6e1c45467ffba47c1c9106153 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | dkaplan88/elixir-koans | 0be7ae0455aa1ea6e1c45467ffba47c1c9106153 | [
"MIT"
] | null | null | null | defmodule Equalities do
use Koans
@intro """
Welcome to the Elixir koans.
Let these be your first humble steps towards learning a new language.
The path laid in front of you is one of many.
"""
# Replace ___ with the answer to make the koan pass.
koan "We shall contemplate truth by testing reality, ... | 21.675 | 83 | 0.679354 |
62c6467e5fe1fd647efd62d54f9621e950b99b9e | 10,924 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/admin_users_live.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_html/lib/mishka_html_web/live/admin_users_live.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | apps/mishka_html/lib/mishka_html_web/live/admin_users_live.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | null | null | null | defmodule MishkaHtmlWeb.AdminUsersLive do
use MishkaHtmlWeb, :live_view
@section_title MishkaTranslator.Gettext.dgettext("html_live", "مدیریت کاربران")
alias MishkaUser.User
alias MishkaContent.General.Activity
use MishkaHtml.Helpers.LiveCRUD,
module: MishkaUser.User,
redirect: __MODULE__,
... | 40.161765 | 262 | 0.634291 |
62c6bc9dee7768bfc12569c49dff6f8ba7138f8a | 138 | ex | Elixir | lib/alixir_oss/file_object.ex | Byzanteam-Labs/alixir_oss | dd5b395a7cfa9c66ab936a5276a7a73d1e245a01 | [
"MIT"
] | null | null | null | lib/alixir_oss/file_object.ex | Byzanteam-Labs/alixir_oss | dd5b395a7cfa9c66ab936a5276a7a73d1e245a01 | [
"MIT"
] | 1 | 2018-08-15T03:29:41.000Z | 2018-08-15T09:25:31.000Z | lib/alixir_oss/file_object.ex | ZhengQingchen/alixir_oss | 94b05a2287dd269a07d045024f4c9c1efd57ef82 | [
"MIT"
] | 3 | 2018-07-27T02:51:56.000Z | 2019-01-24T09:21:44.000Z | defmodule Alixir.OSS.FileObject do
@enforce_keys [:bucket, :object_key]
defstruct [
:bucket,
:object_key,
:object
]
end
| 15.333333 | 38 | 0.666667 |
62c6ce0833e3e9482282b7b451e2d5ee25a8de66 | 423 | ex | Elixir | lib/inmana/supply/expires_notification.ex | fontebasso/rocketseat-nlw5-elixir-inmana | 1f3730231b96aef9781a7a78ad7101222a31aa7a | [
"MIT"
] | null | null | null | lib/inmana/supply/expires_notification.ex | fontebasso/rocketseat-nlw5-elixir-inmana | 1f3730231b96aef9781a7a78ad7101222a31aa7a | [
"MIT"
] | null | null | null | lib/inmana/supply/expires_notification.ex | fontebasso/rocketseat-nlw5-elixir-inmana | 1f3730231b96aef9781a7a78ad7101222a31aa7a | [
"MIT"
] | null | null | null | defmodule Inmana.Supply.ExpiresNotification do
alias Inmana.Mailer
alias Inmana.Supply.{ExpiresEmail, GetByExpires}
def send do
data = GetByExpires.call()
data
|> Task.async_stream(fn {to_email, supplies} -> send_email(to_email, supplies) end)
|> Stream.run()
end
defp send_email(to_email, s... | 22.263158 | 87 | 0.706856 |
62c74ff1d955d94e5ff60534de7abc0ab70bbe86 | 1,365 | exs | Elixir | priv/templates/brando.install/config/config.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | priv/templates/brando.install/config/config.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | priv/templates/brando.install/config/config.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"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.
# General application configuration
import Config
config :<%= application_name %>, ecto_repos: [<%=... | 35.921053 | 103 | 0.734799 |
62c76c4b6f338356f3192f32eedd65af77a9a01a | 373 | exs | Elixir | test/absinthe/integration/execution/context_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/integration/execution/context_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/integration/execution/context_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Elixir.Absinthe.Integration.Execution.ContextTest do
use Absinthe.Case, async: true
@query """
query {
thingByContext {
name
}
}
"""
test "scenario #1" do
assert {:ok, %{data: %{"thingByContext" => %{"name" => "Bar"}}}} ==
Absinthe.run(@query, Absinthe.Fixtures.Thi... | 21.941176 | 97 | 0.605898 |
62c76d96b04ae7a848d2a398e4a4e90acc6584f5 | 1,212 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/address.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/address.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/address.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... | 25.787234 | 77 | 0.70462 |
62c779d527f5afffb4d74ec7077989fba7f642eb | 3,248 | ex | Elixir | clients/network_services/lib/google_api/network_services/v1/model/expr.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_services/lib/google_api/network_services/v1/model/expr.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_services/lib/google_api/network_services/v1/model/expr.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... | 58 | 1,092 | 0.734914 |
62c7a6eb25ddb12b3ba02912af2d2204b4620703 | 948 | exs | Elixir | config/config.exs | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | 2 | 2016-03-15T09:35:48.000Z | 2016-03-16T10:27:06.000Z | config/config.exs | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"Apache-2.0"
] | 7 | 2016-03-15T08:33:54.000Z | 2016-03-15T09:12:39.000Z | config/config.exs | nhu313/tag_it | 567b219253abfdc65d143bb0464d8145bfe0a0f2 | [
"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 :tag_it, TagIt.Endpoint,
url: [host: "localhost"],... | 31.6 | 86 | 0.753165 |
62c7e47d6444607d5814443daca9f6179d8a3db3 | 2,795 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_basic_card.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_basic_card.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_basic_card.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 ... | 38.287671 | 184 | 0.724866 |
62c7eb19b580b64c11600a6941a33c5177a9e0eb | 5,440 | exs | Elixir | elixir/test/homework/transactions_test.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/test/homework/transactions_test.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/test/homework/transactions_test.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | defmodule Homework.TransactionsTest do
use Homework.DataCase
alias Homework.Companies
alias Homework.Merchants
alias Homework.Transactions
alias Homework.Users
describe "transactions" do
alias Homework.Transactions.Transaction
setup do
{:ok, merchant1} =
Merchants.create_merchant(%{... | 30.222222 | 99 | 0.64136 |
62c7fbb1aea76c68f4aa39178a0ed4e87d058e74 | 456 | ex | Elixir | apps/parse/lib/parse/facility/property.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/parse/lib/parse/facility/property.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/parse/lib/parse/facility/property.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Parse.Facility.Property do
@moduledoc """
Parser for facility_properties.txt
"""
use Parse.Simple
alias Model.Facility.Property
def parse_row(row) do
%Property{
name: copy(row["property_id"]),
facility_id: copy(row["facility_id"]),
value: decode_value(row["value"])
}
... | 17.538462 | 44 | 0.638158 |
62c7ff5d929b75052488d0962c4b4c2ba6654610 | 1,916 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounttax_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounttax_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounttax_list_response.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.150943 | 180 | 0.725992 |
62c815224f4942bbaad805a77a376f224359c6c4 | 1,754 | ex | Elixir | lib/phoenix_starter_web/controllers/user_reset_password_controller.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 3 | 2021-03-19T10:39:02.000Z | 2021-07-25T19:54:09.000Z | lib/phoenix_starter_web/controllers/user_reset_password_controller.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 204 | 2020-11-27T06:00:31.000Z | 2022-03-25T08:08:16.000Z | lib/phoenix_starter_web/controllers/user_reset_password_controller.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | null | null | null | defmodule PhoenixStarterWeb.UserResetPasswordController do
use PhoenixStarterWeb, :controller
alias PhoenixStarter.Users
plug :get_user_by_reset_password_token when action in [:edit, :update]
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email}}) do... | 29.233333 | 101 | 0.661345 |
62c82c613539ce9c95397220545d9b49d1402890 | 12,736 | ex | Elixir | lib/alpha_vantage/stock_time_series.ex | Cameron-Kurth/elixir-alpha_vantage | b1c489211090b98726db536bdea4ddd20eee8bc5 | [
"MIT"
] | null | null | null | lib/alpha_vantage/stock_time_series.ex | Cameron-Kurth/elixir-alpha_vantage | b1c489211090b98726db536bdea4ddd20eee8bc5 | [
"MIT"
] | null | null | null | lib/alpha_vantage/stock_time_series.ex | Cameron-Kurth/elixir-alpha_vantage | b1c489211090b98726db536bdea4ddd20eee8bc5 | [
"MIT"
] | null | null | null | defmodule AlphaVantage.StockTimeSeries do
@moduledoc """
A set of functions for fetching realtime and historical global equity data from [Alpha Vantage](www.alphavantage.co/documentation/#time-series-data) in 4 different temporal resolutions:
(1) daily, (2) weekly, (3) monthly, and (4) intraday.
Daily, weekly, ... | 35.279778 | 300 | 0.699984 |
62c830f8f770abb21c3751f235f75464cac2eb6a | 1,943 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/comment_object.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/plus/lib/google_api/plus/v1/model/comment_object.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/comment_object.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.981481 | 241 | 0.713845 |
62c84c4018e9121fd33c7bfaf33cfb69b0dd2d3d | 1,266 | ex | Elixir | writer_monad_from_first_principle/lib/monad.reader.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | writer_monad_from_first_principle/lib/monad.reader.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | writer_monad_from_first_principle/lib/monad.reader.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | defmodule Monad.Reader do
@enforce_keys [:run_reader]
defstruct [:run_reader]
# (cfg -> a) -> Reader cfg a
def new(x), do: %__MODULE__{run_reader: x}
# Reader cfg cfg
def ask do
new(fn cfg -> cfg end)
end
# (cfg -> a) -> Reader cfg a
def asks(f) do
new(f)
end
# (cfg -> cfg') -> Reader ... | 18.347826 | 55 | 0.535545 |
62c85606c51f2326cf30bfccf3ca9d90b1c7d209 | 1,827 | ex | Elixir | clients/books/lib/google_api/books/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/deserializer.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... | 36.54 | 139 | 0.696223 |
62c87627ce7ab4ab49a5311ebdb4c8ae2998efb2 | 8,901 | exs | Elixir | test/batched_communication_test.exs | skirino/batched_communication | 14dea7075a13c94df0e3c63c034029cc36bd0ab0 | [
"MIT"
] | 4 | 2018-08-28T03:49:08.000Z | 2020-06-25T16:00:13.000Z | test/batched_communication_test.exs | skirino/batched_communication | 14dea7075a13c94df0e3c63c034029cc36bd0ab0 | [
"MIT"
] | null | null | null | test/batched_communication_test.exs | skirino/batched_communication | 14dea7075a13c94df0e3c63c034029cc36bd0ab0 | [
"MIT"
] | null | null | null | defmodule BatchedCommunicationTest do
use ExUnit.Case
alias BatchedCommunication, as: BC
alias BatchedCommunication.{Sender, Receiver, FixedWorkersSup}
defmacro at(call, nodename) do
{{:., _, [mod, fun]}, _, args} = call
quote bind_quoted: [nodename: nodename, mod: mod, fun: fun, args: args] do
i... | 45.646154 | 149 | 0.636445 |
62c8811ec9c5fca5eff26964ebdf0ce72b389c1a | 2,004 | exs | Elixir | mix.exs | lancehalvorsen/phoenix | f366b7a399db04badb816f74851040fa141c51ee | [
"MIT"
] | null | null | null | mix.exs | lancehalvorsen/phoenix | f366b7a399db04badb816f74851040fa141c51ee | [
"MIT"
] | null | null | null | mix.exs | lancehalvorsen/phoenix | f366b7a399db04badb816f74851040fa141c51ee | [
"MIT"
] | null | null | null | defmodule Phoenix.Mixfile do
use Mix.Project
@version "1.0.4-dev"
def project do
[app: :phoenix,
version: @version,
elixir: "~> 1.0.2 or ~> 1.1-beta",
deps: deps,
package: package,
# Because we define protocols on the fly to test
# Phoenix.Param, we need to disable consolidati... | 31.3125 | 96 | 0.595309 |
62c8ab9b3904dffd7fc627d850b4d1af82517fa3 | 277 | ex | Elixir | apps/crawler/lib/crawler/validation.ex | carlos4ndre/elixir-crawler | be85b94940ce7933e506cb7e39083a5847c63174 | [
"MIT"
] | null | null | null | apps/crawler/lib/crawler/validation.ex | carlos4ndre/elixir-crawler | be85b94940ce7933e506cb7e39083a5847c63174 | [
"MIT"
] | null | null | null | apps/crawler/lib/crawler/validation.ex | carlos4ndre/elixir-crawler | be85b94940ce7933e506cb7e39083a5847c63174 | [
"MIT"
] | null | null | null | defmodule Crawler.Validation do
@supported_schemes ["http", "https"]
def url_valid?(str) do
uri = URI.parse(str)
case uri do
%URI{scheme: scheme} when scheme not in @supported_schemes -> false
%URI{host: nil} -> false
_ -> true
end
end
end
| 21.307692 | 73 | 0.631769 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.