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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1cae8c45d606c88b453d0454bfe7a9121a447eb2 | 1,308 | ex | Elixir | apps/teller/lib/teller/graphql/resolvers/account/withdraw.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 2 | 2018-06-23T11:43:34.000Z | 2019-01-07T10:52:42.000Z | apps/teller/lib/teller/graphql/resolvers/account/withdraw.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-21T01:20:04.000Z | 2018-06-21T01:20:04.000Z | apps/teller/lib/teller/graphql/resolvers/account/withdraw.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-30T21:40:51.000Z | 2018-06-30T21:40:51.000Z | defmodule Teller.GraphQL.Resolvers.Account.Withdraw do
@moduledoc """
Absinthe resolver to the `DataBase.Services.Account.Withdraw`.
GraphQL endpoint to allow authorized users to withdraw assets from
their accounts.
"""
alias Absinthe.Resolution, as: Res
alias Teller.ErrorMessages, as: Error
alias Dat... | 28.434783 | 68 | 0.724771 |
1caeb82e4ceab9f28cf7998cd03029b6e4af4a50 | 256 | ex | Elixir | lib/podcatcher/subscriptions/subscription.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/subscriptions/subscription.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/subscriptions/subscription.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | defmodule Podcatcher.Subscriptions.Subscription do
use Ecto.Schema
alias Podcatcher.Accounts.User
alias Podcatcher.Podcasts.Podcast
schema "subscriptions" do
belongs_to :user, User
belongs_to :podcast, Podcast
timestamps()
end
end
| 18.285714 | 50 | 0.761719 |
1caecc5dc10e5300fc8294ee3051b06b40731aaa | 1,213 | ex | Elixir | lib/grizzly/zip_gateway.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zip_gateway.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zip_gateway.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZIPGateway do
@moduledoc false
# helper functions for working with the Z/IP Gateway
alias Grizzly.{Options, ZWave}
# the host base is different for the LAN and PAN networks, we need to
# probably handle this a little nicer
@default_lan_host_base {0xFD00, 0xAAAA, 0, 0, 0, 0, 0}
@doc "... | 30.325 | 84 | 0.685078 |
1caed2504fc5657860cb17eb714781b3b5bb1967 | 474 | ex | Elixir | lib/test.ex | bonfire-networks/bonfire_epics | 34300053dbafa9b9cfede22bd4e6433d04344b69 | [
"Apache-2.0"
] | 1 | 2022-01-31T20:44:09.000Z | 2022-01-31T20:44:09.000Z | lib/test.ex | bonfire-networks/bonfire_epics | 34300053dbafa9b9cfede22bd4e6433d04344b69 | [
"Apache-2.0"
] | null | null | null | lib/test.ex | bonfire-networks/bonfire_epics | 34300053dbafa9b9cfede22bd4e6433d04344b69 | [
"Apache-2.0"
] | null | null | null | defmodule Bonfire.Epics.Test do
alias Bonfire.Epics.{Epic, Error}
defmacro assert_epic_ok(expr) do
quote do
case unquote(expr) do
{:ok, value} -> value
{:error, e} -> Bonfire.Epics.Test.debug_error(e)
end
end
end
def debug_error(%Epic{}=epic) do
for error <- epic.error... | 22.571429 | 68 | 0.654008 |
1caee6888c0a42e2480d059dbc8617affa771240 | 2,125 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_template_list_warning.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/node_template_list_warning.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/node_template_list_warning.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.351852 | 194 | 0.721882 |
1caeedfd68641c0a38777ff39a74f148bbc45f3b | 535 | ex | Elixir | lib/chat_api_web/views/error_view.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 2 | 2020-09-21T07:27:13.000Z | 2021-12-20T13:23:56.000Z | lib/chat_api_web/views/error_view.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | lib/chat_api_web/views/error_view.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2021-08-29T14:10:18.000Z | 2021-08-29T14:10:18.000Z | defmodule ChatApiWeb.ErrorView do
use ChatApiWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from... | 31.470588 | 83 | 0.719626 |
1caf4dd59975ef5b229e56acbf116d7d452f1931 | 2,703 | ex | Elixir | lib/potionx/auth/auth_plug.ex | PotionApps/potionx | 92a23f05c9b640256ec980b87cd6b262a1d03157 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | lib/potionx/auth/auth_plug.ex | PotionApps/potionx | 92a23f05c9b640256ec980b87cd6b262a1d03157 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | lib/potionx/auth/auth_plug.ex | PotionApps/potionx | 92a23f05c9b640256ec980b87cd6b262a1d03157 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule Potionx.Plug.Auth do
@behaviour Plug
alias Potionx.Context.Service
def call(%{assigns: %{context: %Service{}}} = conn, opts) do
conn
|> Plug.Conn.fetch_cookies(
signed: Enum.map(Map.values(Potionx.Auth.token_config()), &(&1.name))
)
|> maybe_renew(opts)
|> fetch_session_from_c... | 26.762376 | 105 | 0.580466 |
1caf54c37bdae496c50af7a2c863c5f2a9b943cc | 2,719 | exs | Elixir | test/banking/user/create_admin_test.exs | murilosrg/banking-api | 731a150d06d605958b53bfd27c4a1f6033527847 | [
"MIT"
] | null | null | null | test/banking/user/create_admin_test.exs | murilosrg/banking-api | 731a150d06d605958b53bfd27c4a1f6033527847 | [
"MIT"
] | null | null | null | test/banking/user/create_admin_test.exs | murilosrg/banking-api | 731a150d06d605958b53bfd27c4a1f6033527847 | [
"MIT"
] | null | null | null | defmodule Banking.CreateUserTest do
use Banking.DataCase, async: true
alias Banking.{CreateUser, User}
describe "run/1" do
test "returns a struct when params are valid" do
params = %{name: "user", email: "user@email.com", password: "123456", employee: false}
assert {:ok, %User{} = user} = Create... | 38.295775 | 92 | 0.630379 |
1caf787cbefcd9034fc461ef320e9019c248b7ec | 1,411 | exs | Elixir | mix.exs | ScrimpyCat/Parsey | 25f5d61c63d2611dfb7d79ea8f4189d34b3aabe3 | [
"BSD-2-Clause"
] | 2 | 2016-04-15T08:42:21.000Z | 2018-12-26T19:31:18.000Z | mix.exs | ScrimpyCat/Parsey | 25f5d61c63d2611dfb7d79ea8f4189d34b3aabe3 | [
"BSD-2-Clause"
] | null | null | null | mix.exs | ScrimpyCat/Parsey | 25f5d61c63d2611dfb7d79ea8f4189d34b3aabe3 | [
"BSD-2-Clause"
] | null | null | null | defmodule Parsey.Mixfile do
use Mix.Project
def project do
[
app: :parsey,
description: "A library to parse non-complex nested inputs with a given ruleset.",
version: "0.0.3",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
sta... | 26.12963 | 94 | 0.484763 |
1cafb5fbeac780ba636a8c1064439293614efa0a | 1,113 | exs | Elixir | config/config.exs | tchoutri/Eikon | dd5821680d969003f8bcf55dfe0fb421a644aad2 | [
"MIT"
] | 12 | 2016-05-08T21:26:23.000Z | 2021-09-06T00:57:58.000Z | config/config.exs | tchoutri/Eikon | dd5821680d969003f8bcf55dfe0fb421a644aad2 | [
"MIT"
] | null | null | null | config/config.exs | tchoutri/Eikon | dd5821680d969003f8bcf55dfe0fb421a644aad2 | [
"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... | 35.903226 | 73 | 0.750225 |
1cafd9ae0b72bbb0ce07a0268f5446e4295f7278 | 3,205 | ex | Elixir | jpcarver+elixir/day13/lib/day13.ex | NashFP/avent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | 2 | 2021-11-24T12:54:15.000Z | 2022-01-20T11:02:11.000Z | jpcarver+elixir/day13/lib/day13.ex | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | jpcarver+elixir/day13/lib/day13.ex | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | defmodule Day13 do
def part1(file_name \\ "test.txt") do
file_name
|> parse()
|> grid()
|> grab_first_fold()
|> fold()
|> count_visible()
end
def part2(file_name \\ "test.txt") do
file_name
|> parse()
|> grid()
|> fold()
|> prep_for_print()
|> IO.puts()
end
de... | 23.224638 | 95 | 0.563495 |
1cb01a940775825c274f3aa8d2943ff5314d62a1 | 791 | exs | Elixir | apps/omg_db/test/test_helper.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg_db/test/test_helper.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg_db/test/test_helper.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.666667 | 78 | 0.768647 |
1cb0255e2e836b078eb38da27ee2e95eb29ae942 | 2,967 | ex | Elixir | lib/sanbase_web/graphql/resolvers/wallet_hunters_resolver.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/resolvers/wallet_hunters_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/resolvers/wallet_hunters_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Resolvers.WalletHuntersResolver do
import Absinthe.Resolution.Helpers
import Sanbase.Utils.ErrorHandling, only: [changeset_errors_string: 1]
alias Sanbase.WalletHunters.{Proposal, Vote, Bounty}
alias SanbaseWeb.Graphql.SanbaseDataloader
def create_wh_bounty(_root, args, %{
... | 29.67 | 98 | 0.671385 |
1cb02fa4f53082516888fcbecae5946982356bde | 1,723 | ex | Elixir | apps/rig_auth/lib/rig_auth/jwt/utils.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | apps/rig_auth/lib/rig_auth/jwt/utils.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig_auth/lib/rig_auth/jwt/utils.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | defmodule RigAuth.Jwt.Utils do
@moduledoc """
Provides utility functions over JWT using Joken
"""
use Rig.Config, [:secret_key]
import Joken
alias Plug
alias RigAuth.Blacklist
@type claims :: %{required(String.t()) => String.t()}
@spec valid?(String.t()) :: boolean
def valid?("Bearer " <> jwt) d... | 20.511905 | 97 | 0.587348 |
1cb04933e253e1b022ba3e4732de74425bef941f | 513 | ex | Elixir | lib/elixero/core_api/models/reports/report/row.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | lib/elixero/core_api/models/reports/report/row.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | lib/elixero/core_api/models/reports/report/row.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.CoreApi.Models.Reports.Report.Row do
use Ecto.Schema
import Ecto.Changeset
@derive {Poison.Encoder, except: [:__meta__, :id]}
schema "rows" do
field :RowType, :string
embeds_many :Cells, EliXero.CoreApi.Models.Reports.Report.Rows.Cell
field :Title, :string
embeds_many :Rows, ... | 23.318182 | 71 | 0.693957 |
1cb04a0f2774de4c5ac2007908dc80e426e1a244 | 3,790 | exs | Elixir | mix.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | mix.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | mix.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Mixfile do
use Mix.Project
@version "1.9.1"
def project do
[
app: :accent,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: extra_compilers(Mix.env()) ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
s... | 26.503497 | 100 | 0.515831 |
1cb050c89164f0fe5df9c475d8119097d95e45f3 | 284 | ex | Elixir | web/controllers/employee_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | web/controllers/employee_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | web/controllers/employee_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.EmployeeRelationshipController do
use Apiv4.Web, :controller
plug :scrub_params, "data" when action in [:create, :update, :delete]
plug Autox.AutoPaginatePlug when action in [:index]
plug Autox.AutoParentPlug, Apiv4
use Autox.RelationshipController
end | 31.555556 | 71 | 0.774648 |
1cb06bb8ebcc25318a1c9a2034921085e36e48f3 | 1,675 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app_icon.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/web_app_icon.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app_icon.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 ... | 33.5 | 202 | 0.730746 |
1cb07ddeeaa78e4930c220332eec4fc816e40525 | 805 | exs | Elixir | mix.exs | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 103 | 2015-01-28T19:09:42.000Z | 2018-10-22T15:05:46.000Z | mix.exs | tyre/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 12 | 2015-07-11T05:12:41.000Z | 2018-07-21T04:42:47.000Z | mix.exs | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 18 | 2015-06-16T15:48:34.000Z | 2018-06-22T02:34:40.000Z | defmodule Imagineer.Mixfile do
use Mix.Project
def project do
[
app: :imagineer,
version: "0.3.3",
elixir: "~> 1.6",
deps: deps(),
source_url: "https://github.com/tyre/imagineer",
description: description(),
package: package()
]
end
def application do
[app... | 15.188679 | 54 | 0.532919 |
1cb07ef0085f930cb9247bcfef861e560942db39 | 497 | ex | Elixir | lib/findmeajob_web/views/error_view.ex | Adsidera/findmeajob | 5a2df0267bd29b7fd55441f7dd1de21dcd4c13ea | [
"MIT"
] | 1 | 2021-07-31T16:28:53.000Z | 2021-07-31T16:28:53.000Z | lib/findmeajob_web/views/error_view.ex | Adsidera/findmeajob | 5a2df0267bd29b7fd55441f7dd1de21dcd4c13ea | [
"MIT"
] | null | null | null | lib/findmeajob_web/views/error_view.ex | Adsidera/findmeajob | 5a2df0267bd29b7fd55441f7dd1de21dcd4c13ea | [
"MIT"
] | null | null | null | defmodule FindmeajobWeb.ErrorView do
use FindmeajobWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the templat... | 29.235294 | 61 | 0.738431 |
1cb07f049e807e5a9e95014de922b5de1d78bc47 | 8,159 | ex | Elixir | apps/rtmp/lib/rtmp/protocol/handler.ex | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 75 | 2016-12-23T14:37:18.000Z | 2021-04-26T14:07:20.000Z | apps/rtmp/lib/rtmp/protocol/handler.ex | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 19 | 2016-12-22T03:20:43.000Z | 2020-06-11T12:10:37.000Z | apps/rtmp/lib/rtmp/protocol/handler.ex | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 3 | 2018-03-29T06:40:40.000Z | 2019-02-13T09:37:19.000Z | defmodule Rtmp.Protocol.Handler do
@moduledoc """
This module controls the process that is responsible for serializing
and deserializing RTMP chunk streams for a single peer in an RTMP
connection. Input bytes come in, get deserialized into RTMP messages,
and then get sent off to the specified session handlin... | 37.599078 | 145 | 0.724844 |
1cb08fe340726bbf55b7b50188edee7ea4cb50c4 | 135 | exs | Elixir | test/coin_test.exs | vgsantoniazzi/friendly-engine | 903fe45cdadc09fb7738ce8b7bd936634eb30708 | [
"MIT"
] | 4 | 2019-03-13T16:38:32.000Z | 2020-01-11T20:05:25.000Z | test/coin_test.exs | vgsantoniazzi/friendly-engine | 903fe45cdadc09fb7738ce8b7bd936634eb30708 | [
"MIT"
] | 8 | 2020-05-28T22:32:31.000Z | 2020-06-02T11:44:18.000Z | test/coin_test.exs | vgsantoniazzi/blockchain | 903fe45cdadc09fb7738ce8b7bd936634eb30708 | [
"MIT"
] | 1 | 2019-03-14T14:53:29.000Z | 2019-03-14T14:53:29.000Z | defmodule EngineTest do
use ExUnit.Case
doctest Engine
test "greets the world" do
assert Engine.hello() == :world
end
end
| 15 | 35 | 0.703704 |
1cb09b191a2eee0eb571cf3152374bc43c8ed953 | 2,305 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | sthagen/phoenixframework-phoenix | 71c89ac8d00968844dc5fb48d06d9331812985c4 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | sthagen/phoenixframework-phoenix | 71c89ac8d00968844dc5fb48d06d9331812985c4 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | sthagen/phoenixframework-phoenix | 71c89ac8d00968844dc5fb48d06d9331812985c4 | [
"MIT"
] | null | null | null | defmodule <%= @web_namespace %>.MixProject do
use Mix.Project
def project do
[
app: :<%= @web_app_name %>,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
... | 33.405797 | 111 | 0.553145 |
1cb0c9e83fa9a09bfd8560712f3a9f94f90a35a9 | 1,744 | ex | Elixir | lib/liblink/timeout.ex | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 3 | 2018-10-26T12:55:15.000Z | 2019-05-03T22:41:34.000Z | lib/liblink/timeout.ex | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 4 | 2018-08-26T14:43:57.000Z | 2020-09-23T21:14:56.000Z | lib/liblink/timeout.ex | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2018 Xerpa
# 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, soft... | 34.196078 | 93 | 0.739106 |
1cb0eef24e51971d986c34eca49ef0bd80030a1d | 2,076 | exs | Elixir | test/philopets/accounts/sessions_test.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/philopets/accounts/sessions_test.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/philopets/accounts/sessions_test.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | defmodule Philopets.Accounts.SessionsTest do
use Philopets.DataCase
alias Philopets.Accounts.Sessions
describe "sessions" do
alias Philopets.Accounts.Sessions.Session
alias Philopets.AccountsFixtures
import Philopets.Accounts.SessionsFixtures
@invalid_attrs %{is_deleted: nil, account_id: nil}
... | 33.483871 | 91 | 0.710019 |
1cb12b4efbee5fafaac1ceff507106d4c7d6bfaa | 721 | ex | Elixir | lib/nostrum/api/base.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/api/base.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/api/base.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | defmodule Nostrum.Api.Base do
@moduledoc false
@version Nostrum.Mixfile.project()[:version]
use HTTPoison.Base
alias Nostrum.Constants
defp process_url(url) do
URI.encode(Constants.base_url() <> url)
end
defp process_request_body(""), do: ""
defp process_request_body({:multipart, _} = body), do... | 22.53125 | 94 | 0.687933 |
1cb14258513eca53180b3d143a08a5ac1a53740e | 3,200 | ex | Elixir | clients/double_click_search/lib/google_api/double_click_search/v2/api/saved_columns.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/api/saved_columns.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/api/saved_columns.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... | 43.243243 | 217 | 0.715 |
1cb14780b6e75aafb64ec5d89b3ecb17845896ca | 285 | ex | Elixir | lib/command.ex | gitter-badger/hades-1 | c080147ac70c21663046e28fbe4bf52ce6bda5c5 | [
"MIT"
] | 24 | 2020-02-07T18:16:00.000Z | 2022-02-27T01:23:26.000Z | lib/command.ex | AlexJuca/hades | b89bf525e511a78107dfca80b5b4705c7c31d6e2 | [
"MIT"
] | 4 | 2020-02-17T15:27:55.000Z | 2021-07-03T09:51:19.000Z | lib/command.ex | AlexJuca/hades | b89bf525e511a78107dfca80b5b4705c7c31d6e2 | [
"MIT"
] | 3 | 2020-02-14T15:12:42.000Z | 2020-03-19T13:22:20.000Z | defmodule Hades.Command do
@moduledoc false
alias Hades.ScanType
@type target :: binary
@type scan_types :: [ScanType.t()]
@type t :: %__MODULE__{
scan_types: scan_types,
target: target
}
defstruct target: "",
scan_types: []
end
| 16.764706 | 36 | 0.592982 |
1cb1512a60d7dc0ac6b53cd47078578cdb1a81a4 | 5,701 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_distinct_count_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_distinct_count_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_distinct_count_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.DistinctCountAggregationResult) do
@moduledoc false
(
defstruct(value: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
res... | 25.225664 | 94 | 0.483073 |
1cb1743787b81ccbaffe0ab4443a1ec6e88a6840 | 6,799 | ex | Elixir | lib/segment.ex | bruce/analytics-elixir | 1997f82272878da6fc9f1ecbcac87bd1fef82593 | [
"MIT"
] | null | null | null | lib/segment.ex | bruce/analytics-elixir | 1997f82272878da6fc9f1ecbcac87bd1fef82593 | [
"MIT"
] | null | null | null | lib/segment.ex | bruce/analytics-elixir | 1997f82272878da6fc9f1ecbcac87bd1fef82593 | [
"MIT"
] | null | null | null | defmodule Segment do
@moduledoc """
The Segement analytics-elixir is a non-official third-party client for [Segment](https://segment.com). Since version `0.2.0` it supports
batch delivery of events and retries for the API.
## Installation
Add `segment` to your list of dependencies in mix.exs
```
def de... | 37.772222 | 278 | 0.676423 |
1cb1950219f5d1078d52d19db90e73bd1668c9bd | 3,202 | exs | Elixir | test/timex_ecto_test.exs | agacode/timex_ecto | b18afd2b5b1d7cc0a62492bce56768f452bf452b | [
"MIT"
] | null | null | null | test/timex_ecto_test.exs | agacode/timex_ecto | b18afd2b5b1d7cc0a62492bce56768f452bf452b | [
"MIT"
] | null | null | null | test/timex_ecto_test.exs | agacode/timex_ecto | b18afd2b5b1d7cc0a62492bce56768f452bf452b | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Postgrex) do
defmodule EctoTest.Repo do
use Ecto.Repo, otp_app: :timex_ecto
end
defmodule EctoTest.User do
use Ecto.Schema
@timestamps_opts [type: Timex.Ecto.DateTime,
autogenerate: {Timex.Ecto.DateTime, :autogenerate, []}]
schema "users" do
fi... | 25.822581 | 124 | 0.615553 |
1cb1968904cbd73718624b6cdccc9eea3db9a2e0 | 4,219 | exs | Elixir | lib/mix/test/mix/config_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/test/mix/config_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/mix/test/mix/config_test.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.ConfigTest do
use MixTest.Case, async: true
doctest Mix.Config
import Mix.Config
setup do
Process.put({Mix.Config, :config}, [])
Process.put({Mix.Config, :files}, [])
:ok
end
defp config do
Process.get({Mix.Config, :config})
... | 31.962121 | 97 | 0.62977 |
1cb1a864f4e5c62c3ac3cd8065636d72232dbabd | 894 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.111111 | 74 | 0.761745 |
1cb1ac504f4ea31c3a16297f56c126ce21d375ce | 2,010 | ex | Elixir | apps/andi/lib/andi_web.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web.ex | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule AndiWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use AndiWeb, :controller
use AndiWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 23.372093 | 83 | 0.683582 |
1cb1af698f7d944a8e59ca889d09b985b57be06a | 283 | ex | Elixir | lib/hologram/compiler/transformers/list_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/transformers/list_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/transformers/list_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.ListTypeTransformer do
alias Hologram.Compiler.{Context, Transformer}
alias Hologram.Compiler.IR.ListType
def transform(ast, %Context{} = context) do
data = Enum.map(ast, &Transformer.transform(&1, context))
%ListType{data: data}
end
end
| 28.3 | 61 | 0.745583 |
1cb1e16fc4497a45ec97da0385c7599c0c16764b | 3,156 | ex | Elixir | lib/mazes_web/live/page_live.ex | angelikatyborska/mazes | cba3b1d6aaaa896f4ca505b477cf03b67523ebf0 | [
"MIT"
] | 116 | 2020-12-26T20:56:01.000Z | 2022-03-12T15:12:37.000Z | lib/mazes_web/live/page_live.ex | lohayon/mazes | 98a6276ea7440af938edfb14476a5877fdc295e1 | [
"MIT"
] | null | null | null | lib/mazes_web/live/page_live.ex | lohayon/mazes | 98a6276ea7440af938edfb14476a5877fdc295e1 | [
"MIT"
] | 10 | 2020-12-29T05:11:43.000Z | 2022-01-02T00:57:12.000Z | defmodule MazesWeb.PageLive do
use MazesWeb, :live_view
alias Mazes.{
RectangularMaze,
Settings,
Generate,
Mask
}
alias MazesWeb.PageView
def max_custom_mask_file_size() do
16_000
end
@impl true
def mount(_params, _session, socket) do
socket =
socket
|> assign(:se... | 23.552239 | 93 | 0.601077 |
1cb1e45dd0298718d739208e87cb7de7674d9d85 | 21,753 | exs | Elixir | test/groupher_server_web/query/cms/comments/job_comment_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/query/cms/comments/job_comment_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/query/cms/comments/job_comment_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Query.Comments.JobComment do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.CMS
setup do
{:ok, job} = db_insert(:job)
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
guest_conn = simu_conn(:guest)
user_conn = simu_conn(:use... | 33.569444 | 107 | 0.597435 |
1cb1e74f14c73dc0e1d6daa2a8ef8c6374c7bf0f | 2,744 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_condition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_condition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/service_condition.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... | 38.647887 | 134 | 0.699708 |
1cb1f5232483fe549564d72a977358e00d7ff9e8 | 3,756 | ex | Elixir | data/route/route_fr3.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/route/route_fr3.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/route/route_fr3.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Data.Route.RouteFR3 do
@behaviour Route.Behaviour
def id(), do: "FR3"
def type(), do: :freizeit
def color(), do: "#006106"
def name(), do: "Wandseradweg (FR3)"
def article(), do: "freizeitroute-3"
def osm_relation_ref(), do: "https://www.openstreetmap.org/relation/14910"
forward = %Video.Tra... | 46.95 | 84 | 0.62886 |
1cb1ff261bae1b60362862e7c510b363c1bbeab5 | 1,478 | ex | Elixir | lib/ex_admin/repo.ex | spunkedy/ex_admin | a576bead2a030f3dfe7abec0ff610809eb0db06f | [
"MIT"
] | 23 | 2018-04-10T07:45:48.000Z | 2019-12-31T01:11:07.000Z | lib/ex_admin/repo.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 115 | 2018-04-15T14:11:18.000Z | 2021-08-01T11:20:34.000Z | lib/ex_admin/repo.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 15 | 2018-10-04T19:09:00.000Z | 2020-06-25T16:02:30.000Z | defmodule ExAdmin.Repo do
@moduledoc false
require Logger
def repo, do: Application.get_env(:ex_admin, :repo)
def get_assoc_join_model(resource, field) when is_binary(field) do
get_assoc_join_model(resource, String.to_atom(field))
end
def get_assoc_join_model(resource, field) do
res_model = resou... | 23.460317 | 87 | 0.661028 |
1cb20f009b131658c9bc043dcaf1025e9ed12551 | 3,527 | ex | Elixir | web/controllers/instances_controller.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | 1 | 2017-09-20T23:46:35.000Z | 2017-09-20T23:46:35.000Z | web/controllers/instances_controller.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | web/controllers/instances_controller.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | defmodule PastryChefTest.InstancesController do
require OK
use PastryChefTest.Web, :controller
alias PastryChefTest.EC2, as: EC2
def instances(conn, _param) do
result = OK.with do
response <- EC2.fetch_ec2_instances_info()
instances_info = EC2.parse_instances_info(response)
IO.inspect ins... | 32.962617 | 117 | 0.612418 |
1cb21a283b4e17fe0a12b76468e5b5aad8a76b18 | 102 | exs | Elixir | apps/ex_wire/test/ex_wire/tcp/listener_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/ex_wire/test/ex_wire/tcp/listener_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/ex_wire/test/ex_wire/tcp/listener_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExWire.TCP.ListenerTest do
use ExUnit.Case, async: true
doctest ExWire.TCP.Listener
end
| 20.4 | 36 | 0.794118 |
1cb22930e25eb35a1e13f75dd13b2087ba163a69 | 2,585 | exs | Elixir | test/pets_test.exs | andyl/pets | 1b0f3b261c02116ec3c45aeb389483547527b09b | [
"MIT"
] | null | null | null | test/pets_test.exs | andyl/pets | 1b0f3b261c02116ec3c45aeb389483547527b09b | [
"MIT"
] | null | null | null | test/pets_test.exs | andyl/pets | 1b0f3b261c02116ec3c45aeb389483547527b09b | [
"MIT"
] | null | null | null | defmodule PetsTest do
use ExUnit.Case, async: true
setup do
sig = Pets.test_sig()
on_exit(fn -> Pets.cleanup(sig) end)
sig
end
describe "#start / #stop / #cleanup" do
test "creates a table", sig do
assert Pets.start(sig)
assert Pets.started?(sig)
assert File.exists?(sig.filep... | 26.649485 | 67 | 0.594584 |
1cb287d6756993cfe43dbe4103ad413f413c2fae | 12,283 | ex | Elixir | lib/aws/generated/app_runner.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/app_runner.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/app_runner.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.AppRunner do
@moduledoc """
AWS App Runner
AWS App Runner is an application service that provides a fast, simple, and
cost-effective way to go directly from an existing container image or... | 39.36859 | 144 | 0.736872 |
1cb2a7c1e53271b21a1dca933238a20eb2ac4fd3 | 248 | ex | Elixir | lib/livebook/evaluator/identity_formatter.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | 1 | 2021-05-21T22:14:23.000Z | 2021-05-21T22:14:23.000Z | lib/livebook/evaluator/identity_formatter.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:09:08.000Z | 2021-09-18T01:09:08.000Z | lib/livebook/evaluator/identity_formatter.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Evaluator.IdentityFormatter do
@moduledoc false
# The default formatter leaving the response unchanged.
@behaviour Livebook.Evaluator.Formatter
@impl true
def format(evaluation_response), do: evaluation_response
end
| 22.545455 | 58 | 0.806452 |
1cb2b16c74da1cb3fdc464c8483b96b153e35eb4 | 2,321 | ex | Elixir | apps/temp_monitor/lib/temp_monitor/sim_grill.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | 2 | 2016-09-22T13:32:35.000Z | 2017-02-17T20:26:50.000Z | apps/temp_monitor/lib/temp_monitor/sim_grill.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | apps/temp_monitor/lib/temp_monitor/sim_grill.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | defmodule TempMonitor.SimGrill do
alias TempMonitor.SimGrill
use GenServer
defstruct ambient: 82, # ambient temperature (minimum temperature for grill)
temperature: 82, # current temperature of the grill
sample_time: nil, # Timestamp at last sample (if any)
blower_is_on: false,... | 30.539474 | 89 | 0.721672 |
1cb2de7c7c05e1a8cea39cba890c888fa39f8966 | 1,258 | exs | Elixir | test/components/form/hidden_inputs_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/components/form/hidden_inputs_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/components/form/hidden_inputs_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.HiddenInputsTest do
use ExUnit.Case, async: true
alias Surface.Components.Form, warn: false
alias Surface.Components.Form.Inputs, warn: false
alias Surface.Components.Form.HiddenInputs, warn: false
import ComponentTestHelper
test "using generated form received as slot pr... | 26.208333 | 66 | 0.529412 |
1cb3058c0c3958523053c08e6591ec7933804ebf | 896 | ex | Elixir | questions/aggregates/00041250-fachoursbymonth.ex | zachvalenta/pgexercises | b16d5c28bb5e21732e6fb39090fa5902d0016e78 | [
"BSD-2-Clause"
] | 335 | 2015-02-09T09:21:34.000Z | 2022-03-30T12:28:18.000Z | questions/aggregates/00041250-fachoursbymonth.ex | zachvalenta/pgexercises | b16d5c28bb5e21732e6fb39090fa5902d0016e78 | [
"BSD-2-Clause"
] | 58 | 2015-05-12T03:10:54.000Z | 2021-11-27T15:53:36.000Z | questions/aggregates/00041250-fachoursbymonth.ex | zachvalenta/pgexercises | b16d5c28bb5e21732e6fb39090fa5902d0016e78 | [
"BSD-2-Clause"
] | 63 | 2015-03-18T18:15:56.000Z | 2022-02-23T07:27:46.000Z | |QUESTIONNAME|
List the total slots booked per facility in a given month
|QUESTION|
Produce a list of the total number of slots booked per facility in the month of September 2012. Produce an output table consisting of facility id and slots, sorted by the number of slots.
|QUERY|
select facid, sum(slots) as "Total Slot... | 38.956522 | 267 | 0.763393 |
1cb307ebf651fde9b7435f5883c13ca6c8e1fc1c | 6,913 | ex | Elixir | lib/grpc/adapter/cowboy.ex | brexhq/grpc-elixir | 2aff9a882b2309290b9522f1193c45bc40ef28ca | [
"Apache-2.0"
] | 2 | 2019-06-18T18:31:24.000Z | 2020-12-31T07:24:12.000Z | lib/grpc/adapter/cowboy.ex | brexhq/grpc-elixir | 2aff9a882b2309290b9522f1193c45bc40ef28ca | [
"Apache-2.0"
] | 4 | 2020-02-10T23:40:06.000Z | 2021-03-23T18:33:11.000Z | lib/grpc/adapter/cowboy.ex | brexhq/grpc-elixir | 2aff9a882b2309290b9522f1193c45bc40ef28ca | [
"Apache-2.0"
] | 7 | 2019-08-14T21:46:56.000Z | 2021-03-23T18:09:21.000Z | defmodule GRPC.Adapter.Cowboy do
@moduledoc false
# A server(`GRPC.Server`) adapter using Cowboy.
# Cowboy req will be stored in `:payload` of `GRPC.Server.Stream`.
# Waiting for this is released on hex https://github.com/ninenines/ranch/pull/227
@dialyzer {:nowarn_function, running_info: 4}
require Logg... | 29.926407 | 95 | 0.628381 |
1cb31624e1c40624157a29f3cd7d7f6467d26207 | 1,601 | ex | Elixir | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/connection.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/connection.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/connection.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.Addons.Connection do
@moduledoc """
Handle Tesla connections for Microsoft.Azure.Management.Preview.Addons.... | 23.544118 | 80 | 0.695815 |
1cb31d1f33c194682247d946f89ea8d110edc960 | 95 | exs | Elixir | channels/config/test.exs | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | channels/config/test.exs | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | channels/config/test.exs | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | import Config
config :plug_cowboy, :scheme, :http
config :plug_cowboy, :options, [port: 4001]
| 19 | 43 | 0.747368 |
1cb325823194e29607aef10c4524480857f2961e | 73 | exs | Elixir | test/views/layout_view_test.exs | nelsonblaha/yonder | 6ab708d742e967dec63146b27b30e570ae21911f | [
"CC0-1.0"
] | null | null | null | test/views/layout_view_test.exs | nelsonblaha/yonder | 6ab708d742e967dec63146b27b30e570ae21911f | [
"CC0-1.0"
] | null | null | null | test/views/layout_view_test.exs | nelsonblaha/yonder | 6ab708d742e967dec63146b27b30e570ae21911f | [
"CC0-1.0"
] | null | null | null | defmodule Yonder.LayoutViewTest do
use Yonder.ConnCase, async: true
end | 24.333333 | 34 | 0.821918 |
1cb333876db48ef5bff5d3e1201a9062f58966c2 | 874 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2020 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.37037 | 74 | 0.756293 |
1cb33657f61297c74800a337c0f9696d303dcd93 | 668 | ex | Elixir | lib/brando_admin/components/form/input/blocks/plus.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_admin/components/form/input/blocks/plus.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_admin/components/form/input/blocks/plus.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input.Blocks.Plus do
use Surface.Component
prop index, :integer
prop click, :event
def render(assigns) do
~F"""
<button
class="block-plus"
type="button"
phx-value-index={@index}
:on-click={@click}>
<svg
xmlns="http://www.w3.or... | 21.548387 | 89 | 0.528443 |
1cb392b9a3321b89a05633a33f228ac0d4f4ed90 | 467 | ex | Elixir | lib/impl.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/impl.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | lib/impl.ex | dennisxtria/exrabbitmq | 50705c5f42daedd6ce465662dd752f8c2f6895b2 | [
"MIT"
] | null | null | null | defmodule ExRabbitMQ.Impl.ConsumerGenServer do
@moduledoc false
use ExRabbitMQ.Consumer, GenServer
def xrmq_basic_deliver(_payload, _metadata, state), do: {:noreply, state}
end
defmodule ExRabbitMQ.Impl.ConsumerGenStage do
@moduledoc false
use ExRabbitMQ.Consumer, GenStage
def xrmq_basic_deliver(_paylo... | 21.227273 | 75 | 0.792291 |
1cb3ada8a63eb7b0e2401b9f0524bf3050cf586d | 2,109 | exs | Elixir | echo/config/dev.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 1 | 2021-09-14T01:52:42.000Z | 2021-09-14T01:52:42.000Z | echo/config/dev.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 1 | 2021-09-17T11:30:04.000Z | 2021-09-17T11:30:04.000Z | echo/config/dev.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 4 | 2021-09-14T00:04:39.000Z | 2021-09-15T15:14:52.000Z | use Mix.Config
# Configure your database
config :echo, Echo.Repo,
username: "postgres",
password: "postgres",
database: "echo_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The... | 27.38961 | 68 | 0.686581 |
1cb3c1cbc73bde0b131f94535e213e2fffd54efd | 1,360 | ex | Elixir | lib/cloak/otp/static.ex | roylez/cloak | 9205458be9055e7a93c7b2960824a28c9ad3ed87 | [
"MIT"
] | 51 | 2020-07-24T06:09:22.000Z | 2021-12-16T16:22:59.000Z | lib/cloak/otp/static.ex | roylez/cloak | 9205458be9055e7a93c7b2960824a28c9ad3ed87 | [
"MIT"
] | null | null | null | lib/cloak/otp/static.ex | roylez/cloak | 9205458be9055e7a93c7b2960824a28c9ad3ed87 | [
"MIT"
] | 15 | 2020-07-31T00:34:29.000Z | 2021-09-26T03:44:09.000Z | require Logger
defmodule Cloak.Static do
use GenServer
@config_file "/etc/cloak.yml"
@reload_interval 120_000
alias Cloak.Account
def init( _ ) do
accounts = _load_accounts()
Logger.info "Loaded #{length(accounts)} static accounts"
Enum.map(accounts, &Account.add/1)
Process.send_after(... | 25.185185 | 83 | 0.621324 |
1cb3c767cc905fa90914b140e5ca07865313a7bf | 886 | ex | Elixir | clients/firebase_ml/lib/google_api/firebase_ml/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_ml/lib/google_api/firebase_ml/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firebase_ml/lib/google_api/firebase_ml/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.814815 | 74 | 0.759594 |
1cb3c831aed81ef2c7b41352261e757a57d2893d | 466 | exs | Elixir | config/dev.exs | revelrylabs/review_bot_operator | 44b5ade1c2a7c3a18a1f7197e95b98402d4e9391 | [
"MIT"
] | null | null | null | config/dev.exs | revelrylabs/review_bot_operator | 44b5ade1c2a7c3a18a1f7197e95b98402d4e9391 | [
"MIT"
] | null | null | null | config/dev.exs | revelrylabs/review_bot_operator | 44b5ade1c2a7c3a18a1f7197e95b98402d4e9391 | [
"MIT"
] | null | null | null | use Mix.Config
config :k8s,
clusters: %{
minikube: %{
conn: "~/.kube/config"
}
}
config :bonny,
cluster_name: :minikube
config :review_app_operator,
docker_root: "grossvogel",
build_image: "grossvogel/sleep45:latest",
build_unpack_image: "grossvogel/sleep45:latest",
build_pull_secrets: []... | 21.181818 | 50 | 0.708155 |
1cb3d89ac3d4a35e5797910fc4c894ce95373b55 | 3,811 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/message.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/message.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/message.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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.804598 | 174 | 0.688008 |
1cb3dbc5f5368eb60f3f8c4f8a54fa188919aea5 | 330 | exs | Elixir | mix.exs | pulitta/pke | b4227adb4ff992a9a818d280ac033091ccda123e | [
"MIT"
] | null | null | null | mix.exs | pulitta/pke | b4227adb4ff992a9a818d280ac033091ccda123e | [
"MIT"
] | null | null | null | mix.exs | pulitta/pke | b4227adb4ff992a9a818d280ac033091ccda123e | [
"MIT"
] | null | null | null | defmodule Pke.Mixfile do
use Mix.Project
def project do
[app: :pke,
version: "0.0.1",
elixir: "~> 1.2",
escript: [main_module: Pke],
erlc_paths: ["test"], # <- Erlang source files
deps: deps]
end
def application do
[applications: [:logger]]
end
defp deps do
[]
... | 15.714286 | 58 | 0.563636 |
1cb3f49c3e881c7988f346ac95d04c6d4fefe60a | 181 | ex | Elixir | ch3_control_flow/natural_nums.ex | arilsonsouza/elixir-in-action | 8684605dac35717003c76f85c0b55f0336147963 | [
"MIT"
] | null | null | null | ch3_control_flow/natural_nums.ex | arilsonsouza/elixir-in-action | 8684605dac35717003c76f85c0b55f0336147963 | [
"MIT"
] | null | null | null | ch3_control_flow/natural_nums.ex | arilsonsouza/elixir-in-action | 8684605dac35717003c76f85c0b55f0336147963 | [
"MIT"
] | null | null | null | defmodule NaturalNums do
@moduledoc """
Printing the first n natural numbers
"""
def print(1), do: IO.puts(1)
def print(n) do
print(n - 1)
IO.puts(n)
end
end
| 15.083333 | 40 | 0.61326 |
1cb400780e4bcbf62d3ae7dff2fb5fcf2f4e1693 | 509 | ex | Elixir | elixir/lib/homework_web/schema.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schema.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schema.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schema do
@moduledoc """
Defines the graphql schema for this project.
"""
use Absinthe.Schema
import_types(HomeworkWeb.Schemas.Types)
query do
import_fields(:company_queries)
import_fields(:merchant_queries)
import_fields(:transaction_queries)
import_fields(:user_queri... | 23.136364 | 46 | 0.762279 |
1cb40f462fc5accfa726ffb927359b6d070bb762 | 2,583 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/bigtable_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bigtable_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/bigtable_options.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... | 49.673077 | 562 | 0.768873 |
1cb42fb268067588ce81a8f1e5a0c78aac44068e | 759 | exs | Elixir | test/aoc2021/day6_test.exs | jarimatti/aoc-2021 | 02ea9a8137617d0a43f46a5cfe589d69572b653e | [
"MIT"
] | null | null | null | test/aoc2021/day6_test.exs | jarimatti/aoc-2021 | 02ea9a8137617d0a43f46a5cfe589d69572b653e | [
"MIT"
] | null | null | null | test/aoc2021/day6_test.exs | jarimatti/aoc-2021 | 02ea9a8137617d0a43f46a5cfe589d69572b653e | [
"MIT"
] | null | null | null | defmodule Aoc2021.Day6Test do
use ExUnit.Case, async: true
doctest Aoc2021.Day6
alias Aoc2021.Day6
test "part 1 solution should be correct with test data" do
assert Day6.solve_part1("priv/day6/test-input.txt") == 5934
end
test "part 1 solution should be correct" do
assert Day6.solve_part1("priv/d... | 28.111111 | 73 | 0.725955 |
1cb43360c936fddb7fcb543cfb2ced8889190eec | 1,678 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_merchant_provided_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/order_merchant_provided_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_merchant_provided_annotation.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 ... | 33.56 | 146 | 0.73242 |
1cb45368d91389f9e899a44d541f193a02b9da58 | 568 | exs | Elixir | 1_streaming_computation/words/mix.exs | NikolaiIvanov/advanced-elixir-and-otp | 93a1ae80fc1bf8684adbbdb48dc92b564abd204a | [
"MIT"
] | 1 | 2022-02-14T09:08:35.000Z | 2022-02-14T09:08:35.000Z | 1_streaming_computation/words/mix.exs | NikolaiIvanov/advanced-elixir-and-otp | 93a1ae80fc1bf8684adbbdb48dc92b564abd204a | [
"MIT"
] | null | null | null | 1_streaming_computation/words/mix.exs | NikolaiIvanov/advanced-elixir-and-otp | 93a1ae80fc1bf8684adbbdb48dc92b564abd204a | [
"MIT"
] | null | null | null | defmodule Words.MixProject do
use Mix.Project
def project do
[
app: :words,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 19.586207 | 87 | 0.573944 |
1cb4781bfea66b7122d89e5920c2b75e1fe0b3f6 | 1,595 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/activity_object_actor_client_specific_actor_info_youtube_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/lib/google_api/plus/v1/model/activity_object_actor_client_specific_actor_info_youtube_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/lib/google_api/plus/v1/model/activity_object_actor_client_specific_actor_info_youtube_actor_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.673077 | 104 | 0.751724 |
1cb47dc8ee1b10d41deb849628c91d137fa69bab | 795 | exs | Elixir | mix.exs | ararog/MoneyBOT | b49ad958b9ae6bb0cf712827dde235c2cac4e7e0 | [
"Apache-2.0"
] | 2 | 2015-04-23T17:59:13.000Z | 2015-04-24T18:21:25.000Z | mix.exs | ararog/MoneyBOT | b49ad958b9ae6bb0cf712827dde235c2cac4e7e0 | [
"Apache-2.0"
] | null | null | null | mix.exs | ararog/MoneyBOT | b49ad958b9ae6bb0cf712827dde235c2cac4e7e0 | [
"Apache-2.0"
] | null | null | null | defmodule MoneyBOT.Mixfile do
use Mix.Project
def project do
[app: :moneybot,
version: "0.0.2",
elixir: "~> 1.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[
mod: { MoneyBOT, [] },
ap... | 19.875 | 77 | 0.533333 |
1cb4895d77d732d1a0d1991f29f27ad9effd72d1 | 1,027 | ex | Elixir | wadm/lib/wadm/deployments/lattice_monitor.ex | wasmCloud/lattice-controller | f965ee6ed367904d5efe3bd7475a4e24ea578254 | [
"Apache-2.0"
] | 2 | 2021-08-31T12:55:58.000Z | 2021-09-04T13:20:22.000Z | wadm/lib/wadm/deployments/lattice_monitor.ex | wasmCloud/lattice-controller | f965ee6ed367904d5efe3bd7475a4e24ea578254 | [
"Apache-2.0"
] | 5 | 2021-08-30T13:49:49.000Z | 2021-09-27T18:45:00.000Z | wadm/lib/wadm/deployments/lattice_monitor.ex | wasmCloud/lattice-controller | f965ee6ed367904d5efe3bd7475a4e24ea578254 | [
"Apache-2.0"
] | 1 | 2021-08-31T13:10:34.000Z | 2021-08-31T13:10:34.000Z | defmodule Wadm.Deployments.LatticeMonitor do
use GenServer
require Logger
import Wadm.Deployments.DeploymentMonitor, only: [via_tuple: 1]
@spec start_link(Map.t()) :: GenServer.on_start()
def start_link(opts) do
case GenServer.start_link(__MODULE__, opts, name: via_tuple(opts.lattice_prefix)) do
{... | 27.756757 | 88 | 0.666991 |
1cb48f1a275dbc9f9d5ae61d020d60db10bd17c2 | 2,455 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/third_party_verifier_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/third_party_verifier_assigned_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/third_party_verifier_assigned_targeting_option_details.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... | 42.327586 | 193 | 0.758859 |
1cb4ee7e622266d32c3bf5e28fe12f3fae56ed91 | 17,167 | exs | Elixir | test/ex_platform/accounts_test.exs | alex-min/ex_platform | 73dea336ee939d8155b4b5953146351af30edd66 | [
"MIT"
] | 129 | 2021-05-30T10:10:59.000Z | 2022-03-27T14:42:48.000Z | test/ex_platform/accounts_test.exs | alex-min/ex_platform | 73dea336ee939d8155b4b5953146351af30edd66 | [
"MIT"
] | 48 | 2021-05-30T21:34:03.000Z | 2022-02-21T14:20:04.000Z | test/ex_platform/accounts_test.exs | alex-min/ex_platform | 73dea336ee939d8155b4b5953146351af30edd66 | [
"MIT"
] | 12 | 2021-05-30T22:03:49.000Z | 2022-02-08T19:59:16.000Z | defmodule ExPlatform.AccountsTest do
use ExPlatform.DataCase
alias ExPlatform.Accounts
import ExPlatform.AccountsFixtures
alias ExPlatform.Accounts.{User, UserToken}
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
refute Accounts.get_user_by_email("... | 33.926877 | 97 | 0.659638 |
1cb4f19188b472e3039d4e24b14716cea22daf1a | 2,380 | exs | Elixir | test/models/blog_post_test.exs | codebender/5280elixir | f7dee84b785b70f61b44f4dccacfe0311ad39617 | [
"MIT"
] | null | null | null | test/models/blog_post_test.exs | codebender/5280elixir | f7dee84b785b70f61b44f4dccacfe0311ad39617 | [
"MIT"
] | null | null | null | test/models/blog_post_test.exs | codebender/5280elixir | f7dee84b785b70f61b44f4dccacfe0311ad39617 | [
"MIT"
] | null | null | null | defmodule Elixir5280.BlogPostTest do
use Elixir5280.ModelCase
alias Elixir5280.BlogPost
test "lists all blog posts with basic info" do
assert length(BlogPost.all) > 1
assert List.last(BlogPost.all) == %{
author: "Matthew Bender", created_at: "2015-01-01",
id: "2015-01-01-yet-another-blog",
... | 82.068966 | 1,597 | 0.731092 |
1cb4f9979cbbe4d461f2dc42e21e0cf53b42f212 | 289 | ex | Elixir | lib/cgrates_web_jsonapi_web/views/raw_supplier_rate_view.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi_web/views/raw_supplier_rate_view.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi_web/views/raw_supplier_rate_view.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.RawSupplierRateView do
use CgratesWebJsonapiWeb, :view
use JaSerializer.PhoenixView
attributes([:rate, :supplier_name, :prefix, :description, :inserted_at, :updated_at])
has_one :tariff_plan,
field: :tariff_plan_id,
type: "tariff_plan"
end
| 26.272727 | 87 | 0.771626 |
1cb507c6979affc2a06755281650d2dd2f67762e | 84 | ex | Elixir | frameworks/phoenix_benchmark/lib/phoenix_benchmark/repo.ex | serv/framework-benchmarks | a2a15d112fb56eb7aaa676874853a26c55243817 | [
"MIT"
] | null | null | null | frameworks/phoenix_benchmark/lib/phoenix_benchmark/repo.ex | serv/framework-benchmarks | a2a15d112fb56eb7aaa676874853a26c55243817 | [
"MIT"
] | null | null | null | frameworks/phoenix_benchmark/lib/phoenix_benchmark/repo.ex | serv/framework-benchmarks | a2a15d112fb56eb7aaa676874853a26c55243817 | [
"MIT"
] | null | null | null | defmodule PhoenixBenchmark.Repo do
use Ecto.Repo, otp_app: :phoenix_benchmark
end
| 21 | 44 | 0.821429 |
1cb50d283566f5281d159ccfbea61415f647d617 | 507 | ex | Elixir | lib/bugsnag/http_client.ex | noozo/bugsnag-elixir | 5bfe5a6545c950b69ed93a8d7ea85f3685a72ff7 | [
"MIT"
] | 73 | 2015-01-03T14:55:25.000Z | 2020-05-02T21:26:59.000Z | lib/bugsnag/http_client.ex | noozo/bugsnag-elixir | 5bfe5a6545c950b69ed93a8d7ea85f3685a72ff7 | [
"MIT"
] | 79 | 2015-05-03T19:18:56.000Z | 2020-06-15T12:10:42.000Z | lib/bugsnag/http_client.ex | noozo/bugsnag-elixir | 5bfe5a6545c950b69ed93a8d7ea85f3685a72ff7 | [
"MIT"
] | 74 | 2015-03-29T02:18:02.000Z | 2020-06-24T09:28:36.000Z | defmodule Bugsnag.HTTPClient do
@moduledoc """
A Behavior defining an HTTP Client for Bugsnag
"""
alias Bugsnag.HTTPClient.Adapters.HTTPoison
alias Bugsnag.HTTPClient.Request
alias Bugsnag.HTTPClient.Response
@type success :: {:ok, Response.t()}
@type failure :: {:error, reason :: any()}
@callback po... | 24.142857 | 58 | 0.70217 |
1cb51a11354fb293f8d812b14189a2f340c6a21a | 3,097 | ex | Elixir | clients/network_security/lib/google_api/network_security/v1/model/google_iam_v1_audit_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_security/lib/google_api/network_security/v1/model/google_iam_v1_audit_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_security/lib/google_api/network_security/v1/model/google_iam_v1_audit_config.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 56.309091 | 1,106 | 0.749112 |
1cb547f7a880035bdb7a0431d20c611d27824921 | 1,079 | exs | Elixir | test/integration/explain_test.exs | starbelly/credo | 7ca19dd06ba20f74763beda269ab2e3fde2144a4 | [
"MIT"
] | null | null | null | test/integration/explain_test.exs | starbelly/credo | 7ca19dd06ba20f74763beda269ab2e3fde2144a4 | [
"MIT"
] | null | null | null | test/integration/explain_test.exs | starbelly/credo | 7ca19dd06ba20f74763beda269ab2e3fde2144a4 | [
"MIT"
] | null | null | null | defmodule Credo.ExplainTest do
use Credo.Test.Case
@moduletag slow: :integration
@fixture_example_code_with_location "test/fixtures/example_code/clean_redux.ex:1:11"
test "it should explain an issue using a filename with location" do
exec = Credo.CLI.run([@fixture_example_code_with_location])
_issues... | 30.828571 | 86 | 0.714551 |
1cb55ef59e88d003fc871f26d8a92468f30a2a9b | 505 | ex | Elixir | lib/kanban_liveview_web/views/error_view.ex | ivangsm/kanban_live | 1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9 | [
"MIT"
] | null | null | null | lib/kanban_liveview_web/views/error_view.ex | ivangsm/kanban_live | 1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9 | [
"MIT"
] | null | null | null | lib/kanban_liveview_web/views/error_view.ex | ivangsm/kanban_live | 1dbbdaf3bf8dbaa4261a981e36c90088de02bbe9 | [
"MIT"
] | null | null | null | defmodule KanbanLiveviewWeb.ErrorView do
use KanbanLiveviewWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the... | 29.705882 | 61 | 0.742574 |
1cb572137a0a58731c8d78a39dd0e12ab19527d9 | 344 | exs | Elixir | lib/p02.exs | ospatil/99problems | 4a5d3a3983ea07109f84870d82ccfd7d967858da | [
"MIT"
] | 2 | 2016-07-18T02:53:37.000Z | 2019-06-25T10:31:11.000Z | lib/p02.exs | ospatil/99problems | 4a5d3a3983ea07109f84870d82ccfd7d967858da | [
"MIT"
] | null | null | null | lib/p02.exs | ospatil/99problems | 4a5d3a3983ea07109f84870d82ccfd7d967858da | [
"MIT"
] | null | null | null | defmodule P2 do
# Problem 2 - Find the last but one element of a list.
def last_but_one([a, _]), do: a
def last_but_one([ _ | tail]), do: last_but_one(tail)
end
ExUnit.start()
defmodule P2Test do
use ExUnit.Case
test "P2.last_but_one" do
assert P2.last_but_one([1, 2, 3]) == 2
assert P2.last_but_one... | 20.235294 | 56 | 0.659884 |
1cb583fcda792d4ead060fa0855a258ecf4a99f7 | 77,493 | ex | Elixir | lib/google_api/storage/v1/api/objects.ex | jamesvl/gcs_elixir_api | fd7e0f4a7e2e07f40e01822b4c9e09cfd4922d52 | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/objects.ex | jamesvl/gcs_elixir_api | fd7e0f4a7e2e07f40e01822b4c9e09cfd4922d52 | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/objects.ex | jamesvl/gcs_elixir_api | fd7e0f4a7e2e07f40e01822b4c9e09cfd4922d52 | [
"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... | 59.932715 | 529 | 0.659763 |
1cb5c1a0215113dc452f2672e1e95fa7d1c604e8 | 1,926 | exs | Elixir | apps/ello_core/test/ello_core/contest_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_core/test/ello_core/contest_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_core/test/ello_core/contest_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Core.ContestTest do
use Ello.Core.Case
alias Ello.Core.Contest
alias Ello.Core.Repo
setup do
Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()})
invite = Factory.insert(:artist_invite, %{status: "open"})
approved = Factory.insert_list(4, :artist_invite_submission, %{
artis... | 27.514286 | 79 | 0.617861 |
1cb601514c10a4044b2c2b18f4bf96f4636cd6bd | 392 | ex | Elixir | lib/hex/registry.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | lib/hex/registry.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:19:59.000Z | 2021-06-25T15:19:59.000Z | lib/hex/registry.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | defmodule Hex.Registry do
@type repo :: String.t()
@type package :: String.t()
@type version :: String.t()
@type requirement :: String.t()
@type app :: String.t()
@type optional :: boolean
@callback prefetch([{repo, package}]) :: :ok
@callback versions(repo, package) :: [version]
@callback deps(repo,... | 30.153846 | 89 | 0.655612 |
1cb60166ec944f70653a4becf2b463a8f43c65e6 | 2,766 | ex | Elixir | lib/cotoami/models/cotonoma.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | lib/cotoami/models/cotonoma.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | lib/cotoami/models/cotonoma.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | defmodule Cotoami.Cotonoma do
@moduledoc """
コトの間 (Cotonoma) is a space for chatting and weaving Cotos.
"""
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query, warn: false
import Cotoami.Helpers
alias Cotoami.Amishi
@key_length 10
@name_max_length 50
@primary_key {:id, :binary_id, autogene... | 26.854369 | 104 | 0.66269 |
1cb634bfea59e6b65b4ffdded81f23cce03d729f | 126 | ex | Elixir | episode-024/web/views/page_view.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 84 | 2016-07-02T05:21:36.000Z | 2021-02-12T22:45:45.000Z | episode-023/web/views/page_view.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 3 | 2016-07-02T06:03:47.000Z | 2017-06-03T14:11:06.000Z | episode-023/web/views/page_view.ex | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 6 | 2017-02-16T19:33:49.000Z | 2019-04-05T19:27:17.000Z | defmodule ElmIsFun.PageView do
use ElmIsFun.Web, :view
def render("large.json", assigns) do
assigns[:text]
end
end
| 15.75 | 38 | 0.706349 |
1cb642ca0fea71598b09ff7da0a34b38e3563fd8 | 482 | exs | Elixir | apps/re/priv/repo/migrations/20190606191418_create_tag_development_relation.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20190606191418_create_tag_development_relation.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20190606191418_create_tag_development_relation.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.CreateTagDevelopmentRelation do
use Ecto.Migration
def change do
create table(:developments_tags, primary_key: false) do
add :development_uuid, references(:developments, column: :uuid, type: :uuid),
primary_key: true
add :tag_uuid, references(:tags, column: :uu... | 28.352941 | 85 | 0.717842 |
1cb64f427dca96e649f12719734787ee64bdbe2e | 1,929 | ex | Elixir | clients/search_console/lib/google_api/search_console/v1/model/api_dimension_filter_group.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/search_console/lib/google_api/search_console/v1/model/api_dimension_filter_group.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/search_console/lib/google_api/search_console/v1/model/api_dimension_filter_group.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.58 | 264 | 0.744946 |
1cb651d5c6662fe6911449e102ed00700f25d128 | 1,571 | ex | Elixir | lib/solverview_web/endpoint.ex | bokner/solverlview | 52a527bc653619fd35977d951b36207ba0ebd9cc | [
"MIT"
] | 10 | 2020-09-18T19:26:51.000Z | 2021-07-08T19:26:00.000Z | lib/solverview_web/endpoint.ex | bokner/solverview | 52a527bc653619fd35977d951b36207ba0ebd9cc | [
"MIT"
] | null | null | null | lib/solverview_web/endpoint.ex | bokner/solverview | 52a527bc653619fd35977d951b36207ba0ebd9cc | [
"MIT"
] | null | null | null | defmodule SolverViewWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :solverview
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_sol... | 29.092593 | 97 | 0.719924 |
1cb65337895277f9ccdfaadebe1ac3058d2c4230 | 26 | ex | Elixir | 02-chapter/01_checkout.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | 1 | 2022-03-01T13:54:43.000Z | 2022-03-01T13:54:43.000Z | 02-chapter/01_checkout.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | null | null | null | 02-chapter/01_checkout.ex | herminiotorres/learn-funcional-programming-with-elixir | 01b0696e0859da20f389a6e53c51b5ab6c4f6e24 | [
"MIT"
] | null | null | null | defmodule Checkout do
end
| 8.666667 | 21 | 0.846154 |
1cb654f5364c7a623563acd299df9e1d9b4048a0 | 4,650 | ex | Elixir | debian/manpage.sgml.ex | cristian-97/xtest | 7f4d052096de6c87aed760d971343479efad3a4c | [
"MIT"
] | null | null | null | debian/manpage.sgml.ex | cristian-97/xtest | 7f4d052096de6c87aed760d971343479efad3a4c | [
"MIT"
] | null | null | null | debian/manpage.sgml.ex | cristian-97/xtest | 7f4d052096de6c87aed760d971343479efad3a4c | [
"MIT"
] | null | null | null | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Ma... | 30 | 75 | 0.657634 |
1cb69bd8aedc7b8e5ffd35fc64e72db7c6a16d1a | 1,275 | exs | Elixir | mix.exs | leandrocp/phoenix-liveview-collection | fc4547e7f4b94d96d42ce823b02591e54dc52507 | [
"MIT"
] | 32 | 2019-04-01T02:39:49.000Z | 2020-12-04T02:57:01.000Z | mix.exs | leandrocp/phoenix-liveview-collection | fc4547e7f4b94d96d42ce823b02591e54dc52507 | [
"MIT"
] | 13 | 2020-03-29T19:40:34.000Z | 2021-12-06T22:18:02.000Z | mix.exs | leandrocp/phoenix-liveview-collection | fc4547e7f4b94d96d42ce823b02591e54dc52507 | [
"MIT"
] | 4 | 2019-08-01T16:21:16.000Z | 2020-04-01T17:39:10.000Z | defmodule LiveViewCollection.MixProject do
use Mix.Project
def project do
[
app: :live_view_collection,
version: "0.1.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
... | 25.5 | 57 | 0.56549 |
1cb6c1dd0afec4cedb72cf9f4f0994ddc41f3506 | 4,252 | exs | Elixir | test/mix/tasks/hex.organization_test.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/hex.organization_test.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:19:59.000Z | 2021-06-25T15:19:59.000Z | test/mix/tasks/hex.organization_test.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.OrganizationTest do
use HexTest.Case
@moduletag :integration
test "auth" do
in_tmp(fn ->
Hex.State.put(:home, System.cwd!())
auth = Hexpm.new_user("orgauth", "orgauth@mail.com", "password", "orgauth")
Hexpm.new_repo("myorgauth", auth)
Mix.Tasks.Hex.update_keys(... | 33.746032 | 98 | 0.627234 |
1cb6c54e302ff2ecbacf598aa26a2fca1c97cd30 | 2,410 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/result_set_stats.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/result_set_stats.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/result_set_stats.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.076923 | 141 | 0.69834 |
1cb6e181b174096fcf0c407c3d561f84ff73e613 | 154 | ex | Elixir | lib/vispana/models/vespa_cluster/schema.ex | vispana/vispana | 56ecb821938b78bfb83cf14748afaf0e400870b9 | [
"MIT"
] | 30 | 2022-02-16T13:02:14.000Z | 2022-03-24T12:47:35.000Z | lib/vispana/models/vespa_cluster/schema.ex | vispana/vispana | 56ecb821938b78bfb83cf14748afaf0e400870b9 | [
"MIT"
] | 5 | 2022-02-16T02:21:01.000Z | 2022-03-13T09:29:56.000Z | lib/vispana/models/vespa_cluster/schema.ex | vispana/vispana | 56ecb821938b78bfb83cf14748afaf0e400870b9 | [
"MIT"
] | null | null | null | defmodule Vispana.Cluster.Schema do
@enforce_keys [:schemaName, :docCount, :docCountByGroup]
defstruct [:schemaName, :docCount, :docCountByGroup]
end
| 30.8 | 58 | 0.785714 |
1cb6eafa8dac6b7461c3238be1f9860fc041cb2e | 8,856 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/change_logs.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/change_logs.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/change_logs.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... | 50.318182 | 446 | 0.639002 |
1cb6ed5fe13052d9ad5e08bba17787c02864b508 | 2,809 | ex | Elixir | robotica_common/lib/buttons/switch.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_common/lib/buttons/switch.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_common/lib/buttons/switch.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaCommon.Buttons.Switch do
@moduledoc """
Switch Buttons
"""
use RoboticaCommon.EventBus
@behaviour RoboticaCommon.Buttons
alias RoboticaCommon.Buttons
alias RoboticaCommon.Buttons.Config
@type state :: String.t() | nil
@spec get_topics(Config.t()) :: list({list(String.t()), atom(),... | 31.561798 | 85 | 0.657885 |
1cb7005c666a8eec40f9ccbefe34f174ac0dfc6a | 1,191 | exs | Elixir | clients/cloud_run/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.CloudRun.V1alpha1.Mixfile do
use Mix.Project
@version "0.7.0"
def project do
[app: :google_api_cloud_run,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package()... | 24.306122 | 109 | 0.600336 |
1cb714e32a3d9f36d57b85891a77c8677a39e553 | 5,007 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/message.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/chat/lib/google_api/chat/v1/model/message.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/message.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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... | 56.258427 | 284 | 0.686239 |
1cb73305b57f9146f45ebcd795da6ce365a1299b | 5,595 | exs | Elixir | test/plugs/authentication/session_test.exs | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | 2 | 2018-01-19T06:12:16.000Z | 2018-03-12T07:17:17.000Z | test/plugs/authentication/session_test.exs | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | test/plugs/authentication/session_test.exs | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | 1 | 2019-09-11T10:21:21.000Z | 2019-09-11T10:21:21.000Z | defmodule CoherenceTest.Plug.Session do
use ExUnit.Case, async: true
use Plug.Test
alias Coherence.Authentication.Session
alias Coherence.{Config}
alias TestCoherence.{User, Coherence.Rememberable}
require Ecto.Query
@default_opts [
store: :cookie,
key: "_test",
encryption_salt: "abcdefgh",
... | 32.911765 | 154 | 0.666488 |
1cb7350ccd12c078f194cc28b5b1a207133eba14 | 6,563 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/object_conditions.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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... | 105.854839 | 1,328 | 0.770227 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.