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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03665052b0c0ddd0a90e7095f376fba36c63e1c5 | 1,063 | ex | Elixir | apps/omg/lib/omg/root_chain_coordinator/measure.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg/lib/omg/root_chain_coordinator/measure.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg/lib/omg/root_chain_coordinator/measure.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.264706 | 74 | 0.736595 |
0366846dda453f12c11d2ba3d741350e6392abee | 1,298 | ex | Elixir | lib/slack/rtm.ex | aMikeChen/Elixir-Slack | 8b425ecb2630712deb4049ac14399047eeb5edb1 | [
"MIT"
] | null | null | null | lib/slack/rtm.ex | aMikeChen/Elixir-Slack | 8b425ecb2630712deb4049ac14399047eeb5edb1 | [
"MIT"
] | null | null | null | lib/slack/rtm.ex | aMikeChen/Elixir-Slack | 8b425ecb2630712deb4049ac14399047eeb5edb1 | [
"MIT"
] | null | null | null | defmodule Slack.JsonDecodeError do
@moduledoc false
defexception [:reason, :string]
def message(%Slack.JsonDecodeError{reason: reason, string: string}) do
"Poison could not decode string for reason: `:#{reason}`, string given:\n#{string}"
end
end
defmodule Slack.Rtm do
@moduledoc false
def start(tok... | 27.041667 | 87 | 0.640216 |
0366e2dc597e17536bd429724d579e970b2b22c2 | 1,389 | ex | Elixir | web/views.ex | RokkinCat/rkkn_cloud | 6f2dd1b2d1b6a2e32380f2400e0effbe1b82fdf4 | [
"MIT"
] | null | null | null | web/views.ex | RokkinCat/rkkn_cloud | 6f2dd1b2d1b6a2e32380f2400e0effbe1b82fdf4 | [
"MIT"
] | null | null | null | web/views.ex | RokkinCat/rkkn_cloud | 6f2dd1b2d1b6a2e32380f2400e0effbe1b82fdf4 | [
"MIT"
] | null | null | null | defmodule RkknCloud.Views do
import Plug.Conn, only: [get_req_header: 2,
put_resp_header: 3,
send_resp: 3,
halt: 1]
defmacro __using__(_options) do
quote do
use Phoenix.View
import unquote(__MODULE__)
... | 25.254545 | 74 | 0.616991 |
036733bc50ef8272b78a283494c51647abf88786 | 2,924 | ex | Elixir | lib/aws/generated/health_lake.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/health_lake.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/health_lake.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.HealthLake do
@moduledoc """
Amazon HealthLake is a HIPAA eligibile service that allows customers to store,
transform, query, and analyze their FHIR-formatted data in a consistent fashion
... | 32.131868 | 85 | 0.69015 |
036778dcf5ee53e9b1962d21ecdfde66c068bfa4 | 2,292 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dfp_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dfp_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dfp_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.847458 | 140 | 0.724695 |
0367d25f3c13eb06c75551db01901a13af9cf24a | 334 | ex | Elixir | apps/core/lib/common.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 25 | 2016-08-09T15:04:37.000Z | 2021-11-15T12:20:27.000Z | apps/core/lib/common.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 62 | 2016-05-23T20:16:40.000Z | 2017-04-18T18:36:29.000Z | apps/core/lib/common.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 10 | 2016-08-17T15:29:21.000Z | 2017-02-28T07:58:30.000Z | defmodule Core.Common do
def model do
quote do
use Ecto.Schema
import Ecto
import Ecto.Changeset
import Ecto.Query
end
end
@doc """
When used, dispatch to the appropriate controller/view/etc.
"""
defmacro __using__(which) when is_atom(which) do
apply(__MODULE__, which, ... | 17.578947 | 61 | 0.655689 |
0367eaf1cbbf378bd4e46ef3f0d71bc6ee442f59 | 385 | exs | Elixir | apps/robby_web/priv/repo/migrations/20160318182913_create_message.exs | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/priv/repo/migrations/20160318182913_create_message.exs | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/priv/repo/migrations/20160318182913_create_message.exs | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | defmodule RobbyWeb.Repo.Migrations.CreateMessage do
use Ecto.Migration
def change do
create table(:messages) do
add :user_id, references(:users, on_delete: :nothing)
add :room_id, references(:rooms, on_delete: :nothing)
add :body, :string
timestamps()
end
create index(:messages... | 22.647059 | 59 | 0.675325 |
0367fb2388a6409a8c9625fbd4520d99f8c18bee | 2,106 | ex | Elixir | lib/nadia/bot/graph_api.ex | lightcyphers/nadia | b44535138aac3c61a40816d9460a731127360f1e | [
"MIT"
] | null | null | null | lib/nadia/bot/graph_api.ex | lightcyphers/nadia | b44535138aac3c61a40816d9460a731127360f1e | [
"MIT"
] | null | null | null | lib/nadia/bot/graph_api.ex | lightcyphers/nadia | b44535138aac3c61a40816d9460a731127360f1e | [
"MIT"
] | null | null | null | defmodule Nadia.Bot.GraphAPI do
@moduledoc """
Provides basic functionalities for Telegram Bot API.
"""
alias Nadia.Graph.Model.Error
alias Nadia.Bot.Config
defp build_url(bot, method), do: Config.graph_base_url(bot) <> "/" <> method
defp process_response(response, method) do
case decode_response(r... | 30.970588 | 88 | 0.632953 |
0368572d91b32b73cd84f348bca6e7d4576231f3 | 27,416 | ex | Elixir | lib/elixir/lib/gen_event.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/lib/gen_event.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/elixir/lib/gen_event.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule GenEvent do
# TODO: Remove by 2.0
# Functions from this module are deprecated in elixir_dispatch.
@moduledoc """
A event manager with event handlers behaviour.
If you are interested in implementing an event manager, please read the
"Alternatives" section below. If you have to implement an event... | 29.962842 | 104 | 0.611869 |
03685d895f45efff957619f6e9b301a665675f39 | 1,057 | exs | Elixir | examples/ecto_poll_queue/postgres/mix.exs | rodrigues/honeydew | 05777189f30b3b13428027ce75bdecf6d7b760db | [
"MIT"
] | null | null | null | examples/ecto_poll_queue/postgres/mix.exs | rodrigues/honeydew | 05777189f30b3b13428027ce75bdecf6d7b760db | [
"MIT"
] | null | null | null | examples/ecto_poll_queue/postgres/mix.exs | rodrigues/honeydew | 05777189f30b3b13428027ce75bdecf6d7b760db | [
"MIT"
] | null | null | null | defmodule EctoPollQueueExample.MixProject do
use Mix.Project
def project do
[
app: :ecto_poll_queue_example,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
dialyzer: [
flags: [
:unmatched_ret... | 21.571429 | 68 | 0.535478 |
03686631da76bfdf5d5f46b72d82975a891b9601 | 9,444 | ex | Elixir | lib/exprotobuf/define_message.ex | ngenic/exprotobuf | f7b3ca9e7baebab8a204780f9847042aea6289ce | [
"Apache-2.0"
] | null | null | null | lib/exprotobuf/define_message.ex | ngenic/exprotobuf | f7b3ca9e7baebab8a204780f9847042aea6289ce | [
"Apache-2.0"
] | null | null | null | lib/exprotobuf/define_message.ex | ngenic/exprotobuf | f7b3ca9e7baebab8a204780f9847042aea6289ce | [
"Apache-2.0"
] | null | null | null | defmodule Protobuf.DefineMessage do
@moduledoc false
alias Protobuf.Decoder
alias Protobuf.Encoder
alias Protobuf.Field
alias Protobuf.OneOfField
alias Protobuf.Delimited
alias Protobuf.Utils
def def_message(name, fields, inject: inject, doc: doc, syntax: syntax) when is_list(fields) do
struct_fie... | 24.091837 | 100 | 0.58058 |
03687b54ef94bd71a18694a7aa609670a0224c82 | 1,900 | exs | Elixir | test/plug_ribbon_test.exs | stnly/plug_ribbon | 54f15042f93e1d6328b447f3828e6f097ce2dec9 | [
"MIT"
] | 25 | 2015-06-24T11:13:22.000Z | 2021-06-07T17:58:51.000Z | test/plug_ribbon_test.exs | stnly/plug_ribbon | 54f15042f93e1d6328b447f3828e6f097ce2dec9 | [
"MIT"
] | 1 | 2015-06-24T12:49:07.000Z | 2015-06-25T00:11:07.000Z | test/plug_ribbon_test.exs | stnly/plug_ribbon | 54f15042f93e1d6328b447f3828e6f097ce2dec9 | [
"MIT"
] | 3 | 2015-06-24T12:37:59.000Z | 2018-01-08T12:10:29.000Z | defmodule PlugRibbonTest do
use ExUnit.Case, async: true
use Plug.Test
setup do
Logger.disable(self())
:ok
end
@ribbon_string ~s(<div class="plug-ribbon">)
test "injects ribbon in dev environment" do
Mix.env(:dev)
conn = conn(:get, "/")
|> put_resp_content_type("text/html")
|> res... | 26.388889 | 68 | 0.618421 |
03687ced8cbe7e04fea733eb98ef6d08162e8038 | 4,617 | ex | Elixir | lib/iex/lib/iex/broker.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/iex/lib/iex/broker.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/iex/lib/iex/broker.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule IEx.Broker do
@moduledoc false
@name IEx.Broker
@type take_ref :: {takeover_ref :: reference(), server_ref :: reference()}
use GenServer
## Shell API
@doc """
Finds the IEx server running inside `:user_drv`, on this node exclusively.
"""
@spec shell :: pid | nil
def shell() do
# Lo... | 25.229508 | 89 | 0.605805 |
0368bf76f5b3776142f0d5ca4e1491f50857a88a | 1,704 | exs | Elixir | apps/definition_dictionary/test/dictionary/type/boolean_test.exs | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/test/dictionary/type/boolean_test.exs | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/test/dictionary/type/boolean_test.exs | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | defmodule Dictionary.Type.BooleanTest do
use ExUnit.Case
import Checkov
describe "new/1" do
data_test "validates #{inspect(field)} against bad input" do
assert {:error, [%{input: value, path: [field]} | _]} =
put_in(%{}, [field], value)
|> Dictionary.Type.Boolean.new()
... | 27.934426 | 95 | 0.568075 |
0368d29a4ac01722438e74d7b610dde52ee193c8 | 347 | ex | Elixir | lib/supabase_surface/components/icons/icon_refresh_cw.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_refresh_cw.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_refresh_cw.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.IconRefreshCw do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.refresh_cw(width: icon_size, height: icon_size)}
</IconCo... | 23.133333 | 68 | 0.723343 |
036903acb28651ff29bd604e2d0d10b2d94d2f36 | 1,827 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/update_device_metadata_in_batch_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/update_device_metadata_in_batch_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/update_device_metadata_in_batch_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.625 | 164 | 0.755884 |
03691fa36666561c6c8cb32000e4039ce159b059 | 1,797 | ex | Elixir | lib/rostrum2_web/controllers/user_reset_password_controller.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | null | null | null | lib/rostrum2_web/controllers/user_reset_password_controller.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | 3 | 2021-11-25T05:44:03.000Z | 2021-11-26T06:33:53.000Z | lib/rostrum2_web/controllers/user_reset_password_controller.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | null | null | null | defmodule RostrumWeb.UserResetPasswordController do
use RostrumWeb, :controller
alias Rostrum.Accounts
plug :get_user_by_reset_password_token when action in [:edit, :update]
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email}}) do
if user = Acc... | 29.95 | 119 | 0.664997 |
036931dd7b80eac67021ffc34375b3bd6224a03f | 10,749 | ex | Elixir | lib/webrtc_server/peer.ex | KalvadTech/webrtc-server | a9fbf41f83a644702946541342411f19e2806447 | [
"Apache-2.0"
] | 1 | 2021-07-12T12:30:38.000Z | 2021-07-12T12:30:38.000Z | lib/webrtc_server/peer.ex | KalvadTech/webrtc-server | a9fbf41f83a644702946541342411f19e2806447 | [
"Apache-2.0"
] | null | null | null | lib/webrtc_server/peer.ex | KalvadTech/webrtc-server | a9fbf41f83a644702946541342411f19e2806447 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.WebRTC.Server.Peer do
@moduledoc """
Module that manages websocket lifecycle and communication with client.
Adapts the
[`:cowboy_websocket`](https://ninenines.eu/docs/en/cowboy/2.6/manual/cowboy_websocket/)
behaviour.
"""
@behaviour :cowboy_websocket
require Logger
alias __MODULE_... | 27.992188 | 98 | 0.6235 |
03693781ac307b2028c21518b7547f1c5a9a4c3c | 2,808 | exs | Elixir | test/dogma/rule/function_parentheses_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | test/dogma/rule/function_parentheses_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | test/dogma/rule/function_parentheses_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | defmodule Dogma.Rule.FunctionParenthesesTest do
use RuleCase, for: FunctionParentheses
test "not error without parentheses and without argument" do
script = """
def foo do
end
def foo_bar do
end
defp private_foo do
end
def baz, do: :baz
""" |> Script.parse!("")
assert [] == ... | 25.761468 | 78 | 0.59651 |
03694590107fbf3fd0aa6e617183109f13b58038 | 535 | exs | Elixir | test/shenu/message/category_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 3 | 2016-06-19T00:21:54.000Z | 2021-09-28T22:04:07.000Z | test/shenu/message/category_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | null | null | null | test/shenu/message/category_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 1 | 2018-12-06T22:51:26.000Z | 2018-12-06T22:51:26.000Z | defmodule Test.Shenu.Message.Category do
use Test.Shenu.Message.Case
test "default schema" do
create_parser()
|> parse("123")
|> assert_message(%Category{value: "123"})
end
test "default schema error" do
create_parser()
|> parse(1)
|> assert_error()
end
test "enum schema" do
c... | 19.107143 | 46 | 0.596262 |
03695c218411c3e62d33c54c73b1e8b8e068110e | 799 | ex | Elixir | lib/mollie/permissions.ex | LostKobrakai/mollie | dd697dfcf376eb1889d6371cc1179a335ef70b59 | [
"MIT"
] | null | null | null | lib/mollie/permissions.ex | LostKobrakai/mollie | dd697dfcf376eb1889d6371cc1179a335ef70b59 | [
"MIT"
] | null | null | null | lib/mollie/permissions.ex | LostKobrakai/mollie | dd697dfcf376eb1889d6371cc1179a335ef70b59 | [
"MIT"
] | null | null | null | defmodule Mollie.Permissions do
import Mollie
alias Mollie.Client
@doc """
List all permissions available with the current app access token. The list is not paginated.
## Example
Mollie.Permissions.list client
More info at: https://docs.mollie.com/reference/v2/permissions-api/list-permissions
""... | 24.212121 | 94 | 0.698373 |
036996af4933f442afc7c1fee2723c05d143445d | 2,302 | exs | Elixir | test/wechat_pay/plug/refund_test.exs | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | test/wechat_pay/plug/refund_test.exs | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | test/wechat_pay/plug/refund_test.exs | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | defmodule WechatPay.Plug.RefundTest do
use TestCase, async: false
use Plug.Test
alias MyPay.Plug.Refund, as: RefundPlug
alias WechatPay.PlugTest.Handler
defmodule Handler do
use WechatPay.Handler
@impl WechatPay.Handler
def handle_data(_conn, data) do
assert data.out_trade_no == "9999999... | 47.958333 | 1,153 | 0.804952 |
0369bc6bd2e077587c0b6c90f7420d2481bfb132 | 27,170 | ex | Elixir | lib/aws/generated/app_config.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/app_config.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/app_config.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.AppConfig do
@moduledoc """
AWS AppConfig
Use AWS AppConfig, a capability of AWS Systems Manager, to create, manage, and
quickly deploy application configurations.
AppConfig supports c... | 24.477477 | 198 | 0.632389 |
0369d090b6b3d6f17e1074ba127803fb647fa0b2 | 298 | ex | Elixir | lib/drunkard/protobuf/ingredientArray.pb.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 2 | 2020-07-05T21:27:33.000Z | 2021-12-12T22:56:00.000Z | lib/drunkard/protobuf/ingredientArray.pb.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2021-05-11T08:14:48.000Z | 2021-05-11T08:14:48.000Z | lib/drunkard/protobuf/ingredientArray.pb.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2020-07-05T21:27:46.000Z | 2020-07-05T21:27:46.000Z | defmodule Drunkard.Protobuf.IngredientArray do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
ingredient: [Drunkard.Protobuf.Ingredient.t()]
}
defstruct [:ingredient]
field :ingredient, 1, repeated: true, type: Drunkard.Protobuf.Ingredient
end
| 24.833333 | 74 | 0.708054 |
0369d44e008b03b60b6a848125b79b3e983c9fc0 | 1,895 | exs | Elixir | mix.exs | hassanshaikley/ascii-quest | 8b3b3af3b9c6c59b8155fe2e6cb2a794033c29f1 | [
"MIT"
] | 8 | 2019-01-15T09:31:05.000Z | 2020-04-20T13:59:01.000Z | mix.exs | hassanshaikley/ascii-quest | 8b3b3af3b9c6c59b8155fe2e6cb2a794033c29f1 | [
"MIT"
] | 2 | 2019-01-06T02:53:44.000Z | 2019-05-30T20:30:20.000Z | mix.exs | hassanshaikley/ascii-quest | 8b3b3af3b9c6c59b8155fe2e6cb2a794033c29f1 | [
"MIT"
] | 1 | 2019-01-04T04:37:21.000Z | 2019-01-04T04:37:21.000Z | defmodule StabbyFlies.MixProject do
use Mix.Project
def project do
[
app: :stabby_flies,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: alias... | 27.867647 | 79 | 0.563588 |
0369f4937b20ad3e69bf49cc9aaec3109ba85749 | 2,106 | exs | Elixir | test/phoenix_html/format_test.exs | programisti/phoenix_html | 082c785f0487098d6099ae254c502c5e7a6187e3 | [
"MIT"
] | 310 | 2015-05-03T13:08:41.000Z | 2022-03-11T14:53:20.000Z | test/phoenix_html/format_test.exs | programisti/phoenix_html | 082c785f0487098d6099ae254c502c5e7a6187e3 | [
"MIT"
] | 347 | 2015-05-03T19:01:00.000Z | 2022-02-22T11:56:17.000Z | test/phoenix_html/format_test.exs | programisti/phoenix_html | 082c785f0487098d6099ae254c502c5e7a6187e3 | [
"MIT"
] | 268 | 2015-05-03T18:53:32.000Z | 2022-03-22T14:15:54.000Z | defmodule Phoenix.HTML.FormatTest do
use ExUnit.Case, async: true
import Phoenix.HTML.Format
import Phoenix.HTML
doctest Phoenix.HTML.Format
test "wraps paragraphs" do
formatted =
format("""
Hello,
Please come see me.
Regards,
The Boss.
""")
assert formatted =... | 18.637168 | 88 | 0.480532 |
036a4c88d31e0076f220d0baa6661f300eeb010c | 1,104 | exs | Elixir | priv/repo/seeds.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 4 | 2020-05-29T03:33:02.000Z | 2021-08-21T23:01:48.000Z | priv/repo/seeds.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 2 | 2020-07-29T01:50:46.000Z | 2021-08-31T20:10:47.000Z | priv/repo/seeds.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 1 | 2022-03-21T18:13:21.000Z | 2022-03-21T18:13:21.000Z | # mix run priv/repo/seeds.exs
import Ecto.Query
ElixirEcommerce.UserManager.create_user(%{
email: "sr.alan.bispo@gmail.com",
password: "123456",
username: "abmbispo",
role: "admin"
})
ElixirEcommerce.Department.create(%{
name: "Sports"
})
ElixirEcommerce.Department.create(%{
name: "Eletronics"
})
Elixir... | 18.4 | 70 | 0.631341 |
036a7113f5b5cf6ed1f6418c288c88b0eaedc4b5 | 1,684 | ex | Elixir | lib/dispatch_web/endpoint.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 21 | 2019-02-13T15:26:00.000Z | 2021-09-18T13:05:42.000Z | lib/dispatch_web/endpoint.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 26 | 2019-02-13T18:42:44.000Z | 2021-09-16T15:40:05.000Z | lib/dispatch_web/endpoint.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 2 | 2020-05-26T09:09:19.000Z | 2021-04-21T20:43:07.000Z | defmodule DispatchWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :dispatch
plug(:canonical_host)
plug(:force_ssl)
plug(:basic_auth)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
if code_reloading? do
plug(Phoenix.CodeReloader)
end
plug(Plu... | 23.388889 | 98 | 0.692399 |
036a98aba2c738ff3ee574da108f3e4ba83be0c5 | 9,907 | ex | Elixir | lib/ex_admin/themes/admin_lte2/filter.ex | augnustin/ex_admin | 218d0094de8186808924dcca6157875a7bb382c9 | [
"MIT"
] | 2 | 2019-12-21T12:59:19.000Z | 2020-04-01T15:27:12.000Z | lib/ex_admin/themes/admin_lte2/filter.ex | augnustin/ex_admin | 218d0094de8186808924dcca6157875a7bb382c9 | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/filter.ex | augnustin/ex_admin | 218d0094de8186808924dcca6157875a7bb382c9 | [
"MIT"
] | 1 | 2020-02-29T22:13:24.000Z | 2020-02-29T22:13:24.000Z | Code.ensure_compiled(ExAdmin.Utils)
defmodule ExAdmin.Theme.AdminLte2.Filter do
@moduledoc false
require Logger
require Ecto.Query
import ExAdmin.Utils
import ExAdmin.Gettext
import ExAdmin.Filter
use Xain
def theme_filter_view(conn, defn, q, order, scope) do
markup safe: true do
div ".box.b... | 27.519444 | 106 | 0.505703 |
036aa665e2e737b93660dd666bb5caeddb2fc5a5 | 1,109 | exs | Elixir | config/config.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | config/config.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | 1 | 2017-05-08T15:09:09.000Z | 2017-05-10T06:05:24.000Z | config/config.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | 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.774194 | 73 | 0.754734 |
036ad3b77151886daa64d6059a2f11e3ccc3936d | 1,479 | exs | Elixir | integration_test/all_test.exs | fasib/ecto_sqlite3 | 3ef1bf4d2a93fe07ea2571fb24dc7b6e320cf4cf | [
"MIT"
] | null | null | null | integration_test/all_test.exs | fasib/ecto_sqlite3 | 3ef1bf4d2a93fe07ea2571fb24dc7b6e320cf4cf | [
"MIT"
] | null | null | null | integration_test/all_test.exs | fasib/ecto_sqlite3 | 3ef1bf4d2a93fe07ea2571fb24dc7b6e320cf4cf | [
"MIT"
] | null | null | null | ecto = Mix.Project.deps_paths()[:ecto]
Code.require_file "#{ecto}/integration_test/cases/assoc.exs", __DIR__
Code.require_file "#{ecto}/integration_test/cases/joins.exs", __DIR__
Code.require_file "#{ecto}/integration_test/cases/preload.exs", __DIR__
Code.require_file "#{ecto}/integration_test/cases/repo.exs", __DIR__... | 46.21875 | 77 | 0.795132 |
036ae5826c2a53829808b9c69644840018788f3a | 1,967 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_list_customers_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_list_customers_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/customer_list_customers_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.125 | 144 | 0.754448 |
036afd563212b15ae7e11d6cadc84ad14ad09e01 | 8,874 | ex | Elixir | lib/protox/define_message.ex | ahamez/protox | 1966fb5f26b546f95033fbe18850b6c69eb6617d | [
"MIT"
] | 176 | 2017-02-01T13:09:25.000Z | 2022-03-18T02:36:17.000Z | lib/protox/define_message.ex | ahamez/protox | 1966fb5f26b546f95033fbe18850b6c69eb6617d | [
"MIT"
] | 94 | 2020-07-20T05:54:51.000Z | 2022-03-09T04:13:03.000Z | lib/protox/define_message.ex | ahamez/protox | 1966fb5f26b546f95033fbe18850b6c69eb6617d | [
"MIT"
] | 19 | 2017-02-13T09:17:14.000Z | 2022-02-22T09:29:18.000Z | defmodule Protox.DefineMessage do
@moduledoc false
alias Protox.Field
def define(messages, opts \\ []) do
{keep_unknown_fields, _opts} = Keyword.pop(opts, :keep_unknown_fields, true)
for {msg_name, syntax, fields} <- messages do
fields = Enum.sort(fields, &(&1.tag < &2.tag))
unknown_fields... | 30.919861 | 98 | 0.617309 |
036b4629b92264be979f447ecaf6a36759eaba32 | 4,538 | ex | Elixir | clients/apps_activity/lib/google_api/apps_activity/v1/api/activities.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/apps_activity/lib/google_api/apps_activity/v1/api/activities.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/apps_activity/lib/google_api/apps_activity/v1/api/activities.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 ... | 50.988764 | 377 | 0.67673 |
036b47a4e73d5db7b23e72079ec0291cc146fc7d | 1,622 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/application_reporting_settings.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/application_reporting_settings.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/application_reporting_settings.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... | 33.791667 | 114 | 0.766338 |
036b684f56e79f48d0bc5bb5ead86da6783db4f2 | 216 | ex | Elixir | lib/materia_file_transfer/google_cloud/config.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | lib/materia_file_transfer/google_cloud/config.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | lib/materia_file_transfer/google_cloud/config.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaFileTransfer.GoogleCloud.Config do
@moduledoc false
use Goth.Config
def init(config) do
{:ok, Keyword.put(config, :json, System.get_env("GCP_JSON_CREDENTIALS") |> File.read!())}
end
end
| 24 | 93 | 0.731481 |
036b89ed4cd88752b3248cd779ab59878f7a507c | 117 | ex | Elixir | lib/client/video/video_request.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | 5 | 2021-05-10T12:10:02.000Z | 2021-05-24T08:15:42.000Z | lib/client/video/video_request.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | null | null | null | lib/client/video/video_request.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | 1 | 2021-05-13T16:49:17.000Z | 2021-05-13T16:49:17.000Z | defmodule Pexels.Client.Video.VideoRequest do
use Accessible
use Construct do
field :id, :integer
end
end
| 14.625 | 45 | 0.74359 |
036ba02bc948b537c1f0e2a5049873753e5e1603 | 644 | ex | Elixir | lib/autoformatbot/token.ex | maltoe/autoformatbot.ex | cedcf5471165eefe133f9ff6a71c8a91c0ddbcc3 | [
"MIT"
] | null | null | null | lib/autoformatbot/token.ex | maltoe/autoformatbot.ex | cedcf5471165eefe133f9ff6a71c8a91c0ddbcc3 | [
"MIT"
] | null | null | null | lib/autoformatbot/token.ex | maltoe/autoformatbot.ex | cedcf5471165eefe133f9ff6a71c8a91c0ddbcc3 | [
"MIT"
] | null | null | null | defmodule Autoformatbot.Token do
defstruct [
:config,
:current_branch,
:current_sha,
:target_branch,
:target_sha,
:temporary_branch,
:files,
:adapter
]
def pipeline(functions) do
case Enum.reduce_while(functions, %__MODULE__{}, &step/2) do
%__MODULE__{} -> :ok
err ... | 18.941176 | 64 | 0.585404 |
036bb23594811ef4e030e84e585ceb80c55cfafb | 449 | ex | Elixir | lib/ghost.ex | Bhaskers-Blu-Org1/ghost | 834d9a3c2ed93b81d37ee8cfcc9242ea6ba3970d | [
"Apache-2.0"
] | 4 | 2019-05-16T21:43:59.000Z | 2019-12-31T09:19:31.000Z | lib/ghost.ex | IBM/ghost | 834d9a3c2ed93b81d37ee8cfcc9242ea6ba3970d | [
"Apache-2.0"
] | null | null | null | lib/ghost.ex | IBM/ghost | 834d9a3c2ed93b81d37ee8cfcc9242ea6ba3970d | [
"Apache-2.0"
] | 3 | 2019-11-04T01:28:36.000Z | 2020-06-29T14:40:50.000Z | defmodule Ghost do
@config Application.get_env(:ghost, __MODULE__)
def produce_sync(topic, key, message) do
client = Keyword.get(@config, :client)
adapter = Keyword.get(@config, :adapter)
adapter.produce_sync(client, topic, key, message)
end
def produce(topic, key, message) do
client = Keywo... | 28.0625 | 53 | 0.699332 |
036bb48403583615b7278ccc9f47f21f4d9f75c8 | 1,782 | exs | Elixir | test/bootleg/tasks/manage_tasks_test.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 423 | 2017-07-19T18:40:45.000Z | 2021-12-03T08:26:15.000Z | test/bootleg/tasks/manage_tasks_test.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 115 | 2017-07-19T18:30:14.000Z | 2020-10-27T20:53:32.000Z | test/bootleg/tasks/manage_tasks_test.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 39 | 2017-07-20T03:14:18.000Z | 2020-11-18T13:39:52.000Z | defmodule Bootleg.Tasks.ManageTasksTest do
use Bootleg.{FunctionalCase, DSL}, async: false
# use Bootleg.DSL
alias Bootleg.SSH
import ExUnit.CaptureIO
setup %{hosts: [host]} do
role(
:app,
[host.ip],
port: host.port,
user: host.user,
password: host.password,
silently_a... | 21.214286 | 56 | 0.603816 |
036bc21cab70c0a146f31fe44be2ad6f4b0746ab | 445 | exs | Elixir | test/swiss/date_time_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 2 | 2020-11-06T21:02:47.000Z | 2020-11-06T23:27:35.000Z | test/swiss/date_time_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 4 | 2020-03-05T17:37:46.000Z | 2021-10-06T10:13:51.000Z | test/swiss/date_time_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 1 | 2021-09-22T13:43:58.000Z | 2021-09-22T13:43:58.000Z | defmodule Swiss.DateTimeTest do
use ExUnit.Case, async: true
doctest Swiss.DateTime
describe "second_utc_now/0" do
test "returns the current UTC date with second precision" do
now = Swiss.DateTime.second_utc_now()
assert_in_delta DateTime.to_unix(now), DateTime.to_unix(DateTime.utc_now()), 25
... | 27.8125 | 85 | 0.707865 |
036bf7f9c95b265f8f9bd937af45da0d576f20ac | 2,368 | ex | Elixir | lib/oli/authoring/project_search.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/authoring/project_search.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/authoring/project_search.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Authoring.ProjectSearch do
import Ecto.Query
alias Oli.Authoring.Course.Project
alias Oli.Publishing.Publication
alias Oli.Repo
@doc """
Searches the title, description, slug, and version of all active course projects
for the search string. Returns an array of maps containing those same a... | 31.573333 | 102 | 0.618666 |
036c0d6e939e96028b01f46d9054c3989fca40cf | 259 | ex | Elixir | phoenix_example/lib/spec_example.ex | saraid/rb-phoenix-socket | 90558ced343763621a99e361cbb92e8e3c1d6d1d | [
"MIT"
] | 9 | 2017-09-21T17:28:02.000Z | 2019-09-19T11:13:07.000Z | phoenix_example/lib/spec_example.ex | saraid/rb-phoenix-socket | 90558ced343763621a99e361cbb92e8e3c1d6d1d | [
"MIT"
] | 2 | 2017-09-24T00:26:45.000Z | 2021-03-04T15:54:11.000Z | phoenix_example/lib/spec_example.ex | saraid/rb-phoenix-socket | 90558ced343763621a99e361cbb92e8e3c1d6d1d | [
"MIT"
] | 1 | 2021-04-08T23:14:22.000Z | 2021-04-08T23:14:22.000Z | defmodule SpecExample do
@moduledoc """
SpecExample keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.9 | 66 | 0.760618 |
036c19af02913700ce113555ed89e2c3ae8c5e7f | 776 | ex | Elixir | lib/stein/time.ex | smartlogic/stein | 785dff2d0400925b896d78b0f092fc501b685d0c | [
"MIT"
] | 14 | 2019-03-07T22:06:51.000Z | 2021-06-05T19:27:22.000Z | lib/stein/time.ex | smartlogic/stein | 785dff2d0400925b896d78b0f092fc501b685d0c | [
"MIT"
] | 1 | 2019-03-07T16:46:11.000Z | 2019-03-07T16:46:11.000Z | lib/stein/time.ex | smartlogic/stein | 785dff2d0400925b896d78b0f092fc501b685d0c | [
"MIT"
] | null | null | null | defmodule Stein.Time do
@moduledoc """
Helpers for dealing with time
"""
@doc """
Get the current time
"""
@spec now() :: DateTime.t()
def now() do
:os.system_time()
|> DateTime.from_unix!(:native)
|> DateTime.truncate(:second)
end
@doc """
Determine if a time is after another time
... | 17.244444 | 55 | 0.573454 |
036c67f7a6cf169e8c14e4a13286ebdf253c26cc | 28,065 | exs | Elixir | test/livebook/session_test.exs | axelson/livebook | 78b9a11d8c3dac78c648cc7903343ea09f45efd9 | [
"Apache-2.0"
] | null | null | null | test/livebook/session_test.exs | axelson/livebook | 78b9a11d8c3dac78c648cc7903343ea09f45efd9 | [
"Apache-2.0"
] | null | null | null | test/livebook/session_test.exs | axelson/livebook | 78b9a11d8c3dac78c648cc7903343ea09f45efd9 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.SessionTest do
use ExUnit.Case, async: true
import Livebook.TestHelpers
alias Livebook.{Session, Delta, Runtime, Utils, Notebook, FileSystem}
alias Livebook.Notebook.{Section, Cell}
alias Livebook.Session.Data
setup do
session = start_session()
%{session: session}
end
desc... | 34.605425 | 98 | 0.655585 |
036c6d8ff38342e84b6dd0d610cc57939a37750b | 966 | exs | Elixir | spec/assertions/boolean/be_false_spec.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | spec/assertions/boolean/be_false_spec.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | spec/assertions/boolean/be_false_spec.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | defmodule ESpec.Assertions.Boolean.BeFalseSpec do
require CheckErrorSharedSpec
use ESpec, async: true
context "Success" do
it "checks success with `to`" do
message = expect(false).to(be_false())
expect(message) |> to(eq "`false` is false.")
end
it "checks success with `not_to`" do
... | 24.769231 | 65 | 0.614907 |
036c7effef8bc61080a0d5b80b3ac7f8fbbe9cfb | 2,042 | exs | Elixir | test/guilda_web/live/podcast/podcast_episode_live_as_guest_test.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 10 | 2020-09-05T20:25:05.000Z | 2022-01-28T14:02:36.000Z | test/guilda_web/live/podcast/podcast_episode_live_as_guest_test.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 11 | 2020-09-07T01:09:55.000Z | 2022-02-06T00:58:48.000Z | test/guilda_web/live/podcast/podcast_episode_live_as_guest_test.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 3 | 2020-10-03T01:53:08.000Z | 2022-01-28T14:03:09.000Z | defmodule GuildaWeb.PodcastEpisodeAsGuestLiveTest do
use GuildaWeb.ConnCase, async: true
import Phoenix.LiveViewTest
import Guilda.PodcastsFixtures
defp create_episode(_) do
%{episode: insert(:episode)}
end
defp path(:index, assigns) do
Routes.podcast_episode_index_path(assigns.conn, :index)
e... | 30.939394 | 101 | 0.656219 |
036cb250b19bda06c6127a29e871dbf225b8fbde | 9 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Variable.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Variable.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Variable.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | one = two | 9 | 9 | 0.666667 |
036ccdbcc7e700ec45553bcc7c6d353ad680dceb | 479 | ex | Elixir | lib/credo/test/source_files.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/test/source_files.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/test/source_files.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Test.SourceFiles do
def to_source_file(source) do
filename = "test-untitled#{System.unique_integer()}.ex"
to_source_file(source, filename)
end
def to_source_file(source, filename) do
case Credo.SourceFile.parse(source, filename) do
%{status: :valid} = source_file ->
sou... | 21.772727 | 59 | 0.678497 |
036d0933d5ac983bc6000d15c4fdcd99fb674ee1 | 67 | ex | Elixir | apps/bookmarker/web/views/folder_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/web/views/folder_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/web/views/folder_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.FolderView do
use Bookmarker.Web, :view
end
| 16.75 | 34 | 0.80597 |
036d0a77481ef84e5762d61c3d101b79cef13050 | 2,092 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_result.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_result.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_result.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... | 34.866667 | 128 | 0.730402 |
036d2569db69567f3e8536861b7173ca926674a1 | 1,915 | exs | Elixir | clients/games_management/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_management/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_management/mix.exs | 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... | 28.58209 | 156 | 0.665274 |
036d449e71c0e645170e576d2ef71b361becae17 | 7,397 | ex | Elixir | lib/oban/queue/executor.ex | jaimeiniesta/oban | 4e7ca86371722762d5bd620a43dba6c8df7b2dde | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/executor.ex | jaimeiniesta/oban | 4e7ca86371722762d5bd620a43dba6c8df7b2dde | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/executor.ex | jaimeiniesta/oban | 4e7ca86371722762d5bd620a43dba6c8df7b2dde | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Queue.Executor do
@moduledoc false
alias Oban.{
Breaker,
Config,
CrashError,
Job,
PerformError,
Telemetry,
TimeoutError,
Worker
}
alias Oban.Queue.Engine
require Logger
@type success :: {:success, Job.t()}
@type failure :: {:failure, Job.t(), Worker.t(), ... | 24.332237 | 98 | 0.589023 |
036d4a7a98f3ffaf805ffb6bb8e0c896f974c6b0 | 11,055 | exs | Elixir | test/elixir/test/security_validation_test.exs | denyadb/couchdb | ac33e853cef2a6a108aa64269eb196d32b235529 | [
"Apache-2.0"
] | 1 | 2020-09-11T19:23:27.000Z | 2020-09-11T19:23:27.000Z | test/elixir/test/security_validation_test.exs | denyadb/couchdb | ac33e853cef2a6a108aa64269eb196d32b235529 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/security_validation_test.exs | denyadb/couchdb | ac33e853cef2a6a108aa64269eb196d32b235529 | [
"Apache-2.0"
] | null | null | null | defmodule SecurityValidationTest do
use CouchTestCase
@moduletag :security
@moduletag kind: :single_node
@moduledoc """
Test CouchDB Security Validations
This is a port of the security_validation.js suite
"""
@auth_headers %{
jerry: [
# jerry:mouse
authorization: "Basic amVycnk6bW91c2... | 32.514706 | 124 | 0.593578 |
036d52eafa2bd045ef68ab8eb0d238f6df2e8030 | 1,711 | ex | Elixir | lib/credo/cli/command/list/list_output.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/cli/command/list/list_output.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/cli/command/list/list_output.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.CLI.Command.List.ListOutput do
@moduledoc false
use Credo.CLI.Output.FormatDelegator,
default: Credo.CLI.Command.List.Output.Default,
flycheck: Credo.CLI.Command.List.Output.FlyCheck,
oneline: Credo.CLI.Command.List.Output.Oneline,
json: Credo.CLI.Command.List.Output.Json
alias C... | 30.553571 | 102 | 0.613676 |
036da3ca5da28cdf530ccb9d3440e8ce4853db16 | 239 | exs | Elixir | config/prod.exs | Angarsk8/todoapp_cowboy_elixir | 38a4b4420e3c8cbd5f77178aa1cd4b292bd1c4fd | [
"MIT"
] | 134 | 2017-03-28T14:47:37.000Z | 2021-11-25T10:40:15.000Z | config/prod.exs | Angarsk8/todoapp_cowboy_elixir | 38a4b4420e3c8cbd5f77178aa1cd4b292bd1c4fd | [
"MIT"
] | 5 | 2017-03-30T05:56:55.000Z | 2018-01-17T09:22:51.000Z | config/prod.exs | Angarsk8/todoapp_cowboy_elixir | 38a4b4420e3c8cbd5f77178aa1cd4b292bd1c4fd | [
"MIT"
] | 14 | 2017-03-28T17:04:31.000Z | 2021-08-07T07:09:21.000Z | use Mix.Config
config :todo_app, http: [port: {:system, "PORT", 80}]
config :logger, level: :info
config :todo_app, TodoApp.Repo,
adapter: Ecto.Adapters.Postgres,
url: {:system, "DB_URL"},
pool_size: {:system, "DB_POOL_SIZE", 20}
| 21.727273 | 53 | 0.682008 |
036de9666a1903b5d634b6e8276a1127b202e961 | 399 | ex | Elixir | apps/mishka_user/lib/guardian/auth_error_handler.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_user/lib/guardian/auth_error_handler.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_user/lib/guardian/auth_error_handler.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaUser.AuthErrorHandler do
import Plug.Conn
@behaviour Guardian.Plug.ErrorHandler
@impl Guardian.Plug.ErrorHandler
def auth_error(conn, {type, _reason}, _opts) do
body = Jason.encode!(%{
action: :access_token,
system: :user,
message: to_string(type)
})
conn
|> p... | 22.166667 | 49 | 0.681704 |
036df94ae43dec9a284479a750756fd0d0fc8060 | 291 | exs | Elixir | test/quatern/quatern_pitch_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 70 | 2015-01-07T10:13:38.000Z | 2021-09-29T05:06:14.000Z | test/quatern/quatern_pitch_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 28 | 2015-01-22T22:38:24.000Z | 2021-06-24T06:15:38.000Z | test/quatern/quatern_pitch_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 17 | 2015-01-22T18:35:41.000Z | 2020-12-24T22:42:40.000Z | defmodule GraphmathTest.Quatern.PitchQuatern do
use ExUnit.Case
@tag :quatern
@tag :get_pitch
# values obtained through another calculator
test "get_pitch({5,6,7,8}) returns 2.428842693496242" do
assert 2.428842693496242 == Graphmath.Quatern.get_pitch({5, 6, 7, 8})
end
end
| 26.454545 | 73 | 0.738832 |
036e16258b852447492f9064bbad91411f9357f8 | 853 | ex | Elixir | exercism/elixir/bread-and-potions/lib/rpg.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/bread-and-potions/lib/rpg.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/bread-and-potions/lib/rpg.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule RPG do
defmodule Character do
defstruct health: 100, mana: 0
end
defmodule LoafOfBread do
defstruct []
end
defmodule ManaPotion do
defstruct strength: 10
end
defmodule Poison do
defstruct []
end
defmodule EmptyBottle do
defstruct []
end
defprotocol Edible do
... | 19.386364 | 78 | 0.662368 |
036e4ba0289da4f978f961227eccd9b08acca0b0 | 4,734 | ex | Elixir | lib/rostrum2/accounts/user.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | null | null | null | lib/rostrum2/accounts/user.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | 3 | 2021-11-25T05:44:03.000Z | 2021-11-26T06:33:53.000Z | lib/rostrum2/accounts/user.ex | ashton314/rostrum2 | e392190b27f7dae4cc2de3668c1f4fea5cca63c1 | [
"MIT"
] | null | null | null | defmodule Rostrum.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
alias Rostrum.Accounts.Unit
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :email, :string
field :password, :string, virtual: true, redact: true
field :hashed_passwo... | 32.204082 | 112 | 0.686946 |
036e5ec2b206c2593c009233fbad7695b350fdda | 178 | exs | Elixir | priv/repo/migrations/20210602181317_create_authors.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | priv/repo/migrations/20210602181317_create_authors.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | priv/repo/migrations/20210602181317_create_authors.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Repo.Migrations.CreateAuthors do
use Ecto.Migration
def change do
create table(:authors) do
timestamps()
add :name, :text
end
end
end
| 14.833333 | 48 | 0.674157 |
036e6e697ce99d9ba919a94119b1d5a496718cbb | 1,412 | ex | Elixir | lib/elasticsearch/storage/document.ex | steffkes/elasticsearch-elixir | ce904e5dea959a5caefe2cde15669bba43ac3fa6 | [
"MIT"
] | null | null | null | lib/elasticsearch/storage/document.ex | steffkes/elasticsearch-elixir | ce904e5dea959a5caefe2cde15669bba43ac3fa6 | [
"MIT"
] | null | null | null | lib/elasticsearch/storage/document.ex | steffkes/elasticsearch-elixir | ce904e5dea959a5caefe2cde15669bba43ac3fa6 | [
"MIT"
] | null | null | null | defprotocol Elasticsearch.Document do
@moduledoc """
A protocol for converting a struct into an Elasticsearch document.
## Example
defimpl Elasticsearch.Document, for: MyStruct do
def id(struct), do: struct.id
def type(_struct), do: "struct"
def parent(_struct), do: false
d... | 20.171429 | 74 | 0.580028 |
036e839a887b082d2ef5b37ca2264387d1152d51 | 3,755 | ex | Elixir | generated-sources/elixir/mojang-status/lib/com/github/asyncmc/mojang/status/elixir/server/request_builder.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-status/lib/com/github/asyncmc/mojang/status/elixir/server/request_builder.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-status/lib/com/github/asyncmc/mojang/status/elixir/server/request_builder.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.github.asyncmc.mojang.status.elixir.server.RequestBuilder do
@moduledoc """
Helper functions for building Tesla requests
"""
@doc """
S... | 28.884615 | 137 | 0.643675 |
036eeed619774c3a8921b1c2a4c2d7fb476e9725 | 650 | ex | Elixir | apps/blunt_data/lib/blunt/data/factories/values/build.ex | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt_data/lib/blunt/data/factories/values/build.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt_data/lib/blunt/data/factories/values/build.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.Data.Factories.Values.Build do
@moduledoc false
defstruct [:field, :factory_name]
alias Blunt.Data.Factories.Factory
alias Blunt.Data.Factories.Values.Build
defimpl Blunt.Data.Factories.Value do
def evaluate(%Build{field: field, factory_name: factory_name}, acc, current_factory) do
... | 32.5 | 91 | 0.733846 |
036f46d975f48caa264416efe88ccaa5e8b98422 | 7,097 | ex | Elixir | lib/bitcoin/tx/tx_maker.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/tx/tx_maker.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/tx/tx_maker.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Tx.TxMaker do
alias Bitcoin.Base58Check
alias Bitcoin.Protocol.Types.VarInteger
alias Bitcoin.Key
alias Bitcoin.Crypto
require Logger
defmodule Resource do
def utxos(addr) do
{:ok, data} = SvApi.Bitindex.utxos(addr)
utxos =
for d <- data do
%{
... | 23.042208 | 119 | 0.569255 |
036f733c346fe3183db8b82f3e51d49063c2f392 | 2,151 | ex | Elixir | lib/comspec/event.ex | andyl/phx-cmdd | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 5 | 2019-05-23T23:25:25.000Z | 2019-05-31T12:10:59.000Z | lib/comspec/event.ex | andyl/comgen | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 3 | 2019-05-31T04:42:02.000Z | 2019-06-01T06:42:14.000Z | lib/comspec/event.ex | andyl/comgen | f72319d81b264b4deba4831ee1d0eb725d2b5adb | [
"MIT"
] | 1 | 2019-06-01T05:04:14.000Z | 2019-06-01T05:04:14.000Z | defmodule Comspec.Event do
@moduledoc """
A struct to handle an Event and generate Event Resources.
"""
@dirtype "events"
@modtype "Events"
use TypedStruct
import ComspecUtil
typedstruct do
field(:name, String.t())
field(:fields, list())
end
@doc """
Build the directories, code and tes... | 25.607143 | 87 | 0.608089 |
036fd0bae7388dddb421ae3801aece3d8fc51d73 | 2,742 | ex | Elixir | deps/makeup/lib/makeup/styles/html/pygments/samba.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | deps/makeup/lib/makeup/styles/html/pygments/samba.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | deps/makeup/lib/makeup/styles/html/pygments/samba.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null |
defmodule Makeup.Styles.HTML.SambaStyle do
@moduledoc false
@styles %{
:error => "#a40000 border:#ef2929",
:other => "#000000",
:keyword => "bold #204a87",
:keyword_constant => "bold #204a87",
:keyword_declaration => "bold #204a87",
:keyword_namespace => "bold #204a87",
:key... | 31.517241 | 44 | 0.578045 |
036fd6ea91e981eae87faad69bc9588eb24a9894 | 10,311 | ex | Elixir | turtle/lib/turtle/motion.ex | jaimeiniesta/turtle | 9376c7dc29d755f3a7c2fea053bfd68db9c47c10 | [
"Apache-2.0"
] | 13 | 2019-09-18T15:58:23.000Z | 2022-02-17T11:16:59.000Z | turtle/lib/turtle/motion.ex | jaimeiniesta/turtle | 9376c7dc29d755f3a7c2fea053bfd68db9c47c10 | [
"Apache-2.0"
] | 1 | 2020-11-05T18:23:48.000Z | 2022-02-12T20:56:35.000Z | turtle/lib/turtle/motion.ex | jaimeiniesta/turtle | 9376c7dc29d755f3a7c2fea053bfd68db9c47c10 | [
"Apache-2.0"
] | 1 | 2022-02-12T22:57:08.000Z | 2022-02-12T22:57:08.000Z | defmodule Turtle.Motion do
@moduledoc """
Motion for Turtle
"""
alias Turtle.Vector
@type distance :: number
@type angle :: number
@doc """
Move the turtle forward by the given amount of distance.
Move the turtle forward by the specified distance, in the direction the
turtle is headed
## Exam... | 27.569519 | 84 | 0.590728 |
037044e18b44af5a8146812bf4a6a7545837018b | 2,471 | exs | Elixir | strings_and_binaries.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | strings_and_binaries.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | strings_and_binaries.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | defmodule StringsAndBinaries do
def contains_all_ascii_printables([h|_]) when h < ?\s or h > ?~, do: false
def contains_all_ascii_printables([_|t]), do: contains_all_ascii_printables(t)
def contains_all_ascii_printables([]), do: true
def anagram?(word1,word2), do: _anagram(prepare_words(word1) -- prepare_words(... | 56.159091 | 152 | 0.648321 |
03704965cdcc124978079a179551a5ce62988f4f | 279 | exs | Elixir | test/controllers/page_controller_test.exs | silentdragonz/chen | a1a1f48a9540ace93c22d16bd2dfae594bd753d2 | [
"MIT"
] | 3 | 2015-06-26T03:56:16.000Z | 2019-04-29T14:57:43.000Z | test/controllers/page_controller_test.exs | silentdragonz/chen | a1a1f48a9540ace93c22d16bd2dfae594bd753d2 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | silentdragonz/chen | a1a1f48a9540ace93c22d16bd2dfae594bd753d2 | [
"MIT"
] | null | null | null | defmodule Chen.PageControllerTest do
use Chen.ConnCase
test "GET /" do
conn = get conn(), "/"
assert html_response(conn, 200) =~ "Honk! Honk!"
end
test "GET /faq" do
conn = get conn(), "/faq"
assert html_response(conn, 200) =~ "Chen does NOT"
end
end
| 19.928571 | 54 | 0.623656 |
037076c53bf965d8ede1609352f36bf324cc271b | 82,733 | ex | Elixir | clients/service_directory/lib/google_api/service_directory/v1/api/projects.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_directory/lib/google_api/service_directory/v1/api/projects.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_directory/lib/google_api/service_directory/v1/api/projects.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... | 46.34902 | 1,404 | 0.614519 |
0370922755ebf8a6d14908081d354f33cadf1c02 | 840 | exs | Elixir | test/jwt_claims/string_or_uri_test.exs | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 10 | 2015-08-22T21:13:09.000Z | 2020-01-13T19:32:44.000Z | test/jwt_claims/string_or_uri_test.exs | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 5 | 2016-06-23T21:36:54.000Z | 2019-05-22T14:26:42.000Z | test/jwt_claims/string_or_uri_test.exs | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 3 | 2016-01-25T23:57:06.000Z | 2020-10-01T17:21:52.000Z | defmodule JwtClaims.Claim.StringOrUriTest do
use ExUnit.Case
alias JwtClaims.StringOrUri
doctest StringOrUri
test "present_and_equal?/2 w equality" do
assert StringOrUri.present_and_equal?("foo", "foo")
end
defp with_blank_or_not_equal(a, b) do
refute StringOrUri.present_and_equal?(a, b)
end
... | 26.25 | 88 | 0.710714 |
0370a021986e29c7f13c132715d1a4f37cc72517 | 1,290 | exs | Elixir | test/bitcoin/protocol/messages/get_data_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | test/bitcoin/protocol/messages/get_data_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 4 | 2017-03-26T12:56:59.000Z | 2021-05-29T01:26:57.000Z | test/bitcoin/protocol/messages/get_data_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.Protocol.Messages.GetDataTest do
use ExUnit.Case
alias Bitcoin.Protocol.Messages.GetData
alias Bitcoin.Protocol.Types.InventoryVector
test "getdata message with 2 inventory vectors" do
payload = Base.decode16!("02" <> # 2 vectors in this message
# Inventory V... | 40.3125 | 107 | 0.602326 |
0370a82dfbf60fc679660ff10e954a3248a5b921 | 6,501 | exs | Elixir | test/utils_test.exs | jeffweiss/exirc | d56e1d93ef83d350606e489021a276f8a49e9480 | [
"MIT"
] | 147 | 2015-01-12T15:05:12.000Z | 2022-03-17T06:32:41.000Z | test/utils_test.exs | jeffweiss/exirc | d56e1d93ef83d350606e489021a276f8a49e9480 | [
"MIT"
] | 74 | 2015-01-24T23:07:53.000Z | 2021-04-23T14:27:43.000Z | test/utils_test.exs | jeffweiss/exirc | d56e1d93ef83d350606e489021a276f8a49e9480 | [
"MIT"
] | 51 | 2015-02-13T21:00:38.000Z | 2022-03-03T15:38:12.000Z | defmodule ExIRC.UtilsTest do
use ExUnit.Case, async: true
use ExIRC.Commands
alias ExIRC.Utils, as: Utils
alias ExIRC.Client.ClientState, as: ClientState
doctest ExIRC.Utils
test "Given a local date/time as a tuple, can retrieve get the CTCP formatted time" do
local_time = {{2013,12,6},{14,5,0}} # M... | 30.957143 | 108 | 0.583756 |
0370bb9a8ccb0210103c4b5dbdd95704eb679764 | 19,294 | exs | Elixir | test/ecto/query_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | test/ecto/query_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | test/ecto/query_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/eval_helpers.exs", __DIR__
defmodule Ecto.QueryTest do
use ExUnit.Case, async: true
import Support.EvalHelpers
import Ecto.Query
alias Ecto.Query
defmacrop macro_equal(column, value) do
quote do
unquote(column) == unquote(value)
end
end
defmacro macro_map(ke... | 34.20922 | 145 | 0.57308 |
0370f92fad3738b1fdc9a42b5c5444585a29a027 | 2,313 | ex | Elixir | apps/asf_web/lib/asf_web/controllers/user_settings_controller.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | apps/asf_web/lib/asf_web/controllers/user_settings_controller.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | apps/asf_web/lib/asf_web/controllers/user_settings_controller.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | defmodule AsfWeb.UserSettingsController do
use AsfWeb, :controller
alias Asf.Accounts
alias AsfWeb.UserAuth
plug :assign_email_and_password_changesets
def edit(conn, _params) do
conn = assign(conn, :page_title, "Settings")
render(conn, "edit.html")
end
def update(conn, %{"action" => "update_em... | 30.434211 | 81 | 0.651967 |
0371025454a0367f5c1bc1103ab9c74846cc1a38 | 171 | ex | Elixir | lib/idvote_web/static.ex | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 2 | 2018-08-15T02:03:36.000Z | 2019-02-06T23:27:56.000Z | lib/idvote_web/static.ex | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 14 | 2018-08-11T19:47:56.000Z | 2018-08-29T22:44:22.000Z | lib/idvote_web/static.ex | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 2 | 2018-08-11T16:44:02.000Z | 2018-08-28T03:45:55.000Z | defmodule IdvoteWeb.StaticPlug do
@behaviour Plug
import Plug.Conn
def init(_), do: []
def call(conn, _), do: send_file(conn, 200, "priv/static/index.html")
end
| 19 | 71 | 0.695906 |
037109cba46e38a2b709be9aee424a4912d38514 | 4,655 | ex | Elixir | debian/manpage.sgml.ex | MacroFab/gerber-to-svg | 213253e0eb0dfd44c224953593203766e0c46ccb | [
"MIT"
] | 5 | 2016-04-20T11:12:56.000Z | 2018-01-15T09:50:45.000Z | debian/manpage.sgml.ex | MacroFab/gerber-to-svg | 213253e0eb0dfd44c224953593203766e0c46ccb | [
"MIT"
] | null | null | null | debian/manpage.sgml.ex | MacroFab/gerber-to-svg | 213253e0eb0dfd44c224953593203766e0c46ccb | [
"MIT"
] | 1 | 2017-02-27T17:36:52.000Z | 2017-02-27T17:36:52.000Z | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Ma... | 30.032258 | 75 | 0.657358 |
03710fbd88d81d43016d23d92a6c70df69cca391 | 1,250 | exs | Elixir | clients/jobs/mix.exs | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/jobs/mix.exs | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/jobs/mix.exs | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Jobs.V2.Mixfile do
use Mix.Project
@version "0.3.0"
def project do
[app: :google_api_jobs,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: de... | 25.510204 | 154 | 0.604 |
037112a06535bfca983bac14a0ea3bd81c16c97a | 2,016 | ex | Elixir | lib/plug/exceptions.ex | VinogradovAlexandr/plug | baad2c4fa48a9c288545e4581e30c0d6a007f3d1 | [
"Apache-2.0"
] | 1 | 2020-09-01T12:50:36.000Z | 2020-09-01T12:50:36.000Z | lib/plug/exceptions.ex | VinogradovAlexandr/plug | baad2c4fa48a9c288545e4581e30c0d6a007f3d1 | [
"Apache-2.0"
] | null | null | null | lib/plug/exceptions.ex | VinogradovAlexandr/plug | baad2c4fa48a9c288545e4581e30c0d6a007f3d1 | [
"Apache-2.0"
] | null | null | null | # This file defines the Plug.Exception protocol and
# the exceptions that implement such protocol.
defprotocol Plug.Exception do
@moduledoc """
A protocol that extends exceptions to be status-code aware.
By default, it looks for an implementation of the protocol,
otherwise checks if the exception has the `:pl... | 28.394366 | 96 | 0.698909 |
03712878d020871ae3dbb4511d4b2355c8df4c8e | 545 | exs | Elixir | test/cog/chat/hipchat/templates/embedded/group_member_add_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/hipchat/templates/embedded/group_member_add_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/hipchat/templates/embedded/group_member_add_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.HipChat.Templates.Embedded.GroupMemberAddTest do
use Cog.TemplateCase
test "group-member-add template" do
data = %{"results" => [%{"name" => "testgroup",
"members_added" => ["member1",
"member2"]}]}
expected = ... | 34.0625 | 85 | 0.574312 |
03713feb7564987bc9d6a1619a49502faef4a091 | 603 | ex | Elixir | lib/ex_diet_web/views/error_view.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | lib/ex_diet_web/views/error_view.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | lib/ex_diet_web/views/error_view.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDietWeb.ErrorView do
use ExDietWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. ... | 28.714286 | 69 | 0.713101 |
037142867cf0e81868cabddf9d50cfb8b886079e | 700 | ex | Elixir | lib/particle/device.ex | skruger/particle-elixir | a545ca921b239c2e2edb291cfc98f7d00c2e7310 | [
"MIT"
] | 4 | 2017-04-30T22:16:10.000Z | 2018-05-03T19:52:24.000Z | lib/particle/device.ex | skruger/particle-elixir | a545ca921b239c2e2edb291cfc98f7d00c2e7310 | [
"MIT"
] | 5 | 2016-09-30T10:05:57.000Z | 2019-06-03T22:55:25.000Z | lib/particle/device.ex | skruger/particle-elixir | a545ca921b239c2e2edb291cfc98f7d00c2e7310 | [
"MIT"
] | 3 | 2016-09-27T07:42:26.000Z | 2020-11-04T06:00:53.000Z | defmodule Particle.Device do
alias Particle.Base
alias Particle.Error
defstruct [:id, :name, :connected, variables: %{}, functions: []]
@type t :: %__MODULE__{
id: binary,
name: binary,
connected: Boolean,
variables: %{Atom => binary},
functions: [binary]
... | 22.580645 | 75 | 0.615714 |
03717d6624106fce84315400f693f7e96c56d38b | 1,194 | ex | Elixir | web/models/item/food/ingredient_list.ex | ZURASTA/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 1 | 2017-06-15T11:20:27.000Z | 2017-06-15T11:20:27.000Z | web/models/item/food/ingredient_list.ex | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | null | null | null | web/models/item/food/ingredient_list.ex | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 2 | 2017-07-25T10:16:19.000Z | 2017-08-02T06:54:22.000Z | defmodule Bonbon.Model.Item.Food.IngredientList do
use Bonbon.Web, :model
@moduledoc """
A model representing the different ingredients of food available to order.
"""
schema "food_ingredient_list" do
belongs_to :food, Bonbon.Model.Item.Food
belongs_to :ingredient, Bonbon.Model.In... | 36.181818 | 84 | 0.639866 |
03718e434b79f69e8ac74fd911706d3fb90addad | 1,924 | ex | Elixir | lib/10_parse/30_example_functions.ex | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | lib/10_parse/30_example_functions.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | lib/10_parse/30_example_functions.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule EctoTestDSL.Parse.ExampleFunctions do
use EctoTestDSL.Drink.Me
use T.Drink.AndParse
use EctoTestDSL.Drink.Assertively
@moduledoc """
There are three special categories of example-level commands, as reflected
in their names:
`*_of` functions record the intention to derefence an EEN a test-run t... | 32.610169 | 80 | 0.656965 |
0371a3077b0778acd049cb5bdb07c934dd53560a | 1,262 | ex | Elixir | lib/extwitter/api/shared/auth_parser.ex | PJUllrich/extwitter | edee88d5b9411bd0e3226c295362e328ae73255d | [
"MIT"
] | null | null | null | lib/extwitter/api/shared/auth_parser.ex | PJUllrich/extwitter | edee88d5b9411bd0e3226c295362e328ae73255d | [
"MIT"
] | null | null | null | lib/extwitter/api/shared/auth_parser.ex | PJUllrich/extwitter | edee88d5b9411bd0e3226c295362e328ae73255d | [
"MIT"
] | null | null | null | defmodule ExTwitter.API.AuthParser do
@doc """
Parse request_token response
"""
@spec parse_request_token(map) :: ExTwitter.Model.RequestToken.t()
def parse_request_token(object) do
ExTwitter.Model.RequestToken |> struct(object) |> Map.put(:raw_data, object)
end
@doc """
Parse access_token response... | 29.348837 | 80 | 0.698098 |
0371c9493b549702bc1036c5e8cb082f4ebaf209 | 31,360 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/images.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/images.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/images.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... | 47.659574 | 434 | 0.636767 |
0371cf8d9e581d13d9740616c91b54b10391021a | 7,416 | exs | Elixir | test/plug/adapters/cowboy/conn_test.exs | niku/plug | 807faed1e97868f130331c1c9b2eb710efa55164 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/cowboy/conn_test.exs | niku/plug | 807faed1e97868f130331c1c9b2eb710efa55164 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/cowboy/conn_test.exs | niku/plug | 807faed1e97868f130331c1c9b2eb710efa55164 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Adapters.Cowboy.ConnTest do
use ExUnit.Case, async: true
alias Plug.Conn
import Plug.Conn
defmodule Dummy do
def init(opts) do
opts
end
end
## Cowboy setup for testing
#
# We use hackney to perform an HTTP request against the cowboy/plug running
# on port 8001. Plug th... | 32.103896 | 443 | 0.628641 |
0371efe411de00ec4257c67bd52610ea1b610b69 | 2,260 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/password_validation_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/password_validation_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/password_validation_policy.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.305085 | 129 | 0.717257 |
0371fd4465c1b60f7f9cc5b535d280f2f6a052b2 | 2,902 | ex | Elixir | lib/credo/check/runner.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/check/runner.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/check/runner.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Runner do
alias Credo.CLI.Output.UI
alias Credo.Execution
alias Credo.SourceFile
alias Credo.Execution.Issues
@doc false
def run(source_files, exec) when is_list(source_files) do
{_time_run_on_all, _source_files_after_run_on_all} =
:timer.tc(fn ->
run_checks_that_run... | 23.031746 | 70 | 0.634735 |
0372322f3194ceed9a7d996d32a4f7e8c8a83a33 | 44,871 | ex | Elixir | lib/elixir/lib/gen_server.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 1 | 2021-05-05T02:11:24.000Z | 2021-05-05T02:11:24.000Z | lib/elixir/lib/gen_server.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/lib/gen_server.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | defmodule GenServer do
@moduledoc """
A behaviour module for implementing the server of a client-server relation.
A GenServer is a process like any other Elixir process and it can be used
to keep state, execute code asynchronously and so on. The advantage of using
a generic server process (GenServer) impleme... | 36.480488 | 119 | 0.6627 |
03724f1f885ce7a19e26c8c06c678da89740f983 | 1,772 | ex | Elixir | web/controllers/user_controller.ex | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | web/controllers/user_controller.ex | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | web/controllers/user_controller.ex | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | defmodule MysteryNight.UserController do
use MysteryNight.Web, :controller
alias MysteryNight.User
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.html", users: users)
end
def new(conn, _params) do
changeset = User.changeset(%User{})
render(conn, "new.html", changeset... | 26.848485 | 67 | 0.612867 |
037256071926f189547ecf4135720212821fcf2a | 22,990 | ex | Elixir | lib/ex_doc/formatter/html/autolink.ex | chulkilee/ex_doc | c393cae07a35d891177be0b5f47ed31bf67c2213 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/autolink.ex | chulkilee/ex_doc | c393cae07a35d891177be0b5f47ed31bf67c2213 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/autolink.ex | chulkilee/ex_doc | c393cae07a35d891177be0b5f47ed31bf67c2213 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.Autolink do
@moduledoc """
Conveniences for autolinking.
"""
import ExDoc.Formatter.HTML.Templates, only: [h: 1, enc_h: 1]
@type language :: :elixir | :erlang | :markdown
@type kind :: :function | :module | :mix_task
@type link_type :: :normal | :custom
@backtick_token "... | 27.59904 | 106 | 0.573815 |
03727cf6d084a810656e7b5fd8b7f4a73356d57d | 3,002 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_symbol.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_symbol.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_symbol.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 39.5 | 177 | 0.706196 |
03729f0500bd17531f99ea28b3aa8e8d6eece34f | 1,915 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orderreturns_list_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderreturns_list_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderreturns_list_response.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... | 35.462963 | 155 | 0.738903 |
0372b1f84bd236e1b4070b9b4233585f99de79f4 | 2,276 | exs | Elixir | mix.exs | sasanchezag/elixir_xdr | a367bd6ad4b636c1f8236efbe59e1136e992cec1 | [
"MIT"
] | null | null | null | mix.exs | sasanchezag/elixir_xdr | a367bd6ad4b636c1f8236efbe59e1136e992cec1 | [
"MIT"
] | null | null | null | mix.exs | sasanchezag/elixir_xdr | a367bd6ad4b636c1f8236efbe59e1136e992cec1 | [
"MIT"
] | null | null | null | defmodule XDR.MixProject do
use Mix.Project
@github_url "https://github.com/kommitters/elixir_xdr"
@version "0.1.5"
def project do
[
app: :elixir_xdr,
version: @version,
elixir: ">= 1.7.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
name: "... | 24.73913 | 66 | 0.598418 |
0372d64d42a14e74e4ed52b7f6fb79ac3824b754 | 3,839 | exs | Elixir | test/credo/check/readability/large_numbers_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/readability/large_numbers_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/readability/large_numbers_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.LargeNumbersTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.LargeNumbers
#
# cases NOT raising issues
#
@tag needs_elixir: "1.3.2"
test "it should NOT report expected code" do
"""
@budgets %{
"budget1": 100_000,
"budget2": 200_000,
"budget3"... | 19.687179 | 79 | 0.679083 |
0372d8e26ce57cb9f6a451616d655de24de0818d | 10,017 | ex | Elixir | apps/irc/lib/irc/admin_handler.ex | friendshipismagic/Hekateros | 0d340b6818583e2e65b0395227c9bb91796e5f89 | [
"MIT"
] | 2 | 2019-03-22T12:29:37.000Z | 2021-01-08T17:25:32.000Z | apps/irc/lib/irc/admin_handler.ex | friendshipismagic/Hecateros | 0d340b6818583e2e65b0395227c9bb91796e5f89 | [
"MIT"
] | 8 | 2017-12-04T16:53:35.000Z | 2018-04-08T11:01:46.000Z | apps/irc/lib/irc/admin_handler.ex | friendshipismagic/Hekateros | 0d340b6818583e2e65b0395227c9bb91796e5f89 | [
"MIT"
] | null | null | null | defmodule IRC.AdminHandler do
alias IRC.State
import IRC.Helpers, only: [get_whois: 1, check_auth: 1]
import Core.Users, only: [check_admin: 2, add_admin: 2]
alias Core.{Chan,Repo}
require Logger
use GenServer
def start_link(%State{}=state) do
GenServer.start_link(__MODULE__, state.client, name: __M... | 34.304795 | 118 | 0.588799 |
037301f18040f82f3f29fe39bc5984d624d2210a | 383 | exs | Elixir | test/test_helper.exs | athonet-open/ex_sieve | 19d4e977f60d032f2267f1324bb5643b4deb3bf3 | [
"MIT"
] | null | null | null | test/test_helper.exs | athonet-open/ex_sieve | 19d4e977f60d032f2267f1324bb5643b4deb3bf3 | [
"MIT"
] | null | null | null | test/test_helper.exs | athonet-open/ex_sieve | 19d4e977f60d032f2267f1324bb5643b4deb3bf3 | [
"MIT"
] | null | null | null | defmodule ExSieve.TestCase do
use ExUnit.CaseTemplate
alias Ecto.Adapters.SQL.Sandbox
using(opts) do
quote do
alias ExSieve.Repo
use ExUnit.Case, unquote(opts)
import Ecto.Query
import ExSieve.Factory
end
end
setup do
Sandbox.mode(ExSieve.Repo, :manual)
:ok = Sandb... | 15.958333 | 40 | 0.686684 |
037336b2fb715d32f865949bab483c3f135c77ad | 109 | ex | Elixir | lib/absinthe/language/list_value.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/language/list_value.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/language/list_value.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Language.ListValue do
@moduledoc false
defstruct values: [], loc: %{start: nil}
end
| 15.571429 | 42 | 0.724771 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.