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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aba9eed2a7503e8398305f5a8eacc21efafd2844 | 672 | exs | Elixir | apps/snitch_core/priv/repo/migrations/20181214092546_add_promotions_table.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/migrations/20181214092546_add_promotions_table.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/migrations/20181214092546_add_promotions_table.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Repo.Migrations.AddPromotionsTable do
use Ecto.Migration
def change do
create table("snitch_promotions") do
add(:code, :string)
add(:name, :string)
add(:description, :string)
add(:starts_at, :utc_datetime)
add(:expires_at, :utc_datetime)
add(:usage_limit, :i... | 28 | 67 | 0.66369 |
aba9f5de5c7f80d2928611d403eb7e7e88fe338d | 52 | ex | Elixir | apps/testing/lib/source_websocket.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/testing/lib/source_websocket.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/testing/lib/source_websocket.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule SourceWebsocket do
use Glock.Socket
end
| 13 | 28 | 0.826923 |
abaa05e303bc727264b470b2deb6c6eb554ebf13 | 9,109 | ex | Elixir | lib/chat_api_web/controllers/github_controller.ex | olragon/papercups | 6af7f674dc16e258c333d07184f11d3983e23cf7 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/github_controller.ex | olragon/papercups | 6af7f674dc16e258c333d07184f11d3983e23cf7 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/github_controller.ex | olragon/papercups | 6af7f674dc16e258c333d07184f11d3983e23cf7 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.GithubController do
use ChatApiWeb, :controller
alias ChatApi.{Github, Issues}
alias ChatApi.Github.GithubAuthorization
alias ChatApi.Issues.Issue
require Logger
action_fallback(ChatApiWeb.FallbackController)
@spec oauth(Plug.Conn.t(), map()) :: Plug.Conn.t()
def oauth(conn, %{"... | 31.088737 | 102 | 0.591503 |
abaa16e2e142cef09123d4966b076f7431fae5d8 | 1,413 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_stop_experiment_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_stop_experiment_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_stop_experiment_request.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.06383 | 89 | 0.772116 |
abaa3ca45c1e52a53c5bdc43912089745df221a0 | 1,124 | ex | Elixir | lib/alfredoChat_web/channels/room_channel.ex | lujeremy/AlfredoChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | null | null | null | lib/alfredoChat_web/channels/room_channel.ex | lujeremy/AlfredoChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | 2 | 2021-03-09T12:33:57.000Z | 2021-05-10T02:49:27.000Z | lib/alfredoChat_web/channels/room_channel.ex | lujeremy/BasicChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | null | null | null | defmodule AlfredoChatWeb.RoomChannel do
use AlfredoChatWeb, :channel
def join("room:lobby", payload, socket) do
if authorized?(payload) do
send(self(), :after_join)
{:ok, socket}
else
{:error, %{reason: "unauthorized"}}
end
end
# Channels can be used in a request/response fashion... | 27.414634 | 93 | 0.675267 |
abaa678bad938a8ef07fd80286bcad0cd24977b8 | 1,998 | ex | Elixir | lib/slacketon_chat/robot.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | 1 | 2022-02-19T17:49:37.000Z | 2022-02-19T17:49:37.000Z | lib/slacketon_chat/robot.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | 4 | 2018-07-14T16:30:17.000Z | 2022-02-10T16:23:23.000Z | lib/slacketon_chat/robot.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | null | null | null | defmodule SlackertonChat.Robot do
use Hedwig.Robot, otp_app: :slackerton
require Logger
alias Hedwig.Message
alias SlackertonChat.{Helpers, Middleware}
def broadcast(team, room, text) do
case :global.whereis_name(team) do
:undefined ->
:ok
pid ->
Hedwig.Robot.send(pid, %Mess... | 23.785714 | 83 | 0.611612 |
abaa9fc194b19619c1e19547db11c9b601bb5c01 | 332 | ex | Elixir | lib/codes/codes_l26.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l26.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l26.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_L26 do
alias IcdCode.ICDCode
def _L26 do
%ICDCode{full_code: "L26",
category_code: "L26",
short_code: "",
full_name: "Exfoliative dermatitis",
short_name: "Exfoliative dermatitis",
category_name: "Exfoliative dermatitis"
... | 20.75 | 49 | 0.626506 |
abaaad5f581686032fdd1af623e5e851e5e36d3b | 1,401 | exs | Elixir | test/norm/core/delegate_test.exs | slashdotdash/norm | 881aabe2f5f08a8858a77cfd67b7f17f87dc282c | [
"MIT"
] | null | null | null | test/norm/core/delegate_test.exs | slashdotdash/norm | 881aabe2f5f08a8858a77cfd67b7f17f87dc282c | [
"MIT"
] | null | null | null | test/norm/core/delegate_test.exs | slashdotdash/norm | 881aabe2f5f08a8858a77cfd67b7f17f87dc282c | [
"MIT"
] | null | null | null | defmodule Norm.Core.DelegateTest do
use Norm.Case, async: true
defmodule TreeTest do
def spec() do
schema(%{
"value" => spec(is_integer()),
"left" => delegate(&TreeTest.spec/0),
"right" => delegate(&TreeTest.spec/0)
})
end
end
describe "delegate/1" do
test "can ... | 28.02 | 96 | 0.380443 |
abab40dee440cc5e7ef50acc0f018e1b6c1edd72 | 30,318 | ex | Elixir | lib/elixir/lib/application.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/application.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/application.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule Application do
@moduledoc """
A module for working with applications and defining application callbacks.
Applications are the idiomatic way to package software in Erlang/OTP. To get
the idea, they are similar to the "library" concept common in other
programming languages, but with some additional c... | 36.483755 | 94 | 0.704532 |
abab56965f6a6b8e449f94bced8aa1a0c28e0a2d | 1,792 | exs | Elixir | config/prod.exs | xaviRodri/roshambo | 7cfd465cc40a7dc405c2854e9135f516df3809bd | [
"MIT"
] | null | null | null | config/prod.exs | xaviRodri/roshambo | 7cfd465cc40a7dc405c2854e9135f516df3809bd | [
"MIT"
] | null | null | null | config/prod.exs | xaviRodri/roshambo | 7cfd465cc40a7dc405c2854e9135f516df3809bd | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 35.84 | 96 | 0.708705 |
abab5991b06df6e0c27a8790f523721390814f24 | 577 | exs | Elixir | apps/bus_detective/priv/repo/migrations/20180715021239_create_projected_stop_times.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective/priv/repo/migrations/20180715021239_create_projected_stop_times.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective/priv/repo/migrations/20180715021239_create_projected_stop_times.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | defmodule BusDetective.Repo.Migrations.CreateProjectedStopTimes do
use Ecto.Migration
def change do
create table(:projected_stop_times) do
add(:scheduled_arrival_time, :utc_datetime, null: false)
add(:scheduled_departure_time, :utc_datetime, null: false)
add(:stop_time_id, references(:stop_ti... | 33.941176 | 116 | 0.755633 |
abab623aa57cb86bb9aaf13d1fd6fb31f1b9265e | 2,274 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/system_update.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_management/lib/google_api/android_management/v1/model/system_update.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/system_update.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 ... | 42.90566 | 460 | 0.736148 |
abab6edc23d1c7ae6af15eae4655f2d7d43ea518 | 1,948 | exs | Elixir | test/telemetry_metrics_statsd/packet_test.exs | cristopher-rodrigues/telemetry_metrics_statsd | c533b3a10fa298abb5a4db89b1a30a4de88f838e | [
"MIT"
] | 51 | 2019-09-18T15:54:15.000Z | 2022-01-19T08:41:37.000Z | test/telemetry_metrics_statsd/packet_test.exs | cristopher-rodrigues/telemetry_metrics_statsd | c533b3a10fa298abb5a4db89b1a30a4de88f838e | [
"MIT"
] | 33 | 2019-09-30T20:58:28.000Z | 2022-02-08T15:20:24.000Z | test/telemetry_metrics_statsd/packet_test.exs | cristopher-rodrigues/telemetry_metrics_statsd | c533b3a10fa298abb5a4db89b1a30a4de88f838e | [
"MIT"
] | 20 | 2019-12-08T16:07:49.000Z | 2022-02-28T11:57:11.000Z | defmodule TelemetryMetricsStatsd.PacketTest do
use ExUnit.Case, async: true
use ExUnitProperties
alias TelemetryMetricsStatsd.Packet
property "it returns packets of binaries under given size joined with given binary" do
check all max_packet_size <- positive_integer(),
# We should consider em... | 34.785714 | 179 | 0.663244 |
abab8dc1015ca00f57dd0ceeca68397705434a45 | 3,807 | ex | Elixir | lib/cache_control_parser.ex | rob05c/emissary | 8a4d4874ddc2becb6a42a4a922bd1b7860573e06 | [
"MIT"
] | null | null | null | lib/cache_control_parser.ex | rob05c/emissary | 8a4d4874ddc2becb6a42a4a922bd1b7860573e06 | [
"MIT"
] | null | null | null | lib/cache_control_parser.ex | rob05c/emissary | 8a4d4874ddc2becb6a42a4a922bd1b7860573e06 | [
"MIT"
] | null | null | null | defmodule Emissary.CacheControl do
# TODO: downcase keys
@spec parse(list) :: map
def parse(headers) do
case Map.fetch(headers, "cache-control") do
{:ok, cache_control_str} ->
parse_str(cache_control_str)
_ ->
%{}
end
end
@spec parse_str(String.t) :: map
defp parse_str(... | 29.061069 | 135 | 0.57368 |
abab97e211c614e3e8806b3d067a765e0e9d9c7e | 1,417 | exs | Elixir | test/phoenix_live_view/plug_test.exs | Schultzer/phoenix_live_view | 957b7ebfb66034cb093a81d991c044f7e532aa5d | [
"MIT"
] | null | null | null | test/phoenix_live_view/plug_test.exs | Schultzer/phoenix_live_view | 957b7ebfb66034cb093a81d991c044f7e532aa5d | [
"MIT"
] | null | null | null | test/phoenix_live_view/plug_test.exs | Schultzer/phoenix_live_view | 957b7ebfb66034cb093a81d991c044f7e532aa5d | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.PlugTest do
use ExUnit.Case, async: true
use Phoenix.ConnTest
alias Phoenix.LiveView.Plug, as: LiveViewPlug
alias Phoenix.LiveViewTest.{DashboardLive, Endpoint}
setup config do
conn =
build_conn()
|> Plug.Conn.put_private(:phoenix_router, Router)
|> Plug.Test... | 30.804348 | 99 | 0.64573 |
ababafd0d2f8328ef3f1c3751c24f8cb3d0bc025 | 1,078 | exs | Elixir | clients/analytics_admin/test/test_helper.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/test/test_helper.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/test/test_helper.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 29.944444 | 83 | 0.742115 |
ababbf8f59c8d6c68576aeb6bf12ff163791fbe7 | 1,760 | exs | Elixir | mix.exs | idkjs/graphql-elixir-starter | 7728e8ce67c32a2eb57c6be92ebe852da0145930 | [
"MIT"
] | null | null | null | mix.exs | idkjs/graphql-elixir-starter | 7728e8ce67c32a2eb57c6be92ebe852da0145930 | [
"MIT"
] | null | null | null | mix.exs | idkjs/graphql-elixir-starter | 7728e8ce67c32a2eb57c6be92ebe852da0145930 | [
"MIT"
] | null | null | null | defmodule Community.Mixfile do
use Mix.Project
def project do
[
app: :community,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.5 | 85 | 0.571591 |
ababcb15aae4e7a544f3011f17ed80855800cf44 | 2,071 | ex | Elixir | lib/grizzly/command_class/network_management_inclusion.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/network_management_inclusion.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/network_management_inclusion.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.NetworkManagementInclusion do
@type node_neighbor_update_status :: :done | :failed
@type add_mode :: :any | :stop | :any_s2
@type remove_mode :: :any | :stop
@type accept_byte :: 0x00 | 0x01
@type add_mode_byte :: 0x01 | 0x05 | 0x07
@type remove_mode_byte :: 0x01 | 0x05
@typ... | 46.022222 | 86 | 0.688073 |
ababd1ef8325eec4dbd3067c63ea319c2453504e | 4,149 | ex | Elixir | lib/human_name.ex | amokan/human_name | f669a730f089a39729743cd43a078e78b4d8519c | [
"MIT"
] | 6 | 2021-09-19T01:40:18.000Z | 2021-09-23T16:33:09.000Z | lib/human_name.ex | amokan/human_name | f669a730f089a39729743cd43a078e78b4d8519c | [
"MIT"
] | null | null | null | lib/human_name.ex | amokan/human_name | f669a730f089a39729743cd43a078e78b4d8519c | [
"MIT"
] | null | null | null | defmodule HumanName do
@moduledoc """
Documentation for HumanName.
"""
@doc """
Returns the initial for the first (given) name.
## Example
iex> HumanName.first_initial("Jimmy H Jenkins")
{:ok, "J"}
iex> HumanName.first_initial("Dr. Alibaster Cornelius Juniper III")
{:ok, ... | 27.66 | 83 | 0.640877 |
ababd74c3a06986cd3d1ecf0791e5fe0aaf3ebb6 | 4,575 | exs | Elixir | integration_test/pg/deadlock_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | integration_test/pg/deadlock_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | integration_test/pg/deadlock_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.DeadlockTest do
# We can keep this test async as long as it
# is the only one accessing advisory locks
use ExUnit.Case, async: true
require Logger
@timeout 500
alias Ecto.Integration.PoolRepo
test "deadlocks reset worker" do
tx1 = self()
%Task{pid: tx2} = tx2_task = T... | 32.913669 | 109 | 0.641311 |
ababf134757f8f5d20e02c8c8282c33b5fb218cf | 1,940 | exs | Elixir | config/dev.exs | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | 3 | 2019-11-06T23:40:55.000Z | 2020-06-20T22:33:25.000Z | config/dev.exs | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | config/dev.exs | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :op_api, OpApi.Repo,
database: "op_api_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run ... | 28.115942 | 68 | 0.707732 |
abac59df5cf9ce5b66bd3b354ac7930379696be0 | 11,487 | ex | Elixir | lib/level10_web/live/game_live.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 37 | 2020-05-05T22:02:51.000Z | 2022-02-08T20:44:06.000Z | lib/level10_web/live/game_live.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 65 | 2020-03-18T01:11:58.000Z | 2021-01-31T03:19:48.000Z | lib/level10_web/live/game_live.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 1 | 2020-05-05T22:02:57.000Z | 2020-05-05T22:02:57.000Z | defmodule Level10Web.GameLive do
@moduledoc """
Live view for gameplay
"""
use Phoenix.LiveView, layout: {Level10Web.LayoutView, "live.html"}
import Level10Web.LiveHelpers
require Logger
alias Level10.Games
alias Games.{Card, Levels}
alias Level10Web.GameView
alias Level10Web.Router.Helpers, as: Ro... | 34.809091 | 100 | 0.656568 |
abace80cbb4571123d79a5f539660e0c7a97c912 | 6,690 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/license_codes.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/license_codes.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/license_codes.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... | 41.296296 | 244 | 0.635426 |
abacfd254c82041f760a66833a91be0c2b27a781 | 223 | ex | Elixir | dictionary/lib/dictionary.ex | paunik/excoding | 43f3255ff51ea1fa6e4a4d9cb584a5bd397d888c | [
"Unlicense"
] | null | null | null | dictionary/lib/dictionary.ex | paunik/excoding | 43f3255ff51ea1fa6e4a4d9cb584a5bd397d888c | [
"Unlicense"
] | null | null | null | dictionary/lib/dictionary.ex | paunik/excoding | 43f3255ff51ea1fa6e4a4d9cb584a5bd397d888c | [
"Unlicense"
] | null | null | null | defmodule Dictionary do
def random_word() do
word_list()
|> Enum.random()
end
def word_list do
"../assets/words.txt"
|> Path.expand(__DIR__)
|> File.read!()
|> String.split(~r/\n/)
end
end
| 14.866667 | 27 | 0.587444 |
abad50c4d6fce8a49a57b38021632e896a306564 | 569 | ex | Elixir | services/fc_goods/lib/fc_goods/router.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_goods/lib/fc_goods/router.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_goods/lib/fc_goods/router.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCGoods.Router do
@moduledoc false
use Commanded.Commands.Router
alias FCGoods.{
AddStockable,
UpdateStockable,
DeleteStockable
}
alias FCGoods.{Stockable}
alias FCGoods.{StockableHandler}
middleware(FCBase.CommandValidation)
middleware(FCBase.RequesterIdentification)
middlew... | 23.708333 | 104 | 0.783831 |
abad5824821454e4b75d5c5f8c93c5432714eecb | 1,442 | exs | Elixir | mix.exs | redmandarin/ex_audit | e9338de924b2b8e13b3cc0987680d76892a4fde9 | [
"MIT"
] | null | null | null | mix.exs | redmandarin/ex_audit | e9338de924b2b8e13b3cc0987680d76892a4fde9 | [
"MIT"
] | null | null | null | mix.exs | redmandarin/ex_audit | e9338de924b2b8e13b3cc0987680d76892a4fde9 | [
"MIT"
] | null | null | null | defmodule ExAudit.Mixfile do
use Mix.Project
def project do
[
description: "Ecto auditing library that transparently tracks changes and can revert them",
app: :ex_audit,
version: "0.6.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
elixirc_paths:... | 23.639344 | 97 | 0.552011 |
abad595ff5d83f81e2f58406c9b175a7def5e147 | 2,998 | ex | Elixir | lib/coap/payload.ex | OffgridElectric/coap_ex | 7d83f8a7fbf26e6e7f2baa8aa10d0f7c457365b6 | [
"MIT"
] | 16 | 2019-02-23T10:04:26.000Z | 2022-03-14T03:12:45.000Z | lib/coap/payload.ex | tpitale/coap_ex | 28b62274336742b41e3426b73294a0e74e6a5b67 | [
"MIT"
] | 51 | 2019-05-06T15:34:58.000Z | 2021-01-21T14:32:32.000Z | lib/coap/payload.ex | OffgridElectric/coap_ex | 7d83f8a7fbf26e6e7f2baa8aa10d0f7c457365b6 | [
"MIT"
] | 3 | 2020-06-12T11:47:09.000Z | 2020-12-08T14:59:36.000Z | defmodule CoAP.Payload do
defstruct segments: [], multipart: false, data: <<>>, size: nil
alias CoAP.Block
def empty(), do: %__MODULE__{}
def add(%__MODULE__{segments: segments}, number, segment) do
%__MODULE__{
multipart: true,
segments: [{number, segment} | segments]
}
end
def to_b... | 33.685393 | 97 | 0.616744 |
abad6bc3ab1c43b3c503854fde3a9c45398c4496 | 4,013 | ex | Elixir | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_run_started.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | 1 | 2021-01-22T09:13:21.000Z | 2021-01-22T09:13:21.000Z | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_run_started.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | null | null | null | messages/elixir/lib/cucumber_messages/generated/elixir_cucumber_messages_test_run_started.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | null | null | null | # credo:disable-for-this-file
defmodule(CucumberMessages.TestRunStarted) do
@moduledoc(false)
(
defstruct(timestamp: nil, __uf__: [])
(
@spec(encode(struct) :: {:ok, iodata} | {:error, any})
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
e ->
... | 33.441667 | 121 | 0.551956 |
abad837b33ea0a3be6d27571d3cd74df9432b939 | 6,545 | ex | Elixir | lib/chat_api/slack/sync.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | 1 | 2021-08-02T07:59:41.000Z | 2021-08-02T07:59:41.000Z | lib/chat_api/slack/sync.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | null | null | null | lib/chat_api/slack/sync.ex | Blazt0/papercups | 5996b268f1d52e4463d546dcc458f9ecd0a7ffcd | [
"MIT"
] | null | null | null | defmodule ChatApi.Slack.Sync do
require Logger
alias ChatApi.{
Conversations,
Messages,
Slack,
SlackAuthorizations,
SlackConversationThreads
}
alias ChatApi.Customers.Customer
alias ChatApi.SlackAuthorizations.SlackAuthorization
alias ChatApi.Users.User
defmodule SyncableMessageInfo... | 33.911917 | 106 | 0.603667 |
abad8cea9e9a6d240082c89a6c5bb5c7507d842f | 1,141 | exs | Elixir | clients/groups_settings/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/groups_settings/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/groups_settings/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.756354 |
abadbc344be269c0361c23ed195d1281a1c6eea9 | 274 | ex | Elixir | fw/phoenix/hello_phoenix/web/controllers/hello_controller.ex | alexgarzao/learning_elixir | f1b06f26898be35803591245d033d30dd4bd1e1a | [
"MIT"
] | 1 | 2016-01-01T12:55:25.000Z | 2016-01-01T12:55:25.000Z | web/controllers/hello_controller.ex | cncgl/phoenix-todo | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | 1 | 2015-09-10T13:41:51.000Z | 2015-09-10T13:41:51.000Z | web/controllers/hello_controller.ex | cncgl/phoenix-todo | 81b1c807a40e972df93ccc4063395ddf48bf4e2e | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.HelloController do
use HelloPhoenix.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
def show(conn, %{"messenger" => messenger}) do
render conn, "show.html", messenger: messenger
end
end
| 22.833333 | 54 | 0.664234 |
abadbe97e8e3c403126c4755040966a5012c38cf | 6,338 | ex | Elixir | lib/arangox_ecto/behaviour/schema.ex | bodbdigr/arangox_ecto | 4c34c0b32a8f84a2fb9bb182f1e5571a4f436efb | [
"Apache-2.0"
] | 21 | 2020-09-04T07:52:29.000Z | 2022-03-30T11:21:20.000Z | lib/arangox_ecto/behaviour/schema.ex | bodbdigr/arangox_ecto | 4c34c0b32a8f84a2fb9bb182f1e5571a4f436efb | [
"Apache-2.0"
] | 13 | 2020-10-13T01:53:47.000Z | 2022-01-20T11:20:59.000Z | lib/arangox_ecto/behaviour/schema.ex | bodbdigr/arangox_ecto | 4c34c0b32a8f84a2fb9bb182f1e5571a4f436efb | [
"Apache-2.0"
] | 8 | 2020-10-12T12:57:01.000Z | 2022-01-19T21:25:02.000Z | defmodule ArangoXEcto.Behaviour.Schema do
@moduledoc false
@behaviour Ecto.Adapter.Schema
require Logger
@doc """
Called to autogenerate a value for id/embed_id/binary_id.
Returns nil since we want to use an id generated by arangodb
"""
@impl true
def autogenerate(:id), do: raise("ArangoDB does no... | 26.855932 | 96 | 0.627327 |
abadd14325b623ff492232dabab2585b4e3a53cf | 3,551 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/cors_policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/cors_policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/cors_policy.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... | 50.014085 | 251 | 0.713883 |
abadd3edcc9b2fc8de2bb5a0d9016a4911d6c240 | 28,473 | ex | Elixir | lib/elixir/lib/application.ex | qcam/elixir | b37220ccfa44c0bfe1e070886a0817e76de35973 | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/elixir/lib/application.ex | Achibiway/elixir | b37220ccfa44c0bfe1e070886a0817e76de35973 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/application.ex | Achibiway/elixir | b37220ccfa44c0bfe1e070886a0817e76de35973 | [
"Apache-2.0"
] | null | null | null | defmodule Application do
@moduledoc """
A module for working with applications and defining application callbacks.
Applications are the idiomatic way to package software in Erlang/OTP. To get
the idea, they are similar to the "library" concept common in other
programming languages, but with some additional c... | 36.225191 | 94 | 0.705265 |
abadec43bad480ae18a9b29c378e50c80d72914f | 1,160 | ex | Elixir | web/channels/user_socket.ex | alexadaze/alexa | 35fbef14f6cd884a51447553cfe2cf9794d153b3 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | alexadaze/alexa | 35fbef14f6cd884a51447553cfe2cf9794d153b3 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | alexadaze/alexa | 35fbef14f6cd884a51447553cfe2cf9794d153b3 | [
"Apache-2.0"
] | null | null | null | defmodule Alexa.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Alexa.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authenticat... | 30.526316 | 83 | 0.7 |
abadf33231bc32cc9fe55b8166aa2615f321d30a | 303 | ex | Elixir | lib/es_client/response.ex | tlux/es_client | 6336dfab012d2d7ed5339c84d2f6c5f298d79f28 | [
"MIT"
] | null | null | null | lib/es_client/response.ex | tlux/es_client | 6336dfab012d2d7ed5339c84d2f6c5f298d79f28 | [
"MIT"
] | null | null | null | lib/es_client/response.ex | tlux/es_client | 6336dfab012d2d7ed5339c84d2f6c5f298d79f28 | [
"MIT"
] | null | null | null | defmodule ESClient.Response do
@moduledoc """
A struct containing the response data for an Elasticsearch request.
"""
defstruct [:content_type, :data, :status_code]
@type t :: %__MODULE__{
content_type: String.t(),
data: any,
status_code: integer
}
end
| 21.642857 | 69 | 0.630363 |
abae3b6d3699aa8f2114ef6bfbb59a5f3f67c6dd | 1,123 | exs | Elixir | config/config.exs | madhuravius/redlock | 6d39156bad658abd4cbdaa955e9b64fffb4c15e6 | [
"MIT"
] | 21 | 2018-01-10T08:38:31.000Z | 2022-01-30T19:15:25.000Z | config/config.exs | madhuravius/redlock | 6d39156bad658abd4cbdaa955e9b64fffb4c15e6 | [
"MIT"
] | 16 | 2017-10-09T03:31:25.000Z | 2021-09-01T15:06:49.000Z | config/config.exs | madhuravius/redlock | 6d39156bad658abd4cbdaa955e9b64fffb4c15e6 | [
"MIT"
] | 17 | 2018-05-17T11:30:14.000Z | 2022-01-28T12:46:28.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.225806 | 73 | 0.751558 |
abae5896ef742e08e23483ab99256d2f525febe5 | 22,459 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/https_health_checks.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/https_health_checks.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/api/https_health_checks.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... | 51.511468 | 434 | 0.656441 |
abae619a3be59c0135974d180beb5eb49e7aa8ea | 1,689 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_timing.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_timing.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_timing.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.1875 | 178 | 0.757253 |
abae6e1564127d0709d8b96106a7aebfb352f656 | 61 | ex | Elixir | blue_sky/web/views/layout_view.ex | Rumel/bluesky | 9c68cad09e90d98411117ea7334f41c88c82ab19 | [
"MIT"
] | 2 | 2016-03-11T00:50:04.000Z | 2016-04-05T02:17:20.000Z | blue_sky/web/views/layout_view.ex | Rumel/bluesky | 9c68cad09e90d98411117ea7334f41c88c82ab19 | [
"MIT"
] | null | null | null | blue_sky/web/views/layout_view.ex | Rumel/bluesky | 9c68cad09e90d98411117ea7334f41c88c82ab19 | [
"MIT"
] | null | null | null | defmodule BlueSky.LayoutView do
use BlueSky.Web, :view
end
| 15.25 | 31 | 0.786885 |
abae728cc74ca82fcb5ba3fb3e749fb20807d507 | 842 | ex | Elixir | lib/snowflake_elixir/snowflake_query.ex | kianmeng/snowflake_elixir | 0a08c585cc27240b5292ef102e3a9d38cca49eb8 | [
"MIT"
] | 5 | 2020-10-30T03:29:59.000Z | 2022-03-07T21:51:24.000Z | lib/snowflake_elixir/snowflake_query.ex | kianmeng/snowflake_elixir | 0a08c585cc27240b5292ef102e3a9d38cca49eb8 | [
"MIT"
] | 9 | 2020-10-25T12:49:05.000Z | 2022-02-22T11:54:26.000Z | lib/snowflake_elixir/snowflake_query.ex | kianmeng/snowflake_elixir | 0a08c585cc27240b5292ef102e3a9d38cca49eb8 | [
"MIT"
] | 4 | 2020-10-25T11:06:12.000Z | 2022-02-26T00:31:44.000Z | defmodule SnowflakeEx.Query do
defstruct [
:ref,
:name,
:statement,
:param_oids,
:param_formats,
:param_types,
:columns,
:result_oids,
:result_formats,
:result_types,
:types,
cache: :reference
]
defimpl DBConnection.Query do
def parse(query, _opts), do: query
... | 22.157895 | 63 | 0.630641 |
abae8ae5262ede5b2f51bf39f2782f2d8f3dddab | 5,026 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/embedded_object_suggestion_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/embedded_object_suggestion_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/embedded_object_suggestion_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... | 53.468085 | 258 | 0.745523 |
abae9b3206a0d89f0f582b4921451450efb25969 | 2,494 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_changelog.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_changelog.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_changelog.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.369231 | 145 | 0.686047 |
abaea02c876cac251a7c03680d93e317fa9b99d2 | 1,136 | ex | Elixir | lib/job_board_web/controllers/api/job_api_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/api/job_api_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/api/job_api_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.JobAPIController do
use JobBoardWeb, :controller
alias JobBoard.Jobs
alias JobBoard.Jobs.Job
plug JobBoardWeb.Plugs.APIRequireAuth
def create(conn, %{"job" => job_params}) do
case Jobs.get_by_link_limit(job_params["link"], 1) do
nil ->
conn.assigns.current_user
... | 22.72 | 70 | 0.596831 |
abaec4148af93c8bc66a5c8e29419a7d078ce810 | 1,908 | ex | Elixir | lib/crawler/fetcher.ex | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | 1 | 2018-08-15T13:26:19.000Z | 2018-08-15T13:26:19.000Z | lib/crawler/fetcher.ex | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | null | null | null | lib/crawler/fetcher.ex | rhnonose/crawler | e0ba256cb4f81e6edfa405febcbc5741ac007f27 | [
"MIT"
] | null | null | null | defmodule Crawler.Fetcher do
@moduledoc """
Fetches pages and perform tasks on them.
"""
alias __MODULE__.{Policer, Recorder, Requester, HeaderPreparer}
alias Crawler.{Snapper, Store.Page}
@doc """
Fetches a URL by:
- verifying whether the URL needs fetching through `Crawler.Fetcher.Policer.police/1`... | 29.8125 | 87 | 0.649371 |
abaed34a69518f58c91a081e75da09047a246124 | 3,885 | exs | Elixir | test/request_cache_absinthe_test.exs | MikaAK/request_cache_plug | de5c413b686e4dc71cf2bb7c8784353a404acf32 | [
"MIT"
] | 3 | 2022-03-27T22:42:09.000Z | 2022-03-28T17:50:37.000Z | test/request_cache_absinthe_test.exs | MikaAK/request_cache_plug | de5c413b686e4dc71cf2bb7c8784353a404acf32 | [
"MIT"
] | null | null | null | test/request_cache_absinthe_test.exs | MikaAK/request_cache_plug | de5c413b686e4dc71cf2bb7c8784353a404acf32 | [
"MIT"
] | 1 | 2022-03-28T17:48:58.000Z | 2022-03-28T17:48:58.000Z | defmodule RequestCacheAbsintheTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
use Plug.Test
alias RequestCache.Support.EnsureCalledOnlyOnce
defmodule Schema do
use Absinthe.Schema
query do
field :hello, :string do
resolve fn _, %{context: %{call_pid: pid}} ->
E... | 27.75 | 112 | 0.632432 |
abaf0bb657c6ad1a965bd436522a4300bdcc7c96 | 277 | exs | Elixir | priv/repo/migrations/20200302211911_update_token_allow_null.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | priv/repo/migrations/20200302211911_update_token_allow_null.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | priv/repo/migrations/20200302211911_update_token_allow_null.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Repo.Migrations.UpdateTokenAllowNull do
use Ecto.Migration
def up do
alter table(:users) do
modify :token, :uuid, null: true
end
end
def down do
alter table(:users) do
modify :token, :uuid, null: false
end
end
end
| 17.3125 | 62 | 0.66787 |
abaf3423c2553f1b2aa6edaca362583ce650864e | 341 | exs | Elixir | examples/simple/mix.exs | pma/riak_ecto | 0a98299f6d8f592690f231084663eda9dc61d77f | [
"Unlicense"
] | 32 | 2015-08-10T22:40:37.000Z | 2020-09-15T06:37:50.000Z | examples/simple/mix.exs | pma/riak_ecto | 0a98299f6d8f592690f231084663eda9dc61d77f | [
"Unlicense"
] | 10 | 2016-01-20T09:24:54.000Z | 2016-05-01T11:05:28.000Z | examples/simple/mix.exs | pma/riak_ecto | 0a98299f6d8f592690f231084663eda9dc61d77f | [
"Unlicense"
] | 8 | 2016-04-13T01:41:24.000Z | 2018-11-01T17:18:49.000Z | defmodule Simple.Mixfile do
use Mix.Project
def project do
[app: :simple,
version: "0.0.1",
deps: deps]
end
def application do
[mod: {Simple.App, []},
applications: [:riak_ecto, :ecto]]
end
defp deps do
[{:riak_ecto, path: "../.."},
{:ecto, path: "../../deps/ecto/", overri... | 17.05 | 55 | 0.56305 |
abaf3ae30bb3d15608611e926d26ff38e01c18c4 | 314 | ex | Elixir | lib/codes/codes_l42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_L42 do
alias IcdCode.ICDCode
def _L42 do
%ICDCode{full_code: "L42",
category_code: "L42",
short_code: "",
full_name: "Pityriasis rosea",
short_name: "Pityriasis rosea",
category_name: "Pityriasis rosea"
}
end
end
| 19.625 | 43 | 0.605096 |
abaf502a25e91ab80de6983f006a04419dd31733 | 1,701 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/operation_dns_key_context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dns/lib/google_api/dns/v1/model/operation_dns_key_context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/operation_dns_key_context.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 ... | 34.02 | 116 | 0.730159 |
abaf615c87c140213eb382f8733ee773b1488fde | 1,362 | ex | Elixir | lib/credo/check/refactor/append_single_item.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/append_single_item.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/append_single_item.ex | harlantwood/credo | 4569c9c8cfcf74a2074d6911541da0265e52ae99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.AppendSingleItem do
@moduledoc """
When building up large lists, it is faster to prepend than
append. Therefore: It is sometimes best to prepend to the list
during iteration and call Enum.reverse/1 at the end, as it is quite
fast.
Example:
list = list_so_far ++ [new_it... | 24.763636 | 83 | 0.639501 |
abaf64857cd062a682f91eb63742475d8472ecdb | 2,944 | ex | Elixir | lib/pbcs/utils.ex | fhunleth/pbcs | 253fef9127725a9bc1d5310a10d95878af8c5d27 | [
"Apache-2.0"
] | 16 | 2018-09-03T21:59:29.000Z | 2021-11-27T08:15:17.000Z | lib/pbcs/utils.ex | fhunleth/pbcs | 253fef9127725a9bc1d5310a10d95878af8c5d27 | [
"Apache-2.0"
] | 8 | 2018-08-28T17:46:23.000Z | 2021-06-02T00:19:43.000Z | lib/pbcs/utils.ex | fhunleth/pbcs | 253fef9127725a9bc1d5310a10d95878af8c5d27 | [
"Apache-2.0"
] | 3 | 2018-09-12T12:32:16.000Z | 2021-05-10T13:39:08.000Z | defmodule PBCS.Utils do
@moduledoc false
def base64url_encode(binary) do
try do
Base.url_encode64(binary, padding: false)
catch
_, _ ->
binary
|> Base.encode64()
|> urlsafe_encode64(<<>>)
end
end
def base64url_decode(binary) do
try do
Base.url_decode64... | 20.732394 | 89 | 0.594769 |
abaf6a015139150a2fb37db73cbcc98b5adefd14 | 1,288 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/abuse_type.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/abuse_type.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/abuse_type.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... | 27.404255 | 74 | 0.720497 |
abaf75e1b2b90837ce0e78b0ed613e8e4c7fa1ba | 96 | exs | Elixir | test/phx_firewallplug_web/views/page_view_test.exs | sonajen/phx_firewallplug | a9bfc388a1a2cbc0f7366986d699bde46bbf33df | [
"MIT"
] | null | null | null | test/phx_firewallplug_web/views/page_view_test.exs | sonajen/phx_firewallplug | a9bfc388a1a2cbc0f7366986d699bde46bbf33df | [
"MIT"
] | null | null | null | test/phx_firewallplug_web/views/page_view_test.exs | sonajen/phx_firewallplug | a9bfc388a1a2cbc0f7366986d699bde46bbf33df | [
"MIT"
] | null | null | null | defmodule PhxFirewallplugWeb.PageViewTest do
use PhxFirewallplugWeb.ConnCase, async: true
end
| 24 | 46 | 0.854167 |
abaf762206566a71960ed88bc775c2e87fe273d8 | 100 | exs | Elixir | test/bank_account_charts_web/views/page_view_test.exs | pinksynth/bank-account-charts | a4bb4c94941994a68151a7b3a94828d9bbf10833 | [
"MIT"
] | null | null | null | test/bank_account_charts_web/views/page_view_test.exs | pinksynth/bank-account-charts | a4bb4c94941994a68151a7b3a94828d9bbf10833 | [
"MIT"
] | null | null | null | test/bank_account_charts_web/views/page_view_test.exs | pinksynth/bank-account-charts | a4bb4c94941994a68151a7b3a94828d9bbf10833 | [
"MIT"
] | null | null | null | defmodule BankAccountChartsWeb.PageViewTest do
use BankAccountChartsWeb.ConnCase, async: true
end
| 25 | 48 | 0.86 |
abaf792911291721116aac9bb9ba952cbdf62835 | 1,036 | exs | Elixir | test/entice/logic/npc_test.exs | entice/logic | e66b753d67f9ffcedf48a3097f2428f60de38d06 | [
"WTFPL"
] | 12 | 2015-02-11T21:50:03.000Z | 2020-12-24T23:05:07.000Z | test/entice/logic/npc_test.exs | entice/logic | e66b753d67f9ffcedf48a3097f2428f60de38d06 | [
"WTFPL"
] | 12 | 2015-09-21T11:19:27.000Z | 2016-09-11T08:13:58.000Z | test/entice/logic/npc_test.exs | entice/logic | e66b753d67f9ffcedf48a3097f2428f60de38d06 | [
"WTFPL"
] | 7 | 2015-09-20T14:37:31.000Z | 2021-07-19T18:10:51.000Z | defmodule Entice.Logic.NpcTest do
use ExUnit.Case, async: true
use Entice.Logic.Maps
use Entice.Logic.Attributes
alias Entice.Entity
alias Entice.Logic.Npc
alias Entice.Logic.Player.{Name, Position, Level}
setup do
{:ok, _id, pid} = Npc.spawn("Dhuum", :dhuum, %Position{pos: %Coord{x: 1, y: 2}, plane... | 34.533333 | 102 | 0.671815 |
abafbaf746891827f91820e46af4126790ba2529 | 876 | exs | Elixir | plugins/ucc_webrtc/test/ucc_webrtc/models/client_device_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/test/ucc_webrtc/models/client_device_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/test/ucc_webrtc/models/client_device_test.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccWebrtc.ClientDeviceTest do
use UccWebrtc.DataCase
unless Code.ensure_compiled?(UcxUcc.TestHelpers) do
Code.load_file "test_helpers.ex", "./test/support"
end
import UcxUcc.TestHelpers
import UccWebrtc.TestHelpers
# alias UccWebrtc.ClientDevice
test "create client device" do
user = ... | 24.333333 | 54 | 0.692922 |
abafc6816a70bf6ce1988c2003ddda7d7921efb8 | 10,038 | exs | Elixir | integration_test/adapter_test.exs | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | 21 | 2022-01-22T21:41:30.000Z | 2022-03-25T20:39:04.000Z | integration_test/adapter_test.exs | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | 11 | 2022-01-18T15:56:37.000Z | 2022-03-21T23:26:37.000Z | integration_test/adapter_test.exs | vaxine-io/vax | 562a0b6c1dbac54ac45422a413a75a35f33644c6 | [
"Apache-2.0"
] | null | null | null | defmodule Vax.AdapterIntegrationTest do
use ExUnit.Case, async: true
defmodule TestRepo do
use Ecto.Repo, adapter: Vax.Adapter, otp_app: :vax
end
defmodule MySchema do
use Vax.Schema
schema "my_schema" do
field(:name, :string)
field(:age, :integer)
field(:number_of_friends, :int... | 32.070288 | 98 | 0.605997 |
abafe4e4b8cfb5f7a5a5ba86d0e3c1da3d87177d | 2,219 | ex | Elixir | lib/battle_box_web/controllers/docs_controller.ex | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | lib/battle_box_web/controllers/docs_controller.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | lib/battle_box_web/controllers/docs_controller.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBoxWeb.DocsController do
use BattleBoxWeb, :controller
alias BattleBoxWeb.DocsView
import BattleBox.InstalledGames, only: [installed_games: 0, game_type_name_to_module: 1]
import BattleBox.Utilities.Humanize, only: [kebabify: 1, unkebabify: 1]
@game_docs (for game <- installed_games(), into: ... | 27.7375 | 95 | 0.607932 |
abaffebba6bf63f01c80e1d1f212eb5671b04a5d | 1,153 | ex | Elixir | apps/exsemantica_phx/test/support/channel_case.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | 1 | 2021-09-11T15:46:04.000Z | 2021-09-11T15:46:04.000Z | apps/exsemantica_phx/test/support/channel_case.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | 4 | 2021-01-18T00:49:02.000Z | 2022-02-23T05:18:37.000Z | apps/exsemantica_phx/test/support/channel_case.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaPhxWeb.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 common data structures and query the data layer.
Finally, if the test case inte... | 28.121951 | 76 | 0.737207 |
abb02495883034346b8f95ab3866dc43e586e6bb | 1,328 | exs | Elixir | config/config.exs | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | config/config.exs | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | config/config.exs | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | 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
config :todo_app,
ecto_repos: [TodoApp.Repo]
... | 32.390244 | 90 | 0.77259 |
abb0628566292ad9e9a0aa8ae938824b805dd0d6 | 2,967 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/performance_goal.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/performance_goal.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/performance_goal.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.982143 | 512 | 0.762723 |
abb07ef244d6a17e27ce7dff1959639693c1808c | 1,752 | ex | Elixir | lib/surgex/changeset/changeset.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | lib/surgex/changeset/changeset.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | lib/surgex/changeset/changeset.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | case Code.ensure_loaded(Jabbax) do
{:module, _} ->
defmodule Surgex.Changeset do
@moduledoc """
Tools for working with Ecto changesets.
"""
use Jabbax.Document
@doc """
Builds Jabbax document that describes changeset errors.
"""
def build_errors_document(changeset... | 30.206897 | 97 | 0.615868 |
abb08e552adbf562c323156dd13d3acae0fe99f7 | 15,332 | ex | Elixir | lib/bamboo/adapters/smtp_adapter.ex | pascalaldo/bamboo_smtp | 9bb648b846ce551f1f4cd4dd1ee7586f0fa0c2db | [
"MIT"
] | null | null | null | lib/bamboo/adapters/smtp_adapter.ex | pascalaldo/bamboo_smtp | 9bb648b846ce551f1f4cd4dd1ee7586f0fa0c2db | [
"MIT"
] | null | null | null | lib/bamboo/adapters/smtp_adapter.ex | pascalaldo/bamboo_smtp | 9bb648b846ce551f1f4cd4dd1ee7586f0fa0c2db | [
"MIT"
] | null | null | null | defmodule Bamboo.SMTPAdapter do
@moduledoc """
Sends email using SMTP.
Use this adapter to send emails through SMTP. This adapter requires
that some settings are set in the config. See the example section below.
*Sensitive credentials should not be committed to source control and are best kept in environmen... | 29.428023 | 111 | 0.695669 |
abb0bb6b0cc361fd195c3c37b133010aaa48e0db | 1,001 | exs | Elixir | priv/repo/migrations/20191020130234_increase_datetime_precision.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | priv/repo/migrations/20191020130234_increase_datetime_precision.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | priv/repo/migrations/20191020130234_increase_datetime_precision.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMate.Repo.Migrations.IncreaseDatetimePrecision do
use Ecto.Migration
def change do
alter table(:charging_processes) do
modify(:start_date, :utc_datetime_usec, from: :utc_datetime)
modify(:end_date, :utc_datetime_usec, from: :utc_datetime)
end
alter table(:drives) do
mo... | 29.441176 | 66 | 0.704296 |
abb10e1687646ff534bb2be5a414eefd0a917bcc | 964 | exs | Elixir | mix.exs | mushfick/alice_weather | 27ab08b35190947b0c975c9514b6398a6a583fea | [
"MIT"
] | 1 | 2019-02-06T02:50:00.000Z | 2019-02-06T02:50:00.000Z | mix.exs | mushfick/alice_weather | 27ab08b35190947b0c975c9514b6398a6a583fea | [
"MIT"
] | 1 | 2020-04-20T19:29:04.000Z | 2020-04-20T19:29:04.000Z | mix.exs | alice-bot/alice_weather | 27ab08b35190947b0c975c9514b6398a6a583fea | [
"MIT"
] | null | null | null | defmodule AliceWeather.Mixfile do
use Mix.Project
def project do
[
app: :alice_weather,
version: "0.2.2",
elixir: "~> 1.5",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: "A handler for the Alice Slack bot. Allows Alice to provide the weath... | 24.717949 | 122 | 0.582988 |
abb113dbc75a9ea211ed986027045774e3ddf071 | 409 | exs | Elixir | prism/test/prism_web/views/error_view_test.exs | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | 5 | 2019-10-19T16:44:47.000Z | 2020-05-05T16:33:58.000Z | prism/test/prism_web/views/error_view_test.exs | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | prism/test/prism_web/views/error_view_test.exs | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | defmodule PrismWeb.ErrorViewTest do
use PrismWeb.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(PrismWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert r... | 27.266667 | 90 | 0.728606 |
abb11943e0ac7fa6f6fa717f1629fb870208acf8 | 5,817 | ex | Elixir | lib/explorer/polars_backend/native.ex | srowley/explorer | f17dd01d0b60f7d00718c94a8b0779befb1c8e82 | [
"MIT"
] | null | null | null | lib/explorer/polars_backend/native.ex | srowley/explorer | f17dd01d0b60f7d00718c94a8b0779befb1c8e82 | [
"MIT"
] | null | null | null | lib/explorer/polars_backend/native.ex | srowley/explorer | f17dd01d0b60f7d00718c94a8b0779befb1c8e82 | [
"MIT"
] | null | null | null | defmodule Explorer.PolarsBackend.Native do
@moduledoc false
mix_config = Mix.Project.config()
version = mix_config[:version]
github_url = mix_config[:package][:links]["GitHub"]
use RustlerPrecompiled,
otp_app: :explorer,
version: version,
base_url: "#{github_url}/releases/download/v#{version}",
... | 32.497207 | 86 | 0.64535 |
abb141d77417469c562c03c69b04497ee4227209 | 543 | ex | Elixir | lib/bitty_web/controllers/url_controller.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | 1 | 2021-06-17T21:49:04.000Z | 2021-06-17T21:49:04.000Z | lib/bitty_web/controllers/url_controller.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | lib/bitty_web/controllers/url_controller.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | defmodule BittyWeb.UrlController do
use BittyWeb, :controller
alias Bitty.Urls
action_fallback BittyWeb.FallbackController
@spec create(Plug.Conn.t(), map()) :: Plug.Conn.t()
def create(conn, params) do
with {:ok, url} <- Urls.create(params) do
conn
|> put_status(201)
|> render("show.... | 22.625 | 53 | 0.61326 |
abb14612b366dcadedfbe42d162975aa25beebc4 | 311 | ex | Elixir | lib/space_mongers/models/location.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | 2 | 2021-03-18T02:00:29.000Z | 2021-04-18T06:11:07.000Z | lib/space_mongers/models/location.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | null | null | null | lib/space_mongers/models/location.ex | ericgroom/space_mongers | e9f979318dca2e8ee4f685014bae585db15cd117 | [
"MIT"
] | null | null | null | defmodule SpaceMongers.Models.Location do
@moduledoc """
Represents a location within a system.
"""
use SpaceMongers.Model,
name: String.t(),
symbol: String.t(),
type: String.t(),
x: integer(),
y: integer(),
extra_fields: map()
@impl true
def ignore_keys, do: ["ships"]
end
| 19.4375 | 41 | 0.630225 |
abb153fc97af19b30a42c51d308a46e9ecdf1a1a | 375 | ex | Elixir | lib/membrane/keyframe_request_event.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 515 | 2018-06-18T11:09:44.000Z | 2020-07-31T07:54:35.000Z | lib/membrane/keyframe_request_event.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 120 | 2018-06-07T08:34:06.000Z | 2020-07-30T07:09:50.000Z | lib/membrane/keyframe_request_event.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | 13 | 2018-07-27T11:58:15.000Z | 2020-05-06T15:19:55.000Z | defmodule Membrane.KeyframeRequestEvent do
@moduledoc """
Generic event for requesting a key frame.
The key frame is meant as a part of stream such that
the stream can be decoded from the beginning of each key
frame without knowledge of the stream content before that
point.
"""
@derive Membrane.EventPr... | 23.4375 | 59 | 0.738667 |
abb163c73a97a54caee9da38bed5bb497b02612b | 5,097 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/commitment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/commitment.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/commitment.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 ... | 57.920455 | 490 | 0.701001 |
abb1739b6ce491662e623e5b2eb3a671ad11a1a9 | 2,620 | ex | Elixir | lib/timber_plug/http_context.ex | treble37/timber-elixir-plug | 334050c1eebb1a3a0bacdd4cfd89b4778686317a | [
"0BSD"
] | 1 | 2019-04-27T15:55:54.000Z | 2019-04-27T15:55:54.000Z | lib/timber_plug/http_context.ex | treble37/timber-elixir-plug | 334050c1eebb1a3a0bacdd4cfd89b4778686317a | [
"0BSD"
] | 1 | 2019-01-08T15:13:05.000Z | 2019-01-08T15:13:05.000Z | lib/timber_plug/http_context.ex | treble37/timber-elixir-plug | 334050c1eebb1a3a0bacdd4cfd89b4778686317a | [
"0BSD"
] | 1 | 2019-05-15T21:22:07.000Z | 2019-05-15T21:22:07.000Z | defmodule Timber.Plug.HTTPContext do
@moduledoc """
Automatically captures the HTTP method, path, and request_id in Plug-based
frameworks like Phoenix and adds it to the context.
By adding this data to the context, you'll be able to associate all the log
statements that occur while processing that HTTP reque... | 31.95122 | 80 | 0.719084 |
abb17f30dd2f4fcd93581854ef3b50201ca21402 | 788 | exs | Elixir | backend/test/spades_web/channels/chat_channel_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/test/spades_web/channels/chat_channel_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/test/spades_web/channels/chat_channel_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesWeb.ChatChannelTest do
use SpadesWeb.ChannelCase
setup do
{:ok, _, socket} =
socket(SpadesWeb.UserSocket, "user_id", %{some: :assign})
|> subscribe_and_join(SpadesWeb.ChatChannel, "chat:lobby")
{:ok, socket: socket}
end
test "ping replies with status ok", %{socket: socket}... | 29.185185 | 66 | 0.629442 |
abb1a8e0298fedbf956ac576f0767d32af59cd09 | 1,657 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/internal_field_metadata_proto.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/internal_field_metadata_proto.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/internal_field_metadata_proto.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.14 | 112 | 0.741098 |
abb1b660bb971dd5ef13675fb828243221f6dba6 | 1,147 | exs | Elixir | config/config.exs | ZmagoD/phoenix_bootstrap_form | 4ef6b54afd586d03f9eb21f1f5ef73c56e668e95 | [
"MIT"
] | 40 | 2017-09-07T03:25:23.000Z | 2022-02-27T04:47:14.000Z | config/config.exs | ZmagoD/phoenix_bootstrap_form | 4ef6b54afd586d03f9eb21f1f5ef73c56e668e95 | [
"MIT"
] | 7 | 2017-09-06T23:56:36.000Z | 2019-09-06T09:49:16.000Z | config/config.exs | ZmagoD/phoenix_bootstrap_form | 4ef6b54afd586d03f9eb21f1f5ef73c56e668e95 | [
"MIT"
] | 15 | 2017-09-29T09:16:11.000Z | 2022-01-19T22:48:14.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 37 | 73 | 0.757629 |
abb1c25a258d5c03d366248ebddea58760629cef | 1,375 | ex | Elixir | lib/ppc/plan/billing_cycle.ex | somatoko/ppc | 464379c3e56132519a7fc53717071c07d06aca85 | [
"Apache-2.0"
] | null | null | null | lib/ppc/plan/billing_cycle.ex | somatoko/ppc | 464379c3e56132519a7fc53717071c07d06aca85 | [
"Apache-2.0"
] | null | null | null | lib/ppc/plan/billing_cycle.ex | somatoko/ppc | 464379c3e56132519a7fc53717071c07d06aca85 | [
"Apache-2.0"
] | null | null | null | defmodule Ppc.Plan.BillingCycle do
alias Ppc.Plan.PricingScheme
defstruct [:pricing_scheme, :frequency, :tenure_type, :sequence, :total_cycles]
@type tenure_type :: :regular | :trial
@type t :: %__MODULE__{
pricing_scheme: PricingScheme.t(),
frequency: String.t(),
tenure_type: t... | 28.645833 | 94 | 0.635636 |
abb1cbe4bc8b23e85c8e35406c3684d3eae86f21 | 887 | exs | Elixir | ex/apps/corals/test/specs/many_test.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/corals/test/specs/many_test.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/corals/test/specs/many_test.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | defmodule ManyTest do
use ExUnit.Case, async: true
import Corals.Resolver
test "single" do
rules = [
[hello: :world]
]
assert %{} |> resolve(rules) == %{hello: :world}
end
test "dups" do
rules = [
[hello: :world],
[hello: :there]
]
assert %{} |> resolve(rules) == %... | 17.74 | 64 | 0.474634 |
abb20804a7324313a61223eedc6daa1aa9f151da | 1,274 | ex | Elixir | web/channels/user_socket.ex | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | 1 | 2016-05-06T00:00:10.000Z | 2016-05-06T00:00:10.000Z | web/channels/user_socket.ex | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | defmodule QuartoElugRJ.UserSocket do
use Phoenix.Socket
## Channels
channel "rooms:*", QuartoElugRJ.RoomChannel
channel "lobby:lobby", QuartoElugRJ.LobbyChannel
channel "call", QuartoElugRJ.WebRTCChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
transport :longpoll, Phoenix.Tran... | 31.85 | 85 | 0.715071 |
abb224aa0ab759ba056749fe9433b3ba37adb384 | 328 | exs | Elixir | apps/banking_api/priv/repo/migrations/20210414143603_create_accounts.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/priv/repo/migrations/20210414143603_create_accounts.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/priv/repo/migrations/20210414143603_create_accounts.exs | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.Repo.Migrations.CreateAccounts do
use Ecto.Migration
def change do
create table(:accounts, primary_key: false) do
add :id, :uuid, primary_key: true
add :user_id, references(:users, type: :uuid), null: false
add :balance, :integer, default: 0
timestamps()
end
... | 23.428571 | 64 | 0.679878 |
abb23dc2930f4f41c1f204798fcb9405b1af9bee | 882 | ex | Elixir | backend/test/support/conn_case.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 19 | 2018-06-07T23:28:34.000Z | 2019-04-23T18:57:43.000Z | backend/test/support/conn_case.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 27 | 2018-06-10T14:38:55.000Z | 2018-10-10T23:28:43.000Z | backend/test/support/conn_case.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 7 | 2018-06-08T01:38:46.000Z | 2022-01-12T18:25:34.000Z | defmodule WindshieldWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if ... | 26.727273 | 58 | 0.73356 |
abb240c6eeaf28a9af8e53dae7d719dc95bc4e4b | 857 | ex | Elixir | samples/client/petstore/elixir/lib/swagger_petstore/model/pet.ex | derBiggi/swagger-codegen | 99dad052ec506796f3ed13b19364cf827ff0f256 | [
"Apache-2.0"
] | 14,570 | 2015-01-01T21:46:46.000Z | 2022-03-31T22:28:15.000Z | samples/client/petstore/elixir/lib/swagger_petstore/model/pet.ex | derBiggi/swagger-codegen | 99dad052ec506796f3ed13b19364cf827ff0f256 | [
"Apache-2.0"
] | 9,058 | 2015-01-08T15:49:17.000Z | 2022-03-31T13:10:01.000Z | samples/client/petstore/elixir/lib/swagger_petstore/model/pet.ex | LaudateCorpus1/swagger-codegen | e4f322ce197f1d6a0643de80f9a20bb521480426 | [
"Apache-2.0"
] | 6,907 | 2015-01-02T05:29:47.000Z | 2022-03-31T00:55:45.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule SwaggerPetstore.Model.Pet do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"id",
:"category",
:"name",
:"ph... | 21.974359 | 81 | 0.634772 |
abb283b0114aed244226a7acb949c625101b0984 | 28,258 | ex | Elixir | lib/elixir/lib/keyword.ex | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/keyword.ex | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/keyword.ex | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | null | null | null | defmodule Keyword do
@moduledoc """
A set of functions for working with keywords.
A keyword is a list of two-element tuples where the first
element of the tuple is an atom and the second element
can be any value.
For example, the following is a keyword list:
[{:exit_on_close, true}, {:active, :once... | 26.75947 | 98 | 0.592717 |
abb2e07b0ecd1a224d1acc22724645b8384aed48 | 210 | ex | Elixir | lib/beam/macro_env/macro_env.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/macro_env/macro_env.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/macro_env/macro_env.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | defmodule Example_MacroEnv do
def start do
Macro.Env.lookup_import(__ENV__, {:def, 1})
end
def start2 do
Macro.Env.required?(__ENV__, Integer)
Macro.Env.required?(__ENV__, Kernel)
end
end
| 17.5 | 47 | 0.704762 |
abb31a0bd486171801cb42f42539a03159d6d4db | 6,262 | exs | Elixir | test/groupher_server_web/mutation/cms/flags/works_flag_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/flags/works_flag_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/flags/works_flag_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Flags.WorksFlag do
use GroupherServer.TestTools
alias GroupherServer.CMS
alias CMS.Model.Community
alias Helper.ORM
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
{:ok, works} = CMS.create_article(community, :works, mock_... | 34.98324 | 92 | 0.654104 |
abb31d2e914eb9fa1949490985d93c9381f8f923 | 710 | exs | Elixir | config/prod.secret.exs | AgileVentures/Paironauts | cc151885cede272c22b008d2f5e550c89391264c | [
"MIT"
] | 7 | 2017-11-18T15:36:58.000Z | 2020-04-22T10:51:15.000Z | config/prod.secret.exs | AgileVentures/Paironauts | cc151885cede272c22b008d2f5e550c89391264c | [
"MIT"
] | 33 | 2017-12-08T11:21:09.000Z | 2020-02-19T04:24:35.000Z | config/prod.secret.exs | AgileVentures/Paironauts | cc151885cede272c22b008d2f5e550c89391264c | [
"MIT"
] | 5 | 2017-11-15T18:51:59.000Z | 2018-12-13T06:01:23.000Z | use Mix.Config
# In this file, we keep production configuration that
# you'll likely want to automate and keep away from
# your version control system.
#
# You should document the content of this
# file or create a script for recreating it, since it's
# kept out of version control and might be hard to recover
# or rec... | 33.809524 | 58 | 0.776056 |
abb3226a3276b7432497e0c00c173a26bbe0e2ba | 1,720 | exs | Elixir | mix.exs | joaodubas/nlw-06 | 7d6a0dedf99ae81e37b3830268ca28ff671ba922 | [
"MIT"
] | null | null | null | mix.exs | joaodubas/nlw-06 | 7d6a0dedf99ae81e37b3830268ca28ff671ba922 | [
"MIT"
] | null | null | null | mix.exs | joaodubas/nlw-06 | 7d6a0dedf99ae81e37b3830268ca28ff671ba922 | [
"MIT"
] | null | null | null | defmodule Wabanex.MixProject do
use Mix.Project
def project do
[
app: :wabanex,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
dialyzer: [plt_core_pat... | 27.741935 | 79 | 0.518023 |
abb329e0c03c1bdca687028596ea3f2deed05162 | 4,387 | ex | Elixir | lib/ex_aws/config/defaults.ex | lex-mala/ex_aws | 06f3962d4077d00560b3bff99647eb82cd68fa8f | [
"MIT"
] | null | null | null | lib/ex_aws/config/defaults.ex | lex-mala/ex_aws | 06f3962d4077d00560b3bff99647eb82cd68fa8f | [
"MIT"
] | 1 | 2022-03-09T22:58:02.000Z | 2022-03-30T16:39:23.000Z | lib/ex_aws/config/defaults.ex | lex-mala/ex_aws | 06f3962d4077d00560b3bff99647eb82cd68fa8f | [
"MIT"
] | 1 | 2022-03-09T16:40:43.000Z | 2022-03-09T16:40:43.000Z | defmodule ExAws.Config.Defaults do
@moduledoc """
Defaults for each service
"""
@common %{
access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, :instance_role],
secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, :instance_role],
http_client: ExAws.Request.Hackney,
json_codec: Jason,
retries... | 25.505814 | 93 | 0.616139 |
abb33c20467c8ef866051867e9c8eacaed267527 | 179 | exs | Elixir | config/cron_tasks.exs | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 3 | 2020-11-23T15:30:04.000Z | 2020-12-01T17:11:49.000Z | config/cron_tasks.exs | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 1 | 2020-12-29T09:09:03.000Z | 2020-12-29T09:09:03.000Z | config/cron_tasks.exs | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 1 | 2021-08-11T10:10:16.000Z | 2021-08-11T10:10:16.000Z | import Config
config :cat_on_duty, CatOnDuty.Scheduler,
jobs: [
# Everyday at 7:00 UTC
{"0 7 * * *", {CatOnDutyWeb.RotateTodaySentryAndNotify, :for_all_teams, []}}
]
| 22.375 | 80 | 0.670391 |
abb369d06987eb377d5642ae24e563df6a5de5b9 | 2,460 | ex | Elixir | lib/credo/check/consistency/space_around_operators/space_helper.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/credo/check/consistency/space_around_operators/space_helper.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/check/consistency/space_around_operators/space_helper.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.SpaceAroundOperators.SpaceHelper do
@doc """
Returns true if there is no space before the operator (usually).
Examples:
x..-1 # .. is the operator here and there is usually no space before that
"""
def usually_no_space_before?({_, _, :^}, {_, _, :-}, _), do: true
def u... | 37.846154 | 77 | 0.626423 |
abb38e6b86b457dcec2bd2720af0a10bead44531 | 699 | exs | Elixir | apps/debugger/mix.exs | dgutov/elixir-ls | 7eaa1ff642cf020cf7699fa5bd0a1da929f9b6dc | [
"Apache-2.0"
] | 1 | 2020-06-01T11:25:33.000Z | 2020-06-01T11:25:33.000Z | apps/debugger/mix.exs | dgutov/elixir-ls | 7eaa1ff642cf020cf7699fa5bd0a1da929f9b6dc | [
"Apache-2.0"
] | null | null | null | apps/debugger/mix.exs | dgutov/elixir-ls | 7eaa1ff642cf020cf7699fa5bd0a1da929f9b6dc | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.Debugger.Mixfile do
use Mix.Project
def project do
[
app: :debugger,
version: "0.4.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: ">= 1.7.0",
build_embedded: ... | 21.84375 | 71 | 0.586552 |
abb3947c57e0b9533d93e5470e401e51685b317a | 2,851 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/instance.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/instance.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/instance.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... | 48.322034 | 657 | 0.708523 |
abb3a892d9e08d1e42f03929fc4fc35362525843 | 1,367 | ex | Elixir | clients/books/lib/google_api/books/v1/model/review.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/review.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/review.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... | 27.897959 | 87 | 0.707388 |
abb3b7376fd76657d61c29d4cdf3b31b304371a1 | 528 | ex | Elixir | lib/loadex/metrics.ex | rstgroup/loadex | f961556bb6f5ee3272ccb6b25a7f3c186743a551 | [
"MIT"
] | 1 | 2021-02-18T14:35:48.000Z | 2021-02-18T14:35:48.000Z | lib/loadex/metrics.ex | rstgroup/loadex | f961556bb6f5ee3272ccb6b25a7f3c186743a551 | [
"MIT"
] | 10 | 2020-10-04T10:56:26.000Z | 2021-10-01T17:42:03.000Z | lib/loadex/metrics.ex | rstgroup/loadex | f961556bb6f5ee3272ccb6b25a7f3c186743a551 | [
"MIT"
] | 2 | 2020-10-05T07:40:59.000Z | 2021-02-25T14:20:27.000Z | defmodule Loadex.Metrics do
@moduledoc false
@backend Loadex.Metrics.Noop
def child_spec(opts) do
%{
id: @backend,
start: {@backend, :start_link, [opts]},
type: :worker,
restart: :permanent
}
end
def with_timer(key, fun, args \\ []) do
{time, result} = :timer.tc(fn -> app... | 18.857143 | 58 | 0.602273 |
abb3eda75774e9d3065722c4ca84311f50012547 | 5,937 | exs | Elixir | test/acceptance/ast/links_images/link_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/link_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/link_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Acceptance.Ast.LinkImages.LinkTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, as_ast: 2, parse_html: 1]
@moduletag :ast
describe "Link reference definitions" do
test "link with title" do
markdown = "[foo]: /url \"title\"\n\n[foo]\n"
html = "<p><a href=\... | 27.873239 | 86 | 0.526023 |
abb3fbb99bf380c26ee41dd138f19ae16db22a34 | 16,887 | ex | Elixir | lib/aws/code_deploy.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 2 | 2019-11-17T02:31:18.000Z | 2019-11-20T22:00:29.000Z | lib/aws/code_deploy.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | null | null | null | lib/aws/code_deploy.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 1 | 2019-11-16T18:08:18.000Z | 2019-11-16T18:08:18.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.CodeDeploy do
@moduledoc """
AWS CodeDeploy
AWS CodeDeploy is a deployment service that automates application
deployments to Amazon EC2 instances, on-premises instances running in your
ow... | 34.746914 | 81 | 0.720554 |
abb4492586c416afe513811b89d52bf4349b4c14 | 175 | exs | Elixir | back/priv/repo/migrations/20190910093726_create_roles.exs | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/priv/repo/migrations/20190910093726_create_roles.exs | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/priv/repo/migrations/20190910093726_create_roles.exs | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | defmodule Api.Repo.Migrations.CreateRoles do
use Ecto.Migration
def change do
create table(:roles) do
add :name, :string
timestamps()
end
end
end
| 13.461538 | 44 | 0.662857 |
abb452b71b9daeaee68bc87ee041d8ff8d566798 | 1,955 | exs | Elixir | test/integration/component_test.exs | san650/phoenix_components | 17429dc60a8ed0e469fc828396378fad777533a4 | [
"MIT"
] | 31 | 2018-04-03T15:14:47.000Z | 2021-09-28T03:12:20.000Z | test/integration/component_test.exs | mvdwg/phoenix_components | 17429dc60a8ed0e469fc828396378fad777533a4 | [
"MIT"
] | 13 | 2017-06-11T01:13:25.000Z | 2017-07-24T18:29:17.000Z | test/integration/component_test.exs | mvdwg/phoenix_components | 17429dc60a8ed0e469fc828396378fad777533a4 | [
"MIT"
] | 4 | 2018-08-24T11:59:14.000Z | 2020-06-09T01:33:51.000Z | defmodule PhoenixComponents.Integration.ComponentTest do
use ExUnit.Case
alias PhoenixComponents.View, as: Renderer
with "a content block" do
test "renders a component without attributes" do
html = Renderer.component :button do
"Lorem ipsum"
end
assert parse(html) == {"button", []... | 24.746835 | 84 | 0.609207 |
abb46b2f747ca1a081cfe7d9e246e8b63925fed0 | 80 | exs | Elixir | learning/example_elmchemy/test/elmchemy_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/example_elmchemy/test/elmchemy_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/example_elmchemy/test/elmchemy_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule ElmchemyTest do
use ExUnit.Case
use Elmchemy
doctest Hello
end
| 11.428571 | 25 | 0.775 |
abb486fcb4b563a1d932fab7f5e6c93f0ae8ee6c | 521 | ex | Elixir | lib/centraltipsbot/wallet.ex | mcintyre94/CentralTipsBot | 626145478d3516493e72d271b045d1f19275fef5 | [
"MIT"
] | null | null | null | lib/centraltipsbot/wallet.ex | mcintyre94/CentralTipsBot | 626145478d3516493e72d271b045d1f19275fef5 | [
"MIT"
] | null | null | null | lib/centraltipsbot/wallet.ex | mcintyre94/CentralTipsBot | 626145478d3516493e72d271b045d1f19275fef5 | [
"MIT"
] | null | null | null | defmodule Centraltipsbot.Wallet do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "wallets" do
field :email, :string
field :source, :string
field :source_id, :string
field :confirmed, :boolean
timestamps()
en... | 22.652174 | 67 | 0.685221 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.