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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d15f2b601c447d34d734f0478d2e19df19598f0 | 1,930 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/lat_lng.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/partners/lib/google_api/partners/v2/model/lat_lng.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/partners/lib/google_api/partners/v2/model/lat_lng.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.843137 | 351 | 0.731088 |
1d15fafce805efa689d893551f4de23cb77f80c7 | 1,428 | exs | Elixir | test/fixtures/umbrella_app/rel/config.exs | DianaOlympos/distillery | c25d4927d028bdeccbfa3a63e1db90798c8cdf1f | [
"MIT"
] | null | null | null | test/fixtures/umbrella_app/rel/config.exs | DianaOlympos/distillery | c25d4927d028bdeccbfa3a63e1db90798c8cdf1f | [
"MIT"
] | null | null | null | test/fixtures/umbrella_app/rel/config.exs | DianaOlympos/distillery | c25d4927d028bdeccbfa3a63e1db90798c8cdf1f | [
"MIT"
] | 1 | 2019-07-25T22:54:10.000Z | 2019-07-25T22:54:10.000Z | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# Thi... | 27.461538 | 82 | 0.69958 |
1d162167b1d5d6ad60f701d7fe31d28c7a1007d6 | 3,685 | ex | Elixir | lib/rdf/literal/datatypes/generic.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | lib/rdf/literal/datatypes/generic.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | lib/rdf/literal/datatypes/generic.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.Literal.Generic do
@moduledoc """
A generic `RDF.Literal.Datatype` for literals of an unknown datatype.
"""
defstruct [:value, :datatype]
use RDF.Literal.Datatype,
name: "generic",
id: nil
alias RDF.Literal.Datatype
alias RDF.{Literal, IRI}
import RDF.Guards
@type t :: %__MOD... | 27.916667 | 120 | 0.659973 |
1d1643219a5c0bea3083ef7da3187e23fafa4ace | 2,006 | exs | Elixir | config/prod.exs | fremantle-industries/rewind | 1818fe1704cb303e09108cbb5e669e673685fb62 | [
"MIT"
] | 2 | 2021-09-18T09:15:13.000Z | 2022-03-16T09:29:37.000Z | config/prod.exs | fremantle-industries/rewind | 1818fe1704cb303e09108cbb5e669e673685fb62 | [
"MIT"
] | null | null | null | config/prod.exs | fremantle-industries/rewind | 1818fe1704cb303e09108cbb5e669e673685fb62 | [
"MIT"
] | 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,
# ... | 35.821429 | 66 | 0.713858 |
1d169eeda1d133a5c0d31ee03a69a3978ad17c61 | 1,338 | ex | Elixir | lib/rube_web/router.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | null | null | null | lib/rube_web/router.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | null | null | null | lib/rube_web/router.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | null | null | null | defmodule RubeWeb.Router do
use RubeWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {RubeWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts... | 26.235294 | 77 | 0.677877 |
1d1735900143cbf1147d92c26c4814110ffd405d | 1,497 | ex | Elixir | lib/glimesh_web/live/channel_settings_live/addons.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh_web/live/channel_settings_live/addons.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh_web/live/channel_settings_live/addons.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.ChannelSettingsLive.Addons do
use GlimeshWeb, :live_view
alias Glimesh.Accounts
alias Glimesh.ChannelLookups
alias Glimesh.Streams
@impl Phoenix.LiveView
def mount(_params, session, socket) do
streamer = Accounts.get_user_by_session_token(session["user_token"])
case ChannelLo... | 28.788462 | 85 | 0.636607 |
1d175b820369f9b029062a19f4553ab9f9f31b52 | 1,684 | ex | Elixir | scenic_dev_ctrl/lib/scenic_dev_ctrl/application.ex | NervesJP/eefest19demo | 3b174072fa9c68671d5307959351ae41dc4e258d | [
"Apache-2.0"
] | 2 | 2020-05-06T08:57:19.000Z | 2020-06-26T10:33:46.000Z | scenic_dev_ctrl/lib/scenic_dev_ctrl/application.ex | NervesJP/eefest19demo | 3b174072fa9c68671d5307959351ae41dc4e258d | [
"Apache-2.0"
] | null | null | null | scenic_dev_ctrl/lib/scenic_dev_ctrl/application.ex | NervesJP/eefest19demo | 3b174072fa9c68671d5307959351ae41dc4e258d | [
"Apache-2.0"
] | 1 | 2019-06-01T02:34:41.000Z | 2019-06-01T02:34:41.000Z | defmodule ScenicDevCtrl.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
@target Mix.target()
use Application
use GenServer
require Logger
alias Circuits.GPIO
def start(_type, _args) do
# See https://hexdocs.pm/elixir/... | 25.907692 | 72 | 0.666271 |
1d1763e372a317b996652eee62a21b5f16ebfdda | 989 | ex | Elixir | lib/fortnox_ex/model/customer_partial.ex | rsystem-se/fortnox_ex | 42516a8d364d7b3efb2d09bcfd1bd6dbb0238463 | [
"MIT"
] | 2 | 2021-02-03T14:40:22.000Z | 2021-02-03T17:11:48.000Z | lib/fortnox_ex/model/customer_partial.ex | rsystem-se/fortnox_ex | 42516a8d364d7b3efb2d09bcfd1bd6dbb0238463 | [
"MIT"
] | null | null | null | lib/fortnox_ex/model/customer_partial.ex | rsystem-se/fortnox_ex | 42516a8d364d7b3efb2d09bcfd1bd6dbb0238463 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule FortnoxEx.Model.CustomerPartial do
@moduledoc """
A partial customer object (from customer list)
"""
@derive [Poison.Encoder]
defstruct [
... | 22.477273 | 91 | 0.601618 |
1d178686b5a1d47fd8fda6a3e6d923832eedd979 | 1,123 | exs | Elixir | config/config.exs | keyskey/ExSPD | 8795084f167402441c407bfcca62f990c4ee30d1 | [
"MIT"
] | 1 | 2018-10-02T10:56:30.000Z | 2018-10-02T10:56:30.000Z | config/config.exs | keyskey/ExSPD | 8795084f167402441c407bfcca62f990c4ee30d1 | [
"MIT"
] | null | null | null | config/config.exs | keyskey/ExSPD | 8795084f167402441c407bfcca62f990c4ee30d1 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.225806 | 73 | 0.749777 |
1d178e42aa7598696dfa1842af387c2d8b2a3c1f | 1,116 | exs | Elixir | test/helpers/dialog_test.exs | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | test/helpers/dialog_test.exs | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | test/helpers/dialog_test.exs | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | defmodule DialogTest do
use ExUnit.Case
use Hound.Helpers
if Hound.InternalHelpers.driver_supports?("dialog_text") do
hound_session()
test "Get dialog text" do
navigate_to("http://localhost:9090/page1.html")
execute_script("alert('hello')")
assert dialog_text() == "hello"
end
... | 30.162162 | 71 | 0.669355 |
1d1794b1730da7a04194f81c89934aaf41db3c35 | 8,304 | ex | Elixir | lib/oli/authoring/course.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli/authoring/course.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli/authoring/course.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 1 | 2021-10-30T05:58:19.000Z | 2021-10-30T05:58:19.000Z | defmodule Oli.Authoring.Course do
import Ecto.Query, warn: false
alias Oli.Repo
alias Oli.Repo.{Paging, Sorting}
alias Oli.Publishing
alias Oli.Authoring.{Collaborators, ProjectSearch}
alias Oli.Authoring.Course.{Project, Family, ProjectResource}
alias Oli.Accounts.{SystemRole, Author}
alias Oli.Author... | 27.959596 | 110 | 0.621989 |
1d1798e8802a8e8c8403b8221c4c9915021fdc9f | 1,113 | exs | Elixir | config/config.exs | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 26 | 2017-01-03T01:18:38.000Z | 2019-02-21T09:26:20.000Z | config/config.exs | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | null | null | null | config/config.exs | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 2 | 2017-03-18T22:45:49.000Z | 2017-05-08T07:24:58.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... | 35.903226 | 73 | 0.750225 |
1d17e7fc41c9c9ff6eace0d329b5a926c805d832 | 1,837 | exs | Elixir | mix.exs | membraneframework/membrane-element-portaudio | b1622040281e790422e0be94092957e1ef8cc4c1 | [
"Apache-2.0"
] | 2 | 2018-07-27T14:16:02.000Z | 2019-10-30T17:54:41.000Z | mix.exs | membraneframework/membrane-element-portaudio | b1622040281e790422e0be94092957e1ef8cc4c1 | [
"Apache-2.0"
] | 3 | 2018-10-15T07:58:25.000Z | 2020-08-07T05:20:30.000Z | mix.exs | membraneframework/membrane-element-portaudio | b1622040281e790422e0be94092957e1ef8cc4c1 | [
"Apache-2.0"
] | 1 | 2019-10-30T17:54:51.000Z | 2019-10-30T17:54:51.000Z | defmodule Membrane.PortAudio.Mixfile do
use Mix.Project
@github_url "https://github.com/membraneframework/membrane_portaudio_plugin"
@version "0.13.0"
def project do
[
app: :membrane_portaudio_plugin,
compilers: [:unifex, :bundlex] ++ Mix.compilers(),
version: @version,
elixir: "~>... | 25.873239 | 96 | 0.560697 |
1d17ebdccf293dad416092eb96574363b4170c33 | 3,734 | ex | Elixir | lib/hexen/people/people.ex | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 2 | 2019-12-28T21:31:43.000Z | 2019-12-30T01:03:28.000Z | lib/hexen/people/people.ex | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 4 | 2019-12-23T23:51:30.000Z | 2021-05-10T22:24:18.000Z | lib/hexen/people/people.ex | togmund/hexen | 5166ba445af592516beae48ccfcb76efc3fde166 | [
"Unlicense"
] | 1 | 2020-01-17T20:19:14.000Z | 2020-01-17T20:19:14.000Z | defmodule Hexen.People do
@moduledoc """
The People context.
"""
import Ecto.Query, warn: false
alias Hexen.Repo
alias Hexen.People.Band
@doc """
Returns the list of bands.
## Examples
iex> list_bands()
[%Band{}, ...]
"""
def list_bands do
Repo.all(Band)
end
@doc """
Ge... | 16.305677 | 66 | 0.52571 |
1d18120376762f16c7fd820de38a7f1970cd1b45 | 1,659 | exs | Elixir | test/set_version_test.exs | zverseckas/api_versioner | bdf8c480703d28ad8522f830321d841e9a8d2ae0 | [
"MIT"
] | 1 | 2017-12-22T13:14:43.000Z | 2017-12-22T13:14:43.000Z | test/set_version_test.exs | zverseckas/api_versioner | bdf8c480703d28ad8522f830321d841e9a8d2ae0 | [
"MIT"
] | 1 | 2018-01-28T16:44:46.000Z | 2018-01-28T16:44:46.000Z | test/set_version_test.exs | zverseckas/api_versioner | bdf8c480703d28ad8522f830321d841e9a8d2ae0 | [
"MIT"
] | 1 | 2018-01-28T16:35:36.000Z | 2018-01-28T16:35:36.000Z | defmodule SetVersionTest do
use ExUnit.Case, async: true
use Plug.Test
import Mock
alias ApiVersioner.SetVersion
doctest SetVersion
setup _opts do
{:ok,
[
opts: SetVersion.init([]),
no_default: SetVersion.init(
accepts: ~w(test1 test2)a
),
with_default... | 21.269231 | 73 | 0.569017 |
1d1815655cd5f52ae81c6b920b4f9a6897972ad0 | 136 | exs | Elixir | test/ueberauth_linkedin_test.exs | kreeti/ueberauth_linkedin | 6a16e025928cd8e194aad472d879458737e70a99 | [
"MIT"
] | 9 | 2016-04-17T21:50:24.000Z | 2021-04-26T11:22:46.000Z | test/ueberauth_linkedin_test.exs | kreeti/ueberauth_linkedin | 6a16e025928cd8e194aad472d879458737e70a99 | [
"MIT"
] | 9 | 2016-06-02T01:25:52.000Z | 2021-10-01T02:30:08.000Z | test/ueberauth_linkedin_test.exs | kreeti/ueberauth_linkedin | 6a16e025928cd8e194aad472d879458737e70a99 | [
"MIT"
] | 35 | 2016-05-29T23:16:03.000Z | 2022-03-06T09:57:28.000Z | defmodule UeberauthLinkedinTest do
use ExUnit.Case
doctest UeberauthLinkedin
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.111111 | 34 | 0.720588 |
1d18164beeb7447be2ce23db8678cca10460c2e1 | 500 | exs | Elixir | apps/game_of_life_web/test/channels/game_channel_test.exs | tslim/elixir-phoenix-life | c86fd69198c9193bdcd5b3b1b504f41f67268139 | [
"MIT"
] | 1 | 2016-09-28T07:38:55.000Z | 2016-09-28T07:38:55.000Z | apps/game_of_life_web/test/channels/game_channel_test.exs | tslim/elixir-phoenix-life | c86fd69198c9193bdcd5b3b1b504f41f67268139 | [
"MIT"
] | null | null | null | apps/game_of_life_web/test/channels/game_channel_test.exs | tslim/elixir-phoenix-life | c86fd69198c9193bdcd5b3b1b504f41f67268139 | [
"MIT"
] | null | null | null | defmodule GameOfLife.Web.GameChannelTest do
use GameOfLife.Web.ChannelCase
alias GameOfLife.Web.GameChannel
setup do
{:ok, _, socket} =
socket("user_id", %{some: :assign})
|> subscribe_and_join(GameChannel, "game:update")
{:ok, socket: socket}
end
test "return game state", %{socket: so... | 25 | 100 | 0.602 |
1d182af862d5fc8802f5cbb9968d8372ed8b0915 | 705 | exs | Elixir | config/config.exs | MaxG88/teslamate | 1456fa86fc6030e4beea8cd4a8fee45c3d7d636f | [
"MIT"
] | null | null | null | config/config.exs | MaxG88/teslamate | 1456fa86fc6030e4beea8cd4a8fee45c3d7d636f | [
"MIT"
] | null | null | null | config/config.exs | MaxG88/teslamate | 1456fa86fc6030e4beea8cd4a8fee45c3d7d636f | [
"MIT"
] | null | null | null | import Config
config :teslamate,
ecto_repos: [TeslaMate.Repo]
config :teslamate, TeslaMateWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "Kz7vmP1gPYv/sogke6P3RP9uipMjOLhneQdbokZVx5gpLsNaN44TD20vtOWkMFIT",
render_errors: [view: TeslaMateWeb.ErrorView, accepts: ~w(html json)],
pubsub: [name: TeslaMa... | 27.115385 | 86 | 0.751773 |
1d183370c55f559027fab36560ad8a2ef53b44d8 | 526 | ex | Elixir | lib/netcode.ex | fire/netcode | 211a32922a3e8f807eee3a1fdeca7d8166a99fa0 | [
"Apache-2.0"
] | 1 | 2017-11-14T05:36:09.000Z | 2017-11-14T05:36:09.000Z | lib/netcode.ex | fire/netcode | 211a32922a3e8f807eee3a1fdeca7d8166a99fa0 | [
"Apache-2.0"
] | 1 | 2017-08-12T19:48:32.000Z | 2021-05-30T14:30:23.000Z | lib/netcode.ex | fire/netcode | 211a32922a3e8f807eee3a1fdeca7d8166a99fa0 | [
"Apache-2.0"
] | null | null | null | defmodule Netcode do
use Application
@moduledoc """
Documentation for Netcode.
"""
@doc """
Hello world.
## Examples
iex> Netcode.hello
:world
"""
def hello do
:world
end
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(Netcode... | 15.939394 | 73 | 0.640684 |
1d18506893d6498907a9e35b9e44ab08ce67a58c | 190 | exs | Elixir | priv/repo/migrations/20200905064043_add_new_user_fields.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200905064043_add_new_user_fields.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200905064043_add_new_user_fields.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | defmodule Kepler.Repo.Migrations.AddNewUserFields do
use Ecto.Migration
def change do
alter table(:users) do
add :username, :string
add :name, :string
end
end
end
| 17.272727 | 52 | 0.684211 |
1d18d3d6c011b16f03525fc70d96733283d2496f | 1,117 | exs | Elixir | config/config.exs | BartKrol/spyfall | fa88f39faeb4262fd7ee041c393af768c7f84bf4 | [
"MIT"
] | null | null | null | config/config.exs | BartKrol/spyfall | fa88f39faeb4262fd7ee041c393af768c7f84bf4 | [
"MIT"
] | null | null | null | config/config.exs | BartKrol/spyfall | fa88f39faeb4262fd7ee041c393af768c7f84bf4 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.032258 | 73 | 0.751119 |
1d191bec100bf7b90fc742b4f30471d2489f856b | 1,365 | ex | Elixir | apps/omg_eth/test/support/snapshot_contracts.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_eth/test/support/snapshot_contracts.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_eth/test/support/snapshot_contracts.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 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 in w... | 31.744186 | 111 | 0.681319 |
1d192604428866fb04804ba4f3269dd4deffce90 | 3,377 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_training_phrase.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_training_phrase.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_training_phrase.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 46.902778 | 987 | 0.737933 |
1d193a5d35fb670ddc03e5584855c1d9632268ae | 567 | ex | Elixir | lib/attendance_web/views/changeset_view.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | lib/attendance_web/views/changeset_view.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | lib/attendance_web/views/changeset_view.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | defmodule AttendanceWeb.ChangesetView do
use AttendanceWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`AttendanceWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(chan... | 28.35 | 66 | 0.742504 |
1d19851337a973cde74f49d6239ccaa1936bc8ad | 1,008 | ex | Elixir | test/support/factory.ex | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | test/support/factory.ex | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | test/support/factory.ex | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | defmodule JellyBoard.Factory do
use ExMachina.Ecto, repo: JellyBoard.Repo
alias JellyBoard.{User, Board, List, Card}
def factory(:user) do
%User{
first_name: sequence(:first_name, &"First #{&1}"),
last_name: sequence(:last_name, &"Last #{&1}"),
email: sequence(:email, &"email-#{&1}@foo.com... | 20.16 | 56 | 0.563492 |
1d19bd2bc5324f2be480fd4e2956d96783b9099c | 456 | exs | Elixir | ex_lp/mix.exs | ohr486/chat-app-proto | 95484ea9252d3399d9b09412525de13dcd17497a | [
"MIT"
] | null | null | null | ex_lp/mix.exs | ohr486/chat-app-proto | 95484ea9252d3399d9b09412525de13dcd17497a | [
"MIT"
] | null | null | null | ex_lp/mix.exs | ohr486/chat-app-proto | 95484ea9252d3399d9b09412525de13dcd17497a | [
"MIT"
] | null | null | null | defmodule Chat.Mixfile do
use Mix.Project
def project do
[app: :chat,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[extra_applications: [:logger],
mod: {Chat.Application, [:co... | 19 | 83 | 0.583333 |
1d19ecf2602130b31125eae96ac0d5dc7d8f84d4 | 1,956 | exs | Elixir | apps/rtr/config/prod.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/rtr/config/prod.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/rtr/config/prod.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.548387 | 67 | 0.708589 |
1d19f2811494d63a76a35dbc6782983f48a4ef58 | 1,877 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.54 | 288 | 0.743207 |
1d1a22960d2802e04e02e1a7228db0d3de015eab | 160 | ex | Elixir | lib/chatops_rpc.ex | keathley/chatops_rpc | 028dbc564b9e13a65b933f4a7541a539611ede6e | [
"MIT"
] | 7 | 2020-03-04T20:18:57.000Z | 2022-02-28T09:25:07.000Z | lib/chatops_rpc.ex | keathley/chatops_rpc | 028dbc564b9e13a65b933f4a7541a539611ede6e | [
"MIT"
] | 43 | 2020-04-13T10:45:29.000Z | 2022-03-23T10:42:21.000Z | lib/chatops_rpc.ex | keathley/chatops_rpc | 028dbc564b9e13a65b933f4a7541a539611ede6e | [
"MIT"
] | null | null | null | defmodule ChatopsRPC do
@moduledoc "README.md"
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
end
| 22.857143 | 46 | 0.4625 |
1d1a3d7ec26c506009d58fd5e26fb6273b5db27c | 56 | exs | Elixir | test/test_helper.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | null | null | null | test/test_helper.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | 1 | 2016-07-24T01:31:37.000Z | 2016-07-24T01:31:37.000Z | test/test_helper.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | null | null | null | ExUnit.configure formatters: [ExUnitTap]
ExUnit.start()
| 18.666667 | 40 | 0.803571 |
1d1a4d7521ad97470d8fec3dbef5f132ab6afff2 | 46 | ex | Elixir | lib/astesting.ex | zeam-vm/astesting | b00842e3d0abcf1da28ebcf6704ac069a09d5607 | [
"Apache-2.0"
] | 1 | 2021-12-10T09:25:21.000Z | 2021-12-10T09:25:21.000Z | lib/astesting.ex | zeam-vm/astesting | b00842e3d0abcf1da28ebcf6704ac069a09d5607 | [
"Apache-2.0"
] | 1 | 2021-12-09T23:13:40.000Z | 2021-12-09T23:50:14.000Z | lib/astesting.ex | zeam-vm/astesting | b00842e3d0abcf1da28ebcf6704ac069a09d5607 | [
"Apache-2.0"
] | null | null | null | defmodule Astesting do
@moduledoc false
end
| 11.5 | 22 | 0.804348 |
1d1a6b3f51859879d2a9b5e24c8c18bf72370bef | 933 | ex | Elixir | lib/cabbage/feature/loader.ex | mosic/kukumo | 3da2540fc8caf097b04022b2d6acd5fba806b3d5 | [
"MIT"
] | null | null | null | lib/cabbage/feature/loader.ex | mosic/kukumo | 3da2540fc8caf097b04022b2d6acd5fba806b3d5 | [
"MIT"
] | null | null | null | lib/cabbage/feature/loader.ex | mosic/kukumo | 3da2540fc8caf097b04022b2d6acd5fba806b3d5 | [
"MIT"
] | null | null | null | defmodule Kukumo.Feature.Loader do
alias Gherkin.Elements.{Feature, Scenario, Step}
def load_from_file(path) do
"#{Kukumo.base_path()}#{path}"
|> File.read!()
|> load_from_string()
end
def load_from_string(string) do
string
|> Gherkin.parse()
|> Gherkin.flatten()
|> fix_step_types(... | 27.441176 | 90 | 0.678457 |
1d1a75ce547f0215ee8b3b06eaa6ba7e02a26a20 | 2,906 | exs | Elixir | priv/gen_cloudflare_docs.exs | princemaple/elixir-cloudflare-api-client | 874bed28bdd7d91ccb5f1f5eeccf37bad0c52495 | [
"MIT"
] | null | null | null | priv/gen_cloudflare_docs.exs | princemaple/elixir-cloudflare-api-client | 874bed28bdd7d91ccb5f1f5eeccf37bad0c52495 | [
"MIT"
] | 2 | 2021-08-23T17:31:14.000Z | 2021-10-19T21:31:13.000Z | priv/gen_cloudflare_docs.exs | princemaple/elixir-cloudflare-api-client | 874bed28bdd7d91ccb5f1f5eeccf37bad0c52495 | [
"MIT"
] | 1 | 2021-06-13T13:24:25.000Z | 2021-06-13T13:24:25.000Z | {:ok, doc} = "#{__DIR__}/cloudflare.txt" |> File.read!() |> Floki.parse_document()
doc =
Floki.traverse_and_update(doc, fn
{:comment, _} -> nil
other -> other
end)
menu = Floki.find(doc, ".menu-sidebar")
groups = Floki.find(menu, ".menu-sidebar > li")
doc =
doc
|> Floki.find(".api-section")
|> Flok... | 20.609929 | 96 | 0.462491 |
1d1a766154d3d8660c739e48eb766bb1e939f7f6 | 448 | exs | Elixir | test/job_board_web/views/error_view_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | test/job_board_web/views/error_view_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | test/job_board_web/views/error_view_test.exs | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.ErrorViewTest do
use JobBoardWeb.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(JobBoardWeb.ErrorView, "404.html", []) =~
"lost this page"
end
test "renders ... | 26.352941 | 69 | 0.700893 |
1d1a8b05b3b8c24d5a77483625acd1b1895c3d43 | 194 | exs | Elixir | examples/ecto_assoc/config/config.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | examples/ecto_assoc/config/config.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | examples/ecto_assoc/config/config.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :ecto_assoc, EctoAssoc.Repo,
adapter: Ecto.Adapters.Postgres,
database: "ecto_assoc_repo",
hostname: "localhost"
config :ecto_assoc,
ecto_repos: [EctoAssoc.Repo]
| 19.4 | 35 | 0.757732 |
1d1a9049ed07bed9b642758227ea8f4fec692d42 | 1,648 | exs | Elixir | test/lib/deli/ping_test.exs | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | 4 | 2019-01-30T11:51:44.000Z | 2019-10-14T02:38:26.000Z | test/lib/deli/ping_test.exs | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | null | null | null | test/lib/deli/ping_test.exs | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | null | null | null | defmodule Deli.PingTest do
use DeliCase, async: true
alias Deli.Ping
setup do
put_config(:__system_handler__, SystemStub)
put_config(:check, Deli.Check.Default)
end
describe "run/2" do
property "pings host and succeeds with a pong" do
check all env <- env(),
app_user <- app... | 23.542857 | 67 | 0.494539 |
1d1a986ee6517dda9cfb836ab1efdaf44a122a82 | 5,375 | ex | Elixir | lib/august_db/sstable/sstable.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | 5 | 2021-07-28T15:56:42.000Z | 2021-08-18T20:58:43.000Z | lib/august_db/sstable/sstable.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | 54 | 2021-07-28T14:51:49.000Z | 2021-08-11T21:56:10.000Z | lib/august_db/sstable/sstable.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | null | null | null | defmodule SSTable do
@moduledoc """
# Specification of Sorted String Table files
A Sorted String Table contains zero or more _gzipped key/value chunks_.
## GZipped key/value chunks
A _gzip key/value chunk_ follows this binary specification:
1. Four bytes: length of the gzipped chunk
2. Variable length... | 24.884259 | 107 | 0.620837 |
1d1b1546a01794eaa6bdade39ad56152288cdb8f | 1,770 | ex | Elixir | lib/sanbase/event_bus/user_events_subscriber.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/event_bus/user_events_subscriber.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/event_bus/user_events_subscriber.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.EventBus.UserEventsSubscriber do
@moduledoc """
Export all the event bus events to a kafka topic for persistence
"""
use GenServer
def topics(), do: ["user_events"]
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, opts, name: Keyword.get(opts, :name, __MODULE__))
end
... | 28.548387 | 101 | 0.720339 |
1d1b1ff5ba1b94870a31a90032dfe83198ddfc8d | 214 | exs | Elixir | priv/repo/migrations/20180115230143_create_users.exs | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | 30 | 2018-06-16T00:41:59.000Z | 2021-03-05T08:39:02.000Z | priv/repo/migrations/20180115230143_create_users.exs | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | 221 | 2018-01-15T20:33:13.000Z | 2022-02-16T00:53:35.000Z | priv/repo/migrations/20180115230143_create_users.exs | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | 5 | 2018-02-20T17:25:19.000Z | 2018-12-29T00:09:30.000Z | defmodule Chess.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :username, :string
add :password_hash, :string
timestamps()
end
end
end
| 16.461538 | 46 | 0.672897 |
1d1b9370b0504f425da584161da7159ab5f80c19 | 283 | exs | Elixir | Elixir/problem006.exs | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Elixir/problem006.exs | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Elixir/problem006.exs | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | # Problem 6 - Project Euler
# http://projecteuler.net/index.php?section=problems&id=6
defmodule P006 do
def solve() do
a = 1..100
|> Enum.reduce(fn (x, acc) -> x * x + acc end)
b = 1..100
|> Enum.reduce(&+/2)
(b * b) - a
end
end
IO.puts P006.solve()
| 20.214286 | 57 | 0.561837 |
1d1ba0795f6c50fb420d2c67a75a2da70f871d7a | 69 | ex | Elixir | web/views/shared_view.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | 2 | 2017-08-28T12:20:28.000Z | 2017-08-29T18:50:36.000Z | web/views/shared_view.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | web/views/shared_view.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | defmodule EnhancedMap.SharedView do
use EnhancedMap.Web, :view
end
| 17.25 | 35 | 0.811594 |
1d1ba62651d52176cbc35d6953caa9acfb0b54ce | 102 | exs | Elixir | test/hyperdrives_test.exs | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | test/hyperdrives_test.exs | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | test/hyperdrives_test.exs | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | defmodule HyperdrivesTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.75 | 28 | 0.666667 |
1d1bc6c9b041ad04e92b319b239d03688a8799c3 | 6,303 | exs | Elixir | lib/ex_unit/test/ex_unit/failures_manifest_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/ex_unit/test/ex_unit/failures_manifest_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/failures_manifest_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule ExUnit.FailuresManifestTest do
use ExUnit.Case, async: false
import ExUnit.FailuresManifest
import ExUnit.TestHelpers, only: [tmp_path: 0, in_tmp: 2]
@passed nil
@skipped {:skipped, "reason"}
@excluded {:excluded, "reason"}
@failed {:failed, []... | 31.358209 | 96 | 0.641599 |
1d1bd34c5e4d57ce61a1c1b08b93436217bc51bd | 653 | ex | Elixir | elixir/lib/com/spoonacular/client/model/inline_response_200_52.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 21 | 2019-08-09T18:53:26.000Z | 2022-03-14T22:10:10.000Z | elixir/lib/com/spoonacular/client/model/inline_response_200_52.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | null | null | null | elixir/lib/com/spoonacular/client/model/inline_response_200_52.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 55 | 2019-08-13T17:52:47.000Z | 2022-03-27T04:29:34.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 com.spoonacular.client.Model.InlineResponse20052 do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"Articles",
:"Grocery... | 20.40625 | 91 | 0.650842 |
1d1be36e3be347cbad81a7c55a20fe36dd3b9156 | 2,711 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/update_table_cell_properties_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_table_cell_properties_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/model/update_table_cell_properties_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.410714 | 509 | 0.740317 |
1d1c2b30015eb9fbefcb0f3ef7980620aca63774 | 1,649 | ex | Elixir | lib/web/authentication.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/authentication.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/authentication.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Authentication do
@moduledoc """
Implementation module for Guardian and functions for authentication.
"""
use Guardian, otp_app: :librecov
alias Librecov.Services.Users
alias Librecov.User
alias Librecov.Repo
use Unsafe.Generator,
docs: false
import Librecov.Helpers.Happy
@... | 22.283784 | 70 | 0.699818 |
1d1c30b3778eeb889fe7a1dc8082eedf2a771d14 | 16,137 | exs | Elixir | test/credo/code/token_test.exs | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | 1 | 2021-12-01T13:37:43.000Z | 2021-12-01T13:37:43.000Z | test/credo/code/token_test.exs | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | test/credo/code/token_test.exs | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | defmodule Credo.Code.TokenTest do
use Credo.Test.Case
alias Credo.Code.Token
@heredoc_interpolations_source """
def fun() do
a = \"\"\"
MyModule.\#{fun(Module.value() + 1)}.SubModule.\#{name}"
\"\"\"
end
"""
@heredoc_interpolations_position {1, 5, 1, 60}
@multiple_interpolations_source ~S... | 29.938776 | 97 | 0.489248 |
1d1c3b8f4932da63ad2d60a2d7c1d3eb3d51a486 | 155 | exs | Elixir | priv/repo/migrations/20210217164904_add_money.exs | ritavaz02/Produtos | b29ed74e428eb9391ccd12460d1dcb005d040400 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210217164904_add_money.exs | ritavaz02/Produtos | b29ed74e428eb9391ccd12460d1dcb005d040400 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210217164904_add_money.exs | ritavaz02/Produtos | b29ed74e428eb9391ccd12460d1dcb005d040400 | [
"MIT"
] | null | null | null | defmodule Chirper.Repo.Migrations.AddMoney do
use Ecto.Migration
def change do
alter table(:users) do
add :money, :string
end
end
end
| 15.5 | 45 | 0.690323 |
1d1c600e853b002070c4c24aa3b44706ae093bdc | 2,021 | exs | Elixir | apps/ewallet/config/config.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/config/config.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/config/config.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :ewallet,
ecto_repos: [],
version: "1.2.0-dev",
settings: [
:base_url,
:sender_email,
:max_per_page,
:redirect_url_prefixes,
:aws_access_key_id,
... | 34.254237 | 84 | 0.678377 |
1d1c651e3f7bca1ddbc6da3386c730344c044570 | 1,879 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_segmentation_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_segmentation_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_segmentation_config.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... | 34.163636 | 185 | 0.753592 |
1d1c6778d2f3966cc37cfdf6200b403c2968ff12 | 1,265 | ex | Elixir | lib/xdr/types/signer_key_type.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/types/signer_key_type.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/types/signer_key_type.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.SignerKeyType do
@moduledoc """
Representation of Stellar `SignerKeyType` type.
"""
@behaviour XDR.Declaration
@declarations [
SIGNER_KEY_TYPE_ED25519: 0,
SIGNER_KEY_TYPE_PRE_AUTH_TX: 1,
SIGNER_KEY_TYPE_HASH_X: 2
]
@enum_spec %XDR.Enum{declarations: @declarations, i... | 23.425926 | 78 | 0.664822 |
1d1c6d1d66c2755398854dfc0fbcb7dd305bade8 | 272 | exs | Elixir | priv/repo/seeds/01_webhook_user.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | priv/repo/seeds/01_webhook_user.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | priv/repo/seeds/01_webhook_user.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | import Botanist
import System, only: [get_env: 1]
alias Console.{Repo, Schema}
seed do
%Schema.User{
name: "console",
email: "console@plural.sh",
bot_name: "console"
}
|> Schema.User.changeset(%{password: Ecto.UUID.generate()})
|> Repo.insert!()
end
| 18.133333 | 61 | 0.654412 |
1d1c78b57e979d1a04270bff18b633639d97be8d | 1,749 | ex | Elixir | lib/mix/lib/mix/tasks/compile.leex.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/mix/lib/mix/tasks/compile.leex.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.leex.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Leex do
use Mix.Task
alias Mix.Compilers.Erlang
@recursive true
@manifest ".compile.leex"
@moduledoc """
Compiles Leex source files.
When this task runs, it will check the modification time of every file, and
if it has changed, the file will be compiled. Files will be
co... | 27.328125 | 84 | 0.668382 |
1d1cb5c5dae04ac4b739ffb1d85aa8a8cf1343be | 11,031 | ex | Elixir | lib/elixir/lib/port.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/lib/port.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/lib/port.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | defmodule Port do
@moduledoc ~S"""
Functions for interacting with the external world through ports.
Ports provide a mechanism to start operating system processes external
to the Erlang VM and communicate with them via message passing.
## Example
iex> port = Port.open({:spawn, "cat"}, [:binary])
... | 33.427273 | 88 | 0.676911 |
1d1cbeb15978d4f2d0038ed76ba7f294ae7c85ca | 103 | exs | Elixir | .formatter.exs | ckampfe/etfx | 36160c740dddf4405860947590094bbf6834dbb8 | [
"BSD-3-Clause"
] | null | null | null | .formatter.exs | ckampfe/etfx | 36160c740dddf4405860947590094bbf6834dbb8 | [
"BSD-3-Clause"
] | null | null | null | .formatter.exs | ckampfe/etfx | 36160c740dddf4405860947590094bbf6834dbb8 | [
"BSD-3-Clause"
] | null | null | null | # Used by "mix format"
[
inputs: ["{bench,mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
| 20.6 | 75 | 0.572816 |
1d1d3de52812a63b35a872364a43b7508268ae8e | 342 | ex | Elixir | lib/epi_contacts.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | lib/epi_contacts.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | lib/epi_contacts.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContacts do
@moduledoc """
EpiContacts keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
def signer do
Application.get_env(:epi_contacts, __MODULE_... | 24.428571 | 66 | 0.751462 |
1d1d819826fddd1ef0f0357c28cb37b9343afa56 | 266 | exs | Elixir | test/test_helper.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | 1 | 2015-08-27T13:17:10.000Z | 2015-08-27T13:17:10.000Z | test/test_helper.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | knewter/ecto | faacfeef25e35c42b1e97323b03d5bed9ba51416 | [
"Apache-2.0"
] | null | null | null | # For tasks/generators testing
Mix.start()
Mix.shell(Mix.Shell.Process)
System.put_env("ECTO_EDITOR", "")
# Commonly used support feature
Code.require_file "support/file_helpers.exs", __DIR__
Code.require_file "support/compile_helpers.exs", __DIR__
ExUnit.start()
| 24.181818 | 56 | 0.789474 |
1d1da6786d0724f5860d2b819705b530faa42c83 | 228 | ex | Elixir | lib/brando/blueprint/trait.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/blueprint/trait.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/blueprint/trait.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Blueprint.Trait do
defmacro trait(name, opts \\ []) do
quote location: :keep,
generated: true do
Module.put_attribute(__MODULE__, :traits, {unquote(name), unquote(opts)})
end
end
end
| 25.333333 | 79 | 0.666667 |
1d1da67c1780395e6e3baa3d13ba600d287e9928 | 898 | ex | Elixir | lib/agx/cli.ex | andrewaguiar/agx | e0e26ba08892ea59a4c2d6829f2066aadd97c305 | [
"MIT"
] | null | null | null | lib/agx/cli.ex | andrewaguiar/agx | e0e26ba08892ea59a4c2d6829f2066aadd97c305 | [
"MIT"
] | null | null | null | lib/agx/cli.ex | andrewaguiar/agx | e0e26ba08892ea59a4c2d6829f2066aadd97c305 | [
"MIT"
] | null | null | null | defmodule Agx.CLI do
alias Agx.Colors
def main(args) do
args |> parse_args |> run
end
defp run({args_config, [term], []}) do
Agx.run(args_config, term)
end
defp run(_) do
IO.puts(
"""
#{Colors.bold("NAME")}
agx - Simple and powerfull string searcher.
#{Colors.b... | 23.025641 | 107 | 0.580178 |
1d1db31e018818eb4b7e58b54b84b2d03db72d18 | 932 | exs | Elixir | apps/tai/test/tai/commands/send_orders_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/commands/send_orders_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/commands/send_orders_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Commands.SendOrdersTest do
use ExUnit.Case, async: false
import ExUnit.CaptureIO
setup do
on_exit(fn ->
Application.stop(:tai)
end)
{:ok, _} = Application.ensure_all_started(:tai)
:ok
end
test "disable_send_orders sets the value to false" do
assert capture_io(&Tai.C... | 25.189189 | 71 | 0.47103 |
1d1dbf5df47cb5b4cbaf78fdb6dc0d0cbd2290df | 1,683 | ex | Elixir | lib/exreddit/oauth.ex | making3/exredd | 83536b98b117cab20c2b5c8375bbec6225fff910 | [
"MIT"
] | null | null | null | lib/exreddit/oauth.ex | making3/exredd | 83536b98b117cab20c2b5c8375bbec6225fff910 | [
"MIT"
] | null | null | null | lib/exreddit/oauth.ex | making3/exredd | 83536b98b117cab20c2b5c8375bbec6225fff910 | [
"MIT"
] | null | null | null | defmodule ExReddit.OAuth do
alias HTTPotion.{Response, ErrorResponse}
require Poison
def get_token, do: request_token() |> parse()
defp parse(%Response{body: body, status_code: code}),
do: Poison.decode(body) |> parse_body(code)
defp parse(%ErrorResponse{message: error}),
do: {:error, error}
defp... | 27.590164 | 94 | 0.647653 |
1d1dcdd4deb5dbd37bb5f9c792511cc75ca709f2 | 580 | exs | Elixir | test/parser_test.exs | membraneframework/membrane-element-pcap | c3926d58c8bf9963e9c7c9e8c78ca06ad982c01a | [
"Apache-2.0"
] | 1 | 2020-03-27T05:00:56.000Z | 2020-03-27T05:00:56.000Z | test/parser_test.exs | membraneframework/membrane-element-pcap | c3926d58c8bf9963e9c7c9e8c78ca06ad982c01a | [
"Apache-2.0"
] | 2 | 2019-02-06T16:33:28.000Z | 2019-08-06T12:41:06.000Z | test/parser_test.exs | membraneframework/membrane-element-pcap | c3926d58c8bf9963e9c7c9e8c78ca06ad982c01a | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.Pcap.ParserTest do
use ExUnit.Case, async: false
alias Membrane.Element.Pcap.Parser
alias Membrane.Support.TestPacket
test "parses example file" do
assert {:ok, parser} = Parser.from_file(TestPacket.path())
assert %Parser{file: file, global_header: global_header} = parser
... | 34.117647 | 76 | 0.731034 |
1d1deab8c6b060a40f448c2894043526e824769e | 45,141 | ex | Elixir | lib/elixir/lib/macro.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2019-08-13T23:22:33.000Z | 2019-08-13T23:22:33.000Z | lib/elixir/lib/macro.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [to_string: 1]
defmodule Macro do
@moduledoc ~S"""
Conveniences for working with macros.
## Custom Sigils
To create a custom sigil, define a function with the name
`sigil_{identifier}` that takes two arguments. The first argument will be
the string, the second will be a charlist co... | 30.235097 | 103 | 0.612126 |
1d1e1de9ec2a93320596c48171c0ca819ac1e9ef | 9,746 | ex | Elixir | clients/runtime_config/lib/google_api/runtime_config/v1/api/operations.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/runtime_config/lib/google_api/runtime_config/v1/api/operations.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/runtime_config/lib/google_api/runtime_config/v1/api/operations.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 49.222222 | 669 | 0.690437 |
1d1e4cc72c5caaac9e59ba09c9f27ab536be8cee | 757 | exs | Elixir | config/config.exs | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | 11 | 2021-04-12T18:32:30.000Z | 2021-04-23T04:29:48.000Z | config/config.exs | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:14:50.000Z | 2021-09-18T01:14:50.000Z | config/config.exs | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | 11 | 2021-04-13T15:01:36.000Z | 2021-04-19T19:04:47.000Z | import Config
config :speedrun_blogengine,
ecto_repos: [SpeedrunBlogengine.Repo]
config :speedrun_blogengine_web,
ecto_repos: [SpeedrunBlogengine.Repo],
generators: [context_app: :speedrun_blogengine, binary_id: true]
config :speedrun_blogengine_web, SpeedrunBlogengineWeb.Endpoint,
url: [host: "localhost"],
... | 31.541667 | 91 | 0.779392 |
1d1e5d4e8118aebbdb554a1ee9fa341fa427d395 | 1,662 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/list_operations_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/list_operations_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/list_operations_response.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... | 33.24 | 125 | 0.757521 |
1d1eba3880543c3e5bd621061a5fb4d96d6a8814 | 2,122 | exs | Elixir | mix.exs | florinpatrascu/libcluster_gig | 703c13767db53c4366581bfd8d34cfe09bed37d3 | [
"Apache-2.0"
] | 5 | 2020-01-11T18:16:16.000Z | 2021-12-14T02:30:38.000Z | mix.exs | florinpatrascu/libcluster_gig | 703c13767db53c4366581bfd8d34cfe09bed37d3 | [
"Apache-2.0"
] | null | null | null | mix.exs | florinpatrascu/libcluster_gig | 703c13767db53c4366581bfd8d34cfe09bed37d3 | [
"Apache-2.0"
] | null | null | null | defmodule LibclusterGig.MixProject do
use Mix.Project
@version "0.3.1"
def project do
[
app: :libcluster_gig,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
source_url: source_url(),
project_... | 25.566265 | 99 | 0.584826 |
1d1f082ad5464f8228a429c7929607731c02705d | 1,200 | exs | Elixir | test/facebook_api_test.exs | kacperduras/pixelconversionserver | e8a170411395ce9d787b20d0bde775c8babe8b6a | [
"MIT"
] | 1 | 2021-06-26T14:18:35.000Z | 2021-06-26T14:18:35.000Z | test/facebook_api_test.exs | mypolitics/pixelconversionserver | e8a170411395ce9d787b20d0bde775c8babe8b6a | [
"MIT"
] | null | null | null | test/facebook_api_test.exs | mypolitics/pixelconversionserver | e8a170411395ce9d787b20d0bde775c8babe8b6a | [
"MIT"
] | 2 | 2021-06-20T23:29:35.000Z | 2021-06-20T23:52:12.000Z | defmodule PixelConversionServer.FacebookAPITest do
use ExUnit.Case
doctest PixelConversionServer.FacebookAPI
test "build request url" do
assert PixelConversionServer.FacebookAPI.build_request_url("0000000000") == "https://graph.facebook.com/v9.0/0000000000/events"
end
test "valid request items" do
i... | 22.641509 | 131 | 0.531667 |
1d1f169c8546c9b6697921647521107826df18d4 | 2,289 | ex | Elixir | lib/icon/schema/types/transaction/result.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | 4 | 2022-01-27T09:10:05.000Z | 2022-03-09T04:38:13.000Z | lib/icon/schema/types/transaction/result.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | lib/icon/schema/types/transaction/result.ex | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | defmodule Icon.Schema.Types.Transaction.Result do
@moduledoc """
This module defines a transaction result.
A transaction result has the following keys:
Key | Type | Description
:-------------------- | :----------------------------------------- | :-----... | 53.232558 | 158 | 0.577545 |
1d1f26ab14349365d07550d7eb041ffd5369f817 | 1,992 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/table_row_style.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/table_row_style.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/table_row_style.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.584906 | 264 | 0.71988 |
1d1f357335bc9eba43fe5d4e2a14d3a00813f4f6 | 695 | ex | Elixir | lib/tesla/middleware/telemetry.ex | RyanSiu1995/tesla | d42594ab851e7e5d01b3c4ae342a3621d4f9a5cb | [
"MIT"
] | null | null | null | lib/tesla/middleware/telemetry.ex | RyanSiu1995/tesla | d42594ab851e7e5d01b3c4ae342a3621d4f9a5cb | [
"MIT"
] | null | null | null | lib/tesla/middleware/telemetry.ex | RyanSiu1995/tesla | d42594ab851e7e5d01b3c4ae342a3621d4f9a5cb | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.Telemetry do
@behaviour Tesla.Middleware
@moduledoc """
Send the request time and meta-information through telemetry.
### Example usage
```
defmodule MyClient do
use Tesla
plug Tesla.Middleware.Telemetry
end
:telemetry.attach("my-tesla-telemetry", [:tesla, :reques... | 22.419355 | 93 | 0.667626 |
1d1f648b8fd0645b83797024ab9e4f124e163116 | 4,215 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_entity_normalized_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_entity_normalized_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_entity_normalized_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... | 56.2 | 603 | 0.739739 |
1d1f83e7e0f2eab55109b15be4583962150abd70 | 3,369 | exs | Elixir | test/kino/ets_test.exs | BrooklinJazz/kino | 5ce878691798259c592b4298097e72353e23880c | [
"Apache-2.0"
] | null | null | null | test/kino/ets_test.exs | BrooklinJazz/kino | 5ce878691798259c592b4298097e72353e23880c | [
"Apache-2.0"
] | null | null | null | test/kino/ets_test.exs | BrooklinJazz/kino | 5ce878691798259c592b4298097e72353e23880c | [
"Apache-2.0"
] | null | null | null | defmodule Kino.ETSTest do
use Kino.LivebookCase, async: true
import KinoTest.JS.Live
describe "new/1" do
test "raises an error when private table is given" do
tid = :ets.new(:users, [:set, :private])
assert_raise ArgumentError,
"the given table must be either public or protec... | 26.952 | 104 | 0.490056 |
1d1fb134c8951a03ecc3ce8d7f05f38b4a75daf5 | 358 | exs | Elixir | priv/repo/seeds.exs | ibnHatab/terpsichore | 6ac9b405df8c64a98ea13a1a026269313d0e2fa1 | [
"BSD-2-Clause"
] | null | null | null | priv/repo/seeds.exs | ibnHatab/terpsichore | 6ac9b405df8c64a98ea13a1a026269313d0e2fa1 | [
"BSD-2-Clause"
] | null | null | null | priv/repo/seeds.exs | ibnHatab/terpsichore | 6ac9b405df8c64a98ea13a1a026269313d0e2fa1 | [
"BSD-2-Clause"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Terpsichore.Repo.insert!(%Terpsichore.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as th... | 29.833333 | 61 | 0.712291 |
1d1fb2a52302f2c4d07b749d061f2d44c409697f | 4,853 | exs | Elixir | test/models/user_test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | test/models/user_test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | test/models/user_test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.UserTest.Shared do
defmacro encryped_password_tests do
quote location: :keep do
@tag valid_changeset: true
test "generates encrypted_password", %{changeset: changeset} do
assert changeset.valid?
assert Map.has_key? changeset.changes, :encrypted_password
end
... | 29.95679 | 104 | 0.683907 |
1d1fd26000225d3df89ee8d21d9bf77b0c568dd1 | 470 | ex | Elixir | lib/conv_claim_web/controllers/fallback_controller.ex | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | lib/conv_claim_web/controllers/fallback_controller.ex | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | lib/conv_claim_web/controllers/fallback_controller.ex | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | defmodule ConvClaimWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use ConvClaimWeb, :controller
# This clause is an example of how to handle resources that cannot be found.
d... | 27.647059 | 78 | 0.719149 |
1d1fd6cae5fdcebb149731e294d2f18357bcdaf6 | 1,039 | exs | Elixir | apps/holiday/mix.exs | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/holiday/mix.exs | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | apps/holiday/mix.exs | mbta/crispy-spoon | 7ef28a1a6adc73899b007e334b9220f7a48a60fa | [
"MIT"
] | null | null | null | defmodule Holiday.Mixfile do
use Mix.Project
def project do
[
app: :holiday,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
build_embedded: Mix.env() == :prod,
start_perma... | 22.586957 | 77 | 0.580366 |
1d1fe4f66f0fd8f5bfffbe9c52b479048a82fcff | 1,655 | ex | Elixir | lib/espy_web.ex | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | 9 | 2019-02-22T10:33:28.000Z | 2021-02-27T20:26:03.000Z | lib/espy_web.ex | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | 11 | 2019-04-02T19:21:25.000Z | 2022-01-05T23:22:04.000Z | lib/espy_web.ex | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | 6 | 2019-03-07T15:54:30.000Z | 2020-03-26T02:33:40.000Z | defmodule EspyWeb 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 EspyWeb, :controller
use EspyWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 23.309859 | 69 | 0.680363 |
1d1fef2b99e2ac3a4aa2ad17447b7462b440abef | 12,759 | ex | Elixir | deps/sqlitex/lib/sqlitex/statement.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | deps/sqlitex/lib/sqlitex/statement.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | deps/sqlitex/lib/sqlitex/statement.ex | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | defmodule Sqlitex.Statement do
alias Sqlitex.Row
@moduledoc """
Provides an interface for working with SQLite prepared statements.
Care should be taken when using prepared statements directly - they are not
immutable objects like most things in Elixir. Sharing a statement between
different processes can ca... | 31.426108 | 130 | 0.646289 |
1d2006ded8560ad1562d32d0a6045ef3ce21f20a | 1,061 | ex | Elixir | lib/idService/application.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | lib/idService/application.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | lib/idService/application.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | defmodule IdService.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
IdService.Repo,
# Start the Telemetry supervisor
IdS... | 28.675676 | 67 | 0.70688 |
1d2007ccf8c13cc517c234863c41447e06cbde6c | 1,592 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/fatal_exception.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/fatal_exception.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/fatal_exception.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.166667 | 139 | 0.751256 |
1d202da3f9979af12f1c7e97b9f31ffc8d9b61d3 | 3,480 | exs | Elixir | test/analyzer_test.exs | muramasa8191/pelemay | f6b51ad8acc9b6fc66280e238a67364293b2b7d5 | [
"Apache-2.0"
] | null | null | null | test/analyzer_test.exs | muramasa8191/pelemay | f6b51ad8acc9b6fc66280e238a67364293b2b7d5 | [
"Apache-2.0"
] | null | null | null | test/analyzer_test.exs | muramasa8191/pelemay | f6b51ad8acc9b6fc66280e238a67364293b2b7d5 | [
"Apache-2.0"
] | null | null | null | defmodule AnalyzerAFuncTest do
use ExUnit.Case, async: true
@subject Analyzer.AFunc
describe "supported?/1" do
test "with pipe, anonymous function: fn, one argument" do
quoted = quote do: [1, 2, 3] |> Enum.map(fn x -> x + 1 end)
assert {:|>, [context: _, import: Kernel], [[1, 2, 3], right]} = q... | 32.830189 | 111 | 0.554885 |
1d203211903e18016dd7dd0aebddd13d203d1332 | 1,717 | ex | Elixir | ros/ros_ui_supervisor/lib/ros_ui_supervisor_web.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_supervisor/lib/ros_ui_supervisor_web.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_supervisor/lib/ros_ui_supervisor_web.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.SupervisorWeb 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 Ros.SupervisorWeb, :controller
use Ros.SupervisorWeb, :view
The definitions below will be executed for every... | 24.528571 | 83 | 0.698311 |
1d2055258e307490c252a96761ccd42f1959ddf8 | 3,331 | exs | Elixir | test/brando/soft_delete/query_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | test/brando/soft_delete/query_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | test/brando/soft_delete/query_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.SoftDelete.QueryTest do
use ExUnit.Case
use Brando.ConnCase
alias Brando.Factory
alias Brando.SoftDelete.Query
test "list_soft_delete_schemas" do
assert Enum.sort(Query.list_soft_delete_schemas()) == [
Brando.BlueprintTest.Project,
Brando.Content.Module,
... | 31.72381 | 85 | 0.577004 |
1d206af29649dff3d4b5312d5e13d6654242ebf6 | 215 | ex | Elixir | islands_engine/lib/islands_engine.ex | ipmsteven/rethink_webapp | ea906747e32baf0a6544cc33184cb55963cb25d1 | [
"MIT"
] | null | null | null | islands_engine/lib/islands_engine.ex | ipmsteven/rethink_webapp | ea906747e32baf0a6544cc33184cb55963cb25d1 | [
"MIT"
] | null | null | null | islands_engine/lib/islands_engine.ex | ipmsteven/rethink_webapp | ea906747e32baf0a6544cc33184cb55963cb25d1 | [
"MIT"
] | null | null | null | defmodule IslandsEngine do
@moduledoc """
Documentation for IslandsEngine.
"""
@doc """
Hello world.
## Examples
iex> IslandsEngine.hello
:world
"""
def hello do
:world
end
end
| 11.315789 | 34 | 0.604651 |
1d206e31aa745983945d073d2e2c5cc1e40a40e0 | 1,710 | exs | Elixir | test/credo/check/warning/operation_on_same_values_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/warning/operation_on_same_values_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/warning/operation_on_same_values_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Warning.OperationOnSameValuesTest do
use Credo.TestHelper
@described_check Credo.Check.Warning.OperationOnSameValues
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
use ExUnit.Case
def some_fun do
... | 19.213483 | 67 | 0.624561 |
1d2075a686f67a20b752a115265d43237402aea6 | 968 | exs | Elixir | mix.exs | ug0/aliyun_util | d02e168d20319eb6d2d51634b3e3ce163978281d | [
"MIT"
] | null | null | null | mix.exs | ug0/aliyun_util | d02e168d20319eb6d2d51634b3e3ce163978281d | [
"MIT"
] | 6 | 2020-12-25T05:16:23.000Z | 2021-09-22T02:21:25.000Z | mix.exs | ug0/aliyun_util | d02e168d20319eb6d2d51634b3e3ce163978281d | [
"MIT"
] | 5 | 2019-04-15T10:12:33.000Z | 2021-09-18T07:12:26.000Z | defmodule AliyunUtil.MixProject do
use Mix.Project
@source_url "https://github.com/ug0/aliyun_util"
@version "0.3.5"
def project do
[
app: :aliyun_util,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: ... | 17.925926 | 56 | 0.52686 |
1d207b1cb89e66e010153a23aec63c5e416bef1c | 451 | exs | Elixir | test/etag/generator/sha1_test.exs | midnightrun/etag_plug | 7aa2b934babbb22963fa4f3b3d05f354faffad6d | [
"MIT"
] | 13 | 2018-10-28T04:37:21.000Z | 2018-11-30T19:21:35.000Z | test/etag/generator/sha1_test.exs | midnightrun/etag_plug | 7aa2b934babbb22963fa4f3b3d05f354faffad6d | [
"MIT"
] | 2 | 2019-03-24T18:50:29.000Z | 2019-03-24T21:19:02.000Z | test/etag/generator/sha1_test.exs | midnightrun/etag_plug | 7aa2b934babbb22963fa4f3b3d05f354faffad6d | [
"MIT"
] | 2 | 2018-10-26T16:29:53.000Z | 2018-10-29T15:09:03.000Z | defmodule ETag.Generator.SHA1Test do
use ExUnit.Case, async: true
import ETag.Generator.SHA1, only: [generate: 1]
describe ".generate" do
test "with an empty string returns the expected hash" do
assert generate("") == "DA39A3EE5E6B4B0D3255BFEF95601890AFD80709"
end
test "with a \"foo bar\" str... | 28.1875 | 78 | 0.718404 |
1d208401772094da190ec2a2f12bdb499a5fe4ef | 213 | exs | Elixir | test/test_helper.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | test/test_helper.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | test/test_helper.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | # Requiring script files that are used by other scripts in tests:
Code.require_file("support/fixtures/attendees_fixtures.exs",__DIR__)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(ReservationBook.Repo, :manual)
| 35.5 | 68 | 0.812207 |
1d208e66146f090d3687e8c8e48944ccc9ee5bc2 | 6,754 | ex | Elixir | lib/tracer/tools/tool_flame_graph.ex | gabiz/tracer | 4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2 | [
"MIT"
] | 125 | 2017-09-08T06:33:28.000Z | 2022-03-09T10:48:04.000Z | lib/tracer/tools/tool_flame_graph.ex | Gazler/tracer | 4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2 | [
"MIT"
] | 3 | 2017-09-21T01:56:24.000Z | 2020-10-29T13:27:44.000Z | lib/tracer/tools/tool_flame_graph.ex | Gazler/tracer | 4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2 | [
"MIT"
] | 6 | 2017-09-08T21:41:32.000Z | 2019-11-16T10:39:16.000Z | defmodule Tracer.Tool.FlameGraph do
@moduledoc """
This tool generates a flame graph
"""
alias __MODULE__
alias Tracer.{Probe, ProcessHelper,
EventCall, EventReturnTo, EventIn, EventOut}
use Tracer.Tool
import Tracer.Matcher
@root_dir File.cwd!
@flame_graph_script Path.join(~w(#{@root... | 29.622807 | 83 | 0.586763 |
1d2095fe74d7628b7c5d802d86834bcad31331c8 | 1,675 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_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.638298 | 263 | 0.74806 |
1d209c4e85d0dbf9699c5f08f96cda67cd5cef87 | 1,258 | ex | Elixir | testapp/lib/cart/invoice_item.ex | lukebakken/ecto-test | 7677c8ac925eb324cd1381a4bb21f8e3f320fe84 | [
"Unlicense"
] | null | null | null | testapp/lib/cart/invoice_item.ex | lukebakken/ecto-test | 7677c8ac925eb324cd1381a4bb21f8e3f320fe84 | [
"Unlicense"
] | null | null | null | testapp/lib/cart/invoice_item.ex | lukebakken/ecto-test | 7677c8ac925eb324cd1381a4bb21f8e3f320fe84 | [
"Unlicense"
] | null | null | null | defmodule Cart.InvoiceItem do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
schema "invoice_items" do
belongs_to(:invoice, Cart.Invoice, type: :binary_id)
belongs_to(:item, Cart.Item, type: :binary_id)
field(:quantity, :decimal, precision: 12, scale: 2)
... | 29.255814 | 92 | 0.662957 |
1d20b90382f7c2d443edb5070b48dac1bb63618a | 3,190 | exs | Elixir | test/controllers/message_controller_test.exs | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | 15 | 2017-01-06T05:52:23.000Z | 2022-02-14T10:05:42.000Z | test/controllers/message_controller_test.exs | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | 1 | 2019-09-09T06:23:35.000Z | 2020-10-25T21:36:51.000Z | test/controllers/message_controller_test.exs | mbuhot/ecto_row_level_security | 41ef5a7e2aa51c51cf80f4f5f9f99a09481a60dd | [
"MIT"
] | null | null | null | defmodule Learnrls.MessageControllerTest do
use Learnrls.ConnCase
alias Learnrls.Message
require Learnrls.Repo
@valid_attrs %{body: "some content", from: "7488a646-e31f-11e4-aace-600308960662", subject: "some content", to: "7488a646-e31f-11e4-aace-600308960662"}
@invalid_attrs %{}
setup %{conn: conn} do
... | 35.054945 | 153 | 0.665831 |
1d20e74e9487c0d4704b10a4bb077d80d945c8b4 | 5,566 | exs | Elixir | .credo.exs | moldmn/clickhousex | b39016714e346490ff8e9c4432006827612fba11 | [
"Apache-2.0"
] | 1 | 2021-06-04T10:21:15.000Z | 2021-06-04T10:21:15.000Z | .credo.exs | moldmn/clickhousex | b39016714e346490ff8e9c4432006827612fba11 | [
"Apache-2.0"
] | null | null | null | .credo.exs | moldmn/clickhousex | b39016714e346490ff8e9c4432006827612fba11 | [
"Apache-2.0"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: [
"lib/",
"test/"
],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
},
plugins: [],
requires: [],
strict: true,
parse_timeout: 5000,
color: false,
check... | 44.174603 | 114 | 0.64337 |
1d20ea086466eb738e3d8487dfd9888c9fb8144b | 1,889 | exs | Elixir | ur2/config/dev.exs | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | ur2/config/dev.exs | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | ur2/config/dev.exs | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"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 :ur2, Ur2Web.Endpoint,
http: [port: 4000],
deb... | 27.779412 | 68 | 0.679725 |
1d20ef5319678d729cfd874d773d62005645e3d9 | 1,611 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.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... | 33.5625 | 124 | 0.755431 |
1d20f63fdfb2cfd2b26d06d9deeaaef71ecf9650 | 2,157 | exs | Elixir | lib/mix/test/mix/scm/git_test.exs | tsloughter/elixir | 44a9f505c14c58878010cb07349802f99ca225ac | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/mix/test/mix/scm/git_test.exs | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/scm/git_test.exs | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.SCM.GitTest do
use MixTest.Case, async: true
test "formats the lock" do
assert Mix.SCM.Git.format_lock(lock()) == "abcdef0"
assert Mix.SCM.Git.format_lock(lock(branch: "master")) == "abcdef0 (branch: master)"
assert Mix.SCM.Git.format_lo... | 43.14 | 110 | 0.656931 |
1d21161f040b74f548e2cd9deae4378297d0b56d | 312 | ex | Elixir | apps/plant_monitor_web/lib/plant_monitor_web/structs/oauth/token_response.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | 2 | 2019-01-25T21:21:56.000Z | 2021-02-24T08:18:51.000Z | apps/plant_monitor_web/lib/plant_monitor_web/structs/oauth/token_response.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | apps/plant_monitor_web/lib/plant_monitor_web/structs/oauth/token_response.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | defmodule PlantMonitorWeb.Structs.OAuth.TokenResponse do
@moduledoc """
Structure used in return OAuth access token details
"""
@enforce_keys [:access_token, :token_type, :permissions, :expires_in, :refresh_token]
defstruct [:access_token, :token_type, :permissions, :expires_in, :refresh_token]
end
| 31.2 | 87 | 0.769231 |
1d2126151e5848b1bb3665cd548dc16d773fe76a | 1,811 | ex | Elixir | lib/skogsra/app.ex | davorbadrov/skogsra | 785a7b9cbe92c1e96fae0381b9087843dc46926e | [
"MIT"
] | null | null | null | lib/skogsra/app.ex | davorbadrov/skogsra | 785a7b9cbe92c1e96fae0381b9087843dc46926e | [
"MIT"
] | null | null | null | lib/skogsra/app.ex | davorbadrov/skogsra | 785a7b9cbe92c1e96fae0381b9087843dc46926e | [
"MIT"
] | null | null | null | defmodule Skogsra.App do
@moduledoc """
This module defines the functions to get variables from the configuration.
"""
require Logger
alias Skogsra.Env
alias Skogsra.Type
############
# Public API
@doc """
Gets config variable value given a `Skogsra.Env` struct.
"""
@spec get_env(Env.t()) :: ... | 19.473118 | 76 | 0.595803 |
1d2139ae4c2a860450d96aa8eb2b8913cf9290e3 | 2,187 | ex | Elixir | lib/elixir_jobs_web/router.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/router.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/router.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | null | null | null | defmodule ElixirJobsWeb.Router do
use ElixirJobsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug ElixirJobsWeb.Plugs.GuardianPipeline
end
pipeline :authentication_required d... | 30.802817 | 72 | 0.695473 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.