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
1dbc8b3085ffe6fed9b8761b289abaf1a48cb9ae
459
exs
Elixir
test/slack_inviter_web/views/error_view_test.exs
syracuseio/slack_inviter
a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81
[ "MIT" ]
null
null
null
test/slack_inviter_web/views/error_view_test.exs
syracuseio/slack_inviter
a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81
[ "MIT" ]
3
2021-03-08T19:58:55.000Z
2021-09-01T03:46:56.000Z
test/slack_inviter_web/views/error_view_test.exs
syracuseio/slack_inviter
a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81
[ "MIT" ]
1
2018-08-15T01:52:40.000Z
2018-08-15T01:52:40.000Z
defmodule SlackInviterWeb.ErrorViewTest do use SlackInviterWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(SlackInviterWeb.ErrorView, "404.html", []) == "Not Found" end test "r...
27
73
0.71024
1dbc95cd8f8e998d92b2d5d33cb90d93fb146485
2,440
exs
Elixir
test/resourceful/collection/list/filters_test.exs
binarypaladin/resourceful
a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610
[ "MIT" ]
null
null
null
test/resourceful/collection/list/filters_test.exs
binarypaladin/resourceful
a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610
[ "MIT" ]
2
2021-03-11T21:23:54.000Z
2021-03-12T23:34:21.000Z
test/resourceful/collection/list/filters_test.exs
binarypaladin/resourceful
a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610
[ "MIT" ]
null
null
null
defmodule Resourceful.Collection.List.FiltersTest do use ExUnit.Case alias Resourceful.Collection.List.Filters alias Resourceful.Test.Fixtures import Resourceful.Test.Helpers test "equals" do assert Fixtures.albums() |> Filters.equal(["artist", "name"], "Queen") |> ids() == [5] ...
28.045977
95
0.535246
1dbca051b245346b96369c07f0010d1b9e0ae534
1,420
ex
Elixir
lib/plug/parsers/urlencoded.ex
VinogradovAlexandr/plug
baad2c4fa48a9c288545e4581e30c0d6a007f3d1
[ "Apache-2.0" ]
1
2020-09-01T12:50:36.000Z
2020-09-01T12:50:36.000Z
lib/plug/parsers/urlencoded.ex
VinogradovAlexandr/plug
baad2c4fa48a9c288545e4581e30c0d6a007f3d1
[ "Apache-2.0" ]
null
null
null
lib/plug/parsers/urlencoded.ex
VinogradovAlexandr/plug
baad2c4fa48a9c288545e4581e30c0d6a007f3d1
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Parsers.URLENCODED do @moduledoc """ Parses urlencoded request body. ## Options All options supported by `Plug.Conn.read_body/2` are also supported here. They are repeated here for convenience: * `:length` - sets the maximum number of bytes to read from the request, defaults to 1_0...
29.583333
96
0.661268
1dbcb1c4051359facc8172cd4b35c07cbbd8400a
1,816
exs
Elixir
mix.exs
lpil/rihanna
83db1fab1550244a9e3cb347ccda607f5ff4e4b5
[ "MIT" ]
null
null
null
mix.exs
lpil/rihanna
83db1fab1550244a9e3cb347ccda607f5ff4e4b5
[ "MIT" ]
null
null
null
mix.exs
lpil/rihanna
83db1fab1550244a9e3cb347ccda607f5ff4e4b5
[ "MIT" ]
null
null
null
defmodule Rihanna.MixProject do use Mix.Project def project do [ app: :rihanna, version: "1.3.3", elixir: "~> 1.5", start_permanent: Mix.env() == :prod, deps: deps(), dialyzer: [ignore_warnings: "dialyzer.ignore-warnings"], package: package(), elixirc_paths: elix...
27.104478
73
0.561674
1dbd08c20b1a49ac53833c640ab00be92031d28c
1,948
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/peripherals_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/peripherals_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/peripherals_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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.196078
203
0.749487
1dbd21cfda634a06cdf0fdab950d9c45ea2ffdab
433
ex
Elixir
lib/celery_script/commands/rpc_ok.ex
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
lib/celery_script/commands/rpc_ok.ex
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
lib/celery_script/commands/rpc_ok.ex
KRISHITECH/farmbot_os
4220baf8f3ef930ce3b861b178ca6a76e2fd7591
[ "MIT" ]
null
null
null
defmodule Farmbot.CeleryScript.Command.RpcOk do @moduledoc """ RpcOk """ alias Farmbot.CeleryScript.Ast alias Farmbot.CeleryScript.Command require Logger @behaviour Command @doc ~s""" Return for a valid Rpc Request args: %{label: String.t}, body: [] """ @spec run(%{label: String....
20.619048
54
0.6097
1dbd4a965df535dabcaabc36a61765714df87a3b
1,281
ex
Elixir
lib/til_web/endpoint.ex
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
null
null
null
lib/til_web/endpoint.ex
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
2
2020-04-26T14:03:27.000Z
2020-12-12T17:14:02.000Z
lib/til_web/endpoint.ex
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
null
null
null
defmodule TilWeb.Endpoint do use Phoenix.Endpoint, otp_app: :til socket "/live", Phoenix.LiveView.Socket socket "/socket", TilWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.diges...
26.142857
69
0.704137
1dbd5efc07036227501cccc87de28e9eb86c9c8e
2,873
exs
Elixir
config/runtime.exs
wagncarv/CurrencyExchange
3e626681d97a17a68385be31d8c8a82fd4bfcd59
[ "MIT" ]
1
2022-03-28T19:10:45.000Z
2022-03-28T19:10:45.000Z
config/runtime.exs
wagner-de-carvalho/currency_exchange
6c784dcab0af3345c71a41ca606158298a447d49
[ "MIT" ]
null
null
null
config/runtime.exs
wagner-de-carvalho/currency_exchange
6c784dcab0af3345c71a41ca606158298a447d49
[ "MIT" ]
null
null
null
import Config # config/runtime.exs is executed for all environments, including # during releases. It is executed after compilation and before the # system starts, so it is typically used to load production configuration # and secrets from environment variables or elsewhere. Do not define # any compile-time configurati...
38.824324
82
0.698921
1dbd6c2d94470f67905ced33763156811f4df3f0
1,139
exs
Elixir
config/config.exs
frojasg/adventofcode
4ae0edc3c68899ba15fb650a2f1b34079c78c3b0
[ "Apache-2.0" ]
null
null
null
config/config.exs
frojasg/adventofcode
4ae0edc3c68899ba15fb650a2f1b34079c78c3b0
[ "Apache-2.0" ]
null
null
null
config/config.exs
frojasg/adventofcode
4ae0edc3c68899ba15fb650a2f1b34079c78c3b0
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.741935
73
0.753292
1dbda7f8f0546932bf20d8fa7772e7154891b223
439
exs
Elixir
samples/fast.exs
PragTob/benchee_html
0dd2ea95399deb7cfb6013e9be7a70cfa754b807
[ "MIT" ]
36
2016-12-01T08:07:29.000Z
2019-01-09T12:23:43.000Z
samples/fast.exs
PragTob/benchee_html
0dd2ea95399deb7cfb6013e9be7a70cfa754b807
[ "MIT" ]
40
2016-11-30T10:22:36.000Z
2019-03-13T09:13:49.000Z
samples/fast.exs
PragTob/benchee_html
0dd2ea95399deb7cfb6013e9be7a70cfa754b807
[ "MIT" ]
11
2017-05-20T09:54:04.000Z
2019-02-07T10:32:49.000Z
# It is possible to use multiple formatters so that you have both the Console # output and an HTML file. list = Enum.to_list(1..10_000) map_fun = fn i -> [i, i * i] end Benchee.run( %{ "flat_map" => fn -> Enum.flat_map(list, map_fun) end, "map.flatten" => fn -> list |> Enum.map(map_fun) |> List.flatten() end...
27.4375
77
0.646925
1dbda7f99c124b18053d12062391cb8d8ff3e8ae
1,361
ex
Elixir
apps/quickstart_web/lib/quickstart_web/graphql/schema.ex
jdcumpson/elixir-phoenix-ssr-redux-postgres
20ecf8bac1322be273ed6441bb586b8574998286
[ "MIT" ]
1
2020-11-04T04:32:56.000Z
2020-11-04T04:32:56.000Z
apps/quickstart_web/lib/quickstart_web/graphql/schema.ex
jdcumpson/elixir-phoenix-ssr-redux-postgres
20ecf8bac1322be273ed6441bb586b8574998286
[ "MIT" ]
4
2021-10-06T22:46:17.000Z
2022-02-27T12:04:59.000Z
apps/quickstart_web/lib/quickstart_web/graphql/schema.ex
jdcumpson/elixir-phoenix-ssr-redux-postgres
20ecf8bac1322be273ed6441bb586b8574998286
[ "MIT" ]
null
null
null
defmodule QuickstartWeb.GraphQL.Schema do use Absinthe.Schema alias QuickstartWeb.GraphQL.Resolvers # import Absinthe.Resolution.Helpers, only: [dataloader: 1] import_types(Absinthe.Plug.Types) import_types(Absinthe.Type.Custom) def plugins do [Absinthe.Middleware.Dataloader] ++ Absinthe.Plugin.defaul...
24.303571
98
0.653196
1dbdaddb23289274f36bb37084aa63f2e87caa37
1,796
ex
Elixir
lib/open_pantry/web/web.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
41
2017-10-04T00:33:46.000Z
2021-04-09T01:33:34.000Z
lib/open_pantry/web/web.ex
openpantry/open_pantry
27d898a65dd6f44b325f48d41bc448bb486d9c6f
[ "MIT" ]
74
2017-09-20T03:36:17.000Z
2018-11-20T20:46:16.000Z
lib/open_pantry/web/web.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
12
2017-10-04T10:02:49.000Z
2021-12-28T22:57:20.000Z
defmodule OpenPantry.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use OpenPantry.Web, :controller use OpenPantry.Web, :view The definitions below will be executed for every view, controller, etc, so keep...
21.638554
88
0.672049
1dbdb140a9b06c5a65276bd1a9fd1f2cc27103b2
2,429
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/monitor_stream_info.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/monitor_stream_info.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/monitor_stream_info.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...
44.981481
595
0.75669
1dbdfa43c7967f32e79dba467586604732c6ad6d
2,395
ex
Elixir
clients/domains/lib/google_api/domains/v1/model/glue_record.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/domains/lib/google_api/domains/v1/model/glue_record.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/domains/lib/google_api/domains/v1/model/glue_record.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.188679
380
0.720251
1dbe1301f02fbb878a2c012f07d905d979f0d722
2,617
ex
Elixir
hideinpng.ex
corey-p/hideinpng
43899b4655242633f72453cb82f661b08eb34079
[ "MIT" ]
null
null
null
hideinpng.ex
corey-p/hideinpng
43899b4655242633f72453cb82f661b08eb34079
[ "MIT" ]
null
null
null
hideinpng.ex
corey-p/hideinpng
43899b4655242633f72453cb82f661b08eb34079
[ "MIT" ]
null
null
null
defmodule HideInPng do @moduledoc """ ## Description HideInPng is an Elixir module for hiding files within PNG images. ## Examples iex(2)> c "hideinpng.ex" [HideInPng] iex(3)> HideInPng.encode("imgs/dice.png", "imgs/mushroom.png") :ok iex(4)> HideInPng.decode("imgs/dice.png", "im...
28.758242
100
0.610623
1dbe222923e1bf78168be8115b01253ddcc36759
1,171
ex
Elixir
lib/stein/filter.ex
smartlogic/stein
785dff2d0400925b896d78b0f092fc501b685d0c
[ "MIT" ]
14
2019-03-07T22:06:51.000Z
2021-06-05T19:27:22.000Z
lib/stein/filter.ex
smartlogic/stein
785dff2d0400925b896d78b0f092fc501b685d0c
[ "MIT" ]
1
2019-03-07T16:46:11.000Z
2019-03-07T16:46:11.000Z
lib/stein/filter.ex
smartlogic/stein
785dff2d0400925b896d78b0f092fc501b685d0c
[ "MIT" ]
null
null
null
defmodule Stein.Filter do @moduledoc """ Filter an `Ecto.Query` by a map of parameters. ### Example Module defmodule MyApp.Orders do @behaviour Stein.Filter def filter_on_attribute({"name", value}, query) do value = "%" <> value <> "%" where(query, [o], like(o.name, ^v...
23.42
76
0.601196
1dbe772a33befb026ac2554c00cf0794e781ac93
297
exs
Elixir
livebooks/create_session.exs
FreedomBen/malan
ec8cd6ed3694e33371f065f018b1169956f2accf
[ "MIT" ]
3
2021-04-24T17:54:55.000Z
2021-09-10T15:40:19.000Z
livebooks/create_session.exs
FreedomBen/malan
ec8cd6ed3694e33371f065f018b1169956f2accf
[ "MIT" ]
57
2021-04-24T03:17:16.000Z
2022-03-27T04:50:22.000Z
livebooks/create_session.exs
FreedomBen/malan
ec8cd6ed3694e33371f065f018b1169956f2accf
[ "MIT" ]
null
null
null
alias Malan.Repo alias Malan.Accounts alias Malan.Accounts.User # Retrieve the user's ID %User{id: user_id} = user = Accounts.get_user_by(email: "email@example.com") # Use the user ID to create a new session (API token) Accounts.new_session(%{"user_id" => user_id, "ip_address" => "127.0.0.1"})
29.7
76
0.727273
1dbe7f480ee86886f8aa5bf80147c088e8f7df1f
703
ex
Elixir
lib/snmp/schema.ex
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
6
2021-02-26T13:42:47.000Z
2022-01-17T18:49:25.000Z
lib/snmp/schema.ex
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
2
2021-02-26T14:09:00.000Z
2021-04-22T10:49:25.000Z
lib/snmp/schema.ex
mattjg908/elixir-snmp
a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9
[ "MIT" ]
1
2021-10-19T21:24:03.000Z
2021-10-19T21:24:03.000Z
defmodule Snmp.Schema do @moduledoc """ Ecto schema for MIB tables """ defmacro __using__(opts) do field_prefix_mapper = case Keyword.get(opts, :field_prefix) do nil -> [] prefix -> [ quote do @field_source_mapper Snmp.Schema.prefix_field_...
19
85
0.553343
1dbe808bfa35b238c69b24059967176ea776afac
772
ex
Elixir
lib/sanbase/accounts/user/user_twitter.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase/accounts/user/user_twitter.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase/accounts/user/user_twitter.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Accounts.User.Twitter do alias Sanbase.Repo alias Sanbase.Accounts.User def find_or_insert_by_twitter_id(twitter_id, attrs \\ %{}) do case Repo.get_by(User, twitter_id: twitter_id) do nil -> user_create_attrs = Map.merge( attrs, %{twitter_id: ...
24.903226
90
0.621762
1dbe8e17022d52dff68ab6e63f5971d99b0d01e8
969
exs
Elixir
mix.exs
nickveys/elixirconf-2016-blinky-ale
cbc6d88b434fec36afad6edad2b1e0b7dc5bb974
[ "Unlicense" ]
null
null
null
mix.exs
nickveys/elixirconf-2016-blinky-ale
cbc6d88b434fec36afad6edad2b1e0b7dc5bb974
[ "Unlicense" ]
null
null
null
mix.exs
nickveys/elixirconf-2016-blinky-ale
cbc6d88b434fec36afad6edad2b1e0b7dc5bb974
[ "Unlicense" ]
null
null
null
defmodule BlinkyAle.Mixfile do use Mix.Project @target System.get_env("NERVES_TARGET") || "linkit" def project do [app: :blinky_ale, version: "0.0.1", target: @target, archives: [nerves_bootstrap: "~> 0.1.4"], deps_path: "deps/#{@target}", build_path: "_build/#{@target}", build...
23.071429
65
0.607843
1dbea0eb184bb08668f0c92e52ffa12ab30805b1
23,454
ex
Elixir
lib/aws/config.ex
tylerpearson/aws-elixir
09b7d3a3b9da1d775249cca291ab42ec5a081ff2
[ "Apache-2.0" ]
null
null
null
lib/aws/config.ex
tylerpearson/aws-elixir
09b7d3a3b9da1d775249cca291ab42ec5a081ff2
[ "Apache-2.0" ]
null
null
null
lib/aws/config.ex
tylerpearson/aws-elixir
09b7d3a3b9da1d775249cca291ab42ec5a081ff2
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/jkakar/aws-codegen for more details. defmodule AWS.Config do @moduledoc """ AWS Config AWS Config provides a way to keep track of the configurations of all the AWS resources associated with your AWS account. You can use AWS Config to get ...
39.955707
121
0.743455
1dbeca897e640fb48d39000137e29c79a7900fcc
577
exs
Elixir
HackerRank/Algorithms/Warmup/time conversion/time_conv.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
HackerRank/Algorithms/Warmup/time conversion/time_conv.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
HackerRank/Algorithms/Warmup/time conversion/time_conv.exs
cjschneider2/practice_code
5d9b793eccca39262fb452fa1f3f53e6b54bc7aa
[ "Unlicense" ]
null
null
null
defmodule HR do def parse_time(in_time) do [hh_s, mm_s, ss_s, apm] = Regex.run(~r/(\d?\d):(\d\d):(\d\d)(AM|PM)/, in_time, capture: :all_but_first) hh = hh_s |> Integer.parse |> elem(0) ap = case {apm, hh} do {"AM", 12} -> -12 {"AM", _ } -> 0 {"PM", 12} -> 0 {"PM...
28.85
107
0.440208
1dbedd9941f4e4ebf7c1f6eff0091a67b9a39ba3
255
ex
Elixir
lib/real_world.ex
codefordenver/new-code-for-denver-site
af6cc232c898a197601b4d37e0cd217d0503fd9b
[ "MIT" ]
909
2017-11-16T08:41:08.000Z
2022-03-31T21:59:17.000Z
lib/real_world.ex
codefordenver/new-code-for-denver-site
af6cc232c898a197601b4d37e0cd217d0503fd9b
[ "MIT" ]
36
2017-11-28T01:31:05.000Z
2021-12-15T05:03:00.000Z
lib/real_world.ex
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
160
2017-11-16T06:00:37.000Z
2022-01-20T13:50:42.000Z
defmodule RealWorld do @moduledoc """ RealWorld keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
25.5
66
0.756863
1dbeddc6471a1a2117325a286ce85ee6c20ad602
1,291
ex
Elixir
priv/perf/apps/load_test/lib/scenario/fund_account.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
priv/perf/apps/load_test/lib/scenario/fund_account.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
priv/perf/apps/load_test/lib/scenario/fund_account.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...
32.275
88
0.736638
1dbee524f388a90dfa288adaeeab9a3ab491a642
206
ex
Elixir
lib/freshcom_web/views/identifier_view.ex
freshcom/freshcom_web
fab44c9468e86b1770eef9971a97ad2b11545e9c
[ "BSD-3-Clause" ]
9
2018-12-16T14:02:59.000Z
2021-01-19T07:25:40.000Z
lib/freshcom_web/views/identifier_view.ex
freshcom/freshcom_web
fab44c9468e86b1770eef9971a97ad2b11545e9c
[ "BSD-3-Clause" ]
null
null
null
lib/freshcom_web/views/identifier_view.ex
freshcom/freshcom_web
fab44c9468e86b1770eef9971a97ad2b11545e9c
[ "BSD-3-Clause" ]
4
2018-12-16T17:50:01.000Z
2021-01-19T07:25:51.000Z
defmodule FreshcomWeb.IdentifierView do use FreshcomWeb, :view use JaSerializer.PhoenixView def type(struct, _) do Map.get(struct, :type) || Enum.at(Module.split(struct.__struct__), 0) end end
22.888889
73
0.737864
1dbf28b3d12bac29061d3440f2456ee0ff303d63
888
ex
Elixir
lib/db_info/web.ex
karlosmid/dbinfo
30ef966f119eb1c8f93871b5557716cef022f3d7
[ "MIT" ]
null
null
null
lib/db_info/web.ex
karlosmid/dbinfo
30ef966f119eb1c8f93871b5557716cef022f3d7
[ "MIT" ]
null
null
null
lib/db_info/web.ex
karlosmid/dbinfo
30ef966f119eb1c8f93871b5557716cef022f3d7
[ "MIT" ]
null
null
null
defmodule DbInfoWeb do @moduledoc false def controller do quote do use Phoenix.Controller, namespace: DbInfoWeb import Plug.Conn # import Phoenix.Router.Helpers # import DbInfo.Gettext end end @doc false def view do quote do @moduledoc false use Phoenix.View,...
19.304348
69
0.649775
1dbf40d27e0e33788e8916d2ee7eb098a3328ec6
610
exs
Elixir
exercise_2.32.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
2
2019-08-26T13:17:27.000Z
2020-09-24T13:16:07.000Z
exercise_2.32.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
exercise_2.32.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
defmodule Subsets do def of([]), do: [[]] def of([head | tail]) do rest = of(tail) rest ++ Enum.map(rest, &([head | &1])) end end ExUnit.start defmodule SubsetsTests do use ExUnit.Case, async: true test "subsets of an empty set is just an empty set" do assert Subsets.of([]) == [[]] end tes...
21.785714
71
0.568852
1dbf6f08213a5df5742f36ac4d75b172cb57022a
1,029
exs
Elixir
test/ecto_autoslug_field_test/slug_generator_test.exs
kianmeng/ecto_autoslug_field
38d83fa3cd7ae925f816b96dd3778554c70e3c84
[ "MIT" ]
143
2016-07-21T22:54:57.000Z
2021-12-31T13:53:03.000Z
test/ecto_autoslug_field_test/slug_generator_test.exs
kianmeng/ecto_autoslug_field
38d83fa3cd7ae925f816b96dd3778554c70e3c84
[ "MIT" ]
154
2016-08-04T18:35:13.000Z
2022-01-12T06:42:17.000Z
test/ecto_autoslug_field_test/slug_generator_test.exs
kianmeng/ecto_autoslug_field
38d83fa3cd7ae925f816b96dd3778554c70e3c84
[ "MIT" ]
21
2016-07-23T18:43:14.000Z
2021-06-03T15:09:21.000Z
defmodule EctoAutoslugField.SlugGeneratorTest do use ExUnit.Case import EctoAutoslugField.SlugGenerator alias EctoAutoslugField.Test.User @valid_attrs %{name: "Nikita Sobolev", company: "wemake.services"} setup do {:ok, %{ user: User.changeset(%User{}, @valid_attrs), opts: [ ...
27.810811
76
0.705539
1dbf9f601d12a7a20909581aa0560dbd3b261f31
160
exs
Elixir
test/color_test.exs
directionalpad/huex
2bf2e9596d4c9712d580622fd592ab85ef4b9664
[ "Apache-2.0" ]
56
2015-07-19T08:04:12.000Z
2021-11-13T06:15:50.000Z
test/color_test.exs
directionalpad/huex
2bf2e9596d4c9712d580622fd592ab85ef4b9664
[ "Apache-2.0" ]
10
2016-01-04T16:51:23.000Z
2019-02-17T00:18:03.000Z
test/color_test.exs
directionalpad/huex
2bf2e9596d4c9712d580622fd592ab85ef4b9664
[ "Apache-2.0" ]
17
2016-01-03T04:18:56.000Z
2022-03-18T12:46:05.000Z
defmodule ColorTest do use ExUnit.Case alias Huex.Color, as: Color test "RGB to HSV" do assert {0, 255, 255} == Color.rgb_to_hsv(1, 0, 0) end end
16
53
0.65625
1dbfd7a1fd1171e8e7589f1b61458eed622b8be7
592
ex
Elixir
test/support/local_cluster_helper.ex
flaviogrossi/horde
89059a28db7f5c23c8f4d044024a738a379a80cb
[ "MIT" ]
3
2019-11-11T17:00:04.000Z
2019-11-20T22:01:06.000Z
test/support/local_cluster_helper.ex
flaviogrossi/horde
89059a28db7f5c23c8f4d044024a738a379a80cb
[ "MIT" ]
null
null
null
test/support/local_cluster_helper.ex
flaviogrossi/horde
89059a28db7f5c23c8f4d044024a738a379a80cb
[ "MIT" ]
null
null
null
defmodule LocalClusterHelper do def start(m, f, a) do :erlang.apply(m, f, a) receive do end end def send_msg(pid, msg) do fn -> send(pid, msg) end end end defmodule EchoServer do def start_link(pid) do GenServer.start_link(__MODULE__, pid) end # def via_tuple do # {:via, Horde....
17.411765
55
0.631757
1dbfe6e0e8e1aaf677524c68e470a86dd85242db
589
ex
Elixir
examples/load-test/server/lib/socket_server/push_intrumenter.ex
pushex-project/push.ex
a6d4b18face39dd84d01a887dce60db2d0001d37
[ "MIT" ]
78
2018-12-02T23:58:37.000Z
2021-09-30T18:52:45.000Z
examples/load-test/server/lib/socket_server/push_intrumenter.ex
pushex-project/push.ex
a6d4b18face39dd84d01a887dce60db2d0001d37
[ "MIT" ]
23
2018-11-27T14:57:20.000Z
2021-09-24T16:14:43.000Z
examples/load-test/server/lib/socket_server/push_intrumenter.ex
pushex-project/push.ex
a6d4b18face39dd84d01a887dce60db2d0001d37
[ "MIT" ]
3
2019-01-30T02:08:37.000Z
2021-09-03T20:53:35.000Z
defmodule SocketServer.PushInstrumenter do @behaviour PushEx.Behaviour.PushInstrumentation require Logger def delivered(%PushEx.Push{} = push, ctx) do Logger.debug("#{__MODULE__} delivered #{inspect(push)} #{inspect(ctx)}") end def requested(%PushEx.Push{} = push, ctx) do Logger.debug("#{__MODULE__...
26.772727
76
0.706282
1dbffd7b4e08b85c0bee1644ffc159caa9817a3c
128
ex
Elixir
lib/cadet/assessments/assessment_type.ex
ZiHawkEye/cadet
f7f9143699054d12bf08ef94e6e20a8ac58aea50
[ "Apache-2.0" ]
null
null
null
lib/cadet/assessments/assessment_type.ex
ZiHawkEye/cadet
f7f9143699054d12bf08ef94e6e20a8ac58aea50
[ "Apache-2.0" ]
null
null
null
lib/cadet/assessments/assessment_type.ex
ZiHawkEye/cadet
f7f9143699054d12bf08ef94e6e20a8ac58aea50
[ "Apache-2.0" ]
null
null
null
import EctoEnum defenum(Cadet.Assessments.AssessmentType, :assessment_type, [ :path, :mission, :sidequest, :contest ])
14.222222
61
0.726563
1dc000783e6d11abb154c2fb756f19a2f46e3301
1,448
ex
Elixir
lib/ua_inspector/storage/server.ex
lessless/ua_inspector
6c01e12f80c629916de0c53ae5950a89dbd5de17
[ "Apache-2.0" ]
44
2019-03-17T10:44:04.000Z
2022-01-30T10:09:28.000Z
lib/ua_inspector/storage/server.ex
lessless/ua_inspector
6c01e12f80c629916de0c53ae5950a89dbd5de17
[ "Apache-2.0" ]
12
2019-06-06T15:26:26.000Z
2022-03-09T17:21:21.000Z
lib/ua_inspector/storage/server.ex
lessless/ua_inspector
6c01e12f80c629916de0c53ae5950a89dbd5de17
[ "Apache-2.0" ]
8
2020-04-21T07:49:37.000Z
2021-12-07T00:18:33.000Z
defmodule UAInspector.Storage.Server do @moduledoc false defmacro __using__(_opts) do quote do use GenServer alias UAInspector.Config @behaviour unquote(__MODULE__) @ets_table_name __MODULE__ @ets_table_opts [:named_table, :protected, :set, read_concurrency: true] def in...
20.111111
78
0.54558
1dc00f3ca7557023aa011a31804a740d02d32334
5,157
ex
Elixir
lib/aws/transcribe_streaming.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/transcribe_streaming.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/transcribe_streaming.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.TranscribeStreaming do @moduledoc """ Operations and objects for transcribing streaming speech to text. """ @doc """ Starts a bidirectional HTTP2 stream where audio is streamed to Amazo...
36.062937
100
0.631375
1dc027d928d729e8adab1e5726874648f67b42cc
421
exs
Elixir
priv/repo/migrations/20180823165322_add_users_table.exs
PetrNikolas/blazeee
0d97a39b53d19951ccd946b2c4949b054e1487cd
[ "MIT" ]
17
2018-09-18T23:35:26.000Z
2021-12-05T08:03:23.000Z
priv/repo/migrations/20180823165322_add_users_table.exs
PetrNikolas/blazeee
0d97a39b53d19951ccd946b2c4949b054e1487cd
[ "MIT" ]
null
null
null
priv/repo/migrations/20180823165322_add_users_table.exs
PetrNikolas/blazeee
0d97a39b53d19951ccd946b2c4949b054e1487cd
[ "MIT" ]
2
2019-07-08T20:43:13.000Z
2020-03-04T19:11:39.000Z
defmodule Api.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add(:first_name, :string) add(:last_name, :string) add(:email, :string) add(:username, :string) add(:password_hash, :string) add(:role, :integer) timestamps() end...
21.05
45
0.631829
1dc03e189209cfffff61c178b127cfa2cfac86dd
1,510
ex
Elixir
lib/advent_of_code/day_10_b.ex
rob-brown/AdventOfCode2017
cb8a56fba4b1999820b3aec4c4f03d7094836484
[ "MIT" ]
3
2017-12-26T20:51:47.000Z
2019-05-14T04:59:38.000Z
lib/advent_of_code/day_10_b.ex
rob-brown/AdventOfCode2017
cb8a56fba4b1999820b3aec4c4f03d7094836484
[ "MIT" ]
null
null
null
lib/advent_of_code/day_10_b.ex
rob-brown/AdventOfCode2017
cb8a56fba4b1999820b3aec4c4f03d7094836484
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Day10B do require Bitwise def hash(string) when is_binary(string) do string |> String.to_charlist |> hash end def hash(list) when is_list(list) do string_64 = (for _ <- 1..64, do: list ++ [17, 31, 73, 47, 23]) |> List.flatten 0..255 |> Enum.to_list |> shuffle(string...
25.59322
95
0.625166
1dc078a0eb1a9979190327191e82e0a8b2dd9ed7
1,079
ex
Elixir
lib/votr/identity/common_name.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
1
2018-04-27T09:43:27.000Z
2018-04-27T09:43:27.000Z
lib/votr/identity/common_name.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
lib/votr/identity/common_name.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
defmodule Votr.Identity.CommonName do use Ecto.Schema import Ecto.Changeset alias Votr.Identity.CommonName alias Votr.Identity.Principal alias Votr.AES embedded_schema do field(:subject_id, :integer) field(:version, :integer) field(:name, :string) end def changeset(%CommonName{} = cn, attr...
20.75
46
0.587581
1dc080af3e99a5e0d0b0b69fe828664c07d6f7b6
2,295
ex
Elixir
lib/blue_jet/app/fulfillment/unlock.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
lib/blue_jet/app/fulfillment/unlock.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
lib/blue_jet/app/fulfillment/unlock.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJet.Fulfillment.Unlock do use BlueJet, :data schema "unlocks" do field :account_id, Ecto.UUID field :account, :map, virtual: true field :sort_index, :integer, default: 1000 field :custom_data, :map, default: %{} field :translations, :map, default: %{} field :source_id, Ecto....
22.722772
89
0.667538
1dc09089ff4e6618011e309adabc42c0bd5b8570
1,278
exs
Elixir
config/prod.secret.exs
pcsheng/tsuro-phoenix
df3e5f95bf1705d7a8beacd037ca67264ffca41b
[ "MIT" ]
null
null
null
config/prod.secret.exs
pcsheng/tsuro-phoenix
df3e5f95bf1705d7a8beacd037ca67264ffca41b
[ "MIT" ]
null
null
null
config/prod.secret.exs
pcsheng/tsuro-phoenix
df3e5f95bf1705d7a8beacd037ca67264ffca41b
[ "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 database_url = System.get_env("DATABASE_URL") || raise """ envi...
30.428571
67
0.726135
1dc0d7a8961c3ed310a5da85fce08b85b59bf63f
4,534
ex
Elixir
lib/phoenix/live_dashboard/live/menu_live.ex
petermm/phoenix_live_dashboard
d87cd640abb90c08f25fa536a36477cc71b25801
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/live/menu_live.ex
petermm/phoenix_live_dashboard
d87cd640abb90c08f25fa536a36477cc71b25801
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/live/menu_live.ex
petermm/phoenix_live_dashboard
d87cd640abb90c08f25fa536a36477cc71b25801
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveDashboard.MenuLive do use Phoenix.LiveDashboard.Web, :live_view @default_refresh 5 @supported_refresh [{"1s", 1}, {"2s", 2}, {"5s", 5}, {"15s", 15}, {"30s", 30}] @impl true def mount(_, %{"menu" => menu}, socket) do socket = assign(socket, menu: menu, node: menu.node, refresh: @def...
30.635135
144
0.636745
1dc0fb38ee4cc0f49ac670230351393013a29184
10,616
ex
Elixir
lib/broadway/options.ex
isaacsanders/broadway
14fce62cec6ea1f89ca14689adf67c67b69739db
[ "Apache-2.0" ]
null
null
null
lib/broadway/options.ex
isaacsanders/broadway
14fce62cec6ea1f89ca14689adf67c67b69739db
[ "Apache-2.0" ]
null
null
null
lib/broadway/options.ex
isaacsanders/broadway
14fce62cec6ea1f89ca14689adf67c67b69739db
[ "Apache-2.0" ]
null
null
null
defmodule Broadway.Options do @moduledoc false def definition() do [ name: [ required: true, type: {:custom, __MODULE__, :validate_name, []}, doc: """ Used for name registration. When an atom, all processes/stages created will be named using this value as prefix. ...
35.036304
98
0.506123
1dc145b2b05b91c7055766e5bc72521fc8ab2d5e
3,703
exs
Elixir
mix.exs
danschultzer/authex
920ab2ef9dafaaaba215247e08c3e194e9474fc0
[ "MIT" ]
4
2018-05-07T16:37:15.000Z
2018-07-14T00:44:12.000Z
mix.exs
danschultzer/authex
920ab2ef9dafaaaba215247e08c3e194e9474fc0
[ "MIT" ]
null
null
null
mix.exs
danschultzer/authex
920ab2ef9dafaaaba215247e08c3e194e9474fc0
[ "MIT" ]
null
null
null
defmodule Pow.MixProject do use Mix.Project @version "1.0.27" def project do [ app: :pow, version: @version, elixir: "~> 1.11", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, compilers: [:phoenix] ++ Mix.compilers(), deps: deps(), ...
30.603306
92
0.558736
1dc15231667cf07fd30cf647225ae73f87b47802
1,095
ex
Elixir
lib/bank_account_charts_web/channels/user_socket.ex
pinksynth/bank-account-charts
a4bb4c94941994a68151a7b3a94828d9bbf10833
[ "MIT" ]
null
null
null
lib/bank_account_charts_web/channels/user_socket.ex
pinksynth/bank-account-charts
a4bb4c94941994a68151a7b3a94828d9bbf10833
[ "MIT" ]
null
null
null
lib/bank_account_charts_web/channels/user_socket.ex
pinksynth/bank-account-charts
a4bb4c94941994a68151a7b3a94828d9bbf10833
[ "MIT" ]
null
null
null
defmodule BankAccountChartsWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", BankAccountChartsWeb.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 will b...
32.205882
92
0.705023
1dc16f75b52116c0b3e1de5ac7b57394bb924473
1,774
ex
Elixir
lib/plausible_web/views/form_helpers.ex
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
984
2019-09-02T11:36:41.000Z
2020-06-08T06:25:48.000Z
lib/plausible_web/views/form_helpers.ex
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
24
2019-09-10T09:53:17.000Z
2020-06-08T07:35:26.000Z
lib/plausible_web/views/form_helpers.ex
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
51
2019-09-03T10:48:10.000Z
2020-06-07T00:23:34.000Z
defmodule PlausibleWeb.FormHelpers do @label_opts [class: "block text-sm font-medium text-gray-700 dark:text-gray-100"] def styled_label(form, field, text, opts \\ []) do opts = Keyword.merge(@label_opts, opts) Phoenix.HTML.Form.label(form, field, text, opts) end @text_input_opts [ class: "mt...
36.958333
148
0.70124
1dc184cbac50d9f64ec34dc302f6783f6caac3bc
2,587
ex
Elixir
lib/freddie/scheme/common/common.ex
kernelgarden/freddie
ec8bce295bc9b74ff5364708d04b1346184cf6e4
[ "MIT" ]
8
2019-03-16T04:13:37.000Z
2020-03-16T01:57:41.000Z
lib/freddie/scheme/common/common.ex
kernelgarden/freddie
ec8bce295bc9b74ff5364708d04b1346184cf6e4
[ "MIT" ]
null
null
null
lib/freddie/scheme/common/common.ex
kernelgarden/freddie
ec8bce295bc9b74ff5364708d04b1346184cf6e4
[ "MIT" ]
null
null
null
defmodule Freddie.Scheme.Common do @moduledoc false use Protobuf, from: Path.wildcard(Path.expand("./definitions/**/*.proto", __DIR__)), use_package_names: true, namespace: "Elixir.Freddie.Scheme" alias Freddie.Utils alias Freddie.Scheme.Common.Message alias Freddie.Security @max_packet_size ...
24.17757
74
0.654813
1dc18f9d17bf1187ca52d04281246b22df42ee9d
1,048
ex
Elixir
countdown/test/support/conn_case.ex
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
null
null
null
countdown/test/support/conn_case.ex
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
3
2021-03-09T20:36:45.000Z
2021-05-10T17:47:02.000Z
countdown/test/support/conn_case.ex
cashmann/phoenix-tutorial
ea37b9d54a79df9bc1351a948eb8f8400c5e62ff
[ "MIT" ]
null
null
null
defmodule CountdownWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if t...
26.871795
71
0.722328
1dc19b215be59dd4832de7e85913c275d7b97ced
563
exs
Elixir
test/neural_network/backpropagation_test.exs
Markonis/BrainElixir
7f1d193827b7ca8113424e7debedd920f75a0a10
[ "MIT" ]
null
null
null
test/neural_network/backpropagation_test.exs
Markonis/BrainElixir
7f1d193827b7ca8113424e7debedd920f75a0a10
[ "MIT" ]
null
null
null
test/neural_network/backpropagation_test.exs
Markonis/BrainElixir
7f1d193827b7ca8113424e7debedd920f75a0a10
[ "MIT" ]
null
null
null
defmodule NeuralNetwork.BackpropagationTest do use ExUnit.Case alias NeuralNetwork.Backpropagation alias NeuralNetwork.Neuron test "total_output_err_deriv for output neuron" do state = %Neuron{output: 1.2} result = Backpropagation.total_output_err_deriv(state, 2) assert result == -0.8 end te...
24.478261
63
0.71048
1dc19ef810f2fb275f9e0b5835d4cb7f0c237ffa
689
exs
Elixir
mix.exs
apopiak/portal
b800331b55277880aed4632bd1b8488cca5016f8
[ "MIT" ]
1
2016-09-22T03:48:10.000Z
2016-09-22T03:48:10.000Z
howistart/portal/mix.exs
hckrtst/elixir-kata
6bee22e46443207aee77418e62ceec2569fffdba
[ "MIT" ]
null
null
null
howistart/portal/mix.exs
hckrtst/elixir-kata
6bee22e46443207aee77418e62ceec2569fffdba
[ "MIT" ]
null
null
null
defmodule Portal.Mixfile do use Mix.Project def project do [app: :portal, version: "0.0.1", elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.app" for more i...
20.264706
77
0.599419
1dc1c9f4ca66926d58b7fa6429b4a52913af1cf8
7,876
ex
Elixir
lib/pop3mail/file_store.ex
nico-amsterdam/pop3mail
f4050f1c401e98b0a9c6934c524ab14cb5e8c1f3
[ "MIT" ]
19
2016-06-28T21:54:57.000Z
2020-11-02T08:52:21.000Z
lib/pop3mail/file_store.ex
nico-amsterdam/pop3mail
f4050f1c401e98b0a9c6934c524ab14cb5e8c1f3
[ "MIT" ]
4
2017-01-31T07:02:40.000Z
2019-05-24T12:07:31.000Z
lib/pop3mail/file_store.ex
nico-amsterdam/pop3mail
f4050f1c401e98b0a9c6934c524ab14cb5e8c1f3
[ "MIT" ]
9
2017-02-15T15:19:11.000Z
2020-10-06T02:35:00.000Z
defmodule Pop3mail.FileStore do alias Pop3mail.Part @moduledoc "Store header, messages and attachments on the filesystem." @content_type2file_extension %{"text/plain" => "txt", "text/html" => "html"} # store most important header details in header.txt @doc """ Store mail header. filename is `fil...
42.804348
158
0.652362
1dc1f66ce8581e75bca2c945c5f876220f42875a
3,028
ex
Elixir
lib/okta.ex
mscienski/okta-jwt-elixir
a95bcdcdd6959f5cf20b0541f5998dff1833deba
[ "MIT" ]
null
null
null
lib/okta.ex
mscienski/okta-jwt-elixir
a95bcdcdd6959f5cf20b0541f5998dff1833deba
[ "MIT" ]
null
null
null
lib/okta.ex
mscienski/okta-jwt-elixir
a95bcdcdd6959f5cf20b0541f5998dff1833deba
[ "MIT" ]
null
null
null
defmodule Okta do @moduledoc File.read!("#{__DIR__}/../README.md") alias Okta.{ Jwk, Token } @doc """ Verify an okta token ## Examples iex> Okta.verify_token(my_token, %{issuer: my_issuer, audience: "api://default", client_id: my_client_id) {:error, :invalid_issuer} iex> Okta....
31.541667
113
0.613276
1dc2118026eeff36e12dce9160ad35b4e9249491
527
ex
Elixir
lib/tweet/tweet.ex
farazfazli/futuretweet
0fa2c900d3fb9453862ade7a6346ef2dec288119
[ "MIT" ]
2
2016-11-29T09:33:42.000Z
2016-11-29T11:31:45.000Z
lib/tweet/tweet.ex
farazfazli/futuretweet
0fa2c900d3fb9453862ade7a6346ef2dec288119
[ "MIT" ]
null
null
null
lib/tweet/tweet.ex
farazfazli/futuretweet
0fa2c900d3fb9453862ade7a6346ef2dec288119
[ "MIT" ]
null
null
null
defmodule FutureTweet.Tweet do # Sends a Tweet def send(str) do ExTwitter.configure(:process, [ consumer_key: System.get_env("TWITTER_CONSUMER_KEY"), consumer_secret: System.get_env("TWITTER_CONSUMER_SECRET"), access_token: System.get_env("TWITTER_ACCESS_KEY"), access_token_secret: System.get_env("TWI...
23.954545
64
0.757116
1dc241ba413d29a71fd730a2e8df2d858da1fe90
1,855
ex
Elixir
phoenix/lib/mehr_schulferien_web/controllers/admin/school_controller.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/lib/mehr_schulferien_web/controllers/admin/school_controller.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
phoenix/lib/mehr_schulferien_web/controllers/admin/school_controller.ex
komlanvi/www.mehr-schulferien.de
fe74772f2cc8ce430e04adf6e66023971456ce57
[ "MIT" ]
null
null
null
defmodule MehrSchulferienWeb.Admin.SchoolController do use MehrSchulferienWeb, :controller alias MehrSchulferien.Locations alias MehrSchulferien.Locations.School def index(conn, _params) do schools = Locations.list_schools() render(conn, "index.html", schools: schools) end def new(conn, _params) ...
30.409836
71
0.656604
1dc25486c9089b0a0696a665d6874be2baf9a0eb
1,918
ex
Elixir
lib/hergetto/rooms/room_service.ex
dusthijsvdh/hergetto
87598d8023a68fdb23b0eeb7659f5c61113997c9
[ "MIT" ]
8
2021-03-07T16:24:05.000Z
2022-02-28T02:36:35.000Z
lib/hergetto/rooms/room_service.ex
dusthijsvdh/hergetto
87598d8023a68fdb23b0eeb7659f5c61113997c9
[ "MIT" ]
126
2021-02-15T10:51:07.000Z
2022-03-28T02:25:01.000Z
lib/hergetto/rooms/room_service.ex
dusthijsvdh/hergetto
87598d8023a68fdb23b0eeb7659f5c61113997c9
[ "MIT" ]
null
null
null
defmodule Hergetto.Rooms.RoomService do @moduledoc """ This module represents a room, and manages the chat and video service. """ use GenServer require Logger # Client @doc false def start_link({room, nil}) do Logger.info("Roomservice with id: #{room} starting.") GenServer.start_link(__MODULE...
24.909091
138
0.668926
1dc275bab348b8d7b56db7eb47a9f3b0dc658198
3,131
ex
Elixir
lib/koans/03_numbers.ex
omajul85/Elixir-Koans
7b22cc4fdc075b7e3e744d6c79ed35324bb29f1f
[ "MIT" ]
null
null
null
lib/koans/03_numbers.ex
omajul85/Elixir-Koans
7b22cc4fdc075b7e3e744d6c79ed35324bb29f1f
[ "MIT" ]
null
null
null
lib/koans/03_numbers.ex
omajul85/Elixir-Koans
7b22cc4fdc075b7e3e744d6c79ed35324bb29f1f
[ "MIT" ]
null
null
null
defmodule Numbers do require Integer use Koans @intro "Why is the number six so scared? Because seven eight nine!\nWe should get to know numbers a bit more!" koan "Is an integer equal to its float equivalent?" do assert 1 == 1.0 == true end koan "Is an integer threequal to its float equivalent?" do ...
23.900763
112
0.636538
1dc28171ad98d047a285a5956918d74b45ffd5af
916
exs
Elixir
frameworks/Elixir/phoenix/mix.exs
kelunik/FrameworkBenchmarks
60a8aa46ecc1a3678053885edee4127c5a925a18
[ "BSD-3-Clause" ]
null
null
null
frameworks/Elixir/phoenix/mix.exs
kelunik/FrameworkBenchmarks
60a8aa46ecc1a3678053885edee4127c5a925a18
[ "BSD-3-Clause" ]
1
2018-04-13T15:45:34.000Z
2018-04-13T20:04:08.000Z
frameworks/Elixir/phoenix/mix.exs
kelunik/FrameworkBenchmarks
60a8aa46ecc1a3678053885edee4127c5a925a18
[ "BSD-3-Clause" ]
null
null
null
defmodule Hello.Mixfile do use Mix.Project def project do [app: :hello, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Con...
24.756757
89
0.601528
1dc283f28b2cf2167d001e46b186ef0610c7d854
25,014
exs
Elixir
integration_test/cases/preload.exs
eksperimental/ecto
67446d7c00f6b18d7e26360dd15889e68da418e0
[ "Apache-2.0" ]
null
null
null
integration_test/cases/preload.exs
eksperimental/ecto
67446d7c00f6b18d7e26360dd15889e68da418e0
[ "Apache-2.0" ]
null
null
null
integration_test/cases/preload.exs
eksperimental/ecto
67446d7c00f6b18d7e26360dd15889e68da418e0
[ "Apache-2.0" ]
1
2020-10-07T16:52:00.000Z
2020-10-07T16:52:00.000Z
defmodule Ecto.Integration.PreloadTest do use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true) alias Ecto.Integration.TestRepo import Ecto.Query alias Ecto.Integration.Post alias Ecto.Integration.Comment alias Ecto.Integration.Permalink alias Ecto.Integration.User...
37.728507
110
0.610658
1dc296860e7ea4b26096dd0760b478a18843fe8d
1,028
ex
Elixir
lib/charge.ex
aforward-obsolete/stripe-elixir
fc72739e2c2c5e1b11e78d239c553c9f7dbbe51c
[ "MIT" ]
2
2015-06-14T16:14:45.000Z
2015-11-05T08:02:56.000Z
lib/charge.ex
aforward-obsolete/stripe-elixir
fc72739e2c2c5e1b11e78d239c553c9f7dbbe51c
[ "MIT" ]
null
null
null
lib/charge.ex
aforward-obsolete/stripe-elixir
fc72739e2c2c5e1b11e78d239c553c9f7dbbe51c
[ "MIT" ]
null
null
null
defrecord Stripe.Charge, stripe: Stripe.new do def charges(input,record), do: Stripe.Curl.exec(charges_cmd(input,record)) def charges_cmd({ :amount, amount, :currency, currency, :card, card, :description, desc}, record) do charges_cmd [ { :amount, amount }, { :currency, currency}, { :card, card }, { :descript...
42.833333
120
0.688716
1dc2c96775a0eaba2287afa8e9c0f06a9fb38d6d
1,222
exs
Elixir
test/bugsnex/stacktrace_text.exs
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
11
2016-05-04T14:23:26.000Z
2020-04-30T16:53:32.000Z
test/bugsnex/stacktrace_text.exs
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
27
2016-04-19T10:25:41.000Z
2020-09-11T09:27:39.000Z
test/bugsnex/stacktrace_text.exs
smaximov/bugsnex
33183dd853b2dd9d3bc319413850a5cefcb96bad
[ "MIT" ]
4
2017-03-16T16:14:47.000Z
2019-08-30T14:36:26.000Z
defmodule Bugsnex.StacktraceTest do use ExUnit.Case alias Bugsnex.Stacktrace test "format without file info" do line = {TestModule, :some_function, 2, []} [formatted_line] = Stacktrace.format([line]) assert formatted_line.file == nil assert formatted_line.lineNumber == nil end test "format w...
33.027027
79
0.696399
1dc30022506a2d11e6dc8a35576f21bdb890cbc4
1,808
exs
Elixir
test/zero_phoenix_web/schema/query/people_test.exs
conradwt/zero-to-graphql-using-phoenix
3e448df2c7f23dfad33c9768104c183a48b43724
[ "MIT" ]
9
2019-03-26T22:16:08.000Z
2021-09-27T12:42:34.000Z
test/zero_phoenix_web/schema/query/people_test.exs
conradwt/zero-to-graphql-using-phoenix
3e448df2c7f23dfad33c9768104c183a48b43724
[ "MIT" ]
3
2020-06-08T23:03:49.000Z
2020-06-09T03:11:12.000Z
test/zero_phoenix_web/schema/query/people_test.exs
conradwt/zero-to-graphql-using-phoenix
3e448df2c7f23dfad33c9768104c183a48b43724
[ "MIT" ]
7
2019-01-15T17:00:07.000Z
2021-07-18T23:30:29.000Z
defmodule ZeroPhoenixWeb.Schema.Query.PeopleTest do use ZeroPhoenixWeb.ConnCase, async: true import Ecto.Query alias ZeroPhoenix.Account.Person alias ZeroPhoenix.Repo setup do ZeroPhoenix.Seeds.run() end test "get people by IDs" do query = """ query GetPeople($ids: [ID]) { people...
18.833333
51
0.426438
1dc30a7e7e8d055c1081016330cc8a722e9571df
61
ex
Elixir
web/views/registration_view.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
web/views/registration_view.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
web/views/registration_view.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
defmodule Blog.RegistrationView do use Blog.Web, :view end
15.25
34
0.786885
1dc31d143ec9ef70db89edfe02810176f042f9b8
7,284
ex
Elixir
lib/hex/mix.ex
sudix/hex
f739a57d8829ea0b0f7759c164dc9149c3340e49
[ "Apache-2.0" ]
null
null
null
lib/hex/mix.ex
sudix/hex
f739a57d8829ea0b0f7759c164dc9149c3340e49
[ "Apache-2.0" ]
1
2021-06-25T15:19:59.000Z
2021-06-25T15:19:59.000Z
lib/hex/mix.ex
sudix/hex
f739a57d8829ea0b0f7759c164dc9149c3340e49
[ "Apache-2.0" ]
null
null
null
defmodule Hex.Mix do @moduledoc """ Utility functions around Mix dependencies. """ @type deps :: %{String.t() => {boolean, deps}} @doc """ Returns `true` if the version and requirement match. See `Version.match?/2`. """ @spec version_match?(String.t(), String.t() | nil) :: boolean def version_mat...
30.099174
98
0.613125
1dc33fb9b582d99d7ed44b882182a8b1e59c72ec
794
ex
Elixir
lib/talan.ex
preciz/talan
97aa357987ab4237d695f9542d48bce9ba30c7ba
[ "MIT" ]
4
2019-10-24T22:27:47.000Z
2020-11-13T09:11:38.000Z
lib/talan.ex
preciz/talan
97aa357987ab4237d695f9542d48bce9ba30c7ba
[ "MIT" ]
9
2020-09-14T04:57:30.000Z
2021-08-03T04:48:34.000Z
lib/talan.ex
preciz/talan
97aa357987ab4237d695f9542d48bce9ba30c7ba
[ "MIT" ]
2
2020-02-22T17:08:44.000Z
2021-11-05T17:36:47.000Z
defmodule Talan do @moduledoc """ Fast & concurrent probabilistic data structures built on top of :atomics with **concurrent accessibility**. * `Talan.BloomFilter` - bloom filter based on `:atomics` * `Talan.CountingBloomFilter` - counting bloom filter based on `:atomics` * `Talan.Counter` - linear p...
24.060606
77
0.68262
1dc3749efb6db0a20e3e35574288f2e7ec4ffa3f
1,631
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/license_code_license_alias.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/license_code_license_alias.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/license_code_license_alias.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...
31.980392
110
0.739424
1dc3a15a565c7af48e7dc7f51d987828092cdef6
17,143
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/creatives.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/creatives.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/creatives.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.8575
216
0.628653
1dc3af2f57d5eaff1993dbe28b35072958ee94ff
792
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/express_route_circuit_stats.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/model/express_route_circuit_stats.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/express_route_circuit_stats.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.Model.ExpressRouteCircuitStats do @moduledoc """ Contains stats associated with the peering. """ @deri...
24.75
97
0.708333
1dc3ba197e9ff44cfaec74bade1df99798a2663d
1,018
exs
Elixir
config/dev.exs
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
13
2015-03-24T04:49:39.000Z
2020-01-13T20:04:17.000Z
config/dev.exs
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
1
2015-11-23T15:06:59.000Z
2015-11-23T15:11:30.000Z
config/dev.exs
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
2
2019-02-18T12:59:12.000Z
2021-05-28T12:40:37.000Z
use Mix.Config config :content_translator, ContentTranslator.Endpoint, http: [port: System.get_env("PORT") || 4000], debug_errors: true, cache_static_lookup: false, translation_api: ContentTranslator.WtiTranslationApi, client_app_api: ContentTranslator.ClientAppApi, auth_token: "secret-token", wti_projec...
35.103448
99
0.756385
1dc3c5a97559bbd6fc4bae8a8c73807a3682ffa7
754
exs
Elixir
test/bio_test.exs
matthewmacleod/evolvr
6392f0e03a8218ea70e86afdd187dcf728155072
[ "MIT" ]
3
2015-12-29T21:13:23.000Z
2017-08-14T22:35:25.000Z
test/bio_test.exs
matthewmacleod/evolvr
6392f0e03a8218ea70e86afdd187dcf728155072
[ "MIT" ]
null
null
null
test/bio_test.exs
matthewmacleod/evolvr
6392f0e03a8218ea70e86afdd187dcf728155072
[ "MIT" ]
null
null
null
import Evolvr.Bio defmodule BioTest do use ExUnit.Case, async: true test "should return count of a particular pattern in a sequence where count includes overlaps" do assert pattern_count("ACAACTATGCATACTATCGGGAACTATCCT","ACTAT") == 3 end test "should break up sequence into an array of k chunks" do s...
32.782609
184
0.659151
1dc3d27e1aff600a4f315d8a79cb2438c37d4c5a
9,994
ex
Elixir
lib/live_beats_web/live/profile_live.ex
TwistingTwists/live_beats
18da5ea552c8390cf2d6f6fa100c7fc975634ae8
[ "MIT" ]
1
2022-02-15T08:06:08.000Z
2022-02-15T08:06:08.000Z
lib/live_beats_web/live/profile_live.ex
TwistingTwists/live_beats
18da5ea552c8390cf2d6f6fa100c7fc975634ae8
[ "MIT" ]
null
null
null
lib/live_beats_web/live/profile_live.ex
TwistingTwists/live_beats
18da5ea552c8390cf2d6f6fa100c7fc975634ae8
[ "MIT" ]
null
null
null
defmodule LiveBeatsWeb.ProfileLive do use LiveBeatsWeb, :live_view alias LiveBeats.{Accounts, MediaLibrary, MP3Stat} alias LiveBeatsWeb.{LayoutComponent, Presence} alias LiveBeatsWeb.ProfileLive.{SongRowComponent, UploadFormComponent} @max_presences 20 def render(assigns) do ~H""" <.title_bar> ...
30.10241
137
0.618171
1dc3d448d00db2ecf8ec35874ec32c032e0cfefa
600
exs
Elixir
test/school_house_web/views/layout_view_test.exs
fmterrorf/school_house
b3a1374d4b23fbc027b6bc9c95004c6556c48bf0
[ "Apache-2.0" ]
90
2021-02-10T23:57:52.000Z
2022-03-17T18:36:55.000Z
test/school_house_web/views/layout_view_test.exs
fmterrorf/school_house
b3a1374d4b23fbc027b6bc9c95004c6556c48bf0
[ "Apache-2.0" ]
120
2021-02-11T00:32:44.000Z
2022-03-23T04:11:59.000Z
test/school_house_web/views/layout_view_test.exs
fmterrorf/school_house
b3a1374d4b23fbc027b6bc9c95004c6556c48bf0
[ "Apache-2.0" ]
18
2021-04-15T09:57:44.000Z
2022-03-23T02:55:26.000Z
defmodule SchoolHouseWeb.LayoutViewTest do use SchoolHouseWeb.ConnCase, async: true describe "render_dark_mode?/1" do test "returns `dark` when dark mode query parameter is present", %{conn: conn} do assert conn |> Map.put(:query_params, %{"ui" => "dark"}) |> SchoolHouseWeb.Layo...
33.333333
85
0.628333
1dc3f6730a69190d31e1661a1947c2089198ad68
2,752
exs
Elixir
test/destroy_test.exs
simpers/ash_graphql
c91f52569220524d5ddd4a07e1a183b74333e341
[ "MIT" ]
null
null
null
test/destroy_test.exs
simpers/ash_graphql
c91f52569220524d5ddd4a07e1a183b74333e341
[ "MIT" ]
null
null
null
test/destroy_test.exs
simpers/ash_graphql
c91f52569220524d5ddd4a07e1a183b74333e341
[ "MIT" ]
null
null
null
defmodule AshGraphql.DestroyTest do use ExUnit.Case, async: false setup do on_exit(fn -> try do ETS.Set.delete(ETS.Set.wrap_existing!(AshGraphql.Test.Post)) ETS.Set.delete(ETS.Set.wrap_existing!(AshGraphql.Test.Comment)) rescue _ -> :ok end end) end ...
22.193548
95
0.5
1dc4288ad0e487e3fe174d802b04d912bf3fa2a8
3,381
ex
Elixir
lib/exprotobuf/builder.ex
koudelka/exprotobuf
59784900dae2e78aa03ab3db0959ccfb1d5936ae
[ "Apache-2.0" ]
1
2021-04-03T12:51:54.000Z
2021-04-03T12:51:54.000Z
lib/exprotobuf/builder.ex
koudelka/exprotobuf
59784900dae2e78aa03ab3db0959ccfb1d5936ae
[ "Apache-2.0" ]
null
null
null
lib/exprotobuf/builder.ex
koudelka/exprotobuf
59784900dae2e78aa03ab3db0959ccfb1d5936ae
[ "Apache-2.0" ]
null
null
null
defmodule Protobuf.Builder do @moduledoc false alias Protobuf.Config import Protobuf.DefineEnum, only: [def_enum: 3] import Protobuf.DefineMessage, only: [def_message: 3] def define(msgs, %Config{inject: inject} = config) do # When injecting, use_in is not available, so we don't need to use @before_...
33.81
98
0.609879
1dc46313b4e2f334e2c35392161bbdb36463071e
1,726
ex
Elixir
lib/sentry/phoenix_endpoint.ex
JacquiManzi/sentry-elixir
f5a56868bceee77b512445066b50bd111ad4bc25
[ "MIT" ]
null
null
null
lib/sentry/phoenix_endpoint.ex
JacquiManzi/sentry-elixir
f5a56868bceee77b512445066b50bd111ad4bc25
[ "MIT" ]
null
null
null
lib/sentry/phoenix_endpoint.ex
JacquiManzi/sentry-elixir
f5a56868bceee77b512445066b50bd111ad4bc25
[ "MIT" ]
null
null
null
defmodule Sentry.Phoenix.Endpoint do @moduledoc """ Provides basic functionality to handle errors in a Phoenix Endpoint. Errors occurring within a Phoenix request before it reaches the Router will not be captured by `Sentry.Plug` due to the internal functionality of Phoenix. It is recommended to include `Sentry....
32.566038
225
0.637312
1dc4680ddfd602b834be1321114bb2909e2dcfdd
1,491
ex
Elixir
clients/content/lib/google_api/content/v21/model/orders_advance_test_order_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v21/model/orders_advance_test_order_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v21/model/orders_advance_test_order_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.723404
163
0.745808
1dc46f07183fe088f66ede40bc7eb0789a4f5439
560
ex
Elixir
lib/opencensus/absinthe/phase/push.ex
tristan-secord/opencensus_absinthe
df4b6cb15a684bec67c56d4c1fce6d450a4c33e3
[ "Apache-2.0" ]
1
2019-05-04T05:20:52.000Z
2019-05-04T05:20:52.000Z
lib/opencensus/absinthe/phase/push.ex
tristan-secord/opencensus_absinthe
df4b6cb15a684bec67c56d4c1fce6d450a4c33e3
[ "Apache-2.0" ]
6
2019-05-04T02:30:23.000Z
2019-05-04T02:50:01.000Z
lib/opencensus/absinthe/phase/push.ex
amplifiedai/opencensus_absinthe
df4b6cb15a684bec67c56d4c1fce6d450a4c33e3
[ "Apache-2.0" ]
null
null
null
defmodule Opencensus.Absinthe.Phase.Push do @moduledoc false use Absinthe.Phase alias Absinthe.Blueprint alias Absinthe.Phase alias Opencensus.Absinthe.Acc @impl true @spec run(Blueprint.t(), keyword()) :: Phase.result_t() def run(blueprint, _opts \\ []) do parent_span_ctx = :ocp.with_child_span(...
22.4
57
0.698214
1dc47d4aaac76084b80f455a45637367d7779fa2
1,549
exs
Elixir
server/config/config.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
2
2021-03-04T15:21:14.000Z
2021-03-21T13:43:07.000Z
server/config/config.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
server/config/config.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "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. # General application configuration use Mix.Config config :prepply, ecto_repos: [Prepply.Repo] c...
30.98
86
0.755972
1dc48e11a8b35b87592628cd2f7d975ef2731fd0
450
ex
Elixir
lib/email_guard/free_list.ex
andyjones11/email_guard
26fbb300186f9a8b745a52786604443fa94af3bd
[ "MIT" ]
6
2020-03-30T01:00:18.000Z
2022-02-07T20:04:11.000Z
lib/email_guard/free_list.ex
andyjones11/email_guard
26fbb300186f9a8b745a52786604443fa94af3bd
[ "MIT" ]
2
2020-03-24T10:21:31.000Z
2020-12-06T21:13:53.000Z
lib/email_guard/free_list.ex
andyjones11/email_guard
26fbb300186f9a8b745a52786604443fa94af3bd
[ "MIT" ]
5
2020-03-23T23:35:09.000Z
2021-01-07T16:06:51.000Z
defmodule EmailGuard.FreeList do @moduledoc """ List of free email providers (such as gmail). Large based on: https://gist.github.com/ammarshah/f5c2624d767f91a7cbdc4e54db8dd0bf Note that domains of providers of disposable emails (which are often free) are part of `EmailGuard.DisposableList` and are not ...
25
76
0.755556
1dc4a7352d6182d64c2f532b9901b35de0dba0f5
4,192
ex
Elixir
lib/map_data/map_data.ex
lindend/map-tile-renderer
28316e9b79e7bfdbd0f0d4439e82becc89418284
[ "MIT" ]
null
null
null
lib/map_data/map_data.ex
lindend/map-tile-renderer
28316e9b79e7bfdbd0f0d4439e82becc89418284
[ "MIT" ]
null
null
null
lib/map_data/map_data.ex
lindend/map-tile-renderer
28316e9b79e7bfdbd0f0d4439e82becc89418284
[ "MIT" ]
null
null
null
defmodule MapTileRenderer.MapData do require Logger defmodule Area do defstruct id: 0, type: :land, tags: %{}, vertices: [], bbox: {{0.0, 0.0}, {0.0, 0.0}} end defmodule Line do defstruct id: 0, type: :road, tags: %{}, vertices: [], bbox: {{0.0, 0.0}, {0.0, 0.0}} end defmodule...
37.428571
123
0.563454
1dc4c4428b5643326a75c02ae39723a6814a9439
24,698
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/assigned_targeting_option.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/assigned_targeting_option.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/assigned_targeting_option.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...
71.588406
670
0.773747
1dc4da371c077643408de0af29cf128ebfdb330f
1,005
ex
Elixir
make_the_page/elixir_version/lib/onepg_ex/one_page_site.ex
notactuallypagemcconnell/onepg
0429c872543143c8329c2d69e84196d1e6dc0ea2
[ "MIT" ]
1
2018-12-25T09:12:53.000Z
2018-12-25T09:12:53.000Z
make_the_page/elixir_version/lib/onepg_ex/one_page_site.ex
notactuallypagemcconnell/onepg
0429c872543143c8329c2d69e84196d1e6dc0ea2
[ "MIT" ]
1
2019-01-16T02:37:43.000Z
2019-01-16T02:37:43.000Z
make_the_page/elixir_version/lib/onepg_ex/one_page_site.ex
notactuallypagemcconnell/onepg
0429c872543143c8329c2d69e84196d1e6dc0ea2
[ "MIT" ]
1
2018-12-26T01:34:24.000Z
2018-12-26T01:34:24.000Z
defmodule OnepgEx.OnePageSite do @moduledoc """ A module to create a one page website that has a brief introduction and some blog posts. Posts go in a `posts` directory and should be written in markdown. """ @base_page %Onepg.HtmlDocument{} @doc """ Generate a site for a given phrase and size of `h` ta...
33.5
95
0.705473
1dc4e150f12997d617b8b43a47ec04cfaa379eb7
832
ex
Elixir
lib/date/date_format.ex
michaelbaudino/icu4ex
784f0526285df48a697c251c22c08837bb5c5c16
[ "MIT" ]
null
null
null
lib/date/date_format.ex
michaelbaudino/icu4ex
784f0526285df48a697c251c22c08837bb5c5c16
[ "MIT" ]
null
null
null
lib/date/date_format.ex
michaelbaudino/icu4ex
784f0526285df48a697c251c22c08837bb5c5c16
[ "MIT" ]
null
null
null
defmodule ICU.DateFormat do alias ICU.LocaleNotFound alias ICU.FormatNotFound # Should be in a separate file and include more locales @all_format_strings %{ en: %{ "short" => "%Y-%m-%d", "medium" => "%b. %d, %Y", "long" => "%B %d, %Y", "full" => "%A, %B %d, %Y", }, fr: ...
26.83871
83
0.561298
1dc4fcb6b11210c3334e0441da034ca2cfe77a57
418
ex
Elixir
lib/gexbot_web/views/error_view.ex
jakewilkins/gexbot
b92cd5bae794becaedbee9c8884e4b66942198b7
[ "WTFPL" ]
null
null
null
lib/gexbot_web/views/error_view.ex
jakewilkins/gexbot
b92cd5bae794becaedbee9c8884e4b66942198b7
[ "WTFPL" ]
null
null
null
lib/gexbot_web/views/error_view.ex
jakewilkins/gexbot
b92cd5bae794becaedbee9c8884e4b66942198b7
[ "WTFPL" ]
null
null
null
defmodule GexbotWeb.ErrorView do use GexbotWeb, :view def render("404.json", _assigns) do %{errors: %{detail: "Page not found"}} end def render("500.json", _assigns) do %{errors: %{detail: "Internal server error"}} end # In case no render clause matches or no # template is found, let's render i...
23.222222
49
0.684211
1dc502c41eba5b724ca9516ed4f26bd302ad37b5
1,524
ex
Elixir
apps/tfcon/test/support/data_case.ex
shtanaka/elixir-transfer-control
1b325a4c0c5ee10551515d7a440e503ed68d4ddf
[ "MIT" ]
null
null
null
apps/tfcon/test/support/data_case.ex
shtanaka/elixir-transfer-control
1b325a4c0c5ee10551515d7a440e503ed68d4ddf
[ "MIT" ]
2
2021-03-10T02:00:57.000Z
2021-05-10T21:22:39.000Z
apps/tfcon/test/support/data_case.ex
shtanaka/elixir-transfer-control
1b325a4c0c5ee10551515d7a440e503ed68d4ddf
[ "MIT" ]
null
null
null
defmodule Tfcon.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, we enable the SQL sandbox, so changes done to the...
27.214286
77
0.687008
1dc5139a045d9344becc7137561709d5f94206f9
2,000
exs
Elixir
clients/firebase_hosting/mix.exs
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/mix.exs
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/mix.exs
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...
29.850746
236
0.673
1dc543219dd8fb67d22edf1b349090868aff6107
329
ex
Elixir
lib/oli/delivery/utils.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/delivery/utils.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/delivery/utils.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Delivery.Utils do import Ecto.Changeset def validate_positive_money(changeset, field) do validate_change(changeset, field, fn _, amount -> case Money.compare(Money.new(:USD, 0), amount) do :gt -> [{field, "must be greater than or equal to zero"}] _ -> [] end end) ...
25.307692
65
0.644377
1dc549798c3bcd481b28c66c089fe1348a2a1266
4,041
ex
Elixir
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/games_number_affix_configuration.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/games_number_affix_configuration.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/games_number_affix_configuration.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...
60.313433
317
0.770354
1dc5763e8588d1182526eb1af021955d8127d5b4
2,046
ex
Elixir
clients/game_services/lib/google_api/game_services/v1beta/model/deployed_fleet_autoscaler.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/game_services/lib/google_api/game_services/v1beta/model/deployed_fleet_autoscaler.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/game_services/lib/google_api/game_services/v1beta/model/deployed_fleet_autoscaler.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.603774
219
0.739003
1dc580f975897360b31c73da68b58a78ba987869
1,360
ex
Elixir
lib/ex_doc/markdown.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
null
null
null
lib/ex_doc/markdown.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
null
null
null
lib/ex_doc/markdown.ex
RichMorin/meeseeks
d52a15a0b78acfc4d7b979d1df6e146482dc3a10
[ "Apache-2.0", "MIT" ]
null
null
null
# Inspired by the similar solution in Pow (https://github.com/danschultzer/pow) if Code.ensure_loaded?(ExDoc.Markdown.Earmark) do # Due to how relative links works in ExDoc, it's necessary for us to use a # custom markdown parser to ensure that paths will work in generated docs. # # Ref: https://github.com/elix...
29.565217
79
0.666912
1dc595123ecd4c2a24af0adec3d2fccffe704f94
4,071
exs
Elixir
test/teslamate/vehicles/vehicle_test.exs
mvaal/teslamate
057e15d69ca1ddc19366428ad6b47b8101277472
[ "MIT" ]
null
null
null
test/teslamate/vehicles/vehicle_test.exs
mvaal/teslamate
057e15d69ca1ddc19366428ad6b47b8101277472
[ "MIT" ]
null
null
null
test/teslamate/vehicles/vehicle_test.exs
mvaal/teslamate
057e15d69ca1ddc19366428ad6b47b8101277472
[ "MIT" ]
null
null
null
defmodule TeslaMate.Vehicles.VehicleTest do use TeslaMate.VehicleCase, async: true describe "starting" do @tag :capture_log test "handles unkown and faulty states", %{test: name} do events = [ {:ok, %TeslaApi.Vehicle{state: "unknown"}}, {:error, %TeslaApi.Error{message: "boom"}} ...
30.155556
90
0.616802
1dc611029f0949240b523eaba8785f0fe38099af
1,249
ex
Elixir
clients/os_config/lib/google_api/os_config/v1/model/service_resource.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/os_config/lib/google_api/os_config/v1/model/service_resource.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/os_config/lib/google_api/os_config/v1/model/service_resource.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...
29.738095
75
0.759007
1dc638109a3ab293e4be9f64d55a31e391122ca1
36,450
ex
Elixir
lib/rf69_registers.ex
ConnorRigby/elixir-rf69
d5e16f78394736d3da9b0e7670af2b293de5ff1c
[ "Apache-2.0" ]
4
2020-08-25T09:27:13.000Z
2021-11-30T16:04:09.000Z
lib/rf69_registers.ex
ConnorRigby/elixir-rf69
d5e16f78394736d3da9b0e7670af2b293de5ff1c
[ "Apache-2.0" ]
null
null
null
lib/rf69_registers.ex
ConnorRigby/elixir-rf69
d5e16f78394736d3da9b0e7670af2b293de5ff1c
[ "Apache-2.0" ]
1
2021-07-30T21:27:27.000Z
2021-07-30T21:27:27.000Z
defmodule RF69Registers do @moduledoc false # helper for converting register and value names # into their respective values # should be considered private. # File was automatically generated # using some fancy grep/sed/awk magic # based on # https://github.com/LowPowerLab/RFM69/blob/f28c65f0dee6f28ff...
37.308086
103
0.707407
1dc64169a3fc9065ad45eeb9dfabfad7cff044d7
204
exs
Elixir
exercises/armstrong-numbers/armstrong_number.exs
Tuxified/elixir
6230e2237851cf35532b6a34e4c67b44a28cde1b
[ "MIT" ]
null
null
null
exercises/armstrong-numbers/armstrong_number.exs
Tuxified/elixir
6230e2237851cf35532b6a34e4c67b44a28cde1b
[ "MIT" ]
null
null
null
exercises/armstrong-numbers/armstrong_number.exs
Tuxified/elixir
6230e2237851cf35532b6a34e4c67b44a28cde1b
[ "MIT" ]
1
2018-07-19T23:43:56.000Z
2018-07-19T23:43:56.000Z
defmodule ArmstrongNumber do @moduledoc """ Provides a way to validate whether or not a number is an Armstrong number """ @spec is_valid?(integer) :: boolean def is_valid?(number) do end end
20.4
75
0.715686
1dc6699d49983081edd3645d2fc76ab8cd864b73
1,608
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/cloud_endpoints.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...
34.212766
254
0.745025
1dc690bc9d1ee2cdae74cf82985a4669ff32850b
544
exs
Elixir
code/lists/sum1.exs
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
null
null
null
code/lists/sum1.exs
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
programming-elixir-book/code/lists/sum1.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...
38.857143
85
0.702206
1dc695aadf432db7f85fd0d464873e8d9f22e368
101
exs
Elixir
config/config.exs
Lucassifoni/bamboo_mailjet
5de9e30caa3d4726909209235f91353b702b1ccc
[ "MIT" ]
4
2018-08-28T08:46:44.000Z
2020-06-26T09:55:59.000Z
config/config.exs
Lucassifoni/bamboo_mailjet
5de9e30caa3d4726909209235f91353b702b1ccc
[ "MIT" ]
16
2018-06-15T17:45:40.000Z
2021-02-18T14:33:16.000Z
config/config.exs
Lucassifoni/bamboo_mailjet
5de9e30caa3d4726909209235f91353b702b1ccc
[ "MIT" ]
16
2018-05-30T06:11:41.000Z
2021-09-09T00:49:34.000Z
use Mix.Config # Configure alternative json library like so: # config :bamboo, :json_library, Jason
20.2
45
0.772277
1dc69777232f3227b36dd59f47b3f6800928e2d5
846
ex
Elixir
lib/courtbot_web.ex
blakedietz/courtbot
b18d7eb84fd1405b359c8da980e1175bb1738841
[ "ISC" ]
6
2018-07-25T18:35:57.000Z
2018-11-03T17:01:02.000Z
lib/courtbot_web.ex
blakedietz/courtbot
b18d7eb84fd1405b359c8da980e1175bb1738841
[ "ISC" ]
19
2018-11-12T05:29:44.000Z
2020-04-12T01:04:41.000Z
lib/courtbot_web.ex
blakedietz/courtbot
b18d7eb84fd1405b359c8da980e1175bb1738841
[ "ISC" ]
1
2020-04-12T00:36:50.000Z
2020-04-12T00:36:50.000Z
defmodule CourtbotWeb do @moduledoc false def controller do quote do use Phoenix.Controller, namespace: CourtbotWeb import Plug.Conn import CourtbotWeb.Router.Helpers import CourtbotWeb.Gettext end end def view do quote do use Phoenix.View, root: "lib/courtbot...
20.634146
61
0.679669
1dc6c7306ca5110a530dc5684356847969931d23
1,533
ex
Elixir
lib/send_latency/collector.ex
VoiceLayer/send_latency
8eccc764774582b41f2b331a83621014fed35dd9
[ "MIT" ]
6
2016-06-04T13:51:40.000Z
2021-06-06T13:54:38.000Z
lib/send_latency/collector.ex
VoiceLayer/send_latency
8eccc764774582b41f2b331a83621014fed35dd9
[ "MIT" ]
null
null
null
lib/send_latency/collector.ex
VoiceLayer/send_latency
8eccc764774582b41f2b331a83621014fed35dd9
[ "MIT" ]
null
null
null
defmodule SendLatency.Collector do use GenServer alias __MODULE__ defstruct count: 0, total: 0, notif_pid: nil, max: [], quantizations: [] def start(params, opts \\ []) do GenServer.start(__MODULE__, params, opts) end ...
24.333333
82
0.609263
1dc6d03243153ed9a310d732fe6f8812a0a15dbd
916
ex
Elixir
lib/elixir_mix.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
1
2017-10-05T08:53:03.000Z
2017-10-05T08:53:03.000Z
lib/elixir_mix.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
null
null
null
lib/elixir_mix.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
1
2019-04-06T02:33:19.000Z
2019-04-06T02:33:19.000Z
defmodule ElixirMix do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Start the endpoint when the application starts supervisor(ElixirM...
31.586207
71
0.721616
1dc6d83df13284ba32ce6c80a1a936ea85c7d213
816
ex
Elixir
lib/plausible/billing/plans.ex
dukhniav/plausible
dfcbf9cc98637721698b2046eee205b66b204acb
[ "MIT" ]
null
null
null
lib/plausible/billing/plans.ex
dukhniav/plausible
dfcbf9cc98637721698b2046eee205b66b204acb
[ "MIT" ]
null
null
null
lib/plausible/billing/plans.ex
dukhniav/plausible
dfcbf9cc98637721698b2046eee205b66b204acb
[ "MIT" ]
null
null
null
defmodule Plausible.Billing.Plans do @app_env System.get_env("APP_ENV") || "dev" @real_plans %{ personal: "558018", startup: "558745", business: "558746" } @test_plans %{ personal: "558156", startup: "558199", business: "558200" } def paddle_id_for_plan(plan) do if @app_env ==...
19.902439
73
0.617647
1dc70456281e9370431c79ba810c3c4028b90521
3,369
exs
Elixir
test/type/type_list/usable_as_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
test/type/type_list/usable_as_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
test/type/type_list/usable_as_test.exs
kianmeng/mavis
6ba154efdfadcce1aca92ac735dadb209380c25b
[ "MIT" ]
null
null
null
defmodule TypeTest.TypeList.UsableAsTest do use ExUnit.Case, async: true @moduletag :usable_as import Type, only: [builtin: 1] use Type.Operators alias Type.{List, Message} describe "the trivial list type" do test "is usable as itself and any" do assert :ok = %List{} ~> %List{} assert :o...
36.619565
120
0.616503
1dc730e4b9eb04432760dda23042fcec1d994c53
800
ex
Elixir
farmbot_ext/lib/farmbot_ext/time.ex
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
farmbot_ext/lib/farmbot_ext/time.ex
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
farmbot_ext/lib/farmbot_ext/time.ex
va2ron1/farmbot_os
c80a38058713adc2ad91a4802664bcfe8da9d96c
[ "MIT" ]
null
null
null
# FarmbotExt.Time.no_reply() defmodule FarmbotExt.Time do @conf Application.get_env(:farmbot_ext, __MODULE__) || [] @disabled Keyword.get(@conf, :disable_timeouts, false) @doc """ A wrapper around `Process.send_after` for simplified dep. injection. If this function is called in `test` ENV, it will send the ...
25
70
0.70375