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
0845a163c04ff84d097148eef1d5bd7d40b9d0be
3,020
ex
Elixir
lib/game/gossip.ex
jgsmith/ex_venture
546adaa8fe80d45a72fde6de8d8d6906902c12d4
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/game/gossip.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/game/gossip.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Game.Gossip do @moduledoc """ Callback module for Gossip """ require Logger alias Game.Channel alias Game.Channels alias Game.Character alias Game.Events.PlayerSignedIn alias Game.Events.PlayerSignedOut alias Game.Message alias Game.Session @behaviour Gossip.Client.Core @behaviour...
22.37037
76
0.64106
0845f1b5fafc0cf0bf0492642a0ce57fca8fd05d
213
ex
Elixir
lib/edgedb/protocol/enums/transaction_state.ex
nsidnev/edgedb-elixir
bade2b9daba2e83bfaa5915b2addb74f41610968
[ "MIT" ]
30
2021-05-19T08:54:44.000Z
2022-03-11T22:52:25.000Z
lib/edgedb/protocol/enums/transaction_state.ex
nsidnev/edgedb-elixir
bade2b9daba2e83bfaa5915b2addb74f41610968
[ "MIT" ]
3
2021-11-17T21:26:01.000Z
2022-03-12T09:49:25.000Z
lib/edgedb/protocol/enums/transaction_state.ex
nsidnev/edgedb-elixir
bade2b9daba2e83bfaa5915b2addb74f41610968
[ "MIT" ]
3
2021-08-29T14:55:41.000Z
2022-03-12T01:30:35.000Z
defmodule EdgeDB.Protocol.Enums.TransactionState do use EdgeDB.Protocol.Enum defenum( values: [ not_in_transaction: 0x49, in_transaction: 0x54, in_failed_transaction: 0x45 ] ) end
17.75
51
0.694836
08461c9168f53511391477fe82ee649fd31aa575
968
ex
Elixir
spec/support/element/trivial_sink.ex
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
spec/support/element/trivial_sink.ex
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
spec/support/element/trivial_sink.ex
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Support.Element.TrivialSink do @moduledoc """ This is minimal sample sink element for use in specs. Modify with caution as many specs may depend on its shape. """ use Membrane.Element.Base.Sink def_known_sink_pads sink: {:always, {:pull, demand_in: :buffers}, :any} @impl true def ...
22
73
0.640496
084626ebc5a9871d52c8e725f278a27d9dde3f03
898
ex
Elixir
lib/groupher_server/cms/models/community_subscriber.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
lib/groupher_server/cms/models/community_subscriber.ex
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
lib/groupher_server/cms/models/community_subscriber.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.CMS.Model.CommunitySubscriber do @moduledoc false alias __MODULE__ use Ecto.Schema import Ecto.Changeset alias GroupherServer.{Accounts, CMS} alias Accounts.Model.User alias CMS.Model.Community @required_fields ~w(user_id community_id)a @type t :: %CommunitySubscriber{} ...
27.212121
93
0.760579
08463b609ce7f2bc11f3b805ddfa24cb72740c43
2,005
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_audit_log_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_audit_log_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_audit_log_config.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...
40.1
316
0.731172
08466689fba361041982077e44d158d6509db4f6
114
ex
Elixir
lib/extripe/country_spec.ex
NarrativeApp/extripe
fc0c475e79fbf925c673ac4a67c27814c92839b6
[ "MIT" ]
28
2016-02-17T06:13:20.000Z
2022-01-31T20:25:26.000Z
lib/extripe/country_spec.ex
NarrativeApp/extripe
fc0c475e79fbf925c673ac4a67c27814c92839b6
[ "MIT" ]
17
2016-02-16T19:08:54.000Z
2021-07-23T04:10:15.000Z
lib/extripe/country_spec.ex
NarrativeApp/extripe
fc0c475e79fbf925c673ac4a67c27814c92839b6
[ "MIT" ]
6
2016-02-27T18:05:29.000Z
2019-08-01T20:27:35.000Z
defmodule Extripe.CountrySpec do use Extripe.Actions.CRUD, only: [:index, :show], resource: "country_specs" end
28.5
76
0.763158
0846bfe836d7d20fea8fa023e474040216f49449
474
ex
Elixir
lib/k6/template/grpc.ex
dallagi/elixir-k6
f6b6db55e766019e97378ea28a3ea2e9070c2e08
[ "MIT" ]
2
2021-11-28T13:13:39.000Z
2022-01-12T15:36:44.000Z
lib/k6/template/grpc.ex
dallagi/elixir-k6
f6b6db55e766019e97378ea28a3ea2e9070c2e08
[ "MIT" ]
2
2022-01-28T19:02:55.000Z
2022-02-09T08:48:02.000Z
lib/k6/template/grpc.ex
dallagi/elixir-k6
f6b6db55e766019e97378ea28a3ea2e9070c2e08
[ "MIT" ]
1
2022-01-28T09:24:45.000Z
2022-01-28T09:24:45.000Z
defmodule K6.Template.Grpc do @moduledoc """ Generates a grpc template """ use K6.Template @impl true def create(filename, opts) do url = Keyword.get(opts, :url, "localhost:9001") copy_template(template_path("grpc.js"), filename, url: url) copy_template(template_path("definitions/hello.proto"),...
23.7
85
0.685654
0846c1031e0772858438c4128895ffee04566197
2,070
ex
Elixir
clients/domains/lib/google_api/domains/v1alpha2/model/ds_record.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/domains/lib/google_api/domains/v1alpha2/model/ds_record.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/domains/lib/google_api/domains/v1alpha2/model/ds_record.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...
36.964286
183
0.704831
0846ee9208d9b96ad68f57fa9c7b36f36421ccbe
1,919
ex
Elixir
examples/typed_gen_server/lib/typed_gen_server/stage1.ex
Fl4m3Ph03n1x/gradient
60d7d3fe2ebdf68747325c1e852959f8b92fdcee
[ "Apache-2.0" ]
null
null
null
examples/typed_gen_server/lib/typed_gen_server/stage1.ex
Fl4m3Ph03n1x/gradient
60d7d3fe2ebdf68747325c1e852959f8b92fdcee
[ "Apache-2.0" ]
1
2022-03-06T09:43:52.000Z
2022-03-06T09:43:52.000Z
examples/typed_gen_server/lib/typed_gen_server/stage1.ex
Fl4m3Ph03n1x/gradient
60d7d3fe2ebdf68747325c1e852959f8b92fdcee
[ "Apache-2.0" ]
null
null
null
defmodule TypedGenServer.Stage1.Server do use GenServer use GradualizerEx.TypeAnnotation ## Start IEx with: ## iex -S mix run --no-start ## ## Then use the following to recheck the file on any change: ## recompile(); GradualizerEx.type_check_file(:code.which( TypedGenServer.Stage1.Server ), [:infer])...
28.220588
104
0.646691
0846f35e7bbabc1fcf3f7d8e6a34b488a7bb142f
16,555
exs
Elixir
test/graph/processing_test.exs
gridgentoo/cuda
e758c05674605e4601c568160904bcd5e2e7be94
[ "MIT" ]
4
2019-09-18T14:25:02.000Z
2021-12-16T12:09:10.000Z
test/graph/processing_test.exs
gridgentoo/cuda
e758c05674605e4601c568160904bcd5e2e7be94
[ "MIT" ]
null
null
null
test/graph/processing_test.exs
gridgentoo/cuda
e758c05674605e4601c568160904bcd5e2e7be94
[ "MIT" ]
1
2021-11-08T11:50:08.000Z
2021-11-08T11:50:08.000Z
defmodule Cuda.Graph.ProcessingTest do use ExUnit.Case alias Cuda.Graph.Processing alias Cuda.Graph.GraphProto, as: GProto # alias Cuda.Graph.NodeProto, as: NProto import Cuda.Test.GraphHelpers import Processing # alias Cuda.Test.GraphHelpers.Single # alias Cuda.Test.GraphHelpers.Double def traver...
39.51074
166
0.47756
0847007171c1947be54a684495903136a1cdc5fa
3,989
ex
Elixir
lib/hello/cms.ex
noahjames404/elixir-pheonix-framework
c1587709d67ef7c9bad247d4fe4ec80e23e4041b
[ "MIT" ]
null
null
null
lib/hello/cms.ex
noahjames404/elixir-pheonix-framework
c1587709d67ef7c9bad247d4fe4ec80e23e4041b
[ "MIT" ]
null
null
null
lib/hello/cms.ex
noahjames404/elixir-pheonix-framework
c1587709d67ef7c9bad247d4fe4ec80e23e4041b
[ "MIT" ]
null
null
null
defmodule Hello.CMS do @moduledoc """ The CMS context. """ import Ecto.Query, warn: false alias Hello.Repo alias Hello.CMS.{Page, Author} alias Hello.Accounts @doc """ Returns the list of pages. ## Examples iex> list_pages() [%Page{}, ...] """ def list_pages do Repo.all(Pag...
17.650442
61
0.585109
084722c0b2d253b1ced1a44c53c460ab8b1d71a9
1,404
ex
Elixir
apps/bytepack_web/lib/bytepack_web/views/error_helpers.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack_web/lib/bytepack_web/views/error_helpers.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack_web/lib/bytepack_web/views/error_helpers.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule BytepackWeb.ErrorHelpers do @moduledoc """ Functions for generating error related things """ use Phoenix.HTML @doc """ Traverses a changeset and translate the errors within. It returns a map that has lists with error messages or other maps in case of nested associations. """ def error_ma...
27
98
0.688034
08473d67f5f7a0bd90a25225db9422b35552f9de
3,484
exs
Elixir
apps/fz_http/mix.exs
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
null
null
null
apps/fz_http/mix.exs
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
null
null
null
apps/fz_http/mix.exs
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
null
null
null
defmodule FzHttp.MixProject do use Mix.Project def version do # Use dummy version for dev and test System.get_env("VERSION", "0.0.0+git.0.deadbeef") end def project do [ app: :fz_http, version: version(), build_path: "../../_build", config_path: "../../config/config.exs", ...
28.325203
96
0.53186
08474df6652301baac42790d4e5030826381474f
2,209
ex
Elixir
kousa/lib/beef/room_permissions.ex
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
9
2021-03-17T03:56:18.000Z
2021-09-24T22:45:14.000Z
kousa/lib/beef/room_permissions.ex
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/lib/beef/room_permissions.ex
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule Beef.RoomPermissions do import Ecto.Query def insert(data) do %Beef.Schemas.RoomPermission{} |> Beef.Schemas.RoomPermission.insert_changeset(data) |> Beef.Repo.insert(on_conflict: :nothing) end def upsert(data, set, returning \\ true) do %Beef.Schemas.RoomPermission{} |> Beef.Sch...
24.544444
92
0.627886
084769f3322c2835ecded5055ccba2aa2a84a691
2,205
ex
Elixir
lib/scenic/primitive/group.ex
mikeover/scenic
4b61c4996ed2d06b8cdf94f88c8a0522160e10b5
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/group.ex
mikeover/scenic
4b61c4996ed2d06b8cdf94f88c8a0522160e10b5
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/group.ex
mikeover/scenic
4b61c4996ed2d06b8cdf94f88c8a0522160e10b5
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 5/6/17. # Copyright © 2017 Kry10 Industries. All rights reserved. # defmodule Scenic.Primitive.Group do use Scenic.Primitive alias Scenic.Primitive # alias Scenic.Graph # import IEx # ============================================================================ # data v...
28.269231
101
0.437188
084775cbcc20aa69d47d2aa963d4b10892878130
69
ex
Elixir
web/views/api_view.ex
kentcdodds/changelog.com
e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d
[ "MIT" ]
null
null
null
web/views/api_view.ex
kentcdodds/changelog.com
e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d
[ "MIT" ]
null
null
null
web/views/api_view.ex
kentcdodds/changelog.com
e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d
[ "MIT" ]
null
null
null
defmodule Changelog.ApiView do use Changelog.Web, :public_view end
17.25
33
0.811594
08477d3d43cda28ff619f987fc740dd8004dc9ea
3,266
exs
Elixir
test/integration/integration_test.exs
sevenmind/KaufmannEx
44225125946921850316c272db53175bb1658fb7
[ "MIT" ]
84
2018-03-20T08:19:10.000Z
2022-01-30T07:40:56.000Z
test/integration/integration_test.exs
sevenmind/KaufmannEx
44225125946921850316c272db53175bb1658fb7
[ "MIT" ]
23
2018-03-29T15:15:56.000Z
2019-12-04T14:53:57.000Z
test/integration/integration_test.exs
sevenmind/KaufmannEx
44225125946921850316c272db53175bb1658fb7
[ "MIT" ]
8
2018-07-03T18:18:27.000Z
2022-03-08T14:04:09.000Z
defmodule IntegrationTest.SubscriberListener do use KaufmannEx.EventHandler require Logger def publish(pid, noise \\ "") do message_body = %{ payload: %{message: pid_to_binary(pid) <> "::" <> noise}, meta: %{ message_id: Nanoid.generate(), emitter_service: KaufmannEx.Config.servic...
26.770492
91
0.659522
0847b185b3c87ca3c533db0523594c460ad8932b
2,316
exs
Elixir
test/bbb_lti_web/controllers/api/clients_controller_test.exs
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
test/bbb_lti_web/controllers/api/clients_controller_test.exs
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
test/bbb_lti_web/controllers/api/clients_controller_test.exs
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
defmodule BbbLtiWeb.Api.ClientsControllerTest do use BbbLtiWeb.ConnCase alias BbbLti.Clients @client_params %{ clientId: "@portal/some-id", clientSecret: "some-random-string" } describe "basic auth:" do test "fails when missing basic auth", %{conn: conn} do conn = post(conn, Routes.api_cl...
32.166667
95
0.658031
0847c8f397cdd775dc52f6d818c571b9d8c99bb3
2,483
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_list_select_item.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2019-01-03T22:30:36.000Z
2019-01-03T22:30:36.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_list_select_item.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_list_select_item.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
36.514706
140
0.754732
0847dd3702af68a2b3a2008ab1811395dec065fe
182
exs
Elixir
test/controllers/page_controller_test.exs
RobertDober/Ashboard
c17218614b515f8f3db85d3975bde8e878457019
[ "Apache-2.0" ]
null
null
null
test/controllers/page_controller_test.exs
RobertDober/Ashboard
c17218614b515f8f3db85d3975bde8e878457019
[ "Apache-2.0" ]
null
null
null
test/controllers/page_controller_test.exs
RobertDober/Ashboard
c17218614b515f8f3db85d3975bde8e878457019
[ "Apache-2.0" ]
null
null
null
defmodule Ashboard.PageControllerTest do use Ashboard.ConnCase test "GET /" do conn = get conn(), "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
20.222222
60
0.681319
0848422f2c9252ef23f07616971827c4a55f7ab4
373
ex
Elixir
lib/ex_rss_web/views/error_view.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
4
2020-02-16T07:18:35.000Z
2021-12-09T14:43:10.000Z
lib/ex_rss_web/views/error_view.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
27
2019-10-16T18:35:19.000Z
2022-03-13T16:39:57.000Z
lib/ex_rss_web/views/error_view.ex
cruessler/exrss
6ac17b7533d78460a1c34cabaae86fec317f460a
[ "MIT" ]
null
null
null
defmodule ExRssWeb.ErrorView do use ExRssWeb, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_template, a...
20.722222
47
0.697051
08484e12e4fb4c2a13acd582bbd7da71bdc4c6cb
381
ex
Elixir
dingen/lib/dingen_web/tenant/tenant_enforcement_plug.ex
rmoorman/dingen-2018011-tenants
02f3fa618b9a266340d4a4993420dc5641cec08e
[ "MIT" ]
null
null
null
dingen/lib/dingen_web/tenant/tenant_enforcement_plug.ex
rmoorman/dingen-2018011-tenants
02f3fa618b9a266340d4a4993420dc5641cec08e
[ "MIT" ]
null
null
null
dingen/lib/dingen_web/tenant/tenant_enforcement_plug.ex
rmoorman/dingen-2018011-tenants
02f3fa618b9a266340d4a4993420dc5641cec08e
[ "MIT" ]
null
null
null
defmodule DingenWeb.Tenant.EnforcementPlug do import Plug.Conn alias Plug.Conn alias DingenWeb.Tenant.LookupPlug ### ### Plug interface ### def init(opts), do: opts def call(%Conn{} = conn, _opts) do case LookupPlug.get_tenant(conn) do nil -> conn |> resp(404, "Not found") ...
15.24
45
0.577428
08485dd6d68277238a581fb56f415602c832c4f7
102
exs
Elixir
test/strichliste_elixir_web/views/layout_view_test.exs
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
null
null
null
test/strichliste_elixir_web/views/layout_view_test.exs
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
null
null
null
test/strichliste_elixir_web/views/layout_view_test.exs
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
1
2019-05-24T18:18:24.000Z
2019-05-24T18:18:24.000Z
defmodule StrichlisteElixirWeb.LayoutViewTest do use StrichlisteElixirWeb.ConnCase, async: true end
25.5
48
0.862745
08487e7c26401ffda2835dc642cd8e7f48205db4
65
ex
Elixir
web/views/design_group_view.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
48
2015-06-29T21:20:25.000Z
2021-05-09T04:27:41.000Z
web/views/design_group_view.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
null
null
null
web/views/design_group_view.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
15
2015-06-29T21:13:57.000Z
2021-07-27T10:02:40.000Z
defmodule Survey.DesignGroupView do use Survey.Web, :view end
13
35
0.784615
08487e88068a2ac7827a7ac393aae25c2de23024
1,988
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/route_list_warning_data.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/route_list_warning_data.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/route_list_warning_data.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 ...
39.76
527
0.737928
08488325fbb020c1fbbda01d66b22c09134a1d09
1,890
ex
Elixir
lib/rig_kafka/config.ex
steveoliver/reactive-interaction-gateway
59b6dc994fd0f098bed19b7bf1e699513ac87167
[ "Apache-2.0" ]
518
2017-11-09T13:10:49.000Z
2022-03-28T14:29:50.000Z
lib/rig_kafka/config.ex
steveoliver/reactive-interaction-gateway
59b6dc994fd0f098bed19b7bf1e699513ac87167
[ "Apache-2.0" ]
270
2017-11-10T00:11:34.000Z
2022-02-27T13:08:16.000Z
lib/rig_kafka/config.ex
steveoliver/reactive-interaction-gateway
59b6dc994fd0f098bed19b7bf1e699513ac87167
[ "Apache-2.0" ]
67
2017-12-19T20:16:37.000Z
2022-03-31T10:43:04.000Z
defmodule RigKafka.Config do @moduledoc """ Kafka connection configuration. """ @type broker :: { host :: String.t(), port :: pos_integer() } @type topic :: String.t() @type ssl_config :: %{ path_to_key_pem: String.t(), key_password: String.t(), pa...
24.230769
86
0.547619
08489ae4105b057ad785497e981ff916619a5bf3
622
ex
Elixir
integration_test/support/factory.ex
fartek/barna
cdcc7a89fa3e66459568863cf7713651abb0c688
[ "MIT" ]
null
null
null
integration_test/support/factory.ex
fartek/barna
cdcc7a89fa3e66459568863cf7713651abb0c688
[ "MIT" ]
null
null
null
integration_test/support/factory.ex
fartek/barna
cdcc7a89fa3e66459568863cf7713651abb0c688
[ "MIT" ]
null
null
null
defmodule Barna.Integration.Factory do alias Barna.Integration.{Address, Comment, TestRepo, User} def insert!(factory_name, attributes \\ []) do factory_name |> build(attributes) |> TestRepo.insert!() end def build(factory_name, attributes) do factory_name |> build() |> struct(attributes) end def...
21.448276
64
0.649518
0848bed0ce91e8cbdb98e225eeea091f6c728943
1,318
ex
Elixir
apps/blunt/lib/blunt/dispatch_strategy/pipeline_resolver.ex
blunt-elixir/blunt
a88b88984022db7ba2110204248fdb541121e3a0
[ "MIT" ]
1
2022-03-07T11:54:47.000Z
2022-03-07T11:54:47.000Z
apps/blunt/lib/blunt/dispatch_strategy/pipeline_resolver.ex
elixir-cqrs/cqrs_tools
afbf82da522a10d2413547a46f316ed3aadebba5
[ "MIT" ]
null
null
null
apps/blunt/lib/blunt/dispatch_strategy/pipeline_resolver.ex
elixir-cqrs/cqrs_tools
afbf82da522a10d2413547a46f316ed3aadebba5
[ "MIT" ]
null
null
null
defmodule Blunt.DispatchStrategy.PipelineResolver do alias Blunt.{Behaviour, Config, DispatchContext} defmodule Error do defexception [:message] end @type message_type :: atom() @type message_module :: atom() @type pipeline_module :: atom() @type behaviour_module :: atom() @type context :: Dispatc...
37.657143
117
0.726859
0849261d916829c6b6cd2ed48b470834b8d6bc97
7,652
ex
Elixir
lib/parse/posix/parser.ex
Adzz/timex
a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea
[ "MIT" ]
null
null
null
lib/parse/posix/parser.ex
Adzz/timex
a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea
[ "MIT" ]
null
null
null
lib/parse/posix/parser.ex
Adzz/timex
a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea
[ "MIT" ]
null
null
null
defmodule Timex.Parse.Timezones.Posix do @moduledoc """ Parses POSIX-style timezones: ## Format POSIX-style timezones are of the format: `local_timezone,date/time,date/time` Where `date` is in the `Mm.n.d` format, and where: - `Mm` (1-12) for 12 months - `n` (1-5) 1 for the first week and 5 for the la...
34.624434
98
0.581417
08493f901a93449004fdd95140727773ccb306d5
614
ex
Elixir
backend/apps/students_crm_v2/lib/students_crm_v2/interactions/academic_group/create.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
backend/apps/students_crm_v2/lib/students_crm_v2/interactions/academic_group/create.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
50
2018-07-29T09:17:35.000Z
2019-02-26T05:23:34.000Z
backend/apps/students_crm_v2/lib/students_crm_v2/interactions/academic_group/create.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
defmodule StudentsCrmV2.Interactions.AcademicGroup.Create do @moduledoc false alias StudentsCrmV2.Interactions.AcademicGroup.CreateOrUpdate alias StudentsCrmV2.Repo alias StudentsCrmV2.Models.{ AcademicGroup, User } @fields ~w[name established_on tenant_id description]a @required_fields ~w[name...
27.909091
106
0.732899
08494297ecd38213aa0fcbac1dd5b0465e4db591
2,021
ex
Elixir
lib/runner.ex
Imtiyaaz1234/elixir-koans
e1a8a55e3acbb88bb598becf3f40cb52f912e60a
[ "MIT" ]
1
2021-08-02T08:02:33.000Z
2021-08-02T08:02:33.000Z
lib/runner.ex
Imtiyaaz1234/elixir-koans
e1a8a55e3acbb88bb598becf3f40cb52f912e60a
[ "MIT" ]
null
null
null
lib/runner.ex
Imtiyaaz1234/elixir-koans
e1a8a55e3acbb88bb598becf3f40cb52f912e60a
[ "MIT" ]
null
null
null
defmodule Runner do use GenServer def koan?(koan) do case Code.ensure_loaded(koan) do {:module, _} -> Keyword.has_key?(koan.__info__(:functions), :all_koans) _ -> false end end def modules do {:ok, modules} = :application.get_key(:elixir_koans, :modules) modules |> Stream.map(...
21.731183
89
0.616032
0849433bcf6deaf4170982850893c01c3ee678be
3,899
exs
Elixir
test/unit/ntriples_encoder_test.exs
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
53
2017-06-25T22:20:44.000Z
2020-04-27T17:27:51.000Z
test/unit/ntriples_encoder_test.exs
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
7
2017-06-25T00:29:11.000Z
2020-03-11T00:23:47.000Z
test/unit/ntriples_encoder_test.exs
rdf-elixir/rdf-ex
7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a
[ "MIT" ]
3
2020-07-03T13:25:36.000Z
2021-04-04T12:33:51.000Z
defmodule RDF.NTriples.EncoderTest do use ExUnit.Case, async: false alias RDF.NTriples doctest NTriples.Encoder alias RDF.Graph alias RDF.NS.XSD import RDF.Sigils import RDF.Test.Case, only: [stream_to_string: 1] use RDF.Vocabulary.Namespace defvocab EX, base_iri: "http://example.org/#", terms: ...
33.904348
101
0.479097
08495f07f5617baf89bfb3e375c04f4d3f76aa6a
327
ex
Elixir
lib/server_router.ex
adz/cowboy_sockets_with_elm_experiment
39370908233df8ad64b6347cd5c78c85e2cb6d71
[ "MIT" ]
null
null
null
lib/server_router.ex
adz/cowboy_sockets_with_elm_experiment
39370908233df8ad64b6347cd5c78c85e2cb6d71
[ "MIT" ]
null
null
null
lib/server_router.ex
adz/cowboy_sockets_with_elm_experiment
39370908233df8ad64b6347cd5c78c85e2cb6d71
[ "MIT" ]
null
null
null
defmodule Server.Router do use Plug.Router plug Plug.Static, at: "/", from: "static" plug :match plug :dispatch match _ do send_resp(conn, 200, """ <h1>PREPARE</h1> <h2>FOR WEIRD SQUARE</h2> <script> document.location = "/index.html" </script> """) e...
17.210526
43
0.547401
08496bd3efead37ced254efd514f7e3373896ed2
368
ex
Elixir
test/support/split_generator.ex
montebrown/money
4a4dcccb37e00f8cfbf5094b8e089a1c13e923d7
[ "Apache-2.0" ]
426
2016-10-10T08:53:20.000Z
2022-03-17T04:28:00.000Z
test/support/split_generator.ex
montebrown/money
4a4dcccb37e00f8cfbf5094b8e089a1c13e923d7
[ "Apache-2.0" ]
131
2016-12-03T22:43:52.000Z
2022-02-13T22:35:57.000Z
test/support/split_generator.ex
montebrown/money
4a4dcccb37e00f8cfbf5094b8e089a1c13e923d7
[ "Apache-2.0" ]
47
2017-02-18T08:11:26.000Z
2022-01-26T19:31:34.000Z
defmodule GenerateSplits do require ExUnitProperties def generate_money do ExUnitProperties.gen all( value <- StreamData.float(min: 0.0, max: 999_999_999_999_999.9), split <- StreamData.integer(1..101) ) do {Money.new(:USD, Fl...
28.307692
91
0.567935
0849763839f7ad9570b21ee538c256a26ede2ac4
1,888
exs
Elixir
mix.exs
langens-jonathan/mu-authorization
3b411460b81b87581af7c7f302b1d3bec4610608
[ "MIT" ]
1
2019-09-05T23:00:48.000Z
2019-09-05T23:00:48.000Z
mix.exs
langens-jonathan/mu-authorization
3b411460b81b87581af7c7f302b1d3bec4610608
[ "MIT" ]
7
2020-10-27T20:42:06.000Z
2021-11-15T07:41:15.000Z
mix.exs
langens-jonathan/mu-authorization
3b411460b81b87581af7c7f302b1d3bec4610608
[ "MIT" ]
6
2016-04-06T09:28:43.000Z
2021-08-09T12:29:16.000Z
defmodule MuAuthorization.MixProject do use Mix.Project @github_url "https://github.com/mu-semtech/mu-authorization" def project do [ app: :"mu-authorization", version: "0.5.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, erlc_paths: ["parser-generator"], deps:...
27.362319
90
0.53072
0849c863b6d9baf4ae92b48cb36035d2dce00295
424
ex
Elixir
lib/requestbx_web/views/error_view.ex
semlabs/requestbx
b9dfb33efd04f067ede1a8e2659f84c92abbed67
[ "MIT" ]
null
null
null
lib/requestbx_web/views/error_view.ex
semlabs/requestbx
b9dfb33efd04f067ede1a8e2659f84c92abbed67
[ "MIT" ]
1
2018-01-19T15:23:36.000Z
2018-01-19T15:23:36.000Z
lib/requestbx_web/views/error_view.ex
semlabs/requestbx
b9dfb33efd04f067ede1a8e2659f84c92abbed67
[ "MIT" ]
null
null
null
defmodule RequestbxWeb.ErrorView do use RequestbxWeb, :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.555556
49
0.688679
0849f45a17413f93ae49b0e46f6a1c297a7b48c3
2,145
ex
Elixir
lib/realtime_signs.ex
mbta/realtime_signs
3fd8cbc26ce2b0820e608e60fe12135dab5def69
[ "MIT" ]
1
2022-01-24T12:39:05.000Z
2022-01-24T12:39:05.000Z
lib/realtime_signs.ex
mbta/realtime_signs
3fd8cbc26ce2b0820e608e60fe12135dab5def69
[ "MIT" ]
40
2021-05-05T10:14:25.000Z
2022-03-31T18:34:15.000Z
lib/realtime_signs.ex
mbta/realtime_signs
3fd8cbc26ce2b0820e608e60fe12135dab5def69
[ "MIT" ]
1
2022-03-20T21:08:12.000Z
2022-03-20T21:08:12.000Z
defmodule RealtimeSigns do require Logger alias RealtimeSignsConfig, as: Config def start(_type, _args) do import Supervisor.Spec, warn: false Logger.info( "Starting realtime_signs version #{inspect(Application.spec(:realtime_signs, :vsn))}" ) runtime_config() children = [ ...
32.014925
97
0.660606
0849fceab4fe72d94d86cb3dfbf1b73492014f15
3,108
ex
Elixir
lib/erlnote_web/schema/accounts_types.ex
alchexmist/erlnote
e1f164e63616316e1d3869ebfae5ed2ae96c3ccd
[ "Apache-2.0" ]
null
null
null
lib/erlnote_web/schema/accounts_types.ex
alchexmist/erlnote
e1f164e63616316e1d3869ebfae5ed2ae96c3ccd
[ "Apache-2.0" ]
1
2019-11-02T13:46:12.000Z
2019-11-02T13:46:12.000Z
lib/erlnote_web/schema/accounts_types.ex
alchexmist/erlnote
e1f164e63616316e1d3869ebfae5ed2ae96c3ccd
[ "Apache-2.0" ]
null
null
null
defmodule ErlnoteWeb.Schema.AccountsTypes do use Absinthe.Schema.Notation alias ErlnoteWeb.Resolvers object :credential do field :email, :string field :password_hash, :string end # object :user do # field :id, :id # field :name, :string # field :username, :string # field :credenti...
25.064516
108
0.562098
084a1a5ef78d0f642386f90d4850c4398badfb48
2,200
exs
Elixir
config/prod.exs
lukkor/exlog
f2812d25e7712c41db5a9bf5bf3977255916c8e1
[ "MIT" ]
null
null
null
config/prod.exs
lukkor/exlog
f2812d25e7712c41db5a9bf5bf3977255916c8e1
[ "MIT" ]
null
null
null
config/prod.exs
lukkor/exlog
f2812d25e7712c41db5a9bf5bf3977255916c8e1
[ "MIT" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # Exlog.Web.Endpoint.load_from_system_env/1 dynamically. # Any dynamic configuration should be moved to such function. #...
33.846154
67
0.718182
084a2029a664a75706585a5bb23b9d622c39a6b8
264
ex
Elixir
lib/nostalgic_games_web/controllers/fallback_controller.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
lib/nostalgic_games_web/controllers/fallback_controller.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
lib/nostalgic_games_web/controllers/fallback_controller.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
defmodule NostalgicGamesWeb.FallbackController do use NostalgicGamesWeb, :controller def call(conn, {:error, result}) do conn |> put_status(:bad_request) |> put_view(NostalgicGamesWeb.ErrorView) |> render("400.json", result: result) end end
24
49
0.719697
084a278d2e35a24d351abc728e3e6c7c4645d512
2,452
ex
Elixir
web/controllers/html_cachegroup_parameter_controller.ex
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
2
2016-11-16T17:24:21.000Z
2019-02-15T05:38:27.000Z
web/controllers/html_cachegroup_parameter_controller.ex
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
null
null
null
web/controllers/html_cachegroup_parameter_controller.ex
rob05c/tox
f54847ca058ad24b909341ad65d595a4069d2471
[ "Apache-2.0" ]
null
null
null
defmodule Tox.HtmlCachegroupParameterController do use Tox.Web, :controller alias Tox.CachegroupParameter def index(conn, _params) do cachegroupparameters = Repo.all(CachegroupParameter) render(conn, "index.html", cachegroupparameters: cachegroupparameters) end def new(conn, _params) do changes...
37.151515
99
0.719005
084a515aa745486af7cbb322ba5865e10f2e2caa
197
exs
Elixir
priv/repo/migrations/20170924205210_add_ectology_to_rooms.exs
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
priv/repo/migrations/20170924205210_add_ectology_to_rooms.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
priv/repo/migrations/20170924205210_add_ectology_to_rooms.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Data.Repo.Migrations.AddEctologyToRooms do use Ecto.Migration def change do alter table(:rooms) do add :ecology, :string, default: "default", null: false end end end
19.7
60
0.705584
084a52536b560e0a25f900f8abf77084eb58d0b4
1,402
ex
Elixir
lib/romeo/connection/features.ex
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
78
2015-11-17T14:24:27.000Z
2022-01-18T05:24:23.000Z
lib/romeo/connection/features.ex
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
38
2015-12-16T07:35:28.000Z
2021-04-06T08:52:01.000Z
lib/romeo/connection/features.ex
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
56
2015-11-23T17:57:52.000Z
2022-01-20T16:17:29.000Z
defmodule Romeo.Connection.Features do @moduledoc """ Parses XMPP Stream features. """ use Romeo.XML @type t :: %__MODULE__{} defstruct [ amp?: false, compression?: false, registration?: false, stream_management?: false, tls?: false, mechanisms: [] ] def parse_stream_features(...
26.45283
77
0.639087
084a5a7988d72dd5e29b91ed6027edce087b7432
2,617
ex
Elixir
lib/tasks/mfa.ex
kianmeng/elixir_git_hooks
3abff7e651214cdd54e04dd6e3221fa97ceefbcb
[ "MIT" ]
null
null
null
lib/tasks/mfa.ex
kianmeng/elixir_git_hooks
3abff7e651214cdd54e04dd6e3221fa97ceefbcb
[ "MIT" ]
null
null
null
lib/tasks/mfa.ex
kianmeng/elixir_git_hooks
3abff7e651214cdd54e04dd6e3221fa97ceefbcb
[ "MIT" ]
null
null
null
defmodule GitHooks.Tasks.MFA do @moduledoc """ Represents a `{module, function, arity}` (a.k.a. `mfa`) that will be evaluated by the Kernel module. An `mfa` should be configured as `{module, function, arity}`. The function of the module **will always receive the hook arguments** and the arity is expected t...
25.910891
115
0.631639
084a6ecdf4ad4984aae3f8618740ded23d2fb45e
609
ex
Elixir
lib/news/user_password.ex
randomlabs/news
6aa200858bac69613af1de91420c6425f4517853
[ "MIT" ]
3
2015-08-12T20:45:57.000Z
2015-10-26T09:20:10.000Z
lib/news/user_password.ex
randomlabs/news
6aa200858bac69613af1de91420c6425f4517853
[ "MIT" ]
15
2015-08-12T16:20:42.000Z
2015-10-12T16:12:15.000Z
lib/news/user_password.ex
randomlabs/news
6aa200858bac69613af1de91420c6425f4517853
[ "MIT" ]
1
2015-08-20T17:43:10.000Z
2015-08-20T17:43:10.000Z
defmodule News.UserPassword do alias News.Repo import Ecto.Changeset, only: [put_change: 3] import Comeonin.Bcrypt, only: [hashpwsalt: 1] @doc """ Generates a password for the user changeset and stores it to the changeset as encrypted_password. """ def generate_password(changeset) do put_change(ch...
26.478261
101
0.719212
084a7a30568461b9d06ef6e104fac81883885bfa
1,178
exs
Elixir
mix.exs
c4710n/scrivener_html_semi
dbf647508d07e98a5c484f36c0f0ebc2dae777ea
[ "MIT" ]
null
null
null
mix.exs
c4710n/scrivener_html_semi
dbf647508d07e98a5c484f36c0f0ebc2dae777ea
[ "MIT" ]
null
null
null
mix.exs
c4710n/scrivener_html_semi
dbf647508d07e98a5c484f36c0f0ebc2dae777ea
[ "MIT" ]
null
null
null
defmodule Scrivener.HTML.MixProject do use Mix.Project @version "3.1.1" @github_url "https://github.com/c4710n/scrivener_html_semi" def project do [ app: :scrivener_html_semi, description: "HTML helpers for Scrivener.", version: @version, elixir: "~> 1.11", start_permanent: M...
19.966102
61
0.550934
084a86d22a4312864222056c74b13fcae8898a54
1,016
exs
Elixir
config/prod.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
config/prod.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
config/prod.exs
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
26.736842
59
0.740157
084a90f4669c95b05859ba28855cf792b4a4a9f8
395
exs
Elixir
30daysofcode/day27_testing.exs
nathanchere/HackerRank_Elixir
607e4ae10d94edb20296c8979179648af4af3ca6
[ "MIT" ]
2
2016-09-20T11:56:33.000Z
2016-10-20T20:11:04.000Z
30daysofcode/day27_testing.exs
nathanchere/HackerRank_Elixir
607e4ae10d94edb20296c8979179648af4af3ca6
[ "MIT" ]
null
null
null
30daysofcode/day27_testing.exs
nathanchere/HackerRank_Elixir
607e4ae10d94edb20296c8979179648af4af3ca6
[ "MIT" ]
null
null
null
# HackerRank "30 Days of Code" - Day 27 - Testing # This 'excercise' is a complete waste of space and the # imbecile who put it together should be taken out into # a remote field and shot. IO.puts("5") IO.puts("5 3") IO.puts("-1 90 999 100 0") IO.puts("4 2") IO.puts("0 -1 2 1") IO.puts("3 3") IO.puts("-1 0 1") IO.put...
21.944444
55
0.622785
084aa20e47188117e8f9967dab70bfbcb2c7bc19
154
exs
Elixir
.formatter.exs
geometerio/euclid
9a9e059ec77d87858ae7878df8d4d75dc01c57f8
[ "MIT-0" ]
4
2021-06-14T13:54:05.000Z
2021-10-22T02:55:16.000Z
.formatter.exs
geometerio/euclid
9a9e059ec77d87858ae7878df8d4d75dc01c57f8
[ "MIT-0" ]
3
2021-06-15T21:45:51.000Z
2022-01-14T20:08:32.000Z
.formatter.exs
geometerio/euclid
9a9e059ec77d87858ae7878df8d4d75dc01c57f8
[ "MIT-0" ]
null
null
null
[ import_deps: [], inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"], line_length: 150, locals_without_parens: [], subdirectories: [] ]
19.25
60
0.577922
084ac039c85bbe7dc7499b96989d0993c823ef40
1,214
ex
Elixir
clients/memcache/lib/google_api/memcache/v1beta2/model/zone_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/memcache/lib/google_api/memcache/v1beta2/model/zone_metadata.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/memcache/lib/google_api/memcache/v1beta2/model/zone_metadata.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...
28.904762
77
0.759473
084adeac8751cfc42886a1ca4c35e84201e4de67
1,868
ex
Elixir
clients/web_risk/lib/google_api/web_risk/v1/model/google_cloud_webrisk_v1_search_uris_response_threat_uri.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/web_risk/lib/google_api/web_risk/v1/model/google_cloud_webrisk_v1_search_uris_response_threat_uri.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/web_risk/lib/google_api/web_risk/v1/model/google_cloud_webrisk_v1_search_uris_response_threat_uri.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.963636
187
0.737687
084b04bac1fcb89c35b9f217298233aa5cdbc383
696
exs
Elixir
mix.exs
leomindez/Elixir-Cards
f6cd96c2d7872055fa683ccfd344d40929c56a16
[ "MIT" ]
1
2020-09-03T18:06:25.000Z
2020-09-03T18:06:25.000Z
mix.exs
leomindez/Elixir-Cards
f6cd96c2d7872055fa683ccfd344d40929c56a16
[ "MIT" ]
null
null
null
mix.exs
leomindez/Elixir-Cards
f6cd96c2d7872055fa683ccfd344d40929c56a16
[ "MIT" ]
null
null
null
defmodule Cards.Mixfile do use Mix.Project def project do [app: :cards, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" for more i...
19.885714
77
0.590517
084b3a8d0eae5d06b37690cf6c98ed4f059f0bd5
3,050
exs
Elixir
lib/mix/test/mix/tasks/profile.cprof_test.exs
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
1
2019-10-11T01:36:26.000Z
2019-10-11T01:36:26.000Z
lib/mix/test/mix/tasks/profile.cprof_test.exs
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/mix/test/mix/tasks/profile.cprof_test.exs
andrewtimberlake/elixir
a1c4ffc897f9407fe7e739e20e697805fbbff810
[ "Apache-2.0" ]
null
null
null
Code.require_file("../../test_helper.exs", __DIR__) defmodule Mix.Tasks.Profile.CprofTest do use MixTest.Case import ExUnit.CaptureIO alias Mix.Tasks.Profile.Cprof @expr "Enum.each(1..5, &String.Chars.Integer.to_string/1)" test "profiles evaluated expression", context do in_tmp(context.test, fn -> ...
28.504673
91
0.562295
084b50902b1d19f85f9d399238810deb76e37627
3,170
ex
Elixir
lib/codes/codes_c18.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c18.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_c18.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_C18 do alias IcdCode.ICDCode def _C180 do %ICDCode{full_code: "C180", category_code: "C18", short_code: "0", full_name: "Malignant neoplasm of cecum", short_name: "Malignant neoplasm of cecum", category_name: "Malignant neoplasm of...
32.680412
75
0.616404
084b97636976517f7d9a5bff1a8dd0e886cb777b
797
exs
Elixir
implements/series/series.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
implements/series/series.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
1
2018-06-19T18:59:41.000Z
2018-06-19T18:59:41.000Z
implements/series/series.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
defmodule StringSeries do @doc """ Given a string `s` and a positive integer `size`, return all substrings of that size. If `size` is greater than the length of `s`, or less than 1, return an empty list. """ @spec slices(s :: String.t(), size :: integer) :: list(String.t()) def slices(_, size) when size <...
31.88
76
0.621079
084bed83cc02f7b26c1acb7f039ff4a8bdee9006
19,730
ex
Elixir
testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/UnqualifiedNoArgumentsStabElseStabBlock.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/unmatched_expression_parsing_test_case/UnqualifiedNoArgumentsStabElseStabBlock.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/unmatched_expression_parsing_test_case/UnqualifiedNoArgumentsStabElseStabBlock.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
# # identifier do expression else * end # identifier do one else two end identifier do one; else; two; end identifier do one else two end identifier do one else two end identifier do one else -> end identifier do one else -> ; end identifier do one else -> end identifier do one else -> end identifier...
16.252059
73
0.592955
084c02b0e23a21511a719f5169f03e23fba571fe
82,695
exs
Elixir
test/ecto/changeset_test.exs
MalmarPadecain/ecto
78ff739c44cf4c53f4dbd1a510a5778e6e7d757b
[ "Apache-2.0" ]
null
null
null
test/ecto/changeset_test.exs
MalmarPadecain/ecto
78ff739c44cf4c53f4dbd1a510a5778e6e7d757b
[ "Apache-2.0" ]
null
null
null
test/ecto/changeset_test.exs
MalmarPadecain/ecto
78ff739c44cf4c53f4dbd1a510a5778e6e7d757b
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.ChangesetTest do use ExUnit.Case, async: true import Ecto.Changeset require Ecto.Query defmodule SocialSource do use Ecto.Schema @primary_key false embedded_schema do field :origin field :url end def changeset(schema \\ %SocialSource{}, params) do cast(sch...
38.860432
167
0.633932
084c1e0e13417548218fedf2514d3661eff8754e
846
ex
Elixir
apps/performance_3/lib/metrics_collector/web/endpoint.ex
WhiteRookPL/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
14
2017-08-09T14:21:47.000Z
2022-03-11T04:10:49.000Z
apps/performance_3/lib/metrics_collector/web/endpoint.ex
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
null
null
null
apps/performance_3/lib/metrics_collector/web/endpoint.ex
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
15
2017-09-05T15:43:53.000Z
2020-04-13T16:20:18.000Z
defmodule MetricsCollector.Web.Endpoint do use Phoenix.Endpoint, otp_app: :metrics_collector plug Plug.RequestId plug Plug.Logger plug Plug.Parsers, parsers: [ :urlencoded, :multipart, :json ], pass: [ "*/*" ], json_decoder: Poison plug Plug.MethodOverride plug Plug.Head plug Plug.Session,...
24.882353
93
0.712766
084c1fecf603fc84f6017c9f7e091bbeda1eec7c
5,107
ex
Elixir
apps/publishing/lib/publishing/manage.ex
Lgdev07/branchpage
302731d35446292ca7b9ec67c46db67cd0393849
[ "MIT" ]
null
null
null
apps/publishing/lib/publishing/manage.ex
Lgdev07/branchpage
302731d35446292ca7b9ec67c46db67cd0393849
[ "MIT" ]
null
null
null
apps/publishing/lib/publishing/manage.ex
Lgdev07/branchpage
302731d35446292ca7b9ec67c46db67cd0393849
[ "MIT" ]
null
null
null
defmodule Publishing.Manage do @moduledoc """ Manage's public API. """ alias Publishing.Integration alias Publishing.Manage.{Article, Blog, Platform} alias Publishing.Markdown alias Publishing.Repo import Ecto.Query def list_articles(opts \\ []) do start_cursor = opts[:cursor] || DateTime.utc_n...
22.901345
78
0.566477
084c2f29d86f918644db15466aa7d7a0244bbdc7
148
exs
Elixir
test/auth/uberauth/dummy_strategy_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
test/auth/uberauth/dummy_strategy_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
test/auth/uberauth/dummy_strategy_test.exs
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule AccentTest.Auth.Uberauth.DummyStrategy do use ExUnit.Case, async: true doctest(Accent.Auth.Ueberauth.DummyStrategy, import: true) end
29.6
60
0.810811
084c2faa75232955591ec5e152fd49a738109b14
2,238
ex
Elixir
apps/api/lib/api_web/router.ex
asamoal/plural
5b336f27cb2d775560e35e5323192c42d62e72f5
[ "Apache-2.0" ]
59
2021-09-16T19:29:39.000Z
2022-03-31T20:44:24.000Z
apps/api/lib/api_web/router.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
111
2021-08-15T09:56:37.000Z
2022-03-31T23:59:32.000Z
apps/api/lib/api_web/router.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
4
2021-12-13T09:43:01.000Z
2022-03-29T18:08:44.000Z
defmodule ApiWeb.Router do use ApiWeb, :router pipeline :api do plug :accepts, ["json"] end pipeline :auth do plug ApiWeb.GuardianPipeline plug ApiWeb.Plugs.AbsintheContext end forward "/graphiql", Absinthe.Plug.GraphiQL, schema: GraphQl, interface: :playground scope "/gql" do ...
26.329412
79
0.678731
084c43865f27d4af5028158a1d330d3cb391f0e1
8,878
ex
Elixir
lib/livebook/live_markdown/import.ex
FE-box/livebook
44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d
[ "Apache-2.0" ]
null
null
null
lib/livebook/live_markdown/import.ex
FE-box/livebook
44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d
[ "Apache-2.0" ]
null
null
null
lib/livebook/live_markdown/import.ex
FE-box/livebook
44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.LiveMarkdown.Import do alias Livebook.Notebook alias Livebook.LiveMarkdown.MarkdownHelpers @doc """ Converts the given Markdown document into a notebook data structure. Returns the notebook structure and a list of informative messages/warnings related to the imported input. """ @spe...
33.756654
97
0.649133
084c806a15a70b8da07483142cf5f9553a29fbdd
1,193
exs
Elixir
advanced/errorHandling-try-catch.exs
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
1
2016-12-25T09:53:53.000Z
2016-12-25T09:53:53.000Z
advanced/errorHandling-try-catch.exs
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
advanced/errorHandling-try-catch.exs
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
# IO.puts raise ArgumentError, message: "the argument value is invalid" try do raise "Oh no!" rescue e in RuntimeError -> IO.puts("An error occurred: " <> e.message) end # An error occurred: Oh no! # :ok try do raise "Oh no!" rescue e in RuntimeError -> IO.puts("An error occurred: " <> e.message) end # An e...
15.906667
73
0.636211
084c8713a1905f7061d372b5c8c79d1b6198d5a6
2,410
exs
Elixir
mix.exs
tizpuppi/cloak
cdeae97c69f7c54aeadf0921db30dc411d7a9938
[ "MIT" ]
null
null
null
mix.exs
tizpuppi/cloak
cdeae97c69f7c54aeadf0921db30dc411d7a9938
[ "MIT" ]
null
null
null
mix.exs
tizpuppi/cloak
cdeae97c69f7c54aeadf0921db30dc411d7a9938
[ "MIT" ]
null
null
null
defmodule Cloak.Mixfile do use Mix.Project def project do [ app: :cloak, version: "0.7.0", elixir: "~> 1.0", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, ...
25.913978
83
0.535685
084c8b8514a15a7591545d3727405c6884ae4989
54,480
ex
Elixir
lib/ecto_adapters_dynamodb.ex
maxig/ecto_adapters_dynamodb
11e4dd48b53f2a51d7cc8e203e217c1ad8aecd72
[ "Apache-2.0" ]
null
null
null
lib/ecto_adapters_dynamodb.ex
maxig/ecto_adapters_dynamodb
11e4dd48b53f2a51d7cc8e203e217c1ad8aecd72
[ "Apache-2.0" ]
null
null
null
lib/ecto_adapters_dynamodb.ex
maxig/ecto_adapters_dynamodb
11e4dd48b53f2a51d7cc8e203e217c1ad8aecd72
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Adapters.DynamoDB do @moduledoc """ Ecto adapter for Amazon DynamoDB Currently for a fairly limited subset of Ecto, enough for basic operations. """ #NOTE: in ecto, Repo.get[!] ends up calling: #-> querable.get #-> queryable.one #-> queryable.all #-> queryable.execute #-> ...
44.655738
354
0.67221
084c900672060871d97a0f0e0362cbce6432cf09
6,767
ex
Elixir
lib/astarte_data_updater_plant/data_updater/payloads_decoder.ex
rbino/astarte_data_updater_plant
b1769207636fad9f91fdcad4ed768757af09683f
[ "Apache-2.0" ]
5
2018-01-30T15:08:23.000Z
2019-12-20T15:06:56.000Z
lib/astarte_data_updater_plant/data_updater/payloads_decoder.ex
rbino/astarte_data_updater_plant
b1769207636fad9f91fdcad4ed768757af09683f
[ "Apache-2.0" ]
17
2018-01-31T15:50:22.000Z
2019-12-05T17:26:06.000Z
lib/astarte_data_updater_plant/data_updater/payloads_decoder.ex
rbino/astarte_data_updater_plant
b1769207636fad9f91fdcad4ed768757af09683f
[ "Apache-2.0" ]
2
2018-01-31T15:43:04.000Z
2019-11-15T12:00:05.000Z
# # This file is part of Astarte. # # Copyright 2018 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
30.345291
99
0.640757
084c9ff3752171aa114ebf1939078e079b928dfc
1,833
exs
Elixir
mix.exs
wingyplus/money
18d8eb3581886badb9b89adf455844517c10f599
[ "MIT" ]
null
null
null
mix.exs
wingyplus/money
18d8eb3581886badb9b89adf455844517c10f599
[ "MIT" ]
null
null
null
mix.exs
wingyplus/money
18d8eb3581886badb9b89adf455844517c10f599
[ "MIT" ]
null
null
null
defmodule Money.Mixfile do use Mix.Project @version "1.7.0" @github_url "https://github.com/elixirmoney/money" def project do [ app: :money, aliases: aliases(), name: "Money", version: @version, elixir: "~> 1.0", deps: deps(), source_url: "https://github.com/elixi...
25.109589
129
0.555374
084ca9821529331b56c66665a65abfb157a3a93c
156
exs
Elixir
.formatter.exs
ORBAT/mulix
75503f79eb1832329afe96540cfd0e2dc9c01575
[ "MIT" ]
null
null
null
.formatter.exs
ORBAT/mulix
75503f79eb1832329afe96540cfd0e2dc9c01575
[ "MIT" ]
null
null
null
.formatter.exs
ORBAT/mulix
75503f79eb1832329afe96540cfd0e2dc9c01575
[ "MIT" ]
null
null
null
# Used by "mix format" [ inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"], locals_without_parens: [defmultiop: :*, defop: :*, defgenericop: :*] ]
26
70
0.596154
084cdc7869276b25503a70c3c86713e82c69da52
4,167
ex
Elixir
lib/ravix_ecto/parsers/query_params.ex
YgorCastor/ravix-ecto
63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371
[ "Apache-2.0" ]
1
2022-03-30T14:56:00.000Z
2022-03-30T14:56:00.000Z
lib/ravix_ecto/parsers/query_params.ex
YgorCastor/ravix-ecto
63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371
[ "Apache-2.0" ]
null
null
null
lib/ravix_ecto/parsers/query_params.ex
YgorCastor/ravix-ecto
63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371
[ "Apache-2.0" ]
null
null
null
defmodule Ravix.Ecto.Parser.QueryParams do import Ravix.Ecto.Parser.{ConditionalTokens, Shared} alias Ecto.Query, as: EctoQuery def parse(%EctoQuery{wheres: wheres} = query, params, pk) do wheres |> Enum.map(fn %EctoQuery.BooleanExpr{expr: expr} -> pair(expr, params, pk, query, "where clause") ...
32.302326
96
0.595872
084cdd0f911e58c02d114adddfd88af4de6f32dd
956
exs
Elixir
test/multipoint_polygon_test.exs
otherchris/topo
228c2c371c5e89cd1297662da7701c52c5d8b167
[ "MIT" ]
110
2016-05-05T21:09:19.000Z
2022-03-08T05:22:16.000Z
test/multipoint_polygon_test.exs
otherchris/topo
228c2c371c5e89cd1297662da7701c52c5d8b167
[ "MIT" ]
15
2016-12-01T00:32:11.000Z
2022-01-18T13:56:37.000Z
test/multipoint_polygon_test.exs
otherchris/topo
228c2c371c5e89cd1297662da7701c52c5d8b167
[ "MIT" ]
24
2016-09-19T20:06:50.000Z
2021-06-16T06:41:10.000Z
defmodule MultiPointPolygonTest do use ExUnit.Case @polygon %Geo.MultiPolygon{ coordinates: [ [ [{60, 120}, {60, 40}, {160, 40}, {160, 120}, {60, 120}], [{140, 100}, {80, 100}, {80, 60}, {140, 60}, {140, 100}] ] ] } test "One Point in a Polygon" do b = %Geo.MultiPoint{c...
23.9
64
0.603556
084ceb5b78c7a5ac9cda2eb9f5126a46e2e506dd
908
ex
Elixir
lib/leather_web/channels/user_socket.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
67
2016-10-24T04:11:40.000Z
2021-11-25T16:46:51.000Z
lib/leather_web/channels/user_socket.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
6
2017-08-17T21:43:50.000Z
2021-11-03T13:13:49.000Z
lib/leather_web/channels/user_socket.ex
nicksergeant/leather
15b1c9403999737f7a6ee9a1c0349e047805bbe6
[ "MIT" ]
7
2017-08-13T01:43:37.000Z
2022-01-11T04:38:27.000Z
defmodule LeatherWeb.UserSocket do @moduledoc false use Phoenix.Socket channel("accounts:*", LeatherWeb.AccountsChannel) channel("budgets:*", LeatherWeb.BudgetsChannel) channel("forecast:*", LeatherWeb.ForecastChannel) channel("link:*", LeatherWeb.LinkChannel) channel("stashes:*", LeatherWeb.StashesChan...
26.705882
81
0.679515
084cff557736cd6ca774838ba0af4439e7189b0e
572
exs
Elixir
speedtest/test/speedtest/server_test.exs
robsonrod/elixir-projs
0e6ff1cc1e2bd9d25fcdc9414f9312fbb3ae9018
[ "MIT" ]
null
null
null
speedtest/test/speedtest/server_test.exs
robsonrod/elixir-projs
0e6ff1cc1e2bd9d25fcdc9414f9312fbb3ae9018
[ "MIT" ]
null
null
null
speedtest/test/speedtest/server_test.exs
robsonrod/elixir-projs
0e6ff1cc1e2bd9d25fcdc9414f9312fbb3ae9018
[ "MIT" ]
null
null
null
defmodule Speedtest.ServerTest do use ExUnit.Case doctest Speedtest.Server test "fetch servers from url" do expected = %Speedtest.ServerInfo{ cc: "BR", country: "Brazil", host: "velocimetro-bsb.virtua.com.br:8080", id: 15014, lat: -15.781, long: -47.9196, name: "Bras...
26
86
0.646853
084d01caf31b67798dee6d40fa504fa2a239f0fe
2,452
exs
Elixir
test/red_potion/web/controllers/counter_controller_test.exs
mvdwg/red_potion
3026b13d80d9157a598b08e959beb5e56c6f9ff9
[ "MIT" ]
null
null
null
test/red_potion/web/controllers/counter_controller_test.exs
mvdwg/red_potion
3026b13d80d9157a598b08e959beb5e56c6f9ff9
[ "MIT" ]
null
null
null
test/red_potion/web/controllers/counter_controller_test.exs
mvdwg/red_potion
3026b13d80d9157a598b08e959beb5e56c6f9ff9
[ "MIT" ]
null
null
null
defmodule RedPotion.Web.CounterControllerTest do use RedPotion.Web.ConnCase alias RedPotion.Artifacts @create_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil} def fixture(:counter) do {:ok, counter} = Artifacts.create_counter(@create_attrs) counter...
35.028571
97
0.694127
084d028320ca331ee93535f1bae5a42c110c70a3
371
ex
Elixir
lib/delivery_web/controllers/items_controller.ex
gjlbro/testdelivery
3d667cca67b3a561d7395673b6b968523ed3270a
[ "MIT" ]
null
null
null
lib/delivery_web/controllers/items_controller.ex
gjlbro/testdelivery
3d667cca67b3a561d7395673b6b968523ed3270a
[ "MIT" ]
null
null
null
lib/delivery_web/controllers/items_controller.ex
gjlbro/testdelivery
3d667cca67b3a561d7395673b6b968523ed3270a
[ "MIT" ]
null
null
null
defmodule DeliveryWeb.ItemsController do use DeliveryWeb, :controller alias Delivery.Item alias DeliveryWeb.FallbackController action_fallback FallbackController def create(conn, params) do with {:ok, %Item{} = item} <- Delivery.create_item(params) do conn |> put_status(:created) |> r...
21.823529
65
0.703504
084d4fd5f4f27a107af9e6fbfe44b50c026592df
1,047
ex
Elixir
apps/fw/lib/fw/application.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
apps/fw/lib/fw/application.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
8
2020-11-16T09:59:12.000Z
2020-11-16T10:13:07.000Z
apps/fw/lib/fw/application.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
defmodule Fw.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # See https://hexdocs.pm/elixir/Supervisor.html # for other strategies and supported options opts = [strategy: :one_...
23.795455
63
0.647564
084d6acba96b35c42a45679a168684a4532c5617
175
exs
Elixir
priv/test/migrations/20171031174537_create_users.exs
mtdurling/guardian_trackable
9f9bac8ff389a90738b50a135a78d96d9deb6281
[ "MIT" ]
21
2017-11-06T11:20:24.000Z
2021-10-03T11:44:58.000Z
priv/test/migrations/20171031174537_create_users.exs
mtdurling/guardian_trackable
9f9bac8ff389a90738b50a135a78d96d9deb6281
[ "MIT" ]
4
2018-01-10T02:32:15.000Z
2019-04-25T17:33:24.000Z
priv/test/migrations/20171031174537_create_users.exs
mtdurling/guardian_trackable
9f9bac8ff389a90738b50a135a78d96d9deb6281
[ "MIT" ]
4
2018-01-12T01:16:37.000Z
2020-04-08T14:23:24.000Z
defmodule GuardianTrackable.Dummy.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add :email, :string end end end
17.5
64
0.72
084d780cb07e59177c6ac97b3a4631bb7a7255e5
5,469
exs
Elixir
test/swoosh/adapters/amazonses_test.exs
Deepwalker/swoosh
5970e1a20e5d787347ce825f4803e972ddc30095
[ "MIT" ]
1
2020-12-22T19:28:30.000Z
2020-12-22T19:28:30.000Z
test/swoosh/adapters/amazonses_test.exs
Deepwalker/swoosh
5970e1a20e5d787347ce825f4803e972ddc30095
[ "MIT" ]
21
2021-03-08T10:04:20.000Z
2022-03-23T10:20:17.000Z
test/swoosh/adapters/amazonses_test.exs
nash-io/swoosh
05c8676890da07403225c302f9a069fc7d221330
[ "MIT" ]
1
2019-11-05T19:06:55.000Z
2019-11-05T19:06:55.000Z
defmodule Swoosh.Adapters.AmazonSESTest do use Swoosh.AdapterCase, async: true import Swoosh.Email alias Swoosh.Adapters.AmazonSES @success_response """ <SendEmailResponse> <SendEmailResult> <MessageId>messageId</MessageId> </SendEmailResult> <ResponseMetadata> <RequestId...
32.360947
122
0.610715
084d9b527b794decfe8bdcfc6da4f3d9540319ac
532
exs
Elixir
priv/repo/migrations/20181009210537_create_files.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
928
2018-04-03T16:18:11.000Z
2019-09-09T17:59:55.000Z
priv/repo/migrations/20181009210537_create_files.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
74
2018-04-03T00:46:50.000Z
2019-03-10T18:57:27.000Z
priv/repo/migrations/20181009210537_create_files.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
89
2018-04-03T17:33:20.000Z
2019-08-19T03:40:20.000Z
defmodule Level.Repo.Migrations.CreateFiles do use Ecto.Migration def change do create table(:files, primary_key: false) do add :id, :binary_id, primary_key: true add :space_id, references(:spaces, on_delete: :nothing, type: :binary_id), null: false add :space_user_id, references(:space_user...
26.6
92
0.669173
084da4ec6abddd493f03abff967a55df1d067dae
733
exs
Elixir
test/remove_tags_test.exs
fmcgeough/ex_aws_cloud_trail
30346e5c11acf9dc5d133635b8025fe659e9f957
[ "MIT" ]
null
null
null
test/remove_tags_test.exs
fmcgeough/ex_aws_cloud_trail
30346e5c11acf9dc5d133635b8025fe659e9f957
[ "MIT" ]
null
null
null
test/remove_tags_test.exs
fmcgeough/ex_aws_cloud_trail
30346e5c11acf9dc5d133635b8025fe659e9f957
[ "MIT" ]
null
null
null
defmodule RemoveTagsTest do use ExUnit.Case test "remove tags from a trail" do arn = "arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail" tags = [%{key: "Key", value: "Value"}, %{key: "Key2", value: "Value2"}] op = ExAws.CloudTrail.remove_tags(arn, tags) assert op.headers == [ {"...
31.869565
87
0.53206
084dbfb6417b8b55e0ff00860a02dfdc900bd612
790
ex
Elixir
web/router.ex
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
6
2017-06-13T19:35:05.000Z
2020-05-05T06:50:34.000Z
web/router.ex
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
null
null
null
web/router.ex
kexoth/nlb-pipeline
77d2c79b58e03f0326608162e9cee768362e2076
[ "MIT" ]
1
2021-09-27T11:58:11.000Z
2021-09-27T11:58:11.000Z
defmodule NlbPipeline.Router do use NlbPipeline.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", NlbPipeline do pipe_through :brow...
23.939394
71
0.73038
084de6bb5f5264599fbfef2a3087a3761042af8b
610
ex
Elixir
lib/graph.ex
enter-haken/brain
828a86a383595791229fbde1564a170324f6ff8f
[ "MIT" ]
5
2021-04-14T08:52:45.000Z
2021-12-26T13:55:50.000Z
lib/graph.ex
enter-haken/brain
828a86a383595791229fbde1564a170324f6ff8f
[ "MIT" ]
null
null
null
lib/graph.ex
enter-haken/brain
828a86a383595791229fbde1564a170324f6ff8f
[ "MIT" ]
null
null
null
defmodule Brain.Graph do alias Brain.{Memory, Link} def get(memories, links) do dot_memories = memories |> Enum.map(fn %Memory{dot_node: dot} -> dot end) |> Enum.join("\n") dot_links = links |> Enum.map(fn %Link{dot: dot} -> dot end) |> Enum....
16.944444
47
0.498361
084e1e5ebd5a831dfb3b4d101c8cf7a5cdacdce7
2,991
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/model/usage_rule.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/model/usage_rule.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/model/usage_rule.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.607143
141
0.721163
084e4559f423725233224cad675c458a25178da6
267
exs
Elixir
config/test.exs
PavelTyk/bepaid_ex
f734ce9f0ba5473bfdd3b793e34a8ce21975fb0b
[ "MIT" ]
1
2020-12-17T03:51:27.000Z
2020-12-17T03:51:27.000Z
config/test.exs
PavelTyk/bepaid_ex
f734ce9f0ba5473bfdd3b793e34a8ce21975fb0b
[ "MIT" ]
null
null
null
config/test.exs
PavelTyk/bepaid_ex
f734ce9f0ba5473bfdd3b793e34a8ce21975fb0b
[ "MIT" ]
1
2019-05-03T13:59:08.000Z
2019-05-03T13:59:08.000Z
use Mix.Config config :bepaid_ex, shop_id: "1", key_secret: "BEPAID_KEY_SECRET" config :exvcr, vcr_cassette_library_dir: "test/fixture/vcr_cassettes", custom_cassette_library_dir: "test/fixture/custom_cassettes", filter_request_headers: ["Authorization"]
24.272727
63
0.786517
084e5db8bd9e5e7b403f97402c66bf161b3d4801
291
ex
Elixir
web/channels/result_channel.ex
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
web/channels/result_channel.ex
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
web/channels/result_channel.ex
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
defmodule Namuraid.ResultChannel do use Phoenix.Channel def join("result", _params, socket) do {:ok, %{ "result" => Namuraid.State.get(:resultcsv, []) }, socket} end def update(csv) do Namuraid.Endpoint.broadcast("result", "result", %{"result" => csv}) end end
20.785714
71
0.635739
084e9841872a804922e21e343ac7c81253fd083f
542
exs
Elixir
server/cardinal/priv/repo/migrations/20210317195951_create_anime_table.exs
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
server/cardinal/priv/repo/migrations/20210317195951_create_anime_table.exs
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
server/cardinal/priv/repo/migrations/20210317195951_create_anime_table.exs
llucasreis/cardinal
714d89d37ef0fa305d78622ff7228864bf382035
[ "MIT" ]
null
null
null
defmodule Cardinal.Repo.Migrations.CreateAnimeTable do use Ecto.Migration def change do create table(:animes, primary_key: false) do add :id, :uuid, primary_key: true add :kitsu_id, :string add :title, :string add :slug, :string add :description, :text add :episodes, :intege...
24.636364
54
0.640221
084ec220cf9092c5f2e3caa01d2cba0c8a2c816c
875
exs
Elixir
apps/core/test/pubsub/cache/repositories_test.exs
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
59
2021-09-16T19:29:39.000Z
2022-03-31T20:44:24.000Z
apps/core/test/pubsub/cache/repositories_test.exs
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
111
2021-08-15T09:56:37.000Z
2022-03-31T23:59:32.000Z
apps/core/test/pubsub/cache/repositories_test.exs
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
4
2021-12-13T09:43:01.000Z
2022-03-29T18:08:44.000Z
defmodule Core.PubSub.Consumers.Cache.RepositoriesTest do use Core.SchemaCase, async: true alias Core.PubSub alias Core.PubSub.Consumers.Cache describe "InstallationCreated" do test "it will wipe a has_installations record" do %{user: user} = inst = insert(:installation) Core.Cache.put({:has_i...
29.166667
58
0.701714
084ecdeca44d4b1a0a9191afadeb9517223d2647
31
ex
Elixir
lib/history/job.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history/job.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history/job.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defprotocol History.Job do end
10.333333
26
0.83871
084efb1fb868e0c0e68f826bf231e38cdd2fbf93
27
ex
Elixir
machine_learning_toolkit/apps/utilities/lib/utilities.ex
gguimond/elixir
415a7ed10fb44d84089ff89fb651b765b5f5e53f
[ "MIT" ]
1
2019-03-28T09:08:16.000Z
2019-03-28T09:08:16.000Z
machine_learning_toolkit/apps/utilities/lib/utilities.ex
gguimond/elixir
415a7ed10fb44d84089ff89fb651b765b5f5e53f
[ "MIT" ]
null
null
null
machine_learning_toolkit/apps/utilities/lib/utilities.ex
gguimond/elixir
415a7ed10fb44d84089ff89fb651b765b5f5e53f
[ "MIT" ]
null
null
null
defmodule Utilities do end
9
22
0.851852
084f1e61106a526fc0c6ca802292e3ee00ade7b8
941
ex
Elixir
test/support/channel_case.ex
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
2
2019-01-20T07:03:30.000Z
2019-04-11T10:20:14.000Z
test/support/channel_case.ex
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
6
2018-09-20T05:52:14.000Z
2019-04-23T19:27:39.000Z
test/support/channel_case.ex
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
null
null
null
defmodule JumubaseWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case interacts w...
24.763158
70
0.717322
084f506365e8948b8fca5f08157dd51ac5da639d
681
ex
Elixir
lib/elixero/core_api/models/prepayments.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
84
2016-11-09T01:15:17.000Z
2022-01-06T02:55:35.000Z
lib/elixero/core_api/models/prepayments.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
14
2017-03-10T04:16:07.000Z
2021-11-10T16:39:19.000Z
lib/elixero/core_api/models/prepayments.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
18
2017-03-11T21:12:15.000Z
2022-02-22T20:07:10.000Z
defmodule EliXero.CoreApi.Models.Prepayments do use Ecto.Schema import Ecto.Changeset @derive {Poison.Encoder, except: [:__meta__, :id]} schema "prepayments" do embeds_many :Prepayments, EliXero.CoreApi.Models.Prepayments.Prepayment end def from_map(data) do %__...
26.192308
80
0.591777
084f53915b115cf577d083f35909d36c0bf22b07
766
ex
Elixir
lib/lightbridge/mqtt_supervisor.ex
jamesduncombe/lightbridge
c6b5fd54f5495ae12fefc0174ca95ebe2f69a1ce
[ "MIT" ]
null
null
null
lib/lightbridge/mqtt_supervisor.ex
jamesduncombe/lightbridge
c6b5fd54f5495ae12fefc0174ca95ebe2f69a1ce
[ "MIT" ]
null
null
null
lib/lightbridge/mqtt_supervisor.ex
jamesduncombe/lightbridge
c6b5fd54f5495ae12fefc0174ca95ebe2f69a1ce
[ "MIT" ]
null
null
null
defmodule Lightbridge.MqttSupervisor do @moduledoc """ Handles connection to MQTT broker. """ use Supervisor alias Lightbridge.MqttHandler import Lightbridge.Config, only: [fetch: 1] def start_link(opts) do Supervisor.start_link(__MODULE__, opts, name: __MODULE__) end def init(_args) do c...
23.9375
92
0.650131
084f8fbcc72f8d36895dc22e741c0f86e213162d
6,692
ex
Elixir
lib/core.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
lib/core.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
lib/core.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
defmodule PromEx.TelemetryMetricsPrometheus.Core do @moduledoc """ Prometheus Reporter for [`Telemetry.Metrics`](https://github.com/beam-telemetry/telemetry_metrics) definitions. Provide a list of metric definitions to the `child_spec/1` function. It's recommended to add this to your supervision tree. d...
34.142857
195
0.704423
084f9a9b53b8b9200307963e710f162c8a1449f6
1,016
exs
Elixir
test/web/controller/admin/dashboard_controller_test.exs
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
test/web/controller/admin/dashboard_controller_test.exs
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
test/web/controller/admin/dashboard_controller_test.exs
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
defmodule Web.Admin.DashboardControllerTest do use Web.ConnCase test "hitting the dashboard redirects to session", %{conn: conn} do conn = get conn, dashboard_path(conn, :index) assert redirected_to(conn) == session_path(conn, :new) end test "user token and an admin allows in", %{conn: conn} do us...
35.034483
79
0.662402
084f9db3a8465e650b9c00c4551bb20c7a7a8c47
1,627
ex
Elixir
lib/accent/integrations/integration_manager.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/accent/integrations/integration_manager.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/accent/integrations/integration_manager.ex
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Accent.IntegrationManager do alias Accent.{Integration, Repo} import Ecto.Changeset @spec create(map()) :: {:ok, Integration.t()} | {:error, Ecto.Changeset.t()} def create(params) do %Integration{} |> changeset(params) |> foreign_key_constraint(:user_id) |> Repo.insert() end @sp...
25.421875
95
0.629994
084fc4e321a5a905c55bff14081dc74567f5d580
393
ex
Elixir
lib/digital_ocean/helpers/body.ex
kianmeng/digital-ocean-elixir
eff6fd1c621ab51908edad731794b0ef2db1cac1
[ "MIT" ]
5
2020-09-20T19:35:32.000Z
2021-12-15T08:57:22.000Z
lib/digital_ocean/helpers/body.ex
kianmeng/digital-ocean-elixir
eff6fd1c621ab51908edad731794b0ef2db1cac1
[ "MIT" ]
8
2020-09-25T14:30:03.000Z
2022-02-21T18:04:48.000Z
lib/digital_ocean/helpers/body.ex
kianmeng/digital-ocean-elixir
eff6fd1c621ab51908edad731794b0ef2db1cac1
[ "MIT" ]
4
2020-09-25T14:26:11.000Z
2021-08-09T06:43:18.000Z
defmodule DigitalOcean.Helpers.Body do @moduledoc false alias DigitalOcean.{ Config, Operation } @spec encode!(Operation.t(), Config.t()) :: String.t() def encode!(%_{ method: method }, _config) when method == :delete or method == :get do "" end def encode!(operation, config) do operation.p...
21.833333
56
0.641221
084fe0289ea78bb2a983da40d850ff34fa0d13c1
2,718
exs
Elixir
config/config.exs
amaltson/tilex
149193bf29c747a39bada8160a7dd9e831777d69
[ "MIT" ]
null
null
null
config/config.exs
amaltson/tilex
149193bf29c747a39bada8160a7dd9e831777d69
[ "MIT" ]
null
null
null
config/config.exs
amaltson/tilex
149193bf29c747a39bada8160a7dd9e831777d69
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :tilex, ecto_repos: [Tilex.Repo] # Config...
35.763158
90
0.759382
08500813194f5d30158d9ac6c0350a1118b21b8e
2,199
ex
Elixir
clients/game_services/lib/google_api/game_services/v1/model/list_game_server_deployments_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/game_services/lib/google_api/game_services/v1/model/list_game_server_deployments_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/game_services/lib/google_api/game_services/v1/model/list_game_server_deployments_response.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...
37.913793
159
0.737608
08505d48629bb7978acdbd5b6c943e0722a67421
1,014
exs
Elixir
01.exs
ivanrosolen/how-to-elixir
46386a1316a39ac083cb4efa96eaf4641b2ac3ac
[ "MIT" ]
null
null
null
01.exs
ivanrosolen/how-to-elixir
46386a1316a39ac083cb4efa96eaf4641b2ac3ac
[ "MIT" ]
null
null
null
01.exs
ivanrosolen/how-to-elixir
46386a1316a39ac083cb4efa96eaf4641b2ac3ac
[ "MIT" ]
null
null
null
IO.puts("Ivan") IO.puts "Rosolen" IO.puts "Ivan" <> "Rosolen" add = fn a, b -> a + b end check = is_function(add) IO.puts check result = add.(2, 4) IO.puts "Resultado #{result}" checkAdd = is_function(add, 1) IO.puts "Check add 1 params: #{checkAdd}" double = fn a -> add.(a, a) end checkDouble = is_function(double, ...
27.405405
121
0.674556
0850892b907c63c84e7863e0b699adb5934c0ba1
2,893
exs
Elixir
2021/day16.exs
princemaple/aoc
325dd12c8b5b827458214846f184e07a6cfbdf34
[ "MIT" ]
1
2021-12-13T00:31:09.000Z
2021-12-13T00:31:09.000Z
2021/day16.exs
princemaple/aoc
325dd12c8b5b827458214846f184e07a6cfbdf34
[ "MIT" ]
null
null
null
2021/day16.exs
princemaple/aoc
325dd12c8b5b827458214846f184e07a6cfbdf34
[ "MIT" ]
null
null
null
# Title: Day16 # ── Untitled ── data = "input" |> IO.getn(1_000_000) |> String.trim() |> String.split("", trim: true) |> Enum.flat_map( &(&1 |> String.to_integer(16) |> Integer.digits(2) |> then(fn l -> [0, 0, 0] ++ l end) |> Enum.take(-4)) ) defmodule D16 do ...
22.601563
85
0.521604
0850a2f8a9cd747db55a545e89fb50081c20bcbb
9,045
ex
Elixir
lib/extracker.ex
Cantido/ex_tracker
32f5785a39b5da209e2a4564f6e004479283fc1e
[ "MIT" ]
1
2021-11-23T04:29:37.000Z
2021-11-23T04:29:37.000Z
lib/extracker.ex
Cantido/ex_tracker
32f5785a39b5da209e2a4564f6e004479283fc1e
[ "MIT" ]
6
2020-11-10T03:44:44.000Z
2022-02-28T11:05:39.000Z
lib/extracker.ex
Cantido/ex_tracker
32f5785a39b5da209e2a4564f6e004479283fc1e
[ "MIT" ]
1
2020-01-08T16:23:42.000Z
2020-01-08T16:23:42.000Z
# SPDX-FileCopyrightText: 2021 Rosa Richter # # SPDX-License-Identifier: MIT defmodule Extracker do @moduledoc """ A fast & scaleable BitTorrent tracker. """ @doc """ Set the duration that an announced peer will be kept in the system. """ def set_interval(interval) do Redix.command!(:redix, ["SET", ...
26.066282
97
0.571697