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
1d9c8aa086c635a5f170b7380b8c4a7c94a85130
1,307
exs
Elixir
mix.exs
siegfried/j1605
4d9fa85b36daea022241d071ea2867dbfa531de2
[ "MIT" ]
null
null
null
mix.exs
siegfried/j1605
4d9fa85b36daea022241d071ea2867dbfa531de2
[ "MIT" ]
null
null
null
mix.exs
siegfried/j1605
4d9fa85b36daea022241d071ea2867dbfa531de2
[ "MIT" ]
null
null
null
defmodule J1605.Mixfile do use Mix.Project def project do [ app: :j1605, version: "0.3.0", elixir: "~> 1.4", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, aliases: aliases(), description: description(), package: package(), deps: d...
21.42623
85
0.575363
1d9c93edcc8baae50fd788c8d6e8d3a3d56aa200
1,854
exs
Elixir
test/parser/utils_test.exs
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
test/parser/utils_test.exs
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
test/parser/utils_test.exs
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
defmodule Temple.Parser.UtilsTest do use ExUnit.Case, async: true alias Temple.Parser.Utils describe "compile_attrs/1" do test "returns a list of text nodes for static attributes" do attrs = [class: "text-red", id: "error", phx_submit: :save, data_number: 99] actual = Utils.compile_attrs(attrs)...
28.090909
92
0.519417
1d9c994c010e1eb3dbdc022c60a0ef1f8efaed0e
863
ex
Elixir
lib/bio/virus/producer.ex
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
lib/bio/virus/producer.ex
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
lib/bio/virus/producer.ex
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
defmodule Bio.Virus.Producer do alias Bio.{Virus, World} use GenServer @max 40 @interval 500 # Client def start_link(_) do GenServer.start_link(__MODULE__, %{}, name: __MODULE__) end defp schedule_maybe_add() do Process.send_after(self(), :maybe_add, @interval) end # Server (callbacks)...
19.613636
96
0.603708
1d9c9bc6ed5adc9027b62d0bc013eb671a8a4d66
2,508
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_index.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_index.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_index.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...
36.882353
201
0.700957
1d9cb3896dd8d756a8e523fcfaea7cd08dd25858
237
ex
Elixir
lib/real_world_web/plugs/current_user.ex
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
null
null
null
lib/real_world_web/plugs/current_user.ex
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
4
2021-03-23T19:01:21.000Z
2021-03-30T18:27:24.000Z
lib/real_world_web/plugs/current_user.ex
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
null
null
null
defmodule RealWorldWeb.Plugs.CurrentUser do import Plug.Conn def init(options), do: options def call(conn, _options) do user = RealWorldWeb.Guardian.Plug.current_resource(conn) assign(conn, :current_user, user) end end
21.545455
60
0.746835
1d9ce1d2924895cdda0965d9a70668bfe04721c1
65,586
ex
Elixir
lib/elixir/lib/code/formatter.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code/formatter.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code/formatter.ex
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
defmodule Code.Formatter do @moduledoc false import Inspect.Algebra, except: [format: 2, surround: 3, surround: 4] @double_quote "\"" @double_heredoc "\"\"\"" @single_quote "'" @single_heredoc "'''" @newlines 2 @min_line 0 @max_line 9_999_999 @empty empty() # Operators that do not have space bet...
30.490934
102
0.63233
1d9cef2c1092957e4bb1adc17dc7992a52127418
10,106
ex
Elixir
apps/astarte_pairing/lib/astarte_pairing/queries.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_pairing/lib/astarte_pairing/queries.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_pairing/lib/astarte_pairing/queries.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2017-2018 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...
29.549708
111
0.6604
1d9d113009c6c0b97bf762e7880587f23ee1383c
4,169
ex
Elixir
lib/scrollable/scroll_bar.controller.ex
vacarsu/flo_ui
2605f2c826e8f21d16d11e84f0468bd823b5f5e1
[ "MIT" ]
null
null
null
lib/scrollable/scroll_bar.controller.ex
vacarsu/flo_ui
2605f2c826e8f21d16d11e84f0468bd823b5f5e1
[ "MIT" ]
null
null
null
lib/scrollable/scroll_bar.controller.ex
vacarsu/flo_ui
2605f2c826e8f21d16d11e84f0468bd823b5f5e1
[ "MIT" ]
null
null
null
defmodule FloUI.Scrollable.ScrollBarController do alias Scenic.Graph alias Scenic.Primitive alias FloUI.Scrollable.Direction # def on_scroll_position_change(%{assigns: %{scroll_bar_state: %{scrolling: :wheel}}} = scene) do # drag_control_position = local_scroll_position_vector2(scene) # graph = # ...
31.11194
99
0.677621
1d9d45bcad5c5b756ef6f479a4d3a5b1c5302c11
139
ex
Elixir
test/support/ecto_explain_test_repo.ex
InoMurko/ecto_explain
35b883412b351d3b5e69f506c32c3fb3d18179ac
[ "MIT" ]
24
2019-06-20T10:54:51.000Z
2022-02-18T19:05:25.000Z
test/support/ecto_explain_test_repo.ex
InoMurko/ecto_explain
35b883412b351d3b5e69f506c32c3fb3d18179ac
[ "MIT" ]
4
2019-06-25T02:37:27.000Z
2021-12-23T13:32:23.000Z
test/support/ecto_explain_test_repo.ex
InoMurko/ecto_explain
35b883412b351d3b5e69f506c32c3fb3d18179ac
[ "MIT" ]
4
2020-06-05T18:07:46.000Z
2021-09-15T23:01:38.000Z
defmodule Ecto.ExplainTest.Repo do use Ecto.Repo, otp_app: :ecto_explain, adapter: Ecto.Adapters.Postgres use Ecto.Explain end
19.857143
35
0.748201
1d9d4f8eb6b00b86b8c2fcc4e3b43ee8c336f171
2,854
ex
Elixir
lib/chat_api/slack_authorizations.ex
m1ome/papercups
8c9bf5569dc23d7bce3fcc3a8909bf6d05be8985
[ "MIT" ]
1
2020-10-02T18:33:47.000Z
2020-10-02T18:33:47.000Z
lib/chat_api/slack_authorizations.ex
kingshalaby1/papercups
8d59b2ee4a22dd29df42fb771e02db14e14dee68
[ "MIT" ]
null
null
null
lib/chat_api/slack_authorizations.ex
kingshalaby1/papercups
8d59b2ee4a22dd29df42fb771e02db14e14dee68
[ "MIT" ]
null
null
null
defmodule ChatApi.SlackAuthorizations do @moduledoc """ The SlackAuthorizations context. """ import Ecto.Query, warn: false alias ChatApi.Repo alias ChatApi.SlackAuthorizations.SlackAuthorization @doc """ Returns the list of slack_authorizations. ## Examples iex> list_slack_authorizations()...
23.393443
94
0.704625
1d9d50a6aac7415e044cb1cf29ba1005cca04599
12,219
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/machine_types.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/machine_types.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/machine_types.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 "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...
58.745192
1,213
0.709714
1d9da626767c5157186eadfe3664617588adcbe7
669
exs
Elixir
test/blockchain/block_test.exs
bmitc/introducing-blockchain-with-elixir
69cbf670657c8a15313f49acff0c3e6e3cc8023f
[ "MIT" ]
1
2022-03-21T22:57:46.000Z
2022-03-21T22:57:46.000Z
test/blockchain/block_test.exs
bmitc/introducing-blockchain-with-elixir
69cbf670657c8a15313f49acff0c3e6e3cc8023f
[ "MIT" ]
null
null
null
test/blockchain/block_test.exs
bmitc/introducing-blockchain-with-elixir
69cbf670657c8a15313f49acff0c3e6e3cc8023f
[ "MIT" ]
null
null
null
defmodule Blockchain.BlockTest do use ExUnit.Case, async: true alias Blockchain.Block alias Blockchain.Hash alias Blockchain.Transaction alias Blockchain.Wallet test "mined block is a valid block" do mined_block = Block.mine_block(Transaction.new(Wallet.new(), Wallet.new(), 0), Hash.new("some ha...
25.730769
93
0.687593
1d9dd0e098647585144230783afe7b86edf79de3
917
ex
Elixir
lib/admin/application.ex
jeantsai/phoenix-admin
3f954f0c452d385438b616f7e91bc5d66bcc1adc
[ "MIT" ]
null
null
null
lib/admin/application.ex
jeantsai/phoenix-admin
3f954f0c452d385438b616f7e91bc5d66bcc1adc
[ "MIT" ]
null
null
null
lib/admin/application.ex
jeantsai/phoenix-admin
3f954f0c452d385438b616f7e91bc5d66bcc1adc
[ "MIT" ]
null
null
null
defmodule Admin.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Ecto repository Admin.Repo, # ...
28.65625
64
0.708833
1d9ddec3fe952f5a01112df53f41902a81884bd0
1,400
ex
Elixir
apps/rig_inbound_gateway/lib/rig_inbound_gateway_web/v1/event_controller.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_inbound_gateway/lib/rig_inbound_gateway_web/v1/event_controller.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_inbound_gateway/lib/rig_inbound_gateway_web/v1/event_controller.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
defmodule RigInboundGatewayWeb.V1.EventController do @moduledoc """ Publish a CloudEvent. """ require Logger use Rig.Config, [:cors] use RigInboundGatewayWeb, :controller alias CloudEvent alias Rig.EventFilter alias RigAuth.AuthorizationCheck.Submission alias RigOutboundGateway @doc false de...
26.923077
70
0.671429
1d9dfcf6cdbaab634e51ea690d9583977b1575ee
1,826
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/delete_table_column_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/docs/lib/google_api/docs/v1/model/delete_table_column_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/docs/lib/google_api/docs/v1/model/delete_table_column_request.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...
38.851064
404
0.759036
1d9e1d0cc71b495c394775e0628c00c78c037213
831
ex
Elixir
lib/ecto/queryable.ex
MSch/ecto
648f785b2202193921fe00d68bc334399f5edb93
[ "Apache-2.0" ]
1
2015-08-27T13:17:10.000Z
2015-08-27T13:17:10.000Z
lib/ecto/queryable.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
lib/ecto/queryable.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
defprotocol Ecto.Queryable do @moduledoc """ The `Queryable` protocol is responsible for converting a structure to an `Ecto.Query.Query` record. The only function required to implement is `to_query` which does the conversion. """ def to_query(expr) end defimpl Ecto.Queryable, for: Ecto.Query.Query do de...
25.181818
74
0.691937
1d9e3543e041e5932177ea073f914218876fd74d
632
exs
Elixir
apps/legion/test/identity/auth/concrete/token_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion/test/identity/auth/concrete/token_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion/test/identity/auth/concrete/token_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.Identity.Auth.Abstract.TokenTest do @moduledoc false use Legion.DataCase import Legion.Identity.Auth.Abstract.Token setup do user = Factory.insert(:user) valid_passphrase = Factory.insert(:passphrase, user: user) %{user: user, valid_passphrase: valid_passphrase} end test "is...
24.307692
100
0.718354
1d9e8381697ef51e26a7e005c776430044510b90
325
exs
Elixir
adv_2020/test/day_16_test.exs
SamuelSarle/advent
31025f7b081826cb51b37a2d8b8d263413b71086
[ "Unlicense" ]
null
null
null
adv_2020/test/day_16_test.exs
SamuelSarle/advent
31025f7b081826cb51b37a2d8b8d263413b71086
[ "Unlicense" ]
null
null
null
adv_2020/test/day_16_test.exs
SamuelSarle/advent
31025f7b081826cb51b37a2d8b8d263413b71086
[ "Unlicense" ]
null
null
null
defmodule DaySixteenTest do use ExUnit.Case test "returns correct answer" do input = """ class: 1-3 or 5-7 row: 6-11 or 33-44 seat: 13-40 or 45-50 your ticket: 7,1,14 nearby tickets: 7,3,47 40,4,50 55,2,20 38,6,12 """ assert DaySixteen.solve(input) == 71 end...
14.130435
40
0.572308
1d9e91700d72629d4b8dd523b8a79ad7db29d042
1,847
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/list_operations_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/list_operations_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/list_operations_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 "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.94
174
0.746616
1d9ed7479b4fa50954539028a33e7682e9d3e7b7
2,457
ex
Elixir
lib/sage/inspect.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
lib/sage/inspect.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
lib/sage/inspect.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
defimpl Inspect, for: Sage do import Inspect.Algebra @tx_symbol "->" @cmp_symbol "<-" @tx_args [:effects_so_far, :opts] @cmp_args [:effect_to_compensate, :opts] @final_hook_args [:name, :state] def inspect(sage, opts) do list = to_list(sage) left = concat(["#Sage", format_compensation_error_hand...
35.608696
115
0.710216
1d9eeef24c25afb5da8357d5cf80bfe1e8e042d2
896
ex
Elixir
clients/machine_learning/lib/google_api/machine_learning/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/machine_learning/lib/google_api/machine_learning/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/machine_learning/lib/google_api/machine_learning/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "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.185185
74
0.762277
1d9f2a8a02f75963c047a48d60e867f7fa9bcfb9
1,902
exs
Elixir
dash/config/dev.exs
bhaveshpoddar94/BitcoinRealtime
e9a60ae80596271048c81cbb2c3be7e3428d2a8f
[ "MIT" ]
null
null
null
dash/config/dev.exs
bhaveshpoddar94/BitcoinRealtime
e9a60ae80596271048c81cbb2c3be7e3428d2a8f
[ "MIT" ]
null
null
null
dash/config/dev.exs
bhaveshpoddar94/BitcoinRealtime
e9a60ae80596271048c81cbb2c3be7e3428d2a8f
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :dash, DashWeb.Endpoint, http: [port: 4000], ...
32.237288
170
0.698738
1d9f41aac3a252515cd56dd30ede85877d7c269b
365
ex
Elixir
lib/kaffy_web/controllers/home_controller.ex
firevale/kaffy
329c0cbd1bf3589d26140543a4f574273a74b600
[ "MIT" ]
null
null
null
lib/kaffy_web/controllers/home_controller.ex
firevale/kaffy
329c0cbd1bf3589d26140543a4f574273a74b600
[ "MIT" ]
null
null
null
lib/kaffy_web/controllers/home_controller.ex
firevale/kaffy
329c0cbd1bf3589d26140543a4f574273a74b600
[ "MIT" ]
null
null
null
defmodule KaffyWeb.HomeController do @moduledoc false use Phoenix.Controller, namespace: KaffyWeb def index(conn, _params) do redirect(conn, to: Kaffy.Utils.home_page(conn)) end def dashboard(conn, _params) do redirect(conn, to: Kaffy.Utils.home_page(conn)) # render(conn, "index.html", layout: ...
24.333333
75
0.720548
1d9f4c572d0548a6a23f959b524e22152ee03224
4,662
ex
Elixir
clients/fitness/lib/google_api/fitness/v1/model/aggregate_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/fitness/lib/google_api/fitness/v1/model/aggregate_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/fitness/lib/google_api/fitness/v1/model/aggregate_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...
68.558824
480
0.750536
1d9f4f922316dcb7ce07465eb6c1c6c54a810306
1,124
ex
Elixir
apps/bankingAPI/lib/bankingAPI/users/users.ex
danielkv7/bankingAPI
d84b9a12c72d6bbd7d3077346501fde6db25ef19
[ "Apache-2.0" ]
null
null
null
apps/bankingAPI/lib/bankingAPI/users/users.ex
danielkv7/bankingAPI
d84b9a12c72d6bbd7d3077346501fde6db25ef19
[ "Apache-2.0" ]
null
null
null
apps/bankingAPI/lib/bankingAPI/users/users.ex
danielkv7/bankingAPI
d84b9a12c72d6bbd7d3077346501fde6db25ef19
[ "Apache-2.0" ]
null
null
null
defmodule BankingAPI.Users do @moduledoc """ Domain public functions for users context """ alias BankingAPI.Repo alias BankingAPI.Users.Inputs alias BankingAPI.Users.Schemas.User require Logger @doc """ Given a VALID changeset it attempts to insert a new user. It might fail due to email unique in...
26.761905
81
0.632562
1d9f57aa49322ddc5d8b928134061c89daf9409f
706
ex
Elixir
web/channels/toy_channel.ex
joekain/play_channel
14450af4cfda4d59bc4e4157d4081b10941b5abf
[ "MIT" ]
4
2016-03-25T08:10:23.000Z
2018-11-13T22:11:11.000Z
web/channels/toy_channel.ex
joekain/play_channel
14450af4cfda4d59bc4e4157d4081b10941b5abf
[ "MIT" ]
null
null
null
web/channels/toy_channel.ex
joekain/play_channel
14450af4cfda4d59bc4e4157d4081b10941b5abf
[ "MIT" ]
null
null
null
defmodule PlayChannel.ToyChannel do use PlayChannel.Web, :channel def join("toys:" <> toy_id, payload, socket) do case PlayChannel.Repo.get(PlayChannel.Toy, toy_id) do nil -> {:error, %{reason: "channel: No such toy #{toy_id}"}} toy -> {:ok, toy_to_map(toy), socket} end end def ha...
22.774194
71
0.610482
1d9f5cf76b31c4a40286cd5cbbc870b47c8f7714
45
exs
Elixir
.formatter.exs
KazuCocoa/revision_plate_ex
a5ea1ca0fa863e018f2b8c6110166e67f4fce40e
[ "MIT" ]
3
2016-01-09T14:44:30.000Z
2019-03-30T06:51:39.000Z
.formatter.exs
KazuCocoa/revision_plate_ex
a5ea1ca0fa863e018f2b8c6110166e67f4fce40e
[ "MIT" ]
null
null
null
.formatter.exs
KazuCocoa/revision_plate_ex
a5ea1ca0fa863e018f2b8c6110166e67f4fce40e
[ "MIT" ]
null
null
null
[ inputs: [ "lib/**/*.{ex,exs}" ], ]
7.5
23
0.311111
1d9f620fe780e5a8a22e9cb160f0a5318722ed16
1,177
ex
Elixir
test/support/conn_case.ex
jeffcole/loops
8d1f8345140182905dfc1967af135205b82f2cdc
[ "MIT" ]
null
null
null
test/support/conn_case.ex
jeffcole/loops
8d1f8345140182905dfc1967af135205b82f2cdc
[ "MIT" ]
null
null
null
test/support/conn_case.ex
jeffcole/loops
8d1f8345140182905dfc1967af135205b82f2cdc
[ "MIT" ]
null
null
null
defmodule LoopsWithFriends.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts wi...
26.155556
78
0.714528
1d9f7fa94a09c470f086ac5ded05f070e113ff95
3,090
ex
Elixir
lib/gen_socket_client/transport/web_socket_client.ex
vladra/phoenix_gen_socket_client
bd6657c537b3b09a9352ae2c2885257dc4dd11e1
[ "MIT" ]
null
null
null
lib/gen_socket_client/transport/web_socket_client.ex
vladra/phoenix_gen_socket_client
bd6657c537b3b09a9352ae2c2885257dc4dd11e1
[ "MIT" ]
null
null
null
lib/gen_socket_client/transport/web_socket_client.ex
vladra/phoenix_gen_socket_client
bd6657c537b3b09a9352ae2c2885257dc4dd11e1
[ "MIT" ]
null
null
null
defmodule Phoenix.Channels.GenSocketClient.Transport.WebSocketClient do @moduledoc """ Websocket transport powered by the [websocket_client](https://github.com/sanmiguel/websocket_client) library. Supported transport options: - `keepalive` - Interval in which a ping message is sent to the server to keep t...
34.719101
119
0.653722
1d9f929b1020840a8fd17b25fcf0d1fafa096407
465
exs
Elixir
config/test.exs
thluiz/yehudimtv
71aba0ee537b4bba28474fb20d3209fc261a03d7
[ "MIT" ]
null
null
null
config/test.exs
thluiz/yehudimtv
71aba0ee537b4bba28474fb20d3209fc261a03d7
[ "MIT" ]
null
null
null
config/test.exs
thluiz/yehudimtv
71aba0ee537b4bba28474fb20d3209fc261a03d7
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :yehudimtv, Yehudimtv.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :yehudimtv, Yehudim...
23.25
56
0.729032
1d9fad469b8fa461e2467057691b3d8b6692cd43
1,441
ex
Elixir
lib/phoenix_forecastr_live_view_web/endpoint.ex
kpanic/phoenix_forecastr_live_view
e8471d64c28234b6bfe1489f40616dd0324a888f
[ "Apache-2.0" ]
1
2020-01-12T21:52:23.000Z
2020-01-12T21:52:23.000Z
lib/phoenix_forecastr_live_view_web/endpoint.ex
kpanic/phoenix_forecastr_live_view
e8471d64c28234b6bfe1489f40616dd0324a888f
[ "Apache-2.0" ]
null
null
null
lib/phoenix_forecastr_live_view_web/endpoint.ex
kpanic/phoenix_forecastr_live_view
e8471d64c28234b6bfe1489f40616dd0324a888f
[ "Apache-2.0" ]
null
null
null
defmodule PhoenixForecastrLiveViewWeb.Endpoint do use Phoenix.Endpoint, otp_app: :phoenix_forecastr_live_view socket("/live", Phoenix.LiveView.Socket) socket("/socket", PhoenixForecastrLiveViewWeb.UserSocket, websocket: true, longpoll: false ) # Serve at "/" the static files from "priv/static" dire...
27.188679
70
0.719639
1d9fb0c3123d98f18758a8ee58886fd34de7779f
49
ex
Elixir
lib/delve/plugin.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
lib/delve/plugin.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
lib/delve/plugin.ex
naramore/highstorm
1150ffd48e147b1a5e4f507e59eb788dc7d824c4
[ "MIT" ]
null
null
null
defmodule Delve.Plugin do @moduledoc false end
12.25
25
0.795918
1d9fbb2aa23cb7bec23c3cd08c6b99a74aebb63c
276
ex
Elixir
lib/la_famiglia_web/views/building_queue_item_view.ex
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
5
2016-10-20T10:00:59.000Z
2017-11-19T08:14:18.000Z
lib/la_famiglia_web/views/building_queue_item_view.ex
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
39
2020-04-22T05:27:32.000Z
2022-03-13T17:22:26.000Z
lib/la_famiglia_web/views/building_queue_item_view.ex
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
null
null
null
defmodule LaFamigliaWeb.BuildingQueueItemView do use LaFamiglia.Web, :view def link_to_build_cancel(conn, item) do link("Cancel", to: Routes.building_queue_item_path(conn, :delete, item.id), method: :delete, class: "btn btn-primary" ) end end
23
66
0.695652
1d9fc1d0513eaf7c726166736bcbfed0adb6dfb6
528
ex
Elixir
lib/mllp/framing_context.ex
angrycandy/elixir-mllp
f3b5988c0d9f2fefaca16890b13f8c08db2ce382
[ "Apache-2.0" ]
null
null
null
lib/mllp/framing_context.ex
angrycandy/elixir-mllp
f3b5988c0d9f2fefaca16890b13f8c08db2ce382
[ "Apache-2.0" ]
null
null
null
lib/mllp/framing_context.ex
angrycandy/elixir-mllp
f3b5988c0d9f2fefaca16890b13f8c08db2ce382
[ "Apache-2.0" ]
null
null
null
defmodule MLLP.FramingContext do defstruct receiver_buffer: "", reply_buffer: "", current_message_type: nil, packet_framer_module: MLLP.DefaultPacketFramer, dispatcher_module: nil, receiver_context: %{} @type t :: %__MODULE__{ receiver_buffer: S...
29.333333
59
0.594697
1d9fc39dd39bfa8a527e316236368268dc23b72e
396
ex
Elixir
lib/job_board_web/controllers/plugs/require_auth.ex
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
lib/job_board_web/controllers/plugs/require_auth.ex
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
lib/job_board_web/controllers/plugs/require_auth.ex
TDogVoid/job_board
23793917bd1cc4e68bccce737b971093030a31eb
[ "MIT" ]
null
null
null
defmodule JobBoardWeb.Plugs.RequireAuth do import Plug.Conn import Phoenix.Controller alias JobBoardWeb.Router.Helpers def init(_params) do end def call(conn, _params) do if conn.assigns[:current_user] do conn else conn |> put_flash(:error, "You must be logged in.") |> red...
18.857143
53
0.656566
1d9fed0fd493389a8eb58ca4202a58e80c1acf28
724
exs
Elixir
nerves.exs
brucepom/nerves_system_linkit_wifi_ap
9fbd51d2b1cb786bbe768246c4e3886064bb7df8
[ "Apache-2.0" ]
null
null
null
nerves.exs
brucepom/nerves_system_linkit_wifi_ap
9fbd51d2b1cb786bbe768246c4e3886064bb7df8
[ "Apache-2.0" ]
null
null
null
nerves.exs
brucepom/nerves_system_linkit_wifi_ap
9fbd51d2b1cb786bbe768246c4e3886064bb7df8
[ "Apache-2.0" ]
null
null
null
use Mix.Config version = Path.join(__DIR__, "VERSION") |> File.read! |> String.strip pkg = :nerves_system_linkit_wifi_ap config pkg, :nerves_env, type: :system, version: version, compiler: :nerves_package, # artifact_url: [ # "https://github.com/nerves-project/#{pkg}/releases/download/v#{version}/#...
20.111111
105
0.625691
1da012ceb9604d6e588a3a14153c562b5318b7ba
1,308
exs
Elixir
kousa/test/beef/room_test.exs
lazarospsa/dogehouse
4400518f5b6bce929e40eada615356e8814a8d28
[ "MIT" ]
2
2021-03-15T22:53:51.000Z
2021-03-22T09:34:06.000Z
kousa/test/beef/room_test.exs
lazarospsa/dogehouse
4400518f5b6bce929e40eada615356e8814a8d28
[ "MIT" ]
2
2022-02-15T04:33:25.000Z
2022-02-28T01:39:56.000Z
kousa/test/beef/room_test.exs
lazarospsa/dogehouse
4400518f5b6bce929e40eada615356e8814a8d28
[ "MIT" ]
1
2021-11-24T04:01:49.000Z
2021-11-24T04:01:49.000Z
defmodule Kousa.Beef.RoomTest do # allow tests to run in parallel use ExUnit.Case, async: true use Kousa.Support.EctoSandbox alias Kousa.Support.Factory alias Beef.Schemas.Room alias Beef.Schemas.User alias Beef.Repo describe "Beef.Room" do test "you can add a room into the room table" do %{...
27.25
52
0.442661
1da01b48e50c8ea3a4cd2bb293ee5aa3651db879
196
exs
Elixir
test/fizzbuzz_elixir_example_test.exs
fandujar/fizzbuzz_elixir_example
5ba9f78f8ef0b9174f581121a1071d08986e13eb
[ "MIT" ]
null
null
null
test/fizzbuzz_elixir_example_test.exs
fandujar/fizzbuzz_elixir_example
5ba9f78f8ef0b9174f581121a1071d08986e13eb
[ "MIT" ]
null
null
null
test/fizzbuzz_elixir_example_test.exs
fandujar/fizzbuzz_elixir_example
5ba9f78f8ef0b9174f581121a1071d08986e13eb
[ "MIT" ]
null
null
null
defmodule FizzbuzzElixirExampleTest do use ExUnit.Case doctest FizzbuzzElixirExample # FIX: test test "fizzbuzz 3" do assert FizzbuzzElixirExample.fizzbuzz?(3) == " 1 2 Fizz" end end
15.076923
50
0.75
1da024adb65212c6eafcc776462a3b972a849fe7
32,007
ex
Elixir
backend/deps/jose/lib/jose/jws.ex
hploscar/palike
71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb
[ "MIT" ]
null
null
null
backend/deps/jose/lib/jose/jws.ex
hploscar/palike
71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb
[ "MIT" ]
null
null
null
backend/deps/jose/lib/jose/jws.ex
hploscar/palike
71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb
[ "MIT" ]
null
null
null
require Record defmodule JOSE.JWS do @moduledoc ~S""" JWS stands for JSON Web Signature which is defined in [RFC 7515](https://tools.ietf.org/html/rfc7515). ## Unsecured Signing Vulnerability The [`"none"`](https://tools.ietf.org/html/rfc7515#appendix-A.5) signing algorithm is disabled by default to preven...
45.207627
1,399
0.672884
1da042f70d2b7a045c36deacd3d3a4971e1525cd
797
ex
Elixir
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/graphql/schema.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
14
2019-08-01T07:55:50.000Z
2021-04-24T09:14:09.000Z
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/graphql/schema.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
1
2019-08-02T03:03:40.000Z
2019-08-02T03:03:40.000Z
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/graphql/schema.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
null
null
null
defmodule {{cookiecutter.phoenix_app_module}}Web.GraphQL.Schema do @moduledoc """ The root schema """ use Absinthe.Schema import_types(Absinthe.Type.Custom) object :user do field(:name, :string) field(:age, :integer) end query do field :list_users, list_of(:user) do resolve(fn _, _,...
18.534884
66
0.560853
1da04ded14606e7a1df6e17dcc0ad774517c2b61
1,234
ex
Elixir
lib/realworld_phoenix_web/controllers/comment_controller.ex
tamanugi/realworld-phoenix
1c0f90234926550a9124863b3946934b8f2e19a4
[ "MIT" ]
9
2021-08-23T23:21:31.000Z
2022-03-27T23:19:55.000Z
lib/realworld_phoenix_web/controllers/comment_controller.ex
tamanugi/realworld-phoenix
1c0f90234926550a9124863b3946934b8f2e19a4
[ "MIT" ]
null
null
null
lib/realworld_phoenix_web/controllers/comment_controller.ex
tamanugi/realworld-phoenix
1c0f90234926550a9124863b3946934b8f2e19a4
[ "MIT" ]
1
2021-09-06T07:26:37.000Z
2021-09-06T07:26:37.000Z
defmodule RealworldPhoenixWeb.CommentController do use RealworldPhoenixWeb, :controller alias RealworldPhoenix.Articles alias RealworldPhoenix.Articles.Article alias RealworldPhoenix.Articles.Comment alias RealworldPhoenix.Repo action_fallback RealworldPhoenixWeb.FallbackController def list(conn, %{"sl...
34.277778
89
0.690438
1da05c6fb1766126dd5be737cf5f0b504077ffb2
5,675
ex
Elixir
lib/glimesh/channel_categories.ex
ACPixel/glimesh.tv
4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4
[ "MIT" ]
null
null
null
lib/glimesh/channel_categories.ex
ACPixel/glimesh.tv
4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4
[ "MIT" ]
null
null
null
lib/glimesh/channel_categories.ex
ACPixel/glimesh.tv
4e3a8260a9afcf7e4f9c4c386c77f58e15aba2b4
[ "MIT" ]
null
null
null
defmodule Glimesh.ChannelCategories do @moduledoc """ Channel Categories and Tags Functionality """ import Ecto.Query, warn: false alias Glimesh.Repo alias Glimesh.Streams.Category alias Glimesh.Streams.Channel alias Glimesh.Streams.Tag ## Categories @doc """ Returns the list of categories. ...
19.434932
97
0.585727
1da05dd741e54f7f100b17c800d25f4ff9305860
561
ex
Elixir
lib/wallet_ms_web/views/changeset_view.ex
Arqui2018/2F_wallet_ms
3b5cdb71f1590f7340460f13a086918448bc3fae
[ "MIT" ]
null
null
null
lib/wallet_ms_web/views/changeset_view.ex
Arqui2018/2F_wallet_ms
3b5cdb71f1590f7340460f13a086918448bc3fae
[ "MIT" ]
null
null
null
lib/wallet_ms_web/views/changeset_view.ex
Arqui2018/2F_wallet_ms
3b5cdb71f1590f7340460f13a086918448bc3fae
[ "MIT" ]
null
null
null
defmodule WalletMsWeb.ChangesetView do use WalletMsWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `WalletMsWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changeset,...
28.05
65
0.73975
1da0742c5b44262e75e8811e4df152f05d184da8
4,629
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/policy_bindings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/storage/lib/google_api/storage/v1/model/policy_bindings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/storage/lib/google_api/storage/v1/model/policy_bindings.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...
64.291667
332
0.742061
1da07a1f2af946a499154fe4fcee18608e58a855
1,226
ex
Elixir
web/views/error_helpers.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
web/views/error_helpers.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
web/views/error_helpers.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
defmodule Artheon.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error), ...
29.902439
73
0.66721
1da07b1cf6a35f61b71c1262fc8422a5b137ea9d
76
exs
Elixir
test/yummy_web/views/page_view_test.exs
MatthieuSegret/yummy-phoenix
85b490075e3a0395b4e7cfa9f06936659e9d12b5
[ "MIT" ]
5
2017-08-27T19:45:43.000Z
2019-06-28T08:12:25.000Z
test/yummy_web/views/page_view_test.exs
MatthieuSegret/yummy-phoenix
85b490075e3a0395b4e7cfa9f06936659e9d12b5
[ "MIT" ]
null
null
null
test/yummy_web/views/page_view_test.exs
MatthieuSegret/yummy-phoenix
85b490075e3a0395b4e7cfa9f06936659e9d12b5
[ "MIT" ]
null
null
null
defmodule YummyWeb.PageViewTest do use YummyWeb.ConnCase, async: true end
19
36
0.815789
1da087b3f07082372ab93a3fcc3a4c6953980059
383
exs
Elixir
priv/repo/migrations/20171024194852_create_posts.exs
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
69
2017-11-15T17:26:57.000Z
2022-01-25T16:37:40.000Z
priv/repo/migrations/20171024194852_create_posts.exs
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
24
2020-01-27T20:44:40.000Z
2020-10-29T05:48:31.000Z
priv/repo/migrations/20171024194852_create_posts.exs
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
35
2017-11-12T22:04:10.000Z
2021-07-22T18:00:39.000Z
defmodule Blog.Repo.Migrations.CreatePosts do use Ecto.Migration def change do create table(:posts) do add :title, :string, null: false add :body, :string, null: false add :published_at, :naive_datetime add :author_id, references(:users, on_delete: :nothing), null: false timestam...
22.529412
74
0.665796
1da09ecfbbc139c8852def9a7db25078c2693be7
98
ex
Elixir
lib/blog/mailer.ex
eltoncampos1/blog_elixir
99fd5d5415192229cda749a88b30bf63d5817c4f
[ "MIT" ]
null
null
null
lib/blog/mailer.ex
eltoncampos1/blog_elixir
99fd5d5415192229cda749a88b30bf63d5817c4f
[ "MIT" ]
null
null
null
lib/blog/mailer.ex
eltoncampos1/blog_elixir
99fd5d5415192229cda749a88b30bf63d5817c4f
[ "MIT" ]
null
null
null
defmodule Blog.Mailer do @moduledoc """ Mailer """ use Swoosh.Mailer, otp_app: :blog end
12.25
35
0.663265
1da0f6aa792d7eb53c51133f361286a06dbe34d0
1,117
ex
Elixir
apps/speedrun_web/test/support/channel_case.ex
brunobamaral/speedrun
b439e03a0a06c53c03824cb8a37fd55e4aef8e35
[ "Apache-2.0" ]
null
null
null
apps/speedrun_web/test/support/channel_case.ex
brunobamaral/speedrun
b439e03a0a06c53c03824cb8a37fd55e4aef8e35
[ "Apache-2.0" ]
null
null
null
apps/speedrun_web/test/support/channel_case.ex
brunobamaral/speedrun
b439e03a0a06c53c03824cb8a37fd55e4aef8e35
[ "Apache-2.0" ]
null
null
null
defmodule SpeedrunWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts ...
27.243902
70
0.728738
1da0f97771b747d50d42dd6611971ff603d2f86d
1,910
ex
Elixir
backend/lib/edgehog/os_management/ota_operation.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
14
2021-12-02T16:31:16.000Z
2022-03-18T17:40:44.000Z
backend/lib/edgehog/os_management/ota_operation.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
77
2021-11-03T15:14:41.000Z
2022-03-30T14:13:32.000Z
backend/lib/edgehog/os_management/ota_operation.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
7
2021-11-03T10:58:37.000Z
2022-02-28T14:00:03.000Z
# # This file is part of Edgehog. # # Copyright 2022 SECO Mind Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
28.088235
80
0.719895
1da1005912c3b0f64e6ec0d4e04ed77601676d31
6,079
ex
Elixir
lib/credo/code/module.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
lib/credo/code/module.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
lib/credo/code/module.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
defmodule Credo.Code.Module do @moduledoc """ This module provides helper functions to analyse modules, return the defined funcions or module attributes. """ alias Credo.Code alias Credo.Code.Block @def_ops [:def, :defp, :defmacro] @doc "Reads an attribute from a module's `ast`" def attribute(ast, ...
30.547739
128
0.638592
1da12597f46e67732dca102c619f458745909ef9
2,218
ex
Elixir
lib/collections/collections.ex
optikfluffel/fyyd_ex
81d271a8132596711ca6f5f24f7fddbd2453a671
[ "Unlicense" ]
1
2018-02-12T23:14:33.000Z
2018-02-12T23:14:33.000Z
lib/collections/collections.ex
optikfluffel/fyyd_ex
81d271a8132596711ca6f5f24f7fddbd2453a671
[ "Unlicense" ]
16
2017-11-18T15:28:34.000Z
2019-02-09T10:27:10.000Z
lib/collections/collections.ex
optikfluffel/fyyd_ex
81d271a8132596711ca6f5f24f7fddbd2453a671
[ "Unlicense" ]
null
null
null
defmodule Fyyd.Collections do @moduledoc false alias Fyyd.API alias Fyyd.Collections.Collection @doc """ Gets Collections for a given User by it's `id`. """ @spec get_for_user(integer | String.t(), key: atom) :: {:ok, [Collection.t()]} def get_for_user(id, opts) when is_integer(id) do id |> In...
31.239437
96
0.687556
1da145d412478114ec460c2995c4a5d43679b7fd
4,548
exs
Elixir
test/file_size/ecto/changeset_integration_test.exs
tlux/file_size_ecto
654fe0c75c151c0ede53e0b9f2928bf412abeedb
[ "MIT" ]
null
null
null
test/file_size/ecto/changeset_integration_test.exs
tlux/file_size_ecto
654fe0c75c151c0ede53e0b9f2928bf412abeedb
[ "MIT" ]
null
null
null
test/file_size/ecto/changeset_integration_test.exs
tlux/file_size_ecto
654fe0c75c151c0ede53e0b9f2928bf412abeedb
[ "MIT" ]
null
null
null
defmodule FileSize.Ecto.ChangesetIntegrationTest do use ExUnit.Case import Ecto.Changeset describe "Ecto.Changeset.cast/2 with FileSize.Ecto.Bit" do test "valid when value present" do changeset = cast(%TestSchema{}, %{bit_size: "16 Mbit"}, [:bit_size]) assert errors_on(changeset, :bit_size) == ...
29.532468
79
0.630607
1da15229fc8bcf0662088c4d1ce3a603f43e1bc1
1,596
ex
Elixir
lib/google_api/pub_sub/v1/model/publish_response.ex
albert-io/elixir-google-pub-sub
b34d11bc236b5e02ba9c1d88c44c623836363148
[ "Apache-2.0" ]
null
null
null
lib/google_api/pub_sub/v1/model/publish_response.ex
albert-io/elixir-google-pub-sub
b34d11bc236b5e02ba9c1d88c44c623836363148
[ "Apache-2.0" ]
null
null
null
lib/google_api/pub_sub/v1/model/publish_response.ex
albert-io/elixir-google-pub-sub
b34d11bc236b5e02ba9c1d88c44c623836363148
[ "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...
31.294118
199
0.744987
1da165809b49d7f800a95a1c12f2d6df17440ffb
512
exs
Elixir
config/test.exs
PanyPy/foundation_phoenix
571aaa0b274c1428b4cf8e370777ae82c9167eb2
[ "MIT" ]
null
null
null
config/test.exs
PanyPy/foundation_phoenix
571aaa0b274c1428b4cf8e370777ae82c9167eb2
[ "MIT" ]
2
2021-03-10T11:28:36.000Z
2021-05-11T07:00:39.000Z
config/test.exs
PanyPy/foundation_phoenix
571aaa0b274c1428b4cf8e370777ae82c9167eb2
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :foundation_phoenix, FoundationPhoenix.Repo, username: "postgres", password: "postgres", database: "foundation_phoenix_test", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox # We don't run a server during test. If one is required, # you can enable the s...
26.947368
58
0.759766
1da166893a0625b2f5688431128be1f473b75b52
239
ex
Elixir
apps/crawler/lib/crawler/nexus/client.ex
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
3
2018-07-20T22:14:36.000Z
2018-12-21T19:54:48.000Z
apps/crawler/lib/crawler/nexus/client.ex
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
36
2018-09-15T21:46:54.000Z
2020-03-28T16:10:18.000Z
apps/crawler/lib/crawler/nexus/client.ex
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
2
2018-07-22T08:47:07.000Z
2021-12-11T01:39:19.000Z
defmodule Crawler.Nexus.Client do @moduledoc "implements `Crawler.Client` for [Nexus Mods](https://www.nexusmods.com/)" @behaviour Crawler.Client @impl Crawler.Client def search(_query) do {:error, :not_implemented} end end
23.9
87
0.732218
1da1b220e5297312bff6fd8254efbdb8a56fc550
46
ex
Elixir
apps/telegraph/lib/telegraph.ex
paulanthonywilson/morsey
b72d1eee54db1bcc8d0f2097c345da602995ce43
[ "MIT" ]
1
2018-12-30T04:37:15.000Z
2018-12-30T04:37:15.000Z
apps/telegraph/lib/telegraph.ex
paulanthonywilson/morsey
b72d1eee54db1bcc8d0f2097c345da602995ce43
[ "MIT" ]
null
null
null
apps/telegraph/lib/telegraph.ex
paulanthonywilson/morsey
b72d1eee54db1bcc8d0f2097c345da602995ce43
[ "MIT" ]
null
null
null
defmodule Telegraph do @moduledoc false end
11.5
22
0.804348
1da1ecf2cb25e4d87cba5983090ff29be92fc424
2,306
exs
Elixir
test/elasticsearch/indexing/bulk_test.exs
sambou/elasticsearch-elixir
4d1ba74513c5276457709520a754bcd599306a61
[ "MIT" ]
null
null
null
test/elasticsearch/indexing/bulk_test.exs
sambou/elasticsearch-elixir
4d1ba74513c5276457709520a754bcd599306a61
[ "MIT" ]
null
null
null
test/elasticsearch/indexing/bulk_test.exs
sambou/elasticsearch-elixir
4d1ba74513c5276457709520a754bcd599306a61
[ "MIT" ]
null
null
null
defmodule Elasticsearch.Index.BulkTest do use Elasticsearch.DataCase import ExUnit.CaptureLog alias Elasticsearch.{ Index.Bulk, Test.Cluster, Test.Store } defmodule TestException do defexception [:message] end defmodule ErrorAPI do @behaviour Elasticsearch.API @impl true d...
25.340659
88
0.561578
1da1f3e6a81aef36087e063f6d4f171a0216430d
1,055
exs
Elixir
test/error_code_test.exs
enter-haken/postgrex
fb3438d4e6a56db81ddd0d578cdfc0484909c233
[ "Apache-2.0" ]
681
2016-06-16T12:28:22.000Z
2022-03-30T08:48:42.000Z
test/error_code_test.exs
enter-haken/postgrex
fb3438d4e6a56db81ddd0d578cdfc0484909c233
[ "Apache-2.0" ]
383
2016-06-17T14:49:41.000Z
2022-03-21T18:13:19.000Z
test/error_code_test.exs
enter-haken/postgrex
fb3438d4e6a56db81ddd0d578cdfc0484909c233
[ "Apache-2.0" ]
234
2016-06-16T16:14:47.000Z
2022-03-03T00:43:59.000Z
defmodule ErrorCodeTest do use ExUnit.Case, async: true import Postgrex.ErrorCode doctest Postgrex.ErrorCode test "code to name" do assert code_to_name("23505") == :unique_violation assert code_to_name("2F003") == :prohibited_sql_statement_attempted assert code_to_name("38003") == :prohibited_sql_...
35.166667
90
0.757346
1da20839bbb39214dca808b620ad6d722a368b6e
1,035
exs
Elixir
test/absinthe/language/union_type_definition_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
test/absinthe/language/union_type_definition_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
test/absinthe/language/union_type_definition_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Language.UnionTypeDefinitionTest do use Absinthe.Case, async: true alias Absinthe.Blueprint @text "A metasyntactic variable" @idl """ type Foo { name: String } type Bar { name: String } union Baz @description(text: "#{@text}") = Foo | Bar """ describe "conver...
22.021277
81
0.604831
1da216a1a821a72ca1658a9a161704fdd0912daa
4,438
ex
Elixir
lib/elixir_google_scraper_web/controllers/user_auth.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
lib/elixir_google_scraper_web/controllers/user_auth.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
25
2021-05-21T02:23:37.000Z
2021-07-09T09:22:32.000Z
lib/elixir_google_scraper_web/controllers/user_auth.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
defmodule ElixirGoogleScraperWeb.UserAuth do import Plug.Conn import Phoenix.Controller alias ElixirGoogleScraper.Account.Users alias ElixirGoogleScraperWeb.Router.Helpers, as: Routes # Make the remember me cookie valid for 60 days. # If you want bump or reduce this value, also change # the token expiry...
29.586667
82
0.698513
1da2353d259f2dd7547d6492f49162cba91dd74f
570
exs
Elixir
test/json_xema/nil_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
1
2019-06-21T10:55:33.000Z
2019-06-21T10:55:33.000Z
test/json_xema/nil_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
test/json_xema/nil_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
defmodule Xema.NilTest do use ExUnit.Case, async: true import JsonXema, only: [validate: 2] alias Xema.ValidationError describe "'nil' schema" do setup do %{schema: ~s({"type": "null"}) |> Jason.decode!() |> JsonXema.new()} end test "validate/2 with nil value", %{schema: schema} do a...
24.782609
74
0.624561
1da2437a1d018233f031e80b8af18db3ef3ab3c9
2,879
ex
Elixir
lib/stripe_post/content.ex
aforward/stripe-post
2aa29bab7c69495bd43d53202589b7af48c9fa8c
[ "MIT" ]
null
null
null
lib/stripe_post/content.ex
aforward/stripe-post
2aa29bab7c69495bd43d53202589b7af48c9fa8c
[ "MIT" ]
1
2021-07-22T19:32:28.000Z
2021-07-22T20:04:03.000Z
lib/stripe_post/content.ex
aforward/stripe-post
2aa29bab7c69495bd43d53202589b7af48c9fa8c
[ "MIT" ]
null
null
null
defmodule StripePost.Content do @moduledoc """ Transform, decode and analyze raw encoded content based on it's type (e.g. decode a raw JSON string into an Elixir map) """ @doc """ Extract the content type of the headers ## Examples iex> StripePost.Content.type({:ok, "<xml />", [{"Server", "GitHub...
29.680412
132
0.593609
1da279b184848068e2e84c8fd047f7b6620e7eba
666
ex
Elixir
apps/games/lib/games/player.ex
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
apps/games/lib/games/player.ex
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
apps/games/lib/games/player.ex
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
defmodule ScatOnSlack.Games.Player do use Bank.Model alias ScatOnSlack.Games.Group schema "players" do field :email, :string field :team, :string belongs_to :group, Group timestamps() end @doc """ Builds a changeset based on the `struct` and `params`. """ def changeset(struct, para...
19.588235
79
0.63964
1da27dfa474cc84fac067671df878aa8a0b05c1e
246
exs
Elixir
elixir/priv/repo/migrations/20210311205854_add_category_id_column_to_transactions.exs
najens/web-homework
ad0b54f4faf59997385274305ea82c56d9bf11dc
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210311205854_add_category_id_column_to_transactions.exs
najens/web-homework
ad0b54f4faf59997385274305ea82c56d9bf11dc
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210311205854_add_category_id_column_to_transactions.exs
najens/web-homework
ad0b54f4faf59997385274305ea82c56d9bf11dc
[ "MIT" ]
null
null
null
defmodule Homework.Repo.Migrations.AddCategoryIdColumnToTransactions do use Ecto.Migration def change do alter table("transactions") do add(:category_id, references(:categories, type: :uuid, on_delete: :nothing)) end end end
24.6
82
0.747967
1da28dfe73bbdbfc7d279739535b2aaa8d670a15
80
exs
Elixir
test/videoke_web/views/page_view_test.exs
ElixirLabOrg/videoke
85873be94f17167c505c6d1066e30e30b8acd148
[ "MIT" ]
null
null
null
test/videoke_web/views/page_view_test.exs
ElixirLabOrg/videoke
85873be94f17167c505c6d1066e30e30b8acd148
[ "MIT" ]
null
null
null
test/videoke_web/views/page_view_test.exs
ElixirLabOrg/videoke
85873be94f17167c505c6d1066e30e30b8acd148
[ "MIT" ]
null
null
null
defmodule VideokeWeb.PageViewTest do use VideokeWeb.ConnCase, async: true end
20
38
0.825
1da2c77763237c9d15a9184cc7804ee63c9a6ecc
3,683
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/creative_custom_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/creative_custom_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/creative_custom_event.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
47.217949
206
0.735813
1da2de91e0879051402ea078929f8d2a3cdf05e0
830
ex
Elixir
domain_holder/lib/domain_holder_web/router.ex
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
1
2019-08-30T08:45:43.000Z
2019-08-30T08:45:43.000Z
domain_holder/lib/domain_holder_web/router.ex
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
5
2020-10-15T13:33:02.000Z
2020-10-15T13:33:04.000Z
domain_holder/lib/domain_holder_web/router.ex
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
null
null
null
defmodule DomainHolderWeb.Router do use DomainHolderWeb, :router import Phoenix.LiveView.Router alias DomainHolderWeb.Plugs.DomainChecker pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug Phoenix.LiveView.Flash plug :protect_from_forgery plug :put_...
22.432432
56
0.709639
1da2eab03bfdbcbf4f62515abbd0f9bc91827f5f
22
ex
Elixir
spec/fixtures/elixirc/valid.ex
AtomLinter/linter-elixirc
49c442d3bd6691f3cb1c29f009c56c53105cecb6
[ "MIT" ]
18
2015-01-05T07:22:35.000Z
2018-06-15T14:31:48.000Z
spec/fixtures/elixirc/valid.ex
AtomLinter/linter-elixirc
49c442d3bd6691f3cb1c29f009c56c53105cecb6
[ "MIT" ]
85
2015-05-03T17:30:56.000Z
2021-10-20T05:25:20.000Z
spec/fixtures/elixirc/valid.ex
AtomLinter/linter-elixirc
49c442d3bd6691f3cb1c29f009c56c53105cecb6
[ "MIT" ]
15
2015-05-23T06:19:32.000Z
2018-04-15T03:46:42.000Z
def start do 42 end
5.5
12
0.681818
1da2ec04599d6214b879cf067661c2a72df7051d
3,897
ex
Elixir
app/lib/app_web/controllers/course_controller.ex
kljensen/yale-class-chat
b03e72deed967249a64404bff68b1cf22e7e1e6a
[ "Unlicense" ]
1
2020-02-10T21:35:17.000Z
2020-02-10T21:35:17.000Z
app/lib/app_web/controllers/course_controller.ex
kljensen/yale-class-chat
b03e72deed967249a64404bff68b1cf22e7e1e6a
[ "Unlicense" ]
86
2020-01-24T14:53:27.000Z
2021-05-18T19:16:30.000Z
app/lib/app_web/controllers/course_controller.ex
kljensen/yale-class-chat
b03e72deed967249a64404bff68b1cf22e7e1e6a
[ "Unlicense" ]
null
null
null
defmodule AppWeb.CourseController do use AppWeb, :controller alias App.Courses alias App.Courses.Course def index(conn, _params) do user = conn.assigns.current_user case user.is_faculty do true -> courses = Courses.list_user_courses(user) list = Courses.list_semester_names() ...
35.752294
101
0.638183
1da31a98ba4551586780f1aa4f1da9da0eb79663
1,363
exs
Elixir
server/config/dev.exs
ravivooda/contactCard
5e2e219fc4c146487a5876ce7481b0245bba452d
[ "MIT" ]
null
null
null
server/config/dev.exs
ravivooda/contactCard
5e2e219fc4c146487a5876ce7481b0245bba452d
[ "MIT" ]
null
null
null
server/config/dev.exs
ravivooda/contactCard
5e2e219fc4c146487a5876ce7481b0245bba452d
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :contact_card_server, ContactCardServer.Endpoint...
30.977273
73
0.707997
1da345303879276c5661637e24ffc6115ae8b98f
502
exs
Elixir
config/test.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
config/test.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
config/test.exs
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :documents_design, DocumentsDesignWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :do...
26.421053
56
0.75498
1da3512f67ea9846c414dbe5f4db9680c0a241f7
343
exs
Elixir
priv/repo/seeds.exs
gpad/les
2317b8055ab24aa857a6cda06f6e529c992c668c
[ "Apache-2.0" ]
11
2018-04-06T14:02:15.000Z
2020-12-09T10:44:03.000Z
priv/repo/seeds.exs
gpad/les
2317b8055ab24aa857a6cda06f6e529c992c668c
[ "Apache-2.0" ]
1
2018-11-18T02:35:23.000Z
2018-11-18T02:35:23.000Z
priv/repo/seeds.exs
gpad/les
2317b8055ab24aa857a6cda06f6e529c992c668c
[ "Apache-2.0" ]
null
null
null
# 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: # # Les.Repo.insert!(%Les.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail if...
28.583333
61
0.699708
1da35d91345fe3d7057526cb329fd12856522735
7,008
ex
Elixir
apps/ewallet_db/lib/ewallet_db/membership.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/lib/ewallet_db/membership.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/lib/ewallet_db/membership.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 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 ...
27.809524
93
0.645833
1da3600b81451e333a531ebc2f5f45b186a7bfeb
482
ex
Elixir
lib/web/controllers/channel_controller.ex
oestrich/raisin
7a0cf13768a8e59b023f8e940c73e7c7eeff18e8
[ "MIT" ]
1
2018-10-23T04:13:35.000Z
2018-10-23T04:13:35.000Z
lib/web/controllers/channel_controller.ex
oestrich/raisin
7a0cf13768a8e59b023f8e940c73e7c7eeff18e8
[ "MIT" ]
null
null
null
lib/web/controllers/channel_controller.ex
oestrich/raisin
7a0cf13768a8e59b023f8e940c73e7c7eeff18e8
[ "MIT" ]
null
null
null
defmodule Web.ChannelController do use Web, :controller alias Backbone.Channels alias Raisin.Messages def index(conn, _params) do conn |> assign(:channels, Channels.all(include_hidden: true)) |> render("index.html") end def show(conn, %{"id" => name}) do with {:ok, channel} <- Channels.ge...
21.909091
60
0.641079
1da3a5fb61e58f5160c208a08511f7f19f42b2cc
711
ex
Elixir
lib/code_corps/analytics/in_memory_api.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
lib/code_corps/analytics/in_memory_api.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
lib/code_corps/analytics/in_memory_api.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Analytics.InMemoryAPI do @moduledoc """ In-memory interface to simulate calling out to the Segment API. Each function should have the same signature as `CodeCorps.Analytics.SegmentAPI` and simply return `nil`. """ require Logger def identify(user_id, _traits), do: log_identify(user_id...
30.913043
107
0.746835
1da3d23e1a491167e2311eecef6d99aa3031f859
1,065
exs
Elixir
mix.exs
samgaw/porcelain
3a19526b61945736e682704c5d873b5dcf7c50ad
[ "MIT" ]
null
null
null
mix.exs
samgaw/porcelain
3a19526b61945736e682704c5d873b5dcf7c50ad
[ "MIT" ]
null
null
null
mix.exs
samgaw/porcelain
3a19526b61945736e682704c5d873b5dcf7c50ad
[ "MIT" ]
null
null
null
defmodule Porcelain.Mixfile do use Mix.Project def project do [ app: :porcelain, version: "2.0.3", elixir: "~> 1.3", deps: deps(), description: description(), docs: docs(), package: package() ] end def application do [ applications: [:logger, :crypt...
19.363636
81
0.552113
1da3e541f2768942492c78d5e00b733db15b1c26
3,716
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/status.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/status.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 &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...
90.634146
2,549
0.763186
1da3ebc7c210c82810400700a41c5934a5fb9a27
3,940
ex
Elixir
lib/elastix/snapshot/snapshot.ex
iza-seguros/elastix
9afc57c9de3c3014d25b62d11e806433e72c35ba
[ "WTFPL" ]
265
2015-07-09T23:16:03.000Z
2022-03-02T10:51:33.000Z
lib/elastix/snapshot/snapshot.ex
iza-seguros/elastix
9afc57c9de3c3014d25b62d11e806433e72c35ba
[ "WTFPL" ]
55
2015-07-17T09:33:54.000Z
2022-03-17T12:34:05.000Z
lib/elastix/snapshot/snapshot.ex
iza-seguros/elastix
9afc57c9de3c3014d25b62d11e806433e72c35ba
[ "WTFPL" ]
88
2015-07-17T09:17:33.000Z
2022-02-14T18:24:11.000Z
defmodule Elastix.Snapshot.Snapshot do @moduledoc """ Functions for working with snapshots. [Elastic documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) """ import Elastix.HTTP, only: [prepare_url: 2] alias Elastix.{HTTP, JSON} @doc """ Creates a sna...
36.481481
138
0.681218
1da45d0d4ad97badbd55f56dbc842ee0b307416d
2,136
exs
Elixir
test/smart_tracer_test.exs
vinceurag/smart_tracer
ee0cd831038e7b3c4b7c92b9796f225e8a35ee78
[ "MIT" ]
1
2020-02-03T09:46:21.000Z
2020-02-03T09:46:21.000Z
test/smart_tracer_test.exs
vinceurag/smart_tracer
ee0cd831038e7b3c4b7c92b9796f225e8a35ee78
[ "MIT" ]
null
null
null
test/smart_tracer_test.exs
vinceurag/smart_tracer
ee0cd831038e7b3c4b7c92b9796f225e8a35ee78
[ "MIT" ]
null
null
null
defmodule SmartTracerTest do use ExUnit.Case, async: true alias SmartTracer.Support.FakeModule setup do Code.ensure_loaded(FakeModule) on_exit(fn -> SmartTracer.stop() end) end describe "trace/3" do test "starts the tracer and receiver processes" do SmartTracer.trace(&FakeModul...
26.37037
93
0.683989
1da469e608a4d2f8c0b1bccdaa026105efb99d8c
407
exs
Elixir
priv/repo/migrations/20160316063641_create_line_item.exs
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
22
2016-03-31T02:58:09.000Z
2020-06-16T02:37:16.000Z
priv/repo/migrations/20160316063641_create_line_item.exs
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
7
2016-03-27T14:22:59.000Z
2021-04-27T14:33:51.000Z
priv/repo/migrations/20160316063641_create_line_item.exs
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
13
2016-04-21T06:05:32.000Z
2018-08-23T06:38:54.000Z
defmodule ExAdminDemo.Repo.Migrations.CreateLineItem do use Ecto.Migration def change do create table(:line_items) do add :price, :decimal add :order_id, references(:orders, on_delete: :nothing) add :product_id, references(:products, on_delete: :nothing) timestamps end create i...
23.941176
65
0.697789
1da46fb0e8e677709955bf0e034cf4faf7dc2f61
2,318
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/service.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/service.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/service.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...
43.735849
443
0.739431
1da46fc167f5ecfaf0482adafa9ba4604092588e
642
ex
Elixir
web/models/user.ex
wsmoak/secret_keeper
1e14ef26d1421947a81b4e1a77aa9e00fed98a21
[ "MIT" ]
5
2015-12-21T00:33:41.000Z
2016-05-07T20:51:55.000Z
web/models/user.ex
wsmoak/secret_keeper
1e14ef26d1421947a81b4e1a77aa9e00fed98a21
[ "MIT" ]
null
null
null
web/models/user.ex
wsmoak/secret_keeper
1e14ef26d1421947a81b4e1a77aa9e00fed98a21
[ "MIT" ]
null
null
null
defmodule SecretKeeper.User do use SecretKeeper.Web, :model schema "users" do field :email, :string field :password_hash, :string field :password, :string, virtual: true timestamps end @required_fields ~w(email password) @optional_fields ~w() @doc """ Creates a changeset based on the `...
22.928571
61
0.682243
1da4bc0fe1f41eb7cb797a8db15e071b9fcbfced
107
exs
Elixir
.iex.exs
peburrows/murdoch
731d73b4c0c0734a777991f330638c89ed1d16ec
[ "MIT" ]
99
2016-04-28T13:45:44.000Z
2021-12-03T06:48:28.000Z
.iex.exs
peburrows/murdoch
731d73b4c0c0734a777991f330638c89ed1d16ec
[ "MIT" ]
29
2016-04-29T23:22:35.000Z
2022-03-15T16:41:34.000Z
.iex.exs
peburrows/murdoch
731d73b4c0c0734a777991f330638c89ed1d16ec
[ "MIT" ]
46
2016-03-21T18:21:38.000Z
2022-03-23T07:49:42.000Z
try do import_file "~/.iex.exs" rescue _ -> :ok end alias Kane.{Message, Subscription, Topic, Client}
13.375
49
0.682243
1da4db2a29ff6c30f1e5f421ef04a6ad211cdc6c
5,155
ex
Elixir
lib/benchee/benchmark/repeated_measurement.ex
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
lib/benchee/benchmark/repeated_measurement.ex
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
lib/benchee/benchmark/repeated_measurement.ex
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
defmodule Benchee.Benchmark.RepeatedMeasurement do @moduledoc false # This module is an internal implementation detail, and should absolutely not be relied upon # from external clients. # # It is used when we can't conduct measurements precise enough with our measurement precision. # I.e. we can measure in...
35.308219
97
0.692532
1da5024acbf62510c86182a874eb02120b9dc59c
85
exs
Elixir
config/config.exs
oms-services/postmark
5eb9c70e6d0bc7a21e1a2fb8e76762f102e31e24
[ "MIT" ]
null
null
null
config/config.exs
oms-services/postmark
5eb9c70e6d0bc7a21e1a2fb8e76762f102e31e24
[ "MIT" ]
null
null
null
config/config.exs
oms-services/postmark
5eb9c70e6d0bc7a21e1a2fb8e76762f102e31e24
[ "MIT" ]
1
2018-12-23T21:59:23.000Z
2018-12-23T21:59:23.000Z
use Mix.Config config :postmark, server_token: {:system, "server_token", "token"}
17
50
0.717647
1da5213be020c43b17e18b30796e7ae12f024cf3
1,482
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/add_sheet_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/add_sheet_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/add_sheet_response.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 &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...
30.875
95
0.754386
1da56c3ee55b84f8b811bb1ebcd9b97a8299fd64
1,662
ex
Elixir
lib/vintage_net/os_event_dispatcher.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/os_event_dispatcher.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
lib/vintage_net/os_event_dispatcher.ex
axelson/vintage_net
68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca
[ "Apache-2.0" ]
null
null
null
defmodule VintageNet.OSEventDispatcher do @moduledoc false require Logger @doc """ Called by BEAMNotify to report OS events Currently this includes reports from: * `udhcpc` * `udhcpd` The first parameter is a list of arguments and the second is the OS environment. """ @spec dispatch([String.t(...
27.7
93
0.649819
1da5839522fd14a225b1fc1480321145093c9ec2
609
ex
Elixir
deps/mazurka/lib/mazurka/resource/input.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/mazurka/lib/mazurka/resource/input.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/mazurka/lib/mazurka/resource/input.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
defmodule Mazurka.Resource.Input do @moduledoc false alias Mazurka.Resource.Utils use Utils.Global, var: :input alias Utils.Scope defmacro __using__(_) do quote do require unquote(__MODULE__) alias unquote(__MODULE__) import unquote(__MODULE__), only: [input: 1, input: 2] end end...
19.03125
60
0.650246
1da5944c9f7b8c74e5bfae661bfa11af829f15e0
1,930
ex
Elixir
lib/ecto/migration/schema_migration.ex
tcrossland/ecto_sql
94a9bb8afe7c09f98f566433fa72ef93badc52ba
[ "Apache-2.0" ]
1
2019-11-11T21:48:20.000Z
2019-11-11T21:48:20.000Z
lib/ecto/migration/schema_migration.ex
tcrossland/ecto_sql
94a9bb8afe7c09f98f566433fa72ef93badc52ba
[ "Apache-2.0" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
lib/ecto/migration/schema_migration.ex
tcrossland/ecto_sql
94a9bb8afe7c09f98f566433fa72ef93badc52ba
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Migration.SchemaMigration do # Defines a schema that works with a table that tracks schema migrations. # The table name defaults to `schema_migrations`. @moduledoc false use Ecto.Schema import Ecto.Query, only: [from: 2] @primary_key false schema "schema_migrations" do field :version,...
32.711864
91
0.695337
1da5ebece175a26d5e73c0e4dbe66da30b89e19c
16,040
ex
Elixir
lib/postgrex/types.ex
gilala/postgrex
9eac7ace9be82c8284f5ba3b81b76ae08533d6d9
[ "Apache-2.0" ]
null
null
null
lib/postgrex/types.ex
gilala/postgrex
9eac7ace9be82c8284f5ba3b81b76ae08533d6d9
[ "Apache-2.0" ]
null
null
null
lib/postgrex/types.ex
gilala/postgrex
9eac7ace9be82c8284f5ba3b81b76ae08533d6d9
[ "Apache-2.0" ]
null
null
null
defmodule Postgrex.Types do @moduledoc false alias Postgrex.TypeInfo alias Postgrex.Utils import Postgrex.BinaryUtils require Decimal @types ~w(bool bpchar text varchar bytea int2 int4 int8 float4 float8 numeric date time timetz timestamp timestamptz interval) @gd_epoch :calendar.date_to_gr...
31.699605
140
0.611284
1da5f6b9a68792e0abf7a81901c83a36cf2fad13
4,920
ex
Elixir
lib/chat_api_web/channels/notification_channel.ex
xprazak2/papercups
925e7c20ab868648e078a129e832856026c50424
[ "MIT" ]
1
2021-01-18T09:57:23.000Z
2021-01-18T09:57:23.000Z
lib/chat_api_web/channels/notification_channel.ex
xprazak2/papercups
925e7c20ab868648e078a129e832856026c50424
[ "MIT" ]
null
null
null
lib/chat_api_web/channels/notification_channel.ex
xprazak2/papercups
925e7c20ab868648e078a129e832856026c50424
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.NotificationChannel do use ChatApiWeb, :channel alias ChatApiWeb.Presence alias Phoenix.Socket.Broadcast alias ChatApi.{Messages, Conversations} require Logger @impl true def join("notification:" <> account_id, %{"ids" => ids}, socket) do if authorized?(socket, account_id) do ...
28.77193
95
0.646748
1da5fb69e8058849945a018edde2e8d6b64e6c9a
1,403
exs
Elixir
test/pact_specification/version_2_0_test.exs
lincolnf/pact_elixir
21e5f473e3c30173881e577ffda8df1e1419d47d
[ "MIT" ]
27
2018-02-28T22:42:14.000Z
2022-03-20T00:30:08.000Z
test/pact_specification/version_2_0_test.exs
lincolnf/pact_elixir
21e5f473e3c30173881e577ffda8df1e1419d47d
[ "MIT" ]
180
2017-12-04T09:42:53.000Z
2022-03-28T09:33:23.000Z
test/pact_specification/version_2_0_test.exs
lincolnf/pact_elixir
21e5f473e3c30173881e577ffda8df1e1419d47d
[ "MIT" ]
8
2018-08-01T17:14:52.000Z
2022-01-26T12:46:46.000Z
# PACT_SPEC_DIR = "../pact-specification/testcases" # REQUEST_TEST_CASE_FOLDERS = Dir.glob("#{PACT_SPEC_DIR}/request/**") # REQUEST_TEST_CASE_FILES = Dir.glob("#{PACT_SPEC_DIR}/request/**/*.json") # TEST_DESCRIPTIONS = {true => "matches", false => "does not match"} # describe "Pact gem complicance with Pact Specifica...
31.886364
90
0.603706
1da60f5f97451787a16a9e31a549d65864587f9f
838
exs
Elixir
30daysofcode/day26_nested_logic.exs
nathanchere/HackerRank_Elixir
607e4ae10d94edb20296c8979179648af4af3ca6
[ "MIT" ]
2
2016-09-20T11:56:33.000Z
2016-10-20T20:11:04.000Z
30daysofcode/day26_nested_logic.exs
nathanchere/HackerRank_Elixir
607e4ae10d94edb20296c8979179648af4af3ca6
[ "MIT" ]
null
null
null
30daysofcode/day26_nested_logic.exs
nathanchere/HackerRank_Elixir
607e4ae10d94edb20296c8979179648af4af3ca6
[ "MIT" ]
null
null
null
# HackerRank "30 Days of Code" - Day 26 - Nested Logic defmodule Solution do defp get_date do [day,month,year] = IO.gets("") |> String.strip |> String.split |> Enum.map(fn(x)->String.to_integer(x) end) [year,month,day] end defp get_total_fine([y,m,d],[y,m,d]), do: 0 defp get_total_fine([y1,_,...
27.933333
70
0.626492
1da62096642186d352df2b50346ac694b94b423f
2,413
exs
Elixir
test/teiserver/protocols/spring/spring_telemetry_test.exs
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
test/teiserver/protocols/spring/spring_telemetry_test.exs
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
test/teiserver/protocols/spring/spring_telemetry_test.exs
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
defmodule Teiserver.SpringTelemetryTest do use Central.ServerCase, async: false alias Teiserver.Telemetry import Teiserver.TeiserverTestLib, only: [auth_setup: 0, _send_raw: 2, _recv_raw: 1, raw_setup: 0] setup do %{socket: socket, user: user} = auth_setup() {:ok, socket: socket, user: user} end ...
35.485294
109
0.721094
1da62f9f8a6317cb150b08d134d7301be08a7467
3,902
exs
Elixir
test/game/command/mail_test.exs
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
1
2019-02-10T10:22:39.000Z
2019-02-10T10:22:39.000Z
test/game/command/mail_test.exs
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
null
null
null
test/game/command/mail_test.exs
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
null
null
null
defmodule Game.Command.MailTest do use Data.ModelCase doctest Game.Command.Mail alias Game.Command.Mail @socket Test.Networking.Socket setup do @socket.clear_messages user = create_user(%{name: "user", password: "password"}) character = create_character(user, %{name: "user"}) %{state: sess...
31.467742
98
0.620964
1da63b3e3771e843b684290a2c8ea148a18ecc91
279
ex
Elixir
lib/phoenix.ex
wojtekmach/phoenix
a6b3bf301c7088b8824a39a165582dc85dfdd2a4
[ "MIT" ]
null
null
null
lib/phoenix.ex
wojtekmach/phoenix
a6b3bf301c7088b8824a39a165582dc85dfdd2a4
[ "MIT" ]
null
null
null
lib/phoenix.ex
wojtekmach/phoenix
a6b3bf301c7088b8824a39a165582dc85dfdd2a4
[ "MIT" ]
null
null
null
defmodule Phoenix do use Application # Application callbacks @doc false def start(_type, _args) do Phoenix.Supervisor.start_link end @doc false def config_change(changed, _new, removed) do Phoenix.Config.config_change(changed, removed) :ok end end
16.411765
50
0.724014
1da64d4c9521e8d90181f91e4b7152fabcd0c5f1
2,258
ex
Elixir
tutorials/official-tutorial/binaries-strings-char-lists.ex
josiah14/elixir-exploration
c16f1eedbe0f223964df2bd51e0889be266f3b3a
[ "MIT" ]
null
null
null
tutorials/official-tutorial/binaries-strings-char-lists.ex
josiah14/elixir-exploration
c16f1eedbe0f223964df2bd51e0889be266f3b3a
[ "MIT" ]
null
null
null
tutorials/official-tutorial/binaries-strings-char-lists.ex
josiah14/elixir-exploration
c16f1eedbe0f223964df2bd51e0889be266f3b3a
[ "MIT" ]
null
null
null
######################################## # UTF-8 and Unicode ######################################## string = "hello" is_binary(string) #=> true string = "hełło" # count bytes byte_size(string) #=> 7 # count characters String.length(string) #=> 5 # ? gets a character's code point ?a #=> 97 ?ł #=> 322 String.codepo...
18.816667
100
0.494686
1da658eb3b627d7903918f3d1e03de561ffd8640
63
ex
Elixir
lib/athel/vault.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
14
2016-09-12T02:45:12.000Z
2021-02-08T04:13:29.000Z
lib/athel/vault.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
3
2016-09-12T05:17:35.000Z
2016-09-14T16:35:04.000Z
lib/athel/vault.ex
ruhlio/athel
c06a317f38ef7fa28dcb8b1f23889a01c4aa6538
[ "Apache-2.0" ]
1
2018-02-12T04:30:52.000Z
2018-02-12T04:30:52.000Z
defmodule Athel.Vault do use Cloak.Vault, otp_app: :athel end
21
34
0.777778
1da6ad96c3b5ff8ba0e02eccbb9a80d3930d23d0
710
ex
Elixir
web/gettext.ex
judas-christ/final-forum
c42f0f1a2913eb2373353779ced9b4566183422b
[ "MIT" ]
null
null
null
web/gettext.ex
judas-christ/final-forum
c42f0f1a2913eb2373353779ced9b4566183422b
[ "MIT" ]
null
null
null
web/gettext.ex
judas-christ/final-forum
c42f0f1a2913eb2373353779ced9b4566183422b
[ "MIT" ]
null
null
null
defmodule FinalForum.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import FinalForum.Gettext # Simple translation gettext "Here is th...
28.4
71
0.68169