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
b281796d2216331941fc0cacab6babb3e69d503e
1,209
ex
Elixir
lib/kantele/character/events/move_event.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
610
2017-08-09T15:20:25.000Z
2022-03-27T15:49:07.000Z
lib/kantele/character/events/move_event.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
69
2017-09-23T04:02:30.000Z
2022-03-19T21:08:21.000Z
lib/kantele/character/events/move_event.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
85
2017-09-23T04:07:11.000Z
2021-11-20T06:44:56.000Z
defmodule Kantele.Character.MoveEvent do use Kalevala.Character.Event require Logger alias Kantele.Character.CommandView alias Kantele.Character.MoveView def commit(conn, %{data: event}) do conn |> move(:from, event.from, MoveView, "leave", %{}) |> move(:to, event.to, MoveView, "enter", %{}) ...
26.282609
89
0.650951
b28180928a389348f0b2cc128f61613a2594b0e7
2,302
exs
Elixir
config/prod.exs
izimobile/everchat-push
0f425f611a79455f3755942da2b803f77f4edcc4
[ "Apache-2.0" ]
null
null
null
config/prod.exs
izimobile/everchat-push
0f425f611a79455f3755942da2b803f77f4edcc4
[ "Apache-2.0" ]
null
null
null
config/prod.exs
izimobile/everchat-push
0f425f611a79455f3755942da2b803f77f4edcc4
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :mix_docker, image: "mongoose_push" config :maru, MongoosePush.Router, versioning: [ using: :path ], https: [ bind_addr: {:system, :string, "PUSH_HTTPS_BIND_ADDR", "127.0.0.1"}, port: {:system, :integer, "PUSH_HTTPS_PORT", 8443}, keyfile: ...
41.854545
105
0.606864
b2818541af4f806441b7485d70839833f99bc8c5
1,353
ex
Elixir
lib/source_academy_web/controllers/inbox_controller.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy_web/controllers/inbox_controller.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy_web/controllers/inbox_controller.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
defmodule SourceAcademyWeb.InboxController do use SourceAcademyWeb, :controller alias SourceAcademy.Course alias SourceAcademy.Assessments plug SourceAcademy.Plug.RenderTabs, tab: :inbox def index(conn, _params) do redirect conn, to: inbox_path(conn, :feed) end def feed(conn, _params) do conn ...
26.019231
55
0.688101
b281bfdaa69a444dccc348df2494965bc65bc893
2,247
exs
Elixir
test/controllers/run_controller_test.exs
austinschwartz/docker_frontend_demo
5f6d0bb3db91db93d032b59cec95998bbb1935d8
[ "MIT" ]
null
null
null
test/controllers/run_controller_test.exs
austinschwartz/docker_frontend_demo
5f6d0bb3db91db93d032b59cec95998bbb1935d8
[ "MIT" ]
null
null
null
test/controllers/run_controller_test.exs
austinschwartz/docker_frontend_demo
5f6d0bb3db91db93d032b59cec95998bbb1935d8
[ "MIT" ]
null
null
null
defmodule Demo.RunControllerTest do use Demo.ConnCase alias Demo.Run @valid_attrs %{user: "some content"} @invalid_attrs %{} test "lists all entries on index", %{conn: conn} do conn = get conn, run_path(conn, :index) assert html_response(conn, 200) =~ "Listing runs" end test "renders form for n...
33.537313
98
0.668002
b281ee64afbec99ccf4794173928bc3776540380
4,370
ex
Elixir
lib/oban/plugins/pruner.ex
RiverFinancial/oban
68fe42b5a8d044d1f301a7d853fcf7e03835a4b3
[ "Apache-2.0" ]
null
null
null
lib/oban/plugins/pruner.ex
RiverFinancial/oban
68fe42b5a8d044d1f301a7d853fcf7e03835a4b3
[ "Apache-2.0" ]
null
null
null
lib/oban/plugins/pruner.ex
RiverFinancial/oban
68fe42b5a8d044d1f301a7d853fcf7e03835a4b3
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Plugins.Pruner do @moduledoc """ Periodically delete completed, cancelled and discarded jobs based on age. ## Using the Plugin The following example demonstrates using the plugin without any configuration, which will prune jobs older than the default of 60 seconds: config :my_app, Oban...
27.3125
102
0.642105
b2822a8007f24ef6d6988864e00995de3212a817
1,308
ex
Elixir
test/helpers/fixture.ex
kianmeng/mmdb2_decoder
dbf65dd6e3de5804928e36c38c19aefe1a83f081
[ "Apache-2.0" ]
4
2018-03-03T18:59:49.000Z
2019-09-10T07:59:22.000Z
test/helpers/fixture.ex
kianmeng/mmdb2_decoder
dbf65dd6e3de5804928e36c38c19aefe1a83f081
[ "Apache-2.0" ]
1
2021-12-23T12:26:05.000Z
2021-12-23T12:26:05.000Z
test/helpers/fixture.ex
kianmeng/mmdb2_decoder
dbf65dd6e3de5804928e36c38c19aefe1a83f081
[ "Apache-2.0" ]
4
2018-06-21T16:45:56.000Z
2021-08-30T11:31:19.000Z
defmodule MMDB2Decoder.TestHelpers.Fixture do @moduledoc false alias Geolix.TestData.MMDB2Fixture @path Path.join([__DIR__, "../fixtures"]) @fixtures [ {:fixture_decoder, "MaxMind-DB-test-decoder.mmdb"}, {:fixture_ipv4_24, "MaxMind-DB-test-ipv4-24.mmdb"}, {:fixture_ipv4_28, "MaxMind-DB-test-ipv4-2...
36.333333
80
0.694954
b2822b2eb78708648ffc065e8493ae268581502c
369
exs
Elixir
priv/repo/seeds.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
manojsamanta/stripe-multiple-products
746895c2a4ef375c74bf0a643cbd3db7a8e19bcc
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # MultipleProducts.Repo.insert!(%MultipleProducts.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and s...
30.75
67
0.720867
b2823783c7139a2791b99e367d61d42b9732edc3
1,694
ex
Elixir
lib/afterglow_web/controllers/note_controller.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
lib/afterglow_web/controllers/note_controller.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
lib/afterglow_web/controllers/note_controller.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
defmodule AfterGlow.NoteController do use AfterGlow.Web, :controller alias AfterGlow.Notes alias AfterGlow.Notes.Note alias AfterGlow.NoteView alias JaSerializer.Params alias AfterGlow.Plugs.Authorization plug(Authorization) action_fallback(AfterGlow.Web.FallbackController) def index(conn, %{"que...
25.283582
100
0.614522
b2826b38662a4f2c05f7ff9da1b5d22a8f4da3bf
27,238
exs
Elixir
test/extendedkey_test.exs
RiverFinancial/bitcoinex
c3797213425d50b4932ab0d2f0e7a0cb43fa2c7b
[ "Unlicense" ]
24
2020-03-18T02:05:54.000Z
2022-03-29T18:13:54.000Z
test/extendedkey_test.exs
RiverFinancial/bitcoinex
c3797213425d50b4932ab0d2f0e7a0cb43fa2c7b
[ "Unlicense" ]
18
2020-01-23T16:39:12.000Z
2022-03-02T14:35:26.000Z
test/extendedkey_test.exs
SachinMeier/bitcoinex
3b74de9889ab44ad3d204e1bbfd124f8e7419208
[ "Unlicense" ]
7
2020-02-11T10:22:54.000Z
2021-12-23T21:35:01.000Z
defmodule Bitcoinex.Secp256k1.ExtendedKeyTest do use ExUnit.Case doctest Bitcoinex.ExtendedKey alias Bitcoinex.ExtendedKey @min_hardened_child_num 0x80000000 # 2^32 @max_hardened_child_num 0x100000000 @invalid_xkeys [ # changed prefix "zpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2...
37.261286
137
0.697922
b2829e520aa02894182795d27ea698d15cd61ef9
35,361
ex
Elixir
lib/ex_aws/s3.ex
almirsarajcic/ex_aws_s3
1610f22a7ecf3428d5e1db3bddccd035a2c4c36e
[ "Unlicense", "MIT" ]
null
null
null
lib/ex_aws/s3.ex
almirsarajcic/ex_aws_s3
1610f22a7ecf3428d5e1db3bddccd035a2c4c36e
[ "Unlicense", "MIT" ]
null
null
null
lib/ex_aws/s3.ex
almirsarajcic/ex_aws_s3
1610f22a7ecf3428d5e1db3bddccd035a2c4c36e
[ "Unlicense", "MIT" ]
null
null
null
defmodule ExAws.S3 do @moduledoc """ Operations on AWS S3 ## Basic Operations The vast majority of operations here represent a single operation on S3. ### Examples ``` S3.list_objects |> ExAws.request! #=> %{body: [list, of, objects]} S3.list_objects |> ExAws.stream! |> Enum.to_list #=> [list, of, ob...
33.773639
157
0.66497
b282a369e9d8649c6cadd1bfd524f8d0e1e7ab12
978
ex
Elixir
clients/web_fonts/lib/google_api/web_fonts/v1/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/web_fonts/lib/google_api/web_fonts/v1/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/web_fonts/lib/google_api/web_fonts/v1/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "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...
32.6
74
0.744376
b282aaf19164da8897ab000b31f3be3c148786de
2,624
ex
Elixir
lib/membrane_element_udp/sink.ex
membraneframework/membrane_element_udp
d8f04980d7b24487cfe1739677f33998d6f40997
[ "Apache-2.0" ]
1
2021-05-22T14:57:40.000Z
2021-05-22T14:57:40.000Z
lib/membrane_element_udp/sink.ex
membraneframework/membrane_element_udp
d8f04980d7b24487cfe1739677f33998d6f40997
[ "Apache-2.0" ]
null
null
null
lib/membrane_element_udp/sink.ex
membraneframework/membrane_element_udp
d8f04980d7b24487cfe1739677f33998d6f40997
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Element.UDP.Sink do @moduledoc """ Element that sends buffers received on the input pad over a UDP socket. """ use Membrane.Sink import Mockery.Macro alias Membrane.Buffer alias Membrane.Element.UDP.{CommonSocketBehaviour, Socket} def_options destination_address: [ ...
28.835165
99
0.584604
b28322b53965f086e5b8f8ae7127428fee7ff245
1,276
ex
Elixir
lib/hl7/2.5.1/segments/rxa.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.5.1/segments/rxa.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.5.1/segments/rxa.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_5_1.Segments.RXA do @moduledoc false require Logger alias HL7.V2_5_1.{DataTypes} use HL7.Segment, fields: [ segment: nil, give_sub_id_counter: nil, administration_sub_id_counter: nil, date_time_start_of_administration: DataTypes.Ts, date_time_end_of_administr...
33.578947
61
0.740596
b28342e6e077eeb0345f39b417b9837d7c3b460d
773
exs
Elixir
test/models/person_test.exs
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
test/models/person_test.exs
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
test/models/person_test.exs
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
defmodule Changelog.PersonTest do use Changelog.ModelCase alias Changelog.Person @valid_attrs %{name: "Joe Blow", email: "joe@blow.com", handle: "joeblow"} @invalid_attrs %{} test "changeset with valid attributes" do changeset = Person.changeset(%Person{}, @valid_attrs) assert changeset.valid? en...
27.607143
76
0.717982
b2834eb5526c0644215ef279b69ac379814f3ff2
9,679
ex
Elixir
lib/mix/lib/mix/tasks/test.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/test.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/test.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Test do defmodule Cover do @moduledoc false def start(compile_path, opts) do Mix.shell.info "Cover compiling modules ... " _ = :cover.start case :cover.compile_beam_directory(compile_path |> to_char_list) do results when is_list(results) -> :ok ...
31.734426
97
0.662982
b283562565b541bdc421a21cc076550f3154377d
2,721
exs
Elixir
test/controllers/tee_controller_test.exs
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
test/controllers/tee_controller_test.exs
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
test/controllers/tee_controller_test.exs
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
defmodule HandimanApi.TeeControllerTest do use HandimanApi.ConnCase alias HandimanApi.Tee @valid_attrs %{back_nine_course_rating: "120.5", back_nine_slope_rating: 42, bogey_rating: "120.5", course_id: 42, course_rating: 42, front_nine_course_rating: "120.5", front_nine_slope_rating: 42, gender: "some content", n...
38.323944
263
0.676589
b283599821eed6fbdac50df2232e331c47a7f188
189
exs
Elixir
priv/repo/migrations/20180302051757_add_short_description_to_products.exs
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-04-01T19:14:16.000Z
2019-04-01T19:14:16.000Z
priv/repo/migrations/20180302051757_add_short_description_to_products.exs
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
null
null
null
priv/repo/migrations/20180302051757_add_short_description_to_products.exs
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-03-24T01:50:48.000Z
2019-03-24T01:50:48.000Z
defmodule Excommerce.Repo.Migrations.AddShortDescriptionToProducts do use Ecto.Migration def change do alter table(:products) do add :short_description, :text end end end
18.9
69
0.761905
b2837531d7269403f0f3d13c5e39b62b9396054d
551
exs
Elixir
config/config.exs
konstantinzolotarev/nerves_usb_automount
f39a39edf96e19dcb92bd1d2af86bdc83bff6a09
[ "Apache-2.0" ]
null
null
null
config/config.exs
konstantinzolotarev/nerves_usb_automount
f39a39edf96e19dcb92bd1d2af86bdc83bff6a09
[ "Apache-2.0" ]
null
null
null
config/config.exs
konstantinzolotarev/nerves_usb_automount
f39a39edf96e19dcb92bd1d2af86bdc83bff6a09
[ "Apache-2.0" ]
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...
42.384615
74
0.780399
b28392cce8ccd7f0d5fe647d789a46abcd960e95
134
ex
Elixir
apps/gingerbread_shop_service/lib/gingerbread_shop.service/postgres_types.ex
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
apps/gingerbread_shop_service/lib/gingerbread_shop.service/postgres_types.ex
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
apps/gingerbread_shop_service/lib/gingerbread_shop.service/postgres_types.ex
ScrimpyCat/gingerbread_shop
ce01f5599fd1d39c79df461373c8f4f73bc144f2
[ "BSD-2-Clause" ]
null
null
null
Postgrex.Types.define(GingerbreadShop.Service.PostgresTypes, [Geo.PostGIS.Extension|Ecto.Adapters.Postgres.extensions], json: Poison)
67
133
0.843284
b283d76d3291f541600640af03ddc6a2103667b5
774
ex
Elixir
web/controllers/page_controller.ex
adamniedzielski/etag_tracker
a325a05ec48efaca67f60e1db865ba16349f0de7
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
adamniedzielski/etag_tracker
a325a05ec48efaca67f60e1db865ba16349f0de7
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
adamniedzielski/etag_tracker
a325a05ec48efaca67f60e1db865ba16349f0de7
[ "MIT" ]
null
null
null
defmodule ETagTracker.PageController do use ETagTracker.Web, :controller alias ETagTracker.Visitor def index(conn, _params) do visitor = find_or_initialize_visitor(conn) Repo.insert_or_update( Visitor.changeset(visitor, %{visits: visitor.visits + 1}) ) conn |> put_resp_header("etag", ...
23.454545
64
0.666667
b283d7ee5261e25dd177ac85dd121557b9a550d5
5,256
ex
Elixir
clients/logging/lib/google_api/logging/v2/model/write_log_entries_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/logging/lib/google_api/logging/v2/model/write_log_entries_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/logging/lib/google_api/logging/v2/model/write_log_entries_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "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...
84.774194
1,361
0.753805
b283e385a6d6e57de41cbdc326121e5efa70d291
745
exs
Elixir
priv/scripts/migrate_outer_checksum.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
priv/scripts/migrate_outer_checksum.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
priv/scripts/migrate_outer_checksum.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
releases = Hexpm.Repository.Release |> Hexpm.Repo.all() |> Hexpm.Repo.preload(package: :repository) |> Enum.with_index() num = length(releases) Task.async_stream( releases, fn {release, ix} -> key = "tarballs/#{release.package.name}-#{release.version}.tar" key = if release.package.repositor...
21.285714
67
0.628188
b283fa4f4dbbef1aa50c867c6a9d620561e58483
1,711
ex
Elixir
lib/growth_book/feature_rule.ex
jeroenvisser101/growthbook-elixir
1f9009c6dda77814623f3a30de8ea6d8ecdd3bc0
[ "MIT" ]
4
2022-01-30T04:25:43.000Z
2022-02-02T03:06:32.000Z
lib/growth_book/feature_rule.ex
jeroenvisser101/growthbook-elixir
1f9009c6dda77814623f3a30de8ea6d8ecdd3bc0
[ "MIT" ]
null
null
null
lib/growth_book/feature_rule.ex
jeroenvisser101/growthbook-elixir
1f9009c6dda77814623f3a30de8ea6d8ecdd3bc0
[ "MIT" ]
null
null
null
defmodule GrowthBook.FeatureRule do @moduledoc """ Struct holding Feature rule configuration. Holds rule configuration to determine if a feature should be run, given the active `GrowthBook.Context`. """ @typedoc """ Feature rule Overrides the `default_value` of a `GrowthBook.Feature`. Has a number of...
34.22
98
0.632379
b28425bf4ed6aab1eb5ba2185d38fb0f6b1c7aba
12,404
ex
Elixir
lib/aws/generated/data_exchange.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/data_exchange.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/data_exchange.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.DataExchange do @moduledoc """ This is the API reference for AWS Data Exchange. """ alias AWS.Client alias AWS.Request def metadata do %AWS.ServiceMetadata{ abbreviation: n...
20.006452
99
0.564737
b2844d0842447580649df78613db311b67e3df15
1,282
exs
Elixir
apps/gitgud/test/gitgud/gpg_key_query_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
449
2018-03-06T01:05:55.000Z
2022-03-23T21:03:56.000Z
apps/gitgud/test/gitgud/gpg_key_query_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
69
2018-03-06T09:26:41.000Z
2022-03-21T22:43:09.000Z
apps/gitgud/test/gitgud/gpg_key_query_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
41
2018-03-06T01:06:07.000Z
2021-11-21T17:55:04.000Z
defmodule GitGud.GPGKeyQueryTest do use GitGud.DataCase, async: true use GitGud.DataFactory alias GitGud.User alias GitGud.GPGKey alias GitGud.GPGKeyQuery setup [:create_users, :create_gpg_keys] @tag :skip test "gets single gpg key by id", %{gpg_keys: gpg_keys} do for gpg_key <- gpg_keys do ...
27.869565
130
0.687207
b2847574d8d1806a7c0dfd921436b68be24b47a3
1,721
exs
Elixir
test/ecto/log_entry_test.exs
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
test/ecto/log_entry_test.exs
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
test/ecto/log_entry_test.exs
alanpeabody/ecto
a8f655225b0f35e7f4d223b2d12be613121bb4f8
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.LogEntryTest do use ExUnit.Case, async: true alias Ecto.LogEntry import Ecto.LogEntry test "converts entry to iodata" do entry = %LogEntry{query: "done", result: {:ok, []}} assert to_binary(entry) == "QUERY OK\ndone []" entry = %{entry | params: [1, 2, 3], result: {:ok, []}} a...
40.023256
94
0.587449
b284847721c05cf55e587621d1f6f5bd276a10eb
65
exs
Elixir
test/caravan_test.exs
c-kaieong/caravan
e639364e0e725eb5b5c80aeac473c2151db47165
[ "Apache-2.0" ]
55
2018-01-16T16:42:15.000Z
2022-03-10T09:16:57.000Z
test/caravan_test.exs
c-kaieong/caravan
e639364e0e725eb5b5c80aeac473c2151db47165
[ "Apache-2.0" ]
7
2018-03-29T13:21:46.000Z
2021-05-07T18:33:43.000Z
test/caravan_test.exs
c-kaieong/caravan
e639364e0e725eb5b5c80aeac473c2151db47165
[ "Apache-2.0" ]
5
2018-03-27T15:01:22.000Z
2021-05-27T14:50:48.000Z
defmodule CaravanTest do use ExUnit.Case doctest Caravan end
13
24
0.8
b28493e452317e0e232d14bcc19e942bb5319f4b
2,123
ex
Elixir
apps/content/lib/content_web.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/content/lib/content_web.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/content/lib/content_web.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
defmodule Legendary.Content 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 Legendary.Content, :controller use Legendary.Content, :view The definitions below will be executed for every...
23.588889
76
0.68017
b284b2490909a7d58a174c72cfc6228f2c3a80b6
1,940
exs
Elixir
test/path_utils_win32_test.exs
orderthruchaos/path_utils
1748f157d9240adbc881a85452e27d73428fe0f2
[ "Apache-2.0" ]
null
null
null
test/path_utils_win32_test.exs
orderthruchaos/path_utils
1748f157d9240adbc881a85452e27d73428fe0f2
[ "Apache-2.0" ]
null
null
null
test/path_utils_win32_test.exs
orderthruchaos/path_utils
1748f157d9240adbc881a85452e27d73428fe0f2
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule PathUtilsWin32Test do use PathUtils.Case pu_alias @tag os_sym: :win32_has_symlinks test "symlink?: rel_link is a symbolic link" do assert PU.symlink?(@rel_link) end @tag os_sym: :win32_no_symlinks test "symlink?: rel_link is not symbolic (not ...
23.950617
74
0.680412
b284d2b6d3c6d6385c67c6492f6c58626cfa6d20
1,318
exs
Elixir
test/phoenix_ecto/sql/sandbox_test.exs
LostKobrakai/phoenix_ecto
b074396ea239136f5e6251c4830ce754fa21d6f1
[ "MIT" ]
null
null
null
test/phoenix_ecto/sql/sandbox_test.exs
LostKobrakai/phoenix_ecto
b074396ea239136f5e6251c4830ce754fa21d6f1
[ "MIT" ]
null
null
null
test/phoenix_ecto/sql/sandbox_test.exs
LostKobrakai/phoenix_ecto
b074396ea239136f5e6251c4830ce754fa21d6f1
[ "MIT" ]
null
null
null
defmodule PhoenixEcto.SQL.SandboxTest do use ExUnit.Case, async: true use Plug.Test alias Phoenix.Ecto.SQL.Sandbox defmodule MockSandbox do def allow(repo, owner, _allowed) do send owner, {:allowed, repo} end end defp call_plug(conn) do opts = Sandbox.init(sandbox: MockSandbox) Sand...
26.897959
79
0.685129
b284dcc870af53d3b4d026ceae1d9219b4404916
11,878
ex
Elixir
lib/nostrum/consumer.ex
brettkolodny/nostrum
3e26af6c106558bfe3fd48dcf3064fbc361605b5
[ "MIT" ]
null
null
null
lib/nostrum/consumer.ex
brettkolodny/nostrum
3e26af6c106558bfe3fd48dcf3064fbc361605b5
[ "MIT" ]
null
null
null
lib/nostrum/consumer.ex
brettkolodny/nostrum
3e26af6c106558bfe3fd48dcf3064fbc361605b5
[ "MIT" ]
1
2021-09-13T20:59:42.000Z
2021-09-13T20:59:42.000Z
defmodule Nostrum.Consumer do @moduledoc """ Consumer process for gateway event handling. # Consuming Gateway Events To handle events, Nostrum uses a GenStage implementation. Nostrum defines the `producer` and `producer_consumer` in the GenStage design. To consume the events you must create at least one `...
36.660494
105
0.66097
b284eb2bcbc06583c32ad22365a95b47864cd45a
1,578
exs
Elixir
api/mix.exs
andrewvmail/momoirc
15cd76dc8b5f99f72e4a8e05a35dca9bf293bfca
[ "MIT" ]
null
null
null
api/mix.exs
andrewvmail/momoirc
15cd76dc8b5f99f72e4a8e05a35dca9bf293bfca
[ "MIT" ]
null
null
null
api/mix.exs
andrewvmail/momoirc
15cd76dc8b5f99f72e4a8e05a35dca9bf293bfca
[ "MIT" ]
null
null
null
defmodule Api.MixProject do use Mix.Project def project do [ app: :api, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), deps:...
26.3
88
0.586819
b284ef2b6f4940fcf494af154b76f92ad970b0e1
249
ex
Elixir
src/server/apps/domain/lib/domain.ex
akeating/pespa
f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4
[ "MIT" ]
28
2017-04-07T03:23:30.000Z
2021-09-29T13:41:04.000Z
src/server/apps/domain/lib/domain.ex
akeating/pespa
f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4
[ "MIT" ]
null
null
null
src/server/apps/domain/lib/domain.ex
akeating/pespa
f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4
[ "MIT" ]
7
2017-10-22T10:47:53.000Z
2021-04-21T23:11:22.000Z
defmodule Domain do @moduledoc """ Domain keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.9
66
0.751004
b284faa8dee90b7bad9e271cc848e8710889a177
1,060
ex
Elixir
lib/tilex/integrations.ex
onekilo79/tilex
c1b2dbea911a22d21420f52533e96bd63ce8f4ff
[ "MIT" ]
null
null
null
lib/tilex/integrations.ex
onekilo79/tilex
c1b2dbea911a22d21420f52533e96bd63ce8f4ff
[ "MIT" ]
null
null
null
lib/tilex/integrations.ex
onekilo79/tilex
c1b2dbea911a22d21420f52533e96bd63ce8f4ff
[ "MIT" ]
null
null
null
defmodule Tilex.Integrations do @slack_notifier Application.get_env(:tilex, :slack_notifier) @twitter_notifier Application.get_env(:tilex, :twitter_notifier) def notify(conn, post = %Tilex.Post{}) do developer = Tilex.Repo.one(Ecto.assoc(post, :developer)) channel = Tilex.Repo.one(Ecto.assoc(post, :chann...
37.857143
137
0.734906
b2850e44a7f69299e00242bcc856f7e93aa0a346
209
ex
Elixir
survey/lib/survey/bear.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
survey/lib/survey/bear.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
survey/lib/survey/bear.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
defmodule Survey.Bear do defstruct id: nil, name: "", type: "", hibernating: false def is_grizzly(bear), do: bear.type == "Grizzly" def order_asc_by_name(bear1, bear2), do: bear1.name <= bear2.name end
29.857143
67
0.698565
b2851dec7ddc03efcdb70d69e92f457ba0338d1d
886
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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.814815
74
0.759594
b28535d9cc20e6c137c34ab70616857486938fe6
1,421
exs
Elixir
config/config.exs
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
config/config.exs
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
config/config.exs
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :daily_meals, ecto_repos: [DailyMeals.Repo],...
32.295455
83
0.764251
b28536f2a2273c89a16a01a96e0f482bacac1ffb
1,219
ex
Elixir
ping_elixir/lib/ping_elixir_web/views/error_helpers.ex
tedpark/Clojure_Elixir_Concurrent_Ping
44fd2cc7b4056332998695de46b37c3e3ff54be7
[ "MIT" ]
null
null
null
ping_elixir/lib/ping_elixir_web/views/error_helpers.ex
tedpark/Clojure_Elixir_Concurrent_Ping
44fd2cc7b4056332998695de46b37c3e3ff54be7
[ "MIT" ]
null
null
null
ping_elixir/lib/ping_elixir_web/views/error_helpers.ex
tedpark/Clojure_Elixir_Concurrent_Ping
44fd2cc7b4056332998695de46b37c3e3ff54be7
[ "MIT" ]
null
null
null
defmodule PingElixirWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # When using gettext, we typically pass the strings we want # to translate as a static a...
35.852941
79
0.673503
b2853a8bc8f8ee6ddb56661e74de5f67bfc53a35
82
exs
Elixir
apps/admin_app/test/admin_app_web/views/page_view_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/admin_app/test/admin_app_web/views/page_view_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/admin_app/test/admin_app_web/views/page_view_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule AdminAppWeb.PageViewTest do use AdminAppWeb.ConnCase, async: true end
20.5
39
0.829268
b2853f9ef94be7286f068227ece040b5b6158fad
5,056
ex
Elixir
lib/strava/api/clubs.ex
rkorzeniec/strava
aa99040355f72ff2766c080d5a919c66a53ac44b
[ "MIT" ]
39
2016-04-09T21:50:34.000Z
2022-03-04T09:16:25.000Z
lib/strava/api/clubs.ex
rkorzeniec/strava
aa99040355f72ff2766c080d5a919c66a53ac44b
[ "MIT" ]
24
2016-05-29T15:49:07.000Z
2022-01-17T11:57:05.000Z
lib/strava/api/clubs.ex
rkorzeniec/strava
aa99040355f72ff2766c080d5a919c66a53ac44b
[ "MIT" ]
21
2016-02-02T01:19:23.000Z
2022-02-06T23:29:32.000Z
defmodule Strava.Clubs do @moduledoc """ API calls for all endpoints tagged `Clubs`. """ alias Strava.Client import Strava.RequestBuilder @doc """ List Club Activities Retrieve recent activities from members of a specific club. The authenticated athlete must belong to the requested club in order to hi...
29.741176
237
0.628165
b28547c2b8e0ffd13b1d5c3fb018225ce3cd7a26
699
exs
Elixir
test/mix/tasks/sugar/gen/router_test.exs
pct/sugar
772aa993dec98f26355991168186f30745dbc756
[ "MIT" ]
374
2015-01-03T00:16:25.000Z
2022-02-02T21:08:48.000Z
test/mix/tasks/sugar/gen/router_test.exs
pct/sugar
772aa993dec98f26355991168186f30745dbc756
[ "MIT" ]
44
2015-01-01T11:38:12.000Z
2020-11-18T19:48:01.000Z
test/mix/tasks/sugar/gen/router_test.exs
pct/sugar
772aa993dec98f26355991168186f30745dbc756
[ "MIT" ]
34
2015-01-04T13:42:41.000Z
2020-07-18T17:27:27.000Z
defmodule Mix.Tasks.Sugar.Gen.RouterTest do use ExUnit.Case, async: true import ExUnit.CaptureIO test "run_detached/1" do assigns = [ app: :test_app, module: "TestApp", path: "test/fixtures" ] capture_io(fn -> Mix.Tasks.Sugar.Gen.Router.run_detached(assigns) end) expec...
22.548387
54
0.65093
b28561848409b17b28aa663c1b8f5b3f1c96f9e9
63,005
ex
Elixir
lib/elixir/lib/kernel/special_forms.ex
seanmor5/elixir
cfc9039abb3d90d7547ea933e6f0c5cc59ad3e97
[ "Apache-2.0" ]
1
2021-02-22T14:21:02.000Z
2021-02-22T14:21:02.000Z
lib/elixir/lib/kernel/special_forms.ex
seanmor5/elixir
cfc9039abb3d90d7547ea933e6f0c5cc59ad3e97
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/special_forms.ex
seanmor5/elixir
cfc9039abb3d90d7547ea933e6f0c5cc59ad3e97
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.SpecialForms do @moduledoc """ Special forms are the basic building blocks of Elixir, and therefore cannot be overridden by the developer. The `Kernel.SpecialForms` module consists solely of macros that can be invoked anywhere in Elixir code without the use of the `Kernel.SpecialForms.` pr...
28.782549
143
0.631521
b2857bc2df0010669ff467e3e9f540711fc23d1e
443
exs
Elixir
priv/repo/migrations/20200531173117_create_check_constraint_for_trade_line_items.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
priv/repo/migrations/20200531173117_create_check_constraint_for_trade_line_items.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
priv/repo/migrations/20200531173117_create_check_constraint_for_trade_line_items.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338.Repo.Migrations.CreateCheckConstraintForTradeLineItems do use Ecto.Migration def up do create( constraint(:trade_line_items, :one_asset_per_line_item, check: "((fantasy_player_id IS NOT NULL OR future_pick_id IS NOT NULL) AND (fantasy_player_id IS NULL OR future_pick_id ...
26.058824
134
0.724605
b285daa90d0b4e75cf58e0615effb5ef3561989a
1,635
ex
Elixir
apps/omg_watcher/lib/exit_processor/exit_info.ex
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/lib/exit_processor/exit_info.ex
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/lib/exit_processor/exit_info.ex
hoardexchange/elixir-omg
423528699d467f1cc0d02c596290ab907af38c2c
[ "Apache-2.0" ]
2
2020-06-07T11:14:54.000Z
2020-08-02T07:36:32.000Z
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
32.7
102
0.70948
b285dc6e57912be2a7c37e4bcee87aed402a14fe
1,529
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/integer_list.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/integer_list.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/integer_list.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...
32.531915
119
0.741007
b285dda42082bafa5ac0a9c3dfef10281038d9d8
2,515
ex
Elixir
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_input.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_input.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_selection_input.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...
42.627119
221
0.716501
b2860105ffedb2575d8c556733cae6ab16a68ec8
404
exs
Elixir
elixir/grains/grains.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/grains/grains.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
elixir/grains/grains.exs
macborowy/exercism
c5d45e074e81b946a82a340b2730e0d2732b7e0a
[ "MIT" ]
null
null
null
defmodule Grains do @doc """ Calculate two to the power of the input minus one. """ def square(1), do: 1 @spec square(pos_integer) :: pos_integer def square(number) do 1..(number-1) |> Enum.reduce(1, fn (_, acc) -> acc * 2 end) end @doc """ Adds square of each number from 1 to 64. """ @spec ...
22.444444
63
0.608911
b2861ddba9d206fc16d110691199f0aed8507aa7
4,536
ex
Elixir
test/support/pagination_helpers.ex
goodpixel/pager
d3ab68add7f7d08af1a80132e2981c802d446b5f
[ "MIT" ]
3
2021-09-15T13:21:37.000Z
2021-10-14T06:07:49.000Z
test/support/pagination_helpers.ex
goodpixel/pager
d3ab68add7f7d08af1a80132e2981c802d446b5f
[ "MIT" ]
2
2021-09-20T16:39:56.000Z
2021-10-14T18:38:34.000Z
test/support/pagination_helpers.ex
goodpixel/pager
d3ab68add7f7d08af1a80132e2981c802d446b5f
[ "MIT" ]
1
2021-09-20T16:19:13.000Z
2021-09-20T16:19:13.000Z
defmodule Chunkr.PaginationHelpers do @moduledoc false use ExUnitProperties import ExUnit.Assertions, only: [assert: 1] alias Chunkr.Page @max_limit 100 def verify_pagination(repo, query, strategy, sort_dir, expected_results, expected_count) do verify_forward(repo, query, strategy, sort_dir, expected...
34.105263
93
0.680776
b28622b77fe50c162284e5dbcdeecab1d52b1874
6,097
ex
Elixir
clients/content/lib/google_api/content/v21/api/localinventory.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/localinventory.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/localinventory.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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.47619
187
0.644907
b2862b6b73b7a1461d09956d479f2c9fb9fb80d3
801
ex
Elixir
lib/sd_notify_ex/config.ex
govm/sd_notify_ex
60ce7fcfdd0168ae5bd3985aa36a9fca511730ed
[ "MIT" ]
4
2018-04-26T05:25:20.000Z
2019-02-13T11:08:47.000Z
lib/sd_notify_ex/config.ex
govm/sd_notify_ex
60ce7fcfdd0168ae5bd3985aa36a9fca511730ed
[ "MIT" ]
null
null
null
lib/sd_notify_ex/config.ex
govm/sd_notify_ex
60ce7fcfdd0168ae5bd3985aa36a9fca511730ed
[ "MIT" ]
null
null
null
defmodule SdNotifyEx.Config do @moduledoc """ To start AutoWatchdog, set config ```elixir config :sd_notify_ex, auto_watchdog: true ``` """ @spec sockaddr() :: String.t() | nil def sockaddr do System.get_env("NOTIFY_SOCKET") |> unix_name end @spec watchdog_msec() :: non_neg_integer() | nil...
21.648649
70
0.641698
b2863702f42292d0da6a20547eaa144d033b787b
1,557
exs
Elixir
mix.exs
wingyplus/telemetry_metrics_prometheus_core
6f01612cf2b896f54dbf0d7a34379881b4457787
[ "Apache-2.0" ]
null
null
null
mix.exs
wingyplus/telemetry_metrics_prometheus_core
6f01612cf2b896f54dbf0d7a34379881b4457787
[ "Apache-2.0" ]
null
null
null
mix.exs
wingyplus/telemetry_metrics_prometheus_core
6f01612cf2b896f54dbf0d7a34379881b4457787
[ "Apache-2.0" ]
null
null
null
defmodule TelemetryMetricsPrometheus.Core.MixProject do use Mix.Project @version "1.0.1" def project do [ app: :telemetry_metrics_prometheus_core, version: @version, elixir: "~> 1.7", preferred_cli_env: preferred_cli_env(), start_permanent: Mix.env() == :prod, deps: deps(...
22.565217
97
0.598587
b2868094dfd97509c2741b167958574ab006b1fc
1,195
ex
Elixir
farmbot_os/lib/farmbot_os/sys_calls/check_update.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_os/lib/farmbot_os/sys_calls/check_update.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_os/lib/farmbot_os/sys_calls/check_update.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotOS.SysCalls.CheckUpdate do @moduledoc false require FarmbotCore.Logger alias FarmbotOS.{ UpdateSupport, UpdateProgress } def check_update() do if UpdateSupport.in_progress?() do dont_check_update() else do_check_update() end end def dont_check_update() d...
22.980769
68
0.691213
b2868c7a93473ca88d5c2b3ec013deed59b511f4
2,943
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__video_annotation_progress.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__video_annotation_progress.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__video_annotation_progress.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.730769
212
0.723411
b286b2c272a8d6237beb28fa622746574e2aabbd
665
ex
Elixir
lib/gituser/changeset_validation.ex
vinolivae/gituser
30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81
[ "MIT" ]
null
null
null
lib/gituser/changeset_validation.ex
vinolivae/gituser
30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81
[ "MIT" ]
null
null
null
lib/gituser/changeset_validation.ex
vinolivae/gituser
30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81
[ "MIT" ]
null
null
null
defmodule Gituser.ChangesetValidation do @moduledoc "Helper functions for validating changesets" @doc " Cast and apply the given changeset and params into a struct " @spec cast_and_apply(schema :: module(), params :: map() | struct()) :: {:ok, Ecto.Schema.t()} | {:error, Changeset.t()} def cast_and_a...
28.913043
73
0.6
b286dad4509f7e2486d219f01d62fe3b70bdf114
1,898
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/duplicate_sheet_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/duplicate_sheet_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/duplicate_sheet_request.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...
36.5
202
0.742887
b286e79f0d12712fe87aa82c2dd4cc602a2f668d
538
ex
Elixir
lib/adyen_checkout_ex/model/checkout_utility_response.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
1
2021-05-30T20:45:10.000Z
2021-05-30T20:45:10.000Z
lib/adyen_checkout_ex/model/checkout_utility_response.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
null
null
null
lib/adyen_checkout_ex/model/checkout_utility_response.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule AdyenCheckoutEx.Model.CheckoutUtilityResponse do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"originKeys" ] @type t ...
20.692308
91
0.702602
b286fb8256560966e087b06d6cc943d2c2f6aa3e
2,099
ex
Elixir
clients/content/lib/google_api/content/v2/model/liasettings_get_accessible_gmb_accounts_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/content/lib/google_api/content/v2/model/liasettings_get_accessible_gmb_accounts_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/liasettings_get_accessible_gmb_accounts_response.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 ...
38.163636
222
0.74464
b2874379d55da90f97bb76a3e3e45560224550a1
106
ex
Elixir
poc_elixir/lib/receita/repo.ex
fcevado/minha-receita
ebd5cca95115d878934a0f762a8e92d3f8f5b495
[ "MIT" ]
null
null
null
poc_elixir/lib/receita/repo.ex
fcevado/minha-receita
ebd5cca95115d878934a0f762a8e92d3f8f5b495
[ "MIT" ]
null
null
null
poc_elixir/lib/receita/repo.ex
fcevado/minha-receita
ebd5cca95115d878934a0f762a8e92d3f8f5b495
[ "MIT" ]
null
null
null
defmodule Receita.Repo do use Ecto.Repo, otp_app: :receita, adapter: Ecto.Adapters.Postgres end
17.666667
35
0.726415
b28754cdd6be184e8d57df8405a1da3248788157
568
ex
Elixir
lib/phoenix/topic/supervisor.ex
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
lib/phoenix/topic/supervisor.ex
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
lib/phoenix/topic/supervisor.ex
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
defmodule Phoenix.Topic.Supervisor do use Supervisor alias Phoenix.Config def start_link do Supervisor.start_link(__MODULE__, [], [name: __MODULE__]) end def pid do case Process.whereis(__MODULE__) do :undefined -> nil pid -> pid end end def init(_) do gc_after = Config.get!...
22.72
81
0.647887
b28755ecbad550c6fd88bbea47ea5e80d387dd85
841
ex
Elixir
apps/dataset_loader/lib/dataset_loader.ex
foresta/mlex
e356b4251ff2efda4dea494c188d9c08eca82ded
[ "MIT" ]
null
null
null
apps/dataset_loader/lib/dataset_loader.ex
foresta/mlex
e356b4251ff2efda4dea494c188d9c08eca82ded
[ "MIT" ]
null
null
null
apps/dataset_loader/lib/dataset_loader.ex
foresta/mlex
e356b4251ff2efda4dea494c188d9c08eca82ded
[ "MIT" ]
null
null
null
defmodule DatasetLoader do @moduledoc """ Load Dateset. """ def load(filepath), do: load(filepath, %{}) def load(filepath, options) when is_list(options) do load(filepath, options |> Enum.into(%{})) end def load(filepath, %{headers: _} = options) do File.stream!(filepath) |> CSV.decode(...
24.028571
63
0.549346
b2875c8358c63847c963192e2024776046a2e999
76
exs
Elixir
test/cadet_web/views/page_view_test.exs
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
null
null
null
test/cadet_web/views/page_view_test.exs
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
2
2020-04-22T09:06:38.000Z
2020-04-22T09:15:33.000Z
test/cadet_web/views/page_view_test.exs
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
1
2020-06-01T03:26:02.000Z
2020-06-01T03:26:02.000Z
defmodule CadetWeb.PageViewTest do use CadetWeb.ConnCase, async: true end
19
36
0.815789
b28763486dced54b70236097ceeeeccd402c23f9
5,049
ex
Elixir
lib/barracuda/client.ex
ashneyderman/barracuda
ecce6a1b4a217c0b676d7bfc711897817f4bc12e
[ "MIT" ]
6
2016-08-24T17:53:31.000Z
2021-02-05T11:18:16.000Z
lib/barracuda/client.ex
ashneyderman/barracuda
ecce6a1b4a217c0b676d7bfc711897817f4bc12e
[ "MIT" ]
7
2016-12-28T13:09:30.000Z
2017-03-06T11:11:10.000Z
lib/barracuda/client.ex
ashneyderman/barracuda
ecce6a1b4a217c0b676d7bfc711897817f4bc12e
[ "MIT" ]
null
null
null
defmodule Barracuda.Client do @moduledoc ~S""" A DSL to define a client that work with Barracuda. It provides a set of macros to generate call chains. For example: defmodule GithubClient do use Barracuda.Client, adapter: Barracuda.Adapter.HTTP, otp_app: :app ...
40.071429
118
0.561695
b2876a214ca7213654a9770bbfa0c464af6cb439
1,314
ex
Elixir
lib/application.ex
m4ta1l/bors-ng
a4d04fd740e24d03833cd46a76f0f9e5be96f818
[ "Apache-2.0" ]
1
2020-09-05T11:41:59.000Z
2020-09-05T11:41:59.000Z
lib/application.ex
m4ta1l/bors-ng
a4d04fd740e24d03833cd46a76f0f9e5be96f818
[ "Apache-2.0" ]
71
2021-07-06T15:27:45.000Z
2021-07-07T14:20:40.000Z
lib/application.ex
m4ta1l/bors-ng
a4d04fd740e24d03833cd46a76f0f9e5be96f818
[ "Apache-2.0" ]
1
2022-01-25T06:38:17.000Z
2022-01-25T06:38:17.000Z
defmodule BorsNG.Application do @moduledoc """ The top-level OPT application for Bors-NG. """ 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 # Define workers and child ...
33.692308
77
0.681126
b2878ef0a18702921e1767eb596d88f3607490a9
2,410
ex
Elixir
clients/firestore/lib/google_api/firestore/v1beta1/model/run_query_request.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/run_query_request.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/run_query_request.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "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...
40.166667
159
0.73112
b28790377ede5addadbe8cc6d9fa9d1792cac7ef
59
ex
Elixir
web/views/layout_view.ex
frbaroni/budget
c8bd78eff0607f98ffa49265d9485d0c85a28ede
[ "MIT" ]
null
null
null
web/views/layout_view.ex
frbaroni/budget
c8bd78eff0607f98ffa49265d9485d0c85a28ede
[ "MIT" ]
null
null
null
web/views/layout_view.ex
frbaroni/budget
c8bd78eff0607f98ffa49265d9485d0c85a28ede
[ "MIT" ]
null
null
null
defmodule Budget.LayoutView do use Budget.Web, :view end
14.75
30
0.779661
b28798266fc241f6029b3406e093952a0d2d2743
14,705
ex
Elixir
lib/plug/csrf_protection.ex
shadowfacts/plug
c27823e537df26557a1facc3febad5ebe5f1e415
[ "Apache-2.0" ]
null
null
null
lib/plug/csrf_protection.ex
shadowfacts/plug
c27823e537df26557a1facc3febad5ebe5f1e415
[ "Apache-2.0" ]
null
null
null
lib/plug/csrf_protection.ex
shadowfacts/plug
c27823e537df26557a1facc3febad5ebe5f1e415
[ "Apache-2.0" ]
null
null
null
defmodule Plug.CSRFProtection do @moduledoc """ Plug to protect from cross-site request forgery. For this plug to work, it expects a session to have been previously fetched. It will then compare the token stored in the session with the one sent by the request to determine the validity of the request. For a...
33.194131
98
0.702482
b2879bba6d1163e31fa2249f5386a68a77315cfd
5,794
exs
Elixir
test/maxwell/query_test.exs
zhongwencool/maxwell
0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349
[ "MIT" ]
130
2016-03-24T02:48:26.000Z
2021-04-10T19:29:06.000Z
test/maxwell/query_test.exs
zhongwencool/maxwell
0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349
[ "MIT" ]
78
2016-06-28T06:33:01.000Z
2021-12-15T01:37:54.000Z
test/maxwell/query_test.exs
zhongwencool/maxwell
0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349
[ "MIT" ]
24
2016-04-09T16:44:19.000Z
2020-12-01T10:57:22.000Z
# The following module test was copied from Plug: # https://raw.githubusercontent.com/elixir-lang/plug/91b8f57dcc495735925553bcf6c53a0d0e413d86/test/plug/conn/query_test.exs # With permission: https://github.com/elixir-lang/plug/issues/539 defmodule Maxwell.QueryTest do use ExUnit.Case, async: true import Maxwell....
34.488095
123
0.541422
b287ef9e97176279959de433f6bc12afb8a304a6
855
ex
Elixir
ch04/exmeal/lib/exmeal_web/controllers/users_controller.ex
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
ch04/exmeal/lib/exmeal_web/controllers/users_controller.ex
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
ch04/exmeal/lib/exmeal_web/controllers/users_controller.ex
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
defmodule ExmealWeb.UsersController do use ExmealWeb, :controller alias Exmeal.Users action_fallback ExmealWeb.FallbackController def create(conn, params) do with {:ok, user} <- Users.create(params) do conn |> put_status(:created) |> render("create.json", user: user) end end de...
21.375
58
0.597661
b288196f37939277b066abcbab769be455e834c6
5,119
ex
Elixir
lib/mix/tasks/git_hooks/install.ex
jwilson-ts/elixir_git_hooks
c8ef3f286accc91cb6d5e61694b8ee7dbdbe8ec7
[ "MIT" ]
null
null
null
lib/mix/tasks/git_hooks/install.ex
jwilson-ts/elixir_git_hooks
c8ef3f286accc91cb6d5e61694b8ee7dbdbe8ec7
[ "MIT" ]
null
null
null
lib/mix/tasks/git_hooks/install.ex
jwilson-ts/elixir_git_hooks
c8ef3f286accc91cb6d5e61694b8ee7dbdbe8ec7
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.GitHooks.Install do @shortdoc "Installs the configured git hooks backing up the previous files." @moduledoc """ Installs the configured git hooks. Before installing the new hooks, the already hooks files are backed up with the extension `.pre_git_hooks_backup`. ## Command line options...
27.521505
98
0.641727
b28821ae77fb7c98ea192451c7c145d012740439
1,825
ex
Elixir
cp/lib/cpsim/cp/heartbeat.ex
azhi/cpsim
a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b
[ "MIT" ]
null
null
null
cp/lib/cpsim/cp/heartbeat.ex
azhi/cpsim
a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b
[ "MIT" ]
null
null
null
cp/lib/cpsim/cp/heartbeat.ex
azhi/cpsim
a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b
[ "MIT" ]
null
null
null
defmodule CPSIM.CP.Heartbeat do require Logger defguard enabled?(state) when is_map_key(state.modules, __MODULE__) def init(state, interval) when enabled?(state) do interval = if interval == 0, do: state.modules[__MODULE__].config.default_interval, else: interval state |> put_in([:modules, __MODULE...
28.968254
111
0.707397
b28848f8312c3d2e1a1389841ae1e5f5a5ec2250
2,350
exs
Elixir
test/cubdb/btree/diff_test.exs
meyercm/cubdb
ed6bd87abd25d6d053b08a4b0a01defd57a5bbac
[ "Apache-2.0" ]
null
null
null
test/cubdb/btree/diff_test.exs
meyercm/cubdb
ed6bd87abd25d6d053b08a4b0a01defd57a5bbac
[ "Apache-2.0" ]
null
null
null
test/cubdb/btree/diff_test.exs
meyercm/cubdb
ed6bd87abd25d6d053b08a4b0a01defd57a5bbac
[ "Apache-2.0" ]
null
null
null
defmodule CubDB.Btree.DiffTest do use ExUnit.Case alias CubDB.Store alias CubDB.Btree alias CubDB.Btree.Diff import TestHelper doctest Btree.Diff @value Btree.__value__() @deleted Btree.__deleted__() test "Diff implements Enumerable" do Protocol.assert_impl!(Enumerable, Diff) end test "n...
31.333333
98
0.654043
b28849a5b6589e00ec243e754d66565a1a649253
213
ex
Elixir
lib/container_web/controllers/page_controller.ex
chargio/phoenix-container-buildah
929e4c9bf0ea53ce00c3e23262a130d47facef91
[ "Apache-2.0" ]
null
null
null
lib/container_web/controllers/page_controller.ex
chargio/phoenix-container-buildah
929e4c9bf0ea53ce00c3e23262a130d47facef91
[ "Apache-2.0" ]
null
null
null
lib/container_web/controllers/page_controller.ex
chargio/phoenix-container-buildah
929e4c9bf0ea53ce00c3e23262a130d47facef91
[ "Apache-2.0" ]
null
null
null
defmodule ContainerWeb.PageController do use ContainerWeb, :controller def index(conn, _params) do render(conn, "index.html") end def other(conn, _params) do render(conn, "other.html") end end
17.75
40
0.70892
b2884a82d5e12ef19c57d5330e343666b65fdeeb
2,059
ex
Elixir
clients/firestore/lib/google_api/firestore/v1beta1/model/write_response.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/write_response.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/write_response.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2018 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...
38.849057
209
0.751821
b288731d30a8bdf2f9eb04cc8fe82bd6b3568f77
2,114
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/model/jwt_location.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/model/jwt_location.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/jwt_location.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...
39.886792
465
0.719016
b2887c8194c3f6d98ae331f733b83977ee79e123
4,945
ex
Elixir
clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/alert_center/lib/google_api/alert_center/v1beta1/model/alert.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
59.578313
666
0.700101
b28883901efb14dc60be7f7ee0c89db205282ed0
2,411
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/positioned_object_positioning.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/docs/lib/google_api/docs/v1/model/positioned_object_positioning.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/docs/lib/google_api/docs/v1/model/positioned_object_positioning.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...
45.490566
309
0.742016
b28890f01ea74ad6860c5b3fa7c1ca9cee57e9e7
2,881
exs
Elixir
mix.exs
matt-mazzucato/astarte_vmq_plugin
83b1b3e67fe749326b66f06ce57dfc120d549fdf
[ "Apache-2.0" ]
null
null
null
mix.exs
matt-mazzucato/astarte_vmq_plugin
83b1b3e67fe749326b66f06ce57dfc120d549fdf
[ "Apache-2.0" ]
null
null
null
mix.exs
matt-mazzucato/astarte_vmq_plugin
83b1b3e67fe749326b66f06ce57dfc120d549fdf
[ "Apache-2.0" ]
null
null
null
# # This file is part of Astarte. # # Copyright 2017-2020 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
30.010417
85
0.641097
b28894e7d3455169b84906bd46c3e60960cd2d71
3,748
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/mixin.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_management/lib/google_api/service_management/v1/model/mixin.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_management/lib/google_api/service_management/v1/model/mixin.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...
74.96
2,189
0.747332
b288cbc26a770db14a8534eab1793a668cf54c3c
59
ex
Elixir
lib/utils/freq/word_distribution.ex
szTheory/Woolly
cf7ad76cbaa6d9be38121816c5da223f18853653
[ "MIT" ]
47
2016-05-20T10:16:00.000Z
2020-06-25T09:38:49.000Z
lib/utils/freq/word_distribution.ex
pjhampton/woolly
58f6d4901c21b715ec18e01afdf8608a37e1ca61
[ "MIT" ]
8
2016-05-24T15:31:40.000Z
2020-03-03T18:33:54.000Z
lib/utils/freq/word_distribution.ex
pjhampton/woolly
58f6d4901c21b715ec18e01afdf8608a37e1ca61
[ "MIT" ]
8
2016-07-09T21:46:22.000Z
2020-03-03T16:42:30.000Z
defmodule Woolly.Utils.WordDist do @moduledoc false end
11.8
34
0.79661
b288ce45571cab4e0d58168ef933d1e6123f1b1c
197
ex
Elixir
test/fixtures/build_me/lib/build_me.ex
jayjun/bootleg
2283ad22810178625c45eb2661624fac914befdd
[ "MIT" ]
423
2017-07-19T18:40:45.000Z
2021-12-03T08:26:15.000Z
test/fixtures/build_me/lib/build_me.ex
jayjun/bootleg
2283ad22810178625c45eb2661624fac914befdd
[ "MIT" ]
115
2017-07-19T18:30:14.000Z
2020-10-27T20:53:32.000Z
test/fixtures/build_me/lib/build_me.ex
jayjun/bootleg
2283ad22810178625c45eb2661624fac914befdd
[ "MIT" ]
39
2017-07-20T03:14:18.000Z
2020-11-18T13:39:52.000Z
defmodule BuildMe do @moduledoc """ Documentation for BuildMe. """ @doc """ Hello world. ## Examples iex> BuildMe.hello :world """ def hello do :world end end
10.368421
28
0.568528
b2892f9844e335e93d3dee63e8d8b64c60390832
1,713
ex
Elixir
test/support/factory.ex
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
null
null
null
test/support/factory.ex
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
null
null
null
test/support/factory.ex
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "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" } end def user_factory do ...
28.55
162
0.6439
b2894a4650f432283a4099c1667212aee4465200
789
exs
Elixir
deps/mazurka_plug/mix.exs
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/mazurka_plug/mix.exs
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/mazurka_plug/mix.exs
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
defmodule Mazurka.Plug.Mixfile do use Mix.Project def project do [app: :mazurka_plug, description: "Plug integration for Mazurka", version: "0.1.4", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, package: package(), deps: deps()] end ...
22.542857
70
0.547529
b28981bbbd9ed6969fe349e29c6474b2d09c9122
3,442
exs
Elixir
test/cloak_ecto/migrator_test.exs
tinfoil/cloak_ecto
04a42c047a5a2f984843eddb8897d9a11262bb74
[ "MIT" ]
null
null
null
test/cloak_ecto/migrator_test.exs
tinfoil/cloak_ecto
04a42c047a5a2f984843eddb8897d9a11262bb74
[ "MIT" ]
1
2021-03-02T01:59:32.000Z
2021-03-02T01:59:32.000Z
test/cloak_ecto/migrator_test.exs
tinfoil/cloak_ecto
04a42c047a5a2f984843eddb8897d9a11262bb74
[ "MIT" ]
null
null
null
defmodule Cloak.Ecto.MigratorTest do use Cloak.Ecto.DataCase import ExUnit.CaptureIO alias Cloak.Ecto.Migrator alias Cloak.Ecto.TestUser, as: User alias Cloak.Ecto.TestVault, as: Vault @email "test@email.com" defp create_user(_) do for _ <- 1..200 do Factory.create_user("#{32 |> :crypto.stro...
26.075758
95
0.594422
b289a6e1271ef110b20629dd10cefb7fec01c9a6
5,343
exs
Elixir
test/search_test.exs
fanuniverse/elasticfusion
fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e
[ "CC0-1.0" ]
null
null
null
test/search_test.exs
fanuniverse/elasticfusion
fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e
[ "CC0-1.0" ]
null
null
null
test/search_test.exs
fanuniverse/elasticfusion
fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e
[ "CC0-1.0" ]
null
null
null
defmodule Elasticfusion.SearchTest do use ExUnit.Case import Elasticfusion.IndexAPI alias Elasticfusion.Document alias Elasticfusion.Search alias Elasticfusion.Search.Builder defmodule Record do defstruct [:id, :tags, :stars, :date] end defmodule SearchTestIndex do use Elasticfusion.Index ...
30.531429
90
0.620625
b289af962aeccb87d7c29b912b2dd78981de4788
1,530
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/custom_auth_requirements.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/custom_auth_requirements.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/custom_auth_requirements.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...
33.26087
197
0.773203
b289bb7eb6e2b8fae85155dfe7da9accb38f6e8d
2,394
ex
Elixir
lib/tune_web/endpoint.ex
mateuszkwiatkowski/tune
9a929e30fa20581349385ac8be0db5eb88036a36
[ "MIT" ]
206
2020-08-23T17:50:03.000Z
2022-03-28T04:39:01.000Z
lib/tune_web/endpoint.ex
fully-forged/tune
5df9299197a48d5426003ca9e95914e4c2916c79
[ "MIT" ]
112
2020-08-21T08:26:38.000Z
2022-03-31T06:11:06.000Z
lib/tune_web/endpoint.ex
mateuszkwiatkowski/tune
9a929e30fa20581349385ac8be0db5eb88036a36
[ "MIT" ]
15
2020-08-25T02:30:23.000Z
2021-12-16T14:19:35.000Z
defmodule TuneWeb.Endpoint do @moduledoc false use Sentry.PlugCapture use Phoenix.Endpoint, otp_app: :tune use Appsignal.Phoenix # 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....
27.517241
97
0.6934
b289f2ca2b6fd430dd10e200457b169076724778
340
ex
Elixir
test/support/fixtures/web/controllers/talon_page_controller.ex
talonframework/ex_admin
d164c065ac74c156c3abeca8437e184456db903c
[ "MIT" ]
170
2017-05-25T15:09:53.000Z
2021-07-09T04:04:14.000Z
test/support/fixtures/web/controllers/talon_page_controller.ex
talonframework/ex_admin
d164c065ac74c156c3abeca8437e184456db903c
[ "MIT" ]
78
2017-05-25T09:41:55.000Z
2019-01-04T20:53:35.000Z
test/support/fixtures/web/controllers/talon_page_controller.ex
talonframework/ex_admin
d164c065ac74c156c3abeca8437e184456db903c
[ "MIT" ]
8
2017-06-24T12:28:06.000Z
2018-09-17T16:11:56.000Z
defmodule TestTalon.AdminPageController do use TestTalon.Web, :controller use Talon.PageController, concern: TestTalon.Admin plug Talon.Plug.LoadConcern, concern: TestTalon.Admin, web_namespace: Web plug Talon.Plug.Theme plug Talon.Plug.Layout #, layout: {TestTalon.LayoutView, "app.html"} TODO: (DJS) plug ...
34
82
0.776471
b289fdaba707d0857af3775591924c372d782e8e
262
exs
Elixir
apps/cam_web/config/test.exs
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
apps/cam_web/config/test.exs
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
8
2020-11-16T09:59:12.000Z
2020-11-16T10:13:07.000Z
apps/cam_web/config/test.exs
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :cam_web, CamWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
23.818182
56
0.732824
b28a1a5b2778e7f538e1dd1134f1fa85c6974941
540
ex
Elixir
web/controllers/admin_controller.ex
Calvyn82/grades
4f8f43283cf9380dc48a4bc999dd46c66a1ad7ee
[ "MIT" ]
null
null
null
web/controllers/admin_controller.ex
Calvyn82/grades
4f8f43283cf9380dc48a4bc999dd46c66a1ad7ee
[ "MIT" ]
null
null
null
web/controllers/admin_controller.ex
Calvyn82/grades
4f8f43283cf9380dc48a4bc999dd46c66a1ad7ee
[ "MIT" ]
null
null
null
defmodule Grades.AdminController do use Grades.Web, :controller def new(conn, _params) do render conn, "new.html" end def create(conn, %{"admin" => admin_params}) do case Grades.Session.login(admin_params, Grades.Repo) do {:ok, admin} -> conn |> put_session(:current_admin, admin....
24.545455
59
0.596296
b28a1fea69dd9dbabe90e3449178d7a81a30718f
659
ex
Elixir
lib/mixpanel/queue.ex
bluecodecom/mixpanel_api_ex
f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638
[ "MIT" ]
null
null
null
lib/mixpanel/queue.ex
bluecodecom/mixpanel_api_ex
f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638
[ "MIT" ]
3
2019-08-22T13:04:04.000Z
2021-02-24T10:20:56.000Z
lib/mixpanel/queue.ex
bluecodecom/mixpanel_api_ex
f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638
[ "MIT" ]
null
null
null
defmodule Mixpanel.Queue do def new(limit) when limit > 0 do {0, limit, [], []} end def push({len, limit, _, _}, _item) when len >= limit do :dropped end def push({len, limit, tail, head}, item) do {:ok, {len + 1, limit, [item | tail], head}} end def take({len, limit, [], head}, max) do ...
21.966667
59
0.537178
b28a2f5111b48d56f651743cfcb17747b7383197
11,768
ex
Elixir
lib/broadway_kafka/brod_client.ex
marinanekrassova/broadway_kafka
bb6f121f256c134f6ea40cb680373f5a99484211
[ "Apache-2.0" ]
null
null
null
lib/broadway_kafka/brod_client.ex
marinanekrassova/broadway_kafka
bb6f121f256c134f6ea40cb680373f5a99484211
[ "Apache-2.0" ]
null
null
null
lib/broadway_kafka/brod_client.ex
marinanekrassova/broadway_kafka
bb6f121f256c134f6ea40cb680373f5a99484211
[ "Apache-2.0" ]
null
null
null
defmodule BroadwayKafka.BrodClient do @moduledoc false require Logger @behaviour BroadwayKafka.KafkaClient # We only accept :commit_to_kafka_v2 for now so we hard coded the value # to avoid problems in case :brod's default policy changes in the future @offset_commit_policy :commit_to_kafka_v2 @support...
31.719677
98
0.674456
b28a456a2d05dd28f310609c1a36015a2235327f
3,497
ex
Elixir
clients/webmaster/lib/google_api/webmaster/v3/api/searchanalytics.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/webmaster/lib/google_api/webmaster/v3/api/searchanalytics.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/webmaster/lib/google_api/webmaster/v3/api/searchanalytics.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...
47.256757
419
0.716614
b28a49da1b3d2b1eed37a887b8bc8ccdf20a2cce
2,778
ex
Elixir
apps/app_lin/lib/lin_master_app.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
17
2020-06-20T11:29:43.000Z
2022-03-21T05:53:06.000Z
apps/app_lin/lib/lin_master_app.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
2
2020-07-09T10:22:50.000Z
2020-09-01T14:46:40.000Z
apps/app_lin/lib/lin_master_app.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
3
2020-07-17T20:04:36.000Z
2022-01-24T14:19:46.000Z
# Copyright 2019 Volvo Cars # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
30.195652
98
0.689705
b28a7d76141466c89e2777d57ebe7a5b1a8254bd
2,832
exs
Elixir
lib/mix/test/mix/tasks/compile.xref_test.exs
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile.xref_test.exs
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile.xref_test.exs
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.Compile.XrefTest do use MixTest.Case import ExUnit.CaptureIO setup do Mix.Project.push MixTest.Case.Sample :ok end test "doesn't do anything if no Elixir manifest" do in_fixture "no_mixfile", fn -> write_no_func() ...
25.061947
82
0.591102
b28a8e8928174582f9d92bbfdd34371334c1e8fa
225
ex
Elixir
lib/voxpop/choice.ex
zovafit/voxpop
0af5903c010eb1164cabfd468719468cc909fcf0
[ "MIT" ]
10
2016-03-06T01:57:44.000Z
2021-02-05T02:01:10.000Z
lib/voxpop/choice.ex
zovafit/voxpop
0af5903c010eb1164cabfd468719468cc909fcf0
[ "MIT" ]
5
2016-03-06T00:59:21.000Z
2016-03-07T05:00:26.000Z
lib/voxpop/choice.ex
zovafit/voxpop
0af5903c010eb1164cabfd468719468cc909fcf0
[ "MIT" ]
3
2016-03-06T22:56:49.000Z
2017-10-10T05:37:29.000Z
defmodule Voxpop.Choice do defstruct choices: [] end defimpl Voxpop.Production, for: Voxpop.Choice do def evaluate(choice, registry) do choice.choices |> Enum.random |> Voxpop.Production.evaluate(registry) end end
22.5
73
0.755556
b28a92f720c8b445549066bd04e51020ed6c7219
370
ex
Elixir
lib/noted_web/controllers/session_controller.ex
lawik/noted
a51b5d79cf44abfc2463560f83f1a8d65e6af85e
[ "BSD-3-Clause" ]
28
2021-02-20T22:22:49.000Z
2022-03-24T21:07:39.000Z
lib/noted_web/controllers/session_controller.ex
gerhard/noted
c83bfd2e8e2950187268a2e3ba0904ae8a9773e5
[ "BSD-3-Clause" ]
5
2021-05-06T11:37:11.000Z
2021-08-31T11:38:14.000Z
lib/noted_web/controllers/session_controller.ex
gerhard/noted
c83bfd2e8e2950187268a2e3ba0904ae8a9773e5
[ "BSD-3-Clause" ]
7
2021-02-24T19:18:28.000Z
2021-09-13T16:07:08.000Z
defmodule NotedWeb.SessionController do use NotedWeb, :controller alias Noted.Telegram.Auth def session_redirect(conn, %{"auth_key" => auth_key}) do user = Auth.load_user_data(auth_key) conn |> put_session("user_id", user.id) |> redirect(to: "/") end def logout(conn, _) do conn |> c...
19.473684
58
0.648649
b28ad2ee7ca6713ace565f6d82873b0cdc82646e
138
ex
Elixir
.history/lib/example_web/controllers/hello_controller_20190916224828.ex
BenSchZA/scrapeth
b724c2d11677868fd136e2853b3eba2bbb21e379
[ "MIT" ]
null
null
null
.history/lib/example_web/controllers/hello_controller_20190916224828.ex
BenSchZA/scrapeth
b724c2d11677868fd136e2853b3eba2bbb21e379
[ "MIT" ]
2
2021-03-09T19:08:53.000Z
2021-05-10T16:15:19.000Z
.history/lib/example_web/controllers/hello_controller_20190916224828.ex
BenSchZA/scrapeth
b724c2d11677868fd136e2853b3eba2bbb21e379
[ "MIT" ]
1
2020-10-10T08:15:58.000Z
2020-10-10T08:15:58.000Z
defmodule HelloWeb.HelloController do use HelloWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.25
37
0.731884
b28adaab6197fa87d122c1b3c47f47890d5f3e52
2,889
exs
Elixir
test/api_phoenix_jwt_crud_web/controllers/user_controller_test.exs
melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud
3c90eafe889b0414ed0f027d7d42bf401682f739
[ "MIT" ]
null
null
null
test/api_phoenix_jwt_crud_web/controllers/user_controller_test.exs
melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud
3c90eafe889b0414ed0f027d7d42bf401682f739
[ "MIT" ]
null
null
null
test/api_phoenix_jwt_crud_web/controllers/user_controller_test.exs
melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud
3c90eafe889b0414ed0f027d7d42bf401682f739
[ "MIT" ]
null
null
null
defmodule ApiPhoenixJwtCrudWeb.UserControllerTest do use ApiPhoenixJwtCrudWeb.ConnCase alias ApiPhoenixJwtCrud.Auth alias ApiPhoenixJwtCrud.Auth.User @create_attrs %{ email: "some email", hashed_password: "some hashed_password", username: "some username" } @update_attrs %{ email: "some upd...
29.783505
88
0.61163
b28aed34420e445d841207da6945351cc6a7b0d8
315
ex
Elixir
fogex/lib/fogex/telemetry/events.ex
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
null
null
null
fogex/lib/fogex/telemetry/events.ex
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
null
null
null
fogex/lib/fogex/telemetry/events.ex
FogEx/poc
0d3a26b482152b4b73a279dfdb2bf69008234c06
[ "MIT" ]
null
null
null
defmodule FogEx.Telemetry.Events do def increment_total(opts \\ %{}) do :telemetry.execute([:events], %{total: 1}, opts) end def register_process_time(start_time, end_time, opts \\ %{}) do duration = end_time - start_time :telemetry.execute([:events], %{process_time: duration}, opts) end end
26.25
66
0.685714
b28affaeac042935ff672e6f74eda9e894e84307
2,476
exs
Elixir
mix.exs
obmarg/pi_project_rpi3
c58269fad88cd83f1e93efd4a2dd72b50094d83c
[ "Apache-2.0" ]
null
null
null
mix.exs
obmarg/pi_project_rpi3
c58269fad88cd83f1e93efd4a2dd72b50094d83c
[ "Apache-2.0" ]
null
null
null
mix.exs
obmarg/pi_project_rpi3
c58269fad88cd83f1e93efd4a2dd72b50094d83c
[ "Apache-2.0" ]
null
null
null
defmodule PiProjectRpi3.Mixfile do use Mix.Project @app :pi_project_rpi3 @version Path.join(__DIR__, "VERSION") |> File.read!() |> String.trim() def project do [ app: @app, version: @version, elixir: "~> 1.3", compilers: Mix.compilers ++ [:nerves_package], ...
22.107143
79
0.584814