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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac47fccafa7c7f30a71d1f720d0cc0165fe58435 | 100 | ex | Elixir | apps/ui/lib/ui/channels/presence.ex | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 3 | 2020-05-01T17:14:23.000Z | 2021-05-15T16:22:43.000Z | apps/ui/lib/ui/channels/presence.ex | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 13 | 2019-08-14T15:44:24.000Z | 2021-09-01T20:17:55.000Z | apps/ui/lib/ui/channels/presence.ex | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | null | null | null | defmodule Ui.Presence do
use Phoenix.Presence,
otp_app: :ui,
pubsub_server: Ui.PubSub
end
| 16.666667 | 28 | 0.72 |
ac484dd6842b31f98cab8f21aecd56d7bdceff96 | 264 | ex | Elixir | lib/Structs/Guild/guild_member.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 163 | 2017-03-01T09:02:35.000Z | 2022-03-09T23:31:48.000Z | lib/Structs/Guild/guild_member.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 91 | 2017-02-23T23:23:35.000Z | 2021-12-29T23:47:44.000Z | lib/Structs/Guild/guild_member.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | 38 | 2017-03-23T13:16:44.000Z | 2022-02-26T15:53:32.000Z | defmodule Alchemy.Guild.GuildMember do
alias Alchemy.User
import Alchemy.Structs
@moduledoc false
defstruct [:user, :nick, :roles, :joined_at, :deaf, :mute]
def from_map(map) do
map
|> field("user", User)
|> to_struct(__MODULE__)
end
end
| 18.857143 | 60 | 0.681818 |
ac4878ac75cf0f056463b4d6f2f27ad691312398 | 3,643 | ex | Elixir | lib/expug/transformer.ex | rstacruz/expug | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 89 | 2016-06-27T07:06:23.000Z | 2022-03-15T18:21:50.000Z | lib/expug/transformer.ex | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 11 | 2016-07-28T17:12:39.000Z | 2021-01-22T02:54:58.000Z | lib/expug/transformer.ex | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 4 | 2016-07-26T15:50:35.000Z | 2019-09-16T22:49:21.000Z | defmodule Expug.Transformer do
@moduledoc """
Transforms a node after compilation.
"""
alias Expug.Visitor
# Helper for later
defmacrop statement?(type) do
quote do
unquote(type) == :buffered_text or
unquote(type) == :unescaped_text or
unquote(type) == :statement
end
end
@do... | 27.390977 | 91 | 0.592369 |
ac4878c23662c1bc41e9c49c7b4a9c0b76e98fb8 | 3,030 | exs | Elixir | priv/repo/migrations/20160317073758_add_package_downloads_pk.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | priv/repo/migrations/20160317073758_add_package_downloads_pk.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | priv/repo/migrations/20160317073758_add_package_downloads_pk.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Repo.Migrations.AddPackageDownloadsPk do
use Ecto.Migration
def up() do
execute("DROP MATERIALIZED VIEW package_downloads")
execute("""
CREATE MATERIALIZED VIEW package_downloads (
id,
package_id,
view,
downloads) AS
SELECT concat(r.package_i... | 35.647059 | 85 | 0.535974 |
ac4884d33645eae5a2ab201a1a26077bd094bfc3 | 104 | ex | Elixir | lib/struct/repo.ex | h-ikeda/structex-web | 16768fe901d7adef3f3d81c26c3f5b5197b06088 | [
"MIT"
] | null | null | null | lib/struct/repo.ex | h-ikeda/structex-web | 16768fe901d7adef3f3d81c26c3f5b5197b06088 | [
"MIT"
] | null | null | null | lib/struct/repo.ex | h-ikeda/structex-web | 16768fe901d7adef3f3d81c26c3f5b5197b06088 | [
"MIT"
] | null | null | null | defmodule Struct.Repo do
use Ecto.Repo,
otp_app: :struct,
adapter: Ecto.Adapters.Postgres
end
| 17.333333 | 35 | 0.721154 |
ac488c65e1e557e3e1992130c5018cf51c46ee47 | 1,659 | exs | Elixir | config/dev.exs | JFMacedo/rocketpay | 2be99035f144a1329ff62bef4ae9f43e9c848b59 | [
"MIT"
] | null | null | null | config/dev.exs | JFMacedo/rocketpay | 2be99035f144a1329ff62bef4ae9f43e9c848b59 | [
"MIT"
] | null | null | null | config/dev.exs | JFMacedo/rocketpay | 2be99035f144a1329ff62bef4ae9f43e9c848b59 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :rocketpay, Rocketpay.Repo,
username: "postgres",
password: "123456",
database: "rocketpay_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloa... | 28.603448 | 68 | 0.727547 |
ac488e5a40a271f8ac7c5fcab8b39a5d878284c9 | 2,188 | exs | Elixir | test/users/keys_test.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | test/users/keys_test.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | test/users/keys_test.exs | nmohoric/tentacat | 3bbb9990aafad0a7232d302526ca00e282e7ba43 | [
"MIT"
] | null | null | null | defmodule Tentacat.Users.KeysTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Users.Keys
doctest Tentacat.Users.Keys
@client Tentacat.Client.new(%{access_token: "8e663c8614ced27c09b963f806ac46776a29db50"})
@public_key "\
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABA... | 33.151515 | 142 | 0.758684 |
ac48bbfa001549b9f48529b6c4f57df20c746dc2 | 2,363 | exs | Elixir | test/data/exit_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/data/exit_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/data/exit_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Data.ExitTest do
use Data.ModelCase
doctest Data.Exit
alias Data.Exit
alias Data.Room
test "loads exits" do
zone = create_zone()
room = create_room(zone, %{x: 2, y: 2})
north = create_room(zone, %{x: 2, y: 1})
east = create_room(zone, %{x: 3, y: 2})
south = create_room(zone, %... | 37.507937 | 103 | 0.672873 |
ac48c04e1cca7b69387c142b9a6a624dfa9ab65a | 1,942 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_generate_service_identity_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_generate_service_identity_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_generate_service_identity_response.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... | 36.641509 | 173 | 0.769825 |
ac48c0e874709fc4ca9c7f29e5232c4302f4ae03 | 1,852 | exs | Elixir | test/axis_test.exs | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 75 | 2019-06-09T07:08:45.000Z | 2022-03-23T16:11:55.000Z | test/axis_test.exs | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 6 | 2020-01-12T08:40:01.000Z | 2021-08-02T20:55:36.000Z | test/axis_test.exs | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 5 | 2020-03-30T20:38:57.000Z | 2021-04-02T15:52:28.000Z | defmodule AxisTest do
require Logger
use ExUnit.Case
alias Plotex.Axis
# @default_css
doctest Plotex
test "data plots" do
xdata = 1..4 |> Enum.map(& &1)
ydata = xdata |> Enum.map(&:math.sin(&1 / 10.0))
xlims = Plotex.Axis.Units.Numeric.range_from(xdata) |> Plotex.ViewRange.new(:horiz)
xa... | 29.870968 | 87 | 0.617171 |
ac48c3468f65b96a566313f53a62cca765c3951b | 116 | ex | Elixir | lib/jeopardy_web/components/game/final_jeopardy/awaiting_answers.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy_web/components/game/final_jeopardy/awaiting_answers.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy_web/components/game/final_jeopardy/awaiting_answers.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule JeopardyWeb.Components.Game.FinalJeopardy.AwaitingAnswers do
use JeopardyWeb.Components.Base, :game
end
| 29 | 70 | 0.853448 |
ac49244b2c9a1a355c6d38d28caf0e4103e801a0 | 249 | exs | Elixir | test/chaos_spawn/examples/gen_server_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 90 | 2015-09-29T16:40:17.000Z | 2022-02-20T18:45:54.000Z | test/chaos_spawn/examples/gen_server_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 17 | 2015-09-29T15:37:43.000Z | 2015-12-09T08:46:41.000Z | test/chaos_spawn/examples/gen_server_test.exs | meadsteve/chaos-spawn | ca983ad96cb1e8541474e726f727d20636828c24 | [
"MIT"
] | 6 | 2015-12-03T16:03:35.000Z | 2018-06-28T00:54:08.000Z | defmodule Example.GenServerTest do
use ExUnit.Case
test "the gen server provide example should work" do
{:ok, server} = ChaosSpawn.Example.GenServer.start_link
assert ChaosSpawn.Example.GenServer.say_hello(server) == "hello"
end
end
| 24.9 | 68 | 0.75502 |
ac499b463ccca7eddea7b8dddc1e648939e06839 | 1,325 | exs | Elixir | test/serum/build/file_loader_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test/serum/build/file_loader_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | test/serum/build/file_loader_test.exs | nallwhy/Serum | ed9f51a83e328789ccfca18d2a0397b45ac4be0f | [
"MIT"
] | null | null | null | defmodule Serum.Build.FileLoaderTest do
use ExUnit.Case, async: true
import Serum.TestHelper
alias Serum.Build.FileLoader
setup do
tmp_dir = get_tmp_dir("serum_test_")
File.mkdir_p!(tmp_dir)
["pages", "posts", "templates", "includes"]
|> Enum.map(&Path.join(tmp_dir, &1))
|> Enum.each(&Fil... | 25.480769 | 79 | 0.618113 |
ac49c41e7d82875b4715e2515807315bc2373335 | 2,679 | exs | Elixir | integration_test/pg/storage_test.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | integration_test/pg/storage_test.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | integration_test/pg/storage_test.exs | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/file_helpers.exs", __DIR__
defmodule Ecto.Integration.StorageTest do
use ExUnit.Case, async: true
@moduletag :capture_log
import Support.FileHelpers
alias Ecto.Adapters.Postgres
alias Ecto.Integration.TestRepo
def params do
# Pass log false to ensure we can still create... | 27.618557 | 89 | 0.668533 |
ac49e5034fcef98e4db8596aea26a17e5a30f77a | 1,084 | ex | Elixir | takso-hw5 2/test/support/conn_case.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | takso-hw5 2/test/support/conn_case.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | takso-hw5 2/test/support/conn_case.ex | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | defmodule Takso.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 and query models.
Finally, if the test case interacts with the datab... | 24.088889 | 67 | 0.701107 |
ac49e5db696cf3c30c3cecdb62fe1d73c13e5fc1 | 76 | exs | Elixir | test/malan_web/views/page_view_test.exs | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 3 | 2021-04-24T17:54:55.000Z | 2021-09-10T15:40:19.000Z | test/malan_web/views/page_view_test.exs | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 57 | 2021-04-24T03:17:16.000Z | 2022-03-27T04:50:22.000Z | test/malan_web/views/page_view_test.exs | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | null | null | null | defmodule MalanWeb.PageViewTest do
use MalanWeb.ConnCase, async: true
end
| 19 | 36 | 0.815789 |
ac49fa05d6dfe1ef7bbb1f3179015930fa5a57ee | 2,111 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_model.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_model.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_model.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.779661 | 100 | 0.699195 |
ac4a12bf98e4f808d1f7ab23d9fe8231083b86e4 | 1,837 | exs | Elixir | phoenix/mix.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/mix.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/mix.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferien.Mixfile do
use Mix.Project
def project do
[
app: :mehr_schulferien,
version: "2.2.3",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliase... | 27.014706 | 79 | 0.564507 |
ac4a46ffb363eb63fb73382f7fa62c18624b16e7 | 2,376 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/extended_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/extended_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/extended_value.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... | 36.553846 | 110 | 0.694024 |
ac4a88b60aa5c75d1f7f0e226adda045ad5f97cf | 13,437 | ex | Elixir | lib/exchema/predicates.ex | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 21 | 2018-01-06T22:33:20.000Z | 2020-02-07T18:49:22.000Z | lib/exchema/predicates.ex | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 5 | 2018-02-15T16:39:14.000Z | 2018-11-30T21:06:08.000Z | lib/exchema/predicates.ex | bamorim/exchema | 4e11136fae6092e0e64870b455fd6a68cf36603c | [
"Apache-2.0"
] | 4 | 2018-05-21T21:26:27.000Z | 2019-04-17T16:45:14.000Z | defmodule Exchema.Predicates do
@moduledoc """
Exschema default predicates library
"""
@type error :: {:error, any}
@type failure :: false | error | [error, ...]
@type success :: :ok | true | []
@type result :: failure | success
@doc """
Just applies the function as if it was a predicate.
It also ... | 25.840385 | 91 | 0.607204 |
ac4aa01ff16c7860ebead008adfbf8252bb54043 | 2,670 | exs | Elixir | test/mix/tasks/ecto.create_drop_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/ecto.create_drop_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/ecto.create_drop_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.CreateDropTest do
use ExUnit.Case, async: true
alias Mix.Tasks.Ecto.Create
alias Mix.Tasks.Ecto.Drop
# Mocked adapters
defmodule Adapter do
@behaviour Ecto.Adapter.Storage
defmacro __using__(_), do: :ok
def storage_up(_), do: Process.get(:storage_up) || raise "no storag... | 30.340909 | 127 | 0.706367 |
ac4ab1ca2056992cec2e766ab118455e8ab66c10 | 769 | ex | Elixir | apps/fz_http/lib/fz_http_web/live/setting_live/account_form_component.ex | athulspeaks/firezone | 98f4709c4d2c03f1ade5167494547ef240a09aed | [
"Apache-2.0"
] | 1,429 | 2021-07-31T21:25:46.000Z | 2022-03-31T16:31:33.000Z | apps/fz_http/lib/fz_http_web/live/setting_live/account_form_component.ex | athulspeaks/firezone | 98f4709c4d2c03f1ade5167494547ef240a09aed | [
"Apache-2.0"
] | 132 | 2021-07-10T14:23:36.000Z | 2022-03-29T18:36:37.000Z | apps/fz_http/lib/fz_http_web/live/setting_live/account_form_component.ex | CloudFire-LLC/cloudfire | 24ea29bda8a8845a0a9c3b0482cc67e314611245 | [
"Apache-2.0"
] | 48 | 2021-09-14T02:48:38.000Z | 2022-03-24T18:18:50.000Z | defmodule FzHttpWeb.SettingLive.AccountFormComponent do
@moduledoc """
Handles the edit account form.
"""
use FzHttpWeb, :live_component
alias FzHttp.Users
def update(assigns, socket) do
changeset = Users.change_user(assigns.user)
{:ok,
socket
|> assign(assigns)
|> assign(:changese... | 23.30303 | 63 | 0.638492 |
ac4ad261435c785b65fc1e6fac2349bbd1af1db0 | 2,357 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildbot_resource_usage.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildbot_resource_usage.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildbot_resource_usage.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... | 35.712121 | 140 | 0.756046 |
ac4af039d95e09c55770da373f0d7cec28fc340d | 1,023 | ex | Elixir | test/support/channel_case.ex | molossus/api | 39da836aa244239ad8bf55371f3e1573541eeb7a | [
"BSD-2-Clause"
] | 1 | 2016-02-23T11:31:18.000Z | 2016-02-23T11:31:18.000Z | test/support/channel_case.ex | molossus/api | 39da836aa244239ad8bf55371f3e1573541eeb7a | [
"BSD-2-Clause"
] | null | null | null | test/support/channel_case.ex | molossus/api | 39da836aa244239ad8bf55371f3e1573541eeb7a | [
"BSD-2-Clause"
] | null | null | null | defmodule BalanceSheet.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot... | 23.25 | 74 | 0.707722 |
ac4b5e156897480b6785b10ef42af7652c4fccb1 | 13,764 | exs | Elixir | test/gen_rmq_publisher_test.exs | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | test/gen_rmq_publisher_test.exs | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | test/gen_rmq_publisher_test.exs | vthang95/gen_rmq | 24c460ed0a676c1433786d4a86c2a860bb02498c | [
"MIT"
] | null | null | null | defmodule GenRMQ.PublisherTest do
use ExUnit.Case, async: false
use GenRMQ.RabbitCase
alias GenRMQ.Publisher
alias GenRMQ.Test.Assert
alias TestPublisher.{
Default,
RedeclaringExistingExchange,
WithConfirmations
}
@connection "amqp://guest:guest@localhost:5672"
@exchange "gen_rmq_out_exch... | 34.153846 | 119 | 0.667393 |
ac4b717faf2f516572f9e6be2e0685dbc7110425 | 67 | exs | Elixir | test/test_helper.exs | BrianFarmBackup/elixir-odata | 2a01a0f70def3c2fbdff13a1725f0f639a288213 | [
"MIT"
] | 2 | 2017-02-09T12:39:44.000Z | 2017-08-30T18:40:37.000Z | test/test_helper.exs | BrianFarmBackup/elixir-odata | 2a01a0f70def3c2fbdff13a1725f0f639a288213 | [
"MIT"
] | 1 | 2021-12-02T20:53:04.000Z | 2021-12-02T20:53:04.000Z | test/test_helper.exs | BrianFarmBackup/elixir-odata | 2a01a0f70def3c2fbdff13a1725f0f639a288213 | [
"MIT"
] | 1 | 2018-12-07T09:13:03.000Z | 2018-12-07T09:13:03.000Z | {:ok, _} = Application.ensure_all_started(:bypass)
ExUnit.start()
| 16.75 | 50 | 0.731343 |
ac4b7a41c32f1200507678aae0ab79be84483c17 | 3,368 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/ios_xc_test.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/testing/lib/google_api/testing/v1/model/ios_xc_test.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/testing/lib/google_api/testing/v1/model/ios_xc_test.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... | 57.084746 | 398 | 0.745249 |
ac4b7d08131d210c3b0c81b03c9b38e6502214a0 | 4,382 | ex | Elixir | lib/postgrex/type_server.ex | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/type_server.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/type_server.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.TypeServer do
@moduledoc false
use GenServer, restart: :temporary
defstruct [:types, :connections, :lock, :waiting]
@timeout 60_000
@doc """
Starts a type server.
"""
@spec start_link({module, pid, keyword}) :: GenServer.on_start()
def start_link({module, starter, opts}) do
... | 25.776471 | 96 | 0.633272 |
ac4b8a5a3960e08db5fdbc2e46b267874b6eb75e | 1,094 | ex | Elixir | lib/bagheera_web/channels/user_socket.ex | hansjhoffman/bagheera | a816a38a4dd8a4ac841accb0234dfdc15f1aeec2 | [
"MIT"
] | 3 | 2020-02-19T14:57:45.000Z | 2020-02-26T03:38:09.000Z | lib/bagheera_web/channels/user_socket.ex | hansjhoffman/bagheera | a816a38a4dd8a4ac841accb0234dfdc15f1aeec2 | [
"MIT"
] | 1 | 2021-09-30T13:51:51.000Z | 2021-09-30T13:51:51.000Z | lib/bagheera_web/channels/user_socket.ex | hansjhoffman/bagheera | a816a38a4dd8a4ac841accb0234dfdc15f1aeec2 | [
"MIT"
] | null | null | null | defmodule BagheeraWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", BagheeraWeb.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 all chan... | 30.388889 | 83 | 0.695612 |
ac4bbe761e26b2d5c6cd9375371e5be4d6892946 | 2,271 | ex | Elixir | lib/elixir_adn/model/user.ex | shaunc311/ElixirADN | 9d46329c47695eb04bed02fb9316b2090735141b | [
"0BSD"
] | 6 | 2015-02-08T01:22:31.000Z | 2015-09-24T01:24:18.000Z | lib/elixir_adn/model/user.ex | shaunc311/ElixirADN | 9d46329c47695eb04bed02fb9316b2090735141b | [
"0BSD"
] | 23 | 2015-02-08T12:26:01.000Z | 2015-06-02T00:39:15.000Z | lib/elixir_adn/model/user.ex | shaunc311/ElixirADN | 9d46329c47695eb04bed02fb9316b2090735141b | [
"0BSD"
] | null | null | null | defmodule ElixirADN.Model.User do
@doc ~S"""
An elixir representation of the ADN user map
{
"avatar_image": {
"height": 200,
"is_default": false,
"url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/aoveeP73f33UcFhyhqzn7VhwgS17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIv... | 32.913043 | 346 | 0.593131 |
ac4bcd6f59af0adb25997f225663c4f4e960aff5 | 735 | ex | Elixir | lib/packed_decimal/error.ex | kipcole9/packed_decimal | 0831d4702191f9d249c724c1bac73744237636f3 | [
"Apache-2.0"
] | null | null | null | lib/packed_decimal/error.ex | kipcole9/packed_decimal | 0831d4702191f9d249c724c1bac73744237636f3 | [
"Apache-2.0"
] | null | null | null | lib/packed_decimal/error.ex | kipcole9/packed_decimal | 0831d4702191f9d249c724c1bac73744237636f3 | [
"Apache-2.0"
] | null | null | null | defmodule PackedDecimal.Error do
@moduledoc """
The exception that all decimal operations may raise.
## Fields
* `signal` - the signalled error, additional signalled errors will be found
in the context.
* `reason` - the reason for the error.
Rescuing the error to access the result or the other ... | 29.4 | 79 | 0.706122 |
ac4bce445f678bbff6ec9cf194a30550bc65b5c1 | 4,913 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset_access.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... | 69.197183 | 503 | 0.730307 |
ac4bcf236f76bb28a8fa78f119eb565769d5bdca | 1,758 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/list_products_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/list_products_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/list_products_response.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.16 | 157 | 0.728669 |
ac4bd11fddec21e54d5979350d5a930f08eb2825 | 509 | ex | Elixir | lib/sphinx/utils/query.ex | filipevarjao/sphinx | ef9e3296ed134a6dbc448654541facf5d0792574 | [
"Apache-2.0"
] | 1 | 2021-01-20T19:07:27.000Z | 2021-01-20T19:07:27.000Z | lib/sphinx/utils/query.ex | filipevarjao/sphinx | ef9e3296ed134a6dbc448654541facf5d0792574 | [
"Apache-2.0"
] | 6 | 2019-12-04T19:42:33.000Z | 2019-12-19T16:27:15.000Z | lib/sphinx/utils/query.ex | filipevarjao/sphinx | ef9e3296ed134a6dbc448654541facf5d0792574 | [
"Apache-2.0"
] | 2 | 2019-12-12T14:48:17.000Z | 2019-12-18T22:28:45.000Z | defmodule Sphinx.Utils.Query do
@moduledoc """
Utils for Ecto queries
"""
import Ecto.Query
def q(schema, params, permitted) do
conditions = build_conditions(params, permitted)
from(schema, where: ^conditions)
end
## Private functions
defp build_conditions(params, permitted) do
params
... | 22.130435 | 55 | 0.642436 |
ac4bd66b7a6cc6e2e19c64f0dc38045bf3d6609e | 3,996 | exs | Elixir | test/point_linestring_test.exs | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | test/point_linestring_test.exs | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | test/point_linestring_test.exs | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | defmodule PointLineStringTest do
use ExUnit.Case
@point %Geo.Point{coordinates: {14, 18}}
@point2 %Geo.Point{coordinates: {14, 19}}
@linestring %Geo.LineString{
coordinates: [{4, 2}, {4, 4}, {10, 10}, {15, 10}, {20, 12}, {8, 24}, {12, 24}]
}
@multilinestring %Geo.MultiLineString{
coordinates: [
... | 33.024793 | 82 | 0.674925 |
ac4bf7a7e7fc76272a69a580a60bfb6fc53a22d2 | 2,455 | exs | Elixir | config/config.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 1 | 2021-10-01T03:14:17.000Z | 2021-10-01T03:14:17.000Z | config/config.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | null | null | null | config/config.exs | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"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
config :blockchain_api,
ecto_repos: [Blockchai... | 29.939024 | 87 | 0.735234 |
ac4c0b13e4225581d30e30e5982e9b7b6331a921 | 276 | exs | Elixir | test/clecodes_ex_web/views/layout_view_test.exs | treetopdevs/distillery-aws-example | aa09b96490dd2d1052d1e580f02e3328b1b366bc | [
"Apache-2.0"
] | null | null | null | test/clecodes_ex_web/views/layout_view_test.exs | treetopdevs/distillery-aws-example | aa09b96490dd2d1052d1e580f02e3328b1b366bc | [
"Apache-2.0"
] | null | null | null | test/clecodes_ex_web/views/layout_view_test.exs | treetopdevs/distillery-aws-example | aa09b96490dd2d1052d1e580f02e3328b1b366bc | [
"Apache-2.0"
] | null | null | null | defmodule ClecodesExWeb.LayoutViewTest do
use ClecodesExWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.666667 | 65 | 0.771739 |
ac4c3422d444f262ee16ea37fddb5f5cacb20923 | 264 | ex | Elixir | lib/hl7/2.5.1/segments/odt.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/odt.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/odt.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.Segments.ODT do
@moduledoc false
require Logger
alias HL7.V2_5_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
tray_type: DataTypes.Ce,
service_period: DataTypes.Ce,
text_instruction: nil
]
end
| 17.6 | 36 | 0.670455 |
ac4c46c79e68f8d815fb4eeb0a9959bd33aa5464 | 1,021 | exs | Elixir | apps/ex_figment_web/config/config.exs | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"Apache-2.0"
] | 1 | 2018-05-05T18:34:53.000Z | 2018-05-05T18:34:53.000Z | apps/ex_figment_web/config/config.exs | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"Apache-2.0"
] | null | null | null | apps/ex_figment_web/config/config.exs | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"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.
use Mix.Config
# General application configuration
config :ex_figment_web,
namespace: ExFigmentWeb... | 32.935484 | 86 | 0.772772 |
ac4c71b3e32fc751f4ec36feb1ed92a3d31944b3 | 2,900 | ex | Elixir | web/channels/client_channel.ex | anamba/webrtc_example | b539101d29ffeb52f551f263128a0884a5d6a7ae | [
"MIT"
] | null | null | null | web/channels/client_channel.ex | anamba/webrtc_example | b539101d29ffeb52f551f263128a0884a5d6a7ae | [
"MIT"
] | null | null | null | web/channels/client_channel.ex | anamba/webrtc_example | b539101d29ffeb52f551f263128a0884a5d6a7ae | [
"MIT"
] | null | null | null | defmodule WebrtcExample.ClientChannel do
use Phoenix.Channel
require Logger
alias WebrtcExample.State
def join("webrtc:client-" <> name, params, socket) do
Logger.debug "join: name: #{name}, params: #{inspect params}"
case State.get(name) do
nil ->
State.put name, %{}
{:ok, socket... | 33.72093 | 115 | 0.596552 |
ac4c79499f1dc8ea7ffa888ab050ee517c43d9c9 | 602 | exs | Elixir | day16/mix.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day16/mix.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day16/mix.exs | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | defmodule Day16.MixProject do
use Mix.Project
def project do
[
app: :day16,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 20.066667 | 87 | 0.566445 |
ac4c7cac9484ec4a6800022effe0ab2f2b532a8e | 1,855 | ex | Elixir | clients/games/lib/google_api/games/v1/model/anonymous_player.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/anonymous_player.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/anonymous_player.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 ... | 35 | 174 | 0.719677 |
ac4c7de134fe1ac67abfa4bd8bf82cf066453a53 | 844 | ex | Elixir | elixir/lib/web_script/application.ex | Nagasaki45/WebScript | c814fa886d796385187428ff715f0ee5fde96cfc | [
"MIT"
] | 1 | 2017-08-27T07:38:02.000Z | 2017-08-27T07:38:02.000Z | elixir/lib/web_script/application.ex | Nagasaki45/WebScript | c814fa886d796385187428ff715f0ee5fde96cfc | [
"MIT"
] | 2 | 2017-08-27T08:15:18.000Z | 2017-08-27T14:12:13.000Z | elixir/lib/web_script/application.ex | Nagasaki45/WebScript | c814fa886d796385187428ff715f0ee5fde96cfc | [
"MIT"
] | null | null | null | defmodule WebScript.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@pool_options [
name: {:local, :pool},
worker_module: WebScript.Worker,
size: 10,
max_overflow: 0,
]
def start(_type, _args) d... | 27.225806 | 77 | 0.686019 |
ac4ca2c5c2a4917e69281e39a20a188ee2518ba6 | 707 | ex | Elixir | apps/core/lib/core/ecto/comma_param_uuid.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/ecto/comma_param_uuid.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/ecto/comma_param_uuid.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Ecto.CommaParamsUUID do
@moduledoc false
@behaviour Ecto.Type
alias Ecto.UUID
def type, do: :string
def cast(string) when is_binary(string) do
string
|> String.split(",")
|> valid_uuid_params?()
|> case do
true -> {:ok, string}
false -> :error
end
end
de... | 19.638889 | 60 | 0.605375 |
ac4cbc17c045bf6139e37902e9672d7e690ece88 | 1,910 | exs | Elixir | test/phoenix/live_dashboard/live/home_live_test.exs | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | 1 | 2020-04-23T11:36:03.000Z | 2020-04-23T11:36:03.000Z | test/phoenix/live_dashboard/live/home_live_test.exs | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/live/home_live_test.exs | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.HomeLiveTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
@endpoint Phoenix.LiveDashboardTest.Endpoint
test "redirects when host is missing" do
conn = get(build_conn(), "/dashboard")
assert redirected_to(conn) == "/dashboard/nono... | 38.2 | 101 | 0.617277 |
ac4cc27d869d82887f2775f74d0b75393d128d0f | 3,096 | ex | Elixir | lib/militerm/services/global_map.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | lib/militerm/services/global_map.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | lib/militerm/services/global_map.ex | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | defmodule Militerm.Services.GlobalMap do
@moduledoc """
The global map service tracks where different things are on the global stage. That is, each top-level
terrain, path, or scene that is part of the global universe.
Each thing is placed at a coordinate in a world. Events do not propagate between worlds, but... | 24.571429 | 103 | 0.622739 |
ac4cfcf4217bca3a02d795d2d88b422f942ef2d3 | 1,258 | ex | Elixir | lib/blue_heron/hci/commands/le_controller.ex | kevinansfield/blue_heron | 8339e6747e135030f7d1e67801391f03f2558e0d | [
"Apache-2.0"
] | 45 | 2020-10-17T13:34:15.000Z | 2022-03-08T09:40:43.000Z | lib/blue_heron/hci/commands/le_controller.ex | kevinansfield/blue_heron | 8339e6747e135030f7d1e67801391f03f2558e0d | [
"Apache-2.0"
] | 20 | 2020-10-15T15:05:54.000Z | 2022-03-27T15:54:36.000Z | lib/blue_heron/hci/commands/le_controller.ex | kevinansfield/blue_heron | 8339e6747e135030f7d1e67801391f03f2558e0d | [
"Apache-2.0"
] | 11 | 2020-10-23T17:18:57.000Z | 2022-03-15T20:01:49.000Z | defmodule BlueHeron.HCI.Command.LEController do
alias __MODULE__, as: LEC
@ogf 0x08
@moduledoc """
HCI commands for working with the LE Controller.
* OGF: `#{inspect(@ogf, base: :hex)}`
> The LE Controller Commands provide access and control to various capabilities of the Bluetooth
> hardware, as well ... | 26.765957 | 98 | 0.652623 |
ac4d1b8892602301dc154a722d90ed156658cb4f | 1,049 | exs | Elixir | mix.exs | bgracie/sans_password | 6b7e3ab2c2a46cc8111788964c0604436a11ef9a | [
"MIT"
] | null | null | null | mix.exs | bgracie/sans_password | 6b7e3ab2c2a46cc8111788964c0604436a11ef9a | [
"MIT"
] | null | null | null | mix.exs | bgracie/sans_password | 6b7e3ab2c2a46cc8111788964c0604436a11ef9a | [
"MIT"
] | null | null | null | defmodule SansPassword.Mixfile do
use Mix.Project
def project do
[
app: :sans_password,
version: "1.0.0",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
deps: deps(... | 23.311111 | 78 | 0.5796 |
ac4d2633e3ccfa54304e212e8d88c5cd3d4ee3f2 | 355 | exs | Elixir | priv/repo/seeds.exs | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Thibault-Santonja/Phoenix_tests | 429100499849837d1449495db354fc1006ceb86c | [
"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:
#
# BasicCrud.Repo.insert!(%BasicCrud.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 29.583333 | 61 | 0.709859 |
ac4d392f203a95301f035cab2391bdca548af6d4 | 427 | ex | Elixir | app/lib/noodl_web/views/shared_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl_web/views/shared_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl_web/views/shared_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.SharedView do
use NoodlWeb, :view
def get_username(%{display_name: display_name}) when not is_nil(display_name), do: display_name
def get_username(%{firstname: firstname, lastname: lastname})
when not is_nil(firstname) and not is_nil(lastname) do
"#{firstname} #{lastname}"
end
... | 28.466667 | 97 | 0.747073 |
ac4d66ee212b09c24e911ed4d7c0b6c1285c3623 | 3,004 | exs | Elixir | test/resource/attributes_test.exs | mario-mazo/ash | 8673a733c702971a1435514151ab434d87893685 | [
"MIT"
] | null | null | null | test/resource/attributes_test.exs | mario-mazo/ash | 8673a733c702971a1435514151ab434d87893685 | [
"MIT"
] | null | null | null | test/resource/attributes_test.exs | mario-mazo/ash | 8673a733c702971a1435514151ab434d87893685 | [
"MIT"
] | null | null | null | defmodule Ash.Test.Resource.AttributesTest do
@moduledoc false
use ExUnit.Case, async: true
alias Ash.Resource.Attribute
defmacrop defposts(do: body) do
quote do
defmodule Post do
@moduledoc false
use Ash.Resource
attributes do
attribute :id, :uuid, primary_key?: t... | 27.309091 | 141 | 0.559587 |
ac4d69edfd716bb0904c35611568b455a7765371 | 651 | ex | Elixir | lib/utils.ex | shijithkjayan/ex_rated | 915c10acec3739e625e8aff2dc3b80fd633d1232 | [
"Apache-2.0"
] | 400 | 2015-05-18T00:04:26.000Z | 2022-03-31T02:47:25.000Z | lib/utils.ex | shijithkjayan/ex_rated | 915c10acec3739e625e8aff2dc3b80fd633d1232 | [
"Apache-2.0"
] | 50 | 2015-07-29T16:03:03.000Z | 2022-03-23T15:41:32.000Z | lib/utils.ex | shijithkjayan/ex_rated | 915c10acec3739e625e8aff2dc3b80fd633d1232 | [
"Apache-2.0"
] | 50 | 2015-08-16T16:17:48.000Z | 2022-01-20T03:53:50.000Z | defmodule ExRated.Utils do
@moduledoc false
@doc """
Determines the current version of OTP running this node. The result is
cached for fast lookups in performance-sensitive functions.
## Example
iex> rel = ExRated.Utils.get_otp_release
...> '\#{rel}' == :erlang.system_info(:otp_release)
tru... | 26.04 | 73 | 0.617512 |
ac4d763f470e4520accac774da3b000523c5a794 | 1,315 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.527778 | 77 | 0.732319 |
ac4d7a4873c2b6ee562384a4a0c56389006ded06 | 8,976 | ex | Elixir | lib/glimesh/channel_lookups.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/channel_lookups.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/channel_lookups.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule Glimesh.ChannelLookups do
@moduledoc """
Channel Filtering Functionality
"""
import Ecto.Query, warn: false
alias Glimesh.AccountFollows.Follower
alias Glimesh.Accounts.User
alias Glimesh.Repo
alias Glimesh.Streams.{Category, Channel, ChannelHosts}
## Filtering
@spec search_live_channel... | 29.429508 | 127 | 0.601159 |
ac4d7ae6255032f09f8458efce5399c512081e14 | 447 | ex | Elixir | lib/elixir_lokalise_api/models/segment.ex | bodrovis/elixir-lokalise-api | ae49309f0fdf56c634157e78387f3bf50eaa6afb | [
"BSD-3-Clause"
] | 3 | 2021-06-24T14:30:31.000Z | 2021-09-06T11:30:17.000Z | lib/elixir_lokalise_api/models/segment.ex | bodrovis/elixir-lokalise-api | ae49309f0fdf56c634157e78387f3bf50eaa6afb | [
"BSD-3-Clause"
] | 8 | 2021-09-15T07:30:59.000Z | 2022-02-01T17:40:17.000Z | lib/elixir_lokalise_api/models/segment.ex | bodrovis/elixir-lokalise-api | ae49309f0fdf56c634157e78387f3bf50eaa6afb | [
"BSD-3-Clause"
] | 2 | 2021-09-07T11:10:51.000Z | 2021-09-26T07:37:39.000Z | defmodule ElixirLokaliseApi.Model.Segment do
@moduledoc false
defstruct segment_number: nil,
language_iso: nil,
modified_at: nil,
modified_at_timestamp: nil,
modified_by: nil,
modified_by_email: nil,
value: nil,
is_fuzzy: nil,
... | 27.9375 | 44 | 0.563758 |
ac4d92f1262390f97cbd49f6e043d8b7984c1762 | 424 | exs | Elixir | test/translator_test.exs | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | test/translator_test.exs | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | test/translator_test.exs | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule Timex.TranslatorTest do
use ExUnit.Case, async: true
doctest Timex.Translator
test "with_locale macro uses the specified locale" do
use Timex
duration = Duration.from_seconds(Timex.to_unix({2016, 2, 29}))
in_dutch =
Timex.Translator.with_locale "nl" do
Timex.format_duration(d... | 24.941176 | 66 | 0.700472 |
ac4dcaf2392b5d1d877fe39c672c49c838f0bd08 | 6,703 | ex | Elixir | lib/ip_access_control.ex | KineticCafe/ip_access_control_plug | fad8d945eef9dbbbe406009c2c505000fc725fbc | [
"MIT"
] | 1 | 2021-08-28T07:26:58.000Z | 2021-08-28T07:26:58.000Z | lib/ip_access_control.ex | KineticCafe/ip_access_control_plug | fad8d945eef9dbbbe406009c2c505000fc725fbc | [
"MIT"
] | 3 | 2021-06-30T18:13:10.000Z | 2022-03-19T02:25:47.000Z | lib/ip_access_control.ex | KineticCafe/ip_access_control_plug | fad8d945eef9dbbbe406009c2c505000fc725fbc | [
"MIT"
] | null | null | null | defmodule IpAccessControl do
@behaviour Plug
@moduledoc """
This Plug restricts requests so that they must come from the range of IP
addresses specified in the pipeline config. A request's IP address is deemed
to be present as `%Plug.Conn{remote_ip: _}`.
If the request IP is not allowed, the specified res... | 31.032407 | 96 | 0.690885 |
ac4dcbaf8b751c2c00266248ceffe029aab9393d | 858 | ex | Elixir | lib/mix/tasks/githooks/hexup.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 18 | 2017-07-09T23:47:38.000Z | 2021-09-30T09:24:37.000Z | lib/mix/tasks/githooks/hexup.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 1 | 2022-01-29T08:48:10.000Z | 2022-01-29T08:48:10.000Z | lib/mix/tasks/githooks/hexup.ex | kianmeng/version_tasks | 9b07113ce5155bcadae47c49a0ecaec22b1d7c68 | [
"MIT"
] | 2 | 2019-09-24T11:09:28.000Z | 2021-11-02T00:40:05.000Z | defmodule Mix.Tasks.Githooks.Hexup do
use Mix.Task
@shortdoc "Install a githook to run mix hex.publish on a new release"
def run([]), do: run([""])
def run([passphrase]) do
filename = ".git/hooks/post-commit"
content = """
#!/bin/bash
if [ "$(MIX_QUIET=true mix version.is_release)" != "" ]; t... | 24.514286 | 80 | 0.562937 |
ac4df5eca0bb230ea6880b0e9821db52a276433b | 255 | ex | Elixir | lib/websheets.ex | mpope9/Websheets | 9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc | [
"Apache-2.0"
] | null | null | null | lib/websheets.ex | mpope9/Websheets | 9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc | [
"Apache-2.0"
] | 2 | 2018-12-23T03:51:26.000Z | 2018-12-23T04:53:18.000Z | lib/websheets.ex | mpope9/Websheets | 9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc | [
"Apache-2.0"
] | null | null | null | defmodule Websheets do
@moduledoc """
Websheets keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.5 | 66 | 0.756863 |
ac4dfecc35738b63825cfd89ca059b6e38c5a448 | 587 | ex | Elixir | lib/module_generator/struct_generator.ex | savoisn/module_generator | a0830744b3d7fc201c2c9dc10b83188028b6d26b | [
"Apache-2.0"
] | null | null | null | lib/module_generator/struct_generator.ex | savoisn/module_generator | a0830744b3d7fc201c2c9dc10b83188028b6d26b | [
"Apache-2.0"
] | null | null | null | lib/module_generator/struct_generator.ex | savoisn/module_generator | a0830744b3d7fc201c2c9dc10b83188028b6d26b | [
"Apache-2.0"
] | null | null | null | defmodule ModuleGenerator.StructGenerator do
alias ModuleGenerator.PathManager
alias ModuleGenerator.FileManager
alias ModuleGenerator.Template
def createStruct(struct_name, struct_fields) do
struct_path = PathManager.convertModuleNameToPath(struct_name)
case PathManager.getFilePath(struct_path, "lib"... | 30.894737 | 71 | 0.758092 |
ac4e0235fc9337618dba4ab1597ec80267210857 | 3,223 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_request_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_request_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_request_entry.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... | 41.857143 | 199 | 0.692833 |
ac4e2b0488d836d0bc3caa1a55bb0a53e2137156 | 2,597 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/blockchain_wallet.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/blockchain_wallet.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/blockchain_wallet.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 28.855556 | 74 | 0.681171 |
ac4e34cb7d4fea3d1125203d327ed0031e2dc612 | 80 | ex | Elixir | lib/smoke.ex | Baradoy/smoke | 1e12bd76d2af6ca67db9d330625c6f3652778dee | [
"Apache-2.0"
] | 1 | 2019-10-03T16:54:48.000Z | 2019-10-03T16:54:48.000Z | lib/smoke.ex | Baradoy/smoke | 1e12bd76d2af6ca67db9d330625c6f3652778dee | [
"Apache-2.0"
] | 3 | 2019-09-26T22:55:13.000Z | 2021-05-10T02:17:12.000Z | lib/smoke.ex | Baradoy/smoke | 1e12bd76d2af6ca67db9d330625c6f3652778dee | [
"Apache-2.0"
] | 1 | 2019-07-22T16:40:01.000Z | 2019-07-22T16:40:01.000Z | defmodule Smoke do
@moduledoc """
Future API pieces will go here.
"""
end
| 13.333333 | 33 | 0.6625 |
ac4e4c24618d8627299b48420516b4663d38c93d | 2,277 | ex | Elixir | lib/blog_web/telemetry.ex | mateuscosta86/blog | 3ee4596bfbd0f0681041cb0d50ab4baccc7b571e | [
"MIT"
] | null | null | null | lib/blog_web/telemetry.ex | mateuscosta86/blog | 3ee4596bfbd0f0681041cb0d50ab4baccc7b571e | [
"MIT"
] | 3 | 2021-12-30T20:43:08.000Z | 2021-12-31T19:51:04.000Z | lib/blog_web/telemetry.ex | mateuscosta86/blog | 3ee4596bfbd0f0681041cb0d50ab4baccc7b571e | [
"MIT"
] | null | null | null | defmodule BlogWeb.Telemetry do
@moduledoc false
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every ... | 31.191781 | 88 | 0.650856 |
ac4e4fdee0360bc9dced3e9b553ad1865e166687 | 87 | exs | Elixir | test/conduit/plug/parse_test.exs | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | 119 | 2016-11-21T13:19:22.000Z | 2021-11-07T17:29:05.000Z | test/conduit/plug/parse_test.exs | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | 104 | 2018-02-02T20:42:46.000Z | 2021-08-03T05:36:09.000Z | test/conduit/plug/parse_test.exs | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | 21 | 2018-08-03T02:38:21.000Z | 2022-03-16T18:26:58.000Z | defmodule Conduit.Plug.ParseTest do
use ExUnit.Case
doctest Conduit.Plug.Parse
end
| 17.4 | 35 | 0.804598 |
ac4e5df41390d8dcf5c87c77e4552707e9a53d5f | 1,757 | exs | Elixir | mix.exs | cchko/gcs_signed_url | d77476a5b97f5b3877243f9ab09d782e3f766516 | [
"MIT"
] | null | null | null | mix.exs | cchko/gcs_signed_url | d77476a5b97f5b3877243f9ab09d782e3f766516 | [
"MIT"
] | null | null | null | mix.exs | cchko/gcs_signed_url | d77476a5b97f5b3877243f9ab09d782e3f766516 | [
"MIT"
] | null | null | null | defmodule GcsSignedUrl.MixProject do
use Mix.Project
def project do
[
app: :gcs_signed_url,
version: "0.4.0",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: E... | 27.030769 | 75 | 0.56346 |
ac4e6a5d2518dc56f1437c0d9026e59f1ffc551a | 26,947 | exs | Elixir | lib/elixir/test/elixir/kernel_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule KernelTest do
use ExUnit.Case, async: true
doctest Kernel
defp empty_list(), do: []
test "=~/2" do
assert "abcd" =~ ~r/c(d)/ == true
assert "abcd" =~ ~r/e/ == false
assert "abcd" =~ ~R/c(d)/ == true
assert "abcd" =~ ~R/e/ == false
... | 27.637949 | 118 | 0.547445 |
ac4e6bf7f123c4b1783a6a49bdef50b84f757d28 | 35,399 | exs | Elixir | test/mixin/search_test.exs | feng19/ex_aliyun_ots | de38bae1b6e9565941efecd3fd9f8af25371db92 | [
"MIT"
] | null | null | null | test/mixin/search_test.exs | feng19/ex_aliyun_ots | de38bae1b6e9565941efecd3fd9f8af25371db92 | [
"MIT"
] | null | null | null | test/mixin/search_test.exs | feng19/ex_aliyun_ots | de38bae1b6e9565941efecd3fd9f8af25371db92 | [
"MIT"
] | null | null | null | defmodule ExAliyunOts.MixinTest.Search do
use ExUnit.Case
@instance_key EDCEXTestInstance
use ExAliyunOts, instance: @instance_key
require Logger
alias ExAliyunOts.Client
alias ExAliyunOts.Var.Search
alias ExAliyunOtsTest.Support.Search, as: TestSupportSearch
@table "test_search"
@indexes ["test_sear... | 26.182692 | 98 | 0.52654 |
ac4e736d4d6abfa527dcbe9f583f4ef7b049b914 | 1,416 | exs | Elixir | test/edgedb/protocol/codecs/builtin/int64_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | test/edgedb/protocol/codecs/builtin/int64_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | test/edgedb/protocol/codecs/builtin/int64_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule Tests.EdgeDB.Protocol.Codecs.Builtin.Int64Test do
use Tests.Support.EdgeDBCase
alias EdgeDB.Protocol.Error
setup :edgedb_connection
test "decoding std::int64 value", %{conn: conn} do
value = 1
assert ^value = EdgeDB.query_single!(conn, "SELECT <int64>1")
end
test "encoding std::int64 v... | 27.764706 | 89 | 0.660311 |
ac4e7942670af5a5072ece36c914eeef246f7fe4 | 635 | exs | Elixir | priv/repo/migrations/20190713191433_create_places.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190713191433_create_places.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 14 | 2019-09-02T18:00:07.000Z | 2021-09-02T00:49:54.000Z | priv/repo/migrations/20190713191433_create_places.exs | ashkan18/dobar | 37381af2a56b2456cfe2a0a358169fd2764cd3f0 | [
"MIT"
] | 1 | 2016-07-27T14:40:55.000Z | 2016-07-27T14:40:55.000Z | defmodule Dobar.Repo.Migrations.CreatePlaces do
use Ecto.Migration
def change do
create table(:places, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :short_description, :string
add :description, :string
add :location, :geometry
add :add... | 24.423077 | 48 | 0.631496 |
ac4e8f2ea3572a68cc631e6d3a8148dae6b7254b | 8,420 | ex | Elixir | apps/re/lib/filtering/filtering.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/lib/filtering/filtering.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/filtering/filtering.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.Filtering do
@moduledoc """
Module for grouping filter queries
"""
use Ecto.Schema
import Ecto.{
Query,
Changeset
}
alias Re.Filtering.Relax
schema "listings_filter" do
field :max_price, :integer
field :min_price, :integer
field :max_rooms, :integer
field :min_roo... | 25.285285 | 93 | 0.645487 |
ac4e92301afb184d0de91c1ea3664993672c9cc4 | 4,929 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/floodlight_activity_group.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/floodlight_activity_group.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/floodlight_activity_group.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... | 57.988235 | 490 | 0.724082 |
ac4ed03432af3d66440eaf20713d4f2120dfe7fb | 96 | exs | Elixir | test/qmi/user_identity_test.exs | nerves-networking/qmi | d0e826636900a79e3c204f59ce5155985441472c | [
"Apache-2.0"
] | 2 | 2021-05-26T19:12:46.000Z | 2021-06-09T02:21:49.000Z | test/qmi/user_identity_test.exs | nerves-networking/qmi | d0e826636900a79e3c204f59ce5155985441472c | [
"Apache-2.0"
] | 8 | 2021-05-27T19:57:03.000Z | 2022-02-10T20:04:06.000Z | test/qmi/user_identity_test.exs | nerves-networking/qmi | d0e826636900a79e3c204f59ce5155985441472c | [
"Apache-2.0"
] | 1 | 2022-02-18T20:29:11.000Z | 2022-02-18T20:29:11.000Z | defmodule QMI.UserIdentityTest do
use ExUnit.Case, async: true
doctest QMI.UserIdentity
end
| 19.2 | 33 | 0.802083 |
ac4eee1fcf41261cb0c57969c63029b88de38371 | 251 | exs | Elixir | spec/spec_helper.exs | zbarnes757/sagan | 84b0cf0a9874703dd3c491ec719314d91ed516fa | [
"MIT"
] | 3 | 2017-06-27T02:13:08.000Z | 2021-03-04T17:16:30.000Z | spec/spec_helper.exs | zbarnes757/sagan | 84b0cf0a9874703dd3c491ec719314d91ed516fa | [
"MIT"
] | null | null | null | spec/spec_helper.exs | zbarnes757/sagan | 84b0cf0a9874703dd3c491ec719314d91ed516fa | [
"MIT"
] | 1 | 2020-01-14T12:53:31.000Z | 2020-01-14T12:53:31.000Z | ESpec.configure fn(config) ->
config.before fn(tags) ->
ExVCR.Config.filter_sensitive_data(Application.get_env(:sagan, :hostname), "COSMOS_HOST")
{:shared, hello: :world, tags: tags}
end
config.finally fn(_shared) ->
:ok
end
end
| 20.916667 | 93 | 0.681275 |
ac4ef800ed27950c233ed757cacd9812a0c3e87b | 24,114 | ex | Elixir | clients/licensing/lib/google_api/licensing/v1/api/license_assignments.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/licensing/lib/google_api/licensing/v1/api/license_assignments.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/licensing/lib/google_api/licensing/v1/api/license_assignments.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... | 46.019084 | 298 | 0.635523 |
ac4efbe588aca0782ca6be32f183310d646339aa | 1,032 | ex | Elixir | lib/web/authorization.ex | starbuildr/ex_factory | 5248d0dd802f2df2fb25c736c48ae2489c01a98e | [
"MIT"
] | null | null | null | lib/web/authorization.ex | starbuildr/ex_factory | 5248d0dd802f2df2fb25c736c48ae2489c01a98e | [
"MIT"
] | null | null | null | lib/web/authorization.ex | starbuildr/ex_factory | 5248d0dd802f2df2fb25c736c48ae2489c01a98e | [
"MIT"
] | null | null | null | defmodule ExFactory.Web.Authorization do
def init(opts), do: opts
def call(conn, _opts) do
if config(:enabled, false) do
conn
|> get_auth_headers()
|> authenticate()
else
conn
end
end
def get_auth_headers(conn) do
tokens =
with \
[] <- Plug.Conn.get_req_he... | 21.061224 | 74 | 0.599806 |
ac4efd0481ccd9c8f93cfc6aea6800a16776f2b7 | 1,068 | ex | Elixir | lib/plenario_web/channels/user_socket.ex | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 13 | 2017-12-11T13:59:42.000Z | 2020-11-16T21:52:31.000Z | lib/plenario_web/channels/user_socket.ex | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 310 | 2017-11-13T22:52:26.000Z | 2018-11-19T17:49:30.000Z | lib/plenario_web/channels/user_socket.ex | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 3 | 2017-12-05T00:36:12.000Z | 2020-03-10T15:15:29.000Z | defmodule PlenarioWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PlenarioWeb.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 all chan... | 31.411765 | 83 | 0.697566 |
ac4f063c3792267a5167d492f8da744e2b6ae001 | 1,791 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_operations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_operations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_operations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.82 | 169 | 0.740927 |
ac4f2ed6b5b48aff14e3a077d19f0f36f082f1cb | 3,274 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_code.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_code.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/worker_message_code.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... | 64.196078 | 958 | 0.761759 |
ac4f3d8d408752e1efceb78848b6a5bc1b2b09a5 | 785 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20171130071250_add_transfer_id_to_mint.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/priv/repo/migrations/20171130071250_add_transfer_id_to_mint.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/priv/repo/migrations/20171130071250_add_transfer_id_to_mint.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.708333 | 74 | 0.752866 |
ac4f4e9bfc9eec49e362e053e714b1fdd23aba2f | 4,590 | ex | Elixir | test/support/test_fixture_helpers.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | test/support/test_fixture_helpers.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | test/support/test_fixture_helpers.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApi.TestFixtureHelpers do
@moduledoc false
alias ChatApi.{
Repo,
Accounts,
Users,
Customers,
Conversations,
SlackConversationThreads,
EventSubscriptions,
Messages,
SlackAuthorizations,
Tags,
WidgetSettings,
UserInvitations
}
@password "supersecret12... | 25.642458 | 81 | 0.605229 |
ac4f7ebb0cf83687a556fdfa84c63ddaa518ff9f | 170 | ex | Elixir | web/controllers/page_controller.ex | kenshin23/phoenix_tutorial | d6118d0c2a1077b9e39438c1e8fff3cb2965551d | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | kenshin23/phoenix_tutorial | d6118d0c2a1077b9e39438c1e8fff3cb2965551d | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | kenshin23/phoenix_tutorial | d6118d0c2a1077b9e39438c1e8fff3cb2965551d | [
"MIT"
] | null | null | null | defmodule PhoenixTutorial.PageController do
use PhoenixTutorial.Web, :controller
plug :action
def index(conn, _params) do
render conn, "index.html"
end
end
| 17 | 43 | 0.747059 |
ac4f8a284eedd0a9b2b9e0a7435fcb2c6902965d | 1,532 | exs | Elixir | test/resource/actions/update_test.exs | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | test/resource/actions/update_test.exs | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | test/resource/actions/update_test.exs | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | defmodule Ash.Test.Dsl.Resource.Actions.UpdateTest do
use ExUnit.Case, async: true
defmacrop defposts(do: body) do
quote do
defmodule Post do
use Ash.Resource,
data_layer: Ash.DataLayer.Ets
attributes do
uuid_primary_key :id
end
unquote(body)
en... | 22.529412 | 118 | 0.516971 |
ac4f8f3dddcbedde4e4947322f80dda80de9d91c | 1,642 | exs | Elixir | test/ffprobe_test.exs | kianmeng/ffmpex | 03273f671d94e7f475714a15913aef3ed8c284ce | [
"MIT"
] | 187 | 2016-08-16T15:34:21.000Z | 2022-02-11T13:04:33.000Z | test/ffprobe_test.exs | kianmeng/ffmpex | 03273f671d94e7f475714a15913aef3ed8c284ce | [
"MIT"
] | 28 | 2016-08-17T20:10:42.000Z | 2022-03-14T08:38:59.000Z | test/ffprobe_test.exs | kianmeng/ffmpex | 03273f671d94e7f475714a15913aef3ed8c284ce | [
"MIT"
] | 39 | 2016-11-19T03:06:56.000Z | 2022-03-17T02:13:02.000Z | defmodule FFprobeTest do
use ExUnit.Case
doctest FFprobe
@fixture Path.join(__DIR__, "fixtures/test-mpeg.mpg")
@fixture_mp4 Path.join(__DIR__, "fixtures/test-mp4.mp4")
@fixture_space Path.join(__DIR__, "fixtures/test space.mp4")
@fixture_still_image Path.join(__DIR__, "fixtures/ffmpex.png")
test "correc... | 30.981132 | 83 | 0.693057 |
ac4ffaa926b814e01854cfd79a2ca2477672d86c | 710 | ex | Elixir | lib/hl7/2.5.1/segments/om2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/om2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/om2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.Segments.OM2 do
@moduledoc false
require Logger
alias HL7.V2_5_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
sequence_number_test_observation_master_file: nil,
units_of_measure: DataTypes.Ce,
range_of_decimal_precision: nil,
corresponding_si_unit... | 32.272727 | 80 | 0.773239 |
ac4ffe1de0ae6250919907e4a1b1a1ef1f10c9f8 | 22,995 | exs | Elixir | test/pow/store/backend/mnesia_cache_test.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 1 | 2021-08-25T12:11:08.000Z | 2021-08-25T12:11:08.000Z | test/pow/store/backend/mnesia_cache_test.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | test/pow/store/backend/mnesia_cache_test.exs | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | defmodule Pow.Store.Backend.MnesiaCacheTest do
use ExUnit.Case
doctest Pow.Store.Backend.MnesiaCache
alias ExUnit.CaptureLog
alias Pow.{Config, Config.ConfigError, Store.Backend.MnesiaCache}
@default_config [namespace: "pow:test", ttl: :timer.hours(1)]
setup_all do
# Turn node into a distributed node... | 43.468809 | 203 | 0.654142 |
ac502de40d47b5187a55e992d539fc2b1fb204e9 | 202 | exs | Elixir | priv/repo/migrations/20191106191101_added_password_to_user.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191106191101_added_password_to_user.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | priv/repo/migrations/20191106191101_added_password_to_user.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule Jarvis.Repo.Migrations.AddedPasswordToUser do
use Ecto.Migration
def change do
alter table(:users) do
add :password, :string
add :password_hash, :string
end
end
end
| 18.363636 | 55 | 0.70297 |
ac5034ddece1730b9224218ac1b2c26d0a0cf06a | 67 | ex | Elixir | lib/phx_todo_app_web/views/page_view.ex | showwin/phx_todo_app | 3608f120cb149019219add4ca63e711698a56aab | [
"MIT"
] | null | null | null | lib/phx_todo_app_web/views/page_view.ex | showwin/phx_todo_app | 3608f120cb149019219add4ca63e711698a56aab | [
"MIT"
] | null | null | null | lib/phx_todo_app_web/views/page_view.ex | showwin/phx_todo_app | 3608f120cb149019219add4ca63e711698a56aab | [
"MIT"
] | null | null | null | defmodule PhxTodoAppWeb.PageView do
use PhxTodoAppWeb, :view
end
| 16.75 | 35 | 0.820896 |
ac5058abed3f78d1e8d6e43076d5c9cd1fe537ab | 253 | ex | Elixir | examples/lib/live_maps.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | 3 | 2021-11-28T18:17:05.000Z | 2021-12-19T01:35:13.000Z | examples/lib/live_maps.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | null | null | null | examples/lib/live_maps.ex | sntran/live_map | 9c1fa5b29c4af9d59ad464d45a0e884f5f90a048 | [
"MIT"
] | null | null | null | defmodule LiveMaps do
@moduledoc """
LiveMaps keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
ac505c5473eb7985a9c2258785a96295a26a3313 | 674 | exs | Elixir | mix.exs | tkachuk-labs/readable-orphans | 389d5b5d8e403084ef41a191565527ac46382752 | [
"MIT"
] | null | null | null | mix.exs | tkachuk-labs/readable-orphans | 389d5b5d8e403084ef41a191565527ac46382752 | [
"MIT"
] | null | null | null | mix.exs | tkachuk-labs/readable-orphans | 389d5b5d8e403084ef41a191565527ac46382752 | [
"MIT"
] | null | null | null | defmodule ReadableOrphans.MixProject do
use Mix.Project
def project do
[
app: :readable_orphans,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
... | 21.0625 | 87 | 0.557864 |
ac505d564da264fbb6ea14c7efa3992422a64ad7 | 1,866 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit_content_ads_settings.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit_content_ads_settings.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit_content_ads_settings.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... | 35.884615 | 123 | 0.756163 |
ac5079c6c439f2fe4bec819cc631a3c6df8bb744 | 2,043 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_status.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.482143 | 217 | 0.707293 |
ac508d33829a2372b3f45519ec0adc14a9641645 | 778 | ex | Elixir | lib/sobelow/vuln/coherence.ex | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/vuln/coherence.ex | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/vuln/coherence.ex | rahiparikh/sobelow | ed2ff5ea2648a1decb8d43b35100f833a1aa6c95 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow.Vuln.Coherence do
alias Sobelow.Utils
alias Sobelow.Vuln
use Sobelow.Finding
@vuln_vsn ["<=0.5.1"]
def run(root) do
plug_conf = root <> "/deps/coherence/mix.exs"
if File.exists?(plug_conf) do
vsn = Utils.get_version(plug_conf)
case Version.parse(vsn) do
{:ok, ... | 21.611111 | 73 | 0.553985 |
ac509d5c53a33c109dc2c17bed13d86254bf7d06 | 3,359 | ex | Elixir | lib/xgen/generators/elixir/std.ex | ejpcmac/ex_gen | ccd2beec8912fa6ea6ff9839454986bf3124b001 | [
"MIT"
] | 1 | 2019-10-06T07:31:06.000Z | 2019-10-06T07:31:06.000Z | lib/xgen/generators/elixir/std.ex | ejpcmac/xgen | ccd2beec8912fa6ea6ff9839454986bf3124b001 | [
"MIT"
] | 30 | 2018-08-29T12:52:59.000Z | 2020-05-28T04:54:33.000Z | lib/xgen/generators/elixir/std.ex | ejpcmac/ex_gen | ccd2beec8912fa6ea6ff9839454986bf3124b001 | [
"MIT"
] | 1 | 2020-09-25T09:39:56.000Z | 2020-09-25T09:39:56.000Z | defmodule XGen.Generators.Elixir.Std do
@moduledoc """
A generator for standard Elixir projects.
"""
use XGen.Generator
import Marcus
import XGen.Generator.CallbackHelpers
import XGen.Generator.StandardCallbacks
import XGen.Generators.Elixir.Helpers
alias XGen.Options.Base
alias XGen.Options.Elix... | 24.518248 | 79 | 0.649598 |
ac50bce70e5c969d73ddd86966e0fac21bc96fd9 | 2,481 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/traffic_percent_strategy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_management/lib/google_api/service_management/v1/model/traffic_percent_strategy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/traffic_percent_strategy.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 ... | 31.807692 | 131 | 0.710601 |
ac50ced3b3819f9824f6e409008d5537bc939713 | 1,613 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/publisher_review_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/publisher_review_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/publisher_review_status.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... | 32.26 | 100 | 0.729076 |
ac50fe99c714bf23c82d43a49db86e567fdbf6b4 | 1,359 | ex | Elixir | lib/phoenix_gon/pipeline.ex | chaitanyapandit/phoenix_gon | cafd6ee815d25079a5955b910caa984903081dd5 | [
"MIT"
] | 98 | 2017-04-25T18:23:51.000Z | 2022-01-25T09:48:10.000Z | lib/phoenix_gon/pipeline.ex | chaitanyapandit/phoenix_gon | cafd6ee815d25079a5955b910caa984903081dd5 | [
"MIT"
] | 21 | 2017-04-26T05:58:58.000Z | 2020-11-26T08:46:14.000Z | lib/phoenix_gon/pipeline.ex | chaitanyapandit/phoenix_gon | cafd6ee815d25079a5955b910caa984903081dd5 | [
"MIT"
] | 18 | 2017-06-13T19:35:46.000Z | 2022-01-15T02:53:04.000Z | defmodule PhoenixGon.Pipeline do
import Plug.Conn
@moduledoc """
Plug for initializing gon with settings.
"""
@doc """
Initializer methods. Returns map wiith configuration settings.
"""
@spec init(Keyword.t()) :: Map.t()
def init(defaults) do
%{
env: Keyword.get(defaults, :env, Mix.env()),... | 27.18 | 83 | 0.639441 |
ac5101909a3b194e38ed701415c13e682b94938d | 730 | ex | Elixir | code/otp-server/3/sequence/lib/sequence.ex | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/otp-server/3/sequence/lib/sequence.ex | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/otp-server/3/sequence/lib/sequence.ex | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 27.037037 | 85 | 0.739726 |
ac519465bd22103d3a37bae1f92576b0a1ac0c49 | 1,665 | exs | Elixir | test/docs/multi_line_doc_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | test/docs/multi_line_doc_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | test/docs/multi_line_doc_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | module =
defmodule ESpec.DocTestTest.Multiline do
@doc """
iex> a = Enum.map [1, 2, 3], fn(x) ->
...> x * 2
...> end
iex> b = [1 | a]
iex> Enum.reverse(b)
[6,4,2,1]
"""
def f, do: :f
@doc """
iex> a = 1
iex> 2 + a
3
"""
def ff, do: :ff
@doc """... | 24.130435 | 90 | 0.615616 |
ac51cf2899f26664724fd0c5df51c55776be2471 | 604 | exs | Elixir | test/mongo/cursor_test.exs | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | null | null | null | test/mongo/cursor_test.exs | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | null | null | null | test/mongo/cursor_test.exs | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.CursorTest do
use ExUnit.Case
defmacro unique_name do
{function, _arity} = __CALLER__.function
"#{__CALLER__.module}.#{function}"
end
setup_all do
assert {:ok, pid} = Mongo.TestConnection.connect()
{:ok, [pid: pid]}
end
# issue #94
test "correctly pass options to kill_cu... | 23.230769 | 71 | 0.604305 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.