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
8539897c574c21e48937f33ffe62078544840da9
2,676
ex
Elixir
lib/struct.ex
jjl/valet.ex
d0531fef0c6134d98c539ba040b8fe8790029ea4
[ "Apache-2.0" ]
3
2018-06-26T10:42:42.000Z
2018-10-03T17:45:05.000Z
lib/struct.ex
jjl/valet.ex
d0531fef0c6134d98c539ba040b8fe8790029ea4
[ "Apache-2.0" ]
null
null
null
lib/struct.ex
jjl/valet.ex
d0531fef0c6134d98c539ba040b8fe8790029ea4
[ "Apache-2.0" ]
null
null
null
defmodule Valet.Struct do @enforce_keys [:required, :optional, :extra, :pre, :post] defstruct @enforce_keys end import ProtocolEx alias Valet.Schema alias Polylens.Lenses alias Valet.Error.{KeyIsMissing, KeysUnknown, TypeMismatch} defimpl_ex ValetStruct, %Valet.Struct{}, for: Schema do import Valet.Shared, only...
31.116279
100
0.599402
8539a350c75053705c641c5fdfd0c260dc4305d6
2,616
ex
Elixir
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_ingress_source.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_ingress_source.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_ingress_source.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
47.563636
580
0.764526
8539dfb1dd6b545c96739e3df7d38d3508ec9fbd
477
ex
Elixir
lib/naboo/release_tasks.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
16
2021-12-14T12:25:59.000Z
2021-12-16T21:56:27.000Z
lib/naboo/release_tasks.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
19
2021-12-06T08:35:30.000Z
2022-03-23T18:20:46.000Z
lib/naboo/release_tasks.ex
ARKultur/naboo
ab26c2e82cdc485e23d428fbb1d4798f1fb1388b
[ "MIT" ]
null
null
null
defmodule Naboo.ReleaseTasks do alias Ecto.Migrator @app :naboo def migrate do IO.puts("Running migrations for #{@app}") for repo <- repos() do {:ok, _, _} = Migrator.with_repo(repo, &Migrator.run(&1, :up, all: true)) end end def rollback(repo, version) do {:ok, _, _} = Migrator.with...
20.73913
81
0.639413
8539eecc154de510336d1c4fbbebeb227834c2c7
1,501
ex
Elixir
code/use/puts.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
null
null
null
code/use/puts.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
programming-elixir-book/code/use/puts.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
#--- # Excerpted from "Programming Elixir ≥ 1.6", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http...
25.440678
85
0.649567
853a39f17b6d01321aa8b662a58697f74f4b8c29
3,807
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__object_tracking_annotation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__object_tracking_annotation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__object_tracking_annotation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
41.380435
222
0.74652
853a45c8fccbe8238c32e13d160eb57fcca99fd5
598
exs
Elixir
test/views/error_view_test.exs
Neener54/flaming-archer
5e8262059f44da84b517717af30cfbd2854182fe
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
Neener54/flaming-archer
5e8262059f44da84b517717af30cfbd2854182fe
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
Neener54/flaming-archer
5e8262059f44da84b517717af30cfbd2854182fe
[ "MIT" ]
null
null
null
defmodule FlamingArcher.ErrorViewTest do use FlamingArcher.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(FlamingArcher.ErrorView, "404.html", []) == "Page not found" end test "re...
27.181818
71
0.692308
853a5a4f3143347057339fdbe59c8eedf02a2785
819
ex
Elixir
lib/mix/tasks/phoenix.routes.ex
blunckr/fenix
aeccae9658ed3d85d8af8f28ce2584d407b43d6b
[ "MIT" ]
null
null
null
lib/mix/tasks/phoenix.routes.ex
blunckr/fenix
aeccae9658ed3d85d8af8f28ce2584d407b43d6b
[ "MIT" ]
null
null
null
lib/mix/tasks/phoenix.routes.ex
blunckr/fenix
aeccae9658ed3d85d8af8f28ce2584d407b43d6b
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phoenix.Routes do use Mix.Task @moduledoc """ Prints all routes for the default or a given router. $ mix phoenix.routes $ mix phoenix.routes MyApp.AnotherRouter The default router is inflected from the application name unless a configuration named `:namespace` is set insid...
27.3
80
0.720391
853a680e0334e54f87d662a342024bde13c89b62
245
exs
Elixir
config/config.exs
freexploit/Pokerap
81b128149ee054a51850410caea0a0d7f85fa767
[ "MIT" ]
null
null
null
config/config.exs
freexploit/Pokerap
81b128149ee054a51850410caea0a0d7f85fa767
[ "MIT" ]
null
null
null
config/config.exs
freexploit/Pokerap
81b128149ee054a51850410caea0a0d7f85fa767
[ "MIT" ]
null
null
null
use Mix.Config import_config "#{Mix.env}.exs" #These are values that are used currently. You can set them several different ways #depending on your usage. #config :pokerap, language: #config :pokerap, timeout: #config :pokerap, recv_timeout:
22.272727
82
0.763265
853a96baab463cf74378f58ab63790b89425eac5
1,847
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_type_lat_lng.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_type_lat_lng.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_type_lat_lng.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
36.94
256
0.727125
853a970bcf10be46baeb0967e01b99361e25d4dc
3,557
ex
Elixir
lib/spandex_ecto/ecto_logger.ex
smartrent/spandex_ecto
4bbc0b30b1cf28b39be1faaa5de86b96906005fc
[ "MIT" ]
null
null
null
lib/spandex_ecto/ecto_logger.ex
smartrent/spandex_ecto
4bbc0b30b1cf28b39be1faaa5de86b96906005fc
[ "MIT" ]
1
2021-12-11T18:38:25.000Z
2021-12-11T18:38:25.000Z
lib/spandex_ecto/ecto_logger.ex
smartrent/spandex_ecto
4bbc0b30b1cf28b39be1faaa5de86b96906005fc
[ "MIT" ]
null
null
null
defmodule SpandexEcto.EctoLogger do @moduledoc """ A trace builder that can be given to ecto as a logger. It will try to get the trace_id and span_id from the caller pid in the case that the particular query is being run asynchronously (as in the case of parallel preloads). """ defmodule Error do defex...
26.544776
107
0.635367
853a98d396b9802f8358a84f36d347d62c243c86
217
ex
Elixir
apps/artemis_api/test/support/mock.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis_api/test/support/mock.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_api/test/support/mock.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule ArtemisApi.Mock do alias Artemis.Repo alias Artemis.User def system_user() do params = Application.fetch_env!(:artemis, :users)[:system_user] Repo.get_by(User, email: params.email) end end
19.727273
67
0.728111
853af63eb89c2998df306f7062b417f4116a5022
3,136
ex
Elixir
lib/tracer/tool_server.ex
gabiz/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
125
2017-09-08T06:33:28.000Z
2022-03-09T10:48:04.000Z
lib/tracer/tool_server.ex
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
3
2017-09-21T01:56:24.000Z
2020-10-29T13:27:44.000Z
lib/tracer/tool_server.ex
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
6
2017-09-08T21:41:32.000Z
2019-11-16T10:39:16.000Z
defmodule Tracer.ToolServer do @moduledoc """ The ToolServer module has a process that receives the events from the pid_handler and reports the events. """ alias __MODULE__ alias Tracer.{Event, EventCall, EventReturnTo, EventReturnFrom, EventIn, EventOut, Tool} defstruct tool_type: nil, ...
33.72043
80
0.565689
853b0e9897790a09bcd51ce0523130b470bd56bd
165
ex
Elixir
lib/chat_api_web/controllers/page_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
2
2020-09-21T07:27:13.000Z
2021-12-20T13:23:56.000Z
lib/chat_api_web/controllers/page_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/page_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
1
2021-08-29T14:10:18.000Z
2021-08-29T14:10:18.000Z
defmodule ChatApiWeb.PageController do use ChatApiWeb, :controller def index(conn, _params) do html(conn, File.read!("./priv/static/index.html")) end end
20.625
54
0.727273
853b24a1cd32d594e0cb572ad5a16555425edd00
13,720
ex
Elixir
lib/mix/oasis/router.ex
dvlp123456/oasis
a1b2ec720277ced6956094ceb139124f5459b78e
[ "MIT" ]
11
2021-02-24T09:21:11.000Z
2021-12-26T03:51:25.000Z
lib/mix/oasis/router.ex
dvlp123456/oasis
a1b2ec720277ced6956094ceb139124f5459b78e
[ "MIT" ]
5
2021-03-18T14:15:37.000Z
2022-03-02T09:53:42.000Z
lib/mix/oasis/router.ex
dvlp123456/oasis
a1b2ec720277ced6956094ceb139124f5459b78e
[ "MIT" ]
6
2021-02-24T09:21:01.000Z
2021-11-16T08:45:03.000Z
defmodule Mix.Oasis.Router do @moduledoc false defstruct [ :http_verb, :path_schema, :body_schema, :header_schema, :cookie_schema, :query_schema, :url, :operation_id, :name_space, :pre_plug_module, :plug_module, :request_validator, :plug_parsers, :security ...
29.826087
138
0.674052
853b2743c3c539e16687cfba913f472af2d61df1
5,187
ex
Elixir
lib/event_store/config.ex
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
null
null
null
lib/event_store/config.ex
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
null
null
null
lib/event_store/config.ex
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
1
2018-07-30T18:25:06.000Z
2018-07-30T18:25:06.000Z
defmodule EventStore.Config do @moduledoc """ Provides access to the EventStore configuration. """ @integer_url_query_params ["pool_size"] @doc """ Get the event store configuration for the environment. """ def get do Application.get_env(:eventstore, EventStore.Storage) || raise ArgumentErro...
24.7
107
0.615385
853b7611688bda69a5b06039402b5afa2739d70e
679
exs
Elixir
steganoencrypto/mix.exs
sreecodeslayer/learn-elixir-phoenix
e32bcdbceef53b71dc560d79411c2023c13488ca
[ "MIT" ]
1
2019-01-09T13:41:17.000Z
2019-01-09T13:41:17.000Z
steganoencrypto/mix.exs
sreecodeslayer/learn-elixir-phoenix
e32bcdbceef53b71dc560d79411c2023c13488ca
[ "MIT" ]
null
null
null
steganoencrypto/mix.exs
sreecodeslayer/learn-elixir-phoenix
e32bcdbceef53b71dc560d79411c2023c13488ca
[ "MIT" ]
null
null
null
defmodule Steganoencrypto.MixProject do use Mix.Project def project do [ app: :steganoencrypto, version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [...
21.21875
88
0.556701
853b8321cc7e0db93c2781bd4188d7dd1f541214
1,218
ex
Elixir
lib/farmbot/celery_script/ast/node/home.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
lib/farmbot/celery_script/ast/node/home.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
lib/farmbot/celery_script/ast/node/home.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
1
2020-12-16T16:39:32.000Z
2020-12-16T16:39:32.000Z
defmodule Farmbot.CeleryScript.AST.Node.Home do @moduledoc false use Farmbot.CeleryScript.AST.Node allow_args [:speed, :axis] use Farmbot.Logger def execute(%{axis: :all}, _, env) do env = mutate_env(env) maybe_log_busy() case Farmbot.Firmware.home_all() do :ok -> maybe_log_complete...
26.478261
100
0.651067
853b9773ad26d0c9f692270f22b5e52fb1403d99
8,138
ex
Elixir
lib/elixir/lib/protocol/consolidation.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/elixir/lib/protocol/consolidation.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/protocol/consolidation.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
defmodule Protocol.Consolidation do @moduledoc """ Module responsible for consolidating protocols and helpers for extracting protocols and implementations from code paths for consolidation. """ @doc """ Extract all protocols from the given paths. The paths can be either a char list or a string. Intern...
32.552
118
0.632096
853ba64979748aa82bca25a59a118eeabc83d500
799
exs
Elixir
apps/astarte_housekeeping_api/config/releases.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_housekeeping_api/config/releases.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_housekeeping_api/config/releases.exs
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2020 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
33.291667
90
0.760951
853bd2c24a8460699e6e4a8a48dba72ba4a05ba6
1,341
ex
Elixir
lib/nautilus/adapters/cluster_adapter/cluster_credentials.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
lib/nautilus/adapters/cluster_adapter/cluster_credentials.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
lib/nautilus/adapters/cluster_adapter/cluster_credentials.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
defmodule Nautilus.Adapters.Cluster.ClusterCredentials do @moduledoc """ This module is responsible for handle network credentials """ #@doc """ #This function will store all network credentials #""" #def set_network_credentials(_network_name, _network_password, _gateway_password)...
31.928571
89
0.64877
853bec10bc536fa2590b27efad1473361010e9f8
2,780
ex
Elixir
clients/drive_activity/lib/google_api/drive_activity/v2/model/drive_item_reference.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/drive_item_reference.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/drive_item_reference.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.83871
173
0.71259
853bf36c5f70583adb44221d3cb3ac9030647409
3,875
ex
Elixir
out/manticoresearch-elixir/lib/manticoresearch/api/search.ex
mihaj/openapi
29e878b0be1218a897c4c86bf9d8d51f4d1a3e57
[ "MIT" ]
null
null
null
out/manticoresearch-elixir/lib/manticoresearch/api/search.ex
mihaj/openapi
29e878b0be1218a897c4c86bf9d8d51f4d1a3e57
[ "MIT" ]
3
2021-12-21T08:18:48.000Z
2022-03-24T10:50:37.000Z
out/manticoresearch-elixir/lib/manticoresearch/api/search.ex
mihaj/openapi
29e878b0be1218a897c4c86bf9d8d51f4d1a3e57
[ "MIT" ]
5
2021-12-11T06:10:14.000Z
2022-03-18T11:05:24.000Z
# Manticore Search Client # Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com) # # All rights reserved # Do not edit the class manually. defmodule Manticoresearch.Api.Search do @moduledoc """ API calls for all endpoints tagged `Search`. """ alias Manticoresearch.Connection import...
52.364865
898
0.677161
853bf97a8060a4351cc5c8068b58817a146465d6
612
exs
Elixir
test/ed25519_test.exs
ElixirCrypto/ed25519
72b28ccd38844ebc051662f5bed92aec0d15cb4a
[ "MIT" ]
null
null
null
test/ed25519_test.exs
ElixirCrypto/ed25519
72b28ccd38844ebc051662f5bed92aec0d15cb4a
[ "MIT" ]
null
null
null
test/ed25519_test.exs
ElixirCrypto/ed25519
72b28ccd38844ebc051662f5bed92aec0d15cb4a
[ "MIT" ]
null
null
null
defmodule Ed25519Test do use ExUnit.Case doctest Ed25519 test "greets the world" do assert Ed25519.hello() == :world end test "generate" do Ed25519.generate() end test "generate_secret_key" do Ed25519.generate_secret_key() end test "generate_public_key" do Ed25519.generate_public_k...
14.926829
36
0.686275
853c51022494f699f541a666623941e057d48834
9,130
ex
Elixir
lib/prom_ex/plugins/absinthe.ex
dvic/prom_ex
36cd5e0850e3e1ccc369011fbd15d5b442024a1e
[ "MIT" ]
1
2022-02-20T10:42:44.000Z
2022-02-20T10:42:44.000Z
lib/prom_ex/plugins/absinthe.ex
dvic/prom_ex
36cd5e0850e3e1ccc369011fbd15d5b442024a1e
[ "MIT" ]
null
null
null
lib/prom_ex/plugins/absinthe.ex
dvic/prom_ex
36cd5e0850e3e1ccc369011fbd15d5b442024a1e
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Absinthe) do defmodule PromEx.Plugins.Absinthe do @moduledoc """ This plugin captures metrics emitted by Absinthe. Specifically, it captures timings and metrics around execution times, query complexity, and subscription timings. In order to get complexity metrics you'll need to ...
34.45283
106
0.627382
853c9608233b2c782d5872eddaeee86f5ea5ff53
385
exs
Elixir
priv/repo/migrations/20190308185308_create_challenges.exs
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
5
2019-08-29T20:22:25.000Z
2020-04-01T17:40:48.000Z
priv/repo/migrations/20190308185308_create_challenges.exs
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
34
2019-03-06T17:53:29.000Z
2021-09-01T01:25:23.000Z
priv/repo/migrations/20190308185308_create_challenges.exs
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
2
2020-01-10T22:12:36.000Z
2021-01-22T04:37:45.000Z
defmodule IdeaPortal.Repo.Migrations.CreateChallenges do use Ecto.Migration def change do create table("challenges") do add(:user_id, references(:users), null: false) add(:focus_area, :string, null: false) add(:name, :string, null: false) add(:description, :text, null: false) add...
22.647059
56
0.649351
853c964fe0d81582747e6604084adbfc0ba92c14
711
ex
Elixir
lib/full_stackory_slack_web/cache_body_reader.ex
full-stackory/full_stackory_slack
a58f73248a91248554548187ab184e7e0b3f3b23
[ "Apache-2.0" ]
null
null
null
lib/full_stackory_slack_web/cache_body_reader.ex
full-stackory/full_stackory_slack
a58f73248a91248554548187ab184e7e0b3f3b23
[ "Apache-2.0" ]
2
2021-03-10T06:19:38.000Z
2021-05-11T02:11:14.000Z
lib/full_stackory_slack_web/cache_body_reader.ex
full-stackory/full_stackory_slack
a58f73248a91248554548187ab184e7e0b3f3b23
[ "Apache-2.0" ]
null
null
null
defmodule FullStackorySlackWeb.CacheBodyReader do @moduledoc """ Module utilized in our Phoenix endpoint that caches the raw body into `Plug.conn.assigns[:raw_body]`. This is necessary for us to use signature headers and verify that payloads are accurate for our webhooks. """ @moduledoc since: "0.0.1" @...
35.55
78
0.69339
853cb2ea772b6bd1c4bf280cdee72cda9d96fe53
15,045
ex
Elixir
lib/elixir/lib/map.ex
pavlos/ruby-flavored-erlang
9791f0ed62716e076b9659f9784969ccab26d564
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
pavlos/ruby-flavored-erlang
9791f0ed62716e076b9659f9784969ccab26d564
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
pavlos/ruby-flavored-erlang
9791f0ed62716e076b9659f9784969ccab26d564
[ "Apache-2.0" ]
null
null
null
defmodule Map do @moduledoc """ A set of functions for working with maps. Maps are key-value stores where keys can be any value and are compared using the match operator (`===`). Maps can be created with the `%{}` special form defined in the `Kernel.SpecialForms` module. """ @type key :: any @type v...
23.075153
99
0.552609
853cde53cc2d936dd578b456d19959f60fb4c7c8
6,069
exs
Elixir
test/goth/token_test.exs
TeachersPayTeachers/goth
8b6f974af2c6973f0d096112a57f7a8e631858dc
[ "MIT" ]
null
null
null
test/goth/token_test.exs
TeachersPayTeachers/goth
8b6f974af2c6973f0d096112a57f7a8e631858dc
[ "MIT" ]
null
null
null
test/goth/token_test.exs
TeachersPayTeachers/goth
8b6f974af2c6973f0d096112a57f7a8e631858dc
[ "MIT" ]
null
null
null
defmodule Goth.TokenTest do use ExUnit.Case alias Goth.Token setup do bypass = Bypass.open() Application.put_env(:goth, :endpoint, "http://localhost:#{bypass.port}") Application.put_env(:goth, :token_source, :oauth) {:ok, bypass: bypass} end test "it can generate from response JSON" do j...
31.445596
114
0.601087
853ce031ad266f4f4c64c304478196e2fae599db
4,622
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/technology_targeting.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/technology_targeting.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/technology_targeting.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...
67.970588
481
0.763955
853ce9e6b42526f12b183019ea9c714417d7665e
3,635
ex
Elixir
lib/oli_web/views/layout_view.ex
candert1/oli-torus
b7408f7d7c04cc3e9cf537873d98c3a586ec3a66
[ "MIT" ]
null
null
null
lib/oli_web/views/layout_view.ex
candert1/oli-torus
b7408f7d7c04cc3e9cf537873d98c3a586ec3a66
[ "MIT" ]
null
null
null
lib/oli_web/views/layout_view.ex
candert1/oli-torus
b7408f7d7c04cc3e9cf537873d98c3a586ec3a66
[ "MIT" ]
null
null
null
defmodule OliWeb.LayoutView do use OliWeb, :view import OliWeb.DeliveryView, only: [ user_role_is_student: 2, user_name: 1, user_role_text: 2, user_role_color: 2, user_icon: 1, account_linked?: 1, logo_link_path: 1 ] import Oli.Branding alias Oli.Accounts a...
26.34058
118
0.605227
853d0a293706f088c963b5809070eff4793dd779
227
exs
Elixir
config/test.exs
EevanW/uploadcare_ex
a9ad604285a9abb517420a1fec7b5c589ab9417a
[ "MIT" ]
3
2018-03-23T19:03:15.000Z
2021-11-14T12:48:52.000Z
config/test.exs
EevanW/uploadcare_ex
a9ad604285a9abb517420a1fec7b5c589ab9417a
[ "MIT" ]
2
2019-05-29T07:31:12.000Z
2019-11-28T04:39:56.000Z
config/test.exs
EevanW/uploadcare_ex
a9ad604285a9abb517420a1fec7b5c589ab9417a
[ "MIT" ]
4
2018-05-17T06:38:24.000Z
2019-12-16T06:45:32.000Z
use Mix.Config config :uploadcare_ex, public_key: "3f5c4ce6fcdaf7aeace8", private_key: "06aa7fca4eee96801cc4", retry_period: 1_000, retry_expiry: 5_000, upload_url_retry_period: 300, upload_url_retry_expiry: 1_500
22.7
38
0.792952
853d247d7b0583adb9c928a9b280e1aabfc54f11
555
exs
Elixir
installer/templates/phx_umbrella/config/dev.exs
MarkHoo/phoenix
3f673093826b0d4db5656dfe6e34393901348ed1
[ "MIT" ]
null
null
null
installer/templates/phx_umbrella/config/dev.exs
MarkHoo/phoenix
3f673093826b0d4db5656dfe6e34393901348ed1
[ "MIT" ]
null
null
null
installer/templates/phx_umbrella/config/dev.exs
MarkHoo/phoenix
3f673093826b0d4db5656dfe6e34393901348ed1
[ "MIT" ]
null
null
null
import Config # Do not include metadata nor timestamps in development logs config :logger, :console, format: "[$level] $message\n" # Initialize plugs at runtime for faster development compilation config :phoenix, :plug_init_mode, :runtime<%= if @mailer do %> # Disable swoosh api client as it is only required for pro...
37
75
0.774775
853d4df46f87c34e74b52e832085ae7d4733fa8c
229
ex
Elixir
apps/banking_api/lib/banking_api/accounts/withdraw.ex
kmsskelly/banking_api
89b8682e9317e045396bb783b7f0282ea8a4e13b
[ "Apache-2.0" ]
null
null
null
apps/banking_api/lib/banking_api/accounts/withdraw.ex
kmsskelly/banking_api
89b8682e9317e045396bb783b7f0282ea8a4e13b
[ "Apache-2.0" ]
null
null
null
apps/banking_api/lib/banking_api/accounts/withdraw.ex
kmsskelly/banking_api
89b8682e9317e045396bb783b7f0282ea8a4e13b
[ "Apache-2.0" ]
null
null
null
defmodule BankingApi.Accounts.Withdraw do @moduledoc """ Uses the Operation module to make withdrawals. """ alias BankingApi.Accounts.Operation def call(params) do params |> Operation.call(:withdraw) end end
19.083333
48
0.720524
853d66c2adf74fc5559e017a92dc11d6284ba243
770
ex
Elixir
lib/mix/tasks/appsignal.demo.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
234
2016-08-18T20:43:15.000Z
2022-02-27T11:31:48.000Z
lib/mix/tasks/appsignal.demo.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
563
2016-07-25T17:45:14.000Z
2022-03-21T11:39:29.000Z
lib/mix/tasks/appsignal.demo.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
86
2016-09-13T22:53:46.000Z
2022-02-16T11:03:51.000Z
defmodule Mix.Tasks.Appsignal.Demo do use Mix.Task require Logger def run(_) do Application.ensure_all_started(:appsignal) if Appsignal.Config.active?() do Appsignal.Demo.send_performance_sample() Appsignal.Demo.send_error_sample() Logger.info(""" Demonstration sample data sent!...
26.551724
129
0.685714
853d67eafaafd6ca7d7d1c7cf3f01ba0dd44248b
912
ex
Elixir
lib/glimesh/blog/article.ex
FROSADO/glimesh.tv
d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139
[ "MIT" ]
null
null
null
lib/glimesh/blog/article.ex
FROSADO/glimesh.tv
d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139
[ "MIT" ]
null
null
null
lib/glimesh/blog/article.ex
FROSADO/glimesh.tv
d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139
[ "MIT" ]
null
null
null
defmodule Glimesh.Blog.Article do use Ecto.Schema import Ecto.Changeset schema "articles" do belongs_to :author, Glimesh.Accounts.User field :body_html, :string field :body_md, :string field :description, :string field :published, :boolean, default: false field :slug, :string field :...
24
77
0.653509
853d804b904f7083fcf4776b8bcaaff558583912
1,316
ex
Elixir
lib/hello_phoenix/endpoint.ex
geowa4/hello-phoenix
e67f9cee5dc354864ddadc958bb1dda563aa70c5
[ "MIT" ]
null
null
null
lib/hello_phoenix/endpoint.ex
geowa4/hello-phoenix
e67f9cee5dc354864ddadc958bb1dda563aa70c5
[ "MIT" ]
null
null
null
lib/hello_phoenix/endpoint.ex
geowa4/hello-phoenix
e67f9cee5dc354864ddadc958bb1dda563aa70c5
[ "MIT" ]
null
null
null
defmodule HelloPhoenix.Endpoint do use Phoenix.Endpoint, otp_app: :hello_phoenix socket "/socket", HelloPhoenix.UserSocket plug HelloPhoenix.Plug.MetricsExporter plug HelloPhoenix.Plug.PipelineInstrumenter # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if ...
28.608696
69
0.731763
853d85fb50270b8c6f51c1aa8f03200439e8e808
1,204
ex
Elixir
lib/ex_mon_web/views/error_helpers.ex
adrielradicchi/ex_mon_api
d5530e23a874b433fed54cc7f6dcd920b90f059f
[ "MIT" ]
1
2021-08-08T22:50:44.000Z
2021-08-08T22:50:44.000Z
web/ex_mon/lib/ex_mon_web/views/error_helpers.ex
herminiotorres/curso-elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
null
null
null
web/ex_mon/lib/ex_mon_web/views/error_helpers.ex
herminiotorres/curso-elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
null
null
null
defmodule ExMonWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # When using gettext, we typically pass the strings we want # to translate as a static argume...
35.411765
74
0.669435
853dbeebb24ca91ba354d5dd6a977556c963ea46
7,166
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/path_matcher.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/path_matcher.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/path_matcher.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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...
75.431579
535
0.763606
853dd08d4d3f6b0ec71edf14110c887d0cf151d4
561
ex
Elixir
lib/platform_web/views/changeset_view.ex
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
1
2020-02-20T21:57:02.000Z
2020-02-20T21:57:02.000Z
lib/platform_web/views/changeset_view.ex
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
1
2020-03-23T19:22:48.000Z
2020-03-23T19:22:48.000Z
lib/platform_web/views/changeset_view.ex
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
null
null
null
defmodule PlatformWeb.ChangesetView do use PlatformWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `PlatformWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changeset,...
28.05
65
0.73975
853de4ed53ab730fa74b9bd85247e654b401da4e
712
ex
Elixir
playground_project/lib/crud_tdd_web/gettext.ex
JohnBortotti/learning-elixir
54ce9c50904e809065d0321d51367cea7a5b2bf8
[ "MIT" ]
null
null
null
playground_project/lib/crud_tdd_web/gettext.ex
JohnBortotti/learning-elixir
54ce9c50904e809065d0321d51367cea7a5b2bf8
[ "MIT" ]
null
null
null
playground_project/lib/crud_tdd_web/gettext.ex
JohnBortotti/learning-elixir
54ce9c50904e809065d0321d51367cea7a5b2bf8
[ "MIT" ]
null
null
null
defmodule CrudTddWeb.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 CrudTddWeb.Gettext # Simple translation gettext("Here is t...
28.48
72
0.678371
853dee1877ccaba68778b6b20f2121a2c0acedf6
640
ex
Elixir
elixir/rna-transcription/lib/rna_transcription.ex
LDonoughe/exercism
b740457da1efa1425a941638f99a724e7dfbc79e
[ "MIT" ]
null
null
null
elixir/rna-transcription/lib/rna_transcription.ex
LDonoughe/exercism
b740457da1efa1425a941638f99a724e7dfbc79e
[ "MIT" ]
4
2021-05-08T22:17:03.000Z
2021-09-02T18:09:27.000Z
elixir/rna-transcription/lib/rna_transcription.ex
LDonoughe/exercism
b740457da1efa1425a941638f99a724e7dfbc79e
[ "MIT" ]
null
null
null
defmodule RnaTranscription do @doc """ Transcribes a character list representing DNA nucleotides to RNA ## Examples iex> RnaTranscription.to_rna('ACTG') 'UGAC' """ @spec to_rna([char]) :: [char] @spec char_to_rna(char()) :: char() def to_rna(dna) do dna |> to_charlist() |> Enum.map(fn x...
15.238095
66
0.603125
853e1be8bc0943798c62a3cb3529d3f38cec18b5
1,669
ex
Elixir
web/web.ex
h4cc/elixir-badges
e10ad5ba2083236fb26bbfac9e284621fca547a6
[ "MIT" ]
null
null
null
web/web.ex
h4cc/elixir-badges
e10ad5ba2083236fb26bbfac9e284621fca547a6
[ "MIT" ]
3
2015-04-24T12:28:05.000Z
2015-04-28T19:54:36.000Z
web/web.ex
h4cc/elixir-badges
e10ad5ba2083236fb26bbfac9e284621fca547a6
[ "MIT" ]
null
null
null
defmodule ElixirBadges.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use ElixirBadges.Web, :controller use ElixirBadges.Web, :view The definitions below will be executed for every view, controller, etc, s...
21.960526
66
0.676453
853e3016616766df2b63206915de60855467d7b6
448
exs
Elixir
mix.exs
ponyatov/metalex
0214ad858c79b374207dbc3350e40b29ee819feb
[ "MIT" ]
null
null
null
mix.exs
ponyatov/metalex
0214ad858c79b374207dbc3350e40b29ee819feb
[ "MIT" ]
null
null
null
mix.exs
ponyatov/metalex
0214ad858c79b374207dbc3350e40b29ee819feb
[ "MIT" ]
null
null
null
defmodule Hello.MixProject do use Mix.Project def project do [ app: :hello, description: "metaL: implementation in Erlang/Elixir", author: "Dmitry Ponyatov", version: "0.0.1", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps() ] end def appli...
16
60
0.546875
853e4c63bfd7eb3ba8fc1570990695101342061d
80
ex
Elixir
lib/phoenix_sample_web/views/user_session_view.ex
gotoeveryone/phoenix_sample
8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f
[ "MIT" ]
null
null
null
lib/phoenix_sample_web/views/user_session_view.ex
gotoeveryone/phoenix_sample
8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f
[ "MIT" ]
null
null
null
lib/phoenix_sample_web/views/user_session_view.ex
gotoeveryone/phoenix_sample
8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f
[ "MIT" ]
null
null
null
defmodule PhoenixSampleWeb.UserSessionView do use PhoenixSampleWeb, :view end
20
45
0.85
853e5515a7336b3a11e5d376a69bc38f171082d7
2,006
exs
Elixir
test/core_test.exs
wkhere/webassembly
f24b43a7383c73da907095d03bfdf54ea6ecbabe
[ "BSD-2-Clause" ]
44
2017-01-22T03:54:32.000Z
2022-01-24T16:06:19.000Z
test/core_test.exs
wkhere/webassembly
f24b43a7383c73da907095d03bfdf54ea6ecbabe
[ "BSD-2-Clause" ]
2
2018-09-28T03:07:30.000Z
2022-01-13T00:02:46.000Z
test/core_test.exs
wkhere/webassembly
f24b43a7383c73da907095d03bfdf54ea6ecbabe
[ "BSD-2-Clause" ]
6
2018-03-03T16:45:11.000Z
2021-05-28T16:09:20.000Z
defmodule WebAssembly.Core.Test.Helpers do import WebAssembly.DSL.Internal.Tags def el(name, content), do: [tag_start(name,[]), content, tag_end(name)] def el_start(name), do: tag_start(name,[]) def el_end(name), do: tag_end(name) end defmodule WebAssembly.Core.Test do use ExUnit.Case ...
20.469388
68
0.592722
853e680adafa27db558a5378e6364601f79377cb
956
exs
Elixir
config/test.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
37
2018-07-13T14:08:16.000Z
2021-04-09T15:00:22.000Z
config/test.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
9
2018-07-16T15:24:39.000Z
2021-09-01T14:21:20.000Z
config/test.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
3
2018-10-05T20:19:25.000Z
2019-12-05T00:30:01.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :planga, PlangaWeb.Endpoint, http: [port: 4001], server: true # Print only warnings and errors during test config :logger, level: :warn # Configure your database # config :planga, Planga.Repo,...
23.317073
57
0.700837
853e7c846ee149a2ae5c7bc1e80a4a144ba25bf0
948
exs
Elixir
test/discount_test.exs
gremly/cabishop
d5c1188ce6237ff671f2b98525b3ae7a0accad12
[ "MIT" ]
null
null
null
test/discount_test.exs
gremly/cabishop
d5c1188ce6237ff671f2b98525b3ae7a0accad12
[ "MIT" ]
null
null
null
test/discount_test.exs
gremly/cabishop
d5c1188ce6237ff671f2b98525b3ae7a0accad12
[ "MIT" ]
null
null
null
defmodule CabiShop.DiscountTest do use ExUnit.Case, async: true alias CabiShop.{Discount, Factory} describe "Evaluate and apply discount and promotion rules for products" do test "succeed applying discount on bulk purchases" do tshirt = Factory.build_tshirt(%{bulk: %{qty: 3, discount: 0.05}}) a...
33.857143
76
0.666667
853e9f0fd0537dcd502d1cfcb0132f1532ea9ca1
1,372
ex
Elixir
lib/hologram/compiler/js_encoders/block.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
lib/hologram/compiler/js_encoders/block.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
lib/hologram/compiler/js_encoders/block.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
alias Hologram.Compiler.{Config, Context, JSEncoder, Opts} alias Hologram.Compiler.IR.{Block, MatchOperator} defimpl JSEncoder, for: Block do def encode(%{expressions: exprs}, %Context{} = context, %Opts{} = opts) do expr_count = Enum.count(exprs) exprs |> Enum.with_index() |> Enum.map_reduce(contex...
29.826087
79
0.672741
853eb43c371ddc706efe0cf9e1d0f37b2f7c74c6
1,783
exs
Elixir
config/dev.exs
czogori/pocket_reducer
09ecb2fcdf56a360b827a93c6e211e2885d3b8a3
[ "MIT" ]
null
null
null
config/dev.exs
czogori/pocket_reducer
09ecb2fcdf56a360b827a93c6e211e2885d3b8a3
[ "MIT" ]
null
null
null
config/dev.exs
czogori/pocket_reducer
09ecb2fcdf56a360b827a93c6e211e2885d3b8a3
[ "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 :pocket_reducer, PocketReducerWeb.Endpoint, ht...
31.839286
170
0.700505
853ee2d9428e0d13d4cbd7dc3eec43de677aef9a
2,023
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension_dimension_value.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension_dimension_value.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/dimension_dimension_value.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...
37.462963
264
0.731092
853eec70a3cd8430e6180d7980bcfac2314c73f3
501
exs
Elixir
priv/mock/debug_seeds.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/mock/debug_seeds.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/mock/debug_seeds.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
alias GroupherServer.CMS # alias Helper.ORM # ORM.delete_all(CMS.Model.Thread, :if_exist) CMS.clean_up_community(:home) {:ok, community} = CMS.seed_community(:home) # hello = ORM.find(CMS.Model.Community, community.id) # IO.inspect(hello, label: "hello -> ") CMS.seed_articles(community, :post, 5) CMS.seed_articles(...
27.833333
53
0.750499
853f049cc072a77a5269233d84110dcfcfb181f8
44,368
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
flash4syth/elixir
466bfc79fbad69eb6c9e4e3f19c262cdd93d7817
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
flash4syth/elixir
466bfc79fbad69eb6c9e4e3f19c262cdd93d7817
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/elixir/test/elixir/kernel/errors_test.exs
flash4syth/elixir
466bfc79fbad69eb6c9e4e3f19c262cdd93d7817
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true import ExUnit.CaptureIO defmacro hello do quote location: :keep do def hello, do: :world end end test "no optional arguments in fn" do assert_eval_raise CompileError, ...
34.990536
155
0.53507
853f1b51929ac7d9e48352f756abb736cd742e44
485
exs
Elixir
test/regressions/i021_escape_amp_in_code_blocks_test.exs
RobertDober/earmark
6f20bd06f40e4333294d19eb38031ea480f3d3ba
[ "Apache-2.0" ]
null
null
null
test/regressions/i021_escape_amp_in_code_blocks_test.exs
RobertDober/earmark
6f20bd06f40e4333294d19eb38031ea480f3d3ba
[ "Apache-2.0" ]
null
null
null
test/regressions/i021_escape_amp_in_code_blocks_test.exs
RobertDober/earmark
6f20bd06f40e4333294d19eb38031ea480f3d3ba
[ "Apache-2.0" ]
1
2020-09-15T17:47:35.000Z
2020-09-15T17:47:35.000Z
defmodule Regressions.I021EscapeAmpInCodeBlocksTest do use ExUnit.Case @code_blocks_escape """ escape("Hello <world>") "Hello &lt;world&gt;" """ test "Issue https://github.com/pragdave/earmark/issues/21" do result = Earmark.as_html! @code_blocks_escape assert result == """ ...
28.529412
73
0.589691
853f214ac9e59d99ff88a6b120a33264c6fc5fc3
202
exs
Elixir
strings-and-binaries/anagram.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2019-02-17T11:54:17.000Z
2019-02-17T11:54:17.000Z
strings-and-binaries/anagram.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
strings-and-binaries/anagram.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
defmodule Anagram do def valid?(word1, word2) when length(word1) > length(word2), do: word1 -- word2 == [] def valid?(word1, word2) when length(word1) <= length(word2), do: word2 -- word1 == [] end
40.4
88
0.658416
853f3090f166129a7ddd73217c7ec36140be74d0
314
exs
Elixir
apps/customer/priv/repo/migrations/20161128040450_create_tech_keyword.exs
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
102
2017-05-21T18:24:04.000Z
2022-03-10T12:53:20.000Z
apps/customer/priv/repo/migrations/20161128040450_create_tech_keyword.exs
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
2
2017-05-21T01:53:30.000Z
2017-12-01T00:27:06.000Z
apps/customer/priv/repo/migrations/20161128040450_create_tech_keyword.exs
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
18
2017-05-22T09:51:36.000Z
2021-09-24T00:57:01.000Z
defmodule Customer.Repo.Migrations.CreateTechKeyword do use Ecto.Migration def change do create table(:tech_keywords) do add :type, :string, null: false add :name, :string, nulll: false, unique: true timestamps() end create index(:tech_keywords, :name, unique: true) end end
20.933333
55
0.684713
853f328b04db7afba95727b720639fb8e74eb2f8
474
ex
Elixir
lib/changelog/data/podcast/podcast_topic.ex
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
lib/changelog/data/podcast/podcast_topic.ex
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
lib/changelog/data/podcast/podcast_topic.ex
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
defmodule Changelog.PodcastTopic do use Changelog.Data alias Changelog.{Topic, Podcast} schema "podcast_topics" do field :position, :integer field :delete, :boolean, virtual: true belongs_to :podcast, Podcast belongs_to :topic, Topic timestamps() end def changeset(struct, params \\ %{...
20.608696
61
0.687764
853f3ddea5f5c7841c556d147eb1c4561708ba31
2,432
exs
Elixir
test/devito_web/controllers/api/link_controller_test.exs
supersimple/devito
9b976849d934a9551450ca0459859e76c0929893
[ "Apache-2.0" ]
37
2020-07-23T16:05:32.000Z
2022-02-04T07:06:17.000Z
test/devito_web/controllers/api/link_controller_test.exs
supersimple/devito
9b976849d934a9551450ca0459859e76c0929893
[ "Apache-2.0" ]
1
2020-08-03T03:58:57.000Z
2020-08-05T03:06:37.000Z
test/devito_web/controllers/api/link_controller_test.exs
supersimple/devito
9b976849d934a9551450ca0459859e76c0929893
[ "Apache-2.0" ]
3
2020-07-24T22:43:08.000Z
2021-05-30T17:43:45.000Z
defmodule DevitoWeb.API.LinkControllerTest do use DevitoWeb.ConnCase alias Devito.Link setup %{conn: conn} do System.put_env("AUTH_TOKEN", "abc123") test_token = :sha256 |> :crypto.hash("abc123") |> Base.encode64() on_exit(fn -> System.delete_env("AUTH_TOKEN") end) %{conn: c...
27.325843
96
0.60403
853f585af0a440794009ebf77245bc088b8eea2b
704
exs
Elixir
apps/ewallet/test/ewallet/web/email_validator_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
2
2019-07-13T05:49:03.000Z
2021-08-19T23:58:23.000Z
apps/ewallet/test/ewallet/web/email_validator_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/web/email_validator_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
3
2018-05-08T17:15:42.000Z
2021-11-10T04:08:33.000Z
defmodule EWallet.EmailValidatorTest do use ExUnit.Case alias EWallet.EmailValidator describe "EWallet.EmailValidator.is_valid_email?/1" do test "returns true on valid emails" do assert EmailValidator.valid?("johndoe@example.com") assert EmailValidator.valid?("john+doe@example.com") assert ...
33.52381
65
0.723011
853f5cda0e47f07ad97be114c4945021fab7ca77
1,751
ex
Elixir
lib/worldly/country.ex
martide/worldly
be03734da41fa40a4a6c8963b33be4ccf5b10dcc
[ "Apache-2.0" ]
null
null
null
lib/worldly/country.ex
martide/worldly
be03734da41fa40a4a6c8963b33be4ccf5b10dcc
[ "Apache-2.0" ]
null
null
null
lib/worldly/country.ex
martide/worldly
be03734da41fa40a4a6c8963b33be4ccf5b10dcc
[ "Apache-2.0" ]
1
2018-09-27T12:07:29.000Z
2018-09-27T12:07:29.000Z
defmodule Worldly.Country do defstruct name: "", alpha_3_code: "", alpha_2_code: "", has_regions: false, common_name: "", official_name: "", numeric_code: "" def countries_data_file_path do file_path = Application.get_env(:worldly, :data_path) |> Path.join("world.yml") if File.exists?(file_path) do f...
30.719298
130
0.692747
853f7834edef19b3dea0291557d7a00250b2780d
881
exs
Elixir
mix.exs
ngzax/deejay
ce32449c3ba58675796ccad92be347029de280f7
[ "BSD-3-Clause" ]
null
null
null
mix.exs
ngzax/deejay
ce32449c3ba58675796ccad92be347029de280f7
[ "BSD-3-Clause" ]
null
null
null
mix.exs
ngzax/deejay
ce32449c3ba58675796ccad92be347029de280f7
[ "BSD-3-Clause" ]
null
null
null
defmodule DeeJay.Mixfile do use Mix.Project def project do [ app: :deejay, version: "0.0.1", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps ] end # Configuration for the OTP...
21.487805
77
0.518729
853fac92a3b476909ec9dc6a6030783a02cb9371
282
ex
Elixir
test/support/next/mock_builder.ex
smartvokat/sagax
0782b3ca83394df62db1fb5659f1e16dae5d81d0
[ "Apache-2.0" ]
3
2021-02-08T15:49:15.000Z
2022-01-28T19:44:26.000Z
test/support/next/mock_builder.ex
smartvokat/sagax
0782b3ca83394df62db1fb5659f1e16dae5d81d0
[ "Apache-2.0" ]
4
2021-09-29T08:07:24.000Z
2022-02-22T09:07:00.000Z
test/support/next/mock_builder.ex
smartvokat/sagax
0782b3ca83394df62db1fb5659f1e16dae5d81d0
[ "Apache-2.0" ]
1
2021-01-25T13:37:34.000Z
2021-01-25T13:37:34.000Z
defmodule Sagax.Next.Test.MockBuilder do alias Sagax.Next, as: Sagax use Sagax.Builder defp new(args, context, opts) do Sagax.new(args: args, context: context, opts: opts) |> Sagax.put("a", fn -> {:ok, "a"} end) |> Sagax.put("b", fn -> {:ok, "b"} end) end end
23.5
55
0.613475
853fb10c3ba8bfc4e11f8e4ee5d144b1e1657f99
1,923
ex
Elixir
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/call_function_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/call_function_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/call_function_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &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.963636
127
0.722309
853fd09ed33648cf28613debea489425fff6cb7a
427
exs
Elixir
chapter-07/lists-and-recursion-3.exs
andreyuhai/elixir-exercises
23f90ba8e76597cf8feb45a11718dcb0c42b649d
[ "MIT" ]
null
null
null
chapter-07/lists-and-recursion-3.exs
andreyuhai/elixir-exercises
23f90ba8e76597cf8feb45a11718dcb0c42b649d
[ "MIT" ]
null
null
null
chapter-07/lists-and-recursion-3.exs
andreyuhai/elixir-exercises
23f90ba8e76597cf8feb45a11718dcb0c42b649d
[ "MIT" ]
null
null
null
defmodule MyList do # Exercise:ListsAndRecursion-3 # Write a caesar(list, n) function that adds n to each list element, wrapping if the addition # results in a character greater than z. def caesar([], _n), do: [] def caesar([ head | tail ], n), do: [ rem(head + n, ?z) | caesar(tail, n) ] end IO.puts MyList.c...
38.818182
95
0.676815
853fde54a63622521b76f2a0765984799ea7e3c5
1,003
ex
Elixir
clients/poly/lib/google_api/poly/v1/connection.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/poly/lib/google_api/poly/v1/connection.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/poly/lib/google_api/poly/v1/connection.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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.586207
77
0.748754
853fe6904c7d6d9872f1809a19b42103164f406d
159
exs
Elixir
priv/repo/migrations/20201002044142_weblinks_index.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
11
2019-05-27T23:43:46.000Z
2021-08-24T06:37:23.000Z
priv/repo/migrations/20201002044142_weblinks_index.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
1
2020-05-17T04:51:52.000Z
2021-03-25T15:38:33.000Z
priv/repo/migrations/20201002044142_weblinks_index.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
2
2019-05-27T23:43:52.000Z
2020-10-15T09:09:58.000Z
defmodule Zam.Repo.Migrations.WeblinksIndex do use Ecto.Migration def change do alter table(:weblinks) do add :index, :bigint end end end
15.9
46
0.698113
853ff38037a374e09425233f14ab87f0f0267015
1,897
exs
Elixir
mix.exs
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
mix.exs
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
mix.exs
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
defmodule Pta.MixProject do use Mix.Project def project do [ app: :pta, version: "0.1.0", elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), deps:...
27.1
91
0.552451
8540156b5e2694e3393c0eed96b94c39e6df4651
3,903
ex
Elixir
lib/sudoku_solver/recursive_candidates.ex
froseph/sudoku_solver
c6dd87638730b0a8bb095891fff06e2bc70b8ebe
[ "MIT" ]
null
null
null
lib/sudoku_solver/recursive_candidates.ex
froseph/sudoku_solver
c6dd87638730b0a8bb095891fff06e2bc70b8ebe
[ "MIT" ]
null
null
null
lib/sudoku_solver/recursive_candidates.ex
froseph/sudoku_solver
c6dd87638730b0a8bb095891fff06e2bc70b8ebe
[ "MIT" ]
null
null
null
defmodule SudokuSolver.RecursiveCandidates do @moduledoc """ Implementes SudokuSolver using recursion """ @behaviour SudokuSolver @doc """ Implements a sudoku solver using recursion """ @impl SudokuSolver @spec solve(SudokuBoardCandidates.t()) :: SudokuBoardCandidates.t() | nil def solve(%SudokuBoa...
33.93913
107
0.719959
8540305c4e70c9a1b4d6f0039a86e258a1ad7705
81
exs
Elixir
test/bits_test.exs
cschmatzler/datamatrix
ac8e0733f8535c1b276276acad9e90e90a53e7aa
[ "MIT" ]
5
2020-02-24T22:31:19.000Z
2022-02-11T08:57:43.000Z
test/bits_test.exs
cschmatzler/datamatrix
ac8e0733f8535c1b276276acad9e90e90a53e7aa
[ "MIT" ]
null
null
null
test/bits_test.exs
cschmatzler/datamatrix
ac8e0733f8535c1b276276acad9e90e90a53e7aa
[ "MIT" ]
1
2021-08-05T12:01:43.000Z
2021-08-05T12:01:43.000Z
defmodule DataMatrix.BitsTest do use ExUnit.Case doctest DataMatrix.Bits end
16.2
32
0.814815
854039b8b24e9abb02df0c842312806e08d68fcc
4,858
ex
Elixir
lib/nanoid/secure.ex
sepow/nanoid
c30f3101cfbe451a52872b821a2b4d6afb29067f
[ "MIT" ]
null
null
null
lib/nanoid/secure.ex
sepow/nanoid
c30f3101cfbe451a52872b821a2b4d6afb29067f
[ "MIT" ]
null
null
null
lib/nanoid/secure.ex
sepow/nanoid
c30f3101cfbe451a52872b821a2b4d6afb29067f
[ "MIT" ]
null
null
null
defmodule Nanoid.Secure do @moduledoc """ Generate a secure URL-friendly unique ID. This method uses the secure and non predictable random generator. By default, the ID will have 21 symbols with a collision probability similar to UUID v4. """ use Bitwise ## -- DEFAULT ATTRIBUTES @default_mask 63 defp...
35.202899
109
0.704817
85404fb4956d4aa0bff2cb45b34122ecd000532d
5,671
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/documentation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/documentation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/documentation.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 ...
42.320896
177
0.701287
854085c6d6684f9b07ca9587a65cf94fbde87f7c
545
ex
Elixir
src/token_service/lib/token_service_web/views/error_view.ex
wbpascal/statuswebsite
7a81e530a9176c53abeab0582cb710113101b716
[ "MIT" ]
1
2021-04-18T20:21:03.000Z
2021-04-18T20:21:03.000Z
src/token_service/lib/token_service_web/views/error_view.ex
wbpascal/statuswebsite
7a81e530a9176c53abeab0582cb710113101b716
[ "MIT" ]
null
null
null
src/token_service/lib/token_service_web/views/error_view.ex
wbpascal/statuswebsite
7a81e530a9176c53abeab0582cb710113101b716
[ "MIT" ]
1
2021-04-18T20:21:08.000Z
2021-04-18T20:21:08.000Z
defmodule TokenServiceWeb.ErrorView do use TokenServiceWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.json", _assigns) do # %{errors: %{detail: "Internal Server Error"}} # end # By default, Phoenix returns the status me...
32.058824
83
0.724771
854092617544148e54e8d7cc3539737961958e68
1,479
ex
Elixir
lib/wallet_ms_web/views/error_helpers.ex
Arqui2018/2F_wallet_ms
3b5cdb71f1590f7340460f13a086918448bc3fae
[ "MIT" ]
null
null
null
lib/wallet_ms_web/views/error_helpers.ex
Arqui2018/2F_wallet_ms
3b5cdb71f1590f7340460f13a086918448bc3fae
[ "MIT" ]
null
null
null
lib/wallet_ms_web/views/error_helpers.ex
Arqui2018/2F_wallet_ms
3b5cdb71f1590f7340460f13a086918448bc3fae
[ "MIT" ]
null
null
null
defmodule WalletMsWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn (error) -> content_t...
32.866667
77
0.6714
85409b20d0e77f2c419ff1453bafdce0f8c0c42a
6,254
ex
Elixir
deps/file_system/lib/file_system/backends/fs_mac.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/file_system/lib/file_system/backends/fs_mac.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/file_system/lib/file_system/backends/fs_mac.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
require Logger defmodule FileSystem.Backends.FSMac do @moduledoc """ This file is a fork from https://github.com/synrc/fs. FileSysetm backend for macos, a GenServer receive data from Port, parse event and send it to the worker process. Will compile executable the buildin executable file when file the ...
34.552486
186
0.653502
8540ade51f1668e4891d0ba41d4fa7c1c15ca597
471
ex
Elixir
lib/level/asset_store/adapter.ex
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
1
2019-06-11T20:20:32.000Z
2019-06-11T20:20:32.000Z
lib/level/asset_store/adapter.ex
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
null
null
null
lib/level/asset_store/adapter.ex
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
null
null
null
defmodule Level.AssetStore.Adapter do @moduledoc """ The behaviour for asset store adapters. """ @doc """ Persist the blob to the store and return the filename. """ @callback persist(pathname :: String.t(), bucket :: String.t(), blob :: binary()) :: {:ok, pathname :: String.t()} | {:error, ...
27.705882
86
0.611465
8540c5af97e3f2090560bf7a0e35f916a60de92e
1,747
exs
Elixir
test/exavier/mutators/ror4_test.exs
KingOfRostov/exavier
fe8020361db6295d9ec92cc71fb5170937c22833
[ "MIT" ]
null
null
null
test/exavier/mutators/ror4_test.exs
KingOfRostov/exavier
fe8020361db6295d9ec92cc71fb5170937c22833
[ "MIT" ]
null
null
null
test/exavier/mutators/ror4_test.exs
KingOfRostov/exavier
fe8020361db6295d9ec92cc71fb5170937c22833
[ "MIT" ]
null
null
null
defmodule Exavier.Mutators.ROR4Test do use ExUnit.Case, async: true @subject Exavier.Mutators.ROR4 @mutations [ %{ description: "mutates < to ==", original_code: {:<, [line: 2], [1, 2]}, lines_to_mutate: [2], mutated_code: {:==, [line: 2], [1, 2]} }, %{ description: "mu...
27.296875
67
0.517459
8540c62760238df96f8530447590de36fb3274f9
3,343
ex
Elixir
lib/koans/12_pattern_matching.ex
eugenioLopezRamos/elixir-koans-solutions
ac183528275c1b271e66c4cd3a644784b6965335
[ "MIT" ]
null
null
null
lib/koans/12_pattern_matching.ex
eugenioLopezRamos/elixir-koans-solutions
ac183528275c1b271e66c4cd3a644784b6965335
[ "MIT" ]
null
null
null
lib/koans/12_pattern_matching.ex
eugenioLopezRamos/elixir-koans-solutions
ac183528275c1b271e66c4cd3a644784b6965335
[ "MIT" ]
null
null
null
defmodule PatternMatching do use Koans @intro "PatternMatching" koan "One matches one" do assert match?(1, 1) end koan "Patterns can be used to pull things apart" do [head | tail] = [1, 2, 3, 4] assert head == 1 assert tail == [2,3,4] end koan "And then put them back together" do ...
23.215278
101
0.591385
8540e6c3c62a298c3d923cd624aecc43dfce5ad4
717
ex
Elixir
lib/hightopics_web/gettext.ex
a-sac/HighTopics
e99b2cc517d5b552bc7f44aae9774357c8bb427b
[ "MIT" ]
null
null
null
lib/hightopics_web/gettext.ex
a-sac/HighTopics
e99b2cc517d5b552bc7f44aae9774357c8bb427b
[ "MIT" ]
null
null
null
lib/hightopics_web/gettext.ex
a-sac/HighTopics
e99b2cc517d5b552bc7f44aae9774357c8bb427b
[ "MIT" ]
null
null
null
defmodule HightopicsWeb.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 HightopicsWeb.Gettext # Simple translation gettext "Her...
28.68
72
0.684798
8541284de650168c996c4bafb375d5bcaa5c69a2
2,043
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/duration.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/duration.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/duration.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.86
267
0.727362
854143242ad6893c90b95331eb12b4c71fdc298d
1,037
ex
Elixir
core/lib/cronus_core/application.ex
Parasrah/cronus
b630a7d62128b03c7cdf65f941af2a2c2bd617e5
[ "MIT" ]
null
null
null
core/lib/cronus_core/application.ex
Parasrah/cronus
b630a7d62128b03c7cdf65f941af2a2c2bd617e5
[ "MIT" ]
null
null
null
core/lib/cronus_core/application.ex
Parasrah/cronus
b630a7d62128b03c7cdf65f941af2a2c2bd617e5
[ "MIT" ]
null
null
null
defmodule CronusCore.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 CronusCore.Repo, # Start the Telemetry supervisor C...
29.628571
68
0.70974
8541542ad66af70302ca1642c04d75a55cf7594e
2,460
exs
Elixir
hangman/test/game_test.exs
codebay/game_comps
1211fab75b2023f9afb32b7272c6f877aabb6f7e
[ "Apache-2.0" ]
null
null
null
hangman/test/game_test.exs
codebay/game_comps
1211fab75b2023f9afb32b7272c6f877aabb6f7e
[ "Apache-2.0" ]
null
null
null
hangman/test/game_test.exs
codebay/game_comps
1211fab75b2023f9afb32b7272c6f877aabb6f7e
[ "Apache-2.0" ]
null
null
null
defmodule GameTest do use ExUnit.Case alias Hangman.Game test "new_game returns structure" do game = Game.new_game() assert game.turns_left == 7 assert game.game_state == :initializing assert length(game.letters) > 0 end test "state isn't changed for :won or :lost game" do for state <- ...
27.640449
74
0.54187
854156f67a3ea60bc4f365ece2e56fe04a5ba46c
2,030
exs
Elixir
config/prod.exs
CassiusPacheco/ex_micro_blog
e96cb65a76bdc17313457dadb8075e3d9ac2e4f5
[ "MIT" ]
3
2020-04-21T22:48:23.000Z
2020-05-12T19:58:31.000Z
config/prod.exs
CassiusPacheco/ex_micro_blog
e96cb65a76bdc17313457dadb8075e3d9ac2e4f5
[ "MIT" ]
1
2021-05-11T11:22:49.000Z
2021-05-11T11:22:49.000Z
config/prod.exs
CassiusPacheco/ex_micro_blog
e96cb65a76bdc17313457dadb8075e3d9ac2e4f5
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
36.25
71
0.71133
85415775a882f3487f2855702fc3009aedfd83e1
476
ex
Elixir
lib/cotoami_web/views/view_helpers.ex
fmorita/cotoami
e3eb92ad15829f99cf3e8974077f135e789924cf
[ "Apache-2.0" ]
null
null
null
lib/cotoami_web/views/view_helpers.ex
fmorita/cotoami
e3eb92ad15829f99cf3e8974077f135e789924cf
[ "Apache-2.0" ]
null
null
null
lib/cotoami_web/views/view_helpers.ex
fmorita/cotoami
e3eb92ad15829f99cf3e8974077f135e789924cf
[ "Apache-2.0" ]
null
null
null
defmodule CotoamiWeb.ViewHelpers do def render_relation(relation, view, template) do case relation do nil -> nil %Ecto.Association.NotLoaded{} -> nil relation -> Phoenix.View.render_one(relation, view, template) end end def render_relations(relations, view, template) do case relati...
25.052632
70
0.682773
8541a419fd1facdb13c65c66236ed9fd2ac233d7
237
ex
Elixir
server/lib/secure_notepad_server.ex
thooton/secure-notepad
e780c660a9ea6e425a0e06ff1f9469f527251815
[ "MIT" ]
null
null
null
server/lib/secure_notepad_server.ex
thooton/secure-notepad
e780c660a9ea6e425a0e06ff1f9469f527251815
[ "MIT" ]
null
null
null
server/lib/secure_notepad_server.ex
thooton/secure-notepad
e780c660a9ea6e425a0e06ff1f9469f527251815
[ "MIT" ]
null
null
null
defmodule SecureNotepadServer do @moduledoc """ Documentation for `SecureNotepadServer`. """ @doc """ Hello world. ## Examples iex> SecureNotepadServer.hello() :world """ def hello do :world end end
12.473684
42
0.624473
8541ba653f6200a218e21d4a8736ee77d1fdd18b
5,510
exs
Elixir
kousa/test/beef/users_test.exs
samoersnaes/dogehouse
ee55c38c2fac8e097adf6ddced14181454e3c1aa
[ "MIT" ]
null
null
null
kousa/test/beef/users_test.exs
samoersnaes/dogehouse
ee55c38c2fac8e097adf6ddced14181454e3c1aa
[ "MIT" ]
null
null
null
kousa/test/beef/users_test.exs
samoersnaes/dogehouse
ee55c38c2fac8e097adf6ddced14181454e3c1aa
[ "MIT" ]
null
null
null
defmodule Kousa.Beef.UsersTest do # what a terrible module name! # TODO: organize this into the correct context. use ExUnit.Case, async: true use Kousa.Support.EctoSandbox alias Beef.Schemas.User alias Beef.Schemas.Users alias Kousa.Support.Factory alias Beef.Repo describe "Users" do setup do ...
27.009804
98
0.590381
8541eafee8732b08ec2c1ddec41bb59370f78958
1,182
exs
Elixir
mix.exs
imerkle/binance.ex
01a842be8c9fefcb0d508d84edb3f1d42c3438c4
[ "MIT" ]
null
null
null
mix.exs
imerkle/binance.ex
01a842be8c9fefcb0d508d84edb3f1d42c3438c4
[ "MIT" ]
null
null
null
mix.exs
imerkle/binance.ex
01a842be8c9fefcb0d508d84edb3f1d42c3438c4
[ "MIT" ]
null
null
null
defmodule Binance.MixProject do use Mix.Project def project do [ app: :binance, version: "0.7.1", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps() ] end # Run "mix help compile.app" to learn ab...
22.301887
65
0.543993
8541ef0d81afc1777c88ce363f28e0286de1f6a3
1,930
ex
Elixir
lib/openskill/thurstone_mosteller_full.ex
philihp/openskill.ex
18197c8b3c4237360e34a4aff70d455b9160f4e0
[ "MIT" ]
5
2020-07-22T12:44:05.000Z
2022-03-02T01:46:03.000Z
lib/openskill/thurstone_mosteller_full.ex
philihp/openskill
18197c8b3c4237360e34a4aff70d455b9160f4e0
[ "MIT" ]
2
2021-02-14T13:19:27.000Z
2022-01-12T18:21:12.000Z
lib/openskill/thurstone_mosteller_full.ex
philihp/openskill.ex
18197c8b3c4237360e34a4aff70d455b9160f4e0
[ "MIT" ]
null
null
null
defmodule Openskill.ThurstoneMostellerFull do alias Openskill.{Environment, Util} @env %Environment{} @twobetasq 2 * @env.beta * @env.beta @epsilon 0.1 def rate(game, _options \\ []) do team_ratings = Util.team_rating(game) Enum.map(team_ratings, fn {teami_mu, teami_sigmasq, teami, ranki} -> ...
32.166667
88
0.532642
8541f56189ee5d15fd538e4cf23722d398aa7794
5,954
ex
Elixir
lib/aws/generated/media_tailor.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/media_tailor.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/media_tailor.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.MediaTailor do @moduledoc """ Use the AWS Elemental MediaTailor SDK to configure scalable ad insertion for your live and VOD content. With AWS Elemental MediaTailor, you can serve targete...
33.449438
100
0.675176
8542120dec50142214086e812add9b036756e2b3
1,816
exs
Elixir
mix.exs
fanhero/furlex
3b77bb7b19f3cee5b2e03d37a997dcec1225d47a
[ "Apache-2.0" ]
1
2019-01-23T13:39:18.000Z
2019-01-23T13:39:18.000Z
mix.exs
alexcastano/furlex
c8e4e474aa2494285fdc19b133d3ad1ea348add9
[ "Apache-2.0" ]
null
null
null
mix.exs
alexcastano/furlex
c8e4e474aa2494285fdc19b133d3ad1ea348add9
[ "Apache-2.0" ]
1
2019-01-11T09:52:03.000Z
2019-01-11T09:52:03.000Z
defmodule Furlex.Mixfile do use Mix.Project def project do [ app: :furlex, version: "0.3.4", elixir: "~> 1.6", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps(), name: "Furlex",...
24.213333
86
0.569934
8542205c817c755573fa804dbd48be4ecf999652
1,922
ex
Elixir
clients/plus/lib/google_api/plus/v1/model/comment_object.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/plus/lib/google_api/plus/v1/model/comment_object.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/plus/lib/google_api/plus/v1/model/comment_object.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...
35.592593
241
0.712799
85422813af46f123c17ae2d28a2377b6fe25afc3
267
ex
Elixir
examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox/lib/new_relic_sandbox.ex
surgeventures/new_relic_integration
5417f15f7dd17022ee927e0cdd4fca32529ed278
[ "MIT" ]
null
null
null
examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox/lib/new_relic_sandbox.ex
surgeventures/new_relic_integration
5417f15f7dd17022ee927e0cdd4fca32529ed278
[ "MIT" ]
2
2019-09-09T08:26:44.000Z
2019-11-05T04:31:37.000Z
examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox/lib/new_relic_sandbox.ex
surgeventures/new_relic_integration
5417f15f7dd17022ee927e0cdd4fca32529ed278
[ "MIT" ]
1
2019-09-06T09:27:27.000Z
2019-09-06T09:27:27.000Z
defmodule NewRelicSandbox do @moduledoc """ NewRelicSandbox keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
26.7
66
0.76779
85422a665c8944fbdafe1c2456157b485ea5297c
1,298
ex
Elixir
lib/groupher_server/cms/models/cited_artiment.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
lib/groupher_server/cms/models/cited_artiment.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
lib/groupher_server/cms/models/cited_artiment.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.CMS.Model.CitedArtiment do @moduledoc false alias __MODULE__ use Ecto.Schema use Accessible import Ecto.Changeset import GroupherServer.CMS.Helper.Macros alias GroupherServer.{Accounts, CMS} alias Accounts.Model.User alias CMS.Model.Comment @timestamps_opts [type: :utc_...
25.96
75
0.737288
85422fc24ef117c84acfe1aead5a924290ee1028
1,329
ex
Elixir
lib/plexy/instrumentor.ex
heroku/plexy
bfdd4a539c2c0d8f80101cca8061a945a2cd6159
[ "MIT" ]
153
2016-11-07T15:11:52.000Z
2021-11-16T23:20:52.000Z
lib/plexy/instrumentor.ex
heroku/plexy
bfdd4a539c2c0d8f80101cca8061a945a2cd6159
[ "MIT" ]
21
2016-11-07T14:55:09.000Z
2022-03-30T18:31:31.000Z
lib/plexy/instrumentor.ex
heroku/plexy
bfdd4a539c2c0d8f80101cca8061a945a2cd6159
[ "MIT" ]
5
2018-07-09T05:02:53.000Z
2019-11-01T01:08:09.000Z
defmodule Plexy.Instrumentor do @moduledoc """ A plug for logging basic request information in the format: instrumentation at=start method=get path=/apps instrumentation at=finish method=get path=/apps elapsed=100 status=200 """ alias Plexy.Logger alias Plug.Conn @behaviour Plug @doc """ Initialize...
24.611111
77
0.644093
854241166a9ac0b53d0b9fd0fd37db91eb58b164
1,013
ex
Elixir
test/support/channel_case.ex
mcousillas6/BioMonitor
312a903fe19751b6896aca9346340ea502397350
[ "MIT" ]
null
null
null
test/support/channel_case.ex
mcousillas6/BioMonitor
312a903fe19751b6896aca9346340ea502397350
[ "MIT" ]
null
null
null
test/support/channel_case.ex
mcousillas6/BioMonitor
312a903fe19751b6896aca9346340ea502397350
[ "MIT" ]
null
null
null
defmodule BioMonitor.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot b...
23.022727
72
0.704837
85427de5cf68cf12aa317eb759f724abab48fbce
827
ex
Elixir
lib/chargebee/error.ex
alfredclub/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:42:59.000Z
2019-09-13T14:31:36.000Z
lib/chargebee/error.ex
madebymany/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:42:48.000Z
2017-04-13T18:48:32.000Z
lib/chargebee/error.ex
madebymany/chargebee-elixir
d981f77f38f77410a207e31c8929258024ef2f26
[ "MIT" ]
2
2017-02-20T23:44:13.000Z
2017-05-11T19:53:21.000Z
defmodule Chargebee.Error do defstruct status_code: nil, message: "An error occurred", reason: nil, meta_data: %{} def from_server_response(%{body: body, status_code: status_code}) do map_body = Poison.decode!(body) from_error_body(map_body, status_code) end def fro...
28.517241
70
0.607013
8542a025c5092ae0e8bb00ae992d7156a02edf92
5,972
ex
Elixir
clients/security_center/lib/google_api/security_center/v1/model/group_findings_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/security_center/lib/google_api/security_center/v1/model/group_findings_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/security_center/lib/google_api/security_center/v1/model/group_findings_request.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...
96.322581
1,612
0.736102
8542a2849d108550917de95ecd65a1f98b9d230c
589
ex
Elixir
lib/fex/apis.ex
HPJM/FEx
19b57555a1bbc6dd3d8e758bd090f6ce6e8b9a87
[ "MIT" ]
null
null
null
lib/fex/apis.ex
HPJM/FEx
19b57555a1bbc6dd3d8e758bd090f6ce6e8b9a87
[ "MIT" ]
null
null
null
lib/fex/apis.ex
HPJM/FEx
19b57555a1bbc6dd3d8e758bd090f6ce6e8b9a87
[ "MIT" ]
null
null
null
defmodule FEx.APIs do @type currency :: atom() @type rate_pair :: %{from: currency(), to: currency(), rate: float()} @type symbol :: String.t() @type rate_response :: {:ok, rate_pair()} | {:error, any()} @type rates_response :: {:ok, list(rate_pair())} | {:error, any()} @type symbols_response :: {:ok, symbo...
39.266667
71
0.633277
8542b2109c4c589095239376b9d443494f98c649
742
ex
Elixir
deps/postgrex/lib/postgrex/extensions/circle.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/extensions/circle.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/extensions/circle.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Postgrex.Extensions.Circle do @moduledoc false import Postgrex.BinaryUtils, warn: false use Postgrex.BinaryExtension, send: "circle_send" def encode(_) do quote location: :keep do %Postgrex.Circle{center: %Postgrex.Point{x: x, y: y}, radius: r} when is_number(x) and is_number(...
32.26087
88
0.632075
8542f5816564cf5ebaa3c9c7e62b029d162ac96f
3,631
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_deidentify_content_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_deidentify_content_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_deidentify_content_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
57.634921
376
0.758193
8542fc829bcf3ce54e18caf7894f7eab546ef328
1,025
exs
Elixir
test/delta/sink/log_test.exs
mbta/delta_http_s3
66c61fd2c95a2184216e8718adf0c5d58318d679
[ "MIT" ]
4
2020-04-03T14:38:53.000Z
2021-04-02T10:31:30.000Z
test/delta/sink/log_test.exs
mbta/delta_http_s3
66c61fd2c95a2184216e8718adf0c5d58318d679
[ "MIT" ]
107
2020-03-19T13:24:23.000Z
2022-02-28T06:32:58.000Z
test/delta/sink/log_test.exs
mbta/delta_http_s3
66c61fd2c95a2184216e8718adf0c5d58318d679
[ "MIT" ]
1
2019-12-31T17:49:06.000Z
2019-12-31T17:49:06.000Z
defmodule Delta.Sink.LogTest do @moduledoc false use ExUnit.Case alias Delta.File alias Delta.Sink.Log import ExUnit.CaptureLog @sample_file %File{ updated_at: ~U[2020-01-02T03:04:05Z], url: "https://cdn.mbta.com/realtime/Alerts.pb", body: "body", encoding: :none } describe "start_link...
22.777778
81
0.59122
8543245a7b5016354c059df6d7e95f05ae45c045
2,241
ex
Elixir
lib/makeup/lexers/elixir_lexer/helper.ex
tmbb/makeup_elixir
a39c7d9424d102e3ac5a8277fbe323de9e6a311c
[ "BSD-2-Clause" ]
14
2018-07-11T17:37:33.000Z
2020-08-03T15:22:45.000Z
lib/makeup/lexers/elixir_lexer/helper.ex
elixir-makeup/makeup_elixir
56796a1d4e2377559176060f247d7c94808f4073
[ "BSD-2-Clause" ]
14
2020-09-29T17:22:28.000Z
2022-02-08T12:50:28.000Z
lib/makeup/lexers/elixir_lexer/helper.ex
tmbb/makeup_elixir
a39c7d9424d102e3ac5a8277fbe323de9e6a311c
[ "BSD-2-Clause" ]
9
2018-07-11T14:42:30.000Z
2020-04-23T09:06:01.000Z
defmodule Makeup.Lexers.ElixirLexer.Helper do @moduledoc false import NimbleParsec alias Makeup.Lexer.Combinators def with_optional_separator(combinator, separator) when is_binary(separator) do combinator |> repeat(string(separator) |> concat(combinator)) end # Allows escaping of the first character o...
29.88
91
0.599732