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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c84a0ae0ee287257bc8cf12e1dcd3f8f13937b4b | 1,959 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_scoped_list.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_scoped_list.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_scoped_list.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 38.411765 | 156 | 0.76876 |
c84a563739becac66bee635642586e16bf897b33 | 388 | ex | Elixir | lib/contentful/preview.ex | lswith/contentful.ex | 725a2475a786f2965eabb261b9011f2760633af2 | [
"MIT"
] | null | null | null | lib/contentful/preview.ex | lswith/contentful.ex | 725a2475a786f2965eabb261b9011f2760633af2 | [
"MIT"
] | 4 | 2019-06-05T00:44:12.000Z | 2021-07-22T19:14:35.000Z | lib/contentful/preview.ex | expert360/contentful.ex | eb2895fccc1968f72f6c0de24af884fcb9baa4d4 | [
"MIT"
] | 1 | 2017-11-17T03:20:31.000Z | 2017-11-17T03:20:31.000Z | defmodule Contentful.Preview do
@moduledoc """
A HTTP client for Contentful Preview Endpoint.
This module connects to the preview.contentful.com endpoint and requires the preview access token
"""
@sandbox Application.get_env(:contentful, :sandbox, false)
if !@sandbox do
use Contentful.Base, endpoint: "... | 27.714286 | 99 | 0.752577 |
c84a6b7f218c049f540b35ed75c4366b2c90f32d | 2,527 | exs | Elixir | mix.exs | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 2 | 2016-09-18T03:06:37.000Z | 2016-12-26T23:55:40.000Z | mix.exs | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 3 | 2016-09-30T08:38:15.000Z | 2016-10-01T19:26:10.000Z | mix.exs | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 5 | 2016-09-30T17:13:42.000Z | 2021-01-06T17:58:15.000Z | defmodule Fw.Mixfile do
use Mix.Project
@target System.get_env("NERVES_TARGET") || "rpi3"
@version Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
def project do
[app: :fw,
version: @version,
target: @target,
archives: [nerves_bootstrap: "~> 0.1.4"],
deps_path: "dep... | 20.379032 | 117 | 0.572616 |
c84a717a39c3069b816dfbf22cbe428d22e3cdee | 554 | exs | Elixir | test/models/address_test.exs | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | test/models/address_test.exs | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | test/models/address_test.exs | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | defmodule ClassList.AddressTest do
use ClassList.ModelCase
alias ClassList.Address
@valid_attrs %{address1: "some content", address2: "some content", city: "some content", phone: "some content", state: "some content", zip: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
cha... | 29.157895 | 157 | 0.727437 |
c84ac8c845fa76df8078f53e4a568a0783ccd7df | 3,388 | ex | Elixir | clients/partners/lib/google_api/partners/v2/api/client_messages.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/client_messages.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/client_messages.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.82716 | 196 | 0.692149 |
c84b118c1c2a034568610e496e716128cace6cd1 | 408 | ex | Elixir | lib/challenge_gov/challenges/bulletin.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/challenge_gov/challenges/bulletin.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/challenge_gov/challenges/bulletin.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Challenges.Bulletin do
@moduledoc """
Challenge bulletin schema
"""
use Ecto.Schema
import Ecto.Changeset
schema "" do
field :body, :string, virtual: true
field :body_delta, :string, virtual: true
field :subject, :string, virtual: true
end
def create_changeset(stru... | 19.428571 | 51 | 0.683824 |
c84b3d39832ab75674847b96b1452e46b4c1966a | 4,468 | ex | Elixir | lib/web/plugs/movement_context_parser.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/web/plugs/movement_context_parser.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/web/plugs/movement_context_parser.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Plugs.MovementContextParser do
use Plug.Builder
alias Accent.{Document, Repo, Version}
alias Accent.Scopes.Document, as: DocumentScope
alias Accent.Scopes.Version, as: VersionScope
alias Movement.Context
plug(:validate_params)
plug(:assign_document_format)
plug(:assign_document_parser... | 32.613139 | 153 | 0.673008 |
c84b4b8b271a7273749b4e03480ec6465e412966 | 3,246 | ex | Elixir | lib/plug/crypto/message_encryptor.ex | scrogson/plug | 576c04c2cba778f1ac9ca28aa71c50efa1046b50 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/plug/crypto/message_encryptor.ex | DavidAlphaFox/Plug | 3a98e7667d76ba8d2eb629e518bcb7ac83a1a188 | [
"Apache-2.0"
] | null | null | null | lib/plug/crypto/message_encryptor.ex | DavidAlphaFox/Plug | 3a98e7667d76ba8d2eb629e518bcb7ac83a1a188 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Crypto.MessageEncryptor do
@moduledoc ~S"""
`MessageEncryptor` is a simple way to encrypt values which get stored
somewhere you don't trust.
The cipher text and initialization vector are base64 encoded and
returned to you.
This can be used in situations similar to the `MessageVerifier`, but... | 30.622642 | 101 | 0.666359 |
c84b5c74e52bb725c68442ea565af02dd8c09fef | 1,606 | exs | Elixir | test/live_view_collection/twitter_test.exs | leandrocp/phoenix-liveview-collection | fc4547e7f4b94d96d42ce823b02591e54dc52507 | [
"MIT"
] | 32 | 2019-04-01T02:39:49.000Z | 2020-12-04T02:57:01.000Z | test/live_view_collection/twitter_test.exs | leandrocp/phoenix-liveview-collection | fc4547e7f4b94d96d42ce823b02591e54dc52507 | [
"MIT"
] | 13 | 2020-03-29T19:40:34.000Z | 2021-12-06T22:18:02.000Z | test/live_view_collection/twitter_test.exs | leandrocp/phoenix-liveview-collection | fc4547e7f4b94d96d42ce823b02591e54dc52507 | [
"MIT"
] | 4 | 2019-08-01T16:21:16.000Z | 2020-04-01T17:39:10.000Z | defmodule LiveViewCollection.TwitterTest do
use ExUnit.Case, async: true
alias LiveViewCollection.Twitter
test "id" do
assert Twitter.id(nil) == nil
assert Twitter.id("") == nil
assert Twitter.id("https://twitter.com/chris_mccord/status/1106291353670045696") ==
"1106291353670045696"
... | 32.77551 | 97 | 0.571606 |
c84b8504f5bfd79064691981a76c9639c3d465d8 | 75 | ex | Elixir | lib/onigumo_cli.ex | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 3 | 2021-10-19T12:09:30.000Z | 2022-01-30T13:24:57.000Z | lib/onigumo_cli.ex | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 67 | 2020-02-26T10:11:45.000Z | 2022-03-30T11:06:55.000Z | lib/onigumo_cli.ex | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 1 | 2021-11-13T13:32:34.000Z | 2021-11-13T13:32:34.000Z | defmodule Onigumo.CLI do
def main(_args) do
Onigumo.main()
end
end
| 12.5 | 24 | 0.693333 |
c84b92fd9cc0c0f9a1a2e3207cae6dfa0842af5c | 1,228 | ex | Elixir | clients/people/lib/google_api/people/v1/model/residence.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/residence.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/residence.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 29.95122 | 90 | 0.737785 |
c84bcd0446c394c354c03e29959dbc3b116abf0c | 1,059 | exs | Elixir | config/config.exs | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | 2 | 2018-08-24T18:09:34.000Z | 2020-07-20T01:42:37.000Z | config/config.exs | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | null | null | null | config/config.exs | jakswa/miotwo | b8455c0e019c952891f108dc5cd5ad134c57cbfc | [
"MIT"
] | 1 | 2018-05-16T22:57:57.000Z | 2018-05-16T22:57:57.000Z | # 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
import_config "scout_apm.exs"
# Configures the endpoint
config :miotwo, MiotwoWeb.En... | 31.147059 | 86 | 0.76204 |
c84bffc50b14ee9efc84fe0d73cfafa67ed52449 | 82 | exs | Elixir | test/views/page_view_test.exs | jespr/ex_blog_example | 0a014d4b88b224210a7e15d7c60521aff05059c9 | [
"Unlicense"
] | null | null | null | test/views/page_view_test.exs | jespr/ex_blog_example | 0a014d4b88b224210a7e15d7c60521aff05059c9 | [
"Unlicense"
] | null | null | null | test/views/page_view_test.exs | jespr/ex_blog_example | 0a014d4b88b224210a7e15d7c60521aff05059c9 | [
"Unlicense"
] | null | null | null | defmodule BlogExample.PageViewTest do
use BlogExample.ConnCase, async: true
end
| 20.5 | 39 | 0.829268 |
c84c05d22e7521f5f7ec4fc35286aae3c5c19d59 | 303 | exs | Elixir | apps/room_book/priv/repo/migrations/20180822014436_create_user_table.exs | adrianomota/room_book_umbrella | 701d4ad89b45739418df831156288b94346287df | [
"MIT"
] | null | null | null | apps/room_book/priv/repo/migrations/20180822014436_create_user_table.exs | adrianomota/room_book_umbrella | 701d4ad89b45739418df831156288b94346287df | [
"MIT"
] | null | null | null | apps/room_book/priv/repo/migrations/20180822014436_create_user_table.exs | adrianomota/room_book_umbrella | 701d4ad89b45739418df831156288b94346287df | [
"MIT"
] | null | null | null | defmodule RoomBook.Repo.Migrations.CreateUserTable do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string, null: false
add :username, :string, null: false
add :encrypted_password, :string, null: false
timestamps()
end
end
end
| 21.642857 | 53 | 0.650165 |
c84c49a84748c05900a88369f716d19e623d7619 | 482 | ex | Elixir | test/support/test_consumer.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | test/support/test_consumer.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | test/support/test_consumer.ex | djeusette/railway_ipc | 30fb58726e43148fe72fbfe63fdf46161fc933cf | [
"MIT"
] | null | null | null | defmodule RailwayIpc.TestConsumer do
@moduledoc false
use RailwayIpc.Consumer, broker: RailwayIpc.TestBroker, queue_name: "default:messages"
def handle_message(%Events.FailedToDoAThing{} = message, %{parent: parent} = metadata) do
send(parent, {__MODULE__, :handle_message, message, metadata})
{:error, "e... | 32.133333 | 91 | 0.73029 |
c84c91d5e268b67871fa33562c54a48db414ba71 | 670 | ex | Elixir | oeml-sdk/elixir/lib/oeml_restapi/model/validation_error.ex | Martin-Molinero/coinapi-sdk | 8633f61e0809e7ee4032100fe08454e8c4ad5e0c | [
"MIT"
] | 357 | 2017-05-29T15:09:19.000Z | 2022-03-30T15:34:10.000Z | oeml-sdk/elixir/lib/oeml_restapi/model/validation_error.ex | Martin-Molinero/coinapi-sdk | 8633f61e0809e7ee4032100fe08454e8c4ad5e0c | [
"MIT"
] | 68 | 2017-12-15T15:39:14.000Z | 2022-02-11T11:28:17.000Z | oeml-sdk/elixir/lib/oeml_restapi/model/validation_error.ex | Martin-Molinero/coinapi-sdk | 8633f61e0809e7ee4032100fe08454e8c4ad5e0c | [
"MIT"
] | 199 | 2017-06-01T07:51:14.000Z | 2022-03-25T11:52:28.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 OEML-RESTAPI.Model.ValidationError do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"type",
:"title",
:"status",
... | 19.705882 | 91 | 0.616418 |
c84cc4f3f6c251eeda39d95c8176f4579937b444 | 2,909 | ex | Elixir | lib/myclient/oauth.ex | bogumilmazur/allegrotest | 011d5a546c855f3e272a04dd9b1294593190e5b2 | [
"MIT"
] | null | null | null | lib/myclient/oauth.ex | bogumilmazur/allegrotest | 011d5a546c855f3e272a04dd9b1294593190e5b2 | [
"MIT"
] | null | null | null | lib/myclient/oauth.ex | bogumilmazur/allegrotest | 011d5a546c855f3e272a04dd9b1294593190e5b2 | [
"MIT"
] | null | null | null | defmodule Myclient.Oauth do
use GenServer
alias GenServer, as: GS
alias Myclient.Oauth, as: W
def client_id() do
Application.get_env(:myclient, :oauth2)
|> (fn %{client_id: client_id} -> client_id end).()
|> case do
{:system, lookup} -> System.get_env(lookup)
t -> t
end
end
de... | 24.241667 | 90 | 0.652114 |
c84cc67e806f9b0dcccc3286f4c4fad9c9aa7dee | 4,549 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/instance.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/instance.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/instance.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 79.807018 | 1,324 | 0.753352 |
c84ccdcf4105c0865e539b4e6c55bda596bffca0 | 1,574 | ex | Elixir | test/support/data_case.ex | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | 13 | 2020-06-03T08:17:45.000Z | 2021-03-11T04:37:52.000Z | test/support/data_case.ex | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | null | null | null | test/support/data_case.ex | nesimtunc/ThreeHundred60 | 1dd8465b44f037ecf7d43be9ebd99b9eadcee6af | [
"MIT"
] | 1 | 2020-06-26T16:53:14.000Z | 2020-06-26T16:53:14.000Z | defmodule Threehundred60.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 do... | 28.107143 | 77 | 0.69695 |
c84cd63394957377fd75ded95423b857e577145c | 506 | ex | Elixir | lib/karroake/karaoke_list/song.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | lib/karroake/karaoke_list/song.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | 1 | 2021-05-10T10:36:59.000Z | 2021-05-10T10:36:59.000Z | lib/karroake/karaoke_list/song.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | defmodule Karroake.KaraokeList.Song do
use Ecto.Schema
import Ecto.Changeset
alias Karroake.KaraokeList.Request
@primary_key {:id, :integer, []}
schema "songs" do
field :artist, :string
field :song, :string
has_many :requests, Request
timestamps(type: :utc_datetime)
end
@doc false
de... | 21.083333 | 48 | 0.667984 |
c84cd649b894b6f9da79dc2242876a5611c63dfc | 343 | ex | Elixir | lib/floki/html_tree/text.ex | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | 1,778 | 2015-01-07T14:12:31.000Z | 2022-03-29T22:42:48.000Z | lib/floki/html_tree/text.ex | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | 279 | 2015-01-01T15:54:50.000Z | 2022-03-28T18:06:03.000Z | deps/floki/lib/floki/html_tree/text.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 166 | 2015-04-24T20:48:02.000Z | 2022-03-28T17:29:05.000Z | defmodule Floki.HTMLTree.Text do
@moduledoc false
# Represents a text node inside an HTML tree with reference to its parent node id.
defstruct content: "", node_id: nil, parent_node_id: nil
@type t :: %__MODULE__{
content: String.t(),
node_id: pos_integer(),
parent_node_id: pos_i... | 26.384615 | 84 | 0.655977 |
c84cec12ecab612cb0480ed02dae9f22522d9a42 | 1,631 | ex | Elixir | lib/chimera.ex | codedge-llc/chimera | 5e8a32fed79b51d4ee9a8e9412e4e6aeb6a8449d | [
"MIT"
] | null | null | null | lib/chimera.ex | codedge-llc/chimera | 5e8a32fed79b51d4ee9a8e9412e4e6aeb6a8449d | [
"MIT"
] | null | null | null | lib/chimera.ex | codedge-llc/chimera | 5e8a32fed79b51d4ee9a8e9412e4e6aeb6a8449d | [
"MIT"
] | null | null | null | defmodule Chimera do
@moduledoc false
defmacro __using__(_) do
quote location: :keep do
def new(from, opts \\ [])
def new(from, opts) when is_atom(from) do
new(struct(from), opts)
end
def new(from, opts) when is_map(from) or is_list(from) do
__MODULE__
|> struc... | 24.712121 | 73 | 0.52054 |
c84cf3de537bcfd6f075dbc91cbc47487760f736 | 2,377 | exs | Elixir | test/exshome/tag_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | test/exshome/tag_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | test/exshome/tag_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule ExshomeTest.TagTest do
use ExUnit.Case, async: true
alias Exshome.Tag
alias Exshome.Tag.Mapping
describe "check tag logic" do
test "check tag_mapping after refresh" do
assert Tag.tag_mapping()
assert Tag.refresh_tag_mapping() == Tag.tag_mapping()
end
end
describe "check mappi... | 28.987805 | 74 | 0.546908 |
c84cf75de3f726f103bccf8fd63223e5c31c111b | 721 | ex | Elixir | lib/scrivener/page.ex | blueangel0723/scrivener | b9499b9eee101e6df9b4cfcf73e9ba15f0a9ac87 | [
"MIT"
] | null | null | null | lib/scrivener/page.ex | blueangel0723/scrivener | b9499b9eee101e6df9b4cfcf73e9ba15f0a9ac87 | [
"MIT"
] | null | null | null | lib/scrivener/page.ex | blueangel0723/scrivener | b9499b9eee101e6df9b4cfcf73e9ba15f0a9ac87 | [
"MIT"
] | 2 | 2017-04-14T06:59:05.000Z | 2017-04-20T10:09:11.000Z | defmodule Scrivener.Page do
@moduledoc """
A `Scrivener.Page` has 5 fields that can be accessed: `entries`, `page_number`, `page_size`, `total_entries` and `total_pages`.
page = MyApp.Module.paginate(params)
page.entries
page.page_number
page.page_size
page.total_entries
page.t... | 25.75 | 129 | 0.675451 |
c84cfed8a90055e069e43af85ad31adc8c6885e2 | 770 | ex | Elixir | web/views/source_key_pipelines_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | web/views/source_key_pipelines_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | web/views/source_key_pipelines_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.SourceKeyPipelinesView do
use CncfDashboardApi.Web, :view
def render("index.json", %{source_key_pipelines: source_key_pipelines}) do
%{data: render_many(source_key_pipelines, CncfDashboardApi.SourceKeyPipelinesView, "source_key_pipelines.json")}
end
def render("show.json", %{sou... | 40.526316 | 116 | 0.792208 |
c84d1d5c08e17c6ab1e195605d163a70733b371f | 384 | ex | Elixir | lib/blue_jet_web/plugs/filter.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet_web/plugs/filter.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet_web/plugs/filter.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Plugs.Filter do
import Plug.Conn
def init(opts), do: opts
def call(%Plug.Conn{query_params: %{"filter" => filter}} = conn, _default) do
filter = Enum.reduce(filter, %{}, fn({k, v}, acc) ->
Map.put(acc, Inflex.underscore(k), v)
end)
assign(conn, :filter, filter)
end
def ... | 24 | 79 | 0.635417 |
c84d2915ec734a620e324dfb3cacb9327faa929f | 25,266 | ex | Elixir | lib/elixir/lib/kernel/typespec.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.Typespec do
@moduledoc """
Provides macros and functions for working with typespecs.
The attributes `@type`, `@opaque`, `@typep`, `@spec` and
`@callback` available in modules are handled by the equivalent
macros defined by this module.
## Defining a type
@type type_name :: type
... | 30.963235 | 132 | 0.627246 |
c84d8c920ac6817a51708801bb5569d65bd107c7 | 367 | ex | Elixir | lib/addict/interactors/insert_user.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 750 | 2015-01-18T23:00:36.000Z | 2021-03-24T22:11:09.000Z | lib/addict/interactors/insert_user.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 130 | 2015-01-19T12:39:42.000Z | 2021-09-28T22:40:52.000Z | lib/addict/interactors/insert_user.ex | moxley/addict | 9271c60d9a862edcefc31e8a764b3eb5a5905171 | [
"MIT"
] | 151 | 2015-01-19T09:24:44.000Z | 2020-09-21T13:52:46.000Z | defmodule Addict.Interactors.InsertUser do
@doc """
Inserts the `schema` populated with `user_params` to the `repo`.
Returns `{:ok, user}` or `{:error, error_message}`
"""
def call(schema, user_params, repo) do
user_params = for {key, val} <- user_params, into: %{}, do: {String.to_atom(key), val}
rep... | 30.583333 | 90 | 0.675749 |
c84dae5892d4f0154fc87327e87f058ce7867ed1 | 2,858 | ex | Elixir | apps/tai/lib/tai/events/order_updated.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/events/order_updated.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/events/order_updated.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Events.OrderUpdated do
@type client_id :: Tai.Orders.Order.client_id()
@type venue_id :: Tai.Venues.Adapter.venue_id()
@type credential_id :: Tai.Venues.Adapter.credential_id()
@type side :: Tai.Orders.Order.side()
@type type :: Tai.Orders.Order.type()
@type time_in_force :: Tai.Orders.Order.t... | 26.71028 | 95 | 0.628411 |
c84dc1ed9416aae8dcded3a4127408e0ed986f71 | 1,859 | ex | Elixir | lib/cloudfront_signer.ex | teamapp/cloudfront-signer | db6aa03c093c4ca170a1890a30e4972d8aa54a48 | [
"MIT"
] | 2 | 2019-04-02T20:12:27.000Z | 2019-07-05T19:23:11.000Z | lib/cloudfront_signer.ex | teamapp/cloudfront-signer | db6aa03c093c4ca170a1890a30e4972d8aa54a48 | [
"MIT"
] | null | null | null | lib/cloudfront_signer.ex | teamapp/cloudfront-signer | db6aa03c093c4ca170a1890a30e4972d8aa54a48 | [
"MIT"
] | 6 | 2018-08-03T02:06:09.000Z | 2022-03-25T13:53:20.000Z | defmodule CloudfrontSigner do
@moduledoc """
Elixir implementation of cloudfront's signed url algorithm. Basic usage is:
```
CloudfrontSigner.Distribution.from_config(:scope, :key)
|> CloudfrontSigner.sign("some/path", [arg: "val"], some_expiry)
```
"""
alias CloudfrontSigner.{Distribution, Policy, Si... | 37.938776 | 118 | 0.701452 |
c84dc634c7275256f75bff16da0082e56db8c3a9 | 199 | exs | Elixir | test/phlearn_web/controllers/page_controller_test.exs | orneryhippo/phlearn | 7ef72120c8d4719ef90809f16907b5e98d6c54b1 | [
"MIT"
] | null | null | null | test/phlearn_web/controllers/page_controller_test.exs | orneryhippo/phlearn | 7ef72120c8d4719ef90809f16907b5e98d6c54b1 | [
"MIT"
] | null | null | null | test/phlearn_web/controllers/page_controller_test.exs | orneryhippo/phlearn | 7ef72120c8d4719ef90809f16907b5e98d6c54b1 | [
"MIT"
] | null | null | null | defmodule PhlearnWeb.PageControllerTest do
use PhlearnWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
c84dca817af7b82a036c2a4682497760a6dde607 | 1,532 | exs | Elixir | test/vapor/provider/group_test.exs | devonestes/vapor | f51b1ca420de9c1ec53def5268c83480a39b186e | [
"MIT"
] | null | null | null | test/vapor/provider/group_test.exs | devonestes/vapor | f51b1ca420de9c1ec53def5268c83480a39b186e | [
"MIT"
] | null | null | null | test/vapor/provider/group_test.exs | devonestes/vapor | f51b1ca420de9c1ec53def5268c83480a39b186e | [
"MIT"
] | null | null | null | defmodule Vapor.Provider.GroupTest do
use ExUnit.Case, async: false
alias Vapor.Provider.{Group, Env}
setup do
System.delete_env("DB_HOST")
System.delete_env("DB_PORT")
:ok
end
test "groups return a grouped set of configs" do
System.put_env("DB_HOST", "4369")
provider = %Group{name: :... | 25.533333 | 79 | 0.604439 |
c84dd64a2130b440eb28e763a7bc44802fd8092a | 16,778 | ex | Elixir | lib/ex_crypto.ex | ardhitama/ex_crypto | 6d712a75cc423b337eca731bf1a2f98de0fc439d | [
"MIT"
] | null | null | null | lib/ex_crypto.ex | ardhitama/ex_crypto | 6d712a75cc423b337eca731bf1a2f98de0fc439d | [
"MIT"
] | null | null | null | lib/ex_crypto.ex | ardhitama/ex_crypto | 6d712a75cc423b337eca731bf1a2f98de0fc439d | [
"MIT"
] | null | null | null | defmodule ExCrypto do
@moduledoc """
The ExCrypto module exposes a subset of functionality from the Erlang `crypto`
module with the goal of making it easier to include strong cryptography in your
Elixir applications.
This module provides functions for symmetric-key cryptographic operations using
AES in GCM... | 34.101626 | 119 | 0.672071 |
c84dd7c64f6bd566fb50047e1ea726d4b34e5dbd | 4,122 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v4/api/pagespeedapi.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v4/api/pagespeedapi.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v4/api/pagespeedapi.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 42.494845 | 170 | 0.700146 |
c84deb0ddf1a9741ea19743d8355b7fcbb22f463 | 1,738 | exs | Elixir | apps/imposc/test/parametric/one_n_params_test.exs | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc/test/parametric/one_n_params_test.exs | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc/test/parametric/one_n_params_test.exs | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | defmodule OneNParamsTest do
use ExUnit.Case
alias OneNParams
@moduletag :capture_log
doctest OneNParams
test "module exists" do
assert is_list(OneNParams.module_info())
end
test "derive error cases - omega" do
for omega <- [-3.7, 0], do: assert(elem(OneNParams.derive(omega, 0.8, 1), 0) == :er... | 26.333333 | 98 | 0.60817 |
c84e2263be693f33e6254a536ab51b099234ac10 | 1,644 | ex | Elixir | songrep/lib/songrep_web/endpoint.ex | Galanda/Songrep | a533cbd14f3f9625cc54d358c27fcac16d9e96c0 | [
"MIT"
] | null | null | null | songrep/lib/songrep_web/endpoint.ex | Galanda/Songrep | a533cbd14f3f9625cc54d358c27fcac16d9e96c0 | [
"MIT"
] | null | null | null | songrep/lib/songrep_web/endpoint.ex | Galanda/Songrep | a533cbd14f3f9625cc54d358c27fcac16d9e96c0 | [
"MIT"
] | null | null | null | defmodule SongrepWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :songrep
socket "/socket", SongrepWeb.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.Sta... | 28.842105 | 95 | 0.706813 |
c84e296572c9d67aed6fd85a955e12747cc53687 | 993 | exs | Elixir | test/cadet/incentives/achievement_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | null | null | null | test/cadet/incentives/achievement_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | test/cadet/incentives/achievement_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule Cadet.Incentives.AchievementTest do
alias Cadet.Incentives.Achievement
use Cadet.ChangesetCase, entity: Achievement
describe "Changesets" do
test "valid changesets" do
assert_changeset(
%{
uuid: "d1fdae3f-2775-4503-ab6b-e043149d4a15",
title: "Hello World",
... | 27.583333 | 81 | 0.577039 |
c84e3684538e5203b2b2828c6f71e2ca1aceab8b | 58 | exs | Elixir | apps/graphql/test/test_helper.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/test/test_helper.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/test/test_helper.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | ExUnit.start()
ExUnit.configure(exclude: [pending: true])
| 19.333333 | 42 | 0.758621 |
c84e85be25d17efbfcf0a43fc6d4f480f6361ef3 | 1,178 | ex | Elixir | lib/ethereumex/http_client.ex | InoMurko/ethereumex | f8e18f8aa2d2f1719a67c69f11486621416ac324 | [
"MIT"
] | null | null | null | lib/ethereumex/http_client.ex | InoMurko/ethereumex | f8e18f8aa2d2f1719a67c69f11486621416ac324 | [
"MIT"
] | null | null | null | lib/ethereumex/http_client.ex | InoMurko/ethereumex | f8e18f8aa2d2f1719a67c69f11486621416ac324 | [
"MIT"
] | null | null | null | defmodule Ethereumex.HttpClient do
use Ethereumex.Client.BaseClient
alias Ethereumex.Config
@moduledoc false
@spec post_request(binary(), []) :: {:ok | :error, any()}
def post_request(payload, opts) do
headers = [{"Content-Type", "application/json"}]
options = [hackney: [pool: :default]] ++ Config.ht... | 33.657143 | 75 | 0.599321 |
c84eaa79c8c4308791ae44496f8c75988e580f20 | 986 | ex | Elixir | lib/new_relic/harvest/collector/supervisor.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/supervisor.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/supervisor.ex | simonprev/elixir_agent | 56e6bf32259706ba45f3a158079f8e5a26f28b91 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Harvest.Collector.Supervisor do
use Supervisor
@moduledoc false
alias NewRelic.Harvest.Collector
def start_link(_) do
Supervisor.start_link(__MODULE__, [])
end
def init(_) do
children = [
data_supervisor(Collector.Metric, :data_report_period),
data_supervisor(Colle... | 29.878788 | 84 | 0.754564 |
c84ebe4dcfb84813a65d559ed6124a02c6494435 | 845 | ex | Elixir | example_app/web/controllers/noegle/session_controller.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | example_app/web/controllers/noegle/session_controller.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | 1 | 2017-05-08T15:09:09.000Z | 2017-05-10T06:05:24.000Z | example_app/web/controllers/noegle/session_controller.ex | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | defmodule NoegleExampleApp.Noegle.SessionController do
use NoegleExampleApp.Web, :controller
alias NoegleExampleApp.User
def new(conn, _) do
changeset = User.changeset(%User{})
render conn, "new.html", changeset: changeset
end
def create(conn, %{"session" => %{"email" => email, "password" => passwor... | 27.258065 | 82 | 0.623669 |
c84ec2d568639ffc5fa7dd15a6894ecff77545a1 | 21,774 | exs | Elixir | test/mongo_test.exs | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | test/mongo_test.exs | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | test/mongo_test.exs | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.Test do
use MongoTest.Case, async: true
defmodule Pool do
use Mongo.Pool, name: __MODULE__, adapter: Mongo.Pool.Poolboy
end
defmodule LoggingPool do
use Mongo.Pool, name: __MODULE__, adapter: Mongo.Pool.Poolboy
def log(return, _queue_time, _query_time, fun, args) do
Process.... | 40.928571 | 120 | 0.591485 |
c84ed3f820d13231c5d3676edb0eaac1af0ebc9e | 19,944 | ex | Elixir | lib/ecto.ex | fertapric/ecto | c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4 | [
"Apache-2.0"
] | null | null | null | lib/ecto.ex | fertapric/ecto | c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4 | [
"Apache-2.0"
] | null | null | null | lib/ecto.ex | fertapric/ecto | c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto do
@moduledoc ~S"""
Ecto is split into 4 main components:
* `Ecto.Repo` - repositories are wrappers around the data store.
Via the repository, we can create, update, destroy and query existing entries.
A repository needs an adapter and credentials to communicate to the database
... | 32.965289 | 94 | 0.679653 |
c84edd36c3d8800088ee2451c87020c3d830531f | 619 | exs | Elixir | test/delx/delegator/mock_test.exs | tlux/delx | 8510f5ae2a6d9ec3886a3feed050ffcfd795937d | [
"MIT"
] | 2 | 2021-02-26T05:46:07.000Z | 2021-04-01T16:43:03.000Z | test/delx/delegator/mock_test.exs | tlux/delx | 8510f5ae2a6d9ec3886a3feed050ffcfd795937d | [
"MIT"
] | 1 | 2019-07-28T21:15:47.000Z | 2019-07-28T21:15:47.000Z | test/delx/delegator/mock_test.exs | tlux/delx | 8510f5ae2a6d9ec3886a3feed050ffcfd795937d | [
"MIT"
] | null | null | null | defmodule Delx.Delegator.MockTest do
use ExUnit.Case, async: true
alias Delx.Delegator.Mock
alias Delx.MockedDelegationError
describe "apply/3" do
test "send and return call args" do
source = {SourceModuleA, :my_fun}
target = {TargetModule, :my_other_fun}
args = [
:arg1_stub,
... | 21.344828 | 44 | 0.607431 |
c84ef3f28ce68b986694986ee5abcd57db0e7ad0 | 737 | exs | Elixir | mix.exs | TobiG77/mould | c3025eb64fca2c1ca4f542f88a72d4e5db3742bb | [
"MIT"
] | null | null | null | mix.exs | TobiG77/mould | c3025eb64fca2c1ca4f542f88a72d4e5db3742bb | [
"MIT"
] | null | null | null | mix.exs | TobiG77/mould | c3025eb64fca2c1ca4f542f88a72d4e5db3742bb | [
"MIT"
] | null | null | null | defmodule Mould.Mixfile do
use Mix.Project
def project do
[app: :mould,
version: "0.1.0",
elixir: "~> 1.4",
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... | 21.676471 | 79 | 0.622795 |
c84f181434e9c5196507b79bbdb3bac93e3a1e22 | 992 | ex | Elixir | lib/surface/components/form/number_input.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2020-12-29T10:43:19.000Z | 2020-12-29T10:43:19.000Z | lib/surface/components/form/number_input.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | lib/surface/components/form/number_input.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.NumberInput do
@moduledoc """
An input field that let the user to enter a **number**.
Provides a wrapper for Phoenix.HTML.Form's `number_input/3` function.
All options passed via `opts` will be sent to `number_input/3`, `value` and
`class` can be set directly and will overr... | 28.342857 | 88 | 0.683468 |
c84f24b49819ee75ed4fc50443876bfcd68f5a83 | 1,309 | ex | Elixir | apps/omg_eth/test/support/dev_node.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/support/dev_node.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/support/dev_node.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 28.456522 | 85 | 0.706646 |
c84f4f9bfc6c7a7ccb909b90a0d5e5f65f68e35f | 2,694 | exs | Elixir | lib/elixir/test/elixir/test_helper.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/test_helper.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/test_helper.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | exclude =
case :erlang.system_info(:otp_release) do
'19' -> [otp19: false]
_ -> []
end
ExUnit.start [exclude: exclude, trace: "--trace" in System.argv]
# Beam files compiled on demand
path = Path.expand("../../tmp/beams", __DIR__)
File.rm_rf!(path)
File.mkdir_p!(path)
Code.prepend_path(path)
Code.comp... | 24.053571 | 107 | 0.667409 |
c84f5bf1e5b8ba1f0eceeeaaf2703f6f22049fac | 6,675 | ex | Elixir | lib/swoosh/adapters/mailjet.ex | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 1 | 2020-12-22T19:28:30.000Z | 2020-12-22T19:28:30.000Z | lib/swoosh/adapters/mailjet.ex | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 1 | 2020-11-13T13:48:09.000Z | 2020-11-13T13:48:09.000Z | lib/swoosh/adapters/mailjet.ex | nash-io/swoosh | 05c8676890da07403225c302f9a069fc7d221330 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.Mailjet do
@moduledoc ~S"""
An adapter that sends email using the Mailjet API.
For reference: [Mailjet API docs](https://dev.mailjet.com/guides/#send-api-v3-1)
## Dependency
Mailjet adapter requires `Plug` to work properly.
## Example
# config/config.exs
config :sa... | 25.872093 | 82 | 0.633858 |
c84f61874ff22d161b8a856b690b28d86c0f2680 | 821 | exs | Elixir | test/00_nouns/as_cast_test.exs | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | test/00_nouns/as_cast_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | test/00_nouns/as_cast_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule Nouns.AsCastTest do
use EctoTestDSL.Case
alias T.Nouns.AsCast
defmodule Association do
use Ecto.Schema
schema "association" do
field :value, :integer
end
end
defmodule Schema do
use Ecto.Schema
schema "struct" do
field :int_field, :integer, virtual: true
f... | 21.051282 | 48 | 0.637028 |
c84f8cc88c39851b3b6f2a241b0ab9f7df81bc85 | 17,979 | exs | Elixir | test/p_enum_test.exs | zfletch/p_enum | 912e87f779b5ff49edf2b56f63a8dc4a6ff9bb40 | [
"Apache-2.0"
] | null | null | null | test/p_enum_test.exs | zfletch/p_enum | 912e87f779b5ff49edf2b56f63a8dc4a6ff9bb40 | [
"Apache-2.0"
] | null | null | null | test/p_enum_test.exs | zfletch/p_enum | 912e87f779b5ff49edf2b56f63a8dc4a6ff9bb40 | [
"Apache-2.0"
] | null | null | null | defmodule PEnumTest do
use ExUnit.Case
import ExUnit.CaptureLog
require Logger
doctest PEnum
describe "pchunk_by/2" do
test "behavior matches Enum" do
assert PEnum.pchunk_by([1, 2, 2, 3, 4, 4, 6, 7, 7], &(rem(&1, 2) == 1)) ==
[[1], [2, 2], [3], [4, 4, 6], [7, 7]]
assert PEnum... | 32.22043 | 100 | 0.521831 |
c84f923f92a423695a6d0995404fe22483566ac5 | 1,516 | exs | Elixir | test/changelog/policies/admins_only_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | test/changelog/policies/admins_only_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | test/changelog/policies/admins_only_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.Policies.AdminsOnlyTest do
use Changelog.PolicyCase
alias Changelog.Policies
test "only admins can new/create" do
refute Policies.AdminsOnly.create(@guest)
refute Policies.AdminsOnly.new(@user)
refute Policies.AdminsOnly.new(@editor)
refute Policies.AdminsOnly.new(@host)
... | 32.956522 | 51 | 0.710422 |
c84faf272a56638fbb5fb2277e3d0cb2363f8c37 | 9,750 | ex | Elixir | lib/arc_cache.ex | SteffenBauer/arc_cache | a95c24d415ce4050f53ae948a6cc8c70dd193c36 | [
"MIT"
] | 1 | 2016-12-10T18:56:40.000Z | 2016-12-10T18:56:40.000Z | lib/arc_cache.ex | SteffenBauer/arc_cache | a95c24d415ce4050f53ae948a6cc8c70dd193c36 | [
"MIT"
] | null | null | null | lib/arc_cache.ex | SteffenBauer/arc_cache | a95c24d415ce4050f53ae948a6cc8c70dd193c36 | [
"MIT"
] | null | null | null | defmodule ArcCache do
@moduledoc """
This modules implements an ARC cache as described in:
http://www.cs.cmu.edu/~15-440/READINGS/megiddo-computer2004.pdf
For using it, you need to start it:
iex> ArcCache.start_link(:my_cache, 1000)
Or add it to your supervisor tree, like: `worker(ArcCache, [:my_cac... | 30 | 98 | 0.60359 |
c84fb6802bd0bdb9893d06f52cef4ffedd2298d4 | 150 | ex | Elixir | apps/local_ledger/lib/local_ledger/status.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/local_ledger/lib/local_ledger/status.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/status.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule LocalLedger.Status do
@moduledoc """
Module used to check if the application is alive and well.
"""
def check do
:ok
end
end
| 15 | 60 | 0.68 |
c84fea3bde31e4b36f823b5e460ffdb121d6ac3e | 20,015 | ex | Elixir | lib/codi/attribute/attribute.ex | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | lib/codi/attribute/attribute.ex | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | lib/codi/attribute/attribute.ex | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | defmodule Plymio.Codi.Attribute do
@moduledoc false
defmacro __using__(_opts \\ []) do
quote do
@plymio_codi_key_state :state
@plymio_codi_key_forms_edit :forms_edit
@plymio_codi_key_form :form
@plymio_codi_key_forms :forms
@plymio_codi_key_vekil :vekil
@plymio_codi_key_pa... | 49.912718 | 101 | 0.66685 |
c84ff53a26df3224e6b3287c2df7cfb8a31b4718 | 7,189 | ex | Elixir | lib/rolodex/dsl.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 36 | 2019-02-19T19:07:38.000Z | 2022-02-23T18:14:31.000Z | lib/rolodex/dsl.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 4 | 2019-02-19T18:55:46.000Z | 2019-05-03T18:45:53.000Z | lib/rolodex/dsl.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 3 | 2019-02-19T19:50:05.000Z | 2020-11-20T11:26:57.000Z | defmodule Rolodex.DSL do
@moduledoc false
alias Rolodex.{Field, Schema}
# Sets the various shared module attributes used in DSL macros to collect
# metadata definitions
defmacro __using__(_) do
quote do
# Used in various macro helpers
alias Rolodex.Field
# Used to collect content body... | 28.30315 | 94 | 0.665044 |
c850053d1e8f9c7cdf13237055e8e888b859879f | 82 | exs | Elixir | test/exboard_web/views/layout_view_test.exs | eahanson/exboard | ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db | [
"MIT"
] | null | null | null | test/exboard_web/views/layout_view_test.exs | eahanson/exboard | ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db | [
"MIT"
] | 2 | 2021-03-09T18:32:46.000Z | 2021-05-10T15:18:35.000Z | test/exboard_web/views/layout_view_test.exs | eahanson/exboard | ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db | [
"MIT"
] | null | null | null | defmodule ExboardWeb.LayoutViewTest do
use ExboardWeb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
c850287a3e44edcfcdd7d66a8862e3622cd43455 | 198 | ex | Elixir | learnelixir/4.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | learnelixir/4.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | learnelixir/4.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | defmodule Math do
@docmodule """
Math Operator
"""
@doc """
Adds two integers togeter.
## Examples
add(1,2)
3
add(5,5)
10
"""
def add(a, b) do
a + b
end
end
| 9.9 | 28 | 0.505051 |
c85035a12efd6cb9f5e2ea63d2129ce8518dd78d | 750 | exs | Elixir | apps/client/test/client_bucket_test.exs | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 8 | 2019-12-20T15:44:08.000Z | 2021-01-25T18:30:25.000Z | apps/client/test/client_bucket_test.exs | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T17:20:00.000Z | 2019-11-08T17:20:00.000Z | apps/client/test/client_bucket_test.exs | tchupp/SteveMQ | a1e84fd5ab9c44094e31a9dee67fe970b3cee163 | [
"BSD-3-Clause"
] | null | null | null | defmodule Client.BucketTest do
use ExUnit.Case
doctest Client.Bucket
setup do
_ = start_supervised!({Registry, keys: :unique, name: Client.Bucket})
:ok
end
test "via_name/2", context do
{mod, name} = {__MODULE__, context.test}
assert {:via, Registry, {Client.Bucket, {^mod, ^name}}} = Client... | 27.777778 | 95 | 0.677333 |
c8506c802682d862f32c18a3848dc8d16c2bbfa4 | 1,170 | ex | Elixir | lib/mudkip_web/channels/user_socket.ex | KaiaHa/MUDkip | 10c1208d117d3426474c9b39b864972b7c41d65d | [
"MIT"
] | null | null | null | lib/mudkip_web/channels/user_socket.ex | KaiaHa/MUDkip | 10c1208d117d3426474c9b39b864972b7c41d65d | [
"MIT"
] | null | null | null | lib/mudkip_web/channels/user_socket.ex | KaiaHa/MUDkip | 10c1208d117d3426474c9b39b864972b7c41d65d | [
"MIT"
] | null | null | null | defmodule MudkipWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", MudkipWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and aut... | 30.789474 | 83 | 0.702564 |
c85076359a2493a9f43f28c41ff7544a407f3f65 | 128 | exs | Elixir | config/test.exs | tanguilp/apisex_filter_throttler | ae842b18d926532b405972929455546a9aba9103 | [
"Apache-2.0"
] | 2 | 2019-05-16T16:28:56.000Z | 2021-04-17T04:16:32.000Z | config/test.exs | tanguilp/apisex_filter_throttler | ae842b18d926532b405972929455546a9aba9103 | [
"Apache-2.0"
] | null | null | null | config/test.exs | tanguilp/apisex_filter_throttler | ae842b18d926532b405972929455546a9aba9103 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :hammer,
backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]}
| 25.6 | 95 | 0.71875 |
c85079d218369b5cf52430b6b87d14c22463a9e8 | 56 | ex | Elixir | lib/api_web/views/layout_view.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | lib/api_web/views/layout_view.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | lib/api_web/views/layout_view.ex | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule ApiWeb.LayoutView do
use Api.Web, :view
end
| 14 | 30 | 0.767857 |
c85093637de61c8e325a4770aac8408e41c588dd | 4,083 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 51.683544 | 488 | 0.713691 |
c850a53316a2ca33cec82261fc7325b0da40823f | 6,883 | ex | Elixir | lib/filtrex.ex | rcdilorenzo/filtrex | 392a87aa5eed99a2987dd6e615f27536714d4ad2 | [
"MIT"
] | 181 | 2016-01-08T02:58:37.000Z | 2022-01-20T07:32:07.000Z | lib/filtrex.ex | rcdilorenzo/filtrex | 392a87aa5eed99a2987dd6e615f27536714d4ad2 | [
"MIT"
] | 53 | 2016-02-05T13:56:09.000Z | 2020-12-09T00:18:55.000Z | lib/filtrex.ex | rcdilorenzo/filtrex | 392a87aa5eed99a2987dd6e615f27536714d4ad2 | [
"MIT"
] | 27 | 2016-05-19T12:54:09.000Z | 2021-10-19T08:27:48.000Z | defmodule Filtrex do
@moduledoc """
Filtrex consists of the following primary components:
* `Filtrex` - handles the overall parsing of filters and delegates to
`Filtrex.AST` to build an ecto query expression
* `Filtrex.Condition` - an abstract module built to delegate to specific condition modules i... | 35.479381 | 216 | 0.648845 |
c850b37cc3173427eae7d3619560b63a0d9837e1 | 574 | exs | Elixir | chapter6/mix.exs | aifrak/elixir-in-action-exercises | 45096cf6c74af2ea691e1df1e31058cb749214c2 | [
"MIT"
] | null | null | null | chapter6/mix.exs | aifrak/elixir-in-action-exercises | 45096cf6c74af2ea691e1df1e31058cb749214c2 | [
"MIT"
] | null | null | null | chapter6/mix.exs | aifrak/elixir-in-action-exercises | 45096cf6c74af2ea691e1df1e31058cb749214c2 | [
"MIT"
] | null | null | null | defmodule Chapter6.MixProject do
use Mix.Project
def project do
[
app: :chapter6,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_... | 19.793103 | 87 | 0.578397 |
c850e0ec0bfe1b26ef5a18928921d8f4cbbed67b | 717 | ex | Elixir | web/gettext.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | web/gettext.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | web/gettext.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | 1 | 2021-09-24T12:32:05.000Z | 2021-09-24T12:32:05.000Z | defmodule Magnetissimo.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 Magnetissimo.Gettext
# Simple translation
gettext "Here ... | 28.68 | 72 | 0.684798 |
c850ecd476cbfcccd4a04f4904368fb573ca460f | 323 | exs | Elixir | apps/teaching_management/priv/repo/migrations/20200712014731_create_students.exs | danielscosta/teaching_management | c703374a27174763d5309b9144ba09488eeb95c4 | [
"MIT"
] | 2 | 2020-07-28T14:10:41.000Z | 2020-10-20T20:32:27.000Z | apps/teaching_management/priv/repo/migrations/20200712014731_create_students.exs | danielscosta/teaching_management | c703374a27174763d5309b9144ba09488eeb95c4 | [
"MIT"
] | null | null | null | apps/teaching_management/priv/repo/migrations/20200712014731_create_students.exs | danielscosta/teaching_management | c703374a27174763d5309b9144ba09488eeb95c4 | [
"MIT"
] | null | null | null | defmodule TeachingManagement.Repo.Migrations.CreateStudents do
use Ecto.Migration
def change do
create table(:students, primary_key: false) do
add :id, :binary_id, primary_key: true
add :internal_code, :string
timestamps()
end
create unique_index(:students, [:internal_code])
end
e... | 21.533333 | 62 | 0.712074 |
c8512ad9681edd15b62355af8e79d1c1bd223130 | 4,223 | ex | Elixir | web/processes/v2_animal.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | web/processes/v2_animal.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | web/processes/v2_animal.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.VersionedAnimal do
defstruct snapshots: [], latest_version: 1, creation_date: nil
alias Eecrit.VersionedAnimal
alias Eecrit.VersionedAnimal.Snapshot
defmodule Snapshot do
defstruct id: nil,
version: 1, # Set only when snapshot is externalized
name: nil,
species: nil,
... | 27.422078 | 84 | 0.666351 |
c8514dd836a4c7779a7bf634e70691032d07187f | 1,369 | ex | Elixir | lib/notified_phoenix/notification_list_item_component.ex | fremantle-industries/notified_phoenix | aeb17fd5734f4ab494c14df04a578a357ef40553 | [
"MIT"
] | 16 | 2021-05-11T23:50:12.000Z | 2021-08-09T06:19:24.000Z | lib/notified_phoenix/notification_list_item_component.ex | fremantle-industries/notified_phoenix | aeb17fd5734f4ab494c14df04a578a357ef40553 | [
"MIT"
] | 20 | 2021-05-11T18:57:24.000Z | 2022-03-01T20:03:25.000Z | lib/notified_phoenix/notification_list_item_component.ex | fremantle-industries/notified_phoenix | aeb17fd5734f4ab494c14df04a578a357ef40553 | [
"MIT"
] | null | null | null | defmodule NotifiedPhoenix.NotificationListItemComponent do
use Phoenix.LiveComponent
import Phoenix.HTML.Form
@impl true
def render(assigns) do
notification = assigns.notification
changeset = Notified.Notification.changeset(notification, %{})
~L"""
<%= form_for changeset, "#", [id: notificatio... | 32.595238 | 99 | 0.544923 |
c85170a50b19a7eb5aded5203b50b1151a14d490 | 359 | ex | Elixir | lib/safira_web/cors.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | lib/safira_web/cors.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | lib/safira_web/cors.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule SafiraWeb.CORS do
@domain Application.fetch_env!(:safira, SafiraWeb.CORS)[:domain]
use Corsica.Router,
origins: ~r{^https?://#{@domain}},
log: [rejected: :error, invalid: :warn, accepted: :debug],
allow_headers: :all,
allow_credentials: true,
max_age: 600
resource "/*"
resource "... | 25.642857 | 66 | 0.660167 |
c85177d10b984d4b4a616bb98ad715ea18a8d6ff | 16,668 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/content_rating.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/content_rating.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/content_rating.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... | 53.423077 | 146 | 0.648668 |
c85193222ee7d6ee27532fca5733fae6b1e2b37b | 1,273 | exs | Elixir | api/test/views/constituency_view_test.exs | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 11 | 2017-01-20T15:54:54.000Z | 2020-03-24T19:12:34.000Z | api/test/views/constituency_view_test.exs | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 13 | 2017-02-07T21:45:36.000Z | 2017-04-13T17:38:08.000Z | api/test/views/constituency_view_test.exs | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 9 | 2017-03-13T19:49:04.000Z | 2021-01-16T00:24:55.000Z | defmodule Api.ConstituencyViewTest do
use Api.ModelCase
import Api.Factory
alias Api.ConstituencyView
alias Api.Town
alias Api.State
alias Api.Constituency
test "constituency_json" do
state = insert(:state)
town = insert(:town)
constituency = insert(:constituency)
rendered_constituency... | 27.673913 | 103 | 0.70542 |
c8519df8a370d2507da5aa4d97e1bd9985539a5b | 366 | ex | Elixir | lib/ex_binance/kline.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 7 | 2019-04-12T12:46:53.000Z | 2021-06-29T19:43:41.000Z | lib/ex_binance/kline.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 18 | 2020-05-25T09:03:58.000Z | 2021-06-24T19:44:29.000Z | lib/ex_binance/kline.ex | rupurt/ex_binance | fa3fe75878758eef73508c72533e881fbf6ea0d7 | [
"MIT"
] | 12 | 2019-08-08T09:20:59.000Z | 2021-04-12T19:19:43.000Z | defmodule ExBinance.Kline do
@moduledoc """
Struct for representing the result returned by /api/v3/klines
"""
defstruct [
:open_time,
:open,
:high,
:low,
:close,
:volume,
:close_time,
:quote_asset_volume,
:number_of_trades,
:taker_buy_base_asset_volume,
:taker_buy_qu... | 16.636364 | 63 | 0.663934 |
c851bf85b6eff17d7efba70bbd1e5c32df7c8b4e | 4,221 | ex | Elixir | clients/gke_hub/lib/google_api/gke_hub/v1/model/binding.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/binding.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/binding.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... | 79.641509 | 1,972 | 0.749822 |
c851cf2d8a7a303823dbf97501618e3dc377894b | 6,332 | ex | Elixir | lib/ecto_ip_range/util/cidr.ex | olafura/ecto_ip_range | 44c06ca26aafc942a8173941a907c138ae2213bc | [
"Apache-2.0"
] | 3 | 2019-11-14T00:10:40.000Z | 2022-01-20T18:12:44.000Z | lib/ecto_ip_range/util/cidr.ex | olafura/ecto_ip_range | 44c06ca26aafc942a8173941a907c138ae2213bc | [
"Apache-2.0"
] | 1 | 2022-01-10T19:27:05.000Z | 2022-01-23T12:31:41.000Z | lib/ecto_ip_range/util/cidr.ex | olafura/ecto_ip_range | 44c06ca26aafc942a8173941a907c138ae2213bc | [
"Apache-2.0"
] | 2 | 2020-11-23T07:51:22.000Z | 2022-01-09T22:15:20.000Z | defmodule EctoIPRange.Util.CIDR do
@moduledoc false
use Bitwise, skip_operators: true
alias EctoIPRange.Util.Inet
@doc """
Calculate first and last address for an IPv4 notation.
## Examples
iex> parse_ipv4("1.2.3.4", 32)
{{1, 2, 3, 4}, {1, 2, 3, 4}}
iex> parse_ipv4("192.168.0.0", 20)... | 28.913242 | 95 | 0.556064 |
c851e67dec165154964da5581b222865709b60b8 | 1,011 | exs | Elixir | test/absinthe/integration/execution/variables/default_value_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/integration/execution/variables/default_value_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/integration/execution/variables/default_value_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Elixir.Absinthe.Integration.Execution.Variables.DefaultValueTest do
use Absinthe.Case, async: true
@times_query """
query ($mult: Int = 6) {
times(base: 4, multiplier: $mult)
}
"""
@default_value_query """
query {
microsecond
}
"""
test "query field arg default_value and resolve... | 29.735294 | 87 | 0.689416 |
c85210bd7d974e2a82a7caad063d6df2f21cf756 | 1,671 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/set_breakpoint_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/set_breakpoint_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/set_breakpoint_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.8125 | 155 | 0.75763 |
c8521333497e27af6bbc5ddb29cba4518ef91de5 | 1,640 | ex | Elixir | lib/hologram/template/dom_tree_builder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/template/dom_tree_builder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/template/dom_tree_builder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | # Covered in Hologram.Template.Parser integration tests
defmodule Hologram.Template.DOMTreeBuilder do
alias Hologram.Template.{Helpers, SyntaxError}
def build(tags, acc \\ [])
def build([], acc), do: acc
def build([{:self_closing_tag, {tag_name, attrs}} | rest], acc) do
type = Helpers.tag_type(tag_name)... | 26.031746 | 86 | 0.604878 |
c852154e60cf5cf0e50faf34e7fe9da20246975b | 212 | ex | Elixir | test/unit/fixtures/compiler/pruner/module_23.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/fixtures/compiler/pruner/module_23.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/fixtures/compiler/pruner/module_23.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Test.Fixtures.Compiler.Pruner.Module23 do
use Hologram.Page
layout Hologram.Test.Fixtures.Compiler.Pruner.Module24
route "/test-route-23"
def template do
~H"""
"""
end
end
| 16.307692 | 60 | 0.716981 |
c852515abaa9a0f8841d1af3a2649ff3c05e8c54 | 8,874 | ex | Elixir | lib/oli/delivery/attempts/page_lifecycle/graded.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/delivery/attempts/page_lifecycle/graded.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/delivery/attempts/page_lifecycle/graded.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Attempts.PageLifecycle.Graded do
alias Oli.Delivery.Attempts.Hierarchy
alias Oli.Delivery.Attempts.PageLifecycle.{
VisitContext,
ReviewContext,
FinalizationContext,
FinalizationSummary,
HistorySummary,
AttemptState,
Lifecycle,
Hierarchy
}
alias Oli.Delive... | 31.136842 | 108 | 0.6794 |
c8526b47516581b6bac9d8beda478a33b4bb2d9e | 6,729 | exs | Elixir | test/unit/discovery_api/stats/stats_calculator_test.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api/stats/stats_calculator_test.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api/stats/stats_calculator_test.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Stats.StatsCalculatorTest do
use ExUnit.Case
use Placebo
alias SmartCity.Registry.Dataset
alias DiscoveryApi.Stats.StatsCalculator
alias DiscoveryApi.Data.Persistence
@dataset_id "eaad54e8-fcb6-4f0e-99ac-bf51887ed102"
@completeness_key "discovery-api:completeness_calculated_date"
... | 35.415789 | 116 | 0.639768 |
c852807491caf09fe01329e9199ed541b43e9d75 | 5,570 | exs | Elixir | .credo.exs | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | null | null | null | .credo.exs | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | null | null | null | .credo.exs | lainor/amqpx | a1327978ba000eeba9d9badb354833ebe23f2a36 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.362319 | 80 | 0.650269 |
c852f45bd499a785ac47f1a8bc2f930ef69617c4 | 856 | ex | Elixir | chp06-07/dungeon_crawl/lib/dungeon_crawl/room/action.ex | ulissesalmeida/learn-fp-with-elixir-exercises | 4286f6ecbca55c7487f4ad0f4dfbc323efa8e105 | [
"MIT"
] | 5 | 2019-03-21T00:01:38.000Z | 2021-02-26T12:41:43.000Z | chp06-07/dungeon_crawl/lib/dungeon_crawl/room/action.ex | ulissesalmeida/learn-fp-with-elixir-exercises | 4286f6ecbca55c7487f4ad0f4dfbc323efa8e105 | [
"MIT"
] | null | null | null | chp06-07/dungeon_crawl/lib/dungeon_crawl/room/action.ex | ulissesalmeida/learn-fp-with-elixir-exercises | 4286f6ecbca55c7487f4ad0f4dfbc323efa8e105 | [
"MIT"
] | 4 | 2019-07-12T22:00:20.000Z | 2020-12-23T22:23:40.000Z | #---
# Excerpted from "Learn Functional Programming with Elixir",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpo... | 37.217391 | 87 | 0.723131 |
c8530d8abc5f0d32ebfeb5d54fcabf513148614d | 272 | ex | Elixir | apps/service_aggregate/lib/aggregate/metrics_reporter.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_aggregate/lib/aggregate/metrics_reporter.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_aggregate/lib/aggregate/metrics_reporter.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Aggregate.MetricsReporter do
@moduledoc """
Extension of `MetricsReporter` for scraping `Aggregate` metrics.
"""
use Properties, otp_app: :service_aggregate
getter(:port, default: 9568)
use MetricsReporter, name: :aggregate_metrics, port: port()
end
| 30.222222 | 66 | 0.753676 |
c853211f096385d2d194972e77810614b1da4650 | 323 | exs | Elixir | test/calendar_recurrence/calendar_interval_test.exs | lafka/calendar_recurrence | 62238f6f63a354f2ccfe21618b98998d771dcd7b | [
"Apache-2.0"
] | 23 | 2018-05-21T13:55:50.000Z | 2021-03-25T12:33:50.000Z | test/calendar_recurrence/calendar_interval_test.exs | wojtekmach/recurrence | 62238f6f63a354f2ccfe21618b98998d771dcd7b | [
"Apache-2.0"
] | 1 | 2018-12-20T09:52:06.000Z | 2018-12-20T09:52:06.000Z | test/calendar_recurrence/calendar_interval_test.exs | wojtekmach/recurrence | 62238f6f63a354f2ccfe21618b98998d771dcd7b | [
"Apache-2.0"
] | 6 | 2018-10-13T20:51:06.000Z | 2020-11-29T15:16:54.000Z | defmodule CalendarIntervalCalendarRecurrenceTest do
use ExUnit.Case, async: true
use CalendarInterval
test "recurrence" do
recurrence = CalendarRecurrence.new(start: ~I"2018-01-01", stop: {:until, ~I"2018-01-03"})
assert Enum.to_list(recurrence) == [~I"2018-01-01", ~I"2018-01-02", ~I"2018-01-03"]
end
e... | 32.3 | 94 | 0.708978 |
c8533ccd024fcf52944f9d4ef6ba6a2457609f01 | 1,280 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.647059 | 77 | 0.747656 |
c85365fd597561ede207b24644a66e35c5502839 | 1,874 | ex | Elixir | apps/app_udpcan/lib/app_udpcan/application.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/app_udpcan/lib/app_udpcan/application.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/app_udpcan/lib/app_udpcan/application.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 34.072727 | 73 | 0.686233 |
c853687446fbf0d21bbf38c5148ddc50b6ee5988 | 590 | exs | Elixir | priv/repo/seeds/tweet_seeds.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | 2 | 2019-12-05T21:37:48.000Z | 2020-01-02T02:43:33.000Z | priv/repo/seeds/tweet_seeds.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | priv/repo/seeds/tweet_seeds.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | alias Twitter.Repo
alias Twitter.Management.Tweet
Repo.insert! %Tweet{
user_id: 1,
description: "Alguém poderia me ensinar elixir?",
view_count: 20,
published: true,
like: 15
}
Repo.insert! %Tweet{
user_id: 2,
description: "Gostaria de uma xicara de café?",
view_count: 5,
published: true,
like: 12... | 17.352941 | 62 | 0.683051 |
c8538ea96ea453b4fd56cafec0e0efdc2b39e6f4 | 1,873 | ex | Elixir | lib/cats.ex | innoki/cats | 1b674e3adf7362db3e8b60c3d09d38317c7140e8 | [
"WTFPL"
] | null | null | null | lib/cats.ex | innoki/cats | 1b674e3adf7362db3e8b60c3d09d38317c7140e8 | [
"WTFPL"
] | null | null | null | lib/cats.ex | innoki/cats | 1b674e3adf7362db3e8b60c3d09d38317c7140e8 | [
"WTFPL"
] | null | null | null | defmodule Cats do
require Logger
import Plug.Conn
use Plug.Builder
plug :fetch_query_params
use Trot.Router
@path_root "cats"
# Return types
@image_mime "image/gif"
@image_data "R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
@image_hdrs ["Content-Type": @image_mime]
@image_rply {20... | 26.380282 | 88 | 0.633743 |
c853a3ed9743f829e96771f0bf953624e4a03aac | 34,436 | ex | Elixir | lib/erl2ex/convert/erl_expressions.ex | axelson/erl2ex | 382d87ab5fe4a3a3bdb03001226c9c514b889eb0 | [
"BSD-3-Clause"
] | 77 | 2015-12-28T10:54:32.000Z | 2021-11-17T16:14:41.000Z | lib/erl2ex/convert/erl_expressions.ex | axelson/erl2ex | 382d87ab5fe4a3a3bdb03001226c9c514b889eb0 | [
"BSD-3-Clause"
] | 5 | 2016-02-13T09:36:59.000Z | 2022-02-23T16:57:58.000Z | lib/erl2ex/convert/erl_expressions.ex | axelson/erl2ex | 382d87ab5fe4a3a3bdb03001226c9c514b889eb0 | [
"BSD-3-Clause"
] | 13 | 2016-06-04T06:49:19.000Z | 2021-10-14T03:00:54.000Z | # Conversion functions for erlparse AST.
defmodule Erl2ex.Convert.ErlExpressions do
@moduledoc false
alias Erl2ex.Convert.Context
alias Erl2ex.Pipeline.ModuleData
alias Erl2ex.Pipeline.Names
@import_kernel_metadata [context: Elixir, import: Kernel]
@import_bitwise_metadata [context: Elixir, import: Bi... | 33.498054 | 153 | 0.636311 |
c853aa0db4988a3a7df404dfaa5312085ec61010 | 95 | ex | Elixir | identicon/lib/image.ex | mfundontini/elixir-playbook | bc71f0670a588be8968ba2f046de567f79aae4fa | [
"BSD-3-Clause"
] | null | null | null | identicon/lib/image.ex | mfundontini/elixir-playbook | bc71f0670a588be8968ba2f046de567f79aae4fa | [
"BSD-3-Clause"
] | null | null | null | identicon/lib/image.ex | mfundontini/elixir-playbook | bc71f0670a588be8968ba2f046de567f79aae4fa | [
"BSD-3-Clause"
] | null | null | null | defmodule Identicon.Image do
defstruct hex: nil, colour: nil, grid: nil, pixel_map: nil
end | 31.666667 | 62 | 0.747368 |
c853c7fbd7ada353fb351fcf676b26143ced9e31 | 1,032 | ex | Elixir | test/support/factories.ex | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | null | null | null | test/support/factories.ex | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | null | null | null | test/support/factories.ex | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | null | null | null | defmodule Assoc.Test.Factories do
alias Assoc.Test.Address
alias Assoc.Test.Repo
alias Assoc.Test.Role
alias Assoc.Test.Tag
alias Assoc.Test.User
# Factories
def insert_address!(params \\ %{}) do
default_params = %{
address: "test address"
}
params = Map.merge(default_params, params... | 17.793103 | 46 | 0.603682 |
c85409ed400e72fa5d3f974c6c706839933ab7cd | 1,992 | exs | Elixir | tests/matrix.exs | JHU-PL-Lab/representation-types | 8805849eaa793692aada84c2c49fa227ed8c6387 | [
"CC-BY-4.0"
] | null | null | null | tests/matrix.exs | JHU-PL-Lab/representation-types | 8805849eaa793692aada84c2c49fa227ed8c6387 | [
"CC-BY-4.0"
] | null | null | null | tests/matrix.exs | JHU-PL-Lab/representation-types | 8805849eaa793692aada84c2c49fa227ed8c6387 | [
"CC-BY-4.0"
] | null | null | null |
defmodule Matrix do
def mat4x4_col(col, m) do
for {row, vec} <- m, into: %{}, do: {row, vec[col]}
end
def vec4_dot(v1, v2) do
v1.x*v2.x + v1.y*v2.y + v1.z*v2.z + v1.w*v2.w
end
def mat4x4_mul_row(v1, m1) do
for col <- [:x,:y,:z,:w], into: %{} do
{col, vec4_dot(v1, mat4x4_col(col, m1))}
... | 27.666667 | 103 | 0.459839 |
c8542c50a67e331dd186059ba6d9ea9b12fb6b28 | 799 | ex | Elixir | thermostat_umbrella/apps/serial/lib/serial/command.ex | ecoutu/thermostat | 1b6b636b29ba7d81c1e240db5dbab163b6d3fd6b | [
"Apache-2.0"
] | 3 | 2016-12-01T18:48:24.000Z | 2017-09-26T18:45:36.000Z | thermostat_umbrella/apps/serial/lib/serial/command.ex | ecoutu/thermostat | 1b6b636b29ba7d81c1e240db5dbab163b6d3fd6b | [
"Apache-2.0"
] | null | null | null | thermostat_umbrella/apps/serial/lib/serial/command.ex | ecoutu/thermostat | 1b6b636b29ba7d81c1e240db5dbab163b6d3fd6b | [
"Apache-2.0"
] | null | null | null | defmodule Serial.Command do
@doc ~S"""
Parses the given `line` into a command.
## Examples
iex> Serial.Command.parse "TEMP 20.96\n"
{:ok, {:temperature, 20.96}}
Unknown commands or commands with the wrong number of
arguments return an error:
iex> Serial.Command.parse "UNKNOWN shopping eggs\n... | 26.633333 | 81 | 0.652065 |
c8545b7269cc6068003e6ffa6feab5bd67d38c81 | 216 | exs | Elixir | priv/repo/migrations/20190606145018_add_avatar_fields_to_users.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | priv/repo/migrations/20190606145018_add_avatar_fields_to_users.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | priv/repo/migrations/20190606145018_add_avatar_fields_to_users.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Repo.Migrations.AddAvatarFieldsToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add(:avatar_key, :uuid)
add(:avatar_extension, :string)
end
end
end
| 19.636364 | 64 | 0.712963 |
c8546372b64b62d88bf36de445b7e2ac6b6a8155 | 1,446 | exs | Elixir | mix.exs | mtrudel/mdns_lite | c1df8b6f1a2694907ce9e209a0583407847e1f19 | [
"Apache-2.0"
] | null | null | null | mix.exs | mtrudel/mdns_lite | c1df8b6f1a2694907ce9e209a0583407847e1f19 | [
"Apache-2.0"
] | 13 | 2021-11-18T21:26:11.000Z | 2022-03-23T22:03:37.000Z | mix.exs | mtrudel/mdns_lite | c1df8b6f1a2694907ce9e209a0583407847e1f19 | [
"Apache-2.0"
] | null | null | null | defmodule MdnsLite.MixProject do
use Mix.Project
@version "0.8.2"
@source_url "https://github.com/nerves-networking/mdns_lite"
def project do
[
app: :mdns_lite,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
docs: docs(),
description: descript... | 20.657143 | 81 | 0.558091 |
c8547906a79b04a4bfbd2e9ce3aaffdeee9d0d26 | 6,113 | exs | Elixir | test/eth/transaction/builder_test.exs | aihanrashidov/eth | fb8b2d697b63d88c2a0d326d1d54b53814e0cb6c | [
"MIT"
] | null | null | null | test/eth/transaction/builder_test.exs | aihanrashidov/eth | fb8b2d697b63d88c2a0d326d1d54b53814e0cb6c | [
"MIT"
] | null | null | null | test/eth/transaction/builder_test.exs | aihanrashidov/eth | fb8b2d697b63d88c2a0d326d1d54b53814e0cb6c | [
"MIT"
] | 1 | 2019-02-19T09:03:36.000Z | 2019-02-19T09:03:36.000Z | defmodule ETH.Transaction.Setter.Test do
use ExUnit.Case
import ETH.Utils
setup_all do
ETH.TestClient.start()
on_exit(fn ->
ETH.TestClient.stop()
end)
:ok
end
@sender_wallet %{
eth_address: "0x816307AD84BB5393923BD9D43B71580584F1EBE1",
mnemonic_phrase:
"select afraid fa... | 37.048485 | 159 | 0.613283 |
c854ce1231e25fc46f6f8536b2d58cf42b9b9216 | 432 | ex | Elixir | lib/tnd/games.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | lib/tnd/games.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | 1 | 2021-05-11T14:31:58.000Z | 2021-05-11T14:31:58.000Z | lib/tnd/games.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | defmodule Tnd.Games do
@moduledoc """
The Games context.
"""
# def list_games(user_id), do: nil
# def create_game(game_attrs \\ %{}), do: nil
# def get_game(game_id), do: nil
# def join_game(game_id, user_id), do: nil
# def leave_game(game_membership_id), do: nil
# def send_message(game_id, message_... | 28.8 | 84 | 0.68287 |
c854d79ba343cfc191263847a9ba79be1e4df745 | 1,468 | ex | Elixir | apps/mishka_api/lib/mishka_api_web/endpoint.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_api/lib/mishka_api_web/endpoint.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_api/lib/mishka_api_web/endpoint.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaApiWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :mishka_api
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_mish... | 28.230769 | 97 | 0.715259 |
c854f4b65a2a253a3390b18f9ede82869575f14d | 1,143 | exs | Elixir | clients/partners/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | defmodule GoogleApi.Partners.V2.Mixfile do
use Mix.Project
def project do
[app: :google_api_partners,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
so... | 24.319149 | 108 | 0.595801 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.