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
976fa6cc0d0b47e7c55d85b8de75cc1ae208d712
3,414
ex
Elixir
13.OrganizeProjects/op3/issues/lib/issues/cli.ex
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
6
2019-10-25T21:51:11.000Z
2022-03-23T02:11:38.000Z
13.OrganizeProjects/op3/issues/lib/issues/cli.ex
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
null
null
null
13.OrganizeProjects/op3/issues/lib/issues/cli.ex
kenspirit/programming-elixir-exercises
35ca1f0cb17ca4040b395c2f9cc53e51918c99ca
[ "MIT" ]
1
2020-06-16T12:37:43.000Z
2020-06-16T12:37:43.000Z
defmodule Issues.CLI do @default_count 4 @moduledoc """ Handle the command line parsing and the dispath to the various functions that end up generating a table of the last _n_ issues in a github project """ def run(argv) do argv |> parse_args # |> IO.puts |> process end @doc """ `...
28.932203
166
0.602519
976fba0978dd6f3827e1fe9dd71b66b8c45ac3f7
64
ex
Elixir
lib/dgraph_ex/expr/min.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
21
2017-08-20T06:19:37.000Z
2021-02-04T23:22:10.000Z
lib/dgraph_ex/expr/min.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
43
2017-08-06T21:03:28.000Z
2018-09-08T13:00:35.000Z
lib/dgraph_ex/expr/min.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
1
2017-10-12T02:20:13.000Z
2017-10-12T02:20:13.000Z
defmodule DgraphEx.Expr.Min do use DgraphEx.Expr.Agg, :min end
21.333333
30
0.78125
976ff1c75a7b7c383c181c5e5954674e8d5de848
1,378
ex
Elixir
lib/fun_retro_web/router.ex
Harmful-Alchemist/FunRetro
6b53c16adb2c233e5338799732a5a5c2fe10acaf
[ "MIT" ]
null
null
null
lib/fun_retro_web/router.ex
Harmful-Alchemist/FunRetro
6b53c16adb2c233e5338799732a5a5c2fe10acaf
[ "MIT" ]
null
null
null
lib/fun_retro_web/router.ex
Harmful-Alchemist/FunRetro
6b53c16adb2c233e5338799732a5a5c2fe10acaf
[ "MIT" ]
null
null
null
defmodule FunRetroWeb.Router do use FunRetroWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :protect_from_forgery plug :put_secure_browser_headers plug :put_root_layout, {FunRetroWeb.LayoutView, :root} plug FunRetroWeb.Auth end...
27.56
70
0.697388
976fff244bf78af5a899e7ee72a0b6ebf4d0af45
7,863
exs
Elixir
test/commands/correlation_causation_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
1
2022-02-20T10:42:07.000Z
2022-02-20T10:42:07.000Z
test/commands/correlation_causation_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
null
null
null
test/commands/correlation_causation_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
null
null
null
defmodule Commanded.Commands.CorrelationCasuationTest do use ExUnit.Case import Commanded.Assertions.EventAssertions alias Commanded.Commands.OpenAccountBonusHandler alias Commanded.EventStore alias Commanded.ExampleDomain.BankApp alias Commanded.ExampleDomain.BankAccount.Commands.{OpenAccount, WithdrawMo...
33.459574
96
0.689304
977005a000cb22002f7b3fd66832033ceec1de41
3,070
exs
Elixir
apps/omg_api/test/alert/alarm_test.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_api/test/alert/alarm_test.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_api/test/alert/alarm_test.exs
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
2
2020-06-07T11:14:54.000Z
2020-08-02T07:36:32.000Z
# Copyright 2018 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 writi...
39.358974
93
0.735831
977013557fc9f98b9eaee6a66adf39b2bf38ad3d
1,234
ex
Elixir
clients/run/lib/google_api/run/v1/model/run_job_request.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/run_job_request.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/run_job_request.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...
29.380952
74
0.753647
97702412856fa834df851139bf7973b6d5fefbaf
1,971
ex
Elixir
lib/andy/systems/brickpi/sounds/lego_sound.ex
jfcloutier/andy
74b93f734d6f6353356041a603a96ad5aed4b5dc
[ "MIT" ]
7
2019-05-29T22:55:25.000Z
2021-08-22T18:38:29.000Z
lib/andy/systems/brickpi/sounds/lego_sound.ex
jfcloutier/andy
74b93f734d6f6353356041a603a96ad5aed4b5dc
[ "MIT" ]
null
null
null
lib/andy/systems/brickpi/sounds/lego_sound.ex
jfcloutier/andy
74b93f734d6f6353356041a603a96ad5aed4b5dc
[ "MIT" ]
1
2020-01-25T20:46:43.000Z
2020-01-25T20:46:43.000Z
defmodule Andy.BrickPi.LegoSound do @moduledoc "Lego sound playing" @behaviour Andy.Speaking require Logger alias Andy.{Device, Speaker} alias Andy import Andy.Utils, only: [get_andy_env: 2] @sys_path "/sound" @doc "Get the available sound player devices" def sound_players() do [:speech] |...
21.193548
92
0.645358
97705565e3b76d6977c29af1945d2fcd2228b034
4,126
ex
Elixir
plugins/ucc_chat/lib/ucc_chat_web/flex_bar/tab/info.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/lib/ucc_chat_web/flex_bar/tab/info.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
plugins/ucc_chat/lib/ucc_chat_web/flex_bar/tab/info.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
defmodule UccChatWeb.FlexBar.Tab.Info do use UccChatWeb.FlexBar.Helpers use UccLogger alias UccChat.Channel alias UcxUcc.{UccPubSub, Accounts, TabBar.Tab, Permissions} @spec add_buttons() :: no_return def add_buttons do TabBar.add_button Tab.new( __MODULE__, ~w[channel direct], "info...
31.022556
91
0.666263
97706bbd2afc23c3b49b0af8ac49a4bd1578fea7
2,101
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_synthesize_speech.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...
36.859649
284
0.750595
97708b74c05cca8b1c104d35e7ec9487e7d4d871
2,764
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_layout.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_layout.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_layout.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.485714
252
0.740593
9770e5fb021dbb82d7e22d458452d80cfb3af688
1,814
ex
Elixir
lib/kraken_api/http.ex
hosh/ex-kraken-api
c4e41023f37a030ae5380d2b048bd5f2f56893b2
[ "MIT" ]
null
null
null
lib/kraken_api/http.ex
hosh/ex-kraken-api
c4e41023f37a030ae5380d2b048bd5f2f56893b2
[ "MIT" ]
null
null
null
lib/kraken_api/http.ex
hosh/ex-kraken-api
c4e41023f37a030ae5380d2b048bd5f2f56893b2
[ "MIT" ]
null
null
null
defmodule KrakenApi.Http do @moduledoc """ HTTP helpers for Kraken """ # Returns a tuple {status, result} def get(method) do query_url = Application.get_env(:kraken_api, :api_endpoint) <> "/" <> Application.get_env(:kraken_api, :api_version) <> "/public/" <> method HTTPoison.get(query_url) |...
36.28
148
0.679713
97710a369be4cb32dbb49a8aa02113894bcee887
713
ex
Elixir
lib/surface/directive/for.ex
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
lib/surface/directive/for.ex
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
lib/surface/directive/for.ex
edgarmiadzieles/surface
24d1162cc25004df9d40a11dd65fca98d7b65c64
[ "MIT" ]
null
null
null
defmodule Surface.Directive.For do use Surface.Directive def extract({":for", {:attribute_expr, [value], expr_meta}, attr_meta}, meta) do %AST.Directive{ module: __MODULE__, name: :for, value: directive_value(value, Helpers.to_meta(expr_meta, meta)), meta: Helpers.to_meta(attr_meta, met...
27.423077
84
0.659187
977146cc003888c450feff5751b049c427b53a7b
21,234
ex
Elixir
lib/aws/generated/comprehend.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/comprehend.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/comprehend.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Comprehend do @moduledoc """ Amazon Comprehend is an AWS service for gaining insight into the content of documents. Use these actions to determine the topics contained in your documents, t...
35.928934
82
0.724404
97719e336db1a6b07bc1a3cd75255f0aa3ac5769
695
ex
Elixir
src/dguweb/web/helpers.ex
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
2
2016-08-09T16:46:52.000Z
2016-08-09T16:46:59.000Z
src/dguweb/web/helpers.ex
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
48
2016-07-14T15:12:41.000Z
2016-09-27T16:19:54.000Z
src/dguweb/web/helpers.ex
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
1
2021-04-10T21:23:44.000Z
2021-04-10T21:23:44.000Z
defmodule DGUWeb.TemplateHelpers do # Truncates text to 140 characters either at the first ., the first \n or at 137 # chars <> "..." def truncate_text(text), do: DGUWeb.Util.Truncation.truncate(text) def is_number_string(val) do case Float.parse(val) do :error -> false {_, ""} -> true ...
19.857143
82
0.553957
9771d024fe9ab446c2edb43399f26162dc2f7122
2,243
exs
Elixir
backend/test/edgehog/astarte/device/system_status_test.exs
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
14
2021-12-02T16:31:16.000Z
2022-03-18T17:40:44.000Z
backend/test/edgehog/astarte/device/system_status_test.exs
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
77
2021-11-03T15:14:41.000Z
2022-03-30T14:13:32.000Z
backend/test/edgehog/astarte/device/system_status_test.exs
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 2021 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...
29.12987
95
0.634418
9771f9c636776c5a17de68b4a69fcf7c9a8262b4
2,452
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_optimized_stats_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_optimized_stats_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_optimized_stats_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.785714
158
0.744698
9772212b8cd8644d24b48ea3951e7d63bf05b191
1,028
ex
Elixir
monitoring_hub/apps/metrics_reporter_ui/web/channels/ingress_egress_channel.ex
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
monitoring_hub/apps/metrics_reporter_ui/web/channels/ingress_egress_channel.ex
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
monitoring_hub/apps/metrics_reporter_ui/web/channels/ingress_egress_channel.ex
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
defmodule MetricsReporterUI.IngressEgressChannel do use Phoenix.Channel alias MonitoringHubUtils.MessageLog def join("ingress-egress:" <> _metric_name, _message, socket) do send(self, :after_join) {:ok, socket} end def handle_info(:after_join, socket) do push_initial_throughputs(socket) {:noreply,...
34.266667
95
0.748054
97727464d7f95c46cdd191fdcd61291afb4e1e86
2,371
ex
Elixir
lib/mldht/routing_table/distance.ex
cit/MLDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
49
2015-11-24T12:12:48.000Z
2017-06-14T05:18:51.000Z
lib/mldht/routing_table/distance.ex
faried/MlDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
4
2019-07-03T15:18:51.000Z
2019-12-01T07:25:14.000Z
lib/mldht/routing_table/distance.ex
faried/MlDHT
3ada20ab01cf1eb312bf673f7ddd244f45319744
[ "MIT" ]
7
2017-07-14T03:19:00.000Z
2022-01-25T23:02:01.000Z
defmodule MlDHT.RoutingTable.Distance do @moduledoc false require Bitwise @doc """ TODO """ def closest_nodes(nodes, target, n) do closest_nodes(nodes, target) |> Enum.slice(0..n) end def closest_nodes(nodes, target) do Enum.sort(nodes, fn(x, y) -> xor_cmp(x.id, y.id, target, &(&1 <...
28.566265
93
0.632644
977276e6b2334f089be4088ad52d696afcbf0a38
791
exs
Elixir
config/prod.exs
MichaelDimmitt/unf-swuber
7c205c6e80bcc3ef4ee55490ad497061253bcc61
[ "Apache-2.0" ]
2
2017-04-23T17:31:55.000Z
2017-07-22T12:54:24.000Z
config/prod.exs
Swuber/unf-swuber_web_app_phoenix
7c205c6e80bcc3ef4ee55490ad497061253bcc61
[ "Apache-2.0" ]
7
2017-04-11T18:42:57.000Z
2017-04-16T22:54:11.000Z
config/prod.exs
MichaelDimmitt/unf-swuber
7c205c6e80bcc3ef4ee55490ad497061253bcc61
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :unf_swuber, UnfSwuber.Endpoint, http: [port: {:system, "PORT"}], url: [scheme: "https", host: "unf-swuber.herokuapp.com", port: 443], force_ssl: [rewrite_on: [:x_forwarded_proto]], cache_static_manifest: "priv/static/manifest.json", secret_key_base: System.get_env("SECRET_KEY_BASE") #...
31.64
70
0.749684
977299dfecb210a2cd34b2a1226e34fab185c89b
1,209
ex
Elixir
lib/mundum_web/views/category_view.ex
allen-garvey/mundum
15719f6bca998a04f783206f4db2214ebd439e61
[ "MIT" ]
null
null
null
lib/mundum_web/views/category_view.ex
allen-garvey/mundum
15719f6bca998a04f783206f4db2214ebd439e61
[ "MIT" ]
null
null
null
lib/mundum_web/views/category_view.ex
allen-garvey/mundum
15719f6bca998a04f783206f4db2214ebd439e61
[ "MIT" ]
null
null
null
defmodule MundumWeb.CategoryView do use MundumWeb, :view def render("new.html", assigns) do assigns = Map.merge(assigns, shared_form_assigns(assigns)) render MundumWeb.SharedView, "new.html", assigns end def render("edit.html", assigns) do assigns = Map.merge(assigns, %{ item_disp...
23.25
83
0.655914
9772aca97924187421355b51d5801d26df750594
596
exs
Elixir
test/cog/chat/hipchat/templates/embedded/raw_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
test/cog/chat/hipchat/templates/embedded/raw_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
test/cog/chat/hipchat/templates/embedded/raw_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Chat.HipChat.Templates.Embedded.RawTest do use Cog.TemplateCase test "raw renders properly even when the return contains a body tag" do data = %{"results" => [%{"body" => ["bar"]}]} expected = "<pre>[\n {\n \"body\": [\n \"bar\"\n ]\n }\n]</pre>" assert_rendered_template(:hip...
35.058824
81
0.588926
9772e704460604e2b4b7ca7d4f9a47082af352fb
156
ex
Elixir
debian/menu.ex
qiuzhiqian/wallpaper
9bb347acb78d583336d127016c7da96164d8fa7e
[ "MIT" ]
9
2020-03-04T02:42:12.000Z
2021-11-17T08:23:58.000Z
debian/menu.ex
qiuzhiqian/wallpaper
9bb347acb78d583336d127016c7da96164d8fa7e
[ "MIT" ]
null
null
null
debian/menu.ex
qiuzhiqian/wallpaper
9bb347acb78d583336d127016c7da96164d8fa7e
[ "MIT" ]
null
null
null
?package(wallpaper-toolbox):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ title="wallpaper-toolbox" command="/usr/bin/wallpaper-toolbox"
52
90
0.775641
977300a37021677d382e88a9a1ac2625952abdce
8,743
ex
Elixir
lib/portalcs_web/views/coherence/coherence_view_helpers.ex
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
lib/portalcs_web/views/coherence/coherence_view_helpers.ex
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
lib/portalcs_web/views/coherence/coherence_view_helpers.ex
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
defmodule PortalcsWeb.Coherence.ViewHelpers do @moduledoc """ Helper functions for Coherence Views. """ use Phoenix.HTML alias Coherence.Config import PortalcsWeb.Gettext @type conn :: Plug.Conn.t @type schema :: Ecto.Schema.t @seperator {:safe, "&nbsp; | &nbsp;"} @helpers PortalcsWeb.Router.Helpe...
35.831967
122
0.68226
97732eb477c0877b0f7515f56fdc4493c1b28505
2,423
ex
Elixir
clients/books/lib/google_api/books/v1/model/volumeannotation_content_ranges.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/volumeannotation_content_ranges.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/books/lib/google_api/books/v1/model/volumeannotation_content_ranges.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.267857
165
0.743706
97735a18f5a2435934ceaec9b2916a75d6f84658
4,668
ex
Elixir
lib/datamatrix/cli.ex
cschmatzler/datamatrix
ac8e0733f8535c1b276276acad9e90e90a53e7aa
[ "MIT" ]
5
2020-02-24T22:31:19.000Z
2022-02-11T08:57:43.000Z
lib/datamatrix/cli.ex
cschmatzler/datamatrix
ac8e0733f8535c1b276276acad9e90e90a53e7aa
[ "MIT" ]
null
null
null
lib/datamatrix/cli.ex
cschmatzler/datamatrix
ac8e0733f8535c1b276276acad9e90e90a53e7aa
[ "MIT" ]
1
2021-08-05T12:01:43.000Z
2021-08-05T12:01:43.000Z
defmodule DataMatrix.CLI do @moduledoc false alias DataMatrix.Render @version Mix.Project.config()[:version] @switches [ help: :boolean, version: :boolean, preview: :boolean, input: :string, output: :string, symbol: :integer, rectangle: :boolean, dark: :string, light: :str...
20.473684
91
0.552699
9773a728459cda5423944405c136f0a3aa865565
1,426
ex
Elixir
lib/avrora/config.ex
RafaelCamarda/avrora
0771d18a7082992be035b9aaadfe625808b6de6f
[ "MIT" ]
null
null
null
lib/avrora/config.ex
RafaelCamarda/avrora
0771d18a7082992be035b9aaadfe625808b6de6f
[ "MIT" ]
null
null
null
lib/avrora/config.ex
RafaelCamarda/avrora
0771d18a7082992be035b9aaadfe625808b6de6f
[ "MIT" ]
null
null
null
defmodule Avrora.Config do @moduledoc """ Configuration for Avrora with some extra options. ## Available options: * `schemas_path` a path where all local schemas stored (default: ./priv/schemas) * `registry_url` a Confluent Schema Registry url (default: nil) * `names_cache_ttl` a time to keep ...
33.952381
103
0.732118
9773b04d22c2646dcea6970079a8c17ca962b326
904
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/metadata.ex
rafaltrojanowski/elixir-google-api
779f15166741b9cf57cb832228f1115bfb8edb13
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/metadata.ex
rafaltrojanowski/elixir-google-api
779f15166741b9cf57cb832228f1115bfb8edb13
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/metadata.ex
rafaltrojanowski/elixir-google-api
779f15166741b9cf57cb832228f1115bfb8edb13
[ "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.481481
74
0.764381
9773c9c16e6bbdeb24fdedde80833e0f11861916
24,601
exs
Elixir
apps/omg_child_chain/test/omg_child_chain/datadog_event/encode_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg_child_chain/test/omg_child_chain/datadog_event/encode_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg_child_chain/test/omg_child_chain/datadog_event/encode_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
56.166667
1,043
0.624731
9773d029091d25061a3cf2c798d220370f130e1f
505
ex
Elixir
lib/battleships_web/router.ex
alexander-lazarov/battleships
e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707
[ "MIT" ]
null
null
null
lib/battleships_web/router.ex
alexander-lazarov/battleships
e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707
[ "MIT" ]
2
2020-07-17T13:59:03.000Z
2021-05-09T20:35:32.000Z
lib/battleships_web/router.ex
alexander-lazarov/battleships
e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707
[ "MIT" ]
null
null
null
defmodule BattleshipsWeb.Router do use BattleshipsWeb, :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 "/", BattleshipsWeb ...
18.703704
39
0.683168
9773d133bd8eb8074828720176e7ae59c98f9889
636
exs
Elixir
config/test.exs
himrock922/we_reports
04cffcd0e56f441e5087b65cf80a31602afae419
[ "MIT" ]
null
null
null
config/test.exs
himrock922/we_reports
04cffcd0e56f441e5087b65cf80a31602afae419
[ "MIT" ]
5
2020-09-09T01:41:39.000Z
2021-05-11T00:18:38.000Z
config/test.exs
himrock922/we_reports
04cffcd0e56f441e5087b65cf80a31602afae419
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :we_reports, WeReports.Repo, username: "we_reports", password: "we_reports", database: "we_reports_test", hostname: "db", pool: Ecto.Adapters.SQL.Sandbox # We don't run a server during test. If one is required, # you can enable the server option below. config ...
28.909091
85
0.753145
9773e0a7ff693c4745f52413789069535f1616fb
1,974
exs
Elixir
test/sundog/datadog_test.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
test/sundog/datadog_test.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
test/sundog/datadog_test.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
defmodule Sundog.DatadogTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney alias Sundog.Datadog setup_all do [:datadog_api_key, :datadog_application_key, :datadog_host] |> Enum.each(fn target -> source = :"vcr_#{target}" value = Application.get_env(:sundog...
27.416667
79
0.64539
9773e94a28b19086ca12b40f9a708c14528c513c
80
exs
Elixir
test/fraction_test.exs
mgiacomini/ex-xirr
366179f0420b96fb1d19d8d5b179c6e992ddf0ed
[ "MIT" ]
8
2018-08-02T09:08:52.000Z
2022-01-18T06:17:14.000Z
test/fraction_test.exs
mgiacomini/ex-xirr
366179f0420b96fb1d19d8d5b179c6e992ddf0ed
[ "MIT" ]
4
2018-08-22T15:57:53.000Z
2022-01-13T22:39:03.000Z
test/fraction_test.exs
mgiacomini/ex-xirr
366179f0420b96fb1d19d8d5b179c6e992ddf0ed
[ "MIT" ]
6
2019-05-17T17:59:46.000Z
2022-01-13T22:39:40.000Z
defmodule FractionTest do use ExUnit.Case, async: true doctest Fraction end
16
30
0.7875
977416b480df752432af136524e292a0e96d5433
791
ex
Elixir
test/support/channel_case.ex
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
test/support/channel_case.ex
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
test/support/channel_case.ex
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
defmodule DocumentGeneratorWeb.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 datastructures and query the data layer. Finally, if the test case in...
24.71875
58
0.734513
9774187f05dbdf91ee590bec3a9ae465d9139212
691
exs
Elixir
test/audio_test.exs
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
5
2018-04-30T09:48:17.000Z
2020-05-01T10:20:15.000Z
test/audio_test.exs
BalalaikaIndustries/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
7
2018-04-28T06:39:10.000Z
2018-04-28T07:31:59.000Z
test/audio_test.exs
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
2
2018-04-27T19:42:04.000Z
2020-05-01T10:20:02.000Z
defmodule BalalaikaBear.AudioTest do use ExUnit.Case use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney test "gets user's audios" do use_cassette "audio_get" do params = %{ access_token: "ce90fcec95db1c3490072b6eece53b2c3c021c4af7f2f92e3eded1c04b13a29dd9564f81ce8c64f5ffe2d" } ...
25.592593
97
0.593343
97744c2842f1a77aa3a8eae67ca712e15ac03da3
269
ex
Elixir
test/support/fixtures.ex
ryoung786/urepo
a8d3339fbb978afc031339678c897f48dc1cfd9e
[ "Apache-2.0" ]
null
null
null
test/support/fixtures.ex
ryoung786/urepo
a8d3339fbb978afc031339678c897f48dc1cfd9e
[ "Apache-2.0" ]
null
null
null
test/support/fixtures.ex
ryoung786/urepo
a8d3339fbb978afc031339678c897f48dc1cfd9e
[ "Apache-2.0" ]
null
null
null
defmodule Urepo.Fixtures do @moduledoc false @fixtures Application.get_env(:urepo, :fixtures, "test/fixtures") @doc """ Read fixture ad given path """ def fixture(path) do [@fixtures | List.wrap(path)] |> Path.join() |> File.read!() end end
17.933333
67
0.639405
97746ec882f7aceabbcb8f805a392988986f9d99
75,465
exs
Elixir
priv/endpoints.exs
michalgritzbach/ex_aws
aec6176757fa006abcb82cfbbb3ac6d974e43a44
[ "MIT" ]
null
null
null
priv/endpoints.exs
michalgritzbach/ex_aws
aec6176757fa006abcb82cfbbb3ac6d974e43a44
[ "MIT" ]
null
null
null
priv/endpoints.exs
michalgritzbach/ex_aws
aec6176757fa006abcb82cfbbb3ac6d974e43a44
[ "MIT" ]
null
null
null
%{ "partitions" => [ %{ "defaults" => %{ "hostname" => "{service}.{region}.{dnsSuffix}", "protocols" => ["https"], "signatureVersions" => ["v4"] }, "dnsSuffix" => "amazonaws.com", "partition" => "aws", "partitionName" => "AWS Standard", "regionRegex" => ...
33.810484
97
0.308646
977479ffa0dba9aedaad52c26fefa764e44d0f0d
9,968
ex
Elixir
lib/tcp/client.ex
Sorc96/modbux
63fa2825b3a7642a63c86f82570f25b898e61a21
[ "Apache-2.0" ]
14
2019-11-14T22:04:24.000Z
2022-02-07T19:36:57.000Z
lib/tcp/client.ex
Sorc96/modbux
63fa2825b3a7642a63c86f82570f25b898e61a21
[ "Apache-2.0" ]
3
2020-01-11T07:52:53.000Z
2022-01-18T12:08:08.000Z
lib/tcp/client.ex
Sorc96/modbux
63fa2825b3a7642a63c86f82570f25b898e61a21
[ "Apache-2.0" ]
6
2020-02-26T09:27:35.000Z
2022-03-27T09:50:02.000Z
defmodule Modbux.Tcp.Client do @moduledoc """ API for Modbus TCP Client. """ alias Modbux.Tcp.Client alias Modbux.Tcp use GenServer, restart: :permanent, shutdown: 500 require Logger @timeout 2000 @port 502 @ip {0, 0, 0, 0} @active false @to 2000 defstruct ip: nil, tcp_port: nil,...
28
107
0.56862
97747c5beab11208290f04c3a81ce2734697e8cc
3,240
exs
Elixir
integration_test/cases/transaction.exs
lancehalvorsen/ecto
af1f80f2907c62da8abb6d0e4bdac98269a80339
[ "Apache-2.0" ]
null
null
null
integration_test/cases/transaction.exs
lancehalvorsen/ecto
af1f80f2907c62da8abb6d0e4bdac98269a80339
[ "Apache-2.0" ]
null
null
null
integration_test/cases/transaction.exs
lancehalvorsen/ecto
af1f80f2907c62da8abb6d0e4bdac98269a80339
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Integration.TransactionTest do # We can keep this test async as long as it # is the only one access the transactions table use ExUnit.Case, async: true import Ecto.Query require Ecto.Integration.PoolRepo, as: PoolRepo require Ecto.Integration.TestRepo, as: TestRepo defmodule UniqueError d...
23.142857
80
0.587346
97749177453ea3605c1155e562f24780ddcd231d
4,300
ex
Elixir
cli_client/krcli/lib/task.ex
t6n/Komorebi
70b0b864af3d25dda9bf42482cf3648e3d0c2e7e
[ "MIT" ]
2
2016-07-12T09:30:41.000Z
2017-01-15T10:25:02.000Z
cli_client/krcli/lib/task.ex
t6n/Komorebi
70b0b864af3d25dda9bf42482cf3648e3d0c2e7e
[ "MIT" ]
35
2016-07-11T09:55:36.000Z
2018-08-30T07:57:28.000Z
cli_client/krcli/lib/task.ex
t6n/Komorebi
70b0b864af3d25dda9bf42482cf3648e3d0c2e7e
[ "MIT" ]
4
2016-06-30T06:59:51.000Z
2018-04-26T08:29:46.000Z
defmodule Krcli.Task do defstruct [:id, :name, :desc, :story_id, :column_id] use FN, url: "/tasks", name: "Story", json_name: "tasks" def get_server_col(col), do: SbServer.get_json("/columns/" <> Integer.to_string(col["id"]) <> "/tasks") def tasks_json(board, column) do all_json(board) |> Util.unw...
35.53719
85
0.597674
9774c7a5a4fe4f9a1c0fcddcb4b1642254fb6f98
535
exs
Elixir
kubeojo/test/views/error_view_test.exs
jamessral/kubeojo
3c8092c22e48c70fab5b88c849e407eddc26d652
[ "MIT" ]
18
2018-06-30T10:21:45.000Z
2022-02-26T10:45:13.000Z
kubeojo/test/views/error_view_test.exs
jamessral/kubeojo
3c8092c22e48c70fab5b88c849e407eddc26d652
[ "MIT" ]
21
2018-07-01T10:49:30.000Z
2019-10-15T13:34:21.000Z
kubeojo/test/views/error_view_test.exs
jamessral/kubeojo
3c8092c22e48c70fab5b88c849e407eddc26d652
[ "MIT" ]
4
2018-07-10T13:36:08.000Z
2019-10-14T12:35:54.000Z
defmodule Kubeojo.ErrorViewTest do use Kubeojo.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(Kubeojo.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do assert ...
28.157895
89
0.717757
9774fd30b26be44cfc97629067fbecd3a3327b5c
2,088
exs
Elixir
integration_test/support/migration.exs
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
integration_test/support/migration.exs
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
integration_test/support/migration.exs
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Integration.Migration do use Ecto.Migration def change do create table(:users) do add :name, :text add :custom_id, :uuid timestamps end create table(:posts) do add :title, :string, size: 100 add :counter, :integer add :text, :binary add :bid, :b...
23.727273
59
0.608716
9774ff2f3abfd876d5c05c2e6431f177e59a9797
579
ex
Elixir
lib/re/images/policy.ex
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
1
2020-01-23T04:24:58.000Z
2020-01-23T04:24:58.000Z
lib/re/images/policy.ex
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
null
null
null
lib/re/images/policy.ex
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
1
2019-12-31T16:11:21.000Z
2019-12-31T16:11:21.000Z
defmodule Re.Images.Policy do @moduledoc """ Policy module for user permission on images """ alias Re.{ Listing, User } def authorize(_, %{role: "admin"}, _), do: :ok def authorize(_, nil, _), do: {:error, :unauthorized} def authorize(:index_images, %User{id: id, role: "user"}, %Listing{user_i...
30.473684
92
0.635579
977524030394a0798e7ce023768316efb8bfb58c
800
ex
Elixir
lib/html_party/tag.ex
san650/html_party
416698d562e8b30f400fec8961f4541320ed1b22
[ "MIT" ]
1
2018-04-24T13:33:33.000Z
2018-04-24T13:33:33.000Z
lib/html_party/tag.ex
san650/html_party
416698d562e8b30f400fec8961f4541320ed1b22
[ "MIT" ]
null
null
null
lib/html_party/tag.ex
san650/html_party
416698d562e8b30f400fec8961f4541320ed1b22
[ "MIT" ]
null
null
null
defmodule HtmlParty.Tag do import Phoenix.HTML.Tag, only: [ content_tag: 3, ] @content_tags [ :a, :div, :li, :span, :strong, :ul, ] for tag <- @content_tags do def unquote(tag)(attrs \\ [], content) def unquote(tag)(attrs, do: content) when is_list(attrs) do content...
21.052632
65
0.63625
977538fc56c22e1e39aeede0fe21db73106e965c
661
ex
Elixir
lib/myelin/cmd/new/new.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
lib/myelin/cmd/new/new.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
lib/myelin/cmd/new/new.ex
neocortexlab/myelin
0f352c90b41de61133402fe32474a880b544d199
[ "Apache-2.0" ]
null
null
null
defmodule Myelin.Cmd.New do @moduledoc """ Generates new Myelin project ## Usage: myelin new PATH """ @create_dirs ~w(agents models tests storage tasks) alias Myelin.Cmd.Agent def process(args, _flags) do case File.exists?(args.name) do true -> IO.puts "Folder #{args.name} is n...
21.322581
77
0.630862
977540128e895c37bcf56b55629de565b834a261
686
exs
Elixir
priv/repo/migrations/20180802024924_create_outbound_item_requests.exs
jolyus/csv-uploader
ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354
[ "MIT" ]
null
null
null
priv/repo/migrations/20180802024924_create_outbound_item_requests.exs
jolyus/csv-uploader
ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354
[ "MIT" ]
null
null
null
priv/repo/migrations/20180802024924_create_outbound_item_requests.exs
jolyus/csv-uploader
ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354
[ "MIT" ]
null
null
null
defmodule CsvUploader.Repo.Migrations.CreateOutboundItemRequests do use Ecto.Migration def change do create table(:outbound_item_requests, primary_key: false) do add :id, :binary_id add :item_request_code, :string add :item_key, :string, primary_key: true add :item_name, :string a...
26.384615
67
0.674927
977545a47506f60ba41e3711c666f3f0e188155c
2,587
ex
Elixir
lib/cforum_web/controllers/blog/archive_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
null
null
null
lib/cforum_web/controllers/blog/archive_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
null
null
null
lib/cforum_web/controllers/blog/archive_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
null
null
null
defmodule CforumWeb.Blog.ArchiveController do use CforumWeb, :controller alias Cforum.Abilities alias Cforum.Threads alias Cforum.Threads.Archive alias Cforum.ConfigManager alias CforumWeb.Paginator def years(conn, _) do years = Archive.list_archive_years(conn.assigns[:current_forum], conn.as...
33.166667
97
0.633552
97754e74281b58cb7a182ad258a15722f51a96f7
800
exs
Elixir
test/grizzly/zwave/commands/thermostat_fan_state_report_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
test/grizzly/zwave/commands/thermostat_fan_state_report_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
test/grizzly/zwave/commands/thermostat_fan_state_report_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.ThermostatFanStateReportTest do use ExUnit.Case, async: true alias Grizzly.ZWave.Commands.ThermostatFanStateReport test "creates the command and validates params" do params = [state: :running] {:ok, _command} = ThermostatFanStateReport.new(params) end test "encodes ...
33.333333
77
0.7325
97757b46a54bb716f2a6901934875e20d1365585
1,025
ex
Elixir
lib/exrush/application.ex
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
lib/exrush/application.ex
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
lib/exrush/application.ex
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
defmodule Exrush.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Telemetry supervisor ExrushWeb.Telemetry, # Start the PubSub system {Ph...
29.285714
64
0.703415
9775ad472636073dc7705117e83a78c27c171c6a
370
ex
Elixir
web/controllers/status_controller.ex
zapnap/asana_status
3b689906a8221573ba5f410d8fa31507d533bcb6
[ "MIT" ]
null
null
null
web/controllers/status_controller.ex
zapnap/asana_status
3b689906a8221573ba5f410d8fa31507d533bcb6
[ "MIT" ]
null
null
null
web/controllers/status_controller.ex
zapnap/asana_status
3b689906a8221573ba5f410d8fa31507d533bcb6
[ "MIT" ]
null
null
null
defmodule AsanaStatus.StatusController do use Phoenix.Controller plug :action plug :render, layout: false alias AsanaStatus.Workspace def show(conn, %{"workspace_id" => workspace_id}) do projects = Workspace.projects(workspace_id) users = Workspace.users(projects) conn |> assign(:projects,...
20.555556
54
0.710811
9775b991aae427915fdb471151579815585b6e49
1,826
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_properties.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_properties.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_properties.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.115385
145
0.773275
9775cb7d48d61b5684d2c8e1a99eec8863cb0dc6
1,968
exs
Elixir
test/checker_mal/state_expires_test.exs
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
10
2020-06-12T18:36:58.000Z
2022-02-20T11:07:49.000Z
test/checker_mal/state_expires_test.exs
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
7
2020-05-08T06:03:08.000Z
2022-01-24T02:57:16.000Z
test/checker_mal/state_expires_test.exs
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
1
2020-12-03T03:49:27.000Z
2020-12-03T03:49:27.000Z
defmodule CheckerMal.Core.Scheduler.Test do use ExUnit.Case, async: true alias CheckerMal.Core.Scheduler test 'expiry has expired' do expired = Scheduler.check_expired( %{ anime: [ {"20", 345_600, ~N[2020-11-15 16:52:16]}, {"3", 1800, ~N[2020-11-15 16:52:16]},...
32.8
62
0.474085
9775d062c62a6638fd801e8b0d10d219bbc67ea5
1,092
exs
Elixir
mix.exs
cdegroot/auto_process_registry
4736d59eaa904be3e95fd94c4916a42bc9e1a5b1
[ "Apache-2.0" ]
1
2016-10-03T19:45:55.000Z
2016-10-03T19:45:55.000Z
mix.exs
cdegroot/auto_process_registry
4736d59eaa904be3e95fd94c4916a42bc9e1a5b1
[ "Apache-2.0" ]
null
null
null
mix.exs
cdegroot/auto_process_registry
4736d59eaa904be3e95fd94c4916a42bc9e1a5b1
[ "Apache-2.0" ]
null
null
null
defmodule AutoProcessRegistry.Mixfile do use Mix.Project def project do [app: :auto_process_registry, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), # Docs description: "A simple process registry that ca...
24.818182
92
0.608974
97762ae7fa4033a616b134246a90f5452166cc69
62
ex
Elixir
lib/chat_web/views/pow/session_view.ex
J3RN/chat
0b94d83ca429e71ddb1d48c8052c72025b15aafd
[ "MIT" ]
null
null
null
lib/chat_web/views/pow/session_view.ex
J3RN/chat
0b94d83ca429e71ddb1d48c8052c72025b15aafd
[ "MIT" ]
null
null
null
lib/chat_web/views/pow/session_view.ex
J3RN/chat
0b94d83ca429e71ddb1d48c8052c72025b15aafd
[ "MIT" ]
null
null
null
defmodule ChatWeb.Pow.SessionView do use ChatWeb, :view end
15.5
36
0.790323
97766356593cdafe84026cf56edbf5ba86b90315
345
ex
Elixir
elixir/rna-transcription/lib/rna_transcription.ex
jiegillet/exercism
bf901cd477aede9d06f322dae0763c968688806d
[ "MIT" ]
null
null
null
elixir/rna-transcription/lib/rna_transcription.ex
jiegillet/exercism
bf901cd477aede9d06f322dae0763c968688806d
[ "MIT" ]
null
null
null
elixir/rna-transcription/lib/rna_transcription.ex
jiegillet/exercism
bf901cd477aede9d06f322dae0763c968688806d
[ "MIT" ]
null
null
null
defmodule RnaTranscription do @doc """ Transcribes a character list representing DNA nucleotides to RNA ## Examples iex> RnaTranscription.to_rna('ACTG') 'UGAC' """ @spec to_rna([char]) :: [char] def to_rna(dna) do Enum.map(dna, fn ?G -> ?C ?C -> ?G ?T -> ?A ?A -> ?U x...
16.428571
66
0.550725
97767331e45f8eeb72762509fde018173874e2b9
392
ex
Elixir
web/views/error_view.ex
deerob4/words-with-enemies
f9de13d599bdecc71007db57d3c21651b9be7463
[ "MIT" ]
1
2015-02-15T23:50:29.000Z
2015-02-15T23:50:29.000Z
web/views/error_view.ex
deerob4/words-with-enemies
f9de13d599bdecc71007db57d3c21651b9be7463
[ "MIT" ]
null
null
null
web/views/error_view.ex
deerob4/words-with-enemies
f9de13d599bdecc71007db57d3c21651b9be7463
[ "MIT" ]
null
null
null
defmodule WordsWithEnemies.ErrorView do use WordsWithEnemies.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Server internal error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_no...
21.777778
47
0.711735
97767341e2fe5aea58572ccdf71461c3fc24aeb5
98
exs
Elixir
test/slacker_test.exs
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
94
2015-05-20T22:50:09.000Z
2021-01-22T23:49:17.000Z
test/slacker_test.exs
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
5
2015-11-06T03:29:35.000Z
2016-06-27T18:58:25.000Z
test/slacker_test.exs
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
22
2015-10-08T01:23:02.000Z
2017-11-07T00:33:29.000Z
defmodule SlackerTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
12.25
24
0.653061
977674b8b676ce9665b2a0edb502eeb8d54281eb
970
ex
Elixir
wasmcloud_host/test/support/channel_case.ex
janitha09/wasmcloud-otp
858d7cbba00233eabf91d96cbcb0d6db80202444
[ "Apache-2.0" ]
84
2021-06-09T16:30:27.000Z
2022-03-27T23:41:25.000Z
wasmcloud_host/test/support/channel_case.ex
janitha09/wasmcloud-otp
858d7cbba00233eabf91d96cbcb0d6db80202444
[ "Apache-2.0" ]
239
2021-06-07T14:00:09.000Z
2022-03-30T17:06:05.000Z
wasmcloud_host/test/support/channel_case.ex
janitha09/wasmcloud-otp
858d7cbba00233eabf91d96cbcb0d6db80202444
[ "Apache-2.0" ]
20
2021-06-10T01:10:35.000Z
2022-03-17T15:59:57.000Z
defmodule WasmcloudHostWeb.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 inter...
27.714286
70
0.745361
9776770f3c7d92cee87794e414fd3f3604f0f3fe
2,614
ex
Elixir
lib/car_cache.ex
jeffutter/car_cache
d1f9cd6f629a6fcdddd07575bc35776bfc5b2912
[ "MIT" ]
1
2021-02-21T03:09:04.000Z
2021-02-21T03:09:04.000Z
lib/car_cache.ex
jeffutter/car_cache
d1f9cd6f629a6fcdddd07575bc35776bfc5b2912
[ "MIT" ]
3
2021-02-19T19:03:33.000Z
2021-02-21T03:10:20.000Z
lib/car_cache.ex
jeffutter/car_cache
d1f9cd6f629a6fcdddd07575bc35776bfc5b2912
[ "MIT" ]
null
null
null
defmodule CarCache do @external_resource "README.md" @moduledoc "README.md" |> File.read!() |> String.split("<!-- MDOC !-->") |> Enum.fetch!(1) use GenServer alias CarCache.Cache @options_schema [ name: [ type: :atom, required: true ], max_siz...
19.654135
82
0.571538
977690159a4df10a013e6ff4a589650145cf98aa
1,081
ex
Elixir
lib/rocketpay/user.ex
EderMiqueias/RocketPay-App
f3fec0e95730b48854749a66ec7d4a08aa211b3d
[ "MIT" ]
null
null
null
lib/rocketpay/user.ex
EderMiqueias/RocketPay-App
f3fec0e95730b48854749a66ec7d4a08aa211b3d
[ "MIT" ]
null
null
null
lib/rocketpay/user.ex
EderMiqueias/RocketPay-App
f3fec0e95730b48854749a66ec7d4a08aa211b3d
[ "MIT" ]
null
null
null
defmodule Rocketpay.User do use Ecto.Schema import Ecto.Changeset alias Ecto.Changeset alias Rocketpay.Account @primary_key {:id, :binary_id, autogenerate: true} @required_params [:name, :age, :email, :password, :nickname] schema "users" do field :name, :string field :age, :integer field :...
25.139535
97
0.689177
9776aa711f3f6307bfe364aa7ed4956306386f27
916
exs
Elixir
test/bittrex/client_test.exs
straw-hat-team/bittrex
3b6d5c9559d473b685bec7e70d2cd58501805ded
[ "MIT" ]
9
2017-11-17T21:07:50.000Z
2018-01-19T09:53:03.000Z
test/bittrex/client_test.exs
straw-hat-team/bittrex
3b6d5c9559d473b685bec7e70d2cd58501805ded
[ "MIT" ]
27
2017-12-13T12:21:10.000Z
2019-11-01T10:25:39.000Z
test/bittrex/client_test.exs
straw-hat-llc/elixir_bittrex
3b6d5c9559d473b685bec7e70d2cd58501805ded
[ "MIT" ]
5
2017-11-20T20:04:43.000Z
2018-10-03T16:47:37.000Z
defmodule Bittrex.ClientTest do use Bittrex.TestSupport.CaseTemplate, async: true alias Bittrex.{Client, Client.Request, Client.Error} test "handling API error responses" do http_request = Request.new(@client) error = %Error{ status_code: 400, reason: %{"message_response" => "Something went ...
24.105263
74
0.628821
9776edb3c4bdf2dbf42cf11ed902f67f0fabd086
4,483
exs
Elixir
exercises/practice/simple-linked-list/test/linked_list_test.exs
jaimeiniesta/elixir-1
e8ddafeb313822645e0cd76743955a5c728a84c5
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/practice/simple-linked-list/test/linked_list_test.exs
jaimeiniesta/elixir-1
e8ddafeb313822645e0cd76743955a5c728a84c5
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/practice/simple-linked-list/test/linked_list_test.exs
jaimeiniesta/elixir-1
e8ddafeb313822645e0cd76743955a5c728a84c5
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule LinkedListTest do use ExUnit.Case test "count/1 of new list" do list = LinkedList.new() assert LinkedList.count(list) == 0 end @tag :pending test "empty?/1 of new list" do list = LinkedList.new() assert LinkedList.empty?(list) end @tag :pending test "count/1 of list of 1 dat...
27.67284
80
0.643542
97773399e00e3452a1f5d721e9073186b64ef22b
264
ex
Elixir
test/support/edge_cases/single_def_cases/contracted_form_complex.ex
Ajwah/ex_debugger
44cd5b99c0b7751db052887b7a0bc3ce52a2972e
[ "Apache-2.0" ]
3
2020-07-07T20:41:23.000Z
2020-07-17T09:05:37.000Z
test/support/edge_cases/single_def_cases/contracted_form_complex.ex
Ajwah/ex_debugger
44cd5b99c0b7751db052887b7a0bc3ce52a2972e
[ "Apache-2.0" ]
1
2020-07-08T00:04:38.000Z
2020-07-08T00:04:38.000Z
test/support/edge_cases/single_def_cases/contracted_form_complex.ex
Ajwah/ex_debugger
44cd5b99c0b7751db052887b7a0bc3ce52a2972e
[ "Apache-2.0" ]
null
null
null
defmodule Support.EdgeCases.SingleDefCases.ContractedFormComplex do @moduledoc false use ExDebugger def run, do: %{ls: [1, 2, 3, 4]} |> Map.fetch!(:ls) |> List.wrap() |> Enum.reverse() |> Enum.reduce(0, &(&1 * 2 + &2)) end
20.307692
67
0.564394
97774a340db32948934467a713d3282a8f83f5a9
9,860
exs
Elixir
test/jerboa/client/protocol/allocate_test.exs
ACollectionOfAtoms/jerboa
16000d450bb60b544b5c91f0fd7540a31b6c90b8
[ "Apache-2.0" ]
14
2016-12-22T10:38:34.000Z
2021-03-11T23:20:26.000Z
test/jerboa/client/protocol/allocate_test.exs
ACollectionOfAtoms/jerboa
16000d450bb60b544b5c91f0fd7540a31b6c90b8
[ "Apache-2.0" ]
94
2016-12-22T13:13:29.000Z
2021-02-10T14:22:32.000Z
test/jerboa/client/protocol/allocate_test.exs
ACollectionOfAtoms/jerboa
16000d450bb60b544b5c91f0fd7540a31b6c90b8
[ "Apache-2.0" ]
6
2017-04-03T20:23:00.000Z
2022-03-06T10:14:30.000Z
defmodule Jerboa.Client.Protocol.AllocateTest do use ExUnit.Case alias Jerboa.Params alias Jerboa.Client.Credentials alias Jerboa.Client.Protocol alias Jerboa.Client.Protocol.Allocate alias Jerboa.Test.Helper.Params, as: PH alias Jerboa.Test.Helper.Credentials, as: CH alias Jerboa.Format.Body.Attribute...
31.909385
85
0.618357
977761a0b9d1fe909c343df774f8e0f8fe61e8c3
4,109
ex
Elixir
lib/chunkr.ex
sjqtentacles/chunkr
eaac18d704c46889f47ead35b67a82ec94c18a6b
[ "MIT" ]
null
null
null
lib/chunkr.ex
sjqtentacles/chunkr
eaac18d704c46889f47ead35b67a82ec94c18a6b
[ "MIT" ]
null
null
null
lib/chunkr.ex
sjqtentacles/chunkr
eaac18d704c46889f47ead35b67a82ec94c18a6b
[ "MIT" ]
null
null
null
defmodule Chunkr do @external_resource "README.md" @moduledoc "README.md" |> File.read!() |> String.split("<!-- MDOC !-->") |> Enum.fetch!(1) alias Chunkr.{Cursor, Opts, Page} @doc false defmacro __using__(opts) do quote do @default_chunkr_opts unquote(opts) ...
32.872
99
0.649306
977797828aeecbb9d3bb1547926789040c6c885d
2,260
exs
Elixir
installer/templates/phx_single/config/runtime.exs
samgaw/phoenix
3e1918c46f6fcea80fcd77803dd9dc50de88f7fa
[ "MIT" ]
1
2021-09-25T11:49:31.000Z
2021-09-25T11:49:31.000Z
installer/templates/phx_single/config/runtime.exs
samgaw/phoenix
3e1918c46f6fcea80fcd77803dd9dc50de88f7fa
[ "MIT" ]
null
null
null
installer/templates/phx_single/config/runtime.exs
samgaw/phoenix
3e1918c46f6fcea80fcd77803dd9dc50de88f7fa
[ "MIT" ]
null
null
null
import Config # config/runtime.exs is executed for all environments, including # during releases. It is executed after compilation and before the # system starts, so it is typically used to load production configuration # and secrets from environment variables or elsewhere. Do not define # any compile-time configurati...
40.357143
87
0.682743
9777a7ff9cac8b124dd64ce5ed38e5dd7f5c8297
1,008
ex
Elixir
apps/snitch_core/lib/core/data/schema/shipping_rules/product_flat_rate.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/lib/core/data/schema/shipping_rules/product_flat_rate.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/lib/core/data/schema/shipping_rules/product_flat_rate.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Data.Schema.ShippingRule.ProductFlatRate do @moduledoc """ Models the shipping rule of the type ProductFlatRate In case the rule is activated for shipping all the lineitems will have a fixed shipping rate applied to them. """ use Snitch.Data.Schema @behaviour Snitch.Data.Schema.Shippin...
21.446809
80
0.69246
9777ac02f2b0ba547355a67826c260fcb5c24ae8
1,778
exs
Elixir
test/lib/tackle/listener_test.exs
renderedtext/ex-tackle
403623f9be6919998fea6871f34aa07ff2655c49
[ "MIT" ]
49
2016-07-30T13:45:12.000Z
2021-08-08T13:45:05.000Z
test/lib/tackle/listener_test.exs
renderedtext/ex-tackle
403623f9be6919998fea6871f34aa07ff2655c49
[ "MIT" ]
20
2016-08-05T11:54:35.000Z
2021-06-02T19:43:06.000Z
test/lib/tackle/listener_test.exs
renderedtext/ex-tackle
403623f9be6919998fea6871f34aa07ff2655c49
[ "MIT" ]
14
2016-08-05T09:39:51.000Z
2021-11-29T14:22:28.000Z
defmodule Tackle.ListenerTest do use ExSpec defmodule TestConsumer do use Tackle.Consumer, url: "amqp://localhost", exchange: "test-exchange", routing_key: "test-messages", service: "test-service" def handle_message(_) do IO.puts("here") end end describe "consumer cr...
25.4
78
0.570866
9777c5be11a9c8a14f67f1593b1371cce74b5bda
2,546
ex
Elixir
lib/ex_mustang/responders/uptime.ex
theodowling/ex_mustang
0bf0d96c0e33e8291eb4d911bfdcdc57902fa78d
[ "Apache-2.0" ]
69
2016-08-17T06:50:58.000Z
2021-01-26T00:43:34.000Z
lib/ex_mustang/responders/uptime.ex
onixus74/ex_mustang
e7c8ae51027d717c20784abad76b846198a980b9
[ "Apache-2.0" ]
55
2016-08-16T01:05:39.000Z
2020-10-08T15:53:35.000Z
lib/ex_mustang/responders/uptime.ex
onixus74/ex_mustang
e7c8ae51027d717c20784abad76b846198a980b9
[ "Apache-2.0" ]
10
2017-01-20T19:45:43.000Z
2020-09-30T20:32:23.000Z
defmodule ExMustang.Responders.Uptime do @moduledoc """ Run uptime check against list of endpoints """ import ExMustang.Utils def run do config()[:endpoints] |> Stream.map(&endpoint_check(&1)) |> Stream.filter(&(length(&1) > 0)) |> Enum.map(&Enum.join(&1, "\n")) |> case do [_ | _] ...
29.264368
104
0.597015
977831abc96abef665956f6fb47f9a759ab88eda
334
exs
Elixir
config/config.exs
danielspofford/nerves_hub_cli
3d12abe873e27448ba5c862a08f03d719cc40dc2
[ "Apache-2.0" ]
28
2018-08-15T02:17:26.000Z
2021-11-25T11:14:24.000Z
config/config.exs
danielspofford/nerves_hub_cli
3d12abe873e27448ba5c862a08f03d719cc40dc2
[ "Apache-2.0" ]
81
2018-08-13T17:14:14.000Z
2021-09-11T13:08:29.000Z
config/config.exs
danielspofford/nerves_hub_cli
3d12abe873e27448ba5c862a08f03d719cc40dc2
[ "Apache-2.0" ]
13
2018-09-14T12:47:26.000Z
2022-02-03T07:28:41.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :logger, level: :info # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mi...
33.4
68
0.778443
9778353d3b295f24b69dd3c2ca563c1634f8d34a
3,589
exs
Elixir
test/ex_admin_test.exs
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
test/ex_admin_test.exs
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
test/ex_admin_test.exs
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
defmodule TestExAdmin.ExAdmin.SimpleCustom do use ExAdmin.Register register_resource TestExAdmin.Simple do action_item :index, fn -> action_item_link "Custom Action", href: "/custom" end action_item :show, fn id -> action_item_link "Custom Show", href: "/custom/#{id}" end end end defmodule ExAdminTest do ...
48.5
287
0.654221
97787e882188fc2fc41a7c6ed20538bff136eff7
616
ex
Elixir
lib/changelog_web/controllers/search_controller.ex
d-m-u/changelog.com
bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
lib/changelog_web/controllers/search_controller.ex
codexn/changelog.com
25ce501ee62eef76731c38d590667e8132096ba8
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
lib/changelog_web/controllers/search_controller.ex
codexn/changelog.com
25ce501ee62eef76731c38d590667e8132096ba8
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule ChangelogWeb.SearchController do use ChangelogWeb, :controller alias Changelog.{Search} require Logger def search(conn, params = %{"q" => query}) do page = Search.search_with_highlights(query, hitsPerPage: 30, page: page_param(params)) render(conn, :search, items: page.items, page: page, qu...
24.64
90
0.663961
97788590fa27f7a7140da4e0654b5ab2bffa8cca
1,161
ex
Elixir
lib/tablespoon/transport.ex
paulswartz/tablespoon
3637ee22cce16755fa50461058a079fa18d33b1b
[ "MIT" ]
2
2020-04-03T14:39:23.000Z
2020-12-17T23:12:58.000Z
lib/tablespoon/transport.ex
mbta/tablespoon
4303ad8498f3e619b081ffbd6892156e0214b61e
[ "MIT" ]
107
2019-09-16T12:52:17.000Z
2022-02-28T10:25:15.000Z
lib/tablespoon/transport.ex
mbta/tablespoon
4303ad8498f3e619b081ffbd6892156e0214b61e
[ "MIT" ]
null
null
null
defmodule Tablespoon.Transport do @moduledoc """ Behaviour for modules which send/receive binary data. """ @type t :: term @type result :: {:data, binary} | :closed @type error :: term @callback new(Keyword.t()) :: t @callback connect(t) :: {:ok, t} | {:error, error} @callback close(t) :: t @callb...
29.025
78
0.645134
97789121ea51de235e00069ae00657aee0d485ac
557
ex
Elixir
lib/mudkip_web/router.ex
KaiaHa/MUDkip
10c1208d117d3426474c9b39b864972b7c41d65d
[ "MIT" ]
null
null
null
lib/mudkip_web/router.ex
KaiaHa/MUDkip
10c1208d117d3426474c9b39b864972b7c41d65d
[ "MIT" ]
null
null
null
lib/mudkip_web/router.ex
KaiaHa/MUDkip
10c1208d117d3426474c9b39b864972b7c41d65d
[ "MIT" ]
null
null
null
defmodule MudkipWeb.Router do use MudkipWeb, :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 "/", MudkipWeb do pipe_thr...
19.892857
57
0.675045
9778d0003627cc1a029464e086b7941ba7374141
894
ex
Elixir
lib/connector_status.ex
Sebi55/ocpp-backend
e2c4920aa3d2986934a17e904d7836d4f2a91945
[ "MIT" ]
11
2019-03-06T12:44:46.000Z
2022-01-20T10:41:30.000Z
lib/connector_status.ex
Sebi55/ocpp-backend
e2c4920aa3d2986934a17e904d7836d4f2a91945
[ "MIT" ]
3
2019-03-06T13:29:36.000Z
2020-03-21T15:40:47.000Z
lib/connector_status.ex
Sebi55/ocpp-backend
e2c4920aa3d2986934a17e904d7836d4f2a91945
[ "MIT" ]
4
2019-03-06T13:24:13.000Z
2021-12-22T09:17:56.000Z
defmodule ConnectorStatus do use Agent import Logger @moduledoc """ Module to keep an map of connector statuses """ def start_link do {:ok, pid} = Agent.start_link(fn -> %{} end, name: __MODULE__) info "Started Agent #{__MODULE__} #{inspect(pid)}" {:ok, pid} end def get(serial, connecto...
22.923077
77
0.674497
9778df802aeb88b974daec3acd4d07fcfbcd4704
457
ex
Elixir
distribution-gpg-keys/debian/distribution-gpg-keys.service.ex
kakwa/debian-rpm-build-tools
7107407c31a5f6f4178a7ce7d17d0bfb069e3f02
[ "MIT" ]
2
2019-12-30T17:23:46.000Z
2020-01-02T08:47:39.000Z
distribution-gpg-keys/debian/distribution-gpg-keys.service.ex
kakwa/debian-rpm-build-tools
7107407c31a5f6f4178a7ce7d17d0bfb069e3f02
[ "MIT" ]
null
null
null
distribution-gpg-keys/debian/distribution-gpg-keys.service.ex
kakwa/debian-rpm-build-tools
7107407c31a5f6f4178a7ce7d17d0bfb069e3f02
[ "MIT" ]
null
null
null
[Unit] Description=distribution-gpg-keys After=network.target Wants=network.service [Service] EnvironmentFile=/etc/default/distribution-gpg-keys Type=forking PIDFile=/var/run/distribution-gpg-keys/distribution-gpg-keys.pid #User=distribution-gpg-keys #Group=distribution-gpg-keys ExecStart=/usr/bin/distribution-gpg-key...
25.388889
109
0.824945
977903987f0217a40370898e43da88b8decc4cc2
155
ex
Elixir
lib/tweetyodel_live_web/controllers/page_controller.ex
kpanic/tweetyodel_live
fd294ae2e171c215f8048f48e919d2de0757059a
[ "Apache-2.0" ]
1
2020-01-12T21:52:15.000Z
2020-01-12T21:52:15.000Z
lib/tweetyodel_live_web/controllers/page_controller.ex
kpanic/tweetyodel_live
fd294ae2e171c215f8048f48e919d2de0757059a
[ "Apache-2.0" ]
null
null
null
lib/tweetyodel_live_web/controllers/page_controller.ex
kpanic/tweetyodel_live
fd294ae2e171c215f8048f48e919d2de0757059a
[ "Apache-2.0" ]
null
null
null
defmodule TweetyodelLiveWeb.PageController do use TweetyodelLiveWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
19.375
45
0.76129
977905557d648fdd10a72ad531f8894395c1ecc9
496
ex
Elixir
lib/blog/accounts/contact.ex
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
69
2017-11-15T17:26:57.000Z
2022-01-25T16:37:40.000Z
lib/blog/accounts/contact.ex
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
24
2020-01-27T20:44:40.000Z
2020-10-29T05:48:31.000Z
lib/blog/accounts/contact.ex
Miradorn/absinthe_tutorial
fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072
[ "MIT" ]
35
2017-11-12T22:04:10.000Z
2021-07-22T18:00:39.000Z
defmodule Blog.Accounts.Contact do use Ecto.Schema import Ecto.Changeset alias Blog.Accounts schema "contacts" do field :type, :string field :value, :string belongs_to :user, Accounts.User timestamps() end @doc false def changeset(attrs) do %__MODULE__{} |> changeset(attrs) ...
16.533333
56
0.655242
9779c360b0a934763f2b09dbcedf251ca8ad1328
15,782
ex
Elixir
apps/gitgud_web/lib/gitgud/graphql/types.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
1
2019-09-08T07:48:10.000Z
2019-09-08T07:48:10.000Z
apps/gitgud_web/lib/gitgud/graphql/types.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
null
null
null
apps/gitgud_web/lib/gitgud/graphql/types.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
null
null
null
defmodule GitGud.GraphQL.Types do @moduledoc """ GraphQL types for `GitGud.GraphQL.Schema`. """ use Absinthe.Schema.Notation use Absinthe.Relay.Schema.Notation, :modern alias GitRekt.Git alias GitGud.GraphQL.Resolvers @desc "The `GitObjectID` scalar type represents a Git object SHA hash identifier." ...
30.467181
100
0.69706
9779c3b80ac4bd477867d7e910d52754819c9417
182
ex
Elixir
d03/lib/mix/solve.ex
arturhoo/aoc2021
6aaed6d1207be757588ae41e25e6f3ce2ece9061
[ "MIT" ]
2
2021-12-01T20:23:37.000Z
2021-12-01T23:36:02.000Z
d03/lib/mix/solve.ex
arturhoo/aoc2021
6aaed6d1207be757588ae41e25e6f3ce2ece9061
[ "MIT" ]
null
null
null
d03/lib/mix/solve.ex
arturhoo/aoc2021
6aaed6d1207be757588ae41e25e6f3ce2ece9061
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Solve do use Mix.Task def run(_args) do input = File.read!("lib/input3.txt") for fun <- [&D3.p1/1, &D3.p2/1], do: fun.(input) |> IO.puts() end end
20.222222
65
0.604396
9779dd11129a86131d3035c4cb88edd20bc16cb9
2,072
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/key_range_data_disk_assignment.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/key_range_data_disk_assignment.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/key_range_data_disk_assignment.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.09434
288
0.724903
9779fe1f17f71ef0eeb6be1faa20bf2e4b7c4612
2,259
ex
Elixir
apps/raptor/lib/raptor/services/user_org_assoc_store.ex
Datastillery/smartcitiesdata
f4ab7e6877cfd68cd4bdac15cc879d930d11f270
[ "Apache-2.0" ]
18
2020-11-13T15:38:24.000Z
2021-05-26T00:40:08.000Z
apps/raptor/lib/raptor/services/user_org_assoc_store.ex
Datastillery/smartcitiesdata
f4ab7e6877cfd68cd4bdac15cc879d930d11f270
[ "Apache-2.0" ]
365
2020-09-21T12:31:40.000Z
2021-09-25T14:54:21.000Z
apps/raptor/lib/raptor/services/user_org_assoc_store.ex
Datastillery/smartcitiesdata
f4ab7e6877cfd68cd4bdac15cc879d930d11f270
[ "Apache-2.0" ]
3
2020-10-06T16:17:49.000Z
2021-09-03T17:11:41.000Z
defmodule Raptor.Services.UserOrgAssocStore do @moduledoc """ This module provides functionality for interacting with Redis """ require Logger alias Raptor.Schemas.UserOrgAssoc @namespace "raptor:user_org_assoc:" @redix Raptor.Application.redis_client() @doc """ Get all user org associations from Re...
28.2375
98
0.617973
977a342d5a578cf24a056574cb4ea8189378bd87
901
ex
Elixir
examples/elixir-phoenix-openid-connect/test/support/channel_case.ex
trykno/knotes
654a39d697efc551c725e8871b5b4fee1b8bd63c
[ "Apache-2.0" ]
31
2019-10-29T11:08:32.000Z
2020-01-28T16:16:04.000Z
examples/elixir-phoenix-openid-connect/test/support/channel_case.ex
did-app/kno-elixir
654a39d697efc551c725e8871b5b4fee1b8bd63c
[ "Apache-2.0" ]
2
2020-04-11T21:56:21.000Z
2020-04-15T12:22:05.000Z
examples/elixir-phoenix-openid-connect/test/support/channel_case.ex
did-app/did-elixir
654a39d697efc551c725e8871b5b4fee1b8bd63c
[ "Apache-2.0" ]
1
2019-10-29T14:38:44.000Z
2019-10-29T14:38:44.000Z
defmodule MyAppWeb.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 wit...
26.5
62
0.735849
977a3ef507044c81f9f3485dfcecb616e7ba6a05
13,345
exs
Elixir
apps/admin_api/test/admin_api/v1/controllers/api_key_controller_test.exs
enyan94/ewallet
e938e686319867d133b21cd0eb5496e213ae7620
[ "Apache-2.0" ]
null
null
null
apps/admin_api/test/admin_api/v1/controllers/api_key_controller_test.exs
enyan94/ewallet
e938e686319867d133b21cd0eb5496e213ae7620
[ "Apache-2.0" ]
null
null
null
apps/admin_api/test/admin_api/v1/controllers/api_key_controller_test.exs
enyan94/ewallet
e938e686319867d133b21cd0eb5496e213ae7620
[ "Apache-2.0" ]
null
null
null
# 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 ...
29.921525
99
0.582016
977aabf17c5b083789d337c455e65d93f9fcd927
457
ex
Elixir
2021/day2/lib/task2.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day2/lib/task2.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
2021/day2/lib/task2.ex
SuddenGunter/adventofcode
702dd927b1d23c4c5c4b2e67898f4b3c914abfcf
[ "MIT" ]
null
null
null
defmodule Task2 do def solution(data) do {total_horizontal, total_vertical, _} = Enum.reduce( data, {0, 0, 0}, fn x, {h, v, aim} -> case x do {:forward, distance} -> {h + distance, v + aim * distance, aim} {:up, distance} -> {h, v, aim - distance} ...
24.052632
75
0.492341
977af9690c18d6716a153a16105436a5b02fa3a4
1,123
exs
Elixir
config/config.exs
elefthei/ex_keypair
412a130e21782da9411048ce4538e7f3f0379de2
[ "MIT" ]
2
2016-07-10T19:23:15.000Z
2016-07-11T13:15:34.000Z
config/config.exs
elefthei/ex_keypair
412a130e21782da9411048ce4538e7f3f0379de2
[ "MIT" ]
null
null
null
config/config.exs
elefthei/ex_keypair
412a130e21782da9411048ce4538e7f3f0379de2
[ "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.225806
73
0.752449
977b681379df297bec7e741b57d29465424f260b
2,184
ex
Elixir
clients/os_login/lib/google_api/os_login/v1alpha/model/login_profile.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/os_login/lib/google_api/os_login/v1alpha/model/login_profile.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/os_login/lib/google_api/os_login/v1alpha/model/login_profile.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...
39.709091
193
0.722527
977b8ecb88e60f90948960bec17e1f26ceb7019c
132
exs
Elixir
src/proto_app/apps/utils/test/utils_test.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/apps/utils/test/utils_test.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
null
null
null
src/proto_app/apps/utils/test/utils_test.exs
cjimison/ethermint_prototype
5d8924e2ddc167c59cf712c2496f43976bcbad00
[ "MIT" ]
1
2020-01-22T19:18:34.000Z
2020-01-22T19:18:34.000Z
defmodule UtilsTest do use ExUnit.Case doctest Utils test "greets the world" do assert Utils.hello() == :world end end
14.666667
34
0.69697
977b9623c876c7c43d3ec5b426df6bd51f9644ad
592
exs
Elixir
onboarding/service/test/models/origin_integration_test.exs
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
onboarding/service/test/models/origin_integration_test.exs
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
onboarding/service/test/models/origin_integration_test.exs
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
defmodule OnboardingService.OriginIntegrationTest do use OnboardingService.ModelCase alias OnboardingService.OriginIntegration @valid_attrs %{shopify_domain: "some content", shopify_key: "some content", shopify_password: "some content"} @invalid_attrs %{} test "changeset with valid attributes" do chang...
31.157895
111
0.780405
977babbacc88c1161101d2c17e7782d184631137
3,906
ex
Elixir
lib/lib_lat_lon/data/info.ex
devoutsalsa/lib_lat_lon
a9fef01e67ad92f1b5ff042173f6986ad6f5fd48
[ "MIT" ]
null
null
null
lib/lib_lat_lon/data/info.ex
devoutsalsa/lib_lat_lon
a9fef01e67ad92f1b5ff042173f6986ad6f5fd48
[ "MIT" ]
null
null
null
lib/lib_lat_lon/data/info.ex
devoutsalsa/lib_lat_lon
a9fef01e67ad92f1b5ff042173f6986ad6f5fd48
[ "MIT" ]
null
null
null
defmodule LibLatLon.Info do @moduledoc """ Main storage struct for holding information about any place/POI/address in the unified form. ## Example: LibLatLon.lookup {41.38777777777778, 2.197222222222222} %LibLatLon.Info{ address: "Avinguda del Litoral, [...] España", bounds: %LibL...
30.27907
87
0.575013
977bb8844a69123fb19d582dc0e5011b2b63234c
4,993
ex
Elixir
host_core/lib/host_core/config_plan.ex
emattiza/wasmcloud-otp
e1e3dcc8fcf14b93acbdde28743d1f48c23948ef
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/config_plan.ex
emattiza/wasmcloud-otp
e1e3dcc8fcf14b93acbdde28743d1f48c23948ef
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/config_plan.ex
emattiza/wasmcloud-otp
e1e3dcc8fcf14b93acbdde28743d1f48c23948ef
[ "Apache-2.0" ]
null
null
null
defmodule HostCore.ConfigPlan do @moduledoc """ `ConfigPlan` provide configuration options. """ @behaviour Vapor.Plan alias Vapor.Provider.{Dotenv, Env} alias HostCore.FilesConfigProvider @prefix_var "WASMCLOUD_LATTICE_PREFIX" @default_prefix "default" @impl Vapor.Plan def config_plan do [ ...
50.94898
98
0.654516
977bd8a0797c304fc2f854f93dd7af78237d8c62
4,120
ex
Elixir
clients/service_control/lib/google_api/service_control/v2/model/auth.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v2/model/auth.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_control/lib/google_api/service_control/v2/model/auth.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...
69.830508
709
0.737379
977bdef702ce6de9ca653f2a6446424dbc9c7c2c
5,388
ex
Elixir
lib/diode_client/control.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/control.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/control.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
defmodule DiodeClient.Control do use GenServer use DiodeClient.Log alias DiodeClient.{Acceptor, Connection, Control, Port, Rlp, Rlpx} @control_port 320_922 defstruct [:tried, :peer, :resolved_address, :waiting, :socket, :resolved_ports] def start_link(peer) do state = %Control{peer: peer, tried: 0, wai...
25.535545
91
0.585746
977be3fe261069ee66abc0d51c6a6d999a985ec2
92
exs
Elixir
test/events_tools_web/views/layout_view_test.exs
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
test/events_tools_web/views/layout_view_test.exs
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
6
2017-10-05T20:16:34.000Z
2017-10-05T20:36:11.000Z
test/events_tools_web/views/layout_view_test.exs
apps-team/events-tools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
defmodule EventsTools.Web.LayoutViewTest do use EventsTools.Web.ConnCase, async: true end
23
43
0.826087
977be4e0ddbb50ec0f126892cc56598ac623bcfc
872
ex
Elixir
clients/iam/lib/google_api/iam/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/iam/lib/google_api/iam/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/iam/lib/google_api/iam/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
32.296296
74
0.755734
977c00c1745743202d80fb6257656401bfaf5240
799
exs
Elixir
aoc2019_elixir/apps/day05/mix.exs
mjm/advent-of-code-2019
a30599c1cba05d574fb30b6de98acdcec1ddc643
[ "MIT" ]
1
2019-12-09T07:43:02.000Z
2019-12-09T07:43:02.000Z
aoc2019_elixir/apps/day05/mix.exs
mjm/advent-of-code-2019
a30599c1cba05d574fb30b6de98acdcec1ddc643
[ "MIT" ]
null
null
null
aoc2019_elixir/apps/day05/mix.exs
mjm/advent-of-code-2019
a30599c1cba05d574fb30b6de98acdcec1ddc643
[ "MIT" ]
null
null
null
defmodule Day05.MixProject do use Mix.Project def project do [ app: :day05, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9", start_permanent: Mix.env() == ...
22.828571
88
0.564456
977c4b48f6f5e63c0fa49a55441ad6776c8efcaf
1,760
exs
Elixir
apps/buzzcms/mix.exs
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
apps/buzzcms/mix.exs
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
41
2020-02-12T07:53:14.000Z
2020-03-30T02:18:14.000Z
apps/buzzcms/mix.exs
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
defmodule Buzzcms.MixProject do use Mix.Project def project do [ app: :buzzcms, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.5", elixirc_paths: elixirc_pat...
26.268657
79
0.5625
977c73885a172f7ce8b8b1c8caf541d8e71abb00
3,363
exs
Elixir
config/releases.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
2
2021-06-22T21:01:49.000Z
2021-11-04T18:36:48.000Z
config/releases.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
config/releases.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. import Config if secrets = System.get_env("SECRETS") do secrets |> Jason.decode!() ...
34.670103
110
0.71573
977c97de4de4705a1c8b8468b9dfdeac92cc7440
1,238
ex
Elixir
lib/phoenix_api_starter_web/views/error_helpers.ex
CMcDonald82/phoenix-api-starter
c3ece669ea047dc523c867e7609486f1a1818a1f
[ "MIT" ]
null
null
null
lib/phoenix_api_starter_web/views/error_helpers.ex
CMcDonald82/phoenix-api-starter
c3ece669ea047dc523c867e7609486f1a1818a1f
[ "MIT" ]
null
null
null
lib/phoenix_api_starter_web/views/error_helpers.ex
CMcDonald82/phoenix-api-starter
c3ece669ea047dc523c867e7609486f1a1818a1f
[ "MIT" ]
null
null
null
defmodule PhoenixApiStarterWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # When using gettext, we typically pass the strings we want # to translate as a s...
36.411765
86
0.680129
977cac2efae7683b7e114dc094b087cb4405beb3
2,669
ex
Elixir
lib/mix/tasks/phx.gen.embedded.ex
faheempatel/phoenix
a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9
[ "MIT" ]
18,092
2015-01-01T01:51:04.000Z
2022-03-31T19:37:14.000Z
lib/mix/tasks/phx.gen.embedded.ex
faheempatel/phoenix
a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9
[ "MIT" ]
3,905
2015-01-01T00:22:47.000Z
2022-03-31T17:06:21.000Z
lib/mix/tasks/phx.gen.embedded.ex
faheempatel/phoenix
a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9
[ "MIT" ]
3,205
2015-01-03T10:58:22.000Z
2022-03-30T14:55:57.000Z
defmodule Mix.Tasks.Phx.Gen.Embedded do @shortdoc "Generates an embedded Ecto schema file" @moduledoc """ Generates an embedded Ecto schema for casting/validating data outside the DB. mix phx.gen.embedded Blog.Post title:string views:integer The first argument is the schema module followed by the schem...
24.712963
104
0.689022
977cb5fd77556d5f405307fa5e0731920725d504
9,434
exs
Elixir
lib/eex/test/eex_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
lib/eex/test/eex_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
lib/eex/test/eex_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ require EEx defmodule EExTest.Compiled do def before_compile do fill_in_stacktrace() {__ENV__.line, hd(tl(System.stacktrace))} end EEx.function_from_string :def, :string_sample, "<%= a + b %>", [:a, :b] filename = Path.join(__DIR__, "fixtures/eex_template...
22.14554
109
0.610876