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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5b4e739d212ddef7222c2f608f9ca71e0f48461 | 1,594 | ex | Elixir | lib/hex/application.ex | IvanIvanoff/hex | 90aa44fa8a1e59f2ae65f490edb984e4d6c853d1 | [
"Apache-2.0"
] | null | null | null | lib/hex/application.ex | IvanIvanoff/hex | 90aa44fa8a1e59f2ae65f490edb984e4d6c853d1 | [
"Apache-2.0"
] | null | null | null | lib/hex/application.ex | IvanIvanoff/hex | 90aa44fa8a1e59f2ae65f490edb984e4d6c853d1 | [
"Apache-2.0"
] | null | null | null | defmodule Hex.Application do
@moduledoc false
use Application
def start(_, _) do
dev_setup()
Mix.SCM.append(Hex.SCM)
Mix.RemoteConverger.register(Hex.RemoteConverger)
Hex.Version.start()
start_httpc()
opts = [strategy: :one_for_one, name: Hex.Supervisor]
Supervisor.start_link(chil... | 20.701299 | 59 | 0.612923 |
d5b51f5cc09dffafcb4905d8ab158e76fb20a795 | 3,777 | ex | Elixir | lib/storebrand.ex | eyrmedical/storebrand | 60de8e1984d05ad0a9c7ea9d7279e1014b32ba13 | [
"MIT"
] | null | null | null | lib/storebrand.ex | eyrmedical/storebrand | 60de8e1984d05ad0a9c7ea9d7279e1014b32ba13 | [
"MIT"
] | null | null | null | lib/storebrand.ex | eyrmedical/storebrand | 60de8e1984d05ad0a9c7ea9d7279e1014b32ba13 | [
"MIT"
] | null | null | null | defmodule Storebrand do
@moduledoc """
Wrapper to use Storebrand REST API.
"""
use HTTPoison.Base
unless Application.get_env(:storebrand, Storebrand) do
raise Storebrand.ConfigError, message: "Storebrand is not configured"
end
unless Keyword.get(Application.get_env(:storebrand, Storebrand), :url) d... | 28.832061 | 92 | 0.635954 |
d5b53fde3d7f98c10c2172bd1276014b101acaeb | 583 | exs | Elixir | elixir_sample/mix.exs | lakscastro/owo | f475bb97a0fff3f479d65fb9faea6a175c8c46c1 | [
"MIT"
] | 5 | 2020-04-13T17:03:23.000Z | 2021-11-08T10:36:38.000Z | elixir_sample/mix.exs | lakscastro/owo | f475bb97a0fff3f479d65fb9faea6a175c8c46c1 | [
"MIT"
] | null | null | null | elixir_sample/mix.exs | lakscastro/owo | f475bb97a0fff3f479d65fb9faea6a175c8c46c1 | [
"MIT"
] | 1 | 2020-05-12T11:56:30.000Z | 2020-05-12T11:56:30.000Z | defmodule ElixirSample.MixProject do
use Mix.Project
def project do
[
app: :elixir_sample,
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
[
... | 20.103448 | 87 | 0.584906 |
d5b55e88f3160ae8a0bba155703de248d4cc75fc | 3,512 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/cmek_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/cmek_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/logging/lib/google_api/logging/v2/model/cmek_settings.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... | 66.264151 | 1,055 | 0.767084 |
d5b59ac78520088a4368ab660675697a84dde3c3 | 1,480 | ex | Elixir | exercism/queen-attack/queens.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/queen-attack/queens.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/queen-attack/queens.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule Queens do
@type t :: %Queens{black: {integer, integer}, white: {integer, integer}}
defstruct [:white, :black]
@doc """
Creates a new set of Queens
"""
@spec new(Keyword.t()) :: Queens.t()
def new(opts \\ []) do
black = Keyword.get(opts, :black)
white = Keyword.get(opts, :white)
if i... | 30.833333 | 83 | 0.605405 |
d5b5b8154c5ea3837699cb5db7eac036502eef5d | 3,680 | exs | Elixir | test/plug_bunyan_test.exs | bencoppock/bunyan | 60337dbe71831f697d6e4588d92fcf99bb258269 | [
"Apache-2.0"
] | 7 | 2016-11-27T11:20:38.000Z | 2021-05-03T23:59:13.000Z | test/plug_bunyan_test.exs | bencoppock/bunyan | 60337dbe71831f697d6e4588d92fcf99bb258269 | [
"Apache-2.0"
] | null | null | null | test/plug_bunyan_test.exs | bencoppock/bunyan | 60337dbe71831f697d6e4588d92fcf99bb258269 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.BunyanTest do
# From the io_capture docs: "when capturing something other than
# :stdio, the test should run with async false"
use ExUnit.Case, async: false
use Plug.Test
import ExUnit.CaptureIO
require Logger
@timestamp_pattern ~r/\A\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{6}\z/
defmod... | 28.307692 | 82 | 0.632337 |
d5b5b915377504c44d73b7acf6c843eb87487462 | 1,846 | exs | Elixir | test/groupher_server/cms/articles/works_pin_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/articles/works_pin_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/articles/works_pin_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.Artilces.WorksPin do
@moduledoc false
use GroupherServer.TestTools
alias Helper.ORM
alias GroupherServer.CMS
alias CMS.Model.{Community, PinnedArticle}
@max_pinned_article_count_per_thread Community.max_pinned_article_count_per_thread()
setup do
{:ok, user} = db_... | 33.563636 | 93 | 0.674431 |
d5b5e5be216cfbd7238eb1d36541f798e7530f26 | 1,241 | exs | Elixir | apps/summoner_web/mix.exs | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | apps/summoner_web/mix.exs | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | apps/summoner_web/mix.exs | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | defmodule SummonerWeb.Mixfile do
use Mix.Project
def project do
[
app: :summoner_web,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixi... | 25.326531 | 56 | 0.57776 |
d5b602ea4437c5c41d727c4785eab0a4479a8626 | 5,262 | exs | Elixir | elixir/03.exs | mn113/adventofcode2021 | 4841959e0ed69472645d1b7d890b14eb427e5864 | [
"MIT"
] | null | null | null | elixir/03.exs | mn113/adventofcode2021 | 4841959e0ed69472645d1b7d890b14eb427e5864 | [
"MIT"
] | null | null | null | elixir/03.exs | mn113/adventofcode2021 | 4841959e0ed69472645d1b7d890b14eb427e5864 | [
"MIT"
] | null | null | null | defmodule Day03 do
defp read_input do
File.read!(Path.expand("../inputs/input03.txt"))
|> String.split("\n")
end
defp count_bits(input) do
initial_columns = Map.new(Enum.to_list(0..11), fn k -> {k, 0} end)
input
|> Enum.reduce(
initial_columns,
fn binstr, cols_acc ->
... | 36.541667 | 100 | 0.650323 |
d5b61f3cd6442c81b7a3f03b13c55b70ec804f2f | 15,126 | ex | Elixir | lib/rihanna/job.ex | unitymind/rihanna | d76ec2f64743ec48a3fe21f55f07ed1ef5c30b4f | [
"MIT"
] | null | null | null | lib/rihanna/job.ex | unitymind/rihanna | d76ec2f64743ec48a3fe21f55f07ed1ef5c30b4f | [
"MIT"
] | null | null | null | lib/rihanna/job.ex | unitymind/rihanna | d76ec2f64743ec48a3fe21f55f07ed1ef5c30b4f | [
"MIT"
] | null | null | null | defmodule Rihanna.Job do
require Logger
@type result :: any
@type reason :: any
@type arg :: any
@type t :: %__MODULE__{}
@callback perform(arg :: any) :: :ok | {:ok, result} | :error | {:error, reason}
@callback after_error({:error, reason} | :error | Exception.t(), arg) :: any()
@callback retry_at(... | 25.464646 | 113 | 0.573979 |
d5b65ac3a485a0bae4c8e22a9082b32d9116e7fe | 7,352 | exs | Elixir | .credo.exs | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 90 | 2021-02-10T23:57:52.000Z | 2022-03-17T18:36:55.000Z | .credo.exs | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 120 | 2021-02-11T00:32:44.000Z | 2022-03-23T04:11:59.000Z | .credo.exs | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 18 | 2021-04-15T09:57:44.000Z | 2022-03-23T02:55:26.000Z | # 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 ... | 38.899471 | 114 | 0.613303 |
d5b6a86b2fa24dc2e20f9979b4de33b0085d0fe2 | 3,734 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 55.731343 | 457 | 0.732726 |
d5b6ed80ddb3fefb16d1c3f08e37e032b1575a53 | 351 | exs | Elixir | priv/repo/seeds.exs | Skoda091/cryptex | 60ccbc900fbb7424addd9f56ad5b32266b28636d | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Skoda091/cryptex | 60ccbc900fbb7424addd9f56ad5b32266b28636d | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Skoda091/cryptex | 60ccbc900fbb7424addd9f56ad5b32266b28636d | [
"MIT"
] | 1 | 2018-12-26T19:46:25.000Z | 2018-12-26T19:46:25.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:
#
# Cryptex.Repo.insert!(%Cryptex.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
d5b70a7d67c3ad865a86038a7a45d01e60e2925e | 744 | ex | Elixir | lib/http/cable_http.ex | Onlyhope/cable | e2c91e28e112d0724b1cfb88acfa096f6fcbb455 | [
"MIT"
] | null | null | null | lib/http/cable_http.ex | Onlyhope/cable | e2c91e28e112d0724b1cfb88acfa096f6fcbb455 | [
"MIT"
] | null | null | null | lib/http/cable_http.ex | Onlyhope/cable | e2c91e28e112d0724b1cfb88acfa096f6fcbb455 | [
"MIT"
] | null | null | null | defmodule Cable.Http do
require Logger
@options [:binary, packet: :raw, active: false, reuseaddr: true]
def start_link(port: port) do
{:ok, listener} = :gen_tcp.listen(port, @options)
Logger.info "Accepting connections on port #{port}"
pid = spawn_link(Cable.Http, :acce... | 19.578947 | 68 | 0.556452 |
d5b712d5ddb38fdbc778f1d32dd54c9fc4f80e28 | 1,112 | ex | Elixir | apps/examples/lib/examples/log_spread/advisor.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/examples/lib/examples/log_spread/advisor.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/examples/lib/examples/log_spread/advisor.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Examples.LogSpread.Advisor do
@moduledoc """
Log the spread between the bid/ask for a product.
The advisor discards quote events that don't have both sides of the
order book. This can happen when an order book infrequently gets updated.
"""
use Tai.Advisor
@impl true
def handle_event(
... | 28.512821 | 90 | 0.67536 |
d5b71638249d004293da682e389bf90ed7ebbdf8 | 3,752 | ex | Elixir | lib/teslamate_web/live/car_live/summary.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | lib/teslamate_web/live/car_live/summary.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | lib/teslamate_web/live/car_live/summary.ex | markusdd/teslamate | baada9c5455da2d3c400bf916ab29834772f6a88 | [
"MIT"
] | null | null | null | defmodule TeslaMateWeb.CarLive.Summary do
use Phoenix.LiveView
import TeslaMateWeb.Gettext
alias TeslaMateWeb.CarView
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.{Vehicles, Convert}
@impl true
def mount(%{summary: %Summary{car: car} = summary, settings: settings}, socket) do
if connect... | 31.266667 | 93 | 0.699094 |
d5b75d14572dcb0e69a345ae4f2307c25b9059c4 | 1,446 | ex | Elixir | lib/echo.ex | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | lib/echo.ex | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | lib/echo.ex | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | defmodule Modbus.Echo do
@moduledoc false
use GenServer
def start_link(opts \\ []) do
ip = Keyword.get(opts, :ip, {127, 0, 0, 1})
port = Keyword.get(opts, :port, 0)
GenServer.start_link(__MODULE__, {ip, port})
end
def init({ip, port}) do
opts = [:binary, ip: ip, packet: :raw, active: false]
... | 21.264706 | 57 | 0.568465 |
d5b7a6df197e98f6dc722ae27d4a2dc48badd280 | 489 | ex | Elixir | lib/surgex_web/views/error_view.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 8 | 2019-05-11T19:41:06.000Z | 2020-01-20T07:01:53.000Z | lib/surgex_web/views/error_view.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 12 | 2019-05-10T22:00:40.000Z | 2019-07-05T19:20:56.000Z | lib/surgex_web/views/error_view.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 1 | 2019-07-18T15:58:41.000Z | 2019-07-18T15:58:41.000Z | defmodule SurgexWeb.ErrorView do
use SurgexWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. ... | 28.764706 | 61 | 0.734151 |
d5b7a948fcda4a7a24dc9e4386b57f2809e17499 | 841 | ex | Elixir | lib/metric_collectors/ecto.ex | arthur29/alchemetrics_web | bcbab41a23e1fbbe3c16535b5f1b9327012c3c69 | [
"MIT"
] | 10 | 2017-09-19T13:38:47.000Z | 2020-03-09T13:09:15.000Z | lib/metric_collectors/ecto.ex | arthur29/alchemetrics_web | bcbab41a23e1fbbe3c16535b5f1b9327012c3c69 | [
"MIT"
] | 3 | 2018-01-24T21:13:43.000Z | 2019-09-18T19:06:46.000Z | lib/metric_collectors/ecto.ex | arthur29/alchemetrics_web | bcbab41a23e1fbbe3c16535b5f1b9327012c3c69 | [
"MIT"
] | 2 | 2017-09-19T10:36:42.000Z | 2019-09-17T20:57:01.000Z | defmodule AlchemetricsWeb.Collectors.Ecto do
@metadata_type %{type: "database.ecto"}
@alchemetrics Application.get_env :alchemetrics, :custom_ecto_reporter, Alchemetrics
def collect(ecto_entry) do
report "query_time", ecto_entry.query_time
report "queue_time", ecto_entry.queue_time
@alch... | 30.035714 | 89 | 0.692033 |
d5b7aebf065fd51fc56d6dca5e35eea9b6eff1a9 | 653 | ex | Elixir | lib/teiserver/telemetry/schemas/server_minute_log.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/telemetry/schemas/server_minute_log.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/telemetry/schemas/server_minute_log.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Telemetry.ServerMinuteLog do
use CentralWeb, :schema
@primary_key false
schema "teiserver_server_minute_logs" do
field :timestamp, :utc_datetime, primary_key: true
field :data, :map
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
@spec changeset(Map.... | 28.391304 | 86 | 0.676876 |
d5b7cb7aea49d8224378f7f7ab209a50d5ec64e2 | 638 | ex | Elixir | lib/aph/qa/inbox.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 8 | 2019-09-26T13:59:25.000Z | 2020-03-30T21:26:48.000Z | lib/aph/qa/inbox.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 39 | 2019-11-16T02:24:28.000Z | 2020-01-14T16:40:28.000Z | lib/aph/qa/inbox.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 2 | 2019-12-16T07:55:14.000Z | 2020-06-11T04:14:00.000Z | defmodule Aph.QA.Inbox do
@moduledoc """
The Inbox model.
"""
use Ecto.Schema
import Ecto.Changeset
schema "inboxes" do
field :answered, :boolean, default: false
belongs_to :question, Aph.QA.Question
belongs_to :user, Aph.Accounts.User
timestamps(type: :utc_datetime)
end
@doc false
... | 20.580645 | 55 | 0.667712 |
d5b7de8fdfa1b6a6ca5a00f5ab377cf77fb08af2 | 1,790 | exs | Elixir | apps/neoscan_monitor/config/config.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_monitor/config/config.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_monitor/config/config.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | use Mix.Config
config :neoscan_monitor, ecto_repos: []
config :neoscan_monitor, seeds: [
"http://seed1.cityofzion.io:8080",
"http://seed2.cityofzion.io:8080",
"http://seed3.cityofzion.io:8080",
"http://seed4.cityofzion.io:8080",
"http://seed5.cityofzion.io:8080",
"http://api.otcgo.cn:10332",
"https://s... | 34.423077 | 48 | 0.680447 |
d5b7e65159c3665ec86f122ecdd382667b492389 | 178 | ex | Elixir | 09-error-handlig/raise.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 09-error-handlig/raise.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 09-error-handlig/raise.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | # raise RuntimeError, message: "hola"
raise "hola"
# raise ArgumentError, message: "argument error"
raise ArgumentError
raise ArgumentError, message: "error de argumentos :'("
| 22.25 | 55 | 0.758427 |
d5b81b6912a1a07ca6835a600a255689836ab05c | 5,374 | exs | Elixir | test/suite/draft6/ref_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/ref_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/ref_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft6.RefTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "root pointer ref" do
setup do
%{
schema:
Xema.new(
additional_properties: false,
properties: %{foo: {:ref, "#"}}
)
}
end
test "match", %{... | 22.965812 | 87 | 0.476368 |
d5b81b8d3f246c15ca3265021fd6772d3c0d0c14 | 404 | exs | Elixir | priv/repo/migrations/20180822133930_create_user_board.exs | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | null | null | null | priv/repo/migrations/20180822133930_create_user_board.exs | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 3 | 2018-10-03T16:59:21.000Z | 2018-10-06T09:53:51.000Z | priv/repo/migrations/20180822133930_create_user_board.exs | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 1 | 2018-10-03T17:06:47.000Z | 2018-10-03T17:06:47.000Z | defmodule Trello.Repo.Migrations.CreateUserBoard do
use Ecto.Migration
def change do
create table(:user_boards) do
add :user_id, references(:users, on_delete: :delete_all), null: false
add :board_id, references(:boards, on_delete: :delete_all), null: false
timestamps()
end
create in... | 25.25 | 77 | 0.700495 |
d5b847522cfd483d8c33aec6c335811157ca5a8d | 526 | ex | Elixir | lib/aph/accounts/invitation.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 8 | 2019-09-26T13:59:25.000Z | 2020-03-30T21:26:48.000Z | lib/aph/accounts/invitation.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 39 | 2019-11-16T02:24:28.000Z | 2020-01-14T16:40:28.000Z | lib/aph/accounts/invitation.ex | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 2 | 2019-12-16T07:55:14.000Z | 2020-06-11T04:14:00.000Z | defmodule Aph.Accounts.Invitation do
@moduledoc """
The Invitation model.
"""
use Ecto.Schema
import Ecto.Changeset
schema "invitations" do
field :code, :string
belongs_to :created_user, Aph.Accounts.User, foreign_key: :created_by
belongs_to :used_user, Aph.Accounts.User, foreign_key: :used_by... | 21.916667 | 73 | 0.69962 |
d5b84753608d6f0e44c9198060102a1bf87014d6 | 7,190 | exs | Elixir | test/ueberauth_test.exs | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | null | null | null | test/ueberauth_test.exs | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | null | null | null | test/ueberauth_test.exs | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | null | null | null | defmodule UeberauthTest do
use ExUnit.Case, async: true
use Plug.Test
doctest Ueberauth
alias Support.SpecRouter
@opts Support.SpecRouter.init([])
test "simple request phase" do
conn = conn(:get, "/auth/simple")
resp = SpecRouter.call(conn, @opts)
assert resp.resp_body == "simple_request_phas... | 33.44186 | 98 | 0.679972 |
d5b85229b12e5a1564ea548b34424e4091abf2f6 | 71 | exs | Elixir | test/chex_digits_test.exs | polvalente/ChexDigits | e7a3a76a1dff314b1680ee6abcbcb56fc9296fb4 | [
"Apache-2.0"
] | null | null | null | test/chex_digits_test.exs | polvalente/ChexDigits | e7a3a76a1dff314b1680ee6abcbcb56fc9296fb4 | [
"Apache-2.0"
] | null | null | null | test/chex_digits_test.exs | polvalente/ChexDigits | e7a3a76a1dff314b1680ee6abcbcb56fc9296fb4 | [
"Apache-2.0"
] | null | null | null | defmodule ChexDigitsTest do
use ExUnit.Case
doctest ChexDigits
end
| 14.2 | 27 | 0.816901 |
d5b8532102516a864e816334a61b24758ad5d7dd | 1,600 | ex | Elixir | lib/types/any_of_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 3 | 2019-01-07T20:11:40.000Z | 2021-02-03T22:24:07.000Z | lib/types/any_of_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 13 | 2018-07-27T12:39:01.000Z | 2022-03-28T20:16:15.000Z | lib/types/any_of_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | null | null | null | defmodule JsonSchema.Types.AnyOfType do
@moduledoc """
Represents a custom `anyOf` type definition in a JSON schema.
JSON Schema:
The following example schema has the path `"#/definitions/fancyCircle"`
{
"description": "A fancy circle",
"anyOf": [
{
"type": "object... | 23.880597 | 73 | 0.47625 |
d5b8796a50e3d5e271e371903baa911b34b095fd | 1,500 | ex | Elixir | web/web.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | web/web.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | web/web.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | defmodule SslBench.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use SslBench.Web, :controller
use SslBench.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them ... | 19.736842 | 88 | 0.66 |
d5b8d20ea893833d514cdb7720682c4e8c81ee62 | 813 | ex | Elixir | lib/drunkard_web/live_view/user/login.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 2 | 2020-07-05T21:27:33.000Z | 2021-12-12T22:56:00.000Z | lib/drunkard_web/live_view/user/login.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2021-05-11T08:14:48.000Z | 2021-05-11T08:14:48.000Z | lib/drunkard_web/live_view/user/login.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2020-07-05T21:27:46.000Z | 2020-07-05T21:27:46.000Z | defmodule DrunkardWeb.LiveView.User.Login do
use Phoenix.LiveView
alias DrunkardWeb.Router.Helpers, as: Routes
alias Drunkard.Accounts
alias Drunkard.Accounts.User
def render(assigns) do
Phoenix.View.render(DrunkardWeb.UserView, "login.html", assigns)
end
def mount(_session, socket) do
{:ok, as... | 27.1 | 88 | 0.666667 |
d5b8dbfc225354c266634c3ebdd6a188f2f07797 | 1,814 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/model/renewal_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/model/renewal_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/reseller/lib/google_api/reseller/v1/model/renewal_settings.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... | 36.28 | 264 | 0.742007 |
d5b8e4f686dca7cb2c0452cbcbd4c07e8b333f23 | 3,924 | exs | Elixir | test/plug/session_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | test/plug/session_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | test/plug/session_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | defmodule Plug.SessionTest do
use ExUnit.Case, async: true
use Plug.Test
alias Plug.ProcessStore
test "puts session cookie" do
conn = conn(:get, "/") |> fetch_cookies
opts = Plug.Session.init(store: ProcessStore, key: "foobar")
conn = Plug.Session.call(conn, opts) |> fetch_session
conn = send_... | 35.035714 | 97 | 0.61315 |
d5b8f06fc6ad2b712457089b4e0b56ed302fc8b3 | 1,555 | exs | Elixir | config/config.exs | paperwork/service-users | 717463aa112fbb2d12ea23f672e18f4d39deb968 | [
"MIT"
] | 4 | 2019-03-17T15:27:31.000Z | 2020-05-19T17:35:21.000Z | config/config.exs | paperwork/service-users | 717463aa112fbb2d12ea23f672e18f4d39deb968 | [
"MIT"
] | null | null | null | config/config.exs | paperwork/service-users | 717463aa112fbb2d12ea23f672e18f4d39deb968 | [
"MIT"
] | 3 | 2019-02-15T21:48:51.000Z | 2019-04-08T06:43:38.000Z | use Mix.Config
config :paperwork_service_users, Paperwork.Users.Server,
adapter: Plug.Cowboy,
plug: Paperwork.Users,
scheme: :http,
ip: {0,0,0,0},
port: {:system, :integer, "PORT", 8881}
config :paperwork_service_users,
maru_servers: [Paperwork.Users.Server]
config :paperwork, :server,
ap... | 40.921053 | 116 | 0.698392 |
d5b92e1f2ceb36af88b848f3f1eb5c738e42a848 | 369 | ex | Elixir | test_projects/doc_and_spec/lib/adapterized.ex | IanLuites/adapter | 3491d1d73aeb693ca8d68df276a52310578f69bb | [
"MIT"
] | 8 | 2020-11-02T18:02:30.000Z | 2021-09-22T12:58:44.000Z | test_projects/doc_and_spec/lib/adapterized.ex | IanLuites/adapter | 3491d1d73aeb693ca8d68df276a52310578f69bb | [
"MIT"
] | null | null | null | test_projects/doc_and_spec/lib/adapterized.ex | IanLuites/adapter | 3491d1d73aeb693ca8d68df276a52310578f69bb | [
"MIT"
] | null | null | null | defmodule Adapterized do
@moduledoc """
Documentation for `Adapterized`.
"""
@doc """
Hello world.
## Examples
iex> Adapterized.hello()
:world
"""
def hello do
if Color.rgb() == {0, 0, 255} and
Color.red() == 0 and
Storage.type() == :cache and
Storage.persi... | 15.375 | 42 | 0.533875 |
d5b953eeb64269b23fe2f0c9fdc1ba7d5797d61e | 1,016 | ex | Elixir | lib/accent/schemas/document.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/accent/schemas/document.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/accent/schemas/document.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Document do
use Accent.Schema
require Accent.DocumentFormat
schema "documents" do
field(:path, :string)
field(:format, :string)
field(:render, :string, virtual: true)
field(:top_of_the_file_comment, :string, default: "")
field(:header, :string, default: "")
belongs_to... | 29.028571 | 85 | 0.708661 |
d5b95bd28b3d2857deed924cc12e004772597a16 | 3,933 | exs | Elixir | test/json_schema_test_suite/draft4/all_of_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft4/all_of_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft4/all_of_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | defmodule JsonSchemaTestSuite.Draft4.AllOfTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe "allOf" do
setup do
%{
schema:
Xema.from_json_schema(
%{
"allOf" => [
%{"properties" => %{"bar" => %{"type" => "integer"}}, "required" =... | 23.135294 | 93 | 0.469616 |
d5b97cb8ba9da85ee5a90d0f0c016de7ba1d5873 | 94 | exs | Elixir | config/releases.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 3 | 2020-05-01T17:14:23.000Z | 2021-05-15T16:22:43.000Z | config/releases.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 13 | 2019-08-14T15:44:24.000Z | 2021-09-01T20:17:55.000Z | config/releases.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | null | null | null | import Config
config :ui, Ui.Endpoint, secret_key_base: System.fetch_env!("SECRET_KEY_BASE")
| 23.5 | 78 | 0.797872 |
d5b9aa1f96d655ebb103bff53b01052d35374dc6 | 391 | ex | Elixir | lib/app/commands.ex | drumser/markovich | 387d95b3d5cbc31f3c43dfa00906048ee8c29086 | [
"MIT"
] | null | null | null | lib/app/commands.ex | drumser/markovich | 387d95b3d5cbc31f3c43dfa00906048ee8c29086 | [
"MIT"
] | null | null | null | lib/app/commands.ex | drumser/markovich | 387d95b3d5cbc31f3c43dfa00906048ee8c29086 | [
"MIT"
] | null | null | null | defmodule App.Commands do
use App.Router
use App.Commander
command "start", App.Commands.Start, :handle
command "updatemodel", App.Commands.UpdateModel, :handle
command "generate", App.Commands.Generate, :handle
command "resetdata", App.Commands.ResetData, :handle
command "setspamlvl", App.Commands.SetSp... | 32.583333 | 58 | 0.769821 |
d5b9e103dafd65ec685a4b44ffe94303ebad5559 | 815 | ex | Elixir | 08-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 08-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | 08-chapter/01_example.ex | herminiotorres/programming-elixir | 70add5ec9fe7f91129da0a4e39ab329afb9be598 | [
"MIT"
] | null | null | null | defmodule Canvas do
@doc """
## Example:
iex[1]> Canvas.draw_text("hello", fg: "red", style: "italic", style: "bold")
Drawing text "hello"
Foreground: red
Background: white
Font: Merriweather
Pattern: solid
Style: ["italic", "bold"]
:ok
"""
@defaults [fb: "... | 29.107143 | 80 | 0.584049 |
d5b9f7795d0fda67518369aa21dfe55dc2a1dac8 | 5,353 | exs | Elixir | test/harald_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | null | null | null | test/harald_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | null | null | null | test/harald_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | null | null | null | defmodule HaraldTest do
use ExUnit.Case, async: true
alias Harald.HCI.{ACLData, Transport}
alias Harald.HCI.Commands.{ControllerAndBaseband, ControllerAndBaseband.ReadLocalName}
alias Harald.Host.{ATT, L2CAP}
alias Harald.Host.ATT.ExchangeMTUReq
describe "start_link/1" do
test "ok" do
assert {:ok... | 28.625668 | 99 | 0.661872 |
d5ba199d89b14a23baad830e675f9e3c126826e7 | 617 | ex | Elixir | lib/glimesh/emails/email_log.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh/emails/email_log.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh/emails/email_log.ex | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Emails.EmailLog do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
schema "email_logs" do
belongs_to :user, Glimesh.Accounts.User
field :email, :string
field :type, :string
field :function, :string
field :subject, :string
timestamps()
end
@doc false
de... | 16.675676 | 43 | 0.602917 |
d5ba1ad4ff669a2cc343bff473f6ff57ec1d6e68 | 1,722 | ex | Elixir | lib/nostrum/struct/event/message_reaction_add.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/message_reaction_add.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/message_reaction_add.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | 1 | 2021-09-13T20:59:42.000Z | 2021-09-13T20:59:42.000Z | defmodule Nostrum.Struct.Event.MessageReactionAdd do
@moduledoc "Sent when a user adds a reaction to a message"
@moduledoc since: "0.5.0"
alias Nostrum.Struct.Guild.Member
alias Nostrum.Struct.{Channel, Emoji, Guild, Message, User}
alias Nostrum.{Snowflake, Util}
defstruct [:user_id, :channel_id, :message... | 31.888889 | 76 | 0.643438 |
d5ba1e77f02d541e31cccd3b9d4679d13ca8ca1d | 12,609 | exs | Elixir | test/ja_serializer/builder/included_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | null | null | null | test/ja_serializer/builder/included_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | null | null | null | test/ja_serializer/builder/included_test.exs | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | null | null | null | defmodule JaSerializer.Builder.IncludedTest do
use ExUnit.Case
defmodule ArticleSerializer do
use JaSerializer
def type, do: "articles"
attributes([:title])
has_many(
:comments,
serializer: JaSerializer.Builder.IncludedTest.CommentSerializer,
include: true
)
has_one(
... | 26.713983 | 81 | 0.617178 |
d5ba333df3008cf1b91e3a3a5eb4afb5acbfdb6b | 30,588 | ex | Elixir | lib/surface/compiler/eex_engine.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | null | null | null | lib/surface/compiler/eex_engine.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | null | null | null | lib/surface/compiler/eex_engine.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.EExEngine do
@moduledoc """
This module glues together surface's AST and Phoenix.LiveView.Engine to actually render an AST.
It takes a list of Surface AST nodes, and processes them into a sequence of static raw html items and
dynamic pieces. It then converts these into tokens which a... | 30.255193 | 120 | 0.629593 |
d5ba3a335f7eec268e772d77b11c99662700a8ec | 680 | ex | Elixir | lib/monero/json/jsx.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 7 | 2017-09-08T18:17:55.000Z | 2021-07-11T01:03:40.000Z | lib/monero/json/jsx.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 11 | 2017-09-08T10:23:34.000Z | 2018-08-24T16:10:09.000Z | lib/monero/json/jsx.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 2 | 2018-11-12T06:42:31.000Z | 2021-07-11T01:33:34.000Z | defmodule Monero.JSON.JSX do
@behaviour Monero.JSON.Codec
@moduledoc "JSX codec"
if Code.ensure_loaded?(:jsx) do
def encode!(%{} = map) do
:jsx.encode(map)
end
def decode!(string) do
:jsx.decode(string, [:return_maps])
end
else
def encode!(_) do
raise ":jsx must be added... | 18.888889 | 67 | 0.617647 |
d5ba3a3bbeb9d7f9bc7df5c8dc765065e8d484ce | 11,333 | exs | Elixir | test/mix/tasks/phoenix.gen.model_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | test/mix/tasks/phoenix.gen.model_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | test/mix/tasks/phoenix.gen.model_test.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | Code.require_file "../../../installer/test/mix_helper.exs", __DIR__
defmodule Phoenix.Dup do
end
defmodule Phoenix.Article do
def __schema__(:source), do: "articles"
end
defmodule Mix.Tasks.Phoenix.Gen.ModelTest do
use ExUnit.Case
import ExUnit.CaptureIO
import MixHelper
setup do
Mix.Task.clear()
... | 35.638365 | 136 | 0.620577 |
d5ba84eb2b2541ca5fa0945276a4953c0c7120f7 | 4,101 | ex | Elixir | lib/config.ex | kodumbeats/docker-elixir | b4f8b929691ce2bf9f11743def49009de460431b | [
"Apache-2.0"
] | 21 | 2015-05-10T22:04:55.000Z | 2021-12-30T15:04:36.000Z | lib/config.ex | kodumbeats/docker-elixir | b4f8b929691ce2bf9f11743def49009de460431b | [
"Apache-2.0"
] | 3 | 2015-05-14T17:42:33.000Z | 2017-08-08T09:52:12.000Z | lib/config.ex | kodumbeats/docker-elixir | b4f8b929691ce2bf9f11743def49009de460431b | [
"Apache-2.0"
] | 10 | 2015-06-25T14:25:33.000Z | 2018-01-05T15:35:44.000Z | defmodule Docker.Config do
defstruct name: nil,
image: nil,
command: "",
entrypoint: "",
ports: %{}, # %{name: "container_port:host_port"}
volumes: %{}, # %{host_mount: container_mount}
remove: false,
environment: %{},
u... | 32.808 | 93 | 0.614728 |
d5ba987b9ce051437a7f6122d2cceb2679248d84 | 2,663 | exs | Elixir | phoenix/test/mehr_schulferien_web/controllers/month_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/test/mehr_schulferien_web/controllers/month_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/test/mehr_schulferien_web/controllers/month_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.MonthControllerTest do
use MehrSchulferienWeb.ConnCase
alias MehrSchulferien.Timetables
@create_attrs %{slug: "some slug", value: 42}
@update_attrs %{slug: "some updated slug", value: 43}
@invalid_attrs %{slug: nil, value: nil}
def fixture(:month) do
{:ok, month} = Timeta... | 29.921348 | 80 | 0.655276 |
d5baa951f8e087883280eebb6d40b1a992f174a3 | 890 | ex | Elixir | clients/os_login/lib/google_api/os_login/v1alpha/metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/os_login/lib/google_api/os_login/v1alpha/metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_login/lib/google_api/os_login/v1alpha/metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.962963 | 74 | 0.760674 |
d5baf631c2d2601b8ac98540c87fb2ca820ca545 | 2,608 | ex | Elixir | clients/vector_tile/lib/google_api/vector_tile/v1/model/tile_coordinates.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vector_tile/lib/google_api/vector_tile/v1/model/tile_coordinates.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vector_tile/lib/google_api/vector_tile/v1/model/tile_coordinates.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... | 49.207547 | 987 | 0.735046 |
d5bafc55f3c5d3a0e0d27861945da44fd28011d0 | 1,980 | exs | Elixir | config/dev.exs | fossabot/web.bejoistic | edd672a8f125180397b89e1f5ee469b1f2344e7f | [
"MIT"
] | null | null | null | config/dev.exs | fossabot/web.bejoistic | edd672a8f125180397b89e1f5ee469b1f2344e7f | [
"MIT"
] | null | null | null | config/dev.exs | fossabot/web.bejoistic | edd672a8f125180397b89e1f5ee469b1f2344e7f | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :wong_bejo, WongBejoWeb.Endpoint,
http: [port: 4... | 28.285714 | 68 | 0.680303 |
d5bb276b2ee535b88e89f9c59480c77d290cedd6 | 379 | ex | Elixir | lib/erlef_web/controllers/members/profile_controller.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/members/profile_controller.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/members/profile_controller.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.Members.ProfileController do
use ErlefWeb, :controller
alias Erlef.Members
def show(conn, _) do
has_email_request = Members.has_email_request?(conn.assigns.current_user)
email_request = Members.get_email_request_by_member(conn.assigns.current_user)
render(conn, has_email_request: ... | 31.583333 | 84 | 0.804749 |
d5bb363f2f8897dd1f0540faee72d09b26984546 | 7,272 | ex | Elixir | lib/exredis/api.ex | zorbash/exredis | 00d0de97bc12b3f9712198b7a08efb5c0eb9436a | [
"MIT"
] | null | null | null | lib/exredis/api.ex | zorbash/exredis | 00d0de97bc12b3f9712198b7a08efb5c0eb9436a | [
"MIT"
] | null | null | null | lib/exredis/api.ex | zorbash/exredis | 00d0de97bc12b3f9712198b7a08efb5c0eb9436a | [
"MIT"
] | null | null | null | defmodule Exredis.Api.Helper do
defmacro defredis(cmd, args, fun \\ nil) do
margs = Enum.map args, fn(x) -> {x, [], ExRedis.Api.Helper} end
cmd = if is_list(cmd), do: cmd, else: [cmd]
cmd_name = Enum.map(cmd, fn(x) -> Atom.to_char_list(x) end)
|> Enum.join("_") |> String.to_atom
method = Enum.ma... | 35.300971 | 86 | 0.627475 |
d5bb5e75c4ac4e715d4e683b1668d84948acf7ac | 950 | ex | Elixir | chapter7/lib/server.ex | aifrak/elixir-in-action-exercises | 45096cf6c74af2ea691e1df1e31058cb749214c2 | [
"MIT"
] | null | null | null | chapter7/lib/server.ex | aifrak/elixir-in-action-exercises | 45096cf6c74af2ea691e1df1e31058cb749214c2 | [
"MIT"
] | null | null | null | chapter7/lib/server.ex | aifrak/elixir-in-action-exercises | 45096cf6c74af2ea691e1df1e31058cb749214c2 | [
"MIT"
] | null | null | null | defmodule Todo.Server do
@moduledoc """
Server for todo list.
Code is already provided by the book: https://github.com/sasa1977/elixir-in-action
"""
use GenServer
def start(name) do
GenServer.start(Todo.Server, name)
end
def add_entry(todo_server, new_entry) do
GenServer.cast(todo_server, {:a... | 22.619048 | 84 | 0.672632 |
d5bb6670920a43a37c4c7d8bb4db52b5c42d9856 | 24,986 | ex | Elixir | lib/scenic/primitives.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitives.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitives.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer April 30, 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
# convenience functions for adding basic primitives to a graph.
# this module should be updated as new primitves are added
defmodule Scenic.Primitives do
alias Scenic.Primitive
alias Scenic.Graph
# import... | 31.748412 | 90 | 0.649804 |
d5bb95a29db98cafebfdf8e7e4c2791d56a28eb0 | 4,223 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_snippet.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_snippet.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_snippet.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... | 52.7875 | 301 | 0.69974 |
d5bba344fcae902f0314aac68d233909d2592665 | 475 | ex | Elixir | web/router.ex | PaoloLaurenti/SoPost-People | 6bf6ec7a07f62d9a1e05a68898f5ac7db0ad298c | [
"MIT"
] | 1 | 2017-02-09T19:19:00.000Z | 2017-02-09T19:19:00.000Z | web/router.ex | PaoloLaurenti/SoPost-People | 6bf6ec7a07f62d9a1e05a68898f5ac7db0ad298c | [
"MIT"
] | null | null | null | web/router.ex | PaoloLaurenti/SoPost-People | 6bf6ec7a07f62d9a1e05a68898f5ac7db0ad298c | [
"MIT"
] | null | null | null | defmodule SopostPeople.Router do
use SopostPeople.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", SopostPeople do... | 20.652174 | 57 | 0.694737 |
d5bba8ed10634f818f7be1addbbadf4733838ada | 1,934 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__list_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__list_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__list_versions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.192308 | 152 | 0.752844 |
d5bbd1c5db29582c249f54ef2e813da4b98750ec | 801 | exs | Elixir | apps/feedex_core/test/feedex_core/ctx/account_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_core/test/feedex_core/ctx/account_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_core/test/feedex_core/ctx/account_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexCore.Ctx.AccountTest do
use ExUnit.Case
use FeedexCore.DataCase, async: true
describe "#count" do
test "valid results" do
counts = Account.count()
assert counts.user == 0
assert counts.folder == 0
assert counts.register == 0
end
end
describe "#user_add" do
... | 25.03125 | 82 | 0.616729 |
d5bbd1fb97a770945437ef94ebb85650436ada5d | 507 | ex | Elixir | lib/dobble_generator_web/views/error_view.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 4 | 2020-04-11T23:00:13.000Z | 2022-02-07T14:51:18.000Z | lib/dobble_generator_web/views/error_view.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 2 | 2021-03-10T13:32:34.000Z | 2021-05-11T09:27:10.000Z | lib/dobble_generator_web/views/error_view.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | null | null | null | defmodule DobbleGeneratorWeb.ErrorView do
use DobbleGeneratorWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# t... | 29.823529 | 61 | 0.74359 |
d5bbe744ef6a3875a01328a1b74f538e1a41e082 | 738 | exs | Elixir | mix.exs | bchase/cc_cedict-elixir | 37ad788b91746ff0aa7248b0596c9d7fcb8dd902 | [
"MIT"
] | null | null | null | mix.exs | bchase/cc_cedict-elixir | 37ad788b91746ff0aa7248b0596c9d7fcb8dd902 | [
"MIT"
] | null | null | null | mix.exs | bchase/cc_cedict-elixir | 37ad788b91746ff0aa7248b0596c9d7fcb8dd902 | [
"MIT"
] | null | null | null | defmodule CCCEDICT.Mixfile do
use Mix.Project
def project do
[app: :cc_cedict,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for m... | 20.5 | 77 | 0.586721 |
d5bbfad7396c2bb57acf261954c7a3279b1991af | 13,478 | exs | Elixir | test/livebook/live_markdown/import_test.exs | keywire/livebook | f22bf2a21d077e4127829ebe5b6477390f9ae283 | [
"Apache-2.0"
] | null | null | null | test/livebook/live_markdown/import_test.exs | keywire/livebook | f22bf2a21d077e4127829ebe5b6477390f9ae283 | [
"Apache-2.0"
] | null | null | null | test/livebook/live_markdown/import_test.exs | keywire/livebook | f22bf2a21d077e4127829ebe5b6477390f9ae283 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.LiveMarkdown.ImportTest do
use ExUnit.Case, async: true
alias Livebook.LiveMarkdown.Import
alias Livebook.Notebook
alias Livebook.Notebook.Cell
test "acceptance" do
markdown = """
# My Notebook
## Section 1
Make sure to install:
* Erlang
* Elixir
* PostgreSQ... | 23.521815 | 137 | 0.387817 |
d5bbfcf12d9addfdf46567ab1d1ab5c25987a49a | 1,171 | ex | Elixir | lib/google/apis/base.ex | ianatha/google-api-elixir-client | d05f5493497f5a0249c6c7562abaf8e0a6d1b178 | [
"MIT"
] | 10 | 2017-02-08T08:42:37.000Z | 2018-04-27T01:04:34.000Z | lib/google/apis/base.ex | ianatha/google-api-elixir-client | d05f5493497f5a0249c6c7562abaf8e0a6d1b178 | [
"MIT"
] | 7 | 2017-02-08T09:02:43.000Z | 2017-07-14T05:12:01.000Z | lib/google/apis/base.ex | ianatha/google-api-elixir-client | d05f5493497f5a0249c6c7562abaf8e0a6d1b178 | [
"MIT"
] | 10 | 2017-02-08T08:42:40.000Z | 2020-07-20T09:56:21.000Z | defmodule Google.Apis.Base do
defmacro __using__(opts) do
quote bind_quoted: [endpoint: opts[:endpoint], oauth_only: opts[:oauth_only]] do
use HTTPoison.Base
defp process_response_body(body) do
body
|> Poison.decode!
end
defp process_url(url) do
full_url = "#{unqu... | 30.815789 | 136 | 0.592656 |
d5bc0c412d4616660362484c3e9d2a1b342d0cdd | 5,568 | exs | Elixir | test/unit/discovery_api_web/controllers/data_controller_preview_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/controllers/data_controller_preview_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/controllers/data_controller_preview_test.exs | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApiWeb.DataController.PreviewTest do
use DiscoveryApiWeb.ConnCase
use Placebo
alias DiscoveryApi.Data.Model
alias DiscoveryApi.Services.PrestoService
alias DiscoveryApiWeb.Utilities.JsonFieldDecoder
@dataset_id "1234-4567-89101"
@system_name "foobar__company_data"
describe "preview ... | 33.142857 | 138 | 0.570582 |
d5bc10254511b0d57779f1e3a6ec4196b62847d9 | 210 | exs | Elixir | notebooks/modulo_4/parte_2/ecto_example/priv/driver_licenses/migrations/20211115214750_add_driver_id_to_licenses.exs | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 14 | 2021-11-19T00:22:09.000Z | 2022-01-29T03:58:09.000Z | notebooks/modulo_4/parte_2/ecto_example/priv/driver_licenses/migrations/20211115214750_add_driver_id_to_licenses.exs | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | null | null | null | notebooks/modulo_4/parte_2/ecto_example/priv/driver_licenses/migrations/20211115214750_add_driver_id_to_licenses.exs | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 1 | 2022-03-01T00:49:50.000Z | 2022-03-01T00:49:50.000Z | defmodule EctoExample.DriverLicenses.Repo.Migrations.AddDriverIdToLicenses do
use Ecto.Migration
def change do
alter table("licenses") do
add(:driver_id, references("drivers"))
end
end
end
| 21 | 77 | 0.742857 |
d5bc3ad4c52c6917f09881864bfe77045b6687c7 | 2,566 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/service_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/service_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/service_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.415094 | 469 | 0.746687 |
d5bc4212149348b288438eea814eeef245fa1f84 | 7,353 | exs | Elixir | test/subscriptions/subscription_partitioning_test.exs | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_partitioning_test.exs | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_partitioning_test.exs | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | defmodule EventStore.Subscriptions.SubscriptionPartitioningTest do
use EventStore.StorageCase
import EventStore.SubscriptionHelpers
alias EventStore.EventFactory
alias EventStore.RecordedEvent
alias EventStore.Subscriptions.Subscription
describe "subscription partitioning" do
test "should partition e... | 30.135246 | 125 | 0.647355 |
d5bc5c33a728b91b52d4323d27e2fc7871b360a5 | 3,333 | exs | Elixir | test/query/geospatial_test.exs | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 530 | 2015-05-12T21:06:49.000Z | 2021-07-29T01:06:43.000Z | test/query/geospatial_test.exs | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 122 | 2015-05-12T03:12:50.000Z | 2019-11-11T11:21:10.000Z | test/query/geospatial_test.exs | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 79 | 2015-05-14T17:14:52.000Z | 2022-02-14T07:00:00.000Z | defmodule GeospatialTest do
use ExUnit.Case, async: true
use RethinkDB.Connection
import RethinkDB.Query
alias RethinkDB.Record
alias RethinkDB.Pseudotypes.Geometry.Point
alias RethinkDB.Pseudotypes.Geometry.Line
alias RethinkDB.Pseudotypes.Geometry.Polygon
setup_all do
start_link
:ok
end
... | 32.048077 | 131 | 0.558356 |
d5bc5ea0eb86b75e0c079c9aecf8643d493b60ea | 1,000 | ex | Elixir | apps/man_api/lib/man_api/web/endpoint.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/lib/man_api/web/endpoint.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/lib/man_api/web/endpoint.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | defmodule Man.Web.Endpoint do
@moduledoc """
Phoenix Endpoint for Man application.
"""
alias Confex.Resolver
use Phoenix.Endpoint, otp_app: :man_api
# Allow acceptance tests to run in concurrent mode
if Application.get_env(:man_api, :sql_sandbox) do
plug(Phoenix.Ecto.SQL.Sandbox)
end
plug(Plug.R... | 21.73913 | 62 | 0.711 |
d5bc693433d30dbe1f6c116b60693aa721ee03b9 | 791 | exs | Elixir | apps/api_web/test/api_web_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/test/api_web_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/test/api_web_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWebTest do
@moduledoc false
use ExUnit.Case
doctest ApiWeb
describe "runtime_config!/0" do
setup do
old_env = Application.get_env(:api_web, :api_pipeline)
on_exit(fn ->
Application.put_env(:api_web, :api_pipeline, old_env)
end)
:ok
end
end
test "confi... | 23.264706 | 84 | 0.704172 |
d5bc9653cc587861bfdd1adb2ad0cf89edf881f3 | 2,530 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_update_shipment_request.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_update_shipment_request.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_update_shipment_request.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"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... | 38.333333 | 213 | 0.693676 |
d5bcae649a17153c7f875ff4bc2e0d6ff6216a60 | 214 | exs | Elixir | test/protected_hello_web/controllers/page_controller_test.exs | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | test/protected_hello_web/controllers/page_controller_test.exs | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | test/protected_hello_web/controllers/page_controller_test.exs | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | defmodule ProtectedHelloWeb.PageControllerTest do
use ProtectedHelloWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.777778 | 60 | 0.700935 |
d5bcb4514d8c7e42a1416a625e7b5f240ab44d0d | 166 | exs | Elixir | backend/priv/repo/migrations/20170524234850_rename_file_purpose_to_type.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/priv/repo/migrations/20170524234850_rename_file_purpose_to_type.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/priv/repo/migrations/20170524234850_rename_file_purpose_to_type.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule Aptamer.Repo.Migrations.RenameFilePurposeToType do
use Ecto.Migration
def change do
rename(table(:files), :file_purpose, to: :file_type)
end
end
| 20.75 | 60 | 0.76506 |
d5bcb81a8722f30261aa662735a9eec4a1785047 | 110 | exs | Elixir | test/xema_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/xema_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/xema_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule XemaTest do
use ExUnit.Case
doctest Cast
doctest Examples
doctest Usage
doctest Xema
end
| 12.222222 | 21 | 0.763636 |
d5bcddadc55e85cd865fc72b7414937bba5ccfeb | 4,743 | exs | Elixir | test/controllers/user_skill_controller_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | test/controllers/user_skill_controller_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | test/controllers/user_skill_controller_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | defmodule CodeCorps.UserSkillControllerTest do
use CodeCorps.ApiCase
alias CodeCorps.UserSkill
alias CodeCorps.Repo
defp build_payload, do: %{ "data" => %{"type" => "user-skill", "attributes" => %{}}}
defp put_relationships(payload, user, skill) do
relationships = build_relationships(user, skill)
pa... | 34.620438 | 98 | 0.629138 |
d5bcf27868b40508568f3f9122b33381622f0e08 | 150 | exs | Elixir | test/elixir_latex_test.exs | moroz/elixir_latex | a7cd0ee5b1e82951dde8926cdaabd39551997f0c | [
"BSD-3-Clause"
] | 1 | 2021-12-21T10:38:35.000Z | 2021-12-21T10:38:35.000Z | test/elixir_latex_test.exs | moroz/elixir_latex | a7cd0ee5b1e82951dde8926cdaabd39551997f0c | [
"BSD-3-Clause"
] | null | null | null | test/elixir_latex_test.exs | moroz/elixir_latex | a7cd0ee5b1e82951dde8926cdaabd39551997f0c | [
"BSD-3-Clause"
] | null | null | null | defmodule ElixirLatexTest do
use ExUnit.Case
doctest ElixirLatex
test "greets the world" do
assert ElixirLatex.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
d5bd22d1e0c87de54f53ecfb4d06703f65220768 | 278 | exs | Elixir | test/shareveiga2_web/views/layout_view_test.exs | veigaribo/shareveiga | eb6a231ad1d449e5de41222176c88e8dae666f6f | [
"MIT"
] | null | null | null | test/shareveiga2_web/views/layout_view_test.exs | veigaribo/shareveiga | eb6a231ad1d449e5de41222176c88e8dae666f6f | [
"MIT"
] | null | null | null | test/shareveiga2_web/views/layout_view_test.exs | veigaribo/shareveiga | eb6a231ad1d449e5de41222176c88e8dae666f6f | [
"MIT"
] | null | null | null | defmodule Shareveiga2Web.LayoutViewTest do
use Shareveiga2Web.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.888889 | 65 | 0.773381 |
d5bd22ec8e49ab7876dd0124119ee66352983fc8 | 1,251 | exs | Elixir | config/prod.secret.exs | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | config/prod.secret.exs | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | config/prod.secret.exs | Matan18/bossaBoxChallengeElixir | b389144fe4f80a3e329a488def7d1e49ad1776e1 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.785714 | 67 | 0.720224 |
d5bd2f7a377c85f38486b57b6cdaa1cd275e521f | 469 | ex | Elixir | lib/ecto/soft_delete_query.ex | netflakes/ecto_soft_delete | e2d0afab30ad0cd87cc2234766ec5bf056bcf70b | [
"MIT"
] | 97 | 2016-09-30T20:05:44.000Z | 2022-03-29T19:09:27.000Z | lib/ecto/soft_delete_query.ex | netflakes/ecto_soft_delete | e2d0afab30ad0cd87cc2234766ec5bf056bcf70b | [
"MIT"
] | 110 | 2017-07-21T20:21:26.000Z | 2022-03-10T17:34:51.000Z | lib/ecto/soft_delete_query.ex | netflakes/ecto_soft_delete | e2d0afab30ad0cd87cc2234766ec5bf056bcf70b | [
"MIT"
] | 18 | 2017-12-19T22:30:49.000Z | 2021-07-20T22:09:51.000Z | defmodule Ecto.SoftDelete.Query do
@moduledoc """
functions for querying data that is (or is not) soft deleted
"""
import Ecto.Query
@doc """
Returns a query that searches only for undeleted items
query = from(u in User, select: u)
|> with_undeleted
results = Repo.all(query)
"""
@... | 20.391304 | 62 | 0.663113 |
d5bd4bdf8d7dc07ebf035d0abeff797f83142473 | 248 | ex | Elixir | lib/nudge_api/triggers/matches/initiator_user_match_created.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | lib/nudge_api/triggers/matches/initiator_user_match_created.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | lib/nudge_api/triggers/matches/initiator_user_match_created.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | defmodule NudgeApi.Triggers.Matches.InitiatorUserMatchCreated do
def handle!(user_id) do
{:ok, _} =
Machinery.transition_to(
NudgeApi.Users.get_user!(user_id),
NudgeApi.Fsms.UserFsm,
:has_match
)
end
end
| 22.545455 | 64 | 0.66129 |
d5bd9fa98f80184db1991c44d8b700f92f29ad31 | 1,102 | ex | Elixir | lib/nerves_time_zones/persistence.ex | jfcloutier/nerves_time_zones | 06b31f80f52d166176bb204a5beebc6308f5c155 | [
"Apache-2.0"
] | null | null | null | lib/nerves_time_zones/persistence.ex | jfcloutier/nerves_time_zones | 06b31f80f52d166176bb204a5beebc6308f5c155 | [
"Apache-2.0"
] | null | null | null | lib/nerves_time_zones/persistence.ex | jfcloutier/nerves_time_zones | 06b31f80f52d166176bb204a5beebc6308f5c155 | [
"Apache-2.0"
] | null | null | null | defmodule NervesTimeZones.Persistence do
@moduledoc false
@file_name "localtime"
@spec(save_time_zone(String.t()) :: :ok, {:error, any()})
def save_time_zone(time_zone) do
data_dir = data_directory()
path = Path.join(data_dir, @file_name)
with :ok <- File.mkdir_p(data_dir) do
File.write(pat... | 22.489796 | 81 | 0.65245 |
d5bdd6f6e0f46bb2650cecf522a80fcfea876050 | 1,149 | exs | Elixir | config/config.exs | bcdevices/nerves_system_linter | b062602e77edf7911262e695c42c2a28362e5e3e | [
"Apache-2.0"
] | 4 | 2017-10-20T04:06:33.000Z | 2019-01-30T10:34:42.000Z | config/config.exs | bcdevices/nerves_system_linter | b062602e77edf7911262e695c42c2a28362e5e3e | [
"Apache-2.0"
] | 7 | 2017-10-24T12:40:20.000Z | 2018-01-25T16:06:17.000Z | config/config.exs | bcdevices/nerves_system_linter | b062602e77edf7911262e695c42c2a28362e5e3e | [
"Apache-2.0"
] | 2 | 2017-10-19T00:36:12.000Z | 2018-08-23T23:12:18.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 37.064516 | 73 | 0.75718 |
d5bdf4cfc361fb83913654e09ed7a0c8fe26df30 | 99,219 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/api/courses.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/api/courses.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/api/courses.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... | 57.219723 | 999 | 0.682621 |
d5bdff7a336b43fd0b0a15278c8c40b71bffb198 | 193 | exs | Elixir | priv/repo/migrations/20180824060333_add_desc_to_favorites_category.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20180824060333_add_desc_to_favorites_category.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180824060333_add_desc_to_favorites_category.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.AddDescToFavoritesCategory do
use Ecto.Migration
def change do
alter table(:favorite_categories) do
add(:desc, :string)
end
end
end
| 19.3 | 69 | 0.746114 |
d5be0824d8ab9a077a1dcc5d1cd6dfc9db0d966f | 2,390 | ex | Elixir | lib/livebook_web/live/session_live/export_live_markdown_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/export_live_markdown_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/export_live_markdown_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.ExportLiveMarkdownComponent do
use LivebookWeb, :live_component
@impl true
def update(assigns, socket) do
socket = assign(socket, assigns)
{:ok,
socket
|> assign_new(:include_outputs, fn -> socket.assigns.notebook.persist_outputs end)
|> assign_source()}
... | 32.297297 | 128 | 0.587029 |
d5be386b1d74bd2e51f447f88bb7e0cd69d9da09 | 1,294 | ex | Elixir | lib/expokefight_web/router.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/router.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/router.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | defmodule ExpokefightWeb.Router do
use ExpokefightWeb, :router
alias ExpokefightWeb.Plugs.UUIDChecker
pipeline :api do
plug :accepts, ["json"]
plug UUIDChecker
end
scope "/api", ExpokefightWeb do
pipe_through :api
resources "/battles/", BattlesController, except: [:new, :edit, :update, :del... | 28.755556 | 85 | 0.713292 |
d5be3bf54e9aeb126f8e6288f8d6ce92c65be267 | 2,534 | ex | Elixir | app/lib/noodl_web/live/events/session/dashboard/dashboard.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl_web/live/events/session/dashboard/dashboard.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl_web/live/events/session/dashboard/dashboard.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.Live.Events.Session.Dashboard do
@moduledoc ~S"""
LiveView for the exp dash
"""
use NoodlWeb, :live_view
alias Noodl.{Events, Meta}
alias Noodl.Events.Event.Session
alias NoodlWeb.{EventsView, LayoutView}
@impl true
def mount(
%{"event" => event, "session" => slug},
... | 22.828829 | 99 | 0.549724 |
d5be7e4aa1951b4ea5698d767c161fa7b559c6f5 | 318 | ex | Elixir | pooly/lib/pooly/sample_worker.ex | mrmarbury/TheLittleElixirAndOTPGuideBook | 5aa46cdaee896ab5ecd87d3cf86bd7f9140fcda8 | [
"Apache-2.0"
] | null | null | null | pooly/lib/pooly/sample_worker.ex | mrmarbury/TheLittleElixirAndOTPGuideBook | 5aa46cdaee896ab5ecd87d3cf86bd7f9140fcda8 | [
"Apache-2.0"
] | null | null | null | pooly/lib/pooly/sample_worker.ex | mrmarbury/TheLittleElixirAndOTPGuideBook | 5aa46cdaee896ab5ecd87d3cf86bd7f9140fcda8 | [
"Apache-2.0"
] | null | null | null | defmodule Pooly.SampleWorker do
use GenServer
def start_link(_) do
GenServer.start_link(__MODULE__, :ok, [])
end
def stop(pid) do
GenServer.call(pid, :stop)
end
def init(init_arg) do
{:ok, init_arg}
end
def handle_call(:stop, _from, state) do
{:stop, :normal, :ok, state}
end
end
| 15.9 | 45 | 0.654088 |
d5bedeb51c1de80125e35ab791a69129a75ed44c | 2,360 | exs | Elixir | mix.exs | bdfinlayson/drab | ce11a643ec8fe7e7f622489af5792ef12e69a8c7 | [
"MIT"
] | null | null | null | mix.exs | bdfinlayson/drab | ce11a643ec8fe7e7f622489af5792ef12e69a8c7 | [
"MIT"
] | null | null | null | mix.exs | bdfinlayson/drab | ce11a643ec8fe7e7f622489af5792ef12e69a8c7 | [
"MIT"
] | null | null | null | defmodule Drab.Mixfile do
use Mix.Project
@version "0.7.1"
def project do
[
app: :drab,
version: @version,
elixir: ">= 1.5.2",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
descri... | 29.873418 | 110 | 0.526271 |
d5bee935333b1a1f87a1568a61e9b3effc5f409f | 1,763 | exs | Elixir | apps/omg_watcher/test/omg_watcher/exit_processor/in_flight_exit_info_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher/test/omg_watcher/exit_processor/in_flight_exit_info_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher/test/omg_watcher/exit_processor/in_flight_exit_info_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 27.546875 | 74 | 0.667612 |
d5bf021edff037301efd6e18ca4dfd9956f8f939 | 6,585 | ex | Elixir | test/support/test_helpers.ex | Simon-Initiative/lti_1p3_ecto_provider | 15b84b35aa2de266a5199bfab73cf339220e2b87 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | Simon-Initiative/lti_1p3_ecto_provider | 15b84b35aa2de266a5199bfab73cf339220e2b87 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | Simon-Initiative/lti_1p3_ecto_provider | 15b84b35aa2de266a5199bfab73cf339220e2b87 | [
"MIT"
] | null | null | null | defmodule Lti_1p3.DataProviders.EctoProvider.TestHelpers do
import Lti_1p3.Config
alias Lti_1p3.Test.Lti_1p3_User
alias Lti_1p3.Jwk
alias Lti_1p3.Tool.Registration
alias Lti_1p3.Tool.Deployment
Mox.defmock(Lti_1p3.Test.MockHTTPoison, for: HTTPoison.Base)
def lti_1p3_user(attrs \\ %{}) do
params =
... | 32.59901 | 150 | 0.598633 |
d5bf1d460892ee8985bb103882704cb27c42a245 | 12,433 | ex | Elixir | installer/lib/phoenix_new.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | installer/lib/phoenix_new.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | installer/lib/phoenix_new.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phoenix.New do
use Mix.Task
import Mix.Generator
@phoenix Path.expand("../..", __DIR__)
@version Mix.Project.config[:version]
@shortdoc "Create a new Phoenix v#{@version} application"
# File mappings
@new [
{:eex, "new/config/config.exs", "config/config.... | 33.877384 | 106 | 0.595834 |
d5bf2bbfa3af245eb50917fc53586154359c6859 | 7,650 | exs | Elixir | test/phoenix_live_view/integrations/update_test.exs | gjacobrobertson/phoenix_live_view | 459fd4939126edeaad673277791d460028bdb102 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/update_test.exs | gjacobrobertson/phoenix_live_view | 459fd4939126edeaad673277791d460028bdb102 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/update_test.exs | gjacobrobertson/phoenix_live_view | 459fd4939126edeaad673277791d460028bdb102 | [
"MIT"
] | 1 | 2020-09-23T17:11:30.000Z | 2020-09-23T17:11:30.000Z | defmodule Phoenix.LiveView.UpdateTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveViewTest.{Endpoint, DOM}
@endpoint Endpoint
@moduletag :capture_log
setup config do
{:ok,
conn: Plug.Test.init_test_session(Phoenix.ConnTest.build_conn(),... | 37.317073 | 95 | 0.493856 |
d5bf3898baeccb3b13f3df4ee142586dccc46776 | 1,739 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/batch_create_occurrences_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/batch_create_occurrences_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/batch_create_occurrences_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.489796 | 177 | 0.764807 |
d5bf4c0e96998b6e2221967ad22e9dbb3d8a6ae7 | 1,066 | ex | Elixir | lib/ex_kdl/token.ex | benjreinhart/ex_kdl | 42ce19b1ae2d3e05227c70a19a5c8a95e5837e78 | [
"MIT"
] | 1 | 2021-10-05T20:54:28.000Z | 2021-10-05T20:54:28.000Z | lib/ex_kdl/token.ex | benjreinhart/ex_kdl | 42ce19b1ae2d3e05227c70a19a5c8a95e5837e78 | [
"MIT"
] | 1 | 2021-10-01T23:21:46.000Z | 2021-10-01T23:21:46.000Z | lib/ex_kdl/token.ex | benjreinhart/kdl-ex | 42ce19b1ae2d3e05227c70a19a5c8a95e5837e78 | [
"MIT"
] | null | null | null | defmodule ExKdl.Token do
@moduledoc false
@type t :: {:eof} | {atom(), non_neg_integer()} | {atom(), non_neg_integer(), any()}
defguard is_type(token, type) when elem(token, 0) == type
@type valueless_token_types ::
:bom
| :semicolon
| :left_brace
| :right_brace
... | 19.740741 | 86 | 0.534709 |
d5bf6a2c7268d42a1b7290db92f8fac4417a0d46 | 1,209 | ex | Elixir | lib/cobwebhook/adapter.ex | serokell/cobwebhook | 5433acc84999262ee98df5cfb04ae17a11ef68b0 | [
"CC0-1.0"
] | 4 | 2019-01-25T10:47:44.000Z | 2020-11-21T22:42:22.000Z | lib/cobwebhook/adapter.ex | transumption-unstable/cobwebhook | cbdb428bf32d8b636c3c16aadf2163b81677606e | [
"CC0-1.0"
] | null | null | null | lib/cobwebhook/adapter.ex | transumption-unstable/cobwebhook | cbdb428bf32d8b636c3c16aadf2163b81677606e | [
"CC0-1.0"
] | null | null | null | defmodule Cobwebhook.Adapter do
@type secret :: String.t()
@type secrets :: List.t(secret()) | MapSet.t(secret())
@doc ~S"""
Parse trusted body into params.
"""
@callback parse(conn :: Plug.Conn.t(), body :: Plug.Conn.body()) :: map()
@doc ~S"""
Check if request was signed with the given secret.
"""... | 26.866667 | 100 | 0.583954 |
d5bf6be7cfbbd41c153c8d36a97e46cc29ab5fc6 | 334 | ex | Elixir | src/server/apps/domain_web/lib/domain_web/plug/context.ex | akeating/pespa | f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4 | [
"MIT"
] | 28 | 2017-04-07T03:23:30.000Z | 2021-09-29T13:41:04.000Z | src/server/apps/domain_web/lib/domain_web/plug/context.ex | akeating/pespa | f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4 | [
"MIT"
] | null | null | null | src/server/apps/domain_web/lib/domain_web/plug/context.ex | akeating/pespa | f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4 | [
"MIT"
] | 7 | 2017-10-22T10:47:53.000Z | 2021-04-21T23:11:22.000Z | defmodule DomainWeb.Plug.Context do
@moduledoc """
"""
import Plug.Conn
def init(opts), do: opts
def call(conn, _opts) do
case Guardian.Plug.current_resource(conn) do
# Here user could be nil or Domain.Accounts.User
user -> put_private(conn, :absinthe, %{context: %{current_user: user}})
... | 22.266667 | 77 | 0.670659 |
d5bf6d9ea627f2d171c60bdfbe8f687c3780b610 | 2,617 | exs | Elixir | test/creek_dict_admin/entries_test.exs | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | test/creek_dict_admin/entries_test.exs | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | 7 | 2019-09-20T02:00:23.000Z | 2019-10-07T04:22:51.000Z | test/creek_dict_admin/entries_test.exs | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | defmodule CreekDictAdmin.EntriesTest do
use CreekDictAdmin.DataCase
alias CreekDictAdmin.Entries
describe "entry" do
alias CreekDictAdmin.Entries.Entry
@valid_attrs %{creek_word: "some creek_word", english_definition: "some english_definition", english_word: "some english_word", tags: "some tags"}
... | 36.859155 | 183 | 0.690867 |
d5bf844b00c57c86b19c7f1f1be79c4461595a70 | 1,031 | exs | Elixir | config/config.exs | LunarLogic/timetracker | 5c2ffffc9023c7b099d7af8de7f21225352483ca | [
"MIT"
] | 1 | 2019-06-26T06:53:01.000Z | 2019-06-26T06:53:01.000Z | config/config.exs | LunarLogic/timetracker | 5c2ffffc9023c7b099d7af8de7f21225352483ca | [
"MIT"
] | null | null | null | config/config.exs | LunarLogic/timetracker | 5c2ffffc9023c7b099d7af8de7f21225352483ca | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :timetracker,
ecto_repos: [Timetracker.... | 33.258065 | 86 | 0.772066 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.