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
d5bf9d4f66adcf15de4c09815d87e9c4e14d6d18
615
ex
Elixir
lib/hl7/2.5.1/segments/err.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.5.1/segments/err.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.5.1/segments/err.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_5_1.Segments.ERR do @moduledoc false require Logger alias HL7.V2_5_1.{DataTypes} use HL7.Segment, fields: [ segment: nil, error_code_and_location: DataTypes.Eld, error_location: DataTypes.Erl, hl7_error_code: DataTypes.Cwe, severity: nil, application_er...
25.625
45
0.704065
d5bfa62b042808bad9e750a0876e0e3acf832d4c
649
ex
Elixir
elixir-for-programmers/lists/lib/lists.ex
GimliLongBow/exercises
e06517eacccd37a889c5d68a702de7ffb7f4bf37
[ "MIT" ]
2
2017-05-19T18:31:38.000Z
2017-05-19T18:31:41.000Z
elixir-for-programmers/lists/lib/lists.ex
GimliLongBow/exercises
e06517eacccd37a889c5d68a702de7ffb7f4bf37
[ "MIT" ]
null
null
null
elixir-for-programmers/lists/lib/lists.ex
GimliLongBow/exercises
e06517eacccd37a889c5d68a702de7ffb7f4bf37
[ "MIT" ]
null
null
null
defmodule Lists do @moduledoc """ Documentation for Lists. """ def len( [] ), do: 0 def len( [ _head | tail ] ), do: 1 + len(tail) def sum( [] ), do: 0 def sum( [ head | tail ] ), do: head + sum(tail) def double( [] ), do: [] def double( [ head | tail ] ), do: [ head*2 | double(tail) ] def squar...
24.961538
69
0.528505
d5bfa96ce65ecd2f8d65df7575373c121f262ce8
488
ex
Elixir
lib/step_flow/view/right_view.ex
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
4
2019-12-07T05:18:26.000Z
2020-11-06T23:28:43.000Z
lib/step_flow/view/right_view.ex
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
53
2020-01-06T11:23:09.000Z
2021-06-25T15:30:07.000Z
lib/step_flow/view/right_view.ex
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
3
2020-01-30T15:37:40.000Z
2020-10-27T14:10:02.000Z
defmodule StepFlow.RightView do use StepFlow, :view alias StepFlow.RightView def render("index.json", %{rights: rights}) do %{data: render_many(rights, RightView, "right.json")} end def render("show.json", %{right: right}) do %{data: render_one(right, RightView, "right.json")} end def render("r...
22.181818
57
0.643443
d5bfee966d0c154f60600af3bebfa9b9dbcc6686
1,687
exs
Elixir
test/board_test.exs
mrfishball/TicTacToeElixir
e26c55b53f118a1cddb141db3d1ee6b969b756e0
[ "MIT" ]
null
null
null
test/board_test.exs
mrfishball/TicTacToeElixir
e26c55b53f118a1cddb141db3d1ee6b969b756e0
[ "MIT" ]
1
2018-07-19T17:52:53.000Z
2018-07-19T18:11:24.000Z
test/board_test.exs
mrfishball/TicTacToeElixir
e26c55b53f118a1cddb141db3d1ee6b969b756e0
[ "MIT" ]
null
null
null
defmodule BoardTest do alias TTT.Console.Board, as: Board use ExUnit.Case import ExUnit.CaptureIO test "Board has all the correct coordinates and they are represented by empty slots" do board = Board.new_board("", "") assert board == %{ {0, 0} => "1", {0, 1} => "4", ...
32.442308
146
0.407825
d5bffda72af97edcb3d4a3866dbb547c4bf21793
268
ex
Elixir
lib/jabberwocky_web/router.ex
ngscheurich/jabberwocky
c99cd52d35a4847afa83194132f8b1f5ee952d32
[ "MIT" ]
null
null
null
lib/jabberwocky_web/router.ex
ngscheurich/jabberwocky
c99cd52d35a4847afa83194132f8b1f5ee952d32
[ "MIT" ]
null
null
null
lib/jabberwocky_web/router.ex
ngscheurich/jabberwocky
c99cd52d35a4847afa83194132f8b1f5ee952d32
[ "MIT" ]
null
null
null
defmodule JabberwockyWeb.Router do use JabberwockyWeb, :router pipeline :api do plug :accepts, ["json"] end scope "/", JabberwockyWeb do pipe_through :api resources "/service_requests", ServiceRequestController, only: [:create, :show] end end
19.142857
83
0.708955
d5c01726a2c6bf768dd55b6d1c9d92637f8c3025
3,035
ex
Elixir
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.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...
44.632353
321
0.739703
d5c01a5e9a6905a4e5a4b8e809b48fc10bfff4fb
730
ex
Elixir
lib/dissolver/html/foundation.ex
ivanpetrovic/dissolver
e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a
[ "MIT" ]
21
2020-04-11T14:02:50.000Z
2022-03-20T21:49:38.000Z
lib/dissolver/html/foundation.ex
ivanpetrovic/dissolver
e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a
[ "MIT" ]
5
2020-04-12T18:16:57.000Z
2020-11-07T01:28:08.000Z
lib/dissolver/html/foundation.ex
ivanpetrovic/dissolver
e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a
[ "MIT" ]
2
2020-11-07T01:16:52.000Z
2022-02-22T10:30:03.000Z
defmodule Dissolver.HTML.Foundation do @behaviour Dissolver.HTML.Theme use Phoenix.HTML @moduledoc """ This is a theme to support Foundation https://get.foundation/ """ @impl Dissolver.HTML.Theme def generate_links(page_list, additional_class) do content_tag :ul, class: build_html_class(additional...
26.071429
85
0.69863
d5c0323ea15102a593b6624c31befbdd32662366
697
ex
Elixir
lib/bike_brigade_web/live/printable_live/safety_check.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
28
2021-10-11T01:53:53.000Z
2022-03-24T17:45:55.000Z
lib/bike_brigade_web/live/printable_live/safety_check.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
20
2021-10-21T08:12:31.000Z
2022-03-31T13:35:53.000Z
lib/bike_brigade_web/live/printable_live/safety_check.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
null
null
null
defmodule BikeBrigadeWeb.PrintableLive.SafetyCheck do use BikeBrigadeWeb, {:live_view, layout: {BikeBrigadeWeb.LayoutView, "fullscreen.live.html"}} import BikeBrigadeWeb.CampaignHelpers alias BikeBrigade.Delivery import BikeBrigadeWeb.PrintableLive.Helpers @impl true def mount(_params, _session, socket) ...
26.807692
95
0.723099
d5c037bb97b2e7d9ed6f70dcab672665edcb8114
3,011
exs
Elixir
test/schedule_manager_test.exs
andreaswillems/verk
177baf4d1225f4190aec4daaf3fecd595051ce34
[ "MIT" ]
746
2015-12-13T09:55:47.000Z
2022-03-29T21:57:55.000Z
test/schedule_manager_test.exs
andreaswillems/verk
177baf4d1225f4190aec4daaf3fecd595051ce34
[ "MIT" ]
176
2015-12-16T08:05:19.000Z
2021-12-21T03:38:55.000Z
test/schedule_manager_test.exs
andreaswillems/verk
177baf4d1225f4190aec4daaf3fecd595051ce34
[ "MIT" ]
78
2015-12-16T09:09:52.000Z
2021-11-05T15:06:03.000Z
defmodule Verk.ScheduleManagerTest do use ExUnit.Case, async: true import Verk.ScheduleManager import Mimic alias Verk.{ScheduleManager.State} setup :verify_on_exit! @now Verk.Time.now() @unix_now DateTime.to_unix(@now) setup do Application.put_env(:verk, :poll_interval, 50) stub(Verk.Time, :...
29.811881
97
0.660578
d5c054aba1bccf3a0c3f33520507a57bd9396197
1,373
exs
Elixir
backend/rel/config.template.exs
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
backend/rel/config.template.exs
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
backend/rel/config.template.exs
howardjing/keyboard
6c52fd99860ff9b01190f5cc2f8451a2644dfb5f
[ "MIT" ]
null
null
null
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # T...
28.604167
74
0.740714
d5c09687de65c361019d010a9e1cd49963258e57
1,859
ex
Elixir
lib/app/punches.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
lib/app/punches.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
lib/app/punches.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
defmodule Smena.Punches do @moduledoc """ The Punches context. """ import Ecto.Query, warn: false alias Smena.Repo alias Smena.Punches.Punch @doc """ Returns the list of punches. ## Examples iex> list_punches() [%Punch{}, ...] """ def list_punches do Repo.all(Punch) end ...
16.451327
63
0.578268
d5c09c24eb85d95046c93decd5e8feb513f8b3f4
6,964
exs
Elixir
parkapp_server/test/parkapp_web/api_integration/timeout_test.exs
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
2
2018-11-06T12:21:16.000Z
2018-11-21T10:20:17.000Z
parkapp_server/test/parkapp_web/api_integration/timeout_test.exs
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
null
null
null
parkapp_server/test/parkapp_web/api_integration/timeout_test.exs
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
null
null
null
defmodule ParkappWeb.ApiIntegration.TimeoutTest do use Parkapp.DataCase alias ParkappWeb.ApiIntegration.{Timeout, Helpers} alias Parkapp.Reservations.{ Reservation, ReservationStatus } alias Parkapp.ReservationsContext describe "Timeout Test" do @reservation_start_time :reservation_start_tim...
39.794286
122
0.712665
d5c0c91a3185624dfb9c3ef0269da5f07d0dd0a6
898
ex
Elixir
lib/exbrainz.ex
ozgunatacan/exbrainz
1ed6759d876cc1848079a4d3ff1268dfbc1ca71d
[ "MIT" ]
1
2021-12-30T20:02:30.000Z
2021-12-30T20:02:30.000Z
lib/exbrainz.ex
ozgunatacan/exbrainz
1ed6759d876cc1848079a4d3ff1268dfbc1ca71d
[ "MIT" ]
null
null
null
lib/exbrainz.ex
ozgunatacan/exbrainz
1ed6759d876cc1848079a4d3ff1268dfbc1ca71d
[ "MIT" ]
null
null
null
defmodule Exbrainz do alias Exbrainz.{Artist, Recordings, Works} def get_artist!(mbid) do path = "/artist/#{mbid}?inc=aliases&fmt=json" handle_req(path, %Artist{}) end def get_recordings!(mbid, limit \\ 25) do path = "/recording?artist=#{mbid}&fmt=json&limit=#{limit}&inc=artist-rels" handle_re...
26.411765
78
0.667038
d5c0dffc61234e3e79ce02c41dca82a2c7a56f93
613
ex
Elixir
apps/robby_web/web/models/profile_helper.ex
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
apps/robby_web/web/models/profile_helper.ex
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
apps/robby_web/web/models/profile_helper.ex
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
defmodule RobbyWeb.ProfileHelper do @moduledoc """ Helper functions for Profile and Directory """ require Ecto.Query def orgPeople(type) do Ecto.Query.from(u in type, where: "exOrgContractor" not in u.objectClass and "exOrgPerson" not in u.objectClass ...
34.055556
67
0.50571
d5c0f724d8f91032c543eecbaa43c3a3c6f322d6
1,156
ex
Elixir
lib/code_corps/analytics/segment_data_extractor.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
lib/code_corps/analytics/segment_data_extractor.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
lib/code_corps/analytics/segment_data_extractor.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
defmodule CodeCorps.Analytics.SegmentDataExtractor do @moduledoc """ Extract data for use in Segment tracking """ @spec get_action(Plug.Conn.t) :: atom def get_action(%Plug.Conn{private: %{phoenix_action: action}}), do: action def get_action(_), do: nil @spec get_resource(Plug.Conn.t) :: struct def ge...
42.814815
91
0.704152
d5c130a48a71862813b01beb0b95829b1f8ab17d
1,962
ex
Elixir
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/crawled_url.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/crawled_url.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/crawled_url.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.018868
214
0.719164
d5c182b726a6b9e0f45688c9e426fb5879277e00
1,674
exs
Elixir
exercises/grains/grains_test.exs
darktef/elixir-exercism
bcaae351486b1405f0a01cd33b4d39555546298e
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/grains/grains_test.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/grains/grains_test.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("grains.exs", __DIR__) end ExUnit.start ExUnit.configure exclude: :pending, trace: true # NOTE: :math.pow/2 doesn't do what you'd expect: # `:math.pow(2, 64) == :math.pow(2, 64) - 1` is true. # # It's best to avoid functions operating on floating point ...
22.931507
104
0.646953
d5c1b2b27f0a9a7e455c9ef76c0802499ad98e68
2,335
ex
Elixir
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_import_data_operation_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_import_data_operation_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_import_data_operation_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...
38.916667
262
0.744325
d5c1c49ae81c1eea9b23b2ae2cdfb7763fbc83a7
460
ex
Elixir
lib/meeseeks/selector/combinator/previous_siblings.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
291
2017-03-27T15:53:36.000Z
2022-03-14T23:01:42.000Z
lib/meeseeks/selector/combinator/previous_siblings.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
70
2017-03-30T23:32:34.000Z
2021-06-27T06:26:28.000Z
lib/meeseeks/selector/combinator/previous_siblings.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
23
2017-06-18T10:29:04.000Z
2021-11-04T13:08:12.000Z
defmodule Meeseeks.Selector.Combinator.PreviousSiblings do use Meeseeks.Selector.Combinator @moduledoc false alias Meeseeks.Document defstruct selector: nil @impl true def next(_combinator, %{parent: nil}, _document) do nil end def next(_combinator, node, document) do case Document.previous_...
21.904762
74
0.732609
d5c1ca78a0883d60c0284fb21f5f625b436fb269
389
exs
Elixir
priv/repo/migrations/20210504191003_create_response_conditions.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
1
2018-12-13T16:52:22.000Z
2018-12-13T16:52:22.000Z
priv/repo/migrations/20210504191003_create_response_conditions.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
28
2019-07-04T08:42:33.000Z
2022-03-28T08:24:07.000Z
priv/repo/migrations/20210504191003_create_response_conditions.exs
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
null
null
null
defmodule Mockatron.Repo.Migrations.CreateResponseConditions do use Ecto.Migration def change do create table(:response_conditions) do add :field_type, :string add :operator, :string add :value, :string add :filter_id, references(:filters, on_delete: :delete_all) timestamps() ...
22.882353
66
0.701799
d5c1cac6e5386f9155c92f7ad1cd594091d093b1
3,148
ex
Elixir
lib/koans/03_numbers.ex
themichaelyang/elixir-koans-solutions
35f6857bb62b22f3a21da21af753cdb484f884a8
[ "MIT" ]
null
null
null
lib/koans/03_numbers.ex
themichaelyang/elixir-koans-solutions
35f6857bb62b22f3a21da21af753cdb484f884a8
[ "MIT" ]
null
null
null
lib/koans/03_numbers.ex
themichaelyang/elixir-koans-solutions
35f6857bb62b22f3a21da21af753cdb484f884a8
[ "MIT" ]
null
null
null
defmodule Numbers do require Integer use Koans @intro "Why is the number six so scared? Because seven eight nine!\nWe should get to know numbers a bit more!" koan "Is an integer equal to its float equivalent?" do assert 1 == 1.0 == true end koan "Is an integer threequal to its float equivalent?" do ...
24.030534
112
0.634053
d5c205aa520ae7963bdb035e73c2b2fc980bcda6
54,007
ex
Elixir
lib/saxy/parser/builder.ex
jotakami/saxy
9f9b372b0fb93ee8fbbad527298e8a7a2fef6660
[ "MIT" ]
217
2018-02-17T17:43:33.000Z
2022-03-20T13:53:33.000Z
lib/saxy/parser/builder.ex
jotakami/saxy
9f9b372b0fb93ee8fbbad527298e8a7a2fef6660
[ "MIT" ]
49
2018-05-02T05:11:08.000Z
2022-03-16T13:30:17.000Z
lib/saxy/parser/builder.ex
jotakami/saxy
9f9b372b0fb93ee8fbbad527298e8a7a2fef6660
[ "MIT" ]
28
2018-04-21T23:13:40.000Z
2022-03-03T22:47:12.000Z
defmodule Saxy.Parser.Builder do @moduledoc false import Saxy.Parser.Lookahead import Saxy.BufferingHelper import Saxy.Emitter import Saxy.Guards alias Saxy.Parser.Utils alias Saxy.Emitter defmacro __using__(options) do streaming? = Keyword.fetch!(options, :streaming?) quote do @stream...
39.363703
127
0.565612
d5c2b89637953945d8152750b83284ca44026701
6,012
ex
Elixir
lib/clickhousex/codec/row_binary.ex
moldmn/clickhousex
b39016714e346490ff8e9c4432006827612fba11
[ "Apache-2.0" ]
1
2021-06-04T10:21:15.000Z
2021-06-04T10:21:15.000Z
lib/clickhousex/codec/row_binary.ex
moldmn/clickhousex
b39016714e346490ff8e9c4432006827612fba11
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/codec/row_binary.ex
moldmn/clickhousex
b39016714e346490ff8e9c4432006827612fba11
[ "Apache-2.0" ]
null
null
null
defmodule Clickhousex.Codec.RowBinary do @moduledoc """ A codec that speaks Clickhouse's RowBinary format To use this codec, set the application `:clickhousex` `:codec` application variable: config :clickhousex, codec: Clickhousex.Codec.RowBinary """ alias Clickhousex.{Codec, Codec.Binary.Extractor,...
25.260504
100
0.643214
d5c2d88d51c0f6460e7c9c521b69bcdb1dc8b6c7
1,143
ex
Elixir
web/controllers/page_controller.ex
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
6
2017-06-13T19:35:05.000Z
2020-05-05T06:50:34.000Z
web/controllers/page_controller.ex
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
1
2021-09-27T11:58:11.000Z
2021-09-27T11:58:11.000Z
defmodule NlbPipeline.PageController do use NlbPipeline.Web, :controller def index(conn, %{"risk_management" => %{"guardian_id" => guardian_id}}) do conn # |> assign(:user_id, guardian_id) # |> assign(:type, :guardian) |> redirect(to: page_path(conn, :risk_management, guardian_id)) end def index(conn, %{"s...
25.977273
115
0.693788
d5c2f20ea91e5fa291480d148c9e97c83126d3ee
4,794
ex
Elixir
lib/analytics/mixpanel.ex
Contractbook/analytics
5855142fca9e9494fa0675aaa278370aada6602a
[ "MIT" ]
null
null
null
lib/analytics/mixpanel.ex
Contractbook/analytics
5855142fca9e9494fa0675aaa278370aada6602a
[ "MIT" ]
null
null
null
lib/analytics/mixpanel.ex
Contractbook/analytics
5855142fca9e9494fa0675aaa278370aada6602a
[ "MIT" ]
null
null
null
defmodule Analytics.Mixpanel do alias Analytics.Mixpanel.{Events, People} @doc """ Associates one identity with another, usually an anonymous user with an identified user once they sign up. This function MUST be called exactly once for each user when the used is signed up, otherwise user would be duplicated...
34.992701
114
0.698582
d5c3237cbe58938f54adb7e7788b182e955ab261
8,632
exs
Elixir
test/membrane/testing/pipeline_assertions_test.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
test/membrane/testing/pipeline_assertions_test.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
test/membrane/testing/pipeline_assertions_test.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Testing.PipelineAssertionsTest do use ExUnit.Case import Membrane.Testing.Assertions alias Membrane.Testing.Pipeline alias Membrane.Testing.Pipeline.State # Note: Most of tests in this file are just to force compile valid macro invocations # Note: so compiler can find the errors. se...
31.619048
90
0.668211
d5c352c494cb533ada9b77e4bb7a9c68e7ce8882
566
exs
Elixir
aoc-2020/day1/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day1/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
aoc-2020/day1/mix.exs
danurna/elixir-playground
6acb40e513d8ab324368b3ec5151b0a4fd88f849
[ "MIT" ]
null
null
null
defmodule Day1.MixProject do use Mix.Project def project do [ app: :day1, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applicat...
19.517241
87
0.572438
d5c35c9a4697360ba124c970a787a8da35dc52fe
32,129
exs
Elixir
integration_test/cases/transaction_test.exs
lukebakken/db_connection
aa53f2d9c78aa6b5f6a9c0615459e97ec89f0c32
[ "Apache-2.0" ]
null
null
null
integration_test/cases/transaction_test.exs
lukebakken/db_connection
aa53f2d9c78aa6b5f6a9c0615459e97ec89f0c32
[ "Apache-2.0" ]
null
null
null
integration_test/cases/transaction_test.exs
lukebakken/db_connection
aa53f2d9c78aa6b5f6a9c0615459e97ec89f0c32
[ "Apache-2.0" ]
null
null
null
defmodule TransactionTest do use ExUnit.Case, async: true alias TestPool, as: P alias TestAgent, as: A test "transaction returns result" do stack = [ {:ok, :state}, {:ok, :began, :new_state}, {:ok, :comitted, :newer_state}, {:ok, :began, :newest_state}, {:ok, :committed, :new...
28.533748
147
0.585577
d5c36166aa6c7dc97e2693de75e0f3a01fcfc59f
2,356
ex
Elixir
lib/radiator/feed/episode_builder.ex
optikfluffel/radiator
b1a1b966296fa6bf123e3a2455009ff52099ace6
[ "MIT" ]
1
2021-03-02T16:59:40.000Z
2021-03-02T16:59:40.000Z
lib/radiator/feed/episode_builder.ex
optikfluffel/radiator
b1a1b966296fa6bf123e3a2455009ff52099ace6
[ "MIT" ]
null
null
null
lib/radiator/feed/episode_builder.ex
optikfluffel/radiator
b1a1b966296fa6bf123e3a2455009ff52099ace6
[ "MIT" ]
null
null
null
defmodule Radiator.Feed.EpisodeBuilder do import XmlBuilder import Radiator.Feed.Builder, only: [add: 2] import Radiator.Feed.Guards alias Radiator.Directory.Episode def new(feed_data, episode) do element(:item, fields(feed_data, episode)) end def fields(_, episode) do [] |> add(element(:ti...
30.205128
96
0.651528
d5c3c3669f91fbd706e350edc427541fb8be8cc1
3,033
ex
Elixir
deps/quark/lib/quark/compose.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
1
2020-01-31T10:23:37.000Z
2020-01-31T10:23:37.000Z
deps/quark/lib/quark/compose.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
null
null
null
deps/quark/lib/quark/compose.ex
robot-overlord/starter_kit
254153221d0a3a06324c65ad8e89d610de2429c3
[ "MIT" ]
null
null
null
defmodule Quark.Compose do @moduledoc ~S""" Function composition is taking two functions, and joining them together to create a new function. For example: ## Examples iex> sum_plus_one = compose([&(&1 + 1), &Enum.sum/1]) ...> sum_plus_one.([1,2,3]) 7 In this case, we have joined `Enum.sum...
22.634328
79
0.562479
d5c3f2c5ac41b0f749b3e3569ee16f1a2d2ad8ca
432
exs
Elixir
mix.exs
gissandrogama/financial_umbrella
bc69e74608add2beff3aa1096ff5c82721c1a5fb
[ "MIT" ]
null
null
null
mix.exs
gissandrogama/financial_umbrella
bc69e74608add2beff3aa1096ff5c82721c1a5fb
[ "MIT" ]
null
null
null
mix.exs
gissandrogama/financial_umbrella
bc69e74608add2beff3aa1096ff5c82721c1a5fb
[ "MIT" ]
null
null
null
defmodule FinancialUmbrella.MixProject do use Mix.Project def project do [ apps_path: "apps", version: "0.1.0", start_permanent: Mix.env() == :prod, deps: deps() ] end # Dependencies listed here are available only for this # project and cannot be accessed from applications in...
19.636364
59
0.645833
d5c40ba93201a3ce98a2d8a14227f1c53259efdd
747
ex
Elixir
lib/xcribe/api_blueprint/api_blueprint.ex
antedeguemon/xcribe
00cbcaf150a04fd07b6ec727be9aa34f92a81a72
[ "Apache-2.0" ]
30
2019-12-17T20:09:41.000Z
2021-01-11T13:58:24.000Z
lib/xcribe/api_blueprint/api_blueprint.ex
Finbits/xcribe
37f4195315e27e415212910f0219c68d96a16d4a
[ "Apache-2.0" ]
36
2019-12-17T20:32:04.000Z
2020-12-02T17:50:49.000Z
lib/xcribe/api_blueprint/api_blueprint.ex
Finbits/xcribe
37f4195315e27e415212910f0219c68d96a16d4a
[ "Apache-2.0" ]
3
2020-02-21T18:13:59.000Z
2020-10-20T07:59:05.000Z
defmodule Xcribe.ApiBlueprint do @moduledoc false alias Xcribe.ApiBlueprint.{APIB, Formatter} alias Xcribe.{Config, DocException} def generate_doc(requests) do requests |> apib_struct() |> APIB.encode() end def apib_struct(requests) do Map.put( xcribe_info(), :groups, re...
22.636364
83
0.705489
d5c43c729ab756818e5dbbafbe2ade41471363ff
3,670
ex
Elixir
web/models/user.ex
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
web/models/user.ex
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
web/models/user.ex
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
defmodule HandimanApi.User do use HandimanApi.Web, :model @differentials %{ 5 => 1, 6 => 1, 7 => 2, 8 =>2, 9 => 3, 10 => 3, 11 => 4, 12 => 4, 13 => 5, 14 => 5, 15 => 6, 16 => 6, 17 => 7, 18 => 8, 19 => 9, 20 => 10 } schema "users" do field :e...
29.126984
123
0.619074
d5c447170e9a5961df4cbf956d14caa4a53aac07
2,659
ex
Elixir
server/test/support/conn_case.ex
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
server/test/support/conn_case.ex
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
server/test/support/conn_case.ex
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
defmodule IdaiFieldServerWeb.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 common data structures and query the data layer. Finall...
27.697917
77
0.720948
d5c46550affbebd32a41e589a78ba21bd68dd2c5
6,566
ex
Elixir
lib/hedwig_slack/adapter.ex
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
null
null
null
lib/hedwig_slack/adapter.ex
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
null
null
null
lib/hedwig_slack/adapter.ex
kevinmcnamee/hedwig_slack
0ca4a18e8c1cf7550b34f052b8f086a1d19ea706
[ "MIT" ]
null
null
null
defmodule Hedwig.Adapters.Slack do use Hedwig.Adapter require Logger alias HedwigSlack.{Connection, RTM} defmodule State do defstruct conn: nil, conn_ref: nil, channels: %{}, groups: %{}, id: nil, name: nil, opts: nil, ...
26.582996
101
0.577216
d5c478fb6c1ef6e9c2e0d9e5e9c11a15ca97773b
1,054
exs
Elixir
mix.exs
mikeastock/phoenix_ecto
c45ed42470b47b1f73d85aef7815659cfe37a788
[ "MIT" ]
null
null
null
mix.exs
mikeastock/phoenix_ecto
c45ed42470b47b1f73d85aef7815659cfe37a788
[ "MIT" ]
null
null
null
mix.exs
mikeastock/phoenix_ecto
c45ed42470b47b1f73d85aef7815659cfe37a788
[ "MIT" ]
null
null
null
defmodule PhoenixEcto.Mixfile do use Mix.Project @version "3.3.0" def project do [app: :phoenix_ecto, version: @version, elixir: "~> 1.3", deps: deps(), # Hex description: "Integration between Phoenix & Ecto", package: package(), # Docs name: "Phoenix/Ecto", do...
23.422222
78
0.562619
d5c47f58ef3ec79deafca2862d49d0b614fe7739
789
ex
Elixir
lib/k8s/client/provider.ex
linkdd/k8s
a697818a7adf62abcf0f06a13ea283eb626b534d
[ "MIT" ]
226
2019-02-03T00:49:32.000Z
2022-03-30T15:02:22.000Z
lib/k8s/client/provider.ex
linkdd/k8s
a697818a7adf62abcf0f06a13ea283eb626b534d
[ "MIT" ]
109
2019-01-20T20:39:33.000Z
2022-03-31T20:21:34.000Z
lib/k8s/client/provider.ex
linkdd/k8s
a697818a7adf62abcf0f06a13ea283eb626b534d
[ "MIT" ]
43
2019-02-07T01:18:31.000Z
2022-03-08T04:15:33.000Z
defmodule K8s.Client.Provider do @moduledoc "HTTP Request / Response provider behaviour" @type success_t :: {:ok, list(map()) | map() | reference() | binary() | list(binary())} @type error_t :: {:error, K8s.Client.APIError.t() | HTTPoison.Response.t() | HTTPoison.Error.t()} @type response_t :: succes...
37.571429
90
0.643853
d5c48cc6b6f2a6359b382840cc0f1c258ea748b1
2,472
exs
Elixir
apps/omg/test/omg/raw_data_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-10-06T03:07:47.000Z
2020-10-06T03:07:47.000Z
apps/omg/test/omg/raw_data_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
9
2020-09-16T15:31:17.000Z
2021-03-17T07:12:35.000Z
apps/omg/test/omg/raw_data_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
1
2020-09-30T17:17:27.000Z
2020-09-30T17:17:27.000Z
# Copyright 2019-2020 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.863014
91
0.66788
d5c494b50a38a03a61cf43ad850810c3a9fd051c
1,467
ex
Elixir
lib/log/args.ex
Carburetor/log
120d535a090a41f52c141c5e08be294bb78e3a6c
[ "MIT" ]
null
null
null
lib/log/args.ex
Carburetor/log
120d535a090a41f52c141c5e08be294bb78e3a6c
[ "MIT" ]
null
null
null
lib/log/args.ex
Carburetor/log
120d535a090a41f52c141c5e08be294bb78e3a6c
[ "MIT" ]
null
null
null
defmodule Log.Args do @moduledoc """ Provides logging for simple data structures in a human-readable fashion. It's meant to be used for manually-provided data structures with 1-4 fields: ``` require Log.Args Log.Args.info({"a message", %{some_id: 123, some_name: "Jon"}}) ``` Will output ``` [20...
21.895522
75
0.605317
d5c49737006895b959ce94b077ff16a4402a5068
1,718
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.791667
167
0.75844
d5c4986b61a084ea817f1dd214fb9cfb4cf799e8
173
exs
Elixir
ex/apps/corals/test/examples/dominoes/test/dominoes_test.exs
limadelic/corals
be1730551ce7420f12b3b689c79ebd7571892d53
[ "MIT" ]
null
null
null
ex/apps/corals/test/examples/dominoes/test/dominoes_test.exs
limadelic/corals
be1730551ce7420f12b3b689c79ebd7571892d53
[ "MIT" ]
null
null
null
ex/apps/corals/test/examples/dominoes/test/dominoes_test.exs
limadelic/corals
be1730551ce7420f12b3b689c79ebd7571892d53
[ "MIT" ]
null
null
null
defmodule DominoesTest do use ExUnit.Case test "play a whole game" do %{on: {result, _}} = Dominoes.play() assert result == :winner || result == :tie end end
19.222222
46
0.635838
d5c4a23d8f436a2020b84582ea44fc390312853a
1,115
exs
Elixir
packages/sim/apps/ecs/config/config.exs
TNOCS/popsim
a25cca22de42161ef3bc4848c6c20bfdc85f7647
[ "MIT" ]
1
2017-09-23T09:41:44.000Z
2017-09-23T09:41:44.000Z
packages/sim/apps/ecs/config/config.exs
TNOCS/popsim
a25cca22de42161ef3bc4848c6c20bfdc85f7647
[ "MIT" ]
8
2017-06-21T07:57:47.000Z
2017-06-22T13:09:32.000Z
packages/sim/apps/ecs/config/config.exs
TNOCS/popsim
a25cca22de42161ef3bc4848c6c20bfdc85f7647
[ "MIT" ]
1
2021-02-14T16:50:16.000Z
2021-02-14T16:50:16.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
35.967742
73
0.749776
d5c4d88748b43007f811461f091588ffc9965f93
339
exs
Elixir
test/dynamo/templates/handler_test.exs
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
415
2015-01-04T15:59:47.000Z
2022-02-02T21:12:46.000Z
test/dynamo/templates/handler_test.exs
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
9
2015-02-06T16:09:46.000Z
2018-08-08T06:33:50.000Z
test/dynamo/templates/handler_test.exs
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
44
2015-02-01T15:49:50.000Z
2021-11-29T09:08:37.000Z
defmodule Dynamo.Templates.HandlerTest do use ExUnit.Case, async: true test "gets a handler by extension" do assert Dynamo.Templates.Handler.get!("eex") == Dynamo.Templates.EEXHandler end test "raises on invalid handler" do assert_raise RuntimeError, fn -> Dynamo.Templates.Handler.get!("unknown"...
26.076923
78
0.722714
d5c4eed34671198f6f697cef0583c6bdf114acca
392
ex
Elixir
lib/codes/codes_r99.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_r99.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_r99.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_R99 do alias IcdCode.ICDCode def _R99 do %ICDCode{full_code: "R99", category_code: "R99", short_code: "", full_name: "Ill-defined and unknown cause of mortality", short_name: "Ill-defined and unknown cause of mortality", category_n...
24.5
69
0.645408
d5c50a996728b9be24fdab157bac477689c48490
9,099
ex
Elixir
lib/cforum/abilities.ex
multitain/cforum_ex
95634a547893f5392345b173f3c264b149e2b124
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum/abilities.ex
multitain/cforum_ex
95634a547893f5392345b173f3c264b149e2b124
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum/abilities.ex
multitain/cforum_ex
95634a547893f5392345b173f3c264b149e2b124
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule Cforum.Abilities do @moduledoc """ This module defines all access rights for users in our forum system """ use Cforum.Constants alias Cforum.Forums alias Cforum.Helpers alias Cforum.Users alias Cforum.Users.User alias Cforum.Groups alias Cforum.Settings alias Cforum.Settings.Setting ...
32.612903
120
0.681064
d5c5285ed73ef00be873f9db823462218549302f
1,163
exs
Elixir
test/lobby/lobby_test.exs
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
test/lobby/lobby_test.exs
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
test/lobby/lobby_test.exs
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
defmodule LobbyTest do use ExUnit.Case doctest Wordza.Lobby test "init creates the lobby as a GenServer" do type = :wordfeud player_1_id = :bot_lookahead_1 player_2_id = :bot_lookahead_2 {:ok, lobby_pid} = Wordza.Lobby.start_link() assert is_pid(lobby_pid) == true # we don't need the pid ...
36.34375
88
0.725709
d5c5326d20519ce221383e860fe1c43c062a8848
744
ex
Elixir
lib/perseus/boxes/hdlr.ex
abhijeetbhagat/perseus
357a6d290ba078eff07d06ff9a5af0966932b84f
[ "MIT" ]
4
2020-03-22T06:34:46.000Z
2022-03-04T00:56:11.000Z
lib/perseus/boxes/hdlr.ex
abhijeetbhagat/perseus
357a6d290ba078eff07d06ff9a5af0966932b84f
[ "MIT" ]
null
null
null
lib/perseus/boxes/hdlr.ex
abhijeetbhagat/perseus
357a6d290ba078eff07d06ff9a5af0966932b84f
[ "MIT" ]
1
2020-03-26T02:41:21.000Z
2020-03-26T02:41:21.000Z
require Logger defmodule Perseus.Boxes.Hdlr do defstruct( name: :hdlr, predefined: 0, handler_type: <<>>, reserved: [], handler_name: <<>> ) end alias Perseus.Boxes.Hdlr defimpl Perseus.Box, for: Hdlr do def parse(_, file, size) do << _::binary-size(4), predefined::integer-3...
20.666667
61
0.619624
d5c539e96efc58a3dbbb3ca30825fc357279f610
590
ex
Elixir
lib/songmate/match/schema/connection.ex
jenny-codes/music-dating-app
ac0bdba90d26cad327992bc0c3ead34f42b3f82f
[ "MIT" ]
8
2020-06-06T02:12:36.000Z
2021-10-12T16:47:20.000Z
lib/songmate/match/schema/connection.ex
jenny-codes/music-dating-app
ac0bdba90d26cad327992bc0c3ead34f42b3f82f
[ "MIT" ]
2
2021-03-10T18:43:20.000Z
2021-07-16T04:37:20.000Z
lib/songmate/match/schema/connection.ex
jenny-codes/music-dating-app
ac0bdba90d26cad327992bc0c3ead34f42b3f82f
[ "MIT" ]
1
2020-06-24T08:41:09.000Z
2020-06-24T08:41:09.000Z
defmodule Songmate.Community.Connection do use Ecto.Schema import Ecto.Changeset alias Songmate.Accounts.User alias Songmate.Community.UserConnection schema "connections" do field(:score, :integer) field(:shared_preferences, :map) many_to_many(:users, User, join_through: UserConnection, ...
21.071429
52
0.69322
d5c55faf3cdcb1d85fa1ee3056a6b6ad9d23e77f
9,166
exs
Elixir
lib/ex_unit/test/ex_unit/doc_test_test.exs
montague/elixir
ff2138b05345d0b3136a374259e9c3ba7208e3da
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/test/ex_unit/doc_test_test.exs
montague/elixir
ff2138b05345d0b3136a374259e9c3ba7208e3da
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/test/ex_unit/doc_test_test.exs
montague/elixir
ff2138b05345d0b3136a374259e9c3ba7208e3da
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ import ExUnit.TestHelpers defmodule ExUnit.DocTestTest.GoodModule do @doc """ iex> test_fun 1 iex> test_fun + 1 2 """ def test_fun, do: 1 @doc ~S""" iex> ~S(f#{o}o) "f\#{o}o" """ def test_sigil, do: :ok @doc """ iex> a = 1 iex> b = a + 2 ...
25.67507
130
0.649684
d5c5695b2c629a2d282813445fd5e7d0501f745b
955
ex
Elixir
test/support/channel_case.ex
plank-tools/oauth2_example
22e9ad9d41676bd161ee854511babf814bf701e7
[ "MIT" ]
145
2015-01-07T21:29:53.000Z
2022-01-08T18:27:35.000Z
test/support/channel_case.ex
plank-tools/oauth2_example
22e9ad9d41676bd161ee854511babf814bf701e7
[ "MIT" ]
19
2015-02-22T04:20:09.000Z
2018-11-20T15:06:26.000Z
test/support/channel_case.ex
plank-tools/oauth2_example
22e9ad9d41676bd161ee854511babf814bf701e7
[ "MIT" ]
56
2015-04-10T05:19:05.000Z
2021-12-02T19:44:06.000Z
defmodule OAuth2Example.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cann...
23.292683
72
0.710995
d5c57a782feaaf7b52f0fc516451d19d3047942c
693
ex
Elixir
2-5 Testing in Elixir/coder/lib/coder/encoder.ex
tutsplus/get-started-with-elixir
f45ccf064c664d0cad01a07b71457ba299717a1e
[ "BSD-2-Clause" ]
2
2017-06-28T18:10:31.000Z
2017-10-10T02:48:41.000Z
2-5 Testing in Elixir/coder/lib/coder/encoder.ex
tutsplus/get-started-with-elixir
f45ccf064c664d0cad01a07b71457ba299717a1e
[ "BSD-2-Clause" ]
1
2018-12-29T06:30:55.000Z
2022-02-22T23:16:23.000Z
2-5 Testing in Elixir/coder/lib/coder/encoder.ex
tutsplus/get-started-with-elixir
f45ccf064c664d0cad01a07b71457ba299717a1e
[ "BSD-2-Clause" ]
1
2019-12-12T06:38:36.000Z
2019-12-12T06:38:36.000Z
defmodule Coder.Encoder do @doc """ Encodes a string by reversing it ## Examples iex>Coder.Encoder.encode("Hello Elixir!") "!rixilE olleH" """ def encode(text) do # Application.get_env(:coder, :prefix) <> String.reverse(text) # Application.get_env(:coder, __MODULE__)[:prefix] <> String.rever...
24.75
94
0.640693
d5c582a27e42d4df45ac238f8cbc2c3f885eb732
1,776
ex
Elixir
apps/examples/lib/examples/ping_pong/manage_order_update.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/examples/lib/examples/ping_pong/manage_order_update.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/examples/lib/examples/ping_pong/manage_order_update.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Examples.PingPong.ManageOrderUpdate do alias Tai.{Advisor, Advisors} alias Examples.PingPong @type order :: Tai.Orders.Order.t() @type run_store :: Advisor.run_store() @type state :: Advisor.State.t() @spec entry_order_updated(run_store, prev :: order, state) :: {:ok, run_store} def entry_orde...
29.6
95
0.697072
d5c587568dbe11086f6db5efeae9305c6a7b8f7a
952
exs
Elixir
config/config.exs
aridjar-umbrella-guide/admin
21050a3e8957116ef35f03ff8b8b1b46f68e632a
[ "MIT" ]
null
null
null
config/config.exs
aridjar-umbrella-guide/admin
21050a3e8957116ef35f03ff8b8b1b46f68e632a
[ "MIT" ]
1
2021-03-09T01:41:00.000Z
2021-03-09T01:41:00.000Z
config/config.exs
aridjar-umbrella-guide/admin
21050a3e8957116ef35f03ff8b8b1b46f68e632a
[ "MIT" ]
1
2019-04-17T17:06:14.000Z
2019-04-17T17:06:14.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. # General application configuration use Mix.Config # Configures the endpoint config :admin, AdminWe...
34
86
0.768908
d5c590c95d65d0e3f9473c97630a29bb69c554a6
1,279
exs
Elixir
test/xema/atom_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/xema/atom_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/xema/atom_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule Xema.AtomTest do use ExUnit.Case, async: true import Xema, only: [valid?: 2, validate: 2] alias Xema.ValidationError describe "atom schema" do setup do %{schema: Xema.new(:atom)} end test "validate/2 with an atom", %{schema: schema} do assert validate(schema, :foo) == :ok ...
24.596154
71
0.50821
d5c59aa39f3673407bc047e1c1daa121e40db778
22
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/Associativity.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_three_operation_parsing_test_case/Associativity.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_three_operation_parsing_test_case/Associativity.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
One ^^^ Two ^^^ Three
11
21
0.5
d5c59e8bc3f48dfc9f664c6ea81927f71e552006
2,430
exs
Elixir
apps/ewallet/test/ewallet/exporters/adapters/gcs_adapter_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/exporters/adapters/gcs_adapter_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/exporters/adapters/gcs_adapter_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 ...
27.931034
87
0.665432
d5c5a7ba017a039f1231ade543e5bf794590b122
1,585
ex
Elixir
lib/bokken_web/endpoint.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
7
2020-10-19T14:06:46.000Z
2022-02-19T09:53:02.000Z
lib/bokken_web/endpoint.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
5
2017-08-24T10:38:46.000Z
2021-05-26T16:48:22.000Z
lib/bokken_web/endpoint.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
2
2017-08-25T18:38:11.000Z
2021-07-15T00:57:33.000Z
defmodule BokkenWeb.Endpoint do use Phoenix.Endpoint, otp_app: :bokken @app :bokken # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, se...
25.564516
97
0.69653
d5c5a81bca71db1dcf598b31307ec0eb2b65df68
2,149
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/exit_event.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/exit_event.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/exit_event.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...
33.061538
111
0.693811
d5c5ddfe45acce3934afb4c140fdd64b7025be04
4,714
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router_bgp_peer.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/router_bgp_peer.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router_bgp_peer.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &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 ...
59.670886
446
0.724438
d5c620058d19373c0bb762edd123cecd043e7f30
1,975
exs
Elixir
test/play.exs
jschoch/zdb
89b361e624a1c20f503dc237570ca0fd5ea1fd8c
[ "MIT" ]
11
2015-01-04T12:47:21.000Z
2016-06-27T13:16:46.000Z
test/play.exs
jschoch/zdb
89b361e624a1c20f503dc237570ca0fd5ea1fd8c
[ "MIT" ]
5
2015-04-12T11:57:44.000Z
2016-01-21T21:01:24.000Z
test/play.exs
jschoch/zdb
89b361e624a1c20f503dc237570ca0fd5ea1fd8c
[ "MIT" ]
null
null
null
defmodule PlayTest do use ExUnit.Case require Logger @table "play_table" setup do IO.puts "SETUP start" Zdb.delete_table(@table,:no_raise) Zdb.create(@table) IO.puts "SETUP stop" :ok end test "playing with syntax" do # put a few items #a = [unf: "unf", snu: "snusnu"] #item =...
26.689189
72
0.574177
d5c643c80ea3aeb8a90ff8cf3c379af926907de3
476
ex
Elixir
lib/cizen/effects/end.ex
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
lib/cizen/effects/end.ex
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
lib/cizen/effects/end.ex
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
defmodule Cizen.Effects.End do @moduledoc """ An effect to end a saga. Returns the saga ID. ## Example saga_id = perform %End{ saga_id: some_saga_id } """ @keys [:saga_id] @enforce_keys @keys defstruct @keys alias Cizen.Effect alias Cizen.Saga use Effect @impl true de...
14.875
47
0.630252
d5c6503b6247942b1f02ba8e5414b290da1606e9
366
ex
Elixir
test/support/calcinator/resources/ecto/repo/test_comments.ex
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
null
null
null
test/support/calcinator/resources/ecto/repo/test_comments.ex
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
1
2018-09-24T21:48:46.000Z
2018-09-24T21:48:46.000Z
test/support/calcinator/resources/ecto/repo/test_comments.ex
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
null
null
null
defmodule Calcinator.Resources.Ecto.Repo.TestComments do @moduledoc """ `Calcinator.Resources.Ecto.Repo.TestComment` resources """ use Calcinator.Resources.Ecto.Repo alias Calcinator.Resources.{Ecto.Repo.Repo, TestComment} # Functions ## Calcinator.Resources.Ecto.Repo callbacks def ecto_schema_modu...
20.333333
58
0.759563
d5c653b56b1d3035df02ff12b0f63ab786928975
673
ex
Elixir
lib/elixir_keeb/structs/key_change.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
9
2020-07-07T15:57:55.000Z
2021-08-12T04:59:44.000Z
lib/elixir_keeb/structs/key_change.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
null
null
null
lib/elixir_keeb/structs/key_change.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
1
2021-07-16T13:49:00.000Z
2021-07-16T13:49:00.000Z
defmodule ElixirKeeb.Structs.KeyChange do alias ElixirKeeb.Utils import ElixirKeeb.PhysicalKeycodes, only: [kc_xy?: 1] @states [:pressed, :released] @fields [ :kc_xy, :keycode, :state, :read_at ] # this struct will be created by the listener, # who doesn't know how to translate kc_...
19.228571
57
0.624071
d5c672257c0effda8f3dc30e6333a3e202ec0713
2,762
ex
Elixir
farmbot_core/lib/farmbot_core/asset_workers/peripheral_worker.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_workers/peripheral_worker.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_workers/peripheral_worker.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.Peripheral do use GenServer require Logger alias FarmbotCore.{Asset.Peripheral, BotState} alias FarmbotCeleryScript.AST @retry_ms 1_000 @impl true def preload(%Peripheral{}), do: [] @impl true def tracks_changes?(%Peripheral{}), do: false ...
31.386364
123
0.669442
d5c68541045edf3f7b5977bba148156e11e8b465
871
ex
Elixir
lib/changelog_web/views/home_view.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
lib/changelog_web/views/home_view.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
lib/changelog_web/views/home_view.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule ChangelogWeb.HomeView do use ChangelogWeb, :public_view alias ChangelogWeb.{PersonView, PodcastView} def newsletter_link(newsletter, assigns) do list = newsletter.list_id cond do assigns.subscribed == list -> unsubscribe_link(assigns.conn, list) assigns.unsubscribed == li...
24.194444
86
0.675086
d5c6bc6c63c83a4403b69884dedac231fdfaebbf
315
exs
Elixir
config/set_env_vars.exs
Soonad/Bitlog
17f41b591169dca7412b9790e8f20abf11b46313
[ "MIT" ]
2
2019-12-03T10:38:38.000Z
2019-12-04T23:52:11.000Z
config/set_env_vars.exs
moonad/Bitlog
17f41b591169dca7412b9790e8f20abf11b46313
[ "MIT" ]
null
null
null
config/set_env_vars.exs
moonad/Bitlog
17f41b591169dca7412b9790e8f20abf11b46313
[ "MIT" ]
null
null
null
set = &System.put_env(&1, System.get_env("SET_#{&1}", &2)) set.("PUBLIC_HOST", "localhost") set.("PUBLIC_PATH", "/") set.("PUBLIC_PORT", "4000") set.("PUBLIC_SCHEME", "http") set.("DATABASE_URL", "postgresql://postgres:postgres@localhost/bitlog_#{Mix.env()}") set.("DATABASE_POOL_SIZE", "2") set.("PORT", "4000")
28.636364
84
0.657143
d5c6f8a90f5e4a6f4da96ee330fa2a5fc8989820
382
ex
Elixir
examples/example-phx-1_3/lib/example_phx_web/views/error_view.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
681
2016-06-21T20:49:21.000Z
2022-02-19T04:08:38.000Z
examples/example-phx-1_3/lib/example_phx_web/views/error_view.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
125
2016-06-21T21:14:49.000Z
2020-12-12T20:15:48.000Z
examples/example-phx-1_3/lib/example_phx_web/views/error_view.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
76
2016-09-06T03:40:55.000Z
2022-01-20T21:29:22.000Z
defmodule ExamplePhxWeb.ErrorView do use ExamplePhxWeb, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_t...
21.222222
47
0.706806
d5c6fbac799417e5d186ed0a4664227700a302f3
422
ex
Elixir
lib/ex_notification/auth.ex
maxneuvians/ex_notification
6d024bbd08d9875c918b044a3f49f62cf85842d0
[ "MIT" ]
1
2021-11-30T20:44:22.000Z
2021-11-30T20:44:22.000Z
lib/ex_notification/auth.ex
maxneuvians/ex_notification
6d024bbd08d9875c918b044a3f49f62cf85842d0
[ "MIT" ]
null
null
null
lib/ex_notification/auth.ex
maxneuvians/ex_notification
6d024bbd08d9875c918b044a3f49f62cf85842d0
[ "MIT" ]
null
null
null
defmodule ExNotification.Auth do @moduledoc """ Middleware to add the JWT Bearer token to the request """ @behaviour Tesla.Middleware @doc """ Creates a new JWT token and injects it in as a header to the request """ def call(env, next, _) do {:ok, token, _} = ExNotification.Token.generate() e...
23.444444
65
0.654028
d5c740ccaf79fc9a020c085879cb46618f8699cc
303
ex
Elixir
learn/common/fraction.ex
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
learn/common/fraction.ex
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
learn/common/fraction.ex
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
defmodule Fraction do defstruct a: nil, b: nil def new(a, b) when is_integer(a) and is_integer(b) do %Fraction{a: a, b: b} end def value(%Fraction{a: a, b: b}) do a / b end def add(%Fraction{a: a1, b: b1}, %Fraction{a: a2, b: b2}) do new(a1 * b2 + a2 * b1, b1 * b2) end end
18.9375
62
0.574257
d5c79497085f31d57a8b78edd119977ee1b82f37
400
exs
Elixir
test/elibot/conn_test.exs
PerishableDave/elibot
174c5c211486cdb886e875f9be311f3f155de8fc
[ "MIT" ]
null
null
null
test/elibot/conn_test.exs
PerishableDave/elibot
174c5c211486cdb886e875f9be311f3f155de8fc
[ "MIT" ]
null
null
null
test/elibot/conn_test.exs
PerishableDave/elibot
174c5c211486cdb886e875f9be311f3f155de8fc
[ "MIT" ]
null
null
null
defmodule Elibot.ConnTest do use ExUnit.Case alias Elibot.Conn defmodule MockWebSocket do def send({:text, "{\"type\":\"message\",\"text\":\"message\",\"channel\":123}"}, conn) do :ok end end test "send message" do conn = :websocket_req.new(:wss, "test", 80 ,"path", nil, nil, nil, nil) ...
23.529412
93
0.6325
d5c79768b96789fa80a85e81a81da65353af4c78
1,745
ex
Elixir
lib/elixir/metrics.ex
rubensr91/elixir-helper
b1dc8dddfce00faf667d697ba6734386d56e88fb
[ "Apache-2.0" ]
1
2019-07-04T18:12:47.000Z
2019-07-04T18:12:47.000Z
lib/elixir/metrics.ex
rubensr91/elixir-helper
b1dc8dddfce00faf667d697ba6734386d56e88fb
[ "Apache-2.0" ]
61
2019-10-21T05:06:04.000Z
2021-08-02T04:53:07.000Z
lib/elixir/metrics.ex
rubensr91/elixir-helper
b1dc8dddfce00faf667d697ba6734386d56e88fb
[ "Apache-2.0" ]
null
null
null
defmodule ElixirHelper.Metrics do use Prometheus.Metric alias Prometheus.InvalidMetricArityError alias Prometheus.InvalidValueError alias Prometheus.Metric.Counter alias Prometheus.UnknownMetricError @type prometheus_error :: {:error, :invalid_metric_arity | :invalid_value | :unknown_metric} ...
25.661765
76
0.629799
d5c7a375726e8f61f26b80dfb9195fedd94d4733
3,002
exs
Elixir
apps/omg/test/omg/crypto_test.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg/test/omg/crypto_test.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg/test/omg/crypto_test.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2021-12-04T00:37:46.000Z
2021-12-04T00:37:46.000Z
# Copyright 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 writi...
36.609756
138
0.693538
d5c7a394e60f58aba6aab8835f167a5dd72fb545
5,117
ex
Elixir
lib/type_check/builtin/fixed_map.ex
0urobor0s/elixir-type_check
6bac178f4a55798034b12c1dcfb219eabcfb35c0
[ "MIT" ]
null
null
null
lib/type_check/builtin/fixed_map.ex
0urobor0s/elixir-type_check
6bac178f4a55798034b12c1dcfb219eabcfb35c0
[ "MIT" ]
null
null
null
lib/type_check/builtin/fixed_map.ex
0urobor0s/elixir-type_check
6bac178f4a55798034b12c1dcfb219eabcfb35c0
[ "MIT" ]
null
null
null
defmodule TypeCheck.Builtin.FixedMap do @moduledoc """ Checks whether the value is a list with the expected elements On failure returns a problem tuple with: - `:not_a_map` if the value is not a map - `:missing_keys` if the value does not have all of the expected keys. The extra information contains in this ...
33.664474
171
0.58804
d5c7f7cb8c6cc700feee1016db30a127d93c6b57
13,578
ex
Elixir
lib/porcelain.ex
mad42/porcelain
d240c7946e12f7fc878a6663b4e31952c78dc1da
[ "MIT" ]
911
2015-01-16T23:05:08.000Z
2022-03-29T18:17:09.000Z
lib/porcelain.ex
mad42/porcelain
d240c7946e12f7fc878a6663b4e31952c78dc1da
[ "MIT" ]
42
2015-01-19T22:23:02.000Z
2021-12-23T12:34:37.000Z
lib/porcelain.ex
mad42/porcelain
d240c7946e12f7fc878a6663b4e31952c78dc1da
[ "MIT" ]
52
2015-01-17T03:38:52.000Z
2022-01-24T09:17:19.000Z
defmodule Porcelain do @moduledoc """ The main module exposing the public API of Porcelain. ## Basic concepts Functions in this module can either spawn external programs directly (`exec/3` and `spawn/3`) or using a system shell (`shell/2` and `spawn_shell/2`). Functions `exec/3` and `shell/2` are synch...
32.023585
96
0.627559
d5c81d5ba3154f3f4f5ced5661efea6018de6cf3
100
ex
Elixir
lib/gen/elixir/protocol.ex
ProtoDef-io/elixir-protodef
9176d2439d66c713a5db7f57f26dfc5dc18f8d6f
[ "MIT" ]
2
2016-03-31T16:23:39.000Z
2016-05-20T17:42:38.000Z
lib/gen/elixir/protocol.ex
McEx/ProtoDef
9176d2439d66c713a5db7f57f26dfc5dc18f8d6f
[ "MIT" ]
1
2016-04-02T08:54:49.000Z
2016-04-02T08:54:49.000Z
lib/gen/elixir/protocol.ex
McEx/ProtoDef
9176d2439d66c713a5db7f57f26dfc5dc18f8d6f
[ "MIT" ]
null
null
null
defprotocol ProtoDef.Gen.Elixir.Protocol do def decoder(descr, ctx) def encoder(descr, ctx) end
20
43
0.77
d5c82d6389fd74b67b5adfc5de36a79f0fd97e2e
1,814
ex
Elixir
chapter_3_modules/translator.ex
dev-cyprium/metaprogramming_elixir
5035ba82d1a794d032dc5eb7f8b4eaa4b550fd36
[ "MIT" ]
null
null
null
chapter_3_modules/translator.ex
dev-cyprium/metaprogramming_elixir
5035ba82d1a794d032dc5eb7f8b4eaa4b550fd36
[ "MIT" ]
null
null
null
chapter_3_modules/translator.ex
dev-cyprium/metaprogramming_elixir
5035ba82d1a794d032dc5eb7f8b4eaa4b550fd36
[ "MIT" ]
null
null
null
defmodule Translator do defmacro __using__(_opts) do quote do Module.register_attribute __MODULE__, :locales, accumulate: true, persist: false import unquote(__MODULE__), only: [locale: 2] @before_compile unquote(__MODULE__) end end defmacro __before_compile__(env) do compile(Modul...
27.074627
86
0.62624
d5c83b82b03e1a6f6a7af2f6be11f8aceaa034db
385
ex
Elixir
lib/coney/consumer_supervisor.ex
segaz2002/coney
7b98a1b4f0da4d316fd2118ba6394779212563ed
[ "MIT" ]
1
2020-04-28T11:28:26.000Z
2020-04-28T11:28:26.000Z
lib/coney/consumer_supervisor.ex
DanilParshukov/coney
12b089dece6f28d4d9ee1181f3e52f8ec8ffbdcd
[ "MIT" ]
null
null
null
lib/coney/consumer_supervisor.ex
DanilParshukov/coney
12b089dece6f28d4d9ee1181f3e52f8ec8ffbdcd
[ "MIT" ]
null
null
null
defmodule Coney.ConsumerSupervisor do use Supervisor def start_link do Supervisor.start_link(__MODULE__, []) end def init([]) do children = [ worker(Coney.ConsumerServer, []) ] supervise(children, strategy: :simple_one_for_one) end def start_consumer(pid, consumer, connection) do ...
19.25
55
0.703896
d5c854e618e29628a645fafad216e52a6a38b541
1,541
ex
Elixir
lib/beacon/loader/layout_module_loader.ex
BeaconCMS/beacon
eaa09feeb26473a04c3a7107d12ac5e86b237537
[ "MIT" ]
98
2021-12-22T04:37:58.000Z
2022-02-27T22:53:25.000Z
lib/beacon/loader/layout_module_loader.ex
BeaconCMS/beacon
eaa09feeb26473a04c3a7107d12ac5e86b237537
[ "MIT" ]
5
2021-12-24T01:10:11.000Z
2022-03-25T17:35:37.000Z
lib/beacon/loader/layout_module_loader.ex
BeaconCMS/beacon
eaa09feeb26473a04c3a7107d12ac5e86b237537
[ "MIT" ]
7
2021-12-24T01:09:36.000Z
2022-03-01T14:46:41.000Z
defmodule Beacon.Loader.LayoutModuleLoader do require Logger alias Beacon.Layouts.Layout alias Beacon.Loader.ModuleLoader def load_layouts(site, layouts) do component_module = Beacon.Loader.component_module_for_site(site) module = Beacon.Loader.layout_module_for_site(site) render_functions = ...
27.035088
107
0.664504
d5c87fde8032245c75ce7429fc5d2ea17bc4034e
553
ex
Elixir
lib/mongooseice/evaluator/binding/request.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
90
2017-09-26T12:20:06.000Z
2022-01-30T17:58:11.000Z
lib/mongooseice/evaluator/binding/request.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
39
2017-01-20T08:54:13.000Z
2017-09-13T11:30:14.000Z
lib/mongooseice/evaluator/binding/request.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
13
2018-03-29T07:03:25.000Z
2022-03-06T10:21:45.000Z
defmodule MongooseICE.Evaluator.Binding.Request do @moduledoc false import MongooseICE.Evaluator.Helper alias Jerboa.Format alias Jerboa.Params alias MongooseICE.TURN @spec service(Params.t, MongooseICE.client_info, MongooseICE.UDP.server_opts, TURN.t) :: Params.t def service(params, %{ip: a, port: ...
23.041667
87
0.690778
d5c88d1d60a64ca8b5adf18dd5f46b7d98e877f9
72
exs
Elixir
bench_pg/Elixir/retailixir/test/test_helper.exs
cassinius/api-bench
d6f578c2096b5057de28541c5c527a2f2fe9ae99
[ "MIT" ]
null
null
null
bench_pg/Elixir/retailixir/test/test_helper.exs
cassinius/api-bench
d6f578c2096b5057de28541c5c527a2f2fe9ae99
[ "MIT" ]
27
2020-04-20T06:05:50.000Z
2021-12-09T22:06:37.000Z
bench_pg/Elixir/retailixir/test/test_helper.exs
cassinius/api-bench
d6f578c2096b5057de28541c5c527a2f2fe9ae99
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Retailixir.Repo, :manual)
24
56
0.791667
d5c89c7eba4c8557a1ae4024b42ff79c6a1cb964
772
exs
Elixir
apps/elixir_ls_utils/mix.exs
wingyplus/elixir-ls
b3f00a5332d7886816df8056a3a8297c4eb447b2
[ "Apache-2.0" ]
null
null
null
apps/elixir_ls_utils/mix.exs
wingyplus/elixir-ls
b3f00a5332d7886816df8056a3a8297c4eb447b2
[ "Apache-2.0" ]
null
null
null
apps/elixir_ls_utils/mix.exs
wingyplus/elixir-ls
b3f00a5332d7886816df8056a3a8297c4eb447b2
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.Utils.Mixfile do use Mix.Project def project do [ app: :elixir_ls_utils, version: "0.3.2", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", elixirc_paths: ["lib", "test/support"], lockfile: "../../mix.lock"...
22.705882
74
0.590674
d5c8a6552c73760d6ce56268366d0ddb8f4b6287
1,739
ex
Elixir
elixir/lib/homework_web/schemas/merchants_schema.ex
hogiyogi597/web-homework
d394458b7e0761301451ed51f69fd6a9629fba76
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/merchants_schema.ex
hogiyogi597/web-homework
d394458b7e0761301451ed51f69fd6a9629fba76
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/merchants_schema.ex
hogiyogi597/web-homework
d394458b7e0761301451ed51f69fd6a9629fba76
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.Schemas.MerchantsSchema do @moduledoc """ Defines the graphql schema for merchants. """ use Absinthe.Schema.Notation alias HomeworkWeb.Resolvers.MerchantsResolver object :merchant do field(:id, non_null(:id)) field(:name, :string) field(:description, :string) field(:i...
24.152778
51
0.669925
d5c8ae83a1c0dc05df02400344e62f9c50cce80c
1,358
ex
Elixir
apps/elixir_ls_utils/lib/launch.ex
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
865
2018-10-31T20:29:13.000Z
2022-03-29T11:13:39.000Z
apps/elixir_ls_utils/lib/launch.ex
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
441
2019-01-05T02:33:52.000Z
2022-03-30T20:56:50.000Z
apps/elixir_ls_utils/lib/launch.ex
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
126
2018-11-12T19:16:53.000Z
2022-03-26T13:27:50.000Z
defmodule ElixirLS.Utils.Launch do @compiled_elixir_version System.version() @compiled_otp_version System.otp_release() def start_mix do # FIXME: Private API Mix.start() # FIXME: Private API Mix.Local.append_archives() # FIXME: Private API Mix.Local.append_paths() load_dot_config() ...
22.633333
68
0.66863
d5c8d1d832a1ca32d4e9d3090c045b8597fb510e
7,471
ex
Elixir
lib/automata/automaton_types/graphical/behavior_tree/control/composite_server.ex
upstarter/automata
c97badb2ea4ff7fef3bb35fe3311ae80d26f576a
[ "Apache-2.0" ]
150
2020-02-04T15:10:52.000Z
2022-02-19T15:33:17.000Z
lib/automata/automaton_types/graphical/behavior_tree/control/composite_server.ex
upstarter/automata
c97badb2ea4ff7fef3bb35fe3311ae80d26f576a
[ "Apache-2.0" ]
31
2020-02-09T01:37:23.000Z
2020-05-21T01:50:14.000Z
lib/automata/automaton_types/graphical/behavior_tree/control/composite_server.ex
upstarter/automata
c97badb2ea4ff7fef3bb35fe3311ae80d26f576a
[ "Apache-2.0" ]
8
2020-02-06T04:42:20.000Z
2022-01-21T00:21:20.000Z
defmodule Automaton.Types.BT.CompositeServer do @moduledoc """ When a child behavior is complete and returns its status code the Composite decides whether to continue through its children or whether to stop there and then and return a value. The behavior tree represents all possible Actions that your AI can ...
29.529644
106
0.512917
d5c8d32ac2538aed4b2b4812f2fc53a9f120610b
300
exs
Elixir
priv/repo/migrations/20210207071615_create_users.exs
yammine/YAMM
c118eab5029b86c2caf24890dfffa8437684f5d1
[ "MIT" ]
null
null
null
priv/repo/migrations/20210207071615_create_users.exs
yammine/YAMM
c118eab5029b86c2caf24890dfffa8437684f5d1
[ "MIT" ]
null
null
null
priv/repo/migrations/20210207071615_create_users.exs
yammine/YAMM
c118eab5029b86c2caf24890dfffa8437684f5d1
[ "MIT" ]
null
null
null
defmodule YAMM.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users, primary_key: false) do add :id, :binary_id, primary_key: true add :slack_user_id, :string timestamps() end create unique_index(:users, [:slack_user_id]) end end
20
49
0.69
d5c8d875bc2c1240d344875916017e8688a189e8
12,463
ex
Elixir
lib/arangoex/simple.ex
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
24
2016-11-02T14:53:55.000Z
2021-12-25T13:08:09.000Z
lib/arangoex/simple.ex
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
22
2016-12-06T15:09:50.000Z
2022-03-24T02:16:20.000Z
lib/arangoex/simple.ex
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
8
2016-12-12T21:27:25.000Z
2019-05-24T04:27:30.000Z
defmodule Arangoex.Simple do @moduledoc """ ArangoDB HTTP Interface for Simple Queries ## TODO * Implement function for `PUT /_api/simple/within-rectangle` * Specify typespecs """ # use Arangoex, base_url: ["/", "_api", "/", "simple"] # alias Arangoex.{JSON,Response} @doc """ Returns the first do...
29.67381
110
0.671829
d5c8de71aad9b389a1fdaf3d1274389b137acabc
3,425
ex
Elixir
apps/man_api/lib/man_api/templates/renderer.ex
edenlabllc/man.api.public
010016c5ecc209413a56ee1f8e9e6fa31da8de18
[ "MIT" ]
null
null
null
apps/man_api/lib/man_api/templates/renderer.ex
edenlabllc/man.api.public
010016c5ecc209413a56ee1f8e9e6fa31da8de18
[ "MIT" ]
null
null
null
apps/man_api/lib/man_api/templates/renderer.ex
edenlabllc/man.api.public
010016c5ecc209413a56ee1f8e9e6fa31da8de18
[ "MIT" ]
null
null
null
defmodule Man.Templates.Renderer do @moduledoc false alias Man.Cache alias Man.Templates.Template alias Man.Templates.Template.Locale alias NExJsonSchema.Validator @doc """ Renders a template. ## Examples iex> render_template(template, attrs) {:ok, html} iex> render_template(templ...
29.525862
109
0.635328
d5c90b08587a6a9e4cf17044b3ee833b80b94d89
348
exs
Elixir
config/.credo.exs
ex-security-advisory/api
75674d42efd3b9f2406233e36244d5cb5f174971
[ "MIT" ]
5
2019-01-03T18:33:40.000Z
2021-01-25T10:15:06.000Z
config/.credo.exs
ex-security-advisory/api
75674d42efd3b9f2406233e36244d5cb5f174971
[ "MIT" ]
15
2018-12-27T16:59:06.000Z
2019-01-04T17:34:38.000Z
config/.credo.exs
ex-security-advisory/api
75674d42efd3b9f2406233e36244d5cb5f174971
[ "MIT" ]
null
null
null
%{ configs: [ %{ name: "default", files: %{ included: [ "apps/*/lib/**/*.ex", "apps/*/test/**/*.ex", "apps/*/test/**/*.exs", "apps/*/.formatter.exs", "apps/*/mix.exs", "config/*.exs", "mix.exs", ".formatter.exs" ...
17.4
34
0.327586
d5c9406edf60650b52089e4be5c9db5524fe1ed2
2,397
ex
Elixir
elixir/advent_of_code/lib/day2.ex
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
2
2020-01-02T12:59:44.000Z
2020-01-04T19:21:31.000Z
elixir/advent_of_code/lib/day2.ex
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
null
null
null
elixir/advent_of_code/lib/day2.ex
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
null
null
null
defmodule Day2 do @moduledoc """ iex -S mix file = File.read!("../../inputs/day2.input") Day2.part1(file) """ def part1(input) do input |> parse |> initial_setup |> IO.inspect(label: "Part1 original list", limit: :infinity) |> compute end def part2(input) do program = ...
24.212121
72
0.532332
d5c94e8a18e1aa7c2896c41b8d74ac98c934e2b4
1,545
exs
Elixir
test/fireball_web/schema/game_types_test.exs
Catharz/fireball
bb9f123c0d2d71b16eda01d3838565e6e762de20
[ "MIT" ]
null
null
null
test/fireball_web/schema/game_types_test.exs
Catharz/fireball
bb9f123c0d2d71b16eda01d3838565e6e762de20
[ "MIT" ]
null
null
null
test/fireball_web/schema/game_types_test.exs
Catharz/fireball
bb9f123c0d2d71b16eda01d3838565e6e762de20
[ "MIT" ]
null
null
null
defmodule FireballWeb.Schema.GameTypesTest do use ExUnit.Case use Absinthe.Schema.Notation setup do {:ok, query: Absinthe.Schema.lookup_type(FireballWeb.Schema, "GameQueries"), response: Absinthe.Schema.lookup_type(FireballWeb.Schema, "Game")} end test "ActiveGames returns a list of games", co...
30.294118
77
0.713916
d5c97ce7811035103032ce50c9ff0fee73cbaae7
915
ex
Elixir
apps/theta/lib/theta/cms/term.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
apps/theta/lib/theta/cms/term.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
11
2020-07-21T09:34:54.000Z
2021-08-29T07:38:02.000Z
apps/theta/lib/theta/cms/term.ex
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
defmodule Theta.CMS.Term do use Ecto.Schema import Ecto.Changeset alias Theta.CMS.{Taxonomy, Article} alias Theta.PV.PathAlias alias Theta.Repo @primary_key {:id, :string, []} schema "term" do field :name, :string field :description, :string belongs_to :taxonomy, Taxonomy, type: :string ...
24.72973
95
0.67541
d5c981107e057e7ba4b1611ecdd4122cb26e91f9
1,726
ex
Elixir
lib/google_api/translate/v3beta1/model/supported_languages.ex
dungkvy/google_api_translate
3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a
[ "Apache-2.0" ]
null
null
null
lib/google_api/translate/v3beta1/model/supported_languages.ex
dungkvy/google_api_translate
3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a
[ "Apache-2.0" ]
null
null
null
lib/google_api/translate/v3beta1/model/supported_languages.ex
dungkvy/google_api_translate
3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a
[ "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...
34.52
177
0.754925
d5c99907e00dcd549d431040d1c6196afd67c3d5
2,600
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__speech_transcription.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__speech_transcription.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__speech_transcription.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
404
0.758077
d5c9cf45324f939d0d2cdffbd50a6a914144cf76
14,885
ex
Elixir
lib/petal_components/button.ex
c4710n/petal_components
62392b067a4dec8ce76219eea0bfe6a6747925ce
[ "MIT" ]
215
2021-11-04T23:47:18.000Z
2022-03-31T11:53:15.000Z
lib/petal_components/button.ex
c4710n/petal_components
62392b067a4dec8ce76219eea0bfe6a6747925ce
[ "MIT" ]
22
2021-11-06T01:49:27.000Z
2022-03-28T03:05:40.000Z
lib/petal_components/button.ex
c4710n/petal_components
62392b067a4dec8ce76219eea0bfe6a6747925ce
[ "MIT" ]
22
2021-11-16T20:44:33.000Z
2022-03-28T11:46:33.000Z
defmodule PetalComponents.Button do use Phoenix.Component alias PetalComponents.Loading alias PetalComponents.Heroicons alias PetalComponents.Link import PetalComponents.Class # prop class, :string # prop color, :string, options: ["primary", "secondary", "info", "success", "warning", "danger", "gray"] ...
46.083591
501
0.693853
d5c9d106ee42c1a086b4881cc2c5135f938c3ccd
156
exs
Elixir
test/ueberauth_hpid_test.exs
mdillavou/ueberauth_hpid
a641aea6499e779fafe6d436ca8e765885a04a39
[ "MIT" ]
null
null
null
test/ueberauth_hpid_test.exs
mdillavou/ueberauth_hpid
a641aea6499e779fafe6d436ca8e765885a04a39
[ "MIT" ]
null
null
null
test/ueberauth_hpid_test.exs
mdillavou/ueberauth_hpid
a641aea6499e779fafe6d436ca8e765885a04a39
[ "MIT" ]
null
null
null
defmodule UeberauthHPIDTest do use ExUnit.Case doctest UeberauthHPID test "greets the world" do assert UeberauthHPID.hello() == :world end end
17.333333
42
0.74359
d5c9d65ed8381d9d0663a3e9d111e54741d81aee
3,503
exs
Elixir
test/json_schema_test_suite/draft7/contains_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft7/contains_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft7/contains_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft7.ContainsTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|contains keyword validation| do setup do %{ schema: Xema.from_json_schema( %{"contains" => %{"minimum" => 5}}, draft: "draft7", atom: :f...
24.496503
87
0.547531
d5c9e06a88c26aa9b6ac1e1f4195ea4a34cd1e3c
748
ex
Elixir
lib/future_made_concerts_web/views/player_view.ex
Future-Made/concerts-for-impact
5532cd1be5252fa0ccb0b956f0961be8701e0e04
[ "MIT" ]
null
null
null
lib/future_made_concerts_web/views/player_view.ex
Future-Made/concerts-for-impact
5532cd1be5252fa0ccb0b956f0961be8701e0e04
[ "MIT" ]
null
null
null
lib/future_made_concerts_web/views/player_view.ex
Future-Made/concerts-for-impact
5532cd1be5252fa0ccb0b956f0961be8701e0e04
[ "MIT" ]
null
null
null
defmodule FutureMadeConcertsWeb.PlayerView do @moduledoc false use FutureMadeConcertsWeb, :view alias FutureMadeConcerts.Spotify.Schema.{Episode, Track} @spec name(Track.t() | Episode.t()) :: String.t() defp name(%Episode{name: name}), do: name defp name(%Track{name: name}), do: name @spec authors(Trac...
27.703704
74
0.668449
d5c9e2ae38cc741148538adb2e10ea88f5b617ae
1,254
exs
Elixir
test/auto_api/states/wi_fi_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
4
2018-01-19T16:11:10.000Z
2019-12-13T16:35:10.000Z
test/auto_api/states/wi_fi_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
5
2020-07-16T07:20:21.000Z
2021-09-22T10:18:04.000Z
test/auto_api/states/wi_fi_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
1
2021-02-17T18:36:13.000Z
2021-02-17T18:36:13.000Z
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
46.444444
79
0.777512
d5ca0b14f928dc217a0e36b1cdb2e441527efac3
7,536
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_properties.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/compute/lib/google_api/compute/v1/model/instance_properties.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_properties.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...
75.36
467
0.733148
d5ca2c0463fec18c051faeb82aa6a96efcbcd39f
412
exs
Elixir
test/models/post_tag_test.exs
underhilllabs/big_snips
7f1b59d2be45fe6a488d8e3ce7842e7cc867d676
[ "MIT" ]
3
2016-12-20T17:16:39.000Z
2017-02-22T11:06:56.000Z
test/models/post_tag_test.exs
underhilllabs/big_snips
7f1b59d2be45fe6a488d8e3ce7842e7cc867d676
[ "MIT" ]
1
2017-05-31T16:32:41.000Z
2017-05-31T16:32:41.000Z
test/models/post_tag_test.exs
underhilllabs/big_snips
7f1b59d2be45fe6a488d8e3ce7842e7cc867d676
[ "MIT" ]
null
null
null
defmodule BigSnips.PostTagTest do use BigSnips.ModelCase alias BigSnips.PostTag @valid_attrs %{} @invalid_attrs %{} test "changeset with valid attributes" do changeset = PostTag.changeset(%PostTag{}, @valid_attrs) assert changeset.valid? end test "changeset with invalid attributes" do chan...
21.684211
61
0.730583