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
7a4a12fce75174a640e72cd47d651173eeae6e0a
695
ex
Elixir
template/$PROJECT_NAME$/lib/$PROJECT_NAME$/responders/commit_msg.ex
lrosa007/gen_template_slack_bot
d2d22fd7e74733272b781bd05efffd16be78e041
[ "Apache-2.0" ]
1
2017-08-22T15:34:08.000Z
2017-08-22T15:34:08.000Z
template/$PROJECT_NAME$/lib/$PROJECT_NAME$/responders/commit_msg.ex
lrosa007/gen_template_slack_bot
d2d22fd7e74733272b781bd05efffd16be78e041
[ "Apache-2.0" ]
null
null
null
template/$PROJECT_NAME$/lib/$PROJECT_NAME$/responders/commit_msg.ex
lrosa007/gen_template_slack_bot
d2d22fd7e74733272b781bd05efffd16be78e041
[ "Apache-2.0" ]
null
null
null
defmodule <%= @project_name_camel_case %>.Responders.CommitMsg do @moduledoc """ Credit: @techguan https://github.com/techgaun/ex_mustang Get random commit messages from http://whatthecommit.com/index.txt """ use Hedwig.Responder @url "http://whatthecommit.com/index.txt" @usage """ commitmsg - get a ...
25.740741
84
0.664748
7a4a241ec59557ab38844f495333e913ecc9c319
3,247
ex
Elixir
clients/admin/lib/google_api/admin/datatransfer_v1/model/data_transfer.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/admin/lib/google_api/admin/datatransfer_v1/model/data_transfer.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/admin/lib/google_api/admin/datatransfer_v1/model/data_transfer.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...
44.479452
424
0.706806
7a4a28d1ba94571d919d3e6753d706883a68090f
1,433
exs
Elixir
mix.exs
jlgeering/ex_aws_s3
75f509fbd8e53f57a3f1e9d285505045b304a930
[ "Unlicense", "MIT" ]
null
null
null
mix.exs
jlgeering/ex_aws_s3
75f509fbd8e53f57a3f1e9d285505045b304a930
[ "Unlicense", "MIT" ]
null
null
null
mix.exs
jlgeering/ex_aws_s3
75f509fbd8e53f57a3f1e9d285505045b304a930
[ "Unlicense", "MIT" ]
null
null
null
defmodule ExAws.S3.Mixfile do use Mix.Project @version "2.0.0" @service "s3" @url "https://github.com/ex-aws/ex_aws_#{@service}" @name __MODULE__ |> Module.split |> Enum.take(2) |> Enum.join(".") def project do [ app: :ex_aws_s3, version: @version, elixir: "~> 1.5", elixirc_pat...
23.491803
68
0.547802
7a4a2bf6aae5b1ebc1405b33000fc407db694dcf
940
ex
Elixir
gaius/lib/gaius/application.ex
zndx/gaius
01701d355a3fcbeab49c1f7c6283157357d57336
[ "MIT" ]
1
2020-10-06T02:01:03.000Z
2020-10-06T02:01:03.000Z
gaius/lib/gaius/application.ex
zndx/gaius
01701d355a3fcbeab49c1f7c6283157357d57336
[ "MIT" ]
null
null
null
gaius/lib/gaius/application.ex
zndx/gaius
01701d355a3fcbeab49c1f7c6283157357d57336
[ "MIT" ]
null
null
null
defmodule Gaius.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Telemetry supervisor GaiusWeb.Telemetry, # Start the PubSub system {Phoe...
28.484848
63
0.702128
7a4a3270206b5bc7d03e0e2b4f5cd2d4afe156b7
1,789
ex
Elixir
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__test_iam_permissions_request.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...
32.527273
135
0.73896
7a4a61109c85d9c364e59023009b98ab71f0baa4
7,038
ex
Elixir
lib/patch/mock.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
57
2020-04-22T00:19:04.000Z
2022-03-20T11:57:00.000Z
lib/patch/mock.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
9
2021-10-29T20:54:56.000Z
2022-02-19T03:41:01.000Z
lib/patch/mock.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
2
2021-07-02T14:41:48.000Z
2022-01-12T11:47:26.000Z
defmodule Patch.Mock do alias Patch.Mock alias Patch.Mock.Code alias Patch.Mock.Code.Freezer @typedoc """ What exposures should be made in a module. - `:public` will only expose the public functions - `:all` will expose both public and private functions - A list of exports can be provided, they will b...
28.26506
98
0.650185
7a4a6642bba178b61c250fca88c2be08d05c6a76
622
exs
Elixir
apps/banking_api_challenge/priv/repo/migrations/20210416144125_create_operations_table.exs
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
null
null
null
apps/banking_api_challenge/priv/repo/migrations/20210416144125_create_operations_table.exs
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
null
null
null
apps/banking_api_challenge/priv/repo/migrations/20210416144125_create_operations_table.exs
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
1
2021-04-20T19:05:48.000Z
2021-04-20T19:05:48.000Z
defmodule BankingApiChallenge.Repo.Migrations.CreateOperationsTable do use Ecto.Migration def change do create table(:operations, primary_key: false) do add :id, :uuid, primary_key: true add :operation_type, :string, null: false add :amount, :bigint, null: false, default: 0 add :source...
31.1
77
0.709003
7a4a6fc7de7b2b09198ba525a12099287f745019
2,343
ex
Elixir
apps/toniefy/lib/toniex_web.ex
benvp/toniefy.me
9a432380e43f1c9a15ccd1910357d491d64a1dc0
[ "MIT" ]
17
2021-04-12T10:01:14.000Z
2022-02-25T17:30:27.000Z
apps/toniefy/lib/toniex_web.ex
benvp/toniefy.me
9a432380e43f1c9a15ccd1910357d491d64a1dc0
[ "MIT" ]
1
2022-03-09T09:35:00.000Z
2022-03-09T11:46:14.000Z
apps/toniefy/lib/toniex_web.ex
benvp/toniefy
9a432380e43f1c9a15ccd1910357d491d64a1dc0
[ "MIT" ]
null
null
null
defmodule ToniexWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use ToniexWeb, :controller use ToniexWeb, :view The definitions below will be executed for every view, controller, etc...
22.528846
78
0.681178
7a4aa6b04f03ef004b7a3bd1c4de70f57f854ddd
2,309
ex
Elixir
lib/sobelow/finding.ex
kianmeng/sobelow
40c5f12ed6801c1f9cca13201f7f6ff31c8a7660
[ "Apache-2.0" ]
null
null
null
lib/sobelow/finding.ex
kianmeng/sobelow
40c5f12ed6801c1f9cca13201f7f6ff31c8a7660
[ "Apache-2.0" ]
null
null
null
lib/sobelow/finding.ex
kianmeng/sobelow
40c5f12ed6801c1f9cca13201f7f6ff31c8a7660
[ "Apache-2.0" ]
null
null
null
defmodule Sobelow.Finding do defstruct [ :type, :confidence, :filename, :vuln_line_no, :vuln_variable, :vuln_source, :fun_name, :fun_line_no, :fun_source, :fingerprint ] alias Sobelow.Utils def init(type, filename, confidence \\ nil) do %Sobelow.Finding{ type:...
23.561224
100
0.62971
7a4ab5bddaafa796eec3bd9e4fa0fbd36ed535a2
1,681
exs
Elixir
test/rockelivery/item_test.exs
LuizFerK/Rockelivery
4742d73027bcaa97c2fc7969c8d032edf73a28fd
[ "MIT" ]
null
null
null
test/rockelivery/item_test.exs
LuizFerK/Rockelivery
4742d73027bcaa97c2fc7969c8d032edf73a28fd
[ "MIT" ]
null
null
null
test/rockelivery/item_test.exs
LuizFerK/Rockelivery
4742d73027bcaa97c2fc7969c8d032edf73a28fd
[ "MIT" ]
null
null
null
defmodule Rockelivery.ItemTest do use Rockelivery.DataCase, async: true import Rockelivery.Factory alias Ecto.Changeset alias Rockelivery.Item describe "changeset/2" do test "when all params are valid, return a valid changeset" do params = build(:item_params) response = Item.changeset(para...
28.016667
93
0.649018
7a4ac1148346f647c5a6064ece54f52564aab6e6
1,874
ex
Elixir
deps/credo/lib/credo/check/consistency/exception_names/collector.ex
BandanaPandey/nary_tree
fb1eeb69e38e43c9f9ffb54297cef52dff5c928d
[ "MIT" ]
13
2018-09-19T21:03:29.000Z
2022-01-27T04:06:32.000Z
deps/credo/lib/credo/check/consistency/exception_names/collector.ex
BandanaPandey/nary_tree
fb1eeb69e38e43c9f9ffb54297cef52dff5c928d
[ "MIT" ]
1
2020-05-26T04:16:57.000Z
2020-05-26T04:16:57.000Z
deps/credo/lib/credo/check/consistency/exception_names/collector.ex
BandanaPandey/nary_tree
fb1eeb69e38e43c9f9ffb54297cef52dff5c928d
[ "MIT" ]
3
2020-05-21T04:32:08.000Z
2021-07-28T05:14:01.000Z
defmodule Credo.Check.Consistency.ExceptionNames.Collector do use Credo.Check.Consistency.Collector alias Credo.Code.Module alias Credo.Code.Name alias Credo.Code def collect_matches(source_file, _params) do exception_recorder = &record_exception/2 Code.prewalk(source_file, &traverse(exception_reco...
27.558824
104
0.649947
7a4b3329209ad6b1a3681ec50cf18998d6c26e16
672
ex
Elixir
lib/ex_oapi/parser/context/example.ex
mnussbaumer/ex_oapi
f5eb610283a7f92a69e6266effc0dc4e2c497b61
[ "MIT" ]
null
null
null
lib/ex_oapi/parser/context/example.ex
mnussbaumer/ex_oapi
f5eb610283a7f92a69e6266effc0dc4e2c497b61
[ "MIT" ]
null
null
null
lib/ex_oapi/parser/context/example.ex
mnussbaumer/ex_oapi
f5eb610283a7f92a69e6266effc0dc4e2c497b61
[ "MIT" ]
null
null
null
defmodule ExOAPI.Parser.V3.Context.Example do use TypedEctoSchema import Ecto.Changeset import ExOAPI.Helpers.Casting, only: [translate: 2] @list_of_fields [ :summary, :description, :value, :external_value ] @translations [ {"externalValue", "external_value"} ] @primary_key false...
19.764706
65
0.672619
7a4b3e9fece796dc716aac48c94c5b3125341479
1,024
ex
Elixir
lib/readtome/accounts/user.ex
ashkan18/readtome
09cdfa3813f49db816e8b477416672a87bd332ac
[ "MIT" ]
1
2021-09-05T20:54:57.000Z
2021-09-05T20:54:57.000Z
lib/readtome/accounts/user.ex
ashkan18/readtome
09cdfa3813f49db816e8b477416672a87bd332ac
[ "MIT" ]
17
2019-07-06T17:31:56.000Z
2021-06-22T15:31:06.000Z
lib/readtome/accounts/user.ex
ashkan18/readtome
09cdfa3813f49db816e8b477416672a87bd332ac
[ "MIT" ]
1
2021-03-15T20:50:27.000Z
2021-03-15T20:50:27.000Z
defmodule Readtome.Accounts.User do use Ecto.Schema import Ecto.Changeset alias Comeonin.Bcrypt schema "users" do field(:email, :string) field(:name, :string) field(:sex, :string) field(:username, :string) field(:password, :string) field(:birthdate, :date) field(:photos, {:array, :m...
27.675676
98
0.689453
7a4b8c72dd2dc113b739fa55655ff510ca577647
9,997
exs
Elixir
test/generator_test.exs
Bleachr/blue_bird
5ea1d1f047ce379bc73b6d7892fdd44392b09569
[ "MIT" ]
null
null
null
test/generator_test.exs
Bleachr/blue_bird
5ea1d1f047ce379bc73b6d7892fdd44392b09569
[ "MIT" ]
null
null
null
test/generator_test.exs
Bleachr/blue_bird
5ea1d1f047ce379bc73b6d7892fdd44392b09569
[ "MIT" ]
1
2021-03-02T05:14:01.000Z
2021-03-02T05:14:01.000Z
defmodule BlueBird.Test.GeneratorTest do require Logger use BlueBird.Test.Support.ConnCase import ExUnit.CaptureLog alias BlueBird.ConnLogger alias BlueBird.Generator alias BlueBird.Parameter alias BlueBird.Test.Support.Router @opts Router.init([]) setup do ConnLogger.reset() end @tag :s...
27.539945
81
0.584075
7a4baacb879eee238387ed2c58d2a86acc78994e
5,494
exs
Elixir
apps/omg_api/test/state/prop_test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_api/test/state/prop_test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_api/test/state/prop_test.exs
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
32.508876
116
0.657444
7a4bb62f0f9d992eccfa22c613708ec97b1f7318
1,464
ex
Elixir
lib/bus_web/views/error_helpers.ex
titouancreach/bus-rennes
9d85a1c13a161b4f48e6efaf7ed52dbd7991f9d8
[ "MIT" ]
3
2018-06-16T22:34:46.000Z
2018-06-20T07:15:27.000Z
lib/bus_web/views/error_helpers.ex
titouancreach/bus-rennes
9d85a1c13a161b4f48e6efaf7ed52dbd7991f9d8
[ "MIT" ]
null
null
null
lib/bus_web/views/error_helpers.ex
titouancreach/bus-rennes
9d85a1c13a161b4f48e6efaf7ed52dbd7991f9d8
[ "MIT" ]
null
null
null
defmodule BusWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn (error) -> content_tag :s...
32.533333
72
0.668033
7a4bd8837abffdf8d017a23fa545cb779903666e
3,761
ex
Elixir
lib/parser.ex
maxpohlmann/A-onzo
a00ee09476a98fba2ae1de6d20f4bbae7be34748
[ "MIT" ]
2
2020-12-14T15:11:43.000Z
2021-01-07T11:18:03.000Z
lib/parser.ex
maxpohlmann/A-onzo
a00ee09476a98fba2ae1de6d20f4bbae7be34748
[ "MIT" ]
null
null
null
lib/parser.ex
maxpohlmann/A-onzo
a00ee09476a98fba2ae1de6d20f4bbae7be34748
[ "MIT" ]
null
null
null
defmodule Parser do import Utils import Reducer def parse(inp, metavars \\ %{}) do {term, inp} = parse_term(to_charlist(inp)) if length(inp) != 0, do: raise "closing parenthesis without opening: #{inp}" term = replace_metavars(term, metavars) if (b = check_bindings(term)) != :ok do IO.pu...
25.073333
104
0.503058
7a4bdd03e494758019ac81ff22c7eb429442cb46
7,786
exs
Elixir
test/support/view_helpers.exs
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
1,347
2016-07-04T23:20:10.000Z
2022-02-10T20:10:48.000Z
test/support/view_helpers.exs
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
378
2016-07-06T16:30:28.000Z
2021-09-16T13:34:05.000Z
test/support/view_helpers.exs
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
276
2016-07-06T20:26:17.000Z
2021-12-06T19:32:41.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.g...
33.131915
92
0.674801
7a4bf2cc4c4940fc5596bf3199c89ebea3ce2143
490
exs
Elixir
config/test.exs
awochna/survey
2db589ce0bea8cc9613beb34cb983348c1458f01
[ "MIT" ]
null
null
null
config/test.exs
awochna/survey
2db589ce0bea8cc9613beb34cb983348c1458f01
[ "MIT" ]
null
null
null
config/test.exs
awochna/survey
2db589ce0bea8cc9613beb34cb983348c1458f01
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :survey, Survey.Web.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :survey, Survey.Repo,...
24.5
56
0.730612
7a4c108d3be29852f10f80105c66518db41e2571
4,585
exs
Elixir
apps/api_web/test/api_web/controllers/line_controller_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/api_web/test/api_web/controllers/line_controller_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/api_web/test/api_web/controllers/line_controller_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule ApiWeb.LineControllerTest do use ApiWeb.ConnCase import ApiWeb.LineController alias Model.{Line, Route} setup tags do State.Line.new_state([ %Line{ id: "1", short_name: "1st Line", long_name: "First Line", color: "00843D", text_color: "FFFFFF", ...
28.478261
97
0.452126
7a4c14cfb9d9dcf74d51920cb806f68233da53da
338
exs
Elixir
test/freegiving_web/live/page_live_test.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
test/freegiving_web/live/page_live_test.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
test/freegiving_web/live/page_live_test.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
defmodule FreegivingWeb.PageLiveTest do use FreegivingWeb.ConnCase import Phoenix.LiveViewTest 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) =~ "Welcome to Ph...
28.166667
60
0.730769
7a4c21373033e443cbd0e6a5c7c759b68b31deeb
9,841
exs
Elixir
test/receptar_web/controllers/recipe_controller_test.exs
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
test/receptar_web/controllers/recipe_controller_test.exs
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
test/receptar_web/controllers/recipe_controller_test.exs
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
defmodule ReceptarWeb.RecipeControllerTest do use ReceptarWeb.ConnCase import Receptar.Seeder import Receptar.TestHelpers describe "sample database available" do setup %{conn: conn} do insert_test_data() register_and_log_in_user(%{conn: conn}) end test "search for unknown title finds ...
41.523207
99
0.658775
7a4c2d808675b408f21fefbe194d0e0abb603069
211
exs
Elixir
priv/repo/migrations/20170106200911_add_slug_to_post.exs
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
460
2016-12-28T21:50:05.000Z
2022-03-16T14:34:08.000Z
priv/repo/migrations/20170106200911_add_slug_to_post.exs
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
412
2016-12-27T17:32:01.000Z
2021-09-17T23:51:47.000Z
priv/repo/migrations/20170106200911_add_slug_to_post.exs
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
140
2017-01-06T06:55:58.000Z
2022-02-04T13:35:21.000Z
defmodule Tilex.Repo.Migrations.AddSlugToPost do use Ecto.Migration def change do alter table(:posts) do add :slug, :string, null: false end create unique_index(:posts, [:slug]) end end
19.181818
48
0.687204
7a4c2df1c5cbeff74d7b6067e86e8e36b7a8211e
1,959
ex
Elixir
clients/games/lib/google_api/games/v1/model/player_level.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/games/lib/google_api/games/v1/model/player_level.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/games/lib/google_api/games/v1/model/player_level.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.982143
154
0.701889
7a4c3816c54c461a62cee3cd029a98c9345c417d
2,627
ex
Elixir
lib/rock/heaps.ex
ayrat555/rock
bd0dfdd3a7bfb028e27cfda32f271879dedac1b9
[ "MIT" ]
10
2017-06-24T10:23:25.000Z
2022-03-28T09:15:00.000Z
lib/rock/heaps.ex
ayrat555/rock
bd0dfdd3a7bfb028e27cfda32f271879dedac1b9
[ "MIT" ]
2
2017-10-17T21:06:56.000Z
2020-07-14T13:43:32.000Z
lib/rock/heaps.ex
ayrat555/rock
bd0dfdd3a7bfb028e27cfda32f271879dedac1b9
[ "MIT" ]
3
2017-09-01T09:37:13.000Z
2020-07-13T18:16:58.000Z
defmodule Rock.Heaps do alias Rock.Struct.Heap alias Rock.Struct.Cluster @moduledoc false def initialize(clusters, link_matrix, theta) do clusters |> Enum.map(fn cluster -> remaining_clusters = clusters |> List.delete(cluster) cluster |> Heap.new(remaining_clusters, link_ma...
24.551402
72
0.571755
7a4c3d2e41607efc2862a0706e4c94649d6c1606
1,633
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/reroute_line_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/reroute_line_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/slides/lib/google_api/slides/v1/model/reroute_line_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...
34.744681
249
0.744029
7a4c42546ac0502e60580fb074b45e67817ec237
970
exs
Elixir
priv/repo/migrations/20190124184145_admin_users.exs
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20190124184145_admin_users.exs
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20190124184145_admin_users.exs
diogobaracho/cashflowex
7b66ff98239407f2ea2e11bf1693783dd94a725b
[ "Apache-2.0" ]
null
null
null
defmodule Misurd.Repo.Migrations.AdminUsers do use Ecto.Migration def up do drop_if_exists(table(:admin_users)) create_if_not_exists table(:admin_users) do add(:user_login, :string) # virtual fields are NOT persisted to the database add(:password, :string, virtual: true) add(:passw...
27.714286
66
0.643299
7a4c85764e4872cbf226c7ce1c5248841f83b958
514
ex
Elixir
web/models/entry.ex
princemaple/learn-phoenix
f54c1e4d92b3701884298df8557790f878334f03
[ "MIT" ]
null
null
null
web/models/entry.ex
princemaple/learn-phoenix
f54c1e4d92b3701884298df8557790f878334f03
[ "MIT" ]
null
null
null
web/models/entry.ex
princemaple/learn-phoenix
f54c1e4d92b3701884298df8557790f878334f03
[ "MIT" ]
null
null
null
defmodule LearnPhoenix.Entry do use LearnPhoenix.Web, :model schema "entries" do field :title, :string field :content, :string timestamps end @required_fields ~w(title content) @optional_fields ~w() @doc """ Creates a changeset based on the `model` and `params`. If no params are provide...
20.56
61
0.692607
7a4c8a39748b26eef7768b2e88bc040742f762aa
3,859
ex
Elixir
lib/token_manager.ex
accord-coop/ex_microsoftbot
45f2d45f04e256435563a3ffc155651e8ec26fb6
[ "MIT" ]
null
null
null
lib/token_manager.ex
accord-coop/ex_microsoftbot
45f2d45f04e256435563a3ffc155651e8ec26fb6
[ "MIT" ]
1
2021-06-26T00:52:21.000Z
2021-06-26T00:52:21.000Z
lib/token_manager.ex
accord-coop/ex_microsoftbot
45f2d45f04e256435563a3ffc155651e8ec26fb6
[ "MIT" ]
null
null
null
defmodule ExMicrosoftBot.TokenManager do @moduledoc """ This module is a GenServer that handles getting access token from Microsoft bot framework and also is responsible for refreshing the token before it expires. """ use ExMicrosoftBot.RefreshableAgent import ExMicrosoftBot.Client, only: [req_options: 1...
30.385827
95
0.693444
7a4c9a299b71586558a48685f0de14e80d2cd903
891
exs
Elixir
config/dev.exs
victorspringer/zionMetrics
13ae2f362d8a7e7af97a0487af53f4595c7c73fd
[ "MIT" ]
null
null
null
config/dev.exs
victorspringer/zionMetrics
13ae2f362d8a7e7af97a0487af53f4595c7c73fd
[ "MIT" ]
null
null
null
config/dev.exs
victorspringer/zionMetrics
13ae2f362d8a7e7af97a0487af53f4595c7c73fd
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :metrics, Metrics.Endpoint, http: [port: 4000]...
27.84375
68
0.746352
7a4cbab0c652d12551575a9392aae68b78a927b0
13,859
exs
Elixir
test/phoenix/integration/long_poll_channels_test.exs
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
test/phoenix/integration/long_poll_channels_test.exs
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
test/phoenix/integration/long_poll_channels_test.exs
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
Code.require_file("../../support/http_client.exs", __DIR__) defmodule Phoenix.Integration.LongPollChannelsTest do use ExUnit.Case import ExUnit.CaptureLog alias Phoenix.Integration.HTTPClient alias Phoenix.Socket.{Broadcast, Message, V1, V2} alias Phoenix.PubSub.Local alias __MODULE__.Endpoint @modulet...
28.993724
103
0.537124
7a4cec67bae2a6f6f97571c7c829cfa833d7393c
54,509
ex
Elixir
lib/elixir/lib/kernel/special_forms.ex
arjan/elixir
7f3f33d1004ee518b9ef3a23501d23af156410be
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/special_forms.ex
arjan/elixir
7f3f33d1004ee518b9ef3a23501d23af156410be
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/special_forms.ex
arjan/elixir
7f3f33d1004ee518b9ef3a23501d23af156410be
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.SpecialForms do @moduledoc """ Special forms are the basic building blocks of Elixir, and therefore cannot be overridden by the developer. We define them in this module. Some of these forms are lexical (like `alias/2`, `case/2`, etc). The macros `{}` and `<<>>` are also special forms used ...
28.039609
115
0.630043
7a4cf30fcc296e1685860d333850bd1408795205
2,558
exs
Elixir
test/large/cluster_test.exs
distributed-owls/breaking-pp
fdc6957997281c15ed6cf13e8b3de53b0dded0c1
[ "MIT" ]
4
2018-06-13T20:46:01.000Z
2018-09-24T12:50:53.000Z
test/large/cluster_test.exs
well-ironed/breaking-pp
fdc6957997281c15ed6cf13e8b3de53b0dded0c1
[ "MIT" ]
2
2018-05-12T10:16:01.000Z
2018-08-14T05:07:21.000Z
test/large/cluster_test.exs
well-ironed/breaking-pp
fdc6957997281c15ed6cf13e8b3de53b0dded0c1
[ "MIT" ]
3
2018-05-10T19:57:06.000Z
2018-09-21T11:31:55.000Z
defmodule BreakingPP.Test.ClusterTest do use ExUnit.Case import BreakingPP.Eventually alias BreakingPP.RealWorld.Cluster test "active sessions are replicated in the cluster" do # given [n1, n2] = Cluster.start(2) # when Cluster.connect(n1, ["1"]) Cluster.connect(n2, ["2"]) # then a...
28.741573
76
0.595778
7a4cf5f26f2497cde23d4802e4f8a9d634163edd
612
ex
Elixir
lib/huex/discovery.ex
directionalpad/huex
2bf2e9596d4c9712d580622fd592ab85ef4b9664
[ "Apache-2.0" ]
56
2015-07-19T08:04:12.000Z
2021-11-13T06:15:50.000Z
lib/huex/discovery.ex
directionalpad/huex
2bf2e9596d4c9712d580622fd592ab85ef4b9664
[ "Apache-2.0" ]
10
2016-01-04T16:51:23.000Z
2019-02-17T00:18:03.000Z
lib/huex/discovery.ex
directionalpad/huex
2bf2e9596d4c9712d580622fd592ab85ef4b9664
[ "Apache-2.0" ]
17
2016-01-03T04:18:56.000Z
2022-03-18T12:46:05.000Z
defmodule Huex.Discovery do @moduledoc """ Discover Hue bridges in your network. To use this functionality, you must include `nerves_ssdp_client` in your dependencies, as this is not installed by default. """ @doc """ Attempts to discover any Hue bridges operating on your network. May require multiple att...
30.6
125
0.684641
7a4d303768684c5f03a4e5acd92946daec6eecd3
2,960
ex
Elixir
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/membership.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/membership.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/membership.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...
42.898551
193
0.719257
7a4dc27bbbeb6e85f7e588d62656901abf5f90e7
1,799
ex
Elixir
ep4/src/lib/fecho.ex
Thubr/PCS3556
1eb0436579fa4389afe3ff8b82b862c5b14b91fc
[ "MIT" ]
null
null
null
ep4/src/lib/fecho.ex
Thubr/PCS3556
1eb0436579fa4389afe3ff8b82b862c5b14b91fc
[ "MIT" ]
null
null
null
ep4/src/lib/fecho.ex
Thubr/PCS3556
1eb0436579fa4389afe3ff8b82b862c5b14b91fc
[ "MIT" ]
null
null
null
defmodule SetClosure do @spec find_closure([tuple], [integer]) :: tuple() def find_closure(relation, set) do relation |> make_reflexive(set) |> make_transitive end def make_reflexive(relation, set) do found = count(relation, []) needed = set -- found fill(relation, needed) end defp fill(re...
22.772152
66
0.606448
7a4dc9e366e5623a23a156e224898a07cc013cfb
745
ex
Elixir
lib/pro_publica.ex
kddeisz/pro-publica
4d41de8d2873e6aa639378def3df7f736a36ff93
[ "MIT" ]
null
null
null
lib/pro_publica.ex
kddeisz/pro-publica
4d41de8d2873e6aa639378def3df7f736a36ff93
[ "MIT" ]
null
null
null
lib/pro_publica.ex
kddeisz/pro-publica
4d41de8d2873e6aa639378def3df7f736a36ff93
[ "MIT" ]
null
null
null
defmodule ProPublica do alias ProPublica.Client @congress 115 @base "https://api.propublica.org/congress/v1" @type response :: {integer, String.t} | :jsx.json_term @spec congress :: 115 def congress, do: @congress @spec get(Client.t, binary) :: response def get(client, path) do HTTPoison.request...
31.041667
98
0.685906
7a4dcbab98dbe0225d322f0c906fe56d7866bd35
395
ex
Elixir
lib/temporal/application.ex
aforward/temporal
ec71f48719c471a72a490583abe692c314dff080
[ "MIT" ]
null
null
null
lib/temporal/application.ex
aforward/temporal
ec71f48719c471a72a490583abe692c314dff080
[ "MIT" ]
null
null
null
lib/temporal/application.ex
aforward/temporal
ec71f48719c471a72a490583abe692c314dff080
[ "MIT" ]
null
null
null
defmodule Temporal.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(Temporal.Downloader, []), worker(Temporal.Scheduler, []), worker(Temporal.Callback, []) ] opts = [strategy: :one_for_one, name...
20.789474
62
0.675949
7a4e12007ea01276dfc619e76f64b3ed715440d1
359
exs
Elixir
priv/repo/migrations/20160302203848_add_package_owner_unique_constraint.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20160302203848_add_package_owner_unique_constraint.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20160302203848_add_package_owner_unique_constraint.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Repo.Migrations.AddPackageOwnerUniqueConstraint do use Ecto.Migration def up do execute """ ALTER TABLE package_owners ADD CONSTRAINT package_owners_unique UNIQUE (package_id, owner_id) """ end def down do execute """ ALTER TABLE package_owners DROP CONSTRAINT p...
19.944444
72
0.715877
7a4e426b4ff1426e13e6b0d7ad6fa30f6c3d4b34
10,592
ex
Elixir
lib/livebook_web/live/settings_live.ex
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/settings_live.ex
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/settings_live.ex
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SettingsLive do use LivebookWeb, :live_view import LivebookWeb.UserHelpers alias LivebookWeb.{SidebarHelpers, PageHelpers} @impl true def mount(_params, _session, socket) do {:ok, socket |> SidebarHelpers.shared_home_handlers() |> assign( file_systems: Livebo...
35.072848
116
0.553909
7a4e4a0ec7ce5572b0c29bbcdc7110c3ea7be397
4,425
ex
Elixir
lib/oban/queue/engine.ex
Lgdev07/oban
ed1d7aa1f15ee06a96da1f4e9cd3074c5805e447
[ "Apache-2.0" ]
2,219
2019-04-10T01:50:19.000Z
2022-03-30T11:20:01.000Z
lib/oban/queue/engine.ex
Lgdev07/oban
ed1d7aa1f15ee06a96da1f4e9cd3074c5805e447
[ "Apache-2.0" ]
532
2019-05-16T00:22:28.000Z
2022-03-31T19:04:02.000Z
lib/oban/queue/engine.ex
Lgdev07/oban
ed1d7aa1f15ee06a96da1f4e9cd3074c5805e447
[ "Apache-2.0" ]
230
2019-05-15T14:15:18.000Z
2022-03-23T22:59:43.000Z
defmodule Oban.Queue.Engine do @moduledoc false alias Oban.{Config, Job} @type conf :: Config.t() @type meta :: map() @type opts :: Keyword.t() @type running :: map() @type seconds :: pos_integer() @doc """ Initialize metadata for a queue engine. Queue metadata is used to identify and track subs...
28.365385
99
0.629605
7a4e4ce1a65f6c1e7a6cbd838514e82487fce1b3
730
ex
Elixir
lib/dgraph_ex/expr/anyofterms.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
21
2017-08-20T06:19:37.000Z
2021-02-04T23:22:10.000Z
lib/dgraph_ex/expr/anyofterms.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
43
2017-08-06T21:03:28.000Z
2018-09-08T13:00:35.000Z
lib/dgraph_ex/expr/anyofterms.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
1
2017-10-12T02:20:13.000Z
2017-10-12T02:20:13.000Z
defmodule DgraphEx.Expr.Anyofterms do alias DgraphEx.Expr.Anyofterms alias DgraphEx.Util defstruct [ label: nil, value: nil, ] defmacro __using__(_) do quote do def anyofterms(label, value) when is_atom(label) and is_binary(value) do DgraphEx.Expr.Anyofterms.new(label, value) ...
24.333333
97
0.671233
7a4e5349ac46deb5cfe425d6e3dde093efa250a6
453
exs
Elixir
test/mix_deploy_example_web/views/error_view_test.exs
yuchunc/mix-deploy-example
19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4
[ "Apache-2.0" ]
null
null
null
test/mix_deploy_example_web/views/error_view_test.exs
yuchunc/mix-deploy-example
19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4
[ "Apache-2.0" ]
null
null
null
test/mix_deploy_example_web/views/error_view_test.exs
yuchunc/mix-deploy-example
19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4
[ "Apache-2.0" ]
null
null
null
defmodule MixDeployExampleWeb.ErrorViewTest do use MixDeployExampleWeb.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(MixDeployExampleWeb.ErrorView, "404.html", []) == "Not Found" end test "...
30.2
101
0.754967
7a4eadb6bda36601b62ae9034eb7acd7ac412d7b
2,185
ex
Elixir
clients/content/lib/google_api/content/v2/model/test_order_payment_method.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/test_order_payment_method.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/test_order_payment_method.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.033898
177
0.706178
7a4eae554cf502dd05c978fab139ec6608cb624b
317
ex
Elixir
lib/hl7/2.4/segments/css.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/css.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/css.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.Segments.CSS do @moduledoc false require Logger alias HL7.V2_4.{DataTypes} use HL7.Segment, fields: [ segment: nil, study_scheduled_time_point: DataTypes.Ce, study_scheduled_patient_time_point: DataTypes.Ts, study_quality_control_codes: DataTypes.Ce ] end
21.133333
55
0.722397
7a4ecc109ee68c64a1289fa3b15ef887914ac9a6
1,553
exs
Elixir
apps/montreal_elixir/mix.exs
montrealelixir/website
251e3869bfeb441c8307309cee7abe0c3ebe8fef
[ "MIT" ]
13
2017-05-09T15:15:19.000Z
2020-12-17T08:16:59.000Z
apps/montreal_elixir/mix.exs
montrealelixir/website
251e3869bfeb441c8307309cee7abe0c3ebe8fef
[ "MIT" ]
65
2017-05-29T12:59:12.000Z
2022-02-20T16:02:15.000Z
apps/montreal_elixir/mix.exs
montrealelixir/website
251e3869bfeb441c8307309cee7abe0c3ebe8fef
[ "MIT" ]
13
2017-05-27T16:17:44.000Z
2020-10-01T05:50:57.000Z
defmodule MontrealElixir.Mixfile do use Mix.Project def project do [ app: :montreal_elixir, version: "0.0.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.12.0", elixirc_pat...
25.883333
79
0.592402
7a4ed0b72b28be3e290aa2575ac970e454dde487
1,291
exs
Elixir
test/stubbex/endpoint_test.exs
yawaramin/stubbex
5de6a0b5a7fd05229278673a032f59b6bb4aa06f
[ "MIT" ]
9
2018-10-24T22:56:46.000Z
2020-07-15T20:34:50.000Z
test/stubbex/endpoint_test.exs
yawaramin/stubbex
5de6a0b5a7fd05229278673a032f59b6bb4aa06f
[ "MIT" ]
10
2018-10-21T02:01:21.000Z
2019-11-14T17:03:32.000Z
test/stubbex/endpoint_test.exs
yawaramin/stubbex
5de6a0b5a7fd05229278673a032f59b6bb4aa06f
[ "MIT" ]
1
2018-11-12T12:51:19.000Z
2018-11-12T12:51:19.000Z
defmodule Stubbex.EndpointTest do use ExUnit.Case, async: true alias Stubbex.Endpoint @stub_path "" @md5 "md5" @state {@stub_path, %{@md5 => %{body: "", headers: [], status_code: 200}}} @new_state {@stub_path, %{}} @file_path "/stubs/#{@md5}.json" @eex ".eex" describe "handle_info" do test "dele...
37.970588
98
0.645236
7a4f1b6e92074d13c39f428f7b97f04d576c8e92
9,856
exs
Elixir
test/mouth/adapters/twilio_adapter_test.exs
ZipBooks/mouth
50bd0949960d7d6149b7f56cb3c11357ea3ebad2
[ "MIT" ]
27
2017-06-21T13:31:13.000Z
2020-12-30T06:14:28.000Z
test/mouth/adapters/twilio_adapter_test.exs
adolfosilva/mouth
95f605cc1044262f71995cb0a5bf951f3721cae1
[ "MIT" ]
12
2017-11-08T14:47:34.000Z
2019-04-02T07:40:28.000Z
test/mouth/adapters/twilio_adapter_test.exs
adolfosilva/mouth
95f605cc1044262f71995cb0a5bf951f3721cae1
[ "MIT" ]
6
2017-11-08T14:43:27.000Z
2019-06-07T14:50:32.000Z
defmodule Mouth.TwilioAdapterTest do use ExUnit.Case alias Mouth.Message @default_attrs [to: "+380931234567", body: "test"] defmodule TestTwilioSender do use Mouth.Messenger, otp_app: :mouth end setup_all do {:ok, _} = Plug.Adapters.Cowboy.http(__MODULE__.TwilioMockServer, [], port: 4001) :ok...
33.410169
134
0.585735
7a4f1bfada73e7bdab1535c7e708a250709a0843
384
ex
Elixir
lib/microscope/guardian_serializer.ex
Angarsk8/microscope.ex
dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c
[ "MIT" ]
342
2017-01-10T16:13:45.000Z
2022-02-26T13:55:38.000Z
lib/microscope/guardian_serializer.ex
Angarsk8/microscope.ex
dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c
[ "MIT" ]
6
2017-01-14T17:59:48.000Z
2018-03-25T21:35:50.000Z
lib/microscope/guardian_serializer.ex
Angarsk8/microscope.ex
dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c
[ "MIT" ]
38
2017-01-11T00:18:21.000Z
2021-07-11T11:28:12.000Z
defmodule Microscope.GuardianSerializer do @behaviour Guardian.Serializer alias Microscope.{Repo, User} def for_token(user = %User{}), do: { :ok, "User:#{user.id}" } def for_token(_), do: { :error, "Unknown resource type" } def from_token("User:" <> id), do: { :ok, Repo.get(User, String.to_integer(id)) } ...
32
83
0.669271
7a4f3f1bcd7aa4af19da8268f2516db581ec8de1
4,487
ex
Elixir
lib/sippet/transactions/client/invite.ex
enzoqtvf/elixir-sippet
8f35eac41d6242b682446ec445229a694b4061d9
[ "BSD-3-Clause" ]
5
2018-08-02T15:41:23.000Z
2020-12-07T15:50:45.000Z
lib/sippet/transactions/client/invite.ex
team-telnyx/elixir-sippet
32de78b585132004edcb285b16c7bcd5d8f2afb6
[ "BSD-3-Clause" ]
null
null
null
lib/sippet/transactions/client/invite.ex
team-telnyx/elixir-sippet
32de78b585132004edcb285b16c7bcd5d8f2afb6
[ "BSD-3-Clause" ]
null
null
null
defmodule Sippet.Transactions.Client.Invite do @moduledoc false use Sippet.Transactions.Client, initial_state: :calling alias Sippet.Message, as: Message alias Sippet.Message.StatusLine, as: StatusLine alias Sippet.Transactions.Client.State, as: State @timer_a 600 # optimization: transaction ends in 37....
30.52381
78
0.651215
7a4f736fa486f2c0ff0f2ee9dafa905af423780c
68
ex
Elixir
lib/media_bot/repo.ex
applede/media-bot
e6d2ffe59f2aaea022f1bf05eed42a4559ce3859
[ "MIT" ]
null
null
null
lib/media_bot/repo.ex
applede/media-bot
e6d2ffe59f2aaea022f1bf05eed42a4559ce3859
[ "MIT" ]
null
null
null
lib/media_bot/repo.ex
applede/media-bot
e6d2ffe59f2aaea022f1bf05eed42a4559ce3859
[ "MIT" ]
null
null
null
defmodule MediaBot.Repo do use Ecto.Repo, otp_app: :media_bot end
17
36
0.779412
7a4ffba2490dd7ad5728cea883a96ea65c4c50d4
432
exs
Elixir
apps/omg/config/test.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2020-05-01T12:30:09.000Z
2020-05-01T12:30:09.000Z
apps/omg/config/test.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg/config/test.exs
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2021-12-04T00:37:46.000Z
2021-12-04T00:37:46.000Z
use Mix.Config config :omg, deposit_finality_margin: 1, ethereum_events_check_interval_ms: 50, coordinator_eth_height_check_interval_ms: 100, environment: :test, # an entry to fix a common reference path to the root directory of the umbrella project # this is useful because `mix test` and `mix coveralls --...
39.272727
118
0.763889
7a5026cbe3087a7c8312c2180efff377247c9988
1,970
ex
Elixir
clients/content/lib/google_api/content/v21/model/orders_cancel_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/orders_cancel_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/orders_cancel_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.169811
345
0.711675
7a5027eb3e48cda1b97384e23f73c54719127d62
1,098
exs
Elixir
test/booking_web/schema/create_bookable_test.exs
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
test/booking_web/schema/create_bookable_test.exs
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
2
2021-03-10T16:49:07.000Z
2021-05-11T12:50:22.000Z
test/booking_web/schema/create_bookable_test.exs
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
defmodule BookingWeb.CreateBookableTest do use BookingWeb.ConnCase alias Booking.{Location, Repo, Bookable, User, Permission} setup do user = %User{} |> User.changeset(%{name: "User", email: "user@example.com", password: "secret"}) |> Repo.insert!() location = %Location{} |> Location.c...
28.153846
87
0.620219
7a5048ee7f2987f15b11d200a18775d78785b55d
2,838
ex
Elixir
lib/lastfm/file_archive.ex
boonious/lastfm_archive
a3d0194f28cd67572c230a207583e5d0b88eb199
[ "Apache-2.0" ]
1
2019-04-25T18:28:24.000Z
2019-04-25T18:28:24.000Z
lib/lastfm/file_archive.ex
boonious/lastfm_archive
a3d0194f28cd67572c230a207583e5d0b88eb199
[ "Apache-2.0" ]
14
2020-12-24T16:54:08.000Z
2021-05-05T15:21:55.000Z
lib/lastfm/file_archive.ex
boonious/lastfm_archive
a3d0194f28cd67572c230a207583e5d0b88eb199
[ "Apache-2.0" ]
1
2019-10-20T23:02:06.000Z
2019-10-20T23:02:06.000Z
defmodule Lastfm.FileArchive do @behaviour Lastfm.Archive alias Lastfm.Archive alias LastfmArchive.Utils @reset Application.get_env(:lastfm_archive, :reset, false) @file_io Application.get_env(:lastfm_archive, :file_io) @type archive :: Archive.t() @type options :: Archive.options() @impl true def...
30.847826
114
0.661029
7a5049b43bfbe0aeb2d7164f43c0073dcc0741cb
1,946
exs
Elixir
apps/diagnostics/config/config.exs
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
17
2020-06-20T11:29:43.000Z
2022-03-21T05:53:06.000Z
apps/diagnostics/config/config.exs
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
2
2020-07-09T10:22:50.000Z
2020-09-01T14:46:40.000Z
apps/diagnostics/config/config.exs
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
3
2020-07-17T20:04:36.000Z
2022-01-24T14:19:46.000Z
# Copyright 2019 Volvo Cars # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
38.92
73
0.761048
7a504af653b97eb909e268dae00957eeeebb3095
710
exs
Elixir
v02/macro/macro0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/macro/macro0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
v02/macro/macro0.exs
oiax/elixir-primer
c8b89a29f108cc335b8e1341b7a1e90ec12adc66
[ "MIT" ]
null
null
null
defmodule X do defmacro builder(fn_name, do: expression) do quote do def unquote(fn_name)(var!(acc) \\ "") do unquote(expression) var!(acc) end end end defmacro paren(do: expression) do quote do var!(acc) = var!(acc) <> "(" var!(acc) = var!(acc) <> unquote(expr...
15.106383
50
0.504225
7a50631147d091983b6bbf0b9721280460a11906
1,045
exs
Elixir
mix.exs
ZombieHarvester/zbar-elixir
71bcb000c84e243a0347537ece791f916f668da3
[ "MIT" ]
null
null
null
mix.exs
ZombieHarvester/zbar-elixir
71bcb000c84e243a0347537ece791f916f668da3
[ "MIT" ]
16
2020-01-31T08:12:29.000Z
2021-08-03T07:15:34.000Z
mix.exs
ZombieHarvester/zbar-elixir
71bcb000c84e243a0347537ece791f916f668da3
[ "MIT" ]
1
2018-11-22T08:10:59.000Z
2018-11-22T08:10:59.000Z
defmodule Zbar.Mixfile do use Mix.Project def project do [ app: :zbar, version: "0.1.0", description: "Scan one or more barcodes from a JPEG image", elixir: "~> 1.4", make_clean: ["clean"], compilers: [:elixir_make | Mix.compilers()], build_embedded: Mix.env == :prod, ...
21.770833
72
0.525359
7a50c1b938d271d24b5341765444ee0cedf83b5f
3,623
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/secret_volume_source.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/secret_volume_source.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/secret_volume_source.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "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...
64.696429
851
0.746895
7a50c88347698c9a9bf3c9cb0dd10d2a88044b5f
14,934
exs
Elixir
apps/language_server/test/dialyzer_test.exs
billylanchantin/elixir-ls
dccd34dbd856ae34efc925d014c6f84012549c90
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/dialyzer_test.exs
billylanchantin/elixir-ls
dccd34dbd856ae34efc925d014c6f84012549c90
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/dialyzer_test.exs
billylanchantin/elixir-ls
dccd34dbd856ae34efc925d014c6f84012549c90
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.DialyzerTest do # TODO: Test loading and saving manifest alias ElixirLS.LanguageServer.{Dialyzer, Server, Protocol, SourceFile} import ExUnit.CaptureLog use ElixirLS.Utils.MixTest.Case, async: false use Protocol setup_all do # This will generate a large PLT file and w...
34.018223
102
0.52203
7a50d87d2bb09b4099535c5cc63360239e3b697b
7,428
ex
Elixir
lib/hexpm/utils.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/utils.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/utils.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Utils do @moduledoc """ Assorted utility functions. """ @timeout 60 * 60 * 1000 import Ecto.Query, only: [from: 2] require Logger def secure_check(left, right) do if byte_size(left) == byte_size(right) do secure_check(left, right, 0) == 0 else false end end ...
24.116883
98
0.637318
7a50df25e030b2b8b56bf17f22417089a7421091
1,105
ex
Elixir
lib/mailgun_logger_web/channels/user_socket.ex
jackjoe/mailgun_logger
7d5a1989afdeb215bcd3753671c61bc25ed4e522
[ "MIT" ]
64
2020-02-10T20:42:46.000Z
2021-11-16T10:47:50.000Z
lib/mailgun_logger_web/channels/user_socket.ex
jackjoe/mailgun_logger
7d5a1989afdeb215bcd3753671c61bc25ed4e522
[ "MIT" ]
16
2020-02-10T20:45:57.000Z
2022-03-04T12:53:34.000Z
lib/mailgun_logger_web/channels/user_socket.ex
jackjoe/mailgun_logger
7d5a1989afdeb215bcd3753671c61bc25ed4e522
[ "MIT" ]
4
2020-04-03T17:13:19.000Z
2020-07-17T12:56:31.000Z
defmodule MailgunLoggerWeb.UserSocket do @moduledoc false use Phoenix.Socket ## Channels # channel "room:*", MailgunLoggerWeb.RoomChannel ## Transports # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns in...
29.078947
88
0.697738
7a50e9d026cf1d2dc77641aa7ecabd0b2c4a6a7f
941
ex
Elixir
deps/ecto/lib/ecto/repo/transaction.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/repo/transaction.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/repo/transaction.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Ecto.Repo.Transaction do @moduledoc false @dialyzer {:no_opaque, transaction: 3} def transaction(name, fun, opts) when is_function(fun, 0) do {adapter, meta} = Ecto.Repo.Registry.lookup(name) adapter.transaction(meta, opts, fun) end def transaction(name, %Ecto.Multi{} = multi, o...
29.40625
81
0.650372
7a50f35ffdb3648b689835e313832107c6960ef4
8,558
exs
Elixir
apps/state/test/state/prediction_test.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/state/test/state/prediction_test.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/state/test/state/prediction_test.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
1
2019-09-09T20:40:13.000Z
2019-09-09T20:40:13.000Z
defmodule State.PredictionTest do @moduledoc false use ExUnit.Case import State.Prediction @prediction %Model.Prediction{ trip_id: "trip", route_id: "route", stop_id: "stop" } @prediction2 %Model.Prediction{ trip_id: "trip2", route_id: "route2", stop_id: "stop" } setup do ...
29.010169
107
0.60014
7a5100bbf0a306c6ca3c452cf3411257b6cba007
42,167
ex
Elixir
lib/phoenix/controller.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
null
null
null
lib/phoenix/controller.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
null
null
null
lib/phoenix/controller.ex
raspo/phoenix
438b74255e7a4d68b4eaf1a295d0fcd201c71421
[ "MIT" ]
null
null
null
defmodule Phoenix.Controller do import Plug.Conn alias Plug.Conn.AlreadySentError require Logger require Phoenix.Endpoint @unsent [:unset, :set] @moduledoc """ Controllers are used to group common functionality in the same (pluggable) module. For example, the route: get "/users/:id", MyApp....
30.846379
110
0.66903
7a510e2947fe08f14c693b232e66f75fa2bc41ce
533
ex
Elixir
lib/ex_onixo/parser/product/identifier.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
1
2021-12-11T06:44:18.000Z
2021-12-11T06:44:18.000Z
lib/ex_onixo/parser/product/identifier.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
null
null
null
lib/ex_onixo/parser/product/identifier.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
null
null
null
defmodule ExOnixo.Parser.Product.Identifier do import SweetXml alias ExOnixo.Helper.ElementYml def parse_recursive(xml) do SweetXml.xpath(xml, ~x"./ProductIdentifier"l) |> Enum.map(fn identifier -> %{ product_id_type: ElementYml.get_tag(identifier, "/ProductIDType", "ProductIDType"), ...
26.65
95
0.64728
7a512474d4864529b41989992f5e6599f7b97a2f
1,866
exs
Elixir
clients/game_services/mix.exs
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/game_services/mix.exs
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "Apache-2.0" ]
null
null
null
clients/game_services/mix.exs
richiboi1977/elixir-google-api
c495bb3548090eb7a63d12f6fb145ec48aecdc0b
[ "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...
27.850746
113
0.660772
7a515b2d93a4ffdd379baf07341a1cfc1196e8ec
2,215
exs
Elixir
test/epi_contacts_web/plugs/commcare_info_loader_test.exs
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
null
null
null
test/epi_contacts_web/plugs/commcare_info_loader_test.exs
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
13
2021-06-29T04:35:41.000Z
2022-02-09T04:25:39.000Z
test/epi_contacts_web/plugs/commcare_info_loader_test.exs
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
null
null
null
defmodule EpiContactsWeb.Plugs.CommcareInfoLoaderTest do use EpiContactsWeb.ConnCase import EpiContacts.Testing.SecureId, only: [backdate_paseto: 2] alias EpiContactsWeb.Plugs.CommcareInfoLoader, as: P @case_id "123" @domain "abc" test "puts domain and case_id in session when passed in URL" do conn =...
28.037975
74
0.638826
7a516d4dfef84d3d08541fc50cfe420f4a648070
8,258
ex
Elixir
elixir-generate-dockerfile/src/lib/generator.ex
kayodeosagbemi/elixir-runtime
1746adf362444e3e0cc2daa5e461be24f1cb624a
[ "Apache-2.0" ]
170
2017-08-25T06:40:14.000Z
2022-01-10T22:18:51.000Z
elixir-generate-dockerfile/src/lib/generator.ex
kayodeosagbemi/elixir-runtime
1746adf362444e3e0cc2daa5e461be24f1cb624a
[ "Apache-2.0" ]
27
2017-09-07T05:57:37.000Z
2022-03-22T13:40:47.000Z
elixir-generate-dockerfile/src/lib/generator.ex
kayodeosagbemi/elixir-runtime
1746adf362444e3e0cc2daa5e461be24f1cb624a
[ "Apache-2.0" ]
16
2017-11-14T01:45:00.000Z
2021-10-09T03:26:39.000Z
# Copyright 2017 Google Inc. # # 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, ...
29.283688
96
0.666747
7a517c01a0b0af18a15847bb0e99d53e322d4c8d
735
exs
Elixir
newton.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
2
2019-08-26T13:17:27.000Z
2020-09-24T13:16:07.000Z
newton.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
newton.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
defmodule FixedPoint do @tolerance 0.00001 def of(f, guess) do next = f.(guess) if close_enough? guess, next do next else of(f, next) end end defp close_enough?(val1, val2), do: abs(val1 - val2) < @tolerance end defmodule NewtonsMethod do def root_of(g, guess) do FixedPoint....
17.926829
68
0.579592
7a51b755ba92c2c2ff7ad213282e98383a3de007
1,400
exs
Elixir
test/lorem_test.exs
chriskjaer/lorem
9b135c155fe173d7a80c7490607a0829728f07fe
[ "MIT" ]
null
null
null
test/lorem_test.exs
chriskjaer/lorem
9b135c155fe173d7a80c7490607a0829728f07fe
[ "MIT" ]
null
null
null
test/lorem_test.exs
chriskjaer/lorem
9b135c155fe173d7a80c7490607a0829728f07fe
[ "MIT" ]
null
null
null
defmodule LoremTest do use ExUnit.Case test "returns a single word" do assert Lorem.word |> Kernel.is_bitstring assert Lorem.word |> String.split |> Kernel.length == 1 end test "returns multiple words" do size = :random.uniform(255) assert size |> Lorem.word |> Kernel.is_bitstring assert s...
27.45098
82
0.662857
7a51bb3d230a4d79bcdd708e8ab69dc45e239aa8
1,994
exs
Elixir
agma/config/prod.exs
queer/mahou
09b63a2f7431a7b3364ce81dac35114ea508942f
[ "BSD-3-Clause" ]
37
2021-01-31T17:43:03.000Z
2021-11-17T12:29:00.000Z
config/prod.exs
queer/agma
f240a7bdf743049b8b1b994ee340b6cce47551bf
[ "BSD-3-Clause" ]
4
2021-05-29T04:54:28.000Z
2021-06-26T20:40:48.000Z
config/prod.exs
queer/agma
f240a7bdf743049b8b1b994ee340b6cce47551bf
[ "BSD-3-Clause" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
35.607143
66
0.712136
7a520e70649665e72b4b058d87e3eedb4da57723
965
exs
Elixir
samples/unit_scaling_smallest_vs_none.exs
kimshrier/benchee
a295b4fd538c1d1b204f2f565daff94fcd53558c
[ "MIT" ]
null
null
null
samples/unit_scaling_smallest_vs_none.exs
kimshrier/benchee
a295b4fd538c1d1b204f2f565daff94fcd53558c
[ "MIT" ]
null
null
null
samples/unit_scaling_smallest_vs_none.exs
kimshrier/benchee
a295b4fd538c1d1b204f2f565daff94fcd53558c
[ "MIT" ]
null
null
null
# Due to the wide spread of values in unit_scaling.exs there is no difference # between :none and :smallest -let's fix that here! list_10k = 1..10_000 |> Enum.to_list |> Enum.shuffle list_100k = 1..100_000 |> Enum.to_list |> Enum.shuffle # options document in README Benchee.run %{ "10k" => fn -> Enum.sort(li...
32.166667
77
0.540933
7a5219c4cda9bdc300ebc11bd7d960479048d5d5
526
ex
Elixir
test/support/fixtures/owner_fixture.ex
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
test/support/fixtures/owner_fixture.ex
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
2
2021-03-09T01:59:47.000Z
2022-02-10T17:08:54.000Z
test/support/fixtures/owner_fixture.ex
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
defmodule Ptr.Support.Fixtures.OwnerFixture do alias Ptr.Accounts.Session alias Ptr.Ownerships defmacro __using__(_opts) do quote do @owner_attrs %{name: "some name", tax_id: "some tax_id"} def fixture(:owner, attributes, _opts) do account = fixture(:seed_account) session = %Sess...
26.3
67
0.663498
7a52473af1eddb44706b4d6fc8cc3b19680413db
1,166
ex
Elixir
lib/shippo/resource.ex
almielczarek/shippo-elixir-client
10a0a0a319d317556b3969cbc519f3dcc12f2944
[ "MIT" ]
1
2020-03-27T14:02:07.000Z
2020-03-27T14:02:07.000Z
lib/shippo/resource.ex
almielczarek/shippo-elixir-client
10a0a0a319d317556b3969cbc519f3dcc12f2944
[ "MIT" ]
null
null
null
lib/shippo/resource.ex
almielczarek/shippo-elixir-client
10a0a0a319d317556b3969cbc519f3dcc12f2944
[ "MIT" ]
null
null
null
defmodule Shippo.Resource do @callback endpoint :: String.t() @defaults [get: 1, create: 1, list: 0] defp methods(opts) do only = Keyword.get(opts, :only) if only do only else except = Keyword.get(opts, :except, []) Enum.reduce(except, @defaults, fn {m, _}, acc -> Keyword...
20.821429
60
0.537736
7a525dfeea5462d4743bcdabc5f077994eed9c9a
3,728
ex
Elixir
lib/plug/conn/adapter.ex
victorolinasc/plug
9c459a396a3406d73371daf2631fd3682b254c86
[ "Apache-2.0" ]
1
2021-04-19T23:18:06.000Z
2021-04-19T23:18:06.000Z
deps/plug/lib/plug/conn/adapter.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/plug/lib/plug/conn/adapter.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
null
null
null
defmodule Plug.Conn.Adapter do @moduledoc """ Specification of the connection adapter API implemented by webservers. """ alias Plug.Conn @type http_protocol :: :"HTTP/1" | :"HTTP/1.1" | :"HTTP/2" | atom @type payload :: term @type peer_data :: %{ address: :inet.ip_address(), port: :in...
31.066667
93
0.630901
7a5267e9f817035843e3551fa296360266063962
1,846
exs
Elixir
clients/storage/mix.exs
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/storage/mix.exs
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/storage/mix.exs
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
27.552239
106
0.656013
7a526d76337a00ee3640b422eda968b4222960e0
25,359
ex
Elixir
lib/netvox_multiparser.ex
FelixW0lf/element-parsers
cced91b2299a3c9e9dbe8cd7b9863d4f64adaf19
[ "MIT" ]
1
2021-11-10T18:06:59.000Z
2021-11-10T18:06:59.000Z
lib/netvox_multiparser.ex
FelixW0lf/element-parsers
cced91b2299a3c9e9dbe8cd7b9863d4f64adaf19
[ "MIT" ]
null
null
null
lib/netvox_multiparser.ex
FelixW0lf/element-parsers
cced91b2299a3c9e9dbe8cd7b9863d4f64adaf19
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour require Logger # ELEMENT IoT Parser for Netvox Sensors # According to documentation provided by Netvox: # # Netvox LoRaWAN Application Command V1.8.2 / V1.8.5 # # Online Decoder: # http://www.netvox.com.cn:8888/page/index # # Payload documenta...
32.933766
162
0.636658
7a527469b804f0008e9310629d212bf9f8aefe78
1,274
ex
Elixir
lib/zaryn/oracle_chain/services/zaryn_price.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
1
2021-07-06T19:47:14.000Z
2021-07-06T19:47:14.000Z
lib/zaryn/oracle_chain/services/zaryn_price.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
lib/zaryn/oracle_chain/services/zaryn_price.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
defmodule Zaryn.OracleChain.Services.ZARYNPrice do @moduledoc """ Define Oracle behaviors to support ZARYN Price feed oracle """ require Logger alias Zaryn.OracleChain.Services.Impl @behaviour Impl @pairs ["usd", "eur"] @impl Impl @spec fetch() :: {:ok, %{required(String.t()) => any()}} | {:error...
23.592593
83
0.601256
7a52c1545a9de925fa026834d29dabef9fe212df
3,577
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.191011
232
0.716802
7a530fe2bb8f2ff804ce3c1f12af3a935d0b187e
741
exs
Elixir
mix.exs
scrogson/hedwig_xmpp
173c1691aa6a44b386fe089a2d59e3cad71a6896
[ "MIT" ]
13
2016-01-16T04:59:44.000Z
2020-06-06T20:03:11.000Z
mix.exs
scrogson/hedwig_xmpp
173c1691aa6a44b386fe089a2d59e3cad71a6896
[ "MIT" ]
7
2016-07-25T00:53:52.000Z
2018-02-06T22:19:04.000Z
mix.exs
scrogson/hedwig_xmpp
173c1691aa6a44b386fe089a2d59e3cad71a6896
[ "MIT" ]
9
2016-03-10T13:05:06.000Z
2021-11-12T22:11:43.000Z
defmodule HedwigXMPP.Mixfile do use Mix.Project @version "1.0.0" def project do [app: :hedwig_xmpp, name: "Hedwig XMPP", version: @version, elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, package: package(), description: "An XMPP adap...
20.583333
61
0.568151
7a533f92482df1e42604cdc39e42b9047d23e8b8
352
exs
Elixir
priv/repo/migrations/20210126231809_create_buyers.exs
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
null
null
null
priv/repo/migrations/20210126231809_create_buyers.exs
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
6
2021-01-22T15:23:04.000Z
2021-01-28T07:56:01.000Z
priv/repo/migrations/20210126231809_create_buyers.exs
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
null
null
null
defmodule OrderApi.Repo.Migrations.CreateBuyers do use Ecto.Migration def change do create table(:buyers) do add :last_name, :string add :first_name, :string add :external_code, :integer add :email, :string add :nickname, :string timestamps() end create(unique_inde...
19.555556
50
0.653409
7a534d0c1caedc2aa315f210dedff842ca6264c7
543
ex
Elixir
test/support/fixtures.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
2
2018-10-03T07:41:32.000Z
2021-03-21T11:27:27.000Z
test/support/fixtures.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
1
2018-10-31T04:55:59.000Z
2018-10-31T04:55:59.000Z
test/support/fixtures.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
5
2018-09-27T11:30:44.000Z
2021-01-16T08:28:58.000Z
defmodule CgratesWebJsonapi.Fixtures do import CgratesWebJsonapi.Factory def call_fixture(id, attrs \\ %{}) do attrs_with_id = Map.merge( %{ cgrid: id, tenant: "cgrates.org", origin_host: "example.com", account: "1001", origin_id: "1613483697.1252...
22.625
69
0.54512
7a5364e337dd0a68efad970271e35cfbc6624d84
19,676
exs
Elixir
test/lib/absinthe/plug_test.exs
ejscunha/absinthe_plug
5e8fdb9a0b6ad85f2fe4e2dab0c0ace7f4d6ab94
[ "MIT" ]
null
null
null
test/lib/absinthe/plug_test.exs
ejscunha/absinthe_plug
5e8fdb9a0b6ad85f2fe4e2dab0c0ace7f4d6ab94
[ "MIT" ]
null
null
null
test/lib/absinthe/plug_test.exs
ejscunha/absinthe_plug
5e8fdb9a0b6ad85f2fe4e2dab0c0ace7f4d6ab94
[ "MIT" ]
null
null
null
defmodule Absinthe.PlugTest do use Absinthe.Plug.TestCase alias Absinthe.Plug.TestSchema alias Absinthe.Plug.TestPubSub @foo_result ~s({"data":{"item":{"name":"Foo"}}}) @bar_result ~s({"data":{"item":{"name":"Bar"}}}) @variable_query """ query FooQuery($id: ID!){ item(id: $id) { name } }...
30.270769
97
0.566223
7a53766978857025081354a236577f307c0edd70
1,622
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/managed_service.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/managed_service.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/managed_service.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.791667
145
0.760789
7a538a7770e3a12a8ad6e0045568b793fc78a431
1,188
ex
Elixir
lib/support_pairs_web/channels/user_socket.ex
SonofNun15/support-pairs
6001b04a42f5fa9be02a00dad5cdc0fd76859f9a
[ "MIT" ]
null
null
null
lib/support_pairs_web/channels/user_socket.ex
SonofNun15/support-pairs
6001b04a42f5fa9be02a00dad5cdc0fd76859f9a
[ "MIT" ]
null
null
null
lib/support_pairs_web/channels/user_socket.ex
SonofNun15/support-pairs
6001b04a42f5fa9be02a00dad5cdc0fd76859f9a
[ "MIT" ]
null
null
null
defmodule SupportPairsWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", SupportPairsWeb.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to ve...
31.263158
87
0.707071
7a541bb72d1cb964e744d78995d5d376ed202184
7,896
ex
Elixir
lib/ex_check/check/compiler.ex
gerbal/ex_check
1247075a64d17f69c3e6e9699bd95664cc128466
[ "MIT" ]
225
2019-07-21T14:44:17.000Z
2022-03-31T11:08:07.000Z
lib/ex_check/check/compiler.ex
gerbal/ex_check
1247075a64d17f69c3e6e9699bd95664cc128466
[ "MIT" ]
23
2019-07-30T03:05:42.000Z
2022-03-06T18:11:50.000Z
lib/ex_check/check/compiler.ex
gerbal/ex_check
1247075a64d17f69c3e6e9699bd95664cc128466
[ "MIT" ]
9
2019-11-23T23:04:39.000Z
2022-03-29T00:54:34.000Z
defmodule ExCheck.Check.Compiler do @moduledoc false alias ExCheck.{Config, Project} def compile(tools, opts) do { process_compiler(tools, opts), process_others(tools, opts) } end defp process_compiler(tools, opts) do compiler = List.keyfind(tools, :compiler, 0) || raise("compiler t...
29.796226
99
0.629306
7a5420e94149ca9879bcff4b6ff0c2e78943d86a
2,009
ex
Elixir
test/account.ex
alexogar/agent_map
329920515e24e6d51bb1e3bd5ea38cd602cb6157
[ "MIT" ]
1
2018-06-05T21:32:23.000Z
2018-06-05T21:32:23.000Z
test/account.ex
alexogar/agent_map
329920515e24e6d51bb1e3bd5ea38cd602cb6157
[ "MIT" ]
null
null
null
test/account.ex
alexogar/agent_map
329920515e24e6d51bb1e3bd5ea38cd602cb6157
[ "MIT" ]
1
2019-03-20T21:10:28.000Z
2019-03-20T21:10:28.000Z
defmodule Test.Account do use AgentMap def start_link() do AgentMap.start_link([], name: __MODULE__) end def stop() do AgentMap.stop(__MODULE__) end @doc """ Returns `{:ok, balance}` for account or `:error` if account is unknown. """ def balance(account) do AgentMap.fetch(__MODULE__, ...
19.133333
61
0.548532
7a5424253a68a84a09f43dbb0c48a4157474b51e
6,182
ex
Elixir
lib/ecto/query/typespec.ex
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/typespec.ex
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/typespec.ex
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.Typespec do @moduledoc false # A very simple type system to declare the operators and functions # available in Ecto with their types. At runtime, the type system # does no inference, it simply maps input types to output types. @doc """ Defines a new Ecto.Query type. """ defmacro d...
27.846847
98
0.615173
7a5426dcf47ecd7654aded06509d21bb2167c066
1,478
exs
Elixir
elixir/word-count/test/word_count_test.exs
eliotjordan/exercism-elixir
c9985cf13a0621630e41ff5b3373d880f20f86b6
[ "Apache-2.0" ]
null
null
null
elixir/word-count/test/word_count_test.exs
eliotjordan/exercism-elixir
c9985cf13a0621630e41ff5b3373d880f20f86b6
[ "Apache-2.0" ]
null
null
null
elixir/word-count/test/word_count_test.exs
eliotjordan/exercism-elixir
c9985cf13a0621630e41ff5b3373d880f20f86b6
[ "Apache-2.0" ]
null
null
null
defmodule WordCountTest do use ExUnit.Case test "count one word" do assert WordCount.count("word") == %{"word" => 1} end test "count one of each" do expected = %{"one" => 1, "of" => 1, "each" => 1} assert WordCount.count("one of each") == expected end test "count multiple occurrences" do ...
29.56
86
0.607578
7a5439327f0f8224839edfc6c617715467f093cc
78
exs
Elixir
test/wavex_test.exs
basdirks/wavex
b465c374d4b8a1668187d6c056b1d299fe3a9ffe
[ "Apache-2.0" ]
null
null
null
test/wavex_test.exs
basdirks/wavex
b465c374d4b8a1668187d6c056b1d299fe3a9ffe
[ "Apache-2.0" ]
null
null
null
test/wavex_test.exs
basdirks/wavex
b465c374d4b8a1668187d6c056b1d299fe3a9ffe
[ "Apache-2.0" ]
null
null
null
defmodule WavexTest do @moduledoc false use ExUnit.Case, async: true end
13
30
0.75641
7a5441b5088e3deff670146957b1e57364becaaa
3,607
ex
Elixir
lib/teiserver/clans/libs/clan_lib.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver/clans/libs/clan_lib.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/clans/libs/clan_lib.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Clans.ClanLib do use CentralWeb, :library alias Teiserver.Clans.Clan # Functions @spec icon :: String.t() def icon, do: "fas fa-globe" @spec colours :: {String.t(), String.t(), String.t()} def colours, do: Central.Helpers.StylingHelper.colours(:info2) @spec make_favourite(Clan.t())...
25.58156
97
0.635708
7a54452ab952c41d6c867a89e96ce94c08f13b64
2,614
exs
Elixir
test/html_test.exs
Apelsinka223/excoveralls
500b8638851a3b6f261127ee72fe4a4a1805ea61
[ "MIT" ]
null
null
null
test/html_test.exs
Apelsinka223/excoveralls
500b8638851a3b6f261127ee72fe4a4a1805ea61
[ "MIT" ]
null
null
null
test/html_test.exs
Apelsinka223/excoveralls
500b8638851a3b6f261127ee72fe4a4a1805ea61
[ "MIT" ]
2
2019-03-15T08:12:53.000Z
2019-06-11T11:34:04.000Z
defmodule ExCoveralls.HtmlTest do use ExUnit.Case import Mock import ExUnit.CaptureIO alias ExCoveralls.Html @file_name "excoveralls.html" @file_size 20184 @test_output_dir "cover_test/" @test_template_path "lib/templates/html/htmlcov/" @content "defmodule Test do\n def test do\n end\nend\n" ...
33.512821
183
0.627774
7a545da2c87e3cde06729307f1e2752790ac276d
5,868
ex
Elixir
lib/mix/lib/mix/tasks/help.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/help.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/help.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Help do use Mix.Task @shortdoc "Prints help information for tasks" @moduledoc """ Lists all tasks and aliases or prints the documentation for a given task or alias. ## Arguments mix help - prints all aliases, tasks and their short descriptions mix help ALIA...
28.211538
99
0.628153
7a548d558d7916506da1e1c7359c8d8601638be2
101
exs
Elixir
apps/ello_auth/config/test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_auth/config/test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_auth/config/test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
use Mix.Config config :ello_auth, jwt_alg: :hs256, jwt_secret: "SECRET", jwt_exp_duration: 30
14.428571
23
0.722772
7a54b22d965dae30b745b50cc491f26c5aabcc7b
39,264
ex
Elixir
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/customers.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/customers.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/customers.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...
44.41629
292
0.621205
7a54c8b149ab9d5569f745445d85b8993d125939
1,815
ex
Elixir
lib/web/endpoint.ex
deep-spaced/ex_venture
45848abe509620d6d2643b2a780dab01c1ac523b
[ "MIT" ]
null
null
null
lib/web/endpoint.ex
deep-spaced/ex_venture
45848abe509620d6d2643b2a780dab01c1ac523b
[ "MIT" ]
null
null
null
lib/web/endpoint.ex
deep-spaced/ex_venture
45848abe509620d6d2643b2a780dab01c1ac523b
[ "MIT" ]
null
null
null
defmodule Web.Endpoint do use Phoenix.Endpoint, otp_app: :ex_venture socket("/socket", Web.UserSocket) socket("/admin/socket", Web.AdminSocket) # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static fil...
23.881579
95
0.678788
7a54d448f758b405b32e581d0618d151132c7686
1,811
exs
Elixir
clients/domains/mix.exs
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/domains/mix.exs
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/domains/mix.exs
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
27.029851
98
0.652126
7a54de1bef1ddc3fd0baf83e8fd7d6295a9a18b2
38
ex
Elixir
testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/UnqualifiedParenthesesCallBlock.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/UnqualifiedParenthesesCallBlock.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/UnqualifiedParenthesesCallBlock.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
one(two) do end one(two)(three) do end
19
22
0.710526
7a54eab9ffea50bed38a977d86a3c0a250bedc5a
1,882
ex
Elixir
lib/ssdp_client.ex
CaptChrisD/box
5828ab2c5bbdc2998460ef6f6beeba3eda6e0316
[ "MIT" ]
null
null
null
lib/ssdp_client.ex
CaptChrisD/box
5828ab2c5bbdc2998460ef6f6beeba3eda6e0316
[ "MIT" ]
null
null
null
lib/ssdp_client.ex
CaptChrisD/box
5828ab2c5bbdc2998460ef6f6beeba3eda6e0316
[ "MIT" ]
null
null
null
defmodule SsdpClient do require Logger @discover_gather_time 1000 # wait up to 1 second for responses @msearch_msg "M-SEARCH * HTTP/1.1\r\nHost: 239.255.255.250:1900\r\nMAN: \"ssdp:discover\"\r\nST: urn:rosepointnav-com:service:nemo:1\r\nMX: 10\r\n\r\n" @doc "listen for a bit after an msearch and see...
35.509434
153
0.655685