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
1da6b23d368673e263cb12feda9062ecfe029178
1,486
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/third_party_principal.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/service_control/lib/google_api/service_control/v1/model/third_party_principal.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/third_party_principal.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 ...
31.617021
99
0.746299
1da6b350fca7c265f6cd2432f9e4a0cc40fa5107
530
ex
Elixir
lib/httparrot/websocket_handler.ex
qgadrian/httparrot
5b3409d5b17f1772a1e503ce9da6b7b8390c0537
[ "MIT" ]
68
2015-01-07T20:29:02.000Z
2022-03-03T16:44:31.000Z
lib/httparrot/websocket_handler.ex
qgadrian/httparrot
5b3409d5b17f1772a1e503ce9da6b7b8390c0537
[ "MIT" ]
29
2015-01-11T05:12:46.000Z
2021-12-23T13:07:47.000Z
lib/httparrot/websocket_handler.ex
qgadrian/httparrot
5b3409d5b17f1772a1e503ce9da6b7b8390c0537
[ "MIT" ]
29
2015-01-08T22:33:15.000Z
2022-03-16T00:31:31.000Z
defmodule HTTParrot.WebsocketHandler do @behaviour :cowboy_websocket @moduledoc """ Echo given messages through websocket connection """ def init(req, state), do: {:cowboy_websocket, req, state} def websocket_init(state), do: {:ok, state} def websocket_handle({:text, text}, state), do: {:reply, {:text, ...
31.176471
88
0.696226
1da6c6f0d736e134315df104bc530a80914eb860
398
ex
Elixir
lib/inmytime_web/plugs/forwaded_for.ex
r-frederick/inmytime
c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929
[ "MIT" ]
1
2018-11-16T14:30:41.000Z
2018-11-16T14:30:41.000Z
lib/inmytime_web/plugs/forwaded_for.ex
r-frederick/inmytime
c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929
[ "MIT" ]
9
2018-05-17T14:02:04.000Z
2018-10-03T21:57:18.000Z
lib/inmytime_web/plugs/forwaded_for.ex
r-frederick/inmytime
c5e6ad5d8c09d42dcd77ec74c09e6da8f044b929
[ "MIT" ]
null
null
null
defmodule InmytimeWeb.Plugs.ForwardedFor do import Plug.Conn def init(default), do: default def call(conn, _) do case get_req_header(conn, "x-forwarded-for") do [] -> conn [forwarded_for] -> case :inet_parse.address(to_charlist(forwarded_for)) do {:ok, forwarded_for} -> %{conn ...
23.411765
68
0.625628
1da6e34aaab54662fe2acfb8bbf7a1ed3743275e
76
exs
Elixir
elm_elixir/test/views/page_view_test.exs
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
elm_elixir/test/views/page_view_test.exs
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
elm_elixir/test/views/page_view_test.exs
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
defmodule Tutorial.PageViewTest do use Tutorial.ConnCase, async: true end
19
36
0.815789
1da6e7bffe9a9eda78965eacda50e7102e095e8c
1,920
ex
Elixir
clients/content/lib/google_api/content/v21/model/productstatuses_list_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/productstatuses_list_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/productstatuses_list_response.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.226415
158
0.727604
1da6f0d7a14dbb2324acf3d27dc95f48070c71dd
298
ex
Elixir
lib/handlers/excel_shared_strings_handler.ex
kuroda/extr_text
a59526e75d8335291b83f944d1e6db9cfe183194
[ "MIT" ]
null
null
null
lib/handlers/excel_shared_strings_handler.ex
kuroda/extr_text
a59526e75d8335291b83f944d1e6db9cfe183194
[ "MIT" ]
5
2021-11-22T02:12:28.000Z
2021-12-04T05:22:13.000Z
lib/handlers/excel_shared_strings_handler.ex
kuroda/extr_text
a59526e75d8335291b83f944d1e6db9cfe183194
[ "MIT" ]
null
null
null
defmodule ExtrText.ExcelSharedStringsHandler do @behaviour Saxy.Handler def handle_event(:characters, chars, state) do {:ok, [chars | state]} end def handle_event(:cdata, cdata, state) do {:ok, [cdata | state]} end def handle_event(_, _, state) do {:ok, state} end end
18.625
48
0.671141
1da6f42cc2b88e2c12f9beed881aca6d648cb893
9,557
ex
Elixir
lib/protobuf/protoc/generator/message.ex
arctic-grpc/protobuf
228e1a2912af7b7f7f49ef871e43dd6b886f6675
[ "MIT" ]
419
2017-04-02T13:10:51.000Z
2020-11-15T15:53:17.000Z
lib/protobuf/protoc/generator/message.ex
arctic-grpc/protobuf
228e1a2912af7b7f7f49ef871e43dd6b886f6675
[ "MIT" ]
100
2017-04-02T14:26:41.000Z
2020-11-10T23:43:30.000Z
lib/protobuf/protoc/generator/message.ex
arctic-grpc/protobuf
228e1a2912af7b7f7f49ef871e43dd6b886f6675
[ "MIT" ]
83
2017-07-24T21:50:04.000Z
2020-11-15T08:52:34.000Z
defmodule Protobuf.Protoc.Generator.Message do @moduledoc false alias Google.Protobuf.FieldDescriptorProto alias Protobuf.Protoc.Context alias Protobuf.Protoc.Generator.Util alias Protobuf.Protoc.Generator.Enum, as: EnumGenerator require EEx EEx.function_from_file( :defp, :message_template, ...
29.865625
96
0.655959
1da6fb5ab0b93f073be36f51af07d2c180e64a46
6,708
exs
Elixir
test/unit/ecto_trail_test.exs
valiot/ecto_trail
32cba3166a524c0d8a8f47c097edc70fa319ebe5
[ "MIT" ]
1
2019-02-14T14:29:18.000Z
2019-02-14T14:29:18.000Z
test/unit/ecto_trail_test.exs
valiot/ecto_trail
32cba3166a524c0d8a8f47c097edc70fa319ebe5
[ "MIT" ]
1
2022-02-21T21:06:12.000Z
2022-02-21T21:06:12.000Z
test/unit/ecto_trail_test.exs
valiot/ecto_trail
32cba3166a524c0d8a8f47c097edc70fa319ebe5
[ "MIT" ]
1
2019-02-14T14:52:18.000Z
2019-02-14T14:52:18.000Z
defmodule EctoTrailTest do use EctoTrail.DataCase alias EctoTrail.Changelog alias Ecto.Changeset doctest EctoTrail describe "insert_and_log/3" do test "logs changes when schema is inserted" do result = TestRepo.insert_and_log(%Resource{name: "name"}, "cowboy") assert {:ok, %Resource{name: "na...
30.352941
90
0.534884
1da701e3f96cfb1f23d058543474cc1cb10d9b0a
300
ex
Elixir
lib/fnv_hash.ex
kanishka-linux/FnvHash
bfc4fe6c6b70951d859bfd18c2b3c57fa1536dab
[ "MIT" ]
1
2020-01-17T10:54:53.000Z
2020-01-17T10:54:53.000Z
lib/fnv_hash.ex
kanishka-linux/FnvHash
bfc4fe6c6b70951d859bfd18c2b3c57fa1536dab
[ "MIT" ]
null
null
null
lib/fnv_hash.ex
kanishka-linux/FnvHash
bfc4fe6c6b70951d859bfd18c2b3c57fa1536dab
[ "MIT" ]
null
null
null
defmodule FnvHash do use Bitwise @fnv_offset 14_695_981_039_346_656_037 @fnv_prime 1_099_511_628_211 @fnv_size :math.pow(2, 64) |> round def fnv64a(data) do data |> to_charlist() |> Enum.reduce(@fnv_offset, fn z, acc -> rem(bxor(acc, z) * @fnv_prime, @fnv_size) end) end end
23.076923
91
0.686667
1da70cef3d7c8b03220d9b616c9fb99f3f6cd94c
836
exs
Elixir
sequence_supervisor/mix.exs
karlosmid/book_programming_elixir_12
53769b35728a82eddde3a21d4cbd45c1c21596a4
[ "MIT" ]
null
null
null
sequence_supervisor/mix.exs
karlosmid/book_programming_elixir_12
53769b35728a82eddde3a21d4cbd45c1c21596a4
[ "MIT" ]
null
null
null
sequence_supervisor/mix.exs
karlosmid/book_programming_elixir_12
53769b35728a82eddde3a21d4cbd45c1c21596a4
[ "MIT" ]
null
null
null
defmodule SequenceSupervisor.Mixfile do use Mix.Project def project do [app: :sequence_supervisor, version: "0.1.2", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix h...
20.9
77
0.590909
1da73829f1ff517469845a59bf1e87a0d3eb474e
12,315
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/machine_types.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/machine_types.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/machine_types.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 "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...
59.206731
1,213
0.709054
1da759341d77baaf22ed0bfcb48b793d759efc26
6,362
ex
Elixir
lib/livebook_web/live/output/input_component.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
1
2022-02-16T09:13:27.000Z
2022-02-16T09:13:27.000Z
lib/livebook_web/live/output/input_component.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/output/input_component.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.Output.InputComponent do use LivebookWeb, :live_component @impl true def mount(socket) do {:ok, assign(socket, error: nil, local: false)} end @impl true def update(assigns, socket) do value = assigns.input_values[assigns.attrs.id] socket = socket |> assign(as...
24.282443
94
0.566174
1da78aa00b15cdd1606fc8fbe84750729856c9b3
1,469
ex
Elixir
lib/koans/16_tasks.ex
davidrf/elixir-koans
e367035ba74a97a21cff8974caf202b8b20d7b0e
[ "MIT" ]
1
2017-10-12T15:57:40.000Z
2017-10-12T15:57:40.000Z
lib/koans/16_tasks.ex
davidrf/elixir-koans
e367035ba74a97a21cff8974caf202b8b20d7b0e
[ "MIT" ]
null
null
null
lib/koans/16_tasks.ex
davidrf/elixir-koans
e367035ba74a97a21cff8974caf202b8b20d7b0e
[ "MIT" ]
null
null
null
defmodule Tasks do use Koans @intro "Tasks" koan "Tasks can be used for asynchronous computations with results" do task = Task.async(fn -> 3 * 3 end) do_other_stuff() assert Task.await(task) + 1 == 10 end koan "If you don't need a result, use start_link/1" do {result, _pid} = Task.start_lin...
25.77193
81
0.54595
1da84b23b448fd419111c97fc68fcf74ac2c614e
28
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_at_non_numeric_operation_parsing_test_case/CharListHeredoc.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_at_non_numeric_operation_parsing_test_case/CharListHeredoc.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_at_non_numeric_operation_parsing_test_case/CharListHeredoc.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
@''' CharList Heredoc '''
7
9
0.535714
1da85d80c8b2575d77a62ff38222cfa6038b2e36
379
exs
Elixir
test/slacker/commands/ping_test.exs
mikfreedman/slacker
9e13b2ab232828ae7050f1c460233e572984d508
[ "MIT" ]
1
2016-05-19T05:10:16.000Z
2016-05-19T05:10:16.000Z
test/slacker/commands/ping_test.exs
pivotal-sydney/slacker
9e13b2ab232828ae7050f1c460233e572984d508
[ "MIT" ]
3
2016-01-17T09:07:17.000Z
2016-01-19T21:55:21.000Z
test/slacker/commands/ping_test.exs
mikfreedman/slacker
9e13b2ab232828ae7050f1c460233e572984d508
[ "MIT" ]
null
null
null
defmodule Slacker.Commands.PingTest do use ExUnit.Case test "it pongs" do {:ok, manager} = GenEvent.start_link GenEvent.add_handler(manager, Slacker.Commands.Ping, self) message = %{ channel: "channel" } GenEvent.notify(manager, {{:command, "ping", "hello world"}, %{bot_pid: self, message: message...
29.153846
101
0.686016
1da8b8d18f9b7d8633049a86d5aeeffd67d27608
300
ex
Elixir
lib/sentinel/pipeline_html_authenticated.ex
lumenlunae/sentinel
189d9b02aeeea942a41963b42ef8523ef192fd03
[ "MIT" ]
null
null
null
lib/sentinel/pipeline_html_authenticated.ex
lumenlunae/sentinel
189d9b02aeeea942a41963b42ef8523ef192fd03
[ "MIT" ]
null
null
null
lib/sentinel/pipeline_html_authenticated.ex
lumenlunae/sentinel
189d9b02aeeea942a41963b42ef8523ef192fd03
[ "MIT" ]
null
null
null
defmodule Sentinel.Guardian.PipelineHtmlAuthenticated do use Guardian.Plug.Pipeline, otp_app: :sentinel, module: Sentinel.Guardian, error_handler: Sentinel.AuthHandler plug(Guardian.Plug.VerifySession) plug(Guardian.Plug.EnsureAuthenticated) plug(Guardian.Plug.LoadResource) end
27.272727
56
0.796667
1da8c996b6cad4570ca142f9738f26636f330086
57
exs
Elixir
test/tix_test.exs
elitau/tix
2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8
[ "MIT" ]
1
2021-08-16T18:52:45.000Z
2021-08-16T18:52:45.000Z
test/tix_test.exs
elitau/tix
2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8
[ "MIT" ]
16
2021-03-09T19:39:31.000Z
2022-03-15T15:20:24.000Z
test/tix_test.exs
elitau/tix
2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8
[ "MIT" ]
null
null
null
defmodule TixTest do use ExUnit.Case doctest Tix end
11.4
20
0.77193
1da8eda97c15c00b6c189a50edba839f66df034d
298
ex
Elixir
plugins/one_admin/lib/one_admin/application.ex
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
plugins/one_admin/lib/one_admin/application.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
plugins/one_admin/lib/one_admin/application.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule OneAdmin.Application do def start(_, _) do OneAdmin.initialize [] |> InfinityOne.Hooks.register_admin_pages |> Enum.map(fn pages when is_list(pages) -> Enum.map pages, &OneAdmin.add_page/1 page -> OneAdmin.add_page page end) end end
17.529412
45
0.630872
1da8fa6b7065e6802fbb4506e43e9468b0b5e1f0
1,829
ex
Elixir
lib/canvas_api/slack_parser.ex
usecanvas/api-v2
59214db3a2cf12eb939f22fed320fd10cb47cdfe
[ "Apache-2.0" ]
123
2017-04-04T18:15:48.000Z
2021-04-26T08:04:22.000Z
lib/canvas_api/slack_parser.ex
usecanvas/api-v2
59214db3a2cf12eb939f22fed320fd10cb47cdfe
[ "Apache-2.0" ]
null
null
null
lib/canvas_api/slack_parser.ex
usecanvas/api-v2
59214db3a2cf12eb939f22fed320fd10cb47cdfe
[ "Apache-2.0" ]
17
2017-04-04T18:58:29.000Z
2021-05-10T21:39:16.000Z
defmodule CanvasAPI.SlackParser do @moduledoc """ Provides functionality for parsing Slack messages. """ @doc """ Convert a Slack message to plain text by stripping brackets and leaving only link text and labels. ## Examples iex> CanvasAPI.SlackParser.to_text("Foo <bar>") "Foo bar" i...
31
89
0.605249
1da8fb4b1a596689c768641a03ce9d0ae2c0b26a
3,207
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_group_aggregated_list.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_group_aggregated_list.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/instance_group_aggregated_list.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...
47.865672
393
0.717181
1da939e6904322455ef27ffb5943cd68fcc8596e
3,237
exs
Elixir
test/postoffice/handlers/http_test.exs
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
test/postoffice/handlers/http_test.exs
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
test/postoffice/handlers/http_test.exs
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
defmodule Postoffice.Handlers.HttpTest do use ExUnit.Case import Mox alias Postoffice.Adapters.HttpMock alias Postoffice.Handlers.Http alias Postoffice.Messaging alias Postoffice.Messaging.Message @valid_message_attrs %{ attributes: %{}, payload: %{}, public_id: "7488a646-e31f-11e4-aace-600...
32.049505
96
0.714859
1da93a80741abadf77625da974381e5e6840fc09
1,777
ex
Elixir
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/validate_attestation_occurrence_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/validate_attestation_occurrence_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/binary_authorization/lib/google_api/binary_authorization/v1/model/validate_attestation_occurrence_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.309091
125
0.741699
1da95b30428fbfdf416f4e4a9f8763911a8f755d
4,220
ex
Elixir
lib/cforum_web/controllers/tag_controller.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum_web/controllers/tag_controller.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum_web/controllers/tag_controller.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
defmodule CforumWeb.TagController do use CforumWeb, :controller alias Cforum.Threads.Thread alias Cforum.Messages.Message alias Cforum.Messages.MessagesTags alias Cforum.Messages.Tag alias Cforum.Messages.Tags alias CforumWeb.Paginator def index(conn, _params) do tags = Tags.list_tags() {m...
30.359712
115
0.629858
1da996ca0acfdcf4d7d5f9ec1771ab1fec8dfa96
1,927
exs
Elixir
mix.exs
ScheduleWidget/torch
daf8702feb1f4f303691a42879862edec72bb9ec
[ "MIT" ]
null
null
null
mix.exs
ScheduleWidget/torch
daf8702feb1f4f303691a42879862edec72bb9ec
[ "MIT" ]
null
null
null
mix.exs
ScheduleWidget/torch
daf8702feb1f4f303691a42879862edec72bb9ec
[ "MIT" ]
null
null
null
defmodule Torch.MixProject do use Mix.Project def project do [ app: :torch, version: "3.6.1", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, compilers: [:phoenix, :gettext] ++ Mix.compilers(), name: "Torch", description: "Rapid admin generator for Phoenix", ...
25.693333
63
0.535547
1da9a899c1443a31f57d497a9dff41ce4607cc8d
1,681
ex
Elixir
clients/service_directory/lib/google_api/service_directory/v1beta1/model/get_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_directory/lib/google_api/service_directory/v1beta1/model/get_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_directory/lib/google_api/service_directory/v1beta1/model/get_iam_policy_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...
35.765957
187
0.764426
1da9b6e921e85d9f176fcf237be3d0e505093d80
8,178
exs
Elixir
exercises/grep/grep_test.exs
darktef/elixir-exercism
bcaae351486b1405f0a01cd33b4d39555546298e
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/grep/grep_test.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/grep/grep_test.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("grep.exs", __DIR__) end ExUnit.start ExUnit.configure exclude: :pending, trace: true defmodule GrepTest do use ExUnit.Case setup context do if context[:files] do File.write!("iliad.txt", """ Achilles sing, O Goddess! Peleus' son; ...
31.453846
80
0.585473
1da9c6ae9abaa272f20e99dfba91fc6bec7bb9de
1,044
exs
Elixir
test/plasm/earliest_test.exs
facto/plasm
cd8a713e8409738f776f77cecbc65e2f0f42c146
[ "Apache-2.0" ]
56
2016-07-31T19:35:49.000Z
2021-10-21T20:32:42.000Z
test/plasm/earliest_test.exs
atomic-fads/plasm
cd8a713e8409738f776f77cecbc65e2f0f42c146
[ "Apache-2.0" ]
2
2016-01-27T17:38:55.000Z
2016-05-21T18:33:14.000Z
test/plasm/earliest_test.exs
facto/plasm
cd8a713e8409738f776f77cecbc65e2f0f42c146
[ "Apache-2.0" ]
3
2016-10-05T19:33:04.000Z
2018-02-16T16:35:26.000Z
defmodule Plasm.EarliestTest do use Plasm.Case alias Plasm.Repo alias Plasm.User import Plasm.Factory test ".earliest with an atom field name" do # Arrange earliest_user = insert(:user, inserted_at: "2016-07-26T00:00:00Z") insert(:user, inserted_at: "2016-07-27T00:00:00Z") insert(:user, ins...
28.216216
90
0.673372
1da9cfb6e62d13f9e70d8bbed0ab15cef2f66175
1,303
ex
Elixir
apps/ewallet_api/lib/ewallet_api/global/controllers/status_controller.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/global/controllers/status_controller.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/global/controllers/status_controller.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# 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...
27.145833
74
0.695318
1da9e739a9ebe2a0ab51e5a9482e78bb79d7b442
13,052
ex
Elixir
lib/publisher.ex
VanHelmont/gen_rmq
ae6958c7f5d61b64e075020a9760cc5b64d749c3
[ "MIT" ]
164
2018-03-25T10:02:09.000Z
2022-03-15T12:39:24.000Z
lib/publisher.ex
VanHelmont/gen_rmq
ae6958c7f5d61b64e075020a9760cc5b64d749c3
[ "MIT" ]
239
2018-03-14T13:08:42.000Z
2022-03-20T08:59:16.000Z
lib/publisher.ex
VanHelmont/gen_rmq
ae6958c7f5d61b64e075020a9760cc5b64d749c3
[ "MIT" ]
41
2018-05-15T10:07:13.000Z
2022-02-11T14:36:27.000Z
defmodule GenRMQ.Publisher do @moduledoc """ A behaviour module for implementing the RabbitMQ publisher """ use GenServer use AMQP require Logger alias GenRMQ.Publisher.Telemetry alias GenRMQ.Queue # list of fields permitted in message metadata at top level @metadata_fields ~w( mandatory ...
31.91198
160
0.632853
1da9f59704ac03fddf06f8d2e66ad8649c36c8ff
3,191
ex
Elixir
lib/autox/models/session.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
lib/autox/models/session.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
lib/autox/models/session.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
defmodule Autox.Session do import Ecto.Changeset def cache_user_fields(%{valid?: false}=x), do: x def cache_user_fields(changeset) do %{remember_token: token, email: email, id: user_id} = changeset |> get_field(:user) changeset |> put_change(:remember_token, token) |> put_change(:email, email...
35.065934
96
0.631777
1daa0135c359edfdf9e5704abb9fab319da37891
188
ex
Elixir
lib/algae/writer/generator.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
191
2016-08-22T17:34:45.000Z
2019-05-28T19:02:39.000Z
lib/algae/writer/generator.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
35
2016-08-30T20:56:22.000Z
2019-05-02T17:32:31.000Z
lib/algae/writer/generator.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
10
2016-08-30T18:41:54.000Z
2019-02-14T14:14:55.000Z
alias TypeClass.Property.Generator defimpl TypeClass.Property.Generator, for: Algae.Writer do def generate(_), do: Algae.Writer.new({Generator.generate(0), Generator.generate("")}) end
31.333333
88
0.776596
1daa2a0772545985df3c4790eda76cac1e904569
687
ex
Elixir
lib/mix/tasks/uptom.smart_ping.ex
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
6
2017-05-12T04:20:09.000Z
2020-11-07T02:00:56.000Z
lib/mix/tasks/uptom.smart_ping.ex
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
null
null
null
lib/mix/tasks/uptom.smart_ping.ex
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
2
2020-05-18T08:06:22.000Z
2020-12-19T14:24:40.000Z
defmodule Mix.Tasks.Uptom.SmartPing do use Mix.Task import Mix.Ecto import Ecto.Query @shortdoc "Ping a site (accounting for network issues) and display results" def run([site_id]) do {site_id, _} = Integer.parse(site_id) ensure_started(Uptom.Repo, []) {:ok, _started} = Application.ensure_all_s...
31.227273
77
0.717613
1daa3ddcd14eb6e9fa861534f7daebdc32c99645
1,053
exs
Elixir
config/config.exs
gleidsonduarte/phoenix-elixir-hello-world
b89f7682ac63df8fb8235b2f426b8a82e4cec826
[ "MIT" ]
null
null
null
config/config.exs
gleidsonduarte/phoenix-elixir-hello-world
b89f7682ac63df8fb8235b2f426b8a82e4cec826
[ "MIT" ]
null
null
null
config/config.exs
gleidsonduarte/phoenix-elixir-hello-world
b89f7682ac63df8fb8235b2f426b8a82e4cec826
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config # Configures the endpoint config :phoenix_elixir...
36.310345
101
0.786325
1daa537651ae6f135f28afee5e48966b804bc204
421
ex
Elixir
apps/packet/lib/packet/pingresp.ex
tchupp/SteveMQ
a1e84fd5ab9c44094e31a9dee67fe970b3cee163
[ "BSD-3-Clause" ]
8
2019-12-20T15:44:08.000Z
2021-01-25T18:30:25.000Z
apps/packet/lib/packet/pingresp.ex
tchupp/SteveMQ
a1e84fd5ab9c44094e31a9dee67fe970b3cee163
[ "BSD-3-Clause" ]
1
2019-11-08T17:20:00.000Z
2019-11-08T17:20:00.000Z
apps/packet/lib/packet/pingresp.ex
tchupp/SteveMQ
a1e84fd5ab9c44094e31a9dee67fe970b3cee163
[ "BSD-3-Clause" ]
null
null
null
defmodule Packet.Pingresp do use Bitwise require Logger @opaque t :: %__MODULE__{} @opaque decode_result :: {:pingresp, t} @enforce_keys [] defstruct [] @spec decode(<<_::8>>, <<_::8>>) :: decode_result def decode(<<13::4, 0::4>>, _msg) do {:pingresp, %Packet.Pingresp{}} end defimpl Packet....
18.304348
51
0.598575
1daa69e86c3c4ac69cd5f12a764f1cbddc5c3622
3,698
exs
Elixir
test/integration/paging_test.exs
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
318
2017-01-17T13:24:29.000Z
2022-03-17T20:31:39.000Z
test/integration/paging_test.exs
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
117
2017-01-17T14:20:15.000Z
2022-03-30T11:22:32.000Z
test/integration/paging_test.exs
team-telnyx/xandra
93857c488efa10a07de833b36385a07782ea496b
[ "ISC" ]
49
2017-02-06T19:18:03.000Z
2022-03-22T13:08:46.000Z
defmodule PagingTest do use XandraTest.IntegrationCase, async: true alias Xandra.{Page, PageStream} setup_all %{keyspace: keyspace, start_options: start_options} do {:ok, conn} = Xandra.start_link(start_options) Xandra.execute!(conn, "USE #{keyspace}") statement = "CREATE TABLE alphabet (lang text,...
30.065041
97
0.559492
1daa6c552f21d0724bfc5c77123223451dd407e3
4,321
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_web_detection.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_web_detection.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_web_detection.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...
45.484211
203
0.755844
1daa82a4b9d95cbecf91736351ada88c72ca0fa0
156
exs
Elixir
priv/repo/migrations/20200728190435_add_index_to_test_results_file_id.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
2
2021-06-22T21:01:49.000Z
2021-11-04T18:36:48.000Z
priv/repo/migrations/20200728190435_add_index_to_test_results_file_id.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
priv/repo/migrations/20200728190435_add_index_to_test_results_file_id.exs
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
defmodule NYSETL.Repo.Migrations.AddIndexToTestResultsFileId do use Ecto.Migration def change do create index(:test_results, [:file_id]) end end
19.5
63
0.775641
1daaa367ff1a7ddbf32b36302575ea716f90598d
476
exs
Elixir
mix.exs
mattste/mongo_ex
dd98edfaf24627b36790920ee8122c6fbcd57490
[ "MIT" ]
null
null
null
mix.exs
mattste/mongo_ex
dd98edfaf24627b36790920ee8122c6fbcd57490
[ "MIT" ]
null
null
null
mix.exs
mattste/mongo_ex
dd98edfaf24627b36790920ee8122c6fbcd57490
[ "MIT" ]
null
null
null
defmodule MongoEx.MixProject do use Mix.Project def project do [ app: :mongo_ex, version: "0.1.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_ap...
17
59
0.569328
1daaa91a1d504f6e417ca0680972c184d53b3f6b
2,613
exs
Elixir
test/buildable_test.exs
eksperimental/buildable
cf6be3dee76bf6dab39517b58bfa5de441b05427
[ "MIT" ]
9
2021-01-02T07:29:14.000Z
2021-12-20T01:34:34.000Z
test/buildable_test.exs
eksperimental/buildable
cf6be3dee76bf6dab39517b58bfa5de441b05427
[ "MIT" ]
null
null
null
test/buildable_test.exs
eksperimental/buildable
cf6be3dee76bf6dab39517b58bfa5de441b05427
[ "MIT" ]
2
2021-11-07T19:42:31.000Z
2021-11-07T19:43:02.000Z
defmodule BuildableTest do use ExUnit.Case doctest Buildable setup_all _ do %{ foo: %{__struct__: Foo, map: %{a: 2, b: 4, c: 6}}, map: %{a: 2, b: 4, c: 6} } end test "Foo basic functions", %{foo: foo} do assert Foo.empty() == %Foo{} assert Foo.empty(foo: :bar) == %Foo{} asse...
31.865854
145
0.541906
1daab1035dfb3bbbfef359d44f3d65ecdcc236ae
328
exs
Elixir
test/test_tables.exs
mishka-group/mishka-developer-tools
1d6d9874fff9ea320802e523d4a72a7b49bb7078
[ "Apache-2.0" ]
4
2021-12-07T06:24:18.000Z
2022-03-20T23:10:51.000Z
test/test_tables.exs
mishka-group/mishka-developer-tools
1d6d9874fff9ea320802e523d4a72a7b49bb7078
[ "Apache-2.0" ]
4
2022-01-02T09:22:29.000Z
2022-03-27T17:17:13.000Z
test/test_tables.exs
mishka-group/mishka_developer_tools
cc03f1cdfb8873476e147a5051aaf5890e6ef803
[ "Apache-2.0" ]
1
2022-01-21T20:18:33.000Z
2022-01-21T20:18:33.000Z
defmodule MishkaDeveloperTools.Repo.Migrations.TestTables do use Ecto.Migration def change do create table(:test_tables, primary_key: false) do add(:id, :uuid, primary_key: true) add(:test_field_one, :string, null: false) add(:test_field_two, :string, null: false) timestamps() end ...
27.333333
60
0.698171
1daaf97577913f43026e3f12a427ad2e7fbf5c90
545
ex
Elixir
lib/zero_phoenix_web/views/person_view.ex
idkjs/zero-to-graphql-using-phoenix
5e7f99af40030d57a603d9457e4906324fdfa4ea
[ "MIT" ]
9
2019-03-26T22:16:08.000Z
2021-09-27T12:42:34.000Z
lib/zero_phoenix_web/views/person_view.ex
idkjs/zero-to-graphql-using-phoenix
5e7f99af40030d57a603d9457e4906324fdfa4ea
[ "MIT" ]
3
2020-06-08T23:03:49.000Z
2020-06-09T03:11:12.000Z
lib/zero_phoenix_web/views/person_view.ex
idkjs/zero-to-graphql-using-phoenix
5e7f99af40030d57a603d9457e4906324fdfa4ea
[ "MIT" ]
7
2019-01-15T17:00:07.000Z
2021-07-18T23:30:29.000Z
defmodule ZeroPhoenixWeb.PersonView do use ZeroPhoenixWeb, :view alias ZeroPhoenixWeb.PersonView def render("index.json", %{people: people}) do %{data: render_many(people, PersonView, "person.json")} end def render("show.json", %{person: person}) do %{data: render_one(person, PersonView, "person.jso...
25.952381
59
0.682569
1daafe381bcd55f2fec994ce28549287bb926e33
89
ex
Elixir
lib/playwright/api_response.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
30
2021-06-01T16:59:35.000Z
2022-03-25T16:56:19.000Z
lib/playwright/api_response.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
35
2021-06-10T17:05:31.000Z
2022-02-11T22:30:36.000Z
lib/playwright/api_response.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
4
2021-08-13T20:38:18.000Z
2022-01-31T04:32:35.000Z
defmodule Playwright.APIResponse do @moduledoc false use Playwright.ChannelOwner end
17.8
35
0.831461
1dab0fb8bd4468972e8fbe5c6a74205b545c285a
1,555
exs
Elixir
test/test_helper.exs
mishka-group/mishka-developer-tools
1d6d9874fff9ea320802e523d4a72a7b49bb7078
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
mishka-group/mishka-developer-tools
1d6d9874fff9ea320802e523d4a72a7b49bb7078
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
mishka-group/mishka-developer-tools
1d6d9874fff9ea320802e523d4a72a7b49bb7078
[ "Apache-2.0" ]
1
2021-11-28T17:07:11.000Z
2021-11-28T17:07:11.000Z
ExUnit.start() alias Ecto.Integration.TestRepo # postgresql://postgres:postgres@localhost:${{job.services.postgres.ports[5432]}}/mishka_developer_tools_test Application.put_env( :ecto, TestRepo, adapter: Ecto.Adapters.Postgres, url: System.get_env("DATABASE_DEVELOPERT_URL", "postgresql://postgres:postgres@loca...
28.272727
126
0.751768
1dab15f05ee4c96205e9f1e3ab14d3db719d92a6
461
ex
Elixir
lib/twivia_web/views/tweet_view.ex
liviaab/twivia
ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e
[ "MIT" ]
null
null
null
lib/twivia_web/views/tweet_view.ex
liviaab/twivia
ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e
[ "MIT" ]
null
null
null
lib/twivia_web/views/tweet_view.ex
liviaab/twivia
ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e
[ "MIT" ]
null
null
null
defmodule TwiviaWeb.TweetView do use TwiviaWeb, :view alias TwiviaWeb.TweetView def render("index.json", %{tweets: tweets}) do %{data: render_many(tweets, TweetView, "tweet.json")} end def render("show.json", %{tweet: tweet}) do %{data: render_one(tweet, TweetView, "tweet.json")} end def render...
21.952381
57
0.646421
1dab32d49da3b6809066afb7c0bff4b9b5847092
3,697
ex
Elixir
lib/aoc/day_17.ex
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
lib/aoc/day_17.ex
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
lib/aoc/day_17.ex
CraigCottingham/advent-of-code-2019
76a1545e4cca14fe1e9e0de475de253170da1645
[ "Apache-2.0" ]
null
null
null
defmodule AoC.Day17 do @moduledoc false alias AoC.Intcode.{Interpreter, Memory, VacuumRobot} def part_1 do "data/day17-input.txt" |> Memory.load_from_file() |> generate_view() |> intersections() |> Enum.map(&alignment_parameter/1) |> Enum.sum() end def part_2 do programs = ...
28.221374
83
0.584258
1dab4a731c8a7e20c1646e4e620c0d8cd14796ad
9,862
ex
Elixir
lib/calendar/time.ex
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
442
2015-05-18T09:58:39.000Z
2022-02-15T19:56:41.000Z
lib/calendar/time.ex
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
50
2015-06-04T19:10:56.000Z
2019-11-18T13:31:16.000Z
lib/calendar/time.ex
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
47
2015-05-23T20:45:20.000Z
2021-12-23T08:32:58.000Z
defprotocol Calendar.ContainsTime do @doc """ Returns a Calendar.Time struct for the provided argument """ def time_struct(data) end defmodule Calendar.Time do @moduledoc """ The Time module provides a struct to represent a simple time without specifying a date, nor a time zone. """ @doc """ Takes...
31.407643
113
0.636889
1dab5bc35cd5c3d85f8e82f2012b8449a1762572
309
ex
Elixir
lib/spelt/notifications/relationship/no_properties.ex
jec/spelt
b6e5070226b646e1eb5dfc28453db7e7bf5030d9
[ "BSD-3-Clause" ]
null
null
null
lib/spelt/notifications/relationship/no_properties.ex
jec/spelt
b6e5070226b646e1eb5dfc28453db7e7bf5030d9
[ "BSD-3-Clause" ]
null
null
null
lib/spelt/notifications/relationship/no_properties.ex
jec/spelt
b6e5070226b646e1eb5dfc28453db7e7bf5030d9
[ "BSD-3-Clause" ]
null
null
null
defmodule Spelt.Notifications.Relationship.NoProperties do @moduledoc """ Defines Relationships that have no properties """ import Seraph.Schema.Relationship alias Spelt.Auth.User alias Spelt.Notifications.Pusher defrelationship "NOTIFIED_BY", User, Pusher, cardinality: [incoming: :one] end
23.769231
76
0.776699
1dab5c24ad1c938e323a073a082e852f5775e56a
3,255
ex
Elixir
lib/hexpm/web/views/icons.ex
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/views/icons.ex
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/views/icons.ex
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Web.ViewIcons do use Phoenix.HTML import SweetXml @icons_dir Path.join(__DIR__, "../../../../assets/vendor/icons") @octicons_svg Path.join(@icons_dir, "octicons.svg") @glyphicons_svg Path.join(@icons_dir, "glyphicons-halflings-regular.svg") @glyphicons_less Path.join(@icons_dir, "...
29.324324
99
0.585561
1dabc751af416267fe9d09077d14e4399ff82370
1,312
ex
Elixir
apps/nerves_hub_web_core/lib/nerves_hub_web_core/repo.ex
nerves-hub/beamware
5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/lib/nerves_hub_web_core/repo.ex
nerves-hub/beamware
5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/lib/nerves_hub_web_core/repo.ex
nerves-hub/beamware
5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubWebCore.Repo do use Ecto.Repo, otp_app: :nerves_hub_web_core, adapter: Ecto.Adapters.Postgres import Ecto.Query, only: [where: 3] @type transaction :: {:ok, any()} | {:error, any()} | {:error, Ecto.Multi.name(), any(), %{required(Ecto.Multi.name()) => any...
24.296296
87
0.652439
1dabca0865f9a4faff4c8942af0b3d77fbe9bff5
12,965
ex
Elixir
clients/content/lib/google_api/content/v2/api/accounttax.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/accounttax.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/accounttax.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...
42.930464
219
0.677979
1dabde264e920cba909c6182cd60d36232459d8e
21,309
ex
Elixir
lib/ash/type/type.ex
kernel-io/ash
cb59a8e09c61913fb0443a84fc894714e9199686
[ "MIT" ]
null
null
null
lib/ash/type/type.ex
kernel-io/ash
cb59a8e09c61913fb0443a84fc894714e9199686
[ "MIT" ]
null
null
null
lib/ash/type/type.ex
kernel-io/ash
cb59a8e09c61913fb0443a84fc894714e9199686
[ "MIT" ]
null
null
null
defmodule Ash.Type do @array_constraints [ min_length: [ type: :non_neg_integer, doc: "A minimum length for the items" ], max_length: [ type: :non_neg_integer, doc: "A maximum length for the items" ], nil_items?: [ type: :boolean, doc: "Whether or not the list c...
28.487968
112
0.593458
1dabe298c36a709d0fef73b6ca25ab6adcd04166
566
ex
Elixir
apps/mcam_server/lib/mcam_server/unregistered_cameras/unregistered_camera_events.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
apps/mcam_server/lib/mcam_server/unregistered_cameras/unregistered_camera_events.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
8
2020-11-16T09:59:12.000Z
2020-11-16T10:13:07.000Z
apps/mcam_server/lib/mcam_server/unregistered_cameras/unregistered_camera_events.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
defmodule McamServer.UnregisteredCameras.UnregisteredCameraEvents do @moduledoc """ Notification events for unregistered cameras """ @unregistered_camera_broadcaster_name __MODULE__ def registry_name, do: @unregistered_camera_broadcaster_name def subscribe(topic) do {:ok, _} = Registry.register(@unre...
26.952381
82
0.749117
1dac022eb040cd2df9a54857bd6929d97a45256c
208
exs
Elixir
Elixir/reverse_list.exs
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
1,428
2018-10-03T15:15:17.000Z
2019-03-31T18:38:36.000Z
Elixir/reverse_list.exs
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
1,162
2018-10-03T15:05:49.000Z
2018-10-18T14:17:52.000Z
Elixir/reverse_list.exs
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
3,909
2018-10-03T15:07:19.000Z
2019-03-31T18:39:08.000Z
defmodule MyList do def reverse(list) do reverse(list, []) end defp reverse([], result), do: result defp reverse([h|t], result) do reversed = [h] ++ result reverse(t, reversed) end end
17.333333
38
0.625
1dac0ff1cdbc9a991392ef15f8001758160c8a0a
1,066
exs
Elixir
test/rtypes_test.exs
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
21
2019-05-23T12:35:31.000Z
2020-09-30T04:48:03.000Z
test/rtypes_test.exs
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
3
2020-10-16T11:49:33.000Z
2020-11-14T08:53:44.000Z
test/rtypes_test.exs
d2km/rtypes
ea5eca9862d8860fce9bd29798f4bf032aa0481d
[ "Apache-2.0" ]
2
2019-06-06T14:20:25.000Z
2020-01-06T11:00:08.000Z
defmodule RTypesTest do use ExUnit.Case doctest RTypes alias RTypes.Test.ComplexTypes require RTypes test "CompexTypes.type_complex_map" do f = RTypes.make_predicate(ComplexTypes, :type_complex_map, []) f2 = RTypes.make_validator(ComplexTypes, :type_complex_map, []) assert f.(%{key1: [], key2: 1...
31.352941
70
0.575985
1dac37f0917d395423d67df8dc7df7530522338c
9,242
ex
Elixir
lib/chat_api/emails/email.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
lib/chat_api/emails/email.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
lib/chat_api/emails/email.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
defmodule ChatApi.Emails.Email do import Swoosh.Email import Ecto.Changeset @type t :: Swoosh.Email.t() @from_address System.get_env("FROM_ADDRESS") || "" @backend_url System.get_env("BACKEND_URL") || "" defstruct to_address: nil, message: nil def generic(to: to, from: from, subject: subject, text: te...
25.530387
98
0.598355
1dac3add217b10b681d3b2a33724f94bf152d2ce
7,089
ex
Elixir
lib/codes/codes_x77.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_x77.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_x77.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_X77 do alias IcdCode.ICDCode def _X770XXA do %ICDCode{full_code: "X770XXA", category_code: "X77", short_code: "0XXA", full_name: "Intentional self-harm by steam or hot vapors, initial encounter", short_name: "Intentional self-harm by steam o...
41.946746
98
0.656651
1dac49be703ca68e42caf3da1851ce735b26e787
16,960
exs
Elixir
test/ethereumex/http_client_test.exs
ayrat555/circleci_multiple_docker_test
4360b17a61658f1242b421605bd2815a3618fac2
[ "MIT" ]
null
null
null
test/ethereumex/http_client_test.exs
ayrat555/circleci_multiple_docker_test
4360b17a61658f1242b421605bd2815a3618fac2
[ "MIT" ]
null
null
null
test/ethereumex/http_client_test.exs
ayrat555/circleci_multiple_docker_test
4360b17a61658f1242b421605bd2815a3618fac2
[ "MIT" ]
null
null
null
defmodule Ethereumex.HttpClientTest do use ExUnit.Case alias Ethereumex.HttpClient setup_all do HttpClient.start_link :ok end @tag :web3 describe "HttpClient.web3_client_version/0" do test "returns client version" do result = HttpClient.web3_client_version {:ok, <<_::binary>>} = ...
27.487844
178
0.691215
1dacdab6ee458e02fbac0ac1b2ffd9b9086f4517
2,611
ex
Elixir
clients/tag_manager/lib/google_api/tag_manager/v2/model/user_permission.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/tag_manager/lib/google_api/tag_manager/v2/model/user_permission.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/tag_manager/lib/google_api/tag_manager/v2/model/user_permission.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...
44.254237
239
0.729606
1daceba0967d1a13009e6df909a747473612cf1f
10,126
ex
Elixir
lib/grpc/admin/bigtable_table_admin.pb.ex
rockneurotiko/bigtable
a83d0c3e513a212265b2f6fc775407fa71ac049c
[ "MIT" ]
17
2019-01-22T12:59:38.000Z
2021-12-13T10:41:52.000Z
lib/grpc/admin/bigtable_table_admin.pb.ex
rockneurotiko/bigtable
a83d0c3e513a212265b2f6fc775407fa71ac049c
[ "MIT" ]
17
2019-01-27T18:11:33.000Z
2020-02-24T10:16:08.000Z
lib/grpc/admin/bigtable_table_admin.pb.ex
rockneurotiko/bigtable
a83d0c3e513a212265b2f6fc775407fa71ac049c
[ "MIT" ]
3
2019-02-04T17:08:09.000Z
2021-04-07T07:13:53.000Z
defmodule Google.Bigtable.Admin.V2.CreateTableRequest do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ parent: String.t(), table_id: String.t(), table: Google.Bigtable.Admin.V2.Table.t(), initial_splits: [Google.Bigtable.Admin.V2.CreateTableRequest...
28.206128
98
0.699388
1dacf6e212c23ff78aa0915cc3cc9411f31dd6ed
1,056
ex
Elixir
examples/example-phx-1_2/lib/example.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
681
2016-06-21T20:49:21.000Z
2022-02-19T04:08:38.000Z
examples/example-phx-1_2/lib/example.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
125
2016-06-21T21:14:49.000Z
2020-12-12T20:15:48.000Z
examples/example-phx-1_2/lib/example.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
76
2016-09-06T03:40:55.000Z
2022-01-20T21:29:22.000Z
defmodule Example do @moduledoc false use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start t...
32
85
0.713068
1dad0184585a7de9e5bb7e35556ad37005b9ca98
29,554
ex
Elixir
lib/elixir/lib/system.ex
alexandraorth/elixir
b9dce4b2a7c0ba54c4f930ad599684c554569aa3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/system.ex
alexandraorth/elixir
b9dce4b2a7c0ba54c4f930ad599684c554569aa3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/system.ex
alexandraorth/elixir
b9dce4b2a7c0ba54c4f930ad599684c554569aa3
[ "Apache-2.0" ]
null
null
null
defmodule System do @moduledoc """ The `System` module provides functions that interact directly with the VM or the host system. ## Time The `System` module also provides functions that work with time, returning different times kept by the system with support for different time units. One of the comp...
30.311795
102
0.678622
1dad0854ca59d940758442e2b396595cf9eb53a5
1,513
ex
Elixir
clients/run/lib/google_api/run/v1/model/test_iam_permissions_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/test_iam_permissions_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/run/lib/google_api/run/v1/model/test_iam_permissions_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.191489
143
0.744217
1dad1fa55f98fc17ce8f9c1ec98f4ae4735d586c
1,131
exs
Elixir
clients/prediction/config/config.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/prediction/config/config.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/prediction/config/config.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.483871
73
0.7542
1dad275218c608a9166626b761abbb7f07decffe
732
ex
Elixir
lib/discovery_api_web/plugs/cookie_monster.ex
folkengine/discovery_api
0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217
[ "Apache-2.0" ]
1
2021-04-05T19:17:18.000Z
2021-04-05T19:17:18.000Z
lib/discovery_api_web/plugs/cookie_monster.ex
folkengine/discovery_api
0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217
[ "Apache-2.0" ]
11
2020-01-07T15:43:42.000Z
2020-12-22T15:23:25.000Z
lib/discovery_api_web/plugs/cookie_monster.ex
folkengine/discovery_api
0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217
[ "Apache-2.0" ]
null
null
null
defmodule DiscoveryApiWeb.Plugs.CookieMonster do @moduledoc """ Eats cookies that do not belong """ require Logger def init(default), do: default def call(%Plug.Conn{} = conn, _opts) do with false <- origin_allowed?(conn), true <- cookie_token_exists?(conn) do conn |> DiscoveryA...
23.612903
71
0.642077
1dad39aecaed9ea1abfed53b8f8a34fdb9639bb2
1,605
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/individual_students_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/individual_students_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/classroom/lib/google_api/classroom/v1/model/individual_students_options.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...
34.148936
143
0.750156
1dad4a55a7d67f581d0b8804a0dcaa77e443774b
899
ex
Elixir
lib/flickrex/operation.ex
christopheradams/flickrex
67e3a507e128c55969aeda3802f6dacd94bb03c5
[ "MIT" ]
13
2017-04-02T10:55:10.000Z
2022-03-02T02:55:40.000Z
lib/flickrex/operation.ex
christopheradams/flickrex
67e3a507e128c55969aeda3802f6dacd94bb03c5
[ "MIT" ]
null
null
null
lib/flickrex/operation.ex
christopheradams/flickrex
67e3a507e128c55969aeda3802f6dacd94bb03c5
[ "MIT" ]
1
2021-01-31T17:47:27.000Z
2021-01-31T17:47:27.000Z
defprotocol Flickrex.Operation do @moduledoc """ An operation to perform on Flickr This module defines a protocol for executing operations via the Flickr API. The modules implementing the protocol handle one service, including authentication, uploads, and "Rest" methods: - `Flickrex.Operation.Auth.AccessT...
29
87
0.746385
1dad4c26cbc30d96c44eb744ab467b4fb4d99d95
495
exs
Elixir
test/test_helper.exs
rwdaigle/scrollex
17341ad8adac9ceb2eb806ed868664d47a7244d0
[ "MIT" ]
53
2015-06-16T12:40:08.000Z
2020-11-17T17:55:30.000Z
test/test_helper.exs
rwdaigle/scrollex
17341ad8adac9ceb2eb806ed868664d47a7244d0
[ "MIT" ]
14
2015-06-16T14:36:57.000Z
2018-10-03T23:59:41.000Z
test/test_helper.exs
rwdaigle/scrollex
17341ad8adac9ceb2eb806ed868664d47a7244d0
[ "MIT" ]
14
2015-06-16T13:41:29.000Z
2017-04-19T19:08:47.000Z
ExUnit.start() ExUnit.configure exclude: [:config] # Streamline logger output to just the message for easier testing Logger.configure_backend :console, level: :info, format: "$message\n", colors: [enabled: false] defmodule MetrixTestHelper do import ExUnit.CaptureLog def line(fun), do: capture_log(fun) |...
22.5
68
0.715152
1dad8a6595c4d3a3f785ce8835b76ba6c155a24f
87
exs
Elixir
test/test_helper.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
ExUnit.start(exclude: [:long_running], capture_log: true, assert_receive_timeout: 500)
43.5
86
0.804598
1dadabe10f73c01797112ea2c2f47016067d920e
681
exs
Elixir
mix.exs
sger/ex_rabbitmq_rpc
7e46b471f9bcd2b9a850d783d34c7c806ca5cab6
[ "MIT" ]
null
null
null
mix.exs
sger/ex_rabbitmq_rpc
7e46b471f9bcd2b9a850d783d34c7c806ca5cab6
[ "MIT" ]
null
null
null
mix.exs
sger/ex_rabbitmq_rpc
7e46b471f9bcd2b9a850d783d34c7c806ca5cab6
[ "MIT" ]
null
null
null
defmodule ExRabbitMQ.RPC.Mixfile do use Mix.Project def project do [ app: :ex_rabbitmq_rpc, version: "1.0.0", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, deps: deps(), name: "ExRabbitMQ RPC", source_url: "https://github.com/StoiximanServices/ex_rabbitmq_rpc"...
21.28125
73
0.528634
1dadae4857443b59521fde6b173ba3c341b8d60f
679
exs
Elixir
test/packet_test.exs
andzdroid/elixir-raknet-1
c40aa2ecc2c520813482388f9f4eda4923a68902
[ "MIT" ]
194
2021-01-13T19:18:00.000Z
2022-03-30T18:05:34.000Z
test/packet_test.exs
andzdroid/elixir-raknet-1
c40aa2ecc2c520813482388f9f4eda4923a68902
[ "MIT" ]
2
2021-03-25T19:47:04.000Z
2021-07-05T11:29:48.000Z
test/packet_test.exs
andzdroid/elixir-raknet-1
c40aa2ecc2c520813482388f9f4eda4923a68902
[ "MIT" ]
4
2021-01-14T03:59:20.000Z
2021-07-30T07:35:02.000Z
defmodule RakNet.PacketTest do use ExUnit.Case @test_data_packet <<25, 62, 69, 23, 124, 1, 0, 32, 0, 224, 105, 1, 0, 1, 0, 0, 0, 144, 9, 89, 211, 245, 50, 93, 224, 84, 166, 81, 195, 12, 94, 253, 127, 183, 0, 128, 255, 127, 255, 127, 195, 56, 128, 64, 0>> @tag packet: true test "decodes u...
39.941176
140
0.659794
1dadbae016e2aa2d6fad7d47e85daa9dba16ae24
1,590
exs
Elixir
apps/artemis_notify/mix.exs
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis_notify/mix.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_notify/mix.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule ArtemisNotify.Mixfile do use Mix.Project def project do [ app: :artemis_notify, version: "0.0.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.8", elixirc_paths: e...
26.065574
76
0.591195
1dae240a54300d045ca0d1820748009ea7e535f0
1,581
ex
Elixir
lib/cadet_web/controllers/answer_controller.ex
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
null
null
null
lib/cadet_web/controllers/answer_controller.ex
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
lib/cadet_web/controllers/answer_controller.ex
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule CadetWeb.AnswerController do use CadetWeb, :controller use PhoenixSwagger alias Cadet.Assessments def submit(conn, %{"questionid" => question_id, "answer" => answer}) when is_ecto_id(question_id) do case Assessments.answer_question(question_id, conn.assigns.current_user, answer) do ...
24.703125
117
0.628083
1dae2431ef4cb3bedee638d1db74da35fea9bdca
1,859
exs
Elixir
test/revert_test.exs
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
test/revert_test.exs
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
test/revert_test.exs
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
defmodule RevertTest do use ExUnit.Case import Ecto.Query alias ExAudit.Test.{TrackerRepo, Repo, User, Version, Util} test "should revert changes" do user = Util.create_user() ExAudit.track(%{actor_id: user.id}) user2 = Util.create_user("Horst Dieter Schaf", "horst.dieter@schaf.de") assert...
23.2375
75
0.599785
1dae4a5c85d3ba87c8e3c7e617dbe3c3f58a16ba
666
exs
Elixir
apps/nerves_hub_web_core/config/dev.exs
Gazler/nerves_hub_web
9a636a17310382819eaa6cee590e053cb47f0dcc
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/config/dev.exs
Gazler/nerves_hub_web
9a636a17310382819eaa6cee590e053cb47f0dcc
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/config/dev.exs
Gazler/nerves_hub_web
9a636a17310382819eaa6cee590e053cb47f0dcc
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :nerves_hub_web_core, firmware_upload: NervesHubWebCore.Firmwares.Upload.File config :nerves_hub_web_core, NervesHubWebCore.Firmwares.Upload.File, local_path: Path.join(System.tmp_dir(), "firmware"), public_path: "/firmware" # config :nerves_hub_web_core, NervesHubWebCore.Firmwares.Upload.S...
33.3
109
0.765766
1dae66f06b9f3f3e06f441b59c360f20dc0bf4f6
354
exs
Elixir
apps/storage/.formatter.exs
anyex-project/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
12
2019-02-21T21:29:08.000Z
2019-05-14T11:41:10.000Z
apps/storage/.formatter.exs
Hentioe/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
18
2019-02-05T17:19:33.000Z
2019-03-13T13:38:08.000Z
apps/storage/.formatter.exs
Hentioe/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
null
null
null
# Used by "mix format" locals_without_parens = [ table: 1, add: 1, add: 2, add: 3, create: 1, unique_index: 2, from: 2 ] [ inputs: ["{mix,.formatter}.exs", "{config,lib,test,priv}/**/*.{ex,exs}"], import_deps: [:ecto], locals_without_parens: locals_without_parens, export: [ locals_without_pa...
16.857143
75
0.641243
1dae67e24455f808623d013aba4fc1c9050635fd
694
ex
Elixir
lib/steve.ex
satom99/steve
6425eff76e68605c5e882351e118e783abfe7ccc
[ "Apache-2.0" ]
null
null
null
lib/steve.ex
satom99/steve
6425eff76e68605c5e882351e118e783abfe7ccc
[ "Apache-2.0" ]
null
null
null
lib/steve.ex
satom99/steve
6425eff76e68605c5e882351e118e783abfe7ccc
[ "Apache-2.0" ]
null
null
null
defmodule Steve do use Application alias Steve.{Config, Time} alias Steve.{Queue, Storage, Job} @doc false def start(_type, _args) do children = [ Storage ] options = [ strategy: :one_for_one, name: __MODULE__ ] Supervisor...
21.6875
61
0.554755
1daea8dc656190cdfd11f621da05ed707e1d8f9b
1,950
exs
Elixir
config/redirects.exs
BrooklinJazz/school_house
d819adc8975c70ac65271c6d376ab7dd5a9e3303
[ "Apache-2.0" ]
null
null
null
config/redirects.exs
BrooklinJazz/school_house
d819adc8975c70ac65271c6d376ab7dd5a9e3303
[ "Apache-2.0" ]
null
null
null
config/redirects.exs
BrooklinJazz/school_house
d819adc8975c70ac65271c6d376ab7dd5a9e3303
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :school_house, redirects: %{ ~r/^\/$/ => "/en", ~r/lessons\/basics\/iex-helpers/ => "lessons/basics/iex_helpers", ~r/lessons\/basics\/testing/ => "lessons/testing/basics", ~r/lessons\/advanced\/erlang/ => "lessons/intermediate/erlang", ~r/lessons\/advanced\/error-handling/ =...
52.702703
85
0.656923
1daec207ddf9279828424995baa33e8cf833f5b5
6,655
ex
Elixir
lib/mix/lib/mix/tasks/compile.protocols.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
2
2020-06-02T18:00:28.000Z
2021-12-10T03:21:42.000Z
lib/mix/lib/mix/tasks/compile.protocols.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/mix/lib/mix/tasks/compile.protocols.ex
spencerdcarlson/elixir
23d75ecdf58df80969e12f4420282238e19219a1
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
defmodule Mix.Tasks.Compile.Protocols do use Mix.Task.Compiler @manifest "compile.protocols" @manifest_vsn 1 @moduledoc ~S""" Consolidates all protocols in all paths. This task is automatically invoked unless the project disables the `:consolidate_protocols` option in their configuration. ## Conso...
28.440171
96
0.669572
1daee15a300133ab155f5189b86b7bab6a5065c4
15,355
ex
Elixir
lib/earmark_ast_dsl.ex
RobertDober/earmark_ast_dsl
d7393cb1981b34a05ede5666b6dbb7bbc05972ca
[ "Apache-2.0" ]
1
2021-10-30T09:12:14.000Z
2021-10-30T09:12:14.000Z
lib/earmark_ast_dsl.ex
RobertDober/earmark_ast_dsl
d7393cb1981b34a05ede5666b6dbb7bbc05972ca
[ "Apache-2.0" ]
4
2020-06-26T10:06:20.000Z
2021-12-29T07:04:23.000Z
lib/earmark_ast_dsl.ex
RobertDober/earmark_ast_dsl
d7393cb1981b34a05ede5666b6dbb7bbc05972ca
[ "Apache-2.0" ]
null
null
null
defmodule EarmarkAstDsl do import __MODULE__.Table, only: [make_table: 2] import __MODULE__.Atts, only: [as_list: 1, make_atts: 1, merge_atts: 2, only_atts: 1] use EarmarkAstDsl.Types @moduledoc """ [![CI](https://github.com/RobertDober/earmark_ast_dsl/actions/workflows/ci.yml/badge.svg)](https://github.co...
33.164147
180
0.53481
1daf0cff68bd5823cbb981efceb538e97d206b72
3,443
ex
Elixir
lib/concentrate/group_filter/remove_unneeded_times.ex
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
19
2018-01-22T18:39:20.000Z
2022-02-22T16:15:30.000Z
lib/concentrate/group_filter/remove_unneeded_times.ex
mbta/concentrate
bae6e05713ed079b7da53867a01dd007861fb656
[ "MIT" ]
216
2018-01-22T14:22:39.000Z
2022-03-31T10:30:31.000Z
lib/concentrate/group_filter/remove_unneeded_times.ex
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
5
2018-01-22T14:18:15.000Z
2021-04-26T18:34:19.000Z
defmodule Concentrate.GroupFilter.RemoveUnneededTimes do @moduledoc """ Removes arrival times from the first stop on a trip, and the departure time from the last stop on a trip. """ alias Concentrate.Filter.GTFS.PickupDropOff alias Concentrate.{StopTimeUpdate, TripDescriptor} @behaviour Concentrate.GroupFil...
27.99187
107
0.688644
1daf37803b1a110ff47a3ce13f873d6e9b68d2a7
906
exs
Elixir
test/yatzy/scoring/chance_test.exs
idabmat/yatzy
fb1cc1f13670a19f3541a3b1df15e9897ffcfae3
[ "MIT" ]
3
2020-04-23T14:38:39.000Z
2020-05-03T17:20:32.000Z
test/yatzy/scoring/chance_test.exs
idabmat/yatzy
fb1cc1f13670a19f3541a3b1df15e9897ffcfae3
[ "MIT" ]
null
null
null
test/yatzy/scoring/chance_test.exs
idabmat/yatzy
fb1cc1f13670a19f3541a3b1df15e9897ffcfae3
[ "MIT" ]
null
null
null
defmodule Yatzy.Scoring.ChanceTest do use ExUnit.Case, async: true alias Yatzy.Roll alias Yatzy.Scoring.Chance alias Yatzy.Scoring.Score test "with anything" do roll = %Roll{dice: [1, 2, 3, 5, 6]} scoring = %Chance{roll: roll} assert Score.execute(scoring) == 17 end test "with a pair" do ...
21.069767
39
0.610375
1daf3bd3ed815683085f60a1b30bc01381440630
2,257
ex
Elixir
lib/database/patch.ex
substantial/bors-ng
4f2a30f83f7024cc851c8bed8589f82d42fd5ae5
[ "Apache-2.0" ]
null
null
null
lib/database/patch.ex
substantial/bors-ng
4f2a30f83f7024cc851c8bed8589f82d42fd5ae5
[ "Apache-2.0" ]
null
null
null
lib/database/patch.ex
substantial/bors-ng
4f2a30f83f7024cc851c8bed8589f82d42fd5ae5
[ "Apache-2.0" ]
3
2020-11-15T16:17:58.000Z
2021-06-04T11:26:42.000Z
defmodule BorsNG.Database.Patch do @moduledoc """ Corresponds to a pull request in GitHub. A closed patch may not be r+'ed, nor can a patch associated with a completed batch be r+'ed again, though a patch may be merged and r+'ed at the same time. """ use BorsNG.Database.Model @type t :: %Patch{} s...
24.268817
77
0.623837
1daf69aab88f5d9b58fb463ee4da536a1fadcb9d
1,320
exs
Elixir
test/grapevine/characters_test.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
test/grapevine/characters_test.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
test/grapevine/characters_test.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Grapevine.CharactersTest do use Grapevine.DataCase alias Grapevine.Characters describe "registration" do test "starts registration" do user = create_user(%{username: "player", email: "user@example.com"}) game = create_game(create_user()) {:ok, character} = Characters.start_regis...
30
76
0.67803
1daf6f8c165dde7b162f395c96c2ca28dfac71c1
24,576
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/ssl_certificates.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/api/ssl_certificates.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/api/ssl_certificates.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...
60.53202
1,450
0.655314
1daf7b24ea331452cdf6228b0162beffa0b96ee1
4,238
ex
Elixir
lib/google_apis/change_analyzer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
lib/google_apis/change_analyzer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
lib/google_apis/change_analyzer.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
30.934307
82
0.63261
1daf892def9f4a7ace5b33085a280a74ec8a0e45
14,006
ex
Elixir
lib/ash/data_layer/data_layer.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/data_layer/data_layer.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/data_layer/data_layer.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
defmodule Ash.DataLayer do @moduledoc """ The interface for being an ash data layer. This is a large behaviour, and this capability is not complete, but the idea is to have a large amount of optional callbacks, and use the `can?/2` callback to ensure that the engine only ever tries to interact with the data ...
33.668269
92
0.609524
1daf9556af4663753763fcb6d84163d2aca65865
451
ex
Elixir
2022/w04/bank_kata_ex/lib/bank/core/actions/withdraw.ex
dc0d/workshop-notes
971f0166116f1c6157ff999059e0151a2db539b8
[ "MIT" ]
null
null
null
2022/w04/bank_kata_ex/lib/bank/core/actions/withdraw.ex
dc0d/workshop-notes
971f0166116f1c6157ff999059e0151a2db539b8
[ "MIT" ]
null
null
null
2022/w04/bank_kata_ex/lib/bank/core/actions/withdraw.ex
dc0d/workshop-notes
971f0166116f1c6157ff999059e0151a2db539b8
[ "MIT" ]
null
null
null
defmodule Bank.Core.Actions.Withdraw do @moduledoc false @behaviour Bank.Core.Actions.Boundaries.Action alias Bank.Core.Actions.Boundaries.WithdrawInput def execute(input: %WithdrawInput{} = input) do account_service().withdraw( account_id: input.account_id, amount: input.amount, time: ...
22.55
70
0.720621
1dafcc5d90f81f92be7b232d8b77e61b538f1312
2,712
ex
Elixir
lib/excommerce_web/controllers/admin/order_controller.ex
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-04-01T19:14:16.000Z
2019-04-01T19:14:16.000Z
lib/excommerce_web/controllers/admin/order_controller.ex
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
null
null
null
lib/excommerce_web/controllers/admin/order_controller.ex
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-03-24T01:50:48.000Z
2019-03-24T01:50:48.000Z
defmodule ExcommerceWeb.Admin.OrderController do use ExcommerceWeb, :admin_controller alias Excommerce.Orders.Order alias Excommerce.Accounts.User alias Excommerce.Catalog.Product #alias Excommerce.SearchOrder import Ecto.Query def index(conn, _params) do orders = Repo.all(from o in Order, order_b...
37.150685
158
0.64233
1dafddce2a866ad5976d0c8fa79e3752eaca558d
2,401
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_type_date.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_type_date.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_type_date.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...
45.301887
567
0.714286
1dafecba51af09a7464c4f81ea1ff157045b5ec2
878
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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.518519
74
0.757403
1db019551736f0f292bc63d4f1bd45d26d31baff
263
exs
Elixir
apps/re/priv/repo/migrations/20190610140649_update_is_release_on_listings.exs
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re/priv/repo/migrations/20190610140649_update_is_release_on_listings.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
null
null
null
apps/re/priv/repo/migrations/20190610140649_update_is_release_on_listings.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule Re.Repo.Migrations.UpdateIsReleaseOnListings do use Ecto.Migration require Ecto.Query def up do "listings" |> Ecto.Query.where([l], is_nil(l.is_release)) |> Re.Repo.update_all(set: [is_release: false]) end def down do end end
17.533333
57
0.695817
1db09a9b7582fa8254be21f39ed3ae6bf0e8377f
1,064
ex
Elixir
lib/re_web/controllers/fallback_controller.ex
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
1
2020-01-23T04:24:58.000Z
2020-01-23T04:24:58.000Z
lib/re_web/controllers/fallback_controller.ex
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
null
null
null
lib/re_web/controllers/fallback_controller.ex
diemesleno/backend
a55f9c846cc826b5269f3fd6ce19223f0c6a1682
[ "MIT" ]
1
2019-12-31T16:11:21.000Z
2019-12-31T16:11:21.000Z
defmodule ReWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use ReWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_status(:unproce...
23.644444
72
0.653195
1db0ceeefecb0f73a742af0d2b64b2dbf1559206
3,674
ex
Elixir
lib/zaryn_web.ex
Arvandazr/zaryn
748805297b399358d28fbcb7ced7588e40f90f03
[ "Apache-2.0" ]
1
2020-01-04T11:24:44.000Z
2020-01-04T11:24:44.000Z
lib/zaryn_web.ex
Arvandazr/zaryn
748805297b399358d28fbcb7ced7588e40f90f03
[ "Apache-2.0" ]
null
null
null
lib/zaryn_web.ex
Arvandazr/zaryn
748805297b399358d28fbcb7ced7588e40f90f03
[ "Apache-2.0" ]
null
null
null
defmodule ZarynWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use ZarynWeb, :controller use ZarynWeb, :view The definitions below will be executed for every view, controller, etc, s...
24.331126
92
0.626565
1db0e46a457de86ab2e24be3419eebad70cd3570
34,867
exs
Elixir
test/ecto/query_test.exs
anthonator/ecto
00df9cc724aedc753c8dd3206e9f6ff90f491a02
[ "Apache-2.0" ]
null
null
null
test/ecto/query_test.exs
anthonator/ecto
00df9cc724aedc753c8dd3206e9f6ff90f491a02
[ "Apache-2.0" ]
null
null
null
test/ecto/query_test.exs
anthonator/ecto
00df9cc724aedc753c8dd3206e9f6ff90f491a02
[ "Apache-2.0" ]
null
null
null
Code.require_file "../support/eval_helpers.exs", __DIR__ defmodule Ecto.QueryTest.Macros do defmacro macro_equal(column, value) do quote do unquote(column) == unquote(value) end end defmacro macro_map(key) do quote do %{"1" => unquote(key), "2" => unquote(key)} end end d...
35.908342
149
0.608426
1db0ebb3653443e44ff36d247969aa52a6b7a883
981
exs
Elixir
brains/smiley.brain.exs
doawoo/elixir_rpg
4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3
[ "MIT" ]
23
2021-10-24T00:21:13.000Z
2022-03-13T12:33:38.000Z
brains/smiley.brain.exs
doawoo/elixir_rpg
4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3
[ "MIT" ]
null
null
null
brains/smiley.brain.exs
doawoo/elixir_rpg
4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3
[ "MIT" ]
3
2021-11-04T02:42:25.000Z
2022-02-02T14:22:52.000Z
#! import_common #### # Smile balloon enemy brain script # Heals a random npc who does not have full health #### if enemies != [] do required_mp = 10 current_mp = Entity.get_component(entity, DemoStats).mp if Entity.get_component(entity, DemoStats).mp >= required_mp do casting_delay = 2.0 heal_target =...
31.645161
81
0.720693
1db12fd4db56a1ec7827d91bf77373da3c3713ad
877
exs
Elixir
mix.exs
sebastiandedeyne/hyper_ex
993550e070dc6cb8ad36fa804fda8f17056c05b2
[ "MIT" ]
2
2020-12-09T18:14:11.000Z
2022-02-08T23:05:43.000Z
mix.exs
sebastiandedeyne/hyper_ex
993550e070dc6cb8ad36fa804fda8f17056c05b2
[ "MIT" ]
1
2017-10-05T11:15:09.000Z
2017-10-05T11:15:09.000Z
mix.exs
sebastiandedeyne/hyper_ex
993550e070dc6cb8ad36fa804fda8f17056c05b2
[ "MIT" ]
1
2020-12-09T18:14:22.000Z
2020-12-09T18:14:22.000Z
defmodule HyperEx.Mixfile do use Mix.Project @version "0.1.0" def project do [ app: :hyper_ex, version: @version, elixir: "~> 1.5", start_permanent: Mix.env() == :prod, description: "A HyperScript clone written in Elixir.", package: package(), deps: deps(), do...
19.931818
74
0.541619
1db1494876327ca56e63a9d5dea6872a37cc7fea
889
exs
Elixir
mix.exs
doorgan/rfx
566b8623ce8957632329b4b0a142ea26a46f2301
[ "MIT" ]
null
null
null
mix.exs
doorgan/rfx
566b8623ce8957632329b4b0a142ea26a46f2301
[ "MIT" ]
null
null
null
mix.exs
doorgan/rfx
566b8623ce8957632329b4b0a142ea26a46f2301
[ "MIT" ]
null
null
null
defmodule Rfx.MixProject do use Mix.Project def project do [ app: :rfx, version: "0.0.1", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, source_url: "https://github.com/andyl/rfx", docs: docs(), deps: deps() ] end def application do [ extra_...
19.326087
68
0.526434
1db14f6fb9630423cc2f561b95bef3c98b7e4aaf
437
exs
Elixir
test/text_based_fps_web/views/error_view_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
1
2022-03-02T12:18:07.000Z
2022-03-02T12:18:07.000Z
test/text_based_fps_web/views/error_view_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
12
2021-05-31T21:41:09.000Z
2021-07-30T03:18:09.000Z
test/text_based_fps_web/views/error_view_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
null
null
null
defmodule TextBasedFPSWeb.ErrorViewTest do use TextBasedFPSWeb.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(TextBasedFPSWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500....
29.133333
97
0.745995
1db17733e48047c8c3ce00031d3b8ea53c2a64d9
536
exs
Elixir
test/priv/test_repo/migrations/20200519112501_add_ttl_to_cat.exs
circles-learning-labs/ecto-adapters-dynamodb
6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6
[ "Apache-2.0" ]
50
2017-06-21T00:15:15.000Z
2022-01-18T04:12:24.000Z
test/priv/test_repo/migrations/20200519112501_add_ttl_to_cat.exs
circles-learning-labs/ecto-adapters-dynamodb
6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6
[ "Apache-2.0" ]
91
2018-01-10T19:29:25.000Z
2022-02-24T16:12:26.000Z
test/priv/test_repo/migrations/20200519112501_add_ttl_to_cat.exs
circles-learning-labs/ecto-adapters-dynamodb
6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6
[ "Apache-2.0" ]
11
2017-11-28T06:22:58.000Z
2022-01-04T18:03:11.000Z
defmodule Ecto.Adapters.DynamoDB.TestRepo.Migrations.AddTTLToCat do @moduledoc """ Used when testing migrations. See the moduledoc for the previous migration for an explanation of this migration's purpose. """ use Ecto.Migration def up do alter table(:cat, options: [ ttl_attr...
18.482759
94
0.55597
1db18d1c106941fef351f2cba91b387abd162357
653
ex
Elixir
lib/console/groups/hotspots_groups.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
lib/console/groups/hotspots_groups.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
lib/console/groups/hotspots_groups.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule Console.Groups.HotspotGroup do use Ecto.Schema import Ecto.Changeset import Ecto.Query, warn: false @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "hotspots_groups" do belongs_to :group, Console.Groups.Group belongs_to :hotspot, Console.Hotspots.Hot...
28.391304
124
0.741194