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
931f9a2b13cf90caa9ddc58fb5a7bb7f8b47069b
2,062
exs
Elixir
config/dev.exs
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
4
2019-07-17T04:46:37.000Z
2020-09-20T14:15:23.000Z
config/dev.exs
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
null
null
null
config/dev.exs
sophiabrandt/mango
c42c2e463c7bdeb7f18400a3001a8cc6e326159d
[ "MIT" ]
1
2019-07-17T04:46:39.000Z
2019-07-17T04:46:39.000Z
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 webpack to recompile .js and .css sources. config :mango, MangoWeb.Endpoint, http: [port: 4000], ...
27.131579
68
0.683802
931fb54660f557ddadaffb64f6a1f89581bc2766
4,709
ex
Elixir
lib/sanbase/model/project/roi.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
lib/sanbase/model/project/roi.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
lib/sanbase/model/project/roi.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule Sanbase.Model.Project.Roi do alias Sanbase.Repo alias Sanbase.Model.{Project, Ico} @doc ~S""" ROI = current_price*(ico1_tokens + ico2_tokens + ...)/(ico1_tokens*ico1_initial_price + ico2_tokens*ico2_initial_price + ...) We skip ICOs for which we can't calculate the initial_price or the tokens sold ...
37.373016
135
0.688257
931fbfe09e411ef47bf43ab49a6ee64d338cef5c
5,696
exs
Elixir
test/bsv/contract/push_tx_helpers_test.exs
libitx/bsv-ex
95070d645fd61f9ea6ba8758e2e1b2367d0f9320
[ "Apache-2.0" ]
26
2019-08-31T13:39:50.000Z
2022-01-18T10:23:26.000Z
test/bsv/contract/push_tx_helpers_test.exs
libitx/bsv-ex
95070d645fd61f9ea6ba8758e2e1b2367d0f9320
[ "Apache-2.0" ]
4
2020-04-24T18:24:01.000Z
2021-06-15T10:59:33.000Z
test/bsv/contract/push_tx_helpers_test.exs
libitx/bsv-ex
95070d645fd61f9ea6ba8758e2e1b2367d0f9320
[ "Apache-2.0" ]
4
2020-05-21T15:27:31.000Z
2021-06-13T05:26:47.000Z
defmodule BSV.Contract.PushTxHelpersTest do use ExUnit.Case, async: true alias BSV.Contract.{Helpers, PushTxHelpers} alias BSV.{Contract, Hash, OutPoint, Script, ScriptNum, Sig, Tx, TxIn, TxOut, UTXO, VM} @prev_txout %TxOut{ satoshis: 50000, script: %Script{chunks: [ :OP_DUP, :OP_HASH160, ...
31.125683
100
0.626404
931fc0a60321fe17fb79463db0eb8639db9d8ea0
54,118
ex
Elixir
clients/network_management/lib/google_api/network_management/v1beta1/api/projects.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/network_management/lib/google_api/network_management/v1beta1/api/projects.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/network_management/lib/google_api/network_management/v1beta1/api/projects.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...
44.286416
196
0.627444
931fcb01b5eb55145e1f0aea993c27a9e785df0d
1,240
ex
Elixir
lib/sidemash/sdk/hook_ws_call.ex
sidemash/sdk-elixir
6535e07f65a4f2fe57434b50a11bfd0a7500f1e4
[ "Apache-2.0" ]
null
null
null
lib/sidemash/sdk/hook_ws_call.ex
sidemash/sdk-elixir
6535e07f65a4f2fe57434b50a11bfd0a7500f1e4
[ "Apache-2.0" ]
null
null
null
lib/sidemash/sdk/hook_ws_call.ex
sidemash/sdk-elixir
6535e07f65a4f2fe57434b50a11bfd0a7500f1e4
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Sidemash Cloud # # 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...
25.833333
69
0.656452
931fee69d9a1e64a09ddafd1e4326b2c4cb85624
614
exs
Elixir
test/integration/spell/session_test.exs
andykingking/spell
fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2
[ "Apache-2.0" ]
76
2015-05-14T20:44:55.000Z
2022-03-25T02:24:27.000Z
test/integration/spell/session_test.exs
andykingking/spell
fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2
[ "Apache-2.0" ]
46
2015-05-09T19:46:49.000Z
2019-08-02T04:01:46.000Z
test/integration/spell/session_test.exs
andykingking/spell
fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2
[ "Apache-2.0" ]
27
2015-06-23T11:32:34.000Z
2020-09-21T15:36:42.000Z
defmodule Spell.SessionTest do use ExUnit.Case alias Spell.Role.Session alias Spell.Message alias Spell.Peer setup do {:ok, peer} = Crossbar.uri(Crossbar.get_config()) |> Spell.connect(realm: Crossbar.get_realm(), features: %{publisher: %{}}) {:ok, peer: peer} end test ...
24.56
71
0.636808
931ff57033e42f29c041aeca3e3df0126f48e862
554
ex
Elixir
lib/cloudflare/doc.ex
princemaple/elixir-cloudflare-api-client
874bed28bdd7d91ccb5f1f5eeccf37bad0c52495
[ "MIT" ]
null
null
null
lib/cloudflare/doc.ex
princemaple/elixir-cloudflare-api-client
874bed28bdd7d91ccb5f1f5eeccf37bad0c52495
[ "MIT" ]
2
2021-08-23T17:31:14.000Z
2021-10-19T21:31:13.000Z
lib/cloudflare/doc.ex
princemaple/elixir-cloudflare-api-client
874bed28bdd7d91ccb5f1f5eeccf37bad0c52495
[ "MIT" ]
1
2021-06-13T13:24:25.000Z
2021-06-13T13:24:25.000Z
defmodule Cloudflare.Doc do @moduledoc false defmacro __using__(doc_params) do {name, banner} = case doc_params do name when is_binary(name) -> {name, ""} [name: name, banner: banner] -> {name, banner <> "\n\n"} end file_path = Path.join("priv/docs", name <...
18.466667
53
0.541516
932024d62216207eeb0475cb958c39791e353391
1,109
exs
Elixir
test/errors/error_int_test.exs
sasanchezag/elixir_xdr
a367bd6ad4b636c1f8236efbe59e1136e992cec1
[ "MIT" ]
null
null
null
test/errors/error_int_test.exs
sasanchezag/elixir_xdr
a367bd6ad4b636c1f8236efbe59e1136e992cec1
[ "MIT" ]
null
null
null
test/errors/error_int_test.exs
sasanchezag/elixir_xdr
a367bd6ad4b636c1f8236efbe59e1136e992cec1
[ "MIT" ]
null
null
null
defmodule Error.IntTest do use ExUnit.Case alias XDR.Error.Int test "When receives :not_integer" do assert_raise Int, "The value which you try to encode is not an integer", fn -> raise Int, :not_integer end end test "When receives :not_binary" do assert_raise Int, "The va...
30.805556
136
0.588819
93204df0ee068fb7c31202fea62a39c132ccc8da
586
ex
Elixir
inmana/lib/inmana/supplies/scheduler.ex
cesaraugustomt/Inmana_API
c288f98d7dc1f3cbe8693914e38769c8dcc3a8d6
[ "MIT" ]
1
2021-05-18T00:04:36.000Z
2021-05-18T00:04:36.000Z
inmana/lib/inmana/supplies/scheduler.ex
cesaraugustomt/Inmana_API
c288f98d7dc1f3cbe8693914e38769c8dcc3a8d6
[ "MIT" ]
null
null
null
inmana/lib/inmana/supplies/scheduler.ex
cesaraugustomt/Inmana_API
c288f98d7dc1f3cbe8693914e38769c8dcc3a8d6
[ "MIT" ]
null
null
null
defmodule Inmana.Supplies.Scheduler do use GenServer alias Inmana.Supplies.ExpirationNotification # client def start_link(_state) do GenServer.start_link(__MODULE__, %{}) end # server # agendamento de jobs @impl true def init(state \\ %{}) do schedule_notification() {:ok, state} end ...
18.903226
52
0.682594
93206be01018a95cc2aaeeb40887d1543346bbbb
1,919
ex
Elixir
lib/grizzly/zwave/command_classes/thermostat_fan_mode.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/zwave/command_classes/thermostat_fan_mode.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/zwave/command_classes/thermostat_fan_mode.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.CommandClasses.ThermostatFanMode do @moduledoc """ "ThermostatFanMode" Command Class What type of commands does this command class support? """ @type mode :: :auto_low | :low | :auto_high | :high | :auto_medium | :medium ...
30.951613
88
0.655029
93207206cdf4b2f9824d40e1f3a412adeced1401
1,851
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/delete_order_deals_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/delete_order_deals_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/delete_order_deals_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.924528
114
0.727715
9320d78c10ff4a9e0a35c42822143f44e4802e4b
3,960
ex
Elixir
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_explained_policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_explained_policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_explained_policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.513514
449
0.752778
9320e02d51780e80ec8999872cdbfa4ecd019877
5,763
exs
Elixir
test/graphql_parser_schema_kitchen_sink_test.exs
1player/graphql-elixir
e77132b4ca1dc78867a64b899600636f650467e1
[ "BSD-3-Clause" ]
null
null
null
test/graphql_parser_schema_kitchen_sink_test.exs
1player/graphql-elixir
e77132b4ca1dc78867a64b899600636f650467e1
[ "BSD-3-Clause" ]
null
null
null
test/graphql_parser_schema_kitchen_sink_test.exs
1player/graphql-elixir
e77132b4ca1dc78867a64b899600636f650467e1
[ "BSD-3-Clause" ]
1
2020-02-19T19:37:48.000Z
2020-02-19T19:37:48.000Z
defmodule GraphqlParserSchemaKitchenSinkTest do use ExUnit.Case, async: true import ExUnit.TestHelpers test "Schema Kitchen Sink" do assert_parse """ # Copyright (c) 2015, Facebook, Inc. type Foo implements Bar { one: Type two(argument: InputType!): Type three(argument: ...
50.113043
82
0.529759
9320e9198cde7f74d3c99b53c1a01d20cf1f0bc8
564
exs
Elixir
mix.exs
planout/bro
a14b2e80d4f60303c44cd0620ade7eccb3857419
[ "BSD-3-Clause" ]
1
2021-04-07T22:24:44.000Z
2021-04-07T22:24:44.000Z
mix.exs
planout/bro
a14b2e80d4f60303c44cd0620ade7eccb3857419
[ "BSD-3-Clause" ]
null
null
null
mix.exs
planout/bro
a14b2e80d4f60303c44cd0620ade7eccb3857419
[ "BSD-3-Clause" ]
null
null
null
defmodule Bro.MixProject do use Mix.Project def project do [ app: :bro, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applicatio...
19.448276
87
0.570922
932101e890047d139a4838565dadcd1fcd48e41b
2,701
ex
Elixir
farmbot_core/lib/farmbot_core/asset_workers/peripheral_worker.ex
SeppPenner/farmbot_os
39ba5c5880f8aef71792e2c009514bed1177089c
[ "MIT" ]
1
2019-08-06T11:51:48.000Z
2019-08-06T11:51:48.000Z
farmbot_core/lib/farmbot_core/asset_workers/peripheral_worker.ex
SeppPenner/farmbot_os
39ba5c5880f8aef71792e2c009514bed1177089c
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_workers/peripheral_worker.ex
SeppPenner/farmbot_os
39ba5c5880f8aef71792e2c009514bed1177089c
[ "MIT" ]
null
null
null
defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.Peripheral do use GenServer require Logger alias FarmbotCore.{Asset.Peripheral, BotState} alias FarmbotCeleryScript.AST @retry_ms 1_000 @impl true def preload(%Peripheral{}), do: [] @impl true def tracks_changes?(%Peripheral{}), do: false ...
31.045977
123
0.668271
932124fa6b2d53e6b42d6ddc224f4229bb66ef2e
739
ex
Elixir
api/lib/grook/web/views/room_view.ex
ukita/grook
add716bf92fcde35b941ea8067933c28c192e01e
[ "MIT" ]
3
2017-05-22T13:28:13.000Z
2018-06-29T16:39:19.000Z
api/lib/grook/web/views/room_view.ex
ukita/grook
add716bf92fcde35b941ea8067933c28c192e01e
[ "MIT" ]
null
null
null
api/lib/grook/web/views/room_view.ex
ukita/grook
add716bf92fcde35b941ea8067933c28c192e01e
[ "MIT" ]
null
null
null
defmodule Grook.Web.RoomView do use Grook.Web, :view alias Grook.Web.RoomView alias Grook.Web.UserView def render("index.json", %{rooms: rooms}) do %{rooms: render_many(rooms, RoomView, "room.json")} end def render("show.json", %{room: room}) do %{room: render_one(room, RoomView, "room.json")} e...
23.83871
62
0.64276
9321b5ecc6884e677bc5f0d3c6fb253ec92a21c7
276
ex
Elixir
lib/code_corps/stripe_service/events/invoice_payment_succeeded.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
lib/code_corps/stripe_service/events/invoice_payment_succeeded.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
lib/code_corps/stripe_service/events/invoice_payment_succeeded.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.StripeService.Events.InvoicePaymentSucceeded do def handle(%{data: %{object: %{id: id_from_stripe, customer: customer_id_from_stripe} }}) do CodeCorps.StripeService.StripeInvoiceService.create(id_from_stripe, customer_id_from_stripe) end end
34.5
96
0.800725
9321bfbd0ed7e9d520dc185d4f6389e9bb71b5dc
1,254
ex
Elixir
lib/bus_car/changeset.ex
elbow-jason/bus_car
cd70b9f6b8dd404eb518f642491e0a4430e2d9f9
[ "MIT" ]
18
2016-09-25T21:36:39.000Z
2021-02-17T15:09:52.000Z
lib/bus_car/changeset.ex
elbow-jason/bus_car
cd70b9f6b8dd404eb518f642491e0a4430e2d9f9
[ "MIT" ]
7
2016-12-08T05:01:23.000Z
2018-04-05T08:55:11.000Z
lib/bus_car/changeset.ex
elbow-jason/bus_car
cd70b9f6b8dd404eb518f642491e0a4430e2d9f9
[ "MIT" ]
1
2020-04-24T02:10:15.000Z
2020-04-24T02:10:15.000Z
defmodule BusCar.Changeset do alias BusCar.Changeset, as: Cs alias BusCar.Changeset.Validation defstruct [ model: nil, changes: nil, errors: [], valid?: false, ] def put_error(%Cs{errors: errors} = cs, {_, _} = new_error) do %{ cs | errors: [ new_error | errors ]} end ...
23.222222
85
0.602871
9321d78514b7c41afe096c160005610175486ca2
2,478
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/expr.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/expr.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/expr.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 ...
36.441176
131
0.700969
9321d8591e6e0c87d65ee3320e2e986dddf1f02d
186
ex
Elixir
lib/ec_cart.ex
ramortegui/EcCart
c6aa0632ed913c825103d158db84fcf7e5193998
[ "Apache-2.0" ]
1
2019-03-31T16:20:16.000Z
2019-03-31T16:20:16.000Z
lib/ec_cart.ex
ramortegui/EcCart
c6aa0632ed913c825103d158db84fcf7e5193998
[ "Apache-2.0" ]
1
2018-04-01T03:27:12.000Z
2018-04-01T03:27:12.000Z
lib/ec_cart.ex
ramortegui/EcCart
c6aa0632ed913c825103d158db84fcf7e5193998
[ "Apache-2.0" ]
null
null
null
defmodule EcCart do use Application def start(_type, _args) do children = [ EcCart.Supervisor ] Supervisor.start_link(children, strategy: :one_for_one) end end
15.5
59
0.688172
9321f129e4e3150d662512f773f5c91823ace4f5
3,024
exs
Elixir
test/rumbl_web/controllers/video_controller_test.exs
GArmane/rumbl
6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e
[ "MIT" ]
null
null
null
test/rumbl_web/controllers/video_controller_test.exs
GArmane/rumbl
6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e
[ "MIT" ]
2
2021-03-09T19:04:16.000Z
2021-05-10T16:20:10.000Z
test/rumbl_web/controllers/video_controller_test.exs
GArmane/rumbl
6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e
[ "MIT" ]
1
2020-07-17T14:48:52.000Z
2020-07-17T14:48:52.000Z
defmodule RumblWeb.VideoControllerTest do use RumblWeb.ConnCase alias Rumbl.Videos.Video setup config do if username = config[:login_as] do user = Helpers.insert_user(%{username: username}) conn = assign(build_conn(), :current_user, user) {:ok, conn: conn, user: user} else :ok ...
33.230769
80
0.665013
9322188fb529797aa49f46fb7f852654ee66718f
456
ex
Elixir
lib/tilex/auth/guardian.ex
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
460
2016-12-28T21:50:05.000Z
2022-03-16T14:34:08.000Z
lib/tilex/auth/guardian.ex
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
412
2016-12-27T17:32:01.000Z
2021-09-17T23:51:47.000Z
lib/tilex/auth/guardian.ex
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
140
2017-01-06T06:55:58.000Z
2022-02-04T13:35:21.000Z
defmodule Tilex.Auth.Guardian do use Guardian, otp_app: :tilex alias Tilex.{Developer, Repo} def subject_for_token(%Developer{} = developer, _claims), do: {:ok, "Developer:#{developer.id}"} def subject_for_token(_resource, _claims), do: {:error, "Unknown resource type"} def resource_from_claims(%{"sub" => ...
38
98
0.708333
93221bf7511dc403d44052206a7bf6a153ebdf1c
607
ex
Elixir
chat/lib/server.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chat/lib/server.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chat/lib/server.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
defmodule Chat.Server do use GenServer # Client side def start_link do GenServer.start_link(__MODULE__, [], name: :chat_room) end # Call = blocking def get_msgs do GenServer.call(:chat_room, :get_msgs) end # Cast = non-blocking def add_msg(msg) do GenServer.cast(:chat_room, {:add_msg, m...
18.96875
58
0.655684
932245ba71b071bce45d8b0926a1dbc98290a4f2
182
ex
Elixir
lib/web_driver_client/server_status.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
8
2019-11-24T18:33:12.000Z
2020-12-09T10:20:09.000Z
lib/web_driver_client/server_status.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
67
2019-12-20T16:33:30.000Z
2021-09-14T03:50:10.000Z
lib/web_driver_client/server_status.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
10
2020-06-19T16:15:03.000Z
2021-09-13T17:56:25.000Z
defmodule WebDriverClient.ServerStatus do @moduledoc """ A server status response """ @type t :: %__MODULE__{ ready?: boolean } defstruct [:ready?] end
15.166667
41
0.615385
9322734c5e8ac3111f8e30620b7b2ce43a9b8fc5
271
exs
Elixir
priv/repo/migrations/20200528174042_create_authors.exs
areski/ex-chitchat
0ec14e9af6acba40d6708f924b76fb4fbe592dcf
[ "MIT" ]
1
2021-09-10T16:49:36.000Z
2021-09-10T16:49:36.000Z
priv/repo/migrations/20200528174042_create_authors.exs
areski/ex-chitchat
0ec14e9af6acba40d6708f924b76fb4fbe592dcf
[ "MIT" ]
2
2020-05-22T18:42:14.000Z
2021-01-25T16:34:38.000Z
priv/repo/migrations/20200528174042_create_authors.exs
areski/ex-chitchat
0ec14e9af6acba40d6708f924b76fb4fbe592dcf
[ "MIT" ]
null
null
null
defmodule ChitChat.Repo.Migrations.CreateAuthors do use Ecto.Migration def change do create table(:authors) do add :name, :string add :email, :text add :super_author, :boolean, default: false, null: false timestamps() end end end
18.066667
62
0.664207
93229d67775b5f6e9e6a3b3afc719e32e94d1a04
66
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/StringLine.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/StringLine.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/StringLine.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
"One" ++ "Two" "Three" -- "Four" "Five".."Six" "Seven" <> "Eight"
13.2
18
0.484848
9322aeedbb9c7b6b4cd0c8013d0b5ce395bf1bef
1,224
ex
Elixir
lib/ex_twilio/resources/proxy/message.ex
lesserhatch/ex_twilio
4869bc0f55213c5663ad3bb775ad7dc924277181
[ "MIT" ]
null
null
null
lib/ex_twilio/resources/proxy/message.ex
lesserhatch/ex_twilio
4869bc0f55213c5663ad3bb775ad7dc924277181
[ "MIT" ]
1
2021-02-19T04:34:52.000Z
2021-03-29T19:14:14.000Z
lib/ex_twilio/resources/proxy/message.ex
workpathco/ex_twilio
fe6948ee2c78084dade683c0b81c33f47461589f
[ "MIT" ]
null
null
null
defmodule ExTwilio.Proxy.Message do @moduledoc """ Represents a Message Interaction of a Session. - [Twilio docs](https://www.twilio.com/docs/proxy/api/sending-messages) """ defstruct sid: nil, account_sid: nil, session_sid: nil, service_sid: nil, participant_...
30.6
78
0.617647
93230795ab36e76c025b1e9c7a286c9cb4f845fb
70
exs
Elixir
test/views/page_view_test.exs
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
defmodule Login.PageViewTest do use Login.ConnCase, async: true end
17.5
33
0.8
932308bb50466325090c34e6f4038aa328554807
144
exs
Elixir
exercise4/test/exercise4_test.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
exercise4/test/exercise4_test.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
exercise4/test/exercise4_test.exs
aspiringastro/programming-elixir
ec2167268c06bbb72b2bda26caa469333daccb63
[ "MIT" ]
null
null
null
defmodule Exercise4Test do use ExUnit.Case doctest Exercise4 test "greets the world" do assert Exercise4.hello() == :world end end
16
38
0.722222
932374d06593efcc101b61b6af583d9f71aae83d
2,361
ex
Elixir
lib/correios/cep/client.ex
prodis/correios-cep-elixir
d6ca81ba67a0aabc241b9d933eb9bc74cc7c26aa
[ "Apache-2.0" ]
39
2018-11-15T09:07:40.000Z
2021-10-05T06:12:53.000Z
lib/correios/cep/client.ex
prodis/correios-cep-elixir
d6ca81ba67a0aabc241b9d933eb9bc74cc7c26aa
[ "Apache-2.0" ]
15
2018-11-12T23:38:39.000Z
2020-07-25T10:22:27.000Z
lib/correios/cep/client.ex
prodis/correios-cep-elixir
d6ca81ba67a0aabc241b9d933eb9bc74cc7c26aa
[ "Apache-2.0" ]
5
2019-01-30T13:11:06.000Z
2021-03-31T10:44:48.000Z
defmodule Correios.CEP.Client do @moduledoc """ HTTP client for Correios API. """ alias HTTPoison.{Error, Response} @type t :: {:ok, String.t()} | {:error, any()} @default_url "https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente" @headers [ {"Content-Type", "text/xml; ch...
30.662338
146
0.6349
93237e5e1a8a1a9ca7c3ae6560c2838aa7100620
70
ex
Elixir
lib/asciinema_web/views/asciicast_view.ex
acloudiator/asciinema-server
f0afa4cb4312822f5dd56008b0c5ec9c7a410f85
[ "Apache-2.0" ]
1
2021-07-07T12:36:10.000Z
2021-07-07T12:36:10.000Z
lib/asciinema_web/views/asciicast_view.ex
acloudiator/asciinema-server
f0afa4cb4312822f5dd56008b0c5ec9c7a410f85
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/views/asciicast_view.ex
acloudiator/asciinema-server
f0afa4cb4312822f5dd56008b0c5ec9c7a410f85
[ "Apache-2.0" ]
null
null
null
defmodule AsciinemaWeb.AsciicastView do use AsciinemaWeb, :view end
17.5
39
0.828571
93238cbb8563e5f6f789959703402c56e7d5b4df
2,203
ex
Elixir
lib/elixir_awesome/projects.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/projects.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
lib/elixir_awesome/projects.ex
ddidwyll/awesome-elixir
55b72305884cfd10510e25dd5f17f1a32765a17f
[ "MIT" ]
null
null
null
defmodule ElixirAwesome.Projects do @moduledoc """ The Projects context. """ import Ecto.Query, warn: false alias ElixirAwesome.Repo alias ElixirAwesome.Projects.Project, as: Prj alias ElixirAwesome.Projects.Category, as: Cat defp where_stars(query, stars) do import Ecto.Query, only: [where: 3] ...
22.03
56
0.597367
9323a9974564ab407d1a246eef91d3578a80d2e3
2,110
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_list_warning.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/instance_list_warning.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/instance_list_warning.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.811321
239
0.718009
9323d8b72de1e36caabb9786bec451cd564f4ed3
706
ex
Elixir
Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_service_orchestrator_profile.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_service_orchestrator_profile.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_service_orchestrator_profile.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Containers.Model.ContainerServiceOrchestratorProfile do @moduledoc """ Profile for the container service orchestrat...
25.214286
111
0.743626
9323ee15a1adb7f38185187f939578b0551e3785
171
ex
Elixir
lib/erlef/fellows.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
71
2019-07-02T18:06:15.000Z
2022-03-09T15:30:08.000Z
lib/erlef/fellows.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
157
2019-07-02T01:21:16.000Z
2022-03-30T16:08:12.000Z
lib/erlef/fellows.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
45
2019-07-04T05:51:11.000Z
2022-02-27T11:56:02.000Z
defmodule Erlef.Fellows do @moduledoc false @external_resource Erlef.data_path("fellows.exs") @fellows Erlef.get_data("fellows.exs") def all(), do: @fellows end
19
51
0.736842
932417468c777e72cd05929ebaa39cb1ca6b3be8
1,587
ex
Elixir
apps/testing/lib/source_udp_socket.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/testing/lib/source_udp_socket.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/testing/lib/source_udp_socket.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
defmodule SourceUdpSocket do use GenServer def hit_me(), do: GenServer.cast(__MODULE__, :hit_me) def start_link(init_opts) do GenServer.start_link(__MODULE__, init_opts, name: __MODULE__) end def init(init_opts) do state = %{ port: Keyword.fetch!(init_opts, :port), schedule: Keyword.get...
28.339286
96
0.659105
9324487d61bbcec8362bda31bccf8f666d4c1280
4,842
ex
Elixir
lib/kaffy/resource_query.ex
mindvalley/kaffy
9141c80e4ab1783ee589500c86a196623696ee4b
[ "MIT" ]
null
null
null
lib/kaffy/resource_query.ex
mindvalley/kaffy
9141c80e4ab1783ee589500c86a196623696ee4b
[ "MIT" ]
null
null
null
lib/kaffy/resource_query.ex
mindvalley/kaffy
9141c80e4ab1783ee589500c86a196623696ee4b
[ "MIT" ]
null
null
null
defmodule Kaffy.ResourceQuery do @moduledoc false import Ecto.Query def list_resource(conn, resource, params \\ %{}) do per_page = Map.get(params, "limit", "100") |> String.to_integer() page = Map.get(params, "page", "1") |> String.to_integer() search = Map.get(params, "search", "") |> String.trim()...
28.821429
97
0.614622
93246b360298db4ab0b3dae04d834e02b13166f0
2,420
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_update_entities_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...
38.412698
320
0.742562
93247cf8a1f5148a0d00b57b6f153ee3e176412d
1,165
exs
Elixir
mix.exs
smpallen99/unbrella
d8d902edd5d68cca46686cc17e435fe9d2bce0da
[ "MIT" ]
9
2017-07-09T21:45:56.000Z
2020-09-26T04:19:58.000Z
mix.exs
smpallen99/unbrella
d8d902edd5d68cca46686cc17e435fe9d2bce0da
[ "MIT" ]
null
null
null
mix.exs
smpallen99/unbrella
d8d902edd5d68cca46686cc17e435fe9d2bce0da
[ "MIT" ]
2
2017-09-18T14:38:59.000Z
2017-11-27T10:31:36.000Z
defmodule Unbrella.Mixfile do use Mix.Project def project do [ app: :unbrella, version: "1.0.2", elixir: "~> 1.4", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, dialyzer: [plt_add_apps: [:mix]], elixirc_paths: elixirc_paths(Mix.env()), ...
24.787234
76
0.557082
93248f7a4f8f9cf44e382ce8b7fdb0a0d9fdb38e
1,775
ex
Elixir
lib/ecto/migration/schema_migration.ex
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
1
2020-10-18T09:11:56.000Z
2020-10-18T09:11:56.000Z
lib/ecto/migration/schema_migration.ex
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
1
2020-06-29T20:59:38.000Z
2020-06-29T20:59:38.000Z
lib/ecto/migration/schema_migration.ex
hauleth/ecto_sql
1d7f4b73bfa04e02a26bba8b3ea79a457850af0f
[ "Apache-2.0" ]
1
2019-05-31T02:43:25.000Z
2019-05-31T02:43:25.000Z
defmodule Ecto.Migration.SchemaMigration do # Defines a schema that works with a table that tracks schema migrations. # The table name defaults to `schema_migrations`. @moduledoc false use Ecto.Schema import Ecto.Query, only: [from: 2] @primary_key false schema "schema_migrations" do field :version,...
31.140351
89
0.692394
9324ab0649d17d8562d67949f6ad287e74e02846
734
ex
Elixir
ch5_concurrency_primitives/stateful_database_server.ex
arilsonsouza/elixir-in-action
8684605dac35717003c76f85c0b55f0336147963
[ "MIT" ]
null
null
null
ch5_concurrency_primitives/stateful_database_server.ex
arilsonsouza/elixir-in-action
8684605dac35717003c76f85c0b55f0336147963
[ "MIT" ]
null
null
null
ch5_concurrency_primitives/stateful_database_server.ex
arilsonsouza/elixir-in-action
8684605dac35717003c76f85c0b55f0336147963
[ "MIT" ]
null
null
null
defmodule DatabaseServer do def start do spawn(fn -> connection = :rand.uniform(1000) loop(connection) end) end defp loop(connection) do receive do {:run_query, from_pid, query_def} -> query_result = run_query(connection, query_def) send(from_pid, {:query_result, que...
20.388889
55
0.648501
9324d182e5da45add3eb723c4018b91b82e940d6
129
exs
Elixir
config/config.exs
SmartColumbusOS/smart_city
7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562
[ "Apache-2.0" ]
2
2019-07-09T15:52:17.000Z
2020-01-17T08:01:27.000Z
config/config.exs
SmartColumbusOS/smart_city
7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562
[ "Apache-2.0" ]
24
2019-06-06T15:36:12.000Z
2020-02-06T16:45:53.000Z
config/config.exs
SmartColumbusOS/smart_city
7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562
[ "Apache-2.0" ]
1
2022-03-08T23:44:23.000Z
2022-03-08T23:44:23.000Z
use Mix.Config config :mime, :types, %{ "application/gtfs+protobuf" => ["gtfs"], "application/vnd.ogc.wms_xml" => ["wms"] }
18.428571
42
0.627907
9324f3234a6973dac677128ed212a37017486e88
1,119
exs
Elixir
config/config.exs
Stratus3D/Spout
90d75231152ad1a0b3eee76ff76d8c3a09deaacd
[ "MIT" ]
3
2016-09-05T17:32:12.000Z
2021-01-11T10:43:07.000Z
config/config.exs
Stratus3D/Spout
90d75231152ad1a0b3eee76ff76d8c3a09deaacd
[ "MIT" ]
null
null
null
config/config.exs
Stratus3D/Spout
90d75231152ad1a0b3eee76ff76d8c3a09deaacd
[ "MIT" ]
1
2016-05-25T10:35:49.000Z
2016-05-25T10:35:49.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
38.586207
73
0.741734
93250a8342d8b493e5d11fa6849b514f2871a947
49
ex
Elixir
test/fixtures/clean/lib/simple_struct.ex
hauleth/mix_unused
778f60773a1c0d10e62b85c5fd39611b71b41e53
[ "MIT" ]
116
2019-01-05T02:08:47.000Z
2022-03-29T08:10:16.000Z
test/fixtures/clean/lib/simple_struct.ex
hauleth/mix_unused
778f60773a1c0d10e62b85c5fd39611b71b41e53
[ "MIT" ]
22
2020-04-12T23:29:14.000Z
2022-03-30T17:23:21.000Z
test/fixtures/clean/lib/simple_struct.ex
hauleth/mix_unused
778f60773a1c0d10e62b85c5fd39611b71b41e53
[ "MIT" ]
2
2021-09-28T10:35:00.000Z
2022-03-24T14:08:27.000Z
defmodule SimpleStruct do defstruct [:foo] end
12.25
25
0.77551
93253832325748b9fe81acb31b3f5f83ffb68555
602
exs
Elixir
elixir/sum-of-multiples/sum_of_multiples.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
elixir/sum-of-multiples/sum_of_multiples.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
elixir/sum-of-multiples/sum_of_multiples.exs
jjdonov/Exercism
3585420c5b0e74ea51a6fbd60e8263620061a1d9
[ "MIT" ]
null
null
null
defmodule SumOfMultiples do @doc """ Adds up all numbers from 1 to a given end number that are multiples of the factors provided. """ @spec to(non_neg_integer, [non_neg_integer]) :: non_neg_integer def to(limit, factors) do 1..(limit - 1) |> Enum.filter(fn maybe_multiple -> is_multiple(maybe_multiple,...
30.1
94
0.714286
9325484bbfd7e9aca3f23dd5f59a1e8d09479a06
3,244
ex
Elixir
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/expr.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.928571
1,092
0.734587
9325ba085228d5254509873c200efdb332432a3b
2,985
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/model/webproperties.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/model/webproperties.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/model/webproperties.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...
43.26087
287
0.722948
9325f88767809d323c275a5fcc914f5484193554
743
ex
Elixir
apps/castles_web/test/support/channel_case.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
apps/castles_web/test/support/channel_case.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
apps/castles_web/test/support/channel_case.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
defmodule CastlesWeb.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...
21.852941
56
0.720054
9326036eabd8ffac845a6fa01a996cc5f33c07ad
1,960
ex
Elixir
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_update_ip_configuration_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_update_ip_configuration_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_scale_set_update_ip_configuration_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Compute.Model.VirtualMachineScaleSetUpdateIpConfigurationProperties do @moduledoc """ Describes a virtual machine s...
44.545455
168
0.77602
9326089f40630445f1d8149cd33a3c8b48e91860
262
exs
Elixir
priv/repo/migrations/20200708223000_create_messages.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
priv/repo/migrations/20200708223000_create_messages.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
priv/repo/migrations/20200708223000_create_messages.exs
raditya3/papercups
4657b258ee381ac0b7517e57e4d6261ce94b5871
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Repo.Migrations.CreateMessages do use Ecto.Migration def change do create table(:messages, primary_key: false) do add(:id, :binary_id, primary_key: true) add(:body, :text, null: false) timestamps() end end end
20.153846
51
0.679389
93267b459c6e9ce69f655647bb82177042d131ce
1,061
exs
Elixir
apps/discovery_api/test/integration/discovery_api/user_organization_association_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
18
2020-11-13T15:38:24.000Z
2021-05-26T00:40:08.000Z
apps/discovery_api/test/integration/discovery_api/user_organization_association_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
365
2020-09-21T12:31:40.000Z
2021-09-25T14:54:21.000Z
apps/discovery_api/test/integration/discovery_api/user_organization_association_test.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
3
2020-10-06T16:17:49.000Z
2021-09-03T17:11:41.000Z
defmodule DiscoveryApi.UserOrganizationAssociationTest do use ExUnit.Case use DiscoveryApi.DataCase import SmartCity.Event, only: [user_organization_associate: 0] import SmartCity.TestHelper alias DiscoveryApi.Test.Helper alias DiscoveryApi.Schemas.Users alias DiscoveryApi.Schemas.Users.User test "when...
36.586207
130
0.744581
9326b3a7bc36a752cd32abda895e381069c1d247
445
ex
Elixir
apps/banking_api_web/lib/banking_api_web/router.ex
ckoliveira/banking_api
3a4077a97e2cfcb2475bafd582a836bd03f6c6cc
[ "Apache-2.0" ]
null
null
null
apps/banking_api_web/lib/banking_api_web/router.ex
ckoliveira/banking_api
3a4077a97e2cfcb2475bafd582a836bd03f6c6cc
[ "Apache-2.0" ]
null
null
null
apps/banking_api_web/lib/banking_api_web/router.ex
ckoliveira/banking_api
3a4077a97e2cfcb2475bafd582a836bd03f6c6cc
[ "Apache-2.0" ]
null
null
null
defmodule BankingApiWeb.Router do use BankingApiWeb, :router pipeline :api do plug :accepts, ["json"] end scope "/api/user", BankingApiWeb do pipe_through :api post "/", UserController, :create get "/fetch", UserController, :fetch end scope "/api/account", BankingApiWeb do pipe_throu...
20.227273
52
0.692135
9327054108ce4252b3268c2e2934d7520b900804
985
exs
Elixir
test/conduit/subscriber_test.exs
log4b/conduit
5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e
[ "MIT" ]
119
2016-11-21T13:19:22.000Z
2021-11-07T17:29:05.000Z
test/conduit/subscriber_test.exs
log4b/conduit
5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e
[ "MIT" ]
104
2018-02-02T20:42:46.000Z
2021-08-03T05:36:09.000Z
test/conduit/subscriber_test.exs
log4b/conduit
5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e
[ "MIT" ]
21
2018-08-03T02:38:21.000Z
2022-03-16T18:26:58.000Z
defmodule Conduit.SubscriberTest do use ExUnit.Case, async: true alias Conduit.Message describe "run/2" do defmodule JustSub do @moduledoc false use Conduit.Subscriber def process(message, opts) do send(self(), {:process, message, opts}) message end end test...
23.452381
96
0.64467
932716e1c7c02d754b6791da96e019bf72189f60
335
ex
Elixir
apps/plant_monitor/test/support/factory.ex
bartoszgorka/PlantMonitor
23e18cd76c51bd8eee021ee98668926de885047b
[ "MIT" ]
2
2019-01-25T21:21:56.000Z
2021-02-24T08:18:51.000Z
apps/plant_monitor/test/support/factory.ex
bartoszgorka/PlantMonitor
23e18cd76c51bd8eee021ee98668926de885047b
[ "MIT" ]
null
null
null
apps/plant_monitor/test/support/factory.ex
bartoszgorka/PlantMonitor
23e18cd76c51bd8eee021ee98668926de885047b
[ "MIT" ]
null
null
null
defmodule PlantMonitor.Factory do @moduledoc false use ExMachina.Ecto, repo: PlantMonitor.Repo # User use PlantMonitor.UserFactory use PlantMonitor.ProfileFactory # OAuth use PlantMonitor.OAuth.RefreshTokenFactory # Measuring device use PlantMonitor.DeviceFactory use PlantMonitor.Device.AccessTok...
19.705882
45
0.8
93272e4d438ddd7caf7691e6878bc5343ae06a3e
1,528
ex
Elixir
lib/new_relixir/instrumenters/phoenix.ex
edipox/new-relixir
00de7b6016b840d14004c32e562604de25c0c9b5
[ "MIT" ]
null
null
null
lib/new_relixir/instrumenters/phoenix.ex
edipox/new-relixir
00de7b6016b840d14004c32e562604de25c0c9b5
[ "MIT" ]
null
null
null
lib/new_relixir/instrumenters/phoenix.ex
edipox/new-relixir
00de7b6016b840d14004c32e562604de25c0c9b5
[ "MIT" ]
null
null
null
defmodule NewRelixir.Instrumenters.Phoenix do @moduledoc """ New Relic instrumenter for Phoenix controllers. It relies on the instrumentation API provided by `Phoenix.Endpoint`. To set it up, include this module in the list of `instrumenters` of your Endpoint config: config :my_app, MyAppWeb.Endpoint, ...
34.727273
90
0.750654
932760eae7e949e7ea0dbd053b722c06126027a3
528
ex
Elixir
lib/go_champs_api_web/views/search_view.ex
lairjr/go_champs_api
01cb3ff2c655910839e5caf4282a8e50543e32a1
[ "MIT" ]
null
null
null
lib/go_champs_api_web/views/search_view.ex
lairjr/go_champs_api
01cb3ff2c655910839e5caf4282a8e50543e32a1
[ "MIT" ]
5
2021-09-29T04:01:54.000Z
2021-11-02T03:11:52.000Z
lib/go_champs_api_web/views/search_view.ex
lairjr/tournamentsapi
dde8f8f659074527d3861391af3ab29f070179f2
[ "MIT" ]
1
2021-11-02T14:43:15.000Z
2021-11-02T14:43:15.000Z
defmodule GoChampsApiWeb.SearchView do use GoChampsApiWeb, :view alias GoChampsApiWeb.SearchView alias GoChampsApiWeb.OrganizationView def render("index.json", %{tournaments: tournaments}) do %{data: render_many(tournaments, SearchView, "result.json")} end def render("result.json", %{search: tournamen...
27.789474
94
0.719697
93278d68b76dc9aecc96658327b152065470c90b
1,120
ex
Elixir
pi_control_manager/test/support/conn_case.ex
harmon25/picontrol
90a203ac63c94cd0ab975313225100170c9c589a
[ "MIT" ]
2
2016-07-14T06:51:32.000Z
2017-02-10T19:19:08.000Z
pi_control_manager/test/support/conn_case.ex
harmon25/picontrol
90a203ac63c94cd0ab975313225100170c9c589a
[ "MIT" ]
null
null
null
pi_control_manager/test/support/conn_case.ex
harmon25/picontrol
90a203ac63c94cd0ab975313225100170c9c589a
[ "MIT" ]
null
null
null
defmodule PiCntrlMngr.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the...
24.888889
73
0.710714
9327b413f97e9e41bae77d761bd2c6c6f902102c
3,248
ex
Elixir
lib/hobot/bot.ex
niku/hobot
5e71f51af7737fa4ce7ddffcc2a01235ec41d0c0
[ "MIT" ]
11
2017-08-19T11:10:48.000Z
2022-01-24T07:05:12.000Z
lib/hobot/bot.ex
niku/beam_homunculus
5e71f51af7737fa4ce7ddffcc2a01235ec41d0c0
[ "MIT" ]
null
null
null
lib/hobot/bot.ex
niku/beam_homunculus
5e71f51af7737fa4ce7ddffcc2a01235ec41d0c0
[ "MIT" ]
null
null
null
defmodule Hobot.Bot do @moduledoc """ Functions to make a context as a bot. """ def context(name), do: Enum.join([name, "Context"], ".") def adapter(name), do: Enum.join([name, "Adapter"], ".") def handler(name, index), do: Enum.join([name, "Handler#{index}"], ".") def middleware(atom, adapter, handlers...
33.484536
99
0.660099
9327c2a4140994d7e0b2868cc480a29bede3caa9
5,659
ex
Elixir
lib/drab/socket.ex
elixir-twister/drab
dd32512cd4be2e3f5cd2ed8e0632f79bea88ed1e
[ "MIT" ]
null
null
null
lib/drab/socket.ex
elixir-twister/drab
dd32512cd4be2e3f5cd2ed8e0632f79bea88ed1e
[ "MIT" ]
null
null
null
lib/drab/socket.ex
elixir-twister/drab
dd32512cd4be2e3f5cd2ed8e0632f79bea88ed1e
[ "MIT" ]
null
null
null
defmodule Drab.Socket do @moduledoc """ Drab operates on websockets. To enable it, you need to tell your application's socket module to use Drab. For this, you will need to modify the socket module (by default it is `UserSocket` in `web/channels/user_socket.ex`). There are two ways to archive this: let the Dra...
34.506098
129
0.641456
9327e8dd64ca68cf43a051b5b66918dab8dd53e8
101
exs
Elixir
priv/repo/migrations/20220305002939_add_oban_jobs_table.exs
thelastinuit/akkad
08df3f51daeada737c53d07663c166a5e6cc297e
[ "MIT" ]
1
2022-03-05T00:05:26.000Z
2022-03-05T00:05:26.000Z
priv/repo/migrations/20220305002939_add_oban_jobs_table.exs
thelastinuit/akkad
08df3f51daeada737c53d07663c166a5e6cc297e
[ "MIT" ]
null
null
null
priv/repo/migrations/20220305002939_add_oban_jobs_table.exs
thelastinuit/akkad
08df3f51daeada737c53d07663c166a5e6cc297e
[ "MIT" ]
null
null
null
defmodule Akkad.Repo.Migrations.AddObanJobsTable do use Ecto.Migration def change do end end
12.625
51
0.782178
9327ea80b07acdc6b0267cae4128082502ab6f27
820
ex
Elixir
lib/media_server_web/live/home_live/index.ex
MNDL-27/midarr-server
b749707a1777205cea2d93349cde2ef922e527ec
[ "MIT" ]
null
null
null
lib/media_server_web/live/home_live/index.ex
MNDL-27/midarr-server
b749707a1777205cea2d93349cde2ef922e527ec
[ "MIT" ]
null
null
null
lib/media_server_web/live/home_live/index.ex
MNDL-27/midarr-server
b749707a1777205cea2d93349cde2ef922e527ec
[ "MIT" ]
null
null
null
defmodule MediaServerWeb.HomeLive.Index do use MediaServerWeb, :live_view alias MediaServer.Accounts alias MediaServerWeb.Repositories.Movies alias MediaServerWeb.Repositories.Series @impl true def mount(_params, session, socket) do { :ok, socket |> assign(:current_user, Accounts.get...
27.333333
94
0.693902
9327ed261464fe8999ac9b019be9bed8a60d78ce
25,168
ex
Elixir
lib/phoenix_live_view/helpers.ex
JonRowe/phoenix_live_view
2895b18996102ca101bc8f8db86a67e478d90914
[ "MIT" ]
null
null
null
lib/phoenix_live_view/helpers.ex
JonRowe/phoenix_live_view
2895b18996102ca101bc8f8db86a67e478d90914
[ "MIT" ]
null
null
null
lib/phoenix_live_view/helpers.ex
JonRowe/phoenix_live_view
2895b18996102ca101bc8f8db86a67e478d90914
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.Helpers do @moduledoc """ A collection of helpers to be imported into your views. """ alias Phoenix.LiveView.{Component, Socket, Static} @doc false def live_patch(opts) when is_list(opts) do live_link("patch", Keyword.fetch!(opts, :do), Keyword.delete(opts, :do)) end @d...
30.95695
110
0.64292
932808470968861972f97a59517ffa9e9b3c3839
558
ex
Elixir
lib/mix/tasks/compile.vessel.ex
zackehh/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
14
2016-12-06T03:55:52.000Z
2017-05-23T12:07:07.000Z
lib/mix/tasks/compile.vessel.ex
whitfin/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
3
2016-11-28T20:58:05.000Z
2017-05-31T23:51:52.000Z
lib/mix/tasks/compile.vessel.ex
zackehh/vessel
401b5139d4680c6065f4024214718019068bf74e
[ "MIT" ]
1
2020-03-03T21:07:44.000Z
2020-03-03T21:07:44.000Z
defmodule Mix.Tasks.Compile.Vessel do @moduledoc """ Compiles a set of Vessel binaries. This module lives purely to allow the use of the `:vessel` compiler in your Mix definition. Adding `:vessel` to the end of your compilers list will automatically build your binaries when you compile, rather than forcin...
31
81
0.749104
93280875a5fd46fe2bdddd741f477857252c51b7
2,500
ex
Elixir
lib/membrane/testing/sink.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/testing/sink.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/testing/sink.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Testing.Sink do @moduledoc """ Sink Element that notifies the pipeline about buffers and events it receives. By default `Sink` will demand buffers automatically, but you can override that behaviour by using `autodemand` option. If set to false no automatic demands shall be made. Demands ca...
29.411765
108
0.6468
93280d77601abded5b278e24f5eb6102753127e5
36,444
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/vpn_gateways.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/api/vpn_gateways.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/api/vpn_gateways.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...
54.475336
1,450
0.636017
93282ceec2b9bf0a60e2476b2a1e6896cb4a8709
10,145
exs
Elixir
test/xml_json/badgerfish_test.exs
MathiasWedeken/xml_json
772f110987501e1f0d8065311110069c1f4e0a20
[ "MIT" ]
2
2020-10-08T06:49:02.000Z
2020-10-29T16:24:20.000Z
test/xml_json/badgerfish_test.exs
MathiasWedeken/xml_json
772f110987501e1f0d8065311110069c1f4e0a20
[ "MIT" ]
2
2020-10-08T12:15:38.000Z
2021-06-01T18:15:31.000Z
test/xml_json/badgerfish_test.exs
MathiasWedeken/xml_json
772f110987501e1f0d8065311110069c1f4e0a20
[ "MIT" ]
2
2020-10-08T11:56:39.000Z
2021-06-01T16:42:43.000Z
defmodule XmlJson.BadgerFishTest do use ExUnit.Case use Placebo doctest XmlJson.BadgerFish describe "deserialize" do test "returns an error tuple if XML can't be parsed" do xml = """ <roottest</root> """ assert {:error, _} = XmlJson.BadgerFish.deserialize(xml) end test "e...
28.259053
189
0.465845
9328355ba007cf0a7455052fd2d9843d7eba6e91
2,112
exs
Elixir
backend/test/edgehog_web/schema/mutation/set_led_behavior_test.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/test/edgehog_web/schema/mutation/set_led_behavior_test.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/test/edgehog_web/schema/mutation/set_led_behavior_test.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
# # This file is part of Edgehog. # # Copyright 2022 SECO Mind 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 app...
26.734177
93
0.616004
93285430df8439e6ff00f2428ed0c2748221d779
3,706
ex
Elixir
lib/avrora/resolver.ex
apellizzn/avrora
02a5eb563d85f06b6af25fbed220c508bc2bf410
[ "MIT" ]
null
null
null
lib/avrora/resolver.ex
apellizzn/avrora
02a5eb563d85f06b6af25fbed220c508bc2bf410
[ "MIT" ]
null
null
null
lib/avrora/resolver.ex
apellizzn/avrora
02a5eb563d85f06b6af25fbed220c508bc2bf410
[ "MIT" ]
null
null
null
defmodule Avrora.Resolver do @moduledoc """ Resolve schema name or global ID to a schema, keeping cache up to date. """ require Logger alias Avrora.Config alias Avrora.Schema.Name @doc """ Resolve schema, trying multiple methods. First tries integer id, then string name. ## Examples ...> {:o...
32.79646
103
0.616568
93285d3fe948ff4892c05a38f1976f7754d425c7
6,691
exs
Elixir
test/with_filter_test.exs
git-toni/lv-states
588652ae698efc7193dc25a8e4a68b5201aa09bd
[ "MIT" ]
3
2021-07-07T09:10:11.000Z
2022-03-18T10:28:14.000Z
test/with_filter_test.exs
git-toni/lv-states
588652ae698efc7193dc25a8e4a68b5201aa09bd
[ "MIT" ]
12
2021-07-06T21:08:21.000Z
2021-09-27T11:11:19.000Z
test/with_filter_test.exs
git-toni/lv-states
588652ae698efc7193dc25a8e4a68b5201aa09bd
[ "MIT" ]
null
null
null
defmodule WithFilterTest do use ExUnit.Case doctest LvStates.WithSearch alias Phoenix.LiveView.Socket defmodule Filterable do use LvStates.WithFilter, [:brand, color: :multiple] def fetch(socket), do: socket end @state_key LvStates.WithFilter.state_key @starting_state Filterable.lvs_filter_stat...
33.792929
87
0.697355
932877476071ef5235ac16bb1529bf407a1a368b
1,254
ex
Elixir
lib/ascoel_cm868lr.ex
eagle-te/element-parsers
c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e
[ "MIT" ]
null
null
null
lib/ascoel_cm868lr.ex
eagle-te/element-parsers
c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e
[ "MIT" ]
null
null
null
lib/ascoel_cm868lr.ex
eagle-te/element-parsers
c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour def parse(<<evt::8, count::16>>, %{meta: %{frame_port: 30 }}) do << _res::3, _ins::2, blow::1, tamper::1, intr::1 >> = <<evt::8>> %{ messagetype: "event", intrusion: intr, tamper: tamper, batterywarn: blow, counter: count ...
19.904762
87
0.466507
9328805ce5938bdcf801b8154b009618977da8ab
75
exs
Elixir
test/nx_micro_bench_test.exs
zacky1972/nx_micro_bench
e31ae6c9b8a8c75aa831c08b167f4be95581d66f
[ "Apache-2.0" ]
2
2021-12-19T18:26:50.000Z
2021-12-19T22:46:53.000Z
test/nx_micro_bench_test.exs
zacky1972/nx_micro_bench
e31ae6c9b8a8c75aa831c08b167f4be95581d66f
[ "Apache-2.0" ]
null
null
null
test/nx_micro_bench_test.exs
zacky1972/nx_micro_bench
e31ae6c9b8a8c75aa831c08b167f4be95581d66f
[ "Apache-2.0" ]
null
null
null
defmodule NxMicroBenchTest do use ExUnit.Case doctest NxMicroBench end
15
29
0.826667
93288c7c88284cc017ca13323a471f2849e37625
4,194
ex
Elixir
lib/exmqttc_callback.ex
hero-laboratories/exmqttc
e723b70a6738aad3e6afaffa0feff5282c0d4955
[ "MIT" ]
25
2017-05-21T11:44:57.000Z
2020-02-18T16:07:33.000Z
lib/exmqttc_callback.ex
hero-laboratories/exmqttc
e723b70a6738aad3e6afaffa0feff5282c0d4955
[ "MIT" ]
11
2017-06-08T18:40:47.000Z
2019-12-25T15:53:31.000Z
lib/exmqttc_callback.ex
hero-laboratories/exmqttc
e723b70a6738aad3e6afaffa0feff5282c0d4955
[ "MIT" ]
11
2018-02-08T18:09:20.000Z
2020-12-22T15:58:30.000Z
defmodule Exmqttc.Callback do require Logger @moduledoc """ Behaviour module for Exmqttc callbacks """ use GenServer @doc """ Initializing the callback module, returned data is passed in as state on the next call. Params are taken from Exmqttc.start_link """ @callback init(params :: any) :: {:ok, st...
31.772727
149
0.644254
932899cd56c80f49b8f7be928d96e4770e640648
155
ex
Elixir
lib/keycloak_api.ex
HeyHomie/keycloak_api
ba873e093eb2e68410abf4b7228ef30a7191addc
[ "MIT" ]
null
null
null
lib/keycloak_api.ex
HeyHomie/keycloak_api
ba873e093eb2e68410abf4b7228ef30a7191addc
[ "MIT" ]
null
null
null
lib/keycloak_api.ex
HeyHomie/keycloak_api
ba873e093eb2e68410abf4b7228ef30a7191addc
[ "MIT" ]
null
null
null
defmodule KeycloakAPI do @moduledoc """ KeycloakAPI is a simple library to interact with the [Keycloak](https://www.keycloak.org/) API REST. """ end
25.833333
102
0.722581
9328b563b57c4442edbafa8e54ee64563418fed0
132
exs
Elixir
test/alice_personable_test.exs
mattr-/alice_personable
64345adf00f5185db33b683c4dd2b73063dc436d
[ "MIT" ]
null
null
null
test/alice_personable_test.exs
mattr-/alice_personable
64345adf00f5185db33b683c4dd2b73063dc436d
[ "MIT" ]
null
null
null
test/alice_personable_test.exs
mattr-/alice_personable
64345adf00f5185db33b683c4dd2b73063dc436d
[ "MIT" ]
null
null
null
defmodule AlicePersonableTest do use ExUnit.Case doctest AlicePersonable test "the truth" do assert 1 + 1 == 2 end end
14.666667
32
0.712121
9328b72ac947a2b7ad8eef29f4a7a35263d09cd6
17,507
exs
Elixir
test/mix/tasks/phx.gen.html_test.exs
MarkHoo/phoenix
3f673093826b0d4db5656dfe6e34393901348ed1
[ "MIT" ]
null
null
null
test/mix/tasks/phx.gen.html_test.exs
MarkHoo/phoenix
3f673093826b0d4db5656dfe6e34393901348ed1
[ "MIT" ]
null
null
null
test/mix/tasks/phx.gen.html_test.exs
MarkHoo/phoenix
3f673093826b0d4db5656dfe6e34393901348ed1
[ "MIT" ]
null
null
null
Code.require_file "../../../installer/test/mix_helper.exs", __DIR__ defmodule Mix.Tasks.Phx.Gen.HtmlTest do use ExUnit.Case import MixHelper alias Mix.Tasks.Phx.Gen setup do Mix.Task.clear() :ok end test "invalid mix arguments", config do in_tmp_project config.test, fn -> assert_raise M...
40.525463
144
0.639344
9328d6c8e3f1f1db262766dca51eaa6f205b325b
738
exs
Elixir
2017/07/tower.exs
bbridges/advent
f2724f39ca82aa3d2a6f3de7a6ea91222d511e00
[ "MIT" ]
null
null
null
2017/07/tower.exs
bbridges/advent
f2724f39ca82aa3d2a6f3de7a6ea91222d511e00
[ "MIT" ]
null
null
null
2017/07/tower.exs
bbridges/advent
f2724f39ca82aa3d2a6f3de7a6ea91222d511e00
[ "MIT" ]
null
null
null
defmodule Tower do def get_base(list), do: _get_base list, List.first(list) defp _get_base(list, {curr, _}) do case Enum.find list, fn {_, above} -> curr in above end do nil -> curr below -> _get_base list, below end end def parse_input(input) do input |> String.trim |> Strin...
23.806452
74
0.577236
9328e63bf857b8acf77456280b624f8e82f1c723
421
ex
Elixir
lib/wechat/wxa.ex
ZXYCir/wechat
817cfb84243413d02e7169e1b9fa3c1a4be70ab4
[ "MIT" ]
36
2016-09-08T06:12:34.000Z
2018-08-14T03:45:16.000Z
lib/wechat/wxa.ex
ZXYCir/wechat
817cfb84243413d02e7169e1b9fa3c1a4be70ab4
[ "MIT" ]
15
2016-09-06T04:25:19.000Z
2017-12-14T12:08:14.000Z
lib/wechat/wxa.ex
ZXYCir/wechat
817cfb84243413d02e7169e1b9fa3c1a4be70ab4
[ "MIT" ]
10
2016-09-06T03:58:10.000Z
2017-12-14T06:36:51.000Z
defmodule Wechat.Wxa do @moduledoc """ Mini program server APIs. https://developers.weixin.qq.com/miniprogram/dev/api-backend/ """ alias Wechat.Request def jscode2session(client, js_code) do params = [ appid: client.appid, secret: client.secret, js_code: js_code, grant_type: :a...
21.05
65
0.68171
932905ab849e47f7e9005334828d9c6d757e7960
889
ex
Elixir
apps/artemis/lib/artemis/contexts/customer/create_customer.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis/lib/artemis/contexts/customer/create_customer.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/lib/artemis/contexts/customer/create_customer.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule Artemis.CreateCustomer do use Artemis.Context alias Artemis.Customer alias Artemis.Helpers.Markdown alias Artemis.Repo def call!(params, user) do case call(params, user) do {:error, _} -> raise(Artemis.Context.Error, "Error creating customer") {:ok, result} -> result end end ...
20.674419
76
0.645669
93291315892d70e8c52f4c58d7d7f84226c8081c
257
ex
Elixir
v02/ch14/foo.edit3.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch14/foo.edit3.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch14/foo.edit3.ex
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
defmodule Foo do def hello(users) when is_list(users) do for user <- users do Foo.hello(user) end end def hello(user) when is_map(user) do IO.puts "Hello, #{user.name}!" end def hello(_) do IO.puts "Who are you?" end end
16.0625
41
0.618677
932913dde2bcb2e02ae01d51e5651ebf1c03bda1
2,654
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/zone_list.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/zone_list.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/zone_list.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...
42.806452
393
0.703843
93291973f57c8226d6eb1f17e44d46d46a75d0e5
707
exs
Elixir
test/authable/grant_types/client_credentials_test.exs
liberumed/authable
6db9951aa07000b358f16ffe413a13aa9aa89192
[ "Unlicense" ]
null
null
null
test/authable/grant_types/client_credentials_test.exs
liberumed/authable
6db9951aa07000b358f16ffe413a13aa9aa89192
[ "Unlicense" ]
null
null
null
test/authable/grant_types/client_credentials_test.exs
liberumed/authable
6db9951aa07000b358f16ffe413a13aa9aa89192
[ "Unlicense" ]
1
2021-01-12T00:55:56.000Z
2021-01-12T00:55:56.000Z
defmodule Authable.GrantType.ClientCredentialsTest do use ExUnit.Case use Authable.Rollbackable use Authable.RepoBase import Authable.Factory alias Authable.GrantType.ClientCredentials, as: ClientCredentialsGrantType setup do client_owner = insert(:user) client = insert(:client, user_id: client_own...
30.73913
76
0.748232
932941e549d6eb2979da20a2f55789fe6e5ca40d
4,348
ex
Elixir
lib/adoptoposs_web/live/explore_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
120
2020-03-30T13:58:40.000Z
2022-03-30T10:17:50.000Z
lib/adoptoposs_web/live/explore_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
34
2020-04-01T23:11:59.000Z
2022-03-13T08:14:37.000Z
lib/adoptoposs_web/live/explore_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
16
2020-04-24T17:14:23.000Z
2022-03-27T22:32:48.000Z
defmodule AdoptopossWeb.ExploreLive do use AdoptopossWeb, :live_view alias Adoptoposs.{Search, Accounts, Tags} alias AdoptopossWeb.ExploreView @per_page 16 @impl true def render(assigns) do Phoenix.View.render(ExploreView, "index.html", assigns) end @impl true def mount_logged_in(_params, %{"u...
27.694268
90
0.646964
9329567bfd2a6ac5f04b32f41c64f6192461d5ad
39,092
ex
Elixir
lib/ecto/adapters/myxql/connection.ex
soundmonster/ecto_sql
83af511732007a5af0b6601e8376f24553a466e1
[ "Apache-2.0" ]
1
2019-11-11T21:48:20.000Z
2019-11-11T21:48:20.000Z
lib/ecto/adapters/myxql/connection.ex
soundmonster/ecto_sql
83af511732007a5af0b6601e8376f24553a466e1
[ "Apache-2.0" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/ecto_sql/lib/ecto/adapters/myxql/connection.ex
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(MyXQL) do defmodule Ecto.Adapters.MyXQL.Connection do @moduledoc false alias Ecto.Adapters.SQL @behaviour Ecto.Adapters.SQL.Connection ## Connection @impl true def child_spec(opts) do MyXQL.child_spec(opts) end ## Query @impl true def prepare_e...
35.996317
135
0.604395
93295bb26f315b4854fa4acc2895131651283563
1,228
ex
Elixir
lib/koans/17_agents.ex
ejk9/elixir-koans
21f898d4666000b44f6d0df727731169f13c6941
[ "MIT" ]
1
2020-02-07T20:39:26.000Z
2020-02-07T20:39:26.000Z
lib/koans/17_agents.ex
ejk9/elixir-koans
21f898d4666000b44f6d0df727731169f13c6941
[ "MIT" ]
null
null
null
lib/koans/17_agents.ex
ejk9/elixir-koans
21f898d4666000b44f6d0df727731169f13c6941
[ "MIT" ]
null
null
null
defmodule Agents do use Koans @intro "Agents" koan "Agents maintain state, so you can ask them about it" do {:ok, pid} = Agent.start_link(fn -> "Hi there" end) assert Agent.get(pid, & &1) == "Hi there" end koan "Agents may also be named so that you don't have to keep the pid around" do Agent.st...
26.695652
82
0.628664
93298393bf718a19aa82744b10ae43cca4f410b0
2,091
ex
Elixir
apps/api/lib/api/v1/controllers/fee_controller.ex
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
4
2020-11-30T17:38:57.000Z
2021-01-23T21:29:41.000Z
apps/api/lib/api/v1/controllers/fee_controller.ex
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
24
2020-11-30T17:32:48.000Z
2021-02-22T06:25:22.000Z
apps/api/lib/api/v1/controllers/fee_controller.ex
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
null
null
null
defmodule API.V1.Controller.FeeController do @moduledoc """ Fetches fees and returns data for the API response. """ alias API.V1.View.FeeView alias Engine.Fee alias ExPlasma.Encoding @type fees_response() :: %{non_neg_integer() => fee_type()} @type fee_type() :: %{ required(:amount) => pos_...
28.256757
97
0.629364
9329b364df403de7173f58a7ed1c27555d87292a
1,754
ex
Elixir
lib/ex_bank_id/cancel/payload.ex
anfly0/exBankID
8e62f4250b533543a6b4b423b0c2fb3ec262dc7b
[ "MIT" ]
15
2020-08-05T11:20:03.000Z
2021-09-22T15:20:41.000Z
lib/ex_bank_id/cancel/payload.ex
anfly0/exBankID
8e62f4250b533543a6b4b423b0c2fb3ec262dc7b
[ "MIT" ]
9
2020-08-10T14:42:27.000Z
2021-06-14T14:45:05.000Z
lib/ex_bank_id/cancel/payload.ex
anfly0/exBankID
8e62f4250b533543a6b4b423b0c2fb3ec262dc7b
[ "MIT" ]
2
2020-08-10T13:42:15.000Z
2020-10-03T04:10:06.000Z
defmodule ExBankID.Cancel.Payload do @moduledoc """ Provides the struct used when requesting to cancel a pending authentication or signing """ defstruct [:orderRef] @doc """ Returns a Cancel Payload given a orderRef, Auth response struct or Sign response struct ## Examples iex> ExBankID.Cancel.Pay...
35.08
117
0.697834
9329ef83d0c9256567b28d53b0d52b97842c743a
2,308
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/forwarding_rule_service_directory_registration.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/forwarding_rule_service_directory_registration.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/forwarding_rule_service_directory_registration.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...
43.54717
322
0.749567
9329fe14e568582e8f7f015aed745dd6643cb17e
784
ex
Elixir
lib/openpayex/openpay/client.ex
Plus17/openpayex
dbff5051254fd3c040f86364cf40793804af9e66
[ "MIT" ]
null
null
null
lib/openpayex/openpay/client.ex
Plus17/openpayex
dbff5051254fd3c040f86364cf40793804af9e66
[ "MIT" ]
1
2019-08-19T03:53:19.000Z
2019-08-19T03:53:19.000Z
lib/openpayex/openpay/client.ex
Plus17/openpayex
dbff5051254fd3c040f86364cf40793804af9e66
[ "MIT" ]
null
null
null
defmodule Openpayex.OpenPay.Client do @moduledoc """ Client for OpenPay API """ use HTTPoison.Base defp _base_url() do if Mix.env() == :test do "http://localhost:8084" else Application.get_env(:openpayex, :uri_base) end end def process_url(endpoint) do "#{_base_url()}#{endpo...
19.121951
63
0.659439
932a0a3a7489a493131b2f3745583b9f4b7736a3
967
exs
Elixir
test/daily_meals/users/create_test.exs
cassiofariasmachado/daily-meals
fa1965fa1190818e8f74382635b5174ab1e19eee
[ "MIT" ]
null
null
null
test/daily_meals/users/create_test.exs
cassiofariasmachado/daily-meals
fa1965fa1190818e8f74382635b5174ab1e19eee
[ "MIT" ]
null
null
null
test/daily_meals/users/create_test.exs
cassiofariasmachado/daily-meals
fa1965fa1190818e8f74382635b5174ab1e19eee
[ "MIT" ]
null
null
null
defmodule DailyMeals.Users.CreateTest do use DailyMeals.DataCase, async: true import DailyMeals.Factory alias DailyMeals.{Error, User} alias DailyMeals.Users.Create describe "call/1" do test "when all params are valid, returns the meal" do params = build(:user_params) response = Create.cal...
25.447368
82
0.577042
932a5b02f78449ae0366e6ba94e5e9c56c2cc77f
2,124
ex
Elixir
lib/gen_fsm_helpers.ex
smpallen99/gen_fsm_helpers
5ff79d70fa19f07c87397363ec618fd05523496e
[ "MIT" ]
null
null
null
lib/gen_fsm_helpers.ex
smpallen99/gen_fsm_helpers
5ff79d70fa19f07c87397363ec618fd05523496e
[ "MIT" ]
null
null
null
lib/gen_fsm_helpers.ex
smpallen99/gen_fsm_helpers
5ff79d70fa19f07c87397363ec618fd05523496e
[ "MIT" ]
null
null
null
defmodule GenFSMHelpers do @moduledoc """ Helper library for GenFSM. Add helper functions to eliminate returning those nasty tuples. * next_state * reply """ @doc """ Return next_state tuple, given a tuple. ## Examples iex> GenFSMHelpers.next_state({:data, :idle}) {:next_state, :idle,...
24.697674
77
0.648776
932a74973f6b1f71736da1104536983da63e0d97
10,428
ex
Elixir
lib/mix/lib/mix.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/mix/lib/mix.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
defmodule Mix do @moduledoc ~S""" Mix is a build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more. ## Mix.Project The foundation of Mix is a project. A project can be defined by using `Mix.Project` in a module, usually placed in a file name...
30.313953
102
0.676544
932a927b6cfee1b6f1900d4cd4fa2d395bbb395b
2,322
exs
Elixir
test/generate/autonomous_du_state_change_complete_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
test/generate/autonomous_du_state_change_complete_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
test/generate/autonomous_du_state_change_complete_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Generator.AutonomousDUStateChangeCompleteTest do use ExUnit.Case, async: true import TestHelpers @sample ~s|<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp="urn:dslforum-org:cwmp-1-4" xmlns...
40.034483
288
0.637382
932adbafd8c7f61a92378ae1860ba507accaf9e8
6,674
ex
Elixir
lib/eex/lib/eex/tokenizer.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
null
null
null
lib/eex/lib/eex/tokenizer.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
null
null
null
lib/eex/lib/eex/tokenizer.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
1
2020-11-25T02:22:55.000Z
2020-11-25T02:22:55.000Z
defmodule EEx.Tokenizer do @moduledoc false @type content :: IO.chardata() @type line :: non_neg_integer @type column :: non_neg_integer @type marker :: '=' | '/' | '|' | '' @type token :: {:text, content} | {:expr | :start_expr | :middle_expr | :end_expr, line, column, marker, content}...
31.333333
101
0.578663
932b0511040b0e09d759aa1739cd2a07ce592ac2
320
ex
Elixir
lib/super_issuer/credential_verifier.ex
WeLightProject/WeLight-Portal
6e701469423e3a62affdc415c4e8c186d603d324
[ "MIT" ]
2
2021-02-12T09:21:56.000Z
2021-02-22T08:52:20.000Z
lib/super_issuer/credential_verifier.ex
WeLightProject/WeLight-Portal
6e701469423e3a62affdc415c4e8c186d603d324
[ "MIT" ]
4
2021-02-22T08:53:43.000Z
2021-06-09T09:24:46.000Z
lib/super_issuer/credential_verifier.ex
WeLightProject/WeLight-Portal
6e701469423e3a62affdc415c4e8c186d603d324
[ "MIT" ]
null
null
null
defmodule SuperIssuer.CredentialVerifier do use Directive, :schema schema "credential_verifier" do field :pubkey field :file end def changeset(credential_verifier, params \\ :invalid) do credential_verifier |> cast(params, [:pubkey, :file]) |> validate_required([:pubkey, :file]) end end
21.333333
59
0.70625
932b15ccad0cae1b27f83b3af256835db3d6d79f
553
exs
Elixir
test/views/error_view_test.exs
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
10
2015-09-23T05:26:35.000Z
2020-10-09T16:59:11.000Z
test/views/error_view_test.exs
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
3
2015-09-23T05:29:42.000Z
2017-12-21T19:38:39.000Z
test/views/error_view_test.exs
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
2
2015-10-03T12:25:28.000Z
2015-10-15T04:45:22.000Z
defmodule Dash.ErrorViewTest do use Dash.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(Dash.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do asser...
25.136364
66
0.667269
932b18d7bdf7742e231ca951c9c6fa6e61adcd8e
776
exs
Elixir
test/migration_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
23
2016-02-16T16:55:05.000Z
2021-07-23T17:06:29.000Z
test/migration_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
1
2017-01-20T20:55:56.000Z
2017-01-20T20:55:56.000Z
test/migration_test.exs
yieldbot/datomic_gen_server
a1df454a9b78034c4ac68820dd625128799fc2c1
[ "Unlicense", "MIT" ]
6
2017-01-17T16:12:23.000Z
2020-09-19T15:30:59.000Z
defmodule MigrationTest do use ExUnit.Case, async: false setup_all do # Need long timeouts to let the JVM start. DatomicGenServer.start_link( "datomic:mem://migration-test", true, [{:timeout, 20_000}, {:default_message_timeout, 20_000}, {:name, MigrationTestServer}] ) :ok en...
35.272727
115
0.66366
932b5f87aa6922a564991544a35a64cfb09453d5
1,605
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_vertex.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_vertex.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_vertex.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...
32.1
120
0.723988
932b63c00b44fefcabb688fb81feb240b05cca48
924
exs
Elixir
test/liblink/data/cluster/exports_test.exs
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
3
2018-10-26T12:55:15.000Z
2019-05-03T22:41:34.000Z
test/liblink/data/cluster/exports_test.exs
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
4
2018-08-26T14:43:57.000Z
2020-09-23T21:14:56.000Z
test/liblink/data/cluster/exports_test.exs
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 (c) Xerpa # # 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, so...
33
74
0.74026
932b686ba0b90f1002e5a76da6a25b3ccd950f94
2,108
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/big_query_data_source_spec.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/model/big_query_data_source_spec.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/model/big_query_data_source_spec.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.773585
206
0.736243
932b8506ef769079083e964d8c460a57b3252987
687
exs
Elixir
12/part2/mix.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
3
2016-01-18T01:14:45.000Z
2017-05-11T09:14:49.000Z
12/part2/mix.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
null
null
null
12/part2/mix.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
null
null
null
defmodule Part2.Mixfile do use Mix.Project def project do [app: :part2, version: "0.0.1", elixir: "~> 1.2-rc", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.app" for more ...
20.818182
77
0.601164