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
1c1ff36f502fea0d385dc2a9c7b9597b0978c24b
19,934
ex
Elixir
lib/zaryn/election.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
1
2021-07-06T19:47:14.000Z
2021-07-06T19:47:14.000Z
lib/zaryn/election.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
lib/zaryn/election.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
defmodule Zaryn.Election do @moduledoc """ Provides a random and rotating node election based on heuristic algorithms and constraints to ensure a fair distributed processing and data storage among its network. """ alias Zaryn.BeaconChain alias Zaryn.Crypto alias __MODULE__.Constraints alias __MODULE_...
36.243636
111
0.621952
1c1ff454cf1b28be2f6146d4c5cc1fa80e0b12ee
9,121
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.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...
71.257813
559
0.74323
1c1ff4654fb9ef57e9506a87c4483582465d6f18
7,029
exs
Elixir
test/livebook_web/controllers/session_controller_test.exs
axelson/livebook
78b9a11d8c3dac78c648cc7903343ea09f45efd9
[ "Apache-2.0" ]
null
null
null
test/livebook_web/controllers/session_controller_test.exs
axelson/livebook
78b9a11d8c3dac78c648cc7903343ea09f45efd9
[ "Apache-2.0" ]
null
null
null
test/livebook_web/controllers/session_controller_test.exs
axelson/livebook
78b9a11d8c3dac78c648cc7903343ea09f45efd9
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SessionControllerTest do use LivebookWeb.ConnCase, async: true alias Livebook.{Sessions, Session, Notebook, FileSystem} describe "show_image" do test "returns not found when the given session does not exist", %{conn: conn} do id = Livebook.Utils.random_node_aware_id() conn ...
31.24
96
0.605207
1c2004477ee60443908d17c73a9be0f6d0fb5f45
12,169
ex
Elixir
apps/ex_wire/lib/ex_wire/adapter/tcp.ex
atoulme/ethereum
cebb0756c7292ac266236636d2ab5705cb40a52e
[ "MIT" ]
14
2017-08-21T06:14:49.000Z
2020-05-15T12:00:52.000Z
apps/ex_wire/lib/ex_wire/adapter/tcp.ex
atoulme/ethereum
cebb0756c7292ac266236636d2ab5705cb40a52e
[ "MIT" ]
7
2017-08-11T07:50:14.000Z
2018-08-23T20:42:50.000Z
apps/ex_wire/lib/ex_wire/adapter/tcp.ex
atoulme/ethereum
cebb0756c7292ac266236636d2ab5705cb40a52e
[ "MIT" ]
3
2017-08-20T17:56:41.000Z
2018-08-21T00:36:10.000Z
defmodule ExWire.Adapter.TCP do @moduledoc """ Starts a TCP server to handle incoming and outgoing RLPx, DevP2P, Eth Wire connection. Once this connection is up, it's possible to add a subscriber to the different packets that are sent over the connection. This is the primary way of handling packets. Note: i...
35.686217
230
0.652971
1c201cb1d082abc1d1e7c727b30638cda933e167
2,217
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/api_config_handler.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/api_config_handler.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/api_config_handler.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 "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.576271
157
0.704105
1c2026f2c1bfe3377b44d5b1abf17d6b1edab19f
798
ex
Elixir
web/models/mention.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
60
2017-05-09T19:08:26.000Z
2021-01-20T11:09:42.000Z
web/models/mention.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
6
2017-05-10T15:43:16.000Z
2020-07-15T07:14:41.000Z
web/models/mention.ex
smpallen99/ucx_chat
0dd98d0eb5e0537521844520ea2ba63a08fd3f19
[ "MIT" ]
10
2017-05-10T04:13:54.000Z
2020-12-28T10:30:27.000Z
defmodule UcxChat.Mention do use UcxChat.Web, :model @mod __MODULE__ schema "mentions" do field :unread, :boolean, default: true field :all, :boolean, default: false field :name, :string belongs_to :user, UcxChat.User belongs_to :message, UcxChat.Message belongs_to :channel, UcxChat.Cha...
22.8
67
0.659148
1c202e0a82f1a935cf6627a8f43ba4ede2b7f473
5,895
exs
Elixir
test/assoc_test.exs
oivoodoo/ex_audit
3ef4bdfefb7135a023871a7bd3744825ed818f4e
[ "MIT" ]
null
null
null
test/assoc_test.exs
oivoodoo/ex_audit
3ef4bdfefb7135a023871a7bd3744825ed818f4e
[ "MIT" ]
null
null
null
test/assoc_test.exs
oivoodoo/ex_audit
3ef4bdfefb7135a023871a7bd3744825ed818f4e
[ "MIT" ]
null
null
null
defmodule AssocTest do use ExUnit.Case import Ecto.Query alias ExAudit.Test.{Repo, Version, BlogPost, Comment, Util, User, UserGroup} alias ExAudit.Test.BlogPost.Section require Logger test "comment lifecycle tracked" do user = Util.create_user() ExAudit.track(actor_id: user.id) params = %...
27.676056
91
0.610517
1c203d9e9d97a7ea8d7cafdc5c76413f6df619ae
1,661
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_import_test_cases_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_import_test_cases_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_import_test_cases_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.942308
157
0.74714
1c20476c5efb1bf6e92a400238b87f2db5b5f21f
3,141
exs
Elixir
test/recurring_events_test.exs
pbogut/recurring_events
c341f345410092117f25eb99696aff52dde88a69
[ "MIT" ]
21
2017-01-11T00:02:46.000Z
2020-12-28T15:59:04.000Z
test/recurring_events_test.exs
pbogut/recurring_events
c341f345410092117f25eb99696aff52dde88a69
[ "MIT" ]
20
2017-04-11T20:39:55.000Z
2021-09-18T09:20:44.000Z
test/recurring_events_test.exs
pbogut/recurring_events
c341f345410092117f25eb99696aff52dde88a69
[ "MIT" ]
9
2017-04-11T19:31:20.000Z
2020-10-14T18:36:27.000Z
defmodule RecurringEventsTest do use ExUnit.Case doctest RecurringEvents alias RecurringEvents, as: RR @date ~D[2017-01-01] @valid_rrule %{freq: :yearly} test "freq is required" do assert_raise ArgumentError, "Frequency is required", fn -> RR.unfold(@date, %{}) end end test "will rise ...
24.161538
93
0.611589
1c2055cb5d520ad3039f1e4d71f0b74b1c43372a
4,731
ex
Elixir
wasmcloud_host/lib/wasmcloud_host_web/live/components/define_link_component.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
wasmcloud_host/lib/wasmcloud_host_web/live/components/define_link_component.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
wasmcloud_host/lib/wasmcloud_host_web/live/components/define_link_component.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
defmodule DefineLinkComponent do use Phoenix.LiveComponent def mount(socket) do {:ok, socket |> assign(:error_msg, nil)} end def handle_event("validate", _params, socket) do # TODO determine feasability of modifying form upon provider select, instead of with custom JS {:noreply, socket} end d...
35.30597
116
0.553371
1c206cb2d66da4310ec1faeede8949719e2b932e
562
exs
Elixir
test/weather_extractor_test.exs
anthonyoconnor/some_weather
edd3c07115b4f76c0531dd9f4586bd8a13fb369f
[ "MIT" ]
1
2016-05-25T04:03:34.000Z
2016-05-25T04:03:34.000Z
test/weather_extractor_test.exs
anthonyoconnor/some_weather
edd3c07115b4f76c0531dd9f4586bd8a13fb369f
[ "MIT" ]
null
null
null
test/weather_extractor_test.exs
anthonyoconnor/some_weather
edd3c07115b4f76c0531dd9f4586bd8a13fb369f
[ "MIT" ]
null
null
null
defmodule WeatherExtractorTest do use ExUnit.Case import SomeWeather.WeatherExtractor test "xml is extracted correctly" do sample_xml = """ <current_observation> <location>Somewhere</location> <station_id>ABC</station_id> <temp_c>40.0</temp_c> <weather>warm</weather> </cu...
23.416667
45
0.653025
1c208f42cf5c52c561d9d18775853902c585fece
1,122
exs
Elixir
mix.exs
blueangel0723/arc
cd93d7a22f05e626768fdac67123633eb8f694f2
[ "Apache-2.0" ]
null
null
null
mix.exs
blueangel0723/arc
cd93d7a22f05e626768fdac67123633eb8f694f2
[ "Apache-2.0" ]
null
null
null
mix.exs
blueangel0723/arc
cd93d7a22f05e626768fdac67123633eb8f694f2
[ "Apache-2.0" ]
null
null
null
defmodule Arc.Mixfile do use Mix.Project @version "0.8.0" def project do [app: :arc, version: @version, elixir: "~> 1.4", deps: deps(), # Hex description: description(), package: package()] end defp description do """ Flexible file upload and attachment library for...
20.4
70
0.54902
1c20bad3c75cbc550a454f105edd4ddc5690f595
538
exs
Elixir
test/test_helper.exs
sgilson/mine
aa07682525ff72545dc2df91a68c23c1d5c937ef
[ "MIT" ]
1
2019-11-15T22:59:57.000Z
2019-11-15T22:59:57.000Z
test/test_helper.exs
sgilson/mine
aa07682525ff72545dc2df91a68c23c1d5c937ef
[ "MIT" ]
null
null
null
test/test_helper.exs
sgilson/mine
aa07682525ff72545dc2df91a68c23c1d5c937ef
[ "MIT" ]
null
null
null
ExUnit.start() defmodule CompilerAssertions do # with some help from: https://gist.github.com/henrik/1054546364ac68da4102 defmacro assert_compiler_raise(expected_message, error_type \\ Mine.View.CompileError, quoted) do quote do assert_raise(unquote(error_type), unquote(expected_message), fn -> u...
25.619048
99
0.702602
1c20c91fee577dabcbe416609b11e1a21280d140
420
ex
Elixir
examples/elixir/lib/todolist/permissions.ex
ironbay/riptide-next
ff9cc722cfe84846ff8bb71e1c7fbee442c9162b
[ "MIT" ]
11
2020-01-20T16:42:00.000Z
2021-09-18T11:36:45.000Z
examples/elixir/lib/todolist/permissions.ex
ironbay/riptide-next
ff9cc722cfe84846ff8bb71e1c7fbee442c9162b
[ "MIT" ]
16
2020-04-05T19:26:14.000Z
2020-05-21T14:50:59.000Z
examples/elixir/lib/todolist/permissions.ex
ironbay/riptide
ff9cc722cfe84846ff8bb71e1c7fbee442c9162b
[ "MIT" ]
2
2020-10-16T11:01:57.000Z
2021-01-20T21:11:52.000Z
defmodule Todolist.Permissions do use Riptide.Interceptor def mutation_before([], _layer, mut, %{internal: true}), do: :ok def mutation_before([], _layer, mut, state) do # mut # |> Riptide.Mutation.layers() # |> Enum.any?(fn # {["todos" | _], _} -> false # {path, layer} -> false # en...
22.105263
66
0.552381
1c20e73ce2e0047e053ebb555c892052ec966b11
6,659
exs
Elixir
test/toniq_test.exs
itskoko/toniq
1f96db00556bfac4a929c98fd7f9044906879492
[ "MIT", "Unlicense" ]
null
null
null
test/toniq_test.exs
itskoko/toniq
1f96db00556bfac4a929c98fd7f9044906879492
[ "MIT", "Unlicense" ]
null
null
null
test/toniq_test.exs
itskoko/toniq
1f96db00556bfac4a929c98fd7f9044906879492
[ "MIT", "Unlicense" ]
3
2021-04-07T14:59:09.000Z
2021-04-07T14:59:21.000Z
defmodule ToniqTest do use ExUnit.Case import CaptureLog defmodule TestWorker do use Toniq.Worker def perform(data: number) do send :toniq_test, { :job_has_been_run, number_was: number } end end defmodule TestErrorWorker do use Toniq.Worker def perform(_arg) do send :toniq_...
27.978992
131
0.691695
1c215e9a6b9fa4c59da5dd27ffe3458e2e3e83f7
815
exs
Elixir
mix.exs
andrewMacmurray/identicon-generator
31fd43d3962574c8e4ce0033742d2e9f797c7ea6
[ "MIT" ]
null
null
null
mix.exs
andrewMacmurray/identicon-generator
31fd43d3962574c8e4ce0033742d2e9f797c7ea6
[ "MIT" ]
null
null
null
mix.exs
andrewMacmurray/identicon-generator
31fd43d3962574c8e4ce0033742d2e9f797c7ea6
[ "MIT" ]
null
null
null
defmodule Identicon.Mixfile do use Mix.Project def project do [app: :identicon, version: "0.1.0", elixir: "~> 1.4", escript: escript(), build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end def escript, do: [main_module: Identicon] # Config...
22.027027
79
0.629448
1c216755f47d25c837d7a2b7ea44326834e1dcca
391
ex
Elixir
apps/diet_web/lib/diet_web/controllers/page_controller.ex
isavita/diet-umbrella
0eee4d0dc4d9567888e4b69ccc7993e95d95ed29
[ "MIT" ]
1
2020-06-01T21:25:54.000Z
2020-06-01T21:25:54.000Z
apps/diet_web/lib/diet_web/controllers/page_controller.ex
isavita/diet-umbrella
0eee4d0dc4d9567888e4b69ccc7993e95d95ed29
[ "MIT" ]
221
2019-07-20T17:20:49.000Z
2021-08-02T06:21:10.000Z
apps/diet_web/lib/diet_web/controllers/page_controller.ex
isavita/diet-umbrella
0eee4d0dc4d9567888e4b69ccc7993e95d95ed29
[ "MIT" ]
null
null
null
defmodule DietWeb.PageController do use DietWeb, :controller alias DietWeb.NewsfeedLive def index(conn, _params) do render(conn, "index.html") end def newsfeed(conn, _params) do live_render( conn, NewsfeedLive, session: %{ current_user: conn.assigns.current_user, c...
18.619048
55
0.662404
1c216765e535b6f1ef1ad1e99fe109fc2b2eda99
3,924
ex
Elixir
lib/petal_components/modal.ex
gurujimani/petal_components
e62c34eabbd8e5a186c935a1fada847342da5279
[ "MIT" ]
null
null
null
lib/petal_components/modal.ex
gurujimani/petal_components
e62c34eabbd8e5a186c935a1fada847342da5279
[ "MIT" ]
null
null
null
lib/petal_components/modal.ex
gurujimani/petal_components
e62c34eabbd8e5a186c935a1fada847342da5279
[ "MIT" ]
null
null
null
defmodule PetalComponents.Modal do use Phoenix.Component alias Phoenix.LiveView.JS import PetalComponents.Class # prop title, :string # prop size, :string # slot default def modal(assigns) do assigns = assigns |> assign_new(:classes, fn -> get_classes(assigns) end) |> assign_new(:...
27.062069
218
0.541284
1c21a6f2a9b032ad5279c833675201735071d439
12,561
exs
Elixir
test/teiserver/protocols/spring/spring_battle_host_test.exs
Teifion/teiserver
131e002160e1e948cb55e56d62370ba66a972cba
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
test/teiserver/protocols/spring/spring_battle_host_test.exs
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
null
null
null
test/teiserver/protocols/spring/spring_battle_host_test.exs
Jazcash/teiserver
fec14784901cb2965d8c1350fe84107c57451877
[ "MIT" ]
2
2021-02-23T22:34:00.000Z
2021-04-08T13:31:36.000Z
defmodule Teiserver.SpringBattleHostTest do use Central.ServerCase, async: false require Logger # alias Teiserver.BitParse # alias Teiserver.User alias Teiserver.Battle.Lobby alias Teiserver.Protocols.Spring # alias Teiserver.Protocols.{SpringIn, SpringOut, Spring} import Central.Helpers.NumberHelper, o...
32.541451
128
0.675981
1c21c7dd666c141f2296e4cf878d6612ee605e62
619
ex
Elixir
lib/surface/base_component.ex
alexandrubagu/surface
b8ef74444e53f8325fb793fa1399966c2a4b1e7a
[ "MIT" ]
null
null
null
lib/surface/base_component.ex
alexandrubagu/surface
b8ef74444e53f8325fb793fa1399966c2a4b1e7a
[ "MIT" ]
null
null
null
lib/surface/base_component.ex
alexandrubagu/surface
b8ef74444e53f8325fb793fa1399966c2a4b1e7a
[ "MIT" ]
1
2020-04-21T18:49:15.000Z
2020-04-21T18:49:15.000Z
defmodule Surface.BaseComponent do @moduledoc false @doc """ Defines which module is responsible for translating the component. The returned module must implement the `Surface.Translator` behaviour. """ @callback translator() :: module defmacro __using__(translator: translator) do quote do imp...
23.807692
72
0.696284
1c21c9de6911013fd31b099fed30c60e30a25096
1,899
ex
Elixir
lib/app_api_web/v1/controllers/conversation_controller.ex
turbo-play/phoenix-services
9d3318c6b5d5ce6dead441758fc86ec34892b0f6
[ "Apache-2.0" ]
2
2018-07-05T15:13:12.000Z
2021-12-16T08:58:56.000Z
lib/app_api_web/v1/controllers/conversation_controller.ex
turbo-play/phoenix-services
9d3318c6b5d5ce6dead441758fc86ec34892b0f6
[ "Apache-2.0" ]
null
null
null
lib/app_api_web/v1/controllers/conversation_controller.ex
turbo-play/phoenix-services
9d3318c6b5d5ce6dead441758fc86ec34892b0f6
[ "Apache-2.0" ]
2
2018-08-13T21:37:00.000Z
2021-11-10T04:08:26.000Z
defmodule AppApiWeb.V1.ConversationController do use AppApiWeb, :controller require AppApi.EWallet alias AppApi.{ConversationFetcher, Repo, Conversation} alias AppApiWeb.V1.JSON.{ConversationSerializer, ResponseSerializer} require Logger def create(conn, %{"title" => title, "userIds" => user_ids, "userAttr...
47.475
194
0.729331
1c21e6d307e7482c0013f012e5abf732cf801936
938
exs
Elixir
apps/kv/mix.exs
bionikspoon/elixir_kv_umbrella
40d92a7026f83499eefdd69ddc20d1c3c5252c0f
[ "MIT" ]
null
null
null
apps/kv/mix.exs
bionikspoon/elixir_kv_umbrella
40d92a7026f83499eefdd69ddc20d1c3c5252c0f
[ "MIT" ]
null
null
null
apps/kv/mix.exs
bionikspoon/elixir_kv_umbrella
40d92a7026f83499eefdd69ddc20d1c3c5252c0f
[ "MIT" ]
null
null
null
defmodule KV.Mixfile do use Mix.Project def project do [app: :kv, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../...
22.333333
79
0.579957
1c22195e5e198bf6cd376bb9378d2bdd6f9aeab3
590
ex
Elixir
elixir/bob/lib/bob.ex
quatauta/exercism
8c8a477a83719cbe57630c6a2884d40cc1808149
[ "MIT" ]
1
2022-01-23T20:34:27.000Z
2022-01-23T20:34:27.000Z
elixir/bob/lib/bob.ex
quatauta/exercism
8c8a477a83719cbe57630c6a2884d40cc1808149
[ "MIT" ]
null
null
null
elixir/bob/lib/bob.ex
quatauta/exercism
8c8a477a83719cbe57630c6a2884d40cc1808149
[ "MIT" ]
null
null
null
defmodule Bob do @moduledoc false @spec hey(imput :: String.t()) :: String.t() def hey(input) do cond do empty?(input) -> "Fine. Be that way!" yelling_question?(input) -> "Calm down, I know what I'm doing!" question?(input) -> "Sure." yelling?(input) -> "Whoa, chill out!" true ->...
31.052632
76
0.559322
1c222f84bd2861a20c3e373353cb9f47c226270c
8,386
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/query_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/big_query/lib/google_api/big_query/v2/model/query_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/big_query/lib/google_api/big_query/v2/model/query_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...
88.273684
1,449
0.730742
1c226e08a10ed5e36196ecf5e64f65f9c13cff1b
799
ex
Elixir
lib/membrane_h264_ffmpeg/common.ex
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
7
2021-01-30T07:12:03.000Z
2021-12-12T05:28:29.000Z
lib/membrane_h264_ffmpeg/common.ex
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
9
2020-11-20T12:54:15.000Z
2022-03-24T10:26:10.000Z
lib/membrane_h264_ffmpeg/common.ex
geometerio/membrane_h264_ffmpeg_plugin
87a348ea595c74684d1a6724b98718ba416c7b3e
[ "Apache-2.0" ]
1
2021-06-21T23:33:50.000Z
2021-06-21T23:33:50.000Z
defmodule Membrane.H264.FFmpeg.Common do @moduledoc false use Ratio @h264_time_base 90_000 @doc """ Decoder and encoder requires timestamps in h264 time base, that is 1/90_000 [s] timestamps produced by this function are passed to the decoder so they must be integers. """ @spec to_h264_time_base(numb...
31.96
88
0.724656
1c22e5c6e0abbbf6c49b45adcfcb742fb8abc93c
5,185
exs
Elixir
test/slack/state_test.exs
nmohoric/Elixir-Slack
da6df7612cc0a8c56bc29498a8c636fa6f095d88
[ "MIT" ]
null
null
null
test/slack/state_test.exs
nmohoric/Elixir-Slack
da6df7612cc0a8c56bc29498a8c636fa6f095d88
[ "MIT" ]
1
2017-01-08T19:04:57.000Z
2017-01-08T20:35:02.000Z
test/slack/state_test.exs
nmohoric/Elixir-Slack
da6df7612cc0a8c56bc29498a8c636fa6f095d88
[ "MIT" ]
3
2017-08-16T23:02:52.000Z
2020-09-23T13:31:35.000Z
defmodule Slack.StateTest do use ExUnit.Case alias Slack.State test "channel_joined sets is_member to true" do new_slack = State.update( %{type: "channel_joined", channel: %{id: "123", members: ["123456", "654321"]}}, slack ) assert new_slack.channels["123"].is_member == true assert ...
23.894009
86
0.587078
1c22f0d3eabab0337ededd7c67fb708ce86a9a23
113
ex
Elixir
lib/fragment/integration_fields.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
10
2018-01-12T18:52:53.000Z
2022-02-17T06:00:21.000Z
lib/fragment/integration_fields.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
12
2018-02-14T23:08:08.000Z
2021-11-22T15:55:41.000Z
lib/fragment/integration_fields.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
8
2018-05-08T14:02:21.000Z
2021-12-15T08:19:55.000Z
defmodule Prismic.Fragment.IntegrationFields do @type t :: %__MODULE__{value: any()} defstruct [:value] end
18.833333
47
0.734513
1c2300ba4437e811a564def3904fa71795da9e31
301
ex
Elixir
elm_elixir/web/controllers/player_controller.ex
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
elm_elixir/web/controllers/player_controller.ex
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
elm_elixir/web/controllers/player_controller.ex
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
defmodule Tutorial.PlayerController do use Tutorial.Web, :controller def index(conn, _params) do players = Repo.all(Tutorial.Player) json conn, players end def show(conn, %{"id" => id}) do player = Repo.get(Tutorial.Player, String.to_integer(id)) json conn, player end end
21.5
61
0.69103
1c23431579665abab8a6eebd2c465411885fcf92
2,162
ex
Elixir
lib/astarte_core/mapping/database_retention_policy.ex
Annopaolo/astarte_core
8b3af2871e9ee63ec1f6f42c5a86045fd0c123af
[ "Apache-2.0" ]
16
2018-02-02T14:07:10.000Z
2021-02-03T13:57:30.000Z
lib/astarte_core/mapping/database_retention_policy.ex
Annopaolo/astarte_core
8b3af2871e9ee63ec1f6f42c5a86045fd0c123af
[ "Apache-2.0" ]
62
2019-03-14T15:52:12.000Z
2022-03-22T10:34:56.000Z
lib/astarte_core/mapping/database_retention_policy.ex
Annopaolo/astarte_core
8b3af2871e9ee63ec1f6f42c5a86045fd0c123af
[ "Apache-2.0" ]
9
2018-02-02T09:55:06.000Z
2021-03-04T15:15:08.000Z
# # This file is part of Astarte. # # Copyright 2017-2018 Ispirata Srl # # 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...
23.247312
94
0.654024
1c2343dfaacaf671c23f469c2ef34f7a0893b63d
311
ex
Elixir
apps/subs/test/support/bcrypt.ex
gitter-badger/opensubs.io
76d5b4d355a530c8f496efe3ac2095d87f078997
[ "MIT" ]
36
2018-02-03T10:58:51.000Z
2020-09-19T20:52:17.000Z
apps/subs/test/support/bcrypt.ex
joaquimadraz/subs
9a26144ed660d5ece849ee447a9e5de53a311408
[ "MIT" ]
8
2018-01-17T17:15:48.000Z
2020-07-06T08:56:54.000Z
apps/subs/test/support/bcrypt.ex
joaquimadraz/subs
9a26144ed660d5ece849ee447a9e5de53a311408
[ "MIT" ]
10
2018-05-21T18:20:32.000Z
2022-01-29T14:25:48.000Z
defmodule Subs.Test.Support.BCrypt do @moduledoc """ Provides a MockModule to encrypt password in test environment. """ def hashpwsalt(raw), do: Base.encode64(raw) def checkpw(password, encrypted_password) do Base.encode64(password) == encrypted_password end def dummy_checkpw, do: nil end
22.214286
64
0.73955
1c239fff6f900bf9270df42dc8c7623a03e918b3
90
exs
Elixir
test/squarestore_web/views/layout_view_test.exs
NinjaAnge/forksquare
ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d
[ "MIT" ]
null
null
null
test/squarestore_web/views/layout_view_test.exs
NinjaAnge/forksquare
ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d
[ "MIT" ]
null
null
null
test/squarestore_web/views/layout_view_test.exs
NinjaAnge/forksquare
ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d
[ "MIT" ]
null
null
null
defmodule SquarestoreWeb.LayoutViewTest do use SquarestoreWeb.ConnCase, async: true end
22.5
42
0.844444
1c23af455bd48e439e57bb07f58a1f2a966f565e
532
ex
Elixir
examples/ct_ecto/lib/ct/tree_path.ex
rmayhue/closure_table
adda01e78f0d9344c1bae9ae8f9d05bcdcea6e0d
[ "Apache-2.0" ]
16
2019-09-08T14:31:36.000Z
2022-02-14T19:50:23.000Z
examples/ct_ecto/lib/ct/tree_path.ex
rmayhue/closure_table
adda01e78f0d9344c1bae9ae8f9d05bcdcea6e0d
[ "Apache-2.0" ]
6
2019-09-14T06:03:41.000Z
2021-05-16T00:53:40.000Z
examples/ct_ecto/lib/ct/tree_path.ex
rmayhue/closure_table
adda01e78f0d9344c1bae9ae8f9d05bcdcea6e0d
[ "Apache-2.0" ]
7
2019-09-13T16:39:45.000Z
2021-05-11T06:15:04.000Z
defmodule CT.TreePath do use Ecto.Schema import Ecto.Changeset alias CT.Comment @primary_key false schema "tree_paths" do belongs_to :parent_comment, Comment, foreign_key: :ancestor belongs_to :comment, Comment, foreign_key: :descendant field :depth, :integer end def changeset(path, params ...
25.333333
64
0.716165
1c23b2aabab4036da295ac119d132f827600b096
7,818
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/application_security_groups.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/application_security_groups.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/application_security_groups.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Network.Api.ApplicationSecurityGroups do @moduledoc """ API calls for all endpoints tagged `ApplicationSecurityGrou...
51.098039
292
0.753773
1c23dc96c883c54d18f0f5321e7dd32ad2993c03
785
ex
Elixir
lib/amqp/channel.ex
nulian/amqp
4b22f46f2b7b6b6d98e17ad97629bab91a559dfb
[ "MIT" ]
null
null
null
lib/amqp/channel.ex
nulian/amqp
4b22f46f2b7b6b6d98e17ad97629bab91a559dfb
[ "MIT" ]
null
null
null
lib/amqp/channel.ex
nulian/amqp
4b22f46f2b7b6b6d98e17ad97629bab91a559dfb
[ "MIT" ]
1
2020-10-03T06:56:52.000Z
2020-10-03T06:56:52.000Z
defmodule AMQP.Channel do @moduledoc """ Functions to operate on Channels. """ alias AMQP.{Connection, Channel} defstruct [:conn, :pid] @type t :: %Channel{conn: Connection.t(), pid: pid} @doc """ Opens a new Channel in a previously opened Connection. """ @spec open(Connection.t()) :: {:ok, Chann...
23.787879
67
0.605096
1c240c241abc29921fd1351bfb5dc9768caa4375
2,225
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_location.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_location.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_location.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.981132
149
0.75236
1c241cf63204309b5eebe161f133c8a51cb59e10
251
ex
Elixir
test/support/component_case.ex
c4710n/petal_components
62392b067a4dec8ce76219eea0bfe6a6747925ce
[ "MIT" ]
215
2021-11-04T23:47:18.000Z
2022-03-31T11:53:15.000Z
test/support/component_case.ex
c4710n/petal_components
62392b067a4dec8ce76219eea0bfe6a6747925ce
[ "MIT" ]
22
2021-11-06T01:49:27.000Z
2022-03-28T03:05:40.000Z
test/support/component_case.ex
c4710n/petal_components
62392b067a4dec8ce76219eea0bfe6a6747925ce
[ "MIT" ]
22
2021-11-16T20:44:33.000Z
2022-03-28T11:46:33.000Z
defmodule ComponentCase do use ExUnit.CaseTemplate setup do # This will run before each test that uses this case :ok end using do quote do import Phoenix.LiveViewTest import Phoenix.LiveView.Helpers end end end
15.6875
56
0.693227
1c2443e71cea81b6dc0856501fbd5689c2546e84
195
ex
Elixir
exercises/practice/word-count/lib/word_count.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/practice/word-count/lib/word_count.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/practice/word-count/lib/word_count.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule WordCount do @doc """ Count the number of words in the sentence. Words are compared case-insensitively. """ @spec count(String.t()) :: map def count(sentence) do end end
17.727273
44
0.682051
1c2445ac3b575988b17e8fc366de69861a04f495
336
ex
Elixir
lib/serializers/revision_serializer.ex
mfeckie/phoenix_frontend_deploys
86adf2a7a51ce6757e50dfbca74677a93a6950c2
[ "MIT" ]
null
null
null
lib/serializers/revision_serializer.ex
mfeckie/phoenix_frontend_deploys
86adf2a7a51ce6757e50dfbca74677a93a6950c2
[ "MIT" ]
null
null
null
lib/serializers/revision_serializer.ex
mfeckie/phoenix_frontend_deploys
86adf2a7a51ce6757e50dfbca74677a93a6950c2
[ "MIT" ]
null
null
null
defmodule PhoenixFrontendDeploys.RevisionSerializer do use JaSerializer attributes [:id, :mtime, :size, :active] def mtime(struct, _opts) do {{year, month, day}, {hour, minute, second}} = struct.mtime "#{year}-#{month}-#{day} #{hour}:#{minute}:#{second}" end def id(struct, _opts) do struct.revi...
21
63
0.660714
1c245cdcc6448671542803745f08668d877e83b5
184
exs
Elixir
priv/repo/migrations/20150904220940_add_published_to_posts.exs
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
10
2015-09-23T05:26:35.000Z
2020-10-09T16:59:11.000Z
priv/repo/migrations/20150904220940_add_published_to_posts.exs
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
3
2015-09-23T05:29:42.000Z
2017-12-21T19:38:39.000Z
priv/repo/migrations/20150904220940_add_published_to_posts.exs
michelada/dash
dce8e85c07b093c2cb8880290a461a7fc76d2e7d
[ "MIT" ]
2
2015-10-03T12:25:28.000Z
2015-10-15T04:45:22.000Z
defmodule Dash.Repo.Migrations.AddPublishedToPosts do use Ecto.Migration def change do alter table(:posts) do add :published, :boolean, default: false end end end
18.4
53
0.717391
1c24683cc8c89edc6726cb4b270eb4c3548decdd
1,007
exs
Elixir
test/ex_json_schema/config_test.exs
hzamani/ex_json_schema
ad86d4482a8bda66ba9e6dc954b69261051047bf
[ "MIT" ]
null
null
null
test/ex_json_schema/config_test.exs
hzamani/ex_json_schema
ad86d4482a8bda66ba9e6dc954b69261051047bf
[ "MIT" ]
1
2019-09-24T17:50:02.000Z
2019-09-24T23:05:46.000Z
test/ex_json_schema/config_test.exs
hzamani/ex_json_schema
ad86d4482a8bda66ba9e6dc954b69261051047bf
[ "MIT" ]
1
2019-09-24T17:07:06.000Z
2019-09-24T17:07:06.000Z
defmodule ExJsonSchema.ConfigTest do use ExUnit.Case import ExJsonSchema.Schema, only: [resolve: 1] @schema %{"$ref" => "http://somewhere/schema.json"} def test_resolver(url), do: %{"foo" => url} setup do resolver = Application.get_env(:ex_json_schema, :remote_schema_resolver) on_exit fn -> Applic...
38.730769
115
0.7428
1c247a20fb7fad82de1e75346aa50321bbe93f13
3,258
ex
Elixir
apps/ewallet_config/lib/ewallet_config/setting_loader.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_config/lib/ewallet_config/setting_loader.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_config/lib/ewallet_config/setting_loader.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# 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 ...
31.631068
88
0.703806
1c24854cbc3c98873cca18d0aa6871c464110006
335
exs
Elixir
priv/repo/migrations/20200130185506_create_transactions.exs
juniornelson123/api_banking_teste
db263511d78fffe9e4081551817d006df2094316
[ "MIT" ]
null
null
null
priv/repo/migrations/20200130185506_create_transactions.exs
juniornelson123/api_banking_teste
db263511d78fffe9e4081551817d006df2094316
[ "MIT" ]
null
null
null
priv/repo/migrations/20200130185506_create_transactions.exs
juniornelson123/api_banking_teste
db263511d78fffe9e4081551817d006df2094316
[ "MIT" ]
null
null
null
defmodule ApiBanking.Repo.Migrations.CreateTransactions do use Ecto.Migration def change do create table(:transactions) do add :kind, :string add :amount, :float add :account_id, references(:accounts, on_delete: :nothing) timestamps() end create index(:transactions, [:account_...
20.9375
65
0.689552
1c248c24b7b665d4b21ae0e1f565dfdbd4078ee3
13,806
exs
Elixir
test/credo/check/warning/unused_regex_operation_test.exs
harlantwood/credo
4569c9c8cfcf74a2074d6911541da0265e52ae99
[ "MIT" ]
null
null
null
test/credo/check/warning/unused_regex_operation_test.exs
harlantwood/credo
4569c9c8cfcf74a2074d6911541da0265e52ae99
[ "MIT" ]
null
null
null
test/credo/check/warning/unused_regex_operation_test.exs
harlantwood/credo
4569c9c8cfcf74a2074d6911541da0265e52ae99
[ "MIT" ]
null
null
null
defmodule Credo.Check.Warning.UnusedRegexOperationTest do use Credo.TestHelper @described_check Credo.Check.Warning.UnusedRegexOperation test "it should NOT report expected code" do """ defmodule CredoSampleModule do def some_function(parameter1, parameter2) do Regex.compile!(parameter1) +...
26.807767
145
0.585035
1c24b9c906232264b3e09c0f7a0628e574207621
43,246
ex
Elixir
lib/ecto/adapters/postgres/connection.ex
samullen/ecto_sql
8086d4ac71f91b5f1b471ae914df3ffbe297f6f7
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/postgres/connection.ex
samullen/ecto_sql
8086d4ac71f91b5f1b471ae914df3ffbe297f6f7
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/postgres/connection.ex
samullen/ecto_sql
8086d4ac71f91b5f1b471ae914df3ffbe297f6f7
[ "Apache-2.0" ]
null
null
null
if Code.ensure_loaded?(Postgrex) do defmodule Ecto.Adapters.Postgres.Connection do @moduledoc false @default_port 5432 @behaviour Ecto.Adapters.SQL.Connection ## Module and Options @impl true def child_spec(opts) do opts |> Keyword.put_new(:port, @default_port) |> Postgrex...
36.962393
154
0.603247
1c24bd3aeeb08408ff7f246f6b2793f09750c2cb
3,501
ex
Elixir
lib/lucidboard/account.ex
craheb/lucidboard
8348549b31963527bc5db5f69ad55eda3728fec2
[ "MIT" ]
86
2019-01-07T20:49:04.000Z
2021-10-02T21:15:42.000Z
lib/lucidboard/account.ex
craheb/lucidboard
8348549b31963527bc5db5f69ad55eda3728fec2
[ "MIT" ]
26
2019-03-27T12:06:52.000Z
2020-09-20T05:21:09.000Z
lib/lucidboard/account.ex
craheb/lucidboard
8348549b31963527bc5db5f69ad55eda3728fec2
[ "MIT" ]
19
2015-01-06T19:02:49.000Z
2020-05-25T08:54:00.000Z
defmodule Lucidboard.Account do @moduledoc "Context for user things" import Ecto.Query alias Ecto.Changeset alias Lucidboard.Account.{Github, PingFed} alias Lucidboard.{Board, BoardRole, BoardSettings, Card, Repo, User} alias Ueberauth.Auth require Logger @providers %{ github: Github, pingfed: ...
25.007143
83
0.596401
1c24ecb376fc30ecd045509cd477258fb1de80c0
18,571
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/global_addresses.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/global_addresses.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/global_addresses.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
58.034375
2,276
0.650746
1c251996f96d9d0fc26ae44a63865025ff0e43f6
292
ex
Elixir
lib/cms/v2/repos/cms_repo.ex
noizu/KitchenSink
34f51fb93dfa913ba7be411475d02520d537e676
[ "MIT" ]
2
2019-04-15T22:17:59.000Z
2022-01-03T15:35:36.000Z
lib/cms/v2/repos/cms_repo.ex
noizu/KitchenSink
34f51fb93dfa913ba7be411475d02520d537e676
[ "MIT" ]
null
null
null
lib/cms/v2/repos/cms_repo.ex
noizu/KitchenSink
34f51fb93dfa913ba7be411475d02520d537e676
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2019 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.Cms.V2.CmsRepo do end
32.444444
81
0.311644
1c252c197550379e6399078151132f67a3c58fb3
5,593
exs
Elixir
test/terrasol_workspace_test.exs
mwmiller/terrasol
ea503c008c5b6a80c2fac24acc206ed1d17096a8
[ "MIT" ]
4
2021-06-27T17:27:33.000Z
2021-07-25T03:42:07.000Z
test/terrasol_workspace_test.exs
mwmiller/terrasol
ea503c008c5b6a80c2fac24acc206ed1d17096a8
[ "MIT" ]
null
null
null
test/terrasol_workspace_test.exs
mwmiller/terrasol
ea503c008c5b6a80c2fac24acc206ed1d17096a8
[ "MIT" ]
null
null
null
defmodule TerrasolWorkspaceTest do use ExUnit.Case doctest Terrasol.Workspace test "valid from spec" do assert Terrasol.Workspace.parse("+a.b") == %Terrasol.Workspace{ name: "a", string: "+a.b", suffix: "b" } assert Terrasol.Workspace.parse("+gardening.f...
33.692771
96
0.600215
1c253e14deb35222ab459c9ed1b4cd1a34a1d761
823
ex
Elixir
lib/2020/day25.ex
hallski/adventofcode
03efb385688e8072b0b44d35012297833498f799
[ "MIT" ]
null
null
null
lib/2020/day25.ex
hallski/adventofcode
03efb385688e8072b0b44d35012297833498f799
[ "MIT" ]
null
null
null
lib/2020/day25.ex
hallski/adventofcode
03efb385688e8072b0b44d35012297833498f799
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Y2020.Day25 do @subject_number 7 @magic_number 20_201_227 def run({card_key, door_key}) do card_key |> loop_size(@subject_number) |> encryption_key(door_key) end def loop_size(key, subject), do: loop_size(1, key, subject, 0) def loop_size(value, key, _subject, loop) whe...
23.514286
75
0.690158
1c258ea1be2346933c8e8769ba7f3a11c1142eda
948
ex
Elixir
lib/contentful/collection.ex
lustrousgorilla/contentful.ex
38d5014de7ad8c8631a4c81a427a1e386deb7f6e
[ "MIT" ]
null
null
null
lib/contentful/collection.ex
lustrousgorilla/contentful.ex
38d5014de7ad8c8631a4c81a427a1e386deb7f6e
[ "MIT" ]
null
null
null
lib/contentful/collection.ex
lustrousgorilla/contentful.ex
38d5014de7ad8c8631a4c81a427a1e386deb7f6e
[ "MIT" ]
null
null
null
defmodule Contentful.Collection do alias Contentful.Space @moduledoc """ Describes a Contentful collection, which is usually an API response of sys.type "Array". """ @callback fetch_all( [limit: pos_integer(), skip: non_neg_integer()], Space.t() | String.t(), String....
33.857143
90
0.487342
1c25b4872954ddf9053eff4a2c2cb01590e2387a
1,483
ex
Elixir
skippy/dashboard/lib/dashboard_web/views/error_helpers.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
null
null
null
skippy/dashboard/lib/dashboard_web/views/error_helpers.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
5
2020-07-17T23:35:42.000Z
2021-05-10T07:00:10.000Z
skippy/dashboard/lib/dashboard_web/views/error_helpers.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
null
null
null
defmodule DashboardWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_ta...
32.955556
78
0.671612
1c25b772b45e83c5c30fb31f6ee9f123f5096fd3
1,194
ex
Elixir
lib/loaded_bike/models/tour.ex
GBH/pedal
a2d68c3561f186ee3017a21b4170127b1625e18d
[ "MIT" ]
48
2017-04-25T16:02:08.000Z
2021-01-23T01:57:29.000Z
lib/loaded_bike/models/tour.ex
GBH/pedal
a2d68c3561f186ee3017a21b4170127b1625e18d
[ "MIT" ]
5
2018-03-09T20:17:55.000Z
2018-07-23T16:29:21.000Z
lib/loaded_bike/models/tour.ex
GBH/pedal
a2d68c3561f186ee3017a21b4170127b1625e18d
[ "MIT" ]
4
2017-05-21T14:38:38.000Z
2017-12-29T11:09:54.000Z
defmodule LoadedBike.Tour do use LoadedBike.Web, :model alias LoadedBike.User schema "tours" do field :title, :string field :short_description, :string field :description, :string field :status, TourStateEnum field :is_published, :boolean belongs_to :us...
25.956522
87
0.667504
1c25ba8eb9884ddd192b7186ff0a2468b5dd646c
531
ex
Elixir
lib/onde_server/horarios/horario.ex
ufra-lca/bage_server
3fd7592707624b7221035225b1a5113de856a7ff
[ "MIT" ]
null
null
null
lib/onde_server/horarios/horario.ex
ufra-lca/bage_server
3fd7592707624b7221035225b1a5113de856a7ff
[ "MIT" ]
3
2021-03-09T18:21:20.000Z
2021-09-01T22:58:23.000Z
lib/onde_server/horarios/horario.ex
ufra-lca/bage_server
3fd7592707624b7221035225b1a5113de856a7ff
[ "MIT" ]
null
null
null
defmodule OndeServer.Horarios.Horario do use Ecto.Schema import Ecto.Changeset schema "horarios" do field :hora_fim, :string field :hora_inicio, :string field :n_voltas, :integer field :zootec, :boolean, default: false field :itinerario, :string timestamps() end @doc false def chan...
25.285714
84
0.693032
1c25d847f225d3771cf6b714aebf48cc9b70f375
1,546
ex
Elixir
lib/magic_number.ex
miteshnath/elixir-magic-number
4c11fc229b1f9c9fa12aa28611b86e6572a51ac1
[ "MIT" ]
null
null
null
lib/magic_number.ex
miteshnath/elixir-magic-number
4c11fc229b1f9c9fa12aa28611b86e6572a51ac1
[ "MIT" ]
null
null
null
lib/magic_number.ex
miteshnath/elixir-magic-number
4c11fc229b1f9c9fa12aa28611b86e6572a51ac1
[ "MIT" ]
null
null
null
defmodule MagicNumber do @moduledoc """ The module to determine a file's type from its [magic number](https://en.wikipedia.org/wiki/File_format#Magic_number). """ @typedoc """ A media type is a two-part identifier for file format. For example: ```elixir {:application, :zip} # application/zip {:image...
25.766667
106
0.563389
1c261eeda9e7737ca1580d4d6eb861f8853c6e24
11,855
ex
Elixir
lib/ecto/query/inspect.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/inspect.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/inspect.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
null
null
null
import Inspect.Algebra import Kernel, except: [to_string: 1] alias Ecto.Query.{DynamicExpr, JoinExpr, QueryExpr, WithExpr} defimpl Inspect, for: Ecto.Query.DynamicExpr do def inspect(%DynamicExpr{binding: binding} = dynamic, opts) do joins = binding |> Enum.drop(1) |> Enum.with_index() |...
27.959906
94
0.595108
1c2633debfc9f7da331dfb8bc032a71c3377a035
532
ex
Elixir
lib/penelope/ml/text/token_filter.ex
pylon/penelope
5b0310dc0647a8e20ab1b4c10d3820f11cfb2601
[ "Apache-2.0" ]
53
2017-10-13T06:39:49.000Z
2022-03-28T19:43:42.000Z
lib/penelope/ml/text/token_filter.ex
pylon/penelope
5b0310dc0647a8e20ab1b4c10d3820f11cfb2601
[ "Apache-2.0" ]
12
2018-01-08T23:05:37.000Z
2019-08-02T12:59:27.000Z
lib/penelope/ml/text/token_filter.ex
pylon/penelope
5b0310dc0647a8e20ab1b4c10d3820f11cfb2601
[ "Apache-2.0" ]
4
2018-06-13T19:45:57.000Z
2019-10-17T13:37:06.000Z
defmodule Penelope.ML.Text.TokenFilter do @moduledoc """ The the token filter removes tokens from a token list in the pipeline. """ @doc """ removes stop word tokens from the document stream """ @spec transform( model :: %{tokens: [String.t()]}, context :: map, x :: [[String...
24.181818
72
0.599624
1c263fedd447d64b184b0f525b5d8aa8327ff56c
2,835
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/computation_topology.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/computation_topology.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/computation_topology.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 ...
45.725806
149
0.724868
1c264f26b71bc025efc561d400b45f57b6613c6b
607
ex
Elixir
frameworks/phoenix_benchmark/web/router.ex
serv/framework-benchmarks
a2a15d112fb56eb7aaa676874853a26c55243817
[ "MIT" ]
null
null
null
frameworks/phoenix_benchmark/web/router.ex
serv/framework-benchmarks
a2a15d112fb56eb7aaa676874853a26c55243817
[ "MIT" ]
null
null
null
frameworks/phoenix_benchmark/web/router.ex
serv/framework-benchmarks
a2a15d112fb56eb7aaa676874853a26c55243817
[ "MIT" ]
null
null
null
defmodule PhoenixBenchmark.Router do use PhoenixBenchmark.Web, :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 scope "/", Phoenix...
20.233333
57
0.685338
1c265b4b9bca522f0440f17e11ee592223f07983
698
exs
Elixir
test/hauer/fs_test.exs
nanaki82/hauer
7d717a913933c7f71391d0eadb724c41bdd3ed77
[ "MIT" ]
null
null
null
test/hauer/fs_test.exs
nanaki82/hauer
7d717a913933c7f71391d0eadb724c41bdd3ed77
[ "MIT" ]
null
null
null
test/hauer/fs_test.exs
nanaki82/hauer
7d717a913933c7f71391d0eadb724c41bdd3ed77
[ "MIT" ]
null
null
null
defmodule Hauer.FS.FSTest do use ExUnit.Case @resource_name "vQJ1pEUiAMr5NklN77C4" # to avoid collision with existent resources test "create and delete a resource" do {:ok, file_path} = Hauer.FS.add_resource(@resource_name) assert String.contains?(file_path, "#{@resource_name}.ex") assert Hauer.FS....
29.083333
84
0.72063
1c266d8122e5d898ec94c6134a7a1a5dd4b10fee
603
ex
Elixir
lib/mix/distill/category.ex
allen-garvey/artour
fce27b234d11a3e434c897b5fa3178b7c126245f
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/artour/lib/mix/distill/category.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/artour/lib/mix/distill/category.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
defmodule Distill.Category do alias Distill.PageRoute @doc """ Returns list of tuples in format: path (string), controller module(atom), controller handler function (atom), params (map) e.g. {"/posts", Artour.PostController, :index, %{}} """ def routes() do Artour.Public.categories_with_posts() |> E...
33.5
150
0.693201
1c267fbaf3f5395c01c200ec60613bf68d69c556
3,290
ex
Elixir
test/process_managers/support/example_aggregate.ex
mquickform/commanded
260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2
[ "MIT" ]
null
null
null
test/process_managers/support/example_aggregate.ex
mquickform/commanded
260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2
[ "MIT" ]
1
2018-12-05T18:17:08.000Z
2018-12-05T18:17:08.000Z
test/process_managers/support/example_aggregate.ex
mquickform/commanded
260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2
[ "MIT" ]
1
2018-12-05T18:15:03.000Z
2018-12-05T18:15:03.000Z
defmodule Commanded.ProcessManagers.ExampleAggregate do @moduledoc false alias Commanded.ProcessManagers.ExampleAggregate defstruct uuid: nil, state: nil, items: [] defmodule Commands do defmodule(Start, do: defstruct([:aggregate_uuid])) defmodule(Publish, do: defstruct([:aggre...
35.376344
90
0.72462
1c26965ea0a02c165815d8ae4af743ff91e21772
549
ex
Elixir
lib/oembed/providers/twitter_provider.ex
byoungdale/elixir-oembed
4ac75443242fea8094e9633f7656135fa42fab5f
[ "MIT" ]
null
null
null
lib/oembed/providers/twitter_provider.ex
byoungdale/elixir-oembed
4ac75443242fea8094e9633f7656135fa42fab5f
[ "MIT" ]
null
null
null
lib/oembed/providers/twitter_provider.ex
byoungdale/elixir-oembed
4ac75443242fea8094e9633f7656135fa42fab5f
[ "MIT" ]
null
null
null
defmodule OEmbed.TwitterProvider do @moduledoc """ oEmbed provider for Twitter URLs. """ use OEmbed.Provider @oembed_endpoint "https://publish.twitter.com/oembed?url=" @doc """ Check if this provider supports given URL. """ def provides?(url) do Regex.match?( ~r/(^|[^'"])(https?:\/\/twitte...
21.115385
84
0.602914
1c269e6e69b2046493b4cada1fd196c88a13676e
186
exs
Elixir
priv/test_repo/migrations/20200708165750_create_annacl_tables.exs
annatel/annacl
55a7eff89617fe9cf41f532cf3f62566bd4b0d9a
[ "MIT" ]
7
2020-07-26T18:24:19.000Z
2021-06-22T10:15:48.000Z
priv/test_repo/migrations/20200708165750_create_annacl_tables.exs
annatel/annacl
55a7eff89617fe9cf41f532cf3f62566bd4b0d9a
[ "MIT" ]
2
2020-08-15T00:58:53.000Z
2020-10-31T16:54:11.000Z
priv/test_repo/migrations/20200708165750_create_annacl_tables.exs
annatel/annacl
55a7eff89617fe9cf41f532cf3f62566bd4b0d9a
[ "MIT" ]
2
2020-10-22T20:13:21.000Z
2020-10-30T14:53:10.000Z
defmodule Annacl.TestRepo.Migrations.CreateAnnaclTables do use Ecto.Migration def up do Annacl.Migrations.V1.up() end def down do Annacl.Migrations.V1.down() end end
15.5
58
0.731183
1c26a7fc0f1d9efd2c8b81868730f875ad16f6f4
4,691
exs
Elixir
apps/artemis/test/artemis/schemas/recognition_test.exs
artemis-platform/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2020-04-23T02:29:18.000Z
2020-07-07T13:13:17.000Z
apps/artemis/test/artemis/schemas/recognition_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
4
2020-04-26T20:35:36.000Z
2020-11-10T22:13:19.000Z
apps/artemis/test/artemis/schemas/recognition_test.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
null
null
null
defmodule Artemis.RecognitionTest do use Artemis.DataCase use ExUnit.Case, async: true import Ecto.Repo import Artemis.Factories alias Artemis.Recognition alias Artemis.Repo alias Artemis.User alias Artemis.UserRecognition @preload [:created_by, :user_recognitions, :users] describe "attributes -...
27.922619
111
0.656363
1c26b1432675176d1ce17e01d55b43a801438348
15,212
ex
Elixir
lib/absinthe/relay/connection.ex
jlgeering/absinthe_relay
94e0abb22bc5f63b5d25644b212c2ac531c433f7
[ "MIT" ]
null
null
null
lib/absinthe/relay/connection.ex
jlgeering/absinthe_relay
94e0abb22bc5f63b5d25644b212c2ac531c433f7
[ "MIT" ]
null
null
null
lib/absinthe/relay/connection.ex
jlgeering/absinthe_relay
94e0abb22bc5f63b5d25644b212c2ac531c433f7
[ "MIT" ]
null
null
null
defmodule Absinthe.Relay.Connection.Options do @moduledoc false @typedoc false @type t :: %{ after: nil | integer, before: nil | integer, first: nil | integer, last: nil | integer } defstruct after: nil, before: nil, first: nil, last: nil end defmodule Absinthe...
27.115865
107
0.630818
1c26d0f3bc5b1d8e207bf8a5e4c5f2cbab5d545c
1,481
ex
Elixir
lib/steve/harvey.ex
frostu8/steve
9018a3142bf4e51efc8e4dd0b307406a1075b3c8
[ "Unlicense" ]
null
null
null
lib/steve/harvey.ex
frostu8/steve
9018a3142bf4e51efc8e4dd0b307406a1075b3c8
[ "Unlicense" ]
null
null
null
lib/steve/harvey.ex
frostu8/steve
9018a3142bf4e51efc8e4dd0b307406a1075b3c8
[ "Unlicense" ]
null
null
null
defmodule Steve.Harvey do @prefix "steve!" use Nostrum.Consumer alias Nostrum.Api alias Nostrum.Voice def start_link do Consumer.start_link(__MODULE__) end def handle_event({:MESSAGE_CREATE, msg, _ws_state}) do # verify we are in a guild if msg.guild_id do member = Map.merge(msg.mem...
25.534483
104
0.642809
1c272b455c3cba0425f26f26700cb13bd5636726
8,118
exs
Elixir
test/task_bunny/worker_test.exs
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
null
null
null
test/task_bunny/worker_test.exs
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
3
2019-08-13T13:05:26.000Z
2021-11-10T08:12:51.000Z
test/task_bunny/worker_test.exs
salemove/task_bunny
f1a69291b47f59cab1c010d48fda7551132ae51c
[ "MIT" ]
1
2021-02-24T19:50:27.000Z
2021-02-24T19:50:27.000Z
defmodule TaskBunny.WorkerTest do use ExUnit.Case, async: false import TaskBunny.QueueTestHelper alias TaskBunny.{Connection, Worker, Queue, JobTestHelper} alias JobTestHelper.TestJob @queue "task_bunny.worker_test" defp all_queues do Queue.queue_with_subqueues(@queue) end defp start_worker() do ...
28.384615
98
0.638827
1c2740521bb1061df5eb0d270ada3728582d9e95
160
ex
Elixir
lib/restlax.ex
kianmeng/restlax
6cded7cd34c49216d182efe4f71e62321545678d
[ "MIT" ]
1
2021-02-09T09:25:37.000Z
2021-02-09T09:25:37.000Z
lib/restlax.ex
kianmeng/restlax
6cded7cd34c49216d182efe4f71e62321545678d
[ "MIT" ]
3
2021-05-17T01:33:35.000Z
2022-01-27T00:23:31.000Z
lib/restlax.ex
kianmeng/restlax
6cded7cd34c49216d182efe4f71e62321545678d
[ "MIT" ]
1
2022-01-27T00:06:03.000Z
2022-01-27T00:06:03.000Z
defmodule Restlax do @readme_path "README.md" @external_resource @readme_path @moduledoc File.read!(@readme_path) |> String.replace(~r/^# .+?\n/, "") end
26.666667
73
0.69375
1c27411adce8a6223fe12039266142e6bebdfc5c
286
ex
Elixir
lib/action_for_children/repo.ex
cast-fuse/action-for-children
3cded6e04abdaf13d4d1033bf1daa783bc0e5ef2
[ "BSD-3-Clause" ]
null
null
null
lib/action_for_children/repo.ex
cast-fuse/action-for-children
3cded6e04abdaf13d4d1033bf1daa783bc0e5ef2
[ "BSD-3-Clause" ]
57
2017-05-25T10:32:59.000Z
2021-05-06T21:03:39.000Z
lib/action_for_children/repo.ex
cast-fuse/action-for-children
3cded6e04abdaf13d4d1033bf1daa783bc0e5ef2
[ "BSD-3-Clause" ]
null
null
null
defmodule ActionForChildren.Repo do use Ecto.Repo, otp_app: :action_for_children @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
23.833333
66
0.72028
1c27438dfa3f21d1e0f6a70487eae2ae57f9176d
1,263
exs
Elixir
mix.exs
massivefermion/Enux
19c95a0c75b3b2285452210d6e5c84b3376d8788
[ "Apache-2.0" ]
1
2021-07-10T07:16:13.000Z
2021-07-10T07:16:13.000Z
mix.exs
massivefermion/enux
19c95a0c75b3b2285452210d6e5c84b3376d8788
[ "Apache-2.0" ]
null
null
null
mix.exs
massivefermion/enux
19c95a0c75b3b2285452210d6e5c84b3376d8788
[ "Apache-2.0" ]
null
null
null
defmodule Enux.MixProject do use Mix.Project @source_url "https://github.com/massivefermion/enux" def project do [ app: :enux, version: "0.9.14", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps(), source_url: @source_url, description: description(...
20.704918
111
0.570071
1c2783c9af8e204a72cfa11ef9a93519c19fe829
955
exs
Elixir
code/project/4/issues/mix.exs
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
null
null
null
code/project/4/issues/mix.exs
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
programming-elixir-book/code/project/4/issues/mix.exs
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
#--- # Excerpted from "Programming Elixir ≥ 1.6", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http...
23.292683
85
0.586387
1c278e520a565a89f304ccb663fcde0d1197f20d
3,618
ex
Elixir
lib/sanbase/clickhouse/fees/fees.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase/clickhouse/fees/fees.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase/clickhouse/fees/fees.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Clickhouse.Fees do import Sanbase.Utils.Transform, only: [maybe_apply_function: 2] alias Sanbase.Model.Project alias Sanbase.ClickhouseRepo def eth_fees_distribution(from, to, limit) do {query, args} = eth_fees_distribution_query(from, to, limit) ClickhouseRepo.query_transform(query...
32.594595
86
0.628248
1c278fce68a2ffec126ce18846d6f6cd8de47ffb
391
ex
Elixir
lib/hl7/2.3/segments/apr.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3/segments/apr.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3/segments/apr.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_3.Segments.APR do @moduledoc false require Logger alias HL7.V2_3.{DataTypes} use HL7.Segment, fields: [ segment: nil, time_selection_criteria: DataTypes.Scv, resource_selection_criteria: DataTypes.Scv, location_selection_criteria: DataTypes.Scv, slot_spacing_...
23
49
0.721228
1c27960e4721367a7cf0487190bc21b1c584bc87
4,008
exs
Elixir
test/etherscan/util_test.exs
devlin-Smith/etherscan
c56d6f3f8eefa49c9ac8884461387a3af44fac03
[ "MIT" ]
14
2017-10-20T03:10:44.000Z
2021-10-04T03:00:07.000Z
test/etherscan/util_test.exs
devlin-Smith/etherscan
c56d6f3f8eefa49c9ac8884461387a3af44fac03
[ "MIT" ]
5
2017-10-20T03:36:37.000Z
2018-03-25T00:58:01.000Z
test/etherscan/util_test.exs
devlin-Smith/etherscan
c56d6f3f8eefa49c9ac8884461387a3af44fac03
[ "MIT" ]
4
2018-03-25T00:49:18.000Z
2019-11-28T00:33:06.000Z
defmodule Etherscan.UtilTest do use ExUnit.Case, async: true alias Etherscan.Util describe "format_balance/1" do test "with valid balance converts to ether" do assert Util.format_balance("10000000000000000000000") == "10000.0" end end describe "convert/2" do test "converts wei to kwei" do...
35.157895
86
0.660679
1c279e3cb4c47e5cadc90be34aebac5437f360b2
1,532
exs
Elixir
apps/game_of_life_web/mix.exs
tslim/elixir-phoenix-life
c86fd69198c9193bdcd5b3b1b504f41f67268139
[ "MIT" ]
1
2016-09-28T07:38:55.000Z
2016-09-28T07:38:55.000Z
apps/game_of_life_web/mix.exs
tslim/elixir-phoenix-life
c86fd69198c9193bdcd5b3b1b504f41f67268139
[ "MIT" ]
null
null
null
apps/game_of_life_web/mix.exs
tslim/elixir-phoenix-life
c86fd69198c9193bdcd5b3b1b504f41f67268139
[ "MIT" ]
null
null
null
defmodule GameOfLife.Web.Mixfile do use Mix.Project def project do [app: :game_of_life_web, version: "0.0.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.3", elixirc_paths: elixirc_path...
31.265306
121
0.597911
1c27a27fafbe82f0c909c2cd0cb9ee204c3d2aaa
1,925
ex
Elixir
lib/pixie/adapters/cowboy/websocket_handler.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/adapters/cowboy/websocket_handler.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/adapters/cowboy/websocket_handler.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
defmodule Pixie.Adapter.Cowboy.WebsocketHandler do require Logger @behaviour :cowboy_websocket_handler @max_messages_per_frame 64 def init _transport, req, opts do init req, opts end def init req, opts do {:upgrade, :protocol, :cowboy_websocket, req, opts} end def upgrade req, env, _handler, ...
22.126437
73
0.663377
1c27a3a4c5ae9484f601c62d06106df36ebb66e4
2,061
exs
Elixir
test/acceptance/html/inline_ial_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/acceptance/html/inline_ial_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/acceptance/html/inline_ial_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
1
2020-03-31T19:53:15.000Z
2020-03-31T19:53:15.000Z
defmodule Acceptance.Html.InlineIalTest do use ExUnit.Case, async: true import Support.Helpers, only: [as_html: 1] describe "IAL no errors" do test "link with simple ial" do markdown = "[link](url){: .classy}" html = "<p><a href=\"url\" class=\"classy\">link</a></p>\n" messages = [] ...
29.869565
91
0.572538
1c27a77591819570f159ea891d6ba75355c80eac
1,818
ex
Elixir
phoenix/web/controllers/post_controller.ex
pfac/generated
3611d887bb4eba1ef63b1f16ed1dba54ce94f341
[ "MIT" ]
null
null
null
phoenix/web/controllers/post_controller.ex
pfac/generated
3611d887bb4eba1ef63b1f16ed1dba54ce94f341
[ "MIT" ]
null
null
null
phoenix/web/controllers/post_controller.ex
pfac/generated
3611d887bb4eba1ef63b1f16ed1dba54ce94f341
[ "MIT" ]
null
null
null
defmodule Phoenix.PostController do use Phoenix.Web, :controller alias Phoenix.Post plug :scrub_params, "post" when action in [:create, :update] def index(conn, _params) do post = Repo.all(Post) render(conn, "index.html", post: post) end def new(conn, _params) do changeset = Post.changeset(%...
26.735294
67
0.611661
1c27ad2899041c3e80bb8f4232c0b1664b0a9109
682
ex
Elixir
apps/ewallet/lib/ewallet/scheduler.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/lib/ewallet/scheduler.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/lib/ewallet/scheduler.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# 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 ...
35.894737
74
0.766862
1c27afdb9d83248ca9eb035af2fe0794547bc7fd
4,228
ex
Elixir
lib/chat_api_web/controllers/slack_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
2
2020-09-21T07:27:13.000Z
2021-12-20T13:23:56.000Z
lib/chat_api_web/controllers/slack_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
null
null
null
lib/chat_api_web/controllers/slack_controller.ex
rlanga/papercups
358ca46c344908585cd0214a0de96e5676120c68
[ "MIT" ]
1
2021-08-29T14:10:18.000Z
2021-08-29T14:10:18.000Z
defmodule ChatApiWeb.SlackController do use ChatApiWeb, :controller require Logger alias ChatApi.{Messages, Slack, SlackAuthorizations, SlackConversationThreads} action_fallback ChatApiWeb.FallbackController def oauth(conn, %{"code" => code}) do Logger.info("Code from Slack OAuth: #{inspect(code)}") ...
29.158621
97
0.588694
1c27b82a501166a5831fb7f1d24018b9e60f142d
1,061
ex
Elixir
lib/lib_lat_lon/data/bounds.ex
devoutsalsa/lib_lat_lon
a9fef01e67ad92f1b5ff042173f6986ad6f5fd48
[ "MIT" ]
11
2018-01-11T13:13:21.000Z
2021-04-18T09:48:00.000Z
lib/lib_lat_lon/data/bounds.ex
devoutsalsa/lib_lat_lon
a9fef01e67ad92f1b5ff042173f6986ad6f5fd48
[ "MIT" ]
1
2021-04-18T02:54:11.000Z
2021-04-18T02:54:11.000Z
lib/lib_lat_lon/data/bounds.ex
devoutsalsa/lib_lat_lon
a9fef01e67ad92f1b5ff042173f6986ad6f5fd48
[ "MIT" ]
2
2019-11-05T12:14:36.000Z
2021-04-17T17:03:07.000Z
defmodule LibLatLon.Bounds do @moduledoc """ Convenient storage for geo bounds. """ @typedoc """ The `Bouds` struct has two fields (`from` and `to`). * `from` denoting the _northeast_ boundary, and * `to` denoting the _southwest_ boundary. # Example _GoogleMaps API_ returns the same structure from...
25.878049
98
0.587182
1c283ba799011583defb4673e04c2ac41c9e1a57
1,265
ex
Elixir
lib/mix/tasks/hex_publish.ex
minhajuddin/http_parser
c5aba3cde237bc66d9d88e1248ad052c8a488a67
[ "MIT" ]
null
null
null
lib/mix/tasks/hex_publish.ex
minhajuddin/http_parser
c5aba3cde237bc66d9d88e1248ad052c8a488a67
[ "MIT" ]
null
null
null
lib/mix/tasks/hex_publish.ex
minhajuddin/http_parser
c5aba3cde237bc66d9d88e1248ad052c8a488a67
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.HexPublish do use Mix.Task @shortdoc "Publish package to hex.pm, create a git tag and push it to GitHub" @moduledoc """ hex_release uses shipit. It performs many sanity checks before pushing the hex package. Check out https://github.com/wojtekmach/shipit for more details """ def r...
23
101
0.664822
1c28439c33b4c119faef12fad6f02e2d823f9a6f
5,839
exs
Elixir
.credo.exs
JohnKacz/phoenix_datatables
747b184972614d87aeb0cd644593951703d718db
[ "MIT" ]
12
2017-10-01T10:37:11.000Z
2019-08-09T07:02:02.000Z
.credo.exs
JohnKacz/phoenix_datatables
747b184972614d87aeb0cd644593951703d718db
[ "MIT" ]
8
2017-11-07T19:53:02.000Z
2021-01-18T22:15:35.000Z
.credo.exs
JohnKacz/phoenix_datatables
747b184972614d87aeb0cd644593951703d718db
[ "MIT" ]
7
2018-07-03T08:18:17.000Z
2020-05-28T03:06:02.000Z
# 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.993151
80
0.653537
1c285d4d269fe31dda4e7567eed3e531a069fbda
3,187
ex
Elixir
apps/exsemantica_phx/lib/exsemantica_phx/posting.ex
Chlorophytus/exsemantica
f1c64cb8ae0543e5a2f015a65071d81d57fa3224
[ "Apache-2.0" ]
1
2021-09-11T15:46:04.000Z
2021-09-11T15:46:04.000Z
apps/exsemantica_phx/lib/exsemantica_phx/posting.ex
Chlorophytus/exsemantica
f1c64cb8ae0543e5a2f015a65071d81d57fa3224
[ "Apache-2.0" ]
4
2021-01-18T00:49:02.000Z
2022-02-23T05:18:37.000Z
apps/exsemantica_phx/lib/exsemantica_phx/posting.ex
Chlorophytus/exsemantica
f1c64cb8ae0543e5a2f015a65071d81d57fa3224
[ "Apache-2.0" ]
null
null
null
defmodule ExsemanticaPhx.Posting do require LdGraph2.Agent import Ecto.Query def new_interest(user, title, content) do valid = ExsemanticaPhx.Sanitize.valid_interest?(title) cond do valid -> max_id = ExsemanticaPhx.Search.max_id() + 1 {:ok, _} = ExsemanticaPhx.Repo.trans...
26.122951
86
0.597741
1c285e531fbed98859e3802af638b8d0754f670b
1,901
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/get_spreadsheet_by_data_filter_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/get_spreadsheet_by_data_filter_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/get_spreadsheet_by_data_filter_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
37.27451
157
0.75434
1c286c2fd9873ddd104673bc8b112f7fe5df1140
2,179
exs
Elixir
test/absinthe/phase/document/validation/unique_input_field_names_test.exs
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
null
null
null
test/absinthe/phase/document/validation/unique_input_field_names_test.exs
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
null
null
null
test/absinthe/phase/document/validation/unique_input_field_names_test.exs
dmarkow/absinthe
707690bf06189b3a4b13959908a2eb52a3951179
[ "MIT" ]
null
null
null
defmodule Absinthe.Phase.Document.Validation.UniqueInputFieldNamesTest do @phase Absinthe.Phase.Document.Validation.UniqueInputFieldNames use Absinthe.ValidationPhaseCase, phase: @phase, async: true alias Absinthe.{Blueprint} defp duplicate(name, line, values) do List.wrap(values) |> Enum.map...
19.809091
73
0.477742
1c286c38c4436ee0ece9a49b56013bced89829a8
623
ex
Elixir
generated-sources/elixir/mojang-status/lib/com/github/asyncmc/mojang/status/elixir/server/model/api_status.ex
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/elixir/mojang-status/lib/com/github/asyncmc/mojang/status/elixir/server/model/api_status.ex
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/elixir/mojang-status/lib/com/github/asyncmc/mojang/status/elixir/server/model/api_status.ex
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule com.github.asyncmc.mojang.status.elixir.server.Model.ApiStatus do @moduledoc """ The status of a Mojang services. Possible values are green (no is...
23.961538
122
0.719101
1c288846c36f70362ddb4fff7da65fe4a6f14af1
1,515
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/channel_card.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/channel_card.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/channel_card.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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...
30.3
109
0.718152
1c28ab48199c1371da136861ccffd8f855dfaefe
3,587
ex
Elixir
lib/shiritorishi/kana_dict/table.ex
Foo-x/Shiritorishi
ee9b58f74c51941f958c986578c95c26a9920816
[ "Apache-2.0" ]
null
null
null
lib/shiritorishi/kana_dict/table.ex
Foo-x/Shiritorishi
ee9b58f74c51941f958c986578c95c26a9920816
[ "Apache-2.0" ]
null
null
null
lib/shiritorishi/kana_dict/table.ex
Foo-x/Shiritorishi
ee9b58f74c51941f958c986578c95c26a9920816
[ "Apache-2.0" ]
null
null
null
defmodule Shiritorishi.KanaDict.Table do def hira2kata do %{ "あ" => "ア", "い" => "イ", "う" => "ウ", "え" => "エ", "お" => "オ", "か" => "カ", "き" => "キ", "く" => "ク", "け" => "ケ", "こ" => "コ", "さ" => "サ", "し" => "シ", "す" => "ス", "せ" => "セ", ...
17
40
0.136883
1c28b920fec3a6cb8d45ea1697979e0f197ba1ef
891
exs
Elixir
config/config.exs
casmacc/phoenix_helloworld
6bcdbe7a5cf20f02bdb50b5aa98415d1fdb7f2a3
[ "MIT" ]
null
null
null
config/config.exs
casmacc/phoenix_helloworld
6bcdbe7a5cf20f02bdb50b5aa98415d1fdb7f2a3
[ "MIT" ]
null
null
null
config/config.exs
casmacc/phoenix_helloworld
6bcdbe7a5cf20f02bdb50b5aa98415d1fdb7f2a3
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # Configures the endpoint config :phoenix_helloworld, PhoenixHelloworldWeb.Endpoint, ...
37.125
86
0.773288
1c28d51356da53b62c76b409de06b85376155c33
3,518
ex
Elixir
lib/makeup/formatters/html/html_formatter.ex
davydog187/makeup
f57fb043865a1184dbd86004797d9d1c6eb16412
[ "BSD-2-Clause" ]
31
2020-10-02T09:01:30.000Z
2022-03-18T14:58:01.000Z
lib/makeup/formatters/html/html_formatter.ex
davydog187/makeup
f57fb043865a1184dbd86004797d9d1c6eb16412
[ "BSD-2-Clause" ]
21
2020-09-29T12:59:58.000Z
2022-03-07T15:21:48.000Z
lib/makeup/formatters/html/html_formatter.ex
davydog187/makeup
f57fb043865a1184dbd86004797d9d1c6eb16412
[ "BSD-2-Clause" ]
5
2020-12-01T20:17:51.000Z
2022-03-07T09:10:13.000Z
defmodule Makeup.Formatters.HTML.HTMLFormatter do @moduledoc """ Turns a list of tokens into HTML fragments. """ @group_highlight_js "lib/makeup/formatters/html/scripts/group_highlighter_javascript.js" |> File.read! defp render_token(escaped_value, css_class, meta, highlight_tag) do group_id = meta[:gro...
24.774648
104
0.648664
1c28d6c7034fba4286858712d38309432e12d8cf
481
exs
Elixir
mix.exs
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
9
2017-09-27T21:25:34.000Z
2020-10-07T16:14:26.000Z
mix.exs
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
1
2017-09-27T21:26:00.000Z
2017-10-01T11:49:11.000Z
mix.exs
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
null
null
null
defmodule DistributedMkp.Mixfile do use Mix.Project def project do [ apps_path: "apps", start_permanent: Mix.env == :prod, deps: deps() ] end # Dependencies listed here are available only for this # project and cannot be accessed from applications inside # the apps folder. # ...
20.041667
59
0.617464
1c28dd31652da86c71a4e8fb90f4828b94b4dd45
3,462
ex
Elixir
lib/kaffe/config/consumer.ex
harshavardhangelivi/kaffe
db08f159eccad6c682f5b55e001f0d5aa9bb2f3d
[ "MIT" ]
null
null
null
lib/kaffe/config/consumer.ex
harshavardhangelivi/kaffe
db08f159eccad6c682f5b55e001f0d5aa9bb2f3d
[ "MIT" ]
null
null
null
lib/kaffe/config/consumer.ex
harshavardhangelivi/kaffe
db08f159eccad6c682f5b55e001f0d5aa9bb2f3d
[ "MIT" ]
null
null
null
defmodule Kaffe.Config.Consumer do import Kaffe.Config, only: [heroku_kafka_endpoints: 0, parse_endpoints: 1] def configuration do %{ endpoints: endpoints(), subscriber_name: subscriber_name(), consumer_group: consumer_group(), topics: topics(), group_config: consumer_group_config...
24.380282
99
0.717504
1c28f59f2bb19cc49735f7319d04251e9838b0b4
4,727
ex
Elixir
web/remotings/remoting_server.ex
fangkunping/micro-server-shell
e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d
[ "Apache-2.0" ]
null
null
null
web/remotings/remoting_server.ex
fangkunping/micro-server-shell
e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d
[ "Apache-2.0" ]
null
null
null
web/remotings/remoting_server.ex
fangkunping/micro-server-shell
e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d
[ "Apache-2.0" ]
null
null
null
defmodule MicroServerShell.Remoting.Server do alias MicroServerShell.Remoting @doc """ 获取服务器列表 """ @spec get_servers(atom, integer) :: list def get_servers(vip_type, access_party_id) do Remoting.call(vip_type, MicroServer.Remoting.Server, :get_servers, [access_party_id]) end @doc """ 创建服务器 """...
26.116022
99
0.692828
1c29075c544805e753519dc141243e7ec3fe6730
325
exs
Elixir
priv/repo/migrations/20141003003122_add_job_to_job_table.exs
taybin/gardenhose
cd82a7d1838d443810a13b75ac609aaac92a2b0b
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20141003003122_add_job_to_job_table.exs
taybin/gardenhose
cd82a7d1838d443810a13b75ac609aaac92a2b0b
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20141003003122_add_job_to_job_table.exs
taybin/gardenhose
cd82a7d1838d443810a13b75ac609aaac92a2b0b
[ "Apache-2.0" ]
null
null
null
defmodule Gardenhose.Repo.Migrations.AddJobToJobTable do use Ecto.Migration def up do "CREATE TABLE IF NOT EXISTS job_to_job(parent_id INTEGER NOT NULL REFERENCES jobs(id) ON DELETE CASCADE, child_id INTEGER NOT NULL REFERENCES jobs(id) ON DELETE CASCADE)" end def down do "DROP TABLE job_to_job" end...
27.083333
174
0.769231
1c295a4cf8e821bfc496c5aad1ec3a3dcbb301e7
1,104
ex
Elixir
lib/phoenix_postgres_react_web/channels/user_socket.ex
CTMoney/phoenix-postgres-react
b51c298fdcef339324a601dd874a82e1e0cc8e6e
[ "MIT" ]
null
null
null
lib/phoenix_postgres_react_web/channels/user_socket.ex
CTMoney/phoenix-postgres-react
b51c298fdcef339324a601dd874a82e1e0cc8e6e
[ "MIT" ]
1
2021-03-09T11:33:04.000Z
2021-03-09T11:33:04.000Z
lib/phoenix_postgres_react_web/channels/user_socket.ex
CTMoney/phoenix_
b51c298fdcef339324a601dd874a82e1e0cc8e6e
[ "MIT" ]
null
null
null
defmodule PhoenixPostgresReactWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", PhoenixPostgresReactWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that ...
32.470588
95
0.707428
1c2972cd59884cb56be7985509433ad3dd4edd3f
4,236
exs
Elixir
test/ex_nexmo/sms/request_test.exs
NeoAlchemist/ex_nexmo
e4f8d56e1b9fe3b57f352c540936e77eb31a5f76
[ "MIT" ]
3
2017-01-19T23:40:37.000Z
2017-11-20T06:11:41.000Z
test/ex_nexmo/sms/request_test.exs
NeoAlchemist/ex_nexmo
e4f8d56e1b9fe3b57f352c540936e77eb31a5f76
[ "MIT" ]
4
2016-09-26T20:00:20.000Z
2018-09-04T01:34:34.000Z
test/ex_nexmo/sms/request_test.exs
NeoAlchemist/ex_nexmo
e4f8d56e1b9fe3b57f352c540936e77eb31a5f76
[ "MIT" ]
7
2017-02-02T01:32:52.000Z
2021-09-04T00:26:45.000Z
ExUnit.start defmodule ExNexmo.SMS.RequestTest do use ExUnit.Case alias ExNexmo.SMS.{Request, Response} setup do api_key = "key" api_secret = "secret" to = "27820005555" from = "SenderId" text = "Test message" valid_single_message_response = """ { "message-count":"1", "messages":[ ...
27.153846
84
0.636686
1c2979115d79be391455bfbe669965c878c6f5b7
6,303
ex
Elixir
core/version/history.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:11.000Z
2020-08-27T18:43:11.000Z
core/version/history.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
null
null
null
core/version/history.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:21.000Z
2020-08-27T18:43:21.000Z
# Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.Version.History do @moduledoc """ Functions to get information from "history" files. Antikythera uses history files to detect new deployable versions of antikythera instance and gears. Each of antikythera insta...
43.468966
165
0.665239
1c29827891605492023d0f96813e4a7d9122d8dc
1,318
ex
Elixir
lib/cadet/achievements/achievement.ex
seanlowjk/cadet
52b55cc0f777cb0d55a78fe1693f762085ab36c2
[ "Apache-2.0" ]
null
null
null
lib/cadet/achievements/achievement.ex
seanlowjk/cadet
52b55cc0f777cb0d55a78fe1693f762085ab36c2
[ "Apache-2.0" ]
null
null
null
lib/cadet/achievements/achievement.ex
seanlowjk/cadet
52b55cc0f777cb0d55a78fe1693f762085ab36c2
[ "Apache-2.0" ]
null
null
null
defmodule Cadet.Achievements.Achievement do @moduledoc """ Stores achievements. """ use Cadet, :model alias Cadet.Achievements.{AchievementGoal, AchievementPrerequisite} @valid_abilities ~w(Core Community Effort Exploration) @primary_key {:id, :id, autogenerate: false} schema "achievements" do fi...
26.897959
93
0.710926
1c2999c91d0d054291152fb1b59d4f51b966dd25
381
exs
Elixir
exercises/allergies/allergies.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/allergies/allergies.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/allergies/allergies.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule Allergies do @doc """ List the allergies for which the corresponding flag bit is true. """ @spec list(non_neg_integer) :: [String.t()] def list(flags) do end @doc """ Returns whether the corresponding flag bit in 'flags' is set for the item. """ @spec allergic_to?(non_neg_integer, String....
23.8125
76
0.682415