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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
623af2d9cef41fdf5467df99449941b178507773 | 1,945 | ex | Elixir | clients/content/lib/google_api/content/v2/model/shippingsettings_list_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/v2/model/shippingsettings_list_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/v2/model/shippingsettings_list_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... | 36.698113 | 159 | 0.726478 |
623af959630cd864c5ac9544f832f36d01a967f4 | 1,663 | exs | Elixir | mix.exs | dwebster17/opentelemetry_phoenix | 61ac080195dd2debe17a5829de98f60b7d0c8500 | [
"Apache-2.0"
] | null | null | null | mix.exs | dwebster17/opentelemetry_phoenix | 61ac080195dd2debe17a5829de98f60b7d0c8500 | [
"Apache-2.0"
] | null | null | null | mix.exs | dwebster17/opentelemetry_phoenix | 61ac080195dd2debe17a5829de98f60b7d0c8500 | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryPhoenix.MixProject do
use Mix.Project
def project do
[
app: :opentelemetry_phoenix,
description: description(),
version: "0.1.4",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Opentelemetry Phoenix",
docs: [
... | 26.822581 | 91 | 0.5911 |
623b0bad0145bb996e68b4afe9eababeb231c8c7 | 1,245 | exs | Elixir | test/serum/template/compiler_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test/serum/template/compiler_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test/serum/template/compiler_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | defmodule Serum.Template.CompilerTest do
use ExUnit.Case, async: true
require Serum.TestHelper
import Serum.TestHelper, only: :macros
alias Serum.Error
alias Serum.Template.Compiler, as: TC
alias Serum.Template.Storage, as: TS
setup do
on_exit(fn -> TS.reset() end)
end
describe "compile_files/2"... | 30.365854 | 84 | 0.624096 |
623b20d9762c26c59b6bac30bca1a3eb0b199f00 | 119 | exs | Elixir | test/arangoex/agency_test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 24 | 2016-11-02T14:53:55.000Z | 2021-12-25T13:08:09.000Z | test/arangoex/agency_test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 22 | 2016-12-06T15:09:50.000Z | 2022-03-24T02:16:20.000Z | test/arangoex/agency_test.exs | alakra/arangoex | 6fbea0335bcc1adeaa4b4299ce8028c2e4080980 | [
"MIT"
] | 8 | 2016-12-12T21:27:25.000Z | 2019-05-24T04:27:30.000Z | defmodule Arangoex.AgencyTest do
# alias Arangoex.Agency
use ExUnit.Case, async: true
# todo - Agency tests
end
| 14.875 | 32 | 0.739496 |
623b268f71432df2f1ae35b15889ca1e7edaacf0 | 1,547 | exs | Elixir | mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.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 writing, ... | 27.625 | 79 | 0.636716 |
623b55dd057604f5a7685e8362ab5e5927b344ce | 2,343 | ex | Elixir | lib/surface_bulma/form/datetime_select.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 30 | 2021-02-05T18:50:38.000Z | 2022-03-12T22:42:29.000Z | lib/surface_bulma/form/datetime_select.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 19 | 2021-01-15T19:14:24.000Z | 2022-02-05T14:57:18.000Z | lib/surface_bulma/form/datetime_select.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 17 | 2021-02-01T20:57:51.000Z | 2022-03-20T17:06:57.000Z | defmodule SurfaceBulma.Form.DateTimeSelect do
@moduledoc """
A datetime selector with configurable separators between the parts of the datetime.
"""
use SurfaceBulma.Form.FieldBase
use SurfaceBulma.Form.InputIconBase, :left
use SurfaceBulma.Form.InputAddonBase
alias Surface.Components.Form.DateTimeSelect... | 32.541667 | 126 | 0.583013 |
623b5e1c6d53ef68d508718ac35ce824e4d36f6d | 1,948 | ex | Elixir | apps/bytepack_web/lib/bytepack_web/live/seller_live/form_component.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack_web/lib/bytepack_web/live/seller_live/form_component.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack_web/lib/bytepack_web/live/seller_live/form_component.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule BytepackWeb.SellerLive.FormComponent do
use BytepackWeb, :live_component
alias Bytepack.Sales
alias Bytepack.Sales.Seller
alias Bytepack.Orgs.Country
@impl true
def render(assigns) do
~L"""
<%= f = form_for @changeset, "#",
id: "form-seller",
phx_target: @mysel... | 29.969231 | 99 | 0.61653 |
623b5e8cc975d18ff33d2c7ad540d1000ea25b4b | 1,137 | exs | Elixir | test/metric_test.exs | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 227 | 2018-09-05T15:33:23.000Z | 2022-02-25T18:12:06.000Z | test/metric_test.exs | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 211 | 2018-09-05T21:42:41.000Z | 2022-03-25T17:51:56.000Z | test/metric_test.exs | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 84 | 2018-09-05T04:26:26.000Z | 2022-03-09T14:28:14.000Z | defmodule MetricTest do
use ExUnit.Case
test "custom metrics" do
TestHelper.restart_harvest_cycle(NewRelic.Harvest.Collector.Metric.HarvestCycle)
NewRelic.report_custom_metric("Foo/Bar", 100)
NewRelic.report_custom_metric("Foo/Bar", 50)
metrics = TestHelper.gather_harvest(NewRelic.Harvest.Collect... | 30.72973 | 94 | 0.740545 |
623b601fcd7b9b881c669a6a0a3e1f3e3ce1bd22 | 1,091 | ex | Elixir | lib/adyen_checkout_ex/model/three_d_secure_data.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/three_d_secure_data.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/three_d_secure_data.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.ThreeDSecureData do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"authenticationResponse",
:"cav... | 23.717391 | 91 | 0.622365 |
623be0a9230d70c572a15da9093feeea9989a4d5 | 1,941 | exs | Elixir | mix.exs | khattori/db_connection | fb82de035522762e4df804e48750ee1f977aec0d | [
"Apache-2.0"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | deps/db_connection/mix.exs | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/db_connection/mix.exs | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | null | null | null | defmodule DBConnection.Mixfile do
use Mix.Project
@source_url "https://github.com/elixir-ecto/db_connection"
@pools [:connection_pool, :ownership]
@version "2.4.0"
def project do
[
app: :db_connection,
version: @version,
elixir: "~> 1.7",
deps: deps(),
docs: docs(),
d... | 22.569767 | 85 | 0.572385 |
623be3bc508592e779a65951f340e2dcc4e1a7cb | 867 | ex | Elixir | web/router.ex | jameslafa/rumbl | 07f38480884535c9cdecd60b5e42eadfd6f15c20 | [
"MIT"
] | null | null | null | web/router.ex | jameslafa/rumbl | 07f38480884535c9cdecd60b5e42eadfd6f15c20 | [
"MIT"
] | null | null | null | web/router.ex | jameslafa/rumbl | 07f38480884535c9cdecd60b5e42eadfd6f15c20 | [
"MIT"
] | null | null | null | defmodule Rumbl.Router do
use Rumbl.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Rumbl.Auth, repo: Rumbl.Repo
end
pipeline :api do
plug :accepts, ["json"]
end
sc... | 23.432432 | 76 | 0.67128 |
623c2f64ec6f334af9272b2b1c99d970a69f7a83 | 155 | exs | Elixir | test/test_helper.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | test/test_helper.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | test/test_helper.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | ExUnit.start
ExVCR.Config.cassette_library_dir("test/fixture/vcr_cassettes")
ExVCR.Config.filter_sensitive_data("token [^\"]+", "token yourtokencomeshere") | 51.666667 | 78 | 0.812903 |
623c3364d219ef891e3c58b2ae3a49041e68b7d5 | 494 | exs | Elixir | test/ex_notification/format_test.exs | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | 1 | 2021-11-30T20:44:22.000Z | 2021-11-30T20:44:22.000Z | test/ex_notification/format_test.exs | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | null | null | null | test/ex_notification/format_test.exs | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | null | null | null | defmodule ExNotification.FormatTest do
use ExUnit.Case
test "filters out any nil values in body params" do
env = %Tesla.Env{body: %{foo: "bar", fizz: nil}}
{:ok, result} = ExNotification.Format.call(env, [], nil)
assert result.body == %{foo: "bar"}
end
test "filters out any nil values in query par... | 30.875 | 60 | 0.639676 |
623c410b3068f1ff9ef46f00fd3916cd2148e824 | 326 | exs | Elixir | config/test.exs | ejpcmac/plug_session_mnesia | ed2ff49099890250108249d9b44eb7c0e8e2cc18 | [
"MIT"
] | 23 | 2017-10-18T00:28:16.000Z | 2021-07-30T00:11:00.000Z | config/test.exs | ejpcmac/plug_session_mnesia | ed2ff49099890250108249d9b44eb7c0e8e2cc18 | [
"MIT"
] | 3 | 2018-01-20T15:02:27.000Z | 2019-08-04T14:07:41.000Z | config/test.exs | ejpcmac/plug_session_mnesia | ed2ff49099890250108249d9b44eb7c0e8e2cc18 | [
"MIT"
] | 5 | 2018-12-18T20:38:07.000Z | 2021-02-20T20:46:42.000Z | use Mix.Config
# Print only warnings and errors during test
config :logger, level: :warn
# Clear the console before each test run
config :mix_test_watch, clear: true
# Configuration for the session cleaner
config :plug_session_mnesia,
table: :session,
max_age: 3600,
# It should never trigger
cleaner_timeout:... | 21.733333 | 44 | 0.766871 |
623c5238979fc25440cdc4cd65ce4efd011ae54a | 505 | ex | Elixir | backend/lib/functional_vote_web/views/error_view.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 10 | 2020-03-13T12:56:06.000Z | 2021-06-28T22:13:27.000Z | backend/lib/functional_vote_web/views/error_view.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 132 | 2020-02-08T02:01:03.000Z | 2022-02-18T20:38:38.000Z | backend/lib/functional_vote_web/views/error_view.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 1 | 2021-03-17T06:22:55.000Z | 2021-03-17T06:22:55.000Z | defmodule FunctionalVoteWeb.ErrorView do
use FunctionalVoteWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the... | 29.705882 | 61 | 0.742574 |
623c86f5e88920715ddbf68c8a6cdf4d684dafb2 | 2,417 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_finding_limits.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_finding_limits.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_finding_limits.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... | 40.283333 | 315 | 0.755068 |
623ca0da6880bfcbaf0ca0643a0673f13f60239e | 403 | exs | Elixir | test/regressions/i123_returnval_as_html_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/regressions/i123_returnval_as_html_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/regressions/i123_returnval_as_html_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | defmodule Regressions.I123ReturnvalAsHtmlTest do
use ExUnit.Case
test "as_html with no errors" do
assert Earmark.as_html("para") == {:ok, "<p>para</p>\n", []}
end
test "as_html with errors" do
assert Earmark.as_html("not closed`") == {:error, "<p>not closed`</p>\n", [{:warning, 1, "Closing unclosed ba... | 26.866667 | 143 | 0.665012 |
623ca85b291495c1187b0b8f2527a2839c3f51b6 | 743 | ex | Elixir | lib/scrabble/iteration1.ex | paulfioravanti/exercism_scrabble_benchmark | 9b49f1352361ccebd65439b2b59fad13c7d165f7 | [
"MIT"
] | null | null | null | lib/scrabble/iteration1.ex | paulfioravanti/exercism_scrabble_benchmark | 9b49f1352361ccebd65439b2b59fad13c7d165f7 | [
"MIT"
] | null | null | null | lib/scrabble/iteration1.ex | paulfioravanti/exercism_scrabble_benchmark | 9b49f1352361ccebd65439b2b59fad13c7d165f7 | [
"MIT"
] | null | null | null | defmodule Scrabble.Iteration1 do
@moduledoc "First attempt (string map)"
@scores %{
"a" => 1,
"b" => 3,
"c" => 3,
"d" => 2,
"e" => 1,
"f" => 4,
"g" => 2,
"h" => 4,
"i" => 1,
"j" => 8,
"k" => 5,
"l" => 1,
"m" => 3,
"n" => 1,
"o" => 1,
"p" => 3,
"q"... | 16.511111 | 57 | 0.38358 |
623cc3a16085526216f574bd2884fa9d0eda00d1 | 459 | exs | Elixir | config/test.exs | serokellcao/preact-phoenix | 6094c0db9411231adb053f2dc351b447dc53732a | [
"MIT"
] | null | null | null | config/test.exs | serokellcao/preact-phoenix | 6094c0db9411231adb053f2dc351b447dc53732a | [
"MIT"
] | 2 | 2021-03-10T04:41:11.000Z | 2021-05-11T00:41:00.000Z | config/test.exs | serokellcao/preact-phoenix | 6094c0db9411231adb053f2dc351b447dc53732a | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :detect, Detect.Repo,
username: "phoenix",
password: "hellotwitch228",
database: "detect_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :de... | 24.157895 | 56 | 0.732026 |
623ccb0421b5e22726cbdf79a1f8e3f4f7224bba | 598 | exs | Elixir | test/rocketpay/numbers_test.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | test/rocketpay/numbers_test.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | test/rocketpay/numbers_test.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | defmodule Rocketpay.NumbersTest do
use ExUnit.Case
alias Rocketpay.Numbers
describe "sum_from_file/1" do
test "when there is a file with the given name, returns the sum of numbers" do
response = Numbers.sum_from_file("numbers")
expected_response = {:ok, %{result: 37}}
assert response == ... | 24.916667 | 82 | 0.690635 |
623cf697205c06007c680b80d474b029a1302864 | 1,865 | exs | Elixir | clients/domains_rdap/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains_rdap/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains_rdap/mix.exs | 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... | 27.835821 | 116 | 0.658445 |
623cf91ddea385366d72d4473a0e02643b4aba98 | 451 | ex | Elixir | lib/changelog/stats/s3.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2020-10-12T13:28:41.000Z | 2020-10-12T13:28:41.000Z | lib/changelog/stats/s3.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | lib/changelog/stats/s3.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.Stats.S3 do
def get_logs(date, slug) do
bucket = "changelog-logs-#{slug}"
ExAws.S3.list_objects(bucket, prefix: date)
|> ExAws.request!()
|> get_in([:body, :contents])
|> Task.async_stream(fn(%{key: key}) -> get_log(bucket, key) end)
|> Enum.map(fn({:ok, log}) -> log end)
... | 25.055556 | 69 | 0.616408 |
623d081dcd43980cf2e17188293842e4843c9615 | 231 | ex | Elixir | lib/scentenced/accounts/auth/auth_error_handler.ex | cNille/scentenced | ca6cc97bec1122047be928bb62b5ab0021cb88e8 | [
"MIT"
] | null | null | null | lib/scentenced/accounts/auth/auth_error_handler.ex | cNille/scentenced | ca6cc97bec1122047be928bb62b5ab0021cb88e8 | [
"MIT"
] | 1 | 2020-07-17T08:20:59.000Z | 2020-07-17T08:20:59.000Z | lib/scentenced/accounts/auth/auth_error_handler.ex | cNille/scentenced | ca6cc97bec1122047be928bb62b5ab0021cb88e8 | [
"MIT"
] | null | null | null | defmodule Scentenced.Auth.AuthErrorHandler do
@moduledoc false
import Plug.Conn
def auth_error(conn, {type, _reason}, _opts) do
body = Jason.encode!(%{message: to_string(type)})
send_resp(conn, 401, body)
end
end
| 21 | 53 | 0.714286 |
623d0e8d53c9568a2cf6d48ec1648299fb78dd42 | 10,200 | exs | Elixir | test/battle_box/game_engine/human_server_test.exs | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | test/battle_box/game_engine/human_server_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | test/battle_box/game_engine/human_server_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBox.GameEngine.HumanServerTest do
use ExUnit.Case, async: true
use BattleBox.DataCase, async: false
alias BattleBox.{Game, GameEngine, Games.Marooned}
alias BattleBox.GameEngine.{GameServer, HumanServer}
import BattleBox.TestConvenienceHelpers, only: [named_proxy: 1, named_proxy: 2]
alias B... | 33.224756 | 99 | 0.652157 |
623d4d544b75cabfd585032513242354d83090ed | 2,810 | ex | Elixir | lib/mix/tasks/enable_gmail_inbox_sync.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | 1 | 2021-06-17T03:17:24.000Z | 2021-06-17T03:17:24.000Z | lib/mix/tasks/enable_gmail_inbox_sync.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/mix/tasks/enable_gmail_inbox_sync.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.EnableGmailInboxSync do
use Mix.Task
@shortdoc "Script to enable the Gmail inbox sync feature for the given account"
@moduledoc """
Example:
```
$ mix enable_gmail_inbox_sync [ACCOUNT_ID]
$ mix enable_gmail_inbox_sync [ACCOUNT_ID] [HISTORY_ID]
```
On Heroku:
```
$ heroku run... | 28.969072 | 96 | 0.62669 |
623d59aa8412bcda7e2ddcbcef327c4226e3acc3 | 1,948 | exs | Elixir | clients/service_networking/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/service_networking/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/service_networking/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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.074627 | 130 | 0.672485 |
623d69fb64c49dde2cc008e72f6040e8294f755d | 2,871 | ex | Elixir | day6/lib/day6/part1.ex | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day6/lib/day6/part1.ex | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day6/lib/day6/part1.ex | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | defmodule Day6.Part1 do
# Only need to report lit lights, but must toggle lights, which could still mean
# only keeping a set of lights that are on. This could also be a good use case
# for an Agent
# Keep a set of on and off lights. Set can do fast finding for a member.
def start do
input = File.read... | 28.147059 | 82 | 0.657959 |
623d6a862f87ec8fa5a44e9d437542e420c03f17 | 1,966 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/reject_consent_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/reject_consent_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/reject_consent_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... | 41.829787 | 427 | 0.761953 |
623d8801ebbb792573e10721a8e2cbe9aea38e6f | 6,430 | ex | Elixir | apps/snitch_core/lib/core/data/model/adjustment/promotion_adjustment.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/data/model/adjustment/promotion_adjustment.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/data/model/adjustment/promotion_adjustment.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Model.PromotionAdjustment do
@moduledoc """
Exposes functions related to adjustments created for
promotions.
"""
use Snitch.Data.Model
alias Ecto.Multi
alias Snitch.Data.Model.Adjustment
alias Snitch.Data.Schema.PromotionAdjustment
alias Snitch.Data.Schema.Adjustment, as: Adjust... | 28.451327 | 90 | 0.672784 |
623d89fd8dcb0a4fd898d88da49dfdfe2c188fc2 | 2,168 | ex | Elixir | statifier-ex/lib/statifier/statechart.ex | riddler/statifier | 4f4e2d1cdbb0e570a06ddf087caf2f986d1024b5 | [
"MIT"
] | 9 | 2020-08-06T23:45:07.000Z | 2020-12-21T01:47:06.000Z | statifier-ex/lib/statifier/statechart.ex | riddler/statifier | 4f4e2d1cdbb0e570a06ddf087caf2f986d1024b5 | [
"MIT"
] | 19 | 2020-03-12T03:57:46.000Z | 2020-09-11T03:40:48.000Z | statifier-ex/lib/statifier/statechart.ex | riddler/statifier | 4f4e2d1cdbb0e570a06ddf087caf2f986d1024b5 | [
"MIT"
] | null | null | null | defmodule Statifier.Statechart do
@moduledoc """
Represents a reactive system. Contains full specification.
This corresponds to the <scxml> element defined here:
https://www.w3.org/TR/scxml/#scxml
A conformant SCXML document must have at least one <state>, <parallel> or
<final> child. At system initializa... | 28.906667 | 78 | 0.674354 |
623dcdbb651cffa9a971117a4286fbebe0989c1f | 1,115 | exs | Elixir | config/config.exs | ScrimpyCat/BMFontEx | b79d99ffee9f6c9ce35987a124a1893b266180ce | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/BMFontEx | b79d99ffee9f6c9ce35987a124a1893b266180ce | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/BMFontEx | b79d99ffee9f6c9ce35987a124a1893b266180ce | [
"BSD-2-Clause"
] | 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... | 35.967742 | 73 | 0.750673 |
623df068f679a4e783c31e3c08d567c2a3f92d65 | 1,731 | ex | Elixir | questions/joins/00020000-simplejoin2.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | null | null | null | questions/joins/00020000-simplejoin2.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | null | null | null | questions/joins/00020000-simplejoin2.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | 1 | 2019-10-08T04:46:40.000Z | 2019-10-08T04:46:40.000Z | |QUESTIONNAME|
Work out the start times of bookings for tennis courts
|QUESTION|
How can you produce a list of the start times for bookings for tennis courts, for the date '2012-09-21'? Return a list of start time and facility name pairings, ordered by the time.
|QUERY|
select bks.starttime as start, facs.name as name... | 66.576923 | 514 | 0.738879 |
623ec3931f0f996fc1a9f3b236f6311c9ff4a66f | 368 | exs | Elixir | priv/repo/migrations/20190223235605_create_posts.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | priv/repo/migrations/20190223235605_create_posts.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | priv/repo/migrations/20190223235605_create_posts.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | defmodule Hub.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :author, :string
add :title, :string
add :content, :text
add :filename, :string
add :content_type, :string
add :path, :string
add :approved, :boolean, default: false, nu... | 20.444444 | 58 | 0.641304 |
623eca388b8258a5403d5476acc311dc77500ceb | 77 | ex | Elixir | lib/my_app_web/views/auth_view.ex | bigbassroller/ueberauth_example | 5e889abaf060b6a37add2eb8a3cf1938f394c4af | [
"MIT"
] | null | null | null | lib/my_app_web/views/auth_view.ex | bigbassroller/ueberauth_example | 5e889abaf060b6a37add2eb8a3cf1938f394c4af | [
"MIT"
] | null | null | null | lib/my_app_web/views/auth_view.ex | bigbassroller/ueberauth_example | 5e889abaf060b6a37add2eb8a3cf1938f394c4af | [
"MIT"
] | null | null | null | defmodule MyAppWeb.AuthView do
@moduledoc false
use MyAppWeb, :view
end
| 12.833333 | 30 | 0.766234 |
623ee216736e6fda437b9bfe126b9e28428c2208 | 5,717 | ex | Elixir | lib/socket/handler/achievements.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/socket/handler/achievements.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/socket/handler/achievements.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | defmodule Socket.Handler.Achievements do
@moduledoc """
Achievement management
"""
use Socket.Web.Module
alias GrapevineData.Achievements
@doc """
Sync the list of achievements
"""
def sync(state, %{"ref" => ref}) when ref != nil do
achievements = Achievements.for(state.game)
total = Enum.c... | 25.074561 | 89 | 0.540843 |
623ef073f501df95224b9c9adea302d525c3a7eb | 1,648 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/job_statistics_reservation_usage.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/big_query/lib/google_api/big_query/v2/model/job_statistics_reservation_usage.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/job_statistics_reservation_usage.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.96 | 131 | 0.729976 |
623f0515959ef28f1a36b59548a0033377bf79e1 | 4,568 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2_video_annotation_results.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2_video_annotation_results.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2_video_annotation_results.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... | 40.785714 | 222 | 0.751751 |
623f0fa607bc3e7f9b5dba33b53c5cee75a0b7ae | 260 | ex | Elixir | example/util.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | 277 | 2017-10-18T13:19:40.000Z | 2022-03-24T17:11:47.000Z | example/util.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | 68 | 2017-10-27T01:54:21.000Z | 2022-02-22T16:34:48.000Z | example/util.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | 81 | 2018-02-11T07:00:11.000Z | 2022-03-29T21:10:15.000Z | defmodule ExAudit.Test.Util do
alias ExAudit.Test.{Repo, User}
def create_user(name \\ "Admin", email \\ "admin@example.com") do
params = %{name: name, email: email}
changeset = User.changeset(%User{}, params)
Repo.insert!(changeset)
end
end | 28.888889 | 67 | 0.676923 |
623fa875351f3076f2c29803388694bf8ad94cb5 | 375 | ex | Elixir | lib/link_off/web.ex | wisq/link_off | a2273dfaf64b694bcc91a10c63af37806eecc7ba | [
"Apache-2.0"
] | null | null | null | lib/link_off/web.ex | wisq/link_off | a2273dfaf64b694bcc91a10c63af37806eecc7ba | [
"Apache-2.0"
] | null | null | null | lib/link_off/web.ex | wisq/link_off | a2273dfaf64b694bcc91a10c63af37806eecc7ba | [
"Apache-2.0"
] | null | null | null | defmodule LinkOff.Web do
use Plug.Router
require Logger
plug Plug.Logger
plug :match
plug Plug.Parsers, parsers: [:urlencoded]
plug :dispatch
# Facebook Messenger links (l.messenger.com)
get "/l.php" do
url = conn.query_params |> Map.fetch!("u")
conn
|> put_resp_header("location", url)
... | 19.736842 | 46 | 0.666667 |
623fc8784768586a9d42387298a94621298a760b | 2,552 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/session.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/session.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/session.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.77193 | 544 | 0.718652 |
623fc930cd647ce8ee471fe430e0839fb48f342d | 294 | exs | Elixir | maps/query.exs | diningyo/programming-elixir | bc61ee99a56e462129263c6b372eaf1faa9bb3fb | [
"MIT"
] | null | null | null | maps/query.exs | diningyo/programming-elixir | bc61ee99a56e462129263c6b372eaf1faa9bb3fb | [
"MIT"
] | null | null | null | maps/query.exs | diningyo/programming-elixir | bc61ee99a56e462129263c6b372eaf1faa9bb3fb | [
"MIT"
] | null | null | null | people = [
%{ name: "Grumpy", height: 1.24 },
%{ name: "Dave", height: 1.88 },
%{ name: "Dopey", height: 1.32 },
%{ name: "Shaquille", height: 2.16 },
%{ name: "Sneezy", height: 1.28 }
]
IO.inspect(for person = %{ height: height } <- people, height > 1.5, do: person)
| 29.4 | 80 | 0.520408 |
623fd4c5839d1fa39f65b5035816ab4dfaa77b01 | 6,780 | ex | Elixir | lib/ark_client/api/one/delegate.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | lib/ark_client/api/one/delegate.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | lib/ark_client/api/one/delegate.ex | supaiku0/elixir-client | 2d5549ce3a876a18750a36a14ff769427688c5bb | [
"MIT"
] | null | null | null | defmodule ArkEcosystem.Client.API.One.Delegate do
@moduledoc """
Documentation for ArkEcosystem.Client.API.One.Delegate.
"""
import ArkClient
@doc """
Get the count of delegates.
## Examples
iex> ArkEcosystem.Client.API.One.Delegate.count(client)
{:ok, 198}
"""
@spec count(Tesla.Client... | 31.24424 | 143 | 0.65531 |
624003b103e8acc36ff135b71eb865c6177881b4 | 440 | exs | Elixir | test/page_change_notifier_web/controllers/page_controller_test.exs | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | test/page_change_notifier_web/controllers/page_controller_test.exs | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | test/page_change_notifier_web/controllers/page_controller_test.exs | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | defmodule PageChangeNotifier.PageControllerTest do
use PageChangeNotifierWeb.ConnCase
alias PageChangeNotifier.Repo
setup do
user = Repo.insert!(%PageChangeNotifier.User{username: "luke"})
conn =
build_conn()
|> put_private(:authenticated_current_user_id, user.id)
{:ok, conn: conn}
en... | 22 | 67 | 0.681818 |
62401d57c17454603261f38c41e94d2300349a93 | 1,292 | ex | Elixir | debian/emacsen-install.ex | jnidzwetzki/saslpolicyd | ee8fb3e91158105eafe23ecf7d745a88b60957a2 | [
"Apache-2.0"
] | 2 | 2018-03-02T12:05:30.000Z | 2021-04-20T19:15:16.000Z | debian/emacsen-install.ex | jnidzwetzki/saslpolicyd | ee8fb3e91158105eafe23ecf7d745a88b60957a2 | [
"Apache-2.0"
] | null | null | null | debian/emacsen-install.ex | jnidzwetzki/saslpolicyd | ee8fb3e91158105eafe23ecf7d745a88b60957a2 | [
"Apache-2.0"
] | null | null | null | #! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/saslpolicyd
# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1
PACKAGE=saslpolicyd
if [ ${FLAVOR} = emacs ]; then... | 26.916667 | 102 | 0.687307 |
6240202d05c740b9b714ec0701f93fc40cc752c1 | 1,603 | ex | Elixir | lib/hasher_web/endpoint.ex | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | lib/hasher_web/endpoint.ex | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | lib/hasher_web/endpoint.ex | enlego/hasher | 43b528059119971ffbca6538ffb6713fb78e077f | [
"MIT"
] | null | null | null | defmodule HasherWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hasher
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_hasher_key"... | 29.145455 | 97 | 0.717405 |
624036705ab0b1e29f9c656e19fe6db71b74b474 | 1,026 | ex | Elixir | demo/sample.ex | dotdevq/raiju | 95de7d93af46fbe2c0e4cfd31ddff1eb98d76f2b | [
"MIT"
] | 25 | 2018-06-09T11:32:11.000Z | 2022-01-31T11:04:25.000Z | demo/sample.ex | tobiastimm/pandju | 0cac5e7dcd4d74e449dcc56761c95e3e744285f3 | [
"MIT"
] | 16 | 2018-05-21T15:08:31.000Z | 2020-02-25T11:22:58.000Z | demo/sample.ex | tobiastimm/pandju | 0cac5e7dcd4d74e449dcc56761c95e3e744285f3 | [
"MIT"
] | 5 | 2018-06-18T10:02:39.000Z | 2022-03-31T12:18:53.000Z | defmodule Identicon do
@moduledoc """
Documentation for Identicon.
"""
def main(input) do
input
|> hash_input
|> pick_color
|> build_grid
|> filter_odd_squares
|> build_pixel_map
|> draw_image
|> save_image(input)
end
def save_image(image, filename) do
File.write("#{fil... | 22.8 | 73 | 0.626706 |
624047cac89e891e14d1b96efb70f61965ce42c7 | 3,044 | ex | Elixir | lib/page_change_notifier_web/controllers/search_agent_controller.ex | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | lib/page_change_notifier_web/controllers/search_agent_controller.ex | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | lib/page_change_notifier_web/controllers/search_agent_controller.ex | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | defmodule PageChangeNotifierWeb.SearchAgentController do
use PageChangeNotifierWeb, :controller
alias PageChangeNotifier.{SearchAgent, Result, User}
alias PageChangeNotifier.Repo
import Ecto.Query, only: [from: 2]
plug(PageChangeNotifierWeb.Plug.Authenticate)
plug(:scrub_params, "search_agent" when action... | 33.450549 | 92 | 0.675756 |
624048bc01e8f02ab32afc8b6b16e0b06d612a79 | 271 | exs | Elixir | apps/banking_api/priv/repo/migrations/20210414145213_create_operations.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/priv/repo/migrations/20210414145213_create_operations.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/priv/repo/migrations/20210414145213_create_operations.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.Repo.Migrations.CreateOperations do
use Ecto.Migration
def change do
create table(:operations, primary_key: false) do
add :id, :uuid, primary_key: true
add :description, :string, null: false
timestamps()
end
end
end
| 20.846154 | 56 | 0.697417 |
624050ddf611ca0fac6751fda876157ba23526a7 | 183 | exs | Elixir | priv/repo/migrations/20180601085613_add_test_san_balance_to_user.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20180601085613_add_test_san_balance_to_user.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20180601085613_add_test_san_balance_to_user.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.AddTestSanBalanceToUser do
use Ecto.Migration
def change do
alter table(:users) do
add(:test_san_balance, :decimal)
end
end
end
| 18.3 | 60 | 0.73224 |
624065fc5331f3c776e486104748c1372ed00371 | 112 | exs | Elixir | day15/test/day15_test.exs | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day15/test/day15_test.exs | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day15/test/day15_test.exs | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | defmodule Day15Test do
use ExUnit.Case
doctest Day15
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
6240cecadb2276b9ec61480a82eb534b0c86fe95 | 1,544 | exs | Elixir | mix.exs | chazsconi/kazan | da42cef9686584ed7b46428780d099ce77dae3ea | [
"MIT"
] | null | null | null | mix.exs | chazsconi/kazan | da42cef9686584ed7b46428780d099ce77dae3ea | [
"MIT"
] | null | null | null | mix.exs | chazsconi/kazan | da42cef9686584ed7b46428780d099ce77dae3ea | [
"MIT"
] | null | null | null | defmodule Kazan.Mixfile do
use Mix.Project
def project do
[app: :kazan,
version: "0.5.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
# Hex.pm stuff
package: package(),
description: description(),
# Docs
... | 23.044776 | 77 | 0.571244 |
62410ad1d3455bc39078867ad5347756475729f2 | 867 | ex | Elixir | lib/koans/01_equalities.ex | colinwarmstrong/elixir-koans | a70f2a37865011546364a774ba9875a2ab87e272 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | colinwarmstrong/elixir-koans | a70f2a37865011546364a774ba9875a2ab87e272 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | colinwarmstrong/elixir-koans | a70f2a37865011546364a774ba9875a2ab87e272 | [
"MIT"
] | null | null | null | defmodule Equalities do
use Koans
@intro """
Welcome to the Elixir koans.
Let these be your first humble steps towards learning a new language.
The path laid in front of you is one of many.
"""
# Replace ___ with the answer to make the koan pass.
koan "We shall contemplate truth by testing reality, v... | 21.675 | 83 | 0.680507 |
624148b6153d8e0fd623b082d2dc72e8e3926232 | 1,657 | ex | Elixir | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/lib/{{APP_NAME}}_endpoint.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/lib/{{APP_NAME}}_endpoint.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/lib/{{APP_NAME}}_endpoint.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | defmodule {{MODULE_NAME}}Endpoint 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 {{MODULE_NAME}}Endpoint, :controller
use {{MODULE_NAME}}Endpoint, :view
The definitions below will be ... | 25.106061 | 69 | 0.684369 |
62415fa65bc7596493747ba0829c8eecaa0886f5 | 1,252 | exs | Elixir | config/dev.exs | applede/media-bot | e6d2ffe59f2aaea022f1bf05eed42a4559ce3859 | [
"MIT"
] | null | null | null | config/dev.exs | applede/media-bot | e6d2ffe59f2aaea022f1bf05eed42a4559ce3859 | [
"MIT"
] | null | null | null | config/dev.exs | applede/media-bot | e6d2ffe59f2aaea022f1bf05eed42a4559ce3859 | [
"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 :media_bot, MediaBot.Endpoint,
http: [port: 40... | 29.116279 | 60 | 0.719649 |
624186a6148d2340392dbd1a8877c7f1201394cb | 232 | ex | Elixir | basico/1-tipos_dados.ex | juniorleaoo/learn-elixir | 173181eaed876de02a570b4d697d0b0338f2110a | [
"MIT"
] | null | null | null | basico/1-tipos_dados.ex | juniorleaoo/learn-elixir | 173181eaed876de02a570b4d697d0b0338f2110a | [
"MIT"
] | null | null | null | basico/1-tipos_dados.ex | juniorleaoo/learn-elixir | 173181eaed876de02a570b4d697d0b0338f2110a | [
"MIT"
] | null | null | null | # tipos de dados
1 #integer
0x1F #integer
1.0 #float
true #boolean
:atom #atom / symbol
"elixir" #string
[1, 2, 3] #listas ligadas
{1, 2, 3} #tuple (são armazenadas sequencialmente na memória)
%{:a => 1, :b => 2, 3 => false} #map | 21.090909 | 61 | 0.646552 |
62419be2a9dc677f99fb403882aa404ef9ca058e | 6,067 | ex | Elixir | lib/absinthe/plug/document_provider/compiled.ex | hippware/absinthe_plug | 0bc5510a351096f313ea1d6feffda8b71c3ac816 | [
"MIT"
] | null | null | null | lib/absinthe/plug/document_provider/compiled.ex | hippware/absinthe_plug | 0bc5510a351096f313ea1d6feffda8b71c3ac816 | [
"MIT"
] | null | null | null | lib/absinthe/plug/document_provider/compiled.ex | hippware/absinthe_plug | 0bc5510a351096f313ea1d6feffda8b71c3ac816 | [
"MIT"
] | null | null | null | defmodule Absinthe.Plug.DocumentProvider.Compiled do
@moduledoc """
Provide pre-compiled documents for retrieval by request parameter key.
Important: This module shouldn't be used as a document provider itself, but
as a toolkit to build one. See the examples below.
### Examples
Define a new module and `... | 30.18408 | 108 | 0.619417 |
6241d4f12ee7cc6950a2603e2261fc2fd0958eae | 2,385 | ex | Elixir | apps/simple_rtmp_player/lib/simple_rtmp_player/client.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/simple_rtmp_player/lib/simple_rtmp_player/client.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/simple_rtmp_player/lib/simple_rtmp_player/client.ex | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | defmodule SimpleRtmpPlayer.Client do
@behaviour GenRtmpClient
alias Rtmp.ClientSession.Events, as: Events
require Logger
defmodule State do
defstruct status: :started,
connection_info: nil,
stream_key: nil,
av_bytes_received: 0,
last_av_announcement... | 27.732558 | 98 | 0.674633 |
6241de4cff2aaa72012ac27723908143ee35672c | 5,521 | ex | Elixir | lib/app/commands.ex | v0idpwn/elixir-telegram-bot-boilerplate | 8f2331bb4b4525f90b77948528ebba63b1fe2a7a | [
"MIT"
] | null | null | null | lib/app/commands.ex | v0idpwn/elixir-telegram-bot-boilerplate | 8f2331bb4b4525f90b77948528ebba63b1fe2a7a | [
"MIT"
] | null | null | null | lib/app/commands.ex | v0idpwn/elixir-telegram-bot-boilerplate | 8f2331bb4b4525f90b77948528ebba63b1fe2a7a | [
"MIT"
] | 1 | 2020-12-17T16:36:33.000Z | 2020-12-17T16:36:33.000Z | defmodule App.Commands do
use App.Router
use App.Commander
alias App.Commands.Outside
# You can create commands in the format `/command` by
# using the macro `command "command"`.
command ["hello", "hi"] do
# Logger module injected from App.Commander
Logger.log :info, "Command /hello or /hi"
#... | 34.72327 | 81 | 0.659301 |
6242194f7a97f2fc292dbd1f3bb95a41a0872f0a | 29,972 | exs | Elixir | lib/elixir/test/elixir/exception_test.exs | msz/elixir | b41c8fd40485acecfd3b4b7c37ae45e0142db583 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/test/elixir/exception_test.exs | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/exception_test.exs | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule ExceptionTest do
use ExUnit.Case, async: true
doctest Exception
test "raising preserves the stacktrace" do
stacktrace =
try do
raise "a"
rescue
_ -> hd(__STACKTRACE__)
end
file = __ENV__.file |> Path.relative_to_... | 36.462287 | 142 | 0.586347 |
62421f10eb4741ae3f6f044930d06aec65c397f3 | 5,976 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/runtime_environment.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/runtime_environment.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/runtime_environment.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... | 64.956522 | 455 | 0.704317 |
62423de8af76ee76bbc40c6ab86ee96f81103523 | 405 | exs | Elixir | priv/repo/migrations/20191101233331_create_users.exs | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 3 | 2020-04-25T11:35:06.000Z | 2021-10-06T19:59:47.000Z | priv/repo/migrations/20191101233331_create_users.exs | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 12 | 2019-11-04T11:06:37.000Z | 2019-11-21T11:03:57.000Z | priv/repo/migrations/20191101233331_create_users.exs | theguuholi/bank_stone | 150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5 | [
"MIT"
] | 1 | 2020-12-11T07:05:04.000Z | 2020-12-11T07:05:04.000Z | defmodule BankStone.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :uuid, primary_key: true
add :email, :string
add :first_name, :string
add :last_name, :string
add :password_hash, :string
add :role, :stri... | 21.315789 | 50 | 0.649383 |
62424379528366a10ac64dbcf33ca2101dc38de9 | 1,751 | exs | Elixir | webrtc/videoroom_advanced/benchmarks/simple.exs | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 2 | 2022-02-23T11:28:05.000Z | 2022-03-29T00:20:35.000Z | benchmarks/simple.exs | membraneframework/membrane_distributed_videoroom | 66add785690733070390c8dd5a1bc6af5e50ce01 | [
"Apache-2.0"
] | null | null | null | benchmarks/simple.exs | membraneframework/membrane_distributed_videoroom | 66add785690733070390c8dd5a1bc6af5e50ce01 | [
"Apache-2.0"
] | null | null | null | Code.require_file("./benchmarks/simple_mustang.ex")
defmodule SimpleScenario do
@behaviour Beamchmark.Scenario
@peers 4
# in miliseconds
@peer_delay 1_000
# in miliseconds
@peer_duration 120_000
@room_url "http://localhost:4000/?room_id=benchmark"
# stampede or chrome cannot connect more than 16 peer... | 30.719298 | 95 | 0.68418 |
6242582711661cbdce4afd975427deba6e0d439c | 681 | ex | Elixir | lib/qlc/cursor.ex | k1complete/qlc | 3d6447405aa1229a27d0eb8ef7b66ffc8235051f | [
"MIT"
] | 20 | 2015-04-19T03:11:57.000Z | 2022-03-01T20:14:03.000Z | lib/qlc/cursor.ex | k1complete/qlc | 3d6447405aa1229a27d0eb8ef7b66ffc8235051f | [
"MIT"
] | 10 | 2016-02-15T18:36:06.000Z | 2022-03-30T12:39:48.000Z | lib/qlc/cursor.ex | k1complete/qlc | 3d6447405aa1229a27d0eb8ef7b66ffc8235051f | [
"MIT"
] | 2 | 2016-02-15T21:51:53.000Z | 2022-03-29T17:49:38.000Z | defmodule Qlc.Cursor do
@type t :: %Qlc.Cursor{}
defstruct c: nil
end
defimpl Enumerable, for: Qlc.Cursor do
def count(_qc) do
{:error, __MODULE__}
end
def member?(_qc,_) do
{:error, __MODULE__}
end
def reduce(qc, {:halt, acc}, _fun) do
Qlc.delete_cursor(qc)
{:halted, acc}
end
def... | 17.461538 | 54 | 0.572687 |
62426dd237df5ac954e11294b273683d07eccc60 | 18,398 | exs | Elixir | test/queuetopia/queue_test.exs | annatel/queuetopia | dd4be7390382c203821ab88388f0c31ba5538edf | [
"MIT"
] | 7 | 2020-08-06T21:58:13.000Z | 2021-08-07T18:32:44.000Z | test/queuetopia/queue_test.exs | annatel/queuetopia | dd4be7390382c203821ab88388f0c31ba5538edf | [
"MIT"
] | 2 | 2020-10-22T11:53:45.000Z | 2021-06-22T05:45:27.000Z | test/queuetopia/queue_test.exs | annatel/queuetopia | dd4be7390382c203821ab88388f0c31ba5538edf | [
"MIT"
] | 2 | 2020-11-04T00:23:43.000Z | 2021-04-30T07:25:01.000Z | defmodule Queuetopia.QueueTest do
use Queuetopia.DataCase
alias Queuetopia.Queue
alias Queuetopia.Queue.Job
alias Queuetopia.Queue.Lock
describe "list_available_pending_queues/1" do
test "returns available scoped queues with pending jobs" do
%{queue: _queue_1, scope: scope_1} = Factory.insert!(:do... | 31.996522 | 98 | 0.614088 |
62427a2f7c3ed387da13dd1d364ea42188302d4c | 129 | exs | Elixir | test/ex_ct_test.exs | fabiankrol/ex_ct | 55b38dc024df9426320f3f2b8e5b85f59fe0384d | [
"MIT"
] | null | null | null | test/ex_ct_test.exs | fabiankrol/ex_ct | 55b38dc024df9426320f3f2b8e5b85f59fe0384d | [
"MIT"
] | null | null | null | test/ex_ct_test.exs | fabiankrol/ex_ct | 55b38dc024df9426320f3f2b8e5b85f59fe0384d | [
"MIT"
] | null | null | null | defmodule ExCtTest do
use ExUnit.Case
doctest ExCt
test "greets the world" do
assert ExCt.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
62428091f0ec86c9c2a986136165811c14ab4999 | 3,602 | ex | Elixir | lib/akin/algorithms/helpers/initials_comparison.ex | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | 8 | 2021-10-31T21:24:37.000Z | 2022-02-27T05:30:24.000Z | lib/akin/algorithms/helpers/initials_comparison.ex | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | 1 | 2021-10-31T17:57:41.000Z | 2021-11-09T22:54:50.000Z | lib/akin/algorithms/helpers/initials_comparison.ex | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | null | null | null | defmodule Akin.Helpers.InitialsComparison do
@moduledoc """
Function specific to the comparison and matching of names. Returns matching names and metrics.
"""
import Akin.Util, only: [ngram_tokenize: 2]
alias Akin.Corpus
def similarity(%Corpus{} = left, %Corpus{} = right) do
left_initials = initials(le... | 30.786325 | 101 | 0.614659 |
624283ed33e0167f5c37ee9a53208d7249a2c987 | 886 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.814815 | 74 | 0.759594 |
6242c8701d43c455f215dc328bf1184b67005858 | 27,446 | ex | Elixir | lib/generated/join_group.ex | joshuawscott/kayrock | 614b930d568f7d0655a00e8d0d760e3b33314366 | [
"MIT"
] | null | null | null | lib/generated/join_group.ex | joshuawscott/kayrock | 614b930d568f7d0655a00e8d0d760e3b33314366 | [
"MIT"
] | null | null | null | lib/generated/join_group.ex | joshuawscott/kayrock | 614b930d568f7d0655a00e8d0d760e3b33314366 | [
"MIT"
] | null | null | null | defmodule(Kayrock.JoinGroup) do
@api :join_group
@moduledoc "Kayrock-generated module for the Kafka `#{@api}` API\n"
_ = " THIS CODE IS GENERATED BY KAYROCK"
(
@vmin 0
@vmax 2
)
defmodule(V0.Request) do
@vsn 0
@api :join_group
@schema group_id: :string,
session_timeout: :in... | 32.100585 | 130 | 0.579829 |
6242d28d9c5fe6534f5e12da86614149fffd12a5 | 1,172 | ex | Elixir | lib/ex_nifcloud/operation/query.ex | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | lib/ex_nifcloud/operation/query.ex | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | lib/ex_nifcloud/operation/query.ex | kzmake/ex_nifcloud | 87e69bb78fba4132b767decbc33eeb10bd79c593 | [
"MIT"
] | null | null | null | defmodule ExNifcloud.Operation.Query do
@moduledoc """
Datastructure representing an operation on a Query based Nifcloud service
"""
defstruct path: "/api/",
params: %{},
service: nil,
action: nil,
parser: &ExNifcloud.Utils.identity/2
@type t :: %__MODULE__{}
... | 22.113208 | 93 | 0.607509 |
624334999681b2f7d33dcb0b92738f8c6bea6bc5 | 1,307 | exs | Elixir | config/dev.exs | kjhnns/microblog | fc82208f46d51a40e01c618b8b4c5aa961b3b3c8 | [
"MIT"
] | null | null | null | config/dev.exs | kjhnns/microblog | fc82208f46d51a40e01c618b8b4c5aa961b3b3c8 | [
"MIT"
] | null | null | null | config/dev.exs | kjhnns/microblog | fc82208f46d51a40e01c618b8b4c5aa961b3b3c8 | [
"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 :microblog, Microblog.Endpoint,
http: [port: 4... | 29.704545 | 73 | 0.695486 |
62433cf43fbb3eddf1c75acd0eb8d54228082370 | 567 | ex | Elixir | OTPSupervisors/stack/lib/stack/supervisor.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | 2 | 2015-11-14T21:35:01.000Z | 2017-07-12T07:09:40.000Z | OTPSupervisors/stack/lib/stack/supervisor.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | OTPSupervisors/stack/lib/stack/supervisor.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | defmodule Stack.Supervisor do
use Supervisor
def start_link(initial_stack) do
result = {:ok, sup} = Supervisor.start_link(__MODULE__, [initial_stack])
start_workers(sup, initial_stack)
result
end
def start_workers(sup, initial_stack) do
# Start the stash worker
{:ok, stash_pid} = Supervisor.start_child(... | 28.35 | 86 | 0.758377 |
624348cfba49e8d98c4587fbbe996269e9350db9 | 1,622 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_delete_instances_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_delete_instances_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_managers_delete_instances_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.102041 | 198 | 0.750308 |
62435bfc0e623dd09543335753f894394ba8c5e4 | 774 | exs | Elixir | harbor/test/ports/rumble/message/join_round_test.exs | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/test/ports/rumble/message/join_round_test.exs | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/test/ports/rumble/message/join_round_test.exs | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | defmodule PortsTests.Rumble.Message.JoinRound.JoinRoundTest do
use ExUnit.Case, async: true
alias PierTest.WsClient
alias PierTest.WsClientFactory
alias PierTest.Helpers.Room
alias HarborTest.Support.Factory
require WsClient
setup do
user_id = Factory.user_token()
client_ws = WsClientFactory.cr... | 24.1875 | 64 | 0.693798 |
6243775d952273dc12ef2982c62605e9b999475e | 2,109 | exs | Elixir | config/dev.exs | btihen/fare | 4fb959b2c5e7d96cdb6049764ebac829f68b8128 | [
"MIT"
] | null | null | null | config/dev.exs | btihen/fare | 4fb959b2c5e7d96cdb6049764ebac829f68b8128 | [
"MIT"
] | null | null | null | config/dev.exs | btihen/fare | 4fb959b2c5e7d96cdb6049764ebac829f68b8128 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :fare, Fare.Repo,
username: "btihen",
# password: "postgres",
database: "fare_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The... | 27.38961 | 68 | 0.685633 |
62437cc78e54233ad900d0fcf8948c4fd49b2e94 | 117 | exs | Elixir | prag-programing/Part1/Immutability.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | 1 | 2017-03-29T04:10:50.000Z | 2017-03-29T04:10:50.000Z | prag-programing/Part1/Immutability.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | prag-programing/Part1/Immutability.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | # Immutability
# Matthew Ahrens
# Ch 3
name = "matthew"
cap_name = String.capitalize name
name #remains unchanged
| 11.7 | 33 | 0.74359 |
6243815899ee20113c5f7afc5b0e154fd12f9b5f | 214 | exs | Elixir | priv/repo/migrations/20160915155728_add_bidding_topic.exs | artsy/aprb | 9e93200462a76823c831b92f02bddcf1b326a451 | [
"MIT"
] | 11 | 2016-08-18T23:18:57.000Z | 2019-05-03T17:46:55.000Z | priv/repo/migrations/20160915155728_add_bidding_topic.exs | artsy/aprb | 9e93200462a76823c831b92f02bddcf1b326a451 | [
"MIT"
] | 105 | 2016-08-17T23:36:07.000Z | 2019-09-26T18:14:24.000Z | priv/repo/migrations/20160915155728_add_bidding_topic.exs | artsy/aprb | 9e93200462a76823c831b92f02bddcf1b326a451 | [
"MIT"
] | 14 | 2016-08-17T17:23:45.000Z | 2019-09-16T16:14:59.000Z | defmodule Aprb.Repo.Migrations.AddBiddingTopic do
use Ecto.Migration
alias Aprb.{Repo,Topic}
def change do
changeset = Topic.changeset(%Topic{}, %{name: "bidding"})
Repo.insert!(changeset)
end
end
| 21.4 | 61 | 0.714953 |
624382faad0a590a31c3ec10f8b849a3fa81084e | 2,045 | ex | Elixir | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_longrunning_list_operations_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_longrunning_list_operations_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_longrunning_list_operations_response.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... | 34.083333 | 197 | 0.747677 |
6243aefb8c7dd62b239645d30a1dd42eec6f2a77 | 656 | ex | Elixir | lib/exdns/zone/loader.ex | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 16 | 2016-05-26T10:11:57.000Z | 2021-01-08T15:09:19.000Z | lib/exdns/zone/loader.ex | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 9 | 2016-08-11T00:48:27.000Z | 2020-09-16T22:10:07.000Z | lib/exdns/zone/loader.ex | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 11 | 2016-08-10T08:13:36.000Z | 2021-04-03T10:20:11.000Z | defmodule Exdns.Zone.Loader do
@moduledoc """
Logic for loading zone data from a source.
Currently only loading from the filesystem is supported.
"""
require Logger
def load_zones do
binary = Exdns.Config.zone_file |> File.read!
Logger.info("Parsing zones JSON from #{Exdns.Config.zone_file}")
... | 26.24 | 68 | 0.692073 |
6243bc842d469aaabf0d50c2ef5a13877c24c526 | 1,690 | ex | Elixir | apps/language_server/lib/language_server/mix_shell.ex | elsifaka/elixir-ls | e37d142c7768800be7e3c0e6ba339e1dd3b1e18d | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/mix_shell.ex | elsifaka/elixir-ls | e37d142c7768800be7e3c0e6ba339e1dd3b1e18d | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/mix_shell.ex | elsifaka/elixir-ls | e37d142c7768800be7e3c0e6ba339e1dd3b1e18d | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.MixShell do
@moduledoc """
Some Mix tasks such as Hex will use the `yes?/1` function to
prompt the user. This module turns those prompts into JSON RPC
requests that will show a prompt in the IDE.
"""
alias ElixirLS.LanguageServer.JsonRpc
alias ElixirLS.Utils.WireProtocol
... | 25.223881 | 88 | 0.615976 |
6243d1d8083dbbce81f72a073f68e42ddcb6dea3 | 1,952 | exs | Elixir | config/dev.exs | mikeonslow/elm-phoenix-example | c6d8ad0cfc40dc9a1af0c4b4490fff0c51386faf | [
"MIT"
] | 4 | 2019-03-08T01:21:29.000Z | 2019-05-23T15:08:35.000Z | config/dev.exs | mikeonslow/elm-phoenix-example | c6d8ad0cfc40dc9a1af0c4b4490fff0c51386faf | [
"MIT"
] | null | null | null | config/dev.exs | mikeonslow/elm-phoenix-example | c6d8ad0cfc40dc9a1af0c4b4490fff0c51386faf | [
"MIT"
] | 1 | 2019-05-23T15:08:37.000Z | 2019-05-23T15:08:37.000Z | 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 webpack to recompile .js and .css sources.
config :elmfolio, ElmfolioWeb.Endpoint,
http: [port: 40... | 28.289855 | 68 | 0.683402 |
6243ed6a7f2dc9b6ff110097ed756b2785cbd650 | 1,200 | ex | Elixir | apps/discovery_api/lib/discovery_api_web/views/search_view.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/discovery_api/lib/discovery_api_web/views/search_view.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/discovery_api/lib/discovery_api_web/views/search_view.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApiWeb.SearchView do
use DiscoveryApiWeb, :view
alias DiscoveryApi.Data.Model
def accepted_formats() do
["json"]
end
def render("search_view.json", %{
models: models,
facets: facets,
offset: offset,
limit: limit,
total: total
}) do
dat... | 24 | 64 | 0.623333 |
62440391f02a7187f02b061cbad3eda5d3a4c1f4 | 7,410 | ex | Elixir | lib/ex_doc/formatter/html/templates.ex | MattLangley/ex_doc | 971b6b6023af0b5229a9cdd705877fda5491430e | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/templates.ex | MattLangley/ex_doc | 971b6b6023af0b5229a9cdd705877fda5491430e | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/templates.ex | MattLangley/ex_doc | 971b6b6023af0b5229a9cdd705877fda5491430e | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-05-11T16:54:10.000Z | 2020-05-11T16:54:10.000Z | defmodule ExDoc.Formatter.HTML.Templates do
@moduledoc false
require EEx
# TODO: It should not depend on the parent module
# TODO: Add tests that assert on the returned structured, not on JSON
alias ExDoc.Utils.SimpleJSON
alias ExDoc.Formatter.HTML
@doc """
Generate content from the module template fo... | 29.058824 | 105 | 0.635358 |
62441299773746043a8e18d7f5d6cda948856567 | 57,376 | ex | Elixir | lib/aws/generated/glue.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/glue.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/glue.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"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.Glue do
@moduledoc """
AWS Glue
Defines the public endpoint for the AWS Glue service.
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbrev... | 37.378502 | 149 | 0.720179 |
624423f93152e3a73518b3861f3f5f86f183627f | 1,318 | ex | Elixir | lib/console/functions/functions.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console/functions/functions.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console/functions/functions.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Functions do
import Ecto.Query, warn: false
alias Console.Repo
alias Console.Functions.Function
alias Console.Organizations.Organization
def get_function!(organization, id) do
Repo.get_by!(Function, [id: id, organization_id: organization.id])
end
def get_function!(id), do: Repo.g... | 26.897959 | 95 | 0.68437 |
62445e37a00aa48b2ced1371d73c721e9be1d0f0 | 650 | ex | Elixir | lib/ex_sieve/builder/join.ex | ppraisethesun/ex_sieve | 17b9802281e13cc348621f519103f5e42fc0df87 | [
"MIT"
] | null | null | null | lib/ex_sieve/builder/join.ex | ppraisethesun/ex_sieve | 17b9802281e13cc348621f519103f5e42fc0df87 | [
"MIT"
] | null | null | null | lib/ex_sieve/builder/join.ex | ppraisethesun/ex_sieve | 17b9802281e13cc348621f519103f5e42fc0df87 | [
"MIT"
] | null | null | null | defmodule ExSieve.Builder.Join do
@moduledoc false
alias Ecto.Query.Builder.Join
@spec build(Ecto.Queryable.t, Macro.t) :: Ecto.Query.t
def build(query, relations) do
relations |> Enum.reduce(query, &apply_join(&1, &2))
end
@spec apply_join(Macro.t, Ecto.Queryable.t) :: Ect.Query.t :: no_return
defp... | 25 | 77 | 0.661538 |
624467a3f3ad68a93a3b04f05bd478a9d05c383a | 150 | exs | Elixir | test/mystery_soup_test.exs | khionu/mystery_soup | b05a22bf666d384a73c179ef33303a7fecc5d02e | [
"Apache-2.0"
] | 10 | 2020-05-30T19:07:44.000Z | 2022-03-21T01:50:11.000Z | test/mystery_soup_test.exs | khionu/mystery_soup | b05a22bf666d384a73c179ef33303a7fecc5d02e | [
"Apache-2.0"
] | null | null | null | test/mystery_soup_test.exs | khionu/mystery_soup | b05a22bf666d384a73c179ef33303a7fecc5d02e | [
"Apache-2.0"
] | 1 | 2021-11-06T10:09:18.000Z | 2021-11-06T10:09:18.000Z | defmodule MysterySoupTest do
use ExUnit.Case
doctest MysterySoup
test "greets the world" do
assert MysterySoup.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
6244b6ccae935520e2fb542225d56a3689d69fdd | 477 | exs | Elixir | test/yandex_cloud/auth_test.exs | kortirso/ex_yandex_cloud | 66c54ab6005caf4277ad79d1d39ca151b21629a7 | [
"MIT"
] | null | null | null | test/yandex_cloud/auth_test.exs | kortirso/ex_yandex_cloud | 66c54ab6005caf4277ad79d1d39ca151b21629a7 | [
"MIT"
] | null | null | null | test/yandex_cloud/auth_test.exs | kortirso/ex_yandex_cloud | 66c54ab6005caf4277ad79d1d39ca151b21629a7 | [
"MIT"
] | null | null | null | defmodule YandexCloud.AuthTest do
use ExUnit.Case
alias YandexCloud.Auth
test "request for getting iam_token with invalid key" do
{:error, %{"code" => code, "message" => message}} = Auth.token(%{oauth_token: "12345"})
assert code == 16
assert message == "Token is invalid or has expired."
end
te... | 26.5 | 91 | 0.672956 |
6244cda46aec9a630becf668538fc0c6d4718eee | 335 | exs | Elixir | priv/repo/migrations/20160110203631_add_exclusion_rule_timestamps.exs | marick/elixir-critter4us | eeea901c1debf6c77969d80a55320daf909df053 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160110203631_add_exclusion_rule_timestamps.exs | marick/elixir-critter4us | eeea901c1debf6c77969d80a55320daf909df053 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160110203631_add_exclusion_rule_timestamps.exs | marick/elixir-critter4us | eeea901c1debf6c77969d80a55320daf909df053 | [
"MIT"
] | null | null | null | defmodule Critter4us.Repo.Migrations.AddExclusionRuleTimestamps do
use Ecto.Migration
def change do
alter table(:exclusion_rules) do
add :inserted_at, :datetime, default: fragment("now()")
add :updated_at, :datetime, default: fragment("now()")
end
create index(:exclusion_rules, [:procedure_... | 27.916667 | 66 | 0.719403 |
6244d1e79e9dc9ae44955d28a0238bddd26e900d | 3,382 | ex | Elixir | lib/livebook/runtime/elixir_standalone.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 1 | 2022-02-16T09:13:27.000Z | 2022-02-16T09:13:27.000Z | lib/livebook/runtime/elixir_standalone.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/elixir_standalone.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ElixirStandalone do
defstruct [:node, :server_pid]
# A runtime backed by a standalone Elixir node managed by Livebook.
#
# Livebook is responsible for starting and terminating the node.
# Most importantly we have to make sure the started node doesn't
# stay in the system when the... | 31.607477 | 97 | 0.701952 |
6244ddd182deb8824f4346fc466cdefe7c5842f0 | 1,675 | ex | Elixir | lib/worker_box.ex | chashu-code/job-scheduler | 9e96e242acecae2ec9d16af9177c00d6fa226c8a | [
"MIT"
] | 1 | 2015-11-24T09:22:40.000Z | 2015-11-24T09:22:40.000Z | lib/worker_box.ex | chashu-code/job-scheduler | 9e96e242acecae2ec9d16af9177c00d6fa226c8a | [
"MIT"
] | null | null | null | lib/worker_box.ex | chashu-code/job-scheduler | 9e96e242acecae2ec9d16af9177c00d6fa226c8a | [
"MIT"
] | null | null | null | require Lager
defmodule Job.WorkerBox do
use GenServer
alias Job.Worker
def start_link({dispatcher, job_info}=state) do
start_link({dispatcher, job_info, 50})
end
def start_link({dispatcher, job_info, allow_down_num}=state) do
GenServer.start_link(__MODULE__, state, [])
end
def init(state) do... | 27.916667 | 99 | 0.690746 |
6245239a3207d068483062e201972c1bbc2e3cd6 | 607 | exs | Elixir | apps/tai/test/tai/events/add_free_asset_balance_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/events/add_free_asset_balance_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/events/add_free_asset_balance_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.Events.AddFreeAssetBalanceTest do
use ExUnit.Case, async: true
test ".to_data/1 transforms decimal data to strings" do
event = %Tai.Events.AddFreeAssetBalance{
venue_id: :my_venue,
account_id: :my_account,
asset: :btc,
val: Decimal.new("0.1"),
free: Decimal.new("0.2"... | 25.291667 | 57 | 0.5486 |
624545c4f9bb424bd2db85a3a4cef5da79b7fb59 | 1,980 | ex | Elixir | lib/services/stream_elements_commands.ex | boomba-bot/boomba | 285f24edd69736f3663e5b1c6efa4ee4d54a667e | [
"MIT"
] | null | null | null | lib/services/stream_elements_commands.ex | boomba-bot/boomba | 285f24edd69736f3663e5b1c6efa4ee4d54a667e | [
"MIT"
] | 12 | 2021-09-29T17:49:53.000Z | 2021-10-09T14:53:48.000Z | lib/services/stream_elements_commands.ex | boomba-bot/boomba | 285f24edd69736f3663e5b1c6efa4ee4d54a667e | [
"MIT"
] | null | null | null | defmodule Boomba.StreamElements.Commands do
require IEx
alias Boomba.Services.StreamElements
alias Boomba.StreamElements.Command
@moduledoc """
Get commands and other stream elements data for a guild
"""
use GenServer
## Client API
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__,... | 24.146341 | 82 | 0.643434 |
62455fec82197934f1fd6b4a4dc08f6860cbda4b | 782 | ex | Elixir | lib/soccer_table/gracenote/api.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-05-09T02:09:21.000Z | 2020-05-09T02:09:21.000Z | lib/soccer_table/gracenote/api.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | null | null | null | lib/soccer_table/gracenote/api.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-07-07T21:38:33.000Z | 2020-07-07T21:38:33.000Z | defmodule SoccerTable.Gracenote.API do
@endpoint "https://sportapi.widgets.sports.gracenote.com/football"
@headers [
Accept: "application/json",
Origin: "https://widgets.sports.gracenote.com",
Referer: "https://widgets.sports.gracenote.com/v1.9/index.html",
"User-Agent": "SoccerTable (Phoennix Live... | 31.28 | 96 | 0.695652 |
6245769ee0243e8f67acc7a9f06dd7c9e25254b0 | 657 | ex | Elixir | lib/coherence/supervisor.ex | harmon25/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | lib/coherence/supervisor.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | lib/coherence/supervisor.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule Coherence.Supervisor do
@doc false
import Coherence.Authentication.Utils, only: [get_credential_store: 0]
def start_link() do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
@doc false
def init(:ok) do
import Supervisor.Spec
use Coherence.Config
children = [
wo... | 23.464286 | 72 | 0.713851 |
62458eba9fc685234dd06003c479f88d46e96fc1 | 1,771 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/managed_identities/lib/google_api/managed_identities/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/managed_identities/lib/google_api/managed_identities/v1/model/set_iam_policy_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... | 37.680851 | 317 | 0.755505 |
62459b5d3ac2e6b79b1219f3a64b2bad2c37a84c | 2,096 | exs | Elixir | src/config/dev.exs | lukasender/elixir-blockclock | db22d492f81d06e5074e97a556d75f5f557a66af | [
"MIT"
] | 1 | 2021-12-16T09:01:44.000Z | 2021-12-16T09:01:44.000Z | src/config/dev.exs | lukasender/elixir-blockclock | db22d492f81d06e5074e97a556d75f5f557a66af | [
"MIT"
] | null | null | null | src/config/dev.exs | lukasender/elixir-blockclock | db22d492f81d06e5074e97a556d75f5f557a66af | [
"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 webpack to recompile .js and .css sources.
config :block_clock, BlockClockWeb.Endpoint,
http: [por... | 28.324324 | 72 | 0.688931 |
62459ebee008d503ecb2e7759d465fa19d9de2bb | 2,082 | ex | Elixir | lib/codes/codes_j03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j03.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_J03 do
alias IcdCode.ICDCode
def _J0300 do
%ICDCode{full_code: "J0300",
category_code: "J03",
short_code: "00",
full_name: "Acute streptococcal tonsillitis, unspecified",
short_name: "Acute streptococcal tonsillitis, unspecified",
... | 34.131148 | 87 | 0.643612 |
6245b284a4dc98b4ba14eeaff5f6ddbab57d3284 | 2,935 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/examples/stream/bi_directional/local.ex | kylematsuda/ockam | 1b89ef8164b6f9291a0d36bd1e2d8161938299f3 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/stream/bi_directional/local.ex | kylematsuda/ockam | 1b89ef8164b6f9291a0d36bd1e2d8161938299f3 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/examples/stream/bi_directional/local.ex | kylematsuda/ockam | 1b89ef8164b6f9291a0d36bd1e2d8161938299f3 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Example.Stream.BiDirectional.Local do
@moduledoc """
Ping-pong example for bi-directional stream communication using local subsctiption
Use-case: integrate ockam nodes which implement stream protocol consumer and publisher
Pre-requisites:
Ockam hub running with stream service and TCP liste... | 26.205357 | 88 | 0.705622 |
6245b54fb92b41f727f8c939c7c08540cdabe786 | 943 | exs | Elixir | config/prod.secret.exs | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | config/prod.secret.exs | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | config/prod.secret.exs | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"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.433333 | 62 | 0.735949 |
6245c18fd5f422e20e1c0d2e620faa7f256afbd0 | 1,025 | ex | Elixir | web/views/error_helpers.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | 7 | 2015-12-30T19:43:10.000Z | 2016-01-04T14:38:38.000Z | web/views/error_helpers.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | defmodule WishlistManager.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
if error = form.errors[field] do
content_tag :span, translate_erro... | 28.472222 | 86 | 0.683902 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.