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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85fe0756f6be654d8687eae7f4cab3f9dccbc1a4 | 74 | exs | Elixir | test/views/page_view_test.exs | chasm/elm_base | 1366d68ec827de3893fc61d9a5f268ee619b9d9a | [
"MIT"
] | 4 | 2016-07-19T18:11:07.000Z | 2016-08-02T00:36:39.000Z | test/views/page_view_test.exs | chasm/elm_base | 1366d68ec827de3893fc61d9a5f268ee619b9d9a | [
"MIT"
] | 1 | 2018-12-26T09:06:41.000Z | 2018-12-26T09:06:41.000Z | test/views/page_view_test.exs | chasm/elm_base | 1366d68ec827de3893fc61d9a5f268ee619b9d9a | [
"MIT"
] | null | null | null | defmodule ElmBase.PageViewTest do
use ElmBase.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
85fe0fcfbb7794ba5e0b7c6f9bf11ce430a9a2f0 | 4,572 | ex | Elixir | lib/journal/adapters/ipfs.ex | revelrylabs/journal | 82450c22a5f77e152a0f91ba37345bc411e002e0 | [
"MIT"
] | 1 | 2019-08-09T06:01:42.000Z | 2019-08-09T06:01:42.000Z | lib/journal/adapters/ipfs.ex | revelrylabs/journal | 82450c22a5f77e152a0f91ba37345bc411e002e0 | [
"MIT"
] | 3 | 2019-02-23T23:31:16.000Z | 2019-03-07T15:22:23.000Z | lib/journal/adapters/ipfs.ex | revelrylabs/journal | 82450c22a5f77e152a0f91ba37345bc411e002e0 | [
"MIT"
] | 1 | 2020-03-05T21:17:21.000Z | 2020-03-05T21:17:21.000Z | defmodule Journal.Adapters.IPFS do
@behaviour Journal.Adapter
@moduledoc """
IPFS adapter for Journal
The url to the IPFS instance is required
config :journal, MyApp.Journal, url: "http://localhost:5001"
"""
alias Journal.Adapters.IPFS.API
@dag_path "/.journal.adapters.ipfs"
alias Journal.{Entry,... | 23.090909 | 98 | 0.46741 |
85fe226472d906d6a87109d4f438e1e7905777f2 | 2,237 | ex | Elixir | PROJECT/patient_controller.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | PROJECT/patient_controller.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | PROJECT/patient_controller.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | defmodule Rumbl.PatientController do
use Rumbl.Web, :controller
alias Rumbl.Patient
def index(conn, _params) do
patients = Repo.all(Patient)
changeset = Patient.changeset(%Patient{})
render(conn, "index.html", patients: patients,changeset: changeset)
end
def search(conn, params) do
%{"id" =... | 29.434211 | 75 | 0.639249 |
85fe281aa134ef0a510d55ed2a7732041aee5920 | 2,049 | ex | Elixir | lib/workflows/state.ex | fracek/workflows | 6ef7ad3e280127f544f00fd098901bb6526a80cb | [
"Apache-2.0"
] | null | null | null | lib/workflows/state.ex | fracek/workflows | 6ef7ad3e280127f544f00fd098901bb6526a80cb | [
"Apache-2.0"
] | null | null | null | lib/workflows/state.ex | fracek/workflows | 6ef7ad3e280127f544f00fd098901bb6526a80cb | [
"Apache-2.0"
] | null | null | null | defmodule Workflows.State do
@moduledoc false
alias Workflows.Activity
alias Workflows.Command
alias Workflows.Event
alias Workflows.State
alias Workflows.StateUtil
@type t ::
State.Choice.t()
| State.Fail.t()
| State.Map.t()
| State.Parallel.t()
| State... | 27.32 | 91 | 0.592972 |
85fe3e9d1da4bcd498ac2235273468de572c85f9 | 605 | ex | Elixir | lib/companies/schema/job.ex | jordelver/elixir-companies | a54f06a3aec04775760d86577a95da6ce494abb8 | [
"MIT"
] | null | null | null | lib/companies/schema/job.ex | jordelver/elixir-companies | a54f06a3aec04775760d86577a95da6ce494abb8 | [
"MIT"
] | null | null | null | lib/companies/schema/job.ex | jordelver/elixir-companies | a54f06a3aec04775760d86577a95da6ce494abb8 | [
"MIT"
] | null | null | null | defmodule Companies.Schema.Job do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
alias Companies.Schema.{Company, PendingChange}
schema "jobs" do
field :title, :string
field :url, :string
field :remote, :boolean
belongs_to :company, Company
# Optional reference to the change th... | 21.607143 | 64 | 0.694215 |
85fe883c569c0879414da336d3abcb1871b1133c | 16,905 | ex | Elixir | lib/central/account.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | lib/central/account.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | lib/central/account.ex | Born2Crawl/teiserver | b89601aea1a338cd41b4eabc4092207cb50110f0 | [
"MIT"
] | null | null | null | defmodule Central.Account do
@moduledoc """
The Account context.
"""
import Ecto.Query, warn: false
alias Central.Helpers.QueryHelpers
alias Central.Repo
alias Argon2
alias Central.Account.User
alias Central.Account.UserQueries
import Central.Logging.Helpers, only: [add_anonymous_audit_log: 3]
... | 20.197133 | 98 | 0.611358 |
85fea417f21ac2594edb5c51e209f308b8385cb2 | 1,544 | exs | Elixir | test/f02_test.exs | terki/modbux | 391a1d77e191afe7b0c5fe72e70e4680b41fb85c | [
"Apache-2.0"
] | 14 | 2019-11-14T22:04:24.000Z | 2022-02-07T19:36:57.000Z | test/f02_test.exs | terki/modbux | 391a1d77e191afe7b0c5fe72e70e4680b41fb85c | [
"Apache-2.0"
] | 3 | 2020-01-11T07:52:53.000Z | 2022-01-18T12:08:08.000Z | test/f02_test.exs | terki/modbux | 391a1d77e191afe7b0c5fe72e70e4680b41fb85c | [
"Apache-2.0"
] | 6 | 2020-02-26T09:27:35.000Z | 2022-03-27T09:50:02.000Z | defmodule F02Test do
use ExUnit.Case
import TestHelper
test "Read 0 from Single Input" do
model0 = %{0x50 => %{{:i, 0x5152} => 0}}
cmd0 = {:ri, 0x50, 0x5152, 1}
req0 = <<0x50, 2, 0x51, 0x52, 0, 1>>
res0 = <<0x50, 2, 1, 0x00>>
val0 = [0]
pp1(cmd0, req0, res0, val0, model0)
end
test "R... | 24.125 | 52 | 0.453368 |
85febab9f41b88bc423514c9643a947019bf5887 | 2,469 | ex | Elixir | lib/oauth_xyz/model/interact.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 2 | 2020-04-22T13:22:25.000Z | 2020-12-01T12:01:30.000Z | lib/oauth_xyz/model/interact.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 3 | 2019-12-05T01:32:09.000Z | 2019-12-09T01:15:32.000Z | lib/oauth_xyz/model/interact.ex | ritou/elixir-oauth-xyz-web | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | null | null | null | defmodule OAuthXYZ.Model.Interact do
@moduledoc """
Module for interact.
```
# redirect
{
"redirect": true,
"callback": {
"uri": "https://client.example.net/return/123455",
"nonce": "LKLTI25DK82FX4T4QFZC"
}
}
# device
{
"user_code": true
}
# QR code
{
"redirect":... | 21.657895 | 94 | 0.626164 |
85fee74fac058a3c513b2ac8abfd4fe99f15ef10 | 155 | exs | Elixir | priv/repo/migrations/20190401042956_add_index_for_menu_item_names.exs | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | 1 | 2019-05-11T21:50:09.000Z | 2019-05-11T21:50:09.000Z | priv/repo/migrations/20190401042956_add_index_for_menu_item_names.exs | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190401042956_add_index_for_menu_item_names.exs | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | null | null | null | defmodule PlateSlate.Repo.Migrations.AddIndexForMenuItemNames do
use Ecto.Migration
def change do
create(unique_index(:items, [:name]))
end
end
| 19.375 | 64 | 0.767742 |
85feecb66254dde93c769c6b517ed99fcf915f9d | 2,255 | exs | Elixir | apps/ewallet_api/test/ewallet_api/v1/views/self_view_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/v1/views/self_view_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/v1/views/self_view_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # 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 ... | 29.285714 | 74 | 0.604435 |
85ff07e7a9018b0b5dcaa819fe37172aec19ba9c | 1,705 | ex | Elixir | lib/cowboy_server.ex | ColaCheng/line_bot | c30e00e2c3b5dce74cd562c8920b200d0f77413b | [
"MIT"
] | null | null | null | lib/cowboy_server.ex | ColaCheng/line_bot | c30e00e2c3b5dce74cd562c8920b200d0f77413b | [
"MIT"
] | null | null | null | lib/cowboy_server.ex | ColaCheng/line_bot | c30e00e2c3b5dce74cd562c8920b200d0f77413b | [
"MIT"
] | null | null | null | defmodule LineBot.CowboyServer do
use GenServer
@mongo_server :mongo
@short_url_coll "shortUrl"
def start_link() do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
@impl true
def init(_) do
init_indexes()
dispatch =
:cowboy_router.compile([
{
:_,
... | 26.640625 | 93 | 0.597067 |
85ff2e3f7af07ace5e9a49b122996012a260a25d | 9,903 | ex | Elixir | lib/tracer.ex | hylkealons/spandex | b9b0bd867b71a420be1c0ec2276193cb6b399967 | [
"MIT"
] | null | null | null | lib/tracer.ex | hylkealons/spandex | b9b0bd867b71a420be1c0ec2276193cb6b399967 | [
"MIT"
] | null | null | null | lib/tracer.ex | hylkealons/spandex | b9b0bd867b71a420be1c0ec2276193cb6b399967 | [
"MIT"
] | null | null | null | defmodule Spandex.Tracer do
@moduledoc """
A module that can be used to build your own tracer.
Example:
```
defmodule MyApp.Tracer do
use Spandex.Tracer, otp_app: :my_app
end
```
"""
alias Spandex.{
Span,
SpanContext,
Trace
}
@type tagged_tuple(arg) :: {:ok, arg} | {:error, ter... | 32.468852 | 138 | 0.585782 |
85ff3d8ff850ca90b3e19ffea13795243c4fab5f | 7,923 | ex | Elixir | apps/ewallet/lib/ewallet/exchange/exchange.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/exchange/exchange.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/exchange/exchange.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Exchange do
@moduledoc """
Provides exchange functionalities.
"""
alias EWallet.Exchange.Calculation
alias EWalletDB.{ExchangePair, Token}
# The private types for calculation parameters
@typep non_neg_or_nil() :: non_neg_integer() | nil
@doc """
Retrieves the exchange rate of the g... | 39.615 | 103 | 0.677142 |
85ff564197211fb0ba771b6a5e37d153ffe3fa02 | 2,898 | ex | Elixir | lib/composers/ota_hotel_res_notif/request.ex | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | lib/composers/ota_hotel_res_notif/request.ex | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | lib/composers/ota_hotel_res_notif/request.ex | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | defmodule ExOpenTravel.Composers.OtaHotelResNotif.Request do
alias ExOpenTravel.Meta
alias ExOpenTravel.Request
alias ExOpenTravel.Request.Document
@action "OTA_HotelResNotif"
@type options :: keyword() | any()
@type credentials :: %{user: String.t(), password: String.t(), endpoint: String.t()}
@type t ... | 34.094118 | 99 | 0.608351 |
85ff63ad4786afe351dbb1692903e6afddf7a1e5 | 22,360 | exs | Elixir | test/unit/data_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/data_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/data_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.DataTest do
use RDF.Test.Case
setup do
description =
EX.S
|> EX.p1(EX.O1, EX.O2)
|> EX.p2(EX.O3)
|> EX.p3(~B<foo>, ~L"bar")
graph =
Graph.new
|> Graph.add(description)
|> Graph.add(
EX.S2
|> EX.p2(EX.O3, EX.O4)
)
named_gr... | 40.215827 | 109 | 0.568202 |
85ff9dcb9ef6b8c0cb15db40fe161fefe36ded93 | 434 | ex | Elixir | lib/rocketpay_web/controllers/users_controller.ex | RafaelVsc/phx-rocketpay | 91435f0539a961691394809058b97a4e1b58fa84 | [
"RSA-MD"
] | null | null | null | lib/rocketpay_web/controllers/users_controller.ex | RafaelVsc/phx-rocketpay | 91435f0539a961691394809058b97a4e1b58fa84 | [
"RSA-MD"
] | null | null | null | lib/rocketpay_web/controllers/users_controller.ex | RafaelVsc/phx-rocketpay | 91435f0539a961691394809058b97a4e1b58fa84 | [
"RSA-MD"
] | null | null | null | defmodule RocketpayWeb.UsersController do
use RocketpayWeb, :controller
alias Rocketpay.User
action_fallback RocketpayWeb.FallbackController
def create(conn, params) do
# em caso de não der matching, o with retornará o erro para quem chamou a função
with {:ok, %User{} = user} <- Rocketpay.create_user... | 25.529412 | 84 | 0.702765 |
85ffa8feb24233e542c8bde13b38b130849c7bc9 | 2,353 | exs | Elixir | phoenix/eiga/config/dev.exs | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | phoenix/eiga/config/dev.exs | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | 2 | 2016-03-10T03:04:11.000Z | 2017-02-11T17:43:44.000Z | phoenix/eiga/config/dev.exs | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | import Config
# Configure your database
config :eiga, Eiga.Repo,
username: "root",
password: "postgres",
database: "eiga_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watc... | 31.373333 | 86 | 0.708457 |
85ffc34f8701649261e7aef29ccc84a996446d52 | 2,379 | ex | Elixir | lib/asciinema_web/auth.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/auth.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/auth.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.Auth do
import Plug.Conn
import Phoenix.Controller, only: [put_flash: 3, redirect: 2]
import AsciinemaWeb.Plug.ReturnTo
alias Plug.Conn
alias Asciinema.Accounts.User
alias Asciinema.Repo
alias AsciinemaWeb.Router.Helpers, as: Routes
@user_key "warden.user.user.key"
@one_year_in... | 25.308511 | 97 | 0.650273 |
85ffdbb6d1d049be5fb078eb9829f48d40898999 | 65,820 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/api/devices.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/api/devices.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_identity/lib/google_api/cloud_identity/v1/api/devices.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.381995 | 1,023 | 0.64327 |
85ffdd5ae04909b54463dab0fca25e0d2c9a9ac2 | 935 | exs | Elixir | phoenix/budgets/config/releases.exs | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | phoenix/budgets/config/releases.exs | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | phoenix/budgets/config/releases.exs | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
import Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 31.166667 | 62 | 0.731551 |
85ffe68f05ad0c67a1168b579a22756c13375562 | 184 | exs | Elixir | config/dev.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | 2 | 2018-09-30T02:59:33.000Z | 2018-10-08T19:55:38.000Z | config/dev.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | config/dev.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, :console,
format: "\e[7;2m$time/$level\e[27;22m\e[1m $message\n\e[2m$metadata\n",
metadata: :all
config :consul,
host: "127.0.0.1",
port: 1234 | 20.444444 | 73 | 0.652174 |
c8003ef7ec6e4dda7ddf562b98b1b31beec42c9f | 1,309 | exs | Elixir | priv/repo/migrations/20211122015946_migrate-stage-of-labeling-plus-voting-retros-to-groups-labeling.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211122015946_migrate-stage-of-labeling-plus-voting-retros-to-groups-labeling.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211122015946_migrate-stage-of-labeling-plus-voting-retros-to-groups-labeling.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | null | null | null | defmodule :"Elixir.RemoteRetro.Repo.Migrations.Migrate-stage-of-labeling-plus-voting-retros-to-groups-labeling" do
use Ecto.Migration
alias RemoteRetro.{Repo, Retro}
import Ecto.Query, only: [from: 2]
def up do
query = from r in Retro,
where: r.stage == "labeling-plus-voting"
retros_needing_upda... | 31.926829 | 123 | 0.663102 |
c800694f29719f1d189dd81ebe8d0e020acc6eb5 | 1,691 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_zone_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_zone_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_zone_response.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 ... | 35.978723 | 272 | 0.751035 |
c800760267ebbd9322564814dcbda616020701bd | 383 | exs | Elixir | elixir/match_map.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/match_map.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/match_map.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | f = fn
n when is_number(n) -> n * 2
%{n: n} -> n * 2
{:double, n} -> n * 2
end
f.(32) |> IO.inspect()
f.({:double, 21}) |> IO.inspect()
f.(%{n: 21}) |> IO.inspect()
defmodule Lib do
def compute(n) when is_number(n), do: n * 2
def compute(%{x: n}), do: n * 2
def compute({:double, x}), do: x * 2
end
Lib.c... | 20.157895 | 45 | 0.530026 |
c8007ed164dbc8eaaf2fe562c0b8779b94ce3a58 | 4,551 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/games_management/lib/google_api/games_management/v1management/api/applications.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.759615 | 240 | 0.655021 |
c80090f49dce84d403f4f90cecdff366b5ae3810 | 797 | ex | Elixir | lib/test/gear_log_helper.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | lib/test/gear_log_helper.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | lib/test/gear_log_helper.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Test.GearLogHelper do
@moduledoc """
Helpers to work with gear logs within tests.
"""
alias Antikythera.{Context, Conn}
alias Antikythera.Test.ConnHelper
alias AntikytheraCore.GearLog.ContextHelper
@doc """
... | 31.88 | 126 | 0.70138 |
c800b4544a44814fe1cebf80f56fe7389044e025 | 1,586 | ex | Elixir | lib/ex_libnice/mdns.ex | membraneframework/elixir_libnice | 5db244055282855aeaa520a6e4ae65cad34a084a | [
"Apache-2.0"
] | 4 | 2021-05-14T04:31:10.000Z | 2021-07-29T00:04:58.000Z | lib/ex_libnice/mdns.ex | membraneframework/ex_libnice | ef4b7baaa31ecf8d528823016bf4d7b7208c8471 | [
"Apache-2.0"
] | 8 | 2020-10-09T14:30:34.000Z | 2021-11-19T17:07:25.000Z | lib/ex_libnice/mdns.ex | membraneframework/ex_libnice | ef4b7baaa31ecf8d528823016bf4d7b7208c8471 | [
"Apache-2.0"
] | null | null | null | defmodule ExLibnice.Mdns do
@moduledoc """
Module responsible for executing mDNS queries.
It can be turned off by `config :ex_libnice, mdns: false`.
"""
use GenServer
require Logger
@spec start_link(any()) :: GenServer.on_start()
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, opts,... | 24.78125 | 83 | 0.625473 |
c800c83754e95c2beff6453bb7fab05e306a9846 | 1,182 | ex | Elixir | lib/radiator_web/views/api/chapters_view.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | lib/radiator_web/views/api/chapters_view.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | lib/radiator_web/views/api/chapters_view.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.Api.ChaptersView do
use RadiatorWeb, :view
alias HAL.{Document, Link, Embed}
alias Radiator.AudioMeta.Chapter
import RadiatorWeb.FormatHelpers, only: [format_normal_playtime: 1]
def render("index.json", assigns = %{chapters: chapters}) do
%Document{}
|> Document.add_embed(%Embe... | 29.55 | 95 | 0.680203 |
c800d5ee60c53da58363137082a8f253ff082a9f | 492 | ex | Elixir | lib/blockchain_api_web/views/poc_request_view.ex | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | lib/blockchain_api_web/views/poc_request_view.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | lib/blockchain_api_web/views/poc_request_view.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPIWeb.POCRequestView do
use BlockchainAPIWeb, :view
alias BlockchainAPIWeb.POCRequestView
def render("index.json", data) do
%{
data: render_many(data.poc_request_transactions, POCRequestView, "poc_request.json")
}
end
def render("show.json", %{poc_request: poc_request}) do... | 25.894737 | 90 | 0.73374 |
c801443f5d1a3b18eea8fce579a270b826fa05ae | 787 | ex | Elixir | lib/errors.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | lib/errors.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | lib/errors.ex | ojizero/rulex | f745624f1b924501ef8856727e0d5dc6b53d7661 | [
"MIT"
] | null | null | null | defmodule RulEx.EvalError do
@moduledoc """
An error risen if the given RulEx expression fails to evaluate
for any reason when using the bang variant functions of
the `RulEx.Behaviour` callbacks.
"""
defexception [:message, :reason, :expr, :facts]
end
defmodule RulEx.EncodeError do
@moduledoc """
An e... | 26.233333 | 66 | 0.738247 |
c8016189aad7802ccf1848d4aef8302027972115 | 1,527 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/error_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/error_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/error_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.54 | 135 | 0.708579 |
c80162851b10899a24fb0b96428524d8fef011f7 | 11,945 | ex | Elixir | deps/gettext/lib/gettext/plural.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | 1 | 2016-08-17T11:39:26.000Z | 2016-08-17T11:39:26.000Z | deps/gettext/lib/gettext/plural.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/plural.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | defmodule Gettext.Plural do
@moduledoc """
Behaviour and default implementation for finding plural forms in given
locales.
This module both defines the `Gettext.Plural` behaviour and provides a default
implementation for it.
## Plural forms
> For a given language, there is a grammatical rule on how to ... | 25.523504 | 100 | 0.547342 |
c801a51da6564f19a29d4eee2088b036ab80ce82 | 1,544 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/patient_id.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/patient_id.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/patient_id.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.88 | 87 | 0.714378 |
c801bacb1d2e94e05577c9a7d92a0870500117cd | 540 | ex | Elixir | lib/rocketpay_web/controllers/welcome_controller.ex | TiagoBani/rocketpay | 52b10d90160926eb506135ae0b251e2ed859d958 | [
"MIT"
] | null | null | null | lib/rocketpay_web/controllers/welcome_controller.ex | TiagoBani/rocketpay | 52b10d90160926eb506135ae0b251e2ed859d958 | [
"MIT"
] | null | null | null | lib/rocketpay_web/controllers/welcome_controller.ex | TiagoBani/rocketpay | 52b10d90160926eb506135ae0b251e2ed859d958 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.WelcomeController do
use RocketpayWeb, :controller
alias Rocketpay.Numbers
def index(conn, %{"filename"=> filename}) do
filename
|> Numbers.sum_from_file()
|> handle_response(conn)
end
defp handle_response({:ok, %{result: result}}, conn) do
conn
|> put_statu... | 22.5 | 84 | 0.657407 |
c801ddbb9bbe955be7c06c6438b743b4a4576dce | 270 | exs | Elixir | test/live_gtn_web/views/layout_view_test.exs | wasi0013/live_gtn | 8fde0cb34d41322a9c4e76abe75da4218afacf13 | [
"MIT"
] | null | null | null | test/live_gtn_web/views/layout_view_test.exs | wasi0013/live_gtn | 8fde0cb34d41322a9c4e76abe75da4218afacf13 | [
"MIT"
] | null | null | null | test/live_gtn_web/views/layout_view_test.exs | wasi0013/live_gtn | 8fde0cb34d41322a9c4e76abe75da4218afacf13 | [
"MIT"
] | null | null | null | defmodule LiveGtnWeb.LayoutViewTest do
use LiveGtnWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30 | 65 | 0.766667 |
c8021c49138a9b21bb307021544110f82eff2aff | 1,502 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/double_range.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/double_range.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/double_range.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... | 30.04 | 86 | 0.708389 |
c802571f6e74a1372c0c32e6008f8926a3bec4c0 | 1,336 | ex | Elixir | lib/herminio_torres_web/router.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | lib/herminio_torres_web/router.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | lib/herminio_torres_web/router.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | defmodule HerminioTorresWeb.Router do
use HerminioTorresWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {HerminioTorresWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipe... | 27.833333 | 71 | 0.698353 |
c802773dc680032d9fc03daa70bd8e11e9d1bdf6 | 87 | exs | Elixir | test/scrivener/html_test.exs | c4710n/scrivener_html_semi | dbf647508d07e98a5c484f36c0f0ebc2dae777ea | [
"MIT"
] | null | null | null | test/scrivener/html_test.exs | c4710n/scrivener_html_semi | dbf647508d07e98a5c484f36c0f0ebc2dae777ea | [
"MIT"
] | null | null | null | test/scrivener/html_test.exs | c4710n/scrivener_html_semi | dbf647508d07e98a5c484f36c0f0ebc2dae777ea | [
"MIT"
] | null | null | null | defmodule Scrivener.HTMLTest do
use ExUnit.Case
doctest Scrivener.HTML.Render
end
| 14.5 | 31 | 0.804598 |
c802895da9817a5fa5f2dea50f25f5bd0df37d8a | 1,209 | ex | Elixir | lib/discovery_api/search/data_model_facinator.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | lib/discovery_api/search/data_model_facinator.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | lib/discovery_api/search/data_model_facinator.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Search.DataModelFacinator do
@moduledoc """
Module that extracts facets (organizations and tags) from the given datasets and returns unique lists of them with their counts.
"""
def extract_facets([] = _models, selected_facets) do
default_values = %{organization: [], keywords: []}
... | 27.477273 | 130 | 0.691481 |
c802d0dd7c88fd7d18cec85b1113fdd1fa0cb33c | 1,675 | ex | Elixir | lib/router.ex | edouardmenayde/iconer | 53e3531d3afcd66a0bf1ff26e18d79cac2d2a87c | [
"Apache-2.0"
] | 2 | 2020-05-09T07:28:49.000Z | 2021-08-13T15:10:14.000Z | lib/router.ex | edouardmenayde/iconer | 53e3531d3afcd66a0bf1ff26e18d79cac2d2a87c | [
"Apache-2.0"
] | null | null | null | lib/router.ex | edouardmenayde/iconer | 53e3531d3afcd66a0bf1ff26e18d79cac2d2a87c | [
"Apache-2.0"
] | null | null | null | defmodule Iconer.Router do
use Plug.Router
use Plug.Debugger
defp get_sets() do
Application.get_env(:iconer, :sets, [])
|> Enum.map(fn (%{path: path} = set) -> Map.put(set, :id, Path.basename(path)) end)
end
@index_template File.read!("priv/templates/index.html.eex")
plug(:match)
plug(:dispatch... | 24.632353 | 87 | 0.56 |
c802d4810f0b5fedfaa2a408683f05fbceef0a2f | 381 | ex | Elixir | hello_phx/lib/hello_phx/accounts/credential.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | hello_phx/lib/hello_phx/accounts/credential.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | hello_phx/lib/hello_phx/accounts/credential.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | defmodule HelloPhx.Accounts.Credential do
use Ecto.Schema
import Ecto.Changeset
schema "credentials" do
field :email, :string
belongs_to :user, HelloPhx.Accounts.User
timestamps()
end
@doc false
def changeset(credential, attrs) do
credential
|> cast(attrs, [:email])
|> validate_r... | 18.142857 | 44 | 0.687664 |
c802dca303d69ba619d76cced5f39374890a8a16 | 1,532 | ex | Elixir | lib/phoenix_profiler/profile.ex | shamanime/phoenix_profiler | 353156c731c59fb2c5a994cbf3b0fb72359ffdc6 | [
"MIT"
] | null | null | null | lib/phoenix_profiler/profile.ex | shamanime/phoenix_profiler | 353156c731c59fb2c5a994cbf3b0fb72359ffdc6 | [
"MIT"
] | null | null | null | lib/phoenix_profiler/profile.ex | shamanime/phoenix_profiler | 353156c731c59fb2c5a994cbf3b0fb72359ffdc6 | [
"MIT"
] | null | null | null | defmodule PhoenixProfiler.Profile do
# An internal data structure for a request profile.
@moduledoc false
defstruct [
:info,
:node,
:server,
:start_time,
:system,
:system_time,
:token,
:url
]
@type info :: nil | :enable | :disable
@type system :: %{
:otp => String... | 25.533333 | 69 | 0.55483 |
c80307ef1f8cf21381fd0d0d4d64e23903f2d6e1 | 1,088 | ex | Elixir | lib/surface/components/form/date_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/components/form/date_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/components/form/date_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.DateInput do
@moduledoc """
An input field that let the user enter a **date**, either with a text field
or a date picker interface.
Provides a wrapper for Phoenix.HTML.Form's `date_input/3` function.
All options passed via `opts` will be sent to `date_input/3`, `value` and
... | 29.405405 | 88 | 0.698529 |
c803341e13e49a061e2ca469a29bf2bb6e7f6d49 | 194 | ex | Elixir | lib/ex_casaiq.ex | casaiq/ex_casaiq | 687e924a893e56770db31121acd80c0bdfa4255d | [
"BSD-3-Clause"
] | null | null | null | lib/ex_casaiq.ex | casaiq/ex_casaiq | 687e924a893e56770db31121acd80c0bdfa4255d | [
"BSD-3-Clause"
] | 5 | 2017-08-24T06:39:48.000Z | 2017-08-24T21:28:57.000Z | lib/ex_casaiq.ex | casaiq/ex_casaiq | 687e924a893e56770db31121acd80c0bdfa4255d | [
"BSD-3-Clause"
] | null | null | null | defmodule CasaIQ do
@moduledoc """
Documentation for CasaIQ.
"""
@doc """
Hello world.
## Examples
iex> CasaIQ.hello
:world
"""
def hello do
:world
end
end
| 10.210526 | 27 | 0.561856 |
c80356e0c574908776fda17a257fa0d2284ab580 | 523 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/classes_by_class.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/classes_by_class.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/classes_by_class.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.ClassesByClass do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"classes",
:"_class"
]
@type t... | 18.678571 | 91 | 0.671128 |
c803861da9f8e3f7ab7b27a665674d1d282e1e96 | 2,749 | ex | Elixir | clients/spectrum/lib/google_api/spectrum/v1explorer/model/paws_register_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spectrum/lib/google_api/spectrum/v1explorer/model/paws_register_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/spectrum/lib/google_api/spectrum/v1explorer/model/paws_register_request.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... | 43.634921 | 121 | 0.747181 |
c8039306933a323e68ff07ee1b4ab5f76c70a0e0 | 171 | exs | Elixir | bubblit/priv/repo/migrations/20200509203645_add_users_column_room_table.exs | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | null | null | null | bubblit/priv/repo/migrations/20200509203645_add_users_column_room_table.exs | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | 84 | 2020-04-03T08:06:06.000Z | 2022-02-13T12:45:15.000Z | bubblit/priv/repo/migrations/20200509203645_add_users_column_room_table.exs | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | 1 | 2020-09-25T12:59:02.000Z | 2020-09-25T12:59:02.000Z | defmodule Bubblit.Repo.Migrations.AddUsersColumnRoomTable do
use Ecto.Migration
def change do
alter table("rooms") do
add :users, :string
end
end
end
| 17.1 | 60 | 0.71345 |
c803993f8af1f37d4fbcbe96ed965e06b9f62f08 | 3,750 | exs | Elixir | test/cgrates_web_jsonapi_web/controllers/calls_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | test/cgrates_web_jsonapi_web/controllers/calls_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | test/cgrates_web_jsonapi_web/controllers/calls_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.CallsControllerTest do
use CgratesWebJsonapi.ConnCase
use PhoenixSwagger.SchemaTest, "priv/static/swagger.json"
import CgratesWebJsonapi.Factory
import CgratesWebJsonapi.Fixtures
import CgratesWebJsonapi.Guardian
setup do
user = insert(:user)
{:ok, token, _} = encod... | 28.846154 | 98 | 0.550133 |
c803a653ccf617e33d5f090d0a390093f254bf10 | 5,261 | ex | Elixir | lib/protobuf/encoder.ex | qinix/protobuf-elixir | 60e0e3981aeac897cddb5fde707d30fea7f72067 | [
"MIT"
] | null | null | null | lib/protobuf/encoder.ex | qinix/protobuf-elixir | 60e0e3981aeac897cddb5fde707d30fea7f72067 | [
"MIT"
] | null | null | null | lib/protobuf/encoder.ex | qinix/protobuf-elixir | 60e0e3981aeac897cddb5fde707d30fea7f72067 | [
"MIT"
] | null | null | null | defmodule Protobuf.Encoder do
import Protobuf.WireTypes
import Bitwise, only: [bsr: 2, band: 2, bsl: 2, bor: 2]
alias Protobuf.{MessageProps, FieldProps}
@spec encode(struct, keyword) :: iodata
def encode(%{__struct__: mod} = struct, opts \\ []) do
Protobuf.Validator.validate!(struct)
res = encode(s... | 32.475309 | 93 | 0.640753 |
c803ac14260ac2600db76a507311ed6620311236 | 1,115 | ex | Elixir | lib/live_web/router.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | lib/live_web/router.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | lib/live_web/router.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | defmodule LiveWeb.Router do
use LiveWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {LiveWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts... | 25.340909 | 70 | 0.695964 |
c803cdda392ec57e3794bed67fe93776c57a6e1f | 72 | exs | Elixir | test/tap_test.exs | eproxus/tap | 79a0b7d7553bde36b72c45f703df2f7201e3fe19 | [
"Apache-2.0"
] | 64 | 2015-09-21T12:51:37.000Z | 2021-12-30T17:17:26.000Z | test/tap_test.exs | eproxus/tap | 79a0b7d7553bde36b72c45f703df2f7201e3fe19 | [
"Apache-2.0"
] | 5 | 2015-09-23T13:18:00.000Z | 2017-09-27T07:49:38.000Z | test/tap_test.exs | eproxus/tap | 79a0b7d7553bde36b72c45f703df2f7201e3fe19 | [
"Apache-2.0"
] | 6 | 2015-09-23T05:58:45.000Z | 2016-12-05T08:26:29.000Z | defmodule TapTest do
use ExUnit.Case, async: true
doctest Tap
end
| 10.285714 | 30 | 0.736111 |
c803e88ebc8856e553d5cec61b5cf7d78cab6f7e | 97 | ex | Elixir | gateway/lib/mnesia/cache.ex | xonnect/server-ce | 7ec2e689a19098a17dfc5eaf190d56f29fb45263 | [
"BSD-2-Clause"
] | null | null | null | gateway/lib/mnesia/cache.ex | xonnect/server-ce | 7ec2e689a19098a17dfc5eaf190d56f29fb45263 | [
"BSD-2-Clause"
] | null | null | null | gateway/lib/mnesia/cache.ex | xonnect/server-ce | 7ec2e689a19098a17dfc5eaf190d56f29fb45263 | [
"BSD-2-Clause"
] | null | null | null | use Amnesia
defdatabase Mnesia.Cache do
deftable Map, [:key, :value], type: :set do
end
end
| 13.857143 | 45 | 0.701031 |
c803f50b098872197456e7334ea1d0ad9154d78d | 2,646 | ex | Elixir | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_analysis.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_analysis.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_analysis.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... | 40.090909 | 234 | 0.738095 |
c80402adaa85e2016dda72c697ddb89cde398df0 | 2,288 | ex | Elixir | lib/jalka2021_web/controllers/user_settings_controller.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | lib/jalka2021_web/controllers/user_settings_controller.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | lib/jalka2021_web/controllers/user_settings_controller.ex | kriips/jalka2021 | f4d968e20cae116fd4056bff2f937cd036421977 | [
"MIT"
] | null | null | null | defmodule Jalka2021Web.UserSettingsController do
use Jalka2021Web, :controller
alias Jalka2021.Accounts
alias Jalka2021Web.UserAuth
plug :assign_email_and_password_changesets
def edit(conn, _params) do
render(conn, "edit.html")
end
def update(conn, %{"action" => "update_email"} = params) do
%{... | 30.506667 | 81 | 0.655594 |
c8040537604a640531ef69a6d04eef38503dbecc | 2,589 | ex | Elixir | lib/hex/crypto/content_encryptor.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | lib/hex/crypto/content_encryptor.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | lib/hex/crypto/content_encryptor.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Hex.Crypto.ContentEncryptor do
@moduledoc false
alias Hex.Crypto
alias __MODULE__
@type t :: %ContentEncryptor{
module: module,
params: any
}
defstruct module: nil,
params: nil
@callback init(protected :: map, opts :: Keyword.t()) :: {:ok, any} | {:error... | 29.758621 | 95 | 0.637312 |
c8040dfd14a475714d6d78c054f390ed909dd84f | 191 | ex | Elixir | test/support/test_case.ex | sntran/yEnc | 3a5f12e8a7f98507651d4eec537500fafc69705d | [
"Apache-2.0"
] | null | null | null | test/support/test_case.ex | sntran/yEnc | 3a5f12e8a7f98507651d4eec537500fafc69705d | [
"Apache-2.0"
] | null | null | null | test/support/test_case.ex | sntran/yEnc | 3a5f12e8a7f98507651d4eec537500fafc69705d | [
"Apache-2.0"
] | null | null | null | defmodule YEnc.TestCase do
use ExUnit.CaseTemplate
using do
quote do
import YEnc.TestCase
end
end
setup tags do
unless tags[:async] do
end
:ok
end
end
| 10.611111 | 26 | 0.633508 |
c8043455f31d33d25fdb4417154748e66a787fa9 | 280 | ex | Elixir | test/app_web/permission.ex | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | null | null | null | test/app_web/permission.ex | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | 1 | 2020-07-02T13:17:17.000Z | 2020-07-02T13:17:17.000Z | test/app_web/permission.ex | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | null | null | null | defmodule Skeleton.AppWeb.Permission do
@behaviour Skeleton.Permission
defmacro __using__(_) do
quote do
use Skeleton.Permission
end
end
def context(conn) do
%{
current_user: conn.assigns[:current_user],
params: conn.params
}
end
end
| 16.470588 | 48 | 0.675 |
c80440641814f0c214decbd179d272ce8e3e42ea | 513 | exs | Elixir | apps/device/mix.exs | rockwood/ExAir | 3944f4b0ea66fc2179784b728e033e7eeaad664f | [
"Apache-2.0"
] | 4 | 2016-09-21T11:22:27.000Z | 2017-12-09T02:06:52.000Z | apps/device/mix.exs | rockwood/ExAir | 3944f4b0ea66fc2179784b728e033e7eeaad664f | [
"Apache-2.0"
] | null | null | null | apps/device/mix.exs | rockwood/ExAir | 3944f4b0ea66fc2179784b728e033e7eeaad664f | [
"Apache-2.0"
] | 2 | 2017-12-09T02:07:22.000Z | 2021-01-06T15:30:03.000Z | defmodule Device.Mixfile do
use Mix.Project
def project do
[app: :device,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_... | 19 | 44 | 0.549708 |
c80449bc0a09e604d3ddbdf2d0949114ef9780bf | 3,646 | exs | Elixir | lib/ex_unit/test/ex_unit_test.exs | Gazler/elixir | e934e3c92edbc9c83da7795ec3a028ff86218c4b | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit_test.exs | Gazler/elixir | e934e3c92edbc9c83da7795ec3a028ff86218c4b | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit_test.exs | Gazler/elixir | e934e3c92edbc9c83da7795ec3a028ff86218c4b | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ExUnitTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "it supports many runs" do
defmodule SampleTest do
use ExUnit.Case, async: false
test "true" do
assert false
end
test "false" do
assert false
end... | 25.676056 | 91 | 0.617389 |
c80456c3cef0b9990f06e07a71bb5f031084ec18 | 1,671 | ex | Elixir | clients/content/lib/google_api/content/v2/model/account_identifier.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/account_identifier.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_identifier.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.42 | 180 | 0.7307 |
c80461fcaa78927bd4e97112238c6ea63e6d1bb0 | 433 | exs | Elixir | test/live_dendron_web/views/error_view_test.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 5 | 2019-07-27T14:57:38.000Z | 2020-11-01T00:26:32.000Z | test/live_dendron_web/views/error_view_test.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 6 | 2019-07-29T03:45:23.000Z | 2021-05-10T03:49:39.000Z | test/live_dendron_web/views/error_view_test.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 2 | 2019-07-29T02:17:02.000Z | 2020-02-17T17:59:05.000Z | defmodule LiveDendronWeb.ErrorViewTest do
use LiveDendronWeb.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(LiveDendronWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.htm... | 28.866667 | 96 | 0.743649 |
c80472731fb0009087722ea966144eb32fe00331 | 2,978 | exs | Elixir | mix.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | null | null | null | mix.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | null | null | null | mix.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | null | null | null | defmodule AshJsonApi.MixProject do
use Mix.Project
@description """
A rigorous JSON API front end for the `Ash` resource framework
"""
@version "0.28.3"
def project do
[
app: :ash_json_api,
version: @version,
elixir: "~> 1.11",
description: @description,
elixirc_paths: e... | 25.237288 | 86 | 0.562794 |
c8048d5bf805cc0278ec8e5f0a3284db2fc7f2ac | 365 | exs | Elixir | examples/elixir-phoenix/priv/repo/seeds.exs | manumayank/starters | 194ea6d35457c55d0fcd571894b089419f876a4d | [
"MIT"
] | 23 | 2020-07-10T22:33:13.000Z | 2021-01-12T04:19:54.000Z | examples/elixir-phoenix/priv/repo/seeds.exs | manumayank/starters | 194ea6d35457c55d0fcd571894b089419f876a4d | [
"MIT"
] | 7 | 2021-10-05T01:50:40.000Z | 2021-12-14T06:35:22.000Z | examples/elixir-phoenix/priv/repo/seeds.exs | manumayank/starters | 194ea6d35457c55d0fcd571894b089419f876a4d | [
"MIT"
] | 3 | 2020-08-27T01:33:25.000Z | 2020-12-15T18:19:43.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# RailwayPhoenix.Repo.insert!(%RailwayPhoenix.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on... | 30.416667 | 63 | 0.717808 |
c804c0e7d69d16d2ad2004135ba84aa9b8bb7793 | 4,523 | ex | Elixir | lib/mix/tasks/ecto.rollback.ex | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.rollback.ex | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.rollback.ex | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Rollback do
use Mix.Task
import Mix.Ecto
import Mix.EctoSQL
@shortdoc "Rolls back the repository migrations"
@aliases [
r: :repo,
n: :step
]
@switches [
all: :boolean,
step: :integer,
to: :integer,
to_exclusive: :integer,
quiet: :boolean,
prefix:... | 30.979452 | 100 | 0.665266 |
c804ee602da074b97518eef5d7a2ef7bdecef02d | 13,630 | ex | Elixir | clients/content/lib/google_api/content/v21/api/products.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/products.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/products.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... | 45.738255 | 198 | 0.637931 |
c804feaa9959e8c79dff784b7bb39ccbdf9d1139 | 1,066 | ex | Elixir | lib/surface/components/form/time_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/components/form/time_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | lib/surface/components/form/time_input.ex | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.TimeInput do
@moduledoc """
An input field that let the user enter a **time** (hours, minutes and
optionally seconds).
Provides a wrapper for Phoenix.HTML.Form's `time_input/3` function.
All options passed via `opts` will be sent to `time_input/3`, `value` and
`class` can... | 28.810811 | 81 | 0.694184 |
c8051b447b1260e5caa7fc67a0a22fa1e77aa6e3 | 423 | exs | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/priv/repo/seeds.exs | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/priv/repo/seeds.exs | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/priv/repo/seeds.exs | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2019-07-12T11:16:42.000Z | 2020-06-08T15:03:36.000Z | <% MixTemplates.ignore_file_and_directory_unless(assigns[:ecto] == "postgres") %>
# Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# <%= @project_name_camel_case %>.Factory.insert!(%<%... | 38.454545 | 100 | 0.72104 |
c8052de77a4efa6d79d6644599ab2ca7f4dc4223 | 197 | exs | Elixir | backend/app/priv/repo/migrations/20170528183745_add_user_location_ownership.exs | benjaminshafii/Span | c4235ac51eb56421fc874f79954ce2fe37d20b5d | [
"MIT"
] | null | null | null | backend/app/priv/repo/migrations/20170528183745_add_user_location_ownership.exs | benjaminshafii/Span | c4235ac51eb56421fc874f79954ce2fe37d20b5d | [
"MIT"
] | 2 | 2017-06-08T22:06:44.000Z | 2017-06-10T21:08:34.000Z | backend/app/priv/repo/migrations/20170528183745_add_user_location_ownership.exs | benjaminshafii/Span | c4235ac51eb56421fc874f79954ce2fe37d20b5d | [
"MIT"
] | null | null | null | defmodule App.Repo.Migrations.AddUserLocationOwnership do
use Ecto.Migration
def change do
alter table(:locations) do
add :user_id, references(:users), null: false
end
end
end
| 19.7 | 57 | 0.725888 |
c805575f0dfe2052f60be0d67a068e8796f918ac | 1,618 | ex | Elixir | lib/voomex_web.ex | caktus/voomex | d9df2ef20498f0eb01e69da834bb41459784357c | [
"BSD-2-Clause"
] | null | null | null | lib/voomex_web.ex | caktus/voomex | d9df2ef20498f0eb01e69da834bb41459784357c | [
"BSD-2-Clause"
] | 18 | 2019-11-08T19:42:18.000Z | 2020-06-09T17:00:16.000Z | lib/voomex_web.ex | caktus/voomex | d9df2ef20498f0eb01e69da834bb41459784357c | [
"BSD-2-Clause"
] | null | null | null | defmodule VoomexWeb 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 VoomexWeb, :controller
use VoomexWeb, :view
The definitions below will be executed for every view,
controller, etc... | 23.114286 | 83 | 0.68665 |
c80559412262531bdf58c296a5800a9397bf4006 | 2,189 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/click_tag.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/click_tag.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/click_tag.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.301887 | 252 | 0.743262 |
c8056b01e568107478985e7fe1c0e5fdd77ef0d8 | 15,029 | ex | Elixir | clients/slides/lib/google_api/slides/v1/api/presentations.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/api/presentations.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/api/presentations.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... | 46.819315 | 977 | 0.682214 |
c80570cc9affaac73c952006a46c661ef00b24a2 | 1,137 | exs | Elixir | learning/craft_graphql/PlateSlate/config/dev.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/craft_graphql/PlateSlate/config/dev.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/craft_graphql/PlateSlate/config/dev.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | use Mix.Config
config :plate_slate, PlateSlateWeb.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [
node: [
"node_modules/brunch/bin/brunch",
"watch",
"--stdin",
cd: Path.expand("../assets", __DIR__)
]
]
# Watch static a... | 26.44186 | 68 | 0.684257 |
c8058341da66b1e78c4348e1752cc9338e9d2929 | 24,201 | ex | Elixir | lib/elixir/lib/map.ex | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/lib/map.ex | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map.ex | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | null | null | null | defmodule Map do
@moduledoc """
Maps are the "go to" key-value data structure in Elixir.
Maps can be created with the `%{}` syntax, and key-value pairs can be
expressed as `key => value`:
iex> %{}
%{}
iex> %{"one" => :two, 3 => "four"}
%{3 => "four", "one" => :two}
Key-value pairs i... | 25.582452 | 98 | 0.576505 |
c80584232ef8963c6babc1b2fca919efd681248c | 132 | ex | Elixir | lib/igdb/resources/company_logo.ex | facto/igdb | 9662e9ffd41e0925c22b1d3cd4774ae49b68e89e | [
"MIT"
] | 2 | 2018-04-09T07:34:37.000Z | 2020-03-08T06:50:03.000Z | lib/igdb/resources/company_logo.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | lib/igdb/resources/company_logo.ex | tomasz-tomczyk/igdb | 98d777798503f427e6c302da0251e819b9583c65 | [
"MIT"
] | null | null | null | defmodule Igdb.CompanyLogo do
@moduledoc """
Represents a Company Logo resource in the IGDB API.
"""
use Igdb.Resource
end
| 16.5 | 53 | 0.719697 |
c8058b5b80ff6235667121b6e80757e459d2ea80 | 1,230 | ex | Elixir | lib/crew_web/live/settings_live/index.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | lib/crew_web/live/settings_live/index.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | lib/crew_web/live/settings_live/index.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule CrewWeb.SettingsLive.Index do
use CrewWeb, :live_view
alias Crew.Sites
@impl true
def mount(_params, session, socket) do
socket = assign_from_session(socket, session)
site = Sites.get_site!(socket.assigns.site_id)
changeset = Sites.change_site(site)
{:ok, assign(socket, site: site,... | 25.625 | 72 | 0.661789 |
c80593b07dfeac30eeb7cda1b730ccea167e9b29 | 1,964 | exs | Elixir | test/plausible_web/controllers/api/stats_controller/authorization_test.exs | piarsonforked/plausible | ec80b8fd5180f05a25ed6c443179352f11ba582c | [
"MIT"
] | 1 | 2020-04-08T16:39:00.000Z | 2020-04-08T16:39:00.000Z | test/plausible_web/controllers/api/stats_controller/authorization_test.exs | piarsonforked/plausible | ec80b8fd5180f05a25ed6c443179352f11ba582c | [
"MIT"
] | null | null | null | test/plausible_web/controllers/api/stats_controller/authorization_test.exs | piarsonforked/plausible | ec80b8fd5180f05a25ed6c443179352f11ba582c | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.Api.StatsController.AuthorizationTest do
use PlausibleWeb.ConnCase
import Plausible.TestUtils
describe "API authorization - as anonymous user" do
test "Sends 401 unauthorized for a site that doesn't exist", %{conn: conn} do
conn = init_session(conn)
conn = get(conn, "/api/s... | 31.677419 | 92 | 0.639511 |
c805b305cb88ccbb8b9998a9c5478fb37d0911e9 | 2,900 | ex | Elixir | apps/admin_api/lib/admin_api/v1/controllers/admin_auth_controller.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/admin_api/lib/admin_api/v1/controllers/admin_auth_controller.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/controllers/admin_auth_controller.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.AdminAuthController do
use AdminAPI, :controller
import AdminAPI.V1.ErrorHandler
alias AdminAPI.V1.AdminUserAuthenticator
alias EWallet.AccountPolicy
alias EWallet.Web.{Orchestrator, V1.AuthTokenOverlay}
alias EWalletDB.{Account, AuthToken, User}
@doc """
Authenticates a user with... | 37.179487 | 98 | 0.668966 |
c805d4f64da360bc7a9a6f3c75ef36ddbbbb9873 | 901 | ex | Elixir | apps/montreal_elixir_web/lib/montreal_elixir_web/router.ex | montrealelixir/website | 251e3869bfeb441c8307309cee7abe0c3ebe8fef | [
"MIT"
] | 13 | 2017-05-09T15:15:19.000Z | 2020-12-17T08:16:59.000Z | apps/montreal_elixir_web/lib/montreal_elixir_web/router.ex | montrealelixir/website | 251e3869bfeb441c8307309cee7abe0c3ebe8fef | [
"MIT"
] | 65 | 2017-05-29T12:59:12.000Z | 2022-02-20T16:02:15.000Z | apps/montreal_elixir_web/lib/montreal_elixir_web/router.ex | montrealelixir/website | 251e3869bfeb441c8307309cee7abe0c3ebe8fef | [
"MIT"
] | 13 | 2017-05-27T16:17:44.000Z | 2020-10-01T05:50:57.000Z | defmodule MontrealElixirWeb.Router do
use MontrealElixirWeb, :router
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug :fetch_live_flash
plug :put_root_layout, {MontrealElixirWeb.LayoutView, :root}
plug(:fetch_flash)
plug(:protect_from_forgery)
plug(:put_secure_bro... | 23.710526 | 69 | 0.703663 |
c805f75a3ffb7e79cda7507776f85e15d44041d0 | 214 | exs | Elixir | priv/repo/migrations/20150921203358_enable_post_gis.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150921203358_enable_post_gis.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150921203358_enable_post_gis.exs | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule BdPro.Repo.Migrations.EnablePostGIS do
use Ecto.Migration
def up do
execute "CREATE EXTENSION IF NOT EXISTS postgis"
end
def down do
execute "DROP EXTENSION IF EXISTS postgis"
end
end
| 17.833333 | 52 | 0.742991 |
c80619e6c0a3c652427a2a5da2a57f4fb0370899 | 2,053 | exs | Elixir | config/prod.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | config/prod.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | 18 | 2020-09-24T14:21:23.000Z | 2020-10-01T16:11:58.000Z | config/prod.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | use Mix.Config
config :ais_front, :environment, :prod
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is ge... | 35.396552 | 66 | 0.716025 |
c80657d0ce74617dd081c66e9ee553f5842b5f97 | 984 | ex | Elixir | test/support/channel_case.ex | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | test/support/channel_case.ex | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | test/support/channel_case.ex | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | defmodule Entice.Web.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot ... | 24 | 72 | 0.70122 |
c80689901a6dc2053b549d4525440519bd185f4f | 2,300 | ex | Elixir | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_subscriber_event.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_subscriber_event.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_subscriber_event.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... | 37.096774 | 194 | 0.761304 |
c8069780f6aaa9d84ef9365253099d79c17cb5c9 | 105 | ex | Elixir | apps/tracing_2/lib/kv.ex | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/tracing_2/lib/kv.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/tracing_2/lib/kv.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule KV do
use Application
def start(_type, _args) do
KV.Supervisor.start_link()
end
end
| 13.125 | 30 | 0.714286 |
c806bd38ffb4ab2a6fa930e89abef624fe05a6fc | 7,029 | ex | Elixir | lib/stripe/subscriptions/invoice.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/invoice.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/invoice.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Invoice do
@moduledoc """
Work with Stripe invoice objects.
You can:
- Create an invoice
- Retrieve an invoice
- Update an invoice
Does not take options yet.
Stripe API reference: https://stripe.com/docs/api#invoice
"""
use Stripe.Entity
import Stripe.Request
@type t :: %_... | 30.167382 | 98 | 0.544601 |
c806d129d1218580b3e805ea0263b87134cd0a46 | 171 | exs | Elixir | priv/repo/migrations/20160710175256_create_tag.exs | mwindholtz/has_many_blog | 521f13c8b91620713a305f44040581276d162abc | [
"Apache-2.0"
] | 7 | 2016-12-15T00:33:22.000Z | 2019-04-24T20:42:17.000Z | priv/repo/migrations/20160710175256_create_tag.exs | mwindholtz/has_many_blog | 521f13c8b91620713a305f44040581276d162abc | [
"Apache-2.0"
] | 1 | 2017-07-19T16:41:35.000Z | 2017-07-19T16:41:35.000Z | priv/repo/migrations/20160710175256_create_tag.exs | mwindholtz/has_many_blog | 521f13c8b91620713a305f44040581276d162abc | [
"Apache-2.0"
] | 2 | 2017-04-28T21:52:38.000Z | 2020-04-24T14:41:31.000Z | defmodule Blog.Repo.Migrations.CreateTag do
use Ecto.Migration
def change do
create table(:tags) do
add :name, :string
timestamps
end
end
end
| 13.153846 | 43 | 0.666667 |
c806d5366f3fd70711857470bb07ec9a6a707a8b | 2,506 | exs | Elixir | config/prod.exs | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | 1 | 2022-01-27T08:17:53.000Z | 2022-01-27T08:17:53.000Z | config/prod.exs | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | config/prod.exs | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 32.545455 | 66 | 0.700718 |
c806d8f41590613b62fc22bcc6dcbf0db85a0cff | 1,619 | exs | Elixir | examples/elixir.exs | karl/vscode-karl-okeeffes-theme | 33a5035f50e0c21660b8c9b2bdb2abbf823489bf | [
"MIT"
] | null | null | null | examples/elixir.exs | karl/vscode-karl-okeeffes-theme | 33a5035f50e0c21660b8c9b2bdb2abbf823489bf | [
"MIT"
] | 2 | 2020-08-07T19:49:14.000Z | 2020-08-10T15:08:43.000Z | examples/elixir.exs | karl/vscode-karl-okeeffes-theme | 33a5035f50e0c21660b8c9b2bdb2abbf823489bf | [
"MIT"
] | 1 | 2020-08-08T13:30:17.000Z | 2020-08-08T13:30:17.000Z | defmodule Messaging.EventsChannel do
use Phoenix.Channel
def join("events:"<> private_room_id, _message, socket) do
socket = assign(socket, :guid, private_room_id)
{:ok, socket}
end
def handle_in("my_event", payload, socket) do
broadcast! socket, "my_event", payload
json = Map... | 26.983333 | 87 | 0.657196 |
c806db294370707f3cb0a753e7b2706349b48e39 | 2,039 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/interconnect_location_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/interconnect_location_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/interconnect_location_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.78 | 527 | 0.743502 |
c806dd5904ff051e8308c37c94be4e4b002bca91 | 1,020 | exs | Elixir | apps/core/priv/prm_repo/migrations/20170419075231_create_employees.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20170419075231_create_employees.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20170419075231_create_employees.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.CreatePRM.Employees.Employee do
use Ecto.Migration
def change do
create table(:employees, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:position, :string, null: false)
add(:status, :string, null: false)
add(:employee_type, :string, null... | 37.777778 | 90 | 0.677451 |
c80701b09ef659958ab0c9bcb49d952784c37012 | 1,997 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/members.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/members.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/members.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... | 35.660714 | 121 | 0.70656 |
c807226af2796ea94ceb069126779af7af0772df | 793 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/model/mixed_properties_and_additional_properties_class.ex | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 11,868 | 2018-05-12T02:58:07.000Z | 2022-03-31T21:19:39.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/mixed_properties_and_additional_properties_class.ex | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 9,672 | 2018-05-12T14:25:43.000Z | 2022-03-31T23:59:30.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/mixed_properties_and_additional_properties_class.ex | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 4,776 | 2018-05-12T12:06:08.000Z | 2022-03-31T19:52:51.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 OpenapiPetstore.Model.MixedPropertiesAndAdditionalPropertiesClass do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"uuid",
... | 24.78125 | 97 | 0.696091 |
c8072f04577f289b1ddd5374a6dd3f78ec0fab91 | 2,085 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/borders.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/borders.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/borders.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.232143 | 112 | 0.702638 |
c8073c2de1d1dc7037e3a91f1a29936976cca75b | 169 | ex | Elixir | lib/ex_neo4j/db.ex | raw1z/ex_neo4j | afb778f56ff65c63ceb848b8debe9c3e8b3a375e | [
"MIT"
] | 2 | 2015-07-28T16:12:56.000Z | 2015-10-09T21:21:16.000Z | lib/ex_neo4j/db.ex | raw1z/ex_neo4j | afb778f56ff65c63ceb848b8debe9c3e8b3a375e | [
"MIT"
] | 1 | 2015-11-01T16:14:34.000Z | 2015-11-02T10:35:48.000Z | lib/ex_neo4j/db.ex | raw1z/ex_neo4j | afb778f56ff65c63ceb848b8debe9c3e8b3a375e | [
"MIT"
] | null | null | null | defmodule ExNeo4j.Db do
use ExNeo4j.Db.Cypher
@doc """
returns the version of the neo4j database
"""
def version(), do: ExNeo4j.ServiceRoot.neo4j_version
end
| 18.777778 | 54 | 0.721893 |
c807596cc04e8470bf36b4e3cfacdadd257b9f67 | 780 | ex | Elixir | lib/http/url.ex | Oleksii-Kshenskyi/dark_hand | eea640f0084ebb98a89c259ddd8bcf4556a89388 | [
"MIT"
] | null | null | null | lib/http/url.ex | Oleksii-Kshenskyi/dark_hand | eea640f0084ebb98a89c259ddd8bcf4556a89388 | [
"MIT"
] | 14 | 2020-05-01T09:39:01.000Z | 2020-05-31T19:40:10.000Z | lib/http/url.ex | Oleksii-Kshenskyi/dark_hand | eea640f0084ebb98a89c259ddd8bcf4556a89388 | [
"MIT"
] | null | null | null | defmodule DarkHand.HTTP.URL do
def is_url_valid?(url) do
case get_parsed(url) do
%{scheme: nil} -> false
%{host: nil} -> false
_ -> true
end
end
def is_url_toplevel?(url) do
case get_parsed(url) do
%{path: nil} ->
IO.puts "[ERROR] You're trying to download a top level ... | 22.285714 | 71 | 0.575641 |
c8075ac9a0192b7b950ac5b5404436fcf78b0d92 | 2,003 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_smart_reply_answer.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_smart_reply_answer.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_smart_reply_answer.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... | 37.792453 | 240 | 0.728407 |
c8076898e6ec2b77cd070a48da0a8892214cd770 | 728 | exs | Elixir | test/elaxto/http/adapters/maxwell_test.exs | secretworry/elaxto | d4e66dc554f7dfe7786d9caf2dc3def5d231d37f | [
"Apache-2.0"
] | 2 | 2016-12-13T05:51:13.000Z | 2017-02-18T18:29:09.000Z | test/elaxto/http/adapters/maxwell_test.exs | secretworry/elaxto | d4e66dc554f7dfe7786d9caf2dc3def5d231d37f | [
"Apache-2.0"
] | null | null | null | test/elaxto/http/adapters/maxwell_test.exs | secretworry/elaxto | d4e66dc554f7dfe7786d9caf2dc3def5d231d37f | [
"Apache-2.0"
] | null | null | null | Application.put_env(:elaxto, Elaxto.MaxwellElaxto, [
http_adapter: Elaxto.Http.Adapters.Maxwell
])
defmodule Elaxto.MaxwellElaxto do
use Elaxto, otp_app: :elaxto
end
defmodule Elaxto.Http.Adapters.MaxwellTest do
use ExUnit.Case
def create_test_index do
{:ok, _} = %Elaxto.IndexAction{
name: :maxwel... | 18.666667 | 52 | 0.604396 |
c8079f246b71f6013e808cbd19b18fed6f8e4aec | 1,382 | ex | Elixir | lib/protobuf/protoc/generator/util.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | lib/protobuf/protoc/generator/util.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | lib/protobuf/protoc/generator/util.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | defmodule Protobuf.Protoc.Generator.Util do
@moduledoc false
def trans_name(name) do
Macro.camelize(name)
end
def join_name(list) do
Enum.join(list, ".")
end
def mod_name(%{module_prefix: prefix}, ns) when is_list(ns) do
ns |> join_name() |> attach_pkg(prefix)
end
def mod_name(%{module_pr... | 26.075472 | 103 | 0.642547 |
c807f450bc13c8c1184a8cd4e2d5356a360f74bf | 254 | exs | Elixir | priv/repo/migrations/20170218170303_create_todo.exs | Baransu/todos | a1ce771b35dc0f30efd043c283b513b52eba4657 | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20170218170303_create_todo.exs | Baransu/todos | a1ce771b35dc0f30efd043c283b513b52eba4657 | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20170218170303_create_todo.exs | Baransu/todos | a1ce771b35dc0f30efd043c283b513b52eba4657 | [
"BSD-3-Clause"
] | null | null | null | defmodule Todos.Repo.Migrations.CreateTodo do
use Ecto.Migration
def change do
create table(:todos) do
add :title, :string
add :description, :text
add :completed, :boolean, default: false
timestamps()
end
end
end
| 16.933333 | 46 | 0.65748 |
c80801f65ffaabf9ff4f675ba129dcfdeb81db08 | 1,631 | ex | Elixir | installer/templates/ecto/model_case.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | installer/templates/ecto/model_case.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | installer/templates/ecto/model_case.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | defmodule <%= application_module %>.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it can... | 26.306452 | 84 | 0.678112 |
c80858b977af36f34ac7a08c43107c8bf3297a9e | 2,164 | exs | Elixir | apps/seeker/config/prod.exs | sarat1669/seeker | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | 1 | 2019-07-10T10:00:56.000Z | 2019-07-10T10:00:56.000Z | apps/seeker/config/prod.exs | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | apps/seeker/config/prod.exs | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# SeekerWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don... | 33.292308 | 67 | 0.720425 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.