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
38e786f82f64b1776ee44cb265dc04a4c4131bdc
1,578
ex
Elixir
apps/gitgud_web/lib/gitgud/graphql/schema.ex
chulkilee/gitgud
7a9b1023ff986ca08fb821a5e7658904a6061ba3
[ "MIT" ]
null
null
null
apps/gitgud_web/lib/gitgud/graphql/schema.ex
chulkilee/gitgud
7a9b1023ff986ca08fb821a5e7658904a6061ba3
[ "MIT" ]
null
null
null
apps/gitgud_web/lib/gitgud/graphql/schema.ex
chulkilee/gitgud
7a9b1023ff986ca08fb821a5e7658904a6061ba3
[ "MIT" ]
null
null
null
defmodule GitGud.GraphQL.Schema do @moduledoc """ GraphQL schema definition. """ use Absinthe.Schema use Absinthe.Relay.Schema, :modern alias GitGud.GraphQL.Resolvers import_types Absinthe.Type.Custom import_types GitGud.GraphQL.Types @doc """ Returns the source id for the given Relay `global_id`...
24.65625
86
0.684411
38e79b73dae945969639c978d8e103bff9d362af
2,751
exs
Elixir
lib/mix/test/mix/tasks/compile_test.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
4
2015-12-22T02:46:39.000Z
2016-04-26T06:11:09.000Z
lib/mix/test/mix/tasks/compile_test.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile_test.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.CompileTest do use MixTest.Case defmodule CustomCompilers do def project do [compilers: [:elixir, :app, :custom]] end end setup do Mix.Project.push MixTest.Case.Sample :ok end test "compile --list with mixfile" ...
29.580645
108
0.63904
38e7dc9f8215b297c8c1211ee374c52fc97de3c9
201
exs
Elixir
test/oauth_xyz_web/controllers/page_controller_test.exs
ritou/elixir-oauth-xyz
110d4eadb16fa5c106ae0f6fad49c0424bdbf477
[ "MIT" ]
2
2020-04-22T13:22:25.000Z
2020-12-01T12:01:30.000Z
test/oauth_xyz_web/controllers/page_controller_test.exs
ritou/elixir-oauth-xyz
110d4eadb16fa5c106ae0f6fad49c0424bdbf477
[ "MIT" ]
3
2019-12-05T01:32:09.000Z
2019-12-09T01:15:32.000Z
test/oauth_xyz_web/controllers/page_controller_test.exs
ritou/elixir-oauth-xyz-web
110d4eadb16fa5c106ae0f6fad49c0424bdbf477
[ "MIT" ]
null
null
null
defmodule OAuthXYZWeb.PageControllerTest do use OAuthXYZWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
22.333333
60
0.686567
38e819f6fc97f11147b33f2efcce6e9c85fce269
358
exs
Elixir
mix.exs
sadesyllas/opentelemetry-erlang
ea02818322e37b52d26e00777a1cf07681f40cf9
[ "Apache-2.0" ]
null
null
null
mix.exs
sadesyllas/opentelemetry-erlang
ea02818322e37b52d26e00777a1cf07681f40cf9
[ "Apache-2.0" ]
null
null
null
mix.exs
sadesyllas/opentelemetry-erlang
ea02818322e37b52d26e00777a1cf07681f40cf9
[ "Apache-2.0" ]
null
null
null
defmodule OtelElixirTests.MixProject do use Mix.Project def project do [ app: :otel_elixir_tests, version: "0.1.0", deps: deps() ] end def deps do [ {:opentelemetry, path: "apps/opentelemetry", only: :test}, {:opentelemetry_api, path: "apps/opentelemetry_api", only: :...
18.842105
87
0.617318
38e81aa5be744722052bba28f91905568cdbf58c
19,001
ex
Elixir
clients/content/lib/google_api/content/v21/api/pos.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/pos.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/pos.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...
42.13082
187
0.62123
38e81ab04e5dfe7240259a7de83fbffcce26ac94
9,591
ex
Elixir
lib/elixir/unicode/unicode.ex
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
lib/elixir/unicode/unicode.ex
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
lib/elixir/unicode/unicode.ex
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
defmodule String.Unicode do @moduledoc false def version, do: {6,3,0} to_binary = fn "" -> nil codepoints -> codepoints = :binary.split(codepoints, " ", [:global]) Enum.reduce codepoints, "", fn(codepoint, acc) -> acc <> << binary_to_integer(codepoint, 16) :: utf8 >> end ...
27.169972
109
0.63497
38e82e5be5d699a5b56369fcafb33e90b61c18e0
205
ex
Elixir
lib/zstream/decoder/stored.ex
kianmeng/zstream
f8f24c8b9903ecd759517da988e11bb1c958f243
[ "MIT" ]
null
null
null
lib/zstream/decoder/stored.ex
kianmeng/zstream
f8f24c8b9903ecd759517da988e11bb1c958f243
[ "MIT" ]
null
null
null
lib/zstream/decoder/stored.ex
kianmeng/zstream
f8f24c8b9903ecd759517da988e11bb1c958f243
[ "MIT" ]
null
null
null
defmodule Zstream.Decoder.Stored do @moduledoc false @behaviour Zstream.Decoder def init() do nil end def decode(chunk, nil) do {chunk, nil} end def close(nil) do [] end end
12.058824
35
0.643902
38e85a044d6248ec75b095c0b41b666a899d3f38
2,785
ex
Elixir
lib/readability/candidate/scoring.ex
EmailThis/readability
00abeba5b1ef054bd5184a0df47b10245ecde10e
[ "Apache-2.0" ]
10
2017-03-05T08:30:24.000Z
2021-07-13T17:00:06.000Z
lib/readability/candidate/scoring.ex
EmailThis/readability
00abeba5b1ef054bd5184a0df47b10245ecde10e
[ "Apache-2.0" ]
null
null
null
lib/readability/candidate/scoring.ex
EmailThis/readability
00abeba5b1ef054bd5184a0df47b10245ecde10e
[ "Apache-2.0" ]
2
2017-02-05T14:21:39.000Z
2017-02-21T23:00:33.000Z
defmodule Readability.Candidate.Scoring do @moduledoc """ Score html tree """ alias Readability.Helper @element_scores %{"div" => 5, "blockquote" => 3, "form" => -3, "th" => -5 } @type html_tree :: tuple | list @type options :...
31.292135
105
0.611131
38e86367992ba1136c866d6bef08659d293403a4
1,990
exs
Elixir
test/phoenix/live_dashboard/components/columns_component_test.exs
romkor/phoenix_live_dashboard
66424a9367cf676f62c7c152b95da8931ad92a3f
[ "MIT" ]
1
2020-11-04T16:17:32.000Z
2020-11-04T16:17:32.000Z
test/phoenix/live_dashboard/components/columns_component_test.exs
romkor/phoenix_live_dashboard
66424a9367cf676f62c7c152b95da8931ad92a3f
[ "MIT" ]
null
null
null
test/phoenix/live_dashboard/components/columns_component_test.exs
romkor/phoenix_live_dashboard
66424a9367cf676f62c7c152b95da8931ad92a3f
[ "MIT" ]
1
2020-11-16T14:01:08.000Z
2020-11-16T14:01:08.000Z
defmodule Phoenix.LiveDashboard.ColumnsComponentTest do use ExUnit.Case, async: true import Phoenix.LiveViewTest alias Phoenix.LiveDashboard.ColumnsComponent @endpoint Phoenix.LiveDashboardTest.Endpoint defmodule SimpleComponent do use Phoenix.LiveComponent def render(assigns) do ~L""" ...
26.891892
123
0.59799
38e8a8d589fc8a499020bc524626f0ec4ba14545
1,323
ex
Elixir
lib/code_reloader/proxy.ex
Financial-Times/code_reloader
2bc7465c0d45d554210cc8dc2b7e4505d30fd96f
[ "MIT" ]
null
null
null
lib/code_reloader/proxy.ex
Financial-Times/code_reloader
2bc7465c0d45d554210cc8dc2b7e4505d30fd96f
[ "MIT" ]
null
null
null
lib/code_reloader/proxy.ex
Financial-Times/code_reloader
2bc7465c0d45d554210cc8dc2b7e4505d30fd96f
[ "MIT" ]
1
2020-07-30T19:13:50.000Z
2020-07-30T19:13:50.000Z
# A tiny proxy that stores all output sent to the group leader # while forwarding all requests to it. defmodule CodeReloader.Proxy do @moduledoc false use GenServer def start() do GenServer.start(__MODULE__, "") end def stop(proxy) do GenServer.call(proxy, :stop) end ## Callbacks def init(ar...
24.962264
81
0.62585
38e90f4948de84d14bf5556496637c0b39e663ad
568
exs
Elixir
2020/day09/mix.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
2
2020-12-19T00:40:21.000Z
2021-02-16T04:17:05.000Z
2020/day09/mix.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
2020/day09/mix.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
1
2020-12-14T22:37:13.000Z
2020-12-14T22:37:13.000Z
defmodule Day09.MixProject do use Mix.Project def project do [ app: :day09, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applic...
19.586207
87
0.573944
38e9156c7a2b6239ed5b2833f94aa3a9d236a60e
2,449
ex
Elixir
lib/membrane/core/parent/children_model.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/parent/children_model.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
lib/membrane/core/parent/children_model.ex
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Core.Parent.ChildrenModel do @moduledoc false alias Membrane.{Child, ChildEntry} alias Membrane.Core.Parent @type children_t :: %{Child.name_t() => ChildEntry.t()} @spec add_child(Parent.state_t(), Child.name_t(), ChildEntry.t()) :: {:ok | {:error, {:duplicate_child, Child.name...
34.013889
98
0.612903
38e92f1e7888329052a0c055fe0777af6815920f
963
exs
Elixir
test/fitdata_test.exs
piisgaaf/chi2fit
64e1c6719142e74979a407749953b892d4ccd985
[ "Apache-2.0" ]
4
2017-11-06T20:08:40.000Z
2021-07-01T13:42:48.000Z
test/fitdata_test.exs
piisgaaf/chi2fit
64e1c6719142e74979a407749953b892d4ccd985
[ "Apache-2.0" ]
null
null
null
test/fitdata_test.exs
piisgaaf/chi2fit
64e1c6719142e74979a407749953b892d4ccd985
[ "Apache-2.0" ]
null
null
null
defmodule FitTest do # Copyright 2017 Pieter Rijken # # 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 b...
31.064516
81
0.68432
38e93ae18a15d2ae44b8b5c663c6efe207dccb9f
6,661
ex
Elixir
apps/fetch/lib/fetch/worker.ex
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/fetch/lib/fetch/worker.ex
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/fetch/lib/fetch/worker.ex
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
defmodule Fetch.Worker do @moduledoc """ A worker for fetching a particular URL. It can maintain a simple cache of the file on the filesystem if :cache_directory is passed in as an option. """ use GenServer use Timex require Logger def start_link(parent_opts \\ [], url) do GenServer.start_link(_...
24.579336
97
0.599009
38e94e4aa8ca964a0c3d2522fb1d177472d50e1a
151
exs
Elixir
config/config.exs
membraneframework/membrane_element_ibm_speech_to_text
04651abe7c723f7cf16c5336c9a0e2e917238d11
[ "Apache-2.0" ]
5
2019-11-15T10:44:36.000Z
2021-05-15T21:14:49.000Z
config/config.exs
membraneframework/membrane_element_ibm_speech_to_text
04651abe7c723f7cf16c5336c9a0e2e917238d11
[ "Apache-2.0" ]
null
null
null
config/config.exs
membraneframework/membrane_element_ibm_speech_to_text
04651abe7c723f7cf16c5336c9a0e2e917238d11
[ "Apache-2.0" ]
null
null
null
use Mix.Config secret_config = "#{Mix.env()}.secret.exs" |> Path.expand(__DIR__) if File.exists?(secret_config) do import_config secret_config end
18.875
65
0.748344
38e957f0595c05bbd77f4ab57b87791c0f21137f
1,697
ex
Elixir
lib/ex_sieve/node/grouping.ex
s33m4nn/ex_sieve
20c54e6f9f2b48dca09aa97a750a218c15812d2d
[ "MIT" ]
35
2016-10-09T14:20:11.000Z
2022-01-06T20:05:10.000Z
lib/ex_sieve/node/grouping.ex
s33m4nn/ex_sieve
20c54e6f9f2b48dca09aa97a750a218c15812d2d
[ "MIT" ]
10
2016-10-26T09:55:24.000Z
2020-05-28T12:09:10.000Z
lib/ex_sieve/node/grouping.ex
s33m4nn/ex_sieve
20c54e6f9f2b48dca09aa97a750a218c15812d2d
[ "MIT" ]
12
2016-10-19T08:13:58.000Z
2020-05-12T08:55:36.000Z
defmodule ExSieve.Node.Grouping do @moduledoc false defstruct conditions: nil, combinator: nil, groupings: [] @type t :: %__MODULE__{} alias ExSieve.{Config, Utils} alias ExSieve.Node.{Condition, Grouping} @combinators ~w(or and) @spec extract(%{binary => term}, atom, Config.t()) :: t() ...
34.632653
105
0.672363
38e95d1c9d00a14e2dfe6d9da043254d7bc3b959
1,363
exs
Elixir
examples/river/couchdb_river.exs
falood/tirexs
9c63532cf2f50f77fb437f617d433741771d3619
[ "Apache-2.0" ]
null
null
null
examples/river/couchdb_river.exs
falood/tirexs
9c63532cf2f50f77fb437f617d433741771d3619
[ "Apache-2.0" ]
null
null
null
examples/river/couchdb_river.exs
falood/tirexs
9c63532cf2f50f77fb437f617d433741771d3619
[ "Apache-2.0" ]
null
null
null
# # Run this example from console manually: # # $ mix run -r examples/river/couchdb_river.exs # # => curl -X PUT -d '{"type": "couchdb","couchdb": {"ignore_attachments": true,"host": "localhost","port": 5984,"db": "labeled","filter": "elastic/only","script": "ctx._type = ctx.doc.type"},"index": {"bulk_size": 100,"b...
29.630435
312
0.623624
38e9841c1d49f5cbcb29f61d805584f9651d35c9
7,625
exs
Elixir
test/support/view_helpers.exs
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
2
2018-01-19T06:12:16.000Z
2018-03-12T07:17:17.000Z
test/support/view_helpers.exs
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
null
null
null
test/support/view_helpers.exs
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
1
2019-09-11T10:21:21.000Z
2019-09-11T10:21:21.000Z
defmodule TestCoherenceWeb.ViewHelpers do @moduledoc """ Helper functions for Coherence Views. """ use Phoenix.HTML alias Coherence.Config alias Coherence.Messages @type conn :: Plug.Conn.t @type schema :: Ecto.Schema.t @seperator {:safe, "&nbsp; | &nbsp;"} @helpers Module.concat(Application.get_e...
35.966981
122
0.689049
38e9877f4b1748020e7ccd6c8353d9edd8604175
1,834
ex
Elixir
lib/changelog_web/plugs/conn.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
lib/changelog_web/plugs/conn.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
lib/changelog_web/plugs/conn.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule ChangelogWeb.Plug.Conn do @moduledoc """ General-purpose, connection-related functions available to controllers. """ import Plug.Conn require Logger alias ChangelogWeb.Router @doc """ Extracts the user agent from a connection's headers """ def get_agent(conn) do conn |> get_req_...
22.096386
75
0.612323
38e9937939b0d1e95b31f87ede31d30bbcd240ce
2,936
ex
Elixir
lib/medic/doctor.ex
eahanson/medic
01f35f2aa22e7120cf1bd492e6e5400a29224791
[ "MIT" ]
3
2021-06-18T18:42:35.000Z
2022-02-09T01:54:58.000Z
lib/medic/doctor.ex
eahanson/medic
01f35f2aa22e7120cf1bd492e6e5400a29224791
[ "MIT" ]
3
2021-06-17T19:02:32.000Z
2021-06-17T19:44:35.000Z
lib/medic/doctor.ex
eahanson/medic
01f35f2aa22e7120cf1bd492e6e5400a29224791
[ "MIT" ]
1
2022-03-10T19:16:14.000Z
2022-03-10T19:16:14.000Z
defmodule Medic.Doctor do @moduledoc """ Checks to ensure that the application can be run for development and tests. ## Usage `Medic.Doctor` is run from a shell script generated at `bin/dev/doctor`: elixir -r .medic/require.exs -e "Medic.Doctor.run()" $* ## Configuration See the guides for inform...
22.584615
111
0.587875
38e99a6ca6b7d64baad2c7a22b57afa9ab88415d
1,536
exs
Elixir
test/blankable_test.exs
samphilipd/blankable
b942295082110d85e08f4eb490798722a6724410
[ "MIT" ]
21
2017-06-20T16:46:09.000Z
2019-12-09T14:49:52.000Z
test/blankable_test.exs
samsondav/blankable
b942295082110d85e08f4eb490798722a6724410
[ "MIT" ]
1
2017-11-27T18:20:13.000Z
2018-08-29T06:57:18.000Z
test/blankable_test.exs
samsondav/blankable
b942295082110d85e08f4eb490798722a6724410
[ "MIT" ]
3
2017-11-03T01:16:51.000Z
2019-10-11T01:38:18.000Z
defmodule BlankableTest do use ExUnit.Case describe "blank?" do test "is true for empty list" do assert Blankable.blank?([]) end test "is false for list with one element" do refute Blankable.blank?([1]) end test "is true for empty string" do assert Blankable.blank?("") e...
20.756757
53
0.611328
38e9c5a89fee78971082eea65d0e0385ee7a43f5
3,218
ex
Elixir
lib/radiator_web/router.ex
djschilling/radiator
382e22904d7e400a8ffba54e9ddfd2845bc2b623
[ "MIT" ]
null
null
null
lib/radiator_web/router.ex
djschilling/radiator
382e22904d7e400a8ffba54e9ddfd2845bc2b623
[ "MIT" ]
null
null
null
lib/radiator_web/router.ex
djschilling/radiator
382e22904d7e400a8ffba54e9ddfd2845bc2b623
[ "MIT" ]
null
null
null
defmodule RadiatorWeb.Router do use RadiatorWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :public_browser do plug :accepts, ["html", "xml", "rss"] plug :put_se...
28.477876
88
0.709447
38e9c76dbddf359d77cd826924d5fe6e40b651cd
606
ex
Elixir
lib/ex338_web/controllers/championship_controller.ex
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
lib/ex338_web/controllers/championship_controller.ex
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
lib/ex338_web/controllers/championship_controller.ex
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338Web.ChampionshipController do use Ex338Web, :controller alias Ex338.{Championships, FantasyLeagues} def index(conn, %{"fantasy_league_id" => league_id}) do render( conn, "index.html", championships: Championships.all_for_league(league_id), fantasy_league: FantasyLeagues...
26.347826
76
0.691419
38e9c78b13a7865fd5bdbc1c837e608a41ff338a
342
exs
Elixir
priv/repo/migrations/20170618025849_create_comments_comment.exs
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
2
2017-10-06T01:14:35.000Z
2017-11-18T16:44:44.000Z
priv/repo/migrations/20170618025849_create_comments_comment.exs
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
6
2017-10-06T00:04:59.000Z
2017-10-06T00:09:27.000Z
priv/repo/migrations/20170618025849_create_comments_comment.exs
apps-team/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
1
2017-10-06T01:17:35.000Z
2017-10-06T01:17:35.000Z
defmodule CommunityTools.Repo.Migrations.CreateCommunityTools.Comments.Comment do use Ecto.Migration def change do create table(:comments) do add :title, :string add :body, :text add :post_id, references(:posts, on_delete: :delete_all) timestamps() end create index(:comments, ...
21.375
81
0.690058
38e9d451d222bb8befdbaf321588021e5d66a893
3,586
exs
Elixir
test/session_test.exs
lorantkurthy/elixir-janus
3c468b91445f8bcddc58fe7c5356ddc6da625c9e
[ "Apache-2.0" ]
8
2020-10-06T01:01:19.000Z
2022-01-22T06:06:51.000Z
test/session_test.exs
lorantkurthy/elixir-janus
3c468b91445f8bcddc58fe7c5356ddc6da625c9e
[ "Apache-2.0" ]
12
2020-08-24T14:47:34.000Z
2020-10-05T08:03:56.000Z
test/session_test.exs
lorantkurthy/elixir-janus
3c468b91445f8bcddc58fe7c5356ddc6da625c9e
[ "Apache-2.0" ]
3
2020-11-06T18:44:16.000Z
2022-03-17T08:14:59.000Z
defmodule Janus.SessionTest do use ExUnit.Case, async: false import Mox alias Janus.{Session, Connection} alias Janus.Support.FakeHandler @timeout 100 @session_id 1 @request_response_pairs [ { %{ janus: :create }, %{ "janus" => "success", "data" => %{"id" => ...
26.175182
103
0.56609
38e9e224c294a3e86b056e114f840b21451bfa95
6,858
ex
Elixir
lib/ecto_autoslug_field/slug.ex
sobolevn/ecto_autoslug_field
203fff4610e42e305ef678ca884fb69bde1678d1
[ "MIT" ]
143
2016-07-21T22:54:57.000Z
2021-12-31T13:53:03.000Z
lib/ecto_autoslug_field/slug.ex
sobolevn/ecto_autoslug_field
203fff4610e42e305ef678ca884fb69bde1678d1
[ "MIT" ]
154
2016-08-04T18:35:13.000Z
2022-01-12T06:42:17.000Z
lib/ecto_autoslug_field/slug.ex
wemake-services/ecto_autoslug_field
838e746fb41c7debf5d466994d544e495f505540
[ "MIT" ]
21
2016-07-23T18:43:14.000Z
2021-06-03T15:09:21.000Z
defmodule EctoAutoslugField.SlugBase do @moduledoc """ This module defines all functions `Slug` module uses. """ alias Ecto.Changeset alias EctoAutoslugField.SlugGenerator @doc """ This function is used to generate slug. It is called 'maybe' since it may not generate slug for several reasons: 1....
29.947598
82
0.67002
38ea3753d285a6694af48c8806b6783ef0f2e760
61
ex
Elixir
debian/shlibs.local.ex
Gurut/libfenc
04498be422b76fba70efbf7d7b4d154fdfb54d65
[ "BSD-3-Clause" ]
2
2019-09-22T14:54:02.000Z
2019-12-24T08:22:41.000Z
debian/shlibs.local.ex
Gurut/libfenc
04498be422b76fba70efbf7d7b4d154fdfb54d65
[ "BSD-3-Clause" ]
2
2017-03-05T14:50:42.000Z
2019-02-06T19:11:16.000Z
debian/shlibs.local.ex
Gurut/libfenc
04498be422b76fba70efbf7d7b4d154fdfb54d65
[ "BSD-3-Clause" ]
3
2016-05-25T04:48:48.000Z
2018-01-11T09:43:38.000Z
liblibfenc 0.1.0 libfenc (>> 0.1.0-0), libfenc (<< 0.1.0-99)
30.5
60
0.590164
38ea6f292264c2e8dcde04c4e14500e6f52e890c
1,245
ex
Elixir
lib/pushex/apns/request.ex
mauricionr/pushex-1
a096335bd4b92da152cf9fe5f99c824433a6af41
[ "MIT" ]
69
2016-03-29T15:35:29.000Z
2018-06-27T14:57:23.000Z
lib/pushex/apns/request.ex
mauricionr/pushex-1
a096335bd4b92da152cf9fe5f99c824433a6af41
[ "MIT" ]
9
2016-04-29T09:14:49.000Z
2017-10-31T02:08:14.000Z
lib/pushex/apns/request.ex
mauricionr/pushex-1
a096335bd4b92da152cf9fe5f99c824433a6af41
[ "MIT" ]
6
2016-08-26T12:56:05.000Z
2018-06-21T23:51:00.000Z
defmodule Pushex.APNS.Request do @moduledoc """ `Pushex.APNS.Request` represents a request that will be sent to APNS. It contains the notification, and all the metadata that can be sent with it. Only the key with a value will be sent to APNS. """ use Vex.Struct defstruct [:app, :to, :notification] @...
29.642857
93
0.673092
38ea78d95aeebff4171ab65fa688303d1564438b
1,072
exs
Elixir
mix.exs
jamesmintram/transit_elixir
5e2c80b9055dd3509e318a96d41b9d1ef0b53fb9
[ "Apache-2.0" ]
null
null
null
mix.exs
jamesmintram/transit_elixir
5e2c80b9055dd3509e318a96d41b9d1ef0b53fb9
[ "Apache-2.0" ]
null
null
null
mix.exs
jamesmintram/transit_elixir
5e2c80b9055dd3509e318a96d41b9d1ef0b53fb9
[ "Apache-2.0" ]
null
null
null
defmodule TransitElixir.MixProject do use Mix.Project def project do [ app: :transit_elixir, version: "0.0.1", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), description: description(), source_url: "https://github.com/jam...
22.808511
78
0.579291
38ea8e8ca15878ff9e5f4c35995aeacec2253776
30,167
exs
Elixir
lib/elixir/test/elixir/file_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
4
2016-04-05T05:51:36.000Z
2019-10-31T06:46:35.000Z
lib/elixir/test/elixir/file_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/file_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
5
2015-02-01T06:01:19.000Z
2019-08-29T09:02:35.000Z
Code.require_file "test_helper.exs", __DIR__ defmodule FileTest do import PathHelpers use ExUnit.Case defmodule Cp do use ExUnit.Case # cp_r/c is managed in setup/teardown because if it is stored in # the repository, reltool can't build a release setup do src = fixture_path("cp_r") ...
26.462281
152
0.593861
38eab9226c9f99881f84baa74197824846ae5da2
2,395
ex
Elixir
clients/tool_results/lib/google_api/tool_results/v1beta3/model/screenshot_cluster.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/tool_results/lib/google_api/tool_results/v1beta3/model/screenshot_cluster.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/tool_results/lib/google_api/tool_results/v1beta3/model/screenshot_cluster.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 ...
42.767857
369
0.730689
38eac4390739ffef815be4064e4e290b2c34589f
71
ex
Elixir
lib/discuss/mailer.ex
frunox/discuss
d19367eceb8c68ebef4e565981ceef256b5cb04e
[ "MIT" ]
null
null
null
lib/discuss/mailer.ex
frunox/discuss
d19367eceb8c68ebef4e565981ceef256b5cb04e
[ "MIT" ]
null
null
null
lib/discuss/mailer.ex
frunox/discuss
d19367eceb8c68ebef4e565981ceef256b5cb04e
[ "MIT" ]
null
null
null
defmodule Discuss.Mailer do use Swoosh.Mailer, otp_app: :discuss end
17.75
38
0.788732
38eb0cc387b3b117d23b4ea48cad094f4376e283
368
ex
Elixir
installer/auth/web/views/error_view.ex
omotenko/phoenix_auth
a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc
[ "MIT" ]
null
null
null
installer/auth/web/views/error_view.ex
omotenko/phoenix_auth
a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc
[ "MIT" ]
null
null
null
installer/auth/web/views/error_view.ex
omotenko/phoenix_auth
a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc
[ "MIT" ]
null
null
null
defmodule Auth.ErrorView do use Auth.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(_template, assig...
20.444444
47
0.692935
38eb1257e5eedc8d087a8e20d9de698688c3ed2d
1,820
ex
Elixir
farmbot_os/lib/farmbot_os/lua/ext/data_manipulation.ex
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
farmbot_os/lib/farmbot_os/lua/ext/data_manipulation.ex
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
farmbot_os/lib/farmbot_os/lua/ext/data_manipulation.ex
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
defmodule FarmbotOS.Lua.Ext.DataManipulation do @moduledoc """ Extensions for manipulating data from Lua """ alias FarmbotCore.{ Asset, Asset.Device, Asset.FbosConfig, Asset.FirmwareConfig } alias FarmbotOS.Lua.Util def update_device([table], lua) do params = Map.new(table) _ = ...
24.266667
72
0.670879
38eb20d94c9586d09bd4300ed9f3bc7cb9eea127
1,027
ex
Elixir
lib/ssh_tunnel/tunnel.ex
drowzy/ssht
310c3796f054f2839d78ad6e457adf4c6f7075d4
[ "MIT" ]
28
2018-03-22T00:02:36.000Z
2021-07-29T07:19:18.000Z
lib/ssh_tunnel/tunnel.ex
drowzy/ssht
310c3796f054f2839d78ad6e457adf4c6f7075d4
[ "MIT" ]
1
2018-11-22T20:15:59.000Z
2018-11-23T08:36:12.000Z
lib/ssh_tunnel/tunnel.ex
drowzy/ssht
310c3796f054f2839d78ad6e457adf4c6f7075d4
[ "MIT" ]
5
2019-05-08T16:22:54.000Z
2021-10-03T17:14:54.000Z
defmodule SSHTunnel.Tunnel do @type to :: {:tcpip | :local, tuple()} @spec start(pid(), to, Keyword.t()) :: {:ok, pid()} | {:error, term()} def start(ref, to, opts \\ []) do worker_opts = ref |> worker_opts(to) |> Keyword.merge(opts) |> worker_spec() DynamicSupervisor.start_child...
22.822222
74
0.591042
38eb210fa68984360f6fac9eeec4477c84fff575
78
exs
Elixir
backend/test/views/layout_view_test.exs
ospaarmann/ex-emoji-map
7a5c2a1b4c2c684ddee33ac2b284c65d150965d4
[ "MIT" ]
14
2018-01-12T08:47:00.000Z
2020-06-18T04:59:27.000Z
backend/test/views/layout_view_test.exs
ospaarmann/ex-emoji-map
7a5c2a1b4c2c684ddee33ac2b284c65d150965d4
[ "MIT" ]
1
2017-03-17T13:15:47.000Z
2017-03-17T13:15:47.000Z
backend/test/views/layout_view_test.exs
ospaarmann/ex-emoji-map
7a5c2a1b4c2c684ddee33ac2b284c65d150965d4
[ "MIT" ]
4
2018-07-31T12:29:15.000Z
2021-01-05T19:22:49.000Z
defmodule EmojiMap.LayoutViewTest do use EmojiMap.ConnCase, async: true end
19.5
36
0.820513
38eb5a7225cf0eca73acf849d70d103dbf94da9c
1,315
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32.073171
107
0.75057
38eb7a08576dd62c4d2566cb519fb93c996df77e
14,859
ex
Elixir
lib/phoenix_live_view/diff.ex
tiagoefmoraes/phoenix_live_view
ed77fa52443c77bd9f281f1a64da832a6e8724e8
[ "MIT" ]
null
null
null
lib/phoenix_live_view/diff.ex
tiagoefmoraes/phoenix_live_view
ed77fa52443c77bd9f281f1a64da832a6e8724e8
[ "MIT" ]
null
null
null
lib/phoenix_live_view/diff.ex
tiagoefmoraes/phoenix_live_view
ed77fa52443c77bd9f281f1a64da832a6e8724e8
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.Diff do # The diff engine is responsible for tracking the rendering state. # Given that components are part of said state, they are also # handled here. @moduledoc false alias Phoenix.LiveView.{Utils, Rendered, Comprehension, Component} @components :c @static :s @dynamics :d...
31.682303
100
0.666667
38eb981548d70f72e010a05c210160216bbdfa8c
700
ex
Elixir
lib/air_quality/application.ex
line/clova-cek-sdk-elixir-sample
abf263d9ffc6846a3fd36ca2500beb8a679485ff
[ "Apache-2.0" ]
1
2018-07-24T01:41:04.000Z
2018-07-24T01:41:04.000Z
lib/air_quality/application.ex
line/clova-cek-sdk-elixir-sample
abf263d9ffc6846a3fd36ca2500beb8a679485ff
[ "Apache-2.0" ]
null
null
null
lib/air_quality/application.ex
line/clova-cek-sdk-elixir-sample
abf263d9ffc6846a3fd36ca2500beb8a679485ff
[ "Apache-2.0" ]
1
2018-08-29T05:14:31.000Z
2018-08-29T05:14:31.000Z
defmodule AirQuality.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do port = case System.get_env("PORT") do nil -> 4001 str -> String.to_integer(str) end ...
26.923077
92
0.682857
38ebbb9bc974d1e32e6a60480199c0e7426cdd09
3,214
exs
Elixir
todo/test/todo/list_server_test.exs
moritzploss/todoServer
404db774493b42bb328c552c8c428fa4be2b10d1
[ "MIT" ]
null
null
null
todo/test/todo/list_server_test.exs
moritzploss/todoServer
404db774493b42bb328c552c8c428fa4be2b10d1
[ "MIT" ]
null
null
null
todo/test/todo/list_server_test.exs
moritzploss/todoServer
404db774493b42bb328c552c8c428fa4be2b10d1
[ "MIT" ]
null
null
null
defmodule Todo.ListServerTest do use ExUnit.Case, async: true alias Todo.ListServer setup do user_id = UUID.uuid4(:default) {:ok, pid} = ListServer.start_link(user_id, UUID.uuid4(:default)) %{pid: pid} end test "start a list server process" do user_id = UUID.uuid4(:default) {:ok, pid} =...
30.609524
80
0.662103
38ebf05e658d486f37fd4262a963cf4f3e4d1bc6
2,170
ex
Elixir
apps/discovery_api/test/utils/auth_conn_case/auth_helper.ex
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/discovery_api/test/utils/auth_conn_case/auth_helper.ex
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/discovery_api/test/utils/auth_conn_case/auth_helper.ex
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule DiscoveryApi.Test.AuthConnCase.AuthHelper do @moduledoc """ Helper functions and valid values for testing auth things. """ alias Auth.TestHelper def build_connections() do authorized_jwt = TestHelper.valid_jwt() revocable_jwt = TestHelper.revocable_jwt() conn = Phoenix.ConnTest.b...
27.125
97
0.673272
38ebf0f9f8e846394c40406a995f9b8341b0f89a
3,308
ex
Elixir
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_type_expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_type_expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_type_expr.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...
59.071429
1,092
0.739722
38ec1434bf8a878aab95dd72e811546a0d85cc4d
207
ex
Elixir
apps/etv_data/lib/repo/enums.ex
sheharyarn/etv
65b96e436d5fe6fa11bfb293fa676f0bbf2d5121
[ "MIT" ]
2
2020-01-13T09:34:04.000Z
2021-05-19T07:51:07.000Z
apps/etv_data/lib/repo/enums.ex
sheharyarn/etv
65b96e436d5fe6fa11bfb293fa676f0bbf2d5121
[ "MIT" ]
null
null
null
apps/etv_data/lib/repo/enums.ex
sheharyarn/etv
65b96e436d5fe6fa11bfb293fa676f0bbf2d5121
[ "MIT" ]
2
2018-09-01T20:58:11.000Z
2021-05-19T07:51:11.000Z
defmodule ETV.Data.Repo.Enums do import EctoEnum @moduledoc """ Central location to define all enums for ecto """ defenum TxStatus, [ pending: 0, complete: 1, failed: 2, ] end
12.9375
47
0.628019
38ec285ce899e6c0143f617ce7e007135b78d1a3
1,402
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/global_permission.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/classroom/lib/google_api/classroom/v1/model/global_permission.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/classroom/lib/google_api/classroom/v1/model/global_permission.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...
29.829787
77
0.737518
38ec2e28c367c3198fc7bbbf3388f933bdbd9da9
1,119
exs
Elixir
apps/commands/config/config.exs
twDuke/myopic
74b2322eb638fc3a21d0d7f5578bf16f142a711b
[ "MIT" ]
null
null
null
apps/commands/config/config.exs
twDuke/myopic
74b2322eb638fc3a21d0d7f5578bf16f142a711b
[ "MIT" ]
null
null
null
apps/commands/config/config.exs
twDuke/myopic
74b2322eb638fc3a21d0d7f5578bf16f142a711b
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.096774
73
0.751564
38ec40e1a24ef111c9549eca0dc741c119401da7
690
ex
Elixir
lib/rockelivery/orders/report_runner.ex
riosvictor/rockelivery
d34c8ccd76f95bb5bc8131f8ef1fb9111f554ebb
[ "MIT" ]
1
2022-03-16T20:41:29.000Z
2022-03-16T20:41:29.000Z
lib/rockelivery/orders/report_runner.ex
riosvictor/rockelivery
d34c8ccd76f95bb5bc8131f8ef1fb9111f554ebb
[ "MIT" ]
null
null
null
lib/rockelivery/orders/report_runner.ex
riosvictor/rockelivery
d34c8ccd76f95bb5bc8131f8ef1fb9111f554ebb
[ "MIT" ]
null
null
null
defmodule Rockelivery.Orders.ReportRunner do use GenServer require Logger alias Rockelivery.Orders.Report # Client def start_link(_initial_stack) do GenServer.start_link(__MODULE__, %{}) end # Server (Callbacks) @impl true def init(state) do Logger.info("Report Runner started") schedul...
18.648649
62
0.7
38ec65e32148580be6594743b1a8249847928151
84
exs
Elixir
apps/rumbl/priv/repo/backend_seeds.exs
Krustee/rumbrella
252ee46da0c563680f8dddb381523ab7a75069fe
[ "MIT" ]
null
null
null
apps/rumbl/priv/repo/backend_seeds.exs
Krustee/rumbrella
252ee46da0c563680f8dddb381523ab7a75069fe
[ "MIT" ]
null
null
null
apps/rumbl/priv/repo/backend_seeds.exs
Krustee/rumbrella
252ee46da0c563680f8dddb381523ab7a75069fe
[ "MIT" ]
null
null
null
alias Rumbl.{Repo, User} Repo.insert!(%User{name: "Wolfram", username: "wolfram"})
21
57
0.690476
38ec914c9b66ff29efc7176ba33189ff4f33b81a
3,309
ex
Elixir
lib/liblink/socket/recvmsg.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
3
2018-10-26T12:55:15.000Z
2019-05-03T22:41:34.000Z
lib/liblink/socket/recvmsg.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
4
2018-08-26T14:43:57.000Z
2020-09-23T21:14:56.000Z
lib/liblink/socket/recvmsg.ex
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 (c) Xerpa # # 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, so...
24.330882
87
0.63705
38ecd27681f0e7120ee18f3cf63408ff93b1082d
1,761
ex
Elixir
clients/dns/lib/google_api/dns/v1/model/operation_managed_zone_context.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dns/lib/google_api/dns/v1/model/operation_managed_zone_context.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/model/operation_managed_zone_context.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.22
126
0.739353
38ecedfe9d1b6bfdcefe29a533c3dba5ee871305
450
exs
Elixir
ch10/profile_cache/mix.exs
fboyer/elixir_in_action
d0acdcfc781020f8737f14900d3e2b5263f6f65e
[ "MIT" ]
null
null
null
ch10/profile_cache/mix.exs
fboyer/elixir_in_action
d0acdcfc781020f8737f14900d3e2b5263f6f65e
[ "MIT" ]
null
null
null
ch10/profile_cache/mix.exs
fboyer/elixir_in_action
d0acdcfc781020f8737f14900d3e2b5263f6f65e
[ "MIT" ]
null
null
null
defmodule ProfileCache.Mixfile do use Mix.Project def project do [ app: :profile_cache, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ ext...
16.666667
59
0.591111
38ed019e130d723ddc8f137abe8f36d0046b45e9
2,047
exs
Elixir
apps/prometheus/test/prometheus/accounts_test.exs
thluiz/prometheus
0936e0b1e066ed35917221628d060adf8d7aed29
[ "MIT" ]
null
null
null
apps/prometheus/test/prometheus/accounts_test.exs
thluiz/prometheus
0936e0b1e066ed35917221628d060adf8d7aed29
[ "MIT" ]
null
null
null
apps/prometheus/test/prometheus/accounts_test.exs
thluiz/prometheus
0936e0b1e066ed35917221628d060adf8d7aed29
[ "MIT" ]
1
2020-11-04T06:04:51.000Z
2020-11-04T06:04:51.000Z
defmodule Prometheus.AccountsTest do use Prometheus.DataCase alias Prometheus.Accounts describe "users" do alias Prometheus.Accounts.User @valid_attrs %{name: "some name", userkey: "some userkey"} @update_attrs %{name: "some updated name", userkey: "some updated userkey"} @invalid_attrs %{name:...
30.552239
85
0.655594
38ed02c527559917463340286be0b3774c3793cc
7,210
ex
Elixir
lib/livebook_web/live/session_live/shortcuts_component.ex
howard0su/livebook
6b7825871338af0ec3f4196ec3e17d2670e6a92c
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/shortcuts_component.ex
howard0su/livebook
6b7825871338af0ec3f4196ec3e17d2670e6a92c
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/shortcuts_component.ex
howard0su/livebook
6b7825871338af0ec3f4196ec3e17d2670e6a92c
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SessionLive.ShortcutsComponent do use LivebookWeb, :live_component @shortcuts %{ insert_mode: [ %{seq: ["esc"], desc: "Switch back to navigation mode", basic: true}, %{seq: ["tab"], desc: "Autocomplete expression when applicable", basic: true}, %{ seq: ["ctrl", "...
29.308943
127
0.504161
38ed27ad3ec97e3c50e2a1c0260109f342cb99b8
1,324
ex
Elixir
lib/fixate/case.ex
JonGretar/Fixate
3d66ef79ad916bdd8cf364d9990124b00758560e
[ "MIT" ]
1
2019-05-24T09:55:16.000Z
2019-05-24T09:55:16.000Z
lib/fixate/case.ex
JonGretar/Fixate
3d66ef79ad916bdd8cf364d9990124b00758560e
[ "MIT" ]
null
null
null
lib/fixate/case.ex
JonGretar/Fixate
3d66ef79ad916bdd8cf364d9990124b00758560e
[ "MIT" ]
null
null
null
defmodule Fixate.Case do use ExUnit.CaseTemplate using do quote do alias Geo.Turf # import Geo.Turf.FixturesCase ExUnit.Case.register_attribute __MODULE__, :fixture, accumulate: true end end setup context do fixtures = context.registered.fixture |> List.flatten |> Enum.ma...
26.48
81
0.703172
38ed3652f86de6d8d1f7dbd38a4c054628474c40
482
ex
Elixir
test/support/models/reminder.ex
myskoach/polymorphic_embed
3d005c4c6334315194d329a18c193cce17669522
[ "Apache-2.0" ]
null
null
null
test/support/models/reminder.ex
myskoach/polymorphic_embed
3d005c4c6334315194d329a18c193cce17669522
[ "Apache-2.0" ]
null
null
null
test/support/models/reminder.ex
myskoach/polymorphic_embed
3d005c4c6334315194d329a18c193cce17669522
[ "Apache-2.0" ]
1
2020-11-26T01:50:50.000Z
2020-11-26T01:50:50.000Z
defmodule PolymorphicEmbed.Reminder do use Ecto.Schema use QueryBuilder import Ecto.Changeset schema "reminders" do field(:date, :utc_datetime) field(:text, :string) field(:channel, PolymorphicEmbed.ChannelData) field(:contexts, {:array, PolymorphicEmbed.Reminder.Context}, default: []) tim...
22.952381
78
0.695021
38ed7d0c566b32f7369aa2750ad20b6672a41881
12,436
exs
Elixir
spec/support/migrations.exs
vintikzzz/cassandra_ecto
95375fbc20bd7aedc81d38fe791086cab0d86e84
[ "Apache-2.0" ]
35
2016-12-12T01:21:10.000Z
2022-03-17T13:31:11.000Z
spec/support/migrations.exs
vintikzzz/cassandra_ecto
95375fbc20bd7aedc81d38fe791086cab0d86e84
[ "Apache-2.0" ]
14
2016-12-24T19:38:55.000Z
2018-03-15T17:57:44.000Z
spec/support/migrations.exs
vintikzzz/cassandra_ecto
95375fbc20bd7aedc81d38fe791086cab0d86e84
[ "Apache-2.0" ]
12
2017-02-21T02:35:08.000Z
2018-09-01T09:32:31.000Z
defmodule Cassandra.Ecto.Spec.Support.Migrations do defmodule PostsMigration do use Cassandra.Ecto.Migration def change do create type(:personal_info) do add :id, :uuid add :first_name, :string add :last_name, :string add :birthdate, {:tuple, {:int, :int, :int}}...
25.431493
101
0.614024
38ed87b8026635deb7ec7d71d003891643ab7d04
503
exs
Elixir
test/absinthe/integration/execution/input_types/null/variable_to_type_T_overrides_default_value_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/input_types/null/variable_to_type_T_overrides_default_value_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/input_types/null/variable_to_type_T_overrides_default_value_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
1
2018-11-16T02:34:40.000Z
2018-11-16T02:34:40.000Z
defmodule Elixir.Absinthe.Integration.Execution.InputTypes.Null.VariableToType_TOverridesDefaultValueTest do use ExUnit.Case, async: true @query """ query ($multiplier: Int) { times: objTimes(input: {base: 4, multiplier: $multiplier}) } """ test "scenario #1" do assert {:ok, %{data: %{"times" => 4...
26.473684
108
0.592445
38edb132092c4f5931d66aef1dff743b02c90cc9
2,005
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__entity.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_v1__entity.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_v1__entity.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.568966
189
0.722693
38edb4a750bf0a214a0fe2efb9c7d865d876b325
1,246
exs
Elixir
test/backends/fs_mac_test.exs
ileamo/file_system
3ecf08811821185ba21afde0721831166c4ad3f7
[ "WTFPL" ]
1
2021-12-23T16:38:18.000Z
2021-12-23T16:38:18.000Z
test/backends/fs_mac_test.exs
nonameJ-admin-Captains-Quarter/file_system
ba40dc30f219e28a5f1f99f03d8191f727e17c86
[ "WTFPL" ]
null
null
null
test/backends/fs_mac_test.exs
nonameJ-admin-Captains-Quarter/file_system
ba40dc30f219e28a5f1f99f03d8191f727e17c86
[ "WTFPL" ]
1
2022-01-08T04:21:48.000Z
2022-01-08T04:21:48.000Z
defmodule FileSystem.Backends.FSMacTest do use ExUnit.Case, async: true import FileSystem.Backends.FSMac describe "options parse test" do test "without :dirs" do assert {:error, _} = parse_options([]) assert {:error, _} = parse_options([latency: 1]) end test "supported options" do ...
33.675676
83
0.610754
38eddf3a058faa75910e99564a2d56f6097eec58
228
ex
Elixir
hgw/lib/hub_gateway/web/router.ex
techgaun/dumpster
c2a5394afe759fb99041aea677e9b0bc4bf91aec
[ "Unlicense" ]
1
2019-12-10T22:25:31.000Z
2019-12-10T22:25:31.000Z
hgw/lib/hub_gateway/web/router.ex
techgaun/dumpster
c2a5394afe759fb99041aea677e9b0bc4bf91aec
[ "Unlicense" ]
3
2020-10-25T04:40:05.000Z
2020-10-25T04:48:10.000Z
hgw/lib/hub_gateway/web/router.ex
techgaun/dumpster
c2a5394afe759fb99041aea677e9b0bc4bf91aec
[ "Unlicense" ]
null
null
null
defmodule HubGateway.Web.Router do use HubGateway.Web, :router use Plug.ErrorHandler use Sentry.Plug pipeline :api do plug :accepts, ["json"] end scope "/api", HubGateway.Web do pipe_through :api end end
16.285714
34
0.697368
38ee28874d59b092579d16303d9f048626812014
654
ex
Elixir
lib/is/validators/binary.ex
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
17
2018-06-23T11:16:17.000Z
2021-11-17T18:28:37.000Z
lib/is/validators/binary.ex
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
null
null
null
lib/is/validators/binary.ex
bydooweedoo/is
2d6acf61b397f7297d42a83b09c1181e22cb5230
[ "MIT" ]
2
2018-10-24T20:12:54.000Z
2019-12-25T17:45:41.000Z
defmodule Is.Validators.Binary do @moduledoc """ Validation for binary. ## Examples iex> Is.validate("str", :binary) [] iex> Is.validate(1, :binary) [{:error, [], "must be a binary"}] iex> Is.validate("str", binary: false) [{:error, [], "must not be a binary"}] iex> ...
23.357143
65
0.553517
38ee4d39d00079077885232e21e65b518d1c7a9f
84
exs
Elixir
part1/.workshop/exercises/two_equals/files/compare.exs
Tuxified/weert-workshop
abe48af48631acac89a374277b98b981702deed7
[ "Apache-2.0" ]
null
null
null
part1/.workshop/exercises/two_equals/files/compare.exs
Tuxified/weert-workshop
abe48af48631acac89a374277b98b981702deed7
[ "Apache-2.0" ]
null
null
null
part1/.workshop/exercises/two_equals/files/compare.exs
Tuxified/weert-workshop
abe48af48631acac89a374277b98b981702deed7
[ "Apache-2.0" ]
null
null
null
defmodule Compare do import Kernel, except: [==: 2] def equal?() do end end
10.5
32
0.630952
38ee553edc76c9b5746a547191401080713ff7c6
220
exs
Elixir
test/fixtures/system_platform/nerves.exs
tverlaan/nerves
515b9b7730a1b2934ac051b0e7075cd7987b6c4a
[ "Apache-2.0" ]
null
null
null
test/fixtures/system_platform/nerves.exs
tverlaan/nerves
515b9b7730a1b2934ac051b0e7075cd7987b6c4a
[ "Apache-2.0" ]
null
null
null
test/fixtures/system_platform/nerves.exs
tverlaan/nerves
515b9b7730a1b2934ac051b0e7075cd7987b6c4a
[ "Apache-2.0" ]
null
null
null
use Mix.Config version = Path.join(__DIR__, "VERSION") |> File.read! |> String.strip config :system_platform, :nerves_env, type: :system_platform, version: version, checksum: [ "env.exs", "lib" ]
14.666667
37
0.640909
38ee684da7b6e58c1788c5b4a59eac8267f4a3d8
8,524
exs
Elixir
test/appsignal/error_handler/error_matcher_test.exs
lukerandall/appsignal-elixir
eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8
[ "MIT" ]
null
null
null
test/appsignal/error_handler/error_matcher_test.exs
lukerandall/appsignal-elixir
eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8
[ "MIT" ]
null
null
null
test/appsignal/error_handler/error_matcher_test.exs
lukerandall/appsignal-elixir
eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8
[ "MIT" ]
null
null
null
defmodule Appsignal.ErrorHandler.ErrorMatcherTest do @moduledoc """ Covers most cases of Appsignal.ErrorHandler.match_event/1 """ use ExUnit.Case alias Appsignal.FakeTransaction defmodule CrashingGenServer do use GenServer def start(crash_type) do GenServer.start(__MODULE__, [crash_type]) ...
34.232932
169
0.667292
38ee73c4ee215da92aca22bba727338d5c08fd00
599
ex
Elixir
lib/celery_script/commands/coordinate.ex
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
lib/celery_script/commands/coordinate.ex
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
lib/celery_script/commands/coordinate.ex
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
defmodule Farmbot.CeleryScript.Command.Coordinate do @moduledoc """ Coordinate Object """ alias Farmbot.CeleryScript.Ast alias Farmbot.CeleryScript.Command @behaviour Command @type x :: integer @type y :: integer @type z :: integer @doc ~s""" coodinate args: %{x: integer, y: integer, ...
23.038462
61
0.597663
38eea7aff2a6a65d531d436edd8406170cc6d573
1,336
ex
Elixir
lib/rasa_sdk/external_events/client.ex
r26D/rasa-sdk-elixir
65da9444add5da2e2c0989c36bcbdf902733c709
[ "Apache-2.0" ]
2
2020-09-24T09:58:52.000Z
2021-02-08T12:35:55.000Z
lib/rasa_sdk/external_events/client.ex
r26D/rasa-sdk-elixir
65da9444add5da2e2c0989c36bcbdf902733c709
[ "Apache-2.0" ]
null
null
null
lib/rasa_sdk/external_events/client.ex
r26D/rasa-sdk-elixir
65da9444add5da2e2c0989c36bcbdf902733c709
[ "Apache-2.0" ]
null
null
null
defmodule RasaSDK.ExternalEvents.Client do alias RasaSDK.Model.ExternalEventResponse use Tesla plug Tesla.Middleware.BaseUrl, get_host() plug Tesla.Middleware.Headers, [{"content-type", "application/json"}] plug Tesla.Middleware.JSON def message(conversation_id, content) do post("/webhooks/callback/web...
31.809524
99
0.648952
38eebf6a878744e83dff458e30848eaac2fafa6f
1,311
ex
Elixir
frameworks/Elixir/cowboy/lib/hello.ex
surfmuggle/FrameworkBenchmarks
5bcd4a4358598758b9476d1c81965eb8fe3abca0
[ "BSD-3-Clause" ]
1
2019-04-14T20:32:09.000Z
2019-04-14T20:32:09.000Z
frameworks/Elixir/cowboy/lib/hello.ex
surfmuggle/FrameworkBenchmarks
5bcd4a4358598758b9476d1c81965eb8fe3abca0
[ "BSD-3-Clause" ]
1
2018-04-13T15:45:34.000Z
2018-04-13T20:04:08.000Z
frameworks/Elixir/cowboy/lib/hello.ex
surfmuggle/FrameworkBenchmarks
5bcd4a4358598758b9476d1c81965eb8fe3abca0
[ "BSD-3-Clause" ]
1
2018-06-11T23:21:50.000Z
2018-06-11T23:21:50.000Z
defmodule Hello do def start(_type, _args) do dispatch = :cowboy_router.compile([ {:_, [{"/json", JsonHandler, []}, {"/plaintext", PlaintextHandler, []}]} ]) {:ok, _} = :cowboy.start_http(:http, 5000, [port: 8080], ...
26.755102
88
0.466819
38eec70d283e0a4f70bb142759413c5e48a3ade2
1,555
ex
Elixir
lib/livebook_web/live/user_helpers.ex
brettcannon/livebook
d6c9ab1783efa083aea2ead81e078bb920d57ad6
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/user_helpers.ex
brettcannon/livebook
d6c9ab1783efa083aea2ead81e078bb920d57ad6
[ "Apache-2.0" ]
1
2021-09-18T01:09:08.000Z
2021-09-18T01:09:08.000Z
lib/livebook_web/live/user_helpers.ex
brettcannon/livebook
d6c9ab1783efa083aea2ead81e078bb920d57ad6
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.UserHelpers do import Phoenix.LiveView import Phoenix.LiveView.Helpers alias Livebook.Users.User @doc """ Renders user avatar, ## Options * `:class` - class added to the avatar box * `:text_class` - class added to the avatar text """ def render_user_avatar(user, opts \...
25.080645
121
0.621222
38eed083970229b3e2b4aada286f811361eb1221
2,370
exs
Elixir
test/sanbase_web/graphql/metric/api_metric_required_selectors_test.exs
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
test/sanbase_web/graphql/metric/api_metric_required_selectors_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
test/sanbase_web/graphql/metric/api_metric_required_selectors_test.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.ApiMetricRequiredSelectorsTest do use SanbaseWeb.ConnCase, async: false import Sanbase.Factory import SanbaseWeb.Graphql.TestHelpers @moduletag capture_log: true setup do %{user: user} = insert(:subscription_pro_sanbase, user: insert(:user)) project = insert(:random_pro...
25.212766
119
0.580591
38eeee240b2c28fbd0c720873158df71357bdefe
20,141
ex
Elixir
lib/horde/dynamic_supervisor_impl.ex
criticalbh/horde
23e57b444e5c8503198a5cf5bb2df47d05352598
[ "MIT" ]
null
null
null
lib/horde/dynamic_supervisor_impl.ex
criticalbh/horde
23e57b444e5c8503198a5cf5bb2df47d05352598
[ "MIT" ]
null
null
null
lib/horde/dynamic_supervisor_impl.ex
criticalbh/horde
23e57b444e5c8503198a5cf5bb2df47d05352598
[ "MIT" ]
null
null
null
defmodule Horde.DynamicSupervisor.Member do @moduledoc false @type t :: %Horde.DynamicSupervisor.Member{} @type status :: :uninitialized | :alive | :shutting_down | :dead defstruct [:status, :name] end defmodule Horde.DynamicSupervisorImpl do @moduledoc false require Logger use GenServer defstruct n...
29.105491
98
0.647684
38ef39726e83588d8140896a1852af1006a2dee0
437
exs
Elixir
test/models/time_test.exs
openrowing/raceman2
eee2d51c50bddf63b9c5b9b351424d4c056fa27d
[ "Apache-2.0" ]
null
null
null
test/models/time_test.exs
openrowing/raceman2
eee2d51c50bddf63b9c5b9b351424d4c056fa27d
[ "Apache-2.0" ]
null
null
null
test/models/time_test.exs
openrowing/raceman2
eee2d51c50bddf63b9c5b9b351424d4c056fa27d
[ "Apache-2.0" ]
null
null
null
defmodule Web.TimeTest do use Web.ModelCase alias Web.Time @valid_attrs %{measuring_point_id: 42, race_boat_id: 42, time: "14:00:00"} @invalid_attrs %{} test "changeset with valid attributes" do changeset = Time.changeset(%Time{}, @valid_attrs) assert changeset.valid? end test "changeset with ...
23
76
0.713959
38ef9b1a011b4f561de548c4c08100d83b7cd9c8
69
ex
Elixir
code examples/example-10-31.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
8
2016-08-14T12:35:16.000Z
2021-01-26T04:05:31.000Z
code examples/example-10-31.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
null
null
null
code examples/example-10-31.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
5
2016-08-18T22:12:19.000Z
2020-02-17T18:52:41.000Z
GenStateMachine.start_link(DARWf, {DARState.idle, nil}, name: DARWf)
34.5
68
0.782609
38eff21cce9bdec9bdf5a85f70c5fcc9222dc8be
1,692
ex
Elixir
lib/digital_ocean/image_action.ex
kianmeng/digital-ocean-elixir
eff6fd1c621ab51908edad731794b0ef2db1cac1
[ "MIT" ]
5
2020-09-20T19:35:32.000Z
2021-12-15T08:57:22.000Z
lib/digital_ocean/image_action.ex
kianmeng/digital-ocean-elixir
eff6fd1c621ab51908edad731794b0ef2db1cac1
[ "MIT" ]
8
2020-09-25T14:30:03.000Z
2022-02-21T18:04:48.000Z
lib/digital_ocean/image_action.ex
kianmeng/digital-ocean-elixir
eff6fd1c621ab51908edad731794b0ef2db1cac1
[ "MIT" ]
4
2020-09-25T14:26:11.000Z
2021-08-09T06:43:18.000Z
defmodule DigitalOcean.ImageAction do alias DigitalOcean.{ Operation } @doc """ Create an action for an image. ## Example transferring an image to another region iex> DigitalOcean.ImageAction.create( ...> 7938269, ...> type: "transfer", ...> region: "nyc2" ...> ) |> Digita...
26.857143
84
0.603428
38f0199d4004c493c2cd608157fd061a612a3fe1
980
exs
Elixir
lib/euler_014.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
8
2015-11-04T05:03:05.000Z
2022-01-25T19:34:46.000Z
lib/euler_014.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
null
null
null
lib/euler_014.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
null
null
null
defmodule EulerFourteen do @moduledoc """ The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the following sequence: 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1 It can be seen that...
30.625
198
0.656122
38f0271f5f64a6fb177728745d61e8a2f505af75
2,079
ex
Elixir
clients/game_services/lib/google_api/game_services/v1beta/model/set_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/game_services/lib/google_api/game_services/v1beta/model/set_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/game_services/lib/google_api/game_services/v1beta/model/set_iam_policy_request.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...
41.58
316
0.74507
38f02b6c40caf753d24c5e4135a00ded04c660e4
195
exs
Elixir
anagrams-phx/test/controllers/page_controller_test.exs
mcdickenson/anagrams
3132a98d5ac8b6175e134109386ce1d6a7270d94
[ "MIT" ]
null
null
null
anagrams-phx/test/controllers/page_controller_test.exs
mcdickenson/anagrams
3132a98d5ac8b6175e134109386ce1d6a7270d94
[ "MIT" ]
null
null
null
anagrams-phx/test/controllers/page_controller_test.exs
mcdickenson/anagrams
3132a98d5ac8b6175e134109386ce1d6a7270d94
[ "MIT" ]
null
null
null
defmodule Anagrams.PageControllerTest do use Anagrams.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.666667
60
0.676923
38f0433682c0158546e1db6f8eff6db464e7c538
1,692
ex
Elixir
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/project_repo_id.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/project_repo_id.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/project_repo_id.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...
33.176471
117
0.735225
38f04be8b0d4678beb969e5ef169700e41240696
2,155
exs
Elixir
config/prod.exs
finalclass/forus
f745d3ef63684b8fa61a904d4032b5ae26931943
[ "MIT" ]
null
null
null
config/prod.exs
finalclass/forus
f745d3ef63684b8fa61a904d4032b5ae26931943
[ "MIT" ]
1
2018-06-19T10:38:48.000Z
2018-06-19T10:38:48.000Z
config/prod.exs
finalclass/forus
f745d3ef63684b8fa61a904d4032b5ae26931943
[ "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 # ForusWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done there. # # Don'...
33.153846
67
0.719258
38f079d301bc45ccfcd16e308b5581b091e28986
1,977
ex
Elixir
apps/ewallet_config/lib/ewallet_config/utils/helpers/assoc.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet_config/lib/ewallet_config/utils/helpers/assoc.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/ewallet_config/lib/ewallet_config/utils/helpers/assoc.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule EWalletConfig.Helpers.Assoc do @moduledoc """ The module that provides helpers for working with associations. It contains functions that are suitable when an [`Access`](https://hexdocs.pm/elixir/Access.html)-like behavior is needed but the behavior is not implemented, e.g. due to potential naming c...
25.025316
90
0.645422
38f0869129e15b1c093d5591d48cba43d244e62c
287
exs
Elixir
example/config/config.exs
nlap/edgelixir
e2fe38859b856e9906fae865a22700df2e439601
[ "Apache-2.0" ]
23
2016-09-01T19:52:38.000Z
2017-10-22T11:40:33.000Z
example/config/config.exs
nlap/edgelixir
e2fe38859b856e9906fae865a22700df2e439601
[ "Apache-2.0" ]
1
2017-01-03T18:25:35.000Z
2017-01-03T18:25:35.000Z
example/config/config.exs
nlap/edgelixir
e2fe38859b856e9906fae865a22700df2e439601
[ "Apache-2.0" ]
3
2016-10-01T10:31:57.000Z
2019-02-13T04:49:01.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :edgelixir, partition_scheme: Edgelixir.PartitionSchemes.EdgeCut, graph_format: Edgelixir.GraphFormats.EdgelistSimple, max_supersteps: 3
35.875
61
0.818815
38f0a2805f19e6911f5ec227fae7c4f60771652e
2,920
ex
Elixir
clients/firebase/lib/google_api/firebase/v1beta1/model/android_app.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/firebase/lib/google_api/firebase/v1beta1/model/android_app.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/firebase/lib/google_api/firebase/v1beta1/model/android_app.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...
49.491525
693
0.720548
38f0c029643af899e13dddaa2fe815e31d5df442
585
ex
Elixir
lib/webdavex/helpers/hackney.ex
mugimaru73/webdavex
bdf9fe8bce47de50e5b93d80a3484966b5cced4b
[ "MIT" ]
1
2018-09-09T11:32:48.000Z
2018-09-09T11:32:48.000Z
lib/webdavex/helpers/hackney.ex
mugimaru73/webdavex
bdf9fe8bce47de50e5b93d80a3484966b5cced4b
[ "MIT" ]
null
null
null
lib/webdavex/helpers/hackney.ex
mugimaru73/webdavex
bdf9fe8bce47de50e5b93d80a3484966b5cced4b
[ "MIT" ]
1
2018-11-02T05:53:35.000Z
2018-11-02T05:53:35.000Z
defmodule Webdavex.Helpers.Hackney do @moduledoc "`:hackney` helpers." @spec stream_body(pid) :: Enumerable.t() @doc """ Creates a `Stream` reader for :hackney response body. Refer to `:hackney.stream_body/1` for details. """ def stream_body(ref) do Stream.resource(fn -> ref end, &read_chunk/1, &fin...
20.172414
65
0.606838
38f0f3df00ddb1d3c43ab49ae8e4419010293799
1,852
exs
Elixir
test/revert_test.exs
NeoPag/ex_audit
bd2bb4934330f62faa2ce3fd8b48f37f41e16890
[ "MIT" ]
null
null
null
test/revert_test.exs
NeoPag/ex_audit
bd2bb4934330f62faa2ce3fd8b48f37f41e16890
[ "MIT" ]
null
null
null
test/revert_test.exs
NeoPag/ex_audit
bd2bb4934330f62faa2ce3fd8b48f37f41e16890
[ "MIT" ]
null
null
null
defmodule RevertTest do use ExUnit.Case import Ecto.Query alias ExAudit.Test.{Repo, User, Version, Util} test "should revert changes" do user = Util.create_user() ExAudit.track(actor_id: user.id) user2 = Util.create_user("Horst Dieter Schaf", "horst.dieter@schaf.de") assert length(Repo.his...
22.585366
75
0.593413
38f0fe7e0e4b56c6ce5a0e4b9ede6b525ef04c02
1,593
ex
Elixir
typeclassopedia/lib/monad.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
typeclassopedia/lib/monad.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
typeclassopedia/lib/monad.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
defmodule Monad do @typedoc """ Functor dictionary intuitive type: fmap : f (a -> b) -> f a -> f b * `fmap`: (f a, a -> b) -> f b # params are swapped to facilitate piping, mandatory * `lift_left`: a -> f b -> f a # default implementation provided, optional """ @type t :: %__MODULE__{ applicative: A...
26.55
85
0.590082
38f0fec4eb979408511e35e8c7c5eec6ec9655c0
356
exs
Elixir
test/taut_web/live/page_live_test.exs
shimmerlabs/taut
1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19
[ "MIT" ]
null
null
null
test/taut_web/live/page_live_test.exs
shimmerlabs/taut
1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19
[ "MIT" ]
null
null
null
test/taut_web/live/page_live_test.exs
shimmerlabs/taut
1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19
[ "MIT" ]
null
null
null
defmodule TautWeb.PageLiveTest do use TautWeb.ConnCase import Phoenix.LiveViewTest @tag skip: "Needs updating" test "disconnected and connected render", %{conn: conn} do {:ok, page_live, disconnected_html} = live(conn, "/") assert disconnected_html =~ "Welcome to Phoenix!" assert render(page_live)...
27.384615
60
0.716292
38f10895e4f39be9455a68995ccee26f4ecbc373
6,563
exs
Elixir
test/bare_process_client_test.exs
jnederhoff/gen_async_call
f4bdeab81233691b49d99b80252d8ac22f5e2d45
[ "Apache-2.0" ]
null
null
null
test/bare_process_client_test.exs
jnederhoff/gen_async_call
f4bdeab81233691b49d99b80252d8ac22f5e2d45
[ "Apache-2.0" ]
null
null
null
test/bare_process_client_test.exs
jnederhoff/gen_async_call
f4bdeab81233691b49d99b80252d8ac22f5e2d45
[ "Apache-2.0" ]
null
null
null
defmodule BareProcessClientTest do use ExUnit.Case import GenAsyncCall, only: [call_refs: 1, mfa: 1] setup _context do {:ok, server_pid} = start_supervised(Supervisor.child_spec(TestServer, restart: :temporary)) {:ok, server: server_pid} end describe "callback tests:" do test "happy path call a...
32.490099
135
0.667378
38f1116ca28ee5f911cebc765cf4ec2d9d377575
7,705
ex
Elixir
lib/wobserver/util/metrics/formatter.ex
coby-spotim/wobserver
b0b9d77fb4ff40bb417f6b370ee343b8d42de750
[ "MIT" ]
null
null
null
lib/wobserver/util/metrics/formatter.ex
coby-spotim/wobserver
b0b9d77fb4ff40bb417f6b370ee343b8d42de750
[ "MIT" ]
null
null
null
lib/wobserver/util/metrics/formatter.ex
coby-spotim/wobserver
b0b9d77fb4ff40bb417f6b370ee343b8d42de750
[ "MIT" ]
1
2018-09-12T16:13:57.000Z
2018-09-12T16:13:57.000Z
defmodule Wobserver.Util.Metrics.Formatter do @moduledoc ~S""" Formatter. """ alias Wobserver.Util.Node.Discovery @doc ~S""" Format a set of `data` with a `label`. The `data` must be given as a `list` of tuples with the following format: `{value, labels}`, where `labels` is a keyword list with labels a...
28.75
157
0.623491
38f11e084bf8c935a2b97a630b9f4e0c0960468b
1,310
ex
Elixir
lib/clamex/scanner/clamscan.ex
szajbus/clamex
aeff9f3723922cdc13e7318956d062d33aeab6f4
[ "MIT" ]
3
2019-01-29T10:08:38.000Z
2022-01-21T11:17:27.000Z
lib/clamex/scanner/clamscan.ex
szajbus/clamex
aeff9f3723922cdc13e7318956d062d33aeab6f4
[ "MIT" ]
1
2020-09-07T11:01:12.000Z
2020-09-07T13:16:51.000Z
lib/clamex/scanner/clamscan.ex
szajbus/clamex
aeff9f3723922cdc13e7318956d062d33aeab6f4
[ "MIT" ]
null
null
null
defmodule Clamex.Scanner.Clamscan do @moduledoc """ Scanner implementation for `clamscan` command-line utility. """ @behaviour Clamex.Scanner @doc """ Perform file scan using `clamscan` command-line utility. ## Examples iex> Clamex.Scanner.Clamscan.scan("test/files/virus.txt") {:error, :vi...
24.716981
78
0.60229
38f148fd3f108c9ce8ce8fdd9527039ada306729
715
exs
Elixir
src/external/proper/mix.exs
khzmk/repo1
8592061652dbf88fddfca9b65a6a12a01d9e3b47
[ "MIT" ]
null
null
null
src/external/proper/mix.exs
khzmk/repo1
8592061652dbf88fddfca9b65a6a12a01d9e3b47
[ "MIT" ]
null
null
null
src/external/proper/mix.exs
khzmk/repo1
8592061652dbf88fddfca9b65a6a12a01d9e3b47
[ "MIT" ]
null
null
null
defmodule Proper.Mixfile do use Mix.Project def project do [app: :proper, version: "1.3.0", description: description(), package: package(), deps: deps()] end defp deps do [ {:ex_doc, "~> 0.14", only: :dev}, ] end defp description do """ QuickCheck-inspired pr...
23.064516
139
0.633566
38f15c1e9ca3b11ffec01458d2112d5d0629ed92
1,621
exs
Elixir
test/support/http_client.exs
lancehalvorsen/phoenix
f366b7a399db04badb816f74851040fa141c51ee
[ "MIT" ]
null
null
null
test/support/http_client.exs
lancehalvorsen/phoenix
f366b7a399db04badb816f74851040fa141c51ee
[ "MIT" ]
null
null
null
test/support/http_client.exs
lancehalvorsen/phoenix
f366b7a399db04badb816f74851040fa141c51ee
[ "MIT" ]
null
null
null
defmodule Phoenix.Integration.HTTPClient do @doc """ Performs HTTP Request and returns Response * method - The http methid, for example :get, :post, :put, etc * url - The string url, for example "http://example.com" * headers - The map of headers * body - The optional string body. If the body is a ...
34.489362
92
0.62739
38f185a4388fb9c97f555eb7c645167fe9be712b
10,009
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/service.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/service.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/service.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "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...
75.255639
840
0.737836
38f1998c9a7d85ac8f0c81a11feff3a59d6f20e9
1,675
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v2/model/apk.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v2/model/apk.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v2/model/apk.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...
33.5
144
0.730149
38f1a8c4c4ae085a845bd591b7ee7ecfdb2df1c4
547
ex
Elixir
lib/ex_firebase.ex
alfietham/ex_firebase
f8f6666db003940138b8fe79e1c5be4a6e580de1
[ "MIT" ]
null
null
null
lib/ex_firebase.ex
alfietham/ex_firebase
f8f6666db003940138b8fe79e1c5be4a6e580de1
[ "MIT" ]
null
null
null
lib/ex_firebase.ex
alfietham/ex_firebase
f8f6666db003940138b8fe79e1c5be4a6e580de1
[ "MIT" ]
null
null
null
defmodule ExFirebase do @moduledoc """ Firebase Admin SDK """ use Application @doc false def start(_type, _args) do children = [ # ExFirebase.Auth.AccessTokenManager, ExFirebase.Auth.PublicKeyManager, # ExFirebase.Messaging.QueueProducer, # ExFirebase.Messaging.QueueProducerCon...
23.782609
64
0.709324
38f1d439f8d71eadcad447338ea40a6edd191bbb
1,445
exs
Elixir
test/controllers/admin/sessions_controller_test.exs
jbr/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
335
2015-06-19T18:27:51.000Z
2020-11-25T19:00:27.000Z
test/controllers/admin/sessions_controller_test.exs
thisdata/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
33
2015-06-24T17:00:01.000Z
2017-11-23T09:53:29.000Z
test/controllers/admin/sessions_controller_test.exs
thisdata/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
95
2015-06-30T22:18:00.000Z
2022-01-14T13:47:10.000Z
defmodule PhoenixGuardian.SessionControllerTest do use PhoenixGuardian.ConnCase import PhoenixGuardian.Factory alias PhoenixGuardian.User setup do auth = create(:user)|> User.make_admin! |> with_authorization {:ok, %{user: auth.user}} end test "/GET login when not logged in as admin" do conn...
31.413043
99
0.69481
38f20137111fdb805aa52d799e1a52d436266827
148
ex
Elixir
lib/data_processor_web/controllers/query_controller.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
lib/data_processor_web/controllers/query_controller.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
3
2018-08-17T13:42:45.000Z
2018-08-17T17:05:11.000Z
lib/data_processor_web/controllers/query_controller.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
defmodule DataProcessorWeb.QueryController do use DataProcessorWeb, :controller def index(conn, _) do render(conn, "index.html") end end
18.5
45
0.75
38f2562c4e0a3347625385905563f6701d5218cc
2,136
exs
Elixir
config/dev.exs
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
null
null
null
config/dev.exs
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
1
2021-05-10T04:23:56.000Z
2021-05-10T04:23:56.000Z
config/dev.exs
coltonw/majudge
4f81a66abe6a2e82f42131982e7a9b26951b9124
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :majudge, Majudge.Repo, username: "postgres", password: "postgres", database: "majudge_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code reloading...
27.74026
68
0.690543
38f257578d84c9e700c7be4cb05ed711643b7732
1,307
exs
Elixir
mix.exs
midnightrun/etag_plug
7aa2b934babbb22963fa4f3b3d05f354faffad6d
[ "MIT" ]
null
null
null
mix.exs
midnightrun/etag_plug
7aa2b934babbb22963fa4f3b3d05f354faffad6d
[ "MIT" ]
null
null
null
mix.exs
midnightrun/etag_plug
7aa2b934babbb22963fa4f3b3d05f354faffad6d
[ "MIT" ]
null
null
null
defmodule ETagPlug.MixProject do use Mix.Project def project do [ app: :etag_plug, elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "cover...
20.421875
59
0.55394
38f269f8194550afd13644efb237d9df1b787fab
619
ex
Elixir
backend/lib/kjer_si_web/views/room_view.ex
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
2
2019-11-02T21:28:34.000Z
2019-11-28T18:01:08.000Z
backend/lib/kjer_si_web/views/room_view.ex
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
17
2019-11-29T16:23:38.000Z
2022-02-14T05:11:41.000Z
backend/lib/kjer_si_web/views/room_view.ex
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
null
null
null
defmodule KjerSiWeb.RoomView do use KjerSiWeb, :view def render("index.json", %{rooms: rooms}) do %{data: render_many(rooms, KjerSiWeb.RoomView, "room.json")} end def render("show.json", %{room: room}) do %{data: render_one(room, KjerSiWeb.RoomView, "room.json")} end def render("room.json", %{roo...
24.76
78
0.636511
38f28afa723815597b342113530356ce0301b92e
417
exs
Elixir
test/wax_demo_web/views/error_view_test.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
5
2019-02-14T18:39:20.000Z
2022-01-31T05:49:23.000Z
test/wax_demo_web/views/error_view_test.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
18
2019-03-17T14:21:37.000Z
2022-03-25T20:55:56.000Z
test/wax_demo_web/views/error_view_test.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
4
2019-03-17T13:13:24.000Z
2022-02-01T19:50:22.000Z
defmodule WaxDemoWeb.ErrorViewTest do use WaxDemoWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(WaxDemoWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do as...
27.8
92
0.733813
38f2c4e724fab556e91c2021c04d5ed3aa3e560e
827
exs
Elixir
mix.exs
simoexpo/SafeExStruct
c94c3f3c03bb3191ba67db8200e864ce33bd004a
[ "Apache-2.0" ]
2
2017-09-21T17:05:17.000Z
2017-09-22T08:35:01.000Z
mix.exs
simoexpo/SafeExStruct
c94c3f3c03bb3191ba67db8200e864ce33bd004a
[ "Apache-2.0" ]
null
null
null
mix.exs
simoexpo/SafeExStruct
c94c3f3c03bb3191ba67db8200e864ce33bd004a
[ "Apache-2.0" ]
null
null
null
defmodule SafeExStruct.Mixfile do use Mix.Project def project do [ app: :safeexstruct, version: "0.3.0", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "cov...
22.351351
88
0.565901
38f319d2820ed67f15d531debf796fc3f296a6d6
69
exs
Elixir
test/test_helper.exs
jeffutter/ex_rogue
57207966764516db95a8af7625ba6e3cdc12651d
[ "MIT" ]
null
null
null
test/test_helper.exs
jeffutter/ex_rogue
57207966764516db95a8af7625ba6e3cdc12651d
[ "MIT" ]
2
2021-03-10T11:32:10.000Z
2021-05-11T07:17:36.000Z
test/test_helper.exs
jeffutter/ex_rogue
57207966764516db95a8af7625ba6e3cdc12651d
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(ExRogue.Repo, :manual)
23
53
0.782609