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
737eab0734ad01b42abeea59f43122c249cfcb7b
1,373
ex
Elixir
lib/banchan_web/plugs/ensure_role_plug.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan_web/plugs/ensure_role_plug.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan_web/plugs/ensure_role_plug.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule BanchanWeb.EnsureRolePlug do @moduledoc """ This plug ensures that a user has a particular role before accessing a given route. ## Example Let's suppose we have three roles: :admin, :manager and :user. If you want a user to have at least manager role, so admins and managers are authorised to access...
26.921569
113
0.689731
737eaf7c132b85c557613546db9e4f2ae9150e8d
15,108
ex
Elixir
lib/helios/event_journal/adapters/memory.ex
exponentially/helios
3a7b66bd95a8c53c500272eb8a269a73e6de6d8a
[ "Apache-2.0" ]
12
2018-09-20T21:33:07.000Z
2020-01-14T19:31:11.000Z
lib/helios/event_journal/adapters/memory.ex
exponentially/helios
3a7b66bd95a8c53c500272eb8a269a73e6de6d8a
[ "Apache-2.0" ]
null
null
null
lib/helios/event_journal/adapters/memory.ex
exponentially/helios
3a7b66bd95a8c53c500272eb8a269a73e6de6d8a
[ "Apache-2.0" ]
null
null
null
defmodule Helios.EventJournal.Adapter.Memory do @moduledoc """ Simple memory event journal adapter. Events are kept in ETS table """ use GenServer require Logger # alias Helios.EventJournal.Messages.EventData alias Helios.EventJournal.Messages.ReadStreamEventsResponse alias Helios.EventJournal.Messa...
28.722433
120
0.567977
737ed516a4e83437740758f4baae5731f74f7232
2,122
ex
Elixir
lib/wechat_pay/client.ex
linjunpop/wechat_pay
8db9a5882e87ed0ac899b806f556540423028a1c
[ "MIT" ]
55
2016-10-19T09:01:39.000Z
2019-03-23T12:40:21.000Z
lib/wechat_pay/client.ex
linjunpop/wechat_pay
8db9a5882e87ed0ac899b806f556540423028a1c
[ "MIT" ]
11
2017-05-19T05:08:53.000Z
2019-03-22T11:54:30.000Z
lib/wechat_pay/client.ex
linjunpop/wechat_pay
8db9a5882e87ed0ac899b806f556540423028a1c
[ "MIT" ]
9
2017-01-05T04:17:21.000Z
2019-02-18T03:52:05.000Z
defmodule WechatPay.Client do @moduledoc """ API client. """ alias WechatPay.Client @enforce_keys [:app_id, :mch_id, :api_key] defstruct api_host: "https://api.mch.weixin.qq.com/", app_id: nil, mch_id: nil, api_key: nil, sign_type: :md5, ssl: nil...
23.577778
106
0.549482
737ed9e03a302429eb94ef70ebec94d89cb82d06
10,167
ex
Elixir
deps/plug_cowboy/lib/plug/cowboy.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/plug_cowboy/lib/plug/cowboy.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/plug_cowboy/lib/plug/cowboy.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Plug.Cowboy do @moduledoc """ Adapter interface to the Cowboy2 webserver. ## Options * `:ip` - the ip to bind the server to. Must be either a tuple in the format `{a, b, c, d}` with each value in `0..255` for IPv4, or a tuple in the format `{a, b, c, d, e, f, g, h}` with each v...
32.482428
115
0.643749
737edcf5aae122ab2cd41d09310dc132306f7a10
1,118
ex
Elixir
lib/phoenix_react_starter/application.ex
devin-henslee/phoenix-react-starter
ec1a3b971b4e4c8db960a66fddb67da02811e4ab
[ "MIT" ]
null
null
null
lib/phoenix_react_starter/application.ex
devin-henslee/phoenix-react-starter
ec1a3b971b4e4c8db960a66fddb67da02811e4ab
[ "MIT" ]
null
null
null
lib/phoenix_react_starter/application.ex
devin-henslee/phoenix-react-starter
ec1a3b971b4e4c8db960a66fddb67da02811e4ab
[ "MIT" ]
null
null
null
defmodule PhoenixReactStarter.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository PhoenixReactStarter.Repo, # Start the Telemetry ...
31.942857
77
0.730769
737f23160df9908fe8556ec2d3e0cef2cf1930e8
2,006
ex
Elixir
clients/content/lib/google_api/content/v21/model/shopping_ads_program_status.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/shopping_ads_program_status.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/shopping_ads_program_status.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.472727
256
0.743769
737f480e74b4acceb04a09340b26eb1dcbf47112
1,548
ex
Elixir
lib/hound.ex
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
lib/hound.ex
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
lib/hound.ex
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
defmodule Hound do use Application # See http://elixir-lang.org/docs/stable/Application.Behaviour.html # for more information on OTP Applications @doc false def start(_type, _args) do Hound.Supervisor.start_link end @doc false def driver_info do Hound.ConnectionServer.driver_info end @do...
20.103896
88
0.660853
737f485c28a605a5273fc5038cd200bbddec04dd
1,185
ex
Elixir
lib/oli/delivery/student/summary.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/delivery/student/summary.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/delivery/student/summary.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Delivery.Student.Summary do alias Oli.Delivery.Sections alias Oli.Delivery.Attempts.Core, as: Attempts alias Oli.Publishing.DeliveryResolver alias Oli.Repo defstruct [:title, :description, :access_map, :hierarchy, :updates] def get_summary(section_slug, user) do with {:ok, section} <- ...
32.027027
82
0.650633
737f51c9a899c89a101a4525ff035646056a8c09
848
exs
Elixir
wabanex/test/wabanex_web/schema_test.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/test/wabanex_web/schema_test.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/test/wabanex_web/schema_test.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
defmodule WabanexWeb.SchemaTest do use WabanexWeb.ConnCase, async: true alias Wabanex.User alias Wabanex.Users.Create describe "users queries" do test "when a valid id is given, returns the user", %{conn: conn} do params = %{name: "John Doe", email: "john@doe.us", password: "123456"} {:ok, %U...
22.315789
76
0.454009
737f707b32d822dc9b573107c0ac0414393b49d6
1,207
ex
Elixir
lib/okr_app/objectives/store/cycle_store.ex
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
12
2019-05-10T21:48:06.000Z
2021-11-07T14:04:30.000Z
lib/okr_app/objectives/store/cycle_store.ex
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
2
2019-05-14T19:07:10.000Z
2019-05-20T21:06:27.000Z
lib/okr_app/objectives/store/cycle_store.ex
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
3
2019-05-19T18:24:20.000Z
2019-10-31T20:29:12.000Z
defmodule OkrApp.Objectives.CycleStore do import Ecto.Query alias OkrApp.Repo alias OkrApp.Objectives.Cycle def all(params = %{}, opts \\ []) do params = Enum.map(params, fn {k, v} -> {to_string(k), v} end) |> Enum.into(%{}) clean_params = Map.drop(params, ["active", "present_or_future"]) OkrApp....
30.948718
125
0.655344
737f8352aa414ee9574ca835c054660c6186e7b1
14,655
exs
Elixir
components/notifications-service/server/test/formatters/servicenow_test.exs
fossabot/automate-1
16910c3ebd75ee0aa25e527bfce3e1378306f42d
[ "Apache-2.0" ]
191
2019-04-16T15:04:53.000Z
2022-03-21T14:10:44.000Z
components/notifications-service/server/test/formatters/servicenow_test.exs
fossabot/automate-1
16910c3ebd75ee0aa25e527bfce3e1378306f42d
[ "Apache-2.0" ]
4,882
2019-04-16T16:16:01.000Z
2022-03-31T15:39:35.000Z
components/notifications-service/server/test/formatters/servicenow_test.exs
fossabot/automate-1
16910c3ebd75ee0aa25e527bfce3e1378306f42d
[ "Apache-2.0" ]
114
2019-04-16T15:21:27.000Z
2022-03-26T09:50:08.000Z
defmodule Notifications.Formatters.ServiceNow.Test do use ExUnit.Case, async: false doctest Notifications.Formatters.ServiceNow alias Notifications.Formatters.ServiceNow describe "#format" do test "that a populated CCR notification creates the correct webhook paylaod" do exception_backtrace = [ ...
79.216216
454
0.671307
737fe147fc009aa1029d91a59cce2295c61a8af0
529
exs
Elixir
config/test.exs
w0rd-driven/scratch_phoenix
465e01af6e7d649bfb308edf91247e9d6c6a5876
[ "MIT" ]
null
null
null
config/test.exs
w0rd-driven/scratch_phoenix
465e01af6e7d649bfb308edf91247e9d6c6a5876
[ "MIT" ]
null
null
null
config/test.exs
w0rd-driven/scratch_phoenix
465e01af6e7d649bfb308edf91247e9d6c6a5876
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :scratch_phoenix, ScratchPhoenix.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :scratch...
26.45
56
0.752363
73801b8ddca4dabed4a64dc2a283a1c766d2c5f8
1,123
ex
Elixir
test/support/channel_case.ex
integratedb/core
0b4a7a38d014e5ae973a1fa807c137834dfdf9cb
[ "MIT" ]
13
2021-01-28T14:45:43.000Z
2021-11-04T21:54:19.000Z
test/support/channel_case.ex
integratedb/integrate
0b4a7a38d014e5ae973a1fa807c137834dfdf9cb
[ "MIT" ]
null
null
null
test/support/channel_case.ex
integratedb/integrate
0b4a7a38d014e5ae973a1fa807c137834dfdf9cb
[ "MIT" ]
null
null
null
defmodule IntegrateWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts...
27.390244
71
0.730187
738037568eb9db5b471217f29bd54bc421ef8acb
11,304
ex
Elixir
lib/elixir/lib/record.ex
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
1
2017-10-29T16:37:08.000Z
2017-10-29T16:37:08.000Z
lib/elixir/lib/record.ex
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/record.ex
ekosz/elixir
62e375bc711b4072e1b68de776e96cc31f571d45
[ "Apache-2.0" ]
null
null
null
defmodule Record do @moduledoc """ Functions to define and interact with Erlang records """ @doc """ Extract record information from an Erlang file and return the fields as a list of tuples. ## Examples defrecord FileInfo, Record.extract(:file_info, from_lib: "kernel/include/file.hrl") """ d...
29.361039
100
0.642516
73804189e178573c6286daa1f3ef3b2ce7dbf6e9
5,744
ex
Elixir
lib/beam_notify.ex
nerves-networking/beam_notify
e821f0341d18c398ed8d49785a6350e789d0dc25
[ "Apache-2.0" ]
9
2021-01-20T00:45:10.000Z
2021-07-14T21:39:06.000Z
lib/beam_notify.ex
nerves-networking/beam_notify
e821f0341d18c398ed8d49785a6350e789d0dc25
[ "Apache-2.0" ]
3
2021-10-11T18:48:48.000Z
2022-01-24T15:40:28.000Z
lib/beam_notify.ex
nerves-networking/beam_notify
e821f0341d18c398ed8d49785a6350e789d0dc25
[ "Apache-2.0" ]
null
null
null
defmodule BEAMNotify do use GenServer require Logger @moduledoc """ Send a message to the BEAM from a shell script """ @typedoc """ Callback for dispatching notifications BEAMNotify calls the dispatcher function whenever a message comes in. The first parameter is the list of arguments passed to `$B...
29.15736
91
0.660341
738079639a7fce11ab570798d9eceb327d9b8ea3
6,066
ex
Elixir
lib/flashfeed/news/crawler.ex
alexiob/flashfeed-elixir
72e83c47f556072d26f4a3f195026c2e5b4cd442
[ "MIT" ]
4
2020-02-27T14:29:20.000Z
2021-04-03T19:08:50.000Z
lib/flashfeed/news/crawler.ex
alexiob/flashfeed-elixir
72e83c47f556072d26f4a3f195026c2e5b4cd442
[ "MIT" ]
6
2020-02-17T21:35:04.000Z
2021-09-02T06:46:46.000Z
lib/flashfeed/news/crawler.ex
alexiob/flashfeed-elixir
72e83c47f556072d26f4a3f195026c2e5b4cd442
[ "MIT" ]
null
null
null
defmodule Flashfeed.News.Crawler do @moduledoc false use GenServer require Logger alias Flashfeed.News.Crawler.Utilities alias Flashfeed.News.Sources @fetch_feed_task_timeout 10_000 @crawler_engine_module_signature "Elixir.Flashfeed.News.Crawler.Engine." @topic_entity_feeds "entity_feeds" def sta...
24.658537
103
0.639466
738079be8a194310d92ab4160b1a5a7adc208446
1,696
ex
Elixir
clients/translate/lib/google_api/translate/v3/model/detect_language_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/translate/lib/google_api/translate/v3/model/detect_language_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/translate/lib/google_api/translate/v3/model/detect_language_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...
36.085106
237
0.756486
7380920336ea0229329c1c9078d03a264f0870a2
20,869
ex
Elixir
lib/clickhousex/codec/binary/extractor.ex
sofakingworld/clickhousex
0c067499a2638dfb08e6949cfa916fec968159d1
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/codec/binary/extractor.ex
sofakingworld/clickhousex
0c067499a2638dfb08e6949cfa916fec968159d1
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/codec/binary/extractor.ex
sofakingworld/clickhousex
0c067499a2638dfb08e6949cfa916fec968159d1
[ "Apache-2.0" ]
1
2020-08-14T18:44:50.000Z
2020-08-14T18:44:50.000Z
defmodule Clickhousex.Codec.Binary.Extractor do @moduledoc """ Allows modules that `use` this module to create efficient extractor functions that speak clickhouse's binary protocol. To define extractors, annotate a function with the `extract` attribute like this: @extract length: :varint def extrac...
35.857388
133
0.636926
73809368c36f5e60057ae8ac3a9ecc1077125377
4,188
exs
Elixir
test/swoosh/adapters/gmail_test.exs
ntodd/swoosh
e2cc97b695543f9ef29c02d0c50dd692107762b0
[ "MIT" ]
null
null
null
test/swoosh/adapters/gmail_test.exs
ntodd/swoosh
e2cc97b695543f9ef29c02d0c50dd692107762b0
[ "MIT" ]
null
null
null
test/swoosh/adapters/gmail_test.exs
ntodd/swoosh
e2cc97b695543f9ef29c02d0c50dd692107762b0
[ "MIT" ]
null
null
null
defmodule Swoosh.Adapters.GmailTest do use Swoosh.AdapterCase, async: true import Swoosh.Email alias Swoosh.Adapters.Gmail @success_response """ { "id": "234jkasdfl", "threadId": "12312adfsx", "labelIds": ["SENT"] } """ setup do bypass = Bypass.open() config = [base_url:...
30.347826
136
0.591213
7380970a1948ca9c8b466d9e6ded16ced533dff2
1,038
ex
Elixir
test/support/factories.ex
chrislaskey/assoc
7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7
[ "MIT" ]
6
2019-01-31T23:31:42.000Z
2020-10-06T20:05:34.000Z
test/support/factories.ex
chrislaskey/assoc
7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7
[ "MIT" ]
2
2021-11-09T14:35:51.000Z
2021-11-09T18:04:15.000Z
test/support/factories.ex
chrislaskey/assoc
7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7
[ "MIT" ]
2
2019-01-31T23:53:33.000Z
2021-11-05T21:47:26.000Z
defmodule Assoc.Test.Factories do alias Assoc.Test.Address alias Assoc.Test.Repo alias Assoc.Test.Role alias Assoc.Test.Tag alias Assoc.Test.User # Factories def insert_address!(params \\ %{}) do default_params = %{ address: "test address" } params = Map.merge(default_params, params) ...
17.896552
46
0.600193
7380aaeb69d93704ebdc095b570ccf83b9e14352
201
exs
Elixir
test/test_helper.exs
maartenvanvliet/dolla
3620cb4613fa63363014cd78207ddbb055e0818d
[ "BSD-3-Clause" ]
7
2016-06-28T08:36:31.000Z
2020-02-13T02:39:16.000Z
test/test_helper.exs
maartenvanvliet/dolla
3620cb4613fa63363014cd78207ddbb055e0818d
[ "BSD-3-Clause" ]
null
null
null
test/test_helper.exs
maartenvanvliet/dolla
3620cb4613fa63363014cd78207ddbb055e0818d
[ "BSD-3-Clause" ]
3
2017-02-22T22:40:04.000Z
2020-02-11T09:44:34.000Z
ExUnit.start() Application.ensure_all_started(:bypass) defmodule DollaTest.Fixtures do def receipt_with_iaps do {:ok, file} = File.read("test/fixtures/receipt_with_iaps.json") file end end
22.333333
67
0.761194
7380cc8616febcc529f32a8bd086358d066d066e
216
exs
Elixir
farmbot_core/priv/logger/migrations/20190711221214_add_message_hash_to_logs_table.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_core/priv/logger/migrations/20190711221214_add_message_hash_to_logs_table.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/priv/logger/migrations/20190711221214_add_message_hash_to_logs_table.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCore.Logger.Repo.Migrations.AddMessageHashToLogsTable do use Ecto.Migration def change do alter table("logs") do add(:hash, :binary) add(:duplicates, :integer) end end end
19.636364
73
0.703704
7380ea00df371d87adaa4a0a2be8ba082af2f09c
4,815
ex
Elixir
lib/mix/tasks/firmware.ex
petermm/nerves
173b0a424177f45f77db4206406d9c98f1d73e95
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/firmware.ex
petermm/nerves
173b0a424177f45f77db4206406d9c98f1d73e95
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/firmware.ex
petermm/nerves
173b0a424177f45f77db4206406d9c98f1d73e95
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Firmware do use Mix.Task import Mix.Nerves.Utils @shortdoc "Build a firmware bundle" @moduledoc """ Build a firmware image for the selected target platform. This task builds the project, combines the generated OTP release with a Nerves system image, and creates a `.fw` file that may...
27.672414
109
0.641329
7380ec8d3e7979a8c1e1999fc4075530f1e90eb8
79
ex
Elixir
lib/retroflect_web/views/user_confirmation_view.ex
gaslight/retroflect
d98a52dbe4ef14dd50ef06970fba9c673e456647
[ "MIT" ]
3
2021-10-04T15:03:09.000Z
2021-10-05T00:42:19.000Z
lib/retroflect_web/views/user_confirmation_view.ex
gaslight/retroflect
d98a52dbe4ef14dd50ef06970fba9c673e456647
[ "MIT" ]
29
2021-10-04T12:56:21.000Z
2021-10-20T17:38:12.000Z
lib/retroflect_web/views/user_confirmation_view.ex
gaslight/retroflect
d98a52dbe4ef14dd50ef06970fba9c673e456647
[ "MIT" ]
null
null
null
defmodule RetroflectWeb.UserConfirmationView do use RetroflectWeb, :view end
19.75
47
0.848101
7381499e6966773202f2dac40e7baabdb117fd80
1,812
ex
Elixir
server/lib/domsegserver_web/controllers/user_reset_password_controller.ex
arpieb/domseg
0c7165d69181e59902730c6e7ac41e8e849edd70
[ "Apache-2.0" ]
null
null
null
server/lib/domsegserver_web/controllers/user_reset_password_controller.ex
arpieb/domseg
0c7165d69181e59902730c6e7ac41e8e849edd70
[ "Apache-2.0" ]
9
2021-12-09T18:19:21.000Z
2022-01-09T03:45:33.000Z
server/lib/domsegserver_web/controllers/user_reset_password_controller.ex
arpieb/domseg
0c7165d69181e59902730c6e7ac41e8e849edd70
[ "Apache-2.0" ]
null
null
null
defmodule DOMSegServerWeb.UserResetPasswordController do use DOMSegServerWeb, :controller alias DOMSegServer.Accounts plug :get_user_by_reset_password_token when action in [:edit, :update] def new(conn, _params) do render(conn, "new.html") end def create(conn, %{"user" => %{"email" => email}}) do ...
30.2
119
0.66777
73814a0814fd1bdfe5b095d1aac5a031ed0c04ab
21,403
ex
Elixir
lib/phoenix_live_view/html_tokenizer.ex
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
lib/phoenix_live_view/html_tokenizer.ex
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
lib/phoenix_live_view/html_tokenizer.ex
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.HTMLTokenizer do @moduledoc false @space_chars '\s\t\f' @quote_chars '"\'' @stop_chars '>/=\r\n' ++ @quote_chars ++ @space_chars defmodule ParseError do @moduledoc false defexception [:file, :line, :column, :description] @impl true def message(exception) do l...
34.135566
108
0.647573
738159920c15aed06b86f7beef7345bfceb70149
654
ex
Elixir
slackbot/lib/slackbot.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
slackbot/lib/slackbot.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
slackbot/lib/slackbot.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule Slackbot do 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, warn: false # Define workers and child supervisors to be supervised children = [ # Starts a wor...
31.142857
80
0.714067
73815ba2fee4e7a6d4473ed4edf83a348a96a238
3,824
ex
Elixir
apps/kv_rest_api/lib/kv_rest_api/web/business/client.ex
WhiteRookPL/production-debugging-workshop.ex
26e81d14ba39c33764ddaee5d6d65a6061f4e823
[ "MIT" ]
5
2017-05-03T08:05:54.000Z
2022-03-11T04:11:00.000Z
apps/kv_rest_api/lib/kv_rest_api/web/business/client.ex
WhiteRookPL/production-debugging-workshop.ex
26e81d14ba39c33764ddaee5d6d65a6061f4e823
[ "MIT" ]
null
null
null
apps/kv_rest_api/lib/kv_rest_api/web/business/client.ex
WhiteRookPL/production-debugging-workshop.ex
26e81d14ba39c33764ddaee5d6d65a6061f4e823
[ "MIT" ]
null
null
null
defmodule KV.RestAPI.Web.Client do # Public API. @doc """ Client operation responsible for listing all buckets. """ def buckets() do response = command("BUCKETS") |> String.split("\r\n") case response do [ "OK" ] -> [] [ buckets | _tail ] -> String.split(buckets, ",") |> Enum.map(&decode...
22.362573
100
0.583159
738168e431745e1ab3bc3f6caf54f31556564502
234
exs
Elixir
test/liquex/filter_test.exs
univers-agency/liquex
1a12e56be21da064d092b76fa3cce9bcb192103c
[ "MIT" ]
19
2020-02-29T01:37:11.000Z
2022-03-15T06:45:20.000Z
test/liquex/filter_test.exs
univers-agency/liquex
1a12e56be21da064d092b76fa3cce9bcb192103c
[ "MIT" ]
19
2020-09-02T19:35:08.000Z
2022-03-31T21:42:16.000Z
test/liquex/filter_test.exs
univers-agency/liquex
1a12e56be21da064d092b76fa3cce9bcb192103c
[ "MIT" ]
4
2020-10-20T08:22:43.000Z
2022-01-19T17:21:32.000Z
defmodule Liquex.FilterTest do @moduledoc false use ExUnit.Case, async: true alias Liquex.Filter doctest Liquex.Filter test "apply" do assert 5 == Filter.apply(-5, {:filter, ["abs", {:arguments, []}]}, %{}) end end
18
75
0.653846
73816e7b2a89787b560414a5f65d19f6c38ec1e1
1,051
ex
Elixir
elixir/phoenix_demo/lib/phoenix_demo/application.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/phoenix_demo/lib/phoenix_demo/application.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/phoenix_demo/lib/phoenix_demo/application.ex
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
defmodule PhoenixDemo.Application do use Application # See https://hexdocs.pm/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 the Ecto repository ...
32.84375
89
0.721218
73817b3e775972521fbf3ec97ddf073727cc412a
552
ex
Elixir
lib/myApi_web/views/changeset_view.ex
alex2chan/Phoenix-JWT-Auth-API
5313b41bb590db4c12bdc16f624c11a035d4d692
[ "MIT" ]
40
2018-05-20T21:30:30.000Z
2021-09-10T07:25:44.000Z
lib/myApi_web/views/changeset_view.ex
alex2chan/Phoenix-JWT-Auth-API
5313b41bb590db4c12bdc16f624c11a035d4d692
[ "MIT" ]
3
2020-09-07T10:53:53.000Z
2022-02-12T21:45:34.000Z
lib/myApi_web/views/changeset_view.ex
alex2chan/Phoenix-JWT-Auth-API
5313b41bb590db4c12bdc16f624c11a035d4d692
[ "MIT" ]
15
2018-06-07T08:16:20.000Z
2020-04-12T07:38:05.000Z
defmodule MyApiWeb.ChangesetView do use MyApiWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `MyApiWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changeset, &transla...
27.6
65
0.735507
73818f7b03533448cdd1f52b45ec22fc761d9a8f
2,849
ex
Elixir
deps/distillery/lib/mix/lib/releases/logger.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/distillery/lib/mix/lib/releases/logger.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/distillery/lib/mix/lib/releases/logger.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Releases.Logger do @moduledoc """ This is the logger implementation for Distillery. It is necessary to use because the process-based Logger in Elixir will drop messages when errors occur which kill the runtime, making debugging more difficult. We also colorize and format messages here. """ ...
37.486842
90
0.67006
7381bab1a9167347febcac0e4098c2df0561056f
2,544
ex
Elixir
lib/koans/14_enums.ex
themichaelyang/elixir-koans-solutions
35f6857bb62b22f3a21da21af753cdb484f884a8
[ "MIT" ]
null
null
null
lib/koans/14_enums.ex
themichaelyang/elixir-koans-solutions
35f6857bb62b22f3a21da21af753cdb484f884a8
[ "MIT" ]
null
null
null
lib/koans/14_enums.ex
themichaelyang/elixir-koans-solutions
35f6857bb62b22f3a21da21af753cdb484f884a8
[ "MIT" ]
null
null
null
defmodule Enums do use Koans @intro "Enums" koan "Knowing how many elements are in a list is important for book-keeping" do assert Enum.count([1, 2, 3]) == 3 end koan "Depending on the type, it counts pairs" do assert Enum.count(%{a: :foo, b: :bar}) == 2 end def less_than_five?(n), do: n < 5 ...
29.581395
95
0.61478
7381ce0c0cf5ee763e6e596af72c27efcf386149
7,997
ex
Elixir
lib/requiem/quic/nif.ex
5ebec/requiem
dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a
[ "MIT" ]
37
2021-01-06T05:47:49.000Z
2022-03-24T11:07:00.000Z
lib/requiem/quic/nif.ex
5ebec/requiem
dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a
[ "MIT" ]
null
null
null
lib/requiem/quic/nif.ex
5ebec/requiem
dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a
[ "MIT" ]
2
2021-01-06T06:28:44.000Z
2022-03-07T10:04:34.000Z
defmodule Requiem.QUIC.NIF do use Rustler, otp_app: :requiem, crate: "requiem_nif", mode: :release @spec config_new() :: {:ok, integer} | {:error, :system_error | :not_found} def config_new(), do: error() @spec config_destroy(integer) :: :ok | {:error, :system_error | :not_foun...
42.994624
98
0.700888
7381d71a07be3e05d5fd37b03e7f48a95563171c
1,743
ex
Elixir
lib/inch_ex/reporter/local.ex
AndrewDryga/inch_ex
59997ce05b60902c9b482409b09da7697b267c17
[ "MIT" ]
null
null
null
lib/inch_ex/reporter/local.ex
AndrewDryga/inch_ex
59997ce05b60902c9b482409b09da7697b267c17
[ "MIT" ]
null
null
null
lib/inch_ex/reporter/local.ex
AndrewDryga/inch_ex
59997ce05b60902c9b482409b09da7697b267c17
[ "MIT" ]
1
2022-03-17T18:34:45.000Z
2022-03-17T18:34:45.000Z
defmodule InchEx.Reporter.Local do @cli_api_end_point 'https://inch-ci.org/api/v1/cli' @doc """ Runs inch locally, if installed. If you want to force usage of a particular inch installation, set INCH_PATH environment variable: export INCH_PATH=/home/rrrene/projects/inch Otherwise, InchEx will t...
31.690909
100
0.658635
7381e4f9d66d9273cf9a83333f4096b8f6d29cbf
11,007
ex
Elixir
debian/manpage.xml.ex
rzr/neheglqt
b80cbb859ec76e80c74ac646b94fafa44259431d
[ "Linux-OpenIB" ]
1
2021-02-06T01:34:45.000Z
2021-02-06T01:34:45.000Z
debian/manpage.xml.ex
rzr/neheglqt
b80cbb859ec76e80c74ac646b94fafa44259431d
[ "Linux-OpenIB" ]
null
null
null
debian/manpage.xml.ex
rzr/neheglqt
b80cbb859ec76e80c74ac646b94fafa44259431d
[ "Linux-OpenIB" ]
null
null
null
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ <!-- `xsltproc -''-nonet \ -''-param man.charmap.use.subset "0" \ -''-param make.year.ranges "1" \ -''-param make.single.year.r...
37.695205
84
0.632143
7381ebfcbc33a489ec26f6bd63757a51c290cd75
570
ex
Elixir
web/router.ex
mskog/Upfeed
34fad85cbf7c0c7b0a7d0238c312b29edb61b1d1
[ "MIT" ]
null
null
null
web/router.ex
mskog/Upfeed
34fad85cbf7c0c7b0a7d0238c312b29edb61b1d1
[ "MIT" ]
null
null
null
web/router.ex
mskog/Upfeed
34fad85cbf7c0c7b0a7d0238c312b29edb61b1d1
[ "MIT" ]
null
null
null
defmodule Upfeed.Router do use Upfeed.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 "/", Upfeed do pipe_through ...
20.357143
57
0.673684
738201aee3261571099884c778b61092fd06308b
4,714
exs
Elixir
test/indulgences_test.exs
TrsNium/Indulgences
9492e49508551eb30c030016f5422475184e90f7
[ "MIT" ]
5
2019-09-09T08:51:25.000Z
2020-01-01T06:28:21.000Z
test/indulgences_test.exs
TrsNium/Indulgences
9492e49508551eb30c030016f5422475184e90f7
[ "MIT" ]
10
2020-05-19T20:28:34.000Z
2022-03-23T21:39:11.000Z
test/indulgences_test.exs
TrsNium/Indulgences
9492e49508551eb30c030016f5422475184e90f7
[ "MIT" ]
null
null
null
defmodule IndulgencesTest do use ExUnit.Case doctest Indulgences test "basic scenario execute engine " do test_scenario = Indulgences.Scenario.new( "test_scenario", fn -> Indulgences.Http.new("Test Local Request") |> Indulgences.Http.get("https://localhost") ...
34.15942
94
0.627068
738202a7e25f405b50e7444b2007dacc39598659
1,626
exs
Elixir
test/fake_server/request_test.exs
JacksonIsaac/fake_server
a646287b252d1ce4da4b61eac50e897a6423b7ed
[ "Apache-2.0" ]
null
null
null
test/fake_server/request_test.exs
JacksonIsaac/fake_server
a646287b252d1ce4da4b61eac50e897a6423b7ed
[ "Apache-2.0" ]
null
null
null
test/fake_server/request_test.exs
JacksonIsaac/fake_server
a646287b252d1ce4da4b61eac50e897a6423b7ed
[ "Apache-2.0" ]
null
null
null
defmodule FakeServer.RequestTest do use ExUnit.Case @cowboy_req { :http_req, :some_port, :ranch_tcp, :keepalive, :some_pid, "POST", :"HTTP/1.1", {{127, 0, 0, 1}, 52683}, "127.0.0.1", :undefined, 6455, "/", :undefined, "a=b", :undefined, [], [{"host", "127.0.0.1:6455"}, {"user-agent", "hackney/1.10....
40.65
167
0.652522
7382703b57c5d31c660e87482477d6e9a324b861
6,742
ex
Elixir
lib/tentacat/gists.ex
hi-rustin/tentacat
be0b4a671f90faab2598b6d58a691d506f46cfb5
[ "MIT" ]
432
2015-01-19T20:38:35.000Z
2022-01-11T14:32:28.000Z
lib/tentacat/gists.ex
hi-rustin/tentacat
be0b4a671f90faab2598b6d58a691d506f46cfb5
[ "MIT" ]
183
2015-01-19T08:55:29.000Z
2022-03-01T20:26:03.000Z
lib/tentacat/gists.ex
hi-rustin/tentacat
be0b4a671f90faab2598b6d58a691d506f46cfb5
[ "MIT" ]
189
2015-01-04T14:56:59.000Z
2021-12-14T20:48:18.000Z
defmodule Tentacat.Gists do import Tentacat, [:except, :delete, 2] alias Tentacat.Client @doc """ List current user's gists. ## Examples Tentacat.Gists.list_mine(client) More info at: https://developer.github.com/v3/gists/#list-a-users-gists """ @spec list_mine(Client.t(), Keyword.t()) :: Tent...
26.543307
121
0.65752
7382753611c712023db75d9e164ac1fd5b031ba8
1,722
ex
Elixir
lib/wechat/server_message/xml_parser.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
7
2021-01-22T04:07:29.000Z
2021-12-14T14:01:30.000Z
lib/wechat/server_message/xml_parser.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
1
2021-03-17T15:44:26.000Z
2021-03-17T15:44:26.000Z
lib/wechat/server_message/xml_parser.ex
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
2
2021-03-17T14:35:56.000Z
2021-08-10T07:44:10.000Z
if Code.ensure_loaded?(Saxy) do defmodule WeChat.ServerMessage.XmlParser do @moduledoc "XML Parser" @behaviour Saxy.Handler @spec parse(xml :: String.t()) :: {:ok, map()} def parse(xml) do Saxy.parse_string(xml, __MODULE__, []) end @impl true def handle_event(:start_document, _pro...
25.701493
79
0.543554
7382c5c061736a230e6f8db46556e75bb57f2f40
484
ex
Elixir
lib/authex/plugs/unauthorized_plug.ex
notproperlycut/authex
1361ddbde275d711c76d7897481a5d47d7ca1732
[ "MIT" ]
null
null
null
lib/authex/plugs/unauthorized_plug.ex
notproperlycut/authex
1361ddbde275d711c76d7897481a5d47d7ca1732
[ "MIT" ]
null
null
null
lib/authex/plugs/unauthorized_plug.ex
notproperlycut/authex
1361ddbde275d711c76d7897481a5d47d7ca1732
[ "MIT" ]
null
null
null
defmodule Authex.UnauthorizedPlug do @moduledoc """ A plug to mark the status as unauthorized. This plug is the default used when authentication fails with `Authex.AuthenticationPlug`. It will put a `401` status into the conn with the body `"Unauthorized"`. """ @behaviour Plug import Plug.Conn @impl...
19.36
91
0.67562
7382d797da648828cc099d4f73c17e755fafcb15
1,617
exs
Elixir
test/honeydew/queue/ecto_poll_queue_integration_test.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
717
2015-06-15T19:30:54.000Z
2022-03-22T06:10:09.000Z
test/honeydew/queue/ecto_poll_queue_integration_test.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
106
2015-06-25T05:38:05.000Z
2021-12-08T23:17:19.000Z
test/honeydew/queue/ecto_poll_queue_integration_test.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
60
2015-06-07T00:48:37.000Z
2022-03-06T08:20:23.000Z
defmodule Honeydew.EctoPollQueueIntegrationTest do alias Mix.Shell.IO, as: Output use ExUnit.Case, async: false @moduletag timeout: 4 * 60 * 1_000 @examples_root "./examples/ecto_poll_queue" # Postgres test "ecto poll queue external project test: Postgres" do announce_test("Postgres (unprefixed)") ...
31.705882
95
0.673469
7382efaa3bc90c7dcd9f54204b6d860c4e85e510
919
ex
Elixir
lib/ash/registry/dsl.ex
ash-project/ash
63c240ebbdda6efc2ba8b24547f143cb8bd8c57e
[ "MIT" ]
528
2019-12-08T01:51:54.000Z
2022-03-30T10:09:45.000Z
lib/ash/registry/dsl.ex
ash-project/ash
63c240ebbdda6efc2ba8b24547f143cb8bd8c57e
[ "MIT" ]
278
2019-12-04T15:25:06.000Z
2022-03-31T03:40:51.000Z
lib/ash/registry/dsl.ex
ash-project/ash
63c240ebbdda6efc2ba8b24547f143cb8bd8c57e
[ "MIT" ]
53
2020-08-17T22:08:09.000Z
2022-03-24T01:58:59.000Z
defmodule Ash.Registry.Dsl do @entry %Ash.Dsl.Entity{ name: :entry, describe: "A reference to an ash module (typically a resource)", target: Ash.Registry.Entry, args: [:entry], examples: [ "entry MyApp.User" ], schema: [ entry: [ type: :atom, required: true, ...
18.755102
68
0.572361
7383194dea07a579a4e8e5019ca7a6eaf23871d9
2,148
exs
Elixir
config/prod.exs
arpieb/aggit
048a4f25da9aa1d0d41f350b67f9b034a6e65aa3
[ "Apache-2.0" ]
null
null
null
config/prod.exs
arpieb/aggit
048a4f25da9aa1d0d41f350b67f9b034a6e65aa3
[ "Apache-2.0" ]
null
null
null
config/prod.exs
arpieb/aggit
048a4f25da9aa1d0d41f350b67f9b034a6e65aa3
[ "Apache-2.0" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
32.545455
67
0.709497
73833028b18a49c3e092d2af20766e8c62eafff5
575
ex
Elixir
lib/hap/services/faucet.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
40
2019-10-26T01:58:42.000Z
2022-03-09T18:18:39.000Z
lib/hap/services/faucet.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
11
2021-04-02T14:55:02.000Z
2021-11-05T13:49:55.000Z
lib/hap/services/faucet.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
6
2020-05-18T09:34:14.000Z
2021-11-04T11:14:15.000Z
defmodule HAP.Services.Faucet do @moduledoc """ Struct representing an instance of the `public.hap.service.faucet` service """ defstruct active: nil, name: nil, fault: nil defimpl HAP.ServiceSource do def compile(value) do HAP.Service.ensure_required!(__MODULE__, "active", value.active) %HA...
25
76
0.645217
7383501ff7c17ddb3edf5d1c546c768786e14c2d
1,672
ex
Elixir
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/replicas_delete_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/replicas_delete_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/replicas_delete_request.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...
35.574468
333
0.757775
738352afa7b08da11f1a6645da58bd469193fb65
16,193
ex
Elixir
lib/ash/elixir_sense/plugin.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
lib/ash/elixir_sense/plugin.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
lib/ash/elixir_sense/plugin.ex
joshprice/ash
e452c4091918a88d51063000f7dc44b2f54f5f96
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(ElixirSense.Plugin) do defmodule Ash.ElixirSense.Plugin do @moduledoc false @behaviour ElixirSense.Plugin use ElixirSense.Providers.Suggestion.GenericReducer alias Ash.ElixirSense.Resource alias Ash.ElixirSense.Types alias ElixirSense.Providers.Suggestion.Matcher ...
27.260943
100
0.509788
7383a3e428b54345bab96f38313d4d8d72ae503f
2,279
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/source_fork.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/source_fork.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/source_fork.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...
40.696429
111
0.738482
7383aa6a913de364c7c7e8f9ac4d8e7f5033ea6e
10,348
ex
Elixir
lib/http_structured_field/parser.ex
cogini/http_structured_field
4d55b9a58d730f7a14fc8856ff84e332ac3cbf42
[ "Apache-2.0" ]
null
null
null
lib/http_structured_field/parser.ex
cogini/http_structured_field
4d55b9a58d730f7a14fc8856ff84e332ac3cbf42
[ "Apache-2.0" ]
null
null
null
lib/http_structured_field/parser.ex
cogini/http_structured_field
4d55b9a58d730f7a14fc8856ff84e332ac3cbf42
[ "Apache-2.0" ]
null
null
null
defmodule HttpStructuredField.Parser do @moduledoc """ Parse structured fields. """ import NimbleParsec # sf-integer = ["-"] 1*15DIGIT # Convert charlist into integer defp process_integer(_rest, acc, context, _line, _offset) do case Integer.parse(to_string(Enum.reverse(acc))) do {value, ""} ->...
24.121212
101
0.523773
7383bb0e4131d64f811576615d27051adabe1732
571
exs
Elixir
config/nightly.exs
elarkham/animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
1
2018-01-02T06:59:08.000Z
2018-01-02T06:59:08.000Z
config/nightly.exs
elarkham/Animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
null
null
null
config/nightly.exs
elarkham/Animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
null
null
null
import Config ############# # ANIMU # ############# # Configure HTTP Endpoint config :animu, Animu.Web.Endpoint, http: [port: {:system, "PORT"}], url: [host: {:system, "HOST"}, port: {:system, "PORT"}], server: true, root: ".", version: Mix.Project.config[:version] # Configure file paths for nightly c...
19.689655
58
0.607706
7383c96724b2e2c757b17f8eff7f298a11647b72
435
ex
Elixir
apps/api_web/lib/api_web/plugs/require_user.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/api_web/lib/api_web/plugs/require_user.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/api_web/lib/api_web/plugs/require_user.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule ApiWeb.Plugs.RequireUser do @moduledoc """ Requires a user to be assigned to the Conn. """ import Plug.Conn import Phoenix.Controller, only: [redirect: 2] def init(opts), do: opts def call(conn, _) do case conn.assigns[:user] do %ApiAccounts.User{} -> conn nil -> ...
20.714286
71
0.609195
73842b1dce8f90a742af64b1aa919c35228bd5dd
985
exs
Elixir
apps/core/test/pubsub/cache/users_test.exs
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
null
null
null
apps/core/test/pubsub/cache/users_test.exs
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
2
2019-12-13T23:55:50.000Z
2019-12-17T05:49:58.000Z
apps/core/test/pubsub/cache/users_test.exs
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
null
null
null
defmodule Core.PubSub.Consumers.Cache.UsersTest do use Core.SchemaCase, async: true alias Core.PubSub alias Core.PubSub.Consumers.Cache describe "UserUpdated" do test "it will overwrite the login cache" do user = insert(:user) event = %PubSub.UserUpdated{item: user} Cache.handle_event(ev...
23.452381
50
0.650761
7384320a6987e7a1b360e78590fe9385a4f8ec7f
13,818
ex
Elixir
lib/oban/testing.ex
wjdix/oban
b68bcf02d2942c6ef7a98f8ea6ec80912beea47c
[ "Apache-2.0" ]
null
null
null
lib/oban/testing.ex
wjdix/oban
b68bcf02d2942c6ef7a98f8ea6ec80912beea47c
[ "Apache-2.0" ]
null
null
null
lib/oban/testing.ex
wjdix/oban
b68bcf02d2942c6ef7a98f8ea6ec80912beea47c
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Testing do @moduledoc """ This module simplifies making assertions about enqueued jobs during testing. Assertions may be made on any property of a job, but you'll typically want to check by `args`, `queue` or `worker`. If you're using namespacing through PostgreSQL schemas, also called "prefix...
27.802817
97
0.658344
7384bd1ae141645f79508ca40fa46cfa54570968
2,894
exs
Elixir
test/kino/vega_lite_test.exs
BrooklinJazz/kino
5ce878691798259c592b4298097e72353e23880c
[ "Apache-2.0" ]
84
2021-07-17T09:19:45.000Z
2022-03-21T20:43:21.000Z
test/kino/vega_lite_test.exs
BrooklinJazz/kino
5ce878691798259c592b4298097e72353e23880c
[ "Apache-2.0" ]
48
2021-07-21T11:59:20.000Z
2022-03-31T16:34:16.000Z
test/kino/vega_lite_test.exs
BrooklinJazz/kino
5ce878691798259c592b4298097e72353e23880c
[ "Apache-2.0" ]
11
2021-09-05T16:30:23.000Z
2022-02-19T02:06:48.000Z
defmodule Kino.VegaLiteTest do use Kino.LivebookCase, async: true import KinoTest.JS.Live alias VegaLite, as: Vl test "sends current data after initial connection" do widget = start_widget() Kino.VegaLite.push(widget, %{x: 1, y: 1}) data = connect(widget) assert %{spec: %{}, datasets: [[nil,...
25.385965
95
0.620594
7384ed520a8b5542499a9670f5adb5e02623c532
77
ex
Elixir
testData/org/elixir_lang/reference/module/suffix/reference.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/reference/module/suffix/reference.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/reference/module/suffix/reference.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
defmodule Prefix.Usage do alias Prefix.Suffix Suffix<caret> @a 1 end
9.625
25
0.714286
738516d01028c6f71ba66ebd662305759fd98829
1,932
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1/model/key_version_spec.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/key_version_spec.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/key_version_spec.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...
38.64
291
0.739648
73851ae44dbadeccda02ba366bccd1e8b1ceaaa0
3,788
ex
Elixir
lib/teiserver/agents/battlejoin_agent_server.ex
badosu/teiserver
19b623aeb7c2ab28756405f7486e92b714777c54
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver/agents/battlejoin_agent_server.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/agents/battlejoin_agent_server.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Agents.BattlejoinAgentServer do use GenServer alias Teiserver.Agents.AgentLib alias Teiserver.Battle.Lobby require Logger @tick_period 7000 @leave_chance 0.5 def handle_info(:startup, state) do socket = AgentLib.get_socket() AgentLib.login(socket, %{ name: "Battlejoin_#...
26.305556
87
0.606389
73851fefc160622bc0a8ec26158c43f07cee3eb1
152
ex
Elixir
socket_gallows/lib/socket_gallows_web/controllers/page_controller.ex
wronfim/hangman_game
c4dc4b9f122e773fe87ac4dc88206b792c1b239e
[ "MIT" ]
2
2020-01-20T20:15:20.000Z
2020-02-27T11:08:42.000Z
learning/gnome/game/socket_gallows/lib/socket_gallows_web/controllers/page_controller.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
learning/gnome/game/socket_gallows/lib/socket_gallows_web/controllers/page_controller.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
defmodule SocketGallowsWeb.PageController do use SocketGallowsWeb, :controller def index(conn, _params) do render conn, "index.html" end end
19
44
0.763158
73853745ffe36b094c8afbf9f8e05445b36d97f6
13,433
ex
Elixir
clients/drive/lib/google_api/drive/v3/api/changes.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/drive/lib/google_api/drive/v3/api/changes.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/drive/lib/google_api/drive/v3/api/changes.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
59.438053
292
0.670587
73856ba8d3c455210ba6e259191550772f701724
1,824
exs
Elixir
test/onesky/resources/translation_test.exs
ahtung/onesky.ex
bd3a150d67e25e1ef6d4b7bc33a593b49a65f37f
[ "Apache-2.0" ]
6
2018-11-22T14:44:26.000Z
2020-01-20T14:33:26.000Z
test/onesky/resources/translation_test.exs
dunyakirkali/onesky.ex
f28fc94722c3b13ff82ee307d2a1cc42db4b6df2
[ "Apache-2.0" ]
24
2021-01-13T16:45:34.000Z
2022-03-24T04:07:33.000Z
test/onesky/resources/translation_test.exs
dunyakirkali/onesky.ex
f28fc94722c3b13ff82ee307d2a1cc42db4b6df2
[ "Apache-2.0" ]
null
null
null
defmodule TranslationTest do use ExUnit.Case, async: true use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney doctest Onesky.Translation test "export_files" do use_cassette "translation#export_files" do params = [locale: "zh-TW", source_file_name: "string.po"] {:ok, %Tesla.Env{} = env} = O...
28.5
88
0.643092
73858f826241140c3f5329b7fab2245fd1bf574a
228
exs
Elixir
test/phoenix_component_folders_web/controllers/page_controller_test.exs
kimlindholm/phoenix_component_folders
2d07f4966fe473063183e97009955b82a93b181f
[ "MIT" ]
30
2017-05-05T09:30:06.000Z
2021-03-29T15:08:02.000Z
test/phoenix_component_folders_web/controllers/page_controller_test.exs
kimlindholm/phoenix_component_folders
2d07f4966fe473063183e97009955b82a93b181f
[ "MIT" ]
4
2017-05-01T18:53:57.000Z
2020-11-22T06:46:55.000Z
test/phoenix_component_folders_web/controllers/page_controller_test.exs
kimlindholm/phoenix_component_folders
2d07f4966fe473063183e97009955b82a93b181f
[ "MIT" ]
7
2017-11-09T06:34:07.000Z
2021-03-01T20:14:18.000Z
defmodule PhoenixComponentFoldersWeb.PageControllerTest do use PhoenixComponentFoldersWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Latest comments" end end
25.333333
58
0.72807
7385b14d0a03d4a0966c09aeec200b419aa68ddb
6,232
ex
Elixir
lib/chat_api_web/controllers/google_controller.ex
hakerspeak/hakerspeak.com
efd9e75f4854fdd19fc1873300deae0b160fb629
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/google_controller.ex
hakerspeak/hakerspeak.com
efd9e75f4854fdd19fc1873300deae0b160fb629
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/google_controller.ex
hakerspeak/hakerspeak.com
efd9e75f4854fdd19fc1873300deae0b160fb629
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.GoogleController do use ChatApiWeb, :controller require Logger alias ChatApi.Google alias ChatApi.Google.GoogleAuthorization @spec callback(Plug.Conn.t(), map()) :: Plug.Conn.t() @doc """ This action is reached via `/api/google/oauth` is the the callback URL that Google's OAuth2 ...
31.795918
98
0.60077
7385c679466fc71bb8835aa0b6a490368ce25bd2
1,260
ex
Elixir
lib/conduit_web/controllers/article_controller.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
298
2017-06-05T14:28:23.000Z
2022-03-30T16:53:44.000Z
lib/conduit_web/controllers/article_controller.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
28
2017-07-21T01:06:47.000Z
2021-03-07T12:32:56.000Z
lib/conduit_web/controllers/article_controller.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
77
2017-08-14T20:12:03.000Z
2021-12-08T22:24:59.000Z
defmodule ConduitWeb.ArticleController do use ConduitWeb, :controller alias Conduit.Blog alias Conduit.Blog.Projections.Article plug(Guardian.Plug.EnsureAuthenticated when action in [:create, :feed]) action_fallback(ConduitWeb.FallbackController) def index(conn, params) do user = Guardian.Plug.curre...
28
87
0.707143
7385caa625a23c9938a3c5c247a3411a8a42d9fc
874
exs
Elixir
mix.exs
mbresson/Relev-de-notes-AN
00f79d36ad0de64635cf9c35e979aa4f7e0931e2
[ "MIT" ]
null
null
null
mix.exs
mbresson/Relev-de-notes-AN
00f79d36ad0de64635cf9c35e979aa4f7e0931e2
[ "MIT" ]
null
null
null
mix.exs
mbresson/Relev-de-notes-AN
00f79d36ad0de64635cf9c35e979aa4f7e0931e2
[ "MIT" ]
null
null
null
defmodule ReleveDeNotesAN.Mixfile do use Mix.Project def project do [app: :releve_de_notes_an, escript: escript_config, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP appli...
21.317073
77
0.608696
7385d5bd0ea3c43598d924a19628c26418845443
158
exs
Elixir
apps/re/priv/repo/migrations/20190111153747_remove_messages_and_channels.exs
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re/priv/repo/migrations/20190111153747_remove_messages_and_channels.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
apps/re/priv/repo/migrations/20190111153747_remove_messages_and_channels.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule Re.Repo.Migrations.RemoveMessagesAndChannels do use Ecto.Migration def change do drop table(:messages) drop table(:channels) end end
17.555556
57
0.753165
738625098138a5b183eda31ae558dda00db8892f
3,971
ex
Elixir
lib/ex_admin/paginate.ex
augnustin/ex_admin
218d0094de8186808924dcca6157875a7bb382c9
[ "MIT" ]
2
2019-12-21T12:59:19.000Z
2020-04-01T15:27:12.000Z
lib/ex_admin/paginate.ex
augnustin/ex_admin
218d0094de8186808924dcca6157875a7bb382c9
[ "MIT" ]
null
null
null
lib/ex_admin/paginate.ex
augnustin/ex_admin
218d0094de8186808924dcca6157875a7bb382c9
[ "MIT" ]
1
2020-02-29T22:13:24.000Z
2020-02-29T22:13:24.000Z
defmodule ExAdmin.Paginate do @moduledoc false use Xain import ExAdmin.Theme.Helpers import ExAdmin.Gettext def paginate(_, nil, _, _, _, _, _), do: [] def paginate(link, page_number, page_size, total_pages, record_count, name) do markup do theme_module(Paginate).wrap_pagination1(fn -> i...
27.19863
94
0.619491
73864e2f2d57341a316500fba4edf58c8108637f
1,991
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_color_info.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_color_info.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_color_info.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...
37.566038
141
0.724761
73866e545dd89bb557d962f647677a411838e5ae
1,797
ex
Elixir
clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.235294
96
0.742348
73867d7ddadc882acedd4086f20d33732f0bb7e4
963
exs
Elixir
apps/dockup_ui/test/channels/deployment_channel_test.exs
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
apps/dockup_ui/test/channels/deployment_channel_test.exs
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
apps/dockup_ui/test/channels/deployment_channel_test.exs
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
defmodule DockupUi.DeploymentChannelTest do use DockupUi.ChannelCase, async: true import DockupUi.Factory alias DockupUi.DeploymentChannel test "update_deployment_status broadcasts a status_updated event" do DockupUi.Endpoint.subscribe("deployments:all") deployment = insert(:deployment, status: "start...
33.206897
108
0.750779
73868e411478deebdaef56fb79c3457de585ab14
933
exs
Elixir
day20/task1.exs
joskov/advent2016
cdade8f0f47bf67b9dd29f8e25f4e8351cada309
[ "MIT" ]
2
2016-12-26T20:44:04.000Z
2017-02-10T19:59:55.000Z
day20/task1.exs
joskov/advent2016
cdade8f0f47bf67b9dd29f8e25f4e8351cada309
[ "MIT" ]
null
null
null
day20/task1.exs
joskov/advent2016
cdade8f0f47bf67b9dd29f8e25f4e8351cada309
[ "MIT" ]
null
null
null
defmodule Task do def parse_line(string) do [_, a, b] = Regex.run(~r/(\d+)-(\d+)/, string) {String.to_integer(a), String.to_integer(b)} end def run([], _removed, result), do: result def run(_list, [], result), do: result def run(list, _removed, result) do IO.puts("Min is #{result}, list left #{le...
25.216216
79
0.594855
738692e987fe5ea7e0aac06c421ccce1cb6de8af
269
exs
Elixir
test/http_test.exs
gordalina/hush_gcp_secret_manager
38719f3a96fd07aa8a736200bd68fe92c9017625
[ "Apache-2.0" ]
15
2021-02-25T17:09:54.000Z
2021-03-02T19:53:00.000Z
test/http_test.exs
gordalina/hush_gcp_secret_manager
38719f3a96fd07aa8a736200bd68fe92c9017625
[ "Apache-2.0" ]
1
2021-09-11T12:27:23.000Z
2021-09-12T10:59:24.000Z
test/http_test.exs
gordalina/hush_gcp_secret_manager
38719f3a96fd07aa8a736200bd68fe92c9017625
[ "Apache-2.0" ]
null
null
null
defmodule Hush.Provider.GcpSecretManager.HttpTest do use ExUnit.Case doctest Hush.Provider.GcpSecretManager.Http alias Hush.Provider.GcpSecretManager test "for_scope/1" do assert_raise CaseClauseError, fn -> GcpSecretManager.Http.get("", []) end end end
26.9
77
0.776952
7386a9fe3ab0627bad3f0f55764c520b5f470f18
1,742
ex
Elixir
lib/covid19_questionnaire_web/schemas/questionnaire_request.ex
Delegation-numerique-en-sante/covid-19-elixir
c4b49c713642c0e022ab1ea79e9d5fb10964dffd
[ "MIT" ]
3
2020-04-08T19:15:22.000Z
2020-05-24T22:37:54.000Z
lib/covid19_questionnaire_web/schemas/questionnaire_request.ex
Delegation-numerique-en-sante/covid-19-elixir
c4b49c713642c0e022ab1ea79e9d5fb10964dffd
[ "MIT" ]
10
2020-04-05T17:31:49.000Z
2020-06-10T11:09:17.000Z
lib/covid19_questionnaire_web/schemas/questionnaire_request.ex
Delegation-numerique-en-sante/covid19-algorithme-orientation-api
c4b49c713642c0e022ab1ea79e9d5fb10964dffd
[ "MIT" ]
null
null
null
defmodule Covid19QuestionnaireWeb.Schemas.QuestionnaireRequest do @moduledoc """ Schéma de la requête pour lancer le algorithme d'orientation. """ require OpenApiSpex alias Covid19QuestionnaireWeb.Schemas.Questionnaire alias OpenApiSpex.Schema OpenApiSpex.schema(%{ title: "QuestionnaireRequest", ...
28.557377
83
0.528129
7386c49a040f62af71057d27d25e84f4e3a3f2dc
21,431
ex
Elixir
lib/nas_luminaire.ex
flixbi/element-parsers
b92ef1cff139130acbac4f40d0d48568a3de6590
[ "MIT" ]
1
2021-11-10T18:06:59.000Z
2021-11-10T18:06:59.000Z
lib/nas_luminaire.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
lib/nas_luminaire.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour use Bitwise require Logger require Timex #ELEMENT IoT Parser for NAS Luminaire Controller Zhaga UL2030 v0.6.29 # According to documentation provided by NAS: https://www.nasys.no/wp-content/uploads/Luminaire_Controller_Zhaga_UL2030_6.pdf # Payload Descri...
30.659514
142
0.574028
7386c59f384ef829fab13c2b76394ae0402665ad
5,625
ex
Elixir
lib/capuli.ex
merongivian/capuli
aebb93832055fb02cf9e660e2483ad89d0029e7f
[ "MIT" ]
6
2018-06-10T20:41:50.000Z
2019-10-13T01:43:06.000Z
lib/capuli.ex
merongivian/capuli
aebb93832055fb02cf9e660e2483ad89d0029e7f
[ "MIT" ]
1
2018-03-10T01:28:34.000Z
2018-06-10T17:16:07.000Z
lib/capuli.ex
merongivian/capuli
aebb93832055fb02cf9e660e2483ad89d0029e7f
[ "MIT" ]
1
2022-01-01T20:19:18.000Z
2022-01-01T20:19:18.000Z
defmodule Capuli do @moduledoc """ Capuli parses xml files through a DSL defined in a module, this module will be the parser. Use `element` if you want declare one tag and `elements` for multiple tags. Here is a parser for an Atom entry: defmodule AtomEntry do use Capuli element :titl...
26.285047
84
0.614578
7387059538fc9e90d87d142984544a8a7aea75cc
853
ex
Elixir
test/support/conn_case.ex
philcallister/ticker-phoenix
052fddec24de3b3e48a9513a0d3782f3c9227c81
[ "MIT" ]
15
2016-11-02T14:03:00.000Z
2021-03-23T20:34:14.000Z
test/support/conn_case.ex
philcallister/ticker-phoenix
052fddec24de3b3e48a9513a0d3782f3c9227c81
[ "MIT" ]
null
null
null
test/support/conn_case.ex
philcallister/ticker-phoenix
052fddec24de3b3e48a9513a0d3782f3c9227c81
[ "MIT" ]
2
2019-08-09T18:33:09.000Z
2020-07-14T16:28:14.000Z
defmodule TickerPhoenix.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with t...
24.371429
56
0.726846
7387169661a177e790a8a8e2e0076162756d1f68
1,964
ex
Elixir
clients/webmaster/lib/google_api/webmaster/v3/model/search_analytics_query_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/webmaster/lib/google_api/webmaster/v3/model/search_analytics_query_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/webmaster/lib/google_api/webmaster/v3/model/search_analytics_query_response.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...
39.28
193
0.745418
73871e574ee076aad36a9b621ccdcd96e7ab5027
1,136
exs
Elixir
apps/admin/config/dev.exs
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/admin/config/dev.exs
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/admin/config/dev.exs
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
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 :emporium_admin, EmporiumAdmin.Endpoint, http:...
29.894737
74
0.723592
7387211f63ae78ece3ace499b5ba4b2ab7e2fde8
3,904
ex
Elixir
lib/new_relixir/agent.ex
edipox/new-relixir
00de7b6016b840d14004c32e562604de25c0c9b5
[ "MIT" ]
null
null
null
lib/new_relixir/agent.ex
edipox/new-relixir
00de7b6016b840d14004c32e562604de25c0c9b5
[ "MIT" ]
null
null
null
lib/new_relixir/agent.ex
edipox/new-relixir
00de7b6016b840d14004c32e562604de25c0c9b5
[ "MIT" ]
null
null
null
defmodule NewRelixir.Agent do require Logger @base_url "http://~s/agent_listener/invoke_raw_method?" @doc """ Connects to New Relic and sends the hopefully correctly formatted data and registers it under the given hostname. """ def push(hostname, data, errors) do if NewRelixir.active? do colle...
26.201342
79
0.607582
738726d1d0107490f76a6ab492adf0a0ffe63e6d
444
ex
Elixir
lib/mipha/accounts/location.ex
ZPVIP/mipha
a7df054f72eec7de88b60d94c501488375bdff6a
[ "MIT" ]
156
2018-06-01T19:52:32.000Z
2022-02-03T10:58:10.000Z
lib/mipha/accounts/location.ex
ZPVIP/mipha
a7df054f72eec7de88b60d94c501488375bdff6a
[ "MIT" ]
139
2018-07-10T01:57:23.000Z
2021-08-02T21:29:24.000Z
lib/mipha/accounts/location.ex
ZPVIP/mipha
a7df054f72eec7de88b60d94c501488375bdff6a
[ "MIT" ]
29
2018-07-17T08:43:45.000Z
2021-12-14T13:45:30.000Z
defmodule Mipha.Accounts.Location do @moduledoc false use Ecto.Schema import Ecto.Changeset alias Mipha.Accounts.{User, Location, Company} @type t :: %Location{} schema "locations" do field :name, :string has_many :users, User has_many :companies, Company timestamps() end @doc fal...
16.444444
48
0.668919
73872abb4504f1828e198e6875023bb1f9255c3d
1,861
ex
Elixir
lib/live_sup_web/live/widgets/blameless/blameless_incidents_by_type_live.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup_web/live/widgets/blameless/blameless_incidents_by_type_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/blameless/blameless_incidents_by_type_live.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSupWeb.Live.Widgets.Blameless.IncidentsByTypeLive 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}> <!-- Incidents by Type --> ...
33.232143
144
0.551854
738754bed9ebeea25c83a691f744fb4636fca5f0
68
exs
Elixir
test/test_helper.exs
elixir-berlin/juntos
64dd05888f357cf0c74da11d1eda69bab7f38e95
[ "MIT" ]
1
2019-11-15T15:39:24.000Z
2019-11-15T15:39:24.000Z
test/test_helper.exs
elixir-berlin/juntos
64dd05888f357cf0c74da11d1eda69bab7f38e95
[ "MIT" ]
166
2020-06-30T16:07:48.000Z
2021-11-25T00:02:24.000Z
test/test_helper.exs
elixir-berlin/juntos
64dd05888f357cf0c74da11d1eda69bab7f38e95
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Juntos.Repo, :manual)
22.666667
52
0.779412
73876f1985ed2b4b51bfb5082c9ce4afcd6036f0
263
ex
Elixir
lib/live_view_todos.ex
MarvinKweyu/LiveViewTodos
89c48d1692be56d50c779587cac4e6a654c68919
[ "MIT" ]
null
null
null
lib/live_view_todos.ex
MarvinKweyu/LiveViewTodos
89c48d1692be56d50c779587cac4e6a654c68919
[ "MIT" ]
null
null
null
lib/live_view_todos.ex
MarvinKweyu/LiveViewTodos
89c48d1692be56d50c779587cac4e6a654c68919
[ "MIT" ]
null
null
null
defmodule LiveViewTodos do @moduledoc """ LiveViewTodos 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
26.3
66
0.764259
7387b0601fec90a842775992b407932378213537
828
exs
Elixir
test/rocketpay_web/views/users_view_test.exs
LuizFerK/Rocketpay
4388f22231c43fb58e777dfb04a342e82b548df7
[ "MIT" ]
null
null
null
test/rocketpay_web/views/users_view_test.exs
LuizFerK/Rocketpay
4388f22231c43fb58e777dfb04a342e82b548df7
[ "MIT" ]
null
null
null
test/rocketpay_web/views/users_view_test.exs
LuizFerK/Rocketpay
4388f22231c43fb58e777dfb04a342e82b548df7
[ "MIT" ]
null
null
null
defmodule RocketpayWeb.UsersViewTest do use RocketpayWeb.ConnCase, async: true import Phoenix.View alias Rocketpay.{Account, User} alias RocketpayWeb.UsersView test "renders create.json" do params = %{ name: "Luiz", password: "123456", nickname: "Luuu", email: "luizfernandoklein...
21.230769
73
0.59058
7387b67b9ceb64572b4d550de00e0f1a117ce367
377
exs
Elixir
priv/repo/migrations/20190905094949_add_project_market_segments_table.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
priv/repo/migrations/20190905094949_add_project_market_segments_table.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
priv/repo/migrations/20190905094949_add_project_market_segments_table.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Repo.Migrations.AddProjectMarketSegmentsTable do use Ecto.Migration @table "project_market_segments" def change do create table(@table) do add(:project_id, references(:project)) add(:market_segment_id, references(:market_segments)) end create(unique_index(:project_market...
29
85
0.758621
7387b756d8dcd1d188a240267febbf4535ce2da5
1,567
ex
Elixir
priv/cabbage/apps/itest/lib/watcher_security_critical_api/connection.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
priv/cabbage/apps/itest/lib/watcher_security_critical_api/connection.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
priv/cabbage/apps/itest/lib/watcher_security_critical_api/connection.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.340426
100
0.731334
7387c190e61beb0e31253376db0972ff15eb7f37
110
exs
Elixir
config/config.exs
glific/passwordless_auth
e5b7a7c1792c8ad4eea129094080e8696fb905ca
[ "Apache-2.0" ]
null
null
null
config/config.exs
glific/passwordless_auth
e5b7a7c1792c8ad4eea129094080e8696fb905ca
[ "Apache-2.0" ]
null
null
null
config/config.exs
glific/passwordless_auth
e5b7a7c1792c8ad4eea129094080e8696fb905ca
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Removed default config option of ExTwilio for SMS adapter import_config "#{Mix.env()}.exs"
18.333333
59
0.754545
7387c455f89c84618e86fd95a7cbdf9462e90955
2,164
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
40.074074
306
0.749538
738800c6aa26e47ea7c5bad535ecac952b7b1ab7
2,191
exs
Elixir
rumbl/test/controllers/auth_test.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
rumbl/test/controllers/auth_test.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
rumbl/test/controllers/auth_test.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule Rumbl.AuthTest do use Rumbl.ConnCase alias Rumbl.Auth setup %{conn: conn} do conn = conn |> bypass_through(Rumbl.Router, :browser) |> get("/") {:ok, %{conn: conn}} end test "authenticate_user halts when no current_user exists", %{conn: conn} do conn = Auth.authentica...
26.39759
83
0.633501
73880d4a002ec84df4668649b19c7ae54544af49
515
exs
Elixir
test/epicenter_web/uploaded_file_test.exs
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
test/epicenter_web/uploaded_file_test.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
test/epicenter_web/uploaded_file_test.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule EpicenterWeb.UploadedFileTest do use Epicenter.SimpleCase, async: true alias Epicenter.Tempfile alias EpicenterWeb.UploadedFile describe "from_plug_upload" do test "creates a new ImportedFile with a sanitized filename and the contents of the file" do path = Tempfile.write_csv!("file conten...
32.1875
95
0.737864
738815b433b6715a41bd982766387f2dffce1e70
4,141
ex
Elixir
lib/kazan/request.ex
afatsini/kazan
1df9673dc8740ba7fa389a9c4683e3389e854f27
[ "MIT" ]
null
null
null
lib/kazan/request.ex
afatsini/kazan
1df9673dc8740ba7fa389a9c4683e3389e854f27
[ "MIT" ]
null
null
null
lib/kazan/request.ex
afatsini/kazan
1df9673dc8740ba7fa389a9c4683e3389e854f27
[ "MIT" ]
null
null
null
defmodule Kazan.Request do @moduledoc """ Kazan.Request is a struct that describes an HTTP request. Users should mostly treat this struct as opaque - `Kazan.run` consumes it, and functions in the various `Kazan.Apis` submodules construct it. """ defstruct [ :method, :path, :query_params, :c...
28.170068
80
0.605168
7388637a6af163696807d81fdb57697ce1762bc1
602
exs
Elixir
witchcraft-examples/mix.exs
feihong/elixir-examples
dda6128f729199dad21220925df3bae241911fbd
[ "Apache-2.0" ]
null
null
null
witchcraft-examples/mix.exs
feihong/elixir-examples
dda6128f729199dad21220925df3bae241911fbd
[ "Apache-2.0" ]
null
null
null
witchcraft-examples/mix.exs
feihong/elixir-examples
dda6128f729199dad21220925df3bae241911fbd
[ "Apache-2.0" ]
null
null
null
defmodule Examples.Mixfile do use Mix.Project def project do [ app: :examples, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applic...
20.066667
88
0.566445
73889ab96023db635ce327e86cf9243e1ae2ca39
2,897
ex
Elixir
clients/games/lib/google_api/games/v1/model/player_achievement.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/player_achievement.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/player_achievement.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...
41.985507
265
0.704177
73889fa338f318c5d7a39044f72ebe3df1d21793
331
exs
Elixir
apps/biz/config/dev.exs
aforward/wuw
8f41157aeb9fce738a402e757bf78a322a890b7a
[ "MIT" ]
null
null
null
apps/biz/config/dev.exs
aforward/wuw
8f41157aeb9fce738a402e757bf78a322a890b7a
[ "MIT" ]
null
null
null
apps/biz/config/dev.exs
aforward/wuw
8f41157aeb9fce738a402e757bf78a322a890b7a
[ "MIT" ]
null
null
null
use Mix.Config config :biz, Biz.Repo, [ adapter: Ecto.Adapters.Postgres, database: "wuw_#{Mix.env}", username: "postgres", password: "", hostname: "localhost", ] config :mix_test_watch, setup_tasks: [ "ecto.drop --quiet", "ecto.create --quiet", "ecto.migrate", ], ansi_enabled: :ignore, c...
17.421053
34
0.637462
7388d0ed56929e7323d7ab4e11f3a132763eae27
12,029
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/disk_types.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/disk_types.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/disk_types.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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...
61.060914
1,213
0.713443
7388de96520ca49e692e8cffce2daab602672a30
142
ex
Elixir
web/controllers/tp_attribute_import_job_controller.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/controllers/tp_attribute_import_job_controller.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
web/controllers/tp_attribute_import_job_controller.ex
zombalo/cgrates_web_jsonapi
47845be4311839fe180cc9f2c7c6795649da4430
[ "MIT" ]
null
null
null
defmodule CgratesWebJsonapi.TpAttributeImportJobController do use CgratesWebJsonapi.CsvImportJob, module: CgratesWebJsonapi.TpAttribute end
35.5
75
0.894366
73892b169aea9a44f02eea782fe634cab4cea0a1
718
ex
Elixir
web/gettext.ex
colbydehart/MartaWhistle
852d1aaecb1fe5705fdcaab30283870613f6a66f
[ "MIT" ]
null
null
null
web/gettext.ex
colbydehart/MartaWhistle
852d1aaecb1fe5705fdcaab30283870613f6a66f
[ "MIT" ]
null
null
null
web/gettext.ex
colbydehart/MartaWhistle
852d1aaecb1fe5705fdcaab30283870613f6a66f
[ "MIT" ]
null
null
null
defmodule TrainWhistle.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import TrainWhistle.Gettext # Simple translation gettext "Here ...
28.72
72
0.685237
738934df556c631bf8a417a7679cbdc3eb1e52d3
9,032
exs
Elixir
test/sanbase/alerts/metric/metric_trigger_settings_test.exs
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
test/sanbase/alerts/metric/metric_trigger_settings_test.exs
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
test/sanbase/alerts/metric/metric_trigger_settings_test.exs
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Alert.MetricTriggerSettingsTest do use Sanbase.DataCase, async: false import Sanbase.Factory import Sanbase.TestHelpers import ExUnit.CaptureLog alias Sanbase.Alert.UserTrigger alias Sanbase.Alert.Evaluator alias Sanbase.Metric alias Sanbase.Alert.Trigger.MetricTriggerSettings @me...
29.808581
167
0.583592
738938a78374ec078a716799726a02b607359e90
481
exs
Elixir
config/test.exs
domix/xebex
e1c9e21245a1daf3c818ddd60433fdbc4d7611be
[ "Apache-2.0" ]
1
2015-10-13T02:11:26.000Z
2015-10-13T02:11:26.000Z
config/test.exs
domix/xebex
e1c9e21245a1daf3c818ddd60433fdbc4d7611be
[ "Apache-2.0" ]
null
null
null
config/test.exs
domix/xebex
e1c9e21245a1daf3c818ddd60433fdbc4d7611be
[ "Apache-2.0" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :xebex, Xebex.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :xebex, Xebex.Repo, adapt...
24.05
56
0.727651
73897c07fb4e831f1834851bd1becc0de4eaf730
228
exs
Elixir
test/koans/equalities_koan_test.exs
Imtiyaaz1234/elixir-koans
e1a8a55e3acbb88bb598becf3f40cb52f912e60a
[ "MIT" ]
1,944
2016-04-24T02:46:10.000Z
2022-03-29T00:19:17.000Z
test/koans/equalities_koan_test.exs
Imtiyaaz1234/elixir-koans
e1a8a55e3acbb88bb598becf3f40cb52f912e60a
[ "MIT" ]
157
2016-04-23T18:40:24.000Z
2022-02-10T14:00:45.000Z
test/koans/equalities_koan_test.exs
Imtiyaaz1234/elixir-koans
e1a8a55e3acbb88bb598becf3f40cb52f912e60a
[ "MIT" ]
636
2016-04-23T17:18:00.000Z
2022-03-23T10:04:06.000Z
defmodule EqualitiesTests do use ExUnit.Case import TestHarness test "Equalities" do answers = [ true, false, 1, 2, 1, 4, 2 ] test_all(Equalities, answers) end end
12
33
0.54386