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
1c29a399036b4d344162b10386c6ece8e5321e7e
2,419
exs
Elixir
test/controllers/franchise_controller_test.exs
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
test/controllers/franchise_controller_test.exs
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
test/controllers/franchise_controller_test.exs
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
defmodule WhereItsDue.FranchiseControllerTest do use WhereItsDue.ConnCase alias WhereItsDue.Franchise @valid_attrs %{deck: "some content", description: "some content", giant_bomb_id: 42, name: "some content"} @invalid_attrs %{} setup %{conn: conn} do {:ok, conn: put_req_header(conn, "accept", "applicati...
37.796875
108
0.688714
1c29a900c771c40b5f4f70e560142b4604b7703d
1,197
ex
Elixir
lib/sensor/web.ex
trihome/nervesjp_basis
1e8f6567c2f3a5669d761226bf665a0ae4c94744
[ "MIT" ]
4
2020-11-28T18:12:40.000Z
2020-12-26T15:25:28.000Z
lib/sensor/web.ex
trihome/nervesjp_basis
1e8f6567c2f3a5669d761226bf665a0ae4c94744
[ "MIT" ]
7
2020-11-30T03:49:56.000Z
2021-02-19T09:12:02.000Z
lib/sensor/web.ex
trihome/nervesjp_basis
1e8f6567c2f3a5669d761226bf665a0ae4c94744
[ "MIT" ]
5
2020-11-29T03:59:19.000Z
2020-12-26T15:24:18.000Z
defmodule NervesjpBasis.Sensor.Web do @moduledoc """ Documentation for `Web`. WebAPIとのやりとりモジュール """ alias NervesjpBasis.Sensor.Aht20 # 定数 ## ここの部分を、あなたのハンドル名に書き換えてください @my_name "nervesjp_algyan" # 定数 ## Web APi @url_temp "https://phx.japaneast.cloudapp.azure.com/temperatures" @url_humi "https...
19.622951
85
0.620718
1c29c3bf2c2def7d6cada0cf9ef8ca5deeea10aa
613
exs
Elixir
nerves.exs
radu/nerves_rpi0_plus
79ffd6f570fe0a94b2623aed24f1151b5090f33b
[ "Apache-2.0" ]
null
null
null
nerves.exs
radu/nerves_rpi0_plus
79ffd6f570fe0a94b2623aed24f1151b5090f33b
[ "Apache-2.0" ]
null
null
null
nerves.exs
radu/nerves_rpi0_plus
79ffd6f570fe0a94b2623aed24f1151b5090f33b
[ "Apache-2.0" ]
null
null
null
use Mix.Config version = Path.join(__DIR__, "VERSION") |> File.read! |> String.strip pkg = :nerves_system_rpi0 config pkg, :nerves_env, type: :system, version: version, compiler: :nerves_package, artifact_url: [ "https://github.com/nerves-project/#{pkg}/releases/download/v#{version}/#{pkg}-v#{versi...
19.774194
103
0.641109
1c29ee0a0021c68be0d0968e6bd09af1952e418f
2,290
exs
Elixir
mix.exs
oestrich/grapevine-legacy
9d84f8e2d65dda5982686381ffa94a940142e1da
[ "MIT" ]
null
null
null
mix.exs
oestrich/grapevine-legacy
9d84f8e2d65dda5982686381ffa94a940142e1da
[ "MIT" ]
null
null
null
mix.exs
oestrich/grapevine-legacy
9d84f8e2d65dda5982686381ffa94a940142e1da
[ "MIT" ]
null
null
null
defmodule Grapevine.Mixfile do use Mix.Project def project do [ app: :grapevine, version: "0.1.0", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, start_permanent: Mix.env == :prod, aliases: aliases(), de...
29.358974
79
0.550655
1c29ef6f1e6eebdc1f132d5e67a8d18dd26c3f51
1,637
exs
Elixir
mix.exs
doron2402/phoenix
444a7a40c6595eb9afc976b5dad512664805fcb9
[ "MIT" ]
null
null
null
mix.exs
doron2402/phoenix
444a7a40c6595eb9afc976b5dad512664805fcb9
[ "MIT" ]
null
null
null
mix.exs
doron2402/phoenix
444a7a40c6595eb9afc976b5dad512664805fcb9
[ "MIT" ]
null
null
null
defmodule Phoenix.Mixfile do use Mix.Project @version "0.16.1" def project do [app: :phoenix, version: @version, elixir: "~> 1.0.2 or ~> 1.1-dev", deps: deps, package: package, docs: [source_ref: "v#{@version}", main: "Phoenix"], name: "Phoenix", source_url: "https://githu...
29.763636
96
0.587049
1c2a4c4425f633d2a0fc0c66a0c1409c656ec445
2,175
ex
Elixir
lib/bandwidth/resources/messages.ex
dtolb/elixir-bandwidth
58dbc1ab8b04be737c08e894d36755d49eb95e87
[ "MIT" ]
4
2018-11-19T16:22:15.000Z
2021-01-23T08:44:25.000Z
lib/bandwidth/resources/messages.ex
dtolb/elixir-bandwidth
58dbc1ab8b04be737c08e894d36755d49eb95e87
[ "MIT" ]
3
2017-11-07T14:39:10.000Z
2019-02-18T14:17:52.000Z
lib/bandwidth/resources/messages.ex
wtcross/elixir-bandwidth
58dbc1ab8b04be737c08e894d36755d49eb95e87
[ "MIT" ]
5
2017-11-06T22:41:45.000Z
2019-08-09T03:17:37.000Z
defmodule Bandwidth.Resources.Messages do @moduledoc """ The Messages resource lets you send SMS/MMS messages and view messages that were previously sent or received. [Bandwidth Docs](http://ap.bandwidth.com/docs/rest-api/messages/) """ import Bandwidth.Client @doc ~S""" Get a list of previous messag...
31.071429
109
0.645057
1c2a627a63919568e2c033ab82df8fb8f68854ec
683
ex
Elixir
lib/plate_slate_web/schema/ordering_types.ex
conradwt/crafting-graphql-apis-in-elixir-with-absinthe
b26d050a350425ac189ea6d205834da1e47d4f90
[ "MIT" ]
1
2019-05-11T21:50:09.000Z
2019-05-11T21:50:09.000Z
lib/plate_slate_web/schema/ordering_types.ex
conradwt/crafting-graphql-apis-in-elixir-with-absinthe
b26d050a350425ac189ea6d205834da1e47d4f90
[ "MIT" ]
null
null
null
lib/plate_slate_web/schema/ordering_types.ex
conradwt/crafting-graphql-apis-in-elixir-with-absinthe
b26d050a350425ac189ea6d205834da1e47d4f90
[ "MIT" ]
null
null
null
defmodule PlateSlateWeb.Schema.OrderingTypes do use Absinthe.Schema.Notation input_object :order_item_input do field :menu_item_id, non_null(:id) field :quantity, non_null(:integer) end input_object :place_order_input do field :customer_number, :integer field :items, non_null(list_of(non_null(...
22.032258
64
0.713031
1c2ab57315b023474545fb59d9f5c3f995558a34
7,576
exs
Elixir
test/elixir/test/view_include_docs_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
null
null
null
test/elixir/test/view_include_docs_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
1
2018-02-08T23:08:43.000Z
2018-02-08T23:08:43.000Z
test/elixir/test/view_include_docs_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
null
null
null
defmodule ViewIncludeDocsTest do use CouchTestCase @moduletag :view_include_docs @moduletag kind: :single_node @ddoc %{ _id: "_design/test", language: "javascript", views: %{ all_docs: %{ map: "function(doc) { emit(doc.integer, doc.string) }" }, with_prev: %{ map:...
28.588679
149
0.580913
1c2abd04f437580796b5a5e036c80d300872e220
821
exs
Elixir
src/proto_app/apps/marketplace/mix.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/apps/marketplace/mix.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/apps/marketplace/mix.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
1
2020-01-22T19:18:34.000Z
2020-01-22T19:18:34.000Z
defmodule Marketplace.MixProject do use Mix.Project def project do [ app: :marketplace, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9", start_permanent: M...
23.457143
88
0.572473
1c2ac8fe9602308b7182825b289515469f9cc45b
2,581
ex
Elixir
lib/teiserver_web/controllers/admin/tool_controller.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/teiserver_web/controllers/admin/tool_controller.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver_web/controllers/admin/tool_controller.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule TeiserverWeb.Admin.ToolController do use CentralWeb, :controller alias Teiserver.Telemetry alias Central.Helpers.TimexHelper plug(AssignPlug, sidemenu_active: ["teiserver", "teiserver_admin"] ) plug Bodyguard.Plug.Authorize, policy: Teiserver.Account.Admin, action: {Phoenix.Controlle...
25.554455
63
0.627276
1c2accdf8b51f9157f5bdf557676c5c6873f500f
1,088
ex
Elixir
apps/grapevine/lib/web/controllers/event_controller.ex
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/grapevine/lib/web/controllers/event_controller.ex
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/grapevine/lib/web/controllers/event_controller.ex
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule Web.EventController do use Web, :controller alias GrapevineData.Events action_fallback(Web.FallbackController) def index(conn, _params) do conn |> assign(:events, Events.next_month()) |> assign(:title, "Upcoming Events - Grapevine") |> assign(:open_graph_title, "Upcoming Events") ...
31.085714
85
0.645221
1c2aebc9e5c2058d61395ce3c46963553e3238d2
18,286
ex
Elixir
lib/bamboo/adapters/smtp_adapter.ex
steady-media/bamboo_smtp
0b989da5be9b9c7c9d22dacf31ef58dbd06bb991
[ "MIT" ]
null
null
null
lib/bamboo/adapters/smtp_adapter.ex
steady-media/bamboo_smtp
0b989da5be9b9c7c9d22dacf31ef58dbd06bb991
[ "MIT" ]
null
null
null
lib/bamboo/adapters/smtp_adapter.ex
steady-media/bamboo_smtp
0b989da5be9b9c7c9d22dacf31ef58dbd06bb991
[ "MIT" ]
null
null
null
defmodule Bamboo.SMTPAdapter do @moduledoc """ Sends email using SMTP. Use this adapter to send emails through SMTP. This adapter requires that some settings are set in the config. See the example section below. *Sensitive credentials should not be committed to source control and are best kept in environmen...
30.174917
130
0.690583
1c2afbc5308fb206397ce6413bc30e7bfa1ad00f
1,971
exs
Elixir
config/dev.exs
pdamoc/cowboy_issue
3873ffed5cc2b15ead54b2d3e95575b09ba1833a
[ "MIT" ]
null
null
null
config/dev.exs
pdamoc/cowboy_issue
3873ffed5cc2b15ead54b2d3e95575b09ba1833a
[ "MIT" ]
null
null
null
config/dev.exs
pdamoc/cowboy_issue
3873ffed5cc2b15ead54b2d3e95575b09ba1833a
[ "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 :cowboy_issue, CowboyIssueWeb.Endpoint, http: ...
33.40678
170
0.709285
1c2b17a1d5cc888b4c79f701ba1a137a85b94560
2,195
exs
Elixir
mix.exs
tonjo/oban
9b1a6edfec2a4d225ab6969f8886dc021e2df34c
[ "Apache-2.0" ]
null
null
null
mix.exs
tonjo/oban
9b1a6edfec2a4d225ab6969f8886dc021e2df34c
[ "Apache-2.0" ]
null
null
null
mix.exs
tonjo/oban
9b1a6edfec2a4d225ab6969f8886dc021e2df34c
[ "Apache-2.0" ]
null
null
null
defmodule Oban.MixProject do use Mix.Project @version "1.2.0" def project do [ app: :oban, version: @version, elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases(), preferred_cli_env: [...
24.120879
93
0.512984
1c2b1ec0d95bafb92e65232424008fd5c6b6a8aa
10,212
exs
Elixir
test/course_planner_web/controllers/bulk_controller_test.exs
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
38
2017-04-11T13:37:38.000Z
2021-05-22T19:35:36.000Z
test/course_planner_web/controllers/bulk_controller_test.exs
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
226
2017-04-07T13:14:14.000Z
2018-03-08T16:50:11.000Z
test/course_planner_web/controllers/bulk_controller_test.exs
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
7
2017-08-30T23:58:13.000Z
2021-03-28T11:50:45.000Z
defmodule CoursePlanner.BulkControllerTest do use CoursePlannerWeb.ConnCase alias CoursePlanner.{Repo, Accounts.User} import CoursePlanner.Factory setup(%{user_role: role}) do conn = role |> insert() |> guardian_login_html() {:ok, conn: conn} end defp create_input_params(targe...
44.789474
117
0.6604
1c2b3edb54b5e1bcdd7e9b82b43a877b706ec3b3
47,693
ex
Elixir
lib/axon/shape.ex
brodeuralexis/axon
6897a49a6300c0e15924c4b9fd48104c3972b673
[ "Apache-2.0" ]
null
null
null
lib/axon/shape.ex
brodeuralexis/axon
6897a49a6300c0e15924c4b9fd48104c3972b673
[ "Apache-2.0" ]
null
null
null
lib/axon/shape.ex
brodeuralexis/axon
6897a49a6300c0e15924c4b9fd48104c3972b673
[ "Apache-2.0" ]
null
null
null
defmodule Axon.Shape do @moduledoc false # Collection of shape calculations for calculating the # output and trainable parameter shapes for high-level # layers. # # `nil` is often used as a stand-in for unknown batch # size, so each of these methods must account for that. @doc """ Calculates the sha...
27.809329
225
0.599291
1c2b5d5b3300c2edefd8ac8f5dea7ec4d3b89008
866
exs
Elixir
mix.exs
kentaro/neotomex
3f334813e79d69d31d439acd76224ecf3f9554b2
[ "BSD-3-Clause" ]
58
2015-08-21T22:20:27.000Z
2021-11-01T16:37:33.000Z
mix.exs
kentaro/neotomex
3f334813e79d69d31d439acd76224ecf3f9554b2
[ "BSD-3-Clause" ]
10
2015-08-24T11:50:10.000Z
2020-02-28T03:55:03.000Z
mix.exs
kentaro/neotomex
3f334813e79d69d31d439acd76224ecf3f9554b2
[ "BSD-3-Clause" ]
14
2015-09-28T23:37:08.000Z
2021-11-01T16:34:15.000Z
defmodule Neotomex.Mixfile do use Mix.Project use Mix.Config @github "https://github.com/jtmoulia/neotomex" def project do [app: :neotomex, version: "0.1.7", elixir: ">= 1.3.0", name: "Neotomex", source_url: @github, deps: deps(), description: description(), package: pac...
18.425532
56
0.584296
1c2b73e0839ae3d90edc4feb7721fb3d3ce59ec4
2,403
exs
Elixir
rel/config.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
1
2021-04-05T19:17:18.000Z
2021-04-05T19:17:18.000Z
rel/config.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
11
2020-01-07T15:43:42.000Z
2020-12-22T15:23:25.000Z
rel/config.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
null
null
null
~w(rel plugins *.exs) |> Path.join() |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Distillery.Releases.Config, default_release: :default, default_environment: Mix.env() environment :dev do set dev_mode: true set include_erts: false set cookie: :"_q24F/BBb@JBm)P%lZ~ign&WJ:]:TaT3i5M)ARX>^Sv$1@5!...
30.807692
112
0.726176
1c2ba0ed1c0f0ece5c535461fb24449943057bb0
492
ex
Elixir
apps/hefty/lib/hefty/algos/naive/symbol_supervisor.ex
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
49
2019-10-28T22:27:28.000Z
2021-10-11T06:40:29.000Z
apps/hefty/lib/hefty/algos/naive/symbol_supervisor.ex
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
9
2019-08-30T13:15:36.000Z
2019-10-10T21:25:14.000Z
apps/hefty/lib/hefty/algos/naive/symbol_supervisor.ex
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
7
2019-10-31T06:19:26.000Z
2021-09-30T04:20:58.000Z
defmodule Hefty.Algos.Naive.SymbolSupervisor do use Supervisor def start_link(symbol) do Supervisor.start_link( __MODULE__, symbol, name: :"#{__MODULE__}-#{symbol}" ) end def init(symbol) do Supervisor.init( [ { DynamicSupervisor, strategy: :one_...
19.68
88
0.597561
1c2bbb1cec539996b6818fb51fb1012df2ae4581
1,869
ex
Elixir
apps/tai/lib/tai/venue_adapters/bitmex/positions.ex
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venue_adapters/bitmex/positions.ex
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venue_adapters/bitmex/positions.ex
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.VenueAdapters.Bitmex.Positions do def positions(venue_id, credential_id, credentials) do venue_credentials = to_venue_credentials(credentials) with {:ok, venue_positions, _rate_limit} <- ExBitmex.Rest.Position.Index.get(venue_credentials) do positions = venue_positions ...
32.789474
84
0.683253
1c2c551b561fcd9cddd5181717e9a00a51e21334
2,189
ex
Elixir
lib/aoc2019_day4.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2022-01-10T02:34:18.000Z
2022-01-10T02:34:18.000Z
lib/aoc2019_day4.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
null
null
null
lib/aoc2019_day4.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2019-12-02T09:42:17.000Z
2019-12-02T09:42:17.000Z
defmodule Aoc2019Day4 do @moduledoc """ https://adventofcode.com/2019/day/4 """ def has_at_least_to_same_adjacent_digits?([]) do false end def has_at_least_to_same_adjacent_digits?([h | t]) do next = List.first(t) if next == nil do false else if h == next do true ...
21.673267
74
0.604842
1c2c6e7ae4df58c3bd6ad28e766976bf5047883b
1,699
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/named_ranges.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/docs/lib/google_api/docs/v1/model/named_ranges.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/docs/lib/google_api/docs/v1/model/named_ranges.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...
33.98
136
0.720424
1c2c6f188aac452e272b0a5223d1f7908f64eb29
561
ex
Elixir
test/support/simple_provider.ex
kianmeng/ueberauth
4b8b1e9002ba91d9d4ec14d94bdfaf13221e1515
[ "MIT" ]
null
null
null
test/support/simple_provider.ex
kianmeng/ueberauth
4b8b1e9002ba91d9d4ec14d94bdfaf13221e1515
[ "MIT" ]
null
null
null
test/support/simple_provider.ex
kianmeng/ueberauth
4b8b1e9002ba91d9d4ec14d94bdfaf13221e1515
[ "MIT" ]
null
null
null
defmodule Support.SimpleProvider do @moduledoc false use Ueberauth.Strategy def uid(%{params: %{"id" => id}} = _conn), do: id def credentials(%{params: %{"code" => code}} = conn) do prefix = options(conn)[:token_prefix] %Ueberauth.Auth.Credentials{ token: "#{prefix}#{code}" } end def ...
20.035714
57
0.632799
1c2ca182965556ceaa15943ba353a21277cab274
1,547
ex
Elixir
apps/voyager/lib/voyager_web/views/error_helpers.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/views/error_helpers.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/views/error_helpers.ex
msk-access/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
1
2020-12-15T03:33:31.000Z
2020-12-15T03:33:31.000Z
defmodule VoyagerWeb.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_tag(...
32.229167
76
0.665158
1c2cc1dd78dd5c93cbc0f297ee2897d0dffab7b2
1,052
ex
Elixir
lib/offer_hunters_web/controllers/comment_controler.ex
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
3
2021-10-01T21:13:02.000Z
2021-11-05T22:25:55.000Z
lib/offer_hunters_web/controllers/comment_controler.ex
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
null
null
null
lib/offer_hunters_web/controllers/comment_controler.ex
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
null
null
null
defmodule OfferHuntersWeb.CommentController do use OfferHuntersWeb, :controller alias OfferHunters.{Comment, Offer, User} action_fallback OfferHuntersWeb.FallbackController def create( conn, %{ "comment" => comment, "name" => name, "offer_id" => offer_id, ...
27.684211
97
0.606464
1c2d28be7b7cf70d3af787cf3af891c286d3ca0f
2,678
ex
Elixir
example_applications/web_app/lib/web_app/prom_ex.ex
maartenvanvliet/prom_ex
8eb4f86c169af3b184a1a45cf42e298af2b05816
[ "MIT" ]
null
null
null
example_applications/web_app/lib/web_app/prom_ex.ex
maartenvanvliet/prom_ex
8eb4f86c169af3b184a1a45cf42e298af2b05816
[ "MIT" ]
null
null
null
example_applications/web_app/lib/web_app/prom_ex.ex
maartenvanvliet/prom_ex
8eb4f86c169af3b184a1a45cf42e298af2b05816
[ "MIT" ]
null
null
null
defmodule WebApp.PromEx do @moduledoc """ Be sure to add the following to finish setting up PromEx: 1. Update your configuration (config.exs, dev.exs, prod.exs, releases.exs, etc) to configure the necessary bit of PromEx. Be sure to check out `PromEx.Config` for more details regarding configuring PromE...
29.428571
91
0.652353
1c2d60079f2517e3818b90d49af999c3d07ce9d4
1,667
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1/model/batch_create_notes_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/batch_create_notes_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/batch_create_notes_request.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.468085
173
0.746251
1c2d88403ff365780b0d1070680c2eecb877044e
7,481
ex
Elixir
lib/inline_svg.ex
boydm/inline_svg
ffbb1bbc50d9e7a02c59b0ad74665c8ce834b7bd
[ "Apache-2.0" ]
8
2021-01-04T06:33:37.000Z
2021-08-06T21:37:05.000Z
lib/inline_svg.ex
boydm/inline_svg
ffbb1bbc50d9e7a02c59b0ad74665c8ce834b7bd
[ "Apache-2.0" ]
1
2021-01-21T06:01:01.000Z
2021-01-21T06:01:01.000Z
lib/inline_svg.ex
boydm/inline_svg
ffbb1bbc50d9e7a02c59b0ad74665c8ce834b7bd
[ "Apache-2.0" ]
null
null
null
defmodule InlineSvg do require Logger @moduledoc """ Simple and fast in-line SVG library and renderer for web applications. SVG files are images that are formatted as very simple, and usually small, text files. It is faster, and recommended, that you directly include the svg data in-line with your web pag...
36.140097
112
0.633872
1c2de8c1b65bc685b3f4fa09fc0aac17f7a96ebc
2,948
ex
Elixir
apps/proxy/lib/proxy.ex
nicolasbaer/thirsty_throttler
04d68f94d97fa2a661e6c00898b3b140cdba9b4a
[ "Apache-2.0" ]
null
null
null
apps/proxy/lib/proxy.ex
nicolasbaer/thirsty_throttler
04d68f94d97fa2a661e6c00898b3b140cdba9b4a
[ "Apache-2.0" ]
null
null
null
apps/proxy/lib/proxy.ex
nicolasbaer/thirsty_throttler
04d68f94d97fa2a661e6c00898b3b140cdba9b4a
[ "Apache-2.0" ]
null
null
null
defmodule Proxy do @doc """ Start up a cowboy http server. The start_http method of cowboy takes four arguments: * The protocol of the server * "NbAcceptors" - a non-negative-integer. This isn't further documented in the cowboy docs. I used 100, from an Erlang example. * TCP options for Ranch...
41.521127
89
0.663501
1c2e07875c33e4864ae68d869e52e975d7270363
257
exs
Elixir
priv/repo/migrations/20160221045342_add_loglines_table.exs
avdi/loggex
0a678148cbb5a9e4236cd633e7901f7014dee805
[ "MIT" ]
3
2016-03-12T09:40:58.000Z
2020-05-25T13:39:31.000Z
priv/repo/migrations/20160221045342_add_loglines_table.exs
avdi/loggex
0a678148cbb5a9e4236cd633e7901f7014dee805
[ "MIT" ]
1
2020-05-22T20:39:57.000Z
2020-05-22T20:39:57.000Z
priv/repo/migrations/20160221045342_add_loglines_table.exs
avdi/loggex
0a678148cbb5a9e4236cd633e7901f7014dee805
[ "MIT" ]
2
2019-12-01T14:08:35.000Z
2020-05-22T20:36:51.000Z
defmodule Loggex.Repo.Migrations.AddLoglinesTable do use Ecto.Migration def change do create table(:loglines) do add :sender, :string add :sendtime, :datetime add :responseCode, :integer add :body, :string end end end
19.769231
52
0.673152
1c2e07e76d381de2110d873f332c934f35679673
1,055
exs
Elixir
test/oli_web/controllers/help_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/help_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/help_controller_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule OliWeb.HelpControllerTest do use OliWeb.ConnCase alias Oli.Test.MockHTTP import Mox describe "request_help" do test "send help request", %{conn: conn} do expect_recaptcha_http_post() freshdesk_url = System.get_env("FRESHDESK_API_URL", "example.edu") MockHTTP |> expect(...
25.119048
97
0.574408
1c2e7bf8307cf5e53dfc07806349446cb73cd3fd
160
ex
Elixir
lib/protobuf/error.ex
llxff/protobuf-elixir
365b26833fce85f0f46759a7c50c8858bd3cc1c1
[ "MIT" ]
4
2018-03-19T13:34:35.000Z
2018-07-11T19:20:34.000Z
lib/protobuf/error.ex
llxff/protobuf-elixir
365b26833fce85f0f46759a7c50c8858bd3cc1c1
[ "MIT" ]
1
2019-07-08T09:57:25.000Z
2019-07-08T09:57:25.000Z
lib/protobuf/error.ex
k10pr0f/exproto
3ae86c1308527a723465a14236849c7ab9ba949c
[ "MIT" ]
1
2019-05-27T11:46:01.000Z
2019-05-27T11:46:01.000Z
defmodule Protobuf.DecodeError do defexception message: "something wrong when decoding" end defmodule Protobuf.InvalidError do defexception [:message] end
20
55
0.81875
1c2e85c7dc2d9a8d36fc9c05139423c51c7d7557
1,630
ex
Elixir
lib/tweet_grafana_img/grafana.ex
ringo156/tweet_grafana_img
876e122a77f36e2b2e8d06c901b08b0cbaa51b3a
[ "MIT" ]
1
2020-12-15T13:20:24.000Z
2020-12-15T13:20:24.000Z
lib/tweet_grafana_img/grafana.ex
ringo156/tweet_grafana_img
876e122a77f36e2b2e8d06c901b08b0cbaa51b3a
[ "MIT" ]
null
null
null
lib/tweet_grafana_img/grafana.ex
ringo156/tweet_grafana_img
876e122a77f36e2b2e8d06c901b08b0cbaa51b3a
[ "MIT" ]
null
null
null
defmodule TweetGrafanaImg.Grafana do use Application @url "" @token "" # ToDoパネルの選択 # ToDo時間の間隔可変にする def get_panel() do headers = make_headers(@token) # from = System.os_time - 86400 * 1000000000 |> div(1000000) # params = make_params(from, div(System.os_time, 1000000)) params = System.o...
23.285714
106
0.614724
1c2ebc967d22acc7991e901b1eb62036b993ccda
806
ex
Elixir
examples/phx_server/lib/phx_server_web/views/error_helpers.ex
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
examples/phx_server/lib/phx_server_web/views/error_helpers.ex
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
examples/phx_server/lib/phx_server_web/views/error_helpers.ex
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
defmodule PhxServerWeb.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_ta...
26
69
0.663772
1c2ecbb0e4b75cf64e769456800787795ff3bfbe
2,551
ex
Elixir
lib/web/router.ex
fabianherrera/roger_ui_revamp
7541148d6c24a5d3209e4eedccfb6a43f2b38fdf
[ "MIT" ]
1
2020-01-20T19:42:20.000Z
2020-01-20T19:42:20.000Z
lib/web/router.ex
fabianherrera/roger_ui_revamp
7541148d6c24a5d3209e4eedccfb6a43f2b38fdf
[ "MIT" ]
2
2018-02-19T20:07:29.000Z
2018-03-06T17:18:18.000Z
lib/web/router.ex
fabianherrera/roger_ui_revamp
7541148d6c24a5d3209e4eedccfb6a43f2b38fdf
[ "MIT" ]
2
2018-03-02T00:00:08.000Z
2018-03-02T13:35:49.000Z
defmodule RogerUI.Web.RouterPlug do @moduledoc """ Plug implementation to expose RogerUI API This module contains a Plug Router extensión, Plug ships with many plugs that you can add to the router plug pipeline, allowing you to plug something before a route matches or before a route is dispatched to Note ...
26.852632
128
0.656213
1c2eccadc2e08c9e85a3345727b884cedb04bb1f
1,252
exs
Elixir
mix.exs
wsmoak/chargifyex
fae205d6ed7f227ac5eda451124d50c311447440
[ "MIT" ]
1
2015-07-16T14:17:17.000Z
2015-07-16T14:17:17.000Z
mix.exs
wsmoak/chargify-elixir
fae205d6ed7f227ac5eda451124d50c311447440
[ "MIT" ]
null
null
null
mix.exs
wsmoak/chargify-elixir
fae205d6ed7f227ac5eda451124d50c311447440
[ "MIT" ]
null
null
null
defmodule Chargify.Mixfile do use Mix.Project def project do [app: :chargify, version: "0.0.1", elixir: "~> 1.0", description: description, package: package, deps: deps] end # Configuration for the OTP application # # Type `mix help compile.app` for more information def appl...
23.185185
77
0.563099
1c2ecd9689a23570ce3d326cfaba7a01b407294c
979
exs
Elixir
mix.exs
zven21/turbo_html
462a41d57d84a96e9e86dfa31c3a12040a02e712
[ "MIT" ]
4
2019-01-23T14:10:31.000Z
2019-05-14T15:41:11.000Z
mix.exs
zven21/turbo_html
462a41d57d84a96e9e86dfa31c3a12040a02e712
[ "MIT" ]
35
2019-02-19T02:11:33.000Z
2021-09-01T07:09:42.000Z
mix.exs
zven21/turbo_html
462a41d57d84a96e9e86dfa31c3a12040a02e712
[ "MIT" ]
4
2019-11-03T16:11:39.000Z
2022-03-05T14:34:23.000Z
defmodule Turbo.HTML.MixProject do use Mix.Project @version "0.3.0" @github "https://github.com/zven21/turbo_html" def project do [ app: :turbo_html, description: "A elixir lib for search, sort, paginate.", version: @version, elixir: "~> 1.6", start_permanent: Mix.env() == :p...
21.282609
65
0.54239
1c2ed6a71f0a029f837d1a9c3fbd9f2ff72cf6be
254
exs
Elixir
test/doctests_test.exs
LegendsOfLearning/redix_pool
2a7edabd0491567cdd8fadea6cc1085391efb95a
[ "MIT" ]
null
null
null
test/doctests_test.exs
LegendsOfLearning/redix_pool
2a7edabd0491567cdd8fadea6cc1085391efb95a
[ "MIT" ]
null
null
null
test/doctests_test.exs
LegendsOfLearning/redix_pool
2a7edabd0491567cdd8fadea6cc1085391efb95a
[ "MIT" ]
1
2020-04-02T12:39:41.000Z
2020-04-02T12:39:41.000Z
defmodule DoctestsTest do # Doctests must run with a clean db and asynchronously use ExUnit.Case setup do :ok = Application.ensure_started(:redix_pool) RedixPool.command(:redix_default, ["FLUSHDB"]) :ok end doctest RedixPool end
18.142857
56
0.724409
1c2ee92c217f0c5622d36ac526791385de36870f
551
ex
Elixir
lib/app/commands/outside.ex
johannesE/elixir-telegram-bot-boilerplate
af6ceb910183e1927d0c22f8d0f10805662326d9
[ "MIT" ]
15
2019-03-19T16:36:18.000Z
2021-05-29T19:10:43.000Z
lib/app/commands/outside.ex
johannesE/elixir-telegram-bot-boilerplate
af6ceb910183e1927d0c22f8d0f10805662326d9
[ "MIT" ]
14
2018-04-11T02:55:52.000Z
2020-03-07T17:00:22.000Z
lib/app/commands/outside.ex
johannesE/elixir-telegram-bot-boilerplate
af6ceb910183e1927d0c22f8d0f10805662326d9
[ "MIT" ]
4
2019-03-14T14:38:33.000Z
2021-01-23T22:42:03.000Z
defmodule App.Commands.Outside do # Notice that here we just `use` Commander. Router is only # used to map commands to actions. It's best to keep routing # only in App.Commands file. Commander gives us helpful # macros to deal with Nadia functions. use App.Commander # Functions must have as first parameter...
32.411765
62
0.731397
1c2ee9c7e4030d14e8da22178a30de5eb54625c9
300
ex
Elixir
lib/tweet_bot/repo.ex
chenxsan/telegram-bot-for-twitter
892107c7609123028ac2375342cd7b2329931635
[ "MIT" ]
14
2018-03-23T04:13:29.000Z
2021-07-26T06:15:50.000Z
lib/tweet_bot/repo.ex
chenxsan/telegram-bot-for-twitter
892107c7609123028ac2375342cd7b2329931635
[ "MIT" ]
2
2021-03-08T18:20:20.000Z
2021-05-06T22:47:09.000Z
lib/tweet_bot/repo.ex
chenxsan/telegram-bot-for-twitter
892107c7609123028ac2375342cd7b2329931635
[ "MIT" ]
3
2020-11-04T08:11:47.000Z
2022-01-13T17:41:42.000Z
defmodule TweetBot.Repo do use Ecto.Repo, otp_app: :tweet_bot, adapter: Ecto.Adapters.Postgres @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
25
69
0.713333
1c2ef3cfd52a943e1397b4fdcebf33bdc44f8c15
22,724
ex
Elixir
lib/ex_unit/lib/ex_unit/assertions.ex
saydulk/elixir
17a0278a28a23d533bc012b5a61852fdb7b2fcc3
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/assertions.ex
saydulk/elixir
17a0278a28a23d533bc012b5a61852fdb7b2fcc3
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/assertions.ex
saydulk/elixir
17a0278a28a23d533bc012b5a61852fdb7b2fcc3
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
defmodule ExUnit.AssertionError do @moduledoc """ Raised to signal an assertion error. """ @no_value :ex_unit_no_meaningful_value defexception left: @no_value, right: @no_value, message: @no_value, expr: @no_value @doc """ Indicates no meaningful value for a field. """ def no_value do @no_value...
25.59009
102
0.616397
1c2f2095732ead480b2dd0e276cf1e78c0a8022d
446
ex
Elixir
web/models/congregation.ex
melbystyle/jw_ministry_api
2065d628a84e829b805c71b7e73fb0bee3d0dd44
[ "Apache-2.0" ]
1
2017-06-19T18:18:11.000Z
2017-06-19T18:18:11.000Z
web/models/congregation.ex
melbystyle/jw_ministry_api
2065d628a84e829b805c71b7e73fb0bee3d0dd44
[ "Apache-2.0" ]
null
null
null
web/models/congregation.ex
melbystyle/jw_ministry_api
2065d628a84e829b805c71b7e73fb0bee3d0dd44
[ "Apache-2.0" ]
null
null
null
defmodule JwMinistryApi.Congregation do use JwMinistryApi.Web, :model schema "congregations" do field :name, :string belongs_to :coordinator, JwMinistryApi.Publisher has_many :groups, JwMinistryApi.Group timestamps() end @doc """ Builds a changeset based on the `struct` and `params`. """ ...
21.238095
56
0.674888
1c2f287b24de6ce21becb40b2da45e7712272c89
8,788
ex
Elixir
lib/telemetry_influx_db.ex
paranojik/telemetry_influxdb
aab1e7860b8cc8ce1a55a5c4f2b2496b323834ec
[ "MIT" ]
null
null
null
lib/telemetry_influx_db.ex
paranojik/telemetry_influxdb
aab1e7860b8cc8ce1a55a5c4f2b2496b323834ec
[ "MIT" ]
3
2020-07-15T18:12:34.000Z
2021-10-09T02:04:36.000Z
lib/telemetry_influx_db.ex
paranojik/telemetry_influxdb
aab1e7860b8cc8ce1a55a5c4f2b2496b323834ec
[ "MIT" ]
4
2020-01-27T05:42:17.000Z
2022-03-25T10:32:44.000Z
defmodule TelemetryInfluxDB do alias TelemetryInfluxDB.BatchReporter alias TelemetryInfluxDB.BatchHandler alias TelemetryInfluxDB.EventHandler alias TelemetryInfluxDB.HTTP alias TelemetryInfluxDB.UDP require Logger @moduledoc """ `Telemetry` reporter for InfluxDB compatible events. To use it, start ...
36.31405
192
0.676149
1c2f2e80adba3af66e0fccda849da63f2c0ef639
2,595
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/software_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/software_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/software_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "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...
47.181818
546
0.743738
1c2f3f1081f8fe2519b3271e70ca0b5a34b284f3
2,053
exs
Elixir
apps/andi/test/integration/andi_web/live/user_live_view_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
18
2020-11-13T15:38:24.000Z
2021-05-26T00:40:08.000Z
apps/andi/test/integration/andi_web/live/user_live_view_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
365
2020-09-21T12:31:40.000Z
2021-09-25T14:54:21.000Z
apps/andi/test/integration/andi_web/live/user_live_view_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
3
2020-10-06T16:17:49.000Z
2021-09-03T17:11:41.000Z
defmodule AndiWeb.UserLiveViewTest do use ExUnit.Case use Andi.DataCase use AndiWeb.Test.AuthConnCase.IntegrationCase @moduletag shared_data_connection: true import Placebo import Phoenix.LiveViewTest import SmartCity.TestHelper, only: [eventually: 1] import FlokiHelpers, only: [ get_texts:...
25.345679
107
0.618607
1c2f50047226252293c781cf72433b3c209bd408
925
ex
Elixir
lib/nys_etl/commcare/index_case.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
2
2021-06-22T21:01:49.000Z
2021-11-04T18:36:48.000Z
lib/nys_etl/commcare/index_case.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
lib/nys_etl/commcare/index_case.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
defmodule NYSETL.Commcare.IndexCase do use NYSETL, :schema alias NYSETL.Commcare alias NYSETL.ECLRS schema "index_cases" do field :case_id, :string, read_after_writes: true field :closed, :boolean, default: false field :data, :map field :tid, :string belongs_to :county, ECLRS.County b...
24.342105
59
0.684324
1c2f55adbddaff3c4ac43ff7375202abed486872
218
ex
Elixir
lib/iex/lib/iex/app.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/iex/lib/iex/app.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
1
2018-09-10T23:36:45.000Z
2018-09-10T23:36:45.000Z
lib/iex/lib/iex/app.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
defmodule IEx.App do @moduledoc false use Application def start(_type, _args) do children = [IEx.Config, IEx.Pry] Supervisor.start_link(children, strategy: :one_for_one, name: IEx.Supervisor) end end
19.818182
81
0.724771
1c2f632005927b0a3d2f23e3ee3079fea7cf376b
77
ex
Elixir
backend/lib/functional_vote_web/views/layout_view.ex
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
10
2020-03-13T12:56:06.000Z
2021-06-28T22:13:27.000Z
backend/lib/functional_vote_web/views/layout_view.ex
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
132
2020-02-08T02:01:03.000Z
2022-02-18T20:38:38.000Z
backend/lib/functional_vote_web/views/layout_view.ex
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
1
2021-03-17T06:22:55.000Z
2021-03-17T06:22:55.000Z
defmodule FunctionalVoteWeb.LayoutView do use FunctionalVoteWeb, :view end
19.25
41
0.844156
1c2fa08cc605095c12eb26c455e723bbc7c0f258
491
exs
Elixir
elixir/leap/leap.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
elixir/leap/leap.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
elixir/leap/leap.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
defmodule Year do @doc """ Returns whether 'year' is a leap year. A leap year occurs: on every year that is evenly divisible by 4 except every year that is evenly divisible by 100 unless the year is also evenly divisible by 400 """ @spec leap_year?(non_neg_integer) :: boolean def leap_year?(ye...
21.347826
53
0.621181
1c2fc48ca7f4fc2e513ba194329adf7cbb1ae92e
4,807
exs
Elixir
config/rig_tests/test.exs
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
null
null
null
config/rig_tests/test.exs
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
null
null
null
config/rig_tests/test.exs
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
1
2020-07-17T05:17:32.000Z
2020-07-17T05:17:32.000Z
use Mix.Config config :rig, :systest_kafka_config, %{ consumer_topics: [], ssl_enabled?: false } config :rig, RigTests.Proxy.ResponseFrom.KafkaTest, server_id: :rig_proxy_responsefrom_kafkatest_genserver, # The list of brokers, given by a comma-separated list of host:port items: brokers: {:system, :list, "K...
55.895349
94
0.739546
1c2fe8b33ebb79916f2bcc76040201953ceacf2e
1,919
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/url_rewrite.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/compute/lib/google_api/compute/v1/model/url_rewrite.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/url_rewrite.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.38
257
0.739448
1c2fef131f15f365803620818952aca05aba1940
6,824
exs
Elixir
clients/gax/test/gax/connection_test.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/gax/test/gax/connection_test.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/gax/test/gax/connection_test.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2018 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 ...
32.807692
98
0.629396
1c305e814f12ff58de44407f398ca4c9db8ae0ad
1,601
exs
Elixir
test/football_api/protobuf/match_test.exs
afatsini/football_api
c17af14733fc7a649c38516045867c72ecab469f
[ "MIT" ]
null
null
null
test/football_api/protobuf/match_test.exs
afatsini/football_api
c17af14733fc7a649c38516045867c72ecab469f
[ "MIT" ]
null
null
null
test/football_api/protobuf/match_test.exs
afatsini/football_api
c17af14733fc7a649c38516045867c72ecab469f
[ "MIT" ]
null
null
null
defmodule FootballApi.Protobuf.MatchTest do use ExUnit.Case, async: true alias FootballApi.Protobuf.Match alias FootballApi.Protobuf.Match.Match, as: ProtoMatch alias FootballApi.Schemas.Match, as: MatchObject setup do decoded_protobuf = %MatchObject{ AwayTeam: "Mallorca", Date: "22/08/15", ...
24.630769
86
0.656465
1c30669bfbe50820e0515efa43072504193207bf
2,263
ex
Elixir
lib/absinthe/phase/schema/validation/no_circular_field_imports.ex
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
lib/absinthe/phase/schema/validation/no_circular_field_imports.ex
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
lib/absinthe/phase/schema/validation/no_circular_field_imports.ex
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
defmodule Absinthe.Phase.Schema.Validation.NoCircularFieldImports do @moduledoc false use Absinthe.Phase alias Absinthe.Blueprint alias Absinthe.Blueprint.Schema def run(blueprint, _opts) do blueprint = Blueprint.prewalk(blueprint, &validate_schema/1) {:ok, blueprint} end def validate_schema(%S...
25.426966
130
0.599205
1c306f9d8cd34c5f857834cae320c682b04797d7
1,918
ex
Elixir
lib/console_web/controllers/v1/label_notification_webhooks_controller.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
lib/console_web/controllers/v1/label_notification_webhooks_controller.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
1
2021-04-03T09:29:31.000Z
2021-04-03T09:29:31.000Z
lib/console_web/controllers/v1/label_notification_webhooks_controller.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
defmodule ConsoleWeb.V1.LabelNotificationWebhooksController do use ConsoleWeb, :controller alias Console.LabelNotificationWebhooks alias Console.Labels alias Console.Labels.Label action_fallback(ConsoleWeb.FallbackController) plug CORSPlug, origin: "*" def update(conn, _webhook_params = %{ "key" => key...
49.179487
313
0.674661
1c309b01ed1d96f022d119175213f4faad61ff92
505
exs
Elixir
test/coupled_to_model/delete_test.exs
Q2Worlds/ecto_shortcuts
45e1373d2ade79b909f515314db060f0ca7fd547
[ "MIT" ]
32
2016-09-01T19:09:54.000Z
2021-04-08T21:35:00.000Z
test/coupled_to_model/delete_test.exs
Q2Worlds/ecto_shortcuts
45e1373d2ade79b909f515314db060f0ca7fd547
[ "MIT" ]
1
2016-09-28T18:06:40.000Z
2016-09-28T18:06:40.000Z
test/coupled_to_model/delete_test.exs
Q2Worlds/ecto_shortcuts
45e1373d2ade79b909f515314db060f0ca7fd547
[ "MIT" ]
3
2016-09-28T07:14:39.000Z
2017-07-02T14:03:22.000Z
defmodule DeleteTest do use ExUnit.Case, async: false doctest EctoShortcuts setup do on_exit fn -> TestData.reset end end test "delete_all deletes all users" do assert 0 < MyApp.User.count MyApp.User.delete_all assert 0 == MyApp.User.count end test "delete_by deletes all users...
21.956522
56
0.708911
1c309e4084e9411c22d171daede5f175746e1082
580
ex
Elixir
users_service/lib/command/repository/nickname_repository.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
2
2020-04-20T16:31:01.000Z
2020-04-20T16:45:03.000Z
users_service/lib/command/repository/nickname_repository.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
null
null
null
users_service/lib/command/repository/nickname_repository.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
null
null
null
defmodule UsersService.Command.NicknameRepository do alias UsersService.Infra.Eventstore alias UsersService.Infra.MapHelper alias UsersService.Command.Nickname @spec get(nickname :: String.t()) :: {:ok, Nickname.t()} def get(nickname) do result = Eventstore.stream("#{nickname}:NicknameAggregate") ...
30.526316
73
0.662069
1c30a824fbac72da1f138b8fa285cdff7cc1c528
22,060
exs
Elixir
test/lib/ex_aws/sns/parser_test.exs
bettyblocks/ex_aws
0c9b43b5a1afbfb5fb26131be7f80f69de4431d1
[ "MIT", "Unlicense" ]
null
null
null
test/lib/ex_aws/sns/parser_test.exs
bettyblocks/ex_aws
0c9b43b5a1afbfb5fb26131be7f80f69de4431d1
[ "MIT", "Unlicense" ]
null
null
null
test/lib/ex_aws/sns/parser_test.exs
bettyblocks/ex_aws
0c9b43b5a1afbfb5fb26131be7f80f69de4431d1
[ "MIT", "Unlicense" ]
1
2021-01-22T12:16:23.000Z
2021-01-22T12:16:23.000Z
defmodule ExAws.SNS.ParserTest do use ExUnit.Case, async: true alias ExAws.SNS.Parsers def to_success(doc) do {:ok, %{body: doc}} end def to_error(doc) do {:error, {:http_error, 403, %{body: doc}}} end test "#parsing a list_topics response" do rsp = """ <ListTopicsResponse xmlns="htt...
38.16609
137
0.635993
1c30d9835a903231b46f2daf9f119941e50a6711
336
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20190320060752_add_creator_user_uuid_and_creator_key_uuid_to_api_key.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/priv/repo/migrations/20190320060752_add_creator_user_uuid_and_creator_key_uuid_to_api_key.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/priv/repo/migrations/20190320060752_add_creator_user_uuid_and_creator_key_uuid_to_api_key.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
defmodule EWalletDB.Repo.Migrations.AddCreatorUserUuidAndCreatorKeyUuidToApiKey do use Ecto.Migration @table "api_key" def change do alter table(@table) do add :creator_user_uuid, references(:user, type: :uuid, column: :uuid) add :creator_key_uuid, references(:key, type: :uuid, column: :uuid) ...
25.846154
82
0.72619
1c30ddf9312ecb7708b0790465c32b6e1c5167c9
917
ex
Elixir
web/router.ex
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
web/router.ex
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
web/router.ex
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
defmodule Namuraid.Router do use Namuraid.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", Namuraid do pipe_th...
22.925
57
0.684842
1c30e54d503aa658ea331b5656ba1747a382d8c6
2,684
ex
Elixir
clients/analytics_data/lib/google_api/analytics_data/v1beta/model/filter.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics_data/lib/google_api/analytics_data/v1beta/model/filter.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics_data/lib/google_api/analytics_data/v1beta/model/filter.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.491525
143
0.736587
1c30ed92d483414f97bc7bce4f8f3a1cec3c6cf0
10,977
ex
Elixir
lib/elixir/lib/module/types.ex
irisTa56/elixir
0a953d75fb2cbdc6f3d33040aa60738d85512a1f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/types.ex
irisTa56/elixir
0a953d75fb2cbdc6f3d33040aa60738d85512a1f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/types.ex
irisTa56/elixir
0a953d75fb2cbdc6f3d33040aa60738d85512a1f
[ "Apache-2.0" ]
null
null
null
defmodule Module.Types do @moduledoc false import Module.Types.Helpers alias Module.Types.{Expr, Pattern} @doc """ Infer function definitions' types. """ def infer_definitions(file, module, defs) do signatures_and_bodies = infer_signatures(file, module, defs) infer_bodies(signatures_and_bodies) ...
27.374065
94
0.599708
1c3115d41b04a07de3b76e86a5ecb326cd4296b0
3,383
ex
Elixir
questions/aggregates/00075000-countmembers.ex
morenoh149/pgexercises
ae5b46d84d5e4cdb6af49047960d7abd76e80f30
[ "BSD-2-Clause" ]
null
null
null
questions/aggregates/00075000-countmembers.ex
morenoh149/pgexercises
ae5b46d84d5e4cdb6af49047960d7abd76e80f30
[ "BSD-2-Clause" ]
null
null
null
questions/aggregates/00075000-countmembers.ex
morenoh149/pgexercises
ae5b46d84d5e4cdb6af49047960d7abd76e80f30
[ "BSD-2-Clause" ]
1
2019-10-08T04:46:40.000Z
2019-10-08T04:46:40.000Z
|QUESTIONNAME| Produce a list of member names, with each row containing the total member count |QUESTION| Produce a list of member names, with each row containing the total member count. Order by join date. |QUERY| select count(*) over(), firstname, surname from cd.members order by joindate |ANSWER| <p>Using the know...
56.383333
431
0.765593
1c3116bc5bca19b56fde89625e12f3249d2a7630
381
exs
Elixir
priv/repo/migrations/20180712100738_repos_builders_join_table.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/repo/migrations/20180712100738_repos_builders_join_table.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/repo/migrations/20180712100738_repos_builders_join_table.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Repo.Migrations.ReposBuildersJoinTable do use Ecto.Migration def change do create table(:repos_builders) do add(:repo_id, references(:cms_repos, on_delete: :delete_all), null: false) add(:builder_id, references(:cms_repo_builders, on_delete: :delete_all), null: false) e...
29.307692
91
0.737533
1c31230846d57e29a7884c8fded4e813107e8883
4,828
ex
Elixir
apps/tai/lib/tai/venue_adapters/okex/create_order.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venue_adapters/okex/create_order.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/venue_adapters/okex/create_order.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.VenueAdapters.OkEx.CreateOrder do @moduledoc """ Create orders for the OkEx adapter """ alias Tai.VenueAdapters.OkEx.ClientId alias Tai.Orders @type credentials :: Tai.Venues.Adapter.credentials() @type order :: Orders.Order.t() @type response :: Orders.Responses.CreateAccepted.t() @ty...
32.621622
97
0.65493
1c31251430e9f2c0a8d908d6e7f74e018ffe0cc2
1,907
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/http_fault_delay.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/http_fault_delay.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/http_fault_delay.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.14
232
0.737808
1c316b57f487ffeecd46b48be3e60d1ad2517426
584
exs
Elixir
mix.exs
ghost-in-the-shell/nerve
71a4a79cfeddb27d487793e93d2532b0d085785f
[ "MIT" ]
null
null
null
mix.exs
ghost-in-the-shell/nerve
71a4a79cfeddb27d487793e93d2532b0d085785f
[ "MIT" ]
null
null
null
mix.exs
ghost-in-the-shell/nerve
71a4a79cfeddb27d487793e93d2532b0d085785f
[ "MIT" ]
null
null
null
defmodule Nerve.Mixfile do use Mix.Project def project do [app: :nerve, version: "0.0.1", elixir: "~> 1.0", deps: deps] end # Configuration for the OTP application # # Type `mix help compile.app` for more information def application do [applications: [:logger]] end # Dependen...
18.83871
77
0.604452
1c31ab2d521d43e78cdc5a1db1633bdbb4239f98
1,133
exs
Elixir
config/config.exs
takasehideki/logistic_map
a35bc295afea79eec10bb5ba18f2566702894258
[ "Apache-2.0" ]
null
null
null
config/config.exs
takasehideki/logistic_map
a35bc295afea79eec10bb5ba18f2566702894258
[ "Apache-2.0" ]
null
null
null
config/config.exs
takasehideki/logistic_map
a35bc295afea79eec10bb5ba18f2566702894258
[ "Apache-2.0" ]
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...
36.548387
73
0.753751
1c31c32b2e477bd459bd85910ebebf55eb3f2b8c
2,254
exs
Elixir
mix.exs
pedrogh/pact_elixir
50c7281137121e6ebfdfb900b4f702946013283f
[ "MIT" ]
null
null
null
mix.exs
pedrogh/pact_elixir
50c7281137121e6ebfdfb900b4f702946013283f
[ "MIT" ]
null
null
null
mix.exs
pedrogh/pact_elixir
50c7281137121e6ebfdfb900b4f702946013283f
[ "MIT" ]
null
null
null
defmodule PactElixir.MixProject do @moduledoc false use Mix.Project def project do [ app: :pact_elixir, version: "0.5.2", elixir: "~> 1.7", name: "PactElixir", start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), ...
27.82716
128
0.575865
1c31e53764a32a591d3ee35c7ea0b267cdde5360
16,708
exs
Elixir
test/phoenix/test/conn_test.exs
Douvi/phoenix
7832e45e056a48f9dd4bd8178d6c6b0569f19194
[ "MIT" ]
null
null
null
test/phoenix/test/conn_test.exs
Douvi/phoenix
7832e45e056a48f9dd4bd8178d6c6b0569f19194
[ "MIT" ]
null
null
null
test/phoenix/test/conn_test.exs
Douvi/phoenix
7832e45e056a48f9dd4bd8178d6c6b0569f19194
[ "MIT" ]
null
null
null
defmodule Phoenix.Test.ConnTest.CatchAll do def init(opts), do: opts def call(conn, :stat), do: conn.params["action"].(conn) def call(conn, _opts), do: Plug.Conn.assign(conn, :catch_all, true) end alias Phoenix.Test.ConnTest.CatchAll defmodule Phoenix.Test.ConnTest.RedirRouter do use Phoenix.Router get "/",...
30.600733
145
0.612042
1c31eb10256b4ee8c440674c14f149479d59998d
3,291
ex
Elixir
lib/mix2nix.ex
ydlr/mix2nix
d7ecbf63b7e5e31c1aea4c1c60c21f2d0f69e9f6
[ "MIT" ]
3
2021-05-19T07:33:28.000Z
2021-08-25T12:43:16.000Z
lib/mix2nix.ex
ydlr/mix2nix
d7ecbf63b7e5e31c1aea4c1c60c21f2d0f69e9f6
[ "MIT" ]
11
2021-05-01T03:44:41.000Z
2021-08-09T13:47:56.000Z
lib/mix2nix.ex
ydlr/mix2nix
d7ecbf63b7e5e31c1aea4c1c60c21f2d0f69e9f6
[ "MIT" ]
1
2021-05-11T06:21:36.000Z
2021-05-11T06:21:36.000Z
defmodule Mix2nix do def process(filename) do filename |> read |> expression_set end def expression_set(deps) do deps |> Map.to_list() |> Enum.sort(:asc) |> Enum.map(fn {_, v} -> nix_expression(deps, v) end) |> Enum.reject(fn x -> x == "" end) |> Enum.join("\n") |> String.trim("\n") |> wrap e...
23.340426
72
0.625646
1c3212341c292c5d71b6a3e0443c26c78434eb4b
3,574
ex
Elixir
lib/k8s/client/runner/watch.ex
iautom8things/k8s
6184c70581b754eb560701ba7954900089403939
[ "MIT" ]
null
null
null
lib/k8s/client/runner/watch.ex
iautom8things/k8s
6184c70581b754eb560701ba7954900089403939
[ "MIT" ]
null
null
null
lib/k8s/client/runner/watch.ex
iautom8things/k8s
6184c70581b754eb560701ba7954900089403939
[ "MIT" ]
null
null
null
defmodule K8s.Client.Runner.Watch do @moduledoc """ `K8s.Client` runner that will watch a resource or resources and stream results back to a process. """ @resource_version_json_path ~w(metadata resourceVersion) alias K8s.Client.Runner.Base alias K8s.Operation @doc """ Watch a resource or list of reso...
32.788991
143
0.659765
1c322488cb029f117f03400cfd54aeeccecb355b
3,914
exs
Elixir
test/club/support/validators_test.exs
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
test/club/support/validators_test.exs
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
test/club/support/validators_test.exs
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule Club.Support.ValidatorsTest do use ExUnit.Case import Club.Support.Validators describe "validate_url" do setup context do dataset = case context do %{url: url} -> Ecto.Changeset.cast({%{}, %{url: :string}}, %{url: url}, [:url]) _ -> nil end {:ok, da...
36.924528
101
0.612928
1c324647374dc3217e89c3b95d894424df4ef7dd
493
ex
Elixir
test/support/path_helpers.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
328
2017-05-05T15:19:46.000Z
2022-03-11T10:52:45.000Z
test/support/path_helpers.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
83
2017-04-30T10:36:15.000Z
2019-10-14T13:14:34.000Z
test/support/path_helpers.ex
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
29
2017-05-02T14:36:50.000Z
2021-09-03T13:36:17.000Z
defmodule Annon.PathHelpers do @moduledoc """ This module provider path generation helpers for various entities in Management API. """ def plugins_path(api_id), do: "apis/#{api_id}/plugins" def plugin_path(api_id, name), do: "#{plugins_path(api_id)}/#{name}" def apis_path, do: "apis" def a...
20.541667
86
0.663286
1c3253ce9d7925811a77fabd620e3c42b3ccca35
47,369
ex
Elixir
lib/livebook/session.ex
apoorv-2204/elixir_learn_work_notebook_setup
7ea75c1b53e0e9ce7ae89d386cc16b7277a1d86e
[ "Apache-2.0" ]
null
null
null
lib/livebook/session.ex
apoorv-2204/elixir_learn_work_notebook_setup
7ea75c1b53e0e9ce7ae89d386cc16b7277a1d86e
[ "Apache-2.0" ]
null
null
null
lib/livebook/session.ex
apoorv-2204/elixir_learn_work_notebook_setup
7ea75c1b53e0e9ce7ae89d386cc16b7277a1d86e
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Session do @moduledoc false # Server corresponding to a single notebook session. # # The process keeps the current notebook state and serves # as a source of truth that multiple clients talk to. # Receives update requests from the clients and notifies # them of any changes applied to t...
30.600129
98
0.671051
1c32554553c5e46256af2fb2d4ab656a3f5eb9dd
1,217
ex
Elixir
lib/codes/codes_g50.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_g50.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_g50.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_G50 do alias IcdCode.ICDCode def _G500 do %ICDCode{full_code: "G500", category_code: "G50", short_code: "0", full_name: "Trigeminal neuralgia", short_name: "Trigeminal neuralgia", category_name: "Trigeminal neuralgia" } ...
28.302326
68
0.604766
1c3285958f3e747a82149c5a2bfaf805aa1e68ca
3,254
ex
Elixir
lib/changelog_web/views/time_view.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
1
2018-01-22T20:07:10.000Z
2018-01-22T20:07:10.000Z
lib/changelog_web/views/time_view.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
lib/changelog_web/views/time_view.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.TimeView do alias Timex.Duration def closest_monday_to(date) do offset = case Timex.weekday(date) do 1 -> 0 2 -> -1 3 -> -2 4 -> -3 5 -> 3 6 -> 2 7 -> 1 end Timex.shift(date, days: offset) end def duration(seconds) when is_nil(...
26.892562
106
0.626921
1c3287e99f7c321e4ec589e919140abd20c60055
156
exs
Elixir
test/mnesia_vs_redis_test.exs
rescircuit/mnesia-vs-redis
0ef28382d1b858b8a04d4e304240a46e364d91dd
[ "MIT" ]
null
null
null
test/mnesia_vs_redis_test.exs
rescircuit/mnesia-vs-redis
0ef28382d1b858b8a04d4e304240a46e364d91dd
[ "MIT" ]
null
null
null
test/mnesia_vs_redis_test.exs
rescircuit/mnesia-vs-redis
0ef28382d1b858b8a04d4e304240a46e364d91dd
[ "MIT" ]
null
null
null
defmodule MnesiaVsRedisTest do use ExUnit.Case doctest MnesiaVsRedis test "greets the world" do assert MnesiaVsRedis.hello() == :world end end
17.333333
42
0.74359
1c329c06fa61691cfd10b73c2a1542bfddb6dd1c
1,218
exs
Elixir
config/config.exs
konti-kun/Raoreq
55d09688503189b0e735702da457c68b6b10a24d
[ "MIT" ]
null
null
null
config/config.exs
konti-kun/Raoreq
55d09688503189b0e735702da457c68b6b10a24d
[ "MIT" ]
null
null
null
config/config.exs
konti-kun/Raoreq
55d09688503189b0e735702da457c68b6b10a24d
[ "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 config :raoreq, cowboy_port: 8086 config :plug, :mimes, %{ "application/json" => ["json"] } # This configuration is loaded before any dependency and is restricted # to this projec...
33.833333
73
0.741379
1c329deaeab2040d90261a3f8dc16814e249081e
580
exs
Elixir
languages/elixir/exercises/concept/take-a-number/mix.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
3
2020-07-25T06:24:00.000Z
2020-09-14T17:39:11.000Z
languages/elixir/exercises/concept/take-a-number/mix.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
1
2020-01-26T20:08:06.000Z
2020-01-26T20:08:06.000Z
languages/elixir/exercises/concept/take-a-number/mix.exs
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
null
null
null
defmodule TakeANumber.MixProject do use Mix.Project def project do [ app: :processes, version: "0.1.0", # elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ ...
20
87
0.57931
1c32b29fb0178c9190b64f4ccacda1cc7eef7a5f
116
exs
Elixir
.formatter.exs
btedev/pair2
eb7d8f78a13046461f12ff16372e7dc03175c2cc
[ "MIT" ]
null
null
null
.formatter.exs
btedev/pair2
eb7d8f78a13046461f12ff16372e7dc03175c2cc
[ "MIT" ]
null
null
null
.formatter.exs
btedev/pair2
eb7d8f78a13046461f12ff16372e7dc03175c2cc
[ "MIT" ]
null
null
null
[ inputs: [ ".credo.exs", ".formatter.exs", "*.exs", "{apps,config,features}/**/*.{ex,exs}" ] ]
12.888889
42
0.448276
1c32c4732aa7f3f7623aad69de211bc3023d5e34
1,602
ex
Elixir
lib/ueberauth_example_web/models/user_from_auth.ex
timwis/ueberauth_example
7e4d8b41c08d344a606a59554265d385555000a1
[ "MIT" ]
null
null
null
lib/ueberauth_example_web/models/user_from_auth.ex
timwis/ueberauth_example
7e4d8b41c08d344a606a59554265d385555000a1
[ "MIT" ]
null
null
null
lib/ueberauth_example_web/models/user_from_auth.ex
timwis/ueberauth_example
7e4d8b41c08d344a606a59554265d385555000a1
[ "MIT" ]
null
null
null
defmodule UserFromAuth do @moduledoc """ Retrieve the user information from an auth request """ require Logger require Poison alias Ueberauth.Auth def find_or_create(%Auth{provider: :identity} = auth) do case validate_pass(auth.credentials) do :ok -> {:ok, basic_info(auth)} {:err...
25.03125
79
0.637953
1c32c4c0aa4aaf2f1a992ad4ba91ba639efece59
97
exs
Elixir
test/day8_test.exs
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
test/day8_test.exs
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
test/day8_test.exs
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
defmodule Day8Test do use ExUnit.Case doctest Day8.SIFDecoder doctest Day8.SIFDecoder2 end
16.166667
26
0.804124
1c32c631a6b74c733f0ca213c39c2a3f575ff075
3,233
ex
Elixir
lib/enforce.ex
adamzaninovich/policy_wonk
e372ce25462b4693de36ba673d17de4e7318fd5f
[ "MIT" ]
178
2016-09-15T11:46:23.000Z
2022-01-09T18:11:02.000Z
lib/enforce.ex
adamzaninovich/policy_wonk
e372ce25462b4693de36ba673d17de4e7318fd5f
[ "MIT" ]
10
2016-09-22T14:49:54.000Z
2021-02-05T18:10:59.000Z
lib/enforce.ex
adamzaninovich/policy_wonk
e372ce25462b4693de36ba673d17de4e7318fd5f
[ "MIT" ]
12
2016-09-16T11:21:14.000Z
2021-12-20T17:59:02.000Z
defmodule PolicyWonk.Enforce do @moduledoc """ This turns your policy module into a plug that can be used in a router. ## Usage The only time you should directly use the `PolicyWonk.Enforce` module is to call `use PolicyWonk.Enforce` when defining your policy module. Example policy module: def...
28.610619
98
0.551191
1c32f9fdcfd34afe2a3d47599e286b4a4c7e6100
10,737
ex
Elixir
lib/nostrum/shard/dispatch.ex
ushitora-anqou/nostrum
93ffcf9ed04380e06e6bffa21a1f51b5193a56d4
[ "MIT" ]
null
null
null
lib/nostrum/shard/dispatch.ex
ushitora-anqou/nostrum
93ffcf9ed04380e06e6bffa21a1f51b5193a56d4
[ "MIT" ]
null
null
null
lib/nostrum/shard/dispatch.ex
ushitora-anqou/nostrum
93ffcf9ed04380e06e6bffa21a1f51b5193a56d4
[ "MIT" ]
null
null
null
defmodule Nostrum.Shard.Dispatch do @moduledoc false alias Nostrum.Cache.{ChannelCache, GuildCache, PresenceCache, UserCache} alias Nostrum.Cache.Me alias Nostrum.Shard.{Intents, Session} alias Nostrum.Struct.Event.{ ChannelPinsUpdate, GuildBanAdd, GuildBanRemove, GuildIntegrationsUpdate, ...
31.031792
95
0.675887
1c332ac98f2f5b39cddd9c79212dda51a431b7fa
1,812
ex
Elixir
lib/ex_saga/utils.ex
naramore/ex_saga
66c6b64867f28a1bbfb8ec2b6a786469b5f84e47
[ "MIT" ]
null
null
null
lib/ex_saga/utils.ex
naramore/ex_saga
66c6b64867f28a1bbfb8ec2b6a786469b5f84e47
[ "MIT" ]
17
2019-02-06T03:51:03.000Z
2019-10-22T10:15:48.000Z
lib/ex_saga/utils.ex
naramore/ex_saga
66c6b64867f28a1bbfb8ec2b6a786469b5f84e47
[ "MIT" ]
null
null
null
defmodule ExSaga.Utils do @moduledoc """ """ import Kernel, except: [get_in: 2] alias ExSaga.Stage @doc false defmacro get_stacktrace() do if Version.match?(System.version(), "~> 1.7") do quote do: __STACKTRACE__ else quote do: System.stacktrace() end end @doc """ """ @spe...
22.936709
97
0.583885
1c338887a8bf03034eefad0cae4e3a815fe0c52c
163
ex
Elixir
lib/mix/tasks/compare.ex
UrbanOS-Examples/Xip
237a12a633af0b11a1cdebef564d200a27e50fb5
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/compare.ex
UrbanOS-Examples/Xip
237a12a633af0b11a1cdebef564d200a27e50fb5
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/compare.ex
UrbanOS-Examples/Xip
237a12a633af0b11a1cdebef564d200a27e50fb5
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Compare do use Mix.Task import Logger def run(_) do Faker.start Xip.compare_message_compress |> inspect |> Logger.info end end
18.111111
58
0.717791
1c3398931551882b28efbd9175d1acdb83fa0af4
9,077
ex
Elixir
lib/mix/lib/mix/rebar.ex
gsphanikumar/elixir
6ca225da4e016200a462888348ff1c3feb625b78
[ "Apache-2.0" ]
4
2015-12-22T02:46:39.000Z
2016-04-26T06:11:09.000Z
lib/mix/lib/mix/rebar.ex
alco/elixir
4407170349aa12c58664cab2122374167e827f5e
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/rebar.ex
alco/elixir
4407170349aa12c58664cab2122374167e827f5e
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Rebar do @moduledoc false @doc """ Returns the path supposed to host the local copy of rebar. """ def local_rebar_path(manager) do Path.join(Mix.Utils.mix_home, Atom.to_string(manager)) end @doc """ Returns the path to the global copy of `rebar`, if one exists. """ def global_reb...
28.365625
111
0.585105
1c33fd5cf5913adc88daa508b6f2320d0771f337
1,068
ex
Elixir
lib/koans/11_structs.ex
wee911/elixir-koans-excerise
71bd62fc3e2be91b654b69d3d791c39aaef9244b
[ "MIT" ]
null
null
null
lib/koans/11_structs.ex
wee911/elixir-koans-excerise
71bd62fc3e2be91b654b69d3d791c39aaef9244b
[ "MIT" ]
null
null
null
lib/koans/11_structs.ex
wee911/elixir-koans-excerise
71bd62fc3e2be91b654b69d3d791c39aaef9244b
[ "MIT" ]
null
null
null
defmodule Structs do use Koans @intro "Structs" defmodule Person do defstruct [:name, :age] end koan "Structs are defined and named after a module" do person = %Person{} assert person == ___ end koan "Unless previously defined, fields begin as nil" do nobody = %Person{} assert nobo...
21.795918
65
0.634831
1c340f7575d43c4cb8ae8edc4774dfb2315ddca0
2,226
exs
Elixir
test/console_web/controllers/v1/v1_label_notification_webhooks_controller_test.exs
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
test/console_web/controllers/v1/v1_label_notification_webhooks_controller_test.exs
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
1
2021-04-03T09:29:31.000Z
2021-04-03T09:29:31.000Z
test/console_web/controllers/v1/v1_label_notification_webhooks_controller_test.exs
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
defmodule ConsoleWeb.V1LabelNotificationWebhooksControllerTest do use ConsoleWeb.ConnCase import Console.Factory describe "label notification webhooks" do test "inactive api keys do not work", %{conn: _conn} do key = "upWpTb/J1mCsZupZTFL52tB27QJ2hFNWtT6PvwriQgs" organization = insert(:organizati...
44.52
225
0.668464
1c3430b96f01f37eaf6d3684e10dbd60d44432fb
2,358
ex
Elixir
lib/espec/allow_to.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
null
null
null
lib/espec/allow_to.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
null
null
null
lib/espec/allow_to.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
null
null
null
defmodule ESpec.AllowTo do @moduledoc """ Defines `to/2` function which makes the mock. """ alias ESpec.Mock @doc "Makes specific mock with ESpec.Mock.expect/3." def to({:accept, name, function}, {__MODULE__, module}) when is_atom(name) and is_atom(module) do Mock.expect(module, name, function, []) ...
35.727273
113
0.678117
1c34431de630281b0e178ecd0d5659a8e8371fb5
23
ex
Elixir
apps/world/lib/world.ex
smartlogic/elixir-node-balancing
ddf1ae7ff71f93b7decafa679b2fa4b5fb1937c4
[ "MIT" ]
1
2017-12-01T23:09:10.000Z
2017-12-01T23:09:10.000Z
apps/world/lib/world.ex
smartlogic/elixir-node-balancing
ddf1ae7ff71f93b7decafa679b2fa4b5fb1937c4
[ "MIT" ]
null
null
null
apps/world/lib/world.ex
smartlogic/elixir-node-balancing
ddf1ae7ff71f93b7decafa679b2fa4b5fb1937c4
[ "MIT" ]
null
null
null
defmodule World do end
7.666667
18
0.826087
1c344d9419d434b0587b667db891def38d36899d
1,355
ex
Elixir
lib/basehangul/encode.ex
Dalgona/basehangul
8cb19429554a532bd1c991977f33e026487a7795
[ "WTFPL" ]
1
2019-02-09T04:51:42.000Z
2019-02-09T04:51:42.000Z
lib/basehangul/encode.ex
Dalgona/basehangul
8cb19429554a532bd1c991977f33e026487a7795
[ "WTFPL" ]
null
null
null
lib/basehangul/encode.ex
Dalgona/basehangul
8cb19429554a532bd1c991977f33e026487a7795
[ "WTFPL" ]
null
null
null
defmodule BaseHangul.Encode do @moduledoc false use Bitwise @padchr [0xC8, 0xE5] @spec encode_chunk(binary()) :: binary() def encode_chunk(x) do {tbits, n_bytes} = repack_8to10(x) to_euclist(tbits, n_bytes, []) end @spec repack_8to10(binary()) :: {[integer()], integer()} defp repack_8to10(bi...
23.362069
70
0.583764
1c34596505296b39e3f35fafe219ad3a805b1cd7
1,372
ex
Elixir
lib/lens/lensable.ex
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
null
null
null
lib/lens/lensable.ex
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
null
null
null
lib/lens/lensable.ex
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
null
null
null
defprotocol Lensable do @fallback_to_any true @doc "A function to get a value out of a data structure" def getter(structure, view) @doc "A function to set a value out of a data structure" def setter(structure, view, func) end defimpl Lensable, for: Map do def getter(s, x), do: Access.get(s, x, {:error, {...
22.866667
70
0.595481
1c34796234d480517694e4804727f2b21d8e8075
1,079
ex
Elixir
test/process_managers/support/example_command_handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1,220
2017-10-31T10:56:40.000Z
2022-03-31T17:40:19.000Z
test/process_managers/support/example_command_handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
294
2017-11-03T10:33:41.000Z
2022-03-24T08:36:42.000Z
test/process_managers/support/example_command_handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
208
2017-11-03T10:56:47.000Z
2022-03-14T05:49:38.000Z
defmodule Commanded.ProcessManagers.ExampleCommandHandler do @moduledoc false @behaviour Commanded.Commands.Handler alias Commanded.ProcessManagers.ExampleAggregate alias Commanded.ProcessManagers.ExampleAggregate.Commands.{ Error, Pause, Publish, Raise, Start, Stop } def handle(%...
29.162162
86
0.742354
1c347bb23eb739e3e1f2531e2f6cf27c890846f8
61
ex
Elixir
lib/minty/repo.ex
wsmoak/minty
dbafd707cc5ce6d0bc251698cefe2c5d5a6eca56
[ "MIT" ]
4
2016-02-17T03:13:03.000Z
2017-04-18T20:53:03.000Z
lib/minty/repo.ex
wsmoak/minty
dbafd707cc5ce6d0bc251698cefe2c5d5a6eca56
[ "MIT" ]
null
null
null
lib/minty/repo.ex
wsmoak/minty
dbafd707cc5ce6d0bc251698cefe2c5d5a6eca56
[ "MIT" ]
null
null
null
defmodule Minty.Repo do use Ecto.Repo, otp_app: :minty end
15.25
32
0.754098
1c347e08cae5d8d791b729ad790516a014cb094f
2,274
ex
Elixir
apps/astarte_housekeeping_api/lib/astarte_housekeeping_api_web/endpoint.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
null
null
null
apps/astarte_housekeeping_api/lib/astarte_housekeeping_api_web/endpoint.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
5
2019-11-18T17:06:34.000Z
2019-12-19T10:03:59.000Z
apps/astarte_housekeeping_api/lib/astarte_housekeeping_api_web/endpoint.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
2
2018-02-05T19:23:18.000Z
2019-11-19T11:44:40.000Z
# # This file is part of Astarte. # # Copyright 2017 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...
30.72973
93
0.733509
1c34956a806120d18fda10974b19e2fc68566cae
1,209
ex
Elixir
clients/games/lib/google_api/games/v1/connection.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/connection.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/games/lib/google_api/games/v1/connection.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.583333
74
0.728701
1c34a253044878ca0c718d4700bc35c58f5cd9d7
243
ex
Elixir
lib/freaking_awesome_elixir.ex
hvnsweeting/freaking_awesome_elixir
222223e86a3ad01558780dd92dcab33086e3ef08
[ "BSD-2-Clause" ]
null
null
null
lib/freaking_awesome_elixir.ex
hvnsweeting/freaking_awesome_elixir
222223e86a3ad01558780dd92dcab33086e3ef08
[ "BSD-2-Clause" ]
null
null
null
lib/freaking_awesome_elixir.ex
hvnsweeting/freaking_awesome_elixir
222223e86a3ad01558780dd92dcab33086e3ef08
[ "BSD-2-Clause" ]
null
null
null
defmodule FreakingAwesomeElixir do @moduledoc """ Documentation for `FreakingAwesomeElixir`. """ @doc """ Hello world. ## Examples iex> FreakingAwesomeElixir.hello() :world """ def hello do :world end end
12.789474
44
0.633745
1c34b45929d1d77176723a4378fffa2b8e3be22d
1,410
exs
Elixir
test/hexpm/accounts/auth_test.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
test/hexpm/accounts/auth_test.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
test/hexpm/accounts/auth_test.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Accounts.AuthTest do use Hexpm.DataCase, async: true alias Hexpm.Accounts.Auth setup do user = insert(:user, password: Auth.gen_password("password")) %{user: user, password: "password"} end describe "password_auth/2" do test "authorizes correct password", %{user: user, password:...
32.045455
89
0.668085