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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac21234188f4c3fd833c5a3687f2c44cd032701a | 2,365 | ex | Elixir | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/app_targeting.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/app_targeting.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/app_targeting.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... | 43 | 280 | 0.759831 |
ac21282e0af12c2c7e2acf12664bb615844ff2ed | 15,560 | exs | Elixir | lib/euler_067.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | 8 | 2015-11-04T05:03:05.000Z | 2022-01-25T19:34:46.000Z | lib/euler_067.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | lib/euler_067.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | defmodule EulerSixtySeven do
import Triangle
@triangle """
59
73 41
52 40 09
26 53 06 34
10 51 87 86 81
61 95 66 57 25 68
90 81 80 38 92 67 73
30 28 51 76 81 18 75 44
84 14 95 87 62 81 17 78 58
21 46 71 58 02 79 62 39 31 09
56 34 35 53 78 31 81 18 90 93 15
78 53 04 21 84 93 32 13 97 11 37 5... | 138.928571 | 301 | 0.658676 |
ac2191351b7f7d8f836c9fb8d00294b155a8ce72 | 541 | ex | Elixir | lib/weather_api_web/views/error_view.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | lib/weather_api_web/views/error_view.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | lib/weather_api_web/views/error_view.ex | vegashat/weather-api | d06ce0bf809bd98710367c459920bc5cef384f94 | [
"MIT"
] | null | null | null | defmodule WeatherApiWeb.ErrorView do
use WeatherApiWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status messag... | 31.823529 | 83 | 0.722736 |
ac21c303ddb54a106e8c516a12c830ecbd37d704 | 3,015 | exs | Elixir | test/ecto_test.exs | sthagen/elixir-ecto-ecto | a71dc13ba376663279f0c607ebec510018802b30 | [
"Apache-2.0"
] | null | null | null | test/ecto_test.exs | sthagen/elixir-ecto-ecto | a71dc13ba376663279f0c607ebec510018802b30 | [
"Apache-2.0"
] | null | null | null | test/ecto_test.exs | sthagen/elixir-ecto-ecto | a71dc13ba376663279f0c607ebec510018802b30 | [
"Apache-2.0"
] | null | null | null | defmodule EctoTest do
use ExUnit.Case, async: true
alias Ecto.Query.Planner
defmodule PrefixSchema do
use Ecto.Schema
@schema_prefix "owner_prefix"
schema "prefix_schema" do
has_one :no_prefix_assoc, EctoTest.NoPrefixAssoc
has_one :prefix_assoc, EctoTest.PrefixAssoc
end
end
def... | 26.681416 | 90 | 0.67529 |
ac21c33e6b210d7d69293c8d5a86b0f234a68d7d | 1,556 | ex | Elixir | test/support/data_case.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:03:40.000Z | 2021-05-20T12:03:40.000Z | test/support/data_case.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | null | null | null | test/support/data_case.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:04:10.000Z | 2021-05-20T12:04:10.000Z | defmodule Phoenixcicd.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 ... | 27.785714 | 77 | 0.693445 |
ac21cec2895c38e60c2ceb304567a98ce046b2eb | 244 | exs | Elixir | config/test.exs | cfx/stockmonit | 73b4217039a623bfa20872330a4ab1cff1ce8980 | [
"MIT"
] | null | null | null | config/test.exs | cfx/stockmonit | 73b4217039a623bfa20872330a4ab1cff1ce8980 | [
"MIT"
] | null | null | null | config/test.exs | cfx/stockmonit | 73b4217039a623bfa20872330a4ab1cff1ce8980 | [
"MIT"
] | null | null | null | use Mix.Config
# config :stockmonit, :config_reader, Stockmonit.ConfigServerMock
config :stockmonit, :config_reader, Stockmonit.Config.File
config :stockmonit, :http_client, Stockmonit.HttpClientMock
config :stockmonit, :api_fetch_interval, 0
| 34.857143 | 65 | 0.827869 |
ac21cefdef9f2aa6bcb4f1365456d431ada0c5e3 | 1,023 | ex | Elixir | lib/rocketpay/user.ex | thiagomwd/rocketpay | 56d8e25aa55cfba726da082fc9f2c288abbc49ef | [
"MIT"
] | null | null | null | lib/rocketpay/user.ex | thiagomwd/rocketpay | 56d8e25aa55cfba726da082fc9f2c288abbc49ef | [
"MIT"
] | null | null | null | lib/rocketpay/user.ex | thiagomwd/rocketpay | 56d8e25aa55cfba726da082fc9f2c288abbc49ef | [
"MIT"
] | null | null | null | defmodule Rocketpay.User do
use Ecto.Schema
import Ecto.Changeset
alias Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@required_params [:name, :age, :email, :password, :nickname]
schema "users" do
field :name, :string
field :age, :integer
field :email, :string
field :... | 25.575 | 97 | 0.687195 |
ac21e6b9fc0a79c83d77e04955fada9056f7650d | 1,191 | ex | Elixir | lib/frizzle/endpoint.ex | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | lib/frizzle/endpoint.ex | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | lib/frizzle/endpoint.ex | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | defmodule Frizzle.Endpoint do
use Phoenix.Endpoint, otp_app: :frizzle
socket "/socket", Frizzle.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 27.697674 | 69 | 0.714526 |
ac21fde52478c0e48ffa8baf5e734cd95c8ed449 | 263 | ex | Elixir | lib/central_web/views/account/report_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central_web/views/account/report_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central_web/views/account/report_view.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.Account.ReportView do
use CentralWeb, :view
@spec colours :: {String.t(), String.t(), String.t()}
def colours(), do: Central.Account.ReportLib.colours()
@spec icon :: String.t()
def icon(), do: Central.Account.ReportLib.icon()
end
| 29.222222 | 56 | 0.695817 |
ac2238f891596a4182af0974b8df069967611d34 | 9,680 | ex | Elixir | lib/mapper/gujarati.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | lib/mapper/gujarati.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | 1 | 2020-07-16T09:38:33.000Z | 2020-07-16T09:38:33.000Z | lib/mapper/gujarati.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | defmodule Exconv.Mapper.Gujarati do
def to_unicode(250), do: 2799 # <<224, 171, 175>> | "૯"
def to_unicode(249), do: 2798 # <<224, 171, 174>> | "૮"
def to_unicode(248), do: 2797 # <<224, 171, 173>> | "૭"
def to_unicode(247), do: 2796 # <<224, 171, 172>> | "૬"
def to_unicode(246), do: 2795 # <<224, 171, 171>> ... | 50.947368 | 58 | 0.527376 |
ac224ac13087046b2b4332522fc9ec11697144d9 | 583 | exs | Elixir | test/views/error_view_test.exs | Juanchote/elixir-phoenix | d00411c8b30ea5fafca00f95d58f258a025c9338 | [
"MIT"
] | 8 | 2016-09-16T15:03:51.000Z | 2019-06-19T02:25:57.000Z | test/views/error_view_test.exs | Juanchote/elixir-phoenix | d00411c8b30ea5fafca00f95d58f258a025c9338 | [
"MIT"
] | 13 | 2016-08-09T01:32:04.000Z | 2020-01-27T14:11:45.000Z | test/views/error_view_test.exs | Juanchote/elixir-phoenix | d00411c8b30ea5fafca00f95d58f258a025c9338 | [
"MIT"
] | 13 | 2016-08-03T21:11:32.000Z | 2019-07-04T15:33:57.000Z | defmodule HelloWorld.ErrorViewTest do
use HelloWorld.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(HelloWorld.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
ac2250315558fe3216178ab50c95ac7869c452c0 | 2,478 | exs | Elixir | config/test.exs | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | 1 | 2022-02-09T23:17:09.000Z | 2022-02-09T23:17:09.000Z | config/test.exs | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | config/test.exs | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
#
# since we are not in a module an anonymous function will do.. (we need a fallback empty string)
#
database_url_env = fn url ->
env =
url
|> System.get_env()
env || ""
end
# Configure the database_url for postgres
pg_database_url =
"PG_DATABASE_URL"
|> database_url_env.()
|> String.... | 28.159091 | 121 | 0.728814 |
ac2252f4297d2ad0e07e673ff12a840ffb05f196 | 3,126 | ex | Elixir | lib/plug_session_redis/store.ex | bizlaunchequity/plug_session_redis | e6cb52896507bc604d07dba581c82cee369da382 | [
"MIT"
] | null | null | null | lib/plug_session_redis/store.ex | bizlaunchequity/plug_session_redis | e6cb52896507bc604d07dba581c82cee369da382 | [
"MIT"
] | null | null | null | lib/plug_session_redis/store.ex | bizlaunchequity/plug_session_redis | e6cb52896507bc604d07dba581c82cee369da382 | [
"MIT"
] | null | null | null | defmodule PlugSessionRedis.Store do
@moduledoc """
To configure and install, add in your plug pipeline code like the following:
```
plug Plug.Session,
store: PlugSessionRedis.Store,
key: "_my_app_key", # Cookie name where the id is stored
table: :redis_sessions, # Name of pool... | 34.733333 | 123 | 0.650032 |
ac226e02c260a7cb05a7e91ddc6f7a09e7013e40 | 1,445 | ex | Elixir | elixir/lib/echo.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | elixir/lib/echo.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | elixir/lib/echo.ex | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | defmodule EchoServer do
use GenServer
@moduledoc false
def start_link(opts \\ []) do
ip = Keyword.get(opts, :ip, {127, 0, 0, 1})
port = Keyword.get(opts, :port, 0)
GenServer.start_link(__MODULE__, {ip, port})
end
def init({ip, port}) do
opts = [:binary, ip: ip, packet: :raw, active: false]
... | 21.25 | 57 | 0.568858 |
ac227c6c8c113577ecb8e6bf6c41ccec16a99df1 | 2,009 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/crop_hint.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/crop_hint.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/crop_hint.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... | 36.527273 | 167 | 0.719761 |
ac22977e227c23abc83197adf7c002716b61336f | 2,950 | exs | Elixir | test/transaction_test.exs | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 4 | 2018-04-20T15:39:27.000Z | 2019-04-16T08:40:27.000Z | test/transaction_test.exs | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 2 | 2018-03-20T02:41:46.000Z | 2018-04-12T12:43:45.000Z | test/transaction_test.exs | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 1 | 2018-04-01T07:46:44.000Z | 2018-04-01T07:46:44.000Z | defmodule BigchaindbExTransactionTest do
use BigchaindbEx.TestCase
alias BigchaindbEx.{Transaction, Crypto}
test "prepare/1 CREATE - should ok" do
{pub, _} = Crypto.generate_keypair
result1 = Transaction.prepare(operation: "CREATE", signers: [pub], asset: %{data: %{bicycle: %{serial_no: 232134, manufactu... | 33.908046 | 166 | 0.634237 |
ac22c796a887dfce90d09eec73cf870ed3c8014e | 2,551 | ex | Elixir | lib/who_web/presenters/bill_presenter.ex | ryancharris/who | 187a207576240d07e338a1707e5a8eba2e2852d5 | [
"MIT"
] | 1 | 2017-08-08T13:22:23.000Z | 2017-08-08T13:22:23.000Z | lib/who_web/presenters/bill_presenter.ex | ryancharris/who | 187a207576240d07e338a1707e5a8eba2e2852d5 | [
"MIT"
] | null | null | null | lib/who_web/presenters/bill_presenter.ex | ryancharris/who | 187a207576240d07e338a1707e5a8eba2e2852d5 | [
"MIT"
] | null | null | null | defmodule WhoWeb.BillPresenter do
@moduledoc """
Takes in and processes data having to do with a given
Bill and returns an object containing the aforementioned info.
WhoWeb.BillPresenter.new()
"""
@type t :: %__MODULE__{
bill_id: String.t(),
number: String.t(),
title: String.t(),
sum... | 24.76699 | 68 | 0.625637 |
ac22f772b63433afb44e32ad3716b96f8ec3f115 | 7,477 | exs | Elixir | lib/elixir/test/elixir/io/ansi/docs_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/io/ansi/docs_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/io/ansi/docs_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule IO.ANSI.DocsTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
def format_heading(str) do
capture_io(fn -> IO.ANSI.Docs.print_heading(str, []) end) |> String.rstrip
end
def format(str) do
capture_io(fn -> IO.ANSI.Docs.print(str,... | 30.518367 | 94 | 0.604654 |
ac23021f6437c4df52f5e44b5df6a484a95d6f27 | 3,016 | exs | Elixir | test/grakn/graql_test.exs | liveforeverx/grakn_elixir | e64745fb200dd64956396c33b986b94706556ab4 | [
"MIT"
] | 1 | 2019-04-25T18:12:23.000Z | 2019-04-25T18:12:23.000Z | test/grakn/graql_test.exs | liveforeverx/grakn_elixir | e64745fb200dd64956396c33b986b94706556ab4 | [
"MIT"
] | null | null | null | test/grakn/graql_test.exs | liveforeverx/grakn_elixir | e64745fb200dd64956396c33b986b94706556ab4 | [
"MIT"
] | null | null | null | defmodule Grakn.GraqlTest do
use ExUnit.Case
use Grakn.Graql
test "define an attribute" do
%{graql: graql} = defschema("att", sub: :attribute)
assert graql === "define att sub attribute;"
end
test "define an attribute with datatype" do
%{graql: graql} = defschema("att", sub: :attribute, datatype... | 30.464646 | 129 | 0.598143 |
ac2330b2b78b22c11c6b51bcae1fa6fafb901e8a | 6,059 | ex | Elixir | server/lib/tic_tac_toe/session.ex | GenericJam/tic-tac-toe | 897e9b8f1cbb95947ed8163baa161a2d65a4800c | [
"MIT"
] | null | null | null | server/lib/tic_tac_toe/session.ex | GenericJam/tic-tac-toe | 897e9b8f1cbb95947ed8163baa161a2d65a4800c | [
"MIT"
] | null | null | null | server/lib/tic_tac_toe/session.ex | GenericJam/tic-tac-toe | 897e9b8f1cbb95947ed8163baa161a2d65a4800c | [
"MIT"
] | null | null | null | defmodule TicTacToe.Session do
require Logger
use GenServer, restart: :transient
@type t :: %__MODULE__{
session_id: String.t() | nil,
game: TicTacToe.Game.t() | nil,
player_x: String.t() | nil,
player_o: String.t() | nil,
stats: %{optional(String.t()) => integer... | 24.730612 | 97 | 0.605545 |
ac233d6c511ec6f70cf7c59230174938416910b8 | 1,031 | ex | Elixir | squitter/lib/squitter/site.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 34 | 2017-08-30T02:29:41.000Z | 2021-05-29T20:21:43.000Z | squitter/lib/squitter/site.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 7 | 2017-09-12T05:27:23.000Z | 2020-01-06T22:07:52.000Z | squitter/lib/squitter/site.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 9 | 2017-09-11T22:17:55.000Z | 2022-01-31T03:07:58.000Z | defmodule Squitter.Site do
use GenServer
# Somewhere in Kansas
@default_location [40.7950914, -98.9153411]
# NM
@default_range_limit 300
def start_link(location, range_limit) do
GenServer.start_link(__MODULE__, [location, range_limit], name: __MODULE__)
end
def init([location, range_limit]) do
... | 24.547619 | 98 | 0.71096 |
ac23673731a7efb25f0a9172a39d487f650bef23 | 1,063 | ex | Elixir | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/NotQualifiedNoArgumentsCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/NotQualifiedNoArgumentsCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/NotQualifiedNoArgumentsCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | not @one[two].three do end
not @one[two].three.four do end
not @one.two do end
not @one.two.three do end
not one()().two do end
not one()().two.three do end
not one[two].three do end
not one[two].three.four do end
not one.two do end
not one.two.three do end
not @1.two do end
not @1.two.three do end
not &1.two do ... | 15.185714 | 31 | 0.652869 |
ac2371882b951e222409ad2d97e414bb388d0de6 | 2,114 | ex | Elixir | lib/web/router.ex | olafura/accent | b081bd96a816f5ffd79a1b28cd5ba022d5eda803 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | lib/web/router.ex | queer/accent | 43a0ab8b43c99a8f8b3bde7020eb615c39037ad5 | [
"BSD-3-Clause"
] | null | null | null | lib/web/router.ex | queer/accent | 43a0ab8b43c99a8f8b3bde7020eb615c39037ad5 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Router do
use Phoenix.Router
use Sentry.Phoenix.Endpoint
pipeline :graphql do
plug(Accent.Plugs.AssignCurrentUser)
plug(Accent.Plugs.SentryUserContext)
plug(Accent.Plugs.BotParamsInjector)
plug(Accent.Plugs.GraphQLContext)
end
forward("/graphiql", Absinthe.Plug.GraphiQL, sch... | 28.958904 | 90 | 0.695837 |
ac237cca6dafe3c0043defb4cf78895f36d01e0b | 495 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/free_style_projectactions.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/free_style_projectactions.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/free_style_projectactions.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.FreeStyleProjectactions do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class"
]
@type t :: %__... | 19.038462 | 91 | 0.70303 |
ac238418d48caf60b1beea50659183c8413c0b24 | 552 | exs | Elixir | mix.exs | dominicletz/mix_rebar3 | 0e1ad73c618e1f5040d663fc6c666a116bd5f88a | [
"Apache-2.0"
] | 1 | 2021-01-27T11:37:42.000Z | 2021-01-27T11:37:42.000Z | mix.exs | dominicletz/mix_rebar3 | 0e1ad73c618e1f5040d663fc6c666a116bd5f88a | [
"Apache-2.0"
] | 1 | 2020-12-05T15:10:00.000Z | 2020-12-06T13:03:11.000Z | mix.exs | dominicletz/mix_rebar3 | 0e1ad73c618e1f5040d663fc6c666a116bd5f88a | [
"Apache-2.0"
] | 1 | 2020-11-30T13:35:37.000Z | 2020-11-30T13:35:37.000Z | defmodule MixRebar3.MixProject do
use Mix.Project
def project do
[
app: :mix_rebar3,
version: "0.2.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
description: "mix_rebar3 is a rebar3 compiler for your mix project",
package: [
... | 19.034483 | 74 | 0.556159 |
ac23f03fa4df5100e7a01ac701c977a008fcf86c | 983 | exs | Elixir | mix.exs | cocoa-xu/otter | 027a7759bce3ee90fe5a003df8054a76d8e0a1c4 | [
"Apache-2.0"
] | 12 | 2022-02-11T19:48:35.000Z | 2022-03-17T23:13:59.000Z | mix.exs | cocoa-xu/otter | 027a7759bce3ee90fe5a003df8054a76d8e0a1c4 | [
"Apache-2.0"
] | 3 | 2022-02-12T11:24:54.000Z | 2022-03-04T14:12:10.000Z | mix.exs | cocoa-xu/otter | 027a7759bce3ee90fe5a003df8054a76d8e0a1c4 | [
"Apache-2.0"
] | 2 | 2022-02-12T09:33:18.000Z | 2022-02-12T09:34:33.000Z | defmodule Otter.MixProject do
use Mix.Project
@github_url "https://github.com/cocoa-xu/otter"
def project do
[
app: :otter,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
compilers: [:elixir_make] ++ Mix.compilers(),
description: description(),
... | 20.479167 | 76 | 0.557477 |
ac23f233116a6a7c44849455679b53197aca927d | 136 | ex | Elixir | elixir/langxpay/lib/langxpay.ex | ednailson/languages-experiments | 309a0360c6c26a3c95f3c8e25fe37bc7a5cbb8d4 | [
"MIT"
] | null | null | null | elixir/langxpay/lib/langxpay.ex | ednailson/languages-experiments | 309a0360c6c26a3c95f3c8e25fe37bc7a5cbb8d4 | [
"MIT"
] | null | null | null | elixir/langxpay/lib/langxpay.ex | ednailson/languages-experiments | 309a0360c6c26a3c95f3c8e25fe37bc7a5cbb8d4 | [
"MIT"
] | null | null | null | defmodule Langxpay do
alias Langxpay.Users.Create, as: UserCreate
defdelegate create_user(params), to: UserCreate, as: :call
end
| 17 | 60 | 0.764706 |
ac2421d9355e1f690f5fa1432d25b027a780dcf8 | 248 | ex | Elixir | lib/hammox/cache.ex | SophisticaSean/hammox | 24b557f73e1484f184230cc4d8a9e6bc4100d228 | [
"Apache-2.0"
] | null | null | null | lib/hammox/cache.ex | SophisticaSean/hammox | 24b557f73e1484f184230cc4d8a9e6bc4100d228 | [
"Apache-2.0"
] | null | null | null | lib/hammox/cache.ex | SophisticaSean/hammox | 24b557f73e1484f184230cc4d8a9e6bc4100d228 | [
"Apache-2.0"
] | null | null | null | defmodule Hammox.Cache do
@moduledoc false
def put(key, value) do
:persistent_term.put(key, value)
end
def get(key) do
# telemetry for this function is FAR too expensive (1000x slower)
:persistent_term.get(key, nil)
end
end
| 19.076923 | 69 | 0.701613 |
ac244a17488e072b75f5b822120e55e621b8c74e | 3,275 | exs | Elixir | test/ecto_psql_extras_test.exs | szTheory/ecto_psql_extras | 05a2315b68f6c65e9c1e1cd36a06dc20c1556022 | [
"MIT"
] | null | null | null | test/ecto_psql_extras_test.exs | szTheory/ecto_psql_extras | 05a2315b68f6c65e9c1e1cd36a06dc20c1556022 | [
"MIT"
] | null | null | null | test/ecto_psql_extras_test.exs | szTheory/ecto_psql_extras | 05a2315b68f6c65e9c1e1cd36a06dc20c1556022 | [
"MIT"
] | null | null | null | defmodule EctoPSQLExtrasTest do
use ExUnit.Case, async: true
import EctoPSQLExtras
@optional_queries %{
calls: EctoPSQLExtras.Calls,
calls_legacy: EctoPSQLExtras.CallsLegacy,
outliers: EctoPSQLExtras.Outliers,
outliers_legacy: EctoPSQLExtras.OutliersLegacy
}
test "all queries define info" d... | 31.490385 | 101 | 0.633893 |
ac24a45ebbebecb430854a3c72b821aafb3bfab2 | 220 | ex | Elixir | lib/upman/session.ex | flat235/upman | c480bc102ea20ceb597d261a290e07a1f6fa3e8a | [
"Apache-2.0"
] | 4 | 2018-08-10T20:41:49.000Z | 2018-11-29T15:56:05.000Z | lib/upman/session.ex | flat235/upman | c480bc102ea20ceb597d261a290e07a1f6fa3e8a | [
"Apache-2.0"
] | 6 | 2018-06-11T16:03:12.000Z | 2020-04-06T00:08:15.000Z | lib/upman/session.ex | flat235/upman | c480bc102ea20ceb597d261a290e07a1f6fa3e8a | [
"Apache-2.0"
] | null | null | null | defmodule Upman.Session do
@spec logged_in(Plug.Conn.t()) :: boolean()
def logged_in(conn) do
!!Plug.Conn.get_session(conn, :logged_in)
end
def user(conn) do
Plug.Conn.get_session(conn, :user)
end
end
| 20 | 45 | 0.686364 |
ac24aa729619518be6ded7ce4f3b072bbf889406 | 57,747 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/beacons.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/beacons.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/beacons.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.082431 | 196 | 0.640449 |
ac24bb6c4a622f14ea7ad84ad3baff87b8f58155 | 126 | exs | Elixir | test/lodestoner_ex_test.exs | dkolb/lodestoner_ex | 19371238078d6540f558ad5095f91bc6e47e0547 | [
"MIT"
] | 2 | 2016-11-24T06:35:04.000Z | 2017-06-06T20:24:38.000Z | test/lodestoner_ex_test.exs | dkolb/lodestoner_ex | 19371238078d6540f558ad5095f91bc6e47e0547 | [
"MIT"
] | null | null | null | test/lodestoner_ex_test.exs | dkolb/lodestoner_ex | 19371238078d6540f558ad5095f91bc6e47e0547 | [
"MIT"
] | null | null | null | defmodule LodestonerExTest do
use ExUnit.Case
doctest LodestonerEx
test "the truth" do
assert 1 + 1 == 2
end
end
| 14 | 29 | 0.698413 |
ac24dbe3154bec112090499c1d18a80ba0327465 | 1,286 | exs | Elixir | mix.exs | exAspArk/trot | 8aca10ebd7f0d55928fca2b434166ba4a1050dc9 | [
"Apache-2.0"
] | null | null | null | mix.exs | exAspArk/trot | 8aca10ebd7f0d55928fca2b434166ba4a1050dc9 | [
"Apache-2.0"
] | null | null | null | mix.exs | exAspArk/trot | 8aca10ebd7f0d55928fca2b434166ba4a1050dc9 | [
"Apache-2.0"
] | null | null | null | defmodule Trot.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.trim
def project do
[app: :trot,
version: @version,
elixir: "~> 1.4",
deps: deps(),
name: "Trot",
docs: [main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}",
... | 23.381818 | 70 | 0.51944 |
ac24f1cc391dd5a63ce4f39dd77dcb4634de08c0 | 676 | ex | Elixir | lib/noslib/crypto/login.ex | deva-hub/Noslib | ad4d50915ad7aa8edeaaeadb85e3b1e3fe9b4750 | [
"MIT"
] | null | null | null | lib/noslib/crypto/login.ex | deva-hub/Noslib | ad4d50915ad7aa8edeaaeadb85e3b1e3fe9b4750 | [
"MIT"
] | null | null | null | lib/noslib/crypto/login.ex | deva-hub/Noslib | ad4d50915ad7aa8edeaaeadb85e3b1e3fe9b4750 | [
"MIT"
] | null | null | null | defmodule NosLib.Crypto.Login do
@moduledoc """
This module provides a set of functions used for decoding and encoding Gateway
packets.
"""
use Bitwise, only_operators: true
@spec encrypt(binary) :: binary
def encrypt(data) do
<<encrypt_payload(data)::binary, 0x19::8>>
end
@spec decrypt(binary) ... | 22.533333 | 80 | 0.58432 |
ac2509de8e13d91132b20d739b6a9ab452a06927 | 450 | ex | Elixir | lib/gituser/user/inputs/create_user.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser/user/inputs/create_user.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser/user/inputs/create_user.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | defmodule Gituser.User.Inputs.CreateUser do
@moduledoc """
This module contains the inputs for the validate a user before its created.
"""
use Gituser.EmbeddedSchema
@required [:password]
embedded_schema do
field :password, :string
end
@doc false
def changeset(model \\ %__MODULE__{}, params) do... | 21.428571 | 77 | 0.693333 |
ac250ffdd6a8509ed28f2c47ad6d409d04757303 | 4,070 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/site_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/site_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/site_settings.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 58.142857 | 694 | 0.765602 |
ac25372893c43f16901749a89dc1acfd7352762a | 1,130 | exs | Elixir | apps/site/test/site_web/plugs/date_time_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/site_web/plugs/date_time_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/site_web/plugs/date_time_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.Plugs.DateTimeTest do
use SiteWeb.ConnCase, async: true
import SiteWeb.Plugs.DateTime
@now ~N[2016-01-01T00:00:00]
def now_fn do
@now
end
describe "init/1" do
test "defaults to Util.now/0" do
assert init([]) == [now_fn: &Util.now/0]
end
end
describe "call/2" do
... | 25.111111 | 90 | 0.602655 |
ac256858313f90be62f8bff964e19e7e86b17e6d | 2,189 | exs | Elixir | test/hmac_auth_ex/plug_test.exs | zvkemp/hmac_auth_ex | 8d6f4e68400807c01e9e6a8091ef308fe1f7d694 | [
"MIT"
] | 1 | 2021-05-11T18:34:46.000Z | 2021-05-11T18:34:46.000Z | test/hmac_auth_ex/plug_test.exs | zvkemp/hmac_auth_ex | 8d6f4e68400807c01e9e6a8091ef308fe1f7d694 | [
"MIT"
] | null | null | null | test/hmac_auth_ex/plug_test.exs | zvkemp/hmac_auth_ex | 8d6f4e68400807c01e9e6a8091ef308fe1f7d694 | [
"MIT"
] | null | null | null | defmodule HMACAuth.PlugTest do
use ExUnit.Case, async: true
use Plug.Test
def sign_request(conn, key, secret \\ nil) do
{:ok, data, _} = Plug.Conn.read_body(conn)
request_id = "#{key}-#{:crypto.strong_rand_bytes(16) |> Base.encode16}"
signature = HMACAuth.sign(%{
secret: secret || Application.g... | 34.203125 | 131 | 0.649155 |
ac2579f56d9b2b73412554cf59a970193b6c0eb7 | 541 | exs | Elixir | apps/speedrun_blogengine/priv/repo/seeds.exs | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | 11 | 2021-04-12T18:32:30.000Z | 2021-04-23T04:29:48.000Z | apps/speedrun_blogengine/priv/repo/seeds.exs | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:14:50.000Z | 2021-09-18T01:14:50.000Z | apps/speedrun_blogengine/priv/repo/seeds.exs | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | 11 | 2021-04-13T15:01:36.000Z | 2021-04-19T19:04:47.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# SpeedrunBlogengine.Repo.insert!(%SpeedrunBlogengine.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# a... | 27.05 | 71 | 0.719039 |
ac259154c61ed108defd3ca876b56e07b7e8b2cc | 1,271 | exs | Elixir | apps/e2e/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/e2e/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/e2e/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule E2E.MixProject do
use Mix.Project
def project do
[
app: :e2e,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.8",
start_permanent: Mix.env() == :pro... | 23.981132 | 59 | 0.546814 |
ac2594ae6d737d23cb65562dbd7a2b356f22750d | 132 | ex | Elixir | web/views/project_view.ex | dmccown/kanban | bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72 | [
"MIT"
] | 1 | 2020-06-30T11:42:09.000Z | 2020-06-30T11:42:09.000Z | web/views/project_view.ex | dmccown/kanban | bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72 | [
"MIT"
] | null | null | null | web/views/project_view.ex | dmccown/kanban | bf955b2b1f30176c3380b2ee7e1c5ba1174b8d72 | [
"MIT"
] | null | null | null | defmodule Kanban.ProjectView do
use Kanban.View
def csrf_token(conn) do
Plug.Conn.get_session(conn, :csrf_token)
end
end
| 16.5 | 44 | 0.75 |
ac259d1db3ce7613054decd22881b1697e5717e5 | 100,911 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.847796 | 607 | 0.61694 |
ac25c72d08d91584ed46aa4613563247e7b201ec | 283 | exs | Elixir | priv/repo/migrations/20200307054201_create_groups_users.exs | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200307054201_create_groups_users.exs | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | 5 | 2020-09-09T01:41:39.000Z | 2021-05-11T00:18:38.000Z | priv/repo/migrations/20200307054201_create_groups_users.exs | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | null | null | null | defmodule WeReports.Repo.Migrations.CreateGroupsUsers do
use Ecto.Migration
def change do
create table(:groups_users) do
add :group_id, references(:groups)
add :user_id, references(:users)
end
create index(:groups_users, [:group_id, :user_id])
end
end
| 23.583333 | 56 | 0.713781 |
ac25e215915dfbb44e8dc9abd57813b1288b1b2d | 6,803 | ex | Elixir | core/handler/websocket_state.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/handler/websocket_state.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/handler/websocket_state.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Handler.WebsocketState do
alias Antikythera.{Time, Conn, Context, ErrorReason}
alias Antikythera.Websocket
alias Antikythera.Websocket.{Frame, FrameList}
alias Antikythera.Context.GearEntryPoint
alias Antikyth... | 46.59589 | 132 | 0.628693 |
ac25f89f6cae9e6b3462f936f75a9c8d02db7e63 | 807 | ex | Elixir | lib/faktory_worker/push_pipeline/consumer.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 13 | 2020-02-12T20:29:33.000Z | 2021-04-17T10:18:00.000Z | lib/faktory_worker/push_pipeline/consumer.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 51 | 2020-02-01T05:22:15.000Z | 2021-11-03T15:46:02.000Z | lib/faktory_worker/push_pipeline/consumer.ex | MValle21/faktory_worker | 47a2224778f7ff45800bff3cb2dd3de283f9cbd9 | [
"MIT"
] | 4 | 2020-10-26T17:21:59.000Z | 2021-04-17T18:05:10.000Z | defmodule FaktoryWorker.PushPipeline.Consumer do
@moduledoc false
alias FaktoryWorker.Telemetry
alias FaktoryWorker.{ConnectionManager, Pool}
@behaviour Broadway
@default_timeout 5000
@impl true
def handle_message(_processor_name, message, _context), do: message
@impl true
def handle_batch(_, [%{... | 23.735294 | 83 | 0.674102 |
ac260238663263e4503e1982c235fd4513c765a6 | 796 | exs | Elixir | lib/iex/mix.exs | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/iex/mix.exs | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/iex/mix.exs | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Mixfile do
use Mix.Project
def project do
[app: :iex, version: System.version]
end
def application do
[ env: [
after_spawn: [],
colors: colors,
inspect: [limit: 50, records: true, pretty: true],
history_size: 20 ] ]
end
defp colors do
[ enabled: t... | 20.947368 | 58 | 0.590452 |
ac260edd4bf3508ef3074af144e3c6406fe3b467 | 19,763 | exs | Elixir | test/ex_doc/formatter/html/templates_test.exs | wmnnd/ex_doc | c287e821b56b7c58052ef26be891519e68b3dd11 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/templates_test.exs | wmnnd/ex_doc | c287e821b56b7c58052ef26be891519e68b3dd11 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/templates_test.exs | wmnnd/ex_doc | c287e821b56b7c58052ef26be891519e68b3dd11 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.TemplatesTest do
use ExUnit.Case, async: true
alias ExDoc.Formatter.HTML
alias ExDoc.Formatter.HTML.Templates
@empty_nodes_map %{modules: [], exceptions: [], protocols: [], tasks: []}
defp source_url do
"https://github.com/elixir-lang/elixir"
end
defp homepage_url do... | 38.980276 | 218 | 0.577392 |
ac2621afb0401b7130f8ee74369a137ddab946c2 | 1,868 | ex | Elixir | lib/nudge_web.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | null | null | null | lib/nudge_web.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | 17 | 2021-08-04T12:44:20.000Z | 2021-09-09T07:25:00.000Z | lib/nudge_web.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | null | null | null | defmodule NudgeWeb 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 NudgeWeb, :controller
use NudgeWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 22.780488 | 76 | 0.681478 |
ac263c4dde1b4f32bda22df993856c267d3b0f5e | 2,711 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/log_descriptor.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/log_descriptor.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/log_descriptor.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... | 48.410714 | 295 | 0.736629 |
ac26566ebfc646f71af6875970fb71c490886a31 | 1,179 | exs | Elixir | mix.exs | queer/singyeong_plugin | 5b38a82a5ed881d9fd6c762f14fc718a20faa8f8 | [
"MIT"
] | 2 | 2019-11-08T05:10:51.000Z | 2022-02-17T06:21:21.000Z | mix.exs | queer/singyeong_plugin | 5b38a82a5ed881d9fd6c762f14fc718a20faa8f8 | [
"MIT"
] | 32 | 2020-05-19T11:25:21.000Z | 2022-03-23T11:56:44.000Z | mix.exs | queer/singyeong_plugin | 5b38a82a5ed881d9fd6c762f14fc718a20faa8f8 | [
"MIT"
] | null | null | null | defmodule SingyeongPlugin.MixProject do
use Mix.Project
@version "0.1.2"
@repo_url "https://github.com/queer/singyeong_plugin"
def project do
[
app: :singyeong_plugin,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
p... | 22.245283 | 87 | 0.541137 |
ac2665288fae632bd53d5f6b93cb1e71be9a80ee | 979 | ex | Elixir | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/test/support/channel_case.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/test/support/channel_case.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/test/support/channel_case.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | defmodule {{MODULE_NAME}}Endpoint.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case... | 25.763158 | 77 | 0.711951 |
ac26686d5a9b05b1c9d8f45e10d44a4c9ede7e52 | 5,959 | ex | Elixir | lib/oled_virtual/display/server.ex | PhillippOhlandt/oled_virtual | e5ddc2e3ef1aae785ce2f4b27b323ae5d6b06a8e | [
"MIT"
] | 1 | 2022-01-18T09:47:13.000Z | 2022-01-18T09:47:13.000Z | lib/oled_virtual/display/server.ex | PhillippOhlandt/oled_virtual | e5ddc2e3ef1aae785ce2f4b27b323ae5d6b06a8e | [
"MIT"
] | null | null | null | lib/oled_virtual/display/server.ex | PhillippOhlandt/oled_virtual | e5ddc2e3ef1aae785ce2f4b27b323ae5d6b06a8e | [
"MIT"
] | null | null | null | defmodule OLEDVirtual.Display.Server do
@moduledoc false
alias OLEDVirtual.Config
alias OLED.Display.Impl.SSD1306.Draw
@doc false
def start_link(config, opts \\ []) do
GenServer.start_link(__MODULE__, config, opts)
end
@doc false
def init(config) do
case Config.validate(config) do
:ok -... | 26.602679 | 87 | 0.629971 |
ac266f09332e7e445c8ffa5eb93d6c7f3898bbeb | 1,872 | ex | Elixir | lib/ex_oauth2_provider/oauth2/token/utils/response.ex | aidanranney/ex_oauth2_provider | b6ab9c37d39430cd220b2be9794502111c05585c | [
"MIT"
] | 161 | 2017-02-27T19:29:17.000Z | 2021-12-22T12:29:14.000Z | lib/ex_oauth2_provider/oauth2/token/utils/response.ex | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 54 | 2017-03-23T21:05:03.000Z | 2022-02-22T00:16:59.000Z | lib/ex_oauth2_provider/oauth2/token/utils/response.ex | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 49 | 2017-02-26T22:38:34.000Z | 2022-03-07T19:17:03.000Z | defmodule ExOauth2Provider.Token.Utils.Response do
@moduledoc false
alias ExOauth2Provider.Config
@doc false
@spec response({:ok, map()} | {:error, map()}, keyword()) :: {:ok, map()} | {:error, map(), atom()}
def response({:ok, %{access_token: token}}, config), do: build_response(%{access_token: token}, con... | 43.534884 | 122 | 0.659188 |
ac266fc21acea057a3501fd14d6bd8befabb9506 | 17,992 | ex | Elixir | lib/commanded/aggregates/aggregate.ex | MainShayne233/commanded | dd9662718b4505ebeaaf3bf80d4c3ea3e6142fd5 | [
"MIT"
] | null | null | null | lib/commanded/aggregates/aggregate.ex | MainShayne233/commanded | dd9662718b4505ebeaaf3bf80d4c3ea3e6142fd5 | [
"MIT"
] | null | null | null | lib/commanded/aggregates/aggregate.ex | MainShayne233/commanded | dd9662718b4505ebeaaf3bf80d4c3ea3e6142fd5 | [
"MIT"
] | null | null | null | defmodule Commanded.Aggregates.Aggregate do
@moduledoc """
Aggregate is a `GenServer` process used to provide access to an
instance of an event sourced aggregate.
It allows execution of commands against an aggregate instance, and handles
persistence of created events to the configured event store. Concurrent... | 31.900709 | 118 | 0.685916 |
ac2678edfad438c035fbb605a114abc691b1af8b | 3,450 | ex | Elixir | lib/job_board/http_client/connection.ex | ElixirVietnam/job_board | cc42a16e70f06572e19d7a1876e896627f90a08a | [
"MIT"
] | 2 | 2019-03-05T12:34:25.000Z | 2020-01-13T22:03:01.000Z | lib/job_board/http_client/connection.ex | ElixirVietnam/job_board | cc42a16e70f06572e19d7a1876e896627f90a08a | [
"MIT"
] | 2 | 2019-04-05T06:24:58.000Z | 2019-04-05T08:28:33.000Z | lib/job_board/http_client/connection.ex | ElixirVietnam/job_board | cc42a16e70f06572e19d7a1876e896627f90a08a | [
"MIT"
] | 2 | 2019-04-05T07:06:16.000Z | 2019-10-12T07:07:44.000Z | defmodule JobBoard.HTTPClient.Connection do
use Connection
require Logger
defstruct [:endpoint_uri, :conn, :ref, request: %{}]
def start_link(endpoint) when is_binary(endpoint) do
Connection.start_link(__MODULE__, URI.parse(endpoint))
end
def request(pid, method, path, headers, body) do
Connecti... | 30.530973 | 94 | 0.629275 |
ac26c4f57b9e3ae20ba0d1acd2771113ae990f99 | 2,811 | ex | Elixir | apps/neoscan/lib/neoscan/helpers/helpers.ex | naetkss/neo-scan | ecfdffc3e8fca21adad2d292c056f3ba557c42be | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoscan/lib/neoscan/helpers/helpers.ex | solohin/neo-scan | 2aa6dfdb0346b108a20463efe1dcd8bbb00cbc0e | [
"MIT"
] | null | null | null | apps/neoscan/lib/neoscan/helpers/helpers.ex | solohin/neo-scan | 2aa6dfdb0346b108a20463efe1dcd8bbb00cbc0e | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule Neoscan.Helpers do
@moduledoc false
@doc """
Populates tuples {address_hash, vins} with {%Adddress{}, vins}
## Examples
iex> populate_groups(groups})
[{%Address{}, _},...]
"""
def populate_groups(groups, address_list) do
Enum.map(groups, fn {address, vins} ->
{
En... | 21.295455 | 94 | 0.611526 |
ac26c7c10fa05bc442f51b3ddd4e64962c02a7de | 419 | ex | Elixir | lib/mockin_web/views/error_view.ex | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | lib/mockin_web/views/error_view.ex | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | lib/mockin_web/views/error_view.ex | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | defmodule MockinWeb.ErrorView do
use MockinWeb, :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.277778 | 49 | 0.682578 |
ac26ef21dd47ac9786dd23bf7f05f842ae7c3e3d | 6,250 | exs | Elixir | test/ketbin_web/controllers/user_auth_test.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 4 | 2020-08-05T20:05:34.000Z | 2020-10-01T10:01:56.000Z | test/ketbin_web/controllers/user_auth_test.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-07-08T05:02:12.000Z | 2020-09-25T10:05:11.000Z | test/ketbin_web/controllers/user_auth_test.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-08-30T12:59:49.000Z | 2020-08-30T12:59:49.000Z | defmodule KetbinWeb.UserAuthTest do
use KetbinWeb.ConnCase, async: true
alias Ketbin.Accounts
alias KetbinWeb.UserAuth
import Ketbin.AccountsFixtures
@remember_me_cookie "_ketbin_web_user_remember_me"
setup %{conn: conn} do
conn =
conn
|> Map.replace!(:secret_key_base, KetbinWeb.Endpoint.... | 35.91954 | 98 | 0.67424 |
ac26f3b63c1e8f6231e479d74bf86b42e6629a0e | 1,907 | exs | Elixir | clients/life_sciences/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/life_sciences/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/life_sciences/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.462687 | 159 | 0.662297 |
ac27080550b8aa22ecd31cd5b4150f2a59580ed6 | 347 | exs | Elixir | priv/repo/seeds.exs | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Mango.Repo.insert!(%Mango.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
ac272187b36ef6df314f83ec3904911efb324a00 | 175 | exs | Elixir | test/collision/collidable_test.exs | tpoulsen/collision | 6dc6635e9a8623af3d5b88d901903040dc5b046f | [
"BSD-2-Clause"
] | 17 | 2016-08-01T22:10:27.000Z | 2021-03-11T10:43:50.000Z | test/collision/collidable_test.exs | smpoulsen/collision | 6dc6635e9a8623af3d5b88d901903040dc5b046f | [
"BSD-2-Clause"
] | 3 | 2016-08-02T02:15:58.000Z | 2016-08-18T19:29:14.000Z | test/collision/collidable_test.exs | smpoulsen/collision | 6dc6635e9a8623af3d5b88d901903040dc5b046f | [
"BSD-2-Clause"
] | 3 | 2016-08-18T18:48:41.000Z | 2019-04-21T14:21:44.000Z | defmodule CollidableTest do
use ExUnit.Case
use ExCheck
alias Collision.Polygon
alias Collision.Polygon.Edge
alias Collision.Polygon.Vertex
doctest Collidable
end
| 19.444444 | 32 | 0.805714 |
ac27232319172cf2d883517e8b457d74f874132d | 987 | ex | Elixir | seminars/mandelbrot/dist/print.ex | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | seminars/mandelbrot/dist/print.ex | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | seminars/mandelbrot/dist/print.ex | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | defmodule Print do
def start(file, width, height) do
pid = spawn(fn -> init(file, width, height) end)
{:ok, pid}
end
def init(file, width, height) do
{:ok, fd} = File.open(file, [:write])
IO.puts(fd, "P6")
IO.puts(fd, "#generated by ppm.ex")
IO.puts(fd, "#{width} #{height}")
IO.puts(... | 19.74 | 55 | 0.475177 |
ac275dfaa90873f1b14cd26395d9ff5d0976093f | 3,535 | ex | Elixir | lib/probes/schedulers.ex | atlas-forks/instruments | 9df31ecf5388916fbd7a5ebb331ebac371df3e9d | [
"MIT"
] | 99 | 2020-04-05T13:33:21.000Z | 2022-03-31T21:53:08.000Z | lib/probes/schedulers.ex | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 7 | 2020-05-13T15:16:08.000Z | 2022-03-03T01:39:56.000Z | lib/probes/schedulers.ex | Seanpm2001-Discord/instruments | 4e8a34655d5b469567be69ccf3cf2dcdeba798f6 | [
"MIT"
] | 16 | 2021-01-18T23:59:48.000Z | 2022-03-25T12:48:34.000Z | defmodule Instruments.Probes.Schedulers do
@moduledoc """
A probe that reports erlang's internal CPU usage
Any good system monitoring needs to understand how hard the CPU is working. In
an Erlang ecosystem, this can be somewhat challenging becase when an Erlang
system isn't busy, the BEAM vm keeps its schedu... | 30.474138 | 119 | 0.693635 |
ac276765c32a566673cf67f372fa3f9ede207bb9 | 378 | ex | Elixir | lib/phx_crud_users/users/user.ex | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | lib/phx_crud_users/users/user.ex | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | lib/phx_crud_users/users/user.ex | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | defmodule PhxCrudUsers.Users.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :description, :string
field :email, :string
field :name, :string
timestamps()
end
@doc false
def changeset(user, attrs) do
user
|> cast(attrs, [:name, :email, :description])
|> v... | 18.9 | 55 | 0.661376 |
ac279bd5d2633b611bee12d16bcef0382cfeaaff | 3,468 | ex | Elixir | lib/rethink/connection.ex | EddyShure/rethink | 75a00a3cbea1899c75c772c4cc1daa663c9f66a0 | [
"MIT"
] | 1 | 2015-07-04T06:54:01.000Z | 2015-07-04T06:54:01.000Z | lib/rethink/connection.ex | EddyShure/rethink | 75a00a3cbea1899c75c772c4cc1daa663c9f66a0 | [
"MIT"
] | 1 | 2015-04-01T17:07:39.000Z | 2015-04-01T17:07:39.000Z | lib/rethink/connection.ex | EddyShure/rethink | 75a00a3cbea1899c75c772c4cc1daa663c9f66a0 | [
"MIT"
] | null | null | null | defmodule Rethink.Connection do
@moduledoc """
This is the important module.
"""
use GenServer
@debug false
@timeout :infinity
@doc """
You can start the connection with this function without specifying any arguments.
Rethink will then connect to your local RethinkDB instance on the default port.
... | 26.075188 | 137 | 0.633506 |
ac27db2fbfb1acb3e1673858d5421e2a70718853 | 2,019 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_split_apk.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_split_apk.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_split_apk.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.053571 | 174 | 0.707281 |
ac27e80f294f9a295bd86b5e733489bbe0ce1f1b | 63,087 | ex | Elixir | testData/org/elixir_lang/beam/decompiler/diameter_gen_base_accounting.ex | osbre/intellij-elixir | 36ced8c5e4f4cc873b6e21b5c011d42783b54817 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/beam/decompiler/diameter_gen_base_accounting.ex | osbre/intellij-elixir | 36ced8c5e4f4cc873b6e21b5c011d42783b54817 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/beam/decompiler/diameter_gen_base_accounting.ex | osbre/intellij-elixir | 36ced8c5e4f4cc873b6e21b5c011d42783b54817 | [
"Apache-2.0"
] | null | null | null | # Source code recreated from a .beam file by IntelliJ Elixir
defmodule :diameter_gen_base_accounting do
# Functions
def unquote(:"#get-")(diameter_base_accounting_ACR() = rec), do: [:diameter_base_accounting_ACR | apply(__MODULE__, :"#get-diameter_base_accounting_ACR", [rec])]
def unquote(:"#get-")(diameter_ba... | 56.937726 | 607 | 0.723588 |
ac2802cf12c91eb762f828134b8f83c8329ca76a | 12,293 | ex | Elixir | lib/chat_api_web/controllers/slack_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/slack_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/slack_controller.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.SlackController do
use ChatApiWeb, :controller
require Logger
alias ChatApiWeb.SlackAuthorizationView
alias ChatApi.{Conversations, Slack, SlackAuthorizations}
alias ChatApi.SlackAuthorizations.SlackAuthorization
action_fallback(ChatApiWeb.FallbackController)
@spec notify(Plug.Conn... | 35.631884 | 173 | 0.632962 |
ac281554291cb5a14090fe2b909ca2feb67acaa0 | 1,452 | ex | Elixir | lib/cog/commands/rule/info.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/commands/rule/info.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/commands/rule/info.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Commands.Rule.Info do
use Cog.Command.GenCommand.Base,
bundle: Cog.Util.Misc.embedded_bundle,
name: "rule-info"
alias Cog.Commands.Rule, as: RuleCommand
alias Cog.Models.Rule
alias Cog.Repository.Rules
@description "Display a specific rule by ID."
@arguments "<id>"
@output_descri... | 24.610169 | 126 | 0.615702 |
ac282db652b2230c4d41f64f0f8a89b2bbe90ef6 | 3,228 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_type_expr.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_type_expr.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_type_expr.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... | 57.642857 | 1,092 | 0.736989 |
ac28641c525d43f85c7dbc97fde6b2cc7866341e | 3,295 | ex | Elixir | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_longrunning_operation.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_longrunning_operation.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_longrunning_operation.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... | 55.847458 | 543 | 0.731715 |
ac2866819be42ad622c6b09f7b957a2247d16940 | 340 | exs | Elixir | priv/repo/migrations/20200125054005_add_pow_email_confirmation_to_users.exs | BlackBoxSQL/eventr | 4d84c747fba12a53ae16fb674b8293b5ad083ac0 | [
"MIT"
] | 14 | 2019-09-20T04:51:00.000Z | 2019-10-09T07:36:34.000Z | priv/repo/migrations/20200125054005_add_pow_email_confirmation_to_users.exs | BlackBoxSQL/eventr | 4d84c747fba12a53ae16fb674b8293b5ad083ac0 | [
"MIT"
] | 1 | 2021-03-10T05:27:43.000Z | 2021-03-10T05:27:43.000Z | priv/repo/migrations/20200125054005_add_pow_email_confirmation_to_users.exs | BlackBoxSQL/eventr | 4d84c747fba12a53ae16fb674b8293b5ad083ac0 | [
"MIT"
] | 4 | 2019-09-20T06:59:07.000Z | 2019-11-18T14:59:01.000Z | defmodule Speakr.Repo.Migrations.AddPowEmailConfirmationToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :email_confirmation_token, :string
add :email_confirmed_at, :utc_datetime
add :unconfirmed_email, :string
end
create unique_index(:users, [:email_confirmatio... | 24.285714 | 66 | 0.744118 |
ac2877d55e35c7aba69682ce6ebae246206ba8ba | 7,378 | exs | Elixir | test/sanbase/alerts/wallet_movement/trigger_wallet_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | test/sanbase/alerts/wallet_movement/trigger_wallet_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | test/sanbase/alerts/wallet_movement/trigger_wallet_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.Alert.WalletTriggerTest do
use Sanbase.DataCase, async: false
import Mock
import Sanbase.Factory
import ExUnit.CaptureLog
alias Sanbase.Alert.{
UserTrigger,
Trigger.WalletTriggerSettings,
Scheduler
}
alias Sanbase.Clickhouse.HistoricalBalance
setup do
Sanbase.Cache.... | 29.630522 | 123 | 0.609786 |
ac288ef9ed9f04c83e3fa0d6935d861944bbecff | 29,606 | ex | Elixir | lib/ankh/http2.ex | lucacorti/ankh | 4bbac3a362ed8711a4282cf37d4a85e6139136f8 | [
"MIT"
] | 18 | 2016-09-06T20:35:42.000Z | 2020-04-28T12:51:47.000Z | lib/ankh/http2.ex | lucacorti/ankh | 4bbac3a362ed8711a4282cf37d4a85e6139136f8 | [
"MIT"
] | 16 | 2017-11-26T21:59:41.000Z | 2020-08-17T11:27:56.000Z | lib/ankh/http2.ex | lucacorti/ankh | 4bbac3a362ed8711a4282cf37d4a85e6139136f8 | [
"MIT"
] | 1 | 2020-04-24T07:53:00.000Z | 2020-04-24T07:53:00.000Z | defmodule Ankh.HTTP2 do
@moduledoc "HTTP/2 protocol implementation"
alias Ankh.{HTTP2, Protocol, Transport}
alias HPack.Table
alias HTTP2.Frame
alias HTTP2.Frame.Settings
alias HTTP2.Stream, as: HTTP2Stream
@opaque t :: %__MODULE__{
buffer: iodata(),
concurrent_streams: non_neg_i... | 34.108295 | 103 | 0.583902 |
ac28948ed45e3d03e0c54ac2041c78220d55e7e1 | 242 | exs | Elixir | priv/repo/migrations/20170923183104_add_tolerance_to_routine.exs | OpenFermentor/Local-Monitor | 4b356e8ac3f154ec72bdd23b3a501d5f1645241c | [
"MIT"
] | null | null | null | priv/repo/migrations/20170923183104_add_tolerance_to_routine.exs | OpenFermentor/Local-Monitor | 4b356e8ac3f154ec72bdd23b3a501d5f1645241c | [
"MIT"
] | null | null | null | priv/repo/migrations/20170923183104_add_tolerance_to_routine.exs | OpenFermentor/Local-Monitor | 4b356e8ac3f154ec72bdd23b3a501d5f1645241c | [
"MIT"
] | null | null | null | defmodule BioMonitor.Repo.Migrations.AddToleranceToRoutine do
use Ecto.Migration
def change do
alter table(:routines) do
add :temp_tolerance, :float, default: 1.0
add :ph_tolerance, :float, default: 0.5
end
end
end
| 22 | 61 | 0.710744 |
ac289ea4e8b077f2521a49355e50eb8a6e9d5f45 | 371 | ex | Elixir | test/support/adapter_case.ex | mmcc/tesla | 75384470030fb9b44df0e8930371ae8ed081d388 | [
"MIT"
] | null | null | null | test/support/adapter_case.ex | mmcc/tesla | 75384470030fb9b44df0e8930371ae8ed081d388 | [
"MIT"
] | 1 | 2019-10-25T19:27:33.000Z | 2019-10-25T19:27:33.000Z | test/support/adapter_case.ex | mmcc/tesla | 75384470030fb9b44df0e8930371ae8ed081d388 | [
"MIT"
] | 1 | 2020-04-04T03:19:50.000Z | 2020-04-04T03:19:50.000Z | defmodule Tesla.AdapterCase do
defmacro __using__(adapter: adapter) do
quote do
@adapter unquote(adapter)
@http "http://0.0.0.0:#{Application.get_env(:httparrot, :http_port)}"
@https "https://0.0.0.0:#{Application.get_env(:httparrot, :https_port)}"
defp call(env, opts \\ []) do
@a... | 26.5 | 78 | 0.630728 |
ac28b6f9ab27ebfeefd06fd566dd5701de7c212a | 602 | exs | Elixir | mix.exs | UrbanOS-Examples/Xip | 237a12a633af0b11a1cdebef564d200a27e50fb5 | [
"Apache-2.0"
] | null | null | null | mix.exs | UrbanOS-Examples/Xip | 237a12a633af0b11a1cdebef564d200a27e50fb5 | [
"Apache-2.0"
] | null | null | null | mix.exs | UrbanOS-Examples/Xip | 237a12a633af0b11a1cdebef564d200a27e50fb5 | [
"Apache-2.0"
] | null | null | null | defmodule Xip.MixProject do
use Mix.Project
def project do
[
app: :xip,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_application... | 18.8125 | 59 | 0.524917 |
ac28de21890ae30d43905c43e8c82ae40c9f0f6b | 1,878 | ex | Elixir | lib/qr_code/generator_polynomial.ex | botsquad/qr_code | 55fcad19eb56c5f260c8489b7fe85ce2516778d6 | [
"BSD-4-Clause"
] | null | null | null | lib/qr_code/generator_polynomial.ex | botsquad/qr_code | 55fcad19eb56c5f260c8489b7fe85ce2516778d6 | [
"BSD-4-Clause"
] | null | null | null | lib/qr_code/generator_polynomial.ex | botsquad/qr_code | 55fcad19eb56c5f260c8489b7fe85ce2516778d6 | [
"BSD-4-Clause"
] | null | null | null | defmodule QRCode.GeneratorPolynomial do
@moduledoc """
Error correction coding uses polynomial long division. To do that,
two polynomials are needed. The first polynomial to use is called the message
polynomial. The message polynomial uses the data codewords
from the data encoding step as its coefficients. F... | 30.786885 | 79 | 0.665069 |
ac28fa2abff984d71968ea275042384bfaf6cc3b | 298 | ex | Elixir | 2016/day07/lib/day07/aba.ex | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day07/lib/day07/aba.ex | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day07/lib/day07/aba.ex | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | defmodule Day07.Aba do
@moduledoc """
Functions to pick out ABAs from a string.
"""
def aba([x, x, x]), do: []
def aba([x, y, x]), do: [[x, y]]
def aba(_), do: []
def abas(input) do
input
|> to_char_list
|> Enum.chunk(3, 1)
|> Enum.flat_map(&aba/1)
end
end
| 18.625 | 43 | 0.530201 |
ac2905735bea33efe1c89db3706cef97e35440c7 | 248 | ex | Elixir | lib/phone/nanp/us/wv.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/wv.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/wv.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.US.WV do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(304|681)([2-9].{6})$/
def area_name, do: "West Virginia"
def area_type, do: "state"
def area_abbreviation, do: "WV"
matcher ["1304", "1681"]
end
| 19.076923 | 46 | 0.641129 |
ac290db4f24533ca5e368481a89a9b1fbb45b0b1 | 423 | ex | Elixir | test/support/test_types.ex | jdenen/crucible | abe45ff6b8737924ae9b2d34bba15f5fd65e7a9b | [
"Apache-2.0"
] | null | null | null | test/support/test_types.ex | jdenen/crucible | abe45ff6b8737924ae9b2d34bba15f5fd65e7a9b | [
"Apache-2.0"
] | null | null | null | test/support/test_types.ex | jdenen/crucible | abe45ff6b8737924ae9b2d34bba15f5fd65e7a9b | [
"Apache-2.0"
] | 1 | 2018-12-16T15:07:57.000Z | 2018-12-16T15:07:57.000Z | defmodule Grandparent do
@moduledoc false
use Crucible.Type
field(:id)
field(:name)
field(:age)
end
defmodule Parent do
@moduledoc false
use Crucible.Type
field(:id)
field(:name)
field(:parent, relationship: Grandparent)
end
defmodule Child do
@moduledoc false
use Crucible.Type
field(:id)
... | 16.92 | 43 | 0.725768 |
ac2913c3b87245a699d82c16d000db9b33d2400e | 9,521 | ex | Elixir | lib/mix/tasks/hex.outdated.ex | IvanIvanoff/hex | 90aa44fa8a1e59f2ae65f490edb984e4d6c853d1 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.outdated.ex | IvanIvanoff/hex | 90aa44fa8a1e59f2ae65f490edb984e4d6c853d1 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.outdated.ex | IvanIvanoff/hex | 90aa44fa8a1e59f2ae65f490edb984e4d6c853d1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.Outdated do
use Mix.Task
alias Hex.Registry.Server, as: Registry
@shortdoc "Shows outdated Hex deps for the current project"
@moduledoc """
Shows all Hex dependencies that have newer versions in the registry.
mix hex.outdated [APP]
By default, it only shows top-level packag... | 30.0347 | 107 | 0.638063 |
ac292f6c0800ff8c53336cd4b579a9eef9acf350 | 2,381 | ex | Elixir | clients/datastream/lib/google_api/datastream/v1/model/mysql_column.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/datastream/lib/google_api/datastream/v1/model/mysql_column.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/datastream/lib/google_api/datastream/v1/model/mysql_column.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.630769 | 174 | 0.672827 |
ac29348b1e251c69a2504c208ffc616c06dce5bc | 1,119 | ex | Elixir | lib/dialyxir/warnings/apply.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/apply.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/apply.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | defmodule Dialyxir.Warnings.Apply do
@behaviour Dialyxir.Warning
@impl Dialyxir.Warning
@spec warning() :: :apply
def warning(), do: :apply
@impl Dialyxir.Warning
@spec format_short([String.t()]) :: String.t()
def format_short(_) do
"Function application will not succeed."
end
@impl Dialyxir.Wa... | 22.836735 | 100 | 0.655049 |
ac293daed048d0e43b4f05ca04fdf6752dfb5984 | 2,571 | exs | Elixir | test/lib/expublish_test.exs | ucwaldo/expublish | d56a6d93401d0c0491f38437f0159111af11e3c4 | [
"Apache-2.0"
] | 21 | 2021-02-21T15:45:31.000Z | 2022-03-25T10:47:42.000Z | test/lib/expublish_test.exs | ucwaldo/expublish | d56a6d93401d0c0491f38437f0159111af11e3c4 | [
"Apache-2.0"
] | 21 | 2021-02-22T09:31:36.000Z | 2021-12-19T19:39:05.000Z | test/lib/expublish_test.exs | ucwaldo/expublish | d56a6d93401d0c0491f38437f0159111af11e3c4 | [
"Apache-2.0"
] | null | null | null | defmodule ExpublishTest do
use ExUnit.Case
doctest Expublish
import ExUnit.CaptureLog
import Expublish.TestHelper
alias Expublish.Options
alias Expublish.Project
alias Expublish.Semver
setup do
[options: Options.parse(["--dry-run"])]
end
test "major/1 exits on unclean working directory", %{op... | 23.587156 | 75 | 0.638662 |
ac2960ff1edece02bf5a00498f17f86851747fe1 | 1,899 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_metric.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_metric.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_metric.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... | 37.98 | 268 | 0.699842 |
ac2990207c67a05c227a1d27b2e1a5b862368b2b | 263 | exs | Elixir | priv/repo/migrations/20171201073818_add_approval_requested_to_projects.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20171201073818_add_approval_requested_to_projects.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20171201073818_add_approval_requested_to_projects.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.AddApprovalRequestedToProjects do
use Ecto.Migration
def change do
alter table(:projects) do
add :approval_requested, :boolean, default: false
end
create index(:projects, [:approval_requested])
end
end
| 23.909091 | 69 | 0.749049 |
ac29918bd724255126b618d9a2f3e25d9864a8eb | 6,400 | ex | Elixir | apps/omg_performance/lib/sender_manager.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_performance/lib/sender_manager.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_performance/lib/sender_manager.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 34.594595 | 114 | 0.67375 |
ac29a8d18218e906c964eb10fa99b82ae5ea237e | 138 | ex | Elixir | ddd_counter/lib/ddd_counter/mutation_adapter.ex | mwindholtz/unit_tested_live_view_counter | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | null | null | null | ddd_counter/lib/ddd_counter/mutation_adapter.ex | mwindholtz/unit_tested_live_view_counter | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | 1 | 2021-05-10T17:10:32.000Z | 2021-05-10T17:10:32.000Z | ddd_counter/lib/ddd_counter/mutation_adapter.ex | mwindholtz/elixir_unit_testing_example | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | null | null | null | defmodule DddCounter.MutationAdapter do
def inc(val) do
val + 1
end
def dec(val) do
# call a service
val - 1
end
end
| 12.545455 | 39 | 0.630435 |
ac29a93970662c6d67018dd6be29b3ce63b27b49 | 1,944 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/metric_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/metric_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/metric_rule.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... | 38.88 | 331 | 0.736111 |
ac29f43e986e5b25a97ba915e5624ced3897fcfd | 1,757 | exs | Elixir | cryin/mix.exs | Graveyardillon/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | null | null | null | cryin/mix.exs | Graveyardillon/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | 1 | 2020-05-18T13:34:20.000Z | 2020-05-18T13:34:20.000Z | cryin/mix.exs | Papillon6814/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | null | null | null | defmodule Cryin.MixProject do
use Mix.Project
def project do
[
app: :cryin,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
d... | 25.463768 | 79 | 0.558907 |
ac29f612307f53b41e8e1a68cf2aa3bb5a4deb36 | 1,113 | exs | Elixir | config/config.exs | skylerparr/doc_spec | 2b390923483e7ef545e470e4937ec7d216ef8f07 | [
"MIT"
] | null | null | null | config/config.exs | skylerparr/doc_spec | 2b390923483e7ef545e470e4937ec7d216ef8f07 | [
"MIT"
] | null | null | null | config/config.exs | skylerparr/doc_spec | 2b390923483e7ef545e470e4937ec7d216ef8f07 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.903226 | 73 | 0.755615 |
ac2a0524466b8baa47bc84fc8a5e3f4f409967ec | 254 | ex | Elixir | sample_application/lib/application.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | sample_application/lib/application.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | sample_application/lib/application.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | defmodule Sample.Application do
use Application
require KaufmannEx
def start(_type, _args) do
children = [KaufmannEx.Supervisor]
opts = [strategy: :one_for_one, name: Sample.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 21.166667 | 60 | 0.740157 |
ac2a09701051cab8e8b139656d53a3694be8ee13 | 1,561 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/list_delegates_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/list_delegates_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/list_delegates_response.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... | 33.212766 | 152 | 0.743113 |
ac2a3050159a410374581af1090791442400ae6a | 670 | ex | Elixir | lib/bitpal/events/blockchain_events.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/events/blockchain_events.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bitpal/events/blockchain_events.ex | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule BitPal.BlockchainEvents do
alias BitPal.Currencies
alias BitPal.EventHelpers
alias BitPalSchemas.Currency
@type height :: non_neg_integer()
@type msg ::
{:set_block_height, Currency.id(), height}
| {:new_block, Currency.id(), height}
| {:block_reversed, Currency.id(), ... | 25.769231 | 61 | 0.661194 |
ac2a50daa13630d25c1ea6b6da83ebd8cc7e68cf | 7,574 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_organization.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_organization.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_organization.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... | 68.854545 | 943 | 0.705176 |
ac2a7126aaf64a3176e47f2eae98d4e2fb9e3124 | 120 | ex | Elixir | lib/elixatmo/model/user_data.ex | sokkalf/ElixAtmo | 16008ec8d1d9e89d1c7917ce777a3955c2db1f6c | [
"Apache-2.0"
] | 1 | 2018-06-23T10:18:16.000Z | 2018-06-23T10:18:16.000Z | lib/elixatmo/model/user_data.ex | sokkalf/ElixAtmo | 16008ec8d1d9e89d1c7917ce777a3955c2db1f6c | [
"Apache-2.0"
] | null | null | null | lib/elixatmo/model/user_data.ex | sokkalf/ElixAtmo | 16008ec8d1d9e89d1c7917ce777a3955c2db1f6c | [
"Apache-2.0"
] | 1 | 2019-11-27T17:52:05.000Z | 2019-11-27T17:52:05.000Z | defmodule ElixAtmo.Model.UserData do
@fields %{
email: :binary,
password: :binary
}
use SafeExStruct
end
| 13.333333 | 36 | 0.675 |
ac2a783f15bedab960e05e7ab18bd47ae57df4bd | 52,722 | ex | Elixir | lib/codes/codes_i82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_I82 do
alias IcdCode.ICDCode
def _I820 do
%ICDCode{full_code: "I820",
category_code: "I82",
short_code: "0",
full_name: "Budd-Chiari syndrome",
short_name: "Budd-Chiari syndrome",
category_name: "Budd-Chiari syndrome"
}
... | 45.138699 | 124 | 0.669664 |
ac2a992c8ee7f2a41dba17129f9c780799d08eff | 862 | exs | Elixir | test/test_helper.exs | phanmn/nebulex_adapters_cachex | 02a82dc7905cd67130b0fd446b4bf9e42d2fd100 | [
"MIT"
] | 2 | 2020-12-24T11:36:43.000Z | 2020-12-24T13:06:23.000Z | test/test_helper.exs | phanmn/nebulex_adapters_cachex | 02a82dc7905cd67130b0fd446b4bf9e42d2fd100 | [
"MIT"
] | 4 | 2020-12-29T11:20:47.000Z | 2021-05-15T16:13:41.000Z | test/test_helper.exs | phanmn/nebulex_adapters_cachex | 02a82dc7905cd67130b0fd446b4bf9e42d2fd100 | [
"MIT"
] | 1 | 2021-09-28T11:35:01.000Z | 2021-09-28T11:35:01.000Z | # Start Telemetry
Application.start(:telemetry)
# Set nodes
nodes = [:"node1@127.0.0.1", :"node2@127.0.0.1", :"node3@127.0.0.1"]
:ok = Application.put_env(:nebulex_adapters_cachex, :nodes, nodes)
# Nebulex dependency path
nbx_dep_path = Mix.Project.deps_paths()[:nebulex]
for file <- File.ls!("#{nbx_dep_path}/test/su... | 30.785714 | 77 | 0.689095 |
ac2a9d32d5695707b13e74c78539d8a78ea141c8 | 1,687 | ex | Elixir | lib/sealax_web/channels/user_socket.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | lib/sealax_web/channels/user_socket.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | lib/sealax_web/channels/user_socket.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule SealaxWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "item:*", SealaxWeb.ItemChannel
# 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 be set for all channels, ... | 30.125 | 83 | 0.651452 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.