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
65fa8daaf01ce293185e7ca3ae87efecf2e12abd
45,020
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
garthk/elixir
1dcce6309c97a655643412dc92449daee59d96d7
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
garthk/elixir
1dcce6309c97a655643412dc92449daee59d96d7
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
garthk/elixir
1dcce6309c97a655643412dc92449daee59d96d7
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true import ExUnit.CaptureIO defmacro hello do quote location: :keep do def hello, do: :world end end test "no optional arguments in fn" do assert_eval_raise CompileError, ...
35.089634
157
0.533918
65fad1a563290f7f5fb0e2df0167d1af04e2ec7a
17,500
exs
Elixir
test/livebook/session_test.exs
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
test/livebook/session_test.exs
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
test/livebook/session_test.exs
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.SessionTest do use ExUnit.Case, async: true alias Livebook.{Session, Delta, Runtime, Utils, Notebook} # Note: queueing evaluation in most of the tests below # requires the runtime to synchronously start first, # so we use a longer timeout just to make sure the tests # pass reliably @e...
33.460803
94
0.674571
65fae7ddb4e9b4f62aec7ab51997fc677992f1f8
2,006
ex
Elixir
clients/plus/lib/google_api/plus/v1/model/person_name.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/plus/lib/google_api/plus/v1/model/person_name.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/plus/lib/google_api/plus/v1/model/person_name.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# 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...
35.821429
140
0.726321
65faea9af16a301ab0c7cc9774fe108b375f1eb5
768
exs
Elixir
priv/repo/migrations/20220206232312_create_users_auth_tables.exs
ashton314/indexing-reporter
7bb9d1bb436b18a359ad4855b084b92c076b979d
[ "MIT" ]
null
null
null
priv/repo/migrations/20220206232312_create_users_auth_tables.exs
ashton314/indexing-reporter
7bb9d1bb436b18a359ad4855b084b92c076b979d
[ "MIT" ]
null
null
null
priv/repo/migrations/20220206232312_create_users_auth_tables.exs
ashton314/indexing-reporter
7bb9d1bb436b18a359ad4855b084b92c076b979d
[ "MIT" ]
null
null
null
defmodule IndexingReporter.Repo.Migrations.CreateUsersAuthTables do use Ecto.Migration def change do execute "CREATE EXTENSION IF NOT EXISTS citext", "" create table(:users) do add :email, :citext, null: false add :hashed_password, :string, null: false add :confirmed_at, :naive_datetime ...
27.428571
75
0.677083
65fb157f022cd9c29fe105483ab31615b68b2731
4,047
ex
Elixir
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.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...
72.267857
1,405
0.746232
65fb2b76d1020f0c5b4bb3994cc3b08902c07d07
449
ex
Elixir
Elixir/7lang7weeks/day2/states/lib/video_store.ex
kkirstein/proglang-playground
d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd
[ "MIT" ]
null
null
null
Elixir/7lang7weeks/day2/states/lib/video_store.ex
kkirstein/proglang-playground
d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd
[ "MIT" ]
null
null
null
Elixir/7lang7weeks/day2/states/lib/video_store.ex
kkirstein/proglang-playground
d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd
[ "MIT" ]
null
null
null
# vim: ft=elixir sw=2 ts=2 # # video_store.ex # business logic for a video store # defmodule VideoStore do def renting(video) do vid = log video, "Renting #{video.title}" %{vid | times_rented: (video.times_rented + 1)} end def returning(video), do: log(video, "Returning #{video.title}") def losing(vi...
18.708333
66
0.654788
65fb2d3370358ca1fed0f041b3cf0814e7a6050f
1,656
ex
Elixir
lib/web3/eth.ex
wuminzhe/web3.ex
3f34c6d59d17b54dfd743e6edf20921f6938a404
[ "MIT" ]
null
null
null
lib/web3/eth.ex
wuminzhe/web3.ex
3f34c6d59d17b54dfd743e6edf20921f6938a404
[ "MIT" ]
null
null
null
lib/web3/eth.ex
wuminzhe/web3.ex
3f34c6d59d17b54dfd743e6edf20921f6938a404
[ "MIT" ]
null
null
null
defmodule Web3.Eth do use Web3.Rpc, prefix: "eth" defrpc coinbase() defrpc getBalance(address, blockNumber) defrpc accounts() defrpc blockNumber() defrpc gasPrice() defrpc hashrate() defrpc mining() defrpc syncing() defrpc protocolVersion() defrpc getStorageAt(address, position, blockNumber) de...
25.875
79
0.740338
65fb5e52e20f58f93fdfaa62b50caf4b3dbe07d2
1,117
exs
Elixir
config/config.exs
austinsmorris/avocado
87ed4843be7a728a1099bad6e08f43dcd82a0a3e
[ "MIT" ]
null
null
null
config/config.exs
austinsmorris/avocado
87ed4843be7a728a1099bad6e08f43dcd82a0a3e
[ "MIT" ]
null
null
null
config/config.exs
austinsmorris/avocado
87ed4843be7a728a1099bad6e08f43dcd82a0a3e
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.032258
73
0.751119
65fb62b1c1401749dadb67c5c74bdf5af1f88040
6,004
ex
Elixir
lib/darknet_to_onnx/weightloader.ex
stefkohub/darknet_to_onnx
1d378a4dd33452e7eba7a6174e4a13a210fa8cb6
[ "MIT" ]
1
2021-12-05T10:52:26.000Z
2021-12-05T10:52:26.000Z
lib/darknet_to_onnx/weightloader.ex
stefkohub/darknet_to_onnx
1d378a4dd33452e7eba7a6174e4a13a210fa8cb6
[ "MIT" ]
3
2021-12-17T10:12:22.000Z
2022-02-28T12:17:21.000Z
lib/darknet_to_onnx/weightloader.ex
stefkohub/darknet_to_onnx
1d378a4dd33452e7eba7a6174e4a13a210fa8cb6
[ "MIT" ]
null
null
null
defmodule DarknetToOnnx.WeightLoader do @moduledoc """ Helper class used for loading the serialized weights of a binary file stream and returning the initializers and the input tensors required for populating the ONNX graph with weights. """ use Agent, restart: :transient alias DarknetToOnnx.Lea...
32.808743
116
0.665556
65fb6a00bd1abf492524b159559293d5094e1f34
604
exs
Elixir
backend/test/keeb_web/views/error_view_test.exs
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
backend/test/keeb_web/views/error_view_test.exs
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
backend/test/keeb_web/views/error_view_test.exs
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
defmodule KeebWeb.ErrorViewTest do use KeebWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(KeebWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found"}} end test "render 5...
27.454545
66
0.645695
65fb931f658c0dd13c1eb040ce04ab461575e5e6
450
ex
Elixir
host_core/lib/host_core/providers/builtin/logging.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/providers/builtin/logging.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/providers/builtin/logging.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
defmodule HostCore.Providers.Builtin.Logging do require Logger def invoke(actor, method, payload) when method in ["Logging.WriteLog", "WriteLog"] do msg = Msgpax.unpack!(payload) text = "[#{actor}] #{msg["text"]}" case msg["level"] do "error" -> Logger.error(text) "info" -> Logger.info(tex...
23.684211
87
0.611111
65fbac10f1128da8c082136747199608fe2fdf24
6,857
ex
Elixir
lib/elixir_ex_aliyun_ots_table_store_search_group_bys_result.ex
hou8/tablestore_protos
1a3223326b92bbe196d57ce4dd19b5a8db1c728d
[ "MIT" ]
null
null
null
lib/elixir_ex_aliyun_ots_table_store_search_group_bys_result.ex
hou8/tablestore_protos
1a3223326b92bbe196d57ce4dd19b5a8db1c728d
[ "MIT" ]
1
2022-02-08T06:37:02.000Z
2022-02-08T06:37:02.000Z
lib/elixir_ex_aliyun_ots_table_store_search_group_bys_result.ex
hou8/tablestore_protos
1a3223326b92bbe196d57ce4dd19b5a8db1c728d
[ "MIT" ]
2
2022-01-24T06:13:03.000Z
2022-01-24T08:33:41.000Z
# credo:disable-for-this-file defmodule(ExAliyunOts.TableStoreSearch.GroupBysResult) do @moduledoc false ( defstruct(group_by_results: []) ( ( @spec encode(struct) :: {:ok, iodata} | {:error, any} def(encode(msg)) do try do {:ok, encode!(msg)} rescue ...
27.318725
97
0.501385
65fbb0dff148367b378b47d624ec088f0acdcaae
898
ex
Elixir
clients/assured_workloads/lib/google_api/assured_workloads/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/assured_workloads/lib/google_api/assured_workloads/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/assured_workloads/lib/google_api/assured_workloads/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "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.259259
74
0.762806
65fbe4293ea3988eb1f03f5fbb9917f462ba379b
2,163
ex
Elixir
clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/deserializer.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# 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...
36.05
139
0.689783
65fbedf64bf8fc93d6a59ac1a3b2f795bbdfebd0
1,232
ex
Elixir
chp6/server_process.ex
AJPcodes/elixir_in_action
d9c9b0aeea13bf48cd65af7c2de6ba5cf30e5d26
[ "MIT" ]
null
null
null
chp6/server_process.ex
AJPcodes/elixir_in_action
d9c9b0aeea13bf48cd65af7c2de6ba5cf30e5d26
[ "MIT" ]
null
null
null
chp6/server_process.ex
AJPcodes/elixir_in_action
d9c9b0aeea13bf48cd65af7c2de6ba5cf30e5d26
[ "MIT" ]
null
null
null
defmodule ServerProcess do def start(callback_module) do spawn(fn -> initial_state = callback_module.init loop(callback_module, initial_state) end) end defp loop(callback_module, current_state) do receive do {request, caller} -> {response, new_state} = callback_module.h...
19.870968
82
0.659903
65fc00e9014c87cfa556d862d7e3ec8ebbeca8d5
47,602
ex
Elixir
lib/elixir/lib/string.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/string.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/string.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [length: 1] defmodule String do @moduledoc ~S""" A String in Elixir is a UTF-8 encoded binary. ## Codepoints and graphemes The functions in this module act according to the Unicode Standard, version 6.3.0. As per the standard, a codepoint is a single Unicode Character, which may...
26.416204
112
0.634952
65fc3f67c263472f0f2b052ff073424b3e7633fd
4,164
ex
Elixir
lib/ex_unit/lib/ex_unit/filters.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/filters.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/filters.ex
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.Filters do @moduledoc """ Conveniences for parsing and evaluating filters. """ @type t :: list({atom, Regex.t | String.Chars.t} | atom) @doc """ Parses filters out of a path. Determines whether a given file path (supplied to ExUnit/Mix as arguments on the command line) includes a lin...
29.323944
83
0.613593
65fc4b7ee071069d1eb16734ef36ed3ed1484cf3
63
exs
Elixir
v02/ch09/map1.edit0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch09/map1.edit0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/ch09/map1.edit0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
l = [1, 2, 3] l = Enum.map(l, fn(n) -> n * 2 end) IO.inspect l
15.75
35
0.492063
65fc4bfc0fe5c4e3807494a3d60a3d360b342c98
4,437
exs
Elixir
test/appsignal/error/backend_test.exs
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
null
null
null
test/appsignal/error/backend_test.exs
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
null
null
null
test/appsignal/error/backend_test.exs
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
null
null
null
defmodule Murphy do import ExUnit.Assertions use GenServer def start_link(_opts) do GenServer.start(__MODULE__, []) end def init(opts), do: {:ok, opts} def handle_call(fun, _from, _state) do fun.() end def call(pid, fun) do ExUnit.CaptureLog.capture_log(fn -> catch_exit do ...
24.11413
99
0.583728
65fc4d1ba6a2c039dfc605e49e207fdd44df89fe
609
ex
Elixir
lib/audit/cache/model.ex
enixdark/audit_worker
38f280a44d8577783ed61086a09d7a77718f4453
[ "MIT" ]
null
null
null
lib/audit/cache/model.ex
enixdark/audit_worker
38f280a44d8577783ed61086a09d7a77718f4453
[ "MIT" ]
null
null
null
lib/audit/cache/model.ex
enixdark/audit_worker
38f280a44d8577783ed61086a09d7a77718f4453
[ "MIT" ]
null
null
null
# defmodule Audit.Cache.Model do # require Record # Record.defrecord :user, [email: nil, status: nil, openstack_id: nil, # name: nil, address: nil, phone: nil, phone_number: nil, # phone_verified: false, email_verified: false, payment_verified: false, # ...
67.666667
101
0.596059
65fc575657e834232c3c4f7b6c75f5a65940391b
1,462
ex
Elixir
apps/web/lib/web.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
48
2017-08-21T02:08:16.000Z
2022-01-05T14:02:56.000Z
apps/web/lib/web.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
68
2017-08-21T02:17:32.000Z
2017-11-09T15:56:27.000Z
apps/web/lib/web.ex
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
26
2017-08-21T04:28:22.000Z
2018-12-09T14:20:29.000Z
defmodule Web do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use Web, :controller use Web, :view The definitions below will be executed for every view, controller, etc, so keep them sho...
22.151515
69
0.679207
65fc6b6d449d804adb60e50336e7cfaecafd6de8
1,119
exs
Elixir
apps/world/config/config.exs
smartlogic/elixir-node-balancing
ddf1ae7ff71f93b7decafa679b2fa4b5fb1937c4
[ "MIT" ]
1
2017-12-01T23:09:10.000Z
2017-12-01T23:09:10.000Z
apps/world/config/config.exs
smartlogic/elixir-node-balancing
ddf1ae7ff71f93b7decafa679b2fa4b5fb1937c4
[ "MIT" ]
null
null
null
apps/world/config/config.exs
smartlogic/elixir-node-balancing
ddf1ae7ff71f93b7decafa679b2fa4b5fb1937c4
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.096774
73
0.75067
65fc75329ba7e1234112ae11ee9b14140d9cc623
1,815
exs
Elixir
test/discowatch_test.exs
juhalehtonen/discowatch
f1f942ccd4887609289bd63d80a817cec524ea62
[ "MIT" ]
null
null
null
test/discowatch_test.exs
juhalehtonen/discowatch
f1f942ccd4887609289bd63d80a817cec524ea62
[ "MIT" ]
null
null
null
test/discowatch_test.exs
juhalehtonen/discowatch
f1f942ccd4887609289bd63d80a817cec524ea62
[ "MIT" ]
null
null
null
defmodule DiscowatchTest do @moduledoc """ Insert all Discowatch tests on this file, unless we start expanding features and want to split the scraper and the bot to separate files. Prefer placing the expected result on the right, unless the assertion is a pattern match. Whatever you do, be consistent about i...
30.25
89
0.711846
65fca99aa04761f8b0a0dc347f732836e97c676a
3,271
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_token.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_token.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_token.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.482353
212
0.745644
65fcb1611bbad13fd18d8b54569e0580bb91965d
399
exs
Elixir
apps/location_service/test/address_test.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
apps/location_service/test/address_test.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
apps/location_service/test/address_test.exs
mbta/crispy-spoon
7ef28a1a6adc73899b007e334b9220f7a48a60fa
[ "MIT" ]
null
null
null
defmodule LocationService.AddressTest do use ExUnit.Case alias LocationService.Address alias Util.Position describe "Address" do test "implements the Position protocol" do Protocol.assert_impl!(Position, Address) address = %Address{} assert Position.latitude(address) == address.latitude ...
26.6
61
0.734336
65fcb6a7d442f81590654b0c52a22e5ac907f2f1
2,375
ex
Elixir
clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_location.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_location.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_location.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...
40.254237
186
0.701474
65fcbce544234008fbd382ff016057cecae9c436
3,047
ex
Elixir
web/controllers/document_controller.ex
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
web/controllers/document_controller.ex
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
web/controllers/document_controller.ex
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
defmodule Scipse.DocumentController do use Scipse.Web, :controller alias Scipse.Document alias Scipse.PDFUtil alias Ecto.Changeset require Logger plug :superadmin_only when action in [:delete] def index(conn, _params) do documents = Repo.all(Document) render(conn, "index.html", documents: docume...
32.763441
88
0.64063
65fce055789d29031d3d551c24911dbd8b8bfa46
1,364
ex
Elixir
web/channels/user_socket.ex
rjdellecese/hon-graffiti-phoenix
a1ee866ef89f9b8ebb45a644db0b19729a37b07d
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
rjdellecese/hon-graffiti-phoenix
a1ee866ef89f9b8ebb45a644db0b19729a37b07d
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
rjdellecese/hon-graffiti-phoenix
a1ee866ef89f9b8ebb45a644db0b19729a37b07d
[ "MIT" ]
null
null
null
defmodule HonGraffitiPhoenix.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", HonGraffitiPhoenix.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket, timeout: 45_000 # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client an...
31.72093
77
0.705279
65fcf9db36166a461fd0b3bdbaccde3713f5dfd3
320
exs
Elixir
backend/voxel_handler/priv/repo/migrations/20220306132130_create_order.exs
SAZZM/voxel-handle2
2e5635a232a71f95c39407da042618017464e497
[ "MIT" ]
5
2022-03-06T15:31:54.000Z
2022-03-27T12:10:13.000Z
backend/voxel_handler/priv/repo/migrations/20220306132130_create_order.exs
SAZZM/voxel-handle2
2e5635a232a71f95c39407da042618017464e497
[ "MIT" ]
9
2022-03-01T05:17:43.000Z
2022-03-11T01:04:24.000Z
backend/voxel_handler/priv/repo/migrations/20220306132130_create_order.exs
SAZZM/voxel-handle2
2e5635a232a71f95c39407da042618017464e497
[ "MIT" ]
5
2022-03-04T15:52:44.000Z
2022-03-27T12:16:27.000Z
defmodule VoxelHandler.Repo.Migrations.CreateOrder do use Ecto.Migration def change do create table :order do add :address, :string add :information, :text add :unique_id, :string add :signature, :string add :finished, :boolean, default: false timestamps() end end end
21.333333
53
0.6625
65fd14cfd5f3b5324499cb57071cb3df79fcbc43
3,437
exs
Elixir
test/ecto_extract_migrations_test.exs
jonseaberg/ecto_extract_migrations
6372825495b702386c291a5dda2f63ad1c8317ca
[ "Apache-2.0" ]
7
2020-09-02T14:50:12.000Z
2021-11-12T20:07:36.000Z
test/ecto_extract_migrations_test.exs
jonseaberg/ecto_extract_migrations
6372825495b702386c291a5dda2f63ad1c8317ca
[ "Apache-2.0" ]
2
2020-10-31T12:17:25.000Z
2020-11-05T13:13:13.000Z
test/ecto_extract_migrations_test.exs
jonseaberg/ecto_extract_migrations
6372825495b702386c291a5dda2f63ad1c8317ca
[ "Apache-2.0" ]
3
2020-10-31T11:46:31.000Z
2022-02-11T15:23:10.000Z
defmodule EctoExtractMigrationsTest do use ExUnit.Case import EctoExtractMigrations test "sql_name_to_module/1" do assert "Mytable" == sql_name_to_module("mytable") assert "Myschema.Mytable" == sql_name_to_module(["myschema", "mytable"]) assert "Mytable" == sql_name_to_module(["public", "mytable"]) ...
26.643411
126
0.626127
65fd1e21fcffad91afbf4d59f6fbaf140e97c04f
1,650
ex
Elixir
server/lib/events_app_web/endpoint.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
null
null
null
server/lib/events_app_web/endpoint.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
null
null
null
server/lib/events_app_web/endpoint.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
1
2021-04-10T18:37:30.000Z
2021-04-10T18:37:30.000Z
defmodule CompanyTestWeb.Endpoint do use Phoenix.Endpoint, otp_app: :events_app # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_ev...
29.464286
97
0.722424
65fd5ef9f64087447150f77246bb520ab8c63760
487
ex
Elixir
lib/covid19_questionnaire/release.ex
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
3
2020-04-08T19:15:22.000Z
2020-05-24T22:37:54.000Z
lib/covid19_questionnaire/release.ex
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
10
2020-04-05T17:31:49.000Z
2020-06-10T11:09:17.000Z
lib/covid19_questionnaire/release.ex
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
null
null
null
defmodule Covid19Questionnaire.Release do @moduledoc false @app :covid19_questionnaire def migrate do for repo <- repos() do {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true)) end end def rollback(repo, version) do {:ok, _, _} = Ecto.Migrator.with_repo(rep...
23.190476
91
0.675565
65fd62ba452d875749138fc3b7f0dc3ec83fa258
1,640
exs
Elixir
integration_test/support/models.exs
thiagoarrais/ecto
93d7595beb7f407775c4918d19cad370b0bcd498
[ "Apache-2.0" ]
null
null
null
integration_test/support/models.exs
thiagoarrais/ecto
93d7595beb7f407775c4918d19cad370b0bcd498
[ "Apache-2.0" ]
null
null
null
integration_test/support/models.exs
thiagoarrais/ecto
93d7595beb7f407775c4918d19cad370b0bcd498
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test/support/types.exs", __DIR__ defmodule Ecto.Integration.Post do use Ecto.Model schema "posts" do field :title, :string field :counter, :integer, read_after_writes: true field :text, :string field :tags, {:array, :string} field :bin, :binary field :uuid, :uuid ...
22.777778
73
0.709756
65fd9805e187581449ca147a97a6e0a981f7dd8a
3,146
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/test_failure.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/test_failure.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/test_failure.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
44.309859
173
0.704704
65fde7200badb9971fcbe394efcf510d339f6769
435
exs
Elixir
test/phelmx_web/views/error_view_test.exs
ilkka/phoenix-elm-graphql-starter
fd88adf0e471eb97feb98a32026c2a1581e55490
[ "Apache-2.0" ]
null
null
null
test/phelmx_web/views/error_view_test.exs
ilkka/phoenix-elm-graphql-starter
fd88adf0e471eb97feb98a32026c2a1581e55490
[ "Apache-2.0" ]
null
null
null
test/phelmx_web/views/error_view_test.exs
ilkka/phoenix-elm-graphql-starter
fd88adf0e471eb97feb98a32026c2a1581e55490
[ "Apache-2.0" ]
null
null
null
defmodule PhelmxWeb.ErrorViewTest do use PhelmxWeb.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(PhelmxWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" d...
25.588235
67
0.694253
65fdfe617d6acf171de229bd2199463b71d0e0f7
172
exs
Elixir
elixir/103.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/103.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/103.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
defmodule MyList do def map([], _func), do: [] def map([head|tail], func), do: [func.(head) | map(tail, func)] end IO.inspect MyList.map [1,2,3,4], fn(n) -> n * n end
24.571429
65
0.593023
65fe0438df02f8f96218e046ffb9a7afb86fc18a
2,110
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1/model/certificate_extension_constraints.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/certificate_extension_constraints.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/certificate_extension_constraints.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...
42.2
258
0.753081
65fe05461c3b11b575df5b7cd99827c50c596244
1,650
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_group_managers_recreate_instances_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/instance_group_managers_recreate_instances_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_group_managers_recreate_instances_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 ...
31.730769
200
0.743636
65fe0d93230be142e064804cc0847926b918e093
159
ex
Elixir
test/support/wip_helpers.ex
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
32
2020-07-01T17:25:08.000Z
2022-03-23T05:38:38.000Z
test/support/wip_helpers.ex
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
91
2020-06-30T09:08:00.000Z
2022-03-24T18:11:16.000Z
test/support/wip_helpers.ex
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
22
2020-07-02T08:50:17.000Z
2022-02-21T08:31:27.000Z
defmodule Support.WipHelpers do defmacro assert_size list, size do quote do assert Enum.count(unquote(list)) == unquote(size) end end end
17.666667
55
0.691824
65fe1c00301f81479d235e2388f23916cc83e948
1,895
ex
Elixir
clients/jobs/lib/google_api/jobs/v2/model/commute_info.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v2/model/commute_info.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v2/model/commute_info.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...
37.156863
279
0.74723
65fe2a1061f79ac44b18319cb961117d203439c6
1,241
ex
Elixir
lib/teiserver/account/auth.ex
adelq/teiserver
77140896df6b4e1ec9e680d64c31ffb528158d14
[ "MIT" ]
null
null
null
lib/teiserver/account/auth.ex
adelq/teiserver
77140896df6b4e1ec9e680d64c31ffb528158d14
[ "MIT" ]
null
null
null
lib/teiserver/account/auth.ex
adelq/teiserver
77140896df6b4e1ec9e680d64c31ffb528158d14
[ "MIT" ]
null
null
null
defmodule Teiserver.Account.Auth do @behaviour Bodyguard.Policy import Central.Account.AuthLib, only: [allow?: 2] def authorize(:index, conn, _), do: allow?(conn, "teiserver.moderator.account") def authorize(:search, conn, _), do: allow?(conn, "teiserver.moderator.account") def authorize(:show, conn, _), do:...
40.032258
90
0.725222
65fe45c501a909e79eef93e0659b3e59f48349ef
369
ex
Elixir
ui/lib/ui/www/layout.ex
ejc123/meeting_indicator
7557971f1a8fece55b01c25dc633be1bb1b9cc2c
[ "Apache-2.0" ]
null
null
null
ui/lib/ui/www/layout.ex
ejc123/meeting_indicator
7557971f1a8fece55b01c25dc633be1bb1b9cc2c
[ "Apache-2.0" ]
null
null
null
ui/lib/ui/www/layout.ex
ejc123/meeting_indicator
7557971f1a8fece55b01c25dc633be1bb1b9cc2c
[ "Apache-2.0" ]
null
null
null
defmodule Ui.WWW.Layout do use Raxx.View.Layout, optional: [flash: %{}, title: "ui"] # Shared template helper functions. # Use `~E` or the `partial/3` macro to generate HTML safely. def display_date(date) do Date.to_iso8601(date) end def home_page_link() do ~E""" <a href="/">Home</a> ...
18.45
62
0.626016
65fe5c21cefe7d75ab18704bfc9de7dee0fa2a2b
1,062
exs
Elixir
config/prod.exs
mmacai/reactive-interaction-gateway
edb9262c65b10a8a5dc21ebf326cf73638e97d36
[ "Apache-2.0" ]
1
2019-11-06T13:35:35.000Z
2019-11-06T13:35:35.000Z
config/prod.exs
mmacai/reactive-interaction-gateway
edb9262c65b10a8a5dc21ebf326cf73638e97d36
[ "Apache-2.0" ]
null
null
null
config/prod.exs
mmacai/reactive-interaction-gateway
edb9262c65b10a8a5dc21ebf326cf73638e97d36
[ "Apache-2.0" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
29.5
61
0.76177
65fe6ea4b32ebdcc36b0b3a74f72b2d608bc9960
2,010
exs
Elixir
test/advent_of_code/day_10_test.exs
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
1
2018-12-03T11:24:19.000Z
2018-12-03T11:24:19.000Z
test/advent_of_code/day_10_test.exs
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
null
null
null
test/advent_of_code/day_10_test.exs
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Day10Test do use ExUnit.Case, async: true @input [ "position=< 9, 1> velocity=< 0, 2>", "position=< 7, 0> velocity=<-1, 0>", "position=< 3, -2> velocity=<-1, 1>", "position=< 6, 10> velocity=<-2, -1>", "position=< 2, -4> velocity=< 2, 2>", "position=<-6, 10> vel...
34.655172
76
0.421393
65fe73a17cd9b0fc2ce03399ff25577c8bf6eb8a
2,966
ex
Elixir
lib/pile/extras/changeset_x.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
lib/pile/extras/changeset_x.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
null
null
null
lib/pile/extras/changeset_x.ex
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule Ecto.ChangesetX do use ExContract alias Ecto.Changeset use Crit.Types # --------Fields and changes --------------------------------------------- def newest!(cs, keys) when is_list(keys), do: Enum.map(keys, &(newest!(cs, &1))) def newest!(cs, field), do: Changeset.fetch_field!(cs, field) def ...
31.892473
82
0.632165
65fe8868a6b7c75882025fd3aa44e0616465d43c
2,562
ex
Elixir
lib/ui/list_task.ex
mugimaru73/clean_mixer
cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d
[ "Apache-2.0" ]
null
null
null
lib/ui/list_task.ex
mugimaru73/clean_mixer
cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d
[ "Apache-2.0" ]
null
null
null
lib/ui/list_task.ex
mugimaru73/clean_mixer
cd234a9b0c2823f1f9c2c2ba1cdab92a0cb08c3d
[ "Apache-2.0" ]
null
null
null
defmodule CleanMixer.UI.ListTask do alias CleanMixer.ArchMap.Filter alias CleanMixer.UI.ArchMapRendering.TextRenderer alias CleanMixer.UI.CLI @spec run(list(String.t()), TextRenderer.t()) :: :ok def run(args, renderer, extra_cli_desc \\ []) do Mix.Task.run("compile") params = parse_params(args, extr...
26.142857
62
0.57338
65fe92b3f1082ff77c4371ec4c0b19e094e155e6
609
exs
Elixir
apps/re/priv/repo/migrations/20190718171038_create_calendars.exs
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re/priv/repo/migrations/20190718171038_create_calendars.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
null
null
null
apps/re/priv/repo/migrations/20190718171038_create_calendars.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule Re.Repo.Migrations.CreateCalendars do use Ecto.Migration def change do create table(:calendars, primary_key: false) do add :uuid, :uuid, primary_key: true add :external_id, :string, null: false add :shift_start, :time, null: false add :shift_end, :time, null: false time...
30.45
95
0.688013
65fe9dc127908a0a94ae693fda4b43a978c3644a
817
exs
Elixir
mix.exs
yosriady/decision_tree
5b7806d8676c9ebe564de535d4920f48e5f2ab8f
[ "Unlicense" ]
10
2017-02-14T21:46:54.000Z
2021-12-30T00:37:04.000Z
mix.exs
yosriady/decision_tree
5b7806d8676c9ebe564de535d4920f48e5f2ab8f
[ "Unlicense" ]
null
null
null
mix.exs
yosriady/decision_tree
5b7806d8676c9ebe564de535d4920f48e5f2ab8f
[ "Unlicense" ]
null
null
null
defmodule DecisionTree.Mixfile do use Mix.Project def project do [app: :decision_tree, version: "0.0.1", elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.ap...
22.694444
77
0.578947
65fed306b5e07c9bdda853a90b7505abc6b4398f
477
ex
Elixir
lib/star_web/router.ex
ModinfinityLLC/star
6d56cea1c08f88b73984f7ad1197e4337139995f
[ "MIT" ]
2
2019-05-27T22:56:48.000Z
2019-06-17T14:42:53.000Z
lib/star_web/router.ex
ModinfinityLLC/star
6d56cea1c08f88b73984f7ad1197e4337139995f
[ "MIT" ]
3
2020-07-17T03:13:04.000Z
2021-05-08T22:56:26.000Z
lib/star_web/router.ex
ModinfinityLLC/star
6d56cea1c08f88b73984f7ad1197e4337139995f
[ "MIT" ]
null
null
null
defmodule StarWeb.Router do use StarWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", StarWeb do pipe_through :...
17.666667
39
0.66457
65fedae37eb1b46794cb16a9d085df0d12aece32
11,008
ex
Elixir
debian/manpage.xml.ex
kam1sh/hypai
95e7392c85d689cba8f9f43418dc94472a9f17f8
[ "MIT" ]
null
null
null
debian/manpage.xml.ex
kam1sh/hypai
95e7392c85d689cba8f9f43418dc94472a9f17f8
[ "MIT" ]
null
null
null
debian/manpage.xml.ex
kam1sh/hypai
95e7392c85d689cba8f9f43418dc94472a9f17f8
[ "MIT" ]
null
null
null
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ <!-- `xsltproc -''-nonet \ -''-param man.charmap.use.subset "0" \ -''-param make.year.ranges "1" \ -''-param make.single.year.r...
37.69863
84
0.632177
65fedf72483937fcde6c70438ac41282e8401f87
1,391
ex
Elixir
implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/client.ex
piotr-cla/ockam
914cd3ec1620181ac64ad2fb13d843f3eb184464
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/client.ex
piotr-cla/ockam
914cd3ec1620181ac64ad2fb13d843f3eb184464
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/transport/tcp/client.ex
piotr-cla/ockam
914cd3ec1620181ac64ad2fb13d843f3eb184464
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Transport.TCP.Client do @moduledoc false use GenServer @impl true def init(%{ip: ip, port: port} = state) do # TODO: connect/3 and controlling_process/2 should be in a callback. {:ok, socket} = :gen_tcp.connect(ip, port, [:binary, :inet, active: true, packet: 2]) :gen_tcp.controllin...
30.911111
95
0.641984
65fee777cbdf60076f947eb7de6deb911aa17fd1
4,321
ex
Elixir
lib/meddle.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
lib/meddle.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
lib/meddle.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
defmodule Meddle do @moduledoc false use Boundary, deps: [], exports: [] alias Meddle.{Interceptor, Pipe, Stage} # TODO: parallel interceptor? # TODO: middleware for timeout/2, requires/2, provides/2, satisfies/2 # these may belong in MeddleUtils (or something similar), as they should require `Oath`...
24.275281
95
0.623467
65fef142f5dd084678844ba1da08d6367d273156
482
ex
Elixir
apps/protocol_destination/lib/destination.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/protocol_destination/lib/destination.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/protocol_destination/lib/destination.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defprotocol Destination do @moduledoc """ Defines a protocol for data destinations -- where data is written or loaded into. """ @spec start_link(t, Destination.Context.t()) :: GenServer.on_start() def start_link(t, context) @spec write(t, GenServer.server(), messages :: list(term)) :: :ok | {:error, term} ...
28.352941
84
0.6639
65ff03620bd30748f32706916f1e83baa9d03d82
1,758
ex
Elixir
installer/lib/phx_new/ecto.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
null
null
null
installer/lib/phx_new/ecto.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
null
null
null
installer/lib/phx_new/ecto.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
null
null
null
defmodule Phx.New.Ecto do @moduledoc false use Phx.New.Generator alias Phx.New.{Project} @pre "phx_umbrella/apps/app_name" template :new, [ {:eex, "#{@pre}/config/config.exs", :app, "config/config.exs"}, {:eex, "#{@pre}/config/dev.exs", :app, "config/dev.exs"}, {:eex, "...
35.877551
84
0.56314
65ff21c62cf948d11f34df6ba671ae6e1d503e4a
2,143
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.614286
138
0.681288
65ff77475908a5c5723a85ec505a11bcef34c9da
229
exs
Elixir
priv/repo/migrations/20170923130822_add_active_years_to_players.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
priv/repo/migrations/20170923130822_add_active_years_to_players.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
priv/repo/migrations/20170923130822_add_active_years_to_players.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338.Repo.Migrations.AddActiveYearsToPlayers do use Ecto.Migration def change do alter table(:fantasy_players) do add :start_year, :integer, default: 2017 add :end_year, :integer end end end
20.818182
58
0.720524
65ff865e697ac43869bdad78659a7dd336d168d6
4,579
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_config.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...
64.492958
701
0.745359
65ff97b118056049e687313133c420e413bc1d1e
218
exs
Elixir
priv/repo/migrations/20181019214309_create_hypervisor_types.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
12
2019-07-02T14:30:06.000Z
2022-03-12T08:22:18.000Z
priv/repo/migrations/20181019214309_create_hypervisor_types.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
9
2020-03-16T20:10:50.000Z
2021-06-17T17:45:44.000Z
priv/repo/migrations/20181019214309_create_hypervisor_types.exs
runhyve/webapp
434b074f98c1ebac657b56062c1c1a54e683dea1
[ "BSD-2-Clause" ]
null
null
null
defmodule Webapp.Repo.Migrations.CreateHypervisorTypes do use Ecto.Migration def change do create table(:hypervisor_types) do add(:name, :string) timestamps(type: :utc_datetime) end end end
18.166667
57
0.715596
65ffa8418c36c707283d324c333b8461c836c8e6
41,540
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
kassio/elixir
78551c11c9c97bb608e4097d2e0c36458b11f535
[ "Apache-2.0" ]
1
2019-10-11T01:36:26.000Z
2019-10-11T01:36:26.000Z
lib/elixir/test/elixir/kernel/errors_test.exs
hiro-riveros/elixir
c6da1cfaa83e420726be25617440fc09f118de52
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
hiro-riveros/elixir
c6da1cfaa83e420726be25617440fc09f118de52
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true defmacro hello do quote location: :keep do def hello, do: :world end end test "no optional arguments in fn" do assert_eval_raise CompileError, "nofile:1: anonym...
34.387417
155
0.548146
65ffbd3930b2242ae1e8efff099ed2c780561af4
9,206
ex
Elixir
lib/ecto/embedded.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
3,931
2016-06-16T11:38:48.000Z
2022-03-31T21:24:19.000Z
lib/ecto/embedded.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
2,343
2016-06-16T11:18:09.000Z
2022-03-27T23:44:43.000Z
deps/ecto/lib/ecto/embedded.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
1,300
2016-06-17T13:56:59.000Z
2022-03-31T01:46:20.000Z
defmodule Ecto.Embedded do @moduledoc """ The embedding struct for `embeds_one` and `embeds_many`. Its fields are: * `cardinality` - The association cardinality * `field` - The name of the association field on the schema * `owner` - The schema where the association was defined * `related` - The ...
32.996416
110
0.662611
65ffc51eff0d36bf6d6ee3d0f3030e32347cb632
1,160
ex
Elixir
lib/cash_flow_ex_graphql/schema/user/mutations.ex
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
lib/cash_flow_ex_graphql/schema/user/mutations.ex
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
lib/cash_flow_ex_graphql/schema/user/mutations.ex
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
defmodule CashFlowExGraphQL.Schema.User.Mutations do use CashFlowExGraphQL.Helpers.GqlSchemaSuite # alias CashFlowExGraphQL.Schema.{ # User # } object :user_mutations do # import_types(User.Types) field :create_user, type: :users do arg(:user_login, non_null(:string)) arg(:password, n...
25.217391
52
0.632759
65ffe0af1dead819fb97e4b60ff1cf2b76b30f87
1,395
exs
Elixir
test/exfile/ecto/validate_content_type_test.exs
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
100
2015-12-25T12:38:41.000Z
2021-12-31T11:41:20.000Z
test/exfile/ecto/validate_content_type_test.exs
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
62
2015-12-26T01:43:54.000Z
2019-09-15T16:16:35.000Z
test/exfile/ecto/validate_content_type_test.exs
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
22
2016-04-19T11:54:38.000Z
2021-09-29T14:48:46.000Z
defmodule Exfile.Ecto.ValidateContentTypeTest do use ExUnit.Case, async: true import Ecto.Changeset, only: [cast: 3] import Exfile.Ecto.ValidateContentType setup do :ok = Ecto.Adapters.SQL.Sandbox.checkout(Exfile.Repo) :ok end test "passes with correct content type" do changeset = cast(initi...
26.826923
77
0.670968
65fffe6e2a5866623cd9171eb97a9346e67eaa4b
1,129
exs
Elixir
config/config.exs
antimon2/combinatorics.ex
b8c2062fbba9db22a4351b45b2d63b9b8d1cab15
[ "MIT" ]
null
null
null
config/config.exs
antimon2/combinatorics.ex
b8c2062fbba9db22a4351b45b2d63b9b8d1cab15
[ "MIT" ]
null
null
null
config/config.exs
antimon2/combinatorics.ex
b8c2062fbba9db22a4351b45b2d63b9b8d1cab15
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.419355
73
0.753764
5a004676c8dd08e464be41637da1a25bb8e1b8d4
75
ex
Elixir
web/views/page_view.ex
mule/phoenix-elm-auth
6b7b3019c53673bf3b4b2b41fa3eec8f75d08947
[ "MIT" ]
1
2016-07-06T02:06:31.000Z
2016-07-06T02:06:31.000Z
web/views/page_view.ex
mule/phoenix-elm-auth
6b7b3019c53673bf3b4b2b41fa3eec8f75d08947
[ "MIT" ]
1
2017-04-07T12:58:38.000Z
2017-04-07T12:58:38.000Z
web/views/page_view.ex
mule/phoenix-elm-auth
6b7b3019c53673bf3b4b2b41fa3eec8f75d08947
[ "MIT" ]
null
null
null
defmodule PhoenixAuthKata.PageView do use PhoenixAuthKata.Web, :view end
18.75
37
0.826667
5a0064a88a1c18938346c5d9a00ae9a9039f0b07
18,114
ex
Elixir
clients/billing_budgets/lib/google_api/billing_budgets/v1/api/billing_accounts.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1/api/billing_accounts.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/billing_budgets/lib/google_api/billing_budgets/v1/api/billing_accounts.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.742424
372
0.630396
5a006621b19e612045fe6eb69975dfb937118a96
1,796
ex
Elixir
project/gamenect/test/support/model_case.ex
daemonfire300/learning_phoenix
0ab0cb1feacda4ec5c0ab0a5324835a150db22ab
[ "MIT" ]
null
null
null
project/gamenect/test/support/model_case.ex
daemonfire300/learning_phoenix
0ab0cb1feacda4ec5c0ab0a5324835a150db22ab
[ "MIT" ]
null
null
null
project/gamenect/test/support/model_case.ex
daemonfire300/learning_phoenix
0ab0cb1feacda4ec5c0ab0a5324835a150db22ab
[ "MIT" ]
null
null
null
defmodule Gamenect.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be async. For...
27.212121
84
0.685969
5a00aeffc0da93394968505bad01c3bd6891e876
1,076
ex
Elixir
lib/cgrates_web_jsonapi_web/channels/user_socket.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
2
2018-10-03T07:41:32.000Z
2021-03-21T11:27:27.000Z
lib/cgrates_web_jsonapi_web/channels/user_socket.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
1
2018-10-31T04:55:59.000Z
2018-10-31T04:55:59.000Z
lib/cgrates_web_jsonapi_web/channels/user_socket.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
5
2018-09-27T11:30:44.000Z
2021-01-16T08:28:58.000Z
defmodule CgratesWebJsonapiWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", CgratesWebJsonapi.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 will be s...
31.647059
90
0.701673
5a00b1431f4895faaef7aa71565b3b8745287455
1,621
ex
Elixir
apps/legion/lib/meta/naming.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion/lib/meta/naming.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion/lib/meta/naming.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.Meta.Naming do @moduledoc """ Functions for dealing with Elixir naming conventions & module syntax. **This module uses `Phoenix.Naming` functions.** """ alias Phoenix.Naming @doc """ Converts String to camel case. Takes an optional `:lower` option to return `lowerCamelCase`. In ad...
24.560606
71
0.665022
5a00da899e79dcdce5282fbac6c66584a2667dc8
90
exs
Elixir
apps/evm/test/evm/functions_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/evm/test/evm/functions_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/evm/test/evm/functions_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule EVM.FunctionsTest do use ExUnit.Case, async: true doctest EVM.Functions end
18
30
0.788889
5a00f56029bd71d7afaba64956ae5d647a8d9e42
1,360
ex
Elixir
lib/kerbal_maps_web/router.ex
CraigCottingham/ksp-maps
ffd81c5e667cf6ca7770e717c736e51489c0c3d3
[ "Apache-2.0" ]
6
2019-01-25T12:07:43.000Z
2021-09-09T20:31:39.000Z
lib/kerbal_maps_web/router.ex
CraigCottingham/ksp-maps
ffd81c5e667cf6ca7770e717c736e51489c0c3d3
[ "Apache-2.0" ]
144
2019-01-26T02:20:07.000Z
2021-07-21T06:28:23.000Z
lib/kerbal_maps_web/router.ex
CraigCottingham/ksp-maps
ffd81c5e667cf6ca7770e717c736e51489c0c3d3
[ "Apache-2.0" ]
2
2019-07-31T21:11:00.000Z
2020-04-15T19:51:14.000Z
defmodule KerbalMapsWeb.Router do @moduledoc false use KerbalMapsWeb, :router use Pow.Phoenix.Router use Pow.Extension.Phoenix.Router, otp_app: :kerbal_maps alias Phoenix.Token pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery ...
21.935484
65
0.685294
5a0109747a29aecbe2aa53c49b23c0f4f1edd2e4
1,378
exs
Elixir
mix.exs
asher-scott/httpoison
6d265ffb0380fa8a1abff74c98e838e9e3713628
[ "MIT" ]
2,157
2015-01-03T11:03:33.000Z
2022-03-31T12:03:59.000Z
mix.exs
asher-scott/httpoison
6d265ffb0380fa8a1abff74c98e838e9e3713628
[ "MIT" ]
397
2015-01-04T07:48:19.000Z
2022-03-31T07:01:43.000Z
mix.exs
asher-scott/httpoison
6d265ffb0380fa8a1abff74c98e838e9e3713628
[ "MIT" ]
441
2015-01-08T22:13:20.000Z
2022-03-29T17:52:23.000Z
defmodule HTTPoison.Mixfile do use Mix.Project @description "Yet Another HTTP client for Elixir powered by hackney" @source_url "https://github.com/edgurgel/httpoison" def project do [ app: :httpoison, version: "1.8.0", elixir: "~> 1.8", name: "HTTPoison", description: @descr...
21.2
71
0.496372
5a0109fe692997d6d8986cbb564ed5d8bd4acc6f
339
ex
Elixir
lib/html5ever/native.ex
ben-ic/html5ever_elixir
2abd88797e528fc568ce6dc0ea63c072da2e294b
[ "Apache-2.0", "MIT" ]
1
2019-04-24T09:27:50.000Z
2019-04-24T09:27:50.000Z
lib/html5ever/native.ex
chingan-tsc/html5ever_elixir
579a1aa8e0ed55b27dd09765099794a325c00ffa
[ "Apache-2.0" ]
null
null
null
lib/html5ever/native.ex
chingan-tsc/html5ever_elixir
579a1aa8e0ed55b27dd09765099794a325c00ffa
[ "Apache-2.0" ]
null
null
null
defmodule NifNotLoadedError do defexception message: "nif not loaded" end defmodule Html5ever.Native do use Rustler, otp_app: :html5ever, crate: "html5ever_nif" def parse_async(_binary), do: err() def parse_sync(_binary), do: err() def flat_parse_sync(_binary), do: err() defp err() do throw NifNotLoa...
21.1875
58
0.737463
5a0114deee823954e4deb39530ebc5f10983addc
1,376
ex
Elixir
test/support/components/investigation_note.ex
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
test/support/components/investigation_note.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
test/support/components/investigation_note.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule EpicenterWeb.Test.Components.InvestigationNote do import ExUnit.Assertions import Phoenix.LiveViewTest alias Epicenter.Test alias Phoenix.LiveViewTest.View @spec delete_note(%View{}, String.t()) :: :ok | :note_not_found | :delete_button_not_found def delete_note(%View{} = view, note_id) do v...
28.081633
99
0.619186
5a011630d05dbef2bf58e70de7229e7a207281ed
831
ex
Elixir
lib/tortoise/package/pubrec.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
272
2018-04-22T22:47:35.000Z
2022-03-01T05:22:02.000Z
lib/tortoise/package/pubrec.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
120
2018-04-22T20:42:04.000Z
2022-01-20T23:12:13.000Z
lib/tortoise/package/pubrec.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
58
2018-04-24T06:28:36.000Z
2022-02-09T06:55:42.000Z
defmodule Tortoise.Package.Pubrec do @moduledoc false @opcode 5 alias Tortoise.Package @opaque t :: %__MODULE__{ __META__: Package.Meta.t(), identifier: Tortoise.package_identifier() } defstruct __META__: %Package.Meta{opcode: @opcode, flags: 0b000}, identifier...
28.655172
82
0.604091
5a011680f6b7bc703bab98271b0d0d3e70e28560
6,956
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/api/floodlight_groups.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/api/floodlight_groups.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/api/floodlight_groups.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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.305732
196
0.643473
5a011ea19a83bfc09f4db681ac3de86bf989f51c
4,281
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/model/group.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/model/group.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/model/group.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
57.851351
419
0.698902
5a01228f3b448f408e659cf6306380e951b98c7a
14,653
ex
Elixir
lib/iex/lib/iex.ex
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex.ex
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex.ex
carlosantoniodasilva/elixir
0b7d1c9d4964cd6699b72298294844d8d7d694b5
[ "Apache-2.0" ]
null
null
null
defmodule IEx do @moduledoc ~S""" Elixir's interactive shell. This module is the main entry point for Interactive Elixir and in this documentation we will talk a bit about how IEx works. Notice that some of the functionalities described here will not be available depending on your terminal. In particular,...
29.661943
97
0.666416
5a013edddd593835070f0a59f84d674e50a2d25f
2,900
exs
Elixir
test/api/category_test.exs
pootsbook/exclubhouse
3b93cded0124e4e5df489db4f9262a560595bb8e
[ "MIT" ]
4
2020-03-17T00:42:10.000Z
2021-04-11T16:39:52.000Z
test/api/category_test.exs
pootsbook/exclubhouse
3b93cded0124e4e5df489db4f9262a560595bb8e
[ "MIT" ]
7
2020-03-21T20:22:13.000Z
2021-12-30T16:32:07.000Z
test/api/category_test.exs
pootsbook/exclubhouse
3b93cded0124e4e5df489db4f9262a560595bb8e
[ "MIT" ]
4
2020-03-25T18:34:49.000Z
2021-09-13T16:44:00.000Z
defmodule ExClubhouse.Api.CategoryTest do use ExUnit.Case, async: true use Mimic alias ExClubhouse.Support.ResponseBuilder alias ExClubhouse.Api.Category alias ExClubhouse.Model alias ExClubhouse.Model.Input describe "list/1" do test "succeeds with the right response" do HTTPoison |> exp...
23.577236
87
0.566897
5a01604b11932901de7f32882d1611f5c70fd408
1,472
ex
Elixir
clients/security_center/lib/google_api/security_center/v1/model/empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/security_center/lib/google_api/security_center/v1/model/empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/security_center/lib/google_api/security_center/v1/model/empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.047619
282
0.76019
5a01696518cdd002bba4ec86b8abb4c5e37bdba6
1,121
exs
Elixir
config/config.exs
suitepad-gmbh/rodeo
c1e6cf688c894508d084a0b953506a846fc3d325
[ "MIT" ]
null
null
null
config/config.exs
suitepad-gmbh/rodeo
c1e6cf688c894508d084a0b953506a846fc3d325
[ "MIT" ]
null
null
null
config/config.exs
suitepad-gmbh/rodeo
c1e6cf688c894508d084a0b953506a846fc3d325
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.16129
73
0.749331
5a0186bef4e39a045232d49e51ae2c75d0637d8a
3,546
ex
Elixir
lib/data_morph/struct.ex
robmckinnon/chas
a8d32c1e5c4636d631b87da5a536625e84e44b68
[ "MIT" ]
17
2016-08-02T13:17:34.000Z
2021-06-28T03:40:36.000Z
lib/data_morph/struct.ex
robmckinnon/chas
a8d32c1e5c4636d631b87da5a536625e84e44b68
[ "MIT" ]
null
null
null
lib/data_morph/struct.ex
robmckinnon/chas
a8d32c1e5c4636d631b87da5a536625e84e44b68
[ "MIT" ]
1
2017-03-24T13:51:01.000Z
2017-03-24T13:51:01.000Z
defmodule DataMorph.Struct do @moduledoc ~S""" Contains `from_rows/3` function that defines a struct and return structs created from rows, and `defmodulestruct/2` macro to define a struct. """ @doc ~S""" Defines a struct from given `kind` alias and list of `fields`. When called a second time with additi...
31.660714
80
0.604907
5a01a34b977e94369cd2e4b1ac31baf00fc04945
1,472
ex
Elixir
clients/domains/lib/google_api/domains/v1beta1/model/authorization_code.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/domains/lib/google_api/domains/v1beta1/model/authorization_code.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/domains/lib/google_api/domains/v1beta1/model/authorization_code.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.319149
154
0.740489
5a01af43dcb575871cc68a29ba5b10def6156e6c
1,567
exs
Elixir
errors/errors_test.exs
nucleartide/errors
3c24fa246d4880350d969672ce73a84d53c8fa6a
[ "MIT" ]
26
2017-09-28T11:58:05.000Z
2019-10-27T06:57:35.000Z
errors/errors_test.exs
nucleartide/errors
3c24fa246d4880350d969672ce73a84d53c8fa6a
[ "MIT" ]
11
2017-09-30T13:51:39.000Z
2019-11-11T01:36:11.000Z
errors/errors_test.exs
nucleartide/errors
3c24fa246d4880350d969672ce73a84d53c8fa6a
[ "MIT" ]
null
null
null
defmodule ErrorsTest do use ExUnit.Case doctest Errors test "wrap/2" do err = %RuntimeError{} msg = "this is an error" assert %Errors.WrappedError{error: e, message: m} = Errors.wrap(err, msg) assert e == err assert m == msg end test "new/1" do msg = "is it dinner time yet" ass...
27.017241
79
0.611997
5a0212e6a047cceb676b946e73b5a9a561957433
385
ex
Elixir
lib/draft_web/auth_manager/error_handler.ex
paulswartz/draft
fc0653d75b39e861c4705545cfb86ad7cd0e2cd2
[ "MIT" ]
null
null
null
lib/draft_web/auth_manager/error_handler.ex
paulswartz/draft
fc0653d75b39e861c4705545cfb86ad7cd0e2cd2
[ "MIT" ]
null
null
null
lib/draft_web/auth_manager/error_handler.ex
paulswartz/draft
fc0653d75b39e861c4705545cfb86ad7cd0e2cd2
[ "MIT" ]
null
null
null
defmodule DraftWeb.AuthManager.ErrorHandler do @moduledoc """ Handle auth errors """ @behaviour Guardian.Plug.ErrorHandler alias DraftWeb.Router.Helpers require Logger @impl Guardian.Plug.ErrorHandler def auth_error(conn, {_type, _reason}, _opts) do Phoenix.Controller.redirect( conn, ...
20.263158
54
0.711688
5a0242ada9770699e7c10f41ee9e2bdbf7e7b08a
2,543
ex
Elixir
lib/appsignal/diagnose/paths.ex
taverngoal/appsignal-elixir
b7a991e14ff2482131daef0071f27b3d6b32b649
[ "MIT" ]
1
2020-08-11T08:13:25.000Z
2020-08-11T08:13:25.000Z
lib/appsignal/diagnose/paths.ex
gjaldon/appsignal-elixir
36d872d96d4c53152e365558bcfe96a3ba689fb9
[ "MIT" ]
null
null
null
lib/appsignal/diagnose/paths.ex
gjaldon/appsignal-elixir
36d872d96d4c53152e365558bcfe96a3ba689fb9
[ "MIT" ]
1
2020-10-08T20:22:54.000Z
2020-10-08T20:22:54.000Z
defmodule Appsignal.Diagnose.Paths do def info do log_file_path = Appsignal.Config.log_file_path() || "/tmp/appsignal.log" log_dir_path = Path.dirname(log_file_path) %{ working_dir: path_report(File.cwd!()), log_dir_path: path_report(log_dir_path), "appsignal.log": path_report(log_file_...
24.219048
95
0.519465
5a024c31311b8b695678a1d908beccb273afd99b
2,695
ex
Elixir
lib/astarte_flow/flows.ex
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
11
2020-01-30T17:44:35.000Z
2022-01-13T19:17:21.000Z
lib/astarte_flow/flows.ex
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
100
2020-02-11T10:01:35.000Z
2022-02-17T10:39:35.000Z
lib/astarte_flow/flows.ex
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
7
2020-01-30T11:33:20.000Z
2021-05-03T09:48:41.000Z
# # This file is part of Astarte. # # Copyright 2020 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
25.186916
85
0.642672
5a0279d1083c8ee66f8cd2116da4960d1b544e5c
856
ex
Elixir
lib/api/real.ex
m3ta4a/amplitude_ex
0fbd2ac7cbdaec4d8c0070b8f5fa6cd38eb7cb84
[ "BSD-3-Clause" ]
null
null
null
lib/api/real.ex
m3ta4a/amplitude_ex
0fbd2ac7cbdaec4d8c0070b8f5fa6cd38eb7cb84
[ "BSD-3-Clause" ]
null
null
null
lib/api/real.ex
m3ta4a/amplitude_ex
0fbd2ac7cbdaec4d8c0070b8f5fa6cd38eb7cb84
[ "BSD-3-Clause" ]
null
null
null
defmodule Amplitude.API.Real do use HTTPoison.Base defp api_host, do: Application.get_env(:amplitude, :api_host) defp api_key, do: Application.get_env(:amplitude, :api_key) defp json_header, do: ["Content-Type": "application/json"] def api_track(params) do case get(api_host(), [], params: [api_key: api_...
34.24
91
0.665888
5a02a0e43c9fd740f0a1202048d2f8d663239f1f
988
ex
Elixir
priv/templates/lib/web/router/insert.ex
hassan/veil
345b5d3539ccaba7e51b4e83583e9d15d8379fd4
[ "MIT" ]
164
2018-02-10T21:33:40.000Z
2022-03-15T06:10:50.000Z
priv/templates/lib/web/router/insert.ex
hassan/veil
345b5d3539ccaba7e51b4e83583e9d15d8379fd4
[ "MIT" ]
21
2018-02-15T02:31:40.000Z
2021-04-04T07:16:43.000Z
priv/templates/lib/web/router/insert.ex
hassan/veil
345b5d3539ccaba7e51b4e83583e9d15d8379fd4
[ "MIT" ]
14
2018-03-24T11:15:07.000Z
2020-06-28T12:33:38.000Z
# Default Routes for Veil scope "/veil", <%= web_module %>.Veil do <%= if html? do %> pipe_through(:browser) <% else %> pipe_through(:api) <% end %> post("/users", UserController, :create) <%= if html? do %> get("/users/new", UserController, :new) get("/sessions/new/:request_id...
31.870968
85
0.630567
5a02ba339c7c67e37ec6c7cb6ede0030ba52de19
347
exs
Elixir
apps/snitch_core/priv/repo/migrations/20180712075441_add_rating_option_vote_table.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/priv/repo/migrations/20180712075441_add_rating_option_vote_table.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/priv/repo/migrations/20180712075441_add_rating_option_vote_table.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Repo.Migrations.AddRatingOptionVote do use Ecto.Migration def change do create table(:snitch_rating_option_votes) do add(:rating_option_id, references(:snitch_rating_options), null: false) add(:review_id, references(:snitch_reviews, on_delete: :delete_all), null: false) time...
26.692308
87
0.743516
5a02ee979c95fdefab0ad12e86e944c9f721c5b8
3,379
exs
Elixir
mix.exs
pojiro/nerves_system_f3rp70
c978659251e42300ef61bc1f1e26b1387c968fc1
[ "Apache-2.0" ]
10
2021-06-06T10:46:39.000Z
2021-12-24T08:30:12.000Z
mix.exs
pojiro/nerves_system_f3rp70
c978659251e42300ef61bc1f1e26b1387c968fc1
[ "Apache-2.0" ]
2
2021-07-14T00:40:29.000Z
2021-07-14T02:09:38.000Z
mix.exs
pojiro/nerves_system_f3rp70
c978659251e42300ef61bc1f1e26b1387c968fc1
[ "Apache-2.0" ]
1
2022-02-10T13:49:46.000Z
2022-02-10T13:49:46.000Z
defmodule NervesSystemF3RP70.MixProject do use Mix.Project @github_organization "pojiro" @app :nerves_system_f3rp70 @source_url "https://github.com/#{@github_organization}/#{@app}" @version Path.join(__DIR__, "VERSION") |> File.read!() |> String.trim() def project do [ app:...
24.135714
83
0.58538
5a02f6574b5c38fbee35d7563d32547e4b1ca7c8
104
exs
Elixir
.formatter.exs
Ispirata/cfexexl
98dc50b1cfe5a682b051b38b83cebc644bc08488
[ "Apache-2.0" ]
5
2017-09-25T18:09:08.000Z
2017-09-26T07:09:10.000Z
.formatter.exs
Ispirata/cfexexl
98dc50b1cfe5a682b051b38b83cebc644bc08488
[ "Apache-2.0" ]
11
2017-09-25T17:03:33.000Z
2021-03-12T15:13:54.000Z
.formatter.exs
Ispirata/cfexexl
98dc50b1cfe5a682b051b38b83cebc644bc08488
[ "Apache-2.0" ]
3
2017-10-11T16:38:07.000Z
2021-03-12T10:54:50.000Z
[ import_deps: [], inputs: [ "lib/**/*.{ex,exs}", "test/**/*.{ex,exs}", "mix.exs" ] ]
11.555556
25
0.384615
5a02f6cbbf6446c43bee2ef6bd96f8fee6ad06cb
1,461
ex
Elixir
test/support/data_case.ex
chaiwa-berian/phoenix_react_playground
6c0394c05439378af46256de2f303d002c2c8b92
[ "Unlicense" ]
88
2017-09-01T03:13:00.000Z
2021-06-26T10:56:29.000Z
test/support/data_case.ex
chaiwa-berian/phoenix_react_playground
6c0394c05439378af46256de2f303d002c2c8b92
[ "Unlicense" ]
4
2020-07-17T10:56:38.000Z
2021-09-01T07:27:44.000Z
test/support/data_case.ex
chaiwa-berian/phoenix_react_playground
6c0394c05439378af46256de2f303d002c2c8b92
[ "Unlicense" ]
21
2017-09-01T03:18:09.000Z
2021-09-23T09:07:41.000Z
defmodule PhoenixReactPlayground.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, it cannot be async. For this rea...
27.055556
84
0.696783
5a0328535ab1a0db9eea1037f454621c178e2449
1,516
ex
Elixir
lib/surface/components/form/checkbox.ex
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
1
2021-04-30T14:28:08.000Z
2021-04-30T14:28:08.000Z
lib/surface/components/form/checkbox.ex
davydog187/surface
6547e015a70d06fe20548b5618d0666c4f7481d1
[ "MIT" ]
null
null
null
lib/surface/components/form/checkbox.ex
davydog187/surface
6547e015a70d06fe20548b5618d0666c4f7481d1
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.Checkbox do @moduledoc """ Defines a checkbox. Provides a wrapper for Phoenix.HTML.Form's `checkbox/3` function. All options passed via `opts` will be sent to `checkbox/3`, `value` and `class` can be set directly and will override anything in `opts`. ## Examples ``` ...
29.153846
123
0.67942
5a032ae07b2ca46a103a6e6a0cda3d08871c62b1
726
ex
Elixir
lib/phxwhttpoison_web/gettext.ex
mark-b-kauffman/phxwhttpoison
6d9acb505c302f19e5aba5ffc22166a8877a39d9
[ "BSD-3-Clause", "MIT" ]
null
null
null
lib/phxwhttpoison_web/gettext.ex
mark-b-kauffman/phxwhttpoison
6d9acb505c302f19e5aba5ffc22166a8877a39d9
[ "BSD-3-Clause", "MIT" ]
null
null
null
lib/phxwhttpoison_web/gettext.ex
mark-b-kauffman/phxwhttpoison
6d9acb505c302f19e5aba5ffc22166a8877a39d9
[ "BSD-3-Clause", "MIT" ]
null
null
null
defmodule PhxwhttpoisonWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import PhxwhttpoisonWeb.Gettext # Simple translation gettex...
29.04
72
0.688705
5a033045e3f2ddbfcc053d791ea3922fe2122f84
3,020
exs
Elixir
test/event_handler_test.exs
tinfoil/poxa
a1c3501ecf1df9873a5c7018dc7da0abe4556cec
[ "MIT" ]
null
null
null
test/event_handler_test.exs
tinfoil/poxa
a1c3501ecf1df9873a5c7018dc7da0abe4556cec
[ "MIT" ]
null
null
null
test/event_handler_test.exs
tinfoil/poxa
a1c3501ecf1df9873a5c7018dc7da0abe4556cec
[ "MIT" ]
null
null
null
defmodule Poxa.EventHandlerTest do use ExUnit.Case alias Poxa.PusherEvent alias Poxa.Authentication alias Poxa.Event import Mimic import Poxa.EventHandler setup :verify_on_exit! setup do stub(:cowboy_req) stub(Poison) stub(PusherEvent) :ok end test "malformed_request with valid da...
35.529412
106
0.643709
5a03379b2f91e1e48b2a0b1694478102b1163152
331
ex
Elixir
test/support/factory.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
test/support/factory.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
test/support/factory.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
defmodule DailyMeals.Factory do use ExMachina.Ecto, repo: DailyMeals.Repo alias DailyMeals.{Meal, User} def meal_factory do %Meal{ description: "um pratão de nada", calories: 3 } end def user_factory do %User{ name: "zé", email: "ze@email", cpf: "12345678901" }...
15.761905
43
0.610272
5a035021b71d7e7240fa48de44c12d1a39bc6102
14,969
ex
Elixir
lib/iex/lib/iex/autocomplete.ex
jfornoff/elixir
4ed5e8e66973ae7b0e52ead00f65117ab0d600e0
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/autocomplete.ex
jfornoff/elixir
4ed5e8e66973ae7b0e52ead00f65117ab0d600e0
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/autocomplete.ex
jfornoff/elixir
4ed5e8e66973ae7b0e52ead00f65117ab0d600e0
[ "Apache-2.0" ]
1
2021-09-30T01:21:02.000Z
2021-09-30T01:21:02.000Z
defmodule IEx.Autocomplete do @moduledoc false def expand(expr, server \\ IEx.Server) def expand('', server) do expand_variable_or_import("", server) end def expand([h | t] = expr, server) do helper = get_helper(expr) cond do helper == ?t -> expand_custom(expr, server, &get_modul...
26.123909
95
0.608257
5a03a4617cf8b5419c2de16fbea58ec45d678284
666
exs
Elixir
test/wrapper_test.exs
codebay/wrapper
ab137d1f12b6280cd3fc09083554c34964e85b06
[ "Apache-2.0" ]
null
null
null
test/wrapper_test.exs
codebay/wrapper
ab137d1f12b6280cd3fc09083554c34964e85b06
[ "Apache-2.0" ]
null
null
null
test/wrapper_test.exs
codebay/wrapper
ab137d1f12b6280cd3fc09083554c34964e85b06
[ "Apache-2.0" ]
null
null
null
defmodule WrapperTest do use ExUnit.Case doctest Wrapper test "empty string gives an empty string" do assert Wrapper.wrap("", 1) == "" end test "one char and line length of 1 gives the char back" do assert Wrapper.wrap("x", 1) == "x" end test "word larger than line length is split" do asser...
22.965517
68
0.63964
5a03c8cdddaf2da02e227f1a17d880742f13f586
250
ex
Elixir
lib/web/views/layout_view.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
610
2017-08-09T15:20:25.000Z
2022-03-27T15:49:07.000Z
lib/web/views/layout_view.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
69
2017-09-23T04:02:30.000Z
2022-03-19T21:08:21.000Z
lib/web/views/layout_view.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
85
2017-09-23T04:07:11.000Z
2021-11-20T06:44:56.000Z
defmodule Web.LayoutView do use Web, :view import Web.Gettext, only: [gettext: 1] alias ExVenture.Users def admin?(user), do: Users.admin?(user) def tab_active?(tab, tab), do: "active" def tab_active?(_current_tab, _tab), do: "" end
17.857143
45
0.68
5a03d0798669e496609396c8bc1b3f93f3bbee0b
5,812
ex
Elixir
lib/bolt/helpers.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
lib/bolt/helpers.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
lib/bolt/helpers.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.Helpers do @moduledoc "Various helpers used throughout the bot." alias Bolt.Converters alias Nostrum.Api alias Nostrum.Cache.GuildCache alias Nostrum.Struct.Guild alias Nostrum.Struct.Guild.{Member, Role} alias Nostrum.Struct.User require Logger @doc """ Convert a boolean value to t...
30.429319
127
0.571748