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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f09df5cc789369fc9cf7def149183c496b6ad72 | 1,756 | ex | Elixir | lib/ace/http2/frame/5_push_promise.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | lib/ace/http2/frame/5_push_promise.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | lib/ace/http2/frame/5_push_promise.ex | CharlesOkwuagwu/Ace | e39bfbf5a99dde225d3adcf680885e0bd71a86a4 | [
"MIT"
] | null | null | null | defmodule Ace.HTTP2.Frame.PushPromise do
@moduledoc false
@enforce_keys [:stream_id, :promised_stream_id, :header_block_fragment, :end_headers]
defstruct @enforce_keys
def new(stream_id, promised_stream_id, header_block_fragment, end_headers) do
%__MODULE__{
stream_id: stream_id,
promised_strea... | 27.015385 | 103 | 0.648064 |
3f0a171f91eedc977f09026c862aab98ec6223ed | 1,734 | exs | Elixir | test/user/patch/sequence_test.exs | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 57 | 2020-04-22T00:19:04.000Z | 2022-03-20T11:57:00.000Z | test/user/patch/sequence_test.exs | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 9 | 2021-10-29T20:54:56.000Z | 2022-02-19T03:41:01.000Z | test/user/patch/sequence_test.exs | kianmeng/patch | d7d8d70a0285129ec67a43473db587011524fe0c | [
"MIT"
] | 2 | 2021-07-02T14:41:48.000Z | 2022-01-12T11:47:26.000Z | defmodule Patch.Test.User.Patch.SequenceTest do
use ExUnit.Case
use Patch
alias Patch.Test.Support.User.Patch.Sequence
describe "patch/3 with sequence" do
test "empty sequence always returns nil" do
assert Sequence.example() == :original
patch(Sequence, :example, sequence([]))
assert i... | 27.09375 | 80 | 0.644175 |
3f0a1c74b186f1e48f9888d14b7df415d0d29065 | 1,039 | exs | Elixir | config/config.exs | abhishekkr/sample_phoenix_server | 4956d059f329c07fa1492feb1c280711105bc7d9 | [
"MIT"
] | null | null | null | config/config.exs | abhishekkr/sample_phoenix_server | 4956d059f329c07fa1492feb1c280711105bc7d9 | [
"MIT"
] | null | null | null | config/config.exs | abhishekkr/sample_phoenix_server | 4956d059f329c07fa1492feb1c280711105bc7d9 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :hello_phoenix,
ecto_repos: [HelloPhoen... | 33.516129 | 86 | 0.777671 |
3f0a2061819573b2a54ed948d2c91b18fda05bf2 | 67 | ex | Elixir | emporium/lib/emporium/repo.ex | sbezugliy/couchdb_elixir | 2fdcb1617918324315a2217b2d1567e9a2c68558 | [
"Apache-2.0"
] | null | null | null | emporium/lib/emporium/repo.ex | sbezugliy/couchdb_elixir | 2fdcb1617918324315a2217b2d1567e9a2c68558 | [
"Apache-2.0"
] | null | null | null | emporium/lib/emporium/repo.ex | sbezugliy/couchdb_elixir | 2fdcb1617918324315a2217b2d1567e9a2c68558 | [
"Apache-2.0"
] | null | null | null | defmodule Emporium.Repo do
use Ecto.Repo, otp_app: :emporium
end
| 16.75 | 35 | 0.776119 |
3f0a2a1b831b09fc85ee4a04ed40f80704dce665 | 579 | ex | Elixir | lib/listener_web/router.ex | jeffreyksmithjr/listener | 9e8829c41db09f32639b7f80741b26bb06b57428 | [
"MIT"
] | null | null | null | lib/listener_web/router.ex | jeffreyksmithjr/listener | 9e8829c41db09f32639b7f80741b26bb06b57428 | [
"MIT"
] | null | null | null | lib/listener_web/router.ex | jeffreyksmithjr/listener | 9e8829c41db09f32639b7f80741b26bb06b57428 | [
"MIT"
] | null | null | null | defmodule ListenerWeb.Router do
use ListenerWeb, :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 "/", ListenerWeb do
pi... | 20.678571 | 57 | 0.683938 |
3f0a3380206fe48f5f6160e66e83ebc32dd1a7c6 | 308 | exs | Elixir | test/pushex/app_manager_test.exs | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | 69 | 2016-03-29T15:35:29.000Z | 2018-06-27T14:57:23.000Z | test/pushex/app_manager_test.exs | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | 9 | 2016-04-29T09:14:49.000Z | 2017-10-31T02:08:14.000Z | test/pushex/app_manager_test.exs | talkjs/pushex | e9f4d5c4d4df8165e0e712443c688e97d8d27c1e | [
"MIT"
] | 6 | 2016-08-26T12:56:05.000Z | 2018-06-21T23:51:00.000Z | defmodule Pushex.AppManagerTest do
use Pushex.Case
defmodule DummyAppManager do
def find_app(_, _), do: "dummy"
end
test "app_manager delegates to impl" do
Application.put_env(:pushex, :app_manager_impl, DummyAppManager)
assert Pushex.AppManager.find_app(nil, nil) == "dummy"
end
end
| 23.692308 | 68 | 0.737013 |
3f0a42138b2167dbd7ab0dc6c79dddc207ff2821 | 1,318 | exs | Elixir | config/dev.exs | Swuber/Epik-Club | 0e56e602f0934e0e6225c7456bcb37f5b852be2d | [
"Apache-2.0"
] | 2 | 2017-04-23T17:31:55.000Z | 2017-07-22T12:54:24.000Z | config/dev.exs | Swuber/Epik-Club | 0e56e602f0934e0e6225c7456bcb37f5b852be2d | [
"Apache-2.0"
] | 7 | 2017-04-11T18:42:57.000Z | 2017-04-16T22:54:11.000Z | config/dev.exs | MichaelDimmitt/unf-swuber | 7c205c6e80bcc3ef4ee55490ad497061253bcc61 | [
"Apache-2.0"
] | 3 | 2017-08-10T22:54:28.000Z | 2018-10-18T22:32:55.000Z | 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 :unf_swuber, UnfSwuber.Endpoint,
http: [port: ... | 29.954545 | 73 | 0.698027 |
3f0a5458e223154f556b40e78c6e70a78847d101 | 2,125 | ex | Elixir | lib/guilda_web/views/error_helpers.ex | wilcorrea-forks/GuildaEx | ef3876cf51c7555da713535c965f39a1f0622054 | [
"MIT"
] | 10 | 2020-09-05T20:25:05.000Z | 2022-01-28T14:02:36.000Z | lib/guilda_web/views/error_helpers.ex | wilcorrea-forks/GuildaEx | ef3876cf51c7555da713535c965f39a1f0622054 | [
"MIT"
] | 11 | 2020-09-07T01:09:55.000Z | 2022-02-06T00:58:48.000Z | lib/guilda_web/views/error_helpers.ex | wilcorrea-forks/GuildaEx | ef3876cf51c7555da713535c965f39a1f0622054 | [
"MIT"
] | 3 | 2020-10-03T01:53:08.000Z | 2022-01-28T14:03:09.000Z | defmodule GuildaWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.19697 | 181 | 0.641882 |
3f0ac1069351cc342b99f96bbfac549c34e39d98 | 2,759 | ex | Elixir | clients/books/lib/google_api/books/v1/model/usersettings_notification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/usersettings_notification.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/usersettings_notification.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... | 43.793651 | 99 | 0.772019 |
3f0ad63a1499fac1b48d46c08396d413d6b18ca1 | 67 | exs | Elixir | test/test_helper.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/test_helper.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/test_helper.exs | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Mibli.Repo, :manual)
| 22.333333 | 51 | 0.776119 |
3f0b0e003845141aea411bd59eb8e30c6e95927b | 2,014 | ex | Elixir | lib/meta/intro.ex | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | 1 | 2021-04-21T16:16:59.000Z | 2021-04-21T16:16:59.000Z | lib/meta/intro.ex | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | null | null | null | lib/meta/intro.ex | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | null | null | null | defmodule Meta.Intro do
@moduledoc """
## AST
Types that are preserved as is in the AST:
atoms, integers, floats, lists, strings,
and any two-element tuples containing the former types
## Useful functions
- `Code.eval_quoted` - evalutes quoted expression
- `Macro.expand_once/2` - expands macros once
... | 23.97619 | 85 | 0.4429 |
3f0b232e21b2c2682b3843e5e74cee50bbdf3b43 | 3,937 | ex | Elixir | lib/go_champs_api_web/router.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/router.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/router.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.Router do
use GoChampsApiWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
pipeline :auth do
plug GoChampsApiWeb.Auth.Pipeline
end
scope "/api/swagger" do
forward "/organization", PhoenixSwagger.Plug.SwaggerUI,
otp_app: :go_champs_api,
swagger_file... | 33.364407 | 98 | 0.699771 |
3f0b78447e40d37549929d84f61291c4fc6fe9ac | 22,731 | ex | Elixir | lib/stun.ex | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 7 | 2018-12-10T13:50:05.000Z | 2020-10-20T14:16:42.000Z | lib/stun.ex | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | null | null | null | lib/stun.ex | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 4 | 2019-01-09T17:46:44.000Z | 2020-02-02T12:00:04.000Z | ### ----------------------------------------------------------------------
###
### Heavily modified version of Peter Lemenkov's STUN encoder. Big ups go to him
### for his excellent work in this area.
###
### @maintainer: Lee Sylvester <lee.sylvester@gmail.com>
###
### Copyright (c) 2012 Peter Lemenkov <lemenkov@gmail.... | 36.080952 | 293 | 0.605649 |
3f0ba03a294773e97f2e666190ee91685ec249d9 | 943 | exs | Elixir | languages/elixir/mix.exs | OneToolsCollection/tangramdotdev-tangram | 666343a87b88a1c1b34a4be2298f6aa54f0fc2eb | [
"MIT"
] | null | null | null | languages/elixir/mix.exs | OneToolsCollection/tangramdotdev-tangram | 666343a87b88a1c1b34a4be2298f6aa54f0fc2eb | [
"MIT"
] | null | null | null | languages/elixir/mix.exs | OneToolsCollection/tangramdotdev-tangram | 666343a87b88a1c1b34a4be2298f6aa54f0fc2eb | [
"MIT"
] | null | null | null | defmodule ModelFox.MixProject do
use Mix.Project
def project do
[
app: :modelfox,
build_embedded: Mix.env() == :prod,
deps: [
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:httpoison, "~> 1.7"},
{:jason, "... | 27.735294 | 92 | 0.529162 |
3f0bbf197bcf81b574b153e4a59dc2cacad842b9 | 4,337 | ex | Elixir | lib/type_check/spec.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/spec.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/spec.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | defmodule TypeCheck.Spec do
defstruct [:name, :param_types, :return_type]
defp spec_fun_name(function, arity) do
:"__type_check_spec_for_#{function}/#{arity}__"
end
def lookup(module, function, arity) do
Code.ensure_loaded(module)
if function_exported?(module, spec_fun_name(function, arity), 0) d... | 29.304054 | 101 | 0.65045 |
3f0c06c37a3a2b0f298f1bd277c62a3b12c8639f | 405 | ex | Elixir | lib/review/employee_review.ex | scdehmlow/dealer-reviews | cc106e90e4c460c0484991078e2b966b1b367889 | [
"MIT"
] | null | null | null | lib/review/employee_review.ex | scdehmlow/dealer-reviews | cc106e90e4c460c0484991078e2b966b1b367889 | [
"MIT"
] | null | null | null | lib/review/employee_review.ex | scdehmlow/dealer-reviews | cc106e90e4c460c0484991078e2b966b1b367889 | [
"MIT"
] | null | null | null | defmodule DealerReviews.Review.EmployeeReview do
# TODO: module docs clarify that rating here can be null
defstruct name: "", rating: nil
@type t :: %__MODULE__{
name: String.t(),
rating: integer
}
def create(name, rating) do
%__MODULE__{
name: name,
rating: rating
... | 17.608696 | 58 | 0.597531 |
3f0c36ce6d6c18c785b0b761632c189f171536b2 | 3,474 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/blog.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/blog.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/blog.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.855422 | 130 | 0.657168 |
3f0c3b233f3238d86092ecc87b001d8d06ae9be3 | 1,190 | exs | Elixir | mix.exs | ruby2elixir/Elixir | a23cce2e3d63ebaca62e3346d21af1c47aac223b | [
"MIT"
] | 1 | 2020-08-26T02:07:29.000Z | 2020-08-26T02:07:29.000Z | mix.exs | ruby2elixir/Elixir | a23cce2e3d63ebaca62e3346d21af1c47aac223b | [
"MIT"
] | null | null | null | mix.exs | ruby2elixir/Elixir | a23cce2e3d63ebaca62e3346d21af1c47aac223b | [
"MIT"
] | 1 | 2020-08-26T02:07:30.000Z | 2020-08-26T02:07:30.000Z | defmodule Puid.Mixfile do
use Mix.Project
def project do
[
app: :puid,
version: "1.1.1",
elixir: "~> 1.8",
deps: deps(),
description: description(),
package: package()
]
end
defp deps do
[
{:crypto_rand, "~> 1.0"},
{:earmark, "~> 1.2", only: :dev},
... | 24.791667 | 166 | 0.530252 |
3f0c65c9caddcd62c108782f3e3bf3c812b7217e | 3,174 | ex | Elixir | lib/teiserver/battle/lobby/lobby_cache.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver/battle/lobby/lobby_cache.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver/battle/lobby/lobby_cache.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | defmodule Teiserver.Battle.LobbyCache do
alias Phoenix.PubSub
alias Teiserver.Coordinator
import Central.Helpers.NumberHelper, only: [int_parse: 1]
alias Teiserver.Battle.Lobby
alias Teiserver.Data.Types, as: T
@spec update_lobby(T.lobby(), nil | atom, any) :: T.lobby()
def update_lobby(battle, nil, _) d... | 24.796875 | 61 | 0.643667 |
3f0c7040554ddfe1397b922cd45973066a2626c7 | 2,091 | ex | Elixir | lib/docusign/model/new_account_definition.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/new_account_definition.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/new_account_definition.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.NewAccountDefinition do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:accountName,
:accountSettings,
... | 32.169231 | 98 | 0.700143 |
3f0c7681cf3fa07f1cfbbe65afb44523043a267e | 4,938 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/adclients.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/adclients.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/adclients.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.47541 | 201 | 0.690968 |
3f0c8e2d4dfadb1921f3823818dd947b91883c92 | 2,005 | exs | Elixir | apps/gapi/test/gapi/accounts_test.exs | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi/test/gapi/accounts_test.exs | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi/test/gapi/accounts_test.exs | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | defmodule Gapi.AccountsTest do
use Gapi.DataCase
alias Gapi.Accounts
describe "users" do
alias Gapi.Accounts.User
@valid_attrs %{email: "some email", name: "some name"}
@update_attrs %{email: "some updated email", name: "some updated name"}
@invalid_attrs %{email: nil, name: nil}
def user_... | 29.925373 | 85 | 0.648379 |
3f0cbbcad046b83e9f41a6f4d1cb5b4dd4fb37f8 | 10,763 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/api/action_results.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/api/action_results.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/api/action_results.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... | 52.247573 | 558 | 0.656694 |
3f0ceacdd7ad213e9661b3b17e618b335aa0bfb9 | 1,662 | exs | Elixir | mix.exs | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | mix.exs | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | mix.exs | jeojoe/catapalt-chat | 1a8c94bb38535d517837e1e9c53d2e8de0f2b7ae | [
"Apache-2.0"
] | null | null | null | defmodule CatapaltChat.Mixfile do
use Mix.Project
def project do
[app: :catapalt_chat,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 30.218182 | 89 | 0.605897 |
3f0cfbbb79d37b597db91e730e4d6bcbea6e5f8e | 1,146 | exs | Elixir | config/config.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | config/config.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | config/config.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :logger, level: :debug
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't... | 34.727273 | 73 | 0.753054 |
3f0d0d9e09948683b87bd030d6a504335238f20e | 1,465 | exs | Elixir | test/ecto/adapters/duckdb_test.exs | mpope9/ecto_duckdb | 9cde0c76ac35cab65bf569bbfe90c1dd4999b94c | [
"MIT"
] | 2 | 2021-12-04T08:38:19.000Z | 2021-12-04T23:52:21.000Z | test/ecto/adapters/duckdb_test.exs | mpope9/ecto_duckdb | 9cde0c76ac35cab65bf569bbfe90c1dd4999b94c | [
"MIT"
] | null | null | null | test/ecto/adapters/duckdb_test.exs | mpope9/ecto_duckdb | 9cde0c76ac35cab65bf569bbfe90c1dd4999b94c | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.DuckDBTest do
use ExUnit.Case
alias Ecto.Adapters.DuckDB
describe ".storage_up/1" do
test "create database" do
opts = [database: Temp.path!()]
assert DuckDB.storage_up(opts) == :ok
assert File.exists?(opts[:database])
File.rm(opts[:database])
end
te... | 26.636364 | 88 | 0.624573 |
3f0d13302c2eb7bd23558af6acc65df67b703a46 | 3,222 | ex | Elixir | backend/test/support/test_helpers.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/test/support/test_helpers.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/test/support/test_helpers.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule Getaways.TestHelpers do
alias Getaways.Repo
alias Getaways.Vacation.{Place, Booking, Review}
alias Getaways.Accounts.User
def user(username) do
Getaways.Repo.get_by!(User, username: username)
end
def place(name) do
Getaways.Repo.get_by!(Place, name: name)
end
def user_fixture(attrs... | 23.518248 | 59 | 0.552142 |
3f0d1d9cc48b621eb42c0c52668c1f2fcde98de2 | 3,069 | exs | Elixir | test/oban/crontab/crontab_test.exs | tonjo/oban | 9b1a6edfec2a4d225ab6969f8886dc021e2df34c | [
"Apache-2.0"
] | null | null | null | test/oban/crontab/crontab_test.exs | tonjo/oban | 9b1a6edfec2a4d225ab6969f8886dc021e2df34c | [
"Apache-2.0"
] | null | null | null | test/oban/crontab/crontab_test.exs | tonjo/oban | 9b1a6edfec2a4d225ab6969f8886dc021e2df34c | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Crontab.CronTest do
use Oban.Case, async: true
alias Oban.Crontab.Cron
describe "parse!/1" do
property "literal values and aliases are parsed" do
check all minutes <- integer(0..59),
hours <- integer(0..23),
days <- integer(1..31),
months ... | 30.386139 | 93 | 0.545129 |
3f0d271f6db5752abd409253fba472975290bc6f | 2,004 | exs | Elixir | space-age/space_age_test.exs | prashantpawar/exercism_workout | 4159b90dcf0734eb9730007480fd1b7788748807 | [
"MIT"
] | 2 | 2017-05-19T18:31:38.000Z | 2017-05-19T18:31:41.000Z | space-age/space_age_test.exs | prashantpawar/exercism_workout | 4159b90dcf0734eb9730007480fd1b7788748807 | [
"MIT"
] | null | null | null | space-age/space_age_test.exs | prashantpawar/exercism_workout | 4159b90dcf0734eb9730007480fd1b7788748807 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("space_age.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
# You need to define a SpaceAge module containing a function age_on that given a
# planet (:earth, :saturn, etc) and a number of seconds returns the age in years
... | 28.628571 | 80 | 0.702595 |
3f0d2b04ac968e3b01c525c97e02b0ea1e858998 | 1,562 | exs | Elixir | mix.exs | c-brenn/telemetry_metrics_prometheus_core | cd8bea3df0c0b4c6aaad5c2b7d42760cbadf0c07 | [
"Apache-2.0"
] | null | null | null | mix.exs | c-brenn/telemetry_metrics_prometheus_core | cd8bea3df0c0b4c6aaad5c2b7d42760cbadf0c07 | [
"Apache-2.0"
] | null | null | null | mix.exs | c-brenn/telemetry_metrics_prometheus_core | cd8bea3df0c0b4c6aaad5c2b7d42760cbadf0c07 | [
"Apache-2.0"
] | null | null | null | defmodule TelemetryMetricsPrometheus.Core.MixProject do
use Mix.Project
@version "0.4.1"
def project do
[
app: :telemetry_metrics_prometheus_core,
version: @version,
elixir: "~> 1.6",
preferred_cli_env: preferred_cli_env(),
start_permanent: Mix.env() == :prod,
deps: deps(... | 22.637681 | 97 | 0.598592 |
3f0d4c8f844ae4c7c9a614331ecdf89233e92e01 | 5,256 | ex | Elixir | lib/zxcvbn/feedback.ex | techgaun/zxcvbn-elixir | aede1d49d39e89d7b3d1c381de5f04c9907d8171 | [
"Apache-2.0"
] | 31 | 2019-03-15T07:51:52.000Z | 2022-03-01T03:57:55.000Z | lib/zxcvbn/feedback.ex | techgaun/zxcvbn-elixir | aede1d49d39e89d7b3d1c381de5f04c9907d8171 | [
"Apache-2.0"
] | 16 | 2018-02-04T17:05:52.000Z | 2021-08-02T15:11:56.000Z | lib/zxcvbn/feedback.ex | techgaun/zxcvbn-elixir | aede1d49d39e89d7b3d1c381de5f04c9907d8171 | [
"Apache-2.0"
] | 5 | 2019-03-31T23:39:22.000Z | 2021-08-02T09:50:43.000Z | defmodule ZXCVBN.Feedback do
@moduledoc """
Feedback module to produce warning and suggestions
"""
import ZXCVBN.Utils,
only: [
strlen: 1
]
import ZXCVBN.Scoring,
only: [
re_start_upper: 0,
re_all_upper: 0
]
import ZXCVBN.MessageFormatter, only: [format: 1]
@empty_fee... | 24.792453 | 98 | 0.578196 |
3f0d570fe04af510b4b4b39cac5a4fa74e37120f | 590 | exs | Elixir | server/config/releases.exs | lahuddu/realtime | cb111d8806c16b8da2081444ac3dcd9f276ceae2 | [
"Apache-2.0"
] | 1 | 2021-06-08T05:13:51.000Z | 2021-06-08T05:13:51.000Z | server/config/releases.exs | lahuddu/realtime | cb111d8806c16b8da2081444ac3dcd9f276ceae2 | [
"Apache-2.0"
] | 1 | 2021-06-09T07:27:30.000Z | 2021-06-09T07:27:30.000Z | server/config/releases.exs | lahuddu/realtime | cb111d8806c16b8da2081444ac3dcd9f276ceae2 | [
"Apache-2.0"
] | 2 | 2021-06-08T05:01:10.000Z | 2021-06-09T06:23:34.000Z | import Config
app_port = System.get_env("PORT") || 4000
app_hostname = System.get_env("HOSTNAME") || "localhost"
db_user = System.get_env("DB_USER") || "postgres"
db_password = System.get_env("DB_PASSWORD") || "postgres"
db_host = System.get_env("DB_HOST") || "localhost"
db_port = System.get_env("DB_PORT") || 5432
db_... | 29.5 | 57 | 0.728814 |
3f0d7bb0a3a1f81353311778881ca748c29366b9 | 932 | ex | Elixir | lib/mmo_game_web/views/layout_view.ex | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | null | null | null | lib/mmo_game_web/views/layout_view.ex | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | 2 | 2021-03-10T11:57:02.000Z | 2021-05-11T07:36:34.000Z | lib/mmo_game_web/views/layout_view.ex | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | null | null | null | defmodule MmoGameWeb.LayoutView do
use MmoGameWeb, :view
@doc """
Declaratively builds up a classname from a map of `optional`
strings and a `required` string. This is essentially a port
of the popular JavaScript package.
## Examples
iex> optional = %{"alert-dismissible" => true}
...> require... | 27.411765 | 84 | 0.619099 |
3f0d7e4897297f4c83bbab6df8648c1cb148c826 | 68 | exs | Elixir | api/test/test_helper.exs | kevcisme/locals | 042d5c691c5bd29e0d040d03782ee294db8a8380 | [
"MIT"
] | null | null | null | api/test/test_helper.exs | kevcisme/locals | 042d5c691c5bd29e0d040d03782ee294db8a8380 | [
"MIT"
] | null | null | null | api/test/test_helper.exs | kevcisme/locals | 042d5c691c5bd29e0d040d03782ee294db8a8380 | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Locals.Repo, :manual)
| 13.6 | 52 | 0.779412 |
3f0d9015f7ac5826ab2fa06bcc7bf5e35db2fa2f | 1,708 | exs | Elixir | mix.exs | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 5 | 2021-06-23T17:46:08.000Z | 2022-02-23T21:12:06.000Z | mix.exs | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | null | null | null | mix.exs | vacarsu/snap_framework | 2dd3a6c77a01e85b8cd5c9566e27bf3fe4eb433e | [
"MIT"
] | 1 | 2021-08-02T13:33:17.000Z | 2021-08-02T13:33:17.000Z | defmodule SnapFramework.MixProject do
use Mix.Project
@version "0.1.0-beta"
@github "https://github.com/vacarsu/snap_framework"
def project do
[
app: :snap_framework,
name: "SnapFramework",
version: @version,
elixir: "~> 1.12",
package: package(),
description: descripti... | 21.08642 | 62 | 0.536885 |
3f0da162d26d0ada3ac973f43495a0047029ae9a | 2,463 | ex | Elixir | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/file.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/file.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/file.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... | 39.725806 | 160 | 0.696305 |
3f0dc0f8699d80e4f2bc37288df0f3d0143b498b | 1,967 | exs | Elixir | config/dev.exs | ivanmauricio/widget-spike | a084fb75904b81b360443de2910911cf1f98b1cf | [
"MIT"
] | 2 | 2017-07-24T09:35:32.000Z | 2018-03-04T05:35:54.000Z | config/dev.exs | ivanmauricio/phoenix-boilerplate | a084fb75904b81b360443de2910911cf1f98b1cf | [
"MIT"
] | null | null | null | config/dev.exs | ivanmauricio/phoenix-boilerplate | a084fb75904b81b360443de2910911cf1f98b1cf | [
"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 :boilerplate, Boilerplate.Web.Endpoint,
http: ... | 33.338983 | 170 | 0.70666 |
3f0dc5c36d2fb43e176e73da04496ff2bcf266d7 | 3,298 | exs | Elixir | test/fixed_encoding_test.exs | xinz/crockford_base32 | 28e8e231a10db82ba8fd7cb3c93ccd87c739f331 | [
"MIT"
] | null | null | null | test/fixed_encoding_test.exs | xinz/crockford_base32 | 28e8e231a10db82ba8fd7cb3c93ccd87c739f331 | [
"MIT"
] | null | null | null | test/fixed_encoding_test.exs | xinz/crockford_base32 | 28e8e231a10db82ba8fd7cb3c93ccd87c739f331 | [
"MIT"
] | null | null | null | defmodule CrockfordBase32FixedEncodingTest do
use ExUnit.Case
alias CrockfordBase32.Encoding
test "encode 8-bits" do
assert Encoding.Fixed8.encode("b") == CrockfordBase32.encode("b")
assert Encoding.Fixed8.encode("c") == CrockfordBase32.encode("c")
assert Encoding.Fixed8.encode("z") == CrockfordBase... | 35.085106 | 92 | 0.682232 |
3f0df5191db4a0bce1cc95f45724516b361f71c8 | 2,888 | ex | Elixir | lib/multitenancy.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 13 | 2020-09-04T22:31:23.000Z | 2022-02-06T13:24:23.000Z | lib/multitenancy.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 57 | 2019-12-04T15:23:41.000Z | 2022-02-14T22:55:16.000Z | lib/multitenancy.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 15 | 2020-10-22T13:26:25.000Z | 2021-07-26T23:49:42.000Z | defmodule AshPostgres.MultiTenancy do
@moduledoc "Helpers used to manage multitenancy"
@dialyzer {:nowarn_function, load_migration!: 1}
@tenant_name_regex ~r/^[a-zA-Z0-9_-]+$/
def create_tenant!(tenant_name, repo) do
# This is done in a task, and manually cleaned up, because the
# ecto migrator runs i... | 28.594059 | 91 | 0.658934 |
3f0e1112fe3d10f44214113fba9759b94fb64351 | 5,095 | ex | Elixir | lib/auto_api/command.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/command.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/command.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 41.762295 | 173 | 0.702846 |
3f0e1cb8d4c416342d3f2c2da58295c5b1022334 | 570 | ex | Elixir | exercism/secrets/secrets.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/secrets/secrets.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/secrets/secrets.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule Secrets do
def secret_add(secret) do
fn n -> n + secret end
end
def secret_subtract(secret) do
fn n -> n - secret end
end
def secret_multiply(secret) do
fn n -> n * secret end
end
def secret_divide(secret) do
fn n -> div(n, secret) end
end
def secret_and(secret) do
fn... | 19 | 63 | 0.65614 |
3f0e247159de4b3a8dc540bba711034745e57b47 | 12,009 | exs | Elixir | lib/elixir/test/elixir/kernel/raise_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/kernel/raise_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/kernel/raise_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.RaiseTest do
use ExUnit.Case, async: true
# Silence warnings
defp atom, do: RuntimeError
defp binary, do: "message"
defp opts, do: [message: "message"]
defp struct, do: %RuntimeError{message: "message"}
@compile {:no_warn_undefined, DoNo... | 21.105448 | 127 | 0.543093 |
3f0e43afc6737d4e96ffa18fccb4f67426c5dbae | 1,129 | exs | Elixir | config/config.exs | Jwsonic/shop_deed | 1c70631976c3e0da473ec6ff1f4d7f9988c5b33a | [
"Apache-2.0"
] | null | null | null | config/config.exs | Jwsonic/shop_deed | 1c70631976c3e0da473ec6ff1f4d7f9988c5b33a | [
"Apache-2.0"
] | null | null | null | config/config.exs | Jwsonic/shop_deed | 1c70631976c3e0da473ec6ff1f4d7f9988c5b33a | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.751107 |
3f0e5c28fd2451315fe5162d1224a9368e77cb1f | 594 | ex | Elixir | lib/overpex.ex | brunoasantos/overpex | 4ba2697ead3a562255ee1e6e79e4ef23fa3f4a68 | [
"MIT"
] | null | null | null | lib/overpex.ex | brunoasantos/overpex | 4ba2697ead3a562255ee1e6e79e4ef23fa3f4a68 | [
"MIT"
] | null | null | null | lib/overpex.ex | brunoasantos/overpex | 4ba2697ead3a562255ee1e6e79e4ef23fa3f4a68 | [
"MIT"
] | 1 | 2022-02-17T15:50:47.000Z | 2022-02-17T15:50:47.000Z | defmodule Overpex do
@moduledoc """
Provides a function to query and parse response from Overpass API
"""
@doc """
Query Overpass API and parse response
## Return values
If the query is successfull, the function returns `{:ok, response}`, where `response` is an `Overpex.Response` struct. If an error oc... | 29.7 | 228 | 0.676768 |
3f0e658a849ac95ff83bcfb2a9a7996dd987877d | 535 | ex | Elixir | lib/scitree/predictions.ex | jeantux/scitree | 21125e2e1dec46eb480e7e545392d0e1a831758e | [
"Apache-2.0"
] | 1 | 2022-03-12T20:01:36.000Z | 2022-03-12T20:01:36.000Z | lib/scitree/predictions.ex | jeantux/scitree | 21125e2e1dec46eb480e7e545392d0e1a831758e | [
"Apache-2.0"
] | 1 | 2022-03-01T21:22:08.000Z | 2022-03-02T17:01:46.000Z | lib/scitree/predictions.ex | jeantux/scitree | 21125e2e1dec46eb480e7e545392d0e1a831758e | [
"Apache-2.0"
] | null | null | null | defmodule Scitree.Predictions do
@doc """
Convert probabilities to predicted class.
This function will return the index of the class it is likely to be.
The zero value in Yggdrasil is reserved for values outside the dictionary.
## Examples
iex> pred = Nx.tensor([[0.01, 0.98, 0.1], [0.00, 0.01, 0.99]])
... | 24.318182 | 76 | 0.652336 |
3f0e795fc7bab7e0dc15c355331fe459471fc25f | 229 | ex | Elixir | lib/imagineer/format_detector.ex | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 103 | 2015-01-28T19:09:42.000Z | 2018-10-22T15:05:46.000Z | lib/imagineer/format_detector.ex | tyre/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 12 | 2015-07-11T05:12:41.000Z | 2018-07-21T04:42:47.000Z | lib/imagineer/format_detector.ex | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 18 | 2015-06-16T15:48:34.000Z | 2018-06-22T02:34:40.000Z | defmodule Imagineer.FormatDetector do
@png_signature <<137::size(8), ?P, ?N, ?G, 13::size(8), 10::size(8), 26::size(8), 10::size(8)>>
def detect(<<@png_signature, _rest::binary>>), do: :png
def detect(_), do: :unknown
end
| 32.714286 | 97 | 0.637555 |
3f0e876ecfe8a399713685c9926aa4c80511fca4 | 4,085 | ex | Elixir | lib/data/node_metric.ex | brsg/telluride_pipeline | e5701ee7e750b80b114f248519c95fbb3ed5fd7b | [
"Apache-2.0"
] | null | null | null | lib/data/node_metric.ex | brsg/telluride_pipeline | e5701ee7e750b80b114f248519c95fbb3ed5fd7b | [
"Apache-2.0"
] | null | null | null | lib/data/node_metric.ex | brsg/telluride_pipeline | e5701ee7e750b80b114f248519c95fbb3ed5fd7b | [
"Apache-2.0"
] | null | null | null | defmodule TelluridePipeline.Data.NodeMetric do
require Logger
alias __MODULE__
alias TelluridePipeline.Metrics.SimpleMovingAverage
@high_value 1_000_000_000_000
@sma_size 60
defstruct [
node_type: nil,
name: nil,
partition: nil,
call_count: nil,
msg_count: nil,
last_duration: nil,... | 29.388489 | 111 | 0.681518 |
3f0e9aee606648a12f4c433687b9d7d5afae16e0 | 2,178 | ex | Elixir | lib/chat_api/notes.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | lib/chat_api/notes.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | lib/chat_api/notes.ex | Tiamat-Tech/papercups | f17d2b0ce080c0edab92a4b2e6d4afcef04aa291 | [
"MIT"
] | null | null | null | defmodule ChatApi.Notes do
@moduledoc """
The Notes context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.Notes.Note
# TODO: remove and replace with `list_notes_by_account/2`
@spec list_notes_for_customer(account_id: binary, customer_id: binary) :: [Note.t()]
def list_notes_f... | 28.657895 | 86 | 0.631772 |
3f0eae496d096629088f4db1b64bb18c903d90a8 | 1,138 | ex | Elixir | lib/es_client/utils.ex | tlux/es_client | 6336dfab012d2d7ed5339c84d2f6c5f298d79f28 | [
"MIT"
] | null | null | null | lib/es_client/utils.ex | tlux/es_client | 6336dfab012d2d7ed5339c84d2f6c5f298d79f28 | [
"MIT"
] | null | null | null | lib/es_client/utils.ex | tlux/es_client | 6336dfab012d2d7ed5339c84d2f6c5f298d79f28 | [
"MIT"
] | null | null | null | defmodule ESClient.Utils do
@moduledoc false
alias ESClient.Config
@separator "/"
@spec build_url(
config :: Config.t(),
location :: nil | ESClient.location()
) :: URI.t() | no_return
def build_url(config, location)
def build_url(%{base_url: nil}, _location) do
raise Argu... | 21.074074 | 68 | 0.652021 |
3f0ed66afe392c4299379083ec8fad6082530f24 | 903 | ex | Elixir | lib/surface/components/form/text_input.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | lib/surface/components/form/text_input.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | lib/surface/components/form/text_input.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.TextInput do
@moduledoc """
Generates a text input.
Provides a wrapper for Phoenix.HTML.Form's `text_input/3` function.
All options passed via `opts` will be sent to `text_input/3`, `value` and
`class` can be set directly and will override anything in `opts`.
## Example... | 22.02439 | 75 | 0.647841 |
3f0ee0a0c02529b8d0c9bc58bc4c9f08bc10e057 | 4,170 | ex | Elixir | lib/tz_world/backend/dets_with_index_cache.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | lib/tz_world/backend/dets_with_index_cache.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | lib/tz_world/backend/dets_with_index_cache.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | defmodule TzWorld.Backend.DetsWithIndexCache do
@moduledoc false
@behaviour TzWorld.Backend
use GenServer
alias Geo.Point
@timeout 10_000
@tz_world_version :tz_world_version
@doc false
def start_link(options \\ []) do
GenServer.start_link(__MODULE__, options, name: __MODULE__)
end
def init... | 26.392405 | 83 | 0.630456 |
3f0f3948dc0f504949f75adec502ffccedc9cd7e | 3,007 | ex | Elixir | lib/honeybadger/logger.ex | GhostGroup/honeybadger-elixir | ac2974e7034a3c5bad2720975d4d6b52e4d6d8c3 | [
"MIT"
] | null | null | null | lib/honeybadger/logger.ex | GhostGroup/honeybadger-elixir | ac2974e7034a3c5bad2720975d4d6b52e4d6d8c3 | [
"MIT"
] | 21 | 2021-08-02T16:20:13.000Z | 2022-03-23T20:07:41.000Z | lib/honeybadger/logger.ex | GhostGroup/honeybadger-elixir | ac2974e7034a3c5bad2720975d4d6b52e4d6d8c3 | [
"MIT"
] | 1 | 2019-03-02T16:04:57.000Z | 2019-03-02T16:04:57.000Z | defmodule Honeybadger.Logger do
alias Honeybadger.Breadcrumbs.{Collector, Breadcrumb}
@moduledoc false
@behaviour :gen_event
@impl true
def init(__MODULE__) do
init({__MODULE__, []})
end
def init({__MODULE__, opts}) when is_list(opts) do
{:ok, %{level: opts[:level]}}
end
@impl true
def ... | 24.85124 | 98 | 0.657133 |
3f0f44216f9ef1fe2827ac2344feb8ba8f1ce32a | 2,280 | exs | Elixir | test/tesla/middleware/logger_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | test/tesla/middleware/logger_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | test/tesla/middleware/logger_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.LoggerTest do
use ExUnit.Case, async: false
defmodule Client do
use Tesla
plug Tesla.Middleware.Logger
plug Tesla.Middleware.DebugLogger
adapter fn env ->
{status, body} =
case env.url do
"/connection-error" ->
raise %Tesla.Error{mess... | 25.909091 | 94 | 0.575 |
3f0f628cf9b1dc551feefef7d9876cb866eb3a2b | 9,529 | ex | Elixir | lib/game/quest.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/quest.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/quest.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Game.Quest do
@moduledoc """
Quest context
"""
import Ecto.Query
alias Data.Quest
alias Data.QuestProgress
alias Data.QuestStep
alias Data.Repo
alias Data.User
alias Game.Item
alias Game.Session
@doc """
Check if a quest is complete
"""
def complete?(quest_progress) do
que... | 25.47861 | 97 | 0.603316 |
3f0f6c024e26cc862506155e64e9c2a2e6b2c3c3 | 2,057 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/report_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/report_status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/report_status.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 ... | 36.732143 | 150 | 0.718522 |
3f0f84b379c4ab191c08268071519a68c4ca148b | 2,096 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__label_segment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__label_segment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__label_segment.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 ... | 34.933333 | 179 | 0.756202 |
3f0f9d8cac7e2506682eb87ef0912fd0f93a5264 | 1,852 | ex | Elixir | test/support/w3c_test_suite_case.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | test/support/w3c_test_suite_case.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | test/support/w3c_test_suite_case.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.W3C.TestSuite.Case do
use ExUnit.CaseTemplate
using do
quote do
ExUnit.Case.register_attribute __ENV__, :test_case
alias SPARQL.W3C.TestSuite
alias TestSuite.NS.MF
import SPARQL.W3C.TestSuite.Case
end
end
alias SPARQL.W3C.TestSuite
def assert_query_evalua... | 33.071429 | 95 | 0.725162 |
3f0fbb90975e7b084b6269e24d00ad9c82648681 | 2,026 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/condition.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/condition.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/condition.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... | 34.338983 | 159 | 0.677196 |
3f0fe021a30ea40d4725bb4244efbe5ec26e1f1e | 1,167 | ex | Elixir | lib/rlc/endpoint.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | lib/rlc/endpoint.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | lib/rlc/endpoint.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | defmodule Rlc.Endpoint do
use Phoenix.Endpoint, otp_app: :rlc
socket "/socket", Rlc.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at: "/", ... | 27.139535 | 69 | 0.708655 |
3f100dbfb6e1afffcace64a337105b873400ec14 | 19,967 | ex | Elixir | lib/elixir/lib/calendar/time.ex | numso/elixir | 99c587fff51ffdd4b29ece09e74c0bc941c34f71 | [
"Apache-2.0"
] | 1 | 2020-09-24T12:37:29.000Z | 2020-09-24T12:37:29.000Z | lib/elixir/lib/calendar/time.ex | vnegrisolo/elixir | 986bd300724aef4035a4ca11795c46b88817509b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/time.ex | vnegrisolo/elixir | 986bd300724aef4035a4ca11795c46b88817509b | [
"Apache-2.0"
] | null | null | null | defmodule Time do
@moduledoc """
A Time struct and functions.
The Time struct contains the fields hour, minute, second and microseconds.
New times can be built with the `new/4` function or using the
`~T` (see `Kernel.sigil_T/2`) sigil:
iex> ~T[23:00:07.001]
~T[23:00:07.001]
Both `new/4` and s... | 28.729496 | 102 | 0.621375 |
3f10608a8fc90104cd98783a04c2fa01feb862a1 | 5,989 | ex | Elixir | lib/pixel_font/table_source/gpos_gsub.ex | Dalgona/pixel_font | 6a65bf85e5228296eb29fddbfdd690565767ff76 | [
"MIT"
] | 17 | 2020-09-14T15:25:38.000Z | 2022-03-05T17:14:24.000Z | lib/pixel_font/table_source/gpos_gsub.ex | Dalgona/pixel_font | 6a65bf85e5228296eb29fddbfdd690565767ff76 | [
"MIT"
] | 1 | 2021-08-19T05:05:37.000Z | 2021-08-19T05:05:37.000Z | lib/pixel_font/table_source/gpos_gsub.ex | Dalgona/pixel_font | 6a65bf85e5228296eb29fddbfdd690565767ff76 | [
"MIT"
] | null | null | null | defmodule PixelFont.TableSource.GPOSGSUB do
require PixelFont.Util
import PixelFont.Util, only: :macros
alias PixelFont.CompiledTable
alias PixelFont.TableSource.GPOS
alias PixelFont.TableSource.GSUB
alias PixelFont.TableSource.OTFLayout.Feature
alias PixelFont.TableSource.OTFLayout.FeatureList
alias Pi... | 32.726776 | 89 | 0.654867 |
3f1077834fe0fdf36109b6c5986dfefeba3fecc8 | 5,149 | ex | Elixir | lib/teiserver/bridge/discord_bridge.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | 1 | 2021-02-23T22:34:12.000Z | 2021-02-23T22:34:12.000Z | lib/teiserver/bridge/discord_bridge.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | null | null | null | lib/teiserver/bridge/discord_bridge.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | null | null | null | defmodule Teiserver.Bridge.DiscordBridge do
# use Alchemy.Cogs
use Alchemy.Events
alias Teiserver.{Account, Room}
alias Central.Config
alias Central.Account.ReportLib
alias Central.Helpers.TimexHelper
alias Teiserver.Bridge.BridgeServer
require Logger
# Discord message ping: <@userid>
@emoticon_ma... | 27.388298 | 128 | 0.62148 |
3f10b19d59a240ab64388a0976c1bfb02696c4e5 | 787 | ex | Elixir | lib/screens/config/query/params.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/config/query/params.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/config/query/params.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.Config.Query.Params do
@moduledoc false
# credo:disable-for-this-file Credo.Check.Design.DuplicatedCode
alias Screens.RouteType
@type t :: %__MODULE__{
stop_ids: list(String.t()),
route_ids: list(String.t()),
direction_id: 0 | 1 | :both,
route_type: Ro... | 25.387097 | 78 | 0.653113 |
3f10b4fc91b26b0b222b34dc342b69b1553dfce1 | 1,874 | exs | Elixir | mix.exs | anderson-amorim/phoenix_components | 87d5625c4e3fa2d98882642a95a54ad12b4c6700 | [
"MIT"
] | null | null | null | mix.exs | anderson-amorim/phoenix_components | 87d5625c4e3fa2d98882642a95a54ad12b4c6700 | [
"MIT"
] | null | null | null | mix.exs | anderson-amorim/phoenix_components | 87d5625c4e3fa2d98882642a95a54ad12b4c6700 | [
"MIT"
] | null | null | null | defmodule PhoenixComponents.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_components,
build_embedded: Mix.env == :prod,
deps: deps(),
description: description(),
elixir: "~> 1.4",
package: package(),
source_url: "https://github.com/san650/phoenix_components... | 29.28125 | 182 | 0.613127 |
3f10c5dc9c0c934b923171f233856d6747d4d77b | 345 | ex | Elixir | lib/supabase_surface/components/icons/icon_book_open.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_book_open.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_book_open.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.IconBookOpen do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.book_open(width: icon_size, height: icon_size)}
</IconCont... | 23 | 67 | 0.721739 |
3f10f49ed43148354d3e6398f55f5278ac30516f | 396 | exs | Elixir | priv/repo/migrations/20180211045033_create_plans.exs | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180211045033_create_plans.exs | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180211045033_create_plans.exs | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | defmodule StripeApp.Repo.Migrations.CreatePlans do
use Ecto.Migration
def change do
create table(:plans, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :stripe_id, :string
add :price, :float
add :interval, :naive_datetime
add :visible, :... | 22 | 57 | 0.659091 |
3f110534f11df02908e9c30648f20f823f843b6a | 182 | ex | Elixir | lib/teiserver_web/views/battle/match_view.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver_web/views/battle/match_view.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver_web/views/battle/match_view.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule TeiserverWeb.Battle.MatchView do
use TeiserverWeb, :view
def colours(), do: Teiserver.Battle.MatchLib.colours()
def icon(), do: Teiserver.Battle.MatchLib.icon()
end
| 26 | 56 | 0.758242 |
3f110619a2a5e4697a8db9879ee511d84a424fe2 | 1,213 | ex | Elixir | lib/construct/exceptions.ex | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 32 | 2017-12-26T18:08:41.000Z | 2022-03-24T21:18:11.000Z | lib/construct/exceptions.ex | ExpressApp/struct | 301df7388b9283f39ee43bb209c06f3aa055c8e7 | [
"MIT"
] | 4 | 2018-01-17T11:56:08.000Z | 2022-03-24T21:16:27.000Z | lib/construct/exceptions.ex | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 7 | 2017-12-29T13:06:31.000Z | 2022-03-24T05:56:56.000Z | defmodule Construct.Error do
defexception [:message]
end
defmodule Construct.MakeError do
defexception [:message]
def exception(%{reason: reason, params: params}) when is_map(reason) do
%__MODULE__{message: inspect(traverse_errors(reason, params))}
end
def exception(reason) when is_binary(reason) do
... | 29.585366 | 91 | 0.704864 |
3f11111bb04f0eb9fb94dfa582bda0c874a71402 | 322 | ex | Elixir | apps/admin_api/lib/admin_api/v1/views/self_view.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/admin_api/lib/admin_api/v1/views/self_view.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/views/self_view.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule AdminAPI.V1.SelfView do
use AdminAPI, :view
alias AdminAPI.V1.{UserSerializer, ResponseSerializer}
@doc """
Renders a user response with the given user.
"""
def render("user.json", %{user: user}) do
user
|> UserSerializer.to_json()
|> ResponseSerializer.to_json(success: true)
end
en... | 23 | 56 | 0.695652 |
3f111ed17763b8ba09696377be9e58ca0e6db3fd | 674 | ex | Elixir | lib/geoip/config.ex | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 90 | 2016-09-03T08:17:18.000Z | 2022-02-16T13:56:50.000Z | lib/geoip/config.ex | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 24 | 2016-09-05T07:02:02.000Z | 2022-02-01T16:14:01.000Z | lib/geoip/config.ex | iloveitaly/geoip | 437cab31adfc51c1e951bf67127315de99233963 | [
"MIT"
] | 14 | 2016-12-12T10:15:35.000Z | 2021-11-11T18:48:42.000Z | defmodule GeoIP.Config do
def provider!, do: get!(:provider)
def url!, do: get!(:url)
def api_key!, do: get!(:api_key)
def api_key, do: get(:api_key)
def use_https, do: get(:use_https)
def cache_enabled?, do: get(:cache)
def cache_ttl_secs, do: get(:cache_ttl_secs)
def test_results, do: get(:test... | 23.241379 | 89 | 0.670623 |
3f1146daba0b3345e557108c1290d6f5375da57a | 4,222 | ex | Elixir | lib/ex_tectonicdb/commands.ex | 0b01/ex_tectonicdb | 49d0ea4920aa60e97f1a63e72d660b7dd5231654 | [
"MIT"
] | 2 | 2020-05-18T07:16:14.000Z | 2020-10-07T19:25:46.000Z | lib/ex_tectonicdb/commands.ex | 0b01/ex_tectonicdb | 49d0ea4920aa60e97f1a63e72d660b7dd5231654 | [
"MIT"
] | null | null | null | lib/ex_tectonicdb/commands.ex | 0b01/ex_tectonicdb | 49d0ea4920aa60e97f1a63e72d660b7dd5231654 | [
"MIT"
] | null | null | null | defmodule ExTectonicdb.Commands do
@moduledoc """
Execture remote commands and receive results
"""
alias ExTectonicdb.{Connection, Info}
@type connection :: pid
@type db_name :: String.t()
@type row :: ExTectonicdb.Dtf.t()
# Public API
@doc """
Add record to current database
`ADD [ts], [seq],... | 26.721519 | 144 | 0.610848 |
3f11d324054df55ece2a89ddaeaf84db700fd756 | 177 | exs | Elixir | priv/repo/migrations/20161029172733_alter_timestamp_to_date.exs | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20161029172733_alter_timestamp_to_date.exs | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20161029172733_alter_timestamp_to_date.exs | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | defmodule CouchjitsuTrack.Repo.Migrations.AlterTimestampToDate do
use Ecto.Migration
def change do
alter table(:records) do
modify :date, :date
end
end
end
| 17.7 | 65 | 0.728814 |
3f11f500600fb5d6591878c639e38ecf33cb4dd9 | 1,310 | exs | Elixir | mix.exs | fkorotkov/speakeasy | be5bbe1becf592cc4e429069abebc8577aadd65a | [
"MIT"
] | null | null | null | mix.exs | fkorotkov/speakeasy | be5bbe1becf592cc4e429069abebc8577aadd65a | [
"MIT"
] | null | null | null | mix.exs | fkorotkov/speakeasy | be5bbe1becf592cc4e429069abebc8577aadd65a | [
"MIT"
] | null | null | null | defmodule Speakeasy.MixProject do
use Mix.Project
def project do
[
app: :speakeasy,
version: "0.3.0",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
... | 21.833333 | 95 | 0.561069 |
3f12386116a97c6a81106cd3b5cd3a1b43853e56 | 344 | exs | Elixir | priv/repo/migrations/20190313223010_create_video.exs | ruben44bac/videorama | 6350f9aabd778b8660aac5952dc828b3bd35c4c6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190313223010_create_video.exs | ruben44bac/videorama | 6350f9aabd778b8660aac5952dc828b3bd35c4c6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190313223010_create_video.exs | ruben44bac/videorama | 6350f9aabd778b8660aac5952dc828b3bd35c4c6 | [
"MIT"
] | null | null | null | defmodule Videorama.Repo.Migrations.CreateVideo do
use Ecto.Migration
def change do
create table(:video) do
add :url, :string
add :titulo, :string
add :descripcion, :string
add :usuario_id, references(:usuario, on_delete: :nothing)
timestamps()
end
create index(:video, [... | 20.235294 | 64 | 0.662791 |
3f12593a0627f0a2d9e1860e69a31da34c96995b | 786 | ex | Elixir | lib/docusign/model/envelope_transaction_status.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/envelope_transaction_status.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/envelope_transaction_status.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.EnvelopeTransactionStatus do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:envelopeId,
:errorDetails,
... | 23.117647 | 80 | 0.673028 |
3f12818703b2a6a19212f99d6560964ac04312a5 | 1,278 | exs | Elixir | test/paginate_test.exs | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | test/paginate_test.exs | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | test/paginate_test.exs | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule ExAdmin.PaginateTest do
use ExUnit.Case
alias ExAdmin.Paginate
test "pagination_information name total" do
assert Paginate.pagination_information("Contacts", 10) ==
"Displaying <b>all 10</b> Contacts"
end
test "pagination_information/4" do
assert Paginate.pagination_information("Cont... | 32.769231 | 74 | 0.661972 |
3f12840ca7f3344cf676d37a7441882325f80c3c | 1,828 | exs | Elixir | test/core/sup_tree_core/executor_pool/executor_pool_test.exs | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | test/core/sup_tree_core/executor_pool/executor_pool_test.exs | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | test/core/sup_tree_core/executor_pool/executor_pool_test.exs | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraCore.ExecutorPoolTest do
use Croma.TestCase
alias ExecutorPool.Setting, as: EPoolSetting
alias ExecutorPool.RegisteredName, as: RegName
alias AntikytheraCore.Ets.GearActionRunnerPools
defp child_pids(pid) do
Supervisor.w... | 43.52381 | 98 | 0.756018 |
3f12999f52c2fce1334901d51e7ee3ee35177ffb | 961 | ex | Elixir | robotica_hello/test/support/channel_case.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_hello/test/support/channel_case.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_hello/test/support/channel_case.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaHelloWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case inter... | 24.025 | 59 | 0.720083 |
3f12ab9002572c1a175658941acc079960216481 | 673 | exs | Elixir | config/config.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | config/config.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | config/config.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# By default, the umbrella project as well as each child
# application will require this configuration file, ensuring
# they all use the same configuration. While one could
# configu... | 29.26087 | 61 | 0.73997 |
3f12e7ab5a70cca1cbae5e24a599fe028e0f16af | 2,720 | exs | Elixir | config/config.exs | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | config/config.exs | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | config/config.exs | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | # This file is responsible for configuring your umbrella
# and **all applications** and their dependencies with the
# help of Mix.Config.
#
# Note that all applications in your umbrella share the
# same configuration and dependencies, which is why they
# all use the same configuration file. If you want different
# conf... | 28.631579 | 88 | 0.717647 |
3f12f17349e4e3580f506a2745051f432f9fba97 | 1,008 | ex | Elixir | lib/scaffolding/v2/erp_resolver.ex | noizu/elixir_scaffolding | 607e1b0fd6eeb244c86876e55a0b03c29dd08395 | [
"MIT"
] | null | null | null | lib/scaffolding/v2/erp_resolver.ex | noizu/elixir_scaffolding | 607e1b0fd6eeb244c86876e55a0b03c29dd08395 | [
"MIT"
] | null | null | null | lib/scaffolding/v2/erp_resolver.ex | noizu/elixir_scaffolding | 607e1b0fd6eeb244c86876e55a0b03c29dd08395 | [
"MIT"
] | null | null | null | defmodule Noizu.Scaffolding.V2.ERPResolver do
def id(o), do: o.__struct__.erp_handler().id(o)
def id_ok(o) do
r = id(o)
r && {:ok, r} || {:error, o}
end
def ref(o), do: o.__struct__.erp_handler().ref(o)
def ref_ok(o) do
r = ref(o)
r && {:ok, r} || {:error, o}
end
def sref(o)... | 29.647059 | 85 | 0.559524 |
3f12f5c0f350b948493c24e6c3f664aaaabc0253 | 1,115 | exs | Elixir | config/config.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | config/config.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | config/config.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.750673 |
3f13236fe2f2d177d8f04bf7dc8b6400595466a4 | 37,026 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 51.211618 | 1,213 | 0.687976 |
3f1328f9fcc8a7a1154d2484b9e9e4861f4bcef7 | 287 | ex | Elixir | lib/railway_ipc/consumer/impl.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/railway_ipc/consumer/impl.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | lib/railway_ipc/consumer/impl.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | defmodule RailwayIpc.Consumer.Impl do
@moduledoc false
@callback child_spec(config :: Keyword.t()) ::
[:supervisor.child_spec() | {module(), term()} | module()]
@callback validate_config!(config :: Keyword.t()) :: :ok
@optional_callbacks validate_config!: 1
end
| 26.090909 | 72 | 0.665505 |
3f1350e65eddf6977baaf383deda90d47d616288 | 4,450 | ex | Elixir | apps/fz_http/lib/fz_http/users.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http/users.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http/users.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | defmodule FzHttp.Users do
@moduledoc """
The Users context.
"""
import Ecto.Query, warn: false
alias FzCommon.{FzCrypto, FzMap}
alias FzHttp.{Devices.Device, Repo, Sites.Site, Telemetry, Users.User}
# one hour
@sign_in_token_validity_secs 3600
def count do
Repo.one(from u in User, select: coun... | 22.139303 | 94 | 0.639326 |
3f13ba07e23eca30eb4edbb0309a597ae6e715a3 | 50 | ex | Elixir | test/support/mocks.ex | timbuckley/forcex | e3b4cac234d1f17d1be6d8c49a0081568a0b711e | [
"MIT"
] | 59 | 2015-06-10T13:12:16.000Z | 2021-04-27T07:09:33.000Z | test/support/mocks.ex | timbuckley/forcex | e3b4cac234d1f17d1be6d8c49a0081568a0b711e | [
"MIT"
] | 38 | 2016-04-06T01:12:43.000Z | 2019-10-17T17:16:06.000Z | test/support/mocks.ex | timbuckley/forcex | e3b4cac234d1f17d1be6d8c49a0081568a0b711e | [
"MIT"
] | 38 | 2015-10-07T03:35:51.000Z | 2020-10-29T17:59:38.000Z | Mox.defmock(Forcex.Api.MockHttp, for: Forcex.Api)
| 25 | 49 | 0.78 |
3f13c4861adca2376a05a2e5d7b274125f8a91b6 | 1,181 | ex | Elixir | lib/srtm.ex | adriankumpf/srtm | 01705e58291f348263c089b431919c875bdcf85a | [
"MIT"
] | 3 | 2019-10-23T20:46:17.000Z | 2020-05-01T18:23:25.000Z | lib/srtm.ex | adriankumpf/srtm | 01705e58291f348263c089b431919c875bdcf85a | [
"MIT"
] | 8 | 2021-05-12T16:07:32.000Z | 2022-02-16T10:36:28.000Z | lib/srtm.ex | adriankumpf/srtm | 01705e58291f348263c089b431919c875bdcf85a | [
"MIT"
] | null | null | null | defmodule SRTM do
@moduledoc "README.md"
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
alias __MODULE__.{Client, Error}
@doc """
Queries locations on the earth for elevation data.
If the corresponding file can't be found in the cache, it will be ... | 31.078947 | 96 | 0.65199 |
3f13cdf9a99f7a9bd66303767012d339b5c5cbea | 576 | ex | Elixir | chromoid_link/lib/chromoid/camera_providers/ffmpeg_jpeg.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_link/lib/chromoid/camera_providers/ffmpeg_jpeg.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_link/lib/chromoid/camera_providers/ffmpeg_jpeg.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.CameraProvider.FFMpegJPEG do
def jpeg do
port =
Port.open({:spawn_executable, System.find_executable("ffmpeg")}, [
{:args, ~w(-f video4linux2 -s 640x480 -i /dev/video0 -ss 0:0:1 -frames 1 -f mpjpeg pipe:1)},
:binary,
:exit_status
])
["--ffmpeg", _, _, _,... | 26.181818 | 100 | 0.576389 |
3f13f2d168c6bc1e56cd524e84fe1f049c5d312e | 18,972 | ex | Elixir | lib/credo/execution.ex | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | null | null | null | lib/credo/execution.ex | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | null | null | null | lib/credo/execution.ex | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | 1 | 2021-07-05T19:04:48.000Z | 2021-07-05T19:04:48.000Z | defmodule Credo.Execution do
@moduledoc """
Every run of Credo is configured via a `Execution` struct, which is created and
manipulated via the `Credo.Execution` module.
"""
@doc """
The `Execution` struct is created and manipulated via the `Credo.Execution` module.
"""
defstruct argv: [],
... | 29.830189 | 124 | 0.679475 |
3f1417da5b1f6258ce29098ad5f57247c03a56e5 | 660 | ex | Elixir | lib/langue/formatter/csv/parser.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | lib/langue/formatter/csv/parser.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/langue/formatter/csv/parser.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Langue.Formatter.CSV.Parser do
@behaviour Langue.Formatter.Parser
alias Langue.Formatter.ParserResult, as: Output
alias Langue.Formatter.SerializerResult, as: Input
alias Langue.Utils.Placeholders
@spec parse(Input.t()) :: Output.t()
def parse(%Input{render: input}) do
entries =
input
... | 26.4 | 69 | 0.671212 |
3f1455b1d26860c10dacc76f128c9e07f954247e | 677 | exs | Elixir | mix.exs | jjylik/roni | f4ae61881a5fdc9df7f61dd70ab5898d95c65d46 | [
"MIT"
] | 2 | 2017-10-13T12:17:29.000Z | 2017-10-13T12:17:34.000Z | mix.exs | jjylik/roni | f4ae61881a5fdc9df7f61dd70ab5898d95c65d46 | [
"MIT"
] | null | null | null | mix.exs | jjylik/roni | f4ae61881a5fdc9df7f61dd70ab5898d95c65d46 | [
"MIT"
] | null | null | null | defmodule Roni.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, git: ... | 23.344828 | 79 | 0.618907 |
3f14721f10a20a674e22a973f2f5f9c739c3f1f0 | 6,151 | ex | Elixir | lib/jumubase_web/router.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase_web/router.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase_web/router.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.Router do
use JumubaseWeb, :router
import JumubaseWeb.UserAuth
import Phoenix.LiveDashboard.Router
pipeline :browser do
plug :fetch_session
plug :fetch_live_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :fetch_current_user
end
pipeline :a... | 33.612022 | 97 | 0.709316 |
3f1492a13e11f926a1f0c191516b6d8dcba9e903 | 53,394 | ex | Elixir | lib/codes/codes_v43.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v43.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v43.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_V43 do
alias IcdCode.ICDCode
def _V4301XA do
%ICDCode{full_code: "V4301XA",
category_code: "V43",
short_code: "01XA",
full_name: "Car driver injured in collision with sport utility vehicle in nontraffic accident, initial encounter",
short_na... | 54.539326 | 144 | 0.695509 |
3f14e1a397e264d6b249b8206e4561fbcd8d7e0a | 897 | exs | Elixir | lib/mix/test/mix/deps_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/mix/test/mix/deps_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/deps_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.DepsTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
deps: [
{ :ok, "0.1.0", github: "elixir-lang/ok" },
{ :invalidvsn, "0.2.0", path: "deps/invalidvsn" },
{ :invalidapp, "0.1.0", pa... | 28.935484 | 94 | 0.568562 |
3f14ec29e1b0a19ace7fa3b4d9bcd569922daa46 | 295 | ex | Elixir | lib/portfoliomanager/stubs.ex | echenim/assets-management | 287a0cdc0b6e989e442cb45c4adaf7370a25aee3 | [
"MIT"
] | 1 | 2021-05-18T11:39:53.000Z | 2021-05-18T11:39:53.000Z | lib/portfoliomanager/stubs.ex | echenim/assets-management | 287a0cdc0b6e989e442cb45c4adaf7370a25aee3 | [
"MIT"
] | null | null | null | lib/portfoliomanager/stubs.ex | echenim/assets-management | 287a0cdc0b6e989e442cb45c4adaf7370a25aee3 | [
"MIT"
] | null | null | null | defmodule Portfoliomanager.Stubs do
def portfolio_entries do
for x <- 1..10, do: %{name: "Project #{x}", image: "https://picsum.photos/400/300/?random?t=#{x}"}
end
def submit_contact(params) do
IO.inspect(params, label: "Submitted contact")
end
end | 32.777778 | 106 | 0.613559 |
3f15055916bfc52fbfc5838c1a66deb520c2cdaf | 15,402 | ex | Elixir | lib/oauth2/client.ex | chewy-soft/elixir-oauth2 | cc16e2b490f967dc6b2724acb55a2710689f7421 | [
"MIT"
] | null | null | null | lib/oauth2/client.ex | chewy-soft/elixir-oauth2 | cc16e2b490f967dc6b2724acb55a2710689f7421 | [
"MIT"
] | null | null | null | lib/oauth2/client.ex | chewy-soft/elixir-oauth2 | cc16e2b490f967dc6b2724acb55a2710689f7421 | [
"MIT"
] | null | null | null | defmodule OAuth2.Client do
@moduledoc ~S"""
This module defines the `OAuth2.Client` struct and is responsible for building
and establishing a request for an access token.
### Notes
* If a full url is given (e.g. "http://www.example.com/api/resource") then it
will use that otherwise you can specify an endp... | 36.411348 | 103 | 0.631931 |
3f1525da1d2dd785e502d50aa8b956cc2eb2e191 | 909 | ex | Elixir | lib/sftp_client/operations/close_handle.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 21 | 2019-08-06T01:39:15.000Z | 2021-04-15T20:08:04.000Z | lib/sftp_client/operations/close_handle.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 19 | 2019-07-10T17:10:34.000Z | 2021-04-18T11:16:58.000Z | lib/sftp_client/operations/close_handle.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 11 | 2019-07-04T14:56:37.000Z | 2021-04-26T19:09:22.000Z | defmodule SFTPClient.Operations.CloseHandle do
@moduledoc """
A module that provides functions to close an open handle pointing to a file or
directory on the SFTP server.
"""
import SFTPClient.OperationUtil
alias SFTPClient.Handle
@doc """
Closes a handle to an open file or directory on the server.
... | 27.545455 | 80 | 0.673267 |
3f15483ab875b5d0dada13c1fd9654711657f3b8 | 651 | ex | Elixir | lib/pictionary/game_supervisor.ex | LaudateCorpus1/pictionary | 7dd352cb38904e3ba643609d8d5eb90535eb5107 | [
"MIT"
] | 10 | 2021-06-20T08:22:32.000Z | 2021-07-08T14:35:53.000Z | lib/pictionary/game_supervisor.ex | Arp-G/pictionary | 7dd352cb38904e3ba643609d8d5eb90535eb5107 | [
"MIT"
] | 3 | 2021-06-20T14:37:10.000Z | 2022-02-13T14:03:37.000Z | lib/pictionary/game_supervisor.ex | LaudateCorpus1/pictionary | 7dd352cb38904e3ba643609d8d5eb90535eb5107 | [
"MIT"
] | 1 | 2022-02-08T07:49:51.000Z | 2022-02-08T07:49:51.000Z | defmodule Pictionary.GameSupervisor do
use DynamicSupervisor
require Logger
def start_link(_) do
DynamicSupervisor.start_link(__MODULE__, :no_args, name: __MODULE__)
end
def init(:no_args) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def add_game_server(game_id) do
{:ok, pid} = Dyn... | 26.04 | 92 | 0.758833 |
3f154bc2c96efc6e4e1e85636e1256818c3f1067 | 2,442 | exs | Elixir | apps/ehealth/config/prod.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/ehealth/config/prod.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/ehealth/config/prod.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | use Mix.Config
# Configuration for production environment.
# It should read environment variables to follow 12 factor apps convention.
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside... | 34.394366 | 115 | 0.708845 |
3f156ebe017d1aaffcb281d7ed8998bc46e1817a | 246 | exs | Elixir | apps/storage/priv/repo/migrations/20190308071020_unified_qfield_to_path.exs | anyex-project/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | 12 | 2019-02-21T21:29:08.000Z | 2019-05-14T11:41:10.000Z | apps/storage/priv/repo/migrations/20190308071020_unified_qfield_to_path.exs | Hentioe/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | 18 | 2019-02-05T17:19:33.000Z | 2019-03-13T13:38:08.000Z | apps/storage/priv/repo/migrations/20190308071020_unified_qfield_to_path.exs | Hentioe/anyex | d04018337bcec621f2e2e8d17773fa2724e3c6e1 | [
"MIT"
] | null | null | null | defmodule Storage.Repo.Migrations.UnifiedQfieldToPath do
use Storage.Migration
def change do
rename(table(:article), :qtext, to: :path)
rename(table(:category), :qname, to: :path)
rename(table(:tag), :qname, to: :path)
end
end
| 24.6 | 56 | 0.695122 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.