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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18b3943101784cd940a1755c5c754894770fbbab | 1,379 | ex | Elixir | lib/ex_component_schema/validator/dependencies.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 2 | 2022-03-18T08:52:29.000Z | 2022-03-18T08:52:33.000Z | lib/ex_component_schema/validator/dependencies.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 8 | 2021-09-15T11:52:45.000Z | 2022-01-10T13:13:53.000Z | lib/ex_component_schema/validator/dependencies.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | null | null | null | defmodule ExComponentSchema.Validator.Dependencies do
alias ExComponentSchema.Validator
alias ExComponentSchema.Validator.Error
@behaviour ExComponentSchema.Validator
@impl ExComponentSchema.Validator
def validate(root, _, {"dependencies", dependencies}, data, path) do
do_validate(root, dependencies, da... | 26.519231 | 82 | 0.674402 |
18b3949b09534aed9896f8e410110d03abf981ed | 1,751 | ex | Elixir | apps/reaper/lib/reaper/horde/supervisor.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 18 | 2020-11-13T15:38:24.000Z | 2021-05-26T00:40:08.000Z | apps/reaper/lib/reaper/horde/supervisor.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 365 | 2020-09-21T12:31:40.000Z | 2021-09-25T14:54:21.000Z | apps/reaper/lib/reaper/horde/supervisor.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 3 | 2020-10-06T16:17:49.000Z | 2021-09-03T17:11:41.000Z | defmodule Reaper.Horde.Supervisor do
@moduledoc """
Module Based Horde.Supervisor
"""
use Horde.DynamicSupervisor
require Logger
import SmartCity.Event, only: [data_extract_end: 0, file_ingest_end: 0]
@instance_name Reaper.instance_name()
def start_link(init_args \\ []) do
Horde.DynamicSupervisor... | 27.359375 | 96 | 0.704169 |
18b39c941ba70f95787e6351bd02610ac70560f9 | 1,731 | ex | Elixir | clients/service_directory/lib/google_api/service_directory/v1beta1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/service_directory/lib/google_api/service_directory/v1beta1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/service_directory/lib/google_api/service_directory/v1beta1/model/test_iam_permissions_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.829787 | 288 | 0.751589 |
18b39fe26cb7ecbf7d43e0dff12fa3a46798c54e | 905 | ex | Elixir | apps/cashtrail_web/lib/cashtrail_web/application.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 6 | 2020-05-02T01:12:24.000Z | 2020-06-23T12:31:32.000Z | apps/cashtrail_web/lib/cashtrail_web/application.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 16 | 2020-05-02T00:07:51.000Z | 2021-06-11T01:54:11.000Z | apps/cashtrail_web/lib/cashtrail_web/application.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | null | null | null | defmodule CashtrailWeb.Application do
@moduledoc false
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
use Application
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
CashtrailWeb.Telemetry,
# Start the Endpoint (htt... | 28.28125 | 70 | 0.720442 |
18b3c1aef3f9c73baee7c9b6af2cd83d46d93d03 | 456 | exs | Elixir | priv/repo/migrations/20190201214947_add_group_user_access.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | priv/repo/migrations/20190201214947_add_group_user_access.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | priv/repo/migrations/20190201214947_add_group_user_access.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Repo.Migrations.AddGroupUserAccess do
use Ecto.Migration
def up do
execute """
CREATE TYPE group_user_access AS ENUM (
'PUBLIC',
'PRIVATE'
)
"""
alter table(:group_users) do
add :access, :group_user_access, null: false, default: "PUBLIC"
end
end
def d... | 16.888889 | 69 | 0.627193 |
18b4098d50832ba95801752df83ae555f768705c | 33,434 | ex | Elixir | lib/ecto/adapters/sql.ex | kevinlang/ecto_sql | 1952ce2604419816f327833df858f0125eba5201 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | kevinlang/ecto_sql | 1952ce2604419816f327833df858f0125eba5201 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | kevinlang/ecto_sql | 1952ce2604419816f327833df858f0125eba5201 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQL do
@moduledoc """
This application provides functionality for working with
SQL databases in `Ecto`.
## Built-in adapters
By default, we support the following adapters:
* `Ecto.Adapters.Postgres` for Postgres
* `Ecto.Adapters.MyXQL` for MySQL
* `Ecto.Adapters.Tds` for... | 32.055609 | 162 | 0.626787 |
18b415e50422fb2ec837ec05dc8c038ca03b99f6 | 1,082 | ex | Elixir | lib/dup/results.ex | abhishekkr/dup | 8153b38f5f9d0f19794d9cd1202ed7a990a2089e | [
"MIT"
] | null | null | null | lib/dup/results.ex | abhishekkr/dup | 8153b38f5f9d0f19794d9cd1202ed7a990a2089e | [
"MIT"
] | null | null | null | lib/dup/results.ex | abhishekkr/dup | 8153b38f5f9d0f19794d9cd1202ed7a990a2089e | [
"MIT"
] | null | null | null | defmodule Dup.Results do
@moduledoc false
use GenServer
@me Application.get_env(:dup, :results)
## GenServer impl
def init(:no_args), do: {:ok, %{}}
def handle_cast({:add, hash, path}, results) do
results = Map.update(
results, # map to update
hash, # key
[path], # if new key
... | 21.215686 | 62 | 0.637708 |
18b440e3285115900006f93ff2600f5fcadb2659 | 171 | ex | Elixir | code-sample-elixir/dungeon_crawl/lib/dungeon_crawl/room/trigger.ex | aquatir/learntocode | 9b860a528ded64fab2686a93c49dfd4b3947d6c9 | [
"MIT"
] | null | null | null | code-sample-elixir/dungeon_crawl/lib/dungeon_crawl/room/trigger.ex | aquatir/learntocode | 9b860a528ded64fab2686a93c49dfd4b3947d6c9 | [
"MIT"
] | 1 | 2017-10-03T11:25:54.000Z | 2017-10-03T11:25:54.000Z | code-sample-elixir/dungeon_crawl/lib/dungeon_crawl/room/trigger.ex | aquatir/remember_java_api | 6acc72e23a954152d922e380d06f337f55921950 | [
"MIT"
] | null | null | null | defmodule DungeonCrawl.Room.Trigger do
alias DungeonCrawl.Character
alias DungeonCrawl.Room.Action
@callback run(Character.t, Action.t) :: {Character.t, atom}
end
| 21.375 | 61 | 0.77193 |
18b45c61b73cf191030334b7fba4d5356aebccdd | 1,439 | ex | Elixir | lib/server/router.ex | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | lib/server/router.ex | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | lib/server/router.ex | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | defmodule Scipio.Server.Router do
use Plug.Router
require Logger
plug Plug.Parsers, parsers: [:json],
pass: ["text/*"],
json_decoder: Jason
plug :match
plug :dispatch
get "/hello" do
send_resp(conn, 200, "Plug running")
end
post "/test" do
render_json... | 23.983333 | 93 | 0.612926 |
18b4625beb4e6c3f6766e7cb91595ed0d548260c | 13,086 | ex | Elixir | lib/nostrum/cache/guild_cache/ets.ex | tuchscher/nostrum | b4daaf30c0c1a4b246a3aaecfdbd96490c708484 | [
"MIT"
] | null | null | null | lib/nostrum/cache/guild_cache/ets.ex | tuchscher/nostrum | b4daaf30c0c1a4b246a3aaecfdbd96490c708484 | [
"MIT"
] | null | null | null | lib/nostrum/cache/guild_cache/ets.ex | tuchscher/nostrum | b4daaf30c0c1a4b246a3aaecfdbd96490c708484 | [
"MIT"
] | null | null | null | defmodule Nostrum.Cache.GuildCache.ETS do
@table_name :nostrum_guilds
@moduledoc """
An ETS-based cache for guilds.
The supervisor defined by this module will set up the ETS table associated
with it.
The default table name under which guilds are cached is `#{@table_name}`.
In addition to the cache behav... | 36.758427 | 97 | 0.671481 |
18b465c01a7c627647e473d230d2934d3aec03aa | 1,077 | exs | Elixir | mix.exs | tensor-programming/Elixir-Ipfs-Api | e337b2711a1a701a0c64e36d6ae76d209784e986 | [
"Apache-2.0"
] | 5 | 2017-10-11T15:24:01.000Z | 2019-04-01T21:08:26.000Z | mix.exs | tensor-programming/Elixir-Ipfs-Api | e337b2711a1a701a0c64e36d6ae76d209784e986 | [
"Apache-2.0"
] | null | null | null | mix.exs | tensor-programming/Elixir-Ipfs-Api | e337b2711a1a701a0c64e36d6ae76d209784e986 | [
"Apache-2.0"
] | 3 | 2017-10-12T23:19:56.000Z | 2019-06-06T05:07:07.000Z | defmodule IpfsElixir.Mixfile do
use Mix.Project
def project do
[
app: :ipfs_elixir,
version: "0.1.0",
elixir: "~> 1.5",
name: "IPFS Elixir",
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description(),
name: "Ipfs_Elixir_... | 22.4375 | 83 | 0.575673 |
18b467c63bd6d5acc7b936f8c9e2ce017c9f8ddc | 3,358 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/admin_quota_policy.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/admin_quota_policy.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/admin_quota_policy.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 54.16129 | 608 | 0.711733 |
18b468b307c8fa302290ab41187920f2f20dd39b | 3,101 | ex | Elixir | lib/cadet/jobs/autograder/lambda_worker.ex | jiachen247/cadet | 4219acaa9ba1d3672b2220d9d1acb2cb671443a3 | [
"MIT"
] | null | null | null | lib/cadet/jobs/autograder/lambda_worker.ex | jiachen247/cadet | 4219acaa9ba1d3672b2220d9d1acb2cb671443a3 | [
"MIT"
] | null | null | null | lib/cadet/jobs/autograder/lambda_worker.ex | jiachen247/cadet | 4219acaa9ba1d3672b2220d9d1acb2cb671443a3 | [
"MIT"
] | null | null | null | defmodule Cadet.Autograder.LambdaWorker do
@moduledoc """
This module submits the answer to the autograder and creates a job for the ResultStoreWorker to
write the received result to db.
"""
use Que.Worker, concurrency: 20
require Logger
alias Cadet.Autograder.ResultStoreWorker
alias Cadet.Assessments... | 28.712963 | 97 | 0.61851 |
18b472f2f33b2f35036a348dd78431263ae5be13 | 1,676 | ex | Elixir | clients/service_broker/lib/google_api/service_broker/v1/model/google_iam_v1__test_iam_permissions_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_broker/lib/google_api/service_broker/v1/model/google_iam_v1__test_iam_permissions_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_broker/lib/google_api/service_broker/v1/model/google_iam_v1__test_iam_permissions_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.52 | 137 | 0.759547 |
18b48fa6454a2ecac8e6a0f763e69eb80b47886d | 1,449 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/gcs_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1/model/gcs_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/redis/lib/google_api/redis/v1/model/gcs_destination.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... | 30.829787 | 154 | 0.731539 |
18b498abe04c648c9dab5a99b3e57619eb0fd358 | 3,433 | ex | Elixir | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v2/model/error_proto.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v2/model/error_proto.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube_analytics/lib/google_api/you_tube_analytics/v2/model/error_proto.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... | 52.815385 | 553 | 0.720652 |
18b4c8ff78fd37724051c99937d789548a8b2c11 | 14,327 | ex | Elixir | server/lib/fakers_api/people.ex | bart-kosmala/fakers | aff49689c2507a5f8e6e81441bd922ec8887bbc9 | [
"MIT"
] | 5 | 2020-11-15T17:46:40.000Z | 2021-06-15T16:10:57.000Z | server/lib/fakers_api/people.ex | bart-kosmala/fakers | aff49689c2507a5f8e6e81441bd922ec8887bbc9 | [
"MIT"
] | 5 | 2020-12-04T13:38:10.000Z | 2020-12-18T11:15:50.000Z | server/lib/fakers_api/people.ex | bart-kosmala/fakers | aff49689c2507a5f8e6e81441bd922ec8887bbc9 | [
"MIT"
] | 2 | 2020-12-18T11:16:18.000Z | 2021-01-19T22:03:35.000Z | defmodule FakersApi.People do
@moduledoc """
The People context.
"""
import Ecto.Query, warn: false
alias FakersApi.Repo
alias FakersApi.People.Person
alias FakersApi.People.DeceasedPerson
@doc """
Transforms an atom keyed map into a keyword list.
Used in Ecto query filtering.
## Examples
... | 20.945906 | 89 | 0.638375 |
18b4c98fd5991701d07ee28682843119dacdfbf6 | 911 | ex | Elixir | lib/absinthe/execution/field.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/execution/field.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/execution/field.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Execution.Field do
@moduledoc """
Information passed to aid resolution functions, describing the current field's
execution environment.
"""
@typedoc """
## Options
- `:adapter` - The execution adapter.
- `:ast_node` - The current AST node.
- `:context` - The context passed to `Ab... | 36.44 | 160 | 0.69045 |
18b4ce58d3aa39b82663efcd402b52887a16bd59 | 224 | ex | Elixir | lib/hl7/2.4/datatypes/pln.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/pln.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/pln.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.DataTypes.Pln do
@moduledoc false
use HL7.DataType,
fields: [
id_number_st: nil,
type_of_id_number_is: nil,
stateother_qualifying_info: nil,
expiration_date: nil
]
end
| 18.666667 | 38 | 0.678571 |
18b4e84309a568dd8e1c0bf59bb45be3756e3caa | 1,644 | ex | Elixir | lib/xdr/ledger/signer.ex | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/ledger/signer.ex | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/ledger/signer.ex | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Ledger.Signer do
@moduledoc """
Representation of Stellar Ledger `Signer` type.
"""
alias StellarBase.XDR.{AccountID, SignerKey}
@behaviour XDR.Declaration
@struct_spec XDR.Struct.new(account_id: AccountID, signer_key: SignerKey)
@type t :: %__MODULE__{account_id: AccountID.t(... | 29.357143 | 97 | 0.692214 |
18b52695ade711af551cd4a572d19950dc70803b | 51,507 | ex | Elixir | lib/phoenix/controller.ex | ream88/phoenix | e9e2ec62c78031e746ff4ca6df586661ab6871ef | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | ream88/phoenix | e9e2ec62c78031e746ff4ca6df586661ab6871ef | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | ream88/phoenix | e9e2ec62c78031e746ff4ca6df586661ab6871ef | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller do
import Plug.Conn
alias Plug.Conn.AlreadySentError
require Logger
require Phoenix.Endpoint
@unsent [:unset, :set]
@moduledoc """
Controllers are used to group common functionality in the same
(pluggable) module.
For example, the route:
get "/users/:id", MyAppW... | 31.912639 | 137 | 0.675132 |
18b54fb91b36bc9547006fd633229e10cd7c89d3 | 1,439 | ex | Elixir | clients/translate/lib/google_api/translate/v3/model/gcs_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/translate/lib/google_api/translate/v3/model/gcs_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/translate/lib/google_api/translate/v3/model/gcs_source.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... | 30.617021 | 125 | 0.731063 |
18b5512ed0577c2360aa5928806d399b345a98c6 | 1,222 | exs | Elixir | mix.exs | TORIFUKUKaiou/azure_text_to_speech | 3305c6a35f8df6b3788a435a3effc64d022de1cd | [
"MIT"
] | 1 | 2021-05-02T21:33:04.000Z | 2021-05-02T21:33:04.000Z | mix.exs | TORIFUKUKaiou/azure_text_to_speech | 3305c6a35f8df6b3788a435a3effc64d022de1cd | [
"MIT"
] | 1 | 2021-03-31T14:07:49.000Z | 2021-04-04T07:58:59.000Z | mix.exs | TORIFUKUKaiou/azure_text_to_speech | 3305c6a35f8df6b3788a435a3effc64d022de1cd | [
"MIT"
] | null | null | null | defmodule AzureTextToSpeech.MixProject do
use Mix.Project
@source_url "https://github.com/TORIFUKUKaiou/azure_text_to_speech"
@version "0.1.0"
def project do
[
app: :azure_text_to_speech,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),... | 21.438596 | 80 | 0.559738 |
18b5797c9f699647c32ddf1b61521a55b69bc324 | 257 | ex | Elixir | lib/pile/extras/map_x.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | lib/pile/extras/map_x.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | lib/pile/extras/map_x.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule MapX do
def just?(map, key) do
Map.fetch!(map, key) != :nothing
end
def just!(map, key) do
if just?(map, key) do
Map.fetch!(map, key)
else
raise("#{inspect map} has a blank key: #{inspect key}")
end
end
end
| 17.133333 | 61 | 0.571984 |
18b5797d276b0774653720e229494f59898d3078 | 809 | ex | Elixir | lib/craisin.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | lib/craisin.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | lib/craisin.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Craisin do
use HTTPoison.Base
require Logger
defp process_url(url) do
"https://api.createsend.com/api/v3.1/#{url}.json"
end
defp process_request_headers(headers) do
auth = Application.get_env(:changelog, :cm_api_token)
Enum.into(headers, [{"Authorization", "Basic #{auth}"}])
end
... | 22.472222 | 80 | 0.657602 |
18b57af426675aaf93b2ca211608be0e834edbb2 | 1,107 | exs | Elixir | test/wallaby/phantom/log_store_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | test/wallaby/phantom/log_store_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | test/wallaby/phantom/log_store_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | defmodule Wallaby.Driver.LogStoreTest do
use ExUnit.Case, async: true
alias Wallaby.Driver.LogStore
@l1 %{"level" => "INFO", "message" => "l1 (:)", "timestamp" => 1470795015152}
@l2 %{"level" => "INFO", "message" => "l2 (:)", "timestamp" => 1470795015290}
@l3 %{"level" => "WARNING", "message" => "l3 (:)", "... | 36.9 | 90 | 0.627823 |
18b5845b21e530a7e4d05e41769f24a7de0f40ce | 857 | ex | Elixir | apps/tai/lib/tai/venue_adapters/okex.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/venue_adapters/okex.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/venue_adapters/okex.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenueAdapters.OkEx do
alias Tai.VenueAdapters.OkEx.{
StreamSupervisor,
Products,
Accounts,
Positions,
MakerTakerFees,
CreateOrder,
CancelOrder
}
@behaviour Tai.Venues.Adapter
def stream_supervisor, do: StreamSupervisor
defdelegate products(venue_id), to: Products
... | 35.708333 | 88 | 0.778296 |
18b58f49cca96323da976dcfea0dbd4f58e62503 | 1,481 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_update_labels_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/accounts_update_labels_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/accounts_update_labels_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... | 31.510638 | 161 | 0.744092 |
18b59e49fb4d6427c038e0b774f94a6a0b82ff09 | 2,143 | exs | Elixir | examples/vision/mnist.exs | kianmeng/axon | 15e2ce547e98e20946f0b0091440baf3e5e0f2d6 | [
"Apache-2.0"
] | 922 | 2021-04-08T11:48:26.000Z | 2022-03-30T05:17:52.000Z | examples/vision/mnist.exs | kianmeng/axon | 15e2ce547e98e20946f0b0091440baf3e5e0f2d6 | [
"Apache-2.0"
] | 112 | 2021-04-08T20:27:37.000Z | 2022-03-31T21:22:09.000Z | examples/vision/mnist.exs | kianmeng/axon | 15e2ce547e98e20946f0b0091440baf3e5e0f2d6 | [
"Apache-2.0"
] | 56 | 2021-04-08T12:54:16.000Z | 2022-03-29T01:36:18.000Z | Mix.install([
{:axon, "~> 0.1.0-dev", github: "elixir-nx/axon"},
{:exla, "~> 0.1.0-dev", github: "elixir-nx/nx", sparse: "exla"},
{:nx, "~> 0.1.0-dev", github: "elixir-nx/nx", sparse: "nx", override: true},
{:scidata, "~> 0.1.3"}
])
# Configure default platform with accelerator precedence as tpu > cuda > rocm ... | 26.45679 | 92 | 0.64909 |
18b5b3d4babe7616b3cefb70e66708d012fa34a2 | 8,418 | ex | Elixir | lib/erlef/accounts/member.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef/accounts/member.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef/accounts/member.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Accounts.Member do
@moduledoc """
Erlef.Accounts.Member provides functions and a struct for fetching and updating erlef members.
It serves as boundary between the erlef app and the wildapricot client, api, and its data structures.
Data retreived from the erlef wildapricot database is flattened ... | 29.027586 | 109 | 0.629247 |
18b5d8c520096a2967ea7d9d6890112cebf75cdc | 262 | ex | Elixir | lib/pfkit/character_creation/skill_feat.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit/character_creation/skill_feat.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit/character_creation/skill_feat.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | defmodule Pfkit.CharacterCreation.SkillFeat do
use Pfkit.Schema
alias Pfkit.CharacterCreation
schema "skill_feats" do
field :name, :string
embeds_one :feat, CharacterCreation.Feat
belongs_to :background, CharacterCreation.Background
end
end
| 23.818182 | 56 | 0.782443 |
18b5ea34646917ad8945ba3ab2f145564ce3f328 | 2,919 | ex | Elixir | apps/merkle_patricia_tree/lib/merkle_patricia_tree/db.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/merkle_patricia_tree/lib/merkle_patricia_tree/db.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/merkle_patricia_tree/lib/merkle_patricia_tree/db.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule MerklePatriciaTree.DB do
@moduledoc """
Defines a general key-value storage to back and persist
out Merkle Patricia Trie. This is generally LevelDB or RocksDB in the
community, but for testing, we'll generally use `:ets`.
We define a callback that can be implemented by a number
of potential backe... | 29.19 | 83 | 0.642343 |
18b5fa7b65aa12cfb71de64ea14bb3e30f9ae404 | 421 | ex | Elixir | lib/metrics/application.ex | miguelcoba/metrics | 0e008f550ca0c346b14d59b65b0d2223dcca5a8c | [
"MIT"
] | 1 | 2022-02-24T14:06:38.000Z | 2022-02-24T14:06:38.000Z | lib/metrics/application.ex | miguelcoba/metrics | 0e008f550ca0c346b14d59b65b0d2223dcca5a8c | [
"MIT"
] | null | null | null | lib/metrics/application.ex | miguelcoba/metrics | 0e008f550ca0c346b14d59b65b0d2223dcca5a8c | [
"MIT"
] | null | null | null | defmodule Metrics.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
{Metrics.Telemetry.ReporterState, {0, 0}},
Metrics.Telemetry
]
opts = [s... | 22.157895 | 61 | 0.700713 |
18b60ccfbbd64223e7552412f6ebdab4b074d739 | 425 | exs | Elixir | wiki/test/models/page_test.exs | cmg-dev/1612_elixir_workshop | 67d811ce2ed48e83f76175b4cfff87d53773415d | [
"MIT"
] | null | null | null | wiki/test/models/page_test.exs | cmg-dev/1612_elixir_workshop | 67d811ce2ed48e83f76175b4cfff87d53773415d | [
"MIT"
] | null | null | null | wiki/test/models/page_test.exs | cmg-dev/1612_elixir_workshop | 67d811ce2ed48e83f76175b4cfff87d53773415d | [
"MIT"
] | null | null | null | defmodule Wiki.PageTest do
use Wiki.ModelCase
alias Wiki.Page
@valid_attrs %{body: "some content", title: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Page.changeset(%Page{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attr... | 22.368421 | 61 | 0.710588 |
18b628aeecf0e03f6df9569daae706da0ce8ff2e | 952 | exs | Elixir | config/config.exs | p-jaya/elixir-docker | 08c2b401888e6154abb8a96afc02f8ae25ddb24d | [
"MIT"
] | null | null | null | config/config.exs | p-jaya/elixir-docker | 08c2b401888e6154abb8a96afc02f8ae25ddb24d | [
"MIT"
] | null | null | null | config/config.exs | p-jaya/elixir-docker | 08c2b401888e6154abb8a96afc02f8ae25ddb24d | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :myapp, MyappWe... | 34 | 86 | 0.769958 |
18b62cfbabd18f7bb581bb2259afc055c0aebed9 | 603 | exs | Elixir | maps/book_room.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | maps/book_room.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | maps/book_room.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | defmodule HotelRoom do
def book(%{ name: name, height: height })
when height > 1.9 do
IO.puts "Need extra long bed for #{name}"
end
def book(%{ name: name, height: height })
when height < 1.3 do
IO.puts "Need low show controls for #{name}"
end
def book(person) do
IO.puts "Need regular bed f... | 20.793103 | 49 | 0.583748 |
18b64934804a5ada7760564475436676641f3da0 | 209 | exs | Elixir | apps/core/priv/prm_repo/migrations/20170510164543_add_legal_entity_created_by_mis_client_id.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20170510164543_add_legal_entity_created_by_mis_client_id.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20170510164543_add_legal_entity_created_by_mis_client_id.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.AddLegalEntityCreatedViaMisClientId do
use Ecto.Migration
def change do
alter table(:legal_entities) do
add(:created_by_mis_client_id, :uuid)
end
end
end
| 20.9 | 72 | 0.76555 |
18b64ebbe2a2f8df84d91f4c767f5d07450d9f24 | 550 | exs | Elixir | priv/repo/migrations/20201222181739_user_conversation.exs | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201222181739_user_conversation.exs | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201222181739_user_conversation.exs | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | defmodule Chat.Repo.Migrations.UserConversation do
use Ecto.Migration
def change do
create table(:user_conversations, primary_key: false) do
add :from_id, references(:users, type: :string, null: false, column: :username, on_delete: :delete_all), primary_key: true
add :to_id, references(:users, type... | 36.666667 | 128 | 0.714545 |
18b6620a2e6186adafe917d425d514a112270b5c | 1,492 | ex | Elixir | lib/ambry/media/player_state.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry/media/player_state.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry/media/player_state.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Media.PlayerState do
@moduledoc """
A user's progress and settings for a specific media.
"""
use Ecto.Schema
import Ecto.Changeset
alias Ambry.Accounts.User
alias Ambry.Media.Media
schema "player_states" do
belongs_to :media, Media
belongs_to :user, User
field :playback_r... | 25.724138 | 74 | 0.63941 |
18b675555e7632230e4254a85a4d50b801529438 | 2,977 | ex | Elixir | clients/discovery/lib/google_api/discovery/v1/model/directory_list_items.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/model/directory_list_items.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/model/directory_list_items.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.753086 | 108 | 0.687269 |
18b6a81fd62f44afe8b55d5b1d0d5868c9178695 | 1,196 | ex | Elixir | lib/rethink_docs/posts_changefeed.ex | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | lib/rethink_docs/posts_changefeed.ex | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | lib/rethink_docs/posts_changefeed.ex | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | defmodule RethinkDocs.PostsChangefeed do
use RethinkDB.Changefeed
require Logger
import RethinkDB.Lambda
import RethinkDB.Query
def start_link(opts, gen_server_opts \\ []) do
RethinkDB.Changefeed.start_link(__MODULE__, opts, gen_server_opts)
end
def init(db) do
query = table("posts") |> change... | 24.408163 | 90 | 0.629599 |
18b6b7eedf0b75514b5b76c0dfd15f5013e93964 | 1,409 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/related_entity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/related_entity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/related_entity.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... | 29.978723 | 83 | 0.733144 |
18b6bfd6b95c2fec5094871b034a5a9d4b12a232 | 712 | ex | Elixir | auto_hangman/lib/auto_hangman/prompter.ex | Greenheart/elixir-hangman | 1f4f652e212be318de97660ea405b7588c899be8 | [
"MIT"
] | null | null | null | auto_hangman/lib/auto_hangman/prompter.ex | Greenheart/elixir-hangman | 1f4f652e212be318de97660ea405b7588c899be8 | [
"MIT"
] | null | null | null | auto_hangman/lib/auto_hangman/prompter.ex | Greenheart/elixir-hangman | 1f4f652e212be318de97660ea405b7588c899be8 | [
"MIT"
] | null | null | null | defmodule AutoHangman.Prompter do
alias AutoHangman.{State, Guesser}
def random_move(game = %State{}) do
guess = Guesser.get_random_letter(game)
IO.puts("AutoHangman guess: " <> guess)
check_input(guess, game)
end
defp check_input({:error, reason}, _) do
IO.puts("Game ended: #{reason}")
ex... | 21.575758 | 57 | 0.619382 |
18b6c5804aeb6e93a7596178e101595f8c423187 | 2,419 | ex | Elixir | web/controllers/video_controller.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | web/controllers/video_controller.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | web/controllers/video_controller.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Rumbl.VideoController do
use Rumbl.Web, :controller
alias Rumbl.Video
alias Rumbl.Category
plug :scrub_params, "video" when action in [:create, :update]
plug :load_categories when action in [:new, :create, :edit, :update]
defp load_categories(conn, _) do
query =
Category
|> Ca... | 25.463158 | 70 | 0.625878 |
18b6cfb689c87df9b0dec1206082be04b6f0d5d7 | 579 | ex | Elixir | lib/the_dragon_of_the_rest/router.ex | Alondono97/thedragonofthe.rest | f6e3123d1abe6cab76f05bdac615305d75bba167 | [
"MIT"
] | 2 | 2020-10-26T04:31:34.000Z | 2020-10-29T12:02:07.000Z | lib/the_dragon_of_the_rest/router.ex | Alondono97/thedragonofthe.rest | f6e3123d1abe6cab76f05bdac615305d75bba167 | [
"MIT"
] | 1 | 2022-01-19T02:50:59.000Z | 2022-01-19T02:50:59.000Z | lib/the_dragon_of_the_rest/router.ex | Alondono97/thedragonofthe.rest | f6e3123d1abe6cab76f05bdac615305d75bba167 | [
"MIT"
] | 1 | 2020-10-27T14:27:43.000Z | 2020-10-27T14:27:43.000Z | defmodule TheDragonOfTheRest.Router do
use Plug.Router
plug(:match)
plug(:dispatch)
# Request will only match if it's a GET method and the route is /
get "/" do
conn
|> put_resp_content_type("application/json")
|> send_resp(200, Poison.encode!(message()))
end
defp message do
%{
... | 18.09375 | 68 | 0.626943 |
18b6eb36cc54d382cf2a799ef84c417294135c4b | 600 | ex | Elixir | lib/appstore/search.ex | icaroponce/appstore | 9829b254374f99be16edd8640d520cc8dff9669f | [
"MIT"
] | null | null | null | lib/appstore/search.ex | icaroponce/appstore | 9829b254374f99be16edd8640d520cc8dff9669f | [
"MIT"
] | null | null | null | lib/appstore/search.ex | icaroponce/appstore | 9829b254374f99be16edd8640d520cc8dff9669f | [
"MIT"
] | null | null | null | defmodule AppStore.Search do
import AppStore.Common
@base_url "https://itunes.apple.com/search"
def by_keyword(term, device \\ "software", num \\ 50, country \\ 'us') do
if !term do
raise "A term must be provided"
end
url = "#{@base_url}?media=software&entity=#{device}&term=#{term}&limit=#{nu... | 28.571429 | 101 | 0.613333 |
18b7371972e2bc31507edb78ec6ad3b86ffd76ed | 1,477 | ex | Elixir | lib/chirper_web/views/error_helpers.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 2 | 2019-10-10T11:57:29.000Z | 2019-12-17T18:04:10.000Z | lib/chirper_web/views/error_helpers.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 86 | 2019-04-27T16:18:58.000Z | 2021-05-28T23:13:36.000Z | lib/chirper_web/views/error_helpers.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 1 | 2020-07-16T04:52:47.000Z | 2020-07-16T04:52:47.000Z | defmodule ChirperWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(... | 32.822222 | 76 | 0.670278 |
18b74515c9fd4b081f5a760f53b04aca0b075241 | 1,313 | exs | Elixir | apps/firestorm_notifier/config/config.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_notifier/config/config.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_notifier/config/config.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :firestorm_notifier, FirestormNotifier.Mailer,
adapter: Bamboo.SendGridAdapter,
api_key: System.get_env("SENDGRID_API_KEY")
config :firestorm_notifier, ecto_repos: []
# ... | 35.486486 | 73 | 0.766184 |
18b74805a146883d23362ed50958d7860361a310 | 2,837 | ex | Elixir | clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/template.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 50.660714 | 318 | 0.745153 |
18b7597b0b8d431721e166aa0e25b7b0b4ff2b3b | 3,516 | ex | Elixir | lib/codes/codes_r68.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r68.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r68.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_R68 do
alias IcdCode.ICDCode
def _R680 do
%ICDCode{full_code: "R680",
category_code: "R68",
short_code: "0",
full_name: "Hypothermia, not associated with low environmental temperature",
short_name: "Hypothermia, not associated with low envir... | 30.573913 | 89 | 0.588453 |
18b762de65153cb2776f85d093d0a07cd14e3963 | 172,003 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/notebooks/lib/google_api/notebooks/v1/api/projects.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.900715 | 802 | 0.605362 |
18b767844bace56df3d661b116daa3af9b5ab009 | 2,763 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_text_change.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_text_change.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_text_change.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.915493 | 380 | 0.741585 |
18b790827c8920fbc0ec7c27488c4b8c7b099bb0 | 52 | ex | Elixir | deps/ex_spec/lib/ex_spec/context.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 91 | 2015-01-16T22:54:20.000Z | 2022-02-19T00:57:01.000Z | deps/ex_spec/lib/ex_spec/context.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 5 | 2015-03-08T14:05:38.000Z | 2020-08-12T14:45:19.000Z | deps/ex_spec/lib/ex_spec/context.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 9 | 2015-03-08T06:49:26.000Z | 2016-10-17T18:16:04.000Z | defmodule ExSpec.Context do
defstruct [:name]
end
| 13 | 27 | 0.769231 |
18b797fddad53b92bfbadc20d3d7de8f5e8242dc | 1,945 | exs | Elixir | mix.exs | hamilton-pay/phoenix-boilerplate | 1b479e4b19bc62b774f58d383b5038f12e508fdf | [
"MIT"
] | 11 | 2021-04-20T12:42:29.000Z | 2022-03-25T16:38:54.000Z | mix.exs | hamilton-pay/phoenix-boilerplate | 1b479e4b19bc62b774f58d383b5038f12e508fdf | [
"MIT"
] | null | null | null | mix.exs | hamilton-pay/phoenix-boilerplate | 1b479e4b19bc62b774f58d383b5038f12e508fdf | [
"MIT"
] | 4 | 2021-04-17T19:47:41.000Z | 2021-08-01T00:50:15.000Z | defmodule PhoenixBoilerplate.MixProject do
use Mix.Project
def project do
[
app: :phoenix_boilerplate,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
... | 28.602941 | 84 | 0.582005 |
18b79bf0b3f8934b976dc3577fd18bafe03c5781 | 2,060 | exs | Elixir | test/vintage_net_mobile/modem/telit_le910_test.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 2 | 2020-02-11T15:15:25.000Z | 2020-02-11T15:15:27.000Z | test/vintage_net_mobile/modem/telit_le910_test.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 8 | 2020-01-28T21:02:56.000Z | 2020-02-24T16:13:38.000Z | test/vintage_net_mobile/modem/telit_le910_test.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 1 | 2020-02-08T20:46:27.000Z | 2020-02-08T20:46:27.000Z | defmodule VintageNetMobile.Modem.TelitLE910Test do
use ExUnit.Case, async: true
alias VintageNetMobile.Modem.TelitLE910
alias VintageNet.Interface.RawConfig
test "generates LTE configuration" do
priv_dir = Application.app_dir(:vintage_net_mobile, "priv")
input = %{
type: VintageNetMobile,
... | 27.105263 | 95 | 0.52233 |
18b7bbbf2d010bf7551b7847a49899589d67e8d6 | 1,468 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.952381 | 282 | 0.759537 |
18b7ccf49d820208ce044aa696aac05c22eb277c | 59 | ex | Elixir | test/support/mocks.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | 1 | 2019-04-16T22:13:23.000Z | 2019-04-16T22:13:23.000Z | test/support/mocks.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | test/support/mocks.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | Mox.defmock(Spike.CurrentTimeMock, for: Spike.CurrentTime)
| 29.5 | 58 | 0.830508 |
18b7d00b94bc5aee0674218b5003b665b3495290 | 433 | exs | Elixir | test/asteroid_web/views/error_view_test.exs | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 36 | 2019-07-23T20:01:05.000Z | 2021-08-05T00:52:34.000Z | test/asteroid_web/views/error_view_test.exs | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 19 | 2019-08-23T19:04:50.000Z | 2021-05-07T22:12:25.000Z | test/asteroid_web/views/error_view_test.exs | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 3 | 2019-09-06T10:47:20.000Z | 2020-09-09T03:43:31.000Z | defmodule AsteroidWeb.ErrorViewTest do
use AsteroidWeb.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(AsteroidWeb.ErrorView, "404.html", []) == "Not Found"
# end
# test "renders 500.htm... | 28.866667 | 94 | 0.715935 |
18b801ab881932384db8362c862bec48b25f4785 | 2,217 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_clusters_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_clusters_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_clusters_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... | 41.830189 | 342 | 0.737483 |
18b84824c68f32d30156118b35d45365490abf17 | 176 | ex | Elixir | lib/randomuser_ex/login.ex | dreamingechoes/randomuser_ex | cfc72e015d2b110d2a4589bf6abb90793905c98c | [
"MIT"
] | 4 | 2017-08-16T18:14:29.000Z | 2020-01-14T03:19:54.000Z | lib/randomuser_ex/login.ex | dreamingechoes/randomuser_ex | cfc72e015d2b110d2a4589bf6abb90793905c98c | [
"MIT"
] | null | null | null | lib/randomuser_ex/login.ex | dreamingechoes/randomuser_ex | cfc72e015d2b110d2a4589bf6abb90793905c98c | [
"MIT"
] | null | null | null | defmodule RandomuserEx.Login do
@moduledoc false
@derive [Poison.Encoder]
@type t :: %__MODULE__{}
defstruct [:md5, :password, :salt, :sha1, :sha256, :username]
end
| 17.6 | 63 | 0.6875 |
18b86623b7232020df0bdc281b4e3e5381426ede | 1,943 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_return.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_return.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_return.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.932203 | 122 | 0.683994 |
18b8ff15cd678f11683a6f2fb9b42bb0489a4e5b | 5,237 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_worker_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_worker_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_worker_config.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... | 55.126316 | 400 | 0.732099 |
18b9156e43e8cda2e1e710ab15c7ef83932e63ed | 31,305 | exs | Elixir | test/surface/compiler/parser_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | test/surface/compiler/parser_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | test/surface/compiler/parser_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.ParserTest do
use ExUnit.Case, async: true
import Surface.Compiler.Parser
alias Surface.Compiler.ParseError
test "empty node" do
assert parse!("") == []
end
test "only text" do
assert parse!("Some text") == ["Some text"]
end
test "keep spaces before node" do
as... | 27.975871 | 130 | 0.467593 |
18b9196543ce51e5d1e8d6169e879624dabba149 | 10,207 | exs | Elixir | exercism/elixir/forth/test/forth_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/forth/test/forth_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/forth/test/forth_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule ForthTest do
use ExUnit.Case
describe "parsing and numbers" do
test "no input, no stack" do
s = Forth.new() |> Forth.format_stack()
assert s == ""
end
test "pushes negative numbers onto the stack" do
s =
Forth.new()
|> Forth.eval("-1 -2 -3 -4 -5")
|>... | 22.18913 | 81 | 0.52366 |
18b9330daf61bab2cde8f1c7f91205937b69ca8e | 979 | exs | Elixir | config/prod.exs | DevL/laos | dd766bef4c1056c17f913fea4fbeb9f56acd0530 | [
"MIT"
] | null | null | null | config/prod.exs | DevL/laos | dd766bef4c1056c17f913fea4fbeb9f56acd0530 | [
"MIT"
] | null | null | null | config/prod.exs | DevL/laos | dd766bef4c1056c17f913fea4fbeb9f56acd0530 | [
"MIT"
] | null | null | null | use Mix.Config
config :yearly, Yearly.Endpoint,
url: [host: "example.com"],
http: [port: System.get_env("PORT")],
secret_key_base: "pMwbUPtxE4eMIwEXxJdNsKXoNsLFD8N1A5FIkZWtOW5mabaGCdK1vg0U2uOqpnsP"
# ## SSL Support
#
# To get SSL working, you will need to add the `https` key
# to the previous section:
#
# conf... | 25.763158 | 85 | 0.706844 |
18b93df40329d1cb7ef9779e54b5075355cb30b6 | 51,140 | ex | Elixir | clients/tpu/lib/google_api/tpu/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tpu/lib/google_api/tpu/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tpu/lib/google_api/tpu/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.741907 | 196 | 0.609503 |
18b94eabd4e923bbbdda7c59dbf330bcf007b240 | 465 | ex | Elixir | clients/keto/elixir/lib/keto/model/inline_response_200.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/keto/elixir/lib/keto/model/inline_response_200.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/keto/elixir/lib/keto/model/inline_response_200.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Keto.Model.InlineResponse200 do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"status"
]
@type t :: %__MODULE__{
:... | 17.884615 | 91 | 0.683871 |
18b95c89d547e280f6afd1c9904188e9dfaa3019 | 1,329 | exs | Elixir | api/config/config.exs | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | 1 | 2021-10-04T23:26:37.000Z | 2021-10-04T23:26:37.000Z | api/config/config.exs | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | 5 | 2021-10-04T23:09:14.000Z | 2022-02-25T09:35:25.000Z | api/config/config.exs | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :api,
ecto_repos: [Api.Repo]
# Configures t... | 30.906977 | 76 | 0.755455 |
18b96bf267dddcec842b826d610ddd47d57c0c6a | 1,512 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_set_default_processor_version_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_set_default_processor_version_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_set_default_processor_version_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... | 30.857143 | 110 | 0.780423 |
18b973fcea740916912c7ab260f291425ceae02c | 511 | exs | Elixir | exercises/modules_and_functions_6.exs | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | 8 | 2018-08-26T08:10:08.000Z | 2021-04-05T16:05:05.000Z | exercises/modules_and_functions_6.exs | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | null | null | null | exercises/modules_and_functions_6.exs | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | 1 | 2019-10-08T09:56:43.000Z | 2019-10-08T09:56:43.000Z | defmodule Chop do
def guess(actual, range) do
try(actual, halfway(range), range)
end
defp halfway(first..last), do: div(last - first, 2) + first
defp try(actual, actual, _), do: IO.puts actual
defp try(actual, guessed, first.._) when guessed > actual do
IO.puts("It is #{guessed}")
guess(actual,... | 23.227273 | 62 | 0.655577 |
18b9873a2f87ceb59c32c1cca447b30a26721310 | 11,775 | exs | Elixir | test/protobuf_test.exs | ananthakumaran/exprotobuf | 376bafc6657137170f198efdc00fc856339a0efa | [
"Apache-2.0"
] | null | null | null | test/protobuf_test.exs | ananthakumaran/exprotobuf | 376bafc6657137170f198efdc00fc856339a0efa | [
"Apache-2.0"
] | null | null | null | test/protobuf_test.exs | ananthakumaran/exprotobuf | 376bafc6657137170f198efdc00fc856339a0efa | [
"Apache-2.0"
] | null | null | null | defmodule ProtobufTest do
use Protobuf.Case
test "can roundtrip encoding/decoding optional values in proto2" do
defmodule RoundtripProto2 do
use Protobuf, """
message Msg {
optional string f1 = 1;
optional string f2 = 2 [default = "test"];
optional uint32 f3 = 3;
one... | 27.447552 | 140 | 0.612994 |
18b9a511fc8f26a12a812c4c5993b3dd5519267e | 1,182 | ex | Elixir | redis_proxy/lib/redis_proxy_web/channels/user_socket.ex | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | null | null | null | redis_proxy/lib/redis_proxy_web/channels/user_socket.ex | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | 1 | 2018-09-17T19:08:00.000Z | 2018-09-19T18:20:04.000Z | redis_proxy/lib/redis_proxy_web/channels/user_socket.ex | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | null | null | null | defmodule RedisProxyWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", RedisProxyWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify... | 31.105263 | 85 | 0.705584 |
18b9ffa8bdf442d3780e2ca93b425365264881b0 | 57,722 | ex | Elixir | lib/ash/filter/filter.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | defmodule Ash.Filter do
@dialyzer {:nowarn_function, do_map: 2, map: 2}
alias Ash.Actions.SideLoad
alias Ash.Engine.Request
alias Ash.Error.Query.{
AggregatesNotSupported,
InvalidFilterValue,
NoSuchAttributeOrRelationship,
NoSuchFilterPredicate,
NoSuchFunction,
NoSuchOperator,
ReadA... | 30.556908 | 134 | 0.619435 |
18ba128ac6f8f8af0bbc5c3cc175a30f40d2455d | 903 | ex | Elixir | test/support/conn_case.ex | SimplySerenity/Selenia-Server | 6cadbce349544f4f26435086ab108dcc604d627b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | SimplySerenity/Selenia-Server | 6cadbce349544f4f26435086ab108dcc604d627b | [
"MIT"
] | 2 | 2019-04-14T22:49:31.000Z | 2019-04-18T05:02:37.000Z | test/support/conn_case.ex | SimplySerenity/Selenia-Server | 6cadbce349544f4f26435086ab108dcc604d627b | [
"MIT"
] | null | null | null | defmodule SeleniaServerWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally,... | 27.363636 | 59 | 0.734219 |
18ba265fa878b6e28d28a751f5d86ff51aed1dfa | 798 | ex | Elixir | harbor/lib/ports/rumble/message/move_group.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/lib/ports/rumble/message/move_group.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/lib/ports/rumble/message/move_group.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | defmodule Ports.Rumble.Message.MoveGroup do
use Pier.Message.Cast
@primary_key false
embedded_schema do
field(:id, :integer)
field(:x, :integer)
field(:y, :integer)
field(:endMove, :boolean)
end
def changeset(initializer \\ %__MODULE__{}, data) do
initializer
|> cast(data, [:id, :x, ... | 22.8 | 72 | 0.60401 |
18ba66dd264d54ad7465e39f3c191d1a085da339 | 998 | exs | Elixir | apps/engine/mix.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 4 | 2019-03-13T16:38:32.000Z | 2020-01-11T20:05:25.000Z | apps/engine/mix.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T17:41:55.000Z | 2019-03-14T17:41:55.000Z | apps/engine/mix.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T14:53:29.000Z | 2019-03-14T14:53:29.000Z | defmodule Engine.MixProject do
use Mix.Project
def project do
[
app: :engine,
version: "0.1.0",
build_path: "../../_build",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps:... | 21.695652 | 79 | 0.53006 |
18bac67624205ce4ba5785b4779a2e06f87f21ed | 13 | ex | Elixir | testData/org/elixir_lang/parser_definition/atom_dot_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/atom_dot_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/atom_dot_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | :atom.~c{two} | 13 | 13 | 0.615385 |
18baff35d0dfcb84c6019995db2b3d22ee71e0ba | 118 | exs | Elixir | test/exattack_test.exs | imkmf/exattack | dc7b0fa047ef586be4f1ac29950a19213f75f90f | [
"Apache-2.0"
] | 3 | 2016-10-02T17:15:47.000Z | 2018-04-19T09:28:51.000Z | test/exattack_test.exs | imkmf/exattack | dc7b0fa047ef586be4f1ac29950a19213f75f90f | [
"Apache-2.0"
] | 1 | 2016-10-29T23:06:07.000Z | 2017-05-10T23:38:13.000Z | test/exattack_test.exs | imkmf/exattack | dc7b0fa047ef586be4f1ac29950a19213f75f90f | [
"Apache-2.0"
] | null | null | null | defmodule ExAttackTest do
use ExUnit.Case
doctest ExAttack
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.111111 | 25 | 0.677966 |
18bb1f1d47953c866e78af1e9758d08639262405 | 1,219 | exs | Elixir | excollections/mix.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | excollections/mix.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | excollections/mix.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | defmodule ExCollections.Mixfile do
use Mix.Project
def project do
[app: :excollections,
version: "0.0.2",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
package: package,
description: description]
end
# Configuration fo... | 24.38 | 100 | 0.630025 |
18bb34a412ba4d644fa85dd9075e24c03e30f8bf | 316 | exs | Elixir | priv/repo/migrations/20200622112041_switch_account_user.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | priv/repo/migrations/20200622112041_switch_account_user.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | priv/repo/migrations/20200622112041_switch_account_user.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule Sealax.Repo.Migrations.SwitchAccountUser do
use Ecto.Migration
def change do
alter table(:user) do
add :account_id, references(:account)
add :appkey, :text
end
alter table(:account) do
add :name, :text
remove :user_id
remove :appkey
end
end
end
| 18.588235 | 53 | 0.636076 |
18bb38b52db630b48d0f80d37e98058204c27671 | 2,071 | ex | Elixir | lib/parent/registry.ex | QuinnWilton/parent | 7c4c983a38c25a409e8fb61c57daf8a8c083a275 | [
"MIT"
] | null | null | null | lib/parent/registry.ex | QuinnWilton/parent | 7c4c983a38c25a409e8fb61c57daf8a8c083a275 | [
"MIT"
] | null | null | null | lib/parent/registry.ex | QuinnWilton/parent | 7c4c983a38c25a409e8fb61c57daf8a8c083a275 | [
"MIT"
] | null | null | null | defmodule Parent.Registry do
@moduledoc false
use Parent.PublicTypes
@opaque t :: %{id_to_pid: %{id => pid}, processes: entries}
@type entries :: %{pid => %{id: id, data: data}}
@type data :: map
@spec new() :: t
def new(), do: %{id_to_pid: %{}, processes: %{}}
@spec entries(t) :: entries
def entri... | 32.873016 | 86 | 0.605505 |
18bb483a0f6e73ff40f1354a7c7e32f2b25a31c4 | 2,656 | exs | Elixir | test/configs/issue_122.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 410 | 2015-01-10T13:33:00.000Z | 2022-01-31T20:12:15.000Z | test/configs/issue_122.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 140 | 2015-02-05T16:29:32.000Z | 2020-10-22T10:52:33.000Z | test/configs/issue_122.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 65 | 2015-02-13T21:02:29.000Z | 2021-06-23T05:49:09.000Z | use Mix.Config
config :tiser,
ecto_repos: [Tiser.Repo]
config :tiser, Tiser.Web.Endpoint,
url: [host: "localhost"],
secret_key_base: "oIXBLJF+Ar+bjNUyPOxij3oCmH5F89Y2Y+fIozRckOLabpzoYYou1GsdFAOmNcHD",
render_errors: [view: Tiser.Web.ErrorView, accepts: ~w(json)],
pubsub: [name: Tiser.PubSub,
adap... | 25.538462 | 111 | 0.687123 |
18bb78a1ffff230ffccbb4d7b4b4db34411f2281 | 3,325 | exs | Elixir | test/nx/tensor_test.exs | erlsci/nx | 4b99478523da55d65bd9e5f568d9a639cc568e26 | [
"Apache-2.0"
] | null | null | null | test/nx/tensor_test.exs | erlsci/nx | 4b99478523da55d65bd9e5f568d9a639cc568e26 | [
"Apache-2.0"
] | null | null | null | test/nx/tensor_test.exs | erlsci/nx | 4b99478523da55d65bd9e5f568d9a639cc568e26 | [
"Apache-2.0"
] | 1 | 2022-03-26T12:13:19.000Z | 2022-03-26T12:13:19.000Z | defmodule Nx.TensorTest do
use ExUnit.Case, async: true
defmodule ProcessBackend do
@behaviour Nx.Backend
defstruct [:key]
funs = Nx.Backend.behaviour_info(:callbacks) -- [from_binary: 3, backend_deallocate: 1]
for {fun, arity} <- funs do
args = Macro.generate_arguments(arity, __MODULE__)
... | 28.663793 | 96 | 0.633684 |
18bb838d8f9dbf5aa855dcd626941a239119d692 | 1,706 | exs | Elixir | mix.exs | bgracie/guardian_trackable | c870984b5b2030cf2ebb7d36b37de9862509a40f | [
"MIT"
] | null | null | null | mix.exs | bgracie/guardian_trackable | c870984b5b2030cf2ebb7d36b37de9862509a40f | [
"MIT"
] | null | null | null | mix.exs | bgracie/guardian_trackable | c870984b5b2030cf2ebb7d36b37de9862509a40f | [
"MIT"
] | null | null | null | defmodule GuardianTrackable.Mixfile do
use Mix.Project
def project do
[
app: :guardian_trackable,
package: package(),
version: "0.2.1",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(... | 23.694444 | 79 | 0.529308 |
18bb8df377b5c3455a3d98ef4e253d9dbc36f0e2 | 1,226 | ex | Elixir | lib/kazan/codegen/apis/parameter.ex | vickerysec/obmarg_kazan | 27e9ab923dd2a3b89e030de918f4d7c9da316248 | [
"MIT"
] | null | null | null | lib/kazan/codegen/apis/parameter.ex | vickerysec/obmarg_kazan | 27e9ab923dd2a3b89e030de918f4d7c9da316248 | [
"MIT"
] | null | null | null | lib/kazan/codegen/apis/parameter.ex | vickerysec/obmarg_kazan | 27e9ab923dd2a3b89e030de918f4d7c9da316248 | [
"MIT"
] | null | null | null | defmodule Kazan.Codegen.Apis.Parameter do
@moduledoc false
import Kazan.Codegen.Models, only: [definition_ref_to_module_name: 1]
defstruct [:type, :var_name, :field_name, :description, :required, :schema]
@type t :: %__MODULE__{
type: atom,
var_name: atom,
field_name: String.t(),... | 31.435897 | 77 | 0.637847 |
18bc4c62ec739183ff5484b6e71631ce86e36053 | 36,929 | ex | Elixir | lib/plug/conn.ex | ashneyderman/plug | 8816fa31bac9ac0d8af1d0639b11982dda7086a9 | [
"Apache-2.0"
] | null | null | null | lib/plug/conn.ex | ashneyderman/plug | 8816fa31bac9ac0d8af1d0639b11982dda7086a9 | [
"Apache-2.0"
] | null | null | null | lib/plug/conn.ex | ashneyderman/plug | 8816fa31bac9ac0d8af1d0639b11982dda7086a9 | [
"Apache-2.0"
] | null | null | null | alias Plug.Conn.Unfetched
defmodule Plug.Conn do
@moduledoc """
The Plug connection.
This module defines a `Plug.Conn` struct and the main functions
for working with Plug connections.
Note request headers are normalized to lowercase and response
headers are expected to have lower-case keys.
## Request... | 34.838679 | 123 | 0.654526 |
18bc5d53bccdb876d118ec31ce41a9700f4a1d6d | 645 | ex | Elixir | farmbot_core/lib/farmbot_core/asset_workers/first_party_farmware_worker.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/lib/farmbot_core/asset_workers/first_party_farmware_worker.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset_workers/first_party_farmware_worker.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.FirstPartyFarmware do
@moduledoc false
alias FarmbotCore.AssetWorker.FarmbotCore.Asset.FarmwareInstallation
require FarmbotCore.Logger
def preload(fwi) do
fwi = %{fwi | __struct__: FarmbotCore.Asset.FarmwareInstallation}
FarmwareInstallation.prelo... | 32.25 | 77 | 0.775194 |
18bc679daa8d909e010bbe331b75e36e23439eb2 | 365 | exs | Elixir | priv/repo/seeds.exs | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | 13 | 2020-06-03T08:17:45.000Z | 2021-03-11T04:37:52.000Z | priv/repo/seeds.exs | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | 1 | 2020-06-26T16:53:14.000Z | 2020-06-26T16:53:14.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Threehundred60.Repo.insert!(%Threehundred60.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on... | 30.416667 | 63 | 0.717808 |
18bc7c60236a79261e0052ecd074d769c8aec460 | 4,207 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_response.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.822917 | 227 | 0.732113 |
18bc9a83110e8eb18905abae9d0f96a0935ea1bf | 1,026 | ex | Elixir | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/server_for_create.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/server_for_create.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/server_for_create.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # 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 Microsoft.Azure.Management.Database.MySql.Model.ServerForCreate do
@moduledoc """
Represents a server to be created.
"""
@derive [Poison.... | 29.314286 | 126 | 0.709552 |
18bca2afd8e7b9c74375a64277fc98f7aa8f010f | 2,710 | ex | Elixir | Samples/Element/Torus/ElQua4NAx/Curves.ex | pantale/DynELA | f346c0888059784c3f56b853e8593b71fc3dd708 | [
"BSD-3-Clause"
] | 5 | 2019-12-13T14:12:43.000Z | 2020-09-21T18:27:39.000Z | Samples/Element/Torus/ElQua4NAx/Curves.ex | pantale/DynELA-v.-4.0 | 2c366859b68df6243a1e128a7839e4fb23888820 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T16:54:58.000Z | 2021-06-28T16:54:58.000Z | Samples/Element/Torus/ElQua4NAx/Curves.ex | pantale/DynELA-v.-4.0 | 2c366859b68df6243a1e128a7839e4fb23888820 | [
"BSD-3-Clause"
] | 2 | 2021-03-15T07:13:28.000Z | 2021-06-28T16:46:26.000Z | # Global parameters
Parameters, xscale=1000, xname=$Horizontal\ displacement\ along\ x\ axis\ (mm)$, marksnumber=15, title=$One\ Element\ Torus\ Test$, crop=True
# Temperature curve
temperature, yname=$Temperature\ in\ ^{\circ}C$, legendlocate=bottomright, name=$DynELA\ T$, temperature.plot, name=$Abaqus\ T$, Abaqus/T... | 73.243243 | 539 | 0.744649 |
18bcb08f8c54c15f08c39c6814dd8de50deac3bf | 4,277 | ex | Elixir | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/plugs/health.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/plugs/health.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/plugs/health.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.55 | 117 | 0.670797 |
18bcc2380f6ebf468fc65ed9971710c756617241 | 163 | ex | Elixir | lib/uro_web/views/pow_email_confirmation/mailer_view.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | lib/uro_web/views/pow_email_confirmation/mailer_view.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | lib/uro_web/views/pow_email_confirmation/mailer_view.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule UroWeb.PowEmailConfirmation.MailerView do
use UroWeb, :mailer_view
def subject(:email_confirmation, _assigns), do: "Confirm your email address"
end
| 27.166667 | 78 | 0.803681 |
18bd04fa152ac07bf0495f71021bd58e64f840b1 | 634 | ex | Elixir | lib/hinata.ex | tteerawat/hinata | 27b6de413877c34d94c66ef57bf780d4c8c36ff6 | [
"Apache-2.0"
] | null | null | null | lib/hinata.ex | tteerawat/hinata | 27b6de413877c34d94c66ef57bf780d4c8c36ff6 | [
"Apache-2.0"
] | null | null | null | lib/hinata.ex | tteerawat/hinata | 27b6de413877c34d94c66ef57bf780d4c8c36ff6 | [
"Apache-2.0"
] | null | null | null | defmodule Hinata do
alias Hinata.{JSONRequestBuilder, JSONResponseHandler}
@doc """
Sends an HTTP request with JSON.
## Options
* `:headers`
* `:query_params`
* `:body_params`
* `:cast_successful_response_body_to`
* `:cast_error_response_body_to`
"""
@spec json_request(atom(), String.... | 27.565217 | 110 | 0.659306 |
18bd0a1b8ec97e915295bc75c0b7e1282e2a4b02 | 421 | exs | Elixir | test/fun_retro_web/views/error_view_test.exs | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | test/fun_retro_web/views/error_view_test.exs | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | test/fun_retro_web/views/error_view_test.exs | Harmful-Alchemist/FunRetro | 6b53c16adb2c233e5338799732a5a5c2fe10acaf | [
"MIT"
] | null | null | null | defmodule FunRetroWeb.ErrorViewTest do
use FunRetroWeb.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(FunRetroWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.066667 | 93 | 0.736342 |
18bd23bbef746b086a0870f9aa1058111995a130 | 1,571 | ex | Elixir | genocide/test/support/model_case.ex | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | genocide/test/support/model_case.ex | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | genocide/test/support/model_case.ex | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | defmodule Genocide.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For... | 26.627119 | 84 | 0.686187 |
18bd487ad091b6e92c6dc41f3b0b12f2a8d7e750 | 348 | ex | Elixir | test/support/customer.ex | agleb/ecto_paginator | ec10b2cd717174a195adaf852f29467d1c959757 | [
"MIT"
] | 4 | 2020-02-15T01:35:44.000Z | 2020-06-24T19:26:52.000Z | test/support/customer.ex | agleb/ecto_paginator | ec10b2cd717174a195adaf852f29467d1c959757 | [
"MIT"
] | null | null | null | test/support/customer.ex | agleb/ecto_paginator | ec10b2cd717174a195adaf852f29467d1c959757 | [
"MIT"
] | null | null | null | defmodule EctoPaginator.Customer do
use Ecto.Schema
import Ecto.Query
schema "customers" do
field(:name, :string)
field(:active, :boolean)
has_many(:payments, EctoPaginator.Payment)
has_one(:address, EctoPaginator.Address)
timestamps()
end
def active(query) do
query |> where([c], ... | 17.4 | 46 | 0.681034 |
18bd8789efd25cb1bfc3fad6886b33d4117e7756 | 2,947 | ex | Elixir | lib/epi_locator_web/views/search_view.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | null | null | null | lib/epi_locator_web/views/search_view.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 6 | 2021-10-19T01:55:57.000Z | 2022-02-15T01:04:19.000Z | lib/epi_locator_web/views/search_view.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 2 | 2022-01-21T08:38:50.000Z | 2022-01-21T08:42:04.000Z | defmodule EpiLocatorWeb.SearchView do
use EpiLocatorWeb, :view
alias EpiLocatorWeb.LiveComponents.RefineSearchResults
alias EpiLocatorWeb.SearchLive
@no_dob "Unavailable"
def format_date(nil), do: @no_dob
def format_date(""), do: @no_dob
def format_date(%Date{year: year, month: month, day: day}) do
... | 37.782051 | 131 | 0.720054 |
18bd878bf5c26244a5e60cc1d336117fe7b2fb3b | 3,212 | ex | Elixir | lib/lapin/pattern.ex | lswith/lapin | a8a588dc1a0d8032d85d2c661c22b437fec3519b | [
"MIT"
] | null | null | null | lib/lapin/pattern.ex | lswith/lapin | a8a588dc1a0d8032d85d2c661c22b437fec3519b | [
"MIT"
] | null | null | null | lib/lapin/pattern.ex | lswith/lapin | a8a588dc1a0d8032d85d2c661c22b437fec3519b | [
"MIT"
] | null | null | null | defmodule Lapin.Pattern do
@moduledoc """
Extensible behaviour to define pattern modules.
Lapin provides a number of submodules which impelment the patterns found in
the [RabbitMQ Tutorials](http://www.rabbitmq.com/getstarted.html).
```
defmodule ExampleApp.SomePatter do
use Lapin.Pattern
[... ca... | 30.884615 | 127 | 0.708593 |
18bd8918ae522b33e525641a60861c7b791815b2 | 126 | exs | Elixir | test/mud_test.exs | stevbov/mud-elixir | 5fd8538737757752d5825f5ba47633ccc2645dfc | [
"Apache-2.0"
] | null | null | null | test/mud_test.exs | stevbov/mud-elixir | 5fd8538737757752d5825f5ba47633ccc2645dfc | [
"Apache-2.0"
] | null | null | null | test/mud_test.exs | stevbov/mud-elixir | 5fd8538737757752d5825f5ba47633ccc2645dfc | [
"Apache-2.0"
] | null | null | null | defmodule MudTest do
use ExUnit.Case
doctest Mud
test "greets the world" do
assert Mud.hello() == :world
end
end
| 14 | 32 | 0.68254 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.