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
62f5b88eb99eae1d72fd3930f1404630740c45d5
1,477
ex
Elixir
apps/mishka_html/lib/mishka_html/plug/acl_check_plug.ex
mishka-group/mishka-cms
4e34ed646f807687f4ae809e862acb6f2c5aacef
[ "Apache-2.0" ]
35
2021-06-26T09:05:50.000Z
2022-03-30T15:41:22.000Z
apps/mishka_html/lib/mishka_html/plug/acl_check_plug.ex
mishka-group/mishka-cms
4e34ed646f807687f4ae809e862acb6f2c5aacef
[ "Apache-2.0" ]
101
2021-01-01T09:54:07.000Z
2022-03-28T10:02:24.000Z
apps/mishka_html/lib/mishka_html/plug/acl_check_plug.ex
mishka-group/mishka-cms
4e34ed646f807687f4ae809e862acb6f2c5aacef
[ "Apache-2.0" ]
8
2021-01-17T17:08:07.000Z
2022-03-11T16:12:06.000Z
defmodule MishkaHtml.Plug.AclCheckPlug do import Plug.Conn use MishkaHtmlWeb, :controller require MishkaTranslator.Gettext alias MishkaHtmlWeb.Router.Helpers, as: Routes def init(default), do: default def call(conn, _default) do module = case Map.get(conn.private, :phoenix_live_view) do nil -> "...
36.02439
172
0.66283
62f5c94204073ee546c4ba078125c6f539f6fd27
2,301
ex
Elixir
day02/lib/day02.ex
bjorng/advent-of-code-2016
fb3e40ae2fd52d761f6c0bf55e7634277917ba25
[ "Apache-2.0" ]
1
2021-05-12T11:30:15.000Z
2021-05-12T11:30:15.000Z
day02/lib/day02.ex
bjorng/advent-of-code-2016
fb3e40ae2fd52d761f6c0bf55e7634277917ba25
[ "Apache-2.0" ]
null
null
null
day02/lib/day02.ex
bjorng/advent-of-code-2016
fb3e40ae2fd52d761f6c0bf55e7634277917ba25
[ "Apache-2.0" ]
null
null
null
defmodule Keypad do defmacro defkeypad(name, keypad) do button_var = quote do var!(button) end default = [{button_var, quote do var!(_) end, button_var}] fsm = build_fsm(keypad) ++ default for {button, action, next_button} <- fsm do quote do defp unquote(name)(unquote(button), unquote(ac...
20.918182
86
0.510213
62f5ce49b79c010e060230b529202b1eeb20ae19
497
ex
Elixir
lib/chatbot_api_web/views/error_view.ex
GregoireLoens/chatbot_api
0a09ae821332b40d9b0fe1cec0b348fccb874613
[ "Apache-2.0" ]
null
null
null
lib/chatbot_api_web/views/error_view.ex
GregoireLoens/chatbot_api
0a09ae821332b40d9b0fe1cec0b348fccb874613
[ "Apache-2.0" ]
null
null
null
lib/chatbot_api_web/views/error_view.ex
GregoireLoens/chatbot_api
0a09ae821332b40d9b0fe1cec0b348fccb874613
[ "Apache-2.0" ]
null
null
null
defmodule ChatbotApiWeb.ErrorView do use ChatbotApiWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the templat...
29.235294
61
0.738431
62f5dd966f6330e16e16eae15983848ad6fc9f8c
1,736
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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.72
135
0.741359
62f5e98dda3c3bdb04a71f8b8818f41edd2953a5
65
ex
Elixir
lib/soroban/repo.ex
mindsigns/soroban
c56962e1164a51cb5e383bbbfda880f098f181f1
[ "MIT" ]
1
2020-02-09T03:03:04.000Z
2020-02-09T03:03:04.000Z
lib/soroban/repo.ex
mindsigns/soroban
c56962e1164a51cb5e383bbbfda880f098f181f1
[ "MIT" ]
null
null
null
lib/soroban/repo.ex
mindsigns/soroban
c56962e1164a51cb5e383bbbfda880f098f181f1
[ "MIT" ]
null
null
null
defmodule Soroban.Repo do use Ecto.Repo, otp_app: :soroban end
16.25
34
0.769231
62f5fc5d95a27dcd5cc36c8cf65e9ca0d983b98c
570
ex
Elixir
lib/origami_web/views/tag_view.ex
OrigamiApp/server
efbf185a33694b47fc94376c8ddc4b30f8e3d620
[ "Apache-2.0" ]
null
null
null
lib/origami_web/views/tag_view.ex
OrigamiApp/server
efbf185a33694b47fc94376c8ddc4b30f8e3d620
[ "Apache-2.0" ]
null
null
null
lib/origami_web/views/tag_view.ex
OrigamiApp/server
efbf185a33694b47fc94376c8ddc4b30f8e3d620
[ "Apache-2.0" ]
null
null
null
defmodule OrigamiWeb.TagView do use OrigamiWeb, :view alias OrigamiWeb.TagView def render("index.json", %{tags: tags}) do %{data: render_many(tags, TagView, "tag.json")} end def render("show.json", %{tag: tag}) do %{data: render_one(tag, TagView, "tag.json")} end def render("tag.json", %{tag: t...
22.8
51
0.619298
62f62af9ffcb70916b075ac158fc861c5cc5b706
24,078
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/api/members.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/admin/lib/google_api/admin/directory_v1/api/members.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/admin/lib/google_api/admin/directory_v1/api/members.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...
48.252505
226
0.620899
62f63a170d5147b93a842f642bc1516c924ccc0a
882
ex
Elixir
lib/sptfy/track.ex
Joe-noh/sptfy
ce94ec2ec61529ab6fe708248a2360f95ec388ea
[ "MIT" ]
5
2020-12-14T15:46:26.000Z
2021-03-20T22:32:58.000Z
lib/sptfy/track.ex
Joe-noh/sptfy
ce94ec2ec61529ab6fe708248a2360f95ec388ea
[ "MIT" ]
9
2020-12-25T14:36:11.000Z
2021-01-25T14:03:18.000Z
lib/sptfy/track.ex
Joe-noh/sptfy
ce94ec2ec61529ab6fe708248a2360f95ec388ea
[ "MIT" ]
null
null
null
defmodule Sptfy.Track do @moduledoc """ https://developer.spotify.com/documentation/web-api/reference-beta/#category-tracks """ use Sptfy.Client alias Sptfy.Object.{AudioFeature, FullTrack} get "/v1/tracks", as: :get_tracks, query: [{:ids, required: true}, :market], mapping: {:list, module: F...
24.5
85
0.642857
62f6653c06d466366f5326b740a04a2f8ace1ac8
1,226
ex
Elixir
apps/service_acquire/lib/acquire_web/endpoint.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/service_acquire/lib/acquire_web/endpoint.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/service_acquire/lib/acquire_web/endpoint.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule AcquireWeb.Endpoint do use Phoenix.Endpoint, otp_app: :service_acquire socket "/socket", AcquireWeb.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 yo...
27.244444
63
0.71044
62f6711fb5946bf82b503a8bab088e9302cda7e5
1,524
ex
Elixir
lib/bsv/crypto/ecdsa/public_key.ex
afomi/bsv-ex
a31db1e9d223aa4ac9cc00e86b1e6344a0037805
[ "Apache-2.0" ]
null
null
null
lib/bsv/crypto/ecdsa/public_key.ex
afomi/bsv-ex
a31db1e9d223aa4ac9cc00e86b1e6344a0037805
[ "Apache-2.0" ]
null
null
null
lib/bsv/crypto/ecdsa/public_key.ex
afomi/bsv-ex
a31db1e9d223aa4ac9cc00e86b1e6344a0037805
[ "Apache-2.0" ]
null
null
null
defmodule BSV.Crypto.ECDSA.PublicKey do @moduledoc """ ECDSA Private Key module. """ defstruct [:point] @typedoc "ECDSA Public Key" @type t :: %__MODULE__{ point: binary, } @typedoc "Erlang ECDSA Public Key sequence" @type point :: { :ECPoint, binary } @doc """ Converts the given...
23.446154
85
0.62664
62f68725a1d06a7d36db858aa9a60d892ba80a59
341
exs
Elixir
priv/repo/migrations/20201205020851_create_contract_and_update_item.exs
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
5
2020-12-10T07:24:18.000Z
2021-12-15T08:26:05.000Z
priv/repo/migrations/20201205020851_create_contract_and_update_item.exs
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
null
null
null
priv/repo/migrations/20201205020851_create_contract_and_update_item.exs
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
2
2020-12-12T17:06:13.000Z
2021-04-09T02:12:31.000Z
defmodule SupplyChain.Repo.Migrations.CreateContractAndUpdateItem do use Ecto.Migration def change do create table(:contract) do add :addr, :string add :type, :string add :describe, :string timestamps() end alter table(:item) do add :portion, :float add :role, :stri...
18.944444
68
0.645161
62f6b2d89ebfdb7a4f696b416689188ea6bf89ae
1,111
ex
Elixir
lib/app.ex
EVE-Tools/crest
664995149cdb9bd20dd5c23ce4d2bc0702ce9d6d
[ "BSD-3-Clause" ]
1
2016-08-29T09:29:10.000Z
2016-08-29T09:29:10.000Z
lib/app.ex
EVE-Tools/crest
664995149cdb9bd20dd5c23ce4d2bc0702ce9d6d
[ "BSD-3-Clause" ]
null
null
null
lib/app.ex
EVE-Tools/crest
664995149cdb9bd20dd5c23ce4d2bc0702ce9d6d
[ "BSD-3-Clause" ]
null
null
null
defmodule CREST.App do @moduledoc """ Main application module - contains logic for configuring ibrowse """ use Application @host Application.fetch_env!(:crest, :host) @port Application.fetch_env!(:crest, :port) @max_sessions Application.fetch_env!(:crest, :max_sessions) @max_pipeline_size Application.f...
34.71875
77
0.726373
62f6c9a61d0905aafc95071e6d9d3cfd32855ea3
31,695
exs
Elixir
installer/test/phx_new_umbrella_test.exs
eksperimental/phoenix
15206c261641426f40677671ff44092a2c342b45
[ "MIT" ]
null
null
null
installer/test/phx_new_umbrella_test.exs
eksperimental/phoenix
15206c261641426f40677671ff44092a2c342b45
[ "MIT" ]
null
null
null
installer/test/phx_new_umbrella_test.exs
eksperimental/phoenix
15206c261641426f40677671ff44092a2c342b45
[ "MIT" ]
1
2021-03-22T14:58:39.000Z
2021-03-22T14:58:39.000Z
Code.require_file "mix_helper.exs", __DIR__ defmodule Mix.Tasks.Phx.New.UmbrellaTest do use ExUnit.Case, async: false import MixHelper @app "phx_umb" setup config do # The shell asks to install deps. # We will politely say not. decline_prompt() {:ok, tmp_dir: to_string(config.test)} end ...
42.26
132
0.627796
62f72a715aec09fed1a47e09da941e2c27ecc120
11,520
ex
Elixir
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/resource_search_result.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/resource_search_result.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/resource_search_result.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "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...
117.55102
1,024
0.733073
62f73d0cd5df4135756a03a407c7218d078f899b
1,286
exs
Elixir
lib/elixir/test/elixir/kernel/special_forms_test.exs
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
1
2020-01-14T18:44:56.000Z
2020-01-14T18:44:56.000Z
lib/elixir/test/elixir/kernel/special_forms_test.exs
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/special_forms_test.exs
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.SpecialFormsTest do use ExUnit.Case, async: true doctest Kernel.SpecialForms describe "cond" do test "does not leak variables for one clause" do x = 0 cond do true -> x = 1 x end assert x...
17.861111
82
0.508554
62f748cb03a3e84383f290cee7f41e2b9da84b58
419
ex
Elixir
lib/servy/video_cam.ex
lcr0815/pcw
17b3b86059fa5e7fac41e28b2b54e4011491c3f9
[ "MIT" ]
null
null
null
lib/servy/video_cam.ex
lcr0815/pcw
17b3b86059fa5e7fac41e28b2b54e4011491c3f9
[ "MIT" ]
null
null
null
lib/servy/video_cam.ex
lcr0815/pcw
17b3b86059fa5e7fac41e28b2b54e4011491c3f9
[ "MIT" ]
null
null
null
defmodule Servy.VideoCam do @doc """ simulates sendig a request to an external API to get a snapshot image from a video camera. """ def get_snapshot(camera_name) do # System.cmd("imagesnap", ["-w 2", "#{camera_name}-snapshit.jpg"]) # Sleep for 1 second to simulate the API can be slow: :timer.sl...
24.647059
70
0.680191
62f7912d47ee395e37374bc11dc423182fefef28
1,149
exs
Elixir
config/config.exs
miguelcoba/elixir-concurrency-code
d68fa9c532dc4aebb8800ae2c48504e2d188b0fa
[ "MIT" ]
2
2016-01-23T23:34:44.000Z
2016-06-10T22:16:17.000Z
config/config.exs
miguelcoba/elixir-concurrency-code
d68fa9c532dc4aebb8800ae2c48504e2d188b0fa
[ "MIT" ]
null
null
null
config/config.exs
miguelcoba/elixir-concurrency-code
d68fa9c532dc4aebb8800ae2c48504e2d188b0fa
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
37.064516
73
0.75805
62f7d52f0a98a07dc678298034d5dc1498d1edaa
305
ex
Elixir
lib/response/spanish.ex
qgadrian/themoviedb_alexa
8dbfa236bd0621ba83d5e8cbf2721d6a4dac4418
[ "MIT" ]
1
2020-01-12T18:49:14.000Z
2020-01-12T18:49:14.000Z
lib/response/spanish.ex
qgadrian/themoviedb_alexa
8dbfa236bd0621ba83d5e8cbf2721d6a4dac4418
[ "MIT" ]
null
null
null
lib/response/spanish.ex
qgadrian/themoviedb_alexa
8dbfa236bd0621ba83d5e8cbf2721d6a4dac4418
[ "MIT" ]
null
null
null
defmodule Themoviedb.Response.Spanish do @moduledoc """ Module that provides the responses in the spanish language """ defdelegate response_movie_rating(movie_info), to: ThemoviedbAlexa.Response.Rating.Spanish defdelegate launch_response(), to: ThemoviedbAlexa.Response.Launch.Spanish end
27.727273
76
0.793443
62f7f0b90f1027a7f44b9dcb288d485b5795201d
602
ex
Elixir
lib/logger_json/formatter.ex
DealPad/logger_json
680c4cc19e833e5ea5c1dd845af43072be139f98
[ "MIT" ]
1
2020-12-19T18:20:40.000Z
2020-12-19T18:20:40.000Z
lib/logger_json/formatter.ex
DealPad/logger_json
680c4cc19e833e5ea5c1dd845af43072be139f98
[ "MIT" ]
null
null
null
lib/logger_json/formatter.ex
DealPad/logger_json
680c4cc19e833e5ea5c1dd845af43072be139f98
[ "MIT" ]
3
2020-10-14T07:47:47.000Z
2020-10-14T10:54:15.000Z
defmodule LoggerJSON.Formatter do @moduledoc """ Behaviour that should be implemented by log formatters. Example implementations can be found in `LoggerJSON.Formatters.GoogleCloudLogger` and `LoggerJSON.Formatters.BasicLogger`. """ @doc """ Format event callback. Returned map will be encoded to JSON. ...
28.666667
87
0.599668
62f8638d94c15fb3cc912c6cb5faf2a7b9f3f35e
1,092
ex
Elixir
lib/magnemite/application.ex
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
lib/magnemite/application.ex
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
lib/magnemite/application.ex
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
defmodule Magnemite.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository Magnemite.Repo, # Start the Telemetry supervisor Mag...
29.513514
67
0.705128
62f86c33815ee3c29cde2a1c3ac961c28ad8a42d
3,125
ex
Elixir
apps/aeutil/lib/serialization.ex
wuminzhe/elixir-node
eb87b47339a8349bac767dd4cf597dfaf0ed75c6
[ "ISC" ]
null
null
null
apps/aeutil/lib/serialization.ex
wuminzhe/elixir-node
eb87b47339a8349bac767dd4cf597dfaf0ed75c6
[ "ISC" ]
null
null
null
apps/aeutil/lib/serialization.ex
wuminzhe/elixir-node
eb87b47339a8349bac767dd4cf597dfaf0ed75c6
[ "ISC" ]
null
null
null
defmodule Aeutil.Serialization do @moduledoc """ Utility module for serialization """ alias __MODULE__ alias Aecore.Structures.Block alias Aecore.Structures.Header alias Aecore.Structures.SpendTx alias Aecore.Structures.SignedTx alias Aecore.Chain.ChainState alias Aeutil.Bits alias Aewallet.Encod...
25.406504
95
0.61568
62f86f6dde73859bbda7c31d0b9fee98062f67b6
1,111
ex
Elixir
lib/glimesh/events.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
328
2020-07-23T22:13:49.000Z
2022-03-31T21:22:28.000Z
lib/glimesh/events.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
362
2020-07-23T22:38:38.000Z
2022-03-24T02:11:16.000Z
lib/glimesh/events.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
72
2020-07-23T22:50:46.000Z
2022-02-02T11:59:32.000Z
defmodule Glimesh.Events do @moduledoc """ The Glimesh Events module is responsible for triaging events out to whoever needs to know about them. """ require Logger @doc """ Broadcast's some data to the application and api """ def broadcast(topic, event_type, data) do broadcast(topic, nil, event_typ...
24.688889
103
0.659766
62f89167c93d8f74f66de7798c74955513cdb664
319
ex
Elixir
dave-course/hangman_proj/text_client/lib/text_client/interact.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
dave-course/hangman_proj/text_client/lib/text_client/interact.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
dave-course/hangman_proj/text_client/lib/text_client/interact.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
defmodule TextClient.Interact do alias TextClient.{Player, State} def start() do Hangman.new_game() |> setup_state() |> play() end def play(state) do Player.play(state) end defp setup_state(game) do %State{ game_service: game, tally: Hangman.tally(game) } end end
15.190476
34
0.623824
62f8c2c77df7efffa7ce6ce0926681fff99e3a39
1,692
ex
Elixir
clients/tag_manager/lib/google_api/tag_manager/v2/model/list_tags_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/list_tags_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/list_tags_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 &quot;License&quot;); # 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.176471
108
0.736407
62f8c427a34725d07ff1e2af87c5de94ad72e27a
1,921
ex
Elixir
apps/voyager/lib/voyager_web/endpoint.ex
msk-access/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
3
2020-11-24T07:45:26.000Z
2021-07-29T13:37:02.000Z
apps/voyager/lib/voyager_web/endpoint.ex
mskcc/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
52
2020-10-21T19:47:59.000Z
2021-09-09T18:42:33.000Z
apps/voyager/lib/voyager_web/endpoint.ex
msk-access/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
1
2020-12-15T03:33:31.000Z
2020-12-15T03:33:31.000Z
defmodule VoyagerWeb.Endpoint do use Phoenix.Endpoint, otp_app: :voyager plug(:canonical_host) defp canonical_host(conn, _opts) do Application.fetch_env!(:voyager, :canonical_host) |> case do host when is_binary(host) -> opts = PlugCanonicalHost.init(canonical_host: host) PlugCano...
28.25
97
0.705362
62f8f0ecd6e4e0a651e1a085cecb4c818294ce5d
3,978
exs
Elixir
apps/v3_api/test/v3_api_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/v3_api/test/v3_api_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/v3_api/test/v3_api_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule V3ApiTest do use ExUnit.Case, async: true import Plug.Conn, only: [fetch_query_params: 1, send_resp: 3] setup _ do bypass = Bypass.open() {:ok, %{bypass: bypass, url: "http://localhost:#{bypass.port}"}} end describe "get_json/1" do test "normal responses return a JsonApi struct", %{by...
34
91
0.621921
62f8f133bfadf970007a120cd7f766d578359639
19,972
exs
Elixir
test/format_default_test.exs
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
test/format_default_test.exs
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
test/format_default_test.exs
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
defmodule DateFormatTest.FormatDefault do use ExUnit.Case, async: true use Timex test "exceptions" do date = Timex.to_datetime({2013,8,18}) assert_raise(Timex.Format.FormatError, fn -> Timex.format!(date, "{FOO}") end) end test "format Erlang date" do assert {:ok, _} = Timex.format({20...
42.493617
139
0.573803
62f90afc9c95f80c99eda232fc9be17fa0aa81f4
1,596
ex
Elixir
lib/rumbl_web/endpoint.ex
andreyuhai/elixir-rumbl
0acb5f0694940b4d39f09376b1dce954518e5d5b
[ "MIT" ]
1
2021-05-30T20:57:51.000Z
2021-05-30T20:57:51.000Z
lib/rumbl_web/endpoint.ex
andreyuhai/elixir-rumbl
0acb5f0694940b4d39f09376b1dce954518e5d5b
[ "MIT" ]
null
null
null
lib/rumbl_web/endpoint.ex
andreyuhai/elixir-rumbl
0acb5f0694940b4d39f09376b1dce954518e5d5b
[ "MIT" ]
null
null
null
defmodule RumblWeb.Endpoint do use Phoenix.Endpoint, otp_app: :rumbl # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_rumbl_key", ...
29.018182
97
0.716165
62f928a5e0c26d6f4eb8761381faa630cc027972
3,018
ex
Elixir
lib/ash/elixir_sense/types.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
null
null
null
lib/ash/elixir_sense/types.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
null
null
null
lib/ash/elixir_sense/types.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(ElixirSense.Plugin) do defmodule Ash.ElixirSense.Types do @moduledoc false alias ElixirSense.Core.Introspection alias ElixirSense.Plugins.Util alias ElixirSense.Providers.Suggestion.Matcher def find_builtin_types(hint, cursor_context) do text_before = cursor_context....
28.471698
92
0.600066
62f94315a706d1bd6c55bb60cc9eb96972c93290
2,069
exs
Elixir
test/plain_time_test.exs
cjbottaro/chronic
627a136357c74c8ba22b0321a6f27351358e9bd5
[ "MIT" ]
null
null
null
test/plain_time_test.exs
cjbottaro/chronic
627a136357c74c8ba22b0321a6f27351358e9bd5
[ "MIT" ]
null
null
null
test/plain_time_test.exs
cjbottaro/chronic
627a136357c74c8ba22b0321a6f27351358e9bd5
[ "MIT" ]
null
null
null
defmodule Chronic.PlainTimeTest do use ExUnit.Case, async: true use Chronic.TestHelpers test "11am" do { :ok, time, offset } = Chronic.parse("11am", currently: frozen_time()) assert time == %NaiveDateTime{year: 2015, month: 5, day: 9, hour: 11, minute: 0, second: 0, microsecond: {0, 6}} assert offse...
33.918033
117
0.621556
62f949fca2189c388bcc32d692dcbfe58cd133a4
1,445
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/model/read_only.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/read_only.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/read_only.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...
30.744681
132
0.73218
62f961a5e9d573c6293ada435fa6e114b2c110c6
4,919
ex
Elixir
lib/pow_assent/ecto/schema.ex
rjowens/pow_assent
585f0012a8a1fcec5ce15f86e8fd24a838fa61b5
[ "MIT" ]
null
null
null
lib/pow_assent/ecto/schema.ex
rjowens/pow_assent
585f0012a8a1fcec5ce15f86e8fd24a838fa61b5
[ "MIT" ]
null
null
null
lib/pow_assent/ecto/schema.ex
rjowens/pow_assent
585f0012a8a1fcec5ce15f86e8fd24a838fa61b5
[ "MIT" ]
null
null
null
defmodule PowAssent.Ecto.Schema do @moduledoc """ Handles the Ecto schema for user. `user_id_attrs` is provided by the user in a registration step. ## Usage Configure `lib/my_project/users/user.ex` the following way: defmodule MyApp.Users.User do use Ecto.Schema use Pow.Ecto.Schema ...
36.437037
185
0.718845
62f9709c3041c8d49c15e8d045e357fca567e53f
696
ex
Elixir
lib/ptr_web/gettext.ex
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
lib/ptr_web/gettext.ex
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
2
2021-03-09T01:59:47.000Z
2022-02-10T17:08:54.000Z
lib/ptr_web/gettext.ex
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
defmodule PtrWeb.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 PtrWeb.Gettext # Simple translation gettext "Here is the strin...
27.84
72
0.675287
62f9863049aaa6f9faa29b08802f8d63e75ef0eb
355
exs
Elixir
priv/repo/migrations/20190501031341_create_posts.exs
PranavPuranik/project_twitter
0b660e8749488a632d6f64212205757254caaec3
[ "MIT" ]
2
2019-10-10T11:57:29.000Z
2019-12-17T18:04:10.000Z
priv/repo/migrations/20190501031341_create_posts.exs
PranavPuranik/project_twitter
0b660e8749488a632d6f64212205757254caaec3
[ "MIT" ]
86
2019-04-27T16:18:58.000Z
2021-05-28T23:13:36.000Z
priv/repo/migrations/20190501031341_create_posts.exs
PranavPuranik/project_twitter
0b660e8749488a632d6f64212205757254caaec3
[ "MIT" ]
1
2020-07-16T04:52:47.000Z
2020-07-16T04:52:47.000Z
defmodule Chirper.Repo.Migrations.CreatePosts do use Ecto.Migration def change do create table(:posts) do add :title, :string add :body, :text add :user_id, references(:users, on_delete: :delete_all), null: false timestamps() end create unique_index(:posts, [:id]) create i...
20.882353
75
0.656338
62f9dabfdbbb0f9391b9b9f01da7c1d288ce7892
1,730
exs
Elixir
elixir/etl/etl_test.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/etl/etl_test.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/etl/etl_test.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("etl.exs") end ExUnit.start ExUnit.configure exclude: :pending, trace: true defmodule TransformTest do use ExUnit.Case # @tag :pending test "transform one value" do old = %{1 => ["WORLD"]} expected = %{"world" => 1} assert ETL.transf...
21.358025
68
0.47052
62f9fa6befab07405efffe5ecc99f7a1e30d6d74
65
exs
Elixir
test/test_helper.exs
jdav-dev/estated
a8476b803eff425b5b73517e7ea180bb7f8cc30b
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
jdav-dev/estated
a8476b803eff425b5b73517e7ea180bb7f8cc30b
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
jdav-dev/estated
a8476b803eff425b5b73517e7ea180bb7f8cc30b
[ "Apache-2.0" ]
null
null
null
ExUnit.start() ExUnit.configure(exclude: [:estated_sandbox_api])
21.666667
49
0.8
62f9fe2553d658dcf9fa4dca64484eecb4f24682
73
ex
Elixir
lib/data_processor_web/views/page_view.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
lib/data_processor_web/views/page_view.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
3
2018-08-17T13:42:45.000Z
2018-08-17T17:05:11.000Z
lib/data_processor_web/views/page_view.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
defmodule DataProcessorWeb.PageView do use DataProcessorWeb, :view end
18.25
38
0.835616
62fa1719178b3809695508ba36112adbdc450e41
2,010
ex
Elixir
lib/mix/pow/phoenix.ex
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
lib/mix/pow/phoenix.ex
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
lib/mix/pow/phoenix.ex
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
defmodule Mix.Pow.Phoenix do @moduledoc """ Utilities module for mix phoenix tasks. """ alias Mix.Generator alias Mix.Pow @doc """ Builds a map containing context and web module information. """ @spec parse_structure(map()) :: map() def parse_structure(config) do context_app = Map.get(config, ...
29.558824
91
0.655224
62fa17f47cac0ab8e90ddea0eedef7c5c633e18c
1,198
ex
Elixir
template/$PROJECT_NAME$/lib/application.ex
paridin/phx_custom_template
e48ae570eea4d1e79d654f140cd0a329e346a03b
[ "Apache-2.0" ]
1
2020-09-09T11:53:45.000Z
2020-09-09T11:53:45.000Z
template/$PROJECT_NAME$/lib/application.ex
paridin/phx_custom_template
e48ae570eea4d1e79d654f140cd0a329e346a03b
[ "Apache-2.0" ]
1
2020-06-25T17:07:31.000Z
2020-06-25T17:07:31.000Z
template/$PROJECT_NAME$/lib/application.ex
paridin/phx_custom_template
e48ae570eea4d1e79d654f140cd0a329e346a03b
[ "Apache-2.0" ]
null
null
null
defmodule <%= @project_name_camel_case %>.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Telemetry superv...
35.235294
90
0.701169
62fa34d2cbc89b12fcb855af837ddb97eb702a13
306
exs
Elixir
Chapter13/todo_release/test/todo/todo_cache_test.exs
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter13/todo_release/test/todo/todo_cache_test.exs
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter13/todo_release/test/todo/todo_cache_test.exs
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
defmodule TodoCacheTest do use ExUnit.Case test "server_process" do bob_pid = Todo.Cache.server_process("bob") # cache is started automatically thanks to Application callback assert bob_pid != Todo.Cache.server_process("alice") assert bob_pid == Todo.Cache.server_process("bob") end end
30.6
110
0.751634
62fa3a3989b9f9536162fdd09d81cc0b1007a6e0
1,439
exs
Elixir
apps/xee2018_web/config/dev.exs
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "MIT" ]
1
2018-09-05T10:31:50.000Z
2018-09-05T10:31:50.000Z
apps/xee2018_web/config/dev.exs
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "MIT" ]
null
null
null
apps/xee2018_web/config/dev.exs
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "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 :xee2018_web, Xee2018Web.Endpoint, http: [port...
31.977778
170
0.684503
62fa5586711c93e42ae02daf1ddea0ef06a83ad4
1,048
ex
Elixir
test/support/conn_case.ex
drapadubok/multiauth
9ca9294402311c06a082e6972144a2eb8935a797
[ "MIT" ]
1
2018-06-01T02:08:12.000Z
2018-06-01T02:08:12.000Z
test/support/conn_case.ex
drapadubok/multiauth
9ca9294402311c06a082e6972144a2eb8935a797
[ "MIT" ]
null
null
null
test/support/conn_case.ex
drapadubok/multiauth
9ca9294402311c06a082e6972144a2eb8935a797
[ "MIT" ]
null
null
null
defmodule MultiauthWeb.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 datastructures and query the data layer. Finally, if t...
26.871795
71
0.722328
62fa7f9b5b2df78ee139839f009d9470d9df4319
2,738
exs
Elixir
apps/omg_watcher/test/challenger/core_test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/test/challenger/core_test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/test/challenger/core_test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
31.837209
120
0.676041
62faaaef0ece37166c93bb247b1747c90af07777
23,813
ex
Elixir
lib/mongo.ex
Talkdesk/mongodb
d6c240c4faf2f73d408b24a028e96f0b30fcb031
[ "Apache-2.0" ]
null
null
null
lib/mongo.ex
Talkdesk/mongodb
d6c240c4faf2f73d408b24a028e96f0b30fcb031
[ "Apache-2.0" ]
null
null
null
lib/mongo.ex
Talkdesk/mongodb
d6c240c4faf2f73d408b24a028e96f0b30fcb031
[ "Apache-2.0" ]
null
null
null
defmodule Mongo do @moduledoc """ The main entry point for doing queries. All functions take a pool to run the query on. ## Read options All read operations that returns a cursor take the following options for controlling the behaviour of the cursor. * `:batch_size` - Number of documents to fetch in ...
33.398317
114
0.646076
62fab725aef0e7bceca63324f13be875b8aab790
640
ex
Elixir
apps/ello_serve/web/views/bread/config_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_serve/web/views/bread/config_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_serve/web/views/bread/config_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Serve.Bread.ConfigView do use Ello.Serve.Web, :view def encoded_env(conn) do conn |> bread_env() |> set_debug(conn) |> Jason.encode! |> URI.encode end defp bread_env(_conn) do Enum.reduce Application.get_env(:ello_serve, :bread_config), %{}, fn ({_, nil}, acc) ->...
25.6
80
0.61875
62fac9e0072818780f3315ca04e41bdfb1416740
2,711
ex
Elixir
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_all_updates_rule.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_all_updates_rule.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_all_updates_rule.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...
39.289855
144
0.742899
62fae2c4678035f68e83cec24c9091ef2d5c4662
6,033
ex
Elixir
lib/commanded/shredder/command_handler/default_impl.ex
KazW/commanded-shredder-middleware
ab4494db84983acfe7cd2d47a9b81dbec7c36a9d
[ "MIT" ]
1
2020-07-30T18:40:11.000Z
2020-07-30T18:40:11.000Z
lib/commanded/shredder/command_handler/default_impl.ex
KazW/commanded-shredder-middleware
ab4494db84983acfe7cd2d47a9b81dbec7c36a9d
[ "MIT" ]
null
null
null
lib/commanded/shredder/command_handler/default_impl.ex
KazW/commanded-shredder-middleware
ab4494db84983acfe7cd2d47a9b81dbec7c36a9d
[ "MIT" ]
null
null
null
defmodule Commanded.Shredder.CommandHandler.DefaultImpl do @behaviour Commanded.Shredder.CommandHandler.Impl alias Commanded.Scheduler.Router, as: ScheduleRouter alias Commanded.Shredder.EncryptionKey alias Commanded.Shredder.CreateEncryptionKey alias Commanded.Shredder.UpdateEncryptionKey alias Commande...
28.323944
98
0.664346
62fae7466b91525a75ffedaac2ba732f3d1d19bb
1,064
ex
Elixir
test/support/schemas.ex
nsweeting/versioning
0de0102deea00c020025d74a64f5e57617c855da
[ "MIT" ]
24
2018-11-11T15:02:18.000Z
2020-11-11T21:21:58.000Z
test/support/schemas.ex
nsweeting/versioning
0de0102deea00c020025d74a64f5e57617c855da
[ "MIT" ]
null
null
null
test/support/schemas.ex
nsweeting/versioning
0de0102deea00c020025d74a64f5e57617c855da
[ "MIT" ]
null
null
null
defmodule MySchema do use Versioning.Schema, adapter: Versioning.Adapter.Semantic version("2.0.1", do: []) version "2.0.0" do type "All!" do change(TestChange15) change(TestChange14) end type "Foo" do change(TestChange13) change(TestChange12) end end version "1.1.1"...
15.880597
61
0.602444
62fafacbcca7a09c464422a08af4aba1309f0964
121
ex
Elixir
lib/auth_zuma.ex
victorolinasc/auth-zuma
a107130440ed79731b8e28e84ed282111f0aa1f1
[ "Apache-2.0" ]
3
2018-07-16T04:24:01.000Z
2018-07-17T14:36:02.000Z
lib/auth_zuma.ex
victorolinasc/auth-zuma
a107130440ed79731b8e28e84ed282111f0aa1f1
[ "Apache-2.0" ]
null
null
null
lib/auth_zuma.ex
victorolinasc/auth-zuma
a107130440ed79731b8e28e84ed282111f0aa1f1
[ "Apache-2.0" ]
null
null
null
defmodule AuthZuma do @moduledoc """ AuthZ UMA is a client for resource servers to manage their resources. """ end
20.166667
71
0.727273
62fafc189cd02d66a108d32664cd91002d7d1b64
587
ex
Elixir
wabanex/lib/wabanex_web/schema/types/exercise.ex
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/lib/wabanex_web/schema/types/exercise.ex
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/lib/wabanex_web/schema/types/exercise.ex
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
defmodule WabanexWeb.Schema.Types.Exercise do use Absinthe.Schema.Notation @desc "Exercise Schema for graphql client" object :exercise do field :id, non_null(:uuid4) field :name, non_null(:string) field :youtube_video_url, non_null(:string) field :protocol_description, non_null(:string) field...
29.35
50
0.741056
62fb64a3f4c5b5c8450b386ffce915bf2a6d1a31
81
ex
Elixir
web/views/page_view.ex
muziyoshiz/phoenix_sample_ap_app
d8ef72af5ab55f688c3e4e3ca028af9a9642b727
[ "MIT" ]
null
null
null
web/views/page_view.ex
muziyoshiz/phoenix_sample_ap_app
d8ef72af5ab55f688c3e4e3ca028af9a9642b727
[ "MIT" ]
null
null
null
web/views/page_view.ex
muziyoshiz/phoenix_sample_ap_app
d8ef72af5ab55f688c3e4e3ca028af9a9642b727
[ "MIT" ]
null
null
null
defmodule PhoenixSampleAdApp.PageView do use PhoenixSampleAdApp.Web, :view end
20.25
40
0.839506
62fb6a3e5c01d8a0f567251ab76ae0a8819f08fc
666
ex
Elixir
lib/prexent_web/router.ex
fiqus/prexent
e5c24fe1802d7d912dfc3f318e1602b7907930c2
[ "MIT" ]
33
2019-11-05T15:26:40.000Z
2022-02-05T16:27:01.000Z
lib/prexent_web/router.ex
fiqus/prexent
e5c24fe1802d7d912dfc3f318e1602b7907930c2
[ "MIT" ]
8
2019-11-05T18:46:04.000Z
2021-05-11T13:18:08.000Z
lib/prexent_web/router.ex
fiqus/prexent
e5c24fe1802d7d912dfc3f318e1602b7907930c2
[ "MIT" ]
1
2020-05-06T11:38:11.000Z
2020-05-06T11:38:11.000Z
defmodule PrexentWeb.Router do @moduledoc false use PrexentWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers plug Phoenix.LiveView.Flash end pipeline :api do plug :accepts, [...
20.181818
41
0.674174
62fb6ede9cff759334ee273e823c56d1c66d8911
2,621
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execute_operation_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "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.323077
208
0.747425
62fb725d465d20cfdb54a27519f4a443eb30da86
2,135
exs
Elixir
config/dev.exs
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
null
null
null
config/dev.exs
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
14
2019-09-02T18:00:07.000Z
2021-09-02T00:49:54.000Z
config/dev.exs
ashkan18/dobar
37381af2a56b2456cfe2a0a358169fd2764cd3f0
[ "MIT" ]
1
2016-07-27T14:40:55.000Z
2016-07-27T14:40:55.000Z
use Mix.Config # Configure your database config :dobar, Dobar.Repo, database: "dobar_dev", hostname: "localhost", adapter: Ecto.Adapters.Postgres, types: Dobar.PostgresTypes, show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and cod...
27.727273
68
0.690867
62fbcb6cc362d41c99de7700c1dd359a2b8ef098
647
ex
Elixir
lib/poker_hands/comparer/hand_value.ex
fredwu/kata-poker-hands-elixir
b818ebcf73392f48280c3c1ececf60cfb0c0f016
[ "MIT" ]
4
2016-09-29T05:14:55.000Z
2021-05-06T08:42:03.000Z
lib/poker_hands/comparer/hand_value.ex
fredwu/kata-poker-hands-elixir
b818ebcf73392f48280c3c1ececf60cfb0c0f016
[ "MIT" ]
null
null
null
lib/poker_hands/comparer/hand_value.ex
fredwu/kata-poker-hands-elixir
b818ebcf73392f48280c3c1ececf60cfb0c0f016
[ "MIT" ]
null
null
null
defmodule PokerHands.Comparer.HandValue do @doc """ ## Examples iex> PokerHands.Comparer.HandValue.compare([10, 2], [8, 7]) :left iex> PokerHands.Comparer.HandValue.compare([10, 2], [10, 7]) :right iex> PokerHands.Comparer.HandValue.compare([10, 2], [10, 2]) :tie """ def c...
25.88
66
0.584235
62fbd0a2242cac8cdf2ac4fdf90d409c04af751f
11,788
exs
Elixir
test/oli_web/controllers/payment_providers/stripe_controller_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
1
2022-03-17T20:35:47.000Z
2022-03-17T20:35:47.000Z
test/oli_web/controllers/payment_providers/stripe_controller_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
test/oli_web/controllers/payment_providers/stripe_controller_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule OliWeb.PaymentProviders.StripeControllerTest do use OliWeb.ConnCase import Mox import Oli.Factory alias Oli.Delivery.Paywall alias Oli.Delivery.Paywall.Providers.Stripe alias Oli.Test.MockHTTP @stripe_payments_intents_url "https://api.stripe.com/v1/payment_intents" defp load_stripe_config(...
31.021053
153
0.611809
62fbd13a991b50c636498d828050af3b66523823
4,857
ex
Elixir
lib/rrpproxy/deserializer.ex
fbettag/rrpproxy.ex
37149fe32d8090bc1291e8a51d1200ffaf75c588
[ "MIT" ]
null
null
null
lib/rrpproxy/deserializer.ex
fbettag/rrpproxy.ex
37149fe32d8090bc1291e8a51d1200ffaf75c588
[ "MIT" ]
null
null
null
lib/rrpproxy/deserializer.ex
fbettag/rrpproxy.ex
37149fe32d8090bc1291e8a51d1200ffaf75c588
[ "MIT" ]
null
null
null
defmodule RRPproxy.Deserializer do @moduledoc """ Documentation for `RRPproxy.Deserializer` which provides deserialization helpers. **It is used for low-level communication and should not be used directly by users of this library.** """ @multi_line_fields [ " procedure", " policy", "allowed chara...
29.083832
102
0.581017
62fbd817f9db9c645a06a621f2f94da63a9df67c
1,176
exs
Elixir
config/config.exs
vlamy/baijiu-tiles
92b4b4a180df1c4a1e59c9263e5924c561c0b641
[ "BSD-3-Clause" ]
3
2018-01-26T13:31:43.000Z
2021-02-19T08:19:25.000Z
config/config.exs
vlamy/baijiu
92b4b4a180df1c4a1e59c9263e5924c561c0b641
[ "BSD-3-Clause" ]
null
null
null
config/config.exs
vlamy/baijiu
92b4b4a180df1c4a1e59c9263e5924c561c0b641
[ "BSD-3-Clause" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
33.6
73
0.742347
62fbfb740ef164d45043539a78af77eeb6be7e71
1,623
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/managed_instance_last_attempt.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/managed_instance_last_attempt.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/managed_instance_last_attempt.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...
34.531915
199
0.76032
62fbfe75f1566a773b4adb67db16b0bf158b2a34
172
exs
Elixir
plugins/one_chat/priv/repo/migrations/03420170401050921_add_file_upload_to_config.exs
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
plugins/one_chat/priv/repo/migrations/03420170401050921_add_file_upload_to_config.exs
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
plugins/one_chat/priv/repo/migrations/03420170401050921_add_file_upload_to_config.exs
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule OneChat.Repo.Migrations.AddFileUploadToConfig do use Ecto.Migration def change do alter table(:config) do add :file_upload, :map end end end
17.2
58
0.72093
62fc0b73b9aa9a5565a09df70cf1a8f5364e4280
3,067
ex
Elixir
lib/wechat/request.ex
ZhengQingchen/wechat
c1d1cdbf2578fc27ece38b5ca702e22e7817da07
[ "MIT" ]
36
2016-09-08T06:12:34.000Z
2018-08-14T03:45:16.000Z
lib/wechat/request.ex
ZhengQingchen/wechat
c1d1cdbf2578fc27ece38b5ca702e22e7817da07
[ "MIT" ]
15
2016-09-06T04:25:19.000Z
2017-12-14T12:08:14.000Z
lib/wechat/request.ex
ZhengQingchen/wechat
c1d1cdbf2578fc27ece38b5ca702e22e7817da07
[ "MIT" ]
10
2016-09-06T03:58:10.000Z
2017-12-14T06:36:51.000Z
defmodule Wechat.Request do @moduledoc false alias Wechat.{Client, Config, Error} @access_token_errcodes [40_001, 40_014, 41_001, 42_001] def get(client, path, opts \\ []) do do_request(client, :get, path, "", opts) end def raw_get(client, path, opts \\ []) do raw_request(client, :get, path, "",...
27.383929
88
0.638409
62fc203560279cf983d27ac7fcb9c65e589b6204
4,454
exs
Elixir
test/chronos_test.exs
nurugger07/chronos
be8fcbee7330d938dff87532cf108125bf952d05
[ "Apache-2.0" ]
72
2015-01-28T16:30:45.000Z
2021-05-21T03:33:16.000Z
test/chronos_test.exs
nurugger07/chronos
be8fcbee7330d938dff87532cf108125bf952d05
[ "Apache-2.0" ]
9
2015-01-20T21:08:43.000Z
2018-04-04T02:57:05.000Z
test/chronos_test.exs
nurugger07/chronos
be8fcbee7330d938dff87532cf108125bf952d05
[ "Apache-2.0" ]
15
2015-01-20T04:34:06.000Z
2019-02-10T22:42:12.000Z
defmodule HourGlassFixture do use Chronos, date: { 2012, 12, 21 } end defmodule ChronosTest do use ExUnit.Case @today { 2012, 12, 21 } @now {{ 2012, 12, 21 }, {7, 23, 54}} import HourGlassFixture test :today do assert today() == @today end test :now do assert :calendar.now_to_datetime(:erla...
28.189873
80
0.587337
62fc2d2aca5d6bf5e1daacd4671261717f37c19e
4,264
ex
Elixir
lib/elixir/lib/calendar.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar.ex
jovannypcg/elixir
de3f5df7fdcda79e2661f9cee6005707e7e8d030
[ "Apache-2.0" ]
null
null
null
defmodule Calendar do @moduledoc """ This module defines the responsibilities for working with calendars, dates, times and datetimes in Elixir. Currently it defines types but may define the calendar behaviour in future versions. For the actual date, time and datetime structures, see `Date`, `Time`, `NaiveD...
36.444444
99
0.69137
62fc34d190cee39bd62fc9f4d9a2664635e6b624
10,824
ex
Elixir
apps/mishka_html/lib/mishka_html_web/live/components/admin/activity/search_component .ex
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
1
2021-11-14T11:13:25.000Z
2021-11-14T11:13:25.000Z
apps/mishka_html/lib/mishka_html_web/live/components/admin/activity/search_component .ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
apps/mishka_html/lib/mishka_html_web/live/components/admin/activity/search_component .ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
defmodule MishkaHtmlWeb.Admin.Activity.SearchComponent do use MishkaHtmlWeb, :live_component def render(assigns) do ~H""" <div> <div class="clearfix"></div> <div class="col space30"> </div> <hr> <div class="clearfix"></div> <div class="col space30"> </div> ...
79.007299
200
0.594882
62fc446bf79807cdc673dcb5d820aca5a02e3661
788
ex
Elixir
lib/flix/protocol/events/button_up_or_down.ex
efcasado/flix
945fe84e6dba31b7f47d07279a97559e1094da46
[ "Unlicense", "MIT" ]
1
2021-07-24T09:44:54.000Z
2021-07-24T09:44:54.000Z
lib/flix/protocol/events/button_up_or_down.ex
efcasado/flix
945fe84e6dba31b7f47d07279a97559e1094da46
[ "Unlicense", "MIT" ]
1
2021-07-24T07:13:40.000Z
2021-08-02T13:44:44.000Z
lib/flix/protocol/events/button_up_or_down.ex
efcasado/flix
945fe84e6dba31b7f47d07279a97559e1094da46
[ "Unlicense", "MIT" ]
null
null
null
defmodule Flix.Protocol.Events.ButtonUpOrDown do defstruct conn_id: 0, click_type: Flix.Protocol.Enums.ClickType.default(), was_queued: false, time_diff: 0 # @type t :: %__MODULE__{ # x: String.t(), # y: boolean, # z: integer # } def decode( << co...
23.176471
65
0.595178
62fc514acd8dc836c6cf7000be949df318f21f20
42
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/AtomKeyword.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/AtomKeyword.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_or_operation_parsing_test_case/AtomKeyword.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
true || false true ||| false true or false
14
14
0.690476
62fcc5e22dc84a8a172b1b2754df3b15b1760ac1
2,600
ex
Elixir
lib/ueberauth/strategy/gitlab/oauth.ex
gballet/ueberauth_gitlab
bb7b23ae5548f0a8a8e3e7ae883682b140853ca4
[ "Unlicense" ]
3
2018-04-11T13:25:18.000Z
2020-03-28T07:56:55.000Z
lib/ueberauth/strategy/gitlab/oauth.ex
gballet/ueberauth_gitlab
bb7b23ae5548f0a8a8e3e7ae883682b140853ca4
[ "Unlicense" ]
2
2020-03-28T07:56:15.000Z
2020-09-10T00:29:22.000Z
lib/ueberauth/strategy/gitlab/oauth.ex
gballet/ueberauth_gitlab
bb7b23ae5548f0a8a8e3e7ae883682b140853ca4
[ "Unlicense" ]
2
2019-12-12T17:19:21.000Z
2021-12-18T11:32:04.000Z
defmodule Ueberauth.Strategy.Gitlab.OAuth do @moduledoc """ An implementation of OAuth2 for gitlab. To add your `client_id` and `client_secret` include these values in your configuration. config :ueberauth, Ueberauth.Strategy.Gitlab.OAuth, client_id: System.get_env("GITLAB_CLIENT_ID"), ...
38.80597
92
0.646923
62fce3cde3422d76468448a6a990b9f58806bdc3
680
ex
Elixir
elixir/lib/com/humorapi/client/connection.ex
ddsky/humor-api-clients
a468db3b95c2b404011831d60526a929755904b8
[ "MIT" ]
null
null
null
elixir/lib/com/humorapi/client/connection.ex
ddsky/humor-api-clients
a468db3b95c2b404011831d60526a929755904b8
[ "MIT" ]
null
null
null
elixir/lib/com/humorapi/client/connection.ex
ddsky/humor-api-clients
a468db3b95c2b404011831d60526a929755904b8
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule com.humorapi.client.Connection do @moduledoc """ Handle Tesla connections for com.humorapi.client. """ use Tesla # Add any middleware here...
23.448276
91
0.711765
62fd16159844261ce62fcac06ab4bc8625c30333
110
ex
Elixir
lib/telescope/repo.ex
Jwsonic/telescope
8ee8b4c07c3aa3be1752b4902c6fdd819edaf729
[ "MIT" ]
2
2020-08-25T23:28:18.000Z
2021-07-13T04:22:54.000Z
lib/telescope/repo.ex
Jwsonic/telescope
8ee8b4c07c3aa3be1752b4902c6fdd819edaf729
[ "MIT" ]
null
null
null
lib/telescope/repo.ex
Jwsonic/telescope
8ee8b4c07c3aa3be1752b4902c6fdd819edaf729
[ "MIT" ]
null
null
null
defmodule Telescope.Repo do use Ecto.Repo, otp_app: :telescope, adapter: Ecto.Adapters.Postgres end
18.333333
35
0.736364
62fd3036b4c67aacf3ead7faafe3641b0617a43b
14,463
ex
Elixir
lib/timber/integrations/phoenix_instrumenter.ex
girishramnani/timber-elixir
7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5
[ "ISC" ]
null
null
null
lib/timber/integrations/phoenix_instrumenter.ex
girishramnani/timber-elixir
7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5
[ "ISC" ]
null
null
null
lib/timber/integrations/phoenix_instrumenter.ex
girishramnani/timber-elixir
7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5
[ "ISC" ]
null
null
null
defmodule Timber.Integrations.PhoenixInstrumenter do @moduledoc """ Handles instrumentation of `Phoenix.Endpoint`. This module is designed to log events when Phoenix calls a controller or renders a template. It hooks into the instrumentation tools built into Phoenix. Because of this, you will have to trigger...
32.647856
116
0.726198
62fd4cca541981f27e264edda1634124dab3586a
264
ex
Elixir
othello/lib/othello/repo.ex
Wycode-fish/WEBDEV-PROJECT-1
fad6870c97225ce206ed6b90645bb626b76f598c
[ "MIT" ]
null
null
null
othello/lib/othello/repo.ex
Wycode-fish/WEBDEV-PROJECT-1
fad6870c97225ce206ed6b90645bb626b76f598c
[ "MIT" ]
null
null
null
othello/lib/othello/repo.ex
Wycode-fish/WEBDEV-PROJECT-1
fad6870c97225ce206ed6b90645bb626b76f598c
[ "MIT" ]
null
null
null
defmodule Othello.Repo do use Ecto.Repo, otp_app: :othello @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
22
66
0.69697
62fd6ce30a268ffb053dda46a3461cf96f07fc59
173
exs
Elixir
priv/repo/migrations/20160227171828_change_bio_to_text_in_artists.exs
nicohartto/headland-back
413febe835dafc15b4dae731998ff42aa755496b
[ "MIT" ]
null
null
null
priv/repo/migrations/20160227171828_change_bio_to_text_in_artists.exs
nicohartto/headland-back
413febe835dafc15b4dae731998ff42aa755496b
[ "MIT" ]
null
null
null
priv/repo/migrations/20160227171828_change_bio_to_text_in_artists.exs
nicohartto/headland-back
413febe835dafc15b4dae731998ff42aa755496b
[ "MIT" ]
null
null
null
defmodule Headland.Repo.Migrations.ChangeBioToTextInArtists do use Ecto.Migration def change do alter table(:artists) do modify :bio, :text end end end
17.3
62
0.722543
62fd96f904f60df67a418403542fcf3ed6e2d021
3,681
ex
Elixir
lib/ex_oauth2_provider/oauth2/token/strategy/authorization_code.ex
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
lib/ex_oauth2_provider/oauth2/token/strategy/authorization_code.ex
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
lib/ex_oauth2_provider/oauth2/token/strategy/authorization_code.ex
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
defmodule ExOauth2Provider.Token.AuthorizationCode do @moduledoc """ Functions for dealing with authorization code strategy. """ alias ExOauth2Provider.{ AccessGrants, AccessTokens, Config, Token.Utils, Token.Utils.Response, Utils.Error } @doc """ Will grant access token by client...
29.926829
94
0.642217
62fdfe26dd5b8f9ae30a5bd9fc9789c489c8471b
114
exs
Elixir
learning/budget/test/budget_test.exs
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
2
2020-01-20T20:15:20.000Z
2020-02-27T11:08:42.000Z
learning/budget/test/budget_test.exs
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
learning/budget/test/budget_test.exs
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
defmodule BudgetTest do use ExUnit.Case doctest Budget test "the truth" do assert 1 + 1 == 2 end end
12.666667
23
0.666667
62fe02604563eda0e424a0450f5b44f7840dae9e
5,879
ex
Elixir
lib/ex_hl7/segment/default/pid.ex
workpathco/ex_hl7
20f2fadb158e903cf1752f69cd0ecdeae377c2c3
[ "Apache-2.0" ]
null
null
null
lib/ex_hl7/segment/default/pid.ex
workpathco/ex_hl7
20f2fadb158e903cf1752f69cd0ecdeae377c2c3
[ "Apache-2.0" ]
null
null
null
lib/ex_hl7/segment/default/pid.ex
workpathco/ex_hl7
20f2fadb158e903cf1752f69cd0ecdeae377c2c3
[ "Apache-2.0" ]
null
null
null
defmodule HL7.Segment.Default.PID do @moduledoc "3.4.2 PID - patient identification segment" use HL7.Segment.Spec require HL7.Composite.Default.CWE, as: CWE require HL7.Composite.Default.CX, as: CX require HL7.Composite.Default.XAD, as: XAD require HL7.Composite.Default.XTN, as: XTN require HL7.Composite...
94.822581
143
0.488178
62fe0a4ac5fd447d393921097748c1f9a3e8cc4e
21,042
ex
Elixir
lib/ex_unit/lib/ex_unit/case.ex
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/case.ex
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
1
2015-06-09T15:52:43.000Z
2015-06-09T15:52:43.000Z
lib/ex_unit/lib/ex_unit/case.ex
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.DuplicateTestError do defexception [:message] end defmodule ExUnit.DuplicateDescribeError do defexception [:message] end defmodule ExUnit.Case do @moduledoc """ Helpers for defining test cases. This module must be used in other modules as a way to configure and prepare them for testing. ...
30.628821
103
0.668282
62fe0f899a6abdc439062b0b2017117746a3200b
2,115
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/snapshot_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/snapshot_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/snapshot_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.166667
194
0.716312
62fe1db0f7c9cba89d9f4ea18f6c9f7a2c3ccb16
76
exs
Elixir
config/docs.exs
scottdavis/sass-ex
bf6312907acf9d87daec18344f3fbd625ea55114
[ "MIT" ]
6
2016-12-26T01:07:10.000Z
2022-01-28T09:33:53.000Z
config/docs.exs
scottdavis/sass-ex
bf6312907acf9d87daec18344f3fbd625ea55114
[ "MIT" ]
2
2016-02-12T06:48:08.000Z
2016-02-16T09:59:32.000Z
config/docs.exs
scottdavis/sass-ex
bf6312907acf9d87daec18344f3fbd625ea55114
[ "MIT" ]
4
2017-09-18T12:42:28.000Z
2021-03-24T11:45:30.000Z
use Mix.Config config :ex_doc, :markdown_processor, ExDoc.Markdown.Hoedown
19
59
0.815789
62fe29f7dffa9388f1f67c13f1cf2c2f9ee1d814
38,330
exs
Elixir
apps/language_server/test/server_test.exs
billylanchantin/elixir-ls
dccd34dbd856ae34efc925d014c6f84012549c90
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/server_test.exs
billylanchantin/elixir-ls
dccd34dbd856ae34efc925d014c6f84012549c90
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/server_test.exs
billylanchantin/elixir-ls
dccd34dbd856ae34efc925d014c6f84012549c90
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.ServerTest do alias ElixirLS.LanguageServer.{Server, Protocol, SourceFile} alias ElixirLS.Utils.PacketCapture alias ElixirLS.LanguageServer.Test.FixtureHelpers use ElixirLS.Utils.MixTest.Case, async: false use Protocol doctest(Server) defp initialize(server) do Serv...
30.348377
109
0.522332
62fe33c15265c9c6ec5f51633505c73f427cf5e2
376
ex
Elixir
lib/hl7/2.3.1/datatypes/xtn.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/datatypes/xtn.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/datatypes/xtn.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_3_1.DataTypes.Xtn do @moduledoc false use HL7.DataType, fields: [ "999_9999999_x99999c_any_text": nil, telecommunication_use_code: nil, telecommunication_equipment_type_id: nil, email_address: nil, country_code: nil, areacity_code: nil, phone_number: n...
22.117647
47
0.670213
62fe60bf8f76fd83b327dd14aeeb527d20a0404a
67
ex
Elixir
ddd_counter/lib/ddd_counter_web/views/page_view.ex
mwindholtz/unit_tested_live_view_counter
16e354cb3e4f6632e6d0ffec1c34778ba37df5e5
[ "Apache-2.0" ]
null
null
null
ddd_counter/lib/ddd_counter_web/views/page_view.ex
mwindholtz/unit_tested_live_view_counter
16e354cb3e4f6632e6d0ffec1c34778ba37df5e5
[ "Apache-2.0" ]
1
2021-05-10T17:10:32.000Z
2021-05-10T17:10:32.000Z
ddd_counter/lib/ddd_counter_web/views/page_view.ex
mwindholtz/elixir_unit_testing_example
16e354cb3e4f6632e6d0ffec1c34778ba37df5e5
[ "Apache-2.0" ]
null
null
null
defmodule DddCounterWeb.PageView do use DddCounterWeb, :view end
16.75
35
0.820896
62fe6fb0893defd3cf3c7a206f98ffbc77c826f0
1,958
exs
Elixir
test/phoenix/endpoint_test.exs
knewter/phoenix
191909d97511ab99f9bbcc776cba9988c8b07596
[ "MIT" ]
null
null
null
test/phoenix/endpoint_test.exs
knewter/phoenix
191909d97511ab99f9bbcc776cba9988c8b07596
[ "MIT" ]
null
null
null
test/phoenix/endpoint_test.exs
knewter/phoenix
191909d97511ab99f9bbcc776cba9988c8b07596
[ "MIT" ]
null
null
null
defmodule Phoenix.EndpointTest do use ExUnit.Case, async: true use RouterHelper @config [url: [host: "example.com"]] Application.put_env(:phoenix, __MODULE__.Endpoint, @config) defmodule Endpoint do use Phoenix.Endpoint, otp_app: :phoenix plug Phoenix.CodeReloader, reloader: &__MODULE__.reload!/0 ...
32.633333
94
0.686925
62fe7ff1228a2cee0f554e6d88abb3a21dea95ee
1,964
exs
Elixir
apps/photog/config/dev.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/photog/config/dev.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/photog/config/dev.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
use Mix.Config Code.require_file("config.ex", "#{__DIR__}/../../../lib/common/") # 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 ....
33.862069
170
0.695519
62fe87ddeb9742c7d7b5afc46a6fbbf447e958bd
1,758
exs
Elixir
test/fixtures/standard_app/rel/config.exs
happysalada/distillery
2098604c9f12a26227d6bd794c62d5e62e609ad4
[ "MIT" ]
null
null
null
test/fixtures/standard_app/rel/config.exs
happysalada/distillery
2098604c9f12a26227d6bd794c62d5e62e609ad4
[ "MIT" ]
null
null
null
test/fixtures/standard_app/rel/config.exs
happysalada/distillery
2098604c9f12a26227d6bd794c62d5e62e609ad4
[ "MIT" ]
null
null
null
Code.require_file("rel/sample_app_plugin.ex") Code.require_file("rel/release_plugin.ex") Code.require_file("rel/another_release_plugin.ex") use Mix.Releases.Config, # This sets the default release built by `mix release` default_release: :default, # This sets the default environment used by `mix release` ...
30.842105
82
0.744027
62fe96a5106894bb050ea796051b0cc558e101fa
1,837
exs
Elixir
elixir/crypto-square/crypto_square.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/crypto-square/crypto_square.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/crypto-square/crypto_square.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
defmodule CryptoSquare do @doc """ Encode string square methods ## Examples iex> CryptoSquare.encode("abcd") "ac bd" """ @spec encode(String.t) :: String.t def encode(""), do: "" def encode(string) do string |> normalize |> to_rectangle |> transpose |> encipher end @doc "...
22.402439
85
0.561786
62fe9831bed9fa8adb373c06178e82129af2f41d
2,034
exs
Elixir
mix.exs
apodobytko/expostal
103f55c9eba5da6527471aae57c55479340d8fd6
[ "MIT" ]
87
2017-06-05T02:34:45.000Z
2021-12-29T04:48:55.000Z
mix.exs
apodobytko/expostal
103f55c9eba5da6527471aae57c55479340d8fd6
[ "MIT" ]
7
2017-06-10T12:38:01.000Z
2019-05-14T20:16:23.000Z
mix.exs
apodobytko/expostal
103f55c9eba5da6527471aae57c55479340d8fd6
[ "MIT" ]
19
2017-06-02T19:11:30.000Z
2021-09-20T04:16:08.000Z
defmodule Mix.Tasks.Compile.Libpostal do def run(_) do if match? {:win32, _}, :os.type do # libpostal does not support Windows unfortunately. IO.warn("Windows is not supported.") exit(1) else File.mkdir_p("priv") {result, _error_code} = System.cmd("make", ["priv/expostal.so"], st...
26.415584
94
0.613078
62fec6ee284636fb02d00bf4e5fff5161d991e3a
1,712
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_text_annotation_detected_break.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_text_annotation_detected_break.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_text_annotation_detected_break.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...
31.127273
94
0.731308
62ff253d4f3fc83a214e24dd4f4a268e683a1ecf
2,795
ex
Elixir
lib/mailchimp/member.ex
kianmeng/mailchimp
3827092e1c350007719c17a343a118d17ca21ec2
[ "MIT" ]
49
2015-05-13T01:43:46.000Z
2022-03-24T20:14:30.000Z
lib/mailchimp/member.ex
kianmeng/mailchimp
3827092e1c350007719c17a343a118d17ca21ec2
[ "MIT" ]
21
2016-10-17T06:29:07.000Z
2022-03-24T20:55:05.000Z
lib/mailchimp/member.ex
kianmeng/mailchimp
3827092e1c350007719c17a343a118d17ca21ec2
[ "MIT" ]
58
2015-08-09T18:55:19.000Z
2022-03-24T19:48:35.000Z
defmodule Mailchimp.Member do alias Mailchimp.Link alias HTTPoison.Response alias Mailchimp.HTTPClient defstruct email_address: nil, email_client: nil, email_type: nil, id: nil, ip_opt: nil, ip_signup: nil, language: nil, last_...
27.673267
90
0.598927
62ff38d29d8df21e8a2515b9c546d6d1b60d866f
574
ex
Elixir
apps/tai/lib/tai/events/trade.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/lib/tai/events/trade.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/events/trade.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.Events.Trade do @type t :: %Tai.Events.Trade{ venue_id: atom, symbol: atom, received_at: DateTime.t(), timestamp: DateTime.t() | String.t(), price: Decimal.t() | number, qty: Decimal.t() | number, side: atom, venue_trade_id:...
17.393939
47
0.54007
62ff49047d068ada76ca26b6879798825e07c172
1,715
ex
Elixir
lib/gexbot_web/controllers/github_hook_controller.ex
jakewilkins/gexbot
b92cd5bae794becaedbee9c8884e4b66942198b7
[ "WTFPL" ]
null
null
null
lib/gexbot_web/controllers/github_hook_controller.ex
jakewilkins/gexbot
b92cd5bae794becaedbee9c8884e4b66942198b7
[ "WTFPL" ]
null
null
null
lib/gexbot_web/controllers/github_hook_controller.ex
jakewilkins/gexbot
b92cd5bae794becaedbee9c8884e4b66942198b7
[ "WTFPL" ]
null
null
null
defmodule GexbotWeb.GithubHookController do use GexbotWeb, :controller require Logger plug :accepts, ["json"] action_fallback GexbotWeb.FallbackController def event(%Plug.Conn{assigns: %{webhook_signature: verification_status}} = conn, params) do case {signature_header(conn) |> require_webhook_signatu...
31.759259
107
0.681633
62ff5deba83f622fc4aa42d66f27b1a9575fa4d0
1,184
ex
Elixir
lib/codes/codes_e56.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_e56.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_e56.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_E56 do alias IcdCode.ICDCode def _E560 do %ICDCode{full_code: "E560", category_code: "E56", short_code: "0", full_name: "Deficiency of vitamin E", short_name: "Deficiency of vitamin E", category_name: "Deficiency of vitamin E" ...
27.534884
58
0.59375
62ff8aa8298659ab6fae2fdf2a75ce174273c96a
1,153
ex
Elixir
test/support/channel_case.ex
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
13
2021-03-06T12:16:34.000Z
2022-03-31T09:46:35.000Z
test/support/channel_case.ex
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
148
2021-03-05T12:44:55.000Z
2022-03-11T12:09:06.000Z
test/support/channel_case.ex
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
2
2021-06-02T14:31:21.000Z
2022-02-14T08:36:51.000Z
defmodule HierbautberlinWeb.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 common data structures and query the data layer. Finally, if the test case inte...
28.121951
76
0.737207
62ffa803c3a99cebfd1d9a2ff7d02391d5bf810a
738
ex
Elixir
lib/plug_anonymize_ip.ex
labtwentyfive/plug_anonymize_ip
45861b96ff99740c3c79487b8b2bf4625f14ae6f
[ "MIT" ]
null
null
null
lib/plug_anonymize_ip.ex
labtwentyfive/plug_anonymize_ip
45861b96ff99740c3c79487b8b2bf4625f14ae6f
[ "MIT" ]
null
null
null
lib/plug_anonymize_ip.ex
labtwentyfive/plug_anonymize_ip
45861b96ff99740c3c79487b8b2bf4625f14ae6f
[ "MIT" ]
null
null
null
defmodule PlugAnonymizeIp do @moduledoc """ PlugAnonymizeIp is a plug anonymize request IPs to respect privacy and data protection laws. """ @doc false def init(opts \\ []), do: Keyword.put_new(opts, :ip_field, :remote_ip) @doc false def call(conn, opts) do ip_field = Keyword.fetch!(opts, :ip_fiel...
22.363636
77
0.650407
62ffcb5c233b4aef49c26ccf8c24843675166f2a
384
exs
Elixir
bench/publish.exs
UA3MQJ/nats.ex
549ac3180fe08d3a06cf3b085cf5a40759cc090b
[ "MIT" ]
null
null
null
bench/publish.exs
UA3MQJ/nats.ex
549ac3180fe08d3a06cf3b085cf5a40759cc090b
[ "MIT" ]
null
null
null
bench/publish.exs
UA3MQJ/nats.ex
549ac3180fe08d3a06cf3b085cf5a40759cc090b
[ "MIT" ]
null
null
null
inputs = %{ "16 byte" => :crypto.strong_rand_bytes(16), "128 byte" => :crypto.strong_rand_bytes(128), "1024 byte" => :crypto.strong_rand_bytes(1024), } {:ok, client_pid} = Gnat.start_link(%{host: '127.0.0.1', port: 4222}) Benchee.run(%{ "pub" => fn(msg) -> :ok = Gnat.pub(client_pid, "echo", msg) end, }, time:...
32
71
0.638021
62ffe60a938314005e7c8231deaad1e1f09595e5
134,034
exs
Elixir
test/livebook/session/data_test.exs
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
null
null
null
test/livebook/session/data_test.exs
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
null
null
null
test/livebook/session/data_test.exs
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Session.DataTest do use ExUnit.Case, async: true import Livebook.TestHelpers alias Livebook.Session.Data alias Livebook.{Delta, Notebook} alias Livebook.Notebook.Cell alias Livebook.Users.User @eval_resp {:ok, [1, 2, 3]} @eval_meta %{evaluation_time_ms: 10} @smart_cell_definition...
36.63132
127
0.507923
62fff152ff8bf9cb11adc8c594f678f7d279bef9
308
exs
Elixir
priv/repo/migrations/20170318150836_full_text_artworks.exs
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20170318150836_full_text_artworks.exs
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20170318150836_full_text_artworks.exs
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
defmodule Artheon.Repo.Migrations.FullTextArtworks do use Ecto.Migration def change do execute "CREATE FULLTEXT INDEX fulltext_artwork ON artworks(title, medium, category, slug);" execute "CREATE FULLTEXT INDEX fulltext_artist ON artists(name, nationality, hometown, location, slug);" end end
34.222222
108
0.782468
62fff372f41bf4d4dfb21f14a55ce09fbe44f1b7
329
exs
Elixir
test/test_helper.exs
jschoch/zdb
89b361e624a1c20f503dc237570ca0fd5ea1fd8c
[ "MIT" ]
11
2015-01-04T12:47:21.000Z
2016-06-27T13:16:46.000Z
test/test_helper.exs
jschoch/zdb
89b361e624a1c20f503dc237570ca0fd5ea1fd8c
[ "MIT" ]
5
2015-04-12T11:57:44.000Z
2016-01-21T21:01:24.000Z
test/test_helper.exs
jschoch/zdb
89b361e624a1c20f503dc237570ca0fd5ea1fd8c
[ "MIT" ]
null
null
null
ExUnit.configure(exclude: [pending: true]) ExUnit.start() case Mix.env do :prod -> raise "please don't run in prod" :dev -> IO.puts "WARNING: running in :dev" :mem -> IO.puts "WARNING: in memory only!" :test -> IO.puts "Running in :test env" shit -> raise "HOLY SHIT, please get your Mix.env right #{inspect sh...
32.9
74
0.671733
1a0013713c2ad022a1f9c82a83c02b5e1b5c5a24
61,251
ex
Elixir
lib/codes/codes_s55.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s55.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s55.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_S55 do alias IcdCode.ICDCode def _S55001A do %ICDCode{full_code: "S55001A", category_code: "S55", short_code: "001A", full_name: "Unspecified injury of ulnar artery at forearm level, right arm, initial encounter", short_name: "Unspecified in...
50.123568
133
0.676675
1a002f8dc4cf2df4937c72612b0bca1fbabe9ac6
1,803
ex
Elixir
lib/demo.ex
shopping-adventure/gen_serverring
ec75aa647bee80228dc9464b6e143b0633433827
[ "MIT" ]
1
2016-09-23T13:08:09.000Z
2016-09-23T13:08:09.000Z
lib/demo.ex
shopping-adventure/gen_serverring
ec75aa647bee80228dc9464b6e143b0633433827
[ "MIT" ]
null
null
null
lib/demo.ex
shopping-adventure/gen_serverring
ec75aa647bee80228dc9464b6e143b0633433827
[ "MIT" ]
null
null
null
defmodule Demo do use GenServerring require Crdtex require Crdtex.Counter def inc(server \\ :demo_ring), do: GenServerring.cast(server, :inc) def dec(server \\ :demo_ring), do: GenServerring.cast(server, :dec) def get(server \\ :demo_ring), do: GenServerring.call(server, :get) # almost like using a Ge...
32.196429
77
0.679978
1a003c11c71320f1e6c819e2e05d0d8fcef2e47d
1,014
ex
Elixir
lib/rtl.ex
topherhunt/reassembling-the-line
c6823b3394ee98d9b0149fa3d09448928ac5c0db
[ "MIT" ]
1
2019-04-27T15:39:20.000Z
2019-04-27T15:39:20.000Z
lib/rtl.ex
topherhunt/reassembling-the-line
c6823b3394ee98d9b0149fa3d09448928ac5c0db
[ "MIT" ]
11
2020-07-16T11:40:53.000Z
2021-08-16T07:03:33.000Z
lib/rtl.ex
topherhunt/reassembling-the-line
c6823b3394ee98d9b0149fa3d09448928ac5c0db
[ "MIT" ]
null
null
null
defmodule RTL 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 Ecto repository ...
31.6875
81
0.707101