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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a25bbc093086e1259b60861c01c264e4f4c703f | 36 | ex | Elixir | host_core/lib/host_core/wasmcloud.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/wasmcloud.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/wasmcloud.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.WasmCloud do
end
| 12 | 31 | 0.861111 |
5a25c815d6407730070e193ac142032df6004d9d | 873 | ex | Elixir | lib/protobuf/message_props.ex | jeanparpaillon/protobuf-elixir | 7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09 | [
"MIT"
] | null | null | null | lib/protobuf/message_props.ex | jeanparpaillon/protobuf-elixir | 7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09 | [
"MIT"
] | 3 | 2019-09-19T14:52:12.000Z | 2019-09-24T15:45:07.000Z | lib/protobuf/message_props.ex | jeanparpaillon/protobuf-elixir | 7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09 | [
"MIT"
] | null | null | null | defmodule Protobuf.MessageProps do
alias Protobuf.FieldProps
@type t :: %__MODULE__{
ordered_tags: [integer],
tags_map: %{integer => integer},
field_props: %{integer => FieldProps.T},
field_tags: %{atom => integer},
repeated_fields: [atom],
embedded_field... | 26.454545 | 50 | 0.505155 |
5a25cbe7ffc4d9b9385186b0a6af58d0ac2b12bb | 220 | ex | Elixir | test/fakes/author/address.ex | paulhenri-l/resty | b6aec738569355bab53fbc732bfd323c63348b85 | [
"MIT"
] | 3 | 2018-11-17T11:11:47.000Z | 2019-09-13T16:13:43.000Z | test/fakes/author/address.ex | paulhenri-l/resty | b6aec738569355bab53fbc732bfd323c63348b85 | [
"MIT"
] | 38 | 2018-11-11T01:28:41.000Z | 2019-04-01T21:28:02.000Z | test/fakes/author/address.ex | paulhenri-l/resty | b6aec738569355bab53fbc732bfd323c63348b85 | [
"MIT"
] | 1 | 2019-01-10T12:41:48.000Z | 2019-01-10T12:41:48.000Z | defmodule Author.Address do
use Resty.Resource.Base
set_site "site.tld"
set_resource_path "/authors/:author_id/address"
define_attributes [:author_id, :city]
belongs_to Author, :author, :author_id, false
end
| 22 | 49 | 0.763636 |
5a25d7d057faa0f12f9e8a826deb71979d8280b4 | 2,186 | exs | Elixir | config/prod.exs | jhont285/2F_wallet_ms | 2b18c6a3e5f51d6c1da8bd913e7101a8e65b888e | [
"MIT"
] | null | null | null | config/prod.exs | jhont285/2F_wallet_ms | 2b18c6a3e5f51d6c1da8bd913e7101a8e65b888e | [
"MIT"
] | null | null | null | config/prod.exs | jhont285/2F_wallet_ms | 2b18c6a3e5f51d6c1da8bd913e7101a8e65b888e | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# WalletMsWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# D... | 33.630769 | 67 | 0.723239 |
5a26209739ba4a3c00f2418cf136c6582a62cb54 | 2,758 | exs | Elixir | test/soap/request_test.exs | MikeAlbertFleetSolutions/soap | ff19dd8d114acf43c33a7e741fb814684c7ab1f2 | [
"MIT"
] | null | null | null | test/soap/request_test.exs | MikeAlbertFleetSolutions/soap | ff19dd8d114acf43c33a7e741fb814684c7ab1f2 | [
"MIT"
] | null | null | null | test/soap/request_test.exs | MikeAlbertFleetSolutions/soap | ff19dd8d114acf43c33a7e741fb814684c7ab1f2 | [
"MIT"
] | null | null | null | defmodule Soap.RequestTest do
use ExUnit.Case
import Mock
doctest Soap.Request
alias Soap.{Request, Wsdl}
@request_with_header ~S"""
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://test.... | 41.787879 | 218 | 0.575417 |
5a2632fc2dbef2a08c2c6dc874f48fd476a70df2 | 582 | ex | Elixir | lib/hexen/people/user.ex | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 2 | 2019-12-28T21:31:43.000Z | 2019-12-30T01:03:28.000Z | lib/hexen/people/user.ex | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 4 | 2019-12-23T23:51:30.000Z | 2021-05-10T22:24:18.000Z | lib/hexen/people/user.ex | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 1 | 2020-01-17T20:19:14.000Z | 2020-01-17T20:19:14.000Z | defmodule Hexen.People.User do
@moduledoc """
Module Documentation
"""
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :avatar, :string
field :email, :string
field :name, :string
belongs_to :band, Hexen.People.Band
has_many :user_quests, Hexen.Events.UserQuest
has_... | 20.068966 | 50 | 0.666667 |
5a264a4da75121c9200d1a382de34d789ab406b9 | 359 | exs | Elixir | test_apps/0.0.1/elixir_test/mix.exs | emedia-project/xrel | 56d69ad8fbd9da5be043a6a094ca3ef0a2d1db83 | [
"Unlicense"
] | 5 | 2015-12-14T16:02:09.000Z | 2016-11-29T12:50:50.000Z | test_apps/0.0.1/elixir_test/mix.exs | G-Corp/jorel | 56d69ad8fbd9da5be043a6a094ca3ef0a2d1db83 | [
"Unlicense"
] | 3 | 2016-02-12T14:36:50.000Z | 2016-08-29T08:17:55.000Z | test_apps/0.0.1/elixir_test/mix.exs | G-Corp/jorel | 56d69ad8fbd9da5be043a6a094ca3ef0a2d1db83 | [
"Unlicense"
] | 2 | 2016-01-02T15:19:53.000Z | 2016-10-21T15:32:11.000Z | defmodule ElixirTest.Mixfile do
use Mix.Project
def project do
[app: :elixir_test,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do
[applications: [:logger],
mod: {ElixirTest, []}]
... | 16.318182 | 39 | 0.587744 |
5a264f29d06ebc519a032e4ab2a78efd11d10193 | 72 | ex | Elixir | lib/guess.ex | edycop/elixir_hangman_game | 440f0e2d9fb556000c593344831dc9b327534ca5 | [
"MIT"
] | null | null | null | lib/guess.ex | edycop/elixir_hangman_game | 440f0e2d9fb556000c593344831dc9b327534ca5 | [
"MIT"
] | null | null | null | lib/guess.ex | edycop/elixir_hangman_game | 440f0e2d9fb556000c593344831dc9b327534ca5 | [
"MIT"
] | null | null | null | defmodule HangMan.Guess do
defstruct guess_word: nil, attempts: 6
end
| 18 | 40 | 0.791667 |
5a267121d972d2935ce2d5dc3578bbe4e504f4e1 | 309 | ex | Elixir | lib/mappers.ex | arijitdasgupta/exchat | 98ec1562fc1bfb60dfc0fd4231adc29a53160a61 | [
"MIT"
] | null | null | null | lib/mappers.ex | arijitdasgupta/exchat | 98ec1562fc1bfb60dfc0fd4231adc29a53160a61 | [
"MIT"
] | null | null | null | lib/mappers.ex | arijitdasgupta/exchat | 98ec1562fc1bfb60dfc0fd4231adc29a53160a61 | [
"MIT"
] | null | null | null | defmodule Mappers do
def createMessage(messageText, username) do
{:ok, encodedJson} = Poison.encode(%{
sender: username,
message: messageText
})
encodedJson
end
def createAdminMessage(message) do
createMessage(message, "admin")
end
end | 22.071429 | 47 | 0.605178 |
5a26a597216c98e8ff6a938d08bfe48fb063eaf6 | 18,107 | ex | Elixir | lib/ash/embeddable_type.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/embeddable_type.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/embeddable_type.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.EmbeddableType do
@moduledoc false
@embedded_resource_array_constraints [
sort: [
type: :any,
doc: """
A sort to be applied when casting the data.
Only relevant for a type of {:array, `EmbeddedResource}`
The sort is not applied when reading the data, so if the sort... | 30.078073 | 113 | 0.53471 |
5a26c7d4e91fc04c917e8e58d815e76e32cf4245 | 15,425 | ex | Elixir | lib/tesla.ex | PragTob/tesla | f35fcdc47e40c9ad39107a3c6b6ba2157e2d95ce | [
"MIT"
] | null | null | null | lib/tesla.ex | PragTob/tesla | f35fcdc47e40c9ad39107a3c6b6ba2157e2d95ce | [
"MIT"
] | null | null | null | lib/tesla.ex | PragTob/tesla | f35fcdc47e40c9ad39107a3c6b6ba2157e2d95ce | [
"MIT"
] | 1 | 2020-05-25T10:18:54.000Z | 2020-05-25T10:18:54.000Z | defmodule Tesla.Error do
defexception env: nil, stack: [], reason: nil
def message(%Tesla.Error{env: %{url: url, method: method}, reason: reason}) do
"#{inspect(reason)} (#{method |> to_string |> String.upcase()} #{url})"
end
end
defmodule Tesla.Env do
@moduledoc """
This module defines a `t:Tesla.Env.t... | 28.939962 | 103 | 0.628136 |
5a26d253d7b5db925235c4766080c8a2222316c9 | 349 | ex | Elixir | apps/admin_api/lib/admin_api/v1/views/self_view.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/admin_api/lib/admin_api/v1/views/self_view.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/views/self_view.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.SelfView do
use AdminAPI, :view
alias EWallet.Web.V1.ResponseSerializer
alias EWallet.Web.V1.UserSerializer
@doc """
Renders a user response with the given user.
"""
def render("user.json", %{user: user}) do
user
|> UserSerializer.serialize()
|> ResponseSerializer.serial... | 23.266667 | 50 | 0.707736 |
5a26e4ae511b07219216a81e3b76d7232a0bf035 | 206 | ex | Elixir | lib/big_brother.ex | luismasuelli/elixir-websockets-auth | 845b826c4f2b612565930771497188081e6af71c | [
"MIT"
] | null | null | null | lib/big_brother.ex | luismasuelli/elixir-websockets-auth | 845b826c4f2b612565930771497188081e6af71c | [
"MIT"
] | null | null | null | lib/big_brother.ex | luismasuelli/elixir-websockets-auth | 845b826c4f2b612565930771497188081e6af71c | [
"MIT"
] | null | null | null | defmodule BigBrother do
@moduledoc """
Documentation for BigBrother.
"""
@doc """
Hello world.
## Examples
iex> BigBrother.hello
:world
"""
def hello do
:world
end
end
| 10.842105 | 31 | 0.587379 |
5a27107b205ca6906684758334579f07155db019 | 83 | exs | Elixir | test/test_helper.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 14 | 2016-09-12T02:45:12.000Z | 2021-02-08T04:13:29.000Z | test/test_helper.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 3 | 2016-09-12T05:17:35.000Z | 2016-09-14T16:35:04.000Z | test/test_helper.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 1 | 2018-02-12T04:30:52.000Z | 2018-02-12T04:30:52.000Z | ExUnit.start(timeout: 7_500)
Ecto.Adapters.SQL.Sandbox.mode(Athel.Repo, :manual)
| 16.6 | 51 | 0.771084 |
5a271477679828c18193f40cde0cb4718cb0a575 | 218 | ex | Elixir | lib/log_analyzer/server/static.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/static.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | lib/log_analyzer/server/static.ex | ColdOrange/log_analyzer | a48566addc154d1bc2a0434b78b36562ac15f130 | [
"MIT"
] | null | null | null | defmodule LogAnalyzer.Server.Static do
use Plug.Builder
plug Plug.Static,
at: "/",
from: "assets/static"
plug :not_found
def not_found(conn, _opts) do
send_resp(conn, 404, "not found")
end
end
| 15.571429 | 38 | 0.669725 |
5a274200136682cc06f6edda36dbe698108ac9d0 | 188 | ex | Elixir | lib/monero/utils.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 7 | 2017-09-08T18:17:55.000Z | 2021-07-11T01:03:40.000Z | lib/monero/utils.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 11 | 2017-09-08T10:23:34.000Z | 2018-08-24T16:10:09.000Z | lib/monero/utils.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 2 | 2018-11-12T06:42:31.000Z | 2021-07-11T01:33:34.000Z | defmodule Monero.Utils do
@moduledoc false
@doc "Utilit function to get value back. Useful as a fallback parser, for example"
def identity(x), do: x
def identity(x, _), do: x
end
| 23.5 | 84 | 0.712766 |
5a2755df207242a83f19d411e69101a73b4671a7 | 145 | ex | Elixir | lib/ggity_demo_web/controllers/home_controller.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/controllers/home_controller.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/controllers/home_controller.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | defmodule GGityDemoWeb.HomeController do
use GGityDemoWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.125 | 40 | 0.744828 |
5a276e941c438c88d1faec76940f51df57fa6122 | 1,446 | ex | Elixir | lib/elixible/client/client.ex | gabrielgatu/elixible | 3d8c4881469f2d3349488caf67f0d8400d7d1426 | [
"MIT"
] | 1 | 2020-05-08T05:11:55.000Z | 2020-05-08T05:11:55.000Z | lib/elixible/client/client.ex | gabrielgatu/elixible | 3d8c4881469f2d3349488caf67f0d8400d7d1426 | [
"MIT"
] | 1 | 2020-05-08T10:49:17.000Z | 2020-05-08T10:59:55.000Z | lib/elixible/client/client.ex | gabrielgatu/elixible | 3d8c4881469f2d3349488caf67f0d8400d7d1426 | [
"MIT"
] | null | null | null | defmodule Elixible.Client do
alias Elixible.Client.Handler
alias XmppMapper.Stanza.{JID}
defmacro __using__(_opts) do
quote do
unquote(delegates())
end
end
defp delegates do
quote do
defdelegate login(jid, password), to: Elixible.Client
defdelegate online_users(from), to: Elix... | 24.508475 | 79 | 0.671508 |
5a27728aefccda6dcb1f90c7443b275ae6e5f9c5 | 11,941 | ex | Elixir | lib/familiar.ex | Multiverse-io/familiar | 0bda7fa0fb4d6f8fdc701293b8824965a5d8b930 | [
"MIT"
] | 5 | 2021-05-05T14:54:06.000Z | 2022-02-19T13:00:48.000Z | lib/familiar.ex | Multiverse-io/familiar | 0bda7fa0fb4d6f8fdc701293b8824965a5d8b930 | [
"MIT"
] | null | null | null | lib/familiar.ex | Multiverse-io/familiar | 0bda7fa0fb4d6f8fdc701293b8824965a5d8b930 | [
"MIT"
] | 1 | 2021-11-23T16:51:36.000Z | 2021-11-23T16:51:36.000Z | defmodule Familiar do
@moduledoc """
Helper functions for creating database views and functions - your database's
familiars.
View and function definitions are stored as SQL files in `priv/repo/views` and
`priv/repo/functions` respectively.
Each definition file has the following file name format:
NA... | 31.177546 | 121 | 0.694247 |
5a277ade4a966feaff753d1e894322b22ea7a6e4 | 303 | exs | Elixir | test/test_helper.exs | appunite/ex_aws | cfc56d89e51b691bc20cac0c9347d84fd3e06663 | [
"MIT"
] | 1 | 2018-09-14T11:10:14.000Z | 2018-09-14T11:10:14.000Z | test/test_helper.exs | appunite/ex_aws | cfc56d89e51b691bc20cac0c9347d84fd3e06663 | [
"MIT"
] | 2 | 2021-01-29T21:12:46.000Z | 2021-01-30T06:11:16.000Z | test/test_helper.exs | appunite/ex_aws | cfc56d89e51b691bc20cac0c9347d84fd3e06663 | [
"MIT"
] | 2 | 2019-03-19T18:30:22.000Z | 2021-02-10T01:06:49.000Z | Code.require_file("default_helper.exs", __DIR__)
Code.require_file("alternate_helper.exs", __DIR__)
Application.ensure_all_started(:hackney)
Application.ensure_all_started(:jsx)
Application.ensure_all_started(:bypass)
Mox.defmock(ExAws.Request.HttpMock, for: ExAws.Request.HttpClient)
ExUnit.start()
| 27.545455 | 66 | 0.828383 |
5a27e4a30d4162aebf41e456174c6967481c3ecb | 1,627 | ex | Elixir | lib/codes/codes_c51.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c51.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_c51.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_C51 do
alias IcdCode.ICDCode
def _C510 do
%ICDCode{full_code: "C510",
category_code: "C51",
short_code: "0",
full_name: "Malignant neoplasm of labium majus",
short_name: "Malignant neoplasm of labium majus",
category_name: "Maligna... | 31.288462 | 75 | 0.619545 |
5a27e9d6ce1e7b1ea074ad6c901a8277aa78e562 | 1,077 | ex | Elixir | lib/docker_test2_web/channels/user_socket.ex | JohnB/docker_test2 | ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2 | [
"Apache-2.0"
] | null | null | null | lib/docker_test2_web/channels/user_socket.ex | JohnB/docker_test2 | ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2 | [
"Apache-2.0"
] | null | null | null | lib/docker_test2_web/channels/user_socket.ex | JohnB/docker_test2 | ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2 | [
"Apache-2.0"
] | null | null | null | defmodule DockerTest2Web.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", DockerTest2Web.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for al... | 31.676471 | 86 | 0.700093 |
5a27f5e28417f7755fd9d81f16edeaef6241d044 | 6,908 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/namespaced_debug_input.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/jobs/lib/google_api/jobs/v2/model/namespaced_debug_input.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/jobs/lib/google_api/jobs/v2/model/namespaced_debug_input.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 54.825397 | 154 | 0.718442 |
5a2825d8bef770ce652a4bb22ed9b52be4087890 | 1,484 | ex | Elixir | lib/radiator_web/controllers/feed_controller.ex | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | lib/radiator_web/controllers/feed_controller.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | lib/radiator_web/controllers/feed_controller.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | defmodule RadiatorWeb.FeedController do
use RadiatorWeb, :controller
alias Radiator.Directory
alias Radiator.Feed.Builder
@items_per_page 50
def show(conn, %{"podcast_id" => id, "page" => page}) do
podcast = Directory.get_podcast!(id)
episodes = Directory.list_episodes(%{podcast: podcast}) |> Radia... | 26.5 | 95 | 0.621294 |
5a284e264caff111aef23e3da8210e6e9cd5ebc5 | 224 | ex | Elixir | lib/hologram/template/evaluators/expression.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/template/evaluators/expression.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/template/evaluators/expression.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Template.VDOM.Expression
alias Hologram.Template.Evaluator
defimpl Evaluator, for: Expression do
def evaluate(%Expression{ir: ir}, bindings) do
Evaluator.evaluate(ir, bindings)
|> elem(0)
end
end
| 22.4 | 48 | 0.754464 |
5a28d1c91e821dd3393de5e73978c92a49036295 | 6,806 | ex | Elixir | astreu/deps/prometheus_ex/lib/prometheus/metric/counter.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu/deps/prometheus_ex/lib/prometheus/metric/counter.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu/deps/prometheus_ex/lib/prometheus/metric/counter.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | defmodule Prometheus.Metric.Counter do
@moduledoc """
Counter is a Metric that represents a single numerical value that only ever
goes up. That implies that it cannot be used to count items whose number can
also go down, e.g. the number of currently running processes. Those
"counters" are represented by `Prom... | 31.509259 | 89 | 0.676168 |
5a2910f15c4ee455158d00021f21a29cf1521dcf | 1,077 | ex | Elixir | lib/ex_twilio/resources/proxy/interaction.ex | lesserhatch/ex_twilio | 4869bc0f55213c5663ad3bb775ad7dc924277181 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/proxy/interaction.ex | lesserhatch/ex_twilio | 4869bc0f55213c5663ad3bb775ad7dc924277181 | [
"MIT"
] | 1 | 2021-02-19T04:34:52.000Z | 2021-03-29T19:14:14.000Z | lib/ex_twilio/resources/proxy/interaction.ex | workpathco/ex_twilio | fe6948ee2c78084dade683c0b81c33f47461589f | [
"MIT"
] | null | null | null | defmodule ExTwilio.Proxy.Interaction do
@moduledoc """
Represents an Interaction of a Session.
- [Twilio docs](https://www.twilio.com/docs/proxy/api/interaction)
"""
defstruct sid: nil,
account_sid: nil,
session_sid: nil,
service_sid: nil,
data: nil,
... | 29.916667 | 77 | 0.603528 |
5a2914dd7f0f8b285b063f87e97f0b7e7453a042 | 23,820 | ex | Elixir | bench/lib/datasets/google_message4/benchmark_message4_3.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 419 | 2017-04-02T13:10:51.000Z | 2020-11-15T15:53:17.000Z | bench/lib/datasets/google_message4/benchmark_message4_3.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 100 | 2017-04-02T14:26:41.000Z | 2020-11-10T23:43:30.000Z | bench/lib/datasets/google_message4/benchmark_message4_3.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 83 | 2017-07-24T21:50:04.000Z | 2020-11-15T08:52:34.000Z | defmodule Benchmarks.GoogleMessage4.UnusedEnum do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.10.1-dev", syntax: :proto2
field :UNUSED_ENUM_VALUE1, 0
field :UNUSED_ENUM_VALUE2, 1
end
defmodule Benchmarks.GoogleMessage4.Enum2593 do
@moduledoc false
use Protobuf, enum: true, pro... | 27.410817 | 84 | 0.757011 |
5a2937be15cb36c57ffb7422c607cee8cad6bac4 | 2,027 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/create_service_account_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/iam/lib/google_api/iam/v1/model/create_service_account_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/iam/lib/google_api/iam/v1/model/create_service_account_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... | 40.54 | 312 | 0.74001 |
5a296251af22255c6e008bbf8b72ea3c20d05c75 | 31,146 | ex | Elixir | apps/language_server/lib/language_server/server.ex | princemaple/elixir-ls | d2e6788cc32ede3f9f2ef080c051a061ae4f4d63 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/server.ex | princemaple/elixir-ls | d2e6788cc32ede3f9f2ef080c051a061ae4f4d63 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/server.ex | princemaple/elixir-ls | d2e6788cc32ede3f9f2ef080c051a061ae4f4d63 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Server do
@moduledoc """
Language Server Protocol server
This server tracks open files, attempts to rebuild the project when a file changes, and handles
requests from the IDE (for things like autocompletion, hover, etc.)
Notifications from the IDE are handled synchronously,... | 28.288828 | 100 | 0.642233 |
5a2964495e6cde34ff192c7a25ab6c30d4c1e052 | 501 | ex | Elixir | lib/html_playback_web/views/error_view.ex | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | lib/html_playback_web/views/error_view.ex | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | 2 | 2021-03-09T11:51:15.000Z | 2021-05-10T01:10:16.000Z | lib/html_playback_web/views/error_view.ex | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | defmodule HtmlPlaybackWeb.ErrorView do
use HtmlPlaybackWeb, :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 tem... | 29.470588 | 61 | 0.740519 |
5a297cc08ca55ac656ffd2f1f33ec7d21c38494e | 2,716 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/url_map_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/url_map_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/url_map_list.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... | 43.806452 | 393 | 0.703976 |
5a2997f1fb5e4030e9d4e3ebddb7473829025d88 | 4,127 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__route_map.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__route_map.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__route_map.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... | 82.54 | 1,178 | 0.774897 |
5a299dd0f42cfc38ec7142ba30e23d13e6ab9f36 | 1,437 | ex | Elixir | lib/myApi_web/controllers/user_controller.ex | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | null | null | null | lib/myApi_web/controllers/user_controller.ex | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | null | null | null | lib/myApi_web/controllers/user_controller.ex | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | null | null | null | defmodule MyApiWeb.UserController do
use MyApiWeb, :controller
alias MyApi.Accounts
alias MyApi.Accounts.User
alias MyApi.Guardian
action_fallback MyApiWeb.FallbackController
def sign_in(conn, %{"email" => email, "password" => password}) do
case Accounts.token_sign_in(email, password) do
{:ok,... | 26.127273 | 76 | 0.620042 |
5a29a8c29b7423b8d30cc66da2cfc981f7b10687 | 456 | exs | Elixir | examples/demo/config/config.exs | mbuhot/farq | d9ec81c518f38f9194dd6162a8ffed562481635f | [
"MIT"
] | null | null | null | examples/demo/config/config.exs | mbuhot/farq | d9ec81c518f38f9194dd6162a8ffed562481635f | [
"MIT"
] | null | null | null | examples/demo/config/config.exs | mbuhot/farq | d9ec81c518f38f9194dd6162a8ffed562481635f | [
"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
config :demo, ecto_repos: [Demo.Repo]
config :demo, Demo.Repo,
adapter: Ecto.Adapters.Postgres,
database: "farq_demo",
username: "postgres",
password: "password",
hostname... | 21.714286 | 61 | 0.714912 |
5a29a9d4ef7ef25afdd78bed522b4d9701c26e50 | 4,163 | ex | Elixir | lib/tic_tac_toe/strategy/four_by_four.ex | andrewMacmurray/tic-tac-toe | 8fb698e6db30486be3c96b6e9a5f281004222ef4 | [
"MIT"
] | 2 | 2017-12-02T16:50:50.000Z | 2017-12-05T13:14:58.000Z | lib/tic_tac_toe/strategy/four_by_four.ex | andrewMacmurray/tic-tac-toe | 8fb698e6db30486be3c96b6e9a5f281004222ef4 | [
"MIT"
] | 10 | 2017-12-05T22:18:24.000Z | 2017-12-18T15:33:48.000Z | lib/tic_tac_toe/strategy/four_by_four.ex | andrewMacmurray/tic-tac-toe | 8fb698e6db30486be3c96b6e9a5f281004222ef4 | [
"MIT"
] | null | null | null | defmodule TicTacToe.Strategy.FourByFour do
@moduledoc false
alias TicTacToe.Strategy.Minimax
alias TicTacToe.Board
@scale 4
@center_tiles [6, 7, 10, 11]
@doc """
AI strategy for 4x4 game
"""
def strategy(board, ai_player) do
moves_left = Board.possible_moves(board) |> length()
cond do
... | 30.610294 | 88 | 0.677877 |
5a29bc7e683d4b4e80f96fc3a7595365a4049588 | 4,373 | ex | Elixir | lib/asciinema_web/router.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/router.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/router.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.Router do
use AsciinemaWeb, :router
use Plug.ErrorHandler
defp handle_errors(_conn, %{reason: %Ecto.NoResultsError{}}), do: nil
defp handle_errors(_conn, %{reason: %Phoenix.NotAcceptableError{}}), do: nil
use Sentry.Plug
import AsciinemaWeb.Auth, only: [require_current_user: 2, requir... | 27.33125 | 92 | 0.682598 |
5a29c74dc6dee27920215c47892a6a6b905d3d66 | 1,195 | ex | Elixir | lib/scipse/endpoint.ex | strofcon/scipse | f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb | [
"Apache-2.0"
] | null | null | null | lib/scipse/endpoint.ex | strofcon/scipse | f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb | [
"Apache-2.0"
] | null | null | null | lib/scipse/endpoint.ex | strofcon/scipse | f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb | [
"Apache-2.0"
] | null | null | null | defmodule Scipse.Endpoint do
use Phoenix.Endpoint, otp_app: :scipse
socket "/socket", Scipse.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 27.790698 | 69 | 0.713808 |
5a29de84799aed0998fc986ab86769511b61833e | 869 | ex | Elixir | lib/glimesh/configurations.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh/configurations.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh/configurations.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Configurations do
@moduledoc """
A simple module responsible for various key / value configurations we need.
"""
import Ecto.Query, warn: false
alias Glimesh.Configurations.Configuration
alias Glimesh.Repo
@doc """
Get configuration value from the table
## Examples
iex> get... | 21.725 | 77 | 0.605293 |
5a29f86dc08fed68590d13c6129c4d7ea6313291 | 929 | exs | Elixir | hello/config/prod.secret.exs | MatheusPSantos/functional-prog-lessons | 79ecc40798f5aadb895b5c2a1875010de48998b5 | [
"MIT"
] | null | null | null | hello/config/prod.secret.exs | MatheusPSantos/functional-prog-lessons | 79ecc40798f5aadb895b5c2a1875010de48998b5 | [
"MIT"
] | null | null | null | hello/config/prod.secret.exs | MatheusPSantos/functional-prog-lessons | 79ecc40798f5aadb895b5c2a1875010de48998b5 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 30.966667 | 62 | 0.727664 |
5a2a1686e3acac44d0033025df86b2010bb49fd7 | 2,032 | ex | Elixir | lib/google_maps/request.ex | Frayt-Technologies/google_maps | 6eae796bf2bfbdeb5fd29a7e143271cf039d0fae | [
"MIT"
] | 48 | 2016-11-27T11:18:50.000Z | 2019-03-22T22:31:23.000Z | lib/google_maps/request.ex | Frayt-Technologies/google_maps | 6eae796bf2bfbdeb5fd29a7e143271cf039d0fae | [
"MIT"
] | 33 | 2019-05-15T09:07:17.000Z | 2021-08-02T09:14:21.000Z | lib/google_maps/request.ex | Frayt-Technologies/google_maps | 6eae796bf2bfbdeb5fd29a7e143271cf039d0fae | [
"MIT"
] | 26 | 2017-06-19T06:26:43.000Z | 2019-03-07T14:55:40.000Z | defmodule GoogleMaps.Request do
@moduledoc false
@doc """
GET an endpoint with param keyword list
"""
@spec get(String.t, keyword()) :: GoogleMaps.Response.t
def get(endpoint, params) do
{secure, params} = Keyword.pop(params, :secure)
{output, params} = Keyword.pop(params, :output, "json")
{key... | 26.38961 | 97 | 0.656496 |
5a2a230fa32f6312b3d9f0c14559d4885dd0877c | 2,772 | exs | Elixir | test/quiz_site_web/controllers/condition_controller_test.exs | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | 2 | 2017-10-30T00:42:01.000Z | 2017-10-30T21:29:15.000Z | test/quiz_site_web/controllers/condition_controller_test.exs | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | test/quiz_site_web/controllers/condition_controller_test.exs | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | defmodule QuizSiteWeb.ConditionControllerTest do
use QuizSiteWeb.ConnCase
alias QuizSite.Sections
alias QuizSite.Sections.Condition
@create_attrs %{condition: "some condition", section_id: 42}
@update_attrs %{condition: "some updated condition", section_id: 43}
@invalid_attrs %{condition: nil, section_id:... | 33.804878 | 110 | 0.652597 |
5a2a550a7335dcab3f8f444f4ceb190dd3595691 | 1,024 | ex | Elixir | test/support/simple/resources/user.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | null | null | null | test/support/simple/resources/user.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | 1 | 2020-06-05T01:06:15.000Z | 2020-06-05T01:06:15.000Z | test/support/simple/resources/user.ex | ash-project/ash_policy_access | a954bf12e3a65c9ea0b0eb888162064cae786cbd | [
"MIT"
] | null | null | null | defmodule AshPolicyAuthorizer.Test.Simple.User do
@moduledoc false
use Ash.Resource,
data_layer: Ash.DataLayer.Ets,
authorizers: [
AshPolicyAuthorizer.Authorizer
]
policies do
policy action_type(:update) do
authorize_if expr(id == ^actor(:id))
end
policy action_type(:read) do... | 21.787234 | 89 | 0.706055 |
5a2a7dc2b87de969708ce094badc1a1ad07da493 | 1,992 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/populate_version_files_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/populate_version_files_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/populate_version_files_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.84 | 353 | 0.75 |
5a2a8cffe0333b0db2c70e8389c961b584e32355 | 1,236 | ex | Elixir | lib/koans/17_agents.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | lib/koans/17_agents.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | lib/koans/17_agents.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | defmodule Agents do
use Koans
@intro "Agents"
koan "Agents maintain state, so you can ask them about it" do
{:ok, pid} = Agent.start_link(fn -> "Hi there" end)
assert Agent.get(pid, & &1) == "Hi there"
end
koan "Agents may also be named so that you don't have to keep the pid around" do
Agent.st... | 26.869565 | 82 | 0.636731 |
5a2a92fbebd33a6c6e0d1de15ea4c5a8c1b50002 | 1,803 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/secret_manager_secret.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/secret_manager_secret.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/secret_manager_secret.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... | 36.06 | 230 | 0.732668 |
5a2ae57f042c2ffc02d6f4dfe377d2981d4edebe | 3,966 | exs | Elixir | test/vintage_net/connectivity/inspector_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | null | null | null | test/vintage_net/connectivity/inspector_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | null | null | null | test/vintage_net/connectivity/inspector_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.Connectivity.InspectorTest do
use ExUnit.Case
alias VintageNet.Connectivity.Inspector
doctest Inspector
test "on_interface?/2" do
if_addrs = [
{{1, 2, 3, 4, 1234, 21943, 7498, 1443}, {65535, 65535, 65535, 65535, 0, 0, 0, 0}},
{{192, 168, 7, 139}, {255, 255, 255, 0}}
]
... | 36.054545 | 100 | 0.636409 |
5a2aea60165bdf1ecf724dfe59634a7834ab3eee | 3,807 | exs | Elixir | test/cadet/accounts/luminus_test.exs | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | test/cadet/accounts/luminus_test.exs | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | test/cadet/accounts/luminus_test.exs | ZiHawkEye/cadet | f7f9143699054d12bf08ef94e6e20a8ac58aea50 | [
"Apache-2.0"
] | null | null | null | defmodule Cadet.Accounts.LuminusTest do
@moduledoc """
This test module uses pre-recoreded HTTP responses saved by ExVCR. This
allows testing without actual external LumiNUS API calls.
In the case that you need to change the recorded responses, you will need
to set the config variables `luminus_api_key`, `lu... | 31.46281 | 89 | 0.670081 |
5a2afb457670db64865a7f7880740c490249d738 | 2,157 | ex | Elixir | lib/surface/live_view.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | lib/surface/live_view.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | lib/surface/live_view.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | defmodule Surface.LiveView do
@moduledoc """
A wrapper component around `Phoenix.LiveView`.
Since this module is just a wrapper around `Phoenix.LiveView`, you
cannot define custom properties for it. Only `:id` and `:session`
are available. However, built-in directives like `:for` and `:if`
can be used norm... | 25.987952 | 88 | 0.619379 |
5a2b47eb7df2b5ac4da2ef464bfe595d094dfaee | 692 | ex | Elixir | web/models/tag.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | web/models/tag.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | web/models/tag.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | defmodule Ginjyo.Tag do
use Ginjyo.Web, :model
alias Ginjyo.TagArticle
schema "tags" do
field :name, :string
field :slug, :string
has_many :tag_articles, TagArticle
has_many :articles, through: [:tag_articles, :articles]
timestamps
end
@required_fields ~w(name slug)
@optional_fields... | 21.625 | 61 | 0.679191 |
5a2b635a53786514c5c39c1fc37593bdfe57cdb3 | 2,257 | exs | Elixir | mix.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | mix.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | mix.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | defmodule Tilex.Mixfile do
use Mix.Project
def project do
[
app: :tilex,
version: "0.0.1",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :... | 28.935897 | 79 | 0.534338 |
5a2b7692f169c3bde99062f42328839a2afc44d4 | 1,969 | exs | Elixir | test/test_helper.exs | anotherhale/secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 44 | 2016-01-14T06:30:37.000Z | 2021-10-21T03:22:55.000Z | test/test_helper.exs | anotherhale/plug_secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 3 | 2017-08-08T17:18:33.000Z | 2018-02-18T06:47:24.000Z | test/test_helper.exs | anotherhale/plug_secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 12 | 2017-01-09T15:18:40.000Z | 2020-12-22T08:53:08.000Z | ExUnit.start()
defmodule AppMaker do
defmacro __using__(options) do
quote do
use Plug.Router
alias Plug.Conn.Status
plug SecureHeaders, unquote(options)
plug :match
plug :dispatch
end
end
end
defmodule TestApp do
@secure_config [
warn_only: false,
merge: false,
report_only: false,
... | 24.6125 | 127 | 0.685119 |
5a2b80785f83dafa82c368f14c20757a85e56c05 | 799 | ex | Elixir | lib/ex_nrel/electricity/utility_rate.ex | techgaun/ex_nrel | 6a6509903f9340e0d48b88b985ef2aa0eaae4594 | [
"Apache-2.0"
] | null | null | null | lib/ex_nrel/electricity/utility_rate.ex | techgaun/ex_nrel | 6a6509903f9340e0d48b88b985ef2aa0eaae4594 | [
"Apache-2.0"
] | null | null | null | lib/ex_nrel/electricity/utility_rate.ex | techgaun/ex_nrel | 6a6509903f9340e0d48b88b985ef2aa0eaae4594 | [
"Apache-2.0"
] | null | null | null | defmodule ExNrel.Electricity.UtilityRate do
@moduledoc """
This service returns annual average utility rates ($/kWH) for residential, commercial and industrial sectors as well as the local utility name for a specific location. This service does not return complex rate information.
Please refer to the [Utility Ra... | 29.592593 | 224 | 0.713392 |
5a2b9025d78297ca36f2d4e4d0046ebf943cf36f | 263 | ex | Elixir | lib/data_generator.ex | UrbanOS-Examples/data-generator | dcf3fb19fbb04809a73b52aac12e564a7749e71f | [
"Apache-2.0"
] | null | null | null | lib/data_generator.ex | UrbanOS-Examples/data-generator | dcf3fb19fbb04809a73b52aac12e564a7749e71f | [
"Apache-2.0"
] | null | null | null | lib/data_generator.ex | UrbanOS-Examples/data-generator | dcf3fb19fbb04809a73b52aac12e564a7749e71f | [
"Apache-2.0"
] | null | null | null | defmodule DataGenerator do
@moduledoc """
DataGenerator 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
| 26.3 | 66 | 0.764259 |
5a2ba5ca00b1712a0cebe5130b72a0a580d25929 | 2,000 | exs | Elixir | clients/firebase_hosting/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/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... | 29.850746 | 236 | 0.673 |
5a2ba9b83805ceb2b3f23d7bb5ba9d3311e31a88 | 1,980 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/custom_channel.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/custom_channel.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/custom_channel.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... | 35.357143 | 202 | 0.7 |
5a2bda0614abfba8b3c94e9217e153cda23d407d | 394 | exs | Elixir | test/absinthe/integration/execution/input_types/null/variable_to_type_T!.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/input_types/null/variable_to_type_T!.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | test/absinthe/integration/execution/input_types/null/variable_to_type_T!.exs | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | [
{[variables: %{"value" => nil}],
{:ok,
%{
errors: [
%{
message:
"Argument \"input\" has invalid value {base: $value}.\nIn field \"base\": Expected type \"Int!\", found $value."
},
%{message: "Variable \"value\": Expected non-null, found null."}
]
... | 26.266667 | 124 | 0.451777 |
5a2bed61b86342b6d3d9e575a98795c2e4db1e93 | 45,416 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/api/projects.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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... | 61.125168 | 2,230 | 0.655716 |
5a2bf84526e1e573d53cb6798e4b3bfce83b6971 | 206 | ex | Elixir | 2017-06-23/pattern-matching/meetup/lib/meetup/plugins.ex | yfractal/shenzhen-meetup | 65ff0a7ab4d74748d5caa5c71a4179790634b266 | [
"MIT"
] | 19 | 2017-06-22T08:06:04.000Z | 2019-10-28T02:36:20.000Z | 2017-06-23/pattern-matching/meetup/lib/meetup/plugins.ex | caicaishmily/shenzhen-meetup | 59dabe90f30b8b20ea37c77c84791ffb0ab6757b | [
"MIT"
] | null | null | null | 2017-06-23/pattern-matching/meetup/lib/meetup/plugins.ex | caicaishmily/shenzhen-meetup | 59dabe90f30b8b20ea37c77c84791ffb0ab6757b | [
"MIT"
] | 6 | 2019-08-02T06:09:24.000Z | 2020-12-30T09:04:31.000Z | defmodule Meetup.Plugins do
def rewrite_path(%{path: "/elixians"} = conn) do
%{ conn | path: "/meetups"}
end
def rewrite_path(conn), do: conn
def log(conn) do
IO.inspect conn
end
end
| 15.846154 | 50 | 0.635922 |
5a2c06230348aa26b921cce4ba6c731d264ec5d3 | 972 | ex | Elixir | web/models/language.ex | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 96 | 2016-02-26T20:20:33.000Z | 2020-10-02T16:21:00.000Z | web/models/language.ex | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 12 | 2016-02-27T16:23:55.000Z | 2017-07-04T13:46:00.000Z | web/models/language.ex | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 24 | 2016-03-10T23:55:33.000Z | 2019-06-07T18:32:34.000Z | defmodule Lyn.Language do
use Lyn.Web, :model
schema "languages" do
field :sort_order, :integer
field :name, :string
field :abbr, :string
field :charset, :string
timestamps
end
def admin_fields do
[
id: %{
label: "id",
type: :integer
},
name: %{
... | 18.692308 | 61 | 0.558642 |
5a2c11ae22b5fc6bcf706809fa2a728006c25571 | 939 | exs | Elixir | test/locations/location/get_map_for_test.exs | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | 14 | 2020-09-16T14:10:35.000Z | 2021-10-30T22:05:48.000Z | test/locations/location/get_map_for_test.exs | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | null | null | null | test/locations/location/get_map_for_test.exs | antp/locations | fe765fe78b896fe02e11b92e8d21e97f00744384 | [
"MIT"
] | null | null | null | defmodule Locations.Locations.GetMapForTest do
use Locations.DataCase
import Locations.Factories
import Mox
alias Locations.Support.NominatimData
alias Locations
@moduletag capture_log: true
@tag :unit
test "will return valid GEO data" do
location = insert(:location)
expect(
MockHttp... | 19.978723 | 88 | 0.659212 |
5a2c27a6d5ae1269cdc37ec6d8b7d6d369539b1e | 1,642 | ex | Elixir | lib/network_test/packet_tracer/dummy.ex | jonnystorm/network-test | c40fb6d2cef112ac3c1c256c341c1bbe78cf66cb | [
"WTFPL"
] | null | null | null | lib/network_test/packet_tracer/dummy.ex | jonnystorm/network-test | c40fb6d2cef112ac3c1c256c341c1bbe78cf66cb | [
"WTFPL"
] | null | null | null | lib/network_test/packet_tracer/dummy.ex | jonnystorm/network-test | c40fb6d2cef112ac3c1c256c341c1bbe78cf66cb | [
"WTFPL"
] | null | null | null | # Copyright © 2016 Jonathan Storm <the.jonathan.storm@gmail.com>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING.WTFPL file for more details.
defmodule NetworkTest.PacketTracer.... | 28.807018 | 105 | 0.745432 |
5a2c2807764e47977015e572a3ba4f1d36d1975d | 1,925 | ex | Elixir | lib/screens_web/controllers/v2/screen_controller.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens_web/controllers/v2/screen_controller.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens_web/controllers/v2/screen_controller.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.V2.ScreenController do
use ScreensWeb, :controller
require Logger
alias Screens.Config.{Screen, State}
alias Screens.V2.ScreenData.Parameters
@default_app_id :bus_eink
plug(:check_config)
plug(:environment_name)
plug(:last_refresh)
plug(:v2_layout)
defp check_config(conn, _) ... | 25.328947 | 92 | 0.675844 |
5a2c39299a827965ceac737ab0936f729e1b0d45 | 2,087 | exs | Elixir | test/readtome/connecter/connector_test.exs | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-09-05T20:54:57.000Z | 2021-09-05T20:54:57.000Z | test/readtome/connecter/connector_test.exs | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 17 | 2019-07-06T17:31:56.000Z | 2021-06-22T15:31:06.000Z | test/readtome/connecter/connector_test.exs | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-03-15T20:50:27.000Z | 2021-03-15T20:50:27.000Z | defmodule Readtome.ConnectorTest do
use Readtome.DataCase
alias Readtome.Connector
describe "inquiries" do
alias Readtome.Connector.Inquiry
@valid_attrs %{type: "some type"}
@update_attrs %{type: "some updated type"}
@invalid_attrs %{type: nil}
def inquiry_fixture(attrs \\ %{}) do
{:... | 31.621212 | 92 | 0.683277 |
5a2c92ce4098a4fd89ee9c7cc12b48cd590d8510 | 4,727 | exs | Elixir | apps/discovery_api/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/discovery_api/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/discovery_api/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | use Mix.Config
get_redix_args = fn host, password ->
[host: host, password: password]
|> Enum.filter(fn
{_, nil} -> false
{_, ""} -> false
_ -> true
end)
end
redix_args = get_redix_args.(System.get_env("REDIS_HOST"), System.get_env("REDIS_PASSWORD"))
kafka_brokers = System.get_env("KAFKA_BROKERS")
... | 25.278075 | 92 | 0.583245 |
5a2c9374fd7db44ed3a9976838b50eed2f0a9b55 | 1,897 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/model/subscription_trial_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/reseller/lib/google_api/reseller/v1/model/subscription_trial_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/reseller/lib/google_api/reseller/v1/model/subscription_trial_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.94 | 201 | 0.7301 |
5a2ca5576b779779e7401ac6baeb7d8d74f3b3e2 | 161 | ex | Elixir | test/support/example_view.ex | MichalDolata/conductor | 3d693a7cb210ff68079b2f7ded1f590815628f4d | [
"Apache-2.0"
] | 6 | 2017-09-19T13:02:32.000Z | 2021-07-02T08:49:41.000Z | test/support/example_view.ex | MichalDolata/conductor | 3d693a7cb210ff68079b2f7ded1f590815628f4d | [
"Apache-2.0"
] | 1 | 2017-10-23T21:12:56.000Z | 2017-10-31T21:51:31.000Z | test/support/example_view.ex | MichalDolata/conductor | 3d693a7cb210ff68079b2f7ded1f590815628f4d | [
"Apache-2.0"
] | 3 | 2017-09-23T03:53:03.000Z | 2018-12-20T12:59:46.000Z | defmodule Support.ExampleView do
use Phoenix.View, root: "test/support/templates"
def render("403.json", _assigns) do
%{message: "Forbidden"}
end
end
| 20.125 | 50 | 0.714286 |
5a2cb7ed3441bc3055d99e684b1909a869c04d4a | 2,600 | ex | Elixir | lib/live_view_example_web/store/item_store.ex | PJUllrich/LiveX_examples | 0de120cc99cefd304a5cf50d4822e2a9cdd96778 | [
"MIT"
] | 6 | 2019-09-03T17:19:07.000Z | 2020-05-02T08:26:26.000Z | lib/live_view_example_web/store/item_store.ex | PJUllrich/LiveX_example | 0de120cc99cefd304a5cf50d4822e2a9cdd96778 | [
"MIT"
] | 9 | 2020-07-17T17:11:17.000Z | 2021-07-19T15:47:09.000Z | lib/live_view_example_web/store/item_store.ex | PJUllrich/LiveX_example | 0de120cc99cefd304a5cf50d4822e2a9cdd96778 | [
"MIT"
] | 2 | 2019-09-03T17:19:08.000Z | 2019-10-02T20:37:46.000Z | defmodule LiveViewExampleWeb.Store do
@moduledoc """
A Vuex-inspired Flux Store for managing the State of a Phoenix LiveView application.
"""
use LiveEx
@all_items [
%{name: "Spoon", count: 5, category_id: 1},
%{name: "Fork", count: 5, category_id: 1},
%{name: "Couch", count: 1, category_id: 1},... | 27.956989 | 86 | 0.639231 |
5a2cc9fd8b56e96f03868f7936ec0b71df7735fc | 10,050 | exs | Elixir | farmbot_core/test/farmbot_celery_script/compiler_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/test/farmbot_celery_script/compiler_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | farmbot_core/test/farmbot_celery_script/compiler_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | defmodule FarmbotCeleryScript.CompilerTest do
use ExUnit.Case
use Mimic
alias FarmbotCeleryScript.{AST, Compiler}
alias FarmbotCeleryScript.Compiler.Scope
# Only required to compile
alias FarmbotCeleryScript.SysCalls, warn: false
test "change_ownership" do
email = "t@g.com"
secret = "super duper... | 26.377953 | 363 | 0.513234 |
5a2d138aabff0acb0ea4d66d49e6e26fc14e5d28 | 17,729 | exs | Elixir | apps/pipeline/test/unit/pipeline/writer/table_writer/statement_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/pipeline/test/unit/pipeline/writer/table_writer/statement_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/pipeline/test/unit/pipeline/writer/table_writer/statement_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Pipeline.Writer.TableWriter.StatementTest do
use ExUnit.Case
use Placebo
alias Pipeline.Writer.TableWriter.Statement
describe "create/1" do
@tag capture_log: true
test "converts schema type value to proper presto type" do
schema = [
%{name: "first_name", type: "string"},
... | 32.29326 | 224 | 0.54566 |
5a2d145ec0b4a86122373c589835a9e89091fe46 | 23,108 | exs | Elixir | test/livebook/file_system/s3_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | 1 | 2022-02-16T09:13:27.000Z | 2022-02-16T09:13:27.000Z | test/livebook/file_system/s3_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | test/livebook/file_system/s3_test.exs | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.FileSystem.S3Test do
use ExUnit.Case, async: true
alias Livebook.FileSystem
alias Livebook.FileSystem.S3
setup do
bypass = Bypass.open()
{:ok, bypass: bypass}
end
describe "new/3" do
test "trims trailing slash in bucket URL" do
assert %{bucket_url: "https://example.co... | 32.183844 | 102 | 0.581703 |
5a2d5d8a9fb70638ba974729cbc2e856875d6fab | 69 | exs | Elixir | test/test_helper.exs | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | test/test_helper.exs | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | test/test_helper.exs | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Renraku.Repo, :manual)
| 23 | 53 | 0.782609 |
5a2d5e3dfa2abd51540bd5007453f982ef68aa26 | 20,704 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/creative.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/creative.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/creative.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... | 111.913514 | 765 | 0.744977 |
5a2d61f20867fdeec5c6c62d6fa2e8fde01b2d31 | 18,486 | exs | Elixir | lib/elixir/test/elixir/option_parser_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/test/elixir/option_parser_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/test/elixir/option_parser_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule OptionParserTest do
use ExUnit.Case, async: true
doctest OptionParser
test "parses --key value option" do
assert OptionParser.parse(["--source", "form_docs/", "other"], switches: [source: :string]) ==
{[source: "form_docs/"], ["other"], [... | 39.248408 | 98 | 0.532673 |
5a2d779b7806d988e718d60d49c70fd64022d3e9 | 1,680 | ex | Elixir | lib/chat_api_web/views/slack_authorization_view.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | 1 | 2021-08-02T07:59:41.000Z | 2021-08-02T07:59:41.000Z | lib/chat_api_web/views/slack_authorization_view.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | null | null | null | lib/chat_api_web/views/slack_authorization_view.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.SlackAuthorizationView do
use ChatApiWeb, :view
alias ChatApiWeb.SlackAuthorizationView
alias ChatApi.SlackAuthorizations
def render("index.json", %{slack_authorizations: slack_authorizations}) do
%{data: render_many(slack_authorizations, SlackAuthorizationView, "slack_authorization.js... | 32.941176 | 98 | 0.730952 |
5a2d815617b4b4aa7c88cab5bf6805a42ceb048a | 2,129 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/groups.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/groups.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/groups.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.017857 | 213 | 0.709253 |
5a2d8610fe55f0f0a8b7fd742c6b7c3467d04c12 | 429 | exs | Elixir | test/buy_the_food_web/views/error_view_test.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | test/buy_the_food_web/views/error_view_test.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | test/buy_the_food_web/views/error_view_test.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | defmodule BuyTheFoodWeb.ErrorViewTest do
use BuyTheFoodWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(BuyTheFoodWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" ... | 28.6 | 95 | 0.741259 |
5a2d9ed2c6783fe97299da51277e01ba0a30a999 | 1,598 | exs | Elixir | apps/template/mix.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | null | null | null | apps/template/mix.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | null | null | null | apps/template/mix.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | null | null | null | defmodule Template.MixProject do
use Mix.Project
def project do
[
app: :template,
compilers: [:phoenix] ++ Mix.compilers(),
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
... | 26.633333 | 89 | 0.545056 |
5a2dc141e6fb96bee7bc7dd3eaf1546660d284a2 | 247 | ex | Elixir | apps/banking_api/lib/banking_api/users/create.ex | kmsskelly/banking_api | 89b8682e9317e045396bb783b7f0282ea8a4e13b | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api/users/create.ex | kmsskelly/banking_api | 89b8682e9317e045396bb783b7f0282ea8a4e13b | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api/users/create.ex | kmsskelly/banking_api | 89b8682e9317e045396bb783b7f0282ea8a4e13b | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.Users.Create do
@moduledoc """
Creates users in the database according to the defined scheme.
"""
alias BankingApi.{Repo, User}
def call(params) do
params
|> User.changeset()
|> Repo.insert()
end
end
| 17.642857 | 64 | 0.672065 |
5a2dc3ce3b541862d17a2773fa833b1a050064d7 | 1,858 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_workspace_source_context.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_workspace_source_context.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_workspace_source_context.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... | 36.431373 | 128 | 0.759419 |
5a2debe29a6979c85646e6ca8a55782228869ca6 | 292 | exs | Elixir | priv/repo/migrations/20150703064238_chat.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 48 | 2015-06-29T21:20:25.000Z | 2021-05-09T04:27:41.000Z | priv/repo/migrations/20150703064238_chat.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20150703064238_chat.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 15 | 2015-06-29T21:13:57.000Z | 2021-07-27T10:02:40.000Z | defmodule Survey.Repo.Migrations.Chat do
use Ecto.Migration
def change do
create table(:chat) do
add :nick, :text
add :user_id, :integer
add :body, :text
add :room, :integer
add :inserted_at, :datetime
end
create index(:chat, [:room])
end
end
| 19.466667 | 40 | 0.623288 |
5a2e3c1d75d9a1ddbb4eb711494b7bd5df7fd6dd | 1,119 | exs | Elixir | test/stripe/core_resources/setup_intent_test.exs | starbuildr/stripity_stripe | fa515364cf54c5b3ab5b98b3f2dfe9b1317a3d4e | [
"BSD-3-Clause"
] | null | null | null | test/stripe/core_resources/setup_intent_test.exs | starbuildr/stripity_stripe | fa515364cf54c5b3ab5b98b3f2dfe9b1317a3d4e | [
"BSD-3-Clause"
] | null | null | null | test/stripe/core_resources/setup_intent_test.exs | starbuildr/stripity_stripe | fa515364cf54c5b3ab5b98b3f2dfe9b1317a3d4e | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.SetupIntentTest do
use Stripe.StripeCase, async: true
test "is retrievable" do
assert {:ok, %Stripe.SetupIntent{}} = Stripe.SetupIntent.retrieve("pi_123", %{})
assert_stripe_requested(:get, "/v1/setup_intents/pi_123")
end
test "is creatable" do
params = %{payment_method_types: ["c... | 31.971429 | 97 | 0.689902 |
5a2e448f88f65f8f965b45ad4555c37931a5a4cd | 1,155 | ex | Elixir | lib/elx_k8s_web/live/category_live/index.ex | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | lib/elx_k8s_web/live/category_live/index.ex | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | lib/elx_k8s_web/live/category_live/index.ex | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | defmodule ElxK8sWeb.CategoryLive.Index do
use ElxK8sWeb, :live_view
alias ElxK8s.Categories
alias ElxK8s.Categories.Category
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, :categories, list_categories())}
end
@impl true
def handle_params(params, _url, socket) do
{:nor... | 24.574468 | 72 | 0.684848 |
5a2e7db8350d1b43327bdbe09599ae207fb40233 | 2,516 | ex | Elixir | lib/changelog_web/controllers/admin/page_controller.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/admin/page_controller.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/admin/page_controller.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.PageController do
use ChangelogWeb, :controller
alias Changelog.{Cache, Episode, EpisodeRequest, EpisodeStat, NewsItem, Newsletters, Person}
plug Authorize, Policies.Admin
def index(conn = %{assigns: %{current_user: me = %{admin: true}}}, _params) do
newsletters =
Newsl... | 32.675325 | 94 | 0.66097 |
5a2ed5bf5cc942e0a20a13e0f011af6d2a9228c0 | 893 | exs | Elixir | mix.exs | exavier-elixir/exavier | 1e0ecb3c4cbfcb0902fa37f1fda59494b8b81cd4 | [
"MIT"
] | null | null | null | mix.exs | exavier-elixir/exavier | 1e0ecb3c4cbfcb0902fa37f1fda59494b8b81cd4 | [
"MIT"
] | null | null | null | mix.exs | exavier-elixir/exavier | 1e0ecb3c4cbfcb0902fa37f1fda59494b8b81cd4 | [
"MIT"
] | null | null | null | defmodule Exavier.MixProject do
use Mix.Project
def project do
[
app: :exavier,
version: "0.1.4",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
]
... | 20.295455 | 75 | 0.590146 |
5a2ee3c127bea663bd6fd1a8ef4ebcc2f63eebdd | 1,048 | ex | Elixir | lib/pong/game/ai-paddle.ex | Serneum/expong-oop | a2beafaceb957cd6f924257eb9799cdb5d2555e4 | [
"WTFPL"
] | 2 | 2016-08-25T13:55:53.000Z | 2016-08-27T23:54:38.000Z | lib/pong/game/ai-paddle.ex | Serneum/ex-pong | 75a990a672099f4eae0ca1782b3a40f8e244730a | [
"WTFPL"
] | null | null | null | lib/pong/game/ai-paddle.ex | Serneum/ex-pong | 75a990a672099f4eae0ca1782b3a40f8e244730a | [
"WTFPL"
] | null | null | null | defmodule Pong.Game.AIPaddle do
alias Pong.Game.Ball
alias Pong.Game.Paddle
@height 100
@width 10
@vel 5
@wall_offset 10
defstruct [:x, :y]
def width, do: @width
def height, do: @height
def init(screen_width, screen_height) do
%Paddle{x: screen_width - @width - @wall_offset, y: init_y(screen... | 23.818182 | 143 | 0.64313 |
5a2eeca31f5d35b37a3c3328abd2b8cb6e3b8e87 | 11,029 | exs | Elixir | test/cizen/pattern/code_test.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | test/cizen/pattern/code_test.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | test/cizen/pattern/code_test.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | defmodule Pattern.CodeTest do
use ExUnit.Case
alias Cizen.Pattern
require Pattern
import Pattern.Code, only: [as_code: 2, and_: 2, or_: 2, access_: 1, call_: 3, op_: 2]
defmodule(A, do: defstruct([:key1, :key2, :b]))
defmodule(B, do: defstruct([:key1, :key2, :a]))
defmodule(C, do: defstruct([:key1, :key... | 26.448441 | 98 | 0.44247 |
5a2ef14e3d2bd2b9e43f991bf55b38c8965f83d0 | 3,917 | ex | Elixir | lib/workex/aggregate.ex | sasa1977/workex | cb7adf893d0d19caf0530f9b4fec998d64cefd7d | [
"MIT"
] | 63 | 2015-02-21T13:55:39.000Z | 2021-09-03T17:23:39.000Z | lib/workex/aggregate.ex | sasa1977/workex | cb7adf893d0d19caf0530f9b4fec998d64cefd7d | [
"MIT"
] | 1 | 2016-05-24T17:43:46.000Z | 2016-05-24T17:43:46.000Z | lib/workex/aggregate.ex | sasa1977/workex | cb7adf893d0d19caf0530f9b4fec998d64cefd7d | [
"MIT"
] | 3 | 2015-04-10T03:42:09.000Z | 2016-10-17T18:16:19.000Z | defprotocol Workex.Aggregate do
@moduledoc """
Specifies the protocol used by `Workex` behaviour to aggregate incoming messages.
"""
@type value :: any
@doc "Adds the new item to the aggregate."
@spec add(t, any) :: t
def add(aggregate, message)
@doc """
Produces an aggregated value from all coll... | 27.978571 | 84 | 0.699515 |
5a2efafa281a97f6c7693c416917d6e53c4a1901 | 10,624 | exs | Elixir | installer/test/phoenix_new_test.exs | thegrubbsian/phoenix | a8ff809ddd24a2c4277da5cca122d70709313ac8 | [
"MIT"
] | null | null | null | installer/test/phoenix_new_test.exs | thegrubbsian/phoenix | a8ff809ddd24a2c4277da5cca122d70709313ac8 | [
"MIT"
] | null | null | null | installer/test/phoenix_new_test.exs | thegrubbsian/phoenix | a8ff809ddd24a2c4277da5cca122d70709313ac8 | [
"MIT"
] | null | null | null | Code.require_file "mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phoenix.NewTest do
use ExUnit.Case
import MixHelper
@app_name "photo_blog"
setup do
# The shell asks to install deps.
# We will politely say not.
send self(), {:mix_shell_input, :yes?, false}
:ok
end
test "returns the versio... | 38.078853 | 136 | 0.662651 |
5a2f02df52fe4072ea7ad13a912ab77b5701625d | 6,174 | ex | Elixir | lib/membrane/core/callback_handler.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/callback_handler.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/callback_handler.ex | vKxni/membrane_core | d14a67304b63706d6df520fa306dd2fda147c07c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.CallbackHandler do
@moduledoc false
# Behaviour for module that delegates its job to the other module via callbacks.
# It delivers implementation of executing callbacks and results parsing their
# results.
use Bunch
alias Bunch.Type
alias Membrane.CallbackError
require Membra... | 30.87 | 99 | 0.652575 |
5a2f083d44f974351d25ff0f7577ddeab903ccc1 | 3,646 | ex | Elixir | lib/thumbifier/convert/processor.ex | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 4 | 2016-10-16T22:22:52.000Z | 2019-05-24T13:44:15.000Z | lib/thumbifier/convert/processor.ex | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 1 | 2016-10-21T00:16:16.000Z | 2017-09-24T02:24:23.000Z | lib/thumbifier/convert/processor.ex | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | null | null | null | require Logger
defmodule Thumbifier.Convert.Processor do
def process(max_file_size, data) do
Logger.info("Received job: " <> data["response_id"] <> " - personal reference: " <> data["personal_reference"])
Thumbifier.Util.URI.details(data["media_url"])
|> process_remote_file_details(data, max_file_size)
... | 34.074766 | 151 | 0.674986 |
5a2f1177feccc72130de3eb11c81f92e6c89aa11 | 4,203 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_product_detail.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_product_detail.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_product_detail.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... | 51.256098 | 473 | 0.72591 |
5a2f1e2307c142d57f288ca0fdf0dfa4a1144b0f | 5,128 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/adclients.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/adclients.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/adclients.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... | 44.206897 | 217 | 0.696373 |
5a2f4f21c27d4a635ff4743390fb36a0ebce63c0 | 303 | ex | Elixir | web/router.ex | victorspringer/zionMetrics | 13ae2f362d8a7e7af97a0487af53f4595c7c73fd | [
"MIT"
] | null | null | null | web/router.ex | victorspringer/zionMetrics | 13ae2f362d8a7e7af97a0487af53f4595c7c73fd | [
"MIT"
] | null | null | null | web/router.ex | victorspringer/zionMetrics | 13ae2f362d8a7e7af97a0487af53f4595c7c73fd | [
"MIT"
] | null | null | null | defmodule Metrics.Router do
use Metrics.Web, :router
pipeline :events do
plug :accepts, ["json"]
end
scope "/v1/events", Metrics do
pipe_through :events
resources "/events", EventController
post "/", EventController, :create
get "/:type", EventController, :show
end
end
| 18.9375 | 40 | 0.673267 |
5a2f70d366f69e8313061a89d32d76c13e45be2b | 3,483 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/audit_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/audit_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/audit_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.147059 | 168 | 0.641114 |
5a2fb762f21f94b0e6008818a5acd4c216397635 | 10,758 | exs | Elixir | test/teslamate_web/live/charge_cost_live_test.exs | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | 1 | 2020-08-10T03:16:35.000Z | 2020-08-10T03:16:35.000Z | test/teslamate_web/live/charge_cost_live_test.exs | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | null | null | null | test/teslamate_web/live/charge_cost_live_test.exs | tacotran/teslamate | 23f7c9ce8d2610d59991e5aa158958b00b069778 | [
"MIT"
] | null | null | null | defmodule TeslaMateWeb.ChargeLive.CostTest do
use TeslaMateWeb.ConnCase
use TeslaMate.VehicleCase
alias TeslaMate.Log.ChargingProcess
alias TeslaMate.Log.Car
alias TeslaMate.{Log, Locations, Repo}
import TestHelper, only: [decimal: 1]
describe "metadata" do
test "hides the date if the charge has no... | 31.922849 | 139 | 0.529188 |
5a2ff6aa16dc0759f9dd5e19ca511e217477bb8e | 1,378 | ex | Elixir | lib/blockquote_web/views/daily_quote_view.ex | allen-garvey/block-quote-phoenix | 5c0f5d16daf6bb515a8f1846c3e4311b368a7bdb | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/blockquote/lib/blockquote_web/views/daily_quote_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/blockquote/lib/blockquote_web/views/daily_quote_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule BlockquoteWeb.DailyQuoteView do
use BlockquoteWeb, :view
alias BlockquoteWeb.SharedView
def render("new.html", assigns) do
assigns = Map.merge(assigns, shared_form_assigns(assigns))
render BlockquoteWeb.SharedView, "new.html", assigns
end
def render("edit.html", assigns) do
assigns =... | 29.956522 | 130 | 0.694485 |
5a307521420b20fe68b73d331a74c86cd20a7291 | 1,941 | ex | Elixir | lib/mix/tasks/lit.gen.html.ex | muhammedsekerci/lit | b58c6135134688ed1ed16f7b2e0f9a6396b2be67 | [
"MIT"
] | 14 | 2020-12-22T08:26:15.000Z | 2022-01-11T16:08:14.000Z | lib/mix/tasks/lit.gen.html.ex | muhammedsekerci/lit | b58c6135134688ed1ed16f7b2e0f9a6396b2be67 | [
"MIT"
] | 2 | 2021-04-06T19:22:55.000Z | 2021-05-31T14:02:40.000Z | lib/mix/tasks/lit.gen.html.ex | muhammedsekerci/lit | b58c6135134688ed1ed16f7b2e0f9a6396b2be67 | [
"MIT"
] | 7 | 2021-02-03T23:44:12.000Z | 2021-12-27T05:09:40.000Z | defmodule Mix.Tasks.Lit.Gen.Html do
@moduledoc """
Light wrapper module around `mix phx.gen.html` which generates slightly
modified HTML.
Takes all the same params as the `phx.gen.html` task.
## Example
mix lit.gen.html Accounts User users --no-schema
"""
@commands ~w[phx.gen.html phx.gen.contex... | 28.544118 | 83 | 0.6373 |
5a30a75a8f09846db1499fc296b265ec5af9de99 | 330 | exs | Elixir | test/states_language_vending_machine_test.exs | CityBaseInc/states_language | 474b8a46f392b62d03c5ff5ed7f10f576b3166d7 | [
"MIT"
] | 67 | 2019-12-04T07:31:58.000Z | 2020-04-02T21:52:44.000Z | test/states_language_vending_machine_test.exs | fpalluel/states_language | a5772b6ba700651078592c71d63bc46bfbdd19b9 | [
"MIT"
] | 5 | 2019-12-04T18:53:08.000Z | 2020-04-02T19:02:34.000Z | test/states_language_vending_machine_test.exs | fpalluel/states_language | a5772b6ba700651078592c71d63bc46bfbdd19b9 | [
"MIT"
] | 7 | 2019-12-05T11:41:48.000Z | 2020-04-02T14:08:27.000Z | defmodule StatesLanguageVendingMachineTest do
use ExUnit.Case, async: true
require Logger
alias VendingMachine.Data
setup do
{:ok, client_pid} = VendingMachine.start_link(%Data{test: self()})
[client_pid: client_pid]
end
test "client goes through all states" do
assert_receive :finished, 1000
... | 20.625 | 70 | 0.736364 |
5a30d3e86d6afa997484cf134b6043932595181a | 390 | exs | Elixir | test/unit/hologram/compiler/map_key_encoders/integer_type_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/map_key_encoders/integer_type_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/map_key_encoders/integer_type_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.MapKeyEncoder.IntegerTypeTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.{Context, MapKeyEncoder, Opts}
alias Hologram.Compiler.IR.IntegerType
test "encode/3" do
ir = %IntegerType{value: 123}
result = MapKeyEncoder.encode(ir, %Context{}, %Opts{})
... | 24.375 | 60 | 0.723077 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.