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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6286205c75aa9d5e9599a04a868d09c96d4d59e3 | 2,059 | exs | Elixir | test/kwtool_web/controllers/keyword_controller_test.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | test/kwtool_web/controllers/keyword_controller_test.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | test/kwtool_web/controllers/keyword_controller_test.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule KwtoolWeb.KeywordControllerTest do
use KwtoolWeb.ConnCase
describe "get index/2" do
test "returns the keywords page when given a logged-in user", %{conn: conn} do
created_user = insert(:user)
keyword = insert(:keyword, user: created_user)
conn =
conn
|> with_signed_... | 30.731343 | 109 | 0.648859 |
628650854409255eb21ffe51ab76891eb35986ff | 911 | ex | Elixir | apps/mcam_server_web/lib/mcam_server_web/application.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/mcam_server_web/lib/mcam_server_web/application.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/mcam_server_web/lib/mcam_server_web/application.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule McamServerWeb.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
McamServerWeb.Telemetry,
# Start the Endpoint (ht... | 29.387097 | 71 | 0.723381 |
628680155f2b4213dda876fc2b237e56a539a20d | 677 | exs | Elixir | config/test.exs | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | config/test.exs | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | config/test.exs | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :ref, Ref.Repo,
username: "postgres",
password: "postgres",
database: "ref_test#{System.get_env("MIX_TE... | 28.208333 | 62 | 0.72969 |
6286867cbf28b9c7ba4ee2c5dbbddfda07908cd8 | 592 | ex | Elixir | examples/petstore/lib/petstore/application.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | examples/petstore/lib/petstore/application.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | examples/petstore/lib/petstore/application.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule Petstore.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
port = Application.get_env(:petstore, :http, [])[:port] || 4000
children = [
{Plug.Cowboy, scheme: :http, p... | 28.190476 | 84 | 0.699324 |
6286e5d1bb7c1951db3be8e6bc04677724e30459 | 405 | ex | Elixir | lib/web/session/store.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | lib/web/session/store.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | lib/web/session/store.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.Session.Store do
@moduledoc """
Behaviour of session store.
"""
@type session_id :: nil | String.t()
@type session_kv :: %{String.t() => any}
@callback load(session_id) :: {session_id, session_kv}
@callback ... | 23.823529 | 62 | 0.68642 |
6286f97266ef14770aa44ec2be70e3d0ecd0c75d | 5,143 | exs | Elixir | config/prod.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | config/prod.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | config/prod.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | use Mix.Config
# <<< PROD >>>
# ----- FeedexTsdb
config :feedex_tsdb, FeedexTsdb,
database: "inf_feedex_prod"
# ----- FeedexCore
config :feedex_core, FeedexCore.Repo,
username: "postgres",
password: "postgres",
database: "feedex_core_prod",
hostname: "localhost",
show_sensitive_data_on_connection_error... | 32.550633 | 75 | 0.700175 |
6286f97a2fab8d8428252eb5fcf034e9694ff144 | 9,503 | exs | Elixir | parkapp_server/test/parkapp_web/api_integration/embers/production_mock_test.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | 2 | 2018-11-06T12:21:16.000Z | 2018-11-21T10:20:17.000Z | parkapp_server/test/parkapp_web/api_integration/embers/production_mock_test.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | parkapp_server/test/parkapp_web/api_integration/embers/production_mock_test.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | defmodule ParkappWeb.ApiIntegration.Embers.ProductionMockTest do
use ParkappWeb.ConnCase
alias Parkapp.DataCase
alias Parkapp.ReservationsContext
alias ParkappWeb.ApiIntegration.Embers.ProductionMock
alias Parkapp.Reservations.ReservationType.Enum, as: ReservationTypeEnum
alias Parkapp.Reservations.Reserva... | 33.461268 | 101 | 0.653162 |
628702ef330d3e0f79e419181796ddf5e355ccf9 | 1,385 | ex | Elixir | lib/banchan_web/components/form/text_input.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/components/form/text_input.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/components/form/text_input.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule BanchanWeb.Components.Form.TextInput do
@moduledoc """
Banchan-specific TextInput.
"""
use BanchanWeb, :component
alias Surface.Components.Form.{ErrorTag, Field, Label, TextInput}
alias Surface.Components.Form.Input.InputContext
prop name, :any, required: true
prop opts, :keyword, default: [... | 25.181818 | 79 | 0.511191 |
62877d542ae3f692b585375e105a74b025925352 | 7,632 | exs | Elixir | test/elixir/test/users_db_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/users_db_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/users_db_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | defmodule UsersDbTest do
use CouchTestCase
@moduletag :authentication
@users_db_name "_users"
@moduletag config: [
{
"chttpd_auth",
"authentication_db",
@users_db_name
},
{
"couch_httpd_auth",
... | 25.271523 | 90 | 0.583726 |
62877dd518257dbd92f4e0d59032433d67bc4346 | 981 | ex | Elixir | lib/day01.ex | nnnolan/aoc2021 | 9831e298fae67f1107d9583a07ecbf1c925f977e | [
"Apache-2.0"
] | null | null | null | lib/day01.ex | nnnolan/aoc2021 | 9831e298fae67f1107d9583a07ecbf1c925f977e | [
"Apache-2.0"
] | null | null | null | lib/day01.ex | nnnolan/aoc2021 | 9831e298fae67f1107d9583a07ecbf1c925f977e | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.035714 | 86 | 0.692151 |
6287a6691875369d0b0336267a01fae660832ba2 | 2,418 | ex | Elixir | lib/adeunis_arf8230aa.ex | flixbi/element-parsers | b92ef1cff139130acbac4f40d0d48568a3de6590 | [
"MIT"
] | 1 | 2021-04-06T09:30:10.000Z | 2021-04-06T09:30:10.000Z | lib/adeunis_arf8230aa.ex | alexnanzer/element-parsers | df946803266fcf8bdeee31d8a1249cf18cbd5bb3 | [
"MIT"
] | null | null | null | lib/adeunis_arf8230aa.ex | alexnanzer/element-parsers | df946803266fcf8bdeee31d8a1249cf18cbd5bb3 | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
require Logger
# ELEMENT IoT Parser for Adeunis ARF8230AA
# According to documentation provided by Adeunis
# Link: https://www.adeunis.com/en/produit/pulse-2/
# Documentation: https://www.adeunis.com/wp-content/uploads/2017/08/PULSE_LoRaWAN_UG_V2_FR_GB.pdf... | 26.571429 | 158 | 0.545079 |
6287d3eaa481a2f912c88a12a50ec7359e5fbea2 | 543 | ex | Elixir | lib/tensorflow/core/framework/reader_base.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 58 | 2018-06-12T00:01:51.000Z | 2022-01-30T17:29:42.000Z | lib/tensorflow/core/framework/reader_base.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 9 | 2018-06-13T19:33:39.000Z | 2020-02-17T17:24:15.000Z | lib/tensorflow/core/framework/reader_base.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 3 | 2018-06-13T19:45:36.000Z | 2021-05-16T17:40:08.000Z | defmodule Tensorflow.ReaderBaseState do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
work_started: integer,
work_finished: integer,
num_records_produced: integer,
current_work: binary
}
defstruct [
:work_started,
:work_finished,
... | 23.608696 | 47 | 0.6593 |
6287d9e090a3ed89debd3fb52a78b3c4edc476f1 | 724 | exs | Elixir | test/lib/bamboo/adapters/local_adapter_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 1,845 | 2016-03-29T23:36:36.000Z | 2022-03-31T19:23:38.000Z | test/lib/bamboo/adapters/local_adapter_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 407 | 2016-03-29T14:55:19.000Z | 2022-02-02T13:53:50.000Z | test/lib/bamboo/adapters/local_adapter_test.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 361 | 2016-03-31T13:33:22.000Z | 2022-02-25T12:38:43.000Z | defmodule Bamboo.LocalAdapterTest do
use ExUnit.Case
alias Bamboo.SentEmail
alias Bamboo.LocalAdapter
import Bamboo.Email, only: [new_email: 1]
@config %{}
setup do
SentEmail.reset()
:ok
end
test "sent emails has emails that were delivered synchronously" do
email = new_email(subject: "Thi... | 24.965517 | 83 | 0.687845 |
6287f592217aea6eb372956df5406630f9b6fab2 | 25,803 | ex | Elixir | lib/mix/lib/mix/tasks/test.ex | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/lib/mix/tasks/test.ex | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/test.ex | norbusan/elixir-debian | ebb65c607e29f038d6a333bd1d1c9605c5ae2ef0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Test do
use Mix.Task
alias Mix.Compilers.Test, as: CT
@compile {:no_warn_undefined, [ExUnit, ExUnit.Filters]}
@shortdoc "Runs a project's tests"
@recursive true
@preferred_cli_env :test
@moduledoc ~S"""
Runs the tests for a project.
This task starts the current application, loa... | 32.996164 | 113 | 0.675503 |
6287fbc0320bffd5af941361cd64b93922958548 | 2,518 | exs | Elixir | test/pow/extension/ecto/schema_test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | test/pow/extension/ecto/schema_test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | test/pow/extension/ecto/schema_test.exs | abartier/pow | 58a3d082da093e2dc7f07825a950ee133204813f | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Pow.Test.Extension.Ecto.Schema.Ecto.Schema do
use Pow.Extension.Ecto.Schema.Base
alias Ecto.Changeset
def validate!(_config, module) do
case module.pow_user_id_field() do
:email -> :ok
_ -> raise "User ID field error"
end
end
def attrs(_config) do
[{:custom, :string}]
... | 24.446602 | 157 | 0.681096 |
6288161021ba8ff86bed2d37402e63ebfde7c62d | 1,400 | ex | Elixir | lib/web_driver_client/w3c_wire_protocol_client/commands/fetch_window_rect.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/fetch_window_rect.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/fetch_window_rect.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.W3CWireProtocolClient.Commands.FetchWindowRect do
@moduledoc false
alias WebDriverClient.Config
alias WebDriverClient.ConnectionError
alias WebDriverClient.HTTPResponse
alias WebDriverClient.Session
alias WebDriverClient.W3CWireProtocolClient.Rect
alias WebDriverClient.W3CWirePr... | 36.842105 | 92 | 0.732857 |
628828217d7a839c01624a06723560b1beda3f30 | 2,009 | ex | Elixir | lib/integer.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | 1 | 2015-10-25T11:30:13.000Z | 2015-10-25T11:30:13.000Z | lib/integer.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | lib/integer.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | module Integer
module Behavior
mixin Numeric
% Iterates the given function n times, passing values from zero
% to n - 1.
%
% ## Examples
%
% 5.times -> (x) IO.puts x % => 0 1 2 3 4
%
def times(function)
if function.arity == 0
times_0(self, 0, function)
else
... | 21.147368 | 84 | 0.551518 |
62883f0810039c4bf6dc7e2392e05f56482ffe74 | 2,048 | ex | Elixir | lib/todo_app_web/controllers/tarefa_controller.ex | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | lib/todo_app_web/controllers/tarefa_controller.ex | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | lib/todo_app_web/controllers/tarefa_controller.ex | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | defmodule TodoAppWeb.TarefaController do
use TodoAppWeb, :controller
import Ecto.Repo
alias TodoApp.Tarefa
alias TodoApp.Repo
def new(conn, _params) do
changeset_criado = Tarefa.changesetParaStructGravarBanco(%Tarefa{})
render(conn, "new.html", changeset: changeset_criado)
end
def create(conn, ... | 26.25641 | 82 | 0.663574 |
628847a4ab9f3da09089ae3d64f22bea528e0469 | 473 | ex | Elixir | recallr/lib/recallr/recallr.ex | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | null | null | null | recallr/lib/recallr/recallr.ex | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | 1 | 2021-03-24T14:49:29.000Z | 2021-03-24T14:49:29.000Z | recallr/lib/recallr/recallr.ex | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | 5 | 2021-03-21T19:45:38.000Z | 2021-03-24T14:53:07.000Z | defmodule Recallr.Recallr do
defstruct original_text: "", text: [], rounds: 0, length: 0
def new(text, rounds \\ 7) do
state = %__MODULE__{original_text: text, text: [], rounds: rounds}
|> split_words()
|> count_words()
# |> remove_word()
end
def split_words(state) do
words =
... | 18.92 | 70 | 0.610994 |
62886e596ff0c8e4fb4bbc53c2239089d72e5ada | 920 | exs | Elixir | config/dev.exs | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 4 | 2016-10-16T22:22:52.000Z | 2019-05-24T13:44:15.000Z | config/dev.exs | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 1 | 2016-10-21T00:16:16.000Z | 2017-09-24T02:24:23.000Z | config/dev.exs | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :thumbifier, Thumbifier.Endpoint,
http: [port:... | 27.058824 | 67 | 0.709783 |
62888074dffadf4dc37bce2f024d948794cde1f7 | 24,923 | ex | Elixir | lib/phoenix_live_view/html_engine.ex | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_engine.ex | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_engine.ex | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLEngine do
@moduledoc """
The HTMLEngine that powers `.heex` templates and the `~H` sigil.
It works by adding a HTML parsing and validation layer on top
of EEx engine. By default it uses `Phoenix.LiveView.Engine` as
its "subengine".
"""
# TODO: Use @impl true instead of @do... | 30.431013 | 101 | 0.630863 |
6288a5c48da59d84c364ee3fde792a6d7dd352e7 | 4,564 | exs | Elixir | test/slug_test.exs | LangPham/slugify | 389cdd2ee3b5c1f83bd2b9023ef101ab613157b0 | [
"MIT"
] | null | null | null | test/slug_test.exs | LangPham/slugify | 389cdd2ee3b5c1f83bd2b9023ef101ab613157b0 | [
"MIT"
] | null | null | null | test/slug_test.exs | LangPham/slugify | 389cdd2ee3b5c1f83bd2b9023ef101ab613157b0 | [
"MIT"
] | null | null | null | defmodule SlugTest do
use ExUnit.Case
doctest Slug
@alphanumerics Enum.concat([?A..?Z, ?a..?z, ?0..?9]) |> List.to_string()
test "alphanumeric characters to lowercase" do
assert Slug.slugify(@alphanumerics) == String.downcase(@alphanumerics)
end
test "returns nil if input cannot be slugified" do
... | 29.070064 | 82 | 0.645925 |
6288b28c30190f63539e3019353a4e1b76b0591c | 1,774 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_modify_entry_contacts_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_modify_entry_contacts_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_modify_entry_contacts_request.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... | 34.115385 | 156 | 0.767756 |
6288b5a48cfb4388b144a0ae33de8b737bfb667a | 122 | ex | Elixir | lib/nostrum/struct/user/connection.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/user/connection.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/user/connection.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.User.Connection do
@moduledoc """
Struct representing a Discord User's connections
"""
end
| 20.333333 | 50 | 0.754098 |
6288d326769901db9f4adab8c316786bfed95b45 | 8,803 | exs | Elixir | web_finngen_r4/import_endpoint_csv.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r4/import_endpoint_csv.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r4/import_endpoint_csv.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | # Import endpoint (aka Phenocode) information.
#
# NOTE! Before using this script, the endpoint Excel file has to be converted to CSV.
#
# Usage:
# mix run import_endpoint_csv.exs <path-to-endpoints-file> <path-to-categories-file> <path-to-demo-endpoints-file>
#
# where <path-to-endpoints-file> points to the Endpoint f... | 27.857595 | 114 | 0.575826 |
6288e69325471514c7a7671ffe9c5cbe6a36dea7 | 2,779 | ex | Elixir | lib/credo/check/refactor/map_into.ex | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/map_into.ex | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/map_into.ex | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.MapInto do
# only avaible in Elixir < 1.8 since performance improvements have since made this check obsolete
use Credo.Check,
base_priority: :high,
elixir_version: "< 1.8.0",
explanations: [
check: """
`Enum.into/3` is more efficient than `Enum.map/2 |> Enum.in... | 26.721154 | 99 | 0.514214 |
6289128478f6e177e812fb48edc895eca8198b5a | 1,117 | ex | Elixir | apps/neoscan_sync/lib/neoscan_sync/notifications/notifications.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_sync/lib/neoscan_sync/notifications/notifications.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_sync/lib/neoscan_sync/notifications/notifications.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | defmodule NeoscanSync.Notifications do
use HTTPoison.Base
@moduledoc """
The boundary for the notification requests.
"""
alias NeoscanSync.HttpCalls
require Logger
def get_block_notifications(height) do
"#{get_url()}/notifications/block/#{height}"
|> HttpCalls.get()
|> check(height)
end
... | 22.34 | 66 | 0.679499 |
628915ab27e86e3cfcc9a79ed35716d26059cb22 | 1,376 | exs | Elixir | test/config_locales_test.exs | Zurga/cldr | 1aefe0cb27332b124db73ad3c1d03acb38a83365 | [
"Apache-2.0"
] | null | null | null | test/config_locales_test.exs | Zurga/cldr | 1aefe0cb27332b124db73ad3c1d03acb38a83365 | [
"Apache-2.0"
] | null | null | null | test/config_locales_test.exs | Zurga/cldr | 1aefe0cb27332b124db73ad3c1d03acb38a83365 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Config.Test do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
@from_locales ["en", "en-au", "zh-hant-hk", "zh_haNt"]
@to_locales ["en", "en-001", "en-AU", "root", "zh-Hant", "zh-Hant-HK"]
test "locale resolution in a config is case insensitive" do
capture_io(:stderr, fn ->
cap... | 28.081633 | 85 | 0.643895 |
62899b2cf2374411f32c63651409028d6aa59dad | 3,032 | ex | Elixir | lib/postgrex/extensions/range.ex | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/extensions/range.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/extensions/range.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.Extensions.Range do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Bitwise, only_operators: true
@behaviour Postgrex.SuperExtension
@range_empty 0x01
@range_lb_inc 0x02
@range_ub_inc 0x04
@range_lb_inf 0x08
@range_ub_inf 0x10
def init(_), do: nil
def matching(_... | 24.063492 | 94 | 0.58938 |
6289c698fe75ac568e4307b8a9637b62d17111ba | 921 | ex | Elixir | lib/groupher_server/cms/helper/utils.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/helper/utils.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/helper/utils.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.CMS.Helper.Utils do
@moduledoc """
utils for CMS helper
"""
import Ecto.Changeset
import Helper.Utils, only: [get_config: 2]
@article_threads get_config(:article, :threads)
@article_fields @article_threads |> Enum.map(&:"#{&1}_id")
@doc """
foreign_key_constraint for artilce... | 30.7 | 92 | 0.733985 |
6289c9b4c42dd4cd3d6f576f4a4e1a4d91576795 | 3,975 | ex | Elixir | lib/oli/rendering/content/plaintext.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli/rendering/content/plaintext.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli/rendering/content/plaintext.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Rendering.Content.Plaintext do
@moduledoc """
Implements the Plaintext writer for Oli content rendering.
This was written quickly for simplicity. It leaves a trailing space at the end of the final string.
"""
alias Oli.Rendering.Context
@behaviour Oli.Rendering.Content
def example(%Context... | 22.714286 | 141 | 0.556226 |
6289fcb54976a9582ea24c2bb688ae9c2649d7ac | 1,591 | exs | Elixir | apps/tai/test/tai/venues/boot/products_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/venues/boot/products_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venues/boot/products_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.Venues.Boot.ProductsTest do
use ExUnit.Case, async: false
doctest Tai.Venues.Boot.Products
defmodule MyAdapter do
def products(_) do
products = [
struct(Tai.Venues.Product, %{symbol: :btc_usd}),
struct(Tai.Venues.Product, %{symbol: :eth_usd})
]
{:ok, products}... | 25.253968 | 85 | 0.590823 |
628a02fcd1c585dbc93873d2048d275c33035bf4 | 1,512 | exs | Elixir | test/patrol_test.exs | rpip/patrol | 50450e16fa271d473b86f6f73fb31470998dd19f | [
"MIT"
] | 1 | 2016-12-05T03:41:06.000Z | 2016-12-05T03:41:06.000Z | test/patrol_test.exs | rpip/patrol | 50450e16fa271d473b86f6f73fb31470998dd19f | [
"MIT"
] | null | null | null | test/patrol_test.exs | rpip/patrol | 50450e16fa271d473b86f6f73fb31470998dd19f | [
"MIT"
] | null | null | null | defmodule PatrolTest do
use ExUnit.Case
use Patrol
setup do
sb = %Sandbox{}
{:ok, [sandbox: sb]}
end
test "create sandbox" do
sb = Patrol.create_sandbox()
assert(is_function(sb))
end
test "sandbox simple addition is true" do
sb = Patrol.create_sandbox
assert {:ok, 4} == sb.("1... | 24.387097 | 92 | 0.612434 |
628a4521274bc71767fbddd6f8163bab26b10157 | 18 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_qualified_alias_operation_parsing_test_case/StringLine.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/matched_qualified_alias_operation_parsing_test_case/StringLine.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/matched_qualified_alias_operation_parsing_test_case/StringLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | "StringLine".Alias | 18 | 18 | 0.833333 |
628a563e2c92b498aa6fb0c72176fc72a3ae633d | 1,014 | ex | Elixir | test/support/channel_case.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | 1 | 2021-07-07T12:36:10.000Z | 2021-07-07T12:36:10.000Z | test/support/channel_case.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot... | 23.045455 | 71 | 0.705128 |
628a5e4dbeda28c7f87f39c79a02859b6549284a | 9,445 | ex | Elixir | lib/phoenix_ecto/html.ex | mikeastock/phoenix_ecto | c45ed42470b47b1f73d85aef7815659cfe37a788 | [
"MIT"
] | null | null | null | lib/phoenix_ecto/html.ex | mikeastock/phoenix_ecto | c45ed42470b47b1f73d85aef7815659cfe37a788 | [
"MIT"
] | null | null | null | lib/phoenix_ecto/html.ex | mikeastock/phoenix_ecto | c45ed42470b47b1f73d85aef7815659cfe37a788 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Phoenix.HTML) do
defimpl Phoenix.HTML.FormData, for: Ecto.Changeset do
def to_form(changeset, opts) do
%{params: params, data: data} = changeset
{name, opts} = Keyword.pop(opts, :as)
name = to_string(name || form_for_name(data))
%Phoenix.HTML.Form{
source: c... | 32.681661 | 113 | 0.570461 |
628a7c345a922c5bb58633839aa84940f1b79caf | 71 | ex | Elixir | web/views/shared_view.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 299 | 2015-06-24T09:14:27.000Z | 2022-03-03T13:31:59.000Z | web/views/shared_view.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 63 | 2015-07-04T19:42:12.000Z | 2021-12-10T14:27:28.000Z | web/views/shared_view.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 49 | 2015-07-06T13:42:43.000Z | 2021-12-22T21:38:04.000Z | defmodule ElixirStatus.SharedView do
use ElixirStatus.Web, :view
end
| 17.75 | 36 | 0.816901 |
628a7df3752c71bc4df84c3ca63a6ad574e13cad | 548 | exs | Elixir | config/test.exs | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | config/test.exs | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | config/test.exs | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :recycling_itsavesplanet_org, RISPWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :re... | 27.4 | 56 | 0.760949 |
628a810edd729e55c1db3e58f406fe052928e709 | 984 | ex | Elixir | web/controllers/csv_controller.ex | deerob4/salop-teaching-school | 5c4c4a15232859b5b3bdc84ec9874689891ca9d8 | [
"MIT"
] | null | null | null | web/controllers/csv_controller.ex | deerob4/salop-teaching-school | 5c4c4a15232859b5b3bdc84ec9874689891ca9d8 | [
"MIT"
] | null | null | null | web/controllers/csv_controller.ex | deerob4/salop-teaching-school | 5c4c4a15232859b5b3bdc84ec9874689891ca9d8 | [
"MIT"
] | null | null | null | defmodule TeachingSchool.CsvController do
use TeachingSchool.Web, :controller
alias TeachingSchool.{Repo, Teacher}
@fields ~w(title first_name last_name email additional_contact
school_type subject confirmed, aware_from, aware_other_explanation)
def export(conn, _params) do
conn
|> put_re... | 24 | 80 | 0.661585 |
628ab4f5f2c112c43fadf2f55923a1e71614300f | 565 | ex | Elixir | lib/mix/phoenix.ex | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | lib/mix/phoenix.ex | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | lib/mix/phoenix.ex | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | defmodule Mix.Phoenix do
# Conveniences for Phoenix tasks.
@moduledoc false
@doc """
Returns the module base name based on the application name.
"""
def base do
Mix.Project.config
|> Keyword.fetch!(:app)
|> to_string
|> Phoenix.Naming.camelize
end
@doc """
Returns all modules in a pr... | 19.482759 | 61 | 0.642478 |
628ac2b1fc4a0d0d2a64ea68975946e7c8d75ac2 | 1,867 | exs | Elixir | clients/testing/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | 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... | 27.865672 | 134 | 0.658275 |
628af172198232ed9bf8ad11aa083d1ef809fac3 | 2,332 | exs | Elixir | test/services/user_service_test.exs | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | null | null | null | test/services/user_service_test.exs | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | null | null | null | test/services/user_service_test.exs | blacksph3re/alastair3 | d6064e322b8ef5c6eb8da59a080852179a71b9d5 | [
"Apache-2.0"
] | null | null | null | defmodule Alastair.UserServiceTest do
use Alastair.ConnCase
alias Alastair.UserService
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
@body "{\"success\":true,\"meta\":null,\"data\":{\"id\":7,\"address_id\":1,\"personal_email\":\"guest@aegee.org\",\"first_nam... | 44.846154 | 905 | 0.645369 |
628af7a4cf0416f6de1b61c52bb19985d6b7b54c | 394 | ex | Elixir | lib/wise_homex/models/external_vacancy.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 2 | 2019-03-14T09:09:14.000Z | 2020-11-25T06:44:46.000Z | lib/wise_homex/models/external_vacancy.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 139 | 2019-03-14T06:58:55.000Z | 2022-03-29T12:28:09.000Z | lib/wise_homex/models/external_vacancy.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 7 | 2021-04-09T13:55:45.000Z | 2021-04-16T15:49:36.000Z | defmodule WiseHomex.ExternalVacancy do
@moduledoc false
use WiseHomex.BaseModel
embedded_schema do
belongs_to :vacancy_info, WiseHomex.VacancyInfo, type: :binary_id
belongs_to :external_household, WiseHomex.ExternalHousehold, type: :binary_id
field :system, :string
field :number, :integer
f... | 24.625 | 81 | 0.758883 |
628afdabb675c5821100e5a4fd0806a04d564d99 | 1,591 | ex | Elixir | clients/content/lib/google_api/content/v21/model/lia_about_page_settings.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/lia_about_page_settings.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/model/lia_about_page_settings.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... | 31.82 | 180 | 0.714016 |
628b3a7084de094274c7c899d43da8caf6196880 | 6,897 | ex | Elixir | lib/ecto/query/util.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/util.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/util.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Util do
@moduledoc """
This module provide utility functions on queries.
"""
alias Ecto.Query
@doc """
Look up a source with a variable.
"""
def find_source(sources, {:&, _, [ix]}) when is_tuple(sources) do
elem(sources, ix)
end
def find_source(sources, {:&, _, [ix]}) whe... | 28.618257 | 90 | 0.60925 |
628b3bf67e0ce59908ba793e4508c544dbf1a61f | 156 | exs | Elixir | test/identiconable_test.exs | usama-asfar/identiconable | be0a6704c913a90c7e38a93b0fdd089aee87b4fa | [
"MIT"
] | null | null | null | test/identiconable_test.exs | usama-asfar/identiconable | be0a6704c913a90c7e38a93b0fdd089aee87b4fa | [
"MIT"
] | null | null | null | test/identiconable_test.exs | usama-asfar/identiconable | be0a6704c913a90c7e38a93b0fdd089aee87b4fa | [
"MIT"
] | null | null | null | defmodule IdenticonableTest do
use ExUnit.Case
doctest Identiconable
test "greets the world" do
assert Identiconable.hello() == :world
end
end
| 17.333333 | 42 | 0.74359 |
628b41a914a29d9088a9f6ffa65fdc321d1e2aa4 | 5,673 | ex | Elixir | lib/glimesh_web/live/user_live/components/channel_title.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/components/channel_title.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/components/channel_title.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserLive.Components.ChannelTitle do
use GlimeshWeb, :live_view
alias Glimesh.ChannelCategories
alias Glimesh.ChannelLookups
alias Glimesh.Streams
def render_badge(channel) do
if channel.status == "live" do
raw("""
<span class="badge badge-danger">Live!</span>
""")
... | 29.857895 | 96 | 0.667019 |
628bd38ece2c2f7bb9b781481346dd7dcd363b69 | 651 | ex | Elixir | lib/kwtool_web/controllers/keyword_controller.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | lib/kwtool_web/controllers/keyword_controller.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | lib/kwtool_web/controllers/keyword_controller.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule KwtoolWeb.KeywordController do
use KwtoolWeb, :controller
alias Kwtool.Crawlers
def index(conn, params) do
{keywords, pagination} = Crawlers.paginate_user_keywords(conn.assigns.current_user, params)
render(conn, "index.html", keywords: keywords, pagination: pagination)
end
def show(conn,... | 27.125 | 95 | 0.683564 |
628c0a9ac1a885c31904d04c3c6d602486558681 | 1,972 | ex | Elixir | lib/grizzly/zwave/commands/manufacturer_specific_device_specific_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/manufacturer_specific_device_specific_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/manufacturer_specific_device_specific_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ManufacturerSpecificDeviceSpecificGet do
@moduledoc """
Module for the DEVICE_SPECIFIC_GET command of command class COMMAND_CLASS_MANUFACTURER_SPECIFIC
Params:
* `device_id_type` - :oem_factory_default_device_id_type or :serial_number or :pseudo_random (required)
"""
@be... | 30.338462 | 106 | 0.727181 |
628c139af9c1cad128feb3130e3d50a7d44c1531 | 2,467 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/suggest_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/suggest_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/suggest_request.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... | 42.534483 | 390 | 0.741792 |
628c530014eed01070df3284f0102cc35f438798 | 1,373 | ex | Elixir | apps/thundermoon_web/lib/thundermoon_web/controllers/auth_controller.ex | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | null | null | null | apps/thundermoon_web/lib/thundermoon_web/controllers/auth_controller.ex | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | null | null | null | apps/thundermoon_web/lib/thundermoon_web/controllers/auth_controller.ex | psychedel/thundermoon-umbrella | b52cb59f1b55fe092ddc70fac7cf2f6e7890c9af | [
"MIT"
] | null | null | null | defmodule ThundermoonWeb.AuthController do
use ThundermoonWeb, :controller
plug Ueberauth
alias ThundermoonWeb.AuthService
alias Thundermoon.Accounts
def integration(conn, %{"external_user_id" => id}) do
if Mix.env() == :integration do
case Accounts.find_by_external_id(id) do
nil ->
... | 25.425926 | 78 | 0.595047 |
628c79d17d44d5844fecee10b01c0d25ef8b4af9 | 218 | exs | Elixir | crawler_challenge/test/crawler_challenge_web/controllers/process_controller_test.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/test/crawler_challenge_web/controllers/process_controller_test.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/test/crawler_challenge_web/controllers/process_controller_test.exs | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallengeWeb.ProcessControllerTest do
use CrawlerChallengeWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "CrawlerChallenge"
end
end
| 24.222222 | 57 | 0.720183 |
628c8dfdb11e2d20e22ac945030534a6b2f56079 | 15,198 | ex | Elixir | lib/credo/execution.ex | retgoat/credo | bdf779f94b171995aaf7b9097597db8c23e84167 | [
"MIT"
] | null | null | null | lib/credo/execution.ex | retgoat/credo | bdf779f94b171995aaf7b9097597db8c23e84167 | [
"MIT"
] | null | null | null | lib/credo/execution.ex | retgoat/credo | bdf779f94b171995aaf7b9097597db8c23e84167 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Execution do
@moduledoc """
Every run of Credo is configured via a `Execution` struct, which is created and
manipulated via the `Credo.Execution` module.
"""
@doc """
The `Execution` struct is created and manipulated via the `Credo.Execution` module.
"""
defstruct argv: [],
... | 29.170825 | 116 | 0.659363 |
628c90ebd00781fba70208ddc9e35c4e17f4d144 | 2,062 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database_instance_failover_replica.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database_instance_failover_replica.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database_instance_failover_replica.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.24 | 276 | 0.751697 |
628c9123262fdfb75c9e32471ff16fa1419a3233 | 2,176 | ex | Elixir | lib/wechat_pay/plug/handler.ex | linjunpop/wechat_pay | 8db9a5882e87ed0ac899b806f556540423028a1c | [
"MIT"
] | 55 | 2016-10-19T09:01:39.000Z | 2019-03-23T12:40:21.000Z | lib/wechat_pay/plug/handler.ex | linjunpop/wechat_pay | 8db9a5882e87ed0ac899b806f556540423028a1c | [
"MIT"
] | 11 | 2017-05-19T05:08:53.000Z | 2019-03-22T11:54:30.000Z | lib/wechat_pay/plug/handler.ex | linjunpop/wechat_pay | 8db9a5882e87ed0ac899b806f556540423028a1c | [
"MIT"
] | 9 | 2017-01-05T04:17:21.000Z | 2019-02-18T03:52:05.000Z | defmodule WechatPay.Plug.Handler do
@moduledoc """
The Handler behaviour is to handle the result of notification from Wechat's
Payment Gateway.
`use` this module will help you implementing your own handler:
```elixir
defmodule MyApp.WechatHandler do
use WechatPay.Plug.Handler
@impl WechatPay.Plug... | 29.808219 | 97 | 0.661305 |
628cbebee538f3ca62ced5eddce67d1fd5e72b9a | 2,940 | ex | Elixir | lib/plug/telemetry.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | lib/plug/telemetry.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | lib/plug/telemetry.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Telemetry do
@moduledoc """
A plug to instrument the pipeline with `:telemetry` events.
When plugged, the event prefix is a required option:
plug Plug.Telemetry, event_prefix: [:my, :plug]
In the example above, two events will be emitted:
* `[:my, :plug, :start]` - emitted when the ... | 33.409091 | 90 | 0.685374 |
628ccaab419299dbbeaf91ccbc253e12cd65525c | 93 | ex | Elixir | test/support/adm.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 545 | 2015-09-06T15:50:32.000Z | 2022-03-21T08:21:11.000Z | test/support/adm.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 178 | 2016-01-14T22:21:20.000Z | 2022-02-18T22:34:30.000Z | test/support/adm.ex | VoiSmart/pigeon | 54735f869dd5500991dfa0b13dc71ca2191cd0ff | [
"MIT"
] | 124 | 2016-01-17T11:30:16.000Z | 2022-02-28T16:59:41.000Z | defmodule PigeonTest.ADM do
@moduledoc false
use Pigeon.Dispatcher, otp_app: :pigeon
end
| 18.6 | 41 | 0.784946 |
628d1ce20abb67b19c5eebd8f494bd3273920a7b | 56,664 | exs | Elixir | lib/elixir/test/elixir/kernel/warning_test.exs | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.WarningTest do
use ExUnit.Case
import ExUnit.CaptureIO
defp capture_err(fun) do
capture_io(:stderr, fun)
end
test "outdented heredoc" do
output =
capture_err(fn ->
Code.eval_string("""
'''
outdented
... | 28.135055 | 219 | 0.508912 |
628d42f69213157bfc5c1ab4b58751f1c97b2bbc | 79 | exs | Elixir | test/inductive_graph_test.exs | rtvu/inductive_graph | d6b0bebabf9d1124774c9c4e53d621593735c6e7 | [
"MIT"
] | 3 | 2021-01-25T13:13:23.000Z | 2021-03-30T19:51:38.000Z | test/inductive_graph_test.exs | rtvu/inductive_graph | d6b0bebabf9d1124774c9c4e53d621593735c6e7 | [
"MIT"
] | null | null | null | test/inductive_graph_test.exs | rtvu/inductive_graph | d6b0bebabf9d1124774c9c4e53d621593735c6e7 | [
"MIT"
] | null | null | null | defmodule InductiveGraphTest do
use ExUnit.Case
doctest InductiveGraph
end
| 15.8 | 31 | 0.835443 |
628d5337012e78736f276433cbbaf2840cc68a3b | 376 | ex | Elixir | apps/wuw_web/lib/wuw_web/web/views/error_view.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/wuw_web/lib/wuw_web/web/views/error_view.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/wuw_web/lib/wuw_web/web/views/error_view.ex | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | defmodule WuwWeb.Web.ErrorView do
use WuwWeb.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templat... | 20.888889 | 47 | 0.696809 |
628d7f3a3ded6440a2a8aed0e181f596f9eafaf6 | 14,868 | ex | Elixir | lib/elixir/lib/version.ex | duggiefresh/elixir | 29a7e87a364180aedd0426a7f6ed986d4661b42e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/version.ex | duggiefresh/elixir | 29a7e87a364180aedd0426a7f6ed986d4661b42e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/version.ex | duggiefresh/elixir | 29a7e87a364180aedd0426a7f6ed986d4661b42e | [
"Apache-2.0"
] | null | null | null | defmodule Version do
@moduledoc ~S"""
Functions for parsing and matching versions against requirements.
A version is a string in a specific format or a `Version`
generated after parsing via `Version.parse/1`.
`Version` parsing and requirements follow
[SemVer 2.0 schema](http://semver.org/).
## Versions... | 27.947368 | 102 | 0.532217 |
628d8812a85bef59f63799667c051dbfa2146420 | 1,571 | exs | Elixir | test/interactive/rill/framework_at_glance.exs | Carburetor/rill | 6ba477373cff28f56fbead9a316166d994da67d3 | [
"MIT"
] | null | null | null | test/interactive/rill/framework_at_glance.exs | Carburetor/rill | 6ba477373cff28f56fbead9a316166d994da67d3 | [
"MIT"
] | null | null | null | test/interactive/rill/framework_at_glance.exs | Carburetor/rill | 6ba477373cff28f56fbead9a316166d994da67d3 | [
"MIT"
] | null | null | null | defmodule Person do
defstruct [:name, :age]
end
defmodule Renamed do
use Rill, :message
defmessage([:name])
end
defmodule Person.Projection do
use Rill, :projection
@impl Rill.EntityProjection
deftranslate apply(%Renamed{} = renamed, person) do
Map.put(person, :name, renamed.name)
end
end
defmodul... | 21.520548 | 72 | 0.651178 |
628d8903c585527325466b70c9665cd525c7cdd9 | 880 | ex | Elixir | lib/uncharted_phoenix/components/live_progress.ex | rocketvalidator/uncharted_phoenix | 6c22c5cbbe0a430262ec87256a164191ef25f263 | [
"MIT"
] | 2 | 2021-07-16T12:17:42.000Z | 2021-08-15T22:17:28.000Z | lib/uncharted_phoenix/components/live_progress.ex | rocketvalidator/uncharted_phoenix | 6c22c5cbbe0a430262ec87256a164191ef25f263 | [
"MIT"
] | null | null | null | lib/uncharted_phoenix/components/live_progress.ex | rocketvalidator/uncharted_phoenix | 6c22c5cbbe0a430262ec87256a164191ef25f263 | [
"MIT"
] | 1 | 2021-08-15T22:01:51.000Z | 2021-08-15T22:01:51.000Z | defmodule UnchartedPhoenix.LiveProgressComponent do
@moduledoc """
Bar Progress Component
"""
alias Uncharted.ProgressChart
use Phoenix.LiveComponent
def mount(socket) do
{:ok, assign(socket, :show_table, false)}
end
def update(assigns, socket) do
socket =
socket
|> assign(:chart,... | 24.444444 | 86 | 0.696591 |
628dc6a68d68b421ee27722089a09a5134784c08 | 4,327 | ex | Elixir | lib/elixir/lib/calendar.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule Calendar do
@moduledoc """
This module defines the responsibilities for working with
calendars, dates, times and datetimes in Elixir.
Currently it defines types but may define the calendar
behaviour in future versions. For the actual date, time
and datetime structures, see `Date`, `Time`, `NaiveD... | 36.982906 | 99 | 0.690317 |
628def08ea8ae923cd4cb30e1921690f67ea147f | 1,503 | ex | Elixir | lib/surface_bulma_components/form/select.ex | thorsten-de/surface_bulma_components | 12ba1f6847c4591cb68b3af727742eb9e40c5f86 | [
"MIT"
] | null | null | null | lib/surface_bulma_components/form/select.ex | thorsten-de/surface_bulma_components | 12ba1f6847c4591cb68b3af727742eb9e40c5f86 | [
"MIT"
] | null | null | null | lib/surface_bulma_components/form/select.ex | thorsten-de/surface_bulma_components | 12ba1f6847c4591cb68b3af727742eb9e40c5f86 | [
"MIT"
] | null | null | null | defmodule SurfaceBulmaComponents.Form.Select do
@moduledoc """
Defines a select.
Provides a wrapper for Phoenix.HTML.Form's `select/4` function.
All options passed via `opts` will be sent to `select/4`, `class` can
be set directly and will override anything in `opts`.
"""
use Surface.Component
impor... | 26.368421 | 82 | 0.689953 |
628e1631a54a34ca7c7abe56e69fda658e602215 | 1,702 | ex | Elixir | tut_3.ex | leonardoce/eutcl | 3b5c189705feaf621a903e4304cbf52835c3dbd4 | [
"BSD-3-Clause"
] | 2 | 2019-10-28T19:20:34.000Z | 2020-11-28T21:54:12.000Z | tut_3.ex | leonardoce/eutcl | 3b5c189705feaf621a903e4304cbf52835c3dbd4 | [
"BSD-3-Clause"
] | null | null | null | tut_3.ex | leonardoce/eutcl | 3b5c189705feaf621a903e4304cbf52835c3dbd4 | [
"BSD-3-Clause"
] | null | null | null | --@+leo-ver=4-thin
--@+node:leonardo.20070409191738:@thin tut_3.ex
--@@language euphoria
include tcllib.e
--@<<main window>>
--@+node:leonardo.20070409191928:<<main window>>
procedure main_window()
tcl_execute("wm title . {Listbox example}")
tcl_execute("frame .f")
tcl_execute("listbox .f.list -yscro... | 29.859649 | 88 | 0.676851 |
628e1a3cf2e33ffc41dfb5ab46b487efd11e1f92 | 53 | ex | Elixir | lib/rmc_web/views/page_view.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc_web/views/page_view.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc_web/views/page_view.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | defmodule RmcWeb.PageView do
use RmcWeb, :view
end
| 13.25 | 28 | 0.773585 |
628e342f1c39f9b74a6e28e81b4ced2199f6e292 | 1,213 | ex | Elixir | lib/hexpm_web/plug_parser.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm_web/plug_parser.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm_web/plug_parser.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.PlugParser do
alias Plug.Conn
@formats ~w(elixir erlang json)
def parse(%Conn{} = conn, "application", "vnd.hex+" <> format, _headers, opts)
when format in @formats do
decoder = get_decoder(format, opts)
conn
|> Conn.read_body(opts)
|> decode(decoder)
end
def parse... | 21.660714 | 80 | 0.611707 |
628e3af4cc5cb6e58d18f5cc5cb3e577b8f614bb | 1,533 | ex | Elixir | test/support/data_case.ex | nicholasgriffen/blanche | 3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2 | [
"Apache-2.0"
] | 1 | 2021-09-07T22:04:06.000Z | 2021-09-07T22:04:06.000Z | test/support/data_case.ex | nicholasgriffen/blanche | 3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | nicholasgriffen/blanche | 3ac766a2d9dae0ecd46644e73f5335efb6f1d1b2 | [
"Apache-2.0"
] | 1 | 2021-09-11T02:04:47.000Z | 2021-09-11T02:04:47.000Z | defmodule Blanche.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to t... | 29.480769 | 88 | 0.695369 |
628e4ab0fafa7d3ca660e4a30934ba2143b94d23 | 1,367 | exs | Elixir | test/writer_test.exs | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 325 | 2015-03-03T01:44:05.000Z | 2022-03-25T20:29:58.000Z | test/writer_test.exs | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 11 | 2015-05-29T13:33:20.000Z | 2021-05-11T13:48:14.000Z | test/writer_test.exs | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 17 | 2015-04-18T09:46:50.000Z | 2019-11-12T21:28:21.000Z | defmodule Writer.Test do
use ExUnit.Case, async: true
use Monad.Operators
import Curry
import Monad.Writer
doctest Monad.Writer
test "fmap" do
assert (& &1) <|> writer(42) == writer(42)
assert (& &1) <|> writer(42, "Hello") == writer(42, "Hello")
assert (& &1) <|> writer(42, "Hello") |> runWri... | 26.803922 | 97 | 0.544989 |
628ece95c367659f99cdf0bb06de8631ba82a8bd | 1,904 | exs | Elixir | mix.exs | yusufyildirim/surface | 1cacafa275ec7fefa862af7fd86794a400652e9d | [
"MIT"
] | null | null | null | mix.exs | yusufyildirim/surface | 1cacafa275ec7fefa862af7fd86794a400652e9d | [
"MIT"
] | null | null | null | mix.exs | yusufyildirim/surface | 1cacafa275ec7fefa862af7fd86794a400652e9d | [
"MIT"
] | null | null | null | defmodule Surface.MixProject do
use Mix.Project
@version "0.5.1"
def project do
[
app: :surface,
version: @version,
elixir: "~> 1.11",
description: "A component based library for Phoenix LiveView",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.comp... | 23.506173 | 78 | 0.56355 |
628ef2d99a4f7cbe90784dbe8ff3d372edcc36f0 | 112 | ex | Elixir | test/support/repo.ex | enewbury/quarry_absinthe | 0a1b738782c1dea4071ef07b7fa4346eb1325bc8 | [
"MIT"
] | null | null | null | test/support/repo.ex | enewbury/quarry_absinthe | 0a1b738782c1dea4071ef07b7fa4346eb1325bc8 | [
"MIT"
] | null | null | null | test/support/repo.ex | enewbury/quarry_absinthe | 0a1b738782c1dea4071ef07b7fa4346eb1325bc8 | [
"MIT"
] | null | null | null | defmodule AbsintheQuarry.Repo do
use Ecto.Repo, otp_app: :absinthe_quarry, adapter: Ecto.Adapters.SQLite3
end
| 28 | 74 | 0.8125 |
628f15d7639f7be3b1dc912c27b94414a3a624aa | 19,957 | ex | Elixir | lib/postgrex/types.ex | keichan34/postgrex | f90d87b6b3b0171673c935a70369e0734b09ddbb | [
"Apache-2.0"
] | null | null | null | lib/postgrex/types.ex | keichan34/postgrex | f90d87b6b3b0171673c935a70369e0734b09ddbb | [
"Apache-2.0"
] | null | null | null | lib/postgrex/types.ex | keichan34/postgrex | f90d87b6b3b0171673c935a70369e0734b09ddbb | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Types do
@moduledoc false
alias Postgrex.TypeInfo
alias Postgrex.Utils
import Postgrex.BinaryUtils
require Decimal
use Bitwise, only_operators: true
@types ~w(bool bpchar text varchar bytea int2 int4 int8 float4 float8 numeric
date time timetz timestamp timestamptz interva... | 31.231612 | 146 | 0.612567 |
628f1752674c525501c26b4954332fed5468070d | 56 | ex | Elixir | testData/org/elixir_lang/parser_definition/list_parsing_test_case/MatchedDotMatchedCallOperationKeywordValue.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/list_parsing_test_case/MatchedDotMatchedCallOperationKeywordValue.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/list_parsing_test_case/MatchedDotMatchedCallOperationKeywordValue.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | [key: Alias.function positional, inner_key: inner_value] | 56 | 56 | 0.821429 |
628f22e0f591904041b961f518b3454b8a11050f | 832 | ex | Elixir | lib/requestbox.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 18 | 2015-11-18T09:52:34.000Z | 2021-04-27T19:38:08.000Z | lib/requestbox.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 3 | 2017-01-11T18:55:39.000Z | 2021-06-15T05:46:34.000Z | lib/requestbox.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 7 | 2016-08-17T10:24:20.000Z | 2020-07-10T13:00:36.000Z | defmodule Requestbox do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the PubSub system
{Phoenix.PubSub, name: Requestbox.PubSub... | 32 | 71 | 0.706731 |
628f24085d153bdee53b30b39660aaa2b5415f4f | 888 | ex | Elixir | lib/price_register_web/controllers/api/sale_controller.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | 4 | 2021-03-09T19:35:37.000Z | 2022-03-20T23:31:19.000Z | lib/price_register_web/controllers/api/sale_controller.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | lib/price_register_web/controllers/api/sale_controller.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | defmodule PriceRegisterWeb.API.SaleController do
use PriceRegisterWeb, :controller
alias PriceRegister.Properties
action_fallback PriceRegisterWeb.FallbackController
def index(conn, %{"after" => after_cursor}) do
%{entries: sales, metadata: metadata} = Properties.list_sales(after: after_cursor)
rende... | 31.714286 | 88 | 0.711712 |
628f32927cfe32cf751ed7fb103c7852034a9fb7 | 603 | exs | Elixir | test/telcofinder_web/views/error_view_test.exs | finderbar/telcofinder | 9995a14563218bb978bdde86eb8c19ab0dbbbf0c | [
"MIT"
] | null | null | null | test/telcofinder_web/views/error_view_test.exs | finderbar/telcofinder | 9995a14563218bb978bdde86eb8c19ab0dbbbf0c | [
"MIT"
] | null | null | null | test/telcofinder_web/views/error_view_test.exs | finderbar/telcofinder | 9995a14563218bb978bdde86eb8c19ab0dbbbf0c | [
"MIT"
] | null | null | null | defmodule TelcofinderWeb.ErrorViewTest do
use TelcofinderWeb.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(TelcofinderWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test ... | 27.409091 | 72 | 0.694859 |
628f42cb929032b39cbb86f1cd2a9ced947dcbcc | 1,680 | ex | Elixir | lib/bandit/http2/flow_control.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | 226 | 2020-05-18T09:36:32.000Z | 2022-03-30T00:25:51.000Z | lib/bandit/http2/flow_control.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | 11 | 2021-10-11T13:48:24.000Z | 2022-03-05T20:18:11.000Z | lib/bandit/http2/flow_control.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | 7 | 2020-05-18T09:36:35.000Z | 2022-02-08T11:12:16.000Z | defmodule Bandit.HTTP2.FlowControl do
@moduledoc false
# Helpers for working with flow control window calculations
use Bitwise
@max_window_increment (1 <<< 31) - 1
@max_window_size (1 <<< 31) - 1
@min_window_size 1 <<< 30
@spec compute_recv_window(non_neg_integer(), non_neg_integer()) ::
{non... | 38.181818 | 100 | 0.716667 |
628f7fa07268175e6a5efcf6a881e19a2ac605fb | 196,990 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/api/accounts.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/api/accounts.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/api/accounts.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.823779 | 187 | 0.619427 |
628f84828adc282f59280e431072fac3e0da8a5c | 701 | ex | Elixir | lib/animu/web/controllers/fallback_controller.ex | elarkham/animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | 1 | 2018-01-02T06:59:08.000Z | 2018-01-02T06:59:08.000Z | lib/animu/web/controllers/fallback_controller.ex | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | lib/animu/web/controllers/fallback_controller.ex | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | defmodule Animu.Web.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
"""
use Animu.Web, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_status(:unprocessable_entity)
|> put_view(Animu.Web.ChangesetView)
... | 24.172414 | 72 | 0.663338 |
628f979d631249b78b3d52f23b5fc417b9982565 | 260 | ex | Elixir | web/views/user_task_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/views/user_task_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/views/user_task_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.UserTaskView do
use CodeCorps.PreloadHelpers, default_preloads: [:task, :user]
use CodeCorps.Web, :view
use JaSerializer.PhoenixView
has_one :task, serializer: CodeCorps.TaskView
has_one :user, serializer: CodeCorps.UserView
end
| 28.888889 | 64 | 0.792308 |
628f9db74f273f13ba0433c35c2f1bdd7524deae | 1,526 | ex | Elixir | priv/example-projects/foo_bar_umbrella/apps/foo_bar/test/support/data_case.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar/test/support/data_case.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar/test/support/data_case.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | defmodule FooBar.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to th... | 27.25 | 77 | 0.687418 |
628fcad949aa3118b089f141026733f016e12e8d | 88 | exs | Elixir | test/game/character_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/character_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/character_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.CharacterTest do
use ExUnit.Case
doctest Game.Character.Helpers
end
| 14.666667 | 32 | 0.806818 |
628fdb15665b6f8f076c11708903a5adfc445bf5 | 18,363 | ex | Elixir | lib/commanded/process_managers/process_manager_instance.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | lib/commanded/process_managers/process_manager_instance.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | lib/commanded/process_managers/process_manager_instance.ex | octowombat/commanded | 79a1965e276d3369dcf70ae65ef904d7e59f4a6a | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.ProcessManagers.ProcessManagerInstance do
@moduledoc false
use GenServer, restart: :temporary
require Logger
alias Commanded.Application
alias Commanded.ProcessManagers.{ProcessRouter, FailureContext}
alias Commanded.EventStore
alias Commanded.EventStore.{RecordedEvent, SnapshotData... | 31.17657 | 100 | 0.657463 |
628fe0f2b44bac6cee89782a8974999d4e31b4b4 | 1,008 | ex | Elixir | clients/elixir/generated/lib/cloud_manager_api/model/pipeline_execution_list_representation__links.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 3 | 2020-06-23T05:31:52.000Z | 2020-11-26T05:34:57.000Z | clients/elixir/generated/lib/cloud_manager_api/model/pipeline_execution_list_representation__links.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 2 | 2021-01-21T01:19:54.000Z | 2021-12-09T22:30:22.000Z | clients/elixir/generated/lib/cloud_manager_api/model/pipeline_execution_list_representation__links.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 1 | 2020-11-18T11:48:13.000Z | 2020-11-18T11:48:13.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule CloudManagerAPI.Model.PipelineExecutionListRepresentationLinks do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"next",
... | 27.243243 | 94 | 0.685516 |
629016dc2ea6fd10266c3a968bd6b6cff75d2f4e | 982 | exs | Elixir | test/parsers/feedburner_rss2_entry_test.exs | andyl/elixir-feed-parser | c26d26fafc02cf0e6aca61d7f66043a137371d84 | [
"MIT"
] | null | null | null | test/parsers/feedburner_rss2_entry_test.exs | andyl/elixir-feed-parser | c26d26fafc02cf0e6aca61d7f66043a137371d84 | [
"MIT"
] | null | null | null | test/parsers/feedburner_rss2_entry_test.exs | andyl/elixir-feed-parser | c26d26fafc02cf0e6aca61d7f66043a137371d84 | [
"MIT"
] | null | null | null | defmodule ElixirFeedParser.Test.FeedburnerRSS2EntryTest do
use ExUnit.Case
alias ElixirFeedParser.XmlNode
alias ElixirFeedParser.Parsers.FeedburnerRSS2
setup do
example1_file = File.read!("test/fixtures/rss2/TechCrunch.xml")
example2_file = File.read!("test/fixtures/rss2/rsn_cnn.xml")
example1 = w... | 42.695652 | 123 | 0.738289 |
6290225d2de87b8dd262dce79d536ff940f49ea5 | 382 | exs | Elixir | test/models/user_test.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | test/models/user_test.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | test/models/user_test.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | defmodule Core.UserTest do
use Core.ModelCase
alias Core.User
@valid_attrs %{}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes" do
changeset = User.changeset(%... | 20.105263 | 55 | 0.709424 |
62903dbf5f31787deb22d6e1758435cff589586d | 849 | ex | Elixir | lib/ecto_job/web.ex | connorjacobsen/ecto_job_web | 9fc6b3b8c7edadbc050b680555ae1a5f71ebbd78 | [
"MIT"
] | null | null | null | lib/ecto_job/web.ex | connorjacobsen/ecto_job_web | 9fc6b3b8c7edadbc050b680555ae1a5f71ebbd78 | [
"MIT"
] | null | null | null | lib/ecto_job/web.ex | connorjacobsen/ecto_job_web | 9fc6b3b8c7edadbc050b680555ae1a5f71ebbd78 | [
"MIT"
] | null | null | null | defmodule EctoJob.Web do
@moduledoc false
@doc false
def view do
quote do
@moduledoc false
use Phoenix.View,
namespace: EctoJob.Web,
root: "lib/ecto_job/web/templates"
unquote(view_helpers())
end
end
@doc false
def live_view do
quote do
@moduledoc fals... | 16.326923 | 51 | 0.638398 |
6290729346630644e0e9e8932e982fca280428f5 | 36,950 | ex | Elixir | deps/decimal/lib/decimal.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/decimal/lib/decimal.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/decimal/lib/decimal.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Decimal do
@moduledoc """
Decimal arithmetic on arbitrary precision floating-point numbers.
A number is represented by a signed coefficient and exponent such that: `sign
* coefficient * 10^exponent`. All numbers are represented and calculated
exactly, but the result of an operation may be rounded d... | 31.128896 | 124 | 0.624303 |
629081098a13dae58f79ea6e429a7e9861aad53a | 6,667 | exs | Elixir | test/mongo/connection_test.exs | reetou/elixir-mongodb-driver | b17b8fa337a3fdea783bbb991984f93a4848b652 | [
"Apache-2.0"
] | null | null | null | test/mongo/connection_test.exs | reetou/elixir-mongodb-driver | b17b8fa337a3fdea783bbb991984f93a4848b652 | [
"Apache-2.0"
] | null | null | null | test/mongo/connection_test.exs | reetou/elixir-mongodb-driver | b17b8fa337a3fdea783bbb991984f93a4848b652 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.ConnectionTest do
use MongoTest.Case, async: true
alias Mongo
import ExUnit.CaptureLog
defp connect do
assert {:ok, pid} =
Mongo.start_link(hostname: "localhost", database: "mongodb_test")
pid
end
defp connect_auth do
assert {:ok, pid} =
Mongo.start_link(... | 31.009302 | 152 | 0.581821 |
629081438a0be45860c2d1b652852fba06614ac8 | 1,806 | ex | Elixir | clients/replica_pool/lib/google_api/replica_pool/v1beta1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/replica_pool/lib/google_api/replica_pool/v1beta1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/replica_pool/lib/google_api/replica_pool/v1beta1/connection.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 ... | 37.625 | 105 | 0.737542 |
6290b724a43b53289f408818714db20d08be686a | 6,125 | exs | Elixir | test/client_tests/encryption_test.exs | juljimm/opex62541 | c44c157213a8a3fb07283f6e697e6dd018693315 | [
"MIT"
] | null | null | null | test/client_tests/encryption_test.exs | juljimm/opex62541 | c44c157213a8a3fb07283f6e697e6dd018693315 | [
"MIT"
] | null | null | null | test/client_tests/encryption_test.exs | juljimm/opex62541 | c44c157213a8a3fb07283f6e697e6dd018693315 | [
"MIT"
] | null | null | null | defmodule ClientEncryptionTest do
use ExUnit.Case
alias OpcUA.{Client, NodeId, Server, QualifiedName}
setup do
{:ok, s_pid} = Server.start_link()
certs_config = [
port: 4840,
certificate: File.read!("./certs/server_cert.der"),
private_key: File.read!("./certs/server_key.der")
]
... | 38.522013 | 105 | 0.718204 |
6290bc98729154921985e2b951fde1c991327037 | 660,740 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/api/organizations.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/api/organizations.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/api/organizations.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.28691 | 1,691 | 0.62241 |
6290ee5b5efe8d82c64192a754bbae7cac213b80 | 1,000 | exs | Elixir | apps/ch1/test/listing1_1_test.exs | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | apps/ch1/test/listing1_1_test.exs | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | apps/ch1/test/listing1_1_test.exs | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | defmodule Listing1_1.Test do
use ExUnit.Case, async: true
alias Listing1_1.Account
alias Listing1_1.CheckingAccount
alias Listing1_1.AccountFactory
test "Using Account module struct" do
account = %Account{no: 42}
assert account.no === 42
end
test "Using CheckingAccount mod... | 29.411765 | 99 | 0.676 |
62910e3d4913728b4a9a14ed530c56e456eb84a4 | 1,659 | ex | Elixir | lib/oban/queue/watchman.ex | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | 2,219 | 2019-04-10T01:50:19.000Z | 2022-03-30T11:20:01.000Z | lib/oban/queue/watchman.ex | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | 532 | 2019-05-16T00:22:28.000Z | 2022-03-31T19:04:02.000Z | lib/oban/queue/watchman.ex | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | 230 | 2019-05-15T14:15:18.000Z | 2022-03-23T22:59:43.000Z | defmodule Oban.Queue.Watchman do
@moduledoc false
use GenServer
alias Oban.Queue.Producer
@type option ::
{:name, module()}
| {:foreman, identifier()}
| {:producer, identifier()}
| {:shutdown, timeout()}
defmodule State do
@moduledoc false
defstruct [:forem... | 22.418919 | 91 | 0.627486 |
6291133d3e2b8fe7ed08f944cdbffcf47adb872c | 1,718 | ex | Elixir | web/web.ex | enixdark/audit_api | 3aa6e9169cd9e80f06d91e4104438398a012a86f | [
"MIT"
] | 1 | 2018-01-20T00:58:33.000Z | 2018-01-20T00:58:33.000Z | web/web.ex | enixdark/audit_api | 3aa6e9169cd9e80f06d91e4104438398a012a86f | [
"MIT"
] | null | null | null | web/web.ex | enixdark/audit_api | 3aa6e9169cd9e80f06d91e4104438398a012a86f | [
"MIT"
] | null | null | null | defmodule AuditApi.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use AuditApi.Web, :controller
use AuditApi.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them ... | 20.95122 | 88 | 0.664726 |
629130ceb14df3d39f49e29fa9a61e8fcb9fad1a | 492 | ex | Elixir | web/models/eye.ex | kerlak/phoenix-elm-test | 4f999504069cc6f96e83ce7c918ada5947c96eb7 | [
"MIT"
] | 1 | 2019-03-06T16:02:16.000Z | 2019-03-06T16:02:16.000Z | web/models/eye.ex | kerlak/phoenix-elm-test | 4f999504069cc6f96e83ce7c918ada5947c96eb7 | [
"MIT"
] | null | null | null | web/models/eye.ex | kerlak/phoenix-elm-test | 4f999504069cc6f96e83ce7c918ada5947c96eb7 | [
"MIT"
] | null | null | null | defmodule Pet.Eye do
@moduledoc """
"""
defstruct id: 0, life: 1, position_x: 0, position_y: 0, skin: 0, state: 7
def new() do
%__MODULE__{id: generate_id, skin: random_skin, state: 7}
end
def update(eye, position_x, position_y) do
%{eye | position_x: position_x, position_y: position_y}
end
... | 18.222222 | 75 | 0.654472 |
62913246cc0cfaa194cde1dffc209522aa268bfe | 1,602 | exs | Elixir | test/time_zone_info/application_test.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | 5 | 2020-04-05T16:03:03.000Z | 2022-02-07T22:11:04.000Z | test/time_zone_info/application_test.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | 16 | 2020-03-28T17:46:13.000Z | 2021-08-25T08:35:48.000Z | test/time_zone_info/application_test.exs | hrzndhrn/time_zone_info | 18fa4e7aefd68d256202de8e0f96b69b8a9dc618 | [
"MIT"
] | null | null | null | defmodule TimeZoneInfo.ApplicationTest do
use ExUnit.Case
import TimeZoneInfo.TestUtils
test "start" do
put_env(
files: [
"africa",
"antarctica",
"asia",
"australasia",
"backward",
"etcetera",
"europe",
"northamerica",
"southameri... | 27.152542 | 78 | 0.555556 |
62913862800c4dd381465c0f3ea13189fca4c21a | 6,790 | exs | Elixir | test/githubist_web/graphql/queries/developers_test.exs | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | test/githubist_web/graphql/queries/developers_test.exs | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | test/githubist_web/graphql/queries/developers_test.exs | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule GithubistWeb.GraphQL.DevelopersTest do
use GithubistWeb.ConnCase
import GithubistWeb.TestSupport.GraphQLHelper
alias Githubist.TestSupport.DevelopersHelper
alias Githubist.TestSupport.LanguagesHelper
alias Githubist.TestSupport.LocationsHelper
alias Githubist.TestSupport.RepositoriesHelper
@b... | 29.521739 | 92 | 0.481443 |
629163e3fe0e5721d786d033065ff90bbc7d91b7 | 284 | ex | Elixir | broadway_test/test_messages.ex | kujua/blog-kujuahub-articles-code | 1a65b1a481cbf5269a3f8846a5ac353937d45a2d | [
"Apache-2.0"
] | 2 | 2019-05-25T13:25:33.000Z | 2019-05-29T15:36:17.000Z | broadway_test/test_messages.ex | kujua/blog-kujuahub-articles-code | 1a65b1a481cbf5269a3f8846a5ac353937d45a2d | [
"Apache-2.0"
] | null | null | null | broadway_test/test_messages.ex | kujua/blog-kujuahub-articles-code | 1a65b1a481cbf5269a3f8846a5ac353937d45a2d | [
"Apache-2.0"
] | null | null | null | @tag :broadway
test "broadway pipeline integration test" do
ref = Broadway.test_messages(RabbitBroadway, ["S3R556,warthog.jpg,jpg,assets/,assets/,processed-01,png"])
# assert_receive {:ack, ^ref, successful, failed}
Process.sleep(1000)
IO.inspect(ref, label: "Reference")
end
| 35.5 | 107 | 0.746479 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.