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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a3e373e73ebc563c430d80e8c3245330a3c13a3 | 2,618 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/schedule_delete_certificate_authority_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/schedule_delete_certificate_authority_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/schedule_delete_certificate_authority_request.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... | 47.6 | 797 | 0.766616 |
4a3e710d803e54fa1d39f055956f5ede88407c22 | 2,262 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_aggregated_list_warning.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_aggregated_list_warning.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway_aggregated_list_warning.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 ... | 37.7 | 198 | 0.729001 |
4a3e9debf3d66cd88d1ecb9230cabf762b3e98be | 817 | ex | Elixir | lib/problem002.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | lib/problem002.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | lib/problem002.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | defmodule Eulixir.Problem002 do
@moduledoc """
http://projecteuler.net/problem=2
Each new term in the Fibonacci sequence is generated by adding the previous
two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fib... | 24.029412 | 79 | 0.637699 |
4a3ebdae8e6ee0fa57699614b98d1bd4967286f8 | 17,495 | exs | Elixir | test/receptar/recipe_test.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | test/receptar/recipe_test.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | test/receptar/recipe_test.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | defmodule Receptar.RecipeTest do
import Assertions
use Receptar.DataCase
import Receptar.Seeder
alias Receptar.Recipes
alias Receptar.Recipes.Recipe
alias Receptar.Substances
alias Receptar.Instructions.Instruction
alias Receptar.Units
alias Receptar.Orderables
defp to_language_string_map(substan... | 31.129893 | 95 | 0.62172 |
4a3ee82ad4b45d669c9aa05db19bb36470dfb5ac | 2,042 | ex | Elixir | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_batch_get_play_integrity_configs_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_batch_get_play_integrity_configs_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_batch_get_play_integrity_configs_response.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... | 33.47541 | 175 | 0.761019 |
4a3f41983305cf9c3781a7f6486ac01143d1d109 | 135 | exs | Elixir | test/exgrep_test.exs | kzmake/ex_grep | 4eccc1056dd6b6309e36197e478b9d5140dfb332 | [
"MIT"
] | null | null | null | test/exgrep_test.exs | kzmake/ex_grep | 4eccc1056dd6b6309e36197e478b9d5140dfb332 | [
"MIT"
] | null | null | null | test/exgrep_test.exs | kzmake/ex_grep | 4eccc1056dd6b6309e36197e478b9d5140dfb332 | [
"MIT"
] | null | null | null | defmodule ExgrepTest do
use ExUnit.Case
doctest Exgrep
test "greets the world" do
assert Exgrep.hello() == :world
end
end
| 15 | 35 | 0.703704 |
4a3f5a5b6b1032e8bcaae5935f046736050027f6 | 2,045 | exs | Elixir | config/prod.exs | pthompson/liveview_tailwind_modal | 5e5d173cdc8e4710ab98ce0a925822f4c72cd3ea | [
"MIT"
] | 25 | 2020-07-29T04:21:10.000Z | 2022-02-07T16:06:51.000Z | config/prod.exs | pthompson/liveview_tailwind_modal | 5e5d173cdc8e4710ab98ce0a925822f4c72cd3ea | [
"MIT"
] | null | null | null | config/prod.exs | pthompson/liveview_tailwind_modal | 5e5d173cdc8e4710ab98ce0a925822f4c72cd3ea | [
"MIT"
] | 8 | 2020-08-19T13:06:39.000Z | 2021-08-11T17:18:34.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.517857 | 66 | 0.719315 |
4a3f5bec694cffefee56d0f6ebaf93764b65bdc3 | 2,888 | ex | Elixir | lib/web/controllers/profile_controller.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/controllers/profile_controller.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/controllers/profile_controller.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.ProfileController do
use Librecov.Web, :controller
alias Librecov.User
alias Librecov.UserManager
def show(conn, _params) do
user = Librecov.Authentication.get_current_account(conn)
render(conn, "edit.html", user: user, changeset: UserManager.changeset(user))
end
def update(con... | 29.773196 | 101 | 0.654778 |
4a3f826827ce95cc6772e5db282f57a079315e34 | 262 | ex | Elixir | lib/aspekt/repo.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt/repo.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt/repo.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | defmodule Aspekt.Repo do
use Ecto.Repo, otp_app: :aspekt
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 21.833333 | 66 | 0.694656 |
4a3f958d4a2d283971cddb65c6d2c042386c18a9 | 295 | ex | Elixir | test/support/repo.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | test/support/repo.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | test/support/repo.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaFileTransfer.Test.Repo do
use Ecto.Repo, otp_app: :materia_file_transfer
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 24.583333 | 66 | 0.725424 |
4a3f9d3fd6126470a3ef03647f7d56998822c0c2 | 3,465 | exs | Elixir | config/config.exs | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | config/config.exs | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | config/config.exs | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | use Mix.Config
config :central, Central,
site_title: "BAR - Teiserver",
site_description: "",
site_icon: "fad fa-robot",
enable_blog: true,
blog_title: "BAR Blog",
# This is used for the coverage tool
file_path: "~/programming/elixir/barserver/",
credit: "Teifion Jordan"
# Default configs
config :cent... | 28.636364 | 89 | 0.702165 |
4a3fb97f5b273d30c36b2083e3288cd11bb1b6a3 | 387 | ex | Elixir | lib/ccsp/chapter2/maze_location.ex | sbauer322/ccsp | 8ea6c26457e110c5f84cbc813b3f065c6161e6e6 | [
"Apache-2.0"
] | 7 | 2019-11-04T14:23:52.000Z | 2021-12-31T08:24:33.000Z | lib/ccsp/chapter2/maze_location.ex | sbauer322/ccsp | 8ea6c26457e110c5f84cbc813b3f065c6161e6e6 | [
"Apache-2.0"
] | 23 | 2019-10-02T02:13:36.000Z | 2019-12-03T03:52:37.000Z | lib/ccsp/chapter2/maze_location.ex | sbauer322/ccsp | 8ea6c26457e110c5f84cbc813b3f065c6161e6e6 | [
"Apache-2.0"
] | null | null | null | defmodule CCSP.Chapter2.MazeLocation do
alias __MODULE__, as: T
@moduledoc """
Corresponds to CCSP in Python, Section 2.2 titled "Maze Solving"
"""
@type t :: __MODULE__.t()
defstruct value: nil, row: nil, column: nil
@spec new(String.t(), non_neg_integer, non_neg_integer) :: t
def new(value, row, c... | 22.764706 | 66 | 0.679587 |
4a3fd187e7078b679351ff815294b68f061e7ee1 | 575 | ex | Elixir | lib/maestro/errors.ex | toniqsystems/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 103 | 2018-02-09T23:13:21.000Z | 2021-08-18T04:22:41.000Z | lib/maestro/errors.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 20 | 2018-04-05T16:10:53.000Z | 2021-07-01T08:21:50.000Z | lib/maestro/errors.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 3 | 2018-09-13T06:03:10.000Z | 2019-07-11T15:22:53.000Z | defmodule Maestro.InvalidHandlerError do
@moduledoc """
An exception that will be raised by `Maestro.Aggregate.Root.lookup_module/2`
if it fails to find the module implied by the prefix and type provided.
"""
defexception type: ""
def message(exception) do
"""
Could not find the matching Command o... | 23.958333 | 79 | 0.726957 |
4a3fdf6c04337e8d608f654b30ee04e6bbb55b75 | 468 | ex | Elixir | lib/hl7/2.4/datatypes/xon.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/xon.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/xon.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.DataTypes.Xon do
@moduledoc false
alias HL7.V2_4.{DataTypes}
use HL7.DataType,
fields: [
organization_name: nil,
organization_name_type_code: nil,
id_number_nm: nil,
check_digit_nm: nil,
code_identifying_the_check_digit_scheme_employed: nil,
assigning_au... | 26 | 60 | 0.717949 |
4a3ff7b071d2a0a9cfbab4cfafe251ac52ed7f29 | 18,057 | ex | Elixir | lib/jamdb_oracle_query.ex | lemenkov/jamdb_oracle | 7f64267a670b5f185fce5ccc29d99983ae0182d0 | [
"MIT"
] | null | null | null | lib/jamdb_oracle_query.ex | lemenkov/jamdb_oracle | 7f64267a670b5f185fce5ccc29d99983ae0182d0 | [
"MIT"
] | null | null | null | lib/jamdb_oracle_query.ex | lemenkov/jamdb_oracle | 7f64267a670b5f185fce5ccc29d99983ae0182d0 | [
"MIT"
] | null | null | null | defmodule Jamdb.Oracle.Query do
@moduledoc """
Adapter module for Oracle. `DBConnection.Query` protocol implementation.
See `DBConnection.prepare_execute/4`.
"""
defstruct [:statement, :name]
alias Ecto.Query.{BooleanExpr, JoinExpr, QueryExpr}
@doc false
def all(query) do
sources = create_nam... | 31.846561 | 103 | 0.614332 |
4a3ff8fcd8ab1f5df684da12e1756724cdc494b5 | 2,111 | exs | Elixir | test/apis_test.exs | chazsconi/kazan | da42cef9686584ed7b46428780d099ce77dae3ea | [
"MIT"
] | null | null | null | test/apis_test.exs | chazsconi/kazan | da42cef9686584ed7b46428780d099ce77dae3ea | [
"MIT"
] | null | null | null | test/apis_test.exs | chazsconi/kazan | da42cef9686584ed7b46428780d099ce77dae3ea | [
"MIT"
] | null | null | null | defmodule KazanApiTests do
use ExUnit.Case
alias Kazan.Apis.{CoreV1, ExtensionsV1beta1}
alias Kazan.Models.ApiMachinery.Apis.Meta.V1.ObjectMeta
alias Kazan.Models.Api.V1.Namespace
describe "Apis.oai_id_to_functions" do
test "it returns a list of functions for known operations" do
assert Kazan.Apis... | 30.594203 | 103 | 0.660351 |
4a4032b525c88192901b0b81b65d682515cc4e23 | 687 | exs | Elixir | config/config.rpi3.exs | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | 2 | 2019-07-15T01:41:08.000Z | 2020-03-19T17:56:22.000Z | config/config.rpi3.exs | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | null | null | null | config/config.rpi3.exs | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | 3 | 2020-06-26T12:32:25.000Z | 2021-04-16T08:59:21.000Z | use Mix.Config
config :nerves_firmware_ssh,
authorized_keys: [
File.read!(Path.join(System.user_home!(), ".ssh/id_rsa.pub"))
]
config :speediview, SpeediViewUI.Layout, layout_file: "/root/layout.etf"
config :speediview, :viewport, %{
name: :main_viewport,
default_scene: {SpeediViewUI.Scene.Dash, []},
s... | 21.46875 | 72 | 0.624454 |
4a40353c4316e885aecebce0ffa441d14822dbe2 | 328 | exs | Elixir | config/test.exs | appcues/elixometer | 1f95425d8e1df02edd0b267c57c6d579d45c4c8d | [
"Apache-2.0"
] | 900 | 2015-12-18T20:40:12.000Z | 2022-03-27T08:22:51.000Z | config/test.exs | appcues/elixometer | 1f95425d8e1df02edd0b267c57c6d579d45c4c8d | [
"Apache-2.0"
] | 126 | 2015-12-19T17:02:57.000Z | 2022-03-23T18:43:27.000Z | config/test.exs | appcues/elixometer | 1f95425d8e1df02edd0b267c57c6d579d45c4c8d | [
"Apache-2.0"
] | 76 | 2015-12-18T21:55:52.000Z | 2021-04-10T14:15:59.000Z | use Mix.Config
config(:exometer_core, report: [reporters: [{Elixometer.TestReporter, []}]])
config(
:elixometer,
update_frequency: 20,
reporter: Elixometer.TestReporter,
env: Mix.env(),
metric_prefix: "elixometer"
)
# quiet down logging in test
config(:lager, handlers: [lager_console_backend: [level: :crit... | 21.866667 | 76 | 0.728659 |
4a40700859d75cd68d6ddda649fe2b7a3a531a73 | 372 | exs | Elixir | test/authable/utils/crypt_test.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | test/authable/utils/crypt_test.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | test/authable/utils/crypt_test.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | 1 | 2021-01-12T00:55:56.000Z | 2021-01-12T00:55:56.000Z | defmodule Authable.Utils.CryptTest do
use ExUnit.Case
import Authable.Utils.Crypt
test "test match_password & salt_password" do
password = "12345678"
salted_password = salt_password(password)
match_password(password, salted_password)
end
test "test generate_token, generates random str" do
as... | 24.8 | 53 | 0.755376 |
4a409c90119fee4be8c51a8ccdcb8816404f58a5 | 539 | exs | Elixir | apps/datapio_controller/mix.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 5 | 2021-05-14T22:01:08.000Z | 2021-09-21T16:28:09.000Z | apps/datapio_controller/mix.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 198 | 2019-10-17T12:22:25.000Z | 2022-03-16T02:14:14.000Z | apps/datapio_controller/mix.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 1 | 2022-03-10T08:54:36.000Z | 2022-03-10T08:54:36.000Z | defmodule Datapio.Controller.MixProject do
use Mix.Project
def project do
[
app: :datapio_controller,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
sta... | 17.966667 | 45 | 0.545455 |
4a40a3aa07423823db9fcedef7f7a23b497e9745 | 1,187 | ex | Elixir | lib/reverse_proxy_plug/http_client/request.ex | axelson/reverse_proxy_plug | 1747a6f2b38b7a0d7967eaf7adfc5876e74b78a3 | [
"MIT"
] | 172 | 2018-08-08T22:53:11.000Z | 2022-03-16T09:43:21.000Z | lib/reverse_proxy_plug/http_client/request.ex | axelson/reverse_proxy_plug | 1747a6f2b38b7a0d7967eaf7adfc5876e74b78a3 | [
"MIT"
] | 74 | 2018-09-18T14:26:52.000Z | 2022-03-18T09:20:50.000Z | lib/reverse_proxy_plug/http_client/request.ex | axelson/reverse_proxy_plug | 1747a6f2b38b7a0d7967eaf7adfc5876e74b78a3 | [
"MIT"
] | 40 | 2018-09-18T15:18:49.000Z | 2022-03-19T17:04:16.000Z | defmodule ReverseProxyPlug.HTTPClient.Request do
@moduledoc """
`Request` properties:
* `:method` - HTTP method as an atom (`:get`, `:head`, `:post`, `:put`,
`:delete`, etc.)
* `:url` - target url as a binary string or char list
* `:body` - request body.
* `:headers` - HTTP headers as an orddi... | 35.969697 | 89 | 0.593934 |
4a40aea39f4caf6e9b193c4c06358bcb6c1cf5a7 | 281 | ex | Elixir | lib/word_battle_web/views/layout_view.ex | oskarkook/word_battle | 0811b1adca2ccdbd23b769f163e25b33fe3dc2d6 | [
"MIT"
] | null | null | null | lib/word_battle_web/views/layout_view.ex | oskarkook/word_battle | 0811b1adca2ccdbd23b769f163e25b33fe3dc2d6 | [
"MIT"
] | null | null | null | lib/word_battle_web/views/layout_view.ex | oskarkook/word_battle | 0811b1adca2ccdbd23b769f163e25b33fe3dc2d6 | [
"MIT"
] | null | null | null | defmodule WordBattleWeb.LayoutView do
use WordBattleWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end
| 35.125 | 72 | 0.779359 |
4a40c600acb743a482b43930a4d680d68a1b3325 | 3,240 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/admin/role/list_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/role/list_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/role/list_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.Admin.Role.ListComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="col bw admin-blog-post-list">
<div class="table-responsive">
<table class="table vazir">
<thead>
<tr>
... | 46.956522 | 191 | 0.45216 |
4a40c75e55ef3fb09d662f5083feef9ec266a3b1 | 302 | exs | Elixir | priv/repo/migrations/20181213220948_create_libraries.exs | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/booklist/priv/repo/migrations/20181213220948_create_libraries.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | priv/repo/migrations/20181213220948_create_libraries.exs | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | defmodule Booklist.Repo.Migrations.CreateLibraries do
use Ecto.Migration
def change do
create table(:libraries) do
add :name, :text, null: false
add :url, :text
add :super_search_key, :text
timestamps()
end
create unique_index(:libraries, [:name])
end
end
| 17.764706 | 53 | 0.662252 |
4a410072d0c5d3f89ecacc93b18e48bb98dce40e | 2,282 | exs | Elixir | demo/mix.exs | mtrudel/nerves_dnssd | 36c87aea4932e35adb409d8e5a1e7d02149c84b4 | [
"Apache-2.0"
] | 6 | 2017-06-23T14:47:21.000Z | 2020-06-29T13:37:06.000Z | demo/mix.exs | mtrudel/nerves_dnssd | 36c87aea4932e35adb409d8e5a1e7d02149c84b4 | [
"Apache-2.0"
] | 2 | 2017-10-09T19:38:45.000Z | 2020-09-26T21:09:25.000Z | demo/mix.exs | mtrudel/nerves_dnssd | 36c87aea4932e35adb409d8e5a1e7d02149c84b4 | [
"Apache-2.0"
] | 4 | 2017-08-16T12:11:17.000Z | 2020-11-06T21:30:49.000Z | defmodule NervesDnssdDemo.Mixfile do
use Mix.Project
@target System.get_env("MIX_TARGET") || "host"
Mix.shell.info([:green, """
Mix environment
MIX_TARGET: #{@target}
MIX_ENV: #{Mix.env}
""", :reset])
def project do
[app: :nerves_dnssd_demo,
version: "0.1.0",
elixir: "~> 1.8"... | 28.886076 | 90 | 0.635846 |
4a411b0ff92def5b02572ecb1524249dc74883cf | 2,246 | ex | Elixir | philosophers/lib/philosophers.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | philosophers/lib/philosophers.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | philosophers/lib/philosophers.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | defmodule Philosopher do
@moduledoc """
Documentation for `Philosophers`.
"""
@doc """
Hello world.
## Examples
iex> Philosophers.hello()
:world
"""
def hello do
:world
end
@dream 800
@eat 100
@delay 0
@timeout 1000
# Create a new philosopher process.
def start(hung... | 23.154639 | 79 | 0.618433 |
4a413829e5b1cb2d2c124fed5231b85a903bffc2 | 229 | exs | Elixir | macro.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | macro.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | macro.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule Unless do
def fun_unless(clause, expression) do
if(!clause, do: expression)
end
defmacro macro_unless(clause, expression) do
quote do
if(!unquote(clause), do: unquote(expression))
end
end
end
| 19.083333 | 51 | 0.694323 |
4a4197212b7e211c09b1f2b6bb9f569b5bd6bad6 | 2,278 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/global_set_policy_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/global_set_policy_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/global_set_policy_request.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... | 42.185185 | 267 | 0.74583 |
4a41a27df96e1bd7005213f4926ddcd244ae1627 | 1,524 | ex | Elixir | lib/hexpm/web/session.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/session.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/session.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.Session do
alias Hexpm.Accounts.Session
alias Hexpm.Repo
@behaviour Plug.Session.Store
def init(_opts) do
:ok
end
def get(_conn, cookie, _opts) do
with {id, "++" <> token} <- Integer.parse(cookie),
{:ok, token} <- Base.url_decode64(token),
session = Repo.get(... | 22.411765 | 95 | 0.60958 |
4a41ddc39ae4dcf62808218c43e02139a4e0b35a | 1,019 | ex | Elixir | lib/merge_sort.ex | badubizzle/elixir_data_structures | 679f7799dc24bdef514c101c48f6e80fe5d0177d | [
"MIT"
] | 6 | 2019-08-09T18:15:06.000Z | 2020-11-14T21:01:51.000Z | lib/merge_sort.ex | badubizzle/elixir_data_structures | 679f7799dc24bdef514c101c48f6e80fe5d0177d | [
"MIT"
] | null | null | null | lib/merge_sort.ex | badubizzle/elixir_data_structures | 679f7799dc24bdef514c101c48f6e80fe5d0177d | [
"MIT"
] | null | null | null | defmodule MergeSort do
@doc """
Sort array using merge sort
#Example
iex> arr = [5, 0, 4, 3,2,1,2]
iex> MergeSort.sort(arr)
[0,1,2,2,3,4,5]
"""
def sort(array) do
msort(array)
end
defp msort([]) do
[]
end
defp msort([a]) do
[a]
end
defp msort([h | r] = a) do
merge(m... | 17.271186 | 61 | 0.529931 |
4a41e090dc8b72700ec3ad43d4fd5c5c0097ad68 | 936 | ex | Elixir | debian/postrm.ex | embeddedTS/ts7820-utils | e4769fd19f4f09170e2b7d11ced1d37e8d7bc52f | [
"BSD-2-Clause"
] | null | null | null | debian/postrm.ex | embeddedTS/ts7820-utils | e4769fd19f4f09170e2b7d11ced1d37e8d7bc52f | [
"BSD-2-Clause"
] | 1 | 2020-07-17T23:03:15.000Z | 2020-07-17T23:03:15.000Z | debian/postrm.ex | embeddedarm/ts7820-utils | e4769fd19f4f09170e2b7d11ced1d37e8d7bc52f | [
"BSD-2-Clause"
] | null | null | null | #!/bin/sh
# postrm script for ts7820-utils
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install... | 24.631579 | 78 | 0.629274 |
4a41e0f1ec484da0ca9f27d9b9f7cf1846a938b3 | 186 | ex | Elixir | lib/elm_phoenix_web_socket_example/message.ex | phollyer/elm-phoenix-websocket-example | 147da038b5ca4f9304924124c546284f12ecfaa8 | [
"BSD-3-Clause"
] | null | null | null | lib/elm_phoenix_web_socket_example/message.ex | phollyer/elm-phoenix-websocket-example | 147da038b5ca4f9304924124c546284f12ecfaa8 | [
"BSD-3-Clause"
] | 2 | 2020-12-29T15:13:39.000Z | 2020-12-30T01:01:02.000Z | lib/elm_phoenix_web_socket_example/message.ex | phollyer/elm-phoenix-websocket-example | 147da038b5ca4f9304924124c546284f12ecfaa8 | [
"BSD-3-Clause"
] | null | null | null | defmodule ElmPhoenixWebSocketExample.Message do
def create(message, user) do
%{text: message,
owner: user,
created_at: System.system_time(:millisecond)
}
end
end | 20.666667 | 50 | 0.698925 |
4a41ff42089f3243e699f71d59cdd247632bf642 | 999 | exs | Elixir | exercises/minesweeper/test/minesweeper_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/minesweeper/test/minesweeper_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | null | null | null | exercises/minesweeper/test/minesweeper_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | null | null | null | defmodule MinesweeperTest do
use ExUnit.Case
defp clean(b), do: Enum.map(b, &String.replace(&1, ~r/[^*]/, " "))
# @tag :pending
test "zero size board" do
b = []
assert Minesweeper.annotate(clean(b)) == b
end
@tag :pending
test "empty board" do
b = [" ", " ", " "]
assert Minesweepe... | 20.8125 | 68 | 0.540541 |
4a423c35284e741be7c7f67550af53769cad885e | 1,795 | ex | Elixir | lib/real_world_web/endpoint.ex | anndream/realworld-elixir-phoenix-v14 | b8f8b3d37099f5efe47c92d8c33b16763526eb7a | [
"MIT"
] | null | null | null | lib/real_world_web/endpoint.ex | anndream/realworld-elixir-phoenix-v14 | b8f8b3d37099f5efe47c92d8c33b16763526eb7a | [
"MIT"
] | null | null | null | lib/real_world_web/endpoint.ex | anndream/realworld-elixir-phoenix-v14 | b8f8b3d37099f5efe47c92d8c33b16763526eb7a | [
"MIT"
] | null | null | null | defmodule RealWorldWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :real_world
socket "/socket", RealWorldWeb.UserSocket,
websocket: true
# longpoll: [check_origin: ...]
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
#... | 25.28169 | 94 | 0.68468 |
4a426ba1b40a4d9a713058cff5e2f00ad711baf0 | 50,160 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/api/organizations.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/api/organizations.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/api/organizations.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 43.055794 | 196 | 0.618999 |
4a428457e94851809d86308d6e9102eb9962b7ff | 3,920 | ex | Elixir | lib/performance.ex | UrbanOS-Examples/scos-system-test | 5b24020b308bf54e3365704d0b3ab0e0187c3f6e | [
"Apache-2.0"
] | null | null | null | lib/performance.ex | UrbanOS-Examples/scos-system-test | 5b24020b308bf54e3365704d0b3ab0e0187c3f6e | [
"Apache-2.0"
] | null | null | null | lib/performance.ex | UrbanOS-Examples/scos-system-test | 5b24020b308bf54e3365704d0b3ab0e0187c3f6e | [
"Apache-2.0"
] | null | null | null | defmodule ScosSystemTest.Performance do
@moduledoc """
ScosSystemTest.Performance will eventually be an actual
system test, but for now all it does is generate
and upload a specified number of datasets.
"""
require Logger
alias ScosSystemTest.Helpers
alias ScosSystemTest.Stats
@default_andi_url Applic... | 30.625 | 134 | 0.686224 |
4a429627e452fe90d300e295cf0c7aec64ef4991 | 3,850 | exs | Elixir | test/plausible/billing/billing_test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | test/plausible/billing/billing_test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | test/plausible/billing/billing_test.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | defmodule Plausible.BillingTest do
use Plausible.DataCase
alias Plausible.Billing
describe "trial_days_left" do
test "is 30 days for new signup" do
user = insert(:user)
assert Billing.trial_days_left(user) == 30
end
test "is 29 days for day old user" do
user = insert(:user, insert... | 31.818182 | 82 | 0.649351 |
4a42bcca28923b6e8f6aa5339ea67d24d6bfb40b | 452 | ex | Elixir | apps/peedy_web/test/support/peedy_web_case.ex | poteto/peedy | df9d5ee7fcbceb30b5939b36224a257249a180ea | [
"Apache-2.0"
] | 34 | 2017-05-07T08:50:59.000Z | 2021-11-25T00:27:11.000Z | apps/peedy_web/test/support/peedy_web_case.ex | poteto/peedy | df9d5ee7fcbceb30b5939b36224a257249a180ea | [
"Apache-2.0"
] | null | null | null | apps/peedy_web/test/support/peedy_web_case.ex | poteto/peedy | df9d5ee7fcbceb30b5939b36224a257249a180ea | [
"Apache-2.0"
] | 7 | 2017-05-10T12:42:30.000Z | 2021-11-03T01:21:02.000Z | defmodule PeedyWeb.Case do
use ExUnit.CaseTemplate
using do
quote do
alias PeedyF.Repo
import Ecto
import Ecto.Changeset
import Ecto.Query
end
end
setup tags do
opts = tags |> Map.take([:isolation]) |> Enum.to_list()
:ok = Ecto.Adapters.SQL.Sandbox.checkout(PeedyF.Repo... | 18.08 | 68 | 0.639381 |
4a430ab3b0769acda3d716406b708edc974f498d | 791 | exs | Elixir | mix.exs | hansonkd/cables_benchmark | 98693795459d733892aab5bb042aa4baff4bf98f | [
"MIT"
] | null | null | null | mix.exs | hansonkd/cables_benchmark | 98693795459d733892aab5bb042aa4baff4bf98f | [
"MIT"
] | null | null | null | mix.exs | hansonkd/cables_benchmark | 98693795459d733892aab5bb042aa4baff4bf98f | [
"MIT"
] | null | null | null | defmodule CablesBenchmark.MixProject do
use Mix.Project
def project do
[
app: :cables_benchmark,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
... | 21.378378 | 88 | 0.54488 |
4a43326c6f0a137c78e05e1c145906bbfdc67746 | 280 | ex | Elixir | lib/membrane/bin/callback_context/spec_started.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 515 | 2018-06-18T11:09:44.000Z | 2020-07-31T07:54:35.000Z | lib/membrane/bin/callback_context/spec_started.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 120 | 2018-06-07T08:34:06.000Z | 2020-07-30T07:09:50.000Z | lib/membrane/bin/callback_context/spec_started.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 13 | 2018-07-27T11:58:15.000Z | 2020-05-06T15:19:55.000Z | defmodule Membrane.Bin.CallbackContext.SpecStarted do
@moduledoc """
Structure representing a context that is passed to the callback of the bin
when it instantiates children and links them according to `Membrane.ParentSpec`
"""
use Membrane.Core.Bin.CallbackContext
end
| 35 | 81 | 0.792857 |
4a4332d8fd656b2468f5336c37a8c3e3f6b174cb | 83,697 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_instance_group_managers.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_instance_group_managers.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_instance_group_managers.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.889027 | 582 | 0.654683 |
4a4353cd266dc00186dd3cb84f3a804139ada124 | 314 | ex | Elixir | lib/ex_binance/rest/responses/cancel_order.ex | qbereau/ex_binance | 42d110f209ffdd98da0d2b25910521b2403305cf | [
"MIT"
] | null | null | null | lib/ex_binance/rest/responses/cancel_order.ex | qbereau/ex_binance | 42d110f209ffdd98da0d2b25910521b2403305cf | [
"MIT"
] | 16 | 2021-08-01T16:08:00.000Z | 2022-03-01T16:02:42.000Z | lib/ex_binance/rest/responses/cancel_order.ex | qbereau/ex_binance | 42d110f209ffdd98da0d2b25910521b2403305cf | [
"MIT"
] | null | null | null | defmodule ExBinance.Rest.Responses.CancelOrderResponse do
@type t :: %__MODULE__{}
defstruct ~w(
client_order_id
cummulative_quote_qty
executed_qty
order_id
orig_client_order_id
orig_qty
price
side
status
symbol
time_in_force
type
)a
use ExConstructor
end
| 14.952381 | 57 | 0.697452 |
4a43550e46a87959f92c0250acbd8ce8e8b19d10 | 1,571 | ex | Elixir | clients/org_policy/lib/google_api/org_policy/v2/model/google_protobuf_empty.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/org_policy/lib/google_api/org_policy/v2/model/google_protobuf_empty.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/org_policy/lib/google_api/org_policy/v2/model/google_protobuf_empty.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.404762 | 345 | 0.764481 |
4a435513fb3f8bb3ed4d17b87c68e1c2ba74e79e | 712 | ex | Elixir | lib/live_deck_web/router.ex | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 68 | 2020-02-13T15:17:39.000Z | 2022-03-29T23:21:19.000Z | lib/live_deck_web/router.ex | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 30 | 2020-04-16T17:21:22.000Z | 2021-09-20T21:47:12.000Z | lib/live_deck_web/router.ex | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 7 | 2020-06-07T16:19:14.000Z | 2022-02-09T23:31:25.000Z | defmodule LiveDeckWeb.Router do
use LiveDeckWeb, :router
import Phoenix.LiveView.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :put_root_layout, {LiveDeckWeb.LayoutView, :root... | 22.25 | 58 | 0.695225 |
4a435c65e1edb0879727052016ce1604d1d0e1e0 | 257 | ex | Elixir | hacker_news/lib/hacker_news.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | defmodule HackerNews do
@moduledoc """
HackerNews keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
4a437cc2f9c5315500e2c1ecdf46f832e75bd2ca | 33,629 | ex | Elixir | lib/phoenix_live_view/helpers.ex | sineed/phoenix_live_view | e82d6b1c12cd58cbbf5ae7464f995ddac1dab748 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | sineed/phoenix_live_view | e82d6b1c12cd58cbbf5ae7464f995ddac1dab748 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | sineed/phoenix_live_view | e82d6b1c12cd58cbbf5ae7464f995ddac1dab748 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Helpers do
@moduledoc """
A collection of helpers to be imported into your views.
"""
# TODO: Convert all functions with the `live_` prefix to function components?
alias Phoenix.LiveView
alias Phoenix.LiveView.{Component, Socket, Static}
@doc """
Provides `~L` sigil with HT... | 31.606203 | 102 | 0.643314 |
4a4388e64130908559bb2a01cd82432f7c83acb1 | 1,329 | exs | Elixir | test/kino/subscription_manager_test.exs | elixir-nx/kino | b33e31a5b22202d30da6b787c857ae09e5db94b5 | [
"Apache-2.0"
] | 39 | 2021-05-31T21:52:23.000Z | 2021-07-09T06:52:15.000Z | test/kino/subscription_manager_test.exs | elixir-nx/kino | b33e31a5b22202d30da6b787c857ae09e5db94b5 | [
"Apache-2.0"
] | 15 | 2021-06-07T07:53:56.000Z | 2021-07-01T14:25:00.000Z | test/kino/subscription_manager_test.exs | elixir-nx/kino | b33e31a5b22202d30da6b787c857ae09e5db94b5 | [
"Apache-2.0"
] | 2 | 2021-06-05T08:05:53.000Z | 2021-06-15T09:28:44.000Z | defmodule Kino.SubscriptionManagerTest do
use ExUnit.Case, async: true
test "subscribe/3 subscribes to events and attaches custom tag" do
Kino.SubscriptionManager.subscribe("topic1", self(), :tag)
event = %{type: :ping}
send(Kino.SubscriptionManager, {:event, "topic1", event})
assert_receive {:ta... | 32.414634 | 77 | 0.697517 |
4a438b9b2f6d7d772d9f55a7e6871871ba8a2329 | 17,366 | ex | Elixir | lib/pelemay/generator/native/enum.ex | kentaro/pelemay | fcdd8c2783adb9e57aa82f3fc8c1184346de9f3c | [
"Apache-2.0"
] | null | null | null | lib/pelemay/generator/native/enum.ex | kentaro/pelemay | fcdd8c2783adb9e57aa82f3fc8c1184346de9f3c | [
"Apache-2.0"
] | null | null | null | lib/pelemay/generator/native/enum.ex | kentaro/pelemay | fcdd8c2783adb9e57aa82f3fc8c1184346de9f3c | [
"Apache-2.0"
] | null | null | null | defmodule Pelemay.Generator.Native.Enum do
alias Pelemay.Generator, as: Generator
alias Pelemay.Generator.Native.Util, as: Util
alias Pelemay.Db
def map(info) do
%{
nif_name: nif_name,
args: [
func: %{
args: args,
operators: operators
}
]
} = info
... | 31.632058 | 160 | 0.638892 |
4a438f4787c050417f6d7e6cbf63a7c2a6c2305a | 5,372 | ex | Elixir | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_hook.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | 1 | 2021-01-22T09:13:21.000Z | 2021-01-22T09:13:21.000Z | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_hook.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | null | null | null | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_hook.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | null | null | null | # credo:disable-for-this-file
defmodule(CucumberMessages.Hook) do
@moduledoc(false)
(
defstruct(id: "", tag_expression: "", source_reference: nil, __uf__: [])
(
@spec(encode(struct) :: {:ok, iodata} | {:error, any})
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
... | 35.813333 | 182 | 0.546165 |
4a439155ffd0d46ce3857a05039a43fa368e4e4b | 3,545 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook.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... | 47.905405 | 264 | 0.743583 |
4a439640c158e0b43010012af3f814a25bde3c29 | 1,419 | ex | Elixir | test/support/data_case.ex | QBonaventure/StreamHeda | d5f167c567a7886fcc9ed3b14f19fd875c05b2f0 | [
"MIT"
] | null | null | null | test/support/data_case.ex | QBonaventure/StreamHeda | d5f167c567a7886fcc9ed3b14f19fd875c05b2f0 | [
"MIT"
] | 1 | 2021-03-09T23:27:29.000Z | 2021-03-09T23:27:29.000Z | test/support/data_case.ex | QBonaventure/StreamHeda | d5f167c567a7886fcc9ed3b14f19fd875c05b2f0 | [
"MIT"
] | null | null | null | defmodule StreamHeda.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every t... | 26.277778 | 77 | 0.682875 |
4a43b7acb75f296f35f0c2e513022eab1e7a1e90 | 2,093 | exs | Elixir | test/algoliax/utils_test.exs | klacointe/algoliax | 6228d334e52a464162581b4887724a2f1cc357b5 | [
"BSD-2-Clause"
] | null | null | null | test/algoliax/utils_test.exs | klacointe/algoliax | 6228d334e52a464162581b4887724a2f1cc357b5 | [
"BSD-2-Clause"
] | null | null | null | test/algoliax/utils_test.exs | klacointe/algoliax | 6228d334e52a464162581b4887724a2f1cc357b5 | [
"BSD-2-Clause"
] | null | null | null | defmodule Algoliax.UtilsTest do
use ExUnit.Case, async: true
defmodule NoRepo do
use Algoliax,
index_name: :algoliax_people,
attributes_for_faceting: ["age"],
searchable_attributes: ["full_name"],
custom_ranking: ["desc(updated_at)"],
object_id: :reference
end
defmodule Index... | 27.181818 | 94 | 0.673196 |
4a43cbd97b9429366c443a8e461778d22d18819f | 16,304 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares.ex | chazwatkins/nerves_hub_web | a95603e4b0eb6c1f01f2070728d4e9f6420c5c29 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares.ex | chazwatkins/nerves_hub_web | a95603e4b0eb6c1f01f2070728d4e9f6420c5c29 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares.ex | chazwatkins/nerves_hub_web | a95603e4b0eb6c1f01f2070728d4e9f6420c5c29 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.Firmwares do
import Ecto.Query
alias Ecto.Changeset
alias NervesHubWebCore.Accounts
alias NervesHubWebCore.Accounts.{OrgKey, Org}
alias NervesHubWebCore.Firmwares.{Firmware, FirmwareMetadata, FirmwarePatch, FirmwareTransfer}
alias NervesHubWebCore.Products
alias NervesHubWebCor... | 29.114286 | 98 | 0.610218 |
4a43d082a46afae4f2faf080a7ed0f684b8ba6f5 | 214 | exs | Elixir | test/situation_room_web/controllers/site_check_controller_test.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 9 | 2015-10-04T11:47:19.000Z | 2019-12-09T16:02:23.000Z | test/situation_room_web/controllers/site_check_controller_test.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 14 | 2015-07-28T04:41:57.000Z | 2022-03-31T18:12:51.000Z | test/situation_room_web/controllers/site_check_controller_test.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 1 | 2017-07-26T03:17:02.000Z | 2017-07-26T03:17:02.000Z | defmodule SituationRoomWeb.ControllerCheckTest do
use SituationRoomWeb.ConnCase, async: true
use ExUnit.Case, async: false
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(SituationRoom.Repo)
end
end
| 23.777778 | 64 | 0.780374 |
4a44016f1d39be8a264e6e1fa9e6c5bd0737b325 | 4,077 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.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... | 78.403846 | 1,680 | 0.762816 |
4a4404c25a89ff4f7db6870572850010f279b23b | 280 | ex | Elixir | lib/ecs_erlang_cluster/config.ex | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | 2 | 2019-01-19T07:37:01.000Z | 2022-01-03T19:15:37.000Z | lib/ecs_erlang_cluster/config.ex | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | null | null | null | lib/ecs_erlang_cluster/config.ex | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | null | null | null | defmodule EcsErlangCluster.Config do
def get_value(scope, key) do
Application.get_env(scope, key)
|> retrive_runtime_value
end
def retrive_runtime_value({:system, env_key}) do
System.get_env(env_key)
end
def retrive_runtime_value(key) do
key
end
end
| 18.666667 | 50 | 0.732143 |
4a444109e17f183b5ea72f4e22d6f62a93919ae6 | 641 | exs | Elixir | phoenix/pfu/config/test.exs | cenezaraujo/unifor_prog_funcional | 08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1 | [
"Apache-2.0"
] | null | null | null | phoenix/pfu/config/test.exs | cenezaraujo/unifor_prog_funcional | 08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1 | [
"Apache-2.0"
] | null | null | null | phoenix/pfu/config/test.exs | cenezaraujo/unifor_prog_funcional | 08b5d75c535b10b7dca8ac26efc1dba14fe2a4f1 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :pfu, Pfu.Repo,
username: "postgres",
password: "postgres",
database: "pfu_test#{System.get_env("MIX_T... | 27.869565 | 62 | 0.74103 |
4a44a45f7f81e3752fea4247a0720ba275d757d5 | 2,950 | exs | Elixir | test/rsa_test.exs | valiot/rsa-ex | 4a50029ae8d33dae0211e30616d4de685cd5ac94 | [
"MIT"
] | null | null | null | test/rsa_test.exs | valiot/rsa-ex | 4a50029ae8d33dae0211e30616d4de685cd5ac94 | [
"MIT"
] | null | null | null | test/rsa_test.exs | valiot/rsa-ex | 4a50029ae8d33dae0211e30616d4de685cd5ac94 | [
"MIT"
] | null | null | null | defmodule RsaEx.RSATest do
use ExUnit.Case, async: true
test "generate_private_key() generates string" do
{:ok, priv} = RsaEx.generate_private_key
assert is_binary(priv)
end
test "generate_private_key(\"4096\") generates bigger string" do
{:ok, priv_2048} = RsaEx.generate_private_key
{:ok, pr... | 30.412371 | 83 | 0.68339 |
4a44a6246cf52de09626f257e29b00db81a23a43 | 1,740 | ex | Elixir | lib/movement/builders/new_slave.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/movement/builders/new_slave.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/movement/builders/new_slave.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Movement.Builders.NewSlave do
@behaviour Movement.Builder
import Movement.Context, only: [assign: 3]
alias Movement.Mappers.Operation, as: OperationMapper
alias Accent.Scopes.Translation, as: TranslationScope
alias Accent.Scopes.Revision, as: RevisionScope
alias Accent.{Translation, Revision, Re... | 30 | 99 | 0.699425 |
4a44ae743f0c2388a90fb6d1fb81e452a9ae035b | 2,793 | ex | Elixir | lib/earmark/helpers/html_parser.ex | sionide21/earmark | 72e086fa3bca781a4ba32da579c696bf75728b91 | [
"Apache-1.1"
] | null | null | null | lib/earmark/helpers/html_parser.ex | sionide21/earmark | 72e086fa3bca781a4ba32da579c696bf75728b91 | [
"Apache-1.1"
] | null | null | null | lib/earmark/helpers/html_parser.ex | sionide21/earmark | 72e086fa3bca781a4ba32da579c696bf75728b91 | [
"Apache-1.1"
] | null | null | null | defmodule Earmark.Helpers.HtmlParser do
@moduledoc false
import Earmark.Helpers.StringHelpers, only: [behead: 2]
import Earmark.LineScanner, only: [void_tag?: 1]
def parse_html(lines)
def parse_html([tag_line|rest]) do
case _parse_tag(tag_line) do
nil -> [tag_line|rest]
{ ... | 34.481481 | 104 | 0.571787 |
4a44b465682098dbcea0c650443dab32d8619f87 | 215 | exs | Elixir | priv/repo/migrations/20160311085217_create_article.exs | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | priv/repo/migrations/20160311085217_create_article.exs | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | 30 | 2016-08-21T18:33:11.000Z | 2020-04-12T23:16:18.000Z | priv/repo/migrations/20160311085217_create_article.exs | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | defmodule Scripture.Repo.Migrations.CreateArticle do
use Ecto.Migration
def change do
create table(:articles) do
add :title, :string
add :content, :string
timestamps()
end
end
end
| 15.357143 | 52 | 0.669767 |
4a4512c23db28d71c32937d3c3130a97112f8770 | 13,448 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/managedconfigurationsforuser.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/managedconfigurationsforuser.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/managedconfigurationsforuser.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... | 42.289308 | 373 | 0.638534 |
4a452203a979e9735ac3cf0d9605f766e5e1dc7a | 347 | exs | Elixir | priv/repo/seeds.exs | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | GabrielMalakias/strto | 523731953a15a845751235fe112fd2a1a75d1e1b | [
"MIT"
] | null | null | null | # 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:
#
# Strto.Repo.insert!(%Strto.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
4a4574e05f78df015f426130ae67396ed8397ae7 | 203 | exs | Elixir | priv/repo/migrations/20181023112702_add_copyright_to_posts.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20181023112702_add_copyright_to_posts.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20181023112702_add_copyright_to_posts.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.AddCopyrightToPosts do
use Ecto.Migration
def change do
alter table(:cms_posts) do
add(:copy_right, :string, default: "original")
end
end
end
| 20.3 | 62 | 0.729064 |
4a457c2d74b7ae708961e638856f3907d127d7f7 | 73 | exs | Elixir | test/test_helper.exs | areski/excdr-pusher | 45389e29ab97d11585f22fe29fd7da54d9f31ef8 | [
"MIT"
] | 3 | 2019-04-18T15:36:50.000Z | 2021-01-19T04:38:48.000Z | test/test_helper.exs | areski/excdr-pusher | 45389e29ab97d11585f22fe29fd7da54d9f31ef8 | [
"MIT"
] | null | null | null | test/test_helper.exs | areski/excdr-pusher | 45389e29ab97d11585f22fe29fd7da54d9f31ef8 | [
"MIT"
] | 3 | 2017-08-15T10:43:40.000Z | 2018-11-06T09:12:49.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(ExCdrPusher.Repo, :manual)
| 24.333333 | 57 | 0.794521 |
4a4585552684da02e6e76af7c09c6a0bcc9117a7 | 965 | exs | Elixir | mix.exs | emibloque/nicene | f22560520bf7da573ed3e046c49526b16eb4b407 | [
"MIT"
] | null | null | null | mix.exs | emibloque/nicene | f22560520bf7da573ed3e046c49526b16eb4b407 | [
"MIT"
] | null | null | null | mix.exs | emibloque/nicene | f22560520bf7da573ed3e046c49526b16eb4b407 | [
"MIT"
] | null | null | null | defmodule Nicene.MixProject do
use Mix.Project
@github_url "https://github.com/sketch-hq/nicene"
def project do
[
app: :nicene,
version: "0.2.2",
elixir: "~> 1.7",
start_permanent: false,
description: "A Credo plugin containing additional checks.",
deps: deps(),
pac... | 18.207547 | 66 | 0.481865 |
4a4586568b6d8ff563c082c502e0a35a1bdca5ed | 1,329 | ex | Elixir | lib/xdr/ledger_entries/claim_predicates.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/ledger_entries/claim_predicates.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/ledger_entries/claim_predicates.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.ClaimPredicates do
@moduledoc """
Representation of a Stellar `Predicates` list.
"""
alias StellarBase.XDR.ClaimPredicate
@behaviour XDR.Declaration
@max_length 2
@array_type ClaimPredicate
@array_spec %{type: @array_type, max_length: @max_length}
@type t :: %__MODULE__{... | 24.611111 | 67 | 0.69526 |
4a459f8e5ac65d0a8c76100111c2fcd5570f0937 | 2,169 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/setup_action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_management/lib/google_api/android_management/v1/model/setup_action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/setup_action.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 ... | 40.924528 | 136 | 0.750115 |
4a45a70b2960fa8348cf2543d4d5017dadf796d0 | 915 | ex | Elixir | lib/gardenhose/models/job.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | lib/gardenhose/models/job.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | lib/gardenhose/models/job.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | defmodule Gardenhose.Model.Job do
alias Gardenhose.Model.JobToJob, as: JobToJob
use Ecto.Model
import Ecto.Query, only: [from: 2]
schema "jobs" do
field :name, :string
has_many :children, JobToJob, foreign_key: :parent_id
has_many :parents, JobToJob, foreign_key: :child_id
end
validate job,
... | 27.727273 | 76 | 0.634973 |
4a461332fc6a1eccb56a44ba468cf3f39e9b7657 | 1,118 | ex | Elixir | lib/parseus/processors/validate_processor.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | 2 | 2017-10-18T17:53:43.000Z | 2020-05-01T23:31:36.000Z | lib/parseus/processors/validate_processor.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | null | null | null | lib/parseus/processors/validate_processor.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | null | null | null | defmodule Parseus.ValidateProcessor do
@moduledoc false
alias Parseus.{
CallUtil,
Error,
Set,
}
def call(set, keys, validator, opts) when is_list(keys) do
Enum.reduce(keys, set, &call(&2, &1, validator, opts))
end
def call(set = %Set{output: output}, key, validator, opts) do
with {:ok,... | 26 | 70 | 0.653846 |
4a462c8266cdae8b7ac215883afce88a666617ca | 2,321 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/update_line_properties_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_line_properties_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_line_properties_request.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... | 42.981481 | 527 | 0.740198 |
4a4640eb397e42329d3bd12e6cf542450eac4f22 | 2,521 | ex | Elixir | deps/phoenix_pubsub/lib/phoenix/tracker/delta_generation.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 3 | 2020-06-08T03:47:03.000Z | 2021-09-17T21:48:37.000Z | lib/phoenix/tracker/delta_generation.ex | grindrlabs/phoenix_pubsub | 27a9113dfa8a2e125ae74cfff36e6a322c8b97f4 | [
"MIT"
] | null | null | null | lib/phoenix/tracker/delta_generation.ex | grindrlabs/phoenix_pubsub | 27a9113dfa8a2e125ae74cfff36e6a322c8b97f4 | [
"MIT"
] | null | null | null | defmodule Phoenix.Tracker.DeltaGeneration do
@moduledoc false
require Logger
alias Phoenix.Tracker.{State, Clock, Replica}
@doc """
Extracts minimal delta from generations to satisfy remote clock.
Falls back to extracting entire crdt if unable to match delta.
"""
@spec extract(State.delta, [State.delt... | 38.19697 | 100 | 0.671956 |
4a46522b7092c25a60b9a52c5fc9fe12e79efadf | 9,356 | exs | Elixir | test/integration/docker_build_test.exs | bryanhuntesl/ex_docker_build | f6574b82cc38b851ceec2b43163c327c1cc13854 | [
"MIT"
] | 18 | 2019-01-15T10:54:05.000Z | 2022-03-29T22:15:06.000Z | test/integration/docker_build_test.exs | bryanhuntesl/ex_docker_build | f6574b82cc38b851ceec2b43163c327c1cc13854 | [
"MIT"
] | 28 | 2019-01-30T12:52:04.000Z | 2021-08-03T05:46:17.000Z | test/integration/docker_build_test.exs | bryanhuntesl/ex_docker_build | f6574b82cc38b851ceec2b43163c327c1cc13854 | [
"MIT"
] | 3 | 2020-02-03T06:45:03.000Z | 2022-03-06T10:05:18.000Z | defmodule ExDockerBuild.Integration.DockerBuildTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias ExDockerBuild.DockerBuild
alias ExDockerBuild.API.VolumeFilter
@moduletag :integration
@cwd File.cwd!()
@file_path Path.join([@cwd, "myfile.txt"])
describe "bind mount host dir into container" do
... | 35.574144 | 96 | 0.579521 |
4a469d7330efbd07aee2931478195a547b5e942b | 499 | ex | Elixir | web/lib/rfid_latachz_web/views/error_view.ex | latachz/latachz-rfid | dbb1462fa258568831de3600ae6108e91080cf0a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 1 | 2020-01-26T05:41:49.000Z | 2020-01-26T05:41:49.000Z | web/lib/rfid_latachz_web/views/error_view.ex | latachz/latachz-rfid | dbb1462fa258568831de3600ae6108e91080cf0a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 1 | 2020-05-26T09:28:01.000Z | 2020-05-26T09:28:01.000Z | web/lib/rfid_latachz_web/views/error_view.ex | latachz/latachz-rfid | dbb1462fa258568831de3600ae6108e91080cf0a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | defmodule RfidLatachzWeb.ErrorView do
use RfidLatachzWeb, :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 templ... | 29.352941 | 61 | 0.739479 |
4a46aa5ec9d74c0ed0b87e88e895b8f6b5c5b03d | 1,432 | exs | Elixir | mix.exs | dognotdog/nerves_captive_portal | fcbbf1aba778051e5d9da9a129de8f72b5ac1a2c | [
"MIT"
] | 1 | 2021-11-13T13:39:27.000Z | 2021-11-13T13:39:27.000Z | mix.exs | dognotdog/nerves_captive_portal | fcbbf1aba778051e5d9da9a129de8f72b5ac1a2c | [
"MIT"
] | null | null | null | mix.exs | dognotdog/nerves_captive_portal | fcbbf1aba778051e5d9da9a129de8f72b5ac1a2c | [
"MIT"
] | 1 | 2021-11-13T13:39:31.000Z | 2021-11-13T13:39:31.000Z | defmodule NervesCaptivePortal.MixProject do
use Mix.Project
def project do
[
app: :nerves_captive_portal,
version: "0.1.1",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases... | 25.571429 | 84 | 0.614525 |
4a46b49ca18f820a8888dd5b8fbfd04b260672e6 | 8,775 | ex | Elixir | lib/conform/releases/plugin.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 1 | 2021-06-15T08:07:13.000Z | 2021-06-15T08:07:13.000Z | lib/conform/releases/plugin.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | null | null | null | lib/conform/releases/plugin.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 1 | 2022-02-02T14:11:01.000Z | 2022-02-02T14:11:01.000Z | defmodule Conform.ReleasePlugin do
Module.register_attribute __MODULE__, :name, accumulate: false, persist: true
Module.register_attribute __MODULE__, :moduledoc, accumulate: false, persist: true
Module.register_attribute __MODULE__, :shortdoc, accumulate: false, persist: true
@name "conform"
@shortdoc "Gener... | 35.526316 | 144 | 0.628376 |
4a46cba30ace642b6a831bf8b989db53376aee40 | 525 | exs | Elixir | 30daysofcode/day29_bitwise_and.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | 2 | 2016-09-20T11:56:33.000Z | 2016-10-20T20:11:04.000Z | 30daysofcode/day29_bitwise_and.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | 30daysofcode/day29_bitwise_and.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | # HackerRank "30 Days of Code" - Day 29 - Bitwise AND
use Bitwise, only_operators: true
defmodule Solution do
defp calculate(input) do
[n,k] = String.split(input, " ")
|> Enum.map(fn(x)-> String.to_integer(x) end)
calculate(n,k)
end
defp calculate(n,k) when ((k-1)|||k) <= n, do: IO.puts(k-1)
def... | 21 | 61 | 0.609524 |
4a471f1aa884f0e5976625cfa223fa10ac5529be | 1,182 | ex | Elixir | lib/eden/parser/node.ex | kianmeng/Eden | 8334b51369f6e8cc196ca9ebf7358054a865254f | [
"Apache-2.0"
] | 33 | 2015-06-27T07:06:23.000Z | 2022-02-13T10:48:28.000Z | lib/eden/parser/node.ex | kianmeng/Eden | 8334b51369f6e8cc196ca9ebf7358054a865254f | [
"Apache-2.0"
] | 13 | 2015-06-06T17:18:11.000Z | 2015-06-13T17:48:26.000Z | lib/eden/parser/node.ex | jfacorro/ExEdn | 317194d42c252450852fac3d6b97d23b1dc4949c | [
"Apache-2.0"
] | 13 | 2015-12-17T11:17:23.000Z | 2020-11-01T11:39:49.000Z | defmodule Eden.Parser.Node do
defstruct type: nil, location: nil, value: nil, children: []
@behaviour Access
def fetch(map, key) do
Map.fetch(map, key)
end
def get(map, key, value) do
Map.get(map, key, value)
end
def pop(map, key) do
Map.pop(map, key)
end
def get_and_update(%{} = map, ... | 23.64 | 74 | 0.582064 |
4a472c3568c2b188dbe89290e0bd07e770e75424 | 484 | exs | Elixir | priv/repo/migrations/20190519081912_create_interactions.exs | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | priv/repo/migrations/20190519081912_create_interactions.exs | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | priv/repo/migrations/20190519081912_create_interactions.exs | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | defmodule PhoenixEventsLive.Repo.Migrations.CreateInteractions do
use Ecto.Migration
def change do
create table(:interactions) do
add :name, :string
add :type, :integer
add :text, :string
add :value, :string
add :visible, :boolean, default: :false
add :items, {:array, :strin... | 24.2 | 71 | 0.665289 |
4a472d3811f438fb70c721cb4eb8969f644a845e | 472 | exs | Elixir | examples/simple_app/mix.exs | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | 75 | 2021-11-17T11:55:13.000Z | 2022-03-28T04:35:04.000Z | examples/simple_app/mix.exs | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | 48 | 2021-11-15T13:56:14.000Z | 2022-03-31T15:55:47.000Z | examples/simple_app/mix.exs | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | 6 | 2021-12-22T20:41:27.000Z | 2022-03-09T09:07:38.000Z | defmodule SimpleApp.MixProject do
use Mix.Project
def project do
[
app: :simple_app,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ext... | 18.153846 | 59 | 0.584746 |
4a473526617a19a14548787a54eda6b6ef3d1c82 | 329 | ex | Elixir | ass4_1/lib/router.ex | Hasantha96/API-with-mnesia-elixir | 13124d6dd3607871c73ebf21b9aa5390ff17d1d5 | [
"MIT"
] | null | null | null | ass4_1/lib/router.ex | Hasantha96/API-with-mnesia-elixir | 13124d6dd3607871c73ebf21b9aa5390ff17d1d5 | [
"MIT"
] | null | null | null | ass4_1/lib/router.ex | Hasantha96/API-with-mnesia-elixir | 13124d6dd3607871c73ebf21b9aa5390ff17d1d5 | [
"MIT"
] | null | null | null | defmodule Router do
use Plug.Router
plug Plug.Logger
plug :match
plug Plug.Parsers, parsers: [:json],
pass: ["application/json"],
json_decoder: Jason
plug :dispatch
forward "/staff", to: Routes.StaffRoutes
match _ do
send_resp(conn, 400, "Invalid URL")
... | 19.352941 | 49 | 0.601824 |
4a474fae24e6b296fab1d02bbad5ae9b728df9ed | 23,310 | ex | Elixir | lib/ex_unit_properties.ex | endersstocker/stream_data | 5dd4698b0244a93941bbf984f133fc474cb4f249 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit_properties.ex | endersstocker/stream_data | 5dd4698b0244a93941bbf984f133fc474cb4f249 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit_properties.ex | endersstocker/stream_data | 5dd4698b0244a93941bbf984f133fc474cb4f249 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnitProperties do
@moduledoc """
Provides macros for property-based testing.
This module provides a few macros that can be used for property-based testing. The core is `check/3`,
which allows executing arbitrary tests on many pieces of generated data. Another one is
`property/3`, which is meant a... | 36.941363 | 103 | 0.672587 |
4a4768970543d2f2ef9fd086ef56b107476feed5 | 849 | ex | Elixir | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/arm_disaster_recovery_list_result.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.EventHub/lib/microsoft/azure/management/event_hub/model/arm_disaster_recovery_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/arm_disaster_recovery_list_result.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.EventHub.Model.ArmDisasterRecoveryListResult do
@moduledoc """
The result of the List Alias(Disaster Recovery confi... | 28.3 | 107 | 0.740872 |
4a476e3de809843d8dd1bf53e640204381666624 | 684 | exs | Elixir | apps/ex_rlp/test/ex_rlp/decode_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 22 | 2017-06-22T02:50:34.000Z | 2022-01-26T20:43:21.000Z | apps/ex_rlp/test/ex_rlp/decode_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 9 | 2018-10-08T22:56:56.000Z | 2018-10-18T20:41:55.000Z | apps/ex_rlp/test/ex_rlp/decode_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 5 | 2018-10-06T16:30:48.000Z | 2022-01-26T20:43:26.000Z | defmodule ExRLP.DecodeTest do
use ExUnit.Case
alias ExRLP.Decode
import ExRLP.TestUtils
describe "decode/2" do
test "correctly decodes objects" do
test_file_name = "rlptest.json"
test_file_name
|> read_json_file
|> Enum.each(fn {test_name, %{"in" => expected_result, "out" => input}... | 26.307692 | 96 | 0.631579 |
4a477c430cd887a36b67f5d5ab66b52605e6a908 | 1,833 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_list_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_list_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/orders_list_response.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... | 34.584906 | 149 | 0.715221 |
4a47aad7de92e92bf0bebc5c47122eaa779966ec | 9,883 | ex | Elixir | lib/iex/lib/iex/info.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/iex/lib/iex/info.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/iex/lib/iex/info.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defprotocol IEx.Info do
@fallback_to_any true
@spec info(term()) :: [{info_name :: String.Chars.t(), info :: String.t()}]
def info(term)
end
defimpl IEx.Info, for: Tuple do
def info(_tuple) do
[
{"Data type", "Tuple"},
{"Reference modules", "Tuple"}
]
end
end
defimpl IEx.Info, for: Atom... | 26.284574 | 98 | 0.620459 |
4a47febd5b5dd8f7a112ee0fac166958b1275803 | 2,057 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/update_data_source_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/update_data_source_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/update_data_source_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... | 41.14 | 256 | 0.741857 |
4a480348114716352bd98f5b3e552caaee80d590 | 4,672 | exs | Elixir | test/nimble_generator_test.exs | sthagen/dashbitco-nimble_parsec | fd7f4ef3d286257cfd018708624cf17886494d71 | [
"Apache-2.0"
] | null | null | null | test/nimble_generator_test.exs | sthagen/dashbitco-nimble_parsec | fd7f4ef3d286257cfd018708624cf17886494d71 | [
"Apache-2.0"
] | null | null | null | test/nimble_generator_test.exs | sthagen/dashbitco-nimble_parsec | fd7f4ef3d286257cfd018708624cf17886494d71 | [
"Apache-2.0"
] | null | null | null | defmodule NimbleGeneratorTest do
use ExUnit.Case, async: true
import NimbleParsec
describe "ascii_char" do
test "unbound" do
for _ <- 1..10 do
assert <<_>> = ascii_char([]) |> generate()
end
end
test "inclusive range" do
for _ <- 1..10 do
assert <<x>> = ascii_char(... | 30.940397 | 153 | 0.591182 |
4a480b54a5ae1609feadef1bc14bbb2cf1a0e660 | 1,115 | exs | Elixir | mix.exs | populimited/fernetex | a5c3ce9a246946ba8e3f3c98b6ba457d470953eb | [
"MIT"
] | 7 | 2015-09-08T15:16:43.000Z | 2022-02-14T04:30:55.000Z | mix.exs | populimited/fernetex | a5c3ce9a246946ba8e3f3c98b6ba457d470953eb | [
"MIT"
] | 6 | 2016-04-04T20:42:35.000Z | 2022-03-10T18:46:53.000Z | mix.exs | populimited/fernetex | a5c3ce9a246946ba8e3f3c98b6ba457d470953eb | [
"MIT"
] | 6 | 2016-02-16T00:05:06.000Z | 2021-06-16T10:24:31.000Z | defmodule Fernet.Mixfile do
use Mix.Project
@version "0.3.1"
def project do
[app: :fernetex,
version: @version,
elixir: "~> 1.4",
start_permanent: Mix.env == :prod,
docs: [source_ref: "v#{@version}", main: "Fernet",
source_url: "https://github.com/kennyp/fernetex"],
pack... | 24.777778 | 101 | 0.547085 |
4a48178d92c503260febb79ee62197733cc1ea16 | 240 | ex | Elixir | lib/conduit/blog/projections/tag.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | lib/conduit/blog/projections/tag.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | 2 | 2022-01-15T02:09:30.000Z | 2022-01-22T10:18:43.000Z | lib/conduit/blog/projections/tag.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | defmodule Conduit.Blog.Projections.Tag do
use Ecto.Schema
@primary_key {:uuid, :binary_id, autogenerate: true}
@timestamps_opts [type: :utc_datetime_usec]
schema "blog_tags" do
field :name, :string
timestamps()
end
end
| 18.461538 | 54 | 0.720833 |
4a481899da9d728ea6a298e3f0451f51727280f9 | 3,383 | ex | Elixir | lib/ecto/adapters/postgres/worker.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | 1 | 2016-08-15T21:23:28.000Z | 2016-08-15T21:23:28.000Z | lib/ecto/adapters/postgres/worker.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/postgres/worker.ex | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Postgrex.Connection) do
defmodule Ecto.Adapters.Postgres.Worker do
@moduledoc false
use GenServer
def start(args) do
GenServer.start(__MODULE__, args)
end
def start_link(args) do
GenServer.start_link(__MODULE__, args)
end
def query!(worker, sql, param... | 26.637795 | 86 | 0.575525 |
4a482f26c7032ad1a59dbd80ff40a478348e49dc | 761 | ex | Elixir | lib/rumbl_web/controllers/session_controller.ex | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | lib/rumbl_web/controllers/session_controller.ex | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | null | null | null | lib/rumbl_web/controllers/session_controller.ex | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | null | null | null | defmodule RumblWeb.SessionController do
use RumblWeb, :controller
def new(conn, _) do
render(conn, "new.html")
end
def create(
conn,
%{"session" => %{"username" => username, "password" => pass}}
) do
case Rumbl.Accounts.authenticate_by_username_and_pass(username, pass) do
{:ok, user} -... | 23.78125 | 76 | 0.595269 |
4a48a9ed381b02090a53ed7d7def6d9459e4aa3a | 9,456 | ex | Elixir | clients/container/lib/google_api/container/v1/model/node_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_config.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... | 50.83871 | 175 | 0.694162 |
4a48bef8d9e5a7dd3023a81716b65d3d3f656c16 | 2,240 | ex | Elixir | lib/casino/games/blackjack/server.ex | vellov/SQTests | 3bf20bb15245c11547efd885532be15044493eaf | [
"MIT"
] | null | null | null | lib/casino/games/blackjack/server.ex | vellov/SQTests | 3bf20bb15245c11547efd885532be15044493eaf | [
"MIT"
] | null | null | null | lib/casino/games/blackjack/server.ex | vellov/SQTests | 3bf20bb15245c11547efd885532be15044493eaf | [
"MIT"
] | null | null | null | defmodule Casino.Games.Blackjack.Server do
use GenServer
# Client
def start_link(state) do
GenServer.start_link(__MODULE__, state, name: __MODULE__)
end
@doc """
Add a new table
"""
def add_table(count) do
GenServer.cast(__MODULE__, {:add, count})
end
@doc """
Remove an existing table
... | 20 | 75 | 0.669643 |
4a48cdc3f54a653db5c05c9382cd9a19d328d1a8 | 1,875 | ex | Elixir | apps/aehttpserver/lib/aehttpserver/web/controllers/block_controller.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aehttpserver/lib/aehttpserver/web/controllers/block_controller.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aehttpserver/lib/aehttpserver/web/controllers/block_controller.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | defmodule Aehttpserver.Web.BlockController do
use Aehttpserver.Web, :controller
alias Aecore.Chain.Worker, as: Chain
alias Aeutil.Serialization
alias Aecore.Chain.BlockValidation
alias Aecore.Structures.Block
alias Aecore.Peers.Sync
def show(conn, params) do
block = Chain.get_block_by_hex_hash(param... | 29.296875 | 74 | 0.6512 |
4a490065d4d6fc922bd474b534472525787a9718 | 2,927 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_template_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/instance_template_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/instance_template_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... | 47.209677 | 393 | 0.720875 |
4a491ca4cd58477dabb94535be774a5970b120b4 | 5,125 | ex | Elixir | lib/absinthe/phase/document/validation/arguments_of_correct_type.ex | ymtszw/absinthe | cc9cf2dcde981b6a49fdc0ea20f60f9d6e9aa9fd | [
"MIT"
] | 1 | 2020-08-12T12:34:40.000Z | 2020-08-12T12:34:40.000Z | lib/absinthe/phase/document/validation/arguments_of_correct_type.ex | ymtszw/absinthe | cc9cf2dcde981b6a49fdc0ea20f60f9d6e9aa9fd | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | lib/absinthe/phase/document/validation/arguments_of_correct_type.ex | ymtszw/absinthe | cc9cf2dcde981b6a49fdc0ea20f60f9d6e9aa9fd | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.ArgumentsOfCorrectType do
@moduledoc false
# Validates document to ensure that all arguments are of the correct type.
alias Absinthe.{Blueprint, Phase, Phase.Document.Validation.Utils, Schema, Type}
use Absinthe.Phase
@doc """
Run this validation.
"""
@sp... | 29.285714 | 97 | 0.667317 |
4a492b906efc3de26a88b596531f9dbab007cd57 | 1,762 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_operation_metadata.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... | 33.245283 | 129 | 0.724177 |
4a494623de0a9496d4c6ac99ccd994cb6d94ab90 | 7,652 | ex | Elixir | lib/excoin/opcodes.ex | johncosch/excoin | 2444d8ea4619013a5da5bb94f92c42e278bbdef4 | [
"MIT"
] | 1 | 2016-10-18T23:41:33.000Z | 2016-10-18T23:41:33.000Z | lib/excoin/opcodes.ex | johncosch/excoin | 2444d8ea4619013a5da5bb94f92c42e278bbdef4 | [
"MIT"
] | null | null | null | lib/excoin/opcodes.ex | johncosch/excoin | 2444d8ea4619013a5da5bb94f92c42e278bbdef4 | [
"MIT"
] | 1 | 2016-06-28T21:28:48.000Z | 2016-06-28T21:28:48.000Z | defmodule Excoin.Opcodes do
def code(:OP_0), do: 0
def code(:OP_FALSE), do: 0
def code(:OP_1), do: 81
def code(:OP_TRUE), do: 81
def code(:OP_2), do: 0x52
def code(:OP_3), do: 0x53
def code(:OP_4), do: 0x54
def code(:OP_5), do: 0x55
def code(:OP_6), do: 0x56
def code(:OP_7), do: 0x57
def code(:OP_8), do: 0x... | 25.938983 | 89 | 0.614088 |
4a4956e130bd58551bdf18f262344f9befd4288d | 1,386 | ex | Elixir | test/support/data_case.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 1 | 2019-05-03T13:39:40.000Z | 2019-05-03T13:39:40.000Z | test/support/data_case.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 13 | 2019-03-27T05:40:41.000Z | 2019-05-24T10:43:31.000Z | test/support/data_case.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | null | null | null | defmodule Towwwer.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test... | 25.666667 | 77 | 0.680375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.