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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
333518bd4048f25b140a45796321a3ee60f2043b | 1,797 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/action_parameter.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/action_parameter.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/action_parameter.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.235294 | 279 | 0.734001 |
33353be6aa5b143887834fcd0a56a30611f8e297 | 144 | exs | Elixir | examples/ecto_assoc/test/ecto_assoc_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | examples/ecto_assoc/test/ecto_assoc_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | examples/ecto_assoc/test/ecto_assoc_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | defmodule EctoAssocTest do
use ExUnit.Case
doctest EctoAssoc
test "greets the world" do
assert EctoAssoc.hello() == :world
end
end
| 16 | 38 | 0.722222 |
333594025dff29411642eb051e5498ea3083c6d3 | 107 | exs | Elixir | test/simple_bayes/tokenizer_test.exs | fredwu/simple_bayes | 806d7e62ab90bdbd8d905faa9536425466f203e2 | [
"MIT"
] | 412 | 2016-07-14T15:34:26.000Z | 2022-03-26T10:34:39.000Z | test/simple_bayes/tokenizer_test.exs | fredwu/simple_bayes | 806d7e62ab90bdbd8d905faa9536425466f203e2 | [
"MIT"
] | 7 | 2016-07-20T08:40:07.000Z | 2018-06-11T12:44:19.000Z | test/simple_bayes/tokenizer_test.exs | fredwu/simple_bayes | 806d7e62ab90bdbd8d905faa9536425466f203e2 | [
"MIT"
] | 27 | 2016-07-17T13:05:19.000Z | 2021-04-08T21:46:16.000Z | defmodule SimpleBayes.TokenizerTest do
use ExUnit.Case, async: true
doctest SimpleBayes.Tokenizer
end
| 17.833333 | 38 | 0.813084 |
3335b6f99c87456866dab0513e5b144cf8bc0e1d | 2,148 | exs | Elixir | mix.exs | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 40 | 2017-04-19T15:35:42.000Z | 2020-02-14T11:07:44.000Z | mix.exs | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 43 | 2017-01-17T23:03:47.000Z | 2018-08-16T01:25:24.000Z | mix.exs | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 6 | 2018-02-15T09:43:15.000Z | 2018-04-10T21:08:36.000Z | defmodule Docdog.Mixfile do
use Mix.Project
def project do
[
app: :docdog,
version: "0.2.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCove... | 27.538462 | 79 | 0.564711 |
3335d2e26682a09b62ca2ecb9c44a6f1def6683f | 483 | ex | Elixir | apps/ex_rlp/lib/ex_rlp/utils.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 22 | 2017-06-22T02:50:34.000Z | 2022-01-26T20:43:21.000Z | apps/ex_rlp/lib/ex_rlp/utils.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 9 | 2018-10-08T22:56:56.000Z | 2018-10-18T20:41:55.000Z | apps/ex_rlp/lib/ex_rlp/utils.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 5 | 2018-10-06T16:30:48.000Z | 2022-01-26T20:43:26.000Z | defmodule ExRLP.Utils do
@moduledoc false
@spec maybe_encode_hex(binary(), atom()) :: binary()
def maybe_encode_hex(value, :hex), do: encode_hex(value)
def maybe_encode_hex(value, _encoding), do: value
@spec encode_hex(binary()) :: binary()
def encode_hex(binary) do
binary |> Base.encode16(case: :lowe... | 24.15 | 58 | 0.691511 |
3335e0ede55f78d8f46bdc3c9e7ef8c7c3257b39 | 87,854 | exs | Elixir | test/ecto/changeset_test.exs | anthonator/ecto | 00df9cc724aedc753c8dd3206e9f6ff90f491a02 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset_test.exs | anthonator/ecto | 00df9cc724aedc753c8dd3206e9f6ff90f491a02 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset_test.exs | anthonator/ecto | 00df9cc724aedc753c8dd3206e9f6ff90f491a02 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.ChangesetTest do
use ExUnit.Case, async: true
import Ecto.Changeset
require Ecto.Query
defmodule SocialSource do
use Ecto.Schema
@primary_key false
embedded_schema do
field :origin
field :url
end
def changeset(schema \\ %SocialSource{}, params) do
cast(sch... | 39.969973 | 167 | 0.637341 |
3335e9d2d38d3ddef7722d3db05fbc46c89a4857 | 885 | exs | Elixir | test/config_test.exs | Electron-libre/riverside | 5bf1cd2226b4a303a70abbb75e766dcd3967370d | [
"MIT"
] | null | null | null | test/config_test.exs | Electron-libre/riverside | 5bf1cd2226b4a303a70abbb75e766dcd3967370d | [
"MIT"
] | null | null | null | test/config_test.exs | Electron-libre/riverside | 5bf1cd2226b4a303a70abbb75e766dcd3967370d | [
"MIT"
] | null | null | null | defmodule Riverside.PortConfigTest do
use ExUnit.Case
use Plug.Test
test "port_config" do
assert Riverside.Config.get_port(8080) == 8080
# integer convertible value
assert Riverside.Config.get_port("8080") == 8080
assert_raise ArgumentError, fn ->
assert Riverside.Config.get_port("NOT_CO... | 26.029412 | 74 | 0.690395 |
33360734986ba74b943f8bf5a687db317af94f9d | 10,483 | ex | Elixir | lib/ex_unit/lib/ex_unit/cli_formatter.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/cli_formatter.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/cli_formatter.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.CLIFormatter do
@moduledoc false
use GenServer
import ExUnit.Formatter,
only: [format_time: 2, format_filters: 2, format_test_failure: 5, format_test_all_failure: 5]
## Callbacks
def init(opts) do
print_filters(Keyword.take(opts, [:include, :exclude]))
config = %{
seed: ... | 26.077114 | 98 | 0.6501 |
33368c0181ce1f99317b3f0b7bfd5a25a952cb8c | 1,133 | exs | Elixir | config/config.exs | salamtime2016/link-preview | eccc640c4b6d0b6592b47fb2cd9ab1ed6e190784 | [
"MIT"
] | 4 | 2018-11-07T13:47:13.000Z | 2021-11-01T10:12:15.000Z | config/config.exs | salamtime2016/link-preview | eccc640c4b6d0b6592b47fb2cd9ab1ed6e190784 | [
"MIT"
] | null | null | null | config/config.exs | salamtime2016/link-preview | eccc640c4b6d0b6592b47fb2cd9ab1ed6e190784 | [
"MIT"
] | 2 | 2019-10-15T20:27:53.000Z | 2021-08-20T04:32:35.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... | 36.548387 | 73 | 0.753751 |
3336aa26a79fcd848975f8e4d47fb2d77a591155 | 26 | ex | Elixir | lib/backpack.ex | imranismail/backpack | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | 2 | 2017-09-03T15:16:19.000Z | 2018-02-07T02:25:10.000Z | lib/backpack.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | lib/backpack.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | defmodule Backpack do
end
| 8.666667 | 21 | 0.846154 |
3336b16f6babf1c5ac640df8b6f1c5ba0136cc1f | 1,713 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/allocate_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/allocate_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/allocate_info.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... | 35.6875 | 327 | 0.754816 |
3336bc744e10bbbe63bf91a58d24fddee1f798eb | 353 | exs | Elixir | test/datetime_test.exs | Medigram/elixir-datetime | c2455433c8822591df5a2900ea65de57f123a1f2 | [
"MIT"
] | 1 | 2017-05-12T04:12:43.000Z | 2017-05-12T04:12:43.000Z | test/datetime_test.exs | rgrinberg/elixir-datetime | 171bb780a7408cbe1204c73aa0aa694544bf4a0a | [
"MIT"
] | null | null | null | test/datetime_test.exs | rgrinberg/elixir-datetime | 171bb780a7408cbe1204c73aa0aa694544bf4a0a | [
"MIT"
] | null | null | null | # Test interop between Date and Time.
#Code.require_file "test_helper.exs", __DIR__
defmodule DateTimeTest do
use ExUnit.Case, async: true
test :epoch do
assert Date.to_sec(Date.epoch, :zero) == Time.to_sec(Time.epoch)
assert Date.epoch(:sec) == Time.epoch(:sec)
assert Date.from(Time.epoch, :timestamp... | 27.153846 | 68 | 0.711048 |
3336d8b4494875f3fffac17fe7b8875284a3dde0 | 559 | ex | Elixir | lib/admissions_web/views/error_view.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 18 | 2018-12-01T22:55:24.000Z | 2022-03-11T04:12:43.000Z | lib/admissions_web/views/error_view.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 14 | 2018-12-01T01:00:33.000Z | 2021-06-24T00:40:39.000Z | lib/admissions_web/views/error_view.ex | doomspork/admissions | a1fd7946dc980189f47a5b808c12e56655fdedfb | [
"Apache-2.0"
] | 1 | 2019-02-10T16:12:15.000Z | 2019-02-10T16:12:15.000Z | defmodule AdmissionsWeb.ErrorView do
use AdmissionsWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the templat... | 29.421053 | 61 | 0.728086 |
3336e1d1ac867b484efdd74583fea263b9f301ef | 3,149 | ex | Elixir | lib/phoenix_html/engine.ex | tarzan/phoenix_html | e5aa074692f3a287ce5fa09c8a0afeeb6ed14806 | [
"MIT"
] | 1 | 2020-04-28T12:28:52.000Z | 2020-04-28T12:28:52.000Z | lib/phoenix_html/engine.ex | tarzan/phoenix_html | e5aa074692f3a287ce5fa09c8a0afeeb6ed14806 | [
"MIT"
] | null | null | null | lib/phoenix_html/engine.ex | tarzan/phoenix_html | e5aa074692f3a287ce5fa09c8a0afeeb6ed14806 | [
"MIT"
] | null | null | null | defmodule Phoenix.HTML.Engine do
@moduledoc """
This is an implementation of EEx.Engine that guarantees
templates are HTML Safe.
"""
@anno (if :erlang.system_info(:otp_release) >= '19' do
[generated: true]
else
[line: -1]
end)
use EEx.Engine
@doc false
def init... | 24.410853 | 91 | 0.625913 |
33370c5bcc054d7fad96a663318990524162c543 | 980 | exs | Elixir | mix.exs | szTheory/udpflux | d610c51f2a10fca4056443a32bb7f157535f1a3b | [
"MIT"
] | 3 | 2015-06-13T17:54:58.000Z | 2016-05-12T21:57:46.000Z | mix.exs | szTheory/udpflux | d610c51f2a10fca4056443a32bb7f157535f1a3b | [
"MIT"
] | 1 | 2015-06-23T10:05:40.000Z | 2015-06-23T10:05:40.000Z | mix.exs | szTheory/udpflux | d610c51f2a10fca4056443a32bb7f157535f1a3b | [
"MIT"
] | 2 | 2015-06-14T14:27:13.000Z | 2020-03-03T21:42:43.000Z | defmodule Udpflux.Mixfile do
use Mix.Project
def project do
[app: :udpflux,
package: package,
version: "0.0.2",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
test_coverage: [tool: ExCoveralls]]
end
# Configuration for ... | 21.777778 | 77 | 0.6 |
3337261ebaa6aa3f79aeb903558c02650c5d0cab | 4,996 | exs | Elixir | test/multiple_products_web/controllers/user_settings_controller_test.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | test/multiple_products_web/controllers/user_settings_controller_test.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | test/multiple_products_web/controllers/user_settings_controller_test.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | defmodule MultipleProductsWeb.UserSettingsControllerTest do
use MultipleProductsWeb.ConnCase, async: true
alias MultipleProducts.Accounts
import MultipleProducts.AccountsFixtures
setup :register_and_log_in_user
describe "GET /users/settings" do
test "renders settings page", %{conn: conn} do
conn ... | 38.430769 | 96 | 0.653323 |
33372e501214f2eba1241dd17a2e17d02bbb4e19 | 725 | ex | Elixir | lib/membrane/log/logger_state.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/log/logger_state.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/log/logger_state.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Log.Logger.State do
@moduledoc false
# Structure representing state of the logger. It is a part of the private API.
# It does not represent state of logger you construct, it's a state used
# internally in Membrane.
@type t :: %Membrane.Log.Logger.State{
internal_state: any,
... | 29 | 80 | 0.695172 |
333734c0586c2ba57c8a2e1c0eee090f32cff524 | 1,056 | ex | Elixir | clients/books/lib/google_api/books/v1/model/review_author.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/review_author.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/review_author.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... | 28.540541 | 77 | 0.746212 |
33373c8b67eb77aaa5dbaa42685c12e8771920a1 | 652 | exs | Elixir | Chapter11/todo_web/mix.exs | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter11/todo_web/mix.exs | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter11/todo_web/mix.exs | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | defmodule TodoCache.MixProject do
use Mix.Project
def project do
[
app: :todo,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_app... | 20.375 | 87 | 0.550613 |
33375370444082d0d61235f478e657680d219c91 | 1,752 | ex | Elixir | lib/lib/timex_ecto.ex | ntsai/xin | f4faeb73a3041a2923559f16a2255712e1615aae | [
"MIT"
] | null | null | null | lib/lib/timex_ecto.ex | ntsai/xin | f4faeb73a3041a2923559f16a2255712e1615aae | [
"MIT"
] | null | null | null | lib/lib/timex_ecto.ex | ntsai/xin | f4faeb73a3041a2923559f16a2255712e1615aae | [
"MIT"
] | null | null | null | defmodule Xin.Ecto.Timestamps do
@moduledoc """
Provides a simple way to use Timex with Ecto timestamps.
# Example
```
defmodule User do
use Ecto.Schema
use Xin.Ecto.Timestamps
schema "user" do
field :name, :string
timestamps
end
```
By default this will generate a timestamp wi... | 24.333333 | 88 | 0.628425 |
333765f28c1540bdc299ee85174f077ccb80cc55 | 8,759 | ex | Elixir | lib/ecto/embedded.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | 1 | 2022-01-24T07:32:34.000Z | 2022-01-24T07:32:34.000Z | lib/ecto/embedded.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | lib/ecto/embedded.ex | alco/ecto | 8972c318d8ed551395607b0d6e15e3c6cfbf425a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Embedded do
@moduledoc false
alias __MODULE__
alias Ecto.Changeset
alias Ecto.Changeset.Relation
use Ecto.ParameterizedType
@type t :: %Embedded{cardinality: :one | :many,
on_replace: :raise | :mark_as_invalid | :delete,
field: atom,
... | 32.440741 | 110 | 0.650417 |
333771839e9f84e9a17a28fb6fe656835fcde4a8 | 2,971 | ex | Elixir | lib/mail_queue.ex | kay1759/mail_queue | edb22da957776443d61894e6cff67dad70095407 | [
"MIT"
] | null | null | null | lib/mail_queue.ex | kay1759/mail_queue | edb22da957776443d61894e6cff67dad70095407 | [
"MIT"
] | null | null | null | lib/mail_queue.ex | kay1759/mail_queue | edb22da957776443d61894e6cff67dad70095407 | [
"MIT"
] | null | null | null | defmodule MailQueue do
@moduledoc """
Documentation for MailQueue.
"""
use GenServer
use AMQP
import Bamboo.Email
@config Application.get_env(:mail_queue, __MODULE__, [])
def start_link(_) do
GenServer.start_link(__MODULE__, [], [])
end
def init(_opts) do
{:ok, conn} = Connection.open(@c... | 31.946237 | 107 | 0.640862 |
333775ff774e9b127705a74189b3c26704f307e1 | 681 | exs | Elixir | test/elixir_bank/interactions/like_test.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | test/elixir_bank/interactions/like_test.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | test/elixir_bank/interactions/like_test.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | defmodule ElixirBank.Interactions.LikeTest do
use ElixirBank.DataCase
alias Ecto.UUID
alias ElixirBank.Interactions.Like
describe "changeset/2" do
@valid_attrs %{
record_id: UUID.generate(),
user_id: UUID.generate()
}
test "should return a valid changeset when attrs are valid" do
... | 25.222222 | 98 | 0.675477 |
333777febe0bfe98039afb9e910d9d3911624062 | 1,117 | exs | Elixir | test/decompilerl_test.exs | aerosol/decompilerl | aa4b3e8e9fc3542ce6baf058dd2cfdb413b4bb81 | [
"WTFPL"
] | 27 | 2016-05-07T21:29:25.000Z | 2022-02-03T08:38:39.000Z | test/decompilerl_test.exs | aerosol/decompilerl | aa4b3e8e9fc3542ce6baf058dd2cfdb413b4bb81 | [
"WTFPL"
] | 2 | 2017-05-18T23:17:02.000Z | 2018-01-24T22:55:00.000Z | test/decompilerl_test.exs | aerosol/decompilerl | aa4b3e8e9fc3542ce6baf058dd2cfdb413b4bb81 | [
"WTFPL"
] | 4 | 2017-05-18T22:05:59.000Z | 2021-03-23T18:57:29.000Z | defmodule DecompilerlTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
@outfile "tmp/decompilerl_test.erl"
test "output to stdout" do
:ok = Decompilerl.decompile(Decompilerl.CLI)
end
test "output to file" do
File.rm(@outfile)
File.mkdir_p!("tmp")
:ok = Decompilerl.decompile(Dec... | 23.270833 | 77 | 0.641003 |
33378dfe21d02d2c903d5824eb1340262f98af77 | 822 | ex | Elixir | lib/storm/application.ex | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | null | null | null | lib/storm/application.ex | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | 1 | 2021-03-28T22:57:30.000Z | 2021-04-10T23:05:04.000Z | lib/storm/application.ex | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | null | null | null | defmodule Storm.Application do
use Application
def start(_type, _args) do
children = [
Storm.Db.Supervisor,
Storm.CollectionSupervisor,
StormWeb.Telemetry,
{Phoenix.PubSub, name: Storm.PubSub},
StormWeb.Endpoint
]
{:ok, _} =
Registry.start_link(
keys: :dupli... | 22.833333 | 59 | 0.647202 |
3337dffdf973ad2d27d6705dd64672de537ee418 | 53 | exs | Elixir | config/test.exs | Michelin-Service-Solutions/samly | 4e7f9ca8858596198e03f9a688c196d3f4bd1820 | [
"MIT"
] | null | null | null | config/test.exs | Michelin-Service-Solutions/samly | 4e7f9ca8858596198e03f9a688c196d3f4bd1820 | [
"MIT"
] | null | null | null | config/test.exs | Michelin-Service-Solutions/samly | 4e7f9ca8858596198e03f9a688c196d3f4bd1820 | [
"MIT"
] | 1 | 2020-07-28T18:33:30.000Z | 2020-07-28T18:33:30.000Z | use Mix.Config
config :ex_unit,
capture_log: true
| 10.6 | 19 | 0.754717 |
33381965561c2c247477f0f849e443667eeea528 | 236 | ex | Elixir | lib/stellar/metrics.ex | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 25 | 2018-01-23T13:56:28.000Z | 2021-11-08T08:10:53.000Z | lib/stellar/metrics.ex | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 91 | 2018-01-30T20:10:44.000Z | 2022-01-12T19:50:24.000Z | lib/stellar/metrics.ex | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 5 | 2018-04-17T15:08:26.000Z | 2019-08-07T19:08:49.000Z | defmodule Stellar.Metrics do
@moduledoc """
Functions for interacting with Metrics
"""
alias Stellar.Base
@doc """
Gets metrics
"""
@spec get() :: {Stellar.status(), map}
def get do
Base.get("/metrics")
end
end
| 15.733333 | 40 | 0.631356 |
3338355794645fdf9f314142a475987ac76b7878 | 67 | exs | Elixir | test/air_vantage/api_test.exs | pvp-technologies/ex_vantage | 3f04dbc5c952f0c44a06132992e9112a1e367915 | [
"MIT"
] | null | null | null | test/air_vantage/api_test.exs | pvp-technologies/ex_vantage | 3f04dbc5c952f0c44a06132992e9112a1e367915 | [
"MIT"
] | null | null | null | test/air_vantage/api_test.exs | pvp-technologies/ex_vantage | 3f04dbc5c952f0c44a06132992e9112a1e367915 | [
"MIT"
] | null | null | null | defmodule AirVantage.APITest do
use ExUnit.Case, async: true
end
| 16.75 | 31 | 0.791045 |
333882c9f45293de8d7be93316fc73140378ef1d | 4,213 | ex | Elixir | lib/ex_dbus/dom/builder.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 2 | 2021-08-05T09:08:49.000Z | 2021-08-14T22:38:18.000Z | lib/ex_dbus/dom/builder.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | null | null | null | lib/ex_dbus/dom/builder.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 1 | 2021-12-05T03:03:05.000Z | 2021-12-05T03:03:05.000Z | defmodule ExDBus.Builder do
use ExDBus.Spec, prefix: false
@spec service(name()) :: {:ok, service()} | {:error, binary()}
def service(name) do
{:ok, {:service, name, []}}
end
@spec service!(name()) :: service()
def service!(name) do
with {:ok, service} <- service(name) do
service
else
... | 27.357143 | 96 | 0.604083 |
33388f3f1852ee09ab71030e6092fa926ba65575 | 350 | ex | Elixir | lib/flame_on/dashboard_page.ex | DockYard/flame_on | 47580c687c131c23b3a6c435e243dba3d18dc93d | [
"MIT"
] | 55 | 2022-02-23T20:36:43.000Z | 2022-03-31T13:55:28.000Z | lib/flame_on/dashboard_page.ex | DockYard/flame_on | 47580c687c131c23b3a6c435e243dba3d18dc93d | [
"MIT"
] | 7 | 2022-02-24T00:23:10.000Z | 2022-03-28T18:23:30.000Z | lib/flame_on/dashboard_page.ex | DockYard/flame_on | 47580c687c131c23b3a6c435e243dba3d18dc93d | [
"MIT"
] | 1 | 2022-02-26T03:27:00.000Z | 2022-02-26T03:27:00.000Z | defmodule FlameOn.DashboardPage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder
alias Phoenix.LiveDashboard.PageBuilder
@impl PageBuilder
def menu_link(_, _) do
{:ok, "Flame On"}
end
@impl PageBuilder
def render_page(%{page: %{node: node}}) do
{FlameOn.Component, %{id: :flame_on_comp... | 21.875 | 63 | 0.717143 |
333891d2f2d409d0a0501c0bd9a399bbe9cdff41 | 489 | ex | Elixir | lib/heresys.ex | 9600-baud/Heresys | 15ad83b97fdce7bd72f67dd60b676e176aa96305 | [
"BSD-3-Clause"
] | null | null | null | lib/heresys.ex | 9600-baud/Heresys | 15ad83b97fdce7bd72f67dd60b676e176aa96305 | [
"BSD-3-Clause"
] | null | null | null | lib/heresys.ex | 9600-baud/Heresys | 15ad83b97fdce7bd72f67dd60b676e176aa96305 | [
"BSD-3-Clause"
] | null | null | null | defmodule Heresys do
@moduledoc """
Application module for Heresys (main supervisor)
"""
use Application
defmacro __using__(_args) do
quote do alias Heresys, as: H end
end
def start(_type, _args) do
children = [
{Heresys.Entity.Supervisor, name: Heresys.Entity.Supervisor},
{Heresys... | 18.807692 | 69 | 0.685072 |
33389397be8492ebf0ea1781b081fa65e8dbeb11 | 4,229 | ex | Elixir | lib/scenic/component.ex | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | lib/scenic/component.ex | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | lib/scenic/component.ex | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2018-03-26.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Component do
@moduledoc """
A Component is simply a Scene that is optimized to be referenced by another scene.
All you need to do to create a Component is call
use Scenic.Component
... | 33.563492 | 100 | 0.654765 |
33389c776fde387ad337a195d774edbf84b73e1f | 1,908 | ex | Elixir | deps/credo/lib/credo/check/warning/raise_inside_rescue.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/credo/lib/credo/check/warning/raise_inside_rescue.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/credo/lib/credo/check/warning/raise_inside_rescue.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Credo.Check.Warning.RaiseInsideRescue do
@moduledoc """
Using `Kernel.raise` inside of a `rescue` block creates a new stacktrace,
which obscures the cause of the original error.
Example:
# Prefer
try do
raise "oops"
rescue
error ->
Logger.warn("An excepti... | 26.136986 | 112 | 0.639413 |
3338caa959f60f0edbde5934de4d23167ad8a0d0 | 141 | ex | Elixir | test/support/components/void_component.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | test/support/components/void_component.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | test/support/components/void_component.ex | mhanberg/temple | ec484bcef65e1bffa9134c3b259795237c1845d0 | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | defmodule Temple.Components.VoidComponent do
import Temple.Component
render do
div class: "void!!" do
"bar"
end
end
end
| 14.1 | 44 | 0.673759 |
3338cacdd1a7344a6b279d6d9bff520ba3afff00 | 68 | exs | Elixir | refuge/test/test_helper.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | refuge/test/test_helper.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/pragstudio/refuge/test/test_helper.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Refuge.Repo, :manual)
| 22.666667 | 52 | 0.779412 |
3338e38e0fa1dde613d1313da9699f8e029b2831 | 974 | ex | Elixir | src/core/views/error_view.ex | salespaulo/inmana | 26c0c1c1b61f37e4b108800eb8ed29fca986b9b7 | [
"MIT"
] | null | null | null | src/core/views/error_view.ex | salespaulo/inmana | 26c0c1c1b61f37e4b108800eb8ed29fca986b9b7 | [
"MIT"
] | null | null | null | src/core/views/error_view.ex | salespaulo/inmana | 26c0c1c1b61f37e4b108800eb8ed29fca986b9b7 | [
"MIT"
] | null | null | null | defmodule InmanaWeb.ErrorView do
use InmanaWeb, :view
alias Ecto.Changeset
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns t... | 31.419355 | 87 | 0.681725 |
3338f10c5857bc97ec989a897a9fc2b3829be7f1 | 6,715 | ex | Elixir | lib/mix/pow.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 1 | 2021-08-25T12:11:08.000Z | 2021-08-25T12:11:08.000Z | lib/mix/pow.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | lib/mix/pow.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | defmodule Mix.Pow do
@moduledoc """
Utilities module for mix tasks.
"""
alias Mix.{Dep, Project}
@doc """
Raises an exception if the project is an umbrella app.
"""
@spec no_umbrella!(binary()) :: :ok
def no_umbrella!(task) do
if Project.umbrella?() do
Mix.raise("mix #{task} can only be run... | 28.943966 | 146 | 0.633954 |
3338f45323bed20aa60a2783482535c8e72fe9c0 | 8,683 | ex | Elixir | lib/ex_admin/themes/admin_lte2/index.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/index.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/index.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2020-06-06T18:08:16.000Z | 2020-06-06T18:08:16.000Z | defmodule ExAdmin.Theme.AdminLte2.Index do
@moduledoc false
import Kernel, except: [div: 2]
import Xain
import ExAdmin.Utils
import ExAdmin.Index
require Integer
import ExAdmin.Helpers
import ExAdmin.Gettext
alias ExAdmin.Schema
def wrap_index_grid(fun) do
div ".box", style: "min-height: 400px"... | 38.083333 | 200 | 0.557411 |
3338f8ce0d4f5b6ee71557dc815da2967144e078 | 441 | ex | Elixir | lib/straw_hat_graphql/scalar/json.ex | straw-hat-team/straw_hat_graphql | 1694f937ed3bfc3c97f9db98f366ebc8934cfbfb | [
"MIT"
] | 4 | 2018-01-23T10:03:22.000Z | 2019-05-14T04:18:38.000Z | lib/straw_hat_graphql/scalar/json.ex | straw-hat-team/straw_hat_graphql | 1694f937ed3bfc3c97f9db98f366ebc8934cfbfb | [
"MIT"
] | 51 | 2018-01-19T12:46:20.000Z | 2019-11-01T10:12:48.000Z | lib/straw_hat_graphql/scalar/json.ex | straw-hat-labs/straw_hat_graphql | 1694f937ed3bfc3c97f9db98f366ebc8934cfbfb | [
"MIT"
] | 1 | 2018-01-19T12:42:28.000Z | 2018-01-19T12:42:28.000Z | defmodule StrawHat.GraphQL.Scalar.JSON do
@moduledoc """
An Absinthe Scalar for JSON.
"""
use Absinthe.Schema.Notation
@spec serialize(Jason.Encoder.t()) :: iodata | no_return
defdelegate serialize(value), to: Jason, as: :encode!
@spec parse(%{value: String.t()}) :: {:ok, map} | :error
def parse(%{va... | 23.210526 | 58 | 0.630385 |
3339002cf54e8e2f6a582c86fdbe07a30262c98f | 1,831 | ex | Elixir | lib/whistler_news_reader_web/router.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 8 | 2016-06-12T20:11:26.000Z | 2017-05-02T04:36:41.000Z | lib/whistler_news_reader_web/router.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 2 | 2016-06-12T15:49:06.000Z | 2016-06-12T20:00:02.000Z | lib/whistler_news_reader_web/router.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | null | null | null | defmodule WhistlerNewsReaderWeb.Router do
use WhistlerNewsReaderWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
# check token in... | 32.696429 | 101 | 0.73894 |
33394da2c95d9379cef11ddecd7385ce476b155f | 2,426 | exs | Elixir | test/comet_test.exs | DockYard/comet | 1cfd5ea9cafcd9837eec26485af0f9bdae836610 | [
"MIT"
] | null | null | null | test/comet_test.exs | DockYard/comet | 1cfd5ea9cafcd9837eec26485af0f9bdae836610 | [
"MIT"
] | null | null | null | test/comet_test.exs | DockYard/comet | 1cfd5ea9cafcd9837eec26485af0f9bdae836610 | [
"MIT"
] | null | null | null | defmodule CometTest do
use ExUnit.Case
@moduletag :capture_log
setup do
{:ok, pid} = start_supervised(ChromeLauncher)
{:ok, pid: pid}
end
test "server returns new Chrome server instance" do
%ChromeRemoteInterface.Server{host: "localhost", port: 9222} = Comet.server()
end
test "server can c... | 31.506494 | 141 | 0.629843 |
33396bd0a0267204f104f2b666629e48488f51eb | 621 | ex | Elixir | plug_signature_example/lib/plug_signature_example/authentication.ex | wojtekmach/plug_signature | f31c0c83c2adb85e82c40547c46131634e83e49c | [
"BSD-3-Clause"
] | 14 | 2020-01-01T14:44:38.000Z | 2021-09-07T08:15:13.000Z | plug_signature_example/lib/plug_signature_example/authentication.ex | wojtekmach/plug_signature | f31c0c83c2adb85e82c40547c46131634e83e49c | [
"BSD-3-Clause"
] | 2 | 2020-05-14T09:19:50.000Z | 2021-06-15T06:24:05.000Z | plug_signature_example/lib/plug_signature_example/authentication.ex | wojtekmach/plug_signature | f31c0c83c2adb85e82c40547c46131634e83e49c | [
"BSD-3-Clause"
] | 3 | 2020-03-05T13:53:42.000Z | 2021-06-10T10:24:07.000Z | defmodule PlugSignatureExample.Authentication do
@moduledoc """
Wrapper around PlugSignature
"""
@behaviour PlugSignature.Callback
@impl true
def client_lookup("hmac.key", _algorithm, _conn) do
{:ok, "Some client", File.read!("priv/hmac.key")}
end
def client_lookup(key_id, _algorithm, _conn) do
... | 24.84 | 63 | 0.658615 |
33397cdc448a4376219e415d782b1e967014e456 | 5,568 | ex | Elixir | lib/pow/phoenix/controllers/controller.ex | matthewford/pow | 82c3359ec757a139fe38f4a745c3da176425f901 | [
"MIT"
] | null | null | null | lib/pow/phoenix/controllers/controller.ex | matthewford/pow | 82c3359ec757a139fe38f4a745c3da176425f901 | [
"MIT"
] | null | null | null | lib/pow/phoenix/controllers/controller.ex | matthewford/pow | 82c3359ec757a139fe38f4a745c3da176425f901 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule Pow.Phoenix.Controller do
@moduledoc """
Used with Pow Phoenix controllers to handle messages, routes and callbacks.
## Usage
defmodule MyPowExtension.Phoenix.MyController do
use Pow.Phoenix.Controller
def process_new(conn, _params) do
{:ok, :response, conn}
en... | 30.42623 | 108 | 0.673671 |
33399db9e703bafe3a18511d605616de8ad392f1 | 1,968 | ex | Elixir | lib/utility/presets.ex | deadshot465/owoify_ex | 4099b486e2d0eab0d807a5f00a9517638ce6c554 | [
"MIT"
] | null | null | null | lib/utility/presets.ex | deadshot465/owoify_ex | 4099b486e2d0eab0d807a5f00a9517638ce6c554 | [
"MIT"
] | null | null | null | lib/utility/presets.ex | deadshot465/owoify_ex | 4099b486e2d0eab0d807a5f00a9517638ce6c554 | [
"MIT"
] | null | null | null | defmodule Presets do
@spec specific_word_mapping_list :: [(Word.t() -> Word.t()), ...]
def specific_word_mapping_list do
[
&Mappings.map_fuc_to_fwuc/1,
&Mappings.map_mom_to_mwom/1,
&Mappings.map_time_to_tim/1,
&Mappings.map_me_to_mwe/1,
&Mappings.map_n_vowel_to_ny/1,
&Mapping... | 29.818182 | 69 | 0.677337 |
3339c4502f893084242cf0a9bfe8df5bb89fbae6 | 1,176 | ex | Elixir | lib/phx_test/web/channels/user_socket.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | lib/phx_test/web/channels/user_socket.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | lib/phx_test/web/channels/user_socket.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | defmodule PhxTest.Web.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PhxTest.Web.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and... | 30.947368 | 83 | 0.701531 |
3339ea6ba829074ce042a39e826575b273c8cc36 | 1,613 | exs | Elixir | config/test.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 6 | 2020-02-04T16:18:30.000Z | 2020-10-31T06:00:03.000Z | config/test.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 114 | 2019-11-14T03:48:17.000Z | 2022-03-17T12:38:14.000Z | config/test.exs | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 1 | 2021-07-08T01:48:56.000Z | 2021-07-08T01:48:56.000Z | import 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 brunch.io to recompile .js and .css sources.
config :survey_api, SurveyAPIWeb.Endpoint,
https: [
... | 32.26 | 170 | 0.732796 |
3339f0cf4c2534eac30f6ae86815c4572ef18e03 | 8,769 | exs | Elixir | test/phoenix_live_view/integrations/lifecycle_test.exs | tomconroy/phoenix_live_view | 655e95170e3e1b8fead1ffe43a661c7f5aa6b519 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/lifecycle_test.exs | tomconroy/phoenix_live_view | 655e95170e3e1b8fead1ffe43a661c7f5aa6b519 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/lifecycle_test.exs | tomconroy/phoenix_live_view | 655e95170e3e1b8fead1ffe43a661c7f5aa6b519 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.LifecycleTest do
use ExUnit.Case
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveView
alias Phoenix.LiveViewTest.{Endpoint, HooksLive}
@endpoint Endpoint
setup do
{:ok, conn: Plug.Test.init_test_session(build_conn(), %{})}
end
test "on_mount ho... | 33.857143 | 150 | 0.608051 |
3339f7fcc7dd9aac8b53581d30eb715c07dac7ad | 466 | ex | Elixir | lib/jmdict/entry.ex | bchase/jmdict-elixir | 29fa95ef85d20e344ee62343df94754bd209a3f2 | [
"MIT"
] | null | null | null | lib/jmdict/entry.ex | bchase/jmdict-elixir | 29fa95ef85d20e344ee62343df94754bd209a3f2 | [
"MIT"
] | null | null | null | lib/jmdict/entry.ex | bchase/jmdict-elixir | 29fa95ef85d20e344ee62343df94754bd209a3f2 | [
"MIT"
] | null | null | null | defmodule JMDict.Entry do
alias JMDict.Entry.{KanjiReading, KanaReading, Sense}
defstruct \
eid: "",
kanji: [],
kana: [],
senses: []
def from_map(entry_map) do
struct __MODULE__, %{
eid: entry_map.eid,
kanji: Enum.map(entry_map.k_ele, &KanjiReading.from_element/1),
... | 24.526316 | 70 | 0.637339 |
333a20820e92fbe9eb79896b076babe986783fdb | 4,447 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/status.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/status.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/status.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... | 85.519231 | 2,549 | 0.765235 |
333a23b8790e3dc112b12a15b3222645e79b7cad | 1,684 | ex | Elixir | lib/purple/accounts/user_notifier.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple/accounts/user_notifier.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple/accounts/user_notifier.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | defmodule Purple.Accounts.UserNotifier do
import Swoosh.Email
alias Purple.Mailer
# Delivers the email using the application mailer.
defp deliver(recipient, subject, body) do
email =
new()
|> to(recipient)
|> from({"MyApp", "contact@example.com"})
|> subject(subject)
|> text_... | 21.05 | 64 | 0.570071 |
333a450201bce91540d7f4de5109306ef5464997 | 554 | ex | Elixir | lib/firestorm_web/forums/view.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | null | null | null | lib/firestorm_web/forums/view.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | null | null | null | lib/firestorm_web/forums/view.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | 1 | 2020-03-20T12:58:37.000Z | 2020-03-20T12:58:37.000Z | defmodule FirestormWeb.Forums.View do
@moduledoc """
A `View` is a polymorphic representation that a user viewed a thing in our
system at a specified time.
"""
use Ecto.Schema
import Ecto.Changeset
schema "abstract table: views" do
# This will be used by associations on each "concrete" table
fie... | 23.083333 | 76 | 0.684116 |
333a6a9bb0cb1a65bc5cb7ac12d0a968c7300396 | 225 | ex | Elixir | libmahou/lib/mahou/message/change_container_status.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | 37 | 2021-01-31T17:43:03.000Z | 2021-11-17T12:29:00.000Z | libmahou/lib/mahou/message/change_container_status.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | 4 | 2021-05-29T04:54:28.000Z | 2021-06-26T20:40:48.000Z | libmahou/lib/mahou/message/change_container_status.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | null | null | null | defmodule Mahou.Message.ChangeContainerStatus do
use TypedStruct
@type command() ::
:start
| :stop
| :restart
| :kill
typedstruct do
field :name, String.t()
field :command, command()
end
end
| 15 | 48 | 0.635556 |
333a96df1d1b90d0a87fe537eb08df184df0bfa3 | 3,607 | ex | Elixir | src/app/validation/lib/architecture/log_provider.ex | sosedoff/coda | f1c2b807dc608d637c6f7ab933b527f16b413b22 | [
"Apache-2.0"
] | 2 | 2020-11-14T20:16:02.000Z | 2021-08-19T12:44:52.000Z | src/app/validation/lib/architecture/log_provider.ex | sosedoff/coda | f1c2b807dc608d637c6f7ab933b527f16b413b22 | [
"Apache-2.0"
] | 11 | 2021-09-02T10:10:36.000Z | 2022-02-27T08:56:41.000Z | src/app/validation/lib/architecture/log_provider.ex | sosedoff/coda | f1c2b807dc608d637c6f7ab933b527f16b413b22 | [
"Apache-2.0"
] | null | null | null | defmodule Architecture.LogProvider do
@moduledoc "Behaviour for log providers."
alias Architecture.ResourceSet
alias Cloud.Google.Subscription
@type t :: module
# TODO
@type log :: any
@callback resource_class() :: module()
@callback log_filter() :: Architecture.LogFilter.t()
defmacro __using__(_p... | 27.325758 | 94 | 0.680344 |
333ab4b23891340203af945e812afed1459c63b1 | 7,947 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_geo_polygon_query.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_geo_polygon_query.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_geo_polygon_query.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.GeoPolygonQuery) do
@moduledoc false
(
defstruct(field_name: nil, points: [])
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
r... | 26.227723 | 95 | 0.465584 |
333b0173c2356b12bb037fbd7ba398fb6a980850 | 432 | ex | Elixir | lib/absinthe/validation/no_subscription_on_http.ex | aleqsio/absinthe_plug | 94083e836944993f411f0c1510d153077b03e553 | [
"MIT"
] | 234 | 2016-03-02T07:38:25.000Z | 2022-03-14T19:44:17.000Z | lib/absinthe/validation/no_subscription_on_http.ex | aleqsio/absinthe_plug | 94083e836944993f411f0c1510d153077b03e553 | [
"MIT"
] | 205 | 2016-03-02T13:52:53.000Z | 2022-03-31T23:31:36.000Z | lib/absinthe/validation/no_subscription_on_http.ex | aleqsio/absinthe_plug | 94083e836944993f411f0c1510d153077b03e553 | [
"MIT"
] | 168 | 2016-03-02T09:23:56.000Z | 2022-03-31T23:27:58.000Z | defmodule Absinthe.GraphiQL.Validation.NoSubscriptionOnHTTP do
@moduledoc false
use Absinthe.Phase
alias Absinthe.Blueprint
def run(blueprint, _) do
case Blueprint.current_operation(blueprint) do
%{type: :subscription} ->
{:error,
{:http_method,
"Subscriptions cannot be r... | 21.6 | 92 | 0.666667 |
333b3b716a23ee0998ff5cadbfa438b8fac9c985 | 15,087 | ex | Elixir | lib/coherence/schema.ex | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | 2 | 2018-01-19T06:12:16.000Z | 2018-03-12T07:17:17.000Z | lib/coherence/schema.ex | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | null | null | null | lib/coherence/schema.ex | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | null | null | null | defmodule Coherence.Schema do
@moduledoc """
Add Coherence support to a User schema module.
Add `use Coherence.Schema, opts \\ []` to your User module to add a number of
Module functions and helpers.
The optional `opt` parameter can be used to disable options enabled in the
global configuration by passing... | 33.827354 | 140 | 0.65394 |
333b4d8e16ec8c33ae8c57c69290ace1daeb8d5e | 6,063 | ex | Elixir | clients/iap/lib/google_api/iap/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/iap/lib/google_api/iap/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/iap/lib/google_api/iap/v1/model/policy.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... | 114.396226 | 2,012 | 0.750783 |
333b5d41706d342e31e1c9dd1568daa34b03766e | 1,860 | ex | Elixir | lib/course_planner_web.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | lib/course_planner_web.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | lib/course_planner_web.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlannerWeb do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use CoursePlannerWeb, :controller
use CoursePlannerWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 23.544304 | 88 | 0.694624 |
333b5ef7eb59d343a4914c95a9e92892ee113e51 | 1,418 | exs | Elixir | mix.exs | jakdan1969/authtoken | ea16263bbb935c1e15e3e3b2c6c87c53482d5cfb | [
"Apache-2.0"
] | null | null | null | mix.exs | jakdan1969/authtoken | ea16263bbb935c1e15e3e3b2c6c87c53482d5cfb | [
"Apache-2.0"
] | null | null | null | mix.exs | jakdan1969/authtoken | ea16263bbb935c1e15e3e3b2c6c87c53482d5cfb | [
"Apache-2.0"
] | null | null | null | defmodule AuthToken.Mixfile do
use Mix.Project
@version "0.3.0"
@maintainers ["Daniel Khalil"]
@description """
Simplified encrypted authentication tokens using JWE.
"""
@github "https://github.com/Brainsware/authtoken"
def project do
[
name: "AuthToken",
app: :authtoken,
versi... | 20.257143 | 65 | 0.54725 |
333b6a7909be4845c5d073a6fcb6d4a51615168b | 1,849 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/trigger_filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/trigger_filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/trigger_filter.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... | 33.618182 | 136 | 0.736074 |
333b6c785f20e8375786eb6937971b13e2a8ddd1 | 1,243 | ex | Elixir | lib/faktory_worker/socket/ssl.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | 17 | 2019-04-14T21:35:33.000Z | 2019-10-26T10:36:35.000Z | lib/faktory_worker/socket/ssl.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | 75 | 2019-03-12T12:09:34.000Z | 2020-01-04T14:19:11.000Z | lib/faktory_worker/socket/ssl.ex | vitalsource/faktory_worker | 03633c0ddcd2752aa771afbe0757f6e03352254b | [
"MIT"
] | 4 | 2020-10-26T17:21:59.000Z | 2021-04-17T18:05:10.000Z | defmodule FaktoryWorker.Socket.Ssl do
@moduledoc false
alias FaktoryWorker.Connection
@behaviour FaktoryWorker.Socket
@impl true
def connect(host, port, opts \\ []) do
with {:ok, socket} <- try_connect(host, port, opts) do
{:ok, %Connection{host: host, port: port, socket: socket, socket_handler: ... | 22.196429 | 92 | 0.652454 |
333b97572897d7a5c26bf242318283db29a92175 | 3,052 | exs | Elixir | test/radiator_web/controllers/api/podcast_controller_test.exs | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | test/radiator_web/controllers/api/podcast_controller_test.exs | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | test/radiator_web/controllers/api/podcast_controller_test.exs | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.Api.PodcastControllerTest do
use RadiatorWeb.ConnCase
import Radiator.Factory
def setup_user_and_conn(%{conn: conn}) do
user = Radiator.TestEntries.user()
[
conn: Radiator.TestEntries.put_current_user(conn, user),
user: user
]
end
setup :setup_user_and_conn
... | 29.921569 | 98 | 0.632372 |
333bca0e6b74bf0dd855e11cf7d7f99845bc8851 | 5,441 | ex | Elixir | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_step_started.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | 1 | 2020-12-14T07:17:55.000Z | 2020-12-14T07:17:55.000Z | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_step_started.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | null | null | null | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_step_started.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | null | null | null | # credo:disable-for-this-file
defmodule(CucumberMessages.TestStepStarted) do
@moduledoc(false)
(
defstruct(timestamp: nil, test_step_id: "", test_case_started_id: "", __uf__: [])
(
@spec(encode(struct) :: {:ok, iodata} | {:error, any})
def(encode(msg)) do
try do
{:ok, encode!(m... | 36.273333 | 185 | 0.551921 |
333bec8f6c956adec4bd41ced8a96425753dbc8f | 1,565 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_attribute.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_attribute.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_attribute.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... | 31.3 | 86 | 0.720767 |
333bf86b7de95d782b48cc0ef6bc3cf4db5313f6 | 523 | ex | Elixir | lib/massively_multiplayer_ttt_web/views/error_view.ex | DylanSp/massively-multiplayer-ttt | abf4fea2853a4691a31f0d9f9a6cb71d9cce6d05 | [
"MIT"
] | null | null | null | lib/massively_multiplayer_ttt_web/views/error_view.ex | DylanSp/massively-multiplayer-ttt | abf4fea2853a4691a31f0d9f9a6cb71d9cce6d05 | [
"MIT"
] | 9 | 2021-09-09T19:17:59.000Z | 2021-09-09T19:32:12.000Z | lib/massively_multiplayer_ttt_web/views/error_view.ex | DylanSp/massively-multiplayer-ttt | abf4fea2853a4691a31f0d9f9a6cb71d9cce6d05 | [
"MIT"
] | null | null | null | defmodule MassivelyMultiplayerTttWeb.ErrorView do
use MassivelyMultiplayerTttWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status me... | 30.764706 | 61 | 0.751434 |
333c1af42d15e125e9be65769c0887042efb6305 | 1,785 | exs | Elixir | clients/data_fusion/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/data_fusion/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/data_fusion/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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... | 26.641791 | 102 | 0.65042 |
333c4afd6425897b03adf75170b65b39b775e7f6 | 3,811 | ex | Elixir | server/lib/mix/tasks/connect.create_schema.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | null | null | null | server/lib/mix/tasks/connect.create_schema.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | 3 | 2021-04-27T14:11:46.000Z | 2021-04-27T16:00:42.000Z | server/lib/mix/tasks/connect.create_schema.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Connect.CreateSchema do
use Mix.Task
@shortdoc "Creates Schema"
def run(_args) do
Mix.Task.run("app.start")
schema()
|> Enum.each(&({:ok, _} = Db.Repo.cql(&1)))
end
defp schema do
keyspace = Db.Repo.__keyspace__()
[
# `user_metadata` will be used to fetch add... | 25.75 | 84 | 0.544214 |
333c5fcf7908311843124a02ebc8e6d546de2e37 | 12,590 | ex | Elixir | lib/elixir/lib/kernel/cli.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/cli.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/cli.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.CLI do
@moduledoc false
@blank_config %{commands: [], output: ".", compile: [],
halt: true, compiler_options: [], errors: [],
pa: [], pz: [], verbose_compile: false}
@doc """
This is the API invoked by Elixir boot process.
"""
def main(argv) do
argv... | 27.609649 | 111 | 0.606116 |
333cb774936dd844e05cfb300e9efa191cb249e6 | 765 | ex | Elixir | lib/level_web/controllers/api/reservation_controller.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level_web/controllers/api/reservation_controller.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level_web/controllers/api/reservation_controller.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule LevelWeb.API.ReservationController do
@moduledoc false
use LevelWeb, :controller
alias Level.Analytics
alias Level.Users
plug :protect_from_forgery
def create(conn, %{"reservation" => params}) do
case Users.create_reservation(params) do
{:ok, reservation} ->
Analytics.identif... | 23.181818 | 66 | 0.622222 |
333cd45af938f3f2aa16c33591973b0642cdfa89 | 447 | exs | Elixir | priv/repo/migrations/20170626082711_create_guardian_db.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20170626082711_create_guardian_db.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20170626082711_create_guardian_db.exs | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | defmodule SourceAcademy.Repo.Migrations.CreateGuardianDb do
use Ecto.Migration
def change do
create table(:guardian_tokens, primary_key: false) do
add :jti, :string, primary_key: true
add :typ, :string
add :aud, :string
add :iss, :string
add :sub, :string
add :exp, :bigint
... | 21.285714 | 59 | 0.630872 |
333cd9124f99201e450ae18442334eca1de55958 | 819 | ex | Elixir | lib/verk_web/tracking_queues_handler.ex | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | lib/verk_web/tracking_queues_handler.ex | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | lib/verk_web/tracking_queues_handler.ex | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | 1 | 2018-06-24T04:11:11.000Z | 2018-06-24T04:11:11.000Z | defmodule VerkWeb.TrackingQueuesHandler do
use GenStage
def start_link(pid) do
GenStage.start_link(__MODULE__, pid)
end
def init(pid) do
{:consumer, pid, subscribe_to: [Verk.EventProducer]}
end
def handle_events(events, _from, pid) do
Enum.each(events, fn event -> handle_event(event, pid) end... | 29.25 | 71 | 0.687424 |
333cdbd10e83739289335797ac636a3a8a636367 | 746 | exs | Elixir | test/cobol_to_elixir/util_test.exs | TheFirstAvenger/cobol_to_elixir | 549528aed3dd1de8a14bb3a763539b5cbf714811 | [
"MIT"
] | 65 | 2021-08-10T19:16:25.000Z | 2022-02-23T01:38:13.000Z | test/cobol_to_elixir/util_test.exs | TheFirstAvenger/cobol_to_elixir | 549528aed3dd1de8a14bb3a763539b5cbf714811 | [
"MIT"
] | 1 | 2021-08-15T21:59:54.000Z | 2021-08-20T20:30:06.000Z | test/cobol_to_elixir/util_test.exs | TheFirstAvenger/cobol_to_elixir | 549528aed3dd1de8a14bb3a763539b5cbf714811 | [
"MIT"
] | 1 | 2021-08-21T19:53:13.000Z | 2021-08-21T19:53:13.000Z | defmodule CobolToElixir.UtilTest do
use CobolToElixirCase
test "execute_cobol_code!/2 succeeds" do
cobol = """
>>SOURCE FORMAT FREE
IDENTIFICATION DIVISION.
PROGRAM-ID. test1.
AUTHOR. Mike Binns.
DATE-WRITTEN.March 19th 2021
PROCEDURE DIVISION.
DISPLAY "Hello" " " "World"
... | 24.064516 | 114 | 0.663539 |
333cdc1e3a4833578029983c6a493183de854d64 | 4,909 | ex | Elixir | apps/data/lib/grapevine_data/accounts.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | null | null | null | apps/data/lib/grapevine_data/accounts.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | null | null | null | apps/data/lib/grapevine_data/accounts.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | null | null | null | defmodule GrapevineData.Accounts do
@moduledoc """
Context for accounts
"""
import Ecto.Query
require Logger
alias GrapevineData.Accounts.User
alias GrapevineData.Games.Game
alias GrapevineData.Repo
alias Stein.Pagination
@type id :: integer()
@type user_params :: map()
@type username :: Stri... | 21.625551 | 93 | 0.601548 |
333d2bb6c24aa4266966bf9741261dbeb1ea2d47 | 820 | exs | Elixir | test/regressions/i191_overriding_options_mapper_must_still_work_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/regressions/i191_overriding_options_mapper_must_still_work_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/regressions/i191_overriding_options_mapper_must_still_work_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | defmodule Regressions.I191OverridingOptionsMapperMustStillWorkTest do
use ExUnit.Case
alias Earmark.Options
@simple "**hello**"
test "new implementation works" do
{:ok, result, []} = Earmark.as_html(@simple, %Options{timeout: 10_000})
assert result == "<p><strong>hello</strong></p>\n"
end
test "... | 30.37037 | 90 | 0.658537 |
333d535e0e34dfd726a6dc3b6f05da3af0265503 | 398 | ex | Elixir | lib/one_word/supervisor.ex | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | lib/one_word/supervisor.ex | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | lib/one_word/supervisor.ex | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | defmodule OneWord.Supervisor do
use Supervisor
def start_link(opts) do
Supervisor.start_link(__MODULE__, :ok, opts)
end
@impl true
def init(:ok) do
children = [
{DynamicSupervisor, name: GameSupervisor, strategy: :one_for_one},
OneWord.GameHandler,
OneWord.CommandList,
{OneWord.Client, name: OneW... | 19.9 | 69 | 0.736181 |
333d64eb2ccbbc26b4812e8e4fa2b1d06b624bfb | 586 | ex | Elixir | lib/exconsul/application.ex | norbu09/exconsul | bba8639f3321f47ced5928717f62387a3e4aff37 | [
"BSD-2-Clause"
] | null | null | null | lib/exconsul/application.ex | norbu09/exconsul | bba8639f3321f47ced5928717f62387a3e4aff37 | [
"BSD-2-Clause"
] | null | null | null | lib/exconsul/application.ex | norbu09/exconsul | bba8639f3321f47ced5928717f62387a3e4aff37 | [
"BSD-2-Clause"
] | null | null | null | defmodule Exconsul.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Exconsul.Worker.start... | 27.904762 | 67 | 0.711604 |
333d73f52695d8cd6ede0734aea4019b44dfd311 | 3,390 | ex | Elixir | lib/trifolium/endpoints/species.ex | daskycodes/trifolium | 322f01f89948c51d974e64b049ca2ce2d0f8b45f | [
"MIT"
] | 1 | 2021-04-19T15:09:35.000Z | 2021-04-19T15:09:35.000Z | lib/trifolium/endpoints/species.ex | daskycodes/trifolium | 322f01f89948c51d974e64b049ca2ce2d0f8b45f | [
"MIT"
] | 1 | 2021-04-19T18:08:05.000Z | 2021-04-19T18:08:05.000Z | lib/trifolium/endpoints/species.ex | daskycodes/trifolium | 322f01f89948c51d974e64b049ca2ce2d0f8b45f | [
"MIT"
] | 2 | 2021-04-19T15:09:39.000Z | 2021-04-28T14:05:21.000Z | defmodule Trifolium.Species do
@moduledoc """
Module to be used to interact with Trefle [Species](https://docs.trefle.io/reference/#tag/Species) related endpoints.
"""
alias Trifolium.Config
alias Trifolium.API
@endpoint_path "api/v1/species/"
@http_client Config.http_client()
@doc """
List eve... | 29.478261 | 124 | 0.623599 |
333d82250179433fc29e3e94022a846e94b5a711 | 914 | ex | Elixir | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.851852 | 74 | 0.766958 |
333d9b8a0a212d26bb683456f4cbd26af6f2596a | 1,131 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1_log_config_data_access_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1_log_config_data_access_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1_log_config_data_access_options.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... | 30.567568 | 106 | 0.760389 |
333daadc83582c63123b695c593f7e8b23d8148e | 2,266 | ex | Elixir | lib/sample_projects/language/word_complete.ex | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | lib/sample_projects/language/word_complete.ex | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | lib/sample_projects/language/word_complete.ex | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | defmodule SampleProjects.Language.WordComplete do
@moduledoc false
def run do
{training_data, letters} = gen_training_data
blank_vector = NeuralNet.get_blank_vector(letters)
IO.puts "Generating neural network."
net = GRUM.new(%{input_ids: letters, output_ids: letters, memory_size: 100})
... | 37.766667 | 113 | 0.632392 |
333daaf5c38ea8c8e95233b173a843a8dc085179 | 2,463 | ex | Elixir | lib/vintage_net_mobile/modem_info.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 18 | 2020-03-08T21:06:10.000Z | 2022-02-05T00:44:55.000Z | lib/vintage_net_mobile/modem_info.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 27 | 2020-02-28T16:07:07.000Z | 2022-01-19T03:51:02.000Z | lib/vintage_net_mobile/modem_info.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 7 | 2020-03-25T20:08:22.000Z | 2021-10-22T03:20:17.000Z | defmodule VintageNetMobile.ModemInfo do
@moduledoc """
Query the modem for device and SIM information
This monitor queries the modem for information about itself and its SIM and
posts it to VintageNet properties.
The following properties are reported:
| Property | Values | Description ... | 25.65625 | 90 | 0.651238 |
333de0b2027f99d38a628f80492553bba656a993 | 911 | ex | Elixir | lib/groupher_server/cms/models/passport.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/cms/models/passport.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/cms/models/passport.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.CMS.Model.Passport do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
alias GroupherServer.Accounts
alias Accounts.Model.User
@required_fields ~w(rules user_id)a
@optional_fields ~w(rules)a
@type t :: %Passport{}
schema "cms_passports" do
fiel... | 23.358974 | 62 | 0.708013 |
333e18e930bc4509bca8b3b3292fd388aec6f9b8 | 2,146 | exs | Elixir | mix.exs | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 31 | 2021-11-28T05:48:48.000Z | 2022-02-03T01:46:17.000Z | mix.exs | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 8 | 2021-11-28T06:38:17.000Z | 2021-12-10T01:21:17.000Z | mix.exs | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 2 | 2021-11-28T21:09:47.000Z | 2022-01-16T03:51:21.000Z | defmodule Leafblower.MixProject do
use Mix.Project
def project do
[
app: :leafblower,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 28.613333 | 84 | 0.557316 |
333e3f4b86e2c1a968d7f4b73eed48618aa5b439 | 34,360 | ex | Elixir | lib/phoenix_live_view/test/live_view_test.ex | mitchellhenke/phoenix_live_view | c53ae80a3d76e44f5315ab7ad6e5d54abfea80f4 | [
"MIT"
] | 1 | 2020-07-26T12:20:43.000Z | 2020-07-26T12:20:43.000Z | lib/phoenix_live_view/test/live_view_test.ex | mcrumm/phoenix_live_view | ff2313f42444c27e7652ebc5e4ee94ffa619bf85 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | mcrumm/phoenix_live_view | ff2313f42444c27e7652ebc5e4ee94ffa619bf85 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest do
@moduledoc """
Conveniences for testing Phoenix LiveViews.
In LiveView tests, we interact with views via process
communication in substitution of a browser. Like a browser,
our test process receives messages about the rendered updates
from the view which can be asserted ag... | 32.293233 | 98 | 0.661758 |
333e461fcebd9876ef1632a27ca4f1e56944059d | 1,653 | exs | Elixir | mix.exs | MichaelDimmitt/unf-swuber | 7c205c6e80bcc3ef4ee55490ad497061253bcc61 | [
"Apache-2.0"
] | 2 | 2017-04-23T17:31:55.000Z | 2017-07-22T12:54:24.000Z | mix.exs | Swuber/unf-swuber_web_app_phoenix | 7c205c6e80bcc3ef4ee55490ad497061253bcc61 | [
"Apache-2.0"
] | 7 | 2017-04-11T18:42:57.000Z | 2017-04-16T22:54:11.000Z | mix.exs | MichaelDimmitt/unf-swuber | 7c205c6e80bcc3ef4ee55490ad497061253bcc61 | [
"Apache-2.0"
] | null | null | null | defmodule UnfSwuber.Mixfile do
use Mix.Project
def project do
[app: :unf_swuber,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
a... | 30.054545 | 89 | 0.603751 |
333e4912d307606ec9e007921815037374282c80 | 1,618 | exs | Elixir | arc_playground/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | arc_playground/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | arc_playground/mix.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule ArcPlayground.Mixfile do
use Mix.Project
def project do
[app: :arc_playground,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod... | 29.418182 | 78 | 0.600742 |
333e89067cf78a7aa4fc0a62b6ee2b78803351c7 | 1,537 | ex | Elixir | lib/bell_web/views/error_helpers.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | lib/bell_web/views/error_helpers.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | 11 | 2021-03-11T05:46:57.000Z | 2021-12-08T15:39:25.000Z | lib/bell_web/views/error_helpers.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | defmodule BellWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:sp... | 32.020833 | 73 | 0.660377 |
333e92e5aff1b8f97a8f2ff9a0a7ee83286f23e8 | 2,359 | ex | Elixir | lib/chankins/web/controllers/release_controller.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | lib/chankins/web/controllers/release_controller.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | lib/chankins/web/controllers/release_controller.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | defmodule Chankins.Web.ReleaseController do
use Chankins.Web, :controller
alias Chankins.ChangeManagement
def index(conn, _params) do
releases = ChangeManagement.list_releases()
render(conn, "index.html", releases: releases)
end
def new(conn, _params) do
changeset = ChangeManagement.change_rele... | 36.859375 | 93 | 0.670199 |
333ebf92c8d80714fc3f1804b8e268f8fdc19dd3 | 67 | ex | Elixir | lib/clipstamp/web/views/page_view.ex | schwarz/clipstamp | 1cda56679e371c1d091b3879577467d51efa0d01 | [
"MIT"
] | null | null | null | lib/clipstamp/web/views/page_view.ex | schwarz/clipstamp | 1cda56679e371c1d091b3879577467d51efa0d01 | [
"MIT"
] | null | null | null | lib/clipstamp/web/views/page_view.ex | schwarz/clipstamp | 1cda56679e371c1d091b3879577467d51efa0d01 | [
"MIT"
] | null | null | null | defmodule Clipstamp.Web.PageView do
use Clipstamp.Web, :view
end
| 16.75 | 35 | 0.791045 |
333eca604615aa59b31e48ddc32920a26a368a35 | 2,579 | ex | Elixir | src/lib/changelog/data/news/news_sponsorship.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/data/news/news_sponsorship.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_sponsorship.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsSponsorship do
use Changelog.Data
alias Changelog.{NewsAd, Sponsor}
schema "news_sponsorships" do
field :name, :string
field :weeks, {:array, :date}, default: nil
field :impression_count, :integer, default: 0
field :click_count, :integer, default: 0
belongs_to :spons... | 28.655556 | 94 | 0.6867 |
333ecf77fcf65c33be3d1fdcf0ed27f4a9481306 | 13,687 | ex | Elixir | clients/os_login/lib/google_api/os_login/v1/api/users.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/os_login/lib/google_api/os_login/v1/api/users.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/os_login/lib/google_api/os_login/v1/api/users.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... | 44.009646 | 225 | 0.669102 |
333ed218094c0fd7766a7d4d9072629b0d360bf9 | 43 | ex | Elixir | lib/garuda.ex | spawnphile/garuda | f394e38fbbbcf89380cac4b331f21e3be0fd8518 | [
"MIT"
] | 4 | 2021-02-01T12:20:24.000Z | 2021-07-29T08:37:50.000Z | lib/garuda.ex | spawnphile/garuda | f394e38fbbbcf89380cac4b331f21e3be0fd8518 | [
"MIT"
] | 2 | 2021-06-10T11:22:48.000Z | 2021-07-30T06:09:10.000Z | lib/garuda.ex | spawnphile/garuda | f394e38fbbbcf89380cac4b331f21e3be0fd8518 | [
"MIT"
] | null | null | null | defmodule Garuda do
@moduledoc false
end
| 10.75 | 19 | 0.790698 |
333edb50d88aeffe0904d28c5f93436afdeabb29 | 3,086 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_import_entities_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_import_entities_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_import_entities_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.702703 | 193 | 0.744005 |
333ee898e3baff81d85e201078e1a7b6b744d835 | 1,161 | exs | Elixir | test/case_test.exs | divex/prelude | cd6d4517d27d0954fa184b2938cef1a823afae32 | [
"MIT"
] | null | null | null | test/case_test.exs | divex/prelude | cd6d4517d27d0954fa184b2938cef1a823afae32 | [
"MIT"
] | null | null | null | test/case_test.exs | divex/prelude | cd6d4517d27d0954fa184b2938cef1a823afae32 | [
"MIT"
] | null | null | null | defmodule Test.Prelude.CaseExpr do
use Test.Prelude.Case
preludetest "variable" do
def test() do
value = ok(true)
case value do
true ->
greeting = "Hello"
greeting
_ ->
"Goodbye"
end
end
end
preludetest "if/else" do
def test() do
... | 16.585714 | 43 | 0.4677 |
333f0ef4036ee7fcfeddf1a93a760455842f202a | 2,397 | exs | Elixir | test/parse_strftime_test.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | test/parse_strftime_test.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | test/parse_strftime_test.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | defmodule DateFormatTest.ParseStrftime do
use ExUnit.Case, async: true
use Timex
test "parse datetime" do
date = Timex.to_datetime({{2014,7,19},{14,20,34}}, "Etc/GMT-7")
assert {:ok, ^date} = parse("Sat, 19 Jul 2014 14:20:34 +0700", "%a, %d %b %Y %T %z")
end
test "issue #215" do
assert {:ok, _da... | 32.835616 | 111 | 0.581143 |
333f19d393ef4eae34564504b091f54e30f229da | 2,140 | exs | Elixir | lib/elixir/test/elixir/kernel/dialyzer_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/dialyzer_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/dialyzer_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.DialyzerTest do
use ExUnit.Case, async: true
@moduletag :dialyzer
import PathHelpers
setup_all do
dir = tmp_path("dialyzer")
File.rm_rf!(dir)
File.mkdir_p!(dir)
plt =
dir
|> Path.join("base_plt")
|> String.to_... | 26.419753 | 100 | 0.642523 |
333f53450f81700e2de0f55e86a1c358b4a28625 | 347 | exs | Elixir | priv/repo/seeds.exs | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | 4 | 2021-05-29T11:22:36.000Z | 2022-02-09T11:26:39.000Z | priv/repo/seeds.exs | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | 2 | 2021-06-17T13:32:39.000Z | 2022-02-09T11:26:02.000Z | priv/repo/seeds.exs | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | 1 | 2021-06-04T14:27:20.000Z | 2021-06-04T14:27:20.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:
#
# Zaryn.Repo.insert!(%Zaryn.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
333f8cb7a6799870969759158452c0f87f9a38be | 218 | ex | Elixir | lib/common.ex | mattvonrocketstein/rapidmind | 5d7873d14a2595c4285c32d45f647e92aeff7175 | [
"MIT"
] | 4 | 2016-09-08T08:01:24.000Z | 2016-10-04T23:39:52.000Z | lib/common.ex | mattvonrocketstein/rapidmind | 5d7873d14a2595c4285c32d45f647e92aeff7175 | [
"MIT"
] | null | null | null | lib/common.ex | mattvonrocketstein/rapidmind | 5d7873d14a2595c4285c32d45f647e92aeff7175 | [
"MIT"
] | null | null | null | defmodule Common do
def user_msg(msg) do
msg = IO.ANSI.blue() <> msg <> IO.ANSI.reset()
IO.puts(msg)
end
def error_msg(msg) do
msg = IO.ANSI.red() <> msg <> IO.ANSI.reset()
IO.puts(msg)
end
end
| 19.818182 | 50 | 0.59633 |
333fa4b5c0a918f43a187ddbec4bc2a2529801f8 | 6,478 | exs | Elixir | .credo.exs | fitronics/beanstix | 8e0da4596a83b71981adda8c5ee76ff76aaa877c | [
"MIT"
] | 1 | 2018-09-02T21:34:47.000Z | 2018-09-02T21:34:47.000Z | .credo.exs | fitronics/beanstix | 8e0da4596a83b71981adda8c5ee76ff76aaa877c | [
"MIT"
] | null | null | null | .credo.exs | fitronics/beanstix | 8e0da4596a83b71981adda8c5ee76ff76aaa877c | [
"MIT"
] | 1 | 2019-11-13T16:46:47.000Z | 2019-11-13T16:46:47.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.260606 | 88 | 0.619327 |
333fe65d700a80a51fd0a18e48fea70adf523140 | 659 | exs | Elixir | examples/dummy/mix.exs | scottming/qcloud_cos_sts | c6571578e0ccf4c63c5706ad6f5232d7245c1922 | [
"MIT"
] | null | null | null | examples/dummy/mix.exs | scottming/qcloud_cos_sts | c6571578e0ccf4c63c5706ad6f5232d7245c1922 | [
"MIT"
] | null | null | null | examples/dummy/mix.exs | scottming/qcloud_cos_sts | c6571578e0ccf4c63c5706ad6f5232d7245c1922 | [
"MIT"
] | null | null | null | defmodule Dummy.MixProject do
use Mix.Project
def project do
[
app: :dummy,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 21.258065 | 87 | 0.549317 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.