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
c8d264b83550c0c0bab253dda3fa9e2b98004ff2
1,221
ex
Elixir
joshcrews+elixir/apps/cqrs_bank_web/lib/cqrs_bank_web/endpoint.ex
NashFP/cqrs-bank
6071db4a0c5ec681554aea8bebe783310c5d1525
[ "MIT" ]
7
2017-05-17T00:36:50.000Z
2021-11-02T03:02:03.000Z
nashelixir+elixir/apps/cqrs_bank_web/lib/cqrs_bank_web/endpoint.ex
NashFP/cqrs-bank
6071db4a0c5ec681554aea8bebe783310c5d1525
[ "MIT" ]
3
2017-05-17T00:31:28.000Z
2017-05-18T04:50:37.000Z
joshcrews+elixir/apps/cqrs_bank_web/lib/cqrs_bank_web/endpoint.ex
NashFP/cqrs-bank
6071db4a0c5ec681554aea8bebe783310c5d1525
[ "MIT" ]
5
2017-05-16T23:13:19.000Z
2021-12-02T06:45:25.000Z
defmodule CqrsBankWeb.Endpoint do use Phoenix.Endpoint, otp_app: :cqrs_bank_web socket "/socket", CqrsBankWeb.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug ...
28.395349
69
0.720721
c8d289ddc72c715a58dd26e65c5766af64cbff0a
12,286
ex
Elixir
lib/graphmath/Vec3.ex
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
70
2015-01-07T10:13:38.000Z
2021-09-29T05:06:14.000Z
lib/graphmath/Vec3.ex
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
28
2015-01-22T22:38:24.000Z
2021-06-24T06:15:38.000Z
lib/graphmath/Vec3.ex
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
17
2015-01-22T18:35:41.000Z
2020-12-24T22:42:40.000Z
defmodule Graphmath.Vec3 do @moduledoc """ This is the 3D mathematics library for graphmath. This submodule handles 3D vectors using tuples of floats. """ @type vec3 :: {float, float, float} @doc """ `create()` creates a zeroed `vec3`. It takes no arguments. It returns a `vec3` of the form `{ 0.0...
28.840376
207
0.588556
c8d2b80c51436f5d030cc91b51c75f28a75fad27
1,445
exs
Elixir
mix.exs
reisub/mojito
c7cdbe7c676299710241f37acb9ea8d101faceae
[ "MIT" ]
null
null
null
mix.exs
reisub/mojito
c7cdbe7c676299710241f37acb9ea8d101faceae
[ "MIT" ]
null
null
null
mix.exs
reisub/mojito
c7cdbe7c676299710241f37acb9ea8d101faceae
[ "MIT" ]
null
null
null
defmodule Mojito.MixProject do use Mix.Project @version "0.7.7" @repo_url "https://github.com/appcues/mojito" def project do [ app: :mojito, description: "Fast, easy to use HTTP client based on Mint", version: @version, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()...
22.936508
65
0.513495
c8d35c99078969452f71d8f4d55546fe7aaed947
2,685
ex
Elixir
lib/mix/tasks/firmware.ex
tverlaan/nerves
515b9b7730a1b2934ac051b0e7075cd7987b6c4a
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/firmware.ex
tverlaan/nerves
515b9b7730a1b2934ac051b0e7075cd7987b6c4a
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/firmware.ex
tverlaan/nerves
515b9b7730a1b2934ac051b0e7075cd7987b6c4a
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Firmware do use Mix.Task import Mix.Nerves.Utils @moduledoc """ Build a firmware image for the selected target platform. This task builds the project, combines the generated OTP release with a Nerves system image, and creates a `.fw` file that may be written to an SDCard or sent to a...
25.817308
82
0.625326
c8d388930cd3f8ce5b499525907adf8d4af0ff25
882
ex
Elixir
clients/composer/lib/google_api/composer/v1/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/composer/lib/google_api/composer/v1/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.666667
74
0.758503
c8d38f85535a0e6ba42acee69fbf2a89909841af
1,364
ex
Elixir
lib/vega_web/live/list_component.ex
Fudoshiki/vega
0577024afc734933048645976705784512fbc1f4
[ "MIT" ]
4
2020-03-22T22:12:29.000Z
2020-07-01T22:32:01.000Z
lib/vega_web/live/list_component.ex
Fudoshiki/vega
0577024afc734933048645976705784512fbc1f4
[ "MIT" ]
3
2021-03-10T11:53:41.000Z
2021-10-17T11:18:54.000Z
lib/vega_web/live/list_component.ex
Fudoshiki/vega
0577024afc734933048645976705784512fbc1f4
[ "MIT" ]
3
2020-03-30T19:03:23.000Z
2022-01-17T20:21:42.000Z
defmodule Vega.ListComponent do @moduledoc false use Phoenix.LiveComponent alias Vega.Board alias Phoenix.LiveView.Socket def mount(socket) do {:ok, assign(socket, add_card: false)} end def handle_event("add-card", _params, socket) do send(self(), :close_all) {:noreply, assign(socket, add_...
29.021277
160
0.615836
c8d3fe2209599dbe862d54de4b735cc6ed7abe11
618
ex
Elixir
lib/oli/delivery/attempts/page_lifecycle/common.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/delivery/attempts/page_lifecycle/common.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/delivery/attempts/page_lifecycle/common.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Delivery.Attempts.PageLifecycle.Common do alias Oli.Delivery.Attempts.PageLifecycle.{ ReviewContext, Hierarchy, AttemptState } @doc """ Common implementation for reviewing an attempt. """ def review(%ReviewContext{ resource_attempt: resource_attempt }) do status ...
22.071429
77
0.66343
c8d41239ddba41001b7f887e7b11481e5d29f483
695
exs
Elixir
process/pmap.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
4
2016-09-22T03:47:56.000Z
2017-02-02T17:42:57.000Z
process/pmap.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
process/pmap.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
defmodule Parallel do def pmap(collection, fun) do me = self # this is because self word would take a nother meaning inside the spawned function collection |> Enum.map(fn (elem) -> spawn_link fn -> (send me, {self, fun.(elem) }) end end) |> Enum.map(fn (pid) -> receive do { ^pid, res...
27.8
97
0.602878
c8d420ddbec673dc1739eb791f942d014229e502
2,578
exs
Elixir
test/lib/code_corps/model/donation_goal_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps/model/donation_goal_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps/model/donation_goal_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.DonationGoalTest do @moduledoc false use CodeCorps.ModelCase alias CodeCorps.DonationGoal describe "%create_changeset/2" do test "requires amount, description and project_id" do changeset = DonationGoal.create_changeset(%DonationGoal{}, %{}) refute changeset.valid? ...
32.632911
82
0.702483
c8d42194cf5bb55aa68b78123224362bdbf2c805
6,128
exs
Elixir
components/notifications-service/server/.credo.exs
mmci2468/automate
dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf
[ "Apache-2.0" ]
191
2019-04-16T15:04:53.000Z
2022-03-21T14:10:44.000Z
components/notifications-service/server/.credo.exs
mmci2468/automate
dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf
[ "Apache-2.0" ]
4,882
2019-04-16T16:16:01.000Z
2022-03-31T15:39:35.000Z
components/notifications-service/server/.credo.exs
mmci2468/automate
dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf
[ "Apache-2.0" ]
114
2019-04-16T15:21:27.000Z
2022-03-26T09:50:08.000Z
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
40.315789
96
0.656658
c8d45f3f09ec48332e622641f82b2fcd5d34e894
1,729
ex
Elixir
lib/data_tracer.ex
axelson/data_tracer
16dd4f646e3e314f7dd96491cc848e5bfd62be28
[ "Apache-2.0" ]
3
2019-04-22T17:26:47.000Z
2019-11-03T16:29:48.000Z
lib/data_tracer.ex
axelson/data_tracer
16dd4f646e3e314f7dd96491cc848e5bfd62be28
[ "Apache-2.0" ]
null
null
null
lib/data_tracer.ex
axelson/data_tracer
16dd4f646e3e314f7dd96491cc848e5bfd62be28
[ "Apache-2.0" ]
null
null
null
defmodule DataTracer do @moduledoc """ Facilitates debugging by holding data traces of interesting data. Is a GenServer so it can own an ets table to store the data in. """ @table_doc "`:table` - The ETS table to read from (optional, only needed if the table name was customized when the DataTracer was star...
24.7
101
0.692308
c8d4757c051c83f5403d90bdeb29836eb7491393
8,620
ex
Elixir
lib/swoosh/adapters/amazon_ses.ex
craigp/swoosh
83364b3e9029988e585d4cc0c4d5ec1ccfb4930a
[ "MIT" ]
1
2020-12-22T19:28:30.000Z
2020-12-22T19:28:30.000Z
lib/swoosh/adapters/amazon_ses.ex
craigp/swoosh
83364b3e9029988e585d4cc0c4d5ec1ccfb4930a
[ "MIT" ]
21
2021-03-08T10:04:20.000Z
2022-03-23T10:20:17.000Z
lib/swoosh/adapters/amazon_ses.ex
nash-io/swoosh
05c8676890da07403225c302f9a069fc7d221330
[ "MIT" ]
null
null
null
defmodule Swoosh.Adapters.AmazonSES do @moduledoc ~S""" An adapter that sends email using the Amazon Simple Email Service Query API. This email adapter makes use of the Amazon SES SendRawEmail action and generates a SMTP style message containing the information to be emailed. This allows for greater more cus...
29.220339
115
0.671346
c8d48efeeceedb22b3ee86acf33cda4dab2c65f8
3,713
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment.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...
46.4125
499
0.743065
c8d4a9af4c72c9b6ddf24bbab889364d87cfce63
15,193
exs
Elixir
test/phoenix/integration/long_poll_channels_test.exs
G3z/phoenix
f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded
[ "MIT" ]
2
2016-11-01T15:01:48.000Z
2016-11-01T15:07:20.000Z
test/phoenix/integration/long_poll_channels_test.exs
G3z/phoenix
f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded
[ "MIT" ]
null
null
null
test/phoenix/integration/long_poll_channels_test.exs
G3z/phoenix
f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded
[ "MIT" ]
null
null
null
Code.require_file "../../support/http_client.exs", __DIR__ defmodule Phoenix.Integration.LongPollChannelsTest do use ExUnit.Case import ExUnit.CaptureLog alias Phoenix.Integration.HTTPClient alias Phoenix.Socket.{Broadcast, Message, V1, V2} alias __MODULE__.Endpoint @moduletag :capture_log @port 5808 ...
30.692929
126
0.566906
c8d4dfd494b2c0264656167b679863a4618bc008
1,555
ex
Elixir
lib/nerves/system/defconfig/defconfig.ex
bcdevices/nerves_system_linter
b062602e77edf7911262e695c42c2a28362e5e3e
[ "Apache-2.0" ]
4
2017-10-20T04:06:33.000Z
2019-01-30T10:34:42.000Z
lib/nerves/system/defconfig/defconfig.ex
bcdevices/nerves_system_linter
b062602e77edf7911262e695c42c2a28362e5e3e
[ "Apache-2.0" ]
7
2017-10-24T12:40:20.000Z
2018-01-25T16:06:17.000Z
lib/nerves/system/defconfig/defconfig.ex
bcdevices/nerves_system_linter
b062602e77edf7911262e695c42c2a28362e5e3e
[ "Apache-2.0" ]
2
2017-10-19T00:36:12.000Z
2018-08-23T23:12:18.000Z
defmodule Nerves.System.Defconfig do @moduledoc """ Elixir representation of a defconfig. Currently only supports buildroot defconfigs and not Linux Kernel configs. """ @typedoc "Name of a config." @type config_name :: binary @typedoc "Value inside a defconfig." @type package_value :: boolean | binary...
29.903846
85
0.625723
c8d4e5c6798fcad71893a66e2013b4bdf566ec20
185
exs
Elixir
priv/repo/migrations/20210927215204_add_owner_to_hotspots_table.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
priv/repo/migrations/20210927215204_add_owner_to_hotspots_table.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
priv/repo/migrations/20210927215204_add_owner_to_hotspots_table.exs
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule Console.Repo.Migrations.AddOwnerToHotspotsTable do use Ecto.Migration def change do alter table(:hotspots) do add :owner, :string, null: true end end end
18.5
60
0.718919
c8d51c8d2dff5bd24604b573811bc09dd51c3199
242
ex
Elixir
lib/shared_settings/utilities/timestamp.ex
kieraneglin/shared-settings-ex
0b2f6e7c7b534ae58158fca01e61e7bd85a4147f
[ "Unlicense" ]
2
2020-10-28T14:15:30.000Z
2020-12-29T13:52:27.000Z
lib/shared_settings/utilities/timestamp.ex
kieraneglin/shared-settings-ex
0b2f6e7c7b534ae58158fca01e61e7bd85a4147f
[ "Unlicense" ]
null
null
null
lib/shared_settings/utilities/timestamp.ex
kieraneglin/shared-settings-ex
0b2f6e7c7b534ae58158fca01e61e7bd85a4147f
[ "Unlicense" ]
null
null
null
defmodule SharedSettings.Utilities.Timestamp do @moduledoc false alias __MODULE__ def now do DateTime.utc_now() |> DateTime.to_unix(:second) end def expired?(timestamp, ttl) do timestamp + ttl < Timestamp.now() end end
17.285714
51
0.714876
c8d51cf47ec311b7c3119c98b0bf222f1bbf1e95
1,458
exs
Elixir
test/behaviour/handle_continue_test.exs
ityonemo/ExDhcp
9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b
[ "MIT" ]
null
null
null
test/behaviour/handle_continue_test.exs
ityonemo/ExDhcp
9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b
[ "MIT" ]
16
2019-12-16T04:56:50.000Z
2020-03-11T20:18:56.000Z
test/behaviour/handle_continue_test.exs
ityonemo/ex_dhcp
9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b
[ "MIT" ]
1
2019-12-13T19:04:50.000Z
2019-12-13T19:04:50.000Z
defmodule DhcpTest.Behaviour.HandleContinueTest do # # tests that the handle_continue behaviour works as intended. # use ExUnit.Case, async: true @moduletag [handle_continue: true, behaviour: true] describe "when overriding handle_continue" do defmodule BasicCont do alias DhcpTest.Behaviour.Com...
24.3
64
0.639232
c8d530003092a712c0aeca0fd9a689927da7d989
3,466
exs
Elixir
config/config.exs
Born2Crawl/teiserver
b89601aea1a338cd41b4eabc4092207cb50110f0
[ "MIT" ]
null
null
null
config/config.exs
Born2Crawl/teiserver
b89601aea1a338cd41b4eabc4092207cb50110f0
[ "MIT" ]
null
null
null
config/config.exs
Born2Crawl/teiserver
b89601aea1a338cd41b4eabc4092207cb50110f0
[ "MIT" ]
null
null
null
use Mix.Config config :central, Central, site_title: "BAR - Teiserver", site_description: "", site_icon: "fad fa-robot", enable_blog: true, blog_title: "BAR Blog", # This is used for the coverage tool file_path: "~/programming/elixir/barserver/", credit: "Teifion Jordan" # Default configs config :cent...
28.644628
89
0.70225
c8d547af4ae6d276204d292fd095419e3c68dee8
46
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/CharListLine.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/CharListLine.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/CharListLine.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
'One' && 'Two' 'One' &&& 'Two' 'One' and 'Two'
15.333333
15
0.456522
c8d55f8c8bd90da80d972a4b5aed8ed0b9770b4c
351
ex
Elixir
lib/application.ex
bottlenecked/presence_test
0844193d0203997a15cd8c4360e7f4b945c7b94a
[ "Apache-2.0" ]
null
null
null
lib/application.ex
bottlenecked/presence_test
0844193d0203997a15cd8c4360e7f4b945c7b94a
[ "Apache-2.0" ]
null
null
null
lib/application.ex
bottlenecked/presence_test
0844193d0203997a15cd8c4360e7f4b945c7b94a
[ "Apache-2.0" ]
null
null
null
defmodule PresenceTest.Application do use Application def start(_, _) do import Supervisor.Spec, warn: false [ supervisor(Phoenix.PubSub.PG2, [PresenceTest.PubSub, []]), PresenceTest.Presence, PresenceTest.NodeManager ] |> Supervisor.start_link([strategy: :one_for_one, name: Prese...
25.071429
85
0.703704
c8d572bedfa1edad53de0b06a799ec817779b4fe
7,743
exs
Elixir
bench/vs_deque.exs
LaudateCorpus1/limited_queue
68d84351a7ae724995038a0485a3fee50dce8539
[ "MIT" ]
2
2021-12-05T20:56:06.000Z
2022-01-25T15:03:24.000Z
bench/vs_deque.exs
LaudateCorpus1/limited_queue
68d84351a7ae724995038a0485a3fee50dce8539
[ "MIT" ]
null
null
null
bench/vs_deque.exs
LaudateCorpus1/limited_queue
68d84351a7ae724995038a0485a3fee50dce8539
[ "MIT" ]
3
2022-01-25T14:16:18.000Z
2022-03-17T09:40:09.000Z
defmodule BenchQueueVsDeque do alias LimitedQueue alias Deque def make_queues(capacity) do queue_drop_old = LimitedQueue.new(capacity, :drop_oldest) queue_drop_new = LimitedQueue.new(capacity, :drop_newest) deque = Deque.new(capacity) {queue_drop_old, queue_drop_new, deque} end def make_full...
33.665217
94
0.650652
c8d589f1374c1d42b84d5e64339ebe077d001609
764
exs
Elixir
test/html_error_test.exs
praliedutzel/formulator
9eb5708c2e9ebafcf6df795084d849a84c3b535c
[ "MIT" ]
null
null
null
test/html_error_test.exs
praliedutzel/formulator
9eb5708c2e9ebafcf6df795084d849a84c3b535c
[ "MIT" ]
null
null
null
test/html_error_test.exs
praliedutzel/formulator
9eb5708c2e9ebafcf6df795084d849a84c3b535c
[ "MIT" ]
null
null
null
defmodule Formulator.HtmlErrorTest do use ExUnit.Case alias Phoenix.HTML.Form alias Formulator.HtmlError doctest Formulator.HtmlError describe "html_error" do test "when there are no errors it returns an empty struct" do form = %Form{errors: []} assert HtmlError.html_error(form, :name) == %H...
28.296296
101
0.664921
c8d590a1386964c501141847d8f04a6d50f81f5d
2,309
ex
Elixir
clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_image_redaction_config.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_image_redaction_config.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_image_redaction_config.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...
43.566038
310
0.776527
c8d59609603b39d29fe887f4894bb01b66fc5bfb
1,258
exs
Elixir
apps/kv/config/config.exs
tegon/kv.ex
2de981b51f5ca7ef32a67743eb4344460677cbe6
[ "MIT" ]
null
null
null
apps/kv/config/config.exs
tegon/kv.ex
2de981b51f5ca7ef32a67743eb4344460677cbe6
[ "MIT" ]
null
null
null
apps/kv/config/config.exs
tegon/kv.ex
2de981b51f5ca7ef32a67743eb4344460677cbe6
[ "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...
34
73
0.732114
c8d5f9b28758d4bd21b32011565d2d164dbbe1db
1,571
exs
Elixir
config/config.exs
mtdurling/guardian_trackable
9f9bac8ff389a90738b50a135a78d96d9deb6281
[ "MIT" ]
21
2017-11-06T11:20:24.000Z
2021-10-03T11:44:58.000Z
config/config.exs
mtdurling/guardian_trackable
9f9bac8ff389a90738b50a135a78d96d9deb6281
[ "MIT" ]
4
2018-01-10T02:32:15.000Z
2019-04-25T17:33:24.000Z
config/config.exs
mtdurling/guardian_trackable
9f9bac8ff389a90738b50a135a78d96d9deb6281
[ "MIT" ]
4
2018-01-12T01:16:37.000Z
2020-04-08T14:23:24.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :guardian_trackable, GuardianTrackable.Dummy.Guardian, issuer: "guardian_trackable", secret_key: "super duper secret key" config :guardian_trackable, GuardianTrackable.Du...
34.152174
73
0.763845
c8d6075e44140afe41625c024e2a815ad4525b6a
5,433
ex
Elixir
lib/exq/worker/server.ex
instinctscience/exq
6dac201d0b59a16f30ec4d6d24514689ef7dd9b0
[ "Apache-2.0" ]
null
null
null
lib/exq/worker/server.ex
instinctscience/exq
6dac201d0b59a16f30ec4d6d24514689ef7dd9b0
[ "Apache-2.0" ]
null
null
null
lib/exq/worker/server.ex
instinctscience/exq
6dac201d0b59a16f30ec4d6d24514689ef7dd9b0
[ "Apache-2.0" ]
null
null
null
defmodule Exq.Worker.Server do @moduledoc """ Worker process is responsible for the parsing and execution of a Job. It then broadcasts results to Stats / Manager. Currently uses the `terminate` callback to track job success/failure. ## Initialization: * `job_serialized` - Full JSON payload of the Job. ...
26.502439
100
0.607767
c8d610eb81e2355efd2478b4e3c370593e10c82d
2,123
ex
Elixir
lib/slime/parser/text_block.ex
thepeoplesbourgeois/slime
55c4d738632ed6540a0a03e0a4022b02e398c2d9
[ "MIT" ]
312
2015-12-28T05:25:47.000Z
2022-02-16T05:18:16.000Z
lib/slime/parser/text_block.ex
thepeoplesbourgeois/slime
55c4d738632ed6540a0a03e0a4022b02e398c2d9
[ "MIT" ]
105
2015-12-27T21:20:58.000Z
2022-02-24T05:23:38.000Z
lib/slime/parser/text_block.ex
thepeoplesbourgeois/slime
55c4d738632ed6540a0a03e0a4022b02e398c2d9
[ "MIT" ]
45
2016-01-12T04:02:01.000Z
2021-09-14T16:19:18.000Z
defmodule Slime.Parser.TextBlock do @moduledoc " Utilities for parsing text blocks. " @doc """ Given a text block and its declaration indentation level (see below), produces a string (or a dynamic EEx tuple) that can be inserted into the tree. nested | Text block that spans over multiple line...
23.076087
89
0.609515
c8d61808b4f040158100bc258e3d5ea2172bde02
2,250
ex
Elixir
lib/mix/tasks/ecto.migrate.ex
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/ecto.migrate.ex
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/ecto.migrate.ex
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Ecto.Migrate do use Mix.Task import Mix.Ecto @shortdoc "Runs the repository migrations" @recursive true @moduledoc """ Runs the pending migrations for the given repository. By default, migrations are expected at "priv/YOUR_REPO/migrations" directory of the current application but ...
29.605263
98
0.649333
c8d62850538db5c3b3b778acd44785d8cee5330d
1,471
ex
Elixir
lib/myapp_web/views/error_helpers.ex
p-jaya/elixir-docker
08c2b401888e6154abb8a96afc02f8ae25ddb24d
[ "MIT" ]
null
null
null
lib/myapp_web/views/error_helpers.ex
p-jaya/elixir-docker
08c2b401888e6154abb8a96afc02f8ae25ddb24d
[ "MIT" ]
null
null
null
lib/myapp_web/views/error_helpers.ex
p-jaya/elixir-docker
08c2b401888e6154abb8a96afc02f8ae25ddb24d
[ "MIT" ]
null
null
null
defmodule MyappWeb.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 Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:s...
32.688889
74
0.668933
c8d62cb9adbac2003aba0c5afe595d0013284354
3,795
ex
Elixir
lib/loppers.ex
narrowtux/loppers
1dba8cece046e7ac1883bec8c663ce46e68a86d4
[ "MIT" ]
4
2018-12-07T10:52:37.000Z
2021-01-22T21:31:10.000Z
lib/loppers.ex
narrowtux/loppers
1dba8cece046e7ac1883bec8c663ce46e68a86d4
[ "MIT" ]
11
2017-11-29T12:01:05.000Z
2020-03-04T09:42:32.000Z
lib/loppers.ex
narrowtux/loppers
1dba8cece046e7ac1883bec8c663ce46e68a86d4
[ "MIT" ]
2
2017-11-29T12:00:37.000Z
2019-04-16T12:43:04.000Z
defmodule Loppers do alias Loppers.{Walk, Validate, Match, List} @type error :: {:not_allowed, ast :: term} @type function_ref :: {module :: atom, :__all__} | {module :: atom, :__submodules_all__} | {module :: atom, function :: atom} | (function :: atom) @type validate_option :: {:whitelis...
27.107143
106
0.574967
c8d66bc799f41bf2b6deab5eda26d13cbde2390e
2,755
exs
Elixir
features/contexts/outline_context.exs
ejscunha/white-bread
1c2eed1c98545beeb70b590426ce9026a8455e97
[ "MIT" ]
209
2015-03-03T14:14:28.000Z
2020-10-26T03:23:48.000Z
features/contexts/outline_context.exs
ejscunha/white-bread
1c2eed1c98545beeb70b590426ce9026a8455e97
[ "MIT" ]
83
2015-03-23T11:46:51.000Z
2020-11-04T09:47:06.000Z
features/contexts/outline_context.exs
ejscunha/white-bread
1c2eed1c98545beeb70b590426ce9026a8455e97
[ "MIT" ]
46
2015-06-12T17:37:21.000Z
2020-10-30T09:52:45.000Z
defmodule WhiteBread.Example.OutlineContext do use WhiteBread.Context import_steps_from WhiteBread.Example.OutlineContext.AdditionalStateSteps import_steps_from WhiteBread.Example.OutlineContext.StringSteps import_steps_from WhiteBread.Example.OutlineContext.TableSteps feature_starting_state fn -> %{fe...
30.274725
103
0.670417
c8d68532931a2137428bdc9607cff08144daa078
3,348
ex
Elixir
lib/zone_alias.ex
karlosmid/exkeycdn
4f8a756b2ea7b5bcb2d2821509250004ed8850ea
[ "MIT" ]
null
null
null
lib/zone_alias.ex
karlosmid/exkeycdn
4f8a756b2ea7b5bcb2d2821509250004ed8850ea
[ "MIT" ]
null
null
null
lib/zone_alias.ex
karlosmid/exkeycdn
4f8a756b2ea7b5bcb2d2821509250004ed8850ea
[ "MIT" ]
null
null
null
defmodule ExKeyCDN.ZoneAlias do @moduledoc """ Client api for https://www.ExKeyCDN.com/api#zones-aliases-api """ defstruct id: nil, zone_id: 1, name: "hostname max 128" @behaviour ExKeyCDN.ZoneAliasBehaviour @path "zonealiases" alias ExKeyCDN.Util @spec list :: [ ...
32.192308
94
0.576464
c8d6884f418b5f1d3b4867413bcd581ee73b03ab
524
ex
Elixir
lib/prm/web/web.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
1
2017-07-27T16:03:28.000Z
2017-07-27T16:03:28.000Z
lib/prm/web/web.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
lib/prm/web/web.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
defmodule PRM.Web do @moduledoc false def controller do quote do use Phoenix.Controller, namespace: PRM.Web import Plug.Conn import PRM.Web.Router.Helpers import PRM.Utils.Connection end end def router do quote do use Phoenix.Router import Plug.Conn import...
16.903226
50
0.648855
c8d694cef327274e9c580168f93685f5df4933f9
7,695
exs
Elixir
test/poller_test.exs
kingdomcoding/telegram
6b8e6997fb744fa56692eb9ed1ead3e593a85cc9
[ "MIT" ]
87
2017-10-24T17:52:13.000Z
2022-03-30T19:31:43.000Z
test/poller_test.exs
kingdomcoding/telegram
6b8e6997fb744fa56692eb9ed1ead3e593a85cc9
[ "MIT" ]
115
2017-09-16T20:01:34.000Z
2021-08-05T09:20:02.000Z
test/poller_test.exs
kingdomcoding/telegram
6b8e6997fb744fa56692eb9ed1ead3e593a85cc9
[ "MIT" ]
19
2018-01-27T20:11:43.000Z
2022-03-19T14:08:53.000Z
defmodule Test.Telegram.Bot.Poller do use ExUnit.Case, async: false import Test.Utils.{Const, Mock} setup_all do Test.Utils.Mock.tesla_mock_global_async() :ok end describe "getUpdates" do setup _context do setup_poller(false) end test "basic flow" do url_get_updates = tg_url...
30.41502
79
0.377908
c8d6a26462a245691f23e340fa2622325af65f13
63
exs
Elixir
test/hitbtc_test.exs
konstantinzolotarev/hitbtc
40d6e5eeb0e7636c018d4ce12d11f91f81a96425
[ "MIT" ]
1
2019-04-26T08:28:49.000Z
2019-04-26T08:28:49.000Z
test/hitbtc_test.exs
konstantinzolotarev/hitbtc
40d6e5eeb0e7636c018d4ce12d11f91f81a96425
[ "MIT" ]
null
null
null
test/hitbtc_test.exs
konstantinzolotarev/hitbtc
40d6e5eeb0e7636c018d4ce12d11f91f81a96425
[ "MIT" ]
null
null
null
defmodule HitbtcTest do use ExUnit.Case doctest Hitbtc end
12.6
23
0.793651
c8d6b3251b9b91b2cf986a0c0084fd5f049b82c5
1,015
exs
Elixir
2020/otp/dash/config/config.exs
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
2020/otp/dash/config/config.exs
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
2020/otp/dash/config/config.exs
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "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. # General application configuration use Mix.Config config :dash, ecto_repos: [Dash.Repo] # Confi...
31.71875
86
0.764532
c8d6b87f64b53896be0b4e36048a2ac4e962f380
675
ex
Elixir
lib/rig_metrics/subscriptions_metrics.ex
steveoliver/reactive-interaction-gateway
59b6dc994fd0f098bed19b7bf1e699513ac87167
[ "Apache-2.0" ]
518
2017-11-09T13:10:49.000Z
2022-03-28T14:29:50.000Z
lib/rig_metrics/subscriptions_metrics.ex
steveoliver/reactive-interaction-gateway
59b6dc994fd0f098bed19b7bf1e699513ac87167
[ "Apache-2.0" ]
270
2017-11-10T00:11:34.000Z
2022-02-27T13:08:16.000Z
lib/rig_metrics/subscriptions_metrics.ex
steveoliver/reactive-interaction-gateway
59b6dc994fd0f098bed19b7bf1e699513ac87167
[ "Apache-2.0" ]
67
2017-12-19T20:16:37.000Z
2022-03-31T10:43:04.000Z
defmodule RigMetrics.SubscriptionsMetrics do @moduledoc """ Metrics instrumenter for the Rig Subscriptions (Websocket, Server-Sent Events, Long Polling). """ use Prometheus.Metric @gauge name: :rig_subscriptions_total, help: "Total count of subscriptions (Websocket, Server-Sent Events, Long Polling)...
30.681818
95
0.745185
c8d6beff3b1e163dbdd35841e863e5a42c885236
1,033
ex
Elixir
lib/source_counter.ex
BlindingDark/SourceCounter
e6421f53ea52c8f2d59e6267eeaf28626ef07c20
[ "Apache-2.0" ]
2
2021-09-02T05:39:39.000Z
2022-03-23T13:16:23.000Z
lib/source_counter.ex
BlindingDark/SourceCounter
e6421f53ea52c8f2d59e6267eeaf28626ef07c20
[ "Apache-2.0" ]
null
null
null
lib/source_counter.ex
BlindingDark/SourceCounter
e6421f53ea52c8f2d59e6267eeaf28626ef07c20
[ "Apache-2.0" ]
null
null
null
defmodule SourceCounter do @moduledoc """ 代码行计数器 """ alias SourceCounter.Reader.Core, as: Reader alias SourceCounter.Formatter.Core, as: Formatter @spec count_file(Path.t()) :: map | tuple def count_file(path) do _do_count_file {path, ""} end defp _do_count_file({path, sub_path}) do path ...
22.456522
53
0.613746
c8d6d91607131f47a3163408be10a5e96f866725
573
exs
Elixir
test/views/error_view_test.exs
rsommerard/killbind
f77ca1cbb464053f9920cb9fa8a339f54fd3648e
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
rsommerard/killbind
f77ca1cbb464053f9920cb9fa8a339f54fd3648e
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
rsommerard/killbind
f77ca1cbb464053f9920cb9fa8a339f54fd3648e
[ "MIT" ]
null
null
null
defmodule KillBind.ErrorViewTest do use KillBind.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(KillBind.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" ...
26.045455
66
0.678883
c8d6dac9fe1e85bbf88772bf5902dc360e8faa2f
526
ex
Elixir
lib/demo_web/live/example_live/component_blocks_live_view.ex
pthompson/live_component_examples
e2e1be52a7ff1065fd5ef749c375d729d5d08c21
[ "MIT" ]
21
2019-12-15T19:14:56.000Z
2022-02-07T16:04:30.000Z
lib/demo_web/live/example_live/component_blocks_live_view.ex
pthompson/live_component_examples
e2e1be52a7ff1065fd5ef749c375d729d5d08c21
[ "MIT" ]
4
2020-02-06T01:05:28.000Z
2020-09-07T19:08:45.000Z
lib/demo_web/live/example_live/component_blocks_live_view.ex
pthompson/live_component_examples
e2e1be52a7ff1065fd5ef749c375d729d5d08c21
[ "MIT" ]
6
2019-12-15T19:15:02.000Z
2021-09-16T20:35:53.000Z
defmodule DemoWeb.ComponentBlocksLiveView do use DemoWeb, :live_view def render(assigns) do ~L""" <div> <%= live_component @socket, DemoWeb.ComponentBlocksComponent, title: "Title" do %> <h1 style="color: orange;"> <%= @title_passed_from_compo...
20.230769
56
0.564639
c8d6e47550286f608a92dbfb503d7ac731867e88
513
ex
Elixir
api/web/views/message_view.ex
danieldocki/slack-clone-vuejs-elixir-phoenix
cd558cfc337fa9b410e00372ae19284585ce196d
[ "MIT" ]
34
2017-01-02T14:00:25.000Z
2021-11-20T20:51:41.000Z
api/web/views/message_view.ex
danieldocki/slack-clone-vuejs-elixir-phoenix
cd558cfc337fa9b410e00372ae19284585ce196d
[ "MIT" ]
3
2017-08-02T19:38:27.000Z
2022-03-02T03:34:27.000Z
api/web/views/message_view.ex
danieldocki/slack-clone-vuejs-elixir-phoenix
cd558cfc337fa9b410e00372ae19284585ce196d
[ "MIT" ]
5
2017-02-19T20:34:09.000Z
2021-10-05T11:35:11.000Z
defmodule Sling.MessageView do use Sling.Web, :view def render("index.json", %{messages: messages, pagination: pagination}) do %{ data: render_many(messages, Sling.MessageView, "message.json"), pagination: pagination } end def render("message.json", %{message: message}) do %{ id:...
22.304348
76
0.623782
c8d6f36fb905f46b52bb2d0bf46010be44be993c
1,563
ex
Elixir
lib/conduit_sqs/worker.ex
safwanolaimat/conduit_sqs
8dbcacb120e4e5eba9327972ca8465e21ce2fddc
[ "MIT" ]
null
null
null
lib/conduit_sqs/worker.ex
safwanolaimat/conduit_sqs
8dbcacb120e4e5eba9327972ca8465e21ce2fddc
[ "MIT" ]
null
null
null
lib/conduit_sqs/worker.ex
safwanolaimat/conduit_sqs
8dbcacb120e4e5eba9327972ca8465e21ce2fddc
[ "MIT" ]
null
null
null
defmodule ConduitSQS.Worker do @moduledoc """ Worker requests messages and processes them """ use GenStage import Injex inject :message_processor, ConduitSQS.MessageProcessor @behaviour GenStage defmodule State do @moduledoc false defstruct [:broker, :name, :adapter_opts] end def child_sp...
24.421875
108
0.65579
c8d719150fe48b75547e8c13193326ec04160336
1,599
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/connection_draining.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/connection_draining.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/connection_draining.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...
34.021277
241
0.754221
c8d74638b34664d4880c18e11e3c38a0298d81bf
2,685
ex
Elixir
lib/ref_data/data.ex
abarr/ref_data
7f04992230cc755cc01b851f63b02fbd81b49422
[ "MIT" ]
4
2020-10-15T01:36:59.000Z
2020-10-30T13:00:36.000Z
lib/ref_data/data.ex
abarr/ref_data
7f04992230cc755cc01b851f63b02fbd81b49422
[ "MIT" ]
null
null
null
lib/ref_data/data.ex
abarr/ref_data
7f04992230cc755cc01b851f63b02fbd81b49422
[ "MIT" ]
null
null
null
defmodule RefData.Data do @moduledoc false # Take a directory path and standardise a list of file paths # for json file types def get_file_paths(dir) do list = "#{dir}/*.json" |> Path.wildcard() |> Enum.sort() if is_list(list) do {:ok, list} else {:error, "Unable to g...
31.588235
95
0.649534
c8d776376b8692b25546ef0cacf9c59017b24160
150
exs
Elixir
functional_programming_triller/exercicio_aula_3/map_exemple.exs
eltonfonseca/d_academy
dcda1e6d170204249eccc925661e41dc7c582b9a
[ "MIT" ]
null
null
null
functional_programming_triller/exercicio_aula_3/map_exemple.exs
eltonfonseca/d_academy
dcda1e6d170204249eccc925661e41dc7c582b9a
[ "MIT" ]
null
null
null
functional_programming_triller/exercicio_aula_3/map_exemple.exs
eltonfonseca/d_academy
dcda1e6d170204249eccc925661e41dc7c582b9a
[ "MIT" ]
null
null
null
defmodule MapExemple do def pow_list(list, number) do Enum.map(list, &(&1 * number)) end end IO.inspect MapExemple.pow_list([5, 8, 6, 7], 3)
18.75
47
0.666667
c8d77b537b7307650e6f2138533f4fae74216a7b
2,694
exs
Elixir
test/lle_cymraeg_web/controllers/business_type_controller_test.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
test/lle_cymraeg_web/controllers/business_type_controller_test.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
test/lle_cymraeg_web/controllers/business_type_controller_test.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
defmodule LleCymraegWeb.BusinessTypeControllerTest do use LleCymraegWeb.ConnCase alias LleCymraeg.BusinessTypes alias LleCymraeg.BusinessTypes.BusinessType @create_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil} def fixture(:business_type) do {:ok, ...
33.675
123
0.676689
c8d77c18cfd0710ac03a645e3b07c69eba708ae4
7,606
ex
Elixir
lib/intersection_controller/traffic_handler.ex
LinFan15/SDM_IntersectionController
61c99f9b28b0fc64ddefe2dabb6ee56a4355b8bc
[ "MIT" ]
null
null
null
lib/intersection_controller/traffic_handler.ex
LinFan15/SDM_IntersectionController
61c99f9b28b0fc64ddefe2dabb6ee56a4355b8bc
[ "MIT" ]
null
null
null
lib/intersection_controller/traffic_handler.ex
LinFan15/SDM_IntersectionController
61c99f9b28b0fc64ddefe2dabb6ee56a4355b8bc
[ "MIT" ]
null
null
null
defmodule IntersectionController.TrafficHandler do @moduledoc """ Handles messaging to simulator for every traffic group. Each traffic group gets it's own process running the handle_traffic_group function. """ @spec handle_traffic_group(atom, atom, atom, pid, String.t(), map) :: any def handle_traffic_group...
39.409326
134
0.710492
c8d784eaa994db94a59bfe8cfc060f36d64b3fe7
18,629
exs
Elixir
apps/fz_http/test/fz_http_web/live/user_live/show_test.exs
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
null
null
null
apps/fz_http/test/fz_http_web/live/user_live/show_test.exs
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
1
2020-04-24T01:53:41.000Z
2020-04-24T01:53:41.000Z
apps/fz_http/test/fz_http_web/live/user_live/show_test.exs
CloudFire-LLC/cloudfire-ce
416ea0d9c9528790fdf70c432aa4eb507d7b2074
[ "Apache-2.0" ]
null
null
null
defmodule FzHttpWeb.UserLive.ShowTest do # XXX: Setting to true causes deadlocks. Figure out why. use FzHttpWeb.ConnCase, async: false alias FzHttp.UsersFixtures describe "authenticated show" do setup :create_device test "includes the device name", %{admin_conn: conn, device: device} do path = ...
28.572086
125
0.589779
c8d785e1a74a19677b96064aaefe41e29bf95b8a
1,636
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/model/filter_uppercase_details.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/analytics/lib/google_api/analytics/v3/model/filter_uppercase_details.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/model/filter_uppercase_details.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 ...
32.72
136
0.727384
c8d795c9e09ec26b422972b6727878ca7bd1827a
526
ex
Elixir
lib/ucx_ucc/permissions/permission_role.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
lib/ucx_ucc/permissions/permission_role.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
lib/ucx_ucc/permissions/permission_role.ex
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
defmodule UcxUcc.Permissions.PermissionRole do use Ecto.Schema import Ecto.Changeset alias UcxUcc.Accounts.{Role} alias UcxUcc.Permissions.{PermissionRole, Permission} schema "permissions_roles" do belongs_to :permission, Permission belongs_to :role, Role timestamps(type: :utc_datetime) end ...
23.909091
62
0.737643
c8d7c37a19ffdf327cab7554aefbd18b471742f9
189
ex
Elixir
test/support/repo.ex
VanHelmont/phoenix_pagination
899b64d056ee815835e6e11b82b835ab20c25a91
[ "MIT" ]
null
null
null
test/support/repo.ex
VanHelmont/phoenix_pagination
899b64d056ee815835e6e11b82b835ab20c25a91
[ "MIT" ]
null
null
null
test/support/repo.ex
VanHelmont/phoenix_pagination
899b64d056ee815835e6e11b82b835ab20c25a91
[ "MIT" ]
null
null
null
defmodule Phoenix.Pagination.Repo do use Ecto.Repo, otp_app: :phoenix_pagination, adapter: Ecto.Adapters.Postgres use Phoenix.Pagination, otp_app: :phoenix_pagination, per_page: 10 end
37.8
78
0.809524
c8d7d38255cf8e088e79f3869bde614f1afed7f8
536
exs
Elixir
sources/Chapter11/StringsAndBinaries-7.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
sources/Chapter11/StringsAndBinaries-7.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
sources/Chapter11/StringsAndBinaries-7.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
defmodule FeeCalculator2 do import FeeCalculator, only: [append_total_amount: 2] def calc_from_file(path) do File.stream!(path) |> Stream.drop(1) |> Stream.map(&String.strip/1) |> Stream.map(&parse_line/1) |> Enum.to_list |> append_total_amount([ NC: 0.075, TX: 0.08 ]) end defp parse_l...
31.529412
112
0.675373
c8d7d905655120902b4b9fad5712888132b57d3d
949
exs
Elixir
mix.exs
tteerawat/hinata
27b6de413877c34d94c66ef57bf780d4c8c36ff6
[ "Apache-2.0" ]
null
null
null
mix.exs
tteerawat/hinata
27b6de413877c34d94c66ef57bf780d4c8c36ff6
[ "Apache-2.0" ]
null
null
null
mix.exs
tteerawat/hinata
27b6de413877c34d94c66ef57bf780d4c8c36ff6
[ "Apache-2.0" ]
null
null
null
defmodule Hinata.MixProject do use Mix.Project @version "0.1.4" def project do [ app: :hinata, version: @version, elixir: "~> 1.10", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: ...
19.770833
68
0.559536
c8d7e13b334a91c39b94a9c2ff4bb5334db001b7
1,452
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/bucket_access_control_project_team.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/bucket_access_control_project_team.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/bucket_access_control_project_team.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...
31.565217
89
0.754132
c8d7f2ccf7617d4f64a305420e3862e452c29010
868
ex
Elixir
pancake/lib/pancake.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
1
2021-05-28T15:09:50.000Z
2021-05-28T15:09:50.000Z
pancake/lib/pancake.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
null
null
null
pancake/lib/pancake.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
null
null
null
defmodule Pancake do use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ {Hamburger.GameState, name: Hamburger.GameState}, {Phoenix.PubSub, name: Hamburger.PubSub}, Plug.Cowboy.child_spec( scheme: :http, ...
24.8
65
0.498848
c8d8175bafd034e6692793c182b2a883d40c7ec3
2,729
exs
Elixir
test/changelog/schema/podcast/podcast_test.exs
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
test/changelog/schema/podcast/podcast_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
test/changelog/schema/podcast/podcast_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule Changelog.PodcastTest do use Changelog.SchemaCase alias Changelog.Podcast describe "insert_changeset" do test "with valid attributes" do changeset = Podcast.insert_changeset(%Podcast{}, %{ slug: "the-bomb-show", name: "The Bomb Show", status: :draft ...
32.879518
96
0.685233
c8d89d133216f0a8cddc6f078f6d7e1141da1c42
1,553
ex
Elixir
lib/miles_to_go_web/views/error_helpers.ex
code-shoily/miles_to_go
cf5758d3113244326651320bd19c1887677bcf51
[ "MIT" ]
6
2020-12-18T08:36:32.000Z
2021-06-13T03:02:16.000Z
lib/miles_to_go_web/views/error_helpers.ex
code-shoily/miles_to_go
cf5758d3113244326651320bd19c1887677bcf51
[ "MIT" ]
null
null
null
lib/miles_to_go_web/views/error_helpers.ex
code-shoily/miles_to_go
cf5758d3113244326651320bd19c1887677bcf51
[ "MIT" ]
null
null
null
defmodule MilesToGoWeb.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 Enum.map(Keyword.get_values(form.errors, field), fn error -> content_ta...
32.354167
78
0.666452
c8d8bb29364f2c14a7582cb36cfd03772d68d727
7,525
ex
Elixir
teachme/deps/gettext/lib/gettext/backend.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
null
null
null
teachme/deps/gettext/lib/gettext/backend.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
teachme/deps/gettext/lib/gettext/backend.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
null
null
null
defmodule Gettext.Backend do @moduledoc """ Behaviour that defines the macros that a Gettext backend has to implement. """ @doc """ Default handling for missing bindings. This function is called when there are missing bindings in a translation. It takes a `Gettext.MissingBindingsError` struct and the tr...
31.617647
99
0.626445
c8d8e3d09179b2e1f6a566d7c90775589ac06d36
810
ex
Elixir
lib/botlead/supervisor.ex
starbuildr/botlead
d5a60bfbfbcbe97cce407fb13404c6c016b1ed4f
[ "MIT" ]
1
2019-04-09T13:07:01.000Z
2019-04-09T13:07:01.000Z
lib/botlead/supervisor.ex
starbuildr/botlead
d5a60bfbfbcbe97cce407fb13404c6c016b1ed4f
[ "MIT" ]
2
2019-04-15T05:51:15.000Z
2019-10-14T20:32:33.000Z
lib/botlead/supervisor.ex
starbuildr/botlead
d5a60bfbfbcbe97cce407fb13404c6c016b1ed4f
[ "MIT" ]
null
null
null
defmodule Botlead.Supervisor do @moduledoc """ Supervisor to keep track of bot server and connected clients. """ use Supervisor def init(_) do config = Application.get_env(:botlead, __MODULE__) |> Keyword.fetch!(:bots) children = Enum.reduce(config, [], fn child_config, children -> ca...
27.931034
86
0.637037
c8d8ec33b0470df0c3b28ec9b92a9cf389356701
425
ex
Elixir
lib/survey_api_web/views/error_view.ex
kamidev/survey_ap
483314842cf2e8279e1224e83b57d61a5da143ad
[ "MIT" ]
6
2020-02-04T16:18:30.000Z
2020-10-31T06:00:03.000Z
lib/survey_api_web/views/error_view.ex
kamidev/survey_ap
483314842cf2e8279e1224e83b57d61a5da143ad
[ "MIT" ]
114
2019-11-14T03:48:17.000Z
2022-03-17T12:38:14.000Z
lib/survey_api_web/views/error_view.ex
kamidev/survey_ap
483314842cf2e8279e1224e83b57d61a5da143ad
[ "MIT" ]
1
2021-07-08T01:48:56.000Z
2021-07-08T01:48:56.000Z
defmodule SurveyAPIWeb.ErrorView do use SurveyAPIWeb, :view def render("404.json", _assigns) do %{errors: %{detail: "Page not found"}} end def render("500.json", _assigns) do %{errors: %{detail: "Internal server error"}} end # In case no render clause matches or no # template is found, let's re...
23.611111
49
0.687059
c8d8fc0246576bd50031b16524165f7d934fd6a9
13,794
ex
Elixir
lib/mix/lib/mix/dep.ex
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep.ex
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep.ex
BlakeWilliams/elixir
f77cc2657cf981fdf819915f1ee15e69c3cd91ad
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Dep do @moduledoc false @doc """ The Mix.Dep struct keeps information about your project dependencies. It contains: * `scm` - a module representing the source code management tool (SCM) operations * `app` - the application name as an atom * `requirement` - a binary or regex ...
30.25
107
0.633391
c8d923f3d8facba3889ac3fc5e2b9aa3882ddab7
2,023
ex
Elixir
clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_fedramp_moderate_settings.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_fedramp_moderate_settings.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_fedramp_moderate_settings.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.87931
209
0.772615
c8d95a9af7370ed9eacdc54bdf1cdec0ee7de598
2,245
exs
Elixir
mix.exs
tcoopman/elixir-phoenix-realworld-example-app
0d927c8aaae0212fb522b2de424c43dd67171d61
[ "MIT" ]
null
null
null
mix.exs
tcoopman/elixir-phoenix-realworld-example-app
0d927c8aaae0212fb522b2de424c43dd67171d61
[ "MIT" ]
null
null
null
mix.exs
tcoopman/elixir-phoenix-realworld-example-app
0d927c8aaae0212fb522b2de424c43dd67171d61
[ "MIT" ]
null
null
null
defmodule RealWorld.Mixfile do use Mix.Project def project do [ app: :real_world, version: "1.0.0", elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), ...
30.337838
96
0.575947
c8d977aa9150d811b4c2aae067e6a22016e55e43
1,861
exs
Elixir
config/releases.exs
ATechnoHazard/katbin
20a0b45954cf7819cd9d51c401db06be0f47666b
[ "MIT" ]
4
2020-08-05T20:05:34.000Z
2020-10-01T10:01:56.000Z
config/releases.exs
ATechnoHazard/katbin
20a0b45954cf7819cd9d51c401db06be0f47666b
[ "MIT" ]
1
2020-07-08T05:02:12.000Z
2020-09-25T10:05:11.000Z
config/releases.exs
ATechnoHazard/katbin
20a0b45954cf7819cd9d51c401db06be0f47666b
[ "MIT" ]
1
2020-08-30T12:59:49.000Z
2020-08-30T12:59:49.000Z
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. import Config database_url = System.get_env("DATABASE_URL") || raise """ envir...
25.847222
67
0.705535
c8d99115a87b6680580f19970b3770793fa65336
4,228
ex
Elixir
clients/translate/lib/google_api/translate/v3/model/batch_translate_text_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/translate/lib/google_api/translate/v3/model/batch_translate_text_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/translate/lib/google_api/translate/v3/model/batch_translate_text_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...
63.104478
679
0.730369
c8d9a198cee5380d19816fd42256bf0315d2b2b0
18,990
exs
Elixir
lib/mix/test/mix/umbrella_test.exs
pmargreff-opslevel-II/elixir
5eb2ea0f5f5ed77c6a77d156f23d75d07940d598
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/umbrella_test.exs
pmargreff-opslevel-II/elixir
5eb2ea0f5f5ed77c6a77d156f23d75d07940d598
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/umbrella_test.exs
pmargreff-opslevel-II/elixir
5eb2ea0f5f5ed77c6a77d156f23d75d07940d598
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Mix.UmbrellaTest do use MixTest.Case test "apps_paths" do in_fixture("umbrella_dep/deps/umbrella", fn -> assert Mix.Project.apps_paths() == nil Mix.Project.in_project(:umbrella, ".", fn _ -> assert Mix.Project.apps_paths() == %{ba...
32.13198
97
0.57783
c8da09bbd4925e24d9b4fde73a63618e766e07d1
8,683
ex
Elixir
lib/pow_assent/phoenix/controllers/authorization_controller.ex
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
193
2019-10-30T00:58:21.000Z
2022-03-09T20:26:37.000Z
lib/pow_assent/phoenix/controllers/authorization_controller.ex
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
82
2019-10-29T20:19:38.000Z
2022-03-22T04:09:27.000Z
lib/pow_assent/phoenix/controllers/authorization_controller.ex
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
28
2019-10-31T12:38:10.000Z
2021-11-01T18:05:23.000Z
defmodule PowAssent.Phoenix.AuthorizationController do @moduledoc false use Pow.Extension.Phoenix.Controller.Base require Logger alias Plug.Conn alias Pow.Extension.Config, as: ExtensionConfig alias Pow.Plug, as: PowPlug alias PowAssent.{Phoenix.AuthorizationController, Phoenix.RegistrationController, P...
40.013825
150
0.705286
c8da3b3adaa3d390e9a4739ac2199cc15c6ac56b
37,789
ex
Elixir
lib/baiji/service/route_53_domains.ex
wrren/baiji
d3d9e1cad875c6e1ddb47bf52511c3a07321764a
[ "MIT" ]
null
null
null
lib/baiji/service/route_53_domains.ex
wrren/baiji
d3d9e1cad875c6e1ddb47bf52511c3a07321764a
[ "MIT" ]
null
null
null
lib/baiji/service/route_53_domains.ex
wrren/baiji
d3d9e1cad875c6e1ddb47bf52511c3a07321764a
[ "MIT" ]
null
null
null
defmodule Baiji.Route53Domains do @moduledoc """ Amazon Route 53 API actions let you register domain names and perform related operations. """ @doc """ This operation checks the availability of one domain name. Note that if the availability status of a domain is pending, you must submit another req...
70.898687
18,005
0.599381
c8da6883e2f4456474e82fa550f678fea7fc00a8
265
exs
Elixir
test/day7_test.exs
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
test/day7_test.exs
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
test/day7_test.exs
anamba/adventofcode2019
a5de43ddce8b40f67c3017f349d8563c73c94e20
[ "MIT" ]
null
null
null
defmodule Day7Test do use ExUnit.Case doctest Day7.IntcodeInterpreter doctest Day7.ThrusterTester doctest Day7.IntcodeInterpreter2 doctest Day7.ThrusterTester2 doctest Day7.IntcodeInterpreter2a @tag timeout: 1000 doctest Day7.ThrusterTester2a end
20.384615
35
0.818868
c8da8ab4ee7347d4e6b59dddf4415181d7b61586
825
exs
Elixir
test/akd/generator/task_test.exs
corroded/akd
ed15b8929b6d110552a19522f8a17edf75452e87
[ "MIT" ]
null
null
null
test/akd/generator/task_test.exs
corroded/akd
ed15b8929b6d110552a19522f8a17edf75452e87
[ "MIT" ]
null
null
null
test/akd/generator/task_test.exs
corroded/akd
ed15b8929b6d110552a19522f8a17edf75452e87
[ "MIT" ]
null
null
null
defmodule Akd.Generator.TaskTest do use ExUnit.Case @app_path Path.join([__DIR__, "..", "..", "fixtures", "gentester"]) @test_task_path Path.join([@app_path, "lib", "test_task.ex"]) setup do old_dir = File.cwd! File.cd!(@app_path) # Cleanup for the test {:ok, _} = File.rm_rf(@test_task_path) ...
23.571429
80
0.627879
c8daa24680538ba05e2e6550c41c3fc1158e9f23
999
exs
Elixir
test/absinthe/language/input_object_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
test/absinthe/language/input_object_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
test/absinthe/language/input_object_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Language.ObjectValueTest do use Absinthe.Case, async: true alias Absinthe.Blueprint @query """ { foo(input: {foo: 2}) { baz } } """ describe "converting to Blueprint" do test "builds an Input.Object.t" do assert %Blueprint.Input.Object{ fields: ...
22.2
76
0.550551
c8dabcf751de56b6f4339c47d8722590d8d0bf30
1,598
ex
Elixir
lib/inventory_management_web/endpoint.ex
web2solutions/inventory_management
5ade39c983e344caa53db5fe4eb0684ba08b5dd1
[ "MIT" ]
null
null
null
lib/inventory_management_web/endpoint.ex
web2solutions/inventory_management
5ade39c983e344caa53db5fe4eb0684ba08b5dd1
[ "MIT" ]
null
null
null
lib/inventory_management_web/endpoint.ex
web2solutions/inventory_management
5ade39c983e344caa53db5fe4eb0684ba08b5dd1
[ "MIT" ]
null
null
null
defmodule InventoryManagementWeb.Endpoint do use Phoenix.Endpoint, otp_app: :inventory_management # 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: :coo...
30.150943
97
0.729662
c8daeaa79db0f4f7149be3283e4ca68cdaef7730
610
ex
Elixir
lib/inch_ex/json.ex
tshakah/inch_ex
45ecbc4b57fa8b943b9e4cd0d4da72da95c9dd4a
[ "MIT" ]
1
2019-03-18T19:53:13.000Z
2019-03-18T19:53:13.000Z
lib/inch_ex/json.ex
tshakah/inch_ex
45ecbc4b57fa8b943b9e4cd0d4da72da95c9dd4a
[ "MIT" ]
null
null
null
lib/inch_ex/json.ex
tshakah/inch_ex
45ecbc4b57fa8b943b9e4cd0d4da72da95c9dd4a
[ "MIT" ]
null
null
null
defmodule InchEx.JSON do @moduledoc false @doc false def encode!(v), do: Jason.encode!(v, pretty: true) defmodule Mapping do @moduledoc false @doc false def from_results(results) do %{ "results" => Enum.map(results, &to_json/1) } end defp to_json(result) do base...
18.484848
52
0.581967
c8db04b320b2392f7300dabe218d7833b7f3a707
489
ex
Elixir
lib/surface_bulma/form/input_base.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
30
2021-02-05T18:50:38.000Z
2022-03-12T22:42:29.000Z
lib/surface_bulma/form/input_base.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
19
2021-01-15T19:14:24.000Z
2022-02-05T14:57:18.000Z
lib/surface_bulma/form/input_base.ex
justin-m-morgan/surface_bulma
c31faebc818c39d06250574b913096504bd6eeec
[ "MIT" ]
17
2021-02-01T20:57:51.000Z
2022-03-20T17:06:57.000Z
defmodule SurfaceBulma.Form.InputBase do @moduledoc false defmacro __using__(_) do quote do use SurfaceBulma.Form.FieldBase alias SurfaceBulma.Form.InputWrapper @doc "Static input" prop(static, :boolean) @doc "Disable input" prop(disabled, :boolean) @doc "Read only"...
21.26087
65
0.668712
c8db3ac06f52c7a7c4bc7cf12ca31c81768cb902
359
ex
Elixir
apps/thundermoon_web/lib/thundermoon_web/live/counter_live/digit.ex
grrrisu/thundermoon-umbrella
d7e4f063e28b8d20545f90d6cddc27527fe9efe0
[ "MIT" ]
10
2019-08-02T06:41:23.000Z
2022-03-09T16:12:30.000Z
apps/thundermoon_web/lib/thundermoon_web/live/counter_live/digit.ex
grrrisu/thundermoon-umbrella
d7e4f063e28b8d20545f90d6cddc27527fe9efe0
[ "MIT" ]
319
2019-06-11T20:16:26.000Z
2022-03-09T16:24:22.000Z
apps/thundermoon_web/lib/thundermoon_web/live/counter_live/digit.ex
grrrisu/thundermoon-umbrella
d7e4f063e28b8d20545f90d6cddc27527fe9efe0
[ "MIT" ]
4
2019-08-15T19:52:07.000Z
2021-12-02T14:52:54.000Z
defmodule ThundermoonWeb.CounterLive.Digit do use ThundermoonWeb, :live_component alias Thundermoon.Counter @impl true def handle_event("inc", _, socket) do Counter.inc(socket.assigns.digit) {:noreply, socket} end @impl true def handle_event("dec", _, socket) do Counter.dec(socket.assigns.d...
19.944444
45
0.713092
c8db505a175ad21caa1427cfde2d19e97abea5f0
1,574
ex
Elixir
clients/surveys/lib/google_api/surveys/v2/model/survey_rejection.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/surveys/lib/google_api/surveys/v2/model/survey_rejection.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/surveys/lib/google_api/surveys/v2/model/survey_rejection.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...
32.791667
154
0.752224
c8db6200fc72fc755739a14272a20d654fe3396d
839
ex
Elixir
Tracer/ppm.ex
evansaboo/elixir-programming
57408424914003091003430500473546c94354d9
[ "MIT" ]
null
null
null
Tracer/ppm.ex
evansaboo/elixir-programming
57408424914003091003430500473546c94354d9
[ "MIT" ]
null
null
null
Tracer/ppm.ex
evansaboo/elixir-programming
57408424914003091003430500473546c94354d9
[ "MIT" ]
null
null
null
defmodule PPM do # write(Name, Image) The image is a list of rows, each row a list of # tuples {R,G,B} where the values are flots from 0 to 1. The image # is written using PMM format P6 and color depth 0-255. This means that # each tuple is written as three bytes. def write(name, image) do height = leng...
24.676471
73
0.589988
c8db6baf073e093db8a9c1646608181629934244
2,036
exs
Elixir
src/test/changelog/transcripts/updater_test.exs
thenets/docker-chocoquest
856fa5ff41a5831ed67b1ef865cd8951df5af023
[ "MIT" ]
1
2018-01-22T20:07:10.000Z
2018-01-22T20:07:10.000Z
test/changelog/transcripts/updater_test.exs
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
test/changelog/transcripts/updater_test.exs
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
defmodule Changelog.Transcripts.UpdaterTest do use Changelog.DataCase import Mock alias Changelog.Transcripts.{Source, Updater} describe "update" do test "fetches transcript for valid episode" do p = insert(:podcast, slug: "jsparty") e = insert(:published_episode, slug: "12", podcast: p) ...
33.377049
88
0.638998
c8db707e28252f82d02b538b791f478dcd29d7cd
9,532
ex
Elixir
lib/mimemail.ex
DmitryKK/mailibex
036ccfea40c21362117acfe8ab63198d87ea1f4a
[ "MIT" ]
null
null
null
lib/mimemail.ex
DmitryKK/mailibex
036ccfea40c21362117acfe8ab63198d87ea1f4a
[ "MIT" ]
null
null
null
lib/mimemail.ex
DmitryKK/mailibex
036ccfea40c21362117acfe8ab63198d87ea1f4a
[ "MIT" ]
1
2019-01-18T17:14:34.000Z
2019-01-18T17:14:34.000Z
defmodule MimeMail do # ever the raw line or any term implementing MimeMail.Header.to_ascii @type header :: {:raw, binary} | MimeMail.Header.t() # ever the raw body or list of mail for multipart or binary for decoded content @type body :: binary | [MimeMail.t()] | {:raw, binary} @type t :: %MimeMail{headers: ...
31.562914
98
0.564624
c8db74b4b2e2d70bcfe50ec0b4ad92f797c6e132
20,939
ex
Elixir
lib/xtb_client/connection.ex
dsienkiewicz/xtb_client_ex
550f1144eace28ce9bdb2fa3bcc27e891231487b
[ "MIT" ]
null
null
null
lib/xtb_client/connection.ex
dsienkiewicz/xtb_client_ex
550f1144eace28ce9bdb2fa3bcc27e891231487b
[ "MIT" ]
null
null
null
lib/xtb_client/connection.ex
dsienkiewicz/xtb_client_ex
550f1144eace28ce9bdb2fa3bcc27e891231487b
[ "MIT" ]
null
null
null
defmodule XtbClient.Connection do use GenServer alias XtbClient.{MainSocket, StreamingSocket, StreamingMessage} alias XtbClient.Messages.{ Candles, ChartLast, ChartRange, DateRange, ProfitCalculation, Quotations, SymbolInfo, SymbolVolume, TickPrices, TradeInfos, Trade...
38.279707
235
0.709872
c8db8f306889c85c98409df2a9eb923b26d6033e
73
ex
Elixir
example/repo.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
example/repo.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
example/repo.ex
scripbox/ex_audit
6478d72816e9357c9ba4eb5eeafd0244010133b4
[ "MIT" ]
null
null
null
defmodule ExAudit.Test.Repo do use ExAudit.Repo, otp_app: :ex_audit end
24.333333
38
0.794521
c8dbc8a6c7419355328e1a9ec931d6463958b47f
2,520
exs
Elixir
test/controllers/document_controller_test.exs
moviedo/alchemy-book
e1a60cad85838a4ae3a7d8506be532ed45b8a716
[ "MIT" ]
93
2017-08-17T13:52:53.000Z
2022-02-06T17:28:35.000Z
test/controllers/document_controller_test.exs
moviedo/alchemy-book
e1a60cad85838a4ae3a7d8506be532ed45b8a716
[ "MIT" ]
6
2017-10-07T22:55:46.000Z
2019-04-03T20:05:30.000Z
test/controllers/document_controller_test.exs
moviedo/alchemy-book
e1a60cad85838a4ae3a7d8506be532ed45b8a716
[ "MIT" ]
11
2017-08-17T13:54:54.000Z
2022-01-14T09:53:58.000Z
defmodule AlchemyBook.DocumentControllerTest do use AlchemyBook.ConnCase alias AlchemyBook.Document @valid_attrs %{contents: "some content", title: "some content"} @invalid_attrs %{} test "lists all entries on index", %{conn: conn} do conn = get conn, document_path(conn, :index) assert html_response...
37.61194
98
0.70119
c8dbc958e0ba5ca2bd5aca895e11b798e2ec6844
28,019
ex
Elixir
lib/glfw/compile.ex
grahamhay/scenic_driver_glfw
df9eb3ec713b2d5ebf94ed97d70c0963398b6a6b
[ "Apache-2.0" ]
27
2018-09-09T00:25:58.000Z
2022-03-13T17:01:29.000Z
lib/glfw/compile.ex
grahamhay/scenic_driver_glfw
df9eb3ec713b2d5ebf94ed97d70c0963398b6a6b
[ "Apache-2.0" ]
26
2018-09-09T09:06:15.000Z
2022-02-13T08:31:12.000Z
lib/glfw/compile.ex
grahamhay/scenic_driver_glfw
df9eb3ec713b2d5ebf94ed97d70c0963398b6a6b
[ "Apache-2.0" ]
22
2018-09-08T15:28:47.000Z
2022-01-14T11:33:17.000Z
# # Created by Boyd Multerer on 06/01/18. # Copyright © 2018 Kry10 Industries. All rights reserved. # # compile a graph out to a series of commands that can be drawn # by the C render code # # defmodule Scenic.Driver.Glfw.Compile do alias Scenic.Primitive require Logger # import IEx # ====================...
26.015785
97
0.550805
c8dbce5f2492974614e37c0c55c6f4ca9034a2ce
2,581
ex
Elixir
deps/postgrex/lib/postgrex/error_code.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/error_code.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/error_code.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Postgrex.ErrorCode do @moduledoc false # We put this file in the repo because the last real change happened in 2011. # https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt @external_resource errcodes_path = Path.join(__DIR__, "errcodes.txt") errcodes = for line <- F...
35.356164
84
0.638125
c8dbebd3686513d4ad1f900847486fb06c0caff5
2,571
ex
Elixir
lib/domain_planner/write/helpers.ex
bgracie/domain_planner
c12d7b62092dc096777e2f602040fbf5fe1341bc
[ "MIT" ]
null
null
null
lib/domain_planner/write/helpers.ex
bgracie/domain_planner
c12d7b62092dc096777e2f602040fbf5fe1341bc
[ "MIT" ]
null
null
null
lib/domain_planner/write/helpers.ex
bgracie/domain_planner
c12d7b62092dc096777e2f602040fbf5fe1341bc
[ "MIT" ]
null
null
null
defmodule DomainPlanner.Write.Helpers do def entity_class_filename(class) do class["plural_name"] |> String.replace(" ", "_", global: true) |> String.downcase |> (&(&1 <> ".md")).() end def formatted_examples(class) do if class["examples"] do examples = class["examples"] |...
27.945652
78
0.579541
c8dbed4f8d4accc0f63f1cbbf0b448f4918f2174
1,276
ex
Elixir
lib/artikl/web/endpoint.ex
janza/artikl
7790142a93fe79889045340a7a38055348056ea4
[ "MIT" ]
null
null
null
lib/artikl/web/endpoint.ex
janza/artikl
7790142a93fe79889045340a7a38055348056ea4
[ "MIT" ]
null
null
null
lib/artikl/web/endpoint.ex
janza/artikl
7790142a93fe79889045340a7a38055348056ea4
[ "MIT" ]
null
null
null
defmodule Artikl.Web.Endpoint do use Phoenix.Endpoint, otp_app: :artikl socket "/socket", Artikl.Web.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug.Stat...
29.674419
135
0.719436
c8dbfc346badceb66c34096ba9b5d27d94cf22bb
1,376
ex
Elixir
lib/arkecosystem/client/api/transactions.ex
ArkEcosystem/ARK-Elixir-Client
a62c0f63c3d490b2d8734384ae354444cc279a9a
[ "MIT" ]
2
2018-07-13T23:05:08.000Z
2019-02-06T10:27:08.000Z
lib/arkecosystem/client/api/transactions.ex
ArkEcosystem/ARK-Elixir-Client
a62c0f63c3d490b2d8734384ae354444cc279a9a
[ "MIT" ]
59
2018-06-11T07:59:59.000Z
2019-11-17T23:30:19.000Z
lib/arkecosystem/client/api/transactions.ex
ArkEcosystem/ARK-Elixir-Client
a62c0f63c3d490b2d8734384ae354444cc279a9a
[ "MIT" ]
17
2018-07-02T16:10:25.000Z
2020-11-23T23:43:55.000Z
defmodule ArkEcosystem.Client.API.Transactions do @moduledoc """ Documentation for ArkEcosystem.Client.API.Transactions """ import ArkEcosystem.Client @spec list(Tesla.Client.t(), Keyword.t()) :: ArkEcosystem.Client.response() def list(client, parameters \\ []) do client |> get("transactions", paramet...
32
89
0.698401
c8dc05cbe2a07f00b6ea1e6b1157010caf09b765
6,980
ex
Elixir
lib/crawlie.ex
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
91
2016-12-29T12:31:14.000Z
2021-09-25T23:09:34.000Z
lib/crawlie.ex
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
40
2016-12-14T00:55:52.000Z
2022-01-29T08:46:03.000Z
lib/crawlie.ex
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
10
2017-04-06T11:18:10.000Z
2021-10-30T00:04:09.000Z
defmodule Crawlie do @moduledoc """ The simple Elixir web crawler. """ require Logger alias Crawlie.Options alias Crawlie.Page alias Crawlie.Response alias Crawlie.Utils alias Crawlie.Stage.UrlManager alias Crawlie.Stats.Server, as: StatsServer @spec crawl(Stream.t, module, Keyword.t) :: Flow...
40.114943
176
0.70086
c8dc19ad6833864ea51da056a54a15c458ab392d
1,286
ex
Elixir
lib/erlef_web/controllers/working_group_controller.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
1
2021-03-13T01:34:28.000Z
2021-03-13T01:34:28.000Z
lib/erlef_web/controllers/working_group_controller.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/controllers/working_group_controller.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
null
null
null
defmodule ErlefWeb.WorkingGroupController do use ErlefWeb, :controller plug :put_layout, :wg alias Erlef.{Blogs, Groups} action_fallback ErlefWeb.FallbackController def index(conn, _params) do conn |> put_layout(:app) |> render(working_groups: all_groups()) end def show(conn, %{"slug" => ...
23.381818
68
0.636081
c8dc1ee94fc3b287c79d864b1a7f5b98a7380704
1,266
ex
Elixir
test/support/conn_case.ex
razuf/sandbox
4bdd15b36779c6b80d01f594ae1017815f8eec97
[ "MIT" ]
null
null
null
test/support/conn_case.ex
razuf/sandbox
4bdd15b36779c6b80d01f594ae1017815f8eec97
[ "MIT" ]
null
null
null
test/support/conn_case.ex
razuf/sandbox
4bdd15b36779c6b80d01f594ae1017815f8eec97
[ "MIT" ]
null
null
null
defmodule SandboxWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if th...
29.44186
67
0.720379
c8dc66f1dca95bb1b4609576cb1e8d4303fe239a
2,429
ex
Elixir
lib/ex_aws/s3/parsers.ex
bettyblocks/ex_aws
0c9b43b5a1afbfb5fb26131be7f80f69de4431d1
[ "MIT", "Unlicense" ]
null
null
null
lib/ex_aws/s3/parsers.ex
bettyblocks/ex_aws
0c9b43b5a1afbfb5fb26131be7f80f69de4431d1
[ "MIT", "Unlicense" ]
null
null
null
lib/ex_aws/s3/parsers.ex
bettyblocks/ex_aws
0c9b43b5a1afbfb5fb26131be7f80f69de4431d1
[ "MIT", "Unlicense" ]
1
2021-01-22T12:16:23.000Z
2021-01-22T12:16:23.000Z
if Code.ensure_loaded?(SweetXml) do defmodule ExAws.S3.Parsers do import SweetXml, only: [sigil_x: 2] def parse_list_objects({:ok, resp = %{body: xml}}) do parsed_body = xml |> SweetXml.xpath(~x"//ListBucketResult", name: ~x"./Name/text()"s, is_truncated: ~x"./IsTruncated/text()"s...
30.746835
73
0.572664
c8dc85b9e15d71b49932b10e436894abfe977286
1,320
ex
Elixir
lib/router.ex
ConduitMobileRND/tiktak
6676976749c950ad71dc9caa1333e53aa15d0f7b
[ "MIT" ]
24
2018-12-31T09:44:20.000Z
2022-02-02T03:03:00.000Z
lib/router.ex
ConduitMobileRND/tiktak
6676976749c950ad71dc9caa1333e53aa15d0f7b
[ "MIT" ]
null
null
null
lib/router.ex
ConduitMobileRND/tiktak
6676976749c950ad71dc9caa1333e53aa15d0f7b
[ "MIT" ]
2
2019-01-23T00:54:45.000Z
2019-05-28T10:14:44.000Z
defmodule TikTak.Router do use Plug.Router require Logger alias Ecto.Multi alias TikTak.{Schedule, Job, Repo, JobProducer} plug Plug.Logger plug Plug.Parsers, parsers: [:json], json_decoder: Poison plug :match plug :dispatch get "/", do: send_resp(conn, 200, "All set!") put "/schedule/:id" do ...
26.938776
69
0.603788
c8dca715d538511be717db6de667ef64570eb5b0
1,627
ex
Elixir
lib/calculator.ex
vinolivae/gen_report
a568da82b52ccd39f34a1ae5554a891e9f0c7cbb
[ "MIT" ]
null
null
null
lib/calculator.ex
vinolivae/gen_report
a568da82b52ccd39f34a1ae5554a891e9f0c7cbb
[ "MIT" ]
null
null
null
lib/calculator.ex
vinolivae/gen_report
a568da82b52ccd39f34a1ae5554a891e9f0c7cbb
[ "MIT" ]
null
null
null
defmodule GenReport.Calculator do @moduledoc """ responsible for calculate values of csv file """ @spec format_all_calculated_values(List.t(), Map.t()) :: Map.t() def format_all_calculated_values([name, hours, _days, month, year], %{ "all_hours" => freelancer_all_hours, "hours_per_month" => f...
38.738095
95
0.745544
c8dcad49c9dd3f9d251f96555b45d651b5ec1536
874
exs
Elixir
02-functions.exs
MilesChou/30-days-of-elixir
1ac8231c5c98a84d7e567e4d6855c83360eab01a
[ "MIT" ]
null
null
null
02-functions.exs
MilesChou/30-days-of-elixir
1ac8231c5c98a84d7e567e4d6855c83360eab01a
[ "MIT" ]
null
null
null
02-functions.exs
MilesChou/30-days-of-elixir
1ac8231c5c98a84d7e567e4d6855c83360eab01a
[ "MIT" ]
null
null
null
# https://elixir-lang.org/getting-started/basic-types.html#anonymous-functions # https://elixir-lang.org/getting-started/modules-and-functions.html # https://elixirschool.com/en/lessons/basics/functions/ # 定義匿名函數 sum = fn (x, y) -> x + y end # 呼叫的方法 IO.puts sum.(2, 3) # 確認它是否為 function IO.puts is_function(sum) # 確認...
16.807692
78
0.661327
c8dcb2c52aff09d82181d3256785c97399f11c6c
9,319
ex
Elixir
lib/diode_client/shell.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/shell.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/shell.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
defmodule DiodeClient.Shell do alias DiodeClient.{ ABI, Account, BertExt, Connection, ETSLru, Hash, Transaction, Rlp, Rlpx, ShellCache, Wallet } use DiodeClient.Log @chain_id 15 @gas_limit 10_000_000 @moduledoc """ me = Diode.miner() |> Wallet.address!() ...
28.411585
111
0.619165
c8dcf6d39ba8909e7ea0b347e1b4f57de6d6ea92
1,065
ex
Elixir
test/live_sup/core/datasources/data_helper/jira_list_of_users.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
test/live_sup/core/datasources/data_helper/jira_list_of_users.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
test/live_sup/core/datasources/data_helper/jira_list_of_users.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSup.Test.Core.Datasources.DataHelper.JiraListOfUsers do def get() do """ [ { "self": "https://livesup.atlassian.net/rest/api/3/user?accountId=5a390ef9280a8d389404e33a", "accountId": "5a390ef9280a8d389404e33a", "accountType": "atlassian", "emailAddres...
42.6
125
0.632864
c8dd04e2157fc193fb44488ddd70a09636786cb1
146
ex
Elixir
lib/fireball/models/tile_layer.ex
Catharz/fireball
bb9f123c0d2d71b16eda01d3838565e6e762de20
[ "MIT" ]
null
null
null
lib/fireball/models/tile_layer.ex
Catharz/fireball
bb9f123c0d2d71b16eda01d3838565e6e762de20
[ "MIT" ]
null
null
null
lib/fireball/models/tile_layer.ex
Catharz/fireball
bb9f123c0d2d71b16eda01d3838565e6e762de20
[ "MIT" ]
null
null
null
defmodule TileLayer do defstruct [ :data, :height, :name, :opacity, :type, :visible, :width, :x, :y ] end
10.428571
22
0.486301
c8dd1aec5548ec2351ec1c836eb9393c282278ff
8,733
ex
Elixir
lib/elixir/lib/module/parallel_checker.ex
danicuki/elixir
d799ce990a1c04598e5908aa21f5f0c80b9eba5e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/parallel_checker.ex
danicuki/elixir
d799ce990a1c04598e5908aa21f5f0c80b9eba5e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/parallel_checker.ex
danicuki/elixir
d799ce990a1c04598e5908aa21f5f0c80b9eba5e
[ "Apache-2.0" ]
null
null
null
defmodule Module.ParallelChecker do @moduledoc false @type cache() :: {pid(), :ets.tid()} @type warning() :: term() @type kind() :: :def | :defmacro @doc """ Receives pairs of module maps and BEAM binaries. In parallel it verifies the modules and adds the ExCk chunk to the binaries. Returns the updated ...
28.353896
95
0.620634
c8dd6bc8592ee862a79d38bf1ed497e10b626f7c
283
exs
Elixir
priv/repo/migrations/20150922175713_create_message.exs
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
5
2016-10-20T10:00:59.000Z
2017-11-19T08:14:18.000Z
priv/repo/migrations/20150922175713_create_message.exs
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
39
2020-04-22T05:27:32.000Z
2022-03-13T17:22:26.000Z
priv/repo/migrations/20150922175713_create_message.exs
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
null
null
null
defmodule LaFamiglia.Repo.Migrations.CreateMessage do use Ecto.Migration def change do create table(:messages) do add :conversation_id, references(:conversations) add :sender_id, references(:players) add :text, :string timestamps end end end
18.866667
54
0.699647