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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e984991e95ab4d2a706aa2a554a916dda2733e08 | 689 | exs | Elixir | config/hex.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | config/hex.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | config/hex.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :hexpm,
user_confirm: false,
docs_url: System.get_env("HEX_DOCS_URL") || "http://localhost:4043",
cdn_url: System.get_env("HEX_CDN_URL") || "http://localhost:4043",
secret: System.get_env("HEX_SECRET") || "796f75666f756e64746865686578"
config :hexpm, Hexpm.Web.Endpoint,... | 26.5 | 80 | 0.706821 |
e9849ef063e1de3ab9501457c07c405e197acf02 | 1,703 | ex | Elixir | lib/visualixir_web/channels/trace_channel.ex | BeastNeedsMoreTorque/visualixir | c3fcef1188c25b214326a547e643d9c6feecb24d | [
"MIT"
] | 1 | 2019-04-21T12:35:01.000Z | 2019-04-21T12:35:01.000Z | lib/visualixir_web/channels/trace_channel.ex | hoangpq/visualixir | a8efdee3faea00cf59ae74f4bf8bcfa36e7b6d79 | [
"MIT"
] | null | null | null | lib/visualixir_web/channels/trace_channel.ex | hoangpq/visualixir | a8efdee3faea00cf59ae74f4bf8bcfa36e7b6d79 | [
"MIT"
] | null | null | null | defmodule VisualixirWeb.TraceChannel do
use Visualixir.Web, :channel
alias Visualixir.Tracer
alias VisualixirWeb.Endpoint
alias Phoenix.Socket
def join("trace:" <> node, _auth_msg, socket) do
node = String.to_atom(node)
Tracer.send_module(node)
Tracer.start(node)
{:ok, Tracer.initial_state(n... | 28.864407 | 89 | 0.630065 |
e984b3e1f9fa2a6eeaa812bd7811901394005be1 | 331 | ex | Elixir | test/support/config_helpers.ex | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | test/support/config_helpers.ex | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | test/support/config_helpers.ex | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Shippo.ConfigHelpers do
@moduledoc """
Configuration helpers for testing.
"""
def put_envs(configs) do
Application.put_all_env(shippo: configs)
end
def put_env(key, value) do
Application.put_env(:shippo, key, value)
end
def delete_env(key) do
Application.delete_env(:shippo, key)... | 18.388889 | 44 | 0.712991 |
e984b53e6014c5d40d5df38569819b964b92dc92 | 1,866 | exs | Elixir | clients/spanner/mix.exs | dsdshcym/elixir-google-api | 2d9eef7207bb422d7ecfc1ec780721c6abd0ac81 | [
"Apache-2.0"
] | null | null | null | clients/spanner/mix.exs | dsdshcym/elixir-google-api | 2d9eef7207bb422d7ecfc1ec780721c6abd0ac81 | [
"Apache-2.0"
] | null | null | null | clients/spanner/mix.exs | dsdshcym/elixir-google-api | 2d9eef7207bb422d7ecfc1ec780721c6abd0ac81 | [
"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.850746 | 145 | 0.657556 |
e984cfb468edc44fdcafb2558a395e6bd322ab04 | 472 | exs | Elixir | config/.credo.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | config/.credo.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | config/.credo.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/"]
},
checks: [
{Credo.Check.Readability.ModuleDoc, false},
{Credo.Check.Design.TagTODO, false},
{Credo.Check.Readability.RedundantBlankLines, max_blank_lines: 2},
{Credo.Check.Readability.P... | 24.842105 | 74 | 0.580508 |
e984dc900cde9c0b51753275a7f9fd0ecaab0331 | 1,685 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_image_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_image_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_image_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.851064 | 170 | 0.765579 |
e984e0bb9d98cf3abac61d3ef29339638cd6d51a | 841 | exs | Elixir | apps/ewallet/test/ewallet/web/url_validator_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/test/ewallet/web/url_validator_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/url_validator_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Web.UrlValidatorTest do
use EWallet.DBCase
alias EWallet.Web.UrlValidator
alias EWalletConfig.Config
describe "allowed_redirect_url?/1" do
test "returns true if the given url has the whitelisted prefix", meta do
{:ok, _settings} =
Config.update(
[redirect_url_prefi... | 32.346154 | 86 | 0.712247 |
e984e401aa3138157dce10ca833673f968188075 | 1,044 | ex | Elixir | utils/shorten_api/lib/shorten_api/application.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | utils/shorten_api/lib/shorten_api/application.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | utils/shorten_api/lib/shorten_api/application.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule ShortenApi.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.625 | 88 | 0.719349 |
e984fc7a8353051dc8a639ee790eaf4a0fe399a0 | 6,154 | exs | Elixir | test/bgg_xml_api2_test.exs | daybreaker/bgg_xml_api2 | 0c193adbf43acf5771959a01a416478eefbdb978 | [
"Unlicense"
] | null | null | null | test/bgg_xml_api2_test.exs | daybreaker/bgg_xml_api2 | 0c193adbf43acf5771959a01a416478eefbdb978 | [
"Unlicense"
] | null | null | null | test/bgg_xml_api2_test.exs | daybreaker/bgg_xml_api2 | 0c193adbf43acf5771959a01a416478eefbdb978 | [
"Unlicense"
] | null | null | null | defmodule BggXmlApi2Test do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
setup_all do
HTTPoison.start()
end
test "board game info convenience function" do
use_cassette "search_and_info_on_scythe" do
assert BggXmlApi2.board_game_info("Scythe") ==
{... | 57.514019 | 2,404 | 0.594085 |
e9854be2ec7554bbcba584ed857a50aa7997172d | 197 | exs | Elixir | test/controllers/page_controller_test.exs | mogetutu/didactic-invention | be25678ba30ca5b9efc1b27e9f7c79350f53ab95 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | mogetutu/didactic-invention | be25678ba30ca5b9efc1b27e9f7c79350f53ab95 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | mogetutu/didactic-invention | be25678ba30ca5b9efc1b27e9f7c79350f53ab95 | [
"MIT"
] | null | null | null | defmodule ElixirApp.PageControllerTest do
use ElixirApp.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.888889 | 60 | 0.680203 |
e9856799925476dd25c58e39b7ea99ea0fd07eab | 942 | exs | Elixir | test/postgres/ex_tenant_pg_test.exs | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | 1 | 2022-02-09T23:17:09.000Z | 2022-02-09T23:17:09.000Z | test/postgres/ex_tenant_pg_test.exs | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | test/postgres/ex_tenant_pg_test.exs | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | defmodule ExTenantPgTest do
use ExTenant.Postgres.Cases.DataCase
alias ExTenant.Support.PgTestTenantRepository, as: TenantRepo
setup do
{:ok, tenant} = TenantRepo.create_tenant("foo")
{:ok, post} = TenantRepo.create_post("p1", "pb1", tenant.tenant_id)
{:ok, comment} = TenantRepo.create_comment("c1",... | 28.545455 | 86 | 0.667728 |
e98568c98b4a17694932b2f25bdb2ab72c8ef009 | 141 | ex | Elixir | lab1/apps/messagelib/lib/message/serialize_protocol_json.ex | AlexandruBurlacu/distributed-systems-labs | 116164eb12f9b6e492bf2e6a2bb434d76abf1892 | [
"MIT"
] | null | null | null | lab1/apps/messagelib/lib/message/serialize_protocol_json.ex | AlexandruBurlacu/distributed-systems-labs | 116164eb12f9b6e492bf2e6a2bb434d76abf1892 | [
"MIT"
] | 8 | 2018-12-03T20:42:30.000Z | 2019-01-10T13:49:09.000Z | lab1/apps/messagelib/lib/message/serialize_protocol_json.ex | AlexandruBurlacu/distributed-systems-labs | 116164eb12f9b6e492bf2e6a2bb434d76abf1892 | [
"MIT"
] | null | null | null | defprotocol MessageLib.Message.Serialize.JSON do
@doc """
Serializes a message into JSON string
"""
def serialize(msg)
end
| 15.666667 | 48 | 0.680851 |
e985997d368893e666db20cb7aedbff2ebb7e1a5 | 8,125 | exs | Elixir | test/socket_client_test.exs | axelson/phoenix_gen_socket_client | 4a9aa4e7d36777e157f0156f8081aab50d5b5c14 | [
"MIT"
] | null | null | null | test/socket_client_test.exs | axelson/phoenix_gen_socket_client | 4a9aa4e7d36777e157f0156f8081aab50d5b5c14 | [
"MIT"
] | null | null | null | test/socket_client_test.exs | axelson/phoenix_gen_socket_client | 4a9aa4e7d36777e157f0156f8081aab50d5b5c14 | [
"MIT"
] | null | null | null | defmodule Phoenix.Channels.GenSocketClientTest do
use ExUnit.Case, async: false
alias TestSite.Endpoint
alias Phoenix.Channels.GenSocketClient.TestSocket
setup_all do
ExUnit.CaptureLog.capture_log(fn -> Endpoint.start_link() end)
:ok
end
setup do
TestSite.Channel.subscribe()
:ok
end
... | 35.951327 | 96 | 0.667815 |
e9859f225d85b37cd6e13e7ecea57141262917a3 | 195 | ex | Elixir | test/support/test_log_level_live.ex | nallwhy/life_cycle_hook | c577e059f0e4c99fe617f377ceedc413df09af45 | [
"MIT"
] | 6 | 2022-02-21T19:00:16.000Z | 2022-03-20T06:34:40.000Z | test/support/test_log_level_live.ex | nallwhy/life_cycle_hook | c577e059f0e4c99fe617f377ceedc413df09af45 | [
"MIT"
] | 1 | 2022-02-15T00:03:29.000Z | 2022-02-15T11:40:08.000Z | test/support/test_log_level_live.ex | nallwhy/life_cycle_hook | c577e059f0e4c99fe617f377ceedc413df09af45 | [
"MIT"
] | 1 | 2022-02-13T09:36:12.000Z | 2022-02-13T09:36:12.000Z | defmodule LifeCycleHookTest.TestLogLevelLive do
use Phoenix.LiveView
use LifeCycleHook, log_level: :warn
@impl true
def render(assigns) do
~H"""
test log level
"""
end
end
| 16.25 | 47 | 0.697436 |
e985c0e0a1b8c370861996c8d9c961b3229de215 | 2,283 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/readiness_check.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/readiness_check.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/readiness_check.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... | 39.362069 | 213 | 0.751205 |
e985cba216bfc80a883fa2b70a5bf928bad13e6c | 1,359 | exs | Elixir | mix.exs | tashirosota/ecto_notes | 3ff04b676d9e7eafad177be1760216cd46d3d34a | [
"Apache-2.0"
] | 42 | 2022-03-18T21:54:17.000Z | 2022-03-31T22:03:19.000Z | mix.exs | tashirosota/ecto_notes | 3ff04b676d9e7eafad177be1760216cd46d3d34a | [
"Apache-2.0"
] | 8 | 2022-03-17T06:04:18.000Z | 2022-03-31T01:36:03.000Z | mix.exs | tashirosota/model_changes | 3ff04b676d9e7eafad177be1760216cd46d3d34a | [
"Apache-2.0"
] | 1 | 2022-03-29T14:24:39.000Z | 2022-03-29T14:24:39.000Z | defmodule EctoCellar.MixProject do
use Mix.Project
@source_url "https://github.com/tashirosota/ecto_cellar"
@description "Store changes to your models, for auditing or versioning."
def project do
[
app: :ecto_cellar,
version: "0.4.0",
elixir: "~> 1.10",
description: @description,
... | 22.278689 | 78 | 0.540839 |
e985d470fe7a4f41263dc523857593e80da23c09 | 925 | exs | Elixir | mix.exs | bbalser/json_serde | 26d1506d0b33502d1424bf5cafc14ec64ca481ca | [
"Apache-2.0"
] | 5 | 2020-05-29T18:14:50.000Z | 2021-11-09T14:23:45.000Z | mix.exs | bbalser/json_serde | 26d1506d0b33502d1424bf5cafc14ec64ca481ca | [
"Apache-2.0"
] | 5 | 2020-05-29T19:12:47.000Z | 2021-08-24T23:51:34.000Z | mix.exs | bbalser/json_serde | 26d1506d0b33502d1424bf5cafc14ec64ca481ca | [
"Apache-2.0"
] | 1 | 2020-05-29T18:18:23.000Z | 2020-05-29T18:18:23.000Z | defmodule JsonSerde.MixProject do
use Mix.Project
def project do
[
app: :json_serde,
version: "1.0.2",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
consolidate_protocols: Mix.env() != :test
... | 21.022727 | 99 | 0.565405 |
e986074ed4ae0a6c347b1f182784d918daef2aff | 2,068 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.018868 | 143 | 0.738395 |
e98612ae328c8ee26930cd6d94201f84a1e308b1 | 2,138 | exs | Elixir | apps/snitch_core/priv/repo/migrations/20181206051428_update_order_state_type.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/migrations/20181206051428_update_order_state_type.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/migrations/20181206051428_update_order_state_type.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Repo.Migrations.UpdateOrderStateType do
use Ecto.Migration
import Ecto.Query
alias Snitch.Data.Schema
alias Snitch.Repo
def up do
state_map =
OrderStateEnum.__enum_map__()
|> Enum.into(%{}, fn x -> {elem(x, 0) |> Atom.to_string(), elem(x, 1)} end)
id_state_map =
R... | 24.860465 | 86 | 0.528064 |
e98614370530c5f001798a09f1bb96a23f305163 | 1,467 | ex | Elixir | lib/blog_phx_web/router.ex | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 2 | 2021-09-28T13:06:31.000Z | 2021-10-03T14:41:14.000Z | lib/blog_phx_web/router.ex | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 8 | 2021-09-05T00:40:16.000Z | 2021-12-04T22:41:00.000Z | lib/blog_phx_web/router.ex | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | null | null | null | defmodule BlogPhxWeb.Router do
use BlogPhxWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug BlogPhxWeb.Plug.SetUser
end
# coveralls-ignore-start
pipeline :api do
plug :a... | 24.864407 | 70 | 0.700068 |
e98618dc605022a5634cb89a0d0f655bf010fc16 | 3,387 | ex | Elixir | lib/canvas_api/services/thread_subscription_service.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | lib/canvas_api/services/thread_subscription_service.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | lib/canvas_api/services/thread_subscription_service.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.ThreadSubscriptionService do
@moduledoc """
A service for viewing and manipulating thread subscriptions.
"""
use CanvasAPI.Web, :service
alias CanvasAPI.{Account, Canvas, CanvasService, ThreadSubscription,
UserService}
@preload [:user, canvas: [:team]]
@doc """
... | 32.257143 | 78 | 0.653381 |
e9862893e501c44cdd2e3e29f05c2d916dc35021 | 703 | ex | Elixir | apps/memo_web/lib/memo_web/gettext.ex | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | apps/memo_web/lib/memo_web/gettext.ex | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | apps/memo_web/lib/memo_web/gettext.ex | michaeljbishop/memo_app | 58a2a547a6e40eb518ea8b193514fea368e80704 | [
"MIT"
] | null | null | null | defmodule MemoWeb.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 MemoWeb.Gettext
# Simple translation
gettext "Here is the str... | 28.12 | 72 | 0.678521 |
e98653c1f39b0ba7ebd63cf0f8515d1cfc4d8748 | 4,098 | ex | Elixir | lib/mssqlex/odbc.ex | pulzze/mssqlex | 94ba63c951efad97cea915b52147993e1350e56c | [
"Apache-2.0"
] | 45 | 2017-02-21T13:30:21.000Z | 2021-12-19T20:04:49.000Z | lib/mssqlex/odbc.ex | pulzze/mssqlex | 94ba63c951efad97cea915b52147993e1350e56c | [
"Apache-2.0"
] | 21 | 2017-03-29T11:48:40.000Z | 2020-12-11T15:18:23.000Z | lib/mssqlex/odbc.ex | pulzze/mssqlex | 94ba63c951efad97cea915b52147993e1350e56c | [
"Apache-2.0"
] | 23 | 2017-04-13T10:07:34.000Z | 2022-03-26T02:38:10.000Z | defmodule Mssqlex.ODBC do
@moduledoc """
Adapter to Erlang's `:odbc` module.
This module is a GenServer that handles communication between Elixir
and Erlang's `:odbc` module. Transformations are kept to a minimum,
primarily just translating binaries to charlists and vice versa.
It is used by `Mssqlex.Prot... | 26.61039 | 81 | 0.651781 |
e9865d7c49618fb40e3c6935380854ffbddb1c1b | 423 | ex | Elixir | lib/hl7/2.3.1/datatypes/ndl.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/datatypes/ndl.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/datatypes/ndl.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.DataTypes.Ndl do
@moduledoc false
alias HL7.V2_3_1.{DataTypes}
use HL7.DataType,
fields: [
name: DataTypes.Cn,
start_datetime: DataTypes.Ts,
end_datetime: DataTypes.Ts,
point_of_care_is: nil,
room: nil,
bed: nil,
facility_hd: DataTypes.Hd,
... | 21.15 | 37 | 0.635934 |
e9867fd11dea7084c2df489a4892d84406427067 | 455 | ex | Elixir | src/apps/storage/lib/storage/application.ex | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | src/apps/storage/lib/storage/application.ex | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | 42 | 2020-04-28T20:39:12.000Z | 2022-02-27T03:54:44.000Z | src/apps/storage/lib/storage/application.ex | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | defmodule Storage.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 = [
Storage.Repo
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies a... | 23.947368 | 61 | 0.714286 |
e98688f06cbb845c5394afce0334724fca78c300 | 2,343 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_restore_agent_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2019-01-03T22:30:36.000Z | 2019-01-03T22:30:36.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_restore_agent_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_restore_agent_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.839286 | 592 | 0.71831 |
e986a3490d3c613caed7042b0bc2cf1cedd1e736 | 1,336 | ex | Elixir | ex/lib/accumulator.ex | anqurvanillapy/capdist | e066395186473e2d9ce21ff57e5e9fc1b98bb12a | [
"0BSD"
] | null | null | null | ex/lib/accumulator.ex | anqurvanillapy/capdist | e066395186473e2d9ce21ff57e5e9fc1b98bb12a | [
"0BSD"
] | null | null | null | ex/lib/accumulator.ex | anqurvanillapy/capdist | e066395186473e2d9ce21ff57e5e9fc1b98bb12a | [
"0BSD"
] | null | null | null | ## Accumulator
## ===========
##
## This maintains two states which are totals (a Map with counting results) and
## processed_pages (a MapSet of the references of processed pages).
defmodule Accumulator do
use GenServer
def start_link do
# Register a global name.
:gen_server.start_link({:global, :wc_a... | 26.72 | 80 | 0.676647 |
e986f18b3007d06d8a842b781fb017ca1f9896f6 | 62 | ex | Elixir | lib/tiptap_web/views/article_view.ex | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | 3 | 2021-08-29T03:06:05.000Z | 2022-01-13T09:29:38.000Z | lib/tiptap_web/views/article_view.ex | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | 15 | 2021-08-23T18:02:30.000Z | 2021-08-30T07:32:38.000Z | lib/tiptap_web/views/article_view.ex | EasterPeanut/tiptap-editor | cce7766925308fbebf8fc486e4f7609397c0d1fb | [
"MIT"
] | null | null | null | defmodule TiptapWeb.ArticleView do
use TiptapWeb, :view
end
| 15.5 | 34 | 0.806452 |
e986fbee88b9798ad7e7863856ad9fdf7b48cff1 | 13,373 | ex | Elixir | lib/aws/generated/data_sync.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/data_sync.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/data_sync.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DataSync do
@moduledoc """
AWS DataSync
AWS DataSync is a managed data transfer service that makes it simpler for you to
automate moving data between on-premises storage and Amazon Simple... | 37.564607 | 197 | 0.719061 |
e9870d09c73a096724f63287e070f5bd63011a5c | 1,620 | exs | Elixir | mix.exs | elixir-soap/soap | cb0d22aefe3a81be7467f9691878794a4f5e040b | [
"MIT"
] | 74 | 2019-02-15T14:00:24.000Z | 2022-03-27T06:02:43.000Z | mix.exs | elixir-soap/soap | cb0d22aefe3a81be7467f9691878794a4f5e040b | [
"MIT"
] | 23 | 2019-02-14T15:18:59.000Z | 2022-01-13T10:27:44.000Z | mix.exs | elixir-soap/soap | cb0d22aefe3a81be7467f9691878794a4f5e040b | [
"MIT"
] | 49 | 2019-04-17T12:29:45.000Z | 2022-03-16T11:45:46.000Z | defmodule Soap.MixProject do
use Mix.Project
@source_url "https://github.com/elixir-soap/soap"
@version "1.0.1"
def project do
[
app: :soap,
name: "Soap",
version: @version,
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
p... | 22.5 | 71 | 0.512963 |
e9872c8534839c9b381bf85d59cea50d5c29e57a | 690 | ex | Elixir | lib/mix/tasks/aws.gen.makefile.ex | NeoArcanjo/aws-lambda-runtime-boilerplate | dcd3beded406b3b98f624c50e56f92235381f0b1 | [
"MIT-0"
] | null | null | null | lib/mix/tasks/aws.gen.makefile.ex | NeoArcanjo/aws-lambda-runtime-boilerplate | dcd3beded406b3b98f624c50e56f92235381f0b1 | [
"MIT-0"
] | null | null | null | lib/mix/tasks/aws.gen.makefile.ex | NeoArcanjo/aws-lambda-runtime-boilerplate | dcd3beded406b3b98f624c50e56f92235381f0b1 | [
"MIT-0"
] | null | null | null | defmodule Mix.Tasks.Aws.Gen.Makefile do
@moduledoc """
Generate a Makefile for the AWS Lambda runtime.
"""
use Mix.Task
import AwsRuntime.Helpers
@shortdoc "Generate a Makefile for the project"
def run(args \\ [])
def run(["help"]) do
"""
Generate a Makefile for the project.
"""
end
... | 20.294118 | 87 | 0.607246 |
e98737b4af1885f7afd1b2a94b9a165a9331c48d | 471 | exs | Elixir | test/test_helper.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | ExUnit.start
defmodule Plug.ProcessStore do
@behaviour Plug.Session.Store
def init(_opts) do
nil
end
def get(sid, nil) do
{sid, Process.get({:session, sid}) || %{}}
end
def delete(sid, nil) do
Process.delete({:session, sid})
:ok
end
def put(nil, data, nil) do
sid = :crypto.stron... | 16.241379 | 56 | 0.622081 |
e98746d3a73b100898bfdebb399b95ae61a7fcf4 | 488 | exs | Elixir | test/central_web/controllers/account/general_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | test/central_web/controllers/account/general_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | test/central_web/controllers/account/general_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.Account.GeneralControllerTest do
use CentralWeb.ConnCase
alias Central.Helpers.GeneralTestLib
setup do
GeneralTestLib.conn_setup([])
end
test "index", %{conn: conn} do
conn = get(conn, Routes.account_general_path(conn, :index))
assert html_response(conn, 200) =~ "Groups"
... | 27.111111 | 63 | 0.719262 |
e987491856fd1ba3a41f740f9589cd3aaa23b65b | 7,442 | ex | Elixir | lib/oban/telemetry.ex | jamilabreu/oban | 5ee1781af993c93208b324024f72c0862cf076c8 | [
"Apache-2.0"
] | null | null | null | lib/oban/telemetry.ex | jamilabreu/oban | 5ee1781af993c93208b324024f72c0862cf076c8 | [
"Apache-2.0"
] | null | null | null | lib/oban/telemetry.ex | jamilabreu/oban | 5ee1781af993c93208b324024f72c0862cf076c8 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Telemetry do
@moduledoc """
Telemetry integration for event metrics, logging and error reporting.
### Job Events
Oban emits the following telemetry events for each job:
* `[:oban, :job, :start]` — at the point a job is fetched from the database and will execute
* `[:oban, :job, :stop]` — a... | 37.21 | 143 | 0.618785 |
e98749239018813b234f04c9deadfb804d3c7640 | 592 | exs | Elixir | class-2/word_count/test/word_count_test.exs | lucdelrio/elixir-training | 24ae5748fc945764dd1b3f673b408593c22f93a2 | [
"MIT"
] | null | null | null | class-2/word_count/test/word_count_test.exs | lucdelrio/elixir-training | 24ae5748fc945764dd1b3f673b408593c22f93a2 | [
"MIT"
] | 1 | 2020-05-07T15:39:30.000Z | 2020-05-07T15:39:30.000Z | class-2/word_count/test/word_count_test.exs | lucdelrio/elixir-training | 24ae5748fc945764dd1b3f673b408593c22f93a2 | [
"MIT"
] | null | null | null | defmodule WordCountTest do
use ExUnit.Case
doctest WordCount
test "return success when there is 2 'world in the phrase" do
assert WordCount.count_occurrences("Hello to all the world world") == %{"hello" => 1, "to" => 1, "all" => 1, "the" => 1, "world" => 2}
end
test "return success when there is a numbe... | 42.285714 | 138 | 0.625 |
e9875d3616407b592dfa53ddc2697d936e91f60f | 1,951 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accountstatuses_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accountstatuses_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accountstatuses_list_response.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... | 36.811321 | 190 | 0.73142 |
e9876ddbae0089da49eaff57e28e9af048208f22 | 719 | ex | Elixir | lib/metar_map/gpio.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | lib/metar_map/gpio.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | 2 | 2022-02-19T17:09:09.000Z | 2022-02-19T17:10:29.000Z | lib/metar_map/gpio.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | defmodule MetarMap.Gpio do
@moduledoc """
Configures and accesses GPIO pins.
This is a wrapper around Circuits.GPIO, so that we can use mock GPIO in the host environment where Circuits.GPIO isn't available.
"""
@behaviour MetarMap.Gpio.Adapter
@impl true
def open(pin, direction) do
adapter().open(p... | 21.147059 | 131 | 0.713491 |
e98775fbd280cc8778eb1bba89b6c361212ba426 | 54,054 | exs | Elixir | test/elixir/test/replication_test.exs | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | 1 | 2019-03-17T03:56:29.000Z | 2019-03-17T03:56:29.000Z | test/elixir/test/replication_test.exs | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/replication_test.exs | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | null | null | null | defmodule ReplicationTest do
use CouchTestCase
@moduledoc """
Test CouchDB View Collation Behavior
This is a port of the view_collation.js suite
"""
# TODO: Parameterize these
@admin_account "adm:pass"
@db_pairs_prefixes [
{"local-to-local", "", ""},
{"remote-to-local", "http://127.0.0.1:15984... | 29.963415 | 82 | 0.619547 |
e98789c72cb1e280a670a1c68e1ec17f6134d96c | 2,745 | exs | Elixir | test/pco_api/people/field_definition_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-13T20:04:32.000Z | 2020-12-03T11:25:01.000Z | test/pco_api/people/field_definition_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 23 | 2016-05-14T01:34:02.000Z | 2016-08-16T22:34:40.000Z | test/pco_api/people/field_definition_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-27T23:40:39.000Z | 2019-10-06T17:36:40.000Z | defmodule PcoApi.People.Person.FieldDefinitionTest do
use ExUnit.Case, async: false
alias PcoApi.People.FieldDefinition
alias TestHelper.Fixture
setup do
bypass = Bypass.open
Application.put_env(:pco_api, :endpoint_base, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
test ".list... | 29.836957 | 96 | 0.64918 |
e9878da50c37b547bf94d1b047a5f37640217753 | 982 | exs | Elixir | config/test.exs | nelsonmfinda/discuss | 219144cd82240a6acd1335710a8f0a8d1b6b4a88 | [
"MIT"
] | null | null | null | config/test.exs | nelsonmfinda/discuss | 219144cd82240a6acd1335710a8f0a8d1b6b4a88 | [
"MIT"
] | null | null | null | config/test.exs | nelsonmfinda/discuss | 219144cd82240a6acd1335710a8f0a8d1b6b4a88 | [
"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 :discuss, Discuss.Repo,
username: "postgres",
password: "postgres",
database: "discuss_test#{System.get... | 31.677419 | 86 | 0.758656 |
e987dc5c2d97e677162605677ef11b4d6cb03631 | 1,159 | exs | Elixir | mix.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | 1 | 2021-02-21T19:15:27.000Z | 2021-02-21T19:15:27.000Z | mix.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | mix.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.MixProject do
use Mix.Project
def project do
[
app: :four_lucha,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "FourLucha",
source_url: "https://github.com/Thomas-Jean/four_lucha",
do... | 22.72549 | 78 | 0.54616 |
e987fabad0e572fcc67c0c70537d422049c76f4a | 487 | exs | Elixir | config/test.exs | dydx/codebeat-test | 0d81a42f253afbcdd953c566c7987363b22d585d | [
"MIT"
] | null | null | null | config/test.exs | dydx/codebeat-test | 0d81a42f253afbcdd953c566c7987363b22d585d | [
"MIT"
] | null | null | null | config/test.exs | dydx/codebeat-test | 0d81a42f253afbcdd953c566c7987363b22d585d | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :codebeat_test, CodebeatTest.Repo,
username: "postgres",
password: "postgres",
database: "codebeat_test_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option be... | 25.631579 | 56 | 0.747433 |
e9883b937915e2122720c510d1de28e2ca968386 | 12,335 | ex | Elixir | lib/geometry/geometry_collection.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | lib/geometry/geometry_collection.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | 2 | 2020-10-25T10:06:07.000Z | 2020-10-26T18:15:20.000Z | lib/geometry/geometry_collection.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | defmodule Geometry.GeometryCollection do
@moduledoc """
A collection set of 2D geometries.
`GeometryCollection` implements the protocols `Enumerable` and `Collectable`.
## Examples
iex> Enum.map(
...> GeometryCollection.new([
...> Point.new(11, 12),
...> LineString.new([
... | 28.887588 | 97 | 0.592379 |
e9887b54be5a824187bf6ca60a4dd987e2eeb085 | 71 | exs | Elixir | test/test_helper.exs | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 5 | 2019-03-31T13:02:49.000Z | 2021-01-01T05:18:45.000Z | test/test_helper.exs | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 4 | 2017-07-16T06:30:49.000Z | 2018-06-22T19:37:13.000Z | test/test_helper.exs | NullVoxPopuli/mesh-relay-phoenix | 111bc650709eb6ee63fda8410948c33993a7f033 | [
"MIT"
] | 3 | 2017-10-18T00:12:57.000Z | 2021-07-27T08:10:39.000Z | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(MeshRelay.Repo, :manual)
| 14.2 | 55 | 0.788732 |
e98894c41f4d5b279a5a117d587fcf819418e68f | 398 | exs | Elixir | clients/search_console/test/test_helper.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/search_console/test/test_helper.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/search_console/test/test_helper.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | ExUnit.start()
defmodule GoogleApi.SearchConsole.V1.TestHelper do
defmacro __using__(opts) do
quote do
use ExUnit.Case, unquote(opts)
import GoogleApi.SearchConsole.V1.TestHelper
end
end
def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " "))
def for_scope(scope)... | 20.947368 | 83 | 0.70603 |
e988e62f5314f6c87b8f135b24a71603586c4cea | 2,045 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p2alpha1_label_image_oriented_bounding_box_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p2alpha1_label_image_oriented_bounding_box_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p2alpha1_label_image_oriented_bounding_box_operation_metadata.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... | 35.258621 | 176 | 0.784841 |
e9890da7a1f3caed359317f277a88543862672ba | 218 | exs | Elixir | test/chess_web/controllers/session_controller_test.exs | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 30 | 2018-06-16T00:41:59.000Z | 2021-03-05T08:39:02.000Z | test/chess_web/controllers/session_controller_test.exs | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 221 | 2018-01-15T20:33:13.000Z | 2022-02-16T00:53:35.000Z | test/chess_web/controllers/session_controller_test.exs | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 5 | 2018-02-20T17:25:19.000Z | 2018-12-29T00:09:30.000Z | defmodule ChessWeb.SessionControllerTest do
use ChessWeb.ConnCase
test "shows log in form", %{conn: conn} do
conn = get conn, session_path(conn, :new)
assert html_response(conn, 200) =~ "Log in"
end
end
| 24.222222 | 47 | 0.706422 |
e98992a1a9810cdaab2b42669805265ea98b38a7 | 1,934 | ex | Elixir | lib/queries/null_indexes.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 278 | 2020-08-04T12:38:29.000Z | 2022-03-25T15:14:28.000Z | lib/queries/null_indexes.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 21 | 2020-09-27T14:38:21.000Z | 2021-11-08T22:44:46.000Z | lib/queries/null_indexes.ex | blockfi/ecto_psql_extras | 27602dfb9d508b8ad3a904b1962d8a837128b0c7 | [
"MIT"
] | 15 | 2020-09-28T18:08:25.000Z | 2022-03-22T11:26:21.000Z | defmodule EctoPSQLExtras.NullIndexes do
@behaviour EctoPSQLExtras
def info do
%{
title: "Find indexes with a high ratio of NULL values",
default_args: [min_relation_size_mb: 0],
columns: [
%{name: :oid, type: :string},
%{name: :index, type: :string},
%{name: :index_siz... | 32.779661 | 90 | 0.606515 |
e989a84f025693398633df125d494bb99147cd54 | 358 | exs | Elixir | priv/repo/seeds.exs | sdost/game_service | d3dc16ceec2c414cbc10839db19d325d45f4ca04 | [
"MIT"
] | 1 | 2017-06-26T23:38:47.000Z | 2017-06-26T23:38:47.000Z | priv/repo/seeds.exs | sdost/game_service | d3dc16ceec2c414cbc10839db19d325d45f4ca04 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | sdost/game_service | d3dc16ceec2c414cbc10839db19d325d45f4ca04 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# GameService.Repo.insert!(%GameService.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as th... | 29.833333 | 61 | 0.712291 |
e989fb5a880d672473f87845e164d84812f55010 | 1,157 | ex | Elixir | goal_light_ui/lib/goal_light_ui_web/router.ex | TheEndIsNear/goal_light | 8456189832130a5bbfb641b275146de413ee6fa8 | [
"MIT"
] | null | null | null | goal_light_ui/lib/goal_light_ui_web/router.ex | TheEndIsNear/goal_light | 8456189832130a5bbfb641b275146de413ee6fa8 | [
"MIT"
] | null | null | null | goal_light_ui/lib/goal_light_ui_web/router.ex | TheEndIsNear/goal_light | 8456189832130a5bbfb641b275146de413ee6fa8 | [
"MIT"
] | null | null | null | defmodule GoalLightUiWeb.Router do
use GoalLightUiWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {GoalLightUiWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api... | 26.295455 | 70 | 0.707001 |
e98a11803e15156ce546a951ab0463bfbc224fab | 628 | ex | Elixir | lib/ex_venture/characters/playable.ex | oestrich/exventure | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/ex_venture/characters/playable.ex | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/ex_venture/characters/playable.ex | oestrich/ex_mud | 8e8062f9411656f4ec49cc2c35a1e4a9dd5d4190 | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule ExVenture.Characters.PlayableCharacter do
@moduledoc """
Schema for a character controlled by a player
"""
use Ecto.Schema
import Ecto.Changeset
alias ExVenture.Characters.Character
alias ExVenture.Users.User
schema "playable_characters" do
belongs_to(:character, Character)
belongs... | 21.655172 | 51 | 0.72293 |
e98a1e869382ed0118e4053dc782ff082f539de9 | 3,983 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.752809 | 175 | 0.689932 |
e98a1f7a9306b568f2d3ea1283899d5f899e9e33 | 1,077 | ex | Elixir | lib/macchinista_web/channels/user_socket.ex | themaxhero/Machinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | 1 | 2019-12-16T10:22:07.000Z | 2019-12-16T10:22:07.000Z | lib/macchinista_web/channels/user_socket.ex | themaxhero/Machinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | 2 | 2021-03-10T06:56:47.000Z | 2021-05-11T02:41:32.000Z | lib/macchinista_web/channels/user_socket.ex | themaxhero/Macchinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | null | null | null | defmodule MacchinistaWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", MacchinistaWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for al... | 31.676471 | 86 | 0.700093 |
e98a476c04f152ce836fd820b4efba711eebc8e6 | 1,593 | exs | Elixir | mix.exs | holsee/kennel | 6c74e8c548e5b41a9e2376d0e85ed029e658fe15 | [
"MIT"
] | null | null | null | mix.exs | holsee/kennel | 6c74e8c548e5b41a9e2376d0e85ed029e658fe15 | [
"MIT"
] | null | null | null | mix.exs | holsee/kennel | 6c74e8c548e5b41a9e2376d0e85ed029e658fe15 | [
"MIT"
] | null | null | null | defmodule Collab.Mixfile do
use Mix.Project
def project do
[
app: :kennel,
version: "0.0.1",
elixir: "~> 1.4.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases... | 21.24 | 67 | 0.571249 |
e98a5375830cf6494c9e98245370f85d5749ca7c | 646 | exs | Elixir | echo/config/test.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 1 | 2021-09-14T01:52:42.000Z | 2021-09-14T01:52:42.000Z | echo/config/test.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 1 | 2021-09-17T11:30:04.000Z | 2021-09-17T11:30:04.000Z | echo/config/test.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 4 | 2021-09-14T00:04:39.000Z | 2021-09-15T15:14:52.000Z | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :echo, Echo.Repo,
username: "postgres",
password: "postgres",
database: "echo_test#{System.get_env("MI... | 28.086957 | 63 | 0.743034 |
e98a8c0a4e996ec88c399a9b48180142ade1a3a8 | 14,031 | ex | Elixir | lib/jamdb_oracle.ex | aby2503/jamdb_oracle | 6a77d029ba776a8b1162555cc2dda2bc28bc07b4 | [
"MIT"
] | null | null | null | lib/jamdb_oracle.ex | aby2503/jamdb_oracle | 6a77d029ba776a8b1162555cc2dda2bc28bc07b4 | [
"MIT"
] | null | null | null | lib/jamdb_oracle.ex | aby2503/jamdb_oracle | 6a77d029ba776a8b1162555cc2dda2bc28bc07b4 | [
"MIT"
] | 2 | 2021-09-10T15:00:37.000Z | 2021-11-03T08:04:25.000Z | defmodule Jamdb.Oracle do
@vsn "0.4.0"
@moduledoc """
Adapter module for Oracle. `DBConnection` behaviour implementation.
It uses `jamdb_oracle` for communicating to the database.
"""
use DBConnection
defstruct [:pid, :mode, :cursors]
@doc """
Starts and links to a database connection process.
... | 36.349741 | 147 | 0.623477 |
e98aa7626ee0edc9f6831af958a6605d4dc73e76 | 2,142 | ex | Elixir | elixir/lib/gilded_rose.ex | chrisza4/GildedRose-Refactoring-Kata | 311423a1b1e1ed678b0ab70831eba72792714668 | [
"MIT"
] | 1 | 2020-05-04T06:24:05.000Z | 2020-05-04T06:24:05.000Z | elixir/lib/gilded_rose.ex | chrisza4/GildedRose-Refactoring-Kata | 311423a1b1e1ed678b0ab70831eba72792714668 | [
"MIT"
] | null | null | null | elixir/lib/gilded_rose.ex | chrisza4/GildedRose-Refactoring-Kata | 311423a1b1e1ed678b0ab70831eba72792714668 | [
"MIT"
] | null | null | null | defmodule GildedRose do
# Example
# update_quality([%Item{name: "Backstage passes to a TAFKAL80ETC concert", days_remaining: 9, quality: 1}])
# => [%Item{name: "Backstage passes to a TAFKAL80ETC concert", days_remaining: 8, quality: 3}]
def update_quality(items) do
Enum.map(items, &update_item/1)
end
... | 25.5 | 109 | 0.671335 |
e98ab760e39df5167229d34d7788aaec7edb4daf | 1,895 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/check_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/check_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_control/lib/google_api/service_control/v1/model/check_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.9 | 247 | 0.744591 |
e98ac663909790c22538ffa5e3a3d9fe7f8177e1 | 3,212 | exs | Elixir | config/runtime.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | 1 | 2022-03-05T00:05:26.000Z | 2022-03-05T00:05:26.000Z | config/runtime.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | config/runtime.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 37.348837 | 82 | 0.696762 |
e98ad1f2c323278922261daeff7462825cf4a2b8 | 1,261 | exs | Elixir | test/live_sup/core/widgets/rss_service_status_test/single/handler_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/live_sup/core/widgets/rss_service_status_test/single/handler_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | test/live_sup/core/widgets/rss_service_status_test/single/handler_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Test.Core.Widgets.RssServiceStatus.Single.HandlerTest do
use LiveSup.DataCase, async: false
alias LiveSup.Core.Widgets.RssServiceStatus.Single.Handler
alias LiveSup.Test.Support.Responses.RssServiceStatusResponse
describe "Managing Rss Status" do
@describetag :widget
@describetag :rs... | 30.756098 | 89 | 0.625694 |
e98af227d8ebb1b6141e9b54ca918afdf744a487 | 177 | ex | Elixir | lib/elixfregle/extract.ex | CristianOliveiraDaRosa/elixfregle | f1f078ab2193c4d69cfd8ae6627bd91ce5f3b94a | [
"Artistic-2.0"
] | null | null | null | lib/elixfregle/extract.ex | CristianOliveiraDaRosa/elixfregle | f1f078ab2193c4d69cfd8ae6627bd91ce5f3b94a | [
"Artistic-2.0"
] | null | null | null | lib/elixfregle/extract.ex | CristianOliveiraDaRosa/elixfregle | f1f078ab2193c4d69cfd8ae6627bd91ce5f3b94a | [
"Artistic-2.0"
] | null | null | null | defmodule Extract do
def extract(data) do
captures = Regex.named_captures(~r/(?<translate>"(.*?)")/, "#{data}")
captures["translate"] |> String.slice(1..-2)
end
end
| 25.285714 | 73 | 0.627119 |
e98b1118496961b4bd1f34ea0eba5f7bfb3b390e | 4,119 | ex | Elixir | lib/entice/logic/map_instance.ex | hoodaly/logic | 6737f644129c16e83479bc76286624d5d54b197b | [
"WTFPL"
] | null | null | null | lib/entice/logic/map_instance.ex | hoodaly/logic | 6737f644129c16e83479bc76286624d5d54b197b | [
"WTFPL"
] | null | null | null | lib/entice/logic/map_instance.ex | hoodaly/logic | 6737f644129c16e83479bc76286624d5d54b197b | [
"WTFPL"
] | null | null | null | defmodule Entice.Logic.MapInstance do
use Entice.Logic.Attributes
alias Entice.Entity
alias Entice.Entity.Coordination
alias Entice.Entity.Suicide
alias Entice.Logic.MapInstance
alias Entice.Logic.Item
alias Entice.Logic.Npc
alias Entice.Logic.MapRegistry
defstruct(players: 0, map: nil, instance: ni... | 35.508621 | 122 | 0.686089 |
e98b1181055765a82ca1810c3ee6adc8f3163702 | 1,932 | exs | Elixir | mix.exs | brianmay/lifx | 64299668ef7beac6b71e19ca1479106eb3474933 | [
"Apache-2.0"
] | 1 | 2020-12-26T21:59:20.000Z | 2020-12-26T21:59:20.000Z | mix.exs | brianmay/lifx | 64299668ef7beac6b71e19ca1479106eb3474933 | [
"Apache-2.0"
] | 9 | 2019-05-26T08:09:49.000Z | 2021-03-17T20:58:14.000Z | mix.exs | brianmay/lifx | 64299668ef7beac6b71e19ca1479106eb3474933 | [
"Apache-2.0"
] | 2 | 2020-05-29T01:24:44.000Z | 2020-11-18T17:46:07.000Z | defmodule Lifx.Mixfile do
use Mix.Project
def project do
[
app: :lifx,
version: "0.1.8",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
aliases: aliase... | 23.277108 | 76 | 0.55383 |
e98b1a42c084d597012b433addf105c32e213b88 | 334 | ex | Elixir | spawn/flintstones.ex | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | spawn/flintstones.ex | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | spawn/flintstones.ex | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | defmodule Flint do
def reply_name do
receive do
{ sender, name } ->
send sender, name
end
end
end
pid1 = spawn(Flint, :reply_name, [])
pid2 = spawn(Flint, :reply_name, [])
send pid1, { self, "Fred" }
send pid2, { self, "Betty" }
receive do
name -> IO.puts name
end
receive do
name -> IO.... | 15.181818 | 36 | 0.616766 |
e98b66d64420f49e3594e9e98be1a94550012564 | 957 | exs | Elixir | test/plausible_web/controllers/api/stats_controller/countries_test.exs | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | 1 | 2020-04-08T16:39:00.000Z | 2020-04-08T16:39:00.000Z | test/plausible_web/controllers/api/stats_controller/countries_test.exs | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | test/plausible_web/controllers/api/stats_controller/countries_test.exs | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.Api.StatsController.CountriesTest do
use PlausibleWeb.ConnCase
import Plausible.TestUtils
describe "GET /api/stats/:domain/countries" do
setup [:create_user, :log_in, :create_site]
test "returns top countries by new visitors", %{conn: conn, site: site} do
insert(:pageview, d... | 43.5 | 102 | 0.654127 |
e98b746db79755dfbc3ee9b2bcbf24c5398960ce | 2,094 | ex | Elixir | clients/domains/lib/google_api/domains/v1alpha2/model/ds_record.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/domains/lib/google_api/domains/v1alpha2/model/ds_record.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains/lib/google_api/domains/v1alpha2/model/ds_record.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.392857 | 183 | 0.702483 |
e98b786cfcbd42e9b956752730bbb55f1d5b6511 | 657 | exs | Elixir | config/config.exs | JonGretar/Fixate | 3d66ef79ad916bdd8cf364d9990124b00758560e | [
"MIT"
] | 1 | 2019-05-24T09:55:16.000Z | 2019-05-24T09:55:16.000Z | config/config.exs | JonGretar/Fixate | 3d66ef79ad916bdd8cf364d9990124b00758560e | [
"MIT"
] | null | null | null | config/config.exs | JonGretar/Fixate | 3d66ef79ad916bdd8cf364d9990124b00758560e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 34.578947 | 70 | 0.756469 |
e98b8e7f5d6826f89cf73b3a47c516bc5a4187df | 1,079 | ex | Elixir | lib/github/github/reviews.ex | notriddle-cerebrum/bors-ng | 7a7d8408e2dea09e928a476ac72fd3a8b4d6d216 | [
"Apache-2.0"
] | null | null | null | lib/github/github/reviews.ex | notriddle-cerebrum/bors-ng | 7a7d8408e2dea09e928a476ac72fd3a8b4d6d216 | [
"Apache-2.0"
] | null | null | null | lib/github/github/reviews.ex | notriddle-cerebrum/bors-ng | 7a7d8408e2dea09e928a476ac72fd3a8b4d6d216 | [
"Apache-2.0"
] | 3 | 2020-11-15T16:17:58.000Z | 2021-06-04T11:26:42.000Z | defmodule BorsNG.GitHub.Reviews do
@moduledoc """
The GitHub repository structure.
"""
@type state :: binary
@type t :: %{state => integer}
@spec from_json!([map]) :: t
def from_json!(json) do
json
# Count only the latest review from a user,
# by deduplicating using the user id
|> Enum.r... | 29.162162 | 65 | 0.561631 |
e98ba6e498d4e833e742077a6a13b70908c76885 | 62 | ex | Elixir | lib/club_web/views/pow/session_view.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | lib/club_web/views/pow/session_view.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | lib/club_web/views/pow/session_view.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule ClubWeb.Pow.SessionView do
use ClubWeb, :view
end
| 15.5 | 36 | 0.790323 |
e98bbe2f9914c94828210a453fad96abde580765 | 416 | exs | Elixir | config/dogma.exs | Lean5/rbmq | c6e746c212e103fc4ada53969e88fc1f32a357a6 | [
"MIT"
] | 1 | 2016-09-03T10:03:13.000Z | 2016-09-03T10:03:13.000Z | config/dogma.exs | Nebo15/oxygen | d0782899adb730e644c071d12906a97d407fc46a | [
"MIT"
] | 1 | 2019-02-13T14:26:22.000Z | 2019-02-13T14:26:22.000Z | config/dogma.exs | Lean5/rbmq | c6e746c212e103fc4ada53969e88fc1f32a357a6 | [
"MIT"
] | null | null | null | use Mix.Config
alias Dogma.Rule
config :dogma,
rule_set: Dogma.RuleSet.All,
exclude: [~r(\Alib/ap_api/tasks.ex)],
override: [
%Rule.LineLength{ max_length: 120 },
%Rule.TakenName{ enabled: false }, # TODO: https://github.com/lpil/dogma/issues/201
%Rule.InfixOperatorPadding{ enabled: false },
%Rul... | 24.470588 | 87 | 0.646635 |
e98bc54ca928b62d11c3ea6a6bf8425014b5b10f | 444 | ex | Elixir | web/models/installation.ex | taorg/rumbl | 7b212283f8dc2da56eddcba4281a6fff2cf4f378 | [
"Apache-2.0"
] | null | null | null | web/models/installation.ex | taorg/rumbl | 7b212283f8dc2da56eddcba4281a6fff2cf4f378 | [
"Apache-2.0"
] | null | null | null | web/models/installation.ex | taorg/rumbl | 7b212283f8dc2da56eddcba4281a6fff2cf4f378 | [
"Apache-2.0"
] | null | null | null | defmodule Rumbl.Instalation do
use Rumbl.Web, :model
schema "instalations" do
field :city, :string, size: 40
field :temp_lo, :integer
field :temp_hi, :integer
field :prcp, :float
timestamps()
end
def changeset(model, params \\ :empty) do
model
|> cast(params, [:city, :temp_lo, :temp_hi,... | 23.368421 | 58 | 0.662162 |
e98bc89cbf05547b56b6cca07d11204746b53941 | 2,385 | ex | Elixir | lib/rewasm.ex | salalo/rewasm | b4ec9f171909ca9093a8e3f68b022d7b1ee219f3 | [
"MIT"
] | null | null | null | lib/rewasm.ex | salalo/rewasm | b4ec9f171909ca9093a8e3f68b022d7b1ee219f3 | [
"MIT"
] | null | null | null | lib/rewasm.ex | salalo/rewasm | b4ec9f171909ca9093a8e3f68b022d7b1ee219f3 | [
"MIT"
] | null | null | null | defmodule REWASM do
@moduledoc """
Documentation for `REWASM`.
"""
@doc """
Hello world.
## Examples
iex> REWASM.hello()
:world
"""
def hello do
:world
end
end
defmodule REWASM.NIF.Base64 do
use Rustler, otp_app: :rewasm, crate: "rewasm_nif_base64"
def decode(), do: error()
... | 26.797753 | 1,048 | 0.843606 |
e98c0699be05e7d30b0ee660fffb5c1c8cfaf033 | 911 | ex | Elixir | test/support/with_access_token/repo_mock.ex | rjowens/pow_assent | 585f0012a8a1fcec5ce15f86e8fd24a838fa61b5 | [
"MIT"
] | null | null | null | test/support/with_access_token/repo_mock.ex | rjowens/pow_assent | 585f0012a8a1fcec5ce15f86e8fd24a838fa61b5 | [
"MIT"
] | null | null | null | test/support/with_access_token/repo_mock.ex | rjowens/pow_assent | 585f0012a8a1fcec5ce15f86e8fd24a838fa61b5 | [
"MIT"
] | null | null | null | defmodule PowAssent.Test.WithAccessToken.RepoMock do
@moduledoc false
alias PowAssent.Test.WithAccessToken.{UserIdentities.UserIdentity, Users.User}
alias PowAssent.Test.RepoMock
def one(query, _opts) do
case inspect(query) =~ "left_join: u1 in assoc(u0, :user)" and inspect(query) =~ "where: u0.provider =... | 39.608696 | 176 | 0.710209 |
e98c2edc0a0f9f0e954fdacf71e387b2f4d67c23 | 2,240 | exs | Elixir | examples/phoenix_basic_example/config/prod.exs | Ninigi/ecto_dripper | ca472e90aafd3313b91a268f81e6aa936c59e021 | [
"MIT"
] | 1 | 2018-06-28T11:15:14.000Z | 2018-06-28T11:15:14.000Z | examples/phoenix_basic_example/config/prod.exs | Ninigi/ecto_dripper | ca472e90aafd3313b91a268f81e6aa936c59e021 | [
"MIT"
] | null | null | null | examples/phoenix_basic_example/config/prod.exs | Ninigi/ecto_dripper | ca472e90aafd3313b91a268f81e6aa936c59e021 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# DripperExampleWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.... | 34.461538 | 71 | 0.729911 |
e98c66e87782ec6319c692a8403383354bfffb23 | 3,117 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_egress_policy.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_egress_policy.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_egress_policy.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... | 51.95 | 850 | 0.780237 |
e98c87c089ea6b88e52cbca366663184a49dc4ab | 2,583 | exs | Elixir | mix.exs | luisgabrielroldan/remote_ham_system_rpi3 | 6177d2461bb75fb5356ede2ec53c735e8a3f5c4a | [
"Apache-2.0"
] | null | null | null | mix.exs | luisgabrielroldan/remote_ham_system_rpi3 | 6177d2461bb75fb5356ede2ec53c735e8a3f5c4a | [
"Apache-2.0"
] | null | null | null | mix.exs | luisgabrielroldan/remote_ham_system_rpi3 | 6177d2461bb75fb5356ede2ec53c735e8a3f5c4a | [
"Apache-2.0"
] | null | null | null | defmodule RemoteHamSystemRpi3.MixProject do
use Mix.Project
@app :remote_ham_system_rpi3
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ [:ne... | 22.46087 | 79 | 0.582656 |
e98c8a7e8958e6833c5eda159b82ce82b7fe85f0 | 1,072 | ex | Elixir | lib/hello_elixir/application.ex | lubien/hello_elixir | 67305875a817376216b793711426aae3ff0d6bd2 | [
"Apache-2.0"
] | 14 | 2021-05-02T14:11:03.000Z | 2021-10-19T14:03:39.000Z | lib/hello_elixir/application.ex | fly-apps/hello_elixir_sqlite | f4484624a25c47c3034b8249aeb8aeecd321bf17 | [
"Apache-2.0"
] | 2 | 2021-11-03T17:27:28.000Z | 2021-12-03T20:34:12.000Z | lib/hello_elixir/application.ex | fly-apps/hello_elixir_sqlite | f4484624a25c47c3034b8249aeb8aeecd321bf17 | [
"Apache-2.0"
] | 6 | 2021-11-08T13:52:39.000Z | 2022-01-13T19:24:49.000Z | defmodule HelloElixir.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
HelloElixir.Repo,
# Start the Telemetry sup... | 28.972973 | 69 | 0.709888 |
e98caa079ad5a9604f22f24462dc1e1b7791699a | 2,942 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_sync_authorization.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_sync_authorization.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_sync_authorization.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.226667 | 134 | 0.733855 |
e98cacba3e61041b1e15d69d4bc6c567a6aa2aff | 211 | exs | Elixir | funcs/fizz.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | funcs/fizz.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | funcs/fizz.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | fb = fn
(0, 0, _) -> "FizzBuzz"
(0, _, _) -> "Fizz"
(_, 0, _) -> "Buzz"
(_, _, x) -> x
end
fb2 = fn n -> fb.(rem(n, 3), rem(n, 5), n) end
Enum.each(1..20, &(IO.puts(fb2.(&1))))
| 21.1 | 46 | 0.374408 |
e98cb6161c60552a783cab09fd0c65c825cf7bb2 | 703 | exs | Elixir | config/test.exs | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | 1 | 2018-05-13T19:28:48.000Z | 2018-05-13T19:28:48.000Z | config/test.exs | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"MIT"
] | null | null | null | config/test.exs | RubyFireStudio/phoenix-react-project-template | dbccf086ecccfedc038d8621f17fcd6ddd2212af | [
"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 :reanix, ReanixWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Reduce number of rounds
config :bcrypt_elixir, log_ro... | 26.037037 | 80 | 0.763869 |
e98cc2e545bf23805efc0c12372ef5e3d3427290 | 952 | exs | Elixir | ola_api/config/config.exs | diogobaracho/lab_exunit | 2fc4445a50c7faa95d057dcb69d9bb9c6833c9f0 | [
"Apache-2.0"
] | 1 | 2020-03-04T20:42:23.000Z | 2020-03-04T20:42:23.000Z | ola_api/config/config.exs | diogobaracho/lab_exunit | 2fc4445a50c7faa95d057dcb69d9bb9c6833c9f0 | [
"Apache-2.0"
] | null | null | null | ola_api/config/config.exs | diogobaracho/lab_exunit | 2fc4445a50c7faa95d057dcb69d9bb9c6833c9f0 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :ola_api, OlaAp... | 34 | 86 | 0.771008 |
e98cf011c4c728cf6c6e24ba926b0879c81b3f6f | 1,838 | ex | Elixir | scaffolds_actor_model/elixir/lib/actor_model/person.ex | lodykas/code_retreat | d22b3377fa655ef9064df7796c44a34b7dc33a58 | [
"MIT"
] | 7 | 2016-06-22T18:08:26.000Z | 2021-03-15T11:50:16.000Z | scaffolds_actor_model/elixir/lib/actor_model/person.ex | lodykas/code_retreat | d22b3377fa655ef9064df7796c44a34b7dc33a58 | [
"MIT"
] | 27 | 2016-06-07T12:45:44.000Z | 2021-03-24T08:26:29.000Z | scaffolds_actor_model/elixir/lib/actor_model/person.ex | lodykas/code_retreat | d22b3377fa655ef9064df7796c44a34b7dc33a58 | [
"MIT"
] | 11 | 2016-06-09T13:12:38.000Z | 2022-01-20T15:15:05.000Z | defmodule ActorModel.Person do
require Logger
@enforce_keys [:name, :friend_name]
defstruct friend_name: nil, name: nil, count_greetings_sent: 0, count_greetings_received: 0
@type t() :: %__MODULE__{
name: atom(),
friend_name: Genserver.server(),
count_greetings_sent: number(),
... | 31.152542 | 123 | 0.665397 |
e98d379e6ff8b624fd0f6712edd116e20f8ae977 | 4,849 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/work_item_service_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/work_item_service_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/work_item_service_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 65.527027 | 439 | 0.737884 |
e98d52601adc8206248e77dbd5ec9025209db8c0 | 1,445 | exs | Elixir | mix.exs | Zeeker/extag | 7626ac865013d1c379f76cef7fd606ecedb5aa62 | [
"MIT"
] | 13 | 2018-10-28T04:37:21.000Z | 2018-11-30T19:21:35.000Z | mix.exs | Zeeker/extag | 7626ac865013d1c379f76cef7fd606ecedb5aa62 | [
"MIT"
] | 2 | 2019-03-24T18:50:29.000Z | 2019-03-24T21:19:02.000Z | mix.exs | Zeeker/extag | 7626ac865013d1c379f76cef7fd606ecedb5aa62 | [
"MIT"
] | 2 | 2018-10-26T16:29:53.000Z | 2018-10-29T15:09:03.000Z | defmodule ETagPlug.MixProject do
use Mix.Project
@version "version" |> File.read!() |> String.trim()
def project do
[
app: :etag_plug,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail":... | 21.567164 | 66 | 0.557785 |
e98d62f6d0acae6c439cf794c6ab920a97fdea4d | 3,035 | ex | Elixir | apps/state/lib/state/metadata.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/state/lib/state/metadata.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/state/lib/state/metadata.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | defmodule State.Metadata do
@moduledoc """
Holds metadata for State data.
Currently, the only metadata being stored is when a service last received
new data as well as the current feed version.
"""
@table_name :state_metadata
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, nil, name:... | 25.720339 | 95 | 0.644481 |
e98d65d999a473004986b629488a7ba2a43750dd | 249 | ex | Elixir | apps/summoner_web/lib/summoner_web_web/controllers/page_controller.ex | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | apps/summoner_web/lib/summoner_web_web/controllers/page_controller.ex | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | apps/summoner_web/lib/summoner_web_web/controllers/page_controller.ex | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | defmodule SummonerWebWeb.PageController do
use SummonerWebWeb, :controller
def index(conn, _params) do
threads = SummonerBackend.Thread |> SummonerBackend.Repo.all
render conn, "index.html", message: "hello", threads: threads
end
end
| 27.666667 | 65 | 0.75502 |
e98d96b4a93002dee40e9da9b0926675c3f467a1 | 1,733 | ex | Elixir | .clext/krew.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | .clext/krew.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | .clext/krew.ex | peterwwillis/clinst | 0fff3e125ca3dbb1bdba2d4dde96170c8b644a1f | [
"MIT"
] | null | null | null | #!/usr/bin/env sh
set -eu
[ "${DEBUG:-0}" = "1" ] && set -x
### Extension-specific variables
CLINST_E_NAME="${CLINST_E_NAME:-krew}"
CLINST_E_REV="0.1.0"
CLINST_E_BIN_NAME="${CLINST_E_BIN_NAME:-$CLINST_E_NAME}"
CLINST_E_DLFILE="${CLINST_E_DLFILE:-$CLINST_E_NAME}"
CLINST_E_INSTDIR="${CLINST_E_INSTDIR:-$(pwd)}"
CLINST_E_... | 50.970588 | 150 | 0.682054 |
e98dc989a6bded9bfff09b8905c591c0b4ea1031 | 1,636 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/upload_service_account_key_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/upload_service_account_key_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/iam/lib/google_api/iam/v1/model/upload_service_account_key_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.808511 | 275 | 0.751222 |
e98de015feb5a04e2c4a2a38983166013bbfa7fc | 197 | ex | Elixir | web/controllers/page_controller.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | kumanote/phoenix_vue_webpack_template | 1294eda8937c5eff4ea9ec2447b275b4a0d098fa | [
"MIT"
] | null | null | null | defmodule PhoenixVueWebpackTemplate.PageController do
use PhoenixVueWebpackTemplate.Web, :controller
def index(conn, _params) do
html(conn, File.read!("priv/static/index.html"))
end
end
| 24.625 | 53 | 0.77665 |
e98de2159ba16df4f14e0f6adbde4da0a6cece18 | 1,671 | ex | Elixir | clients/content/lib/google_api/content/v21/model/pos_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.42 | 166 | 0.72711 |
e98dea5be06c5d72735301b94be70b1d52990fc8 | 3,227 | ex | Elixir | clients/games/lib/google_api/games/v1/model/room_p2_p_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room_p2_p_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room_p2_p_status.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... | 44.819444 | 198 | 0.705299 |
e98e09a8570db4fb4dbc06ea3f9f1dda16314c3c | 3,705 | exs | Elixir | test/petal/card_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | test/petal/card_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | test/petal/card_test.exs | cohawk/petal_components | 2741c4de66fa8dfa2896fe1e6e02f1d1653422cd | [
"MIT"
] | null | null | null | defmodule PetalComponents.CardTest do
use ComponentCase
import PetalComponents.Card
test "Basic card" do
assigns = %{}
html = rendered_to_string(
~H"""
<.card>
<.card_content category="Article" heading="Enhance your Phoenix development">
<div class="mt-4 font-light text-gray... | 34.626168 | 198 | 0.62807 |
e98e39ef01e3a96c98b21013ba8381912d8cc8ec | 1,392 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/mail_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/vault/lib/google_api/vault/v1/model/mail_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vault/lib/google_api/vault/v1/model/mail_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.617021 | 98 | 0.729885 |
e98e53744826c246ef61cbc134ddea2eb3f2adb4 | 2,208 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/money.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/money.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/money.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.888889 | 498 | 0.70788 |
e98ea4a13850f4a544bf9b7ae5f46323ce0adf12 | 57,971 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/api/users.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/users.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/api/users.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.463311 | 466 | 0.618482 |
e98ecf41a1cd1ec18828fe887812fe0a57910e61 | 6,880 | exs | Elixir | test/norm/core/selection_test.exs | gesta/norm | 33395025db1b2750d86a361ad7bb60c94b9c4196 | [
"MIT"
] | 1 | 2021-03-02T21:05:36.000Z | 2021-03-02T21:05:36.000Z | test/norm/core/selection_test.exs | gesta/norm | 33395025db1b2750d86a361ad7bb60c94b9c4196 | [
"MIT"
] | null | null | null | test/norm/core/selection_test.exs | gesta/norm | 33395025db1b2750d86a361ad7bb60c94b9c4196 | [
"MIT"
] | 1 | 2021-03-02T10:49:33.000Z | 2021-03-02T10:49:33.000Z | defmodule Norm.Core.SelectionTest do
use Norm.Case, async: true
defmodule Event do
import Norm
defstruct ~w|data|a
def s do
schema(%__MODULE__{
data: schema(%{
type: spec(is_atom())
})
})
end
end
def user_schema, do: schema(%{
name: spec(is_binary())... | 30.577778 | 257 | 0.534884 |
e98ef50194a801747660501b2062fc1283d06864 | 2,235 | ex | Elixir | lib/mix/lib/mix/tasks/loadpaths.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/loadpaths.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/loadpaths.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Loadpaths do
use Mix.Task
@moduledoc """
Loads the application and its dependencies paths.
## Configuration
* `:elixir` - matches the current elixir version against the
given requirement
## Command line options
* `--no-archives-check` - do not check archive
* `--no-d... | 27.256098 | 82 | 0.627293 |
e98f036f69345fe1fb3dba2c0b06cd64ef3145e9 | 633 | ex | Elixir | lib/bottler/helpers/hook.ex | rubencaro/bottler | f88caf6d0d7d12e88b34e8e0c9a6f372fc6c8edb | [
"MIT"
] | 37 | 2015-05-12T13:26:33.000Z | 2020-02-20T02:43:40.000Z | lib/bottler/helpers/hook.ex | rubencaro/bottler | f88caf6d0d7d12e88b34e8e0c9a6f372fc6c8edb | [
"MIT"
] | 4 | 2017-10-20T10:00:00.000Z | 2018-05-13T06:32:35.000Z | lib/bottler/helpers/hook.ex | rubencaro/bottler | f88caf6d0d7d12e88b34e8e0c9a6f372fc6c8edb | [
"MIT"
] | 8 | 2015-05-28T10:45:31.000Z | 2018-01-16T07:57:13.000Z | require Logger, as: L
require Bottler.Helpers, as: H
defmodule Bottler.Helpers.Hook do
@moduledoc """
Hooks Helper - based on config
"""
def exec(name, config) do
case config[:hooks][name] do
nil -> :ok
%{command: command, continue_on_fail: continue_on_fail} -> launch(command, continue_on_... | 21.1 | 98 | 0.677725 |
e98f26c43202190eea9c777af09c1971eb4dff69 | 2,872 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_symbol.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_symbol.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_symbol.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 45.587302 | 635 | 0.736072 |
e98f4ae22c7fffc622788d1a7e28a59843997f21 | 4,055 | ex | Elixir | lib/bundlex/loader.ex | p-kraszewski/bundlex | 0c502d617a64fb9f5b8e35c8103e269e619a087a | [
"Apache-2.0"
] | 40 | 2018-06-10T20:55:32.000Z | 2021-12-12T22:08:25.000Z | lib/bundlex/loader.ex | p-kraszewski/bundlex | 0c502d617a64fb9f5b8e35c8103e269e619a087a | [
"Apache-2.0"
] | 40 | 2018-07-18T16:14:52.000Z | 2022-03-27T16:33:09.000Z | lib/bundlex/loader.ex | p-kraszewski/bundlex | 0c502d617a64fb9f5b8e35c8103e269e619a087a | [
"Apache-2.0"
] | 10 | 2018-08-02T06:07:42.000Z | 2022-03-25T15:41:14.000Z | defmodule Bundlex.Loader do
@moduledoc """
Some utilities to ease loading of Bundlex-based NIFs.
"""
alias Bundlex.Helper.{MixHelper, PathHelper}
@doc """
Binds the module to the specified NIF.
Accepts keyword list, that may contain two arguments:
- `:nif` - required, name of the NIF to be bound (the... | 28.356643 | 91 | 0.635265 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.