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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73d39580917b056c7d20a2242b10b0c6ac0fb5ec | 1,634 | exs | Elixir | bench/dateformat_bench.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | bench/dateformat_bench.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | bench/dateformat_bench.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule Timex.Timex.Bench do
use Benchfella
use Timex
alias Timex.Parse.DateTime.Tokenizers.Strftime
alias Timex.Parse.DateTime.Tokenizers.Default
@datetime "2014-07-22T12:30:05Z"
@datetime_zoned "2014-07-22T12:30:05+02:00"
setup_all do
Application.ensure_all_started(:tzdata)
... | 29.178571 | 74 | 0.597919 |
73d3a5b0c367ff1245064b6cf06fdd03dbfeca27 | 828 | ex | Elixir | lib/mix_tasks_phoenix_gen_scaffold.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 32 | 2015-01-18T08:41:38.000Z | 2016-12-07T07:11:36.000Z | lib/mix_tasks_phoenix_gen_scaffold.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 5 | 2015-01-31T20:18:43.000Z | 2016-05-03T15:16:30.000Z | lib/mix_tasks_phoenix_gen_scaffold.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 5 | 2015-01-28T06:32:48.000Z | 2016-11-26T18:16:00.000Z | defmodule Mix.Tasks.Phoenix.Gen.Scaffold do
use Mix.Task
import Phoenix.Gen.Utils
@shortdoc "Generate a Controller/Model/View/Template scaffold"
@moduledoc """
Generates a Controller/Model/View/Template scaffold
mix phoenix.gen.scaffold resource_name field_name:field_type
## Command line options
... | 27.6 | 93 | 0.687198 |
73d3ff229485c042d06dc9f0e8f48cdd3817b8ce | 594 | ex | Elixir | apps/man_api/test/support/fixtures_factory.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/test/support/fixtures_factory.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/test/support/fixtures_factory.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | defmodule Man.FixturesFactory do
@moduledoc """
This module provides simple factory to generate fixtures in tests.
"""
alias Man.Templates.API
def create(:template, attrs \\ %{}) do
{:ok, template} =
:template
|> build(attrs)
|> API.create_template()
template
end
def build(fix... | 20.482759 | 90 | 0.611111 |
73d42765099d6da615cf918deb384ffc7b0494c1 | 2,375 | ex | Elixir | lib/worker/branch_deleter.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | null | null | null | lib/worker/branch_deleter.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | lib/worker/branch_deleter.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Worker.BranchDeleter do
@moduledoc """
BranchDeleter controls merged branches removal
if delete_merged_branches is true in bors.toml file.
By default we wait for pull request "closed" event with pr merged flag set.
Also since event arrival is not guaranteed we poll every 5 minutes and
if p... | 26.098901 | 77 | 0.656 |
73d429216c68b37c5bf7cb1ff096f0a1cd23d5bc | 621 | ex | Elixir | hangman/lib/hangman/server.ex | CraigTreptow/elixir-for-programmers | b2a96f12b1dd8621d337e7d15c504f12b079cd3e | [
"MIT"
] | 1 | 2018-10-17T15:13:34.000Z | 2018-10-17T15:13:34.000Z | hangman/lib/hangman/server.ex | CraigTreptow/elixir-for-programmers | b2a96f12b1dd8621d337e7d15c504f12b079cd3e | [
"MIT"
] | null | null | null | hangman/lib/hangman/server.ex | CraigTreptow/elixir-for-programmers | b2a96f12b1dd8621d337e7d15c504f12b079cd3e | [
"MIT"
] | null | null | null | defmodule Hangman.Server do
@moduledoc """
This is documentation for the module
"""
alias Hangman.Game
use GenServer
def start_link( ) do
GenServer.start_link( __MODULE__, nil )
end
def init( _ ) do
# the state of our server is defined by the result of this call
{ :ok, Game.new_game( ) ... | 22.178571 | 67 | 0.626409 |
73d44223f11899636ab5d9d1497d4bcae109957a | 3,419 | exs | Elixir | golden/test/golden_web/live/user_live_test.exs | NduatiK/marker | a0af6f083feba029ae02221b0ab44cfe865c43bb | [
"Apache-2.0"
] | null | null | null | golden/test/golden_web/live/user_live_test.exs | NduatiK/marker | a0af6f083feba029ae02221b0ab44cfe865c43bb | [
"Apache-2.0"
] | null | null | null | golden/test/golden_web/live/user_live_test.exs | NduatiK/marker | a0af6f083feba029ae02221b0ab44cfe865c43bb | [
"Apache-2.0"
] | null | null | null | defmodule GoldenWeb.UserLiveTest do
use GoldenWeb.ConnCase
import Phoenix.LiveViewTest
import Golden.AccountsFixtures
@create_attrs %{age: 42, name: "some name"}
@update_attrs %{age: 43, name: "some updated name"}
@invalid_attrs %{age: nil, name: nil}
defp create_user(_) do
user = user_fixture()
... | 30.801802 | 85 | 0.603393 |
73d4517b8b0a1863bd20938e3011b71690082ba2 | 68,363 | exs | Elixir | test/mint/http2/conn_test.exs | sthagen/mint | 7aaf0377343f63dca87d8007fd404253a44598b5 | [
"Apache-2.0"
] | 1 | 2021-10-02T12:56:15.000Z | 2021-10-02T12:56:15.000Z | test/mint/http2/conn_test.exs | sthagen/mint | 7aaf0377343f63dca87d8007fd404253a44598b5 | [
"Apache-2.0"
] | null | null | null | test/mint/http2/conn_test.exs | sthagen/mint | 7aaf0377343f63dca87d8007fd404253a44598b5 | [
"Apache-2.0"
] | null | null | null | defmodule Mint.HTTP2Test do
use ExUnit.Case, async: true
import Mint.HTTP2.Frame
import ExUnit.CaptureLog
alias Mint.{
HTTPError,
HTTP2,
HTTP2.TestServer,
TransportError
}
require Mint.HTTP
@moduletag :capture_log
setup :start_connection
defmacrop assert_recv_frames([]) do
qu... | 34.631712 | 98 | 0.579334 |
73d4d371f8c233eb4996d101828a9610ebf47de0 | 1,901 | exs | Elixir | test/stampscale_test.exs | byjpr/Shopify-Plug | 683ae6670d72acf42a7fc411067bbe20aaae4b81 | [
"MIT"
] | 1 | 2019-03-07T11:30:54.000Z | 2019-03-07T11:30:54.000Z | test/stampscale_test.exs | byjord/Shopify-Plug | 683ae6670d72acf42a7fc411067bbe20aaae4b81 | [
"MIT"
] | 1 | 2018-09-25T18:05:59.000Z | 2018-09-25T18:05:59.000Z | test/stampscale_test.exs | byjord/Shopify-Plug | 683ae6670d72acf42a7fc411067bbe20aaae4b81 | [
"MIT"
] | null | null | null | defmodule ShopifyPlug.StampscaleTest do
use ExUnit.Case
import PlugHelper
test "Expired timestamp" do
%{url: "/stampscale", query: "extra=1&extra=2&shop=shop-name.myshopify.com&path_prefix=%2Fapps%2Fawesome_reviews×tamp=1317327555&signature=a9718877bea71c2484f91608a7eaea1532bdf71f5c56825065fa4ccabe549ef... | 32.775862 | 216 | 0.705418 |
73d52c58e222b1807ba1ea8db9bfef3f8cff96ea | 211 | exs | Elixir | test/honeydew_web/controllers/page_controller_test.exs | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | test/honeydew_web/controllers/page_controller_test.exs | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | test/honeydew_web/controllers/page_controller_test.exs | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | null | null | null | defmodule HoneydewWeb.PageControllerTest do
use HoneydewWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Honeydew · Phoenix Framework"
end
end
| 23.444444 | 69 | 0.691943 |
73d537d87ea5a8bef440958188b9a4c50b189455 | 410 | ex | Elixir | apps/rtc/lib/rtc/conduit/subscriber.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/rtc/lib/rtc/conduit/subscriber.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/rtc/lib/rtc/conduit/subscriber.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Rtc.Conduit.Subscriber do
use Conduit.Subscriber
import Conduit.Message
def process(message, _opts) do
case publish_event(message.body) do
:ok -> ack(message)
_ -> nack(message)
end
end
def publish_event(event) do
with {object, topics} <- Rtc.Channels.Negotiator.negotiate(e... | 24.117647 | 72 | 0.707317 |
73d54b1d8b285db5d32b569a8b89072d68818bc2 | 1,696 | ex | Elixir | v5 - separate VPP server (coupling & cohesion)/lib/virtual_power_plant.ex | s3cur3/genserver_architecture | e33dcc0bd62507132d15744990775178afcc88f4 | [
"MIT"
] | 3 | 2021-10-15T18:19:21.000Z | 2022-02-07T19:02:44.000Z | v5 - separate VPP server (coupling & cohesion)/lib/virtual_power_plant.ex | s3cur3/genserver_architecture | e33dcc0bd62507132d15744990775178afcc88f4 | [
"MIT"
] | null | null | null | v5 - separate VPP server (coupling & cohesion)/lib/virtual_power_plant.ex | s3cur3/genserver_architecture | e33dcc0bd62507132d15744990775178afcc88f4 | [
"MIT"
] | null | null | null | defmodule VirtualPowerPlant do
@moduledoc """
A "virtual power plant" is a collection of grid-connected batteries
that we can control remotely.
We ask these batteries to either pump power onto to the grid to meet
increased demand, or we ask them to absorb and store power that was
generated in excess of dem... | 33.92 | 98 | 0.714033 |
73d580eb187a2196a00d70b305453a12be7e39ad | 1,430 | exs | Elixir | mix.exs | gen1321/simple_graphql_client | 50b8240475d14a838a52734b9f22aa566f533dde | [
"MIT"
] | 15 | 2018-10-14T23:30:56.000Z | 2021-02-20T21:49:42.000Z | mix.exs | gen1321/simple_graphql_client | 50b8240475d14a838a52734b9f22aa566f533dde | [
"MIT"
] | 1 | 2019-04-29T06:29:30.000Z | 2019-08-05T20:26:52.000Z | mix.exs | gen1321/simple_graphql_client | 50b8240475d14a838a52734b9f22aa566f533dde | [
"MIT"
] | 4 | 2019-03-14T23:07:49.000Z | 2019-08-05T18:34:37.000Z | defmodule SimpleGraphqlClient.MixProject do
use Mix.Project
@version "0.2.1"
@github_url "https://github.com/gen1321/simple_graphql_client"
def project do
[
app: :simple_graphql_client,
description: "Elixir graphql client",
start_permanent: Mix.env() == :prod,
version: @version,
... | 22.698413 | 65 | 0.537762 |
73d5830a1fa616075a917a5542a61756785369f8 | 459 | ex | Elixir | lib/sise/mcast/supervisor.ex | aytchell/sise | 69d4a4598a4742a9f5e59fcb101e7db5582d3fbe | [
"Apache-2.0"
] | null | null | null | lib/sise/mcast/supervisor.ex | aytchell/sise | 69d4a4598a4742a9f5e59fcb101e7db5582d3fbe | [
"Apache-2.0"
] | null | null | null | lib/sise/mcast/supervisor.ex | aytchell/sise | 69d4a4598a4742a9f5e59fcb101e7db5582d3fbe | [
"Apache-2.0"
] | null | null | null | defmodule Sise.MCast.Supervisor do
# SPDX-License-Identifier: Apache-2.0
@moduledoc false
use Supervisor
def start_link(opts) do
Supervisor.start_link(__MODULE__, :ok, opts)
end
@impl true
def init(:ok) do
children = [
{Sise.MCast.Listener, name: Sise.MCast.Supervisor},
{Task.Superv... | 21.857143 | 85 | 0.703704 |
73d59900db55112e1daceb59189214387e6909df | 2,653 | ex | Elixir | lib/brando/users/users.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/users/users.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/users/users.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Users do
@moduledoc """
Context for Users.
"""
use BrandoAdmin, :context
use Brando.Query
alias Brando.Users.User
alias Brando.Users.UserToken
alias Brando.Utils
import Ecto.Query
@type user :: User.t()
query :list, User do
fn q -> from(t in q) end
end
filters User do
... | 24.33945 | 81 | 0.63513 |
73d59f5c39f6132878a371e1baf9809b096d85de | 8,742 | exs | Elixir | test/hexpm_web/controllers/api/package_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | test/hexpm_web/controllers/api/package_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | test/hexpm_web/controllers/api/package_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.API.PackageControllerTest do
use HexpmWeb.ConnCase, async: true
alias Hexpm.Repository.Packages
setup do
user = insert(:user)
unauthorized_user = insert(:user)
repository = insert(:repository)
package1 =
insert(
:package,
inserted_at: ~N[2030-01-01 00:00:... | 32.988679 | 106 | 0.624685 |
73d5c70d3835136c124ccd034c9c9532827fe1c2 | 84 | exs | Elixir | test/views/page_view_test.exs | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | 1 | 2016-05-06T00:00:10.000Z | 2016-05-06T00:00:10.000Z | test/views/page_view_test.exs | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | defmodule QuartoElugRJ.PageViewTest do
use QuartoElugRJ.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
73d602850fb4c47c63acf8082a927c4e8df28b74 | 2,921 | exs | Elixir | test/pg/ecto_enum_test.exs | jesenko/ecto_enum | 9639bb23fb56bbac8a0c71d6824d724f243780fd | [
"MIT"
] | null | null | null | test/pg/ecto_enum_test.exs | jesenko/ecto_enum | 9639bb23fb56bbac8a0c71d6824d724f243780fd | [
"MIT"
] | null | null | null | test/pg/ecto_enum_test.exs | jesenko/ecto_enum | 9639bb23fb56bbac8a0c71d6824d724f243780fd | [
"MIT"
] | 1 | 2020-02-06T12:59:54.000Z | 2020-02-06T12:59:54.000Z | defmodule EctoEnumTest do
use ExUnit.Case
import EctoEnum
defenum(StatusEnum, registered: 0, active: 1, inactive: 2, archived: 3)
defmodule User do
use Ecto.Schema
schema "users" do
field(:status, StatusEnum)
end
end
alias Ecto.Integration.TestRepo
test "accepts int, atom and string... | 28.637255 | 118 | 0.624101 |
73d603b531928cdea8cf90ff67da1f7fc8ff27bd | 119 | ex | Elixir | lib/web/views/registration_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 1 | 2021-12-28T20:57:32.000Z | 2021-12-28T20:57:32.000Z | lib/web/views/registration_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | null | null | null | lib/web/views/registration_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | null | null | null | defmodule Web.RegistrationView do
use Web, :view
import Web.Gettext, only: [gettext: 1]
alias Web.FormView
end
| 14.875 | 40 | 0.731092 |
73d6303aee72b92433ea17c80737eb3a7c187abf | 172 | exs | Elixir | test/test_helper.exs | joakimk/exremit | 6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc | [
"Unlicense",
"MIT"
] | 27 | 2016-09-21T09:11:25.000Z | 2020-12-16T04:04:50.000Z | test/test_helper.exs | barsoom/exremit | 6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc | [
"Unlicense",
"MIT"
] | 2 | 2016-12-02T08:05:13.000Z | 2020-03-27T08:07:59.000Z | test/test_helper.exs | barsoom/exremit | 6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc | [
"Unlicense",
"MIT"
] | 4 | 2016-09-25T09:58:17.000Z | 2020-04-27T15:07:36.000Z | {:ok, _} = Application.ensure_all_started(:hound)
{:ok, _} = Application.ensure_all_started(:ex_machina)
ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Review.Repo, :manual)
| 28.666667 | 54 | 0.767442 |
73d6581055b3e1e5516bf350397f5adb1710a8f6 | 774 | ex | Elixir | lib/excommerce/addresses/zone.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce/addresses/zone.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce/addresses/zone.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule Excommerce.Addresses.Zone do
use Ecto.Schema
import Ecto.Changeset
alias Excommerce.Addresses.{Zone, ZoneMember}
schema "zones" do
field :name, :string
field :description, :string
field :type, :string
has_many :country_zone_members, {"country_zone_members", ZoneMember}, on_replace... | 22.764706 | 93 | 0.706718 |
73d6693982b5d8f2aad335484ade7dc7bfb0a16c | 374 | ex | Elixir | elixir-match/app/lib/match/find_user.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match/find_user.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match/find_user.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule Match.FindUser do
alias Match.Password
def with_username_and_password(users, username, password) do
case Enum.filter(users, fn {_, {k, _, _}} -> k == username end) do
[{id, {_username, _icon, hash}}] ->
if Password.verify(password, hash) do
id
end
[] ->
P... | 22 | 70 | 0.588235 |
73d697a614406795d1d36e5fe7eff2e0f6e7820f | 1,861 | ex | Elixir | lib/bagheera_web/telemetry.ex | hansjhoffman/bagheera | a816a38a4dd8a4ac841accb0234dfdc15f1aeec2 | [
"MIT"
] | 3 | 2020-02-19T14:57:45.000Z | 2020-02-26T03:38:09.000Z | lib/bagheera_web/telemetry.ex | hansjhoffman/bagheera | a816a38a4dd8a4ac841accb0234dfdc15f1aeec2 | [
"MIT"
] | 1 | 2021-09-30T13:51:51.000Z | 2021-09-30T13:51:51.000Z | lib/bagheera_web/telemetry.ex | hansjhoffman/bagheera | a816a38a4dd8a4ac841accb0234dfdc15f1aeec2 | [
"MIT"
] | null | null | null | defmodule BagheeraWeb.Telemetry do
@moduledoc """
Telemetry
"""
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measure... | 31.542373 | 86 | 0.67007 |
73d6b902825593bdf189916e4e5011a45481d6bc | 3,597 | exs | Elixir | test/socializer_web/resolvers/message_resolver_test.exs | adam-h/socializer | 22bbb34a6e707af9cf608c5eeb6189d1f067a95b | [
"MIT"
] | 311 | 2019-04-21T22:15:08.000Z | 2022-01-23T14:07:03.000Z | test/socializer_web/resolvers/message_resolver_test.exs | adam-h/socializer | 22bbb34a6e707af9cf608c5eeb6189d1f067a95b | [
"MIT"
] | 9 | 2020-09-07T09:38:58.000Z | 2022-02-26T18:07:44.000Z | test/socializer_web/resolvers/message_resolver_test.exs | adam-h/socializer | 22bbb34a6e707af9cf608c5eeb6189d1f067a95b | [
"MIT"
] | 49 | 2019-04-22T01:29:50.000Z | 2022-03-23T04:34:35.000Z | defmodule SocializerWeb.MessageResolverTest do
use SocializerWeb.ConnCase
alias SocializerWeb.Resolvers.MessageResolver
describe "#list" do
it "returns messages for a conversation" do
conversation = insert(:conversation)
user = insert(:user)
insert(:conversation_user, conversation: convers... | 30.74359 | 92 | 0.640256 |
73d6ed84a33dc4f8d6aa79c9a050c7d012c98176 | 1,136 | exs | Elixir | complete/mix.exs | PJUllrich/e2e-testing-with-cypress | 19806edb347d829eef1fd13079ceb905fc2e4a39 | [
"MIT"
] | 2 | 2019-11-03T20:42:36.000Z | 2019-12-03T14:12:52.000Z | complete/mix.exs | PJUllrich/e2e-testing-with-cypress | 19806edb347d829eef1fd13079ceb905fc2e4a39 | [
"MIT"
] | 1 | 2021-03-09T20:17:35.000Z | 2021-03-09T20:17:35.000Z | incomplete/mix.exs | PJUllrich/e2e-testing-with-cypress | 19806edb347d829eef1fd13079ceb905fc2e4a39 | [
"MIT"
] | null | null | null | defmodule E2eWithCypress.MixProject do
use Mix.Project
def project do
[
app: :e2e_with_cypress,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: d... | 24.695652 | 57 | 0.581866 |
73d6f231a9e921ae8f666ff7b82f551b5ffc2dda | 854 | ex | Elixir | lib/honest_chat/rooms.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | 3 | 2021-11-19T07:18:30.000Z | 2021-12-23T22:19:48.000Z | lib/honest_chat/rooms.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | lib/honest_chat/rooms.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | defmodule HonestChat.Rooms do
@moduledoc """
The Rooms context.
"""
import Ecto.Query, warn: false
import Ecto.Changeset
alias HonestChat.Accounts
alias HonestChat.Accounts.User
alias HonestChat.Repo
alias HonestChat.Rooms.Room
def get_user_rooms(%User{} = user) do
user
|> Repo.preload(:ro... | 18.977778 | 49 | 0.642857 |
73d709a757c89f71283c22a3fd84ba115d04efad | 143 | ex | Elixir | text_client/lib/text_client.ex | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | text_client/lib/text_client.ex | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | text_client/lib/text_client.ex | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | defmodule TextClient do
@moduledoc """
Documentation for TextClient
"""
defdelegate start(), to: TextClient.Interact, as: :start
end
| 15.888889 | 58 | 0.713287 |
73d7715811c3f8df423314722bb9ec12845d65ba | 2,395 | ex | Elixir | lib/ex_jenga/send_money/pesalink_to_mobile.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 1 | 2021-09-14T09:50:22.000Z | 2021-09-14T09:50:22.000Z | lib/ex_jenga/send_money/pesalink_to_mobile.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 15 | 2021-04-23T11:28:49.000Z | 2021-06-23T04:42:35.000Z | lib/ex_jenga/send_money/pesalink_to_mobile.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | null | null | null | defmodule ExJenga.SendMoney.PesalinkToMobile do
@moduledoc """
This module enables you to Send Money To Other People's mobile phone through PesaLink
"""
import ExJenga.JengaBase
alias ExJenga.Signature
@doc """
Send Money To Other People's mobile phone through PesaLink
## Parameters
attrs: - a map ... | 37.421875 | 404 | 0.618372 |
73d7a5fd60c9f0cf8b0895f5ca42781700315511 | 822 | ex | Elixir | lib/repo/schema_type.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | lib/repo/schema_type.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | lib/repo/schema_type.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | defmodule ExAudit.Type.Schema do
@behaviour Ecto.Type
def cast(schema) when is_atom(schema) do
case Enum.member?(schemas(), schema) do
true -> {:ok, schema}
_ -> :error
end
end
def cast(schema) when is_binary(schema) do
load(schema)
end
def cast(_), do: :error
def load(schema)... | 19.116279 | 56 | 0.621655 |
73d7ad25ffdbc4e4242f38ff44b894b02140addc | 9,885 | ex | Elixir | lib/elixir/lib/module/locals_tracker.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/locals_tracker.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/locals_tracker.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | # This is an Elixir module responsible for tracking
# calls in order to extract Elixir modules' behaviour
# during compilation time.
#
# ## Implementation
#
# The implementation uses the digraph module to track
# all dependencies. The graph starts with one main vertex:
#
# * `:local` - points to local functions
#
# We ... | 28.162393 | 99 | 0.663429 |
73d7d478c3634c210342b10c88712531ef0ed8fc | 1,808 | ex | Elixir | lib/xdr/transactions/operations/path_payment_strict_receive_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/operations/path_payment_strict_receive_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/operations/path_payment_strict_receive_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.PathPaymentStrictReceiveResult do
@moduledoc """
Representation of Stellar `PathPaymentStrictReceiveResult` type.
"""
alias StellarBase.XDR.{Asset, Void}
alias StellarBase.XDR.Operations.{
PathPaymentStrictReceiveResultCode,
PathPaymentStrictResultSuccess
}
@... | 26.202899 | 88 | 0.688053 |
73d7d879f0c0f72126458e60cd0447c7f8847d7e | 784 | ex | Elixir | lib/pool/orphan.ex | fantypants/elixium_core | 54071b6126af2b20a310bc7beb92efc24e7acabd | [
"MIT"
] | null | null | null | lib/pool/orphan.ex | fantypants/elixium_core | 54071b6126af2b20a310bc7beb92efc24e7acabd | [
"MIT"
] | null | null | null | lib/pool/orphan.ex | fantypants/elixium_core | 54071b6126af2b20a310bc7beb92efc24e7acabd | [
"MIT"
] | null | null | null | defmodule Elixium.Pool.Orphan do
@moduledoc """
Convinient interface functions for interacting with fork blocks
"""
@pool_name :orphan_pool
def initialize, do: :ets.new(@pool_name, [:bag, :public, :named_table])
@spec add(Elixium.Block) :: none
def add(block), do: :ets.insert(@pool_name, {block.index... | 25.290323 | 90 | 0.673469 |
73d81a2d100b10418d05a4ed3662bd0069186a37 | 661 | ex | Elixir | samples/client/petstore/elixir/lib/swagger_petstore/model/order.ex | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/swagger_petstore/model/order.ex | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | 1 | 2022-01-06T22:28:02.000Z | 2022-01-06T22:28:02.000Z | samples/client/petstore/elixir/lib/swagger_petstore/model/order.ex | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule SwaggerPetstore.Model.Order do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:id,
:petId,
:quantity,
:shipDa... | 18.361111 | 75 | 0.635401 |
73d86c46470cf39e210e5d9e40bf2ee0568b4f01 | 1,375 | ex | Elixir | lib/manager/firebase_manager.ex | LuisSas/Le_Etoile_Learning_Manager | 532f8a3d245b116c1235c74e93ac5d57fe061b1b | [
"MIT"
] | null | null | null | lib/manager/firebase_manager.ex | LuisSas/Le_Etoile_Learning_Manager | 532f8a3d245b116c1235c74e93ac5d57fe061b1b | [
"MIT"
] | null | null | null | lib/manager/firebase_manager.ex | LuisSas/Le_Etoile_Learning_Manager | 532f8a3d245b116c1235c74e93ac5d57fe061b1b | [
"MIT"
] | null | null | null | defmodule Etoile.FirebaseManager do
alias Etoile.TaskManager
alias Etoile.Parser
def add_task( title ) do
task =
TaskManager.create_task( title )
|> Poison.encode!
{:ok, _} = HTTPoison.post "https://gameofchats-db1b4.firebaseio.com/tasks.json", task
end
def show_tasks() do
response = ... | 31.25 | 98 | 0.671273 |
73d86de038a7246d6d2e4c2bdd670076da0afac3 | 994 | ex | Elixir | lib/wanon/dispatcher.ex | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-11-28T07:44:28.000Z | 2018-11-28T07:44:28.000Z | lib/wanon/dispatcher.ex | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-10-24T20:59:09.000Z | 2018-10-24T20:59:09.000Z | lib/wanon/dispatcher.ex | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | null | null | null | defmodule Wanon.Dispatcher do
use GenStage
require Logger
@commands [
Wanon.Cache.Edit,
Wanon.Cache.Add,
Wanon.Quotes.RQuote,
Wanon.Quotes.AddQuote
]
def start_link() do
GenStage.start_link(Wanon.Dispatcher, :ok)
end
def init(:ok) do
{:consumer, :ok,
subscribe_to: [
... | 21.148936 | 65 | 0.6167 |
73d8748cc35695aaec4be20c7a6b4d4ad2a6932a | 5,201 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/deployment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/deployment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/deployment.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... | 63.426829 | 488 | 0.720631 |
73d875b24467428fcbd444432b4e8d64e9400b25 | 1,582 | ex | Elixir | lib/lou_web.ex | ConnorRigby/lou | 5fd68f99b72c82bd4cdd9a6ddeccbe967f7a74a1 | [
"MIT"
] | 1 | 2019-10-23T12:17:34.000Z | 2019-10-23T12:17:34.000Z | lib/lou_web.ex | ConnorRigby/lou | 5fd68f99b72c82bd4cdd9a6ddeccbe967f7a74a1 | [
"MIT"
] | null | null | null | lib/lou_web.ex | ConnorRigby/lou | 5fd68f99b72c82bd4cdd9a6ddeccbe967f7a74a1 | [
"MIT"
] | null | null | null | defmodule LouWeb 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 LouWeb, :controller
use LouWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep... | 22.6 | 83 | 0.67952 |
73d8a3b54777e18c41245f7bb1fe964b80121319 | 884 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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.740741 | 74 | 0.75905 |
73d8d10a8743649d6d0d547e04611f0805cbe07d | 622 | ex | Elixir | lib/ex_money/accounts_balance_history_worker.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 184 | 2015-11-23T20:51:50.000Z | 2022-03-30T01:01:39.000Z | lib/ex_money/accounts_balance_history_worker.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 15 | 2015-11-26T16:00:20.000Z | 2018-05-25T20:13:39.000Z | lib/ex_money/accounts_balance_history_worker.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 21 | 2015-11-26T21:34:40.000Z | 2022-03-26T02:56:42.000Z | defmodule ExMoney.AccountsBalanceHistoryWorker do
use GenServer
alias ExMoney.{Repo, Account}
alias ExMoney.Accounts.BalanceHistory
def start_link(_opts \\ []) do
GenServer.start_link(__MODULE__, :ok, name: :accounts_balance_history_worker)
end
def handle_call(:store_current_balance, _from, state) do... | 23.923077 | 81 | 0.681672 |
73d8feafd28c3dc2df92978a7ea9286a27568ae8 | 407 | ex | Elixir | lib/validation/rules/credit_card/amex.ex | elixir-validation/validation | 164a62c881e03a307172e4a20413f81260abb2dc | [
"MIT"
] | 60 | 2019-09-13T13:37:01.000Z | 2021-01-06T05:20:32.000Z | lib/validation/rules/credit_card/amex.ex | elixir-validation/validation | 164a62c881e03a307172e4a20413f81260abb2dc | [
"MIT"
] | 1 | 2019-12-16T13:57:22.000Z | 2019-12-16T13:57:22.000Z | lib/validation/rules/credit_card/amex.ex | elixir-validation/validation | 164a62c881e03a307172e4a20413f81260abb2dc | [
"MIT"
] | 5 | 2019-09-13T19:14:24.000Z | 2019-11-26T17:33:08.000Z | defmodule Validation.Rules.CreditCard.Amex do
@moduledoc false
alias Validation.Rules.CreditCard
@spec validate?(String.t) :: boolean
def validate?(input) when is_binary(input) do
# only numbers
input = Regex.replace(~r/\D/, input, "")
CreditCard.validate?(input) and amex_validation(input)
end
... | 23.941176 | 58 | 0.700246 |
73d923d6c80d03c8a87e6d740227f740b76f67ec | 345 | ex | Elixir | lib/beam/ksp/unquote.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/ksp/unquote.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/ksp/unquote.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | defmodule Unquote do
defmacro defkv(kv) do
Enum.map(kv, fn {k, v} ->
quote do
def unquote(k)(), do: unquote(v)
end
end)
end
end
defmodule Unquote2 do
defmacro defkv(kv) do
quote bind_quoted: [kv: kv] do
Enum.each(kv, fn {k, v} ->
def unquote(k)(), do: unquote(v)
... | 17.25 | 40 | 0.55942 |
73d92500ef24f8e43d614e065cd77f49798e11cf | 492 | exs | Elixir | config/test.exs | MihailoIsakov/LixLint | 5edba3068b929417d49b2084bb15b21057e9ca0b | [
"MIT"
] | null | null | null | config/test.exs | MihailoIsakov/LixLint | 5edba3068b929417d49b2084bb15b21057e9ca0b | [
"MIT"
] | null | null | null | config/test.exs | MihailoIsakov/LixLint | 5edba3068b929417d49b2084bb15b21057e9ca0b | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :statika, Statika.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :statika, Statika.Repo,... | 25.894737 | 59 | 0.737805 |
73d93fc485769da7a953249bc8ec398ddf2a360c | 1,648 | ex | Elixir | channels/lib/im/slack/slack_processor.ex | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | channels/lib/im/slack/slack_processor.ex | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | channels/lib/im/slack/slack_processor.ex | DeComX/hypertrons | 535e86f02a1ef474d022e0f22b18a4fffd3ff9be | [
"Apache-2.0"
] | null | null | null | defmodule Hypertrons.Channels.SlackProcessor do
alias Hypertrons.Channels.IMMessage.Request, as: MessageRequest
alias Hypertrons.Channels.IMProcessor
@behaviour IMProcessor
@impl IMProcessor
def handle_request(%MessageRequest{
platform: :slack,
ts: nil
} = req) do
Slack.Client.Chat.post_messag... | 21.684211 | 70 | 0.67415 |
73d9596745c310e2c14a4143a14a0008519aede1 | 335 | ex | Elixir | back/lib/api/auth/team.ex | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/lib/api/auth/team.ex | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/lib/api/auth/team.ex | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | defmodule Api.Auth.Team do
use Ecto.Schema
import Ecto.Changeset
schema "teams" do
field :name, :string
many_to_many :users, Api.Auth.User, join_through: "teams_users"
timestamps()
end
@doc false
def changeset(team, attrs) do
team
|> cast(attrs, [:name])
|> validate_required([:na... | 16.75 | 67 | 0.659701 |
73d9641d0b9fa4ee55e1b60a20f1431c243afebf | 11,990 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/comment_threads.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/comment_threads.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/comment_threads.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 49.139344 | 196 | 0.635696 |
73d96532962b2eafa138b563a91e6aee4e8d8841 | 103 | exs | Elixir | elixir-primer/v01/ch14/maps1.exs | Atla0903/Study-Elixir | 155fbf30e508e513278425b89262a0a444e0936c | [
"Unlicense"
] | null | null | null | elixir-primer/v01/ch14/maps1.exs | Atla0903/Study-Elixir | 155fbf30e508e513278425b89262a0a444e0936c | [
"Unlicense"
] | null | null | null | elixir-primer/v01/ch14/maps1.exs | Atla0903/Study-Elixir | 155fbf30e508e513278425b89262a0a444e0936c | [
"Unlicense"
] | null | null | null | ages =%{"Alice" => 23 , "Bob" => 15, "Charlie" => 48}
IO.inspect ages["Bob"]
IO.inspect ages["David"]
| 20.6 | 53 | 0.572816 |
73d99e6ab970d266c2261d5669dde02951204092 | 931 | exs | Elixir | mix.exs | tensiondriven/phoenix_slime | b8f17de61bebde7d6d8d31645e9fa049e2cb8c9d | [
"MIT"
] | 1 | 2022-03-27T20:20:15.000Z | 2022-03-27T20:20:15.000Z | mix.exs | tensiondriven/phoenix_slime | b8f17de61bebde7d6d8d31645e9fa049e2cb8c9d | [
"MIT"
] | null | null | null | mix.exs | tensiondriven/phoenix_slime | b8f17de61bebde7d6d8d31645e9fa049e2cb8c9d | [
"MIT"
] | 2 | 2022-03-08T09:08:41.000Z | 2022-03-08T09:09:58.000Z | defmodule PhoenixSlime.Mixfile do
use Mix.Project
@version "0.13.0"
def project do
[
app: :phoenix_slime,
deps: deps(),
description: "Phoenix Template Engine for Slim-like templates",
elixir: "~> 1.4",
package: package(),
version: @version
]
end
def application d... | 22.166667 | 69 | 0.543502 |
73d99f087239d16b76876305b47de37ad7e17b9c | 180 | exs | Elixir | config/config.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 204 | 2015-06-04T06:38:57.000Z | 2022-01-30T08:56:33.000Z | config/config.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 71 | 2015-05-24T02:08:28.000Z | 2022-01-10T17:13:27.000Z | config/config.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 41 | 2015-09-05T21:24:04.000Z | 2021-11-10T02:52:48.000Z | use Mix.Config
if Mix.env() == :test do
config :logger, :console,
format: "\n$time $metadata[$level] $levelpad$message\n",
metadata: [:query_time, :response_status]
end
| 22.5 | 60 | 0.672222 |
73d9b400455c16f6b52936808d434a7692360b29 | 581 | ex | Elixir | lib/hl7/2.3.1/segments/prd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/prd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/prd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.PRD do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
provider_role: DataTypes.Ce,
provider_name: DataTypes.Xpn,
provider_address: DataTypes.Xad,
provider_location: DataTypes.Pl,
provid... | 27.666667 | 58 | 0.73494 |
73d9edb46e61f2b84302bab935a0fc50b0040b73 | 2,210 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/click_tag.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/v33/model/click_tag.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/click_tag.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 ... | 41.698113 | 252 | 0.743891 |
73da299f50baf49027ee0eacdf53738b38fcc09f | 3,769 | exs | Elixir | test/searcher_test.exs | codeflows/jonne | ea23cf6b253972975e85d5f028910638ac2dc5fc | [
"Apache-2.0"
] | null | null | null | test/searcher_test.exs | codeflows/jonne | ea23cf6b253972975e85d5f028910638ac2dc5fc | [
"Apache-2.0"
] | 1 | 2018-03-28T07:55:04.000Z | 2019-08-20T14:15:19.000Z | test/searcher_test.exs | codeflows/jonne | ea23cf6b253972975e85d5f028910638ac2dc5fc | [
"Apache-2.0"
] | null | null | null | defmodule TimeParser do
def parse_time(time_string) do
Timex.parse!(time_string, "{YYYY}-{0M}-{0D}") |> Timex.shift(hours: 5)
end
end
defmodule SearcherTest do
alias Jonne.{Searcher, Elasticsearch.MockClient}
import Mox
use ExUnit.Case, async: false
setup :verify_on_exit!
@current_time TimeParser.pa... | 29.677165 | 97 | 0.659326 |
73da36b5a7aa447800f9dbff678efea65f71e92a | 934 | exs | Elixir | mix.exs | erickgnavar/pokedex-api | ed6dbe831192e684e9605b35844bde80b085ab2e | [
"MIT"
] | null | null | null | mix.exs | erickgnavar/pokedex-api | ed6dbe831192e684e9605b35844bde80b085ab2e | [
"MIT"
] | null | null | null | mix.exs | erickgnavar/pokedex-api | ed6dbe831192e684e9605b35844bde80b085ab2e | [
"MIT"
] | null | null | null | defmodule Pokedex.MixProject do
use Mix.Project
def project do
[
app: :pokedex,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def applicati... | 20.755556 | 59 | 0.505353 |
73da45d0c09574b975368939cb23ea4d8cdb7ce4 | 1,207 | ex | Elixir | apps/examples/test/support/e2e/log_spread.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/examples/test/support/e2e/log_spread.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/examples/test/support/e2e/log_spread.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule ExamplesSupport.E2E.LogSpread do
alias Tai.TestSupport.Mocks
import Tai.TestSupport.Mock
@venue :test_exchange_a
@product_symbol :btc_usd
def seed_mock_responses(:log_spread) do
Mocks.Responses.Products.for_venue(
@venue,
[
%{symbol: @product_symbol},
%{symbol: :ltc... | 22.351852 | 81 | 0.599834 |
73da5eec8c861bd4f023356375b7605d2608883d | 6,985 | exs | Elixir | test/teslamate/mqtt/pubsub/vehicle_subscriber_test.exs | mnadvornik/teslamate | 91af0029bb4272495b94abde6f1d2fb8b2c79fc4 | [
"MIT"
] | 1 | 2021-05-04T18:06:35.000Z | 2021-05-04T18:06:35.000Z | test/teslamate/mqtt/pubsub/vehicle_subscriber_test.exs | mnadvornik/teslamate | 91af0029bb4272495b94abde6f1d2fb8b2c79fc4 | [
"MIT"
] | 171 | 2020-07-08T18:42:57.000Z | 2022-03-23T00:55:30.000Z | test/teslamate/mqtt/pubsub/vehicle_subscriber_test.exs | virtualm2000/teslamate | b2dad66d992b8e04d8213f2657492fa75872ece5 | [
"MIT"
] | null | null | null | defmodule TeslaMate.Mqtt.PubSub.VehicleSubscriberTest do
use TeslaMate.DataCase, async: true
alias TeslaMate.Mqtt.PubSub.VehicleSubscriber
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.Locations.GeoFence
defp start_subscriber(name, car_id, namespace \\ nil) do
publisher_name = :"mqtt_publishe... | 32.337963 | 95 | 0.628203 |
73da8eb78183d96f71e74d119e99611a24f768f8 | 2,673 | ex | Elixir | lib/arcdown/parsers/article_parser.ex | functionhaus/arcdown | 26c9de0d2fadc09e6b74ac2f7855088440845c2f | [
"Apache-2.0"
] | 7 | 2019-01-21T04:17:50.000Z | 2020-03-08T06:40:54.000Z | lib/arcdown/parsers/article_parser.ex | functionhaus/arcdown | 26c9de0d2fadc09e6b74ac2f7855088440845c2f | [
"Apache-2.0"
] | 3 | 2019-09-19T19:13:09.000Z | 2019-09-26T14:39:23.000Z | lib/arcdown/parsers/article_parser.ex | functionhaus/arcdown | 26c9de0d2fadc09e6b74ac2f7855088440845c2f | [
"Apache-2.0"
] | null | null | null | defmodule Arcdown.Parsers.ArticleParser do
@moduledoc """
Module responsible for parsing the entire content and filename of a single
article file and generating an %Article{} struct populated with all
relevant attributes and metadata
"""
alias Arcdown.Article
alias Arcdown.Parsers.HeaderParser
@patter... | 31.447059 | 105 | 0.607931 |
73daa46b65f5547b5ffa205002379ca1301f28a8 | 2,645 | ex | Elixir | lib/mars_rover_kata/planet.ex | lucazulian/mars-rover-kata | 1c7e5ebfee09aca74dceb69f84a7e95aae6defce | [
"MIT"
] | 2 | 2021-05-10T09:47:22.000Z | 2022-02-20T10:41:24.000Z | lib/mars_rover_kata/planet.ex | lucazulian/mars-rover-kata | 1c7e5ebfee09aca74dceb69f84a7e95aae6defce | [
"MIT"
] | 2 | 2021-05-08T09:28:41.000Z | 2021-12-23T09:58:53.000Z | lib/mars_rover_kata/planet.ex | lucazulian/mars-rover-kata | 1c7e5ebfee09aca74dceb69f84a7e95aae6defce | [
"MIT"
] | 1 | 2021-05-07T08:54:50.000Z | 2021-05-07T08:54:50.000Z | defmodule MarsRoverKata.Planet do
@moduledoc """
Represent the planet in which the robot moves.
The planet is represented by a grid of max_x * max_y shape on zero based
system and is a sphere so connects vertical edges towards themselves are
in inverted coordinates.
"""
alias MarsRoverKata.Point
alias... | 30.056818 | 160 | 0.643856 |
73dacad9c3a7dc3cb83a13eff2eff8ec0783cf09 | 1,156 | ex | Elixir | test/support/conn_case.ex | gleidsonduarte/phoenix-elixir-hello-world | b89f7682ac63df8fb8235b2f426b8a82e4cec826 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gleidsonduarte/phoenix-elixir-hello-world | b89f7682ac63df8fb8235b2f426b8a82e4cec826 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gleidsonduarte/phoenix-elixir-hello-world | b89f7682ac63df8fb8235b2f426b8a82e4cec826 | [
"MIT"
] | null | null | null | defmodule PhoenixElixirHelloWorldWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
... | 30.421053 | 77 | 0.752595 |
73dad39b3a38106fd4935c8712059fd9aee1e5e0 | 510 | ex | Elixir | components_demo/lib/components_demo_web/router.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | 2 | 2022-03-28T21:33:39.000Z | 2022-03-30T17:14:34.000Z | components_demo/lib/components_demo_web/router.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | components_demo/lib/components_demo_web/router.ex | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | defmodule ComponentsDemoWeb.Router do
use ComponentsDemoWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {ComponentsDemoWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scop... | 23.181818 | 64 | 0.741176 |
73dae42268edef0bb09a368eb17031554a2852ef | 88 | ex | Elixir | elixir/elixir-elm-playground/lib/playground_web/views/coherence/email_view.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/elixir-elm-playground/lib/playground_web/views/coherence/email_view.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/elixir-elm-playground/lib/playground_web/views/coherence/email_view.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule PlaygroundWeb.Coherence.EmailView do
use PlaygroundWeb.Coherence, :view
end
| 22 | 46 | 0.840909 |
73daea104104b5c0035ea839aab6052c817ada54 | 1,006 | exs | Elixir | mix.exs | lorenzosinisi/woke | 91823d8a5dacd450287887adf3e5a9072388833a | [
"Apache-2.0"
] | null | null | null | mix.exs | lorenzosinisi/woke | 91823d8a5dacd450287887adf3e5a9072388833a | [
"Apache-2.0"
] | null | null | null | mix.exs | lorenzosinisi/woke | 91823d8a5dacd450287887adf3e5a9072388833a | [
"Apache-2.0"
] | null | null | null | defmodule Woke.MixProject do
use Mix.Project
def project do
[
app: :woke,
version: "0.1.1",
elixir: "~> 1.10",
deps: deps(),
ddocs: [extras: ["README.md"], main: "RADME.md", source_ref: "v0.1.1"],
source_url: "https://github.com/lorenzosinisi/woke",
description: descri... | 21.404255 | 77 | 0.576541 |
73daf04cc481bace152c2ed1447b5b38306ab2b9 | 143 | ex | Elixir | apps/cronitex_web/lib/cronitex_web/controllers/page_controller.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 1 | 2020-11-05T15:38:53.000Z | 2020-11-05T15:38:53.000Z | apps/cronitex_web/lib/cronitex_web/controllers/page_controller.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 36 | 2020-10-24T01:28:42.000Z | 2022-02-07T11:11:37.000Z | apps/cronitex_web/lib/cronitex_web/controllers/page_controller.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | null | null | null | defmodule CronitexWeb.PageController do
use CronitexWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.875 | 39 | 0.741259 |
73daf753dca4309eb1f19cfce557c2a497675e19 | 946 | ex | Elixir | test/support/contorller_test_helper.ex | kenta-aktsk/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 99 | 2016-04-19T11:11:57.000Z | 2021-12-12T14:38:02.000Z | test/support/contorller_test_helper.ex | ogamw/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 48 | 2016-04-06T02:28:46.000Z | 2016-05-31T06:56:56.000Z | test/support/contorller_test_helper.ex | ogamw/media_sample | a0368236bd81c18ac136a54aa7383332a5e3cf36 | [
"MIT"
] | 32 | 2016-04-19T11:12:00.000Z | 2021-03-25T18:19:52.000Z | defmodule MediaSample.ControllerTestHelper do
defmacro __using__(opts) do
quote location: :keep do
use Plug.Test
@controller unquote(opts)[:controller] || raise ":controller must be given."
def action(conn, action, params \\ %{}) do
conn =
conn
|> put_private(:phoeni... | 28.666667 | 82 | 0.622622 |
73db2f54d72c3eeb492033c767ab14227ae5f36a | 693 | ex | Elixir | web/controllers/donation_goal_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/donation_goal_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/controllers/donation_goal_controller.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.DonationGoalController do
use CodeCorps.Web, :controller
use JaResource
import CodeCorps.Helpers.Query, only: [id_filter: 2]
alias CodeCorps.DonationGoal
alias CodeCorps.Services.DonationGoalsService
plug :load_and_authorize_changeset, model: DonationGoal, only: [:create]
plug :load... | 28.875 | 82 | 0.773449 |
73db49eb27cad8d58bf552466b9bfb6cb8076d8b | 1,071 | ex | Elixir | lib/struct_a.ex | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | 8 | 2020-09-04T19:38:41.000Z | 2021-06-05T18:59:49.000Z | lib/struct_a.ex | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | null | null | null | lib/struct_a.ex | marick/flow_assertions | 50936d03c7e0d482f13f94c96438627d344592c0 | [
"Unlicense"
] | null | null | null | defmodule FlowAssertions.StructA do
use FlowAssertions.Define
alias FlowAssertions.Messages
@moduledoc """
Assertions that apply only to structs, not maps.
"""
@doc """
Assert that the value is a particular module's struct.
```
make_user("fred") |> assert_struct_named(User)
```
For structs, ... | 27.461538 | 79 | 0.69281 |
73db7cd7be52109e6e2ead1cae921fb573841189 | 963 | exs | Elixir | config/config.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | config/config.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | config/config.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :socket_test, SocketTest.Endpoint,
url: [host: "lo... | 32.1 | 86 | 0.760125 |
73db99b5d9bd1d207c30cdda45af6ed563d96f5e | 509 | ex | Elixir | lib/mix_systemd_deploy_web/views/error_view.ex | cogini/mix-systemd-deploy-example | 7b0720a46a14fd0f7f61f88f7fdc26fdd7f05772 | [
"Apache-2.0"
] | 4 | 2019-03-01T07:26:26.000Z | 2021-11-05T13:53:07.000Z | lib/mix_systemd_deploy_web/views/error_view.ex | cogini/mix-systemd-deploy-example | 7b0720a46a14fd0f7f61f88f7fdc26fdd7f05772 | [
"Apache-2.0"
] | null | null | null | lib/mix_systemd_deploy_web/views/error_view.ex | cogini/mix-systemd-deploy-example | 7b0720a46a14fd0f7f61f88f7fdc26fdd7f05772 | [
"Apache-2.0"
] | null | null | null | defmodule MixSystemdDeployWeb.ErrorView do
use MixSystemdDeployWeb, :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
#... | 29.941176 | 61 | 0.744597 |
73dba717a583abf1b4d6e9bfa2e5e941d3b4f986 | 1,241 | ex | Elixir | clients/search_console/lib/google_api/search_console/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/search_console/lib/google_api/search_console/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/search_console/lib/google_api/search_console/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 34.472222 | 74 | 0.73892 |
73dbaa14dbe38973fd4d7c2214942818f0e4e802 | 826 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180627142121_add_default_exchange_address_to_api_keys.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/priv/repo/migrations/20180627142121_add_default_exchange_address_to_api_keys.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/priv/repo/migrations/20180627142121_add_default_exchange_address_to_api_keys.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.416667 | 81 | 0.75908 |
73dbaf23ce40c68ee30717a93fc746d1a1cb6a22 | 2,659 | ex | Elixir | lib/ex_aws/config/auth_cache.ex | sanchapereira/ex_aws | 1e5a03a939763424302a0511c56294d572a2ebfb | [
"MIT"
] | null | null | null | lib/ex_aws/config/auth_cache.ex | sanchapereira/ex_aws | 1e5a03a939763424302a0511c56294d572a2ebfb | [
"MIT"
] | 2 | 2021-01-29T21:12:46.000Z | 2021-01-30T06:11:16.000Z | lib/ex_aws/config/auth_cache.ex | sanchapereira/ex_aws | 1e5a03a939763424302a0511c56294d572a2ebfb | [
"MIT"
] | null | null | null | defmodule ExAws.Config.AuthCache do
@moduledoc false
use GenServer
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
defmodule AuthConfigAdapter do
@moduledoc false
@doc "Compute the awscli auth information."
@callback adapt_auth_config(auth :: map, profile :: St... | 27.132653 | 97 | 0.68522 |
73dbd9cc38e8671c2362d54ed84b66e9db88ce70 | 293 | exs | Elixir | priv/repo/migrations/20201229170714_add_contacts_table.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20201229170714_add_contacts_table.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20201229170714_add_contacts_table.exs | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule Freegiving.Repo.Migrations.AddContactsTable do
use Ecto.Migration
def change do
create table("contacts") do
add :name, :string, null: false
add :email, :string, null: false
add :phone, :string
end
create unique_index("contacts", :email)
end
end
| 20.928571 | 56 | 0.675768 |
73dc1f8ca9abd19446e065cc05222b40e9af1f75 | 1,341 | exs | Elixir | config/config.exs | flyingalex/another-phoenix-trello | c8844c4f4ad64df2f809a3f87637a416561c71b6 | [
"MIT"
] | null | null | null | config/config.exs | flyingalex/another-phoenix-trello | c8844c4f4ad64df2f809a3f87637a416561c71b6 | [
"MIT"
] | null | null | null | config/config.exs | flyingalex/another-phoenix-trello | c8844c4f4ad64df2f809a3f87637a416561c71b6 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
config :phoenix_trello,
namespace: PhoenixTrello,
ecto_repos: [PhoenixTrello.Repo... | 28.531915 | 86 | 0.770321 |
73dc268113d4a28a12ef56f686a676024cac87af | 19,936 | ex | Elixir | deps/phoenix_pubsub/lib/phoenix/tracker/state.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix_pubsub/lib/phoenix/tracker/state.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix_pubsub/lib/phoenix/tracker/state.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Phoenix.Tracker.State do
@moduledoc """
Provides an ORSWOT CRDT.
"""
alias Phoenix.Tracker.{State, Clock}
@type name :: term
@type topic :: String.t
@type key :: term
@type meta :: map
@type ets_id :: :ets.tid
@type clock :: pos_integer
@type... | 34.491349 | 115 | 0.582364 |
73dc392c90d6e1e53b17da204f92ba8a995dd79f | 1,374 | exs | Elixir | mix.exs | luizParreira/ecto_cast_to_string | 89254d62c460e11aac0eddbe329c1036d8c97f7e | [
"MIT"
] | 1 | 2022-03-10T16:40:27.000Z | 2022-03-10T16:40:27.000Z | mix.exs | luizParreira/ecto_cast_to_string | 89254d62c460e11aac0eddbe329c1036d8c97f7e | [
"MIT"
] | null | null | null | mix.exs | luizParreira/ecto_cast_to_string | 89254d62c460e11aac0eddbe329c1036d8c97f7e | [
"MIT"
] | 1 | 2021-03-04T07:52:14.000Z | 2021-03-04T07:52:14.000Z | defmodule EctoCastToString.Mixfile do
use Mix.Project
@description "EctoCastToString is a simple library that enables ecto casting from int/float to string."
@version "0.1.1"
def project do
[app: :ecto_cast_to_string,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
... | 26.941176 | 105 | 0.631732 |
73dc73c43a85318877d0db2ebfb0c1f8c467b7fc | 790 | ex | Elixir | lib/loaded_bike/web/uploaders/photo_uploader.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 48 | 2017-04-25T16:02:08.000Z | 2021-01-23T01:57:29.000Z | lib/loaded_bike/web/uploaders/photo_uploader.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 5 | 2018-03-09T20:17:55.000Z | 2018-07-23T16:29:21.000Z | lib/loaded_bike/web/uploaders/photo_uploader.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 4 | 2017-05-21T14:38:38.000Z | 2017-12-29T11:09:54.000Z | defmodule LoadedBike.Web.PhotoUploader do
use Arc.Definition
use Arc.Ecto.Definition
@versions [:large]
# local storage
def __storage, do: Arc.Storage.Local
# Whitelist file extensions:
def validate({file, _}) do
ext = file.file_name
|> Path.extname
|> String.downcase
Enum.member?(~... | 23.939394 | 98 | 0.688608 |
73dcbd77902f1ab86ae57a9d6549d6243fc046aa | 176 | ex | Elixir | lib/money/phoenix_html_safe.ex | SafeBoda/money | 249af6078039825b4d332931838dded5e15bdfaf | [
"MIT"
] | 1 | 2020-01-30T22:44:45.000Z | 2020-01-30T22:44:45.000Z | lib/money/phoenix_html_safe.ex | SafeBoda/money | 249af6078039825b4d332931838dded5e15bdfaf | [
"MIT"
] | 1 | 2019-04-16T11:22:26.000Z | 2019-04-16T11:52:48.000Z | lib/money/phoenix_html_safe.ex | SafeBoda/money | 249af6078039825b4d332931838dded5e15bdfaf | [
"MIT"
] | 2 | 2019-03-01T12:05:22.000Z | 2019-03-26T12:11:07.000Z | if Code.ensure_compiled?(Phoenix.HTML.Safe) do
defimpl Phoenix.HTML.Safe, for: Money do
def to_iodata(money), do: Phoenix.HTML.Safe.to_iodata(to_string(money))
end
end
| 29.333333 | 75 | 0.755682 |
73dcc6167f496b788d09952bdc7faac4f3f7c8d4 | 683 | ex | Elixir | solutions/lib/ninety_nine_elixir_problems/solutions/problem06.ex | cgerling/ninety-nine-elixir-problems | 45c1702a654d24e53c4010658c246185d1a04aa0 | [
"Unlicense"
] | 7 | 2019-12-06T13:36:19.000Z | 2022-03-02T19:38:37.000Z | solutions/lib/ninety_nine_elixir_problems/solutions/problem06.ex | cgerling/ninety-nine-elixir-problems | 45c1702a654d24e53c4010658c246185d1a04aa0 | [
"Unlicense"
] | null | null | null | solutions/lib/ninety_nine_elixir_problems/solutions/problem06.ex | cgerling/ninety-nine-elixir-problems | 45c1702a654d24e53c4010658c246185d1a04aa0 | [
"Unlicense"
] | 1 | 2021-06-27T16:53:49.000Z | 2021-06-27T16:53:49.000Z | defmodule NinetyNineElixirProblems.Solutions.Problem06 do
@doc ~S"""
Check if a list or string are palindrome (can be read forward and backward)
## Examples:
iex> Problem06.is_palindrome?([1, 2, 4, 8, 16, 8, 4, 2, 1])
true
iex> Problem06.is_palindrome?("detartrated")
true
iex> Problem06.is... | 22.766667 | 86 | 0.644217 |
73dcf6f3607b10912ec657865697837b2bc98839 | 702 | ex | Elixir | tags/lib/tags_web/gettext.ex | GustavoSrr/nlw-heat | 7d92dbd94d6db303d1c0d604b85707de2135c2dc | [
"MIT"
] | null | null | null | tags/lib/tags_web/gettext.ex | GustavoSrr/nlw-heat | 7d92dbd94d6db303d1c0d604b85707de2135c2dc | [
"MIT"
] | null | null | null | tags/lib/tags_web/gettext.ex | GustavoSrr/nlw-heat | 7d92dbd94d6db303d1c0d604b85707de2135c2dc | [
"MIT"
] | null | null | null | defmodule TagsWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import TagsWeb.Gettext
# Simple translation
gettext("Here is the str... | 28.08 | 72 | 0.673789 |
73dd29823091db6b2e5966fb4886d10ad5f3464b | 2,332 | ex | Elixir | clients/content/lib/google_api/content/v2/model/inventory_custom_batch_request_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/inventory_custom_batch_request_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/inventory_custom_batch_request_entry.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... | 39.525424 | 192 | 0.713551 |
73dd67e752a52e688a7c8b97505d5872706f151b | 1,074 | exs | Elixir | clients/display_video/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/test/test_helper.exs | 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... | 29.833333 | 83 | 0.741155 |
73dd7767616b2d24b4147b6a1de9826155fb359c | 481 | exs | Elixir | test/phoenix_container_example_web/views/error_view_test.exs | wwaldner-amtelco/phoenix_container_example | aeee424b40f444fe6bbfeab4d57b78d201397701 | [
"Apache-2.0"
] | 19 | 2020-07-21T06:03:36.000Z | 2022-03-21T22:35:22.000Z | test/phoenix_container_example_web/views/error_view_test.exs | wwaldner-amtelco/phoenix_container_example | aeee424b40f444fe6bbfeab4d57b78d201397701 | [
"Apache-2.0"
] | 1 | 2022-03-08T10:26:55.000Z | 2022-03-08T10:26:55.000Z | test/phoenix_container_example_web/views/error_view_test.exs | wwaldner-amtelco/phoenix_container_example | aeee424b40f444fe6bbfeab4d57b78d201397701 | [
"Apache-2.0"
] | 1 | 2022-02-09T01:25:09.000Z | 2022-02-09T01:25:09.000Z | defmodule PhoenixContainerExampleWeb.ErrorViewTest do
use PhoenixContainerExampleWeb.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(PhoenixContainerExampleWeb.ErrorView, "404.html", []) == "Not F... | 32.066667 | 108 | 0.769231 |
73dd8fc036cd919d50025d1d6573ab41140adeb3 | 2,257 | ex | Elixir | apps/definition_dictionary/lib/dictionary/access.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/access.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/access.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Dictionary.Access do
@type access_fun :: Access.access_fun(data :: struct | map, get_value :: term())
@type opts :: [
spread: boolean
]
@spec to_access_path(String.t() | [String.t()], opts) :: [access_fun]
def to_access_path(input, opts \\ []) do
input
|> List.wrap()
|>... | 28.56962 | 88 | 0.593265 |
73dd9ccbf250ffde6bafdcf40ab3500a13b11eaf | 2,280 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/calendar_resources.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/calendar_resources.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/calendar_resources.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... | 40.714286 | 235 | 0.73114 |
73dda217d8e8316945ac96556b443184c1258f7f | 2,184 | ex | Elixir | lib/bitcoin/secp256k1.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | lib/bitcoin/secp256k1.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 2 | 2019-04-22T04:24:39.000Z | 2019-04-26T07:03:59.000Z | lib/bitcoin/secp256k1.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.Secp256k1 do
@moduledoc """
ECDSA Secp256k1 curve operations.
By default erlang's :crypto.verify is used to make it less problematic when using
as a library (no need for gcc when you just want to parse something).
However, if :libsecp256k1 NIF is available, it's used. To enable it just un... | 31.652174 | 158 | 0.744048 |
73ddcc6d126f0c0237ac98ecdbbb6896ebaba28b | 455 | exs | Elixir | test/support/bart_mock.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | test/support/bart_mock.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | test/support/bart_mock.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | defmodule HTTPoison.Response do
defstruct body: nil, headers: nil, status_code: nil
end
defmodule BartScrape.BartMock do
def fetch_data do
{ :ok, successful_response }
end
defp successful_response do
%HTTPoison.Response{
body: "{\"access_token\":\"a_valid_access_token\",\"token_type\":\"Bearer\"... | 23.947368 | 82 | 0.676923 |
73dde2c2aeb852f2cffc234cbae34a3e85c48e88 | 3,683 | exs | Elixir | test/phxcrd_web/live/authority_live_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 18 | 2019-06-21T09:55:46.000Z | 2022-02-16T18:44:17.000Z | test/phxcrd_web/live/authority_live_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 16 | 2019-05-21T20:19:44.000Z | 2020-05-12T08:30:42.000Z | test/phxcrd_web/live/authority_live_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 2 | 2019-09-05T00:35:27.000Z | 2020-10-17T16:36:35.000Z | defmodule PhxcrdWeb.AuthorityLiveTest do
use PhxcrdWeb.ConnCase
import Phoenix.LiveViewTest
alias Phxcrd.Auth
@create_attrs %{}
@update_attrs %{}
@invalid_attrs %{}
defp fixture(:authority) do
{:ok, authority} = Auth.create_authority(@create_attrs)
authority
end
defp create_authority(_) d... | 32.307018 | 95 | 0.645126 |
73de10ce7725ef61863657f8a3d763977bcd6bc7 | 1,835 | ex | Elixir | lib/militerm/systems/groups.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | lib/militerm/systems/groups.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | lib/militerm/systems/groups.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | defmodule Militerm.Systems.Groups do
@moduledoc """
The Groups system provides a way to manage privilege escalation and
use.
Escalated group memberships are ephemeral and disappear when the
character leaves the game.
"""
use Militerm.ECS.System
alias Militerm.Components.EphemeralGroup
alias Militer... | 28.230769 | 99 | 0.608174 |
73de16c1699a5e25627ab94ee199089cfad47565 | 2,625 | ex | Elixir | lib/protobuf/protoc/generator.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 209 | 2020-11-19T11:17:27.000Z | 2022-03-20T12:47:31.000Z | lib/protobuf/protoc/generator.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 101 | 2020-11-22T20:20:11.000Z | 2022-03-06T16:09:26.000Z | lib/protobuf/protoc/generator.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 35 | 2020-11-26T14:45:13.000Z | 2022-03-22T23:22:00.000Z | defmodule Protobuf.Protoc.Generator do
@moduledoc false
alias Protobuf.Protoc.Context
alias Protobuf.Protoc.Generator
@spec generate(Context.t(), %Google.Protobuf.FileDescriptorProto{}) ::
[Google.Protobuf.Compiler.CodeGeneratorResponse.File.t()]
def generate(%Context{} = ctx, %Google.Protobuf.Fil... | 29.166667 | 94 | 0.662857 |
73de1ce651f962eb07062e051163e4405b56e65c | 850 | ex | Elixir | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/views/alarm.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/views/alarm.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/web/views/alarm.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.481481 | 74 | 0.748235 |
73de296f0310425b5e5653c0c1bc58f3cef8edf0 | 1,771 | ex | Elixir | lib/dnsapp_web/controllers/record_controller.ex | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | lib/dnsapp_web/controllers/record_controller.ex | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | lib/dnsapp_web/controllers/record_controller.ex | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | defmodule DnsappWeb.RecordController do
use DnsappWeb, :controller
alias Dnsapp.Entries
alias Dnsapp.Entries.Record
def index(conn, _params) do
records = Entries.list_records()
render(conn, "index.html", records: records)
end
def new(conn, _params) do
changeset = Entries.change_record(%Record... | 29.032787 | 71 | 0.640881 |
73de52ef23ddeadd9daf9e842b78cdbfb3dc0105 | 479 | ex | Elixir | lib/open_telemetry/observer.ex | ostera/opentelemetry-erlang-api | c03c64e4f3127365942077b592c9350b15206862 | [
"Apache-2.0"
] | null | null | null | lib/open_telemetry/observer.ex | ostera/opentelemetry-erlang-api | c03c64e4f3127365942077b592c9350b15206862 | [
"Apache-2.0"
] | null | null | null | lib/open_telemetry/observer.ex | ostera/opentelemetry-erlang-api | c03c64e4f3127365942077b592c9350b15206862 | [
"Apache-2.0"
] | null | null | null | defmodule OpenTelemetry.Observer do
@moduledoc """
require OpenTelemetry.Observer
OpenTelemetry.Observer.set_callback(\"some.counter\", fn o -> OpenTelemetry.Observer.observe(o, 33, []))
"""
defmacro set_callback(observer, callback) do
quote do
:ot_meter.set_observer_callback(:opentelemet... | 28.176471 | 113 | 0.736952 |
73de692e858fb63304f3393d6cf8e3376b04104d | 67 | ex | Elixir | lib/schema/error.ex | fiodorbaczynski/trivial_csv | 5d80a260f385bf2cbbd296a5ca359c9865510317 | [
"Apache-2.0"
] | 20 | 2019-08-02T08:25:51.000Z | 2021-05-18T21:28:47.000Z | lib/schema/error.ex | fiodorbaczynski/trivial_csv | 5d80a260f385bf2cbbd296a5ca359c9865510317 | [
"Apache-2.0"
] | null | null | null | lib/schema/error.ex | fiodorbaczynski/trivial_csv | 5d80a260f385bf2cbbd296a5ca359c9865510317 | [
"Apache-2.0"
] | null | null | null | defmodule DataQuacker.SchemaError do
defexception [:message]
end
| 16.75 | 36 | 0.820896 |
73de82610c6a32682fc42a80112835f8f01b0ee1 | 74 | exs | Elixir | test/views/layout_view_test.exs | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1,223 | 2017-01-11T19:25:08.000Z | 2022-03-21T12:31:28.000Z | test/views/layout_view_test.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 1,428 | 2017-01-09T16:36:18.000Z | 2022-03-28T14:19:40.000Z | test/views/layout_view_test.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 184 | 2017-01-10T18:08:06.000Z | 2022-03-14T18:53:24.000Z | defmodule BorsNG.LayoutViewTest do
use BorsNG.ConnCase, async: true
end
| 18.5 | 34 | 0.810811 |
73ded7fa2239472789ded080af7f8b98fd410005 | 906 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 33.555556 | 74 | 0.764901 |
73dee0cfb779fbabfe4239bad924dd41f91c2826 | 374 | ex | Elixir | lib/hl7/2.4/datatypes/xtn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/xtn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/xtn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.DataTypes.Xtn do
@moduledoc false
use HL7.DataType,
fields: [
"999_9999999_x99999c_any_text": nil,
telecommunication_use_code: nil,
telecommunication_equipment_type_id: nil,
email_address: nil,
country_code: nil,
areacity_code: nil,
phone_number: nil... | 22 | 47 | 0.668449 |
73deffe386fcc175913847009be611cfdfef43c9 | 2,988 | ex | Elixir | lib/mix/tasks/gen.api.ex | theblitzapp/phoenix_config | 984223f874405f4980babb9d377c3b709f10cd3b | [
"MIT"
] | null | null | null | lib/mix/tasks/gen.api.ex | theblitzapp/phoenix_config | 984223f874405f4980babb9d377c3b709f10cd3b | [
"MIT"
] | null | null | null | lib/mix/tasks/gen.api.ex | theblitzapp/phoenix_config | 984223f874405f4980babb9d377c3b709f10cd3b | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.PhoenixConfig.Gen.Api do
use Mix.Task
alias Mix.PhoenixConfigHelpers
alias PhoenixConfig.{AbsintheTypeMerge, AbsintheSchemaBuilder}
@shortdoc "Utilizes all the config files and generates a GraphQL API"
@moduledoc """
Once you have a few resource config files created by
using the `mix... | 31.125 | 108 | 0.703481 |
73df143fa4aec3e68a87110edf30e6482b360365 | 4,291 | ex | Elixir | clients/artifact_registry/lib/google_api/artifact_registry/v1/model/binding.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/artifact_registry/lib/google_api/artifact_registry/v1/model/binding.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/artifact_registry/lib/google_api/artifact_registry/v1/model/binding.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... | 80.962264 | 1,972 | 0.753904 |
73df1f219169d4f561e128c8f39a639b75556a89 | 998 | ex | Elixir | associations_lister.ex | JakTomczak/AssociationsLister | 0556f03f48e77f6eaf029dbce3f5a4909240ad23 | [
"Unlicense"
] | null | null | null | associations_lister.ex | JakTomczak/AssociationsLister | 0556f03f48e77f6eaf029dbce3f5a4909240ad23 | [
"Unlicense"
] | null | null | null | associations_lister.ex | JakTomczak/AssociationsLister | 0556f03f48e77f6eaf029dbce3f5a4909240ad23 | [
"Unlicense"
] | null | null | null | defmodule AssociationsLister do
@spec run(Ecto.Repo.t()) :: :ok
def run(repo) do
file_name = "associations.csv"
file = File.open!(file_name, [:write, :utf8])
[~w(From To Association_name)] # columns names
|> CSV.encode()
|> Enum.each(&IO.write(file, &1))
query = """
SELECT
... | 29.352941 | 63 | 0.624248 |
73df34d23d226fb5de01ba251ed6e77da34702e6 | 689 | exs | Elixir | portut/mix.exs | Redorb/ElixirTestbed | 7673452d21bba2126ebd833dd296f487cf0ae4c7 | [
"MIT"
] | null | null | null | portut/mix.exs | Redorb/ElixirTestbed | 7673452d21bba2126ebd833dd296f487cf0ae4c7 | [
"MIT"
] | null | null | null | portut/mix.exs | Redorb/ElixirTestbed | 7673452d21bba2126ebd833dd296f487cf0ae4c7 | [
"MIT"
] | null | null | null | defmodule Portut.Mixfile do
use Mix.Project
def project do
[app: :portut,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more i... | 20.264706 | 77 | 0.599419 |
73df38567b984e4a908d497dac642acc12f5ac65 | 328 | ex | Elixir | lib/events_tools_web/accounts/abilities.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | lib/events_tools_web/accounts/abilities.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | lib/events_tools_web/accounts/abilities.ex | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityTools.Abilities do
# alias CommunityTools.Accounts.User
#alias CommunityTools.Posts.Post
# defimpl Canada.Can, for: User do
# def can?(%User{ id: user_id }, action, %Post{ user_id: user_id })
# when action in [:show], do: true
# def can?(%User{ id: user_id }, _, _), do: false
# e... | 20.5 | 70 | 0.661585 |
73df38bd78246465046674706a2e2a81540063d0 | 7,235 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenses.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenses.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenses.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.309942 | 196 | 0.633863 |
73df4b828f73869a901888f71acef5698f6bfab9 | 926 | exs | Elixir | apps/datapio_k8s/mix.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 5 | 2021-05-14T22:01:08.000Z | 2021-09-21T16:28:09.000Z | apps/datapio_k8s/mix.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 198 | 2019-10-17T12:22:25.000Z | 2022-03-16T02:14:14.000Z | apps/datapio_k8s/mix.exs | datapio/opencore | 6e766c3b3a2ad8b07295c7fd27cffc0923284197 | [
"Apache-2.0"
] | 1 | 2022-03-10T08:54:36.000Z | 2022-03-10T08:54:36.000Z | defmodule Datapio.K8s.MixProject do
use Mix.Project
def project do
[
app: :datapio_k8s,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
start_permanent: ... | 17.807692 | 45 | 0.455724 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.