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
939630e923ee189b1933713e307525aaabe72503
850
ex
Elixir
squitter/lib/squitter/decoding/comm_b_alt_reply/decoder.ex
electricshaman/squitter
7a0dfbc125118b764d192f02b42b36596f6d4ac6
[ "MIT" ]
34
2017-08-30T02:29:41.000Z
2021-05-29T20:21:43.000Z
squitter/lib/squitter/decoding/comm_b_alt_reply/decoder.ex
electricshaman/squitter
7a0dfbc125118b764d192f02b42b36596f6d4ac6
[ "MIT" ]
7
2017-09-12T05:27:23.000Z
2020-01-06T22:07:52.000Z
squitter/lib/squitter/decoding/comm_b_alt_reply/decoder.ex
electricshaman/squitter
7a0dfbc125118b764d192f02b42b36596f6d4ac6
[ "MIT" ]
9
2017-09-11T22:17:55.000Z
2022-01-31T03:07:58.000Z
defmodule Squitter.Decoding.CommBAltitudeReply do alias Squitter.StatsTracker alias Squitter.Decoding.ModeS @df 20 defstruct [:df, :icao, :msg, :checksum, :parity, :pi, :crc, :time] # TODO: Rename pi to ap. pi is on the uplink def decode(time, <<@df::5, _control::27-bits, _payload::56-bits, pi::24-unsig...
25
94
0.624706
9396716a18aabaf504eb3cb46746b534db9a4c65
65
ex
Elixir
web/views/layout_view.ex
jtrudell/yo_phoenix
d242ae5b0151bd7b6b8039e3507b8c4946acc6d4
[ "MIT" ]
null
null
null
web/views/layout_view.ex
jtrudell/yo_phoenix
d242ae5b0151bd7b6b8039e3507b8c4946acc6d4
[ "MIT" ]
null
null
null
web/views/layout_view.ex
jtrudell/yo_phoenix
d242ae5b0151bd7b6b8039e3507b8c4946acc6d4
[ "MIT" ]
null
null
null
defmodule YoPhoenix.LayoutView do use YoPhoenix.Web, :view end
16.25
33
0.8
9396740cf9e11bd0d46962ef736a47f5d2615580
1,192
ex
Elixir
lib/events_tools/accounts/user.ex
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
2
2017-10-06T01:14:35.000Z
2017-11-18T16:44:44.000Z
lib/events_tools/accounts/user.ex
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
6
2017-10-06T00:04:59.000Z
2017-10-06T00:09:27.000Z
lib/events_tools/accounts/user.ex
apps-team/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
1
2017-10-06T01:17:35.000Z
2017-10-06T01:17:35.000Z
defmodule CommunityTools.Accounts.User do use Ecto.Schema import Ecto.Changeset alias CommunityTools.Accounts.User alias CommunityTools.Repo schema "users" do field :email, :string field :password_web, :string, virtual: true field :password, :string has_one :profile, CommunityTools.Accounts....
31.368421
157
0.739933
9396939bfcc395f651c843cc9f3ba6b01dbf05d7
2,832
ex
Elixir
clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.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...
53.433962
611
0.749294
93969d5fc829bb3419f3e2da344d2af2063f24b8
63
exs
Elixir
test/test_helper.exs
dark-elixir/dark_flows
efddf942177938d143d937caa8d9dcef5a843fb2
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
dark-elixir/dark_flows
efddf942177938d143d937caa8d9dcef5a843fb2
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
dark-elixir/dark_flows
efddf942177938d143d937caa8d9dcef5a843fb2
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_modules.exs", __DIR__) ExUnit.start()
15.75
46
0.777778
9396a1511dc37216006e225fdf8fa844d738474b
548
ex
Elixir
lib/key_web/controllers/fallback_controller.ex
joaothallis/key
10e7aa872d907ca585418ca0cd74c4c2a88de033
[ "MIT" ]
1
2018-09-09T22:30:16.000Z
2018-09-09T22:30:16.000Z
lib/key_web/controllers/fallback_controller.ex
joaothallis/key
10e7aa872d907ca585418ca0cd74c4c2a88de033
[ "MIT" ]
36
2018-09-09T15:08:05.000Z
2022-03-23T09:27:10.000Z
lib/key_web/controllers/fallback_controller.ex
joaothallis/key
10e7aa872d907ca585418ca0cd74c4c2a88de033
[ "MIT" ]
null
null
null
defmodule KeyWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use KeyWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_status(:unpr...
24.909091
72
0.695255
9396b27feb4f8e986782651be169310ce2196233
12,979
ex
Elixir
lib/ash/resource/info.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/resource/info.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
lib/ash/resource/info.ex
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
defmodule Ash.Resource.Info do @moduledoc "Introspection for resources" alias Ash.Dsl.Extension @spec set_metadata(Ash.Resource.record(), map) :: Ash.Resource.record() def set_metadata(record, map) do %{record | __metadata__: Ash.Helpers.deep_merge_maps(record.__metadata__, map)} end @spec put_metada...
31.199519
97
0.674243
9396b3cbb777f522694bbeb36cef4ba4324d9daf
124
exs
Elixir
config/test.exs
edenlabllc/nex_json_schema
f7445a1da1f470b2876e9ee28965e675c54e74c2
[ "MIT" ]
3
2016-10-25T12:10:00.000Z
2020-11-06T21:33:23.000Z
config/test.exs
edenlabllc/nex_json_schema
f7445a1da1f470b2876e9ee28965e675c54e74c2
[ "MIT" ]
12
2017-05-31T17:23:16.000Z
2020-10-21T00:58:45.000Z
config/test.exs
edenlabllc/nex_json_schema
f7445a1da1f470b2876e9ee28965e675c54e74c2
[ "MIT" ]
4
2018-06-18T23:37:53.000Z
2020-07-08T13:03:20.000Z
use Mix.Config config :nex_json_schema, :remote_schema_resolver, fn url -> HTTPoison.get!(url).body |> Jason.decode!() end
31
107
0.75
9396c15b539c1bc0cbdd1bbe747e69b240dbeb47
876
ex
Elixir
godin_umbrella/apps/godin_web/lib/godin_web/application.ex
ruben44bac/god-n
af78dc683b58bb3a5e4dbfec2dd53887651a8aa7
[ "MIT" ]
null
null
null
godin_umbrella/apps/godin_web/lib/godin_web/application.ex
ruben44bac/god-n
af78dc683b58bb3a5e4dbfec2dd53887651a8aa7
[ "MIT" ]
null
null
null
godin_umbrella/apps/godin_web/lib/godin_web/application.ex
ruben44bac/god-n
af78dc683b58bb3a5e4dbfec2dd53887651a8aa7
[ "MIT" ]
null
null
null
defmodule GodinWeb.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the endpoint when the application starts ...
29.2
67
0.72032
9396ca9151ed525db3ef8b4fa394a0cb6086cde4
4,139
ex
Elixir
lib/daguex/temp_file.ex
secretworry/daguex
323e9eb6dfe29cb94783937e89244b6de8de7d0c
[ "Apache-2.0" ]
null
null
null
lib/daguex/temp_file.ex
secretworry/daguex
323e9eb6dfe29cb94783937e89244b6de8de7d0c
[ "Apache-2.0" ]
null
null
null
lib/daguex/temp_file.ex
secretworry/daguex
323e9eb6dfe29cb94783937e89244b6de8de7d0c
[ "Apache-2.0" ]
null
null
null
defmodule Daguex.TempFileError do defexception [:message] end defmodule Daguex.TempFile do @moduledoc false @moduledoc """ A server (a `GenServer` specifically) that manages temporary files Temporary files are stored in a temporary directory and removed from that directory after the process that reques...
27.593333
123
0.609809
9397033ebe5a6852930c281fd39cbc6fc6a42cea
12,090
exs
Elixir
test/tarams_test.exs
prithvihv/tarams
45396934d91aa624da6e3ef233d8e26236eeed2c
[ "MIT" ]
null
null
null
test/tarams_test.exs
prithvihv/tarams
45396934d91aa624da6e3ef233d8e26236eeed2c
[ "MIT" ]
null
null
null
test/tarams_test.exs
prithvihv/tarams
45396934d91aa624da6e3ef233d8e26236eeed2c
[ "MIT" ]
null
null
null
defmodule ParamTest.StringList do def cast(value) when is_binary(value) do rs = String.split(value, ",") |> Tarams.scrub_param() |> Tarams.clean_nil() {:ok, rs} end def cast(_), do: :error end defmodule ParamTest do use ExUnit.Case alias Tarams defmodule Address do defstruc...
29.487805
98
0.481803
939704ae937bfa64ccf8bca925d3d3aaf6b2f566
582
exs
Elixir
examples/bulk.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
384
2015-03-09T05:03:42.000Z
2022-02-27T00:45:58.000Z
examples/bulk.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
144
2015-03-06T11:19:49.000Z
2021-06-11T11:26:39.000Z
examples/bulk.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
97
2015-03-21T13:58:38.000Z
2022-01-07T14:40:49.000Z
# # Run this example from console manually: # # $ mix run -r examples/bulk.exs # # => ? # # Run this example from Elixir environment (`iex -S mix`): # # iex> Path.expand("examples/bulk.exs") |> Tirexs.load_file # import Tirexs.Bulk payload = bulk do index [ index: "bear_test", type: "blog" ], [ [id: 1, tit...
20.785714
83
0.580756
93970a6684480883a703fdeba4e0d0981eed12ca
2,133
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_bounding_poly.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_bounding_poly.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_bounding_poly.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.781818
177
0.759962
93973461afdf4d558e721f0f6ecdb924d749d7a3
1,182
exs
Elixir
lib/elixir/test/elixir/application_test.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/elixir/test/elixir/application_test.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/application_test.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule ApplicationTest do use ExUnit.Case, async: true test "application environment" do assert Application.get_env(:elixir, :unknown) == nil assert Application.get_env(:elixir, :unknown, :default) == :default assert Application.fetch_env(:elixir, :unkno...
36.9375
71
0.686125
93973902a57c8c47b391a0da781ee9b13fb450b0
235
ex
Elixir
lib/plenario_web/views/field_api_view.ex
vforgione/plenario2
001526e5c60a1d32794a18f3fd65ead6cade1a29
[ "Apache-2.0" ]
13
2017-12-11T13:59:42.000Z
2020-11-16T21:52:31.000Z
lib/plenario_web/views/field_api_view.ex
vforgione/plenario2
001526e5c60a1d32794a18f3fd65ead6cade1a29
[ "Apache-2.0" ]
310
2017-11-13T22:52:26.000Z
2018-11-19T17:49:30.000Z
lib/plenario_web/views/field_api_view.ex
vforgione/plenario2
001526e5c60a1d32794a18f3fd65ead6cade1a29
[ "Apache-2.0" ]
3
2017-12-05T00:36:12.000Z
2020-03-10T15:15:29.000Z
defmodule PlenarioWeb.FieldApiView do use PlenarioWeb, :view def render("field.json", %{field_api: f}) do %{ name: f.name, col_name: f.col_name, type: f.type, description: f.description } end end
18.076923
46
0.621277
93974ca6d4ce81cfab77679bd2fdcf17afea929d
1,818
ex
Elixir
apps/definition_dictionary/lib/dictionary/type/list.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/definition_dictionary/lib/dictionary/type/list.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/definition_dictionary/lib/dictionary/type/list.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
defmodule Dictionary.Type.List do use Definition, schema: Dictionary.Type.List.V1 use Dictionary.JsonEncoder @behaviour Access @type t :: %__MODULE__{ version: integer, name: String.t(), description: String.t(), item_type: module } defstruct version: 1, ...
24.90411
82
0.630363
93977e1b61168afb6e662a555fbc56391ba4dc97
378
exs
Elixir
daniel/pragstudio/servy/rna.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/pragstudio/servy/rna.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/pragstudio/servy/rna.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
defmodule RNA do @char %{ ?C => ?G, ?G => ?C, ?T => ?A, ?A => ?U, } def to_rna([]), do: [] def to_rna(dna) do chars = %{ ?C => ?G, ?G => ?C, ?T => ?A, ?A => ?U, } # [ @char[head] | to_rna(tail) ] Enum.map(dna, &chars[&1]) end def tr(dna_letter) do @c...
13.5
36
0.42328
9397821102ce16e2c70fb5c958004c41cb5d6600
4,425
ex
Elixir
lib/captain_hook/webhook_endpoints/secrets.ex
annatel/captain_hook
e16a01107d11756d37d96d1e9092c17d9aa9260b
[ "MIT" ]
4
2020-11-13T11:27:24.000Z
2021-08-19T17:28:53.000Z
lib/captain_hook/webhook_endpoints/secrets.ex
annatel/captain_hook
e16a01107d11756d37d96d1e9092c17d9aa9260b
[ "MIT" ]
null
null
null
lib/captain_hook/webhook_endpoints/secrets.ex
annatel/captain_hook
e16a01107d11756d37d96d1e9092c17d9aa9260b
[ "MIT" ]
null
null
null
defmodule CaptainHook.WebhookEndpoints.Secrets do @moduledoc false import Ecto.Changeset, only: [add_error: 3, fetch_field!: 2, prepare_changes: 2] alias Ecto.Multi alias CaptainHook.WebhookEndpoints.WebhookEndpoint alias CaptainHook.WebhookEndpoints.Secrets.WebhookEndpointSecret @secret_length 32 @se...
33.778626
94
0.699209
939798f22898e5a0e9add48229bfc144703d77c4
267
ex
Elixir
demo/lib/demo/supervisor.ex
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
19
2020-10-08T14:05:30.000Z
2022-03-18T08:43:11.000Z
demo/lib/demo/supervisor.ex
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
null
null
null
demo/lib/demo/supervisor.ex
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
3
2021-02-19T08:31:58.000Z
2021-12-09T05:28:55.000Z
defmodule Demo.Supervisor do use Supervisor def start_link(args) do Supervisor.start_link(__MODULE__, [args], name: __MODULE__) end def init([args]) do children = [Demo.EventConsumer] Supervisor.init(children, strategy: :one_for_one) end end
19.071429
63
0.722846
9397a36760391fe6e014608277eaf35c21f09569
2,761
exs
Elixir
apps/re/test/units/units_test.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
1
2021-01-19T05:01:15.000Z
2021-01-19T05:01:15.000Z
apps/re/test/units/units_test.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
apps/re/test/units/units_test.exs
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
defmodule Re.UnitsTest do use Re.ModelCase alias Re.{ Listing, Listings.Units.Server, Unit, Units } import Re.Factory @unit_attrs %{ complement: "201", price: 500_000, property_tax: 5_000.0, maintenance_fee: 500.0, floor: "2", rooms: 3, bathrooms: 1, restroom...
27.336634
106
0.680551
9397ffe27de99bf20275400b23cf405cca83cb31
881
ex
Elixir
lib/paytm/api/wallet/balance.ex
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
2
2017-11-10T14:57:02.000Z
2018-01-30T04:53:11.000Z
lib/paytm/api/wallet/balance.ex
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
2
2019-04-16T12:55:01.000Z
2020-08-25T15:17:52.000Z
lib/paytm/api/wallet/balance.ex
wundercar/paytm
378ce47ae68588b80a60098f84ea50eb380cf7de
[ "MIT" ]
null
null
null
defmodule Paytm.API.Wallet.Balance do @type t :: %__MODULE__{ total_balance: Money.t(), paytm_wallet_balance: Money.t(), sub_wallet_balance: Money.t() } @enforce_keys [:total_balance, :paytm_wallet_balance, :sub_wallet_balance] defstruct [:total_balance, :paytm_wallet_balance...
35.24
82
0.676504
939833c1384dba6cdaef95502ebfeffe6136abb0
893
ex
Elixir
lib/glue_web/views/guest_book_comment_view.ex
seanbreckenridge/glue
60cbe6478be27572de6c6d5276a806b5940ffcbc
[ "Apache-2.0" ]
5
2020-07-04T12:18:58.000Z
2022-01-13T22:35:40.000Z
lib/glue_web/views/guest_book_comment_view.ex
seanbreckenridge/glue
60cbe6478be27572de6c6d5276a806b5940ffcbc
[ "Apache-2.0" ]
37
2020-07-20T23:35:56.000Z
2022-03-19T02:13:16.000Z
lib/glue_web/views/guest_book_comment_view.ex
seanbreckenridge/glue
60cbe6478be27572de6c6d5276a806b5940ffcbc
[ "Apache-2.0" ]
null
null
null
defmodule GlueWeb.GuestBookCommentView do use GlueWeb, :view alias GlueWeb.GuestBookCommentView alias Glue.DateUtils def render("index.json", %{gb_comment: gb_comment}) do render_many(gb_comment, GuestBookCommentView, "guest_book_comment.json") end def render("show.json", %{guest_book_comment: guest_b...
30.793103
98
0.735722
93984dbeb3b7df037d7eac9a54250cabaca6e2f0
1,809
exs
Elixir
test/changelog/schema/post/post_test.exs
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
test/changelog/schema/post/post_test.exs
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
test/changelog/schema/post/post_test.exs
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
defmodule Changelog.PostTest do use Changelog.SchemaCase alias Changelog.Post describe "admin_changeset" do test "with valid attributes" do changeset = Post.admin_changeset(%Post{}, %{slug: "what-a-post", title: "What a Post", author_id: 42}) assert changeset.valid? end test "with inval...
26.217391
143
0.61581
9398508e66dc4ed6c540498ee5cf6d7e5c789e5e
69
ex
Elixir
lib/poe_api.ex
simplecastapps/poe-api
56e9b6ebfcd931c4023e555534a753f5ad32cf9c
[ "MIT" ]
4
2016-01-14T05:33:21.000Z
2017-02-01T14:10:57.000Z
lib/poe_api.ex
poegroup/poe-api
d056412c336e30747f811fb5124e14ecb1b43b98
[ "MIT" ]
null
null
null
lib/poe_api.ex
poegroup/poe-api
d056412c336e30747f811fb5124e14ecb1b43b98
[ "MIT" ]
3
2017-01-09T14:34:54.000Z
2020-12-17T07:14:33.000Z
defmodule PoeApi do defmacro __using__(_opts) do nil end end
11.5
30
0.724638
939896fd0373db0737e6fa54f35cd841fd91c365
961
exs
Elixir
todo/config/test.exs
mpeseke/literate-waffle
1b8da264d841d9f1d076729936b060c79f93e1aa
[ "Apache-2.0" ]
null
null
null
todo/config/test.exs
mpeseke/literate-waffle
1b8da264d841d9f1d076729936b060c79f93e1aa
[ "Apache-2.0" ]
null
null
null
todo/config/test.exs
mpeseke/literate-waffle
1b8da264d841d9f1d076729936b060c79f93e1aa
[ "Apache-2.0" ]
null
null
null
import Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :todo, Todo.Repo, username: "postgres", password: "postgres", hostname: "localhost", database: "todo_...
31
86
0.754422
9398bfa8ad7378bbb4148f17cf1d8577d829e421
1,922
exs
Elixir
apps/tag_editor/config/dev.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
3
2018-07-20T22:14:36.000Z
2018-12-21T19:54:48.000Z
apps/tag_editor/config/dev.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
36
2018-09-15T21:46:54.000Z
2020-03-28T16:10:18.000Z
apps/tag_editor/config/dev.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
2
2018-07-22T08:47:07.000Z
2021-12-11T01:39:19.000Z
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 webpack to recompile .js and .css sources. config :tag_editor, TagEditorWeb.Endpoint, http: [port:...
28.264706
68
0.686785
9398d90ab699326ebc0d54b10f9016f6d953863b
711
ex
Elixir
lib/coophub_web/gettext.ex
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
49
2019-12-11T16:40:52.000Z
2022-01-14T12:44:14.000Z
lib/coophub_web/gettext.ex
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
47
2019-12-12T20:03:10.000Z
2021-10-14T14:25:00.000Z
lib/coophub_web/gettext.ex
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
28
2019-12-11T17:15:03.000Z
2021-09-17T09:19:44.000Z
defmodule CoophubWeb.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 CoophubWeb.Gettext # Simple translation gettext("Here is t...
28.44
72
0.677918
939927949c965bca256fd5d7b3378536b8577ed1
2,812
ex
Elixir
lib/clickhousex/query.ex
hissssst/clickhousex
76af47440408ca9280bcb7c07d0b33e249e1295d
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/query.ex
hissssst/clickhousex
76af47440408ca9280bcb7c07d0b33e249e1295d
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/query.ex
hissssst/clickhousex
76af47440408ca9280bcb7c07d0b33e249e1295d
[ "Apache-2.0" ]
null
null
null
defmodule Clickhousex.Query do @moduledoc """ Query struct returned from a successfully prepared query. """ @codec Application.get_env(:clickhousex, :codec, Clickhousex.Codec.JSON) @type t :: %__MODULE__{ name: iodata, type: :select | :insert | :alter | :create | :drop, param_count...
27.038462
82
0.64367
939998229dffaf589b8b5910426ce6a3b99a0788
1,076
ex
Elixir
ex_chain/test/support/conn_case.ex
L-Serodio/sip-of-elixir
7c6cf0d9e00f95a51ffa98d5d16baaa6b3f131b2
[ "MIT" ]
null
null
null
ex_chain/test/support/conn_case.ex
L-Serodio/sip-of-elixir
7c6cf0d9e00f95a51ffa98d5d16baaa6b3f131b2
[ "MIT" ]
null
null
null
ex_chain/test/support/conn_case.ex
L-Serodio/sip-of-elixir
7c6cf0d9e00f95a51ffa98d5d16baaa6b3f131b2
[ "MIT" ]
null
null
null
defmodule ExChainWeb.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. Finally, if th...
28.315789
61
0.734201
93999f5f6badc31d870552ef976d21eafe3b4005
1,945
exs
Elixir
mix.exs
antondomratchev/bamboo
732a9b086b0e0cc6fc66ddbc6f1354f10a86662a
[ "MIT" ]
1
2021-12-01T13:37:19.000Z
2021-12-01T13:37:19.000Z
mix.exs
sasa1977/bamboo
21371640ecda35307f265e84842a90dcb4c5557f
[ "MIT" ]
1
2021-02-23T18:44:13.000Z
2021-02-23T18:44:13.000Z
mix.exs
sasa1977/bamboo
21371640ecda35307f265e84842a90dcb4c5557f
[ "MIT" ]
null
null
null
defmodule Bamboo.Mixfile do use Mix.Project @project_url "https://github.com/thoughtbot/bamboo" def project do [ app: :bamboo, version: "1.6.0", elixir: "~> 1.6", source_url: @project_url, homepage_url: @project_url, compilers: compilers(Mix.env()), test_coverage: [...
27.785714
95
0.567095
9399ce51d32d75909ad41ae064dd65cf3a0cb03a
383
exs
Elixir
programming_elixir_1.3_snippets/spawn/monitor1.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/spawn/monitor1.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/spawn/monitor1.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
defmodule Monitor1 do import :timer, only: [sleep: 1] def sad_function do sleep 500 exit(:boom) end def run do res = spawn_monitor(__MODULE__, :sad_function, []) IO.puts inspect res receive do msg -> IO.puts "Message Received: #{inspect msg}" after 1000 -> IO.puts ...
20.157895
56
0.616188
939a042cc3f72fea68c521a982e658a3e0e933dc
224
exs
Elixir
apps/neoscan/config/dev.exs
cc1776/neo-scan
49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287
[ "MIT" ]
1
2021-02-23T02:55:26.000Z
2021-02-23T02:55:26.000Z
apps/neoscan/config/dev.exs
solohin/neo-scan
2aa6dfdb0346b108a20463efe1dcd8bbb00cbc0e
[ "MIT" ]
null
null
null
apps/neoscan/config/dev.exs
solohin/neo-scan
2aa6dfdb0346b108a20463efe1dcd8bbb00cbc0e
[ "MIT" ]
1
2019-10-16T21:37:31.000Z
2019-10-16T21:37:31.000Z
use Mix.Config # Configure your database config :neoscan, Neoscan.Repo, adapter: Ecto.Adapters.Postgres, username: "postgres", password: "postgres", database: "neoscan_dev", hostname: "localhost", pool_size: 10
20.363636
34
0.727679
939a08f7a801a48a0b0537e9c24b6cc7ccf7e58a
1,522
ex
Elixir
lib/bolt/cogs/multiban.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
lib/bolt/cogs/multiban.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
lib/bolt/cogs/multiban.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.Cogs.MultiBan do @moduledoc false @behaviour Nosedrum.Command alias Bolt.Cogs.Ban alias Bolt.Helpers alias Nosedrum.Predicates alias Nostrum.Api @impl true def usage, do: [ "multiban <user:snowflake|member...>", "multiban <reason:str> <user:snowflake|member...>" ] ...
25.366667
82
0.649803
939a36d80e22628a6532d88ff1f96bcd03b7d40e
1,267
exs
Elixir
channel-sender/large_bench/script.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-01-11T21:03:44.000Z
2022-03-15T15:13:11.000Z
channel-sender/large_bench/script.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
3
2021-12-21T21:04:20.000Z
2022-03-15T16:16:45.000Z
channel-sender/large_bench/script.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-02-08T22:33:36.000Z
2022-03-25T19:55:18.000Z
#Create Channel body = Jason.encode!(%{application_ref: "some_application", user_ref: "user_ref_00117ALM"}) start_timing(:create_channel) {200, _, {:json, json}} = post("/ext/channel/create", [{"content-type", "application/json"}], body) stop_timing(:create_channel) inc_counter(:create_channel) #End Create Channel #Up...
31.675
99
0.694554
939a43eb07c8e6027611bf3148a54e2527802872
2,738
exs
Elixir
test/pummpcomm/crc/crc16_test.exs
infinity-aps/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
15
2017-08-31T00:58:47.000Z
2020-01-12T03:53:13.000Z
test/pummpcomm/crc/crc16_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
1
2017-09-15T02:09:31.000Z
2017-09-15T02:09:31.000Z
test/pummpcomm/crc/crc16_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
3
2017-09-10T17:24:59.000Z
2019-09-10T19:41:49.000Z
defmodule Pummpcomm.Crc.Crc16Test do use ExUnit.Case alias Pummpcomm.Crc.Crc16 doctest Crc16 setup do {:ok, cgm_page} = Base.decode16( "201E1D1C1A1817161718191B1D1B1C1F212527282A2E3235383C3FCD9086850E0E0000011006850E1043484857EB181006940E0F595E00000110069F0E106670757374767A7D7F8181817D7813726...
85.5625
2,058
0.90431
939a5588d682cdfb8469595ada0d800eabb2265a
632
ex
Elixir
lib/openflow/actions/nx_clone.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2019-05-25T02:25:13.000Z
2020-10-06T17:00:03.000Z
lib/openflow/actions/nx_clone.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2018-03-29T14:42:10.000Z
2019-11-19T07:03:09.000Z
lib/openflow/actions/nx_clone.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
1
2019-03-30T20:48:27.000Z
2019-03-30T20:48:27.000Z
defmodule Openflow.Action.NxClone do defstruct(actions: []) @experimenter 0x00002320 @nxast 42 alias __MODULE__ alias Openflow.Action.Experimenter def new(actions \\ []) do %NxClone{actions: actions} end def to_binary(%NxClone{actions: actions}) do actions_bin = Openflow.Action.to_binary(act...
23.407407
88
0.689873
939a7b8576a88027c2d1ff8eb11a2944e980ebee
721
ex
Elixir
api/lib/skeleton_api_web/gettext.ex
psychowico/phoenix-vuejs-skeleton
6e8fa12bf1050bb08c5e312fd972db92a1e0b214
[ "MIT" ]
null
null
null
api/lib/skeleton_api_web/gettext.ex
psychowico/phoenix-vuejs-skeleton
6e8fa12bf1050bb08c5e312fd972db92a1e0b214
[ "MIT" ]
null
null
null
api/lib/skeleton_api_web/gettext.ex
psychowico/phoenix-vuejs-skeleton
6e8fa12bf1050bb08c5e312fd972db92a1e0b214
[ "MIT" ]
null
null
null
defmodule SkeletonApiWeb.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 SkeletonApiWeb.Gettext # Simple translation gettext "H...
28.84
72
0.686546
939a844bc47e33ea5e55e2613ddc532311c1a606
142
ex
Elixir
lib/techtree_web/controllers/page_controller.ex
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
2
2018-10-26T06:06:42.000Z
2020-02-16T15:01:42.000Z
lib/techtree_web/controllers/page_controller.ex
kenkeiras/TechTree
26c8ca59855002a88bf15eb0b64a6c788f438ec8
[ "WTFPL" ]
108
2018-10-25T10:30:33.000Z
2021-07-28T04:18:03.000Z
lib/techtree_web/controllers/page_controller.ex
kenkeiras/TechTree
26c8ca59855002a88bf15eb0b64a6c788f438ec8
[ "WTFPL" ]
null
null
null
defmodule TechtreeWeb.PageController do use TechtreeWeb, :controller def index(conn, _params) do render conn, "index.html" end end
17.75
39
0.746479
939ab84db4bd0c80e28c567a609d1a03c846c761
1,761
ex
Elixir
lib/absinthe/schema/notation/sdl.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
lib/absinthe/schema/notation/sdl.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
lib/absinthe/schema/notation/sdl.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
defmodule Absinthe.Schema.Notation.SDL do @moduledoc false @doc """ Parse definitions from SDL source """ @spec parse(sdl :: String.t(), Module.t(), map(), Keyword.t()) :: {:ok, [Absinthe.Blueprint.Schema.type_t()]} | {:error, String.t()} def parse(sdl, module, ref, opts) do with {:ok, doc} <...
27.515625
89
0.576377
939ab8e447c2f93302b44e85eb3d3396f8932487
1,703
ex
Elixir
todo_interface/lib/todo_interface_web.ex
moritzploss/todoServer
404db774493b42bb328c552c8c428fa4be2b10d1
[ "MIT" ]
null
null
null
todo_interface/lib/todo_interface_web.ex
moritzploss/todoServer
404db774493b42bb328c552c8c428fa4be2b10d1
[ "MIT" ]
null
null
null
todo_interface/lib/todo_interface_web.ex
moritzploss/todoServer
404db774493b42bb328c552c8c428fa4be2b10d1
[ "MIT" ]
null
null
null
defmodule TodoInterfaceWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use TodoInterfaceWeb, :controller use TodoInterfaceWeb, :view The definitions below will be executed for every vi...
24.328571
83
0.70229
939abd7a63347ae15caec8f4de261b283f6c2360
2,118
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/reservation_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/reservation_list_warning.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/reservation_list_warning.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.222222
194
0.720963
939b2a90c6f311bd381331ab91810b87010dc76c
1,059
ex
Elixir
test/support/conn_case.ex
anndream/realworld-elixir-phoenix-v14
b8f8b3d37099f5efe47c92d8c33b16763526eb7a
[ "MIT" ]
null
null
null
test/support/conn_case.ex
anndream/realworld-elixir-phoenix-v14
b8f8b3d37099f5efe47c92d8c33b16763526eb7a
[ "MIT" ]
null
null
null
test/support/conn_case.ex
anndream/realworld-elixir-phoenix-v14
b8f8b3d37099f5efe47c92d8c33b16763526eb7a
[ "MIT" ]
null
null
null
defmodule RealWorldWeb.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 datastructures and query the data layer. Finally, if t...
27.153846
71
0.721435
939b355bf6c71b1cbe03e59569c7958f3cde9d1f
332
ex
Elixir
2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo/todos/todo.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
1
2022-02-16T09:00:34.000Z
2022-02-16T09:00:34.000Z
2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo/todos/todo.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
2021-09-15-elixir-australia-prom-ex/prom_ex_demo/lib/prom_ex_demo/todos/todo.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
defmodule PromExDemo.Todos.Todo do use Ecto.Schema import Ecto.Changeset schema "todo" do field :done, :boolean, default: false field :title, :string timestamps() end @doc false def changeset(todo, attrs) do todo |> cast(attrs, [:title, :done]) |> validate_required([:title, :done]...
17.473684
41
0.650602
939b3f02117d4eca8dee0bd065cbc90f6c13f652
668
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/DecimalFloat.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_call_operation/matched_expression_parsing_test_case/DecimalFloat.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_call_operation/matched_expression_parsing_test_case/DecimalFloat.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
1.2e-3 &one 1.2e-3 one \\ default 1.2e-3 one when guard 1.2e-3 one :: type 1.2e-3 one | new 1.2e-3 one = two 1.2e-3 one or two 1.2e-3 one || two 1.2e-3 one and two 1.2e-3 one && two 1.2e-3 one != two 1.2e-3 one < two 1.2e-3 one |> two 1.2e-3 one + two 1.2e-3 one / two 1.2e-3 one * two 1.2e-3 one ^^^ two 1.2e-3 !one 1.2...
14.521739
25
0.580838
939b42b40d20aecf8e83c6d012d509a8ad9bf8b0
301
ex
Elixir
lib/pugme/supervisor.ex
KevinGreene/Tinc
4101e4bd24ba81f84e51e9a85be3609515087e6e
[ "MIT" ]
null
null
null
lib/pugme/supervisor.ex
KevinGreene/Tinc
4101e4bd24ba81f84e51e9a85be3609515087e6e
[ "MIT" ]
null
null
null
lib/pugme/supervisor.ex
KevinGreene/Tinc
4101e4bd24ba81f84e51e9a85be3609515087e6e
[ "MIT" ]
null
null
null
defmodule Pugme.Supervisor do use Supervisor def start_link do Supervisor.start_link(__MODULE__, :ok) end @pugme_name Pugme.Slackbot def init(:ok) do children = [ worker(Pugme.Slackbot, [[name: @pugme_name]]) ] supervise(children, strategy: :one_for_one) end end
16.722222
51
0.684385
939b8f04d792118372fdad887564e6dad204c6b1
190
ex
Elixir
lib/witchcraft/foldable/map.ex
doma-engineering/witchcraft
c84fa6b2146e7de745105e21f672ed413df93ad3
[ "MIT" ]
454
2019-06-05T22:56:45.000Z
2022-03-27T23:03:02.000Z
lib/witchcraft/foldable/map.ex
doma-engineering/witchcraft
c84fa6b2146e7de745105e21f672ed413df93ad3
[ "MIT" ]
26
2019-07-08T09:29:08.000Z
2022-02-04T02:40:48.000Z
lib/witchcraft/foldable/map.ex
doma-engineering/witchcraft
c84fa6b2146e7de745105e21f672ed413df93ad3
[ "MIT" ]
36
2019-06-25T17:45:27.000Z
2022-03-21T01:53:42.000Z
import TypeClass definst Witchcraft.Foldable, for: Map do def right_fold(map, seed, reducer) do map |> Map.values() |> Witchcraft.Foldable.right_fold(seed, reducer) end end
19
52
0.705263
939bcda9056525ab90ed39a96c12e0cc58c45e63
253
ex
Elixir
debian/libjpeg-turbo.default.ex
mingw-deb/libjpeg-turbo
35ef423a54ff1cf3a2e722153791ca7386eeeb54
[ "Zlib" ]
null
null
null
debian/libjpeg-turbo.default.ex
mingw-deb/libjpeg-turbo
35ef423a54ff1cf3a2e722153791ca7386eeeb54
[ "Zlib" ]
null
null
null
debian/libjpeg-turbo.default.ex
mingw-deb/libjpeg-turbo
35ef423a54ff1cf3a2e722153791ca7386eeeb54
[ "Zlib" ]
null
null
null
# Defaults for libjpeg-turbo initscript # sourced by /etc/init.d/libjpeg-turbo # installed at /etc/default/libjpeg-turbo by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. DAEMON_OPTS=""
23
67
0.766798
939c160b4f403db207757df8605d15fcbbd48b25
740
ex
Elixir
web/controllers/page_controller.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
60
2017-05-09T19:08:26.000Z
2021-01-20T11:09:42.000Z
web/controllers/page_controller.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
6
2017-05-10T15:43:16.000Z
2020-07-15T07:14:41.000Z
web/controllers/page_controller.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
10
2017-05-10T04:13:54.000Z
2020-12-28T10:30:27.000Z
defmodule UcxChat.PageController do use UcxChat.Web, :controller require Logger alias Coherence.ControllerHelpers, as: Helpers alias UcxChat.{Repo, User} import Ecto.Query def index(conn, _params) do user = Coherence.current_user(conn) |> Repo.preload([:user]) channel = UcxChat.Channel |> Ecto....
26.428571
61
0.65
939c44fc28f5b013e856aadaaabbf4f8552fdec4
98
ex
Elixir
exercises/ex5/elevator/lib/OrderHandler.ex
Sandbergo/distributed-elevator-controller
5b82858110b8e47e445e26aefd1d55a2dced9957
[ "MIT" ]
null
null
null
exercises/ex5/elevator/lib/OrderHandler.ex
Sandbergo/distributed-elevator-controller
5b82858110b8e47e445e26aefd1d55a2dced9957
[ "MIT" ]
null
null
null
exercises/ex5/elevator/lib/OrderHandler.ex
Sandbergo/distributed-elevator-controller
5b82858110b8e47e445e26aefd1d55a2dced9957
[ "MIT" ]
1
2019-03-13T11:46:35.000Z
2019-03-13T11:46:35.000Z
defmodule OrderHandler do @moduledoc """ OrderHandler module yayeet """ end
12.25
30
0.602041
939c73afda7807ae7797615f659acc4889fdd8fd
405
exs
Elixir
priv/repo/migrations/20200310074406_create_gameplays.exs
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
1
2020-02-20T21:57:02.000Z
2020-02-20T21:57:02.000Z
priv/repo/migrations/20200310074406_create_gameplays.exs
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
1
2020-03-23T19:22:48.000Z
2020-03-23T19:22:48.000Z
priv/repo/migrations/20200310074406_create_gameplays.exs
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
null
null
null
defmodule Platform.Repo.Migrations.CreateGameplays do use Ecto.Migration def change do create table(:gameplays) do add :player_score, :integer add :game_id, references(:games, on_delete: :nothing) add :player_id, references(:players, on_delete: :nothing) timestamps() end creat...
23.823529
63
0.691358
939c989d52a8d7ad80140710e6d191ab9eb4c60d
6,869
ex
Elixir
lib/livebook_web/live/session_live/input_cell_settings_component.ex
chamot1111/livebook
4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/input_cell_settings_component.ex
chamot1111/livebook
4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/input_cell_settings_component.ex
chamot1111/livebook
4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SessionLive.InputCellSettingsComponent do use LivebookWeb, :live_component alias Livebook.Session alias Livebook.Notebook.Cell @impl true def update(assigns, socket) do cell = assigns.cell socket = socket |> assign(assigns) |> assign(:current_type, cell.type)...
29.607759
96
0.577231
939ca7d8c8b33d43a659cc9b263267f87e438e10
1,595
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/browser_targeting_option_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/display_video/lib/google_api/display_video/v1/model/browser_targeting_option_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/display_video/lib/google_api/display_video/v1/model/browser_targeting_option_details.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...
33.93617
135
0.755486
939cceb4c5b20a51e61bf5b781b3fd3308a6ba83
1,420
exs
Elixir
test/scatterer_test.exs
dougal/scatter_swap.ex
f596196330081265d4838e884ce73ac2143cd66e
[ "MIT" ]
null
null
null
test/scatterer_test.exs
dougal/scatter_swap.ex
f596196330081265d4838e884ce73ac2143cd66e
[ "MIT" ]
null
null
null
test/scatterer_test.exs
dougal/scatter_swap.ex
f596196330081265d4838e884ce73ac2143cd66e
[ "MIT" ]
null
null
null
defmodule ScatterSwap.ScattererTest do use ExUnit.Case doctest ScatterSwap.Scatterer alias ScatterSwap.Scatterer test "scatter() rearranges the digits" do assert Scatterer.scatter([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]) == [0, 0, 0, 0, 0, 0, 0, 0, 0, 1] assert Scatterer.scatter([0, 0, 0, 0, 0, 0, 0, 0, 0, 2])...
38.378378
100
0.549296
939cd3442b18a16188d24be09671aab8d03182ba
1,387
exs
Elixir
mix.exs
robotarmy/serve_elm
931787a55acbe076eac0c0b199c5cfc63425197e
[ "MIT" ]
null
null
null
mix.exs
robotarmy/serve_elm
931787a55acbe076eac0c0b199c5cfc63425197e
[ "MIT" ]
null
null
null
mix.exs
robotarmy/serve_elm
931787a55acbe076eac0c0b199c5cfc63425197e
[ "MIT" ]
null
null
null
defmodule ServeElm.Mixfile do use Mix.Project def project do [ app: :serve_elm, version: "0.0.1", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, start_permanent: Mix.env == :prod, deps: deps() ] end #...
25.685185
78
0.568854
939d13316b94c52975fe5a9ab7a3cb07f810f966
198
exs
Elixir
priv/repo/migrations/20170528152505_add_winnings_adj_to_fantasy_team.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
priv/repo/migrations/20170528152505_add_winnings_adj_to_fantasy_team.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
priv/repo/migrations/20170528152505_add_winnings_adj_to_fantasy_team.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338.Repo.Migrations.AddWinningsAdjToFantasyTeam do use Ecto.Migration def change do alter table(:fantasy_teams) do add :winnings_adj, :float, default: 0 end end end
19.8
62
0.737374
939d6463e8c0f9088cf060376153a0beb6062657
109
exs
Elixir
.formatter.exs
mayel/benchee
faf3c85c241a4c7eeaab8edfc85094bbbb10c44d
[ "MIT" ]
636
2016-06-06T07:58:36.000Z
2019-03-19T15:27:37.000Z
.formatter.exs
mayel/benchee
faf3c85c241a4c7eeaab8edfc85094bbbb10c44d
[ "MIT" ]
198
2016-06-18T08:19:15.000Z
2019-03-19T15:32:37.000Z
.formatter.exs
mayel/benchee
faf3c85c241a4c7eeaab8edfc85094bbbb10c44d
[ "MIT" ]
43
2016-06-08T08:04:30.000Z
2019-02-13T17:10:24.000Z
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test,samples,mix}/**/*.{ex,exs}"] ]
21.8
81
0.587156
939d7d6d66a49869f1b00bf00d89f644d9bd6c5e
158
exs
Elixir
test/ffaker/zh_cn/gender_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
9
2016-11-09T15:50:05.000Z
2021-02-02T05:45:06.000Z
test/ffaker/zh_cn/gender_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
3
2016-09-01T09:54:46.000Z
2017-07-25T05:23:56.000Z
test/ffaker/zh_cn/gender_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
4
2016-11-22T17:51:48.000Z
2021-02-02T05:45:01.000Z
defmodule Ffaker.ZhCn.GenderTest do use ExUnit.Case, async: true import Ffaker.ZhCn.Gender test "gender/0" do assert gender() in ~w(女 男) end end
17.555556
35
0.702532
939d88069b9541c472b9b1dc39a18fa4dd20b41d
6,040
ex
Elixir
lib/livebook/application.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
1
2022-02-16T09:13:27.000Z
2022-02-16T09:13:27.000Z
lib/livebook/application.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
lib/livebook/application.ex
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do ensure_directories!() set_local_filesystem!() ensure_distribution!() validate_hostname_resolution!() s...
29.463415
143
0.648841
939da758177456cb62eb69b2bfb74d106922adcd
1,980
exs
Elixir
apps/rig_kafka/test/rig_kafka_test.exs
kevinbader/reactive-interaction-gateway
e957ca27ea897d074954ae09f65afbcaa79393f0
[ "Apache-2.0" ]
null
null
null
apps/rig_kafka/test/rig_kafka_test.exs
kevinbader/reactive-interaction-gateway
e957ca27ea897d074954ae09f65afbcaa79393f0
[ "Apache-2.0" ]
132
2018-11-26T14:00:54.000Z
2022-03-11T04:17:54.000Z
apps/rig_kafka/test/rig_kafka_test.exs
kevinbader/reactive-interaction-gateway
e957ca27ea897d074954ae09f65afbcaa79393f0
[ "Apache-2.0" ]
null
null
null
defmodule RigKafkaTest do @moduledoc """ Test suite for RIG's Kafka client. The suite does not use any mocks, because RigKafka is, for the most part, glue code on top of brod, the underlying Kafka client. The tests make sure that the setup works in general and that the behaviour of brod stays the same. Th...
28.285714
89
0.691919
939df5a7fc0f91094e74f19409d36e9d36713389
308
ex
Elixir
apps/aehttpserver/lib/aehttpserver/web/plugs/set_header.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
131
2018-03-10T01:35:56.000Z
2021-12-27T13:44:41.000Z
apps/aehttpserver/lib/aehttpserver/web/plugs/set_header.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
445
2018-03-12T09:46:17.000Z
2018-12-12T09:52:07.000Z
apps/aehttpserver/lib/aehttpserver/web/plugs/set_header.ex
gspasov/dogs-blockchain
884c14cfc98de2c3793a204da069630d090bbc90
[ "0BSD" ]
23
2018-03-12T12:01:28.000Z
2022-03-06T09:22:17.000Z
defmodule Aehttpserver.Plugs.SetHeader do @moduledoc """ A plug that adds a header which confirms that the server is an aehttpserver to every response """ import Plug.Conn def init(default), do: default def call(conn, _default) do put_resp_header(conn, "server", "aehttpserver") end end
22
95
0.727273
939e03b50e612f9c580fbb9ec6866e43f9071c2e
583
exs
Elixir
test/auxilio_web/views/error_view_test.exs
HackathonSupport/auxilio
7afc7372d0fbd902580a567be4cd106ece0d5b9b
[ "MIT" ]
null
null
null
test/auxilio_web/views/error_view_test.exs
HackathonSupport/auxilio
7afc7372d0fbd902580a567be4cd106ece0d5b9b
[ "MIT" ]
1
2018-02-04T02:33:55.000Z
2018-12-07T11:22:13.000Z
test/auxilio_web/views/error_view_test.exs
HackathonSupport/auxilio
7afc7372d0fbd902580a567be4cd106ece0d5b9b
[ "MIT" ]
null
null
null
defmodule AuxilioWeb.ErrorViewTest do use AuxilioWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(AuxilioWeb.ErrorView, "404.html", []) == "Page not found" end test "render 500....
26.5
68
0.684391
939e14014c96630f8f5e2ce9a300f37ec51a7691
3,985
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_conversation_turn_virtual_agent_output.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_conversation_turn_virtual_agent_output.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_conversation_turn_virtual_agent_output.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "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...
46.882353
281
0.737516
939e7e9fc1f48f573efce12f60af8b4766dd567b
111
exs
Elixir
.formatter.exs
IvanRublev/TwitterWall
ca3f900dfaf64c5d59ac903f697da87e9fcc9914
[ "MIT" ]
1
2020-01-27T17:43:01.000Z
2020-01-27T17:43:01.000Z
.formatter.exs
IvanRublev/TwitterWall
ca3f900dfaf64c5d59ac903f697da87e9fcc9914
[ "MIT" ]
6
2021-03-09T22:08:16.000Z
2021-06-30T23:48:20.000Z
.formatter.exs
IvanRublev/TwitterWall
ca3f900dfaf64c5d59ac903f697da87e9fcc9914
[ "MIT" ]
null
null
null
[ import_deps: [:phoenix], inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"], line_length: 150 ]
18.5
60
0.54955
939e90cb2a46967581e205886fb658a7eacc8a56
451
ex
Elixir
lab-two-flooding-algorithms/skeleton/lib/flooding.ex
HilliamT/distributed-algorithms
788e8e0b9a6c60570ecf8336f2239fb1d1945b1c
[ "MIT" ]
null
null
null
lab-two-flooding-algorithms/skeleton/lib/flooding.ex
HilliamT/distributed-algorithms
788e8e0b9a6c60570ecf8336f2239fb1d1945b1c
[ "MIT" ]
null
null
null
lab-two-flooding-algorithms/skeleton/lib/flooding.ex
HilliamT/distributed-algorithms
788e8e0b9a6c60570ecf8336f2239fb1d1945b1c
[ "MIT" ]
null
null
null
# distributed algorithms, n.dulay, 4 jan 21 # basic flooding, v1 # flood message through 1-hop (fully connected) network defmodule Flooding do def start do config = Helper.node_init() start(config.start_function, config) end # start/0 defp start(:cluster_wait, _), do: :skip defp start(:cluster_start, config)...
18.791667
55
0.676275
939e970ab5fce7b7df84939f053bd5ee388275da
1,003
ex
Elixir
lib/annacl/permissions/permissions.ex
annatel/annacl
55a7eff89617fe9cf41f532cf3f62566bd4b0d9a
[ "MIT" ]
7
2020-07-26T18:24:19.000Z
2021-06-22T10:15:48.000Z
lib/annacl/permissions/permissions.ex
annatel/annacl
55a7eff89617fe9cf41f532cf3f62566bd4b0d9a
[ "MIT" ]
2
2020-08-15T00:58:53.000Z
2020-10-31T16:54:11.000Z
lib/annacl/permissions/permissions.ex
annatel/annacl
55a7eff89617fe9cf41f532cf3f62566bd4b0d9a
[ "MIT" ]
2
2020-10-22T20:13:21.000Z
2020-10-30T14:53:10.000Z
defmodule Annacl.Permissions do @moduledoc false import Ecto.Query, only: [where: 2] alias Annacl.Permissions.Permission @spec create_permission(map) :: {:ok, Permission.t()} | {:error, Ecto.Changeset.t()} def create_permission(attrs) when is_map(attrs) do %Permission{} |> Permission.changeset(attr...
27.108108
86
0.664008
939eba8f76e5e4f5ad722a82076d96a6f92bc61f
921
ex
Elixir
lib/diff/patch.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
lib/diff/patch.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
lib/diff/patch.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
defmodule ExAudit.Patch do @doc """ Applies the patch to the given term """ def patch(_, {:primitive_change, _, b}) do b end def patch(a, :not_changed) do a end def patch(list, changes) when is_list(list) and is_list(changes) do changes |> Enum.reverse() |> Enum.reduce(list, fn ...
24.891892
69
0.571118
939ef844bc375ce018d548d5b200777133c3f9f7
78
exs
Elixir
banking_challenge_stone_umbrella/apps/banking_challenge_web/test/test_helper.exs
douxsalemk/banking_challenge_stone
59c2790a0f14b68c2b25851c806ebc553227316d
[ "Apache-2.0" ]
null
null
null
banking_challenge_stone_umbrella/apps/banking_challenge_web/test/test_helper.exs
douxsalemk/banking_challenge_stone
59c2790a0f14b68c2b25851c806ebc553227316d
[ "Apache-2.0" ]
null
null
null
banking_challenge_stone_umbrella/apps/banking_challenge_web/test/test_helper.exs
douxsalemk/banking_challenge_stone
59c2790a0f14b68c2b25851c806ebc553227316d
[ "Apache-2.0" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(BankingChallenge.Repo, :manual)
26
62
0.807692
939f0a98c4789155584b394e3d09e4212edd3bd1
560
ex
Elixir
lib/wong_bejo/email/content.ex
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
lib/wong_bejo/email/content.ex
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
lib/wong_bejo/email/content.ex
fossabot/web.bejoistic
edd672a8f125180397b89e1f5ee469b1f2344e7f
[ "MIT" ]
null
null
null
defmodule WongBejo.Email.Content do @moduledoc "The content for an email message" defstruct from_email: nil, to_email: nil, name: nil, message: nil @type t :: %__MODULE__{ from_email: String.t(), to_email: String.t(), name: String.t(), message: String.t() } @spe...
25.454545
78
0.571429
939f1ee5b54bac297aee1aa437f3c642404c2d5b
884
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.740741
74
0.75905
939f2ad7174a751d9d50924c17077f342435db8f
975
exs
Elixir
test/fika/compiler/type_checker/types/union_type_test.exs
fika-lang/fika
15bffc30daed744670bb2c0fba3e674055adac47
[ "Apache-2.0" ]
220
2020-09-12T18:16:29.000Z
2022-03-15T14:39:05.000Z
test/fika/compiler/type_checker/types/union_type_test.exs
fika-lang/fika
15bffc30daed744670bb2c0fba3e674055adac47
[ "Apache-2.0" ]
60
2020-09-23T14:20:36.000Z
2021-03-08T08:55:57.000Z
test/fika/compiler/type_checker/types/union_type_test.exs
fika-lang/fika
15bffc30daed744670bb2c0fba3e674055adac47
[ "Apache-2.0" ]
25
2020-09-19T09:06:10.000Z
2021-08-24T23:48:39.000Z
defmodule Fika.Compiler.TypeChecker.Types.UnionTypeTest do use ExUnit.Case, async: true alias Fika.Compiler.TypeChecker.Types.Union describe "new/1" do test "handles a flat list" do expected = MapSet.new([:a, :b, :c]) assert %Union{types: expected} == Union.new([:a, :b, :c]) end end des...
29.545455
79
0.523077
939f4377c0f08a3e1a4a9a5634f69ccd031d180f
3,260
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_longrunning_operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_longrunning_operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_longrunning_operation.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...
55.254237
543
0.728834
93a011205b239c89f7c319f30a2ff9e2d1ea96ba
8,236
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/api/customchannels.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/api/customchannels.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/api/customchannels.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "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...
46.795455
217
0.699126
93a0194a10e0afbdf2776db29b6047d38a0770f9
4,193
ex
Elixir
priv/templates/whatwasit.install/models/whatwasit/version.ex
linges/whatwasit
fffa14b2b21bac9903a165ccbb5bc96bdf5cb579
[ "MIT" ]
65
2016-07-22T14:07:22.000Z
2021-03-23T16:13:17.000Z
priv/templates/whatwasit.install/models/whatwasit/version.ex
linges/whatwasit
fffa14b2b21bac9903a165ccbb5bc96bdf5cb579
[ "MIT" ]
20
2016-07-22T04:53:05.000Z
2018-02-19T08:26:46.000Z
priv/templates/whatwasit.install/models/whatwasit/version.ex
linges/whatwasit
fffa14b2b21bac9903a165ccbb5bc96bdf5cb579
[ "MIT" ]
11
2016-07-24T20:55:37.000Z
2019-05-24T22:09:34.000Z
defmodule <%= base %>.Whatwasit.Version do @moduledoc """ Version schema for tracking model versions. """ use Ecto.Schema import Ecto import Ecto.Changeset require Ecto.Query @base Mix.Project.get |> Module.split |> Enum.reverse |> Enum.at(1) @version_module Module.concat([@base, Whatwasit, Version]...
26.537975
85
0.645123
93a04b7ef1ddc1d393a63058af0a12378d498c2d
1,817
ex
Elixir
lib/graphql/type/interface.ex
seanabrahams/graphql-elixir
568a07da317e19621cc0c931d738b4eda75f0a35
[ "BSD-3-Clause" ]
null
null
null
lib/graphql/type/interface.ex
seanabrahams/graphql-elixir
568a07da317e19621cc0c931d738b4eda75f0a35
[ "BSD-3-Clause" ]
null
null
null
lib/graphql/type/interface.ex
seanabrahams/graphql-elixir
568a07da317e19621cc0c931d738b4eda75f0a35
[ "BSD-3-Clause" ]
null
null
null
defmodule GraphQL.Type.Interface do @type t :: %GraphQL.Type.Interface{ name: binary, description: binary | nil, fields: Map.t, resolver: (any -> GraphQL.Type.ObjectType.t) | nil } defstruct name: "", description: "", fields: %{}, resolver: nil def new(map) do struct(GraphQL.Type.Interface,...
34.283019
87
0.691249
93a099ea50aa7f101ccb9aa3d7d6df9cf1e9bc77
3,282
exs
Elixir
apps/ewallet/test/ewallet/web/v1/serializers/key_serializer_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/web/v1/serializers/key_serializer_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/web/v1/serializers/key_serializer_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 ...
30.962264
74
0.615783
93a0ada0495ca2bc17431b09973cb3de79e00ca5
1,085
ex
Elixir
lib/empty_web/channels/user_socket.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
lib/empty_web/channels/user_socket.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
lib/empty_web/channels/user_socket.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
defmodule EmptyWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", EmptyWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channels, ...
30.138889
83
0.693088
93a0f9c6d62fe3fba87d1a3928448871732a4bd3
721
ex
Elixir
lib/lv_template_web/gettext.ex
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
lib/lv_template_web/gettext.ex
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
lib/lv_template_web/gettext.ex
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
defmodule LvTemplateWeb.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 LvTemplateWeb.Gettext # Simple translation gettext("Her...
28.84
72
0.682386
93a103faa445ee124fccecf6f75e325e09fbb84f
802
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20171027151209_add_account_id_to_minted_token_table.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/priv/repo/migrations/20171027151209_add_account_id_to_minted_token_table.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/priv/repo/migrations/20171027151209_add_account_id_to_minted_token_table.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 ...
33.416667
74
0.758105
93a1098956ba26f267689aad2efc1cb87ca5b778
15,121
exs
Elixir
test/depot_test.exs
lucacorti/depot
2406773bbb3523f0a294bd4c8256a35a1444e60a
[ "Apache-2.0" ]
20
2020-06-19T20:38:22.000Z
2021-09-14T06:57:32.000Z
test/depot_test.exs
lucacorti/depot
2406773bbb3523f0a294bd4c8256a35a1444e60a
[ "Apache-2.0" ]
15
2020-06-22T16:37:10.000Z
2021-10-18T22:18:50.000Z
test/depot_test.exs
LostKobrakai/depot
2406773bbb3523f0a294bd4c8256a35a1444e60a
[ "Apache-2.0" ]
5
2020-06-21T14:07:44.000Z
2021-10-05T16:19:45.000Z
defmodule DepotTest do use ExUnit.Case, async: true defmacrop assert_in_list(list, match) do quote do assert Enum.any?(unquote(list), &match?(unquote(match), &1)) end end describe "filesystem without own processes" do @describetag :tmp_dir test "user can write to filesystem", %{tmp_dir:...
32.871739
91
0.642418
93a10e8067f55479b1b799a7c636171a36fbc200
1,864
ex
Elixir
test/support/conn_case.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
test/support/conn_case.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
test/support/conn_case.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
defmodule EmptyWeb.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. Finally, if the ...
26.628571
67
0.709227
93a1255696186f7cf2edea86be383a30837ed3ce
14,213
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/ad.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/ad.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/ad.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...
76.413978
608
0.735242
93a176ead266f9b72fd823f9486daf9a3fe1dc4a
2,348
ex
Elixir
lib/std_json_io.ex
AirX-Inc/std_json_io
8f189628385240c4386d3086be542e4a89e850fb
[ "MIT" ]
1
2021-01-19T04:55:37.000Z
2021-01-19T04:55:37.000Z
lib/std_json_io.ex
cavagrill/std_json_io
b7dcc61152febca040b54a68ea93fccd606a5b68
[ "MIT" ]
null
null
null
lib/std_json_io.ex
cavagrill/std_json_io
b7dcc61152febca040b54a68ea93fccd606a5b68
[ "MIT" ]
null
null
null
defmodule StdJsonIo do defmacro __using__(opts) do otp_app = Keyword.get(opts, :otp_app) if !otp_app do raise "StdJsonIo requires an otp_app" end quote do use Supervisor @pool_name Module.concat(__MODULE__, Pool) @options Keyword.merge(unquote(opts), (Application.get_env(unq...
27.623529
104
0.566865
93a1eb021aac9093a4a3a23d6e6b2a5c0ad1df77
3,627
exs
Elixir
server/test/realtime/replication_poller_test.exs
Omneedia/realtime
90a72170aa1502e211c9f5cbf638c60add6faaf6
[ "Apache-2.0" ]
null
null
null
server/test/realtime/replication_poller_test.exs
Omneedia/realtime
90a72170aa1502e211c9f5cbf638c60add6faaf6
[ "Apache-2.0" ]
null
null
null
server/test/realtime/replication_poller_test.exs
Omneedia/realtime
90a72170aa1502e211c9f5cbf638c60add6faaf6
[ "Apache-2.0" ]
null
null
null
defmodule Realtime.ReplicationPollerTest do use ExUnit.Case import Realtime.RLS.ReplicationPoller, only: [generate_record: 1] alias Realtime.Adapters.Changes.{ DeletedRecord, NewRecord, UpdatedRecord } @columns [ %{"name" => "id", "type" => "int8"}, %{"name" => "details", "type" => "tex...
24.842466
73
0.501241
93a1f18b3c3871bed49ee03c1d8f90704fb0021c
208
ex
Elixir
api/lib/grook/web/views/member_view.ex
ukita/grook
add716bf92fcde35b941ea8067933c28c192e01e
[ "MIT" ]
3
2017-05-22T13:28:13.000Z
2018-06-29T16:39:19.000Z
api/lib/grook/web/views/member_view.ex
ukita/grook
add716bf92fcde35b941ea8067933c28c192e01e
[ "MIT" ]
null
null
null
api/lib/grook/web/views/member_view.ex
ukita/grook
add716bf92fcde35b941ea8067933c28c192e01e
[ "MIT" ]
null
null
null
defmodule Grook.Web.MemberView do use Grook.Web, :view alias Grook.Web.UserView def render("index.json", %{members: members}) do %{members: render_many(members, UserView, "user.json")} end end
23.111111
59
0.701923
93a21858174fb5a9838d6a36f1b44dd042aff276
1,399
exs
Elixir
spec/ex_ndjson/serializer_spec.exs
marceldegraaf/ex_ndjson
f7cdaf57a0eb1aefe257f81881edb673c2939ca6
[ "MIT" ]
6
2018-09-29T11:30:15.000Z
2022-01-16T21:44:08.000Z
spec/ex_ndjson/serializer_spec.exs
marceldegraaf/ex_ndjson
f7cdaf57a0eb1aefe257f81881edb673c2939ca6
[ "MIT" ]
2
2020-05-05T12:12:30.000Z
2021-02-02T20:50:45.000Z
spec/ex_ndjson/serializer_spec.exs
marceldegraaf/ex_ndjson
f7cdaf57a0eb1aefe257f81881edb673c2939ca6
[ "MIT" ]
1
2019-06-27T08:42:05.000Z
2019-06-27T08:42:05.000Z
defmodule ExNdjson.SerializerSpec do @moduledoc false use ESpec use Agent import ExNdjson.Serializer example_group do describe "write!/2" do context "Given a chunk of any supported type" do it "Encodes and writes the chunk to the buffer and appends a newline to it" do buffer = ...
26.903846
86
0.523231
93a21c3b86d39e46648ffcac268911bf2f80eb5c
361
exs
Elixir
priv/repo/seeds.exs
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # TackleBoxCds.Repo.insert!(%TackleBoxCds.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as...
30.083333
61
0.714681
93a25216ef3fd61777c5473e902ba8dae1b62bd6
216,507
ex
Elixir
lib/codes/codes_s12.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s12.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s12.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_S12 do alias IcdCode.ICDCode def _S12000A do %ICDCode{full_code: "S12000A", category_code: "S12", short_code: "000A", full_name: "Unspecified displaced fracture of first cervical vertebra, initial encounter for closed fracture", short_name: ...
57.171112
164
0.718046
93a2557657479aa83eb5baff8abeeaae8dcb5ad0
8,256
ex
Elixir
apps/schema_stitch/lib/query_generator.ex
mattbaker/absinthe-schema-stitching-example
361b4e374786245dbb5087c3fe297211154fdccd
[ "Apache-2.0" ]
1
2020-08-13T05:08:26.000Z
2020-08-13T05:08:26.000Z
apps/schema_stitch/lib/query_generator.ex
mattbaker/absinthe-schema-stitching-example
361b4e374786245dbb5087c3fe297211154fdccd
[ "Apache-2.0" ]
null
null
null
apps/schema_stitch/lib/query_generator.ex
mattbaker/absinthe-schema-stitching-example
361b4e374786245dbb5087c3fe297211154fdccd
[ "Apache-2.0" ]
1
2020-08-13T05:06:35.000Z
2020-08-13T05:06:35.000Z
# Copyright (c) New Relic Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 defmodule SchemaStitch.QueryGenerator do @moduledoc """ Takes an Absinthe resolution struct and generates the relevant GraphQL query and variables. """ alias Absinthe.Blueprint @typename_field %Blueprint.Docume...
28.371134
98
0.680354
93a25eddeb1e940b7a14f1d86cd1cf78a1d2b673
350
exs
Elixir
test/controllers/application_controller_test.exs
nemanja-m/matrix
92298697827f30a2d6ba144004c1668fe70b760e
[ "MIT" ]
null
null
null
test/controllers/application_controller_test.exs
nemanja-m/matrix
92298697827f30a2d6ba144004c1668fe70b760e
[ "MIT" ]
null
null
null
test/controllers/application_controller_test.exs
nemanja-m/matrix
92298697827f30a2d6ba144004c1668fe70b760e
[ "MIT" ]
null
null
null
defmodule Matrix.ApplicationControllerTest do use Matrix.ConnCase setup %{conn: conn} do conn = put_req_header(conn, "content-type", "application/json") {:ok, conn: conn} end describe "GET /index" do it "renders index.html", %{conn: conn} do conn = get conn, "/" assert html_response(...
18.421053
67
0.648571
93a2c3ae83600abb8a744a294fecbef1032d96c4
161
ex
Elixir
lib/woolen_sockets_data/position.ex
elliotthilaire/woolen-sockets
86040cf4aa97ec979db7e15c3cbe84dd4818eaf0
[ "MIT" ]
6
2017-09-05T10:34:48.000Z
2019-06-20T05:04:52.000Z
lib/woolen_sockets_data/position.ex
elliotthilaire/woolen-sockets
86040cf4aa97ec979db7e15c3cbe84dd4818eaf0
[ "MIT" ]
null
null
null
lib/woolen_sockets_data/position.ex
elliotthilaire/woolen-sockets
86040cf4aa97ec979db7e15c3cbe84dd4818eaf0
[ "MIT" ]
null
null
null
defmodule WoolenSocketsData.Position do alias WoolenSocketsData.Position defstruct [ :x, :y ] @type t :: %Position{ x: float, y: float } end
12.384615
39
0.652174
93a2de2cad89fbd4ad320dcdba95266ae09e2982
71
ex
Elixir
web/views/layout_view.ex
norikakip/exfile_sample
1da5e24ef39d8bac50c44823eaed75dfb6e2dcb6
[ "MIT" ]
1
2016-01-23T04:11:44.000Z
2016-01-23T04:11:44.000Z
web/views/layout_view.ex
norikakip/exfile_sample
1da5e24ef39d8bac50c44823eaed75dfb6e2dcb6
[ "MIT" ]
null
null
null
web/views/layout_view.ex
norikakip/exfile_sample
1da5e24ef39d8bac50c44823eaed75dfb6e2dcb6
[ "MIT" ]
null
null
null
defmodule ExfileSample.LayoutView do use ExfileSample.Web, :view end
17.75
36
0.816901
93a2e5dfe9574ff36ec63b2d1eef9fc3b00e9cc0
1,756
exs
Elixir
config/ueberauth-local.exs
DaveMuirhead/naboo-server
daf15d9b92ad6a3f85eb42bdbe7125c489a079c1
[ "Apache-2.0" ]
null
null
null
config/ueberauth-local.exs
DaveMuirhead/naboo-server
daf15d9b92ad6a3f85eb42bdbe7125c489a079c1
[ "Apache-2.0" ]
null
null
null
config/ueberauth-local.exs
DaveMuirhead/naboo-server
daf15d9b92ad6a3f85eb42bdbe7125c489a079c1
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :ueberauth, Ueberauth, base_path: "/v1/auth", providers: [ # facebook: {Ueberauth.Strategy.Facebook, []}, # github: {Ueberauth.Strategy.Github, [default_scope: "user:email"]}, google: {Ueberauth.Strategy.Google, [ default_scope: "email profile", callbak_me...
32.518519
81
0.727221
93a35d4c7f1f433888220f58e9c686d454d3bdd5
122
exs
Elixir
test/elixir_beep_test.exs
raphaelahrens/elixir_beep
4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d
[ "BSD-2-Clause" ]
null
null
null
test/elixir_beep_test.exs
raphaelahrens/elixir_beep
4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d
[ "BSD-2-Clause" ]
null
null
null
test/elixir_beep_test.exs
raphaelahrens/elixir_beep
4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d
[ "BSD-2-Clause" ]
null
null
null
defmodule ElixirBeepTest do use ExUnit.Case doctest ElixirBeep test "the truth" do assert 1 + 1 == 2 end end
13.555556
27
0.688525
93a369033624501218eab36c9a687fa639680ee7
1,573
exs
Elixir
mix.exs
skeleton-elixir/skeleton_soft_delete
b8333a6b67bd65a7f02a7c9826418095e66ce5c5
[ "MIT" ]
2
2020-10-01T22:41:35.000Z
2020-10-01T23:01:34.000Z
mix.exs
skeleton-elixir/skeleton_soft_delete
b8333a6b67bd65a7f02a7c9826418095e66ce5c5
[ "MIT" ]
4
2020-06-27T20:13:11.000Z
2021-02-20T20:04:14.000Z
mix.exs
skeleton-elixir/skeleton_soft_delete
b8333a6b67bd65a7f02a7c9826418095e66ce5c5
[ "MIT" ]
null
null
null
defmodule SkeletonSoftDelete.MixProject do use Mix.Project @version "1.0.0" @source_url "https://github.com/skeleton-elixir/skeleton_soft_delete" @maintainers [ "Diego Nogueira", "Jhonathas Matos" ] def project do [ name: "SkeletonSoftDelete", app: :skeleton_soft_delete, vers...
21.847222
117
0.595677
93a369baacbbd412574b3710bf4654801a24841e
630
exs
Elixir
test/pointing_party_web/controllers/page_controller_test.exs
smarinskaya/pointing-party
9259d662eb460d9fbd65655f61ed1d78ad69eede
[ "Apache-2.0" ]
11
2019-07-27T19:22:22.000Z
2020-11-25T05:57:07.000Z
test/pointing_party_web/controllers/page_controller_test.exs
smarinskaya/pointing-party
9259d662eb460d9fbd65655f61ed1d78ad69eede
[ "Apache-2.0" ]
2
2019-07-10T20:47:10.000Z
2019-08-11T15:04:53.000Z
test/pointing_party_web/controllers/page_controller_test.exs
smarinskaya/pointing-party
9259d662eb460d9fbd65655f61ed1d78ad69eede
[ "Apache-2.0" ]
2
2019-08-29T05:18:33.000Z
2019-10-05T00:15:39.000Z
defmodule PointingPartyWeb.PageControllerTest do use PointingPartyWeb.ConnCase @username "test_user" describe "authenticated user" do setup %{conn: conn} do conn = Plug.Conn.assign(conn, :username, @username) {:ok, %{conn: conn}} end test "GET / renders the page with log out link", %{c...
25.2
69
0.634921
93a36aae50a30e62c232cd37c2ee2684be9cb73d
1,618
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/date_property_options.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/date_property_options.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/date_property_options.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.425532
176
0.757108
93a3a1d24e19d13ff8bb5aad3f4f5fd2006c51a6
8,942
ex
Elixir
lib/Structs/Guild/guild.ex
ElinksFr/alchemy
4c64e5c619977a62a5674dbd2b1ef29f76f6f44e
[ "MIT" ]
163
2017-03-01T09:02:35.000Z
2022-03-09T23:31:48.000Z
lib/Structs/Guild/guild.ex
ElinksFr/alchemy
4c64e5c619977a62a5674dbd2b1ef29f76f6f44e
[ "MIT" ]
91
2017-02-23T23:23:35.000Z
2021-12-29T23:47:44.000Z
lib/Structs/Guild/guild.ex
ElinksFr/alchemy
4c64e5c619977a62a5674dbd2b1ef29f76f6f44e
[ "MIT" ]
38
2017-03-23T13:16:44.000Z
2022-02-26T15:53:32.000Z
defmodule Alchemy.Guild do alias Alchemy.{Channel, User, Voice, VoiceState} alias Alchemy.Guild.{Emoji, GuildMember, Integration, Presence, Role} import Alchemy.Structs @moduledoc """ Guilds represent a collection of users in a "server". This module contains information about the types, and subtypes relate...
27.09697
93
0.617312
93a3a5420f9222ab6b6debb53f9843738f8b88c4
1,589
ex
Elixir
lib/fare_web/endpoint.ex
btihen/fare
4fb959b2c5e7d96cdb6049764ebac829f68b8128
[ "MIT" ]
null
null
null
lib/fare_web/endpoint.ex
btihen/fare
4fb959b2c5e7d96cdb6049764ebac829f68b8128
[ "MIT" ]
null
null
null
lib/fare_web/endpoint.ex
btihen/fare
4fb959b2c5e7d96cdb6049764ebac829f68b8128
[ "MIT" ]
null
null
null
defmodule FareWeb.Endpoint do use Phoenix.Endpoint, otp_app: :fare # 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, key: "_fare_key", ...
28.890909
97
0.714915
93a3be66766d8292c62384b909212860b2dfc6d5
1,393
exs
Elixir
ex_mon/test/ex_mon_test.exs
herminiotorres/curso_elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
1
2021-08-08T22:50:44.000Z
2021-08-08T22:50:44.000Z
ex_mon/test/ex_mon_test.exs
herminiotorres/curso-elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
null
null
null
ex_mon/test/ex_mon_test.exs
herminiotorres/curso-elixir
19519a2ac27b7c3e4973cdb2053c32dd61647cb5
[ "MIT" ]
null
null
null
defmodule ExMonTest do use ExUnit.Case import ExUnit.CaptureIO alias ExMon.Player describe "create_player/4" do test "returns a player" do expected_player = %Player{ life: 100, moves: %{move_avg: :high_kick, move_heal: :heal, move_rnd: :punch}, name: "JohnDoe" } ...
22.836066
89
0.604451
93a3e89a64a0005d02cc22b3ea3affa92219e70c
327
ex
Elixir
lib/chess_app/account/auth_token.ex
leobessa/exchess
289819d183f3001dddf56810c36298fa669c3a06
[ "MIT" ]
3
2017-06-02T20:47:07.000Z
2018-05-25T11:17:12.000Z
lib/chess_app/account/auth_token.ex
leobessa/exchess
289819d183f3001dddf56810c36298fa669c3a06
[ "MIT" ]
null
null
null
lib/chess_app/account/auth_token.ex
leobessa/exchess
289819d183f3001dddf56810c36298fa669c3a06
[ "MIT" ]
null
null
null
defmodule ChessApp.Account.AuthToken do defstruct [:jwt, :account_id] alias ChessApp.Account.{AuthToken,Credential} def from_credential(%Credential{id: account_id} = credential) do {:ok, jwt, _claims} = Guardian.encode_and_sign(credential, :access) {:ok, %AuthToken{account_id: account_id, jwt: jwt}} e...
29.727273
71
0.740061