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
91ced7a21cae72f1fb46341290f4729d1e5c6a7c
986
ex
Elixir
test/support/channel_case.ex
nihonjinrxs/VolunteerBase
e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4
[ "MIT" ]
null
null
null
test/support/channel_case.ex
nihonjinrxs/VolunteerBase
e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4
[ "MIT" ]
1
2016-06-24T03:43:06.000Z
2016-06-24T03:43:06.000Z
test/support/channel_case.ex
nihonjinrxs/VolunteerBase
e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4
[ "MIT" ]
null
null
null
defmodule Volunteerbase.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cann...
23.47619
72
0.707911
91cee4bb64bd7dd7bd84bec2a17677bc8ea5212e
1,375
ex
Elixir
apps/omg_watcher_rpc/lib/web/views/fee.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher_rpc/lib/web/views/fee.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher_rpc/lib/web/views/fee.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network 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...
31.976744
77
0.714909
91cef64c33430a807b674676f2d1389cad6ae571
2,211
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/monitor_stream_info.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/monitor_stream_info.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/monitor_stream_info.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...
46.0625
595
0.769787
91cf2af0e144fbd27d0f9520659ec7db0a6bfc9d
5,892
ex
Elixir
lib/clickhousex/codec/row_binary_old.ex
IvanIvanoff/clickhousex
2529ddc5c4a45ed4af3a9f07d4306ec9c03335df
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/codec/row_binary_old.ex
IvanIvanoff/clickhousex
2529ddc5c4a45ed4af3a9f07d4306ec9c03335df
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/codec/row_binary_old.ex
IvanIvanoff/clickhousex
2529ddc5c4a45ed4af3a9f07d4306ec9c03335df
[ "Apache-2.0" ]
null
null
null
defmodule Clickhousex.Codec.RowBinary.Old do @moduledoc false alias Clickhousex.{Codec, Codec.Binary} require Record Record.defrecord(:state, column_count: 0, column_names: [], column_types: [], rows: [], count: 0) @behaviour Codec @impl Codec def response_format do "RowBinaryWithNamesAndTypes" ...
25.955947
99
0.610149
91cf365b29ba8b0dea9bcff1f270bed9f4b7f342
3,039
ex
Elixir
lib/simulator/simulator.ex
stippireddy/twitter-simulator
9471fa6ac1fd9f64a40c911197003393bc0356eb
[ "MIT" ]
null
null
null
lib/simulator/simulator.ex
stippireddy/twitter-simulator
9471fa6ac1fd9f64a40c911197003393bc0356eb
[ "MIT" ]
null
null
null
lib/simulator/simulator.ex
stippireddy/twitter-simulator
9471fa6ac1fd9f64a40c911197003393bc0356eb
[ "MIT" ]
null
null
null
defmodule Simulator do @n_clients 10000 @zipf_coeff 1.5 use GenServer def start_link() do IO.puts "simulator starting" IO.puts "loading tweets and hashtags" {:ok, tweetcorpus} = File.read "data/tweets.txt" {:ok, hashtag_corpus} = File.read "data/hashtags.txt" tweets = String....
25.754237
88
0.544587
91cf44cc193e4798e9214a5ce4ad453ca8edd3f8
1,183
ex
Elixir
test/support/channel_case.ex
gratraw/home_appliances_store
36b5274294ef3e0124740c2f992695860884976d
[ "MIT" ]
null
null
null
test/support/channel_case.ex
gratraw/home_appliances_store
36b5274294ef3e0124740c2f992695860884976d
[ "MIT" ]
null
null
null
test/support/channel_case.ex
gratraw/home_appliances_store
36b5274294ef3e0124740c2f992695860884976d
[ "MIT" ]
null
null
null
defmodule HomeAppliancesStoreWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case...
28.853659
81
0.743872
91cf5205774d7f475d8f21f98bbddc879c7e89d6
1,510
ex
Elixir
server/lib/prepply_web/endpoint.ex
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
2
2021-03-04T15:21:14.000Z
2021-03-21T13:43:07.000Z
server/lib/prepply_web/endpoint.ex
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
server/lib/prepply_web/endpoint.ex
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
defmodule PrepplyWeb.Endpoint do use Phoenix.Endpoint, otp_app: :prepply # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_prepply_k...
28.490566
97
0.71457
91cf6389f605344e73c48e8acd7e437fb2fbb8c1
1,190
ex
Elixir
backend/lib/aptamer/jobs/job.ex
ui-icts/aptamer-web
a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06
[ "MIT" ]
null
null
null
backend/lib/aptamer/jobs/job.ex
ui-icts/aptamer-web
a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06
[ "MIT" ]
7
2019-02-08T18:28:49.000Z
2022-02-12T06:44:59.000Z
backend/lib/aptamer/jobs/job.ex
ui-icts/aptamer-web
a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06
[ "MIT" ]
null
null
null
defmodule Aptamer.Jobs.Job do use Ecto.Schema use Aptamer.BinaryIdColums import Ecto.Changeset alias Aptamer.Repo alias Aptamer.Jobs.{File, Job} @primary_key {:id, :binary_id, autogenerate: false} schema "jobs" do field(:status, :string) field(:output, :string) belongs_to(:file, Aptamer.Jobs...
27.045455
92
0.687395
91cfa65906395a1d377a6f2034e8e572f0e8903a
5,262
ex
Elixir
lib/magpie_web/controllers/custom_record_controller.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2018-05-19T12:08:10.000Z
2018-05-19T12:08:10.000Z
lib/magpie_web/controllers/custom_record_controller.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
59
2018-05-16T00:53:06.000Z
2019-04-19T12:16:49.000Z
lib/magpie_web/controllers/custom_record_controller.ex
babe-project/BABE
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2019-07-28T19:17:43.000Z
2019-07-28T19:17:43.000Z
defmodule Magpie.CustomRecordController do @moduledoc false use MagpieWeb, :controller alias Magpie.CustomRecords alias Magpie.CustomRecords.CustomRecord def index(conn, _params) do custom_records = Repo.all(CustomRecord |> order_by(asc: :id)) render(conn, "index.html", custom_records: custom_record...
30.416185
108
0.606233
91cfbb2b9e8e2abebd88ceb4296894fe5e448d62
3,933
ex
Elixir
lib/grizzly/zwave/command_classes/barrier_operator.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/zwave/command_classes/barrier_operator.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/zwave/command_classes/barrier_operator.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.CommandClasses.BarrierOperator do @moduledoc """ "BarrierOperator" Command Class The Barrier Operator Command Class is used to control and query the status of motorized barriers. """ @behaviour Grizzly.ZWave.CommandClass alias Grizzly.ZWave.DecodeError use Bitwise @type targ...
36.082569
99
0.692093
91cfce418072630f24ba608f8398c6df38ca2b4d
2,258
exs
Elixir
test/github_pr_test.exs
gfleury/bors-ng
02ca714283a5c5a2592c8b5ce5409e3db00ac954
[ "Apache-2.0" ]
1,223
2017-01-11T19:25:08.000Z
2022-03-21T12:31:28.000Z
test/github_pr_test.exs
seanpm2001/bors-ng
2482df1c2f4680b33534620571f04075b6b4390a
[ "Apache-2.0" ]
1,428
2017-01-09T16:36:18.000Z
2022-03-28T14:19:40.000Z
test/github_pr_test.exs
seanpm2001/bors-ng
2482df1c2f4680b33534620571f04075b6b4390a
[ "Apache-2.0" ]
184
2017-01-10T18:08:06.000Z
2022-03-14T18:53:24.000Z
defmodule BorsNG.GitHub.GitHubPrTest do use BorsNG.ConnCase setup do pr_standard = %{ "number" => 1, "title" => "T", "body" => "B", "state" => "open", "base" => %{"ref" => "OTHER_BRANCH", "repo" => %{"id" => 456}}, "head" => %{ "sha" => "B", "ref" => "BAR_BRA...
26.564706
98
0.423826
91cfe22eb43a58055a6503a153885a154401b9d1
73,448
ex
Elixir
lib/phoenix_live_view.ex
mcrumm/phoenix_live_view
ff2313f42444c27e7652ebc5e4ee94ffa619bf85
[ "MIT" ]
1
2020-07-26T12:20:43.000Z
2020-07-26T12:20:43.000Z
lib/phoenix_live_view.ex
mcrumm/phoenix_live_view
ff2313f42444c27e7652ebc5e4ee94ffa619bf85
[ "MIT" ]
null
null
null
lib/phoenix_live_view.ex
mcrumm/phoenix_live_view
ff2313f42444c27e7652ebc5e4ee94ffa619bf85
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView do @moduledoc ~S''' LiveView provides rich, real-time user experiences with server-rendered HTML. LiveView programming model is declarative: instead of saying "once event X happens, change Y on the page", events in LiveView are regular messages which may cause changes to its st...
39.488172
111
0.695363
91cfea7e4b86806ac099511a409b14cd41e6bd3e
620
ex
Elixir
lib/zen_ex/core/entities/user.ex
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
null
null
null
lib/zen_ex/core/entities/user.ex
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
null
null
null
lib/zen_ex/core/entities/user.ex
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
null
null
null
defmodule ZenEx.Entity.User do @derive Jason.Encoder defstruct [ :id, :url, :name, :external_id, :alias, :created_at, :updated_at, :active, :verified, :shared, :shared_agent, :locale, :locale_id, :time_zone, :last_login_at, :email, :phone, :sig...
15.5
43
0.591935
91d041996dd1eaf14267091a950414cdfc705b74
971
ex
Elixir
lib/plug_secex/header_transform.ex
szTheory/plug_secex
103d2fa5315a2dc3f9229ca4636edc4863f9e067
[ "Apache-2.0" ]
23
2016-07-17T02:03:04.000Z
2021-06-07T13:04:23.000Z
lib/plug_secex/header_transform.ex
szTheory/plug_secex
103d2fa5315a2dc3f9229ca4636edc4863f9e067
[ "Apache-2.0" ]
3
2018-09-17T05:28:46.000Z
2020-11-06T01:37:15.000Z
lib/plug_secex/header_transform.ex
szTheory/plug_secex
103d2fa5315a2dc3f9229ca4636edc4863f9e067
[ "Apache-2.0" ]
2
2019-10-29T18:25:56.000Z
2020-11-06T01:34:52.000Z
defmodule PlugSecex.HeaderTransform do @moduledoc """ Module to operate on the %Plug.Conn{} struct This module can perform set and delete operation  """ import Plug.Conn, only: [delete_resp_header: 2, update_resp_header: 4] @doc """ Set given list of key-value pairs in response header """ def set...
24.275
72
0.666323
91d05a37374207af188e87e9983d95029e9460e9
2,014
ex
Elixir
lib/rethinkdb/response.ex
point/rethinkdb-elixir
0549902e5060e75b0942716befc16db984a14b76
[ "MIT" ]
530
2015-05-12T21:06:49.000Z
2021-07-29T01:06:43.000Z
lib/rethinkdb/response.ex
point/rethinkdb-elixir
0549902e5060e75b0942716befc16db984a14b76
[ "MIT" ]
122
2015-05-12T03:12:50.000Z
2019-11-11T11:21:10.000Z
lib/rethinkdb/response.ex
point/rethinkdb-elixir
0549902e5060e75b0942716befc16db984a14b76
[ "MIT" ]
79
2015-05-14T17:14:52.000Z
2022-02-14T07:00:00.000Z
defmodule RethinkDB.Record do @moduledoc false defstruct data: "", profile: nil end defmodule RethinkDB.Collection do @moduledoc false defstruct data: [], profile: nil defimpl Enumerable, for: __MODULE__ do def reduce(%{data: data}, acc, fun) do Enumerable.reduce(data, acc, fun) end def c...
31.968254
96
0.610228
91d0788959e9e00b743caffb9e6670f72cba61e0
4,160
ex
Elixir
lib/json_momoa/encoder.ex
amorphid/json_momoa
ab31268fd29b9d3b175972346f797f83461cabf6
[ "Apache-2.0" ]
null
null
null
lib/json_momoa/encoder.ex
amorphid/json_momoa
ab31268fd29b9d3b175972346f797f83461cabf6
[ "Apache-2.0" ]
null
null
null
lib/json_momoa/encoder.ex
amorphid/json_momoa
ab31268fd29b9d3b175972346f797f83461cabf6
[ "Apache-2.0" ]
null
null
null
defprotocol JSONMomoa.Encoder do @moduledoc false @type data() :: any() @type encoded :: String.t() @spec to_json(data()) :: encoded() def to_json(data) end alias JSONMomoa.Encoder defimpl Encoder, for: Atom do ####### # API # ####### def to_json(true) do "true" end def to_json(false) ...
19.439252
81
0.549519
91d0ae068e77c268cbd72be9897e38cddf49693b
1,616
ex
Elixir
other/storing-structured-data/using-records-in-functions.ex
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
1
2016-12-25T09:53:53.000Z
2016-12-25T09:53:53.000Z
other/storing-structured-data/using-records-in-functions.ex
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
other/storing-structured-data/using-records-in-functions.ex
MaraniMatias/elixir-hola-mundo
325a6ba623378521ec6f79bd4627a0eb7c6cd1fa
[ "MIT" ]
null
null
null
defmodule RecordDrop do require Planemo require Tower def fall_velocity(t = Tower.tower()) do fall_velocity(Tower.tower(t, :planemo), Tower.tower(t, :height)) end def fall_velocity(:earth, distance) when distance >= 0 do :math.sqrt(2 * 9.8 * distance) end def fall_velocity(:moon, distance) when...
25.650794
87
0.676361
91d0d635eca526e70f16938827569262133ee7c1
5,322
ex
Elixir
lib/currying.ex
Qqwy/elixir_currying
f673e2d24728ebe449a3f8752a2617f0d56dc7b7
[ "MIT" ]
29
2016-07-09T21:22:22.000Z
2019-05-07T18:19:26.000Z
lib/currying.ex
Qqwy/elixir-currying
f673e2d24728ebe449a3f8752a2617f0d56dc7b7
[ "MIT" ]
26
2019-08-30T05:26:02.000Z
2022-03-24T07:14:22.000Z
lib/currying.ex
Qqwy/elixir-currying
f673e2d24728ebe449a3f8752a2617f0d56dc7b7
[ "MIT" ]
2
2017-06-22T05:21:17.000Z
2018-10-01T09:08:14.000Z
defmodule Currying do @moduledoc """ The Currying module allows you to partially apply (or 'curry') functions. To use this functionality elsewhere, call `use Currying` from within your code. If you want to use the shorthand curry operator `~>` for convenience, call `use Currying, operator: true`. (If you do ...
37.478873
135
0.668921
91d0ef4e0ab17dd6c7606cb37c1fe47d189ba2ce
797
exs
Elixir
apps/day12/mix.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
2
2019-12-21T21:21:04.000Z
2019-12-27T07:00:19.000Z
apps/day12/mix.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
apps/day12/mix.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
defmodule Day12.MixProject do use Mix.Project def project do [ app: :day12, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9-dev", start_permanent: Mix.env()...
22.771429
88
0.555834
91d117c8a202e3011e5374b902b65e03f0cc5239
438
ex
Elixir
lib/workflows/error.ex
fracek/workflows
6ef7ad3e280127f544f00fd098901bb6526a80cb
[ "Apache-2.0" ]
94
2021-04-02T15:20:15.000Z
2022-03-21T10:46:09.000Z
lib/workflows/error.ex
fracek/workflows
6ef7ad3e280127f544f00fd098901bb6526a80cb
[ "Apache-2.0" ]
null
null
null
lib/workflows/error.ex
fracek/workflows
6ef7ad3e280127f544f00fd098901bb6526a80cb
[ "Apache-2.0" ]
6
2021-04-02T23:29:46.000Z
2021-12-24T10:55:44.000Z
defmodule Workflows.Error do @moduledoc """ Represent an execution error. Errors have a name and a human-readable cause. """ @type t :: %__MODULE__{ name: String.t(), cause: String.t() } defstruct [:name, :cause] @doc """ Create a new error. """ @spec create(String.t(), ...
18.25
78
0.568493
91d11ca4fd809a784130748f95615a26dadf698a
1,144
ex
Elixir
lib/bracketeer_web/controllers/match_controller.ex
caromo/bracketeer
93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0
[ "MIT" ]
1
2019-06-20T20:29:10.000Z
2019-06-20T20:29:10.000Z
lib/bracketeer_web/controllers/match_controller.ex
caromo/bracketeer
93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0
[ "MIT" ]
3
2020-07-16T23:11:31.000Z
2021-05-08T14:44:21.000Z
lib/bracketeer_web/controllers/match_controller.ex
caromo/bracketeer
93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0
[ "MIT" ]
null
null
null
defmodule BracketeerWeb.MatchController do use BracketeerWeb, :controller alias Bracketeer.Rooms alias Bracketeer.Rooms.Match action_fallback BracketeerWeb.FallbackController def index(conn, _params) do matches = Rooms.list_matches() render(conn, "index.json", matches: matches) end def create(...
26
78
0.645105
91d135747ade04bc7c448548609d39e301e96b51
245
ex
Elixir
lib/geo/line_stringz.ex
aseigo/geo
327d6df8e16cb68a3ad295707e5215d5a2153ae2
[ "MIT" ]
null
null
null
lib/geo/line_stringz.ex
aseigo/geo
327d6df8e16cb68a3ad295707e5215d5a2153ae2
[ "MIT" ]
null
null
null
lib/geo/line_stringz.ex
aseigo/geo
327d6df8e16cb68a3ad295707e5215d5a2153ae2
[ "MIT" ]
null
null
null
defmodule Geo.LineStringZ do @moduledoc """ Defines the LineStringZ struct. """ @type t :: %__MODULE__{coordinates: [{number, number, number}], srid: integer, properties: map} defstruct coordinates: [], srid: nil, properties: %{} end
27.222222
97
0.689796
91d13c1593e37d585079f81adae74d2a0a1ab2ee
3,333
ex
Elixir
lib/chat_api/widget_settings.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
1
2021-06-17T03:17:24.000Z
2021-06-17T03:17:24.000Z
lib/chat_api/widget_settings.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
1
2021-01-17T10:42:34.000Z
2021-01-17T10:42:34.000Z
lib/chat_api/widget_settings.ex
Tiamat-Tech/papercups
f17d2b0ce080c0edab92a4b2e6d4afcef04aa291
[ "MIT" ]
null
null
null
defmodule ChatApi.WidgetSettings do @moduledoc """ The WidgetSettings context. """ import Ecto.Query, warn: false alias ChatApi.Repo alias ChatApi.WidgetSettings.WidgetSetting @spec list_widget_settings() :: [WidgetSetting.t()] @doc """ Returns the list of widget_settings. ## Examples iex...
25.06015
93
0.663066
91d141eb67e07b9cce8284d26ebcde501632a6dd
362
ex
Elixir
apps/chatter_web/lib/chatter_web/live/user_live/show.ex
barboza/chatter
16a56aea83eceb0fd1a709f3bc8d3a24812996cd
[ "MIT" ]
2
2019-08-29T19:35:01.000Z
2019-08-31T04:08:03.000Z
apps/chatter_web/lib/chatter_web/live/user_live/show.ex
barboza/chatter
16a56aea83eceb0fd1a709f3bc8d3a24812996cd
[ "MIT" ]
1
2021-03-09T16:10:46.000Z
2021-03-09T16:10:46.000Z
apps/chatter_web/lib/chatter_web/live/user_live/show.ex
barboza/chatter
16a56aea83eceb0fd1a709f3bc8d3a24812996cd
[ "MIT" ]
null
null
null
defmodule ChatterWeb.UserLive.Show do @moduledoc """ Renders user profile """ use Phoenix.LiveView alias Chatter.Accounts def mount(%{path_params: %{"id" => id}}, socket) do user = Accounts.get_user!(id) {:ok, assign(socket, :user, user)} end def render(assigns), do: Phoenix.View.render(Chatt...
22.625
89
0.68232
91d1d1b9f0cf81a94a919bc21d7ae173a9ffe28f
1,424
ex
Elixir
lib/confex_cached.ex
gpedic/confex_cached
263e5f014a728323de85aba05de3910550699052
[ "MIT" ]
null
null
null
lib/confex_cached.ex
gpedic/confex_cached
263e5f014a728323de85aba05de3910550699052
[ "MIT" ]
null
null
null
lib/confex_cached.ex
gpedic/confex_cached
263e5f014a728323de85aba05de3910550699052
[ "MIT" ]
null
null
null
defmodule ConfexCached do @moduledoc """ Documentation for ConfexCached. """ use Application import Supervisor.Spec @default_cache ConfexCached.Cache.GenServer @cache Application.get_env(:confex_cached, :cache) || @default_cache def start(_type, _args) do children = [ worker(@cache, []) ...
27.384615
102
0.596208
91d2144c4c4490abba99b81758e9eb09700d617f
515
ex
Elixir
lib/movement/operation.ex
charlesdemers/accent
eeea52feb30d16ada5023c05fef37c08c267eff0
[ "BSD-3-Clause" ]
null
null
null
lib/movement/operation.ex
charlesdemers/accent
eeea52feb30d16ada5023c05fef37c08c267eff0
[ "BSD-3-Clause" ]
null
null
null
lib/movement/operation.ex
charlesdemers/accent
eeea52feb30d16ada5023c05fef37c08c267eff0
[ "BSD-3-Clause" ]
null
null
null
defmodule Movement.Operation do defstruct action: nil, key: nil, text: nil, file_comment: nil, file_index: 0, value_type: nil, batch: false, translation_id: nil, rollbacked_operation_id: nil, batch_operation_id...
25.75
41
0.518447
91d22e8f808ce95b3bb942090e04b1eb04387835
693
exs
Elixir
mix.exs
hacksu/elixir-basics
37e791d3f6a6af2ee328aadb1cb31c7f67492363
[ "MIT" ]
null
null
null
mix.exs
hacksu/elixir-basics
37e791d3f6a6af2ee328aadb1cb31c7f67492363
[ "MIT" ]
null
null
null
mix.exs
hacksu/elixir-basics
37e791d3f6a6af2ee328aadb1cb31c7f67492363
[ "MIT" ]
null
null
null
defmodule ListServer.Mixfile do use Mix.Project def project do [app: :list_server, version: "0.0.1", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.app" f...
21
77
0.607504
91d26160e6dddaae4b7d8a8bade220bb292b4f63
2,070
ex
Elixir
clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_cancel_subscription_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_cancel_subscription_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_cancel_subscription_request.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.315789
272
0.762802
91d285d3e6179c14bdb377ff8ee92f9a35ba9c83
371
exs
Elixir
priv/repo/seeds.exs
Amirhat/test-elixir-boilerplate
2429a061d0b7b51ac838d15ffc629a667ed9e941
[ "BSD-3-Clause" ]
854
2019-03-18T19:13:58.000Z
2022-03-30T01:47:30.000Z
priv/repo/seeds.exs
Amirhat/test-elixir-boilerplate
2429a061d0b7b51ac838d15ffc629a667ed9e941
[ "BSD-3-Clause" ]
167
2019-03-18T21:23:28.000Z
2022-03-31T19:07:34.000Z
priv/repo/seeds.exs
Amirhat/test-elixir-boilerplate
2429a061d0b7b51ac838d15ffc629a667ed9e941
[ "BSD-3-Clause" ]
63
2019-03-28T14:19:11.000Z
2022-02-15T17:22:14.000Z
# 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: # # ElixirBoilerplate.Repo.insert!(%ElixirBoilerplate.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and...
30.916667
69
0.722372
91d2892aaf7edba4e1e5cf179c56eb763003c0ec
10,343
ex
Elixir
lib/faker/name/pt_br.ex
theabrad/faker
7bf54d15f127a2fb845335967b5b601e67960ef0
[ "MIT" ]
1
2019-02-11T20:46:52.000Z
2019-02-11T20:46:52.000Z
lib/faker/name/pt_br.ex
echenim/faker
15172b7d9c2b7711173a5faf3e45bfc4e45d6a97
[ "MIT" ]
57
2018-12-24T10:39:32.000Z
2020-12-28T10:13:00.000Z
lib/faker/name/pt_br.ex
echenim/faker
15172b7d9c2b7711173a5faf3e45bfc4e45d6a97
[ "MIT" ]
1
2019-02-03T17:04:21.000Z
2019-02-03T17:04:21.000Z
defmodule Faker.Name.PtBr do import Faker, only: [sampler: 2] @moduledoc """ Functions for name data in Brazilian Portuguese """ @doc """ Returns a complete name (may include a suffix/prefix or both) ## Examples iex> Faker.Name.PtBr.name() "Sra. Kaique Mendes Neto" iex> Faker.Name.Pt...
15.98609
76
0.480422
91d2a34448e01e707c2177f8b54bf533f5e24e89
1,151
exs
Elixir
config/config.exs
Mic-U/family_name_championship
8d6fd4c9e758da52c3bff93e1e43fe518d71a44c
[ "MIT" ]
null
null
null
config/config.exs
Mic-U/family_name_championship
8d6fd4c9e758da52c3bff93e1e43fe518d71a44c
[ "MIT" ]
null
null
null
config/config.exs
Mic-U/family_name_championship
8d6fd4c9e758da52c3bff93e1e43fe518d71a44c
[ "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...
37.129032
73
0.758471
91d2a934776d8759d64ffd42295603d980877ccc
4,227
ex
Elixir
lib/bitcoin/protocol/messages/block.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
2
2019-08-12T04:53:57.000Z
2019-09-03T03:47:33.000Z
lib/bitcoin/protocol/messages/block.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
null
null
null
lib/bitcoin/protocol/messages/block.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
null
null
null
defmodule Bitcoin.Protocol.Messages.Block do @moduledoc """ The block message is sent in response to a getdata message which requests transaction information from a block hash. The SHA256 hash that identifies each block (and which must have a run of 0 bits) is calculated from the first 6 fields of this s...
41.851485
129
0.659333
91d2c4939d70036809aae8a6930de7ace52d5f58
1,929
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitoring_destination.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitoring_destination.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitoring_destination.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# 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...
37.823529
163
0.759461
91d2c6673aed0437ff3cdcc0729f7c09869f515c
300
exs
Elixir
priv/repo/migrations/20180220004731_create_guesses.exs
teaearlgraycold/HippoGuesser
f47fb0636c841ce9b579c07e423c980b17cb9965
[ "MIT" ]
null
null
null
priv/repo/migrations/20180220004731_create_guesses.exs
teaearlgraycold/HippoGuesser
f47fb0636c841ce9b579c07e423c980b17cb9965
[ "MIT" ]
null
null
null
priv/repo/migrations/20180220004731_create_guesses.exs
teaearlgraycold/HippoGuesser
f47fb0636c841ce9b579c07e423c980b17cb9965
[ "MIT" ]
null
null
null
defmodule Mtpo.Repo.Migrations.CreateGuesses do use Ecto.Migration def change do create table(:guesses) do add :round_id, references(:rounds), null: false add :user_id, references(:users), null: false add :value, :string, null: false timestamps() end end end
20
53
0.67
91d2d46b0380227f54005b21210834a2304007dd
485
ex
Elixir
lib/dutu_web/views/error_view.ex
charl3sj/dutu
dbc56c863f5874137175ba4ede34f3ff69a004a6
[ "MIT" ]
null
null
null
lib/dutu_web/views/error_view.ex
charl3sj/dutu
dbc56c863f5874137175ba4ede34f3ff69a004a6
[ "MIT" ]
null
null
null
lib/dutu_web/views/error_view.ex
charl3sj/dutu
dbc56c863f5874137175ba4ede34f3ff69a004a6
[ "MIT" ]
null
null
null
defmodule DutuWeb.ErrorView do use DutuWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template name. For ...
28.529412
61
0.731959
91d2ee9dbd06326247c3cd13570826b69c9ed83d
1,617
ex
Elixir
lib/dnsierge_web/endpoint.ex
jcamenisch/dnsierge
cfc1654ce0b2c34c8952845aa0df6113ff3bb406
[ "MIT" ]
null
null
null
lib/dnsierge_web/endpoint.ex
jcamenisch/dnsierge
cfc1654ce0b2c34c8952845aa0df6113ff3bb406
[ "MIT" ]
null
null
null
lib/dnsierge_web/endpoint.ex
jcamenisch/dnsierge
cfc1654ce0b2c34c8952845aa0df6113ff3bb406
[ "MIT" ]
null
null
null
defmodule DnsiergeWeb.Endpoint do use Phoenix.Endpoint, otp_app: :dnsierge # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_dnsierg...
29.4
97
0.719852
91d3314266a29687426b3fb784207a16b52c9eee
1,251
exs
Elixir
elixir-to-java/elixir_api_server/mix.exs
poad/grpc-example
d1b775f6d2e89279cd29191d5d4dbec265bf0bf0
[ "Apache-2.0" ]
null
null
null
elixir-to-java/elixir_api_server/mix.exs
poad/grpc-example
d1b775f6d2e89279cd29191d5d4dbec265bf0bf0
[ "Apache-2.0" ]
64
2021-08-30T23:54:04.000Z
2022-03-14T21:06:11.000Z
elixir-to-java/elixir_api_server/mix.exs
poad/grpc-example
d1b775f6d2e89279cd29191d5d4dbec265bf0bf0
[ "Apache-2.0" ]
null
null
null
defmodule ElixirApiServer.MixProject do use Mix.Project def project do [ app: :elixir_api_server, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, deps:...
26.0625
63
0.585132
91d33742c4eeac3cef70205e2b78f44656266c2b
6,130
ex
Elixir
lib/elixir_ex_aliyun_ots_table_store_list_stream_request.ex
hou8/tablestore_protos
1a3223326b92bbe196d57ce4dd19b5a8db1c728d
[ "MIT" ]
null
null
null
lib/elixir_ex_aliyun_ots_table_store_list_stream_request.ex
hou8/tablestore_protos
1a3223326b92bbe196d57ce4dd19b5a8db1c728d
[ "MIT" ]
1
2022-02-08T06:37:02.000Z
2022-02-08T06:37:02.000Z
lib/elixir_ex_aliyun_ots_table_store_list_stream_request.ex
hou8/tablestore_protos
1a3223326b92bbe196d57ce4dd19b5a8db1c728d
[ "MIT" ]
2
2022-01-24T06:13:03.000Z
2022-01-24T08:33:41.000Z
# credo:disable-for-this-file defmodule(ExAliyunOts.TableStore.ListStreamRequest) do @moduledoc false ( defstruct(table_name: nil) ( ( @spec encode(struct) :: {:ok, iodata} | {:error, any} def(encode(msg)) do try do {:ok, encode!(msg)} rescue ...
25.756303
94
0.480914
91d37a5dfa952ebe36b25fe898520e31e8eb2fa9
1,393
ex
Elixir
lib/demo_web/endpoint.ex
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
lib/demo_web/endpoint.ex
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
lib/demo_web/endpoint.ex
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
defmodule DemoWeb.Endpoint do use Phoenix.Endpoint, otp_app: :demo @session_options [ store: :cookie, key: "_demo_key", signing_salt: "3YGvy8FF" ] socket "/live", Phoenix.LiveView.Socket, websocket: [connect_info: [session: @session_options]] socket "/socket", DemoWeb.UserSocket, websoc...
26.788462
69
0.707107
91d37ac2d138053f3ca32fc7517fb051ad5e069f
1,345
exs
Elixir
mix.exs
jnylen/geo_postgis
ac21d16c64233abef8ebb19d096f6d196d67381e
[ "MIT" ]
null
null
null
mix.exs
jnylen/geo_postgis
ac21d16c64233abef8ebb19d096f6d196d67381e
[ "MIT" ]
null
null
null
mix.exs
jnylen/geo_postgis
ac21d16c64233abef8ebb19d096f6d196d67381e
[ "MIT" ]
null
null
null
defmodule GeoPostgis.Mixfile do use Mix.Project @source_url "https://github.com/bryanjos/geo_postgis" @version "3.4.0" def project do [ app: :geo_postgis, version: @version, elixir: "~> 1.10", start_permanent: Mix.env() == :prod, name: "GeoPostGIS", deps: deps(), ...
22.79661
62
0.545725
91d38ee40f623f2dd61fe25f282f57924408c433
1,924
ex
Elixir
lib/brando_admin/components/form/input/dynamic_block.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
lib/brando_admin/components/form/input/dynamic_block.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
lib/brando_admin/components/form/input/dynamic_block.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule BrandoAdmin.Components.Form.Input.Blocks.DynamicBlock do use Surface.Component use Phoenix.HTML alias BrandoAdmin.Components.Form.Input.Blocks prop block, :any prop base_form, :any prop index, :any prop block_count, :integer prop is_ref?, :boolean, default: false prop ref_name, :string pr...
24.666667
92
0.623181
91d3cd4e04e2e9ab9d3e45419811cf721d0b2b3e
512
exs
Elixir
config/test.exs
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
config/test.exs
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "MIT" ]
null
null
null
config/test.exs
warpas/document_generator
1d9238b4e934461a36cc5f275ae173b47962074b
[ "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 :document_generator, DocumentGeneratorWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config...
26.947368
58
0.759766
91d3dd6f2471e3187689db2df8e52e1909c56f0e
349
ex
Elixir
lib/supabase_surface/components/icons/icon_credit_card.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
5
2021-06-08T08:02:43.000Z
2022-02-09T23:13:46.000Z
lib/supabase_surface/components/icons/icon_credit_card.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
lib/supabase_surface/components/icons/icon_credit_card.ex
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
1
2021-07-14T05:20:31.000Z
2021-07-14T05:20:31.000Z
defmodule SupabaseSurface.Components.Icons.IconCreditCard do use SupabaseSurface.Components.Icon @impl true def render(assigns) do icon_size = IconContainer.get_size(assigns.size) ~F""" <IconContainer assigns={assigns}> {Feathericons.credit_card(width: icon_size, height: icon_size)} </Icon...
23.266667
69
0.724928
91d3fb9579ccdc3b6b5e5c88ac11081c7b26ecd8
67
exs
Elixir
apps/theta/test/test_helper.exs
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
apps/theta/test/test_helper.exs
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
11
2020-07-21T09:34:54.000Z
2021-08-29T07:38:02.000Z
apps/theta_web/test/test_helper.exs
LangPham/thetaproject
c6479d1b761ff58fe6ae5f82e2d9de87a8658883
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Theta.Repo, :manual)
22.333333
51
0.776119
91d40d6f4be748440eb6093a5f780122f8ce29f2
1,587
exs
Elixir
test/slack/bot/message_tracker_test.exs
zvkemp/elixir-bot-server
0db6b6ce57ddccaac980bf659eb2d540a077de38
[ "MIT" ]
8
2016-03-15T17:15:26.000Z
2021-12-11T11:21:53.000Z
test/slack/bot/message_tracker_test.exs
zvkemp/elixir-bot-server
0db6b6ce57ddccaac980bf659eb2d540a077de38
[ "MIT" ]
1
2017-10-15T20:13:15.000Z
2017-10-15T20:13:15.000Z
test/slack/bot/message_tracker_test.exs
zvkemp/elixir-bot-server
0db6b6ce57ddccaac980bf659eb2d540a077de38
[ "MIT" ]
null
null
null
defmodule Slack.Bot.MessageTrackerTest do use ExUnit.Case alias Slack.{TestHelpers, TestMessageForwarder, Bot} setup do bot = TestHelpers.new_bot_name() ping_frequency = 100 {:ok, server} = Bot.MessageTracker.start_link(bot, ping_frequency) TestMessageForwarder.start_as(bot, Bot) {:ok, %{bot_...
35.266667
90
0.643352
91d46f34ba65ddc782453f97baeacd5fbe7623a3
1,090
ex
Elixir
lib/magirator_app_channel/application.ex
Devotu/magirator_app_channel
75810edaef8f781981366702556da85460c07073
[ "MIT" ]
null
null
null
lib/magirator_app_channel/application.ex
Devotu/magirator_app_channel
75810edaef8f781981366702556da85460c07073
[ "MIT" ]
null
null
null
lib/magirator_app_channel/application.ex
Devotu/magirator_app_channel
75810edaef8f781981366702556da85460c07073
[ "MIT" ]
null
null
null
defmodule MagiratorAppChannel.Application do use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the endpoint...
35.16129
97
0.737615
91d479324b546c909b05137e741176130c22b75b
7,193
exs
Elixir
apps/gitgud/test/gitgud/ssh_server_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
449
2018-03-06T01:05:55.000Z
2022-03-23T21:03:56.000Z
apps/gitgud/test/gitgud/ssh_server_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
69
2018-03-06T09:26:41.000Z
2022-03-21T22:43:09.000Z
apps/gitgud/test/gitgud/ssh_server_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
41
2018-03-06T01:06:07.000Z
2021-11-21T17:55:04.000Z
defmodule GitGud.SSHServerTest do use GitGud.DataCase use GitGud.DataFactory alias GitRekt.Git alias GitRekt.GitRepo alias GitRekt.GitAgent alias GitGud.User alias GitGud.Repo alias GitGud.RepoStorage alias GitGud.SSHKey setup :create_user test "authenticates with valid credentials", %{user: u...
50.300699
239
0.654803
91d48c45f8881cf5003a3bb16283e24459f410f2
567
ex
Elixir
lib/api_banking_web/views/changeset_view.ex
juniornelson123/api_banking_teste
db263511d78fffe9e4081551817d006df2094316
[ "MIT" ]
null
null
null
lib/api_banking_web/views/changeset_view.ex
juniornelson123/api_banking_teste
db263511d78fffe9e4081551817d006df2094316
[ "MIT" ]
null
null
null
lib/api_banking_web/views/changeset_view.ex
juniornelson123/api_banking_teste
db263511d78fffe9e4081551817d006df2094316
[ "MIT" ]
null
null
null
defmodule ApiBankingWeb.ChangesetView do use ApiBankingWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `ApiBankingWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(chan...
28.35
66
0.742504
91d4957ee0e160a142b7ce2fc848e97967a36cfb
1,692
ex
Elixir
apps/quickstart_web/lib/quickstart_web/router.ex
jdcumpson/elixir-phoenix-ssr-redux-postgres
20ecf8bac1322be273ed6441bb586b8574998286
[ "MIT" ]
1
2020-11-04T04:32:56.000Z
2020-11-04T04:32:56.000Z
apps/quickstart_web/lib/quickstart_web/router.ex
jdcumpson/elixir-phoenix-ssr-redux-postgres
20ecf8bac1322be273ed6441bb586b8574998286
[ "MIT" ]
4
2021-10-06T22:46:17.000Z
2022-02-27T12:04:59.000Z
apps/quickstart_web/lib/quickstart_web/router.ex
jdcumpson/elixir-phoenix-ssr-redux-postgres
20ecf8bac1322be273ed6441bb586b8574998286
[ "MIT" ]
null
null
null
defmodule QuickstartWeb.Router do use QuickstartWeb, :router pipeline :browser do plug(:accepts, ["html"]) plug(:fetch_session) plug(:fetch_flash) # plug(:protect_from_forgery) plug(:put_secure_browser_headers) end pipeline :api do plug(:accepts, ["json"]) end # Enables LiveDashbo...
26.857143
78
0.689125
91d4b6efe4fbbaad2885cf8cd2fc295de8088929
3,873
ex
Elixir
lib/relay/publisher.ex
aclemmensen/relay
4bce71ed7d8bd4936f96d62ed08d007729c4253d
[ "BSD-3-Clause" ]
5
2018-10-12T13:13:19.000Z
2020-10-03T17:51:37.000Z
lib/relay/publisher.ex
aclemmensen/relay
4bce71ed7d8bd4936f96d62ed08d007729c4253d
[ "BSD-3-Clause" ]
207
2018-02-09T14:24:14.000Z
2020-07-25T11:09:19.000Z
lib/relay/publisher.ex
aclemmensen/relay
4bce71ed7d8bd4936f96d62ed08d007729c4253d
[ "BSD-3-Clause" ]
1
2019-08-08T11:30:59.000Z
2019-08-08T11:30:59.000Z
defmodule Relay.Publisher do @moduledoc """ A GenServer that maintains Envoy resources state and publishes it to any process that subscribes. """ use GenServer alias Envoy.Api.V2.{Cluster, ClusterLoadAssignment, Listener, RouteConfiguration} # We need both an attribute (so that the list can be used at ...
34.891892
93
0.678286
91d4faf0ab4107fff6e1664b0e3a2e85583ad332
1,045
ex
Elixir
apps/temporario/lib/temporario/pastes.ex
achedeuzot/temporar.io
acbec140732614070996924633f254b56e56131f
[ "MIT" ]
2
2019-04-16T18:46:36.000Z
2020-09-18T12:58:57.000Z
apps/temporario/lib/temporario/pastes.ex
achedeuzot/temporar.io
acbec140732614070996924633f254b56e56131f
[ "MIT" ]
6
2019-01-06T11:13:39.000Z
2022-02-10T15:15:24.000Z
apps/temporario/lib/temporario/pastes.ex
achedeuzot/temporar.io
acbec140732614070996924633f254b56e56131f
[ "MIT" ]
null
null
null
defmodule Temporario.Pastes do @moduledoc """ The Pastes context. It manages `Paste`s. """ alias Temporario.{Paste, PasteStorage} @doc """ Gets a single paste. Raises `Ecto.NoResultsError` if the Paste does not exist. ## Examples iex> get_paste!(123) %Paste{} iex> get_paste!(45...
17.416667
60
0.600957
91d5348f9cdb7a1aaa798f19efe0adccc86b14ad
425
ex
Elixir
lib/battle_city_ui_web/plugs/set_name.ex
clszzyh/battle_city_ui
1fe115f3eee3be226b669cda961632a6fd6675b9
[ "MIT" ]
null
null
null
lib/battle_city_ui_web/plugs/set_name.ex
clszzyh/battle_city_ui
1fe115f3eee3be226b669cda961632a6fd6675b9
[ "MIT" ]
115
2020-12-30T11:40:17.000Z
2022-03-31T02:05:53.000Z
lib/battle_city_ui_web/plugs/set_name.ex
clszzyh/battle_city_ui
1fe115f3eee3be226b669cda961632a6fd6675b9
[ "MIT" ]
null
null
null
defmodule BattleCityUiWeb.SetName do @moduledoc false import Plug.Conn alias BattleCityUi.Utils def init(options), do: options def call(conn, _) do conn = if get_session(conn, :username) do conn else conn |> put_session(:username, Utils.username()) end if get_sess...
17.708333
56
0.625882
91d568bef125c0fd6792a1ca41fbabcdb2319af7
7,152
ex
Elixir
lib/nostrum/util.ex
skwerlman/nostrum
4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f
[ "MIT" ]
null
null
null
lib/nostrum/util.ex
skwerlman/nostrum
4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f
[ "MIT" ]
null
null
null
lib/nostrum/util.ex
skwerlman/nostrum
4a6642df9fbfd9a9247e565ab3f4d8d1e6f6ed4f
[ "MIT" ]
null
null
null
defmodule Nostrum.Util do @moduledoc """ Utility functions """ alias Nostrum.{Api, Constants, Snowflake} require Logger @doc """ Helper for defining all the methods used for struct and encoding transformations. ## Example ``` Elixir Nostrum.Util.nostrum_struct(%{ author: User, mentions: ...
26.786517
99
0.622343
91d57eb0ba362e54c66e9e7c9f068c6979b4c8d8
92
exs
Elixir
test/zcash_explorer_web/views/page_view_test.exs
buoy49/zcash-explorer
3774ef15a46ef13379d5a808f7cea198b76c589a
[ "Apache-2.0" ]
5
2021-11-04T20:19:35.000Z
2022-02-15T06:55:49.000Z
test/zcash_explorer_web/views/page_view_test.exs
buoy49/zcash-explorer
3774ef15a46ef13379d5a808f7cea198b76c589a
[ "Apache-2.0" ]
5
2021-09-12T01:36:25.000Z
2022-02-18T07:28:42.000Z
test/zcash_explorer_web/views/page_view_test.exs
buoy49/zcash-explorer
3774ef15a46ef13379d5a808f7cea198b76c589a
[ "Apache-2.0" ]
8
2021-07-23T17:11:41.000Z
2022-03-17T17:07:55.000Z
defmodule ZcashExplorerWeb.PageViewTest do use ZcashExplorerWeb.ConnCase, async: true end
23
44
0.847826
91d5827d984e8e1df199ca122b4f980e81c0a5d6
4,956
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_spec.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_spec.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/revision_spec.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...
47.2
175
0.716707
91d5a2f9099ffede024058684834e2732329ca17
2,098
exs
Elixir
test/ex_sieve/node/condition_test.exs
athonet-open/ex_sieve
19d4e977f60d032f2267f1324bb5643b4deb3bf3
[ "MIT" ]
null
null
null
test/ex_sieve/node/condition_test.exs
athonet-open/ex_sieve
19d4e977f60d032f2267f1324bb5643b4deb3bf3
[ "MIT" ]
null
null
null
test/ex_sieve/node/condition_test.exs
athonet-open/ex_sieve
19d4e977f60d032f2267f1324bb5643b4deb3bf3
[ "MIT" ]
null
null
null
defmodule ExSieve.Node.ConditionTest do use ExUnit.Case alias ExSieve.{Node.Condition, Comment} describe "ExSieve.Node.Condition.extract/3" do test "return Condition with without combinator" do condition = Condition.extract("post_id_eq", 1, Comment) assert condition.values == [1] assert co...
34.966667
94
0.680172
91d5bf9cc452c88fbe6d20b0e73b497ad0b942a3
1,536
ex
Elixir
clients/search_console/lib/google_api/search_console/v1/model/resource_issue.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/search_console/lib/google_api/search_console/v1/model/resource_issue.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/search_console/lib/google_api/search_console/v1/model/resource_issue.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32
106
0.764323
91d5cc826be7a716821555c9a8cdae960c961779
499
exs
Elixir
test/models/sale_test.exs
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
test/models/sale_test.exs
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
test/models/sale_test.exs
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
defmodule Otherpool.SaleTest do use Otherpool.ModelCase alias Otherpool.Sale @valid_attrs %{due_date: %{day: 17, month: 4, year: 2010}, order_date: %{day: 17, month: 4, year: 2010}, subtotal: 42} @invalid_attrs %{} test "changeset with valid attributes" do changeset = Sale.changeset(%Sale{}, @valid_att...
26.263158
120
0.705411
91d5ce7c2559f2957e26890431e94e8cd3c02eee
1,279
ex
Elixir
lib/new_relic/sampler/agent.ex
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
lib/new_relic/sampler/agent.ex
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
lib/new_relic/sampler/agent.ex
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic.Sampler.Agent do use GenServer alias NewRelic.Transaction # Takes samples of the state of the Agent @moduledoc false def start_link(_) do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do if NewRelic.Config.enabled?(), do: Process.send_after...
23.254545
88
0.692729
91d5d56faf463a6bdb7a25c6968901f49b2ce430
6,340
exs
Elixir
.credo.exs
polvalente/knigge
eff7b5b72580be87ebc23026b719936b879cb466
[ "MIT" ]
null
null
null
.credo.exs
polvalente/knigge
eff7b5b72580be87ebc23026b719936b879cb466
[ "MIT" ]
null
null
null
.credo.exs
polvalente/knigge
eff7b5b72580be87ebc23026b719936b879cb466
[ "MIT" ]
null
null
null
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
39.378882
88
0.615773
91d5e7ec551618455a6f4485e9a9a53042ffa675
167
exs
Elixir
deps/makeup_erlang/.formatter.exs
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup_erlang/.formatter.exs
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup_erlang/.formatter.exs
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
# Used by "mix format" [ inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"], # don't add parens around assert_value arguments import_deps: [:assert_value] ]
23.857143
57
0.646707
91d5fb70943e6a704ac576d42bf715abdfb59a96
2,065
ex
Elixir
lib/pixie/backends/redis/connection.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/backends/redis/connection.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/backends/redis/connection.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
defmodule Pixie.Backend.Redis.Connection do use GenServer def start_link redis_url do GenServer.start_link __MODULE__, redis_url end def init redis_url do Process.flag :trap_exit, true config = Exredis.Config.parse redis_url {:ok, {:disconnected, config}} end def conn pid do GenServer...
23.202247
67
0.605811
91d6152fecd79f39086c77eaac576a7995dd6934
382
ex
Elixir
lib/mix2nix/template.ex
turion/mix-to-nix
0201346461546c8f348560b08712fe63d147c790
[ "CC0-1.0" ]
null
null
null
lib/mix2nix/template.ex
turion/mix-to-nix
0201346461546c8f348560b08712fe63d147c790
[ "CC0-1.0" ]
null
null
null
lib/mix2nix/template.ex
turion/mix-to-nix
0201346461546c8f348560b08712fe63d147c790
[ "CC0-1.0" ]
null
null
null
defmodule Mix2Nix.Template do defmacro __using__([]) do quote do import unquote(__MODULE__) require EEx end end defmacro deftemplate(function_name, filename, args) do quote do EEx.function_from_file( :def, unquote(function_name), Path.join("templates", unquot...
19.1
56
0.628272
91d6207b226d8796618e4048498f2a60e87c315e
1,084
ex
Elixir
todo/test/support/channel_case.ex
mpeseke/literate-waffle
1b8da264d841d9f1d076729936b060c79f93e1aa
[ "Apache-2.0" ]
null
null
null
todo/test/support/channel_case.ex
mpeseke/literate-waffle
1b8da264d841d9f1d076729936b060c79f93e1aa
[ "Apache-2.0" ]
22
2021-12-11T13:12:45.000Z
2022-01-29T14:20:03.000Z
todo/test/support/channel_case.ex
IITA-DMCS-2122/iita_elixir
e636360edd96f0bfcde91eec212a467f10186437
[ "MIT" ]
null
null
null
defmodule TodoWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts with...
29.297297
85
0.733395
91d626afeaceb81c648ff3c523d8768ca2ffee5e
638
exs
Elixir
backend/priv/repo/migrations/20191130085134_create_events.exs
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
2
2019-11-02T21:28:34.000Z
2019-11-28T18:01:08.000Z
backend/priv/repo/migrations/20191130085134_create_events.exs
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
17
2019-11-29T16:23:38.000Z
2022-02-14T05:11:41.000Z
backend/priv/repo/migrations/20191130085134_create_events.exs
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
null
null
null
defmodule KjerSi.Repo.Migrations.CreateEvents do use Ecto.Migration def change do create table(:events, primary_key: false) do add :id, :binary_id, primary_key: true add :name, :string add :datetime, :utc_datetime add :location, :string add :description, :string add :max_att...
29
80
0.677116
91d629f0d1e8c5f3cb32bf801994e947a40a13ce
3,633
ex
Elixir
lib/elixir_keeb_ui_web/contex/shared.ex
amalbuquerque/elixir_keeb_ui
d203ccc128547668febd13a35d9472e5b4b3151a
[ "MIT" ]
3
2020-07-07T15:57:55.000Z
2021-08-12T05:09:38.000Z
lib/elixir_keeb_ui_web/contex/shared.ex
amalbuquerque/elixir_keeb_ui
d203ccc128547668febd13a35d9472e5b4b3151a
[ "MIT" ]
3
2020-09-28T20:53:30.000Z
2021-08-31T20:41:04.000Z
lib/elixir_keeb_ui_web/contex/shared.ex
amalbuquerque/elixir_keeb_ui
d203ccc128547668febd13a35d9472e5b4b3151a
[ "MIT" ]
1
2021-07-16T13:49:09.000Z
2021-07-16T13:49:09.000Z
defmodule ElixirKeeb.UIWeb.Contex.Shared do import Phoenix.HTML import Phoenix.LiveView, only: [assign: 2] def update_chart_options_from_params(socket, params) do options = socket.assigns.chart_options |> clear_message() |> update_if_int(:series, params["series"], 20) |> update_if_int...
36.69697
196
0.643545
91d62f17ad94cb70cf5033a7da4c5aea5561d638
6,919
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/platform_types.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/platform_types.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/platform_types.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.709877
196
0.629426
91d66afb18dfdbe044d1664a388b62bf6f25988a
395
exs
Elixir
example3.exs
kuroda/gen_server_nyumon
4f4fa2cc1a82814f64a5dab6242cbca0c6d6735d
[ "MIT" ]
1
2019-01-19T05:35:24.000Z
2019-01-19T05:35:24.000Z
example3.exs
kuroda/gen_server_nyumon
4f4fa2cc1a82814f64a5dab6242cbca0c6d6735d
[ "MIT" ]
null
null
null
example3.exs
kuroda/gen_server_nyumon
4f4fa2cc1a82814f64a5dab6242cbca0c6d6735d
[ "MIT" ]
null
null
null
defmodule K do use GenServer def init(_) do {:ok, 0} end def handle_cast(:increment, count) do {:noreply, count + 1} end def handle_call(:count, _, count) do {:reply, count, count} end end {:ok, pid} = GenServer.start_link(K, []) GenServer.cast(pid, :increment) GenServer.cast(pid, :increme...
17.954545
40
0.668354
91d67b95cf10378ac8e5ca3c931cd79c1de5f20a
275
exs
Elixir
test/doc_test.exs
glennr/cldr_calendars
0b0ee11c6b7464c2e7db6f525a518ce08e99c807
[ "Apache-2.0" ]
null
null
null
test/doc_test.exs
glennr/cldr_calendars
0b0ee11c6b7464c2e7db6f525a518ce08e99c807
[ "Apache-2.0" ]
null
null
null
test/doc_test.exs
glennr/cldr_calendars
0b0ee11c6b7464c2e7db6f525a518ce08e99c807
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.Calendar.Doc.Test do use ExUnit.Case, asynch: true if Version.compare(System.version(), "1.10.0-dev") in [:gt, :eq] do doctest Cldr.Calendar doctest Cldr.Calendar.Duration doctest Cldr.Calendar.Interval doctest Cldr.Calendar.Kday end end
27.5
69
0.723636
91d685d3b720919e4d11d989121754e2816514ff
1,490
ex
Elixir
lib/commanded/middleware/consistency_guarantee.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1
2018-12-28T20:48:23.000Z
2018-12-28T20:48:23.000Z
lib/commanded/middleware/consistency_guarantee.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1
2018-12-05T18:17:08.000Z
2018-12-05T18:17:08.000Z
lib/commanded/middleware/consistency_guarantee.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1
2018-12-28T20:48:24.000Z
2018-12-28T20:48:24.000Z
defmodule Commanded.Middleware.ConsistencyGuarantee do @moduledoc """ A `Commanded.Middleware` that blocks after successful command dispatch until the requested dispatch consistency has been met. Only applies when the requested consistency is `:strong`. Has no effect for `:eventual` consistency. """ @be...
28.113208
93
0.704698
91d69765e9131e177354a5fef737543b974e6603
1,646
exs
Elixir
app/mix.exs
kylemacey/rocdev
a70e80b9b853803bc9771b7f0ff712b6da27af8f
[ "MIT" ]
null
null
null
app/mix.exs
kylemacey/rocdev
a70e80b9b853803bc9771b7f0ff712b6da27af8f
[ "MIT" ]
null
null
null
app/mix.exs
kylemacey/rocdev
a70e80b9b853803bc9771b7f0ff712b6da27af8f
[ "MIT" ]
null
null
null
defmodule Rocdev.Mixfile do use Mix.Project def project do [ app: :rocdev, version: "0.0.1", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, start_permanent: Mix.env == :prod, aliases: aliases(), deps: de...
26.548387
79
0.578979
91d698a09254b3db5909bae332071846c3692a1d
58
ex
Elixir
lib/web/views/admin/dashboard_view.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
610
2017-08-09T15:20:25.000Z
2022-03-27T15:49:07.000Z
lib/web/views/admin/dashboard_view.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
69
2017-09-23T04:02:30.000Z
2022-03-19T21:08:21.000Z
lib/web/views/admin/dashboard_view.ex
christhekeele/ex_venture
4f4b329f50a133e219969f9823144a4cb9bf738d
[ "MIT" ]
85
2017-09-23T04:07:11.000Z
2021-11-20T06:44:56.000Z
defmodule Web.Admin.DashboardView do use Web, :view end
14.5
36
0.775862
91d69910a87f7088a53be27e954769507d646d54
3,907
exs
Elixir
test/acceptance/ast/footnotes_test.exs
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
32
2020-07-01T17:25:08.000Z
2022-03-23T05:38:38.000Z
test/acceptance/ast/footnotes_test.exs
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
91
2020-06-30T09:08:00.000Z
2022-03-24T18:11:16.000Z
test/acceptance/ast/footnotes_test.exs
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
22
2020-07-02T08:50:17.000Z
2022-02-21T08:31:27.000Z
defmodule Acceptance.Ast.FootnotesTest do use ExUnit.Case, async: true import Support.Helpers, only: [as_ast: 2] import EarmarkAstDsl describe "Correct Footnotes" do test "plain text" do markdown = "foo[^1] again\n\n[^1]: bar baz" ast = [ {"p", '', [ "foo", ...
26.398649
88
0.353724
91d6ab94ada416cf01534c8ea170bf83384e4c6c
5,663
ex
Elixir
lib/lua_libs/lua_lib_string_tools.ex
fangkunping/micro-server
3307b605ed33a8c089283274d2713d8ee3798b1a
[ "Apache-2.0" ]
null
null
null
lib/lua_libs/lua_lib_string_tools.ex
fangkunping/micro-server
3307b605ed33a8c089283274d2713d8ee3798b1a
[ "Apache-2.0" ]
null
null
null
lib/lua_libs/lua_lib_string_tools.ex
fangkunping/micro-server
3307b605ed33a8c089283274d2713d8ee3798b1a
[ "Apache-2.0" ]
null
null
null
defmodule MicroServer.LuaLib.StringTools do alias MicroServer.LuaUtility @doc """ 过程数据初始化函数, 在第一次获取过程数据的时候调用 """ @spec init_state :: map def init_state, do: %{} @doc """ 模块需要用到的lua脚本 """ def addtion_lua() do "" end @doc """ 库初始化函数, 在启动微服务的时候调用 """ @spec init(lua_state :: term, Strin...
21.450758
112
0.530814
91d6c0c8c7d95410290ca707f248d9ace0433039
67
ex
Elixir
lib/newslettex_web/views/list_view.ex
silva96/newslettex
4876392c9900c0ce169dcdcb9ebb01ab3da83d65
[ "MIT" ]
null
null
null
lib/newslettex_web/views/list_view.ex
silva96/newslettex
4876392c9900c0ce169dcdcb9ebb01ab3da83d65
[ "MIT" ]
10
2019-07-29T03:03:02.000Z
2021-05-10T23:59:25.000Z
lib/newslettex_web/views/list_view.ex
silva96/newslettex
4876392c9900c0ce169dcdcb9ebb01ab3da83d65
[ "MIT" ]
null
null
null
defmodule NewslettexWeb.ListView do use NewslettexWeb, :view end
16.75
35
0.820896
91d6c9850e4c149d17bdd4d0b17955c585b2c196
24,084
ex
Elixir
lib/level/svg.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
928
2018-04-03T16:18:11.000Z
2019-09-09T17:59:55.000Z
lib/level/svg.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
74
2018-04-03T00:46:50.000Z
2019-03-10T18:57:27.000Z
lib/level/svg.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
89
2018-04-03T17:33:20.000Z
2019-08-19T03:40:20.000Z
defmodule Level.Svg do @moduledoc """ Functions for manipulating SVG. """ @doc """ Transforms raw SVGs into elm/svg syntax. """ @spec to_elm(String.t()) :: {:ok, String.t()} def to_elm(raw_svg) do raw_svg |> Floki.parse() |> tree_to_elm() |> process_elm() end defp process_elm(nil),...
53.165563
94
0.691912
91d6e38695ec1bc079b64f497a8dee6845ce7680
147
exs
Elixir
test/backoffice_test.exs
NduatiK/backoffice
a19de7b83244de25325a6a96f5da63e7f4ea9ae6
[ "MIT" ]
194
2021-03-25T17:16:37.000Z
2022-03-08T11:49:46.000Z
test/backoffice_test.exs
NduatiK/backoffice
a19de7b83244de25325a6a96f5da63e7f4ea9ae6
[ "MIT" ]
34
2021-03-26T13:21:06.000Z
2021-06-26T19:30:44.000Z
test/backoffice_test.exs
NduatiK/backoffice
a19de7b83244de25325a6a96f5da63e7f4ea9ae6
[ "MIT" ]
12
2021-04-01T19:46:16.000Z
2022-02-05T05:35:50.000Z
defmodule BackofficeTest do use ExUnit.Case doctest Backoffice test "greets the world" do assert Backoffice.hello() == :world end end
16.333333
39
0.727891
91d6e5227de74e15a231a2730b5115062100e924
18,388
ex
Elixir
lib/phoenix/test/channel_test.ex
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
lib/phoenix/test/channel_test.ex
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
lib/phoenix/test/channel_test.ex
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
defmodule Phoenix.ChannelTest do @moduledoc """ Conveniences for testing Phoenix channels. In channel tests, we interact with channels via process communication, sending and receiving messages. It is also common to subscribe to the same topic the channel subscribes to, allowing us to assert if a given mess...
32.316344
114
0.675223
91d6e9234fafdf6bc45b46a7506ec2bf3c4473f4
11,114
ex
Elixir
lib/lua_libs/lua_lib_cache1.ex
fangkunping/micro-server
3307b605ed33a8c089283274d2713d8ee3798b1a
[ "Apache-2.0" ]
null
null
null
lib/lua_libs/lua_lib_cache1.ex
fangkunping/micro-server
3307b605ed33a8c089283274d2713d8ee3798b1a
[ "Apache-2.0" ]
null
null
null
lib/lua_libs/lua_lib_cache1.ex
fangkunping/micro-server
3307b605ed33a8c089283274d2713d8ee3798b1a
[ "Apache-2.0" ]
null
null
null
defmodule MicroServer.LuaLib.Cache1 do @doc """ 用于服务器之间共享的高速缓存 """ alias MicroServer.LuaUtility alias Kunerauqs.EtsProxy @spec init_state :: map def init_state, do: %{ cache1_table: %{}, cache1_def_query: %{} } @doc """ 模块需要用到的lua脚本 """ def addtion_lua do ~s| __CACH...
26.212264
95
0.579449
91d6fcf252363cfed471a22cf37e166548ff5180
191
ex
Elixir
lib/ja_serializer/formatter/resource_identifier.ex
Xerpa/ja_serializer
b94a37fd9ed6fdb20dc3776cd5c581fefc57c924
[ "Apache-2.0" ]
1
2017-08-31T04:00:15.000Z
2017-08-31T04:00:15.000Z
lib/ja_serializer/formatter/resource_identifier.ex
Xerpa/ja_serializer
b94a37fd9ed6fdb20dc3776cd5c581fefc57c924
[ "Apache-2.0" ]
null
null
null
lib/ja_serializer/formatter/resource_identifier.ex
Xerpa/ja_serializer
b94a37fd9ed6fdb20dc3776cd5c581fefc57c924
[ "Apache-2.0" ]
null
null
null
defimpl JaSerializer.Formatter, for: JaSerializer.Builder.ResourceIdentifier do def format(resource) do %{ id: to_string(resource.id), type: resource.type } end end
21.222222
79
0.691099
91d773345abecbbc482f8f443b66b0734217cd6c
1,174
ex
Elixir
apps/gitgud_web/lib/gitgud_web/plugs/trailing_format_plug.ex
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
449
2018-03-06T01:05:55.000Z
2022-03-23T21:03:56.000Z
apps/gitgud_web/lib/gitgud_web/plugs/trailing_format_plug.ex
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
69
2018-03-06T09:26:41.000Z
2022-03-21T22:43:09.000Z
apps/gitgud_web/lib/gitgud_web/plugs/trailing_format_plug.ex
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
41
2018-03-06T01:06:07.000Z
2021-11-21T17:55:04.000Z
defmodule GitGud.Web.TrailingFormatPlug do @moduledoc """ `Plug` providing support for routes with trailing format. """ @behaviour Plug # # Callbacks # @impl true def init(opts), do: opts @impl true def call(%Plug.Conn{path_info: []} = conn, _opts), do: conn def call(%Plug.Conn{path_info: pa...
24.458333
97
0.579216
91d7777c6e90801d834c17e87e5c7370717917c0
1,655
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_field_assignment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_field_assignment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_field_assignment.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 ...
33.1
101
0.738369
91d777b5426923b178926efe1e449127c38bd96f
2,056
ex
Elixir
phoenix/lib/mehr_schulferien_web/controllers/admin/travel_offer_controller.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/lib/mehr_schulferien_web/controllers/admin/travel_offer_controller.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/lib/mehr_schulferien_web/controllers/admin/travel_offer_controller.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
defmodule MehrSchulferienWeb.Admin.TravelOfferController do use MehrSchulferienWeb, :controller alias MehrSchulferien.Ads alias MehrSchulferien.Ads.TravelOffer def index(conn, _params) do travel_offers = Ads.list_travel_offers() render(conn, "index.html", travel_offers: travel_offers) end def new...
33.704918
83
0.688716
91d782dee3305ade1b5f48629d9b3ffb6b00bbde
2,370
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/google_cloud_healthcare_v1beta1_fhir_rest_gcs_source.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/model/google_cloud_healthcare_v1beta1_fhir_rest_gcs_source.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/model/google_cloud_healthcare_v1beta1_fhir_rest_gcs_source.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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...
45.576923
871
0.754008
91d7be439c4d6c10c70b35b96eebbf70e1e6dba4
1,097
exs
Elixir
mix.exs
sgerrand/bigflake
7bf4fe45bf29367bf30ffbbf335079af8722469e
[ "MIT" ]
46
2016-03-13T16:17:21.000Z
2022-03-27T22:55:40.000Z
mix.exs
sgerrand/bigflake
7bf4fe45bf29367bf30ffbbf335079af8722469e
[ "MIT" ]
28
2018-08-08T02:43:05.000Z
2021-09-06T16:58:16.000Z
mix.exs
sgerrand/bigflake
7bf4fe45bf29367bf30ffbbf335079af8722469e
[ "MIT" ]
6
2016-03-17T22:24:54.000Z
2021-02-01T11:48:21.000Z
defmodule Bigflake.Mixfile do use Mix.Project def project do [ app: :bigflake, version: "0.5.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), description: descrip...
21.509804
80
0.562443
91d7c760a4578cdf99ada22ef762a6bf83dd7b64
896
ex
Elixir
lib/skeleton/types/default/atom.ex
haskric/map_schema
615d6428e168a0d3991d334cba76c2d8e5c417b6
[ "MIT" ]
3
2020-12-15T09:04:57.000Z
2021-06-11T02:01:09.000Z
lib/skeleton/types/default/atom.ex
haskric/map_schema
615d6428e168a0d3991d334cba76c2d8e5c417b6
[ "MIT" ]
null
null
null
lib/skeleton/types/default/atom.ex
haskric/map_schema
615d6428e168a0d3991d334cba76c2d8e5c417b6
[ "MIT" ]
null
null
null
defmodule MapSchema.DefaultTypes.MSchemaAtom do @moduledoc false @doc """ atom type """ @behaviour MapSchema.CustomType @spec name :: atom | String.t() def name, do: :atom def nested?, do: false @spec cast(value :: any) :: any | :map_schema_type_error def cast(value) when is_bitstring(value) do ...
19.478261
58
0.652902
91d7e248e51fe0ee3fd58bd1cb98fb37f58266c0
1,074
ex
Elixir
test/support/conn_case.ex
mapmeld/superfund-me
8bd1aeb78504e6ae068cf57dbefca05bebbb2b07
[ "MIT" ]
null
null
null
test/support/conn_case.ex
mapmeld/superfund-me
8bd1aeb78504e6ae068cf57dbefca05bebbb2b07
[ "MIT" ]
3
2016-09-09T21:09:17.000Z
2017-09-13T17:55:20.000Z
test/support/conn_case.ex
Georeactor/superfund-me
8bd1aeb78504e6ae068cf57dbefca05bebbb2b07
[ "MIT" ]
null
null
null
defmodule Superfundme.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 th...
24.976744
70
0.708566
91d7efc4ba5460dee752110bf947714a8928962d
580
exs
Elixir
plugins/one_pages/priv/repo/migrations/20180330014259_create_app_versions.exs
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
plugins/one_pages/priv/repo/migrations/20180330014259_create_app_versions.exs
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
plugins/one_pages/priv/repo/migrations/20180330014259_create_app_versions.exs
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule OnePages.Repo.Migrations.CreateAppVersions do use Ecto.Migration def change do create table(:app_versions, primary_key: false) do add :id, :binary_id, primary_key: true add :url, :string add :assets_url, :string add :html_url, :string add :git_id, :integer add :tag...
25.217391
60
0.648276
91d80a1d6d1ccb3e4fc3b2aabb0df83a634edfb8
290
exs
Elixir
priv/repo/migrations/0550_add_user_profiles_table.exs
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
priv/repo/migrations/0550_add_user_profiles_table.exs
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
priv/repo/migrations/0550_add_user_profiles_table.exs
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule Radiator.Repo.Migrations.CreateUserProfiles do use Ecto.Migration def change do create table(:user_profiles) do add :display_name, :text add :image, :text add :user_id, references(:auth_users, on_delete: :nothing) timestamps() end end end
19.333333
64
0.689655
91d845bd7993e8920bf9982622ebe0d6e72bd9c3
132
exs
Elixir
test/elixir_lang_guide_test.exs
milmazz/elixir_getting_started_guide_to_go
c298fa9b8c25be9c26713e93b0349c8d8dfc14a9
[ "Apache-2.0" ]
22
2016-10-05T04:22:43.000Z
2022-01-08T23:20:26.000Z
test/elixir_lang_guide_test.exs
milmazz/elixir_getting_started_guide_to_go
c298fa9b8c25be9c26713e93b0349c8d8dfc14a9
[ "Apache-2.0" ]
null
null
null
test/elixir_lang_guide_test.exs
milmazz/elixir_getting_started_guide_to_go
c298fa9b8c25be9c26713e93b0349c8d8dfc14a9
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLangGuideTest do use ExUnit.Case doctest ElixirLangGuide test "the truth" do assert 1 + 1 == 2 end end
14.666667
32
0.712121
91d85f23b494a6f87a91bebc2e41dbd7c4fb7ae9
2,210
ex
Elixir
apps/ex_cucumber/lib/ex_cucumber/exceptions/messages/match_failure_messages/unable_to_match_param.ex
Ajwah/ex_cucumber
f2b9cf06caeef624c66424ae6160f274dc133fc6
[ "Apache-2.0" ]
2
2021-05-18T18:20:05.000Z
2022-02-13T00:15:06.000Z
apps/ex_cucumber/lib/ex_cucumber/exceptions/messages/match_failure_messages/unable_to_match_param.ex
Ajwah/ex_cucumber
f2b9cf06caeef624c66424ae6160f274dc133fc6
[ "Apache-2.0" ]
2
2021-04-22T00:28:17.000Z
2021-05-19T21:04:20.000Z
apps/ex_cucumber/lib/ex_cucumber/exceptions/messages/match_failure_messages/unable_to_match_param.ex
Ajwah/ex_cucumber
f2b9cf06caeef624c66424ae6160f274dc133fc6
[ "Apache-2.0" ]
4
2021-04-14T03:07:45.000Z
2021-12-12T21:23:59.000Z
defmodule ExCucumber.Exceptions.Messages.UnableToMatchParam do @moduledoc false alias CucumberExpressions.Parser.ParseTree alias ExCucumber.{ Exceptions.MatchFailure, Utils } def render(%MatchFailure{error_code: :unable_to_match_param} = f, :brief) do """ Unable To Match Param: #{f.extra.par...
32.028986
105
0.69095
91d8668e2836ed84bf5472489973ba829dae290f
1,968
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_reidentify_content_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_reidentify_content_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_reidentify_content_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.36
171
0.761179
91d8670cefc9946c07fae867134391ce1263896b
2,306
exs
Elixir
test/phx_chirp/timeline_test.exs
dannyh79/15m_phx_twitter
b8639c12e8f01eb46dab4f82600854e13fa1ecdc
[ "MIT" ]
null
null
null
test/phx_chirp/timeline_test.exs
dannyh79/15m_phx_twitter
b8639c12e8f01eb46dab4f82600854e13fa1ecdc
[ "MIT" ]
10
2020-05-19T14:13:34.000Z
2021-06-13T13:16:43.000Z
test/phx_chirp/timeline_test.exs
dannyh79/15m_phx_twitter
b8639c12e8f01eb46dab4f82600854e13fa1ecdc
[ "MIT" ]
1
2020-05-19T13:37:01.000Z
2020-05-19T13:37:01.000Z
defmodule PhxChirp.TimelineTest do use PhxChirp.DataCase alias PhxChirp.Timeline describe "posts" do alias PhxChirp.Timeline.Post @valid_attrs %{body: "some body", likes_count: 42, reposts_count: 42, username: "some username"} @update_attrs %{body: "some updated body", likes_count: 43, reposts_coun...
32.478873
117
0.661318
91d8a6bb4c37c5acde4ca4ffde93e21317c4e453
2,181
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_list_referrers_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/instance_list_referrers_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_list_referrers_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 ...
40.388889
194
0.727189
91d8ba6953748b109855bf9640dde0565b422116
945
exs
Elixir
test/islands_engine/coordinate_test.exs
msramos/islands_engine
6171d24aa937f80878251a0a3c575ac7023d5e8e
[ "MIT" ]
null
null
null
test/islands_engine/coordinate_test.exs
msramos/islands_engine
6171d24aa937f80878251a0a3c575ac7023d5e8e
[ "MIT" ]
null
null
null
test/islands_engine/coordinate_test.exs
msramos/islands_engine
6171d24aa937f80878251a0a3c575ac7023d5e8e
[ "MIT" ]
null
null
null
defmodule IslandsEngine.CoordinateTest do use ExUnit.Case, async: true alias IslandsEngine.Coordinate doctest Coordinate @sut Coordinate describe "new/2" do test "creates a new coordinate struct in an ok tuple when values are correct" do expected = {:ok, %Coordinate{row: 1, col: 8}} result ...
22.5
84
0.647619
91d90761f5d07e413feb6fc99408b6462606653a
1,648
ex
Elixir
web/web.ex
zhangsoledad/Doom
37ddc696e7d71c742bfc90352d76e81f2c78f5b7
[ "MIT" ]
6
2016-03-17T08:45:34.000Z
2016-10-10T01:20:37.000Z
web/web.ex
zhangsoledad/doom
37ddc696e7d71c742bfc90352d76e81f2c78f5b7
[ "MIT" ]
null
null
null
web/web.ex
zhangsoledad/doom
37ddc696e7d71c742bfc90352d76e81f2c78f5b7
[ "MIT" ]
2
2016-04-01T06:28:56.000Z
2016-04-28T09:35:07.000Z
defmodule Doom.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use Doom.Web, :controller use Doom.Web, :view The definitions below will be executed for every view, controller, etc, so keep them short and cl...
19.619048
88
0.659587
91d908f554293c89b1359f9afaccda546b30ccbd
100
exs
Elixir
test/dofus_next_test.exs
Blackrush/dofus.next
0d97de5d36a6ef497144b27cdb2e0259edc625f2
[ "MIT" ]
2
2015-06-12T11:27:14.000Z
2017-05-10T16:22:39.000Z
test/dofus_next_test.exs
Blackrush/dofus.next
0d97de5d36a6ef497144b27cdb2e0259edc625f2
[ "MIT" ]
null
null
null
test/dofus_next_test.exs
Blackrush/dofus.next
0d97de5d36a6ef497144b27cdb2e0259edc625f2
[ "MIT" ]
null
null
null
defmodule DofusNextTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
12.5
26
0.66
91d91810f216b17d99ca5174e13f06ee31f08a94
4,021
ex
Elixir
lib/day23.ex
p88h/aoc2021
b42a12ce7ca786b2b5061fdcb46bd850ed54b82c
[ "Apache-2.0" ]
15
2021-12-01T16:50:40.000Z
2022-01-04T02:44:00.000Z
lib/day23.ex
p88h/aoc2021
b42a12ce7ca786b2b5061fdcb46bd850ed54b82c
[ "Apache-2.0" ]
null
null
null
lib/day23.ex
p88h/aoc2021
b42a12ce7ca786b2b5061fdcb46bd850ed54b82c
[ "Apache-2.0" ]
6
2021-12-08T01:33:56.000Z
2021-12-29T11:45:52.000Z
defmodule Aoc2021.Day23 do def home(a), do: %{"A"=>0,"B"=>1,"C"=>2,"D"=>3}[a] def cost(a), do: %{"A"=>1,"B"=>10,"C"=>100,"D"=>1000}[a] def swap(s, a, b), do: String.slice(s,0,a) <> String.at(s,b) <> String.slice(s,a+1,b-a-1) <> String.at(s,a) <> String.slice(s, b+1, 23-b) def find_top(s, ofs, lvl, kf) do i...
37.579439
139
0.531211
91d92bf616f7396eef47fa18de0ff04dee7f3670
1,599
ex
Elixir
clients/jobs/lib/google_api/jobs/v2/model/custom_field_filter.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/jobs/lib/google_api/jobs/v2/model/custom_field_filter.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/jobs/lib/google_api/jobs/v2/model/custom_field_filter.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.169811
106
0.711695
91d931e67d29c02499c9ab7d7ef13eee1de9f466
734
ex
Elixir
lib/dgraph_ex/expr/within.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
21
2017-08-20T06:19:37.000Z
2021-02-04T23:22:10.000Z
lib/dgraph_ex/expr/within.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
43
2017-08-06T21:03:28.000Z
2018-09-08T13:00:35.000Z
lib/dgraph_ex/expr/within.ex
WolfDan/dgraph_ex
4dad42983f2387f10febf9996ac8f2db20aea710
[ "MIT" ]
1
2017-10-12T02:20:13.000Z
2017-10-12T02:20:13.000Z
defmodule DgraphEx.Expr.Within do alias DgraphEx.Expr.Within defstruct [ label: nil, geo_json: nil, ] defmacro __using__(_) do quote do alias DgraphEx.Expr.Within def within(label, [[ [x, y] | _] |_] = geo_json) when is_atom(label) and is_float(x) and is_float(y) do Within.new...
23.677419
132
0.617166