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
ace887da09b4ae867cff82bcdadc3a3aca3a9a01
4,563
exs
Elixir
test/instream/connection_test.exs
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
test/instream/connection_test.exs
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
test/instream/connection_test.exs
qgadrian/instream
3dc828fe476817d442b83dc5da58ceca56e9886f
[ "Apache-2.0" ]
null
null
null
defmodule Instream.ConnectionTest do use ExUnit.Case, async: true import Instream.TestHelpers.Retry alias Instream.Query.Builder alias Instream.TestHelpers.Connections.DefaultConnection alias Instream.TestHelpers.Connections.GuestConnection @database "test_database" @tags %{foo: "foo", bar: "bar"} ...
24.532258
85
0.497261
ace891f839a5f8873d3d7193d37df633faeb089e
2,525
exs
Elixir
examples/ecto_poll_queue/test/compound_keys_test.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
717
2015-06-15T19:30:54.000Z
2022-03-22T06:10:09.000Z
examples/ecto_poll_queue/test/compound_keys_test.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
106
2015-06-25T05:38:05.000Z
2021-12-08T23:17:19.000Z
examples/ecto_poll_queue/test/compound_keys_test.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
60
2015-06-07T00:48:37.000Z
2022-03-06T08:20:23.000Z
defmodule CompoundKeysTest do use ExUnit.Case, async: false alias EctoPollQueueExample.Repo alias EctoPollQueueExample.Book alias Honeydew.EctoSource @moduletag :capture_log setup do Repo.delete_all(Book) :ok end test "automatically enqueues when a new row is saved" do author = "Yuval Noa...
28.055556
130
0.650693
ace89ee3dc66257ae2035131664aebfc039dd671
7,753
exs
Elixir
test/tracker_replica_event_test.exs
ileamo/swarm
04353ff27fec3a24753e3c1f3b03d589fce78907
[ "MIT" ]
1,111
2016-07-30T05:50:23.000Z
2022-03-31T07:50:15.000Z
test/tracker_replica_event_test.exs
ileamo/swarm
04353ff27fec3a24753e3c1f3b03d589fce78907
[ "MIT" ]
128
2016-08-07T22:40:18.000Z
2021-12-15T05:47:01.000Z
test/tracker_replica_event_test.exs
ileamo/swarm
04353ff27fec3a24753e3c1f3b03d589fce78907
[ "MIT" ]
115
2016-08-17T12:43:02.000Z
2022-03-29T22:47:22.000Z
defmodule Swarm.TrackerReplicaEventTests do use ExUnit.Case, async: false import Swarm.Entry alias Swarm.IntervalTreeClock, as: Clock alias Swarm.Registry, as: Registry @moduletag :capture_log setup_all do :rand.seed(:exs64) Application.ensure_all_started(:swarm) {:ok, _} = MyApp.WorkerSup.st...
32.439331
124
0.662969
ace8c555686ccfbfd4408f607d11830107e70071
56,412
exs
Elixir
test/mint/http2/conn_test.exs
tcrossland/mint
9575e41eeffb641814abec3fcf4f9f2eefcbe732
[ "Apache-2.0" ]
null
null
null
test/mint/http2/conn_test.exs
tcrossland/mint
9575e41eeffb641814abec3fcf4f9f2eefcbe732
[ "Apache-2.0" ]
null
null
null
test/mint/http2/conn_test.exs
tcrossland/mint
9575e41eeffb641814abec3fcf4f9f2eefcbe732
[ "Apache-2.0" ]
null
null
null
defmodule Mint.HTTP2Test do use ExUnit.Case, async: true import Mint.HTTP2.Frame import ExUnit.CaptureLog alias Mint.{ HTTPError, HTTP2, HTTP2.TestServer, TransportError } require Mint.HTTP setup :start_connection defmacrop assert_recv_frames(frames) when is_list(frames) do quot...
34.629834
98
0.578919
ace8d1a98de68a9242382acc93a0c9ca46df893e
1,737
ex
Elixir
clients/reseller/lib/google_api/reseller/v1/model/resellernotify_getwatchdetails_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/reseller/lib/google_api/reseller/v1/model/resellernotify_getwatchdetails_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/reseller/lib/google_api/reseller/v1/model/resellernotify_getwatchdetails_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.74
120
0.747265
ace92d9eeec6fe8698771aac7e2f84f80e6a7b30
2,342
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/subaccount.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/subaccount.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/subaccount.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...
39.694915
195
0.706234
ace92de9981ae1c79787fd0a70cef0aca33e6fc3
1,821
ex
Elixir
test/support/factory.ex
joaopealves/offer_hunters-backend
cbaa9c17f41031df977430f1082e42af2b4b83d6
[ "MIT" ]
3
2021-10-01T21:13:02.000Z
2021-11-05T22:25:55.000Z
test/support/factory.ex
joaopealves/offer_hunters_backend
cbaa9c17f41031df977430f1082e42af2b4b83d6
[ "MIT" ]
null
null
null
test/support/factory.ex
joaopealves/offer_hunters_backend
cbaa9c17f41031df977430f1082e42af2b4b83d6
[ "MIT" ]
null
null
null
defmodule OfferHunters.Factory do @moduledoc """ false """ use ExMachina.Ecto, repo: OfferHunters.Repo alias OfferHunters.{Offer, User} def user_params_factory do %{ "email" => "jp@banana.com", "name" => "Jp", "profile_picture" => "src/banana", "admin" => false } end ...
28.015385
162
0.633169
ace92deae60572b5505b7cf39fb17cefe75fe350
4,987
ex
Elixir
apps/language_server/lib/language_server/source_file.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
1
2020-06-01T11:25:33.000Z
2020-06-01T11:25:33.000Z
apps/language_server/lib/language_server/source_file.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/source_file.ex
ihabunek/elixir-ls
a8bdf9304f04254160c9fc982ad314a50085c51a
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.SourceFile do import ElixirLS.LanguageServer.Protocol defstruct [:text, :version, dirty?: false] def lines(%__MODULE__{text: text}) do lines(text) end def lines(text) when is_binary(text) do String.split(text, ["\r\n", "\r", "\n"]) end def apply_content_change...
26.956757
126
0.567475
ace931c5c97e61b2fe18fa11f73e206999df55c5
769
ex
Elixir
lib/event/server.ex
ammbot/event-nanny
101608149b78a1b70728a3c2ec3996359b0ac760
[ "Apache-2.0" ]
4
2016-04-23T19:37:25.000Z
2016-09-04T03:10:57.000Z
lib/event/server.ex
ammbot/event-nanny
101608149b78a1b70728a3c2ec3996359b0ac760
[ "Apache-2.0" ]
null
null
null
lib/event/server.ex
ammbot/event-nanny
101608149b78a1b70728a3c2ec3996359b0ac760
[ "Apache-2.0" ]
null
null
null
defmodule EventNanny.Event.Server do use GenServer import GenEvent, only: [add_mon_handler: 3] def start_link(default, args) do GenServer.start_link __MODULE__, default ++ args, [] end def init(args) do case add_mon_handler(args[:event_monitor], args[:handler], args[:args]) do :ok -> {:ok, ni...
25.633333
78
0.668401
ace962211aea6c791f755f4676ddc147944ec748
539
ex
Elixir
lib/guardian/utils.ex
elixir-twister/guardian
c9ad4042cf3181a353f83dacdccb7af8306c45e3
[ "MIT" ]
null
null
null
lib/guardian/utils.ex
elixir-twister/guardian
c9ad4042cf3181a353f83dacdccb7af8306c45e3
[ "MIT" ]
null
null
null
lib/guardian/utils.ex
elixir-twister/guardian
c9ad4042cf3181a353f83dacdccb7af8306c45e3
[ "MIT" ]
null
null
null
defmodule Guardian.Utils do @moduledoc false @doc false def stringify_keys(nil), do: %{} def stringify_keys(map) do Enum.reduce_while(map, nil, fn {key, _}, nil when is_binary(key) -> {:cont, nil} _, _ -> {:halt, do_stringify_keys(map)} end) || map end defp do_stringify_keys(map) do ...
22.458333
55
0.627087
ace975bf924cff4fe921d6f038c5c1bc252fd09a
702
ex
Elixir
hoge/lib/hoge_web/gettext.ex
t-yamanashi/testex
2b51788fc71f7b60c40316b9a9b6166953a060ba
[ "Apache-2.0" ]
null
null
null
hoge/lib/hoge_web/gettext.ex
t-yamanashi/testex
2b51788fc71f7b60c40316b9a9b6166953a060ba
[ "Apache-2.0" ]
null
null
null
hoge/lib/hoge_web/gettext.ex
t-yamanashi/testex
2b51788fc71f7b60c40316b9a9b6166953a060ba
[ "Apache-2.0" ]
null
null
null
defmodule HogeWeb.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 HogeWeb.Gettext # Simple translation gettext("Here is the str...
28.08
72
0.673789
ace9a519677fb6fd339c1d1fa03c921cdcd45398
501
ex
Elixir
domain_holder/lib/domain_holder_web/views/error_view.ex
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
1
2019-08-30T08:45:43.000Z
2019-08-30T08:45:43.000Z
domain_holder/lib/domain_holder_web/views/error_view.ex
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
5
2020-10-15T13:33:02.000Z
2020-10-15T13:33:04.000Z
domain_holder/lib/domain_holder_web/views/error_view.ex
nerves-build/DomainHolder
86bea50aef12a6ff50b0dd92bbf66b1a691e24a9
[ "MIT" ]
null
null
null
defmodule DomainHolderWeb.ErrorView do use DomainHolderWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the tem...
29.470588
61
0.740519
ace9f8cc820f799b9d734dba6859d736e4735583
898
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
33.259259
74
0.762806
acea22f1306ff34c9f443f056fb5ad4fc6f7baa3
8,226
exs
Elixir
test/dataloader/ecto/limit_query_test.exs
kwayebopp/dataloader
4b3861039d4ae75bdb62222942a20e94a4e424f9
[ "MIT" ]
null
null
null
test/dataloader/ecto/limit_query_test.exs
kwayebopp/dataloader
4b3861039d4ae75bdb62222942a20e94a4e424f9
[ "MIT" ]
null
null
null
test/dataloader/ecto/limit_query_test.exs
kwayebopp/dataloader
4b3861039d4ae75bdb62222942a20e94a4e424f9
[ "MIT" ]
null
null
null
defmodule Dataloader.LimitQueryTest do use ExUnit.Case, async: true alias Dataloader.{User, Post, Like, Score} import Ecto.Query alias Dataloader.TestRepo, as: Repo setup do :ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo) test_pid = self() source = Dataloader.Ecto.new( Repo, ...
37.054054
100
0.611841
acea255738dd3d4f53d64e0eecbe44af2a352089
2,683
ex
Elixir
lib/square_up/resources/v2/location.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
4
2020-10-21T18:34:50.000Z
2022-03-16T06:25:44.000Z
lib/square_up/resources/v2/location.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
5
2020-10-21T23:16:32.000Z
2021-05-13T13:42:44.000Z
lib/square_up/resources/v2/location.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
3
2020-10-21T21:20:36.000Z
2021-03-15T18:00:30.000Z
defmodule SquareUp.V2.Location do import Norm import SquareUp.Client, only: [call: 2] @spec create(SquareUp.Client.t(), %{}, SquareUp.TypeSpecs.create_location_request(), %{}) :: SquareUp.Client.response(SquareUp.TypeSpecs.create_location_response()) def create(client, path_params \\ %{}, params \\ %...
35.773333
94
0.674991
acea2d2f9435aef4aa7705464d618db8d553c49a
979
ex
Elixir
Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_service.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_service.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/container_service.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Containers.Model.ContainerService do @moduledoc """ Container service. """ @derive [Poison.Encoder] defstruc...
25.763158
123
0.682329
acea4eb4b9fe550d9206b9901505aadefbc4f916
370
exs
Elixir
installer/templates/phx_ecto/seeds.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
installer/templates/phx_ecto/seeds.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
installer/templates/phx_ecto/seeds.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
1
2020-02-08T16:23:00.000Z
2020-02-08T16:23:00.000Z
# 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: # # <%= app_module %>.Repo.insert!(%<%= app_module %>.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and ...
30.833333
68
0.683784
acea69738d5e5e2ed4ec6bb00ebea1faf69191fe
2,722
exs
Elixir
test/ecto/query/builder/select_test.exs
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
test/ecto/query/builder/select_test.exs
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
test/ecto/query/builder/select_test.exs
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.Builder.SelectTest do use ExUnit.Case, async: true import Ecto.Query import Ecto.Query.Builder.Select doctest Ecto.Query.Builder.Select describe "escape" do test "handles expressions and params" do assert {Macro.escape(quote do &0 end), {%{}, %{}}} == escape(quote...
40.626866
107
0.471712
acea7fad70485c6d535c3537dcb63d7b72c61b71
252
exs
Elixir
priv/repo/migrations/20220112092655_create_settings.exs
jakon89/siwapp
b5f8fd43458deae72c76e434ed0c63b620cb97a4
[ "MIT" ]
4
2015-02-12T09:23:47.000Z
2022-03-09T18:11:06.000Z
priv/repo/migrations/20220112092655_create_settings.exs
jakon89/siwapp
b5f8fd43458deae72c76e434ed0c63b620cb97a4
[ "MIT" ]
254
2021-12-09T14:40:41.000Z
2022-03-31T08:09:37.000Z
priv/repo/migrations/20220112092655_create_settings.exs
jakon89/siwapp
b5f8fd43458deae72c76e434ed0c63b620cb97a4
[ "MIT" ]
1
2022-03-07T10:25:49.000Z
2022-03-07T10:25:49.000Z
defmodule Siwapp.Repo.Migrations.CreateSettings do use Ecto.Migration def change do create table(:settings) do add :key, :string add :value, :string timestamps() end create unique_index(:settings, [:key]) end end
16.8
50
0.662698
aceaab4b1c470f110a862099b2a51c7d61e2a1f3
392
exs
Elixir
priv/repo/migrations/20201224022510_create_volunteers.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
71
2019-07-02T18:06:15.000Z
2022-03-09T15:30:08.000Z
priv/repo/migrations/20201224022510_create_volunteers.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
157
2019-07-02T01:21:16.000Z
2022-03-30T16:08:12.000Z
priv/repo/migrations/20201224022510_create_volunteers.exs
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
45
2019-07-04T05:51:11.000Z
2022-02-27T11:56:02.000Z
defmodule Erlef.Repo.Migrations.CreateVolunteers do use Ecto.Migration def change do create table(:volunteers) do add :member_id, :uuid add :name, :string, null: false add :avatar_url, :string end create unique_index("volunteers", [:name]) create unique_index("volunteers", [:mem...
24.5
52
0.686224
aceacf690030035347f0f6b8cf397e7f630f081a
2,493
ex
Elixir
lib/maru/test.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
819
2016-11-25T07:12:04.000Z
2022-03-16T06:59:36.000Z
lib/maru/test.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
71
2016-11-24T20:19:09.000Z
2021-06-09T10:12:23.000Z
lib/maru/test.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
56
2015-01-10T23:34:12.000Z
2016-11-17T00:13:56.000Z
defmodule Maru.Test do @moduledoc """ Unittest wrapper for designated router. """ @doc false defmacro __using__(opts) do server = Keyword.get(opts, :server) || case Mix.Maru.servers() do [server] -> server _any -> # TODO: more friendly informatio...
24.683168
83
0.561572
aceae2b0514236594b504935f576892c59b05c34
1,542
ex
Elixir
lib/forthvm/words/data.ex
alexiob/forthvm
4dc75790ef98e248ac48a6f4116ad7673cee6287
[ "MIT" ]
8
2021-11-19T14:02:01.000Z
2022-03-09T06:29:33.000Z
lib/forthvm/words/data.ex
alexiob/forthvm
4dc75790ef98e248ac48a6f4116ad7673cee6287
[ "MIT" ]
null
null
null
lib/forthvm/words/data.ex
alexiob/forthvm
4dc75790ef98e248ac48a6f4116ad7673cee6287
[ "MIT" ]
1
2021-11-26T18:51:31.000Z
2021-11-26T18:51:31.000Z
defmodule ForthVM.Words.Data do @moduledoc """ Custom data words """ alias ForthVM.Process @doc """ l[: ( x y z -- l ) collect all tokens till ] is found and store on the data stack as a list """ def list_start(tokens, data_stack, return_stack, dictionary, meta) do {list_tokens, tokens, _depth} = ...
28.036364
96
0.657588
aceaf537a1fb1abd2d0e05c46ce5c0e98aaccb6b
3,798
ex
Elixir
clients/api_keys/lib/google_api/api_keys/v2/api/operations.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/api_keys/lib/google_api/api_keys/v2/api/operations.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/api_keys/lib/google_api/api_keys/v2/api/operations.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.159091
196
0.646919
aceafcf44cee3b134c1400628982d6c1288de32e
1,043
ex
Elixir
lib/mix/zam.crawler.crawl.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
11
2019-05-27T23:43:46.000Z
2021-08-24T06:37:23.000Z
lib/mix/zam.crawler.crawl.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
1
2020-05-17T04:51:52.000Z
2021-03-25T15:38:33.000Z
lib/mix/zam.crawler.crawl.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
2
2019-05-27T23:43:52.000Z
2020-10-15T09:09:58.000Z
defmodule Mix.Tasks.Zam.Crawler.Crawl do @moduledoc """ Manually order to crawl a single webpage using default settings or a grouping of pages. Note that this is mainly for testing or seeding your site, as your scheduler will run the indexes in production. ## Example iex> mix zam.crawler.crawl "https://ww...
26.74359
104
0.699904
aceb0b00d66885780094534640269e8123592246
322
ex
Elixir
lib/akeneo_api/utils/curry.ex
bucha/elixir_akeneo_api
54ca1b29d49afed663b91c7985bb539e628b90eb
[ "MIT" ]
null
null
null
lib/akeneo_api/utils/curry.ex
bucha/elixir_akeneo_api
54ca1b29d49afed663b91c7985bb539e628b90eb
[ "MIT" ]
null
null
null
lib/akeneo_api/utils/curry.ex
bucha/elixir_akeneo_api
54ca1b29d49afed663b91c7985bb539e628b90eb
[ "MIT" ]
null
null
null
defmodule AkeneoApi.Utils.Curry do def curry(fun) do {_, arity} = :erlang.fun_info(fun, :arity) curry(fun, arity, []) end def curry(fun, 0, arguments) do apply(fun, Enum.reverse arguments) end def curry(fun, arity, arguments) do fn arg -> curry(fun, arity - 1, [arg | arguments]) end end en...
21.466667
58
0.645963
aceb2753fa8ea64063c4f8ce298942931836eb4c
3,122
ex
Elixir
lib/absinthe/type/union.ex
FLEWID-AB/absinthe
4e5a541630ed016379558edb3268106bcca0ce26
[ "MIT" ]
null
null
null
lib/absinthe/type/union.ex
FLEWID-AB/absinthe
4e5a541630ed016379558edb3268106bcca0ce26
[ "MIT" ]
null
null
null
lib/absinthe/type/union.ex
FLEWID-AB/absinthe
4e5a541630ed016379558edb3268106bcca0ce26
[ "MIT" ]
null
null
null
defmodule Absinthe.Type.Union do @moduledoc """ A unions is an abstract type made up of multiple possible concrete types. No common fields are declared in a union. Compare to `Absinthe.Type.Interface`. Because it's necessary for the union to determine the concrete type of a resolved object, you must either:...
28.642202
253
0.626201
aceb38f42496cb46f31adcad7778494dbe066bfc
799
ex
Elixir
lib/vutuv_web/views/api/user_view.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
309
2016-05-03T17:16:23.000Z
2022-03-01T09:30:22.000Z
lib/vutuv_web/views/api/user_view.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
662
2016-04-27T07:45:18.000Z
2022-01-05T07:29:19.000Z
lib/vutuv_web/views/api/user_view.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
40
2016-04-27T07:46:22.000Z
2021-12-31T05:54:34.000Z
defmodule VutuvWeb.Api.UserView do use VutuvWeb, :view alias VutuvWeb.Api.UserView def render("index.json", %{users: users}) do %{data: render_many(users, UserView, "user.json")} end def render("show.json", %{user: user}) do %{data: render_one(user, UserView, "user.json")} end def render("user...
24.96875
54
0.654568
aceb572305588aa0901cde72f30dd056c0feaf32
3,563
ex
Elixir
lib/appsignal/utils/data_encoder.ex
sparta-science/appsignal-elixir
4710b4e7ec514a54b82d5c2561f72369ff48e2e2
[ "MIT" ]
null
null
null
lib/appsignal/utils/data_encoder.ex
sparta-science/appsignal-elixir
4710b4e7ec514a54b82d5c2561f72369ff48e2e2
[ "MIT" ]
null
null
null
lib/appsignal/utils/data_encoder.ex
sparta-science/appsignal-elixir
4710b4e7ec514a54b82d5c2561f72369ff48e2e2
[ "MIT" ]
null
null
null
defmodule Appsignal.Utils.DataEncoder do @moduledoc """ Encodes data """ alias Appsignal.Nif def encode(%{__struct__: _} = data) do data |> Map.from_struct |> encode end def encode(data) when is_tuple(data) do data |> Tuple.to_list |> encode end def encode(data) when is_map(data) do {:ok...
29.941176
95
0.687903
aceb61a11730ba9079c0a4f4f2fe1a6857062a02
3,575
ex
Elixir
web/controllers/coherence/registration_controller.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
60
2017-05-09T19:08:26.000Z
2021-01-20T11:09:42.000Z
web/controllers/coherence/registration_controller.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
6
2017-05-10T15:43:16.000Z
2020-07-15T07:14:41.000Z
web/controllers/coherence/registration_controller.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
10
2017-05-10T04:13:54.000Z
2020-12-28T10:30:27.000Z
defmodule UcxChat.Coherence.RegistrationController do @moduledoc """ Handle account registration actions. Actions: * new - render the register form * create - create a new user account * edit - edit the user account * update - update the user account * delete - delete the user account """ use Cohe...
28.149606
80
0.668811
aceb8534ca1b6f4a851572be6e168dd263652387
4,238
ex
Elixir
deps/plug/lib/plug/adapters/test/conn.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/plug/lib/plug/adapters/test/conn.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/plug/lib/plug/adapters/test/conn.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Adapters.Test.Conn do @behaviour Plug.Conn.Adapter @moduledoc false ## Test helpers def conn(conn, method, uri, body_or_params) do maybe_flush() uri = URI.parse(uri) method = method |> to_string |> String.upcase query = uri.query || "" owner = self() {body, params...
29.84507
112
0.629542
aceb8c099e303f431414aec2ca9bb40ea46d017a
568
exs
Elixir
apps/subs_web/test/subs_web/views/error_view_test.exs
gitter-badger/opensubs.io
76d5b4d355a530c8f496efe3ac2095d87f078997
[ "MIT" ]
36
2018-02-03T10:58:51.000Z
2020-09-19T20:52:17.000Z
apps/subs_web/test/subs_web/views/error_view_test.exs
joaquimadraz/subs
9a26144ed660d5ece849ee447a9e5de53a311408
[ "MIT" ]
8
2018-01-17T17:15:48.000Z
2020-07-06T08:56:54.000Z
apps/subs_web/test/subs_web/views/error_view_test.exs
joaquimadraz/subs
9a26144ed660d5ece849ee447a9e5de53a311408
[ "MIT" ]
10
2018-05-21T18:20:32.000Z
2022-01-29T14:25:48.000Z
defmodule SubsWeb.ErrorViewTest do use SubsWeb.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(SubsWeb.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do ...
25.818182
66
0.676056
aceba9227cbed83e3813ac17a8884c4ccccbd19e
4,349
exs
Elixir
lib/elixir/test/elixir/binary/chars_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/binary/chars_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/binary/chars_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule Binary.Chars.AtomTest do use ExUnit.Case, async: true test :basic do assert to_binary(:foo) == "foo" end test :empty do assert to_binary(:"") == "" end test :true_false_nil do assert to_binary(false) == "false" assert to_binary(tr...
27.18125
157
0.657163
acebb60ce1f73c8b60f4ec4cb399ece62ad9633e
5,138
ex
Elixir
server/lib/oaas/job.ex
christopher-dG/osu-replay-bot
dff626217f6930b0afb2299dac674195b485e4b1
[ "MIT" ]
null
null
null
server/lib/oaas/job.ex
christopher-dG/osu-replay-bot
dff626217f6930b0afb2299dac674195b485e4b1
[ "MIT" ]
null
null
null
server/lib/oaas/job.ex
christopher-dG/osu-replay-bot
dff626217f6930b0afb2299dac674195b485e4b1
[ "MIT" ]
null
null
null
defmodule OAAS.Job do @moduledoc "An abstract job to be completed." alias OAAS.DB alias OAAS.Job.Replay alias OAAS.Worker import OAAS.Utils require DB @table "jobs" @derive Jason.Encoder @enforce_keys [:id, :type, :data, :status, :created_at, :updated_at] defstruct @enforce_keys ++ [:comment, :wo...
26.621762
94
0.572207
acebe793411720990e5430774f582a66bdd0e550
238
ex
Elixir
lib/central/config/libs/site_config_lib.ex
Teifion/teiserver
131e002160e1e948cb55e56d62370ba66a972cba
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central/config/libs/site_config_lib.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
null
null
null
lib/central/config/libs/site_config_lib.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
2
2021-02-23T22:34:00.000Z
2021-04-08T13:31:36.000Z
defmodule Central.Config.SiteConfigLib do # We can't define it as a library since the libraries import get_site_config from here def colours(), do: Central.Helpers.StylingHelper.colours(:success2) def icon(), do: "far fa-cogs" end
34
88
0.764706
acebe821541f7a2ae4257e350d61709ac872a3db
637
ex
Elixir
scottsouthworth+elixir/lib/owlbear/history.ex
NashFP/railway
6e9ab76fb6faa3ecdff98405001ee6fddacf478f
[ "MIT" ]
null
null
null
scottsouthworth+elixir/lib/owlbear/history.ex
NashFP/railway
6e9ab76fb6faa3ecdff98405001ee6fddacf478f
[ "MIT" ]
null
null
null
scottsouthworth+elixir/lib/owlbear/history.ex
NashFP/railway
6e9ab76fb6faa3ecdff98405001ee6fddacf478f
[ "MIT" ]
null
null
null
defmodule OwlBear.History do alias OwlBear.{History, Result} @type t :: [Result.t()] @spec to_named_oks(History.t()) :: keyword() def to_named_oks(history) do history |> Enum.filter(fn r -> r.skip == false and r.tag == :ok and r.name != nil end) |> Enum.uniq_by(fn r -> r.name end) |> Enum.map(...
28.954545
85
0.609105
acec3bd43684d2a94f4fb0ae87c805b4654b1501
3,753
exs
Elixir
test/mix/tasks/ecto.dump_load_test.exs
aptinio/ecto_sql
f13a0e8383428154a61a7a93d43dcb4b6f6a6fad
[ "Apache-2.0" ]
4
2019-06-26T22:43:55.000Z
2020-01-19T17:37:07.000Z
test/mix/tasks/ecto.dump_load_test.exs
aptinio/ecto_sql
f13a0e8383428154a61a7a93d43dcb4b6f6a6fad
[ "Apache-2.0" ]
3
2019-07-15T06:54:40.000Z
2020-02-09T16:36:44.000Z
test/mix/tasks/ecto.dump_load_test.exs
aptinio/ecto_sql
f13a0e8383428154a61a7a93d43dcb4b6f6a6fad
[ "Apache-2.0" ]
15
2019-01-15T18:17:44.000Z
2020-01-12T03:52:35.000Z
defmodule Mix.Tasks.Ecto.DumpLoadTest do use ExUnit.Case, async: true alias Mix.Tasks.Ecto.{Load, Dump} # Mocked adapters defmodule Adapter do @behaviour Ecto.Adapter @behaviour Ecto.Adapter.Structure defmacro __before_compile__(_), do: :ok def dumpers(_, _), do: raise "not implemented" ...
31.805085
118
0.674127
acec84dc316db30662d1896a0b9bba740d603c23
5,205
ex
Elixir
clients/content/lib/google_api/content/v2/model/inventory_set_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/inventory_set_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v2/model/inventory_set_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
58.483146
368
0.705283
acec923dea139c9d26e9283fe95c0deda38c1fe2
1,503
ex
Elixir
lib/flicks_web/endpoint.ex
KTSCode/flicks-backend
e484b7a69cf24d7e474373c1ad627a3a4eaddbc6
[ "MIT" ]
null
null
null
lib/flicks_web/endpoint.ex
KTSCode/flicks-backend
e484b7a69cf24d7e474373c1ad627a3a4eaddbc6
[ "MIT" ]
null
null
null
lib/flicks_web/endpoint.ex
KTSCode/flicks-backend
e484b7a69cf24d7e474373c1ad627a3a4eaddbc6
[ "MIT" ]
null
null
null
defmodule FlicksWeb.Endpoint do use Phoenix.Endpoint, otp_app: :flicks # 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: "_flicks_key"...
28.358491
97
0.71324
aceca9bea9103730fc9d6da2ac01260d6bb89660
6,044
ex
Elixir
lib/central/helpers/date_presents.ex
Teifion/teiserver
131e002160e1e948cb55e56d62370ba66a972cba
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/central/helpers/date_presents.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
null
null
null
lib/central/helpers/date_presents.ex
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
2
2021-02-23T22:34:00.000Z
2021-04-08T13:31:36.000Z
defmodule Central.Helpers.DatePresets do @moduledoc """ """ import Central.Helpers.TimexHelper @presets [ "This week", "Last week", "Two weeks ago", "This month", "Last month", "Two months ago", "This year", "Last year", "Last 3 months", "Last 6 months", "Last 12 m...
24.079681
93
0.611185
acecbdd6f8bef2b00754fefaa22bc0301ccdff38
12,846
exs
Elixir
apps/nerves_hub_web_core/test/nerves_hub_web_core/accounts/accounts_test.exs
homekid2010/new
43ae2a980ab67f98c30c6c52cab3f57659f201f8
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/test/nerves_hub_web_core/accounts/accounts_test.exs
homekid2010/new
43ae2a980ab67f98c30c6c52cab3f57659f201f8
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/test/nerves_hub_web_core/accounts/accounts_test.exs
homekid2010/new
43ae2a980ab67f98c30c6c52cab3f57659f201f8
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubWebCore.AccountsTest do use NervesHubWebCore.DataCase, async: true alias Ecto.Changeset alias NervesHubWebCore.Accounts alias NervesHubWebCore.Accounts.{Org, OrgKey, OrgLimit, OrgUser, User, Invite} alias NervesHubWebCore.Fixtures @required_org_params %{name: "Org"} setup do use...
32.115
95
0.665421
acecc33487decd01f08b33f63956fedcf6a1e381
527
ex
Elixir
lib/upstream/b2/large_file/cancel.ex
artellectual/blazay
0c5f58514cc2417931786b5cd482978fa5bfd9c0
[ "MIT" ]
5
2018-02-16T15:32:41.000Z
2020-03-31T10:55:24.000Z
lib/upstream/b2/large_file/cancel.ex
artellectual/blazay
0c5f58514cc2417931786b5cd482978fa5bfd9c0
[ "MIT" ]
8
2017-07-12T04:27:31.000Z
2017-12-26T06:30:47.000Z
lib/upstream/b2/large_file/cancel.ex
upmaru/blazay
0c5f58514cc2417931786b5cd482978fa5bfd9c0
[ "MIT" ]
2
2018-02-16T15:32:45.000Z
2018-03-04T12:11:57.000Z
defmodule Upstream.B2.LargeFile.Cancel do @moduledoc """ Call to cancel un-finished large_files """ @derive Jason.Encoder defstruct [:file_id, :account_id, :bucket_id, :file_name] @type t :: %__MODULE__{ file_id: String.t(), account_id: String.t(), bucket_id: String.t(), ...
23.954545
70
0.643264
acecca0190a4d20c70ec0ab76313d155e4b0223d
3,270
ex
Elixir
lib/smppex/pdu/pp.ex
MarkMagnus/smppex
01d2ab76164dab0ba2a37c8344b697842574054d
[ "Apache-2.0" ]
null
null
null
lib/smppex/pdu/pp.ex
MarkMagnus/smppex
01d2ab76164dab0ba2a37c8344b697842574054d
[ "Apache-2.0" ]
null
null
null
lib/smppex/pdu/pp.ex
MarkMagnus/smppex
01d2ab76164dab0ba2a37c8344b697842574054d
[ "Apache-2.0" ]
null
null
null
defmodule SMPPEX.Pdu.PP do @moduledoc """ Module for colored pretty printing Pdu structs. """ alias IO.ANSI, as: C alias SMPPEX.Pdu alias SMPPEX.Protocol.TlvFormat @pad "" @indent " " @field_inspect_limit 999999 @spec format(pdu :: Pdu.t, indent :: String.t, pad :: String.t) :: iolist @doc ""...
25.952381
103
0.617737
acece00d9c8ce2ed0ae0e6d319099e84952513dc
2,388
ex
Elixir
lib/ddd_ex_tickets_web.ex
mwindholtz/ddd_ex_tickets
c3cf196ffb8f6d315334a4984db54b2f7aed912e
[ "MIT" ]
5
2021-05-27T01:25:15.000Z
2022-02-16T09:51:58.000Z
lib/ddd_ex_tickets_web.ex
mwindholtz/ddd_ex_tickets
c3cf196ffb8f6d315334a4984db54b2f7aed912e
[ "MIT" ]
2
2021-03-10T22:27:22.000Z
2021-05-11T17:41:57.000Z
lib/ddd_ex_tickets_web.ex
mwindholtz/ddd_ex_tickets
c3cf196ffb8f6d315334a4984db54b2f7aed912e
[ "MIT" ]
2
2021-01-01T13:48:03.000Z
2021-04-16T15:23:37.000Z
defmodule DddExTicketsWeb 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 DddExTicketsWeb, :controller use DddExTicketsWeb, :view The definitions below will be executed for every view,...
23.184466
78
0.690955
aced11c590ea4dcd26469c821067a6acb3991430
157
ex
Elixir
lib/live_sup_web/live/admin/home_live/show.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup_web/live/admin/home_live/show.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
lib/live_sup_web/live/admin/home_live/show.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSupWeb.Admin.HomeLive.Show do use LiveSupWeb, :live_view @impl true def mount(_params, _session, socket) do {:ok, socket} end end
17.444444
43
0.719745
aced164d9069570260ad1701ecf6e2327b76e1db
1,033
ex
Elixir
test/support/conn_case.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
wjanssens/aspekt-elixir
3b4926fa37cc056cafe7204589e0cac11289c6a8
[ "Apache-2.0" ]
null
null
null
defmodule AspektWeb.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 the ...
26.487179
68
0.718296
aced25f93d7f866987ca059d85085196321cc29f
1,112
exs
Elixir
config/config.exs
grahac/eth
950eeb89e4059f0e8711ec5c7944732c161a4bef
[ "MIT" ]
4
2021-12-01T17:20:34.000Z
2021-12-09T23:09:03.000Z
config/config.exs
grahac/eth
950eeb89e4059f0e8711ec5c7944732c161a4bef
[ "MIT" ]
null
null
null
config/config.exs
grahac/eth
950eeb89e4059f0e8711ec5c7944732c161a4bef
[ "MIT" ]
4
2021-04-29T23:42:55.000Z
2022-01-30T23:55:58.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...
34.75
73
0.751799
aced2a4071d5f24b432a17b6f3f16c10b5043ef4
188
ex
Elixir
lib/ex_money/money.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
184
2015-11-23T20:51:50.000Z
2022-03-30T01:01:39.000Z
lib/ex_money/money.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
15
2015-11-26T16:00:20.000Z
2018-05-25T20:13:39.000Z
lib/ex_money/money.ex
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
21
2015-11-26T21:34:40.000Z
2022-03-26T02:56:42.000Z
defmodule ExMoney.Money do def to_millicents(value) do {millicents, _} = value |> Decimal.mult(Decimal.new(1000)) |> to_string |> Integer.parse millicents end end
17.090909
38
0.659574
aced51abe2c492a262e20e9ce00565932b00e471
664
ex
Elixir
lib/afk/keycode.ex
wevtimoteo/afk
a78457e59655c6999905ddb8d59a54e7d781c170
[ "MIT" ]
null
null
null
lib/afk/keycode.ex
wevtimoteo/afk
a78457e59655c6999905ddb8d59a54e7d781c170
[ "MIT" ]
null
null
null
lib/afk/keycode.ex
wevtimoteo/afk
a78457e59655c6999905ddb8d59a54e7d781c170
[ "MIT" ]
1
2020-01-06T13:52:14.000Z
2020-01-06T13:52:14.000Z
defmodule AFK.Keycode do @moduledoc """ A keycode represents a key that when pressed affects the keyboard state in some way. The currently supported keycode types are: * `AFK.Keycode.Key` - A basic keyboard key * `AFK.Keycode.Layer` - A key that can activate other layers * `AFK.Keycode.Modifier` - A bas...
31.619048
76
0.691265
aced51f84eedf26ca70afec3b9841f6af98a6c02
3,013
ex
Elixir
clients/android_management/lib/google_api/android_management/v1/model/hardware_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/hardware_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_management/lib/google_api/android_management/v1/model/hardware_status.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...
46.353846
231
0.70926
aced8e0fbfffdc23ce3c162ed98d47281b40baa3
8,195
ex
Elixir
apps/aecore/lib/aecore/peers/worker.ex
wuminzhe/elixir-node
eb87b47339a8349bac767dd4cf597dfaf0ed75c6
[ "ISC" ]
null
null
null
apps/aecore/lib/aecore/peers/worker.ex
wuminzhe/elixir-node
eb87b47339a8349bac767dd4cf597dfaf0ed75c6
[ "ISC" ]
null
null
null
apps/aecore/lib/aecore/peers/worker.ex
wuminzhe/elixir-node
eb87b47339a8349bac767dd4cf597dfaf0ed75c6
[ "ISC" ]
null
null
null
defmodule Aecore.Peers.Worker do @moduledoc """ Peer manager module """ use GenServer alias Aecore.Peers.Sync alias Aehttpclient.Client alias Aecore.Chain.Worker, as: Chain alias Aecore.Structures.Block alias Aecore.Structures.SignedTx alias Aecore.Chain.BlockValidation alias Aeutil.Bits requ...
29.163701
94
0.61806
acedcb84acaf0348b8b44f93e233dd76a1f3a5b6
557
ex
Elixir
lib/mix/tasks/mutation.ex
MikaAK/absinthe_generator
2025daeac092c5a2fa8030bcddf770fd3104cd0f
[ "MIT" ]
1
2022-02-28T14:58:08.000Z
2022-02-28T14:58:08.000Z
lib/mix/tasks/mutation.ex
MikaAK/absinthe_generator
2025daeac092c5a2fa8030bcddf770fd3104cd0f
[ "MIT" ]
null
null
null
lib/mix/tasks/mutation.ex
MikaAK/absinthe_generator
2025daeac092c5a2fa8030bcddf770fd3104cd0f
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Absinthe.Gen.Mutation do use Mix.Task alias Mix.AbsintheGeneratorUtils @shortdoc "Generates an absinthe mutation schema and inserts the record in the base schema.ex" @moduledoc """ Generates ABSINTHE MUTATION """ def run(args) do AbsintheGeneratorUtils.ensure_not_in_umbrella!("...
23.208333
96
0.732496
acede03b1dbaec15091e0060bcab9f0ba81da98c
2,471
ex
Elixir
clients/home_graph/lib/google_api/home_graph/v1/model/sync_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/home_graph/lib/google_api/home_graph/v1/model/sync_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/home_graph/lib/google_api/home_graph/v1/model/sync_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
49.42
800
0.7155
acede30cca8d9c49b90923ae61b276c0f8928ffd
647
ex
Elixir
lib/flowr_web/supervisor.ex
flowr-app/flowr
1e88bc917da32df2878e13c9bb1998dbbe61cd62
[ "0BSD" ]
2
2021-08-01T04:38:08.000Z
2021-08-01T06:52:29.000Z
lib/flowr_web/supervisor.ex
flowr-app/flowr
1e88bc917da32df2878e13c9bb1998dbbe61cd62
[ "0BSD" ]
3
2021-08-01T08:20:13.000Z
2021-08-01T08:22:07.000Z
lib/flowr_web/supervisor.ex
flowr-app/flowr
1e88bc917da32df2878e13c9bb1998dbbe61cd62
[ "0BSD" ]
null
null
null
defmodule FlowrWeb.Supervisor do @moduledoc false use Supervisor def start_link(init_arg) do Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__) end def init(_init_arg) do children = [ # Start the PubSub system {Phoenix.PubSub, name: FlowrWeb.PubSub}, # Start the Endpoin...
23.107143
65
0.706337
acee0da7f4a5b0f9b407d4c1cc6d8fa5b692a480
236
exs
Elixir
kousa/priv/repo/migrations/20210425000426_user_bot_api_key.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
9
2021-03-17T03:56:18.000Z
2021-09-24T22:45:14.000Z
kousa/priv/repo/migrations/20210425000426_user_bot_api_key.exs
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/priv/repo/migrations/20210425000426_user_bot_api_key.exs
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule Beef.Repo.Migrations.UserBotApiKey do use Ecto.Migration def change do alter table(:users) do add :botOwnerId, references(:users, on_delete: :delete_all, type: :uuid) add :apiKey, :uuid end end end
19.666667
78
0.690678
acee0f5eba09a4a9d5b207d2026e5e549221090d
2,105
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_scoped_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_scoped_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_scoped_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
41.27451
228
0.75867
acee4fa0e98401764c9ad1d240f87804678bb80f
1,120
exs
Elixir
config/config.exs
mithereal/ex_fcmsa
484ae950699a525ba797822d31a6bab0c30d2343
[ "MIT" ]
1
2020-01-26T23:30:04.000Z
2020-01-26T23:30:04.000Z
config/config.exs
mithereal/elixir-fcmsa
484ae950699a525ba797822d31a6bab0c30d2343
[ "MIT" ]
null
null
null
config/config.exs
mithereal/elixir-fcmsa
484ae950699a525ba797822d31a6bab0c30d2343
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. import 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 parent...
36.129032
73
0.75
acee57ddf920c4a97d26e2dc834c125539224ef6
3,340
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_audit_logs_source_spec.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_audit_logs_source_spec.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_audit_logs_source_spec.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.870968
329
0.736826
acee605245dd8dab9a94d2aca86c4d1052885f82
220
ex
Elixir
lib/imager/jose/jason.ex
appunite/imager
b41f76be975faf4d255ad0a5d8e972df1924356b
[ "MIT" ]
55
2018-10-02T14:56:04.000Z
2021-12-10T21:08:07.000Z
lib/imager/jose/jason.ex
appunite/imager
b41f76be975faf4d255ad0a5d8e972df1924356b
[ "MIT" ]
27
2018-10-02T14:57:09.000Z
2019-04-11T07:51:11.000Z
lib/imager/jose/jason.ex
appunite/imager
b41f76be975faf4d255ad0a5d8e972df1924356b
[ "MIT" ]
3
2018-10-12T18:31:41.000Z
2020-04-22T15:26:25.000Z
defmodule Imager.JOSE.Jason do @moduledoc """ Implement `:jose_json` behaviour for `Jason` """ @behaviour :jose_json def encode(data), do: Jason.encode!(data) def decode(data), do: Jason.decode!(data) end
18.333333
46
0.686364
acee6717bba3cf2518092d7854662db3973d0413
735
ex
Elixir
lib/coherence_social/web/gettext.ex
veverkap/coherence_social
45752db88b5c7c8220c96c4828adf58acf0a98d8
[ "MIT" ]
null
null
null
lib/coherence_social/web/gettext.ex
veverkap/coherence_social
45752db88b5c7c8220c96c4828adf58acf0a98d8
[ "MIT" ]
null
null
null
lib/coherence_social/web/gettext.ex
veverkap/coherence_social
45752db88b5c7c8220c96c4828adf58acf0a98d8
[ "MIT" ]
null
null
null
defmodule CoherenceSocial.Web.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 CoherenceSocial.Web.Gettext # Simple translation ...
29.4
72
0.689796
acee6a0e1957069866951195491910934e659972
5,343
ex
Elixir
apps/andi/lib/andi_web/live/data_dictionary/data_dictionary_add_field_editor.ex
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/lib/andi_web/live/data_dictionary/data_dictionary_add_field_editor.ex
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/lib/andi_web/live/data_dictionary/data_dictionary_add_field_editor.ex
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule AndiWeb.DataDictionary.AddFieldEditor do @moduledoc """ LiveComponent for adding a field to a data dictionary """ use Phoenix.LiveComponent import Phoenix.HTML.Form import AndiWeb.ErrorHelpers alias AndiWeb.Views.Options alias Andi.InputSchemas.Datasets.DataDictionary alias Andi.InputSche...
34.694805
138
0.621187
acee6dd2624224477ef9bbb222ef55a616f09c48
909
exs
Elixir
mix.exs
garyposter/davethomas-elixir-chapter13-issues
d9dd05506605bc7fc0c63ece9dd369e830ddb8fc
[ "Apache-2.0" ]
null
null
null
mix.exs
garyposter/davethomas-elixir-chapter13-issues
d9dd05506605bc7fc0c63ece9dd369e830ddb8fc
[ "Apache-2.0" ]
null
null
null
mix.exs
garyposter/davethomas-elixir-chapter13-issues
d9dd05506605bc7fc0c63ece9dd369e830ddb8fc
[ "Apache-2.0" ]
null
null
null
defmodule Issues.Mixfile do use Mix.Project def project do [app: :issues, version: "0.0.1", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, escript: escript_config, deps: deps, name: "Issues" ] end # Configuration for the OTP app...
20.659091
77
0.581958
acee86541dd9a76523c0a76feb71742eff632c41
16,542
ex
Elixir
lib/protox/define_decoder.ex
EasyMile/protox
6b58b7aaba00b2b5faf1d7e8e2e226b9d2b72a7b
[ "MIT" ]
18
2017-03-02T16:46:10.000Z
2019-12-07T03:31:16.000Z
lib/protox/define_decoder.ex
EasyMile/protox
6b58b7aaba00b2b5faf1d7e8e2e226b9d2b72a7b
[ "MIT" ]
8
2017-09-21T21:45:33.000Z
2020-05-13T18:54:01.000Z
lib/protox/define_decoder.ex
EasyMile/protox
6b58b7aaba00b2b5faf1d7e8e2e226b9d2b72a7b
[ "MIT" ]
2
2018-02-26T13:13:08.000Z
2020-05-12T07:01:36.000Z
defmodule Protox.DefineDecoder do @moduledoc false # Internal. Generates the decoder of a message. use Protox.{ Float, WireTypes } def define(msg_name, fields, required_fields) do set_fields_var = quote do: set_fields decode_fun = make_decode_fun(required_fields, msg_name, set_fields_var) ...
31.329545
99
0.661105
acee9fb2388aa806dba83f6c99304d926fa7a509
1,589
ex
Elixir
web/views/view_helpers.ex
arpieb/aggit
048a4f25da9aa1d0d41f350b67f9b034a6e65aa3
[ "Apache-2.0" ]
null
null
null
web/views/view_helpers.ex
arpieb/aggit
048a4f25da9aa1d0d41f350b67f9b034a6e65aa3
[ "Apache-2.0" ]
null
null
null
web/views/view_helpers.ex
arpieb/aggit
048a4f25da9aa1d0d41f350b67f9b034a6e65aa3
[ "Apache-2.0" ]
null
null
null
defmodule Aggit.ViewHelpers do @moduledoc """ Provide general-purpose helper functions to extend Phoenix.HTML on for view rendering. """ use Phoenix.HTML @doc """ Generates standard markup for field help text. The form should either be a `Phoenix.HTML.Form` emitted by `form_for` or an atom. All gi...
25.222222
88
0.623663
aceedc55a6ad708d371129a2acd5add5cd36c910
2,422
ex
Elixir
lib/named_bind_sql.ex
Nao000/NamedBindSql
2fa57a18d917e1fc4e532a56f25f00191055bb02
[ "MIT" ]
null
null
null
lib/named_bind_sql.ex
Nao000/NamedBindSql
2fa57a18d917e1fc4e532a56f25f00191055bb02
[ "MIT" ]
null
null
null
lib/named_bind_sql.ex
Nao000/NamedBindSql
2fa57a18d917e1fc4e532a56f25f00191055bb02
[ "MIT" ]
null
null
null
defmodule NamedBindSql do @doc """ ## example iex> sql = "SELECT * FROM table1 AS t1 WHERE t1.id = :id1 AND t1.id2 = :id2 AND t1.id = :id1;" "SELECT * FROM table1 AS t1 WHERE t1.id = :id1 AND t1.id2 = :id2 AND t1.id = :id1;" iex> params = %{"id1" => 1, "id2" => 2} %{"id1" => 1, "id2" => 2}...
26.615385
100
0.636664
aceee17037bb5ff9a5c54394069c5abaabd67992
1,924
ex
Elixir
lib/kerbal_maps_web/controllers/marker_controller.ex
CraigCottingham/ksp-maps
ffd81c5e667cf6ca7770e717c736e51489c0c3d3
[ "Apache-2.0" ]
6
2019-01-25T12:07:43.000Z
2021-09-09T20:31:39.000Z
lib/kerbal_maps_web/controllers/marker_controller.ex
CraigCottingham/ksp-maps
ffd81c5e667cf6ca7770e717c736e51489c0c3d3
[ "Apache-2.0" ]
144
2019-01-26T02:20:07.000Z
2021-07-21T06:28:23.000Z
lib/kerbal_maps_web/controllers/marker_controller.ex
CraigCottingham/ksp-maps
ffd81c5e667cf6ca7770e717c736e51489c0c3d3
[ "Apache-2.0" ]
2
2019-07-31T21:11:00.000Z
2020-04-15T19:51:14.000Z
defmodule KerbalMapsWeb.MarkerController do @moduledoc """ The Marker controller. """ use KerbalMapsWeb, :controller alias KerbalMaps.Symbols alias KerbalMaps.Symbols.Marker def index(conn, _params) do markers = Symbols.list_markers_for_user(conn.assigns[:current_user]) render(conn, "index.html...
28.294118
97
0.649168
acef3929ab72ad5a9fdd7a0c32809f797470369f
3,345
ex
Elixir
lib/controller.ex
bwingo/poolmap
fdf2456b91b2204ea23950741630ce795f6a85ac
[ "MIT" ]
null
null
null
lib/controller.ex
bwingo/poolmap
fdf2456b91b2204ea23950741630ce795f6a85ac
[ "MIT" ]
null
null
null
lib/controller.ex
bwingo/poolmap
fdf2456b91b2204ea23950741630ce795f6a85ac
[ "MIT" ]
null
null
null
defmodule ParallelController do use GenServer def new, do: GenServer.start_link(__MODULE__, :new) def setup(_pid, _collection, _function, limit) when false == is_integer(limit), do: {:error, "4th element is the limit of workers. It needs to be an integer."} def setup(_pid, collection, _function, _limit) when ...
44.013158
161
0.722571
acef5a5a6b9b6486156e9df22e8368573b870b2e
3,142
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/operation.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/operation.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "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/operation.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.254237
543
0.723425
acef69bff943a8a3e867964ed756f0495138e57f
4,574
ex
Elixir
chapter-17/otp-supervisors-1/stack/lib/stack/server.ex
carlos4ndre/elixir-exercises
3673cf69d08a6c7de53224f8956f0db21e7c5dad
[ "MIT" ]
55
2015-12-09T09:23:50.000Z
2022-01-31T21:14:59.000Z
chapter-17/otp-supervisors-1/stack/lib/stack/server.ex
carlos4ndre/elixir-exercises
3673cf69d08a6c7de53224f8956f0db21e7c5dad
[ "MIT" ]
3
2016-06-15T12:53:39.000Z
2017-08-21T18:20:42.000Z
chapter-17/otp-supervisors-1/stack/lib/stack/server.ex
carlos4ndre/elixir-exercises
3673cf69d08a6c7de53224f8956f0db21e7c5dad
[ "MIT" ]
18
2016-01-01T18:18:23.000Z
2021-05-24T02:22:42.000Z
defmodule Stack.Server do use GenServer ############### # External API ############### def start_link(current_stack) do GenServer.start_link(__MODULE__, current_stack, name: __MODULE__) end def pop do GenServer.call(__MODULE__, :pop) end def push(element) do GenServer.cast(__MODULE__, ...
36.887097
359
0.667468
acef8a5acd050f072f40c96f31a943c5208937be
1,241
ex
Elixir
lib/scenic/primitive/style/fill.ex
bruceme/scenic
bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/style/fill.ex
bruceme/scenic
bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/style/fill.ex
bruceme/scenic
bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 2018-06-05. # Copyright © 2018-2021 Kry10 Limited. All rights reserved. # defmodule Scenic.Primitive.Style.Fill do @moduledoc """ Fill primitives with the specified paint. Example: graph |> rectangle( {10, 20}, fill: :blue ) ### Data Format Any valid paint. T...
23.865385
85
0.599517
acefda28544973b829f14fd2cc8ab0c4431db404
4,483
ex
Elixir
lib/livebook_web/live/session_live/runtime_component.ex
romkor/livebook
ac4bb63d924148c0b21376d635d47470c56cfad1
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/runtime_component.ex
romkor/livebook
ac4bb63d924148c0b21376d635d47470c56cfad1
[ "Apache-2.0" ]
1
2021-09-18T01:09:08.000Z
2021-09-18T01:09:08.000Z
lib/livebook_web/live/session_live/runtime_component.ex
romkor/livebook
ac4bb63d924148c0b21376d635d47470c56cfad1
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SessionLive.RuntimeComponent do use LivebookWeb, :live_component alias Livebook.{Session, Runtime} @impl true def mount(socket) do {:ok, assign(socket, type: nil)} end @impl true def update(assigns, socket) do assigns = if socket.assigns.type == nil do type =...
34.484615
93
0.552978
acefe4611bbfd35aee009173c154c10f8c185035
22,081
exs
Elixir
test/chat_api_web/controllers/slack_controller_test.exs
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
1
2021-06-17T03:17:24.000Z
2021-06-17T03:17:24.000Z
test/chat_api_web/controllers/slack_controller_test.exs
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/slack_controller_test.exs
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.SlackControllerTest do use ChatApiWeb.ConnCase, async: true import ChatApi.Factory import Mock alias ChatApi.{Companies, Customers, Messages} alias ChatApi.Companies.Company @email "customer@test.com" @slack_channel "#test" setup %{conn: conn} do account = insert(:account) ...
31.1
120
0.555138
acf007157139dd5bad1504e1f027b99ab123a85e
3,890
ex
Elixir
lib/views/commerce/commerce_offer_slack_view.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
11
2016-08-18T23:18:57.000Z
2019-05-03T17:46:55.000Z
lib/views/commerce/commerce_offer_slack_view.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
105
2016-08-17T23:36:07.000Z
2019-09-26T18:14:24.000Z
lib/views/commerce/commerce_offer_slack_view.ex
artsy/aprb
9e93200462a76823c831b92f02bddcf1b326a451
[ "MIT" ]
14
2016-08-17T17:23:45.000Z
2019-09-16T16:14:59.000Z
defmodule Aprb.Views.CommerceOfferSlackView do import Aprb.ViewHelper alias Aprb.Views.CommerceHelper def render(event, routing_key) do case routing_key do "offer.submitted" -> offer_submitted(event) "offer.pending_response" -> offer_pending_response(event) end end defp offer_submitted(...
33.247863
138
0.513111
acf015d6b2c786758cb9bee8e51c5af35023afd9
975
ex
Elixir
lib/ex_firebase/auth/api.ex
alfietham/ex_firebase
f8f6666db003940138b8fe79e1c5be4a6e580de1
[ "MIT" ]
6
2019-03-23T10:18:13.000Z
2021-12-30T15:15:15.000Z
lib/ex_firebase/auth/api.ex
alfietham/ex_firebase
f8f6666db003940138b8fe79e1c5be4a6e580de1
[ "MIT" ]
null
null
null
lib/ex_firebase/auth/api.ex
alfietham/ex_firebase
f8f6666db003940138b8fe79e1c5be4a6e580de1
[ "MIT" ]
3
2019-05-16T01:32:20.000Z
2021-12-30T16:02:30.000Z
defmodule ExFirebase.Auth.API do @moduledoc """ HTTP request interface for authentication modules """ alias ExFirebase.HTTPClient @http_client Application.get_env(:ex_firebase, :http_client) || HTTPClient @oauth_token_url "https://www.googleapis.com/oauth2/v4/token" @public_keys_url "https://www.googlea...
32.5
109
0.684103
acf033af81a7aa2df2f1ae8e844bb4fb6d08029b
434
exs
Elixir
ex/mix.exs
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
ex/mix.exs
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
ex/mix.exs
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
defmodule Ex.MixProject do use Mix.Project def project do [ app: :ex, version: "0.1.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications:...
16.074074
59
0.571429
acf06201d66984d5bd09f425253d9d5f7d2ec618
2,293
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/model/mcf_data_profile_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/model/mcf_data_profile_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/analytics/lib/google_api/analytics/v3/model/mcf_data_profile_info.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...
36.983871
141
0.692106
acf0aeb009eb9c508781a3affde58963ca58312d
2,340
exs
Elixir
mix.exs
pyzlnar/rem-bot
100b71949026eb191c1ebf80d64270406f237958
[ "MIT" ]
4
2022-02-20T13:33:48.000Z
2022-03-31T00:48:52.000Z
mix.exs
pyzlnar/rem-bot
100b71949026eb191c1ebf80d64270406f237958
[ "MIT" ]
1
2022-02-22T05:42:05.000Z
2022-02-22T05:42:05.000Z
mix.exs
pyzlnar/rem-bot
100b71949026eb191c1ebf80d64270406f237958
[ "MIT" ]
null
null
null
defmodule Rem.MixProject do use Mix.Project def project do [ app: :rem, version: "0.1.0", elixir: "~> 1.13", elixirc_paths: elixirc_paths(Mix.env), aliases: aliases(), compilers: compilers(), deps: deps(), s...
23.877551
70
0.56453
acf0b363f9a6b7c307966c7755689bdfe6615a8c
468
ex
Elixir
lib/brex/operator/aggregator.ex
ktec/brex
e6cf1d6eb8bf9f3e17f6e7d92006f339a9f5d32e
[ "MIT" ]
null
null
null
lib/brex/operator/aggregator.ex
ktec/brex
e6cf1d6eb8bf9f3e17f6e7d92006f339a9f5d32e
[ "MIT" ]
null
null
null
lib/brex/operator/aggregator.ex
ktec/brex
e6cf1d6eb8bf9f3e17f6e7d92006f339a9f5d32e
[ "MIT" ]
null
null
null
defmodule Brex.Operator.Aggregator do @moduledoc false defdelegate all?(enum), to: Enum defdelegate any?(enum), to: Enum @doc """ # Examples iex> Brex.Operator.Aggregator.none?([]) true iex> Brex.Operator.Aggregator.none?([nil, nil]) true iex> Brex.Operator.Aggregator.none?([1, 2, nil...
18.72
52
0.623932
acf0c3069208149e4f7a04c341af09c2e36dc59b
2,392
ex
Elixir
lib/nostrum/struct/application_command_interaction_data_resolved.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
637
2017-03-07T11:25:35.000Z
2022-03-31T13:37:51.000Z
lib/nostrum/struct/application_command_interaction_data_resolved.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
372
2017-03-07T20:42:03.000Z
2022-03-30T22:46:46.000Z
lib/nostrum/struct/application_command_interaction_data_resolved.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
149
2017-03-07T12:11:58.000Z
2022-03-19T22:11:51.000Z
defmodule Nostrum.Struct.ApplicationCommandInteractionDataResolved do @moduledoc "Converted interaction payload." @moduledoc since: "0.5.0" alias Nostrum.Struct.Channel alias Nostrum.Struct.Guild.Member alias Nostrum.Struct.Guild.Role alias Nostrum.Struct.Message alias Nostrum.Struct.User alias Nostrum...
28.141176
83
0.656355
acf0ea611005035957f952a38fd04f8135c48bcc
3,488
exs
Elixir
test/mix/tasks/absinthe.schema.json_test.exs
fahchen/absinthe
e869dbb1864fd5d8cba463d3c6cae8ba8e4f1ff7
[ "MIT" ]
null
null
null
test/mix/tasks/absinthe.schema.json_test.exs
fahchen/absinthe
e869dbb1864fd5d8cba463d3c6cae8ba8e4f1ff7
[ "MIT" ]
null
null
null
test/mix/tasks/absinthe.schema.json_test.exs
fahchen/absinthe
e869dbb1864fd5d8cba463d3c6cae8ba8e4f1ff7
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Absinthe.Schema.JsonTest do use Absinthe.Case, async: true alias Mix.Tasks.Absinthe.Schema.Json, as: Task defmodule TestSchema do use Absinthe.Schema query do field :item, :item end object :item do description "A Basic Type" field :id, :id field :nam...
25.647059
97
0.637901
acf10c0d14e9914e47b08674b3fa72958387e588
220
exs
Elixir
elixir/priv/repo/migrations/20210126040807_add_company_to_user.exs
CallMeHK/web-homework
30f41f193b99706fd7c7d9cc3f6db4941bad86b5
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210126040807_add_company_to_user.exs
CallMeHK/web-homework
30f41f193b99706fd7c7d9cc3f6db4941bad86b5
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210126040807_add_company_to_user.exs
CallMeHK/web-homework
30f41f193b99706fd7c7d9cc3f6db4941bad86b5
[ "MIT" ]
null
null
null
defmodule Homework.Repo.Migrations.AddCompanyToUser do use Ecto.Migration def change do alter table("users") do add(:company_id, references(:companies, type: :uuid, on_delete: :nothing)) end end end
22
80
0.718182
acf12dfb4b50307cfb061fbb46b85fe0ba2e48b1
2,719
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/budget_summary.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/budget_summary.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/budget_summary.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.084746
238
0.72637
acf13add8881273c95cc9901a1271538d103d113
220
exs
Elixir
priv/repo/migrations/20180929092259_allow_null_father_id.exs
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
2
2018-09-03T05:42:54.000Z
2018-09-18T05:48:17.000Z
priv/repo/migrations/20180929092259_allow_null_father_id.exs
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
2
2018-09-17T16:06:06.000Z
2018-09-24T18:06:19.000Z
priv/repo/migrations/20180929092259_allow_null_father_id.exs
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
1
2018-09-17T14:57:20.000Z
2018-09-17T14:57:20.000Z
defmodule GORproject.Repo.Migrations.AllowNullFatherId do use Ecto.Migration def change do alter table(:rooms) do remove(:father_id) add(:father_id, references(:rooms), null: true) end end end
20
57
0.704545
acf15fffc7af305930ca2540640e9908e0ccf324
1,185
ex
Elixir
test/struct_modules/lib/recipient.ex
zetaron/Domo
2159163378f1ad8dea5cbc31dea2ed827c9024ab
[ "MIT" ]
null
null
null
test/struct_modules/lib/recipient.ex
zetaron/Domo
2159163378f1ad8dea5cbc31dea2ed827c9024ab
[ "MIT" ]
null
null
null
test/struct_modules/lib/recipient.ex
zetaron/Domo
2159163378f1ad8dea5cbc31dea2ed827c9024ab
[ "MIT" ]
null
null
null
# credo:disable-for-this-file defmodule Recipient do use Domo, skip_defaults: true @enforce_keys [:title, :name] defstruct [:title, :name, age: 0] @type title :: :mr | :ms | :dr @type name :: String.t() @type age :: integer @type t :: %__MODULE__{title: title(), name: name(), age: age()} end defmodule ...
25.212766
72
0.661603
acf16bec91592cc54e3e85dc3677d299e2ab4665
3,175
ex
Elixir
lib/response.ex
easink/heos_ex
7a897d253548528e7ab2dcadfdcb6c1cbb27179f
[ "Apache-2.0" ]
null
null
null
lib/response.ex
easink/heos_ex
7a897d253548528e7ab2dcadfdcb6c1cbb27179f
[ "Apache-2.0" ]
null
null
null
lib/response.ex
easink/heos_ex
7a897d253548528e7ab2dcadfdcb6c1cbb27179f
[ "Apache-2.0" ]
null
null
null
defmodule Heos.Response do @moduledoc """ Heos.Response handles messages... =) """ require Logger defstruct [:command, :message, :payload] @doc """ parse(data) """ @spec parse(String.t()) :: {:ok, %Heos.Response{}} | {:error, term} def parse(data) do data |> Jason.decode!() |> parse_re...
23.87218
101
0.622677
acf17e6d4b790b043143c03a8f28839cb3f8dc8b
354
exs
Elixir
elixir/word-count/word_count.exs
codebay/exercism
f6ed549d473892f2c21f44a8f171480494eb59ad
[ "Apache-2.0" ]
null
null
null
elixir/word-count/word_count.exs
codebay/exercism
f6ed549d473892f2c21f44a8f171480494eb59ad
[ "Apache-2.0" ]
null
null
null
elixir/word-count/word_count.exs
codebay/exercism
f6ed549d473892f2c21f44a8f171480494eb59ad
[ "Apache-2.0" ]
null
null
null
defmodule Words do @doc """ Count the number of words in the sentence. Words are compared case-insensitively. """ @spec count(String.t()) :: map def count(sentence) do sentence |> String.downcase |> String.split(~r/[^[:alpha:][:digit:]-]+/u, trim: true) |> Enum.reduce(%{}, &Map.update(&2, &...
23.6
64
0.59887
acf1ead9d4987dace9cad2f64573f2a1876bcd8b
355
ex
Elixir
test/support/factory.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
test/support/factory.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
test/support/factory.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule Club.Factory do use ExMachina.Ecto, repo: Club.ReadRepo # Brands domain use Club.Factories.Brands use Club.Factories.Devices use Club.Factories.SurfaceTypes use Club.Factories.Colors use Club.Factories.Accounts def metadata_factory do %{ user_uuid: UUID.uuid4(), user_name: Fa...
19.722222
41
0.715493
acf21a0f0c33365d2d9efaa124ee6edd2c1366a9
415
ex
Elixir
lib/ex_syslog/exsyslog_monitor.ex
smpallen99/exsyslog
64c7933d551f6a17cf042443f3ec79898aec59f2
[ "MIT" ]
2
2015-01-14T14:01:03.000Z
2016-09-13T08:04:33.000Z
lib/ex_syslog/exsyslog_monitor.ex
smpallen99/exsyslog
64c7933d551f6a17cf042443f3ec79898aec59f2
[ "MIT" ]
null
null
null
lib/ex_syslog/exsyslog_monitor.ex
smpallen99/exsyslog
64c7933d551f6a17cf042443f3ec79898aec59f2
[ "MIT" ]
null
null
null
defmodule ExSyslog.Monitor do use ExActor.GenServer definit do :gen_event.add_sup_handler :error_logger, ExSyslog.EventHandler, [] initial_state [] end def handle_info({:gen_event_EXIT, ExSyslog.EventHandler, reason} = msg, state) do :io.format('~p~n', [msg]) {:stop, reason, state} end d...
21.842105
83
0.681928
acf25bb4ce7593f966238ba1f4e40f000d143664
951
ex
Elixir
lib/jan.ex
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
54
2016-02-07T21:44:14.000Z
2022-01-06T04:10:59.000Z
lib/jan.ex
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
1
2016-02-13T15:52:55.000Z
2016-02-13T15:52:55.000Z
lib/jan.ex
brianstorti/jan
e3e7172c672705b7d4e3912e16d5a69496a79e4a
[ "Apache-2.0" ]
4
2016-02-13T11:54:00.000Z
2022-01-06T04:19:26.000Z
defmodule Jan do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Start the endpoint when the application starts supervisor(Jan.Endpoint,...
29.71875
67
0.697161
acf2664de6a8bb7eca289da0bfc6d4c87c33ae2d
1,123
exs
Elixir
config/config.exs
izelnakri/fixturastic
43980c233fd89d132d3b79ebd3f5d1d544849397
[ "MIT" ]
null
null
null
config/config.exs
izelnakri/fixturastic
43980c233fd89d132d3b79ebd3f5d1d544849397
[ "MIT" ]
null
null
null
config/config.exs
izelnakri/fixturastic
43980c233fd89d132d3b79ebd3f5d1d544849397
[ "MIT" ]
null
null
null
# 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.225806
73
0.752449
acf2a38ab1caa41c2eea0b7fc4a197a04cd19882
764
exs
Elixir
test/estated/property/structure/other_improvement_test.exs
jdav-dev/estated
a8476b803eff425b5b73517e7ea180bb7f8cc30b
[ "Apache-2.0" ]
null
null
null
test/estated/property/structure/other_improvement_test.exs
jdav-dev/estated
a8476b803eff425b5b73517e7ea180bb7f8cc30b
[ "Apache-2.0" ]
null
null
null
test/estated/property/structure/other_improvement_test.exs
jdav-dev/estated
a8476b803eff425b5b73517e7ea180bb7f8cc30b
[ "Apache-2.0" ]
null
null
null
defmodule Estated.Property.Structure.OtherImprovementTest do use ExUnit.Case, async: true alias Estated.Property.Structure.OtherImprovement doctest OtherImprovement describe "cast_list/1" do @tag :unit test "casts a list of maps as a list of OtherImprovements" do other_improvements = [ ...
23.151515
65
0.57199
acf2a636f5941a13b60bec69694d3afc91ff8edc
1,533
ex
Elixir
lib/interval.ex
brpandey/interval_tree
dc986204dd4868714b7a82e5527c36ffb1c8504d
[ "MIT" ]
10
2017-04-01T21:03:15.000Z
2020-06-11T00:55:59.000Z
lib/interval.ex
brpandey/interval_tree
dc986204dd4868714b7a82e5527c36ffb1c8504d
[ "MIT" ]
1
2018-01-30T17:47:15.000Z
2018-02-03T04:58:24.000Z
lib/interval.ex
brpandey/interval_tree
dc986204dd4868714b7a82e5527c36ffb1c8504d
[ "MIT" ]
1
2018-08-15T23:01:59.000Z
2018-08-15T23:01:59.000Z
defmodule Interval do defstruct start: -1, finish: -1 @doc "Create new interval given start time and finish" def new({start, finish}) when is_integer(start) and is_integer(finish) and start <= finish do %Interval{start: start, finish: finish} end @doc """ Handles all the interval overlap cases f...
25.55
85
0.561644
acf2aa465695ca477b57434bbed08956a5bd1aa7
3,728
ex
Elixir
lib/terp/module_system.ex
tpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
23
2017-09-22T07:13:34.000Z
2021-06-08T14:50:06.000Z
lib/terp/module_system.ex
smpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
5
2017-08-26T18:40:54.000Z
2017-09-28T00:24:50.000Z
lib/terp/module_system.ex
smpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
4
2017-09-27T23:14:59.000Z
2021-06-08T14:50:12.000Z
defmodule Terp.ModuleSystem do @moduledoc """ Functionality supporting a basic module system, e.g. export functions from a module and import them in another. """ alias Terp.AST alias Terp.Error alias Terp.Parser alias Terp.TypeSystem alias RoseTree.Zipper @doc """ Imports the definitions that are...
34.841121
91
0.659335
acf2d8f2adf9968eff09592d13914f168814655e
23,478
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/subnetworks.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/subnetworks.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/subnetworks.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
65.949438
1,327
0.721271
acf2f06c87ad21b419a67c5194566026616bec61
2,015
ex
Elixir
clients/tag_manager/lib/google_api/tag_manager/v2/model/merge_conflict.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/merge_conflict.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/merge_conflict.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.509804
258
0.765261
acf30dcad0bd5dfb0ea3b27d97863e776c2018a7
828
ex
Elixir
lib/transmission/options.ex
SparkPost/elixir-sparkpost
cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5
[ "Apache-2.0" ]
47
2016-01-30T07:24:10.000Z
2021-05-29T13:47:49.000Z
lib/transmission/options.ex
SparkPost/elixir-sparkpost
cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5
[ "Apache-2.0" ]
48
2016-01-21T22:11:14.000Z
2020-10-12T06:13:50.000Z
lib/transmission/options.ex
SparkPost/elixir-sparkpost
cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5
[ "Apache-2.0" ]
12
2016-02-27T23:04:13.000Z
2018-05-03T15:34:04.000Z
defmodule SparkPost.Transmission.Options do @moduledoc """ Transmission options. Designed for use in `%SparkPost.Transmission{options: ...}` ## Fields - start_time: schedule transmission for a future time - open_tracking: enable 'email open' tracking? - click_tracking: enable 'link click' tracking? ...
30.666667
85
0.718599
acf376b58e0fd45512f71b49e989424c4e288b93
1,456
exs
Elixir
test/parser/fault_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
test/parser/fault_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
test/parser/fault_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Parser.FaultTest do use ExUnit.Case, async: true @sample """ <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSc...
41.6
275
0.616758
acf37d0b1e466f1a0d09731155a22e7079cc3f52
469
ex
Elixir
pangram/lib/pangram.ex
quatauta/exercism-elixir
3635610f25111f2afd3bb748e86f9b478ec239b0
[ "MIT" ]
1
2022-01-23T20:34:09.000Z
2022-01-23T20:34:09.000Z
pangram/lib/pangram.ex
quatauta/exercism-elixir
3635610f25111f2afd3bb748e86f9b478ec239b0
[ "MIT" ]
null
null
null
pangram/lib/pangram.ex
quatauta/exercism-elixir
3635610f25111f2afd3bb748e86f9b478ec239b0
[ "MIT" ]
null
null
null
defmodule Pangram do @moduledoc false @doc """ Determines if a word or sentence is a pangram. A pangram is a sentence using every letter of the alphabet at least once. Returns a boolean. ## Examples iex> Pangram.pangram?("the quick brown fox jumps over the lazy dog") true """ @spec p...
21.318182
79
0.673774
acf3b940e18ab50bba7da6a441b2596524a5e179
46,720
exs
Elixir
lib/elixir/test/elixir/typespec_test.exs
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
1
2019-05-07T12:01:44.000Z
2019-05-07T12:01:44.000Z
lib/elixir/test/elixir/typespec_test.exs
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/typespec_test.exs
ludios/elixir
1a4018adb9863c1265b306028a6b5d1146479266
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) # Holds tests for both Kernel.Typespec and Code.Typespec defmodule TypespecTest do use ExUnit.Case, async: true alias TypespecTest.TypespecSample defstruct [:hello] defmacrop test_module(do: block) do quote do {:module, _, bytecode, _} = defmodu...
33.732852
110
0.536194
acf3c0ce4535ccd80765cb3f2663bab4d532908e
1,333
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/destroy_crypto_key_version_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/destroy_crypto_key_version_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/destroy_crypto_key_version_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.738095
90
0.775694
acf3d4e3512cd89eecce9c4c5f0a2a54d3da8cf6
6,148
exs
Elixir
test/absinthe/schema/notation/import_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
2
2021-04-22T23:45:04.000Z
2021-05-07T01:01:15.000Z
test/absinthe/schema/notation/import_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
1
2020-04-07T23:46:38.000Z
2020-04-07T23:46:38.000Z
test/absinthe/schema/notation/import_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
null
null
null
defmodule Absinthe.Schema.Notation.ImportTest do use Absinthe.Case, async: true defp field_list(module, name) do module.__absinthe_type__(name).fields |> Enum.filter(&(!introspection?(&1))) |> Keyword.keys() |> Enum.sort() end defp introspection?({_, field}) do Absinthe.Type.introspection?...
22.686347
145
0.51838