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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c70a4c5cef0a514a3318e551a0fbfbc2f33067a | 3,262 | exs | Elixir | test/exdns/zone/cache_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 16 | 2016-05-26T10:11:57.000Z | 2021-01-08T15:09:19.000Z | test/exdns/zone/cache_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 9 | 2016-08-11T00:48:27.000Z | 2020-09-16T22:10:07.000Z | test/exdns/zone/cache_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 11 | 2016-08-10T08:13:36.000Z | 2021-04-03T10:20:11.000Z | defmodule Exdns.Zone.CacheTest do
use ExUnit.Case, async: false
require Exdns.Records
setup do
name = "example.com"
soa_record = Exdns.Records.dns_rr(name: name, type: :dns_terms_const.dns_type_soa, data: Exdns.Records.dns_rrdata_soa())
ns_record = Exdns.Records.dns_rr(name: name, type: :dns_terms_c... | 38.833333 | 161 | 0.717045 |
1c70aa7801e5b090fe5e173eb3246c690f1d9c9c | 2,068 | exs | Elixir | chat-api/test/controllers/room_controller_test.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | chat-api/test/controllers/room_controller_test.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | 3 | 2018-01-23T10:53:08.000Z | 2018-01-23T10:58:23.000Z | chat-api/test/controllers/room_controller_test.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | defmodule Chat.RoomControllerTest do
use Chat.ConnCase
alias Chat.Room
@valid_attrs %{name: "some content", topic: "some content"}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index", %{conn: conn} do
co... | 33.354839 | 98 | 0.65764 |
1c70cd1630836145e66bb36d61544196bed2d515 | 804 | ex | Elixir | lib/nomad_client/model/sentinel_policy_list_stub.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/sentinel_policy_list_stub.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/sentinel_policy_list_stub.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Model.SentinelPolicyListStub do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:Name,
:Description,
:Scope,... | 22.971429 | 91 | 0.620647 |
1c70d9424e98ce20cf9484f58bf71939a90764f7 | 446 | exs | Elixir | priv/repo/migrations/20210820161938_remove_context_types.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210820161938_remove_context_types.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210820161938_remove_context_types.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | defmodule Cometoid.Repo.Migrations.RemoveContextTypes do
use Ecto.Migration
def change do
alter table(:contexts) do
add :context_type, :string
end
execute("UPDATE contexts SET context_type=context_types.title " <>
"FROM context_types " <>
"WHERE contexts.context_type_id=co... | 26.235294 | 70 | 0.690583 |
1c70e25e53de20428e1c2b4e238b6d3a08ca8502 | 1,162 | ex | Elixir | lib/ex_oneroster/web/controllers/class_controller.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | lib/ex_oneroster/web/controllers/class_controller.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | lib/ex_oneroster/web/controllers/class_controller.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.Web.ClassController do
use ExOneroster.Web, :controller
alias ExOneroster.Classes
alias ExOneroster.Classes.Class
action_fallback ExOneroster.Web.FallbackController
def index(conn, _params) do
classes = Classes.list_classes()
render(conn, "index.json", classes: classes)
end
... | 27.023256 | 80 | 0.649742 |
1c70ed08114d456549106af9d32c3712f357ee8e | 117 | exs | Elixir | .formatter.exs | fribmendes/firenest | 75ecb367b66a67266fc04a25e355f75369bd3fd0 | [
"Apache-2.0"
] | 266 | 2016-11-04T12:52:55.000Z | 2021-12-30T21:54:03.000Z | .formatter.exs | fribmendes/firenest | 75ecb367b66a67266fc04a25e355f75369bd3fd0 | [
"Apache-2.0"
] | 22 | 2016-12-28T23:08:20.000Z | 2018-11-20T19:09:52.000Z | .formatter.exs | fribmendes/firenest | 75ecb367b66a67266fc04a25e355f75369bd3fd0 | [
"Apache-2.0"
] | 21 | 2016-11-10T14:45:31.000Z | 2021-07-02T23:53:20.000Z | [
locals_without_parens: [
assert_hibernate: 1
],
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
| 16.714286 | 56 | 0.581197 |
1c7110cf94bdda15a200246d63092bd2d8c3ba5d | 2,063 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/image.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/image.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/image.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.26 | 350 | 0.739215 |
1c7153add169b9c8b1a5c48e2174ecd612dd6416 | 59 | ex | Elixir | apps/theta_web/lib/theta_web/views/layout_view.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta_web/lib/theta_web/views/layout_view.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta_web/lib/theta_web/views/layout_view.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule ThetaWeb.LayoutView do
use ThetaWeb, :view
end
| 14.75 | 32 | 0.79661 |
1c7171799b1c3e11713a374893c914ef42bf2b57 | 465 | ex | Elixir | lib/cldr/unit/alias.ex | kianmeng/cldr_units | fae3ed1f658e6b4c5164c2ebbe786cc562014a8b | [
"Apache-2.0"
] | 11 | 2019-07-31T19:33:07.000Z | 2021-11-15T13:11:19.000Z | lib/cldr/unit/alias.ex | kianmeng/cldr_units | fae3ed1f658e6b4c5164c2ebbe786cc562014a8b | [
"Apache-2.0"
] | 19 | 2019-06-09T02:41:44.000Z | 2022-03-03T14:54:40.000Z | lib/cldr/unit/alias.ex | kianmeng/cldr_units | fae3ed1f658e6b4c5164c2ebbe786cc562014a8b | [
"Apache-2.0"
] | 3 | 2017-10-05T11:35:32.000Z | 2018-08-06T21:47:43.000Z | defmodule Cldr.Unit.Alias do
@moduledoc """
Functions to manage unit name aliases
"""
@aliases %{
metre: :meter,
kilometre: :kilometer
}
@aliases Cldr.Config.units()
|> Map.get(:aliases)
|> Map.merge(@aliases)
def aliases do
@aliases
end
@doc """
Un-aliases the... | 16.034483 | 42 | 0.608602 |
1c7179e8e2ba5039cbb95b7e4814b37af93878f5 | 2,812 | ex | Elixir | lib/response/response.ex | Code-Mercenaries/phoenix_alexa | 168d212f0a1653f0b08b1499f695020004634751 | [
"MIT"
] | null | null | null | lib/response/response.ex | Code-Mercenaries/phoenix_alexa | 168d212f0a1653f0b08b1499f695020004634751 | [
"MIT"
] | null | null | null | lib/response/response.ex | Code-Mercenaries/phoenix_alexa | 168d212f0a1653f0b08b1499f695020004634751 | [
"MIT"
] | null | null | null | defmodule PhoenixAlexa.Response do
alias PhoenixAlexa.{Response, TextOutputSpeech, SsmlOutputSpeech}
alias PhoenixAlexa.{SimpleCard, StandardCard, LinkAccountCard}
defstruct version: "1.0",
sessionAttributes: %{},
response: %{
shouldEndSession: false
}
# def s... | 30.236559 | 93 | 0.712304 |
1c718dd1e7ec363325fb90fb4f4353165d04c407 | 1,560 | ex | Elixir | test/support/data_case.ex | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | test/support/data_case.ex | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | test/support/data_case.ex | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | defmodule CoopMinesweeper.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes d... | 30 | 96 | 0.703205 |
1c71a6ce08f80ee60f136f5fd54424bfb981adb8 | 4,496 | ex | Elixir | lib/declaimer/dsl.ex | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | lib/declaimer/dsl.ex | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | 2 | 2017-10-09T15:19:46.000Z | 2017-10-09T15:19:46.000Z | lib/declaimer/dsl.ex | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | defmodule Declaimer.DSL do
alias Declaimer.TagAttribute
import Declaimer.Builder
# metadata functions !!
def title(title), do: {:h1, [title], class: ["title"]}
def subtitle(subtitle), do: {:div, [subtitle], class: ["subtitle"]}
def date(date), do: {:div, [date], class: ["date"]}
def... | 27.925466 | 76 | 0.609875 |
1c71e0bf197d30bf9e234edda51c8abe21403a85 | 1,181 | exs | Elixir | darts/test/darts_test.exs | okaram/exercism-elixir | 66429a50738a16da5d352ad4455a483622625949 | [
"Unlicense"
] | null | null | null | darts/test/darts_test.exs | okaram/exercism-elixir | 66429a50738a16da5d352ad4455a483622625949 | [
"Unlicense"
] | null | null | null | darts/test/darts_test.exs | okaram/exercism-elixir | 66429a50738a16da5d352ad4455a483622625949 | [
"Unlicense"
] | null | null | null | defmodule DartsTest do
use ExUnit.Case
# @tag :pending
test "Missed target" do
assert Darts.score({-9, 9}) == 0
end
test "On the outer circle" do
assert Darts.score({0, 10}) == 1
end
test "On the middle circle" do
assert Darts.score({-5, 0}) == 5
end
test "On the inner circle" do
... | 17.367647 | 68 | 0.607113 |
1c72019d01d188ce12488fd6dcef004c4998e2dc | 926 | exs | Elixir | mix.exs | jamesandariese/ex-utils-caddr | dca3ccae973cf5dda8874af343cac2eb207841e8 | [
"Apache-2.0"
] | null | null | null | mix.exs | jamesandariese/ex-utils-caddr | dca3ccae973cf5dda8874af343cac2eb207841e8 | [
"Apache-2.0"
] | null | null | null | mix.exs | jamesandariese/ex-utils-caddr | dca3ccae973cf5dda8874af343cac2eb207841e8 | [
"Apache-2.0"
] | null | null | null | defmodule Caddr.MixProject do
use Mix.Project
def project do
[
app: :caddr,
version: "0.2.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
package: [
licenses: ["apache-2.0"],
name: "ex_utils_caddr",
links: %{
"github" => "https://github.com/jamesandariese/ex-utils... | 21.534884 | 88 | 0.582073 |
1c72554a840512fa5235bf34c9870360f2bf1f17 | 10,692 | ex | Elixir | lib/zeroth/user.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | 1 | 2017-06-02T10:07:47.000Z | 2017-06-02T10:07:47.000Z | lib/zeroth/user.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | lib/zeroth/user.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | defmodule Zeroth.User do
@moduledoc """
Auth0 User management. https://auth0.com/docs/api/management/v2#!/Users
"""
alias Zeroth.Api
alias Zeroth.Token
alias Zeroth.Param
alias Lonely.Result
alias Lonely.Option
alias URI.Ext, as: URIE
@path URI.parse("/api/v2/users")
@derive [Poison.Encoder, Po... | 34.714286 | 147 | 0.597082 |
1c726ce34accd3f5788c968121f55fdea33aad91 | 1,115 | exs | Elixir | config/config.exs | cryptobird/ex_iss | b6124614e68f09bedb1ba8739aab1b4a66014b40 | [
"WTFPL"
] | 4 | 2015-12-08T14:00:37.000Z | 2020-05-11T11:24:45.000Z | config/config.exs | cryptobird/ex_iss | b6124614e68f09bedb1ba8739aab1b4a66014b40 | [
"WTFPL"
] | null | null | null | config/config.exs | cryptobird/ex_iss | b6124614e68f09bedb1ba8739aab1b4a66014b40 | [
"WTFPL"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.750673 |
1c727058c72a197a240e62225f6018e1a7446087 | 3,477 | ex | Elixir | test/support/exemplars/reservation_focused.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/support/exemplars/reservation_focused.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/support/exemplars/reservation_focused.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.Exemplars.ReservationFocused do
use ExUnit.CaseTemplate
use Crit.TestConstants
alias Crit.Schemas.{Animal, Procedure}
alias Crit.Sql
alias Ecto.Datespan
alias Crit.Servers.Institution
alias CritBiz.ViewModels.Reservation.AfterTheFact, as: VM
alias Crit.Reservations.ReservationApi
import... | 27.377953 | 85 | 0.70463 |
1c728b75af6c89c2d8ccdf6e02101d0804283b90 | 3,953 | exs | Elixir | test/teiserver/coordinator/joining_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/teiserver/coordinator/joining_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/teiserver/coordinator/joining_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | defmodule Teiserver.Coordinator.JoiningTest do
use Central.ServerCase, async: false
alias Teiserver.Battle.Lobby
alias Teiserver.Common.PubsubListener
alias Teiserver.Coordinator
alias Teiserver.Client
alias Teiserver.Account.UserCache
import Teiserver.TeiserverTestLib,
only: [tachyon_auth_setup: 0,... | 30.175573 | 138 | 0.649633 |
1c72ca333e91f57cc3365f0da9a7e7bad2e2c448 | 789 | ex | Elixir | lib/admissions/slack.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 18 | 2018-12-01T22:55:24.000Z | 2022-03-11T04:12:43.000Z | lib/admissions/slack.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 14 | 2018-12-01T01:00:33.000Z | 2021-06-24T00:40:39.000Z | lib/admissions/slack.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 1 | 2019-02-10T16:12:15.000Z | 2019-02-10T16:12:15.000Z | defmodule Admissions.Slack do
@moduledoc """
A module for interacting with the Slack API
"""
@invite_url "https://elixirschool.slack.com/api/users.admin.invite"
@spec invite(String.t()) :: :ok | {:error, String.t()}
def invite(email) do
email
|> slack_invite()
|> slack_response()
end
defp... | 23.909091 | 69 | 0.631179 |
1c72f5ff4e6cb47686885ae5c0bd410d1b8aeba4 | 563 | ex | Elixir | apps/rtmp/lib/rtmp/protocol/messages/abort.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/rtmp/lib/rtmp/protocol/messages/abort.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/rtmp/lib/rtmp/protocol/messages/abort.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | defmodule Rtmp.Protocol.Messages.Abort do
@moduledoc """
Message used to notify the peer that if it is waiting
for chunks to complete a message, then discard the partially
received message
"""
@behaviour Rtmp.Protocol.RawMessage
@type t :: %__MODULE__{}
defstruct stream_id: nil
def deserialize(da... | 20.851852 | 62 | 0.699822 |
1c72fceff95411db5131352c637b1c6a9af0c514 | 3,116 | ex | Elixir | lib/seven.ex | mitchellhenke/AdventOfCode2020 | 8d5e89ce0d17697396344e35f76a24e4580d25dd | [
"MIT"
] | null | null | null | lib/seven.ex | mitchellhenke/AdventOfCode2020 | 8d5e89ce0d17697396344e35f76a24e4580d25dd | [
"MIT"
] | null | null | null | lib/seven.ex | mitchellhenke/AdventOfCode2020 | 8d5e89ce0d17697396344e35f76a24e4580d25dd | [
"MIT"
] | null | null | null | defmodule Adventofcode2020.Seven do
@external_resource "data/seven.txt"
@inverse_bags File.read!("data/seven.txt")
|> String.split("\n", trim: true)
|> Enum.map(fn bag ->
[name, bags] = String.split(bag, " contain ", trim: true)
bags =
... | 31.16 | 90 | 0.453466 |
1c73217dad7a04797151193534173014817ed314 | 401 | ex | Elixir | 05-chapter/11_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 05-chapter/11_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 05-chapter/11_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | list = [1, 3, 5, 7, 9]
"# => List:" |> IO.puts()
list |> IO.inspect()
IO.puts("")
"# => List: element * 2" |> IO.puts()
Enum.map(list, fn elem -> elem * 2 end) |> IO.inspect()
IO.puts("")
"# => List: element * element" |> IO.puts()
Enum.map(list, fn elem -> elem * elem end) |> IO.inspect()
IO.puts("")
"# => List: e... | 23.588235 | 58 | 0.53616 |
1c734ed6dc22083c1a09bcc0a09eb9f43fd5e0db | 15,468 | ex | Elixir | lib/aws/request.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/request.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/request.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | defmodule AWS.Request do
@moduledoc false
alias AWS.Client
alias AWS.Request.Internal
alias AWS.ServiceMetadata
alias AWS.Util
@valid_protocols ~w(query json rest-json rest-xml)
@doc """
Request an AWS Service using a POST request with a protocol.
"""
def request_post(%Client{} = client, %Service... | 32.091286 | 146 | 0.651862 |
1c73820a6f3bedda3f705771156d0a53f50c8c43 | 1,722 | exs | Elixir | back/mix.exs | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/mix.exs | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/mix.exs | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | defmodule Api.Mixfile do
use Mix.Project
def project do
[
app: :api,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps()
... | 26.090909 | 79 | 0.562718 |
1c73b246cfbb4a2363e8e2b257099ee78454c0b4 | 2,912 | ex | Elixir | lib/falcon_plus_api/api/host.ex | sawater/falcon-plus-api | a41b1cc04cc0d71b72341e803de88d16b4bba77d | [
"Apache-2.0"
] | 2 | 2018-05-03T14:35:37.000Z | 2018-07-30T09:32:38.000Z | lib/falcon_plus_api/api/host.ex | mon-suit/falcon-plus-api | a41b1cc04cc0d71b72341e803de88d16b4bba77d | [
"Apache-2.0"
] | null | null | null | lib/falcon_plus_api/api/host.ex | mon-suit/falcon-plus-api | a41b1cc04cc0d71b72341e803de88d16b4bba77d | [
"Apache-2.0"
] | null | null | null | defmodule FalconPlusApi.Api.Host do
alias Maxwell.Conn
alias FalconPlusApi.{Util, Sig, Api}
@doc """
* [Session](#/authentication) Required
### Request
```
{
"ids": [1,2,3,4],
"maintain_begin": 1497951907,
"maintain_end": 1497951907
}
```
or
```
{
... | 20.8 | 58 | 0.490385 |
1c73b4f4346d709c59d4c13a7f03947e03aa30b2 | 1,103 | exs | Elixir | apps/day07/test/day07_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | 2 | 2019-12-21T21:21:04.000Z | 2019-12-27T07:00:19.000Z | apps/day07/test/day07_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | apps/day07/test/day07_test.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | defmodule Day07Test do
use ExUnit.Case
doctest Day07
test "sample progs" do
p = Intcode.parse("3,15,3,16,1002,16,10,16,1,16,15,15,4,15,99,0,0")
assert 43210 == Day07.max_thrust(p, 0..4)
p = Intcode.parse("3,23,3,24,1002,24,10,24,1002,23,-1,23,101,5,23,23,1,24,23,23,4,23,99,0,0")
assert 54321 == ... | 30.638889 | 183 | 0.611061 |
1c73b6cfb7be81ba4dd12f7e4ec67e894eac4246 | 2,151 | ex | Elixir | clients/people/lib/google_api/people/v1/model/event.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/event.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/event.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... | 35.262295 | 129 | 0.696885 |
1c73bcc0bd6e7df3ea34904c023645c8bdcc262d | 1,553 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec_store_builder.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec_store_builder.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec_store_builder.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 ... | 29.865385 | 119 | 0.746297 |
1c740193075b64b9f6c1993702986b5a75f36905 | 60 | ex | Elixir | server/lib/coyote_web/views/admin_view.ex | Spectory/SpectoPusher | d1ea61dce43a87169381f04080a7d5829d5d09f9 | [
"MIT"
] | null | null | null | server/lib/coyote_web/views/admin_view.ex | Spectory/SpectoPusher | d1ea61dce43a87169381f04080a7d5829d5d09f9 | [
"MIT"
] | 3 | 2018-05-23T20:07:41.000Z | 2018-06-01T11:58:23.000Z | server/lib/coyote_web/views/admin_view.ex | Spectory/coyote | d1ea61dce43a87169381f04080a7d5829d5d09f9 | [
"MIT"
] | 1 | 2017-06-16T18:29:44.000Z | 2017-06-16T18:29:44.000Z | defmodule CoyoteWeb.AdminView do
use CoyoteWeb, :view
end
| 15 | 32 | 0.8 |
1c741a21e70a0a344b939c6faa3a1920119da53e | 7,284 | ex | Elixir | lib/finch/telemetry.ex | qdentity/finch | ed28ffe378cefb44bc8912cfc82887bc6b4ee453 | [
"MIT"
] | null | null | null | lib/finch/telemetry.ex | qdentity/finch | ed28ffe378cefb44bc8912cfc82887bc6b4ee453 | [
"MIT"
] | null | null | null | lib/finch/telemetry.ex | qdentity/finch | ed28ffe378cefb44bc8912cfc82887bc6b4ee453 | [
"MIT"
] | null | null | null | defmodule Finch.Telemetry do
@moduledoc """
Telemetry integration.
Unless specified, all time's are in `:native` units.
Finch executes the following events:
* `[:finch, :queue, :start]` - Executed before checking out a connection from the pool.
#### Measurements
* `:system_time` - The system ti... | 33.722222 | 181 | 0.642779 |
1c741bf12ca89a3cda77a60d63c169a1ae598ffa | 1,154 | exs | Elixir | test/advent_of_code_test.exs | danielburnley/Advent-Of-Code-1 | 84038e91cc9561755db0d5973ed6af27b50f9dd3 | [
"MIT"
] | null | null | null | test/advent_of_code_test.exs | danielburnley/Advent-Of-Code-1 | 84038e91cc9561755db0d5973ed6af27b50f9dd3 | [
"MIT"
] | null | null | null | test/advent_of_code_test.exs | danielburnley/Advent-Of-Code-1 | 84038e91cc9561755db0d5973ed6af27b50f9dd3 | [
"MIT"
] | null | null | null | defmodule AdventOfCodeHelperTest do
use ExUnit.Case, async: false
use ExVCR.Mock
import Mock
setup_all do
ExVCR.Config.cassette_library_dir("test/fixture/vcr_cassettes")
:ok
end
test "do we get the correct value" do
use_cassette("everything_should_work") do
{:ok, contents} = AdventOfCod... | 25.644444 | 67 | 0.663778 |
1c74395e682f00de841f70028b41c06122853d37 | 1,726 | exs | Elixir | mix.exs | mugimaru73/clean_mixer | cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d | [
"Apache-2.0"
] | null | null | null | mix.exs | mugimaru73/clean_mixer | cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d | [
"Apache-2.0"
] | null | null | null | mix.exs | mugimaru73/clean_mixer | cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d | [
"Apache-2.0"
] | null | null | null | defmodule CleanMixer.MixProject do
use Mix.Project
def project do
[
app: :clean_mixer,
version: "0.5.1",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
erlc_paths: elixirc_paths(Mix.env()),
aliases: ... | 24.657143 | 95 | 0.557358 |
1c74535e74b2b93635c4a87abcce0910d6eb1eef | 485 | exs | Elixir | priv/repo/migrations/20210128233121_move_locale_to_user_preferences.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | priv/repo/migrations/20210128233121_move_locale_to_user_preferences.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | priv/repo/migrations/20210128233121_move_locale_to_user_preferences.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Repo.Migrations.MoveLocaleToUserPreferences do
use Ecto.Migration
import Ecto.Query
def change do
alter table(:user_preferences) do
add :locale, :string, default: "en"
end
flush()
Glimesh.Repo.update_all(
from(up in "user_preferences",
join: u in "users",
... | 17.962963 | 64 | 0.602062 |
1c74884cdde272253a68437b799c48e26d4b0c36 | 1,530 | ex | Elixir | web/controllers/user_controller.ex | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | 1 | 2020-05-24T15:18:36.000Z | 2020-05-24T15:18:36.000Z | web/controllers/user_controller.ex | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | null | null | null | web/controllers/user_controller.ex | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | null | null | null | defmodule CrowdfundingApi.UserController do
use CrowdfundingApi.Web, :controller
alias CrowdfundingApi.User
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.json", users: users)
end
def create(conn, %{"user" => user_params}) do
changeset = User.changeset(%User{}, user_para... | 27.321429 | 84 | 0.616993 |
1c749fb6885c0e26ab73776fe6afb5ba181c3366 | 59 | ex | Elixir | sdr-web/web/views/layout_view.ex | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | 1 | 2022-02-15T23:17:51.000Z | 2022-02-15T23:17:51.000Z | sdr-web/web/views/layout_view.ex | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | null | null | null | sdr-web/web/views/layout_view.ex | korczis/hackrf-rust | 73c76c23eb58ddfaa484f40e4b800f12b31d0a50 | [
"MIT"
] | 3 | 2020-05-09T10:08:07.000Z | 2021-02-22T11:42:00.000Z | defmodule SdrWeb.LayoutView do
use SdrWeb.Web, :view
end
| 14.75 | 30 | 0.779661 |
1c749fe75134f287462cb7bfefec511aaa3f7bbd | 2,023 | exs | Elixir | test/oops_logger_test.exs | smartrent/ramoops_logger | 4cf5bce36ca65a77a78b2d6f5c4321e058383c0c | [
"Apache-2.0"
] | 8 | 2019-07-09T20:26:03.000Z | 2020-12-23T17:44:29.000Z | test/oops_logger_test.exs | smartrent/ramoops_logger | 4cf5bce36ca65a77a78b2d6f5c4321e058383c0c | [
"Apache-2.0"
] | 1 | 2019-07-08T22:51:07.000Z | 2019-07-08T22:51:07.000Z | test/oops_logger_test.exs | smartrent/ramoops_logger | 4cf5bce36ca65a77a78b2d6f5c4321e058383c0c | [
"Apache-2.0"
] | 1 | 2019-12-03T05:20:56.000Z | 2019-12-03T05:20:56.000Z | defmodule RamoopsLoggerTest do
use ExUnit.Case, async: false
@test_pmsg_file "__test_pmsg"
@test_recovered_path "__recovered_pmsg"
require Logger
setup do
Logger.remove_backend(:console)
# Start fresh each time
_ = File.rm(@test_pmsg_file)
_ = File.rm(@test_recovered_path)
File.touch!(... | 25.935897 | 96 | 0.696985 |
1c74b53757a5e539d2f4f453067a1e0d9d717389 | 2,011 | exs | Elixir | implementations/elixir/ockam/ockam_node_web/mix.exs | illaz/ockam | d1073799a140f5f7e3312ea2d5d8b86b4e94154c | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_node_web/mix.exs | illaz/ockam | d1073799a140f5f7e3312ea2d5d8b86b4e94154c | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_node_web/mix.exs | illaz/ockam | d1073799a140f5f7e3312ea2d5d8b86b4e94154c | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Node.Web.MixProject do
use Mix.Project
@version "0.10.0-dev"
@elixir_requirement "~> 1.10"
@ockam_github_repo "https://github.com/ockam-network/ockam"
@ockam_github_repo_path "implementations/elixir/ockam/ockam_node_web"
def project do
[
app: :ockam_node_web,
version: @ve... | 23.383721 | 93 | 0.572352 |
1c74c29afef42ab407ab9126355fbc61c0df9181 | 2,115 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disk_type_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk_type_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk_type_list_warning.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... | 39.166667 | 194 | 0.716312 |
1c74cd72a2b314743138bd0b71bd9c9cce648a32 | 67 | ex | Elixir | lib/transhook_web/views/layout_view.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | lib/transhook_web/views/layout_view.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | lib/transhook_web/views/layout_view.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | defmodule TranshookWeb.LayoutView do
use TranshookWeb, :view
end
| 16.75 | 36 | 0.820896 |
1c74cf95a417ca0cf05cb2234f3537f328fce90f | 121 | ex | Elixir | lib/options_tracker/repo.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 12 | 2020-06-25T17:25:15.000Z | 2021-09-30T20:13:33.000Z | lib/options_tracker/repo.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 5 | 2020-08-05T03:12:31.000Z | 2021-07-15T04:59:03.000Z | lib/options_tracker/repo.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 2 | 2021-07-03T17:20:15.000Z | 2021-09-01T15:38:58.000Z | defmodule OptionsTracker.Repo do
use Ecto.Repo,
otp_app: :options_tracker,
adapter: Ecto.Adapters.Postgres
end
| 20.166667 | 35 | 0.760331 |
1c74d7112dd472032db80ce96bbc37b0892a8820 | 1,533 | exs | Elixir | api_user/mix.exs | roberttgt/Elixir-Course | 39a0bfc37125703d08114b54a6efac07f7ab7488 | [
"MIT"
] | null | null | null | api_user/mix.exs | roberttgt/Elixir-Course | 39a0bfc37125703d08114b54a6efac07f7ab7488 | [
"MIT"
] | null | null | null | api_user/mix.exs | roberttgt/Elixir-Course | 39a0bfc37125703d08114b54a6efac07f7ab7488 | [
"MIT"
] | null | null | null | defmodule ApiUser.MixProject do
use Mix.Project
def project do
[
app: :api_user,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 25.55 | 79 | 0.584475 |
1c74fcb033b15cfb5ea85a67bb449deba7d0dd1a | 4,578 | ex | Elixir | lib/weddell/client/subscriber/stream.ex | ssmlee/weddell | 99a8de646058904ce4b2d35fc9738f124f0c3d97 | [
"MIT"
] | null | null | null | lib/weddell/client/subscriber/stream.ex | ssmlee/weddell | 99a8de646058904ce4b2d35fc9738f124f0c3d97 | [
"MIT"
] | null | null | null | lib/weddell/client/subscriber/stream.ex | ssmlee/weddell | 99a8de646058904ce4b2d35fc9738f124f0c3d97 | [
"MIT"
] | null | null | null | defmodule Weddell.Client.Subscriber.Stream do
@moduledoc """
A streaming connection to a subscription.
"""
alias GRPC.Client.Stream, as: GRPCStream
alias GRPC.Stub, as: GRPCStub
alias Google.Pubsub.V1.{Subscriber.Stub,
StreamingPullRequest}
alias Weddell.{Message,
... | 32.013986 | 98 | 0.620795 |
1c751241f6eb67aa02b64f5c583309ddf00a2c76 | 264 | ex | Elixir | lib/ctrlv/schema.ex | ryanwinchester/ctrlv | eee44962dda062ba2154cc8bb57d86a6d814c71f | [
"Apache-2.0"
] | 1 | 2022-03-31T17:55:16.000Z | 2022-03-31T17:55:16.000Z | lib/ctrlv/schema.ex | ryanwinchester/ctrlv | eee44962dda062ba2154cc8bb57d86a6d814c71f | [
"Apache-2.0"
] | 7 | 2022-03-30T02:52:54.000Z | 2022-03-30T23:11:01.000Z | lib/ctrlv/schema.ex | ryanwinchester/ctrlv | eee44962dda062ba2154cc8bb57d86a6d814c71f | [
"Apache-2.0"
] | 1 | 2022-03-31T03:37:16.000Z | 2022-03-31T03:37:16.000Z | defmodule Ctrlv.Schema do
@moduledoc false
defmacro __using__(_) do
quote do
use Ecto.Schema
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@timestamps_opts [type: :utc_datetime]
end
end
end
| 18.857143 | 56 | 0.67803 |
1c75220cf35b534bd8b59145f4a40daa42831c3e | 15,313 | ex | Elixir | lib/credo/execution.ex | linduxed/credo | b4235a771eebcf0d1b047fc6b88d43905236e1d5 | [
"MIT"
] | null | null | null | lib/credo/execution.ex | linduxed/credo | b4235a771eebcf0d1b047fc6b88d43905236e1d5 | [
"MIT"
] | null | null | null | lib/credo/execution.ex | linduxed/credo | b4235a771eebcf0d1b047fc6b88d43905236e1d5 | [
"MIT"
] | null | null | null | defmodule Credo.Execution do
@moduledoc """
Every run of Credo is configured via a `Execution` struct, which is created and
manipulated via the `Credo.Execution` module.
"""
@doc """
The `Execution` struct is created and manipulated via the `Credo.Execution` module.
"""
defstruct argv: [],
... | 29.223282 | 116 | 0.658199 |
1c753a224b4bdff8c87ae8604cba09b0b1ad9379 | 1,991 | exs | Elixir | 2-resources/__DATA-Structures/ds-traversal-multi-lang/elixir/recursive.exs | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 2-resources/__DATA-Structures/ds-traversal-multi-lang/elixir/recursive.exs | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 2-resources/__DATA-Structures/ds-traversal-multi-lang/elixir/recursive.exs | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | defmodule Solver do
def solve([curr | map], accum, title_counter, lesson_counter) do
curr = Map.put(curr, "position", title_counter)
lesson_counter = if curr["reset_lesson_position"], do: 0, else: lesson_counter
curr =
Map.put(
curr,
"lessons",
Enum.map(Enum.with_index(curr[... | 23.987952 | 95 | 0.536916 |
1c755c91b803221234347a29cab5740a25e69576 | 4,566 | exs | Elixir | test/langue/android/expectation_test.exs | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | test/langue/android/expectation_test.exs | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | test/langue/android/expectation_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule LangueTest.Formatter.Android.Expectation do
alias Langue.Entry
defmodule Simple do
use Langue.Expectation.Case
def render do
"""
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="activity_open_in_chrome">Ouvrir avec Chrome</string>
<string name="a... | 24.815217 | 149 | 0.571616 |
1c7573bd0d353d99ec28599912984a69f666eb6d | 1,629 | ex | Elixir | islands_engine/lib/ie/rules.ex | moritzploss/islands | ae804c4a443469a49a5d54c69d86951e76050205 | [
"MIT"
] | 3 | 2020-04-14T20:21:33.000Z | 2021-03-18T16:47:04.000Z | islands_engine/lib/ie/rules.ex | moritzploss/islands | ae804c4a443469a49a5d54c69d86951e76050205 | [
"MIT"
] | null | null | null | islands_engine/lib/ie/rules.ex | moritzploss/islands | ae804c4a443469a49a5d54c69d86951e76050205 | [
"MIT"
] | null | null | null | defmodule IE.Rules do
alias IE.Rules
defstruct [
state: :initialized,
player1: :islands_not_set,
player2: :islands_not_set
]
def new, do: %Rules{}
defp both_players_islands_set?(rules) do
rules.player1 == :islands_set && rules.player2 == :islands_set
end
def check(%Rules{state: :initial... | 26.704918 | 83 | 0.641498 |
1c75837507f12afc8fc92b8ea5510d5333d978e7 | 109 | ex | Elixir | lib/battle_box_web/views/marooned_view.ex | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | lib/battle_box_web/views/marooned_view.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | lib/battle_box_web/views/marooned_view.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBoxWeb.MaroonedView do
use BattleBoxWeb, :view
import BattleBox.Games.Marooned.Logic
end
| 21.8 | 39 | 0.825688 |
1c75883a203270dd58b10e806381bd4586e6ccd5 | 607 | ex | Elixir | lib/ex_okex/auth.ex | fremantle-capital/ex_okex | 1e5a4ac8c3713a0bfcd8fffc20dce1a9eaacf931 | [
"MIT"
] | null | null | null | lib/ex_okex/auth.ex | fremantle-capital/ex_okex | 1e5a4ac8c3713a0bfcd8fffc20dce1a9eaacf931 | [
"MIT"
] | null | null | null | lib/ex_okex/auth.ex | fremantle-capital/ex_okex | 1e5a4ac8c3713a0bfcd8fffc20dce1a9eaacf931 | [
"MIT"
] | 1 | 2021-02-24T05:03:35.000Z | 2021-02-24T05:03:35.000Z | defmodule ExOkex.Auth do
@moduledoc """
Handle request signing for API Authentication
https://www.okex.com/docs/en/#summary-yan-zheng
"""
@spec timestamp :: String.t()
def timestamp, do: (:os.system_time(:millisecond) / 1000) |> Float.to_string()
@spec sign(String.t(), String.t(), String.t(), map | [ma... | 28.904762 | 87 | 0.639209 |
1c759f46e88f6d3a499f8a5da4b2537acb4d3caa | 1,593 | ex | Elixir | installer/templates/ecto/model_case.ex | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | 1 | 2019-06-11T20:22:21.000Z | 2019-06-11T20:22:21.000Z | installer/templates/ecto/model_case.ex | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | installer/templates/ecto/model_case.ex | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | defmodule <%= application_module %>.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it can... | 26.55 | 84 | 0.679222 |
1c75b9b9c064ff1323173367206cb2adbf3073ff | 437 | ex | Elixir | lib/membrane-element-rtp-aac/plugin_app.ex | membraneframework/membrane_rtp_aac_plugin | dd6a29dea3671770db4ce8b8a85e8c74feaccb38 | [
"Apache-2.0"
] | null | null | null | lib/membrane-element-rtp-aac/plugin_app.ex | membraneframework/membrane_rtp_aac_plugin | dd6a29dea3671770db4ce8b8a85e8c74feaccb38 | [
"Apache-2.0"
] | 1 | 2021-05-20T00:50:29.000Z | 2021-05-28T13:55:27.000Z | lib/membrane-element-rtp-aac/plugin_app.ex | membraneframework/membrane_rtp_aac_plugin | dd6a29dea3671770db4ce8b8a85e8c74feaccb38 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTP.AAC.Plugin.App do
@moduledoc false
use Application
alias Membrane.RTP.{AAC, PayloadFormat}
def start(_type, _args) do
PayloadFormat.register(%PayloadFormat{
encoding_name: :AAC,
payload_type: 127,
depayloader: AAC.Depayloader
})
PayloadFormat.register_paylo... | 25.705882 | 71 | 0.7254 |
1c75bcc01fc192b3ba06424fecb1310b6f00f9d1 | 847 | exs | Elixir | priv/repo/migrations/20190726123917_sync_new_plans_in_stripe.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20190726123917_sync_new_plans_in_stripe.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20190726123917_sync_new_plans_in_stripe.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.SyncNewPlansInStripe do
use Ecto.Migration
require Sanbase.Utils.Config
alias Sanbase.Utils.Config
alias Sanbase.Billing.{Product, Plan}
alias Sanbase.Repo
def up do
Application.ensure_all_started(:tzdata)
Application.ensure_all_started(:prometheus_ecto)
Appl... | 23.527778 | 82 | 0.72137 |
1c75c94fc5b06cf3b3486a11736aacd2f15c8fc9 | 4,650 | ex | Elixir | lib/elixir/lib/access.ex | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/access.ex | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/access.ex | montague/elixir | ff2138b05345d0b3136a374259e9c3ba7208e3da | [
"Apache-2.0"
] | null | null | null | defmodule Access do
@moduledoc """
Dictionary-like access to data structures via the `foo[bar]` syntax.
This module also empowers `Kernel`s nested update functions
`Kernel.get_in/2`, `Kernel.put_in/3`, `Kernel.update_in/3` and
`Kernel.get_and_update_in/3`.
## Examples
Out of the box, Access works with ... | 25.135135 | 91 | 0.616989 |
1c75eaac2b22266ce114f70672ea6a20a3fa2fb4 | 3,036 | ex | Elixir | lib/secure.ex | manelli/secure.ex | 034843a9a9df92275c268a276637b6264399e275 | [
"MIT"
] | 2 | 2016-05-26T13:19:12.000Z | 2016-05-26T23:19:22.000Z | lib/secure.ex | manelli/secure.ex | 034843a9a9df92275c268a276637b6264399e275 | [
"MIT"
] | null | null | null | lib/secure.ex | manelli/secure.ex | 034843a9a9df92275c268a276637b6264399e275 | [
"MIT"
] | null | null | null | defmodule Secure do
use Bitwise
@spec random_bytes(pos_integer) :: binary
@doc """
Generates a binary of random bytes.
Returns a binary of 16 random bytes as default.
See: http://erlang.org/doc/man/crypto.html#strong_rand_bytes-1
"""
def random_bytes(n \\ 16) do
:crypto.strong_rand_bytes(n)
end
... | 27.107143 | 82 | 0.630105 |
1c75f45792255d7d7f43355edc9d3fb6507cc8ae | 19,376 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/api/calendar_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/calendar_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/calendar_list.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... | 50.327273 | 893 | 0.701073 |
1c75f6e1ce03a57baef16d4ceb91657a7a0bdaba | 1,846 | exs | Elixir | clients/compute/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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.552239 | 98 | 0.656013 |
1c75f781ddc0e6d173ea4ddd179f9f82a6d969d7 | 1,254 | exs | Elixir | config/prod.secret.exs | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 68 | 2020-02-13T15:17:39.000Z | 2022-03-29T23:21:19.000Z | config/prod.secret.exs | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 30 | 2020-04-16T17:21:22.000Z | 2021-09-20T21:47:12.000Z | config/prod.secret.exs | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 7 | 2020-06-07T16:19:14.000Z | 2022-02-09T23:31:25.000Z | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.857143 | 67 | 0.720893 |
1c7600eae4af77d352e9ae6610a0a793a1a64f27 | 1,568 | exs | Elixir | apps/omg_db/mix.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/mix.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/mix.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | defmodule OMG.DB.MixProject do
use Mix.Project
def project do
[
app: :omg_db,
version: "#{String.trim(File.read!("../../VERSION"))}",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.... | 29.037037 | 117 | 0.575893 |
1c760140c6e112164a7083d9b6af0a677507b884 | 7,171 | exs | Elixir | test/plug/adapters/cowboy_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/cowboy_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/cowboy_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Adapters.CowboyTest do
use ExUnit.Case, async: true
import Plug.Adapters.Cowboy
@moduletag :cowboy1
def init([]) do
[foo: :bar]
end
@dispatch [{:_, [], [
{:_, [], Plug.Adapters.Cowboy.Handler, {Plug.Adapters.CowboyTest, [foo: :bar]}}
]}]
if function_export... | 38.553763 | 153 | 0.608562 |
1c76017cc73583b4d9c80b00b6cbe220d005faa2 | 12,695 | ex | Elixir | lib/util/httpc.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/util/httpc.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/util/httpc.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Httpc do
@default_max_body 10 * 1024 * 1024
@maximum_max_body 100 * 1024 * 1024
@max_retry_attempts 3
@moduledoc """
HTTP client library.
This is a wrapper around [`hackney`](https://github.com/benoitc/hackn... | 45.665468 | 159 | 0.635526 |
1c76629f4408fe1e13c1c6240a126a1f7866430e | 231 | ex | Elixir | lib/sticky/config.ex | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | lib/sticky/config.ex | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | lib/sticky/config.ex | kawikadkekahuna/Stickylixer | b81a1953522d5b5873f8893d54ac01e87891af73 | [
"BSD-3-Clause"
] | null | null | null | defmodule Sticky.Config do
@moduledoc false
def send_to_http() do
Application.get_env(:stickylixer, :send_to_http, true)
end
def retry_attempts() do
Application.get_env(:stickylixer, :retry_attempts, 3)
end
end
| 19.25 | 58 | 0.74026 |
1c767852ec66c949554e93fa3857b67cc7a7eb6c | 1,551 | ex | Elixir | clients/logging/lib/google_api/logging/v2/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/logging/lib/google_api/logging/v2/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.466667 | 77 | 0.72276 |
1c769daad0adb7aa7d70d40704ee7589139aed64 | 1,519 | ex | Elixir | lib/witchcraft.ex | baseballlover723/witchcraft | 75b62d87bc2c22917f6d5f2bc42d1e0163d40460 | [
"MIT"
] | 1 | 2019-10-04T11:32:01.000Z | 2019-10-04T11:32:01.000Z | lib/witchcraft.ex | baseballlover723/witchcraft | 75b62d87bc2c22917f6d5f2bc42d1e0163d40460 | [
"MIT"
] | null | null | null | lib/witchcraft.ex | baseballlover723/witchcraft | 75b62d87bc2c22917f6d5f2bc42d1e0163d40460 | [
"MIT"
] | 1 | 2020-11-18T18:26:12.000Z | 2020-11-18T18:26:12.000Z | defmodule Witchcraft do
@moduledoc """
Top level module
## Hierarchy
Semigroupoid Semigroup Setoid Foldable Functor -----------┐
↓ ↓ ↓ ↓ ↙ ↓ ↘ |
Category Monoid Ord Traversable Apply Bifunctor |
↓ ... | 32.319149 | 78 | 0.548387 |
1c76a8e7c768701efe86d7afd530ef0cd171c76d | 1,037 | exs | Elixir | mix.exs | hippware/reprise | 0cdb09214cb66b9c365096e71662ca804352660a | [
"BSD-2-Clause"
] | null | null | null | mix.exs | hippware/reprise | 0cdb09214cb66b9c365096e71662ca804352660a | [
"BSD-2-Clause"
] | null | null | null | mix.exs | hippware/reprise | 0cdb09214cb66b9c365096e71662ca804352660a | [
"BSD-2-Clause"
] | null | null | null | defmodule Reprise.Mixfile do
use Mix.Project
def project do
[app: :reprise,
version: "0.5.2-dev",
elixir: "~> 1.0",
description: description(),
package: package(),
deps: deps()]
end
def application do
[mod: {Reprise, []},
registered: [Reprise],
applications: [:logg... | 22.06383 | 69 | 0.590164 |
1c7710cd1d2462689e1dcd7a185280c72d73c835 | 1,604 | ex | Elixir | lib/chronik/pub_sub.ex | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 28 | 2017-09-12T13:54:17.000Z | 2021-07-20T22:04:28.000Z | lib/chronik/pub_sub.ex | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 18 | 2017-09-22T14:06:00.000Z | 2018-06-09T14:18:35.000Z | lib/chronik/pub_sub.ex | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 2 | 2018-05-11T09:36:50.000Z | 2019-09-23T18:29:58.000Z | defmodule Chronik.PubSub do
@moduledoc """
`Chronik.PubSub` adapter contract and API.
In `Chronik` there is only one feed (all). This means that subscribers
see a total ordering of events.
"""
@doc false
defmacro __using__(opts) do
quote bind_quoted: [opts: opts] do
@behaviour Chronik.PubSub
... | 25.870968 | 74 | 0.682045 |
1c773eeeed79aaec74dec8219f8a824a23132ecb | 3,580 | ex | Elixir | lib/transformations.ex | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | 3 | 2020-03-23T09:41:07.000Z | 2021-06-03T00:14:24.000Z | lib/transformations.ex | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | 17 | 2020-03-14T11:54:59.000Z | 2020-06-21T20:01:29.000Z | lib/transformations.ex | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | null | null | null | defmodule RayTracer.Transformations do
@moduledoc """
This module defines matrix transformations like
scaling, shearing, rotating and translating
"""
alias RayTracer.Matrix
alias RayTracer.RTuple
@spec translation(number, number, number) :: Matrix.matrix
def translation(x, y, z) do
Matrix.ident
... | 29.344262 | 101 | 0.600279 |
1c7748fb066a3147b7001b410d19f928a1513341 | 473 | exs | Elixir | config/prod.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | config/prod.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | config/prod.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | use Mix.Config
config :bakeoff, Bakeoff.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: System.get_env("HOST"), port: 80],
cache_static_manifest: "priv/static/manifest.json"
config :logger, level: :info
config :bakeoff, Bakeoff.Endpoint,
secret_key_base: System.get_env("SECRET_KEY_BASE")
config :bake... | 27.823529 | 59 | 0.733615 |
1c7752dd285982e15d541ea7bcf69163f4ac2688 | 598 | ex | Elixir | lib/astro_ex/unit.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | lib/astro_ex/unit.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | lib/astro_ex/unit.ex | NickHurst/astro_ex | e5ea2c587fa0d7d673d903af04f4ca1de5e87f67 | [
"MIT"
] | null | null | null | defprotocol AstroEx.Unit do
@moduledoc """
AstroEx unit protocol
"""
alias AstroEx.Unit.{Arcmin, Arcsec, Degrees, DMS, HMS, Radian}
@type t :: Arcmin.t() | Arcsec.t() | Degrees.t() | DMS.t() | HMS.t() | Radian.t()
@typep unit_module :: Arcmin | Arcsec | Degrees | DMS | HMS | Radian
@typep number_module... | 27.181818 | 83 | 0.62709 |
1c779a545fa836f1e8fcdfb55ed84b5ae8f460ec | 484 | ex | Elixir | lib/training/application.ex | megalithic/genstatem_training | 6e8cb1027fe95ff363f57a9f6b582e7b642ccdb9 | [
"MIT"
] | null | null | null | lib/training/application.ex | megalithic/genstatem_training | 6e8cb1027fe95ff363f57a9f6b582e7b642ccdb9 | [
"MIT"
] | null | null | null | lib/training/application.ex | megalithic/genstatem_training | 6e8cb1027fe95ff363f57a9f6b582e7b642ccdb9 | [
"MIT"
] | null | null | null | defmodule Training.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 = [
# Training.Switch.start_link({:off, 0})
]
# See https://hexdocs.pm/elixir/Supervisor.html
... | 25.473684 | 62 | 0.710744 |
1c779b94ed5fe20deeda4a8600b75596c9ceaeba | 14,283 | ex | Elixir | lib/oli_web/controllers/legacy_superactivity_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/controllers/legacy_superactivity_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/controllers/legacy_superactivity_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.LegacySuperactivityController do
use OliWeb, :controller
require Logger
alias XmlBuilder
alias Oli.Interop.CustomActivities.{
SuperActivityClient,
SuperActivitySession,
AttemptHistory,
FileRecord,
FileDirectory
}
alias Oli.Delivery.Sections
alias Oli.Delivery.Attemp... | 27.896484 | 114 | 0.617377 |
1c77cafff501641e2652dcb7fae691b769a3b8e6 | 207 | ex | Elixir | lib/mix/tasks/day4.ex | takakoshimizu/advent-of-code-2020 | dd0c49396196aa7686f36d596263baff0e64b800 | [
"MIT"
] | null | null | null | lib/mix/tasks/day4.ex | takakoshimizu/advent-of-code-2020 | dd0c49396196aa7686f36d596263baff0e64b800 | [
"MIT"
] | null | null | null | lib/mix/tasks/day4.ex | takakoshimizu/advent-of-code-2020 | dd0c49396196aa7686f36d596263baff0e64b800 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Day4 do
use Mix.Task
@shortdoc "Runs the day 4 problem."
def run(_) do
Advent2020.Day4.main(input())
end
defp input, do: File.read!("./lib/advent2020/day4/input.txt")
end
| 18.818182 | 63 | 0.681159 |
1c78136433929f6040f2d83337ae8ea75d5b3e57 | 706 | ex | Elixir | lib/attendance_web/controllers/fallback_controller.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | lib/attendance_web/controllers/fallback_controller.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | lib/attendance_web/controllers/fallback_controller.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | defmodule AttendanceWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use AttendanceWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put... | 26.148148 | 78 | 0.689802 |
1c782538c27675fd3cd660af16d9ad326f1f3ae7 | 5,444 | ex | Elixir | lib/pow/phoenix/controllers/controller.ex | danschultzer/authex | 920ab2ef9dafaaaba215247e08c3e194e9474fc0 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/pow/phoenix/controllers/controller.ex | danschultzer/authex | 920ab2ef9dafaaaba215247e08c3e194e9474fc0 | [
"MIT"
] | null | null | null | lib/pow/phoenix/controllers/controller.ex | danschultzer/authex | 920ab2ef9dafaaaba215247e08c3e194e9474fc0 | [
"MIT"
] | null | null | null | defmodule Pow.Phoenix.Controller do
@moduledoc """
Used with Pow Phoenix controllers to handle messages, routes and callbacks.
## Usage
defmodule MyPowExtension.Phoenix.MyController do
use Pow.Phoenix.Controller
def process_new(conn, _params) do
{:ok, :response, conn}
en... | 31.651163 | 120 | 0.692506 |
1c782b08893eb3f2a27d7ff32547235da68de7cf | 3,051 | exs | Elixir | test/advisory_locks_test.exs | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | test/advisory_locks_test.exs | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | test/advisory_locks_test.exs | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | defmodule EventStore.AdvisoryLocksTest do
use EventStore.StorageCase
alias EventStore.{AdvisoryLocks, Config, ProcessHelper, Wait}
alias EventStore.Storage
@locks TestEventStore.EventStore.AdvisoryLocks
@conn TestEventStore.EventStore.AdvisoryLocks.Postgrex
setup do
postgrex_config = Config.parsed(Te... | 28.514019 | 98 | 0.67355 |
1c782fe52a86d934eeced2bcc4a378d1bb43d6ec | 1,888 | exs | Elixir | clients/memcache/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/memcache/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/memcache/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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... | 28.179104 | 160 | 0.660487 |
1c784614cd41af666b405bfa9f244002a5d5c4e9 | 1,674 | exs | Elixir | test/helper_test.exs | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | test/helper_test.exs | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | test/helper_test.exs | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | defmodule Modbus.HelperTest do
use ExUnit.Case
alias Modbus.Utils
alias Modbus.Crc
test "bool_to_byte test" do
assert 0x00 == Utils.bool_to_byte(0)
assert 0xFF == Utils.bool_to_byte(1)
end
test "byte_count test" do
assert 1 == Utils.byte_count(1)
assert 1 == Utils.byte_count(2)
assert ... | 33.48 | 82 | 0.601553 |
1c784ba5a89591d377e6f769509e19ecfe09540c | 754 | ex | Elixir | lib/mgp_web/live/phoenix_live_svelte.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | lib/mgp_web/live/phoenix_live_svelte.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | 2 | 2020-12-22T12:30:58.000Z | 2021-05-19T10:07:26.000Z | lib/mgp_web/live/phoenix_live_svelte.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | defmodule PhoenixLiveSvelte do
import Phoenix.HTML
import Phoenix.HTML.Tag
def live_svelte_component(name, props \\ %{}, options \\ []) do
html_escape([
receiver_element(name, props, options)
])
end
defp receiver_element(name, props, options) do
attr = Keyword.get(options, :receiver, [])
... | 26 | 66 | 0.643236 |
1c784c8c0674dfc5670b342c58549f691160ece1 | 1,121 | exs | Elixir | config/config.exs | crertel/bloglixir | 6c8ee7775ee1f76f8bb9c9f8a9db74e6cf5eecc6 | [
"MIT"
] | null | null | null | config/config.exs | crertel/bloglixir | 6c8ee7775ee1f76f8bb9c9f8a9db74e6cf5eecc6 | [
"MIT"
] | null | null | null | config/config.exs | crertel/bloglixir | 6c8ee7775ee1f76f8bb9c9f8a9db74e6cf5eecc6 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.752007 |
1c784ed81f544e6a6b2b1113c1fbb06575d42ed1 | 10,508 | ex | Elixir | lib/phoenix_live_view/utils.ex | speeddragon/phoenix_live_view | df3c414214e06e3ae207ffba01036f3a3abf8454 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/utils.ex | speeddragon/phoenix_live_view | df3c414214e06e3ae207ffba01036f3a3abf8454 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/utils.ex | speeddragon/phoenix_live_view | df3c414214e06e3ae207ffba01036f3a3abf8454 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Utils do
# Shared helpers used mostly by Channel and Diff,
# but also Static, and LiveViewTest.
@moduledoc false
alias Phoenix.LiveView.Rendered
alias Phoenix.LiveView.Socket
# All available mount options
@mount_opts [:temporary_assigns, :layout]
@max_flash_age :timer.secon... | 28.710383 | 106 | 0.644747 |
1c785a1e796fa3ccf26d43e6a07a43093ae77e12 | 63,415 | ex | Elixir | lib/aws/generated/glacier.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/glacier.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/glacier.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Glacier do
@moduledoc """
Amazon S3 Glacier (Glacier) is a storage solution for "cold data."
Glacier is an extremely low-cost storage service that provides secure,
durable, and easy-to-us... | 45.622302 | 131 | 0.719467 |
1c785f3e97b9cabcc942539cac1d814b83aa23ab | 420 | ex | Elixir | backend/lib/backend_web/views/todo_view.ex | sdil/todo-app-phoenix-nuxtjs | cfdb2ccce9cf54f691236ae81740608ce1c6a227 | [
"MIT"
] | null | null | null | backend/lib/backend_web/views/todo_view.ex | sdil/todo-app-phoenix-nuxtjs | cfdb2ccce9cf54f691236ae81740608ce1c6a227 | [
"MIT"
] | null | null | null | backend/lib/backend_web/views/todo_view.ex | sdil/todo-app-phoenix-nuxtjs | cfdb2ccce9cf54f691236ae81740608ce1c6a227 | [
"MIT"
] | null | null | null | defmodule BackendWeb.TodoView do
use BackendWeb, :view
alias BackendWeb.TodoView
def render("index.json", %{todos: todos}) do
%{data: render_many(todos, TodoView, "todo.json")}
end
def render("show.json", %{todo: todo}) do
%{data: render_one(todo, TodoView, "todo.json")}
end
def render("todo.js... | 22.105263 | 54 | 0.640476 |
1c7863cd9cb1188062b30afc547477bd43b8948b | 65 | ex | Elixir | imdb_data/lib/imdb_data_web/views/review_view.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | imdb_data/lib/imdb_data_web/views/review_view.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | 2 | 2016-03-10T03:04:11.000Z | 2017-02-11T17:43:44.000Z | imdb_data/lib/imdb_data_web/views/review_view.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | defmodule IMDbDataWeb.ReviewView do
use IMDbDataWeb, :view
end
| 16.25 | 35 | 0.815385 |
1c788f25f0f3716b3be34888997b8dd52d7bd3f7 | 1,613 | ex | Elixir | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/grafeas_v1_slsa_provenance_zero_two_slsa_builder.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/grafeas_v1_slsa_provenance_zero_two_slsa_builder.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/grafeas_v1_slsa_provenance_zero_two_slsa_builder.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.019231 | 139 | 0.748915 |
1c78acdcf6505355b3fb7b03be913b6a230fe66c | 519 | exs | Elixir | priv/test_repo/migrations/20210602145604_migrate_resources12.exs | frankdugan3/ash_postgres | ae173f0229ffe1dea821e8a73c2c6b8c858b39f6 | [
"MIT"
] | 13 | 2020-09-04T22:31:23.000Z | 2022-02-06T13:24:23.000Z | priv/test_repo/migrations/20210602145604_migrate_resources12.exs | frankdugan3/ash_postgres | ae173f0229ffe1dea821e8a73c2c6b8c858b39f6 | [
"MIT"
] | 57 | 2019-12-04T15:23:41.000Z | 2022-02-14T22:55:16.000Z | priv/test_repo/migrations/20210602145604_migrate_resources12.exs | frankdugan3/ash_postgres | ae173f0229ffe1dea821e8a73c2c6b8c858b39f6 | [
"MIT"
] | 15 | 2020-10-22T13:26:25.000Z | 2021-07-26T23:49:42.000Z | defmodule AshPostgres.TestRepo.Migrations.MigrateResources12 do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
create table(:authors, primary_key: false) do
add :id, ... | 24.714286 | 93 | 0.710983 |
1c78b1b1b10b3a80673691e9524ed7b26b9fa89f | 4,990 | ex | Elixir | lib/rdf/graph_builder.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | lib/rdf/graph_builder.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | lib/rdf/graph_builder.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 2 | 2018-01-19T15:48:27.000Z | 2020-03-01T00:29:35.000Z | defmodule RDF.Graph.Builder do
alias RDF.{Description, Graph, Dataset, PrefixMap, IRI}
defmodule Error do
defexception [:message]
end
defmodule Helper do
defdelegate a(), to: RDF.NS.RDF, as: :type
defdelegate a(s, o), to: RDF.NS.RDF, as: :type
defdelegate a(s, o1, o2), to: RDF.NS.RDF, as: :typ... | 30.242424 | 98 | 0.617435 |
1c78eef7c83fa08f96d8eb90661588304e600892 | 1,218 | ex | Elixir | lib/hyper_potion/endpoint.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | lib/hyper_potion/endpoint.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | lib/hyper_potion/endpoint.ex | selfup/hyper_potion | 6e4f3f393e4fd8d7ddf7e0dcbf8021e7dad18823 | [
"MIT"
] | null | null | null | defmodule HyperPotion.Endpoint do
use Phoenix.Endpoint, otp_app: :hyper_potion
socket "/socket", HyperPotion.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug P... | 28.325581 | 69 | 0.720854 |
1c7907438c12683f0933d02fc8171ad4ebe15a9a | 2,107 | ex | Elixir | lib/gen_retry/worker.ex | TMSCH/gen_retry | 5edb4bea66902b9c3011cf7a37c78b1e410a9b54 | [
"MIT"
] | 202 | 2016-06-13T13:41:20.000Z | 2022-03-09T06:20:52.000Z | lib/gen_retry/worker.ex | TMSCH/gen_retry | 5edb4bea66902b9c3011cf7a37c78b1e410a9b54 | [
"MIT"
] | 8 | 2016-09-12T19:34:24.000Z | 2020-08-13T03:59:26.000Z | lib/gen_retry/worker.ex | devstopfix/gen_retry | 5edb4bea66902b9c3011cf7a37c78b1e410a9b54 | [
"MIT"
] | 12 | 2016-09-12T17:01:11.000Z | 2020-08-26T06:00:51.000Z | defmodule GenRetry.Worker do
@moduledoc false
@default_logger GenRetry.Utils
alias GenRetry.State
use GenServer
@spec init({GenRetry.retryable_fun(), GenRetry.Options.t()}) ::
{:ok, GenRetry.State.t()}
def init({fun, opts}) do
config = Application.get_env(:gen_retry, GenRetry.Logger, [])
... | 29.263889 | 79 | 0.628382 |
1c79195083653f5f0a2bdfe25be6293d55d16f2b | 14,481 | ex | Elixir | lib/iex/lib/iex/pry.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/pry.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/pry.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule IEx.Pry do
@moduledoc """
The low-level API for prying sessions and setting up breakpoints.
"""
use GenServer
@table __MODULE__
@server __MODULE__
@timeout :infinity
@initial_counter 1
@type id :: integer()
@type break :: {id, module, {function, arity}, pending :: non_neg_integer}
@d... | 29.492872 | 100 | 0.599613 |
1c792aa457e87b2ce1cf4fbd42de04744f201687 | 1,657 | ex | Elixir | lib/harald/host/att/error_codes.ex | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | null | null | null | lib/harald/host/att/error_codes.ex | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | null | null | null | lib/harald/host/att/error_codes.ex | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | null | null | null | defmodule Harald.Host.ATT.ErrorCodes do
@moduledoc """
First 19 errors:
Reference: version 5.2, Vol 3, Section 3.4.1.1
Errors 0xFC - 0xFF:
Reference: Core Specification Supplement Version 9, Part B
"""
@error_codes %{
0x01 => "Invalid Handle",
0x02 => "Read Not Permitted",
0x03 => "Write Not P... | 31.865385 | 83 | 0.653591 |
1c7934b9c7024ff8c9bc7671b73d032fc9559ca6 | 795 | exs | Elixir | mix.exs | shareup/herb | 0cf75a6d8447d0fc6c3c6fedc6cf2d1e0888e101 | [
"MIT"
] | null | null | null | mix.exs | shareup/herb | 0cf75a6d8447d0fc6c3c6fedc6cf2d1e0888e101 | [
"MIT"
] | 3 | 2020-02-03T10:10:24.000Z | 2020-05-24T12:36:04.000Z | mix.exs | shareup/herb | 0cf75a6d8447d0fc6c3c6fedc6cf2d1e0888e101 | [
"MIT"
] | null | null | null | defmodule Herb.MixProject do
use Mix.Project
def project do
[
app: :herb,
version: "0.0.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: escript(),
description: description(),
package: [
licenses: ["MIT"],
links: ... | 18.928571 | 139 | 0.562264 |
1c793cb73432ca7a135d5d06d49a5948329bb9c1 | 516 | exs | Elixir | test/reporting_test.exs | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 1 | 2018-04-26T08:40:13.000Z | 2018-04-26T08:40:13.000Z | test/reporting_test.exs | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 14 | 2018-04-02T09:12:03.000Z | 2019-10-08T04:43:39.000Z | test/reporting_test.exs | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 2 | 2018-04-26T05:50:06.000Z | 2021-09-01T18:48:43.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
defmodule Testgear.ReportingTest do
use ExUnit.Case
@tag :blackbox
test "logging should function correctly" do
assert Req.get("/report_log").status == 200
end
@tag :blackbox
test "metric reporting should function correctly" do
assert ... | 24.571429 | 62 | 0.717054 |
1c7976e4f48dc3e231ce7fedb03f7a540d55d3ab | 2,096 | exs | Elixir | test/upload_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 30 | 2017-12-23T15:00:30.000Z | 2021-09-29T19:33:09.000Z | test/upload_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 6 | 2018-05-03T18:44:36.000Z | 2021-04-21T17:15:25.000Z | test/upload_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 5 | 2019-09-27T16:37:58.000Z | 2021-10-04T21:04:35.000Z | defmodule UploadTest do
use ExUnit.Case
doctest Upload,
except: [
get_url: 1,
get_signed_url: 2,
transfer: 1,
generate_key: 2,
cast: 2,
cast_path: 2
]
@fixture Path.expand("./fixtures/text.txt", __DIR__)
@plug %Plug.Upload{path: @fixture, filename: "text.txt"}
te... | 27.578947 | 97 | 0.649809 |
1c7a718648a39b51f513330cc80a1f081c96ad07 | 1,363 | exs | Elixir | mix.exs | whitepaperclip/bamboo_postmark | f983bfed8a25636b2e2561aa79c96374ad35ea85 | [
"MIT"
] | 31 | 2016-11-15T19:33:21.000Z | 2022-02-17T19:54:52.000Z | mix.exs | whitepaperclip/bamboo_postmark | f983bfed8a25636b2e2561aa79c96374ad35ea85 | [
"MIT"
] | 30 | 2016-12-29T22:42:56.000Z | 2022-02-07T03:39:53.000Z | mix.exs | pablo-co/bamboo_postmark | c8b8cbf6103fc38a8ad467a3ab0eb6ebe44a84e6 | [
"MIT"
] | 28 | 2016-11-17T00:45:18.000Z | 2021-06-25T19:44:34.000Z | defmodule BambooPostmark.Mixfile do
use Mix.Project
@source_url "https://github.com/pablo-co/bamboo_postmark"
@version "1.0.0"
def project do
[
app: :bamboo_postmark,
version: @version,
elixir: "~> 1.4",
name: "Bamboo Postmark",
build_embedded: Mix.env() == :prod,
start... | 21.296875 | 75 | 0.525312 |
1c7a86f5ade1438e1fa5248ea48bd394b3e167fb | 5,495 | ex | Elixir | lib/chat_api_web/router.ex | sladyn98/papercups | 3b17ccc4c974ac6e16c9962a576e64a832dafdb9 | [
"MIT"
] | null | null | null | lib/chat_api_web/router.ex | sladyn98/papercups | 3b17ccc4c974ac6e16c9962a576e64a832dafdb9 | [
"MIT"
] | null | null | null | lib/chat_api_web/router.ex | sladyn98/papercups | 3b17ccc4c974ac6e16c9962a576e64a832dafdb9 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.Router do
use ChatApiWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug(ChatApiWeb.IPAddressPlug)
plug(:accepts, ["json"])
plu... | 39.818841 | 96 | 0.715742 |
1c7a9a32f860531962aca4bb946da51bac96ff38 | 1,796 | ex | Elixir | test/support/model_case.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | test/support/model_case.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | test/support/model_case.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | defmodule Scrumapi.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For... | 27.212121 | 84 | 0.685969 |
1c7aa092539b369b526aab5112772c3ceb011e4d | 2,480 | ex | Elixir | examples/bank/lib/bank/bank_account_event_handler.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | examples/bank/lib/bank/bank_account_event_handler.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | examples/bank/lib/bank/bank_account_event_handler.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | defmodule Bank.BankAccountEventHandler do
@behaviour Incident.EventHandler
alias Bank.Projections.BankAccount
alias Bank.BankAccount, as: Aggregate
alias Incident.ProjectionStore
@impl true
def listen(%{event_type: "AccountOpened"} = event, state) do
new_state = Aggregate.apply(event, state)
data... | 25.050505 | 66 | 0.685081 |
1c7aa108b5cae989c5d5a60632863c9c107d6178 | 473 | exs | Elixir | test/absinthe_subscriptions_web/views/error_view_test.exs | egjimenezg/absinthe_subscriptions | 49d05d9ce141c9de5d1cfabe21452d2bde8c49d9 | [
"Apache-2.0"
] | null | null | null | test/absinthe_subscriptions_web/views/error_view_test.exs | egjimenezg/absinthe_subscriptions | 49d05d9ce141c9de5d1cfabe21452d2bde8c49d9 | [
"Apache-2.0"
] | null | null | null | test/absinthe_subscriptions_web/views/error_view_test.exs | egjimenezg/absinthe_subscriptions | 49d05d9ce141c9de5d1cfabe21452d2bde8c49d9 | [
"Apache-2.0"
] | null | null | null | defmodule AbsintheSubscriptionsWeb.ErrorViewTest do
use AbsintheSubscriptionsWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(AbsintheSubscriptionsWeb.ErrorView, "404.html", []) == "Not Found"
... | 31.533333 | 106 | 0.765328 |
1c7aa4bd9014e465ae0e3488115a9399944a94c8 | 968 | ex | Elixir | Chapter9/dynamic_workers/lib/todo/cache.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter9/dynamic_workers/lib/todo/cache.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter9/dynamic_workers/lib/todo/cache.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | # Todo Cache [dynamic supervisor]
# This module supervises Todo.Server instances which perform a client's to-do storage and retrieval
defmodule Todo.Cache do
# ---------
# Interface functions
# ---------
@spec server_process(charlist) :: pid
def server_process(todo_list_name) do
case start_child(todo_lis... | 22 | 99 | 0.629132 |
1c7af3c372fd077d08f125408db462145f7c9e3f | 7,853 | exs | Elixir | test/rabbit_mq/producer/producer_worker_test.exs | qworks-io/rabbitex | 3359fc573b8e8e60cdd2cc03b6ebc2bdcc8a3d70 | [
"MIT"
] | 29 | 2020-05-02T18:25:31.000Z | 2021-02-16T19:43:39.000Z | test/rabbit_mq/producer/producer_worker_test.exs | qworks-io/rabbit_ex_mq | 3359fc573b8e8e60cdd2cc03b6ebc2bdcc8a3d70 | [
"MIT"
] | 43 | 2020-04-30T16:34:46.000Z | 2021-07-26T06:22:43.000Z | test/rabbit_mq/producer/producer_worker_test.exs | qworks-io/rabbit_ex_mq | 3359fc573b8e8e60cdd2cc03b6ebc2bdcc8a3d70 | [
"MIT"
] | 3 | 2020-05-03T15:47:16.000Z | 2021-04-05T05:05:47.000Z | defmodule RabbitMQTest.Producer.Worker do
alias RabbitMQ.Producer.Worker
use AMQP
use ExUnit.Case
@amqp_url Application.get_env(:rabbit_mq, :amqp_url)
@data :crypto.strong_rand_bytes(2_000) |> Base.encode64()
@exchange "#{__MODULE__}"
@routing_key :crypto.strong_rand_bytes(16) |> Base.encode16()
@co... | 28.871324 | 98 | 0.621291 |
1c7b01999e0f17869c042c193dc59138db89a987 | 2,447 | ex | Elixir | clients/content/lib/google_api/content/v21/model/return_address_address.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/return_address_address.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/return_address_address.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... | 39.467742 | 186 | 0.686555 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.