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
38ad54826f8af1a6aebc6f91fce3629b384dfbcc
2,126
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/update_document_style_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/docs/lib/google_api/docs/v1/model/update_document_style_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/docs/lib/google_api/docs/v1/model/update_document_style_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.033898
128
0.73095
38ad779e9e87f8af558a930430f04b1c42b8ce74
1,849
ex
Elixir
test/support/mocks/tesla_api.ex
abhinavWOT/teslamate
8429c7520ae31bb2c440647ec028d2d296b7ce7d
[ "MIT" ]
null
null
null
test/support/mocks/tesla_api.ex
abhinavWOT/teslamate
8429c7520ae31bb2c440647ec028d2d296b7ce7d
[ "MIT" ]
null
null
null
test/support/mocks/tesla_api.ex
abhinavWOT/teslamate
8429c7520ae31bb2c440647ec028d2d296b7ce7d
[ "MIT" ]
null
null
null
defmodule TeslaApi.AuthMock do use GenServer defstruct [:pid] alias __MODULE__, as: State # API def start_link(opts) do GenServer.start_link(__MODULE__, opts, name: Keyword.fetch!(opts, :name)) end def refresh(name, auth), do: GenServer.call(name, {:refresh, auth}) def login(name, email, passwor...
24.012987
91
0.648999
38adae8d86fa26aebe9314c012af7a09deada99b
1,731
ex
Elixir
core/metrics/buffer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
core/metrics/buffer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
core/metrics/buffer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.Metrics.Buffer do @moduledoc """ A bin-like data structure to hold per-minute, per-epool metrics data. %{ {time_minute, epool_id} => %{ {metrics_type, strategy} => data_in_processing, ...
34.62
114
0.632582
38adbabe0b16d691eb8e2b4326f0677cd536d441
474
exs
Elixir
config/dev.exs
mekongit/evercam_models
7c36d52f2b47ffc89a3eaca65c2e353716fafacc
[ "MIT" ]
null
null
null
config/dev.exs
mekongit/evercam_models
7c36d52f2b47ffc89a3eaca65c2e353716fafacc
[ "MIT" ]
null
null
null
config/dev.exs
mekongit/evercam_models
7c36d52f2b47ffc89a3eaca65c2e353716fafacc
[ "MIT" ]
null
null
null
use Mix.Config config :evercam_models, Evercam.Repo, types: Evercam.PostgresTypes, username: "postgres", password: "postgres", database: System.get_env["db"] || "evercam_dev" config :evercam_models, Evercam.SnapshotRepo, username: "postgres", password: "postgres", database: System.get_env["db"] || "ever...
27.882353
49
0.727848
38ade0f0d0c8bdb2ebce8870ad8b56adae15b901
2,351
ex
Elixir
lib/flowex/sync/gen_server.ex
antonmi/flowex
7597e2ae1bf53033679ba65e0be13a50ad6f1e5e
[ "Apache-2.0" ]
422
2017-01-20T13:38:13.000Z
2022-02-08T14:07:11.000Z
lib/flowex/sync/gen_server.ex
antonmi/flowex
7597e2ae1bf53033679ba65e0be13a50ad6f1e5e
[ "Apache-2.0" ]
11
2017-01-26T15:40:36.000Z
2020-07-02T21:02:18.000Z
lib/flowex/sync/gen_server.ex
antonmi/flowex
7597e2ae1bf53033679ba65e0be13a50ad6f1e5e
[ "Apache-2.0" ]
20
2017-01-25T07:56:00.000Z
2021-11-29T16:19:34.000Z
defmodule Flowex.Sync.GenServer do use GenServer def start_link(state, opts \\ []) do GenServer.start_link(__MODULE__, state, opts) end def init(opts) do {:ok, opts} end def handle_call(ip, _from, {pipeline_module, opts}) do result = do_call(ip, {pipeline_module, opts}) {:reply, result, {...
27.988095
86
0.639302
38adef71d05148b4885e739c5b666772c7768f02
1,072
ex
Elixir
lib/drm/application.ex
mithereal/elixir_license_server
51a8383d4686c7cc7924763d85b9930e91138d2f
[ "MIT" ]
2
2020-01-26T23:26:40.000Z
2020-04-22T15:53:55.000Z
lib/drm/application.ex
mithereal/elixir_license_server
51a8383d4686c7cc7924763d85b9930e91138d2f
[ "MIT" ]
1
2019-05-27T02:13:05.000Z
2019-05-27T02:13:05.000Z
lib/drm/application.ex
mithereal/elixir_license_server
51a8383d4686c7cc7924763d85b9930e91138d2f
[ "MIT" ]
null
null
null
defmodule Drm.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @default_path Path.expand("../../priv/license", __DIR__) def start(_type, _args) do children = [ Drm.Registry, Drm.License.Supervisor...
20.226415
86
0.601679
38ae0e6d991eb135cb5e404eee7415a0c1f87bfc
816
ex
Elixir
lib/cash_flow_ex/bill/cashflows/cashflow_resolver.ex
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
lib/cash_flow_ex/bill/cashflows/cashflow_resolver.ex
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
lib/cash_flow_ex/bill/cashflows/cashflow_resolver.ex
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
defmodule CashFlowEx.Resolvers.CashflowResolver do alias CashFlowEx.Cashflows def all(_args, _info) do {:ok, Cashflows.list()} end def find_by_id(%{id: id}, _info) do case Cashflows.get_by_id(id) do nil -> {:error, "id #{id} not found"} bill_cashflow -> {:ok, bill_cashflow} end end ...
24.727273
65
0.61152
38ae15bf760fb25b31bcfba0778d3423a20dd81c
357
exs
Elixir
test/lib/play_with_stranger_agent_test.exs
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
54
2016-02-07T21:44:14.000Z
2022-01-06T04:10:59.000Z
test/lib/play_with_stranger_agent_test.exs
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
1
2016-02-13T15:52:55.000Z
2016-02-13T15:52:55.000Z
test/lib/play_with_stranger_agent_test.exs
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
4
2016-02-13T11:54:00.000Z
2022-01-06T04:19:26.000Z
defmodule Jan.PlayWithStrangerWaitingListTest do use ExUnit.Case, async: true alias Jan.PlayWithStrangerAgent test "gets room name" do first_room = PlayWithStrangerAgent.pop second_room = PlayWithStrangerAgent.pop third_room = PlayWithStrangerAgent.pop assert first_room == second_room asser...
23.8
48
0.773109
38ae1945c996964b9da53d03abbfda9edf70d134
473
exs
Elixir
elixir/test/homework_web/views/error_view_test.exs
TreywRoberts/web-homework
d19b17dd384341d9e6e7e3174372673584289b83
[ "MIT" ]
null
null
null
elixir/test/homework_web/views/error_view_test.exs
TreywRoberts/web-homework
d19b17dd384341d9e6e7e3174372673584289b83
[ "MIT" ]
null
null
null
elixir/test/homework_web/views/error_view_test.exs
TreywRoberts/web-homework
d19b17dd384341d9e6e7e3174372673584289b83
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.ErrorViewTest do use HomeworkWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(HomeworkWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end test "re...
29.5625
94
0.663848
38ae1b62718c377337aed0cc90479fe2c8b947a4
4,026
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/model/variant_call.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/genomics/lib/google_api/genomics/v1/model/variant_call.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/variant_call.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
63.904762
811
0.725782
38ae35dfbada52ee31ff0f40143f2b01f9454eed
793
exs
Elixir
template/$PROJECT_NAME$/test/test_helper.exs
paridin/gen_template_dino
fa584b063558b3b38b7584fb951a7822a818b28b
[ "Apache-2.0" ]
null
null
null
template/$PROJECT_NAME$/test/test_helper.exs
paridin/gen_template_dino
fa584b063558b3b38b7584fb951a7822a818b28b
[ "Apache-2.0" ]
null
null
null
template/$PROJECT_NAME$/test/test_helper.exs
paridin/gen_template_dino
fa584b063558b3b38b7584fb951a7822a818b28b
[ "Apache-2.0" ]
null
null
null
ExUnit.start() # {:ok, _} = Application.ensure_all_started(:ex_machina) case Application.ensure_all_started(:wallaby) do {:error, error} -> raise """ Remember you need the chromium driver https://chromedriver.chromium.org/downloads Download it via curl. be sure you have correct driver for your browser...
34.478261
161
0.72005
38ae61a40d858d219443f92c60ec60bd31031e17
732
ex
Elixir
lib/workbench_web/views/product_view.ex
fremantle-industries/back_office
e5aeda7abd72ccffabe5b21f26d48b5c573f9670
[ "MIT" ]
85
2020-05-03T22:23:18.000Z
2022-02-22T14:45:37.000Z
lib/workbench_web/views/product_view.ex
fremantle-industries/workbench
5d299c77f0271332651b4f0510265f676301a5f3
[ "MIT" ]
101
2020-04-26T03:07:51.000Z
2022-03-27T06:17:52.000Z
lib/workbench_web/views/product_view.ex
fremantle-capital/back_office
91474fad1bf27d913aecd6b36b898eff5d29a831
[ "MIT" ]
18
2020-04-26T10:57:55.000Z
2022-01-26T01:50:03.000Z
defmodule WorkbenchWeb.ProductView do use WorkbenchWeb, :view @attrs ~w( venue_symbol alias base quote venue_base venue_quote type status listing expiry collateral collateral_weight price_increment size_increment min_price min_size max_price m...
18.3
66
0.647541
38ae8c3dd98937a681246948d0502f82e2fd9494
2,194
exs
Elixir
test/staff_notes_web/views/user_view_test.exs
lee-dohm/staff-notes
07186e8407f1955876fa2dee2dbbfd0bbac91333
[ "MIT" ]
1
2020-01-26T18:08:40.000Z
2020-01-26T18:08:40.000Z
test/staff_notes_web/views/user_view_test.exs
lee-dohm/staff-notes
07186e8407f1955876fa2dee2dbbfd0bbac91333
[ "MIT" ]
36
2017-12-23T20:22:07.000Z
2018-05-10T09:16:59.000Z
test/staff_notes_web/views/user_view_test.exs
lee-dohm/staff-notes
07186e8407f1955876fa2dee2dbbfd0bbac91333
[ "MIT" ]
null
null
null
defmodule StaffNotesWeb.UserViewTest do use StaffNotesWeb.ConnCase use Phoenix.HTML alias StaffNotes.Accounts alias StaffNotes.Ecto.Slug alias StaffNotesWeb.UserView import Phoenix.View import StaffNotes.Support.Helpers def staff_badge(user, options \\ []) do user |> UserView.staff_badge(opti...
27.08642
95
0.663172
38aea35ee3ccb6b2f48a22f8156be3656e22a6d3
522
ex
Elixir
lib/permastate_operator.ex
sleipnir/permastate-operator
3937ac749bb5d65a30c690dffec88d6f55371946
[ "Apache-2.0" ]
2
2021-04-13T20:30:04.000Z
2021-04-21T22:26:07.000Z
lib/permastate_operator.ex
sleipnir/permastate-operator
3937ac749bb5d65a30c690dffec88d6f55371946
[ "Apache-2.0" ]
null
null
null
lib/permastate_operator.ex
sleipnir/permastate-operator
3937ac749bb5d65a30c690dffec88d6f55371946
[ "Apache-2.0" ]
null
null
null
defmodule PermastateOperator do @moduledoc """ Documentation for `PermastateOperator`. """ use Application @grpc_server %{ id: GRPC.Server.Supervisor, start: {GRPC.Server.Supervisor, :start_link, [{PermastateOperator.Server.GrpcEndpoint, 9080}]}, type: :supervisor } def start(_type, _a...
21.75
94
0.689655
38aeaa06c80ffcf46306fa5cd21f2899f895918d
997
ex
Elixir
web/views/error_helpers.ex
chasm/elm_base
1366d68ec827de3893fc61d9a5f268ee619b9d9a
[ "MIT" ]
4
2016-07-19T18:11:07.000Z
2016-08-02T00:36:39.000Z
web/views/error_helpers.ex
chasm/elm_base
1366d68ec827de3893fc61d9a5f268ee619b9d9a
[ "MIT" ]
1
2018-12-26T09:06:41.000Z
2018-12-26T09:06:41.000Z
web/views/error_helpers.ex
chasm/elm_base
1366d68ec827de3893fc61d9a5f268ee619b9d9a
[ "MIT" ]
null
null
null
defmodule ElmBase.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error), ...
27.694444
78
0.679037
38aeac8b340e40ca8f7f99cba6bf7efa43c7d802
1,969
exs
Elixir
test/unit/snapshot/import_test.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
test/unit/snapshot/import_test.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
test/unit/snapshot/import_test.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
defmodule ZiglerTest.Snapshot.ImportsTest do use ExUnit.Case, async: true alias Zigler.Code # tests header conditions generated from the module struct's c_includes and # imports fields. describe "Code.c_imports/1" do test "generates the default correctly" do assert [""" const e = @cImport({...
25.907895
96
0.559675
38aed76480e88419ab5869990b91eca403207869
1,577
ex
Elixir
elixir/identicon/lib/identicon.ex
nireno/Sandbox
da0812aeba99084990b800947d4eaa301a69dc72
[ "MIT" ]
null
null
null
elixir/identicon/lib/identicon.ex
nireno/Sandbox
da0812aeba99084990b800947d4eaa301a69dc72
[ "MIT" ]
null
null
null
elixir/identicon/lib/identicon.ex
nireno/Sandbox
da0812aeba99084990b800947d4eaa301a69dc72
[ "MIT" ]
null
null
null
defmodule Identicon do require Integer # @white = {255, 255, 255} def main(input) do hash_input(input) |> pick_color |> hex_layout |> color_layout |> pixel_map |> raw_image |> save(input) end def hash_input(input) do %Identicon.Image{ hex: :crypto.hash(:md5, input) |> :binary.bin_to_list } ...
23.537313
103
0.640457
38aedb0a0d19bd89a8c0f86cb388649a90aed0e6
60
ex
Elixir
Chapter08/vocial-demo-chapter-8/lib/vocial_web/views/shared_view.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
10
2018-05-13T14:53:05.000Z
2021-11-08T13:10:44.000Z
Chapter09/vocial-demo-chapter-9/lib/vocial_web/views/shared_view.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
null
null
null
Chapter09/vocial-demo-chapter-9/lib/vocial_web/views/shared_view.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
2
2019-04-23T10:54:33.000Z
2019-04-27T15:47:07.000Z
defmodule VocialWeb.SharedView do use VocialWeb, :view end
20
33
0.816667
38aedda3757c00e8ee54029f8d67a5d8cdf7b28c
2,286
ex
Elixir
lib/membrane_opus/parser/delimitation.ex
JasonTrue/membrane_opus_plugin
9577ab9941cfcd5737346b645eff93e1800fcc2d
[ "Apache-2.0" ]
null
null
null
lib/membrane_opus/parser/delimitation.ex
JasonTrue/membrane_opus_plugin
9577ab9941cfcd5737346b645eff93e1800fcc2d
[ "Apache-2.0" ]
null
null
null
lib/membrane_opus/parser/delimitation.ex
JasonTrue/membrane_opus_plugin
9577ab9941cfcd5737346b645eff93e1800fcc2d
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Opus.Parser.Delimitation do @moduledoc false # Helper module for delimiting or undelimiting packets @type processor_t :: __MODULE__.Undelimiter | __MODULE__.Delimiter | __MODULE__.Keeper @spec get_processor( delimitation :: Membrane.Parser.Opus.delimitation_t(), self_del...
26.894118
98
0.650481
38aeed6ea20c8c1c9d96aa1862e74b10cde972a4
2,307
ex
Elixir
lib/live_view_collection_web.ex
leandrocp/phoenix-liveview-collection
fc4547e7f4b94d96d42ce823b02591e54dc52507
[ "MIT" ]
32
2019-04-01T02:39:49.000Z
2020-12-04T02:57:01.000Z
lib/live_view_collection_web.ex
leandrocp/phoenix-liveview-collection
fc4547e7f4b94d96d42ce823b02591e54dc52507
[ "MIT" ]
13
2020-03-29T19:40:34.000Z
2021-12-06T22:18:02.000Z
lib/live_view_collection_web.ex
leandrocp/phoenix-liveview-collection
fc4547e7f4b94d96d42ce823b02591e54dc52507
[ "MIT" ]
4
2019-08-01T16:21:16.000Z
2020-04-01T17:39:10.000Z
defmodule LiveViewCollectionWeb 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 LiveViewCollectionWeb, :controller use LiveViewCollectionWeb, :view The definitions below will be execut...
23.540816
83
0.703078
38af2731dd6f4bb9d6a3e4c281f783873da7c8c0
2,318
exs
Elixir
test/controllers/post_controller_test.exs
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
test/controllers/post_controller_test.exs
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
test/controllers/post_controller_test.exs
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
defmodule Login.PostControllerTest do use Login.ConnCase alias Login.Post @valid_attrs %{body: "some content", title: "some content"} @invalid_attrs %{} test "lists all entries on index", %{conn: conn} do conn = get conn, post_path(conn, :index) assert html_response(conn, 200) =~ "Listing posts" e...
34.597015
98
0.675151
38af2b089dfbba952118c7e1264e59bf1c0ce179
2,753
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/system_parameters.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_user/lib/google_api/service_user/v1/model/system_parameters.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_user/lib/google_api/service_user/v1/model/system_parameters.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...
34.4125
130
0.691972
38af7319ad12501f9388ad2e441d888f9c11b944
3,400
exs
Elixir
implements/kindergarten-garden/garden_test.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
implements/kindergarten-garden/garden_test.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
1
2018-06-19T18:59:41.000Z
2018-06-19T18:59:41.000Z
implements/kindergarten-garden/garden_test.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
#if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("garden.exs", __DIR__) #end ExUnit.start() #ExUnit.configure(exclude: :pending, trace: true) defmodule GardenTest do use ExUnit.Case test "gets the garden for Alice with just her plants" do garden_info = Garden.info("RC\nGG") assert gard...
37.362637
83
0.670588
38afa58cb51556a002adcbd9605c724d21285ae3
724
ex
Elixir
code/otp-app/sequence_v2/lib/sequence/application.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
null
null
null
code/otp-app/sequence_v2/lib/sequence/application.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
programming-elixir-book/code/otp-app/sequence_v2/lib/sequence/application.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
#--- # Excerpted from "Programming Elixir ≥ 1.6", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http...
28.96
85
0.720994
38afb6b484dc27f0f54fe5f8f109575e0fd2d53d
3,545
ex
Elixir
lib/fake_server/server/route.ex
TakteS/fake_server
c982457977acb1aee491a5d5102e68eed84873f2
[ "Apache-2.0" ]
72
2016-09-20T21:45:33.000Z
2021-06-10T17:35:35.000Z
lib/fake_server/server/route.ex
TakteS/fake_server
c982457977acb1aee491a5d5102e68eed84873f2
[ "Apache-2.0" ]
44
2016-09-20T18:31:36.000Z
2020-05-31T17:31:00.000Z
lib/fake_server/server/route.ex
TakteS/fake_server
c982457977acb1aee491a5d5102e68eed84873f2
[ "Apache-2.0" ]
21
2016-09-22T08:27:07.000Z
2021-11-09T21:29:39.000Z
defmodule FakeServer.Route do @moduledoc false defstruct handler: Handler, path: "/", response: FakeServer.Response.default!() def create(opts \\ []) do with route <- struct(__MODULE__, opts), {:ok, route} <- ensure_path(route), {:ok, route} <- ensure_response(route...
30.042373
99
0.635543
38afc8bc13b1a5d1822cafeb5762e8520c490e9e
2,888
exs
Elixir
integration_test/snappydata/storage_test.exs
fire/snappydata_ecto
dfa432baed98f0e8029bb7da59aafbb4912c8ec3
[ "Apache-2.0" ]
null
null
null
integration_test/snappydata/storage_test.exs
fire/snappydata_ecto
dfa432baed98f0e8029bb7da59aafbb4912c8ec3
[ "Apache-2.0" ]
3
2017-10-24T23:20:11.000Z
2018-09-05T01:17:31.000Z
integration_test/snappydata/storage_test.exs
fire/snappydata_ecto
dfa432baed98f0e8029bb7da59aafbb4912c8ec3
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../deps/ecto/integration_test/support/file_helpers.exs", __DIR__ defmodule Ecto.Integration.StorageTest do use ExUnit.Case, async: true import Support.FileHelpers alias Ecto.Adapters.SnappyData alias Ecto.Integration.TestRepo def params do Ecto.Repo.Supervisor.parse_url( App...
28.313725
91
0.67313
38afe29d3084aa238e9e2badca1cdc30b6050f68
2,868
ex
Elixir
lib/licensir/scanner.ex
msarfati/licensir
aee88dd334f491118cd7b73164caae2310f56385
[ "MIT" ]
null
null
null
lib/licensir/scanner.ex
msarfati/licensir
aee88dd334f491118cd7b73164caae2310f56385
[ "MIT" ]
null
null
null
lib/licensir/scanner.ex
msarfati/licensir
aee88dd334f491118cd7b73164caae2310f56385
[ "MIT" ]
null
null
null
defmodule Licensir.Scanner do @moduledoc """ Scans the project's dependencies for their license information. """ alias Licensir.{License, FileAnalyzer, Guesser} @human_names %{ apache2: "Apache 2", bsd: "BSD", cc0: "CC0-1.0", gpl_v2: "GPLv2", gpl_v3: "GPLv3", isc: "ISC", lgpl: "LG...
23.317073
91
0.621688
38b02bc03dc68e4ee8c56321144e1a9cdc524baa
10,385
ex
Elixir
lib/faker/person/pt_br.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
540
2015-01-05T16:31:49.000Z
2019-09-25T00:40:27.000Z
lib/faker/person/pt_br.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
172
2015-01-06T03:55:17.000Z
2019-10-03T12:58:02.000Z
lib/faker/person/pt_br.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
163
2015-01-05T21:24:54.000Z
2019-10-03T07:59:42.000Z
defmodule Faker.Person.PtBr do import Faker, only: [sampler: 2] @moduledoc """ Functions for name data in Brazilian Portuguese """ @doc """ Returns a complete name (may include a suffix/prefix or both) ## Examples iex> Faker.Person.PtBr.name() "Sra. Kaique Mendes Neto" iex> Faker.Per...
16.051005
76
0.482523
38b031d7b898a450f233b30e6d3a7b15a37fdc1d
1,032
exs
Elixir
test/regressions/i096_code_class_parametrization_test.exs
RichMorin/earmark
e65fcf67345c84c23d237c732e5c174246662c68
[ "Apache-1.1" ]
null
null
null
test/regressions/i096_code_class_parametrization_test.exs
RichMorin/earmark
e65fcf67345c84c23d237c732e5c174246662c68
[ "Apache-1.1" ]
null
null
null
test/regressions/i096_code_class_parametrization_test.exs
RichMorin/earmark
e65fcf67345c84c23d237c732e5c174246662c68
[ "Apache-1.1" ]
null
null
null
defmodule Regressions.I096CodeClassParametrizationTest do use ExUnit.Case defp html(str, code_class_prefix \\ nil) do Earmark.as_html!( str, %Earmark.Options{code_class_prefix: code_class_prefix} ) end test "as you were" do expected = ~s(<pre><code class="elixir">def the_answer</code></pre>\n) ass...
33.290323
99
0.684109
38b032a11c0391904f50e9f2bd51c88c8443eea0
1,844
exs
Elixir
clients/content/mix.exs
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/content/mix.exs
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/content/mix.exs
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
27.522388
106
0.656182
38b0443fb5136cad15496f87cb060529afe379b0
95
ex
Elixir
test/support/users/users.ex
sbrink/ecto_context
eb67c10aac30fdd69028229b3da7f240d01a2c59
[ "MIT" ]
1
2019-03-03T20:23:29.000Z
2019-03-03T20:23:29.000Z
test/support/users/users.ex
sbrink/ecto_context
eb67c10aac30fdd69028229b3da7f240d01a2c59
[ "MIT" ]
30
2020-07-06T05:19:08.000Z
2021-07-28T04:49:23.000Z
test/support/users/users.ex
sbrink/ecto_context
eb67c10aac30fdd69028229b3da7f240d01a2c59
[ "MIT" ]
null
null
null
defmodule EctoContext.Test.Users do use EctoContext, module: EctoContext.Test.Users.User end
23.75
54
0.821053
38b058cd7895549bee92143be3270b5aa5de87b4
28
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/MatchedAndOperation.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_match_operation_parsing_test_case/MatchedAndOperation.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_match_operation_parsing_test_case/MatchedAndOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
one and two = three && four
14
27
0.642857
38b064249ef10811d7d11edc70de27a2dfdc1755
114
ex
Elixir
with-op1/w1.ex
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
with-op1/w1.ex
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
with-op1/w1.ex
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
# Getting the head ... # Or if it has at least an element. x = with [a|_] <- [], do: a IO.puts("Value is: #{x}")
19
35
0.552632
38b06aefa54b17b9e01934fe184e7da38f8329fb
2,026
ex
Elixir
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_image_payload.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_image_payload.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_image_payload.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...
33.213115
110
0.713722
38b07090b0ddd13db4e36d6878c9ba4710d669bb
206
exs
Elixir
priv/repo/migrations/20170218103051_create_site.exs
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
6
2017-05-12T04:20:09.000Z
2020-11-07T02:00:56.000Z
priv/repo/migrations/20170218103051_create_site.exs
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
null
null
null
priv/repo/migrations/20170218103051_create_site.exs
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
2
2020-05-18T08:06:22.000Z
2020-12-19T14:24:40.000Z
defmodule Uptom.Repo.Migrations.CreateSite do use Ecto.Migration def change do create table(:sites) do add :url, :string add :frequency, :integer timestamps() end end end
14.714286
45
0.65534
38b07aeb91f67c209de173d75743f268405f27d8
2,786
ex
Elixir
lib/x509/asn1.ex
mobileoverlord/x509
fdca52a0a4e1142316c05481c3125cf915cbd8aa
[ "BSD-3-Clause" ]
null
null
null
lib/x509/asn1.ex
mobileoverlord/x509
fdca52a0a4e1142316c05481c3125cf915cbd8aa
[ "BSD-3-Clause" ]
null
null
null
lib/x509/asn1.ex
mobileoverlord/x509
fdca52a0a4e1142316c05481c3125cf915cbd8aa
[ "BSD-3-Clause" ]
null
null
null
defmodule X509.ASN1 do @moduledoc false require Record alias X509.ASN1.OIDImport # Records to import from :public_key's HRL files, and their snake-case names @records [ # RSA keys rsa_private_key: :RSAPrivateKey, rsa_public_key: :RSAPublicKey, # EC keys ec_private_key: :ECPrivateKey, ...
31.303371
92
0.717875
38b081a4da49a9c6dc9806ac6894350812b0328b
609
exs
Elixir
cards/test/cards_test.exs
lucasmfir/elixir-course
490d19c9f199a72b4c552de6304b15b42049e14e
[ "MIT" ]
null
null
null
cards/test/cards_test.exs
lucasmfir/elixir-course
490d19c9f199a72b4c552de6304b15b42049e14e
[ "MIT" ]
null
null
null
cards/test/cards_test.exs
lucasmfir/elixir-course
490d19c9f199a72b4c552de6304b15b42049e14e
[ "MIT" ]
null
null
null
defmodule CardsTest do use ExUnit.Case doctest Cards test "create_deck/0 creates a deck with 20 cards" do deck_length = length(Cards.create_deck()) assert deck_length == 20 end test "shuffle/1 a deck randomizes it" do deck = Cards.create_deck() refute deck == Cards.shuffle(deck) end ...
23.423077
66
0.702791
38b0970f93b5c7aa1de4e8fc916fefc04ad61357
4,150
ex
Elixir
lib/ffmpex/options/video/libavformat.ex
VidAngel/ffmpex
1954fff15d9790c99cc37dfeaab59350867d45ff
[ "MIT" ]
null
null
null
lib/ffmpex/options/video/libavformat.ex
VidAngel/ffmpex
1954fff15d9790c99cc37dfeaab59350867d45ff
[ "MIT" ]
null
null
null
lib/ffmpex/options/video/libavformat.ex
VidAngel/ffmpex
1954fff15d9790c99cc37dfeaab59350867d45ff
[ "MIT" ]
null
null
null
defmodule FFmpex.Options.Video.Libavformat do @moduledoc """ https://ffmpeg.org/ffmpeg-all.html#Format-Options """ alias FFmpex.Option @known_options %{ avioflags: %Option{name: "-avioflags", require_arg: true, contexts: [:input, :output]}, probesize: %Option{name...
81.372549
123
0.624096
38b0aa7473fa2eea3d97a4d81dee88259b8e9cb2
198
ex
Elixir
lib/issues.ex
dannyh79/issues_cli
407d47ca1e25c217daedf18f395e5328187baae0
[ "MIT" ]
1
2021-09-16T03:32:39.000Z
2021-09-16T03:32:39.000Z
lib/issues.ex
dannyh79/issues_cli
407d47ca1e25c217daedf18f395e5328187baae0
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
lib/issues.ex
dannyh79/issues_cli
407d47ca1e25c217daedf18f395e5328187baae0
[ "MIT" ]
null
null
null
defmodule Issues do @moduledoc """ Documentation for `Issues`. """ @doc """ Hello world. ## Examples iex> Issues.hello() :world """ def hello do :world end end
10.421053
29
0.550505
38b0ece189b09284f3fee8cbf0d80c895217e040
956
ex
Elixir
lib/cgrates_web_jsonapi_web/controllers/tp_rating_plan_controller.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
2
2018-10-03T07:41:32.000Z
2021-03-21T11:27:27.000Z
lib/cgrates_web_jsonapi_web/controllers/tp_rating_plan_controller.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
1
2018-10-31T04:55:59.000Z
2018-10-31T04:55:59.000Z
lib/cgrates_web_jsonapi_web/controllers/tp_rating_plan_controller.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
5
2018-09-27T11:30:44.000Z
2021-01-16T08:28:58.000Z
defmodule CgratesWebJsonapiWeb.TpRatingPlanController do use CgratesWebJsonapiWeb, :controller use JaResource use CgratesWebJsonapi.TpSubresource use CgratesWebJsonapi.DefaultSorting use CgratesWebJsonapi.CsvExport use CgratesWebJsonapi.DeleteAll alias CgratesWebJsonapi.TariffPlans.TpRatingPlan plug J...
28.969697
89
0.705021
38b10772440b017fbcd2d68e1999da16b16cdf32
537
ex
Elixir
lib/gigalixir_ex_web/router.ex
pmaksimenko/gigalixir-ex
bbf73bbe1f6b89d925b43a3f9c57e2727c60c5fc
[ "MIT" ]
null
null
null
lib/gigalixir_ex_web/router.ex
pmaksimenko/gigalixir-ex
bbf73bbe1f6b89d925b43a3f9c57e2727c60c5fc
[ "MIT" ]
null
null
null
lib/gigalixir_ex_web/router.ex
pmaksimenko/gigalixir-ex
bbf73bbe1f6b89d925b43a3f9c57e2727c60c5fc
[ "MIT" ]
null
null
null
defmodule GigalixirExWeb.Router do use GigalixirExWeb, :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 "/", GigalixirExWeb ...
19.888889
57
0.689013
38b1180718823eb3f431e2887602b14ed560dc68
5,414
exs
Elixir
test/acceptances/resources/search_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
test/acceptances/resources/search_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
test/acceptances/resources/search_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
defmodule Acceptances.Resources.SearchTest do use ExUnit.Case alias Tirexs.{HTTP, Resources} setup do HTTP.delete("bear_test") && :ok end test "_explain/4" do { :ok, 201, _ } = HTTP.put("/bear_test/my_type/1?refresh=true", [user: "kimchy"]) { :ok, 200, r } = Resources.bump._explain("bear_test...
34.265823
125
0.574621
38b120b370378b61837f9ef8c3bad1efa3c52d7b
3,102
exs
Elixir
samples/save_and_load.exs
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
samples/save_and_load.exs
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
samples/save_and_load.exs
JamesGood626/benchee
de9e99462f6e5ad03001460391a8bd82dbbba773
[ "MIT" ]
null
null
null
list = Enum.to_list(1..10_000) map_fun = fn i -> [i, i * i] end Benchee.run( %{ "flat_map" => fn -> Enum.flat_map(list, map_fun) end, "map.flatten" => fn -> list |> Enum.map(map_fun) |> List.flatten() end }, time: 5, save: [path: "save.benchee", tag: "first-try"] ) IO.puts("---------------------------...
35.25
96
0.521599
38b1230637f8c9495b100961bb1e5e5e703bbece
2,284
ex
Elixir
broker/lib/broker_web/controllers/event_controller.ex
mikehelmick/broker-prototype
68082f753d3a7ea29399706504419e495287b35f
[ "Apache-2.0" ]
1
2019-02-04T21:09:16.000Z
2019-02-04T21:09:16.000Z
broker/lib/broker_web/controllers/event_controller.ex
mikehelmick/broker-prototype
68082f753d3a7ea29399706504419e495287b35f
[ "Apache-2.0" ]
null
null
null
broker/lib/broker_web/controllers/event_controller.ex
mikehelmick/broker-prototype
68082f753d3a7ea29399706504419e495287b35f
[ "Apache-2.0" ]
null
null
null
defmodule BrokerWeb.EventController do use BrokerWeb, :controller defp build_event(source, type, id, data) do CloudEvent.new() |> CloudEvent.type(type) |> CloudEvent.source(source) |> CloudEvent.id(id) |> CloudEvent.time(DateTime.utc_now() |> DateTime.to_iso8601()) |> CloudEvent.conten...
32.628571
91
0.639667
38b1424d53211a3a906f4f70846dee1a2028f860
430
ex
Elixir
lib/guardian_demo_web/views/error_view.ex
zachary-kuhn/guardian_demo
f973cb5a665db1608543a31d3d2340caa2d11228
[ "MIT" ]
2
2017-09-10T12:44:31.000Z
2017-11-05T14:15:55.000Z
lib/guardian_demo_web/views/error_view.ex
zachary-kuhn/guardian_demo
f973cb5a665db1608543a31d3d2340caa2d11228
[ "MIT" ]
null
null
null
lib/guardian_demo_web/views/error_view.ex
zachary-kuhn/guardian_demo
f973cb5a665db1608543a31d3d2340caa2d11228
[ "MIT" ]
null
null
null
defmodule GuardianDemoWeb.ErrorView do use GuardianDemoWeb, :view def render("404.json", _assigns) do %{errors: %{detail: "Page not found"}} end def render("500.json", _assigns) do %{errors: %{detail: "Internal server error"}} end # In case no render clause matches or no # template is found, le...
23.888889
49
0.693023
38b1691012ab3192d38a8630a9ebbf1470d95faa
2,023
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/set_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/set_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/cloud_kms/lib/google_api/cloud_kms/v1/model/set_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...
40.46
308
0.738013
38b1846794359ce4cc450d7f655416292de651a7
8,911
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__video_annotation_results.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__video_annotation_results.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__video_annotation_results.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
47.908602
245
0.745259
38b189a9e1d2e7460ca3e27a2e5b8a450d14e97c
2,265
ex
Elixir
clients/redis/lib/google_api/redis/v1beta1/model/google_cloud_redis_v1beta1_location_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/redis/lib/google_api/redis/v1beta1/model/google_cloud_redis_v1beta1_location_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/redis/lib/google_api/redis/v1beta1/model/google_cloud_redis_v1beta1_location_metadata.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...
41.181818
387
0.747461
38b198d577cba98394b6f0026ca1e4befcaf3157
1,402
ex
Elixir
chp06-07/dungeon_crawl/lib/dungeon_crawl/character.ex
ulissesalmeida/learn-fp-with-elixir-exercises
4286f6ecbca55c7487f4ad0f4dfbc323efa8e105
[ "MIT" ]
5
2019-03-21T00:01:38.000Z
2021-02-26T12:41:43.000Z
chp06-07/dungeon_crawl/lib/dungeon_crawl/character.ex
ulissesalmeida/learn-fp-with-elixir-exercises
4286f6ecbca55c7487f4ad0f4dfbc323efa8e105
[ "MIT" ]
null
null
null
chp06-07/dungeon_crawl/lib/dungeon_crawl/character.ex
ulissesalmeida/learn-fp-with-elixir-exercises
4286f6ecbca55c7487f4ad0f4dfbc323efa8e105
[ "MIT" ]
4
2019-07-12T22:00:20.000Z
2020-12-23T22:23:40.000Z
#--- # Excerpted from "Learn Functional Programming with Elixir", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpo...
30.478261
87
0.703994
38b1c7e0a24e099f7c5665a3eafe3b45a9f437a7
924
ex
Elixir
apps/api/test/support/channel_case.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
59
2021-09-16T19:29:39.000Z
2022-03-31T20:44:24.000Z
apps/api/test/support/channel_case.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
111
2021-08-15T09:56:37.000Z
2022-03-31T23:59:32.000Z
apps/api/test/support/channel_case.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
4
2021-12-13T09:43:01.000Z
2022-03-29T18:08:44.000Z
defmodule ApiWeb.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 with ...
24.315789
66
0.711039
38b20449936752fa5aa75ee2a57934074e2dbc5e
148
ex
Elixir
lib/console_web/plug/conn_interceptor.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
lib/console_web/plug/conn_interceptor.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
1
2021-04-03T09:29:31.000Z
2021-04-03T09:29:31.000Z
lib/console_web/plug/conn_interceptor.ex
isabella232/console-2
d4a4aca0e11c945c9698f46cb171d4645177038a
[ "Apache-2.0" ]
null
null
null
defmodule ConsoleWeb.Plug.ConnInterceptor do def init(default), do: default def call(conn, _default) do IO.inspect conn conn end end
16.444444
44
0.722973
38b218772cf51a7b09b5fda7e1d261a90bca7d7c
3,940
ex
Elixir
examples/file.ex
CANewbould/OOP-and-Euphoria
61c03a0640bc0406273e88c4ef538c915b5b8d8c
[ "MIT" ]
3
2020-08-07T13:37:00.000Z
2022-02-25T22:48:09.000Z
examples/file.ex
CANewbould/OOP-and-Euphoria
61c03a0640bc0406273e88c4ef538c915b5b8d8c
[ "MIT" ]
null
null
null
examples/file.ex
CANewbould/OOP-and-Euphoria
61c03a0640bc0406273e88c4ef538c915b5b8d8c
[ "MIT" ]
null
null
null
-------------------------------------------------------------------------------- -- Example: file.ex -------------------------------------------------------------------------------- -- Notes: -- -- Connected processes are placed together on a single line for clarity -----------------------------------------------...
34.867257
89
0.303553
38b24914370c8f0892dc703cd9060d2aa88307c0
1,865
ex
Elixir
farmbot_os/lib/farmbot_os/sys_calls/flash_firmware.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_os/lib/farmbot_os/sys_calls/flash_firmware.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_os/lib/farmbot_os/sys_calls/flash_firmware.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotOS.SysCalls.FlashFirmware do @moduledoc false alias FarmbotCore.{Asset, Asset.Private, FirmwareResetter} alias FarmbotFirmware alias FarmbotCore.FirmwareTTYDetector import FarmbotFirmware.PackageUtils, only: [find_hex_file: 1, package_to_string: 1] require FarmbotCore.Logger requir...
25.902778
79
0.619303
38b24a2a74f02fe7c65937f05f999dd2ed2c2e7a
978
ex
Elixir
clients/play_custom_app/lib/google_api/play_custom_app/v1/deserializer.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/play_custom_app/lib/google_api/play_custom_app/v1/deserializer.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/play_custom_app/lib/google_api/play_custom_app/v1/deserializer.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
37.615385
77
0.766871
38b265495018428d718459fdc0062e9f1b40d6e6
22,575
ex
Elixir
lib/sat_solver.ex
MrFlorius/ash
247abbb8333d252da5440a58ddf4f1b7f184342f
[ "MIT" ]
528
2019-12-08T01:51:54.000Z
2022-03-30T10:09:45.000Z
lib/sat_solver.ex
MrFlorius/ash
247abbb8333d252da5440a58ddf4f1b7f184342f
[ "MIT" ]
278
2019-12-04T15:25:06.000Z
2022-03-31T03:40:51.000Z
lib/sat_solver.ex
MrFlorius/ash
247abbb8333d252da5440a58ddf4f1b7f184342f
[ "MIT" ]
53
2020-08-17T22:08:09.000Z
2022-03-24T01:58:59.000Z
defmodule Ash.SatSolver do @moduledoc """ Tools for working with the satsolver that drives filter subset checking (for authorization) """ alias Ash.Filter alias Ash.Query.{BooleanExpression, Not, Ref} @dialyzer {:nowarn_function, overlap?: 2} defmacro b(statement) do value = Macro.prewalk( ...
27.665441
100
0.643765
38b2a872ead26d6d665cc4ce65bdb2f09e3b857b
4,403
exs
Elixir
test/jobs/new_release_job_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
1
2021-03-11T23:24:01.000Z
2021-03-11T23:24:01.000Z
test/jobs/new_release_job_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
null
null
null
test/jobs/new_release_job_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
2
2021-03-11T23:27:39.000Z
2022-03-06T10:09:40.000Z
defmodule Buildex.Common.Jobs.NewReleaseJob.Test do use ExUnit.Case, async: false alias Buildex.Common.Jobs.NewReleaseJob alias Buildex.Common.Repos.Repo alias Buildex.Common.Tags.Tag test "creates a single new release job" do repo = Repo.new("https://github.com/elixir-lang/elixir") tag = %Tag{ ...
33.356061
117
0.574835
38b2a9d2e76b025be928e43948b01b54f86514f4
329
ex
Elixir
lib/poker/poker.ex
97nomad/TgScrumPoker
e1d57bd65753e06b66957ec84e6a59636cdaac64
[ "MIT" ]
1
2019-08-20T17:44:07.000Z
2019-08-20T17:44:07.000Z
lib/poker/poker.ex
97nomad/TgScrumPoker
e1d57bd65753e06b66957ec84e6a59636cdaac64
[ "MIT" ]
null
null
null
lib/poker/poker.ex
97nomad/TgScrumPoker
e1d57bd65753e06b66957ec84e6a59636cdaac64
[ "MIT" ]
null
null
null
defmodule TgScrumPoker.Poker do @allowed_scores [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144] def is_score_allowed(score) do Enum.member?(@allowed_scores, score) end def round_up(score) do cond do is_score_allowed(score) -> score score > 144 -> 144 true -> round_up(score + 1) end ...
20.5625
61
0.629179
38b2b05a03045ec2c2e6f8e485b9b63b59e7f766
237
ex
Elixir
lib/phone/es/so.ex
mrjfernando/phone
3febb243fcd8bdb1c333601a637f449a94caef88
[ "Apache-2.0" ]
97
2016-04-05T13:08:41.000Z
2021-12-25T13:08:34.000Z
lib/phone/es/so.ex
mrjfernando/phone
3febb243fcd8bdb1c333601a637f449a94caef88
[ "Apache-2.0" ]
70
2016-06-14T00:56:00.000Z
2022-02-10T19:43:14.000Z
lib/phone/es/so.ex
mrjfernando/phone
3febb243fcd8bdb1c333601a637f449a94caef88
[ "Apache-2.0" ]
31
2016-04-21T22:26:12.000Z
2022-01-24T21:40:00.000Z
defmodule Phone.ES.SO do @moduledoc false use Helper.Area def regex, do: ~r/^(34)(975|875)(.{6})$/ def area_name, do: "Soria" def area_type, do: "province" def area_abbreviation, do: "SO" matcher(["34975", "34875"]) end
18.230769
42
0.64135
38b309f158da39c73f496717b284c2c4bc5ebbaa
545
ex
Elixir
lib/validation/exclude_characters.ex
adolfont/validation
6288f5a5745f645c90b6f6241e14f0088c218f5b
[ "MIT" ]
null
null
null
lib/validation/exclude_characters.ex
adolfont/validation
6288f5a5745f645c90b6f6241e14f0088c218f5b
[ "MIT" ]
null
null
null
lib/validation/exclude_characters.ex
adolfont/validation
6288f5a5745f645c90b6f6241e14f0088c218f5b
[ "MIT" ]
null
null
null
defmodule Validation.ExcludeCharacters do @moduledoc false @spec exclude(String.t(), String.t()) :: String.t() def exclude(input, excluded_characters) when is_binary(input) and is_binary(excluded_characters) do excluded_characters_list = String.codepoints(excluded_characters) {_, input} = En...
30.277778
90
0.726606
38b317a5d0af465885b2fc196f421f56d31b6bda
1,066
exs
Elixir
config/config.exs
anndream/phoenix-commerce
5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296
[ "MIT" ]
229
2016-09-21T09:24:46.000Z
2020-05-16T22:41:31.000Z
config/config.exs
sadiqmmm/ex-shop
5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296
[ "MIT" ]
3
2016-09-21T10:26:50.000Z
2016-10-19T07:25:12.000Z
config/config.exs
sadiqmmm/ex-shop
5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296
[ "MIT" ]
32
2016-09-22T05:19:05.000Z
2019-11-01T04:07:13.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :ap, ecto_repos: [Ap.Repo] # Configures...
27.333333
86
0.729831
38b383877c9060c78b88d786c9d8202b6cc0fd0d
1,665
exs
Elixir
test/validations/absence_test.exs
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
560
2015-01-12T00:07:27.000Z
2022-02-07T03:21:44.000Z
test/validations/absence_test.exs
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
55
2015-02-16T18:59:57.000Z
2021-12-23T12:34:25.000Z
test/validations/absence_test.exs
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
63
2015-02-12T03:49:50.000Z
2021-12-12T00:11:01.000Z
defmodule AbsenceTestRecord do defstruct name: nil, identifier: nil use Vex.Struct validates(:name, absence: true) end defmodule AbsenceTest do use ExUnit.Case test "keyword list, provided absence validation" do assert !Vex.valid?([name: "Foo"], name: [absence: true]) assert Vex.valid?([name: ""], ...
37.840909
72
0.634835
38b39bb6b32fa9899a8f9db00a20720702ab523a
409
exs
Elixir
test/server_test.exs
HanakJakub/elixir-grpc
faf0ba91ce09375a42f25d15ab37dccb63e27f87
[ "MIT" ]
null
null
null
test/server_test.exs
HanakJakub/elixir-grpc
faf0ba91ce09375a42f25d15ab37dccb63e27f87
[ "MIT" ]
null
null
null
test/server_test.exs
HanakJakub/elixir-grpc
faf0ba91ce09375a42f25d15ab37dccb63e27f87
[ "MIT" ]
null
null
null
defmodule ServerTest do use ExUnit.Case doctest Grpctest.Server test "get_user_data should return all users purchases" do p = Grpctest.Server.get_user_data("./task/data/", "1.json") assert length(p) == 5 end test "get_user_data should fail when file does not exist" do ass...
29.214286
83
0.667482
38b40a0d469e4575d81d3725235d354b47351c45
70,107
ex
Elixir
lib/ecto/query/planner.ex
yordis/ecto
6e7bc3f4d757b7c09ced10135e0c5c4ce1f4ea2f
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/planner.ex
yordis/ecto
6e7bc3f4d757b7c09ced10135e0c5c4ce1f4ea2f
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/planner.ex
yordis/ecto
6e7bc3f4d757b7c09ced10135e0c5c4ce1f4ea2f
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.Planner do # Normalizes a query and its parameters. @moduledoc false alias Ecto.Query.{BooleanExpr, DynamicExpr, FromExpr, JoinExpr, QueryExpr, SelectExpr} if map_size(%Ecto.Query{}) != 21 do raise "Ecto.Query match out of date in builder" end @parent_as __MODULE__ @aggs ~w(cou...
37.192042
147
0.630879
38b40a9139ccbdf4e77bfcfd94b883a5cf7d1367
1,061
ex
Elixir
lib/chat_api/users/user_settings.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api/users/user_settings.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api/users/user_settings.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Users.UserSettings do use Ecto.Schema import Ecto.Changeset alias ChatApi.Users.User @type t :: %__MODULE__{ email_alert_on_new_message: boolean(), email_alert_on_new_conversation: boolean(), expo_push_token: String.t() | nil, # Foreign keys ...
25.261905
69
0.660697
38b413a5c8afc0f09681ffc76aea99c421f4856a
747
exs
Elixir
mix.exs
bonfire-networks/pogo
29abe3d1b0fb6ef803b38a0fac590aaeee9ae1e6
[ "Apache-2.0" ]
null
null
null
mix.exs
bonfire-networks/pogo
29abe3d1b0fb6ef803b38a0fac590aaeee9ae1e6
[ "Apache-2.0" ]
null
null
null
mix.exs
bonfire-networks/pogo
29abe3d1b0fb6ef803b38a0fac590aaeee9ae1e6
[ "Apache-2.0" ]
null
null
null
defmodule Pogo.MixProject do use Mix.Project def project do [ app: :pogo, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, project: [ licenses: ["Apache 2"], links: %{ "Repository" => "https://github.com/commonspub/pogo", ...
18.675
63
0.476573
38b42c7a7126b5619857b06842807b865108bc34
4,074
exs
Elixir
test/elixir/test/view_update_seq_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
test/elixir/test/view_update_seq_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
test/elixir/test/view_update_seq_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
defmodule ViewUpdateSeqTest do use CouchTestCase @moduletag :view_update_seq @moduledoc """ This is a port of the view_update_seq.js test suite. """ @design_doc %{ _id: "_design/test", language: "javascript", autoupdate: false, views: %{ all_docs: %{ map: "function(doc) { em...
28.48951
103
0.589347
38b43307696a4a0287363eeaf8925631158344c0
56
ex
Elixir
jobsPortalService/lib/models/category.ex
andraspatka/jobportal-ms
006c8ca212f88566113c4b5c00dfe1d4e421c034
[ "MIT" ]
1
2021-05-25T18:24:27.000Z
2021-05-25T18:24:27.000Z
jobsPortalService/lib/models/category.ex
andraspatka/jobportal-ms
006c8ca212f88566113c4b5c00dfe1d4e421c034
[ "MIT" ]
1
2021-05-23T09:50:10.000Z
2021-05-23T09:50:10.000Z
jobsPortalService/lib/models/category.ex
andraspatka/jobportal-ms
006c8ca212f88566113c4b5c00dfe1d4e421c034
[ "MIT" ]
null
null
null
defmodule Models.Category do defstruct name: nil end
18.666667
28
0.785714
38b43ad49fb12c0d37b2b138106337ea314649b7
683
exs
Elixir
apps/ello_grandstand/config/config.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_grandstand/config/config.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_grandstand/config/config.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config use Mix.Config config :ello_grandstand, ecto_repos: [] config :ello_grandstand, service_url: System.get_env("GRANDSTAND_URL") || "http://localhost:3000", grandstand_use...
37.944444
89
0.775988
38b448e08e12f92314f39cca863acdbf955fe56f
2,717
exs
Elixir
test/events_tools_web/controllers/roles_controller_test.exs
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
2
2017-10-06T01:14:35.000Z
2017-11-18T16:44:44.000Z
test/events_tools_web/controllers/roles_controller_test.exs
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
6
2017-10-06T00:04:59.000Z
2017-10-06T00:09:27.000Z
test/events_tools_web/controllers/roles_controller_test.exs
apps-team/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
1
2017-10-06T01:17:35.000Z
2017-10-06T01:17:35.000Z
defmodule CommunityToolsWeb.RolesControllerTest do use CommunityToolsWeb.ConnCase alias CommunityTools.Accounts @create_attrs %{description: "some description", name: "some name"} @update_attrs %{description: "some updated description", name: "some updated name"} @invalid_attrs %{description: nil, name: nil...
30.52809
85
0.659551
38b458c3f09a46b4c436e61d099a77b5ead8f361
661
exs
Elixir
test/still/compiler/view_helpers/content_tag_test.exs
naps62/still
62652dc0fe9c883cd8d6501f694fae64bba94756
[ "0BSD" ]
2
2021-02-15T07:55:38.000Z
2021-03-05T18:04:53.000Z
test/still/compiler/view_helpers/content_tag_test.exs
mrmicahcooper/still
ba785b0b068d998d0343f73a1fd1795edbe9831c
[ "0BSD" ]
null
null
null
test/still/compiler/view_helpers/content_tag_test.exs
mrmicahcooper/still
ba785b0b068d998d0343f73a1fd1795edbe9831c
[ "0BSD" ]
1
2021-04-14T16:12:32.000Z
2021-04-14T16:12:32.000Z
defmodule Still.Compiler.ViewHelpers.ContentTagTest do use ExUnit.Case, async: true alias Still.Compiler.ViewHelpers.ContentTag describe "render/3" do test "returns the HTML for an image" do assert ContentTag.render("img", nil, [ {:src, "https://gabrielpoca.com/bg.jpg"}, ...
31.47619
87
0.586989
38b45d16264850b0a09ec30cb6ae0248d7e47270
247
ex
Elixir
lib/sutur.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
1
2021-11-16T02:18:31.000Z
2021-11-16T02:18:31.000Z
lib/sutur.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
lib/sutur.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
defmodule Sutur do @moduledoc """ Sutur keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.7
66
0.748988
38b4776d10f1747f02e2a825a546a431eb60985d
1,587
ex
Elixir
lib/live_sup_web/live/widgets/pager_duty/on_call_live.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup_web/live/widgets/pager_duty/on_call_live.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
lib/live_sup_web/live/widgets/pager_duty/on_call_live.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSupWeb.Live.Widgets.PagerDuty.OnCallLive do use LiveSupWeb.Live.Widgets.WidgetLive @impl true def render_widget(assigns) do ~H""" <.live_component module={SmartRenderComponent} id={@widget_data.id} let={widget_data} widget_data={@widget_data}> <!-- Metrics Goal --> <.live_compo...
39.675
155
0.606175
38b496cd131465c14074fad314ef6efd2d2dde07
583
ex
Elixir
lib/jeaux/schema.ex
szTheory/jeaux
ca5b80ed458383d5f1ac3b284dcd890a2cac6762
[ "MIT" ]
13
2016-08-12T12:37:50.000Z
2019-09-08T03:41:27.000Z
lib/jeaux/schema.ex
szTheory/jeaux
ca5b80ed458383d5f1ac3b284dcd890a2cac6762
[ "MIT" ]
1
2016-08-12T18:38:05.000Z
2016-08-12T18:38:05.000Z
lib/jeaux/schema.ex
szTheory/jeaux
ca5b80ed458383d5f1ac3b284dcd890a2cac6762
[ "MIT" ]
3
2016-08-12T18:35:25.000Z
2020-03-03T19:08:40.000Z
defmodule Jeaux.Schema do @moduledoc false def normalize_schema(dict) do Enum.reduce(dict, %{}, fn {k,v}, acc -> Map.merge(normalize_field({k, v}), acc) end) end defp normalize_field({k, v}) when is_map(v), do: %{k => normalize_schema(v)} defp normalize_field({k, v}) do required = String.e...
24.291667
78
0.571184
38b4d6012724bd0f66d895f57afde4669e790c84
8,859
ex
Elixir
lib/coherence/responders/html.ex
Thopiax/coherence
d49d4687b803151a8292abe2b0b8d19df0f662db
[ "MIT" ]
null
null
null
lib/coherence/responders/html.ex
Thopiax/coherence
d49d4687b803151a8292abe2b0b8d19df0f662db
[ "MIT" ]
null
null
null
lib/coherence/responders/html.ex
Thopiax/coherence
d49d4687b803151a8292abe2b0b8d19df0f662db
[ "MIT" ]
null
null
null
defmodule Responders.Html do @behaviour Coherence.Responders import Phoenix.Controller, only: [redirect: 2, put_flash: 3, render: 3] import Coherence.Controller import Plug.Conn, only: [put_status: 2, halt: 1] def session_create_error(conn, opts \\ %{}) def session_create_error(conn, %{new_bindings: new_...
30.030508
93
0.696806
38b5163388451e7a66fcb698a1600ad1263fc70c
238
ex
Elixir
lib/farmbot/celery_script/ast/arg/location.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
2
2018-08-01T23:07:52.000Z
2018-10-17T12:49:21.000Z
lib/farmbot/celery_script/ast/arg/location.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
lib/farmbot/celery_script/ast/arg/location.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
1
2017-07-22T21:51:14.000Z
2017-07-22T21:51:14.000Z
defmodule Farmbot.CeleryScript.AST.Arg.Location do @moduledoc false @behaviour Farmbot.CeleryScript.AST.Arg def decode(val), do: Farmbot.CeleryScript.AST.decode(val) def encode(ast), do: Farmbot.CeleryScript.AST.encode(ast) end
26.444444
59
0.777311
38b52762d958b0162b600c5c45f9f658b7c8862f
1,398
ex
Elixir
lib/slackerton/weather/weather.ex
matthewoden/slackerton
0604122884cf08087432f2e32d80eca42a878c37
[ "MIT" ]
1
2022-02-19T17:49:37.000Z
2022-02-19T17:49:37.000Z
lib/slackerton/weather/weather.ex
matthewoden/slackerton
0604122884cf08087432f2e32d80eca42a878c37
[ "MIT" ]
4
2018-07-14T16:30:17.000Z
2022-02-10T16:23:23.000Z
lib/slackerton/weather/weather.ex
matthewoden/slackerton
0604122884cf08087432f2e32d80eca42a878c37
[ "MIT" ]
null
null
null
defmodule Slackerton.Weather do alias Slackerton.Weather.Api alias Slackerton.{Cache,Settings} @alert_settings "weather_alert" def check_severe_weather() do latest = Cache.get({__MODULE__, :latest_alert}) || %{} latest_id = Map.get(latest, "id") case Api.severe_weather() do { :ok...
22.548387
86
0.618026
38b53cd87142dfdd3e290a5e4b190f6b6cbfba03
1,701
exs
Elixir
test/alertas_ec/resolvers/update_test.exs
mijailr/alertas.ec
f33f0c0236675e4749b327f13612a0f67aaf9a77
[ "MIT" ]
8
2020-03-15T19:07:58.000Z
2022-03-10T19:06:55.000Z
test/alertas_ec/resolvers/update_test.exs
mijailr/alertas.ec
f33f0c0236675e4749b327f13612a0f67aaf9a77
[ "MIT" ]
223
2020-04-14T10:43:50.000Z
2021-06-21T11:40:34.000Z
test/alertas_ec/resolvers/update_test.exs
mijailr/alertas.ec
f33f0c0236675e4749b327f13612a0f67aaf9a77
[ "MIT" ]
null
null
null
defmodule AlertasEc.Resolvers.UpdateTest do use ExUnit.Case, async: true use AlertasEc.RepoCase use Plug.Test import AlertasEc.Factory alias AlertasEc.Server import Ecto @opts Server.init([]) describe "Update resolver" do test "list/0 return a list of updates" do update = insert(:update) ...
21
72
0.529101
38b54794d6c2a72b504cb5f8b82f5e223bd3242c
1,111
ex
Elixir
test/support/channel_case.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
test/support/channel_case.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
test/support/channel_case.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApiWeb.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 w...
27.097561
69
0.727273
38b5532cd887e9ba72006be8404f499937236dd5
541
ex
Elixir
web/router.ex
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
web/router.ex
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
web/router.ex
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
defmodule PhoenixJsonApi.Router do use PhoenixJsonApi.Web, :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 "/", PhoenixJson...
20.037037
57
0.689464
38b561c3035aa4ea83a8e848810130de665f86dd
538
ex
Elixir
lib/rocketpay_web/controllers/welcome_controller.ex
gabrielkim13/nlw4-rocketpay
7d43ba56beb99bdf271be2af73d4b16df7b81317
[ "RSA-MD" ]
1
2021-12-15T17:32:15.000Z
2021-12-15T17:32:15.000Z
lib/rocketpay_web/controllers/welcome_controller.ex
gabrielkim13/nlw4-rocketpay
7d43ba56beb99bdf271be2af73d4b16df7b81317
[ "RSA-MD" ]
null
null
null
lib/rocketpay_web/controllers/welcome_controller.ex
gabrielkim13/nlw4-rocketpay
7d43ba56beb99bdf271be2af73d4b16df7b81317
[ "RSA-MD" ]
null
null
null
defmodule RocketpayWeb.WelcomeController do use RocketpayWeb, :controller alias Rocketpay.Numbers def index(conn, %{"filename" => filename}) do filename |> Numbers.sum_from_file() |> handle_response(conn) end defp handle_response({:ok, %{result: result}}, conn) do conn |> put_status(:ok...
22.416667
87
0.665428
38b584356c39f4e8c9ad485854857ec1f1403a48
5,277
ex
Elixir
lib/phoenix_toggl/web/channels/user_channel.ex
arashm/phoenix-toggl
3a7b8470c48efdbe84bd9dc29403aea851e90986
[ "MIT" ]
null
null
null
lib/phoenix_toggl/web/channels/user_channel.ex
arashm/phoenix-toggl
3a7b8470c48efdbe84bd9dc29403aea851e90986
[ "MIT" ]
null
null
null
lib/phoenix_toggl/web/channels/user_channel.ex
arashm/phoenix-toggl
3a7b8470c48efdbe84bd9dc29403aea851e90986
[ "MIT" ]
1
2020-02-14T20:31:58.000Z
2020-02-14T20:31:58.000Z
defmodule PhoenixToggl.Web.UserChannel do use PhoenixToggl.Web, :channel import Ecto.Repo alias PhoenixToggl.TimeBoundries.{TimerMonitor, TimeEntry, TimeEntryActions} alias PhoenixToggl.{ Repo, Reports.Reporter } def join("users:" <> user_id, _params, socket) do user_id = String.to_integer(user_id) ...
30.327586
118
0.667235
38b58ab97e66557266d8b082e4ebb73172444663
78
exs
Elixir
frameworks/phoenix_benchmark/test/test_helper.exs
serv/framework-benchmarks
a2a15d112fb56eb7aaa676874853a26c55243817
[ "MIT" ]
null
null
null
frameworks/phoenix_benchmark/test/test_helper.exs
serv/framework-benchmarks
a2a15d112fb56eb7aaa676874853a26c55243817
[ "MIT" ]
null
null
null
frameworks/phoenix_benchmark/test/test_helper.exs
serv/framework-benchmarks
a2a15d112fb56eb7aaa676874853a26c55243817
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(PhoenixBenchmark.Repo, :manual)
15.6
62
0.807692
38b597f28584e2e9c864618326d55ddfb27b0b28
1,553
ex
Elixir
clients/calendar/lib/google_api/calendar/v3/connection.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/connection.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/calendar/lib/google_api/calendar/v3/connection.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...
34.511111
103
0.723117
38b59a3cf14e78015a43657042fcc33727918b6c
1,095
exs
Elixir
config/dev.exs
KazuCocoa/react_phoenix
7cd2fe0bdcddf8a0fdd876517232893783bf21e5
[ "MIT" ]
null
null
null
config/dev.exs
KazuCocoa/react_phoenix
7cd2fe0bdcddf8a0fdd876517232893783bf21e5
[ "MIT" ]
null
null
null
config/dev.exs
KazuCocoa/react_phoenix
7cd2fe0bdcddf8a0fdd876517232893783bf21e5
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :react_phonenix, ReactPhoenix.Endpoint, http: ...
30.416667
63
0.719635
38b5ab6dec33268487b1699a764c5d2d5896ca78
2,934
exs
Elixir
test/lib/deserialization/xs2a/periodic_payment_inititation_request_test.exs
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
3
2018-11-17T18:12:15.000Z
2020-12-09T06:26:59.000Z
test/lib/deserialization/xs2a/periodic_payment_inititation_request_test.exs
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
2
2018-12-12T14:14:56.000Z
2019-07-01T14:13:57.000Z
test/lib/deserialization/xs2a/periodic_payment_inititation_request_test.exs
ibanity/ibanity-elixir
c2e1feedbfc2376678c9db78c6365a82a654b00b
[ "MIT" ]
null
null
null
defmodule Ibanity.Xs2a.PeriodicPaymentInitiationRequest.DeserializationTest do use ExUnit.Case import Ibanity.JsonDeserializer alias Ibanity.Xs2a.PeriodicPaymentInitiationRequest test "deserializes a payment initiation request" do data = %{ "type" => "periodicPaymentInitiationRequest", "relatio...
36.675
99
0.628834
38b5b24c9fe130f99a037a58bc968cd430dd7a9f
297
exs
Elixir
test/unit/assets/syntax_error/resource_cleanup_return_mismatch.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
test/unit/assets/syntax_error/resource_cleanup_return_mismatch.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
test/unit/assets/syntax_error/resource_cleanup_return_mismatch.exs
elbow-jason/zigler
3de4d6fe4def265b689bd21d3e0abad551bd2d50
[ "MIT" ]
null
null
null
defmodule ZiglerTest.DryRun.ResourceReturnMismatch do use Zigler, dry_run: true ~Z""" /// nif: foo/0 fn foo() i32 { return 47; } /// resource: bar definition const bar = i64; /// resource: bar cleanup fn bar_cleanup(env: beam.env, res: *bar) i64 { return 47; } """ end
16.5
53
0.626263
38b5dcae0c30aa0f5603e94a69971fda27866f5b
8,664
exs
Elixir
test/lib/ex_aws/s3_test.exs
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
test/lib/ex_aws/s3_test.exs
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
test/lib/ex_aws/s3_test.exs
Frameio/ex_aws
3b335b6ed7932b5cf991323d26cf5497e1e6c122
[ "Unlicense", "MIT" ]
null
null
null
defmodule ExAws.S3Test do use ExUnit.Case, async: true alias ExAws.{S3, Operation} test "#get_object" do expected = %Operation.S3{bucket: "bucket", headers: %{"x-amz-server-side-encryption-customer-algorithm" => "md5"}, params: %{"response-content-type" => "application/json"}, path: "object.json", http_metho...
41.257143
216
0.63608
38b60345193e743449388bed6f2bb8e059d0785d
512
ex
Elixir
src/Data/Semigroup.ex
sriduth/purescript-prelude
018250e052ec11dc6faae61ea41c1a11fdf64e0e
[ "MIT" ]
null
null
null
src/Data/Semigroup.ex
sriduth/purescript-prelude
018250e052ec11dc6faae61ea41c1a11fdf64e0e
[ "MIT" ]
null
null
null
src/Data/Semigroup.ex
sriduth/purescript-prelude
018250e052ec11dc6faae61ea41c1a11fdf64e0e
[ "MIT" ]
null
null
null
defmodule Semigroup.Foreign do def concatString do fn(s1) -> fn(s2) -> s1 <> s2 end end end def concatArray do fn(xs) -> fn(ys) -> xs ++ ys end end end end # "use strict"; # exports.concatString = function (s1) { # return function (s2) { # return s1 + s2; # ...
14.628571
40
0.521484
38b62a7faa71ed7802b7adc2b30854b9656de254
523
ex
Elixir
lib/crawly/fetchers/fetcher.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
486
2019-05-30T09:19:59.000Z
2021-04-28T07:51:31.000Z
lib/crawly/fetchers/fetcher.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
131
2019-06-29T12:43:24.000Z
2021-04-24T19:40:07.000Z
lib/crawly/fetchers/fetcher.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
52
2019-06-24T10:13:41.000Z
2021-03-28T07:36:42.000Z
defmodule Crawly.Fetchers.Fetcher do @moduledoc """ A behavior module for defining Crawly Fetchers A fetcher is expected to implement a fetch callback which should take Crawly.Request, HTTP client options and return Crawly.Response. """ @type t :: {module(), list()} @callback fetch(request, options) ::...
30.764706
73
0.630975
38b62b1f7b362f61860dbb596e51381f1b2e5d3a
3,650
ex
Elixir
lib/gen_state_machine/translator.ex
electricshaman/gen_state_machine
8c6f838f4bf8833c5d1e43ca6e2311fce1f4eacb
[ "Apache-2.0" ]
null
null
null
lib/gen_state_machine/translator.ex
electricshaman/gen_state_machine
8c6f838f4bf8833c5d1e43ca6e2311fce1f4eacb
[ "Apache-2.0" ]
null
null
null
lib/gen_state_machine/translator.ex
electricshaman/gen_state_machine
8c6f838f4bf8833c5d1e43ca6e2311fce1f4eacb
[ "Apache-2.0" ]
null
null
null
defmodule GenStateMachine.Translator do @moduledoc false @doc false # OTP21 and after def translate(min_level, :error, :report, {:logger, %{label: label} = report}) do case label do {:gen_statem, :terminate} -> do_translate(min_level, report) _ -> :none end end # OTP20...
27.651515
92
0.610959
38b6322ae5659c7dc2773ea4b3358c146b6c73ef
80
exs
Elixir
test/views/page_view_test.exs
lewapkon/brouteolli
5b9767e7746f96747134523049733bc2f12e6391
[ "MIT" ]
1
2018-09-27T11:49:33.000Z
2018-09-27T11:49:33.000Z
test/views/page_view_test.exs
lewapkon/brouteolli
5b9767e7746f96747134523049733bc2f12e6391
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
lewapkon/brouteolli
5b9767e7746f96747134523049733bc2f12e6391
[ "MIT" ]
null
null
null
defmodule Brouteolli.PageViewTest do use Brouteolli.ConnCase, async: true end
20
38
0.825
38b6333d3f4599035b860c42ac82c2c72d4f0e70
1,084
exs
Elixir
test/elixir_jobs_web/controllers/emails/emails_test.exs
odarriba/elixir_jobs
514c0fd849f1579a80a98108d7ae58f76f3a330a
[ "MIT" ]
86
2017-09-22T08:08:23.000Z
2021-05-28T19:51:17.000Z
test/elixir_jobs_web/controllers/emails/emails_test.exs
odarriba/elixir_jobs
514c0fd849f1579a80a98108d7ae58f76f3a330a
[ "MIT" ]
24
2017-09-23T08:23:36.000Z
2021-09-20T14:36:06.000Z
test/elixir_jobs_web/controllers/emails/emails_test.exs
odarriba/elixir_jobs
514c0fd849f1579a80a98108d7ae58f76f3a330a
[ "MIT" ]
21
2017-09-23T18:50:23.000Z
2019-10-15T19:41:44.000Z
defmodule ElixirJobsWeb.EmailsTest do use ElixirJobsWeb.ConnCase use Bamboo.Test, shared: true alias ElixirJobs.Core import Ecto.Query, only: [from: 2] describe "offers" do test "emails get sent to admins on offer creation", %{conn: conn} do insert(:admin) insert(:admin) post conn, o...
27.1
87
0.658672
38b653291203b61dae37eb3cfda462e0eea45947
476
ex
Elixir
lib/honeydew/please/commands/make_list.ex
elixir-cqrs/honeydew
888f86c829187eaca28ef1af69a40a337e46630a
[ "MIT" ]
null
null
null
lib/honeydew/please/commands/make_list.ex
elixir-cqrs/honeydew
888f86c829187eaca28ef1af69a40a337e46630a
[ "MIT" ]
null
null
null
lib/honeydew/please/commands/make_list.ex
elixir-cqrs/honeydew
888f86c829187eaca28ef1af69a40a337e46630a
[ "MIT" ]
null
null
null
defmodule Honeydew.Please.Commands.MakeList do @moduledoc """ Command to make a new list. """ use Blunt.Command use Blunt.Command.EventDerivation field :notes, :string field :name, :string internal_field :list_id, :string @impl true def after_validate(command) do %{command | list_id: Honeyde...
19.04
49
0.697479
38b66f68e2231c8126604caf963f298ccf5fa425
8,056
exs
Elixir
apps/ewallet/test/ewallet/fetchers/balance_fetcher_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/test/ewallet/fetchers/balance_fetcher_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/test/ewallet/fetchers/balance_fetcher_test.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
28.978417
82
0.605884
38b6859849a87321cd08e7c5e05538d648b28878
1,394
ex
Elixir
clients/firebase_rules/lib/google_api/firebase_rules/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.722222
77
0.742468
38b69e9f0b5d3b42f54c417c3fe1b23c8f8eeb75
6,375
exs
Elixir
config/.credo.exs
NateBarnes/high_roller
40eea056e277b053869d04e6663966eda911f0cf
[ "MIT" ]
null
null
null
config/.credo.exs
NateBarnes/high_roller
40eea056e277b053869d04e6663966eda911f0cf
[ "MIT" ]
null
null
null
config/.credo.exs
NateBarnes/high_roller
40eea056e277b053869d04e6663966eda911f0cf
[ "MIT" ]
null
null
null
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
38.871951
93
0.613961
38b6ad3417adba0c02b0653df8b183a26bd8490d
527
ex
Elixir
apps/idp_web/src/idp_web/views/error_view.ex
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp_web/src/idp_web/views/error_view.ex
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
apps/idp_web/src/idp_web/views/error_view.ex
lbrty/idp-backend
81d5f10ef6177a1e678b994331c5a09abbdca8d6
[ "Apache-2.0" ]
null
null
null
defmodule IdpWeb.ErrorView do use IdpWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.json", _assigns) do # %{errors: %{detail: "Internal Server Error"}} # end # By default, Phoenix returns the status message from # the...
31
83
0.71537
38b6ae2828971f5ce5aa3b4bafbefbb94de98b1e
3,767
ex
Elixir
lib/membrane_ice_plugin/sink.ex
geometerio/membrane_ice_plugin
b67812b0841505a76a0527424235ecce474a4cd9
[ "Apache-2.0" ]
null
null
null
lib/membrane_ice_plugin/sink.ex
geometerio/membrane_ice_plugin
b67812b0841505a76a0527424235ecce474a4cd9
[ "Apache-2.0" ]
null
null
null
lib/membrane_ice_plugin/sink.ex
geometerio/membrane_ice_plugin
b67812b0841505a76a0527424235ecce474a4cd9
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.ICE.Sink do @moduledoc """ Element that sends buffers (over UDP or TCP) received on different pads to relevant receivers. """ use Membrane.Sink alias Membrane.ICE.Handshake alias Membrane.Funnel require Membrane.Logger def_options ice: [ type: :pid, ...
28.755725
96
0.641094
38b6b869de6a8d63afa39c10a040ff88650723b5
621
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_frontend_ip_configuration.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_frontend_ip_configuration.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_frontend_ip_configuration.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Network.Model.ApplicationGatewayFrontendIpConfiguration do @moduledoc """ Frontend IP configuration of an applicati...
23.884615
114
0.743961
38b71bf80722b790bed394b67220d871769bfa53
1,708
exs
Elixir
test/interval_test.exs
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
442
2015-05-18T09:58:39.000Z
2022-02-15T19:56:41.000Z
test/interval_test.exs
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
50
2015-06-04T19:10:56.000Z
2019-11-18T13:31:16.000Z
test/interval_test.exs
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
47
2015-05-23T20:45:20.000Z
2021-12-23T08:32:58.000Z
defmodule Calendar.DateTime.IntervalTest do use ExUnit.Case, async: true doctest Calendar.DateTime.Interval setup do interval = %Calendar.DateTime.Interval{ from: Calendar.DateTime.from_erl!({{2015, 1, 1}, {12, 0, 0}}, "Europe/Brussels", {0, 0}), to: Calendar.DateTime.from_erl!({{2015, 1, 2}, {1...
43.794872
110
0.668033