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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d34b47003ab354db030a8a86f4b06da79983af3 | 1,679 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/list_forwarding_addresses_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/gmail/lib/google_api/gmail/v1/model/list_forwarding_addresses_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/list_forwarding_addresses_response.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.723404 | 161 | 0.760572 |
1d34b942fee31f263907163a7f9fcb8851403b8e | 8,889 | ex | Elixir | apps/aecore/lib/aecore/miner/worker.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | null | null | null | apps/aecore/lib/aecore/miner/worker.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | null | null | null | apps/aecore/lib/aecore/miner/worker.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | null | null | null | defmodule Aecore.Miner.Worker do
@moduledoc """
Handles the mining process.
inspiration : https://github.com/aeternity/epoch/blob/master/apps/aecore/src/aec_conductor.erl
"""
use GenServer
alias Aecore.Chain.Worker, as: Chain
alias Aecore.Chain.{Block, BlockValidation, Chainstate, Header, Target}
alia... | 28.129747 | 96 | 0.663967 |
1d34c2ecf2c18c40617fc1bd44f78fbbfef9d4d7 | 5,126 | ex | Elixir | lib/mix/lib/mix/dep/fetcher.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/fetcher.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/fetcher.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | # Module responsible for fetching (getting/updating)
# dependencies from their sources.
#
# The new_lock and old_lock mechanism exists to signal
# externally which dependencies need to be updated and
# which ones do not.
defmodule Mix.Dep.Fetcher do
@moduledoc false
import Mix.Dep, only: [format_dep: 1, check_lock... | 31.256098 | 79 | 0.643777 |
1d34d8c9e41823130326d75dbe26c56d621c950b | 8,179 | exs | Elixir | test/elixir/test/users_db_test.exs | sunvuz/couchdb | 69f6b8686c936585dfe23a4c2ae671a989167611 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/users_db_test.exs | sunvuz/couchdb | 69f6b8686c936585dfe23a4c2ae671a989167611 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/users_db_test.exs | sunvuz/couchdb | 69f6b8686c936585dfe23a4c2ae671a989167611 | [
"Apache-2.0"
] | null | null | null | defmodule UsersDbTest do
use CouchTestCase
@moduletag :authentication
@users_db_name "_users"
@moduletag config: [
{
"chttpd_auth",
"authentication_db",
@users_db_name
},
{
"couch_httpd_auth",
... | 25.243827 | 90 | 0.58259 |
1d34e6a28f2758b640e53f12bbdf3cf3777beb6f | 742 | ex | Elixir | deps/postgrex/lib/postgrex/extensions/uuid.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/extensions/uuid.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/extensions/uuid.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.Extensions.UUID do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "uuid_send"
def init(opts), do: Keyword.fetch!(opts, :decode_binary)
def encode(_) do
quote location: :keep, generated: true do
uuid when is_binary(uuid) and byte_siz... | 24.733333 | 96 | 0.650943 |
1d354a3886bc6a61b5f81c322cb9daaf5ce966c6 | 473 | ex | Elixir | lib/brando_admin/live/pages/page_fragment_update_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando_admin/live/pages/page_fragment_update_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando_admin/live/pages/page_fragment_update_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule BrandoAdmin.Pages.PageFragmentUpdateLive do
use BrandoAdmin.LiveView.Form, schema: Brando.Pages.Fragment
alias BrandoAdmin.Components.Form
import Brando.Gettext
def render(assigns) do
~H"""
<.live_component module={Form}
id="fragment_form"
entry_id={@entry_id}
current_user={... | 23.65 | 62 | 0.655391 |
1d35ae3c11d6e8e5ee3fbdc31d59a02ea968550b | 921 | ex | Elixir | apps/service_acquire/lib/acquire/query/where/filter_parser.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query/where/filter_parser.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query/where/filter_parser.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Acquire.Query.Where.FilterParser do
import NimbleParsec
alias Acquire.Query.Where.{Function, Parameter, Field}
@spec parse_operation(input :: String.t()) :: {:ok, Function.t()} | {:error, term}
def parse_operator(""), do: Ok.ok([])
def parse_operation(input) do
with {:ok, [left, op, right], _... | 29.709677 | 84 | 0.487514 |
1d35bb6423f0ab420bf93e0ec55fb33fabc14581 | 1,263 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_services_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_services_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_services_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.575 | 88 | 0.751386 |
1d35d3ac1d4148647ccfdc16d0f0bf65574c47bb | 8,808 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/api/google_audiences.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/api/google_audiences.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/api/google_audiences.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... | 44.261307 | 196 | 0.633288 |
1d3600be6a637e98d56b737be038b209139c304b | 5,894 | exs | Elixir | .credo.exs | behind-design/ravenx-pusher | 89265ffb6c5e3a9fe026e2840abc3746c7f43df8 | [
"MIT"
] | 1 | 2017-09-02T10:44:07.000Z | 2017-09-02T10:44:07.000Z | .credo.exs | behind-design/ravenx-pusher | 89265ffb6c5e3a9fe026e2840abc3746c7f43df8 | [
"MIT"
] | null | null | null | .credo.exs | behind-design/ravenx-pusher | 89265ffb6c5e3a9fe026e2840abc3746c7f43df8 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.369863 | 81 | 0.653037 |
1d360c027973ae0640c06709b7ec253a5a14af66 | 918 | exs | Elixir | test/sidetask/supervisor_test.exs | PSPDFKit-labs/sidetask | 0f46c8b6c938cdbcd90357b64cb33fefc16a93f4 | [
"MIT"
] | 57 | 2015-02-22T19:46:06.000Z | 2021-03-10T13:02:03.000Z | test/sidetask/supervisor_test.exs | MSch/sidetask | 0f46c8b6c938cdbcd90357b64cb33fefc16a93f4 | [
"MIT"
] | 3 | 2015-07-01T21:52:26.000Z | 2015-12-29T14:48:05.000Z | test/sidetask/supervisor_test.exs | MSch/sidetask | 0f46c8b6c938cdbcd90357b64cb33fefc16a93f4 | [
"MIT"
] | 7 | 2015-05-29T10:28:34.000Z | 2018-06-15T12:13:20.000Z | defmodule SideTask.SupervisorTest do
use ExUnit.Case
@resource :supervisor_test_resource
# Setup a sidejob resource and start a child that links to parent but doesn't return {:ok, pid}
# The supervisor should not shut down.
# See https://github.com/basho/sidejob/pull/12
test "doesn't shut down if start_ch... | 36.72 | 103 | 0.728758 |
1d361fa28deca5df229a3affaf3097059bdebbe6 | 841 | ex | Elixir | lib/cachex/actions/export.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | lib/cachex/actions/export.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | lib/cachex/actions/export.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Actions.Export do
@moduledoc false
# Command module to allow exporting all cache entries as a list.
#
# This command is extremely expensive as it turns the entire cache table into
# a list, and so should be used sparingly. It's provided purely because it's
# the backing implementation of th... | 32.346154 | 79 | 0.697979 |
1d36212a974e0482229a9a1f8b8781a55ef3654e | 270 | exs | Elixir | config/test.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | 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 :static_data, StaticData.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.545455 | 56 | 0.740741 |
1d364ef8c1af69612a7594c88cd33854c6dee8a7 | 68,780 | exs | Elixir | test/ecto/adapters/exqlite/connection_test.exs | dozoyo/exqlite | 517eaa7f39be7effad0e968986f708f7845e1d5c | [
"MIT"
] | null | null | null | test/ecto/adapters/exqlite/connection_test.exs | dozoyo/exqlite | 517eaa7f39be7effad0e968986f708f7845e1d5c | [
"MIT"
] | null | null | null | test/ecto/adapters/exqlite/connection_test.exs | dozoyo/exqlite | 517eaa7f39be7effad0e968986f708f7845e1d5c | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.Exqlite.ConnectionTest do
use ExUnit.Case
alias Ecto.Adapters.Exqlite.Connection
alias Ecto.Adapters.Exqlite
# alias Ecto.Migration.Table
import Ecto.Query
import Ecto.Migration, only: [table: 1, table: 2, index: 2, index: 3, constraint: 3]
alias Ecto.Migration.Reference
defmo... | 25.445801 | 122 | 0.495551 |
1d365122b9b27b2f62737801f25e3122304f8578 | 220 | ex | Elixir | elixir/hangman/game/lib/hangman.ex | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | elixir/hangman/game/lib/hangman.ex | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | elixir/hangman/game/lib/hangman.ex | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | defmodule Hangman do
alias Hangman.Game
defdelegate new_game(), to: Game
defdelegate tally(game), to: Game
def make_move(game, guess) do
game = Game.make_move(game, guess)
{game, tally(game)}
end
end
| 18.333333 | 38 | 0.695455 |
1d3667edf8311538247d9a4d6659a23909b684d9 | 2,090 | ex | Elixir | lib/absinthe/phase/document/arguments/parse.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | lib/absinthe/phase/document/arguments/parse.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 2 | 2019-03-07T00:26:03.000Z | 2019-08-19T17:30:30.000Z | lib/absinthe/phase/document/arguments/parse.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2019-01-18T20:49:03.000Z | 2019-01-18T20:49:03.000Z | defmodule Absinthe.Phase.Document.Arguments.Parse do
@moduledoc false
# Parses Leaf Node inputs
alias Absinthe.Blueprint.Input
alias Absinthe.{Blueprint, Type}
use Absinthe.Phase
def run(input, options \\ []) do
result = Blueprint.prewalk(input, &handle_node(&1, options[:context] || %{}))
{:ok, r... | 24.880952 | 94 | 0.643541 |
1d3678053d1a5de45fe699ef74b2e42bd1a66bb7 | 387 | exs | Elixir | config/.credo.exs | Nebo15/dogstat | 44095b3f9c3925e72130baa6a750ae796780db93 | [
"MIT"
] | 1 | 2017-08-05T15:26:12.000Z | 2017-08-05T15:26:12.000Z | config/.credo.exs | Nebo15/dogstat | 44095b3f9c3925e72130baa6a750ae796780db93 | [
"MIT"
] | null | null | null | config/.credo.exs | Nebo15/dogstat | 44095b3f9c3925e72130baa6a750ae796780db93 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/"]
},
checks: [
{Credo.Check.Design.TagTODO, exit_status: 0},
{Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 120},
{Credo.Check.Readability.Specs, exit_status: 0},
{Cred... | 22.764706 | 81 | 0.547804 |
1d36d12f914b028396a7324a12662151f5b7ea4f | 2,149 | ex | Elixir | other/dialyxir/typespecs.ex | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | 1 | 2016-12-25T09:53:53.000Z | 2016-12-25T09:53:53.000Z | other/dialyxir/typespecs.ex | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | other/dialyxir/typespecs.ex | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | # Typespecs
defmodule Specs do
@spec fall_velocity({atom(), number()}, number()) :: float()
def fall_velocity({_planemo, gravity}, distance) when distance > 0 do
:math.sqrt(2 * gravity * distance)
end
@spec average_velocity_by_distance({atom(), number()}, number()) :: float()
def average_v... | 34.66129 | 87 | 0.632387 |
1d36ee97efd09292da5f6f0836fbb0b723dc6a6b | 4,856 | ex | Elixir | lib/scenic/primitive/quad.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/quad.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/quad.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-06.
# Copyright © 2017-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Quad do
@moduledoc """
Draw a quad on the screen.
## Data
`{point_a, point_b, point_c, point_d}`
The data for a line is a tuple containing four points.
* `point_a` - pos... | 30.161491 | 124 | 0.556219 |
1d370311b2f6a0136976ccc88534c463b543ee40 | 3,178 | ex | Elixir | lib/erlef/data/schema/event.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef/data/schema/event.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef/data/schema/event.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Data.Schema.Event do
@moduledoc """
Erlef.Data.Schema.Event schema
"""
use Erlef.Data.Schema
@type t :: %__MODULE__{
id: Ecto.UUID.t(),
title: String.t(),
event_type_id: Ecto.UUID.t(),
description: String.t(),
slug: String.t(),
url: ... | 27.162393 | 93 | 0.631844 |
1d370b10843bd819961e13ff8b4fd387a80cfeef | 2,138 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_template_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/node_template_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/node_template_list_warning.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.339623 | 243 | 0.721703 |
1d373b3bcf29fbd43887be3af622a4f0502d35b1 | 5,510 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/data_source.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/data_source.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/data_source.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... | 54.019608 | 293 | 0.726316 |
1d3749d40667b2a24fa1e72601011964b813c3d1 | 4,611 | exs | Elixir | lib/elixir/test/elixir/kernel/fn_test.exs | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/test/elixir/kernel/fn_test.exs | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/fn_test.exs | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.FnTest do
use ExUnit.Case, async: true
import CompileAssertion
test "arithmetic constants on match" do
assert (fn 1 + 2 -> :ok end).(3) == :ok
assert (fn 1 - 2 -> :ok end).(-1) == :ok
assert (fn -1 -> :ok end).(-1) == :ok
assert (... | 28.288344 | 98 | 0.568206 |
1d375c5045cb6eb1a8914d764c49e818a7055fae | 350 | exs | Elixir | examples/example-phx-1_2/priv/repo/migrations/20161123212846_create_thesis_files_table.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 681 | 2016-06-21T20:49:21.000Z | 2022-02-19T04:08:38.000Z | examples/example-phx-1_2/priv/repo/migrations/20161123212846_create_thesis_files_table.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 125 | 2016-06-21T21:14:49.000Z | 2020-12-12T20:15:48.000Z | examples/example-phx-1_2/priv/repo/migrations/20161123212846_create_thesis_files_table.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 76 | 2016-09-06T03:40:55.000Z | 2022-01-20T21:29:22.000Z | defmodule Example.Repo.Migrations.CreateThesisFilesTable do
@moduledoc false
use Ecto.Migration
def change do
create table(:thesis_files) do
add :slug, :string
add :content_type, :string
add :filename, :string
add :data, :binary
timestamps()
end
create unique_index(:the... | 20.588235 | 59 | 0.677143 |
1d3760d1076b0abed89973d3af37203184faf770 | 1,444 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/query_item.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/query_item.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/query_item.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.723404 | 136 | 0.736842 |
1d3796039df98361056ff6095433ef2c74d58e68 | 2,441 | exs | Elixir | config/dev.exs | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | config/dev.exs | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | config/dev.exs | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :metro_cdmx_api, MetroCdmxApi.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "metro_cdmx_api_dev",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging ... | 32.546667 | 86 | 0.718558 |
1d37965d56b62849cc0d5f21aab910697396d867 | 2,371 | ex | Elixir | lib/steps/patch/copy_erts.ex | jimthedj65/burrito | 8fd251ebe5cdbaf587ee770764fea4ef80c3f32c | [
"MIT"
] | 1 | 2022-01-12T08:28:11.000Z | 2022-01-12T08:28:11.000Z | lib/steps/patch/copy_erts.ex | jimthedj65/burrito | 8fd251ebe5cdbaf587ee770764fea4ef80c3f32c | [
"MIT"
] | null | null | null | lib/steps/patch/copy_erts.ex | jimthedj65/burrito | 8fd251ebe5cdbaf587ee770764fea4ef80c3f32c | [
"MIT"
] | null | null | null | defmodule Burrito.Steps.Patch.CopyERTS do
@moduledoc """
This step copies the new ERTS bins into the release, as well as replaces built-in NIFs.
"""
alias Burrito.Builder.Context
alias Burrito.Builder.Log
alias Burrito.Builder.Step
@behaviour Step
@impl Step
def execute(%Context{} = context) do
... | 30.792208 | 98 | 0.633488 |
1d379f8c6233a8c72b4c8eecfaa3382d55eaab76 | 972 | exs | Elixir | secret-handshake/secret_handshake.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | secret-handshake/secret_handshake.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | secret-handshake/secret_handshake.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | use Bitwise
defmodule SecretHandshake do
@doc """
Determine the actions of a secret handshake based on the binary
representation of the given `code`.
If the following bits are set, include the corresponding action in your list
of commands, in order from lowest to highest.
1 = wink
10 = double blink
100... | 30.375 | 78 | 0.645062 |
1d380e3acf7521168b4c2e67189a7c6fe0a390c7 | 1,421 | ex | Elixir | apps/rig_inbound_gateway/lib/rig_inbound_gateway_web/v1/event_controller.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway_web/v1/event_controller.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig_inbound_gateway/lib/rig_inbound_gateway_web/v1/event_controller.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | defmodule RigInboundGatewayWeb.V1.EventController do
@moduledoc """
Publish a CloudEvent.
"""
require Logger
use Rig.Config, [:cors]
use RigInboundGatewayWeb, :controller
alias Rig.EventFilter
alias RigAuth.AuthorizationCheck.Submission
alias RigCloudEvents.CloudEvent
alias RigOutboundGateway
@... | 27.862745 | 70 | 0.675581 |
1d3818b99b66547a78911c80c168e47100e22867 | 980 | ex | Elixir | lib/solverview/application.ex | bokner/solverlview | 52a527bc653619fd35977d951b36207ba0ebd9cc | [
"MIT"
] | 10 | 2020-09-18T19:26:51.000Z | 2021-07-08T19:26:00.000Z | lib/solverview/application.ex | bokner/solverview | 52a527bc653619fd35977d951b36207ba0ebd9cc | [
"MIT"
] | null | null | null | lib/solverview/application.ex | bokner/solverview | 52a527bc653619fd35977d951b36207ba0ebd9cc | [
"MIT"
] | null | null | null | defmodule SolverView.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
SolverViewWeb.Telemetry,
# Start the PubSub system
... | 29.69697 | 68 | 0.714286 |
1d382158f56cdc86e3be1d11d6e92ad0990c7217 | 15,066 | ex | Elixir | lib/zxcvbn/scoring.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | lib/zxcvbn/scoring.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | lib/zxcvbn/scoring.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | defmodule Zxcvbn.Scoring do
@moduledoc false
@bruteforce_cardinality 10
@min_guesses_before_growing_sequence 10_000
@min_submatch_guesses_single_char 10
@min_submatch_guesses_multi_char 50
# Used in regex and date guesses
@min_year_space 20
@reference_year Date.utc_today().year
# Used in variations... | 37.665 | 103 | 0.635205 |
1d38388af499d00d5363e89debe6668fcf07c1f4 | 634 | ex | Elixir | apps/ldap_wrapper/lib/ldap_wrapper/erlang_converter.ex | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/ldap_wrapper/lib/ldap_wrapper/erlang_converter.ex | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/ldap_wrapper/lib/ldap_wrapper/erlang_converter.ex | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | defmodule LdapWrapper.ErlangConverter do
def convert_to_erlang(list) when is_list(list), do: Enum.map(list, &convert_to_erlang/1)
def convert_to_erlang(string) when is_binary(string), do: :binary.bin_to_list(string)
def convert_to_erlang(atom) when is_atom(atom),
do: atom |> Atom.to_string() |> convert_to_er... | 39.625 | 90 | 0.760252 |
1d38a99b7e0a7978c28dd66af1359a4b87658a2e | 532 | exs | Elixir | apps/ewallet_api/test/ewallet_api/v1/controllers/fallback_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_api/test/ewallet_api/v1/controllers/fallback_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/v1/controllers/fallback_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletAPI.V1.FallbackControllerTest do
use EWalletAPI.ConnCase, async: false
describe "/not_found" do
test "returns correct error response format and error message" do
expected = %{
"version" => "1",
"success" => false,
"data" => %{
"object" => "error",
... | 25.333333 | 69 | 0.571429 |
1d38c7c5c203aa1329d8900925bea672af49ee23 | 1,440 | ex | Elixir | lib/procore/resources/locations.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-01T01:34:16.000Z | 2020-08-31T15:15:08.000Z | lib/procore/resources/locations.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-03T03:01:48.000Z | 2021-06-08T18:39:40.000Z | lib/procore/resources/locations.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 3 | 2018-08-12T03:51:52.000Z | 2020-02-27T14:29:14.000Z | defmodule Procore.Resources.Locations do
@moduledoc """
Available actions for the location resource.
"""
alias Procore.ErrorResult
alias Procore.Request
alias Procore.ResponseResult
@doc """
Lists all locations in a project.
"""
@spec list(Tesla.Client.t(), %{
required(project_id :: Stri... | 33.488372 | 90 | 0.645139 |
1d38e87bd442c85d4b86bc5c5b0e891cbded19ae | 67 | exs | Elixir | test/test_helper.exs | colindensem/petal-k8s | def9dc653dcae2ef35021d44821e6c69d8744e15 | [
"MIT"
] | 1 | 2021-02-12T09:17:38.000Z | 2021-02-12T09:17:38.000Z | test/test_helper.exs | colindensem/petal-k8s | def9dc653dcae2ef35021d44821e6c69d8744e15 | [
"MIT"
] | null | null | null | test/test_helper.exs | colindensem/petal-k8s | def9dc653dcae2ef35021d44821e6c69d8744e15 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Petal.Repo, :manual)
| 22.333333 | 51 | 0.776119 |
1d390720923f15e7514fb243ab8404874063d0c5 | 372 | ex | Elixir | web/views/error_view.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/views/error_view.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/views/error_view.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.ErrorView do
use Nectar.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, a... | 20.666667 | 47 | 0.696237 |
1d391c3cf450f7d482f471eeaccb0499b567c6ca | 4,137 | ex | Elixir | lib/codes/codes_y02.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_y02.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_y02.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Y02 do
alias IcdCode.ICDCode
def _Y020XXA do
%ICDCode{full_code: "Y020XXA",
category_code: "Y02",
short_code: "0XXA",
full_name: "Assault by pushing or placing victim in front of motor vehicle, initial encounter",
short_name: "Assault by pus... | 47.011364 | 117 | 0.67271 |
1d3929bf960a095c0d65b57891adf7c67739b5a6 | 263 | ex | Elixir | lib/stixex/vocabulary/indicator_label.ex | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | 1 | 2019-05-07T22:44:45.000Z | 2019-05-07T22:44:45.000Z | lib/stixex/vocabulary/indicator_label.ex | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | null | null | null | lib/stixex/vocabulary/indicator_label.ex | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | null | null | null | defmodule StixEx.Vocabulary.IndicatorLabel do
@behaviour StixEx.Vocabulary
@impl StixEx.Vocabulary
def values do
~w[
anomalous-activity
anonymization
benign
compromised
malicious-activity
attribution
]
end
end
| 16.4375 | 45 | 0.680608 |
1d39354aab00254e765aa3b13ae79bbb31a6853f | 4,974 | ex | Elixir | clients/connectors/lib/google_api/connectors/v1/model/connector_version.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/connectors/lib/google_api/connectors/v1/model/connector_version.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/connectors/lib/google_api/connectors/v1/model/connector_version.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... | 54.659341 | 232 | 0.711299 |
1d3944e5ee255c6d19dc5f6c2469cb06ae58f013 | 2,172 | exs | Elixir | test/grizzly/zwave/commands/multi_channel_endpoint_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | test/grizzly/zwave/commands/multi_channel_endpoint_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | test/grizzly/zwave/commands/multi_channel_endpoint_report_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.ZWave.Commands.MultiChannelEndpointReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.MultiChannelEndpointReport
test "creates the command and validates params" do
params = [dynamic: false, identical: true, endpoints: 3]
{:ok, _command} = MultiChannelEndpointReport... | 38.105263 | 97 | 0.695212 |
1d39455426b84ef2bc79dcc1e951fe9165dc634d | 1,567 | ex | Elixir | examples/elixir-phoenix/lib/railwayphoenix_web/endpoint.ex | PixelPasta/starters | bd245840f13f22f11cc271ddc9794feeea455fc0 | [
"MIT"
] | null | null | null | examples/elixir-phoenix/lib/railwayphoenix_web/endpoint.ex | PixelPasta/starters | bd245840f13f22f11cc271ddc9794feeea455fc0 | [
"MIT"
] | 5 | 2022-01-28T21:45:40.000Z | 2022-02-28T03:51:31.000Z | examples/elixir-phoenix/lib/railwayphoenix_web/endpoint.ex | PixelPasta/starters | bd245840f13f22f11cc271ddc9794feeea455fc0 | [
"MIT"
] | null | null | null | defmodule RailwayphoenixWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :railwayphoenix
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
ke... | 30.72549 | 97 | 0.728781 |
1d395ff5f5d4c5b97396380a5a9c5376a83827f5 | 1,604 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/list_voices_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/list_voices_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/list_voices_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.12766 | 117 | 0.748753 |
1d39687037cb28696063eee8282f9f0a35f2e3cf | 1,654 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_create_test_return_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/model/orders_create_test_return_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_create_test_return_response.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... | 33.08 | 161 | 0.730955 |
1d3979ca613f91f1780e6af2b0181ac1ac30431d | 3,931 | ex | Elixir | lib/kvasir/agent_server/control/server.ex | IanLuites/kvasir_agent_server | c64e1b05b9e19b96f01df7a8d28baa2faadfc709 | [
"MIT"
] | null | null | null | lib/kvasir/agent_server/control/server.ex | IanLuites/kvasir_agent_server | c64e1b05b9e19b96f01df7a8d28baa2faadfc709 | [
"MIT"
] | null | null | null | lib/kvasir/agent_server/control/server.ex | IanLuites/kvasir_agent_server | c64e1b05b9e19b96f01df7a8d28baa2faadfc709 | [
"MIT"
] | 1 | 2021-07-06T15:50:28.000Z | 2021-07-06T15:50:28.000Z | defmodule Kvasir.AgentServer.Control.Server do
def init(socket, transport, server) do
# Join for status updates
:pg.join({server, :status}, spawn_link(fn -> status_loop(socket, transport, server) end))
:ok
end
def close(_server) do
:ok
end
### The Commands
alias Kvasir.AgentServer.Config
... | 27.110345 | 98 | 0.58204 |
1d398fd77d8ba2608d1b5c634ae18a3c73224b70 | 371 | ex | Elixir | lib/input/metadata.ex | crertel/zamrazac | 75b9018da8ae134624a00dd9bfb85e4002c651d2 | [
"MIT"
] | 5 | 2019-05-23T19:57:43.000Z | 2019-10-12T03:21:03.000Z | lib/input/metadata.ex | crertel/zamrazac | 75b9018da8ae134624a00dd9bfb85e4002c651d2 | [
"MIT"
] | 7 | 2019-07-01T19:40:10.000Z | 2021-12-14T11:00:14.000Z | lib/input/metadata.ex | crertel/zamrazac | 75b9018da8ae134624a00dd9bfb85e4002c651d2 | [
"MIT"
] | null | null | null | defmodule Zamrazac.Input.Metadata do
defstruct title: nil,
author: nil,
date: nil,
tags: nil,
filename: nil,
basename: nil,
slug: nil,
series: nil,
next_post_title: nil,
next_post_path: nil,
prev_po... | 24.733333 | 36 | 0.493261 |
1d39cc6efb528268be04576fc7159d077d6de4bf | 2,471 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_fetch_threat_list_updates_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_fetch_threat_list_updates_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/google_security_safebrowsing_v4_fetch_threat_list_updates_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.222222 | 388 | 0.76204 |
1d39d76bb1cacaff213105655dac9c524d65e1dc | 1,070 | ex | Elixir | lib/chaos_spawn.ex | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 90 | 2015-09-29T16:40:17.000Z | 2022-02-20T18:45:54.000Z | lib/chaos_spawn.ex | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 17 | 2015-09-29T15:37:43.000Z | 2015-12-09T08:46:41.000Z | lib/chaos_spawn.ex | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 6 | 2015-12-03T16:03:35.000Z | 2018-06-28T00:54:08.000Z | defmodule ChaosSpawn do
@moduledoc """
The app for Chaos spawn. Provides all the wrapped spawn functions.
"""
use Application
require Logger
alias ChaosSpawn.ProcessSpawner
alias ChaosSpawn.ProcessWatcher
@process_watcher ChaosSpawn.ProcessWatcher
@kill_loop ChaosSpawn.KillLoop
def start(_type, _a... | 23.26087 | 72 | 0.72243 |
1d39e3b72a7345d6f64763ab62b5a9d1730a9390 | 6,279 | ex | Elixir | lib/burger/read_models/top_burgers.ex | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | 1 | 2020-01-13T09:27:21.000Z | 2020-01-13T09:27:21.000Z | lib/burger/read_models/top_burgers.ex | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | null | null | null | lib/burger/read_models/top_burgers.ex | mbuhot/irateburgers | 3ea07805501c10ef9b04cee04c22c36582f26e1e | [
"MIT"
] | null | null | null | defmodule Irateburgers.TopBurgers do
@moduledoc """
Read-model for querying the top rated burgers of all time.
"""
defmodule Record do
@moduledoc """
This struct represents a single row in the Top-Burgers table:
1. "Resolution Breaker", 4.5, 8 Reviews
2. "Brooklyn Cheeseburger", 4.3, 5 Reviews... | 28.671233 | 79 | 0.636885 |
1d39ea83891006e030d6b7f4cdd867aa33aa90df | 10,178 | ex | Elixir | lib/glimesh_web/live/support_modal/support_modal.ex | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/support_modal/support_modal.ex | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/support_modal/support_modal.ex | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.SupportModal do
use GlimeshWeb, :live_view
@impl true
def mount(_params, %{"streamer" => streamer, "user" => nil} = session, socket) do
if session["locale"], do: Gettext.put_locale(session["locale"])
channel = Glimesh.ChannelLookups.get_channel_for_user(streamer)
tabs = Glimesh... | 44.640351 | 229 | 0.504618 |
1d3a2dc9c3ecdb7937fe8fc52e041b78401bec3f | 472 | exs | Elixir | rustler_tests/test/binary_example_test.exs | jtdowney/rustler | c61ab3c407e3d8040e3a3b54889f5c388c5c80e5 | [
"Apache-2.0",
"MIT"
] | 2,075 | 2019-03-10T02:30:23.000Z | 2022-03-31T21:34:49.000Z | rustler_tests/test/binary_example_test.exs | jtdowney/rustler | c61ab3c407e3d8040e3a3b54889f5c388c5c80e5 | [
"Apache-2.0",
"MIT"
] | 194 | 2019-03-10T00:14:16.000Z | 2022-03-30T13:37:00.000Z | rustler_tests/test/binary_example_test.exs | jtdowney/rustler | c61ab3c407e3d8040e3a3b54889f5c388c5c80e5 | [
"Apache-2.0",
"MIT"
] | 130 | 2019-03-13T05:31:10.000Z | 2022-03-27T15:34:05.000Z | defmodule BinaryExampleTest do
use ExUnit.Case
test "binary is compiled" do
bins = ~w(binary_example hello_rust hello_rust2)
for bin <- bins do
assert_exists(bin)
end
end
defp assert_exists(name) do
assert_exists(name, :os.type())
end
defp assert_exists(name, {:win32, _} = type) do... | 19.666667 | 52 | 0.673729 |
1d3a3267892bd0a492d8257a822a0a82f2d9924b | 4,869 | ex | Elixir | lib/typed_ecto_schema/ecto_type_mapper.ex | s3cur3/typed_ecto_schema | 4afdc8b2a5a7d3aaa63575bfae0ac9a1a063da53 | [
"Apache-2.0"
] | null | null | null | lib/typed_ecto_schema/ecto_type_mapper.ex | s3cur3/typed_ecto_schema | 4afdc8b2a5a7d3aaa63575bfae0ac9a1a063da53 | [
"Apache-2.0"
] | null | null | null | lib/typed_ecto_schema/ecto_type_mapper.ex | s3cur3/typed_ecto_schema | 4afdc8b2a5a7d3aaa63575bfae0ac9a1a063da53 | [
"Apache-2.0"
] | null | null | null | defmodule TypedEctoSchema.EctoTypeMapper do
@moduledoc false
@schema_many_function_name [:embeds_many, :has_many, :many_to_many]
@schema_assoc_function_name [
:has_many,
:has_one,
:belongs_to,
:many_to_many
]
@module_for_ecto_type %{
string: String,
decimal: Decimal,
date: Date,... | 24.223881 | 98 | 0.652495 |
1d3a4ed03b05d147fdd33853e4ba93c0b567f068 | 2,780 | exs | Elixir | test/absinthe/blueprint/type_reference_test.exs | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | null | null | null | test/absinthe/blueprint/type_reference_test.exs | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | null | null | null | test/absinthe/blueprint/type_reference_test.exs | pulkit110/absinthe | fa2060307a401d0943bde72d08267602e4027889 | [
"MIT"
] | null | null | null | defmodule Absinthe.Blueprint.TypeReferenceTest do
use Absinthe.Case, async: true
alias Absinthe.Blueprint
@moduletag :f
describe ".unwrap of Name" do
test "is left intact" do
name = %Blueprint.TypeReference.Name{name: "Foo"}
assert Blueprint.TypeReference.unwrap(name) == name
end
end
... | 34.320988 | 64 | 0.685612 |
1d3a8de900f3b2eb71f40ed0c4fd6c62f6116c7f | 2,285 | ex | Elixir | lib/faker/app.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/app.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/app.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | defmodule Faker.App do
import Faker, only: [sampler: 2]
alias Faker.Name
alias Faker.Company
@moduledoc """
Functions for generating app specific properties.
"""
@doc """
Returns a version number.
"""
@spec version() :: String.t
def version do
["0.#.#", "0.##", "#.##", "#.#", "#.#.#"]
|... | 34.621212 | 693 | 0.589059 |
1d3aa815fad39c01a84d36b8fd0594dc424cf154 | 591 | exs | Elixir | Elixir/Wufflez/collatz.exs | Wufflez/collatz | 9d7d05a71eec11f4075bf3a3d7fa050d24fb8287 | [
"MIT"
] | null | null | null | Elixir/Wufflez/collatz.exs | Wufflez/collatz | 9d7d05a71eec11f4075bf3a3d7fa050d24fb8287 | [
"MIT"
] | null | null | null | Elixir/Wufflez/collatz.exs | Wufflez/collatz | 9d7d05a71eec11f4075bf3a3d7fa050d24fb8287 | [
"MIT"
] | null | null | null | defmodule Collatz do
def compute(1), do: [1]
def compute(input) do
next =
case Integer.mod(input, 2) do
1 -> input * 3 + 1
0 -> div(input, 2)
end
[input | compute(next)]
end
end
user_input =
case System.argv() do
[arg] -> arg
[] -> IO.gets("Please enter the input v... | 22.730769 | 81 | 0.602369 |
1d3b14142762b579d19ff00f9d7b6e35872ec1d1 | 86 | ex | Elixir | phoenix/lib/mehr_schulferien_web/views/admin/country_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/admin/country_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/admin/country_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.Admin.CountryView do
use MehrSchulferienWeb, :view
end
| 21.5 | 49 | 0.848837 |
1d3b2c839accc43ffd1d6ee1025faf396de9a362 | 498 | exs | Elixir | priv/repo/migrations/20201027225149_create_case_investigations.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | priv/repo/migrations/20201027225149_create_case_investigations.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | priv/repo/migrations/20201027225149_create_case_investigations.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Repo.Migrations.CreateCaseInvestigations do
use Ecto.Migration
def change() do
create table(:case_investigations, primary_key: false) do
add :id, :binary_id, primary_key: true
add :initiated_by_id, references(:lab_results, on_delete: :nothing, type: :binary_id)
add :name, ... | 29.294118 | 91 | 0.694779 |
1d3b36642a0596ff4d992d8e8ba105f8ae300803 | 2,054 | ex | Elixir | lib/himamo/baum_welch.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | 2 | 2017-09-25T07:24:26.000Z | 2019-08-23T19:55:10.000Z | lib/himamo/baum_welch.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | null | null | null | lib/himamo/baum_welch.ex | mfilej/himamo | 78d10964d2f2557d9ddf8f8e8f22aeece59fb7c5 | [
"MIT"
] | null | null | null | defmodule Himamo.BaumWelch do
@moduledoc ~S"""
Defines the Baum-Welch algorithm.
See `Himamo.BaumWelch.StepE` and `Himamo.BaumWelch.StepM` for details on its
respective expectation and maximization steps.
"""
defmodule Stats do
@moduledoc ~S"""
Defines the statistical properties of an HMM.
Se... | 28.527778 | 87 | 0.675268 |
1d3ba7d7b02485f60cc0d0bbed9241edf7870318 | 1,978 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_find_missing_blobs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_find_missing_blobs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_find_missing_blobs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.701754 | 200 | 0.765925 |
1d3bb582de57ee5bd607a02ed0d91d15e0a79d52 | 15,204 | ex | Elixir | lib/phoenix/view.ex | Gazler/phoenix_view | 607bed7986daaf43f2a6de3ece52e378e0f57d47 | [
"MIT"
] | null | null | null | lib/phoenix/view.ex | Gazler/phoenix_view | 607bed7986daaf43f2a6de3ece52e378e0f57d47 | [
"MIT"
] | null | null | null | lib/phoenix/view.ex | Gazler/phoenix_view | 607bed7986daaf43f2a6de3ece52e378e0f57d47 | [
"MIT"
] | null | null | null | defmodule Phoenix.View do
@moduledoc """
Defines the view layer of a Phoenix application.
This module is used to define the application's main view, which
serves as the base for all other views and templates.
The view layer also contains conveniences for rendering templates,
including support for layouts ... | 31.741127 | 100 | 0.678966 |
1d3bc1e09666f66d3d3c568f94ad1d01f449fb1f | 1,842 | ex | Elixir | server/lib/realtime/configuration.ex | benmccann/realtime | b824fd80e769d56d34ffbaf5355705bc6f3a2aba | [
"Apache-2.0"
] | 7 | 2020-07-15T17:57:51.000Z | 2022-01-30T04:37:57.000Z | server/lib/realtime/configuration.ex | benmccann/realtime | b824fd80e769d56d34ffbaf5355705bc6f3a2aba | [
"Apache-2.0"
] | null | null | null | server/lib/realtime/configuration.ex | benmccann/realtime | b824fd80e769d56d34ffbaf5355705bc6f3a2aba | [
"Apache-2.0"
] | 1 | 2021-10-14T23:26:46.000Z | 2021-10-14T23:26:46.000Z | defmodule Realtime.Configuration do
defmodule(WebhookEndpoint, do: defstruct([:endpoint]))
defmodule(Webhook, do: defstruct([:event, :relation, :config]))
defmodule(Configuration, do: defstruct([:webhooks]))
@doc """
Load Configuration from a json file.
"""
def from_json_file(nil) do
{:ok, %Configur... | 30.196721 | 82 | 0.674267 |
1d3bc815e89dfac28fd42e43e3feb83a903fff7c | 3,893 | ex | Elixir | lib/mix/tasks/firmware.burn.ex | joelbyler/nerves | 3b904dfb09c0b419d8ccc02957a5a5aac0e36d4e | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/firmware.burn.ex | joelbyler/nerves | 3b904dfb09c0b419d8ccc02957a5a5aac0e36d4e | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/firmware.burn.ex | joelbyler/nerves | 3b904dfb09c0b419d8ccc02957a5a5aac0e36d4e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Firmware.Burn do
use Mix.Task
import Mix.Nerves.Utils
alias Nerves.Utils.WSL
@switches [device: :string, task: :string]
@aliases [d: :device, t: :task]
@shortdoc "Write a firmware image to an SDCard"
@moduledoc """
Writes the generated firmware image to an attached SDCard or file.... | 30.896825 | 95 | 0.621372 |
1d3bddaca5a655743d388d598b18c0b85a27bd07 | 1,922 | exs | Elixir | config/dev.exs | groksrc/tablex | ff23bd9df9ad98f4670fa2ef523c27e532158ab5 | [
"MIT"
] | null | null | null | config/dev.exs | groksrc/tablex | ff23bd9df9ad98f4670fa2ef523c27e532158ab5 | [
"MIT"
] | null | null | null | config/dev.exs | groksrc/tablex | ff23bd9df9ad98f4670fa2ef523c27e532158ab5 | [
"MIT"
] | 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 brunch.io to recompile .js and .css sources.
config :tablex, TablexWeb.Endpoint,
http: [port: 4000... | 32.576271 | 170 | 0.701353 |
1d3bed156bb67c521f4136ecd51ce432ee12b0da | 251 | ex | Elixir | web/auth/error_handler.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | web/auth/error_handler.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | web/auth/error_handler.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | defmodule PhoenixAppTemplate.GuardianErrorHandler do
use PhoenixAppTemplate.Web, :controller
def unauthenticated(conn, _params) do
conn
|> put_flash(:error, "You must be logged in")
|> redirect(to: session_path(conn, :new))
end
end
| 25.1 | 52 | 0.733068 |
1d3c1489eecb1623daf6d53a0c98fd87a75032d1 | 67 | ex | Elixir | lib/regex_help_web/views/layout_view.ex | maciejgryka/regex_help | 93fe33cadcf63597dadb5e3dac9a0ee8f05dac15 | [
"MIT"
] | 6 | 2021-05-24T08:21:34.000Z | 2021-11-19T14:29:55.000Z | lib/regex_help_web/views/layout_view.ex | maciejgryka/regex_help | 93fe33cadcf63597dadb5e3dac9a0ee8f05dac15 | [
"MIT"
] | null | null | null | lib/regex_help_web/views/layout_view.ex | maciejgryka/regex_help | 93fe33cadcf63597dadb5e3dac9a0ee8f05dac15 | [
"MIT"
] | 3 | 2021-11-19T14:32:00.000Z | 2022-01-17T00:13:18.000Z | defmodule RegexHelpWeb.LayoutView do
use RegexHelpWeb, :view
end
| 16.75 | 36 | 0.820896 |
1d3c184cfb3aa6aadf0c41b807edef4e37742355 | 1,586 | ex | Elixir | lib/esi/api/search.ex | mikalv/esi | c37a685246e2f47a28abe6b369ac66329a654555 | [
"MIT"
] | 3 | 2021-02-06T23:24:52.000Z | 2021-11-11T01:49:59.000Z | lib/esi/api/search.ex | mikalv/ex_esi | c37a685246e2f47a28abe6b369ac66329a654555 | [
"MIT"
] | null | null | null | lib/esi/api/search.ex | mikalv/ex_esi | c37a685246e2f47a28abe6b369ac66329a654555 | [
"MIT"
] | null | null | null | defmodule ESI.API.Search do
@typedoc """
Options for [`Search.search/1`](#search/1).
- `:categories` (REQUIRED) -- Type of entities to search for
- `:language` (DEFAULT: `:"en-us"`) -- Language to use in the response, takes precedence over Accept-Language
- `:search` (REQUIRED) -- The string to search on
... | 33.744681 | 277 | 0.624842 |
1d3c26f066277bb3f92a053a0c7e91ccb58f22d6 | 10,762 | ex | Elixir | apps/re_integrations/lib/notifications/emails/user.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_integrations/lib/notifications/emails/user.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re_integrations/lib/notifications/emails/user.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReIntegrations.Notifications.Emails.User do
@moduledoc """
Module for building e-mails to send to users
"""
import Swoosh.Email
alias Re.{
Calendars,
Interest,
Listing,
User
}
@to String.split(Application.get_env(:re_integrations, :to), "|")
@from Application.get_env(:re_inte... | 37.498258 | 98 | 0.525739 |
1d3c2dbed31cf414f3b79be3e7e44903ece3f9a6 | 2,945 | ex | Elixir | lib/program.ex | SekiT/ex_tm | f76dcd4141f0ed8ab0842053ae544de67fe40748 | [
"WTFPL"
] | 2 | 2017-02-01T13:08:59.000Z | 2017-04-05T06:48:15.000Z | lib/program.ex | SekiT/ex_tm | f76dcd4141f0ed8ab0842053ae544de67fe40748 | [
"WTFPL"
] | null | null | null | lib/program.ex | SekiT/ex_tm | f76dcd4141f0ed8ab0842053ae544de67fe40748 | [
"WTFPL"
] | null | null | null | defmodule TuringMachine.Program do
@moduledoc """
Programs for a turing machine.
You can define programs directly constructing list of 5-tuples,
or generating from codes by `from_string/1` or `from_file/1`.
The 5-tuple `{0, 1, 2, :right, 3}` means a command that
when the machine state is `0`, and the valu... | 26.772727 | 78 | 0.585399 |
1d3c507263e5e2b1c8ad06d5adff8d0fe17232fc | 793 | ex | Elixir | supervised_todo_cache/lib/todo/cache.ex | AJPcodes/elixir_in_action | d9c9b0aeea13bf48cd65af7c2de6ba5cf30e5d26 | [
"MIT"
] | null | null | null | supervised_todo_cache/lib/todo/cache.ex | AJPcodes/elixir_in_action | d9c9b0aeea13bf48cd65af7c2de6ba5cf30e5d26 | [
"MIT"
] | null | null | null | supervised_todo_cache/lib/todo/cache.ex | AJPcodes/elixir_in_action | d9c9b0aeea13bf48cd65af7c2de6ba5cf30e5d26 | [
"MIT"
] | null | null | null | defmodule Todo.Cache do
use GenServer
def init(_) do
Todo.Database.start_link("./persist/")
{:ok, Map.new}
end
def handle_call({:server_process, todo_list_name}, _, todo_servers) do
case Map.fetch(todo_servers, todo_list_name) do
{:ok, todo_server} ->
{:reply, todo_server, todo_serv... | 24.030303 | 72 | 0.644388 |
1d3c81b6d5adbd0981620eb16a6e94025eb96d8b | 618 | exs | Elixir | monitoring_hub/apps/metrics_reporter_ui/test/views/error_view_test.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | 1,459 | 2017-09-16T13:13:15.000Z | 2020-10-05T06:19:50.000Z | monitoring_hub/apps/metrics_reporter_ui/test/views/error_view_test.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | 1,413 | 2017-09-14T18:18:14.000Z | 2020-09-28T08:10:30.000Z | monitoring_hub/apps/metrics_reporter_ui/test/views/error_view_test.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | 80 | 2017-09-27T23:16:23.000Z | 2020-06-02T09:18:53.000Z | defmodule MetricsReporterUI.ErrorViewTest do
use MetricsReporterUI.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(MetricsReporterUI.ErrorView, "404.html", []) ==
"Page not found"
end... | 28.090909 | 75 | 0.702265 |
1d3c8d5648d5dee2a4819f5ff99b277d0135277f | 420 | exs | Elixir | people-in-bus/test/bus_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | people-in-bus/test/bus_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | people-in-bus/test/bus_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | defmodule BusTest do
use ExUnit.Case
import Bus, only: [number: 1]
test "returns 0 for a bus without stops" do
assert number([]) == 0
assert number([{0,0}]) == 0
end
test "works for a bus with stops" do
assert number([{10,0}, {3,5}, {5,8}]) == 5
assert number([{3,0}, {9,1}, {4,10}, {12,2}, {... | 26.25 | 70 | 0.533333 |
1d3c9e723a5b2a3a995a3d24106a3a83937a9c78 | 75 | ex | Elixir | web/views/list_card_view.ex | yrahulkr/phoenix-trello | c1e39be5a43eb6546c00a234816b3dac31b1ac61 | [
"MIT"
] | null | null | null | web/views/list_card_view.ex | yrahulkr/phoenix-trello | c1e39be5a43eb6546c00a234816b3dac31b1ac61 | [
"MIT"
] | null | null | null | web/views/list_card_view.ex | yrahulkr/phoenix-trello | c1e39be5a43eb6546c00a234816b3dac31b1ac61 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.ListCardView do
use PhoenixTrello.Web, :view
end
| 18.75 | 39 | 0.826667 |
1d3cc1dc84ee5b1c88f2b893a3e3701daa30e13a | 2,510 | ex | Elixir | lib/chirper/blog.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | null | null | null | lib/chirper/blog.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 1 | 2021-03-10T07:27:11.000Z | 2021-03-10T07:27:11.000Z | lib/chirper/blog.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | null | null | null | defmodule Chirper.Blog do
@moduledoc """
The Blog context.
"""
import Ecto.Query, warn: false
alias Chirper.Repo
alias Chirper.Accounts
alias Chirper.Blog.Post
alias Chirper.Accounts.User
@doc """
Returns the list of posts.
## Examples
iex> list_posts()
[%Post{}, ...]
"""
def ... | 17.552448 | 68 | 0.574502 |
1d3cd8c18eade81e4950bc6b9fbfdd9bbb78b10d | 78 | exs | Elixir | config/prod.exs | raisebook/qbot | 15ef5b00bf6b39c99e3bb728fa78093bc55ca342 | [
"MIT"
] | 3 | 2017-10-13T03:49:18.000Z | 2018-09-02T21:57:17.000Z | config/prod.exs | raisebook/qbot | 15ef5b00bf6b39c99e3bb728fa78093bc55ca342 | [
"MIT"
] | 2 | 2017-05-02T07:35:27.000Z | 2017-06-14T02:27:41.000Z | config/prod.exs | raisebook/qbot | 15ef5b00bf6b39c99e3bb728fa78093bc55ca342 | [
"MIT"
] | null | null | null | use Mix.Config
config :rollbax,
environment: "production",
enabled: true
| 13 | 28 | 0.730769 |
1d3cefbf241dfaac2478b2f6d3a569e8d79fb7dd | 674 | exs | Elixir | test/plug_rest/utils_test.exs | ashishthete/plug_rest | 0dff5e130e3627909df54cb410bb8f891e3fa60c | [
"Apache-2.0"
] | null | null | null | test/plug_rest/utils_test.exs | ashishthete/plug_rest | 0dff5e130e3627909df54cb410bb8f891e3fa60c | [
"Apache-2.0"
] | null | null | null | test/plug_rest/utils_test.exs | ashishthete/plug_rest | 0dff5e130e3627909df54cb410bb8f891e3fa60c | [
"Apache-2.0"
] | null | null | null | defmodule PlugRest.UtilsTest do
use ExUnit.Case
test "prints media type binary to string" do
media_type = "text/html"
assert PlugRest.Utils.print_media_type(media_type) == media_type
end
test "prints media type list to string" do
media_type = "text/html;charset=utf-8"
mt_list = [["text", "/",... | 25.923077 | 81 | 0.692878 |
1d3d0458e7f78759cc3845060b7e8a79bdc2a7d9 | 1,487 | ex | Elixir | kousa/lib/beef/room.ex | arthurysong/dogehouse | 2e909332cd3016763adc097bb02c18ef6c182935 | [
"MIT"
] | 1 | 2021-12-15T04:44:06.000Z | 2021-12-15T04:44:06.000Z | kousa/lib/beef/room.ex | ametow/dogehouse | 2e909332cd3016763adc097bb02c18ef6c182935 | [
"MIT"
] | null | null | null | kousa/lib/beef/room.ex | ametow/dogehouse | 2e909332cd3016763adc097bb02c18ef6c182935 | [
"MIT"
] | null | null | null | defmodule Beef.Room do
use Ecto.Schema
import Ecto.Changeset
@timestamps_opts [type: :utc_datetime_usec]
@type t :: %__MODULE__{
id: Ecto.UUID.t(),
name: String.t(),
numPeopleInside: integer(),
isPrivate: boolean(),
user: User.t() | Ecto.Association.NotLoaded.t... | 29.156863 | 93 | 0.587088 |
1d3d2f77fcb6797a7b868e190dc3f81f5011f9c5 | 690 | ex | Elixir | lib/chinese_translation/pinyin.ex | tyrchen/chinese_translation | 941e5cf842e2c08f1d0cba1684ff4f5714cade0d | [
"MIT"
] | 93 | 2015-03-04T07:22:22.000Z | 2022-03-20T08:43:30.000Z | lib/chinese_translation/pinyin.ex | tyrchen/chinese_translation | 941e5cf842e2c08f1d0cba1684ff4f5714cade0d | [
"MIT"
] | 50 | 2018-07-29T14:47:41.000Z | 2019-10-20T01:26:51.000Z | lib/chinese_translation/pinyin.ex | tyrchen/chinese_translation | 941e5cf842e2c08f1d0cba1684ff4f5714cade0d | [
"MIT"
] | 13 | 2015-03-06T14:36:53.000Z | 2022-01-12T03:46:50.000Z | defmodule ChineseTranslation.Pinyin do
@moduledoc """
Read the word/character -> pinyin file and generate
functions for matching
"""
alias ChineseTranslation.Pinyin.Util
IO.puts("Max word length used by compilation: #{Util.max_word_len()}")
Util.get_pinyin_data()
|> Stream.with_index()
|> Stream.ma... | 23 | 74 | 0.623188 |
1d3d32ee6fc4a44c62f5d5ed01a88814003a4880 | 15,971 | ex | Elixir | lib/phoenix/socket/transport.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | 2 | 2017-06-08T23:28:13.000Z | 2017-06-08T23:28:16.000Z | lib/phoenix/socket/transport.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | lib/phoenix/socket/transport.ex | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket.Transport do
@moduledoc """
API for building transports.
This module describes what is required to build a Phoenix transport.
The transport sits between the socket and channels, forwarding client
messages to channels and vice-versa.
A transport is responsible for:
* Implement... | 35.101099 | 103 | 0.681923 |
1d3d37572a85ab79ceca013aa4fb57f0cdaaa7bb | 1,479 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/blank_screen.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/blank_screen.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/blank_screen.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.468085 | 107 | 0.740365 |
1d3d4cb6bd1f87162dc6d954788346b9784f61b2 | 4,703 | ex | Elixir | core/sup_tree_common/alert_manager.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/sup_tree_common/alert_manager.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/sup_tree_common/alert_manager.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Alert.Manager do
@moduledoc """
An event manager hosting multiple `AntikytheraCore.Alert.Handler`s.
Managers are spawned per OTP application (antikythera and each gear).
Each handler has its own buffer to store... | 39.521008 | 189 | 0.707846 |
1d3d8124ae000f611a3f534881c41e9b6e7b4311 | 38,600 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/api/projects.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/api/projects.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/api/projects.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 51.742627 | 5,137 | 0.64 |
1d3e46ae597b43baf9417eb6d6a369cc43e3c1ce | 495 | ex | Elixir | lib/ash_policy_authorizer/check/selecting.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | 3 | 2020-10-06T06:36:53.000Z | 2021-09-22T13:31:53.000Z | lib/ash_policy_authorizer/check/selecting.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | 19 | 2020-06-09T05:16:13.000Z | 2021-04-20T18:27:43.000Z | lib/ash_policy_authorizer/check/selecting.ex | ash-project/ash_policy_access | a954bf12e3a65c9ea0b0eb888162064cae786cbd | [
"MIT"
] | 4 | 2020-08-27T19:12:02.000Z | 2021-12-19T22:50:35.000Z | defmodule AshPolicyAuthorizer.Check.Selecting do
@moduledoc false
use AshPolicyAuthorizer.SimpleCheck
@impl true
def describe(opts) do
"selecting #{opts[:attribute]}"
end
@impl true
def match?(_actor, %{changeset: %Ash.Changeset{} = changeset}, opts) do
Ash.Changeset.selecting?(changeset, opts[:... | 23.571429 | 73 | 0.690909 |
1d3e5eb639759c1dc573ec22c3a62e8732cc0420 | 5,007 | ex | Elixir | mix/support/normalize/normalize_number.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 179 | 2019-06-16T09:16:00.000Z | 2022-03-30T04:04:55.000Z | mix/support/normalize/normalize_number.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 46 | 2019-06-09T02:35:58.000Z | 2022-03-08T10:39:08.000Z | mix/support/normalize/normalize_number.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 14 | 2020-03-03T16:35:50.000Z | 2022-02-27T14:01:40.000Z | defmodule Cldr.Normalize.Number do
@moduledoc false
def normalize(content, locale) do
content
|> normalize_formats(locale)
|> normalize_symbols(locale)
end
@doc false
def normalize_formats(content, _locale) do
numbers = get_in(content, ["numbers"])
number_systems = number_system_names_fr... | 29.803571 | 89 | 0.661873 |
1d3e6978312bcec74cc2ef46593bd8f757c0dae0 | 3,968 | ex | Elixir | lib/framebuffer/screeninfo/fix.ex | livinginthepast/framebuffer | 4c8213ee1cadc73e232792cde05f19dd3a52e375 | [
"MIT"
] | null | null | null | lib/framebuffer/screeninfo/fix.ex | livinginthepast/framebuffer | 4c8213ee1cadc73e232792cde05f19dd3a52e375 | [
"MIT"
] | 2 | 2022-02-11T17:48:38.000Z | 2022-02-13T22:59:37.000Z | lib/framebuffer/screeninfo/fix.ex | livinginthepast/framebuffer | 4c8213ee1cadc73e232792cde05f19dd3a52e375 | [
"MIT"
] | null | null | null | defmodule Framebuffer.Screeninfo.Fix do
@moduledoc """
A representation of `fb_fix_screeninfo` as defined in `linux/fb.h`. This encapsulates
device-independent info about the buffer device and its current format. These properties
are immutable from userspace by direct calls, though they may change when the form... | 28.753623 | 97 | 0.564516 |
1d3e867b282a62b4a1a50b5a519cbfe04491f368 | 1,078 | ex | Elixir | lib/pigeon/http2/kadabra.ex | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | 1 | 2021-09-05T13:34:21.000Z | 2021-09-05T13:34:21.000Z | lib/pigeon/http2/kadabra.ex | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | null | null | null | lib/pigeon/http2/kadabra.ex | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Kadabra) do
defmodule Pigeon.Http2.Client.Kadabra do
@moduledoc false
@behaviour Pigeon.Http2.Client
def start do
Application.ensure_all_started(:kadabra)
end
def connect(uri, scheme, opts) do
host = "#{scheme}://#{uri}"
Kadabra.open(host, ssl: opts)
... | 21.137255 | 70 | 0.606679 |
1d3e878dbbaefb84ca520c7a92a7d14e4b4730d3 | 3,417 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.126761 | 206 | 0.720222 |
1d3ea77026e06849130177667d07e09b775a535f | 196 | ex | Elixir | lib/squash.ex | tell-charlie/squash | a3efcc80569f9c1d15bbca87a1b417678a778932 | [
"MIT"
] | null | null | null | lib/squash.ex | tell-charlie/squash | a3efcc80569f9c1d15bbca87a1b417678a778932 | [
"MIT"
] | null | null | null | lib/squash.ex | tell-charlie/squash | a3efcc80569f9c1d15bbca87a1b417678a778932 | [
"MIT"
] | null | null | null | defmodule Squash do
@moduledoc """
Documentation for Squash.
"""
@doc """
Hello world.
## Examples
iex> Squash.hello()
:world
"""
def hello do
:world
end
end
| 10.315789 | 27 | 0.556122 |
1d3ed9ed31dc37db1ad67f43645f580142832091 | 831 | ex | Elixir | lib/banking_api/user.ex | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | 2 | 2021-04-20T22:27:53.000Z | 2021-05-13T17:16:15.000Z | lib/banking_api/user.ex | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | lib/banking_api/user.ex | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.User do
use Ecto.Schema
import Ecto.Changeset
alias BankingApi.Account
@primary_key {:id, :binary_id, autogenerate: true}
@required [:name, :email, :age, :cpf, :nickname, :password]
schema "users" do
field :name, :string
field :email, :string
field :age, :integer
fi... | 23.083333 | 75 | 0.640193 |
1d3f1fe9fde60c846c839679defed4fc6c9c565c | 1,141 | ex | Elixir | lib/birdcage/application.ex | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 1 | 2022-02-10T13:54:39.000Z | 2022-02-10T13:54:39.000Z | lib/birdcage/application.ex | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 11 | 2020-07-10T16:05:17.000Z | 2020-08-25T23:44:34.000Z | lib/birdcage/application.ex | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 1 | 2020-08-06T18:56:52.000Z | 2020-08-06T18:56:52.000Z | defmodule Birdcage.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the repository
Birdcage.Repo,
Birdcage.EventRepo,
# Start the Telemetry s... | 27.166667 | 80 | 0.706398 |
1d3f327fb9ffec1b1ef0d04f55c5f2767c6f3a6a | 2,632 | ex | Elixir | apps/mcam_server_web/lib/mcam_server_web/live/unregistered/unregistered_cameras_live.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/mcam_server_web/lib/mcam_server_web/live/unregistered/unregistered_cameras_live.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/mcam_server_web/lib/mcam_server_web/live/unregistered/unregistered_cameras_live.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule McamServerWeb.UnregisteredCamerasLive do
@moduledoc """
Lists unregistered cameras from the same remote IP as the client.
"""
use McamServerWeb, :live_view
alias McamServer.UnregisteredCameras
def mount(_params, %{"remote_ip" => remote_ip}, socket) do
cameras = UnregisteredCameras.cameras_fr... | 28 | 100 | 0.639058 |
1d3f4187e9c9bbac66a8930b64038807847b2960 | 2,311 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_workload_resource_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_workload_resource_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_workload_resource_settings.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... | 38.516667 | 217 | 0.745997 |
1d3f4cc64df8a346723719781e9f08880e68dec8 | 71 | ex | Elixir | lib/cv_creator_web/views/super_users_view.ex | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | null | null | null | lib/cv_creator_web/views/super_users_view.ex | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | 2 | 2021-05-24T21:41:25.000Z | 2021-05-25T16:02:09.000Z | lib/cv_creator_web/views/super_users_view.ex | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | null | null | null | defmodule CvCreatorWeb.SuperUsersView do
use CvCreatorWeb, :view
end
| 17.75 | 40 | 0.830986 |
1d3f79c6324f02d7a2feab3079ec6f4bb84b9814 | 155 | ex | Elixir | lib/game/events/room_left.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/game/events/room_left.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/game/events/room_left.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Events.RoomLeft do
@moduledoc """
Event for a character entering a room
"""
defstruct [:character, :reason, type: "room/left"]
end
| 19.375 | 52 | 0.696774 |
1d3f8ad80c7e2750385f1be7a40a3a2b2654bd3f | 144 | exs | Elixir | config/dev.exs | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | config/dev.exs | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | config/dev.exs | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | use Mix.Config
config :logger, level: :debug
config :pummpcomm, :pump, Pummpcomm.Session.Pump
config :pummpcomm, :cgm, Pummpcomm.Session.Pump
| 20.571429 | 48 | 0.770833 |
1d3f9af2c1180a14678572a4833f8a5c6fd8891e | 1,871 | ex | Elixir | apps/packet/lib/packet/subscribe.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 8 | 2019-12-20T15:44:08.000Z | 2021-01-25T18:30:25.000Z | apps/packet/lib/packet/subscribe.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T17:20:00.000Z | 2019-11-08T17:20:00.000Z | apps/packet/lib/packet/subscribe.ex | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | null | null | null | defmodule Packet.Subscribe do
use Bitwise
require Logger
alias Packet.Decode
alias Packet.Encode2, as: Encode
@type qos :: 0 | 1 | 2
@type topic :: {binary(), qos}
@type topics :: [topic]
@opaque t :: %__MODULE__{
packet_id: Packet.package_identifier(),
topics: topics()
... | 25.283784 | 92 | 0.564404 |
1d3fb19b96501331281fe55974396d8ae9eb54d1 | 440 | exs | Elixir | priv/repo/migrations/20210112205743_new_unique_constraint_tasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20210112205743_new_unique_constraint_tasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20210112205743_new_unique_constraint_tasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | defmodule Erflow.Repo.Migrations.NewUniqueConstraintTasks do
use Ecto.Migration
def change do
alter table(:tasks) do
remove :job_id
end
rename table(:running_tasks), :job, to: :job_id
rename table(:running_tasks), :task, to: :task_id
create unique_index(:tasks, [:dag_id, :name], name: :... | 27.5 | 88 | 0.715909 |
1d3fb28665a88380d4048fd1d1b26bd15ae59505 | 1,154 | ex | Elixir | lib/go_champs_api_web/controllers/team_controller.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/controllers/team_controller.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/controllers/team_controller.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.TeamController do
use GoChampsApiWeb, :controller
alias GoChampsApi.Teams
alias GoChampsApi.Teams.Team
action_fallback GoChampsApiWeb.FallbackController
plug GoChampsApiWeb.Plugs.AuthorizedTeam, :id when action in [:delete, :update]
plug GoChampsApiWeb.Plugs.AuthorizedTeam, :team... | 27.47619 | 81 | 0.651646 |
1d3fe942781d39fe71eec3706948944c7a7835c5 | 4,056 | exs | Elixir | test/ex_rabbit_m_q_test.exs | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | test/ex_rabbit_m_q_test.exs | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | test/ex_rabbit_m_q_test.exs | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQTest do
@moduledoc false
use ExUnit.Case, async: false
alias ExRabbitMQ.Connection.Pool.Supervisor, as: PoolSupervisor
@defaults %{
connection_config: :test_a,
session_config: :test_basic_session,
test_message: "ExRabbitMQ test",
tester_pid: nil,
error_flag: false
}
... | 34.965517 | 101 | 0.672091 |
1d402153d17e712ae8f5c811f4c759671e1fbdc9 | 878 | ex | Elixir | lib/db/derivation.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | lib/db/derivation.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | lib/db/derivation.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | defmodule DB.Derivation do
use Ecto.Schema
import Ecto.Changeset
require Ecto.Query
schema "derivations" do
# add :stream_id, references(:streams)
# add :analysis_id, references(:analyses)
belongs_to :stream, DB.Stream
belongs_to :analysis, DB.Analysis
end
def changeset(struct, params) do
... | 25.085714 | 57 | 0.654897 |
1d40323ecd948fe14339da6770dbe63485ed068e | 5,379 | ex | Elixir | lib/rambla/connection_pool.ex | am-kantox/rambla | 961e7213da43cba7ce9d2f5f5010f3a647ea5adc | [
"MIT"
] | 4 | 2020-05-25T05:46:05.000Z | 2020-06-22T15:23:51.000Z | lib/rambla/connection_pool.ex | am-kantox/rambla | 961e7213da43cba7ce9d2f5f5010f3a647ea5adc | [
"MIT"
] | 3 | 2020-10-08T05:41:47.000Z | 2021-05-13T05:53:30.000Z | lib/rambla/connection_pool.ex | am-kantox/rambla | 961e7213da43cba7ce9d2f5f5010f3a647ea5adc | [
"MIT"
] | 1 | 2020-05-07T15:05:33.000Z | 2020-05-07T15:05:33.000Z | defmodule Rambla.ConnectionPool do
@moduledoc false
use Rambla.Telemetria
use DynamicSupervisor
@spec start_link(opts :: keyword) :: Supervisor.on_start()
def start_link(opts \\ []),
do: DynamicSupervisor.start_link(__MODULE__, opts, name: __MODULE__)
@impl DynamicSupervisor
def init(opts), do: Dyn... | 31.092486 | 96 | 0.603086 |
1d404af22e8fc90ed98c0d0f637d41965b9dc333 | 40 | ex | Elixir | testData/org/elixir_lang/parser_definition/no_parentheses_many_arguments_call_parsing_test_case/KeywordValueMatchedUnaryNonNumericOperation.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/no_parentheses_many_arguments_call_parsing_test_case/KeywordValueMatchedUnaryNonNumericOperation.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/no_parentheses_many_arguments_call_parsing_test_case/KeywordValueMatchedUnaryNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | function positional, keyword_key: -value | 40 | 40 | 0.85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.