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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e152a2a8510826ba8ae2c65efbe3d72c2c9fd21 | 2,996 | ex | Elixir | clients/network_services/lib/google_api/network_services/v1/model/audit_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_services/lib/google_api/network_services/v1/model/audit_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_services/lib/google_api/network_services/v1/model/audit_config.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... | 59.92 | 1,106 | 0.748665 |
9e1554cf967b66b1e430e3146a1293bde6becd32 | 359 | ex | Elixir | lib/ua_inspector/util/short_code_map.ex | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 57 | 2015-04-07T03:10:45.000Z | 2019-03-11T01:01:40.000Z | lib/ua_inspector/util/short_code_map.ex | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 16 | 2015-03-09T19:56:17.000Z | 2019-03-16T14:24:02.000Z | lib/ua_inspector/util/short_code_map.ex | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 15 | 2015-02-02T23:14:00.000Z | 2019-03-16T13:15:05.000Z | defmodule UAInspector.Util.ShortCodeMap do
@moduledoc false
@doc """
Extracts the short version for an expanded short code.
"""
@spec to_short([{String.t(), String.t()}], String.t()) :: String.t()
def to_short([], long), do: long
def to_short([{short, long} | _], long), do: short
def to_short([_ | rest... | 29.916667 | 70 | 0.651811 |
9e1569edbb80aad2b83e65682cd6408b0a0282bb | 15,852 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/api/debugger.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/api/debugger.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/api/debugger.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... | 49.383178 | 360 | 0.677517 |
9e159b0273bcdb31db4ed618c18f132da00329f4 | 3,357 | ex | Elixir | api/lib/statistics/valuelists_analyzer.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/statistics/valuelists_analyzer.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/statistics/valuelists_analyzer.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | defmodule Api.Statistics.ValuelistsAnalyzer do
alias Api.Core.Config
def find_overlapping_valuelists(valuelists, used_values_only) do
Enum.reduce(Config.get(:projects), %{}, fn project_name, result ->
Map.put(result, project_name, find_overlapping_valuelists(valuelists, project_name, used_values_only))
... | 39.034884 | 116 | 0.722073 |
9e15a68a4e39b3ef01e22411b7cfe875da43039d | 365 | exs | Elixir | priv/repo/seeds.exs | cogini/elixir-deploy-template | eebe9e335ebbc54ef9388faf50c6fd64936a85aa | [
"MIT"
] | 82 | 2018-01-08T16:57:13.000Z | 2021-12-25T07:34:21.000Z | priv/repo/seeds.exs | cogini/elixir-deploy-template | eebe9e335ebbc54ef9388faf50c6fd64936a85aa | [
"MIT"
] | 8 | 2018-05-21T10:31:27.000Z | 2018-11-25T07:17:56.000Z | priv/repo/seeds.exs | cogini/elixir-deploy-template | eebe9e335ebbc54ef9388faf50c6fd64936a85aa | [
"MIT"
] | 15 | 2018-05-21T10:18:16.000Z | 2021-03-30T17:14:40.000Z | # 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:
#
# DeployTemplate.Repo.insert!(%DeployTemplate.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on... | 30.416667 | 63 | 0.717808 |
9e15aa83f1e3ce3a47c176fe0bada5794fa6e9bb | 2,890 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_detail.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_detail.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_detail.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.285714 | 230 | 0.746713 |
9e162341a29a7635d0183336165cabc067982dcb | 1,804 | ex | Elixir | lib/mix/noap/gen_code/wsdl_wrap/namespace_util.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | 1 | 2022-03-04T03:55:46.000Z | 2022-03-04T03:55:46.000Z | lib/mix/noap/gen_code/wsdl_wrap/namespace_util.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | null | null | null | lib/mix/noap/gen_code/wsdl_wrap/namespace_util.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | null | null | null | defmodule Mix.Noap.GenCode.WSDLWrap.NamespaceUtil do
import SweetXml, only: [add_namespace: 3]
def add_schema_namespace(xpath, prefix) do
add_namespace(xpath, prefix, "http://www.w3.org/2001/XMLSchema")
end
def add_protocol_namespace(xpath, prefix) do
add_namespace(xpath, prefix, "http://schemas.xmlso... | 34.037736 | 91 | 0.628049 |
9e1634260e99a7b97033c3095c060714180251b6 | 3,261 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_group.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... | 47.955882 | 293 | 0.709905 |
9e1651e9e07666db0295f2db4bc597347f04072f | 353 | ex | Elixir | lib/elixir_lokalise_api/models/screenshot.ex | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 3 | 2021-06-24T14:30:31.000Z | 2021-09-06T11:30:17.000Z | lib/elixir_lokalise_api/models/screenshot.ex | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 8 | 2021-09-15T07:30:59.000Z | 2022-02-01T17:40:17.000Z | lib/elixir_lokalise_api/models/screenshot.ex | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 2 | 2021-09-07T11:10:51.000Z | 2021-09-26T07:37:39.000Z | defmodule ElixirLokaliseApi.Model.Screenshot do
@moduledoc false
defstruct screenshot_id: nil,
key_ids: [],
url: nil,
title: nil,
description: nil,
screenshot_tags: [],
width: nil,
height: nil,
created_at: nil,
... | 25.214286 | 47 | 0.532578 |
9e166b8d17b3876460d16762fcdabf6bea04a9fb | 214 | exs | Elixir | apps/feedback/config/prod.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/feedback/config/prod.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/feedback/config/prod.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | use Mix.Config
config :feedback,
support_ticket_to_email: "${SUPPORT_TICKET_TO_EMAIL}",
support_ticket_from_email: "${SUPPORT_TICKET_FROM_EMAIL}",
support_ticket_reply_email: "${SUPPORT_TICKET_REPLY_EMAIL}"
| 30.571429 | 61 | 0.813084 |
9e1695862623ab485985e53d7045295f0db36aab | 1,132 | ex | Elixir | lib/printing.ex | adolfont/tableau | 2912685c718f00291430acff46948c4d9b463130 | [
"MIT"
] | 3 | 2020-02-29T22:43:52.000Z | 2021-02-18T13:38:45.000Z | lib/printing.ex | adolfont/tableau | 2912685c718f00291430acff46948c4d9b463130 | [
"MIT"
] | null | null | null | lib/printing.ex | adolfont/tableau | 2912685c718f00291430acff46948c4d9b463130 | [
"MIT"
] | null | null | null | defmodule Printing do
def show_proof(proof = %Proof{branches: []}) do
["FORMULAS: ", Enum.map(proof.formulas, &show_signed_formula(&1)), "STATUS: #{proof.status}"]
# show_proof_branches(proof.branches)
end
def show_proof(proof = %Proof{}) do
[
:formulas,
Enum.map(proof.formulas, &show_sig... | 31.444444 | 97 | 0.65636 |
9e16a16b2e529d92ed4c2decb50dd7452d36df4e | 1,306 | exs | Elixir | test/phoenix/live_dashboard/live/request_logger_live_test.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | 1 | 2020-04-23T11:36:03.000Z | 2020-04-23T11:36:03.000Z | test/phoenix/live_dashboard/live/request_logger_live_test.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/live/request_logger_live_test.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | 1 | 2021-02-04T03:06:20.000Z | 2021-02-04T03:06:20.000Z | defmodule Phoenix.LiveDashboard.RequestLoggerLiveTest do
use ExUnit.Case, async: true
require Logger
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveDashboard.RequestLogger
alias Phoenix.LiveDashboardTest.PubSub
@endpoint Phoenix.LiveDashboardTest.Endpoint
test "redirects to stre... | 34.368421 | 95 | 0.723583 |
9e16b4ad2a10fd9e5df8e0760b7509db7cce3b88 | 261 | ex | Elixir | lib/phx_crud_users.ex | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | lib/phx_crud_users.ex | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | lib/phx_crud_users.ex | LeonardoSSev/phx-crud-users | 52dabaae0c81adeee39afa48eb17331de261d3c4 | [
"MIT"
] | null | null | null | defmodule PhxCrudUsers do
@moduledoc """
PhxCrudUsers 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
| 26.1 | 66 | 0.762452 |
9e16e759c531827e7da09ad99752a5d57ab16c8c | 3,071 | ex | Elixir | lib/ecto/query/builder/group_by.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/group_by.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/group_by.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.GroupBy do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a list of quoted expressions.
See `Ecto.Builder.escape/2`.
iex> escape(:group_by, quote do [x.x, 13] end, {%{}, :acc}, [x: 0], __ENV__)
{[{:{}, [], [{:{}, [], [... | 31.020202 | 95 | 0.601107 |
9e16eb0f191ea8c19682e5821a7adb974115ff85 | 754 | exs | Elixir | mix.exs | Ruin0x11/elixir-tmdb | d2ab828bb4473c93c11037d1a65064dce8de245e | [
"MIT"
] | 13 | 2016-07-30T05:10:50.000Z | 2019-04-25T05:08:11.000Z | mix.exs | Ruin0x11/elixir-tmdb | d2ab828bb4473c93c11037d1a65064dce8de245e | [
"MIT"
] | 3 | 2016-08-04T00:44:01.000Z | 2017-07-18T17:27:05.000Z | mix.exs | Ruin0x11/elixir-tmdb | d2ab828bb4473c93c11037d1a65064dce8de245e | [
"MIT"
] | 12 | 2016-07-30T23:59:26.000Z | 2021-06-25T05:53:57.000Z | defmodule Tmdb.Mixfile do
use Mix.Project
def project do
[app: :tmdb,
version: "0.1.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more infor... | 20.944444 | 77 | 0.578249 |
9e16eb8ead671013bb76cf78bd855386834b8756 | 3,093 | exs | Elixir | test/redis_unique_queue_test.exs | mvalitov/elixir-redis-unique-queue | 872c2736c51adeec949900ec94cd06c1c5c11d95 | [
"MIT"
] | 6 | 2017-05-21T11:43:59.000Z | 2020-12-09T09:46:11.000Z | test/redis_unique_queue_test.exs | mvalitov/elixir-redis-unique-queue | 872c2736c51adeec949900ec94cd06c1c5c11d95 | [
"MIT"
] | null | null | null | test/redis_unique_queue_test.exs | mvalitov/elixir-redis-unique-queue | 872c2736c51adeec949900ec94cd06c1c5c11d95 | [
"MIT"
] | null | null | null | defmodule RedisUniqueQueueTest do
use ExUnit.Case
# doctest RedisUniqueQueue
@redis_config Application.get_env(:redis_unique_queue, :redis)[:config]
setup do
{:ok, queue} = RedisUniqueQueue.create("test_queue", @redis_config)
RedisUniqueQueue.clear(queue)
{:ok, queue: queue}
end
test "return ... | 34.366667 | 89 | 0.661494 |
9e16f0cd50bb9e944af818473593aea87e30dab7 | 1,134 | exs | Elixir | test/core_words_message_test.exs | alexiob/forthvm | 4dc75790ef98e248ac48a6f4116ad7673cee6287 | [
"MIT"
] | 8 | 2021-11-19T14:02:01.000Z | 2022-03-09T06:29:33.000Z | test/core_words_message_test.exs | alexiob/forthvm | 4dc75790ef98e248ac48a6f4116ad7673cee6287 | [
"MIT"
] | null | null | null | test/core_words_message_test.exs | alexiob/forthvm | 4dc75790ef98e248ac48a6f4116ad7673cee6287 | [
"MIT"
] | 1 | 2021-11-26T18:51:31.000Z | 2021-11-26T18:51:31.000Z | defmodule ForthVM.ProcessWordMessageTest do
@moduledoc false
use ExUnit.Case
import ExUnit.CaptureIO
@test_command "two one 42 :puts 1 send"
@test_message {"puts", [42, "one", "two"]}
test "message should be received by target process" do
assert capture_io(fn ->
start_supervised({ForthVM.... | 31.5 | 96 | 0.592593 |
9e172351775ccbcd75a5deb18e31152e273197b6 | 1,789 | ex | Elixir | platform/target/info_workers/wifi_level.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | platform/target/info_workers/wifi_level.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | platform/target/info_workers/wifi_level.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Platform.Target.InfoWorker.WifiLevel do
@moduledoc """
Worker process responsible for reporting current wifi
power levels to the bot_state server
"""
@report_interval 7_000
use GenServer
alias FarmbotOS.BotState
@doc false
def start_link(args) do
GenServer.start_link(__MODUL... | 26.308824 | 72 | 0.672443 |
9e17309146eeeeb9659c53f8a53f87abfe5d9dd4 | 1,467 | exs | Elixir | mix.exs | vic/comeonin_ecto_password | 1bc1be0bdb72cf20d8752676391dc41c5ac7da05 | [
"BSD-3-Clause"
] | 33 | 2016-02-01T03:25:37.000Z | 2021-12-21T15:22:36.000Z | mix.exs | vic/comeonin_ecto_password | 1bc1be0bdb72cf20d8752676391dc41c5ac7da05 | [
"BSD-3-Clause"
] | 7 | 2016-05-21T16:07:24.000Z | 2020-03-30T04:12:29.000Z | mix.exs | vic/comeonin_ecto_password | 1bc1be0bdb72cf20d8752676391dc41c5ac7da05 | [
"BSD-3-Clause"
] | 10 | 2016-05-21T09:38:26.000Z | 2020-03-17T12:45:26.000Z | defmodule ComeoninEctoPassword.Mixfile do
use Mix.Project
def project do
[
app: :comeonin_ecto_password,
version: "3.0.0",
elixir: "~> 1.7",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
d... | 23.285714 | 77 | 0.575324 |
9e17abdd3d8ce7917c2ea4f3793690a88debd6a2 | 475 | ex | Elixir | lib/ex_dadata/address/geocode_address/metro.ex | Elonsoft/ex_dadata | 71edca65f9d35fd2c9aa6553e87992b377500a1c | [
"MIT"
] | 1 | 2021-08-23T08:24:50.000Z | 2021-08-23T08:24:50.000Z | lib/ex_dadata/address/geocode_address/metro.ex | Elonsoft/ex_dadata | 71edca65f9d35fd2c9aa6553e87992b377500a1c | [
"MIT"
] | null | null | null | lib/ex_dadata/address/geocode_address/metro.ex | Elonsoft/ex_dadata | 71edca65f9d35fd2c9aa6553e87992b377500a1c | [
"MIT"
] | null | null | null | defmodule ExDadata.Address.GeocodeAddress.Metro do
@moduledoc false
use Ecto.Schema
alias Ecto.Changeset
@primary_key false
embedded_schema do
field :name, :string
field :line, :string
field :distance, :decimal
end
@fields ~w(name line distance)a
def cast_list!(list) when is_list(list) ... | 19 | 50 | 0.675789 |
9e17b7c9cfe0832213ede5344b4b20f2be36c2b8 | 480 | exs | Elixir | test/alertlytics/adapters/http_adapter_test.exs | cultivatedcode/alertlytics | 92bbc071bfc667e8c15dca6aa3a5cc28627f2fed | [
"Apache-2.0"
] | null | null | null | test/alertlytics/adapters/http_adapter_test.exs | cultivatedcode/alertlytics | 92bbc071bfc667e8c15dca6aa3a5cc28627f2fed | [
"Apache-2.0"
] | 3 | 2019-02-24T18:04:02.000Z | 2020-06-12T04:36:44.000Z | test/alertlytics/adapters/http_adapter_test.exs | cultivatedcode/alertlytics | 92bbc071bfc667e8c15dca6aa3a5cc28627f2fed | [
"Apache-2.0"
] | null | null | null | defmodule HttpAdapterTest do
use ExUnit.Case
alias Alertlytics.Adapters.HttpAdapter, as: Subject
doctest Alertlytics.Adapters.HttpAdapter
test "good url" do
assert true ==
Subject.check(%{
"health_check_url" => "https://www.cultivatedcode.com"
})
end
test "bad ... | 24 | 75 | 0.597917 |
9e17e3da5bf085b5365253868876aaa6ce8fa96c | 673 | exs | Elixir | airesources/Elixir/mix.exs | Cerbes/Halite-II | b402fce1bc2d325d36fe32e3b120031217b4396d | [
"MIT"
] | 232 | 2017-09-11T14:28:41.000Z | 2022-01-19T10:26:07.000Z | airesources/Elixir/mix.exs | Cerbes/Halite-II | b402fce1bc2d325d36fe32e3b120031217b4396d | [
"MIT"
] | 302 | 2017-09-13T04:46:25.000Z | 2018-09-06T22:14:06.000Z | airesources/Elixir/mix.exs | Cerbes/Halite-II | b402fce1bc2d325d36fe32e3b120031217b4396d | [
"MIT"
] | 151 | 2017-09-11T21:03:07.000Z | 2020-11-28T04:58:55.000Z | defmodule Elixirbot.Mixfile do
use Mix.Project
def project do
[
app: :elixirbot,
version: "0.2.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
escript: [main_module: Elixirbot.CLI, path: 'MyBot'],
deps: deps()
]
end
# Run "mix help compile.app" to learn abo... | 21.709677 | 88 | 0.582467 |
9e181a483679dddda8789d9f59996ff4abdbdb82 | 548 | exs | Elixir | apps/data_warehouse/priv/repo/migrations/20210222224889_create_trade_events.exs | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | apps/data_warehouse/priv/repo/migrations/20210222224889_create_trade_events.exs | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | apps/data_warehouse/priv/repo/migrations/20210222224889_create_trade_events.exs | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | defmodule DataWarehouse.Repo.Migrations.CreateTradeEvents do
use Ecto.Migration
def change do
create table(:trade_events, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:event_type, :text)
add(:event_time, :bigint)
add(:symbol, :text)
add(:trade_id, :integer)
... | 24.909091 | 60 | 0.640511 |
9e1822e95b5521fdf5c67227669c674c4372985f | 191 | ex | Elixir | lib/slackin_ex/events/fuse_handler.ex | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | lib/slackin_ex/events/fuse_handler.ex | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | lib/slackin_ex/events/fuse_handler.ex | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | defmodule SlackinEx.Events.FuseHandler do
use SlackinEx.Events.Handler
def handle_event({:slack_sync_api, _}, state) do
SlackinEx.Cache.invalidate()
{:ok, state}
end
end
| 17.363636 | 50 | 0.712042 |
9e182568407f2591cfe4bc3f34c73fd743bf8199 | 1,827 | exs | Elixir | config/prod.exs | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | config/prod.exs | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | config/prod.exs | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"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.823529 | 66 | 0.713191 |
9e18482e404f9858ec4057a45b5f86a7280a711c | 4,835 | exs | Elixir | test/tds_issues_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | test/tds_issues_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | test/tds_issues_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | defmodule TdsIssuesTest do
import Tds.TestHelper
require Logger
use ExUnit.Case, async: true
@tag timeout: 50000
setup do
opts = Application.fetch_env!(:tds, :opts)
{:ok, pid} = Tds.start_link(opts)
{:ok, [pid: pid]}
end
@tag :float
test "float read and write", context do
query("DROP... | 31.396104 | 134 | 0.476319 |
9e186fb35b6af7ff44db216d4f7f71a632b4f9c9 | 3,083 | ex | Elixir | lib/apoc/hazmat/mac/hmac256.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 6 | 2018-10-04T14:18:35.000Z | 2020-05-15T08:43:31.000Z | lib/apoc/hazmat/mac/hmac256.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 3 | 2018-10-23T12:20:45.000Z | 2021-01-27T10:41:14.000Z | lib/apoc/hazmat/mac/hmac256.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 2 | 2020-02-19T00:43:37.000Z | 2021-08-19T04:04:25.000Z | defmodule Apoc.Hazmat.MAC.HMAC256 do
@moduledoc """
Implementation of the HMAC construction
as described in [FIPS PUB 198-1](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.198-1.pdf)
"""
# This is needed for our API check
require :crypto
use Apoc.Adapter.MAC
defguard is_valid_key(key) when is_binary(... | 29.084906 | 109 | 0.6458 |
9e18723d52c37779b147c49735b83f233433d93f | 174 | exs | Elixir | priv/repo/migrations/20200831195118_remove_stdout_frames.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | priv/repo/migrations/20200831195118_remove_stdout_frames.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | priv/repo/migrations/20200831195118_remove_stdout_frames.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule Asciinema.Repo.Migrations.RemoveStdoutFrames do
use Ecto.Migration
def change do
alter table(:asciicasts) do
remove :stdout_frames
end
end
end
| 17.4 | 57 | 0.741379 |
9e188c0b08dc08284cc3ed9e64fb2eff9f7d1770 | 3,645 | exs | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/test/$PROJECT_NAME$_web/controllers/accounts/registration_controller_test.exs | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/test/$PROJECT_NAME$_web/controllers/accounts/registration_controller_test.exs | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/test/$PROJECT_NAME$_web/controllers/accounts/registration_controller_test.exs | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2018-02-15T19:08:23.000Z | 2018-09-28T13:49:27.000Z | defmodule <%= @project_name_camel_case %>Web.Accounts.RegistrationControllerTest do
use <%= @project_name_camel_case %>Web.ConnCase
import <%= @project_name_camel_case %>.AccountsFactory
import Plug.Test
alias <%= @project_name_camel_case %>.Accounts
describe ".new/2" do
test "renders registration form... | 29.877049 | 95 | 0.59808 |
9e18a3594e84223127d0af62036cbb9635553c44 | 644 | exs | Elixir | examples/hello_world/test/hello_world_test.exs | Sailias/aws-lambda-elixir-runtime | 70808bdebda270b8402a0b6ac875f0a948a920e6 | [
"MIT-0"
] | 3 | 2019-09-10T22:12:27.000Z | 2022-01-06T01:21:04.000Z | examples/hello_world/test/hello_world_test.exs | StratoSpire/aws-lambda-elixir-runtime | 68259e321edf6e975a2e7e257a98603b243de87a | [
"MIT-0"
] | null | null | null | examples/hello_world/test/hello_world_test.exs | StratoSpire/aws-lambda-elixir-runtime | 68259e321edf6e975a2e7e257a98603b243de87a | [
"MIT-0"
] | 2 | 2020-08-13T05:37:17.000Z | 2022-01-06T01:24:02.000Z | defmodule HelloWorldTest do
use ExUnit.Case
doctest HelloWorld
test "greets the world" do
request = %{
"key1" => "value1",
"key2" => "value2",
"key3" => "value3"
}
context = %{
"lambda-runtime-aws-request-id" => "22f56578-dfd6-47f7-8df5-81591dc205e8",
"lambda-runtime-de... | 29.272727 | 111 | 0.659938 |
9e18b8692ab2fd2f9f5f319427aaf8b291d48cc7 | 2,805 | ex | Elixir | lib/sieve_of_eratosthenes.ex | Dante7/prime_opt | 45ce8a673884c3a1a6d9a235fa2f500a53f5e7ea | [
"MIT"
] | 1 | 2021-12-05T09:55:22.000Z | 2021-12-05T09:55:22.000Z | lib/sieve_of_eratosthenes.ex | Dante7/sieve_of_eratosthenes | 45ce8a673884c3a1a6d9a235fa2f500a53f5e7ea | [
"MIT"
] | null | null | null | lib/sieve_of_eratosthenes.ex | Dante7/sieve_of_eratosthenes | 45ce8a673884c3a1a6d9a235fa2f500a53f5e7ea | [
"MIT"
] | null | null | null | defmodule SieveOfEratosthenes do
@moduledoc """
Documentation for `SieveOfEratosthenes`.
Implementation of sieve of eratosthenes algorithm to calculate all the prime numbers
until number given used as limit, using tail recursive optimization and async functions
"""
@doc """
Calculate all the prime... | 28.05 | 97 | 0.653476 |
9e1905deb6e71b80522a03578153b6fbadb92bf9 | 389 | ex | Elixir | lib/trento/support/mix/tasks/helper.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento/support/mix/tasks/helper.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento/support/mix/tasks/helper.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Tasks.Helper do
@moduledoc """
Helper functions for tasks.
"""
def start_repo do
[:postgrex, :ecto]
|> Enum.each(&Application.ensure_all_started/1)
Trento.Repo.start_link()
end
def print_error(msg) do
case Code.ensure_compiled(Mix) do
{:module, _} -> Mix.raise(msg)
... | 19.45 | 51 | 0.632391 |
9e1952405b2d0ce0c1df2f3ff59aea0e83d102f2 | 908 | ex | Elixir | lib/sse.ex | mustafaturan/sse | 9edc7bc2397fb618861f15edb0a9ffd9ff8bb59e | [
"Unlicense"
] | 73 | 2018-02-20T09:09:33.000Z | 2022-02-12T19:56:46.000Z | lib/sse.ex | mustafaturan/sse | 9edc7bc2397fb618861f15edb0a9ffd9ff8bb59e | [
"Unlicense"
] | 39 | 2018-11-21T12:04:33.000Z | 2021-08-02T13:14:36.000Z | lib/sse.ex | mustafaturan/sse | 9edc7bc2397fb618861f15edb0a9ffd9ff8bb59e | [
"Unlicense"
] | 6 | 2018-11-20T13:18:59.000Z | 2022-03-22T12:35:21.000Z | defmodule SSE do
@moduledoc """
Server Sent Events handler
"""
alias SSE.Server
@type config :: map()
@type chunk :: SSE.Chunk.t()
@type conn :: Plug.Conn.t()
@type event_id :: integer() | String.t()
@type event_shadow_with_config :: {config(), topic(), event_id()}
@type matcher :: tuple()
@type... | 25.942857 | 70 | 0.631057 |
9e196653887e96878726a7ae7100ec471eaffdfc | 17,174 | exs | Elixir | test/taglet/tag_as_test.exs | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | test/taglet/tag_as_test.exs | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | test/taglet/tag_as_test.exs | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | defmodule Taglet.TagAsTest do
alias Ecto.Adapters.SQL
alias TagletPost, as: Post
alias Taglet.{Tagging, Tag}
import Ecto.Query
# import Mix.Ecto, only: [build_repo_priv: 1]
use ExUnit.Case
def build_repo_priv(repo) do
Application.app_dir(
Keyword.fetch!(repo.config(), :otp_app),
source_... | 37.828194 | 111 | 0.672703 |
9e198b1ca9642dd6f257e5eee57605d770090d94 | 740 | exs | Elixir | mix.exs | elixir-twister/corsica | 698a916c0ab71d67a2fc356d72b3609623f9d3a5 | [
"MIT"
] | null | null | null | mix.exs | elixir-twister/corsica | 698a916c0ab71d67a2fc356d72b3609623f9d3a5 | [
"MIT"
] | null | null | null | mix.exs | elixir-twister/corsica | 698a916c0ab71d67a2fc356d72b3609623f9d3a5 | [
"MIT"
] | null | null | null | defmodule Corsica.Mixfile do
use Mix.Project
@version "0.5.0"
@description "Plug-based swiss-army knife for CORS requests."
def project() do
[app: :corsica,
version: @version,
elixir: "~> 1.0",
deps: deps(),
description: @description(),
name: "Corsica",
source_url: "https://... | 21.142857 | 68 | 0.582432 |
9e19abf3632168ccdeb3c06e7eede174be5bd2cc | 2,562 | ex | Elixir | test/support/test_adapter.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 344 | 2017-07-03T11:30:26.000Z | 2022-03-30T19:11:41.000Z | test/support/test_adapter.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 56 | 2017-06-29T01:55:35.000Z | 2022-03-15T22:09:47.000Z | test/support/test_adapter.ex | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 45 | 2017-08-15T18:59:41.000Z | 2022-03-17T17:00:50.000Z | defmodule Triplex.TestAdapter do
@behaviour Ecto.Adapter
@behaviour Ecto.Adapter.Queryable
@behaviour Ecto.Adapter.Schema
@behaviour Ecto.Adapter.Transaction
@behaviour Ecto.Adapter.Migration
defmacro __before_compile__(_opts), do: :ok
def ensure_all_started(_, _), do: {:ok, []}
def init(_opts) do
... | 26.412371 | 94 | 0.650273 |
9e19be44d296eed92309c9fc4e33e6df02363763 | 1,089 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33 | 74 | 0.733701 |
9e19dac1fa8e402c8dd26d73de816f020c90acb2 | 3,525 | ex | Elixir | lib/hex/update_checker.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | null | null | null | lib/hex/update_checker.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | null | null | null | lib/hex/update_checker.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | null | null | null | defmodule Hex.UpdateChecker do
@moduledoc false
use GenServer
@name __MODULE__
@timeout 60_000
@update_interval 24 * 60 * 60
def start_link(opts \\ []) do
{init_state, opts} = Keyword.pop(opts, :init_state, %{})
opts = Keyword.put_new(opts, :name, @name)
GenServer.start_link(__MODULE__, init... | 24.479167 | 96 | 0.637447 |
9e19e5f1aaf377078d17c98fda84e1461a826262 | 2,114 | ex | Elixir | lib/glimesh_web/plugs/old_api_context_plug.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/plugs/old_api_context_plug.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh_web/plugs/old_api_context_plug.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.Plugs.OldApiContextPlug do
@behaviour Plug
import Plug.Conn
import Phoenix.Controller, only: [json: 2]
alias Glimesh.Oauth
def init(opts), do: opts
def call(conn, opts) do
case parse_token_from_header(conn, opts) |> authorize(conn) do
{:ok, %Glimesh.Api.Access{} = access} ... | 25.46988 | 83 | 0.578524 |
9e1a017c30414e0d377e205102c7348c46629889 | 230 | exs | Elixir | priv/repo/migrations/20210105160838_update_views.exs | Multiverse-io/familiar | 0bda7fa0fb4d6f8fdc701293b8824965a5d8b930 | [
"MIT"
] | 5 | 2021-05-05T14:54:06.000Z | 2022-02-19T13:00:48.000Z | priv/repo/migrations/20210105160838_update_views.exs | Multiverse-io/familiar | 0bda7fa0fb4d6f8fdc701293b8824965a5d8b930 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210105160838_update_views.exs | Multiverse-io/familiar | 0bda7fa0fb4d6f8fdc701293b8824965a5d8b930 | [
"MIT"
] | 1 | 2021-11-23T16:51:36.000Z | 2021-11-23T16:51:36.000Z | defmodule Familiar.Repo.Migrations.UpdateViews do
use Ecto.Migration
use Familiar
def change do
update_view :chickens, version: 2, revert: 1, materialized: true
update_function :mix, version: 2, revert: 1
end
end
| 23 | 68 | 0.743478 |
9e1a0f92aac2aa34e2c32c212ef1b45a40797651 | 197 | exs | Elixir | Elixir/fizz_buzz.exs | GauravPoosarla/FizzBuzz-Hacktoberfest-2021 | eefeeb7eb2045ecd03b736cf4c00da4e902a7278 | [
"Unlicense"
] | 13 | 2021-10-01T09:29:27.000Z | 2022-01-13T08:33:03.000Z | Elixir/fizz_buzz.exs | GauravPoosarla/FizzBuzz-Hacktoberfest-2021 | eefeeb7eb2045ecd03b736cf4c00da4e902a7278 | [
"Unlicense"
] | 76 | 2021-10-01T07:26:48.000Z | 2021-11-03T06:51:10.000Z | Elixir/fizz_buzz.exs | GauravPoosarla/FizzBuzz-Hacktoberfest-2021 | eefeeb7eb2045ecd03b736cf4c00da4e902a7278 | [
"Unlicense"
] | 68 | 2021-10-01T07:09:30.000Z | 2021-10-31T16:33:40.000Z | Enum.map(1..100, fn n ->
cond do
rem(n, 3) == 0 and rem(n, 5) == 0 -> "FizzBuzz"
rem(n, 3) == 0 -> "Fizz"
rem(n, 5) == 0 -> "Buzz"
true -> n
end
end)
|> Enum.each(&IO.puts(&1))
| 19.7 | 51 | 0.451777 |
9e1a34e2521b8c2d9d17b90f38a684b05b1ac43d | 1,039 | exs | Elixir | mix.exs | zillou/ex_twilio | 4812546f34caaa432d8ac3c486f67b9a5232af32 | [
"MIT"
] | null | null | null | mix.exs | zillou/ex_twilio | 4812546f34caaa432d8ac3c486f67b9a5232af32 | [
"MIT"
] | 1 | 2021-02-19T04:34:52.000Z | 2021-03-29T19:14:14.000Z | mix.exs | workpathco/ex_twilio | fe6948ee2c78084dade683c0b81c33f47461589f | [
"MIT"
] | null | null | null | defmodule ExTwilio.Mixfile do
use Mix.Project
def project do
[
app: :ex_twilio,
version: "0.9.0",
elixir: "~> 1.2",
name: "ExTwilio",
description: "Twilio API library for Elixir",
source_url: "https://github.com/danielberkompas/ex_twilio",
package: package(),
doc... | 19.980769 | 66 | 0.499519 |
9e1a383a0547a2f599c947d08acc6ab4809b8055 | 1,043 | exs | Elixir | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-15/chain.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-15/chain.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/languages-n-runtimes/elixir/book--programming-elixir-ge-1.6/chapter-15/chain.exs | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | defmodule Chain do
def counter(prev_pid) do
receive do
n ->
send prev_pid, n + 1
end
end
def create_procs(n) do
code_to_run = fn(_, send_to) ->
spawn(Chain, :counter, [send_to])
end
last = Enum.reduce(1..n, self(), code_to_run)
send(last, 0)
receive do
fina... | 24.255814 | 78 | 0.636625 |
9e1a57c8d20aaada2e4e6f8342a5d8e79c25280b | 995 | ex | Elixir | lib/entangled_server.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | 1 | 2018-10-11T06:58:02.000Z | 2018-10-11T06:58:02.000Z | lib/entangled_server.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | null | null | null | lib/entangled_server.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | null | null | null | defmodule EntangledServer do
@moduledoc """
Entangled process for bo_entangled
"""
use GenServer
def start() do
{:ok, uppid} = GenServer.start(EntangledServer, :up)
{:ok, downpid} = GenServer.start(EntangledServer, :down)
:ok = GenServer.cast(uppid, downpid)
:ok = GenServer.cast(downpid, uppi... | 25.512821 | 73 | 0.642211 |
9e1a5a87af7adbef3ec61bc7163d269c51187779 | 13,915 | ex | Elixir | deps/absinthe_plug/lib/absinthe/plug.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/absinthe_plug/lib/absinthe/plug.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/absinthe_plug/lib/absinthe/plug.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 1 | 2019-04-23T04:22:52.000Z | 2019-04-23T04:22:52.000Z | defmodule Absinthe.Plug do
@moduledoc """
A plug for using [Absinthe](https://hex.pm/packages/absinthe) (GraphQL).
## Usage
In your router:
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json, Absinthe.Plug.Parser],
pass: ["*/*"],
json_decoder: Poison
plug Absinth... | 33.130952 | 556 | 0.664966 |
9e1a5d2a7278d2e73881bbbcd998125f0b53fab5 | 340 | ex | Elixir | lib/agata/router.ex | alfonsojimenez/agata | 826ac3e992423ce6640166ea0e567f939e9bed7c | [
"MIT"
] | 5 | 2018-08-30T14:05:38.000Z | 2020-10-24T07:00:27.000Z | lib/agata/router.ex | alfonsojimenez/agata | 826ac3e992423ce6640166ea0e567f939e9bed7c | [
"MIT"
] | null | null | null | lib/agata/router.ex | alfonsojimenez/agata | 826ac3e992423ce6640166ea0e567f939e9bed7c | [
"MIT"
] | null | null | null | defmodule Agata.Router do
use Plug.Router
plug Plug.Static, at: "/public", from: :agata
plug Plug.Static, at: "/tmp", from: "priv/tmp"
plug :match
plug :dispatch
get "/", do: send_resp(
conn, 200, EEx.eval_file("views/index.eex", [emails: Agata.Storage.to_json])
)
match _, do: send_resp(conn, 40... | 21.25 | 80 | 0.655882 |
9e1a7a400f8bf2b54400554953f1dae57a230386 | 5,108 | ex | Elixir | lib/mix/lib/mix/tasks/compile.erlang.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/mix/lib/mix/tasks/compile.erlang.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.erlang.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Erlang do
use Mix.Task
import Mix.Compilers.Erlang
@recursive true
@manifest ".compile.erlang"
@moduledoc """
Compiles Erlang source files.
When this task runs, it will first check the modification times of
all files to be compiled and if they haven't been
changed since ... | 29.526012 | 90 | 0.637431 |
9e1aa94ca0e9756122e847acf5c605caf567b086 | 8,366 | ex | Elixir | lib/ex_aws/cloudformation/parsers.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/cloudformation/parsers.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/cloudformation/parsers.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | if Code.ensure_loaded?(SweetXml) do
defmodule ExAws.Cloudformation.Parsers do
import SweetXml, only: [sigil_x: 2, transform_by: 2]
@type resource_status ::
:create_in_progress | :create_failed | :create_complete |
:delete_in_progress | :delete_failed | :delete_complete | :delete_skipped |
:... | 38.027273 | 115 | 0.595625 |
9e1aca8bea2323a06f44e4ba9e8877dfd2f010e2 | 569 | ex | Elixir | lib/movement/operation.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/movement/operation.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/movement/operation.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Movement.Operation do
defstruct action: nil,
key: nil,
text: nil,
file_comment: nil,
file_index: 0,
value_type: nil,
plural: false,
locked: false,
batch: false,
translation_id: nil,
rollba... | 25.863636 | 41 | 0.507909 |
9e1acd008c2b4e16e32e46b441a259b9fc295e18 | 1,781 | exs | Elixir | mix.exs | chrislaskey/assoc | 7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7 | [
"MIT"
] | 6 | 2019-01-31T23:31:42.000Z | 2020-10-06T20:05:34.000Z | mix.exs | chrislaskey/assoc | 7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7 | [
"MIT"
] | 2 | 2021-11-09T14:35:51.000Z | 2021-11-09T18:04:15.000Z | mix.exs | chrislaskey/assoc | 7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7 | [
"MIT"
] | 2 | 2019-01-31T23:53:33.000Z | 2021-11-05T21:47:26.000Z | defmodule Assoc.MixProject do
use Mix.Project
@version "0.2.3"
def project do
[
app: :assoc,
version: @version,
build_path: "./_build",
config_path: "./config/config.exs",
deps_path: "./deps",
lockfile: "./mix.lock",
elixir: "~> 1.12",
elixirc_paths: elixirc_p... | 23.12987 | 83 | 0.558675 |
9e1ae45a0e7c287eb91bee85c8b60a7e55e9162d | 3,736 | ex | Elixir | lib/siwapp/invoices/item.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp/invoices/item.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp/invoices/item.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | defmodule Siwapp.Invoices.Item do
@moduledoc """
Item
"""
use Ecto.Schema
import Ecto.Changeset
import Siwapp.Invoices.AmountHelper
alias Siwapp.Commons
alias Siwapp.Commons.Tax
alias Siwapp.Invoices.Invoice
@fields [
:quantity,
:discount,
:description,
:unitary_cost,
:invoice... | 29.417323 | 91 | 0.663276 |
9e1b08be9c01a44f9967d3a4b1c52af410a7d8d7 | 72 | ex | Elixir | apps/api_web/lib/api_web/views/client_portal/layout_view.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/lib/api_web/views/client_portal/layout_view.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/lib/api_web/views/client_portal/layout_view.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.ClientPortal.LayoutView do
use ApiWeb.Web, :view
end
| 18 | 43 | 0.805556 |
9e1b4a40064fcf64511fe60a11cba46e54ee9950 | 2,361 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/controllers/transfer_controller.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_api/lib/ewallet_api/v1/controllers/transfer_controller.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/controllers/transfer_controller.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletAPI.V1.TransferController do
use EWalletAPI, :controller
import EWalletAPI.V1.ErrorHandler
alias EWallet.{ComputedBalanceFetcher, TransactionGate}
plug :put_view, EWalletAPI.V1.ComputedBalanceView
def transfer(conn, %{
"from_address" => from_address,
"to_address" => to_address,
... | 32.791667 | 88 | 0.700127 |
9e1b8ad18e8214e00d29d91570b8d5556e4d0958 | 101 | exs | Elixir | test/iso_8583/encode/encode_test.exs | zemuldo/iso_8583_elixir | bc8782a20cd9bc5fa78c9c57338a68f459f9929c | [
"MIT"
] | 7 | 2020-03-02T07:12:49.000Z | 2022-03-15T02:03:30.000Z | test/iso_8583/encode/encode_test.exs | zemuldo/iso_8583_elixir | bc8782a20cd9bc5fa78c9c57338a68f459f9929c | [
"MIT"
] | 1 | 2020-10-21T05:19:44.000Z | 2020-10-24T20:11:47.000Z | test/iso_8583/encode/encode_test.exs | zemuldo/iso_8583_elixir | bc8782a20cd9bc5fa78c9c57338a68f459f9929c | [
"MIT"
] | 2 | 2020-03-02T07:14:50.000Z | 2022-03-15T17:18:57.000Z | defmodule ISO8583.Test.EncodeTest do
use ExUnit.Case
alias ISO8583.Encode
doctest Encode
end
| 12.625 | 36 | 0.782178 |
9e1ba54d09b9823249963c2fed7f86e226f3d434 | 2,156 | exs | Elixir | test/surgex/refactor/refactor_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | test/surgex/refactor/refactor_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | test/surgex/refactor/refactor_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.RefactorTest do
use ExUnit.Case
import ExUnit.CaptureIO
alias Surgex.Refactor
setup do
File.rm_rf!("test/samples")
File.mkdir_p!("test/samples")
File.write(
"test/samples/valid_xyz_mod.ex",
"defmodule Surgex.Refactor.MapFilenamesTest.ValidXYZMod, do: nil"
)
Fi... | 24.781609 | 96 | 0.614564 |
9e1bbdff05cc59c673c087a1a02e3a060aa76b73 | 1,184 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/log_entry_operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_entry_operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_entry_operation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 29.6 | 105 | 0.741554 |
9e1bc1a5d9cc135292a286c323cd88c90bca6eaf | 1,495 | ex | Elixir | lib/api/graphql/resolvers.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | lib/api/graphql/resolvers.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | lib/api/graphql/resolvers.ex | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.GraphQL.Resolvers do
alias Absinthe.Relay.Connection
alias Api.Repo
alias Api.GraphQL.Errors
alias Api.GraphQL.EctoExtensions
def by_id(type) when is_atom(type) do
fn %{id: id}, _info ->
{:ok, type |> Repo.get(id)}
end
end
def by_attr(type, _attr) when is_atom(type) do
fn... | 19.933333 | 61 | 0.6 |
9e1bc9d50edaff4ce7a0edefa6de05b69a05b4e0 | 690 | ex | Elixir | debian/preinst.ex | flu0r1ne/nebula | aaf1c92d38d38defd88fa3755a2dabd2d0d9094a | [
"MIT"
] | null | null | null | debian/preinst.ex | flu0r1ne/nebula | aaf1c92d38d38defd88fa3755a2dabd2d0d9094a | [
"MIT"
] | null | null | null | debian/preinst.ex | flu0r1ne/nebula | aaf1c92d38d38defd88fa3755a2dabd2d0d9094a | [
"MIT"
] | null | null | null | #!/bin/sh
# preinst script for nebula
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, ... | 19.166667 | 63 | 0.627536 |
9e1c6fd915abfee5cb4513dfa973a3731bc20b52 | 2,283 | ex | Elixir | clients/playable_locations/lib/google_api/playable_locations/v3/model/google_maps_playablelocations_v3_impression.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/playable_locations/lib/google_api/playable_locations/v3/model/google_maps_playablelocations_v3_impression.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/playable_locations/lib/google_api/playable_locations/v3/model/google_maps_playablelocations_v3_impression.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... | 39.362069 | 469 | 0.742882 |
9e1c76b7bb4af06c95ccbb92d75f69a6bf7baa6e | 74,595 | ex | Elixir | data/web/deps/postgrex/lib/postgrex/protocol.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/postgrex/lib/postgrex/protocol.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/postgrex/lib/postgrex/protocol.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Protocol do
@moduledoc false
alias Postgrex.Types
alias Postgrex.Query
alias Postgrex.Stream
import Postgrex.Messages
import Postgrex.BinaryUtils
require Logger
@behaviour DBConnection
@timeout 5000
@sock_opts [packet: :raw, mode: :binary, active: false]
@max_packet 64 * 1024 ... | 36.281615 | 108 | 0.612052 |
9e1c868f1f3b00ec7ddfbc734e1a915af68f45a7 | 167 | ex | Elixir | lib/scrip/error.ex | maartenvanvliet/scrip | cb2a69f12a6a086b03cc131902014241392901c4 | [
"MIT"
] | 2 | 2021-03-24T11:51:53.000Z | 2021-05-16T14:13:20.000Z | lib/scrip/error.ex | maartenvanvliet/scrip | cb2a69f12a6a086b03cc131902014241392901c4 | [
"MIT"
] | 14 | 2020-12-28T04:13:47.000Z | 2022-03-24T04:04:53.000Z | lib/scrip/error.ex | maartenvanvliet/scrip | cb2a69f12a6a086b03cc131902014241392901c4 | [
"MIT"
] | null | null | null | defmodule Scrip.Error do
@type t :: %__MODULE__{
status_code: integer,
message: String.t()
}
defexception [:status_code, :message]
end
| 20.875 | 39 | 0.60479 |
9e1c8d318d771454c96bd649e0e00f867fe78d6b | 1,119 | ex | Elixir | test/support/channel_case.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 538 | 2022-02-02T21:46:52.000Z | 2022-03-29T20:50:34.000Z | test/support/channel_case.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 48 | 2022-02-03T11:46:09.000Z | 2022-03-31T04:44:53.000Z | test/support/channel_case.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 15 | 2022-02-03T05:55:14.000Z | 2022-02-28T11:09:03.000Z | defmodule MediaServerWeb.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 interac... | 30.243243 | 92 | 0.741734 |
9e1c98a94f5b44f67903d166fd80ad20c8f0f4c9 | 3,690 | ex | Elixir | snake/lib/model/point.ex | Krajzys/Snakelixir | f369408da254115037009c89abc2dfb5924b792e | [
"MIT"
] | null | null | null | snake/lib/model/point.ex | Krajzys/Snakelixir | f369408da254115037009c89abc2dfb5924b792e | [
"MIT"
] | 2 | 2021-05-15T11:28:20.000Z | 2021-06-02T09:21:58.000Z | snake/lib/model/point.ex | Krajzys/Snakelixir | f369408da254115037009c89abc2dfb5924b792e | [
"MIT"
] | 1 | 2021-06-02T09:23:03.000Z | 2021-06-02T09:23:03.000Z | defmodule Model.Point do
defstruct [
color: :red,
coordinates: {0, 0}
]
def new(options \\ []) do
__struct__(options)
end
def new_random(board_width, board_height, points_taken) do
%__MODULE__{ # HM? czy module dziala
color: random_color(),
coordinates: random_coordinates(board_w... | 28.828125 | 158 | 0.624932 |
9e1c9ee88271700f728b1c8a2410c8fd312f300e | 1,949 | exs | Elixir | backend/config/test.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/config/test.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/config/test.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :honeyland, Honeyland.Repo,
username: "postgres",
password: "postgres",
database: "honeyland_test#{Syst... | 38.98 | 96 | 0.811185 |
9e1ccc40b6cbd7b57204a2b647ec85c8d638e17d | 155 | ex | Elixir | web/views/twitter_follower_history_view.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | 5 | 2015-11-07T11:27:08.000Z | 2017-06-23T00:54:20.000Z | web/views/twitter_follower_history_view.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | web/views/twitter_follower_history_view.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | defmodule SanaServerPhoenix.TwitterFollowerHistoryView do
use SanaServerPhoenix.Web, :view
def render("index.json", %{msg: msg}) do
msg
end
end
| 17.222222 | 57 | 0.748387 |
9e1cda12bbb3e26b8d41b7b45498640ecbd2b537 | 808 | exs | Elixir | test/exquickbooks/api/account_test.exs | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | test/exquickbooks/api/account_test.exs | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | test/exquickbooks/api/account_test.exs | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | defmodule ExQuickBooks.API.AccountTest do
use ExUnit.Case, async: false
use ExQuickBooks.APICase
alias ExQuickBooks.API.Account
alias ExQuickBooks.OAuth.Credentials
doctest Account
@creds %Credentials{
realm_id: "realm_id",
token: "token"
}
test "read_account/3 retrieves an account" do
l... | 25.25 | 81 | 0.69802 |
9e1cdc974253c22946f9f96c1bf200155d4d2518 | 1,162 | exs | Elixir | clients/o_auth2/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/o_auth2/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/o_auth2/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.OAuth2.V2.Mixfile do
use Mix.Project
@version "0.4.0"
def project do
[app: :google_api_o_auth2,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
dep... | 23.714286 | 107 | 0.591222 |
9e1ce445bfa352522ab45db9164253384e85581f | 1,127 | ex | Elixir | lib/opus/safe.ex | hubertlepicki/opus | e1568bc81f678529e812455534ea663bb1ab4394 | [
"MIT"
] | 303 | 2018-09-11T10:19:01.000Z | 2022-03-11T00:57:44.000Z | lib/opus/safe.ex | hubertlepicki/opus | e1568bc81f678529e812455534ea663bb1ab4394 | [
"MIT"
] | 24 | 2018-09-26T10:38:05.000Z | 2021-09-29T12:51:28.000Z | lib/opus/safe.ex | hubertlepicki/opus | e1568bc81f678529e812455534ea663bb1ab4394 | [
"MIT"
] | 16 | 2018-10-05T18:54:18.000Z | 2022-02-19T18:59:45.000Z | defmodule Opus.Safe do
@moduledoc false
import Kernel, except: [apply: 2, apply: 3]
def apply(term), do: apply(term, %{})
def apply({_m, nil, _a}, _), do: nil
def apply({m, f, a}, opts) do
Kernel.apply(m, f, a)
rescue
e -> handle_exception({e, System.stacktrace()}, opts)
end
def apply(fun, ... | 24.5 | 96 | 0.64685 |
9e1ce4fa242bf415d228b332b562771e0efc7dc2 | 1,058 | ex | Elixir | lib/price_tracker/application.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | lib/price_tracker/application.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | lib/price_tracker/application.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | defmodule PriceTracker.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository... | 33.0625 | 90 | 0.723062 |
9e1d1ddecb7920445663d25e720819d991193d62 | 6,165 | ex | Elixir | lib/base32_crockford.ex | faried/base32_crockford | 3f815273818212c94c43a1a233ead2a1a80c3a83 | [
"MIT"
] | null | null | null | lib/base32_crockford.ex | faried/base32_crockford | 3f815273818212c94c43a1a233ead2a1a80c3a83 | [
"MIT"
] | null | null | null | lib/base32_crockford.ex | faried/base32_crockford | 3f815273818212c94c43a1a233ead2a1a80c3a83 | [
"MIT"
] | null | null | null | defmodule Base32Crockford do
@moduledoc ~S"""
Base32-Crockford: base-32 encoding for expressing integer numbers
in a form that can be conveniently and accurately transmitted
between humans and computer systems.
[https://www.crockford.com/wrmg/base32.html](https://www.crockford.com/wrmg/base32.html)
A symb... | 27.522321 | 90 | 0.657583 |
9e1d7f637368227b44fa5b92389b125b31658edf | 4,431 | ex | Elixir | lib/talib/bollinger_band.ex | buurzx/talib | 9341dafd2dc0aa14c34b659b82375723ff5a37fc | [
"MIT"
] | null | null | null | lib/talib/bollinger_band.ex | buurzx/talib | 9341dafd2dc0aa14c34b659b82375723ff5a37fc | [
"MIT"
] | null | null | null | lib/talib/bollinger_band.ex | buurzx/talib | 9341dafd2dc0aa14c34b659b82375723ff5a37fc | [
"MIT"
] | 1 | 2021-04-29T22:14:28.000Z | 2021-04-29T22:14:28.000Z | defmodule Talib.BollingerBand do
alias Talib.SMA
alias Talib.Average
require OK
require Logger
@moduledoc ~S"""
Defines a Bollinger bands.
## History
Version: 1.0
https://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:bollinger_bands
Audited by:
| Name | Title ... | 29.151316 | 95 | 0.581584 |
9e1d829972c57a40edf809f992b5068e63a9ebc6 | 538 | ex | Elixir | lib/rocketpay_web/views/users_view.ex | lucascprazeres/rocketpay | 1717d1882b089061990c3cf9b0646839f99e935a | [
"MIT"
] | 2 | 2021-02-26T13:03:29.000Z | 2021-02-28T17:08:22.000Z | lib/rocketpay_web/views/users_view.ex | lucascprazeres/rocketpay | 1717d1882b089061990c3cf9b0646839f99e935a | [
"MIT"
] | null | null | null | lib/rocketpay_web/views/users_view.ex | lucascprazeres/rocketpay | 1717d1882b089061990c3cf9b0646839f99e935a | [
"MIT"
] | 3 | 2021-02-22T19:26:18.000Z | 2021-03-22T13:10:53.000Z | defmodule RocketpayWeb.UsersView do
alias Rocketpay.{User, Account}
def render("create.json", %{
user: %User{
id: id,
name: name,
nickname: nickname,
account: %Account{
id: account_id,
balance: balance
}
}
}) do
%{
... | 18.551724 | 35 | 0.451673 |
9e1d9ff8f4420fe11b1d10019981e15037e3419a | 1,657 | ex | Elixir | ros/ros_ui_admin/lib/ros_ui_admin_web.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_admin/lib/ros_ui_admin_web.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_admin/lib/ros_ui_admin_web.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.AdminWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use Ros.AdminWeb, :controller
use Ros.AdminWeb, :view
The definitions below will be executed for every view,
contro... | 23.671429 | 83 | 0.687387 |
9e1dadbbd78149950abfb218a302386d809ee9e4 | 90 | exs | Elixir | test/from_the_ashes_web/views/page_view_test.exs | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | test/from_the_ashes_web/views/page_view_test.exs | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | 1 | 2021-03-09T22:08:11.000Z | 2021-03-09T22:08:11.000Z | test/from_the_ashes_web/views/page_view_test.exs | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | defmodule FromTheAshesWeb.PageViewTest do
use FromTheAshesWeb.ConnCase, async: true
end
| 22.5 | 43 | 0.844444 |
9e1de1f19f6bd8685e8a49d9b6999285172d399e | 2,199 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/resource_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/resource_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/resource_info.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... | 37.271186 | 138 | 0.714416 |
9e1dee27d06230064a46763f8bde857d4d95d0af | 206 | exs | Elixir | .credo.exs | Madumo/credo_demo_plugin | 7e746666e8412388a8d351c7fc2a3a4bab3cf788 | [
"MIT"
] | null | null | null | .credo.exs | Madumo/credo_demo_plugin | 7e746666e8412388a8d351c7fc2a3a4bab3cf788 | [
"MIT"
] | null | null | null | .credo.exs | Madumo/credo_demo_plugin | 7e746666e8412388a8d351c7fc2a3a4bab3cf788 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
requires: ["lib/"],
checks: [
{Credo.Check.Readability.ModuleDoc, false},
{CredoDemoPlugin.BetterModuleDoc, []}
]
}
]
}
| 15.846154 | 51 | 0.485437 |
9e1e3bd80e7f06591f1c7e8321116d577689ff8e | 3,913 | exs | Elixir | lib/elixir/test/elixir/process_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/test/elixir/process_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/test/elixir/process_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule ProcessTest do
use ExUnit.Case, async: true
doctest Process
test "dictionary" do
assert Process.put(:foo, :bar) == nil
assert Process.put(:foo, :baz) == :bar
assert Enum.member?(Process.get_keys(), :foo)
refute Enum.member?(Process.get_ke... | 31.304 | 84 | 0.671352 |
9e1e4def41db93cfeaec7596ec87ecb9980eb31e | 17 | ex | Elixir | testData/org/elixir_lang/parser_definition/literal_words_line_parsing_test_case/Braces.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/literal_words_line_parsing_test_case/Braces.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/literal_words_line_parsing_test_case/Braces.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~W{{\}[]<>"/()|'} | 17 | 17 | 0.058824 |
9e1e6cccf08b593a7bd14b0e221f1d2d8e9966da | 299 | exs | Elixir | .credo.exs | Ovyerus/vexil | 48d408efe8520fb8c90639aff51fa134d57876a0 | [
"MIT"
] | 9 | 2021-09-01T13:29:23.000Z | 2021-09-06T03:15:46.000Z | .credo.exs | Ovyerus/vexil | 48d408efe8520fb8c90639aff51fa134d57876a0 | [
"MIT"
] | null | null | null | .credo.exs | Ovyerus/vexil | 48d408efe8520fb8c90639aff51fa134d57876a0 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "priv/", "test/"],
excluded: []
},
color: true,
checks: [
{Credo.Check.Refactor.CyclomaticComplexity, false},
{Credo.Check.Refactor.Nesting, false}
]
}
]
}
| 17.588235 | 59 | 0.461538 |
9e1f1c5fafb16c77a75ae2760afce5441c1cb1fe | 1,278 | exs | Elixir | mix.exs | h3poteto/slack_logger_backend | 537aee5328963d5f4b8d22c48a932d9e0a09f501 | [
"MIT"
] | 34 | 2016-03-02T12:15:01.000Z | 2020-06-22T02:13:06.000Z | mix.exs | h3poteto/slack_logger_backend | 537aee5328963d5f4b8d22c48a932d9e0a09f501 | [
"MIT"
] | 6 | 2016-06-03T18:05:01.000Z | 2022-02-07T08:20:39.000Z | mix.exs | h3poteto/slack_logger_backend | 537aee5328963d5f4b8d22c48a932d9e0a09f501 | [
"MIT"
] | 14 | 2016-03-08T09:40:20.000Z | 2022-01-28T08:46:11.000Z | defmodule SlackLoggerBackend.Mixfile do
use Mix.Project
def project do
[
app: :slack_logger_backend,
description: "A logger backend for posting errors to Slack.",
version: "0.1.19",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
test... | 26.625 | 98 | 0.537559 |
9e1f315b9b2eebfb62b1b1a6a69e04e2bab52cc4 | 87 | ex | Elixir | lib/reason_react_exercise_web/views/layout_view.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | lib/reason_react_exercise_web/views/layout_view.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | lib/reason_react_exercise_web/views/layout_view.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | defmodule ReasonReactExerciseWeb.LayoutView do
use ReasonReactExerciseWeb, :view
end
| 21.75 | 46 | 0.862069 |
9e1f541e72521fc69aadcf4aea94e5f22746bf48 | 580 | exs | Elixir | test/lib/canvas_api/base62_uuid_field_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | test/lib/canvas_api/base62_uuid_field_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | test/lib/canvas_api/base62_uuid_field_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.Base62UUIDFieldTest do
use ExUnit.Case, async: true
alias CanvasAPI.Base62UUIDField
test ".type is a string" do
assert Base62UUIDField.type == :string
end
test ".cast casts to a string" do
assert Base62UUIDField.cast(1) == {:ok, "1"}
end
test ".dump dumps the value" do
... | 22.307692 | 60 | 0.689655 |
9e1f5eb5ccca5ca2142b11ccf82f7dae0b353380 | 761 | ex | Elixir | lib/ref_web/live/comment_live/index.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | lib/ref_web/live/comment_live/index.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | lib/ref_web/live/comment_live/index.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | defmodule RefWeb.CommentLive.Index do
use RefWeb, :live_view
alias Ref.Timeline
alias Ref.Timeline.Post
alias Ref.Users
alias Pow.Plug.Session
alias RefWeb.SocketAuth
alias Plug.Conn
alias Pow.CredentialsCache
alias Ref.Timeline.Comment
@impl true
def mount(%{"post_id" => post_id} =_params,%{"c... | 20.567568 | 98 | 0.701708 |
9e1f72f0d5a5843331987475ee1c89184f2ceaf6 | 896 | ex | Elixir | clients/policy_simulator/lib/google_api/policy_simulator/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/policy_simulator/lib/google_api/policy_simulator/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/policy_simulator/lib/google_api/policy_simulator/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.185185 | 74 | 0.762277 |
9e1f78a38b4eb80c3ecc1a2162f798bfcb667955 | 894 | ex | Elixir | lib/slacker/web_api.ex | yalabot/slacker | 3cf4f61c9aa9d74837859568937e171b6a5ba4b3 | [
"MIT"
] | 1 | 2016-07-30T10:56:24.000Z | 2016-07-30T10:56:24.000Z | lib/slacker/web_api.ex | yalabot/slacker | 3cf4f61c9aa9d74837859568937e171b6a5ba4b3 | [
"MIT"
] | null | null | null | lib/slacker/web_api.ex | yalabot/slacker | 3cf4f61c9aa9d74837859568937e171b6a5ba4b3 | [
"MIT"
] | 1 | 2016-11-16T16:35:13.000Z | 2016-11-16T16:35:13.000Z | defmodule Slacker.WebAPI do
require Logger
use HTTPoison.Base
@url_base Application.get_env(:slacker, :url_base) || "https://slack.com/api/"
def post(path, body, headers \\ [], hackney_opts \\ [ssl: [{:versions, [:'tlsv1.2']}]]) do
path
|> super(body, headers, hackney_opts)
|> check_response
end... | 24.833333 | 92 | 0.611857 |
9e1f96f8c0b3f7b8aad42158b392ae1fdd5ba2b0 | 1,202 | exs | Elixir | config/prod.secret.exs | holsee/odd_job | 299117ef7cc5c67e8dbe1fc1f47253ff1cda4b2d | [
"MIT"
] | 2 | 2019-09-15T22:55:28.000Z | 2020-01-12T17:39:27.000Z | config/prod.secret.exs | holsee/odd_job | 299117ef7cc5c67e8dbe1fc1f47253ff1cda4b2d | [
"MIT"
] | 2 | 2021-03-09T16:37:48.000Z | 2021-05-10T12:02:31.000Z | config/prod.secret.exs | holsee/odd_job | 299117ef7cc5c67e8dbe1fc1f47253ff1cda4b2d | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 30.820513 | 76 | 0.725458 |
9e1fb3d6f073f7a0f4e0039d944dc5282e31fea5 | 2,666 | ex | Elixir | clients/games/lib/google_api/games/v1/model/turn_based_match_create_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/turn_based_match_create_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/turn_based_match_create_request.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... | 45.186441 | 250 | 0.731058 |
9e1fb64861cd93792c74d40899a59b3d850daf5d | 621 | ex | Elixir | lib/mastani_server_web/middleware/force_loader.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server_web/middleware/force_loader.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server_web/middleware/force_loader.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServerWeb.Middleware.ForceLoader do
@moduledoc """
# this is a tmp solution for load related-users like situations
# it turn dataloader into nomal N+1 resolver
# NOTE: it should be replaced using "Select-Top-N-By-Group" solution
"""
@behaviour Absinthe.Middleware
def call(%{source: %{id:... | 28.227273 | 85 | 0.700483 |
9e1fbfe7c79ef033dfd81bbd82d7d0aedf1cd153 | 2,588 | exs | Elixir | mix.exs | ne1ro/tracker_bot | 2dc96c0a8366dbd51e4e5e7b2a54383483c8c774 | [
"MIT"
] | 2 | 2019-10-06T18:08:28.000Z | 2020-05-05T11:58:32.000Z | mix.exs | ne1ro/tracker_bot | 2dc96c0a8366dbd51e4e5e7b2a54383483c8c774 | [
"MIT"
] | 66 | 2017-09-16T08:44:33.000Z | 2021-08-01T07:15:50.000Z | mix.exs | ne1ro/tracker_bot | 2dc96c0a8366dbd51e4e5e7b2a54383483c8c774 | [
"MIT"
] | null | null | null | defmodule TrackerBot.Mixfile do
use Mix.Project
def project do
[
app: :tracker_bot,
version: "0.5.2",
elixir: "~> 1.5",
name: "Tracker Bot",
homepage_url: "https://github.com/ne1ro/tracker_bot",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
... | 27.242105 | 86 | 0.534389 |
9e1fde6082a4eae163a6f128a9e9e291aaf73e82 | 469 | exs | Elixir | test/models/participation_test.exs | birkand/remote_retro | f7fef13aa8779cd4a8a9fd73d2fbbd5ae537634c | [
"MIT"
] | null | null | null | test/models/participation_test.exs | birkand/remote_retro | f7fef13aa8779cd4a8a9fd73d2fbbd5ae537634c | [
"MIT"
] | null | null | null | test/models/participation_test.exs | birkand/remote_retro | f7fef13aa8779cd4a8a9fd73d2fbbd5ae537634c | [
"MIT"
] | null | null | null | defmodule RemoteRetro.ParticipationTest do
use RemoteRetro.ModelCase, async: true
alias RemoteRetro.Participation
test "user_id and retro_id are required" do
changeset = Participation.changeset(%Participation{})
{ user_id_error, _ } = Keyword.fetch!(changeset.errors, :user_id)
{ retro_id_error, _ }... | 29.3125 | 71 | 0.733475 |
9e1fef624cfb6c89c8df71ff829326e84bb53324 | 1,676 | exs | Elixir | test/chess/moves/pieces/queen_test.exs | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 30 | 2018-06-16T00:41:59.000Z | 2021-03-05T08:39:02.000Z | test/chess/moves/pieces/queen_test.exs | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 221 | 2018-01-15T20:33:13.000Z | 2022-02-16T00:53:35.000Z | test/chess/moves/pieces/queen_test.exs | danbee/chess | c766ecb63ed15cd4a5c7ce4b503641d0222fb69d | [
"MIT"
] | 5 | 2018-02-20T17:25:19.000Z | 2018-12-29T00:09:30.000Z | defmodule Chess.Moves.Pieces.QueenTest do
use Chess.DataCase
alias Chess.Moves
test "queens can move in any direction" do
board = %{"4,5" => %{"type" => "queen", "colour" => "white"}}
moves = Moves.available(board, {4, 5})
expected_moves = Enum.sort([
{4, 0}, {4, 1}, {4, 2}, {4, 3}, {4, 4}, {... | 30.472727 | 66 | 0.449881 |
9e201e621a323d07dcb5556497d08c473f271032 | 5,942 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_asset_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_asset_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creative_asset_metadata.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... | 55.018519 | 328 | 0.723662 |
9e20218c45f5c1ee39564c659da4410bd5304431 | 2,002 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_undeploy_processor_version_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_undeploy_processor_version_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_undeploy_processor_version_metadata.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... | 34.517241 | 193 | 0.771229 |
9e2046b59d498a34c8e7442c5666ae302e7fce21 | 2,441 | ex | Elixir | lib/logz/nginx.ex | rciorba/logz | a31250884b703a5e69e40691b075ad56ab0c4fc1 | [
"Unlicense"
] | null | null | null | lib/logz/nginx.ex | rciorba/logz | a31250884b703a5e69e40691b075ad56ab0c4fc1 | [
"Unlicense"
] | null | null | null | lib/logz/nginx.ex | rciorba/logz | a31250884b703a5e69e40691b075ad56ab0c4fc1 | [
"Unlicense"
] | null | null | null | defmodule Logz.Nginx do
@moduledoc """
Implements a Stream that reads from files and emits maps.
"""
require Logger
defp parse_month(str) do
case str do
"Jan" -> 1
"Feb" -> 2
"Mar" -> 3
"Apr" -> 4
"May" -> 5
"Jun" -> 6
"Jul" -> 7
"Aug" -> 8
"Sep" -> ... | 22.813084 | 90 | 0.477263 |
9e205595030d96bd25aa8c766f5c28c7e301054e | 307 | exs | Elixir | priv/repo/migrations/20180509130623_create_users.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 37 | 2018-07-13T14:08:16.000Z | 2021-04-09T15:00:22.000Z | priv/repo/migrations/20180509130623_create_users.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 9 | 2018-07-16T15:24:39.000Z | 2021-09-01T14:21:20.000Z | priv/repo/migrations/20180509130623_create_users.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 3 | 2018-10-05T20:19:25.000Z | 2019-12-05T00:30:01.000Z | defmodule Planga.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :remote_id, :string
add :app_id, references(:apps)
timestamps()
end
create index(:users, [:app_id, :remote_id], unique: true)
end
end
| 19.1875 | 61 | 0.654723 |
9e206e1095db2cc96e03aaee4101f94b07aeb2e3 | 203 | exs | Elixir | priv/repo/migrations/20210307143553_add_unique_index_to_profile_id_in_account_opening_requests.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | priv/repo/migrations/20210307143553_add_unique_index_to_profile_id_in_account_opening_requests.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | priv/repo/migrations/20210307143553_add_unique_index_to_profile_id_in_account_opening_requests.exs | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | defmodule Magnemite.Repo.Migrations.AddUniqueIndexToProfileIdInAccountOpeningRequests do
use Ecto.Migration
def change do
create unique_index(:account_opening_requests, [:profile_id])
end
end
| 25.375 | 88 | 0.827586 |
9e20827fe73802ccf9b040a585f4f1d248961567 | 882 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.666667 | 74 | 0.758503 |
9e20dea07a55b073a5907c33eab48e69cf97f945 | 656 | ex | Elixir | recallr/lib/recallr_web/live/modal_component.ex | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | null | null | null | recallr/lib/recallr_web/live/modal_component.ex | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | 1 | 2021-03-24T14:49:29.000Z | 2021-03-24T14:49:29.000Z | recallr/lib/recallr_web/live/modal_component.ex | myfoundea/liveview_march_2021 | 8aef6225271bbc8e9985746505d74dc850f295fb | [
"MIT"
] | 5 | 2021-03-21T19:45:38.000Z | 2021-03-24T14:53:07.000Z | defmodule RecallrWeb.ModalComponent do
use RecallrWeb, :live_component
@impl true
def render(assigns) do
~L"""
<div id="<%= @id %>" class="phx-modal"
phx-capture-click="close"
phx-window-keydown="close"
phx-key="escape"
phx-target="#<%= @id %>"
phx-page-loading>
<div ... | 24.296296 | 82 | 0.592988 |
9e2113449144a45dbc30b2388ba6530e0e169cc4 | 2,648 | ex | Elixir | lib/exq/enqueuer/server.ex | blueshift-labs/exq | 57973ec3e83f9a505fc83385b645bf2e658b8cdd | [
"Apache-2.0"
] | null | null | null | lib/exq/enqueuer/server.ex | blueshift-labs/exq | 57973ec3e83f9a505fc83385b645bf2e658b8cdd | [
"Apache-2.0"
] | null | null | null | lib/exq/enqueuer/server.ex | blueshift-labs/exq | 57973ec3e83f9a505fc83385b645bf2e658b8cdd | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Enqueuer.Server do
@moduledoc """
The Enqueuer is responsible for enqueueing jobs into Redis. It can
either be called directly by the client, or instantiated as a standalone process.
It supports enqueuing immediate jobs, or scheduling jobs in the future.
## Initialization:
* `:name` - Name... | 29.752809 | 93 | 0.659366 |
9e213019d4270655c93380ef55db074790c52b4b | 2,078 | ex | Elixir | lib/codes/codes_k86.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_k86.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_k86.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_K86 do
alias IcdCode.ICDCode
def _K860 do
%ICDCode{full_code: "K860",
category_code: "K86",
short_code: "0",
full_name: "Alcohol-induced chronic pancreatitis",
short_name: "Alcohol-induced chronic pancreatitis",
category_name: "Alc... | 29.685714 | 63 | 0.602502 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.