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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac3e94f2722251c9fcf883301d5631840cc71891 | 127 | ex | Elixir | lib/cbr_elixir/models/valute.ex | maratgaliev/cbr_elixir | b96cf927ecf531e54691cbda1faee52df0424b49 | [
"MIT"
] | null | null | null | lib/cbr_elixir/models/valute.ex | maratgaliev/cbr_elixir | b96cf927ecf531e54691cbda1faee52df0424b49 | [
"MIT"
] | null | null | null | lib/cbr_elixir/models/valute.ex | maratgaliev/cbr_elixir | b96cf927ecf531e54691cbda1faee52df0424b49 | [
"MIT"
] | null | null | null | defmodule CbrElixir.Models.Valute do
defstruct id: nil, numcode: nil, charcode: nil, nominal: nil, name: nil, value: nil
end
| 31.75 | 85 | 0.748031 |
ac3ee472c7aa3c759f8e95f69b882b487c1503b8 | 4,314 | exs | Elixir | test/oli/delivery/sections/enrollments_browse_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/delivery/sections/enrollments_browse_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/delivery/sections/enrollments_browse_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Sections.EnrollmentsBrowseTest do
use Oli.DataCase
alias Oli.Delivery.Sections
alias Oli.Repo.{Paging, Sorting}
alias Oli.Delivery.Sections.{EnrollmentBrowseOptions}
alias Lti_1p3.Tool.ContextRoles
import Ecto.Query, warn: false
def make_sections(project, institution, prefix, n, a... | 30.595745 | 97 | 0.610107 |
ac3f37c171333c577ec3deb21199322af0eb7df6 | 986 | exs | Elixir | test/level/spaces_test.exs | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | test/level/spaces_test.exs | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | test/level/spaces_test.exs | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | defmodule Level.SpacesTest do
use Level.DataCase, async: true
use Bamboo.Test
alias Level.Spaces
describe "get_space_by_slug/2" do
setup do
create_user_and_space()
end
test "returns the space if the user can access it", %{user: user, space: space} do
{:ok, %{space: found_space, space_... | 29 | 86 | 0.670385 |
ac3f50ff67a385762e7067f877d31be640e3ec64 | 1,538 | ex | Elixir | core/alert/handler_config.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | core/alert/handler_config.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | core/alert/handler_config.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Alert.HandlerConfig do
@moduledoc """
Type module for map of configurations for a single alert handler.
Fields are treated as opaque at this layer; details are defined by each handler implementation.
"""
ali... | 29.576923 | 104 | 0.723667 |
ac3f5f93c918055d3d5211e03b0320987088e1cb | 1,232 | exs | Elixir | config/config.exs | shufo/fcmex | d529e2adc995d75fd5ccc0c4feab0c66dc52ba6b | [
"MIT"
] | 62 | 2017-06-19T04:31:57.000Z | 2022-01-21T09:12:48.000Z | config/config.exs | shufo/fcmex | d529e2adc995d75fd5ccc0c4feab0c66dc52ba6b | [
"MIT"
] | 66 | 2017-12-07T05:17:29.000Z | 2021-08-02T20:51:45.000Z | config/config.exs | shufo/fcmex | d529e2adc995d75fd5ccc0c4feab0c66dc52ba6b | [
"MIT"
] | 24 | 2017-12-07T00:50:54.000Z | 2021-02-14T13:38:38.000Z | # 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.2 | 82 | 0.746753 |
ac3f912d9fd2e7ed1495e7c33f541a78be35aa59 | 364 | exs | Elixir | priv/repo/migrations/20200917204123_add_role_to_user.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20200917204123_add_role_to_user.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20200917204123_add_role_to_user.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.AddRoleToUser do
use Ecto.Migration
alias ChatApi.{Users, Repo}
def change do
alter table(:users) do
add(:role, :string, default: "user")
end
# Default all current users to admin for now
execute(
fn -> Repo.update_all(Users.User, set: [role: "admin"... | 20.222222 | 66 | 0.64011 |
ac3f9717c3fc1621eb228e2bec80878f741fcdfc | 4,485 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/binding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/binding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/binding.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... | 80.089286 | 1,972 | 0.751616 |
ac3fba8200736c859ae36beb5caeadb0cef9e529 | 1,299 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/delete_snapshot_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/delete_snapshot_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/delete_snapshot_response.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 ... | 30.928571 | 84 | 0.766744 |
ac3fc7e6b848e40685d7aa13bbbef3a894377af3 | 83 | exs | Elixir | v02/ch02/struct3.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch02/struct3.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch02/struct3.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | u = %{__struct__: User, name: "foo", email: "foo@example.com"}
IO.inspect u[:name]
| 27.666667 | 62 | 0.650602 |
ac3fcf5b81fce802510f1586f704cd29c02db657 | 7,645 | ex | Elixir | lib/pigeon/apns/notification.ex | minibikini/pigeon | befddba5406769ae0ed169f4144a42769de5b473 | [
"MIT"
] | null | null | null | lib/pigeon/apns/notification.ex | minibikini/pigeon | befddba5406769ae0ed169f4144a42769de5b473 | [
"MIT"
] | null | null | null | lib/pigeon/apns/notification.ex | minibikini/pigeon | befddba5406769ae0ed169f4144a42769de5b473 | [
"MIT"
] | null | null | null | defmodule Pigeon.APNS.Notification do
@moduledoc ~S"""
Defines APNS notification struct and constructor functions.
"""
defstruct collapse_id: nil,
device_token: nil,
expiration: nil,
priority: nil,
id: nil,
payload: %{"aps" => %{}},
topic:... | 27.699275 | 91 | 0.590844 |
ac401fe067b9099e7808382d6c33573baae47f0d | 1,747 | ex | Elixir | lib/changelog/kits/string_kit.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog/kits/string_kit.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog/kits/string_kit.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule Changelog.StringKit do
alias ChangelogWeb.{Endpoint, Router}
def blank?(nil), do: true
def blank?(string), do: String.trim(string) == ""
def dasherize(string) do
string
|> String.downcase()
|> String.replace(~r/[^\w\s]/, "")
|> String.replace(" ", "-")
end
@doc """
Returns a ... | 29.610169 | 108 | 0.606754 |
ac403b0d30333ed4fd2dbd88a5171193e841a413 | 2,581 | exs | Elixir | 13/part1.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | 3 | 2016-01-18T01:14:45.000Z | 2017-05-11T09:14:49.000Z | 13/part1.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | 13/part1.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | defmodule Table do
def val(op, pts) do
pts = String.to_integer(pts)
case op do
"gain" -> pts
"lose" -> -pts
_ -> raise "Unknown op: #{inspect op}"
end
end
def parse_inputs(inputs) do
inputs
|> String.split("\n", trim: true)
|> Enum.reduce({%{}, MapSet.new}, fn input, {ru... | 32.2625 | 112 | 0.671445 |
ac40432612af5df40ccdbfb989601458a9f84631 | 326 | exs | Elixir | src/test/changelog/hashid_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | test/changelog/hashid_test.exs | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | test/changelog/hashid_test.exs | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.HashidTest do
use ExUnit.Case
alias Changelog.Hashid
test "encode/decode a valid id returns the id" do
encoded = Hashid.encode(8675309)
assert Hashid.decode(encoded) == 8675309
end
test "decode an invalid id returns -1" do
assert Hashid.decode("not_a_valid_thing") == -1
en... | 21.733333 | 51 | 0.720859 |
ac404c86f8a72d4a6a2ed810aa1b587deed787e4 | 1,173 | exs | Elixir | mix.exs | fremantle-industries/ex_mexc | f340fa93e06377a5e75e30c32b53cfc7ab4717b1 | [
"MIT"
] | 1 | 2021-08-06T01:07:25.000Z | 2021-08-06T01:07:25.000Z | mix.exs | fremantle-industries/ex_mexc | f340fa93e06377a5e75e30c32b53cfc7ab4717b1 | [
"MIT"
] | 7 | 2021-11-01T05:04:13.000Z | 2022-03-01T05:02:51.000Z | mix.exs | fremantle-industries/ex_mexc | f340fa93e06377a5e75e30c32b53cfc7ab4717b1 | [
"MIT"
] | null | null | null | defmodule ExMexc.MixProject do
use Mix.Project
def project do
[
app: :ex_mexc,
version: "0.0.1",
elixir: "~> 1.10",
package: package(),
start_permanent: Mix.env() == :prod,
description: description(),
deps: deps(),
test_coverage: [tool: ExCoveralls]
]
end
... | 22.557692 | 77 | 0.511509 |
ac4067745b9d2b52e853d2eebea5fec69a34971b | 1,900 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_batch_update_user_links_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_batch_update_user_links_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_batch_update_user_links_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... | 32.758621 | 156 | 0.765263 |
ac408152e5373d3c311c96cd0c9ef5286618146b | 485 | ex | Elixir | notebooks/modulo_4/parte_2/ecto_example/lib/application.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 14 | 2021-11-19T00:22:09.000Z | 2022-01-29T03:58:09.000Z | notebooks/modulo_4/parte_2/ecto_example/lib/application.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | null | null | null | notebooks/modulo_4/parte_2/ecto_example/lib/application.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 1 | 2022-03-01T00:49:50.000Z | 2022-03-01T00:49:50.000Z | defmodule EctoExample.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Enrollments
@moduledoc false
use Application
def start(_type, _args) do
children = [
EctoExample.Hospital.Repo,
EctoExample.DriverLicenses.Repo,
EctoExample.University.Re... | 24.25 | 65 | 0.723711 |
ac40be60ec6de0fbb1f191b63b034f2baba4d86d | 2,015 | exs | Elixir | test/flickrex/flickr/test_test.exs | christopheradams/flickrex | 67e3a507e128c55969aeda3802f6dacd94bb03c5 | [
"MIT"
] | 13 | 2017-04-02T10:55:10.000Z | 2022-03-02T02:55:40.000Z | test/flickrex/flickr/test_test.exs | christopheradams/flickrex | 67e3a507e128c55969aeda3802f6dacd94bb03c5 | [
"MIT"
] | null | null | null | test/flickrex/flickr/test_test.exs | christopheradams/flickrex | 67e3a507e128c55969aeda3802f6dacd94bb03c5 | [
"MIT"
] | 1 | 2021-01-31T17:47:27.000Z | 2021-01-31T17:47:27.000Z | defmodule Flickrex.Flickr.TestTest do
use ExUnit.Case
@moduletag :flickr_api
alias Flickrex.{
Flickr,
Parsers
}
test "test echo/1 in XML" do
test_format(nil, %{}, "text/xml; charset=utf-8")
test_format(:rest, %{"_content" => "rest"}, "text/xml; charset=utf-8")
end
test "test echo/1 in ... | 28.785714 | 97 | 0.610918 |
ac40cdc89866468f90d65fb067c54dc9c860f66a | 1,413 | ex | Elixir | lib/ttl/worker.ex | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | 1 | 2021-05-20T07:09:29.000Z | 2021-05-20T07:09:29.000Z | lib/ttl/worker.ex | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | lib/ttl/worker.ex | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | defmodule MeshxConsul.Ttl.Worker do
@moduledoc false
use GenServer
alias MeshxConsul.Service.Reg
defstruct [:id, status: "passing", ttl: 10_000]
@allowed_status ["passing", "warning", "critical"]
def start_link([id, ttl_opts]), do: GenServer.start_link(__MODULE__, ttl_opts, name: id)
def get_status(id... | 30.06383 | 106 | 0.694975 |
ac40e49be581cd9e82cfc70ff8d7e906402541c4 | 1,477 | ex | Elixir | apps/auction_web/lib/auction_web/views/error_helpers.ex | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | apps/auction_web/lib/auction_web/views/error_helpers.ex | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | apps/auction_web/lib/auction_web/views/error_helpers.ex | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | defmodule AuctionWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(... | 32.822222 | 76 | 0.670278 |
ac40f7af08690ee384e2668eeb06ec43eb2acb62 | 65 | ex | Elixir | lib/shelving_web/views/layout_view.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | lib/shelving_web/views/layout_view.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | lib/shelving_web/views/layout_view.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | defmodule ShelvingWeb.LayoutView do
use ShelvingWeb, :view
end
| 16.25 | 35 | 0.815385 |
ac410405959951db3a85a401a2ffd417254b926e | 77 | ex | Elixir | phoenix/lib/mehr_schulferien_web/views/page_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/page_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/page_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.PageView do
use MehrSchulferienWeb, :view
end
| 19.25 | 40 | 0.844156 |
ac4104ab5955d53845272da5f5165802bdbaa9d3 | 1,924 | ex | Elixir | lib/straw_hat_review/reviews/review_reaction/reviews_reactions.ex | straw-hat-team/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 11 | 2018-04-09T06:32:02.000Z | 2019-09-11T14:18:21.000Z | lib/straw_hat_review/reviews/review_reaction/reviews_reactions.ex | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 64 | 2018-03-30T06:21:49.000Z | 2019-11-01T13:57:34.000Z | lib/straw_hat_review/reviews/review_reaction/reviews_reactions.ex | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 1 | 2018-06-21T23:00:00.000Z | 2018-06-21T23:00:00.000Z | defmodule StrawHat.Review.ReviewReactions do
@moduledoc """
Interactor module that defines all the functionality for ReviewsReactions management.
"""
use StrawHat.Review.Interactor
alias StrawHat.Review.ReviewReaction
@doc """
Creates a review reaction.
"""
@spec create_review_reaction(ReviewReactio... | 30.539683 | 93 | 0.702183 |
ac410f886f838746e776c4287188ba2839e3183e | 829 | ex | Elixir | lib/phx_test/web/router.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | lib/phx_test/web/router.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | lib/phx_test/web/router.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | defmodule PhxTest.Web.Router do
use PhxTest.Web, :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 :accepts, ["json"]
end
pipeline :api_auth do
plug... | 23.027778 | 54 | 0.685163 |
ac4111ae444af1d87befb5e1613ad38218f560df | 22,012 | ex | Elixir | lib/file_size.ex | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 5 | 2019-05-25T14:33:23.000Z | 2020-10-25T01:23:17.000Z | lib/file_size.ex | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 6 | 2020-04-14T21:48:53.000Z | 2020-09-25T12:52:03.000Z | lib/file_size.ex | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 1 | 2020-09-23T21:51:37.000Z | 2020-09-23T21:51:37.000Z | defmodule FileSize do
@moduledoc """
A file size calculator, parser and formatter.
## Usage
You can build your own file size by creating it with a number and a unit using
the `new/2` function. See the "Supported Units" section for a list of possible
unit atoms.
iex> FileSize.new(16, :gb)
#Fil... | 28.220513 | 99 | 0.623978 |
ac411738b123038db7bb964f67e84e3ed6501a30 | 2,638 | exs | Elixir | test/http_parser_test.exs | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | test/http_parser_test.exs | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | test/http_parser_test.exs | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | defmodule HttpParserTest do
use ExUnit.Case
doctest HttpParser
alias HttpParser.Request
import HttpParser, only: [create_request: 1]
def req(path \\ "/foobar"), do: %Request{uri: URI.parse("https://localhost:4000#{path}")}
describe "create_request" do
test "uses the right method" do
assert %{r... | 32.170732 | 100 | 0.594769 |
ac4118cdeead455e613ea6b1f49b57dd983e6afe | 2,648 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_original_detect_intent_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_original_detect_intent_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_original_detect_intent_request.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 ... | 36.273973 | 130 | 0.709592 |
ac41294ae715a3d714420593a3cfd0a918de3e56 | 61 | ex | Elixir | kubeojo/web/views/layout_view.ex | jamessral/kubeojo | 3c8092c22e48c70fab5b88c849e407eddc26d652 | [
"MIT"
] | 18 | 2018-06-30T10:21:45.000Z | 2022-02-26T10:45:13.000Z | kubeojo/web/views/layout_view.ex | jamessral/kubeojo | 3c8092c22e48c70fab5b88c849e407eddc26d652 | [
"MIT"
] | 21 | 2018-07-01T10:49:30.000Z | 2019-10-15T13:34:21.000Z | kubeojo/web/views/layout_view.ex | jamessral/kubeojo | 3c8092c22e48c70fab5b88c849e407eddc26d652 | [
"MIT"
] | 4 | 2018-07-10T13:36:08.000Z | 2019-10-14T12:35:54.000Z | defmodule Kubeojo.LayoutView do
use Kubeojo.Web, :view
end
| 15.25 | 31 | 0.786885 |
ac4136ae0ce5a37fbfe9a083e604f0d08034ce21 | 1,411 | exs | Elixir | rel/config.exs | KronicDeth/intellij_elixir | eab6e3ab0cd279fc172af66ac64d151fd5418ee3 | [
"Apache-2.0"
] | 5 | 2015-12-11T10:23:19.000Z | 2020-01-18T21:48:54.000Z | rel/config.exs | KronicDeth/intellij_elixir | eab6e3ab0cd279fc172af66ac64d151fd5418ee3 | [
"Apache-2.0"
] | 2 | 2015-04-05T03:03:19.000Z | 2015-04-06T04:05:48.000Z | rel/config.exs | KronicDeth/intellij_elixir | eab6e3ab0cd279fc172af66ac64d151fd5418ee3 | [
"Apache-2.0"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# Thi... | 28.795918 | 74 | 0.742736 |
ac414d4f717acc11445e8c551aec051e7971bdaa | 435 | exs | Elixir | config/dev.exs | simonasdev/splurty | 0bee8871803b25d19d4ba96c872d51321ce81d2f | [
"MIT"
] | null | null | null | config/dev.exs | simonasdev/splurty | 0bee8871803b25d19d4ba96c872d51321ce81d2f | [
"MIT"
] | null | null | null | config/dev.exs | simonasdev/splurty | 0bee8871803b25d19d4ba96c872d51321ce81d2f | [
"MIT"
] | null | null | null | use Mix.Config
config :splurty, Splurty.Endpoint,
http: [port: System.get_env("PORT") || 3000],
debug_errors: true,
cache_static_lookup: false
# Enables code reloading for development
config :phoenix, :code_reloader, true
# Do not include metadata nor timestamps in development logs
config :logger, :console, fo... | 29 | 85 | 0.756322 |
ac415e56efefe51007b1a4c7b655da64a0acdde7 | 179 | exs | Elixir | times.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | times.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | times.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | defmodule Times do
def double(n) do
n * 2
end
def double_one_line(n), do: n * 2
def triple(n), do: n * 3
def quadruple(n), do: double_one_line double_one_line n
end
| 19.888889 | 57 | 0.664804 |
ac416ac4751283a415071e6544e5b30f9a56eb9b | 1,252 | ex | Elixir | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/list_spans_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/list_spans_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/list_spans_response.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... | 31.3 | 80 | 0.746805 |
ac4173d76914a4451dff88180c2f294c27227613 | 2,064 | ex | Elixir | lib/nixa/naive_bayes/gaussian.ex | arpieb/nixa | 450f18c6fb0a202a75b68203e1e45d741d123ee4 | [
"Apache-2.0"
] | null | null | null | lib/nixa/naive_bayes/gaussian.ex | arpieb/nixa | 450f18c6fb0a202a75b68203e1e45d741d123ee4 | [
"Apache-2.0"
] | 1 | 2022-01-20T20:30:31.000Z | 2022-01-20T20:30:31.000Z | lib/nixa/naive_bayes/gaussian.ex | arpieb/nixa | 450f18c6fb0a202a75b68203e1e45d741d123ee4 | [
"Apache-2.0"
] | null | null | null | defmodule Nixa.NaiveBayes.Gaussian do
@moduledoc """
Implements the Gaussian Naive Bayes algorithm for continuous feature domains
"""
import Nixa.NaiveBayes.Shared
import Nixa.Stats
import Nx.Defn
defstruct [
class_probs: nil,
means: nil,
stds: nil
]
@doc """
Train a model using the p... | 26.805195 | 132 | 0.621609 |
ac417450e72c566ef7e9d6eb312020ea3d05d6ed | 2,636 | ex | Elixir | lib/hit_pay/config.ex | thekirinlab/hit_pay | 861125b14b29001da805236d6131d3dec401a4ae | [
"Apache-2.0"
] | 4 | 2021-07-13T10:10:21.000Z | 2022-01-20T07:49:44.000Z | lib/hit_pay/config.ex | thekirinlab/hit_pay | 861125b14b29001da805236d6131d3dec401a4ae | [
"Apache-2.0"
] | null | null | null | lib/hit_pay/config.ex | thekirinlab/hit_pay | 861125b14b29001da805236d6131d3dec401a4ae | [
"Apache-2.0"
] | 1 | 2021-07-19T13:35:46.000Z | 2021-07-19T13:35:46.000Z | defmodule HitPay.Config do
@moduledoc """
Utility that handles interaction with the application's configuration
"""
@default_environment if Mix.env() == "production", do: "production", else: "sandbox"
@doc """
In config.exs your implicit or expicit configuration is:
config ex_:crowdin, json_library:... | 26.36 | 114 | 0.677542 |
ac418e6a034945a69f3c180d61a3b6776ccd3178 | 1,213 | ex | Elixir | apps/fz_vpn/lib/fz_vpn/cli/sandbox.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_vpn/lib/fz_vpn/cli/sandbox.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | 1 | 2022-03-30T03:57:41.000Z | 2022-03-30T03:57:41.000Z | apps/fz_vpn/lib/fz_vpn/cli/sandbox.ex | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | null | null | null | defmodule FzVpn.CLI.Sandbox do
@moduledoc """
Sandbox CLI environment for WireGuard CLI operations used in
dev and test modes.
"""
alias FzVpn.Config
require Logger
@show_dump """
0A+FvaRbBjKan9hyjolIpjpwaz9rguSeNCXNtoOiLmg= 7E8wSJ2ue1l2cRm/NsqkFfmb0HZxc+3Dg373BVcMxx4= 51820 off
+wEYaT5kNg7mp+KbDMjK... | 29.585366 | 136 | 0.764221 |
ac4197887fe50a99b5b2e61a853084707216dbba | 1,173 | ex | Elixir | apps/rent_bot_web/lib/rent_bot_web/channels/user_socket.ex | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 94 | 2018-02-19T11:53:45.000Z | 2021-11-15T12:20:24.000Z | apps/rent_bot_web/lib/rent_bot_web/channels/user_socket.ex | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 2 | 2021-03-10T03:48:31.000Z | 2021-05-10T23:32:27.000Z | apps/rent_bot_web/lib/rent_bot_web/channels/user_socket.ex | dih78/rent-bot | 35ee3f32ca227979922aee37678e98e6e46491c8 | [
"MIT"
] | 28 | 2018-02-19T11:53:48.000Z | 2021-01-02T21:55:36.000Z | defmodule RentBotWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", RentBotWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and a... | 30.868421 | 83 | 0.703325 |
ac41b683a848561cc90ffbb6252073aba5eba14b | 924 | ex | Elixir | apps/dockup_ui/test/support/channel_case.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 1 | 2019-08-20T07:45:10.000Z | 2019-08-20T07:45:10.000Z | apps/dockup_ui/test/support/channel_case.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup_ui/test/support/channel_case.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | 2 | 2019-03-08T10:51:34.000Z | 2019-08-20T07:45:13.000Z | defmodule DockupUi.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be... | 23.1 | 59 | 0.705628 |
ac41f9c8e7d751198c3d8da855753aac2734c078 | 474 | ex | Elixir | lib/eps/constants/general.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | lib/eps/constants/general.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | lib/eps/constants/general.ex | generalui/elixir_pairing | 67919e37b53e72bbd11e4785c9caa94fb3ac3303 | [
"MIT"
] | null | null | null | defmodule EPS.Constants.General do
@moduledoc """
The Enums constants are where all enum values should be defined.
"""
def current_env(), do: Application.fetch_env!(:eps, :env)
def current_env(:string), do: current_env() |> to_string()
defmacro __using__(_opts) do
quote do
# PermaJWT time to li... | 24.947368 | 66 | 0.687764 |
ac4206a2734ac93b267bce196b7978af560e6a32 | 1,083 | exs | Elixir | phoenix/phoenix_tailwind/config/config.exs | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | phoenix/phoenix_tailwind/config/config.exs | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | phoenix/phoenix_tailwind/config/config.exs | toff63/elixir-sandbox | ac63f839b97ccb7a11e07fb1e505b7cd24e19cb3 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :phoenix_tailwind,
ecto_repos: [Phoenix... | 33.84375 | 93 | 0.778393 |
ac42823e08bba19a63d48a623865930c91ae512a | 77 | ex | Elixir | lib/miles_to_go_web/views/user_confirmation_view.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | 6 | 2020-12-18T08:36:32.000Z | 2021-06-13T03:02:16.000Z | lib/miles_to_go_web/views/user_confirmation_view.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | lib/miles_to_go_web/views/user_confirmation_view.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | defmodule MilesToGoWeb.UserConfirmationView do
use MilesToGoWeb, :view
end
| 19.25 | 46 | 0.844156 |
ac429f28168e4dd3a40d9ba86282aa0feb5acf2e | 347 | exs | Elixir | priv/repo/migrations/20201219191718_create_tasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20201219191718_create_tasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20201219191718_create_tasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | defmodule Erflow.Repo.Migrations.CreateTasks do
use Ecto.Migration
def change do
create table(:tasks, primary_key: false) do
add :task_id, :binary_id, primary_key: true
add :start_time, :utc_datetime
add :end_time, :utc_datetime
add :status, :string
add :name, :string
times... | 20.411765 | 49 | 0.668588 |
ac42e8245dce009981ef3b211ab08c9d16b8208b | 187 | exs | Elixir | priv/repo/migrations/20210812173700_car_priorities.exs | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | priv/repo/migrations/20210812173700_car_priorities.exs | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | priv/repo/migrations/20210812173700_car_priorities.exs | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMate.Repo.Migrations.CarPriorities do
use Ecto.Migration
def change do
alter table(:cars) do
add(:display_priority, :smallint, default: 1)
end
end
end
| 18.7 | 52 | 0.716578 |
ac42ef1ab3f5fde7a999a81a1277cb58eb38091a | 838 | exs | Elixir | test/mandrag/docker_test.exs | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 19 | 2016-01-16T12:43:40.000Z | 2021-03-25T03:24:26.000Z | test/mandrag/docker_test.exs | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 4 | 2016-02-06T05:33:06.000Z | 2019-06-25T02:14:04.000Z | test/mandrag/docker_test.exs | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 1 | 2020-01-20T15:11:24.000Z | 2020-01-20T15:11:24.000Z | defmodule Mandrag.DockerTest do
use ExUnit.Case, async: true
alias Mandrag.Docker
@current_version Mix.Project.config()[:version]
test "repo", do: assert(Docker.repo() == "mandrag")
test "build_args", do: assert(Docker.build_args() == %{name: :mandrag})
test "file_path" do
path = "#{File.cwd!()}/_bu... | 26.1875 | 79 | 0.661098 |
ac43083924d783dd7cb5398dfb75828ca5adf81a | 1,388 | ex | Elixir | test/support/data_case.ex | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 14 | 2018-03-23T04:13:29.000Z | 2021-07-26T06:15:50.000Z | test/support/data_case.ex | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 2 | 2021-03-08T18:20:20.000Z | 2021-05-06T22:47:09.000Z | test/support/data_case.ex | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 3 | 2020-11-04T08:11:47.000Z | 2022-01-13T17:41:42.000Z | defmodule TweetBot.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every tes... | 25.703704 | 77 | 0.680836 |
ac4309093a7c8de36c67e40c1e7977e5e5403d5d | 492 | ex | Elixir | lib/status_ku/api/status.ex | sticksnleaves/status-ku | 944c49c8281d347a7eb8c46985a13744eca3dba2 | [
"MIT"
] | null | null | null | lib/status_ku/api/status.ex | sticksnleaves/status-ku | 944c49c8281d347a7eb8c46985a13744eca3dba2 | [
"MIT"
] | null | null | null | lib/status_ku/api/status.ex | sticksnleaves/status-ku | 944c49c8281d347a7eb8c46985a13744eca3dba2 | [
"MIT"
] | null | null | null | defmodule StatusKu.API.Status do
@moduledoc """
Provides an interface for interacting with the Heroku status API.
"""
import StatusKu.API.Base
def current_status do
{:ok, request(:get, "/current-status") |> StatusKu.Parser.parse_status}
end
def issue(id) do
{:ok, request(:get, "/issues/#{id}") ... | 24.6 | 84 | 0.680894 |
ac4319df7609c3bcf3f9b392aea44c0d9b7375ec | 35 | ex | Elixir | lib/hummingbirdserver.ex | xiangmingliu/hummingbirdserver | 6ba84eb42cdcae2003032042427e75d0144a3402 | [
"Apache-2.0"
] | null | null | null | lib/hummingbirdserver.ex | xiangmingliu/hummingbirdserver | 6ba84eb42cdcae2003032042427e75d0144a3402 | [
"Apache-2.0"
] | null | null | null | lib/hummingbirdserver.ex | xiangmingliu/hummingbirdserver | 6ba84eb42cdcae2003032042427e75d0144a3402 | [
"Apache-2.0"
] | null | null | null | defmodule Hummingbirdserver do
end
| 11.666667 | 30 | 0.885714 |
ac433d2b2000808649c27cf52b670faec017cc4d | 1,144 | exs | Elixir | test/day04_test.exs | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | test/day04_test.exs | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | test/day04_test.exs | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | defmodule Day04Test do
use ExUnit.Case, async: true
import Day04
alias Day04.{Part1, Part2}
test "part 1" do
[lower, upper] = get_range()
assert 1665 == Part1.run(lower, upper)
end
test "part 2" do
[lower, upper] = get_range()
assert 1131 == Part2.run(lower, upper)
end
test "valid ... | 23.346939 | 75 | 0.681818 |
ac434444fd7d9b1b9f55c2c591945594e0ef5f5e | 2,072 | ex | Elixir | lib/atom_tweaks/ecto/markdown.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | lib/atom_tweaks/ecto/markdown.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | lib/atom_tweaks/ecto/markdown.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaks.Ecto.Markdown do
@moduledoc """
An `Ecto.Type` that handles the conversion between a Markdown-formatted string in the database and
a `AtomTweaks.Markdown` struct in memory.
Use this as the type of the database field in the schema:
```
defmodule AtomTweaks.Tweaks.Tweak do
use Ecto.... | 25.9 | 121 | 0.688224 |
ac435301cb5bc4e0f1a5a9710adbd823d60431cc | 950 | ex | Elixir | lib/netease_music_api/application.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | 3 | 2017-12-25T02:40:05.000Z | 2019-05-09T04:01:24.000Z | lib/netease_music_api/application.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | null | null | null | lib/netease_music_api/application.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | null | null | null | defmodule NeteaseMusicApi.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
port =
case Mix.env() do
:test -> 4002
_ -> 4001
end
# List all child processe... | 28.787879 | 87 | 0.671579 |
ac4354efcceccc692c0f8bf9063a35d6d92780e6 | 1,999 | ex | Elixir | lib/tune_web/views/pagination_view.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 1 | 2021-07-09T11:57:41.000Z | 2021-07-09T11:57:41.000Z | lib/tune_web/views/pagination_view.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | null | null | null | lib/tune_web/views/pagination_view.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 2 | 2021-07-09T11:57:45.000Z | 2022-01-06T23:37:19.000Z | defmodule TuneWeb.PaginationView do
@moduledoc false
use TuneWeb, :view
@max_left 3
@max_right 2
def pagination_opts(page, per_page, total) do
total_pages = div(total, per_page)
total_pages =
case rem(total, per_page) do
0 -> total_pages
_other -> total_pages + 1
end
... | 25.303797 | 97 | 0.641821 |
ac4361778fdd1fbe0c8be15e0a4cdf7be8787fa9 | 1,226 | ex | Elixir | lib/ex_robinhood/account.ex | GunnarPDX/ex_robinhood | 4905c0d1463b21f232eea41f38708f7c2bb3c3f6 | [
"MIT"
] | 3 | 2021-02-13T17:17:04.000Z | 2021-04-26T02:36:53.000Z | lib/ex_robinhood/account.ex | GunnarPDX/ex_robinhood | 4905c0d1463b21f232eea41f38708f7c2bb3c3f6 | [
"MIT"
] | null | null | null | lib/ex_robinhood/account.ex | GunnarPDX/ex_robinhood | 4905c0d1463b21f232eea41f38708f7c2bb3c3f6 | [
"MIT"
] | 1 | 2021-02-11T03:31:03.000Z | 2021-02-11T03:31:03.000Z | defmodule ExRobinhood.Account do
@moduledoc """
Account Agent
"""
use Agent
@credentials %{
device_token: "",
account_url: "",
mfa_code: "",
challenge_id: "",
username: "",
password: "",
refresh_token: "",
access_token: "",
headers: %{
"Accept" => "*/*",
"Accep... | 27.244444 | 90 | 0.596248 |
ac4368900cd909deaf5b0bcf8823f0bfaec9c370 | 6,334 | ex | Elixir | lib/mix/lib/mix/tasks/compile.erlang.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/lib/mix/tasks/compile.erlang.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.erlang.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Erlang do
use Mix.Task.Compiler
import Mix.Compilers.Erlang
@recursive true
@manifest "compile.erlang"
@switches [force: :boolean, all_warnings: :boolean]
@moduledoc """
Compiles Erlang source files.
When this task runs, it will first check the modification times of
all ... | 27.903084 | 116 | 0.631197 |
ac438a638411fdbb3456e878183906c2d83b0074 | 876 | ex | Elixir | lib/envio/publishers/phoenix_pub_sub.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | 12 | 2018-07-25T08:38:05.000Z | 2020-05-16T07:29:11.000Z | lib/envio/publishers/phoenix_pub_sub.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | 6 | 2018-07-26T17:09:44.000Z | 2021-10-19T06:39:44.000Z | lib/envio/publishers/phoenix_pub_sub.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | null | null | null | defmodule Envio.Publishers.PhoenixPubSub do
@moduledoc false
defmacro __using__(opts \\ []) do
{adapter, _opts} = Keyword.pop(opts, :adapter, :pg2)
quote location: :keep, generated: true do
@adapter unquote(adapter)
@spec do_broadcast(binary(), map()) :: :ok
defp do_broadcast(channel, %{... | 35.04 | 86 | 0.636986 |
ac43c9db94a7af0f264d19fb8967e77bffbc20c6 | 399 | exs | Elixir | mix.exs | vinolivae/gen_report | a568da82b52ccd39f34a1ae5554a891e9f0c7cbb | [
"MIT"
] | null | null | null | mix.exs | vinolivae/gen_report | a568da82b52ccd39f34a1ae5554a891e9f0c7cbb | [
"MIT"
] | null | null | null | mix.exs | vinolivae/gen_report | a568da82b52ccd39f34a1ae5554a891e9f0c7cbb | [
"MIT"
] | null | null | null | defmodule GenReport.MixProject do
use Mix.Project
def project do
[
app: :gen_report,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[... | 15.346154 | 61 | 0.531328 |
ac43dd6245055cd0690d9937a9f5abe09c2e49dc | 2,421 | ex | Elixir | lib/kraken_api/trade.ex | hosh/ex-kraken-api | c4e41023f37a030ae5380d2b048bd5f2f56893b2 | [
"MIT"
] | null | null | null | lib/kraken_api/trade.ex | hosh/ex-kraken-api | c4e41023f37a030ae5380d2b048bd5f2f56893b2 | [
"MIT"
] | null | null | null | lib/kraken_api/trade.ex | hosh/ex-kraken-api | c4e41023f37a030ae5380d2b048bd5f2f56893b2 | [
"MIT"
] | null | null | null | defmodule KrakenApi.Trade do
@moduledoc """
Private User Trading Kraken API calls
"""
alias KrakenApi.Http, as: Http
@doc """
Add standard order
Params:
- pair = asset pair
- type = type of order (buy/sell)
- ordertype = order type:
- market
- limit (price = limit price)
- stop-loss (... | 36.134328 | 91 | 0.672862 |
ac43e52674964006982a248036cb719947dbccad | 1,008 | ex | Elixir | lib/md0/scanner/rgx_macros.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | lib/md0/scanner/rgx_macros.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | lib/md0/scanner/rgx_macros.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | defmodule Md0.Scanner.RgxMacros do
defmacro __using__(_options) do
quote do
import unquote(__MODULE__)
Module.put_attribute __MODULE__, :_defined_tokens, []
Module.put_attribute __MODULE__, :_defined_start_tokens, []
end
end
defmacro defstarttoken(name, regex_str) do
quote bin... | 29.647059 | 80 | 0.675595 |
ac43f33b93f911439031050f5f2a0141e26e2a4c | 30,098 | exs | Elixir | lib/elixir/test/elixir/exception_test.exs | sabiwara/elixir | abbb7983a036947a1f2b15fe51fabd0f1854c51f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/exception_test.exs | sabiwara/elixir | abbb7983a036947a1f2b15fe51fabd0f1854c51f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/exception_test.exs | sabiwara/elixir | abbb7983a036947a1f2b15fe51fabd0f1854c51f | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule ExceptionTest do
use ExUnit.Case, async: true
doctest Exception
test "raising preserves the stacktrace" do
stacktrace =
try do
raise "a"
rescue
_ -> hd(__STACKTRACE__)
end
file = __ENV__.file |> Path.relative_to_... | 36.97543 | 147 | 0.587747 |
ac448291a1a6b75a3e073f6173fe30873cb53d41 | 2,352 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_smtp_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_smtp_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_smtp_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.333333 | 134 | 0.697704 |
ac44fbfb41a72e980762381ce6c7b3a38218c4a2 | 2,086 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/numeric_bucketing_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/numeric_bucketing_result.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/jobs/lib/google_api/jobs/v3/model/numeric_bucketing_result.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.358491 | 191 | 0.731064 |
ac45099b3588c5dc3571c4bb7db621cd423ab40e | 2,820 | ex | Elixir | lib/furlex.ex | queer/furlex | 66753896ad6f738b682cd41744b0ee5289e6ccff | [
"Apache-2.0"
] | 43 | 2017-07-30T20:58:52.000Z | 2022-03-12T01:42:38.000Z | lib/furlex.ex | queer/furlex | 66753896ad6f738b682cd41744b0ee5289e6ccff | [
"Apache-2.0"
] | 17 | 2017-10-04T12:34:28.000Z | 2021-02-23T12:47:44.000Z | lib/furlex.ex | queer/furlex | 66753896ad6f738b682cd41744b0ee5289e6ccff | [
"Apache-2.0"
] | 16 | 2017-10-04T12:38:49.000Z | 2021-02-20T21:16:51.000Z | defmodule Furlex do
@moduledoc """
Furlex is a structured data extraction tool written in Elixir.
It currently supports unfurling oEmbed, Twitter Card, Facebook Open Graph,
JSON-LD and plain ole' HTML `<meta />` data out of any url you supply.
"""
use Application
alias Furlex.{Fetcher, Parser}
alias ... | 26.857143 | 85 | 0.585461 |
ac45179f113db5cedf7c734e2166365db994bbf5 | 88 | ex | Elixir | lib/urepo/plugs/exporter.ex | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | lib/urepo/plugs/exporter.ex | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | lib/urepo/plugs/exporter.ex | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | defmodule Urepo.Plugs.Exporter do
@moduledoc false
use Prometheus.PlugExporter
end
| 14.666667 | 33 | 0.806818 |
ac451ee659820f452ab85787b3ced0add5fee650 | 255 | ex | Elixir | test/application.ex | ForeTokenOfficial/foretoken | d338b48fee55ca871ff4debefea1818920790cdb | [
"MIT"
] | 4 | 2018-05-29T08:14:50.000Z | 2020-01-14T04:37:10.000Z | lib/application.ex | skirino/foretoken | 5ad390c786f294d91fb801a70462625ae2132c90 | [
"MIT"
] | null | null | null | lib/application.ex | skirino/foretoken | 5ad390c786f294d91fb801a70462625ae2132c90 | [
"MIT"
] | null | null | null | defmodule Foretoken.Application do
use Application
@impl true
def start(_type, _args) do
Foretoken.Ets.init()
children = [
Foretoken.InactiveBucketCleaner,
]
Supervisor.start_link(children, [strategy: :one_for_one])
end
end
| 19.615385 | 61 | 0.705882 |
ac454ea1c1c3311843d024aa1c41396be6e80efd | 582 | ex | Elixir | lib/butters/application.ex | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | 1 | 2019-09-07T16:28:01.000Z | 2019-09-07T16:28:01.000Z | lib/butters/application.ex | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | null | null | null | lib/butters/application.ex | hexedpackets/butters | 81b6de679a04b18dbb1e4243cc8f77d5891f0fb4 | [
"Apache-2.0"
] | null | null | null | defmodule Butters.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Butters.Worker.start_l... | 27.714286 | 66 | 0.709622 |
ac457da5b7e2ecd2fb85831af3dd48ef4e5dd89c | 61 | ex | Elixir | elixir/hangman/cli/lib/cli.ex | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | elixir/hangman/cli/lib/cli.ex | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | elixir/hangman/cli/lib/cli.ex | pylebecq/learning | 5ef7309c340a281badb48d3e9bd2bd261e168b75 | [
"MIT"
] | null | null | null | defmodule Cli do
defdelegate start(), to: Cli.Interact
end
| 15.25 | 39 | 0.754098 |
ac458834640d0ebe0e7a0e76e664b2eb4cca25c0 | 1,726 | exs | Elixir | src/day15.exs | ihabunek/aoc2015-elixir | 177e2875b3facc96dbf1cd89ab35b96b9398883c | [
"MIT"
] | null | null | null | src/day15.exs | ihabunek/aoc2015-elixir | 177e2875b3facc96dbf1cd89ab35b96b9398883c | [
"MIT"
] | null | null | null | src/day15.exs | ihabunek/aoc2015-elixir | 177e2875b3facc96dbf1cd89ab35b96b9398883c | [
"MIT"
] | null | null | null | defmodule Day15 do
def get_permutations(max) do
Stream.flat_map(1..max, fn a ->
Stream.flat_map(1..max, fn b ->
Stream.flat_map(1..max, fn c ->
Stream.flat_map(1..max, fn d ->
if a + b + c + d == max,
do: [%{sprinkles: a, butterscotch: b, chocolate: c, candy: d}],... | 29.758621 | 87 | 0.612978 |
ac458caa38076272bb54f002647b2e73153bb63a | 5,097 | exs | Elixir | test/resource/relationships/many_to_many_test.exs | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | 1 | 2021-12-27T09:43:29.000Z | 2021-12-27T09:43:29.000Z | test/resource/relationships/many_to_many_test.exs | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | test/resource/relationships/many_to_many_test.exs | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Test.Resource.Relationships.ManyToManyTest do
@moduledoc false
use ExUnit.Case, async: true
defmacrop defposts(do: body) do
quote do
defmodule Post do
@moduledoc false
use Ash.Resource
attributes do
attribute :id, :uuid, primary_key?: true, default: &Ect... | 32.464968 | 126 | 0.574063 |
ac4593f45eb8d2502ec9da15dd92e7856add5952 | 1,881 | exs | Elixir | config/prod.secret.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | config/prod.secret.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | config/prod.secret.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | # 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.726741 |
ac4599de58d45a0b8f119975dd0252785a6f8f7f | 1,842 | ex | Elixir | drpm/debian/drpm.init.ex | kakwa/debian-rpm-build-tools | 7107407c31a5f6f4178a7ce7d17d0bfb069e3f02 | [
"MIT"
] | 2 | 2019-12-30T17:23:46.000Z | 2020-01-02T08:47:39.000Z | drpm/debian/drpm.init.ex | kakwa/debian-rpm-build-tools | 7107407c31a5f6f4178a7ce7d17d0bfb069e3f02 | [
"MIT"
] | null | null | null | drpm/debian/drpm.init.ex | kakwa/debian-rpm-build-tools | 7107407c31a5f6f4178a7ce7d17d0bfb069e3f02 | [
"MIT"
] | null | null | null | #! /bin/sh
### BEGIN INIT INFO
# Provides: drpm
# Required-Start: $remote_fs $network $syslog
# Required-Stop: $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: drpm
### END INIT INFO
PIDFILE=/var/run/drpm/drpm.pid
CONF=/etc/drpm/drpm.ini
USER=drpm
GR... | 18.42 | 64 | 0.55646 |
ac45c21eea7d0437d899e0c43762b2cb77e86b03 | 1,673 | ex | Elixir | lib/erlef/integrations.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | lib/erlef/integrations.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | lib/erlef/integrations.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule Erlef.Integrations do
@moduledoc false
import Ecto.Query, only: [from: 2]
alias Erlef.Repo
alias Erlef.Integrations.{App, AppKey}
import Erlef.Context
def list_apps do
Repo.all(App)
end
def get_app!(id), do: Repo.get!(App, id)
def get_app_by_slug!(slug), do: Repo.one!(App.get_by_slu... | 22.917808 | 81 | 0.615063 |
ac45c9d2dd9d3fddcb05f8998ddeda05b6593a0c | 190 | exs | Elixir | priv/repo/migrations/20201111001419_convert_people_strings_to_text.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | priv/repo/migrations/20201111001419_convert_people_strings_to_text.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | priv/repo/migrations/20201111001419_convert_people_strings_to_text.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Repo.Migrations.ConvertPeopleStringsToText do
use Ecto.Migration
def change do
alter table(:people) do
modify :tid, :text, from: :string
end
end
end
| 19 | 65 | 0.721053 |
ac45caac275bbbe1a3bd7ba5b9bfcc15e94896a1 | 226 | ex | Elixir | elixir/fibonacci-numbers.ex | felipe-araujo/functional-programming | f69ed723f17fba4fd5a956ee27935a770252b7ce | [
"MIT"
] | null | null | null | elixir/fibonacci-numbers.ex | felipe-araujo/functional-programming | f69ed723f17fba4fd5a956ee27935a770252b7ce | [
"MIT"
] | null | null | null | elixir/fibonacci-numbers.ex | felipe-araujo/functional-programming | f69ed723f17fba4fd5a956ee27935a770252b7ce | [
"MIT"
] | null | null | null | defmodule Solution do
def fib(n) do
case n do
1 -> 0
2 -> 1
_ -> fib(n - 1) + fib(n - 2)
end
end
end
IO.read(:stdio, :line)
|> String.trim()
|> String.to_integer()
|> Solution.fib()
|> IO.puts()
| 14.125 | 34 | 0.517699 |
ac45d98e1b2e4df3f780976651d15f1fae948bd4 | 296 | exs | Elixir | config/config.exs | capbash/dioex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | 5 | 2017-08-06T09:22:35.000Z | 2017-10-22T15:51:45.000Z | config/config.exs | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | config/config.exs | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | import Config
# config(:doex, key: :value)
#
# And access this configuration in your application as:
#
# Application.get_env(:doex, :key)
#
# Or configure a 3rd-party app:
#
# config(:logger, level: :info)
#
# Example per-environment config:
#
# import_config("#{Mix.env}.exs")
| 17.411765 | 55 | 0.652027 |
ac45e17dca75de3020f083dbcb79faac405cb2be | 769 | exs | Elixir | mix.exs | Onlyhope/tokyo | 5579fe134a00f61f14d239a9de72209656391543 | [
"MIT"
] | null | null | null | mix.exs | Onlyhope/tokyo | 5579fe134a00f61f14d239a9de72209656391543 | [
"MIT"
] | null | null | null | mix.exs | Onlyhope/tokyo | 5579fe134a00f61f14d239a9de72209656391543 | [
"MIT"
] | null | null | null | defmodule Tokyo.MixProject do
use Mix.Project
def project do
[
app: :tokyo,
version: "0.2.1",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 21.971429 | 87 | 0.530559 |
ac4601614e3a9594f5176fc6ee9289f940c7a0f4 | 2,543 | ex | Elixir | web/controllers/html_deliveryservice_server_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/controllers/html_deliveryservice_server_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/controllers/html_deliveryservice_server_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.HtmlDeliveryserviceServerController do
use Tox.Web, :controller
alias Tox.DeliveryserviceServer
def index(conn, _params) do
deliveryserviceservers = Repo.all(DeliveryserviceServer)
render(conn, "index.html", deliveryserviceservers: deliveryserviceservers)
end
def new(conn, _params) do... | 38.530303 | 104 | 0.72788 |
ac4606925270bb4669641f5b3415cc05a73b3b18 | 2,295 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_transformations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_transformations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_transformations.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... | 38.898305 | 256 | 0.759041 |
ac46167854a2a0fc957b2c6096352d353cfffeb9 | 15,927 | ex | Elixir | lib/ex_unit/lib/ex_unit/callbacks.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/ex_unit/lib/ex_unit/callbacks.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/callbacks.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Callbacks do
@moduledoc ~S"""
Defines ExUnit callbacks.
This module defines the `setup/1`, `setup/2`, `setup_all/1`, and
`setup_all/2` callbacks, as well as the `on_exit/2`, `start_supervised/2`
and `stop_supervised/1` functions.
The setup callbacks are defined via macros and each one can... | 30.926214 | 93 | 0.667295 |
ac46313e4936d63030d6caf9e2c1bb75a3181bfc | 2,342 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/model/achievement_reset_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/games_management/lib/google_api/games_management/v1management/model/achievement_reset_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/games_management/lib/google_api/games_management/v1management/model/achievement_reset_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.821429 | 300 | 0.725448 |
ac464dd41f7b322972e7b48d5bfb1305d8130e1d | 4,139 | ex | Elixir | lib/phoenix_live_view/upload_channel.ex | tcoopman/phoenix_live_view | b16e4e3982387fd6a5be03fddfd6cb17165a5ded | [
"MIT"
] | null | null | null | lib/phoenix_live_view/upload_channel.ex | tcoopman/phoenix_live_view | b16e4e3982387fd6a5be03fddfd6cb17165a5ded | [
"MIT"
] | null | null | null | lib/phoenix_live_view/upload_channel.ex | tcoopman/phoenix_live_view | b16e4e3982387fd6a5be03fddfd6cb17165a5ded | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.UploadChannel do
@moduledoc false
use Phoenix.Channel, log_handle_in: false
require Logger
alias Phoenix.LiveView.{Static, Channel}
def cancel(pid) do
GenServer.call(pid, :cancel)
end
def consume(pid, entry, func) when is_function(func, 1) or is_function(func, 2) do
... | 27.052288 | 94 | 0.638802 |
ac465122ae2080b57b714afbfffa6793d46c3ea4 | 397 | exs | Elixir | priv/repo/migrations/20191214192439_create_invitations.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 8 | 2019-09-26T13:59:25.000Z | 2020-03-30T21:26:48.000Z | priv/repo/migrations/20191214192439_create_invitations.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 39 | 2019-11-16T02:24:28.000Z | 2020-01-14T16:40:28.000Z | priv/repo/migrations/20191214192439_create_invitations.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 2 | 2019-12-16T07:55:14.000Z | 2020-06-11T04:14:00.000Z | defmodule Aph.Repo.Migrations.CreateInvitations do
use Ecto.Migration
def change do
create table(:invitations) do
add :code, :text
add :created_by, references(:users, on_delete: :nothing)
add :used_by, references(:users, on_delete: :nothing)
timestamps()
end
create index(:invi... | 23.352941 | 62 | 0.685139 |
ac466ad08b800c6256f51ae20e86a34e2abf9546 | 838 | ex | Elixir | lib/freegiving_web/live_helpers.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving_web/live_helpers.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving_web/live_helpers.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule FreegivingWeb.LiveHelpers do
@moduledoc """
Authentication helpers for live views.
"""
import Phoenix.LiveView
alias Freegiving.{Accounts, Accounts.User}
alias FreegivingWeb.Router.Helpers, as: Routes
def assign_defaults(session, socket) do
socket =
assign_new(socket, :current_user, ... | 25.393939 | 74 | 0.665871 |
ac467d0129c4e4f070331a61f9afbe8def6128ba | 306 | ex | Elixir | web/controllers/account_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | web/controllers/account_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | web/controllers/account_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.AccountController do
use Apiv4.Web, :controller
plug :scrub_params, "data" when action in [:create, :update]
plug Autox.AutoModelPlug, Apiv4.Account when action in [:show, :update, :delete]
plug Autox.AutoPaginatePlug when action in [:index]
use Autox.ResourceController
end | 34 | 82 | 0.754902 |
ac46c73f3cf59ec2a20651de2788a2260569793b | 1,257 | ex | Elixir | elixir-to-java/elixir_api_server/lib/elixir_api_server_web/endpoint.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | elixir-to-java/elixir_api_server/lib/elixir_api_server_web/endpoint.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | 64 | 2021-08-30T23:54:04.000Z | 2022-03-14T21:06:11.000Z | elixir-to-java/elixir_api_server/lib/elixir_api_server_web/endpoint.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirApiServerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :elixir_api_server
socket "/socket", ElixirApiServerWeb.UserSocket,
websocket: false,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
... | 27.933333 | 63 | 0.717582 |
ac46d0841c7037afa1a1c2c2dd666b59bec4f442 | 1,894 | ex | Elixir | lib/rps/accounts/accounts.ex | cabol/rps | 813028c4b7bb18f8c7cbcf4422249a81ccb9f059 | [
"MIT"
] | 3 | 2018-05-28T15:10:11.000Z | 2020-08-02T21:14:25.000Z | lib/rps/accounts/accounts.ex | cabol/rps | 813028c4b7bb18f8c7cbcf4422249a81ccb9f059 | [
"MIT"
] | null | null | null | lib/rps/accounts/accounts.ex | cabol/rps | 813028c4b7bb18f8c7cbcf4422249a81ccb9f059 | [
"MIT"
] | null | null | null | defmodule Rps.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Rps.Repo
alias Rps.Accounts.User
alias Rps.Accounts.Auth.Login
alias Ecto.Changeset
alias Comeonin.Bcrypt
@doc false
def list_users do
Repo.all(User)
end
@doc false
def get_user!(i... | 20.813187 | 86 | 0.598205 |
ac46eb052a58607fa21363fb7f72c653bcc4bd02 | 436 | ex | Elixir | web/error_handlers.ex | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | web/error_handlers.ex | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | web/error_handlers.ex | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | defmodule Login.ErrorHandlers do
use Phoenix.Controller
import Login.Router.Helpers
def unauthorized(conn, error_str \\ nil) do
conn
|> put_flash(:error, error_str || "Unauthorized")
|> redirect(to: session_path(conn, :new))
|> halt()
end
def resource_not_found(conn, _error_str \\ nil) do
... | 20.761905 | 53 | 0.649083 |
ac4719ae25ff46a8bea30bd4c2b7164237a50f74 | 3,386 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/custom_dimension.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics/lib/google_api/analytics/v3/model/custom_dimension.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics/lib/google_api/analytics/v3/model/custom_dimension.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... | 42.325 | 207 | 0.665092 |
ac4727c1a041053251e96fed88ba69f49281f6ef | 695 | exs | Elixir | test/phoenix_starter/workers/user_email_worker_test.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 3 | 2021-03-19T10:39:02.000Z | 2021-07-25T19:54:09.000Z | test/phoenix_starter/workers/user_email_worker_test.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 204 | 2020-11-27T06:00:31.000Z | 2022-03-25T08:08:16.000Z | test/phoenix_starter/workers/user_email_worker_test.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | null | null | null | defmodule PhoenixStarter.Workers.UserEmailWorkerTest do
use PhoenixStarter.DataCase
import PhoenixStarter.UsersFixtures
alias PhoenixStarter.Workers.UserEmailWorker
test "sends email" do
user = user_fixture()
assert {:ok, %Bamboo.Email{}} =
UserEmailWorker.perform(%Oban.Job{
... | 26.730769 | 77 | 0.591367 |
ac473b6d372467b00b9213bc40c9ff84143cd52e | 1,356 | ex | Elixir | lib/cforum_web/mailers/user_mailer.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | lib/cforum_web/mailers/user_mailer.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | lib/cforum_web/mailers/user_mailer.ex | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | defmodule CforumWeb.UserMailer do
use Phoenix.Swoosh, view: CforumWeb.UserMailerView, layout: {CforumWeb.LayoutView, :email}
import CforumWeb.Gettext
def confirmation_mail(user) do
new()
|> from(Application.get_env(:cforum, :mail_sender, "cforum@example.org"))
|> to({user.username, user.email})
|... | 33.9 | 92 | 0.678466 |
ac476f3ce7335f47b07ec2a3f950afbd1bee4ee8 | 897 | exs | Elixir | lib/ymlr_test.exs | joerichsen/ymlr | a4dc4a06dd72fd97daef03e56d3fb5e5797e9340 | [
"MIT"
] | 10 | 2020-09-01T13:35:05.000Z | 2022-02-22T10:03:05.000Z | lib/ymlr_test.exs | joerichsen/ymlr | a4dc4a06dd72fd97daef03e56d3fb5e5797e9340 | [
"MIT"
] | 68 | 2020-09-22T07:10:48.000Z | 2022-03-28T11:07:00.000Z | lib/ymlr_test.exs | joerichsen/ymlr | a4dc4a06dd72fd97daef03e56d3fb5e5797e9340 | [
"MIT"
] | 1 | 2021-03-30T15:42:03.000Z | 2021-03-30T15:42:03.000Z | defmodule YmlrTest do
use ExUnit.Case
doctest Ymlr
alias Ymlr, as: MUT
describe "document/2" do
test "no comment" do
assert MUT.document!({[], %{a: 1}}) == "---\na: 1\n"
end
test "k8s resource" do
{:ok, input} = YamlElixir.read_from_file("test_support/fixtures/iam_policy.yaml")
... | 23.605263 | 87 | 0.585284 |
ac476f59e16b699877aa218eff18fcf7c0f8b110 | 183 | ex | Elixir | lib/expackage.ex | chrisenytc/expackage | 93c9a6a55ffc2d07976f592e09b391ae685500d3 | [
"MIT"
] | 2 | 2015-09-26T06:51:04.000Z | 2015-09-26T12:07:37.000Z | lib/expackage.ex | chrisenytc/expackage | 93c9a6a55ffc2d07976f592e09b391ae685500d3 | [
"MIT"
] | null | null | null | lib/expackage.ex | chrisenytc/expackage | 93c9a6a55ffc2d07976f592e09b391ae685500d3 | [
"MIT"
] | null | null | null | defmodule ExPackage do
@moduledoc """
A exemple of a elixir package
"""
@doc """
Returns a hello world phrase
"""
def awesome(msg) do
"Hello #{msg}"
end
end
| 13.071429 | 33 | 0.595628 |
ac4787ee944ea073fee2a0e2a8a7ef74debae29a | 5,521 | ex | Elixir | lib/bamboo/campaign_monitor_adapter.ex | jackmarchant/bamboo_campaign_monitor | 12853531bfd614293311e6ad31323d76089d0241 | [
"MIT"
] | 1 | 2019-05-17T02:36:57.000Z | 2019-05-17T02:36:57.000Z | lib/bamboo/campaign_monitor_adapter.ex | jackmarchant/bamboo_campaign_monitor | 12853531bfd614293311e6ad31323d76089d0241 | [
"MIT"
] | 1 | 2021-02-18T14:29:08.000Z | 2021-02-18T14:29:08.000Z | lib/bamboo/campaign_monitor_adapter.ex | jackmarchant/bamboo_campaign_monitor | 12853531bfd614293311e6ad31323d76089d0241 | [
"MIT"
] | null | null | null | defmodule Bamboo.CampaignMonitorAdapter do
@moduledoc """
Sends email using Campaign Monitor's JSON API.
Use this adapter to send emails through Campaign Monitor's API. Requires that an API
key is set in the config.
If you would like to add a replyto header to your email, then simply pass it in
using the ... | 28.312821 | 86 | 0.669625 |
ac479531ea2639f0850d30883a608a771ed12319 | 144 | ex | Elixir | lib/oli/delivery/evaluation/actions/navigation_action_result.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/delivery/evaluation/actions/navigation_action_result.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/delivery/evaluation/actions/navigation_action_result.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Delivery.Evaluation.Actions.NavigationActionResult do
@derive Jason.Encoder
defstruct [:type, :to, :error, :attempt_guid]
end
| 28.8 | 67 | 0.791667 |
ac479aa4d7d3766917b70a654e934b6ac5f8c348 | 1,463 | ex | Elixir | lib/dogma/rule/function_parentheses.ex | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | lib/dogma/rule/function_parentheses.ex | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | lib/dogma/rule/function_parentheses.ex | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | use Dogma.RuleBuilder
defrule Dogma.Rule.FunctionParentheses do
@moduledoc """
A rule that ensures function declarations use parentheses if and only if
they have arguments.
For example, this rule considers these function declarations valid:
def foo do
:bar
end
defp baz(a, b) do
... | 20.605634 | 74 | 0.617225 |
ac479f8a0984ddca98b7dc123208d1bcac2fa70a | 1,703 | ex | Elixir | lib/jarvis_web/views/error_helpers.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | lib/jarvis_web/views/error_helpers.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | lib/jarvis_web/views/error_helpers.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule JarvisWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(errors, field) when is_list(errors) do
Enum.map(Keyword.get_values(errors, field), fn error ->
... | 33.392157 | 83 | 0.675279 |
ac47a2444b7912392e3ab7427910975a2d2773d0 | 22,001 | exs | Elixir | integration_test/cases/assoc.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | integration_test/cases/assoc.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/assoc.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.AssocTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true)
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Custom
alias Ecto.Integration.Post
alias Ecto.Int... | 32.788376 | 94 | 0.625244 |
ac47a3912e63d48dc4d496a85cfc54204637d800 | 848 | ex | Elixir | lib/arrow_web/controllers/auth_controller.ex | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | null | null | null | lib/arrow_web/controllers/auth_controller.ex | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | lib/arrow_web/controllers/auth_controller.ex | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | defmodule ArrowWeb.AuthController do
use ArrowWeb, :controller
plug Ueberauth
@spec callback(Plug.Conn.t(), map()) :: Plug.Conn.t()
def callback(%{assigns: %{ueberauth_auth: auth}} = conn, _params) do
username = auth.uid
expiration = auth.credentials.expires_at
credentials = conn.assigns.ueberauth_... | 27.354839 | 70 | 0.669811 |
ac47bd142b2f896fab22a1de313bba6da61336f1 | 310 | exs | Elixir | config/prod.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | config/prod.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | 5 | 2019-02-10T14:22:39.000Z | 2019-02-11T16:29:02.000Z | config/prod.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | use Mix.Config
config :make_word_bot, MakeWordBotWeb.Endpoint,
https: [
:inet6,
port: System.get_env("PORT") || 8443,
keyfile: "priv/keys/prod.key",
certfile: "priv/keys/prod.pem"
]
# Do not print debug messages in production
config :logger, level: :info
import_config "prod.secret.exs"
| 20.666667 | 47 | 0.693548 |
ac47bf1549e94b7d2a4053cf60f90f03da732e24 | 1,480 | exs | Elixir | test/unit/hologram/runtime/page_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/runtime/page_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/runtime/page_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Runtime.PageTest do
use Hologram.Test.UnitCase, async: true
require Hologram.Page
@default_layout Application.compile_env!(:hologram, :default_layout)
test "is_page?/0" do
module = Hologram.Test.Fixtures.Runtime.Page.Module1
assert module.is_page?()
end
describe "layout/0" do
... | 24.262295 | 98 | 0.585811 |
ac47c6bc7bf3858db2eb04054d341b08d778e6db | 1,629 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/managed_instance_last_attempt.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/managed_instance_last_attempt.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/managed_instance_last_attempt.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... | 34.659574 | 199 | 0.759362 |
ac47e50cbf2c82049afb4e59afeb310f12a32054 | 475 | ex | Elixir | clients/client/elixir/lib/ory/model/invite_payload.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/invite_payload.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/invite_payload.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.InvitePayload do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"invitee_email"
]
@type t :: %__MODULE__{
... | 18.269231 | 91 | 0.684211 |
ac47e9d8088419598276cb202d7bc1694bb06fca | 4,500 | ex | Elixir | lib/phoenix/live_dashboard/helpers/view_helpers.ex | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | 1 | 2020-04-23T11:36:03.000Z | 2020-04-23T11:36:03.000Z | lib/phoenix/live_dashboard/helpers/view_helpers.ex | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/helpers/view_helpers.ex | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.ViewHelpers do
# General helpers for all views (rendering related).
@moduledoc false
import Phoenix.LiveView.Helpers
@format_limit 100
@doc """
Encodes references for URLs.
"""
def encode_reference(ref) do
ref
|> :erlang.ref_to_list()
|> Enum.drop(5)
|> ... | 25.862069 | 99 | 0.613333 |
ac47ec717bf64a29b5220231187d99f2e8b42a6f | 2,150 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/modify_ack_deadline_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/modify_ack_deadline_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/modify_ack_deadline_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... | 43 | 609 | 0.746512 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.