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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8c7c73198b404aef77693b4f59987d59708b370 | 1,841 | exs | Elixir | test/account/update_test.exs | ksherman/nexmo-elixir | b907abced1f7eb297819cd5b9256e04e6f06bc96 | [
"MIT"
] | 4 | 2020-01-31T03:34:25.000Z | 2022-02-25T07:05:30.000Z | test/account/update_test.exs | ksherman/nexmo-elixir | b907abced1f7eb297819cd5b9256e04e6f06bc96 | [
"MIT"
] | 10 | 2019-08-29T06:58:02.000Z | 2020-01-27T13:26:05.000Z | test/account/update_test.exs | ksherman/nexmo-elixir | b907abced1f7eb297819cd5b9256e04e6f06bc96 | [
"MIT"
] | 2 | 2020-03-23T03:02:13.000Z | 2021-09-03T23:18:45.000Z | defmodule Nexmo.Account.UpdateTest do
use ExUnit.Case
setup do
api_key = "a123456"
api_secret = "b123456"
# setup test responses
valid_response =
%{
"dr-callback-url" => "https://example.com/delivery",
"max-calls-per-second" => 30,
"max-inbound-request" => 30,
... | 34.092593 | 171 | 0.683324 |
c8c7cd3e5dac3303758cfedaae922c9569de1d5b | 1,710 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_availability_change_event.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_availability_change_event.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_availability_change_event.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.625 | 192 | 0.763743 |
c8c7d5b1e470f2a76d196733da68f254ae14b3b3 | 2,016 | exs | Elixir | mix.exs | tgrk/logger_json | d01f0bccf5571473b5afc816ddcf7e02869abe9a | [
"MIT"
] | null | null | null | mix.exs | tgrk/logger_json | d01f0bccf5571473b5afc816ddcf7e02869abe9a | [
"MIT"
] | null | null | null | mix.exs | tgrk/logger_json | d01f0bccf5571473b5afc816ddcf7e02869abe9a | [
"MIT"
] | 1 | 2020-03-29T20:39:38.000Z | 2020-03-29T20:39:38.000Z | defmodule LoggerJSON.Mixfile do
use Mix.Project
@version "3.3.0"
def project do
[
app: :logger_json,
description: "Console Logger back-end, Plug and Ecto.LogEntry adapter that writes logs in JSON format.",
package: package(),
version: @version,
elixir: "~> 1.6",
elixirc_p... | 27.616438 | 110 | 0.583829 |
c8c7de3d8c4db40869a5059be1c2d4641e7d0ee3 | 436 | ex | Elixir | lib/exchange_api/accounts/user.ex | realyarilabs/exchange_api | c7dd9af9356277a022b164675cc1622359af8a76 | [
"Apache-2.0"
] | 3 | 2020-08-10T10:09:26.000Z | 2020-08-28T08:41:36.000Z | lib/exchange_api/accounts/user.ex | realyarilabs/exchange_api | c7dd9af9356277a022b164675cc1622359af8a76 | [
"Apache-2.0"
] | 30 | 2020-08-17T10:38:24.000Z | 2022-02-28T07:06:42.000Z | lib/exchange_api/accounts/user.ex | realyarilabs/exchange_api | c7dd9af9356277a022b164675cc1622359af8a76 | [
"Apache-2.0"
] | 1 | 2020-09-17T13:08:47.000Z | 2020-09-17T13:08:47.000Z | defmodule ExchangeApi.Accounts.User do
@moduledoc """
User schema.
"""
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
schema "users" do
field(:email, :string)
field(:jwt, :string)
timestamps()
end
@doc false
def changeset(user, attrs) do
us... | 18.956522 | 52 | 0.644495 |
c8c82ce500ac8c6921bd2a95e363d2d120bfd089 | 92 | ex | Elixir | 05.Functions/functions4.ex | kenspirit/programming-elixir-exercises | 35ca1f0cb17ca4040b395c2f9cc53e51918c99ca | [
"MIT"
] | 6 | 2019-10-25T21:51:11.000Z | 2022-03-23T02:11:38.000Z | 05.Functions/functions4.ex | kenspirit/programming-elixir-exercises | 35ca1f0cb17ca4040b395c2f9cc53e51918c99ca | [
"MIT"
] | null | null | null | 05.Functions/functions4.ex | kenspirit/programming-elixir-exercises | 35ca1f0cb17ca4040b395c2f9cc53e51918c99ca | [
"MIT"
] | 1 | 2020-06-16T12:37:43.000Z | 2020-06-16T12:37:43.000Z | prefix = fn p ->
fn n -> "#{p} #{n}" end
end
mrs = prefix.("Mrs")
IO.puts mrs.("Smith")
| 11.5 | 25 | 0.5 |
c8c82fa1e8dd4bb60da8a8aa8f879def5dd3e6ba | 1,087 | ex | Elixir | web/models/channel.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | web/models/channel.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | web/models/channel.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Changelog.Channel do
use Changelog.Web, :model
alias Changelog.Regexp
schema "channels" do
field :name, :string
field :slug, :string
field :description, :string
has_many :episode_channels, Changelog.EpisodeChannel, on_delete: :delete_all
has_many :episodes, through: [:episode_chan... | 26.512195 | 80 | 0.700092 |
c8c8346e842a2e9c43d2a4291e2aa9dfc4d13f5d | 403 | exs | Elixir | mix.exs | dottogame/overdot | 95aee9621e7036ab4857f49c6a745aaca4d645c5 | [
"MIT"
] | null | null | null | mix.exs | dottogame/overdot | 95aee9621e7036ab4857f49c6a745aaca4d645c5 | [
"MIT"
] | null | null | null | mix.exs | dottogame/overdot | 95aee9621e7036ab4857f49c6a745aaca4d645c5 | [
"MIT"
] | null | null | null | defmodule PopsquadCore.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#... | 19.190476 | 59 | 0.655087 |
c8c835c00e72dc24d359e8efc551e8496953a4d1 | 4,472 | exs | Elixir | test/couchdb_connector/admin_test.exs | PinheiroRodrigo/couchdb_connector | 464136ebe47049c5b3143bbd5f74977c82c9c621 | [
"Apache-2.0"
] | 64 | 2016-01-20T17:48:05.000Z | 2017-05-24T18:00:14.000Z | test/couchdb_connector/admin_test.exs | PinheiroRodrigo/couchdb_connector | 464136ebe47049c5b3143bbd5f74977c82c9c621 | [
"Apache-2.0"
] | 40 | 2016-01-16T18:39:46.000Z | 2017-06-03T10:02:54.000Z | test/couchdb_connector/admin_test.exs | PinheiroRodrigo/couchdb_connector | 464136ebe47049c5b3143bbd5f74977c82c9c621 | [
"Apache-2.0"
] | 22 | 2015-12-28T00:23:20.000Z | 2017-05-28T21:58:21.000Z | defmodule Couchdb.Connector.AdminTest do
use ExUnit.Case
use Couchdb.Connector.TestSupport.Macros
alias Couchdb.Connector.Admin
alias Couchdb.Connector.TestConfig
alias Couchdb.Connector.TestPrep
alias Couchdb.Connector.UrlHelper
setup context do
on_exit context, fn ->
TestPrep.delete_test_use... | 41.407407 | 122 | 0.726073 |
c8c849fa4f16f61a5ec1e958986a13d0f909e0ff | 569 | exs | Elixir | Elixir/fizzbuzz/mix.exs | nicbet/puzzles | d6bb529bf3ef8570934495d50cb4b67d85a64e1d | [
"MIT"
] | null | null | null | Elixir/fizzbuzz/mix.exs | nicbet/puzzles | d6bb529bf3ef8570934495d50cb4b67d85a64e1d | [
"MIT"
] | null | null | null | Elixir/fizzbuzz/mix.exs | nicbet/puzzles | d6bb529bf3ef8570934495d50cb4b67d85a64e1d | [
"MIT"
] | null | null | null | defmodule Fizzbuzz.Mixfile do
use Mix.Project
def project do
[
app: :fizzbuzz,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 19.62069 | 88 | 0.57645 |
c8c85fdadfb181c934e49fb0f3f068e210b0c860 | 537 | ex | Elixir | lib/dotenv/env.ex | kianmeng/dotenv_elixir | a2083bca19c871638dcee9d973e6bb94806d6371 | [
"MIT"
] | 209 | 2015-01-11T14:10:54.000Z | 2022-03-10T02:40:15.000Z | lib/dotenv/env.ex | kianmeng/dotenv_elixir | a2083bca19c871638dcee9d973e6bb94806d6371 | [
"MIT"
] | 26 | 2015-01-21T21:58:50.000Z | 2021-06-28T16:54:30.000Z | lib/dotenv/env.ex | kianmeng/dotenv_elixir | a2083bca19c871638dcee9d973e6bb94806d6371 | [
"MIT"
] | 28 | 2015-01-25T12:47:40.000Z | 2021-06-09T12:12:06.000Z | defmodule Dotenv.Env do
@type t :: %Dotenv.Env{paths: [String.t()], values: %{String.t() => String.t()}}
defstruct paths: [], values: Map.new()
def path(%Dotenv.Env{paths: paths}) do
Enum.join(paths, ":")
end
def get(env, key) do
Dotenv.Env.get(env, System.get_env(key), key)
end
def get(%Dotenv... | 25.571429 | 83 | 0.648045 |
c8c893fa95c44fa343d9cf236f00b839f0e2ec1e | 2,321 | ex | Elixir | broker/lib/broker/cloudevent.ex | mikehelmick/broker-prototype | 68082f753d3a7ea29399706504419e495287b35f | [
"Apache-2.0"
] | 1 | 2019-02-04T21:09:16.000Z | 2019-02-04T21:09:16.000Z | broker/lib/broker/cloudevent.ex | mikehelmick/broker-prototype | 68082f753d3a7ea29399706504419e495287b35f | [
"Apache-2.0"
] | null | null | null | broker/lib/broker/cloudevent.ex | mikehelmick/broker-prototype | 68082f753d3a7ea29399706504419e495287b35f | [
"Apache-2.0"
] | null | null | null | # Utility methods for extracting parts of a CloudEvent
# when stored as a Elixir map.
defmodule CloudEvent do
def current_version(), do: "0.2"
# methods for extracting parts of a cloud event
# Optional fields return nil atom if not present
def type(%{"type" => type}), do: type
def specversion(%{"specversion... | 37.435484 | 96 | 0.670832 |
c8c900bc540d3100903d3564627da878c62b7f68 | 787 | ex | Elixir | lib/socket/application.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/socket/application.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/socket/application.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | defmodule Socket.Application do
@moduledoc """
Supervisor for the Grapevine socket
A supervisor hoping to become a full fledged application
"""
use Supervisor
@default_config [port: 4110]
def start_link(opts) do
Supervisor.start_link(__MODULE__, [], opts)
end
def init(_) do
config = Keywo... | 21.861111 | 77 | 0.645489 |
c8c971e1a5b46301d379690da7d211294ba9cb6a | 73 | ex | Elixir | web/views/page_view.ex | sotte/python_channels | dcec42d4a787cbb52c8be13a576e5dcadc1fda00 | [
"MIT"
] | null | null | null | web/views/page_view.ex | sotte/python_channels | dcec42d4a787cbb52c8be13a576e5dcadc1fda00 | [
"MIT"
] | null | null | null | web/views/page_view.ex | sotte/python_channels | dcec42d4a787cbb52c8be13a576e5dcadc1fda00 | [
"MIT"
] | null | null | null | defmodule PythonChannels.PageView do
use PythonChannels.Web, :view
end
| 18.25 | 36 | 0.821918 |
c8c979b8ad215cb3d9f79aa2f35366e5ebff6975 | 1,725 | exs | Elixir | mix.exs | rjanja/ex_secp256k1 | 551165b3d648b4682245cd946e5ca3cf03389e77 | [
"MIT"
] | null | null | null | mix.exs | rjanja/ex_secp256k1 | 551165b3d648b4682245cd946e5ca3cf03389e77 | [
"MIT"
] | null | null | null | mix.exs | rjanja/ex_secp256k1 | 551165b3d648b4682245cd946e5ca3cf03389e77 | [
"MIT"
] | null | null | null | defmodule ExSecp256k1.MixProject do
use Mix.Project
@source_url "https://github.com/omgnetwork/ex_secp256k1"
def project do
[
app: :ex_secp256k1,
name: "ExSecp256k1",
version: "0.1.2",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: [:rustler] ++ Mix.co... | 19.827586 | 78 | 0.541449 |
c8c9871a10d48ee189e14ae360eb097340dd00f8 | 1,698 | exs | Elixir | test/game_of_life/universe/server_test.exs | rdk08/otp-game-of-life | 142740af57f9d49a05b1cf159fe00474956b696f | [
"MIT"
] | null | null | null | test/game_of_life/universe/server_test.exs | rdk08/otp-game-of-life | 142740af57f9d49a05b1cf159fe00474956b696f | [
"MIT"
] | null | null | null | test/game_of_life/universe/server_test.exs | rdk08/otp-game-of-life | 142740af57f9d49a05b1cf159fe00474956b696f | [
"MIT"
] | null | null | null | defmodule GameOfLife.Universe.ServerTest do
use ExUnit.Case, async: true
import GameOfLife.Test.Support.Functions, only: [random_atom: 0]
alias GameOfLife.{Cell, Universe}
setup do
cell_supervisor = random_atom()
{:ok, _} = Cell.Supervisor.start_link(cell_supervisor)
opts = [
dimensions: {3... | 25.727273 | 87 | 0.600118 |
c8c98bd1162e8e96015360efb8f77502dc8a4b45 | 1,073 | ex | Elixir | lib/postgrex/extensions/time.ex | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/extensions/time.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/extensions/time.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.Extensions.Time do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "time_send"
def encode(_) do
quote location: :keep do
%Time{calendar: Calendar.ISO} = time ->
unquote(__MODULE__).encode_elixir(time)
other ->
rai... | 26.825 | 88 | 0.667288 |
c8c995073e0fbc0134e5dec9a0e89626b78ca2fd | 171 | exs | Elixir | test/applescripts_ex/validations_test.exs | os-ex/applescripts_ex | 6c4ffb766bbab32a6cf01dafad5dd27d98399aad | [
"Apache-2.0"
] | null | null | null | test/applescripts_ex/validations_test.exs | os-ex/applescripts_ex | 6c4ffb766bbab32a6cf01dafad5dd27d98399aad | [
"Apache-2.0"
] | null | null | null | test/applescripts_ex/validations_test.exs | os-ex/applescripts_ex | 6c4ffb766bbab32a6cf01dafad5dd27d98399aad | [
"Apache-2.0"
] | null | null | null | defmodule ApplescriptsEx.ValidationsTest do
@moduledoc false
use ExUnit.Case, async: true
alias ApplescriptsEx.Validations
doctest Validations, import: true
end
| 19 | 43 | 0.80117 |
c8ca1dc3ad870960e07b74ec50e4fcd66645d90a | 322 | ex | Elixir | lib/supervisor.ex | esl/elixometer | 6678c97f64ac8a4cf7ecbf32a4d342576d466b69 | [
"Apache-2.0"
] | 1 | 2021-03-11T23:38:37.000Z | 2021-03-11T23:38:37.000Z | lib/supervisor.ex | esl/elixometer | 6678c97f64ac8a4cf7ecbf32a4d342576d466b69 | [
"Apache-2.0"
] | null | null | null | lib/supervisor.ex | esl/elixometer | 6678c97f64ac8a4cf7ecbf32a4d342576d466b69 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:58:01.000Z | 2022-03-06T10:48:34.000Z | defmodule Elixometer.Supervisor do
@moduledoc false
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [worker(Elixometer, []),
worker(Elixometer.Updater, [])
]
supervise(children, strategy: :one_for_one)
end
en... | 18.941176 | 47 | 0.63354 |
c8ca1fc8f45ae43267c0d3af446ef6b69a77987e | 3,675 | ex | Elixir | lib/socket/socket_handler.ex | callumok2004/lanyard | a59bc435f1d68c46bc1b8b7b0505536a93f825c5 | [
"MIT"
] | 2 | 2021-03-31T22:44:53.000Z | 2021-05-04T09:10:13.000Z | lib/socket/socket_handler.ex | eggsy/lanyard | 072e20ba210cfa09e113ce8d04a9e210c48680e1 | [
"MIT"
] | null | null | null | lib/socket/socket_handler.ex | eggsy/lanyard | 072e20ba210cfa09e113ce8d04a9e210c48680e1 | [
"MIT"
] | null | null | null | defmodule Lanyard.SocketHandler do
require Logger
alias Lanyard.Presence
@type t :: %{
awaiting_init: boolean,
encoding: String.t(),
compression: String.t()
}
defstruct awaiting_init: true,
encoding: nil,
compression: nil
@behaviour :cowboy_web... | 27.425373 | 99 | 0.510476 |
c8ca2bd719360ee9f4c56cb86b6c8fc2ddbb8413 | 810 | ex | Elixir | 04-chapter/09_navigator.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | 1 | 2022-03-01T13:54:43.000Z | 2022-03-01T13:54:43.000Z | 04-chapter/09_navigator.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | null | null | null | 04-chapter/09_navigator.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | null | null | null | defmodule Navigator do
def navigate(directory) do
expanded_directory = Path.expand(directory)
go_through([expanded_directory])
end
defp go_through([]), do: nil
defp go_through([content | rest]) do
print_and_navigate(content, File.dir?(content))
go_through(rest)
end
defp print_and_navigate(... | 31.153846 | 73 | 0.755556 |
c8ca39e984f61ce115bedb505e21bff2fac842f7 | 1,005 | exs | Elixir | mix.exs | graffic/ejdb-elixir | edac433b89f3ca2f63941d6e8b99c308bae9e29f | [
"MIT"
] | 1 | 2021-04-19T15:36:46.000Z | 2021-04-19T15:36:46.000Z | mix.exs | graffic/ejdb-elixir | edac433b89f3ca2f63941d6e8b99c308bae9e29f | [
"MIT"
] | null | null | null | mix.exs | graffic/ejdb-elixir | edac433b89f3ca2f63941d6e8b99c308bae9e29f | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Compile.EjdbNif do
def run(_) do
if match? {:win32, _}, :os.type do
:not_implemented
else
{_, 0} = System.cmd(
"make",
["COVERAGE=#{Mix.env == :test}", "priv/ejdb.so"],
stderr_to_stdout: true,
into: IO.stream(:stdio, :line)
)
end
end
... | 20.1 | 59 | 0.528358 |
c8ca3ef3ac26cc328053622405f13c6bb25971fc | 2,556 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.225806 | 193 | 0.759781 |
c8ca4cf95a8da5442d7c67b739663c39dab66aa2 | 429 | exs | Elixir | test/models/card_test.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | test/models/card_test.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | test/models/card_test.exs | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.CardTest do
use PhoenixTrello.ModelCase
alias PhoenixTrello.Card
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Card.changeset(%Card{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid ... | 22.578947 | 55 | 0.729604 |
c8ca9a8e101dcfa3e59e67518dae752719492075 | 3,363 | exs | Elixir | test/httpoison_test.exs | SkAZi/httpoison | 730506caa1abd05e7a40c006061639badc351311 | [
"MIT"
] | null | null | null | test/httpoison_test.exs | SkAZi/httpoison | 730506caa1abd05e7a40c006061639badc351311 | [
"MIT"
] | null | null | null | test/httpoison_test.exs | SkAZi/httpoison | 730506caa1abd05e7a40c006061639badc351311 | [
"MIT"
] | null | null | null | defmodule HTTPoisonTest do
use ExUnit.Case, async: true
import PathHelpers
setup_all do
{:ok, _} = :application.ensure_all_started(:httparrot)
:ok
end
test "get" do
assert_response HTTPoison.get("localhost:8080/deny"), fn(response) ->
assert :erlang.size(response.body) == 197
end
end... | 29.5 | 134 | 0.683616 |
c8caaa9b494b3cfe7b5b950257b2a3dca5a45d5c | 120 | exs | Elixir | akd_tester/test/akd_tester_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 51 | 2018-01-07T03:41:05.000Z | 2021-06-17T21:39:27.000Z | akd_tester/test/akd_tester_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 42 | 2017-12-24T04:36:39.000Z | 2019-05-21T01:32:00.000Z | akd_tester/test/akd_tester_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 2 | 2018-06-15T11:46:28.000Z | 2018-08-22T16:03:56.000Z | defmodule AkdTesterTest do
use ExUnit.Case
doctest AkdTester
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.333333 | 26 | 0.683333 |
c8cac094e371b7323f59fb6422e3c4bbd5864165 | 1,778 | exs | Elixir | mix.exs | petrus-jvrensburg/nerves_pack | b6a9e1002f27dcdca4fe12385efb98eb91324cb9 | [
"Apache-2.0"
] | null | null | null | mix.exs | petrus-jvrensburg/nerves_pack | b6a9e1002f27dcdca4fe12385efb98eb91324cb9 | [
"Apache-2.0"
] | null | null | null | mix.exs | petrus-jvrensburg/nerves_pack | b6a9e1002f27dcdca4fe12385efb98eb91324cb9 | [
"Apache-2.0"
] | null | null | null | defmodule NervesPack.MixProject do
use Mix.Project
@source_url "https://github.com/nerves-project/nerves_pack"
@version "0.3.3"
def project do
[
app: :nerves_pack,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
dialyzer: dialyzer(),
deps: deps... | 21.950617 | 81 | 0.528684 |
c8cacaa375d84b7816c1cdcd95a0a5cdea0769f9 | 2,518 | ex | Elixir | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_search_account_reports_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_search_account_reports_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_search_account_reports_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.34375 | 238 | 0.75695 |
c8cadbd6d3a7d65d0afb1d28572739fe1d9a1863 | 6,371 | exs | Elixir | test/rockelivery_web/controllers/items_controller_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | test/rockelivery_web/controllers/items_controller_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | test/rockelivery_web/controllers/items_controller_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.ItemsControllerTest do
use RockeliveryWeb.ConnCase, async: true
import Rockelivery.Factory
alias RockeliveryWeb.Auth.Guardian
describe "create/2" do
setup %{conn: conn} do
user = insert(:user)
{:ok, token, _claims} = Guardian.encode_and_sign(user)
conn = put_re... | 28.698198 | 94 | 0.577931 |
c8cb47af475bb701ec71005f82f082fac3867e83 | 1,020 | ex | Elixir | lib/ex_twilio/resources/task_router/worker.ex | paulanthonywilson/ex_twilio | 4f58cb13ae8e4ba61237369bc29669724f9491ff | [
"MIT"
] | 1 | 2017-03-23T08:03:58.000Z | 2017-03-23T08:03:58.000Z | lib/ex_twilio/resources/task_router/worker.ex | paulanthonywilson/ex_twilio | 4f58cb13ae8e4ba61237369bc29669724f9491ff | [
"MIT"
] | 1 | 2019-09-02T15:15:39.000Z | 2019-09-03T04:28:09.000Z | lib/ex_twilio/resources/task_router/worker.ex | paulanthonywilson/ex_twilio | 4f58cb13ae8e4ba61237369bc29669724f9491ff | [
"MIT"
] | 2 | 2022-03-08T22:05:17.000Z | 2022-03-09T05:29:46.000Z | defmodule ExTwilio.TaskRouter.Worker do
@moduledoc """
Represents a worker resource who preforms tasks.
- [Twilio docs](https://www.twilio.com/docs/api/taskrouter/workers)
"""
defstruct sid: nil,
friendly_name: nil,
account_sid: nil,
activity_sid: nil,
activit... | 24.878049 | 93 | 0.597059 |
c8cb58290c1f056de9cfe8c8ac6290b147203601 | 61 | ex | Elixir | test/integration/lib/integration.ex | andreaswillems/verk | 177baf4d1225f4190aec4daaf3fecd595051ce34 | [
"MIT"
] | 746 | 2015-12-13T09:55:47.000Z | 2022-03-29T21:57:55.000Z | test/integration/lib/integration.ex | andreaswillems/verk | 177baf4d1225f4190aec4daaf3fecd595051ce34 | [
"MIT"
] | 176 | 2015-12-16T08:05:19.000Z | 2021-12-21T03:38:55.000Z | test/integration/lib/integration.ex | andreaswillems/verk | 177baf4d1225f4190aec4daaf3fecd595051ce34 | [
"MIT"
] | 78 | 2015-12-16T09:09:52.000Z | 2021-11-05T15:06:03.000Z | defmodule Integration do
def hello do
:world
end
end
| 10.166667 | 24 | 0.704918 |
c8cb6ddd10b4cbc91d206e2458a1d58ff1b993ab | 1,088 | ex | Elixir | day11/el.ex | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-13T22:44:09.000Z | 2019-12-13T22:44:09.000Z | day11/el.ex | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | null | null | null | day11/el.ex | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-05T21:06:06.000Z | 2019-12-05T21:06:06.000Z | Code.require_file("../util/util.ex", __DIR__)
Code.require_file("../day09/el.ex", __DIR__)
defmodule Day11 do
def apply_rotate(angle, 0) do
case angle do
{0, 1} -> {-1, 0}
{-1, 0} -> {0, -1}
{0, -1} -> {1, 0}
{1, 0} -> {0, 1}
end
end
def apply_rotate(angle, 1) do
case angle d... | 25.302326 | 77 | 0.496324 |
c8cb72244f1f76531bca2b49933e6c3433142e98 | 78 | exs | Elixir | test/test_helper.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | 39 | 2019-07-10T08:34:13.000Z | 2021-07-06T23:54:56.000Z | test/test_helper.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | 11 | 2019-07-22T02:35:28.000Z | 2021-05-08T15:27:50.000Z | test/test_helper.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | 8 | 2019-11-20T08:04:04.000Z | 2020-11-18T09:48:35.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(MixDeployExample.Repo, :manual)
| 26 | 62 | 0.807692 |
c8cb7bc0e068104b71ebc2ac94415a2d5e35fef7 | 218 | exs | Elixir | bench/enum_bench.exs | zacky1972/basic_benchmarks_elixir | 670585c5f4413c1e9d689d482a022e3a88978540 | [
"Apache-2.0"
] | null | null | null | bench/enum_bench.exs | zacky1972/basic_benchmarks_elixir | 670585c5f4413c1e9d689d482a022e3a88978540 | [
"Apache-2.0"
] | null | null | null | bench/enum_bench.exs | zacky1972/basic_benchmarks_elixir | 670585c5f4413c1e9d689d482a022e3a88978540 | [
"Apache-2.0"
] | null | null | null | defmodule EnumBench do
use Benchfella
@list Enum.to_list(1..1_000_000)
bench "Enum.map" do
Enum.map(@list, & &1 * 2)
end
bench "recursive" do
BasicBenchmarksElixir.r_map(@list, & &1 * 2)
end
end
| 15.571429 | 48 | 0.651376 |
c8cb91c8670209c41a07efd48d2ea40ee5a7f238 | 259 | exs | Elixir | mix.exs | Kernael/elixir-reverse-shell | 7101770dbaa92a2aff70e785fda650165585ef75 | [
"MIT"
] | 1 | 2022-01-04T16:32:56.000Z | 2022-01-04T16:32:56.000Z | mix.exs | Kernael/elixir-reverse-shell | 7101770dbaa92a2aff70e785fda650165585ef75 | [
"MIT"
] | null | null | null | mix.exs | Kernael/elixir-reverse-shell | 7101770dbaa92a2aff70e785fda650165585ef75 | [
"MIT"
] | null | null | null | defmodule Ers.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
app: :ers,
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
defp deps do
[]
end
end
| 15.235294 | 39 | 0.57529 |
c8cba59b406c8fae1b50c2185a768e9fe391d3b4 | 1,395 | ex | Elixir | lib/blue_jet/app/catalogue/price/query.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/catalogue/price/query.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/catalogue/price/query.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Catalogue.Price.Query do
@behaviour BlueJet.Query
use BlueJet, :query
alias BlueJet.Catalogue.{Product, Price}
def identifiable_fields, do: [:id, :status, :product_id]
def filterable_fields, do: [:status, :label, :product_id]
def searchable_fields, do: [:name, :caption]
def default()... | 25.363636 | 76 | 0.685305 |
c8cbaa0cbed32d8566422b040d53969478e8d34d | 271 | ex | Elixir | lib/ecto_tablestore/supervisor.ex | xosdy/ecto_tablestore | bea08b70fcf7a12932e677b63882cfb936956b1a | [
"MIT"
] | null | null | null | lib/ecto_tablestore/supervisor.ex | xosdy/ecto_tablestore | bea08b70fcf7a12932e677b63882cfb936956b1a | [
"MIT"
] | null | null | null | lib/ecto_tablestore/supervisor.ex | xosdy/ecto_tablestore | bea08b70fcf7a12932e677b63882cfb936956b1a | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.Tablestore.Supervisor do
@moduledoc false
use DynamicSupervisor
def start_link([]) do
DynamicSupervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init([]) do
DynamicSupervisor.init(strategy: :one_for_one)
end
end
| 19.357143 | 66 | 0.741697 |
c8cbeac9eff9bfd2013afe9568bb6456d00c950d | 67 | ex | Elixir | apps/bookmarker/web/views/layout_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/web/views/layout_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/web/views/layout_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.LayoutView do
use Bookmarker.Web, :view
end
| 16.75 | 34 | 0.80597 |
c8cbfdbf9b3f8eeb185dcbb6552a3194a658bd47 | 1,726 | ex | Elixir | lib/dogma/config.ex | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | lib/dogma/config.ex | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | lib/dogma/config.ex | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | defmodule Dogma.Config do
@moduledoc """
Responsible for gathering all the configuration state required to run Dogma.
"""
defstruct(
rules: [],
exclude: [],
)
@default_set Dogma.RuleSet.All
@doc """
Build the config struct for the current project.
"""
def build do
%__MODULE__{
... | 22.710526 | 80 | 0.615295 |
c8cbff24a544557c7e47f64044a8622f8102842f | 253 | exs | Elixir | apps/database/config/prod.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 2 | 2018-06-23T11:43:34.000Z | 2019-01-07T10:52:42.000Z | apps/database/config/prod.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-21T01:20:04.000Z | 2018-06-21T01:20:04.000Z | apps/database/config/prod.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-30T21:40:51.000Z | 2018-06-30T21:40:51.000Z | use Mix.Config
# Production Environment
config :database, DataBase.Repos.AmethystRepo,
adapter: Ecto.Adapters.Postgres,
database: "${POSTGRES_DB}",
username: "${POSTGRES_USER}",
password: "${POSTGRES_PASSWORD}",
hostname: "${POSTGRES_HOST}"
| 23 | 46 | 0.731225 |
c8cc0f7b896bdd480f093e357de720e19356fbae | 3,472 | ex | Elixir | lib/grapevine/telnet/web_client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/web_client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | lib/grapevine/telnet/web_client.ex | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | defmodule Grapevine.Telnet.WebClient do
@moduledoc """
Callbacks for specifically checking MSSP data
"""
require Logger
alias Grapevine.Telnet.Client
alias Grapevine.Telnet.ClientSupervisor
@behaviour Client
@idle_time 15_000
def recv(pid, message) do
send(pid, {:recv, message})
end
def ... | 24.27972 | 107 | 0.645161 |
c8cc2bbb97b0397832fab369046a1c7ddc15235f | 35 | exs | Elixir | hello_elixir/test/simple.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | hello_elixir/test/simple.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | 4 | 2021-10-06T22:07:13.000Z | 2022-02-27T10:35:34.000Z | hello_elixir/test/simple.exs | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | IO.puts "Hello world from Elixir"
| 17.5 | 34 | 0.742857 |
c8cc2e2628688f581d4890da01453fc8a68df59e | 205 | exs | Elixir | priv/repo/migrations/20200630195815_add_sub_agency_id_to_challenges.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | priv/repo/migrations/20200630195815_add_sub_agency_id_to_challenges.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | priv/repo/migrations/20200630195815_add_sub_agency_id_to_challenges.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Repo.Migrations.AddSubAgencyIdToChallenges do
use Ecto.Migration
def change do
alter table(:challenges) do
add :sub_agency_id, references(:agencies)
end
end
end
| 20.5 | 68 | 0.756098 |
c8cc4acfa4b8d9fb39d9b332c856018b5d3a72ac | 610 | ex | Elixir | lib/otp_applications_3/lib/otp_applications_3/supervisor.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | lib/otp_applications_3/lib/otp_applications_3/supervisor.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | 1 | 2020-01-28T00:19:53.000Z | 2020-01-28T00:19:53.000Z | lib/otp_applications_3/lib/otp_applications_3/supervisor.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | defmodule OTPApplications3.Supervisor do
use Supervisor
def start_link(initial_number) do
result = {:ok, sup} = Supervisor.start_link(__MODULE__, [initial_number])
start_workers(sup, initial_number)
result
end
def start_workers(sup, initial_number) do
# スタッシュワーカーを開始
{:ok, stash} = Supervis... | 29.047619 | 118 | 0.72459 |
c8cc576ef9f11570889a01f68f10a22da8094f5b | 1,031 | ex | Elixir | apps/game_of_life/lib/game_of_life/user_service.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/game_of_life/lib/game_of_life/user_service.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/game_of_life/lib/game_of_life/user_service.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | defmodule GameOfLife.UserService do
use Sim.Commands.SimHelpers, app_module: GameOfLife
use Sim.Commands.DataHelpers, app_module: GameOfLife
@behaviour Sim.CommandHandler
alias GameOfLife.Grid
@impl true
def execute(:start, delay: delay, command: command) do
start_simulation_loop(delay || 100, comman... | 21.040816 | 71 | 0.671193 |
c8cc606b119aae300c97a9b25b8e87ff1e23ae0a | 1,520 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_move_node_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_move_node_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_move_node_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... | 32.340426 | 151 | 0.748684 |
c8cc788fe4cbc9ffeaff8547be69ba0673f1ba7b | 3,351 | exs | Elixir | test/postoffice/rescuer/client_test.exs | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | test/postoffice/rescuer/client_test.exs | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | test/postoffice/rescuer/client_test.exs | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | defmodule Postoffice.Rescuer.ClientTest do
use ExUnit.Case, async: true
import Mox
alias Postoffice.Rescuer.Adapters.HttpMock
alias Postoffice.Rescuer.Client
@origin_host "http://fake_origin.host"
@wrong_message_id 9999
@external_message_id 1
@one_message_response "[{\"id\": 1, \"topic\": \"test\", \... | 34.90625 | 324 | 0.640704 |
c8cc946d67d4f23a47bdad5367737e54e6f5a274 | 691 | ex | Elixir | debian/preinst.ex | dg14/airwave | df6bc2606046bde33afc68b06ad183954d87f365 | [
"MIT"
] | null | null | null | debian/preinst.ex | dg14/airwave | df6bc2606046bde33afc68b06ad183954d87f365 | [
"MIT"
] | null | null | null | debian/preinst.ex | dg14/airwave | df6bc2606046bde33afc68b06ad183954d87f365 | [
"MIT"
] | null | null | null | #!/bin/sh
# preinst script for airwave
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details,... | 19.194444 | 63 | 0.628075 |
c8cca35ae5d53767d3d75a64e7ac0bc594d9db03 | 7,791 | ex | Elixir | lib/sftp_client.ex | ClusterTruck/sftp_client | 87a38c073ccc65f07d5879e76d989b2a5c6ea328 | [
"MIT"
] | 21 | 2019-08-06T01:39:15.000Z | 2021-04-15T20:08:04.000Z | lib/sftp_client.ex | ClusterTruck/sftp_client | 87a38c073ccc65f07d5879e76d989b2a5c6ea328 | [
"MIT"
] | 19 | 2019-07-10T17:10:34.000Z | 2021-04-18T11:16:58.000Z | lib/sftp_client.ex | ClusterTruck/sftp_client | 87a38c073ccc65f07d5879e76d989b2a5c6ea328 | [
"MIT"
] | 11 | 2019-07-04T14:56:37.000Z | 2021-04-26T19:09:22.000Z | defmodule SFTPClient do
@moduledoc """
This is an SFTP Client that wraps Erlang's `:ssh` and `:ssh_sftp` libraries
for easier usage in Elixir.
## Connect & Disconnect
To open a new connection to an SFTP server:
iex> {:ok, conn} = SFTPClient.connect(host: "ftp.myhost.com")
{:ok, %SFTPClient.Conn... | 35.738532 | 92 | 0.722115 |
c8ccb33454a60067cb79cf5d21fc7e05d606a6a0 | 56 | ex | Elixir | testData/org/elixir_lang/find_usages/module_recursive_usage.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/find_usages/module_recursive_usage.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/find_usages/module_recursive_usage.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule Declaration do
alias Dec<caret>laration
end
| 14 | 26 | 0.821429 |
c8cceef448591ac0207186b81a016910b6e887c6 | 392 | ex | Elixir | lib/mix/upload_recipe.ex | boonious/origin_simulator | d3b8de70517b037faa24461e77c58d5f7e78f1c8 | [
"MIT"
] | null | null | null | lib/mix/upload_recipe.ex | boonious/origin_simulator | d3b8de70517b037faa24461e77c58d5f7e78f1c8 | [
"MIT"
] | null | null | null | lib/mix/upload_recipe.ex | boonious/origin_simulator | d3b8de70517b037faa24461e77c58d5f7e78f1c8 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.UploadRecipe do
use Mix.Task
def run([host, recipe]) do
{:ok, _started} = Application.ensure_all_started(:httpoison)
recipe = get_json("./examples/#{recipe}.json")
HTTPoison.post("#{host}/add_recipe", recipe)
end
def run([recipe]) do
run(["http://localhost:8080", recipe])... | 19.6 | 64 | 0.668367 |
c8ccf094d19f1cd169b124b3333344f87499ea50 | 1,412 | exs | Elixir | test/phoenix_live_view/router_test.exs | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | test/phoenix_live_view/router_test.exs | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | test/phoenix_live_view/router_test.exs | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.RouterTest do
use ExUnit.Case, async: true
use Phoenix.ConnTest
alias Phoenix.LiveViewTest.Endpoint
@endpoint Endpoint
@moduletag :capture_log
setup config do
conn = Plug.Test.init_test_session(build_conn(), config[:plug_session] || %{})
{:ok, conn: conn}
end
test ... | 29.416667 | 92 | 0.661473 |
c8cd0114eac130a9ff5e228d01bbe1a76414424e | 5,818 | exs | Elixir | home_page_local/test/home_page/contents/contents_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/test/home_page/contents/contents_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/test/home_page/contents/contents_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | defmodule HomePage.ContentsTest do
use HomePage.DataCase
alias HomePage.Contents
describe "component_item" do
alias HomePage.Contents.ComponentItem
@valid_attrs %{description: "some description", position: 42, size: 42, title: "some title"}
@update_attrs %{description: "some updated description", p... | 42.15942 | 113 | 0.731523 |
c8cd1a5475e2df8adf3409698cf437a96825bdf2 | 2,118 | exs | Elixir | config/dev.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 1 | 2019-10-26T07:17:24.000Z | 2019-10-26T07:17:24.000Z | config/dev.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 2 | 2021-03-09T21:15:44.000Z | 2021-05-10T17:59:48.000Z | config/dev.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :artsy, Artsy.Repo,
username: "postgres",
password: "postgres",
database: "artsy_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# ... | 27.506494 | 68 | 0.687913 |
c8cd3402f37aaf02f1ffee86defe031f92c4b080 | 1,487 | ex | Elixir | lib/doctor_schedule_web/controllers/api/user_controller.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | lib/doctor_schedule_web/controllers/api/user_controller.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | lib/doctor_schedule_web/controllers/api/user_controller.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorScheduleWeb.Api.UserController do
use DoctorScheduleWeb, :controller
alias DoctorSchedule.Accounts.Entities.User
alias DoctorSchedule.Accounts.Repositories.AccountRepository
alias DoctorSchedule.Accounts.Services.CreateUser
alias DoctorSchedule.Accounts.Services.ListProviders
action_fallba... | 28.596154 | 85 | 0.68191 |
c8cd4e121b1483549fdb44ffa9b0d14171e1e1c7 | 79 | ex | Elixir | lib/personal_training_web/views/page_view.ex | brandaoplaster/personal_training | 6b30501d1e96f500eace4ba241af8bbd40e7287a | [
"MIT"
] | null | null | null | lib/personal_training_web/views/page_view.ex | brandaoplaster/personal_training | 6b30501d1e96f500eace4ba241af8bbd40e7287a | [
"MIT"
] | 3 | 2022-03-06T17:39:09.000Z | 2022-03-06T19:24:53.000Z | lib/personal_training_web/views/page_view.ex | brandaoplaster/personal_training | 6b30501d1e96f500eace4ba241af8bbd40e7287a | [
"MIT"
] | null | null | null | defmodule PersonalTrainingWeb.PageView do
use PersonalTrainingWeb, :view
end
| 19.75 | 41 | 0.848101 |
c8cd6c6fcc17ce3423e23c04067f0d5aab58157d | 1,148 | exs | Elixir | mix.exs | chamot1111/kino | f8926871d0d00f8e71d319c11f01bd465eaae0d5 | [
"Apache-2.0"
] | null | null | null | mix.exs | chamot1111/kino | f8926871d0d00f8e71d319c11f01bd465eaae0d5 | [
"Apache-2.0"
] | null | null | null | mix.exs | chamot1111/kino | f8926871d0d00f8e71d319c11f01bd465eaae0d5 | [
"Apache-2.0"
] | null | null | null | defmodule Kino.MixProject do
use Mix.Project
@version "0.3.0"
@description "Interactive widgets for Livebook"
def project do
[
app: :kino,
version: @version,
description: @description,
name: "Kino",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: dep... | 20.5 | 75 | 0.549652 |
c8cd733fa8f8977154133680ec84c390b0408444 | 368 | ex | Elixir | web/views/session_view.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | web/views/session_view.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | web/views/session_view.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | defmodule Scrumapi.SessionView do
use Scrumapi.Web, :view
def render("show.json", %{session: session}) do
%{data: render_one(session, Scrumapi.SessionView, "session.json")}
end
def render("session.json", %{session: session}) do
%{token: session.token}
end
def render("error.json", _anything) do
... | 23 | 70 | 0.684783 |
c8cd7699f6741c0b0a2252c0c3d41ae9695d30c2 | 110 | exs | Elixir | test/data_test.exs | argl/ergast-f1-dataviz | 3c3a85dfcc6bac9cf46bcf8df9b7222abdacebdc | [
"MIT"
] | null | null | null | test/data_test.exs | argl/ergast-f1-dataviz | 3c3a85dfcc6bac9cf46bcf8df9b7222abdacebdc | [
"MIT"
] | null | null | null | test/data_test.exs | argl/ergast-f1-dataviz | 3c3a85dfcc6bac9cf46bcf8df9b7222abdacebdc | [
"MIT"
] | null | null | null | defmodule DataTest do
use ExUnit.Case
doctest Data
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.222222 | 21 | 0.654545 |
c8cdb491500914a63b7e3725fbe18a43cd7d021a | 1,100 | exs | Elixir | advent_umbrella_2016/apps/day3/day3.exs | lauromoura/adventofcode | 320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78 | [
"Unlicense"
] | null | null | null | advent_umbrella_2016/apps/day3/day3.exs | lauromoura/adventofcode | 320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78 | [
"Unlicense"
] | null | null | null | advent_umbrella_2016/apps/day3/day3.exs | lauromoura/adventofcode | 320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78 | [
"Unlicense"
] | null | null | null | defmodule Gifter do
defstruct homes: MapSet.new(), x: 0, y: 0
end
defmodule Day3 do
defp update(%Gifter{homes: homes, x: x, y: y}, delta_x, delta_y) do
%Gifter{homes: MapSet.put(homes, {x, y}), x: x + delta_x, y: y + delta_y}
end
def move(data), do: (move data, %Gifter{}, %Gifter{})
# Coords grow lik... | 37.931034 | 96 | 0.629091 |
c8cdb7fa38dce49fc6da30480565db2b7e551f3e | 76 | exs | Elixir | test/number/phone_test.exs | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | 199 | 2015-06-09T22:30:40.000Z | 2022-03-24T03:40:16.000Z | test/number/phone_test.exs | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | 37 | 2015-06-10T16:32:05.000Z | 2021-12-08T18:14:37.000Z | test/number/phone_test.exs | aai/number | bb4598d62179a0870dc5a20dc0eefad0aa717fc3 | [
"MIT"
] | 39 | 2015-06-10T07:07:09.000Z | 2021-12-08T20:25:52.000Z | defmodule Number.PhoneTest do
use ExUnit.Case
doctest Number.Phone
end
| 12.666667 | 29 | 0.789474 |
c8cdca9d03af03ecbc26d78f2d1fc4db2de4b904 | 4,587 | ex | Elixir | lib/codes/codes_r41.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r41.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r41.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_R41 do
alias IcdCode.ICDCode
def _R410 do
%ICDCode{full_code: "R410",
category_code: "R41",
short_code: "0",
full_name: "Disorientation, unspecified",
short_name: "Disorientation, unspecified",
category_name: "Disorientation, unspe... | 32.302817 | 101 | 0.615217 |
c8cde826aa2d0c614818df1aeaffe1b59d11594f | 268 | ex | Elixir | lib/helpers/list.ex | segfaultvicta/advent-ex | a300e2659858b45b545773a0f2ff24f00453d35f | [
"MIT"
] | null | null | null | lib/helpers/list.ex | segfaultvicta/advent-ex | a300e2659858b45b545773a0f2ff24f00453d35f | [
"MIT"
] | null | null | null | lib/helpers/list.ex | segfaultvicta/advent-ex | a300e2659858b45b545773a0f2ff24f00453d35f | [
"MIT"
] | null | null | null | defmodule Advent.Helpers.List do
def rotate_left(list, 0), do: list
def rotate_left([head|tail], magnitude), do: rotate_left(tail ++ [head], magnitude - 1)
def rotate_right(list, magnitude), do: list |> Enum.reverse |> rotate_left(magnitude) |> Enum.reverse
end
| 44.666667 | 103 | 0.723881 |
c8ce1dadb6cb3f93b774225cef9864552ede2b00 | 3,878 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_floodlight_criteria.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_floodlight_criteria.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_floodlight_criteria.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... | 55.4 | 299 | 0.743682 |
c8ce3285b5f8f8cf7bf3428a6cea5d41419676e4 | 91 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/31.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/31.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/31.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb SYM particle adjective adjective;
verb verb_aux particle pn conj;
| 18.2 | 39 | 0.769231 |
c8ce5bd4a7134f711c9df8a44ffcc785fbef112a | 59 | ex | Elixir | quickly/web/views/page_view.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | quickly/web/views/page_view.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | quickly/web/views/page_view.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | defmodule Quickly.PageView do
use Quickly.Web, :view
end
| 14.75 | 29 | 0.779661 |
c8ce6be26d9a60ec69810108676bda203e2512f0 | 10,594 | ex | Elixir | lib/aoc/intcode/interpreter.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | lib/aoc/intcode/interpreter.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | lib/aoc/intcode/interpreter.ex | CraigCottingham/advent-of-code-2019 | 76a1545e4cca14fe1e9e0de475de253170da1645 | [
"Apache-2.0"
] | null | null | null | defmodule AoC.Intcode.Interpreter do
@moduledoc false
use Task
import ExPrintf
alias AoC.Intcode.Memory
def initialize(initial_state) do
%{
state: :ready,
memory: [],
ip: 0,
rp: 0,
input_fn: fn -> nil end,
output_fn: nil,
trace: false,
trace_prefix: "",
... | 24.927059 | 98 | 0.557957 |
c8ceb1f22adf5cdeed9b7d1ce1921b97c5f3f7de | 3,688 | exs | Elixir | test/crud_macro_test.exs | mishka-group/mishka-developer-tools | 1d6d9874fff9ea320802e523d4a72a7b49bb7078 | [
"Apache-2.0"
] | 4 | 2021-12-07T06:24:18.000Z | 2022-03-20T23:10:51.000Z | test/crud_macro_test.exs | mishka-group/mishka-developer-tools | 1d6d9874fff9ea320802e523d4a72a7b49bb7078 | [
"Apache-2.0"
] | 4 | 2022-01-02T09:22:29.000Z | 2022-03-27T17:17:13.000Z | test/crud_macro_test.exs | mishka-group/mishka_developer_tools | cc03f1cdfb8873476e147a5051aaf5890e6ef803 | [
"Apache-2.0"
] | 1 | 2022-01-21T20:18:33.000Z | 2022-01-21T20:18:33.000Z | defmodule MishkaDeveloperToolsTest.Macro.DB.CrudMacroTest do
use ExUnit.Case, async: true
doctest MishkaDeveloperTools
alias Ecto.Integration.TestRepo
@right_info %{test_field_one: "this is a test with test", test_field_two: "this is a test with test"}
@eror_tag :test_tables
use MishkaDeveloperTools.DB.CRU... | 38.821053 | 140 | 0.675434 |
c8ceec41f1a0af05fbb3f9d690584864bf85c034 | 59 | ex | Elixir | test/support/test_event.ex | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | test/support/test_event.ex | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | test/support/test_event.ex | michaeljguarino/piazza_core | 9cb24c59687db068cd16d2de94066dc85f871bc0 | [
"MIT"
] | null | null | null | defmodule Piazza.TestEvent do
use Piazza.PubSub.Event
end | 19.666667 | 29 | 0.830508 |
c8cef54734431b3525f5cc7cca4b015c39851a97 | 4,676 | exs | Elixir | test/delta_sharing_test.exs | instadeq/elixir-delta-sharing-client | 9d7b29f842f7310404746747a1299c705d6c0aa3 | [
"MIT"
] | 2 | 2021-12-18T19:29:41.000Z | 2021-12-18T20:27:10.000Z | test/delta_sharing_test.exs | instadeq/elixir-delta-sharing-client | 9d7b29f842f7310404746747a1299c705d6c0aa3 | [
"MIT"
] | null | null | null | test/delta_sharing_test.exs | instadeq/elixir-delta-sharing-client | 9d7b29f842f7310404746747a1299c705d6c0aa3 | [
"MIT"
] | null | null | null | defmodule DeltaSharingTest do
use ExUnit.Case
alias DeltaSharing.Response.{Shares, Schemas, Protocol, MetaData, Tables}
test "Shares.from_data" do
data = %{"items" => [%{"name" => "delta_sharing"}]}
expected = %Shares{nextPageToken: nil, items: [%Shares.Share{id: nil, name: "delta_sharing"}]}
^expect... | 36.818898 | 810 | 0.541702 |
c8cefb078763ae1ed9ba75bd9e85ac32111fc9f2 | 2,286 | ex | Elixir | lib/surface/catalogue/components/component_info.ex | Malian/surface_catalogue | 5629a496db506cdb108e0b089e4d9445efa7825f | [
"MIT"
] | null | null | null | lib/surface/catalogue/components/component_info.ex | Malian/surface_catalogue | 5629a496db506cdb108e0b089e4d9445efa7825f | [
"MIT"
] | null | null | null | lib/surface/catalogue/components/component_info.ex | Malian/surface_catalogue | 5629a496db506cdb108e0b089e4d9445efa7825f | [
"MIT"
] | null | null | null | defmodule Surface.Catalogue.Components.ComponentInfo do
@moduledoc false
use Surface.Component
alias Surface.Catalogue.Components.ComponentAPI
alias Surface.Catalogue.Markdown
@doc "The component module"
prop module, :any, required: true
data full_module_name, :string
data doc_summary, :string
dat... | 28.222222 | 90 | 0.614611 |
c8cf099dec2cdbf0f7405ce6383413b8d3e99b1f | 1,768 | exs | Elixir | exercism.io/elixir/bob/bob_test.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | exercism.io/elixir/bob/bob_test.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | exercism.io/elixir/bob/bob_test.exs | metabrain/elixir-playground | 0c114ee8a8cb2d610f54b9cca83cbe6917226c33 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("bob.exs")
end
ExUnit.start
#ExUnit.configure exclude: :pending, trace: true
defmodule BobTest do
use ExUnit.Case
test "stating something" do
assert Bob.hey("Tom-ay-to, tom-aaaah-to.") == "Whatever."
end
@tag :pending
test "shouting" do
... | 21.82716 | 89 | 0.635747 |
c8cf464a4e860a3c9cc7b5ed35a3b712811c594b | 713 | ex | Elixir | video-code/30-application/servy/lib/servy/kick_starter.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/30-application/servy/lib/servy/kick_starter.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/30-application/servy/lib/servy/kick_starter.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | defmodule Servy.KickStarter do
use GenServer
def start_link(_arg) do
IO.puts "Starting the kickstarter..."
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
Process.flag(:trap_exit, true)
server_pid = start_server()
{:ok, server_pid}
end
def handle_info({:EX... | 24.586207 | 61 | 0.68864 |
c8cf71d2c06786182b463653ef1a9579d4e20e8a | 8,158 | exs | Elixir | lib/elixir/test/elixir/protocol_test.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/test/elixir/protocol_test.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/elixir/test/elixir/protocol_test.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule ProtocolTest do
use ExUnit.Case, async: true
doctest Protocol
{_, _, sample_binary, _} =
defprotocol Sample do
@type t :: any
@doc "Ok"
@deprecated "Reason"
@spec ok(t) :: boolean
def ok(term)
end
@sample_binary sa... | 28.624561 | 97 | 0.64783 |
c8cf9af1432fbef3520713dbecc14ac3985c6f84 | 2,836 | exs | Elixir | test/observation_test.exs | cwbriones/scientist | 897093daaef53d8c0c332d476342140703cf0b48 | [
"MIT"
] | 107 | 2016-04-17T08:04:45.000Z | 2021-12-17T00:16:27.000Z | test/observation_test.exs | cwbriones/scientist | 897093daaef53d8c0c332d476342140703cf0b48 | [
"MIT"
] | 3 | 2016-10-31T11:09:11.000Z | 2020-05-25T09:58:14.000Z | test/observation_test.exs | cwbriones/scientist | 897093daaef53d8c0c332d476342140703cf0b48 | [
"MIT"
] | 4 | 2016-04-23T21:47:41.000Z | 2020-05-20T12:31:25.000Z | defmodule ObservationTest do
use ExUnit.Case
alias Scientist.Experiment
alias Scientist.Observation
test "it runs and records execution" do
candidate = fn ->
:timer.sleep(100)
:control
end
experiment = Experiment.new("test")
observation = Observation.new(experiment, "control", can... | 29.541667 | 85 | 0.687588 |
c8cfcb3e411c372a4459f49a253b5d6e009f7e1e | 4,465 | ex | Elixir | lib/savvy.ex | hfiguera/savvy | 3ab6d08269367fa3f1aeec85adb102e55de7fe62 | [
"Apache-2.0"
] | null | null | null | lib/savvy.ex | hfiguera/savvy | 3ab6d08269367fa3f1aeec85adb102e55de7fe62 | [
"Apache-2.0"
] | null | null | null | lib/savvy.ex | hfiguera/savvy | 3ab6d08269367fa3f1aeec85adb102e55de7fe62 | [
"Apache-2.0"
] | null | null | null | defmodule Savvy do
@moduledoc """
SDK for Savvy https://www.savvy.io
You need to export the following environment variables:
export SAVVY_URL="https://api.test.savvy.io"
export SAVVY_SECRET="YOUSAVVYSECRECT"
export SAVVY_CALLBACK="http://localhost"
"""
alias Savvy.JSON
alias Savvy.HTTP
@url A... | 27.060606 | 96 | 0.553639 |
c8cfe58f914c80a441ad97455e123114fdd14269 | 3,571 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/cors_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/cors_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/cors_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.514706 | 320 | 0.714366 |
c8cfe6fa97e565d3060679a43f32730be1c244a4 | 4,276 | exs | Elixir | test/course_planner/classes/classes_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | test/course_planner/classes/classes_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | test/course_planner/classes/classes_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlanner.ClassesTest do
use CoursePlannerWeb.ModelCase
import CoursePlanner.Factory
alias CoursePlanner.Classes
setup do
insert(:system_variable, %{key: "TIMEZONE", value: "Europe/Budapest", type: "timezone"})
:ok
end
test "sort by starting time when input is an empty list" do
... | 35.04918 | 98 | 0.672123 |
c8d01318e56ed7d0777687aa11e5504dc38241d2 | 1,466 | ex | Elixir | extended_example/lib/web/endpoint.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 19 | 2020-10-08T14:05:30.000Z | 2022-03-18T08:43:11.000Z | extended_example/lib/web/endpoint.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | null | null | null | extended_example/lib/web/endpoint.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 3 | 2021-02-19T08:31:58.000Z | 2021-12-09T05:28:55.000Z | defmodule Web.Endpoint do
use Phoenix.Endpoint, otp_app: :demo
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_demo_key",
sign... | 28.745098 | 97 | 0.709413 |
c8d02a2f7328e4020c52d9eebc4a71e8bd05f903 | 2,512 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_import_product_sets_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_import_product_sets_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_import_product_sets_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 40.516129 | 321 | 0.763535 |
c8d02ec31bfeb2428589f1587d5ea7914e8c063f | 2,463 | exs | Elixir | test/stub_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/stub_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/stub_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Celery.SysCallGlue.StubsTest do
use ExUnit.Case
alias FarmbotOS.Celery.SysCallGlue.Stubs
test "various stubs" do
# This test is to:
# * Catch early problems caused by a downstream stub
# * Keep coverage consistent
# * Detect unusued stubs over time.
args = "args"
ax... | 27.366667 | 57 | 0.662201 |
c8d035585ee16eb5117dde93dcdf1d544bf14a0e | 2,390 | ex | Elixir | apps/day7/lib/day7.ex | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | apps/day7/lib/day7.ex | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | apps/day7/lib/day7.ex | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | defmodule Day7 do
@moduledoc """
Documentation for `Day7`.
"""
@doc """
Hello world.
"""
def run() do
get_input()
|> process(:first)
|> present()
get_input()
|> process(:second)
|> present()
end
def present({n, nx, x, xx} = _answer) do
IO.puts("minimum cost = #{n}, posit... | 23.9 | 93 | 0.592469 |
c8d0357f2a9b3aa692e7a6244b468009fdff7153 | 1,179 | ex | Elixir | test/support/channel_case.ex | wwaldner-amtelco/phoenix_container_example | aeee424b40f444fe6bbfeab4d57b78d201397701 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | wwaldner-amtelco/phoenix_container_example | aeee424b40f444fe6bbfeab4d57b78d201397701 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | wwaldner-amtelco/phoenix_container_example | aeee424b40f444fe6bbfeab4d57b78d201397701 | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixContainerExampleWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test ... | 31.864865 | 104 | 0.754877 |
c8d0440745eb79a91cd7575b999b907e4f9c853e | 1,364 | exs | Elixir | apps/fc_rss/test/fc_rss/url_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/fc_rss/test/fc_rss/url_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/fc_rss/test/fc_rss/url_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FcRss.UrlTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias FcRss.Url
doctest Url
setup do
ExVCR.Config.cassette_library_dir("fixture/vcr_cassettes")
:ok
end
describe "#pull/1" do
test "with invalid url" do
url_string = "asdf"
url... | 29.021277 | 62 | 0.631232 |
c8d096eee707fce7292ad45e06cced814a1d86f3 | 6,185 | ex | Elixir | lib/html_writer.ex | derek-zhou/html_writer | 7083971763c417d034ca15aae9947c7af762e050 | [
"MIT"
] | 1 | 2020-07-16T21:34:56.000Z | 2020-07-16T21:34:56.000Z | lib/html_writer.ex | derek-zhou/html_writer | 7083971763c417d034ca15aae9947c7af762e050 | [
"MIT"
] | null | null | null | lib/html_writer.ex | derek-zhou/html_writer | 7083971763c417d034ca15aae9947c7af762e050 | [
"MIT"
] | null | null | null | defmodule HtmlWriter do
@moduledoc """
Provide helper macros to write html programatically into a chardata
all macros in this module take an chardata as first argument and put more data in it
as the return value
"""
@doc ~S"""
helper macro to bind a value to a name, in order to maintain flow of the pipe... | 22.089286 | 99 | 0.589329 |
c8d0afe6db23548785f569e42e5783f6cfbaf053 | 12,835 | ex | Elixir | priv/templates/phx.gen.auth/context_functions.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | priv/templates/phx.gen.auth/context_functions.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | priv/templates/phx.gen.auth/context_functions.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | alias <%= inspect context.module %>.{<%= inspect schema.alias %>, <%= inspect schema.alias %>Token, <%= inspect schema.alias %>Notifier}
## Database getters
@doc """
Gets a <%= schema.singular %> by email.
## Examples
iex> get_<%= schema.singular %>_by_email("foo@example.com")
%<%= inspect sch... | 37.52924 | 167 | 0.635216 |
c8d0e97478e98dd56c82ca3040663e6389bc1710 | 643 | exs | Elixir | mix.exs | esl/flex | b7d1c4b3ec01e08f3109caef3d6a83808e7cdae6 | [
"Apache-2.0"
] | 14 | 2018-09-10T13:26:36.000Z | 2021-03-11T23:21:05.000Z | mix.exs | esl/flex | b7d1c4b3ec01e08f3109caef3d6a83808e7cdae6 | [
"Apache-2.0"
] | null | null | null | mix.exs | esl/flex | b7d1c4b3ec01e08f3109caef3d6a83808e7cdae6 | [
"Apache-2.0"
] | 5 | 2018-09-10T14:17:07.000Z | 2022-03-06T10:15:42.000Z | defmodule Flex.Mixfile do
use Mix.Project
def project do
[
app: :flex,
version: "0.2.1",
elixir: "~> 1.6",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()
]
end
def application do
[
applications: [:logger, :httpoison, :poi... | 19.484848 | 51 | 0.468118 |
c8d0fa33ee0c4e6f45b4e658cce9f5199c3f11cb | 9,510 | ex | Elixir | lib/mppm/tracks/tracklist.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | 6 | 2020-11-18T10:10:51.000Z | 2021-03-17T14:28:36.000Z | lib/mppm/tracks/tracklist.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | 6 | 2020-11-10T21:50:43.000Z | 2021-03-04T09:41:22.000Z | lib/mppm/tracks/tracklist.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | null | null | null | defmodule Mppm.Tracklist do
@moduledoc """
GenServer taking care of servers tracklists. Also implements convenient functions
about tracklist
"""
use GenServer
use Ecto.Schema
import Ecto.Query
import Ecto.Changeset
require Logger
@maps_path Application.get_env(:mppm, :game_servers_root_path) <> "Us... | 36.436782 | 111 | 0.646267 |
c8d13a531c8b70d38a55f6bc1d396b53553800e8 | 282 | ex | Elixir | apps/api/lib/api_web/controllers/email_controller.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/api/lib/api_web/controllers/email_controller.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/api/lib/api_web/controllers/email_controller.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule ApiWeb.EmailController do
use ApiWeb, :controller
plug ApiWeb.Plugs.LicenseAuthorizer
def email(conn, params) do
with {:ok, email} <- Core.Services.Email.mk(params) do
Core.Services.Email.send(email)
json(conn, %{delivered: true})
end
end
end | 23.5 | 58 | 0.698582 |
c8d1586174aeafffdfa6d41f38ae6290a4d57968 | 6,551 | ex | Elixir | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/occurrence.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/occurrence.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/occurrence.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... | 66.171717 | 239 | 0.724012 |
c8d15dff565f5f0be6972b636aac2fcf96cb665b | 140 | ex | Elixir | lib/web_demo_web/controllers/page_controller.ex | pankaryp/Phoenix-server-demo | 7a028bb14ad58400e0215281e09627e168cf5792 | [
"MIT"
] | null | null | null | lib/web_demo_web/controllers/page_controller.ex | pankaryp/Phoenix-server-demo | 7a028bb14ad58400e0215281e09627e168cf5792 | [
"MIT"
] | null | null | null | lib/web_demo_web/controllers/page_controller.ex | pankaryp/Phoenix-server-demo | 7a028bb14ad58400e0215281e09627e168cf5792 | [
"MIT"
] | null | null | null | defmodule WebDemoWeb.PageController do
use WebDemoWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 17.5 | 38 | 0.742857 |
c8d16142ae0ef3d2d019e381fe1cbaf4b10a0dc3 | 2,548 | exs | Elixir | apps/local_ledger_db/test/local_ledger_db/cached_balance_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/local_ledger_db/test/local_ledger_db/cached_balance_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/local_ledger_db/test/local_ledger_db/cached_balance_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.432432 | 83 | 0.717818 |
c8d166ae04f4dfa80a927a7409294c653e27b37f | 1,868 | ex | Elixir | lib/streamex/activity.ex | ronaldcurtis/streamex | d919b0dcc1acea1799508b82e0bdac31f47a764b | [
"MIT"
] | null | null | null | lib/streamex/activity.ex | ronaldcurtis/streamex | d919b0dcc1acea1799508b82e0bdac31f47a764b | [
"MIT"
] | null | null | null | lib/streamex/activity.ex | ronaldcurtis/streamex | d919b0dcc1acea1799508b82e0bdac31f47a764b | [
"MIT"
] | null | null | null | defmodule Streamex.Activity do
@moduledoc """
The module `Streamex.Activity` contains logic to wrap
raw API results into `Streamex.Activity` structs.
Methods in the module `Streamex.Activities` must be called
with `Maps`, but will return `Streamex.Activity` structs.
GetStream activities submitted to the AP... | 24.25974 | 82 | 0.634368 |
c8d195d67e22191a495244c9a29aa599dc5824cd | 665 | ex | Elixir | lib/votr/hash_id.ex | wjanssens/votr | 4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6 | [
"MIT"
] | 1 | 2018-04-27T09:43:27.000Z | 2018-04-27T09:43:27.000Z | lib/votr/hash_id.ex | wjanssens/votr | 4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6 | [
"MIT"
] | null | null | null | lib/votr/hash_id.ex | wjanssens/votr | 4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6 | [
"MIT"
] | null | null | null | defmodule Votr.HashId do
@moduledoc false
@config Application.get_env(:votr, Votr.HashId)
@salt @config[:salt]
@min_length @config[:min_length]
@alphabet @config[:alphabet]
@coder Hashids.new(salt: @salt, min_len: @min_length, alphabet: @alphabet)
def encode(id) do
Hashids.encode(@coder, id)
end
... | 26.6 | 76 | 0.580451 |
c8d1a112de6b32a984c3ad599864f384e9172332 | 1,379 | ex | Elixir | lib/bullish/api/service.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-04-24T03:04:23.000Z | 2019-04-24T03:04:23.000Z | lib/bullish/api/service.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 3 | 2019-03-13T03:26:51.000Z | 2021-05-08T02:34:05.000Z | lib/bullish/api/service.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-03-07T04:56:16.000Z | 2019-03-07T04:56:16.000Z | defmodule Bullish.Api.Service do
@moduledoc """
Defines an API to interact with the GenServer
"""
alias Bullish.Api.Server
# @v1_sector_url "https://api.iextrading.com/1.0/stock/market/sector-performance"
@base_url "https://cloud.iexapis.com/beta/"
@sector_path "stock/market/sector-performance"
def b... | 31.340909 | 238 | 0.686004 |
c8d1c6237450fbb0a822fe1e3b4d7fe2d1bc2e21 | 495 | ex | Elixir | lib/kamleague_web/views/error_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | lib/kamleague_web/views/error_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | lib/kamleague_web/views/error_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule KamleagueWeb.ErrorView do
use KamleagueWeb, :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 template ... | 29.117647 | 61 | 0.737374 |
c8d1c650df693f5f92cfc2d7cf7e6f2c7767f981 | 2,225 | ex | Elixir | lib/student/reader.ex | manuelmontenegro/gather_submissions | f47de29614c64c16c493c3b9fd68997e8f4fd4c4 | [
"Apache-2.0"
] | null | null | null | lib/student/reader.ex | manuelmontenegro/gather_submissions | f47de29614c64c16c493c3b9fd68997e8f4fd4c4 | [
"Apache-2.0"
] | null | null | null | lib/student/reader.ex | manuelmontenegro/gather_submissions | f47de29614c64c16c493c3b9fd68997e8f4fd4c4 | [
"Apache-2.0"
] | null | null | null | defmodule GatherSubmissions.Student.Reader do
@moduledoc """
Provides a function for reading students' information from a CSV file.
"""
alias GatherSubmissions.Student
defmodule DuplicateHeaderError do
defexception message: "Duplicate headers in input CSV file"
end
defmodule MissingHeaderError do
... | 30.902778 | 123 | 0.695281 |
c8d1f81b339d0c8623ccd078028a82a597803ccb | 535 | ex | Elixir | test/support/fixtures/cellar_fixture.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | test/support/fixtures/cellar_fixture.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | test/support/fixtures/cellar_fixture.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule Ptr.Support.Fixtures.CellarFixture do
alias Ptr.Accounts.Session
alias Ptr.Cellars
defmacro __using__(_opts) do
quote do
@cellar_attrs %{identifier: "some identifier", name: "some name"}
def fixture(:cellar, attributes, _opts) do
account = fixture(:seed_account)
session... | 26.75 | 71 | 0.669159 |
c8d20db450cefc3ff0574dbf0f14506f4c1a3fb1 | 4,002 | ex | Elixir | farmbot_core/lib/farmbot_core/config_storage/config_storage.ex | EarthEngineering/facetop_os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_core/lib/farmbot_core/config_storage/config_storage.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/config_storage/config_storage.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config do
@moduledoc "API for accessing config data."
alias FarmbotCore.Config.{
Repo,
Config, Group, BoolValue, FloatValue, StringValue, NetworkInterface
}
import Ecto.Query, only: [from: 2]
@doc "Input a network config. Takes many settings as a map."
def input_network_conf... | 27.040541 | 101 | 0.596202 |
c8d25c50eaa5e9b4cd72ec115cb600f546d6b4a0 | 461 | exs | Elixir | process_playground/test/pong_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | process_playground/test/pong_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | process_playground/test/pong_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule PongTest do
use ExUnit.Case
test "it responds to a pong with a pong" do
pong = spawn_link(Pong, :start, [])
Process.send pong, {:ping, self}, []
assert_receive {:pong, ^pong}
end
test "it responds to two pongs with two pongs" do
pong = spawn_link(Pong, :start, [])
Process.send po... | 25.611111 | 51 | 0.633406 |
c8d263a5fddb8c22458f9560f723369d64c90ed6 | 2,342 | exs | Elixir | test/mr_roboto/warden_test.exs | LeakyBucket/mr_roboto | 1c7ca71779bc10945cc85bb9f1f7ab39e1b0a3e6 | [
"MIT"
] | 2 | 2016-03-31T23:28:36.000Z | 2016-10-29T09:53:31.000Z | test/mr_roboto/warden_test.exs | LeakyBucket/mr_roboto | 1c7ca71779bc10945cc85bb9f1f7ab39e1b0a3e6 | [
"MIT"
] | 1 | 2016-10-29T09:53:18.000Z | 2016-10-29T09:53:18.000Z | test/mr_roboto/warden_test.exs | LeakyBucket/mr_roboto | 1c7ca71779bc10945cc85bb9f1f7ab39e1b0a3e6 | [
"MIT"
] | null | null | null | defmodule MrRoboto.WardenTest do
use ExUnit.Case, async: true
alias MrRoboto.Agent
alias MrRoboto.Rules
alias MrRoboto.Warden
@records %{
"www.google.com" => %{
"*" => %Warden{rule: %Rules{user_agent: "*", allow: ["/foo"], disallow: ["/bar"]}, last_applied: nil}
},
"www.lawlytics.com" => %... | 34.955224 | 117 | 0.653288 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.