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
38db738d629db8592798ee0403bd309cbe4d4695
2,551
ex
Elixir
lib/helpdesk_assistant/forms/open_incident_form.ex
r26D/elixir-rasa-action-server
df41d36189f4ed737752343457dfe06d37a8e758
[ "MIT" ]
1
2021-04-19T18:05:10.000Z
2021-04-19T18:05:10.000Z
lib/helpdesk_assistant/forms/open_incident_form.ex
r26D/elixir-rasa-action-server
df41d36189f4ed737752343457dfe06d37a8e758
[ "MIT" ]
null
null
null
lib/helpdesk_assistant/forms/open_incident_form.ex
r26D/elixir-rasa-action-server
df41d36189f4ed737752343457dfe06d37a8e758
[ "MIT" ]
null
null
null
defmodule HelpdeskAssistant.Forms.OpenIncidentForm do alias RasaSDK.Actions.{ Context, Events, FormAction } use FormAction alias RasaSDK.Model.{Request, Tracker} def name(), do: "open_incident_form" def required_slots(_action), do: ["email", "priority", "problem_description", "incident_ti...
28.032967
104
0.597021
38db83f0199833c6f02d6925d1fe7b0c43b36095
601
ex
Elixir
lib/test/hook_helper.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
143
2020-12-01T06:53:36.000Z
2022-03-24T02:33:01.000Z
lib/test/hook_helper.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
2
2020-11-30T05:30:42.000Z
2020-12-17T06:33:17.000Z
lib/test/hook_helper.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
12
2020-12-07T01:22:17.000Z
2020-12-27T12:49:39.000Z
defmodule QuenyaTest.HookHelper do @moduledoc """ Helper functions for test hook """ def ensure_loaded(mod) do Code.ensure_loaded(mod) end def run_precondition(mod) do if hook_exists?(mod, :precondition) do apply(mod, :precondition, []) end end def get_mocks(mod) do case hook_ex...
18.212121
42
0.628952
38dbc5d346ecb290906fcb4f1b1c551a7329de61
6,206
exs
Elixir
priv/repo/seeds.exs
mgwidmann/options_tracker
5520f88a9a5873842a63a23d4bcc5da82a51feba
[ "MIT" ]
12
2020-06-25T17:25:15.000Z
2021-09-30T20:13:33.000Z
priv/repo/seeds.exs
mgwidmann/options_tracker
5520f88a9a5873842a63a23d4bcc5da82a51feba
[ "MIT" ]
5
2020-08-05T03:12:31.000Z
2021-07-15T04:59:03.000Z
priv/repo/seeds.exs
mgwidmann/options_tracker
5520f88a9a5873842a63a23d4bcc5da82a51feba
[ "MIT" ]
2
2021-07-03T17:20:15.000Z
2021-09-01T15:38:58.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # OptionsTracker.Repo.insert!(%OptionsTracker.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on...
21.180887
70
0.575894
38dbcef41783c00e693f204ced52d95944e49504
642
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/address_space.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.Network/lib/microsoft/azure/management/network/model/address_space.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/address_space.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.Network.Model.AddressSpace do @moduledoc """ AddressSpace contains an array of IP address ranges that can be used b...
24.692308
105
0.732087
38dbd75a22a1d9920b6490b092c13fa22ecdc904
2,914
ex
Elixir
lib/app_env.ex
nate/app_env
a556125a6e3c9661dea0a041e15910137fbf8276
[ "MIT" ]
null
null
null
lib/app_env.ex
nate/app_env
a556125a6e3c9661dea0a041e15910137fbf8276
[ "MIT" ]
null
null
null
lib/app_env.ex
nate/app_env
a556125a6e3c9661dea0a041e15910137fbf8276
[ "MIT" ]
null
null
null
defmodule AppEnv do @moduledoc """ Copy environment variables to Application config. Intended to be used at runtime to override config values using environment variables. """ @doc """ Copies the value of the environment variable `env_var_name` to config `config_key` in in application `app_name`. It passes ...
39.378378
137
0.682224
38dc5b309ab90735ffb48a510f94a5fd2408cb1f
150
exs
Elixir
test/chess_elixir_test.exs
Robolia/chess_elixir
e738ec8cd6ebbd1835d35546c95954346833532b
[ "MIT" ]
null
null
null
test/chess_elixir_test.exs
Robolia/chess_elixir
e738ec8cd6ebbd1835d35546c95954346833532b
[ "MIT" ]
null
null
null
test/chess_elixir_test.exs
Robolia/chess_elixir
e738ec8cd6ebbd1835d35546c95954346833532b
[ "MIT" ]
null
null
null
defmodule ChessElixirTest do use ExUnit.Case doctest ChessElixir test "greets the world" do assert ChessElixir.hello() == :world end end
16.666667
40
0.733333
38dc65d49231673315714a5fb86cb0ea990e3907
420
ex
Elixir
lib/900/p926.ex
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
lib/900/p926.ex
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
lib/900/p926.ex
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
defmodule P926 do @moduledoc """ ## Examples iex> P926.solve(365, 7, 2) 104.28571428 iex> P926.solve(10, 20, 20) 10.00000000 iex> P926.solve(1000, 7, 0) 0.0000000 """ def main do [a, b, c] = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) ...
18.26087
102
0.55
38dc76fa456d973c90d50df302e37fd9bd374983
284
exs
Elixir
apps/core/priv/repo/migrations/20180326152850_add_declaration_request_data_index.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/priv/repo/migrations/20180326152850_add_declaration_request_data_index.exs
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/priv/repo/migrations/20180326152850_add_declaration_request_data_index.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.Repo.Migrations.AddDeclarationRequestDataIndex do @moduledoc false use Ecto.Migration def change do execute(""" CREATE INDEX "data_legal_entity_id_index" ON public.declaration_requests (cast(data->'legal_entity'->>'id' as text)); """) end end
21.846154
79
0.725352
38dc7724a77b1e02037272c21c42088488d9ce95
5,714
ex
Elixir
lib/chat_api_web/controllers/google_controller.ex
rgstephens/papercups
60128d6ae9b5425e9b250f7764518838b498100e
[ "MIT" ]
1
2021-08-02T07:59:41.000Z
2021-08-02T07:59:41.000Z
lib/chat_api_web/controllers/google_controller.ex
rgstephens/papercups
60128d6ae9b5425e9b250f7764518838b498100e
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/google_controller.ex
rgstephens/papercups
60128d6ae9b5425e9b250f7764518838b498100e
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.GoogleController do use ChatApiWeb, :controller require Logger alias ChatApi.Google alias ChatApi.Google.GoogleAuthorization @spec callback(Plug.Conn.t(), map()) :: Plug.Conn.t() @doc """ This action is reached via `/api/google/oauth` is the the callback URL that Google's OAuth2 ...
32.651429
98
0.607105
38dc882162f85e420a305c853d012225e1c953f6
9,611
exs
Elixir
server/bitcoinex/test/base58_test.exs
runcitadel/bitfeed
2169704007610b02ab9a94b03bfd1c2fa797d80f
[ "MIT" ]
27
2022-01-01T14:58:22.000Z
2022-03-22T06:11:18.000Z
server/bitcoinex/test/base58_test.exs
runcitadel/bitfeed
2169704007610b02ab9a94b03bfd1c2fa797d80f
[ "MIT" ]
22
2022-01-01T04:26:10.000Z
2022-03-22T00:02:31.000Z
server/bitcoinex/test/base58_test.exs
runcitadel/bitfeed
2169704007610b02ab9a94b03bfd1c2fa797d80f
[ "MIT" ]
9
2022-01-03T07:34:36.000Z
2022-03-14T23:19:56.000Z
defmodule Bitcoinex.Base58Test do use ExUnit.Case use ExUnitProperties doctest Bitcoinex.Base58 alias Bitcoinex.Base58 # From @base58_encode_decode [ ["", ""], ["61", "2g"], ["626262", "a3gV"], ["636363", "aPEr"], ["73696d706c792061206c6f6e6720737472696e67", "2cFupjhnEsSn59qHXstmK2ffpL...
44.290323
521
0.785558
38dcd3dcbaca92e2ebebc858de5026fbd2d81d63
4,841
exs
Elixir
apps/omg_db/test/omg_db/rocks_db_test.exs
omgnetwork/omg-childchain-v1
1e2313029ece2282c22ce411edc078a17e6bba09
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg_db/test/omg_db/rocks_db_test.exs
omgnetwork/omg-childchain-v1
1e2313029ece2282c22ce411edc078a17e6bba09
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg_db/test/omg_db/rocks_db_test.exs
omgnetwork/omg-childchain-v1
1e2313029ece2282c22ce411edc078a17e6bba09
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.273333
111
0.636439
38dcd858cf8795f6f4ce8d52471f90dc674a27af
1,132
ex
Elixir
lib/playground/northwind/model/product.ex
evadne/ets-playground
de7f2e4d512be4de6510c8978c1f0b25d7720df2
[ "MIT" ]
27
2019-04-10T15:25:21.000Z
2021-11-22T14:28:56.000Z
lib/playground/northwind/model/product.ex
evadne/ets-playground
de7f2e4d512be4de6510c8978c1f0b25d7720df2
[ "MIT" ]
null
null
null
lib/playground/northwind/model/product.ex
evadne/ets-playground
de7f2e4d512be4de6510c8978c1f0b25d7720df2
[ "MIT" ]
2
2019-05-07T21:45:14.000Z
2020-07-15T11:55:17.000Z
defmodule Playground.Northwind.Model.Product do use Playground.Northwind.Model @primary_key {:product_id, :id, autogenerate: false} schema "products" do field :category_id, :integer field :discontinued, :boolean field :name, :string # field :product_id, :integer field :quantity_per_unit, :str...
26.952381
54
0.693463
38dcddb30344359799e1b22111845191e0191d96
3,513
ex
Elixir
lib/oban/config.ex
luizpvas/oban
6e41b15ed8fda628f991ad226f3855fa3bec5b33
[ "Apache-2.0" ]
null
null
null
lib/oban/config.ex
luizpvas/oban
6e41b15ed8fda628f991ad226f3855fa3bec5b33
[ "Apache-2.0" ]
null
null
null
lib/oban/config.ex
luizpvas/oban
6e41b15ed8fda628f991ad226f3855fa3bec5b33
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Config do @moduledoc false use Agent @type prune :: :disabled | {:maxlen, pos_integer()} | {:maxage, pos_integer()} @type t :: %__MODULE__{ name: module(), node: binary(), poll_interval: pos_integer(), prune: prune(), prune_interval: pos_intege...
28.104
91
0.61856
38dcf7f8ebb1a277a59665c87c76e764fb1c0d7f
247
ex
Elixir
lib/seent.ex
seent-app/seent
6071a0f90f1cb5345faa0c9e476d3c64310a7be9
[ "0BSD" ]
null
null
null
lib/seent.ex
seent-app/seent
6071a0f90f1cb5345faa0c9e476d3c64310a7be9
[ "0BSD" ]
1
2020-07-04T17:19:38.000Z
2020-07-04T17:19:38.000Z
lib/seent.ex
seent-app/seent
6071a0f90f1cb5345faa0c9e476d3c64310a7be9
[ "0BSD" ]
null
null
null
defmodule Seent do @moduledoc """ Seent keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.7
66
0.748988
38dd1b0c5fa4cac0713a289448c378fd568cc703
171
exs
Elixir
test/codyssey2021_elixir_test.exs
syntacticsagar/codyssey_2021_elixir
71c515dfe3d441facf075bae9b785832976d1cb8
[ "MIT" ]
null
null
null
test/codyssey2021_elixir_test.exs
syntacticsagar/codyssey_2021_elixir
71c515dfe3d441facf075bae9b785832976d1cb8
[ "MIT" ]
null
null
null
test/codyssey2021_elixir_test.exs
syntacticsagar/codyssey_2021_elixir
71c515dfe3d441facf075bae9b785832976d1cb8
[ "MIT" ]
null
null
null
defmodule Codyssey2021ElixirTest do use ExUnit.Case doctest Codyssey2021Elixir test "greets the world" do assert Codyssey2021Elixir.hello() == :world end end
19
47
0.766082
38dd31bac56f9762c5bb66e59fb967a5e84eb094
2,016
exs
Elixir
fogex/config/prod.exs
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
null
null
null
fogex/config/prod.exs
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
null
null
null
fogex/config/prod.exs
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
null
null
null
import Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # w...
33.6
73
0.707837
38dd4ba4e82ecc23a27d745968fa9dbebdca7d04
1,143
ex
Elixir
server/lib/workrec/models/aggregation_meta.ex
iii-ishida/workrec
d9937282f1665aa65cf6a25d56a583831017239e
[ "MIT" ]
2
2019-02-25T01:43:21.000Z
2019-07-22T03:57:14.000Z
server/lib/workrec/models/aggregation_meta.ex
iii-ishida/workrec
d9937282f1665aa65cf6a25d56a583831017239e
[ "MIT" ]
2
2022-02-14T03:11:33.000Z
2022-02-27T12:05:43.000Z
server/lib/workrec/models/aggregation_meta.ex
iii-ishida/workrec
d9937282f1665aa65cf6a25d56a583831017239e
[ "MIT" ]
null
null
null
defmodule Workrec.Model.AggregationMeta do @moduledoc false @behaviour Workrec.Repository.CloudDatastore.EntityModel defstruct [:id, :aggregation_name, :aggregation_id, :timestamp] def new(aggregation_name, id, timestamp \\ nil) do %__MODULE__{ id: "#{aggregation_name}-#{id}", aggregation_nam...
26.581395
95
0.706912
38dd522bc55f4b6c5936368706cbfc68f3514afd
1,243
ex
Elixir
lib/hl7/2.3.1/segments/pid.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/segments/pid.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3.1/segments/pid.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_3_1.Segments.PID do @moduledoc false require Logger alias HL7.V2_3_1.{DataTypes} use HL7.Segment, fields: [ segment: nil, set_id_pid: nil, patient_id: DataTypes.Cx, patient_identifier_list: DataTypes.Cx, alternate_patient_id_pid: DataTypes.Cx, patient_n...
29.595238
52
0.696702
38dd5f2a69f3dc005822d526321ec50deef926ca
1,506
ex
Elixir
lib/exceptions.ex
ImpossibilityLabs/artsy
f0e1fb9988bac1dc06d726b5d698a00036bcc40f
[ "MIT" ]
null
null
null
lib/exceptions.ex
ImpossibilityLabs/artsy
f0e1fb9988bac1dc06d726b5d698a00036bcc40f
[ "MIT" ]
null
null
null
lib/exceptions.ex
ImpossibilityLabs/artsy
f0e1fb9988bac1dc06d726b5d698a00036bcc40f
[ "MIT" ]
null
null
null
defmodule Artsy.ConfigError do @moduledoc """ Raised in case there is issues with the config. """ defexception [:message] end defmodule Artsy.TokenError do @moduledoc """ Raised then we are unable to get JWT to access Artsy API. """ defexception [:message] end defmodule Artsy.ApiError do @moduledoc ...
20.916667
65
0.731076
38dd6186d0dc79e0d99a5d29bdc112a2191d1a71
2,112
ex
Elixir
lib/google_api/big_query/v2/model/table_data_list.ex
albert-io/elixir-google-big-query
26537253b83e7bad513ea4b5143b156c914b1475
[ "Apache-2.0" ]
null
null
null
lib/google_api/big_query/v2/model/table_data_list.ex
albert-io/elixir-google-big-query
26537253b83e7bad513ea4b5143b156c914b1475
[ "Apache-2.0" ]
null
null
null
lib/google_api/big_query/v2/model/table_data_list.ex
albert-io/elixir-google-big-query
26537253b83e7bad513ea4b5143b156c914b1475
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # 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...
33.52381
211
0.718277
38dd69c3a3883e374f5fd862327de87fad491870
965
exs
Elixir
test/test_helper.exs
onyxrev/aeacus
9b638d7c39f6ad446eb470d8b0208261fd5da42d
[ "BSD-3-Clause" ]
null
null
null
test/test_helper.exs
onyxrev/aeacus
9b638d7c39f6ad446eb470d8b0208261fd5da42d
[ "BSD-3-Clause" ]
null
null
null
test/test_helper.exs
onyxrev/aeacus
9b638d7c39f6ad446eb470d8b0208261fd5da42d
[ "BSD-3-Clause" ]
null
null
null
ExUnit.start() # Mix.Task.run "ecto.drop", ["--quiet", "-r", "Aeacus.Test.Repo"] Mix.Task.run "ecto.create", ["--quiet", "-r", "Aeacus.Test.Repo"] Mix.Task.run "ecto.migrate", ["--quiet", "-r", "Aeacus.Test.Repo"] Aeacus.Test.Repo.start_link defmodule Aeacus.Test.Seed do @moduledoc """ Data is seeded here, and...
34.464286
82
0.703627
38dd6a33b5e9b04a8575437f77dffa077e3e9a83
2,610
exs
Elixir
test/sanbase/external_services/coinmarketcap/cryptocurrency_info_test.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
test/sanbase/external_services/coinmarketcap/cryptocurrency_info_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
test/sanbase/external_services/coinmarketcap/cryptocurrency_info_test.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.ExternalServices.Coinmarketcap.CryptocurrencyInfoTest do use Sanbase.DataCase require Sanbase.Utils.Config, as: Config import Sanbase.Factory import Tesla.Mock alias Sanbase.ExternalServices.Coinmarketcap.CryptocurrencyInfo @moduletag capture_log: true test "parses json and returns ...
33.037975
98
0.628736
38dd7d1753a95b292be273f060c52219689c250c
1,109
exs
Elixir
mix.exs
fhunleth/elixir-fwup
6d579a881d885d14bfcb50b29854275fbc61442d
[ "Apache-2.0" ]
null
null
null
mix.exs
fhunleth/elixir-fwup
6d579a881d885d14bfcb50b29854275fbc61442d
[ "Apache-2.0" ]
null
null
null
mix.exs
fhunleth/elixir-fwup
6d579a881d885d14bfcb50b29854275fbc61442d
[ "Apache-2.0" ]
null
null
null
defmodule Fwup.MixProject do use Mix.Project def project do [ app: :fwup, version: "0.4.0", elixir: "~> 1.5", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), package: package(), description: description(), deps: deps() ] end ...
21.745098
65
0.572588
38ddaee7159d2b77c685cd999c3a6266faa76136
1,399
ex
Elixir
clients/redis/lib/google_api/redis/v1beta1/model/google_cloud_redis_v1beta1_zone_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/redis/lib/google_api/redis/v1beta1/model/google_cloud_redis_v1beta1_zone_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/redis/lib/google_api/redis/v1beta1/model/google_cloud_redis_v1beta1_zone_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.534884
97
0.776984
38ddc1de221b5e22800561053c039e14bc9bc4bb
7,382
exs
Elixir
test/plug_devise_session/rememberable_test.exs
surgeventures/plug_devise_session
19779f68ce5367d8ac7a92d30d5ed4ce53621cd1
[ "MIT" ]
4
2018-01-16T12:25:52.000Z
2020-01-19T03:07:52.000Z
test/plug_devise_session/rememberable_test.exs
surgeventures/plug_devise_session
19779f68ce5367d8ac7a92d30d5ed4ce53621cd1
[ "MIT" ]
null
null
null
test/plug_devise_session/rememberable_test.exs
surgeventures/plug_devise_session
19779f68ce5367d8ac7a92d30d5ed4ce53621cd1
[ "MIT" ]
2
2018-09-19T00:11:14.000Z
2019-09-10T07:00:06.000Z
defmodule PlugDeviseSession.RememberableTest do @moduledoc false use ExUnit.Case, async: true use Plug.Test alias PlugDeviseSession.Rememberable @secret_key_base "this is a super secret key" @user_id 5 @user_auth_key "beginning of encrypted password" @user_timestamp %DateTime{ year: 2018, mont...
33.554545
118
0.665267
38ddf6cdf4fdba19b8072677205b40039d32e621
2,419
exs
Elixir
test/phoenix/transports/long_poll_serializer_test.exs
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
test/phoenix/transports/long_poll_serializer_test.exs
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
test/phoenix/transports/long_poll_serializer_test.exs
coderberry/phoenix
9abaa84ea675d3db97cfba77745e76300acb6fd2
[ "MIT" ]
null
null
null
defmodule Phoenix.Tranports.LongPollSerializerTest do use ExUnit.Case, async: true alias Phoenix.Transports.{V2, LongPollSerializer} alias Phoenix.Socket.{Message, Broadcast, Reply} @msg_json [123, [[34, ["topic"], 34], 58, [34, ["t"], 34], 44, [34, ["ref"], 34], 58, "null", 44, [34, ["payload"], 34], 58, [34...
45.641509
195
0.613477
38de01d14bff98e4092b39aaf5f7b135dd88c9e4
7,702
ex
Elixir
lib/signs/realtime.ex
mbta/realtime_signs
3fd8cbc26ce2b0820e608e60fe12135dab5def69
[ "MIT" ]
1
2022-01-24T12:39:05.000Z
2022-01-24T12:39:05.000Z
lib/signs/realtime.ex
mbta/realtime_signs
3fd8cbc26ce2b0820e608e60fe12135dab5def69
[ "MIT" ]
40
2021-05-05T10:14:25.000Z
2022-03-31T18:34:15.000Z
lib/signs/realtime.ex
mbta/realtime_signs
3fd8cbc26ce2b0820e608e60fe12135dab5def69
[ "MIT" ]
1
2022-03-20T21:08:12.000Z
2022-03-20T21:08:12.000Z
defmodule Signs.Realtime do @moduledoc """ A two-line sign that displays realtime countdown information from one or more sources. See Signs.Utilities.SourceConfig for information on the JSON format. """ use GenServer require Logger alias Signs.Utilities @announced_history_length 5 @enforce_keys [ ...
29.737452
97
0.656323
38de0637175c69db644bebd5feb36a433cd45a13
147
exs
Elixir
test/admin_stuff_test.exs
anzaika/admin_stuff
bdfb6645d85a022339dcef519ec42f305cb305ef
[ "MIT" ]
null
null
null
test/admin_stuff_test.exs
anzaika/admin_stuff
bdfb6645d85a022339dcef519ec42f305cb305ef
[ "MIT" ]
null
null
null
test/admin_stuff_test.exs
anzaika/admin_stuff
bdfb6645d85a022339dcef519ec42f305cb305ef
[ "MIT" ]
null
null
null
defmodule AdminStuffTest do use ExUnit.Case doctest AdminStuff test "greets the world" do assert AdminStuff.hello() == :world end end
16.333333
39
0.727891
38de155c99dd6281f2273e8703ee53453e4bff33
629
ex
Elixir
lib/clean_mixer/arch_map/dependency.ex
kianmeng/clean_mixer
c2ce915156472a86828b53538efb8979bebcd78d
[ "Apache-2.0" ]
45
2020-07-14T11:01:45.000Z
2022-03-10T18:40:04.000Z
lib/clean_mixer/arch_map/dependency.ex
kianmeng/clean_mixer
c2ce915156472a86828b53538efb8979bebcd78d
[ "Apache-2.0" ]
3
2021-07-03T15:37:02.000Z
2021-07-13T08:59:08.000Z
lib/clean_mixer/arch_map/dependency.ex
kianmeng/clean_mixer
c2ce915156472a86828b53538efb8979bebcd78d
[ "Apache-2.0" ]
4
2020-02-01T01:20:53.000Z
2020-06-18T11:58:55.000Z
defmodule CleanMixer.ArchMap.Dependency do alias CleanMixer.ArchMap.Component alias CleanMixer.CodeMap.FileDependency defstruct [:source, :target, :files] @type t :: %__MODULE__{ source: Component.t(), target: Component.t(), files: list(FileDependency.t()) } @spec new(...
23.296296
72
0.629571
38de19a44b6bc0450265dadd4ee55fd867a54567
2,288
ex
Elixir
clients/content/lib/google_api/content/v2/model/datafeed_format.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/datafeed_format.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/datafeed_format.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.15942
228
0.683566
38de2c53a71a41c3afa72b35bf0aec48b63b68fa
4,578
ex
Elixir
lib/exw3/abi.ex
phereford/exw3
71ccc9ee61b8e2ad69fb07d0561e4760256c281d
[ "Apache-2.0" ]
null
null
null
lib/exw3/abi.ex
phereford/exw3
71ccc9ee61b8e2ad69fb07d0561e4760256c281d
[ "Apache-2.0" ]
null
null
null
lib/exw3/abi.ex
phereford/exw3
71ccc9ee61b8e2ad69fb07d0561e4760256c281d
[ "Apache-2.0" ]
null
null
null
defmodule ExW3.Abi do @doc "Decodes event based on given data and provided signature" @spec decode_event(binary(), binary()) :: any() def decode_event(data, signature) do formatted_data = data |> String.slice(2..-1) |> Base.decode16!(case: :lower) fs = ABI.FunctionSelector.decode(signat...
30.724832
96
0.650066
38de2ecff0732bb13dbf110a025d9697d3f0fe31
6,680
ex
Elixir
lib/ggity/geom/text.ex
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
lib/ggity/geom/text.ex
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
lib/ggity/geom/text.ex
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
defmodule GGity.Geom.Text do @moduledoc false alias GGity.{Draw, Geom, Plot, Scale} @hjust_anchor_map %{left: "start", center: "middle", right: "end"} @vjust_anchor_map %{top: "baseline", middle: "middle", bottom: "hanging"} @type t() :: %__MODULE__{} @type plot() :: %Plot{} @type record() :: map() @...
33.069307
100
0.6
38de3596247f80a53a9d13cd48e523c170320657
389
ex
Elixir
test/support/datadog_test_api_server.ex
TheRealReal/spandex_datadog
c3b98af7328fe966a1640b3444dfcf4dcbf9ee7d
[ "MIT" ]
null
null
null
test/support/datadog_test_api_server.ex
TheRealReal/spandex_datadog
c3b98af7328fe966a1640b3444dfcf4dcbf9ee7d
[ "MIT" ]
null
null
null
test/support/datadog_test_api_server.ex
TheRealReal/spandex_datadog
c3b98af7328fe966a1640b3444dfcf4dcbf9ee7d
[ "MIT" ]
1
2022-01-21T21:33:09.000Z
2022-01-21T21:33:09.000Z
defmodule Spandex.Test.DatadogTestApiServer do @moduledoc """ Simply sends the data that would have been sent to datadog to self() as a message so that the test can assert on payloads that would have been sent to datadog """ def send_trace(trace, _opts \\ []) do formatted = SpandexDatadog.ApiServer.format...
35.363636
83
0.735219
38de5bf953aeb2db187a9e00f8408eec1b884013
169
ex
Elixir
elixir/problem0001.ex
jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value
269cdb921c30dbced780e031043fcdb758eb0ada
[ "MIT" ]
null
null
null
elixir/problem0001.ex
jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value
269cdb921c30dbced780e031043fcdb758eb0ada
[ "MIT" ]
null
null
null
elixir/problem0001.ex
jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value
269cdb921c30dbced780e031043fcdb758eb0ada
[ "MIT" ]
null
null
null
defmodule M do def multiples_of_3_or_5(n) do rem(n, 3) == 0 || rem(n, 5) == 0 end end IO.puts 1..999 |> Enum.filter(&(M.multiples_of_3_or_5(&1))) |> Enum.sum
18.777778
71
0.609467
38de787297e5584776656db8350d5aee4c417e5b
54
exs
Elixir
test/ex_unit_release_test.exs
mobileoverlord/ex_unit_release
25f3e16eac30e1fb95f8eb97ddf79d71402462f0
[ "Apache-2.0" ]
2
2019-07-12T21:09:49.000Z
2019-10-30T12:39:46.000Z
test/ex_unit_release_test.exs
mobileoverlord/ex_unit_release
25f3e16eac30e1fb95f8eb97ddf79d71402462f0
[ "Apache-2.0" ]
null
null
null
test/ex_unit_release_test.exs
mobileoverlord/ex_unit_release
25f3e16eac30e1fb95f8eb97ddf79d71402462f0
[ "Apache-2.0" ]
null
null
null
defmodule ExUnitReleaseTest do use ExUnit.Case end
10.8
30
0.814815
38dec0f2bfdb83d6a8120f39c2de444b871d59b2
4,558
ex
Elixir
lib/Task.ex
membraneframework/membrane_performance_test
7a4abf74be04a8b37d3899f416a09b29564817d6
[ "Apache-2.0" ]
null
null
null
lib/Task.ex
membraneframework/membrane_performance_test
7a4abf74be04a8b37d3899f416a09b29564817d6
[ "Apache-2.0" ]
null
null
null
lib/Task.ex
membraneframework/membrane_performance_test
7a4abf74be04a8b37d3899f416a09b29564817d6
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.PerformanceTest do use Mix.Task @syntax_error_message "Wrong syntax! Try: mix performance_test --mode <push|pull|autodemand> --numberOfElements <number of elements> --howManyTries <how many tries> OPTIONAL: [--tick <single try length [ms], default: 10_000> --initialGeneratorFrequency <freque...
37.360656
199
0.693506
38dec68585806877241e36575cde7659bfdb68d4
748
exs
Elixir
apps/day16/test/day16_test.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
apps/day16/test/day16_test.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
apps/day16/test/day16_test.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
defmodule Day16Test do use ExUnit.Case @moduledoc "Input for day 16" test "Test input part 1" do assert Day16.part1("abcde", ["s1", "x3/4", "pe/b"]) == "baedc" end @str "abcdefghijklmnop" test "Solution for part 1" do instructions = "./input" |> Utils.File.read_first_line_fr...
23.375
44
0.628342
38dee4e499a7065f708d5c651dee43164a7a8bd7
638
ex
Elixir
elixir/pangram/lib/pangram.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
6
2019-06-19T15:43:20.000Z
2020-07-17T19:46:09.000Z
elixir/pangram/lib/pangram.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
10
2021-05-10T21:02:55.000Z
2021-05-11T20:29:41.000Z
elixir/pangram/lib/pangram.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
1
2019-06-25T10:42:14.000Z
2019-06-25T10:42:14.000Z
defmodule Pangram do @non_ascii_letters ~r([^a-z]) @number_of_letters_in_alphabet 26 @doc """ Determines if a word or sentence is a pangram. A pangram is a sentence using every letter of the alphabet at least once. Returns a boolean. ## Examples iex> Pangram.pangram?("the quick brown fox jumps...
22
75
0.65674
38defa657461292998bc293b81f9a84fe55c4362
1,101
ex
Elixir
apps/password_diceware_api_web/lib/password_diceware_api_web/channels/user_socket.ex
sfat/phoenix-passphrase-diceware-generator
6bf723318c474c6ebd5875e0999717c0da294504
[ "MIT" ]
null
null
null
apps/password_diceware_api_web/lib/password_diceware_api_web/channels/user_socket.ex
sfat/phoenix-passphrase-diceware-generator
6bf723318c474c6ebd5875e0999717c0da294504
[ "MIT" ]
3
2021-03-10T05:05:50.000Z
2022-02-14T10:05:59.000Z
apps/password_diceware_api_web/lib/password_diceware_api_web/channels/user_socket.ex
sfat/phoenix-passphrase-diceware-generator
6bf723318c474c6ebd5875e0999717c0da294504
[ "MIT" ]
null
null
null
defmodule PasswordDicewareApiWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", PasswordDicewareApiWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that wi...
32.382353
94
0.70663
38df075054eee4bfa1090be0a65810f759ff3746
918
exs
Elixir
apps/bank_web/config/config.exs
devnacho/acme_bank
cee19a490d2b3c04465273b7a6212d7e6a81f736
[ "MIT" ]
776
2016-07-16T14:24:37.000Z
2022-03-07T17:05:11.000Z
apps/bank_web/config/config.exs
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
19
2016-09-03T15:06:57.000Z
2021-12-10T10:04:05.000Z
apps/bank_web/config/config.exs
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
130
2016-09-03T19:44:27.000Z
2022-01-16T12:27:54.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :bank_web, ecto_repos: [] # Configures th...
34
86
0.762527
38df3fb097f89cbeaeee6087e71ed4c0386e6df5
6,026
exs
Elixir
test/verk_test.exs
beerlington/verk
89841f3b2620301568a41bb97ef5df04513c5857
[ "MIT" ]
null
null
null
test/verk_test.exs
beerlington/verk
89841f3b2620301568a41bb97ef5df04513c5857
[ "MIT" ]
null
null
null
test/verk_test.exs
beerlington/verk
89841f3b2620301568a41bb97ef5df04513c5857
[ "MIT" ]
null
null
null
defmodule VerkTest do use ExUnit.Case import :meck import Verk alias Verk.{Time, Manager} setup do on_exit(fn -> unload() end) :ok end describe "add_queue/2" do test "returns the child spec" do queue = :test_queue expect(Manager, :add, [:test_queue, 30], {:ok, :child}) as...
28.158879
98
0.592765
38df558011877e51952e9c9eaba582f39117d66f
9,415
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/job_statistics2.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/job_statistics2.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/job_statistics2.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
79.117647
1,247
0.727456
38df5f3d59d82ebb717dff2f512b609901c43659
73
ex
Elixir
settings.py.ex
ibarsi/drizzle
827e0ede0d685909c08e1111154b10623bdd9f50
[ "MIT" ]
2
2017-04-03T14:58:14.000Z
2018-06-29T14:42:12.000Z
settings.py.ex
ibarsi/developer-problems
56c7e23ba8eb3097b514ac06523f1eadd2ed99a0
[ "MIT" ]
4
2017-04-03T13:22:38.000Z
2017-04-04T00:36:21.000Z
settings.py.ex
ibarsi/drizzle
827e0ede0d685909c08e1111154b10623bdd9f50
[ "MIT" ]
null
null
null
REMOTE_HOST = 'host-name' REMOTE_CODE_DIR = '~/path/to/remote/code/dir`'
24.333333
46
0.726027
38df7dd2f856ec0b4519716615ffb44ba1b3a20c
73
ex
Elixir
lib/sheduler.ex
ninedraft/ghostwheel
515d2aa00edc7295cc84f714e086ee4434d3b64e
[ "MIT" ]
null
null
null
lib/sheduler.ex
ninedraft/ghostwheel
515d2aa00edc7295cc84f714e086ee4434d3b64e
[ "MIT" ]
null
null
null
lib/sheduler.ex
ninedraft/ghostwheel
515d2aa00edc7295cc84f714e086ee4434d3b64e
[ "MIT" ]
null
null
null
defmodule Ghostwheel.Sheduler do use Quantum, otp_app: :ghostwheel end
18.25
35
0.808219
38df7fa517fd5818cd488012ff8c1f0712c78029
763
ex
Elixir
lib/serum/template.ex
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
lib/serum/template.ex
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
lib/serum/template.ex
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
defmodule Serum.Template do @moduledoc "Defines a struct which stores a template and its information." defstruct name: "", type: :template, file: %Serum.File{}, ast: nil, include_resolved?: false @type t() :: %__MODULE__{ name: binary(), type: ...
23.84375
76
0.529489
38dfb0dc2a51711b29e3cba1726d2b99c8c8d1c9
117
ex
Elixir
lib/web/views/profile_view.ex
rozerosie/heycake
d080531705c0402fa53696d02307d6c08d25a60a
[ "MIT" ]
1
2020-06-03T07:45:17.000Z
2020-06-03T07:45:17.000Z
lib/web/views/profile_view.ex
rozerosie/heycake
d080531705c0402fa53696d02307d6c08d25a60a
[ "MIT" ]
6
2021-06-17T23:13:19.000Z
2021-08-31T21:15:21.000Z
lib/web/views/profile_view.ex
rozerosie/heycake
d080531705c0402fa53696d02307d6c08d25a60a
[ "MIT" ]
2
2020-06-03T22:08:06.000Z
2022-03-11T22:13:36.000Z
defmodule Web.ProfileView do use Web, :view def full_name(user), do: "#{user.first_name} #{user.last_name}" end
19.5
65
0.709402
38dfc9d835e3da2d7c5f6bf326b8cac192933e8b
11,220
exs
Elixir
test/ex_doc/autolink_test.exs
erszcz/ex_doc
4bb9a6f25dd2e522122daa48829a3d455e7f766a
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-04-02T13:22:58.000Z
2020-04-02T13:22:58.000Z
test/ex_doc/autolink_test.exs
sadiqmmm/ex_doc
4bb9a6f25dd2e522122daa48829a3d455e7f766a
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
test/ex_doc/autolink_test.exs
sadiqmmm/ex_doc
4bb9a6f25dd2e522122daa48829a3d455e7f766a
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule ExDoc.AutolinkTest do use ExUnit.Case, async: true doctest ExDoc.Autolink defp sigil_t(text, []) do {:code, [], [text]} end setup do ExDoc.Refs.clear() :ok end describe "doc/3" do test "elixir stdlib module" do assert autolinked(~t"String") == "https://hexdocs.pm/elixir/...
32.148997
132
0.558289
38e01a751bc6fa3cdead13ef32d041f3c6ca268e
1,808
ex
Elixir
lib/ecto/adapter/migration.ex
ashneyderman/ecto
16f27f64c5ca2480568fad10e40c26522ffbf793
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapter/migration.ex
ashneyderman/ecto
16f27f64c5ca2480568fad10e40c26522ffbf793
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapter/migration.ex
ashneyderman/ecto
16f27f64c5ca2480568fad10e40c26522ffbf793
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Adapter.Migration do @moduledoc """ Specifies the adapter migrations API. """ use Behaviour alias Ecto.Migration.Table alias Ecto.Migration.Index alias Ecto.Migration.Reference @typedoc "All migration commands" @type command :: raw :: String.t | {:create, Table.t, [table_sub...
29.16129
87
0.674226
38e020d609be3438961409d7c970a4ea1c5ec322
1,270
exs
Elixir
priv/repo/seeds.exs
dhadka/website
e67c23d7052b4ef00a1af52b0b9ebc952d34776e
[ "Apache-2.0" ]
null
null
null
priv/repo/seeds.exs
dhadka/website
e67c23d7052b4ef00a1af52b0b9ebc952d34776e
[ "Apache-2.0" ]
null
null
null
priv/repo/seeds.exs
dhadka/website
e67c23d7052b4ef00a1af52b0b9ebc952d34776e
[ "Apache-2.0" ]
null
null
null
alias Erlef.Repo defmodule Erlef.Seeds do def insert(schema, data_set) do now = DateTime.truncate(DateTime.utc_now(), :second) set_with_stamps = Enum.map(data_set, fn(d) -> Map.merge(d, %{inserted_at: now, updated_at: now}) end) case Repo.insert_all(schema, set_with_stamps, on_conflict: :nothing) do ...
28.222222
105
0.685039
38e062d943a650655a43eb36a73b08141c9b90c2
1,999
ex
Elixir
lib/bokken_web/controllers/mentor_controller.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
7
2020-10-19T14:06:46.000Z
2022-02-19T09:53:02.000Z
lib/bokken_web/controllers/mentor_controller.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
5
2017-08-24T10:38:46.000Z
2021-05-26T16:48:22.000Z
lib/bokken_web/controllers/mentor_controller.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
2
2017-08-25T18:38:11.000Z
2021-07-15T00:57:33.000Z
defmodule BokkenWeb.MentorController do use BokkenWeb, :controller alias Bokken.Accounts alias Bokken.Accounts.Mentor alias Bokken.Events.TeamMentor action_fallback BokkenWeb.FallbackController def index(conn, params) when is_map_key(params, "team_id") when is_map_key(params, "event_id") do ...
31.234375
98
0.662831
38e07756379e40161006e53fc2212e1f9094dd54
668
ex
Elixir
platform/target/info_workers/uptime_worker.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
2
2018-08-01T23:07:52.000Z
2018-10-17T12:49:21.000Z
platform/target/info_workers/uptime_worker.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
null
null
null
platform/target/info_workers/uptime_worker.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
1
2017-07-22T21:51:14.000Z
2017-07-22T21:51:14.000Z
defmodule Farmbot.Target.UptimeWorker do use GenServer def start_link(_, opts) do GenServer.start_link(__MODULE__, [], opts) end def init([]) do send(self(), :report_uptime) {:ok, %{}} end def handle_info(:report_uptime, state) do usage = collect_report() if GenServer.whereis(Farmbot....
23.034483
65
0.682635
38e0ab0900de1d1071d7b475894fa11260d39142
577
ex
Elixir
wabanex/lib/wabanex_web/schema/types/training.ex
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/lib/wabanex_web/schema/types/training.ex
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/lib/wabanex_web/schema/types/training.ex
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
defmodule WabanexWeb.Schema.Types.Training do use Absinthe.Schema.Notation import_types(WabanexWeb.Schema.Types.Exercise) @desc "Training Schema for graphql client" object :training do field :id, non_null(:uuid4) field :start_date, non_null(:string) field :end_date, non_null(:string) field :ex...
27.47619
53
0.741768
38e0c4340639a6408c9d5006b9fd967b2763a209
793
ex
Elixir
test/support/test_entries.ex
djschilling/radiator
382e22904d7e400a8ffba54e9ddfd2845bc2b623
[ "MIT" ]
null
null
null
test/support/test_entries.ex
djschilling/radiator
382e22904d7e400a8ffba54e9ddfd2845bc2b623
[ "MIT" ]
null
null
null
test/support/test_entries.ex
djschilling/radiator
382e22904d7e400a8ffba54e9ddfd2845bc2b623
[ "MIT" ]
null
null
null
defmodule Radiator.TestEntries do alias Radiator.Auth import Plug.Conn @testusername "TestUser1" @testuserpassword "Pass" def user_password do @testuserpassword end def user do case Auth.Register.get_user_by_name(@testusername) do nil -> Auth.Register.create_user(%{ nam...
19.825
65
0.593947
38e0f61e687041932755d331a72efd7625f27474
894
ex
Elixir
clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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.111111
74
0.761745
38e0f8b8ff89b0c6e4cbbe8c6f6b47bc14860db7
226
exs
Elixir
test/test_helper.exs
markevich/opensource_do
4c1ebd82a2b7fa059f159c9263d0cd1a55ca041a
[ "MIT" ]
1
2016-11-01T15:07:06.000Z
2016-11-01T15:07:06.000Z
test/test_helper.exs
markevich/opensource_do
4c1ebd82a2b7fa059f159c9263d0cd1a55ca041a
[ "MIT" ]
null
null
null
test/test_helper.exs
markevich/opensource_do
4c1ebd82a2b7fa059f159c9263d0cd1a55ca041a
[ "MIT" ]
null
null
null
ExUnit.start # Create the database, run migrations, and start the test transaction. Mix.Task.run "ecto.create", ["--quiet"] Mix.Task.run "ecto.migrate", ["--quiet"] Ecto.Adapters.SQL.begin_test_transaction(OpensourceDo.Repo)
32.285714
70
0.756637
38e11f80040c97f68a711461104592b97b8c507d
1,395
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/create_header_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/docs/lib/google_api/docs/v1/model/create_header_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/docs/lib/google_api/docs/v1/model/create_header_response.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...
29.680851
87
0.73405
38e123969f4415f0d1355b069bac419f11b27838
1,697
ex
Elixir
clients/run/lib/google_api/run/v1/model/local_object_reference.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/local_object_reference.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/run/lib/google_api/run/v1/model/local_object_reference.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...
36.106383
247
0.750147
38e16b09ac74f1887a108871b1c38f9cdfdd6848
10,052
exs
Elixir
test/resourceful/type_test.exs
binarypaladin/resourceful
a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610
[ "MIT" ]
null
null
null
test/resourceful/type_test.exs
binarypaladin/resourceful
a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610
[ "MIT" ]
2
2021-03-11T21:23:54.000Z
2021-03-12T23:34:21.000Z
test/resourceful/type_test.exs
binarypaladin/resourceful
a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610
[ "MIT" ]
null
null
null
defmodule Resourceful.TypeTest do use ExUnit.Case alias Resourceful.Test.Types alias Resourceful.Type alias Resourceful.Type.{Attribute, GraphedField, Relationship} def attributes do %{ "id" => Attribute.new("id", :integer), "title" => Attribute.new("title", :string), "tracks" => Attri...
29.052023
95
0.627139
38e1c125e04827b6e3f6c38adf1cf13c816090a2
436
ex
Elixir
lib/vnu/http_client.ex
angelikatyborska/vnu-elixir
c12676e41b7fba3b8acf98812f0e3a054c298458
[ "MIT" ]
51
2020-04-11T22:30:43.000Z
2022-01-14T13:24:56.000Z
lib/vnu/http_client.ex
angelikatyborska/vnu-elixir
c12676e41b7fba3b8acf98812f0e3a054c298458
[ "MIT" ]
20
2020-04-13T12:20:49.000Z
2022-03-29T18:32:41.000Z
lib/vnu/http_client.ex
angelikatyborska/vnu-elixir
c12676e41b7fba3b8acf98812f0e3a054c298458
[ "MIT" ]
null
null
null
defmodule Vnu.HTTPClient do @moduledoc """ Specification for a Vnu HTTP client. """ @type url() :: String.t() @type body() :: String.t() @type header() :: {String.t(), String.t()} @type status() :: non_neg_integer() @type response() :: %{status: status(), body: body()} @doc """ A callback to mak...
22.947368
82
0.580275
38e1f188cabac683cbfef7889cd771732e626a8b
49
ex
Elixir
lib/tnd/games/game.ex
tndrpg/tnd
a9a348ed7ce2f3d8f55046559f9551e2607f3236
[ "0BSD" ]
null
null
null
lib/tnd/games/game.ex
tndrpg/tnd
a9a348ed7ce2f3d8f55046559f9551e2607f3236
[ "0BSD" ]
1
2021-05-11T14:31:58.000Z
2021-05-11T14:31:58.000Z
lib/tnd/games/game.ex
tndrpg/tnd
a9a348ed7ce2f3d8f55046559f9551e2607f3236
[ "0BSD" ]
null
null
null
defmodule Tnd.Games.Game do use Tnd.Schema end
12.25
27
0.77551
38e1f18fd4b6a0e609273cbc9422c8c7903cecb1
3,582
ex
Elixir
clients/safe_browsing/lib/google_api/safe_browsing/v4/api/threat_hits.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/safe_browsing/lib/google_api/safe_browsing/v4/api/threat_hits.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/api/threat_hits.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "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 ...
43.682927
196
0.657733
38e20a7cd041380c9820ef22b77399ac6fcfa192
1,538
ex
Elixir
test/support/data_case.ex
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
test/support/data_case.ex
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
test/support/data_case.ex
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
defmodule NudgeApi.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done to ...
27.464286
77
0.689857
38e21ec679372659346f4b51c0071fcc523343c6
2,176
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/chart_source_range.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/chart_source_range.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/chart_source_range.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...
34
134
0.710938
38e226a31186561d74aa8754a0b8e261c489261c
2,157
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_media_content.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_media_content.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_media_content.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-03-04T13:43:47.000Z
2021-03-04T13:43:47.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.238095
196
0.74548
38e22ff17175d6d86e4bea0d0106f87cc19ca2c9
251
ex
Elixir
apps/tai/lib/tai/commander/accounts.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/commander/accounts.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/commander/accounts.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Commander.Accounts do @type account :: Tai.Venues.Account.t() @spec get :: [account] def get do Tai.Venues.AccountStore.all() |> Enum.sort(&(&1.asset >= &2.asset)) |> Enum.sort(&(&1.venue_id >= &2.venue_id)) end end
22.818182
47
0.625498
38e241d22490c5f9614db70019e1536c664f4a04
3,031
exs
Elixir
chapter-14/working-with-multiple-processes-9/cat_finder.exs
carlos4ndre/elixir-exercises
3673cf69d08a6c7de53224f8956f0db21e7c5dad
[ "MIT" ]
55
2015-12-09T09:23:50.000Z
2022-01-31T21:14:59.000Z
chapter-14/working-with-multiple-processes-9/cat_finder.exs
carlos4ndre/elixir-exercises
3673cf69d08a6c7de53224f8956f0db21e7c5dad
[ "MIT" ]
3
2016-06-15T12:53:39.000Z
2017-08-21T18:20:42.000Z
chapter-14/working-with-multiple-processes-9/cat_finder.exs
carlos4ndre/elixir-exercises
3673cf69d08a6c7de53224f8956f0db21e7c5dad
[ "MIT" ]
18
2016-01-01T18:18:23.000Z
2021-05-24T02:22:42.000Z
defmodule CatServer do def count_number_of_cats(scheduler) do send scheduler, { :ready, self } receive do { :process, params, client } -> send client, { :answer, params, count_cats_in_dir(params[:dir]), self } count_number_of_cats(scheduler) { :shutdown } -> exit(:normal) ...
20.760274
90
0.575058
38e2730eb79afb87aed2d8b7c91613f577063a0b
1,497
ex
Elixir
web/models/tp_attribute.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/models/tp_attribute.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/models/tp_attribute.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
defmodule CgratesWebJsonapi.TpAttribute do use CgratesWebJsonapi.Web, :model use EctoConditionals, repo: CgratesWebJsonapi.Repo @attributes ~w[tpid tenant custom_id contexts filter_ids initial activation_interval field_name substitute append blocker weight]a use CgratesWebJsonapi.CsvImport, mo...
31.851064
86
0.690715
38e28a8cd399c165e825dff06f2a06a78c33ab89
2,407
ex
Elixir
clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_resource_settings.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_resource_settings.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_resource_settings.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.116667
304
0.746157
38e2a86cf93d5a5d17b67c1b1d5d16c57d317ec2
466
exs
Elixir
priv/repo/migrations/20180330162607_create_attributes_reviews.exs
dreamingechoes/diversity-in-tech
4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f
[ "MIT" ]
8
2018-06-22T05:43:30.000Z
2020-04-13T20:31:40.000Z
priv/repo/migrations/20180330162607_create_attributes_reviews.exs
dreamingechoes/diversity-in-tech
4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f
[ "MIT" ]
null
null
null
priv/repo/migrations/20180330162607_create_attributes_reviews.exs
dreamingechoes/diversity-in-tech
4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f
[ "MIT" ]
null
null
null
defmodule DiversityInTech.Repo.Migrations.CreateAttributesReviews do use Ecto.Migration def change do create table(:attributes_reviews) do add(:score, :integer) add(:attribute_id, references(:attributes, on_delete: :delete_all)) add(:review_id, references(:reviews, on_delete: :delete_all)) ...
27.411765
73
0.72103
38e2aba99d4514410ef7c4a40170056d4f53a551
46
exs
Elixir
test/bmp3xx_test.exs
elixir-sensors/bmp3xx
39ea2d62ed345204b1d45d3e280429e7cd8f1f7a
[ "Apache-2.0" ]
1
2021-05-28T23:32:36.000Z
2021-05-28T23:32:36.000Z
test/bmp3xx_test.exs
mnishiguchi/bmp3xx
39ea2d62ed345204b1d45d3e280429e7cd8f1f7a
[ "Apache-2.0" ]
null
null
null
test/bmp3xx_test.exs
mnishiguchi/bmp3xx
39ea2d62ed345204b1d45d3e280429e7cd8f1f7a
[ "Apache-2.0" ]
null
null
null
defmodule BMP3XXTest do use ExUnit.Case end
11.5
23
0.804348
38e2e1e3397eff104240ae7efec44d0862a9e759
1,794
ex
Elixir
kousa/lib/kousa/chat.ex
PraveshKunwar/dogehouse
39ff9e95f4e25f47465690d5510f52fd61a9ba27
[ "MIT" ]
2
2021-05-01T16:57:50.000Z
2021-07-07T22:01:14.000Z
kousa/lib/kousa/chat.ex
PraveshKunwar/dogehouse
39ff9e95f4e25f47465690d5510f52fd61a9ba27
[ "MIT" ]
null
null
null
kousa/lib/kousa/chat.ex
PraveshKunwar/dogehouse
39ff9e95f4e25f47465690d5510f52fd61a9ba27
[ "MIT" ]
null
null
null
defmodule Kousa.Chat do alias Beef.Rooms alias Broth.Message.Chat.Delete alias Kousa.Utils.UUID alias Onion.Chat def send_msg(payload) do # TODO: pull room information from passed parameters from ws_session. case Beef.Users.get_current_room_id(payload.from) do nil -> :noop room_...
21.878049
74
0.609253
38e30927b8a7f46cdcc6440f5365633111fb7883
1,285
ex
Elixir
lib/cqex.ex
ispirata/cqex
982b92634926fd271e184d25935fb853215f6ca1
[ "MIT" ]
null
null
null
lib/cqex.ex
ispirata/cqex
982b92634926fd271e184d25935fb853215f6ca1
[ "MIT" ]
null
null
null
lib/cqex.ex
ispirata/cqex
982b92634926fd271e184d25935fb853215f6ca1
[ "MIT" ]
null
null
null
defmodule CQEx do require Record Record.defrecord :cql_query, [ statement: <<>>, values: [], reusable: nil, named: false, page_size: 100, page_state: nil, consistency: :one, serial_consistency: nil, value_encode_handler: nil ] Record.defrecord :cql_query_batch, [ consis...
17.847222
84
0.565759
38e337565ad1d0bd6ada41dce0a74a11df09278f
1,862
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/performance_report_list.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/performance_report_list.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/performance_report_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...
36.509804
175
0.751343
38e348e4ba49f19d3b6c808783837162ca3327a9
338
ex
Elixir
lib/gems_web/live/components/content.ex
nbw/gems
eb4e253af230646563f0ddb307c499a0cab0aa2d
[ "MIT" ]
63
2021-12-02T13:20:03.000Z
2022-03-02T14:32:19.000Z
lib/gems_web/live/components/content.ex
jasonwc/gems
aa94ec613cc1f2ef49d0cc34ab8311419b634d4b
[ "MIT" ]
1
2022-01-03T02:21:58.000Z
2022-01-03T23:44:28.000Z
lib/gems_web/live/components/content.ex
jasonwc/gems
aa94ec613cc1f2ef49d0cc34ab8311419b634d4b
[ "MIT" ]
5
2021-12-02T15:17:10.000Z
2022-02-02T20:18:53.000Z
defmodule GEMSWeb.Components.Content do @moduledoc """ Renders content.html.heex """ use Phoenix.LiveComponent # Note: it would make more sense if this was a Phoenix.Component instead of # a LiveComponent because the content is static. but at least for now there # it's easier to use a LiveComponent and c...
30.727273
77
0.745562
38e36cfecddd51045e66df2e391a4a023b8ce1cb
1,648
ex
Elixir
lib/valve.ex
evuez/valve
ad12afb79fce978dd04fa7ad6a21aacf5275a8d7
[ "MIT" ]
1
2017-10-09T10:57:18.000Z
2017-10-09T10:57:18.000Z
lib/valve.ex
evuez/valve
ad12afb79fce978dd04fa7ad6a21aacf5275a8d7
[ "MIT" ]
1
2017-12-26T11:15:26.000Z
2017-12-26T11:15:26.000Z
lib/valve.ex
evuez/valve
ad12afb79fce978dd04fa7ad6a21aacf5275a8d7
[ "MIT" ]
2
2017-12-26T11:14:53.000Z
2018-06-22T01:33:30.000Z
defmodule Valve do @moduledoc """ An Elixir Plug to rate limit requests. """ defmodule Bucket do @moduledoc false @type t :: %__MODULE__{last_request: integer, tokens: float} defstruct [:last_request, :tokens] end import Plug.Conn, only: [halt: 1, put_resp_header: 3, send_resp: 3] alias Va...
26.15873
83
0.657767
38e37d454f2b2bb0bbfca47eb2704c7bf869d4f8
784
exs
Elixir
test/acceptance/html/paragraphs_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/acceptance/html/paragraphs_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/acceptance/html/paragraphs_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
1
2020-03-31T19:53:15.000Z
2020-03-31T19:53:15.000Z
defmodule Acceptance.Html.ParagraphsTest do use ExUnit.Case, async: true import Support.Helpers, only: [as_html: 1] describe "Paragraphs" do test "a para" do markdown = "aaa\n\nbbb\n" html = "<p>aaa</p>\n<p>bbb</p>\n" messages = [] assert as_html(markdown) == {:ok, html, messa...
20.631579
55
0.565051
38e39eb1933ffdba690328f2d92185596f139cd7
1,708
ex
Elixir
lib/oath/function_wrapper.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
lib/oath/function_wrapper.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
lib/oath/function_wrapper.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
defmodule Oath.FunctionWrapper do @moduledoc false defstruct function: nil, form: nil, bindings: [] @type t :: %__MODULE__{ function: predicate, form: Macro.t(), bindings: keyword } @type predicate :: (any -> boolean) @spec new(predicate, Macro....
23.722222
87
0.555035
38e3bb33bc08ff387fa72fe709abefaaafe44727
2,253
ex
Elixir
lib/cryptocomparex/response_middleware.ex
metachaos-systems/cryptocomparex
cb3d3096927b9d51f495e68780c46ff803d50d3e
[ "MIT" ]
null
null
null
lib/cryptocomparex/response_middleware.ex
metachaos-systems/cryptocomparex
cb3d3096927b9d51f495e68780c46ff803d50d3e
[ "MIT" ]
null
null
null
lib/cryptocomparex/response_middleware.ex
metachaos-systems/cryptocomparex
cb3d3096927b9d51f495e68780c46ff803d50d3e
[ "MIT" ]
null
null
null
defmodule Cryptocomparex.ResponseMiddleware do @behaviour Tesla.Middleware alias Cryptocomparex.ParsetransUtils @moduledoc """ Parses and converts API responses to corresponding Elixir values, idiomatic underscored atom keys, etc. """ def call(env, next, _options) do env |> Tesla.run(next) |> h...
25.602273
105
0.613848
38e415b2671002e6fb8c64be3e21a56c08a326c8
11,969
ex
Elixir
lib/cadet/jobs/xml_parser.ex
Source-Academy-Game/cadet
a46af782fec8866b86a232a0bc27f4cec0b2269c
[ "Apache-2.0" ]
null
null
null
lib/cadet/jobs/xml_parser.ex
Source-Academy-Game/cadet
a46af782fec8866b86a232a0bc27f4cec0b2269c
[ "Apache-2.0" ]
2
2020-04-22T09:06:38.000Z
2020-04-22T09:15:33.000Z
lib/cadet/jobs/xml_parser.ex
Source-Academy-Game/cadet
a46af782fec8866b86a232a0bc27f4cec0b2269c
[ "Apache-2.0" ]
1
2020-06-01T03:26:02.000Z
2020-06-01T03:26:02.000Z
defmodule Cadet.Updater.XMLParser do @moduledoc """ Parser for XML files from the cs1101s repository. """ @local_name if Mix.env() != :test, do: "cs1101s", else: "test/fixtures/local_repo" use Cadet, [:display] import SweetXml alias Cadet.Assessments require Logger defmacrop is_non_empty_list(ter...
31.748011
107
0.605397
38e41e0b8f87e5ca8f3d5473138e6d90ee4844b0
1,304
ex
Elixir
elixir/lib/homework_web/schema.ex
jwoods1/web-homework
74c4c9470a5c56c434cb5452bc2d17a125f593c1
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schema.ex
jwoods1/web-homework
74c4c9470a5c56c434cb5452bc2d17a125f593c1
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schema.ex
jwoods1/web-homework
74c4c9470a5c56c434cb5452bc2d17a125f593c1
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.Schema do @moduledoc """ Defines the graphql schema for this project. """ use Absinthe.Schema alias HomeworkWeb.Resolvers.MerchantsResolver alias HomeworkWeb.Resolvers.TransactionsResolver alias HomeworkWeb.Resolvers.UsersResolver alias HomeworkWeb.Resolvers.CompaniesResolver i...
24.603774
51
0.697853
38e438639db5c4cf452eeab901e8f838b794faf8
1,904
ex
Elixir
clients/game_services/lib/google_api/game_services/v1beta/model/target_fleet_details.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/game_services/lib/google_api/game_services/v1beta/model/target_fleet_details.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/game_services/lib/google_api/game_services/v1beta/model/target_fleet_details.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...
38.08
163
0.755777
38e441c0e3827b80b4bbcd1886aa2838ee053a50
153
ex
Elixir
lib/discourse.ex
nicolasblanco/discourse-1
7c3824d3342326d4a5f7b27730135fe0f93a652f
[ "MIT" ]
5
2019-11-12T22:01:20.000Z
2021-11-12T15:23:24.000Z
lib/discourse.ex
nicolasblanco/discourse-1
7c3824d3342326d4a5f7b27730135fe0f93a652f
[ "MIT" ]
null
null
null
lib/discourse.ex
nicolasblanco/discourse-1
7c3824d3342326d4a5f7b27730135fe0f93a652f
[ "MIT" ]
3
2021-06-28T06:17:14.000Z
2021-11-12T15:05:47.000Z
defmodule Discourse do @moduledoc ~S""" [Discourse](https://www.discourse.org/) client library. For Discourse SSO see: `Discourse.SSO`. """ end
19.125
57
0.686275
38e44786b8c46b8182e4810477bb80d61a8c3101
558
ex
Elixir
backend/lib/kakeibo_web/views/changeset_view.ex
makoto-engineer/kakeibo
d6882ccfa56d376a39dd307d28417d956ddc8584
[ "MIT" ]
null
null
null
backend/lib/kakeibo_web/views/changeset_view.ex
makoto-engineer/kakeibo
d6882ccfa56d376a39dd307d28417d956ddc8584
[ "MIT" ]
null
null
null
backend/lib/kakeibo_web/views/changeset_view.ex
makoto-engineer/kakeibo
d6882ccfa56d376a39dd307d28417d956ddc8584
[ "MIT" ]
null
null
null
defmodule KakeiboWeb.ChangesetView do use KakeiboWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `KakeiboWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changeset, &t...
27.9
65
0.738351
38e4a55600f605f1cbd957b97817bd2a0aa529d5
1,079
ex
Elixir
lib/game/npc/combat.ex
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
lib/game/npc/combat.ex
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
lib/game/npc/combat.ex
shanesveller/ex_venture
68507da11442a9e0423073fcd305e9021f649ca1
[ "MIT" ]
null
null
null
defmodule Game.NPC.Combat do @moduledoc """ Module to hold functions for the `combat/tick` """ alias Data.Event @doc """ Select a weighted event from the list of events """ @spec weighted_event([Event.t()]) :: Event.t() def weighted_event([]), do: nil def weighted_event(events) do events ...
25.093023
85
0.648749
38e558a3fe56c6b8dcdd22e7c776ddac64bea5f4
8,996
ex
Elixir
lib/glimesh/api/schema/chat_types.ex
chriscuris/glimesh.tv
e1a78aa763ea5599d045fdfa65237b94fbb28a23
[ "MIT" ]
null
null
null
lib/glimesh/api/schema/chat_types.ex
chriscuris/glimesh.tv
e1a78aa763ea5599d045fdfa65237b94fbb28a23
[ "MIT" ]
null
null
null
lib/glimesh/api/schema/chat_types.ex
chriscuris/glimesh.tv
e1a78aa763ea5599d045fdfa65237b94fbb28a23
[ "MIT" ]
null
null
null
defmodule Glimesh.Api.ChatTypes do @moduledoc false use Absinthe.Schema.Notation use Absinthe.Relay.Schema.Notation, :modern import Absinthe.Resolution.Helpers alias Glimesh.Api.ChatResolver alias Glimesh.Repo alias Glimesh.Streams input_object :chat_message_input do field :message, :string end...
30.494915
98
0.663962
38e56740d785589929efc76b8a557df625b7536b
731
ex
Elixir
int_gen/lib/cli_options.ex
Maultasche/ElixirLargeSort
31f8be646309105c8c0dfcda33ab6b3d7b77235a
[ "MIT" ]
2
2020-05-12T15:55:13.000Z
2020-11-13T16:53:00.000Z
int_gen/lib/cli_options.ex
Maultasche/ElixirLargeSort
31f8be646309105c8c0dfcda33ab6b3d7b77235a
[ "MIT" ]
null
null
null
int_gen/lib/cli_options.ex
Maultasche/ElixirLargeSort
31f8be646309105c8c0dfcda33ab6b3d7b77235a
[ "MIT" ]
null
null
null
defmodule IntGen.CLI.Options do @moduledoc """ Represents a set of command line options """ defstruct lower_bound: 0, upper_bound: 0, count: 0, output_file: "" # Define the stuct type definition @type t :: %IntGen.CLI.Options{ lower_bound: integer(), ...
26.107143
90
0.611491
38e56ab853a0b0756b9627a883aecc4f805ef1b5
5,340
ex
Elixir
installer/lib/phx_new/web.ex
qdentity/phoenix
04466484d30019c1bf4a45f24519730d02f26600
[ "MIT" ]
null
null
null
installer/lib/phx_new/web.ex
qdentity/phoenix
04466484d30019c1bf4a45f24519730d02f26600
[ "MIT" ]
null
null
null
installer/lib/phx_new/web.ex
qdentity/phoenix
04466484d30019c1bf4a45f24519730d02f26600
[ "MIT" ]
null
null
null
defmodule Phx.New.Web do @moduledoc false use Phx.New.Generator alias Phx.New.{Project} @pre "phx_umbrella/apps/app_name_web" template :new, [ {:config, "#{@pre}/config/config.exs", :project, "config/config.exs"}, {:config, "#{@pre}/config/dev.exs", :project, "config/dev.exs...
51.84466
122
0.597191
38e59168c64b184e5859947d4c3f2c28772baad5
1,198
ex
Elixir
lib/groupher_server/cms/models/drink.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
lib/groupher_server/cms/models/drink.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
lib/groupher_server/cms/models/drink.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.CMS.Model.Drink do @moduledoc false alias __MODULE__ use Ecto.Schema use Accessible import Ecto.Changeset import GroupherServer.CMS.Helper.Macros alias GroupherServer.CMS alias CMS.Model.Embeds @timestamps_opts [type: :utc_datetime_usec] @required_fields ~w(title digest...
24.44898
80
0.724541
38e61058a07509913ae8ec24e5cb81774a09c6b0
759
exs
Elixir
test/timex/calendar/julian_test.exs
shahryarjb/timex
d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a
[ "MIT" ]
1,623
2015-01-03T16:53:19.000Z
2022-03-27T01:25:50.000Z
test/timex/calendar/julian_test.exs
shahryarjb/timex
d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a
[ "MIT" ]
654
2015-01-04T23:59:47.000Z
2022-03-08T01:02:01.000Z
test/timex/calendar/julian_test.exs
shahryarjb/timex
d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a
[ "MIT" ]
428
2015-01-04T19:37:37.000Z
2022-03-31T10:48:44.000Z
defmodule Timex.Calendar.JulianTest do use ExUnit.Case, async: true alias Timex.Calendar.Julian # test values generated from: # http://aa.usno.navy.mil/data/docs/JulianDate.php test "Test Julian Date" do assert Julian.julian_date(2018, 10, 1) == 2_458_393 end test "Test Julian Date right after midn...
27.107143
74
0.694335
38e62f4182601a5a032c486c880c088a8d155a0c
1,035
ex
Elixir
lib/plate_slate_web/router.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/router.ex
conradwt/crafting-graphql-apis-in-elixir-with-absinthe
b26d050a350425ac189ea6d205834da1e47d4f90
[ "MIT" ]
null
null
null
lib/plate_slate_web/router.ex
conradwt/crafting-graphql-apis-in-elixir-with-absinthe
b26d050a350425ac189ea6d205834da1e47d4f90
[ "MIT" ]
null
null
null
# --- # Excerpted from "Craft GraphQL APIs in Elixir with Absinthe", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any pu...
26.538462
86
0.715942
38e631bf181b783cd7bfb1edd1530cd149eeebd2
5,510
ex
Elixir
apps/gitgud/lib/gitgud/smart_http_backend.ex
rogervezaro/gitgud
6656f8c2df16817a6c5325fb4c18b03f9d3f7140
[ "MIT" ]
null
null
null
apps/gitgud/lib/gitgud/smart_http_backend.ex
rogervezaro/gitgud
6656f8c2df16817a6c5325fb4c18b03f9d3f7140
[ "MIT" ]
null
null
null
apps/gitgud/lib/gitgud/smart_http_backend.ex
rogervezaro/gitgud
6656f8c2df16817a6c5325fb4c18b03f9d3f7140
[ "MIT" ]
null
null
null
defmodule GitGud.SmartHTTPBackend do @moduledoc """ `Plug` providing support for Git server commands over HTTP. This plug handles following Git commands: * `git-receive-pack` - corresponding server-side command to `git push`. * `git-upload-pack` - corresponding server-side command to `git fetch`. A regis...
32.797619
121
0.646279
38e63fd73aab2732389afe05eaa3c39fc20513e1
17,213
exs
Elixir
test/myxql/protocol/values_test.exs
MidigoF/myxql
f9dbef40890455f4a6a8fa21e24a37875ef54a38
[ "Apache-2.0" ]
null
null
null
test/myxql/protocol/values_test.exs
MidigoF/myxql
f9dbef40890455f4a6a8fa21e24a37875ef54a38
[ "Apache-2.0" ]
null
null
null
test/myxql/protocol/values_test.exs
MidigoF/myxql
f9dbef40890455f4a6a8fa21e24a37875ef54a38
[ "Apache-2.0" ]
null
null
null
defmodule MyXQL.Protocol.ValueTest do use ExUnit.Case, async: true use Bitwise @default_sql_mode "STRICT_TRANS_TABLES" unless macro_exported?(Kernel, :sigil_U, 2) do defmacrop sigil_U({:<<>>, _, [string]}, _) do Macro.escape(DateTime.from_naive!(NaiveDateTime.from_iso8601!(string), "Etc/UTC")) e...
33.423301
104
0.60495
38e6d3878d5ea3f07730a26bab65fdce81a8235f
1,803
ex
Elixir
clients/mirror/lib/google_api/mirror/v1/model/attachments_list_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/mirror/lib/google_api/mirror/v1/model/attachments_list_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/mirror/lib/google_api/mirror/v1/model/attachments_list_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.06
133
0.734886
38e6e3656746961020f3cc8d319716b69a739156
3,828
ex
Elixir
lib/hexa/accounts.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
lib/hexa/accounts.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
lib/hexa/accounts.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
defmodule Hexa.Accounts do import Ecto.Query import Ecto.Changeset alias Hexa.Repo alias Hexa.Accounts.{User, Identity, Events} @pubsub Hexa.PubSub def subscribe(user_id) do Phoenix.PubSub.subscribe(@pubsub, topic(user_id)) end def unsubscribe(user_id) do Phoenix.PubSub.unsubscribe(@pubsub, ...
24.075472
98
0.649948
38e6e957dea48303925cca1c1e54c73306750251
338
ex
Elixir
lib/supabase_surface/components/icons/icon_image.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
5
2021-06-08T08:02:43.000Z
2022-02-09T23:13:46.000Z
lib/supabase_surface/components/icons/icon_image.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_image.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
1
2021-07-14T05:20:31.000Z
2021-07-14T05:20:31.000Z
defmodule SupabaseSurface.Components.Icons.IconImage do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.image(width: icon_size, height: icon_size)} </IconContainer> ...
22.533333
63
0.715976
38e708aaae206e77f371149aaa12ce972965af8b
1,137
exs
Elixir
src/apps/gateway/mix.exs
fortelabsinc/PlayerExchange
442629df9716b45dd31f2bb1127309f4f9d2b0ee
[ "MIT" ]
null
null
null
src/apps/gateway/mix.exs
fortelabsinc/PlayerExchange
442629df9716b45dd31f2bb1127309f4f9d2b0ee
[ "MIT" ]
42
2020-04-28T20:39:12.000Z
2022-02-27T03:54:44.000Z
src/apps/gateway/mix.exs
fortelabsinc/PlayerExchange
442629df9716b45dd31f2bb1127309f4f9d2b0ee
[ "MIT" ]
null
null
null
defmodule Gateway.MixProject do use Mix.Project def project do {:ok, vsn} = File.read("../../vsn.txt") [ app: :gateway, version: vsn, build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "...
24.717391
97
0.5365
38e7154260a9b155dc2939ce33d8a302f5ec56a1
1,714
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_entity_types_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_delete_entity_types_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_delete_entity_types_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...
32.961538
166
0.754959
38e73e61ad9adcaf36bb1c5d611042fd33174ded
203
exs
Elixir
test/controllers/page_controller_test.exs
Andorbal/phoenix_react
0291d612ca710f80bd5ec87f052649f32c9e5847
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
Andorbal/phoenix_react
0291d612ca710f80bd5ec87f052649f32c9e5847
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
Andorbal/phoenix_react
0291d612ca710f80bd5ec87f052649f32c9e5847
[ "MIT" ]
null
null
null
defmodule PhoenixReact.PageControllerTest do use PhoenixReact.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
22.555556
60
0.689655
38e748df8fd9675bd98f6c3b3482f7b85a6629d4
727
ex
Elixir
apps/thundermoon/lib/thundermoon/lotka_volterra/field.ex
psychedel/thundermoon-umbrella
b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af
[ "MIT" ]
null
null
null
apps/thundermoon/lib/thundermoon/lotka_volterra/field.ex
psychedel/thundermoon-umbrella
b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af
[ "MIT" ]
null
null
null
apps/thundermoon/lib/thundermoon/lotka_volterra/field.ex
psychedel/thundermoon-umbrella
b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af
[ "MIT" ]
null
null
null
defmodule Thundermoon.Field do # agent is temporary as it will be restarted by the counter use Agent, restart: :temporary alias Thundermoon.Vegetation alias ThundermoonWeb.Endpoint def start_link(_args \\ nil) do Agent.start_link(fn -> vegetation = %Vegetation{} broadcast(vegetation.size) ...
25.068966
82
0.70564
38e7593bcc10e920592d6f4c793e90f398cc07d4
291
exs
Elixir
bench/nibbles_access_bench.exs
McEx/chunk-ex
f0307629efb7e64ddb07612926c1fb5fcc615183
[ "MIT" ]
4
2016-06-16T23:26:11.000Z
2021-07-08T12:05:06.000Z
bench/nibbles_access_bench.exs
Gjum/chunk-ex
f0307629efb7e64ddb07612926c1fb5fcc615183
[ "MIT" ]
null
null
null
bench/nibbles_access_bench.exs
Gjum/chunk-ex
f0307629efb7e64ddb07612926c1fb5fcc615183
[ "MIT" ]
3
2016-04-09T21:06:01.000Z
2021-07-27T13:39:51.000Z
defmodule McChunk.Bench.NibblesAccess do use Benchfella alias McChunk.Nibbles @arr Nibbles.new(4096) bench "Nibbles.get" do for index <- 0..4095, do: Nibbles.get(@arr, index) end bench "Nibbles.set" do for index <- 0..4095, do: Nibbles.set(@arr, index, 15) end end
18.1875
58
0.67354