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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
032ee48b21172b46a60a3cddba2738ea9f1bbd24 | 522 | ex | Elixir | lib/parameters/params_node.ex | imranismail/parameters | 9de14c32a007d8ddd01685678ba81e0fdb1f7fb9 | [
"MIT"
] | 13 | 2019-04-23T04:22:49.000Z | 2021-12-17T10:38:12.000Z | lib/parameters/params_node.ex | imranismail/parameters | 9de14c32a007d8ddd01685678ba81e0fdb1f7fb9 | [
"MIT"
] | 2 | 2019-07-07T13:59:45.000Z | 2019-07-07T14:02:34.000Z | lib/parameters/params_node.ex | imranismail/parameters | 9de14c32a007d8ddd01685678ba81e0fdb1f7fb9 | [
"MIT"
] | null | null | null | defmodule Parameters.ParamsNode do
defstruct [
:id,
fields: []
]
def parse(name, {:__block__, _metadata, ast}), do: parse(name, ast)
def parse(name, ast) when is_tuple(ast), do: parse(name, [ast])
def parse(name, ast) when is_list(ast) do
Enum.reduce(ast, struct(__MODULE__), fn field, schema ->
... | 26.1 | 69 | 0.626437 |
032f178d247f8341129ad9725464893268376c5f | 1,417 | exs | Elixir | test/sealax_web/controllers/workspace_controller_test.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | test/sealax_web/controllers/workspace_controller_test.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | test/sealax_web/controllers/workspace_controller_test.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule Sealax.WorkspaceControllerTest do
use SealaxWeb.ConnCase
alias Sealax.Accounts.Workspace
alias Sealax.Accounts.UserWorkspace
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
describe "workspace actions" do
@describetag setup: true, create_user: ... | 38.297297 | 162 | 0.671842 |
032f4a14b31c0cb4ec9086ee52903c8fa72c846e | 570 | exs | Elixir | test/concentrate/health_test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 19 | 2018-01-22T18:39:20.000Z | 2022-02-22T16:15:30.000Z | test/concentrate/health_test.exs | mbta/concentrate | bae6e05713ed079b7da53867a01dd007861fb656 | [
"MIT"
] | 216 | 2018-01-22T14:22:39.000Z | 2022-03-31T10:30:31.000Z | test/concentrate/health_test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 5 | 2018-01-22T14:18:15.000Z | 2021-04-26T18:34:19.000Z | defmodule Concentrate.HealthTest do
use ExUnit.Case
import ExUnit.CaptureLog
import Concentrate.Health
describe "healthy?" do
test "crashes by default" do
healthy?(:health_false)
assert false
catch
:exit, _ ->
true
end
test "true when the server is running" do
{... | 17.8125 | 45 | 0.575439 |
032f4d328971ad0447c29144df2f5d68fc039ca7 | 3,153 | ex | Elixir | lib/grizzly/command_class/association/set.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/association/set.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/association/set.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.Association.Set do
@moduledoc """
Command for working with Association command class SET command
Command Options:
* `:group` - The association group
* `:nodes` - List of node ids to receive messages about node events
* `:seq_number` - The sequence number used in the Z/... | 28.151786 | 99 | 0.587377 |
032f5adfc56f12e4f2d8128a47a4d44da0eb8b4d | 2,308 | ex | Elixir | clients/cloud_support/lib/google_api/cloud_support/v2beta/model/actor.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_support/lib/google_api/cloud_support/v2beta/model/actor.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_support/lib/google_api/cloud_support/v2beta/model/actor.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 43.54717 | 371 | 0.733102 |
032f605461c638d31161a5ae4e1f5353123e5d68 | 1,931 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/gmail/lib/google_api/gmail/v1/model/filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/filter.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.433962 | 124 | 0.719834 |
032f685406a30d9dee51c1b9b5512b7f3ac5397f | 2,250 | ex | Elixir | lib/cforum_web/controllers/messages/accept_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum_web/controllers/messages/accept_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum_web/controllers/messages/accept_controller.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule CforumWeb.Messages.AcceptController do
use CforumWeb, :controller
alias Cforum.Abilities
alias Cforum.Threads
alias Cforum.Threads.ThreadHelpers
alias Cforum.Messages
alias Cforum.Messages.MessageHelpers
alias Cforum.ConfigManager
alias Cforum.Helpers
alias CforumWeb.Views.ViewHelpers.Re... | 32.142857 | 123 | 0.712444 |
032f68e90127e13028784da4476429c78d2a3c0c | 1,081 | ex | Elixir | lib/geometry/wkt.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | lib/geometry/wkt.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | 2 | 2020-10-25T10:06:07.000Z | 2020-10-26T18:15:20.000Z | lib/geometry/wkt.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | defmodule Geometry.WKT do
@moduledoc false
alias Geometry.WKT.Parser
@spec to_ewkt(String.t(), keyword()) :: String.t()
def to_ewkt(wkt, []), do: wkt
def to_ewkt(wkt, opts) when is_list(opts) do
opts
|> Keyword.get(:srid)
|> ewkt(wkt)
end
@spec to_geometry(Geometry.wkt(), module()) ::
... | 25.738095 | 86 | 0.617946 |
032f7b47040355b47bbc6c8800b2795220cc1306 | 466 | ex | Elixir | lib/page_object.ex | hidnasio/page_object | 57548eeb69405d56cc32d8a416fca1743b1b4f16 | [
"MIT"
] | null | null | null | lib/page_object.ex | hidnasio/page_object | 57548eeb69405d56cc32d8a416fca1743b1b4f16 | [
"MIT"
] | null | null | null | lib/page_object.ex | hidnasio/page_object | 57548eeb69405d56cc32d8a416fca1743b1b4f16 | [
"MIT"
] | null | null | null | defmodule PageObject do
@moduledoc """
PageObject wraps all the available macros and is the target module you should `use` in your PageObject module.
"""
defmacro __using__(_opts) do
quote do
use Hound.Helpers
import PageObject
import PageObject.Collections.Collection
import Page... | 27.411765 | 114 | 0.723176 |
032f7e66346f672fbee5c142b60de5cc90fd1d8b | 1,456 | exs | Elixir | server/test/realtime_web/channels/user_socket_test.exs | gustavoarmoa/realtime | e8075779ed19bfb8c22541dc1e5e8ea032d5b823 | [
"Apache-2.0"
] | 4,609 | 2019-10-25T12:28:35.000Z | 2022-03-31T23:05:06.000Z | server/test/realtime_web/channels/user_socket_test.exs | gustavoarmoa/realtime | e8075779ed19bfb8c22541dc1e5e8ea032d5b823 | [
"Apache-2.0"
] | 223 | 2019-09-27T03:21:45.000Z | 2022-03-29T23:04:03.000Z | server/test/realtime_web/channels/user_socket_test.exs | gustavoarmoa/realtime | e8075779ed19bfb8c22541dc1e5e8ea032d5b823 | [
"Apache-2.0"
] | 187 | 2019-10-27T07:44:15.000Z | 2022-03-29T19:34:52.000Z | defmodule RealtimeWeb.UserSocketTest do
use RealtimeWeb.ChannelCase
import Mock
alias Phoenix.Socket
alias RealtimeWeb.{UserSocket, ChannelsAuthorization}
test "connect/2 when :secure_channels config is false" do
Application.put_env(:realtime, :secure_channels, false)
assert {:ok, %Socket{}} = Use... | 34.666667 | 92 | 0.699176 |
032f84582884b5152b796f79d390073f65168242 | 1,080 | ex | Elixir | lib/room/room.ex | henriquetorquato/hermes | 6d98ecdffd6486c1f64e8e0c5827fd512c719296 | [
"MIT"
] | null | null | null | lib/room/room.ex | henriquetorquato/hermes | 6d98ecdffd6486c1f64e8e0c5827fd512c719296 | [
"MIT"
] | null | null | null | lib/room/room.ex | henriquetorquato/hermes | 6d98ecdffd6486c1f64e8e0c5827fd512c719296 | [
"MIT"
] | null | null | null | defmodule Room do
use Agent
def init(_args) do
[]
end
def start_link(name) do
Agent.start_link __MODULE__, :init, [name], name: String.to_atom name
end
def join(pid, node, username) do
Node.connect node
Agent.update pid, fn users -> [{username, node} | users] end
broadcast pid, %Mess... | 20.769231 | 73 | 0.636111 |
032fad94247b616bbbd4c26ae99130972eb9d7e8 | 1,027 | exs | Elixir | elixir-generate-dockerfile/src/test/app_config/phoenix_1_2/mix.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 170 | 2017-08-25T06:40:14.000Z | 2022-01-10T22:18:51.000Z | elixir-generate-dockerfile/src/test/app_config/phoenix_1_2/mix.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 27 | 2017-09-07T05:57:37.000Z | 2022-03-22T13:40:47.000Z | elixir-generate-dockerfile/src/test/app_config/phoenix_1_2/mix.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 16 | 2017-11-14T01:45:00.000Z | 2021-10-09T03:26:39.000Z | defmodule Blog.Mixfile do
use Mix.Project
def project do
[
app: :blog,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Co... | 23.340909 | 57 | 0.578384 |
032fbb3bf47df877dcd5536ca25e1f04228ea841 | 489 | exs | Elixir | test/functional/parser/whitespace_test.exs | RobertDober/earmark | 6f20bd06f40e4333294d19eb38031ea480f3d3ba | [
"Apache-2.0"
] | null | null | null | test/functional/parser/whitespace_test.exs | RobertDober/earmark | 6f20bd06f40e4333294d19eb38031ea480f3d3ba | [
"Apache-2.0"
] | null | null | null | test/functional/parser/whitespace_test.exs | RobertDober/earmark | 6f20bd06f40e4333294d19eb38031ea480f3d3ba | [
"Apache-2.0"
] | 1 | 2020-09-15T17:47:35.000Z | 2020-09-15T17:47:35.000Z | defmodule Parser.WhitespaceTest do
use ExUnit.Case
alias Earmark.Parser
alias Earmark.Block
test "Whitespace before and after code is ignored" do
{result, _, _} = Parser.parse(["",
" line 1",
" line 2",
"",
"",
"para"])
expected = [
%Block.Code{lnb: 2, attrs:... | 19.56 | 55 | 0.543967 |
032fd5856d116a6c967f65a330e85e0576da87be | 1,995 | exs | Elixir | test/changelog/schema/news/news_item_comment_test.exs | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | null | null | null | test/changelog/schema/news/news_item_comment_test.exs | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | null | null | null | test/changelog/schema/news/news_item_comment_test.exs | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsItemCommentTest do
use Changelog.SchemaCase
alias Changelog.NewsItemComment
describe "insert_changeset" do
test "with valid attributes" do
changeset =
NewsItemComment.insert_changeset(%NewsItemComment{}, %{
content: "ohai",
item_id: 1,
auth... | 31.171875 | 92 | 0.66817 |
032fe3a2d8bab7b9463624827b2d351ee0578d63 | 2,210 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request.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... | 38.103448 | 229 | 0.798643 |
032ff23955d2f143fa9629dc2794847a24e5e9dc | 965 | ex | Elixir | lib/ex/application.ex | ykurtbas/kitchensink | 01603ede591a72d0eeb1b8d7091eb4520bd666f6 | [
"BSD-3-Clause"
] | 4 | 2021-03-22T17:31:03.000Z | 2021-04-09T07:03:25.000Z | lib/ex/application.ex | ykurtbas/kitchensink | 01603ede591a72d0eeb1b8d7091eb4520bd666f6 | [
"BSD-3-Clause"
] | null | null | null | lib/ex/application.ex | ykurtbas/kitchensink | 01603ede591a72d0eeb1b8d7091eb4520bd666f6 | [
"BSD-3-Clause"
] | 1 | 2021-04-19T01:52:47.000Z | 2021-04-19T01:52:47.000Z | defmodule Ex.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Ex.Repo,
# Start the Telemetry supervisor
ExWeb.Telemetry,
... | 27.571429 | 60 | 0.688083 |
033026ed1a659a80fb52d29ffe31c4dfeaf8f514 | 4,966 | ex | Elixir | lib/jaxon/decoder.ex | suexcxine/jaxon | fb638f76945236822e8e015ee4b4d79b8255b71e | [
"Apache-2.0"
] | null | null | null | lib/jaxon/decoder.ex | suexcxine/jaxon | fb638f76945236822e8e015ee4b4d79b8255b71e | [
"Apache-2.0"
] | null | null | null | lib/jaxon/decoder.ex | suexcxine/jaxon | fb638f76945236822e8e015ee4b4d79b8255b71e | [
"Apache-2.0"
] | 1 | 2020-01-29T01:50:12.000Z | 2020-01-29T01:50:12.000Z | defmodule Jaxon.Decoder do
alias Jaxon.{ParseError}
@moduledoc false
@type json_term() ::
nil
| true
| false
| list
| float
| integer
| String.t()
| map
| [json_term()]
@doc """
Takes a list of events and decodes them in... | 23.990338 | 79 | 0.627064 |
03302e619d49b5880523e59a8ba39bd611855798 | 21,500 | ex | Elixir | lib/aws/generated/app_stream.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/app_stream.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/app_stream.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"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.AppStream do
@moduledoc """
Amazon AppStream 2.0
This is the *Amazon AppStream 2.0 API Reference*.
This documentation provides descriptions and syntax for each of the actions and
data ... | 35.420099 | 152 | 0.717953 |
0330330673c1250b1eb9ed0a853d1acacfa74fd5 | 1,829 | exs | Elixir | play_ui/config/config.exs | axelson/scenic_asteroids | 20fb22af441028b0837016337c5e418c033ded29 | [
"BSD-3-Clause"
] | 31 | 2018-12-25T19:52:35.000Z | 2022-03-20T01:06:46.000Z | play_ui/config/config.exs | axelson/scenic_asteroids | 20fb22af441028b0837016337c5e418c033ded29 | [
"BSD-3-Clause"
] | 4 | 2018-12-23T18:34:20.000Z | 2021-05-10T04:05:45.000Z | play_ui/config/config.exs | axelson/scenic_asteroids | 20fb22af441028b0837016337c5e418c033ded29 | [
"BSD-3-Clause"
] | 2 | 2019-04-09T18:35:51.000Z | 2020-12-22T15:19:18.000Z | use Mix.Config
# Configure the main viewport for the Scenic application
config :play, :viewport, %{
name: :main_viewport,
size: {500, 500},
# default_scene: {Play.Scene.Asteroids, nil},
default_scene: {Play.Scene.Splash, Play.Scene.Asteroids},
drivers: [
%{
module: Scenic.Driver.Glfw,
name: :... | 24.716216 | 86 | 0.614543 |
0330725f9716b3c9b52232c1664fd4d2cd7b9aac | 2,608 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_sign_request.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.16 | 900 | 0.768021 |
03307a9e32630050fb2fc861ffee2f07e052dedc | 2,978 | ex | Elixir | lib/surface/directive/events.ex | bonfire-networks/surface | fed7b81b8d12a8cba49bf3ffe505d18033157e0d | [
"MIT"
] | 1 | 2021-04-30T14:28:08.000Z | 2021-04-30T14:28:08.000Z | lib/surface/directive/events.ex | bonfire-networks/surface | fed7b81b8d12a8cba49bf3ffe505d18033157e0d | [
"MIT"
] | null | null | null | lib/surface/directive/events.ex | bonfire-networks/surface | fed7b81b8d12a8cba49bf3ffe505d18033157e0d | [
"MIT"
] | null | null | null | defmodule Surface.Directive.Events do
use Surface.Directive
@events [
"click",
"capture-click",
"blur",
"focus",
"change",
"submit",
"keydown",
"keyup",
"window-focus",
"window-blur",
"window-keydown",
"window-keyup"
]
@phx_events Enum.map(@events, &"phx-#{&1}")... | 23.085271 | 97 | 0.605776 |
03308c0171b953cf2435c32b296406268c4ef176 | 315 | ex | Elixir | web/views/tp_resource_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_resource_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_resource_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpResourceView do
use CgratesWebJsonapi.Web, :view
use JaSerializer.PhoenixView
attributes ~w[id tpid tenant custom_id filter_ids usage_ttl activation_interval
threshold_ids stored allocation_message blocker weight limit]a
def id(resource), do: resource.pk
end
| 31.5 | 81 | 0.790476 |
03309065f047280431bcab30e895398663aff238 | 46,569 | exs | Elixir | lib/elixir/test/elixir/kernel/warning_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2018-02-24T19:48:35.000Z | 2018-02-24T19:48:35.000Z | lib/elixir/test/elixir/kernel/warning_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.WarningTest do
use ExUnit.Case
import ExUnit.CaptureIO
defp capture_err(fun) do
capture_io(:stderr, fun)
end
test "outdented heredoc" do
output =
capture_err(fn ->
Code.eval_string("""
'''
outdented
... | 26.717728 | 149 | 0.494449 |
0330abcdd555f8a249d7c2cb82668368ecdf5dad | 2,163 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/list_game_server_configs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/list_game_server_configs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/list_game_server_configs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.055556 | 157 | 0.738789 |
0330b976274281a585a0afa23dd8188516631d84 | 365 | ex | Elixir | lib/readtome_web/auth/guardian.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-09-05T20:54:57.000Z | 2021-09-05T20:54:57.000Z | lib/readtome_web/auth/guardian.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 17 | 2019-07-06T17:31:56.000Z | 2021-06-22T15:31:06.000Z | lib/readtome_web/auth/guardian.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-03-15T20:50:27.000Z | 2021-03-15T20:50:27.000Z | defmodule ReadtomeWeb.Auth.Guardian do
use Guardian, otp_app: :readtome
alias Readtome.Accounts
def subject_for_token(user, _claims) do
{:ok, to_string(user.id)}
end
def resource_from_claims(claims) do
user =
claims["sub"]
|> Accounts.get_user!()
{:ok, user}
# If something goes ... | 20.277778 | 58 | 0.676712 |
0330be2394cea62de182640d4b75c5b608413699 | 42,505 | ex | Elixir | lib/phoenix/endpoint.ex | tomsharratt/phoenix | 2ea5db50f60ce9a783a12dc0f3a30ab8851f937e | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | tomsharratt/phoenix | 2ea5db50f60ce9a783a12dc0f3a30ab8851f937e | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | tomsharratt/phoenix | 2ea5db50f60ce9a783a12dc0f3a30ab8851f937e | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint do
@moduledoc ~S"""
Defines a Phoenix endpoint.
The endpoint is the boundary where all requests to your
web application start. It is also the interface your
application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
* to provide a w... | 44.978836 | 10,138 | 0.732643 |
03310fcaf91610b63b0b41324fdddd442a4460f5 | 1,213 | ex | Elixir | lib/cloak/crypto/interface.ex | predrag-rakic/cloak | dd91e941936cf93cbc7ca83941944a3501adde62 | [
"MIT"
] | 475 | 2015-09-19T14:09:11.000Z | 2022-03-28T14:53:27.000Z | lib/cloak/crypto/interface.ex | predrag-rakic/cloak | dd91e941936cf93cbc7ca83941944a3501adde62 | [
"MIT"
] | 98 | 2015-12-16T03:53:48.000Z | 2022-03-24T22:34:56.000Z | lib/cloak/crypto/interface.ex | predrag-rakic/cloak | dd91e941936cf93cbc7ca83941944a3501adde62 | [
"MIT"
] | 67 | 2015-10-21T11:56:38.000Z | 2022-03-18T13:51:16.000Z | defmodule Cloak.Crypto.Interface do
@moduledoc false
@type cipher :: atom
@type key :: iodata
@type iv :: iodata
@type aad :: iodata
@type plaintext :: iodata
@type ciphertext :: iodata
@type ciphertag :: iodata
@doc """
Alias for `:crypto.strong_rand_bytes/1`.
"""
@callback strong_rand_bytes(... | 28.209302 | 90 | 0.661995 |
033161dcb0713e60502d918dc0ecc9cabd576e40 | 2,589 | exs | Elixir | test/callisto/properties_test.exs | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | test/callisto/properties_test.exs | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | test/callisto/properties_test.exs | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | defmodule Callisto.PropertiesTest do
use ExUnit.Case
alias Callisto.{Properties, Type, Vertex}
doctest Type
doctest Properties
test "defines properties on label struct" do
med = %Medicine{}
field_names = Map.keys(med)
assert field_names == [:__struct__, :dose, :efficacy, :id, :is_bitter, :name]... | 30.104651 | 81 | 0.690614 |
03317fc64b4db4c210c6becb59f91cf51178a657 | 1,676 | ex | Elixir | web/web.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | 2 | 2015-05-12T04:00:03.000Z | 2016-05-02T06:05:25.000Z | web/web.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | web/web.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | defmodule DemoChat.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use DemoChat.Web, :controller
use DemoChat.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them ... | 21.21519 | 69 | 0.670048 |
03319a2f47960861a9607f92f7c94fdcc741d767 | 840 | ex | Elixir | lib/noted_web/controllers/file_controller.ex | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | lib/noted_web/controllers/file_controller.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | lib/noted_web/controllers/file_controller.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | defmodule NotedWeb.FileController do
use NotedWeb, :controller
def serve(conn, %{"id" => id}) do
user_id = get_session(conn, "user_id")
file = Noted.Notes.get_file!(id)
note = Noted.Notes.get_note!(file.note_id)
# Check user owns the file
if note.user_id == user_id do
filename = file.fil... | 28 | 93 | 0.665476 |
0331e9283d7c18c8e17c9842025a9b23641f1312 | 85 | ex | Elixir | lib/stream/proto/pub_ack.ex | UA3MQJ/nats.ex | 549ac3180fe08d3a06cf3b085cf5a40759cc090b | [
"MIT"
] | null | null | null | lib/stream/proto/pub_ack.ex | UA3MQJ/nats.ex | 549ac3180fe08d3a06cf3b085cf5a40759cc090b | [
"MIT"
] | null | null | null | lib/stream/proto/pub_ack.ex | UA3MQJ/nats.ex | 549ac3180fe08d3a06cf3b085cf5a40759cc090b | [
"MIT"
] | null | null | null | defmodule Gnat.Stream.Proto.PubAck do
@moduledoc false
use Gnat.Stream.Proto
end
| 17 | 37 | 0.788235 |
0331fdcdcc31d8e2ead5b672d457dabbe6281c9d | 850 | ex | Elixir | test/fixtures/compiled_with_docs.ex | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,206 | 2015-01-02T02:05:12.000Z | 2022-03-29T17:18:10.000Z | test/fixtures/compiled_with_docs.ex | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,266 | 2015-01-03T03:26:04.000Z | 2022-03-31T09:43:53.000Z | test/fixtures/compiled_with_docs.ex | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | 300 | 2015-01-03T04:07:24.000Z | 2022-03-29T08:10:56.000Z | defmodule CompiledWithDocs do
@moduledoc """
moduledoc
## Example ☃ Unicode > escaping
CompiledWithDocs.example
### Example H3 heading
example
"""
@doc "Some struct"
defstruct [:field]
@doc "Some example"
@doc purpose: :example
@deprecated "Use something else instead"
def example(foo,... | 18.085106 | 48 | 0.670588 |
03325ecc00f6b54e1261b4eadda2b05d53960552 | 1,684 | ex | Elixir | lib/ecto/query/builder/limit_offset.ex | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 3,931 | 2016-06-16T11:38:48.000Z | 2022-03-31T21:24:19.000Z | lib/ecto/query/builder/limit_offset.ex | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 2,343 | 2016-06-16T11:18:09.000Z | 2022-03-27T23:44:43.000Z | deps/ecto/lib/ecto/query/builder/limit_offset.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 1,300 | 2016-06-17T13:56:59.000Z | 2022-03-31T01:46:20.000Z | import Kernel, except: [apply: 3]
defmodule Ecto.Query.Builder.LimitOffset do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Builds a quoted expression.
The quoted expression should evaluate to a query at runtime.
If possible, it does all calculations at compile time to avoid
runtime work.
"""
... | 29.54386 | 85 | 0.614014 |
03327599f2d950d8ca9957449126ade6f3cbd943 | 134 | ex | Elixir | lib/protocols/inspect.ex | lmarlow/yaq | d303b6b23543e46b5cd2a9b7bb1bc2e35a3e7306 | [
"Apache-2.0"
] | 5 | 2020-05-21T21:34:38.000Z | 2021-06-15T15:57:38.000Z | lib/protocols/inspect.ex | lmarlow/yaq | d303b6b23543e46b5cd2a9b7bb1bc2e35a3e7306 | [
"Apache-2.0"
] | 1 | 2020-08-18T14:15:49.000Z | 2020-08-18T14:15:49.000Z | lib/protocols/inspect.ex | lmarlow/yaq | d303b6b23543e46b5cd2a9b7bb1bc2e35a3e7306 | [
"Apache-2.0"
] | 1 | 2020-05-26T20:07:44.000Z | 2020-05-26T20:07:44.000Z | defimpl Inspect, for: Yaq do
@impl true
def inspect(queue, _opts) do
"#Yaq<length: #{queue.l_size + queue.r_size}>"
end
end
| 19.142857 | 50 | 0.664179 |
03328dec15900476987680bc46f61530fc54e1b7 | 945 | exs | Elixir | test/failback_test.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | 1 | 2020-04-29T09:40:11.000Z | 2020-04-29T09:40:11.000Z | test/failback_test.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | test/failback_test.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | defmodule Geetest3.FailbackTest do
use ExUnit.Case
import Tesla.Mock
setup do
mock(fn
%{method: :get, url: "https://api.geetest.com/register.php?gt=test_id&json_format=1"} ->
%Tesla.Env{status: 403, body: "403 Forbidden"}
end)
:ok
end
@tag :capture_log
test "register failback" d... | 23.625 | 94 | 0.591534 |
0332a87c785b7123c4480e554c60f2aafbd55efe | 111 | exs | Elixir | priv/templates/phx.gen.controller/controller_test.exs | nyrf/phoenix_extra_generators | 730696c6ad8f055cf9af8b8bf0cf3de0a74bd773 | [
"MIT"
] | 11 | 2017-11-03T11:14:17.000Z | 2019-05-24T13:45:06.000Z | priv/templates/phx.gen.controller/controller_test.exs | nyrf/phoenix_extra_generators | 730696c6ad8f055cf9af8b8bf0cf3de0a74bd773 | [
"MIT"
] | 1 | 2017-11-03T09:52:40.000Z | 2017-11-03T09:52:40.000Z | priv/templates/phx.gen.controller/controller_test.exs | nyrf/phoenix_extra_generators | 730696c6ad8f055cf9af8b8bf0cf3de0a74bd773 | [
"MIT"
] | 1 | 2018-11-03T17:40:49.000Z | 2018-11-03T17:40:49.000Z | defmodule <%= module %>ControllerTest do
use <%= web_module %>.ConnCase
alias <%= module %>Controller
end
| 18.5 | 40 | 0.684685 |
0332b02d12cf7e4d01877647d95bb0bb360d1d03 | 1,017 | exs | Elixir | mix.exs | SimpleBet/opentelemetry_commanded | 31b2b3e72d84b555263a4eccdaa3200c1c0c96fa | [
"Apache-2.0"
] | 10 | 2020-11-03T21:22:03.000Z | 2022-01-23T16:24:02.000Z | mix.exs | SimpleBet/opentelemetry_commanded | 31b2b3e72d84b555263a4eccdaa3200c1c0c96fa | [
"Apache-2.0"
] | 7 | 2020-11-06T21:36:00.000Z | 2022-03-16T17:10:23.000Z | mix.exs | SimpleBet/opentelemetry_commanded | 31b2b3e72d84b555263a4eccdaa3200c1c0c96fa | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryCommanded.MixProject do
use Mix.Project
def project do
[
app: :opentelemetry_commanded,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
description: "Trace Commanded CRQS operations with... | 25.425 | 88 | 0.624385 |
0332ef791da5efb6c0147d431c89ecf22df2d9a0 | 1,559 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/transitive_membership_role.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/transitive_membership_role.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/transitive_membership_role.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.170213 | 183 | 0.747915 |
0332fb7f21ac736684c2c6955212627d152e0e9b | 710 | exs | Elixir | test/furlex/fetcher_test.exs | XukuLLC/furlex | 8ccd3e09be4f7f5ff16520022287d9282d9c494f | [
"Apache-2.0"
] | null | null | null | test/furlex/fetcher_test.exs | XukuLLC/furlex | 8ccd3e09be4f7f5ff16520022287d9282d9c494f | [
"Apache-2.0"
] | null | null | null | test/furlex/fetcher_test.exs | XukuLLC/furlex | 8ccd3e09be4f7f5ff16520022287d9282d9c494f | [
"Apache-2.0"
] | 1 | 2019-12-12T07:21:31.000Z | 2019-12-12T07:21:31.000Z | defmodule Furlex.FetcherTest do
use ExUnit.Case
alias Furlex.Fetcher
doctest Fetcher
setup do
bypass = Bypass.open()
url = "http://localhost:#{bypass.port}"
{:ok, bypass: bypass, url: url}
end
test "fetches url", %{bypass: bypass, url: url} do
Bypass.expect_once(bypass, &handle/1)
... | 20.285714 | 67 | 0.619718 |
0332fde03eb47746307fd205f766d31bed2c1cac | 206 | ex | Elixir | serverless/lib/serverless.ex | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | 2 | 2018-02-01T22:56:09.000Z | 2020-01-20T19:57:48.000Z | serverless/lib/serverless.ex | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | null | null | null | serverless/lib/serverless.ex | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | null | null | null | defmodule Serverless do
@moduledoc """
Documentation for Serverless.
"""
@doc """
Hello world.
## Examples
iex> Serverless.hello
:world
"""
def hello do
:world
end
end
| 10.842105 | 31 | 0.587379 |
033335d190a79169481c4f9366aa83271b9cd848 | 3,848 | ex | Elixir | lib/sneeze.ex | egillet/sneeze | 066602b3da5cadde5a209515ae984417f4668b01 | [
"MIT"
] | 4 | 2021-11-16T10:28:35.000Z | 2022-02-23T16:15:34.000Z | lib/sneeze.ex | egillet/sneeze | 066602b3da5cadde5a209515ae984417f4668b01 | [
"MIT"
] | 1 | 2021-12-23T13:07:37.000Z | 2021-12-23T13:07:37.000Z | lib/sneeze.ex | egillet/sneeze | 066602b3da5cadde5a209515ae984417f4668b01 | [
"MIT"
] | 2 | 2021-09-01T15:41:44.000Z | 2022-01-30T14:18:49.000Z | defmodule Sneeze do
alias Sneeze.Internal
@doc ~s"""
Render a data-structure, containing 'elements' to html.
An element is either:
- [tag, attribute_map | body]
- [tag, attribute_map]
- [tag | body]
- [tag]
- [:@__raw_html, html_string]
- [:script, attribute_map, script_text]
- [:script, script_t... | 28.294118 | 98 | 0.587058 |
03333957a58bb65b43b4fb71fbb44569d0901c74 | 827 | ex | Elixir | lib/snowflake.ex | g-ken/snowflake | 5414037b8a15bb9cc596661079e438a9a7cf1972 | [
"MIT"
] | null | null | null | lib/snowflake.ex | g-ken/snowflake | 5414037b8a15bb9cc596661079e438a9a7cf1972 | [
"MIT"
] | null | null | null | lib/snowflake.ex | g-ken/snowflake | 5414037b8a15bb9cc596661079e438a9a7cf1972 | [
"MIT"
] | 1 | 2021-09-28T12:24:51.000Z | 2021-09-28T12:24:51.000Z | defmodule Snowflake do
@moduledoc """
Generates Snowflake IDs
"""
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
worker(Snowflake.Generator, [Snowflake.Helper.epoch(), Snowflake.Helper.machine_id()])
]
Supervisor.start_link(children, strategy: :one_for_... | 23.628571 | 92 | 0.667473 |
0333b76f78f273fa7b09a7fb1d5432d795ee9b8d | 2,699 | ex | Elixir | lib/tarearbol/application.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 49 | 2017-07-22T12:25:46.000Z | 2022-02-12T20:29:36.000Z | lib/tarearbol/application.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 15 | 2017-07-21T13:17:32.000Z | 2021-02-25T05:40:11.000Z | lib/tarearbol/application.ex | am-kantox/tarearbol | 37bac59178940df4c72bf942dd08d8acca505130 | [
"MIT"
] | 4 | 2017-10-26T10:28:00.000Z | 2019-09-13T08:04:01.000Z | defmodule Tarearbol.Application do
@moduledoc false
use Boundary, deps: [Tarearbol.Scheduler, Tarearbol.DynamicManager]
use Application
@spec start(Application.app(), Application.restart_type()) ::
{:error, any()} | {:ok, pid()} | {:ok, pid(), any()}
def start(_type, _args) do
optional =
... | 33.7375 | 98 | 0.600222 |
0333badaa0723b56d9c9fda93468e46337fea4af | 732 | ex | Elixir | lib/docusign/model/e_note_configurations.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/e_note_configurations.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/e_note_configurations.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.ENoteConfigurations do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:connectConfigured,
:eNoteConfigur... | 22.181818 | 75 | 0.643443 |
0333bca49cbca97ee5fdc2057153e7ad1c56e75f | 177 | exs | Elixir | priv/repo/migrations/20201229174200_add_timestamps_to_card_refills.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20201229174200_add_timestamps_to_card_refills.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20201229174200_add_timestamps_to_card_refills.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule Freegiving.Repo.Migrations.AddTimestampsToCardRefills do
use Ecto.Migration
def change do
alter table("card_refills") do
timestamps()
end
end
end
| 17.7 | 66 | 0.740113 |
033419f210ef57c8ad4b1afaaf891c27acb4042c | 1,720 | exs | Elixir | test/earmark_wrapper/options_test.exs | RobertDober/EarmarkWrapper | c62ff01d11cb32c20fdd6a10b529315bd8ea2874 | [
"Apache-2.0"
] | null | null | null | test/earmark_wrapper/options_test.exs | RobertDober/EarmarkWrapper | c62ff01d11cb32c20fdd6a10b529315bd8ea2874 | [
"Apache-2.0"
] | null | null | null | test/earmark_wrapper/options_test.exs | RobertDober/EarmarkWrapper | c62ff01d11cb32c20fdd6a10b529315bd8ea2874 | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkWrapper.OptionsTest do
use ExUnit.Case
alias Earmark.Options, as: EO
alias EarmarkWrapper.Options
describe "empty" do
test "empty input -> default values" do
assert Options.parse([]) == %Options{}
end
end
runner = fn( {options, args}) ->
args1 = if is_binary(args), do... | 31.272727 | 120 | 0.59593 |
03342ad9be2225b541aba99e6bab547123f1089a | 5,924 | exs | Elixir | test/inertia_phoenix/controller_test.exs | szTheory/inertia_phoenix | e402057ced14bdd020d4b1c4354b089aee773a75 | [
"MIT"
] | null | null | null | test/inertia_phoenix/controller_test.exs | szTheory/inertia_phoenix | e402057ced14bdd020d4b1c4354b089aee773a75 | [
"MIT"
] | null | null | null | test/inertia_phoenix/controller_test.exs | szTheory/inertia_phoenix | e402057ced14bdd020d4b1c4354b089aee773a75 | [
"MIT"
] | null | null | null | defmodule InertiaPhoenix.ControllerTest do
use InertiaPhoenix.Test.ConnCase
alias Plug.Conn
alias Phoenix.HTML.Tag
test "render_inertia/2 no props", %{conn: conn} do
conn =
conn
|> Conn.put_req_header("x-inertia", "false")
|> Conn.put_req_header("x-inertia-version", "1")
|> fetch_se... | 28.209524 | 97 | 0.567353 |
03342e0fbb8b2d7c707962600b934aa63f6f1eb3 | 590 | ex | Elixir | lib/genex/tools/evaluation/indicator.ex | seanmor5/genex | d1be8b030019f24180ddd0b1a9a91bd3039da076 | [
"Apache-2.0"
] | 114 | 2019-08-04T04:36:05.000Z | 2022-02-11T03:09:15.000Z | lib/genex/tools/evaluation/indicator.ex | seanmor5/genex | d1be8b030019f24180ddd0b1a9a91bd3039da076 | [
"Apache-2.0"
] | 18 | 2019-08-03T23:59:45.000Z | 2019-08-15T18:21:44.000Z | lib/genex/tools/evaluation/indicator.ex | seanmor5/genex | d1be8b030019f24180ddd0b1a9a91bd3039da076 | [
"Apache-2.0"
] | 8 | 2019-08-12T22:52:54.000Z | 2022-02-28T11:33:54.000Z | defmodule Genex.Tools.Evaluation.Indicator do
@moduledoc """
Convenience functions for Multi-Objective Optimization.
Most of these functions aren't tested yet.
"""
@doc false
def hypervolume, do: :ok
@doc false
def additive_epsilon, do: :ok
@doc false
def multiplicative_epsilon, do: :ok
@doc ... | 20.344828 | 77 | 0.632203 |
033448fde533c77d400d1c414c99f04598e56f47 | 3,249 | ex | Elixir | apps/deployment_scope/lib/deployment_scope/stack/config_loader.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/deployment_scope/lib/deployment_scope/stack/config_loader.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/deployment_scope/lib/deployment_scope/stack/config_loader.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | defmodule Staxx.DeploymentScope.Stack.ConfigLoader do
@moduledoc """
Module will load list of stack configs form folder (see: `Application.get_env(:deployment_scope, :stacks_dir)`)
State for config loader will consist of map in format:
```elixir
%{
"stack_name" => %Staxx.DeploymentScope.Stack.Config{},
... | 22.72028 | 113 | 0.642044 |
033462a36c374d5acb35d86e1a0368680f31a6c1 | 1,536 | ex | Elixir | lib/core/adapters/commands/worker.ex | giusdp/funless-core | d64570549ef0bd4376b1d16096033aca90042bef | [
"Apache-2.0"
] | null | null | null | lib/core/adapters/commands/worker.ex | giusdp/funless-core | d64570549ef0bd4376b1d16096033aca90042bef | [
"Apache-2.0"
] | null | null | null | lib/core/adapters/commands/worker.ex | giusdp/funless-core | d64570549ef0bd4376b1d16096033aca90042bef | [
"Apache-2.0"
] | 1 | 2022-03-24T12:05:11.000Z | 2022-03-24T12:05:11.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 30.72 | 95 | 0.696615 |
0334763d4abdc4ed10337dc70a4040d7b716793d | 6,499 | ex | Elixir | deps/phoenix/lib/mix/tasks/phx.gen.schema.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/tasks/phx.gen.schema.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/tasks/phx.gen.schema.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Schema do
@shortdoc "Generates an Ecto schema and migration file"
@moduledoc """
Generates an Ecto schema and migration.
mix phx.gen.schema Blog.Post blog_posts title:string views:integer
The first argument is the schema module followed by its plural
name (used as... | 30.947619 | 128 | 0.674258 |
03348172d954d0be05858baf27cb2ee9653fbbf6 | 715 | ex | Elixir | lib/strava/model/activity_zone.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/activity_zone.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/activity_zone.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.ActivityZone do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:score,
:distribution_buckets,
:type,
:sensor_based,
:points,
:custom_zones,
:max
]
@type t :: %__MODULE__{
score: integer(),
distribution_buckets: list(Strava.TimedZon... | 19.861111 | 80 | 0.612587 |
0334d196279419d11eb4d53e7cc03f06116367f3 | 506 | exs | Elixir | priv/repo/migrations/20210427223600_add_multibuy_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | priv/repo/migrations/20210427223600_add_multibuy_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | priv/repo/migrations/20210427223600_add_multibuy_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Repo.Migrations.AddMultibuyTable do
use Ecto.Migration
def change do
create table(:multi_buys, primary_key: false) do
add :id, :binary_id, primary_key: true, null: false
add :name, :string, null: false
add :value, :integer, null: false, default: 1
add :organization_id,... | 29.764706 | 109 | 0.699605 |
03355e7a0dd1ca487493a1333cdc0429aafa29c9 | 1,862 | ex | Elixir | test/support/fixtures/payments_fixtures.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | test/support/fixtures/payments_fixtures.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | test/support/fixtures/payments_fixtures.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | defmodule Glimesh.PaymentsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Glimesh.Payments` context.
"""
def platform_founder_subscription_fixture(user) do
Glimesh.Payments.create_subscription(%{
user: user,
stripe_subscription_id: "random_id",
... | 31.559322 | 82 | 0.705156 |
03357289fcbfd1a74db7775c8ae47bd4326862fd | 4,073 | ex | Elixir | fisherman_server/lib/fisherman_server/sorts.ex | henrysdev/Fisherman | 57bc51730cedb84a47807e2d617061f2cfe54ffd | [
"MIT"
] | 1 | 2020-05-14T06:07:21.000Z | 2020-05-14T06:07:21.000Z | fisherman_server/lib/fisherman_server/sorts.ex | henrysdev/Fisherman | 57bc51730cedb84a47807e2d617061f2cfe54ffd | [
"MIT"
] | 19 | 2020-05-04T17:29:44.000Z | 2020-07-05T18:15:10.000Z | fisherman_server/lib/fisherman_server/sorts.ex | henrysdev/Fisherman | 57bc51730cedb84a47807e2d617061f2cfe54ffd | [
"MIT"
] | null | null | null | defmodule FishermanServer.Sorts do
@moduledoc """
Provides handy algorithm helpers
"""
@doc """
Sort shell records by relative time interval. This is accomplished
by the following process:
1. Separate each shell record into two bounds (start and end)
2. Sort all bounds by timestamp and record their so... | 29.729927 | 89 | 0.603486 |
03359f269d9b8c05728cd2bdc68a3f93d292f3fa | 4,871 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_command_task_inputs.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_command_task_inputs.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_command_task_inputs.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... | 43.491071 | 227 | 0.728187 |
0335a2b684084d544e1e40dc235bb6b0851c7c9b | 116 | ex | Elixir | lib/db/repo.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | lib/db/repo.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | lib/db/repo.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | defmodule DB.Repo do
use Ecto.Repo,
otp_app: :dde_iotserver_liveview,
adapter: Ecto.Adapters.Postgres
end
| 19.333333 | 37 | 0.75 |
0335d191bc6bb552bb79cd8ce9f787ea0051a58c | 167 | exs | Elixir | test/castore_test.exs | YosephHaryanto/castore | 41f8ad333679f7b79c178a708f48bd575314a159 | [
"Apache-2.0"
] | 66 | 2019-10-29T02:50:03.000Z | 2022-03-31T06:13:26.000Z | test/castore_test.exs | YosephHaryanto/castore | 41f8ad333679f7b79c178a708f48bd575314a159 | [
"Apache-2.0"
] | 16 | 2020-05-30T14:51:12.000Z | 2022-03-29T13:26:32.000Z | test/castore_test.exs | YosephHaryanto/castore | 41f8ad333679f7b79c178a708f48bd575314a159 | [
"Apache-2.0"
] | 14 | 2020-03-30T06:17:57.000Z | 2021-08-07T07:00:23.000Z | defmodule CAStoreTest do
use ExUnit.Case
doctest CAStore
test "file_path/0" do
assert String.ends_with?(CAStore.file_path(), "/priv/cacerts.pem")
end
end
| 18.555556 | 70 | 0.730539 |
0335fdcb4205638bca5d08cf35cec3dd86fc9c42 | 1,788 | exs | Elixir | config/dev.exs | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2019-05-28T20:43:28.000Z | 2019-05-28T20:43:28.000Z | config/dev.exs | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2019-02-11T23:14:15.000Z | 2019-02-11T23:14:15.000Z | config/dev.exs | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2019-12-02T08:59:45.000Z | 2019-12-02T08:59:45.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 :tilex, TilexWeb.Endpoint,
http: [port: 4000, ... | 32.509091 | 103 | 0.709732 |
033602a529d1ac0e2070aece77f85382d0c2b0b1 | 1,415 | exs | Elixir | mix.exs | capitalist/surface | f1c75f92513b607c98ba578030a647e0f5d6d11c | [
"MIT"
] | null | null | null | mix.exs | capitalist/surface | f1c75f92513b607c98ba578030a647e0f5d6d11c | [
"MIT"
] | null | null | null | mix.exs | capitalist/surface | f1c75f92513b607c98ba578030a647e0f5d6d11c | [
"MIT"
] | null | null | null | defmodule Surface.MixProject do
use Mix.Project
@version "0.1.0-rc.0"
def project do
[
app: :surface,
version: @version,
elixir: "~> 1.8",
description: "A component based library for Phoenix LiveView",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.... | 23.196721 | 72 | 0.561837 |
03360f1fda7d589777c077893460ca4b3b283b41 | 3,091 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/replace_all_shapes_with_sheets_chart_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/slides/lib/google_api/slides/v1/model/replace_all_shapes_with_sheets_chart_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/replace_all_shapes_with_sheets_chart_request.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 ... | 43.535211 | 172 | 0.72792 |
0336291b8f43dc53af31b8d3edf08bc4cff143cb | 635 | ex | Elixir | lib/type/timestamp.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | lib/type/timestamp.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | lib/type/timestamp.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
alias Croma.Result, as: R
alias Antikythera.Time
defmodule Antikythera.IsoTimestamp do
@moduledoc """
A strict subset of ISO8601 format of timestamp.
"""
@type t :: String.t()
defun valid?(v :: term) :: boolean do
t when is_binar... | 19.84375 | 64 | 0.653543 |
03364fa35685aa7921872612319021566752ae0a | 24 | ex | Elixir | lib/explay.ex | sheharyarn/explay | 72a5d1ae131cbbcb277cb47a2e6b5e7cb65d7a75 | [
"MIT"
] | 16 | 2016-10-17T19:58:32.000Z | 2020-04-22T10:33:22.000Z | lib/explay.ex | sheharyarn/explay | 72a5d1ae131cbbcb277cb47a2e6b5e7cb65d7a75 | [
"MIT"
] | 2 | 2017-04-12T13:24:09.000Z | 2021-08-29T15:17:14.000Z | lib/explay.ex | sheharyarn/explay | 72a5d1ae131cbbcb277cb47a2e6b5e7cb65d7a75 | [
"MIT"
] | 1 | 2017-04-06T15:02:55.000Z | 2017-04-06T15:02:55.000Z | defmodule ExPlay do
end
| 8 | 19 | 0.833333 |
033677cb82dd31467281782713b7c213703892bd | 607 | ex | Elixir | lib/drunkard/recipes/recipe_ingredient.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 2 | 2020-07-05T21:27:33.000Z | 2021-12-12T22:56:00.000Z | lib/drunkard/recipes/recipe_ingredient.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2021-05-11T08:14:48.000Z | 2021-05-11T08:14:48.000Z | lib/drunkard/recipes/recipe_ingredient.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2020-07-05T21:27:46.000Z | 2020-07-05T21:27:46.000Z | defmodule Drunkard.Recipes.RecipeIngredient do
use Drunkard, :schema
embedded_schema do
field :amount, :decimal
field :is_garnish, :boolean, default: false
field :is_optional, :boolean, default: false
field :unit, :string
field :alternatives, {:array, :binary_id}
field :ingredient, :binary_... | 27.590909 | 98 | 0.70346 |
03367b473755cdc5ff70b9a535021a9e6a534e48 | 3,964 | ex | Elixir | lib/crew_web/live/live_helpers.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | lib/crew_web/live/live_helpers.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | lib/crew_web/live/live_helpers.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule CrewWeb.LiveHelpers do
import Phoenix.LiveView
import Phoenix.LiveView.Helpers
import Phoenix.HTML.Link
alias CrewWeb.Router.Helpers, as: Routes
@doc """
Renders a component inside the `CrewWeb.ModalComponent` component.
The rendered modal receives a `:return_to` option to properly update
t... | 32.491803 | 117 | 0.590565 |
0336c22190f0e63f403421e9503b7b8bd0c8f385 | 1,667 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/failover_context.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/failover_context.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/failover_context.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.34 | 196 | 0.727654 |
0336e63b49a8683f8ae1b3017791bc7f9ebf3337 | 1,924 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/custom_channels.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/custom_channels.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/custom_channels.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.62963 | 209 | 0.744802 |
0336f496867277be616e0db527145e88350f8c45 | 991 | ex | Elixir | lib/surface_bootstrap/tab.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | null | null | null | lib/surface_bootstrap/tab.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | null | null | null | lib/surface_bootstrap/tab.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | null | null | null | defmodule SurfaceBootstrap.Tab do
@moduledoc """
Tab component.
This version does not support the full permutation of flexbox, if you
require that, it is probably better to make your own tab component.
This component only renders Tab.Item components and has no default slot.
https://getbootstrap.com/docs/... | 25.410256 | 117 | 0.657921 |
0336f7343a7ab4142d401ef64ef6fe40bf759922 | 1,317 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/page_author_image.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/page_author_image.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/page_author_image.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.630435 | 77 | 0.745634 |
03370dda04d4eaf6831868d0a55d4cedf064cd6f | 18,592 | ex | Elixir | lib/phoenix/channel.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/channel.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/channel.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defmodule Phoenix.Channel do
@moduledoc ~S"""
Defines a Phoenix Channel.
Channels provide a means for bidirectional communication from clients that
integrate with the `Phoenix.PubSub` layer for soft-realtime functionality.
## Topics & Callbacks
Every time you join a channel, you need to choose which part... | 35.413333 | 107 | 0.664372 |
03372be9b96b2bc70d01d780ed9a664578262e79 | 646 | ex | Elixir | apps/customer/lib/customer/web/views/api/v1/favorite_job_view.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/views/api/v1/favorite_job_view.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/views/api/v1/favorite_job_view.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.Api.V1.FavoriteJobView do
use Customer.Web, :view
def render("index.json", %{favorite_jobs: favorite_jobs}) do
%{favoriteJobs: Enum.map(favorite_jobs, &(parse(&1)))}
end
def render("show.json", %{favorite_job_id: favorite_job_id} = param) do
%{favoriteJobId: favorite_job_id}
e... | 25.84 | 109 | 0.665635 |
03374eab220bd071b7d1123caf970ec7add4221e | 430 | ex | Elixir | lib/pugme/pugfinder.ex | KevinGreene/Tinc | 4101e4bd24ba81f84e51e9a85be3609515087e6e | [
"MIT"
] | null | null | null | lib/pugme/pugfinder.ex | KevinGreene/Tinc | 4101e4bd24ba81f84e51e9a85be3609515087e6e | [
"MIT"
] | null | null | null | lib/pugme/pugfinder.ex | KevinGreene/Tinc | 4101e4bd24ba81f84e51e9a85be3609515087e6e | [
"MIT"
] | null | null | null | defmodule Pugme.PugFinder do
@url "http://pugme.herokuapp.com/random"
def get_pug() do
case HTTPoison.get(@url) do
{:ok, %HTTPoison.Response{status_code: 200, body: body}} ->
Poison.decode!(body)
|> Dict.get("pug")
{:ok, %HTTPoison.Response{status_code: 404}} ->
IO.puts "... | 25.294118 | 65 | 0.597674 |
033788e417c75e1aeba56ca5db5407ce8f03867c | 1,768 | exs | Elixir | test/git_hub_actions_case.exs | kianmeng/git_hub_actions | f60cc151d6dc13983132fbf773f3233ca381406d | [
"MIT"
] | 6 | 2021-08-22T22:23:54.000Z | 2021-08-29T12:25:53.000Z | test/git_hub_actions_case.exs | kianmeng/git_hub_actions | f60cc151d6dc13983132fbf773f3233ca381406d | [
"MIT"
] | 2 | 2022-02-15T16:36:41.000Z | 2022-02-18T17:32:07.000Z | test/git_hub_actions_case.exs | hrzndhrn/git_hub_actions | 5d96718cf5aacb017c0b1114ca3283fe75c8913e | [
"MIT"
] | null | null | null | defmodule GitHubActionsCase do
use ExUnit.CaseTemplate
import ExUnit.CaptureIO
import Mock
@dir ".gha"
@fixtures "test/fixtures"
@tmp "test/tmp"
@home Path.join(@tmp, "home")
@config "config.exs"
@defaults [workflow: :default, config: :default, output: :default]
using do
{module, default} =
... | 21.560976 | 81 | 0.59276 |
0337a89b050d378fa9212f31e74630bf71e3ee0a | 77 | ex | Elixir | extended_example/lib/demo/events/shipment_registered.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 19 | 2020-10-08T14:05:30.000Z | 2022-03-18T08:43:11.000Z | extended_example/lib/demo/events/shipment_registered.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | null | null | null | extended_example/lib/demo/events/shipment_registered.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 3 | 2021-02-19T08:31:58.000Z | 2021-12-09T05:28:55.000Z | defmodule ShipmentRegistered do
defstruct [:shipment_id, :destination]
end
| 19.25 | 40 | 0.818182 |
0337dfdb695858ba5155faa63c630659adf3aa3a | 6,200 | ex | Elixir | lib/bluex/dbus_discovery.ex | highmobility/bluex | 2ad4b713445734a235fd997fce0f8f4c934179fc | [
"MIT"
] | 18 | 2016-09-28T20:23:41.000Z | 2021-03-17T03:36:27.000Z | lib/bluex/dbus_discovery.ex | highmobility/bluex | 2ad4b713445734a235fd997fce0f8f4c934179fc | [
"MIT"
] | 1 | 2016-10-27T08:40:10.000Z | 2016-10-27T08:40:10.000Z | lib/bluex/dbus_discovery.ex | highmobility/bluex | 2ad4b713445734a235fd997fce0f8f4c934179fc | [
"MIT"
] | 6 | 2017-09-02T08:03:56.000Z | 2020-07-07T19:03:40.000Z | defmodule Bluex.DBusDiscovery do
@dbus_name Application.get_env(:bluex, :dbus_name) || "org.bluez"
@iface_dbus_name Application.get_env(:bluex, :iface_dbus_name) || "org.bluez.Adapter1"
@device_dbus_name Application.get_env(:bluex, :device_dbus_name) || "org.bluez.Device1"
@dbus_bluez_path Application.get_env(:... | 30.845771 | 129 | 0.647903 |
0337e9cc7c84dda7225062eb4d5cc694a255a47b | 724 | exs | Elixir | apps/api/test/api/error_enhancer_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/api/test/api/error_enhancer_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/api/test/api/error_enhancer_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule API.ErrorEnhancerTest do
use ExUnit.Case, async: true
alias API.ErrorEnhancer
describe "enhance/1" do
test "enhance a changeset error" do
changeset = Ecto.Changeset.add_error(%Ecto.Changeset{}, :some_key, "some_error")
assert ErrorEnhancer.enhance({:error, changeset}) == {:error, :vali... | 34.47619 | 120 | 0.700276 |
0337fd41d3f120fbdcccf3af6522939a1cfc7bae | 1,601 | exs | Elixir | test/services/coto_search_service_test.exs | pamf/cotoami | 4b69b0e2668e80e12ea98e248ad461cb32ec6651 | [
"Apache-2.0"
] | 337 | 2016-11-28T15:46:58.000Z | 2022-03-01T06:21:25.000Z | test/services/coto_search_service_test.exs | kroschu/cotoami | ae02a9e9982060977a565ed8137334258ff4faf0 | [
"Apache-2.0"
] | 79 | 2017-02-27T05:44:36.000Z | 2021-12-09T00:28:11.000Z | test/services/coto_search_service_test.exs | kroschu/cotoami | ae02a9e9982060977a565ed8137334258ff4faf0 | [
"Apache-2.0"
] | 47 | 2018-02-03T01:32:13.000Z | 2021-11-08T07:54:43.000Z | defmodule Cotoami.CotoSearchServiceTest do
use Cotoami.DataCase
import ShorterMaps
alias Cotoami.{
Fixtures,
Repo,
EmailUser,
Coto,
AmishiService,
CotoSearchService
}
setup do
amishi_a = AmishiService.insert_or_update!(%EmailUser{email: "amishi_a@example.com"})
amishi_b = Ami... | 30.207547 | 95 | 0.661462 |
033845f6a3968352fe610d9440ec21db59afba81 | 255 | ex | Elixir | lib/the_end/listener_gatherer/plug.ex | MozillaReality/the_end | 51e9b0860b96ec5e0cbfc9e84f8fb120387ca4de | [
"MIT"
] | 13 | 2017-10-31T12:20:30.000Z | 2020-05-08T21:10:28.000Z | lib/the_end/listener_gatherer/plug.ex | MozillaReality/the_end | 51e9b0860b96ec5e0cbfc9e84f8fb120387ca4de | [
"MIT"
] | 1 | 2018-11-09T18:42:28.000Z | 2020-06-30T18:46:52.000Z | lib/the_end/listener_gatherer/plug.ex | MozillaReality/the_end | 51e9b0860b96ec5e0cbfc9e84f8fb120387ca4de | [
"MIT"
] | 2 | 2018-08-08T04:47:41.000Z | 2020-04-20T01:01:21.000Z | defmodule TheEnd.ListenerGatherer.Plug do
@behaviour TheEnd.ListenerGatherer
import Supervisor, only: [which_children: 1]
def gather(endpoint) do
for {{:ranch_listener_sup, _}, pid, _, _} <- which_children(endpoint),
do: pid
end
end
| 19.615385 | 74 | 0.713725 |
0338491963d681d36e0caa584937eabb9a00da9b | 2,043 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/gradient_rule.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/gradient_rule.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/gradient_rule.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.833333 | 202 | 0.754772 |
0338658ae83864c60790448483e9646708967817 | 953 | exs | Elixir | sparkline_idea.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | 34 | 2015-02-27T14:41:12.000Z | 2021-09-26T06:06:18.000Z | sparkline_idea.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | null | null | null | sparkline_idea.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | 3 | 2016-02-05T16:09:41.000Z | 2017-10-21T15:47:04.000Z | defmodule Sparkline do
@zombie %{
draw: %{
"1 2.5 3 5, 3 1" => '▁▄▅█▅▁',
"1 2 3, 5 2 1" => '▁▃▅█▃▁'
}
}
# hypothetical inline spec/stub API
# spec draw(str) do
# case str do
# "1 2.5 3 5, 3 1" -> '▁▄▅█▅▁'
# "1 2 3, 5 2 1" -> '▁▃▅█▃▁'
# end
# end
def draw(str) do
... | 22.162791 | 71 | 0.515215 |
03387c03dfacf0fe4790392195f0fe7fff9b5493 | 1,747 | exs | Elixir | test/atecc508a/data_zone_test.exs | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 6 | 2018-12-13T16:33:09.000Z | 2022-03-02T08:57:20.000Z | test/atecc508a/data_zone_test.exs | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 10 | 2019-01-30T19:33:48.000Z | 2022-03-03T21:07:37.000Z | test/atecc508a/data_zone_test.exs | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 9 | 2019-08-22T06:26:45.000Z | 2022-03-01T18:05:01.000Z | defmodule ATECC508A.DataZoneTest do
use ExUnit.Case
alias ATECC508A.DataZone
test "pad to slot size" do
assert DataZone.pad_to_slot_size(0, <<>>) == <<0::size(36)-unit(8)>>
assert DataZone.pad_to_slot_size(1, <<1>>) == <<1, 0::size(35)-unit(8)>>
assert DataZone.pad_to_slot_size(2, <<2>>) == <<2, 0::... | 48.527778 | 81 | 0.608472 |
03388484622dfdb913a3d02247e8da5ebd7c019a | 332 | exs | Elixir | spec/spec_helper.exs | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | spec/spec_helper.exs | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | spec/spec_helper.exs | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | ESpec.configure(fn config ->
config.before(fn tags ->
{:shared, solutions: AoC.SpecHelper.load_solutions(), tags: tags}
end)
config.finally(fn _shared ->
:ok
end)
end)
defmodule AoC.SpecHelper do
@moduledoc false
def load_solutions do
"solutions.json"
|> File.read!()
|> Jason.decode!(... | 16.6 | 69 | 0.656627 |
0338ba88d915c483195e117fda5cf3d1f9da28c4 | 1,719 | ex | Elixir | clients/discovery/lib/google_api/discovery/v1/model/rest_resource.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/model/rest_resource.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/model/rest_resource.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 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.705882 | 115 | 0.730657 |
0338f4ded4269ef4b9e09c07af8ca3eece23ffb6 | 1,318 | ex | Elixir | lib/rtl/emails.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | lib/rtl/emails.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | lib/rtl/emails.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Emails do
require Logger
use Bamboo.Phoenix, view: RTLWeb.EmailsView
import Bamboo.Email
import RTLWeb.Gettext
alias RTL.Accounts
alias RTL.Accounts.User
alias RTLWeb.Router.Helpers, as: Routes
@endpoint RTLWeb.Endpoint
def confirm_address(%User{} = user, email) do
token = Accounts... | 29.954545 | 90 | 0.676783 |
0339194c742a377ebf9f71ce3d3b2fe3577c61f1 | 1,098 | ex | Elixir | lib/types/entry.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 22 | 2021-03-07T17:00:42.000Z | 2022-03-21T07:16:11.000Z | lib/types/entry.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | null | null | null | lib/types/entry.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 2 | 2021-03-10T21:16:51.000Z | 2021-05-06T10:49:13.000Z | defmodule Egit.Types.Entry do
@moduledoc """
An Elixir implementation of Git version control system
"""
use Bitwise
@regular_mode "100644"
@executable_mode "100755"
@directory_mode "40000"
defstruct name: nil, oid: nil, content: nil, stat: nil
def parent_dirs(entry) do
descend(entry.name)
... | 19.263158 | 89 | 0.565574 |
033940840de88311140716cc24442530fe1acc3e | 1,784 | exs | Elixir | test/ex_aws_code_deploy_test.exs | fmcgeough/ex_aws_code_deploy | 0d8c8ed828fc3784d8eb5b898e41e5be5098f16c | [
"MIT"
] | 1 | 2020-01-12T03:30:38.000Z | 2020-01-12T03:30:38.000Z | test/ex_aws_code_deploy_test.exs | fmcgeough/ex_aws_code_deploy | 0d8c8ed828fc3784d8eb5b898e41e5be5098f16c | [
"MIT"
] | null | null | null | test/ex_aws_code_deploy_test.exs | fmcgeough/ex_aws_code_deploy | 0d8c8ed828fc3784d8eb5b898e41e5be5098f16c | [
"MIT"
] | null | null | null | defmodule ExAwsCodeDeployTest do
use ExUnit.Case
doctest ExAws.CodeDeploy
alias ExAws.CodeDeploy
test "get application revision from S3" do
revision = %{
"revision" => %{
"revisionType" => "S3",
"s3Location" => %{
"bundleType" => "zip",
"eTag" => "fff9102ckv48b652b... | 28.774194 | 83 | 0.524103 |
0339606ed6f251da3ac69e244ee335806346a82c | 2,245 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_datastore_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_datastore_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_datastore_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.574074 | 212 | 0.774165 |
0339720b338b83ed3d5944b75e3c8c2b244ca540 | 682 | exs | Elixir | priv/repo/migrations/20170914141603_create_account_users.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170914141603_create_account_users.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170914141603_create_account_users.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | defmodule Escala.Repo.Migrations.CreateAccountUsers do
use Ecto.Migration
def up do
execute "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\""
create table(:account_users, primary_key: false) do
add :id, :uuid, primary_key: true, default: fragment("uuid_generate_v4()")
add :email, :text, null: fals... | 26.230769 | 80 | 0.670088 |
0339773310e8cff3c2d2f3f7dae1d7a5644d4b04 | 357 | ex | Elixir | lib/ex_gpgme/notation/signature_notation.ex | jshmrtn/ex-gpgme | 0a465254d24d192c2311acf640258fe016b9195a | [
"MIT"
] | 3 | 2017-11-30T16:47:13.000Z | 2019-02-20T20:43:05.000Z | lib/ex_gpgme/notation/signature_notation.ex | jshmrtn/ex-gpgme | 0a465254d24d192c2311acf640258fe016b9195a | [
"MIT"
] | 1 | 2020-07-08T18:33:26.000Z | 2020-07-08T18:47:09.000Z | lib/ex_gpgme/notation/signature_notation.ex | jshmrtn/ex-gpgme | 0a465254d24d192c2311acf640258fe016b9195a | [
"MIT"
] | 2 | 2018-12-31T02:03:38.000Z | 2020-07-08T17:45:14.000Z | defmodule ExGpgme.Notation.SignatureNotation do
@moduledoc """
Signature Notation
"""
@type t :: %__MODULE__{
is_human_readable: boolean,
is_critical: boolean,
# flags: any
name: String.t,
value: String.t,
}
@enforce_keys [
:is_human_readable,
:is_critical,
:name,
:valu... | 16.227273 | 47 | 0.644258 |
03398ad3876518de177805d45c9ddf1d961dae5b | 3,232 | exs | Elixir | backend/config/runtime.exs | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | backend/config/runtime.exs | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | backend/config/runtime.exs | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 37.581395 | 82 | 0.698639 |
03398f7228c8c5e716dd416d3a1334998934b186 | 910 | exs | Elixir | mix.exs | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 23 | 2016-09-07T03:48:58.000Z | 2021-11-17T10:24:14.000Z | mix.exs | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 1 | 2017-07-30T11:47:31.000Z | 2017-07-30T11:47:31.000Z | mix.exs | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 10 | 2016-12-22T07:33:59.000Z | 2020-05-27T10:46:43.000Z | defmodule Injector.Mixfile do
use Mix.Project
def project do
[app: :injector,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
escript: [main_module: Injector.Cmd],
deps: deps()]
end
# Configuration for the OTP applicati... | 19.782609 | 77 | 0.548352 |
03399bc13e1e37601a3419f1d8991e73a59da6ff | 273 | exs | Elixir | Elixir/elixirexamples/test/continuationpassing_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | Elixir/elixirexamples/test/continuationpassing_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | Elixir/elixirexamples/test/continuationpassing_test.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defmodule ContinuationPassingTest do
use ExUnit.Case
test "initiate_ok" do
ret = ContinuationPassing.initiate {:ok,1}
assert ret == {:stopped}
end
test "initiate_error" do
ret = ContinuationPassing.initiate {:ok,2}
assert ret == :error
end
end
| 18.2 | 46 | 0.692308 |
0339bb0c3b7fe39bb132eec5ec263f1c6ca2fcdb | 560 | ex | Elixir | lib/escript_testbed/scenarios/data_set_a.ex | elvanja/escript_testbed | eb92772b6223309d727716d8a6dc1c9d316bbbb4 | [
"MIT"
] | null | null | null | lib/escript_testbed/scenarios/data_set_a.ex | elvanja/escript_testbed | eb92772b6223309d727716d8a6dc1c9d316bbbb4 | [
"MIT"
] | 2 | 2020-07-27T00:13:11.000Z | 2020-07-27T05:22:17.000Z | lib/escript_testbed/scenarios/data_set_a.ex | elvanja/escript_testbed | eb92772b6223309d727716d8a6dc1c9d316bbbb4 | [
"MIT"
] | 2 | 2020-07-26T12:32:39.000Z | 2020-07-26T23:54:13.000Z | defmodule EscriptTestbed.Scenarios.DataSetA do
@moduledoc false
alias EscriptTestbed.Repos.Destination, as: DestinationRepo
alias EscriptTestbed.Repos.Source, as: SourceRepo
alias EscriptTestbed.Scenario
@behaviour Scenario
@impl Scenario
def run do
IO.puts("""
Sync completed successfully:
... | 23.333333 | 61 | 0.685714 |
033a2b68636a0925613e0552f6b55ce92f1ba08f | 1,501 | exs | Elixir | test/data/mutate_rows_test.exs | bzzt/bigtable | 215b104a60596dde6cd459efb73baf8bccdb6b50 | [
"MIT"
] | 17 | 2019-01-22T12:59:38.000Z | 2021-12-13T10:41:52.000Z | test/data/mutate_rows_test.exs | bzzt/bigtable | 215b104a60596dde6cd459efb73baf8bccdb6b50 | [
"MIT"
] | 17 | 2019-01-27T18:11:33.000Z | 2020-02-24T10:16:08.000Z | test/data/mutate_rows_test.exs | bzzt/bigtable | 215b104a60596dde6cd459efb73baf8bccdb6b50 | [
"MIT"
] | 3 | 2019-02-04T17:08:09.000Z | 2021-04-07T07:13:53.000Z | defmodule MutateRowsTest do
@moduledoc false
alias Bigtable.{MutateRows, Mutations}
use ExUnit.Case
setup do
[
entries: [Mutations.build("Test#123"), Mutations.build("Test#124")]
]
end
describe "MutateRow.build() " do
test "should build a MutateRowsRequest with configured table", contex... | 24.606557 | 77 | 0.579614 |
033a2c6201ba091707499ccf9472a16d931587b0 | 760 | ex | Elixir | lib/tinybeam/router.ex | niklaslong/tinybeam | fa69e985cfe8c5145cd9238dd01ff8804613e107 | [
"MIT"
] | null | null | null | lib/tinybeam/router.ex | niklaslong/tinybeam | fa69e985cfe8c5145cd9238dd01ff8804613e107 | [
"MIT"
] | 9 | 2020-06-16T10:41:57.000Z | 2020-06-16T10:44:04.000Z | lib/tinybeam/router.ex | niklaslong/tinybeam | fa69e985cfe8c5145cd9238dd01ff8804613e107 | [
"MIT"
] | null | null | null | defmodule Tinybeam.Router do
alias Tinybeam.Server.Response
defmacro __using__(_options) do
quote do
import Tinybeam.Router
alias Tinybeam.Server.Response
def match(type, route, request) do
do_match(type, route, request)
end
end
end
defmacro get(route, body) do
quo... | 20.540541 | 70 | 0.610526 |
033a629ccdb5ed900874171ee43668f497278b4e | 1,206 | exs | Elixir | mix.exs | PRX/redix-clustered | 46d5826fdcd877ba9794e083260b5bcc784b8a9e | [
"MIT"
] | null | null | null | mix.exs | PRX/redix-clustered | 46d5826fdcd877ba9794e083260b5bcc784b8a9e | [
"MIT"
] | null | null | null | mix.exs | PRX/redix-clustered | 46d5826fdcd877ba9794e083260b5bcc784b8a9e | [
"MIT"
] | null | null | null | defmodule RedixClustered.MixProject do
use Mix.Project
def project do
[
app: :redix_clustered,
version: "1.1.0",
elixir: "~> 1.12",
name: "RedixClustered",
source_url: "https://github.com/PRX/redix-clustered",
homepage_url: "https://github.com/PRX/redix-clustered",
des... | 22.333333 | 65 | 0.563847 |
033a6c13e1fcd347ec796a3962510e05ad4d72a3 | 2,160 | exs | Elixir | test/zanox/products_test.exs | rafaelss/zanox | 4f9849252dc96a644d974939ce9437d5e538300a | [
"MIT"
] | 1 | 2016-10-08T15:45:34.000Z | 2016-10-08T15:45:34.000Z | test/zanox/products_test.exs | rafaelss/zanox | 4f9849252dc96a644d974939ce9437d5e538300a | [
"MIT"
] | null | null | null | test/zanox/products_test.exs | rafaelss/zanox | 4f9849252dc96a644d974939ce9437d5e538300a | [
"MIT"
] | null | null | null | defmodule Zanox.ProductsTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
doctest Zanox
setup_all do
Application.put_env(:zanox, :connectid, "foobar")
ExVCR.Config.cassette_library_dir("test/fixtures/cassettes")
:ok
end
test "load products" do
use_cassette "load-produ... | 49.090909 | 341 | 0.721759 |
033a800b0aeb424840e99154c877ff308d55a3fa | 13,418 | ex | Elixir | lib/demo_web/live/snake_live.ex | cadebward/phoenix_live_view | bd4903ed649a4efc1bdb6142810aa82e1e02573a | [
"MIT"
] | null | null | null | lib/demo_web/live/snake_live.ex | cadebward/phoenix_live_view | bd4903ed649a4efc1bdb6142810aa82e1e02573a | [
"MIT"
] | null | null | null | lib/demo_web/live/snake_live.ex | cadebward/phoenix_live_view | bd4903ed649a4efc1bdb6142810aa82e1e02573a | [
"MIT"
] | null | null | null | defmodule DemoWeb.SnakeLive do
use Phoenix.LiveView
@tick 100
@width 16
@snake_length 5
@board [
~w(X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X),
~w(X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X... | 36.661202 | 106 | 0.532568 |
033a9cf645f7dec5a537de04e4ab72670f2234a7 | 2,799 | exs | Elixir | test/plumbapius/request_test.exs | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | null | null | null | test/plumbapius/request_test.exs | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | null | null | null | test/plumbapius/request_test.exs | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | null | null | null | defmodule Plumbapius.RequestTest do
use ExUnit.Case, async: true
doctest Plumbapius.Request
alias Plumbapius.Request
alias Plumbapius.Request.NotFoundSchemaForReqestBodyError
describe "#validate_body" do
test "when the body according to the schema with 1 body option" do
request_body = %{"msisdn" =>... | 32.172414 | 118 | 0.596642 |
033ac9d383006b107df3957c0b082e4bd33c8729 | 1,894 | ex | Elixir | lib/runner.ex | flowerett/elixir-koans | 174f4610e846f59cc34b41a36b813f5d684fd510 | [
"MIT"
] | null | null | null | lib/runner.ex | flowerett/elixir-koans | 174f4610e846f59cc34b41a36b813f5d684fd510 | [
"MIT"
] | null | null | null | lib/runner.ex | flowerett/elixir-koans | 174f4610e846f59cc34b41a36b813f5d684fd510 | [
"MIT"
] | null | null | null | defmodule Runner do
use GenServer
def koan?(koan) do
Keyword.has_key?(koan.__info__(:functions), :all_koans)
end
def modules do
{:ok, modules} = :application.get_key(:elixir_koans, :modules)
modules
|> Stream.map(&(&1.module_info |> get_in([:compile, :source])))
|> Stream.map(&to_string/1... | 22.547619 | 89 | 0.62302 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.