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
030f41e4041c701cc1b2efe7b26c22cc6a28a4e5
280
ex
Elixir
lib/fragment/structured_text/span/label.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
10
2018-01-12T18:52:53.000Z
2022-02-17T06:00:21.000Z
lib/fragment/structured_text/span/label.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
12
2018-02-14T23:08:08.000Z
2021-11-22T15:55:41.000Z
lib/fragment/structured_text/span/label.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
8
2018-05-08T14:02:21.000Z
2021-12-15T08:19:55.000Z
alias Prismic.Fragment.StructuredText.Span defmodule Span.Label do defstruct [:label, :start, :end] @type t :: %__MODULE__{label: String.t(), start: Integer.t(), end: Integer.t()} end defimpl Span, for: Span.Label do # TODO def serialize(_, _link_resolver), do: "" end
21.538462
81
0.696429
030f72faf4f7e7c982b560af2eaf5d78338f9a9d
1,826
ex
Elixir
test/support/model_case.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
17
2017-01-02T10:38:28.000Z
2021-02-28T22:16:54.000Z
test/support/model_case.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
null
null
null
test/support/model_case.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
2
2017-01-09T13:02:13.000Z
2018-06-16T22:01:53.000Z
defmodule SocialNetwork.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be async...
27.666667
84
0.691128
030f7ab0257c078778a4ca84c321b7a9e102186b
354
exs
Elixir
priv/repo/seeds.exs
holandes22/rotterdam
d8b56079638c15a8492c08a6859ed14413163e62
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
holandes22/rotterdam
d8b56079638c15a8492c08a6859ed14413163e62
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
holandes22/rotterdam
d8b56079638c15a8492c08a6859ed14413163e62
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Rotterdam.Repo.insert!(%Rotterdam.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they w...
29.5
61
0.70904
030f8748d4119df25cbb2799a75ff921dd95650a
1,470
ex
Elixir
apps/blockchain/lib/mix/tasks/blockchain_tests.run.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/blockchain/lib/mix/tasks/blockchain_tests.run.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/blockchain/lib/mix/tasks/blockchain_tests.run.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule Mix.Tasks.BlockchainTests.Run do use Mix.Task require Logger alias EthCommonTest.BlockchainTestRunner @shortdoc "Runs a single blockchain common test" @moduledoc """ Runs a single blockchain common test. ## Example From the blockchain app, ``` mix blockchain_tests.run "stSpecialTest...
22.615385
95
0.64966
030f9a058475892e9c0d6631f3df4072227efdf0
1,425
ex
Elixir
example_applications/web_app/lib/web_app_web/router.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
example_applications/web_app/lib/web_app_web/router.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
example_applications/web_app/lib/web_app_web/router.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
defmodule WebAppWeb.Router do use WebAppWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {WebAppWeb.LayoutView, :root} plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :a...
26.388889
70
0.691228
030fcdfba875e21a6708365f60afbdf11110fb74
1,057
exs
Elixir
test/elixir/test/batch_save_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
1
2017-07-05T18:50:12.000Z
2017-07-05T18:50:12.000Z
test/elixir/test/batch_save_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
1
2018-10-01T11:37:24.000Z
2018-10-03T08:57:30.000Z
test/elixir/test/batch_save_test.exs
garrensmith/couchdb
25838d078b1cf8ef5554f41c0b51d8628ca712ba
[ "Apache-2.0" ]
1
2018-02-13T16:17:04.000Z
2018-02-13T16:17:04.000Z
defmodule BatchSaveTest do use CouchTestCase @moduletag :batch_save @moduledoc """ Test CouchDB batch save This is a port of batch_save.js """ @doc_count 100 @tag :with_db test "batch put", context do path_fun = &"/#{&1}/#{&2}" run(&Couch.put/2, path_fun, context[:db_name], @doc_count) e...
24.581395
70
0.630085
0310ef1ed2d76584e1308088b491d770a4003a7b
1,119
exs
Elixir
config/config.exs
suddenrushofsushi/epoxy
9d4f101b6221d10f3eb7cdf836d3f1b1fe8c5e02
[ "Apache-2.0" ]
1
2017-09-18T13:56:24.000Z
2017-09-18T13:56:24.000Z
config/config.exs
suddenrushofsushi/epoxy
9d4f101b6221d10f3eb7cdf836d3f1b1fe8c5e02
[ "Apache-2.0" ]
null
null
null
config/config.exs
suddenrushofsushi/epoxy
9d4f101b6221d10f3eb7cdf836d3f1b1fe8c5e02
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.096774
73
0.75067
0310f568350d448b604523a218173275b82460c7
6,235
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/metric_descriptor.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/metric_descriptor.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/metric_descriptor.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 "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...
97.421875
2,267
0.678268
03113281a7755d29212166ca640dfc4b9b26d33c
683
exs
Elixir
config/test.exs
vinolivae/banking_api
ba91a3396776ea279e648f99120f415df43bd168
[ "Apache-2.0" ]
1
2021-06-10T03:29:16.000Z
2021-06-10T03:29:16.000Z
config/test.exs
vinolivae/banking_api
ba91a3396776ea279e648f99120f415df43bd168
[ "Apache-2.0" ]
null
null
null
config/test.exs
vinolivae/banking_api
ba91a3396776ea279e648f99120f415df43bd168
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :banking_api, BankingApi.Repo, username: "postgres", password: "postgres", database: "banking_api_test...
29.695652
70
0.756955
03114eb80029b83c2b780b3ef4777f1e169045fe
367
exs
Elixir
.lab/config/config.exs
afaur/elixir-plug-api
86001074f4cc0310c8f918a1dc7fa3083e7f4f53
[ "Unlicense" ]
1
2018-09-11T16:18:09.000Z
2018-09-11T16:18:09.000Z
.lab/config/config.exs
afaur/elixir-plug-api
86001074f4cc0310c8f918a1dc7fa3083e7f4f53
[ "Unlicense" ]
null
null
null
.lab/config/config.exs
afaur/elixir-plug-api
86001074f4cc0310c8f918a1dc7fa3083e7f4f53
[ "Unlicense" ]
null
null
null
use Mix.Config scheme = :http port = 8085 if (scheme == :https) do config :app, plug_options: [ password: "cowboy", keyfile: Path.expand("../../conf/ssl/server.key", __DIR__), certfile: Path.expand("../../conf/ssl/server.cer", __DIR__), port: port, ] else config :app, plug_options: [ port...
20.388889
64
0.629428
031153d2659629102334a2757c99408938927d26
497
ex
Elixir
lib/turtle_tube_web/views/error_view.ex
ConnorRigby/turtletube_web
0e6618395918234584edbb74ccceb589fc79bc68
[ "MIT" ]
null
null
null
lib/turtle_tube_web/views/error_view.ex
ConnorRigby/turtletube_web
0e6618395918234584edbb74ccceb589fc79bc68
[ "MIT" ]
null
null
null
lib/turtle_tube_web/views/error_view.ex
ConnorRigby/turtletube_web
0e6618395918234584edbb74ccceb589fc79bc68
[ "MIT" ]
null
null
null
defmodule TurtleTubeWeb.ErrorView do use TurtleTubeWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the templat...
29.235294
61
0.738431
03116de71206a34ab32423e1fe3f2154d45737c8
4,174
ex
Elixir
lib/phoenix/live_dashboard/live/applications_live.ex
drozdzynski/phoenix_live_dashboard
cb8d3fe1a1733318597d591542b23d2218366f97
[ "MIT" ]
2
2020-05-07T23:49:26.000Z
2020-05-10T13:56:03.000Z
lib/phoenix/live_dashboard/live/applications_live.ex
dkuku/phoenix_live_dashboard
fcdc98abf1b7c4718d080bfe4c891057a7878aa9
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/live/applications_live.ex
dkuku/phoenix_live_dashboard
fcdc98abf1b7c4718d080bfe4c891057a7878aa9
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveDashboard.ApplicationsLive do use Phoenix.LiveDashboard.Web, :live_view import Phoenix.LiveDashboard.TableHelpers alias Phoenix.LiveDashboard.SystemInfo @sort_by ~w(name state) @sort_dir ~w(asc desc) @temporary_assigns [applications: [], total: 0] @impl true def mount(%{"node" =...
33.66129
156
0.556061
03117e44e127bf2cc59fff25bcda1e28d2e76281
312
ex
Elixir
lib/post_register/web/controllers/logs_controller.ex
myobie/post_register
924a832d7fa1693d655c34b0295affa8b3275f26
[ "MIT" ]
null
null
null
lib/post_register/web/controllers/logs_controller.ex
myobie/post_register
924a832d7fa1693d655c34b0295affa8b3275f26
[ "MIT" ]
null
null
null
lib/post_register/web/controllers/logs_controller.ex
myobie/post_register
924a832d7fa1693d655c34b0295affa8b3275f26
[ "MIT" ]
null
null
null
defmodule PostRegister.Web.LogsController do use PostRegister.Web, :controller alias PostRegister.Blogs def show(conn, %{"id" => id}) do log = Blogs.find_log(id: id) posts = Blogs.list_posts(log) conn |> assign(:log, log) |> assign(:posts, posts) |> render("show.html") end end
20.8
44
0.647436
031183f735b0a1f143f9a1a29a01513369577d6e
1,767
exs
Elixir
test/lexer/element_test.exs
lpil/jot
d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42
[ "MIT" ]
1
2016-08-20T14:41:55.000Z
2016-08-20T14:41:55.000Z
test/lexer/element_test.exs
lpil/jot
d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42
[ "MIT" ]
26
2016-05-29T00:29:33.000Z
2018-04-12T13:53:50.000Z
test/lexer/element_test.exs
lpil/jot
d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42
[ "MIT" ]
null
null
null
defmodule Jot.Lexer.ElementTest do use ExUnit.Case, async: true alias Jot.Lexer.Element doctest Element defmacro template ~> tokens do quote do assert unquote(tokens) == Element.tokenize!(unquote(template)) end end test "tags" do "h1" ~> [ name: 'h1', ] end test "ids" do ...
16.990385
68
0.381437
03119d575c8e973aab5c278a0c88f45fe1c55c2a
1,064
ex
Elixir
lib/live_view_example/count.ex
RyoWakabayashi/phoenix-liveview-example
1f7020d142a88fb2f68c4e58fd7635133cbaf8bc
[ "MIT" ]
null
null
null
lib/live_view_example/count.ex
RyoWakabayashi/phoenix-liveview-example
1f7020d142a88fb2f68c4e58fd7635133cbaf8bc
[ "MIT" ]
null
null
null
lib/live_view_example/count.ex
RyoWakabayashi/phoenix-liveview-example
1f7020d142a88fb2f68c4e58fd7635133cbaf8bc
[ "MIT" ]
null
null
null
defmodule LiveViewExample.Count do @moduledoc """ カウンターのバックエンド処理を定義する """ use GenServer alias Phoenix.PubSub @name :count_server @start_value 0 # ------- External API (runs in client process) ------- def topic do "count" end def start_link(_opts) do GenServer.start_link(__MODULE__, ...
18.033898
74
0.654135
0311ff86304dfb1bece6e47a4783ce9971247cc5
488
ex
Elixir
Chapter11/todo_web/lib/todo/process_registry.ex
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter11/todo_web/lib/todo/process_registry.ex
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
Chapter11/todo_web/lib/todo/process_registry.ex
benjamindburke/elixir-studies
65231b5af83dcf701041cae2879107c3bd3e5078
[ "Unlicense" ]
null
null
null
# Todo ProcessRegistry [supervisor] # This module supervises and registers all Todo services defmodule Todo.ProcessRegistry do # --------- # Supervisor hook functions # --------- def start_link do Registry.start_link(keys: :unique, name: __MODULE__) end def via_tuple(key) do {:via, Registry, {__MO...
20.333333
56
0.655738
0312008e10b8d71d8458a2165e894032040827ad
120
exs
Elixir
test/varnishex_test.exs
b3k/varnishex
accb623f9a165a5ec6f4a7e4331be3c14972e28d
[ "MIT" ]
null
null
null
test/varnishex_test.exs
b3k/varnishex
accb623f9a165a5ec6f4a7e4331be3c14972e28d
[ "MIT" ]
null
null
null
test/varnishex_test.exs
b3k/varnishex
accb623f9a165a5ec6f4a7e4331be3c14972e28d
[ "MIT" ]
null
null
null
defmodule VarnishexTest do use ExUnit.Case doctest Varnishex test "the truth" do assert 1 + 1 == 2 end end
13.333333
26
0.683333
0312068f2ed05c97aa560bf83e2e1c047edd6b1b
444
ex
Elixir
lib/cayenne/lpp/type/barometric_pressure.ex
janpieper/cayenne_lpp
432003d00553cc05a4faa80dddaa2429e2cf5b6b
[ "MIT" ]
1
2020-08-24T08:14:09.000Z
2020-08-24T08:14:09.000Z
lib/cayenne/lpp/type/barometric_pressure.ex
janpieper/cayenne_lpp
432003d00553cc05a4faa80dddaa2429e2cf5b6b
[ "MIT" ]
null
null
null
lib/cayenne/lpp/type/barometric_pressure.ex
janpieper/cayenne_lpp
432003d00553cc05a4faa80dddaa2429e2cf5b6b
[ "MIT" ]
null
null
null
defmodule Cayenne.LPP.Type.BarometricPressure do @moduledoc """ Cayenne LPP type for barometric pressure ### Example ```elixir alias Cayenne.LPP.{Buffer, Encoder} alias Cayenne.LPP.Type.BarometricPressure buffer = 1017.8 |> DigitalInput.new() |> Encoder.encode() Buffer.to_string(buffer) ...
17.076923
48
0.655405
03121caf5b9e137e3104130b3609cbf608d3a1a4
300
ex
Elixir
lib/parse_utility.ex
vikram7/sec_company_filings_rss_feed_parser
eddedeb0b5c0e4cc278876df5215db551a39ae48
[ "MIT" ]
6
2016-03-04T17:25:16.000Z
2021-11-08T11:20:49.000Z
lib/parse_utility.ex
vikram7/sec_company_filings_rss_feed_parser
eddedeb0b5c0e4cc278876df5215db551a39ae48
[ "MIT" ]
13
2016-03-03T23:28:39.000Z
2018-10-15T14:28:00.000Z
lib/parse_utility.ex
vikram7/sec_company_filings_rss_feed_parser
eddedeb0b5c0e4cc278876df5215db551a39ae48
[ "MIT" ]
2
2017-12-29T16:45:36.000Z
2018-10-14T17:34:47.000Z
defmodule ParseUtility do @moduledoc "a module to hold common helper functions" defmacro __using__(_opts) do quote do def extract_last_item([]), do: nil def extract_last_item([tuple | _]) do {_, _, [last_item | _]} = tuple last_item end end end end
18.75
55
0.626667
03123c429d3e547dd91092c8fa49d1e7a1490b6b
7,471
ex
Elixir
lib/ecto/repo/model.ex
aforward/ecto
74bf4528abf198b25ff261d127fe7cf54a1ff044
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo/model.ex
aforward/ecto
74bf4528abf198b25ff261d127fe7cf54a1ff044
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo/model.ex
aforward/ecto
74bf4528abf198b25ff261d127fe7cf54a1ff044
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Repo.Model do # The module invoked by user defined repos # for model related functionality. @moduledoc false alias Ecto.Query.Planner alias Ecto.Model.Callbacks alias Ecto.Changeset @doc """ Implementation for `Ecto.Repo.insert/2`. """ def insert(repo, adapter, %Changeset{} = change...
33.653153
87
0.654665
031246fc7d48373f02af69744f90f213e1fa2004
1,610
ex
Elixir
lib/weber/session/session_manager.ex
elixir-web/weber
1c8caa43681cc432813dff33b2c6d08ca1d61f29
[ "MIT" ]
124
2015-01-03T16:48:21.000Z
2022-02-02T21:13:11.000Z
lib/weber/session/session_manager.ex
elixir-web/weber
1c8caa43681cc432813dff33b2c6d08ca1d61f29
[ "MIT" ]
2
2015-03-08T05:29:36.000Z
2015-07-19T15:31:19.000Z
lib/weber/session/session_manager.ex
elixir-web/weber
1c8caa43681cc432813dff33b2c6d08ca1d61f29
[ "MIT" ]
12
2015-02-23T02:09:27.000Z
2016-08-07T13:50:38.000Z
defmodule Weber.Session.SessionManager do @moduledoc """ Session manager process. Create new session's process, manages all sessions. """ use GenServer defmodule SessionManager do defstruct config: nil end @doc """ Start session manager. """ def start_link(config) do :gen_server.start...
25.967742
100
0.636025
0312667e72fcdc2e324927e3dde4ca9cd5814c0c
240
exs
Elixir
config/config.exs
iwarshak/ex_queb
3aab53ac21cb9b9292614abadfaeb96c10e1f74b
[ "MIT" ]
1
2020-09-02T19:15:53.000Z
2020-09-02T19:15:53.000Z
config/config.exs
iwarshak/ex_queb
3aab53ac21cb9b9292614abadfaeb96c10e1f74b
[ "MIT" ]
null
null
null
config/config.exs
iwarshak/ex_queb
3aab53ac21cb9b9292614abadfaeb96c10e1f74b
[ "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 # Over ride defaults by adding these into your config.exs file. # config :ex_queb, filter_param: :q
30
63
0.775
0312c70b9d24f30329b79b98fcb7d5d4d1cd4bd1
3,591
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/auth_provider.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/auth_provider.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/auth_provider.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 "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...
59.85
695
0.743247
0312e497482516234ecf025c1bd145930181a769
2,710
ex
Elixir
lib/mix/lib/mix/tasks/app.tree.ex
kevsmith/elixir
74825645e8cac770708f45139e651fd9d4e4264c
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/app.tree.ex
kevsmith/elixir
74825645e8cac770708f45139e651fd9d4e4264c
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/app.tree.ex
kevsmith/elixir
74825645e8cac770708f45139e651fd9d4e4264c
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.App.Tree do use Mix.Task @shortdoc "Prints the application tree" @recursive true @moduledoc """ Prints the application tree. mix app.tree --exclude logger --exclude elixir If no application is given, it uses the current application defined in the `mix.exs` file. ## Command...
29.78022
108
0.62583
0312edac6a3e3956df8a6311bb5903bd71f25e75
860
exs
Elixir
mix.exs
gialib/memcache_ex
69a413d66c535e948b6d6ef63ae5535cb79f94eb
[ "MIT" ]
null
null
null
mix.exs
gialib/memcache_ex
69a413d66c535e948b6d6ef63ae5535cb79f94eb
[ "MIT" ]
null
null
null
mix.exs
gialib/memcache_ex
69a413d66c535e948b6d6ef63ae5535cb79f94eb
[ "MIT" ]
null
null
null
defmodule Memcache.Client.Mixfile do use Mix.Project def project do [app: :memcache_ex, version: "1.2.0", elixir: "~> 1.0", description: description(), package: package(), build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end def applicat...
19.545455
67
0.534884
031304b6dc0e60b3e0180e8e286eeef5740be793
5,243
exs
Elixir
test/credo/code/sigils_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/code/sigils_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/code/sigils_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
defmodule Credo.Code.SigilsTest do use Credo.TestHelper alias Credo.Code.Sigils test "it should return the source without string literals 3" do source = """ x = ~c|a b c| x = ~s"a b c" x = ~r'a b c' x = ~w(a b c) x = ~c[a b c] x = ~s{a b c} x = ~r<a b c> x = ~W|a b c| x =...
22.995614
90
0.504101
03131a3546c2ab717aea47daa6e9c7f29bd49389
6,284
ex
Elixir
lib/simplestatex.ex
Tyler-pierce/simplestatex
1847eaddf3dc6de08672e055235c43e5a4bd492d
[ "MIT" ]
15
2018-01-14T00:19:20.000Z
2021-02-05T00:20:36.000Z
lib/simplestatex.ex
Tyler-pierce/simplestatex
1847eaddf3dc6de08672e055235c43e5a4bd492d
[ "MIT" ]
null
null
null
lib/simplestatex.ex
Tyler-pierce/simplestatex
1847eaddf3dc6de08672e055235c43e5a4bd492d
[ "MIT" ]
null
null
null
defmodule SimpleStatEx do @moduledoc """ SimpleStatEx is a lightweight library that supports logging simple statistics for any elixir project, including the Phoenix Framework. Stats are stored via ecto to your data store or in memory. They are rolled up by category and time window and can be queried convenie...
31.898477
119
0.677276
0313247e0f9f926745060dab14d82cbd35a3336f
712
ex
Elixir
lib/elixir_playground/router.ex
slogsdon/elixir_playground
cabab7a377a814a8741a08fe7b1948b559343050
[ "MIT" ]
3
2015-01-28T06:08:59.000Z
2015-11-05T02:40:18.000Z
lib/elixir_playground/router.ex
slogsdon/elixir_playground
cabab7a377a814a8741a08fe7b1948b559343050
[ "MIT" ]
null
null
null
lib/elixir_playground/router.ex
slogsdon/elixir_playground
cabab7a377a814a8741a08fe7b1948b559343050
[ "MIT" ]
null
null
null
defmodule Router do alias ElixirPlayground.Controllers.Main use Sugar.Router, plugs: [ { Plugs.HotCodeReload, [] }, { Plugs.StaticFiles, url: "/static", path: "priv/static" }, # Uncomment the following line for session store # { Plugs.Session, name: "_sugar_session", adapter: Plugs.Session....
29.666667
87
0.622191
03135371e12b55c3db3e5dbdfdcd48ef0297e4da
4,096
ex
Elixir
lib/mix/tasks/hoplon.fetch.ex
nietaki/hoplon
505808fee0a1e5cbb72d1b3b55df598e707b13ea
[ "Apache-2.0" ]
28
2018-04-15T19:29:18.000Z
2021-07-08T10:24:07.000Z
lib/mix/tasks/hoplon.fetch.ex
nietaki/hoplon
505808fee0a1e5cbb72d1b3b55df598e707b13ea
[ "Apache-2.0" ]
16
2018-04-14T22:27:25.000Z
2019-04-09T22:03:47.000Z
lib/mix/tasks/hoplon.fetch.ex
nietaki/hoplon
505808fee0a1e5cbb72d1b3b55df598e707b13ea
[ "Apache-2.0" ]
1
2018-11-30T08:59:16.000Z
2018-11-30T08:59:16.000Z
defmodule Mix.Tasks.Hoplon.Fetch do use Mix.Task alias Hoplon.CLI.GenericTask alias Hoplon.CLI.Prompt alias Hoplon.Crypto alias Hoplon.CLI.Tools alias Hoplon.CLI.ConfigFile require Hoplon.Data alias Hoplon.Data.Encoder alias Hoplon.Data @behaviour GenericTask @shortdoc "fetch audits from the tr...
30.117647
111
0.696533
031393c22bb2c00902e8eb830307eed1b7bcf80e
2,323
exs
Elixir
config/prod.exs
snyk-omar/changelog.com
66a8cff17ed8a237e439976aa7fb96b58ef276a3
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
config/prod.exs
snyk-omar/changelog.com
66a8cff17ed8a237e439976aa7fb96b58ef276a3
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
config/prod.exs
snyk-omar/changelog.com
66a8cff17ed8a237e439976aa7fb96b58ef276a3
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
use Mix.Config config :changelog, ChangelogWeb.Endpoint, http: [port: System.get_env("HTTP_PORT", "4000")], url: [ scheme: System.get_env("URL_SCHEME", "https"), host: System.get_env("URL_HOST", "changelog.com"), port: System.get_env("URL_PORT", "443") ], static_url: [ scheme: System.get_env("S...
30.168831
77
0.697805
03139d1419e90d3990e0d35218343851a85e0825
1,207
exs
Elixir
test/auth/user_remote/fetcher_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
null
null
null
test/auth/user_remote/fetcher_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
2
2021-09-28T05:37:00.000Z
2022-02-26T10:10:15.000Z
test/auth/user_remote/fetcher_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
null
null
null
defmodule AccentTest.UserRemote.Fetcher do use Accent.RepoCase, async: false import Mock alias Accent.UserRemote.Adapter.User alias Accent.UserRemote.Fetcher defp mock_response(status, body) do %HTTPoison.Response{status_code: status, body: body} end test "google" do response = [request: fn _,...
30.948718
139
0.652858
03139eefb2c517bb4be0055cebe9e27575a7a185
571
exs
Elixir
config/test.exs
edwinthinks/semaphore-demo-elixir-phoenix
16c60f1a37f204156a17628947a7dda552a76ee0
[ "MIT" ]
null
null
null
config/test.exs
edwinthinks/semaphore-demo-elixir-phoenix
16c60f1a37f204156a17628947a7dda552a76ee0
[ "MIT" ]
null
null
null
config/test.exs
edwinthinks/semaphore-demo-elixir-phoenix
16c60f1a37f204156a17628947a7dda552a76ee0
[ "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 :sema, SemaWeb.Endpoint, http: [port: 4002], server: true config :sema, :sql_sandbox, true config :wallaby, driver: Wallaby.Experimental.Chrome # Print only warnings and errors during test ...
22.84
56
0.737303
0313a1d5150cc453b29ad054cfcfc21d8aa30077
4,509
ex
Elixir
apps/ewallet_db/lib/ewallet_db/pre_auth_token.ex
Macavirus/ewallet
ce62177b8bd3f7e72156930d384a1c4c047a3b5b
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/lib/ewallet_db/pre_auth_token.ex
Macavirus/ewallet
ce62177b8bd3f7e72156930d384a1c4c047a3b5b
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/lib/ewallet_db/pre_auth_token.ex
Macavirus/ewallet
ce62177b8bd3f7e72156930d384a1c4c047a3b5b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 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 ...
25.765714
91
0.669106
03141908623533a83c86c91e5cc73d92e2af39ba
5,776
ex
Elixir
lib/sag_appointments/router.ex
pik694/sag-appointments-mas
220ac4d0bd1bb1dfdffec823114ecb40fb5beb93
[ "MIT" ]
null
null
null
lib/sag_appointments/router.ex
pik694/sag-appointments-mas
220ac4d0bd1bb1dfdffec823114ecb40fb5beb93
[ "MIT" ]
null
null
null
lib/sag_appointments/router.ex
pik694/sag-appointments-mas
220ac4d0bd1bb1dfdffec823114ecb40fb5beb93
[ "MIT" ]
null
null
null
defmodule SagAppointments.Router do require Logger use GenServer @cleanup_period 100 @wait_threshold 1000 defstruct query_id: 0, queries: %{} def start_link() do GenServer.start_link(__MODULE__, nil, name: __MODULE__) end def get_available_slots(opts, all \\ false) do if all do GenServ...
28.594059
91
0.651835
031419227869a55bf3d195abf6bc019a0479681f
1,396
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/machine_type_scratch_disks.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/machine_type_scratch_disks.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/machine_type_scratch_disks.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.702128
97
0.735673
031447ea6de61c3a32f1fc4690dd5e5c1079746d
3,628
exs
Elixir
test/pile/extras/enum_x_test.exs
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
test/pile/extras/enum_x_test.exs
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
null
null
null
test/pile/extras/enum_x_test.exs
brownt23/crit19
c45c7b3ae580c193168d83144da0eeb9bc91c8a9
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule EnumXTest do use ExUnit.Case, async: true def equals(n) do fn x -> x == n end end describe "extract" do test "splits into an element and the remainder of the list" do assert {1, [2, 3]} = EnumX.extract([1, 2, 3], equals(1)) assert {2, [1, 3]} = EnumX.extract([1, 2, 3], equals(2))...
26.676471
76
0.504686
031454874b084370fd2277146148afd9cb0ad6a2
1,577
exs
Elixir
projects/api/test/margaret/stories/story_test.exs
strattadb/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
82
2017-11-06T01:00:55.000Z
2020-12-09T10:35:29.000Z
projects/api/test/margaret/stories/story_test.exs
dbstratta/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
98
2017-11-06T22:57:32.000Z
2020-07-03T04:46:39.000Z
projects/api/test/margaret/stories/story_test.exs
strattadb/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
10
2017-11-16T05:31:58.000Z
2020-10-29T18:02:35.000Z
defmodule Margaret.StoryTest do use Margaret.DataCase @valid_attrs %{ content: %{"blocks" => [%{"text" => "test"}]}, audience: :all, published_at: nil, license: :all_rights_reserved } describe "changeset/1" do test "is valid when the attributes are valid" do author = Factory.insert(:...
23.893939
88
0.651237
0314938b91af6e01e42b683d0286f26448ca5b94
8,070
exs
Elixir
test/xgit/tree_test.exs
scouten/xgit
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
94
2019-05-28T05:29:54.000Z
2022-02-18T20:03:20.000Z
test/xgit/tree_test.exs
scouten/xgit
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
156
2019-05-26T03:27:24.000Z
2020-10-08T05:44:26.000Z
test/xgit/tree_test.exs
scouten/redo
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
5
2019-05-28T16:35:55.000Z
2021-06-16T14:25:17.000Z
defmodule Xgit.TreeTest do use ExUnit.Case, async: true alias Xgit.Object alias Xgit.Repository.Storage alias Xgit.Test.OnDiskRepoTestCase alias Xgit.Tree alias Xgit.Tree.Entry import FolderDiff @valid_entry %Entry{ name: 'hello.txt', object_id: "7919e8900c3af541535472aebd56d44222b7b3a3", ...
26.459016
90
0.524907
031495cb8fd400d012a75ae3ac0a997f03396258
7,466
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_operation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_operation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_operation.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...
66.070796
815
0.743236
031523508049c0430ca310e4a76073e3d7929685
1,750
ex
Elixir
lib/small_url_web/controllers/short_link_controller.ex
AlexJuca/small-url
25f4828ac3566a435b15e6b9581e1e1e508d6650
[ "Apache-2.0" ]
7
2021-06-28T14:43:10.000Z
2021-09-21T21:00:30.000Z
lib/small_url_web/controllers/short_link_controller.ex
AlexJuca/small-url
25f4828ac3566a435b15e6b9581e1e1e508d6650
[ "Apache-2.0" ]
2
2021-06-30T21:43:06.000Z
2021-07-01T16:40:10.000Z
lib/small_url_web/controllers/short_link_controller.ex
AlexJuca/small-url
25f4828ac3566a435b15e6b9581e1e1e508d6650
[ "Apache-2.0" ]
null
null
null
defmodule SmallUrlWeb.ShortLinkController do use SmallUrlWeb, :controller alias SmallUrl.Links alias SmallUrl.Links.ShortLinks alias SmallUrl.Repo def redirect_to_original_url(conn, %{"key" => key}) do shortlink = Links.get_short_link_by_key(key) case shortlink do nil -> conn |...
23.026316
83
0.634286
03152f04ab2b159f79ad1b2237d398a1a75d8634
192
ex
Elixir
test/support/mocks.ex
alesshh/acme-bank
0f885dc12614cba4c8f3a46c04b714f3ada8bb9b
[ "MIT" ]
null
null
null
test/support/mocks.ex
alesshh/acme-bank
0f885dc12614cba4c8f3a46c04b714f3ada8bb9b
[ "MIT" ]
null
null
null
test/support/mocks.ex
alesshh/acme-bank
0f885dc12614cba4c8f3a46c04b714f3ada8bb9b
[ "MIT" ]
null
null
null
Mox.defmock(AcmeBank.AccountsMock, for: AcmeBank.AccountsBehaviour) Mox.defmock(AcmeBank.WalletMock, for: AcmeBank.WalletBehaviour) Mox.defmock(AcmeBank.AuthMock, for: AcmeBank.AuthBehaviour)
48
67
0.84375
03154596d8ed542901169f2194a07571a3b92087
1,170
ex
Elixir
apps/web/lib/web/channels/user_socket.ex
joshnuss/ornia
6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead
[ "MIT" ]
1
2020-01-14T23:19:25.000Z
2020-01-14T23:19:25.000Z
apps/web/lib/web/channels/user_socket.ex
joshnuss/ornia
6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead
[ "MIT" ]
null
null
null
apps/web/lib/web/channels/user_socket.ex
joshnuss/ornia
6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead
[ "MIT" ]
null
null
null
defmodule Ornia.Web.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", Ornia.Web.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and aut...
30.789474
83
0.7
0315543aee9a31607e0ce65a2590086c2194e687
666
ex
Elixir
elixir/lib/junks/content/note_tag.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
1
2019-04-29T17:46:44.000Z
2019-04-29T17:46:44.000Z
elixir/lib/junks/content/note_tag.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
elixir/lib/junks/content/note_tag.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
defmodule Junks.Content.NoteTag do use Ecto.Schema import Ecto.Changeset alias Junks.Errors alias Junks.Content.Note alias Junks.Content.Tag schema "note_tags" do belongs_to :note, Note belongs_to :tag, Tag timestamps() end @doc false def cs_create(note_tag, attrs = %{tag_id: _, note_i...
25.615385
76
0.702703
031567c36c3e43ee42952e6eb083b6b984b097e0
1,155
exs
Elixir
test/support/conn_case.exs
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
2
2018-01-19T06:12:16.000Z
2018-03-12T07:17:17.000Z
test/support/conn_case.exs
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
null
null
null
test/support/conn_case.exs
henb/coherence
725247353bad46df464caffa12b9ea2788fe774f
[ "MIT" ]
1
2019-09-11T10:21:21.000Z
2019-09-11T10:21:21.000Z
defmodule TestCoherence.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with ...
24.0625
60
0.71342
03158f19b9bc058fc7d19da61b3cdeffdc5995c5
2,332
ex
Elixir
lib/poison/poison.ex
AnilRedshift/wand-core
c3f591b25f89221cd67ad1ea683c80f375af2360
[ "BSD-3-Clause" ]
1
2018-07-01T05:31:04.000Z
2018-07-01T05:31:04.000Z
lib/poison/poison.ex
AnilRedshift/wand-core
c3f591b25f89221cd67ad1ea683c80f375af2360
[ "BSD-3-Clause" ]
2
2018-06-29T21:38:57.000Z
2018-07-13T09:54:16.000Z
lib/poison/poison.ex
AnilRedshift/wand-core
c3f591b25f89221cd67ad1ea683c80f375af2360
[ "BSD-3-Clause" ]
null
null
null
defmodule WandCore.Poison do @moduledoc false alias WandCore.Poison.Encoder alias WandCore.Poison.Decode alias WandCore.Poison.Parser @doc """ Encode a value to JSON. iex> WandCore.Poison.encode([1, 2, 3]) {:ok, "[1,2,3]"} """ @spec encode(Encoder.t, Keyword.t) :: {:ok, iodata} | {:ok, Str...
26.804598
73
0.596484
031590f87bd0831a0ee427feea71ddd68d173b58
6,571
ex
Elixir
apps/api_web/lib/api_web/api_controller_helpers.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/api_web/lib/api_web/api_controller_helpers.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/api_web/lib/api_web/api_controller_helpers.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule ApiWeb.ApiControllerHelpers do @moduledoc """ Helpers for Api Controllers. Requires an index_data/2 and show_data/2 callback to return data. """ @callback index_data(Plug.Conn.t(), map) :: any @callback show_data(Plug.Conn.t(), map) :: any import Plug.Conn, only: [assign: 3, put_status: 2] ...
27.26556
102
0.673261
0315978b2cf70439bb85b25afc654d81c27421b8
1,129
exs
Elixir
config/config.exs
alice-bot/alice_doge_me
927bc47f7aa5bdf83eeb8db2ca7c44a91b021e1d
[ "MIT" ]
null
null
null
config/config.exs
alice-bot/alice_doge_me
927bc47f7aa5bdf83eeb8db2ca7c44a91b021e1d
[ "MIT" ]
null
null
null
config/config.exs
alice-bot/alice_doge_me
927bc47f7aa5bdf83eeb8db2ca7c44a91b021e1d
[ "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.419355
73
0.753764
03159c883ca9174d4e6cc73b51618d5c7b20ebb7
96
exs
Elixir
test/support/test_struct.exs
mindreframer/exsm
e151c96060b6cec5938c2c3953751aed42fad5bc
[ "Apache-2.0" ]
null
null
null
test/support/test_struct.exs
mindreframer/exsm
e151c96060b6cec5938c2c3953751aed42fad5bc
[ "Apache-2.0" ]
null
null
null
test/support/test_struct.exs
mindreframer/exsm
e151c96060b6cec5938c2c3953751aed42fad5bc
[ "Apache-2.0" ]
null
null
null
defmodule ExsmTest.TestStruct do defstruct [:my_state, :missing_fields, :force_exception] end
24
58
0.8125
0315af9d80fd50030b92640269438fda17697ad9
1,368
ex
Elixir
lib/elixlsx/compiler/db_util.ex
Joeman29/elixlsx
c878142b1b366ae20f99423b189b1415a355bcc2
[ "MIT" ]
null
null
null
lib/elixlsx/compiler/db_util.ex
Joeman29/elixlsx
c878142b1b366ae20f99423b189b1415a355bcc2
[ "MIT" ]
null
null
null
lib/elixlsx/compiler/db_util.ex
Joeman29/elixlsx
c878142b1b366ae20f99423b189b1415a355bcc2
[ "MIT" ]
2
2018-10-10T12:14:19.000Z
2019-04-13T13:13:04.000Z
defmodule Elixlsx.Compiler.DBUtil do @moduledoc ~S""" Generic functions for the Compiler.*DB modules. """ @type object_type :: any @type gen_db_datatype :: %{object_type => non_neg_integer} @type gen_db_type :: {gen_db_datatype, non_neg_integer} @doc ~S""" If the value does not exist in the database, r...
30.4
91
0.654971
0315b611b30926511ed8b51ecb6e7708a6434cc6
1,619
ex
Elixir
lib/mix/phx.bricks.gen.filter.ex
leanpanda-com/phoenix_bricks
170a1e05842a69d5c594636464ed001b4c811cee
[ "MIT" ]
1
2021-04-19T19:10:45.000Z
2021-04-19T19:10:45.000Z
lib/mix/phx.bricks.gen.filter.ex
leanpanda-com/phoenix_bricks
170a1e05842a69d5c594636464ed001b4c811cee
[ "MIT" ]
null
null
null
lib/mix/phx.bricks.gen.filter.ex
leanpanda-com/phoenix_bricks
170a1e05842a69d5c594636464ed001b4c811cee
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phx.Bricks.Gen.Filter do use Mix.Task alias Mix.PhoenixBricks.Schema @shortdoc "Generates params filter logic for a resource" @moduledoc """ Generates a Filter schema around an Ecto schema """ @doc false def run(args) do if Mix.Project.umbrella?() do Mix.raise( ...
26.112903
101
0.675726
0315e7d86f560755a8126f14b67f4960efc15bb3
1,412
ex
Elixir
lib/scenic/primitive/line.ex
zacck/scenic
5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/line.ex
zacck/scenic
5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/line.ex
zacck/scenic
5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 5/6/17. # Copyright © 2017 Kry10 Industries. All rights reserved. # defmodule Scenic.Primitive.Line do @moduledoc false use Scenic.Primitive # import IEx @styles [:hidden, :stroke, :cap] # ============================================================================ # ...
27.153846
80
0.391643
031617b1871cd4a61f45a78b7921b64cafc7509a
160
ex
Elixir
spec/support/fixture/aggregate/counter/command/initialize.ex
Apemb/Casus
2402bee198c4ccbdd3c51d35e6e1d2bdad987636
[ "MIT" ]
3
2020-06-22T13:47:04.000Z
2020-06-23T11:57:41.000Z
spec/support/fixture/aggregate/counter/command/initialize.ex
Apemb/Casus
2402bee198c4ccbdd3c51d35e6e1d2bdad987636
[ "MIT" ]
null
null
null
spec/support/fixture/aggregate/counter/command/initialize.ex
Apemb/Casus
2402bee198c4ccbdd3c51d35e6e1d2bdad987636
[ "MIT" ]
null
null
null
defmodule Fixture.Counter.Command.Initialize do @moduledoc false @enforce_keys [:id, :initial_counter_value] defstruct [:id, :initial_counter_value] end
22.857143
47
0.7875
03163f79ee4a61d304c30975bfd925bc3b2b8cb6
556
ex
Elixir
lib/cog/util/factory_sup.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/cog/util/factory_sup.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/cog/util/factory_sup.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Util.FactorySup do defmacro __using__(opts) do worker_mod = Keyword.fetch!(opts, :worker) worker_args = Keyword.get(opts, :args, []) quote do use Supervisor def start_link() do Supervisor.start_link(__MODULE__, [], name: __MODULE__) end def init(_) do ...
22.24
115
0.661871
03164eea541d04ebc832ebf84493335048306ddc
262
exs
Elixir
config/test.exs
flat235/upman
c480bc102ea20ceb597d261a290e07a1f6fa3e8a
[ "Apache-2.0" ]
4
2018-08-10T20:41:49.000Z
2018-11-29T15:56:05.000Z
config/test.exs
flat235/upman
c480bc102ea20ceb597d261a290e07a1f6fa3e8a
[ "Apache-2.0" ]
6
2018-06-11T16:03:12.000Z
2020-04-06T00:08:15.000Z
config/test.exs
flat235/upman
c480bc102ea20ceb597d261a290e07a1f6fa3e8a
[ "Apache-2.0" ]
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 :upman, UpmanWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn
23.818182
56
0.732824
03165523b9890486a147c16ef85e779309857d62
320
ex
Elixir
lib/podcatcher/repo.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
lib/podcatcher/repo.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
lib/podcatcher/repo.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
defmodule Podcatcher.Repo do use Ecto.Repo, otp_app: :podcatcher use Scrivener, page_size: 15, max_page_size: 15 @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
24.615385
66
0.7125
0316615a5873d07ac69134dd92839bf64cdb361a
594
exs
Elixir
lesson_07/demo/auth_umbrella/mix.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
1
2021-09-22T09:56:35.000Z
2021-09-22T09:56:35.000Z
lesson_07/demo/auth_umbrella/mix.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
7
2020-03-14T19:30:29.000Z
2022-02-27T01:20:40.000Z
lesson_07/demo/auth_umbrella/mix.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
11
2020-02-13T14:52:45.000Z
2020-08-03T12:18:56.000Z
defmodule Auth.Umbrella.MixProject do use Mix.Project def project do [ apps_path: "apps", start_permanent: Mix.env() == :prod, deps: deps() ] end # Dependencies can be Hex packages: # # {:mydep, "~> 0.3.0"} # # Or git/path repositories: # # {:mydep, git: "https://gith...
21.214286
77
0.626263
0316688a0b2055b62f7264b83a6f292cee08a230
723
ex
Elixir
lib/systemstats_web/gettext.ex
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
lib/systemstats_web/gettext.ex
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
lib/systemstats_web/gettext.ex
Dhall777/systemstats
380426af8fc898521201311b11881cc8d2db3388
[ "BSD-3-Clause" ]
null
null
null
defmodule SystemstatsWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import SystemstatsWeb.Gettext # Simple translation gettext("H...
28.92
72
0.683264
031675c05f84fd33bee8a96717af68b1fac386f2
872
ex
Elixir
clients/tpu/lib/google_api/tpu/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/tpu/lib/google_api/tpu/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/tpu/lib/google_api/tpu/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.296296
74
0.755734
031676901f075e983449bdd3a464ee7aef3e5f46
11,910
ex
Elixir
lib/fusion_auth/jwt.ex
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
10
2020-11-13T08:33:22.000Z
2021-08-09T17:37:09.000Z
lib/fusion_auth/jwt.ex
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
11
2021-01-06T21:30:14.000Z
2021-09-08T09:04:51.000Z
lib/fusion_auth/jwt.ex
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
null
null
null
defmodule FusionAuth.JWT do @moduledoc """ The `FusionAuth.JWT` module provides access functions to the [FusionAuth JWT API](https://fusionauth.io/docs/v1/tech/apis/jwt). Most functions require a Tesla Client struct created with `FusionAuth.client(base_url, api_key, tenant_id)`. Those that use JWT Authenticati...
37.570978
530
0.712175
03167c180d059c111bc6f05d04e1453cd834c38d
6,906
ex
Elixir
lib/transmission.ex
begedin/elixir-sparkpost
e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d
[ "Apache-2.0" ]
1
2021-01-08T18:16:23.000Z
2021-01-08T18:16:23.000Z
lib/transmission.ex
begedin/elixir-sparkpost
e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d
[ "Apache-2.0" ]
null
null
null
lib/transmission.ex
begedin/elixir-sparkpost
e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d
[ "Apache-2.0" ]
null
null
null
defmodule SparkPost.Transmission do @moduledoc """ The SparkPost Transmission API endpoint for sending email. Use `SparkPost.Transmission.send/1` to send messages, `SparkPost.Transmission.list/1` to list previous sends and `SparkPost.Transmission.get/1` to retrieve details on a given transmission. Check o...
26.060377
104
0.657399
03167e1b69cd0724864c070ce0e000ef64cf2e71
645
exs
Elixir
deps/elixir_make/mix.exs
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
deps/elixir_make/mix.exs
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
deps/elixir_make/mix.exs
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
defmodule ElixirMake.Mixfile do use Mix.Project def project do [app: :elixir_make, version: "0.4.0", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: "A Make compiler for Mix", package: package(), deps: []] end # Configu...
23.035714
73
0.623256
0316aca6a81a5dbaa6cbfb6743f21296ec573b1f
2,822
exs
Elixir
test/oban/queue/executor_test.exs
moogle19/oban
b63036db6fae389832dae3eb9209d33ce4d5f471
[ "Apache-2.0" ]
null
null
null
test/oban/queue/executor_test.exs
moogle19/oban
b63036db6fae389832dae3eb9209d33ce4d5f471
[ "Apache-2.0" ]
null
null
null
test/oban/queue/executor_test.exs
moogle19/oban
b63036db6fae389832dae3eb9209d33ce4d5f471
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Queue.ExecutorTest do use Oban.Case, async: true import ExUnit.CaptureLog alias Oban.{CrashError, PerformError} alias Oban.Queue.Executor defmodule Worker do use Oban.Worker @impl Worker def perform(%{args: %{"mode" => "ok"}}), do: :ok def perform(%{args: %{"mode" => "result...
32.813953
87
0.607725
0316b962cbae4a6933bca3b3f487fd2b1cef7113
5,325
ex
Elixir
test/support/off_broadway_tortoise_case.ex
tymoor/off_broadway_mqtt
2066a62a400ea40a86fc8fdd1d588d8406bd95be
[ "Apache-2.0" ]
11
2019-07-03T00:54:04.000Z
2021-12-13T22:24:09.000Z
test/support/off_broadway_tortoise_case.ex
tymoor/off_broadway_mqtt
2066a62a400ea40a86fc8fdd1d588d8406bd95be
[ "Apache-2.0" ]
1
2020-10-17T02:25:56.000Z
2020-11-14T01:51:15.000Z
test/support/off_broadway_tortoise_case.ex
tymoor/off_broadway_mqtt
2066a62a400ea40a86fc8fdd1d588d8406bd95be
[ "Apache-2.0" ]
5
2019-08-09T03:14:29.000Z
2022-03-22T21:39:02.000Z
defmodule OffBroadway.MQTTCase do @moduledoc """ Test templace for testing aspects of this library. Provides utility to start all the necessary dependencies. """ use ExUnit.CaseTemplate alias OffBroadway.MQTT.Config alias OffBroadway.MQTT.Queue using _opts do quote do import OffBroadway.MQ...
23.45815
81
0.646197
0316e6d8d90cda9c2965a90c84738dd0e8982e53
242
ex
Elixir
src/elixir/lib/mix/tasks/copy_json.ex
S-Dey/ifsc
2aa24afbcaacdab0ee1d4327496990ccc94b7885
[ "MIT" ]
null
null
null
src/elixir/lib/mix/tasks/copy_json.ex
S-Dey/ifsc
2aa24afbcaacdab0ee1d4327496990ccc94b7885
[ "MIT" ]
4
2020-12-31T09:10:55.000Z
2022-02-26T10:09:48.000Z
src/elixir/lib/mix/tasks/copy_json.ex
S-Dey/ifsc
2aa24afbcaacdab0ee1d4327496990ccc94b7885
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Ifsc.CopyJson do use Mix.Task def run(_) do File.mkdir_p!("priv/ifsc-data") Enum.map( ~w(banknames.json IFSC.json sublet.json), &(File.copy("src/" <> &1, "priv/ifsc-data/" <> &1)) ) end end
18.615385
57
0.590909
0316ecdc1f32f35ff8caaeabe6b22144af0c2718
6,143
exs
Elixir
test/lib/bamboo/postmark_adapter_test.exs
epogue/bamboo_postmark
8f281f2040c03890b026c982432dbf695046f45a
[ "MIT" ]
null
null
null
test/lib/bamboo/postmark_adapter_test.exs
epogue/bamboo_postmark
8f281f2040c03890b026c982432dbf695046f45a
[ "MIT" ]
null
null
null
test/lib/bamboo/postmark_adapter_test.exs
epogue/bamboo_postmark
8f281f2040c03890b026c982432dbf695046f45a
[ "MIT" ]
null
null
null
defmodule Bamboo.PostmarkAdapterTest do use ExUnit.Case alias Bamboo.Email alias Bamboo.PostmarkAdapter alias Bamboo.PostmarkHelper @config %{adapter: PostmarkAdapter, api_key: "123_abc"} @config_with_bad_key %{adapter: PostmarkAdapter, api_key: nil} defmodule FakePostmark do use Plug.Router pl...
28.705607
87
0.64252
03170b448b4e47923886cced0de998579a06b4b3
7,215
ex
Elixir
lib/mix/lib/mix/compilers/elixir.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/compilers/elixir.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/compilers/elixir.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Compilers.Elixir do @moduledoc false @manifest_vsn 1 @doc """ Compiles stale Elixir files. It expects a manifest file, the source directories, the extensions to read in sources, the destination directory, a flag to know if compilation is being forced or not and a callback to be invoked ...
29.81405
94
0.621483
031715767f53ca854e014ed04702b50b213dc70b
424
exs
Elixir
farmbot_ext/test/farmbot_ext/api_fetcher_test.exs
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
farmbot_ext/test/farmbot_ext/api_fetcher_test.exs
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
farmbot_ext/test/farmbot_ext/api_fetcher_test.exs
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
defmodule FarmbotExt.APIFetcherTest do require Helpers use ExUnit.Case, async: false use Mimic setup :verify_on_exit! alias FarmbotExt.APIFetcher test "client" do Helpers.use_fake_jwt() %module{} = APIFetcher.client() assert module == Tesla.Client end test "get_body" do Helpers.use_...
18.434783
54
0.695755
03171b2e3f5778a6d18475884225c4a14ad450be
55
ex
Elixir
apps/rtc/lib/rtc_web/views/layout_view.ex
michaeljguarino/forge
50ee583ecb4aad5dee4ef08fce29a8eaed1a0824
[ "Apache-2.0" ]
59
2021-09-16T19:29:39.000Z
2022-03-31T20:44:24.000Z
apps/rtc/lib/rtc_web/views/layout_view.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
111
2021-08-15T09:56:37.000Z
2022-03-31T23:59:32.000Z
apps/rtc/lib/rtc_web/views/layout_view.ex
svilenkov/plural
ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026
[ "Apache-2.0" ]
4
2021-12-13T09:43:01.000Z
2022-03-29T18:08:44.000Z
defmodule RtcWeb.LayoutView do use RtcWeb, :view end
13.75
30
0.781818
03171b57f4afcd5493cff11e7b4dfe8f0ba9e646
5,740
exs
Elixir
test/dialyxir/project_test.exs
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
1,455
2015-01-03T02:53:19.000Z
2022-03-12T00:31:25.000Z
test/dialyxir/project_test.exs
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
330
2015-05-14T13:53:13.000Z
2022-03-29T17:12:23.000Z
test/dialyxir/project_test.exs
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
146
2015-02-03T18:19:43.000Z
2022-03-07T10:05:20.000Z
defmodule Dialyxir.ProjectTest do alias Dialyxir.Project use ExUnit.Case import ExUnit.CaptureIO, only: [capture_io: 1, capture_io: 2] defp in_project(app, f) when is_atom(app) do Mix.Project.in_project(app, "test/fixtures/#{Atom.to_string(app)}", fn _ -> f.() end) end defp in_project(apps, f) when i...
30.531915
116
0.65662
03173c56b633495b28d81a9576be7c23bfdee0aa
23,034
ex
Elixir
lib/wechat.ex
feng19/elixir_wechat
5ae052476f27abf85da484b902347042c097b150
[ "MIT" ]
null
null
null
lib/wechat.ex
feng19/elixir_wechat
5ae052476f27abf85da484b902347042c097b150
[ "MIT" ]
null
null
null
lib/wechat.ex
feng19/elixir_wechat
5ae052476f27abf85da484b902347042c097b150
[ "MIT" ]
null
null
null
defmodule WeChat do @moduledoc """ The link to WeChat Official Account Platform API document in [Chinese](https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html){:target="_blank"} | [English](https://developers.weixin.qq.com/doc/offiaccount/en/Getting_Started/Overview.html){:target="_blank"}...
32.488011
344
0.659113
031743c54b757284e83130e6477544b2710d4ab6
583
exs
Elixir
test/changelog_web/controllers/news_source_controller_test.exs
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
1
2021-03-14T21:12:49.000Z
2021-03-14T21:12:49.000Z
test/changelog_web/controllers/news_source_controller_test.exs
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
null
null
null
test/changelog_web/controllers/news_source_controller_test.exs
PsOverflow/changelog.com
53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f
[ "MIT" ]
1
2018-10-03T20:55:52.000Z
2018-10-03T20:55:52.000Z
defmodule ChangelogWeb.NewsSourceControllerTest do use ChangelogWeb.ConnCase test "getting the index", %{conn: conn} do s1 = insert(:news_source) s2 = insert(:news_source) insert(:news_item, source: s1) conn = get(conn, news_source_path(conn, :index)) assert conn.status == 200 assert conn.r...
29.15
59
0.684391
031759363f092d4aefadf4814a00f12411af7ca8
5,845
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/policy.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/policy.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/policy.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...
57.871287
853
0.728657
03176fdf41160b4e2f8b71aad09fd1a8a7dbc2c4
522
ex
Elixir
lib/mipha/markdown/auto_linker.ex
ZPVIP/mipha
a7df054f72eec7de88b60d94c501488375bdff6a
[ "MIT" ]
156
2018-06-01T19:52:32.000Z
2022-02-03T10:58:10.000Z
lib/mipha/markdown/auto_linker.ex
ZPVIP/mipha
a7df054f72eec7de88b60d94c501488375bdff6a
[ "MIT" ]
139
2018-07-10T01:57:23.000Z
2021-08-02T21:29:24.000Z
lib/mipha/markdown/auto_linker.ex
ZPVIP/mipha
a7df054f72eec7de88b60d94c501488375bdff6a
[ "MIT" ]
29
2018-07-17T08:43:45.000Z
2021-12-14T13:45:30.000Z
defmodule Mipha.Markdown.AutoLinker do @moduledoc """ AutoLinker will run on a string and return the string with any naked links wrapped in an `a` tag with the link as both content and href.. """ # A RegEx to match any URL that has spaces or newlines on either side of it. @url_regex ~r{([ \n]+|^)(http|ftp|...
34.8
110
0.565134
031778a3cd32fa0d804d330507daa61fe8bfbd35
3,107
exs
Elixir
spec/ecto/infinite_date_range_spec.exs
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
1
2021-12-03T06:52:35.000Z
2021-12-03T06:52:35.000Z
spec/ecto/infinite_date_range_spec.exs
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
null
null
null
spec/ecto/infinite_date_range_spec.exs
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
null
null
null
defmodule InfiniteTimes.Ecto.InfiniteDateRangeSpec do use ESpec alias InfiniteTimes.InfDate alias InfiniteTimes.Ecto.InfiniteDateRange describe "cast/1" do context "when provided with %InfiniteDateRange{}" do it "casts sucessfully" do range = InfiniteTimes.InfiniteDateRange.new(InfDate.new(~D...
27.990991
109
0.535565
0317a5d6e1dd761a552606b7ec962b5b22675941
21,631
ex
Elixir
lib/sanbase/prices/price.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase/prices/price.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase/prices/price.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Price do use Ecto.Schema use AsyncWith import Sanbase.Price.SqlQuery import Sanbase.Utils.Transform, only: [ maybe_unwrap_ok_value: 1, maybe_apply_function: 2, wrap_ok: 1 ] import Sanbase.Metric.Transform, only: [ maybe_nullify_values: 1, remove_m...
32.625943
137
0.633628
0317bd76d2a7e37d86187882c806d7129099f5ee
1,136
ex
Elixir
deps/absinthe/lib/absinthe/type/custom/decimal.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
3
2017-06-22T16:33:58.000Z
2021-07-07T15:21:09.000Z
lib/absinthe/type/custom/decimal.ex
bruce/absinthe
19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91
[ "MIT" ]
null
null
null
lib/absinthe/type/custom/decimal.ex
bruce/absinthe
19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Decimal) do defmodule Absinthe.Type.Custom.Decimal do @moduledoc false defdelegate serialize(value), to: Decimal, as: :to_string @spec parse(any) :: {:ok, Decimal.t} | :error @spec parse(Absinthe.Blueprint.Input.Null.t) :: {:ok, nil} def parse(%Absinthe.Blueprint.Input.St...
24.170213
65
0.626761
03181695c7a493ceb8e82545a77ad4d5d4cf20a7
129
exs
Elixir
apps/feedback/config/dev.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/feedback/config/dev.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/feedback/config/dev.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
use Mix.Config config :feedback, exaws_config_fn: &Feedback.MockAws.config/1, exaws_perform_fn: &Feedback.MockAws.perform/2
21.5
47
0.790698
031822b177418d3ba574c797a8b7671b7a9d423f
1,088
exs
Elixir
exercises/collatz-conjecture/test/collatz_conjecture_test.exs
DuoPan/elixir
e96388f242c383c1f45935570ed2f42394171fc6
[ "MIT" ]
null
null
null
exercises/collatz-conjecture/test/collatz_conjecture_test.exs
DuoPan/elixir
e96388f242c383c1f45935570ed2f42394171fc6
[ "MIT" ]
null
null
null
exercises/collatz-conjecture/test/collatz_conjecture_test.exs
DuoPan/elixir
e96388f242c383c1f45935570ed2f42394171fc6
[ "MIT" ]
1
2021-03-15T11:02:40.000Z
2021-03-15T11:02:40.000Z
defmodule CollatzConjectureTest do use ExUnit.Case test "zero steps for one" do assert CollatzConjecture.calc(1) == 0 end # @tag :pending test "zero is an error" do assert_raise FunctionClauseError, fn -> CollatzConjecture.calc(0) end end # @tag :pending test "divide if even" do assert Co...
22.666667
79
0.690257
0318315e881288a04c653b16e6ae2801f987e8f3
1,818
exs
Elixir
apps/mcts/test/mcts/zipper_test.exs
rjdellecese/connect-four
b3ab59cffde8bed83382881a2cae567b0e383cc8
[ "MIT" ]
3
2020-05-03T04:35:05.000Z
2020-09-06T19:19:47.000Z
apps/mcts/test/mcts/zipper_test.exs
rjdellecese/connect-four
b3ab59cffde8bed83382881a2cae567b0e383cc8
[ "MIT" ]
6
2019-09-02T13:36:55.000Z
2021-11-19T10:13:38.000Z
apps/mcts/test/mcts/zipper_test.exs
rjdellecese/connect_four_umbrella
b3ab59cffde8bed83382881a2cae567b0e383cc8
[ "MIT" ]
null
null
null
defmodule MCTS.ZipperTest do use ExUnit.Case, async: true doctest MCTS.Zipper alias MCTS.{Node, Zipper} setup do #################### # Structure of tree: # 1 # / \ # 2 3 # / /|\ # 4 5 6 7 #################### %{ tree: %Node{ payload: 1, ...
24.24
96
0.511001
03183da0b42b151434f08041ea6e01a9b9ef46af
2,233
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/machine_types_scoped_list_warning.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 ...
41.351852
194
0.729512
03186a6ee1a6ffb4c906d13adeaf0d6d5829a963
820
ex
Elixir
test/support/conn_case.ex
leolorenzoluis/poll
c1009e0796904414a94ef2e7509f7682d2910abf
[ "Apache-2.0" ]
1
2016-08-05T23:37:29.000Z
2016-08-05T23:37:29.000Z
test/support/conn_case.ex
leolorenzoluis/poll
c1009e0796904414a94ef2e7509f7682d2910abf
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
leolorenzoluis/poll
c1009e0796904414a94ef2e7509f7682d2910abf
[ "Apache-2.0" ]
null
null
null
defmodule Poll.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the datab...
24.117647
56
0.717073
03186b94deb751c0d2833e46ee48f9fc0ebd43b5
2,004
exs
Elixir
apps/re/test/listings/history/server_test.exs
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re/test/listings/history/server_test.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
null
null
null
apps/re/test/listings/history/server_test.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule Re.Listings.History.ServerTest do use Re.ModelCase import Re.Factory alias Re.{ Listing, Listings.History.Server, Listings.PriceHistory, Listings.StatusHistory, Repo } describe "handle_info/2" do test "save price when it's updated" do listing = insert(:listing) ...
21.782609
74
0.530439
03187c6a5d4a4e0125a1186705d968b2e3af40f4
12,919
ex
Elixir
lib/ex_admin/index.ex
devonestes/ex_admin
e135ae7c28de78fc87baf519ff8a32da12e8bf66
[ "MIT" ]
null
null
null
lib/ex_admin/index.ex
devonestes/ex_admin
e135ae7c28de78fc87baf519ff8a32da12e8bf66
[ "MIT" ]
1
2019-03-02T09:07:47.000Z
2019-03-02T09:07:47.000Z
lib/ex_admin/index.ex
devonestes/ex_admin
e135ae7c28de78fc87baf519ff8a32da12e8bf66
[ "MIT" ]
1
2018-12-20T15:01:39.000Z
2018-12-20T15:01:39.000Z
defmodule ExAdmin.Index do @moduledoc """ Override the default index page for an ExAdmin resource By default, ExAdmin renders the index table without any additional configuration. It renders each column in the model, except the id, inserted_at, and updated_at columns. ## Default Table Type ExAdmin disp...
27.428875
101
0.598344
0318be4ac1f65182328ecddc0bf1816fd1294dd8
1,710
ex
Elixir
clients/content/lib/google_api/content/v21/model/orders_update_merchant_order_id_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v21/model/orders_update_merchant_order_id_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v21/model/orders_update_merchant_order_id_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.2
144
0.737427
0318ca657885c1108087ffe21887dc3b6fe94a6f
55
ex
Elixir
web/views/page_view.ex
CCL77/trackme
af3e2dbfb3cbf92e96c0bdc8f2f6a19595d92140
[ "MIT" ]
3
2017-06-14T15:27:29.000Z
2017-09-13T12:54:30.000Z
web/views/page_view.ex
joshnuss/xuber
a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff
[ "MIT" ]
null
null
null
web/views/page_view.ex
joshnuss/xuber
a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff
[ "MIT" ]
2
2019-07-22T04:04:38.000Z
2020-08-15T14:50:18.000Z
defmodule XUber.PageView do use XUber.Web, :view end
13.75
27
0.763636
0318e06f7a75ed253d9c81b06afd31b64c436443
1,190
exs
Elixir
mix.exs
kim-company/ueberauth_linkedin
eb74855a8bf4c42945b37248dba27918ff150fb8
[ "MIT" ]
null
null
null
mix.exs
kim-company/ueberauth_linkedin
eb74855a8bf4c42945b37248dba27918ff150fb8
[ "MIT" ]
null
null
null
mix.exs
kim-company/ueberauth_linkedin
eb74855a8bf4c42945b37248dba27918ff150fb8
[ "MIT" ]
null
null
null
defmodule UeberauthLinkedin.Mixfile do use Mix.Project @url "https://github.com/fajarmf/ueberauth_linkedin" def project do [app: :ueberauth_linkedin, version: "0.4.0", name: "Ueberauth LinkedIn Strategy", elixir: "~> 1.2", package: package(), source_url: @url, homepage_url: @ur...
22.037037
55
0.603361
03191cafef86fe3cbd8312de5f0869f137b049ba
2,760
ex
Elixir
lib/elixir/lib/map.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/map.ex
nurugger07/elixir
c859e49199bb24190656e6d3acb6cf35fe70e8bb
[ "Apache-2.0" ]
null
null
null
defmodule Map do @moduledoc """ A `Dict` implementation that works on maps. Maps are key-value stores where keys are compared using the match operator (`===`). Maps can be created with the `%{}` special form defined in the `Kernel.SpecialForms` module. For more information about the functions in this mo...
24
93
0.602536
0319299adb3823253ec6f8c509bb7d4945ae9eef
191
exs
Elixir
test/controllers/page_controller_test.exs
evadne/supervised-scaler
30fa3275a3f9c16c79457ec2205e7bc129658713
[ "MIT" ]
44
2016-09-22T21:37:48.000Z
2021-10-09T03:43:32.000Z
test/controllers/page_controller_test.exs
evadne/supervised-scaler
30fa3275a3f9c16c79457ec2205e7bc129658713
[ "MIT" ]
3
2016-09-23T08:41:22.000Z
2017-05-24T10:58:54.000Z
test/controllers/page_controller_test.exs
evadne/supervised-scaler
30fa3275a3f9c16c79457ec2205e7bc129658713
[ "MIT" ]
5
2016-09-25T18:52:00.000Z
2021-07-28T21:12:33.000Z
defmodule Scaler.PageControllerTest do use Scaler.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.222222
60
0.670157
03192da7b687248c0e3a73aa8f6b9afeed76fdaf
2,245
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/shielded_instance_identity.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/shielded_instance_identity.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/shielded_instance_identity.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.358491
196
0.752339
0319365a20ee08a51c9f31f82e7fc864ba38396f
3,779
exs
Elixir
apps/ehealth/test/web/controllers/email_controller_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/ehealth/test/web/controllers/email_controller_test.exs
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/ehealth/test/web/controllers/email_controller_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule EHealth.Web.EmailsControllerTest do @moduledoc false use EHealth.Web.ConnCase import Mox # For Mox lib. Make sure mocks are verified when the test exits setup :verify_on_exit! @man_id Ecto.UUID.generate() @valid_params %{ subject: "some subject", from: "from@example.com", to: "t...
29.294574
117
0.496692
0319457ca2bceee2e4f4481cbae121dc13fa6420
1,389
ex
Elixir
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/raw_indices.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/raw_indices.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/raw_indices.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...
30.195652
115
0.75306
03194a0612e2562209eedf0b2f621c4082fd44fb
3,502
ex
Elixir
apps/omg/test/support/prop_test/black_box_me.ex
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "Apache-2.0" ]
null
null
null
apps/omg/test/support/prop_test/black_box_me.ex
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "Apache-2.0" ]
null
null
null
apps/omg/test/support/prop_test/black_box_me.ex
kendricktan/elixir-omg
834c103fd5c4b9e063c1d32b9b4e5728abb64009
[ "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...
31.267857
182
0.654769
03196a81b163910b6da5188735c7d4e7ccaad655
1,755
exs
Elixir
test/lib/dwolla/utils_test.exs
ark7-inc/dwolla-elixir
a3ee9c149fbf5cd5d38dc2e854278ab321a94bf5
[ "MIT" ]
6
2018-07-23T07:43:56.000Z
2021-07-09T01:24:21.000Z
test/lib/dwolla/utils_test.exs
axlepayments/exdwolla
e54fec29458616757338d9bda8f2ad81dd6db225
[ "MIT" ]
1
2019-11-05T05:31:35.000Z
2019-11-06T21:26:38.000Z
test/lib/dwolla/utils_test.exs
axlepayments/exdwolla
e54fec29458616757338d9bda8f2ad81dd6db225
[ "MIT" ]
7
2019-02-12T07:48:09.000Z
2021-11-08T15:58:06.000Z
defmodule Dwolla.UtilsTest do use ExUnit.Case alias Dwolla.Utils describe "dwolla_utils" do test "handle_resp/2 handles parsing error" do payload = "<h1>Some XML payload</h1>" resp = success_resp(200, {:invalid, payload}) assert {:error, body} = Utils.handle_resp(resp, :any) assert...
22.792208
64
0.475783
03196cb2e757f7822722709fd5c11c6972b5a88b
556
ex
Elixir
lib/ast_ndjson/lib/comment.ex
Ajwah/ex-gherkin
401ee551312b72aa059c7f4621f014b111049acf
[ "Apache-2.0" ]
8
2020-07-27T09:11:24.000Z
2020-09-21T20:57:45.000Z
lib/ast_ndjson/lib/comment.ex
Ajwah/ex-gherkin
401ee551312b72aa059c7f4621f014b111049acf
[ "Apache-2.0" ]
1
2021-05-14T13:30:27.000Z
2021-05-14T13:30:27.000Z
lib/ast_ndjson/lib/comment.ex
Ajwah/ex-gherkin
401ee551312b72aa059c7f4621f014b111049acf
[ "Apache-2.0" ]
null
null
null
defmodule ExGherkin.AstNdjson.Comment do @moduledoc """ Based on: https://github.com/cucumber/cucumber/blob/f15a9ec416a54da806f9f6aad9c393b9a753cbf0/gherkin/ruby/lib/gherkin/ast_builder.rb#L27-L31 location text """ @derive Jason.Encoder alias ExGherkin.AstNdjson.Location defstruct location: Loca...
24.173913
142
0.679856
0319c615a8a826e3a3877f96b7571c97840e25e3
377
exs
Elixir
test/absinthe/integration/execution/custom_types/basic_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/custom_types/basic_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/custom_types/basic_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
1
2018-11-16T02:34:40.000Z
2018-11-16T02:34:40.000Z
defmodule Elixir.Absinthe.Integration.Execution.CustomTypes.BasicTest do use ExUnit.Case, async: true @query """ query { customTypesQuery { datetime } } """ test "scenario #1" do assert {:ok, %{data: %{"customTypesQuery" => %{"datetime" => "2017-01-27T20:31:55Z"}}}} == Absinthe.run(@q...
25.133333
94
0.644562
0319eac5c886a487c4dba9f485e4c6d2848d64c9
5,114
ex
Elixir
lib/sanbase_web/graphql/resolvers/social_data_resolver.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
lib/sanbase_web/graphql/resolvers/social_data_resolver.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
lib/sanbase_web/graphql/resolvers/social_data_resolver.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule SanbaseWeb.Graphql.Resolvers.SocialDataResolver do import SanbaseWeb.Graphql.Helpers.Async, only: [async: 1] import Absinthe.Resolution.Helpers, except: [async: 1] alias SanbaseWeb.Graphql.Helpers.Utils alias Sanbase.{SocialData, TechIndicators} alias SanbaseWeb.Graphql.SanbaseDataloader @conte...
30.440476
98
0.653891
031a1d3eb80c2f29d274324085586731ad3accb0
879
ex
Elixir
lib/glimesh/events.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
1
2020-08-02T00:12:28.000Z
2020-08-02T00:12:28.000Z
lib/glimesh/events.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
lib/glimesh/events.ex
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
defmodule Glimesh.Events do @moduledoc """ The Glimesh Events module is responsible for triaging events out to whoever needs to know about them. """ @doc """ Broadcast's some data to the application and api """ def broadcast(topic, event_type, data) do broadcast(topic, nil, event_type, data) end ...
23.131579
103
0.651877
031a234b042ec6e6a6bfe00388994aeda9ba6c22
459
exs
Elixir
priv/test_repo/migrations/20210205230349_migrate_resources2.exs
regularfellow/ash_postgres
cc4f07abde97e7ac3141cbbb0ed7d351164fa55f
[ "MIT" ]
null
null
null
priv/test_repo/migrations/20210205230349_migrate_resources2.exs
regularfellow/ash_postgres
cc4f07abde97e7ac3141cbbb0ed7d351164fa55f
[ "MIT" ]
null
null
null
priv/test_repo/migrations/20210205230349_migrate_resources2.exs
regularfellow/ash_postgres
cc4f07abde97e7ac3141cbbb0ed7d351164fa55f
[ "MIT" ]
null
null
null
defmodule AshPostgres.TestRepo.Migrations.MigrateResources2 do @moduledoc """ Updates resources based on their most recent snapshots. This file was autogenerated with `mix ash_postgres.generate_migrations` """ use Ecto.Migration def up do create table(:integer_posts, primary_key: false) do add ...
22.95
73
0.718954
031a2400bf623864bc2d1e354871e98c583ec3ff
3,522
ex
Elixir
kousa/lib/kousa/room_chat.ex
MatyiFKBT/dogehouse
7be582d61eaa3512756c1247e449493be3c16c0b
[ "MIT" ]
1
2021-03-15T19:14:33.000Z
2021-03-15T19:14:33.000Z
kousa/lib/kousa/room_chat.ex
MatyiFKBT/dogehouse
7be582d61eaa3512756c1247e449493be3c16c0b
[ "MIT" ]
1
2021-03-15T19:08:15.000Z
2021-03-15T19:08:15.000Z
kousa/lib/kousa/room_chat.ex
MatyiFKBT/dogehouse
7be582d61eaa3512756c1247e449493be3c16c0b
[ "MIT" ]
null
null
null
defmodule Kousa.RoomChat do alias Kousa.Utils.RegUtils alias Beef.Rooms @message_character_limit 512 @spec send_msg(String.t(), list(map), list(String.t())) :: any def send_msg(user_id, tokens, whispered_to) do tokens = validate_tokens(tokens) # NB: length(list) is O(N) so use a match for stuff lik...
26.088889
98
0.569847
031a400155f8ee31c19d0cbd2fcc8eae630322eb
755
exs
Elixir
config/test.exs
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
null
null
null
config/test.exs
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
2
2020-12-22T12:30:58.000Z
2021-05-19T10:07:26.000Z
config/test.exs
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
null
null
null
use Mix.Config # Only in tests, remove the complexity from the password hashing algorithm config :bcrypt_elixir, :log_rounds, 1 # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. c...
29.038462
74
0.749669