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
1c14cb52e9ad9439ad3e698ca3bbfb49b924e4be
63
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/UnaryNumericOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/UnaryNumericOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/UnaryNumericOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
+one ++ -two !three -- ^four not five..~~~six +seven <> -eight
12.6
16
0.555556
1c15190836360dfbd66ae06e5362e143c3f2ed97
1,470
exs
Elixir
lib/perspective/processor/steps/tests/request_authorizer_test.exs
backmath/perspective
a0a577d0ffb06805b64e4dcb171a093e051884b0
[ "MIT" ]
2
2020-04-24T19:43:06.000Z
2020-04-24T19:52:27.000Z
lib/perspective/processor/steps/tests/request_authorizer_test.exs
backmath/perspective
a0a577d0ffb06805b64e4dcb171a093e051884b0
[ "MIT" ]
null
null
null
lib/perspective/processor/steps/tests/request_authorizer_test.exs
backmath/perspective
a0a577d0ffb06805b64e4dcb171a093e051884b0
[ "MIT" ]
null
null
null
defmodule Perspective.Processor.RequestAuthorizer.Test do use ExUnit.Case defmodule Example do use Perspective.ActionRequest domain_event(Perspective.Processor.RequestAuthorizer.Test.ExampleEvent, "1.0") authorize(%{actor_id: "user/true"}) do true end authorize(%{actor_id: "user/ok"}) d...
24.915254
82
0.690476
1c152499e67dce4c9c78c0ae1c0887b0e5398664
76,564
ex
Elixir
lib/elixir/lib/string.ex
dogatuncay/elixir
42875b97f858a31d3cbb8e1090ffb4d6c443ba75
[ "Apache-2.0" ]
243
2020-02-03T03:48:51.000Z
2021-11-08T12:56:25.000Z
lib/elixir/lib/string.ex
dogatuncay/elixir
42875b97f858a31d3cbb8e1090ffb4d6c443ba75
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/string.ex
dogatuncay/elixir
42875b97f858a31d3cbb8e1090ffb4d6c443ba75
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [length: 1] defmodule String do @moduledoc ~S""" Strings in Elixir are UTF-8 encoded binaries. Strings in Elixir are a sequence of Unicode characters, typically written between double quoted strings, such as `"hello"` and `"héllò"`. In case a string must have a double-quote in itse...
28.805117
102
0.649914
1c15284ae385d7c4ac8a56c90daba66a925d4d22
809
ex
Elixir
lib/live_sup/helpers/string_helper.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup/helpers/string_helper.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
lib/live_sup/helpers/string_helper.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSup.Helpers.StringHelper do def truncate(text, opts \\ []) do max_length = opts[:max_length] || 50 omission = opts[:omission] || "..." cond do not String.valid?(text) -> text String.length(text) < max_length -> text true -> length_with_omission = ...
26.096774
78
0.631644
1c1530c7c049f6f089132b25d2ee34810b90f753
612
ex
Elixir
lib/markright/collectors/fuerer.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
15
2017-01-12T19:24:35.000Z
2021-04-27T14:44:08.000Z
lib/markright/collectors/fuerer.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
8
2017-02-13T17:01:35.000Z
2021-07-27T16:20:52.000Z
lib/markright/collectors/fuerer.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
1
2021-04-24T18:40:11.000Z
2021-04-24T18:40:11.000Z
defmodule Markright.Collectors.Fuerer do @moduledoc ~S""" Collector that converts the topmost para into h2 tag unless it’s set. """ @behaviour Markright.Collector @empty_header "★ ★ ★" def on_ast(%Markright.Continuation{ast: ast} = _cont, acc) do case ast do {:article, %{}, [{tag, _, text} | _]...
23.538462
71
0.594771
1c15351c36fa7e89508b1c88da0267c83a30a917
11,916
ex
Elixir
lib/codes/codes_v15.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_v15.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_v15.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_V15 do alias IcdCode.ICDCode def _V150XXA do %ICDCode{full_code: "V150XXA", category_code: "V15", short_code: "0XXA", full_name: "Pedal cycle driver injured in collision with railway train or railway vehicle in nontraffic accident, initial encounter",...
60.795918
156
0.719705
1c1552d66e08854c347bf88ef63c8263593de865
873
exs
Elixir
apps/core/test/unit/employee/user_role_creator_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/test/unit/employee/user_role_creator_test.exs
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/test/unit/employee/user_role_creator_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.Unit.Employee.UserRoleCreatorTest do @moduledoc false use Core.ConnCase import Mox alias Core.Employees.UserRoleCreator alias Ecto.UUID test "create/2" do expect(MithrilMock, :get_roles_by_name, fn _, _ -> {:ok, %{"data" => []}} end) user_id = UUID.generate() legal_e...
24.942857
83
0.644903
1c1556a97b3a86b5a4516bf9a06a351e9299b4ae
1,159
ex
Elixir
apps/site/lib/site_web/plugs/rewrite_urls.ex
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
null
null
null
apps/site/lib/site_web/plugs/rewrite_urls.ex
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
65
2021-05-06T18:38:33.000Z
2022-03-28T20:50:04.000Z
apps/site/lib/site_web/plugs/rewrite_urls.ex
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
null
null
null
defmodule SiteWeb.Plugs.RewriteUrls do @moduledoc """ Plug to redirect before other kinds of data are loaded. Currently, only used to redirect from the old Boat-F3 (Hull Ferry) schedule to the new Boat-F1 (Hingham/Hull Ferry) schedule. """ @behaviour Plug import Plug.Conn import Phoenix.Controller, on...
22.72549
77
0.654875
1c157004dbefc8a20dc8efee4a0793964d829f75
2,514
exs
Elixir
test/phoenix_live_view/integrations/assigns_test.exs
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/assigns_test.exs
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/assigns_test.exs
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
defmodule LiveElement.AssignsTest do use ExUnit.Case, async: true import Plug.Conn import Phoenix.ConnTest import LiveElementTest alias LiveElementTest.Endpoint @endpoint Endpoint setup do {:ok, conn: Plug.Test.init_test_session(Phoenix.ConnTest.build_conn(), %{})} end describe "assign_new" do...
31.822785
96
0.612172
1c157d00ca529cd6a56b15b80e90a4796433d20e
1,170
ex
Elixir
lib/accounting/adapter.ex
verypossible/accounting
25be530e191c7c23c725770deb90d390b9296496
[ "MIT" ]
3
2017-12-17T22:00:22.000Z
2020-01-12T17:29:36.000Z
lib/accounting/adapter.ex
verypossible/accounting
25be530e191c7c23c725770deb90d390b9296496
[ "MIT" ]
2
2017-12-11T23:31:04.000Z
2017-12-15T16:44:31.000Z
lib/accounting/adapter.ex
verypossible/accounting
25be530e191c7c23c725770deb90d390b9296496
[ "MIT" ]
3
2017-07-26T07:34:30.000Z
2022-01-11T15:53:07.000Z
defmodule Accounting.Adapter do @moduledoc """ A behaviour module for implementing the adapter for a particular journal. """ alias Accounting.{Account, Entry, Journal} @typep account_number :: Accounting.account_number @callback child_spec(keyword) :: Supervisor.child_spec @callback setup_accounts(Jour...
55.714286
124
0.698291
1c15a0cdf26ba20e7b22ea3271001b360f481aef
539
ex
Elixir
lib/ex_bitmex/rest/user/commission.ex
eduardoscottini/ex_bitmex
f8528bd635922e1777a5b01ea4941d625da7396e
[ "MIT" ]
6
2019-02-13T04:05:19.000Z
2020-12-31T07:40:09.000Z
lib/ex_bitmex/rest/user/commission.ex
eduardoscottini/ex_bitmex
f8528bd635922e1777a5b01ea4941d625da7396e
[ "MIT" ]
28
2021-03-29T06:46:42.000Z
2022-03-28T11:03:38.000Z
lib/ex_bitmex/rest/user/commission.ex
yurikoval/ex_bitmex
d9492789fb319fbdf78d90a99f7c0e40c95c1885
[ "MIT" ]
4
2019-05-03T21:27:10.000Z
2021-01-12T09:26:34.000Z
defmodule ExBitmex.Rest.User.Commission do alias ExBitmex.Rest @type credentials :: ExBitmex.Credentials.t() | nil @type params :: map @type rate_limit :: ExBitmex.RateLimit.t() @path "/user/commission" def get(%ExBitmex.Credentials{} = credentials, params \\ %{}) do @path |> Rest.HTTPClient.auth...
24.5
67
0.682746
1c15b14c6500be766d8f3d258ec7f7038ada687d
5,591
exs
Elixir
test/helpers/element_with_selectors_test.exs
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
test/helpers/element_with_selectors_test.exs
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
test/helpers/element_with_selectors_test.exs
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
defmodule ElementWithSelectorsTest do use ExUnit.Case use Hound.Helpers hound_session() test "should get visible text of an element, when selector is passed" do navigate_to("http://localhost:9090/page1.html") assert visible_text({:class, "example"}) == "Paragraph" end test "should raise when pass...
34.726708
98
0.688786
1c15c193c8a2087ee9d991b7d3e54aa0448a132a
787
ex
Elixir
lib/basic_web/controllers/user_session_controller.ex
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
7
2021-07-14T15:45:55.000Z
2022-01-25T11:13:01.000Z
lib/basic_web/controllers/user_session_controller.ex
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
10
2021-08-09T15:54:05.000Z
2022-02-17T04:18:38.000Z
lib/basic_web/controllers/user_session_controller.ex
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
5
2021-07-23T05:54:35.000Z
2022-01-28T04:14:51.000Z
defmodule BasicWeb.UserSessionController do use BasicWeb, :controller alias Basic.Accounts alias BasicWeb.UserAuth def new(conn, _params) do render(conn, "new.html", error_message: nil) end def create(conn, %{"user" => user_params}) do %{"email" => email, "password" => password} = user_params ...
27.137931
75
0.687421
1c15f2b2eb5f906a93c36678a7bc9787a2fa43aa
1,692
ex
Elixir
clients/dns/lib/google_api/dns/v1/model/operation_dns_key_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dns/lib/google_api/dns/v1/model/operation_dns_key_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dns/lib/google_api/dns/v1/model/operation_dns_key_context.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...
33.84
116
0.727541
1c163dc799075d18f6a1af4a9597fcfb589d4310
1,115
exs
Elixir
config/config.exs
shufo/bom
c37735d5867b2d52996c073b70f9b8a349e5ad8c
[ "MIT" ]
2
2019-11-19T12:48:55.000Z
2020-01-12T18:59:41.000Z
config/config.exs
shufo/bom
c37735d5867b2d52996c073b70f9b8a349e5ad8c
[ "MIT" ]
1
2021-06-25T15:34:11.000Z
2021-06-25T15:34:11.000Z
config/config.exs
shufo/bom
c37735d5867b2d52996c073b70f9b8a349e5ad8c
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
35.967742
73
0.749776
1c167784d1844a8faaea5ff633bac7eb3b89b822
804
exs
Elixir
apps/day21/mix.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
2
2019-12-21T21:21:04.000Z
2019-12-27T07:00:19.000Z
apps/day21/mix.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
apps/day21/mix.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
defmodule Day21.MixProject do use Mix.Project def project do [ app: :day21, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9-dev", start_permanent: Mix.env()...
22.971429
88
0.56592
1c16b37c0b32e083e548d6510c9bf7dc3ca039b0
609
exs
Elixir
test/views/error_view_test.exs
batmany13/github-ci
e67df76aaeee5e829b923ad09140dc6628ef979b
[ "Apache-2.0" ]
null
null
null
test/views/error_view_test.exs
batmany13/github-ci
e67df76aaeee5e829b923ad09140dc6628ef979b
[ "Apache-2.0" ]
null
null
null
test/views/error_view_test.exs
batmany13/github-ci
e67df76aaeee5e829b923ad09140dc6628ef979b
[ "Apache-2.0" ]
null
null
null
defmodule GithubCi.ErrorViewTest do use GithubCi.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(GithubCi.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found"}} end test "rende...
27.681818
66
0.648604
1c16e52b836d1e20e2206e9e41e572b43966d527
186
exs
Elixir
priv/repo/migrations/20160421085335_add_settings_to_categories.exs
fdietz/whistler_news_reader
501f3f95e1ba3a684da8b34b60e426da85e7852d
[ "MIT" ]
8
2016-06-12T20:11:26.000Z
2017-05-02T04:36:41.000Z
priv/repo/migrations/20160421085335_add_settings_to_categories.exs
fdietz/whistler_news_reader
501f3f95e1ba3a684da8b34b60e426da85e7852d
[ "MIT" ]
2
2016-06-12T15:49:06.000Z
2016-06-12T20:00:02.000Z
priv/repo/migrations/20160421085335_add_settings_to_categories.exs
fdietz/whistler_news_reader
501f3f95e1ba3a684da8b34b60e426da85e7852d
[ "MIT" ]
null
null
null
defmodule WhistlerNewsReader.Repo.Migrations.AddSettingsToCategories do use Ecto.Migration def change do alter table(:categories) do add :settings, :map end end end
18.6
71
0.741935
1c16e72798d83f3385fd355b9bb1be4d4ed77e43
1,793
ex
Elixir
clients/cloud_trace/lib/google_api/cloud_trace/v2/model/links.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_trace/lib/google_api/cloud_trace/v2/model/links.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_trace/lib/google_api/cloud_trace/v2/model/links.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.156863
168
0.735081
1c16f9a033c2c8ad358d87d6bdecb67e65e44158
594
exs
Elixir
test/views/error_view_test.exs
rubencaro/pedro
b550b3af700962283fa9e3985e1dcc2da2e14d0d
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
rubencaro/pedro
b550b3af700962283fa9e3985e1dcc2da2e14d0d
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
rubencaro/pedro
b550b3af700962283fa9e3985e1dcc2da2e14d0d
[ "MIT" ]
null
null
null
defmodule Pedro.ErrorViewTest do use Pedro.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(Pedro.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found"}} end test "render 500.jso...
27
66
0.639731
1c17074951fbac8ed475f93e048000f865b0ed30
5,972
exs
Elixir
test/components/form/error_tag_test.exs
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
1
2020-12-29T10:43:19.000Z
2020-12-29T10:43:19.000Z
test/components/form/error_tag_test.exs
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
test/components/form/error_tag_test.exs
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.ErrorTagTest.Common do @moduledoc """ Common functions used by both ErrorTagTest and ErrorTagSyncTest """ def changeset do {%{}, %{name: :string}} |> Ecto.Changeset.cast(%{name: "myname"}, [:name]) |> Ecto.Changeset.add_error(:name, "is already taken") |> Ecto....
26.780269
105
0.574849
1c170dd52385c074772c5fbd7a286f2dae2d048b
4,395
ex
Elixir
lib/sentry/logger.ex
sztosz/sentry-elixir
3a2cf14eb4a4778d7e77e3b851897a2575b08052
[ "MIT" ]
null
null
null
lib/sentry/logger.ex
sztosz/sentry-elixir
3a2cf14eb4a4778d7e77e3b851897a2575b08052
[ "MIT" ]
null
null
null
lib/sentry/logger.ex
sztosz/sentry-elixir
3a2cf14eb4a4778d7e77e3b851897a2575b08052
[ "MIT" ]
null
null
null
defmodule Sentry.Logger do require Logger @moduledoc """ This is based on the Erlang [error_logger](http://erlang.org/doc/man/error_logger.html). To set this up, add `:ok = :error_logger.add_report_handler(Sentry.Logger)` to your application's start function. Example: ```elixir def start(_type, _opts) do...
34.606299
283
0.687144
1c1757e223e8ac879519e9d6ebe40ff772ac5bd5
7,954
ex
Elixir
architect/lib/architect/projects/projects.ex
VJftw/velocity
8335c39c510dbde1446e6cde03eebb450339d212
[ "Apache-2.0" ]
3
2017-12-09T21:05:54.000Z
2019-08-06T08:13:34.000Z
architect/lib/architect/projects/projects.ex
VJftw/velocity
8335c39c510dbde1446e6cde03eebb450339d212
[ "Apache-2.0" ]
63
2017-09-09T15:44:24.000Z
2022-03-03T22:16:24.000Z
architect/lib/architect/projects/projects.ex
VJftw/velocity
8335c39c510dbde1446e6cde03eebb450339d212
[ "Apache-2.0" ]
5
2017-09-14T00:17:22.000Z
2019-11-27T14:43:45.000Z
defmodule Architect.Projects do @moduledoc """ The Projects context. """ import Ecto.Query, warn: false alias Architect.Repo alias Architect.Projects.{Project, Starter} alias Git.Repository alias Architect.Events alias Architect.Accounts.User use Supervisor require Logger @registry __MODULE__...
22.405634
89
0.596429
1c1789cfb2c15da85cda131ac9bb70d11a104973
1,791
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__normalized_vertex.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__normalized_vertex.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__normalized_vertex.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...
32.563636
144
0.734785
1c178d0c0da6dcca1ecfe23fe894b86848fb9c32
1,293
exs
Elixir
test/contracts_api/legal_entytis_test.exs
gissandrogama/contracts_api
13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1
[ "MIT" ]
null
null
null
test/contracts_api/legal_entytis_test.exs
gissandrogama/contracts_api
13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1
[ "MIT" ]
2
2021-03-16T06:43:04.000Z
2021-03-16T06:54:55.000Z
test/contracts_api/legal_entytis_test.exs
gissandrogama/contracts_api
13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1
[ "MIT" ]
null
null
null
defmodule ContractsApi.LegalEntytisTest do use ContractsApi.DataCase, async: true alias ContractsApi.LegalEntytis describe "create_company/1" do test "return company structure when parameters are valid" do {:ok, result} = LegalEntytis.create_company(%{name: "SCJ LTDA", cnpj: "1245786000177"}) as...
33.153846
97
0.672854
1c179cc64c5c84d6396c2097cde88186301a57e4
535
ex
Elixir
test/stub_modules/producer.ex
trusty/elixir_google_spreadsheets
b7f74d75e61027dc0b12aa5260168563d0777c92
[ "MIT" ]
50
2016-12-21T06:39:08.000Z
2022-03-16T04:52:42.000Z
test/stub_modules/producer.ex
trusty/elixir_google_spreadsheets
b7f74d75e61027dc0b12aa5260168563d0777c92
[ "MIT" ]
36
2017-01-31T19:12:19.000Z
2022-03-10T17:27:58.000Z
test/stub_modules/producer.ex
nested-tech/elixir_google_spreadsheets
45895fe6ac5bc9f256bc2e271be1a3324ce8aded
[ "MIT" ]
34
2017-01-16T04:22:16.000Z
2022-03-01T01:46:39.000Z
defmodule GSS.StubModules.Producer do use GenStage def start_link(events) do GenStage.start_link(__MODULE__, {events, self()}) end def init({events, owner}) do {:producer, {events, owner}} end def handle_demand(demand, {events, owner}) do {result, tail} = Enum.split(events, demand) send(...
23.26087
64
0.659813
1c17c9b090a32c8f16956b56cf37fbf1b9afda1d
3,368
ex
Elixir
lib/aws/generated/sage_maker_runtime.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/sage_maker_runtime.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/sage_maker_runtime.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.SageMakerRuntime do @moduledoc """ The Amazon SageMaker runtime API. """ alias AWS.Client alias AWS.Request def metadata do %AWS.ServiceMetadata{ abbreviation: nil, a...
31.476636
159
0.672209
1c17cb68338292f562c80afcc774abdfa4f0c9d8
2,914
ex
Elixir
lib/freddie/security/aes.ex
kernelgarden/freddie
ec8bce295bc9b74ff5364708d04b1346184cf6e4
[ "MIT" ]
8
2019-03-16T04:13:37.000Z
2020-03-16T01:57:41.000Z
lib/freddie/security/aes.ex
kernelgarden/freddie
ec8bce295bc9b74ff5364708d04b1346184cf6e4
[ "MIT" ]
null
null
null
lib/freddie/security/aes.ex
kernelgarden/freddie
ec8bce295bc9b74ff5364708d04b1346184cf6e4
[ "MIT" ]
null
null
null
defmodule Freddie.Security.Aes do @moduledoc false # http://erlang.org/doc/man/crypto.html#block_encrypt-4 alias __MODULE__ @cipher_mode :aes_gcm @aad "FREDDIE_AES256GCM" @iv_size 16 @tag_size 16 @spec generate_aes_key(any()) :: binary() | {:error, {:generate_aes_key, <<_::64, _::_*8>>}} def gener...
30.354167
101
0.655113
1c17db42aed06d7c100c322a0f0aae64f94a8313
503
ex
Elixir
lib/shippex/rate.ex
kianmeng/shippex
0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718
[ "MIT" ]
11
2017-01-16T10:53:56.000Z
2021-06-05T14:51:17.000Z
lib/shippex/rate.ex
kianmeng/shippex
0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718
[ "MIT" ]
4
2017-06-17T16:03:56.000Z
2020-12-31T18:04:21.000Z
lib/shippex/rate.ex
kianmeng/shippex
0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718
[ "MIT" ]
5
2018-01-30T21:57:56.000Z
2021-01-31T02:09:29.000Z
defmodule Shippex.Rate do @moduledoc """ A `Rate` is a representation of a price estimate from a given carrier for a `Service`, which is typically selected by the end user for a desired shipping speed. """ alias Shippex.Service @enforce_keys [:service, :price, :line_items] defstruct [:service, :price,...
26.473684
79
0.640159
1c17fb72875d9ea238af2e4bbbfe53a46deecaae
1,836
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/exec_action.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/exec_action.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/exec_action.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 ...
35.307692
129
0.729847
1c182683647aa60359c7a37bc47e3c16cf6abaf9
174
exs
Elixir
lib/mix/test/fixtures/deps_status/custom/noscm_repo/mix.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/mix/test/fixtures/deps_status/custom/noscm_repo/mix.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/mix/test/fixtures/deps_status/custom/noscm_repo/mix.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2020-12-07T08:04:16.000Z
2020-12-07T08:04:16.000Z
defmodule NoSCMRepo do use Mix.Project def project do [ app: :noscm_repo, version: "0.1.0", deps: [ {:git_repo, "0.1.0"} ] ] end end
13.384615
28
0.511494
1c184cf09d7a813298ffc47ea0ac30ebcbba4011
36,402
ex
Elixir
lib/xandra.ex
Nitrino/xandra
533cae4be6c23d7fc8240f934cf952aaf17e9b44
[ "0BSD" ]
1
2018-11-10T19:41:01.000Z
2018-11-10T19:41:01.000Z
lib/xandra.ex
Nitrino/xandra
533cae4be6c23d7fc8240f934cf952aaf17e9b44
[ "0BSD" ]
null
null
null
lib/xandra.ex
Nitrino/xandra
533cae4be6c23d7fc8240f934cf952aaf17e9b44
[ "0BSD" ]
1
2019-02-11T23:33:15.000Z
2019-02-11T23:33:15.000Z
defmodule Xandra do @moduledoc """ This module provides the main API to interface with Cassandra. This module handles the connection to Cassandra, queries, connection pooling, connection backoff, logging, and more. Many of these features are provided by the [`DBConnection`](https://hex.pm/packages/db_connect...
39.653595
122
0.682572
1c1868d468e11f3372ba5d58d2fcbca5ded36926
1,049
ex
Elixir
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/support/channel_case.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
14
2019-08-01T07:55:50.000Z
2021-04-24T09:14:09.000Z
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/support/channel_case.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
1
2019-08-02T03:03:40.000Z
2019-08-02T03:03:40.000Z
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/support/channel_case.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
null
null
null
defmodule {{cookiecutter.phoenix_app_module}}Web.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 data structures and query the data layer. Finally, ...
26.225
79
0.7245
1c1898f0a07410eb63d60799083c3cbf990572ae
2,177
exs
Elixir
apps/tracing_1/config/prod.exs
WhiteRookPL/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
14
2017-08-09T14:21:47.000Z
2022-03-11T04:10:49.000Z
apps/tracing_1/config/prod.exs
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
null
null
null
apps/tracing_1/config/prod.exs
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
15
2017-09-05T15:43:53.000Z
2020-04-13T16:20:18.000Z
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 # RestApiWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done there. # # Do...
33.492308
67
0.722095
1c18af5b57622f00d21972909eaf4e95c840f567
1,565
ex
Elixir
lib/ex_admin/sidebar.ex
andriybohdan/ex_admin
e31c725078ac4e7390204a87d96360a21ffe7b90
[ "MIT" ]
1
2018-08-30T20:20:56.000Z
2018-08-30T20:20:56.000Z
lib/ex_admin/sidebar.ex
8thlight/ex_admin
314d4068270c47799ec54f719073a565222bcfad
[ "MIT" ]
null
null
null
lib/ex_admin/sidebar.ex
8thlight/ex_admin
314d4068270c47799ec54f719073a565222bcfad
[ "MIT" ]
2
2018-07-12T07:44:50.000Z
2018-07-19T11:45:09.000Z
Code.ensure_compiled(ExAdmin.Utils) defmodule ExAdmin.Sidebar do @moduledoc false require Logger require Ecto.Query use Xain def sidebars_visible?(_conn, %{sidebars: []}), do: false def sidebars_visible?(conn, %{sidebars: sidebars}) do Enum.reduce sidebars, false, fn({_, opts, _}, acc) -> acc || ...
26.982759
68
0.647284
1c18b8a81ac0e7c9453b3a24b99f509bcfd03564
516
ex
Elixir
lib/type_check/default_overrides/range.ex
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
291
2020-07-07T18:14:46.000Z
2022-03-29T22:36:48.000Z
lib/type_check/default_overrides/range.ex
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
71
2020-07-07T11:50:37.000Z
2022-03-23T21:20:54.000Z
lib/type_check/default_overrides/range.ex
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
12
2020-10-07T16:28:22.000Z
2022-02-17T16:31:05.000Z
defmodule TypeCheck.DefaultOverrides.Range do use TypeCheck @type! limit() :: integer() if Version.compare(System.version(), "1.12.0") == :lt do @type! t() :: %Elixir.Range{first: limit(), last: limit()} @type! t(first, last) :: %Elixir.Range{first: first, last: last} else @type! step() :: pos_int...
28.666667
82
0.616279
1c18db0f28f85ab16e81a6097092692353763801
1,256
ex
Elixir
lib/awesome_elixir/web/views/error_helpers.ex
sprql/awesome_elixir
ae1a372bf3060142a546aaf6cb28ffda491d9fa0
[ "MIT" ]
1
2017-04-13T05:37:08.000Z
2017-04-13T05:37:08.000Z
lib/awesome_elixir/web/views/error_helpers.ex
sprql/awesome_elixir
ae1a372bf3060142a546aaf6cb28ffda491d9fa0
[ "MIT" ]
null
null
null
lib/awesome_elixir/web/views/error_helpers.ex
sprql/awesome_elixir
ae1a372bf3060142a546aaf6cb28ffda491d9fa0
[ "MIT" ]
null
null
null
defmodule AwesomeElixir.Web.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_erro...
30.634146
83
0.672771
1c18edbb3dbaacfbf4d1d8a400b7d4ea5ff99652
491
ex
Elixir
lib/history_web/views/error_view.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history_web/views/error_view.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history_web/views/error_view.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defmodule HistoryWeb.ErrorView do use HistoryWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template name...
28.882353
61
0.735234
1c1916f5c5a1b170b9f5c658c96fb3376392cd55
2,302
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource_metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource_metadata.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...
46.04
436
0.743267
1c194225292a238ba3abe1d13ab8ba6f3221ce87
746
ex
Elixir
lib/absinthe/blueprint/document/fragment/inline.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/blueprint/document/fragment/inline.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/blueprint/document/fragment/inline.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Blueprint.Document.Fragment.Inline do @moduledoc false alias Absinthe.Blueprint @enforce_keys [:type_condition] defstruct [ :type_condition, selections: [], directives: [], source_location: nil, # Populated by phases schema_node: nil, complexity: nil, flags: ...
25.724138
62
0.628686
1c196531f398125226859cfc081b15ff1c5d3b13
2,088
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__text_detection_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__text_detection_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__text_detection_config.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...
34.229508
141
0.736111
1c19797f5d1eb29807a50582f857e04df501b962
1,235
ex
Elixir
lib/codes/codes_z14.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z14.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_z14.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_Z14 do alias IcdCode.ICDCode def _Z1401 do %ICDCode{full_code: "Z1401", category_code: "Z14", short_code: "01", full_name: "Asymptomatic hemophilia A carrier", short_name: "Asymptomatic hemophilia A carrier", category_name: "Asympt...
28.72093
60
0.610526
1c19a88787f72d5804ad594828a59fb9c4d8891a
692
exs
Elixir
apps/gapi/priv/repo/seeds.exs
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
apps/gapi/priv/repo/seeds.exs
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
apps/gapi/priv/repo/seeds.exs
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "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: # # Gapi.Repo.insert!(%Gapi.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail ...
25.62963
71
0.686416
1c19b769d2c29e92d278c8418ded4978ddeb049d
6,845
exs
Elixir
test/chat_api_web/controllers/forwarding_address_controller_test.exs
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
test/chat_api_web/controllers/forwarding_address_controller_test.exs
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
test/chat_api_web/controllers/forwarding_address_controller_test.exs
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApiWeb.ForwardingAddressControllerTest do use ChatApiWeb.ConnCase, async: true import ChatApi.Factory alias ChatApi.ForwardingAddresses.ForwardingAddress @update_attrs %{ forwarding_email_address: "updated@forwarding.com", source_email_address: "updated@source.com", description: "some...
31.113636
98
0.646603
1c19c5e8739603162c206432e42baf3ef9945d3b
1,170
ex
Elixir
apps/artemis/lib/artemis/drivers/ibm_cloudant/delete_all.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis/lib/artemis/drivers/ibm_cloudant/delete_all.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/lib/artemis/drivers/ibm_cloudant/delete_all.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule Artemis.Drivers.IBMCloudant.DeleteAll do alias Artemis.Drivers.IBMCloudant @moduledoc """ Deletes all IBM Cloudant databases on all IBM Cloudant hosts """ def call() do hosts_config = IBMCloudant.Config.get_hosts_config!() databases_config = IBMCloudant.Config.get_databases_config!() d...
26.590909
83
0.664103
1c19c90d9b1b66539411f4c14bca2d2edd2c6c01
4,283
ex
Elixir
lib/krakex/api.ex
lukebelbina/krakex
a0cce787d13d000e12dca098531aeacc4548256f
[ "MIT" ]
23
2018-01-29T15:46:16.000Z
2022-02-24T05:35:37.000Z
lib/krakex/api.ex
lukebelbina/krakex
a0cce787d13d000e12dca098531aeacc4548256f
[ "MIT" ]
9
2018-02-27T01:03:00.000Z
2022-01-08T12:09:37.000Z
lib/krakex/api.ex
lukebelbina/krakex
a0cce787d13d000e12dca098531aeacc4548256f
[ "MIT" ]
14
2018-08-10T12:48:14.000Z
2022-02-27T19:10:27.000Z
defmodule Krakex.API do @moduledoc """ Access to public and private APIs. This module defines functions for building calls for the public and private APIs and handles things such as request signing. """ @type response :: {:ok, term} | {:error, any} alias Krakex.Client @public_path "/0/public/" @pr...
27.993464
100
0.660518
1c1a065a65bd6f43331ea9c78c99c977f04ec685
1,391
ex
Elixir
lib/mix/utils.ex
chaince/ex_admin
dee0b0fcf6c1c95d71290a8375a75b7da35c7c25
[ "MIT" ]
null
null
null
lib/mix/utils.ex
chaince/ex_admin
dee0b0fcf6c1c95d71290a8375a75b7da35c7c25
[ "MIT" ]
null
null
null
lib/mix/utils.ex
chaince/ex_admin
dee0b0fcf6c1c95d71290a8375a75b7da35c7c25
[ "MIT" ]
2
2018-07-12T07:44:50.000Z
2018-07-19T11:45:09.000Z
defmodule Mix.ExAdmin.Utils do def get_package_path do __ENV__.file |> Path.dirname |> String.split("/lib/mix") |> hd end def get_module do Mix.Project.get |> Module.split |> Enum.reverse |> Enum.at(1) end def web_path() do path1 = Path.join ["lib", to_string(Mix.Phoenix...
30.23913
83
0.629763
1c1a11bbb41270e985578dca6e7f5576184fc6b8
22,472
ex
Elixir
lib/elixir/lib/kernel/parallel_compiler.ex
matiasgarciaisaia/elixir
d0a3fdbfd774e0a6972513dcb82c2683400e67a0
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/parallel_compiler.ex
matiasgarciaisaia/elixir
d0a3fdbfd774e0a6972513dcb82c2683400e67a0
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/parallel_compiler.ex
matiasgarciaisaia/elixir
d0a3fdbfd774e0a6972513dcb82c2683400e67a0
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.ParallelCompiler do @moduledoc """ A module responsible for compiling and requiring files in parallel. """ @doc """ Starts a task for parallel compilation. If you have a file that needs to compile other modules in parallel, the spawned processes need to be aware of the compiler environm...
34.256098
98
0.646938
1c1a2720297c2ecd8d1897e9ae5418ba75a9be2e
1,094
exs
Elixir
test/furlex/oembed_test.exs
fanhero/furlex
3b77bb7b19f3cee5b2e03d37a997dcec1225d47a
[ "Apache-2.0" ]
1
2019-01-23T13:39:18.000Z
2019-01-23T13:39:18.000Z
test/furlex/oembed_test.exs
alexcastano/furlex
c8e4e474aa2494285fdc19b133d3ad1ea348add9
[ "Apache-2.0" ]
null
null
null
test/furlex/oembed_test.exs
alexcastano/furlex
c8e4e474aa2494285fdc19b133d3ad1ea348add9
[ "Apache-2.0" ]
1
2019-01-11T09:52:03.000Z
2019-01-11T09:52:03.000Z
defmodule Furlex.OembedTest do use ExUnit.Case alias Furlex.Oembed setup do bypass = Bypass.open() url = "http://localhost:#{bypass.port}" config = Application.get_env :furlex, Oembed new_config = Keyword.put config, :oembed_host, url Application.put_env :furlex, Oembed, new_config ...
22.791667
80
0.638026
1c1a596940b37e3a4bb6163708c18fbb9178cb5c
122
exs
Elixir
test/coin_ticker_test.exs
StGerman/CoinTickers
9ff0128b946b7f11642911c0dc7aea6846f13e62
[ "MIT" ]
null
null
null
test/coin_ticker_test.exs
StGerman/CoinTickers
9ff0128b946b7f11642911c0dc7aea6846f13e62
[ "MIT" ]
3
2017-08-28T21:20:42.000Z
2017-08-28T21:22:06.000Z
test/coin_ticker_test.exs
StGerman/CoinTickers
9ff0128b946b7f11642911c0dc7aea6846f13e62
[ "MIT" ]
null
null
null
defmodule CoinTickerTest do use ExUnit.Case doctest CoinTicker test "the truth" do assert 1 + 1 == 2 end end
13.555556
27
0.688525
1c1a90a958ec4901a13ec8c2779ed7dd37d4a0bf
452
ex
Elixir
lib/ory/hydra/helpers/body.ex
sitch/ory-hydra-elixir
529b5d120e0e857f9fadecf0e05f023f56394826
[ "MIT" ]
null
null
null
lib/ory/hydra/helpers/body.ex
sitch/ory-hydra-elixir
529b5d120e0e857f9fadecf0e05f023f56394826
[ "MIT" ]
null
null
null
lib/ory/hydra/helpers/body.ex
sitch/ory-hydra-elixir
529b5d120e0e857f9fadecf0e05f023f56394826
[ "MIT" ]
null
null
null
defmodule ORY.Hydra.Helpers.Body do @spec encode!(ORY.Hydra.Operation.t(), ORY.Hydra.Config.t()) :: String.t() | no_return def encode!(%{method: :get}, _config) do "" end def encode!(operation, config) do operation.params |> Map.drop(operation.params_in_query) |> config.json_codec.encode!() e...
22.6
88
0.659292
1c1ae433e3ac4c51a9cf95f0ad2f0acc138653dc
2,393
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_browse_carousel_card.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_browse_carousel_card.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_browse_carousel_card.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.390625
256
0.754283
1c1ae515913ad1f5d748c361350758c0a44e5f49
1,133
ex
Elixir
lib/chatbot_web/channels/user_socket.ex
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
7
2019-04-05T06:12:56.000Z
2021-04-03T11:39:40.000Z
lib/chatbot_web/channels/user_socket.ex
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
null
null
null
lib/chatbot_web/channels/user_socket.ex
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
3
2019-04-20T13:05:48.000Z
2019-06-05T16:52:46.000Z
defmodule ChatbotWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", ChatbotWeb.RoomChannel ## Transports transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put...
30.621622
83
0.700794
1c1afeae9d04228c953ecd86ab53e8532e8659b3
1,036
ex
Elixir
test/support/factory.ex
paulswartz/arrow
c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9
[ "MIT" ]
null
null
null
test/support/factory.ex
paulswartz/arrow
c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9
[ "MIT" ]
null
null
null
test/support/factory.ex
paulswartz/arrow
c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9
[ "MIT" ]
null
null
null
defmodule Arrow.Factory do use ExMachina.Ecto, repo: Arrow.Repo def adjustment_factory do %Arrow.Adjustment{ route_id: "Red", source: "gtfs_creator", source_label: sequence(:source_label, &"Adjustment-#{&1}") } end def disruption_factory do %Arrow.Disruption{ ready_revision...
22.521739
64
0.671815
1c1b0b20ac96595c0cf7f9f89e1e560001f22220
1,794
ex
Elixir
lib/elixir_script/passes/translate/forms/pattern/patterns.ex
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
1
2021-09-14T14:28:39.000Z
2021-09-14T14:28:39.000Z
lib/elixir_script/passes/translate/forms/pattern/patterns.ex
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
null
null
null
lib/elixir_script/passes/translate/forms/pattern/patterns.ex
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
null
null
null
defmodule ElixirScript.Translate.Forms.Pattern.Patterns do @moduledoc false alias ESTree.Tools.Builder, as: J alias ElixirScript.Translate.Helpers @parameter J.member_expression( Helpers.patterns(), J.identifier(:variable) ) @head_tail J.member_expression( ...
18.306122
58
0.548495
1c1b14b178f318efa43cbbaf300c062e392eb897
1,055
ex
Elixir
lib/wavex/chunk/data.ex
basdirks/wavex
b465c374d4b8a1668187d6c056b1d299fe3a9ffe
[ "Apache-2.0" ]
null
null
null
lib/wavex/chunk/data.ex
basdirks/wavex
b465c374d4b8a1668187d6c056b1d299fe3a9ffe
[ "Apache-2.0" ]
null
null
null
lib/wavex/chunk/data.ex
basdirks/wavex
b465c374d4b8a1668187d6c056b1d299fe3a9ffe
[ "Apache-2.0" ]
null
null
null
defmodule Wavex.Chunk.Data do @moduledoc """ A data chunk. """ alias Wavex.FourCC @enforce_keys [ :size, :data ] defstruct [ :size, :data ] @type t :: %__MODULE__{size: non_neg_integer, data: binary} @four_cc "data" @doc """ The ID that identifies a data chunk. """ @spe...
19.537037
82
0.513744
1c1b2b54ea11b73cad66094c03d8620556e452d1
1,288
ex
Elixir
lib/cache.ex
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
3
2015-06-24T14:58:17.000Z
2019-04-25T23:38:03.000Z
lib/cache.ex
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
1
2018-01-09T04:18:10.000Z
2018-01-09T04:18:10.000Z
lib/cache.ex
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
2
2015-08-16T20:30:10.000Z
2016-04-14T11:24:03.000Z
defmodule RestTwitch.Cache do defmodule Options do defstruct ttl: 86400 end def start_link(client) do GenServer.start_link(__MODULE__, [client], [name: :twitch_cache]) end def init([client]) do {:ok, %{client: client}} end def handle_call({:get, key}, _from, state) do {:reply, state.cli...
24.301887
72
0.640528
1c1b7b4b432bd1d88d743e1189ff542b8900d82c
1,312
ex
Elixir
clients/content/lib/google_api/content/v21/model/pause_buy_on_google_program_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v21/model/pause_buy_on_google_program_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v21/model/pause_buy_on_google_program_request.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...
31.238095
90
0.771341
1c1b9109067c58a3200c197792e5e43f6d4cad79
3,635
ex
Elixir
lib/host.ex
xeejp/TheTragedyOfTheCommons
a674f24383a91125d25d9b6de55a4ae30750c305
[ "MIT" ]
null
null
null
lib/host.ex
xeejp/TheTragedyOfTheCommons
a674f24383a91125d25d9b6de55a4ae30750c305
[ "MIT" ]
1
2016-12-27T02:06:06.000Z
2016-12-27T02:06:06.000Z
lib/host.ex
xeejp/TheTragedyOfTheCommons
a674f24383a91125d25d9b6de55a4ae30750c305
[ "MIT" ]
null
null
null
defmodule TragedyOfTheCommons.Host do alias TragedyOfTheCommons.Main defp ensure_integer(integer) when is_integer(integer), do: integer defp ensure_integer(str), do: Integer.parse(str) |> elem(0) def update_config(data, config) do data = Map.put(data, :capacity, ensure_integer(config["capacity"])) ...
34.619048
200
0.607428
1c1ba706c8bea71ec2dab821ed6b575f80026654
14,270
ex
Elixir
lib/mint/http2/frame.ex
moogle19/mint
80ecfad07dfcefd70d3c729624f7ae3c147ae052
[ "Apache-2.0" ]
null
null
null
lib/mint/http2/frame.ex
moogle19/mint
80ecfad07dfcefd70d3c729624f7ae3c147ae052
[ "Apache-2.0" ]
null
null
null
lib/mint/http2/frame.ex
moogle19/mint
80ecfad07dfcefd70d3c729624f7ae3c147ae052
[ "Apache-2.0" ]
null
null
null
defmodule Mint.HTTP2.Frame do @moduledoc false use Bitwise, skip_operators: true import Record shared_stream = [:stream_id, {:flags, 0x00}] shared_conn = [stream_id: 0, flags: 0x00] defrecord :data, shared_stream ++ [:data, :padding] defrecord :headers, shared_stream ++ [:exclusive?, :stream_dependenc...
30.556745
97
0.652768
1c1be3e3d52a6f881535feb7982ded41ae0f2ff5
546
ex
Elixir
lib/groundstation_web/live/mavlink_viz_live.ex
joshprice/groundstation
ef08065f32c6389d87c84cd36f14052fafe0e3ee
[ "Apache-2.0" ]
23
2019-10-03T05:40:57.000Z
2021-09-29T17:03:59.000Z
lib/groundstation_web/live/mavlink_viz_live.ex
joshprice/groundstation
ef08065f32c6389d87c84cd36f14052fafe0e3ee
[ "Apache-2.0" ]
null
null
null
lib/groundstation_web/live/mavlink_viz_live.ex
joshprice/groundstation
ef08065f32c6389d87c84cd36f14052fafe0e3ee
[ "Apache-2.0" ]
3
2019-10-17T04:13:38.000Z
2020-07-11T02:18:03.000Z
defmodule GroundStationWeb.MavlinkVizLive do use Phoenix.LiveView def render(assigns) do Phoenix.View.render(GroundStationWeb.PageView, "mavlink_viz.html", assigns) end def mount(session, socket) do {:ok, assign(socket, vehicle: session.vehicle)} end def handle_info(:mavlink_message, socket) do ...
21.84
79
0.717949
1c1c03ffe770a7740aad2c36265623c520916492
339
exs
Elixir
priv/repo/migrations/20201224022124_add_oban_jobs_table.exs
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
priv/repo/migrations/20201224022124_add_oban_jobs_table.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
priv/repo/migrations/20201224022124_add_oban_jobs_table.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule Changelog.Repo.Migrations.AddObanJobsTable do use Ecto.Migration def up do Oban.Migrations.up() end # We specify `version: 1` in `down`, ensuring that we'll roll all the way back down if # necessary, regardless of which version we've migrated `up` to. def down do Oban.Migrations.down(ver...
24.214286
88
0.719764
1c1c193bdf4149c32852c7b3c8ef5362f716573e
3,163
ex
Elixir
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/operation.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/operation.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_functions/lib/google_api/cloud_functions/v1/model/operation.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.610169
543
0.725261
1c1c6bfeeeb1661282529d82bdebbce6f263949a
10,623
ex
Elixir
lib/avr/programmer/stk500.ex
luisgabrielroldan/avr
a21b3bfce083adbbcd9a223ec6e4b12ae0439e34
[ "Apache-2.0" ]
10
2020-01-07T06:54:25.000Z
2021-10-16T06:42:19.000Z
lib/avr/programmer/stk500.ex
luisgabrielroldan/ex_avr
a21b3bfce083adbbcd9a223ec6e4b12ae0439e34
[ "Apache-2.0" ]
null
null
null
lib/avr/programmer/stk500.ex
luisgabrielroldan/ex_avr
a21b3bfce083adbbcd9a223ec6e4b12ae0439e34
[ "Apache-2.0" ]
2
2020-11-24T12:06:50.000Z
2021-03-15T12:48:14.000Z
defmodule AVR.Programmer.Stk500 do @moduledoc false alias Circuits.UART alias AVR.Programmer, as: PGM import AVR.Helpers, only: [with_retry: 2, read_min_bytes: 3] import Kernel, except: [send: 2] @behaviour AVR.Programmer @default_speed 115_200 @max_cmd_retries 10 @sync_crc_eop 0x20 @cmd_get_s...
22.458774
87
0.51605
1c1c952578175f4d36b00eeead3a5985da3b191b
831
ex
Elixir
lib/changelog_web/views/news_item_comment_view.ex
yanokwa/changelog.com
88093bada9ff294159246b8200b3121cf41666f7
[ "MIT" ]
1
2021-03-14T21:12:49.000Z
2021-03-14T21:12:49.000Z
lib/changelog_web/views/news_item_comment_view.ex
yanokwa/changelog.com
88093bada9ff294159246b8200b3121cf41666f7
[ "MIT" ]
null
null
null
lib/changelog_web/views/news_item_comment_view.ex
yanokwa/changelog.com
88093bada9ff294159246b8200b3121cf41666f7
[ "MIT" ]
1
2018-10-03T20:55:52.000Z
2018-10-03T20:55:52.000Z
defmodule ChangelogWeb.NewsItemCommentView do use ChangelogWeb, :public_view alias Changelog.{Hashid, ListKit, NewsItemComment, StringKit} alias ChangelogWeb.{LayoutView, PersonView, TimeView} def hashid(id) when is_integer(id), do: Hashid.encode(id) def hashid(comment = %NewsItemComment{}), do: Hashid.enco...
30.777778
73
0.728039
1c1c97be13111b67c849807081d887a4f0e26494
488
ex
Elixir
lib/fomantic_ui/router.ex
easink/fomantic_ui
069e3d9f8bf6859223d35d8e14e97d9e0fb03848
[ "Apache-2.0" ]
null
null
null
lib/fomantic_ui/router.ex
easink/fomantic_ui
069e3d9f8bf6859223d35d8e14e97d9e0fb03848
[ "Apache-2.0" ]
null
null
null
lib/fomantic_ui/router.ex
easink/fomantic_ui
069e3d9f8bf6859223d35d8e14e97d9e0fb03848
[ "Apache-2.0" ]
null
null
null
defmodule FomanticUI.Router do use FomanticUI, :router pipeline :browser do plug(:accepts, ["html"]) plug(:fetch_session) plug(:fetch_live_flash) plug :put_root_layout, {FomanticUI.LayoutView, :root} plug(:protect_from_forgery) plug(:put_secure_browser_headers) end # pipeline :api do ...
20.333333
57
0.661885
1c1ca51d84ae7ea7b557322533fc1cdb923b0a60
7,121
exs
Elixir
test/nerves_new_test.exs
axelson/nerves_bootstrap
d1f13eb5b186af636c8a3a7ad512400ee6a1653c
[ "Apache-2.0" ]
33
2017-10-20T04:04:00.000Z
2021-04-27T11:15:08.000Z
test/nerves_new_test.exs
axelson/nerves_bootstrap
d1f13eb5b186af636c8a3a7ad512400ee6a1653c
[ "Apache-2.0" ]
67
2018-01-10T15:41:43.000Z
2022-02-23T22:11:55.000Z
test/nerves_new_test.exs
axelson/nerves_bootstrap
d1f13eb5b186af636c8a3a7ad512400ee6a1653c
[ "Apache-2.0" ]
14
2018-02-04T16:31:28.000Z
2022-01-21T11:12:46.000Z
Code.require_file("mix_helper.exs", __DIR__) defmodule Nerves.NewTest do use ExUnit.Case import MixHelper @app_name "my_device" setup do # The shell asks to install deps. # We will politely say not to. send(self(), {:mix_shell_input, :yes?, false}) :ok end test "new project default targe...
29.920168
94
0.599635
1c1cd4e79ec0b8cb97137d4739a28ead916bd187
900
ex
Elixir
scenic_live_reload/lib/scenic_live_reload.ex
QuantumProductions/scenic_font_test
ff8d0df6ade399039b9d9e816e398cb1ad80a7db
[ "BSD-3-Clause" ]
1
2019-05-29T00:45:46.000Z
2019-05-29T00:45:46.000Z
scenic_live_reload/lib/scenic_live_reload.ex
QuantumProductions/scenic_font_test
ff8d0df6ade399039b9d9e816e398cb1ad80a7db
[ "BSD-3-Clause" ]
null
null
null
scenic_live_reload/lib/scenic_live_reload.ex
QuantumProductions/scenic_font_test
ff8d0df6ade399039b9d9e816e398cb1ad80a7db
[ "BSD-3-Clause" ]
null
null
null
defmodule ScenicLiveReload do @moduledoc """ A simple, generic code reloader for Scenic Scenes """ use GenServer require Logger defmodule State do @moduledoc false defstruct [] end def start_link(state, name \\ __MODULE__) do GenServer.start_link(__MODULE__, state, name: name) end @im...
19.565217
63
0.656667
1c1cd5ab6af4ab24e648681dd8ccddf7dd90ceb5
6,262
exs
Elixir
test/banchan_web/controllers/user_auth_test.exs
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
test/banchan_web/controllers/user_auth_test.exs
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
test/banchan_web/controllers/user_auth_test.exs
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule BanchanWeb.UserAuthTest do use BanchanWeb.ConnCase, async: true alias Banchan.Accounts alias BanchanWeb.UserAuth import Banchan.AccountsFixtures @remember_me_cookie "_banchan_web_user_remember_me" setup %{conn: conn} do conn = conn |> Map.replace!(:secret_key_base, BanchanWeb.En...
35.988506
98
0.673587
1c1cd63e8ecb4aa1f6bdaa2d390f7f2c7cd582b7
12,759
ex
Elixir
deps/ecto/lib/ecto/changeset/relation.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/changeset/relation.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/changeset/relation.ex
rchervin/phoenixportfolio
a5a6a60168d7261647a10a8dbd395b440db8a4f9
[ "MIT" ]
null
null
null
defmodule Ecto.Changeset.Relation do @moduledoc false alias Ecto.Changeset alias Ecto.Association.NotLoaded @type t :: %{cardinality: :one | :many, on_replace: :raise | :mark_as_invalid | atom, relationship: :parent | :child, owner: atom, related: at...
32.968992
126
0.653891
1c1cf1fdadbc0aff1555c807523e0f6792fd069f
533
ex
Elixir
memory_backend/lib/memory_backend/model/score.ex
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
null
null
null
memory_backend/lib/memory_backend/model/score.ex
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
15
2020-12-23T16:09:28.000Z
2020-12-26T22:32:47.000Z
memory_backend/lib/memory_backend/model/score.ex
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
null
null
null
defmodule MemoryBackend.Model.Score do use Ecto.Schema import Ecto.Changeset @derive {Jason.Encoder, only: [:id, :deck_id, :score, :players]} schema "scores" do field :score, :integer belongs_to(:deck, MemoryBackend.Model.Deck) has_many :players, MemoryBackend.Model.Player, on_replace: :delete ...
20.5
70
0.675422
1c1cf2463e59bce81036a85877d231cbe8bfd6e3
3,977
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/api/hybrid.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/api/hybrid.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/api/hybrid.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...
43.228261
196
0.659039
1c1d05b8966332e8c64c7dfe44bc1a5707fa7ab6
640
ex
Elixir
lib/sobelow/vuln/cookie_rce.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
lib/sobelow/vuln/cookie_rce.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
lib/sobelow/vuln/cookie_rce.ex
tmecklem/sobelow
76b441da408b0156a05fa208a8426c63f3536fe5
[ "Apache-2.0" ]
null
null
null
defmodule Sobelow.Vuln.CookieRCE do alias Sobelow.Utils alias Sobelow.Vuln use Sobelow.Finding @vuln_vsn ~w(1.3.1 1.3.0 1.2.2 1.2.1 1.2.0 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.3 1.0.2 1.0.1 1.0.0) def run(root) do plug_conf = root <> "/deps/plug/mix.exs" if File.exists?(plug_conf) do ...
22.068966
111
0.592188
1c1d08123dde61d516744c59f067b81a7cf4a11a
1,583
ex
Elixir
apps/auth/web/web.ex
mikrofusion/passwordless
26621389cc0e8e307080b1eb5be42b0527e6611b
[ "MIT" ]
null
null
null
apps/auth/web/web.ex
mikrofusion/passwordless
26621389cc0e8e307080b1eb5be42b0527e6611b
[ "MIT" ]
null
null
null
apps/auth/web/web.ex
mikrofusion/passwordless
26621389cc0e8e307080b1eb5be42b0527e6611b
[ "MIT" ]
null
null
null
defmodule Auth.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use Auth.Web, :controller use Auth.Web, :view The definitions below will be executed for every view, controller, etc, so keep them short and cl...
19.54321
61
0.62729
1c1d0e4234852ca9663e00ccfea9205e74db11a8
295
exs
Elixir
elixir/priv/repo/migrations/20200826195412_create_merchants.exs
TreywRoberts/web-homework
d19b17dd384341d9e6e7e3174372673584289b83
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20200826195412_create_merchants.exs
TreywRoberts/web-homework
d19b17dd384341d9e6e7e3174372673584289b83
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20200826195412_create_merchants.exs
TreywRoberts/web-homework
d19b17dd384341d9e6e7e3174372673584289b83
[ "MIT" ]
null
null
null
defmodule Homework.Repo.Migrations.CreateMerchants do use Ecto.Migration def change do create table(:merchants, primary_key: false) do add(:id, :uuid, primary_key: true) add(:name, :string) add(:description, :string) timestamps() end end end
21.071429
54
0.640678
1c1d3c3a46f1113f845ddac2fd2371e9c1111ecb
220
exs
Elixir
tapestry_algorithm/project3.exs
kdlogan19/Tapestry-Algorithm
337445c4569a7f0fd63da31272018a308ed65480
[ "MIT" ]
null
null
null
tapestry_algorithm/project3.exs
kdlogan19/Tapestry-Algorithm
337445c4569a7f0fd63da31272018a308ed65480
[ "MIT" ]
null
null
null
tapestry_algorithm/project3.exs
kdlogan19/Tapestry-Algorithm
337445c4569a7f0fd63da31272018a308ed65480
[ "MIT" ]
null
null
null
defmodule Project3 do def start_project do [num_nodes, num_requests] = System.argv() MainModule.start(String.to_integer(num_nodes), String.to_integer(num_requests)) end end Project3.start_project
27.5
87
0.740909
1c1d4d563bd59fff6cdeeb18b19ccaa4bc2bdb83
118
exs
Elixir
Elixir/Basics/first_app/test/first_app_test.exs
xuedong/programming-language-learning
daba94ffcf99f2ff81224ccbd336b2c0e4013ba1
[ "MIT" ]
null
null
null
Elixir/Basics/first_app/test/first_app_test.exs
xuedong/programming-language-learning
daba94ffcf99f2ff81224ccbd336b2c0e4013ba1
[ "MIT" ]
null
null
null
Elixir/Basics/first_app/test/first_app_test.exs
xuedong/programming-language-learning
daba94ffcf99f2ff81224ccbd336b2c0e4013ba1
[ "MIT" ]
null
null
null
defmodule FirstAppTest do use ExUnit.Case doctest FirstApp test "the truth" do assert 1 + 1 == 2 end end
13.111111
25
0.677966
1c1d55fec3fd0d95ae0f23c1ab89b8b28ad21e31
2,422
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_group_manager_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_group_manager_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_group_manager_status.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...
45.698113
453
0.752684
1c1d5748ff8875cad7c5a1273e40530102a27f09
2,928
ex
Elixir
lib/future_made_concerts_web/telemetry.ex
Future-Made/concerts-for-impact
5532cd1be5252fa0ccb0b956f0961be8701e0e04
[ "MIT" ]
null
null
null
lib/future_made_concerts_web/telemetry.ex
Future-Made/concerts-for-impact
5532cd1be5252fa0ccb0b956f0961be8701e0e04
[ "MIT" ]
null
null
null
lib/future_made_concerts_web/telemetry.ex
Future-Made/concerts-for-impact
5532cd1be5252fa0ccb0b956f0961be8701e0e04
[ "MIT" ]
null
null
null
defmodule FutureMadeConcertsWeb.Telemetry do @moduledoc false use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements ...
29.28
86
0.646175
1c1d5765540605c6f9b449c55dc137f3314f3e48
8,391
ex
Elixir
lib/erlef/groups/git_report.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
71
2019-07-02T18:06:15.000Z
2022-03-09T15:30:08.000Z
lib/erlef/groups/git_report.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
157
2019-07-02T01:21:16.000Z
2022-03-30T16:08:12.000Z
lib/erlef/groups/git_report.ex
joaquinalcerro/website
52dc89c70cd0b42127ab233a4c0d10f626d2b698
[ "Apache-2.0" ]
45
2019-07-04T05:51:11.000Z
2022-02-27T11:56:02.000Z
defmodule Erlef.Groups.GitReport do @moduledoc false # n.b, # This is the initial implementation of a concept called GitReport. # This however is not a good abstraction. A proper absaction would would not be confined to reports. # More features of the app will make use git for submitting and updating files...
23.63662
102
0.562031
1c1da33fdda552d956149624519d270535169471
100
ex
Elixir
lib/evolution/repo.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
lib/evolution/repo.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
lib/evolution/repo.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
defmodule Evolution.Repo do use Ecto.Repo, otp_app: :evolution use Scrivener, page_size: 10 end
20
36
0.77
1c1db4861d75f4efce2be554c49e9a30d38a7de9
1,386
exs
Elixir
elixir/getting-started/9_enumerables_and_streams.exs
wesleyegberto/dojos-languages
87170a722efac1247c713daa21cb3fcc39f5c5c1
[ "MIT" ]
null
null
null
elixir/getting-started/9_enumerables_and_streams.exs
wesleyegberto/dojos-languages
87170a722efac1247c713daa21cb3fcc39f5c5c1
[ "MIT" ]
null
null
null
elixir/getting-started/9_enumerables_and_streams.exs
wesleyegberto/dojos-languages
87170a722efac1247c713daa21cb3fcc39f5c5c1
[ "MIT" ]
null
null
null
# Enumerables and Streams # === Enumarables === # Elixir provides the Enum module with functions to # enumerables manipulations: transform, sort, group, filter an retrieve. # Those functions are eager and usually returns a list. Enum.map(1..3, fn x -> x * 2 end) Enum.reduce(1..3, 0, &+/2) # question mark is a conven...
30.8
82
0.702742
1c1dbd1106e1c0f59a883b96ed2f33fe55f24ba2
2,276
ex
Elixir
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/verify_custom_token_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/verify_custom_token_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/verify_custom_token_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.576271
154
0.711336
1c1dc178ad7e238223e7b90f8f1032892516c3b9
392
ex
Elixir
lib/xiami_daily_recommend.ex
Gizeta/xiami_daily_recommend
e4b510cc02ad544f0007ba78af3e5efc6b6369a3
[ "MIT" ]
null
null
null
lib/xiami_daily_recommend.ex
Gizeta/xiami_daily_recommend
e4b510cc02ad544f0007ba78af3e5efc6b6369a3
[ "MIT" ]
null
null
null
lib/xiami_daily_recommend.ex
Gizeta/xiami_daily_recommend
e4b510cc02ad544f0007ba78af3e5efc6b6369a3
[ "MIT" ]
null
null
null
defmodule XiamiDailyRecommend do use Application def start(_type, _args) do port = Application.get_env(:xiami_daily_recommend, :cowboy_port, 8081) :ets.new(:xiami, [:set, :public, :named_table]) children = [ Plug.Adapters.Cowboy.child_spec(:http, XiamiDailyRecommend.Router, [], port: port) ]...
26.133333
88
0.711735
1c1dc840485b62e9422992e276ad90fd2bc98026
1,132
ex
Elixir
apps/tai/lib/tai/venue_adapters/binance/asset_balances.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/lib/tai/venue_adapters/binance/asset_balances.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venue_adapters/binance/asset_balances.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
defmodule Tai.VenueAdapters.Binance.AssetBalances do def asset_balances(venue_id, account_id, credentials) do venue_credentials = struct!(ExBinance.Credentials, credentials) with {:ok, account} <- ExBinance.Private.account(venue_credentials) do balances = account.balances |> Enum.map(&build(&1, venue_i...
29.025641
100
0.600707
1c1dd25865be8c54d8661b6e118bf7ba641ddad1
602
ex
Elixir
apps/trial/lib/trial/application.ex
losttime/commanded_poc
9b1101924e8b9918666d565d12119dcd448fd040
[ "MIT" ]
null
null
null
apps/trial/lib/trial/application.ex
losttime/commanded_poc
9b1101924e8b9918666d565d12119dcd448fd040
[ "MIT" ]
null
null
null
apps/trial/lib/trial/application.ex
losttime/commanded_poc
9b1101924e8b9918666d565d12119dcd448fd040
[ "MIT" ]
null
null
null
defmodule Trial.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Starts a worker by calling: Trial.Worker.start_link(...
27.363636
64
0.704319
1c1ddef05d912a9d96582a3c538eca42ee47d7dd
536
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/List.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/List.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/List.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
[] &one [] one \\ default [] one when guard [] one :: type [] one | new [] one = two [] one or two [] one || two [] one and two [] one && two [] one != two [] one < two [] one |> two [] one + two [] one / two [] one * two [] one ^^^ two [] !one [] One.Two [] One.two [] @one [] One Two [] one [] @1 [] &1 [] !1 [] not 1 ...
10.938776
21
0.449627
1c1e2bf5e2c954778b23b9501705b9b7c4146cba
3,205
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config_values.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config_values.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/reusable_config_values.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...
53.416667
230
0.744774
1c1e8076e28921d82dbbf044a42f5c0bf4a2a404
376
ex
Elixir
web/views/error_view.ex
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
11
2016-09-10T01:24:32.000Z
2021-03-20T22:54:55.000Z
web/views/error_view.ex
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
null
null
null
web/views/error_view.ex
genamerica/ChatLocal
0a7076a8f25219a0bc694780f3e436eadd357aea
[ "MIT" ]
2
2017-03-01T04:16:41.000Z
2018-01-02T10:14:52.000Z
defmodule Chatroom.ErrorView do use Chatroom.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Server internal error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_templat...
20.888889
47
0.699468
1c1e8c6f52eb3e60ac3613c107b20cc3e5051114
272
ex
Elixir
lib/four_lucha/search.ex
Thomas-Jean/four_lucha
591627059c02edc3315b5cac2c35eacb821108ff
[ "Apache-2.0" ]
1
2021-02-21T19:15:27.000Z
2021-02-21T19:15:27.000Z
lib/four_lucha/search.ex
Thomas-Jean/four_lucha
591627059c02edc3315b5cac2c35eacb821108ff
[ "Apache-2.0" ]
null
null
null
lib/four_lucha/search.ex
Thomas-Jean/four_lucha
591627059c02edc3315b5cac2c35eacb821108ff
[ "Apache-2.0" ]
null
null
null
defmodule FourLucha.Search do @moduledoc false @items "search" use FourLucha.BaseHelpers use FourLucha.BasePlural require FourLucha.Client defp get_resource do Map end defp get_known_query_params do [:query, :resources, :limit, :page] end end
16
39
0.731618
1c1e927cff527570c3b3c04cd638aee04d21dc39
1,270
exs
Elixir
mix.exs
EevanW/elixir-xml_rpc
46609dadc5df66322153e7505ebe02526d784ab1
[ "Apache-2.0" ]
null
null
null
mix.exs
EevanW/elixir-xml_rpc
46609dadc5df66322153e7505ebe02526d784ab1
[ "Apache-2.0" ]
null
null
null
mix.exs
EevanW/elixir-xml_rpc
46609dadc5df66322153e7505ebe02526d784ab1
[ "Apache-2.0" ]
null
null
null
defmodule XmlRpc.Mixfile do use Mix.Project def project do [app: :xmlrpc, version: "1.3.0", elixir: "~> 1.4", name: "XMLRPC", description: "XML-RPC encoder/decder for Elixir. Supports all valid datatypes. Input (ie untrusted) is parsed with erlsom against an xml-schema for security.", ...
27.021277
164
0.611024
1c1e9753dec7d6a0b60822f1b21da3f67ed0bc0a
6,237
ex
Elixir
lib/elixir_script/passes/translate/function.ex
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
1
2021-09-14T14:28:39.000Z
2021-09-14T14:28:39.000Z
lib/elixir_script/passes/translate/function.ex
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
null
null
null
lib/elixir_script/passes/translate/function.ex
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
null
null
null
defmodule ElixirScript.Translate.Function do @moduledoc false # Translates the given Elixir function AST into the # equivalent JavaScript AST. alias ESTree.Tools.Builder, as: J alias ElixirScript.Translate.{Clause, Form, Helpers} alias ElixirScript.Translate.Forms.Pattern @spec compile(any, map) :: {ES...
25.9875
92
0.591951
1c1ea13fde336b3e960f0424534a360b03153878
2,072
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "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
175
0.701255
1c1ea4106b99be8d08ac7f127eedef520da96539
842
ex
Elixir
lib/game/socket.ex
jgsmith/ex_venture
546adaa8fe80d45a72fde6de8d8d6906902c12d4
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/game/socket.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/game/socket.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Game.Socket do @moduledoc """ Client to call the socket module """ @socket Application.get_env(:ex_venture, :networking)[:socket_module] def echo(state, string) do @socket.echo(state.socket, string) end def prompt(state, string) do @socket.prompt(state.socket, string) end def set...
21.05
71
0.711401
1c1ec094153bc4e19706f79d856ede7e101e165a
284
exs
Elixir
priv/repo/migrations/20181001015931_create_videos_tags.exs
the-mikedavis/doc_gen
efcc884ea65bba5748f41c5601abd00db2777ec4
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20181001015931_create_videos_tags.exs
the-mikedavis/doc_gen
efcc884ea65bba5748f41c5601abd00db2777ec4
[ "BSD-3-Clause" ]
27
2018-10-29T18:34:44.000Z
2019-03-11T18:43:12.000Z
priv/repo/migrations/20181001015931_create_videos_tags.exs
the-mikedavis/doc_gen
efcc884ea65bba5748f41c5601abd00db2777ec4
[ "BSD-3-Clause" ]
null
null
null
defmodule DocGen.Repo.Migrations.CreateVideosTags do use Ecto.Migration def change do create table(:videos_tags) do add(:video_id, references(:videos)) add(:tag_id, references(:tags)) end create unique_index(:videos_tags, [:video_id, :tag_id]) end end
21.846154
59
0.704225
1c1ec52d1cf8dbfc8458fdd5829dd4031ee3fd83
396
exs
Elixir
mix.exs
prosapient/dev_space_auth
19038344500a713e41ed5b190cabbbae6cb6dfde
[ "Apache-2.0" ]
null
null
null
mix.exs
prosapient/dev_space_auth
19038344500a713e41ed5b190cabbbae6cb6dfde
[ "Apache-2.0" ]
null
null
null
mix.exs
prosapient/dev_space_auth
19038344500a713e41ed5b190cabbbae6cb6dfde
[ "Apache-2.0" ]
null
null
null
defmodule DevSpaceAuth.MixProject do use Mix.Project def project do [ app: :dev_space_auth, version: "0.1.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps() ] end def application do [ extra_applications: [:logger] ] end defp deps d...
14.666667
42
0.515152
1c1ecd5b6dab608c7b016727f2e38768fc77d583
43,661
ex
Elixir
lib/elixir/lib/stream.ex
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/stream.ex
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/stream.ex
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
defmodule Stream do @moduledoc """ Module for creating and composing streams. Streams are composable, lazy enumerables. Any enumerable that generates items one by one during enumeration is called a stream. For example, Elixir's `Range` is a stream: iex> range = 1..5 1..5 iex> Enum.map rang...
30.468248
108
0.614805
1c1ef8d31f9d082e7d87f753e131806d91d5f647
1,307
exs
Elixir
mix.exs
hissssst/Elixir-Slack
f48c724b0002bc2678df88c683a89eb26cede5d1
[ "MIT" ]
null
null
null
mix.exs
hissssst/Elixir-Slack
f48c724b0002bc2678df88c683a89eb26cede5d1
[ "MIT" ]
null
null
null
mix.exs
hissssst/Elixir-Slack
f48c724b0002bc2678df88c683a89eb26cede5d1
[ "MIT" ]
null
null
null
defmodule Slack.Mixfile do use Mix.Project def project do [ app: :slack, version: "0.19.0", elixir: "~> 1.6", elixirc_paths: elixirc_paths(Mix.env()), name: "Slack", deps: deps(), docs: docs(), source_url: "https://github.com/BlakeWilliams/Elixir-Slack", de...
21.783333
66
0.530987
1c1f034386eaf9d0161da54fbac8fcacc510a10f
2,139
ex
Elixir
web/controllers/auth_controller.ex
aforward-oss/phoenix_guardian
c6dbf4e5e8571f42fc14b1437b9ae2e0485fdbb2
[ "MIT" ]
null
null
null
web/controllers/auth_controller.ex
aforward-oss/phoenix_guardian
c6dbf4e5e8571f42fc14b1437b9ae2e0485fdbb2
[ "MIT" ]
null
null
null
web/controllers/auth_controller.ex
aforward-oss/phoenix_guardian
c6dbf4e5e8571f42fc14b1437b9ae2e0485fdbb2
[ "MIT" ]
null
null
null
defmodule PhoenixGuardian.AuthController do @moduledoc """ Handles the Überauth integration. This controller implements the request and callback phases for all providers. The actual creation and lookup of users/authorizations is handled by UserFromAuth """ use PhoenixGuardian.Web, :controller alias Phoen...
35.065574
106
0.673212
1c1f94b51347692347ffc9fc017d7dc88272d39c
1,602
exs
Elixir
config/dev.exs
Mdlkxzmcp/mango
0009f3ce5d45e392496cdfbd7fa5ad545b65bf04
[ "MIT" ]
null
null
null
config/dev.exs
Mdlkxzmcp/mango
0009f3ce5d45e392496cdfbd7fa5ad545b65bf04
[ "MIT" ]
null
null
null
config/dev.exs
Mdlkxzmcp/mango
0009f3ce5d45e392496cdfbd7fa5ad545b65bf04
[ "MIT" ]
null
null
null
use Mix.Config config :mango, MangoWeb.Endpoint, http: [port: 4000], debug_errors: true, code_reloader: true, check_origin: false, watchers: [ node: [ "node_modules/brunch/bin/brunch", "watch", "--stdin", cd: Path.expand("../assets", __DIR__) ] ] # ## SSL Support # # In ord...
28.105263
170
0.676654