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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
214743a9ce7becbeb1c540f43396ec89b8335be1 | 1,653 | ex | Elixir | clients/search_console/lib/google_api/search_console/v1/model/image.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/search_console/lib/google_api/search_console/v1/model/image.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/search_console/lib/google_api/search_console/v1/model/image.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... | 32.411765 | 190 | 0.727768 |
21475a1b24e6426da08a5026036886702ae6b451 | 45 | ex | Elixir | lib/asteroid.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 36 | 2019-07-23T20:01:05.000Z | 2021-08-05T00:52:34.000Z | lib/asteroid.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 19 | 2019-08-23T19:04:50.000Z | 2021-05-07T22:12:25.000Z | lib/asteroid.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 3 | 2019-09-06T10:47:20.000Z | 2020-09-09T03:43:31.000Z | defmodule Asteroid do
@moduledoc false
end
| 11.25 | 21 | 0.8 |
2147745b3aed9cf1d7828017c2290372204bb03f | 1,835 | exs | Elixir | mix.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | null | null | null | mix.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | 2 | 2021-05-24T21:41:25.000Z | 2021-05-25T16:02:09.000Z | mix.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | null | null | null | defmodule CvCreator.MixProject do
use Mix.Project
def project do
[
app: :cv_creator,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases()... | 27.80303 | 84 | 0.581471 |
2147996af10876eb6e003328923f533de0a271d4 | 2,242 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/products_list_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/products_list_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/products_list_response.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... | 41.518519 | 172 | 0.748885 |
21479db450de9e8b6bc7dd0805e21d417ed6cb28 | 1,255 | ex | Elixir | test/support/conn_case.ex | joshnuss/satellite-prototype | 9cf813d8b75efab9a8118f9fecb9ac6f70bd841a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | joshnuss/satellite-prototype | 9cf813d8b75efab9a8118f9fecb9ac6f70bd841a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | joshnuss/satellite-prototype | 9cf813d8b75efab9a8118f9fecb9ac6f70bd841a | [
"MIT"
] | null | null | null | defmodule SatelliteWeb.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, if ... | 28.522727 | 71 | 0.72749 |
21479db61d8f04f22e8ddb33f6ace9a4a0ce66b7 | 496 | ex | Elixir | a-more-complex-example/duper/lib/duper/pathfinder.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | a-more-complex-example/duper/lib/duper/pathfinder.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | a-more-complex-example/duper/lib/duper/pathfinder.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule Duper.PathFinder do
use GenServer
@me __MODULE__
def start_link(root) do
GenServer.start_link(__MODULE__, root, name: @me)
end
def next_path() do
GenServer.call(@me, :next_path)
end
def init(path) do
DirWalker.start_link(path)
end
def handle_call(:next_path, _from,... | 19.84 | 53 | 0.625 |
2147b654fa608f8300dfdddbf99beff2bf706d5b | 1,264 | ex | Elixir | test/support/app_case.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | test/support/app_case.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | test/support/app_case.ex | jnylen/roger | 074338eceae4783221088e8b235a635452708ef1 | [
"MIT"
] | null | null | null | defmodule Roger.AppCase do
@moduledoc false
use ExUnit.CaseTemplate
using(opts) do
queues = opts[:queues] || [default: 10]
quote do
@app "test"
require Logger
alias Roger.{Partition, Queue, Job}
setup do
Process.register(self(), unquote(__CALLER__.module))
{:ok... | 23.849057 | 83 | 0.545886 |
2147c13c72f257ca5bc095c932852a513b861eb5 | 1,490 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/account_access.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/account_access.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/account_access.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 ... | 31.702128 | 135 | 0.740268 |
2147cffda1d16259ef5e3dfdc910de21a8f8071b | 881 | ex | Elixir | lib/hl7/2.5.1/segments/pr1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/pr1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/pr1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.Segments.PR1 do
@moduledoc false
require Logger
alias HL7.V2_5_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_pr1: nil,
procedure_coding_method: nil,
procedure_code: DataTypes.Ce,
procedure_description: nil,
procedure_date_time: DataT... | 27.53125 | 46 | 0.699205 |
2147e8d5c41a0618380f9878f9a56d8f84f46508 | 3,931 | ex | Elixir | lib/web/controllers/peek_controller.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/web/controllers/peek_controller.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/web/controllers/peek_controller.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.PeekController do
use Phoenix.Controller
import Canary.Plugs
import Accent.Plugs.RevisionIdFromProjectLanguage
alias Movement.Builders.ProjectSync, as: ProjectSyncBuilder
alias Movement.Builders.RevisionMerge, as: RevisionMergeBuilder
alias Movement.Comparers.Sync, as: SyncComparer
alia... | 27.48951 | 118 | 0.67769 |
2147fbf248941a05a286dc575a1f44c974ba314c | 217 | exs | Elixir | elixir/tour/ch04.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/ch04.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | elixir/tour/ch04.exs | supeterlau/bedev | c134875eae37d265936199fda278416e2a3c1224 | [
"MIT"
] | null | null | null | x = 1
1 = x
IO.inspect x
# 2 = x
{a, b, c} = {:hello, "world", 42}
IO.inspect a
IO.inspect b
IO.inspect c
[o,p,q] = [120,130,150]
IO.inspect {o,p,q}
IO.inspect [:ok | [o,p,q]]
{m, ^o} = {110, 120}
IO.inspect m
| 10.333333 | 33 | 0.539171 |
214818ba6e6760d0a81864f67160234e848118c0 | 609 | ex | Elixir | lib/transit_realtime/position.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | lib/transit_realtime/position.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | lib/transit_realtime/position.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule TransitRealtime.Position do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
latitude: float,
longitude: float,
bearing: float,
odometer: float,
speed: float
}
@derive Jason.Encoder
defstruct [:latitude, :longitude, :be... | 29 | 64 | 0.63711 |
21482d665059bc2e19ff7d258f21dd051a0f8141 | 6,202 | ex | Elixir | clients/content/lib/google_api/content/v2/api/orderinvoices.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/orderinvoices.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/orderinvoices.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... | 39.503185 | 306 | 0.683328 |
214840d6ca6f205959fee1cae0f988a7fd81d04e | 342 | ex | Elixir | lib/seren_web/controllers/search_controller.ex | allen-garvey/seren | f61cb7edcd7d3f927d2929db14b2a4a1578a3925 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/seren/lib/seren_web/controllers/search_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | lib/seren_web/controllers/search_controller.ex | allen-garvey/seren | f61cb7edcd7d3f927d2929db14b2a4a1578a3925 | [
"MIT"
] | null | null | null | defmodule SerenWeb.SearchController do
use SerenWeb, :controller
alias Seren.Player
action_fallback SerenWeb.FallbackController
def tracks_for(conn, %{"q" => query}) do
tracks = Player.tracks_for_search(query, 1000)
conn
|> put_view(SerenWeb.TrackView)
|> SerenWeb.TrackController.index_pa... | 21.375 | 52 | 0.730994 |
21484a72415fbd9ad046e7554d9c8148a5c8fe40 | 133 | exs | Elixir | test/consumer/util_test.exs | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | test/consumer/util_test.exs | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | test/consumer/util_test.exs | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | defmodule Cafex.Consumer.Util.Test do
use ExUnit.Case, async: true
import Cafex.Consumer.Util
doctest Cafex.Consumer.Util
end
| 19 | 37 | 0.781955 |
21487dacd93cc0b59106ba9991034cf57da641b3 | 396 | ex | Elixir | lib/source_academy/course/discussion_group.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy/course/discussion_group.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | lib/source_academy/course/discussion_group.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | defmodule SourceAcademy.Course.DiscussionGroup do
@moduledoc false
use SourceAcademy, :model
alias SourceAcademy.Course.Student
alias SourceAcademy.Accounts.User
schema "discussion_group" do
belongs_to :student, Student
belongs_to :staff, User
timestamps()
end
def changeset(discussion_grou... | 19.8 | 51 | 0.729798 |
21488f8900a01be3ca984282c5197e5a1755ebe7 | 313 | ex | Elixir | test/verify/matryoshka.ex | devstopfix/regex_spec | 216b731c855259b494d2a312464f9429b4f1b380 | [
"MIT"
] | 1 | 2021-02-10T10:43:34.000Z | 2021-02-10T10:43:34.000Z | test/verify/matryoshka.ex | devstopfix/regex_spec | 216b731c855259b494d2a312464f9429b4f1b380 | [
"MIT"
] | null | null | null | test/verify/matryoshka.ex | devstopfix/regex_spec | 216b731c855259b494d2a312464f9429b4f1b380 | [
"MIT"
] | null | null | null | defmodule Regex.Verify.Matryoshka do
@moduledoc "Verify spec of Matryoshka regex"
alias Regex.Spec.Matryoshka
@spec run(binary) :: nil | [String.t()]
def run(s), do: Matryoshka.run(s)
@spec runt(binary) :: nil | {Map.t(), String.t(), String.t(), String.t()}
def runt(s), do: Matryoshka.runt(s)
end
| 26.083333 | 75 | 0.664537 |
21488ff9c9cf0376172de62fac1ebbe535e153db | 5,706 | ex | Elixir | apps/examples/test/support/e2e/ping_pong.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/examples/test/support/e2e/ping_pong.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/examples/test/support/e2e/ping_pong.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule ExamplesSupport.E2E.PingPong do
import Tai.TestSupport.Mock
alias Tai.TestSupport.Mocks
alias Tai.NewOrders
@venue :test_exchange_a
@credential :main
@venue_product "BTC-USD"
@product :btc_usd
@product_type :swap
@price_increment Decimal.new("0.5")
@entry_venue_order_id_1 "entryOrderA"
... | 27.432692 | 94 | 0.622503 |
2148af4ee031e4399040874fa306e40314982870 | 991 | ex | Elixir | lib/accent/schemas/collaborator.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/accent/schemas/collaborator.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/accent/schemas/collaborator.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Collaborator do
use Accent.Schema
require Accent.Role
schema "collaborators" do
field(:email, :string)
field(:role, :string)
belongs_to(:user, Accent.User)
belongs_to(:assigner, Accent.User)
belongs_to(:project, Accent.Project)
timestamps()
end
@required_fields ~w... | 26.078947 | 77 | 0.700303 |
2148b63292ea1fddb5772a0cd98eedc9e166e753 | 768 | ex | Elixir | lib/remedy/schema/team_member.ex | bdanklin/nostrum | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | 3 | 2021-09-05T09:44:02.000Z | 2022-01-26T15:31:50.000Z | lib/remedy/schema/team_member.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | lib/remedy/schema/team_member.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | defmodule Remedy.Schema.TeamMember do
@moduledoc """
Discord Team Member Object
"""
use Remedy.Schema
@type t :: %__MODULE__{
membership_state: integer(),
permissions: [String.t()],
team: Team.t(),
user: User.t()
}
@primary_key false
embedded_schema do
... | 24 | 59 | 0.643229 |
2148fce576adb941bb701ecda0fc110d9ed29119 | 6,498 | ex | Elixir | installer/lib/quenya_installer/generator.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | installer/lib/quenya_installer/generator.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | installer/lib/quenya_installer/generator.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule QuenyaInstaller.Generator do
@moduledoc """
Quenya user project template generator. Inspired by phoenix installer.
"""
import Mix.Generator
alias QuenyaInstaller.Project
@quenya Path.expand("../..", __DIR__)
@quenya_version Version.parse!(Mix.Project.config()[:version])
@callback prepare_pr... | 29.139013 | 107 | 0.624962 |
2149053ddf930089c010922b634fe4e3e595f44d | 144 | exs | Elixir | test/noven_link_test.exs | ConnorRigby/noven_link | 8ad7a9247bc79a2b2494c61ba291b1f6600e4ff9 | [
"Apache-2.0"
] | 3 | 2020-09-10T09:26:00.000Z | 2022-03-25T03:43:02.000Z | test/noven_link_test.exs | ConnorRigby/noven_link | 8ad7a9247bc79a2b2494c61ba291b1f6600e4ff9 | [
"Apache-2.0"
] | null | null | null | test/noven_link_test.exs | ConnorRigby/noven_link | 8ad7a9247bc79a2b2494c61ba291b1f6600e4ff9 | [
"Apache-2.0"
] | 2 | 2021-01-04T16:21:44.000Z | 2021-02-09T17:22:23.000Z | defmodule NovenLinkTest do
use ExUnit.Case
doctest NovenLink
test "greets the world" do
assert NovenLink.hello() == :world
end
end
| 16 | 38 | 0.722222 |
21492ff01239239dfc053979e6d4b8189e7aa26e | 2,499 | exs | Elixir | test/vutuv_web/email_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | test/vutuv_web/email_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | test/vutuv_web/email_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule VutuvWeb.EmailTest do
use ExUnit.Case
use Bamboo.Test
alias VutuvWeb.{Auth.Otp, Email}
setup do
email = "deirdre@example.com"
secret = OneTimePassEcto.Base.gen_secret()
{:ok, %{email: email, code: Otp.create(secret)}}
end
describe "verification request" do
test "sends verificati... | 39.046875 | 92 | 0.709084 |
21493a00bb6c20431e7abb2e3fae88cf249c979a | 2,369 | exs | Elixir | mix.exs | 0urobor0s/cldr_units_sql | be1f54f5a6632ace0658b40f957085cea72e3c00 | [
"Apache-2.0"
] | null | null | null | mix.exs | 0urobor0s/cldr_units_sql | be1f54f5a6632ace0658b40f957085cea72e3c00 | [
"Apache-2.0"
] | null | null | null | mix.exs | 0urobor0s/cldr_units_sql | be1f54f5a6632ace0658b40f957085cea72e3c00 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Units.Sql.Mixfile do
use Mix.Project
@version "0.3.0"
def project do
[
app: :ex_cldr_units_sql,
version: @version,
elixir: "~> 1.8",
name: "Cldr Units SQL",
source_url: "https://github.com/elixir-cldr/cldr_units_sql",
docs: docs(),
build_embedded: Mix... | 25.202128 | 101 | 0.554664 |
21494a43b705e7e9b19546a24e15914a334974dc | 1,037 | ex | Elixir | payment_api/lib/payment_api/application.ex | dennisurtubia/elixir-phoenix | 964c6f708e9491e31aafb927a303eec647c03062 | [
"MIT"
] | null | null | null | payment_api/lib/payment_api/application.ex | dennisurtubia/elixir-phoenix | 964c6f708e9491e31aafb927a303eec647c03062 | [
"MIT"
] | null | null | null | payment_api/lib/payment_api/application.ex | dennisurtubia/elixir-phoenix | 964c6f708e9491e31aafb927a303eec647c03062 | [
"MIT"
] | null | null | null | defmodule PaymentApi.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
PaymentApi.Repo,
# Start the Telemetry supervisor
P... | 29.628571 | 68 | 0.70974 |
214958a009b19de6e95caf2e54047499a4e7a0ab | 3,353 | ex | Elixir | lib/prestige/client.ex | dorilla/prestige | 796db3dd2cf4d6dfb908c3932d1ae84c685b8c03 | [
"Apache-2.0"
] | null | null | null | lib/prestige/client.ex | dorilla/prestige | 796db3dd2cf4d6dfb908c3932d1ae84c685b8c03 | [
"Apache-2.0"
] | null | null | null | lib/prestige/client.ex | dorilla/prestige | 796db3dd2cf4d6dfb908c3932d1ae84c685b8c03 | [
"Apache-2.0"
] | null | null | null | defmodule Prestige.Client do
@moduledoc false
alias Prestige.Session
alias Prestige.Client.{Arguments, RequestStream, ResponseParser}
@presto_transaction_id "X-Presto-Transaction-Id"
@presto_started_transaction_id "x-presto-started-transaction-id"
@presto_added_prepare "x-presto-added-prepare"
defmodule... | 28.65812 | 118 | 0.658813 |
21495c76ed2710789531794872def89bd09b9b9a | 1,292 | exs | Elixir | lib/iex/test/iex/server_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/iex/test/iex/server_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/server_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule IEx.ServerTest do
use IEx.Case, async: true
# Options
test "prefix option" do
assert capture_io(fn ->
boot([prefix: "pry"])
end) =~ "pry(1)> "
end
test "env option" do
assert capture_io("__ENV__.file", fn ->
boot([env: __ENV... | 23.071429 | 70 | 0.583591 |
21496c753331316833d1ee4be120a4f759ee75c8 | 2,888 | ex | Elixir | lib/rasa_sdk/actions/events.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | 2 | 2020-09-24T09:58:52.000Z | 2021-02-08T12:35:55.000Z | lib/rasa_sdk/actions/events.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | null | null | null | lib/rasa_sdk/actions/events.ex | r26D/rasa-sdk-elixir | 65da9444add5da2e2c0989c36bcbdf902733c709 | [
"Apache-2.0"
] | null | null | null | defmodule RasaSDK.Actions.Events do
def user_uttered(text, parse_data, input_channel, timestamp \\ nil) do
%{
event: "user",
timestamp: timestamp,
text: text,
parse_data: parse_data,
input_channel: input_channel
}
end
def bot_uttered(text, data, metadata, timestamp \\ nil) d... | 25.333333 | 94 | 0.640235 |
21497371377f23973a172df6c145c9bab681dd7a | 458 | exs | Elixir | test/fixtures/templates/simple_with_config/mix.exs | chulkilee/exgen | 66c20a1cd52079affab95ac621179f995073ab7a | [
"MIT"
] | 36 | 2016-09-21T17:56:02.000Z | 2021-07-16T21:49:36.000Z | test/fixtures/templates/simple_with_config/mix.exs | chulkilee/exgen | 66c20a1cd52079affab95ac621179f995073ab7a | [
"MIT"
] | 4 | 2017-03-06T17:59:20.000Z | 2020-01-21T06:41:53.000Z | test/fixtures/templates/simple_with_config/mix.exs | chulkilee/exgen | 66c20a1cd52079affab95ac621179f995073ab7a | [
"MIT"
] | 6 | 2017-03-06T14:59:08.000Z | 2021-09-30T15:02:17.000Z | defmodule <%= module %>.Mixfile do
use Mix.Project
def project do
[app: :<%= app_name %>,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[
applications: [:cowboy, :plug, :logge... | 16.962963 | 46 | 0.489083 |
21497b5b2bc1f379b1b32e0fdfe5ffb7d7d34c7d | 740 | exs | Elixir | test/test_helper.exs | nakagami/firebirdex | a9b64e52daf81566f6325987e750ec878db113b3 | [
"Apache-2.0"
] | 22 | 2019-02-09T14:48:13.000Z | 2022-03-20T14:23:54.000Z | test/test_helper.exs | nakagami/firebirdex | a9b64e52daf81566f6325987e750ec878db113b3 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | nakagami/firebirdex | a9b64e52daf81566f6325987e750ec878db113b3 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
defmodule TestHelpers do
def opts() do
database = :lists.flatten(
:io_lib.format("/tmp/~p.fdb", [:erlang.system_time()]))
[
hostname: "localhost",
username: System.get_env("ISC_USER", "sysdba"),
password: System.get_env("ISC_PASSWORD", "masterkey"),
database: dat... | 28.461538 | 81 | 0.666216 |
214981d01fdd27397ff9fe186054a20640b9395d | 5,105 | ex | Elixir | lib/advanced_pool/pool/worker_supervisor/worker_supervisor_behaviour.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/pool/worker_supervisor/worker_supervisor_behaviour.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/pool/worker_supervisor/worker_supervisor_behaviour.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedPool.V3.WorkerSupervisorBehaviour do
@moduledoc "... | 39.882813 | 168 | 0.66523 |
2149c17dae97eac199a3aaf98d1074be672605aa | 857 | exs | Elixir | test/features/send_action_item_to_users_via_email_test.exs | steven-solomon/remote_retro | d37a508e095db202b3faf5b36e3dbc65d6b29be7 | [
"MIT"
] | null | null | null | test/features/send_action_item_to_users_via_email_test.exs | steven-solomon/remote_retro | d37a508e095db202b3faf5b36e3dbc65d6b29be7 | [
"MIT"
] | null | null | null | test/features/send_action_item_to_users_via_email_test.exs | steven-solomon/remote_retro | d37a508e095db202b3faf5b36e3dbc65d6b29be7 | [
"MIT"
] | null | null | null | defmodule SendActionItemToUsersViaEmailTest do
alias RemoteRetro.{Emails, Idea}
use RemoteRetro.IntegrationCase, async: false
use Bamboo.Test, shared: true
import ShorterMaps
describe "when an action-item already exists in a retro" do
setup [:persist_idea_for_retro]
@tag [
idea: %Idea{categor... | 30.607143 | 90 | 0.712952 |
2149caf00439c47c976db7f69ef3861e0b31bdcd | 794 | exs | Elixir | config/test.exs | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | config/test.exs | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | config/test.exs | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, backends: []
config :ex_unit,
capture_log: true,
assert_receive_timeout: 2_000,
refute_receive_timeout: 100
default_config = [
username: "postgres",
password: "postgres",
database: "eventstore_test",
hostname: "localhost",
pool_size: 1,
pool_overflow: 0,
registry: :... | 28.357143 | 97 | 0.788413 |
2149e15663e6d9f46c3931ae3945e193aa943b97 | 729 | exs | Elixir | mix.exs | mariomelo/serum-theme-guma | 2320a9d556734a8e5b39f54038aff7d7599c9607 | [
"MIT"
] | null | null | null | mix.exs | mariomelo/serum-theme-guma | 2320a9d556734a8e5b39f54038aff7d7599c9607 | [
"MIT"
] | null | null | null | mix.exs | mariomelo/serum-theme-guma | 2320a9d556734a8e5b39f54038aff7d7599c9607 | [
"MIT"
] | null | null | null | defmodule Serum.Themes.Guma.MixProject do
use Mix.Project
def project do
[
app: :serum_theme_guma,
version: "1.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package()
]
end
def application do
[
extra_applications: [:lo... | 18.692308 | 87 | 0.555556 |
2149ee1c5248ea69155bde1da0db4a0aa6d2bcfb | 550 | ex | Elixir | 284-created-a-zeroed-list-of-integers.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | 284-created-a-zeroed-list-of-integers.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | 284-created-a-zeroed-list-of-integers.ex | kxyzd/exidioms | 05638d739b34080ec30c39311812890d24dbc169 | [
"CC0-1.0"
] | null | null | null | # Created a zeroed list of integers
# ---------------------------------------------------
# Create a new list a (or array, or slice) of size n,
# where all elements are integers initialized with
# the value 0.
# ---------------------------------------------------
# https://programming-idioms.org/idiom/284/created-a-... | 27.5 | 76 | 0.54 |
2149ef5b62b24a61fe57303043549f2e67a580f2 | 4,522 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/api/scans.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/api/scans.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/api/scans.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.104167 | 225 | 0.651039 |
214a14f16f077a70782ef3a8510476c782dc9b95 | 7,044 | ex | Elixir | lib/k8s/conn.ex | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | null | null | null | lib/k8s/conn.ex | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | 2 | 2022-03-28T03:22:37.000Z | 2022-03-28T03:22:54.000Z | lib/k8s/conn.ex | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | null | null | null | defmodule K8s.Conn do
@moduledoc """
Handles authentication and connection configuration details for a Kubernetes cluster.
"""
alias __MODULE__
alias K8s.Conn.{PKI, RequestOptions}
alias K8s.Resource.NamedList
require Logger
@default_service_account_path "/var/run/secrets/kubernetes.io/serviceaccount"... | 31.306667 | 155 | 0.620954 |
214a2274d7056ed10c194677e28a10d9affc3e45 | 487 | ex | Elixir | test/support/test_setup/shipping_method.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | test/support/test_setup/shipping_method.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | test/support/test_setup/shipping_method.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.TestSetup.ShippingMethod do
alias Nectar.Repo
@names ["regular", "express"]
def create_shipping_methods(names \\ @names, enabled \\ true)
def create_shipping_methods(names, enabled) when is_list(names) do
Enum.map(names, fn (name) -> create_shipping_methods(name, enabled) end)
end
d... | 28.647059 | 110 | 0.741273 |
214a23e0b4ecffcc56bec1bedb33d5f4d7f20811 | 1,445 | exs | Elixir | test/writer/writer_test.exs | Koch-AG/blue_bird | fb84b8746104997c4c2e41ff800f16cf234a2bc9 | [
"MIT"
] | null | null | null | test/writer/writer_test.exs | Koch-AG/blue_bird | fb84b8746104997c4c2e41ff800f16cf234a2bc9 | [
"MIT"
] | null | null | null | test/writer/writer_test.exs | Koch-AG/blue_bird | fb84b8746104997c4c2e41ff800f16cf234a2bc9 | [
"MIT"
] | null | null | null | defmodule BlueBird.Test.Writer do
use BlueBird.Test.Support.ConnCase
alias BlueBird.Route
alias BlueBird.Test.Support.Examples
alias BlueBird.Writer
describe "run/1" do
test "writes api doc to file" do
alias BlueBird.Test.Support.Examples.Grouping
Writer.run(Grouping.api_doc())
path_... | 26.272727 | 76 | 0.647751 |
214a246b2bf2b1358cbbd0eac16f4d058977f640 | 9,817 | ex | Elixir | deps/phoenix/lib/phoenix/router/helpers.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router/helpers.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router/helpers.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | defmodule Phoenix.Router.Helpers do
# Module that generates the routing helpers.
@moduledoc false
alias Phoenix.Router.Route
alias Phoenix.Socket
alias Plug.Conn
@doc """
Callback invoked by url generated in each helper module.
"""
def url(_router, %Conn{private: private}) do
private.phoenix_end... | 33.619863 | 147 | 0.645105 |
214a25648410b58855de3cfa47d211c62e44f9af | 591 | ex | Elixir | backend/lib/spades_web/controllers/fallback_controller.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_web/controllers/fallback_controller.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_web/controllers/fallback_controller.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use SpadesWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_status(... | 25.695652 | 72 | 0.692047 |
214a412ef555b6884546cc476495e339a6071ba8 | 837 | exs | Elixir | test/petal/heroicons_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | test/petal/heroicons_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | test/petal/heroicons_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | defmodule PetalComponents.HeroiconsTest do
use ComponentCase
alias PetalComponents.Heroicons
test "it renders heroicons solid icon and color correctly" do
assigns = %{}
html = rendered_to_string(
~H"""
<Heroicons.Solid.home />
"""
)
assert html =~ "<svg class="
assert html =... | 20.925 | 66 | 0.602151 |
214a61f3e2f3cea6fc7b6915cfec4d952ad0d988 | 1,582 | exs | Elixir | mix.exs | tineo/absinthe_ecto | 55e31dfd4e7932c1e31c8beac7aa22d663fdc304 | [
"MIT"
] | null | null | null | mix.exs | tineo/absinthe_ecto | 55e31dfd4e7932c1e31c8beac7aa22d663fdc304 | [
"MIT"
] | null | null | null | mix.exs | tineo/absinthe_ecto | 55e31dfd4e7932c1e31c8beac7aa22d663fdc304 | [
"MIT"
] | null | null | null | defmodule Absinthe.Ecto.Mixfile do
use Mix.Project
@version "0.1.3"
def project do
[app: :absinthe_ecto,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
package: package(),
sou... | 27.754386 | 77 | 0.595449 |
214a72a93bbc73a13e8407f400dbce1899d5a7b8 | 772 | ex | Elixir | lib/exo_redis/redis/core/error.ex | tckb/exo_redis | b774ef1dc52c843866369e5d5f96fd6358d2e9d4 | [
"MIT"
] | null | null | null | lib/exo_redis/redis/core/error.ex | tckb/exo_redis | b774ef1dc52c843866369e5d5f96fd6358d2e9d4 | [
"MIT"
] | null | null | null | lib/exo_redis/redis/core/error.ex | tckb/exo_redis | b774ef1dc52c843866369e5d5f96fd6358d2e9d4 | [
"MIT"
] | null | null | null | defmodule ExoRedis.Server.Error do
defexception [:type, :message]
@type t :: %__MODULE__{type: binary(), message: binary()}
@wrong_type "WRONGTYPE Operation against a key holding the wrong kind of value"
@wrong_args "wrong number of arguments for '"
@wrong_command "unknown command '"
@out_of_range " is not... | 33.565217 | 81 | 0.698187 |
214a8dd07ded40a391db33e4e95f544851e45875 | 2,585 | ex | Elixir | lib/jsox/encoder/helper.ex | hrzndhrn/jsox | 7549769ecf12c1036fef2caa67dd6de3eaea6141 | [
"MIT"
] | null | null | null | lib/jsox/encoder/helper.ex | hrzndhrn/jsox | 7549769ecf12c1036fef2caa67dd6de3eaea6141 | [
"MIT"
] | null | null | null | lib/jsox/encoder/helper.ex | hrzndhrn/jsox | 7549769ecf12c1036fef2caa67dd6de3eaea6141 | [
"MIT"
] | null | null | null | defmodule Jsox.Encoder.Helper do
@moduledoc """
A helper module for the encoding.
"""
import Jsox.Encoder
use Bitwise
@compile {:inline, unicode: 1, _map: 1, _map_item: 1, _collection: 1,
_collection_item: 1}
@escape_map %{
?\\ => '\\\\',
?\" => '\\"',
?\n => '\\n',
?\r => '\\r',
... | 24.158879 | 75 | 0.560155 |
214abfd20cc0c1da85c5b3ca796d76d6a419d7c6 | 606 | ex | Elixir | apps/engine/lib/engine/block_formation/prepare_for_submission/core.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/lib/engine/block_formation/prepare_for_submission/core.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/lib/engine/block_formation/prepare_for_submission/core.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.BlockFormation.PrepareForSubmission.Core do
@moduledoc """
Preparing block for submission logic
"""
@spec should_finalize_block?(pos_integer(), non_neg_integer(), pos_integer()) :: boolean()
def should_finalize_block?(eth_height, last_formed_block_at_height, block_submit_every_nth) do
... | 46.615385 | 118 | 0.767327 |
214ac227bd4aa2b2d1496db9f5a849be9e18a97f | 199 | exs | Elixir | postgis-ecto/gis_demo/test/gis_demo_web/controllers/page_controller_test.exs | wisq/slides | e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1 | [
"MIT"
] | null | null | null | postgis-ecto/gis_demo/test/gis_demo_web/controllers/page_controller_test.exs | wisq/slides | e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1 | [
"MIT"
] | null | null | null | postgis-ecto/gis_demo/test/gis_demo_web/controllers/page_controller_test.exs | wisq/slides | e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1 | [
"MIT"
] | null | null | null | defmodule GisDemoWeb.PageControllerTest do
use GisDemoWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
214acc9ef1470cf911ea723253c3631bb76c2461 | 5,195 | exs | Elixir | test/texas_holdem/game_state/table_text.exs | thelightcosine/texas_holdem-phoenix | 31da9754082015b7562639bf2d5b8ac5212f11d0 | [
"BSD-3-Clause"
] | null | null | null | test/texas_holdem/game_state/table_text.exs | thelightcosine/texas_holdem-phoenix | 31da9754082015b7562639bf2d5b8ac5212f11d0 | [
"BSD-3-Clause"
] | null | null | null | test/texas_holdem/game_state/table_text.exs | thelightcosine/texas_holdem-phoenix | 31da9754082015b7562639bf2d5b8ac5212f11d0 | [
"BSD-3-Clause"
] | null | null | null | defmodule TexasHoldem.GameState.TableTest do
use ExUnit.Case
alias TexasHoldem.GameState.{PlayerState, Table}
describe "valid_seat?/2" do
test " returns true if the seat is allowed by max_players" do
fake_state = %{max_players: 2}
assert Table.valid_seat?(:seat2, fake_state)
end
test "r... | 24.389671 | 95 | 0.544562 |
214addeb937520a2089c90ac9d15fda71db75312 | 371 | exs | Elixir | test/namerx_test.exs | dabaer/namerx | 5d4ce29dcba87c2273fe5f274937ab5357ffd352 | [
"Unlicense"
] | 1 | 2020-08-27T19:30:16.000Z | 2020-08-27T19:30:16.000Z | test/namerx_test.exs | dabaer/namerx | 5d4ce29dcba87c2273fe5f274937ab5357ffd352 | [
"Unlicense"
] | null | null | null | test/namerx_test.exs | dabaer/namerx | 5d4ce29dcba87c2273fe5f274937ab5357ffd352 | [
"Unlicense"
] | null | null | null | defmodule NamerxTest do
use ExUnit.Case
test "no argument generates a random name with default prefix" do
assert Namerx.generate() =~ ~r/DESKTOP-[0-9][A-Z]{2}[0-9][A-Z]{3}[0-9]{2}/
end
test "string argument generates a random name with the specified prefix" do
assert Namerx.generate("random") =~ ~r/RA... | 30.916667 | 85 | 0.660377 |
214b1c3b584d038d1d8f1a4137240e53722031a8 | 1,962 | ex | Elixir | lib/webapp_web/controllers/accounts/session_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | lib/webapp_web/controllers/accounts/session_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | lib/webapp_web/controllers/accounts/session_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule WebappWeb.SessionController do
use WebappWeb, :controller
import WebappWeb.ViewHelpers, only: [team_path: 3]
alias Phauxth.Remember
alias Webapp.{
Sessions,
Sessions.Session
}
alias WebappWeb.Auth.Login
plug :authorize_resource,
model: Session,
non_id_actions: [:create, :new... | 26.876712 | 99 | 0.634047 |
214b4c0dabdd97318f3e0140e27bef2e99ed179d | 810 | ex | Elixir | lib/binlist/parser.ex | javierjulio/binlist-elixir | 1c85f7a7c54a96c6abe06e5e1572e2e09601786c | [
"MIT"
] | 1 | 2020-12-08T14:47:16.000Z | 2020-12-08T14:47:16.000Z | lib/binlist/parser.ex | javierjulio/binlist-elixir | 1c85f7a7c54a96c6abe06e5e1572e2e09601786c | [
"MIT"
] | 10 | 2020-10-05T16:16:13.000Z | 2021-08-04T16:41:12.000Z | lib/binlist/parser.ex | javierjulio/binlist-elixir | 1c85f7a7c54a96c6abe06e5e1572e2e09601786c | [
"MIT"
] | null | null | null | defmodule Binlist.Parser do
@type success :: {:ok, [map]}
@type error :: {:error, String.t()}
@spec parse(HTTPoison.Response.t(), module) :: success | error
def parse(response, module) do
handle_errors(response, fn body ->
Poison.decode!(body, as: target(module))
end)
end
defp target(module)... | 26.129032 | 69 | 0.609877 |
214b536ebbb5c70554f4d45d12744e534ceb5c5c | 1,427 | ex | Elixir | lib/google_api/you_tube/v3/model/live_chat_message.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/live_chat_message.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/live_chat_message.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 32.431818 | 111 | 0.742817 |
214b69a3c28f615bc3bff6cb771a06a01252fdce | 6,246 | ex | Elixir | lib/mix/lib/mix/tasks/compile.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile do
use Mix.Task.Compiler
@shortdoc "Compiles source files"
@moduledoc """
The main entry point to compile source files.
It simply runs the compilers registered in your project and returns
a tuple with the compilation status and a list of diagnostics.
Before compiling code, ... | 29.186916 | 92 | 0.642972 |
214b6a7bfa728abab11c0702f0686e3b1f2d50fb | 15,945 | ex | Elixir | lib/tesla.ex | moosecodebv/tesla | eb919a534aa115e7d1555d0c833fa2ebecbe5b9e | [
"MIT"
] | null | null | null | lib/tesla.ex | moosecodebv/tesla | eb919a534aa115e7d1555d0c833fa2ebecbe5b9e | [
"MIT"
] | null | null | null | lib/tesla.ex | moosecodebv/tesla | eb919a534aa115e7d1555d0c833fa2ebecbe5b9e | [
"MIT"
] | null | null | null | defmodule Tesla.Error do
defexception env: nil, stack: [], reason: nil
def message(%Tesla.Error{env: %{url: url, method: method}, reason: reason}) do
"#{inspect(reason)} (#{method |> to_string |> String.upcase()} #{url})"
end
end
defmodule Tesla.Env do
@moduledoc """
This module defines a `t:Tesla.Env.t... | 29.096715 | 119 | 0.631044 |
214b86d62c2e14a165add923d16909544ebe335b | 1,159 | ex | Elixir | lib/teslamate/locations/address.ex | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | 1 | 2021-10-31T13:22:49.000Z | 2021-10-31T13:22:49.000Z | lib/teslamate/locations/address.ex | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | 1 | 2021-05-12T00:04:50.000Z | 2021-05-12T00:04:50.000Z | lib/teslamate/locations/address.ex | DP19/teslamate | 7218286f39d2689566dd7188264ebdb7aea62663 | [
"MIT"
] | 1 | 2019-10-24T13:17:57.000Z | 2019-10-24T13:17:57.000Z | defmodule TeslaMate.Locations.Address do
use Ecto.Schema
import Ecto.Changeset
schema "addresses" do
field :city, :string
field :county, :string
field :country, :string
field :display_name, :string
field :house_number, :string
field :latitude, :float
field :longitude, :float
field... | 19.982759 | 73 | 0.597929 |
214bbf20f0baf867cb62894b2760e9d1d8239d50 | 706 | ex | Elixir | rojak-api/web/gettext.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 107 | 2016-10-02T05:54:42.000Z | 2021-08-05T00:20:51.000Z | rojak-api/web/gettext.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 134 | 2016-10-02T21:21:08.000Z | 2016-12-27T02:46:34.000Z | rojak-api/web/gettext.ex | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 54 | 2016-10-02T08:47:56.000Z | 2020-03-08T00:56:03.000Z | defmodule RojakAPI.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import RojakAPI.Gettext
# Simple translation
gettext "Here is the s... | 28.24 | 72 | 0.679887 |
214bc9aa1185c0388517ee9d6d04668d5c209665 | 418 | exs | Elixir | priv/repo/migrations/20200105080304_create_credentials.exs | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200105080304_create_credentials.exs | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | priv/repo/migrations/20200105080304_create_credentials.exs | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule Health.Repo.Migrations.CreateCredentials do
use Ecto.Migration
def change do
create table(:credentials) do
add :email, :string, null: false
add :user_id, references(:users, on_delete: :delete_all), null: false
add :password_hash, :string, null: false
timestamps()
end
... | 24.588235 | 75 | 0.688995 |
214c36e0d32389b2b492a3c5982fe145746a0eb8 | 29,201 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/backend_buckets.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/backend_buckets.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/backend_buckets.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... | 49.831058 | 434 | 0.650526 |
214c54593e23c01d20f9cb0dc7d2874ddcdd8772 | 3,228 | ex | Elixir | lib/tds/date_time.ex | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | lib/tds/date_time.ex | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | lib/tds/date_time.ex | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | defmodule Tds.Date do
@moduledoc """
Struct for MSSQL date.
https://msdn.microsoft.com/en-us/library/bb630352.aspx
## Fields
* `year`
* `month`
* `day`
"""
@type t :: %__MODULE__{year: 1..9999, month: 1..12, day: 1..31}
defstruct year: 1900,
month: 1,
day: 1
end
def... | 17.543478 | 65 | 0.442999 |
214c5803962cae32f0694c8cee772280f5f2fda3 | 220 | exs | Elixir | priv/repo/migrations/20210512072528_add_report_meta_to_user.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210512072528_add_report_meta_to_user.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210512072528_add_report_meta_to_user.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.AddReportMetaToUser do
use Ecto.Migration
def change do
alter table(:users) do
add(:is_reported, :boolean, default: false)
add(:meta, :map)
end
end
end
| 20 | 63 | 0.7 |
214c58c8bfe85a6d311f65f77bbd5a5e28a56137 | 4,423 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
cm * verb noun a23 SYM * neg;
noun * verb verb a34 conj * neg;
adjective * verb cm * verb_aux * neg;
noun * verb particle * verb_aux * neg;
cm * adjective noun * verb * neg;
particle * verb noun * verb_aux * neg;
noun * verb pn * verb_aux * neg;
particle * verb noun a76 verb_aux * neg;
noun *... | 34.826772 | 46 | 0.636672 |
214c8d6abce7deb3391ff7b352c80ccc568d0b58 | 735 | exs | Elixir | exercises/01-elixir/01-basics/10-multiple-clauses-2/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/01-elixir/01-basics/10-multiple-clauses-2/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/01-elixir/01-basics/10-multiple-clauses-2/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Setup do
@script "shared.exs"
def setup(directory \\ ".") do
path = Path.join(directory, @script)
if File.exists?(path) do
Code.require_file(path)
Shared.setup(__DIR__)
else
setup(Path.join(directory, ".."))
end
end
end
Setup.setup
defmodule Tests do
use ExUnit.C... | 22.96875 | 47 | 0.685714 |
214cae53f5c1eaab63ae9ee755a619cbc79e47cc | 124 | exs | Elixir | apps/omg_eth/config/dev.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_eth/config/dev.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/config/dev.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :ethereumex,
http_options: [recv_timeout: 60_000]
config :omg_eth,
exit_period_seconds: 10 * 60
| 15.5 | 38 | 0.758065 |
214cd3c177e5e1a097ab164550b8fe1758255223 | 235 | exs | Elixir | priv/repo/migrations/20211114172047_fix_notifications.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | priv/repo/migrations/20211114172047_fix_notifications.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | priv/repo/migrations/20211114172047_fix_notifications.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.Repo.Migrations.FixNotifications do
use Ecto.Migration
def change do
alter table(:notifications) do
modify :title, :string, size: 1000
modify :description, :string, size: 10_000
end
end
end
| 21.363636 | 53 | 0.710638 |
214d09a2d442197515c69145f505f1448fa83054 | 368 | ex | Elixir | lib/helper/result.ex | matsubara0507/thank-you-stars | 725412350c564f63e32def01fca57ba492de954f | [
"MIT"
] | 9 | 2017-09-28T09:03:09.000Z | 2021-08-09T07:33:33.000Z | lib/helper/result.ex | matsubara0507/thank-you-stars | 725412350c564f63e32def01fca57ba492de954f | [
"MIT"
] | null | null | null | lib/helper/result.ex | matsubara0507/thank-you-stars | 725412350c564f63e32def01fca57ba492de954f | [
"MIT"
] | null | null | null | defmodule ThankYouStars.Result do
def success(v), do: {:ok, v}
def failure(v), do: {:error, v}
def map({:ok, v}, f), do: success(f.(v))
def map(err = {:error, _}, _), do: err
def and_then({:ok, v}, f), do: f.(v)
def and_then(err = {:error, _}, _), do: err
def map_error({:error, e}, f), do: failure(f.(... | 24.533333 | 51 | 0.557065 |
214d3f08cbe9de21085eadfc7526bf9eaa23726c | 1,162 | ex | Elixir | lib/crypto_exchanges/adapters/poloniex_adapter.ex | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | 12 | 2017-10-01T10:37:11.000Z | 2019-08-09T07:02:02.000Z | lib/crypto_exchanges/adapters/poloniex_adapter.ex | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | 1 | 2017-10-02T21:43:40.000Z | 2017-10-08T18:37:19.000Z | lib/crypto_exchanges/adapters/poloniex_adapter.ex | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | null | null | null | defmodule CryptoExchanges.PoloniexAdapter do
@moduledoc """
An Adapter for the Poloniex Exchange
"""
use CryptoExchanges.Adapter
def get_info, do: %CryptoExchange{
name: "Poloniex",
homepage_url: "https://poloniex.com/",
api_docs_url: "https://poloniex.com/support/api/",
country: "USA",
i... | 26.409091 | 89 | 0.697935 |
214d5e79113512993676b32dbe70e722014c2632 | 3,792 | ex | Elixir | lib/koans/13_functions.ex | milquetoastable/elixir-koans | 1abdb9944dd6e3f6162e0ed9b4b17bb9a5cacbd6 | [
"MIT"
] | null | null | null | lib/koans/13_functions.ex | milquetoastable/elixir-koans | 1abdb9944dd6e3f6162e0ed9b4b17bb9a5cacbd6 | [
"MIT"
] | null | null | null | lib/koans/13_functions.ex | milquetoastable/elixir-koans | 1abdb9944dd6e3f6162e0ed9b4b17bb9a5cacbd6 | [
"MIT"
] | null | null | null | defmodule Functions do
use Koans
@intro "Functions"
def greet(name) do
"Hello, #{name}!"
end
koan "Functions map arguments to outputs" do
assert greet("World") == "Hello, World!"
end
def multiply(a, b), do: a * b
koan "Single line functions are cool, but mind the comma and the colon!" do
... | 30.095238 | 104 | 0.643196 |
214d64a3c781b0eaf660177e84ffa75dce842ce9 | 634 | ex | Elixir | clients/elixir/generated/lib/cloud_manager_api/model/program_list__embedded.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 3 | 2020-06-23T05:31:52.000Z | 2020-11-26T05:34:57.000Z | clients/elixir/generated/lib/cloud_manager_api/model/program_list__embedded.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 2 | 2021-01-21T01:19:54.000Z | 2021-12-09T22:30:22.000Z | clients/elixir/generated/lib/cloud_manager_api/model/program_list__embedded.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 1 | 2020-11-18T11:48:13.000Z | 2020-11-18T11:48:13.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule CloudManagerAPI.Model.ProgramListEmbedded do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"programs"
]
@type t :: %__... | 22.642857 | 91 | 0.719243 |
214d7df05429dfc5668a2b60a84d899cf6e4316e | 1,924 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/network_configuration.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/network_configuration.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/testing/lib/google_api/testing/v1/model/network_configuration.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... | 36.301887 | 142 | 0.726611 |
214defbaf18d9368a344ad80b79b87c22b93dbd2 | 264 | exs | Elixir | config/test.exs | fcapovilla/paires | 72a9453d02d7afee11f9457cf342215d075b0c97 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | fcapovilla/paires | 72a9453d02d7afee11f9457cf342215d075b0c97 | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | fcapovilla/paires | 72a9453d02d7afee11f9457cf342215d075b0c97 | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :paires, PairesWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24 | 56 | 0.734848 |
214df6f5f813b6638f1b5e6f3fbe6aa8e78fef6f | 62,544 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/api/spreadsheets.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/api/spreadsheets.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/api/spreadsheets.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... | 48.824356 | 863 | 0.628741 |
214dfcc1fc29b09efd093a3bb2d692ffbc87f526 | 5,677 | ex | Elixir | src/elixir/lib/dnsresolvh.ex | rgolubtsov/dnsresolvd-multilang | 44c03edd685f8b1276cff3dacfc821ea135038f1 | [
"MIT"
] | 2 | 2019-03-02T23:07:46.000Z | 2020-09-05T10:19:06.000Z | src/elixir/lib/dnsresolvh.ex | rgolubtsov/dnsresolvd-multilang | 44c03edd685f8b1276cff3dacfc821ea135038f1 | [
"MIT"
] | 147 | 2017-10-17T22:08:00.000Z | 2020-02-12T20:35:08.000Z | src/elixir/lib/dnsresolvh.ex | rgolubtsov/dnsresolvd-multilang | 44c03edd685f8b1276cff3dacfc821ea135038f1 | [
"MIT"
] | null | null | null | #
# src/elixir/lib/dnsresolvh.ex
# =============================================================================
# DNS Resolver Daemon (dnsresolvd). Version 0.9.9
# =============================================================================
# A daemon that performs DNS lookups for the given hostname
# passed in an HT... | 37.846667 | 79 | 0.566849 |
214e2f15ac5d83b20d697908941054e053fdeb34 | 16,859 | ex | Elixir | bench/lib/datasets/google_message4/benchmark_message4_2.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 419 | 2017-04-02T13:10:51.000Z | 2020-11-15T15:53:17.000Z | bench/lib/datasets/google_message4/benchmark_message4_2.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 100 | 2017-04-02T14:26:41.000Z | 2020-11-10T23:43:30.000Z | bench/lib/datasets/google_message4/benchmark_message4_2.pb.ex | tony612/protobuf-elixir | 7e7a0f2380d0bb851507d6451ce3688db4e978ae | [
"MIT"
] | 83 | 2017-07-24T21:50:04.000Z | 2020-11-15T08:52:34.000Z | defmodule Benchmarks.GoogleMessage4.Message12774 do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.1-dev", syntax: :proto2
field :field12777, 1, optional: true, type: :uint32
field :field12778, 2, optional: true, type: :uint32
field :field12779, 3, optional: true, type: :uint32
field :fiel... | 44.018277 | 93 | 0.755442 |
214e3c29cd08c59db880b0dee7521614951dc345 | 7,450 | ex | Elixir | lib/shopifex_web/controllers/payment_controller.ex | smantzavinos/shopifex | 744d732f9237cdea1773056c412f3524e1f5ca4f | [
"Apache-2.0"
] | null | null | null | lib/shopifex_web/controllers/payment_controller.ex | smantzavinos/shopifex | 744d732f9237cdea1773056c412f3524e1f5ca4f | [
"Apache-2.0"
] | null | null | null | lib/shopifex_web/controllers/payment_controller.ex | smantzavinos/shopifex | 744d732f9237cdea1773056c412f3524e1f5ca4f | [
"Apache-2.0"
] | null | null | null | defmodule ShopifexWeb.PaymentController do
@moduledoc """
You can use this module inside of another controller to handle initial iFrame load and shop installation
Example:
mix phx.gen.html Shops Plan plans name:string price:string features:array grants:array test:boolean
mix phx.gen.html Shops Grant grants ... | 35.308057 | 205 | 0.584564 |
214e69d215e551c8593c4265f094dadeb8cafaec | 11,508 | exs | Elixir | test/consensus_member_adjuster_test.exs | liveforeverx/raft_fleet | b3c03250f8498eeb734f2855734c10bd0c928417 | [
"MIT"
] | null | null | null | test/consensus_member_adjuster_test.exs | liveforeverx/raft_fleet | b3c03250f8498eeb734f2855734c10bd0c928417 | [
"MIT"
] | null | null | null | test/consensus_member_adjuster_test.exs | liveforeverx/raft_fleet | b3c03250f8498eeb734f2855734c10bd0c928417 | [
"MIT"
] | null | null | null | defmodule RaftFleet.ConsensusMemberAdjusterTest do
use TestCaseTemplate
@moduletag timeout: 300_000
import SlaveNode
alias RaftFleet.{ConsensusMemberAdjuster, Manager, ConsensusMemberSup}
@group_name :consensus_group
@rv_config RaftedValue.make_config(RaftFleet.JustAnInt, [
heartbeat_timeout: 500,
... | 42 | 134 | 0.625999 |
214e72c1933a1885c5aa71e744893b8d1ee3031f | 875 | exs | Elixir | apps/ut_monitor_lib/mix.exs | usertesting/nerves_status_monitors | 18ccc7a3f3787d847a09328cea6c49b51605338a | [
"MIT"
] | 1 | 2017-02-10T17:41:02.000Z | 2017-02-10T17:41:02.000Z | apps/ut_monitor_lib/mix.exs | usertesting/nerves_status_monitors | 18ccc7a3f3787d847a09328cea6c49b51605338a | [
"MIT"
] | null | null | null | apps/ut_monitor_lib/mix.exs | usertesting/nerves_status_monitors | 18ccc7a3f3787d847a09328cea6c49b51605338a | [
"MIT"
] | null | null | null | defmodule UtMonitorLib.Mixfile do
use Mix.Project
def project do
[app: :ut_monitor_lib,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile... | 22.435897 | 77 | 0.557714 |
214e72e28aa831de5c3e33cf4167a4037fda6301 | 98 | exs | Elixir | test/multiple_products_web/views/page_view_test.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | test/multiple_products_web/views/page_view_test.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | test/multiple_products_web/views/page_view_test.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | defmodule MultipleProductsWeb.PageViewTest do
use MultipleProductsWeb.ConnCase, async: true
end
| 24.5 | 47 | 0.857143 |
214e7961abaa9f492ff31fc69eccd74472982513 | 2,225 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/android_device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/android_device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/android_device.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... | 37.083333 | 120 | 0.716854 |
214f0ca432a1e58936aedc9b9a8bf2023006e7e9 | 2,254 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/start_cluster_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/start_cluster_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/start_cluster_request.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... | 45.08 | 664 | 0.746229 |
214f4b3fe005619f2cd8b11f668437c2afd96f1d | 128 | ex | Elixir | lib/screens_web/views/v2/audio/alert_header_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens_web/views/v2/audio/alert_header_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens_web/views/v2/audio/alert_header_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.V2.Audio.AlertHeaderView do
use ScreensWeb, :view
def render("_widget.ssml", _) do
~E""
end
end
| 16 | 48 | 0.703125 |
214fa753fc38b688d1b5a5377a0e158dedb82bbe | 9,900 | ex | Elixir | lib/mix/tasks/hex.ex | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | 1 | 2019-04-29T12:35:49.000Z | 2019-04-29T12:35:49.000Z | lib/mix/tasks/hex.ex | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.ex | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex do
use Mix.Task
@apikey_tag "HEXAPIKEY"
@shortdoc "Prints Hex help information"
@moduledoc """
Prints Hex tasks and their information.
mix hex
See `mix help hex.config` to see all available configuration options.
"""
@impl true
def run(_args) do
Hex.start()
... | 26.612903 | 121 | 0.633636 |
214fa888edebbbd0dc382db2b26a7d2940ccffaf | 1,450 | exs | Elixir | mix.exs | EssenceOfChaos/exmarket | b4500efdb3fa4ffa2394d2f020102c1932a8416f | [
"MIT"
] | 2 | 2019-04-24T02:58:12.000Z | 2019-04-24T19:40:43.000Z | mix.exs | EssenceOfChaos/exmarket | b4500efdb3fa4ffa2394d2f020102c1932a8416f | [
"MIT"
] | null | null | null | mix.exs | EssenceOfChaos/exmarket | b4500efdb3fa4ffa2394d2f020102c1932a8416f | [
"MIT"
] | 1 | 2019-04-24T03:07:43.000Z | 2019-04-24T03:07:43.000Z | defmodule Exmarket.MixProject do
@moduledoc """
Application entry point and dependency management
"""
use Mix.Project
@version "0.2.0"
def project do
[
app: :exmarket,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
description... | 25 | 117 | 0.588276 |
214fd378d2ce5d7f2da282e6af0a5af2ad8d6d3b | 9,495 | ex | Elixir | apps/ewallet/lib/ewallet/fetchers/transaction_source_fetcher.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/fetchers/transaction_source_fetcher.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/fetchers/transaction_source_fetcher.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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... | 33.083624 | 97 | 0.642022 |
214fd51a2e4f7ea79cdd0105d645553bfe324e0c | 977 | exs | Elixir | test/unit/employee_doctor_test.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | 1 | 2017-07-27T16:03:28.000Z | 2017-07-27T16:03:28.000Z | test/unit/employee_doctor_test.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | test/unit/employee_doctor_test.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | defmodule PRM.Unit.EmployeeDoctorTest do
@moduledoc false
use PRM.DataCase
alias PRM.Employees.EmployeeDoctor
import PRM.SimpleFactory
test "create employee doctor" do
employee = employee("accountant")
assert {:error, _} = %EmployeeDoctor{}
|> EmployeeDoctor.changeset(%{
employee_id:... | 23.829268 | 45 | 0.581372 |
214fd5f94bf17e742a40a833d16d05d791181a66 | 2,987 | ex | Elixir | lib/sanbase_web/admin/model/ico.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/model/ico.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/model/ico.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.Model.Ico do
use ExAdmin.Register
import Ecto.Query, warn: false
alias Sanbase.Model.Ico
alias Sanbase.Model.Currency
alias Sanbase.Model.Project
register_resource Sanbase.Model.Ico do
query do
%{all: [preload: [:project, :cap_currency, ico_currencies: [:currency]]]... | 24.284553 | 81 | 0.629729 |
214ff5f8a5d914e279762de5fbc5b566c3125589 | 21,013 | exs | Elixir | lib/logger/test/logger/translator_test.exs | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/translator_test.exs | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/translator_test.exs | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | defmodule Logger.TranslatorTest do
use Logger.Case
import Supervisor.Spec
defmodule MyGenServer do
use GenServer
def handle_call(:error, _, _) do
raise "oops"
end
end
defmodule MyGenEvent do
@behaviour :gen_event
def init(args) do
{:ok, args}
end
def handle_event(_... | 32.179173 | 139 | 0.570742 |
21500c67c13b68def283c2b111d858630e5849ea | 1,760 | ex | Elixir | lib/weather/cli.ex | isaacazuelos/weather | 35fdccc4184de475c194216e3783677f71e171ca | [
"MIT"
] | null | null | null | lib/weather/cli.ex | isaacazuelos/weather | 35fdccc4184de475c194216e3783677f71e171ca | [
"MIT"
] | null | null | null | lib/weather/cli.ex | isaacazuelos/weather | 35fdccc4184de475c194216e3783677f71e171ca | [
"MIT"
] | null | null | null | defmodule Weather.CLI do
alias Weather.Data, as: Data
alias Weather.Location, as: Location
@moduledoc """
Handle the command line options for the `weather` app, which prints the
current weather.
"""
@usage "Usage: weather [-h|--help] [--init url]"
@help """
#{@usage}
Available Options:
... | 24.109589 | 78 | 0.577841 |
215029562b8f503d0afff2cb96c081655ad8b965 | 1,849 | exs | Elixir | clients/app_engine/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/mix.exs | 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... | 27.597015 | 101 | 0.656571 |
215084e0562c0da5db49b82eb9c2c06badcfef39 | 87 | exs | Elixir | apps/core/test/unit/otp_verification_test.exs | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | null | null | null | apps/core/test/unit/otp_verification_test.exs | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | null | null | null | apps/core/test/unit/otp_verification_test.exs | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | 1 | 2019-06-12T18:04:39.000Z | 2019-06-12T18:04:39.000Z | defmodule Core.OtpVerificationTest do
use ExUnit.Case
doctest Core.Application
end
| 17.4 | 37 | 0.827586 |
21508784ed98c40a7d5f21692744d85a18a9b285 | 5,922 | ex | Elixir | lib/web_push_encryption/encrypt.ex | kosmigramma/elixir-web-push-encryption | 4361bd02b0b7f2cb5f8ac302bcd1210b57964a51 | [
"MIT"
] | 29 | 2018-10-16T21:57:48.000Z | 2022-03-02T14:19:49.000Z | lib/web_push_encryption/encrypt.ex | kosmigramma/elixir-web-push-encryption | 4361bd02b0b7f2cb5f8ac302bcd1210b57964a51 | [
"MIT"
] | 19 | 2019-04-26T17:49:01.000Z | 2021-09-15T16:25:04.000Z | lib/web_push_encryption/encrypt.ex | kosmigramma/elixir-web-push-encryption | 4361bd02b0b7f2cb5f8ac302bcd1210b57964a51 | [
"MIT"
] | 23 | 2018-09-26T12:52:26.000Z | 2021-08-13T05:20:25.000Z | defmodule WebPushEncryption.Encrypt do
@moduledoc """
Module to encrypt notification payloads.
See the following links for details about the encryption process.
https://developers.google.com/web/updates/2016/03/web-push-encryption?hl=en
"""
alias WebPushEncryption.Crypto
@max_payload_length 4078
@o... | 34.631579 | 100 | 0.695542 |
2150b9ac65391571acabf0ff9cf58c4c9ef8dd0a | 138 | exs | Elixir | test/one_word_test.exs | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | test/one_word_test.exs | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | test/one_word_test.exs | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | defmodule OneWordTest do
use ExUnit.Case
doctest OneWord
test "greets the world" do
assert OneWord.hello() == :world
end
end
| 15.333333 | 36 | 0.710145 |
2150cbfacb46b75719b61a9cadecae59453fe44e | 3,401 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/create_slide_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/create_slide_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/create_slide_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... | 53.140625 | 556 | 0.744487 |
2150de87a75f942277e66755a162a379edeaf010 | 238 | ex | Elixir | web/router.ex | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 4 | 2016-11-07T09:47:09.000Z | 2020-10-19T20:39:03.000Z | web/router.ex | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 7 | 2016-11-07T13:02:36.000Z | 2016-11-23T17:37:07.000Z | web/router.ex | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 3 | 2016-11-07T09:51:36.000Z | 2019-06-18T12:26:38.000Z | defmodule Badging.Router do
use Badging.Web, :router
pipeline :api do
plug :accepts, ["json", "svg"]
end
scope "/", Badging do
pipe_through :api
resources "/badges", BadgeController, except: [:new, :edit]
end
end
| 17 | 63 | 0.651261 |
2150e44b5b8ac1167c71c54d36dc87e7f87df2a6 | 1,669 | exs | Elixir | mix.exs | paulgoetze/mjml_nif | e2fa96276d24ccd41f01bb48db5fd1d85571a30a | [
"MIT"
] | 4 | 2020-07-19T18:50:32.000Z | 2020-08-10T19:27:01.000Z | mix.exs | paulgoetze/mjml_nif | e2fa96276d24ccd41f01bb48db5fd1d85571a30a | [
"MIT"
] | 1 | 2020-07-19T19:53:32.000Z | 2020-07-19T19:53:32.000Z | mix.exs | paulgoetze/mjml_nif | e2fa96276d24ccd41f01bb48db5fd1d85571a30a | [
"MIT"
] | null | null | null | defmodule Mjml.MixProject do
use Mix.Project
@source_url "https://github.com/adoptoposs/mjml_nif"
@version "1.3.3"
def project do
[
app: :mjml,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(),
name: "mjml",
pac... | 23.180556 | 83 | 0.563212 |
2150f488a528dbb677dd5ed9ad3e5e538d1cbb58 | 465 | exs | Elixir | priv/repo/migrations/20210226205309_create_payments.exs | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | null | null | null | priv/repo/migrations/20210226205309_create_payments.exs | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | null | null | null | priv/repo/migrations/20210226205309_create_payments.exs | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | 1 | 2021-03-05T00:21:07.000Z | 2021-03-05T00:21:07.000Z | defmodule PeekCode.Repo.Migrations.CreatePayments do
use Ecto.Migration
def change do
create table(:payments, primary_key: false) do
add :id, :binary_id, primary_key: true
add :amount, :float
add :applied_at, :date
add :note, :string
add :order_id,
references(:orders, o... | 23.25 | 95 | 0.662366 |
2151105bc984b56e98c0a8241daa9c099879720a | 1,584 | ex | Elixir | web/controllers/v1/brand_controller.ex | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | web/controllers/v1/brand_controller.ex | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | web/controllers/v1/brand_controller.ex | slurmulon/thing | 21791e7a9579d41de28a0a6131218aed3679d033 | [
"Apache-2.0"
] | null | null | null | defmodule Thing.V1.BrandController do
use Thing.Web, :controller
alias Thing.Brand
plug :scrub_params, "brand" when action in [:create, :update]
def index(conn, _params) do
brands = Repo.all(Brand)
render(conn, "index.json", brands: brands)
end
def create(conn, %{"brand" => brand_params}) do
... | 27.310345 | 74 | 0.616793 |
2151959aab94b4e801ac11be82ae27c70fafc268 | 2,317 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/pivot_group_sort_value_bucket.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/pivot_group_sort_value_bucket.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_group_sort_value_bucket.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... | 46.34 | 626 | 0.749245 |
2151d98abb4339b68e61535c33f4e66258cf2f20 | 230 | ex | Elixir | lib/cqex/cluster.ex | dylan-chong/cqex | c02d96686d136baeeef33d5096b009d88b5da70d | [
"MIT"
] | 6 | 2020-07-15T07:02:37.000Z | 2021-07-10T09:36:29.000Z | lib/cqex/cluster.ex | dylan-chong/cqex | c02d96686d136baeeef33d5096b009d88b5da70d | [
"MIT"
] | 5 | 2020-12-19T13:23:59.000Z | 2022-02-23T13:53:26.000Z | lib/cqex/cluster.ex | dylan-chong/cqex | c02d96686d136baeeef33d5096b009d88b5da70d | [
"MIT"
] | 2 | 2021-04-06T18:49:53.000Z | 2022-02-04T02:41:12.000Z | defmodule CQEx.Cluster do
@moduledoc false
defdelegate add(a), to: :cqerl_cluster, as: :add_nodes
defdelegate add(a, b), to: :cqerl_cluster, as: :add_nodes
defdelegate add(a, b, c), to: :cqerl_cluster, as: :add_nodes
end
| 28.75 | 62 | 0.717391 |
2151dc1fd2a9101a3f8863f467678d3b783f5eb2 | 1,255 | exs | Elixir | mix.exs | elixir-waffle/waffle_s3 | 8bc61191950f0930104b74e5ec396a5429e4eece | [
"Apache-2.0"
] | null | null | null | mix.exs | elixir-waffle/waffle_s3 | 8bc61191950f0930104b74e5ec396a5429e4eece | [
"Apache-2.0"
] | 1 | 2021-08-24T13:12:13.000Z | 2021-08-24T13:12:13.000Z | mix.exs | elixir-waffle/waffle_s3 | 8bc61191950f0930104b74e5ec396a5429e4eece | [
"Apache-2.0"
] | 1 | 2021-08-23T21:54:49.000Z | 2021-08-23T21:54:49.000Z | defmodule Waffle.Storage.S3.Mixfile do
use Mix.Project
@version "0.0.1"
def project do
[
app: :waffle_s3,
version: @version,
elixir: "~> 1.4",
deps: deps(),
docs: docs(),
# Hex
description: description(),
package: package()
]
end
defp description do
... | 16.959459 | 73 | 0.494024 |
21521255010d369b5c78f8c29b51a74c4cff54d5 | 1,890 | exs | Elixir | rel/config/prod_runtime_config.exs | revelrylabs/slax | dd631c6a3c36512f79c4bf2cc78671ad8aecae5f | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | rel/config/prod_runtime_config.exs | revelrylabs/slax | dd631c6a3c36512f79c4bf2cc78671ad8aecae5f | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | rel/config/prod_runtime_config.exs | revelrylabs/slax | dd631c6a3c36512f79c4bf2cc78671ad8aecae5f | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | use Mix.Config
config :slax, Slax.Repo,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
port = String.to_integer(System.get_env("PORT"))
config :slax, SlaxWeb.Endpoint,
http: [port: port, compress: true],
url: [scheme: "https", host: System.get_env("APP_... | 33.75 | 90 | 0.730159 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.