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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9765a509e3503bbc502a50aa36c64d97f2fe34f4 | 2,128 | ex | Elixir | tfl_demo/lib/tfl_demo_web/live/art_style_live.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | tfl_demo/lib/tfl_demo_web/live/art_style_live.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | tfl_demo/lib/tfl_demo_web/live/art_style_live.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | defmodule TflDemoWeb.ArtStyleLive do
use TflDemoWeb, :live_view
import TflDemo, only: [init_files: 2, path_static: 1, unique_key: 1]
@style "/images/art_style.jpg"
@target "/images/atr_src.jpg"
@applied "/images/art_res.jpg"
@impl true
def mount(_params, _session, socket) do
artistic = [{@style, ... | 29.555556 | 102 | 0.628289 |
9765b6c9550e6bc59df5fbc504c0b51989d25e2d | 1,673 | ex | Elixir | lib/yuri_template/label_expander.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 3 | 2020-05-03T15:30:21.000Z | 2021-05-09T01:35:41.000Z | lib/yuri_template/label_expander.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 1 | 2021-04-15T20:08:14.000Z | 2021-04-18T20:48:17.000Z | lib/yuri_template/label_expander.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | null | null | null | defmodule YuriTemplate.LabelExpander do
@moduledoc false
@behaviour YuriTemplate.Expander
@impl true
def expand(acc, _substitutes, []), do: acc
def expand(acc, substitutes, [{:prefix, var, length} | vars]) do
case Access.fetch(substitutes, var) do
:error ->
acc
{:ok, v} when is_bin... | 22.013158 | 66 | 0.451285 |
9765cf6c3dd42196e940caa5cd46cfa97ea24466 | 536 | exs | Elixir | mix.exs | Gabriel-Ayala/FriendsApp | 0795b87b7b9562f89ecb15794a05ecc8801c9614 | [
"MIT"
] | 1 | 2020-10-28T01:16:50.000Z | 2020-10-28T01:16:50.000Z | mix.exs | Gabriel-Ayala/FriendsApp | 0795b87b7b9562f89ecb15794a05ecc8801c9614 | [
"MIT"
] | null | null | null | mix.exs | Gabriel-Ayala/FriendsApp | 0795b87b7b9562f89ecb15794a05ecc8801c9614 | [
"MIT"
] | null | null | null | defmodule FriendsApp.MixProject do
use Mix.Project
def project do
[
app: :friends_app,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
... | 20.615385 | 72 | 0.546642 |
9765eb8bc1fb0e56e9156db999b6f21c52470eb4 | 32,614 | exs | Elixir | test/ecto/repo_test.exs | sashaafm/ecto | 8940a479e2fc2a7b9dba7cf13b742b9307688c00 | [
"Apache-2.0"
] | null | null | null | test/ecto/repo_test.exs | sashaafm/ecto | 8940a479e2fc2a7b9dba7cf13b742b9307688c00 | [
"Apache-2.0"
] | null | null | null | test/ecto/repo_test.exs | sashaafm/ecto | 8940a479e2fc2a7b9dba7cf13b742b9307688c00 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.RepoTest do
use ExUnit.Case, async: true
import Ecto.Query
import Ecto, only: [put_meta: 2]
require Ecto.TestRepo, as: TestRepo
defmodule MyParent do
use Ecto.Schema
schema "my_parent" do
field :n, :integer
end
end
defmodule MyEmbed do
use Ecto.Schema
embedded... | 35.144397 | 119 | 0.636475 |
9766096fc85de92cb5611d7b6c6694d71373a95f | 366 | ex | Elixir | platform/distribution.ex | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | 2 | 2019-07-15T01:41:08.000Z | 2020-03-19T17:56:22.000Z | platform/distribution.ex | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | null | null | null | platform/distribution.ex | ConnorRigby/megasquirt-dashboard | d840bcc5563314302ff3c99bbeeeace56519feea | [
"Apache-2.0"
] | 3 | 2020-06-26T12:32:25.000Z | 2021-04-16T08:59:21.000Z | defmodule SpeediViewPlatform.Distribution do
@moduledoc """
Starts erlang distrution
"""
def child_spec(args) do
%{
id: __MODULE__,
start: {__MODULE__, :start_distribution, args}
}
end
def start_distribution() do
_ = :os.cmd('epmd -daemon')
Node.start(String.to_atom("dash@#{:ine... | 22.875 | 78 | 0.653005 |
976612f10b987d981a81fdf28723c03ea25f70b2 | 4,003 | exs | Elixir | .credo.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | 5 | 2018-02-16T15:32:41.000Z | 2020-03-31T10:55:24.000Z | .credo.exs | youse-seguradora/linters | 57a6976bd9722063ec101696887a38064bef366a | [
"Apache-2.0"
] | 8 | 2017-07-12T04:27:31.000Z | 2017-12-26T06:30:47.000Z | .credo.exs | youse-seguradora/linters | 57a6976bd9722063ec101696887a38064bef366a | [
"Apache-2.0"
] | 2 | 2018-02-16T15:32:45.000Z | 2018-03-04T12:11:57.000Z | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "web/", "apps/", "test/"],
excluded: [~r"/_build/", ~r"/deps/"]
},
requires: [],
check_for_updates: false,
#
# You can customize the parameters of any check by adding a second element
... | 41.697917 | 81 | 0.664502 |
97664d4a5f4e804dce114a1c742bc2e05655c876 | 1,989 | exs | Elixir | test/metrics/workflow_collector_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/metrics/workflow_collector_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/metrics/workflow_collector_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule Prometheus.Metrics.WorkflowCollectorTest do
use ExUnit.Case
use Plug.Test
import ExUnit.CaptureIO
alias Ecto.Adapters.SQL.Sandbox
alias StepFlow.Artifacts
alias StepFlow.Metrics.WorkflowCollector
alias StepFlow.Workflows
doctest StepFlow
setup do
# Explicitly get a connection before ... | 27.625 | 90 | 0.531926 |
97668aa82893c31c7bfdc79787bdb9ade1604b12 | 2,277 | exs | Elixir | test/api_phoenix_jwt_crud/auth_test.exs | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | test/api_phoenix_jwt_crud/auth_test.exs | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | test/api_phoenix_jwt_crud/auth_test.exs | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | defmodule ApiPhoenixJwtCrud.AuthTest do
use ApiPhoenixJwtCrud.DataCase
alias ApiPhoenixJwtCrud.Auth
describe "users" do
alias ApiPhoenixJwtCrud.Auth.User
@valid_attrs %{email: "some email", hashed_password: "some hashed_password", username: "some username"}
@update_attrs %{email: "some updated emai... | 33 | 132 | 0.667545 |
9766cbe7e8b74d64e509b963fc5eaefed12e4e7e | 1,931 | exs | Elixir | config/dev.exs | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | config/dev.exs | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | 1 | 2021-05-11T15:49:58.000Z | 2021-05-11T15:49:58.000Z | config/dev.exs | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :cat_show, CatShowWeb.Endpoint,
http: [port: 4... | 32.728814 | 170 | 0.703263 |
9766ccbc905a7588bfbe5c136a80517ffc4ed72a | 88 | exs | Elixir | elixir/phoenix_demo/test/phoenix_demo_web/views/page_view_test.exs | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/test/phoenix_demo_web/views/page_view_test.exs | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/test/phoenix_demo_web/views/page_view_test.exs | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule PhoenixDemoWeb.PageViewTest do
use PhoenixDemoWeb.ConnCase, async: true
end
| 22 | 42 | 0.840909 |
9766d56de2f3d933d4c97a657f36495fd1bb58f4 | 1,111 | ex | Elixir | lib/horde/supervisor_telemetry_poller.ex | cdesch/horde | 6a47e90df5755cca51d6a80705b7d49be6bd4ea2 | [
"MIT"
] | 1,026 | 2018-05-15T13:46:58.000Z | 2022-03-24T02:59:54.000Z | lib/horde/supervisor_telemetry_poller.ex | cdesch/horde | 6a47e90df5755cca51d6a80705b7d49be6bd4ea2 | [
"MIT"
] | 191 | 2018-06-04T09:39:37.000Z | 2022-03-30T07:04:31.000Z | lib/horde/supervisor_telemetry_poller.ex | cdesch/horde | 6a47e90df5755cca51d6a80705b7d49be6bd4ea2 | [
"MIT"
] | 109 | 2018-06-07T07:18:26.000Z | 2022-03-21T21:37:21.000Z | defmodule Horde.DynamicSupervisorTelemetryPoller do
@moduledoc false
require Logger
def child_spec(supervisor_impl_name) do
%{
id: :"#{supervisor_impl_name}_telemetry_poller",
start: {
:telemetry_poller,
:start_link,
[
[
measurements: [
... | 24.688889 | 84 | 0.582358 |
9766df3867c5ac06962e3c74374bb00564bd7121 | 1,487 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.044444 | 93 | 0.734364 |
976700a63fde6ed434d9da94d2ae9de8fa0e0424 | 19,475 | ex | Elixir | clients/content/lib/google_api/content/v21/api/shippingsettings.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/shippingsettings.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/shippingsettings.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.88172 | 236 | 0.631938 |
976705ab331324282f9992c43697dbdf9d7d7ad2 | 501 | ex | Elixir | apps/rig_kafka/lib/rig_kafka.ex | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_kafka/lib/rig_kafka.ex | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_kafka/lib/rig_kafka.ex | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | defmodule RigKafka do
@moduledoc """
Kafka client for RIG.
Basically wrapping :brod, tailored to our needs.
"""
alias RigKafka.Client
alias RigKafka.Config
@spec start(Config.t(), Client.callback() | nil) :: {:ok, pid} | :ignore | {:error, any}
defdelegate start(config, callback \\ nil), to: RigKafka... | 29.470588 | 90 | 0.682635 |
976739479c1657825f411ff3975b5553f0206457 | 410 | ex | Elixir | lib/elixir_ravelry_web/models/spins.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 21 | 2017-08-27T13:59:18.000Z | 2020-10-07T03:35:22.000Z | lib/elixir_ravelry_web/models/spins.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 2 | 2017-09-02T15:49:47.000Z | 2017-09-02T17:43:29.000Z | lib/elixir_ravelry_web/models/spins.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 7 | 2017-09-02T15:11:49.000Z | 2019-08-20T19:00:48.000Z | defmodule ElixirRavelryWeb.Spins do
use ElixirRavelryWeb, :model
alias ElixirRavelryWeb.{User, Yarn}
schema "SPINS" do
belongs_to :user, User
belongs_to :yarn, Yarn
end
defimpl Poison.Encoder do
def encode(%{id: id, yarn_id: yarn_id, user_id: user_id}, options) do
Poison.Encoder.Map.encod... | 25.625 | 102 | 0.702439 |
976739d5ff8f0e478e4bba9a42eddb77ad107abc | 541 | exs | Elixir | test/support/repo_helper.exs | iver/roll | 633c97d42ee867a16a7c42497f40147cd57714c6 | [
"Apache-2.0"
] | null | null | null | test/support/repo_helper.exs | iver/roll | 633c97d42ee867a16a7c42497f40147cd57714c6 | [
"Apache-2.0"
] | null | null | null | test/support/repo_helper.exs | iver/roll | 633c97d42ee867a16a7c42497f40147cd57714c6 | [
"Apache-2.0"
] | null | null | null | defmodule Support.Repo do
def start_link(_) do
Process.put(:started, true)
Task.start_link(fn ->
Process.flag(:trap_exit, true)
receive do
{:EXIT, _, :normal} -> :ok
end
end)
end
def stop do
:ok
end
def __adapter__ do
EctoSQL.TestAdapter
end
def config do... | 18.033333 | 75 | 0.641405 |
9767431b002276f171152af3ad4b2489dcf1e1ab | 517 | exs | Elixir | priv/repo/migrations/20180918131444_add_schedules_table.exs | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | 2 | 2018-09-23T08:45:07.000Z | 2020-01-20T15:47:45.000Z | priv/repo/migrations/20180918131444_add_schedules_table.exs | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180918131444_add_schedules_table.exs | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | defmodule Kwerk.Repo.Migrations.AddPostsSchedulesTable do
use Ecto.Migration
def up do
create table(:schedules) do
add :post_id, references("posts")
add :mon, :boolean, default: false
add :tue, :boolean, default: false
add :wed, :boolean, default: false
add :thu, :boolean, default... | 24.619048 | 57 | 0.649903 |
976747fedc5c361d04762c7fcc5a97fb1360eade | 503 | ex | Elixir | lib/Image.Optimizer.ex | G-Corp/image_optimizer | 5ce06da35bba7016186d3f10500d8dcf599bec5e | [
"BSD-3-Clause"
] | null | null | null | lib/Image.Optimizer.ex | G-Corp/image_optimizer | 5ce06da35bba7016186d3f10500d8dcf599bec5e | [
"BSD-3-Clause"
] | null | null | null | lib/Image.Optimizer.ex | G-Corp/image_optimizer | 5ce06da35bba7016186d3f10500d8dcf599bec5e | [
"BSD-3-Clause"
] | null | null | null | # File: Image.Optimizer.ex
# This file was generated from image_optimizer.beam
# Using rebar3_elixir (https://github.com/G-Corp/rebar3_elixir)
# MODIFY IT AT YOUR OWN RISK AND ONLY IF YOU KNOW WHAT YOU ARE DOING!
defmodule Image.Optimizer do
@callback optimize(any, any, any) :: any
def unquote(:"optimize")(arg1) do... | 35.928571 | 69 | 0.713718 |
97676ec6dae7a86893ecb5bd5b5c9252fd9d3cfc | 1,583 | ex | Elixir | lib/real_world_web/components/home/home_page.ex | razuf/elixir-phoenix-surface-realworld | 282bd2966012611432affc026539b81dd8bc934f | [
"MIT"
] | 17 | 2020-09-21T23:24:38.000Z | 2021-10-22T01:11:27.000Z | lib/real_world_web/components/home/home_page.ex | razuf/elixir-phoenix-surface-realworld | 282bd2966012611432affc026539b81dd8bc934f | [
"MIT"
] | 1 | 2020-10-13T20:43:16.000Z | 2020-10-13T20:43:16.000Z | lib/real_world_web/components/home/home_page.ex | razuf/elixir-phoenix-surface-realworld | 282bd2966012611432affc026539b81dd8bc934f | [
"MIT"
] | 1 | 2021-11-02T19:18:40.000Z | 2021-11-02T19:18:40.000Z | defmodule RealWorldWeb.HomePage do
use Surface.Component
use RealWorldWeb, :surface_view_helpers
alias RealWorldWeb.HomeFeedToggle
alias RealWorldWeb.ListArticles
alias RealWorldWeb.PaginationArticles
alias Surface.Components.LivePatch
property(articles, :list, default: [])
property(tags, :list, defau... | 24.353846 | 105 | 0.547063 |
976782e23fb411b97b64bbaf00d7f03c3c74a87e | 1,939 | ex | Elixir | lib/lgtv_saver.ex | wisq/lgtv_saver | ac3fe82bac7b9f1ba4e17ad8cde05fbd5f9e01da | [
"Apache-2.0"
] | 1 | 2021-12-13T12:42:09.000Z | 2021-12-13T12:42:09.000Z | lib/lgtv_saver.ex | wisq/lgtv_saver | ac3fe82bac7b9f1ba4e17ad8cde05fbd5f9e01da | [
"Apache-2.0"
] | null | null | null | lib/lgtv_saver.ex | wisq/lgtv_saver | ac3fe82bac7b9f1ba4e17ad8cde05fbd5f9e01da | [
"Apache-2.0"
] | null | null | null | defmodule LgtvSaver do
use Application
require Logger
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
children =
if supervise?() do
Logger.info("LgtvSaver starting ...")
child_specs()
else
[]
... | 23.646341 | 81 | 0.590511 |
97678c16eb0156b26c838c0e25918e68f02b2590 | 1,437 | ex | Elixir | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/AtDotCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/AtDotCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/AtDotCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @One.Two[three].(four) do end
@One.Two[three].(four)(five) do end
@One.Two.(three) do end
@One.Two.(three)(four) do end
@One.two[three].(four) do end
@One.two[three].(four)(five) do end
@One.two(three)(four).(five) do end
@One.two(three)(four).(five)(six) do end
@One.two.(three) do end
@One.two.(three)(four) do end... | 15.619565 | 40 | 0.566458 |
9767b9d68fe9b9888848d174b5dddd00fb36e069 | 907 | ex | Elixir | apps/asf_bo_web/lib/asf_bo_web/live/document/creation_controller.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | apps/asf_bo_web/lib/asf_bo_web/live/document/creation_controller.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | apps/asf_bo_web/lib/asf_bo_web/live/document/creation_controller.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | defmodule AsfBOWeb.Live.Document.CreationController do
use AsfBOWeb, :live_view
alias Asf.Documents
alias Asf.Documents.Document
def mount(_params, _session, socket) do
{:ok,
assign(socket,
page_title: "New Document"
)}
end
def handle_params(_params, _url, socket) do
changeset = D... | 24.513514 | 95 | 0.635061 |
9767d6fa0525873206b607b15bf120b67c0a2df0 | 4,136 | exs | Elixir | test/slugger_test.exs | programisti/slugger | 249d60ab195f6d68c9a04c6f0d02a66aaea9827e | [
"MIT"
] | null | null | null | test/slugger_test.exs | programisti/slugger | 249d60ab195f6d68c9a04c6f0d02a66aaea9827e | [
"MIT"
] | null | null | null | test/slugger_test.exs | programisti/slugger | 249d60ab195f6d68c9a04c6f0d02a66aaea9827e | [
"MIT"
] | null | null | null | defmodule SluggerTest do
use ExUnit.Case
doctest Slugger
#--- slugify()
test "string keep case" do
assert Slugger.slugify("ABC") == "ABC"
end
test "removing space at beginning" do
assert Slugger.slugify(" \t \n ABC") == "ABC"
end
test "do not removes underscore" do
assert Slugger.slugify... | 30.411765 | 90 | 0.643375 |
9767e6b7d04f998504ac4636c38ea6645051a609 | 196 | ex | Elixir | lib/parser.ex | tera-insights/angularjs-template-migrate | 94ba52781417ed375b7b904fc8ca5481caef4fdb | [
"Apache-2.0"
] | null | null | null | lib/parser.ex | tera-insights/angularjs-template-migrate | 94ba52781417ed375b7b904fc8ca5481caef4fdb | [
"Apache-2.0"
] | null | null | null | lib/parser.ex | tera-insights/angularjs-template-migrate | 94ba52781417ed375b7b904fc8ca5481caef4fdb | [
"Apache-2.0"
] | null | null | null | defmodule Parser do
@moduledoc """
Documentation for Parser.
"""
@doc """
Hello world.
## Examples
iex> Parser.hello()
:world
"""
def hello do
:world
end
end
| 10.315789 | 27 | 0.556122 |
9767ecc4960d662e5ea6c8574011e77a928942fa | 1,030 | ex | Elixir | test/support/builders.ex | IvanRublev/TwitterWall | ca3f900dfaf64c5d59ac903f697da87e9fcc9914 | [
"MIT"
] | 1 | 2020-01-27T17:43:01.000Z | 2020-01-27T17:43:01.000Z | test/support/builders.ex | IvanRublev/TwitterWall | ca3f900dfaf64c5d59ac903f697da87e9fcc9914 | [
"MIT"
] | 6 | 2021-03-09T22:08:16.000Z | 2021-06-30T23:48:20.000Z | test/support/builders.ex | IvanRublev/TwitterWall | ca3f900dfaf64c5d59ac903f697da87e9fcc9914 | [
"MIT"
] | null | null | null | defmodule Builders do
@moduledoc false
import ExternalResource
alias TwitterWall.Core.Tweet
alias TwitterWall.Core.TweetAggregate
@liked_tweets_list decode_external_json("test/api_responses/favorites_list_success.json", keys: :atoms)
def build_twitter_api_tweet(fields \\ []) do
tweet_map = List.firs... | 19.433962 | 105 | 0.612621 |
97680ad275542e68aaf2a35e20871f525306eaa6 | 1,972 | ex | Elixir | lib/tirexs/mapping.ex | gitter-badger/tirexs | 0625f2e4090e3d06a9d5483f17ab5f0a5177e719 | [
"Apache-2.0"
] | null | null | null | lib/tirexs/mapping.ex | gitter-badger/tirexs | 0625f2e4090e3d06a9d5483f17ab5f0a5177e719 | [
"Apache-2.0"
] | null | null | null | lib/tirexs/mapping.ex | gitter-badger/tirexs | 0625f2e4090e3d06a9d5483f17ab5f0a5177e719 | [
"Apache-2.0"
] | null | null | null | defmodule Tirexs.Mapping do
@moduledoc false
use Tirexs.DSL.Logic
import Tirexs.ElasticSearch
def transpose(block) do
case block do
{:indexes, _, [params]} -> indexes(params[:do])
{:indexes, _, options} -> indexes(options)
{:index, _, [params]} -> indexes(params[:do])
{:index, ... | 25.947368 | 87 | 0.631339 |
97680aeabbbbd99ac0dbae22a796f1c29bc1251c | 1,145 | ex | Elixir | lib/koans/07_keyword_lists.ex | DylanAndrews/elixir-koans | 1f0b4738cc6a3078d3a621d605ee3553d050b564 | [
"MIT"
] | 1 | 2019-05-20T04:59:56.000Z | 2019-05-20T04:59:56.000Z | lib/koans/07_keyword_lists.ex | DylanAndrews/elixir-koans | 1f0b4738cc6a3078d3a621d605ee3553d050b564 | [
"MIT"
] | null | null | null | lib/koans/07_keyword_lists.ex | DylanAndrews/elixir-koans | 1f0b4738cc6a3078d3a621d605ee3553d050b564 | [
"MIT"
] | null | null | null | defmodule KeywordLists do
use Koans
@intro "KeywordLists"
koan "Like maps, keyword lists are key-value pairs" do
kw_list = [foo: "bar"]
assert kw_list[:foo] == ___
end
koan "Keys may be repeated, but only the first is accessed" do
kw_list = [foo: "bar", foo: "baz"]
assert kw_list[:foo] ==... | 23.854167 | 81 | 0.638428 |
9768192193bd7558943ff2b0511a71cb2056ecab | 1,758 | ex | Elixir | plugins/one_chat/lib/one_chat_web/admin/chat_general.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat_web/admin/chat_general.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat_web/admin/chat_general.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChatWeb.Admin.Page.ChatGeneral do
@doc """
FlexTab panel implementation for ChatGeneral Administration page.
"""
use OneAdmin.Page
alias InfinityOne.{Repo, Hooks}
alias OneChat.Settings.ChatGeneral
alias OneAdminWeb.View.Utils
@doc """
Callback to add the ChatGeneral page into the admin... | 24.760563 | 74 | 0.64562 |
976829e5f30d397a346738ed3d3a713466aca515 | 196 | exs | Elixir | priv/repo/migrations/20191224142721_add_likes_to_records.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | priv/repo/migrations/20191224142721_add_likes_to_records.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | priv/repo/migrations/20191224142721_add_likes_to_records.exs | spacexcorp/elixir-bank | b5cf0592598da469e3c2eb43befeb0a45592ad0a | [
"MIT"
] | null | null | null | defmodule ElixirBank.Repo.Migrations.AddLikesToRecords do
use Ecto.Migration
def change do
alter table(:records) do
add(:likes, :integer, null: false, default: 0)
end
end
end
| 19.6 | 57 | 0.709184 |
9768351b0b467e72cc611f58287d0be684a0b26a | 106 | ex | Elixir | lib/magnetissimo/repo.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | lib/magnetissimo/repo.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | lib/magnetissimo/repo.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | 1 | 2021-09-24T12:32:05.000Z | 2021-09-24T12:32:05.000Z | defmodule Magnetissimo.Repo do
use Ecto.Repo, otp_app: :magnetissimo
use Scrivener, page_size: 50
end
| 21.2 | 39 | 0.783019 |
976835b5def2345a96f8bdc586cbcd0d0e8c11b3 | 8,466 | ex | Elixir | lib/crawly/engine.ex | rootkc/crawly | 267945fb9b91094bb5b0a92b3235686c592b81b6 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine.ex | rootkc/crawly | 267945fb9b91094bb5b0a92b3235686c592b81b6 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine.ex | rootkc/crawly | 267945fb9b91094bb5b0a92b3235686c592b81b6 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Engine do
@moduledoc """
Crawly Engine - process responsible for starting and stopping spiders.
Stores all currently running spiders.
"""
require Logger
use GenServer
@type t :: %__MODULE__{
started_spiders: started_spiders(),
known_spiders: [Crawly.spider()]
... | 28.993151 | 226 | 0.640562 |
976858f1445a21fe34a029ae6c08abc5fdf88f80 | 2,183 | ex | Elixir | clients/container/lib/google_api/container/v1/model/server_config.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/server_config.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/server_config.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 36.383333 | 112 | 0.727897 |
9768c7415c25cf4adede902b9d6a289c9afe9c79 | 2,217 | ex | Elixir | lib/nosedrum/converters.ex | Bentheburrito/nosedrum | 944fd69a640473c4fb8fe3b3bdefc3522c5757a0 | [
"0BSD"
] | 25 | 2019-02-10T01:22:02.000Z | 2022-03-16T08:34:04.000Z | lib/nosedrum/converters.ex | Bentheburrito/nosedrum | 944fd69a640473c4fb8fe3b3bdefc3522c5757a0 | [
"0BSD"
] | 19 | 2019-04-11T19:02:18.000Z | 2022-02-18T18:32:13.000Z | lib/nosedrum/converters.ex | Bentheburrito/nosedrum | 944fd69a640473c4fb8fe3b3bdefc3522c5757a0 | [
"0BSD"
] | 6 | 2020-09-22T09:06:24.000Z | 2022-02-05T03:26:42.000Z | defmodule Nosedrum.Converters do
@moduledoc """
Conversion from command arguments to various types.
This module provides an interface to the individual converter modules.
Most converter functions related to Discord itself take a `guild_id`
which is used for loading the guild from the cache. If the guild coul... | 37.576271 | 92 | 0.691926 |
9768cdb482cd6f687253887f36c4b2d07308f66d | 971 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/64.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/64.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/64.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb conj SYM pnoun pn;
demonstrative noun noun cm pn;
adjective verb adverb cardinal pn;
noun cm noun verb pn;
verb verb_aux nst cm pn;
cm verb pnoun cm pn;
cm verb pnoun conj pn;
cm verb pnoun cm pn;
noun verb pn cm pn;
noun verb pn pnoun pn;
particle pn noun verb pn;
noun verb noun cm p... | 26.972222 | 44 | 0.754892 |
976927ccc729b159f459ef05337da3c26b19ed5c | 4,170 | ex | Elixir | apps/rig_inbound_gateway/lib/rig_inbound_gateway/api_proxy/handler/kinesis.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway/api_proxy/handler/kinesis.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig_inbound_gateway/lib/rig_inbound_gateway/api_proxy/handler/kinesis.ex | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | defmodule RigInboundGateway.ApiProxy.Handler.Kinesis do
@moduledoc """
Handles requests for Kinesis targets.
"""
use Rig.Config, [:kinesis_request_stream, :kinesis_request_region, :response_timeout]
alias ExAws
alias Plug.Conn
alias RigMetrics.ProxyMetrics
alias Rig.Connection.Codec
alias RigInbo... | 23.426966 | 91 | 0.619185 |
976930dd29f736c2b6562e7498faa7c0a63cc02c | 22,400 | exs | Elixir | test/wallaby/experimental/selenium/webdriver_client_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | null | null | null | test/wallaby/experimental/selenium/webdriver_client_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | null | null | null | test/wallaby/experimental/selenium/webdriver_client_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | null | null | null | defmodule Wallaby.Experimental.Selenium.WebdriverClientTest do
use Wallaby.HttpClientCase, async: true
alias Wallaby.Experimental.Selenium.WebdriverClient, as: Client
alias Wallaby.{Element, Query, Session}
describe "create_session/2" do
test "sends the correct request to the webdriver backend", %{bypass:... | 29.986613 | 111 | 0.588125 |
976932421f2f88f1ee425a5371fcec1b44b8e136 | 1,698 | ex | Elixir | apps/omg_utils/lib/omg_utils/paginator.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_utils/lib/omg_utils/paginator.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_utils/lib/omg_utils/paginator.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.294118 | 100 | 0.667256 |
97693eb08fcd114df1fbf86ef627499849de3b99 | 1,158 | ex | Elixir | web/channels/user_socket.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | defmodule Hone.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", Hone.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 authenticate... | 30.473684 | 83 | 0.699482 |
9769488f878957f68991f4f7b5568af25e0cb71f | 759 | ex | Elixir | lib/core/asset/schema.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/schema.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/schema.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Asset.Schema do
@moduledoc """
Common Schema attributes.
"""
@doc false
defmacro __using__(opts) do
quote do
use Ecto.Schema
import Ecto.Changeset
@behaviour FarmbotOS.Asset.Schema
@behaviour FarmbotOS.Asset.View
import FarmbotOS.Asset.View, only: [view... | 25.3 | 73 | 0.671937 |
976950c180a21e10e8965f2e5ff961931c68c607 | 8,826 | ex | Elixir | lib/astarte_flow/blocks/http_source.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 11 | 2020-01-30T17:44:35.000Z | 2022-01-13T19:17:21.000Z | lib/astarte_flow/blocks/http_source.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 100 | 2020-02-11T10:01:35.000Z | 2022-02-17T10:39:35.000Z | lib/astarte_flow/blocks/http_source.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 7 | 2020-01-30T11:33:20.000Z | 2021-05-03T09:48:41.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# 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 appl... | 30.645833 | 119 | 0.651031 |
97698c141a6d2dad3abec14023b1dc1381c14d5c | 1,190 | ex | Elixir | apps/artemis/lib/artemis/schemas/machine.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/schemas/machine.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/schemas/machine.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.Machine do
use Artemis.Schema
use Artemis.Schema.SQL
use Assoc.Schema, repo: Artemis.Repo
schema "machines" do
field :cpu_total, :integer
field :cpu_used, :integer
field :hostname, :string
field :name, :string
field :ram_total, :integer
field :ram_used, :integer
fi... | 18.307692 | 68 | 0.619328 |
97699af4e480214fe34cab192aeb07eae78bc446 | 699 | ex | Elixir | hls/lib/hls_web/gettext.ex | Papillon6814/hls_example | f113ecaadabe013a4a5b3a3166d16befb07123c5 | [
"MIT"
] | null | null | null | hls/lib/hls_web/gettext.ex | Papillon6814/hls_example | f113ecaadabe013a4a5b3a3166d16befb07123c5 | [
"MIT"
] | null | null | null | hls/lib/hls_web/gettext.ex | Papillon6814/hls_example | f113ecaadabe013a4a5b3a3166d16befb07123c5 | [
"MIT"
] | null | null | null | defmodule HlsWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import HlsWeb.Gettext
# Simple translation
gettext("Here is the strin... | 27.96 | 72 | 0.672389 |
97699e8c465b6b49ae1a7c204e22668541bcc077 | 266 | ex | Elixir | web/views/changeset_view.ex | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | web/views/changeset_view.ex | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | web/views/changeset_view.ex | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | defmodule IascSubastas.ChangesetView do
use IascSubastas.Web, :view
def render("error.json", %{changeset: changeset}) do
# When encoded, the changeset returns its errors
# as a JSON object. So we just pass it forward.
%{errors: changeset}
end
end
| 26.6 | 54 | 0.714286 |
9769abfcf4d56abfebb9b233311cfde38dee12be | 1,375 | ex | Elixir | lib/esi/api/route.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | lib/esi/api/route.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | lib/esi/api/route.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | defmodule ESI.API.Route do
@typedoc """
Options for [`Route.route/3`](#route/3).
- `:avoid` -- avoid solar system ID(s)
- `:connections` -- connected solar system pairs
- `:flag` (DEFAULT: `:shortest`) -- route security preference
"""
@type route_opts :: [route_opt]
@type route_opt ::
{:avoid... | 28.061224 | 95 | 0.616727 |
9769b1cf311df19b8587c30fa00e273ea8c044e0 | 759 | ex | Elixir | lib/rockelivery_web/plugs/uuid_checker.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery_web/plugs/uuid_checker.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery_web/plugs/uuid_checker.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.Plugs.UUIDChecker do
import Plug.Conn
alias Ecto.UUID
alias Plug.Conn
# coveralls-ignore-start
def init(options), do: options
# coveralls-ignore-stop
def call(%Conn{params: %{"user_id" => id}} = conn, _opts) do
case UUID.cast(id) do
:error -> render_error(conn)
... | 21.083333 | 62 | 0.625823 |
9769b34073d0ff7f6df2fae0d2ca7073e8c724b4 | 10,655 | ex | Elixir | clients/content/lib/google_api/content/v21/api/csses.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/csses.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/api/csses.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.732456 | 264 | 0.62825 |
9769b80c408b12fde23f8329d1072b6565dd0fe2 | 23,062 | ex | Elixir | lib/broadway_rabbitmq/producer.ex | ono/broadway_rabbitmq | 7cf5493a037bcc667326907fb902d9bc30a86aab | [
"Apache-2.0"
] | null | null | null | lib/broadway_rabbitmq/producer.ex | ono/broadway_rabbitmq | 7cf5493a037bcc667326907fb902d9bc30a86aab | [
"Apache-2.0"
] | null | null | null | lib/broadway_rabbitmq/producer.ex | ono/broadway_rabbitmq | 7cf5493a037bcc667326907fb902d9bc30a86aab | [
"Apache-2.0"
] | null | null | null | defmodule BroadwayRabbitMQ.Producer do
@valid_ack_values [:ack, :reject, :reject_and_requeue, :reject_and_requeue_once]
@opts_schema [
# Internal.
client: [type: :atom, doc: false],
# Handled by Broadway.
broadway: [type: :any, doc: false],
buffer_size: [
type: :non_neg_integer,
doc... | 35.425499 | 103 | 0.673099 |
9769f27895bc3aa681dcea35af6646ac35df08b5 | 2,984 | ex | Elixir | lib/preview/bucket.ex | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 26 | 2021-01-25T20:30:46.000Z | 2021-12-16T08:42:35.000Z | lib/preview/bucket.ex | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 17 | 2021-01-25T18:45:43.000Z | 2021-07-23T15:15:41.000Z | lib/preview/bucket.ex | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 4 | 2021-01-25T21:32:28.000Z | 2021-07-07T12:36:19.000Z | defmodule Preview.Bucket do
def get_tarball(package, version) do
bucket = Application.get_env(:preview, :repo_bucket)
key = "tarballs/#{package}-#{version}.tar"
case Preview.Storage.get(bucket, key) do
nil -> :error
blob -> {:ok, blob}
end
end
def put_files(package, version, files) d... | 30.141414 | 87 | 0.675603 |
976a6724439da4bdbaa7782139e7213495102e93 | 578 | exs | Elixir | magic_logo/test/views/error_view_test.exs | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | magic_logo/test/views/error_view_test.exs | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | magic_logo/test/views/error_view_test.exs | jshahs/magiclogo | 5b18cb4efff04c3547d167bab194d2806ec20d8a | [
"MIT"
] | null | null | null | defmodule MagicLogo.ErrorViewTest do
use MagicLogo.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(MagicLogo.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.htm... | 26.272727 | 67 | 0.681661 |
976a6a80024e121cebf4f3d0e1e8f1a13002f4b8 | 1,608 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/deobfuscation_files_upload_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/deobfuscation_files_upload_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/deobfuscation_files_upload_response.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... | 34.212766 | 114 | 0.768035 |
976a8eb6c350e60228897dd2803c4f8ad83582a4 | 2,185 | exs | Elixir | mix.exs | alexiob/spellbook | f612a300f4cd1707cbaa582464d3aad51fc09817 | [
"MIT"
] | 5 | 2016-09-22T14:56:54.000Z | 2021-01-05T02:45:38.000Z | mix.exs | alexiob/spellbook | f612a300f4cd1707cbaa582464d3aad51fc09817 | [
"MIT"
] | 4 | 2018-05-11T19:08:48.000Z | 2019-09-02T18:32:58.000Z | mix.exs | alexiob/spellbook | f612a300f4cd1707cbaa582464d3aad51fc09817 | [
"MIT"
] | 1 | 2018-05-11T18:48:35.000Z | 2018-05-11T18:48:35.000Z | defmodule Spellbook.Mixfile do
use Mix.Project
def project do
[
app: :spellbook,
version: "2.0.3",
name: "Spellbook",
source_url: "https://github.com/alexiob/spellbook",
homepage_url: "https://github.com/alexiob/spellbook",
elixir: "~> 1.4",
build_embedded: Mix.env() =... | 23.75 | 89 | 0.540503 |
976ac80fcd3d44c1d0e6d2b9540435a6ffd4846e | 2,249 | exs | Elixir | strain/strain_test.exs | millimoose/my-exercism-elixir | 6262dbc64ca4b452606cda823cdc6efe0f4dff91 | [
"Unlicense"
] | null | null | null | strain/strain_test.exs | millimoose/my-exercism-elixir | 6262dbc64ca4b452606cda823cdc6efe0f4dff91 | [
"Unlicense"
] | null | null | null | strain/strain_test.exs | millimoose/my-exercism-elixir | 6262dbc64ca4b452606cda823cdc6efe0f4dff91 | [
"Unlicense"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("strain.exs", __DIR__)
end
ExUnit.start()
# ExUnit.configure(trace: true, exclude: :pending)
defmodule StrainTest do
use ExUnit.Case
defp is_odd?(n), do: rem(n, 2) == 1
defp is_even?(n), do: rem(n, 2) == 0
defp noop(_), do: true
# @tag :pend... | 22.04902 | 93 | 0.535349 |
976ac85f420fc3a48d640e99c884c3b8e31f8c67 | 2,341 | exs | Elixir | mix.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | mix.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | mix.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule Jarvis.MixProject do
use Mix.Project
def project do
[
app: :jarvis,
version: "4.2.3",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.22093 | 79 | 0.548484 |
976ad3b938b1fe1c00cc5d3455510ed709565f7d | 436 | exs | Elixir | test/straw_hat/error/error_list_test.exs | straw-hat-llc/straw_hat | fc870b5d9306d0e95f12670fa468c7cd5df51345 | [
"MIT"
] | 2 | 2017-09-26T13:26:51.000Z | 2018-11-04T16:36:41.000Z | test/straw_hat/error/error_list_test.exs | straw-hat-llc/straw_hat | fc870b5d9306d0e95f12670fa468c7cd5df51345 | [
"MIT"
] | 38 | 2017-09-26T13:05:51.000Z | 2019-11-01T10:49:41.000Z | test/straw_hat/error/error_list_test.exs | straw-hat-llc/straw_hat | fc870b5d9306d0e95f12670fa468c7cd5df51345 | [
"MIT"
] | 1 | 2018-03-15T22:04:06.000Z | 2018-03-15T22:04:06.000Z | defmodule StrawHat.Error.ErrorListTest do
use ExUnit.Case, async: true
doctest StrawHat.Error.ErrorList
describe "enumerable protocol" do
test "count/1" do
error_list = %StrawHat.Error.ErrorList{errors: [1, 2, 3]}
assert Enum.count(error_list) == 3
end
test "member?/2" do
error_lis... | 25.647059 | 63 | 0.669725 |
976b01a933657d57d27cd08f5fd066da0f45e321 | 2,934 | ex | Elixir | lib/elixir/lib/range.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/range.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule Range do
@moduledoc """
Defines a range.
A range represents a discrete number of values where
the first and last values are integers.
Ranges can be either increasing (first <= last) or
decreasing (first > last). Ranges are also always
inclusive.
A Range is represented internally as a struct... | 22.396947 | 79 | 0.601568 |
976b10988ff7dd1bc07e41997989361151ec7ec4 | 5,541 | ex | Elixir | lib/ex_aws/request.ex | philippneugebauer/ex_aws | eeec6645650421c7e5c5431dbb1cfc05f394748f | [
"MIT"
] | null | null | null | lib/ex_aws/request.ex | philippneugebauer/ex_aws | eeec6645650421c7e5c5431dbb1cfc05f394748f | [
"MIT"
] | 11 | 2021-08-02T18:13:25.000Z | 2022-03-23T20:53:41.000Z | lib/ex_aws/request.ex | philippneugebauer/ex_aws | eeec6645650421c7e5c5431dbb1cfc05f394748f | [
"MIT"
] | null | null | null | defmodule ExAws.Request do
@moduledoc """
Makes requests to AWS.
"""
require Logger
@type http_status :: pos_integer
@type success_content :: %{body: binary, headers: [{binary, binary}]}
@type success_t :: {:ok, success_content}
@type error_t :: {:error, {:http_error, http_status, binary}}
@type res... | 29.951351 | 97 | 0.582747 |
976b17189599e6dcc64b4701405c4ea8e2b50987 | 2,353 | ex | Elixir | apps/core/lib/core/schema/incident_history.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/schema/incident_history.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/schema/incident_history.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Schema.IncidentHistory do
use Piazza.Ecto.Schema
alias Core.Schema.{User, Incident}
defenum Action, edit: 0, create: 1, status: 2, severity: 3, accept: 4, complete: 5
defmodule Change do
use Piazza.Ecto.Schema
embedded_schema do
field :key, :string
field :prev, :string
... | 27.682353 | 110 | 0.635784 |
976b3dbfd8e0f766c70c2f37147a8b4c68f666ef | 659 | ex | Elixir | web/models/comment.ex | sebbean/phoenix-trello | c698ef9bdd29553aff941cc1f31778ee09c974d6 | [
"MIT"
] | 1 | 2016-05-25T00:39:55.000Z | 2016-05-25T00:39:55.000Z | web/models/comment.ex | sebbean/phoenix-trello | c698ef9bdd29553aff941cc1f31778ee09c974d6 | [
"MIT"
] | null | null | null | web/models/comment.ex | sebbean/phoenix-trello | c698ef9bdd29553aff941cc1f31778ee09c974d6 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.Comment do
use PhoenixTrello.Web, :model
@derive {Poison.Encoder, only: [:id, :user, :card_id, :text, :inserted_at]}
schema "comments" do
field :text, :string
belongs_to :user, PhoenixTrello.User
belongs_to :card, PhoenixTrello.Card
timestamps
end
@required_fields ... | 22.724138 | 77 | 0.699545 |
976b5deb20aa828a2f8990db47077615e3443a56 | 809 | ex | Elixir | web/channels/user_socket.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | defmodule ExTrello.UserSocket do
use Phoenix.Socket
alias ExTrello.{GuardianSerializer}
# Channels
channel "boards:*", ExTrello.BoardChannel
channel "users:*", ExTrello.UserChannel
# Transports
transport :websocket, Phoenix.Transports.WebSocket
transport :longpoll, Phoenix.Transports.LongPoll
def ... | 25.28125 | 70 | 0.647713 |
976b5fd80534f396274c8a386d8d3906351edea1 | 1,367 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1beta1/model/google_cloud_videointelligence_v1_label_location.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1beta1/model/google_cloud_videointelligence_v1_label_location.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1beta1/model/google_cloud_videointelligence_v1_label_location.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.341463 | 135 | 0.769568 |
976b72644a29d582214b65c1e9c19641751f3cd9 | 22,287 | ex | Elixir | lib/phoenix/router.ex | JWKyle/phoenix-test | 87066b7335764f7c3c4d098fdc85bdad2ab2ef54 | [
"MIT"
] | null | null | null | lib/phoenix/router.ex | JWKyle/phoenix-test | 87066b7335764f7c3c4d098fdc85bdad2ab2ef54 | [
"MIT"
] | null | null | null | lib/phoenix/router.ex | JWKyle/phoenix-test | 87066b7335764f7c3c4d098fdc85bdad2ab2ef54 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router do
defmodule NoRouteError do
@moduledoc """
Exception raised when no route is found.
"""
defexception plug_status: 404, message: "no route found", conn: nil, router: nil
def exception(opts) do
conn = Keyword.fetch!(opts, :conn)
router = Keyword.fetch!(opts, ... | 30.158322 | 129 | 0.638489 |
976bd333babe60b3cd3755de7127242387aa734e | 166 | exs | Elixir | apps/core/priv/repo/migrations/20181106160111_add_id_to_dictionaries.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/repo/migrations/20181106160111_add_id_to_dictionaries.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/repo/migrations/20181106160111_add_id_to_dictionaries.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Repo.Migrations.AddIdToDictionaries do
use Ecto.Migration
def change do
alter table(:dictionaries) do
add(:id, :uuid)
end
end
end
| 16.6 | 53 | 0.704819 |
976bd534a10f172976285b6b3f8f98d3fb6c8723 | 3,687 | ex | Elixir | lib/infinity_one/coherence/schemas.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | lib/infinity_one/coherence/schemas.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | lib/infinity_one/coherence/schemas.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule InfinityOne.Coherence.Schemas do
use Coherence.Config
import Ecto.Query
@user_schema Config.user_schema
@repo Config.repo
def list_user do
@repo.all @user_schema
end
def list_by_user(opts) do
@repo.all query_by(@user_schema, opts)
end
def get_by_user(opts) do
@repo.g... | 22.210843 | 96 | 0.665039 |
976c03f8526895c0c8564b242b6a5faad8ea7082 | 2,318 | exs | Elixir | test/controller/reset_password_controller_test.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | null | null | null | test/controller/reset_password_controller_test.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | null | null | null | test/controller/reset_password_controller_test.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | null | null | null | defmodule ResetPasswordControllerTest do
use Sentinel.Case
use Plug.Test
import RouterHelper
alias Sentinel.TestRouter
alias Sentinel.Registrator
alias Sentinel.PasswordResetter
import Sentinel.Util
alias Sentinel.UserHelper
@email "user@example.com"
@headers [{"content-type", "application/json"}]
... | 35.661538 | 100 | 0.661346 |
976c0c108d3d8b39c99c67fd671609967acd1fba | 911 | exs | Elixir | config/config.exs | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | config/config.exs | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | config/config.exs | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"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
# By default, the umbrella project as well as each child
# application will require this configuration file, as
# configuration and dependencies are shared in an umbrella
# project. ... | 35.038462 | 68 | 0.742042 |
976c2f935d9afe675e76733d7b573188152ee1e0 | 2,211 | ex | Elixir | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_subscriber_event.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_subscriber_event.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_subscriber_event.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.2 | 188 | 0.764812 |
976c3e7a784fbb7df4513ae975dc9c27fec82a2b | 306 | exs | Elixir | priv/repo/migrations/20151019020854_create_comments.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20151019020854_create_comments.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20151019020854_create_comments.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Repo.Migrations.CreateComments do
use Ecto.Migration
def change do
create table(:comments, primary_key: false) do
add :id, :uuid, primary_key: true
add :text, :text
add :translation_id, references(:translations, type: :uuid)
timestamps
end
end
end
| 20.4 | 65 | 0.686275 |
976c4b384a28931319c55fe27629b5c77b43dab5 | 1,703 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/detected_language.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/detected_language.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/detected_language.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... | 32.75 | 126 | 0.719906 |
976c4d0e052374e3b5dcff1ddfc260bcede5444d | 6,664 | ex | Elixir | lib/eex.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | 1 | 2015-10-25T11:30:13.000Z | 2015-10-25T11:30:13.000Z | lib/eex.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | lib/eex.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | % # EEx
%
% EEx provides an easy but powerful template for Elixir similar to Ruby's ERb.
%
% ## Examples
%
% template = EEx.string ~~EOF
% The value of x is: <%= x %>
% ~~
% template.render('x: 42) %=> "\n The value of x is: 42\n"
%
% ## Allowed tags
%
% <% Elixir code -- inline with output %>
% ... | 31.286385 | 111 | 0.647059 |
976c5453c6bce1f115ae154bd7293dd600b8a77a | 479 | exs | Elixir | mix.exs | mazz-seven/ssh_keygen | 771820112acfc87230429e6617b0a0221fb1b821 | [
"MIT"
] | null | null | null | mix.exs | mazz-seven/ssh_keygen | 771820112acfc87230429e6617b0a0221fb1b821 | [
"MIT"
] | null | null | null | mix.exs | mazz-seven/ssh_keygen | 771820112acfc87230429e6617b0a0221fb1b821 | [
"MIT"
] | null | null | null | defmodule SSHKeygen.MixProject do
use Mix.Project
def project do
[
app: :ssh_keygen,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ext... | 17.107143 | 59 | 0.574113 |
976c62ddb507f37b2a2ad3cc8bbacb336e75bbcd | 14,594 | exs | Elixir | test/new_relic/plug/repo_test.exs | deepblue/newrelic.ex | 8bfc8a25d29c32a3d30b88536db220897b74a410 | [
"MIT"
] | 1 | 2019-06-13T17:28:35.000Z | 2019-06-13T17:28:35.000Z | test/new_relic/plug/repo_test.exs | deepblue/newrelic.ex | 8bfc8a25d29c32a3d30b88536db220897b74a410 | [
"MIT"
] | null | null | null | test/new_relic/plug/repo_test.exs | deepblue/newrelic.ex | 8bfc8a25d29c32a3d30b88536db220897b74a410 | [
"MIT"
] | 1 | 2019-07-26T05:05:51.000Z | 2019-07-26T05:05:51.000Z | defmodule NewRelic.Plug.RepoTest do
use ExUnit.Case, async: false
defmodule FakeRepo do
@behaviour Ecto.Repo
:rand.seed(:exs1024, :os.timestamp)
@sleep_ms :rand.uniform(20)
def config do
end
def start_link(_opts \\ []) do
end
def stop(_pid, _timeout \\ 5000) do
end
def ... | 30.78903 | 121 | 0.657256 |
976c6484b60a315f9f6dd2e59011f709389820c1 | 1,722 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_serving_restrictions_disapproval_reasons.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_serving_restrictions_disapproval_reasons.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_serving_restrictions_disapproval_reasons.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.309091 | 115 | 0.735192 |
976c9ea5da214df154fb0f24342b0de47bd4109c | 2,020 | ex | Elixir | lib/membrane_element_shout/sink_consumer.ex | membraneframework/membrane-element-shout | e546725ec65a9726c9503ebd23c01581e8b9388b | [
"Apache-2.0"
] | null | null | null | lib/membrane_element_shout/sink_consumer.ex | membraneframework/membrane-element-shout | e546725ec65a9726c9503ebd23c01581e8b9388b | [
"Apache-2.0"
] | 1 | 2019-09-18T13:11:17.000Z | 2019-10-23T02:29:01.000Z | lib/membrane_element_shout/sink_consumer.ex | membraneframework/membrane-element-shout | e546725ec65a9726c9503ebd23c01581e8b9388b | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.Shout.Sink.Consumer do
@moduledoc """
This module is a wrapper over native Shout consumer taking care of proper
resource management.
"""
use GenServer
alias Membrane.Element.Shout.Sink
defmodule Native do
@moduledoc false
use Unifex.Loader, nif: :sink
end
@type t ... | 25.897436 | 92 | 0.656436 |
976ca043da6d8a284b1a7184cfe32158dac1380a | 3,023 | exs | Elixir | mix.exs | alexiob/flashfeed-elixir | 72e83c47f556072d26f4a3f195026c2e5b4cd442 | [
"MIT"
] | 4 | 2020-02-27T14:29:20.000Z | 2021-04-03T19:08:50.000Z | mix.exs | alexiob/flashfeed-elixir | 72e83c47f556072d26f4a3f195026c2e5b4cd442 | [
"MIT"
] | 6 | 2020-02-17T21:35:04.000Z | 2021-09-02T06:46:46.000Z | mix.exs | alexiob/flashfeed-elixir | 72e83c47f556072d26f4a3f195026c2e5b4cd442 | [
"MIT"
] | null | null | null | defmodule Flashfeed.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :flashfeed,
version: "0.6.2",
elixir: "~> 1.10.2",
description: description(),
dialyzer: dialyzer(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
compilers:... | 27.481818 | 79 | 0.523652 |
976d057f3e0b0c1ed19acb83f89ecb4515412312 | 1,252 | ex | Elixir | lib/forge_sdk/rpc/tx/builder.ex | ArcBlock/forge-elixir-sdk | 61ff656a59116d3da18055d54655e8eb5ca15f63 | [
"Apache-2.0"
] | 21 | 2019-05-08T01:25:42.000Z | 2022-02-08T02:30:18.000Z | lib/forge_sdk/rpc/tx/builder.ex | ArcBlock/forge-elixir-sdk | 61ff656a59116d3da18055d54655e8eb5ca15f63 | [
"Apache-2.0"
] | 6 | 2019-05-27T23:07:00.000Z | 2020-03-10T04:33:10.000Z | lib/forge_sdk/rpc/tx/builder.ex | ArcBlock/forge-elixir-sdk | 61ff656a59116d3da18055d54655e8eb5ca15f63 | [
"Apache-2.0"
] | 2 | 2019-07-21T18:12:47.000Z | 2021-07-31T21:18:38.000Z | defmodule ForgeSdk.Tx.Builder do
@moduledoc """
Macro for building Tx RPC easily
"""
alias ForgeSdk.Tx.Builder.Helper
defmacro tx(type, options \\ []) do
build(type, options)
end
defp build(type, options) do
quote bind_quoted: [
type: type,
options: options
] do... | 26.638298 | 72 | 0.529553 |
976d1eddb8c3e45a586ffb89f51953aa1d120dc1 | 1,766 | ex | Elixir | lib/pub_sub_example/setup_task.ex | kevindwells/broadway_cloud_pub_sub_example | 65109ac6f710527ee7ddf8e924f0f1c9c517abc3 | [
"Apache-2.0"
] | 2 | 2020-11-16T20:41:05.000Z | 2021-02-24T14:09:53.000Z | lib/pub_sub_example/setup_task.ex | kevindwells/broadway_cloud_pub_sub_example | 65109ac6f710527ee7ddf8e924f0f1c9c517abc3 | [
"Apache-2.0"
] | null | null | null | lib/pub_sub_example/setup_task.ex | kevindwells/broadway_cloud_pub_sub_example | 65109ac6f710527ee7ddf8e924f0f1c9c517abc3 | [
"Apache-2.0"
] | null | null | null | defmodule PubSubExample.SetupTask do
@moduledoc """
Conveniences for working with the Cloud Pub/Sub emulator.
"""
use Task, restart: :temporary
alias PubSubExample.Client
require Logger
def start_link(_) do
opts = PubSubExample.get_env(__MODULE__)
Task.start_link(__MODULE__, :setup, [opts])
e... | 26.358209 | 89 | 0.651189 |
976d20467418e1ac38d1f587f60833dd61dcd44a | 6,785 | ex | Elixir | lib/mix/tasks/hex.outdated.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.outdated.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:19:59.000Z | 2021-06-25T15:19:59.000Z | lib/mix/tasks/hex.outdated.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.Outdated do
use Mix.Task
alias Hex.Registry.Server, as: Registry
@shortdoc "Shows outdated Hex deps for the current project"
@moduledoc """
Shows all Hex dependencies that have newer versions in the registry.
By default, it only shows top-level packages explicitly listed in the
... | 27.693878 | 96 | 0.616949 |
976d27acb84ca4fe36fd955ab18b474ca4f23486 | 2,216 | ex | Elixir | lib/mix/tasks/phx.digest.clean.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | lib/mix/tasks/phx.digest.clean.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | lib/mix/tasks/phx.digest.clean.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule Mix.Tasks.Phx.Digest.Clean do
use Mix.Task
@default_output_path "priv/static"
@default_age 3600
@default_keep 2
@shortdoc "Removes old versions of static assets."
@recursive true
@moduledoc """
Removes old versions of compiled assets.
By default, it will keep the latest version and
2 pr... | 33.074627 | 86 | 0.657491 |
976d445be2c1a17194bb1f7e8a32e55e34829e46 | 1,114 | ex | Elixir | lib/peepchat/endpoint.ex | nihonjinrxs/peep-stack-tutorial-app | 8c10b2b589d645ba5a3e31f86754828579e139c9 | [
"MIT"
] | null | null | null | lib/peepchat/endpoint.ex | nihonjinrxs/peep-stack-tutorial-app | 8c10b2b589d645ba5a3e31f86754828579e139c9 | [
"MIT"
] | null | null | null | lib/peepchat/endpoint.ex | nihonjinrxs/peep-stack-tutorial-app | 8c10b2b589d645ba5a3e31f86754828579e139c9 | [
"MIT"
] | null | null | null | defmodule Peepchat.Endpoint do
use Phoenix.Endpoint, otp_app: :peepchat
socket "/socket", Peepchat.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static... | 25.906977 | 65 | 0.709156 |
976d4a8011aae2af386d535f6e811eadfe12ecb5 | 934 | ex | Elixir | apps/ch1/lib/listing1_1.ex | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | apps/ch1/lib/listing1_1.ex | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | apps/ch1/lib/listing1_1.ex | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | defmodule Listing1_1 do
defmodule Account do
@moduledoc """
Modules can define structs. Structs are immutable
We don't have inheritance, but we can use composition.
Here we compose the account into the specalised accounts
References:
[A sort of inheritance for struct?... | 30.129032 | 109 | 0.634904 |
976d4b4affb8f3b102e860ec6076d72dc5701b71 | 816 | ex | Elixir | lib/stampscale.ex | byjpr/Shopify-Plug | 683ae6670d72acf42a7fc411067bbe20aaae4b81 | [
"MIT"
] | 1 | 2019-03-07T11:30:54.000Z | 2019-03-07T11:30:54.000Z | lib/stampscale.ex | byjpr/Shopify-Plug | 683ae6670d72acf42a7fc411067bbe20aaae4b81 | [
"MIT"
] | 1 | 2021-06-25T15:15:57.000Z | 2021-06-25T15:15:57.000Z | lib/stampscale.ex | byjord/Shopify-Plug | 683ae6670d72acf42a7fc411067bbe20aaae4b81 | [
"MIT"
] | null | null | null | defmodule ShopifyPlug.StampScale do
@behaviour Plug
def init(), do: []
def init(default), do: default
def call(diff, %Plug.Conn{} = conn) when diff < 30 do
conn
|> Plug.Conn.put_req_header("x-spap-stampscale", "pass")
end
def call(diff, %Plug.Conn{} = conn) when diff > 30 do
ShopifyPlug.Error... | 25.5 | 93 | 0.692402 |
976d5aee90d207ac7a33ff54751fd368ab8d71c2 | 144 | ex | Elixir | lib/hacker_news/email_composer.ex | vasuadari/hacker_news_alert | 9d256714bfd940ed083681e0e2b6d2ea1fa3f98e | [
"MIT"
] | 3 | 2020-03-30T08:40:46.000Z | 2020-04-14T05:53:13.000Z | lib/hacker_news/email_composer.ex | vasuadari/hacker_news_alert | 9d256714bfd940ed083681e0e2b6d2ea1fa3f98e | [
"MIT"
] | 3 | 2020-03-28T21:31:07.000Z | 2020-03-30T09:10:36.000Z | lib/hacker_news/email_composer.ex | vasuadari/hacker_news_alert | 9d256714bfd940ed083681e0e2b6d2ea1fa3f98e | [
"MIT"
] | 3 | 2020-03-30T08:48:09.000Z | 2020-04-24T14:35:09.000Z | defmodule HackerNews.EmailComposer do
def compose(sender, recipient, map, composer) do
composer.compose(sender, recipient, map)
end
end
| 24 | 50 | 0.770833 |
976dce8b30e468b1613e9a1219df35a5f7704f1e | 35,667 | ex | Elixir | lib/aws/generated/codeartifact.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/codeartifact.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/codeartifact.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Codeartifact do
@moduledoc """
AWS CodeArtifact is a fully managed artifact repository compatible with
language-native package managers and build tools such as npm, Apache Maven, and
pip.
... | 33.807583 | 190 | 0.665601 |
976df51feab0bdb0d3477301488b95975dddf3f1 | 7,390 | ex | Elixir | lib/shippex.ex | whitepaperclip/shippex | f7983cac65da495bd7b335e2dfffe2d959269d70 | [
"MIT"
] | 11 | 2017-01-16T10:53:56.000Z | 2021-06-05T14:51:17.000Z | lib/shippex.ex | whitepaperclip/shippex | f7983cac65da495bd7b335e2dfffe2d959269d70 | [
"MIT"
] | 4 | 2017-06-17T16:03:56.000Z | 2020-12-31T18:04:21.000Z | lib/shippex.ex | whitepaperclip/shippex | f7983cac65da495bd7b335e2dfffe2d959269d70 | [
"MIT"
] | 5 | 2018-01-30T21:57:56.000Z | 2021-01-31T02:09:29.000Z | defmodule Shippex do
@moduledoc """
Module documentation for `Shippex`.
"""
alias Shippex.{Address, Carrier, Config, Rate, Service, Shipment, Transaction}
@type response() :: %{code: String.t(), message: String.t()}
@doc """
Fetches rates for a given `shipment`. Possible options:
* `carriers` - Fe... | 30.791667 | 90 | 0.626928 |
976e050661533ae1d03cfbab7b875f59464cf314 | 2,937 | ex | Elixir | lib/web/router/reverse.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | lib/web/router/reverse.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | lib/web/router/reverse.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Router.Reverse do
@moduledoc """
Internal helper functions for macros in `Antikythera.Router`, to generate/implement reverse routing functions.
"""
@typep placeholder_filler :: String.t() | [String.t()]
defun de... | 34.964286 | 112 | 0.604358 |
976e37ed2033b12bfe655bc229d9e0f246b1c18d | 432 | ex | Elixir | lib/1000/practice_1033.ex | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | lib/1000/practice_1033.ex | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | lib/1000/practice_1033.ex | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | defmodule Practice1033 do
@moduledoc """
## Examples
iex> Practice1033.solve(2, 2)
1.0
iex> Practice1033.solve(4, 3)
2.0
"""
def solve(n, k) when 1 <= n and n <= 100_000
and 1 <= k and k <= 100_000
do
0..n
|> Enum.reduce({0, 0}, fn ni, {sum, count} ->
ki = 0..k |> Enum.cou... | 18 | 49 | 0.5 |
976e4749ec832448489ad86beb741672ee5bbe5e | 282 | ex | Elixir | frameworks/Elixir/phoenix/web/models/fortune.ex | greg-hellings/FrameworkBenchmarks | 6594d32db618c6ca65e0106c5adf2671f7b63654 | [
"BSD-3-Clause"
] | null | null | null | frameworks/Elixir/phoenix/web/models/fortune.ex | greg-hellings/FrameworkBenchmarks | 6594d32db618c6ca65e0106c5adf2671f7b63654 | [
"BSD-3-Clause"
] | null | null | null | frameworks/Elixir/phoenix/web/models/fortune.ex | greg-hellings/FrameworkBenchmarks | 6594d32db618c6ca65e0106c5adf2671f7b63654 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T19:51:39.000Z | 2020-07-01T19:51:39.000Z | defmodule Hello.Fortune do
use Hello.Web, :model
schema "fortune" do
field :message, :string
end
@required_fields ~w(message)
@optional_fields ~w()
def changeset(model, params \\ nil) do
model
|> cast(params, @required_fields, @optional_fields)
end
end
| 17.625 | 55 | 0.684397 |
976e5f0ca46a8b712d51333eb626efde8387fcd5 | 698 | ex | Elixir | Chapter4/4.3/todo_list-collectable.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter4/4.3/todo_list-collectable.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter4/4.3/todo_list-collectable.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | # Make the TodoList collectable, so it can be used in comprehension accumulators
defimpl Collectable, for: TodoList do
# returns the appender lambda
def into(original) do
{original, &into_callback/2}
end
# appender lambda implementation
defp into_callback(todo_list, {:cont, entry}) do
... | 33.238095 | 80 | 0.657593 |
976e713adaf334adfe8e7843bccbb19ebdd6dc60 | 31,221 | exs | Elixir | apps/site/test/journey_list_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/journey_list_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/journey_list_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule JourneyListTest do
use ExUnit.Case, async: true
import JourneyList
alias Schedules.{Schedule, Trip}
alias Stops.Stop
alias Predictions.Prediction
alias Routes.Route
@time ~N[2017-01-01T22:30:00]
@route %Route{id: "86", type: 3, name: "86"}
@sched_stop1_trip1__7_00 %Schedule{
time: ~N[... | 32.386929 | 102 | 0.479197 |
976e7b058d0bc046e3c0d38c6f3212389cd7805b | 106 | ex | Elixir | lib/shikoba/repo.ex | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 3 | 2021-11-23T23:07:34.000Z | 2021-11-24T01:40:01.000Z | lib/shikoba/repo.ex | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | null | null | null | lib/shikoba/repo.ex | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 1 | 2021-07-19T11:48:30.000Z | 2021-07-19T11:48:30.000Z | defmodule Shikoba.Repo do
use Ecto.Repo,
otp_app: :shikoba,
adapter: Ecto.Adapters.Postgres
end
| 17.666667 | 35 | 0.726415 |
976e85401bdae781ee8023c7b56e10e6169ae34c | 269 | ex | Elixir | lib/materia_file_transfer/google_cloud/config_stub.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | lib/materia_file_transfer/google_cloud/config_stub.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | lib/materia_file_transfer/google_cloud/config_stub.ex | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaFileTransfer.GoogleCloud.ConfigStub do
@moduledoc false
use Goth.Config
def init(config) do
{:ok, json} =
Poison.encode(%{
project_id: "",
private_key: ""
})
{:ok, Keyword.put(config, :json, json)}
end
end
| 17.933333 | 55 | 0.609665 |
976e8e85b0502bcd71b35b84bf7ad22db68ae5a2 | 25,610 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_vpn_gateways.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/api/target_vpn_gateways.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/api/target_vpn_gateways.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... | 56.911111 | 1,450 | 0.645959 |
976e8f23ea21a7171a25a38d1cc7ff0ef98b03b6 | 1,184 | ex | Elixir | web/channels/user_socket.ex | awseward/rundot | 2182215f8aa22aab6c1ea21ed0705524c1ebdc44 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | awseward/rundot | 2182215f8aa22aab6c1ea21ed0705524c1ebdc44 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | awseward/rundot | 2182215f8aa22aab6c1ea21ed0705524c1ebdc44 | [
"MIT"
] | null | null | null | defmodule Rundot.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Rundot.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket,
timeout: 45_000
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to... | 30.358974 | 83 | 0.699324 |
976ea469f4d90031f7ed12397d01e112e905ebf7 | 2,763 | ex | Elixir | lib/harald/assigned_numbers/generic_access_profile.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 59 | 2019-02-16T00:09:58.000Z | 2020-03-29T23:37:36.000Z | lib/harald/assigned_numbers/generic_access_profile.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 19 | 2019-02-15T22:41:43.000Z | 2020-02-15T19:20:57.000Z | lib/harald/assigned_numbers/generic_access_profile.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 9 | 2020-05-07T00:02:36.000Z | 2021-09-17T18:17:46.000Z | defmodule Harald.AssignedNumbers.GenericAccessProfile do
@moduledoc """
> Assigned numbers are used in GAP for inquiry response, EIR data type values,
> manufacturer-specific data, advertising data, low energy UUIDs and appearance characteristics,
> and class of device.
Reference: https://www.bluetooth.com/s... | 34.5375 | 98 | 0.65798 |
976edca24d0c13a9e452bbc23158a25b1374a122 | 71 | ex | Elixir | web/views/coherence/email_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | web/views/coherence/email_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | web/views/coherence/email_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Coherence.EmailView do
use Uptom.Coherence.Web, :view
end
| 14.2 | 32 | 0.788732 |
976f23afdf6ab498176b7d302f10c622172141a3 | 58 | ex | Elixir | elixir/phoenix-tutorial/hello/lib/hello_web/views/shared/shared_view.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/phoenix-tutorial/hello/lib/hello_web/views/shared/shared_view.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/phoenix-tutorial/hello/lib/hello_web/views/shared/shared_view.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | defmodule HelloWeb.SharedView do
use HelloWeb, :view
end | 19.333333 | 32 | 0.810345 |
976f3a4b57381679c7ca0116c8feb4d87c58ffdb | 1,633 | exs | Elixir | test/auto_api/common_data_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | test/auto_api/common_data_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2018-11-29T09:48:29.000Z | 2019-11-06T12:11:35.000Z | test/auto_api/common_data_state_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# Copyright (C) 2018 High-Mobility GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is ... | 36.288889 | 73 | 0.706062 |
976f3d7a755205a61c8c920f3d014915f5e1d365 | 2,915 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/evaluation_metrics.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/evaluation_metrics.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/evaluation_metrics.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 44.846154 | 193 | 0.760549 |
976f4984e9d736f1481561228be931a16ada8a83 | 686 | exs | Elixir | apps/template/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/template/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/template/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | use Mix.Config
config :template, TemplateWeb.Endpoint,
url: [scheme: "https", host: "data.integrationtests.example.com", port: 443],
http: [protocol_options: [inactivity_timeout: 4_000_000, idle_timeout: 4_000_000]]
config :template,
allowed_origins: ["integrationtests.example.com", "localhost:9001"],
divo: "... | 25.407407 | 84 | 0.708455 |
976f84df29d998f30bc686c548cc73dd11f27450 | 16,076 | ex | Elixir | apps/blockchain/lib/blockchain/chain.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/blockchain/lib/blockchain/chain.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/blockchain/lib/blockchain/chain.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule Blockchain.Chain do
@moduledoc """
Represents the information about a specific chain.
This will either be a current chain (such as homestead), or
a test chain (such as ropsten). Different chains have
different parameters, such as accounts with an initial
balance and when EIPs are implemented.
F... | 32.023904 | 97 | 0.647238 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.