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
1a2020810b57362b7674580dda525d69ee7c5203
5,327
ex
Elixir
lib/speech_markdown/grammar.ex
speechmarkdown/speechmarkdown-ex
9601085af39b6d18709a3ed796579bc17ab2d5fd
[ "Apache-2.0" ]
4
2020-05-21T06:30:47.000Z
2021-04-19T18:12:25.000Z
lib/speech_markdown/grammar.ex
speechmarkdown/speechmarkdown-ex
9601085af39b6d18709a3ed796579bc17ab2d5fd
[ "Apache-2.0" ]
3
2020-01-31T21:12:29.000Z
2020-06-26T08:48:33.000Z
lib/speech_markdown/grammar.ex
speechmarkdown/speechmarkdown-ex
9601085af39b6d18709a3ed796579bc17ab2d5fd
[ "Apache-2.0" ]
2
2020-02-02T11:11:47.000Z
2021-09-21T15:21:42.000Z
defmodule SpeechMarkdown.Grammar do @moduledoc false @type attributes :: [{atom(), String.t()}] @type ast_node :: {:text, String.t()} | {:modifier, String.t(), attributes()} | {:block, attributes()} | {:break, String.t()} | {:section, attributes()} | {:...
23.060606
78
0.498404
1a2039a2987c3f8108ff72693674517a8ce7e58b
1,139
exs
Elixir
config/config.exs
saucelabs/sauce-elixir
44817d9c502f73dc048a0d282bfec83d9d6dd27e
[ "MIT" ]
1
2021-11-17T23:04:50.000Z
2021-11-17T23:04:50.000Z
config/config.exs
saucelabs/sauce-elixir
44817d9c502f73dc048a0d282bfec83d9d6dd27e
[ "MIT" ]
1
2020-10-20T20:16:04.000Z
2020-10-20T20:16:04.000Z
config/config.exs
saucelabs/sauce-elixir
44817d9c502f73dc048a0d282bfec83d9d6dd27e
[ "MIT" ]
1
2021-11-17T23:04:39.000Z
2021-11-17T23:04:39.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.741935
73
0.753292
1a20a0f10705f524ac70ec495677dbcf4bf92c7b
1,388
exs
Elixir
config/config.exs
ultimatemonty/peepchat-api
c6359319d0380c71541e0813131866020555a471
[ "MIT" ]
null
null
null
config/config.exs
ultimatemonty/peepchat-api
c6359319d0380c71541e0813131866020555a471
[ "MIT" ]
null
null
null
config/config.exs
ultimatemonty/peepchat-api
c6359319d0380c71541e0813131866020555a471
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :peepchat, ecto_repos: [Peepchat.Repo] ...
30.844444
118
0.75
1a212c6b563b6e304383d4dbec96d8de90278535
198
ex
Elixir
lib/phone/ug.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/ug.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/ug.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
defmodule Phone.UG do @moduledoc false use Helper.Country def regex, do: ~r/^(256)()(.{8})/ def country, do: "Uganda" def a2, do: "UG" def a3, do: "UGA" matcher :regex, ["256"] end
15.230769
35
0.59596
1a215090e9bcbc550a472ad58c994978047e9e23
367
ex
Elixir
lib/covid19_questionnaire_web/endpoint.ex
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
3
2020-04-08T19:15:22.000Z
2020-05-24T22:37:54.000Z
lib/covid19_questionnaire_web/endpoint.ex
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
10
2020-04-05T17:31:49.000Z
2020-06-10T11:09:17.000Z
lib/covid19_questionnaire_web/endpoint.ex
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
null
null
null
defmodule Covid19QuestionnaireWeb.Endpoint do use Phoenix.Endpoint, otp_app: :covid19_questionnaire alias Covid19QuestionnaireWeb.Plugs.Connive plug Plug.Parsers, parsers: [:urlencoded, :multipart, :json], pass: ["*/*"], json_decoder: Phoenix.json_library() plug RemoteIp plug Connive plug CORS...
24.466667
55
0.760218
1a215cb1e8828c07754e0f72593504e28cb31fbf
1,223
ex
Elixir
lib/hello_world_web/endpoint.ex
llamalogs/PhonixBlogExample
61cf3760bf7758c4b5f4ed3d7f0da4646982f315
[ "MIT" ]
null
null
null
lib/hello_world_web/endpoint.ex
llamalogs/PhonixBlogExample
61cf3760bf7758c4b5f4ed3d7f0da4646982f315
[ "MIT" ]
null
null
null
lib/hello_world_web/endpoint.ex
llamalogs/PhonixBlogExample
61cf3760bf7758c4b5f4ed3d7f0da4646982f315
[ "MIT" ]
null
null
null
defmodule HelloWorldWeb.Endpoint do use Phoenix.Endpoint, otp_app: :hello_world socket "/socket", HelloWorldWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when deploying ...
27.177778
63
0.70973
1a2162a49d74d10ab1e0819d8d7ec6d877292f87
5,852
exs
Elixir
test/ex_rets/digest_access_authentication/response_test.exs
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
1
2019-12-20T14:23:19.000Z
2019-12-20T14:23:19.000Z
test/ex_rets/digest_access_authentication/response_test.exs
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
null
null
null
test/ex_rets/digest_access_authentication/response_test.exs
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
null
null
null
defmodule ExRets.DigestAccessAuthentication.ResponseTest do use ExUnit.Case, async: true alias ExRets.Credentials alias ExRets.DigestAccessAuthentication.Challenge alias ExRets.DigestAccessAuthentication.Response alias ExRets.HttpRequest doctest Response @rfc2617_example %{ request: %HttpRequest{ ...
32.692737
271
0.63363
1a216730d507b3230d9285ad10fd20c1150f842a
452
ex
Elixir
algorithms/medium/best_time_to_buy_and_sell_stock_with_transaction_fee.ex
stackcats/leetcode
8d50cd92ced2ca991ea9f1e5311f5fda5707d81d
[ "MIT" ]
1
2021-05-30T05:06:06.000Z
2021-05-30T05:06:06.000Z
algorithms/medium/best_time_to_buy_and_sell_stock_with_transaction_fee.ex
stackcats/leetcode
8d50cd92ced2ca991ea9f1e5311f5fda5707d81d
[ "MIT" ]
null
null
null
algorithms/medium/best_time_to_buy_and_sell_stock_with_transaction_fee.ex
stackcats/leetcode
8d50cd92ced2ca991ea9f1e5311f5fda5707d81d
[ "MIT" ]
null
null
null
defmodule Solution do @spec max_profit(prices :: [integer], fee :: integer) :: integer def max_profit([price | rest], fee) do aux(rest, -price - fee, 0, fee) end @spec aux(prices :: [integer], bought :: integer, sold :: integer, fee :: integer) :: integer def aux([], _bought, sold, _fee), do: sold def...
32.285714
95
0.630531
1a21bb0254c6f2c2190c9eaabe22cbbbdaa1aed6
753
ex
Elixir
clients/keto/elixir/lib/keto/model/generic_error.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/keto/elixir/lib/keto/model/generic_error.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/keto/elixir/lib/keto/model/generic_error.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule Keto.Model.GenericError do @moduledoc """ The standard error format """ @derive [Poison.Encoder] defstruct [ :"code", :"details", ...
20.916667
91
0.605578
1a21c2c8dcb3795004e5b410c6e7c2ceb7705262
207
exs
Elixir
elixir/106.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/106.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/106.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
defmodule MyList do def sum(list), do: _sum(list, 0) #private methods defp _sum([], total), do: total defp _sum([head|tail], total), do: _sum(tail, head+total) end IO.inspect MyList.sum([1,2,3,4])
20.7
59
0.661836
1a21c9657e4e6351cb9b3c00f69ea319900b3b18
473
exs
Elixir
test/models/person_test.exs
geowa4/graphql-elixir-phoenix-preso
9d0de23a09506e46a4a0bf71db26e4691f254849
[ "MIT" ]
null
null
null
test/models/person_test.exs
geowa4/graphql-elixir-phoenix-preso
9d0de23a09506e46a4a0bf71db26e4691f254849
[ "MIT" ]
null
null
null
test/models/person_test.exs
geowa4/graphql-elixir-phoenix-preso
9d0de23a09506e46a4a0bf71db26e4691f254849
[ "MIT" ]
null
null
null
defmodule HelloPhoenix.PersonTest do use HelloPhoenix.ModelCase alias HelloPhoenix.Person @valid_attrs %{family_name: "some content", given_name: "some content"} @invalid_attrs %{} test "changeset with valid attributes" do changeset = Person.changeset(%Person{}, @valid_attrs) assert changeset.valid...
24.894737
73
0.739958
1a21d325aa448f284b2f1abbca9ffd37cd46f095
962
ex
Elixir
lib/sift/events/types/item.ex
msramos/sift
28c09763ae0a3509c815df0c2e3c88ce671b1055
[ "MIT" ]
null
null
null
lib/sift/events/types/item.ex
msramos/sift
28c09763ae0a3509c815df0c2e3c88ce671b1055
[ "MIT" ]
null
null
null
lib/sift/events/types/item.ex
msramos/sift
28c09763ae0a3509c815df0c2e3c88ce671b1055
[ "MIT" ]
null
null
null
defmodule Sift.Events.Types.Item do alias Sift.Events.Types.CurrencyCode alias Sift.Schema alias Sift.Schema.{Field, Type} @behaviour Type @impl Type def type_alias, do: :item @fields %{ item_id: %Field{key: "$item_id"}, product_title: %Field{key: "$product_title"}, price: %Field{key: "$pri...
27.485714
69
0.619543
1a21e3586a87f22a06c2faa8232f691bb46aa2df
285
exs
Elixir
mix.exs
fdorothy/parcel
67772a2a048edad0b66012a413734132df4e82ee
[ "BSD-3-Clause" ]
1
2020-05-13T01:54:27.000Z
2020-05-13T01:54:27.000Z
mix.exs
fdorothy/parcel
67772a2a048edad0b66012a413734132df4e82ee
[ "BSD-3-Clause" ]
null
null
null
mix.exs
fdorothy/parcel
67772a2a048edad0b66012a413734132df4e82ee
[ "BSD-3-Clause" ]
null
null
null
defmodule Parcel.Mixfile do use Mix.Project def project do [app: :parcel, version: "0.0.1", elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: []] end def application do [applications: []] end end
15.833333
39
0.582456
1a21e950ea7acabf104e54d521dd75d86a58873a
2,526
ex
Elixir
lib/datetime/ambiguous.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
1
2020-01-31T10:23:37.000Z
2020-01-31T10:23:37.000Z
lib/datetime/ambiguous.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
lib/datetime/ambiguous.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
null
null
null
defmodule Timex.AmbiguousDateTime do @moduledoc """ Represents a DateTime which is ambiguous due to timezone rules. ## Ambiguity #1 - Non-existent times Let's use American daylight savings time rules as our example here, using America/Chicago as our example. Central Standard Time for that zone ends at 2:0...
52.625
103
0.746239
1a21fe253e5abe2a142ea94398cf5d2ca8e5231a
140
ex
Elixir
lib/level/pagination/page_info.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
928
2018-04-03T16:18:11.000Z
2019-09-09T17:59:55.000Z
lib/level/pagination/page_info.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
74
2018-04-03T00:46:50.000Z
2019-03-10T18:57:27.000Z
lib/level/pagination/page_info.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
89
2018-04-03T17:33:20.000Z
2019-08-19T03:40:20.000Z
defmodule Level.Pagination.PageInfo do @moduledoc false defstruct [:start_cursor, :end_cursor, :has_next_page, :has_previous_page] end
23.333333
76
0.8
1a221d0d17269b0a247c2c2796654c31496679ef
1,425
ex
Elixir
lab-one-introduction-to-elixir/ex3-n-clients-single-server/lib/clientserver.ex
HilliamT/distributed-algorithms
788e8e0b9a6c60570ecf8336f2239fb1d1945b1c
[ "MIT" ]
null
null
null
lab-one-introduction-to-elixir/ex3-n-clients-single-server/lib/clientserver.ex
HilliamT/distributed-algorithms
788e8e0b9a6c60570ecf8336f2239fb1d1945b1c
[ "MIT" ]
null
null
null
lab-one-introduction-to-elixir/ex3-n-clients-single-server/lib/clientserver.ex
HilliamT/distributed-algorithms
788e8e0b9a6c60570ecf8336f2239fb1d1945b1c
[ "MIT" ]
null
null
null
# distributed algorithms, n.dulay, 4 jan 21 # simple client-server, v1 defmodule ClientServer do def start do config = Helper.node_init() start(config.start_function, config) end defp start(:single_start, config) do IO.puts "-> ClientServer at #{Helper.node_string()}" # Node.spawn/X returns server PID, w...
33.928571
112
0.697544
1a22264d3420312962878ef1a85d89e2777218f3
550
ex
Elixir
rockelivery/lib/rockelivery_web/plugs/uuid_checker.ex
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
rockelivery/lib/rockelivery_web/plugs/uuid_checker.ex
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
rockelivery/lib/rockelivery_web/plugs/uuid_checker.ex
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
defmodule RockeliveryWeb.Plugs.UUIDChecker do import Plug.Conn alias Ecto.UUID alias Plug.Conn def init(opts), do: opts def call(%Conn{params: %{"id" => id}} = conn, _opts) do case UUID.cast(id) do :error -> render_error(conn) {:ok, _uuid} -> conn end end def call(%Conn{} = conn, _...
20.37037
63
0.632727
1a22272f9423b371e53499cc692741528b51f566
2,539
ex
Elixir
lib/shopify_api/rest/product_image.ex
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
18
2019-06-07T13:36:39.000Z
2021-08-03T21:06:36.000Z
lib/shopify_api/rest/product_image.ex
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
158
2018-08-30T22:09:00.000Z
2021-09-22T01:18:59.000Z
lib/shopify_api/rest/product_image.ex
ProtoJazz/elixir-shopifyapi
759e20baff5afdff235386193bc42b2ecd343f5d
[ "Apache-2.0" ]
4
2020-09-05T00:48:46.000Z
2020-09-30T15:53:50.000Z
defmodule ShopifyAPI.REST.ProductImage do @moduledoc """ ShopifyApi REST API Product Image resource """ alias ShopifyAPI.AuthToken alias ShopifyAPI.REST @doc """ Return a list of all products images. ## Example iex> ShopifyApi.Rest.ProductImage.all(auth, integer) {:ok, [] = images} """...
24.180952
82
0.59551
1a2251b2f9e22f51d0dd0edd009940288f8f809c
52,599
exs
Elixir
lib/elixir/test/elixir/kernel/warning_test.exs
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
1
2021-05-05T02:11:24.000Z
2021-05-05T02:11:24.000Z
lib/elixir/test/elixir/kernel/warning_test.exs
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
6
2021-03-19T12:33:21.000Z
2021-04-02T17:52:45.000Z
lib/elixir/test/elixir/kernel/warning_test.exs
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.WarningTest do use ExUnit.Case import ExUnit.CaptureIO defp capture_err(fun) do capture_io(:stderr, fun) end test "outdented heredoc" do output = capture_err(fn -> Code.eval_string(""" ''' outdented ...
27.295797
219
0.50231
1a22951965da4515b53dcdc90990f8372f4ddfb0
148
exs
Elixir
priv/repo/migrations/20181020142107_add_indexes_to_messages.exs
oestrich/raisin
7a0cf13768a8e59b023f8e940c73e7c7eeff18e8
[ "MIT" ]
1
2018-10-23T04:13:35.000Z
2018-10-23T04:13:35.000Z
priv/repo/migrations/20181020142107_add_indexes_to_messages.exs
oestrich/raisin
7a0cf13768a8e59b023f8e940c73e7c7eeff18e8
[ "MIT" ]
null
null
null
priv/repo/migrations/20181020142107_add_indexes_to_messages.exs
oestrich/raisin
7a0cf13768a8e59b023f8e940c73e7c7eeff18e8
[ "MIT" ]
null
null
null
defmodule Raisin.Repo.Migrations.AddIndexesToMessages do use Ecto.Migration def change do create index(:messages, :channel_name) end end
18.5
56
0.777027
1a2298473bde4d28631f2eaefa4bb53cc8e9922e
2,390
ex
Elixir
lib/commanded/event_store/adapters/event_store/mapper.ex
joseph-lozano/commanded-eventstore-adapter
a0f75c751c0729eac0868d4601432078c3577cf2
[ "MIT" ]
23
2017-12-08T18:02:40.000Z
2021-06-12T05:35:52.000Z
lib/commanded/event_store/adapters/event_store/mapper.ex
slashdotdash/commanded-eventstore-adapter
76dad75bdde56390329cbd71b2dba4dddededa5e
[ "MIT" ]
5
2018-10-15T13:35:37.000Z
2020-10-18T13:19:53.000Z
lib/commanded/event_store/adapters/event_store/mapper.ex
slashdotdash/commanded-eventstore-adapter
76dad75bdde56390329cbd71b2dba4dddededa5e
[ "MIT" ]
19
2018-09-28T09:17:50.000Z
2021-06-25T00:29:36.000Z
defmodule Commanded.EventStore.Adapters.EventStore.Mapper do @moduledoc false def to_event_data(%Commanded.EventStore.EventData{} = event_data) do %Commanded.EventStore.EventData{ causation_id: causation_id, correlation_id: correlation_id, event_type: event_type, data: data, metad...
26.555556
76
0.684519
1a2325fd3d08fb103424b0f993bc2fdf183e9481
1,704
ex
Elixir
lib/hammoc_web/controllers/user_controller.ex
hammoc-app/hammoc-elixir
00cd24e2170cc3dee65c7848868ea3d1096ac25c
[ "MIT" ]
5
2019-07-13T22:20:50.000Z
2020-07-13T05:05:43.000Z
lib/hammoc_web/controllers/user_controller.ex
hammoc-app/hammoc-elixir
00cd24e2170cc3dee65c7848868ea3d1096ac25c
[ "MIT" ]
33
2019-08-01T03:48:23.000Z
2021-07-28T03:29:40.000Z
lib/hammoc_web/controllers/user_controller.ex
hammoc-app/hammoc-elixir
00cd24e2170cc3dee65c7848868ea3d1096ac25c
[ "MIT" ]
2
2019-09-03T22:45:11.000Z
2020-01-01T23:56:58.000Z
defmodule HammocWeb.UserController do use HammocWeb, :controller alias Hammoc.Identity alias Hammoc.Identity.User plug :require_user when action in [:start, :account, :update] def choose_user(conn, _params) do {:ok, users} = Identity.get_users(get_session(conn, :user_ids)) render(conn, "choose_use...
25.818182
93
0.653756
1a233ded7732e385cb7a5946adb8eab7cbd21c66
14,212
exs
Elixir
lib/elixir/test/elixir/exception_test.exs
jw2013/elixir
ebc5afed90576a16c4f6e22d68222413db8358cc
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/exception_test.exs
jw2013/elixir
ebc5afed90576a16c4f6e22d68222413db8358cc
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/exception_test.exs
jw2013/elixir
ebc5afed90576a16c4f6e22d68222413db8358cc
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule Kernel.ExceptionTest do use ExUnit.Case, async: true test "raise preserves the stacktrace" do stacktrace = try do raise "a" rescue _ -> [top|_] = System.stacktrace top end file = __ENV__.file |> Path.relative_...
43.197568
131
0.629116
1a2348e6e598ea9f4dca8a27862e35d742e043c0
1,782
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/disable_service_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/disable_service_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/disable_service_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
37.125
333
0.76431
1a23492ded367a97b01306609c30da7105efd200
2,272
ex
Elixir
lib/live_element/socket.ex
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
lib/live_element/socket.ex
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
lib/live_element/socket.ex
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
defmodule LiveElement.Socket.AssignsNotInSocket do @moduledoc false defimpl Inspect do def inspect(_, _) do "#LiveElement.Socket.AssignsNotInSocket<>" end end defstruct [:__assigns__] @type t :: %__MODULE__{} end defmodule LiveElement.Socket do @moduledoc """ The LiveView socket for Phoen...
25.818182
77
0.580106
1a238b7220eff9f471e499a672cf30481a00f1ab
1,895
ex
Elixir
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/order_by.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/order_by.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/order_by.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...
35.754717
252
0.710818
1a2391ba8b0dbca19606140695c948d19d4bd272
67
exs
Elixir
apps/admin_web/test/test_helper.exs
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
apps/admin_web/test/test_helper.exs
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
apps/admin_web/test/test_helper.exs
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Admin.Repo, :manual)
22.333333
51
0.776119
1a23c77aa6338b709ca7d88516a33ca876c1090b
1,226
ex
Elixir
apps/bank_web/web/views/error_helpers.ex
devnacho/acme_bank
cee19a490d2b3c04465273b7a6212d7e6a81f736
[ "MIT" ]
776
2016-07-16T14:24:37.000Z
2022-03-07T17:05:11.000Z
apps/bank_web/web/views/error_helpers.ex
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
19
2016-09-03T15:06:57.000Z
2021-12-10T10:04:05.000Z
apps/bank_web/web/views/error_helpers.ex
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
130
2016-09-03T19:44:27.000Z
2022-01-16T12:27:54.000Z
defmodule BankWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error), ...
29.902439
73
0.66721
1a23efc2a37ae9ce5a57640dc2757ba673f0a9bb
161
ex
Elixir
lib/protobuf_struct/value_struct.ex
olafura/protobuf_struct
c0c9dee21eaaddc1c79087526e1ea7bf5df57b1a
[ "MIT" ]
1
2021-06-09T14:04:35.000Z
2021-06-09T14:04:35.000Z
lib/protobuf_struct/value_struct.ex
olafura/protobuf_struct
c0c9dee21eaaddc1c79087526e1ea7bf5df57b1a
[ "MIT" ]
1
2021-06-10T14:22:41.000Z
2021-06-10T14:22:41.000Z
lib/protobuf_struct/value_struct.ex
olafura/protobuf_struct
c0c9dee21eaaddc1c79087526e1ea7bf5df57b1a
[ "MIT" ]
null
null
null
defimpl ProtobufStruct.ValueEncode, for: Map do @moduledoc nil def encode(map) do %{kind: {:struct_value, ProtobufStruct.Struct.encode(map)}} end end
20.125
63
0.726708
1a24035767a2cb1aeb111f80069f95a9d2e85a61
1,372
ex
Elixir
lib/postgrex/extensions/polygon.ex
enter-haken/postgrex
fb3438d4e6a56db81ddd0d578cdfc0484909c233
[ "Apache-2.0" ]
1
2021-02-24T13:06:18.000Z
2021-02-24T13:06:18.000Z
deps/postgrex/lib/postgrex/extensions/polygon.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/postgrex/lib/postgrex/extensions/polygon.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
null
null
null
defmodule Postgrex.Extensions.Polygon do @moduledoc false import Postgrex.BinaryUtils, warn: false use Postgrex.BinaryExtension, send: "poly_send" alias Postgrex.Extensions.Polygon alias Postgrex.Extensions.Point def encode(_) do quote location: :keep do %Postgrex.Polygon{vertices: vertices} when...
29.191489
90
0.645773
1a24382604d48c6822f78032bf580d8787cb70b2
425
ex
Elixir
lib/character_generator/application.ex
sgeos/elixir-character-generator
50babbb3392e8724248777a2ccee1f1502204d37
[ "CC0-1.0" ]
null
null
null
lib/character_generator/application.ex
sgeos/elixir-character-generator
50babbb3392e8724248777a2ccee1f1502204d37
[ "CC0-1.0" ]
null
null
null
lib/character_generator/application.ex
sgeos/elixir-character-generator
50babbb3392e8724248777a2ccee1f1502204d37
[ "CC0-1.0" ]
null
null
null
defmodule CharacterGenerator.Application do use Application def start(_type, _args) do {:ok, pid} = Task.Supervisor.start_link() main_task(pid) {:ok, pid} end def main_task(pid), do: Task.Supervisor.async(pid, __MODULE__, :main, [args]) def main(args) do Mix.Project.get.project[:escript][:m...
22.368421
79
0.691765
1a243b676b656db19d81d13104cd40f41094cf50
436
ex
Elixir
lib/playwright/websocket.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
30
2021-06-01T16:59:35.000Z
2022-03-25T16:56:19.000Z
lib/playwright/websocket.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
35
2021-06-10T17:05:31.000Z
2022-02-11T22:30:36.000Z
lib/playwright/websocket.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
4
2021-08-13T20:38:18.000Z
2022-01-31T04:32:35.000Z
defmodule Playwright.WebSocket do @moduledoc """ ... """ use Playwright.ChannelOwner @property :is_closed @property :url # --- # @spec expect_event(t(), binary(), function(), options()) :: map() # def expect_event(web_socket, event, predicate \\ nil, options \\ %{}) # ...delegate wait_for_event -...
20.761905
73
0.62156
1a244a64960c725e1541202f5d524dac417f24a9
526
exs
Elixir
priv/repo/migrations/20200107005156_create_locations.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
6
2017-06-16T10:26:35.000Z
2021-04-07T15:01:00.000Z
priv/repo/migrations/20200107005156_create_locations.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
2
2020-04-14T02:17:46.000Z
2021-03-10T11:09:05.000Z
priv/repo/migrations/20200107005156_create_locations.exs
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
null
null
null
defmodule Militerm.Repo.Migrations.CreateLocations do use Ecto.Migration def change do create table(:locations) do add :entity_id, :string add :target_id, :string add :t, :integer add :detail, :string add :relationship, :string add :position, :string add :point, {:arra...
23.909091
60
0.65019
1a246adb3b0e000b423f2bd70bbe8ff7b4570631
1,240
ex
Elixir
clients/drive_activity/lib/google_api/drive_activity/v2/model/file.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/file.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/file.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...
29.52381
74
0.754032
1a24804b6d8f9f6516f369cd2a638d00f3687b9f
5,938
ex
Elixir
lib/dsl/function/names.ex
elbow-jason/durango
a31b5636789ef275f19963343eda03d10ebc3ca0
[ "MIT" ]
7
2018-03-04T14:33:46.000Z
2020-10-26T17:32:23.000Z
lib/dsl/function/names.ex
elbow-jason/durango
a31b5636789ef275f19963343eda03d10ebc3ca0
[ "MIT" ]
5
2018-08-01T07:29:02.000Z
2018-12-31T12:59:16.000Z
lib/dsl/function/names.ex
elbow-jason/durango
a31b5636789ef275f19963343eda03d10ebc3ca0
[ "MIT" ]
null
null
null
defmodule Durango.Dsl.Function.Names do @functions [ #{name, arity} # https://docs.arangodb.com/3.3/AQL/Functions/TypeCast.html document: 1, document: 2, collections: 0, has: 2, to_bool: 1, to_number: 1, to_...
32.626374
85
0.40485
1a248ef06d8bade6db8f222a78ab9c3da4533ba3
71
exs
Elixir
test/test_helper.exs
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
test/test_helper.exs
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
test/test_helper.exs
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(SimpleApi.Repo, :manual)
23.666667
55
0.788732
1a2491d32c25f0c85b512bad4313dd6a36ab9420
4,461
ex
Elixir
clients/tag_manager/lib/google_api/tag_manager/v2/model/built_in_variable.ex
MechimCook/elixir-google-api
0240ede69ec77115076724d223f9d1f849ff1d6b
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/built_in_variable.ex
MechimCook/elixir-google-api
0240ede69ec77115076724d223f9d1f849ff1d6b
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/built_in_variable.ex
MechimCook/elixir-google-api
0240ede69ec77115076724d223f9d1f849ff1d6b
[ "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...
69.703125
2,169
0.803183
1a249741aa0a383b24ee3439ad29f0cdf09d1168
144
exs
Elixir
config/dev.exs
dogwynn/vaporator
4aa48d3a0862af0b86849460401919ac8e3248d7
[ "MIT" ]
null
null
null
config/dev.exs
dogwynn/vaporator
4aa48d3a0862af0b86849460401919ac8e3248d7
[ "MIT" ]
103
2019-01-13T20:39:00.000Z
2021-07-29T05:30:36.000Z
config/dev.exs
dogwynn/vaporator
4aa48d3a0862af0b86849460401919ac8e3248d7
[ "MIT" ]
null
null
null
use Mix.Config config :vaporator, cloudfs_root: "/vaporator/test/" config :vaporator, clientfs_sync_dirs: [] import_config "instance.exs"
13.090909
51
0.756944
1a24d111cae1e468ffbc8ecc102b4775c3dab860
335
ex
Elixir
lib/central_web/views/general/page_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central_web/views/general/page_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/central_web/views/general/page_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule CentralWeb.General.PageView do use CentralWeb, :view def colours(), do: Central.Helpers.StylingHelper.colours(:default) # def icon(), do: Central.Universe.icon() def colours("home"), do: colours() def colours("account"), do: colours() def colours("user_configs"), do: Central.Config.UserConfigLib...
30.454545
73
0.725373
1a25120f691ebd10a305a45622fb7083b6f19569
579
ex
Elixir
apps/core/lib/auth/mnesia_cluster_supervisor.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/auth/mnesia_cluster_supervisor.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/auth/mnesia_cluster_supervisor.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
defmodule Legendary.Auth.MnesiaClusterSupervisor do @moduledoc """ Manages the cache in Mnesia for Pow. This allows users to remain logged in even if their traffic is hitting different nodes in the cluster. """ use Supervisor def start_link(init_arg) do Supervisor.start_link(__MODULE__, init_arg, name...
25.173913
76
0.728843
1a252ba097df3867e611259295ea85e43aebd4fc
1,538
ex
Elixir
lib/faker/finance/stock.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
540
2015-01-05T16:31:49.000Z
2019-09-25T00:40:27.000Z
lib/faker/finance/stock.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
172
2015-01-06T03:55:17.000Z
2019-10-03T12:58:02.000Z
lib/faker/finance/stock.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
163
2015-01-05T21:24:54.000Z
2019-10-03T07:59:42.000Z
defmodule Faker.Finance.Stock do alias Faker.Util @moduledoc """ Functions for stock data """ @doc """ Returns a ticker. ## Examples iex> Faker.Finance.Stock.ticker() "7401.N225" iex> Faker.Finance.Stock.ticker() "4786.HK" iex> Faker.Finance.Stock.ticker() "6766.N22...
23.661538
59
0.613134
1a252d76a3251dbb7762c6094bd9066259e125a8
31,923
ex
Elixir
lib/ili9486_elixir.ex
cocoa-xu/ili9486_elixir
c6123142a445df1fb3eac35320b7b408377ac095
[ "Apache-2.0" ]
null
null
null
lib/ili9486_elixir.ex
cocoa-xu/ili9486_elixir
c6123142a445df1fb3eac35320b7b408377ac095
[ "Apache-2.0" ]
null
null
null
lib/ili9486_elixir.ex
cocoa-xu/ili9486_elixir
c6123142a445df1fb3eac35320b7b408377ac095
[ "Apache-2.0" ]
null
null
null
defmodule ILI9486 do @moduledoc """ ILI9486 Elixir driver """ use GenServer use Bitwise @enforce_keys [:gpio, :opts, :lcd_spi, :data_bus, :display_mode, :chunk_size] defstruct [ :gpio, :opts, :lcd_spi, :touch_spi, :touch_pid, :pix_fmt, :rotation, :mad_mode, :data_bus,...
25.116444
112
0.62704
1a25684e47e67485fb126c8e8d28fb99ef7f2f3d
86,586
ex
Elixir
lib/ecto/schema.ex
johannes-mueller/ecto
896a1e8d59fcc8f12ff4a763d41babacfb36e1d5
[ "Apache-2.0" ]
1
2022-03-13T23:01:45.000Z
2022-03-13T23:01:45.000Z
lib/ecto/schema.ex
johannes-mueller/ecto
896a1e8d59fcc8f12ff4a763d41babacfb36e1d5
[ "Apache-2.0" ]
null
null
null
lib/ecto/schema.ex
johannes-mueller/ecto
896a1e8d59fcc8f12ff4a763d41babacfb36e1d5
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Schema do @moduledoc ~S""" Defines a schema. An Ecto schema is used to map any data source into an Elixir struct. The definition of the schema is possible through two main APIs: `schema/2` and `embedded_schema/1`. `schema/2` is typically used to map data from a persisted source, usually a...
36.93942
155
0.671483
1a2570c58203089e3a21427207db0fdf470cbd14
1,499
exs
Elixir
implements/clock/clock.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
implements/clock/clock.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
1
2018-06-19T18:59:41.000Z
2018-06-19T18:59:41.000Z
implements/clock/clock.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
defmodule Clock do defstruct hour: 0, minute: 0 @type t :: %Clock{hour: integer, minute: integer} @type t(hour, minute) :: %Clock{hour: hour, minute: minute} @doc """ Returns a string representation of a clock: iex> Clock.new(8, 9) |> to_string "08:09" """ @spec new(integer, integer) :: Cloc...
28.283019
65
0.621748
1a25ea3147741e80238ea5aa36d52e8bca884e2f
9,013
exs
Elixir
test/absinthe/schema/notation/experimental/import_sdl_test.exs
jscheid/absinthe
5b5079f03402f482c5f52a35efc263a5a6ccaf64
[ "MIT" ]
null
null
null
test/absinthe/schema/notation/experimental/import_sdl_test.exs
jscheid/absinthe
5b5079f03402f482c5f52a35efc263a5a6ccaf64
[ "MIT" ]
null
null
null
test/absinthe/schema/notation/experimental/import_sdl_test.exs
jscheid/absinthe
5b5079f03402f482c5f52a35efc263a5a6ccaf64
[ "MIT" ]
null
null
null
defmodule Absinthe.Schema.Notation.Experimental.ImportSdlTest do use Absinthe.Case import ExperimentalNotationHelpers @moduletag :experimental @moduletag :sdl defmodule WithFeatureDirective do use Absinthe.Schema.Prototype directive :feature do arg :name, non_null(:string) on [:interfac...
26.904478
120
0.617331
1a2633621212985c4102ad076ab5b8b23a33aa11
702
exs
Elixir
mix.exs
jeremy-miller/portals
4dc18426ff5ea779195bae1b5c197befc2f997da
[ "MIT" ]
null
null
null
mix.exs
jeremy-miller/portals
4dc18426ff5ea779195bae1b5c197befc2f997da
[ "MIT" ]
null
null
null
mix.exs
jeremy-miller/portals
4dc18426ff5ea779195bae1b5c197befc2f997da
[ "MIT" ]
null
null
null
defmodule Portal.Mixfile do use Mix.Project def project do [app: :portal, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], preferred_cli_env: ["coveralls": :test, "covera...
24.206897
97
0.584046
1a26a35bbbe31674c590c59601388ecb1a16d02c
6,688
ex
Elixir
lib/advent2019_web/controllers/day18_controller.ex
jacopofar/advent-of-code-2019-phoenix-react
762d7053fd8eeb096187fb394e3ce03bbe1854d7
[ "MIT" ]
5
2019-12-02T08:50:54.000Z
2021-03-31T22:54:20.000Z
lib/advent2019_web/controllers/day18_controller.ex
jacopofar/advent-of-code-2019-phoenix-react
762d7053fd8eeb096187fb394e3ce03bbe1854d7
[ "MIT" ]
1
2019-12-18T07:19:26.000Z
2019-12-18T07:19:26.000Z
lib/advent2019_web/controllers/day18_controller.ex
jacopofar/advent-of-code-2019-phoenix-react
762d7053fd8eeb096187fb394e3ce03bbe1854d7
[ "MIT" ]
2
2019-12-16T07:52:16.000Z
2019-12-17T17:49:05.000Z
defmodule Advent2019Web.Day18Controller do use Advent2019Web, :controller @doc """ From an ASCII labyrinth produce a sparse representation as a map. """ @spec labyrinth_string_to_map(String.t()) :: map def labyrinth_string_to_map(labyrinth) do String.split(labyrinth, "\n") |> Enum.with_index() ...
29.991031
98
0.601824
1a26af9552ddddf150fc38db71babcc88f7ba09d
3,563
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/endpoint.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/endpoint.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/endpoint.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 ...
40.954023
135
0.707269
1a2713922348cb9fab85b7b8a26741d2f055dcff
11,966
ex
Elixir
lib/eyepatch.ex
nroi/eyepatch
164a5f50acc1047dc5e99c4e53183d260280157c
[ "Apache-2.0" ]
1
2020-01-19T17:41:20.000Z
2020-01-19T17:41:20.000Z
lib/eyepatch.ex
nroi/eyepatch
164a5f50acc1047dc5e99c4e53183d260280157c
[ "Apache-2.0" ]
null
null
null
lib/eyepatch.ex
nroi/eyepatch
164a5f50acc1047dc5e99c4e53183d260280157c
[ "Apache-2.0" ]
null
null
null
defmodule Eyepatch do use GenServer defstruct caller_pid: nil, inet_dns_response: nil, inet6_dns_response: nil, inet_connect_result: nil, inet6_connect_result: nil, uri: nil, request_ipv4_fn: nil, request_ipv6_fn: nil, ...
30.682051
115
0.61892
1a2731aac8e5c3f1b5c351d0d9bcd55980ec8998
225
ex
Elixir
lib/exquickbooks/backend.ex
evanob/ExQuickBooks
8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2
[ "0BSD" ]
null
null
null
lib/exquickbooks/backend.ex
evanob/ExQuickBooks
8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2
[ "0BSD" ]
null
null
null
lib/exquickbooks/backend.ex
evanob/ExQuickBooks
8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2
[ "0BSD" ]
null
null
null
defmodule ExQuickBooks.Backend do @moduledoc false alias ExQuickBooks.Backend.Request alias HTTPoison.Error alias HTTPoison.Response @callback request(Request.t()) :: {:ok, Response.t()} | {:error, Error.t()} end
22.5
77
0.728889
1a27430acbe3f21f5c15681ea4a9a1c36fdfd7a9
3,210
exs
Elixir
test/json_schema_test_suite/draft4/pattern_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft4/pattern_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft4/pattern_properties_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
defmodule JsonSchemaTestSuite.Draft4.PatternPropertiesTest do use ExUnit.Case import Xema, only: [valid?: 2] describe "patternProperties validates properties matching a regex" do setup do %{ schema: Xema.from_json_schema( %{"patternProperties" => %{"f.*o" => %{"type" => "...
26.75
74
0.535514
1a27452ca1047a84daaff1d3a6ef8108e8f3d925
21,991
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/floodlight_activities.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/floodlight_activities.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/floodlight_activities.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...
43.460474
569
0.633987
1a274983b439492ef7c68250b17c6ef15fbfca60
1,752
ex
Elixir
lib/spandex_phoenix/instrumenter.ex
draftedus/spandex_phoenix
54e6447274e8a0e21d17f72727d190b60ba74b9a
[ "MIT" ]
null
null
null
lib/spandex_phoenix/instrumenter.ex
draftedus/spandex_phoenix
54e6447274e8a0e21d17f72727d190b60ba74b9a
[ "MIT" ]
null
null
null
lib/spandex_phoenix/instrumenter.ex
draftedus/spandex_phoenix
54e6447274e8a0e21d17f72727d190b60ba74b9a
[ "MIT" ]
null
null
null
defmodule SpandexPhoenix.Instrumenter do @moduledoc """ Phoenix instrumenter callback module to automatically create spans for Phoenix Controller and View information. Configure your Phoenix `Endpoint` to use this library as one of its `instrumenters`: ```elixir config :my_app, MyAppWeb.Endpoint, # ...
36.5
109
0.74258
1a27618898581eadd67abf9507f24dafd6e1ee20
192
ex
Elixir
examples/simple_umbrella_app/apps/app_a/lib/app_a.ex
esl/gradient
822da399872a38b77440858971f4147694e85fac
[ "Apache-2.0" ]
75
2021-11-17T11:55:13.000Z
2022-03-28T04:35:04.000Z
examples/simple_umbrella_app/apps/app_a/lib/app_a.ex
esl/gradient
822da399872a38b77440858971f4147694e85fac
[ "Apache-2.0" ]
48
2021-11-15T13:56:14.000Z
2022-03-31T15:55:47.000Z
examples/simple_umbrella_app/apps/app_a/lib/app_a.ex
esl/gradient
822da399872a38b77440858971f4147694e85fac
[ "Apache-2.0" ]
6
2021-12-22T20:41:27.000Z
2022-03-09T09:07:38.000Z
defmodule AppA do @moduledoc """ Documentation for `AppA`. """ @doc """ Hello world. ## Examples iex> AppA.hello() :world """ def hello do :world end end
10.105263
27
0.536458
1a27671dd31fe6981574d57c25f6f0190fb44c63
4,055
exs
Elixir
test/local_test.exs
Apelsinka223/excoveralls
500b8638851a3b6f261127ee72fe4a4a1805ea61
[ "MIT" ]
null
null
null
test/local_test.exs
Apelsinka223/excoveralls
500b8638851a3b6f261127ee72fe4a4a1805ea61
[ "MIT" ]
null
null
null
test/local_test.exs
Apelsinka223/excoveralls
500b8638851a3b6f261127ee72fe4a4a1805ea61
[ "MIT" ]
2
2019-03-15T08:12:53.000Z
2019-06-11T11:34:04.000Z
defmodule ExCoveralls.LocalTest do use ExUnit.Case import Mock import ExUnit.CaptureIO alias ExCoveralls.Local @content "defmodule Test do\n def test do\n end\nend\n" @counts [0, 1, nil, nil] @source_info [%{name: "test/fixtures/test.ex", source: @content, cov...
38.619048
161
0.641924
1a277779bd1c4b5857316595df31af6a73027358
3,893
ex
Elixir
web/controllers/auth_controller.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/controllers/auth_controller.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/controllers/auth_controller.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
defmodule AfterGlow.AuthController do use AfterGlow.Web, :controller alias AfterGlow.Oauth.Google alias AfterGlow.User alias AfterGlow.Permission alias AfterGlow.UserPermissionSet alias AfterGlow.PermissionSet alias AfterGlow.Plugs.Authorization alias AfterGlow.CacheWrapper alias AfterGlow.CacheWrappe...
25.116129
105
0.615464
1a277a6a73bc21e8315e25bb186569cedbeb31e1
939
exs
Elixir
mix.exs
NullOranje/flatten_map
0c94fd812c32a8c58cc5d7bca9bc5285b7ae7ea3
[ "Apache-2.0" ]
1
2020-09-27T01:06:55.000Z
2020-09-27T01:06:55.000Z
mix.exs
NullOranje/flatten_map
0c94fd812c32a8c58cc5d7bca9bc5285b7ae7ea3
[ "Apache-2.0" ]
1
2020-09-28T17:14:14.000Z
2020-09-28T17:14:14.000Z
mix.exs
NullOranje/flatten_map
0c94fd812c32a8c58cc5d7bca9bc5285b7ae7ea3
[ "Apache-2.0" ]
1
2020-09-25T14:35:20.000Z
2020-09-25T14:35:20.000Z
defmodule FlattenMap.MixProject do use Mix.Project @source_url "https://github.com/NullOranje/flatten_map" def project do [ app: :flatten_map, version: "0.1.1", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), package: package() ...
19.163265
75
0.576145
1a2781b3eca837583ba2c7f6f082fd6eb6914dfc
4,148
ex
Elixir
lib/fun_with_flags/gate.ex
elpikel/fun_with_flags
1c409e8872eb7e370f827a0d471082aeff09cf33
[ "MIT" ]
null
null
null
lib/fun_with_flags/gate.ex
elpikel/fun_with_flags
1c409e8872eb7e370f827a0d471082aeff09cf33
[ "MIT" ]
null
null
null
lib/fun_with_flags/gate.ex
elpikel/fun_with_flags
1c409e8872eb7e370f827a0d471082aeff09cf33
[ "MIT" ]
null
null
null
defmodule FunWithFlags.Gate do @moduledoc """ Represents a feature flag gate, that is one of several conditions attached to a feature flag. This module is not meant to be used directly. """ alias FunWithFlags.{Actor, Group} defmodule InvalidGroupNameError do defexception [:message] end defmodu...
29.41844
107
0.668997
1a27855ac5f73ca1f28c03df7666ef07bccb99cf
2,597
ex
Elixir
kousa/lib/gen/room_chat.ex
lenilsondc/dogehouse
600bc49b9e6744b9eb0c364f123208ecf74d78d6
[ "MIT" ]
1
2021-02-26T19:55:41.000Z
2021-02-26T19:55:41.000Z
kousa/lib/gen/room_chat.ex
agt25/dogehouse
6666028fa52b48f11bf64e60e859610dce2a3956
[ "MIT" ]
1
2022-02-27T19:40:57.000Z
2022-02-27T19:40:57.000Z
kousa/lib/gen/room_chat.ex
agt25/dogehouse
6666028fa52b48f11bf64e60e859610dce2a3956
[ "MIT" ]
null
null
null
defmodule Kousa.Gen.RoomChat do use GenServer defmodule State do @type t :: %__MODULE__{ room_id: String.t(), users: [String.t()], ban_map: map(), last_message_map: map() } defstruct room_id: "", users: [], ban_map: %{}, last_message_map: %{} end...
23.609091
93
0.586446
1a27a4ddd5960c5ba630c5dd40fecf18b11e1082
5,911
ex
Elixir
lib/phoenix/router/route.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
1
2019-07-15T21:58:09.000Z
2019-07-15T21:58:09.000Z
lib/phoenix/router/route.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
lib/phoenix/router/route.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
defmodule Phoenix.Router.Route do # This module defines the Route struct that is used # throughout Phoenix's router. This struct is private # as it contains internal routing information. @moduledoc false alias Phoenix.Router.Route @doc """ The `Phoenix.Router.Route` struct. It stores: * `:verb` - t...
32.657459
130
0.646253
1a27a5d3d001b53630841685f71b474dfddec193
90
exs
Elixir
test/views/page_view_test.exs
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
defmodule CouchjitsuTrack.PageViewTest do use CouchjitsuTrack.ConnCase, async: true end
22.5
43
0.844444
1a282871564acd11e3b6979814403d536a50f51b
67
ex
Elixir
lib/ctrlv/mailer.ex
ryanwinchester/ctrlv
eee44962dda062ba2154cc8bb57d86a6d814c71f
[ "Apache-2.0" ]
1
2022-03-31T17:55:16.000Z
2022-03-31T17:55:16.000Z
lib/ctrlv/mailer.ex
ryanwinchester/ctrlv
eee44962dda062ba2154cc8bb57d86a6d814c71f
[ "Apache-2.0" ]
7
2022-03-30T02:52:54.000Z
2022-03-30T23:11:01.000Z
lib/ctrlv/mailer.ex
ryanwinchester/ctrlv
eee44962dda062ba2154cc8bb57d86a6d814c71f
[ "Apache-2.0" ]
1
2022-03-31T03:37:16.000Z
2022-03-31T03:37:16.000Z
defmodule Ctrlv.Mailer do use Swoosh.Mailer, otp_app: :ctrlv end
16.75
36
0.776119
1a282dc02053b138be29324e57dd14fea61e3060
17,835
ex
Elixir
lib/aws/generated/route53_resolver.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/route53_resolver.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/route53_resolver.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Route53Resolver do @moduledoc """ When you create a VPC using Amazon VPC, you automatically get DNS resolution within the VPC from Route 53 Resolver. By default, Resolver answers DNS quer...
39.721604
191
0.74679
1a286e4d9f56ee0973539b41812a0aacb15a8adb
1,044
ex
Elixir
apps/snitch_api/lib/snitch_api_web/controllers/fallback_controller.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_api/lib/snitch_api_web/controllers/fallback_controller.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_api/lib/snitch_api_web/controllers/fallback_controller.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule SnitchApiWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use SnitchApiWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_st...
27.473684
77
0.691571
1a28adcc079a3c170dac4fbd00d8cf5a21cfdc4d
160
ex
Elixir
web/views/file_upload.ex
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
web/views/file_upload.ex
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
web/views/file_upload.ex
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
defmodule Javex.FileUploadView do use Javex.Web, :view def render("show.json", _) do %{ id: "1", message: "Uploaded image" } end end
14.545455
33
0.5875
1a28af9ba79864244e581ebae25125435c15350d
269
ex
Elixir
lib/real_world/repo.ex
zoosky/elixir-phoenix-realworld-example-app
8620fb2829703051cdbd032f93be6cd941c4810e
[ "MIT" ]
909
2017-11-16T08:41:08.000Z
2022-03-31T21:59:17.000Z
lib/real_world/repo.ex
zoosky/elixir-phoenix-realworld-example-app
8620fb2829703051cdbd032f93be6cd941c4810e
[ "MIT" ]
36
2017-11-28T01:31:05.000Z
2021-12-15T05:03:00.000Z
lib/real_world/repo.ex
zoosky/elixir-phoenix-realworld-example-app
8620fb2829703051cdbd032f93be6cd941c4810e
[ "MIT" ]
160
2017-11-16T06:00:37.000Z
2022-01-20T13:50:42.000Z
defmodule RealWorld.Repo do use Ecto.Repo, otp_app: :real_world @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
22.416667
66
0.702602
1a28f4a8d1758de74362c7495f7a7b6089b88d73
1,155
exs
Elixir
test/open_telemetry_test.exs
bryannaegele/opentelemetry-erlang-api
7a2393f5d2a0ebf3565770af3d97bf527af34316
[ "Apache-2.0" ]
null
null
null
test/open_telemetry_test.exs
bryannaegele/opentelemetry-erlang-api
7a2393f5d2a0ebf3565770af3d97bf527af34316
[ "Apache-2.0" ]
null
null
null
test/open_telemetry_test.exs
bryannaegele/opentelemetry-erlang-api
7a2393f5d2a0ebf3565770af3d97bf527af34316
[ "Apache-2.0" ]
null
null
null
defmodule OpenTelemetryTest do use ExUnit.Case, async: true require OpenTelemetry.Tracer, as: Tracer require OpenTelemetry.Span, as: Span test "current_span tracks nesting" do _ctx1 = Tracer.start_span("span-1") ctx2 = Tracer.start_span("span-2") assert ctx2 == Tracer.current_span_ctx() end ...
25.108696
51
0.661472
1a2914eb53919a54d9b6e0f75c66340ca7417365
2,208
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_data_stream_web_stream_data.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_data_stream_web_stream_data.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_data_stream_web_stream_data.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.068966
188
0.730978
1a291850264c4fef72e0cc6fabd1d2258ae4596f
5,558
exs
Elixir
apps/ewallet/test/ewallet/formatters/transaction_formatter_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet/test/ewallet/formatters/transaction_formatter_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/formatters/transaction_formatter_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.TransactionFormatterTest do use EWallet.DBCase alias EWallet.TransactionFormatter alias EWalletDB.Account defp has_entry?(formatted, type, address, amount, token) do entries = formatted["entries"] assert Enum.any?(entries, fn entry -> entry["type"] == Atom.to_string(type...
34.7375
90
0.588701
1a291a4cc9b8f86e8f75e72d609a8dd9c198c87c
300
ex
Elixir
lib/escala/cms/resolver/question_option_resolver.ex
vahidabdi/escala_api
84a4a3ef832180f12c6197683933d8cd0ab35ef4
[ "MIT" ]
null
null
null
lib/escala/cms/resolver/question_option_resolver.ex
vahidabdi/escala_api
84a4a3ef832180f12c6197683933d8cd0ab35ef4
[ "MIT" ]
null
null
null
lib/escala/cms/resolver/question_option_resolver.ex
vahidabdi/escala_api
84a4a3ef832180f12c6197683933d8cd0ab35ef4
[ "MIT" ]
null
null
null
defmodule Escala.CMS.QuestionOptionResolver do alias Escala.CMS def find(%{id: id}, %{context: %{current_user: %{id: _id}}}) do case CMS.get_question_option(id) do nil -> {:error, "یافت نشد"} q -> {:ok, q} end end def find(_, _) do {:error, "مجوز ندارید"} end end
20
65
0.6
1a292216a165f76d8edc4b15f3ff76feb845b89e
16,947
ex
Elixir
lib/teiserver_web/controllers/admin/user_controller.ex
marseel/teiserver
7e085ae7853205d217183737d3eb69a4941bbe7e
[ "MIT" ]
null
null
null
lib/teiserver_web/controllers/admin/user_controller.ex
marseel/teiserver
7e085ae7853205d217183737d3eb69a4941bbe7e
[ "MIT" ]
null
null
null
lib/teiserver_web/controllers/admin/user_controller.ex
marseel/teiserver
7e085ae7853205d217183737d3eb69a4941bbe7e
[ "MIT" ]
null
null
null
defmodule TeiserverWeb.Admin.UserController do use CentralWeb, :controller alias Teiserver.{Account, Chat} alias Central.Account.User alias Teiserver.Account.UserLib alias Central.Account.GroupLib plug(AssignPlug, sidemenu_active: ["teiserver", "teiserver_admin"] ) plug(Bodyguard.Plug.Authorize, ...
30.812727
103
0.559214
1a294623e73664e6a3aa552597fa443ac68a72de
68,469
ex
Elixir
lib/elixir/lib/enum.ex
montague/elixir
ff2138b05345d0b3136a374259e9c3ba7208e3da
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
montague/elixir
ff2138b05345d0b3136a374259e9c3ba7208e3da
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
montague/elixir
ff2138b05345d0b3136a374259e9c3ba7208e3da
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression Enum.map([1, 2, 3], &(&1 * 2)) invokes underne...
25.876417
138
0.601104
1a294c8d8313f0cb144709ba6c24b00d6fe30418
68
ex
Elixir
test/support/mocks.ex
klacointe/algoliax
6228d334e52a464162581b4887724a2f1cc357b5
[ "BSD-2-Clause" ]
null
null
null
test/support/mocks.ex
klacointe/algoliax
6228d334e52a464162581b4887724a2f1cc357b5
[ "BSD-2-Clause" ]
null
null
null
test/support/mocks.ex
klacointe/algoliax
6228d334e52a464162581b4887724a2f1cc357b5
[ "BSD-2-Clause" ]
null
null
null
Mox.defmock(Algoliax.RequestsMock, for: Algoliax.RequestsBehaviour)
34
67
0.852941
1a295d67288811a0d2f858bc927802453665a053
91
ex
Elixir
lib/blockchain_node.ex
dominicletz/blockchain-node
85837c8c37477f6a145c40eab45d9d99ea606ffe
[ "Apache-2.0" ]
1
2021-12-15T07:09:12.000Z
2021-12-15T07:09:12.000Z
lib/blockchain_node.ex
dominicletz/blockchain-node
85837c8c37477f6a145c40eab45d9d99ea606ffe
[ "Apache-2.0" ]
null
null
null
lib/blockchain_node.ex
dominicletz/blockchain-node
85837c8c37477f6a145c40eab45d9d99ea606ffe
[ "Apache-2.0" ]
null
null
null
defmodule BlockchainNode do @moduledoc """ Documentation for BlockchainNode. """ end
15.166667
35
0.736264
1a296585a1f53b664dbfc8a5e24181ba0422fcad
3,408
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/model/user_organization.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/model/user_organization.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/model/user_organization.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.6
355
0.672242
1a2968d3621aad41672d17c6d7084a3be676aa69
11,516
ex
Elixir
lib/aws/textract.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/textract.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/textract.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Textract do @moduledoc """ Amazon Textract detects and analyzes text in documents and converts it into machine-readable text. This is the API reference documentation for Amazon Textract. ...
44.292308
89
0.736193
1a297cfcdfae6d14397313e19067ed85c2eebffb
7,984
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/api/customchannels.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/api/customchannels.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/api/customchannels.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
43.868132
206
0.692761
1a29849e09ea750ca733b1a62de5386a3cb0227f
2,459
ex
Elixir
apps/admin_app/lib/admin_app_web/controllers/taxonomy_controller.ex
gridgentoo/avia
139b68f4b3ccd830c4db296d81132680e253b731
[ "MIT" ]
null
null
null
apps/admin_app/lib/admin_app_web/controllers/taxonomy_controller.ex
gridgentoo/avia
139b68f4b3ccd830c4db296d81132680e253b731
[ "MIT" ]
null
null
null
apps/admin_app/lib/admin_app_web/controllers/taxonomy_controller.ex
gridgentoo/avia
139b68f4b3ccd830c4db296d81132680e253b731
[ "MIT" ]
null
null
null
defmodule AdminAppWeb.TaxonomyController do use AdminAppWeb, :controller alias Snitch.Domain.Taxonomy alias Snitch.Data.Schema.Taxon alias Snitch.Data.Schema.Taxonomy, as: TaxonomySchema alias AdminAppWeb.TaxonomyView alias Snitch.Data.Model.Image alias Snitch.Core.Tools.MultiTenancy.Repo import Ecto.Q...
28.593023
90
0.609191
1a299c9f18d72b097896cc5b13dedd1c470fd74a
1,397
ex
Elixir
lib/mix/tasks/phil_columns.gen.seed.ex
glific/phil_columns-ex
6ae3fe2f28c13e7ab1a4c720ff02687d5da2be9a
[ "MIT" ]
null
null
null
lib/mix/tasks/phil_columns.gen.seed.ex
glific/phil_columns-ex
6ae3fe2f28c13e7ab1a4c720ff02687d5da2be9a
[ "MIT" ]
null
null
null
lib/mix/tasks/phil_columns.gen.seed.ex
glific/phil_columns-ex
6ae3fe2f28c13e7ab1a4c720ff02687d5da2be9a
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.PhilColumns.Gen.Seed do use Mix.Task import Mix.Ecto import Mix.PhilColumns import Mix.Generator @shortdoc "Executes the seeds for specified env and tags down" def run(args) do no_umbrella!("phil_columns.gen.seed") repos = parse_repo(args) Enum.each(repos, fn repo -> ...
24.086207
79
0.550465
1a29b440fc8f53623bb2c8c0283220f546e0a2f5
2,549
exs
Elixir
test/auth_blog/blog/post_test.exs
dcdourado/auth_blog
29ed5d5d0d90d83a1a0a05176d0378e56de79823
[ "MIT" ]
null
null
null
test/auth_blog/blog/post_test.exs
dcdourado/auth_blog
29ed5d5d0d90d83a1a0a05176d0378e56de79823
[ "MIT" ]
1
2021-09-11T13:23:29.000Z
2021-09-11T13:23:29.000Z
test/auth_blog/blog/post_test.exs
dcdourado/auth_blog
29ed5d5d0d90d83a1a0a05176d0378e56de79823
[ "MIT" ]
null
null
null
defmodule AuthBlog.Posts.PostTest do use AuthBlog.RepoCase, async: true alias AuthBlog.Posts.Post alias AuthBlog.Repo alias Ecto.Changeset describe "changeset/1" do test "creates a valid changeset when given params are valid" do params = %{ title: "Title", content: "Content" ...
26.278351
99
0.53982
1a2a0c1811a82429fcc016ae58ecfffcd461beb1
793
ex
Elixir
lib/arangox/request.ex
otaq/arangox
6846c6ddb1644d85eec0414374b5300d420bc268
[ "MIT" ]
43
2019-10-10T22:12:20.000Z
2022-03-31T22:34:42.000Z
lib/arangox/request.ex
suazithustra/arangox
8ce80b965958a75523ce6f4c68faa8cc83c811d9
[ "MIT" ]
2
2021-02-10T16:23:57.000Z
2021-05-21T13:10:48.000Z
lib/arangox/request.ex
suazithustra/arangox
8ce80b965958a75523ce6f4c68faa8cc83c811d9
[ "MIT" ]
3
2021-05-13T04:01:03.000Z
2022-03-31T22:34:10.000Z
defmodule Arangox.Request do @moduledoc nil alias __MODULE__ alias Arangox.Response @type t :: %__MODULE__{ method: Arangox.method(), path: Arangox.path(), headers: Arangox.headers(), body: Arangox.body() } @enforce_keys [:method, :path] defstruct [ :m...
22.027778
83
0.607818
1a2a207ed6bda01520c41ad97260f0d9e0f81c1b
377
ex
Elixir
test/support/damage_types_helper.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
test/support/damage_types_helper.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
test/support/damage_types_helper.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Test.DamageTypesHelper do alias Game.DamageTypes def start_and_clear_damage_types() do DamageTypes.start_link() DamageTypes.clear() end def insert_damage_type(damage_type) do DamageTypes.insert(damage_type) ensure_process_caught_up(DamageTypes) damage_type end def ensure_pro...
19.842105
41
0.766578
1a2a4815d624d819074fac3b58fd7a1c88d0340c
1,167
exs
Elixir
mix.exs
nidzelskyy/clickhouse_ecto
d2f12b952e1b9df781abbe8c71e46cb667593058
[ "Apache-2.0" ]
null
null
null
mix.exs
nidzelskyy/clickhouse_ecto
d2f12b952e1b9df781abbe8c71e46cb667593058
[ "Apache-2.0" ]
null
null
null
mix.exs
nidzelskyy/clickhouse_ecto
d2f12b952e1b9df781abbe8c71e46cb667593058
[ "Apache-2.0" ]
null
null
null
defmodule ClickhouseEcto.Mixfile do use Mix.Project def project do [ app: :clickhouse_ecto, version: "0.2.8", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps(), description: description(), package: package(), source_url: "https://github.com/appode...
22.882353
79
0.59383
1a2a5cadb473fcc688ec6cceac2931891306e338
5,809
exs
Elixir
test/services/operation_batcher_test.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
test/services/operation_batcher_test.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
test/services/operation_batcher_test.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
defmodule AccentTest.OperationBatcher do use Accent.RepoCase require Ecto.Query alias Ecto.Query alias Accent.{ Operation, OperationBatcher, Repo, Revision, Translation, User } setup do user = %User{} |> Repo.insert!() revision = %Revision{} |> Repo.insert!() translat...
28.615764
183
0.583922
1a2a5d5c6d188867acfce3ccd03c7ceb9c9da762
912
ex
Elixir
lib/maxmind_csv/schema/asn_block_decimal.ex
elixir-geolix/adapter_maxmind_csv
0ef4109ef23cc61c62134b7bef4a8249d1a7c37e
[ "Apache-2.0" ]
1
2020-06-20T14:40:16.000Z
2020-06-20T14:40:16.000Z
lib/maxmind_csv/schema/asn_block_decimal.ex
elixir-geolix/adapter_maxmind_csv
0ef4109ef23cc61c62134b7bef4a8249d1a7c37e
[ "Apache-2.0" ]
null
null
null
lib/maxmind_csv/schema/asn_block_decimal.ex
elixir-geolix/adapter_maxmind_csv
0ef4109ef23cc61c62134b7bef4a8249d1a7c37e
[ "Apache-2.0" ]
null
null
null
defmodule Geolix.Adapter.MaxMindCSV.Schema.ASNBlockDecimal do @moduledoc """ Sample `Ecto.Schema` to use with the adapter for ASN databases. Table name: `geolix_maxmind_csv_asn_blocks_decimal`. """ use Ecto.Schema import Ecto.Query, only: [where: 3] alias Geolix.Adapter.MaxMindCSV.IP @behaviour Geo...
24.648649
86
0.73136
1a2a78eeec0c09de2e1f72c42512e8c818a2cfcf
5,999
exs
Elixir
test/messages_test.exs
filipevarjao/sphinx
ef9e3296ed134a6dbc448654541facf5d0792574
[ "Apache-2.0" ]
1
2021-01-20T19:07:27.000Z
2021-01-20T19:07:27.000Z
test/messages_test.exs
filipevarjao/sphinx
ef9e3296ed134a6dbc448654541facf5d0792574
[ "Apache-2.0" ]
6
2019-12-04T19:42:33.000Z
2019-12-19T16:27:15.000Z
test/messages_test.exs
filipevarjao/sphinx
ef9e3296ed134a6dbc448654541facf5d0792574
[ "Apache-2.0" ]
2
2019-12-12T14:48:17.000Z
2019-12-18T22:28:45.000Z
defmodule SphinxRtm.MessagesTest do use Slack use Sphinx.Support.DataCase import Mock alias SphinxRtm.Messages alias Sphinx.Repo alias Sphinx.Riddles alias Sphinx.Riddles.Riddle alias Sphinx.Answers @question %{type: "message", channel: "XYZ", ts: "123.456", user: "ABC", text: "<@SPX> Hello"} @an...
28.980676
158
0.557926
1a2a9fdc4d44b9b06a92213454b76f146dc808d2
2,681
exs
Elixir
test/support/router_helper.exs
twined/brando_blog
0621e6e31d763d7ebec84771cf38809e08ef5b94
[ "MIT" ]
1
2020-01-13T23:45:05.000Z
2020-01-13T23:45:05.000Z
test/support/router_helper.exs
twined/brando_blog
0621e6e31d763d7ebec84771cf38809e08ef5b94
[ "MIT" ]
null
null
null
test/support/router_helper.exs
twined/brando_blog
0621e6e31d763d7ebec84771cf38809e08ef5b94
[ "MIT" ]
null
null
null
defmodule BrandoBlog.Router do @moduledoc false use Phoenix.Router import Brando.Blog.Routes.Admin import Brando.Plug.I18n pipeline :admin do plug :accepts, ~w(html json) plug :fetch_session plug :fetch_flash plug :put_admin_locale plug :put_layout, {Brando.Admin.LayoutView, "admin.html"}...
25.533333
83
0.65125
1a2aa1dcabfdc42fe418704ba6294a277924fdfc
2,047
exs
Elixir
mix.exs
databrecht/uswidi
422c5d957af769a12799b6d3ea56ad1e9f769873
[ "MIT" ]
null
null
null
mix.exs
databrecht/uswidi
422c5d957af769a12799b6d3ea56ad1e9f769873
[ "MIT" ]
null
null
null
mix.exs
databrecht/uswidi
422c5d957af769a12799b6d3ea56ad1e9f769873
[ "MIT" ]
null
null
null
defmodule Uswidi.MixProject do use Mix.Project def project do [ app: :uswidi, version: "0.1.0", elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: de...
28.430556
84
0.562775
1a2ab037297b6fc1c77b0100baf206b3a720f109
8,763
exs
Elixir
test/litelist_web/controllers/discussion_controller_test.exs
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T15:46:49.000Z
2021-01-13T15:46:49.000Z
test/litelist_web/controllers/discussion_controller_test.exs
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T16:42:24.000Z
2021-01-13T16:42:24.000Z
test/litelist_web/controllers/discussion_controller_test.exs
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
null
null
null
# defmodule LitelistWeb.DiscussionControllerTest do # use LitelistWeb.ConnCase, async: true # import Phoenix.Controller # alias Litelist.Factory # alias Litelist.Auth.Guardian # alias LitelistWeb.Router.Helpers, as: Routes # @create_attrs %{description: "some description", title: "some title", slug: "som...
34.230469
132
0.62296
1a2ab17dc6156e1b54a484f5cf77bb33baff5be0
11,361
ex
Elixir
lib/ecto_rut.ex
sheharyarn/ecto_rut
8f5a7dfe7fbdac475b08f25c98eff8120ccd2dfe
[ "MIT" ]
123
2016-09-25T00:46:30.000Z
2021-01-13T04:23:18.000Z
lib/ecto_rut.ex
sheharyarn/ecto_rut
8f5a7dfe7fbdac475b08f25c98eff8120ccd2dfe
[ "MIT" ]
1
2018-12-01T04:45:32.000Z
2018-12-01T04:45:32.000Z
lib/ecto_rut.ex
sheharyarn/ecto_rut
8f5a7dfe7fbdac475b08f25c98eff8120ccd2dfe
[ "MIT" ]
3
2016-09-27T12:07:23.000Z
2020-12-02T12:52:10.000Z
defmodule Ecto.Rut do @moduledoc """ Provides simple, sane and terse shortcuts for Ecto models. Ecto.Rut is a wrapper around `Ecto.Repo` methods that usually require you to pass the module as the subject and sometimes even require you do extra work before hand, (as in the case of `Repo.insert/3`) to perform ...
26.858156
137
0.645102
1a2aee94022ca0558fffe02c5a8609ca3c0e576a
68
exs
Elixir
apps/fz_http/test/test_helper.exs
jasonboukheir/firezone
79d610b94f67ae25c8ca26f391c0edf288f6aaa5
[ "Apache-2.0" ]
1,429
2021-07-31T21:25:46.000Z
2022-03-31T16:31:33.000Z
apps/fz_http/test/test_helper.exs
jasonboukheir/firezone
79d610b94f67ae25c8ca26f391c0edf288f6aaa5
[ "Apache-2.0" ]
132
2021-07-10T14:23:36.000Z
2022-03-29T18:36:37.000Z
apps/fz_http/test/test_helper.exs
jasonboukheir/firezone
79d610b94f67ae25c8ca26f391c0edf288f6aaa5
[ "Apache-2.0" ]
48
2021-09-14T02:48:38.000Z
2022-03-24T18:18:50.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(FzHttp.Repo, :manual)
22.666667
52
0.779412
1a2b96115820e14a6ae77fc413508cec5e7264ac
948
ex
Elixir
lib/nebulex/cache/stats.ex
alexandrubagu/nebulex
c8870a91644545f7a10a6af825ef6822a40fadf4
[ "MIT" ]
845
2017-02-14T14:16:11.000Z
2022-03-30T04:13:08.000Z
lib/nebulex/cache/stats.ex
alexandrubagu/nebulex
c8870a91644545f7a10a6af825ef6822a40fadf4
[ "MIT" ]
146
2017-04-29T16:11:14.000Z
2022-03-29T08:49:05.000Z
lib/nebulex/cache/stats.ex
alexandrubagu/nebulex
c8870a91644545f7a10a6af825ef6822a40fadf4
[ "MIT" ]
50
2017-08-17T13:44:06.000Z
2022-03-30T11:29:59.000Z
defmodule Nebulex.Cache.Stats do @moduledoc false alias Nebulex.Adapter ## API @doc """ Implementation for `c:Nebulex.Cache.stats/0`. """ def stats(name) do Adapter.with_meta(name, & &1.stats(&2)) end if Code.ensure_loaded?(:telemetry) do @doc """ Implementation for `c:Nebulex.Cache.di...
23.7
62
0.578059
1a2b9eef21738137e07dcbdf3d7f036fd7fced79
1,287
ex
Elixir
elixir/lib/homework_web/schemas/users_schema.ex
Arthurb101/web-homework
d3f768a71c7d9e13e456028c491ced8e71e6cda4
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/users_schema.ex
Arthurb101/web-homework
d3f768a71c7d9e13e456028c491ced8e71e6cda4
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/users_schema.ex
Arthurb101/web-homework
d3f768a71c7d9e13e456028c491ced8e71e6cda4
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.Schemas.UsersSchema do @moduledoc """ Defines the graphql schema for user. """ use Absinthe.Schema.Notation alias HomeworkWeb.Resolvers.UsersResolver object :user do field(:id, non_null(:id)) field(:dob, :string) field(:first_name, :string) field(:last_name, :string) ...
23.833333
44
0.651127
1a2bc560546a7db7303954fb2756b40284af4405
1,257
ex
Elixir
lib/remedy/schema/interaction_data.ex
bdanklin/nostrum
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
3
2021-09-05T09:44:02.000Z
2022-01-26T15:31:50.000Z
lib/remedy/schema/interaction_data.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
lib/remedy/schema/interaction_data.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
defmodule Remedy.Schema.InteractionData do @moduledoc """ This is the center point between Commands, Interactions and Components. Should probably be the center point of any command framework """ use Remedy.Schema @type t :: %__MODULE__{ id: Snowflake.t(), name: String.t(), ty...
28.568182
73
0.658711
1a2bce383861eb08067b43469bbf8035e5ef38cc
1,357
ex
Elixir
lib/xdr/ledger_entries/optional_signer.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
3
2021-08-17T20:32:45.000Z
2022-03-13T20:26:02.000Z
lib/xdr/ledger_entries/optional_signer.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
45
2021-08-12T20:19:41.000Z
2022-03-27T21:00:10.000Z
lib/xdr/ledger_entries/optional_signer.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
2
2021-09-22T23:11:13.000Z
2022-01-23T03:19:11.000Z
defmodule StellarBase.XDR.OptionalSigner do @moduledoc """ Representation of Stellar `OptionalSigner` type. """ alias StellarBase.XDR.Signer @behaviour XDR.Declaration @optional_spec XDR.Optional.new(Signer) @type signer :: Signer.t() | nil @type t :: %__MODULE__{signer: signer()} defstruct [:sig...
22.616667
64
0.638172
1a2bd3ca964a9123c462dfef73a89ffff18c38ec
1,533
exs
Elixir
mix.exs
haroldvera/gen_rmq
21e8c74c8940c344e408d96618668655b9f3c85a
[ "MIT" ]
null
null
null
mix.exs
haroldvera/gen_rmq
21e8c74c8940c344e408d96618668655b9f3c85a
[ "MIT" ]
null
null
null
mix.exs
haroldvera/gen_rmq
21e8c74c8940c344e408d96618668655b9f3c85a
[ "MIT" ]
null
null
null
defmodule GenRMQ.Mixfile do use Mix.Project @version "1.0.1" def project do [ app: :gen_rmq, version: @version, elixir: "~> 1.5", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), deps: deps(), test_coverage: [tool: ExCoveralls], de...
24.725806
85
0.561644
1a2bd52a0f902d252d77dbb0f5954c88d683f395
1,224
ex
Elixir
lib/surface/components/form/inputs.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
null
null
null
lib/surface/components/form/inputs.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
null
null
null
lib/surface/components/form/inputs.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.Inputs do @moduledoc """ A wrapper for `Phoenix.HTML.Form.html.inputs_for/3`. Additionally, adds the generated form instance that is returned by `inputs_for/3` into the context, making it available to any child input. """ use Surface.Component import Phoenix.HTML.Form ...
24.48
94
0.646242
1a2bf9594edd50a6c18b4eda7f604ad88531d0a0
2,246
ex
Elixir
lib/astarte_streams/blocks/device_events_producer/rabbitmq_client.ex
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
null
null
null
lib/astarte_streams/blocks/device_events_producer/rabbitmq_client.ex
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
null
null
null
lib/astarte_streams/blocks/device_events_producer/rabbitmq_client.ex
rbino/astarte_flow
21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a
[ "Apache-2.0" ]
null
null
null
# # This file is part of Astarte. # # Copyright 2020 Ispirata Srl # # 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 appl...
28.794872
99
0.682992
1a2c09f5b582374697a8703419d507bb41026b03
701
exs
Elixir
mix.exs
simble-app/CodeComplete
40da6850f4fe20c503d96f5c27f8ee0f6ec0bd7f
[ "MIT" ]
null
null
null
mix.exs
simble-app/CodeComplete
40da6850f4fe20c503d96f5c27f8ee0f6ec0bd7f
[ "MIT" ]
1
2015-06-29T03:14:45.000Z
2015-06-29T03:14:45.000Z
mix.exs
simble-app/CodeComplete
40da6850f4fe20c503d96f5c27f8ee0f6ec0bd7f
[ "MIT" ]
null
null
null
defmodule CodeComplete.Mixfile do use Mix.Project def project do [ app: :complete_complete, version: "0.0.1", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps ] end # Configuration for the OTP application # # Ty...
20.028571
77
0.600571
1a2c31e07f0270df680a6d7a8ab8110e46202cc0
254
ex
Elixir
lib/sACN.ex
jwarwick/ex_sACN
52a50c01023823fd443f14b290dc4411bf2a90e8
[ "MIT" ]
1
2021-12-29T01:04:06.000Z
2021-12-29T01:04:06.000Z
lib/sACN.ex
jwarwick/ex_sACN
52a50c01023823fd443f14b290dc4411bf2a90e8
[ "MIT" ]
null
null
null
lib/sACN.ex
jwarwick/ex_sACN
52a50c01023823fd443f14b290dc4411bf2a90e8
[ "MIT" ]
1
2021-01-06T17:16:55.000Z
2021-01-06T17:16:55.000Z
defmodule SACN do @moduledoc """ Streaming ACN constants and helpers """ @acn_sdt_port 5568 def port, do: @acn_sdt_port def ip_from_universe(universe) do <<hi::8, lo::8>> = <<universe::size(16)-big>> {239, 255, hi, lo} end end
14.941176
49
0.629921