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
f7fdd219a316342b665e04bca6dd263e15b6931a
3,973
exs
Elixir
test/json_schema_test_suite/draft4/properties_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft4/properties_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft4/properties_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft4.PropertiesTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|object properties validation| do setup do %{ schema: Xema.from_json_schema( %{"properties" => %{"bar" => %{"type" => "string"}, "foo" => %{"type" => "integer"...
28.582734
98
0.481752
f7fdd6ac6c00c7eedb59736e95ad9b92f8d67c38
570
exs
Elixir
config/bbb.exs
trarbr/nerves_livebook
ac5a5f7f8b80fb0c63cfe81e565c439e912973dc
[ "Apache-2.0" ]
51
2021-09-21T12:23:41.000Z
2022-03-31T08:37:17.000Z
config/bbb.exs
trarbr/nerves_livebook
ac5a5f7f8b80fb0c63cfe81e565c439e912973dc
[ "Apache-2.0" ]
37
2021-09-21T11:35:28.000Z
2022-03-18T13:00:31.000Z
config/bbb.exs
trarbr/nerves_livebook
ac5a5f7f8b80fb0c63cfe81e565c439e912973dc
[ "Apache-2.0" ]
7
2021-09-26T22:33:35.000Z
2022-02-20T10:59:29.000Z
import Config # Configure the network using vintage_net # See https://github.com/nerves-networking/vintage_net for more information config :vintage_net, config: [ {"usb0", %{type: VintageNetDirect}}, {"eth0", %{type: VintageNetEthernet, ipv4: %{method: :dhcp}}}, {"wlan0", %{type: VintageNetWiFi}} ] # ...
30
75
0.731579
f7fddcc0bddf8609b4b6de52b4e99b517af3511b
1,579
exs
Elixir
config/config.exs
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
config/config.exs
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
config/config.exs
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "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 # General application configuration config :portalcs, ecto_repos: [Portalcs.Repo] ...
34.326087
114
0.760608
f7fde215e2783155886fd86c75315844d6090238
1,083
ex
Elixir
lib/nostalgic_games_web/controllers/console_controller.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
lib/nostalgic_games_web/controllers/console_controller.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
lib/nostalgic_games_web/controllers/console_controller.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
defmodule NostalgicGamesWeb.ConsoleController do use NostalgicGamesWeb, :controller action_fallback NostalgicGamesWeb.FallbackController def create(conn, params \\ :empty) do params |> NostalgicGames.create_console() |> handle_response(conn, "create.json", :ok) end def delete(conn, %{"id" => id...
22.102041
86
0.666667
f7fe11a32ba95c9205bbfc6ae61ee731171c40cc
5,116
ex
Elixir
lib/bmp280/sensor/bme680_sensor.ex
dkuku/bmp280
e7cb8fcef0043a354a9c2dde0946ab1d033c0b59
[ "Apache-2.0" ]
11
2020-09-17T08:03:11.000Z
2021-04-28T16:20:13.000Z
lib/bmp280/sensor/bme680_sensor.ex
dkuku/bmp280
e7cb8fcef0043a354a9c2dde0946ab1d033c0b59
[ "Apache-2.0" ]
13
2021-01-31T23:08:26.000Z
2021-03-27T23:08:42.000Z
lib/bmp280/sensor/bme680_sensor.ex
dkuku/bmp280
e7cb8fcef0043a354a9c2dde0946ab1d033c0b59
[ "Apache-2.0" ]
3
2021-09-05T08:48:27.000Z
2021-10-21T17:14:43.000Z
defmodule BMP280.BME680Sensor do @moduledoc false alias BMP280.{BME680Calibration, BME680Comm, Calc, Comm, Measurement} @behaviour BMP280.Sensor @type raw_samples() :: %{ raw_pressure: non_neg_integer(), raw_temperature: non_neg_integer(), raw_humidity: non_neg_integer(), ...
32.794872
104
0.668296
f7fe1875be162988813cfb8f58907837494d10de
648
exs
Elixir
mix.exs
mosic/exdisque
e0d940cc03ea2ca5a1aa58c67e0d92fcdbe0bf87
[ "MIT" ]
18
2015-05-14T20:42:26.000Z
2017-11-13T18:25:52.000Z
mix.exs
mosic/exdisque
e0d940cc03ea2ca5a1aa58c67e0d92fcdbe0bf87
[ "MIT" ]
null
null
null
mix.exs
mosic/exdisque
e0d940cc03ea2ca5a1aa58c67e0d92fcdbe0bf87
[ "MIT" ]
1
2018-11-18T08:51:24.000Z
2018-11-18T08:51:24.000Z
defmodule ExDisque.Mixfile do use Mix.Project def project do [ app: :exdisque, version: "0.0.1", elixir: "~> 1.0", name: "exdisque", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), package: package(), description: "Eli...
19.058824
88
0.558642
f7fe496a1d7cd44d2291ec2a9155dc3f3ae96596
117
ex
Elixir
web/views/layout_view.ex
jschoch/reflux_eventbroker_react_phoenix_elixir
31a6ca7ccf5914a5c02f16c5a3cbf0bdb3d0be2d
[ "MIT" ]
5
2015-08-18T09:25:47.000Z
2021-01-19T04:52:18.000Z
web/views/layout_view.ex
jschoch/reflux_eventbroker_react_phoenix_elixir
31a6ca7ccf5914a5c02f16c5a3cbf0bdb3d0be2d
[ "MIT" ]
1
2015-08-26T17:37:23.000Z
2015-08-29T12:38:56.000Z
web/views/layout_view.ex
jschoch/reflux_eventbroker_react_phoenix_elixir
31a6ca7ccf5914a5c02f16c5a3cbf0bdb3d0be2d
[ "MIT" ]
null
null
null
defmodule RefluxEventbrokerReactPhoenixElixir.LayoutView do use RefluxEventbrokerReactPhoenixElixir.Web, :view end
29.25
59
0.888889
f7fe7b4612564d4a024f11fd8c421c6f07e02092
1,936
ex
Elixir
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/create_feed_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/create_feed_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/create_feed_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...
38.72
305
0.742252
f7feaf9442f6e4e47d5ec119df0fe6edda75cfeb
1,532
exs
Elixir
test/elixir_bank_web/resolvers/user_test.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
test/elixir_bank_web/resolvers/user_test.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
test/elixir_bank_web/resolvers/user_test.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
defmodule ElixirBankWeb.Resolvers.UserTest do use ElixirBankWeb.ConnCase alias Ecto.UUID alias ElixirBank.Accounts.{Profile, User} alias ElixirBank.Repo alias ElixirBankWeb.Resolvers import ElixirBank.Factory describe "get_user/2" do test "should return a user when the context does have an user_id ...
31.916667
98
0.672977
f7febf8fc28392ee750700545b2cbffdbc0ca437
1,557
ex
Elixir
lib/lowendinsight_get/counter_agent.ex
haldihri3/lowendinsight-get
b414f288e7a9f409a1ec408b6515fd1cb95e6316
[ "BSD-3-Clause" ]
null
null
null
lib/lowendinsight_get/counter_agent.ex
haldihri3/lowendinsight-get
b414f288e7a9f409a1ec408b6515fd1cb95e6316
[ "BSD-3-Clause" ]
null
null
null
lib/lowendinsight_get/counter_agent.ex
haldihri3/lowendinsight-get
b414f288e7a9f409a1ec408b6515fd1cb95e6316
[ "BSD-3-Clause" ]
null
null
null
defmodule LowendinsightGet.CounterAgent do use Agent require Logger def new_counter(number_of_processes) do Agent.start_link(fn -> { %{}, %{completed: 0, total: number_of_processes}} end, name: :counter) end def get() do Agent.get(:counter, fn state -> state end) end ...
29.377358
134
0.550417
f7fece24b6508b0ddb5ba5ae9011c6b6a1a58d89
1,594
ex
Elixir
lib/mutable.ex
melpon/mutable
4238000126d4954fa8fa8c6eb5277ef3e8cc9576
[ "MIT" ]
2
2017-12-13T00:11:21.000Z
2018-01-29T01:48:50.000Z
lib/mutable.ex
melpon/mutable
4238000126d4954fa8fa8c6eb5277ef3e8cc9576
[ "MIT" ]
null
null
null
lib/mutable.ex
melpon/mutable
4238000126d4954fa8fa8c6eb5277ef3e8cc9576
[ "MIT" ]
null
null
null
defmodule Mutable do @moduledoc """ Temporary side-effect module """ @mutable_key :mutable_key @mutable_undefined :mutable_undefined def run(keyword, fun) do for {key, value} <- keyword do push(key, value) end try do fun.() after for {key, _} <- keyword do pop(ke...
20.701299
74
0.585947
f7fed3c6978b179febb43ebd4a3b21e4592d0208
2,560
exs
Elixir
test/utils_test.exs
c4710n/ex_alipay
56108ec974dc33ac026d7499140876da0396ab87
[ "MIT" ]
4
2019-08-08T15:23:57.000Z
2021-07-22T07:56:12.000Z
test/utils_test.exs
c4710n/ex_alipay
56108ec974dc33ac026d7499140876da0396ab87
[ "MIT" ]
3
2019-11-19T11:01:25.000Z
2022-03-22T09:34:15.000Z
test/utils_test.exs
c4710n/ex_alipay
56108ec974dc33ac026d7499140876da0396ab87
[ "MIT" ]
6
2019-09-10T10:49:09.000Z
2022-01-24T13:57:53.000Z
defmodule ExAlipayUtilsTest do use ExUnit.Case doctest ExAlipay alias ExAlipay.Utils defmodule AlipayClient do use ExAlipay.Client, appid: "2019111111", pid: "2019121212", public_key: ~s(-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfq836Ik1FTMdzLF8PwHuUZhkfS...
47.407407
889
0.75625
f7fef09b16e27ef34eb4d401bf96ef88d8e00708
1,123
exs
Elixir
config/config.exs
MiguelERuiz/pokedex
e7faaa54f6486442a0a3768563d3decf8c37f5b1
[ "MIT" ]
null
null
null
config/config.exs
MiguelERuiz/pokedex
e7faaa54f6486442a0a3768563d3decf8c37f5b1
[ "MIT" ]
null
null
null
config/config.exs
MiguelERuiz/pokedex
e7faaa54f6486442a0a3768563d3decf8c37f5b1
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.225806
73
0.751558
f7ff2553665418dc427cded9ac4efa56141c4043
842
exs
Elixir
config/config.exs
erickgnavarro/phoenix_demo_chat
71749db3fb4e8012047e8d857b0a096a36dbe375
[ "MIT" ]
2
2015-05-12T04:00:03.000Z
2016-05-02T06:05:25.000Z
config/config.exs
erickgnavarro/phoenix_demo_chat
71749db3fb4e8012047e8d857b0a096a36dbe375
[ "MIT" ]
null
null
null
config/config.exs
erickgnavarro/phoenix_demo_chat
71749db3fb4e8012047e8d857b0a096a36dbe375
[ "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 :demo_chat, DemoChat.Endpoint, url: [host: "localh...
33.68
86
0.755344
f7ff563e89fc63c2dc8003ba9b34be818d4765f8
128
exs
Elixir
.iex.exs
kevinastone/phoenixbin
8b7326b5de1fe9961c1a2d7971a3d4abe7178829
[ "MIT" ]
18
2015-11-18T09:52:34.000Z
2021-04-27T19:38:08.000Z
.iex.exs
kevinastone/phoenixbin
8b7326b5de1fe9961c1a2d7971a3d4abe7178829
[ "MIT" ]
3
2017-01-11T18:55:39.000Z
2021-06-15T05:46:34.000Z
.iex.exs
kevinastone/phoenixbin
8b7326b5de1fe9961c1a2d7971a3d4abe7178829
[ "MIT" ]
7
2016-08-17T10:24:20.000Z
2020-07-10T13:00:36.000Z
alias Requestbox.Session alias Requestbox.Request alias Requestbox.Vanity alias Requestbox.Repo alias Requestbox.Router.Helpers
21.333333
31
0.875
f7ff5a6c321745ac3e61321d90e98d82670822bf
980
ex
Elixir
lib/teslamate/convert.ex
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
null
null
null
lib/teslamate/convert.ex
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
null
null
null
lib/teslamate/convert.ex
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
null
null
null
defmodule TeslaMate.Convert do def mph_to_kmh(nil), do: nil def mph_to_kmh(mph), do: round(mph * 1.60934) def miles_to_km(nil, _precision), do: nil def miles_to_km(miles, precision), do: Float.round(miles / 0.62137, precision) def km_to_miles(nil, _precision), do: nil def km_to_miles(km, precision), do: F...
27.222222
80
0.596939
f7ff6026824dfcc4e9d6f65881b986ba8cdf4e83
436
ex
Elixir
lib/timeularex/api.ex
r-frederick/timeularex
9ede39350b4d0095300d291fb2ab1049461e3381
[ "MIT" ]
1
2018-06-01T19:14:57.000Z
2018-06-01T19:14:57.000Z
lib/timeularex/api.ex
r-frederick/timeularex
9ede39350b4d0095300d291fb2ab1049461e3381
[ "MIT" ]
null
null
null
lib/timeularex/api.ex
r-frederick/timeularex
9ede39350b4d0095300d291fb2ab1049461e3381
[ "MIT" ]
null
null
null
defmodule Timeularex.API do use HTTPoison.Base alias Timeularex.Config @base_url "https://api.timeular.com/api/v2" def process_url(url) do @base_url <> url end def process_request_body(body) do body |> Poison.encode! end def process_request_headers(headers) do headers ++ [{"Content...
17.44
53
0.681193
f7ff6ec2fa745acd5362ce6b606268e1077a4686
1,253
ex
Elixir
lib/tasks/version/next.ex
bulld0zer/elixir-version-release
f659bf0bf21167684eb12cf6be3d38bc9291d64b
[ "MIT" ]
16
2020-08-25T16:30:47.000Z
2022-03-23T12:41:55.000Z
lib/tasks/version/next.ex
bulld0zer/elixir-version-release
f659bf0bf21167684eb12cf6be3d38bc9291d64b
[ "MIT" ]
18
2021-03-23T05:54:50.000Z
2022-03-24T08:03:21.000Z
lib/tasks/version/next.ex
bulld0zer/elixir-version-release
f659bf0bf21167684eb12cf6be3d38bc9291d64b
[ "MIT" ]
1
2021-05-12T09:05:35.000Z
2021-05-12T09:05:35.000Z
defmodule Mix.Tasks.Version.Next do use Mix.Task require Logger alias VersionRelease.Changelog alias VersionRelease.Config alias VersionRelease.Git alias VersionRelease.Hex alias VersionRelease.Version def run(opts) do opts |> Config.create() |> Changelog.get_release_changes() |> Git....
22.781818
50
0.588188
f7ffaa81273cccb16b679faa2b037496c68c37a8
34,358
ex
Elixir
lib/phoenix_live_view/helpers.ex
thenrio/phoenix_live_view
e415eb845cfe2008e1e1ee1494872b296fda567a
[ "MIT" ]
1
2020-09-09T09:10:01.000Z
2020-09-09T09:10:01.000Z
lib/phoenix_live_view/helpers.ex
lurnid/phoenix_live_view
e415eb845cfe2008e1e1ee1494872b296fda567a
[ "MIT" ]
null
null
null
lib/phoenix_live_view/helpers.ex
lurnid/phoenix_live_view
e415eb845cfe2008e1e1ee1494872b296fda567a
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.Helpers do @moduledoc """ A collection of helpers to be imported into your views. """ # TODO: Convert all functions with the `live_` prefix to function components? alias Phoenix.LiveView alias Phoenix.LiveView.{Component, Socket, Static} @doc """ Provides `~L` sigil with HT...
31.579044
102
0.643693
f7ffb8efedf2c632839ace7a95cf9a697cd49668
39,305
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/api/services.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/api/services.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/monitoring/lib/google_api/monitoring/v3/api/services.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...
47.584746
827
0.618267
f7ffbe0adb822f92ddbaa4e1309d6fbf43b9e54a
773
ex
Elixir
apps/mishka_content/lib/mishka_content.ex
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
3
2021-06-27T10:26:51.000Z
2022-01-10T13:56:08.000Z
apps/mishka_content/lib/mishka_content.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
apps/mishka_content/lib/mishka_content.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
defmodule MishkaContent do def db_content_activity_error(section, action, db_error) do MishkaContent.General.Activity.create_activity_by_task(%{ type: "db", section: section, section_id: nil, action: action, priority: "high", status: "error", user_id: nil }, %{ ...
27.607143
79
0.620957
f7ffdca3121951c0734e7576395d1be5ea7e8a4c
1,023
exs
Elixir
mix.exs
grain-team/vttyl
ad61a827ed6270a500145e127c2bb28d0ac63b7c
[ "MIT" ]
4
2019-05-30T18:12:08.000Z
2021-11-02T22:09:10.000Z
mix.exs
grain-team/vttyl
ad61a827ed6270a500145e127c2bb28d0ac63b7c
[ "MIT" ]
2
2019-08-02T18:38:17.000Z
2019-12-12T23:31:42.000Z
mix.exs
grain-team/vttyl
ad61a827ed6270a500145e127c2bb28d0ac63b7c
[ "MIT" ]
null
null
null
defmodule Vttyl.MixProject do use Mix.Project @version "0.4.1" @repo_url "https://github.com/grain-team/vttyl" def project do [ app: :vttyl, version: @version, elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), source_url: @re...
19.673077
71
0.519062
f7ffed860dc12e495be4ba7332fc32953fc4395b
1,033
exs
Elixir
test/pton_web/plugs/rate_limit_test.exs
casey-chow/pton.co
c794dc6903326dc827f5cbd5c7a8e35868a0fa45
[ "MIT" ]
null
null
null
test/pton_web/plugs/rate_limit_test.exs
casey-chow/pton.co
c794dc6903326dc827f5cbd5c7a8e35868a0fa45
[ "MIT" ]
4
2017-10-18T15:52:20.000Z
2017-10-19T00:18:38.000Z
test/pton_web/plugs/rate_limit_test.exs
casey-chow/pton.co
c794dc6903326dc827f5cbd5c7a8e35868a0fa45
[ "MIT" ]
null
null
null
defmodule PtonWeb.Plugs.RateLimitTest do use PtonWeb.ConnCase alias PtonWeb.Plugs.RateLimit describe "rate limiting with authentication" do test "allows requests through if within limits", %{conn: conn} do conn = conn |> RateLimit.rate_limit(max_requests: 9, interval_seconds: 10000) asser...
28.694444
86
0.682478
f7fff38177b6d5a26a879ba40c8f29386cf32aee
416
ex
Elixir
lib/syn_osc/voice/parameter.ex
camshaft/syn_osc_ex
c7ed257f2ea772f197096d356467e812a0d5e59a
[ "MIT" ]
1
2020-12-08T01:44:03.000Z
2020-12-08T01:44:03.000Z
lib/syn_osc/voice/parameter.ex
camshaft/syn_osc_ex
c7ed257f2ea772f197096d356467e812a0d5e59a
[ "MIT" ]
null
null
null
lib/syn_osc/voice/parameter.ex
camshaft/syn_osc_ex
c7ed257f2ea772f197096d356467e812a0d5e59a
[ "MIT" ]
null
null
null
defmodule SynOSC.Voice.Parameter do defstruct id: nil, voice: nil, parameter: nil, relative: false, value: nil end defimpl OSC.Encoder, for: SynOSC.Voice.Parameter do use SynOSC.Voice def encode(message, options) do message |> call_param() |> set_argum...
19.809524
51
0.620192
7900239116f7c2b9a49eae5a12f3aa3698473237
15,134
ex
Elixir
apps/omg_watcher/lib/omg_watcher/block_getter.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher/lib/omg_watcher/block_getter.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/lib/omg_watcher/block_getter.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...
41.69146
154
0.720167
7900405fd7df9c23a55d67068557b178bddf1444
689
ex
Elixir
lib/gupsy_th.ex
flixbi/element-parsers
b92ef1cff139130acbac4f40d0d48568a3de6590
[ "MIT" ]
1
2021-11-10T18:06:59.000Z
2021-11-10T18:06:59.000Z
lib/gupsy_th.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
lib/gupsy_th.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour require Logger # ELEMENT IoT Parser for Gupsy temperature and humidity sensor # According to documentation provided by Gupsy # # Changelog: # 2019-xx-xx [jb]: Initial implementation. # 2019-09-06 [jb]: Added parsing catchall for unknown payloads. ...
26.5
123
0.660377
79005a984776daf5d9df468356b37a303f3bfe52
8,134
ex
Elixir
lib/smppsend.ex
galina/smppsend
8ab15487a11b1c968e9f160515025e2c670f0521
[ "Apache-2.0" ]
null
null
null
lib/smppsend.ex
galina/smppsend
8ab15487a11b1c968e9f160515025e2c670f0521
[ "Apache-2.0" ]
null
null
null
lib/smppsend.ex
galina/smppsend
8ab15487a11b1c968e9f160515025e2c670f0521
[ "Apache-2.0" ]
null
null
null
defmodule SMPPSend do require Logger use Dye @switches [ help: :boolean, version: :boolean, bind_mode: :string, host: :string, port: :integer, system_id: :string, password: :string, system_type: :string, interface_version: :integer, addr_ton: :integer, addr_npi: :int...
25.659306
111
0.604623
790063e0272f7c5de4295962d5d45b9e0d637a81
3,817
ex
Elixir
lib/trademark_free_strategic_land_warfare/players/johnb.ex
alanvoss/trademark_free_strategic_land_warfare
d13030adb1936849c5d363e0f4365f087394e6fa
[ "MIT" ]
1
2020-06-30T16:37:50.000Z
2020-06-30T16:37:50.000Z
lib/trademark_free_strategic_land_warfare/players/johnb.ex
alanvoss/trademark_free_strategic_land_warfare
d13030adb1936849c5d363e0f4365f087394e6fa
[ "MIT" ]
null
null
null
lib/trademark_free_strategic_land_warfare/players/johnb.ex
alanvoss/trademark_free_strategic_land_warfare
d13030adb1936849c5d363e0f4365f087394e6fa
[ "MIT" ]
13
2020-06-04T23:10:19.000Z
2020-06-05T01:25:26.000Z
defmodule TrademarkFreeStrategicLandWarfare.Players.JohnB do alias TrademarkFreeStrategicLandWarfare.{Board, Player, Piece} @behaviour Player @type direction() :: :north | :west | :east | :south @type count() :: Integer.t() @type state() :: any() @spec name() :: binary() def name() do "JohnB" end ...
33.191304
102
0.56065
7900654e82f3ff0d6eb8775a74600a9e542a2966
1,440
exs
Elixir
chapter_5/stack.exs
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
3
2021-04-22T11:55:58.000Z
2021-08-22T13:19:56.000Z
chapter_5/stack.exs
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
null
null
null
chapter_5/stack.exs
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
3
2021-04-22T21:19:45.000Z
2021-08-22T13:20:03.000Z
defmodule Stack do @timeout_limit 1000 def start(initial_stack \\ []), do: spawn(fn -> loop(initial_stack) end) def push_async(pid, element) do send(pid, {:push, self(), element}) :ok end def pop_async(pid) do send(pid, {:pop, self()}) :ok end def get_result do receive do {...
18.227848
74
0.638889
79006e475821b3686fcd23bee654132bd6a06ee7
2,064
ex
Elixir
lib/maru/builder/pipeline/dsls.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
819
2016-11-25T07:12:04.000Z
2022-03-16T06:59:36.000Z
lib/maru/builder/pipeline/dsls.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
71
2016-11-24T20:19:09.000Z
2021-06-09T10:12:23.000Z
lib/maru/builder/pipeline/dsls.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
56
2015-01-10T23:34:12.000Z
2016-11-17T00:13:56.000Z
defmodule Maru.Builder.Pipeline.DSLs do alias Maru.Resource.MaruPlug @doc """ Define pipeline block of current endpoint. """ defmacro pipeline(block) do quote do import Kernel, only: [] import Maru.Resource.DSLs, only: [] import Maru.Builder.Pipeline.DSLs, only: [ plu...
22.193548
85
0.621609
79007b1ac137504ecaf5d02685f48f4dfb5ebe47
175
ex
Elixir
gateway/lib/mnesia/upgrade.ex
xonnect/server-ce
7ec2e689a19098a17dfc5eaf190d56f29fb45263
[ "BSD-2-Clause" ]
null
null
null
gateway/lib/mnesia/upgrade.ex
xonnect/server-ce
7ec2e689a19098a17dfc5eaf190d56f29fb45263
[ "BSD-2-Clause" ]
null
null
null
gateway/lib/mnesia/upgrade.ex
xonnect/server-ce
7ec2e689a19098a17dfc5eaf190d56f29fb45263
[ "BSD-2-Clause" ]
null
null
null
defmodule Mix.Tasks.Upgrade do use Mix.Task alias Mnesia.Cache, as: Cache use Cache def run(_) do Amnesia.start # ... upgrade here Amnesia.stop end end
14.583333
31
0.662857
790094f1b6fdc673489b1243d43fd7429ba92ae4
55,588
ex
Elixir
lib/data_layer.ex
michaelst/ash_postgres
026417f678ce98626915b15264105560f149a2a5
[ "MIT" ]
null
null
null
lib/data_layer.ex
michaelst/ash_postgres
026417f678ce98626915b15264105560f149a2a5
[ "MIT" ]
null
null
null
lib/data_layer.ex
michaelst/ash_postgres
026417f678ce98626915b15264105560f149a2a5
[ "MIT" ]
null
null
null
defmodule AshPostgres.DataLayer do @manage_tenant %Ash.Dsl.Section{ name: :manage_tenant, describe: """ Configuration for the behavior of a resource that manages a tenant """, examples: [ """ manage_tenant do template ["organization_", :id] create? true update? ...
28.668386
168
0.590073
7900a025b812c62951db168201f18a530d124429
1,535
ex
Elixir
apps/rex_web/lib/rex_web/handlers/node_handler.ex
baymax42/rex
7c8571ac308960973fea9e8df77a6f1ad5c16906
[ "MIT" ]
null
null
null
apps/rex_web/lib/rex_web/handlers/node_handler.ex
baymax42/rex
7c8571ac308960973fea9e8df77a6f1ad5c16906
[ "MIT" ]
16
2020-05-18T20:06:29.000Z
2020-06-08T14:32:11.000Z
apps/rex_web/lib/rex_web/handlers/node_handler.ex
baymax42/rex
7c8571ac308960973fea9e8df77a6f1ad5c16906
[ "MIT" ]
null
null
null
require Logger defmodule RexWeb.NodeHandler do @moduledoc """ Module containing logic for node specific operations. *handle_join* This method is used to handle node joining the rendering. """ alias RexData.{Worker, Utils} alias RexData.Worker.Node @spec handle_join(Node.t()) :: {:ok, map} | {:error, ...
24.758065
64
0.574593
7900c34d77046296d0f8dae5e80d3e5bdce14e30
104
exs
Elixir
test/hooks/paginate_test.exs
ramansah/rummage_ecto
0f24fdccfe504e3c5b8337698446c17fefc60766
[ "MIT" ]
1
2019-02-11T19:54:24.000Z
2019-02-11T19:54:24.000Z
test/hooks/paginate_test.exs
ramansah/rummage_ecto
0f24fdccfe504e3c5b8337698446c17fefc60766
[ "MIT" ]
null
null
null
test/hooks/paginate_test.exs
ramansah/rummage_ecto
0f24fdccfe504e3c5b8337698446c17fefc60766
[ "MIT" ]
2
2019-11-02T21:36:27.000Z
2021-03-02T15:58:31.000Z
defmodule Rummage.Ecto.Hook.PaginateTest do use ExUnit.Case doctest Rummage.Ecto.Hook.Paginate end
17.333333
43
0.807692
7900c9fdd0f459f51014a9790fe166f1e9ac94f0
178
exs
Elixir
priv/repo/migrations/20171029211840_increase_thread_title.exs
making3/summoner-alerts-service
b560d53cb39048049f52dd99d796eab52544da9d
[ "MIT" ]
null
null
null
priv/repo/migrations/20171029211840_increase_thread_title.exs
making3/summoner-alerts-service
b560d53cb39048049f52dd99d796eab52544da9d
[ "MIT" ]
null
null
null
priv/repo/migrations/20171029211840_increase_thread_title.exs
making3/summoner-alerts-service
b560d53cb39048049f52dd99d796eab52544da9d
[ "MIT" ]
null
null
null
defmodule SAS.Repo.Migrations.IncreaseThreadTitle do use Ecto.Migration def change do alter table(:threads) do modify :title, :string, size: 300 end end end
17.8
52
0.707865
7900d4c1b2e5aab3fb028b3cbc100397482752d5
1,499
ex
Elixir
apps/socket/test/support/data_case.ex
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/socket/test/support/data_case.ex
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/socket/test/support/data_case.ex
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule GrapevineSocket.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, ev...
26.298246
77
0.691795
7900f5d210c9202076fe9619b8ebaed17760ec97
8,259
ex
Elixir
lib/mix/lib/mix/config.ex
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
1
2017-07-25T21:46:25.000Z
2017-07-25T21:46:25.000Z
lib/mix/lib/mix/config.ex
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/config.ex
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
1
2017-07-25T21:46:48.000Z
2017-07-25T21:46:48.000Z
defmodule Mix.Config do @moduledoc ~S""" Module for defining, reading and merging app configurations. Most commonly, this module is used to define your own configuration: use Mix.Config config :plug, key1: "value1", key2: "value2" import_config "#{Mix.env}.exs" All `config...
27.714765
138
0.660734
79012493a810a1627bd8ced11d716e688670463b
14,256
ex
Elixir
lib/tortoise311.ex
ngenic/tortoise311
18aa234c26f0e1d7b3dcac5dad562231346a20ef
[ "Apache-2.0" ]
2
2021-12-23T21:51:31.000Z
2022-02-20T22:29:24.000Z
lib/tortoise311.ex
ngenic/tortoise311
18aa234c26f0e1d7b3dcac5dad562231346a20ef
[ "Apache-2.0" ]
11
2021-11-18T01:23:15.000Z
2022-03-28T18:15:18.000Z
lib/tortoise311.ex
ngenic/tortoise311
18aa234c26f0e1d7b3dcac5dad562231346a20ef
[ "Apache-2.0" ]
3
2021-11-19T16:23:38.000Z
2022-03-18T11:36:54.000Z
defmodule Tortoise311 do @moduledoc """ A MQTT client for Elixir. `Tortoise311` provides ways of publishing messages to, and receiving messages from one or many MQTT brokers via TCP or SSL. The design philosophy of Tortoise311 is to hide the protocol specific details from the user, and expose interfaces an...
40.385269
92
0.708895
79013bfb4d65378d5fb68d9fb649278ef5d7e44b
2,770
ex
Elixir
lib/system/rabbitmq/publisher.ex
exponentially/extreme_system
c3a63af286ace236726b32cc28b7b5445a9a9a29
[ "MIT" ]
9
2017-03-16T00:19:09.000Z
2022-01-28T21:22:21.000Z
lib/system/rabbitmq/publisher.ex
exponentially/extreme_system
c3a63af286ace236726b32cc28b7b5445a9a9a29
[ "MIT" ]
16
2018-09-05T07:44:17.000Z
2019-04-29T09:18:09.000Z
lib/system/rabbitmq/publisher.ex
exponentially/extreme_system
c3a63af286ace236726b32cc28b7b5445a9a9a29
[ "MIT" ]
7
2017-12-24T22:36:25.000Z
2020-08-26T17:40:45.000Z
defmodule Extreme.System.RabbitMQ.Publisher do alias Extreme.System.RabbitMQ.ChannelManager use GenServer use AMQP require Logger ## Client API def start_link(channel_manager, publisher_name, targets, opts) when is_list(targets), do: GenServer.start_link(__MODULE__, {channel_manager, publisher_name, t...
34.197531
95
0.66426
790148f4e489eac7630be8aaee2023aed3b267b3
1,105
ex
Elixir
lib/mysimplelist_web/live/page_live.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
lib/mysimplelist_web/live/page_live.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
lib/mysimplelist_web/live/page_live.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
defmodule MysimplelistWeb.PageLive do use MysimplelistWeb, :live_view @impl true def mount(_params, _session, socket) do {:ok, assign(socket, query: "", results: %{})} end @impl true def handle_event("suggest", %{"q" => query}, socket) do {:noreply, assign(socket, results: search(query), query: qu...
27.625
84
0.60724
790155398fc4b47b6dc1be5b6afa9c2727d88807
1,757
ex
Elixir
lib/koans/10_structs.ex
serpient/elixir-koans
d1d9d6a643cc821f9067d987330fbf78ba1d4463
[ "MIT" ]
null
null
null
lib/koans/10_structs.ex
serpient/elixir-koans
d1d9d6a643cc821f9067d987330fbf78ba1d4463
[ "MIT" ]
null
null
null
lib/koans/10_structs.ex
serpient/elixir-koans
d1d9d6a643cc821f9067d987330fbf78ba1d4463
[ "MIT" ]
null
null
null
defmodule Structs do use Koans @intro "Structs" defmodule Person do defstruct [:name, :age] end koan "Structs are defined and named after a module" do person = %Person{} assert person == %Person{} end koan "Unless previously defined, fields begin as nil" do nobody = %Person{} asser...
29.283333
160
0.659078
7901c530d8b3bc6275eebe98b75822d723b4bef4
82
ex
Elixir
test/support/web/views/layout_view.ex
danschultzer/coherence_assent
538e7e4aba3146c9bf4ac7798fea4b8a0ff099d5
[ "Unlicense", "MIT" ]
22
2017-09-15T17:52:31.000Z
2018-10-07T02:36:27.000Z
test/support/web/views/layout_view.ex
danschultzer/coherence_oauth2
538e7e4aba3146c9bf4ac7798fea4b8a0ff099d5
[ "Unlicense", "MIT" ]
15
2017-11-01T15:39:37.000Z
2019-03-11T18:02:04.000Z
test/support/web/views/layout_view.ex
danschultzer/coherence_oauth2
538e7e4aba3146c9bf4ac7798fea4b8a0ff099d5
[ "Unlicense", "MIT" ]
9
2017-09-18T20:48:06.000Z
2018-12-05T15:24:24.000Z
defmodule CoherenceAssent.LayoutView do use CoherenceAssent.Test.Web, :view end
20.5
39
0.829268
7901cd8990a506ba48679b20d0f310298d965468
521
ex
Elixir
lib/mix/tasks/confispex.report.ex
prosapient/confispex
340d3dd8fe9bd5673bb07ccb5da23298c293898c
[ "Apache-2.0" ]
7
2021-05-12T11:03:47.000Z
2021-12-16T08:26:28.000Z
lib/mix/tasks/confispex.report.ex
prosapient/confispex
340d3dd8fe9bd5673bb07ccb5da23298c293898c
[ "Apache-2.0" ]
2
2021-11-20T23:09:33.000Z
2021-12-03T22:09:46.000Z
lib/mix/tasks/confispex.report.ex
prosapient/confispex
340d3dd8fe9bd5673bb07ccb5da23298c293898c
[ "Apache-2.0" ]
2
2021-07-19T09:40:39.000Z
2021-11-20T20:09:02.000Z
defmodule Mix.Tasks.Confispex.Report do use Mix.Task @shortdoc "Print report to stdout" @moduledoc """ #{@shortdoc} ## Examples $ mix confispex.report $ mix confispex.report --mode=brief $ mix confispex.report --mode=detailed """ @requirements ["app.config"] def run(args) do {op...
19.296296
69
0.604607
7901da73fb452217605e869288cd700cf22a7e7e
198
ex
Elixir
web/views/procedure_view.ex
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
web/views/procedure_view.ex
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
web/views/procedure_view.ex
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
defmodule Critter4us.ProcedureView do use Critter4us.Web, :view def sorted_procedures(procedures) do Enum.sort(procedures, &(String.downcase(&1.name) < String.downcase(&2.name))) end end
24.75
81
0.747475
79022ca87f2f32e262169061ac1d3a2808144a4f
195
ex
Elixir
lib/bolt_sips/internals/bolt_protocol_v2.ex
cheerfulstoic/bolt_sips
e86d6443f69d59f6cc41ecae5d0718ed05ea4904
[ "Apache-2.0" ]
242
2016-09-09T22:32:00.000Z
2022-02-20T18:50:29.000Z
lib/bolt_sips/internals/bolt_protocol_v2.ex
cheerfulstoic/bolt_sips
e86d6443f69d59f6cc41ecae5d0718ed05ea4904
[ "Apache-2.0" ]
100
2016-10-18T04:19:09.000Z
2021-11-15T19:14:47.000Z
lib/bolt_sips/internals/bolt_protocol_v2.ex
cheerfulstoic/bolt_sips
e86d6443f69d59f6cc41ecae5d0718ed05ea4904
[ "Apache-2.0" ]
51
2016-10-31T20:05:52.000Z
2022-01-20T11:45:49.000Z
defmodule Bolt.Sips.Internals.BoltProtocolV2 do @moduledoc false # There's no specific messagee for Bolt V2 # This file exists only to fill the gap between the 2 bolt protocol versions end
32.5
78
0.784615
79023c8c3884d035ca8ee672d66fab8085f351b0
16,718
exs
Elixir
lib/mix/test/mix/umbrella_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/mix/test/mix/umbrella_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/umbrella_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Mix.UmbrellaTest do use MixTest.Case @moduletag apps: [:foo, :bar] test "apps_paths" do in_fixture("umbrella_dep/deps/umbrella", fn -> assert Mix.Project.apps_paths() == nil Mix.Project.in_project(:umbrella, ".", fn _ -> assert...
32.399225
97
0.58117
7902514d36d20e8ccdd8170b4aec9bc04decd757
8,904
exs
Elixir
apps/state/config/config.exs
paulswartz/api
7d892ce0fa84eaea92758f90f072bfcd0ce91883
[ "MIT" ]
null
null
null
apps/state/config/config.exs
paulswartz/api
7d892ce0fa84eaea92758f90f072bfcd0ce91883
[ "MIT" ]
null
null
null
apps/state/config/config.exs
paulswartz/api
7d892ce0fa84eaea92758f90f072bfcd0ce91883
[ "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 config :state, :route_pattern, ignore_override_prefixes: %{ # don't ignore Foxboro via Fairmount trips "CR-Franklin-Foxboro-" => false, # ignore North Station Green-D p...
25.295455
84
0.518756
790251cddd9175d7c53f3631ba494cb190c6dd97
3,198
exs
Elixir
apps/site/test/site_web/controllers/transit_near_me/location_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/test/site_web/controllers/transit_near_me/location_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/test/site_web/controllers/transit_near_me/location_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.TransitNearMeController.LocationTest do use ExUnit.Case, async: true alias GoogleMaps.Geocode.Address alias SiteWeb.TransitNearMeController.Location @address %Address{ latitude: 42.351, longitude: -71.066, formatted: "10 Park Plaza, Boston, MA, 02116" } def geocode_fn("10 Par...
24.227273
91
0.568793
790274ac4c81525dabb115858e1f980d040f6125
3,661
ex
Elixir
lib/ex_aws/config/auth_cache.ex
steele-d/ex_aws
2ffd0a3311d06512418fdda87ebd9b7f1b8d37a5
[ "MIT" ]
null
null
null
lib/ex_aws/config/auth_cache.ex
steele-d/ex_aws
2ffd0a3311d06512418fdda87ebd9b7f1b8d37a5
[ "MIT" ]
null
null
null
lib/ex_aws/config/auth_cache.ex
steele-d/ex_aws
2ffd0a3311d06512418fdda87ebd9b7f1b8d37a5
[ "MIT" ]
null
null
null
defmodule ExAws.Config.AuthCache do @moduledoc false use GenServer # http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html @refresh_lead_time 300_000 @instance_auth_key :aws_instance_auth defmodule AuthConfigAdapter do @moduledoc false @doc "Compute the awscli auth in...
26.338129
97
0.689975
79028ae7ed88488a703e80816513afaad62878d6
2,347
exs
Elixir
test/server_tests/monitored_items_test.exs
juljimm/opex62541
c44c157213a8a3fb07283f6e697e6dd018693315
[ "MIT" ]
11
2020-04-24T20:54:23.000Z
2022-01-11T03:13:13.000Z
test/server_tests/monitored_items_test.exs
juljimm/opex62541
c44c157213a8a3fb07283f6e697e6dd018693315
[ "MIT" ]
3
2021-02-25T10:03:49.000Z
2021-09-15T03:37:12.000Z
test/server_tests/monitored_items_test.exs
juljimm/opex62541
c44c157213a8a3fb07283f6e697e6dd018693315
[ "MIT" ]
4
2020-09-28T16:18:43.000Z
2021-09-09T16:29:14.000Z
defmodule ServerMonitoredItemsTest do use ExUnit.Case alias OpcUA.{NodeId, Server, QualifiedName} setup do {:ok, pid} = OpcUA.Server.start_link() Server.set_default_config(pid) {:ok, ns_index} = OpcUA.Server.add_namespace(pid, "Room") # Object Node requested_new_node_id = NodeId.new(n...
40.465517
111
0.735407
79028f8f2a17b6d9cad616e19eac7d28e57d7548
1,845
ex
Elixir
clients/tasks/lib/google_api/tasks/v1/model/tasks.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/tasks/lib/google_api/tasks/v1/model/tasks.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/tasks/lib/google_api/tasks/v1/model/tasks.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...
32.946429
113
0.686179
7902b86ac7de1c752a87d62d24066c66c57fcaca
476
exs
Elixir
elixir/discuss/config/test.exs
enricocolasante/sandbox
ba006c3e45bacef064d90cb9861c637c98545cfc
[ "MIT" ]
null
null
null
elixir/discuss/config/test.exs
enricocolasante/sandbox
ba006c3e45bacef064d90cb9861c637c98545cfc
[ "MIT" ]
null
null
null
elixir/discuss/config/test.exs
enricocolasante/sandbox
ba006c3e45bacef064d90cb9861c637c98545cfc
[ "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 :discuss, Discuss.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :discuss, Discuss.Repo,...
23.8
56
0.72479
7902c8322d5442b42950e4f9572693b5105b1027
1,233
exs
Elixir
test/ex_twilio/parser_test.exs
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
test/ex_twilio/parser_test.exs
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
test/ex_twilio/parser_test.exs
techgaun/ex_twilio
b22f5421c4c709232b5ef53191cc19d5ffb5c99c
[ "MIT" ]
null
null
null
defmodule ExTwilio.ParserTest do use ExUnit.Case import ExTwilio.Parser defmodule Resource do defstruct sid: nil end doctest ExTwilio.Parser test ".parse should decode a successful response into a named struct" do response = %{body: "{ \"sid\": \"unique_id\" }", status_code: 200} assert {:ok,...
27.4
83
0.621249
7902d6469170d78771f6cfab28004760cb71e3f5
453
exs
Elixir
priv/repo/migrations/20160918003206_fix_mixed_case_slugs.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
priv/repo/migrations/20160918003206_fix_mixed_case_slugs.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
priv/repo/migrations/20160918003206_fix_mixed_case_slugs.exs
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Repo.Migrations.FixMixedCaseSlugs do use Ecto.Migration alias CodeCorps.Repo alias CodeCorps.SluggedRoute def up do SluggedRoute |> Repo.all |> Repo.preload([:user, :organization]) |> Enum.each(fn record -> SluggedRoute.changeset(record) |> Ecto.Changeset.put_ch...
20.590909
75
0.679912
7902d8970c9933f8cdb0558523545ce89b193a73
1,734
exs
Elixir
test/console/cron/jobs_test.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
test/console/cron/jobs_test.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
test/console/cron/jobs_test.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
defmodule Console.Cron.JobsTest do use Console.DataCase, async: true alias Console.Cron.Jobs describe "#prune_builds/0" do test "It will delete expired builds" do keep = insert_list(2, :build) expire = insert_list(2, :build, inserted_at: Timex.now() |> Timex.shift(days: -100)) {_, _} = Job...
26.272727
96
0.625144
7903379492ef7e3ff6211dc850dd4c70076c3e6f
3,478
ex
Elixir
apps/api_web/lib/api_web/user.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/api_web/lib/api_web/user.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/api_web/lib/api_web/user.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
1
2019-09-09T20:40:13.000Z
2019-09-09T20:40:13.000Z
defmodule ApiWeb.User do @moduledoc """ Struct for respresenting a user during a request. """ @default_version Application.get_env(:api_web, :versions)[:default] defstruct [ :id, :type, :limit, :version, :allowed_domains ] @typedoc """ The anonymous user's IP Address 1. `String...
27.824
124
0.625359
7903383b1448d3a47f6401253fdfd5c9874baa39
465
ex
Elixir
lib/rihanna_ui/schemas/etf.ex
nested-tech/rihanna_ui
89ad67e443c9fd6d014f56c2300e285572a570e8
[ "MIT" ]
null
null
null
lib/rihanna_ui/schemas/etf.ex
nested-tech/rihanna_ui
89ad67e443c9fd6d014f56c2300e285572a570e8
[ "MIT" ]
null
null
null
lib/rihanna_ui/schemas/etf.ex
nested-tech/rihanna_ui
89ad67e443c9fd6d014f56c2300e285572a570e8
[ "MIT" ]
null
null
null
defmodule RihannaUI.ETF do @behaviour Ecto.Type def type, do: :bytea def load(serialized_mfa) when is_binary(serialized_mfa) do {:ok, :erlang.binary_to_term(serialized_mfa)} end def load(nil, _), do: {:ok, nil} def load(_, _), do: :error def dump(mfa) do {:ok, :erlang.term_to_binary(mfa)} en...
21.136364
90
0.658065
790367f1f4dbf63a573e936f1826aefed1734512
657
ex
Elixir
lib/checkout/token.ex
belloq/checkout_elixir
b36391000f502c714649153a39e332b53fe8a24d
[ "MIT" ]
1
2019-07-23T08:44:17.000Z
2019-07-23T08:44:17.000Z
lib/checkout/token.ex
belloq/checkout_elixir
b36391000f502c714649153a39e332b53fe8a24d
[ "MIT" ]
2
2018-09-13T08:31:52.000Z
2020-03-26T13:03:14.000Z
lib/checkout/token.ex
belloq/checkout_elixir
b36391000f502c714649153a39e332b53fe8a24d
[ "MIT" ]
2
2019-10-17T17:14:24.000Z
2020-05-18T12:45:20.000Z
defmodule Checkout.Token do @endpoint "tokens" @doc """ Create a Payment Token with the given payment data. Checkout API reference: https://api-reference.checkout.com/#tag/Tokens ## Example ``` Checkout.Token.create(%{ type: "applepay", token_data: %{ version: "EC_v1", data: "t7GeajL...
23.464286
72
0.616438
7903716082ffe396f6d2a7c604c82a277826de0c
86
exs
Elixir
.check.exs
thepeoplesbourgeois/phoenix_live_controller
04286b79697e9a7a62abb37efd7725dd9124a6c3
[ "MIT" ]
35
2020-04-15T17:15:36.000Z
2021-11-08T08:50:50.000Z
.check.exs
thepeoplesbourgeois/phoenix_live_controller
04286b79697e9a7a62abb37efd7725dd9124a6c3
[ "MIT" ]
3
2020-04-15T14:07:28.000Z
2022-03-25T23:08:23.000Z
.check.exs
thepeoplesbourgeois/phoenix_live_controller
04286b79697e9a7a62abb37efd7725dd9124a6c3
[ "MIT" ]
3
2020-11-08T15:37:31.000Z
2022-03-23T05:36:54.000Z
[ tools: [ {:credo, false}, {:dialyzer, false}, {:sobelow, false} ] ]
10.75
23
0.465116
7903ab6bc4792c9e0fe13efe16b6423a61842ea3
501
exs
Elixir
test/03_geology_test.exs
skovmand/advent_of_code_2020
40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc
[ "MIT" ]
null
null
null
test/03_geology_test.exs
skovmand/advent_of_code_2020
40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc
[ "MIT" ]
null
null
null
test/03_geology_test.exs
skovmand/advent_of_code_2020
40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc
[ "MIT" ]
null
null
null
defmodule Advent20.TreesTest do use ExUnit.Case, async: true alias Advent20.Geology @input_filename Path.expand("03_geology.txt", "input_files") test "1: Count trees encountered with slope right 3, 1 down" do assert Geology.count_trees(@input_filename, {3, 1}) == 162 end test "2: Calculate product o...
29.470588
94
0.702595
7903b07db3a08b8bb74d67a229d2f6fd0a00caae
2,437
ex
Elixir
clients/redis/lib/google_api/redis/v1beta1/model/location.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/redis/lib/google_api/redis/v1beta1/model/location.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/redis/lib/google_api/redis/v1beta1/model/location.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...
41.305085
305
0.697989
7903d36fde603d96743ae893e7bbbae0e758b6ed
913
exs
Elixir
mix.exs
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
mix.exs
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
mix.exs
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
defmodule Nautilus.MixProject do use Mix.Project def project do [ app: :nautilus, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), #Docs name: "Nautilus Gateway", doc...
21.232558
90
0.421687
7903f5b9270adcd3427975bb4cc1415fb1de2c73
769
ex
Elixir
test/support/channel_case.ex
bmartin2015/ex_bin
efa6755271f28fb67db862ac849c4449a067e9a4
[ "MIT" ]
null
null
null
test/support/channel_case.ex
bmartin2015/ex_bin
efa6755271f28fb67db862ac849c4449a067e9a4
[ "MIT" ]
2
2021-03-09T15:45:09.000Z
2021-05-10T09:11:46.000Z
test/support/channel_case.ex
bmartin2015/ex_bin
efa6755271f28fb67db862ac849c4449a067e9a4
[ "MIT" ]
null
null
null
defmodule ExBinWeb.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 wit...
24.03125
59
0.725618
790404afb3e4b709509a0e514138319e08f075b3
1,328
ex
Elixir
apps/welcome2_web/lib/welcome2_web/controllers/game_controller.ex
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
null
null
null
apps/welcome2_web/lib/welcome2_web/controllers/game_controller.ex
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
13
2020-03-22T08:00:57.000Z
2022-03-07T16:35:36.000Z
apps/welcome2_web/lib/welcome2_web/controllers/game_controller.ex
philihp/welcome2_umbrella
f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2
[ "MIT" ]
null
null
null
defmodule Welcome2Web.GameController do use Welcome2Web, :controller def index(conn, _params) do conn |> render("index.html") end def new(conn, _params) do game_conn = Welcome2Game.new_game() game_view = Welcome2Game.make_move(game_conn, {}) moves = game_view[:moves] conn |> put_s...
19.820896
76
0.628012
79040d32b225fa40e3c4cc56adeb504c894e20e1
719
ex
Elixir
lib/data/stats/type.ex
the3hm/seraph_mud
c098a22184a0a6bcbd56cacf7b0f176dd173260d
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/data/stats/type.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/data/stats/type.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Data.Stats.Type do @moduledoc """ Ecto type for a database column matching a stat type """ alias Data.Stats @behaviour Ecto.Type @impl Ecto.Type def type, do: :string @impl Ecto.Type def cast(stat) do fields = Stats.basic_fields() |> Enum.map(&to_string/1) case stat in fields do...
16.340909
59
0.616134
79041de69e8232c4fd491c5f3581f8033daa3c98
955
exs
Elixir
config/prod.secret.exs
JohnB/todays_pizza
816c8f4f566558bbf8910ef6dd20e363bcddf8fd
[ "MIT" ]
null
null
null
config/prod.secret.exs
JohnB/todays_pizza
816c8f4f566558bbf8910ef6dd20e363bcddf8fd
[ "MIT" ]
null
null
null
config/prod.secret.exs
JohnB/todays_pizza
816c8f4f566558bbf8910ef6dd20e363bcddf8fd
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config secret_key_base = System.get_env("SECRET_KEY_BASE") || raise """ ...
31.833333
65
0.735079
79044681583448928f56c593188d611038befb93
670
ex
Elixir
samples/client/petstore/elixir/lib/open_api_petstore/model/additional_properties_class.ex
kymbalon/openapi-generator
8327a920408314aacb7d00f64285ae88e9195633
[ "Apache-2.0" ]
2
2019-04-17T19:01:32.000Z
2019-04-17T19:05:56.000Z
samples/client/petstore/elixir/lib/open_api_petstore/model/additional_properties_class.ex
kymbalon/openapi-generator
8327a920408314aacb7d00f64285ae88e9195633
[ "Apache-2.0" ]
7
2021-03-01T21:26:03.000Z
2022-02-27T10:10:20.000Z
samples/client/petstore/elixir/lib/open_api_petstore/model/additional_properties_class.ex
kymbalon/openapi-generator
8327a920408314aacb7d00f64285ae88e9195633
[ "Apache-2.0" ]
4
2019-04-08T17:06:09.000Z
2020-06-09T18:16:08.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule OpenAPIPetstore.Model.AdditionalPropertiesClass do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"map_property", :"map_...
23.928571
94
0.692537
79046b678ebf83ab306dfc06026a40c0dff59d27
13,268
ex
Elixir
lib/ash_csv/data_layer.ex
TheFirstAvenger/ash_csv
deeb9ad1ce50c28ba83247970a21cd28494f31ab
[ "MIT" ]
null
null
null
lib/ash_csv/data_layer.ex
TheFirstAvenger/ash_csv
deeb9ad1ce50c28ba83247970a21cd28494f31ab
[ "MIT" ]
null
null
null
lib/ash_csv/data_layer.ex
TheFirstAvenger/ash_csv
deeb9ad1ce50c28ba83247970a21cd28494f31ab
[ "MIT" ]
null
null
null
defmodule AshCsv.DataLayer do @moduledoc "The data layer implementation for AshCsv" @behaviour Ash.DataLayer alias Ash.Actions.Sort alias Ash.Dsl.Extension alias Ash.Filter.{Expression, Not, Predicate} alias Ash.Filter.Predicate.{Eq, GreaterThan, In, LessThan} @impl true def can?(_, :read), do: true ...
25.964775
109
0.57243
79048316deb5fd3c7603138ed1c143d9598820b8
19,206
ex
Elixir
lib/phoenix_live_view/html_engine.ex
khionu/phoenix_live_view
4ada690fb1579eebf787bd7459233086b383bd7b
[ "MIT" ]
null
null
null
lib/phoenix_live_view/html_engine.ex
khionu/phoenix_live_view
4ada690fb1579eebf787bd7459233086b383bd7b
[ "MIT" ]
null
null
null
lib/phoenix_live_view/html_engine.ex
khionu/phoenix_live_view
4ada690fb1579eebf787bd7459233086b383bd7b
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.HTMLEngine do @moduledoc """ The HTMLEngine that powers `.heex` templates and the `~H` sigil. """ # TODO: Use @impl true instead of @doc false when we require Elixir v1.12 alias Phoenix.LiveView.HTMLTokenizer alias Phoenix.LiveView.HTMLTokenizer.ParseError @behaviour Phoenix.T...
28.924699
97
0.618088
790492e794a7960c950987f6e71687a541e8737e
1,236
exs
Elixir
mix.exs
feng19/ex_aliyun_mns
09551d693bb3ce39b01a99c0698e245511d40218
[ "MIT" ]
null
null
null
mix.exs
feng19/ex_aliyun_mns
09551d693bb3ce39b01a99c0698e245511d40218
[ "MIT" ]
null
null
null
mix.exs
feng19/ex_aliyun_mns
09551d693bb3ce39b01a99c0698e245511d40218
[ "MIT" ]
null
null
null
defmodule ExAliyun.MNS.MixProject do use Mix.Project def project do [ app: :ex_aliyun_mns, name: "ExAliyun.MNS", version: "1.2.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), description: "Alibaba Cloud Message Notification ...
22.071429
74
0.527508
7904978441350cfd2af9c819a814fbb60e42fd3e
1,244
ex
Elixir
lib/credo/cli/command/info/info_output.ex
jlgeering/credo
b952190ed758c262aa0d9bbee01227f9b1f0c63b
[ "MIT" ]
null
null
null
lib/credo/cli/command/info/info_output.ex
jlgeering/credo
b952190ed758c262aa0d9bbee01227f9b1f0c63b
[ "MIT" ]
null
null
null
lib/credo/cli/command/info/info_output.ex
jlgeering/credo
b952190ed758c262aa0d9bbee01227f9b1f0c63b
[ "MIT" ]
null
null
null
defmodule Credo.CLI.Command.Info.InfoOutput do use Credo.CLI.Output.FormatDelegator, default: Credo.CLI.Command.Info.Output.Default, json: Credo.CLI.Command.Info.Output.Json alias Credo.CLI.Output.UI def print(exec, info) do format_mod = format_mod(exec) format_mod.print(exec, info) end de...
24.392157
84
0.611736
7904eb2953f17732b5bfd34008db6abcecffd688
1,833
ex
Elixir
homesynck/lib/homesynck_web/telemetry.ex
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
5
2021-03-28T21:20:41.000Z
2021-07-02T22:46:29.000Z
homesynck/lib/homesynck_web/telemetry.ex
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
null
null
null
homesynck/lib/homesynck_web/telemetry.ex
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
null
null
null
defmodule HomesynckWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Lear...
32.732143
86
0.674304
7904f231f2a72bef288260225321b2677038d1b9
1,353
ex
Elixir
lib/example_template.ex
flixbi/element-parsers
b92ef1cff139130acbac4f40d0d48568a3de6590
[ "MIT" ]
1
2021-11-10T18:06:59.000Z
2021-11-10T18:06:59.000Z
lib/example_template.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
lib/example_template.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
defmodule Parser do use Platform.Parsing.Behaviour require Logger # # Parser for device EXAMPLE that will provide EXAMPLE data. # # Changelog: # 2019-05-09 [jb]: Initial implementation according to "Example-Payload-v1.pdf" # def parse(<<v1, v2, v3>>, %{meta: %{frame_port: 1}}) do %{ type...
24.160714
123
0.577236
790553294369f2a6e042051b023ee0bff38dfc71
6,844
exs
Elixir
test/gears_test.exs
machine-manager/gears
e9e48ff76e96c0671e753f842502888a518cb61a
[ "MIT" ]
null
null
null
test/gears_test.exs
machine-manager/gears
e9e48ff76e96c0671e753f842502888a518cb61a
[ "MIT" ]
null
null
null
test/gears_test.exs
machine-manager/gears
e9e48ff76e96c0671e753f842502888a518cb61a
[ "MIT" ]
null
null
null
alias Gears.{LangUtil, FileUtil, StringUtil, TableFormatter} defmodule Gears.LangUtilTest do use ExUnit.Case test "oper_if works on binaries" do import LangUtil, only: [oper_if: 3] s = "hello" out = {s, &Kernel.<>/2} |> oper_if(true, " ") |> oper_if(false, "mars") |> oper_if(true, "world") |> e...
28.756303
109
0.646552
7905669b5da26408afa62c9cde922442af74696e
3,520
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/path_rule.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/path_rule.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/path_rule.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...
58.666667
503
0.749716
790570bba04e90f59f44d25d400c8d734ce2110a
4,069
ex
Elixir
deps/distillery/lib/mix/lib/releases/models/app.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/distillery/lib/mix/lib/releases/models/app.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
deps/distillery/lib/mix/lib/releases/models/app.ex
renatoalmeidaoliveira/Merlin
92a0e318872190cdfa07ced85ee54cc69cad5c14
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Releases.App do @moduledoc """ Represents important metadata about a given application. """ defstruct name: nil, vsn: nil, applications: [], included_applications: [], unhandled_deps: [], start_type: nil, path: nil @type start_type :: :permanent | :temporary | :transien...
31.542636
99
0.57508
79059f2dd992bf073061d080756434259fe0c748
104
exs
Elixir
test/ambassador/subdivision_test.exs
Recruitee/ambassador
309e70f679b83609ba17fee5f43e8e69e0f66fa3
[ "MIT" ]
1
2020-10-29T11:28:32.000Z
2020-10-29T11:28:32.000Z
test/ambassador/subdivision_test.exs
Recruitee/ambassador
309e70f679b83609ba17fee5f43e8e69e0f66fa3
[ "MIT" ]
2
2020-10-23T22:27:34.000Z
2021-12-29T06:00:52.000Z
test/ambassador/subdivision_test.exs
Recruitee/ambassador
309e70f679b83609ba17fee5f43e8e69e0f66fa3
[ "MIT" ]
2
2020-10-15T17:48:11.000Z
2021-08-04T12:59:38.000Z
defmodule Cadastre.SubdivisionTest do use ExUnit.Case, async: true doctest Cadastre.Subdivision end
20.8
37
0.817308
7905b7059f0ea2901e1aa6e2042311584df1bfe3
4,346
exs
Elixir
test/phoenix/digester_test.exs
manukall/phoenix
5ce19ebb63b1b31e37da5fe6465edb6c4850772e
[ "MIT" ]
1
2019-06-11T20:22:21.000Z
2019-06-11T20:22:21.000Z
test/phoenix/digester_test.exs
DavidAlphaFox/phoenix
560131ab3b48c6b6cf864a3d20b7667e40990237
[ "MIT" ]
null
null
null
test/phoenix/digester_test.exs
DavidAlphaFox/phoenix
560131ab3b48c6b6cf864a3d20b7667e40990237
[ "MIT" ]
null
null
null
defmodule Phoenix.DigesterTest do use ExUnit.Case, async: true test "fails when the given paths are invalid" do assert {:error, :invalid_path} = Phoenix.Digester.compile("nonexistent path", "/ ?? /path") end test "digests and compress files" do output_path = Path.join("tmp", "phoenix_digest") inpu...
35.333333
95
0.669581
7905db8fd1725d8af4138aca70f07706f8a80dc2
359
ex
Elixir
lib/couch_gears/mochiweb/body_parser.ex
Zatvobor/couch_gears
5ebfdec4d79fb3734d7d2cb36e495b6e408eac21
[ "Apache-2.0" ]
1
2015-09-29T03:07:04.000Z
2015-09-29T03:07:04.000Z
lib/couch_gears/mochiweb/body_parser.ex
Zatvobor/couch_gears
5ebfdec4d79fb3734d7d2cb36e495b6e408eac21
[ "Apache-2.0" ]
null
null
null
lib/couch_gears/mochiweb/body_parser.ex
Zatvobor/couch_gears
5ebfdec4d79fb3734d7d2cb36e495b6e408eac21
[ "Apache-2.0" ]
null
null
null
defmodule CouchGears.Mochiweb.BodyParser do @moduledoc false @doc false def parse(conn) do { content_type, body } = { conn.req_headers("Content-Type"), conn.raw_req_body } parse_body(content_type, body) end @doc false def parse_body("application/json", body), do: :ejson.decode(body) @doc false ...
23.933333
84
0.707521
79061665eb22b39b8e554f092eadc58a86d36954
1,151
exs
Elixir
config/config.exs
iobee-io/scenic_live_reload
2a7268d065c60cf009864571ba91d112f478802b
[ "Apache-2.0" ]
13
2019-07-08T20:25:56.000Z
2021-06-14T14:46:40.000Z
scenic_live_reload/config/config.exs
QuantumProductions/scenic_font_test
ff8d0df6ade399039b9d9e816e398cb1ad80a7db
[ "BSD-3-Clause" ]
26
2019-07-09T18:56:17.000Z
2022-03-23T18:16:46.000Z
scenic_live_reload/config/config.exs
QuantumProductions/scenic_font_test
ff8d0df6ade399039b9d9e816e398cb1ad80a7db
[ "BSD-3-Clause" ]
3
2021-09-27T13:29:59.000Z
2021-10-04T15:25:46.000Z
# 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.755864
79062195a7c38d24b4e43220add678c51f89b023
1,179
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20171120031341_create_transfers.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/priv/repo/migrations/20171120031341_create_transfers.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/priv/repo/migrations/20171120031341_create_transfers.exs
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 ...
34.676471
74
0.719254
79062fbc7cdae1ebe2e5b7f772065e7d46d0feb0
1,924
ex
Elixir
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/endpoint.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
14
2019-08-01T07:55:50.000Z
2021-04-24T09:14:09.000Z
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/endpoint.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
1
2019-08-02T03:03:40.000Z
2019-08-02T03:03:40.000Z
{{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/lib/{{cookiecutter.phoenix_app_slug}}_web/endpoint.ex
ibakami/cookiecutter-elixir-phoenix
672b9e05f40b01a810a073a9712fc3300c396e40
[ "MIT" ]
null
null
null
defmodule {{cookiecutter.phoenix_app_module}}Web.Endpoint do use Phoenix.Endpoint, otp_app: :{{cookiecutter.phoenix_app_slug}}_web use Absinthe.Phoenix.Endpoint socket "/socket", {{cookiecutter.phoenix_app_module}}Web.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "p...
33.754386
96
0.724012
7906324223b0a2d79aeb1bd9154a959f0e1cabf4
8,473
ex
Elixir
lib/documents/session/models/session_state.ex
YgorCastor/ravix
ad3d191e2682b87d533a2d41899ed10e00b4dc55
[ "Apache-2.0" ]
9
2022-01-11T10:01:54.000Z
2022-03-31T06:50:59.000Z
lib/documents/session/models/session_state.ex
YgorCastor/ravix
ad3d191e2682b87d533a2d41899ed10e00b4dc55
[ "Apache-2.0" ]
2
2022-03-21T20:13:13.000Z
2022-03-28T21:07:47.000Z
lib/documents/session/models/session_state.ex
YgorCastor/ravix
ad3d191e2682b87d533a2d41899ed10e00b4dc55
[ "Apache-2.0" ]
null
null
null
defmodule Ravix.Documents.Session.State do @moduledoc """ A session state representation ## Fields - store: The Store module for which the session belongs - session_id: The uuid of this session - database: for which database this session belongs - conventions: Document conventions for this session - do...
28.918089
95
0.662457
79063f0fb7a7ea2dfaf4b6d2ebd7eb0d39537083
7,215
ex
Elixir
clients/games/lib/google_api/games/v1/api/snapshots.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/api/snapshots.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/games/lib/google_api/games/v1/api/snapshots.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...
47.467105
244
0.637422
79066f06d82f52fff41dd4c8ed8f8cc23766a01c
203
exs
Elixir
apps/nerves_hub_web_core/priv/repo/migrations/20190429173128_add_needs_attention_to_devices.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20190429173128_add_needs_attention_to_devices.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20190429173128_add_needs_attention_to_devices.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubWebCore.Repo.Migrations.AddNeedsAttentionToDevices do use Ecto.Migration def change do alter table(:devices) do add(:healthy, :boolean, default: true) end end end
20.3
72
0.738916
790674d0205c51edf55a3db08d478ff1018e747d
1,499
ex
Elixir
lib/clamex/output.ex
szajbus/clamex
aeff9f3723922cdc13e7318956d062d33aeab6f4
[ "MIT" ]
3
2019-01-29T10:08:38.000Z
2022-01-21T11:17:27.000Z
lib/clamex/output.ex
szajbus/clamex
aeff9f3723922cdc13e7318956d062d33aeab6f4
[ "MIT" ]
1
2020-09-07T11:01:12.000Z
2020-09-07T13:16:51.000Z
lib/clamex/output.ex
szajbus/clamex
aeff9f3723922cdc13e7318956d062d33aeab6f4
[ "MIT" ]
null
null
null
defmodule Clamex.Output do @moduledoc """ Utilities to process scanner output. """ @doc """ Extract error message from scanner's output. Depending on error scenario and scanner used, error messages included in the output may be formatted in different ways. The error message is extracted in following ...
25.844828
78
0.666444
790676a1799070e908b374b36a8f214f694e64c8
2,592
ex
Elixir
lib/exc_error.ex
miros/exc_error
c4f7da518025f7fbe74f5a6a896e845aaf11f4cd
[ "Apache-2.0" ]
8
2020-03-25T10:05:40.000Z
2021-11-20T10:56:17.000Z
lib/exc_error.ex
miros/exc_error
c4f7da518025f7fbe74f5a6a896e845aaf11f4cd
[ "Apache-2.0" ]
2
2019-08-23T11:21:47.000Z
2020-12-22T10:46:59.000Z
lib/exc_error.ex
miros/exc_error
c4f7da518025f7fbe74f5a6a896e845aaf11f4cd
[ "Apache-2.0" ]
null
null
null
defmodule ExcError do @default_fields [:cause] defmodule Helpers do def to_s({:error, error}), do: to_s(error) def to_s(term) do if String.Chars.impl_for(term) do to_string(term) else inspect(term) end end end defmacro define(name, options \\ []) do record_fi...
25.165049
93
0.599151
790677d531d6ae3543a51b754a4720f990dfc9c8
6,151
exs
Elixir
test/bson/bson_test.exs
szTheory/bsoneach
deb0a6721518ed9712cef4fc952df5ae3ba23c69
[ "MIT" ]
8
2016-08-05T19:28:16.000Z
2021-07-15T22:00:30.000Z
test/bson/bson_test.exs
szTheory/bsoneach
deb0a6721518ed9712cef4fc952df5ae3ba23c69
[ "MIT" ]
5
2016-08-29T13:07:15.000Z
2016-11-24T16:58:01.000Z
test/bson/bson_test.exs
szTheory/bsoneach
deb0a6721518ed9712cef4fc952df5ae3ba23c69
[ "MIT" ]
5
2018-06-19T02:43:46.000Z
2021-07-15T22:00:36.000Z
defmodule BSONTest do use ExUnit.Case, async: true import BSON.Decoder, only: [decode: 1] @map1 %{"hello" => "world"} @bin1 <<22, 0, 0, 0, 2, 104, 101, 108, 108, 111, 0, 6, 0, 0, 0, 119, 111, 114, 108, 100, 0, 0>> @map2 %{"BSON" => ["awesome", 5.05, 1986]} @bin2 <<49, 0, 0, 0, 4, 66, 83, 79, 78...
32.718085
120
0.517802
79067b84c12e818b22e4067cb1c4f75fa6b48480
1,546
ex
Elixir
apps/meeple_web/lib/meeple_web/views/error_helpers.ex
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
null
null
null
apps/meeple_web/lib/meeple_web/views/error_helpers.ex
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
13
2021-12-24T23:44:10.000Z
2022-03-04T20:56:28.000Z
apps/meeple_web/lib/meeple_web/views/error_helpers.ex
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
null
null
null
defmodule MeepleWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:...
32.208333
75
0.664942
79068f666da00479fb511e440ee6d95b35ab82d8
236
ex
Elixir
web/controllers/hello_controller.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
1
2017-10-05T08:53:03.000Z
2017-10-05T08:53:03.000Z
web/controllers/hello_controller.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
null
null
null
web/controllers/hello_controller.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
1
2019-04-06T02:33:19.000Z
2019-04-06T02:33:19.000Z
defmodule ElixirMix.HelloController do use Phoenix.Controller require Logger plug :action # Hello Demo def index(conn, _params) do Logger.info "Hello from the Hello Controller" render conn, "index.html" end end
14.75
49
0.720339
7906cd445f2b7fccffd974ae010d42e7711f7dda
909
exs
Elixir
lib/euler_046.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
8
2015-11-04T05:03:05.000Z
2022-01-25T19:34:46.000Z
lib/euler_046.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
null
null
null
lib/euler_046.exs
sorentwo/euler
76244a0ef3dcfa17d6b9571daa5d0b46f09057f4
[ "MIT" ]
null
null
null
defmodule EulerFortySix do import PrimeSieve @moduledoc """ It was proposed by Christian Goldbach that every odd composite number can be written as the sum of a prime and twice a square. 9 = 7 + 2×1^2 15 = 7 + 2×2^2 21 = 3 + 2×3^2 25 = 7 + 2×3^2 27 = 19 + 2×2^2 33 = 31 + 2×1^2 It turns out that...
19.340426
71
0.619362
7906cf105965f23ee528d579e74a751f013cb923
4,033
ex
Elixir
lib/mix/ecto.ex
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
lib/mix/ecto.ex
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
lib/mix/ecto.ex
victorsolis/ecto
6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Ecto do # Conveniences for writing Mix.Tasks in Ecto. @moduledoc false @doc """ Parses the repository option from the given list. If no repo option is given, we get one from the environment. """ @spec parse_repo([term]) :: [Ecto.Repo.t] def parse_repo(args) do parse_repo(args, []) ...
26.708609
87
0.620134
7906e606f77fb35b10ab2ab89ffb283354362fb7
15,788
ex
Elixir
lib/cms/v2/protocols/proto.ex
noizu/KitchenSink
34f51fb93dfa913ba7be411475d02520d537e676
[ "MIT" ]
2
2019-04-15T22:17:59.000Z
2022-01-03T15:35:36.000Z
lib/cms/v2/protocols/proto.ex
noizu/KitchenSink
34f51fb93dfa913ba7be411475d02520d537e676
[ "MIT" ]
null
null
null
lib/cms/v2/protocols/proto.ex
noizu/KitchenSink
34f51fb93dfa913ba7be411475d02520d537e676
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2020 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defprotocol Noizu.Cms.V2.Proto do @fallback_to_any false #----...
28.446847
98
0.515328
79070206e56d2f9e183b16f687ff653b325c00ee
508
exs
Elixir
benchmark/R5_000.KS.U2.F2.exs
kianmeng/csv_schema
c1e45e5139faeb033f8b3106dacfe288aec24b5c
[ "MIT" ]
12
2019-01-15T13:07:09.000Z
2022-01-22T08:15:46.000Z
benchmark/R5_000.KS.U2.F2.exs
kianmeng/csv_schema
c1e45e5139faeb033f8b3106dacfe288aec24b5c
[ "MIT" ]
5
2019-01-17T11:46:00.000Z
2021-12-21T09:42:14.000Z
benchmark/R5_000.KS.U2.F2.exs
kianmeng/csv_schema
c1e45e5139faeb033f8b3106dacfe288aec24b5c
[ "MIT" ]
1
2019-09-25T09:58:07.000Z
2019-09-25T09:58:07.000Z
defmodule R5_000.KS.U2.F2 do @moduledoc false use Csv.Schema import Csv.Schema.Parser schema path: "data/dataset_5_000.csv" do field :id, "id", key: true, parser: &integer!/1 field :first_name, "first_name", filter_by: true field :last_name, "last_name" field :email, "email", unique: true f...
28.222222
52
0.683071
790734054e1d1b215396e8bdcb69cbadc8386469
4,070
ex
Elixir
lib/codes/codes_d30.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_d30.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_d30.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_D30 do alias IcdCode.ICDCode def _D3000 do %ICDCode{full_code: "D3000", category_code: "D30", short_code: "00", full_name: "Benign neoplasm of unspecified kidney", short_name: "Benign neoplasm of unspecified kidney", category_name:...
32.822581
76
0.609828
79073ff022aac17f48a44372654c3b8b653af433
7,890
ex
Elixir
lib/oban/config.ex
stevelead/oban
96f8ce2a8bf9f37f49052512176a73b136bd3731
[ "Apache-2.0" ]
null
null
null
lib/oban/config.ex
stevelead/oban
96f8ce2a8bf9f37f49052512176a73b136bd3731
[ "Apache-2.0" ]
null
null
null
lib/oban/config.ex
stevelead/oban
96f8ce2a8bf9f37f49052512176a73b136bd3731
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Config do @moduledoc """ The Config struct validates and encapsulates Oban instance state. Options passed to `Oban.start_link/1` are validated and stored in a config struct. Internal modules and plugins are always passed the config with a `:conf` key. """ @type t :: %__MODULE__{ d...
30.114504
101
0.625729
79074378c2fc06812580b23ee04cd8d98211ca1d
336
exs
Elixir
priv/repo/migrations/20210923114510_create_profiles.exs
audacioustux/philopets
9380416937d635d4b1f5e13fa6f8b52ee603addf
[ "blessing" ]
null
null
null
priv/repo/migrations/20210923114510_create_profiles.exs
audacioustux/philopets
9380416937d635d4b1f5e13fa6f8b52ee603addf
[ "blessing" ]
null
null
null
priv/repo/migrations/20210923114510_create_profiles.exs
audacioustux/philopets
9380416937d635d4b1f5e13fa6f8b52ee603addf
[ "blessing" ]
null
null
null
defmodule Philopets.Repo.Migrations.CreateProfiles do use Ecto.Migration def change do create table(:profiles) do add(:display_name, :string, null: false) add(:account_id, references(:accounts, on_delete: :delete_all), null: false) timestamps() end create(index(:profiles, [:account_...
22.4
82
0.693452
790768ad4891d140c097d048a01d4608bb2aba9b
1,232
exs
Elixir
config/dev.exs
tjefferson08/frizzle-server
8db3f31e4dae6583603fd2006415129f623827ba
[ "MIT" ]
null
null
null
config/dev.exs
tjefferson08/frizzle-server
8db3f31e4dae6583603fd2006415129f623827ba
[ "MIT" ]
null
null
null
config/dev.exs
tjefferson08/frizzle-server
8db3f31e4dae6583603fd2006415129f623827ba
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :frizzle, Frizzle.Endpoint, http: [port: 4000]...
28
68
0.706981
79078a8e4530ed18a43a80e987d1c3f1e1a80bfa
1,956
ex
Elixir
apps/artemis_web/lib/artemis_web/view_helpers/query_params.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis_web/lib/artemis_web/view_helpers/query_params.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_web/lib/artemis_web/view_helpers/query_params.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule ArtemisWeb.ViewHelper.QueryParams do use Phoenix.HTML @doc """ Adds or drops values from existing query params. Drops any key/value pairs where the final value is either: nil "" # Empty Bitstring [] # Empty List %{} # Empty Map """ def update_query_params(current_q...
27.166667
110
0.651329
7907a5440c09e8ed7ab0e4d7ff12d1f10926cf5f
1,642
ex
Elixir
lib/telepath_web.ex
jdangerx/telepath
75314db05dd97ea86b5a828ab673fed33ecad5e1
[ "MIT" ]
null
null
null
lib/telepath_web.ex
jdangerx/telepath
75314db05dd97ea86b5a828ab673fed33ecad5e1
[ "MIT" ]
null
null
null
lib/telepath_web.ex
jdangerx/telepath
75314db05dd97ea86b5a828ab673fed33ecad5e1
[ "MIT" ]
null
null
null
defmodule TelepathWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use TelepathWeb, :controller use TelepathWeb, :view The definitions below will be executed for every view, controlle...
23.457143
83
0.69123