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
d5833317a95a1f2a7ed26cad26a674620e356772
598
exs
Elixir
test/lighthouse_web/views/error_view_test.exs
thomasvolk/lighthouse
566f4029a1ef1e5863e45b7f9b1b7afa914980ec
[ "Apache-2.0" ]
null
null
null
test/lighthouse_web/views/error_view_test.exs
thomasvolk/lighthouse
566f4029a1ef1e5863e45b7f9b1b7afa914980ec
[ "Apache-2.0" ]
null
null
null
test/lighthouse_web/views/error_view_test.exs
thomasvolk/lighthouse
566f4029a1ef1e5863e45b7f9b1b7afa914980ec
[ "Apache-2.0" ]
null
null
null
defmodule LighthouseWeb.ErrorViewTest do use LighthouseWeb.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(LighthouseWeb.ErrorView, "404.html", []) == "Page not found" end test "re...
27.181818
71
0.692308
d5835ca7c2f4713e1931ccd640f8e8a12ac8645a
17,290
ex
Elixir
lib/mix/lib/mix/tasks/format.ex
edwinthinks/elixir
20d6f3d0538cef346475ccfcc1c72a47f33f0717
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/format.ex
edwinthinks/elixir
20d6f3d0538cef346475ccfcc1c72a47f33f0717
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/format.ex
edwinthinks/elixir
20d6f3d0538cef346475ccfcc1c72a47f33f0717
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Format do use Mix.Task @shortdoc "Formats the given files/patterns" @moduledoc """ Formats the given files and patterns. mix format mix.exs "lib/**/*.{ex,exs}" "test/**/*.{ex,exs}" If any of the files is `-`, then the output is read from stdin and written to stdout. ## Forma...
34.442231
110
0.674436
d58379b5f86cfe882ae3bb7a46fa33b91f8af673
415
ex
Elixir
lib/prelude.ex
elixir-packages/elixir_prelude
967e1f54561436fed7f2a33191bbba3f779dde15
[ "WTFPL" ]
null
null
null
lib/prelude.ex
elixir-packages/elixir_prelude
967e1f54561436fed7f2a33191bbba3f779dde15
[ "WTFPL" ]
null
null
null
lib/prelude.ex
elixir-packages/elixir_prelude
967e1f54561436fed7f2a33191bbba3f779dde15
[ "WTFPL" ]
null
null
null
defmodule Prelude do @moduledoc "Various utility functions that I found useful in my own programming. This module contains functions that did not fit in anywhere else." @doc "Turns `{:ok, x}` tuples into x. Might be useful for pipelines or IEx. Not safe, will raise exception on anything but a two-element t...
29.642857
82
0.710843
d583ad55765175771f28cfe0db6b205b1e3916d9
3,272
exs
Elixir
farmbot_core/test/bot_state/filesystem_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/test/bot_state/filesystem_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/test/bot_state/filesystem_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCore.BotState.FileSystemTest do use ExUnit.Case, async: false alias FarmbotCore.{BotState, BotState.FileSystem} import ExUnit.CaptureLog describe "serializer" do test "arrays are ignored" do state = %{ key1: "OK", key2: %{also: :ok}, key3: [:not, :ok] } ...
31.461538
78
0.566626
d583af23d1c2416f674f7898d823342ee6fefba3
3,212
exs
Elixir
test/messages_test.exs
modelabcl/tds
468f059dc7fc5ea12679ffc1419ecd29ed85b861
[ "Apache-2.0" ]
100
2015-02-03T04:43:28.000Z
2021-09-08T10:21:19.000Z
test/messages_test.exs
modelabcl/tds
468f059dc7fc5ea12679ffc1419ecd29ed85b861
[ "Apache-2.0" ]
97
2015-02-17T15:32:55.000Z
2021-10-06T12:50:31.000Z
test/messages_test.exs
modelabcl/tds
468f059dc7fc5ea12679ffc1419ecd29ed85b861
[ "Apache-2.0" ]
76
2015-02-02T19:50:41.000Z
2021-09-29T07:46:27.000Z
defmodule MessagesTest do use ExUnit.Case, async: true alias Tds.Messages describe "encode_packets" do test "data length < 4088 is encoded into one packet" do assert [ << # type 0x10, # status 0x1, # le...
24.150376
62
0.28269
d583b146ce37e3d4caa10ecb9835f3c9c283e002
673
ex
Elixir
lib/identicon_generator/application.ex
moosch/identicon
7cc9922708e8610315458820523f56b5b2a40cc3
[ "MIT" ]
null
null
null
lib/identicon_generator/application.ex
moosch/identicon
7cc9922708e8610315458820523f56b5b2a40cc3
[ "MIT" ]
null
null
null
lib/identicon_generator/application.ex
moosch/identicon
7cc9922708e8610315458820523f56b5b2a40cc3
[ "MIT" ]
null
null
null
defmodule IdenticonGenerator.Application do @moduledoc """ An endpoint to generate an Identicon based on a string in the url e.g. identicon/my_face """ use Application require Logger def start(_type, _args) do port = get_port() children = [ Plug.Cowboy.child_spec( scheme: :http, ...
22.433333
75
0.676077
d583cc44b3c74c124b98cca9223abd2165d8a343
1,187
exs
Elixir
test/blockchain/transaction_test.exs
bmitc/introducing-blockchain-with-elixir
69cbf670657c8a15313f49acff0c3e6e3cc8023f
[ "MIT" ]
1
2022-03-21T22:57:46.000Z
2022-03-21T22:57:46.000Z
test/blockchain/transaction_test.exs
bmitc/introducing-blockchain-with-elixir
69cbf670657c8a15313f49acff0c3e6e3cc8023f
[ "MIT" ]
null
null
null
test/blockchain/transaction_test.exs
bmitc/introducing-blockchain-with-elixir
69cbf670657c8a15313f49acff0c3e6e3cc8023f
[ "MIT" ]
null
null
null
defmodule Blockchain.TransactionTest do use ExUnit.Case, async: true alias Blockchain.Transaction alias Blockchain.Wallet test "validate a transaction's signature" do assert Transaction.new(Wallet.new(), Wallet.new(), 101.01) |> Transaction.process() |> Transaction.valid_signature?()...
28.95122
95
0.641112
d583f6c7ee6b5f8d0e9e12d0e1c40b81a31feeb6
843
exs
Elixir
apps/legion/test/identity/telephony/phone_number/safety_trait_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion/test/identity/telephony/phone_number/safety_trait_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion/test/identity/telephony/phone_number/safety_trait_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.Identity.Telephony.PhoneNumber.SafetyTraitTest do @moduledoc false use Legion.DataCase alias Legion.Identity.Telephony.PhoneNumber.SafetyTrait @valid_attrs %{phone_number_id: 1, authority_id: 1, valid_for: 1} test "changeset with valid attrs" do assert SafetyTrait.changeset(%SafetyTrai...
30.107143
85
0.765125
d584083d0f03aeb68e7e68d787b1396c4c9cb04d
1,007
ex
Elixir
lib/elixir_pipes.ex
rzcastilho/elixir-pipes
7b296189c316dc4f5ea09a5cb1e51ef6205cb3c2
[ "MIT" ]
null
null
null
lib/elixir_pipes.ex
rzcastilho/elixir-pipes
7b296189c316dc4f5ea09a5cb1e51ef6205cb3c2
[ "MIT" ]
null
null
null
lib/elixir_pipes.ex
rzcastilho/elixir-pipes
7b296189c316dc4f5ea09a5cb1e51ef6205cb3c2
[ "MIT" ]
null
null
null
defmodule ElixirPipes do def no_pipe do Enum.map(String.split(String.upcase("Elixir: Pipe Operator")), fn word -> String.replace(word, ~r/[^A-Za-z0-9]/, "") end) end def pipe do "Elixir: Pipe Operator" |> String.upcase() |> String.split() |> Enum.map(fn word -> String.replace(word, ~r/[^A-Za...
27.972222
125
0.604767
d5842c2b123a2f8ca111a8853768b72c366f07d7
408
ex
Elixir
lib/myelin/cmd/tx/tx_spec.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
lib/myelin/cmd/tx/tx_spec.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
lib/myelin/cmd/tx/tx_spec.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
defmodule Myelin.Cmd.Tx.CmdSpec do @moduledoc """ Options spec for tx command """ def spec do { :tx, [ name: "tx", about: "Checks transaction presence in blockchain", args: [ hash: [ value_name: "HASH", help: "Transaction hash", re...
17.73913
59
0.468137
d58431789f5bcf66ad8ac324f793c82dd98fec27
260
ex
Elixir
lib/blog_web/schema.ex
tyankatsu0105/try-elixir
d92292a401bbc4664643ee82bd18e194b41c6ed5
[ "MIT" ]
null
null
null
lib/blog_web/schema.ex
tyankatsu0105/try-elixir
d92292a401bbc4664643ee82bd18e194b41c6ed5
[ "MIT" ]
null
null
null
lib/blog_web/schema.ex
tyankatsu0105/try-elixir
d92292a401bbc4664643ee82bd18e194b41c6ed5
[ "MIT" ]
1
2021-02-06T19:41:35.000Z
2021-02-06T19:41:35.000Z
defmodule BlogWeb.Schema do use Absinthe.Schema import_types BlogWeb.Schema.ContentTypes alias BlogWeb.Resolvers query do @desc "Get all posts" field :posts, list_of(:post) do resolve &Resolvers.Content.list_posts/3 end end end
16.25
45
0.719231
d5846508fb5c13e86fc5b02c7a0db5b447c5f450
1,976
exs
Elixir
test/json_xema/nested_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
1
2019-06-21T10:55:33.000Z
2019-06-21T10:55:33.000Z
test/json_xema/nested_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
test/json_xema/nested_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
defmodule Xema.NestedTest do use ExUnit.Case, async: true import JsonXema, only: [validate: 2] alias Xema.ValidationError describe "list of objects in one schema:" do setup do %{ schema: ~s( { "type": "object", "properties": { "id": { ...
22.712644
61
0.294028
d584955500f3a47b89ca835b2d75113962c58a7f
566
exs
Elixir
test/models/user_test.exs
KazuCocoa/ex_torello
187d814094f79a3d99bca2746683804333d40dfe
[ "MIT" ]
null
null
null
test/models/user_test.exs
KazuCocoa/ex_torello
187d814094f79a3d99bca2746683804333d40dfe
[ "MIT" ]
null
null
null
test/models/user_test.exs
KazuCocoa/ex_torello
187d814094f79a3d99bca2746683804333d40dfe
[ "MIT" ]
null
null
null
defmodule ExTrello.UserTest do use ExTrello.ModelCase, async: true alias ExTrello.User @valid_attrs %{ encrypted_password: "some content", email: "email@email.com", first_name: "some content", last_name: "some content", password: "123456" } @invalid_attrs %{} test "changeset with vali...
22.64
55
0.696113
d584aa6d878da07c4b902f62191e7f0c7caa9bb1
582
exs
Elixir
mix.exs
jeffkreeftmeijer/bad_seed
9c29c310e334f54cae49f7b30cbb96268d03bb11
[ "MIT" ]
1
2018-04-05T17:38:52.000Z
2018-04-05T17:38:52.000Z
mix.exs
jeffkreeftmeijer/bad_seed
9c29c310e334f54cae49f7b30cbb96268d03bb11
[ "MIT" ]
null
null
null
mix.exs
jeffkreeftmeijer/bad_seed
9c29c310e334f54cae49f7b30cbb96268d03bb11
[ "MIT" ]
null
null
null
defmodule BadSeed.Mixfile do use Mix.Project def project do [ app: :bad_seed, version: "0.1.1", description: "Stores and reuses ExUnit seeds from failing test runs.", package: [ maintainers: ["Jeff Kreeftmeijer"], licenses: ["MIT"], links: %{"GitHub" => "https://...
26.454545
76
0.603093
d584bbafbbc4b240345ea42369e0e67f234544be
653
ex
Elixir
lib/afterglow/alerts/alert_notification_setting.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
lib/afterglow/alerts/alert_notification_setting.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
lib/afterglow/alerts/alert_notification_setting.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
defmodule AfterGlow.Alerts.AlertNotificationSetting do use Ecto.Schema alias Ecto.Changeset alias AfterGlow.Alerts.AlertSetting import EctoEnum @cast_params [:method, :recipients, :alert_setting_id] @required_params @cast_params defenum(MethodEnum, email: 1 ) schema("alert_notification_setting...
23.321429
56
0.732006
d584c9fe24c7c8bf5c2e2206380ed6a84933b137
1,052
exs
Elixir
config/dev.exs
mrDarcyMurphy/elixir-phoenix-playground
8ae7237609a52c9a7a3a31f354329acadfb092a9
[ "MIT" ]
null
null
null
config/dev.exs
mrDarcyMurphy/elixir-phoenix-playground
8ae7237609a52c9a7a3a31f354329acadfb092a9
[ "MIT" ]
null
null
null
config/dev.exs
mrDarcyMurphy/elixir-phoenix-playground
8ae7237609a52c9a7a3a31f354329acadfb092a9
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :my_app, MyApp.Endpoint, http: [port: 4000], ...
29.222222
63
0.708175
d584cf70604bd3784dea0a2af0364f0ee16f0eae
5,832
exs
Elixir
test/kaffe/config/consumer_test.exs
IvanIvanoff/kaffe
ffe4a70657865950aca6cd7642d22f3b55a3ca49
[ "MIT" ]
null
null
null
test/kaffe/config/consumer_test.exs
IvanIvanoff/kaffe
ffe4a70657865950aca6cd7642d22f3b55a3ca49
[ "MIT" ]
null
null
null
test/kaffe/config/consumer_test.exs
IvanIvanoff/kaffe
ffe4a70657865950aca6cd7642d22f3b55a3ca49
[ "MIT" ]
null
null
null
defmodule Kaffe.Config.ConsumerTest do use ExUnit.Case describe "configuration/0" do setup do consumer_config = Application.get_env(:kaffe, :consumer) |> Keyword.delete(:offset_reset_policy) |> Keyword.delete(:ssl) |> Keyword.put(:start_with_earliest_message, true) ...
30.534031
101
0.647462
d58518dec40bc2ba0b6cdbca9270babcf513539c
2,019
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list_warning_data.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list_warning_data.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/machine_types_scoped_list_warning_data.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...
40.38
527
0.743933
d58522e44875360d4a699a17330aafc5b11a7370
113,842
ex
Elixir
lib/ecto/changeset.ex
joerichsen/ecto
13e22d1f2a18f5698d5b0db5112f3936cab86ae8
[ "Apache-2.0" ]
null
null
null
lib/ecto/changeset.ex
joerichsen/ecto
13e22d1f2a18f5698d5b0db5112f3936cab86ae8
[ "Apache-2.0" ]
null
null
null
lib/ecto/changeset.ex
joerichsen/ecto
13e22d1f2a18f5698d5b0db5112f3936cab86ae8
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Changeset do @moduledoc ~S""" Changesets allow filtering, casting, validation and definition of constraints when manipulating structs. There is an example of working with changesets in the introductory documentation in the `Ecto` module. The functions `cast/4` and `change/2` are the usual en...
38.33064
169
0.663261
d5856cb7ebe50e940b0092ce7da1d529bdbb7942
2,782
exs
Elixir
test/hub_web/controllers/post_controller_test.exs
Poeticode/hub
39df28dd5f18fe61899b72f18935c1508dd166ee
[ "MIT" ]
null
null
null
test/hub_web/controllers/post_controller_test.exs
Poeticode/hub
39df28dd5f18fe61899b72f18935c1508dd166ee
[ "MIT" ]
null
null
null
test/hub_web/controllers/post_controller_test.exs
Poeticode/hub
39df28dd5f18fe61899b72f18935c1508dd166ee
[ "MIT" ]
null
null
null
defmodule HubWeb.PostControllerTest do use HubWeb.ConnCase alias Hub.Content @create_attrs %{author: "some author", content: "some content", title: "some title"} @update_attrs %{author: "some updated author", content: "some updated content", title: "some updated title"} @invalid_attrs %{author: nil, content...
31.258427
110
0.651689
d5858730389f450fa3cdfe3bb5f09803684fed81
3,808
ex
Elixir
test/support/model_case.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/support/model_case.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/support/model_case.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be async. Fo...
28.207407
84
0.700105
d5859ffc762c8e6dbaee6706399c1813fbd9f2c1
429
ex
Elixir
web/channels/stream_channel.ex
luisantunesdeveloper/streams
98b85124dd1c39c2ebe1254e454be98863bacb7e
[ "MIT" ]
null
null
null
web/channels/stream_channel.ex
luisantunesdeveloper/streams
98b85124dd1c39c2ebe1254e454be98863bacb7e
[ "MIT" ]
null
null
null
web/channels/stream_channel.ex
luisantunesdeveloper/streams
98b85124dd1c39c2ebe1254e454be98863bacb7e
[ "MIT" ]
null
null
null
defmodule Streams.StreamChannel do use Streams.Web, :channel #alias Streams.Presence def join("stream", payload, socket) do {:ok, payload, socket} end # It is also common to receive messages from the client and # broadcast to everyone in the current topic (stream:lobby). def handle_in("video", %{"bo...
25.235294
62
0.678322
d585f8c6341c6e10525f2d5ab97181da5c92fc2d
2,388
ex
Elixir
api/web/controllers/category_controller.ex
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
null
null
null
api/web/controllers/category_controller.ex
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
6
2021-05-25T05:47:16.000Z
2022-02-26T04:42:31.000Z
api/web/controllers/category_controller.ex
NaiRobley/IntoTheBookmarks
a5e36aa39740e4908fdc46f8a1fb6df3d92b2cda
[ "Apache-2.0" ]
null
null
null
defmodule IntoTheBookmarks.CategoryController do use IntoTheBookmarks.Web, :controller alias IntoTheBookmarks.Category alias IntoTheBookmarks.Bookmark def index(conn, _params) do user_id = get_session(conn, :current_user_id) categories = Repo.all(from c in Category, where: c....
34.114286
93
0.64531
d5861522ea2e8bd4fc364e300224df1691c8a72a
20,160
exs
Elixir
test/appsignal/transaction_test.exs
taverngoal/appsignal-elixir
b7a991e14ff2482131daef0071f27b3d6b32b649
[ "MIT" ]
1
2021-04-21T05:25:44.000Z
2021-04-21T05:25:44.000Z
test/appsignal/transaction_test.exs
taverngoal/appsignal-elixir
b7a991e14ff2482131daef0071f27b3d6b32b649
[ "MIT" ]
null
null
null
test/appsignal/transaction_test.exs
taverngoal/appsignal-elixir
b7a991e14ff2482131daef0071f27b3d6b32b649
[ "MIT" ]
1
2020-10-08T20:22:54.000Z
2020-10-08T20:22:54.000Z
defmodule AppsignalTransactionTest do use ExUnit.Case import AppsignalTest.Utils alias Appsignal.{Transaction, TransactionRegistry} alias Appsignal.Transaction.Receiver test "transaction lifecycle" do transaction = Transaction.start("test1", :http_request) assert %Transaction{} = transaction as...
31.20743
98
0.634325
d5864771d878fa354e439bbcbe89faf66b70f71a
8,962
ex
Elixir
lib/elixir/lib/kernel/lexical_tracker.ex
bsmr-erlang/elixir
0e72d4839cda97edce75ca0c537555ce4ead7a6a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/lexical_tracker.ex
bsmr-erlang/elixir
0e72d4839cda97edce75ca0c537555ce4ead7a6a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/lexical_tracker.ex
bsmr-erlang/elixir
0e72d4839cda97edce75ca0c537555ce4ead7a6a
[ "Apache-2.0" ]
null
null
null
# This is an Elixir module responsible for tracking references # to modules, remote dispatches, and the usage of # aliases/imports/requires in the Elixir scope. # # Note that since this is required for bootstrap, we can't use # any of the `GenServer.Behaviour` conveniences. defmodule Kernel.LexicalTracker do @moduled...
27.919003
98
0.666704
d5866867619aaaedd8620cfa5518a9f6a6245911
696
ex
Elixir
lib/matchers/in_built.ex
mpalmer/elixir_mock
ee939960217f89a2387a294cdac6cd755c8a731c
[ "MIT" ]
25
2017-07-17T03:21:58.000Z
2022-02-12T06:30:33.000Z
lib/matchers/in_built.ex
mpalmer/elixir_mock
ee939960217f89a2387a294cdac6cd755c8a731c
[ "MIT" ]
7
2017-04-04T02:10:42.000Z
2017-06-18T00:21:56.000Z
lib/matchers/in_built.ex
wanderanimrod/mockex
ee939960217f89a2387a294cdac6cd755c8a731c
[ "MIT" ]
2
2017-10-16T16:00:37.000Z
2021-10-09T05:45:04.000Z
defmodule ElixirMock.Matchers.InBuilt do @moduledoc false def any(type) do case type do :_ -> fn _thing -> true end :atom -> &is_atom/1 :binary -> &is_bitstring/1 :boolean -> &is_boolean/1 :float -> &is_float/1 :function -> &is_function/1 :integer -> &is_integer/1 ...
31.636364
115
0.600575
d586adff6d794d114d25a78404df41d4097fe805
480
exs
Elixir
test/curator_timeoutable/hooks_test.exs
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
test/curator_timeoutable/hooks_test.exs
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
test/curator_timeoutable/hooks_test.exs
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
defmodule CuratorTimeoutable.HooksTest do use ExUnit.Case, async: true doctest CuratorTimeoutable.Hooks use Plug.Test import CuratorTimeoutable.PlugHelper setup do conn = conn_with_fetched_session(conn(:get, "/")) {:ok, %{conn: conn}} end test "after_sign_in with a session", %{conn: conn} do ...
24
73
0.71875
d586d12b9184a17f9f34f982b1bbb03cda221d52
353
ex
Elixir
lib/grapex/io_utils.ex
zeionara/grapex
d10bd40d61cd00ff4ace6c8922745748de509948
[ "Apache-2.0" ]
null
null
null
lib/grapex/io_utils.ex
zeionara/grapex
d10bd40d61cd00ff4ace6c8922745748de509948
[ "Apache-2.0" ]
1
2021-11-14T20:42:26.000Z
2021-11-14T20:42:26.000Z
lib/grapex/io_utils.ex
zeionara/grapex
d10bd40d61cd00ff4ace6c8922745748de509948
[ "Apache-2.0" ]
null
null
null
defmodule Grapex.IOutils do def inspect_shape(x, message \\ nil) do unless message == nil do IO.puts message end x |> Nx.shape |> IO.inspect x end def clear_lines(n_lines \\ 1) do for _ <- 1..n_lines do IO.write "\x1b[F" # IO.write "\033[F\033[F\033[F" IO.wri...
15.347826
41
0.558074
d586fc5fec676f7246eb9bcb74e5f30fe10e5431
2,626
ex
Elixir
lib/annon_api/plugins/auth.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
328
2017-05-05T15:19:46.000Z
2022-03-11T10:52:45.000Z
lib/annon_api/plugins/auth.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
83
2017-04-30T10:36:15.000Z
2019-10-14T13:14:34.000Z
lib/annon_api/plugins/auth.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
29
2017-05-02T14:36:50.000Z
2021-09-03T13:36:17.000Z
defmodule Annon.Plugins.Auth do @moduledoc """ This plugin authenticates API consumers by using a configured strategy. """ use Annon.Plugin, plugin_name: :auth alias Annon.Helpers.Response alias EView.Views.Error, as: ErrorView alias Plug.Conn alias Annon.Plugin.UpstreamRequest defdelegate validate_s...
36.472222
119
0.71249
d58795346920adc86ab0a97b86580a61a0cc3c9f
1,044
ex
Elixir
lib/response/fault_processor.ex
EevanW/ex_open_travel
cc52155dd0dbf7e9a305c07890c2de47e87e3585
[ "Apache-2.0" ]
null
null
null
lib/response/fault_processor.ex
EevanW/ex_open_travel
cc52155dd0dbf7e9a305c07890c2de47e87e3585
[ "Apache-2.0" ]
null
null
null
lib/response/fault_processor.ex
EevanW/ex_open_travel
cc52155dd0dbf7e9a305c07890c2de47e87e3585
[ "Apache-2.0" ]
null
null
null
defmodule ExOpenTravel.Response.FaultProcessor do alias ExOpenTravel.Error def create_response(e, meta) do error = convert(e) message = Error.message(error) {:error, error, meta |> Map.put(:success, false) |> Map.update(:errors, [message], &[message | &1])} end def convert(%{faultcode: code,...
40.153846
95
0.68295
d587a9fb3d4a34be986411cd4886b565005cc2c1
10,892
ex
Elixir
lib/aws/shield.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
2
2019-11-17T02:31:18.000Z
2019-11-20T22:00:29.000Z
lib/aws/shield.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
null
null
null
lib/aws/shield.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
1
2019-11-16T18:08:18.000Z
2019-11-16T18:08:18.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/jkakar/aws-codegen for more details. defmodule AWS.Shield do @moduledoc """ AWS Shield Advanced This is the *AWS Shield Advanced API Reference*. This guide is for developers who need detailed information about the AWS Shield Advanced API ...
40.044118
142
0.72466
d587bce53f156205d5a93578cb6a7f064c78d1b8
3,932
ex
Elixir
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/reports.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/reports.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/reports.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.717172
196
0.643947
d587bd59461323188250dab45e2aeca7fcafe52f
5,719
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_entity.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_entity.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_entity.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
49.301724
375
0.720231
d587f208355d03385c182463057fcb60c6e34d3b
755
ex
Elixir
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/snapshot_list.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.Compute/lib/microsoft/azure/management/compute/model/snapshot_list.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/snapshot_list.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.Compute.Model.SnapshotList do @moduledoc """ The List Snapshots operation response. """ @derive [Poison.Encode...
25.166667
95
0.716556
d58825753ced2979392fb266a2156c7bdba8c829
628
ex
Elixir
{{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/plugs/browser_auth.ex
StephaneRob/cookiecutter-phoenix
c71a01a582fe8d57999d646cea7cbd820a4c73ca
[ "BSD-2-Clause" ]
4
2018-01-16T15:40:04.000Z
2020-01-11T19:34:42.000Z
{{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/plugs/browser_auth.ex
StephaneRob/cookiecutter-phoenix
c71a01a582fe8d57999d646cea7cbd820a4c73ca
[ "BSD-2-Clause" ]
4
2018-03-10T14:18:37.000Z
2018-03-13T20:43:06.000Z
{{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/plugs/browser_auth.ex
StephaneRob/cookiecutter-phoenix
c71a01a582fe8d57999d646cea7cbd820a4c73ca
[ "BSD-2-Clause" ]
1
2019-10-11T20:52:31.000Z
2019-10-11T20:52:31.000Z
defmodule {{cookiecutter.app_name.split('_')|map('title')|join}}Web.Plug.BrowserAuth do @claims %{typ: "access"} use Guardian.Plug.Pipeline, otp_app: :my_app, module: {{cookiecutter.app_name.split('_')|map('title')|join}}.Guardian, error_handler: {{cookiecutter.app_name.split('_')|map('title')|join}}.G...
44.857143
99
0.727707
d58858ae2aa6af0a20405d0f435d24e80c46217d
748
exs
Elixir
test/source_test.exs
joshnuss/guzzle
560ccda34de6547c26c8efbcb478a6506546b24c
[ "MIT" ]
4
2015-02-10T07:06:10.000Z
2020-01-14T23:19:54.000Z
test/source_test.exs
joshnuss/guzzle
560ccda34de6547c26c8efbcb478a6506546b24c
[ "MIT" ]
1
2015-02-10T07:08:06.000Z
2015-02-10T08:45:36.000Z
test/source_test.exs
joshnuss/guzzle
560ccda34de6547c26c8efbcb478a6506546b24c
[ "MIT" ]
null
null
null
defmodule SourceTest do use ExUnit.Case, async: true doctest Guzzle.Source import Guzzle.Source test "single glob" do files = source("test/fixtures/*.html") |> Enum.to_list assert files == [{"test/fixtures/about.html", "<h1>About</h1>\n"}, {"test/fixtures/index.html", "<h1>...
24.933333
70
0.590909
d588864b38e6f68d10e759b7af3fbbe070da179a
7,604
ex
Elixir
lib/twirp/plug.ex
jnatherley/twirp
bf558df38dce622708ffcc368008dcfcb30f63c1
[ "Apache-2.0" ]
null
null
null
lib/twirp/plug.ex
jnatherley/twirp
bf558df38dce622708ffcc368008dcfcb30f63c1
[ "Apache-2.0" ]
null
null
null
lib/twirp/plug.ex
jnatherley/twirp
bf558df38dce622708ffcc368008dcfcb30f63c1
[ "Apache-2.0" ]
null
null
null
defmodule Twirp.Plug do @moduledoc """ Provides a plug that takes service and handler module. If the request is directed at the "twirp" endpoint then the plug will intercept the conn and process it. Otherwise it allows the conn to pass through. This is a deviation from the twirp specification but it allows us...
27.751825
140
0.611389
d5889f5ac19444f9b3a1326d1955a3906e80fb61
11,900
ex
Elixir
lib/tesla/adapter/mint.ex
brenomaia/tesla
c1e0f2d031eb87a207db33333b8d4afc58384e87
[ "MIT" ]
1
2021-08-18T06:48:51.000Z
2021-08-18T06:48:51.000Z
lib/tesla/adapter/mint.ex
brenomaia/tesla
c1e0f2d031eb87a207db33333b8d4afc58384e87
[ "MIT" ]
null
null
null
lib/tesla/adapter/mint.ex
brenomaia/tesla
c1e0f2d031eb87a207db33333b8d4afc58384e87
[ "MIT" ]
1
2021-09-26T18:49:44.000Z
2021-09-26T18:49:44.000Z
if Code.ensure_loaded?(Mint.HTTP) do defmodule Tesla.Adapter.Mint do @moduledoc """ Adapter for [mint](https://github.com/elixir-mint/mint). **NOTE:** The minimum supported Elixir version for mint is 1.5.0 Remember to add `{:mint, "~> 1.0"}` and `{:castore, "~> 0.1"}` to dependencies. Also, you ...
34.593023
286
0.568235
d588ced3aabd1b1caff32abe8e0450a503c79739
261
ex
Elixir
apps/gobstopper_service/lib/gobstopper.service/repo.ex
ZURASTA/gobstopper
f8d231c4459af6fa44273c3ef80857348410c70b
[ "BSD-2-Clause" ]
3
2017-05-02T12:53:07.000Z
2017-05-28T11:53:15.000Z
apps/gobstopper_service/lib/gobstopper.service/repo.ex
ScrimpyCat/gobstopper
41a64991d8fb809065a52d09f8f4c6c707ae3403
[ "BSD-2-Clause" ]
12
2017-07-24T12:29:51.000Z
2018-04-05T03:58:10.000Z
apps/gobstopper_service/lib/gobstopper.service/repo.ex
ZURASTA/gobstopper
f8d231c4459af6fa44273c3ef80857348410c70b
[ "BSD-2-Clause" ]
4
2017-07-24T12:19:23.000Z
2019-02-19T06:34:46.000Z
defmodule Gobstopper.Service.Repo do use Ecto.Repo, otp_app: :gobstopper_service def child_spec(args) do %{ id: __MODULE__, start: { __MODULE__, :start_link, [args] }, type: :supervisor } end end
21.75
55
0.56705
d588db235874da7a3a78a3d501e8ad591b57dfe0
3,432
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/certificate_revocation_list.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/certificate_revocation_list.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/certificate_revocation_list.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...
44.571429
214
0.699009
d588eed24b66560d44fe19b4ecb8ead62ecb3942
292
ex
Elixir
lib/reactive/range_scaler.ex
ReactiveWeb/reactive_entity
083f8cb9cd7bedb17642b57153870335b5f00098
[ "MIT" ]
null
null
null
lib/reactive/range_scaler.ex
ReactiveWeb/reactive_entity
083f8cb9cd7bedb17642b57153870335b5f00098
[ "MIT" ]
null
null
null
lib/reactive/range_scaler.ex
ReactiveWeb/reactive_entity
083f8cb9cd7bedb17642b57153870335b5f00098
[ "MIT" ]
null
null
null
defmodule Reactive.RangeScaler do require Logger @main_table :entity_range_scaler @backup_tables [:entity_range_scaler_backup1,:entity_range_scaler_backup2] def get_node(id) do bid=Reactive.EntitiesDb.entity_db_id(id) node() end def get_backups(id) do [] end end
18.25
76
0.753425
d588f38e2cdf8f81275993d70eb9c7198a4bfa02
481
ex
Elixir
lib/web_driver_client/w3c_wire_protocol_client/cookie.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
8
2019-11-24T18:33:12.000Z
2020-12-09T10:20:09.000Z
lib/web_driver_client/w3c_wire_protocol_client/cookie.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
67
2019-12-20T16:33:30.000Z
2021-09-14T03:50:10.000Z
lib/web_driver_client/w3c_wire_protocol_client/cookie.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
10
2020-06-19T16:15:03.000Z
2021-09-13T17:56:25.000Z
# credo:disable-for-this-file Credo.Check.Readability.ModuleDoc import WebDriverClient.CompatibilityMacros defmodule WebDriverClient.W3CWireProtocolClient.Cookie do prerelease_moduledoc """ Details about a cookie stored in the browser """ @type name :: String.t() @type value :: String.t() @type domain :: ...
22.904762
63
0.671518
d589040993dd2d02a38c54cb180bd2c5c0274eaa
1,992
ex
Elixir
clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_memcache_v1beta2_location_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_memcache_v1beta2_location_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_memcache_v1beta2_location_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.571429
201
0.74247
d5893c9485be928aad64cb117cb78ed7ff9975cf
86
exs
Elixir
book/sum.exs
davidk01/elixir-playground
35c36da32688efb80fc286f795d82a6a2e034e3f
[ "MIT" ]
null
null
null
book/sum.exs
davidk01/elixir-playground
35c36da32688efb80fc286f795d82a6a2e034e3f
[ "MIT" ]
null
null
null
book/sum.exs
davidk01/elixir-playground
35c36da32688efb80fc286f795d82a6a2e034e3f
[ "MIT" ]
null
null
null
defmodule Sum do def sum(0), do: 0 def sum(n) when n >= 0, do: n + sum(n - 1) end
17.2
44
0.55814
d589454329e0895abeb7e801f4a7391ce118ca5a
257
ex
Elixir
lib/hedwig_saliva.ex
cigzigwon/hedwig_saliva
4ee972f896c793acbdf58a513efec850e2bc0d09
[ "MIT" ]
null
null
null
lib/hedwig_saliva.ex
cigzigwon/hedwig_saliva
4ee972f896c793acbdf58a513efec850e2bc0d09
[ "MIT" ]
null
null
null
lib/hedwig_saliva.ex
cigzigwon/hedwig_saliva
4ee972f896c793acbdf58a513efec850e2bc0d09
[ "MIT" ]
null
null
null
defmodule HedwigSaliva do use Application def start(_, _) do import Supervisor.Spec, warn: false children = [ supervisor(HedwigSaliva.ConnectionSupervisor, []) ] Supervisor.start_link(children, strategy: :one_for_one) end end
18.357143
59
0.70428
d58961c7fba744e322db1a8810e0bcbd862e83ff
1,132
ex
Elixir
services/fc_identity/lib/fc_identity/stores/username_store.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
46
2018-10-13T23:18:13.000Z
2021-08-07T07:46:51.000Z
services/fc_identity/lib/fc_identity/stores/username_store.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
25
2018-10-14T00:56:07.000Z
2019-12-23T19:41:02.000Z
services/fc_identity/lib/fc_identity/stores/username_store.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
5
2018-12-16T04:39:51.000Z
2020-10-01T12:17:03.000Z
defmodule FCIdentity.UsernameStore do @doc """ Keep the the username from the given event for future use. """ @spec put(String.t(), String.t(), String.t() | nil) :: :ok | {:error, :key_already_exist} def put(username, user_id, account_id \\ nil) when is_binary(username) do key = generate_key(String.downca...
29.789474
91
0.677562
d5896aff08db0c3e28ff32bbe065da6c52103e2e
279
ex
Elixir
lib/ci_fetcher/supervisor.ex
kupferwerk/ci_visuals
95b6d56b074d6dbc0aad33764fb1dae38f1e3822
[ "MIT" ]
null
null
null
lib/ci_fetcher/supervisor.ex
kupferwerk/ci_visuals
95b6d56b074d6dbc0aad33764fb1dae38f1e3822
[ "MIT" ]
null
null
null
lib/ci_fetcher/supervisor.ex
kupferwerk/ci_visuals
95b6d56b074d6dbc0aad33764fb1dae38f1e3822
[ "MIT" ]
null
null
null
defmodule CiVisuals.CiFetcher.Supervisor do use Supervisor def start_link do Supervisor.start_link(__MODULE__, :ok) end def init(:ok) do children = [ worker(CiVisuals.CiFetcher.Jenkins, []) ] supervise(children, strategy: :one_for_one) end end
17.4375
47
0.695341
d58987ff9d46c73b92329b8871f6825e4f25c862
12,663
exs
Elixir
test/teslamate_web/live/car_summary_live_test.exs
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
1
2021-05-20T07:40:58.000Z
2021-05-20T07:40:58.000Z
test/teslamate_web/live/car_summary_live_test.exs
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
171
2020-07-08T18:42:57.000Z
2022-03-23T00:55:30.000Z
test/teslamate_web/live/car_summary_live_test.exs
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
1
2021-03-26T15:46:37.000Z
2021-03-26T15:46:37.000Z
defmodule TeslaMateWeb.CarLive.SummaryTest do use TeslaMateWeb.ConnCase use TeslaMate.VehicleCase alias TeslaApi.Vehicle.State.VehicleState.SoftwareUpdate alias TeslaMate.{Settings, Log, Repo} defp table_row(html, key, value, opts \\ []) do assert {"tr", _, [{"td", _, [^key]}, {"td", [], [v]}]} = ...
28.265625
96
0.480771
d58988daa9e4978e16875ea7bbfa67eeab6ef0c4
2,610
exs
Elixir
mix.exs
vvuk/bors-ng
607f0eac378cea7658b89213897f14cf256222f8
[ "Apache-2.0" ]
null
null
null
mix.exs
vvuk/bors-ng
607f0eac378cea7658b89213897f14cf256222f8
[ "Apache-2.0" ]
1
2020-03-07T08:28:14.000Z
2020-03-07T08:28:14.000Z
mix.exs
vvuk/bors-ng
607f0eac378cea7658b89213897f14cf256222f8
[ "Apache-2.0" ]
null
null
null
defmodule BorsNg.Mixfile do use Mix.Project def project do [ name: "Bors-NG", app: :bors, version: "0.1.0", source_url: "https://github.com/bors-ng/bors-ng", homepage_url: "https://bors.tech/", docs: [ main: "hacking", extras: [ "HACKING.md", "CONTRIBUTING.md", "RE...
30
118
0.535632
d589b0ee6b97451aa2fe704098c4e5d1c2bd35fa
702
exs
Elixir
test/livebook_web/plugs/memory_provider_test.exs
mcrumm/livebook
b1ceedc2205e64348212fbf7edce568cdb084e97
[ "Apache-2.0" ]
1
2021-05-21T22:14:23.000Z
2021-05-21T22:14:23.000Z
test/livebook_web/plugs/memory_provider_test.exs
cristina007-bot/livebook
101f582196a161a06b62b38fe55c7f8c0a04b54d
[ "Apache-2.0" ]
null
null
null
test/livebook_web/plugs/memory_provider_test.exs
cristina007-bot/livebook
101f582196a161a06b62b38fe55c7f8c0a04b54d
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.MemoryProviderTest do use ExUnit.Case, async: true defmodule MyProvider do use LivebookWeb.MemoryProvider, from: Path.expand("../../support/static", __DIR__), gzip: true end test "includes uncompressed files that are not gzippable" do assert %{content: ""} = MyProvide...
30.521739
77
0.689459
d589f74b40c08f70755ac117df841e685b5c0c8e
2,815
ex
Elixir
lib/glimesh_web/live/gct_live/global_emotes.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh_web/live/gct_live/global_emotes.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh_web/live/gct_live/global_emotes.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.GctLive.GlobalEmotes do use GlimeshWeb, :live_view @impl true def mount(_, session, socket) do if session["locale"], do: Gettext.put_locale(session["locale"]) user = Glimesh.Accounts.get_user_by_session_token(session["user_token"]) emotes = Glimesh.Emotes.list_emotes(true) ...
27.871287
96
0.57833
d589fd1f082ff4bfa46be0cc83e63d1ce2aa1fd9
464
ex
Elixir
Inmana/lib/inmana/supplies/expiration_notification.ex
Samuel-Ricardo/Inmana
603d20ecc507eebda24d80fc8216de547b1c5778
[ "MIT" ]
5
2021-04-19T21:33:31.000Z
2021-07-14T18:55:36.000Z
Inmana/lib/inmana/supplies/expiration_notification.ex
Samuel-Ricardo/Inmana
603d20ecc507eebda24d80fc8216de547b1c5778
[ "MIT" ]
null
null
null
Inmana/lib/inmana/supplies/expiration_notification.ex
Samuel-Ricardo/Inmana
603d20ecc507eebda24d80fc8216de547b1c5778
[ "MIT" ]
null
null
null
defmodule Inmana.Supplies.ExpirationNotification do alias Inmana.Mailer alias Inmana.Supplies.{ExpirationEmail, GetByExpirationDate} def send do data = GetByExpirationDate.call() data |>Task.async_stream( fn {to_email, supplies} -> send_email(to_email, supplies) end) |> Stream.run() end ...
20.173913
88
0.702586
d58a54e80dbfe4f6476acb54dec8e603506f6dac
37,779
exs
Elixir
test/ecto/changeset_test.exs
jeregrine/ecto
98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b
[ "Apache-2.0" ]
null
null
null
test/ecto/changeset_test.exs
jeregrine/ecto
98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b
[ "Apache-2.0" ]
null
null
null
test/ecto/changeset_test.exs
jeregrine/ecto
98b2dd4bf7b39738ab9a5ae3fa7e48e43a4af39b
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.ChangesetTest do use ExUnit.Case, async: true import Ecto.Changeset defmodule Comment do use Ecto.Schema schema "comments" do belongs_to :post, Ecto.ChangesetTest.Post end end defmodule Post do use Ecto.Schema schema "posts" do field :title field :body ...
35.877493
134
0.62503
d58a673cbeac91f7e5aee73a7c98d5848e546e92
9,055
ex
Elixir
lib/paytm/api/wallet.ex
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
2
2017-11-10T14:57:02.000Z
2018-01-30T04:53:11.000Z
lib/paytm/api/wallet.ex
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
2
2019-04-16T12:55:01.000Z
2020-08-25T15:17:52.000Z
lib/paytm/api/wallet.ex
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
null
null
null
defmodule Paytm.API.Wallet do use Paytm.API.Base alias Paytm.Checksum alias Paytm.API.OAuth.Token alias Paytm.API.Wallet.{Balance, Transaction} @error_codes %{ "403" => :unauthorized_access, "404" => :user_not_found, "408" => :request_timed_out, "500" => :internal_server_error, "AM_1001" ...
31.660839
99
0.577581
d58a69a1a83331a13aae1b938b563a0f48fe7de8
59
ex
Elixir
apps/language_server/test/fixtures/references/lib/a.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
865
2018-10-31T20:29:13.000Z
2022-03-29T11:13:39.000Z
apps/language_server/test/fixtures/references/lib/a.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
441
2019-01-05T02:33:52.000Z
2022-03-30T20:56:50.000Z
apps/language_server/test/fixtures/references/lib/a.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
126
2018-11-12T19:16:53.000Z
2022-03-26T13:27:50.000Z
defmodule A do def other_fun do B.my_fun() end end
9.833333
18
0.661017
d58ac4e672bb911b02ae5a48eaca9c6ac1f29258
891
ex
Elixir
lib/cache/ets_mock.ex
sergeypopol/apisex_auth_bearer
c32f6cb4534a4995bbb221f6d029f8de8f156623
[ "Apache-2.0" ]
2
2019-05-16T16:29:20.000Z
2021-04-17T04:16:18.000Z
lib/cache/ets_mock.ex
sergeypopol/apisex_auth_bearer
c32f6cb4534a4995bbb221f6d029f8de8f156623
[ "Apache-2.0" ]
1
2018-10-31T18:37:31.000Z
2018-10-31T18:38:44.000Z
lib/cache/ets_mock.ex
tanguilp/apisex_auth_bearer
c32f6cb4534a4995bbb221f6d029f8de8f156623
[ "Apache-2.0" ]
null
null
null
defmodule APIacAuthBearer.Cache.ETSMock do @behaviour APIacAuthBearer.Cache @moduledoc """ A mock cache implementation for tests Stores the bearer tokens in an ETS table. Do not support TTL, which means bearers will be stored until the application is stopped """ @impl true def init_opts(opts), do: op...
22.275
88
0.695847
d58aeb6062af438af8048349fc030b867cb114fb
2,308
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_output_directory.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_output_directory.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_output_directory.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...
40.491228
321
0.758666
d58b26ff0232dd0e6b095ccf1490805cc591ef31
195
exs
Elixir
test/hacker_news_test.exs
vasuadari/hacker_news_alert
9d256714bfd940ed083681e0e2b6d2ea1fa3f98e
[ "MIT" ]
3
2020-03-30T08:40:46.000Z
2020-04-14T05:53:13.000Z
test/hacker_news_test.exs
vasuadari/hacker_news_alert
9d256714bfd940ed083681e0e2b6d2ea1fa3f98e
[ "MIT" ]
3
2020-03-28T21:31:07.000Z
2020-03-30T09:10:36.000Z
test/hacker_news_test.exs
vasuadari/hacker_news_alert
9d256714bfd940ed083681e0e2b6d2ea1fa3f98e
[ "MIT" ]
3
2020-03-30T08:48:09.000Z
2020-04-24T14:35:09.000Z
defmodule HackerNewsTest do use ExUnit.Case @tag :pending describe "fetch_top_news/0" do test "returns top news" do assert is_list(HackerNews.fetch_top_news()) end end end
17.727273
49
0.712821
d58b4fa501b7c314e8aa36e4f163f94ec860c20c
534
ex
Elixir
lib/cased/audit_trail.ex
cased/cased-elixir
a19a4c5d6dec3374c1067a908b357db798cfb2c8
[ "MIT" ]
3
2021-02-06T01:41:33.000Z
2021-07-09T21:19:06.000Z
lib/cased/audit_trail.ex
cased/cased-elixir
a19a4c5d6dec3374c1067a908b357db798cfb2c8
[ "MIT" ]
1
2021-07-09T20:34:35.000Z
2021-07-09T20:35:29.000Z
lib/cased/audit_trail.ex
cased/cased-elixir
a19a4c5d6dec3374c1067a908b357db798cfb2c8
[ "MIT" ]
2
2021-03-05T22:52:16.000Z
2021-03-18T13:18:30.000Z
defmodule Cased.AuditTrail do @moduledoc """ Data modeling a Cased audit trail. """ @enforce_keys [:id, :name] defstruct [:id, :name] @type t :: %__MODULE__{ id: nil | String.t(), name: String.t() } @doc false @spec from_json(String.t() | map()) :: t() def from_json(name...
17.225806
45
0.544944
d58b56e94bcfde1f541896139fe475a0cb1818b1
1,391
ex
Elixir
lib/unnecessary_pattern_matching.ex
emibloque/nicene
f22560520bf7da573ed3e046c49526b16eb4b407
[ "MIT" ]
34
2020-01-16T09:55:27.000Z
2021-11-12T12:09:19.000Z
lib/unnecessary_pattern_matching.ex
emibloque/nicene
f22560520bf7da573ed3e046c49526b16eb4b407
[ "MIT" ]
21
2020-02-06T09:08:29.000Z
2021-04-12T12:57:23.000Z
lib/unnecessary_pattern_matching.ex
emibloque/nicene
f22560520bf7da573ed3e046c49526b16eb4b407
[ "MIT" ]
9
2020-01-27T10:46:45.000Z
2021-02-22T19:27:09.000Z
defmodule Nicene.UnnecessaryPatternMatching do @moduledoc """ Check to ensure that we aren't doing any unnecessary pattern matching or using unnecessary guard clauses for functions. """ @explanation [check: @moduledoc] use Credo.Check, base_priority: :high, category: :design alias Nicene.Traverse @d...
28.387755
92
0.646298
d58b5b5a0765b4fabb91cba37cb46f9d8b637cff
7,574
ex
Elixir
lib/rsa_ex.ex
c00lerxo/rsa-ex
fe86ad5b4912bbf9ef38ca81d1992f4f86ded82b
[ "MIT" ]
null
null
null
lib/rsa_ex.ex
c00lerxo/rsa-ex
fe86ad5b4912bbf9ef38ca81d1992f4f86ded82b
[ "MIT" ]
null
null
null
lib/rsa_ex.ex
c00lerxo/rsa-ex
fe86ad5b4912bbf9ef38ca81d1992f4f86ded82b
[ "MIT" ]
1
2021-08-17T13:00:20.000Z
2021-08-17T13:00:20.000Z
defmodule RsaEx do alias RsaEx.{RSAPrivateKey, RSAPublicKey} @type private_key :: String.t @type public_key :: String.t @doc """ Generates RSA private key of {bits} size. Default is 2048. iex> {:ok, priv} = RsaEx.generate_private_key("4096") """ @spec generate_private_key :: {atom, private_key} ...
35.392523
119
0.670452
d58b609fbeb7477ba3703e0ad71e478b2ca64e20
9,911
ex
Elixir
lib/tracer.ex
chaodhib/spandex
58674c5440c7800658a52d199532a620406dcdd2
[ "MIT" ]
null
null
null
lib/tracer.ex
chaodhib/spandex
58674c5440c7800658a52d199532a620406dcdd2
[ "MIT" ]
1
2018-10-04T13:29:32.000Z
2018-10-04T13:29:32.000Z
lib/tracer.ex
chaodhib/spandex
58674c5440c7800658a52d199532a620406dcdd2
[ "MIT" ]
1
2019-08-08T16:40:10.000Z
2019-08-08T16:40:10.000Z
defmodule Spandex.Tracer do @moduledoc """ A module that can be used to build your own tracer. Example: ``` defmodule MyApp.Tracer do use Spandex.Tracer, otp_app: :my_app end ``` """ alias Spandex.{ Span, SpanContext, Trace } @type tagged_tuple(arg) :: {:ok, arg} | {:error, ter...
32.495082
138
0.586016
d58b65cee9ff8b6a6d57aadaa186624fbd063d7a
326
exs
Elixir
test/test_helper.exs
maxbeizer/hedwig_trivia
9087aeb12d9910633e6b7975c7ef7aa3130a1bd6
[ "MIT" ]
null
null
null
test/test_helper.exs
maxbeizer/hedwig_trivia
9087aeb12d9910633e6b7975c7ef7aa3130a1bd6
[ "MIT" ]
2
2019-12-04T20:59:47.000Z
2019-12-04T21:00:14.000Z
test/test_helper.exs
maxbeizer/hedwig_trivia
9087aeb12d9910633e6b7975c7ef7aa3130a1bd6
[ "MIT" ]
2
2019-12-04T16:21:06.000Z
2019-12-25T03:10:33.000Z
defmodule HedwigTrivia.RobotCase do use ExUnit.CaseTemplate using responders: responders do quote do use Hedwig.RobotCase @moduletag start_robot: true, name: "hedwig", responders: unquote(responders), capture_log: true end end end ExUnit.st...
19.176471
49
0.616564
d58b703a7b9875e482bafcb5edc7e9625808398c
2,172
ex
Elixir
lib/chat_api_web/controllers/note_controller.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api_web/controllers/note_controller.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api_web/controllers/note_controller.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApiWeb.NoteController do use ChatApiWeb, :controller alias ChatApi.Notes alias ChatApi.Notes.Note action_fallback(ChatApiWeb.FallbackController) plug(:authorize when action in [:show, :update, :delete]) def authorize(conn, _) do id = conn.path_params["id"] with %{account_id: accou...
28.96
83
0.619245
d58b9a059e37c5c49e7ce004f75aa324f46371c5
362
exs
Elixir
services/interop-proxy/test/test_helper.exs
RemusW/orchestra
688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198
[ "MIT" ]
null
null
null
services/interop-proxy/test/test_helper.exs
RemusW/orchestra
688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198
[ "MIT" ]
null
null
null
services/interop-proxy/test/test_helper.exs
RemusW/orchestra
688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198
[ "MIT" ]
null
null
null
ExUnit.start() defmodule InteropProxy.TestHelper do def url, do: Application.get_env(:interop_proxy, :url) def username, do: Application.get_env(:interop_proxy, :username) def password, do: Application.get_env(:interop_proxy, :password) def get_image(name) do Path.join([__DIR__, "data", name]) |>...
25.857143
66
0.707182
d58bcea6fe8466b94dd0aa4cc7f1ee7472ae21cc
7,603
ex
Elixir
lib/elixir/lib/float.ex
xavier/elixir
76a76c495d9bc87a8218a5f286018d90eb18fbb7
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/elixir/lib/float.ex
xavier/elixir
76a76c495d9bc87a8218a5f286018d90eb18fbb7
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/float.ex
xavier/elixir
76a76c495d9bc87a8218a5f286018d90eb18fbb7
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [round: 1] defmodule Float do @moduledoc """ Functions for working with floating point numbers. """ @doc """ Parses a binary into a float. If successful, returns a tuple of the form `{float, remainder_of_binary}`. Otherwise `:error`. If a float formated string wants to be dire...
27.153571
108
0.646718
d58c35dae485fc53a3bf5fda1a0350371e5b11bf
1,287
ex
Elixir
lib/obelisk/blog.ex
knewter/obelisk
360425914d36c1c6094820ae035a4555a177ed00
[ "MIT" ]
1
2017-04-04T15:44:25.000Z
2017-04-04T15:44:25.000Z
lib/obelisk/blog.ex
knewter/obelisk
360425914d36c1c6094820ae035a4555a177ed00
[ "MIT" ]
null
null
null
lib/obelisk/blog.ex
knewter/obelisk
360425914d36c1c6094820ae035a4555a177ed00
[ "MIT" ]
null
null
null
defmodule Obelisk.Blog do require Integer def compile_index([], _, _), do: nil def compile_index(posts, store, page_num \\ 1) do { ppp, _ } = Integer.parse Obelisk.Config.config.posts_per_page { c, r } = Enum.split(posts, ppp) write_index_page c, page_num, last_page?(r), store compile_index r, st...
40.21875
239
0.68143
d58c38e5cc3cf36a5eb3b4a3db98ba8c8cd74999
261
exs
Elixir
config/config.exs
phiat/alpa
2bdcd5ed55a1fbabdaf9eac8b2ac8b433f163dee
[ "MIT" ]
7
2020-03-09T02:07:27.000Z
2020-06-05T07:18:24.000Z
config/config.exs
phiat/alpa
2bdcd5ed55a1fbabdaf9eac8b2ac8b433f163dee
[ "MIT" ]
1
2020-03-10T04:27:09.000Z
2020-03-10T21:43:21.000Z
config/config.exs
phiat/alpa
2bdcd5ed55a1fbabdaf9eac8b2ac8b433f163dee
[ "MIT" ]
null
null
null
use Mix.Config require Logger config :alpa, key: System.get_env("APCA_API_KEY"), secret: System.get_env("APCA_API_SECRET"), endpoint_paper: System.get_env("APCA_API_PAPER"), endpoint_data: System.get_env("APCA_API_DATA") config :alpa, author: "phiat"
23.727273
51
0.758621
d58c5a5bbd451f6bddae0312bdbe543b9ef7d0ba
771
ex
Elixir
lib/graphql/types/viewer.ex
VadymBerezdetskyi/accent
19d2205c7594ac5f0de40e2aaa8ff3c5190a8518
[ "BSD-3-Clause" ]
null
null
null
lib/graphql/types/viewer.ex
VadymBerezdetskyi/accent
19d2205c7594ac5f0de40e2aaa8ff3c5190a8518
[ "BSD-3-Clause" ]
6
2021-03-11T07:37:48.000Z
2022-02-13T21:10:33.000Z
lib/graphql/types/viewer.ex
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
1
2020-05-29T21:47:35.000Z
2020-05-29T21:47:35.000Z
defmodule Accent.GraphQL.Types.Viewer do use Absinthe.Schema.Notation import Accent.GraphQL.Helpers.Authorization object :viewer do field(:user, :user, resolve: fn user, _, _ -> {:ok, user} end) field :permissions, list_of(:string) do resolve(viewer_authorize(:index_permissions, &Accent.GraphQL.R...
27.535714
103
0.701686
d58c8def11ef45cadeb9cee1020a290bf70f68a5
1,385
exs
Elixir
config/test.exs
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
1
2019-06-11T20:20:32.000Z
2019-06-11T20:20:32.000Z
config/test.exs
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
null
null
null
config/test.exs
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :level, mailer_host: "level.test" # We don't run a server during test. If one is required, # you can enable the server option below. config :level, LevelWeb.Endpoint, http: [port: 4001], url: [host: "level.test", port: 4001], server: false # Print only warnings and errors during test conf...
26.634615
59
0.750181
d58d430d84fe591269fef41d425af1d6792241f9
3,618
ex
Elixir
Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/request_builder.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.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/request_builder.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/request_builder.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.Database.PostgreSql.RequestBuilder do @moduledoc """ Helper functions for building Tesla requests """ @doc """...
28.714286
137
0.64649
d58d45dd94a7738232c141b4847e30de29f82cb3
1,967
ex
Elixir
clients/game_services/lib/google_api/game_services/v1beta/model/fetch_deployment_state_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/game_services/lib/google_api/game_services/v1beta/model/fetch_deployment_state_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/game_services/lib/google_api/game_services/v1beta/model/fetch_deployment_state_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...
38.568627
186
0.749873
d58d4926c6a4a43bfe8ef69b3910b27cc3d4cee2
1,506
ex
Elixir
year_2019/lib/day_04/password.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2019/lib/day_04/password.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2019/lib/day_04/password.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
defmodule Day04.Password do def possible_part1?(p) do l = p |> Integer.to_charlist has_adjacent_same_digits?(l) && never_decreases?(l) end def possible?(p) do l = p |> Integer.to_charlist has_adjacent_same_digits_twice?(l) && never_decreases?(l) end def has_adjacent_same_digits_twi...
35.857143
100
0.640106
d58d6a581dd88eef83e072a5dd3f33bb7497200c
2,338
ex
Elixir
apps/definition/lib/definition.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition/lib/definition.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition/lib/definition.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule Definition do @moduledoc """ Defines a base module for extensibly defining struct types, their schemas (validation performed by Norm), and functions for managing the lifecycle of those structs across revisions over the lifetime of a system. """ @callback new(map | keyword) :: {:ok, struct} | {:...
25.139785
83
0.588109
d58d6d7ebdc9dc33ef3642fa7a605e8bcea21777
1,082
ex
Elixir
lib/credo/check/refactor/map_map.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
lib/credo/check/refactor/map_map.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
lib/credo/check/refactor/map_map.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.Check.Refactor.MapMap do use Credo.Check, explanations: [ check: """ One `Enum.map/2` is more efficient than `Enum.map/2 |> Enum.map/2`. This should be refactored: [:a, :b, :c] |> Enum.map(&inspect/1) |> Enum.map(&String.upcase/1) to look li...
25.761905
89
0.585952
d58d872474207c66d34d58fd4215570e8c22b880
374
ex
Elixir
web/views/error_view.ex
rrevanth/cantata
2d20b010c5b8565ad6d17d62ea544cf6b597f5e2
[ "MIT" ]
null
null
null
web/views/error_view.ex
rrevanth/cantata
2d20b010c5b8565ad6d17d62ea544cf6b597f5e2
[ "MIT" ]
null
null
null
web/views/error_view.ex
rrevanth/cantata
2d20b010c5b8565ad6d17d62ea544cf6b597f5e2
[ "MIT" ]
null
null
null
defmodule Cantata.ErrorView do use Cantata.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Server internal error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_template,...
20.777778
47
0.697861
d58d8ee6623faed476d07e049b92c533875ca378
1,641
ex
Elixir
dash/lib/btc/btc.ex
bhaveshpoddar94/BitcoinRealtime
e9a60ae80596271048c81cbb2c3be7e3428d2a8f
[ "MIT" ]
null
null
null
dash/lib/btc/btc.ex
bhaveshpoddar94/BitcoinRealtime
e9a60ae80596271048c81cbb2c3be7e3428d2a8f
[ "MIT" ]
null
null
null
dash/lib/btc/btc.ex
bhaveshpoddar94/BitcoinRealtime
e9a60ae80596271048c81cbb2c3be7e3428d2a8f
[ "MIT" ]
null
null
null
defmodule Btc do def init(n) do miners = create_miners(n) # Give each miner the address of all other miners start_time = DateTime.utc_now Enum.each(miners, fn {mid, _mpub} -> Miner.set_miners(mid, miners) Miner.set_parent(mid, self()) end) # select a random nod...
25.246154
55
0.552712
d58e3f243b439b242cba84b83c69f40cf17ca6da
11,010
ex
Elixir
lib/game/quest.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/quest.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/quest.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
defmodule Game.Quest do @moduledoc """ Quest context """ import Ecto.Query alias Data.Character alias Data.Quest alias Data.QuestProgress alias Data.QuestStep alias Data.Repo alias Data.User alias Game.Item alias Game.Session @doc """ Check if a quest is complete """ def complete?(que...
26.028369
117
0.605086
d58e63cb3b4088fdce56555e51a33581f47abd8e
826
exs
Elixir
mix.exs
C404/distance-api-matrix
47579a8cd3b65a0cd6769d836479817318d875fa
[ "MIT" ]
32
2015-12-07T20:17:36.000Z
2022-02-04T20:18:43.000Z
mix.exs
C404/distance-api-matrix
47579a8cd3b65a0cd6769d836479817318d875fa
[ "MIT" ]
6
2016-02-20T16:54:51.000Z
2019-02-23T04:19:42.000Z
mix.exs
C404/distance-api-matrix
47579a8cd3b65a0cd6769d836479817318d875fa
[ "MIT" ]
11
2015-12-08T13:09:43.000Z
2020-07-16T00:52:27.000Z
defmodule DistanceMatrixApi.Mixfile do use Mix.Project def project do [app: :distance_api_matrix, version: "2.0.1", elixir: "~> 1.0", name: "DistanceMatrixApi", description: description, package: package, deps: deps, source_url: "https://github.com/C404/distance-api-matrix"] ...
21.736842
73
0.602906
d58e93a8d5f9e970a5f3f23f91567638030986b3
13,355
exs
Elixir
test/absinthe/introspection_test.exs
hagnerd/absinthe
8e9bb8673e6c138bf37fe8e487532bca2270ee10
[ "MIT" ]
null
null
null
test/absinthe/introspection_test.exs
hagnerd/absinthe
8e9bb8673e6c138bf37fe8e487532bca2270ee10
[ "MIT" ]
null
null
null
test/absinthe/introspection_test.exs
hagnerd/absinthe
8e9bb8673e6c138bf37fe8e487532bca2270ee10
[ "MIT" ]
null
null
null
defmodule Absinthe.IntrospectionTest do use Absinthe.Case, async: true alias Absinthe.Schema describe "introspection of an enum type" do test "can use __type and value information with deprecations" do result = """ { __type(name: "Channel") { kind name...
24.326047
125
0.359566
d58ecd31d5c116b6b7ccf8d1733b089e99a689c7
4,723
ex
Elixir
lib/aoc/year_2018/day_01.ex
dliberalesso/advent_of_code
dc96a9e92304dd1c00e282583909cca297c6d56e
[ "MIT" ]
null
null
null
lib/aoc/year_2018/day_01.ex
dliberalesso/advent_of_code
dc96a9e92304dd1c00e282583909cca297c6d56e
[ "MIT" ]
null
null
null
lib/aoc/year_2018/day_01.ex
dliberalesso/advent_of_code
dc96a9e92304dd1c00e282583909cca297c6d56e
[ "MIT" ]
null
null
null
defmodule Aoc.Year2018.Day01 do @moduledoc """ Solution to Day 01 of 2018: Chronal Calibration ## --- Day 01: Chronal Calibration --- "We've detected some temporal anomalies," one of Santa's Elves at the Temporal Anomaly Research and Detection Instrument Station tells you. She sounded pretty worried when ...
39.689076
98
0.693203
d58ece9e47d96a0a2656e6a0f84b2f25b03634e7
747
ex
Elixir
lib/elastic/document.ex
bypasslane/elastic
b6a776d5c03bb7a4ee7c0b8cb8e3065b4fe77610
[ "MIT" ]
1
2017-04-12T02:25:06.000Z
2017-04-12T02:25:06.000Z
lib/elastic/document.ex
bypasslane/elastic
b6a776d5c03bb7a4ee7c0b8cb8e3065b4fe77610
[ "MIT" ]
3
2017-05-15T15:08:12.000Z
2018-12-18T16:50:19.000Z
lib/elastic/document.ex
bypasslane/elastic
b6a776d5c03bb7a4ee7c0b8cb8e3065b4fe77610
[ "MIT" ]
1
2017-03-24T15:44:38.000Z
2017-03-24T15:44:38.000Z
defmodule Elastic.Document do @moduledoc false alias Elastic.HTTP alias Elastic.Index def index(index, type, id, data) do document_path(index, type, id) |> HTTP.put(body: data) end def update(index, type, id, data) do data = %{doc: data} update_path(index, type, id) |> HTTP.post(body: dat...
20.189189
58
0.650602
d58ee5a2b97c9207ba23989dd77839d7bc39f938
346
ex
Elixir
apps/web/lib/web/router.ex
glv/revista
00ecb0780c62a5525155a773b959b169e0e0500d
[ "MIT" ]
17
2019-01-31T18:33:09.000Z
2022-01-18T12:38:49.000Z
apps/web/lib/web/router.ex
glv/revista
00ecb0780c62a5525155a773b959b169e0e0500d
[ "MIT" ]
null
null
null
apps/web/lib/web/router.ex
glv/revista
00ecb0780c62a5525155a773b959b169e0e0500d
[ "MIT" ]
4
2018-11-10T01:56:17.000Z
2020-06-09T21:10:41.000Z
defmodule Web.Router do use Web, :router pipeline :browser do plug(:accepts, ["html"]) plug(:fetch_session) plug(:fetch_flash) plug(:protect_from_forgery) plug(:put_secure_browser_headers) end scope "/", Web do pipe_through(:browser) get("/", PageController, :index) forward("...
17.3
37
0.656069
d58ee6682214db062f423db71d21a3518d60e47b
1,862
ex
Elixir
lib/tentacat/trees.ex
sandisk/tentacat
523791d47d8454e87dc75cf77181b1fc78c125cf
[ "MIT" ]
null
null
null
lib/tentacat/trees.ex
sandisk/tentacat
523791d47d8454e87dc75cf77181b1fc78c125cf
[ "MIT" ]
null
null
null
lib/tentacat/trees.ex
sandisk/tentacat
523791d47d8454e87dc75cf77181b1fc78c125cf
[ "MIT" ]
1
2018-11-02T15:59:28.000Z
2018-11-02T15:59:28.000Z
defmodule Tentacat.Trees do import Tentacat alias Tentacat.Client @doc """ Get a Tree ## Example Tentacat.Trees.find "elixir-lang", "elixir", "eac64175b71fc598fa0b6e611dea6a58973170e9" Tentacat.Trees.find "elixir-lang", "elixir", "eac64175b71fc598fa0b6e611dea6a58973170e9", client More info a...
29.555556
111
0.641246
d58f20586118e4adae0bcec325753031d0db3521
1,196
ex
Elixir
teachme/deps/db_connection/lib/db_connection/task.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
null
null
null
teachme/deps/db_connection/lib/db_connection/task.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
teachme/deps/db_connection/lib/db_connection/task.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
null
null
null
defmodule DBConnection.Task do @moduledoc false @name __MODULE__ require DBConnection.Holder def run_child(mod, state, fun, opts) do arg = [fun, self(), opts] {:ok, pid} = Task.Supervisor.start_child(@name, __MODULE__, :init, arg) ref = Process.monitor(pid) _ = DBConnection.Holder.update(pid, ...
25.446809
93
0.622074
d58f7ec1a7c8c679f7fe09f849c6a3b10a5896c2
172
exs
Elixir
apps/data/priv/repo/migrations/20180717021949_add_version_to_games.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/data/priv/repo/migrations/20180717021949_add_version_to_games.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/data/priv/repo/migrations/20180717021949_add_version_to_games.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule GrapevineData.Repo.Migrations.AddVersionToGames do use Ecto.Migration def change do alter table(:games) do add :version, :string end end end
17.2
60
0.72093
d58f80b0dc603a67e87e770dc41cdd23f1128301
1,256
ex
Elixir
strega/lib/strega_web/endpoint.ex
ThePeej/strega
b9146bb3b401e9c2d0c297ea62a0050415099b29
[ "MIT" ]
null
null
null
strega/lib/strega_web/endpoint.ex
ThePeej/strega
b9146bb3b401e9c2d0c297ea62a0050415099b29
[ "MIT" ]
null
null
null
strega/lib/strega_web/endpoint.ex
ThePeej/strega
b9146bb3b401e9c2d0c297ea62a0050415099b29
[ "MIT" ]
null
null
null
defmodule StregaWeb.Endpoint do use Phoenix.Endpoint, otp_app: :strega socket "/socket", StregaWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when deploying your static f...
26.723404
69
0.707803
d58f819da11c9fb97624ad8f928f1b8d3e591f3e
47,034
exs
Elixir
lib/elixir/test/elixir/kernel/warning_test.exs
jayashe/elixir
6803c87465552624dac017de53156e806762047d
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/warning_test.exs
jayashe/elixir
6803c87465552624dac017de53156e806762047d
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/warning_test.exs
jayashe/elixir
6803c87465552624dac017de53156e806762047d
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.WarningTest do use ExUnit.Case import ExUnit.CaptureIO defp capture_err(fun) do capture_io(:stderr, fun) end test "outdented heredoc" do output = capture_err(fn -> Code.eval_string(""" ''' outdented ...
26.633069
149
0.493983
d58f8b032aaf1e8fc68dcaec5a69b952db161d72
1,923
ex
Elixir
apps/omg_watcher_rpc/lib/web/controllers/block.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher_rpc/lib/web/controllers/block.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher_rpc/lib/web/controllers/block.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network 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...
29.584615
80
0.689028
d58fa05c523c7152b74b47402a21a83eb7a7b48b
2,427
exs
Elixir
memory_backend/test/memory_backend_web/controllers/score_controller_test.exs
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
null
null
null
memory_backend/test/memory_backend_web/controllers/score_controller_test.exs
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
15
2020-12-23T16:09:28.000Z
2020-12-26T22:32:47.000Z
memory_backend/test/memory_backend_web/controllers/score_controller_test.exs
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
null
null
null
defmodule MemoryBackendWeb.ScoreControllerTest do use MemoryBackendWeb.ConnCase alias MemoryBackend.Model alias MemoryBackend.Model.Score @create_attrs %{ score: 42 } @update_attrs %{ score: 43 } @invalid_attrs %{score: nil} def fixture(:score) do {:ok, score} = Model.create_score(@crea...
27.269663
92
0.610218
d58fe722dabc002c28bb9cb920f71f7d2fd49c8a
1,915
exs
Elixir
clients/android_management/mix.exs
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/android_management/mix.exs
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/android_management/mix.exs
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...
28.58209
136
0.667885
d590002367f9ad75bd7513e4f552218169bfcbf5
7,198
exs
Elixir
apps/bytepack_web/test/bytepack_web/views/html_helpers_test.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack_web/test/bytepack_web/views/html_helpers_test.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack_web/test/bytepack_web/views/html_helpers_test.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule BytepackWeb.HTMLHelpersTest do use ExUnit.Case, async: true import Phoenix.HTML, only: [safe_to_string: 1] import BytepackWeb.HTMLHelpers defp changeset(data \\ %{}) do data = Map.merge(%{name: nil, active: nil}, data) Ecto.Changeset.change({data, %{name: :string, active: :boolean}}) end ...
36.912821
171
0.596138
d5901686b60da1802845a0c61635408ca68b2c54
677
ex
Elixir
learning/example_elmchemy/lib/Hello.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
2
2020-01-20T20:15:20.000Z
2020-02-27T11:08:42.000Z
learning/example_elmchemy/lib/Hello.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
learning/example_elmchemy/lib/Hello.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
# Compiled using Elmchemy v0.3.10 defmodule Hello do use Elmchemy @doc """ Prints "world!" iex> import Hello iex> hello "world!" """ @spec hello() :: String.t def hello() do "world!" end @doc """ Returns a sum of every integer in the function iex> import...
13.27451
48
0.508124
d59025c77b50e15798d93697bc6253c0184bd0ee
3,367
ex
Elixir
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.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.166667
185
0.722008
d59032008b27fee0ac6b5e427d9f13a279fd570a
600
ex
Elixir
lib/changelog_web/views/admin/mailer_preview_view.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
1
2021-03-14T21:12:49.000Z
2021-03-14T21:12:49.000Z
lib/changelog_web/views/admin/mailer_preview_view.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
lib/changelog_web/views/admin/mailer_preview_view.ex
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
1
2018-10-03T20:55:52.000Z
2018-10-03T20:55:52.000Z
defmodule ChangelogWeb.Admin.MailerPreviewView do use ChangelogWeb, :admin_view def email_addresses(email) do email |> Bamboo.Mailer.normalize_addresses() |> Bamboo.Email.all_recipients() |> Enum.map(&Bamboo.Email.get_address/1) |> Enum.join(", ") end def format_email_address(address) when...
28.571429
74
0.696667
d590441492b0d54516fbb6506de2791a6f5e1665
2,563
exs
Elixir
test/ed25519_test.exs
mwmiller/ed25519_ex
03dbac4a12ad3cbdc3429f590997cc0a3e58e72e
[ "MIT" ]
11
2016-04-20T22:30:29.000Z
2021-12-24T20:33:58.000Z
test/ed25519_test.exs
mwmiller/ed25519_ex
03dbac4a12ad3cbdc3429f590997cc0a3e58e72e
[ "MIT" ]
7
2017-04-03T07:32:19.000Z
2021-12-14T18:54:10.000Z
test/ed25519_test.exs
mwmiller/ed25519_ex
03dbac4a12ad3cbdc3429f590997cc0a3e58e72e
[ "MIT" ]
9
2017-04-03T06:39:54.000Z
2021-12-14T03:41:38.000Z
defmodule Ed25519Test do use ExUnit.Case import VectorHelper doctest Ed25519 test "keys" do {sk, pk} = Ed25519.generate_key_pair() assert byte_size(sk) == 32, "Proper sized secret key" assert byte_size(pk) == 32, "Proper sized public key" # test key generation with provided secret using the r...
31.256098
100
0.574717
d590684b29c639978fa9db87258acfa1ae2dde70
399
ex
Elixir
lib/options.ex
pocketberserker/elixir-supervisord
3ec988082935227ab9beaaa2aeb88b577d27cf8f
[ "MIT" ]
2
2015-11-05T10:21:07.000Z
2020-05-05T13:44:41.000Z
lib/options.ex
pocketberserker/elixir-supervisord
3ec988082935227ab9beaaa2aeb88b577d27cf8f
[ "MIT" ]
null
null
null
lib/options.ex
pocketberserker/elixir-supervisord
3ec988082935227ab9beaaa2aeb88b577d27cf8f
[ "MIT" ]
null
null
null
defmodule Supervisord.Options do defstruct base_url: "", user: nil, password: nil def url(options) do options.base_url <> "/RPC2" end def basic_auth(%Supervisord.Options{base_url: _, user: user, password: password}) do basic_auth(user, password) end defp basic_auth(nil, nil), do: [] defp basic_a...
24.9375
86
0.694236
d590c80cf9a91945dfb84b080f0d02d4ec9eac7e
1,537
ex
Elixir
lib/timber/events/controller_call_event.ex
zabrador/timber-elixir
59e1e43f0a5e936173631a6346cf339e6a783f09
[ "0BSD" ]
null
null
null
lib/timber/events/controller_call_event.ex
zabrador/timber-elixir
59e1e43f0a5e936173631a6346cf339e6a783f09
[ "0BSD" ]
null
null
null
lib/timber/events/controller_call_event.ex
zabrador/timber-elixir
59e1e43f0a5e936173631a6346cf339e6a783f09
[ "0BSD" ]
null
null
null
defmodule Timber.Events.ControllerCallEvent do @moduledoc """ The `ControllerCallEvent` represents a controller being called during the HTTP request cycle. The defined structure of this data can be found in the log event JSON schema: https://github.com/timberio/log-event-json-schema """ @type t :: %__MO...
24.790323
92
0.633051
d590cd967afa14d391503248fc5fe819f9786eec
801
ex
Elixir
lib/mppm/broker/supervisor.ex
QBonaventure/mppm
06047083e3f56e750b60a2c2bd2c430228066e63
[ "MIT" ]
6
2020-11-18T10:10:51.000Z
2021-03-17T14:28:36.000Z
lib/mppm/broker/supervisor.ex
QBonaventure/mppm
06047083e3f56e750b60a2c2bd2c430228066e63
[ "MIT" ]
6
2020-11-10T21:50:43.000Z
2021-03-04T09:41:22.000Z
lib/mppm/broker/supervisor.ex
QBonaventure/mppm
06047083e3f56e750b60a2c2bd2c430228066e63
[ "MIT" ]
null
null
null
defmodule Mppm.Broker.Supervisor do use Supervisor def child_spec(game_server, xmlrpc_port) do %{ id: __MODULE__, start: {__MODULE__, :start_link, [[ game_server.login, game_server.config.superadmin_pass, xmlrpc_port ]] }, restart: :transient } ...
25.83871
94
0.66417
d590de7b4f87b6e381572005ecbf99dff648399b
1,355
exs
Elixir
mix.exs
azharmalik3/newrelic-elixir
46dc4fa362da25ad3463e13c595f41cf6c21c4ba
[ "MIT" ]
null
null
null
mix.exs
azharmalik3/newrelic-elixir
46dc4fa362da25ad3463e13c595f41cf6c21c4ba
[ "MIT" ]
1
2018-09-10T09:50:24.000Z
2018-09-10T09:50:24.000Z
mix.exs
azharmalik3/newrelic-elixir
46dc4fa362da25ad3463e13c595f41cf6c21c4ba
[ "MIT" ]
1
2018-09-10T09:30:54.000Z
2018-09-10T09:30:54.000Z
defmodule NewRelic.Mixfile do use Mix.Project def project do [app: :new_relic, version: "0.1.3", elixir: "~> 1.7.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: "Elixir library for sending metrics to New Relic.", # package: package(), dep...
26.057692
77
0.5631