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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d54abbf3e4d515161d017e49b062b0b5b9faf69b | 2,710 | ex | Elixir | apps/firestorm_web/lib/firestorm_web/web/controllers/category_controller.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_web/lib/firestorm_web/web/controllers/category_controller.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_web/lib/firestorm_web/web/controllers/category_controller.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormWeb.Web.CategoryController do
use FirestormWeb.Web, :controller
alias FirestormData.Commands.{GetCategory, CreateCategory, TagCategory, GetHomeCategories}
plug FirestormWeb.Plugs.RequireUser when action in [:tag, :new, :create]
def index(conn, _) do
{:ok, categories} =
%GetHomeCate... | 28.526316 | 92 | 0.59262 |
d54add3e2b15897cf05882e0ed910f9bace9c05c | 3,044 | ex | Elixir | lib/elasticsearch/config.ex | steffkes/elasticsearch-elixir | ce904e5dea959a5caefe2cde15669bba43ac3fa6 | [
"MIT"
] | null | null | null | lib/elasticsearch/config.ex | steffkes/elasticsearch-elixir | ce904e5dea959a5caefe2cde15669bba43ac3fa6 | [
"MIT"
] | null | null | null | lib/elasticsearch/config.ex | steffkes/elasticsearch-elixir | ce904e5dea959a5caefe2cde15669bba43ac3fa6 | [
"MIT"
] | null | null | null | defmodule Elasticsearch.Config do
@moduledoc """
Convenience functions for fetching configuration values for `Elasticsearch`.
"""
alias Elasticsearch.Store
@doc """
Returns the configured Elasticsearch URL.
## Configuration
config :elasticsearch,
url: "http://localhost:9200"
System tu... | 22.887218 | 84 | 0.632392 |
d54aea6128b9f6a8299ca870b12516a75e4d9eb0 | 153 | ex | Elixir | test/dummy/lib/factory.ex | zven21/aasm | f6749269c8317415fe12993d210a234ebf017ec9 | [
"MIT"
] | 2 | 2019-06-10T11:42:02.000Z | 2019-08-06T02:53:59.000Z | test/dummy/lib/factory.ex | zven21/aasm | f6749269c8317415fe12993d210a234ebf017ec9 | [
"MIT"
] | null | null | null | test/dummy/lib/factory.ex | zven21/aasm | f6749269c8317415fe12993d210a234ebf017ec9 | [
"MIT"
] | null | null | null | defmodule Dummy.Factory do
use ExMachina.Ecto, repo: Dummy.Repo
def order_factory do
%Dummy.Order{
state: "state_created"
}
end
end
| 15.3 | 38 | 0.679739 |
d54af1d294f7f567e7e21d06064578b18555d529 | 778 | ex | Elixir | test/commands/support/consistency/eventually_consistent_event_handler.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | null | null | null | test/commands/support/consistency/eventually_consistent_event_handler.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 1 | 2019-03-11T09:54:35.000Z | 2019-03-11T09:54:35.000Z | test/commands/support/consistency/eventually_consistent_event_handler.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | null | null | null | defmodule Commanded.Commands.EventuallyConsistentEventHandler do
use Commanded.Event.Handler,
application: Commanded.Commands.ConsistencyApp,
name: "EventuallyConsistentEventHandler",
consistency: :eventual
alias Commanded.Commands.ConsistencyApp
alias Commanded.Commands.ConsistencyAggregateRoot
al... | 26.827586 | 95 | 0.75964 |
d54b17d40676f5c08a806e5ef283a5d12503eb4f | 1,009 | exs | Elixir | mix.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | mix.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | mix.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | defmodule Layout.Mixfile do
use Mix.Project
def project do
[app: :layout,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
# Docs
name: "layout",
source_url: "https://github.com/bengtson/layout.git",
... | 22.931818 | 79 | 0.595639 |
d54b2622ebac763cf7eda2273d3b7b09359ea851 | 1,141 | exs | Elixir | config/config.exs | luizParreira/ecto_cast_to_string | 89254d62c460e11aac0eddbe329c1036d8c97f7e | [
"MIT"
] | 1 | 2022-03-10T16:40:27.000Z | 2022-03-10T16:40:27.000Z | config/config.exs | luizParreira/ecto_cast_to_string | 89254d62c460e11aac0eddbe329c1036d8c97f7e | [
"MIT"
] | null | null | null | config/config.exs | luizParreira/ecto_cast_to_string | 89254d62c460e11aac0eddbe329c1036d8c97f7e | [
"MIT"
] | 1 | 2021-03-04T07:52:14.000Z | 2021-03-04T07:52:14.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.756354 |
d54b43fff14939e7636559e898aa1312df691ab1 | 750 | ex | Elixir | lib/particle/response.ex | tompesman/particle-elixir | 90226405b868f8e8ff308c84c34e88ea68a8570a | [
"MIT"
] | null | null | null | lib/particle/response.ex | tompesman/particle-elixir | 90226405b868f8e8ff308c84c34e88ea68a8570a | [
"MIT"
] | null | null | null | lib/particle/response.ex | tompesman/particle-elixir | 90226405b868f8e8ff308c84c34e88ea68a8570a | [
"MIT"
] | null | null | null | defmodule Particle.Response do
@moduledoc false
defstruct [:status_code, :headers, :body]
@type t :: %__MODULE__{
status_code: status_code,
headers: headers,
body: body
}
@type status_code :: integer
@type headers :: list
@type body :: binary | map
def new(status_code, headers,... | 22.058824 | 56 | 0.650667 |
d54b464cbd4dd119b46c3a3d6b670d11abf01216 | 18 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/DecimalFloat.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/matched_three_operation_parsing_test_case/DecimalFloat.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/matched_three_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 1.2e-3 ^^^ 4.5e+6
| 9 | 17 | 0.444444 |
d54b6e6f41d8a2c769ff2bf3740735884d528b31 | 176 | exs | Elixir | exercise_1.44.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | 2 | 2019-08-26T13:17:27.000Z | 2020-09-24T13:16:07.000Z | exercise_1.44.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | exercise_1.44.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | defmodule Smooth do
def smooth(f), do: fn x -> (f.(x - dx) + f.(x) + f.(x + dx)) / 3 end
def n_fold_smooth(f, n), do: Repeat.n_times(smooth(f), n)
defp dx, do: 0.001
end
| 29.333333 | 70 | 0.579545 |
d54b85ea468c94c8fa4883687008d5f352b6a7e8 | 1,678 | exs | Elixir | mix.exs | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | mix.exs | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | mix.exs | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | defmodule Demo.Mixfile do
use Mix.Project
def project do
[app: :demo,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: ali... | 29.964286 | 89 | 0.596544 |
d54b8e65833aea0d3408c58f1187c9c0abad0bf1 | 3,395 | ex | Elixir | lib/mux/webhooks.ex | kianmeng/mux-elixir | b1b2c97c52300260ca29882132fbaa2a6e5f7a40 | [
"MIT"
] | 53 | 2018-06-29T22:49:29.000Z | 2022-03-23T00:01:44.000Z | lib/mux/webhooks.ex | kianmeng/mux-elixir | b1b2c97c52300260ca29882132fbaa2a6e5f7a40 | [
"MIT"
] | 18 | 2019-05-12T00:41:57.000Z | 2022-01-09T13:46:59.000Z | lib/mux/webhooks.ex | kianmeng/mux-elixir | b1b2c97c52300260ca29882132fbaa2a6e5f7a40 | [
"MIT"
] | 14 | 2019-01-24T23:44:34.000Z | 2022-03-21T15:28:42.000Z | defmodule Mux.Webhooks do
@moduledoc """
This module provides a function for verifying webhook signatures
"""
@default_tolerance 300
@expected_scheme "v1"
@doc """
Verifies a webhook signature. Pass in the raw request body, the
signature header that came with the webhook request ('Mux-Signature')
and... | 29.267241 | 94 | 0.664507 |
d54b9e5c56551513b18d75120bc76c8135b5597f | 25,334 | ex | Elixir | lib/elixir/lib/regex.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/regex.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/elixir/lib/regex.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule Regex do
@moduledoc ~S"""
Provides regular expressions for Elixir.
Regex is based on PCRE (Perl Compatible Regular Expressions) and
built on top of Erlang's `:re` module. More information can be found
in the [`:re` module documentation](http://www.erlang.org/doc/man/re.html).
Regular expressions... | 29.630409 | 98 | 0.622839 |
d54bbc9fd9c347d3563460eec58b93ba86ea6e23 | 998 | exs | Elixir | test/enable_global_settings_test.exs | myxplor/exvcr | 84aa3ebce2412aff3eff25dea14cd39b08a5a32d | [
"MIT"
] | 608 | 2015-01-05T18:44:49.000Z | 2022-03-21T19:54:01.000Z | test/enable_global_settings_test.exs | myxplor/exvcr | 84aa3ebce2412aff3eff25dea14cd39b08a5a32d | [
"MIT"
] | 165 | 2015-01-04T13:01:01.000Z | 2022-03-16T08:31:48.000Z | test/enable_global_settings_test.exs | myxplor/exvcr | 84aa3ebce2412aff3eff25dea14cd39b08a5a32d | [
"MIT"
] | 130 | 2015-01-28T19:33:21.000Z | 2022-02-08T22:21:43.000Z | defmodule ExVCR.EnableGlobalSettingsTest do
use ExVCR.Mock
use ExUnit.Case, async: false
test "settings are normally per-process" do
original_value = ExVCR.Setting.get(:custom_library_dir)
ExVCR.Setting.set(:custom_library_dir, "global_setting_test")
setting_from_task = Task.async(fn -> ExVCR.Setti... | 33.266667 | 84 | 0.770541 |
d54bc609067f99cbc8a3a8896779436bf2d60a32 | 2,089 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/calendar_notification.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/calendar_notification.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/calendar_notification.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... | 43.520833 | 504 | 0.742461 |
d54bdeba0d32d68b6a94bf677081222252a51324 | 1,269 | exs | Elixir | test/moebius/update_test.exs | KritR/moebius | fc242bfd474ed4c030487749fe0354469fa7d5b8 | [
"BSD-3-Clause"
] | 609 | 2015-10-13T23:42:14.000Z | 2022-03-29T21:11:25.000Z | test/moebius/update_test.exs | KritR/moebius | fc242bfd474ed4c030487749fe0354469fa7d5b8 | [
"BSD-3-Clause"
] | 82 | 2015-10-20T02:18:00.000Z | 2021-12-14T19:17:57.000Z | test/moebius/update_test.exs | KritR/moebius | fc242bfd474ed4c030487749fe0354469fa7d5b8 | [
"BSD-3-Clause"
] | 62 | 2015-10-20T01:14:15.000Z | 2021-11-26T19:02:00.000Z | defmodule Moebius.UpdateTest do
use ExUnit.Case
import Moebius.Query
setup_all do
cmd = db(:users)
|> filter(id: 1)
|> update(email: "maggot@test.com")
{:ok, cmd: cmd}
end
test "a basic user update", %{cmd: cmd} do
assert cmd.sql == "update users set email = $1 where id = $2 re... | 23.072727 | 85 | 0.584712 |
d54be55ddc32e877716e4f9bfb8468e5cc6b40b7 | 462 | ex | Elixir | lib/renaissance_web/views/auction_view.ex | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | null | null | null | lib/renaissance_web/views/auction_view.ex | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | null | null | null | lib/renaissance_web/views/auction_view.ex | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | null | null | null | defmodule RenaissanceWeb.AuctionView do
use RenaissanceWeb, :view
alias Renaissance.{Helpers, Auctions}
def default_end do
current = DateTime.utc_now()
%{
day: current.day,
hour: current.hour,
minute: current.minute,
month: current.month,
year: current.year
}
end
d... | 18.48 | 39 | 0.67316 |
d54be9a9dd927966f7d7c6055695695ed8976234 | 1,378 | ex | Elixir | test/support/data_case.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | 1 | 2018-05-13T19:28:48.000Z | 2018-05-13T19:28:48.000Z | test/support/data_case.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | test/support/data_case.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | defmodule Reanix.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ... | 25.518519 | 77 | 0.67852 |
d54bfe052281e189a5ab31f4831ad06ec9f7ddd0 | 2,669 | ex | Elixir | apps/snitch_api/lib/snitch_api_web/controllers/product_controller.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/snitch_api/lib/snitch_api_web/controllers/product_controller.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/snitch_api/lib/snitch_api_web/controllers/product_controller.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | defmodule SnitchApiWeb.ProductController do
use SnitchApiWeb, :controller
alias Snitch.Data.Model.{Product, ProductReview}
alias Snitch.Core.Tools.MultiTenancy.Repo
alias SnitchApi.ProductsContext, as: Context
alias SnitchApiWeb.Elasticsearch.Product.ListView, as: ESPListView
alias SnitchApiWeb.Elasticsear... | 26.166667 | 76 | 0.615586 |
d54c0f53c5d6b4b774dbd0838339db7d5537a797 | 2,404 | exs | Elixir | test/surface_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | test/surface_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 248 | 2021-03-12T07:39:37.000Z | 2022-03-31T13:36:44.000Z | test/surface_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule SurfaceTest do
use Surface.ConnCase
doctest Surface, import: true
import Surface
describe "quote_surface" do
test "generate AST" do
[tag] =
quote_surface line: 1 do
~F"<div>content</div>"
end
assert %Surface.AST.Tag{
element: "div",
... | 22.055046 | 98 | 0.526622 |
d54c1d78d86a822038446a537ffdf7edf91a7443 | 352 | exs | Elixir | installer/mix.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | installer/mix.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | installer/mix.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | defmodule Phx.New.Mixfile do
use Mix.Project
def project do
[
app: :phx_new,
start_permanent: Mix.env == :prod,
version: "1.3.0",
elixir: "~> 1.5"
]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[ex... | 17.6 | 52 | 0.616477 |
d54c405e36a5881f10717f33eec5324257710d26 | 1,044 | exs | Elixir | mix.exs | marcelotto/rdf_vocab | d0d27a5be12925216be710c43038a84d8cf149d8 | [
"MIT"
] | 3 | 2017-06-30T14:03:40.000Z | 2019-06-12T09:22:47.000Z | mix.exs | marcelotto/rdf_vocab | d0d27a5be12925216be710c43038a84d8cf149d8 | [
"MIT"
] | null | null | null | mix.exs | marcelotto/rdf_vocab | d0d27a5be12925216be710c43038a84d8cf149d8 | [
"MIT"
] | null | null | null | defmodule RDF.Vocab.Mixfile do
use Mix.Project
@repo_url "https://github.com/marcelotto/rdf_vocab"
@version "0.2.0"
def project do
[
app: :rdf_vocab,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),... | 18.642857 | 67 | 0.545019 |
d54cb160224382355487bb39a72ff62adccbb923 | 272 | exs | Elixir | config/test.exs | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | config/test.exs | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | config/test.exs | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :rethink_docs, RethinkDocs.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.727273 | 56 | 0.742647 |
d54cbb3bc1d7f8b500119b073d74156bdd0c2dbe | 3,726 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/shape_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/slides/lib/google_api/slides/v1/model/shape_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/shape_properties.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 ... | 47.769231 | 174 | 0.730542 |
d54cbd234ba1d1513230fbc78d241158bf528a3f | 197 | exs | Elixir | market_api/test/controllers/page_controller_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | market_api/test/controllers/page_controller_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | market_api/test/controllers/page_controller_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule MarketApi.PageControllerTest do
use MarketApi.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.888889 | 60 | 0.680203 |
d54cf9ae1d059312db64a41205f5335a69d0003a | 529 | ex | Elixir | integration_test/phoenix_example_app/lib/phoenix_example_app_web/router.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 1 | 2021-08-16T18:52:45.000Z | 2021-08-16T18:52:45.000Z | integration_test/phoenix_example_app/lib/phoenix_example_app_web/router.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 16 | 2021-03-09T19:39:31.000Z | 2022-03-15T15:20:24.000Z | integration_test/phoenix_example_app/lib/phoenix_example_app_web/router.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | null | null | null | defmodule PhoenixExampleAppWeb.Router do
use PhoenixExampleAppWeb, :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 "/", Pho... | 19.592593 | 41 | 0.697543 |
d54cff6f3c2efac0c3cae457dcec9f39c7e374a2 | 894 | ex | Elixir | clients/access_approval/lib/google_api/access_approval/v1/metadata.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/metadata.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/metadata.ex | rafaltrojanowski/elixir-google-api | 779f15166741b9cf57cb832228f1115bfb8edb13 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.111111 | 74 | 0.761745 |
d54d15722092bcc56e415e0bd98ef5637ceaac21 | 2,429 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/custom_viewability_metric_configuration.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/custom_viewability_metric_configuration.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/custom_viewability_metric_configuration.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... | 43.375 | 244 | 0.737752 |
d54d37f1eefe3d1ca8ee9bcd50a2dbe29680761c | 9,180 | exs | Elixir | test/blue_jet_web/controllers/identity/token_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | test/blue_jet_web/controllers/identity/token_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | test/blue_jet_web/controllers/identity/token_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJetWeb.TokenControllerTest do
use BlueJetWeb.ConnCase
import BlueJet.Identity.TestHelper
setup do
conn =
build_conn()
|> put_req_header("content-type", "application/x-www-form-urlencoded")
{:ok, conn: conn}
end
# Create a token
describe "POST /v1/token" do
test "wit... | 29.142857 | 83 | 0.608606 |
d54d47d133e19da7ee7385e760f787c8d1b5bc7b | 86 | exs | Elixir | blockchain/test/blockchain_web/views/page_view_test.exs | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | blockchain/test/blockchain_web/views/page_view_test.exs | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | blockchain/test/blockchain_web/views/page_view_test.exs | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | defmodule BlockchainWeb.PageViewTest do
use BlockchainWeb.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
d54db9eb225fa6e1452d9315bc37ad38ff4a90d7 | 83 | exs | Elixir | test/get_shorty_web/views/url_view_test.exs | lancehalvorsen/get_shorty | 65459633f3166a5f3e8653ff928857266a0c6fbe | [
"MIT"
] | 1 | 2021-08-23T01:42:58.000Z | 2021-08-23T01:42:58.000Z | test/get_shorty_web/views/url_view_test.exs | lancehalvorsen/get_shorty | 65459633f3166a5f3e8653ff928857266a0c6fbe | [
"MIT"
] | null | null | null | test/get_shorty_web/views/url_view_test.exs | lancehalvorsen/get_shorty | 65459633f3166a5f3e8653ff928857266a0c6fbe | [
"MIT"
] | null | null | null | defmodule GetShortyWeb.UrlViewTest do
use GetShortyWeb.ConnCase, async: true
end
| 20.75 | 40 | 0.831325 |
d54dd87a19fc7e830fac981ac29f0424a669796f | 725 | ex | Elixir | lib/nlw_05_elixir_web/gettext.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir_web/gettext.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir_web/gettext.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | defmodule Nlw05ElixirWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Nlw05ElixirWeb.Gettext
# Simple translation
gettext("H... | 29 | 72 | 0.684138 |
d54de1b4a1406153b65f867594abf024df26a9d8 | 3,153 | ex | Elixir | lib/ffmpex/options/main.ex | lattenwald/ffmpex | 9f41d9768b7b98bbdfb6f31c7ea7305be8ef633e | [
"MIT"
] | 187 | 2016-08-16T15:34:21.000Z | 2022-02-11T13:04:33.000Z | lib/ffmpex/options/main.ex | lattenwald/ffmpex | 9f41d9768b7b98bbdfb6f31c7ea7305be8ef633e | [
"MIT"
] | 28 | 2016-08-17T20:10:42.000Z | 2022-03-14T08:38:59.000Z | lib/ffmpex/options/main.ex | lattenwald/ffmpex | 9f41d9768b7b98bbdfb6f31c7ea7305be8ef633e | [
"MIT"
] | 39 | 2016-11-19T03:06:56.000Z | 2022-03-17T02:13:02.000Z | defmodule FFmpex.Options.Main do
@moduledoc """
https://ffmpeg.org/ffmpeg-all.html#Main-options
"""
alias FFmpex.Option
@known_options %{
f: %Option{name: "-f", require_arg: true, contexts: [:input, :output]},
i: %Option{name: "-i", require_arg: true, contexts: [:input]},
... | 68.543478 | 107 | 0.598478 |
d54de99f3aac637b8bd5c864e2e34bbe1ed06f6e | 843 | ex | Elixir | lib/radius.ex | balena/elixir-radius | 1e6933cd8386991bf91178540965d9a72bbc07b2 | [
"MIT"
] | 11 | 2015-05-20T05:14:52.000Z | 2020-09-24T13:34:28.000Z | lib/radius.ex | balena/elixir-radius | 1e6933cd8386991bf91178540965d9a72bbc07b2 | [
"MIT"
] | 2 | 2015-10-23T05:00:19.000Z | 2021-01-16T19:04:19.000Z | lib/radius.ex | balena/elixir-radius | 1e6933cd8386991bf91178540965d9a72bbc07b2 | [
"MIT"
] | 3 | 2015-02-14T20:37:32.000Z | 2019-11-22T14:19:03.000Z | defmodule Radius do
alias Radius.Packet
@doc """
wrapper of gen_udp.open
"""
def listen(port) do
:gen_udp.open(port, [{:active, :false}, {:mode, :binary}])
end
@doc """
recv and decode packet.
sk :: socket
secret :: string | fn({host,port}) -> string
"""
def recv(sk, secre... | 22.184211 | 62 | 0.589561 |
d54e226bd6ab601f715f5ac0d1fd3804a91f06ac | 585 | ex | Elixir | web/models/user_role.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/user_role.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/user_role.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.UserRole do
use CodeCorps.Web, :model
@type t :: %__MODULE__{}
schema "user_roles" do
belongs_to :user, CodeCorps.User
belongs_to :role, CodeCorps.Role
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def create_changeset(struct, pa... | 23.4 | 76 | 0.671795 |
d54e2d575102887b0e78d709c8fce8c582dfbfca | 3,054 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/http_rpc/adapter.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher/lib/omg_watcher/http_rpc/adapter.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher/lib/omg_watcher/http_rpc/adapter.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 33.56044 | 109 | 0.678127 |
d54e48f3d4912f4ee8517fd87ff4b1fb31c81919 | 930 | ex | Elixir | lib/militerm_web/controllers/game_controller.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | lib/militerm_web/controllers/game_controller.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | lib/militerm_web/controllers/game_controller.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | defmodule MilitermWeb.GameController do
use MilitermWeb, :controller
alias Militerm.Accounts
alias Militerm.Components.Identity
import Ecto.Query
def index(conn, _params) do
%{id: user_id} = current_user(conn)
characters =
[user: user_id]
|> Accounts.list_characters()
|> Enum.map... | 23.846154 | 71 | 0.626882 |
d54e6bbd7e9cb2480585d8e72bca7f71bbf4f28f | 928 | ex | Elixir | lib/ex_bitmex/credentials.ex | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | 1 | 2019-02-04T03:15:37.000Z | 2019-02-04T03:15:37.000Z | lib/ex_bitmex/credentials.ex | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | 2 | 2019-02-08T04:28:06.000Z | 2019-05-01T08:20:07.000Z | lib/ex_bitmex/credentials.ex | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | 2 | 2019-04-24T06:04:37.000Z | 2019-09-09T17:09:14.000Z | defmodule ExBitmex.Credentials do
require Logger
@type t :: %ExBitmex.Credentials{
api_key: String.t(),
api_secret: String.t()
}
@enforce_keys [:api_key, :api_secret]
defstruct [:api_key, :api_secret]
@doc """
Default credentials
## Examples
iex> ExBitmex.Credentials.... | 21.090909 | 87 | 0.645474 |
d54e76ac27b3778073365886b480fecdb1a2da43 | 80 | exs | Elixir | test/views/page_view_test.exs | linx-iot/linx_controller | 1a227ebff85180f0781fef7fd0371e2fcb94cfeb | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | linx-iot/linx_controller | 1a227ebff85180f0781fef7fd0371e2fcb94cfeb | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | linx-iot/linx_controller | 1a227ebff85180f0781fef7fd0371e2fcb94cfeb | [
"MIT"
] | null | null | null | defmodule LinxCntrlr.PageViewTest do
use LinxCntrlr.ConnCase, async: true
end
| 20 | 38 | 0.825 |
d54e98f274e5c19c8e359139e67b4a6ce7cb5e81 | 2,208 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_crop_hint.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_crop_hint.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_crop_hint.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.888889 | 232 | 0.741395 |
d54ea4b9510913a088c2ded6a373666d1d28f2f9 | 88 | exs | Elixir | config/config.exs | Dmitriy7Smirnov/elawesome-master | 91f6bfe402d21c1d83f2215c28b2dc46984aa30e | [
"MIT"
] | null | null | null | config/config.exs | Dmitriy7Smirnov/elawesome-master | 91f6bfe402d21c1d83f2215c28b2dc46984aa30e | [
"MIT"
] | null | null | null | config/config.exs | Dmitriy7Smirnov/elawesome-master | 91f6bfe402d21c1d83f2215c28b2dc46984aa30e | [
"MIT"
] | null | null | null | use Mix.Config
config :elawesome, web_port: 7003
config :phoenix, :json_library, Jason
| 17.6 | 37 | 0.784091 |
d54ebb49ff35cfd0565a20f7910a6b20d740b5f1 | 5,256 | ex | Elixir | lib/livebook/runtime/mix_standalone.ex | mgibowski/livebook | bfb9dc371e386597219a398a180d69c0bfa2f384 | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/mix_standalone.ex | mgibowski/livebook | bfb9dc371e386597219a398a180d69c0bfa2f384 | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/mix_standalone.ex | mgibowski/livebook | bfb9dc371e386597219a398a180d69c0bfa2f384 | [
"Apache-2.0"
] | 1 | 2021-12-18T03:42:04.000Z | 2021-12-18T03:42:04.000Z | defmodule Livebook.Runtime.MixStandalone do
defstruct [:node, :server_pid, :project_path]
# A runtime backed by a standalone Elixir node managed by Livebook.
#
# This runtime is similar to `Livebook.Runtime.ElixirStandalone`,
# but the node is started in the context of a Mix project.
import Livebook.Runti... | 33.692308 | 97 | 0.679604 |
d54f13784685d64b7b588f1e75e5d001b4d41525 | 2,797 | ex | Elixir | lib/warpath/filter/predicate.ex | Cleidiano/warpath | b566c7aa65dc5ad1063f0d2e878d9878e7e8ae38 | [
"MIT"
] | 16 | 2020-04-28T12:39:27.000Z | 2021-12-21T16:50:58.000Z | lib/warpath/filter/predicate.ex | cleidiano/warpath | 216a0e3c1bf72460daec7e5a75d0c45f3d0ae3af | [
"MIT"
] | 41 | 2020-02-01T18:10:50.000Z | 2022-01-18T08:11:22.000Z | lib/warpath/filter/predicate.ex | cleidiano/warpath | 216a0e3c1bf72460daec7e5a75d0c45f3d0ae3af | [
"MIT"
] | 3 | 2020-04-27T12:53:57.000Z | 2020-10-02T18:33:32.000Z | defmodule Warpath.Filter.Predicate do
@moduledoc false
alias Warpath.Query.Accessible
@operators [
:<,
:>,
:<=,
:>=,
:==,
:!=,
:===,
:!==,
:and,
:or,
:in
]
@functions [
:is_atom,
:is_binary,
:is_boolean,
:is_float,
:is_integer,
:is_list,
... | 22.739837 | 84 | 0.59242 |
d54f1c005b802a9af04cb0bcaa0ca7407d88fd6c | 1,474 | exs | Elixir | test/sudoku_test.exs | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | test/sudoku_test.exs | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | test/sudoku_test.exs | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | defmodule SudokuTest do
use ExUnit.Case
@game [
[0, 8, 9, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 3, 0, 0, 0, 0, 0],
[0, 7, 0, 0, 0, 1, 8, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 6, 0],
[0, 0, 0, 0, 0, 9, 0, 5, 0],
[9, 0, 1, 7, 4, 0, 0, 0, 0],
[0, 0, 5, 8, 0, 0, 0, 4, 0],
[3, 0, 8, 0, 0, 0, 0, 1, 0],
... | 32.043478 | 77 | 0.527137 |
d54f289924e6dce6f7e7e531f3e89181e706a88a | 605 | ex | Elixir | lib/keriex/juror.ex | m00sey/keriex | cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8 | [
"Apache-2.0"
] | null | null | null | lib/keriex/juror.ex | m00sey/keriex | cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8 | [
"Apache-2.0"
] | null | null | null | lib/keriex/juror.ex | m00sey/keriex | cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8 | [
"Apache-2.0"
] | null | null | null | defmodule Keriex.Juror do
@moduledoc """
A juror is an entity or component that performs duplicity detection on events and event receipts.
A juror is the controller of its own self-referential identifier which may or may not be the same as the identifier
to which it is a juror.
The juror may thereby create ... | 40.333333 | 117 | 0.780165 |
d54f2cc6a354ce67259a5f8db33f7f417a005514 | 261 | ex | Elixir | lib/util/uuid.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | 2 | 2020-09-02T23:10:09.000Z | 2021-03-29T09:19:15.000Z | lib/util/uuid.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | null | null | null | lib/util/uuid.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | null | null | null | defmodule ExMatrixApi.Util.UUID do
@moduledoc """
Wrapper for uuid generation
"""
alias ExMatrixApi.Synapse
@spec generate :: String.t()
def generate() do
uuid_function = Synapse.config!(:uuid_function)
apply(uuid_function, [])
end
end
| 17.4 | 51 | 0.693487 |
d54f45ec4c574b05bbb49a8c7b3c4bc9d9f3e1a6 | 156 | ex | Elixir | web/controllers/page_controller.ex | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | jeffcole/loops | 8d1f8345140182905dfc1967af135205b82f2cdc | [
"MIT"
] | null | null | null | defmodule LoopsWithFriends.PageController do
use LoopsWithFriends.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 19.5 | 44 | 0.762821 |
d54f592093035ecaa02a1d969962ee56f53a0ff2 | 2,771 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/user_id.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/user_id.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/user_id.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.482143 | 580 | 0.722844 |
d54fcf254bd90f5a05f0e0c95ddf128e55a07111 | 7,011 | ex | Elixir | lib/credo/check/consistency/space_around_operators.ex | sascha-wolf/credo | 7f51b45406968d28b7435ddcfb52745e9575e1fc | [
"MIT"
] | null | null | null | lib/credo/check/consistency/space_around_operators.ex | sascha-wolf/credo | 7f51b45406968d28b7435ddcfb52745e9575e1fc | [
"MIT"
] | null | null | null | lib/credo/check/consistency/space_around_operators.ex | sascha-wolf/credo | 7f51b45406968d28b7435ddcfb52745e9575e1fc | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Consistency.SpaceAroundOperators do
@moduledoc false
@checkdoc """
Use spaces around operators like `+`, `-`, `*` and `/`. This is the
**preferred** way, although other styles are possible, as long as it is
applied consistently.
# preferred
1 + 2 * 4
# also okay
... | 27.711462 | 93 | 0.636714 |
d54fdaa4384aca068dd1b4006903f8c6a658a9a5 | 2,327 | ex | Elixir | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_smart_reply_data.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_smart_reply_data.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_smart_reply_data.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.147541 | 217 | 0.724108 |
d54fe2e87c79afad2074afc501c9e93d085983f2 | 1,668 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/entry.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/genomics/lib/google_api/genomics/v1/model/entry.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/entry.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 32.705882 | 101 | 0.736811 |
d54ffa51e6f5b3e957edaaec4b9af235d1693faf | 216 | exs | Elixir | modules-and-named-functions/default_params2.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | modules-and-named-functions/default_params2.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | modules-and-named-functions/default_params2.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule Params do
def func(p1, p2 \\ 123)
def func(p1, p2) when is_list(p1) do
"You said #{p2} with a list"
end
def func(p1, p2) do
"You passed in #{p1} and #{p2}"
end
end
| 18 | 40 | 0.532407 |
d5500d4bd1bf09fbc269dc1edeb91a90255497c1 | 1,514 | ex | Elixir | test/support/data_case.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | test/support/data_case.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | test/support/data_case.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to th... | 28.037037 | 77 | 0.692867 |
d5500eb0006aafa4d73639b553cafa04a04038fd | 14,617 | ex | Elixir | lib/sigaws.ex | heltonsantos/sigaws | 5c9f4f3f2b9a5c8afb1dd97e1c4128f79432448c | [
"MIT"
] | null | null | null | lib/sigaws.ex | heltonsantos/sigaws | 5c9f4f3f2b9a5c8afb1dd97e1c4128f79432448c | [
"MIT"
] | null | null | null | lib/sigaws.ex | heltonsantos/sigaws | 5c9f4f3f2b9a5c8afb1dd97e1c4128f79432448c | [
"MIT"
] | null | null | null | defmodule Sigaws do
@moduledoc """
A library to sign and verify HTTP requests using AWS Signature V4.
[](http://inch-ci.org/github/handnot2/sigaws)
`Sigaws` does not dictate how you compose and send HTTP requests. You can use
`HTTPoison` or any ot... | 39.505405 | 163 | 0.636724 |
d55060a0094d2a928b83aa286855ec5603c82986 | 12,219 | ex | Elixir | apps/omg_performance/lib/performance.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_performance/lib/performance.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_performance/lib/performance.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 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 writi... | 36.044248 | 156 | 0.694001 |
d5507c943e069f9046ac983e74c2519e91b79515 | 6,779 | ex | Elixir | lib/extreme/subscription.ex | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | lib/extreme/subscription.ex | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | lib/extreme/subscription.ex | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | defmodule Commanded.EventStore.Adapters.Extreme.Subscription do
use GenServer
require Logger
alias Commanded.EventStore.Adapters.Extreme.Mapper
alias Commanded.EventStore.RecordedEvent
alias Extreme.Msg, as: ExMsg
@event_store Commanded.EventStore.Adapters.Extreme.EventStore
defmodule State do
def... | 28.483193 | 96 | 0.662635 |
d55080d5ef84ecf3b19d8f847b70ce489addbe7d | 903 | exs | Elixir | test/plug/crypto/message_verifier_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | 1 | 2018-04-09T16:40:02.000Z | 2018-04-09T16:40:02.000Z | test/plug/crypto/message_verifier_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | test/plug/crypto/message_verifier_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Crypto.MessageVerifierTest do
use ExUnit.Case, async: true
alias Plug.Crypto.MessageVerifier, as: MV
test "generates a signed message" do
[content, encoded] = String.split MV.sign("hello world", "secret"), "--"
assert content |> Base.decode64 == {:ok, "hello world"}
assert byte_size(e... | 32.25 | 76 | 0.660022 |
d550a81de4a1e61820172f48e8f1dcae80f5bbbc | 1,706 | ex | Elixir | lib/koans/10_structs.ex | audacioustux/elixir-koans | 76b8f089760432529ac360439dba4e65bb5e1b2b | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | audacioustux/elixir-koans | 76b8f089760432529ac360439dba4e65bb5e1b2b | [
"MIT"
] | null | null | null | lib/koans/10_structs.ex | audacioustux/elixir-koans | 76b8f089760432529ac360439dba4e65bb5e1b2b | [
"MIT"
] | null | null | null | defmodule Structs do
use Koans
@intro "Structs"
defmodule Person do
defstruct [:name, :age]
end
koan "Structs are defined and named after a module" do
person = %Person{}
assert person == %Person{}
end
koan "Unless previously defined, fields begin as nil" do
nobody = %Person{}
asser... | 28.433333 | 125 | 0.654748 |
d550bb1121bf461240e49ad7f35cc72474351147 | 2,117 | ex | Elixir | lib/phoenix/live_dashboard/helpers/table_helpers.ex | wojtekmach/phoenix_live_dashboard | 5b0a001bd5772ffc1e9de82b954a62c860490fc5 | [
"MIT"
] | 2 | 2020-05-07T23:49:26.000Z | 2020-05-10T13:56:03.000Z | lib/phoenix/live_dashboard/helpers/table_helpers.ex | wojtekmach/phoenix_live_dashboard | 5b0a001bd5772ffc1e9de82b954a62c860490fc5 | [
"MIT"
] | 1 | 2020-06-11T01:43:00.000Z | 2020-06-16T04:48:00.000Z | lib/phoenix/live_dashboard/helpers/table_helpers.ex | wojtekmach/phoenix_live_dashboard | 5b0a001bd5772ffc1e9de82b954a62c860490fc5 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.TableHelpers do
# Helpers for pages that need to render tables
@moduledoc false
import Phoenix.LiveView
import Phoenix.LiveView.Helpers
import Phoenix.LiveDashboard.LiveHelpers
@limit ~w(50 100 500 1000 5000)
@sort_dir ~w(desc asc)
def assign_table_params(socket, param... | 28.608108 | 98 | 0.657062 |
d550d2bfcf87bfb94acaee857256868b5e7786df | 255 | ex | Elixir | examples/1_janken/lib/janken/www/lobby.ex | CrowdHailer/comms | 871c778233a3872890cc1cfb7a439e642843d88b | [
"Apache-2.0"
] | 3 | 2018-10-27T09:58:37.000Z | 2020-10-14T01:23:05.000Z | examples/1_janken/lib/janken/www/lobby.ex | CrowdHailer/comms | 871c778233a3872890cc1cfb7a439e642843d88b | [
"Apache-2.0"
] | 1 | 2018-01-08T22:41:02.000Z | 2018-01-08T22:41:02.000Z | examples/1_janken/lib/janken/www/lobby.ex | CrowdHailer/comms | 871c778233a3872890cc1cfb7a439e642843d88b | [
"Apache-2.0"
] | null | null | null | defmodule Janken.WWW.Lobby do
use Raxx.Server
@impl Raxx.Server
def handle_request(request = %{method: :GET}, %{game: game}) do
game_id = :erlang.term_to_binary(game) |> Base.url_encode64()
response(:ok)
|> set_body(game_id)
end
end
| 21.25 | 65 | 0.678431 |
d550eb77b43ccddf3e191800f6681ec7ebb09d9d | 2,679 | ex | Elixir | clients/content/lib/google_api/content/v21/model/collection_status_item_level_issue.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/collection_status_item_level_issue.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/collection_status_item_level_issue.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... | 39.397059 | 130 | 0.683464 |
d550f1b98558bd9117ee619ec3841085c086d5d3 | 1,903 | exs | Elixir | apps/badger_web/config/prod.exs | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | apps/badger_web/config/prod.exs | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | 9 | 2021-03-09T20:25:18.000Z | 2021-05-27T12:58:03.000Z | apps/badger_web/config/prod.exs | andyl/badger | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | use Mix.Config
config :badger_web, BadgerWeb.Endpoint,
url: [host: "localhost", port: 4000],
cache_static_manifest: "priv/static/cache_manifest.json",
server: true
# Do not print debug messages in production
config :logger, level: :info
# ## SSL Support
#
# To get SSL working, you will need to add the `https` ... | 32.810345 | 66 | 0.701524 |
d5511d07a320e38d77e78f3a252d9b6f64dd095d | 613 | ex | Elixir | lib/casex/camel_case_decoder_plug.ex | brainn-co/casex | 147e1b3f3623b41e7c779a5d425a42c1748a65dd | [
"Apache-2.0"
] | 12 | 2020-05-05T14:09:31.000Z | 2021-01-09T20:35:24.000Z | lib/casex/camel_case_decoder_plug.ex | Finbits/casex | de01b579583f7f845c6f9032a91a247bc3774f62 | [
"Apache-2.0"
] | 1 | 2020-06-24T14:25:24.000Z | 2020-06-24T14:25:24.000Z | lib/casex/camel_case_decoder_plug.ex | brainn-co/casex | 147e1b3f3623b41e7c779a5d425a42c1748a65dd | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule Casex.CamelCaseDecoderPlug do
@moduledoc """
Converts all plug params to snake case.
## Usage
Add `Casex.CamelCaseDecoderPlug` to your api pipeline:
```elixir
# router.ex
pipeline :api do
plug :accepts, ["json"]
plug Casex.CamelCaseD... | 19.774194 | 71 | 0.637847 |
d5511da9db04e2bec87a95cdd0f7aa326ad5f00a | 291 | ex | Elixir | behaviour/elixir/plug_in.ex | o-kurnenkov/otp_basis | 9717d73151a2f898d9c52485df91452bbb46548a | [
"MIT"
] | 1 | 2016-11-01T18:03:26.000Z | 2016-11-01T18:03:26.000Z | behaviour/elixir/plug_in.ex | o-kurnenkov/otp_basis | 9717d73151a2f898d9c52485df91452bbb46548a | [
"MIT"
] | null | null | null | behaviour/elixir/plug_in.ex | o-kurnenkov/otp_basis | 9717d73151a2f898d9c52485df91452bbb46548a | [
"MIT"
] | null | null | null | ## plug_in.ex
defmodule PlugIn do
@behaviour GenMod
# API
def start do GenMod.start(__MODULE__) end
def connect do GenMod.connect(__MODULE__) end
# GenMod Callbacks
def do_start do IO.puts("Starting plugin") end
def do_connect do IO.puts("Connecting Plugin") end
end
| 22.384615 | 52 | 0.721649 |
d551754c4cefe0d9b031eb84c6f6b591911541ca | 2,512 | ex | Elixir | lib/fttz.ex | evuez/fttz | dcf7385a2dd3aa054248abbf5cb3c03329802126 | [
"MIT"
] | 1 | 2017-03-30T08:41:19.000Z | 2017-03-30T08:41:19.000Z | lib/fttz.ex | evuez/fttz | dcf7385a2dd3aa054248abbf5cb3c03329802126 | [
"MIT"
] | null | null | null | lib/fttz.ex | evuez/fttz | dcf7385a2dd3aa054248abbf5cb3c03329802126 | [
"MIT"
] | null | null | null | defmodule FTTZ do
@hours 0..23
@daytime 8..20
def stats(screen_name, scale \\ :log10) do
data = screen_name |> times
data |> timezone
IO.puts "\nTweet distribution throughout the day (at UTC±00:00):\n"
data |> graph(scale)
end
defp times(screen_name) do
timeline(screen_name)
|> St... | 25.373737 | 86 | 0.596338 |
d55182d9805eba84a27d47bad51b91c3fece55f4 | 10,395 | ex | Elixir | lib/auto_api.ex | cenurv/auto_api | e85ca3592cdda1f2267b56e3ee53f0f36102fb76 | [
"Apache-2.0"
] | 4 | 2017-02-20T05:49:51.000Z | 2021-01-11T21:09:46.000Z | lib/auto_api.ex | cenurv/auto_api | e85ca3592cdda1f2267b56e3ee53f0f36102fb76 | [
"Apache-2.0"
] | null | null | null | lib/auto_api.ex | cenurv/auto_api | e85ca3592cdda1f2267b56e3ee53f0f36102fb76 | [
"Apache-2.0"
] | null | null | null | defmodule RestApiBuilder do
@moduledoc """
Documentation for RestApiBuilder.
"""
defmacro __using__(opts) do
plural_name = to_string Keyword.get(opts, :plural_name, nil)
singular_name = to_string Keyword.get(opts, :singular_name, nil)
activate = Keyword.get opts, :activate, nil
default_plugs = ... | 25.666667 | 97 | 0.576239 |
d55189f952552078f24184df04d5d9f79ba160dd | 1,566 | exs | Elixir | config/config.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | config/config.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | config/config.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :hello,
ecto_repos: [Hello.Repo]
# Conf... | 32.625 | 114 | 0.752235 |
d5518b392a43af5387abfd97a851301479d422aa | 17,924 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/sites.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/v34/api/sites.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/v34/api/sites.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... | 48.706522 | 457 | 0.622071 |
d551c47287dcd5f01a870acb5a72c5ab12a6f41b | 8,009 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/dataset.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 76.27619 | 922 | 0.721314 |
d5522c2d2e19f573e736901bde42cf6ec18ac1cb | 875 | exs | Elixir | test/disposable_email_blacklist_test.exs | dyeyuen17/disposable_email_blacklist | 645910e5ca92897f0e8880b01195d059840d9b6a | [
"MIT"
] | null | null | null | test/disposable_email_blacklist_test.exs | dyeyuen17/disposable_email_blacklist | 645910e5ca92897f0e8880b01195d059840d9b6a | [
"MIT"
] | null | null | null | test/disposable_email_blacklist_test.exs | dyeyuen17/disposable_email_blacklist | 645910e5ca92897f0e8880b01195d059840d9b6a | [
"MIT"
] | null | null | null | defmodule DisposableEmailBlacklistTest do
use ExUnit.Case
doctest DisposableEmailBlacklist
test "Returns true when given email is not included in blacklist" do
assert DisposableEmailBlacklist.valid?("my_email@gmail.com") == true
end
test "Returns false when given email is included in blacklist" do
a... | 38.043478 | 95 | 0.765714 |
d552447d8c895d2482eb7254f02e508c7e33e363 | 425 | ex | Elixir | lib/nebulex/adapters/local/backend/ets.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 845 | 2017-02-14T14:16:11.000Z | 2022-03-30T04:13:08.000Z | lib/nebulex/adapters/local/backend/ets.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 146 | 2017-04-29T16:11:14.000Z | 2022-03-29T08:49:05.000Z | lib/nebulex/adapters/local/backend/ets.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 50 | 2017-08-17T13:44:06.000Z | 2022-03-30T11:29:59.000Z | defmodule Nebulex.Adapters.Local.Backend.ETS do
@moduledoc false
use Nebulex.Adapters.Local.Backend
## API
@doc false
def child_spec(opts) do
opts
|> parse_opts()
|> generation_spec()
|> List.wrap()
|> sup_spec()
end
@doc false
def new(_meta_tab, tab_opts) do
:ets.new(__MODULE... | 16.346154 | 47 | 0.658824 |
d5527f77d3bcc3eb566e3b57618417ddb56de989 | 3,368 | ex | Elixir | lib/netler/client.ex | svan-jansson/netler | 36c4738ba4dfec90e9929c91ee36bc61e09a025b | [
"MIT"
] | 7 | 2019-11-26T08:48:43.000Z | 2022-01-24T11:55:42.000Z | lib/netler/client.ex | svan-jansson/netler | 36c4738ba4dfec90e9929c91ee36bc61e09a025b | [
"MIT"
] | 1 | 2022-02-07T13:12:57.000Z | 2022-02-07T13:12:57.000Z | lib/netler/client.ex | svan-jansson/netler | 36c4738ba4dfec90e9929c91ee36bc61e09a025b | [
"MIT"
] | null | null | null | defmodule Netler.InvokeError do
@moduledoc false
defexception [:communication_error, :dotnet_exception, :unreachable]
def message(%{communication_error: communication_error}) do
"Communication error: #{communication_error}"
end
def message(%{dotnet_exception: dotnet_exception}) do
".NET server thre... | 27.16129 | 98 | 0.675475 |
d55287eb494230847a1a7d755e7085875bbea595 | 5,063 | ex | Elixir | apps/state/lib/state/routes_patterns_at_stop.ex | mbta/automatic-fiesta | de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5 | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/state/lib/state/routes_patterns_at_stop.ex | mbta/automatic-fiesta | de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5 | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/state/lib/state/routes_patterns_at_stop.ex | mbta/automatic-fiesta | de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5 | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule State.RoutesPatternsAtStop do
@moduledoc """
Allows finding all routes or route patterns that pass through a stop.
"""
use Events.Server
require Logger
import State.Logger
import State.Helpers
alias State.{Route, RoutePattern, Schedule, Shape, Trip}
@table __MODULE__
@subscriptions [
... | 27.818681 | 96 | 0.65791 |
d5529640c401369209fbc617ae0613a928979a67 | 7,414 | exs | Elixir | test/extensions/email_confirmation/phoenix/controllers/controller_callbacks_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | test/extensions/email_confirmation/phoenix/controllers/controller_callbacks_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | test/extensions/email_confirmation/phoenix/controllers/controller_callbacks_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | defmodule PowEmailConfirmation.Phoenix.ControllerCallbacksTest do
use PowEmailConfirmation.TestWeb.Phoenix.ConnCase
alias Plug.Conn
alias Pow.{Ecto.Schema.Password, Plug}
alias PowEmailConfirmation.Test.Users.User
@password "secret1234"
describe "Pow.Phoenix.SessionController.create/2" do
@valid_para... | 46.3375 | 183 | 0.685055 |
d552f15a0b2cd3ae7f29cb6b1fca79a26106a0fd | 3,079 | ex | Elixir | clients/container/lib/google_api/container/v1/model/set_logging_service_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_logging_service_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_logging_service_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.513158 | 131 | 0.70315 |
d5532087bbbf949faf3ac680d64cbe9f6352736c | 1,880 | exs | Elixir | test/conformance/in_flight_exit_test.exs | nondejus/ex_plasma | 3be21c80ab9d28a40d44a6950969e72270f9bbb4 | [
"Apache-2.0"
] | null | null | null | test/conformance/in_flight_exit_test.exs | nondejus/ex_plasma | 3be21c80ab9d28a40d44a6950969e72270f9bbb4 | [
"Apache-2.0"
] | null | null | null | test/conformance/in_flight_exit_test.exs | nondejus/ex_plasma | 3be21c80ab9d28a40d44a6950969e72270f9bbb4 | [
"Apache-2.0"
] | null | null | null | defmodule Conformance.InFlightExitTest do
@moduledoc """
Conformance tests that check our local in-flight exit implementation aligns with the plasma contracts.
"""
use ExUnit.Case, async: true
alias ExPlasma.InFlightExit
@moduletag :conformance
# The address where ExitIDWrapper is deployed. Ganache keep... | 30.819672 | 104 | 0.71117 |
d5532e37908268579672e6758fdf35a8ee57cab1 | 1,871 | exs | Elixir | rel/config.exs | niennte/phoenix_react_playground | cd962eb48bad5df1206b9e7ef85d07ed74397367 | [
"Unlicense"
] | null | null | null | rel/config.exs | niennte/phoenix_react_playground | cd962eb48bad5df1206b9e7ef85d07ed74397367 | [
"Unlicense"
] | null | null | null | rel/config.exs | niennte/phoenix_react_playground | cd962eb48bad5df1206b9e7ef85d07ed74397367 | [
"Unlicense"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Distillery.Releases.Config,
... | 33.410714 | 81 | 0.741315 |
d55354c6ecda2845de1d73d52613c02ce5467b3e | 1,025 | ex | Elixir | lib/autox/utils/session_utils.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | lib/autox/utils/session_utils.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | lib/autox/utils/session_utils.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Autox.SessionUtils do
alias Fox.RecordExt
import Plug.Conn
def logged_in?(conn) do
conn
|> current_session
|> case do
nil -> false
_ -> true
end
end
def change(conn, session) do
conn |> put_session(:current_session, session |> serialize)
end
def login(conn, ses... | 19.711538 | 63 | 0.638049 |
d55368871296b90f72f776e528b11c55507fab0e | 801 | ex | Elixir | lib/live_map/view.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | 3 | 2021-11-28T18:17:05.000Z | 2021-12-19T01:35:13.000Z | lib/live_map/view.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | null | null | null | lib/live_map/view.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | null | null | null | defmodule LiveMap.View do
@moduledoc """
A LiveView that displays a single LiveMap component.
It can be used as an embeded map.
"""
use Phoenix.LiveView
def mount(params, _session, socket) do
{:ok,
socket
|> assign_new(:width, fn -> params["width"] || 300 end)
|> assign_new(:height, ... | 25.83871 | 67 | 0.594257 |
d55381491d5335d9d6dcd2a90f9dbbee980e4930 | 168 | exs | Elixir | test/jitter_entropy_port_test.exs | elcritch/jitter_entropy_port | 0d56b2b699fc7131e5c1749020577c7ffa5ad0f9 | [
"BSD-2-Clause"
] | null | null | null | test/jitter_entropy_port_test.exs | elcritch/jitter_entropy_port | 0d56b2b699fc7131e5c1749020577c7ffa5ad0f9 | [
"BSD-2-Clause"
] | null | null | null | test/jitter_entropy_port_test.exs | elcritch/jitter_entropy_port | 0d56b2b699fc7131e5c1749020577c7ffa5ad0f9 | [
"BSD-2-Clause"
] | null | null | null | defmodule JitterEntropyPortTest do
use ExUnit.Case
doctest JitterEntropyPort
test "greets the world" do
assert JitterEntropyPort.hello() == :world
end
end
| 18.666667 | 46 | 0.761905 |
d5538204aead5553730e92050bc4fec32c72c7d3 | 729 | ex | Elixir | test/support/fixtures/meetups_fixtures.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 1 | 2019-11-15T15:39:24.000Z | 2019-11-15T15:39:24.000Z | test/support/fixtures/meetups_fixtures.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 166 | 2020-06-30T16:07:48.000Z | 2021-11-25T00:02:24.000Z | test/support/fixtures/meetups_fixtures.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | null | null | null | defmodule Juntos.MeetupsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Juntos.Meetups` context.
"""
alias Juntos.Meetups
def unique_slug, do: "slug-#{System.unique_integer()}"
def group_fixture(attrs \\ %{}) do
{:ok, group} =
attrs
|> Enum.int... | 19.702703 | 56 | 0.570645 |
d553af15ac0228aa247f5226ebca957b8f213b31 | 2,483 | ex | Elixir | bench/liblink/bench/server.ex | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 3 | 2018-10-26T12:55:15.000Z | 2019-05-03T22:41:34.000Z | bench/liblink/bench/server.ex | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 4 | 2018-08-26T14:43:57.000Z | 2020-09-23T21:14:56.000Z | bench/liblink/bench/server.ex | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 (c) Xerpa
#
# 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, so... | 25.597938 | 87 | 0.634716 |
d553b5981983c4a097581562bcf6580608b1caac | 100 | exs | Elixir | test/test_helper.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 3 | 2019-08-03T14:01:07.000Z | 2020-08-28T14:33:43.000Z | test/test_helper.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 10 | 2019-05-07T19:30:14.000Z | 2020-03-04T19:24:14.000Z | test/test_helper.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | null | null | null | Logger.remove_backend(:console)
ExUnit.configure(exclude: [:pending, :integration])
ExUnit.start()
| 20 | 51 | 0.78 |
d553bd5c6d46c1e6dc2cc1a019fea7a3edcde76e | 8,794 | exs | Elixir | test/sptfy/playlist_test.exs | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 5 | 2020-12-14T15:46:26.000Z | 2021-03-20T22:32:58.000Z | test/sptfy/playlist_test.exs | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 9 | 2020-12-25T14:36:11.000Z | 2021-01-25T14:03:18.000Z | test/sptfy/playlist_test.exs | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | null | null | null | defmodule Sptfy.PlaylistTest do
use ExUnit.Case, async: false
import Mock
alias Sptfy.Playlist
alias Sptfy.Object.{FullPlaylist, Image, Paging, PlaylistTrack, SimplifiedPlaylist}
describe "get_my_playlists/2" do
test "returns a Paging struct" do
json = Fixtures.paging(Fixtures.simplified_playlist... | 40.525346 | 154 | 0.63259 |
d553df33a0aa00dc17f969a43259c124e85aa127 | 6,856 | ex | Elixir | lib/elixir/lib/hash_set.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/elixir/lib/hash_set.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/hash_set.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule HashSet do
@moduledoc """
WARNING: this module is deprecated.
Use the `MapSet` module instead.
"""
# TODO: Remove by 2.0
# (hard-deprecated in elixir_dispatch)
@node_bitmap 0b111
@node_shift 3
@node_size 8
@node_template :erlang.make_tuple(@node_size, [])
@opaque t :: %__MODULE__{siz... | 24.573477 | 102 | 0.578471 |
d55404354dbf6c9dfdc858ac2c289d1d48eeb421 | 2,999 | exs | Elixir | mix.exs | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | mix.exs | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | mix.exs | adrianomota/hydra | b72386467089d087cd3dc8f3106842ecb8e68ac3 | [
"MIT"
] | null | null | null | defmodule Hydra.MixProject do
use Mix.Project
@github_url "https://github.com/adrianomota/hydra.git"
def project do
[
app: :hydra,
version: "0.1.0",
elixir: "~> 1.13",
description: "Hydra Project",
source_utl: @github_url,
homepage_url: @github_url,
files: ~w(mix.ex... | 28.561905 | 84 | 0.538846 |
d5540d0d66d210d8ff96839ca2b92f056e450b57 | 5,344 | ex | Elixir | lib/funnel_smtp/address.ex | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | 2 | 2021-04-27T01:39:01.000Z | 2021-04-27T02:57:17.000Z | lib/funnel_smtp/address.ex | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | 5 | 2021-04-25T02:13:36.000Z | 2021-04-26T00:49:36.000Z | lib/funnel_smtp/address.ex | indutny/funnel | 4d7322e517131aa0c8b222d898f8e2e970f3ce1e | [
"MIT"
] | null | null | null | defmodule FunnelSMTP.Address do
# Various small patterns
@ipv6_hex ~S"[0-9a-fA-F]{1,4}"
@let_dig ~S"[a-zA-Z0-9]"
@ldh_str ~S"[a-zA-Z0-9\-]*" <> @let_dig
@atext ~S"[a-zA-Z0-9!#$%&'*+\-/=?^_`{|}~]"
@qtext_smtp ~S"[\x20-\x21\x23-x5b\x5d-\x7e]"
@quoted_pair_smtp ~S"\x5c[\x20-\x7e]"
@snum ~S"[0-9]{1,3}"
@i... | 23.438596 | 81 | 0.522455 |
d5542f15a0f0c40d806bff6101e71802bde1b72b | 276 | ex | Elixir | lib/talon/plug/theme.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 170 | 2017-05-25T15:09:53.000Z | 2021-07-09T04:04:14.000Z | lib/talon/plug/theme.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 78 | 2017-05-25T09:41:55.000Z | 2019-01-04T20:53:35.000Z | lib/talon/plug/theme.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 8 | 2017-06-24T12:28:06.000Z | 2018-09-17T16:11:56.000Z | defmodule Talon.Plug.Theme do
import Plug.Conn
@behaviour Plug
def init(opts) do
Enum.into opts, %{}
end
def call(conn, opts) do
talon = conn.assigns[:talon]
assign conn, :talon, Map.put(talon, :theme, opts[:theme] || talon.concern.theme())
end
end
| 18.4 | 86 | 0.655797 |
d5545cb1e2c8ee2fa9f6f7e02064241c71317c7f | 1,791 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/app_edit.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v2/model/app_edit.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/app_edit.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.82 | 207 | 0.730877 |
d5545d50e98bcd7a2e8e3451c4ddccb4b2779c05 | 390 | exs | Elixir | programming/elixir/spawn.exs | mmshress/lifelong-learning | 803f8ed5ea40c83b38014fc52d5af8e22a44366f | [
"Unlicense"
] | 593 | 2015-01-05T09:06:53.000Z | 2022-03-25T16:59:21.000Z | programming/elixir/spawn.exs | global-open-source-society/lifelong-learning | f193d32b29854b3ce377771320c8c09bcb681eda | [
"Unlicense"
] | 2 | 2015-07-03T17:55:34.000Z | 2019-12-11T17:00:12.000Z | programming/elixir/spawn.exs | global-open-source-society/lifelong-learning | f193d32b29854b3ce377771320c8c09bcb681eda | [
"Unlicense"
] | 112 | 2015-01-05T09:14:41.000Z | 2022-03-03T11:16:28.000Z | defmodule Spawn1 do
def greet do
receive do
{ sender, msg } ->
send(sender, {:ok, "Hello #{msg}" })
greet
end
end
end
pid = spawn(Spawn1, :greet, [])
send pid, {self, "World!"}
receive do
{ :ok, message } ->
IO.puts message
end
send pid, {self, "Kermit"}
receive do
{ :ok, m... | 13.928571 | 44 | 0.553846 |
d55498f0b2552458f8392297cc6987249f58ebfc | 4,417 | ex | Elixir | lib/changelog_web/controllers/admin/episode_request_controller.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/controllers/admin/episode_request_controller.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/controllers/admin/episode_request_controller.ex | snyk-omar/changelog.com | 66a8cff17ed8a237e439976aa7fb96b58ef276a3 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.Admin.EpisodeRequestController do
use ChangelogWeb, :controller
alias Changelog.{EpisodeRequest, Podcast, Notifier}
plug :assign_podcast
plug :assign_request when action not in [:index]
plug Authorize, [Policies.Admin.EpisodeRequest, :podcast]
# pass assigned podcast as a function ... | 26.769697 | 97 | 0.635952 |
d554a042b44f103d917bd1069e50f1d35324f8d2 | 1,464 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/source_repo/lib/google_api/source_repo/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/source_repo/lib/google_api/source_repo/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.857143 | 74 | 0.73224 |
d554a1af4e7f4ba962deed2dc6b0c2434502361b | 1,698 | ex | Elixir | apps/lana/lib/lana/endpoint.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/lana/lib/lana/endpoint.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | apps/lana/lib/lana/endpoint.ex | hoyon/skye | 50a25a55bb0c38460a0bd204c8d0ce716da9f017 | [
"MIT"
] | null | null | null | defmodule Lana.Endpoint do
use Phoenix.Endpoint, otp_app: :lana
socket "/socket", Lana.UserSocket,
websocket: true
# 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 Pl... | 27.836066 | 95 | 0.70318 |
d554ca4c4847fb34bdaac6950fdcdc7e32161b35 | 3,107 | exs | Elixir | test/protobuf/decode/decode_type_test.exs | Virviil/protobuf-elixir | 242be798448e0464b87280df9f8fabffd2b0523d | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | test/protobuf/decode/decode_type_test.exs | Virviil/protobuf-elixir | 242be798448e0464b87280df9f8fabffd2b0523d | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | test/protobuf/decode/decode_type_test.exs | Virviil/protobuf-elixir | 242be798448e0464b87280df9f8fabffd2b0523d | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defmodule Protobuf.Decoder.DecodeTypeTest do
use ExUnit.Case, async: true
require Logger
import Protobuf.Decoder
def decode_type(type, val) do
decode_type_m(type, :fake_key, val)
end
test "decode_type/2 varint" do
assert 42 == decode_type(:int32, 42)
end
test "decode_type/2 int64" do
ass... | 29.875 | 93 | 0.658191 |
d554e7ebb75a88203312c2664e67276680a3bb91 | 1,930 | exs | Elixir | ros/ros_ui_admin/config/dev.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_admin/config/dev.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_admin/config/dev.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :ros_ui_admin, Ros.AdminWeb.Endpoint,
http: [por... | 28.382353 | 68 | 0.687047 |
d554f1208dbc596a575ebae4dfafa4299e2d587d | 141 | ex | Elixir | lib/web/controllers/page_controller.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/controllers/page_controller.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/controllers/page_controller.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.PageController do
use Librecov.Web, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.625 | 36 | 0.730496 |
d5553bbf9f3f434fbb4122de0e025a5f68a53d73 | 5,351 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/model/data_source.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/data_source.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/data_source.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... | 81.075758 | 1,640 | 0.770136 |
d555408e216ad24c84cfc32ef50d4931e2b54a14 | 10,606 | ex | Elixir | lib/phoenix_live_view/static.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | 1 | 2022-03-13T23:01:55.000Z | 2022-03-13T23:01:55.000Z | lib/phoenix_live_view/static.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/static.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | 1 | 2021-11-20T01:11:28.000Z | 2021-11-20T01:11:28.000Z | defmodule Phoenix.LiveView.Static do
# Holds the logic for static rendering.
@moduledoc false
alias Phoenix.LiveView.{Socket, Utils, Diff, Route, Lifecycle}
# Token version. Should be changed whenever new data is stored.
@token_vsn 5
def token_vsn, do: @token_vsn
# Max session age in seconds. Equivale... | 29.625698 | 99 | 0.637564 |
d5554cc0bea401a029cb834222f0218301e3804e | 569 | exs | Elixir | test/lib/code_corps/model/stripe_external_account_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/model/stripe_external_account_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/model/stripe_external_account_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.StripeExternalAccountTest do
use CodeCorps.ModelCase
alias CodeCorps.StripeExternalAccount
@valid_attrs %{account_id_from_stripe: "some content", id_from_stripe: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = StripeExternalAccount.changeset(... | 29.947368 | 89 | 0.783831 |
d55600ce81f976802a672760f9b22e0306653dac | 785 | ex | Elixir | apps/core/lib/core/persons/search.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/persons/search.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/persons/search.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Persons.Search do
@moduledoc false
use Ecto.Schema
use Timex
import Ecto.Changeset
alias EView.Changeset.Validators.PhoneNumber
@fields_required ~w(first_name last_name birth_date)a
@fields_optional ~w(second_name tax_id unzr phone_number birth_certificate)a
schema "persons" do
fie... | 26.166667 | 78 | 0.726115 |
d5560262a193fe2bdabacbd86ca969e13d0bc9b2 | 1,439 | exs | Elixir | test/jsondb_test.exs | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | test/jsondb_test.exs | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | test/jsondb_test.exs | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnectorTest.JsonDBTest do
use ExUnit.Case
alias TwitchDiscordConnector.JsonDB
@path "testing.json"
defp read_file do
File.read!(@path)
|> Poison.decode!()
end
test "basic set" do
JsonDB.set("test", 1)
assert JsonDB.get("test") == 1
assert Map.get(read_file(),... | 25.245614 | 64 | 0.576095 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.