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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03cf62f16c5e06ca086a8868fcde1f3fea82786c | 2,667 | ex | Elixir | lib/maru/builder/parameter.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 819 | 2016-11-25T07:12:04.000Z | 2022-03-16T06:59:36.000Z | lib/maru/builder/parameter.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 71 | 2016-11-24T20:19:09.000Z | 2021-06-09T10:12:23.000Z | lib/maru/builder/parameter.ex | davidenko87/maru | 62b6ca0e42dd550683af8743f50e67048c4027d0 | [
"BSD-3-Clause"
] | 56 | 2015-01-10T23:34:12.000Z | 2016-11-17T00:13:56.000Z | alias Maru.Builder.Parameter
defmodule Parameter.Information do
@moduledoc false
defstruct attr_name: nil,
param_key: nil,
desc: nil,
type: nil,
default: nil,
required: true,
children: []
end
defmodule Parameter.Runtime do
@moduledoc false... | 26.939394 | 99 | 0.651669 |
03cf6ece53819d164126511246ebdd7817139f01 | 1,740 | exs | Elixir | mix.exs | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 21 | 2017-08-20T06:19:37.000Z | 2021-02-04T23:22:10.000Z | mix.exs | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 43 | 2017-08-06T21:03:28.000Z | 2018-09-08T13:00:35.000Z | mix.exs | WolfDan/dgraph_ex | 4dad42983f2387f10febf9996ac8f2db20aea710 | [
"MIT"
] | 1 | 2017-10-12T02:20:13.000Z | 2017-10-12T02:20:13.000Z | defmodule DgraphEx.Mixfile do
use Mix.Project
def project do
[
app: :dgraph_ex,
version: "0.1.5",
elixir: "~> 1.5.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description(),
test_cov... | 24.507042 | 79 | 0.56092 |
03cf838b7ccbc45dfbc3a3d769c73409e133f781 | 694 | exs | Elixir | config/test.exs | tyjet/taskmaster_api | 4ba670731717299b07abb5d56f3e068015826963 | [
"MIT"
] | null | null | null | config/test.exs | tyjet/taskmaster_api | 4ba670731717299b07abb5d56f3e068015826963 | [
"MIT"
] | 1 | 2021-03-10T19:38:43.000Z | 2021-03-10T19:38:43.000Z | config/test.exs | tyjet/taskmaster_api | 4ba670731717299b07abb5d56f3e068015826963 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :taskmaster_api, TaskmasterApi.Repo,
username: "postgres",
password: "postgres",
database: "taskmaster... | 30.173913 | 73 | 0.760807 |
03cf8c65aec4b3445d7d5a605795296534950f5f | 12,531 | ex | Elixir | lib/ex_unit/lib/ex_unit/assertions.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/assertions.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/assertions.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | defexception ExUnit.AssertionError, message: "assertion failed"
defexception ExUnit.ExpectationError, expected: nil, actual: nil, reason: "",
negation: false, prelude: "Expected", description: nil do
def message(exception) do
if desc = exception.description do
"#{exception.prelude} #{desc} #{exception... | 25.521385 | 125 | 0.642965 |
03cf9d055571a72dbeb6227b1f008f3e3a1bb008 | 3,810 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/reported_error_event.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 68.035714 | 1,405 | 0.74357 |
03cfb1b09ed1ae633835a7851b9d4b459a34eb98 | 620 | ex | Elixir | lib/receptar/translations/translation.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | lib/receptar/translations/translation.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | lib/receptar/translations/translation.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | defmodule Receptar.Translations.Translation do
use Ecto.Schema
import Ecto.Changeset
schema "translations" do
field :content, :string
field :language, :string
belongs_to :substance, Receptar.Substances.Substance
belongs_to :recipe, Receptar.Recipes.Recipe
belongs_to :unit, Receptar.Units.Unit... | 25.833333 | 83 | 0.732258 |
03cfb5d83c71cc296075ff7f4dddb8d978be420c | 5,229 | ex | Elixir | lib/farmbot/http/http.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/http/http.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/http/http.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2020-12-16T16:39:32.000Z | 2020-12-16T16:39:32.000Z | defmodule Farmbot.HTTP do
@moduledoc "Wraps an HTTP Adapter."
# credo:disable-for-this-file Credo.Check.Refactor.FunctionArity
use GenServer
alias Farmbot.HTTP.{Adapter, Error, Response}
@adapter Application.get_env(:farmbot, :behaviour)[:http_adapter]
@adapter || raise("No http adapter.")
@typep meth... | 30.225434 | 80 | 0.603557 |
03cfc16e1b92953a4860350e82886e04e168a119 | 6,889 | ex | Elixir | lib/ex_machina.ex | sheharyarn/ex_machina | bca77b13636d3b6897434715b64c0aa33e04158b | [
"MIT"
] | null | null | null | lib/ex_machina.ex | sheharyarn/ex_machina | bca77b13636d3b6897434715b64c0aa33e04158b | [
"MIT"
] | null | null | null | lib/ex_machina.ex | sheharyarn/ex_machina | bca77b13636d3b6897434715b64c0aa33e04158b | [
"MIT"
] | null | null | null | defmodule ExMachina do
@moduledoc """
Defines functions for generating data
In depth examples are in the [README](readme.html)
"""
defmodule UndefinedFactoryError do
@moduledoc """
Error raised when trying to build or create a factory that is undefined.
"""
defexception [:message]
def ... | 28.466942 | 102 | 0.650457 |
03cfc6117c131ef9acfc1b58a614ae62d3554832 | 853 | exs | Elixir | mix.exs | brienw/flipex | 931e13a733306cf8d547ea1a3b4ac3351d88b511 | [
"MIT",
"Unlicense"
] | 1 | 2016-12-01T15:59:15.000Z | 2016-12-01T15:59:15.000Z | mix.exs | brienw/flipex | 931e13a733306cf8d547ea1a3b4ac3351d88b511 | [
"MIT",
"Unlicense"
] | null | null | null | mix.exs | brienw/flipex | 931e13a733306cf8d547ea1a3b4ac3351d88b511 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule TextFlip.Mixfile do
use Mix.Project
def project do
[app: :flip_text,
version: "0.1.3",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps()
]
end
# Configuration ... | 18.955556 | 62 | 0.570926 |
03cfcc023754eeef5b52b7c7a8e099ebcb387637 | 146 | ex | Elixir | lib/tock/application.ex | malomohq/tock | 8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598 | [
"MIT"
] | null | null | null | lib/tock/application.ex | malomohq/tock | 8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598 | [
"MIT"
] | null | null | null | lib/tock/application.ex | malomohq/tock | 8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598 | [
"MIT"
] | null | null | null | defmodule Tock.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args), do: Tock.Supervisor.start_link()
end
| 16.222222 | 59 | 0.746575 |
03cfdb6bb9b10d1f84fa132942bc6196d3474acc | 37,751 | ex | Elixir | lib/ex_unit/lib/ex_unit/diff.ex | gianluca-nitti/elixir | 9c5bc2c2053f5956b5fd03de484ac8131ff32f25 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/diff.ex | gianluca-nitti/elixir | 9c5bc2c2053f5956b5fd03de484ac8131ff32f25 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/diff.ex | gianluca-nitti/elixir | 9c5bc2c2053f5956b5fd03de484ac8131ff32f25 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Diff do
@moduledoc false
# A Diff struct and functions.
#
# The Diff struct contains the fields `:equivalent?`, `:left`, `:right`.
# The `:equivalent?` field represents if the `:left` and `:right` side are
# equivalents and contain no diffs. The `:left` and `:right` represent the sides
#... | 30.9181 | 99 | 0.6643 |
03cfe60b12cb3caf78455f2cedcab740ff8a9eac | 2,208 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/output_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/output_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/output_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.8 | 158 | 0.727808 |
03cff7b55f50d28df8bd522fd6d0278ee37a6f72 | 818 | ex | Elixir | elixir_rakv/lib/ra_kv.ex | OCLC-Research/ra-examples | cf7bb8813562e35c4bd0d6e1032f127f72f376de | [
"Apache-2.0"
] | null | null | null | elixir_rakv/lib/ra_kv.ex | OCLC-Research/ra-examples | cf7bb8813562e35c4bd0d6e1032f127f72f376de | [
"Apache-2.0"
] | null | null | null | elixir_rakv/lib/ra_kv.ex | OCLC-Research/ra-examples | cf7bb8813562e35c4bd0d6e1032f127f72f376de | [
"Apache-2.0"
] | null | null | null | defmodule RaKv do
@moduledoc """
Documentation for RaKv.
"""
def start(_args) do
# the initial cluster members
members = Enum.map([:a@localhost, :b@localhost, :c@localhost], fn node -> { :rakv, node } end)
# an arbitrary cluster name
clusterName = <<"ra_kv">>
# the config passed to `init/1`... | 25.5625 | 98 | 0.654034 |
03cffbaeb6b54c1b399a360e093af5adf6fcd7b1 | 2,794 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_page_line.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_page_line.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_page_line.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.352113 | 207 | 0.750537 |
03d000c25159c28be9475562f5e59d5a74f76eec | 3,087 | exs | Elixir | test/islands_engine/board_test.exs | msramos/islands_engine | 6171d24aa937f80878251a0a3c575ac7023d5e8e | [
"MIT"
] | null | null | null | test/islands_engine/board_test.exs | msramos/islands_engine | 6171d24aa937f80878251a0a3c575ac7023d5e8e | [
"MIT"
] | null | null | null | test/islands_engine/board_test.exs | msramos/islands_engine | 6171d24aa937f80878251a0a3c575ac7023d5e8e | [
"MIT"
] | null | null | null | defmodule IslandsEngine.BoardTest do
use ExUnit.Case, async: true
alias IslandsEngine.{Board, Island, Coordinate}
doctest Board
@sut Board
describe "new/0" do
test "creates a new empty board" do
expected = %{}
result = @sut.new()
assert result == expected
end
end
describe "p... | 22.698529 | 90 | 0.590217 |
03d008431d428d73ce887fb51684af9457d11cef | 21,054 | ex | Elixir | lib/ecto/migration.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration do
@moduledoc """
Migrations are used to modify your database schema over time.
This module provides many helpers for migrating the database,
allowing developers to use Elixir to alter their storage in
a way that is database independent.
Here is an example:
defmodule MyRepo... | 28.567164 | 142 | 0.66111 |
03d00c5acbd6948efba87a6c6cc2984d955b5a67 | 1,155 | exs | Elixir | config/config.exs | michaelkpfeifer/effective-interest-rate-elixir | 4a65059c95cc0fb6c48b1344be78c23dc5395082 | [
"MIT"
] | null | null | null | config/config.exs | michaelkpfeifer/effective-interest-rate-elixir | 4a65059c95cc0fb6c48b1344be78c23dc5395082 | [
"MIT"
] | null | null | null | config/config.exs | michaelkpfeifer/effective-interest-rate-elixir | 4a65059c95cc0fb6c48b1344be78c23dc5395082 | [
"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... | 37.258065 | 73 | 0.758442 |
03d02cbb0355ab514c884c2813f627c20b825d2b | 502 | ex | Elixir | apps/theta/lib/theta/account/user.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta/lib/theta/account/user.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta/lib/theta/account/user.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule Theta.Account.User do
use Ecto.Schema
import Ecto.Changeset
alias Theta.Account.Credential
schema "user" do
field :name, :string
field :username, :string
field :role, :string, default: 'USER'
field :avatar, :string
has_one :credential, Credential
timestamps()
end
@doc fa... | 20.916667 | 45 | 0.667331 |
03d0972b9c025bf7ee119eb879399c762deb650f | 39,587 | ex | Elixir | lib/ecto/repo.ex | darkbaby123/ecto | ed861cbbfae1907463304597ee44d0951f9d0946 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | darkbaby123/ecto | ed861cbbfae1907463304597ee44d0951f9d0946 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | darkbaby123/ecto | ed861cbbfae1907463304597ee44d0951f9d0946 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo do
@moduledoc """
Defines a repository.
A repository maps to an underlying data store, controlled by the
adapter. For example, Ecto ships with a Postgres adapter that
stores data into a PostgreSQL database.
When used, the repository expects the `:otp_app` as option.
The `:otp_app` sh... | 36.152511 | 132 | 0.673403 |
03d0c2374b233323c99a47ab354dda056c24fd0e | 4,018 | exs | Elixir | test/helpers_test.exs | carakan/ex_admin | c286a0b66c1c0e81c896b71915c7066f66fc94c2 | [
"MIT"
] | null | null | null | test/helpers_test.exs | carakan/ex_admin | c286a0b66c1c0e81c896b71915c7066f66fc94c2 | [
"MIT"
] | null | null | null | test/helpers_test.exs | carakan/ex_admin | c286a0b66c1c0e81c896b71915c7066f66fc94c2 | [
"MIT"
] | null | null | null | defmodule ExAdmin.HelpersTest do
use ExUnit.Case
alias ExAdmin.Helpers
alias TestExAdmin.Noid
alias TestExAdmin.Simple
alias TestExAdmin.Maps
use Xain
test "build_field" do
res =
Helpers.build_field(%Noid{description: "desc"}, %{}, {:description, %{}}, fn contents,
... | 29.985075 | 117 | 0.624938 |
03d0cbfac5cca470bfc6e906dc12620de600be8a | 1,844 | ex | Elixir | clients/games/lib/google_api/games/v1/model/event_record_failure.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/event_record_failure.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/event_record_failure.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... | 36.88 | 297 | 0.745119 |
03d0e47bff22341e2933cb0048e24c964ec87450 | 4,479 | ex | Elixir | lib/codes/codes_e78.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_e78.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_e78.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_E78 do
alias IcdCode.ICDCode
def _E7800 do
%ICDCode{full_code: "E7800",
category_code: "E78",
short_code: "00",
full_name: "Pure hypercholesterolemia, unspecified",
short_name: "Pure hypercholesterolemia, unspecified",
category_nam... | 31.542254 | 88 | 0.609958 |
03d0eb418cbc8b21da7af6476b9d5f44df3ea6da | 847 | exs | Elixir | test/plural_rules/identity_plural_test_test.exs | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 179 | 2019-06-16T09:16:00.000Z | 2022-03-30T04:04:55.000Z | test/plural_rules/identity_plural_test_test.exs | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 46 | 2019-06-09T02:35:58.000Z | 2022-03-08T10:39:08.000Z | test/plural_rules/identity_plural_test_test.exs | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 14 | 2020-03-03T16:35:50.000Z | 2022-02-27T14:01:40.000Z | defmodule Cldr.IdentityPluralRule.Test do
use ExUnit.Case
test "integer identity plural selection" do
substitutions = %{42 => "This is 42", :other => "This is not"}
assert TestBackend.Cldr.Number.Cardinal.pluralize(42, "en", substitutions) == "This is 42"
assert TestBackend.Cldr.Number.Ordinal.pluraliz... | 36.826087 | 98 | 0.669421 |
03d12e2ba25a0f09856b7b264cf18d088bc78cca | 25,342 | exs | Elixir | lib/elixir/test/elixir/dynamic_supervisor_test.exs | princemaple/elixir | d894dcca3380b2a37a72e940103ae8eeb42e540e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/dynamic_supervisor_test.exs | princemaple/elixir | d894dcca3380b2a37a72e940103ae8eeb42e540e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/dynamic_supervisor_test.exs | princemaple/elixir | d894dcca3380b2a37a72e940103ae8eeb42e540e | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule DynamicSupervisorTest do
use ExUnit.Case, async: true
defmodule Simple do
use DynamicSupervisor
def init(args), do: args
end
test "can be supervised directly" do
children = [{DynamicSupervisor, strategy: :one_for_one, name: :dyn_sup_spec_te... | 39.16847 | 98 | 0.648725 |
03d1887639d3fc764066325d3adf3b387d69d388 | 338 | ex | Elixir | lib/slack_autolinker/plug.ex | wojtekmach/slack_autolinker | a3623e406439f387a19456055644263993c974ff | [
"MIT"
] | 3 | 2017-07-28T14:19:20.000Z | 2021-02-09T15:01:25.000Z | lib/slack_autolinker/plug.ex | socialpaymentsbv/slack_autolinker | a3623e406439f387a19456055644263993c974ff | [
"MIT"
] | 7 | 2017-02-27T08:54:41.000Z | 2020-03-18T10:18:49.000Z | lib/slack_autolinker/plug.ex | socialpaymentsbv/slack_autolinker | a3623e406439f387a19456055644263993c974ff | [
"MIT"
] | 2 | 2017-03-16T12:13:55.000Z | 2021-01-14T11:51:11.000Z | defmodule SlackAutolinker.Plug do
@moduledoc false
import Plug.Conn
def init(options), do: options
def call(conn, _opts) do
{:ok, vsn} = :application.get_key(:slack_autolinker, :vsn)
conn
|> put_resp_content_type("application/json")
|> send_resp(200, Poison.encode!(%{version: List.to_string(... | 21.125 | 70 | 0.692308 |
03d188f9f0db5a6a8facb6245b61e39ac3d8869e | 1,589 | ex | Elixir | apps/fz_http/lib/fz_http_web/controllers/auth_controller.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web/controllers/auth_controller.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web/controllers/auth_controller.ex | mdp/firezone | 53d8f0803a7ef005fdca3ae8c6fa9c3483ae5cbc | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.AuthController do
@moduledoc """
Implements the CRUD for a Session
"""
use FzHttpWeb, :controller
alias FzHttpWeb.Authentication
alias FzHttpWeb.Router.Helpers, as: Routes
alias FzHttpWeb.UserFromAuth
# Uncomment when Helpers.callback_url/1 is fixed
# alias Ueberauth.Strategy.Hel... | 27.396552 | 86 | 0.650724 |
03d1934b43da58eed7b3802b36c82ab8ea34e7a9 | 2,985 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www/accounts/email.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/lib/nerves_hub_www/accounts/email.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/lib/nerves_hub_www/accounts/email.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWW.Accounts.Email do
use Bamboo.Phoenix, view: NervesHubWWWWeb.EmailView
alias NervesHubWebCore.Accounts.{Invite, Org, User, OrgUser}
@from {"NervesHub", "no-reply@nerves-hub.org"}
def invite(%Invite{} = invite, %Org{} = org) do
new_email()
|> from(@from)
|> to(invite.email)
... | 35.535714 | 98 | 0.675042 |
03d1b0e467e0be98f42fad0915a0b2c76b0e2f0e | 588 | exs | Elixir | priv/repo/seeds.exs | aleccool213/elixir-graphql-example | 8f89f4898cda7b7544321ff8dda2f76ea22d4c58 | [
"MIT"
] | 1 | 2018-01-16T10:28:38.000Z | 2018-01-16T10:28:38.000Z | priv/repo/seeds.exs | aleccool213/elixir-graphql-example | 8f89f4898cda7b7544321ff8dda2f76ea22d4c58 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | aleccool213/elixir-graphql-example | 8f89f4898cda7b7544321ff8dda2f76ea22d4c58 | [
"MIT"
] | 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:
#
# Community.Repo.insert!(%Community.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 36.75 | 95 | 0.717687 |
03d1dbac2c22c16a4884262cd21fe9fc67dd8402 | 120 | exs | Elixir | test/ex_unit_tap_test.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | null | null | null | test/ex_unit_tap_test.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | 1 | 2016-07-24T01:31:37.000Z | 2016-07-24T01:31:37.000Z | test/ex_unit_tap_test.exs | mblayman/ex_unit_tap | 860f8b2b6d1aba10844bc9e78f12b572ff6ec961 | [
"MIT"
] | null | null | null | defmodule ExUnitTapTest do
use ExUnit.Case
doctest ExUnitTap
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.333333 | 26 | 0.683333 |
03d1ff7285c250a61a7b7e4e6731ebc2f4c1611f | 454 | ex | Elixir | lib/fipe_crawler/supervisor.ex | teofilosalgado/FipeCrawler | 0e25bc10bb23da2b8cb0204fd1db07a07cc7b4c5 | [
"MIT"
] | 1 | 2021-01-14T01:12:24.000Z | 2021-01-14T01:12:24.000Z | lib/fipe_crawler/supervisor.ex | teofilosalgado/FipeCrawler | 0e25bc10bb23da2b8cb0204fd1db07a07cc7b4c5 | [
"MIT"
] | null | null | null | lib/fipe_crawler/supervisor.ex | teofilosalgado/FipeCrawler | 0e25bc10bb23da2b8cb0204fd1db07a07cc7b4c5 | [
"MIT"
] | null | null | null | defmodule FipeCrawler.Supervisor do
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: :supervisor)
end
@impl true
def init(_init_arg) do
children = [
FipeCrawler.Worker.Database,
FipeCrawler.Worker.Marcas,
FipeCrawler.Worker.Modelos,
... | 21.619048 | 66 | 0.715859 |
03d20b559b77c0d9841ffa59344abc03e1927caa | 87 | ex | Elixir | lib/elite_investigations_web/views/layout_view.ex | lee-dohm/elite-investigations | 6511bd1c734bcc7d1e4177b73006891fd1d81855 | [
"MIT"
] | null | null | null | lib/elite_investigations_web/views/layout_view.ex | lee-dohm/elite-investigations | 6511bd1c734bcc7d1e4177b73006891fd1d81855 | [
"MIT"
] | 8 | 2019-03-14T16:31:37.000Z | 2019-03-31T16:14:57.000Z | lib/elite_investigations_web/views/layout_view.ex | lee-dohm/elite-investigations | 6511bd1c734bcc7d1e4177b73006891fd1d81855 | [
"MIT"
] | null | null | null | defmodule EliteInvestigationsWeb.LayoutView do
use EliteInvestigationsWeb, :view
end
| 21.75 | 46 | 0.862069 |
03d219655da1ca44d420c6226f9fbd8592a4bdd9 | 229 | exs | Elixir | test/vintage_net_lte/at_parser_test.exs | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | test/vintage_net_lte/at_parser_test.exs | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | test/vintage_net_lte/at_parser_test.exs | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | defmodule VintageNetLTE.ATParserTest do
use ExUnit.Case
alias VintageNetLTE.ATParser
test "can parse the at response for signal quality" do
assert {:csq, {5, 99}} == ATParser.parse_at_response("+CSQ: 5,99")
end
end
| 22.9 | 70 | 0.729258 |
03d29ab55fc6ac1456fa7c0abf389e4b601b2422 | 1,867 | exs | Elixir | clients/testing/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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... | 27.865672 | 134 | 0.658275 |
03d2be7ddd039ef617d24e38a0b702dfeeee113d | 20,838 | ex | Elixir | lib/event_store/subscriptions/subscription_fsm.ex | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | lib/event_store/subscriptions/subscription_fsm.ex | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | lib/event_store/subscriptions/subscription_fsm.ex | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | defmodule EventStore.Subscriptions.SubscriptionFsm do
@moduledoc false
alias EventStore.{AdvisoryLocks, RecordedEvent, Registration, Storage}
alias EventStore.Streams.Stream
alias EventStore.Subscriptions.{SubscriptionState, Subscriber}
use Fsm, initial_state: :initial, initial_data: %SubscriptionState{}
... | 31.765244 | 100 | 0.66897 |
03d2df89848cfe739c97cdf158a3618ffda7928f | 300 | exs | Elixir | farmbot_core/test/test_helper.exs | EarthEngineering/facetop-os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_core/test/test_helper.exs | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | farmbot_core/test/test_helper.exs | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | Application.ensure_all_started(:mimic)
tz = System.get_env("TZ") || Timex.local().time_zone
FarmbotCore.Asset.Device.changeset(FarmbotCore.Asset.device(), %{timezone: tz})
|> FarmbotCore.Asset.Repo.insert_or_update!()
Mimic.copy(FarmbotCeleryScript.SysCalls.Stubs)
Mimic.copy(Timex)
ExUnit.start()
| 30 | 79 | 0.783333 |
03d2e5c0827c1f956f28b5711f5d09d38b1720f3 | 755 | exs | Elixir | basics/5-lists-and-maps/simple_examples_test.exs | mrice/elixir-examples | bca08b7378f5cc39e31467767484c54553d8fbe7 | [
"MIT"
] | null | null | null | basics/5-lists-and-maps/simple_examples_test.exs | mrice/elixir-examples | bca08b7378f5cc39e31467767484c54553d8fbe7 | [
"MIT"
] | null | null | null | basics/5-lists-and-maps/simple_examples_test.exs | mrice/elixir-examples | bca08b7378f5cc39e31467767484c54553d8fbe7 | [
"MIT"
] | null | null | null | Code.load_file("simple_examples.exs")
ExUnit.start
defmodule ListMapExamplesTest do
use ExUnit.Case
test "test add two lists" do
# trivial list addition
assert ListMapExamples.add_kw_list([{:a, 1}], [{:b, 2}]) == [{:a, 1}, {:b, 2}]
end
test "demo keyword list as argument parameter" do
# order m... | 30.2 | 113 | 0.690066 |
03d2eb9c9729aa5149f05a74698a132beaa5670d | 2,234 | exs | Elixir | apps/fz_http/test/fz_http_web/live/account_live/show_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | null | null | null | apps/fz_http/test/fz_http_web/live/account_live/show_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | null | null | null | apps/fz_http/test/fz_http_web/live/account_live/show_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.AccountLive.ShowTest do
use FzHttpWeb.ConnCase, async: true
alias FzHttp.{Users, Users.User}
alias FzHttpWeb.AccountLive.FormComponent
describe "when unauthenticated" do
test "mount redirects to session path", %{unauthed_conn: conn} do
path = Routes.account_show_path(conn, :show)... | 29.786667 | 76 | 0.640555 |
03d2f770236fc02a067f95aa37827fe374f0ade8 | 723 | ex | Elixir | lib/router/user_playlist.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | 3 | 2017-12-25T02:40:05.000Z | 2019-05-09T04:01:24.000Z | lib/router/user_playlist.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | null | null | null | lib/router/user_playlist.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | null | null | null | defmodule Router.User.Playlist do
@moduledoc """
用户播放列表
**Path:** `/user/playlist`
**Query:**
- `uid`: 用户id
**Example**
- `/user/playlist?uid=350652322`
"""
import Plug.Conn
import Helpers.Util
def init(options), do: options
def call(conn, _opts) do
body =
conn
|> get_req_he... | 15.717391 | 42 | 0.532503 |
03d328e116cf59c2bf1f59dcd9fdc99d245e4cb1 | 652 | ex | Elixir | lib/faktory_tutorial/application.ex | nathanbegbie/learn-elixir-faktory | 5a77b494bb6d61373a1b195119b69dd47a2404fc | [
"MIT"
] | null | null | null | lib/faktory_tutorial/application.ex | nathanbegbie/learn-elixir-faktory | 5a77b494bb6d61373a1b195119b69dd47a2404fc | [
"MIT"
] | null | null | null | lib/faktory_tutorial/application.ex | nathanbegbie/learn-elixir-faktory | 5a77b494bb6d61373a1b195119b69dd47a2404fc | [
"MIT"
] | null | null | null | defmodule FaktoryTutorial.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: FaktoryTutorial.Worker.start_link(arg)
# {F... | 28.347826 | 74 | 0.726994 |
03d35927689244c9738bf19b93452a5a1c152c11 | 722 | exs | Elixir | mix.exs | talentdeficit/ssv | 77d5253952981e89d3d5d0ccd48c9c56fa683a0b | [
"MIT"
] | null | null | null | mix.exs | talentdeficit/ssv | 77d5253952981e89d3d5d0ccd48c9c56fa683a0b | [
"MIT"
] | null | null | null | mix.exs | talentdeficit/ssv | 77d5253952981e89d3d5d0ccd48c9c56fa683a0b | [
"MIT"
] | null | null | null | defmodule SSV.Mixfile do
use Mix.Project
def project do
[
app: :ssv,
version: "0.1.0",
description: "parse comma separated values. or tab separated values. or any kind of separated values",
deps: deps(Mix.env),
package: package,
language: :erlang,
erlc_options: opts(Mix.... | 21.235294 | 108 | 0.548476 |
03d365fb4dd278a71314dd5b925a46ca4e4b2bec | 1,060 | exs | Elixir | mix.exs | MikaAK/elixir_error_message | da17e91e8272435ad06152ffa32802e15f2d497a | [
"MIT"
] | 9 | 2021-11-05T06:19:26.000Z | 2022-03-14T22:27:54.000Z | mix.exs | MikaAK/elixir_error_message | da17e91e8272435ad06152ffa32802e15f2d497a | [
"MIT"
] | null | null | null | mix.exs | MikaAK/elixir_error_message | da17e91e8272435ad06152ffa32802e15f2d497a | [
"MIT"
] | null | null | null | defmodule ErrorMessage.MixProject do
use Mix.Project
def project do
[
app: :error_message,
version: "0.1.4",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Error system to help make errors consistent across your system",
docs: docs()... | 21.632653 | 84 | 0.572642 |
03d371713542038ed0d39e6e554668b134e00d5b | 7,207 | exs | Elixir | lib/elixir/test/elixir/io_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/test/elixir/io_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/elixir/test/elixir/io_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule IOTest do
use ExUnit.Case, async: true
doctest IO
import ExUnit.CaptureIO
test "read with count" do
{:ok, file} = File.open(Path.expand('fixtures/file.txt', __DIR__), [:charlist])
assert 'FOO' == IO.read(file, 3)
assert File.close(file) == ... | 33.67757 | 93 | 0.585819 |
03d3c51654ceccca87cc37fee92ead47182a6f77 | 1,687 | ex | Elixir | lib/ecto/schema/metadata.ex | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 2 | 2021-02-25T15:51:16.000Z | 2021-02-25T18:42:35.000Z | lib/ecto/schema/metadata.ex | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | lib/ecto/schema/metadata.ex | tcrossland/ecto | e028a90920fed27865075787d33c2ad61f45fd24 | [
"Apache-2.0"
] | 1 | 2018-06-18T14:47:58.000Z | 2018-06-18T14:47:58.000Z | defmodule Ecto.Schema.Metadata do
@moduledoc """
Stores metadata of a struct.
## State
The state of the schema is stored in the `:state` field and allows
following values:
* `:built` - the struct was constructed in memory and is not persisted
to database yet;
* `:loaded` - the struct was load... | 25.953846 | 85 | 0.643154 |
03d3e0a3d98d905f4dfb01e08c4bd7ab0b97b592 | 1,130 | ex | Elixir | test/support/factory.ex | ubudget/octopus | 84087fbb6bfd5e7611583d7c1098e18d4239f036 | [
"MIT"
] | null | null | null | test/support/factory.ex | ubudget/octopus | 84087fbb6bfd5e7611583d7c1098e18d4239f036 | [
"MIT"
] | null | null | null | test/support/factory.ex | ubudget/octopus | 84087fbb6bfd5e7611583d7c1098e18d4239f036 | [
"MIT"
] | null | null | null | defmodule Octopus.Factory do
@moduledoc """
Defines factories for test fixtures.
"""
use ExMachina.Ecto, repo: Octopus.Repo
alias Octopus.Accounts.{Request, Session, User}
alias OctopusWeb.Endpoint
alias Phoenix.Token
require Logger
def user_factory do
%User{
name: "John Q. Test",
ema... | 23.061224 | 89 | 0.641593 |
03d429dc1075d55ea259c2accac84da4bc513aec | 1,172 | ex | Elixir | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/connection_setting_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/connection_setting_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.BotService/lib/microsoft/azure/management/preview/bot_service/model/connection_setting_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.BotService.Model.ConnectionSettingProperties do
@moduledoc """
Properties for a Connection Setting Item
"... | 29.3 | 129 | 0.71587 |
03d449fbb1914c46a11db543eff4eb96f0ab65d2 | 286 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/auth_token_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/auth_token_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/auth_token_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletAPI.V1.JSON.AuthTokenSerializer do
@moduledoc """
Serializes auth token data into V1 JSON response format.
"""
use EWalletAPI.V1
def serialize(auth_token) do
%{
object: "authentication_token",
authentication_token: auth_token
}
end
end
| 20.428571 | 58 | 0.70979 |
03d47da79c54612c3c3f87a5bb813726fb229b19 | 267 | ex | Elixir | test/fixtures/elixir/put_with_file.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 536 | 2021-10-06T17:21:25.000Z | 2022-03-31T13:05:48.000Z | test/fixtures/elixir/put_with_file.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 74 | 2021-10-08T13:57:14.000Z | 2022-03-31T06:55:39.000Z | test/fixtures/elixir/put_with_file.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 104 | 2021-10-06T19:36:15.000Z | 2022-03-31T07:34:04.000Z | request = %HTTPoison.Request{
method: :put,
url: "http://localhost:28139/upload",
options: [],
headers: [
{~s|Content-Type|, ~s|application/x-www-form-urlencoded|},
],
params: [],
body: {:file, ~s|new_file|}
}
response = HTTPoison.request(request)
| 20.538462 | 62 | 0.632959 |
03d49d21273a8a28900920b4e60e43e3156a2905 | 1,586 | exs | Elixir | mix.exs | Malian/surface_catalogue | 5629a496db506cdb108e0b089e4d9445efa7825f | [
"MIT"
] | null | null | null | mix.exs | Malian/surface_catalogue | 5629a496db506cdb108e0b089e4d9445efa7825f | [
"MIT"
] | null | null | null | mix.exs | Malian/surface_catalogue | 5629a496db506cdb108e0b089e4d9445efa7825f | [
"MIT"
] | null | null | null | defmodule Surface.Catalogue.MixProject do
use Mix.Project
@version "0.0.7"
def project do
[
app: :surface_catalogue,
version: @version,
elixir: "~> 1.8",
description: "An initial prototype of the Surface Catalogue",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:ph... | 21.726027 | 77 | 0.56116 |
03d4a51562c457a8810090f8a7d2e232e971538c | 759 | ex | Elixir | test/protobuf/protoc/proto_gen/extension.pb.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | test/protobuf/protoc/proto_gen/extension.pb.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | test/protobuf/protoc/proto_gen/extension.pb.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defmodule Protobuf.Protoc.ExtTest.Foo do
@moduledoc false
use Protobuf, custom_field_options?: true, syntax: :proto2
@type t :: %__MODULE__{
a: String.t()
}
defstruct [:a]
def full_name do
"ext.Foo"
end
field :a, 1, optional: true, type: :string
end
defmodule Protobuf.Protoc.ExtT... | 22.323529 | 95 | 0.646904 |
03d4aa9992d39cb4a33faab54761a9288d7fcd6c | 13,962 | exs | Elixir | apps/tai/test/tai/venues/asset_balance_store_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/venues/asset_balance_store_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venues/asset_balance_store_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | defmodule Tai.Venues.AssetBalanceStoreTest do
use ExUnit.Case
doctest Tai.Venues.AssetBalanceStore
alias Tai.Venues.AssetBalanceStore
setup do
on_exit(fn ->
Application.stop(:tai)
end)
{:ok, _} = Application.ensure_all_started(:tai)
:ok
end
describe ".upsert" do
test "inserts t... | 31.165179 | 94 | 0.60414 |
03d4b2ac9d49582927f99924b8b617e835ad69c6 | 2,090 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/language.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/language.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/language.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.321429 | 256 | 0.706699 |
03d4b4872030c1990ce6aa7164631831500854fd | 2,364 | exs | Elixir | elixir/test/link_leaks_test.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | elixir/test/link_leaks_test.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | elixir/test/link_leaks_test.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | defmodule LinkLeaksTest do
use ExUnit.Case
test "Process leaks on normal process exit" do
self = self()
pid =
spawn(fn ->
lid =
spawn_link(fn ->
receive do
any -> any
end
end)
send(self, lid)
end)
ref = :erlang.mon... | 22.730769 | 70 | 0.550338 |
03d4bd32886c5edf33b24705654ff995deecc5ea | 567 | ex | Elixir | inmana/lib/inmana/supplies/get_by_expiration.ex | cesaraugustomt/Inmana_API | c288f98d7dc1f3cbe8693914e38769c8dcc3a8d6 | [
"MIT"
] | 1 | 2021-05-18T00:04:36.000Z | 2021-05-18T00:04:36.000Z | inmana/lib/inmana/supplies/get_by_expiration.ex | cesaraugustomt/Inmana_API | c288f98d7dc1f3cbe8693914e38769c8dcc3a8d6 | [
"MIT"
] | null | null | null | inmana/lib/inmana/supplies/get_by_expiration.ex | cesaraugustomt/Inmana_API | c288f98d7dc1f3cbe8693914e38769c8dcc3a8d6 | [
"MIT"
] | null | null | null | defmodule Inmana.Supplies.GetByExpiration do
import Ecto.Query
alias Inmana.{Repo, Restaurant, Supply}
def call do
today = Date.utc_today()
beginning_of_week = Date.beginning_of_week(today)
end_of_week = Date.end_of_week(today)
query =
from(supply in Supply,
where:
suppl... | 24.652174 | 98 | 0.671958 |
03d503b89c8fea4c8d26a3cf27586bde0f71a805 | 640 | ex | Elixir | lib/onigumo.ex | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 3 | 2021-10-19T12:09:30.000Z | 2022-01-30T13:24:57.000Z | lib/onigumo.ex | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 67 | 2020-02-26T10:11:45.000Z | 2022-03-30T11:06:55.000Z | lib/onigumo.ex | Glutexo/onigumo | 065492677f68ba0f0dfe30bb0ce5e8d55b708b2b | [
"MIT"
] | 1 | 2021-11-13T13:32:34.000Z | 2021-11-13T13:32:34.000Z | defmodule Onigumo do
@moduledoc """
Web scraper
"""
@input_filename "urls.txt"
@output_filename "body.html"
def main() do
HTTPoison.start()
http = http_client()
load_urls(@input_filename)
|> Enum.map(&download(http, &1))
end
def download(http_client, url) do
%HTTPoison.Response{
... | 18.823529 | 47 | 0.65 |
03d5193d607a215ae789876bc6df877bccf34f9b | 1,220 | exs | Elixir | mix.exs | tmbb/makeup_html5 | 747b51547ca5e54ca93b3fe0707cd8223082566f | [
"BSD-2-Clause"
] | null | null | null | mix.exs | tmbb/makeup_html5 | 747b51547ca5e54ca93b3fe0707cd8223082566f | [
"BSD-2-Clause"
] | null | null | null | mix.exs | tmbb/makeup_html5 | 747b51547ca5e54ca93b3fe0707cd8223082566f | [
"BSD-2-Clause"
] | 1 | 2020-04-20T09:20:36.000Z | 2020-04-20T09:20:36.000Z | defmodule Makeup.Languages.HTML5.Mixfile do
use Mix.Project
def project do
[
app: :makeup_html5,
version: "0.2.0",
elixir: "~> 1.0",
start_permanent: Mix.env == :prod,
deps: deps(),
# Docs
name: "Makeup - HTML5 Support",
source_url: "https://github.com/tmbb/makeu... | 23.018868 | 74 | 0.585246 |
03d5b8405e527595e91e8561c3fcd807971f4d0e | 11,569 | ex | Elixir | kousa/lib/kousa/room.ex | BronzW/dogehouse | 6cebfd22af728112a861a9e2ea6202cd848abab6 | [
"MIT"
] | null | null | null | kousa/lib/kousa/room.ex | BronzW/dogehouse | 6cebfd22af728112a861a9e2ea6202cd848abab6 | [
"MIT"
] | null | null | null | kousa/lib/kousa/room.ex | BronzW/dogehouse | 6cebfd22af728112a861a9e2ea6202cd848abab6 | [
"MIT"
] | null | null | null | defmodule Kousa.Room do
alias Kousa.Utils.VoiceServerUtils
alias Beef.Users
alias Beef.Follows
alias Beef.Rooms
# note the following 2 module aliases are on the chopping block!
alias Beef.RoomPermissions
alias Beef.RoomBlocks
def set_auto_speaker(user_id, value) do
if room = Rooms.get_room_by_creat... | 29.894057 | 96 | 0.616302 |
03d602861a40907d00c74bd6e1c88a430571ee74 | 2,068 | ex | Elixir | lib/farmbot.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/farmbot.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/farmbot.ex | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | defmodule Farmbot do
@moduledoc """
Supervises the individual modules that make up the Farmbot Application.
"""
require Logger
use Supervisor
alias Farmbot.Sync.Database
alias Farmbot.System.Supervisor, as: FBSYS
@spec init(map) :: [{:ok, pid}]
def init(%{target: target,
compat_version... | 32.3125 | 79 | 0.647485 |
03d6065874164dc923358359909aca5e64cecb88 | 132 | ex | Elixir | lib/ex_clearbit/exception.ex | EnaiaInc/ex_clearbit | 16d0ecc8ffe75c2df70fda703c5c085dbe20bea6 | [
"MIT"
] | 3 | 2017-03-16T20:55:36.000Z | 2018-01-29T04:20:04.000Z | lib/ex_clearbit/exception.ex | EnaiaInc/ex_clearbit | 16d0ecc8ffe75c2df70fda703c5c085dbe20bea6 | [
"MIT"
] | 9 | 2016-12-24T05:02:03.000Z | 2020-03-10T20:37:14.000Z | lib/ex_clearbit/exception.ex | EnaiaInc/ex_clearbit | 16d0ecc8ffe75c2df70fda703c5c085dbe20bea6 | [
"MIT"
] | 10 | 2017-06-29T15:36:24.000Z | 2021-12-03T16:30:02.000Z | defmodule ExClearbit.Error do
@moduledoc """
Generic error thrown by the application
"""
defexception [:code, :message]
end
| 18.857143 | 41 | 0.719697 |
03d60774ce386433c04d393f9a7a15a7ce8e971f | 2,093 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/network_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/network_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/network_config.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... | 41.86 | 576 | 0.73913 |
03d60eb8eb5a604375c2908ee2dbe57419092c76 | 34,452 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.391304 | 196 | 0.61741 |
03d68811c3759d89a96454928710fb972e926302 | 1,222 | ex | Elixir | rudy.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | rudy.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | rudy.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | defmodule Rudy do
def start(port) do
Process.register(spawn(fn-> init(port) end), :rudy)
end
def stop() do
Process.exit(Process.whereis(:rudy), "Time to die!")
end
def init(port) do
opt = [:list, active: false, reuseaddr: true]
case :gen_tcp.listen(port, opt) ... | 23.960784 | 60 | 0.477905 |
03d693303e94a432aba3f01af77c5e6b3dc751e5 | 1,378 | exs | Elixir | mix.exs | hrobeers/fran-planner | 1f049ad65f5d18991a8abeeb6ba7fb583463630a | [
"BSD-2-Clause"
] | 3 | 2015-07-18T22:21:30.000Z | 2015-07-19T16:25:35.000Z | mix.exs | hrobeers/fran-planner | 1f049ad65f5d18991a8abeeb6ba7fb583463630a | [
"BSD-2-Clause"
] | null | null | null | mix.exs | hrobeers/fran-planner | 1f049ad65f5d18991a8abeeb6ba7fb583463630a | [
"BSD-2-Clause"
] | null | null | null | defmodule FranAppBackend.Mixfile do
use Mix.Project
def project do
[app: :fran_app_backend,
version: "0.0.2",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 29.956522 | 79 | 0.571118 |
03d694dce38cccc58c08ee36cd977c4c8d47406b | 59 | ex | Elixir | lib/ginapi_web/views/page_view.ex | iandeherdt/phoenixginapp | 4079a71130a8609b36118080757e10a80d50ebac | [
"Apache-2.0"
] | null | null | null | lib/ginapi_web/views/page_view.ex | iandeherdt/phoenixginapp | 4079a71130a8609b36118080757e10a80d50ebac | [
"Apache-2.0"
] | null | null | null | lib/ginapi_web/views/page_view.ex | iandeherdt/phoenixginapp | 4079a71130a8609b36118080757e10a80d50ebac | [
"Apache-2.0"
] | null | null | null | defmodule GinapiWeb.PageView do
use GinapiWeb, :view
end
| 14.75 | 31 | 0.79661 |
03d6c15c0d6ccf3344ced5d1c6a9a5c758b827ef | 3,482 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1beta1/model/firewall_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_management/lib/google_api/network_management/v1beta1/model/firewall_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_management/lib/google_api/network_management/v1beta1/model/firewall_info.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... | 47.054054 | 197 | 0.692705 |
03d6cd4375221362df3d29a62a09b3dd5977a9bd | 1,066 | exs | Elixir | test/kindle_clippings_parser/clipping_test.exs | clintgibler/kindle_clippings_parser | 86654721b7f12d11952b5e18364d67aef8805ce9 | [
"MIT"
] | null | null | null | test/kindle_clippings_parser/clipping_test.exs | clintgibler/kindle_clippings_parser | 86654721b7f12d11952b5e18364d67aef8805ce9 | [
"MIT"
] | null | null | null | test/kindle_clippings_parser/clipping_test.exs | clintgibler/kindle_clippings_parser | 86654721b7f12d11952b5e18364d67aef8805ce9 | [
"MIT"
] | null | null | null | defmodule KindleClippingsParser.ClippingTest do
use ExUnit.Case
alias KindleClippingsParser.Clipping
test "from_text" do
text = ~S"""
Foobar
- Highlight Loc. 125-26 | Added on Monday, March 09, 1970, 08:35 PM
The most generic of all books.
So good.
"""
clipping = Clipping.from_text(... | 30.457143 | 88 | 0.690432 |
03d6fdd566f81f6d6ea184f5434c60e1eb79c6d0 | 1,972 | ex | Elixir | lib/helpers_sqlite.ex | areski/excdr-pusher | 45389e29ab97d11585f22fe29fd7da54d9f31ef8 | [
"MIT"
] | 3 | 2019-04-18T15:36:50.000Z | 2021-01-19T04:38:48.000Z | lib/helpers_sqlite.ex | areski/excdr-pusher | 45389e29ab97d11585f22fe29fd7da54d9f31ef8 | [
"MIT"
] | null | null | null | lib/helpers_sqlite.ex | areski/excdr-pusher | 45389e29ab97d11585f22fe29fd7da54d9f31ef8 | [
"MIT"
] | 3 | 2017-08-15T10:43:40.000Z | 2018-11-06T09:12:49.000Z | defmodule ExCdrPusher.HSqlite do
require Logger
alias Application, as: App
@moduledoc """
This module contains method to communicate with SQLite CDRs storage.
"""
# Found CDRs not imported
def fetch_cdr do
case Sqlitex.open(App.fetch_env!(:excdr_pusher, :sqlite_db)) do
{:ok, db} ->
fet... | 31.301587 | 100 | 0.613083 |
03d71bcf772b044396b7303926d07a6b7f51f2fe | 1,812 | ex | Elixir | 2020/liveview/dazzle/lib/dazzle_web/telemetry.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/liveview/dazzle/lib/dazzle_web/telemetry.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/liveview/dazzle/lib/dazzle_web/telemetry.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule DazzleWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn m... | 32.357143 | 86 | 0.67053 |
03d75b38184325c16d98c2ed22e53a45a96f0c5d | 322 | exs | Elixir | functionalprogramming/introduction/10_update_list.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | 2 | 2016-09-20T11:56:33.000Z | 2016-10-20T20:11:04.000Z | functionalprogramming/introduction/10_update_list.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | functionalprogramming/introduction/10_update_list.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | # HackerRank "Functional Programming" - Update List
defmodule Solution do
defp print_absolute(input) do
String.to_integer(input)
|> abs
|> IO.puts
end
def main() do
IO.read(:stdio, :all) |> String.strip |> String.split("\n")
|> Enum.map(fn(x)->print_absolute(x)end)
end
end
Solution.main(... | 17.888889 | 63 | 0.652174 |
03d7c43872421e6f3a84cc6fa75629718a7ab93a | 2,015 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/google_cloud_talent_v4_job_processing_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/google_cloud_talent_v4_job_processing_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/google_cloud_talent_v4_job_processing_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.3 | 348 | 0.759305 |
03d7d58f04a8f5eb68b3b76813f58e5495596a7a | 7,264 | ex | Elixir | lib/livebook/runtime/erl_dist/runtime_server.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/runtime_server.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/runtime_server.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist.RuntimeServer do
@moduledoc false
# A server process backing a specific runtime.
#
# This process handles `Livebook.Runtime` operations,
# like evaluation and completion. It spawns/terminates
# individual evaluators corresponding to evaluation
# containers as necessary.... | 28.598425 | 96 | 0.682269 |
03d7ff4180e022299376b9f41b21a9e748b7d2b0 | 1,501 | ex | Elixir | lib/rocketpay_web/controllers/accounts_controller.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | 2 | 2021-03-01T09:15:57.000Z | 2021-03-02T23:30:57.000Z | lib/rocketpay_web/controllers/accounts_controller.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | lib/rocketpay_web/controllers/accounts_controller.ex | willianns/rocketpay | 34c882b47ab1cb2a83b51c6bb17eeceb7714ab92 | [
"Unlicense"
] | null | null | null | defmodule RocketpayWeb.AccountsController do
use RocketpayWeb, :controller
alias Rocketpay.Account
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
action_fallback RocketpayWeb.FallbackController
plug :authorize_operation when action in [:withdraw, :deposit]
plug :authorize_transact... | 24.606557 | 88 | 0.644237 |
03d8203c4c0e2c862cdf1fc3cb7084236930ef84 | 2,661 | ex | Elixir | lib/ueberauth/strategy/twitch/oauth.ex | ryanwinchester/ueberauth_twitch | 8152588078f4ec116400fcfd94a295b3bfe67ab4 | [
"MIT"
] | 2 | 2020-05-21T19:29:32.000Z | 2020-07-26T19:25:49.000Z | lib/ueberauth/strategy/twitch/oauth.ex | ryanwinchester/ueberauth_twitch | 8152588078f4ec116400fcfd94a295b3bfe67ab4 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/twitch/oauth.ex | ryanwinchester/ueberauth_twitch | 8152588078f4ec116400fcfd94a295b3bfe67ab4 | [
"MIT"
] | 3 | 2020-06-24T00:30:08.000Z | 2020-11-19T01:49:37.000Z | defmodule Ueberauth.Strategy.Twitch.OAuth do
@moduledoc """
OAuth2 for Twitch.
Add `client_id` and `client_secret` to your configuration:
config :ueberauth, Ueberauth.Strategy.Twitch.OAuth,
client_id: System.get_env("TWITCH_APP_ID"),
client_secret: System.get_env("TWITCH_APP_SECRET")
"""
use OAuth... | 27.43299 | 97 | 0.672304 |
03d8487e5fd64c8318c298779c933f6375c330fa | 19,083 | ex | Elixir | lib/email_service/entities/email/binding/substitution/dynamic.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | 2 | 2019-04-15T22:17:59.000Z | 2022-01-03T15:35:36.000Z | lib/email_service/entities/email/binding/substitution/dynamic.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | lib/email_service/entities/email/binding/substitution/dynamic.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2020 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.EmailService.Email.Binding.Substitution.Dynamic do
... | 39.427686 | 168 | 0.54483 |
03d874be2bb84ccc1b94932a4aa6a6f8ac81e3c2 | 557 | ex | Elixir | samples/client/petstore/elixir/lib/open_api_petstore/model/dog.ex | kymbalon/openapi-generator | 8327a920408314aacb7d00f64285ae88e9195633 | [
"Apache-2.0"
] | 2 | 2019-03-26T11:04:18.000Z | 2021-01-03T10:54:10.000Z | samples/client/petstore/elixir/lib/open_api_petstore/model/dog.ex | kymbalon/openapi-generator | 8327a920408314aacb7d00f64285ae88e9195633 | [
"Apache-2.0"
] | 7 | 2021-03-01T21:26:03.000Z | 2022-02-27T10:10:20.000Z | samples/client/petstore/elixir/lib/open_api_petstore/model/dog.ex | kymbalon/openapi-generator | 8327a920408314aacb7d00f64285ae88e9195633 | [
"Apache-2.0"
] | 4 | 2019-04-08T17:06:09.000Z | 2020-06-09T18:16:08.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenAPIPetstore.Model.Dog do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"className",
:"color",
:"breed"
]
@... | 18.566667 | 91 | 0.642729 |
03d882fa6a07c74682cf26a0bd7f6209f73ae415 | 987 | exs | Elixir | test/mix/ecto_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2022-01-24T07:32:34.000Z | 2022-01-24T07:32:34.000Z | test/mix/ecto_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 2 | 2020-04-23T00:19:07.000Z | 2020-04-23T00:24:25.000Z | test/mix/ecto_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2020-10-07T16:52:00.000Z | 2020-10-07T16:52:00.000Z | defmodule Mix.EctoTest do
use ExUnit.Case, async: true
import Mix.Ecto
test "parse repo" do
assert parse_repo(["-r", "Repo"]) == [Repo]
assert parse_repo(["--repo", Repo]) == [Repo]
assert parse_repo(["-r", "Repo", "-r", "Repo2"]) == [Repo, Repo2]
assert parse_repo(["-r", "Repo", "--quiet"]) == [... | 25.973684 | 78 | 0.605876 |
03d887619b710952725a68aa56c05b2d64714fbd | 1,418 | ex | Elixir | clients/books/lib/google_api/books/v1/model/usersettings_notification_price_drop.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/usersettings_notification_price_drop.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/usersettings_notification_price_drop.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 ... | 30.170213 | 90 | 0.745416 |
03d88a0d4d6933072571aa37bc0132ff0bf1a198 | 2,330 | exs | Elixir | benchmarks/intermediate_algo.exs | soyjeansoy/freecodecamp-exercises-using-elixir | 62846dc9017aa23163039b3fc38c3bec26fcb962 | [
"MIT"
] | null | null | null | benchmarks/intermediate_algo.exs | soyjeansoy/freecodecamp-exercises-using-elixir | 62846dc9017aa23163039b3fc38c3bec26fcb962 | [
"MIT"
] | null | null | null | benchmarks/intermediate_algo.exs | soyjeansoy/freecodecamp-exercises-using-elixir | 62846dc9017aa23163039b3fc38c3bec26fcb962 | [
"MIT"
] | null | null | null | defmodule Benchmark.IntermediateAlgo do
alias Freecodecamp.IntermediateAlgo
@spec run(String.t(), module(), any()) :: module()
def run(function_name, formatter, args \\ nil),
do: __MODULE__ |> apply(String.to_atom(function_name), [formatter, args])
# set config for benchmark here
defp generic_benchee(jo... | 26.477273 | 77 | 0.599142 |
03d8c7aa3abba810ba7b5343cbce4012a2fc5e73 | 10,965 | ex | Elixir | apps/engine/test/support/db/factory.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/support/db/factory.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/support/db/factory.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.DB.Factory do
@moduledoc """
Factories for our Ecto Schemas.
"""
use ExMachina.Ecto, repo: Engine.Repo
alias Engine.DB.Block
alias Engine.DB.Fee
alias Engine.DB.Output
alias Engine.DB.Transaction
alias Engine.DB.TransactionFee
alias Engine.Ethereum.RootChain.Event
alias Engine.S... | 28.931398 | 110 | 0.614592 |
03d8e1d1b633fb9f9cb44319fb9a414fafdecc94 | 669 | exs | Elixir | projects/layabout/mix.exs | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2020-02-11T06:00:11.000Z | 2020-02-11T06:00:11.000Z | projects/layabout/mix.exs | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2017-09-23T19:41:29.000Z | 2017-09-25T05:12:38.000Z | projects/layabout/mix.exs | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | null | null | null | defmodule Layabout.Mixfile do
use Mix.Project
def project do
[app: :layabout,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for ... | 22.3 | 62 | 0.572496 |
03d8ee404ec7931490632ddca1b8bd77344785f2 | 3,997 | exs | Elixir | test/components/form/search_input_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2020-12-29T10:43:19.000Z | 2020-12-29T10:43:19.000Z | test/components/form/search_input_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | test/components/form/search_input_test.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.SearchInputTest do
use Surface.ConnCase, async: true
alias Surface.Components.Form.SearchInput
test "empty input" do
html =
render_surface do
~H"""
<SearchInput form="song" field="title" />
"""
end
assert html =~ """
<inpu... | 24.371951 | 112 | 0.56017 |
03d90c39a85c84ec7fc382e9d2d2f958ab96c0c8 | 76 | exs | Elixir | server/test/views/layout_view_test.exs | CircleAcademy/circle-website | b519e1e7c1d90566b7dfdaeda20ddd71abf6c832 | [
"MIT"
] | null | null | null | server/test/views/layout_view_test.exs | CircleAcademy/circle-website | b519e1e7c1d90566b7dfdaeda20ddd71abf6c832 | [
"MIT"
] | null | null | null | server/test/views/layout_view_test.exs | CircleAcademy/circle-website | b519e1e7c1d90566b7dfdaeda20ddd71abf6c832 | [
"MIT"
] | null | null | null | defmodule Website.LayoutViewTest do
use Website.ConnCase, async: true
end
| 19 | 35 | 0.815789 |
03d91a621d4474cf13a5d4fc93e077c55e19bcc0 | 1,820 | exs | Elixir | apps/subs_web/mix.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | null | null | null | apps/subs_web/mix.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | null | null | null | apps/subs_web/mix.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | null | null | null | defmodule SubsWeb.Mixfile do
use Mix.Project
def project do
[
app: :subs_web,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths... | 28 | 76 | 0.573626 |
03d93e4a852ee6c4d6d84240b4a3579bfefe1e5b | 5,047 | exs | Elixir | test/conduit_sqs/poller_test.exs | trbngr/conduit_sqs | d96056a0767765a67b418a978a19e54861fb2e71 | [
"MIT"
] | null | null | null | test/conduit_sqs/poller_test.exs | trbngr/conduit_sqs | d96056a0767765a67b418a978a19e54861fb2e71 | [
"MIT"
] | null | null | null | test/conduit_sqs/poller_test.exs | trbngr/conduit_sqs | d96056a0767765a67b418a978a19e54861fb2e71 | [
"MIT"
] | null | null | null | defmodule ConduitSQS.PollerTest do
use ExUnit.Case, async: true
import Injex.Test
import ExUnit.CaptureLog
alias ConduitSQS.Poller
alias Conduit.Message
describe "init/1" do
test "sets itself as a producer and stores it's state" do
queue = "conduitsqs-test"
subscriber_opts = []
adapte... | 30.221557 | 125 | 0.564494 |
03d975cf991730d61dbdc5bd72a699f5ec4cd793 | 354 | exs | Elixir | priv/repo/seeds.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 27 | 2016-10-15T12:13:22.000Z | 2021-02-07T20:31:41.000Z | priv/repo/seeds.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 4 | 2016-08-21T15:03:29.000Z | 2019-11-22T13:15:29.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:
#
# EmbedChat.Repo.insert!(%EmbedChat.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they w... | 29.5 | 61 | 0.70904 |
03d9bf94802df88924df3a614077de11291ac0ca | 3,014 | ex | Elixir | web/controllers/git_controller.ex | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | 3 | 2015-01-13T18:38:37.000Z | 2017-10-27T17:04:09.000Z | web/controllers/git_controller.ex | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | null | null | null | web/controllers/git_controller.ex | adanselm/exgitd | db693f3507a09788ea1f45901b15233e650ccbaa | [
"MIT"
] | null | null | null | defmodule Exgitd.GitController do
use Phoenix.Controller
alias Exgitd.GitPort
plug :action
## Create full repo path on server from username and repo name
defp make_path(user, repo_name) do
pathroot = Application.get_env(:exgitd, :repositories_root)
unless String.ends_with?(repo_name, ".git"), do: rep... | 32.408602 | 96 | 0.674187 |
03d9d34101ea1c91b21122d2086c5fa5c5108015 | 284 | ex | Elixir | lib/string/chars/vivid/frame.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 26 | 2017-01-03T01:18:38.000Z | 2019-02-21T09:26:20.000Z | lib/string/chars/vivid/frame.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | null | null | null | lib/string/chars/vivid/frame.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 2 | 2017-03-18T22:45:49.000Z | 2017-05-08T07:24:58.000Z | defimpl String.Chars, for: Vivid.Frame do
alias Vivid.Frame
@doc """
Convert a `frame` into a `string` for `IO.puts`, etc.
"""
@spec to_string(Frame.t()) :: String.t()
def to_string(%Frame{} = frame) do
frame
|> Frame.buffer()
|> Kernel.to_string()
end
end
| 20.285714 | 55 | 0.612676 |
03d9dabcbaab55b3be805ac0c4c92dc14e64fa39 | 2,009 | ex | Elixir | lib/ffaker/en/company.ex | marocchino/ffaker | 5bb4420a8034db9f954a2464cd72039129ef2307 | [
"MIT"
] | 9 | 2016-11-09T15:50:05.000Z | 2021-02-02T05:45:06.000Z | lib/ffaker/en/company.ex | marocchino/ffaker | 5bb4420a8034db9f954a2464cd72039129ef2307 | [
"MIT"
] | 3 | 2016-09-01T09:54:46.000Z | 2017-07-25T05:23:56.000Z | lib/ffaker/en/company.ex | marocchino/ffaker | 5bb4420a8034db9f954a2464cd72039129ef2307 | [
"MIT"
] | 4 | 2016-11-22T17:51:48.000Z | 2021-02-02T05:45:01.000Z | defmodule Ffaker.En.Company do
@moduledoc"""
Functions for company data in English
"""
use Ffaker
alias Ffaker.En.Name
@suffixes ~w(Inc LLC Group)
@position_prefixes ~w(Executive Assistant General Associate)
@positions ~w(President Manager Director Secretary Consultant)
@doc"""
Returns company nam... | 19.133333 | 64 | 0.607765 |
03d9e35b56133ebfa77c8bab50109cda197196a0 | 1,799 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/theme_color_pair.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/theme_color_pair.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/theme_color_pair.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... | 35.27451 | 205 | 0.748749 |
03d9e64fa02df1c280288c0ca7cf1d621ef3ad1c | 324 | exs | Elixir | priv/repo/migrations/20210514162941_create_addresses.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | 1 | 2021-06-27T20:02:11.000Z | 2021-06-27T20:02:11.000Z | priv/repo/migrations/20210514162941_create_addresses.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210514162941_create_addresses.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | defmodule StudentList.Repo.Migrations.CreateAddresses do
use Ecto.Migration
def change do
create table(:addresses) do
add :address1, :string
add :address2, :string
add :city, :string
add :state, :string
add :zip, :string
add :phone, :string
timestamps()
end
end
... | 19.058824 | 56 | 0.635802 |
03da032c4f945fed2920509e5ca92b97e8db0372 | 2,808 | ex | Elixir | lib/elixero/core_api/models/invoices/invoice.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | lib/elixero/core_api/models/invoices/invoice.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | lib/elixero/core_api/models/invoices/invoice.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.CoreApi.Models.Invoices.Invoice do
use Ecto.Schema
import Ecto.Changeset
@derive {Poison.Encoder, except: [:__meta__, :id]}
@fields [
:InvoiceID,
:InvoiceNumber,
:Type,
:Status,
:LineAmountTypes,
:Date,
:DueDate,
... | 33.035294 | 83 | 0.602564 |
03da2605b12c40fc73798a5718f4f528de36a5c5 | 70 | exs | Elixir | app/phxfeeds/test/test_helper.exs | chrispaynes/PhoenixFeeds | dd6451b96c8005eff94727da760a3716ecb18545 | [
"MIT"
] | null | null | null | app/phxfeeds/test/test_helper.exs | chrispaynes/PhoenixFeeds | dd6451b96c8005eff94727da760a3716ecb18545 | [
"MIT"
] | null | null | null | app/phxfeeds/test/test_helper.exs | chrispaynes/PhoenixFeeds | dd6451b96c8005eff94727da760a3716ecb18545 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Phxfeeds.Repo, :manual)
| 23.333333 | 54 | 0.785714 |
03da428a562931c02a322328efd2ca7fa2a7dc10 | 2,143 | exs | Elixir | portfolio/config/dev.exs | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | null | null | null | portfolio/config/dev.exs | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | 11 | 2020-04-29T10:28:20.000Z | 2020-04-29T11:03:13.000Z | portfolio/config/dev.exs | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :portfolio, Portfolio.Repo,
username: "postgres",
password: "postgres",
database: "portfolio",
hostname: "db",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
#... | 27.831169 | 68 | 0.691554 |
03da4d52959d5d034bc26d273d1e3d04b785953d | 2,032 | ex | Elixir | lib/ueberauth/strategy/linkedin/oauth.ex | mayulu/ueberauth_linkedin | a758ad6daa2bd8469f51a54bb2ea0e4efbf46df1 | [
"MIT"
] | 9 | 2016-04-17T21:50:24.000Z | 2021-04-26T11:22:46.000Z | lib/ueberauth/strategy/linkedin/oauth.ex | mayulu/ueberauth_linkedin | a758ad6daa2bd8469f51a54bb2ea0e4efbf46df1 | [
"MIT"
] | 9 | 2016-06-02T01:25:52.000Z | 2021-10-01T02:30:08.000Z | lib/ueberauth/strategy/linkedin/oauth.ex | mayulu/ueberauth_linkedin | a758ad6daa2bd8469f51a54bb2ea0e4efbf46df1 | [
"MIT"
] | 35 | 2016-05-29T23:16:03.000Z | 2022-03-06T09:57:28.000Z | defmodule Ueberauth.Strategy.LinkedIn.OAuth do
@moduledoc """
OAuth2 for LinkedIn.
Add `client_id` and `client_secret` to your configuration:
config :ueberauth, Ueberauth.Strategy.LinkedIn.OAuth,
client_id: System.get_env("LINKEDIN_CLIENT_ID"),
client_secret: System.get_env("LINKEDIN_CLIENT_SECRET")
... | 26.38961 | 79 | 0.682087 |
03da4ea53e3bcefb8befac8427558e631e3d5381 | 161 | ex | Elixir | lib/pipelines/tokenizer_behavior.ex | vinniefranco/pipelines | 0b0313765002428a8f302e1fe8231cb00cfbc283 | [
"MIT"
] | 1 | 2020-11-26T00:06:16.000Z | 2020-11-26T00:06:16.000Z | lib/pipelines/tokenizer_behavior.ex | vinniefranco/pipelines | 0b0313765002428a8f302e1fe8231cb00cfbc283 | [
"MIT"
] | null | null | null | lib/pipelines/tokenizer_behavior.ex | vinniefranco/pipelines | 0b0313765002428a8f302e1fe8231cb00cfbc283 | [
"MIT"
] | null | null | null | defmodule Pipelines.Tokenizer do
@moduledoc false
@callback tokenize({:error, term}) :: {:error, term}
@callback tokenize({:ok, term}) :: {:ok, term}
end
| 23 | 54 | 0.670807 |
03da585c003a5c6c0598b29f767a4450efe37aa2 | 1,146 | ex | Elixir | lib/kamleague/leagues/players_games.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | lib/kamleague/leagues/players_games.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | lib/kamleague/leagues/players_games.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule Kamleague.Leagues.PlayersGames do
use Ecto.Schema
import Ecto.Changeset
schema "players_games" do
belongs_to :player_info, Kamleague.Leagues.Player, foreign_key: :player_id
belongs_to :game, Kamleague.Leagues.Game, foreign_key: :game_id
field :location, :integer
field :win, :boolean
... | 20.464286 | 78 | 0.613438 |
03da888b4a3a2fbfa33a94d720d1676d886ce218 | 848 | ex | Elixir | lib/game/emails.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/emails.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/emails.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Game.Emails do
@moduledoc """
Module for game emails
"""
alias Game.Config
use Bamboo.Phoenix, view: Web.EmailView
@from_email Application.get_env(:ex_venture, :mailer)[:from]
def welcome(user) do
base_email()
|> to(user.email)
|> subject("Welcome to #{Config.game_name()}")
|... | 21.74359 | 62 | 0.634434 |
03da8a21dc6280c487007e139de590604052a06c | 1,715 | exs | Elixir | apps/waylon_web/config/dev.exs | thyagostall/waylon | d2298e8b66d7a0e2e4819f11607c0bc94a7e8543 | [
"MIT"
] | null | null | null | apps/waylon_web/config/dev.exs | thyagostall/waylon | d2298e8b66d7a0e2e4819f11607c0bc94a7e8543 | [
"MIT"
] | null | null | null | apps/waylon_web/config/dev.exs | thyagostall/waylon | d2298e8b66d7a0e2e4819f11607c0bc94a7e8543 | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :waylon_web application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watche... | 27.66129 | 63 | 0.673469 |
03daa12ff386b36a4e7e01b96d83ad4ab8d7037a | 207 | exs | Elixir | apps/bookmarker/priv/repo/migrations/20190811152312_add_is_favorite_to_folders.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/priv/repo/migrations/20190811152312_add_is_favorite_to_folders.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/priv/repo/migrations/20190811152312_add_is_favorite_to_folders.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.Repo.Migrations.AddIsFavoriteToFolders do
use Ecto.Migration
def change do
alter table(:folders) do
add :is_favorite, :boolean, null: false, default: false
end
end
end
| 20.7 | 62 | 0.743961 |
03daad0baefdaae4a70242acdb89d534297d4e29 | 529 | ex | Elixir | umbrella/apps/sunulator_web/lib/sunulator_web/router.ex | plasticine/sunulator | f202518bae70cad06ea9d38e183c1b9873a77b18 | [
"MIT"
] | 2 | 2019-06-05T23:28:44.000Z | 2019-06-05T23:41:20.000Z | umbrella/apps/sunulator_web/lib/sunulator_web/router.ex | plasticine/sunulator | f202518bae70cad06ea9d38e183c1b9873a77b18 | [
"MIT"
] | 3 | 2021-03-09T12:30:08.000Z | 2021-09-01T19:32:06.000Z | umbrella/apps/sunulator_web/lib/sunulator_web/router.ex | plasticine/sunulator | f202518bae70cad06ea9d38e183c1b9873a77b18 | [
"MIT"
] | null | null | null | defmodule SunulatorWeb.Router do
use SunulatorWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug Phoenix.LiveView.Flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
... | 18.892857 | 39 | 0.68242 |
03daf038ce90ed258ec8b1bf7a0770f9a01f4a01 | 665 | exs | Elixir | test/gmail/base_test.exs | philwade/elixir-gmail | 4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3 | [
"MIT"
] | 52 | 2015-02-19T23:23:34.000Z | 2020-07-12T12:53:09.000Z | test/gmail/base_test.exs | philwade/elixir-gmail | 4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3 | [
"MIT"
] | 17 | 2016-06-01T18:49:09.000Z | 2020-11-11T21:26:21.000Z | test/gmail/base_test.exs | philwade/elixir-gmail | 4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3 | [
"MIT"
] | 26 | 2016-03-08T09:13:58.000Z | 2021-09-27T08:39:22.000Z | ExUnit.start
defmodule Gmail.BaseTest do
use ExUnit.Case
test "uses the url in the app config if there is one" do
url = "http://appconfig.example.com"
Application.put_env :gmail, :api, %{url: url}
assert Gmail.Base.base_url == url
end
test "uses the default base url if nothing is set in the app c... | 28.913043 | 73 | 0.696241 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.