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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03fdbe606f77293d9c976222fe13693b899b576e | 7,118 | ex | Elixir | day24/lib/day24.ex | the-shank/advent-of-code-2018 | 3be3958adad61e62e8a7ea6ec6a868f049c7a7e4 | [
"Apache-2.0"
] | 7 | 2018-12-12T01:08:24.000Z | 2019-12-09T19:50:36.000Z | day24/lib/day24.ex | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | day24/lib/day24.ex | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | defmodule Day24 do
def part1(lines, boost \\ 0) do
groups = parse(lines)
groups = boost(groups, boost)
cycle(groups)
end
def part2(lines) do
groups = parse(lines)
Stream.iterate(1, &(&1 + 1))
|> Enum.reduce_while(nil, fn boost, _acc ->
boosted_groups = boost(groups, boost)
ca... | 26.362963 | 87 | 0.570806 |
03fded0e257d03870b2a2b0f85f728c6a6e4ffd1 | 1,714 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_deal_ids_deal_statuses.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_deal_ids_deal_statuses.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_deal_ids_deal_statuses.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... | 32.339623 | 95 | 0.716453 |
03fe57b413e08903b3e177f216866fdbb7e758db | 1,899 | ex | Elixir | farmbot_core/lib/farmbot_core/ecto_migrator.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/lib/farmbot_core/ecto_migrator.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/ecto_migrator.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.EctoMigrator do
def child_spec(_opts) do
%{
id: __MODULE__,
start: {__MODULE__, :migrate, []},
type: :worker,
restart: :transient,
shutdown: 500
}
end
@doc "Replacement for Mix.Tasks.Ecto.Migrate"
def migrate do
repos = Application.get_env(:farmbo... | 25.662162 | 104 | 0.659821 |
03fe77f4ab87d5bae0102b3cfd7470616f0c5866 | 4,153 | ex | Elixir | lib/pbkdf2/base.ex | smt116/pbkdf2_elixir | 9d654afeb44b994c955c884b79b569815524a978 | [
"BSD-3-Clause"
] | 47 | 2017-07-11T03:38:16.000Z | 2022-03-14T19:44:20.000Z | lib/pbkdf2/base.ex | smt116/pbkdf2_elixir | 9d654afeb44b994c955c884b79b569815524a978 | [
"BSD-3-Clause"
] | 17 | 2017-08-30T03:29:19.000Z | 2022-03-24T16:51:30.000Z | lib/pbkdf2/base.ex | smt116/pbkdf2_elixir | 9d654afeb44b994c955c884b79b569815524a978 | [
"BSD-3-Clause"
] | 11 | 2017-12-20T00:15:50.000Z | 2021-12-25T03:08:55.000Z | defmodule Pbkdf2.Base do
@moduledoc """
Base module for the Pbkdf2 password hashing library.
"""
use Bitwise
alias Pbkdf2.{Base64, Tools}
@max_length bsl(1, 32) - 1
@deprecated "Use Pbkdf2.gen_salt/1 (with `format: :django`) instead"
def django_salt(len) do
Tools.get_random_string(len)
end
@... | 30.313869 | 89 | 0.642668 |
03fe9dd6fb6112a0c18d71f3550fb58d8e60a439 | 238 | exs | Elixir | priv/repo/migrations/20220505014509_user_loaded_player_state.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | priv/repo/migrations/20220505014509_user_loaded_player_state.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | priv/repo/migrations/20220505014509_user_loaded_player_state.exs | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Repo.Migrations.UserLoadedPlayerState do
use Ecto.Migration
def change do
alter table(:users) do
add :loaded_player_state_id, references(:player_states, on_delete: :delete_all), null: true
end
end
end
| 23.8 | 97 | 0.752101 |
03feb66d950f549966a019163b5f8f07b381a676 | 6,484 | exs | Elixir | spec/invokers/http_invoker_spec.exs | raisebook/qbot | 15ef5b00bf6b39c99e3bb728fa78093bc55ca342 | [
"MIT"
] | 3 | 2017-10-13T03:49:18.000Z | 2018-09-02T21:57:17.000Z | spec/invokers/http_invoker_spec.exs | raisebook/qbot | 15ef5b00bf6b39c99e3bb728fa78093bc55ca342 | [
"MIT"
] | 2 | 2017-05-02T07:35:27.000Z | 2017-06-14T02:27:41.000Z | spec/invokers/http_invoker_spec.exs | raisebook/qbot | 15ef5b00bf6b39c99e3bb728fa78093bc55ca342 | [
"MIT"
] | null | null | null | defmodule QBot.Invoker.HttpSpec do
use ESpec, async: false
alias SqsService.Message
alias QBot.QueueConfig
alias QBot.Invoker.Http
require Logger
describe "HttpInvoker" do
# SQS Service delivers the body with string keys
let(payload: %{"some" => "data", "wrapped" => "here"})
let(
messa... | 32.258706 | 118 | 0.563078 |
03febe62dac1f4deb19c0004c2e46559e719cd82 | 1,588 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_download_parameters.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_download_parameters.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_download_parameters.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 ... | 31.76 | 91 | 0.736146 |
03fee26ab03933c9afb2006bc2c115eaaf84890f | 3,431 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.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... | 41.841463 | 179 | 0.693092 |
03ff02c2bc5a12bd7386979d8f91de90d5b89e8d | 188 | ex | Elixir | lib/surface_bulma/dropdown/menu.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | null | null | null | lib/surface_bulma/dropdown/menu.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | null | null | null | lib/surface_bulma/dropdown/menu.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | null | null | null | defmodule SurfaceBulma.Dropdown.Menu do
use Surface.Component
@moduledoc """
Container for the dropdown menu items
"""
def render(assigns) do
~F"""
"""
end
end
| 12.533333 | 39 | 0.638298 |
03ff0f44c8414c63fff18bdae23359b10234b02c | 1,625 | ex | Elixir | lib/quick_polls/web/endpoint.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | lib/quick_polls/web/endpoint.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | 6 | 2017-04-10T05:01:04.000Z | 2017-04-21T06:02:03.000Z | lib/quick_polls/web/endpoint.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | defmodule QuickPolls.Web.Endpoint do
use Phoenix.Endpoint, otp_app: :quick_polls
socket "/socket", QuickPolls.Web.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.
p... | 29.545455 | 93 | 0.72 |
03ff541e1ac483c31e376e8a038b2e04e9df463a | 7,895 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 44.857955 | 304 | 0.713996 |
03ff742344ece2179585cec5b56f49b52c80c8a7 | 539 | ex | Elixir | lib/nomad_client/model/join_response.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/join_response.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/join_response.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Model.JoinResponse do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:error,
:num_joined
]
@type t :: %__M... | 19.962963 | 91 | 0.654917 |
03ffe35a0f793cf15ead63b9cb98594617d831ee | 22,118 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/creative_field_values.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/creative_field_values.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/creative_field_values.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... | 42.698842 | 196 | 0.609458 |
03ffe5d71ffa82f6904a7839f9789315a6ebea00 | 19,637 | ex | Elixir | deps/earmark/lib/earmark/block.ex | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | deps/earmark/lib/earmark/block.ex | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | deps/earmark/lib/earmark/block.ex | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | defmodule Earmark.Block do
use Earmark.Types
import Earmark.Helpers, only: [emit_error: 4]
import Earmark.Helpers.LookaheadHelpers, only: [opens_inline_code: 1, still_inline_code: 2, read_list_lines: 2]
import Earmark.Helpers.LineHelpers
import Earmark.Helpers.AttrParser
@moduledoc """
Given a list of _... | 34.33042 | 173 | 0.587157 |
ff000e8b3e99c85815c33f677b0afa8e357e52db | 588 | exs | Elixir | test/views/error_view_test.exs | mapmeld/superfund-me | 8bd1aeb78504e6ae068cf57dbefca05bebbb2b07 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | mapmeld/superfund-me | 8bd1aeb78504e6ae068cf57dbefca05bebbb2b07 | [
"MIT"
] | 3 | 2016-09-09T21:09:17.000Z | 2017-09-13T17:55:20.000Z | test/views/error_view_test.exs | Georeactor/superfund-me | 8bd1aeb78504e6ae068cf57dbefca05bebbb2b07 | [
"MIT"
] | null | null | null | defmodule Superfundme.ErrorViewTest do
use Superfundme.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Superfundme.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 5... | 26.727273 | 69 | 0.687075 |
ff001df53734e9d17916e4b44ae5f028934bbb59 | 24,970 | ex | Elixir | lib/mix/lib/mix/release.ex | timsly/elixir | a256c5578e015c0a78e801dfe536764aa0ba87c6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/release.ex | timsly/elixir | a256c5578e015c0a78e801dfe536764aa0ba87c6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/release.ex | timsly/elixir | a256c5578e015c0a78e801dfe536764aa0ba87c6 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Release do
@moduledoc """
Defines the release structure and convenience for assembling releases.
"""
@doc """
The Mix.Release struct has the following read-only fields:
* `:name` - the name of the release as an atom
* `:version` - the version of the release as a string or
`{:fro... | 31.251564 | 104 | 0.621706 |
ff0056abf9038c39dfb7ba6a2e0f9889c2943d51 | 4,205 | exs | Elixir | test/chopperbot/split/message_builder/line_message_builder_test.exs | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 5 | 2019-12-14T03:12:28.000Z | 2020-03-04T12:58:44.000Z | test/chopperbot/split/message_builder/line_message_builder_test.exs | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 12 | 2020-01-07T09:31:33.000Z | 2020-03-27T06:11:21.000Z | test/chopperbot/split/message_builder/line_message_builder_test.exs | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 1 | 2020-01-09T10:35:37.000Z | 2020-01-09T10:35:37.000Z | defmodule Chopperbot.Split.LineMessageBuilderTest do
use ExUnit.Case, async: true
alias Chopperbot.Split.{CalculatedOrdersResult, LineMessageBuilder}
describe "build_ok_message/1" do
test "builds a Line flex message from the given orders" do
calculated_orders_result = %CalculatedOrdersResult{
... | 35.041667 | 76 | 0.274435 |
ff006f3c917fb066b70911d288da4ed067e2ff2a | 62 | ex | Elixir | 03-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 03-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 03-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | IO.inspect(list1 = [3, 2, 1])
IO.inspect(list2 = [4 | list1])
| 20.666667 | 31 | 0.596774 |
ff00926cf76032448d5decf12f2d759703592841 | 1,918 | exs | Elixir | mix.exs | szTheory/expool | b753e215ddbeac7bfb35f38ee1c89bfb0efd3959 | [
"MIT"
] | 7 | 2017-08-08T13:17:19.000Z | 2020-10-11T06:27:14.000Z | mix.exs | szTheory/expool | b753e215ddbeac7bfb35f38ee1c89bfb0efd3959 | [
"MIT"
] | null | null | null | mix.exs | szTheory/expool | b753e215ddbeac7bfb35f38ee1c89bfb0efd3959 | [
"MIT"
] | 1 | 2020-03-03T19:53:59.000Z | 2020-03-03T19:53:59.000Z | defmodule ExPool.Mixfile do
use Mix.Project
@url_docs "http://hexdocs.pm/expool"
@url_github "https://github.com/zackehh/expool"
def project do
[
app: :expool,
name: "Expool",
description: "Simple process pooling and task submission",
package: %{
files: [
"lib",
... | 25.236842 | 77 | 0.518248 |
ff012581b3a451d66e855562332ee09f3b1f5026 | 1,113 | exs | Elixir | test/integration/env_test.exs | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 349 | 2019-10-02T07:21:17.000Z | 2022-03-21T17:50:06.000Z | test/integration/env_test.exs | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 223 | 2019-10-05T05:36:08.000Z | 2022-03-31T23:12:02.000Z | test/integration/env_test.exs | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 20 | 2019-10-08T16:29:39.000Z | 2022-03-31T15:07:20.000Z | defmodule ZiglerTest.Integration.EnvTest do
# tests to make sure that we can include beam.env terms in the nif
# definition and have them compile correctly.
use ExUnit.Case, async: true
use Zig
~Z"""
/// nif: zeroarity_with_env/0
fn zeroarity_with_env(env: beam.env) i64 {
return 47;
}
/// nif:... | 22.26 | 83 | 0.68823 |
ff0134b5a8f22674f12bd4324392c4d9c6c1820d | 1,241 | exs | Elixir | apps/estuary/test/unit/data_writer_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | apps/estuary/test/unit/data_writer_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | 1 | 2020-01-09T21:00:10.000Z | 2020-01-09T21:00:10.000Z | apps/estuary/test/unit/data_writer_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule Estuary.DataWriterTest do
use ExUnit.Case
import Mox
alias Estuary.Datasets.DatasetSchema
alias Estuary.DataWriter
alias SmartCity.TestDataGenerator, as: TDG
setup :set_mox_global
setup :verify_on_exit!
test "should insert event to history table" do
test = self()
expect(MockTable, ... | 20.683333 | 53 | 0.580983 |
ff013d49c2df6afe455c83e3ddb54ef98e0ebc02 | 2,747 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_column_schema.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_column_schema.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_column_schema.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... | 37.630137 | 238 | 0.706225 |
ff014baea3cb78cdc7d31123c46d991370ff3777 | 9,433 | exs | Elixir | apps/socket/test/grapevine_socket/handler/players_test.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/socket/test/grapevine_socket/handler/players_test.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/socket/test/grapevine_socket/handler/players_test.exs | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineSocket.Handler.PlayersTest do
use GrapevineSocket.DataCase
alias GrapevineSocket.Presence
alias GrapevineSocket.Web.Router
alias GrapevineSocket.Web.State
describe "player status" do
setup [:basic_setup]
test "new sign in", %{state: state} do
state = %{state | supports: ["c... | 28.847095 | 96 | 0.542669 |
ff015e37c52932b49dbd532c2fd70047c0058e06 | 1,166 | exs | Elixir | mix.exs | rockwood/exbee | 99e7b17a0eb37495d75e9d7f8ba56f3f3acf87e8 | [
"Apache-2.0"
] | 6 | 2017-06-18T14:29:59.000Z | 2019-07-28T15:47:02.000Z | mix.exs | rockwood/exbee | 99e7b17a0eb37495d75e9d7f8ba56f3f3acf87e8 | [
"Apache-2.0"
] | 3 | 2018-01-28T22:00:06.000Z | 2019-10-14T11:14:47.000Z | mix.exs | rockwood/exbee | 99e7b17a0eb37495d75e9d7f8ba56f3f3acf87e8 | [
"Apache-2.0"
] | 4 | 2016-09-22T02:50:34.000Z | 2019-10-14T07:43:38.000Z | defmodule Exbee.Mixfile do
use Mix.Project
def project do
[
app: :exbee,
description: "Communicate with XBee wireless radios in Elixir",
version: "0.0.5",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mi... | 22.862745 | 69 | 0.551458 |
ff017057c447153603bfebe171a28bf9303274dc | 8,203 | ex | Elixir | lib/hex/utils.ex | davydog187/hex | c12ebc3b751ecb900d1dc85aad7f5a12f309152a | [
"Apache-2.0"
] | null | null | null | lib/hex/utils.ex | davydog187/hex | c12ebc3b751ecb900d1dc85aad7f5a12f309152a | [
"Apache-2.0"
] | null | null | null | lib/hex/utils.ex | davydog187/hex | c12ebc3b751ecb900d1dc85aad7f5a12f309152a | [
"Apache-2.0"
] | null | null | null | defmodule Hex.Utils do
@moduledoc false
def safe_deserialize_erlang("") do
nil
end
def safe_deserialize_erlang(binary) do
case safe_binary_to_term(binary) do
{:ok, term} ->
term
:error ->
Mix.raise("Received malformed erlang from Hex API")
end
rescue
ArgumentErro... | 25.317901 | 121 | 0.643179 |
ff018eb541d66783b590dce23ab5c70c90d20e8e | 61 | ex | Elixir | backend/lib/bucoliq_web/views/page_view.ex | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | null | null | null | backend/lib/bucoliq_web/views/page_view.ex | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | 9 | 2019-12-01T18:31:31.000Z | 2021-03-10T00:38:48.000Z | backend/lib/bucoliq_web/views/page_view.ex | antogon/bucoliq | 0fe4727c4312322862d30014bdfae2530cc49de1 | [
"MIT"
] | null | null | null | defmodule BucoliqWeb.PageView do
use BucoliqWeb, :view
end
| 15.25 | 32 | 0.803279 |
ff0195c6b7388fd89b1183660f6b0b350c6bd0a4 | 3,633 | ex | Elixir | lib/vutuv_web/controllers/password_reset_controller.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | lib/vutuv_web/controllers/password_reset_controller.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | lib/vutuv_web/controllers/password_reset_controller.ex | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule VutuvWeb.PasswordResetController do
use VutuvWeb, :controller
alias Vutuv.{Accounts, UserProfiles}
alias VutuvWeb.{Auth.Otp, Email}
plug VutuvWeb.RateLimiter, [type: :password_reset] when action in [:create]
def new_request(conn, _params) do
render(conn, "new_request.html")
end
def creat... | 33.027273 | 93 | 0.678778 |
ff01972e4fdbf98f8acae990dd1b231542f9e375 | 1,371 | ex | Elixir | apps/site/test/support/conn_case.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/support/conn_case.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/support/conn_case.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the da... | 23.637931 | 56 | 0.651349 |
ff01b6bddb878a38c815de0c0f54ccf3740fb8b0 | 121 | exs | Elixir | test/test_helper.exs | jschoch/jsonstruct | 015106e4d17daa028ec97d55ebc987fee7628a85 | [
"MIT"
] | 3 | 2017-01-15T03:27:31.000Z | 2018-03-06T17:07:06.000Z | test/test_helper.exs | jschoch/jsonstruct | 015106e4d17daa028ec97d55ebc987fee7628a85 | [
"MIT"
] | null | null | null | test/test_helper.exs | jschoch/jsonstruct | 015106e4d17daa028ec97d55ebc987fee7628a85 | [
"MIT"
] | null | null | null | ExUnit.start()
defmodule JsstND do
defstruct outer1: %{innerK1: nil,innerK2: nil},outer2: nil
use ExConstructor
end
| 17.285714 | 60 | 0.752066 |
ff01c23542d9a70d2dd2c1af7a81ef8476682e55 | 914 | ex | Elixir | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.851852 | 74 | 0.766958 |
ff01ddf0a7af6ac197ac7c503fbdc59713254ca8 | 3,042 | ex | Elixir | lib/teiserver/chat/libs/room_message_lib.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/chat/libs/room_message_lib.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | null | null | null | lib/teiserver/chat/libs/room_message_lib.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Teiserver.Chat.RoomMessageLib do
use CentralWeb, :library
alias Teiserver.Chat.RoomMessage
# Functions
@spec icon :: String.t()
def icon, do: "far fa-???"
@spec colours :: {String.t(), String.t(), String.t()}
def colours, do: Central.Helpers.StylingHelper.colours(:default)
@spec make_favouri... | 26.684211 | 72 | 0.647272 |
ff02151ef26126d053d0be9053c8d4e673f538fa | 597 | ex | Elixir | lib/slacker/web_api.ex | michaelherold/slacker | 11b4444af38f828256b3fd2018b2f95dcb4d450d | [
"MIT"
] | 94 | 2015-05-20T22:50:09.000Z | 2021-01-22T23:49:17.000Z | lib/slacker/web_api.ex | michaelherold/slacker | 11b4444af38f828256b3fd2018b2f95dcb4d450d | [
"MIT"
] | 5 | 2015-11-06T03:29:35.000Z | 2016-06-27T18:58:25.000Z | lib/slacker/web_api.ex | michaelherold/slacker | 11b4444af38f828256b3fd2018b2f95dcb4d450d | [
"MIT"
] | 22 | 2015-10-08T01:23:02.000Z | 2017-11-07T00:33:29.000Z | defmodule Slacker.WebAPI do
use HTTPoison.Base
@url_base Application.get_env(:slacker, :url_base) || "https://slack.com/api/"
def post(path, body) do
path
|> super(body)
|> check_response
end
defp process_url(path) do
@url_base <> path
end
defp process_response_body(body) do
body
... | 22.111111 | 82 | 0.634841 |
ff023fe2521b47b1bf28ee646e3b97aeaafd35f5 | 1,756 | exs | Elixir | graphical/mix.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/mix.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/mix.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule Graphical.Mixfile do
use Mix.Project
def project do
[
app: :graphical,
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(),
de... | 26.208955 | 79 | 0.559795 |
ff025568a4ed60ab7118e3649ef20a822a09545e | 3,362 | ex | Elixir | lib/central/account/libs/auth_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/account/libs/auth_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/account/libs/auth_lib.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | defmodule Central.Account.AuthLib do
require Logger
alias Central.Account.AuthGroups.Server
@spec icon :: String.t()
def icon(), do: "far fa-address-card"
@spec get_all_permission_sets() :: Map.t()
def get_all_permission_sets do
Server.get_all()
end
@spec get_all_permissions() :: [String.t()]
... | 27.112903 | 122 | 0.644557 |
ff0294d432b079623961697aec1633974c24ee57 | 10,603 | exs | Elixir | test/set_locale_test.exs | VinogradovAlexandr/set_locale | 2b02ffb14707f63344d8c5548a61a443b7cf7298 | [
"WTFPL"
] | null | null | null | test/set_locale_test.exs | VinogradovAlexandr/set_locale | 2b02ffb14707f63344d8c5548a61a443b7cf7298 | [
"WTFPL"
] | null | null | null | test/set_locale_test.exs | VinogradovAlexandr/set_locale | 2b02ffb14707f63344d8c5548a61a443b7cf7298 | [
"WTFPL"
] | null | null | null | defmodule SetLocaleTest do
use ExUnit.Case
doctest SetLocale
use Phoenix.ConnTest
defmodule MyGettext do
use Gettext, otp_app: :set_locale
end
@cookie_key "locale"
@default_options %SetLocale.Config{gettext: MyGettext, default_locale: "en-gb"}
@default_options_with_cookie %SetLocale.C... | 39.563433 | 124 | 0.620202 |
ff02fabf0d5d96efc74966ae5d4768787de913cc | 1,754 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/column_base_column.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/column_base_column.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/column_base_column.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.392157 | 120 | 0.740593 |
ff0314354c058ecf563392fc23e1f94be3523e9f | 2,218 | exs | Elixir | config/prod.exs | masato25/open_lambda | b8b51371126dc59539a71c80d7f81b08408c7ae1 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | masato25/open_lambda | b8b51371126dc59539a71c80d7f81b08408c7ae1 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | masato25/open_lambda | b8b51371126dc59539a71c80d7f81b08408c7ae1 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.606061 | 67 | 0.718665 |
ff0316bbe51347a92abcdd53a6353c7c31de1248 | 4,599 | ex | Elixir | lib/livebook_web/live/session_live/input_cell_settings_component.ex | FE-box/livebook | 44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/input_cell_settings_component.ex | FE-box/livebook | 44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/input_cell_settings_component.ex | FE-box/livebook | 44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.InputCellSettingsComponent do
use LivebookWeb, :live_component
alias Livebook.Session
alias Livebook.Notebook.Cell
@impl true
def update(assigns, socket) do
cell = assigns.cell
socket =
socket
|> assign(assigns)
|> assign(:current_type, cell.type)... | 28.74375 | 96 | 0.584257 |
ff033c8a1d225b7070f4655b0526aaa720cf57e4 | 1,999 | ex | Elixir | lib/honeydew/please/projectors/list.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | lib/honeydew/please/projectors/list.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | lib/honeydew/please/projectors/list.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | defmodule Honeydew.Please.Projectors.List do
@moduledoc """
Projector for List read model.
"""
use Commanded.Projections.Ecto,
application: Honeydew.App,
name: "please_list_projection",
repo: Honeydew.Repo
alias Honeydew.Please.Events.{
ListMade,
ListCompleted,
ListDiscarded,
List... | 21.042105 | 76 | 0.629315 |
ff035606292640972be01c408d6105a7f3411d5d | 5,007 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/presentation.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/presentation.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/presentation.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... | 70.521127 | 849 | 0.728181 |
ff03a6e26b833bac3f2792d4724cedf1f14fc96c | 1,266 | exs | Elixir | redis_cache/config/config.exs | cabol/nebulex_examples | 21bd2673eecfc0b5c7a2807a3a47488d99a7d725 | [
"MIT"
] | 25 | 2017-07-30T01:27:54.000Z | 2021-12-10T16:41:03.000Z | redis_cache/config/config.exs | cabol/nebulex_examples | 21bd2673eecfc0b5c7a2807a3a47488d99a7d725 | [
"MIT"
] | 2 | 2019-11-12T09:41:26.000Z | 2021-11-08T13:51:24.000Z | redis_cache/config/config.exs | cabol/nebulex_examples | 21bd2673eecfc0b5c7a2807a3a47488d99a7d725 | [
"MIT"
] | 1 | 2019-01-08T19:06:54.000Z | 2019-01-08T19:06:54.000Z | import Config
# Redis Standalone
config :redis_cache, RedisCache.Standalone,
conn_opts: [
host: "127.0.0.1",
port: 6379
]
# Redis in client-cluster mode
config :redis_cache, RedisCache.ClientCluster,
mode: :client_side_cluster,
nodes: [
node1: [
conn_opts: [
host: "127.0.0.1",
... | 18.085714 | 62 | 0.541864 |
ff03b887e52cb1d86598f8fca4b4d0babb62f869 | 1,844 | ex | Elixir | api_server/test/support/model_case.ex | Spippolo/wheredafuckRU | 4ff399532ab4847a390bfb0ce193ec5732c04595 | [
"MIT"
] | null | null | null | api_server/test/support/model_case.ex | Spippolo/wheredafuckRU | 4ff399532ab4847a390bfb0ce193ec5732c04595 | [
"MIT"
] | null | null | null | api_server/test/support/model_case.ex | Spippolo/wheredafuckRU | 4ff399532ab4847a390bfb0ce193ec5732c04595 | [
"MIT"
] | null | null | null | defmodule WheredafuckruApi.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be as... | 27.939394 | 87 | 0.694143 |
ff03d3c4681e05e4ac11e2b43273caf6c159bd7d | 294 | ex | Elixir | lib/cardigan/random.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 2 | 2020-05-05T06:07:16.000Z | 2020-05-09T02:12:32.000Z | lib/cardigan/random.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 21 | 2020-05-05T16:06:57.000Z | 2020-07-07T17:25:46.000Z | lib/cardigan/random.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | null | null | null | defmodule Cardigan.Random do
def id(size) do
alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numbers = "0123456789"
vals = (alphabets <> String.downcase(alphabets) <> numbers) |> String.split("")
1..size
|> Enum.map(fn _ -> Enum.random(vals) end)
|> Enum.join("")
end
end
| 24.5 | 83 | 0.639456 |
ff03d8e31942a1c4e09ddd3369e4da5c892d0811 | 1,938 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_client_users_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_client_users_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_client_users_response.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... | 38 | 258 | 0.759546 |
ff04021294ce9c75b9b6056fbe246a840feb0144 | 1,267 | exs | Elixir | test/cog/chat/slack/templates/embedded/permission_revoke_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/slack/templates/embedded/permission_revoke_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/slack/templates/embedded/permission_revoke_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.Slack.Templates.Embedded.PermissionRevokeTest do
use Cog.TemplateCase
test "permission-revoke template" do
data = %{"results" => [%{"permission" => %{"bundle" => "site",
"name" => "foo"},
"role" => %{"name" => "ops"}... | 40.870968 | 84 | 0.501973 |
ff040505b5acd9759d8c9b32ec3fdcd49bd20c39 | 42,924 | ex | Elixir | lib/ash/filter/filter.ex | doawoo/ash | 9d59ae5611785bbd2668b0865c743116633afac1 | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | doawoo/ash | 9d59ae5611785bbd2668b0865c743116633afac1 | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | doawoo/ash | 9d59ae5611785bbd2668b0865c743116633afac1 | [
"MIT"
] | null | null | null | defmodule Ash.Filter do
alias Ash.Actions.SideLoad
alias Ash.Engine.Request
alias Ash.Error.Query.{
AggregatesNotSupported,
InvalidFilterValue,
NoSuchAttributeOrRelationship,
NoSuchFilterPredicate,
ReadActionRequired
}
alias Ash.Query.Function.IsNil
alias Ash.Query.Operator.{
Eq,
... | 30.616262 | 132 | 0.620003 |
ff04073db2201e871a1015c83322064e1f900ab3 | 830 | ex | Elixir | lib/watcher/supervisor.ex | jtmoulia/spawndir | e1d34ff57a4de211cdf798e64a16205c5b9487d0 | [
"BSD-3-Clause"
] | 1 | 2015-06-16T20:06:22.000Z | 2015-06-16T20:06:22.000Z | lib/watcher/supervisor.ex | jtmoulia/spawndir | e1d34ff57a4de211cdf798e64a16205c5b9487d0 | [
"BSD-3-Clause"
] | null | null | null | lib/watcher/supervisor.ex | jtmoulia/spawndir | e1d34ff57a4de211cdf798e64a16205c5b9487d0 | [
"BSD-3-Clause"
] | null | null | null | defmodule Watcher.Supervisor do
use Supervisor
## Public interface
def add!(cmd, opts \\ [], watcher_supervisor \\ __MODULE__) do
case _add(watcher_supervisor, cmd, opts) do
{:error, error} -> raise "Was unable to properly start the watcher supervisor: #{inspect(error)}"
{:ok, pid} -> pid
end... | 23.714286 | 103 | 0.668675 |
ff043aec3caae937d0c7727f022da2fae5725a53 | 1,658 | ex | Elixir | web/web.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | web/web.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | web/web.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | defmodule PhoenixBase.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use PhoenixBase.Web, :controller
use PhoenixBase.Web, :view
The definitions below will be executed for every view,
controller, etc, so k... | 20.219512 | 88 | 0.67491 |
ff047461a648344ea7caf7e0df6eb0d7d1029814 | 861 | ex | Elixir | web/models/job.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | 1 | 2020-02-09T03:03:04.000Z | 2020-02-09T03:03:04.000Z | web/models/job.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | web/models/job.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | defmodule Soroban.Job do
@moduledoc """
Soroban.Job model
"""
use Soroban.Web, :model
alias Money
schema "jobs" do
field :date, :date
field :reference, :string
field :caller, :string
field :type, :string
field :description, :string
field :zone, :string
field :service, :string
fi... | 23.27027 | 133 | 0.651568 |
ff048a593e0b87cb3f8e5224104731ff437a1229 | 710 | exs | Elixir | day16/test/day16_test.exs | the-shank/advent-of-code-2018 | 3be3958adad61e62e8a7ea6ec6a868f049c7a7e4 | [
"Apache-2.0"
] | 7 | 2018-12-12T01:08:24.000Z | 2019-12-09T19:50:36.000Z | day16/test/day16_test.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | day16/test/day16_test.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | defmodule Day16Test do
use ExUnit.Case
doctest Machine
test "part one example" do
assert Day16.part1(example_part1()) == 1
end
test "part one real data" do
assert Day16.part1(input_part1()) == 677
end
test "part two real data" do
assert Day16.part2(input_part1(), input_part2()) == 540
end... | 16.904762 | 59 | 0.595775 |
ff04aba77e7b25c296ec47812a9b1f1e39246593 | 1,835 | ex | Elixir | deps/makeup_elixir/lib/makeup/lexers/elixir_lexer/helper.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/makeup_elixir/lib/makeup/lexers/elixir_lexer/helper.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/makeup_elixir/lib/makeup/lexers/elixir_lexer/helper.ex | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Makeup.Lexers.ElixirLexer.Helper do
@moduledoc false
import NimbleParsec
alias Makeup.Lexer.Combinators
def with_optional_separator(combinator, separator) when is_binary(separator) do
combinator |> repeat(string(separator) |> concat(combinator))
end
# Allows escaping of the first character o... | 31.101695 | 84 | 0.619619 |
ff04be7f3fc378fe65d724bebfde25c116272669 | 874 | ex | Elixir | clients/chat/lib/google_api/chat/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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... | 32.37037 | 74 | 0.756293 |
ff04c86b4840fd39ddf0932ff5966977a0b6c53d | 2,027 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__entity.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__entity.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__entity.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.783333 | 111 | 0.724223 |
ff04ec46ad48a6289b8eb39e3ab2f40517e876b3 | 2,769 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_session_entity_type.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_v2_session_entity_type.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_session_entity_type.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 ... | 37.418919 | 199 | 0.739256 |
ff04ec704ea5d375ba4312292099d842f1bc20a9 | 2,076 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_nrqz_validation.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_nrqz_validation.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_nrqz_validation.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... | 35.186441 | 106 | 0.69605 |
ff05033f33f9027f99cca554c10100a3961b21ab | 1,301 | ex | Elixir | socket_gallows/lib/socket_gallows_web/endpoint.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | socket_gallows/lib/socket_gallows_web/endpoint.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | socket_gallows/lib/socket_gallows_web/endpoint.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | defmodule SocketGallowsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :socket_gallows
socket "/socket", SocketGallowsWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when d... | 27.680851 | 69 | 0.717909 |
ff051c43f27c7f63b2bdb2c8bcd19ba515b83a9d | 4,189 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/message.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/message.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/message.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.032967 | 181 | 0.693722 |
ff052be9e14c1658c9cc7f7eacc0de0233ea4e31 | 2,738 | ex | Elixir | lib/commissar/authorization.ex | binarypaladin/commissar | d0d0b54f059949481d95be13037957b62fe94cd7 | [
"MIT"
] | null | null | null | lib/commissar/authorization.ex | binarypaladin/commissar | d0d0b54f059949481d95be13037957b62fe94cd7 | [
"MIT"
] | null | null | null | lib/commissar/authorization.ex | binarypaladin/commissar | d0d0b54f059949481d95be13037957b62fe94cd7 | [
"MIT"
] | null | null | null | defmodule Commissar.Authorization do
@moduledoc """
Authorizers add a convenient way of laying out policies in a manner that makes
it easy to read. Defining policies in a module that uses
`Commissar.Authorizer` also adds a catch-all policy that returns `:continue`,
allowing your own policies to simply focus o... | 36.026316 | 89 | 0.677502 |
ff05349b3818cb5adfff4e655a2101c72ecc4e9b | 7,358 | ex | Elixir | lib/ex_rabbit_m_q/state.ex | StoiximanServices/exrabbitmq | 66b37555a5aa50a3b938c7bac2b8485df58f0639 | [
"MIT"
] | 14 | 2017-10-23T11:56:13.000Z | 2021-08-24T10:38:52.000Z | lib/ex_rabbit_m_q/state.ex | StoiximanServices/exrabbitmq | 66b37555a5aa50a3b938c7bac2b8485df58f0639 | [
"MIT"
] | 10 | 2017-09-18T15:32:10.000Z | 2020-03-20T07:25:47.000Z | lib/ex_rabbit_m_q/state.ex | StoiximanServices/exrabbitmq | 66b37555a5aa50a3b938c7bac2b8485df58f0639 | [
"MIT"
] | 7 | 2017-09-18T15:32:39.000Z | 2019-07-10T11:13:57.000Z | defmodule ExRabbitMQ.State do
@moduledoc """
Provides functions for saving or getting the state such as the configuration, connection and channel information of a
`ExRabbitMQ.Consumer` or `ExRabbitMQ.Producer` process in its process dictionary.
"""
@type connection_status :: :connected | :disconnected
@typ... | 34.383178 | 119 | 0.746942 |
ff05521257016d0137d3781d1e65232518ac853b | 783 | ex | Elixir | lib/couchdb_adapter/http/urls/server.ex | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | lib/couchdb_adapter/http/urls/server.ex | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | lib/couchdb_adapter/http/urls/server.ex | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | defmodule CouchDB.HTTP.Urls.Server do
import CouchDB.Environment
def info, do: "/"
def all_dbs, do: "/_all_dbs"
def active_tasks, do: "/_active_tasks"
def config, do: admin_path() <> "/_config"
def config(section), do: config() <> "/" <> section
def config(section, key), do: config(section) <> "/" ... | 18.642857 | 65 | 0.633461 |
ff05a1c2563b9425e73cb1932cf662753687ed35 | 83 | exs | Elixir | config/config.exs | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | config/config.exs | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | config/config.exs | Celeo/simple_irc_server | 090dfdff236c51216922733412339ef477fe43da | [
"MIT"
] | null | null | null | import Config
config :logger,
level: :info
import_config "#{config_env()}.exs"
| 11.857143 | 35 | 0.710843 |
ff05a52a35f03e0c955f066e4bd056f44b1b1cc4 | 599 | ex | Elixir | web/router.ex | tommcgurl/phoenix_elm_jukebox | de522b700f484e9b7f9f73a826695c0cf06472b5 | [
"MIT"
] | null | null | null | web/router.ex | tommcgurl/phoenix_elm_jukebox | de522b700f484e9b7f9f73a826695c0cf06472b5 | [
"MIT"
] | null | null | null | web/router.ex | tommcgurl/phoenix_elm_jukebox | de522b700f484e9b7f9f73a826695c0cf06472b5 | [
"MIT"
] | null | null | null | defmodule PhoenixElmJukebox.Router do
use PhoenixElmJukebox.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Phoen... | 20.655172 | 57 | 0.699499 |
ff05c69abed9c8b6f492f23f8b901d3a71741c27 | 522 | ex | Elixir | lib/brando/blueprint/villain/blocks/svg_block.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/blueprint/villain/blocks/svg_block.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/blueprint/villain/blocks/svg_block.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Blueprint.Villain.Blocks.SvgBlock do
defmodule Data do
use Brando.Blueprint,
application: "Brando",
domain: "Villain",
schema: "SvgBlockData",
singular: "svg_block_data",
plural: "svg_block_datas",
gettext_module: Brando.Gettext
@primary_key false
data... | 21.75 | 53 | 0.659004 |
ff05ebde2f6b31460040c52ad1e26b320d4d3272 | 5,401 | ex | Elixir | web/controllers/auth_controller.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | web/controllers/auth_controller.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | web/controllers/auth_controller.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | defmodule Artus.AuthController do
use Artus.Web, :controller
import Ecto.Query
alias Artus.{User, EventLogger}
alias Comeonin.Bcrypt
alias Artus.Auth.Guardian
@doc "Render login page"
def login(conn, _params) do
render conn, "login.html"
end
@doc "Logs user in"
def auth(conn, %{"mail" => mai... | 26.605911 | 88 | 0.598223 |
ff05ecf52987eda49d9aeb3718b7459d09a5a32a | 12,317 | ex | Elixir | apps/site/lib/site_web/controllers/customer_support_controller.ex | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/site/lib/site_web/controllers/customer_support_controller.ex | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/site/lib/site_web/controllers/customer_support_controller.ex | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | defmodule SiteWeb.CustomerSupportController do
@moduledoc "Handles the customer support page and form submissions."
use SiteWeb, :controller
alias Routes.Route
require Logger
@allowed_attachment_types ~w(image/bmp image/gif image/jpeg image/png image/tiff image/webp)
@content_blocks [
%{
header:... | 27.993182 | 110 | 0.630105 |
ff0641b821101ffb593237826f8e180a90e93d67 | 5,554 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/router.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/lib/nerves_hub_www_web/router.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/lib/nerves_hub_www_web/router.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWWWeb.Router do
use NervesHubWWWWeb, :router
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_flash)
plug(:fetch_live_flash)
plug(:put_root_layout, {NervesHubWWWWeb.LayoutView, :root})
plug(:protect_from_forgery)
plug(:put_secure_browser... | 30.021622 | 80 | 0.631797 |
ff06479a087734376b0f7386ef0e6e1445c711d7 | 197 | ex | Elixir | lib/hxl/ast/body.ex | drowzy/hcl | afb65a3fe4c86d90ba02ab8402d99019bb6509bc | [
"Apache-2.0"
] | 18 | 2021-09-28T23:15:46.000Z | 2021-12-21T15:04:40.000Z | lib/hxl/ast/body.ex | drowzy/hxl | afb65a3fe4c86d90ba02ab8402d99019bb6509bc | [
"Apache-2.0"
] | 4 | 2021-09-28T14:50:16.000Z | 2022-03-29T13:22:49.000Z | lib/hxl/ast/body.ex | drowzy/hcl | afb65a3fe4c86d90ba02ab8402d99019bb6509bc | [
"Apache-2.0"
] | null | null | null | defmodule HXL.Ast.Body do
@moduledoc false
defstruct [:statements]
@type statement :: HXL.Ast.Attr | HXL.Ast.Block
@type t :: %__MODULE__{
statements: [statement]
}
end
| 17.909091 | 49 | 0.634518 |
ff065432bfaa401f083f0308778ff244793bbbc1 | 2,712 | ex | Elixir | apps/telepath/lib/telepath/data/seedbox.ex | julien-leclercq/telepath | b73e47ae0fabb18ab565a8c015099b1ba948810c | [
"MIT"
] | 1 | 2019-10-30T19:38:12.000Z | 2019-10-30T19:38:12.000Z | apps/telepath/lib/telepath/data/seedbox.ex | julien-leclercq/telepath | b73e47ae0fabb18ab565a8c015099b1ba948810c | [
"MIT"
] | 3 | 2018-05-23T11:53:24.000Z | 2022-02-10T15:53:08.000Z | apps/telepath/lib/telepath/data/seedbox.ex | julien-leclercq/telepath | b73e47ae0fabb18ab565a8c015099b1ba948810c | [
"MIT"
] | null | null | null | defmodule Telepath.Data.Seedbox do
@moduledoc """
This module provides data structure and functions to manipulate seedboxes
"""
alias Ecto.Changeset
alias Kaur.Result
alias Telepath.Seedbox
alias Telepath.Seedbox.{Auth, Impl, Repository}
import Changeset
use Ecto.Schema
require Logger
@max_po... | 24.432432 | 80 | 0.6191 |
ff06870e125c3cd77212819bca9189a28e9fdb6f | 1,732 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_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... | 33.960784 | 134 | 0.732679 |
ff06a2326f42d5bb50ce93b5220a156ad74f6e8e | 1,999 | ex | Elixir | clients/content/lib/google_api/content/v21/model/account_business_information.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_business_information.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/account_business_information.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... | 37.716981 | 158 | 0.74037 |
ff06a5e9755d979bf4ec29980e40e44ff08ce4b0 | 715 | ex | Elixir | lib/survey_api_web/gettext.ex | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 6 | 2020-02-04T16:18:30.000Z | 2020-10-31T06:00:03.000Z | lib/survey_api_web/gettext.ex | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 114 | 2019-11-14T03:48:17.000Z | 2022-03-17T12:38:14.000Z | lib/survey_api_web/gettext.ex | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 1 | 2021-07-08T01:48:56.000Z | 2021-07-08T01:48:56.000Z | defmodule SurveyAPIWeb.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 SurveyAPIWeb.Gettext
# Simple translation
gettext "Here ... | 28.6 | 72 | 0.683916 |
ff06bb05e6c34183507e7b2f538af6365ac55011 | 925 | ex | Elixir | lib/vroom/vehicle/step.ex | wesleimp/vroom-elixir | 5c0bc5a8c9ce02f6415eb06a568f3310dfd8977d | [
"MIT"
] | 5 | 2021-04-14T15:02:59.000Z | 2021-04-28T19:18:00.000Z | lib/vroom/vehicle/step.ex | sleipnir/vroom-elixir | 3e4963aa796a7ce84f21ef89744f054c8c6a6c34 | [
"MIT"
] | 5 | 2021-04-13T22:03:29.000Z | 2021-05-12T12:47:41.000Z | lib/vroom/vehicle/step.ex | sleipnir/vroom-elixir | 3e4963aa796a7ce84f21ef89744f054c8c6a6c34 | [
"MIT"
] | 2 | 2021-04-14T16:39:35.000Z | 2021-04-28T19:17:53.000Z | defmodule VROOM.Vehicle.Step do
@moduledoc """
Defines a Vehicle Step object.
The Vehicle.Step struct has the following properties:
- `type`: a string (either start, job, pickup, delivery, break or end)
- `id`: id of the task to be performed at this step if type value is job, pickup, delivery or break;
- ... | 27.205882 | 102 | 0.64973 |
ff06e37e5a6bd76e8b69b98ab6fcd77a72c11d1a | 1,698 | ex | Elixir | coherence_demo_no_confirm/lib/coherence_demo_web/controllers/coherence/redirects.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_no_confirm/lib/coherence_demo_web/controllers/coherence/redirects.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_no_confirm/lib/coherence_demo_web/controllers/coherence/redirects.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | defmodule Coherence.Redirects do
@moduledoc """
Define controller action redirection functions.
This module contains default redirect functions for each of the controller
actions that perform redirects. By using this Module you get the following
functions:
* session_create/2
* session_delete/2
* passw... | 30.872727 | 88 | 0.743227 |
ff06f60059f56cb453a5fe9a4249618bb1a74455 | 3,759 | exs | Elixir | apps/bytepack/priv/repo/seeds.exs | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack/priv/repo/seeds.exs | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack/priv/repo/seeds.exs | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | Bytepack.Repo.query!("TRUNCATE TABLE users RESTART IDENTITY CASCADE")
Bytepack.Repo.query!("TRUNCATE TABLE orgs RESTART IDENTITY CASCADE")
unless Code.ensure_loaded?(Bytepack.AccountsFixtures) do
Code.require_file(Path.expand("../../test/support/fixtures/accounts_fixtures.ex", __DIR__))
end
unless Code.ensure_loade... | 30.811475 | 95 | 0.708433 |
ff071f3e623dde0d2246f66cdded1b0a842c0603 | 2,375 | exs | Elixir | test/elixir/test/local_docs_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/local_docs_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/local_docs_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | defmodule LocalDocsTest do
use CouchTestCase
@moduletag :local_docs
@moduledoc """
Test CouchDB _local_docs
"""
setup_all do
db_name = random_db_name()
{:ok, _} = create_db(db_name)
on_exit(fn -> delete_db(db_name) end)
resp1 = Couch.put(
"/#{db_name}/_local/foo",
body: %{
... | 21.396396 | 86 | 0.546105 |
ff07439327011794b84118c246aaabf199765abe | 7,044 | ex | Elixir | lib/brando/json_ld/schema.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/json_ld/schema.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/json_ld/schema.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.JSONLD.Schema do
@deprecated "Move to blueprints"
#! TODO: Delete when moving to Blueprints
@moduledoc """
Schema definitions for JSONLD schemas
"""
@doc false
defmacro __using__(_) do
quote do
import Brando.JSONLD.Schema, only: [json_ld_schema: 2]
Module.register_attribu... | 30.493506 | 100 | 0.611442 |
ff0748e53e7609757f3b07f6019ac23be64430b9 | 650 | ex | Elixir | scaffolds_actor_model/elixir/lib/actor_model/application.ex | lodykas/code_retreat | d22b3377fa655ef9064df7796c44a34b7dc33a58 | [
"MIT"
] | 7 | 2016-06-22T18:08:26.000Z | 2021-03-15T11:50:16.000Z | scaffolds_actor_model/elixir/lib/actor_model/application.ex | lodykas/code_retreat | d22b3377fa655ef9064df7796c44a34b7dc33a58 | [
"MIT"
] | 27 | 2016-06-07T12:45:44.000Z | 2021-03-24T08:26:29.000Z | scaffolds_actor_model/elixir/lib/actor_model/application.ex | lodykas/code_retreat | d22b3377fa655ef9064df7796c44a34b7dc33a58 | [
"MIT"
] | 11 | 2016-06-09T13:12:38.000Z | 2022-01-20T15:15:05.000Z | defmodule ActorModel.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: ActorModel.Worker.start_link(arg)
{ActorModel.Wo... | 29.545455 | 69 | 0.712308 |
ff0759fbb3013c248f4a97e2c74ebf574ec8ece5 | 2,304 | ex | Elixir | lib/reddex/auth.ex | christopher-dG/reddex | 9357a93a2dbe175dfb8ab593c3422c9bb2cccd9d | [
"MIT"
] | null | null | null | lib/reddex/auth.ex | christopher-dG/reddex | 9357a93a2dbe175dfb8ab593c3422c9bb2cccd9d | [
"MIT"
] | null | null | null | lib/reddex/auth.ex | christopher-dG/reddex | 9357a93a2dbe175dfb8ab593c3422c9bb2cccd9d | [
"MIT"
] | null | null | null | defmodule Reddex.Auth do
@moduledoc false
alias Tesla.Middleware
import Reddex.Utils
require Logger
use GenServer
@url "https://www.reddit.com/api/v1/access_token"
def start_link(_opts) do
GenServer.start_link(__MODULE__, "", name: __MODULE__)
end
@impl true
def init(_state) do
if Enum.a... | 26.482759 | 90 | 0.623264 |
ff07640e54e3438f03d81c997734e2741bda7e7e | 3,890 | exs | Elixir | test/oauth_xyz/model/key_request_test.exs | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 2 | 2020-04-22T13:22:25.000Z | 2020-12-01T12:01:30.000Z | test/oauth_xyz/model/key_request_test.exs | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 3 | 2019-12-05T01:32:09.000Z | 2019-12-09T01:15:32.000Z | test/oauth_xyz/model/key_request_test.exs | ritou/elixir-oauth-xyz-web | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | null | null | null | defmodule OAuthXYZ.Model.KeyRequestTest do
use OAuthXYZ.DataCase
alias OAuthXYZ.Model.KeyRequest
test "parse" do
# NOTE: https://oauth.xyz/transactionrequest/
key = KeyRequest.parse("7C7C4AZ9KHRS6X63AJAO")
assert key.handle
refute key.proof
jwk_keys = [
%{
"kty" => "RSA",
... | 40.947368 | 1,416 | 0.743188 |
ff0764a9e09a1ae4ccb12fa50a1cbefae125d5c9 | 211 | ex | Elixir | lib/shoegaze_bot.ex | codebundleio/shoegaze_bot | 97db73e66471a96e581bff14ef60713c70a297fa | [
"MIT"
] | null | null | null | lib/shoegaze_bot.ex | codebundleio/shoegaze_bot | 97db73e66471a96e581bff14ef60713c70a297fa | [
"MIT"
] | null | null | null | lib/shoegaze_bot.ex | codebundleio/shoegaze_bot | 97db73e66471a96e581bff14ef60713c70a297fa | [
"MIT"
] | null | null | null | defmodule ShoegazeBot do
@moduledoc """
Documentation for ShoegazeBot.
"""
@doc """
Hello world.
## Examples
iex> ShoegazeBot.hello()
:world
"""
def hello do
:world
end
end
| 11.105263 | 32 | 0.587678 |
ff07831942f4bfb00f6e88585c6a84dac2e15197 | 221 | ex | Elixir | lib/rfx/ops/filesys/mv_dir.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 31 | 2021-05-29T22:57:04.000Z | 2022-03-13T16:24:57.000Z | lib/rfx/ops/filesys/mv_dir.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-04T23:34:38.000Z | 2021-07-16T16:01:20.000Z | lib/rfx/ops/filesys/mv_dir.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-11T13:10:04.000Z | 2022-02-11T13:33:16.000Z | defmodule Rfx.Ops.Filesys.MvDir do
@moduledoc false
# Generate Change Requests
# - rename file
# - rename associated file (test or source)
# - project-wide edit text: Old Module Name to New Module Name
end
| 20.090909 | 64 | 0.710407 |
ff07b3c8543fdaafdb5d08a156d632eabcf29da2 | 195 | ex | Elixir | apps/rtc/lib/rtc_web/controllers/page_controller.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/rtc/lib/rtc_web/controllers/page_controller.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/rtc/lib/rtc_web/controllers/page_controller.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule RtcWeb.PageController do
use RtcWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
def health(conn, _) do
json(conn, %{pong: true})
end
end
| 16.25 | 34 | 0.671795 |
ff07d019c42e7a585529cbf207d920a4742fbdca | 1,024 | exs | Elixir | mix.exs | kianmeng/uuid | 965c76b7343530cf940a808f497eef37d0a332e6 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/uuid | 965c76b7343530cf940a808f497eef37d0a332e6 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/uuid | 965c76b7343530cf940a808f497eef37d0a332e6 | [
"MIT"
] | null | null | null | #-*-Mode:elixir;coding:utf-8;tab-width:2;c-basic-offset:2;indent-tabs-mode:()-*-
# ex: set ft=elixir fenc=utf-8 sts=2 ts=2 sw=2 et nomod:
defmodule Uuid.Mixfile do
use Mix.Project
def project do
[app: :uuid,
version: "2.0.4",
language: :erlang,
erlc_options: [
{:d, :erlang.list_to_atom('... | 23.272727 | 94 | 0.62207 |
ff07e1f52cdab8748497282aa2d65bdcc0898ed3 | 547 | exs | Elixir | config/test.exs | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | 2 | 2017-12-07T10:57:47.000Z | 2018-02-04T09:01:05.000Z | config/test.exs | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"MIT"
] | null | null | null | config/test.exs | niku/nigiwaiki | 52c37d2abb2d19084d6bda69c10773ed87701135 | [
"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 :nigiwiki, NigiwikiWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :nigiwiki, Nigiwik... | 27.35 | 71 | 0.744059 |
ff08090a8fe987b1f62594371924042c8cc3085c | 899 | ex | Elixir | lib/glimesh/api/scopes.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/api/scopes.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/api/scopes.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule Glimesh.Api.Scopes do
@moduledoc """
Glimesh Scopes Policy
"""
@behaviour Bodyguard.Policy
alias Glimesh.Accounts.User
alias Glimesh.Api.Access
def authorize(:public, %Access{} = ua, _params), do: scope_check(ua, :public)
def authorize(:email, %Access{} = ua, %User{} = accessing_user) do
... | 28.09375 | 85 | 0.677419 |
ff0818ef33f350a08c04bec5f08fa191d6e801fe | 22,581 | exs | Elixir | test/io/sauce_binary_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | 7 | 2018-11-01T15:47:05.000Z | 2021-05-19T10:07:23.000Z | test/io/sauce_binary_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | test/io/sauce_binary_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | Code.require_file("test/support/sauce_helpers.exs")
defmodule Saucexages.SauceBinaryTest do
use ExUnit.Case, async: true
require Saucexages.IO.SauceBinary
require Saucexages.Sauce
alias Saucexages.IO.SauceBinary
alias Saucexages.Sauce
test "split_all/1 splits a binary containing a SAUCE into its 3 parts" ... | 43.592664 | 137 | 0.695098 |
ff0892e1fe491546dc6df4a861bce2c8cd6865bf | 4,820 | ex | Elixir | lib/dark_ecto/sql_formatter.ex | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | lib/dark_ecto/sql_formatter.ex | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | lib/dark_ecto/sql_formatter.ex | dark-elixir/dark_ecto | 006a52e6d1a807e8f3c0f00a29780dc2967e57d9 | [
"Apache-2.0"
] | null | null | null | defmodule DarkEcto.SQLFormatter do
@moduledoc """
SQL formatter.
See (Original Source)[https://github.com/mrdziuban/sql-formatter/blob/master/elixirscript/src/SQLFormatter.exjs]
"""
defmodule T do
@moduledoc false
defstruct str: nil,
shift_arr: [],
tab: nil,
... | 29.570552 | 114 | 0.479876 |
ff08a42bafd675434dc72bbbf12a9f5ad18f9d9b | 2,393 | exs | Elixir | test/ex_bitmex/rest/orders/amend_test.exs | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | null | null | null | test/ex_bitmex/rest/orders/amend_test.exs | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | null | null | null | test/ex_bitmex/rest/orders/amend_test.exs | trexnix/ex_bitmex | 7669b6bb6dadaf5de57b49c3a571e36d6fa712b9 | [
"MIT"
] | null | null | null | defmodule ExBitmex.Rest.Orders.AmendTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
setup_all do
HTTPoison.start()
:ok
end
@credentials %ExBitmex.Credentials{
api_key: System.get_env("BITMEX_API_KEY"),
api_secret: System.get_env("BITMEX_SECRET")
}
te... | 31.077922 | 79 | 0.49603 |
ff08b5ac506c715e3539ba46710a88599d77c1c9 | 1,731 | ex | Elixir | lib/sanbase_web/graphql/middlewares/jwt_auth.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/middlewares/jwt_auth.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/middlewares/jwt_auth.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Middlewares.JWTAuth do
@moduledoc """
Authenticate that the request contains a valid JWT token and that the user has
enough san tokens to access the data. If the san tokens are not specified
it is assumed that 0 tokens are required.
Example:
query do
field :project... | 29.338983 | 85 | 0.687464 |
ff08b865f773659b91bca5cfbe1c35d8b3dd4349 | 742 | ex | Elixir | lib/foundation_phoenix_web/gettext.ex | PanyPy/foundation_phoenix | 571aaa0b274c1428b4cf8e370777ae82c9167eb2 | [
"MIT"
] | null | null | null | lib/foundation_phoenix_web/gettext.ex | PanyPy/foundation_phoenix | 571aaa0b274c1428b4cf8e370777ae82c9167eb2 | [
"MIT"
] | 2 | 2021-03-10T11:28:36.000Z | 2021-05-11T07:00:39.000Z | lib/foundation_phoenix_web/gettext.ex | PanyPy/foundation_phoenix | 571aaa0b274c1428b4cf8e370777ae82c9167eb2 | [
"MIT"
] | null | null | null | defmodule FoundationPhoenixWeb.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 FoundationPhoenixWeb.Gettext
# Simple translation
... | 29.68 | 72 | 0.691375 |
ff08e0e5685a594512e1384368c3028cac53707c | 7,209 | ex | Elixir | lib/logbook.ex | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 2 | 2021-09-02T13:44:48.000Z | 2021-09-08T12:28:55.000Z | lib/logbook.ex | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 2 | 2020-06-24T20:45:45.000Z | 2021-09-02T13:02:50.000Z | lib/logbook.ex | VoiSmart/logbook | e8166c2f4ee20e5849947b3d0c1cf3a7915fc42a | [
"Apache-2.0"
] | 1 | 2019-06-07T16:32:53.000Z | 2019-06-07T16:32:53.000Z | defmodule Logbook do
@moduledoc ~S"""
A category (or tags) based logger for Elixir.
Logbook is a wrapper aroud Elixir Logger that enables a to specify one or more tags
for each invocation in order to be able to set different log levels for each tag.
Tagging logs is useful to track log informations around di... | 29.304878 | 96 | 0.661395 |
ff0977609542455175022e8ddc1ac0e2e1c755d2 | 8,237 | ex | Elixir | lib/absinthe/phase/document/validation/fields_on_correct_type.ex | Rabbet/absinthe | 0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89 | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | lib/absinthe/phase/document/validation/fields_on_correct_type.ex | Rabbet/absinthe | 0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89 | [
"MIT"
] | null | null | null | lib/absinthe/phase/document/validation/fields_on_correct_type.ex | Rabbet/absinthe | 0764d7eb6ea9bdf9ccd957fa27bf1e6b26968f89 | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.FieldsOnCorrectType do
@moduledoc false
# Validates document to ensure that all fields are provided on the correct type.
alias Absinthe.{Blueprint, Phase, Schema, Type}
use Absinthe.Phase
@doc """
Run the validation.
"""
@spec run(Blueprint.t(), Keyword.t... | 28.50173 | 94 | 0.658614 |
ff099b803db03e58522da7a58e7c12359da5614c | 2,136 | exs | Elixir | test/validations/acceptance_test.exs | emjrdev/vex | c4a863ed39d4723ccf45231252d81c0f0df45de1 | [
"MIT"
] | 560 | 2015-01-12T00:07:27.000Z | 2022-02-07T03:21:44.000Z | test/validations/acceptance_test.exs | emjrdev/vex | c4a863ed39d4723ccf45231252d81c0f0df45de1 | [
"MIT"
] | 55 | 2015-02-16T18:59:57.000Z | 2021-12-23T12:34:25.000Z | test/validations/acceptance_test.exs | emjrdev/vex | c4a863ed39d4723ccf45231252d81c0f0df45de1 | [
"MIT"
] | 63 | 2015-02-12T03:49:50.000Z | 2021-12-12T00:11:01.000Z | defmodule AcceptanceTestRecord do
defstruct accepts_terms: false
use Vex.Struct
validates(:accepts_terms, acceptance: true)
end
defmodule CustomAcceptanceTestRecord do
defstruct accepts_terms: false
use Vex.Struct
validates(:accepts_terms, acceptance: [as: "yes"])
end
defmodule AcceptanceTest do
use E... | 40.301887 | 94 | 0.731273 |
ff099cc995745dcb891952c0ba0c1bad0b27afe5 | 1,274 | exs | Elixir | test/changelog_web/controllers/podcast_controller_test.exs | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | test/changelog_web/controllers/podcast_controller_test.exs | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | test/changelog_web/controllers/podcast_controller_test.exs | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.PodcastControllerTest do
use ChangelogWeb.ConnCase
test "getting the podcasts index", %{conn: conn} do
p1 = insert(:podcast)
p2 = insert(:podcast)
conn = get(conn, podcast_path(conn, :index))
assert conn.status == 200
assert conn.resp_body =~ p1.name
assert conn.res... | 29.627907 | 74 | 0.66562 |
ff09b8220410a44484998cf5bd6c5c6298799daf | 1,803 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/operation_metadata.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/operation_metadata.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/operation_metadata.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.018868 | 114 | 0.713256 |
ff09cd32567a55a6fcfd308a437f5d4e8b9e66df | 93 | exs | Elixir | test/marshal_decode_helper_test.exs | barruumrex/marshal | 5d2532ecf5428e75096b2e6b5bdfe9d476a603a0 | [
"MIT"
] | 1 | 2016-06-21T00:10:10.000Z | 2016-06-21T00:10:10.000Z | test/marshal_decode_helper_test.exs | barruumrex/marshal | 5d2532ecf5428e75096b2e6b5bdfe9d476a603a0 | [
"MIT"
] | null | null | null | test/marshal_decode_helper_test.exs | barruumrex/marshal | 5d2532ecf5428e75096b2e6b5bdfe9d476a603a0 | [
"MIT"
] | null | null | null | defmodule Marshal.Decode.HelperTest do
use ExUnit.Case
doctest Marshal.Decode.Helper
end
| 18.6 | 38 | 0.817204 |
ff09e47311ff6328bd258acdf6c488b22d237f85 | 10,307 | ex | Elixir | host_core/lib/host_core/actors/actor_module.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/actors/actor_module.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/actors/actor_module.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.Actors.ActorModule do
# Do not automatically restart this process
use GenServer, restart: :transient
alias HostCore.CloudEvent
@op_health_check "HealthRequest"
@thirty_seconds 30_000
require Logger
alias HostCore.WebAssembly.Imports
defmodule State do
defstruct [
:guest_r... | 25.83208 | 96 | 0.650626 |
ff0a58c84412bfab4cceb9aa3ecebb247943009c | 1,843 | exs | Elixir | config/prod.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | config/prod.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | config/prod.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 35.442308 | 66 | 0.706457 |
ff0a64ad8de33223c0a7af38204d23a29a3a1136 | 340 | ex | Elixir | lib/supabase_surface/components/icons/icon_divide.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_divide.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_divide.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconDivide do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.divide(width: icon_size, height: icon_size)}
</IconContainer... | 22.666667 | 64 | 0.717647 |
ff0a6acf3663e7b3762e210f4fafa9d346ce416b | 1,349 | exs | Elixir | test/xdr/ledger_entries/data_value_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/ledger_entries/data_value_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/ledger_entries/data_value_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.DataValueTest do
use ExUnit.Case
alias StellarBase.XDR.DataValue
describe "DataValue" do
setup do
%{
data_value: DataValue.new("GCIZ3GSM5"),
binary: <<0, 0, 0, 9, 71, 67, 73, 90, 51, 71, 83, 77, 53, 0, 0, 0>>
}
end
test "new/1" do
%DataVal... | 27.530612 | 84 | 0.623425 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.