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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08eb3a78136570ee72cceb17fc0b0791cb721519 | 4,038 | exs | Elixir | test/game/session/create_account_test.exs | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | test/game/session/create_account_test.exs | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | test/game/session/create_account_test.exs | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Game.Session.CreateAccountTest do
use ExUnit.Case
use Data.ModelCase
use Networking.SocketCase
alias Game.Session.CreateAccount
setup do
human = create_race()
fighter = create_class()
%{race: human, class: fighter}
end
test "start creating an account by entering a name", %{socket:... | 40.38 | 137 | 0.665676 |
08eb3bf603dc9818e5ade4a44f0264a0d5a14952 | 420 | ex | Elixir | lib/blockfrost/response/cardano/assets/asset_addresses_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | lib/blockfrost/response/cardano/assets/asset_addresses_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | lib/blockfrost/response/cardano/assets/asset_addresses_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Response.AssetAddressesResponse do
use Blockfrost.Response.BaseSchema
defmodule AssetAddress do
use Blockfrost.Response.BaseSchema
embedded_schema do
field(:address, :string)
field(:quantity, :string)
end
end
@type t :: [%AssetAddress{address: String.t(), quantity... | 21 | 71 | 0.707143 |
08eb5170db9acd8138ae752b42b146ad2eb6d50d | 9,119 | ex | Elixir | apps/astarte_pairing/lib/astarte_pairing/queries.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 3 | 2018-02-02T14:06:57.000Z | 2019-01-11T00:50:40.000Z | apps/astarte_pairing/lib/astarte_pairing/queries.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 6 | 2019-11-15T15:58:56.000Z | 2019-12-05T16:49:04.000Z | apps/astarte_pairing/lib/astarte_pairing/queries.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 1 | 2018-07-09T16:08:07.000Z | 2018-07-09T16:08:07.000Z | #
# This file is part of Astarte.
#
# Copyright 2017-2018 Ispirata Srl
#
# 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... | 29.898361 | 111 | 0.672771 |
08eb522ad9c50b48886ad82b9c9cbe0c96035415 | 1,519 | ex | Elixir | clients/iap/lib/google_api/iap/v1/model/test_iam_permissions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/iap/lib/google_api/iap/v1/model/test_iam_permissions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/iap/lib/google_api/iap/v1/model/test_iam_permissions_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... | 32.319149 | 143 | 0.743252 |
08eb5ba09effff744e2f2e91e7de77dc6e9ff404 | 417 | exs | Elixir | test/slurpee_web/views/error_view_test.exs | fremantle-industries/slurpee | e4c36130f96d266ca7ec115577b366f4531c6f29 | [
"MIT"
] | 15 | 2021-03-24T07:46:34.000Z | 2022-02-16T19:09:58.000Z | test/slurpee_web/views/error_view_test.exs | fremantle-industries/slurpee | e4c36130f96d266ca7ec115577b366f4531c6f29 | [
"MIT"
] | 30 | 2021-03-22T23:31:56.000Z | 2022-03-01T00:17:50.000Z | test/slurpee_web/views/error_view_test.exs | fremantle-industries/slurpee | e4c36130f96d266ca7ec115577b366f4531c6f29 | [
"MIT"
] | 1 | 2021-09-18T23:00:57.000Z | 2021-09-18T23:00:57.000Z | defmodule SlurpeeWeb.ErrorViewTest do
use SlurpeeWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(SlurpeeWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
as... | 27.8 | 92 | 0.733813 |
08eb776d8dd39decfb764d1e758b45de445932dd | 2,198 | exs | Elixir | test/exdns/storage_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 16 | 2016-05-26T10:11:57.000Z | 2021-01-08T15:09:19.000Z | test/exdns/storage_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 9 | 2016-08-11T00:48:27.000Z | 2020-09-16T22:10:07.000Z | test/exdns/storage_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 11 | 2016-08-10T08:13:36.000Z | 2021-04-03T10:20:11.000Z | defmodule Exdns.StorageTest do
use ExUnit.Case, async: false
test "create" do
assert Exdns.Storage.create(:test) == :ok
end
test "insert" do
Exdns.Storage.create(:test)
assert Exdns.Storage.insert(:test, {:key, :value})
assert :ets.lookup(:test, :key) == [key: :value]
end
test "delete tab... | 30.109589 | 99 | 0.639672 |
08eb7c456efd7dbcf42bb4279bc14d789be55993 | 1,023 | ex | Elixir | data/web/test/support/channel_case.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/test/support/channel_case.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/test/support/channel_case.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule TrainsElixir.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot... | 23.25 | 74 | 0.707722 |
08eb9240a89eb5b707ce02755fca62123b53550f | 3,078 | exs | Elixir | mix.exs | hippware/wocky_queue | 45e7121245525763fb4ca90cb22d476a55eaa952 | [
"MIT"
] | 12 | 2019-08-30T19:10:54.000Z | 2022-03-19T13:53:19.000Z | mix.exs | hippware/wocky_queue | 45e7121245525763fb4ca90cb22d476a55eaa952 | [
"MIT"
] | 19 | 2019-03-06T17:28:11.000Z | 2020-02-18T17:00:28.000Z | mix.exs | hippware/wocky_queue | 45e7121245525763fb4ca90cb22d476a55eaa952 | [
"MIT"
] | 2 | 2019-12-17T12:51:20.000Z | 2021-10-14T18:21:02.000Z | defmodule DawdleDB.MixProject do
use Mix.Project
@version "0.7.3"
def project do
[
app: :dawdle_db,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
aliases: aliases(),
package: pa... | 26.765217 | 75 | 0.539311 |
08ebcb890c3b239c316932a5e4b702392c484768 | 838 | exs | Elixir | test/lob/us_verification_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | 11 | 2018-02-07T17:59:17.000Z | 2021-11-21T14:11:15.000Z | test/lob/us_verification_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | 34 | 2018-02-13T19:59:27.000Z | 2022-03-02T19:50:41.000Z | test/lob/us_verification_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | 8 | 2019-01-30T00:39:36.000Z | 2022-03-01T15:32:17.000Z | defmodule Lob.USVerificationTest do
use ExUnit.Case
alias Lob.USVerification
setup do
%{
sample_address: %{
recipient: "LOB.COM",
primary_line: "185 BERRY ST STE 6600",
city: "SAN FRANCISCO",
state: "CA",
zip_code: "94107"
}
}
end
describe "verify... | 27.032258 | 132 | 0.673031 |
08ebddc181c2ac2297aad6c071aad638bf002f74 | 2,018 | exs | Elixir | mix.exs | Dhall777/systemstats | 380426af8fc898521201311b11881cc8d2db3388 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | Dhall777/systemstats | 380426af8fc898521201311b11881cc8d2db3388 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | Dhall777/systemstats | 380426af8fc898521201311b11881cc8d2db3388 | [
"BSD-3-Clause"
] | null | null | null | defmodule Systemstats.MixProject do
use Mix.Project
def project do
[
app: :systemstats,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliase... | 28.828571 | 84 | 0.574827 |
08ebe004f20f0c0aa1d6990199535a045918a993 | 3,843 | ex | Elixir | lib/dynamo/router/utils.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 1 | 2017-09-09T21:00:14.000Z | 2017-09-09T21:00:14.000Z | lib/dynamo/router/utils.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | null | null | null | lib/dynamo/router/utils.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | null | null | null | defexception Dynamo.Router.InvalidSpecError, message: "invalid route specification"
defmodule Dynamo.Router.Utils do
@moduledoc false
@doc """
Convert a given verb to its connection representation.
"""
def normalize_verb(verb) do
String.upcase(to_string(verb))
end
@doc """
Generates a representat... | 25.62 | 102 | 0.630497 |
08ebebd9cbde663f79935ba66e7420d24655f481 | 886 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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.814815 | 74 | 0.759594 |
08ebec08707761ec05258410999881b9d71be9a1 | 65 | ex | Elixir | lib/gamedex/repo.ex | Lugghawk/GameDex | 680d67a925e16ee5ba357d529542d4be4d4c1b99 | [
"MIT"
] | null | null | null | lib/gamedex/repo.ex | Lugghawk/GameDex | 680d67a925e16ee5ba357d529542d4be4d4c1b99 | [
"MIT"
] | null | null | null | lib/gamedex/repo.ex | Lugghawk/GameDex | 680d67a925e16ee5ba357d529542d4be4d4c1b99 | [
"MIT"
] | null | null | null | defmodule Gamedex.Repo do
use Ecto.Repo, otp_app: :gamedex
end
| 16.25 | 34 | 0.769231 |
08ec22ca67a1477e8c82257bcec30981c666c004 | 1,999 | exs | Elixir | mix.exs | robertkeizer/broadway | bdec3f617116671662b81cc65db6f795848a7dee | [
"Apache-2.0"
] | null | null | null | mix.exs | robertkeizer/broadway | bdec3f617116671662b81cc65db6f795848a7dee | [
"Apache-2.0"
] | null | null | null | mix.exs | robertkeizer/broadway | bdec3f617116671662b81cc65db6f795848a7dee | [
"Apache-2.0"
] | null | null | null | defmodule Broadway.MixProject do
use Mix.Project
@version "1.0.0"
@description "Build concurrent and multi-stage data ingestion and data processing pipelines"
def project do
[
app: :broadway,
version: @version,
elixir: "~> 1.7",
name: "Broadway",
description: @description,
... | 23.797619 | 94 | 0.563782 |
08ec25f56d3f414423a9d4a2c72c59057e620d17 | 1,008 | ex | Elixir | lib/guitars/endpoint.ex | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | lib/guitars/endpoint.ex | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | lib/guitars/endpoint.ex | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | defmodule Guitars.Endpoint do
use Phoenix.Endpoint, otp_app: :guitars
socket "/socket", Guitars.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 25.2 | 69 | 0.709325 |
08ec6b459c9dc5c8ce2596efeb96de718ed8125f | 4,329 | exs | Elixir | test/guss_test.exs | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2018-11-29T01:04:51.000Z | 2020-01-29T17:55:37.000Z | test/guss_test.exs | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2018-12-14T00:33:44.000Z | 2020-02-24T03:53:28.000Z | test/guss_test.exs | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2019-08-24T21:01:07.000Z | 2020-02-20T18:43:23.000Z | defmodule GussTest do
use ExUnit.Case, async: true
alias Guss.Resource
alias Guss
describe "expires_in/1" do
test "returns a timestamp for a future second" do
expires = Guss.expires_in(3600)
assert_valid_expires(expires, 3600)
expires = Guss.expires_in({30, :seconds})
assert_valid_... | 28.86 | 98 | 0.626473 |
08ecb1366d4a644116fd5abe7f37bfb414dadd26 | 995 | ex | Elixir | lib/queuetopia/performer.ex | tailcalldev/pg_queuetopia | ea18c6a7633a78cc82473b9b60da205454009af4 | [
"MIT"
] | null | null | null | lib/queuetopia/performer.ex | tailcalldev/pg_queuetopia | ea18c6a7633a78cc82473b9b60da205454009af4 | [
"MIT"
] | null | null | null | lib/queuetopia/performer.ex | tailcalldev/pg_queuetopia | ea18c6a7633a78cc82473b9b60da205454009af4 | [
"MIT"
] | null | null | null | defmodule PgQueuetopia.Performer do
@moduledoc """
The behaviour for a PgQueuetopia performer.
"""
alias PgQueuetopia.Queue.Job
@doc """
Callback invoked by the PgQueuetopia to perfom a job.
It may return :ok, an :ok tuple or a tuple error, with a string as error.
Note that any failure in the processin... | 27.638889 | 75 | 0.666332 |
08ecb57cf932873979509c78beded27bd1e7ca61 | 42 | exs | Elixir | config/dev1.exs | shopping-adventure/gen_serverring | ec75aa647bee80228dc9464b6e143b0633433827 | [
"MIT"
] | 1 | 2016-09-23T13:08:09.000Z | 2016-09-23T13:08:09.000Z | config/dev1.exs | shopping-adventure/gen_serverring | ec75aa647bee80228dc9464b6e143b0633433827 | [
"MIT"
] | null | null | null | config/dev1.exs | shopping-adventure/gen_serverring | ec75aa647bee80228dc9464b6e143b0633433827 | [
"MIT"
] | null | null | null | [gen_serverring: [data_dir: "data/dev1"]]
| 21 | 41 | 0.714286 |
08ecba2daa01011cbbfd923be5a979ffcd7ba46c | 2,422 | exs | Elixir | programming/elixir/simple_pay/test/controllers/session_controller_test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/simple_pay/test/controllers/session_controller_test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/simple_pay/test/controllers/session_controller_test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule SimplePay.SessionControllerTest do
use SimplePay.ConnCase
alias SimplePay.Session
@valid_attrs %{}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, session_path(conn, :index)
assert html_response(conn, 200) =~ "Listing sessions"
end
test "renders... | 36.149254 | 98 | 0.694055 |
08ecee13ae213e8d26938e130f9fe30c83d6170a | 611 | ex | Elixir | elixir/palindrome-products/lib/palindromes.ex | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | elixir/palindrome-products/lib/palindromes.ex | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | elixir/palindrome-products/lib/palindromes.ex | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | defmodule Palindromes do
@doc """
Generates all palindrome products from an optionally given min factor (or 1) to a given max factor.
"""
@spec generate(non_neg_integer, non_neg_integer) :: map
def generate(max_factor, min_factor \\ 1) do
for i <- min_factor..max_factor, j <- min_factor..max_factor, i <= ... | 30.55 | 101 | 0.636661 |
08ed00613d96ee31bdd5a481c019a91456041b73 | 61 | exs | Elixir | day_02/test/day02_test.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | 1 | 2021-04-21T16:16:59.000Z | 2021-04-21T16:16:59.000Z | day_02/test/day02_test.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_02/test/day02_test.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | defmodule Day02Test do
use ExUnit.Case
doctest Day02
end
| 12.2 | 22 | 0.786885 |
08ed0318c5ea2b11b45f618e93a9f278f99f5a59 | 3,696 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/environment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/environment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/environment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 52.8 | 397 | 0.729708 |
08ed06d2021a11fdd178b78e46d92765220bdfd4 | 1,811 | exs | Elixir | mix.exs | IanLuites/utc_datetime | 0abe1d016e2bc7823860e9f402645e16a885aa5d | [
"MIT"
] | 1 | 2020-01-12T03:40:17.000Z | 2020-01-12T03:40:17.000Z | mix.exs | IanLuites/utc_datetime | 0abe1d016e2bc7823860e9f402645e16a885aa5d | [
"MIT"
] | null | null | null | mix.exs | IanLuites/utc_datetime | 0abe1d016e2bc7823860e9f402645e16a885aa5d | [
"MIT"
] | null | null | null | defmodule UTCDateTime.MixProject do
use Mix.Project
@version "1.0.0"
def project do
[
app: :utc_datetime,
description: "A datetime implementation constraint to UTC.",
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: pa... | 24.146667 | 83 | 0.546107 |
08ed280090b7d9038860267be188d9436d0d5f37 | 51,016 | ex | Elixir | lib/ash/actions/managed_relationships.ex | ash-project/ash | 63c240ebbdda6efc2ba8b24547f143cb8bd8c57e | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/actions/managed_relationships.ex | ash-project/ash | 63c240ebbdda6efc2ba8b24547f143cb8bd8c57e | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/actions/managed_relationships.ex | ash-project/ash | 63c240ebbdda6efc2ba8b24547f143cb8bd8c57e | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Actions.ManagedRelationships do
@moduledoc false
alias Ash.Error.Changes.InvalidRelationship
alias Ash.Error.Query.NotFound
require Ash.Query
def load(_api, created, %{relationships: rels}, _) when rels == %{},
do: {:ok, created}
def load(_api, created, %{relationships: nil}, _), do: {... | 31.107317 | 102 | 0.499647 |
08ed2b2bebb80ab0c2e53e4db971320ed372d286 | 1,218 | ex | Elixir | lib/docker/chunked_json.ex | kodumbeats/docker-elixir | b4f8b929691ce2bf9f11743def49009de460431b | [
"Apache-2.0"
] | 21 | 2015-05-10T22:04:55.000Z | 2021-12-30T15:04:36.000Z | lib/docker/chunked_json.ex | kodumbeats/docker-elixir | b4f8b929691ce2bf9f11743def49009de460431b | [
"Apache-2.0"
] | 3 | 2015-05-14T17:42:33.000Z | 2017-08-08T09:52:12.000Z | lib/docker/chunked_json.ex | kodumbeats/docker-elixir | b4f8b929691ce2bf9f11743def49009de460431b | [
"Apache-2.0"
] | 10 | 2015-06-25T14:25:33.000Z | 2018-01-05T15:35:44.000Z | defmodule Docker.ChunkedJson do
@behaviour Tesla.Middleware
@impl Tesla.Middleware
def call(env, next, opts) do
opts = opts || []
with {:ok, env} <- Tesla.Middleware.JSON.encode(env, opts),
{:ok, env} <- Tesla.run(env, next) do
decode(env, opts)
end
end
def decode(env, opts) do
... | 24.857143 | 92 | 0.584565 |
08ed2e1f8c36f98a4b3d22501d5efaaf2b525125 | 64 | exs | Elixir | test/mipha/follows/queries_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | test/mipha/follows/queries_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | test/mipha/follows/queries_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule Mipha.Follows.QueriesTest do
use Mipha.DataCase
end
| 16 | 38 | 0.828125 |
08ed5497c0d7b029f28fc775ee6d13b38c186d7c | 2,459 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/clone_version_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/clone_version_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/clone_version_request.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... | 41.677966 | 169 | 0.731192 |
08ed74b21e4fab2b57123584411882313fdb7b90 | 1,103 | ex | Elixir | lib/twinklyhaha_web/channels/user_socket.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | 2 | 2020-10-04T12:41:53.000Z | 2020-11-11T11:24:54.000Z | lib/twinklyhaha_web/channels/user_socket.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | 22 | 2021-12-02T09:16:30.000Z | 2022-03-21T06:33:29.000Z | lib/twinklyhaha_web/channels/user_socket.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | 2 | 2020-11-09T08:27:19.000Z | 2020-11-10T04:25:21.000Z | defmodule TwinklyhahaWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", TwinklyhahaWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for al... | 30.638889 | 86 | 0.698096 |
08ed85312d4de638e5fa050826b4ddb29adba58d | 67 | exs | Elixir | test/test_helper.exs | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | test/test_helper.exs | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | test/test_helper.exs | franknfjr/blog_lca | 0711ad6ba6ee878045905ec58a549527ffa5e0a4 | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Login.Repo, :manual)
| 13.4 | 51 | 0.776119 |
08edc18f61916b7a394f343ff4c4b9b2a808d2d7 | 532 | exs | Elixir | backend/test/getaways_web/schema/query/place_test.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/test/getaways_web/schema/query/place_test.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/test/getaways_web/schema/query/place_test.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule GetawaysWeb.Schema.Query.PlaceTest do
use GetawaysWeb.ConnCase, async: true
@query """
query ($slug: String!) {
place(slug: $slug) {
name
}
}
"""
@variables %{"slug" => "place-1"}
test "place query returns the place with a given slug" do
places_fixture()
conn = build_conn... | 19.703704 | 65 | 0.554511 |
08edd3bf4f328708d7235254348cbcc95334e615 | 93 | ex | Elixir | lib/ex_matrix_api.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | 2 | 2020-09-02T23:10:09.000Z | 2021-03-29T09:19:15.000Z | lib/ex_matrix_api.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | null | null | null | lib/ex_matrix_api.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | null | null | null | defmodule ExMatrixApi do
@moduledoc """
Context module for ExMatrixApi library
"""
end
| 15.5 | 40 | 0.731183 |
08edf8abb2a47bdea6218ef8246ea5782f6cc0ba | 5,695 | ex | Elixir | lib/credo/check/code_helper.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | lib/credo/check/code_helper.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | lib/credo/check/code_helper.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.CodeHelper do
@moduledoc """
This module contains functions that are used by several checks when dealing
with the AST.
"""
alias Credo.Code.Block
alias Credo.Code.Parameters
alias Credo.Code.Module
alias Credo.Code.Scope
alias Credo.Code.Charlists
alias Credo.Code.Sigils
ali... | 26.863208 | 81 | 0.661984 |
08ee1c8e7287899bbefc1f5c34e0bc866c733110 | 1,960 | exs | Elixir | tools/astarte_e2e/mix.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | tools/astarte_e2e/mix.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | tools/astarte_e2e/mix.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2020-2021 Ispirata Srl
#
# 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... | 27.222222 | 78 | 0.622959 |
08ee2c594032684c47dd336b7d1c938ddbbdad64 | 1,941 | ex | Elixir | lib/raml/common.ex | zachdaniel/ramoulade | 11fa7745b595c199d708eb15c46526bc7a249b37 | [
"MIT"
] | 1 | 2018-02-21T23:45:02.000Z | 2018-02-21T23:45:02.000Z | lib/raml/common.ex | zachdaniel/ramoulade | 11fa7745b595c199d708eb15c46526bc7a249b37 | [
"MIT"
] | null | null | null | lib/raml/common.ex | zachdaniel/ramoulade | 11fa7745b595c199d708eb15c46526bc7a249b37 | [
"MIT"
] | null | null | null | defmodule Ramoulade.Raml.Common do
def get_required_scalar!(document, yaml, key) do
value = get_scalar!(document, yaml, key)
if value do
value
else
Ramoulade.error!(document, "Missing value required for key: #{key}, at #{inspect(yaml)}")
end
end
def get_string!(document, yaml, key) do... | 26.22973 | 175 | 0.593509 |
08ee30414c5d4d174e886653e7c25c0cf3e857c6 | 2,060 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/money.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/money.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/money.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.867925 | 420 | 0.7 |
08ee4937d02e9d45ee1657006c404c0110a2a3a6 | 228 | ex | Elixir | lib/loki/accounts/error_handler.ex | artjimlop/loki | 4ac5f7b4313564971f8dd4213a2022698600786a | [
"Apache-2.0"
] | null | null | null | lib/loki/accounts/error_handler.ex | artjimlop/loki | 4ac5f7b4313564971f8dd4213a2022698600786a | [
"Apache-2.0"
] | null | null | null | lib/loki/accounts/error_handler.ex | artjimlop/loki | 4ac5f7b4313564971f8dd4213a2022698600786a | [
"Apache-2.0"
] | null | null | null | defmodule Loki.Accounts.ErrorHandler do
import Plug.Conn
def auth_error(conn, {type, _reason}, _opts) do
body = to_string(type)
conn
|> put_resp_content_type("text/plain")
|> send_resp(401, body)
end
end
| 19 | 49 | 0.688596 |
08ee592219b925b8510d8ed934be07a19dcb2b6f | 4,672 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/model/domain.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/model/domain.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/model/domain.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 58.4 | 407 | 0.702055 |
08ee7bddf460963b726269f7af463b6fc8b117f3 | 2,002 | ex | Elixir | lib/ecto_schema_store/factory.ex | cenurv/ecto_store | 3e414cb56b5c788f6adf35bad597f34fa95f2f29 | [
"Apache-2.0"
] | 8 | 2016-10-27T15:53:18.000Z | 2022-01-03T23:47:45.000Z | lib/ecto_schema_store/factory.ex | cenurv/ecto_store | 3e414cb56b5c788f6adf35bad597f34fa95f2f29 | [
"Apache-2.0"
] | 5 | 2017-04-25T15:28:29.000Z | 2017-10-05T16:08:57.000Z | lib/ecto_schema_store/factory.ex | cenurv/ecto_store | 3e414cb56b5c788f6adf35bad597f34fa95f2f29 | [
"Apache-2.0"
] | 3 | 2017-08-28T18:51:24.000Z | 2020-01-16T22:30:33.000Z | defmodule EctoSchemaStore.Factory do
@moduledoc false
defmacro build do
quote do
def generate(keys \\ []) do
generate keys, %{}
end
def generate(keys, fields ) when is_atom keys do
generate [keys], fields
end
def generate(keys, fields) when is_list keys do
... | 23.27907 | 80 | 0.55045 |
08ee83af1fb67531b896ca6568a569a8811a40b3 | 3,553 | ex | Elixir | lib/cryppo/encryption_strategy.ex | Meeco/cryppo_ex | fd9b6f4f84c6668797b1e31f6e59bb5f42630a2a | [
"Apache-2.0"
] | null | null | null | lib/cryppo/encryption_strategy.ex | Meeco/cryppo_ex | fd9b6f4f84c6668797b1e31f6e59bb5f42630a2a | [
"Apache-2.0"
] | null | null | null | lib/cryppo/encryption_strategy.ex | Meeco/cryppo_ex | fd9b6f4f84c6668797b1e31f6e59bb5f42630a2a | [
"Apache-2.0"
] | 1 | 2021-06-01T07:46:14.000Z | 2021-06-01T07:46:14.000Z | defmodule Cryppo.EncryptionStrategy do
@moduledoc false
# EncryptionStrategy behavior and macros to inject functions common to all EncryptionStrategy modules
alias Cryppo.{EncryptedData, EncryptionArtefacts, EncryptionKey}
@callback strategy_name :: binary
@callback key_length :: integer()
@callback ge... | 29.363636 | 103 | 0.676611 |
08ee846d5421b899c5444b4a7c4762583000209a | 5,085 | ex | Elixir | lib/stripe/connect/oauth.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/oauth.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/oauth.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Connect.OAuth do
@moduledoc """
Work with Stripe Connect.
You can:
- generate the URL for starting the OAuth workflow
- authorize a new connected account with a token
- deauthorize an existing connected account
Stripe API reference: https://stripe.com/docs/connect/reference
"""
al... | 24.447115 | 148 | 0.645231 |
08ee911c13c5ad5fd8f4a03e94026d712ab22a0a | 2,321 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/campaign_creative_associations_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/campaign_creative_associations_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/campaign_creative_associations_list_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 ... | 36.265625 | 226 | 0.747523 |
08eeb84de21447f7ce885a5bcaf04073bfa342a0 | 712 | ex | Elixir | lib/chat_api_web/gettext.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api_web/gettext.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api_web/gettext.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ChatApiWeb.Gettext
# Simple translation
gettext("Here is t... | 28.48 | 72 | 0.678371 |
08eed732a89289bbddb3b086557ef3301a7d3bae | 580 | ex | Elixir | lib/adaptable_costs_evaluator_web/views/input_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | lib/adaptable_costs_evaluator_web/views/input_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | lib/adaptable_costs_evaluator_web/views/input_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluatorWeb.InputView do
use AdaptableCostsEvaluatorWeb, :view
alias AdaptableCostsEvaluatorWeb.InputView
def render("index.json", %{inputs: inputs}) do
%{data: render_many(inputs, InputView, "input.json")}
end
def render("show.json", %{input: input}) do
%{data: render_one(i... | 25.217391 | 57 | 0.681034 |
08eee28b7d46764b10719d8c0467ca2c085f3517 | 1,382 | ex | Elixir | lib/elixir/lib/access.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/elixir/lib/access.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/access.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [access: 2]
defprotocol Access do
@moduledoc """
The Access protocol is the underlying protocol invoked
when the brackets syntax is used. For instance, `foo[bar]`
is translated to `access foo, bar` which, by default,
invokes the `Access.access` protocol.
This protocol is limited and... | 22.290323 | 68 | 0.629522 |
08eeebb0caf90cf7619fb33273a65c2985887b2e | 1,952 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/connection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/connection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/connection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.666667 | 129 | 0.735143 |
08eef2ff62260d1308204a21c57d7f2e7ca4465f | 110,272 | ex | Elixir | clients/logging/lib/google_api/logging/v2/api/organizations.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/api/organizations.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/logging/lib/google_api/logging/v2/api/organizations.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.843912 | 716 | 0.635665 |
08ef11cdbefa52f9f628be0aa4923e25fb3f5cc9 | 1,711 | ex | Elixir | clients/books/lib/google_api/books/v1/model/dictlayerdata_dict_words_senses_synonyms.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/dictlayerdata_dict_words_senses_synonyms.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/dictlayerdata_dict_words_senses_synonyms.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.22 | 117 | 0.746932 |
08ef191f298cee1ba134e4e5c4738df97e363859 | 971 | ex | Elixir | lib/ayesql/runner/ecto.ex | iautom8things/ayesql | c6f6a21fde52f44bcfb59a5b51e170df33a5117d | [
"MIT"
] | 100 | 2018-09-18T12:41:56.000Z | 2022-03-08T18:52:56.000Z | lib/ayesql/runner/ecto.ex | iautom8things/ayesql | c6f6a21fde52f44bcfb59a5b51e170df33a5117d | [
"MIT"
] | 15 | 2019-03-24T18:59:22.000Z | 2022-03-31T19:32:58.000Z | lib/ayesql/runner/ecto.ex | iautom8things/ayesql | c6f6a21fde52f44bcfb59a5b51e170df33a5117d | [
"MIT"
] | 13 | 2018-09-22T20:05:43.000Z | 2021-11-03T20:22:51.000Z | if Code.ensure_loaded?(Ecto.Adapters.SQL) do
defmodule AyeSQL.Runner.Ecto do
@moduledoc """
This module defines `Ecto` default adapter.
Can be used as follows:
```elixir
defmodule MyQueries do
use AyeSQL, repo: MyRepo
defqueries("query/my_queries.sql")
end
```
"""
us... | 20.659574 | 71 | 0.608651 |
08ef5152ebf18d220ec6c2e2d11fcd5358a0af36 | 1,743 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_health_report_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_health_report_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_health_report_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.3125 | 236 | 0.765347 |
08ef6a46d328a73b1ce579a0a3eb3b050b0303f1 | 93 | ex | Elixir | lib/game_of_life/t_ref.ex | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | null | null | null | lib/game_of_life/t_ref.ex | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | null | null | null | lib/game_of_life/t_ref.ex | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | null | null | null | defmodule GameOfLife.TRef do
# defstruct [:name, :ref]
@type t :: {atom, reference}
end
| 15.5 | 30 | 0.666667 |
08efa61a971c070c561060b99304a27b031d3338 | 1,071 | ex | Elixir | lib/bedsgarage.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | lib/bedsgarage.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | lib/bedsgarage.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | defmodule Bedsgarage do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when... | 31.5 | 88 | 0.718954 |
08efb1e3cb7efec00fc52be427e0ff34fb87a1c5 | 1,937 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/acl_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/acl_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/acl_entry.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.982456 | 159 | 0.718637 |
08efbe68ed39949892d80907519b2885e0ae87d0 | 2,164 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_set_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_set_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_set_iam_policy_request.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.964912 | 167 | 0.73244 |
08efcd09e7895829583af8b8d696638208c5c4c3 | 6,396 | exs | Elixir | test/hierbautberlin/file_storage_test.exs | HierBautBerlin/website | 91410e7c61c1efad438fe84bf550f87b0056c440 | [
"MIT"
] | 13 | 2021-03-06T12:16:34.000Z | 2022-03-31T09:46:35.000Z | test/hierbautberlin/file_storage_test.exs | HierBautBerlin/website | 91410e7c61c1efad438fe84bf550f87b0056c440 | [
"MIT"
] | 148 | 2021-03-05T12:44:55.000Z | 2022-03-11T12:09:06.000Z | test/hierbautberlin/file_storage_test.exs | HierBautBerlin/website | 91410e7c61c1efad438fe84bf550f87b0056c440 | [
"MIT"
] | 2 | 2021-06-02T14:31:21.000Z | 2022-02-14T08:36:51.000Z | defmodule Hierbautberlin.FileStorageTest do
use Hierbautberlin.DataCase
alias Hierbautberlin.FileStorage
alias Hierbautberlin.FileStorage.FileItem
describe "files" do
@valid_attrs %{name: "some name", type: "some type", title: "My File"}
@update_attrs %{name: "some updated name", type: "some updated t... | 31.820896 | 132 | 0.666979 |
08efce60dba1aeadfb71a6c2480b8a7dca524f0a | 567 | ex | Elixir | test/support/person.ex | instinctscience/versioned | 2352464c5c148d85f04fa31c02ab58001a1531f1 | [
"MIT"
] | 4 | 2021-09-25T20:11:59.000Z | 2022-03-07T20:57:44.000Z | test/support/person.ex | instinctscience/versioned | 2352464c5c148d85f04fa31c02ab58001a1531f1 | [
"MIT"
] | 2 | 2021-09-22T19:29:26.000Z | 2021-10-04T17:31:17.000Z | test/support/person.ex | instinctscience/versioned | 2352464c5c148d85f04fa31c02ab58001a1531f1 | [
"MIT"
] | 3 | 2021-08-08T10:37:25.000Z | 2022-03-07T20:57:32.000Z | defmodule Versioned.Test.Person do
@moduledoc false
use Versioned.Schema, singular: :person
import Ecto.Changeset
alias Versioned.Test.{Car, Hobby}
versioned_schema "people" do
field :name, :string
belongs_to :car, Car, type: :binary_id, versioned: true
has_many :fancy_hobbies, Hobby, on_replace:... | 27 | 89 | 0.714286 |
08f04bb858f7da46cf1ceb8a5ec1f3a3024a5db2 | 2,110 | ex | Elixir | lib/arp_server/service.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | 3 | 2018-07-23T01:50:50.000Z | 2018-08-13T13:12:05.000Z | lib/arp_server/service.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | lib/arp_server/service.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | defmodule ARP.Service do
@moduledoc """
Service supervisor
"""
alias ARP.API.JSONRPC2.{Account, App, Device, Nonce, Server}
alias ARP.API.TCP.DeviceProtocol
alias ARP.{CheckTask, Config, DeviceManager}
use GenServer
def start_link(_opts) do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
... | 23.186813 | 94 | 0.627962 |
08f053e8fba8606432a5edb368d1c94377b2a0b9 | 453 | ex | Elixir | test/support/models/comment.ex | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-10T06:54:28.000Z | 2022-03-10T06:54:28.000Z | test/support/models/comment.ex | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-14T01:10:20.000Z | 2022-03-20T14:35:05.000Z | test/support/models/comment.ex | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-13T15:38:40.000Z | 2022-03-13T15:38:40.000Z | defmodule Cldr.Trans.Comment do
@moduledoc false
use Ecto.Schema
use Cldr.Trans, translates: [:comment], container: :transcriptions
import Ecto.Changeset
schema "comments" do
field(:comment, :string)
field(:transcriptions, :map)
belongs_to(:article, Cldr.Trans.Article)
end
def changeset(co... | 21.571429 | 68 | 0.688742 |
08f061a760b46d589ec446e805ba1b9109f6099e | 204 | ex | Elixir | src/dguweb/web/controllers/page_controller.ex | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 2 | 2016-08-09T16:46:52.000Z | 2016-08-09T16:46:59.000Z | src/dguweb/web/controllers/page_controller.ex | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 48 | 2016-07-14T15:12:41.000Z | 2016-09-27T16:19:54.000Z | src/dguweb/web/controllers/page_controller.ex | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 1 | 2021-04-10T21:23:44.000Z | 2021-04-10T21:23:44.000Z | defmodule DGUWeb.PageController do
use DGUWeb.Web, :controller
alias DGUWeb.Theme
def index(conn, _params) do
themes = Repo.all(Theme)
render conn, "index.html", themes: themes
end
end
| 17 | 45 | 0.710784 |
08f08690893ab238782bef7acf973dce33573241 | 1,488 | exs | Elixir | mix.exs | eigr/wasmex | 5e692a16ef1d82a1ea8586d5678011736927abab | [
"MIT"
] | 1 | 2022-03-13T02:24:17.000Z | 2022-03-13T02:24:17.000Z | mix.exs | eigr/wasmex | 5e692a16ef1d82a1ea8586d5678011736927abab | [
"MIT"
] | null | null | null | mix.exs | eigr/wasmex | 5e692a16ef1d82a1ea8586d5678011736927abab | [
"MIT"
] | null | null | null | defmodule Wasmex.MixProject do
use Mix.Project
def project do
[
app: :wasmex,
version: "0.3.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: [
wasmex: [
mode: if(Mix.env() == :prod, do: :r... | 25.655172 | 158 | 0.567204 |
08f0b9c9b424946a097d26e78e314730bf7c96ef | 1,256 | ex | Elixir | lib/grizzly/zwave/commands/zwave_long_range_channel_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/zwave_long_range_channel_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/zwave_long_range_channel_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ZWaveLongRangeChannelReport do
@moduledoc """
Command to advertise the configured Z-Wave Long Range Channel
Params:
* `:channel` - which channel that is used for Z-Wave long range
"""
@typedoc """
The long range channel
"""
@type long_range_channel() :: :primary | :... | 24.627451 | 77 | 0.676752 |
08f0c9356d3173852857e0787f54a2bb58b4c90c | 581 | exs | Elixir | examples/lwm 66 - Doctests/unit_test_app/mix.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 38 | 2018-12-31T10:51:42.000Z | 2022-03-25T18:18:10.000Z | examples/lwm 66 - Doctests/unit_test_app/mix.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | null | null | null | examples/lwm 66 - Doctests/unit_test_app/mix.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 6 | 2019-08-19T03:21:36.000Z | 2021-07-16T09:34:49.000Z | defmodule UnitTestApp.MixProject do
use Mix.Project
def project do
[
app: :unit_test_app,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.034483 | 87 | 0.583477 |
08f0e27bfd4c1d5d2cf8261d95652ba4039c2261 | 2,309 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_entity_type_entity.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_entity_type_entity.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_entity_type_entity.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.462687 | 137 | 0.715461 |
08f0e51fc643236e4fd4097e49004dca11cdc813 | 22,192 | exs | Elixir | test/ecto/adapters/mysql_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/mysql_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/mysql_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Adapters.MySQLTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Queryable
alias Ecto.Adapters.MySQL.Connection, as: SQL
defmodule Model do
use Ecto.Model
schema "model" do
field :x, :inte... | 39.417407 | 196 | 0.57354 |
08f0f45d4a4897343e0fdebc327c908515047ecd | 1,056 | ex | Elixir | apps/sue_web/test/support/conn_case.ex | inculi/Sue | 42e249aec1d9c467db63526966d9690d5c58f346 | [
"MIT"
] | 9 | 2018-03-23T11:18:21.000Z | 2021-08-06T18:38:37.000Z | apps/sue_web/test/support/conn_case.ex | inculi/Sue | 42e249aec1d9c467db63526966d9690d5c58f346 | [
"MIT"
] | 21 | 2017-12-01T05:57:10.000Z | 2021-06-06T18:53:25.000Z | apps/sue_web/test/support/conn_case.ex | inculi/Sue | 42e249aec1d9c467db63526966d9690d5c58f346 | [
"MIT"
] | 6 | 2018-03-23T11:24:21.000Z | 2021-08-06T18:40:28.000Z | defmodule SueWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the te... | 27.789474 | 60 | 0.729167 |
08f0f93fcc9bb61c57e0b94b6cc06719a171ffaa | 3,491 | exs | Elixir | config/config.exs | haldihri3/lowendinsight-get | b414f288e7a9f409a1ec408b6515fd1cb95e6316 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | haldihri3/lowendinsight-get | b414f288e7a9f409a1ec408b6515fd1cb95e6316 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | haldihri3/lowendinsight-get | b414f288e7a9f409a1ec408b6515fd1cb95e6316 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
use Mix.Config
config :lowendinsight_get, LowendinsightGet.Endpoint,
port: String.to_integer(System.get_env("PORT") || "... | 38.788889 | 96 | 0.729304 |
08f0fdf051c3ff2c3b8cbfa7e0ceb31859cc4f9f | 2,882 | ex | Elixir | lib/tilex/notifications/notifications.ex | BobrImperator/tilex | 0222602b6b7f4d868a4036bc5c94bf8d84dc12f5 | [
"MIT"
] | null | null | null | lib/tilex/notifications/notifications.ex | BobrImperator/tilex | 0222602b6b7f4d868a4036bc5c94bf8d84dc12f5 | [
"MIT"
] | null | null | null | lib/tilex/notifications/notifications.ex | BobrImperator/tilex | 0222602b6b7f4d868a4036bc5c94bf8d84dc12f5 | [
"MIT"
] | null | null | null | defmodule Tilex.Notifications do
use GenServer
alias Ecto.Changeset
alias Tilex.{Post, Repo}
alias TilexWeb.Endpoint
alias TilexWeb.Router.Helpers
alias Tilex.Notifications.NotifiersSupervisor
### Client API
def start_link([]) do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
@d... | 26.2 | 100 | 0.681818 |
08f1060dbe311d1c6942bf26b71a663c8eefa6af | 482 | ex | Elixir | lib/payroll/hours/hours.ex | will-wow/ex-payroll | 7b60cc578b091fa669629c433806787db5f926dc | [
"MIT"
] | 1 | 2020-11-11T19:57:31.000Z | 2020-11-11T19:57:31.000Z | lib/payroll/hours/hours.ex | will-wow/ex-payroll | 7b60cc578b091fa669629c433806787db5f926dc | [
"MIT"
] | null | null | null | lib/payroll/hours/hours.ex | will-wow/ex-payroll | 7b60cc578b091fa669629c433806787db5f926dc | [
"MIT"
] | null | null | null | defmodule Payroll.Hours do
alias Payroll.Hours.WorkDay
alias Payroll.Hours.Overtime
@spec calculate_overtime([number], number) :: WorkDay.t()
defdelegate calculate_overtime(previous_hours, current_hours), to: Overtime
@spec work_day_to_pay_hours(WorkDay.t()) :: number
defdelegate work_day_to_pay_hours(wor... | 34.428571 | 77 | 0.771784 |
08f13e44287a7ef53d5187e6f07cbf1956568175 | 1,263 | exs | Elixir | mix.exs | bushman77/ecto3_mnesia | c0ba8af22e3b1c684e6fd3826206272f7c1df03b | [
"MIT"
] | null | null | null | mix.exs | bushman77/ecto3_mnesia | c0ba8af22e3b1c684e6fd3826206272f7c1df03b | [
"MIT"
] | null | null | null | mix.exs | bushman77/ecto3_mnesia | c0ba8af22e3b1c684e6fd3826206272f7c1df03b | [
"MIT"
] | null | null | null | defmodule EctoMnesia.MixProject do
use Mix.Project
def project do
[
name: "Ecto3 Mnesia",
app: :ecto3_mnesia,
version: "0.2.2",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [
plt_add_apps: [:mnesia]
],
source_url: "... | 20.704918 | 64 | 0.536025 |
08f1417817078e6124030218e88c228f6e3299bc | 1,916 | exs | Elixir | test/fixtures/google/discovery_document.exs | haakonst/openid_connect | e8dfd0033bb3420c1af43653406ccd870900032e | [
"MIT"
] | 48 | 2017-08-27T11:16:42.000Z | 2022-02-25T22:51:36.000Z | test/fixtures/google/discovery_document.exs | haakonst/openid_connect | e8dfd0033bb3420c1af43653406ccd870900032e | [
"MIT"
] | 26 | 2017-10-17T14:56:17.000Z | 2022-02-17T10:15:31.000Z | test/fixtures/google/discovery_document.exs | haakonst/openid_connect | e8dfd0033bb3420c1af43653406ccd870900032e | [
"MIT"
] | 33 | 2018-05-16T12:32:53.000Z | 2021-12-08T22:41:18.000Z | %HTTPoison.Response{
body: %{
"authorization_endpoint" => "https://accounts.google.com/o/oauth2/v2/auth",
"claims_supported" => [
"aud",
"email",
"email_verified",
"exp",
"family_name",
"given_name",
"iat",
"iss",
"locale",
"name",
"picture",
... | 33.034483 | 155 | 0.586117 |
08f149035066244e7726b64bac4c3bab2b63d00f | 616 | ex | Elixir | sense_wrapper/lib/app.ex | damnever/completor-elixir | f4210d15c128167f7a857669f1a2d8e548373a40 | [
"MIT"
] | 1 | 2018-02-22T14:32:52.000Z | 2018-02-22T14:32:52.000Z | sense_wrapper/lib/app.ex | damnever/completor-elixir | f4210d15c128167f7a857669f1a2d8e548373a40 | [
"MIT"
] | null | null | null | sense_wrapper/lib/app.ex | damnever/completor-elixir | f4210d15c128167f7a857669f1a2d8e548373a40 | [
"MIT"
] | null | null | null | defmodule SenseWrapper.App do
@moduledoc false
use Application
use Supervisor
alias ElixirSense.Server.ContextLoader
def start(_type, _args) do
children = [
{ContextLoader, ["dev"]},
]
opts = [strategy: :one_for_one, name: SenseWrapper.Supervisor]
Supervisor.start_link(children, opts)
... | 17.111111 | 66 | 0.61526 |
08f1751ee7d37f74c0ff22c873cf931f41bdf79c | 881 | ex | Elixir | debian/prerm.ex | MacroFab/SVG-Stacker | b6051ac9076d2da90dc8bbf786c876264ed33092 | [
"MIT"
] | 1 | 2016-07-17T11:02:34.000Z | 2016-07-17T11:02:34.000Z | debian/prerm.ex | MacroFab/SVG-Stacker | b6051ac9076d2da90dc8bbf786c876264ed33092 | [
"MIT"
] | 1 | 2019-02-11T22:30:41.000Z | 2019-02-11T23:00:24.000Z | debian/prerm.ex | MacroFab/SVG-Stacker | b6051ac9076d2da90dc8bbf786c876264ed33092 | [
"MIT"
] | null | null | null | #!/bin/sh
# prerm script for svg-stacker
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-ver... | 22.589744 | 76 | 0.626561 |
08f1876383f8a98002cbae53a66d67416fd1ae1d | 1,728 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/button.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/button.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/button.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.882353 | 91 | 0.736111 |
08f1a85cefe378eb2984f33d3f7ab50037cc78af | 1,545 | exs | Elixir | apps/service_receive/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_receive/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_receive/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Receive.MixProject do
use Mix.Project
def project do
[
app: :service_receive,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: M... | 28.611111 | 65 | 0.565049 |
08f1c111e52cd898a0844f6cadd97d0f0f5c43c8 | 3,438 | exs | Elixir | test/ecto/query/builder/windows_test.exs | marpo60/ecto | 2c2e1b467ec5de87ee41508070f6670288cd2a32 | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | test/ecto/query/builder/windows_test.exs | marpo60/ecto | 2c2e1b467ec5de87ee41508070f6670288cd2a32 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/windows_test.exs | marpo60/ecto | 2c2e1b467ec5de87ee41508070f6670288cd2a32 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.WindowsTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.Windows
doctest Ecto.Query.Builder.Windows
import Ecto.Query
describe "escape" do
test "handles expressions and params" do
assert {Macro.escape(quote do [partition_by: [&0.y]] end), {[], :acc}} ==
... | 40.447059 | 120 | 0.566899 |
08f1c6c5d9fb734a934285d12c267d32f1b33cba | 3,614 | ex | Elixir | lib/ecto/pools/poolboy/worker.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/ecto/lib/ecto/pools/poolboy/worker.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/pools/poolboy/worker.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Ecto.Pools.Poolboy.Worker do
@moduledoc false
use GenServer
use Behaviour
alias Ecto.Adapters.Connection
@type modconn :: {module :: atom, conn :: pid}
@spec start_link({module, Keyword.t}) :: {:ok, pid}
def start_link({module, params}) do
GenServer.start_link(__MODULE__, {module, params}... | 23.933775 | 85 | 0.612341 |
08f1d62169612f57c039665beb36bab0816d273e | 2,463 | exs | Elixir | config/prod.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | config/prod.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | config/prod.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 31.987013 | 68 | 0.712952 |
08f1fa8ec5a35abad2dd615314d0b32db3190e02 | 2,215 | ex | Elixir | lib/milbase/account.ex | suryakun/milbase-skeleton | 1483142bd9ef70a9cf07504c8f03314f2cb7b7d0 | [
"Apache-2.0"
] | 1 | 2020-07-14T03:27:30.000Z | 2020-07-14T03:27:30.000Z | lib/milbase/account.ex | suryakun/milbase-skeleton | 1483142bd9ef70a9cf07504c8f03314f2cb7b7d0 | [
"Apache-2.0"
] | null | null | null | lib/milbase/account.ex | suryakun/milbase-skeleton | 1483142bd9ef70a9cf07504c8f03314f2cb7b7d0 | [
"Apache-2.0"
] | null | null | null | defmodule Milbase.Account do
@moduledoc """
The Account context.
"""
import Ecto.Query, warn: false
alias Milbase.Repo
alias Milbase.Account.User
@doc """
Data source for dataloader library
"""
def data(), do: Dataloader.Ecto.new(Milbase.Repo, query: &query/2)
@doc """
Data query for dataloa... | 16.908397 | 68 | 0.571558 |
08f200aed337de48e3df917cf5e7d35baa3061d1 | 13,463 | ex | Elixir | lib/livebook/intellisense/completion.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook/intellisense/completion.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook/intellisense/completion.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Intellisense.Completion do
@moduledoc false
# This module provides basic completion based on code
# and runtime information (binding, environment).
#
# The implementation is based primarly on `IEx.Autocomplete`.
# It also takes insights from `ElixirSense.Providers.Suggestion.Complete`,
... | 29.589011 | 92 | 0.625863 |
08f218b363e887d9b78a85e73595e03acd803580 | 107 | exs | Elixir | elixir/12.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/12.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/12.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | a = 1
IO.puts a
[^a, 2, 3] = [1, 2, 3]
IO.puts a
a = 2
IO.puts a
#[^a, 2] = [1, 2] #Raise Match Error
| 8.230769 | 36 | 0.46729 |
08f233a07a905477a56de8513c6e5945dcbc7305 | 1,773 | ex | Elixir | clients/discovery/lib/google_api/discovery/v1/model/rest_method_media_upload_protocols_simple.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/model/rest_method_media_upload_protocols_simple.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/model/rest_method_media_upload_protocols_simple.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 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... | 34.764706 | 152 | 0.749577 |
08f246a55e2a62e62426cdd3296cf1677443f9c2 | 3,480 | ex | Elixir | lib/mix/lib/mix/shell.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/shell.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/shell.ex | jovannypcg/elixir | de3f5df7fdcda79e2661f9cee6005707e7e8d030 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Shell do
@moduledoc """
Defines `Mix.Shell` contract.
"""
@doc """
Informs the given message.
"""
@callback info(message :: IO.ANSI.ansidata) :: any
@doc """
Warns about the given error message.
"""
@callback error(message :: IO.ANSI.ansidata) :: any
@doc """
Prompts the user ... | 25.217391 | 106 | 0.606609 |
08f26b08e493b901db69f1907f7feeee4f35031a | 1,365 | ex | Elixir | lib/nodeping/helpers.ex | stratacast/nodeping_elixir | 11ad20e7da3a43dfe6c8322223c6a54c1025c405 | [
"MIT"
] | null | null | null | lib/nodeping/helpers.ex | stratacast/nodeping_elixir | 11ad20e7da3a43dfe6c8322223c6a54c1025c405 | [
"MIT"
] | null | null | null | lib/nodeping/helpers.ex | stratacast/nodeping_elixir | 11ad20e7da3a43dfe6c8322223c6a54c1025c405 | [
"MIT"
] | null | null | null | defmodule NodePing.Helpers do
@moduledoc """
Helper functions for the inner workings of of elixir library for the NodePing API
"""
@doc """
Takes querystrings for a URL and merges them into a single string
## Parameters
- `querystrings` - A list of tuples where the first value is an `Atom` for the key,... | 27.3 | 113 | 0.627106 |
08f2d65d768a9d78235cf9c95569e6a20e824281 | 731 | ex | Elixir | web/gettext.ex | max-konin/a2billing-rest-api | 3f8430caa2b9cbedfbe842e81030c861aa25dd89 | [
"MIT"
] | 1 | 2017-08-01T04:31:38.000Z | 2017-08-01T04:31:38.000Z | web/gettext.ex | max-konin/a2billing-rest-api | 3f8430caa2b9cbedfbe842e81030c861aa25dd89 | [
"MIT"
] | null | null | null | web/gettext.ex | max-konin/a2billing-rest-api | 3f8430caa2b9cbedfbe842e81030c861aa25dd89 | [
"MIT"
] | 1 | 2020-05-05T15:21:59.000Z | 2020-05-05T15:21:59.000Z | defmodule A2billingRestApi.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import A2billingRestApi.Gettext
# Simple translation
gettex... | 29.24 | 72 | 0.690834 |
08f2fc6c3e1e9602ac87e8c2c9655df12f1e012a | 1,611 | ex | Elixir | apps/discordbot/lib/discordbot/config_provider.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/lib/discordbot/config_provider.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/lib/discordbot/config_provider.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.ConfigProvider do
@moduledoc false
# This is a modification of the default Elixir config provider that
# ships with Distillery, which allows for optional config files
use Distillery.Releases.Config.Provider
@impl Provider
def init([path]) do
started? = ensure_started()
try d... | 23.014286 | 79 | 0.607076 |
08f310eb2ddc6c72a64f250d3d48dbd7e52dfbdd | 3,044 | ex | Elixir | lib/ash_admin/components/resource/nav.ex | ash-project/ash_admin | d542ca9760ec9ecc9d94ce8d50663214938bce40 | [
"MIT"
] | 19 | 2021-03-16T09:01:22.000Z | 2022-03-07T06:16:56.000Z | lib/ash_admin/components/resource/nav.ex | ash-project/ash_admin | d542ca9760ec9ecc9d94ce8d50663214938bce40 | [
"MIT"
] | 11 | 2021-03-29T15:46:33.000Z | 2022-03-17T03:35:57.000Z | lib/ash_admin/components/resource/nav.ex | ash-project/ash_admin | d542ca9760ec9ecc9d94ce8d50663214938bce40 | [
"MIT"
] | 6 | 2021-03-27T19:24:52.000Z | 2022-03-15T10:19:31.000Z | defmodule AshAdmin.Components.Resource.Nav do
@moduledoc false
use Surface.Component
alias Surface.Components.LiveRedirect
alias AshAdmin.Components.TopNav.Dropdown
prop(resource, :any, required: true)
prop(api, :any, required: true)
prop(tab, :string, required: true)
prop(action, :any)
prop(table, :... | 35.395349 | 276 | 0.56636 |
08f32f5acecf62ef1c926de07031908f1258ca51 | 2,317 | exs | Elixir | programming_elixir_1.3_snippets/enum.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | programming_elixir_1.3_snippets/enum.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | programming_elixir_1.3_snippets/enum.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | # print helper
defmodule Debug do
def print(value) when is_binary(value), do: IO.puts value
def print(value), do: IO.puts "#{inspect value}"
def print(value, prefix) when is_binary(value), do: IO.puts "#{prefix}: #{value}"
def print(value, prefix), do: IO.puts "#{prefix}: #{inspect value}"
end
import Debug
# ... | 29.329114 | 83 | 0.642641 |
08f3398380255e9795c512dbbe4a0e305199045e | 2,623 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 45.224138 | 408 | 0.743805 |
08f33d34a3c5a3dce07bc68cf8ef2264c6c6b794 | 2,020 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config_wrapper.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config_wrapper.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config_wrapper.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.607843 | 173 | 0.751485 |
08f362fa66cb0cb29f7d5e17d30d96b639108356 | 591 | ex | Elixir | apps/service_acquire/lib/acquire/query/where/literal.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query/where/literal.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_acquire/lib/acquire/query/where/literal.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Acquire.Query.Where.Literal do
use Definition, schema: Acquire.Query.Where.Literal.V1
@type t :: %__MODULE__{
value: String.Chars.t()
}
defstruct [:value]
defimpl Acquire.Queryable, for: __MODULE__ do
def parse_statement(%{value: value}) when is_binary(value) do
"'#{valu... | 18.46875 | 65 | 0.646362 |
08f3962060c7cf715dbb704ef2ee0fcb74be13ad | 1,029 | ex | Elixir | lib/credo/check/readability/trailing_blank_line.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/check/readability/trailing_blank_line.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/check/readability/trailing_blank_line.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Readability.TrailingBlankLine do
@moduledoc false
@checkdoc """
Files should end in a trailing blank line.
This is mostly for historical reasons: every text file should end with a \\n,
or newline since this acts as `eol` or the end of the line character.
See also: http://pubs.opengr... | 24.5 | 94 | 0.6793 |
08f3eb7b10b7f6c7521fe23917a75d04a2575f91 | 1,358 | ex | Elixir | apps/customer/lib/customer/web/queries/job_title_alias.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/queries/job_title_alias.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/queries/job_title_alias.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.Query.JobTitleAlias do
use Customer.Query, model: JobTitleAlias
alias Customer.Web.{JobTitle, JobTitleAlias}
def get_or_find_approximate_job_title(repo, name) when is_nil(name), do: {:error, name}
def get_or_find_approximate_job_title(repo, raw_name) do
name = transform_to_string(ra... | 31.581395 | 121 | 0.687776 |
08f3fd186306d309bf85b3db8fce51ca26f43ac4 | 1,135 | ex | Elixir | test/support/conn_case.ex | hrobeers/fran-planner | 1f049ad65f5d18991a8abeeb6ba7fb583463630a | [
"BSD-2-Clause"
] | 3 | 2015-07-18T22:21:30.000Z | 2015-07-19T16:25:35.000Z | test/support/conn_case.ex | hrobeers/fran-planner | 1f049ad65f5d18991a8abeeb6ba7fb583463630a | [
"BSD-2-Clause"
] | null | null | null | test/support/conn_case.ex | hrobeers/fran-planner | 1f049ad65f5d18991a8abeeb6ba7fb583463630a | [
"BSD-2-Clause"
] | null | null | null | defmodule FranAppBackend.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with... | 25.795455 | 73 | 0.7163 |
08f414dfa90abf49db2afd8974d7f82eb1f94787 | 1,125 | exs | Elixir | config/config.exs | EssenceOfChaos/exmarket | b4500efdb3fa4ffa2394d2f020102c1932a8416f | [
"MIT"
] | 2 | 2019-04-24T02:58:12.000Z | 2019-04-24T19:40:43.000Z | config/config.exs | mkwalker4/exmarket | d5227654f1b57c281cffc07f348477dc6abbfb84 | [
"MIT"
] | null | null | null | config/config.exs | mkwalker4/exmarket | d5227654f1b57c281cffc07f348477dc6abbfb84 | [
"MIT"
] | 1 | 2019-04-24T03:07:43.000Z | 2019-04-24T03:07:43.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... | 36.290323 | 73 | 0.755556 |
08f41e449caa9ac12505397b9964716aa99a341f | 2,326 | ex | Elixir | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_threshold_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_threshold_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_threshold_rule.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.290909 | 411 | 0.759243 |
08f41fc54aabca83a1559d72fa58231df5bc16d2 | 978 | ex | Elixir | lib/speak/backends/espeak_backend.ex | ConnorRigby/elixir_speak | d800864f2aeeaf7440d81045185ca37913e96e0a | [
"MIT"
] | 1 | 2018-03-08T23:46:40.000Z | 2018-03-08T23:46:40.000Z | lib/speak/backends/espeak_backend.ex | ConnorRigby/elixir_speak | d800864f2aeeaf7440d81045185ca37913e96e0a | [
"MIT"
] | null | null | null | lib/speak/backends/espeak_backend.ex | ConnorRigby/elixir_speak | d800864f2aeeaf7440d81045185ca37913e96e0a | [
"MIT"
] | null | null | null | defmodule Speak.EspeakBackend do
@moduledoc """
Simple espeak port wrapper.
"""
require Logger
@behaviour Speak.Backend
@impl Speak.Backend
def open(opts) do
exe = Keyword.get(opts, :executable, System.find_executable("espeak"))
if exe do
port_opts = [
:binary,
:exit_status... | 19.176471 | 74 | 0.59816 |
08f44aeb33c4687afcd788c346dbffb4f08eeed7 | 55 | ex | Elixir | web/views/layout_view.ex | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | 1 | 2017-07-20T17:41:13.000Z | 2017-07-20T17:41:13.000Z | web/views/layout_view.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | defmodule Todo.LayoutView do
use Todo.Web, :view
end
| 13.75 | 28 | 0.763636 |
08f4c81d2092879fc6d47dedd250d71aa42c25b5 | 426 | ex | Elixir | lib/boilertalk_web/views/error_view.ex | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | lib/boilertalk_web/views/error_view.ex | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | lib/boilertalk_web/views/error_view.ex | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | defmodule BoilertalkWeb.ErrorView do
use BoilertalkWeb, :view
def render("404.json", _assigns) do
%{errors: %{detail: "Page not found"}}
end
def render("500.json", _assigns) do
%{errors: %{detail: "Internal server error"}}
end
# In case no render clause matches or no
# template is found, let's ... | 23.666667 | 49 | 0.690141 |
08f4dd2e02d3499d48ba4be48595bded083c3307 | 2,197 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/find_devices_by_owner_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/find_devices_by_owner_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/find_devices_by_owner_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.616667 | 149 | 0.736004 |
08f52b1df7efcfa704f5be4609c289fed6960599 | 458 | exs | Elixir | integration_test/cases/browser/hover_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | integration_test/cases/browser/hover_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | integration_test/cases/browser/hover_test.exs | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.Browser.HoverTest do
use Wallaby.Integration.SessionCase, async: true
setup %{session: session} do
{:ok, page: visit(session, "hover.html")}
end
describe "hover/2" do
test "hovers over the specified element", %{page: page} do
refute page
|> visible?(Que... | 24.105263 | 62 | 0.60917 |
08f578b337440dcde762f616a222323c9968e680 | 779 | ex | Elixir | lib/phoenix_tutorial/endpoint.ex | kenshin23/phoenix_tutorial | d6118d0c2a1077b9e39438c1e8fff3cb2965551d | [
"MIT"
] | null | null | null | lib/phoenix_tutorial/endpoint.ex | kenshin23/phoenix_tutorial | d6118d0c2a1077b9e39438c1e8fff3cb2965551d | [
"MIT"
] | null | null | null | lib/phoenix_tutorial/endpoint.ex | kenshin23/phoenix_tutorial | d6118d0c2a1077b9e39438c1e8fff3cb2965551d | [
"MIT"
] | null | null | null | defmodule PhoenixTutorial.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenix_tutorial
# Serve at "/" the given assets from "priv/static" directory
plug Plug.Static,
at: "/", from: :phoenix_tutorial,
only: ~w(css images js favicon.ico robots.txt)
plug Plug.Logger
# Code reloading will only work if ... | 25.129032 | 64 | 0.707317 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.