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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ae8da766c882971be65f4149fb62c69b58bc342 | 2,210 | ex | Elixir | lib/nano_ci/builder/runner.ex | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | null | null | null | lib/nano_ci/builder/runner.ex | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | 2 | 2021-03-10T07:07:31.000Z | 2021-05-11T02:49:06.000Z | lib/nano_ci/builder/runner.ex | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | null | null | null | defmodule NanoCi.Builder.Runner do
alias NanoCi.Build
alias NanoCi.GitRepo
alias NanoCi.Builder.Docker
alias NanoCi.StatusWriter
use Task
def start_link(repo = %GitRepo{}, build = %Build{}) do
ref = start_container(repo, build)
{:ok, pid} = Task.start_link(__MODULE__, :run, [ref, repo, build])
... | 23.020833 | 73 | 0.584163 |
1ae8e4036cfd3cebb24a9f335495e40fe35c1a30 | 537 | ex | Elixir | lib/phoenix_chat_web/router.ex | gmlewis/phoenix_chat | 536662f94016a9bf44a6ffca91b7653f82350185 | [
"Apache-2.0"
] | 3 | 2019-02-11T13:01:49.000Z | 2019-03-31T10:58:15.000Z | lib/phoenix_chat_web/router.ex | gmlewis/phoenix_chat | 536662f94016a9bf44a6ffca91b7653f82350185 | [
"Apache-2.0"
] | null | null | null | lib/phoenix_chat_web/router.ex | gmlewis/phoenix_chat | 536662f94016a9bf44a6ffca91b7653f82350185 | [
"Apache-2.0"
] | 1 | 2019-03-31T10:58:18.000Z | 2019-03-31T10:58:18.000Z | defmodule PhoenixChatWeb.Router do
use PhoenixChatWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", PhoenixChatWeb ... | 19.888889 | 57 | 0.689013 |
1ae97d987519a6695b5386f06b216f63665bcc4a | 197 | ex | Elixir | lib/hl7/2.3/datatypes/cm_dld.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/cm_dld.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/cm_dld.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.DataTypes.Cmdld do
@moduledoc false
alias HL7.V2_3.{DataTypes}
use HL7.DataType,
fields: [
discharge_location: nil,
effective_date: DataTypes.Ts
]
end
| 17.909091 | 37 | 0.690355 |
1ae983b17bdd479aceb1c5379c01d617415d62db | 5,125 | ex | Elixir | lib/exwordnet/lemma.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 3 | 2020-03-31T11:48:26.000Z | 2020-12-08T14:47:24.000Z | lib/exwordnet/lemma.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 23 | 2019-04-23T04:56:30.000Z | 2021-08-11T08:20:30.000Z | lib/exwordnet/lemma.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | null | null | null | defmodule ExWordNet.Lemma do
@moduledoc """
Provides abstraction over a single word in the WordNet lexicon,
which can be used to look up a set of synsets.
Struct members:
- `:word`: The word this lemma represents.
- `:part_of_speech`: The part of speech (noun, verb, adjective) of this lemma.
- `:synset_o... | 33.496732 | 101 | 0.654634 |
1ae9c51dda57dd0b34a27806241c2ea640664b4d | 14,086 | exs | Elixir | test/integration/prepare_test.exs | sb8244/ecto_tenancy_enforcer | 7dac523d0560ec4a57bcf3800b788d312d70d6e6 | [
"MIT"
] | 36 | 2019-12-30T23:02:59.000Z | 2022-03-26T14:38:41.000Z | test/integration/prepare_test.exs | sb8244/ecto_tenancy_enforcer | 7dac523d0560ec4a57bcf3800b788d312d70d6e6 | [
"MIT"
] | 1 | 2021-01-13T05:01:04.000Z | 2021-01-13T05:01:04.000Z | test/integration/prepare_test.exs | sb8244/ecto_tenancy_enforcer | 7dac523d0560ec4a57bcf3800b788d312d70d6e6 | [
"MIT"
] | 1 | 2021-04-25T16:50:16.000Z | 2021-04-25T16:50:16.000Z | defmodule Integration.PrepareTest do
use Tenancy.DataCase, async: true
alias Tenancy.{Alternate, Company, UnenforcedResource, Person}
alias Tenancy.Repo, as: Repo
alias EctoTenancyEnforcer.TenancyViolation
setup do
assert {:ok, company} = Repo.insert(%Company{tenant_id: 1, name: "mine"})
assert {:ok... | 29.780127 | 112 | 0.587818 |
1ae9c94bd869a703d29a7d78360079eb895f7554 | 1,083 | ex | Elixir | test/support/channel_case.ex | mateuscosta86/blog | 3ee4596bfbd0f0681041cb0d50ab4baccc7b571e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | mateuscosta86/blog | 3ee4596bfbd0f0681041cb0d50ab4baccc7b571e | [
"MIT"
] | 3 | 2021-12-30T20:43:08.000Z | 2021-12-31T19:51:04.000Z | test/support/channel_case.ex | mateuscosta86/blog | 3ee4596bfbd0f0681041cb0d50ab4baccc7b571e | [
"MIT"
] | null | null | null | defmodule BlogWeb.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 interacts with... | 27.769231 | 67 | 0.731302 |
1ae9e87d4b50b682a78db15d986a0846edf89f57 | 2,123 | ex | Elixir | lib/yamlix/presentation.ex | malgasm/yamlix | 3176bc1a16f0f00572a2479c6547e17182fe9adb | [
"MIT"
] | null | null | null | lib/yamlix/presentation.ex | malgasm/yamlix | 3176bc1a16f0f00572a2479c6547e17182fe9adb | [
"MIT"
] | null | null | null | lib/yamlix/presentation.ex | malgasm/yamlix | 3176bc1a16f0f00572a2479c6547e17182fe9adb | [
"MIT"
] | null | null | null | defmodule Presentation do
alias RepresentationGraph.Node
def present(tree) do
"--- " <>
produce(tree) <>
"...\n"
end
defp produce(%Node{value: list, tag: t}) when is_list(list) do
block_sequence(%Node{value: list, tag: t}, 0)
end
defp produce(%Node{value: map, tag: t}) when is_map(map) d... | 26.5375 | 76 | 0.579369 |
1ae9edb8312c8277610cb987a1ffbb6e9f3c04b8 | 2,048 | ex | Elixir | lib/cortex.ex | axelson/cortex | 9a6b6bb59d3936d639644792f9661dbfe2ad9955 | [
"MIT"
] | 406 | 2017-06-23T23:44:28.000Z | 2022-01-11T14:07:22.000Z | lib/cortex.ex | urbint/sentinel | b2897306c6cda6683c80b3d4b24cbcdfd5bedd60 | [
"MIT"
] | 33 | 2017-06-25T01:59:25.000Z | 2021-05-15T13:34:02.000Z | lib/cortex.ex | dmitrykleymenov/cortex | b2897306c6cda6683c80b3d4b24cbcdfd5bedd60 | [
"MIT"
] | 20 | 2017-06-24T20:48:58.000Z | 2021-05-15T05:39:48.000Z | defmodule Cortex do
@moduledoc """
Documentation for Cortex.
## Features
Cortex runs along side your elixir application.
### Reload
Once added to your dependencies, it will startup automatically
when you run `iex -S mix`.
```
$ iex -S mix
```
A file-watcher will keep an eye on any chan... | 25.6 | 94 | 0.693848 |
1aea036aa3981f9821c841a1723b703397f12661 | 60 | ex | Elixir | lib/fatex_web/views/home_view.ex | vinicius-molina/FaTex | bbc05acef7a9697efe9ec0fe64511bce9f26a9b3 | [
"Apache-2.0"
] | 3 | 2019-12-08T19:42:39.000Z | 2020-03-17T13:02:56.000Z | lib/fatex_web/views/home_view.ex | vinicius-molina/FaTex | bbc05acef7a9697efe9ec0fe64511bce9f26a9b3 | [
"Apache-2.0"
] | 1 | 2021-03-09T19:49:41.000Z | 2021-03-09T19:49:41.000Z | lib/fatex_web/views/home_view.ex | vinicius-molina/FaTex | bbc05acef7a9697efe9ec0fe64511bce9f26a9b3 | [
"Apache-2.0"
] | 1 | 2019-12-08T19:42:42.000Z | 2019-12-08T19:42:42.000Z | defmodule FatexWeb.HomeView do
use FatexWeb, :view
end
| 12 | 30 | 0.75 |
1aea0a08be61799f6038aa97b5eca5787842d014 | 280 | ex | Elixir | lib/auth/error_handler.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/auth/error_handler.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/auth/error_handler.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.Auth.ErrorHandler do
alias Guardian.Plug.ErrorHandler
alias Plug.Conn
@behaviour ErrorHandler
def auth_error(conn, {error, _reason}, _opts) do
body = Jason.encode!(%{message: to_string(error)})
Conn.send_resp(conn, 401, body)
end
end
| 21.538462 | 54 | 0.735714 |
1aea1e458dff3accde0132b749be26c4379740af | 333 | ex | Elixir | lib/staff_notes_web/primer/box_body.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 1 | 2020-01-26T18:08:40.000Z | 2020-01-26T18:08:40.000Z | lib/staff_notes_web/primer/box_body.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 36 | 2017-12-23T20:22:07.000Z | 2018-05-10T09:16:59.000Z | lib/staff_notes_web/primer/box_body.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | null | null | null | defmodule StaffNotesWeb.Primer.BoxBody do
@moduledoc """
Represents a GitHub Primer Box body element.
"""
use StaffNotesWeb.Primer.Element, class: "Box-body"
defimpl Phoenix.HTML.Safe do
def to_iodata(%StaffNotesWeb.Primer.BoxBody{} = box_body) do
StaffNotesWeb.Primer.BoxBody.render(box_body)
e... | 25.615385 | 64 | 0.735736 |
1aea2579ce63310016418e3da31d1e9139d46cb8 | 1,606 | ex | Elixir | apps/tai/lib/tai/venue_adapters/ftx/create_order.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/ftx/create_order.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/ftx/create_order.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Ftx.CreateOrder do
@moduledoc """
Create orders for the FTX adapter
"""
alias Tai.Orders
def create_order(%Orders.Order{type: :limit} = order, credentials) do
venue_side = order.side |> to_venue_side()
venue_ioc = order.time_in_force |> to_venue_ioc()
venue_price = or... | 29.2 | 95 | 0.686177 |
1aea29df9a0692fb8ec7824536a6c05cfc42e77a | 427 | ex | Elixir | lib/blue_jet_web/views/billing_settings_view.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet_web/views/billing_settings_view.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet_web/views/billing_settings_view.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJetWeb.BalanceSettingsView do
use BlueJetWeb, :view
use JaSerializer.PhoenixView
attributes [
:stripe_user_id,
:stripe_livemode,
:stripe_access_token,
:stripe_refresh_token,
:stripe_publishable_key,
:stripe_scope,
:locale,
:inserted_at,
:updated_at
]
def typ... | 18.565217 | 62 | 0.681499 |
1aea3846cdf7b9c0d2ea4bdff55a59c39b0ed51c | 2,274 | ex | Elixir | benchmark/lib/benchmark/client_worker.ex | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 561 | 2019-03-18T09:10:57.000Z | 2022-03-27T17:34:59.000Z | benchmark/lib/benchmark/client_worker.ex | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 94 | 2019-03-20T09:34:38.000Z | 2022-02-27T20:44:04.000Z | benchmark/lib/benchmark/client_worker.ex | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 112 | 2019-03-25T03:27:26.000Z | 2022-03-21T12:43:59.000Z | defmodule Benchmark.ClientWorker do
require Logger
use GenServer
def init(args) do
send(self(), :start)
{:ok, args}
end
def handle_info(:start, {ch, %{rpc_type: rpc_type} = payload, manager}) do
case rpc_type do
:UNARY ->
unary_loop(ch, payload, manager)
:STREAMING ->
... | 26.137931 | 99 | 0.651715 |
1aea422d8bf2854132850a843550b045cc903174 | 1,656 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_run_test_case_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_run_test_case_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_run_test_case_request.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.846154 | 184 | 0.748792 |
1aea4cae057db5faaca4a78552b381528caaa682 | 833 | ex | Elixir | lib/fixme.ex | henrik/fixme-elixir | a076d4ca14416690909a118388ee3e60cbf135f4 | [
"Unlicense",
"MIT"
] | 46 | 2015-09-04T23:24:03.000Z | 2022-02-12T09:06:04.000Z | lib/fixme.ex | henrik/fixme-elixir | a076d4ca14416690909a118388ee3e60cbf135f4 | [
"Unlicense",
"MIT"
] | 2 | 2015-11-08T12:57:16.000Z | 2016-07-18T18:26:51.000Z | lib/fixme.ex | henrik/fixme-elixir | a076d4ca14416690909a118388ee3e60cbf135f4 | [
"Unlicense",
"MIT"
] | 3 | 2015-11-08T11:03:03.000Z | 2016-06-23T06:07:59.000Z | defmodule FIXME do
defmacro fixme(
{:-, _, [{:-, _, [year, month]}, day]},
message,
opts \\ []
) do
{opts, _} = Code.eval_quoted(opts)
# Injectable `today` for tests.
current_date = opts[:today] || (:calendar.local_time |> elem(0))
warn? =
case opts[:warn] do
nil -> Appl... | 23.8 | 76 | 0.546218 |
1aea58530a68db470b8e46da5dde121dc650744a | 1,201 | ex | Elixir | csc411/elixir/hw01/elixir-koans/lib/koans/02_strings.ex | rbranford/csc121 | 52aee4940fb01778670c25fb6180a8641e14949e | [
"CC0-1.0"
] | null | null | null | csc411/elixir/hw01/elixir-koans/lib/koans/02_strings.ex | rbranford/csc121 | 52aee4940fb01778670c25fb6180a8641e14949e | [
"CC0-1.0"
] | null | null | null | csc411/elixir/hw01/elixir-koans/lib/koans/02_strings.ex | rbranford/csc121 | 52aee4940fb01778670c25fb6180a8641e14949e | [
"CC0-1.0"
] | null | null | null | defmodule Strings do
use Koans
@intro "Strings"
koan "Strings are there to represent text" do
assert "hello" == "hello"
end
koan "Values may be inserted into strings by interpolation" do
assert "1 + 1 = #{1 + 1}" == "1 + 1 = 2"
end
koan "They can be put together" do
assert "hello world" ==... | 26.108696 | 87 | 0.657785 |
1aea63066f619279d395b0034571a851a30533ef | 148 | ex | Elixir | web/views/contact_view.ex | chrhsmt/hello_phoenix | 18c719cab56827847ddcf676df5141d1cf5e420b | [
"MIT"
] | null | null | null | web/views/contact_view.ex | chrhsmt/hello_phoenix | 18c719cab56827847ddcf676df5141d1cf5e420b | [
"MIT"
] | 1 | 2018-12-14T08:36:11.000Z | 2018-12-14T08:36:11.000Z | web/views/contact_view.ex | chrhsmt/hello_phoenix | 18c719cab56827847ddcf676df5141d1cf5e420b | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.ContactView do
use HelloPhoenix.Web, :view
def render("index.json", %{contacts: contacts}) do
contacts
end
end | 18.5 | 52 | 0.716216 |
1aea87215e62a3af8de52cc2822bfc784476257e | 490 | exs | Elixir | banking_challenge_stone_umbrella/apps/banking_challenge_web/test/banking_challenge_web/views/error_view_test.exs | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/apps/banking_challenge_web/test/banking_challenge_web/views/error_view_test.exs | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/apps/banking_challenge_web/test/banking_challenge_web/views/error_view_test.exs | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | defmodule BankingChallengeWeb.ErrorViewTest do
use BankingChallengeWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(BankingChallengeWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
e... | 30.625 | 101 | 0.706122 |
1aea97ea2437c3072c4c2b5ba2d71cc14bbe2748 | 797 | exs | Elixir | test/tesla/adapter/httpc_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2022-01-22T16:59:48.000Z | 2022-01-22T16:59:48.000Z | test/tesla/adapter/httpc_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | null | null | null | test/tesla/adapter/httpc_test.exs | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2021-09-26T18:49:44.000Z | 2021-09-26T18:49:44.000Z | defmodule Tesla.Adapter.HttpcTest do
use ExUnit.Case
use Tesla.AdapterCase, adapter: Tesla.Adapter.Httpc
use Tesla.AdapterCase.Basic
use Tesla.AdapterCase.Multipart
use Tesla.AdapterCase.StreamRequestBody
use Tesla.AdapterCase.SSL,
ssl: [
verify: :verify_peer,
cacertfile: "#{:code.priv_dir... | 24.90625 | 67 | 0.664994 |
1aeaac822878ab3e09aab7ec43c573407545f033 | 910 | exs | Elixir | lib/perspective/tests/perspective_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/tests/perspective_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/tests/perspective_test.exs | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.Test do
use ExUnit.Case, async: true
use Perspective.SetUniqueAppID
test "test a basic perspective call" do
Perspective.Core.start()
%{
action: "Perspective.Core.AddUser",
data: %{
username: "user/josh",
password: "[password]",
password_confirmat... | 23.947368 | 89 | 0.587912 |
1aeac7a26e02f46e7dfc9292fe2f208fa455a62e | 1,571 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/metric_header_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/metric_header_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/metric_header_entry.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... | 31.42 | 100 | 0.719287 |
1aeaf054562a1a6fca0a93997348a99461a7ab36 | 351 | exs | Elixir | test/codewar_web/controllers/admin/dashboard_controller_test.exs | hanam1ni/codewar-web | 0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad | [
"MIT"
] | 2 | 2021-06-29T02:22:28.000Z | 2022-02-15T06:32:15.000Z | test/codewar_web/controllers/admin/dashboard_controller_test.exs | hanam1ni/codewar-web | 0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad | [
"MIT"
] | 14 | 2021-05-06T04:27:19.000Z | 2021-08-24T11:15:33.000Z | test/codewar_web/controllers/admin/dashboard_controller_test.exs | hanam1ni/codewar-web | 0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad | [
"MIT"
] | 1 | 2021-08-20T07:50:19.000Z | 2021-08-20T07:50:19.000Z | defmodule CodewarWeb.Admin.DashboardControllerTest do
use CodewarWeb.ConnCase, async: true
describe "index/2" do
test "lists all sessions", %{conn: conn} do
insert(:session, name: "Code War Event")
conn = get(conn, Routes.dashboard_path(conn, :index))
assert html_response(conn, 200) =~ "Cod... | 25.071429 | 59 | 0.68661 |
1aeaf0d9d2e7155c4a97e8fc188ed4923b9cef99 | 2,269 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/season.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/season.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/season.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 42.811321 | 329 | 0.743499 |
1aeb390a239b38112deb32f7f8bd9b1aa0b316be | 3,855 | ex | Elixir | lib/oli_web/live/common/sortable_table/table_handers.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/live/common/sortable_table/table_handers.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/live/common/sortable_table/table_handers.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 1 | 2021-10-30T05:58:19.000Z | 2021-10-30T05:58:19.000Z | defmodule OliWeb.Common.SortableTable.TableHandlers do
alias OliWeb.Common.Params
defmacro __using__(_options) do
quote do
import unquote(__MODULE__)
@before_compile unquote(__MODULE__)
end
end
defmacro __before_compile__(_env) do
quote do
alias OliWeb.Common.Table.SortableTable... | 27.934783 | 100 | 0.537743 |
1aeb78c42d9bf05721019b31a0545d67846c579c | 11,206 | exs | Elixir | elixir-match/app/test/match_web/live/game_live_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/test/match_web/live/game_live_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/test/match_web/live/game_live_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule MatchWeb.GameLiveTest do
use MatchWeb.ConnCase, async: false
alias MatchWeb.Endpoint
alias MatchWeb.GameLive
alias Match.Generator
alias Phoenix.LiveViewTest
@size 2
@one "/images/cards/one.png"
@two "/images/cards/two.png"
@id_one_a "24CEDF1"
@id_one_b "24CEDF2"
@id_two_a "3079821"
... | 32.017143 | 170 | 0.663573 |
1aeb7e330476e5ae5f07e65f99ab08058ee4fe0c | 76,627 | exs | Elixir | priv/endpoints.exs | hetaoapps/ex_aws | 1dcf28d13f0cfb384545dc7a068486874c74635a | [
"MIT"
] | 1 | 2021-01-05T11:56:32.000Z | 2021-01-05T11:56:32.000Z | priv/endpoints.exs | hetaoapps/ex_aws | 1dcf28d13f0cfb384545dc7a068486874c74635a | [
"MIT"
] | null | null | null | priv/endpoints.exs | hetaoapps/ex_aws | 1dcf28d13f0cfb384545dc7a068486874c74635a | [
"MIT"
] | null | null | null | %{
"partitions" => [
%{
"defaults" => %{
"hostname" => "{service}.{region}.{dnsSuffix}",
"protocols" => ["https"],
"signatureVersions" => ["v4"]
},
"dnsSuffix" => "amazonaws.com",
"partition" => "aws",
"partitionName" => "AWS Standard",
"regionRegex" => ... | 33.830905 | 97 | 0.308755 |
1aeb8554b18388fea34838532bb18c57e035fd53 | 24 | ex | Elixir | lib/neoxir.ex | jovannypcg/neoxir | 112b593cde6c6f386ac075880f3607677be4c438 | [
"Apache-2.0"
] | null | null | null | lib/neoxir.ex | jovannypcg/neoxir | 112b593cde6c6f386ac075880f3607677be4c438 | [
"Apache-2.0"
] | null | null | null | lib/neoxir.ex | jovannypcg/neoxir | 112b593cde6c6f386ac075880f3607677be4c438 | [
"Apache-2.0"
] | null | null | null | defmodule Neoxir do
end
| 8 | 19 | 0.833333 |
1aebfc638c7e076e4a8ce3c0ed8d7bb934d37204 | 10,778 | exs | Elixir | test/crontab/cron_expression/parser_test.exs | fossabot/crontab | 9f5e2f5927e5c2b8cb40ce2a1d91d6389caae374 | [
"MIT"
] | null | null | null | test/crontab/cron_expression/parser_test.exs | fossabot/crontab | 9f5e2f5927e5c2b8cb40ce2a1d91d6389caae374 | [
"MIT"
] | null | null | null | test/crontab/cron_expression/parser_test.exs | fossabot/crontab | 9f5e2f5927e5c2b8cb40ce2a1d91d6389caae374 | [
"MIT"
] | null | null | null | defmodule Crontab.CronExpression.ParserTest do
@moduledoc false
use ExUnit.Case, async: true
doctest Crontab.CronExpression.Parser
import Crontab.CronExpression.Parser
import Crontab.CronExpression
test ~s(parse "@reboot" gives reboot") do
assert parse("@reboot") ==
{:ok,
... | 29.60989 | 96 | 0.468547 |
1aec09182fa58704a55486297b4c16356b4e397f | 262 | ex | Elixir | lib/coinpeer/varint.ex | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | 2 | 2019-07-18T19:01:54.000Z | 2019-09-04T05:38:55.000Z | lib/coinpeer/varint.ex | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | 2 | 2019-07-04T04:26:16.000Z | 2019-08-08T12:50:52.000Z | lib/coinpeer/varint.ex | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | null | null | null | defmodule Coinpeer.Varint do
def new(x) when x < 0xfd, do: <<x>>
def new(x) when x <= 0xffff, do: <<0xfd, x::16-little>>
def new(x) when x <= 0xffffffff, do: <<0xfe, x::32-little>>
def new(x) when x <= 0xffffffffffffffff, do: <<0xff, x::64-little>>
end | 32.75 | 69 | 0.618321 |
1aec59f36acb0b4df92bb72dcae0ffbfa1337003 | 84 | exs | Elixir | slides/processes/spawn-process.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | slides/processes/spawn-process.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | slides/processes/spawn-process.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defp threadproc do
IO.puts("Runs in different process")
end
spawn(&threadproc/0)
| 14 | 38 | 0.75 |
1aec6ff184b697632cb06e9370ebfbfe4f259672 | 1,843 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/exec_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/exec_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/exec_action.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... | 39.212766 | 468 | 0.740098 |
1aec7a51e0a5806b2df0a65e568d1f1e2b9a3996 | 2,098 | exs | Elixir | test/similarity/tversky_test.exs | jmoggee/the_fuzz | 20e1eb0acd8a070f9e0fab87fb5dae02a632f6c4 | [
"Apache-2.0"
] | 76 | 2015-02-05T13:54:38.000Z | 2021-11-23T12:31:00.000Z | test/similarity/tversky_test.exs | jmoggee/the_fuzz | 20e1eb0acd8a070f9e0fab87fb5dae02a632f6c4 | [
"Apache-2.0"
] | 6 | 2015-08-26T13:40:26.000Z | 2019-01-09T17:00:48.000Z | test/similarity/tversky_test.exs | jmoggee/the_fuzz | 20e1eb0acd8a070f9e0fab87fb5dae02a632f6c4 | [
"Apache-2.0"
] | 8 | 2015-05-13T14:06:48.000Z | 2021-10-31T19:43:27.000Z | defmodule TverskyTest do
use ExUnit.Case
import TheFuzz.Similarity.Tversky, only: [compare: 2, compare: 3]
@test_options %{n_gram_size: 2, alpha: 0.5, beta: 0.5}
@adv_test_options %{n_gram_size: 4, alpha: 2, beta: 0.8}
test "returns nil with empty arguments" do
assert compare("", "") == nil
assert ... | 36.807018 | 67 | 0.619638 |
1aec81228955eeda71aeb3a2ce49e99b65c01acd | 2,258 | exs | Elixir | mix.exs | bettio/astarte_core | 64f22b74d124fb20b149aeafdef60571e787db74 | [
"Apache-2.0"
] | null | null | null | mix.exs | bettio/astarte_core | 64f22b74d124fb20b149aeafdef60571e787db74 | [
"Apache-2.0"
] | null | null | null | mix.exs | bettio/astarte_core | 64f22b74d124fb20b149aeafdef60571e787db74 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# 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 appl... | 25.954023 | 74 | 0.629318 |
1aecc52d259de7d91cec5246e9c57b723e7b8fe3 | 9,024 | ex | Elixir | lib/ggity_demo_web/live/bar_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/live/bar_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/live/bar_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | defmodule GGityDemoWeb.BarLive do
use GGityDemoWeb, :live_view
alias GGity.Plot
import GGity.Element.{Line, Rect, Text}
@mpg_data GGity.Examples.mpg()
@default_theme [
text: [family: "Helvetica, Arial, sans-serif"],
axis_text_x: [angle: 0],
panel_background: [fill: "#EEEEEE"],
axis_line: [s... | 26.698225 | 96 | 0.626662 |
1aecd75d432b3419db277bc5b94d28cc18a9abbf | 175 | ex | Elixir | elixir/comperhension.ex | mir-dhaka/coding_playground | f20138e404c27e008b2902d4be2e9f9d4c25b11f | [
"Apache-2.0"
] | 2 | 2019-05-23T06:05:20.000Z | 2019-11-17T01:35:45.000Z | elixir/comperhension.ex | mir-dhaka/coding_playground | f20138e404c27e008b2902d4be2e9f9d4c25b11f | [
"Apache-2.0"
] | 2 | 2020-08-29T12:29:11.000Z | 2020-08-29T12:30:14.000Z | elixir/comperhension.ex | mir-dhaka/coding_playground | f20138e404c27e008b2902d4be2e9f9d4c25b11f | [
"Apache-2.0"
] | 2 | 2020-07-18T17:07:36.000Z | 2021-12-06T02:21:15.000Z | list = [5,10,15]
squareList = for x <- list, do: x*x
IO.inspect squareList
multiplicationTable = for x <- 1..10, y <- 1..10, do: {x, y, x*y}
IO.inspect multiplicationTable
| 19.444444 | 65 | 0.651429 |
1aecf89d15786b0e47bee817d524b550e0b7b043 | 1,909 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_rubicon_non_guaranteed_terms.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_rubicon_non_guaranteed_terms.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_rubicon_non_guaranteed_terms.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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.018868 | 106 | 0.764274 |
1aed071a0d7441832765065ba4e455d9c3964cf5 | 314 | exs | Elixir | mm/guard.exs | diningyo/programming-elixir | bc61ee99a56e462129263c6b372eaf1faa9bb3fb | [
"MIT"
] | null | null | null | mm/guard.exs | diningyo/programming-elixir | bc61ee99a56e462129263c6b372eaf1faa9bb3fb | [
"MIT"
] | null | null | null | mm/guard.exs | diningyo/programming-elixir | bc61ee99a56e462129263c6b372eaf1faa9bb3fb | [
"MIT"
] | null | null | null | defmodule Guard do
def what_is(x) when is_number(x) do
IO.puts "#{x} is a number"
end
def what_is(x) when is_list(x) do
IO.puts "#{inspect(x)} is a list"
end
def what_is(x) when is_atom(x) do
IO.puts "#{x} is an atom"
end
end
Guard.what_is(99)
Guard.what_is(:cat)
Guard.what_is([1, 2, 3])
| 19.625 | 37 | 0.640127 |
1aed221c84c2badc6ff54118c9a62534bad507b9 | 1,647 | exs | Elixir | test/ex_21/game/level_test.exs | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | test/ex_21/game/level_test.exs | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | test/ex_21/game/level_test.exs | jparadasb/ex_21 | 897a141afdb0697667a580eada727c8430e61b6d | [
"MIT"
] | null | null | null | defmodule Ex21.Game.LevelTest do
use ExUnit.Case, async: true
alias Ex21.Game.Level
describe "Next level incremental" do
test "next_level/1 level 0" do
assert %{level: 1, cards: 16} = Level.next_level()
end
test "next_level/1 level 1 to 10" do
[
%{level: 1, cards: 16},
%... | 25.734375 | 56 | 0.48391 |
1aed325dc36ff06b57e36d443dc86f947d2f00b8 | 2,873 | ex | Elixir | questions/aggregates/00090000-fachours4.ex | zachvalenta/pgexercises | b16d5c28bb5e21732e6fb39090fa5902d0016e78 | [
"BSD-2-Clause"
] | 335 | 2015-02-09T09:21:34.000Z | 2022-03-30T12:28:18.000Z | questions/aggregates/00090000-fachours4.ex | zachvalenta/pgexercises | b16d5c28bb5e21732e6fb39090fa5902d0016e78 | [
"BSD-2-Clause"
] | 58 | 2015-05-12T03:10:54.000Z | 2021-11-27T15:53:36.000Z | questions/aggregates/00090000-fachours4.ex | zachvalenta/pgexercises | b16d5c28bb5e21732e6fb39090fa5902d0016e78 | [
"BSD-2-Clause"
] | 63 | 2015-03-18T18:15:56.000Z | 2022-02-23T07:27:46.000Z | |QUESTIONNAME|
Output the facility id that has the highest number of slots booked, again
|QUESTION|
Output the facility id that has the highest number of slots booked. Ensure that in the event of a tie, all tieing results get output.
|QUERY|
select facid, total from (
select facid, sum(slots) total, rank() over (order... | 55.25 | 543 | 0.747302 |
1aed5d60b6529678cd4e0c2c55cee07e54504786 | 262 | exs | Elixir | mix.exs | tinymesh/tm-proto-elixir | 54a796c89de697526e30e4c54975a4caa475cc30 | [
"BSD-2-Clause"
] | 2 | 2017-10-30T11:45:38.000Z | 2017-11-14T18:03:55.000Z | mix.exs | tinymesh/tm-proto-elixir | 54a796c89de697526e30e4c54975a4caa475cc30 | [
"BSD-2-Clause"
] | null | null | null | mix.exs | tinymesh/tm-proto-elixir | 54a796c89de697526e30e4c54975a4caa475cc30 | [
"BSD-2-Clause"
] | null | null | null | defmodule Tinymesh.Proto.Mixfile do
use Mix.Project
def project do
[ app: :tinymesh,
version: "0.4.1",
deps: [
{:poison, "~> 1.2", only: :dev, env: :test},
# {:exprof, "~> 0.1", only: :dev, env: :test}
]
]
end
end
| 18.714286 | 52 | 0.5 |
1aed64194aeadb1f8b0ee6327d442cc1e8be3eaa | 2,187 | ex | Elixir | lib/ecto/query/builder/cte.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-07-25T17:42:33.000Z | 2019-07-25T17:42:33.000Z | lib/ecto/query/builder/cte.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/cte.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 3]
defmodule Ecto.Query.Builder.CTE do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes the CTE name.
iex> escape(quote do: "FOO")
"FOO"
"""
@spec escape(Macro.t) :: Macro.t
def escape(name) when is_binary(name), do: name
def escape(other) do
... | 30.802817 | 99 | 0.649749 |
1aed7ee766bbd4e9db01793e527230359051aa2c | 1,299 | ex | Elixir | clients/custom_search/lib/google_api/custom_search/v1/connection.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/connection.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/connection.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.522727 | 77 | 0.741339 |
1aedb294707696f737cb96b954f2b16cc532172a | 2,853 | ex | Elixir | clients/games/lib/google_api/games/v1/model/snapshot.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/snapshot.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/snapshot.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... | 41.955882 | 196 | 0.727655 |
1aedc9adbf81c8305a62c31090faeaeaf5a09ee2 | 830 | ex | Elixir | lib/mailgun_logger_web/helpers/view_helpers.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 64 | 2020-02-10T20:42:46.000Z | 2021-11-16T10:47:50.000Z | lib/mailgun_logger_web/helpers/view_helpers.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 16 | 2020-02-10T20:45:57.000Z | 2022-03-04T12:53:34.000Z | lib/mailgun_logger_web/helpers/view_helpers.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 4 | 2020-04-03T17:13:19.000Z | 2020-07-17T12:56:31.000Z | defmodule MailgunLoggerWeb.ViewHelpers do
alias Phoenix.Controller
def active_link?(conn, controllers) when is_list(controllers),
do: Enum.member?(controllers, Controller.controller_module(conn))
def active_link?(conn, controller), do: active_link?(conn, [controller])
def active_link?(conn, controller, a... | 27.666667 | 74 | 0.715663 |
1aedc9f92c4761085fbdf787d9779d1aa12af30d | 5,107 | ex | Elixir | lib/oli_web/live/sections/enrollments/enrollments_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/enrollments/enrollments_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/enrollments/enrollments_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.Sections.EnrollmentsView do
use OliWeb, :surface_view
use OliWeb.Common.Modal
alias Oli.Repo.{Paging, Sorting}
alias OliWeb.Common.{TextSearch, PagedTable, Breadcrumb}
alias Oli.Delivery.Sections.{EnrollmentBrowseOptions}
alias OliWeb.Common.Table.SortableTableModel
alias OliWeb.Router.H... | 26.056122 | 90 | 0.634423 |
1aedd0135ba45ab813f4d834178601d362d1cf7c | 1,910 | exs | Elixir | clients/secret_manager/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/secret_manager/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.507463 | 155 | 0.663351 |
1aedd2fc9f92aa7403a58f91aa6e23a036fb37f0 | 504 | ex | Elixir | example/lib/nested/members/pet.ex | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | null | null | null | example/lib/nested/members/pet.ex | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | 10 | 2022-02-08T18:33:17.000Z | 2022-03-24T18:34:04.000Z | example/lib/nested/members/pet.ex | OnigiriJack/ecto_nested_changeset | 256f330ee89c76ffbd738ffa4dc021cc1ae58ed2 | [
"MIT"
] | null | null | null | defmodule Nested.Members.Pet do
use Ecto.Schema
import Ecto.Changeset
alias Nested.Helpers
alias Nested.Members.Toy
schema "pets" do
field :name, :string
field :owner_id, :id
field :delete, :boolean, virtual: true, default: false
has_many :toys, Toy
timestamps()
end
@doc false
... | 18 | 58 | 0.65873 |
1aedde17a19150efb1e5aaa830f39a631097241d | 2,706 | exs | Elixir | hexdocs__pm__phoenix__up_and_running.html/hello_test/test/hello_test_web/controllers/post_controller_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello_test/test/hello_test_web/controllers/post_controller_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello_test/test/hello_test_web/controllers/post_controller_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule HelloTestWeb.PostControllerTest do
use HelloTestWeb.ConnCase
alias HelloTest.Blog
@create_attrs %{body: "some body", title: "some title"}
@update_attrs %{body: "some updated body", title: "some updated title"}
@invalid_attrs %{body: nil, title: nil}
def fixture(:post) do
{:ok, post} = Blog.... | 30.404494 | 83 | 0.649667 |
1aede9b6064671c0ba00f9a8de9dd4a96a360241 | 496 | ex | Elixir | lib/performance_forecast.ex | Frost/resin | 2d10f85bde7712c4016f6338e82aff4fd7b23514 | [
"MIT"
] | 6 | 2015-05-17T01:23:11.000Z | 2020-11-01T11:45:51.000Z | lib/performance_forecast.ex | Frost/resin | 2d10f85bde7712c4016f6338e82aff4fd7b23514 | [
"MIT"
] | null | null | null | lib/performance_forecast.ex | Frost/resin | 2d10f85bde7712c4016f6338e82aff4fd7b23514 | [
"MIT"
] | null | null | null | defmodule PerformanceForecast do
@moduledoc """
An agent that keeps track of your enterpriseyness patterns.
If you configure Resin to have a varying pattern of enterpriseyness,
it will use this module to cycle through your pattern.
"""
def init(enterpriseyness) when is_list(enterpriseyness) do
Agent.s... | 26.105263 | 70 | 0.717742 |
1aee095fcc5ca4ae17010e69ef26c22d5ead6066 | 281 | exs | Elixir | installer/templates/phx_single/formatter.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 2 | 2016-11-01T15:01:48.000Z | 2016-11-01T15:07:20.000Z | installer/templates/phx_single/formatter.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-05-26T19:38:18.000Z | 2020-05-26T19:38:18.000Z | installer/templates/phx_single/formatter.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-08-31T15:29:31.000Z | 2020-08-31T15:29:31.000Z | [
import_deps: [<%= if ecto do %>:ecto, <% end %>:phoenix],<%= if ecto do %>
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"],
subdirectories: ["priv/*/migrations"]<% else %>
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"]<% end %>
]
| 40.142857 | 80 | 0.519573 |
1aee15557019d64b665d4410e20e07bc85c6efe6 | 615 | ex | Elixir | lib/credo/test/check_runner.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/test/check_runner.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/test/check_runner.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Test.CheckRunner do
alias Credo.Execution
alias Credo.Execution.ExecutionIssues
def run_check(source_files, check, params \\ []) do
exec = Execution.build()
source_files
|> List.wrap()
|> issues_for(check, exec, params)
end
defp issues_for(source_files, check, exec, params)
... | 25.625 | 71 | 0.733333 |
1aee199ce01cf3975cd040923ebe2f18fdc0e6eb | 2,213 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/log_match.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/log_match.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/log_match.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.26 | 585 | 0.747854 |
1aee19d99077933d4c27f2c6ebf0d509fa38bca3 | 2,868 | ex | Elixir | lib/date_time.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | 1 | 2015-10-25T11:30:13.000Z | 2015-10-25T11:30:13.000Z | lib/date_time.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | lib/date_time.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | % DateTime represents both Date and Time. Currently it is not aware of
% timezones, but that should be added in the future, while Date and Time
% objects should always ignore timezones.
%
% This implementation is based on Erlang's calendar module: http://erlang.org/doc/man/calendar.html
module DateTime
def new(date_t... | 25.607143 | 119 | 0.643305 |
1aee1a83861c4b3109c133a92ca73dc11faea2d3 | 435 | ex | Elixir | web/views/memo_view.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/views/memo_view.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/views/memo_view.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | defmodule MemoApi.MemoView do
use MemoApi.Web, :view
def render("index.json", %{memos: memos}) do
%{data: render_many(memos, MemoApi.MemoView, "memo.json")}
end
def render("show.json", %{memo: memo}) do
%{data: render_one(memo, MemoApi.MemoView, "memo.json")}
end
def render("memo.json", %{memo: m... | 22.894737 | 62 | 0.632184 |
1aee7185ab91e547e5bed5afe9401bb2e9968eac | 1,815 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/search_resources_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/search_resources_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/search_resources_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.588235 | 133 | 0.743802 |
1aee7336a9abed0979112b0e745a7fb77f439a31 | 561 | exs | Elixir | nucleotide-count/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | nucleotide-count/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | nucleotide-count/example.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | defmodule DNA do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a DNA strand.
## Examples
iex> DNA.count('AATAA', ?A)
4
iex> DNA.count('AATAA', ?T)
1
"""
def count(strand, nucleotide) do
Enum.count strand, &(&1 == nucleotide)
end
@doc """
Returns a summary o... | 16.5 | 70 | 0.579323 |
1aee8642ad3f25187db9d214112fc38800ca24ad | 3,132 | ex | Elixir | lib/hexpm/fake.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm/fake.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm/fake.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Fake do
@files [
:packages,
:first_names,
:last_names,
:usernames,
:words
]
@generators [
{:package, [:packages]},
{:first_name, [:first_names]},
{:last_name, [:last_names]},
{:username, [:usernames]},
{:word, [:words]},
{:email, [:usernames]},
{:fu... | 28.472727 | 91 | 0.612388 |
1aeeda75035a95f1b594f8c20e59f791b3930618 | 2,008 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__normalized_bounding_box.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__normalized_bounding_box.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__normalized_bounding_box.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... | 32.918033 | 111 | 0.709661 |
1aeefe1ab0956a4b85c9d7c82ac09faca691cbc8 | 392 | ex | Elixir | lib/listener/playlists_musics.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | lib/listener/playlists_musics.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | lib/listener/playlists_musics.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | defmodule Listener.PlaylistsMusics do
use Ecto.Schema
import Ecto.Changeset
alias Listener.Playlist
alias Listener.Music
schema "playlists_musics" do
belongs_to :playlist, Playlist
belongs_to :music, Music
timestamps()
end
@doc false
def changeset(playlists_musics, attrs) do
playlis... | 18.666667 | 43 | 0.711735 |
1aeefeb8d2386d2f2a1c1cf932622ff23770ca02 | 1,050 | ex | Elixir | lib/xxo/ai.ex | EssenceOfChaos/xxo | a099db4a83a79c57387bb24492971bce9529552e | [
"MIT"
] | 1 | 2019-05-17T17:01:21.000Z | 2019-05-17T17:01:21.000Z | lib/xxo/ai.ex | EssenceOfChaos/xxo | a099db4a83a79c57387bb24492971bce9529552e | [
"MIT"
] | null | null | null | lib/xxo/ai.ex | EssenceOfChaos/xxo | a099db4a83a79c57387bb24492971bce9529552e | [
"MIT"
] | null | null | null | defmodule Xxo.AI do
@moduledoc """
The Artificial Intelligence module for single player mode
"""
# %Xxo.Game{
# action_on: "mia",
# board: %{
# {0, 0} => " ",
# {0, 1} => "x",
# {0, 2} => " ",
# {1, 0} => " ",
# {1, 1} => " ",
# {1, 2} => " ",
# {2, 0} => " ",
# {2, 1}... | 19.811321 | 59 | 0.378095 |
1aeefed6275c7a26317010bf51fb8643924345a3 | 789 | ex | Elixir | lib/fs/file.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | lib/fs/file.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | lib/fs/file.ex | zekroTJA/imgserver | a2efc3483bc83cc9734dbef7ca9bd3dc4a19bb64 | [
"MIT"
] | null | null | null | defmodule Imgserver.Fs.File do
alias Imgserver.Shared.Time, as: TimeUtil
defstruct atime: "",
ctime: "",
mtime: "",
size: 0,
name: "",
full_name: ""
@type t() :: %__MODULE__{
atime: String.t(),
ctime: String.t(),
mtime: St... | 24.65625 | 70 | 0.52218 |
1aef02259a726c347a6e75d0c85f0ef7e279f47c | 573 | exs | Elixir | test/views/error_view_test.exs | zachncst/escritor | 4be56fbed4e86407a547c3592342dd237f52c54c | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | zachncst/escritor | 4be56fbed4e86407a547c3592342dd237f52c54c | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | zachncst/escritor | 4be56fbed4e86407a547c3592342dd237f52c54c | [
"MIT"
] | null | null | null | defmodule Escritor.ErrorViewTest do
use Escritor.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Escritor.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" ... | 26.045455 | 66 | 0.678883 |
1aef1664ed50f6006c59657bc19940bf2a3e2570 | 41 | ex | Elixir | test/fixtures/system_platform/lib/system_platform.ex | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | 1 | 2019-06-12T17:34:10.000Z | 2019-06-12T17:34:10.000Z | test/fixtures/system_platform/lib/system_platform.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | test/fixtures/system_platform/lib/system_platform.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | defmodule SystemPlatform.Fixture do
end
| 10.25 | 35 | 0.853659 |
1aef1f12476eaa53f34eeed1135636b483b23890 | 2,629 | exs | Elixir | test/oban/queue/executor_test.exs | myskoach/oban | a91d53bad86c215d83f5d46e41573b9794259383 | [
"Apache-2.0"
] | null | null | null | test/oban/queue/executor_test.exs | myskoach/oban | a91d53bad86c215d83f5d46e41573b9794259383 | [
"Apache-2.0"
] | null | null | null | test/oban/queue/executor_test.exs | myskoach/oban | a91d53bad86c215d83f5d46e41573b9794259383 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Queue.ExecutorTest do
use Oban.Case, async: true
import ExUnit.CaptureLog
alias Oban.{CrashError, PerformError}
alias Oban.Queue.Executor
defmodule Worker do
use Oban.Worker
@impl Worker
def perform(%{args: %{"mode" => "ok"}}), do: :ok
def perform(%{args: %{"mode" => "warn"}... | 31.297619 | 82 | 0.608977 |
1aef27e9e75164964d529434694ac3fce35bf1e6 | 1,819 | ex | Elixir | lib/liveman_web/telemetry.ex | nimblehq/liveman-demo-api | e184349983f949c8434b8651f9223db597ef1025 | [
"MIT"
] | null | null | null | lib/liveman_web/telemetry.ex | nimblehq/liveman-demo-api | e184349983f949c8434b8651f9223db597ef1025 | [
"MIT"
] | 19 | 2021-07-02T08:14:52.000Z | 2021-07-30T09:33:12.000Z | lib/liveman_web/telemetry.ex | nimblehq/liveman | e184349983f949c8434b8651f9223db597ef1025 | [
"MIT"
] | null | null | null | defmodule LivemanWeb.Telemetry do
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 10_000ms. Learn ... | 32.482143 | 86 | 0.671798 |
1aef2e0315e5609e2fb6fd24df3881702c1ac73a | 1,833 | exs | Elixir | clients/cloud_tasks/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_tasks/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.358209 | 102 | 0.65521 |
1aef3808e8f115c46fa64c9409eb45be194aea3d | 1,094 | ex | Elixir | lib/absinthe/language/directive_definition.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/language/directive_definition.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/language/directive_definition.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Language.DirectiveDefinition do
@moduledoc false
alias Absinthe.{Blueprint, Language}
defstruct name: nil,
description: nil,
arguments: [],
directives: [],
locations: [],
loc: %{line: nil}
@type t :: %__MODULE__{
name: S... | 28.789474 | 75 | 0.607861 |
1aef454f4336649db1adccacddd0b5c69015e5ee | 1,309 | ex | Elixir | lib/erlef/wg.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef/wg.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef/wg.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.WG do
defstruct name: "",
slug: "",
description: "",
email: nil,
formed: nil,
github: nil,
primary_contact_method: nil
@priv_dir "priv/working_groups/*md"
@type t :: map()
@spec all :: [t]
def all do
priv_dir()
... | 20.138462 | 62 | 0.553858 |
1aef4c332243da7b867aef7adc511099ba32b25a | 21,371 | ex | Elixir | lib/mongo/topology_description.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | lib/mongo/topology_description.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | lib/mongo/topology_description.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.TopologyDescription do
@moduledoc false
# This acts as a single topology consisting of many connections, built on top
# of the existing connection API's. It implements the Server Discovery and
# Monitoring specification, along with the `Mongo.ServerMonitor` module.
alias Mongo.Version
@rel... | 35.978114 | 174 | 0.681391 |
1aef51e575d207ae5b7c9bd51daa77b2ae29f588 | 550 | ex | Elixir | lib/uncalote_me/app_context/debtor.ex | daniel-leal/uncaloteme-api | 708be51ae446077bee8350a876bc2357cb3a66b8 | [
"MIT"
] | null | null | null | lib/uncalote_me/app_context/debtor.ex | daniel-leal/uncaloteme-api | 708be51ae446077bee8350a876bc2357cb3a66b8 | [
"MIT"
] | null | null | null | lib/uncalote_me/app_context/debtor.ex | daniel-leal/uncaloteme-api | 708be51ae446077bee8350a876bc2357cb3a66b8 | [
"MIT"
] | null | null | null | defmodule UncaloteMe.AppContext.Debtor do
use Ecto.Schema
import Ecto.Changeset
schema "debtors" do
field :avatar, :string
field :email, :string
field :name, :string
field :phone, :string
has_many :debts, UncaloteMe.AppContext.Debt
timestamps()
end
@doc false
def changeset(debtor... | 21.153846 | 52 | 0.654545 |
1aef552a4b9cae299f40ac5c4473d0e8064204a8 | 226 | exs | Elixir | .formatter.exs | NickNeck/prove | a3f48f8289f9a56dd57d22c58469227981c8ebb7 | [
"MIT"
] | null | null | null | .formatter.exs | NickNeck/prove | a3f48f8289f9a56dd57d22c58469227981c8ebb7 | [
"MIT"
] | 2 | 2021-08-01T07:15:41.000Z | 2021-08-09T05:40:30.000Z | .formatter.exs | hrzndhrn/prove | a3f48f8289f9a56dd57d22c58469227981c8ebb7 | [
"MIT"
] | null | null | null | locals_without_parens = [prove: 1, prove: 2]
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens,
export: [locals_without_parens: locals_without_parens]
]
| 28.25 | 70 | 0.716814 |
1aef5c0c26f264cd56a329daf70cdf7ed4403f1e | 1,083 | ex | Elixir | lib/postgrex/extensions/jsonb.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/extensions/jsonb.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/postgrex/extensions/jsonb.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Extensions.JSONB do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
def init(opts) do
json =
Keyword.get_lazy(opts, :json, fn ->
Application.get_env(:postgrex, :json_library, Jason)
end)
{json, Keyword.get(opts, :decode_binary, :copy)}
end
def matchin... | 23.543478 | 61 | 0.572484 |
1aef6604e03fdd47848c6d1c5fa5219c6d0066dc | 15,297 | ex | Elixir | lib/broadway/topology.ex | robertkeizer/broadway | bdec3f617116671662b81cc65db6f795848a7dee | [
"Apache-2.0"
] | null | null | null | lib/broadway/topology.ex | robertkeizer/broadway | bdec3f617116671662b81cc65db6f795848a7dee | [
"Apache-2.0"
] | null | null | null | lib/broadway/topology.ex | robertkeizer/broadway | bdec3f617116671662b81cc65db6f795848a7dee | [
"Apache-2.0"
] | null | null | null | defmodule Broadway.Topology do
@moduledoc false
@behaviour GenServer
alias Broadway.Topology.{
ProducerStage,
ProcessorStage,
BatcherStage,
BatchProcessorStage,
Terminator,
RateLimiter
}
defstruct [:context, :topology, :producer_names, :batchers_names, :rate_limiter_name]
def star... | 28.06789 | 99 | 0.660326 |
1aef781b86ea93903172663786e34c519b917f3d | 7,787 | ex | Elixir | lib/date/interval.ex | appcues/timex | 700643279531bbf1711cd721b3851f025cc28a95 | [
"MIT"
] | null | null | null | lib/date/interval.ex | appcues/timex | 700643279531bbf1711cd721b3851f025cc28a95 | [
"MIT"
] | null | null | null | lib/date/interval.ex | appcues/timex | 700643279531bbf1711cd721b3851f025cc28a95 | [
"MIT"
] | null | null | null | defmodule Timex.Interval do
@moduledoc """
"""
alias Timex.Date
alias Timex.DateTime
alias Timex.DateFormat
alias Timex.Interval
defmodule FormatError do
@moduledoc """
Thrown when an error occurs with formatting an Interval
"""
defexception message: "Unable to format interval!"
def... | 35.720183 | 121 | 0.611147 |
1aef7c5c7c84a9a7810a0221e8569adf363a9108 | 356 | ex | Elixir | lib/bus_car/query.ex | elbow-jason/bus_car | cd70b9f6b8dd404eb518f642491e0a4430e2d9f9 | [
"MIT"
] | 18 | 2016-09-25T21:36:39.000Z | 2021-02-17T15:09:52.000Z | lib/bus_car/query.ex | elbow-jason/bus_car | cd70b9f6b8dd404eb518f642491e0a4430e2d9f9 | [
"MIT"
] | 7 | 2016-12-08T05:01:23.000Z | 2018-04-05T08:55:11.000Z | lib/bus_car/query.ex | elbow-jason/bus_car | cd70b9f6b8dd404eb518f642491e0a4430e2d9f9 | [
"MIT"
] | 1 | 2020-04-24T02:10:15.000Z | 2020-04-24T02:10:15.000Z | defmodule BusCar.Query do
def from_map(%{} = map) do
[:query, :bool, :must | map_to_terms(map) ]
end
defp map_to_terms(map) do
map
|> Enum.map(fn
{k, v} when k |> is_atom -> {Atom.to_string(k), v}
{k, v} when k |> is_binary -> {k, v}
end)
|> Enum.reduce([], fn ({k, v}, acc) -> ... | 20.941176 | 67 | 0.525281 |
1aef9a36775ee72c4e041a8e1df7257e79df9a46 | 1,087 | exs | Elixir | mix.exs | balexand/sanity_components | d7a1ee542fc2a3d9e0e826261cf877462fac83f1 | [
"MIT"
] | null | null | null | mix.exs | balexand/sanity_components | d7a1ee542fc2a3d9e0e826261cf877462fac83f1 | [
"MIT"
] | null | null | null | mix.exs | balexand/sanity_components | d7a1ee542fc2a3d9e0e826261cf877462fac83f1 | [
"MIT"
] | null | null | null | defmodule Sanity.Components.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :sanity_components,
description:
"Phoenix components for rendering Sanity CMS data, including portable text and images.",
version: @version,
elixir: "~> 1.12",
start_permane... | 23.630435 | 96 | 0.572217 |
1aef9afdc678832362ed35cb988a893329192b09 | 1,356 | exs | Elixir | test/socializer_web/post_subscriptions_test.exs | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | test/socializer_web/post_subscriptions_test.exs | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | test/socializer_web/post_subscriptions_test.exs | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | defmodule SocializerWeb.PostSubscriptionsTest do
use SocializerWeb.SubscriptionCase
describe "Post subscription" do
it "updates on new post", %{socket: socket} do
# Query to establish the subscription.
subscription_query = """
subscription {
postCreated {
id
... | 26.588235 | 65 | 0.596608 |
1aeffd03f4ecc6ec9c46a20f1b8e7069e8cdff18 | 157 | exs | Elixir | test/integration/version_test.exs | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 3 | 2018-07-01T05:31:02.000Z | 2019-08-03T04:11:32.000Z | test/integration/version_test.exs | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 8 | 2018-06-28T07:30:04.000Z | 2018-07-13T07:36:56.000Z | test/integration/version_test.exs | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | null | null | null | defmodule Wand.Integration.VersionTest do
use Wand.Test.IntegrationCase, async: true
test "wand version" do
assert wand("version") == :ok
end
end
| 19.625 | 44 | 0.726115 |
1aefff4fa4f446cd4d117a36bfa166edd8825ed9 | 2,146 | exs | Elixir | apps/authorizer/test/policies/subject_active_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authorizer/test/policies/subject_active_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authorizer/test/policies/subject_active_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authorizer.Policies.SubjectActiveTest do
@moduledoc false
use Authorizer.DataCase, async: true
alias Authorizer.Policies.SubjectActive
alias Authorizer.Ports.ResourceManagerMock
setup do
conn = %Plug.Conn{
private: %{
session: %{
id: Ecto.UUID.generate(),
jti... | 30.657143 | 98 | 0.630009 |
1af001b7dda7b15e67b0e6b0286a20216de9f382 | 5,355 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/kerberos_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/kerberos_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/kerberos_config.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... | 60.168539 | 273 | 0.716527 |
1af003d0f1b39cf59b2b00141ac41cfce57cb109 | 1,826 | ex | Elixir | apps/accept_udp/lib/accept/udp/socket.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/accept_udp/lib/accept/udp/socket.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/accept_udp/lib/accept/udp/socket.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Accept.Udp.Socket do
@moduledoc "TODO"
use GenServer
use Accept.Socket
require Logger
@spec start_link(init_opts :: keyword) :: GenServer.on_start()
def start_link(init_opts) do
server_opts = Keyword.take(init_opts, [:name])
GenServer.start_link(__MODULE__, init_opts, server_opts)
end... | 25.361111 | 86 | 0.647317 |
1af00befd8c04a89c541a0b0476270b443970d5b | 1,104 | exs | Elixir | test/controllers/tp_derived_charger_import_job_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/controllers/tp_derived_charger_import_job_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/controllers/tp_derived_charger_import_job_controller_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpDerivedChargerImportJobControllerTest do
use CgratesWebJsonapi.ConnCase
import CgratesWebJsonapi.Factory
setup do
user = insert :user
conn = build_conn()
|> put_req_header("accept", "application/vnd.api+json")
|> put_req_header("content-type", "application/vnd.api... | 29.837838 | 77 | 0.622283 |
1af038bc660fe284741a10f7816fe88dae373517 | 7,109 | ex | Elixir | lib/elixir/lib/kernel/lexical_tracker.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/lexical_tracker.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/lexical_tracker.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | # This is an Elixir module responsible for tracking references
# to modules, remote dispatches, and the usage of
# aliases/imports/requires in the Elixir scope.
#
# Note that since this is required for bootstrap, we can't use
# any of the `GenServer.Behaviour` conveniences.
defmodule Kernel.LexicalTracker do
@moduled... | 28.781377 | 98 | 0.670699 |
1af03c67c896bd9cb77a401e4e97003554525bbb | 2,310 | ex | Elixir | lib/membrane_portaudio_plugin/source.ex | membraneframework/membrane_portaudio_plugin | a7d2e44000b9e4ebdfa21cb3228b6a2638eca02a | [
"Apache-2.0"
] | null | null | null | lib/membrane_portaudio_plugin/source.ex | membraneframework/membrane_portaudio_plugin | a7d2e44000b9e4ebdfa21cb3228b6a2638eca02a | [
"Apache-2.0"
] | 1 | 2021-12-06T02:45:42.000Z | 2021-12-07T00:52:52.000Z | lib/membrane_portaudio_plugin/source.ex | membraneframework/membrane_portaudio_plugin | a7d2e44000b9e4ebdfa21cb3228b6a2638eca02a | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.PortAudio.Source do
@moduledoc """
Audio source that captures sound via multi-platform PortAudio library.
"""
use Membrane.Source
alias Membrane.Buffer
alias Membrane.Caps.Audio.Raw, as: Caps
alias Membrane.PortAudio.SyncExecutor
alias __MODULE__.Native
@pa_no_device -1
# FIXM... | 27.5 | 97 | 0.593506 |
1af0c8421f288c85d88eeed43766fece133fc77d | 901 | exs | Elixir | lib/mix/tasks/update_slack_api.exs | danielgrieve/Elixir-Slack | 837bcb32d6afe83394750dae28242905fc82b771 | [
"MIT"
] | 657 | 2015-01-05T21:56:30.000Z | 2022-03-28T12:56:47.000Z | lib/mix/tasks/update_slack_api.exs | danielgrieve/Elixir-Slack | 837bcb32d6afe83394750dae28242905fc82b771 | [
"MIT"
] | 214 | 2015-02-15T18:06:20.000Z | 2022-02-21T21:15:53.000Z | lib/mix/tasks/update_slack_api.exs | danielgrieve/Elixir-Slack | 837bcb32d6afe83394750dae28242905fc82b771 | [
"MIT"
] | 207 | 2015-02-26T23:24:36.000Z | 2022-02-27T21:53:57.000Z | defmodule Mix.Tasks.UpdateSlackApi do
@moduledoc "Updates Slack API documentation files for generating API code"
use Mix.Task
@dir System.tmp_dir()
def run(_) do
try do
System.cmd("git", [
"clone",
"https://github.com/slackhq/slack-api-docs",
"#{@dir}/slack-api-docs"
])... | 20.953488 | 76 | 0.592675 |
1af0e9bda5189837290b68c945fca44319569fa4 | 4,677 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/authorized_certificate.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/authorized_certificate.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/authorized_certificate.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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.958333 | 534 | 0.769297 |
1af1335c68d283040d82ea61fac04003cfeb5908 | 339 | exs | Elixir | config/test.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 3 | 2019-08-03T14:01:07.000Z | 2020-08-28T14:33:43.000Z | config/test.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 10 | 2019-05-07T19:30:14.000Z | 2020-03-04T19:24:14.000Z | config/test.exs | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | null | null | null | use Mix.Config
config :ex_queue_bus_client,
sns_client: ExQueueBusClient.SNSClientMock,
aws_client: ExQueueBusClient.AWSClientMock,
config_agent: ExQueueBusClient.ConfigMock
config :ex_aws,
access_key_id: [System.get_env("AWS_ACCESS_KEY"), :instance_role],
secret_access_key: [System.get_env("AWS_SECRET_KEY"... | 30.818182 | 71 | 0.811209 |
1af139f8f68ed7692de27e869e86b3cdb687dbb6 | 1,039 | ex | Elixir | lib/ask_intern.ex | jcolag/ask-intern | 66a2afbcb69a1c30bee649e79773693c2216ebae | [
"BSD-3-Clause"
] | 1 | 2021-11-06T15:55:37.000Z | 2021-11-06T15:55:37.000Z | lib/ask_intern.ex | jcolag/ask-intern | 66a2afbcb69a1c30bee649e79773693c2216ebae | [
"BSD-3-Clause"
] | 2 | 2021-12-05T11:50:58.000Z | 2021-12-11T11:46:04.000Z | lib/ask_intern.ex | jcolag/ask-intern | 66a2afbcb69a1c30bee649e79773693c2216ebae | [
"BSD-3-Clause"
] | null | null | null | defmodule AskIntern do
@moduledoc """
Documentation for AskIntern.
"""
@doc """
A simple network client to connect to INTERN, send a query string,
and print the response.
"""
def main(args) do
#
# Get the port from INTERN's configuration file.
#
config_folder = :filename.basedir(:user_... | 26.641026 | 68 | 0.598653 |
1af13ca1b7c1fc5f43695924ad5c75de7ad79460 | 539 | ex | Elixir | apps/core/lib/core/medication_requests/search.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/medication_requests/search.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/medication_requests/search.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.MedicationRequests.Search do
@moduledoc false
use Ecto.Schema
alias Ecto.UUID
@primary_key false
schema "medication_requests_search" do
field(:employee_id, UUID)
field(:person_id, UUID)
field(:status, :string)
field(:request_number, :string)
field(:created_from, :string)
... | 22.458333 | 43 | 0.690167 |
1af1d428e04dda71db0dec878f6f815118af3262 | 1,123 | ex | Elixir | lib/neko/achievement/store.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/achievement/store.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/achievement/store.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | defmodule Neko.Achievement.Store do
@moduledoc false
@type achievement_t :: %Neko.Achievement{}
@type achievements_t :: MapSet.t(achievement_t)
# add timeout to Agent calls that perform network requests only
@call_timeout Application.get_env(:neko, :shikimori)[:recv_timeout]
@spec start_link :: Agent.on_... | 23.395833 | 69 | 0.67943 |
1af1da5b211bb1a8e8d59db7ad0b49e67759b57c | 1,311 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/unbind_device_from_gateway_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/unbind_device_from_gateway_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/unbind_device_from_gateway_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.214286 | 91 | 0.77193 |
1af1f34bc54c0e9d87d3a7cc678ccdf0c65b2762 | 1,279 | ex | Elixir | web/models/list.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/models/list.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/models/list.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | defmodule ExTrello.List do
use ExTrello.Web, :model
alias ExTrello.{Board, Repo, List, Card}
@derive {Poison.Encoder, only: [:id, :board_id, :name, :position, :cards]}
schema "lists" do
field :name, :string
field :position, :integer
belongs_to :board, Board
has_many :cards, Card
timesta... | 24.132075 | 76 | 0.656763 |
1af1f6f8c13f78815c29d5a354c3390787db737b | 2,516 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dynamic_targeting_key.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dynamic_targeting_key.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dynamic_targeting_key.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... | 44.928571 | 389 | 0.72655 |
1af1fb511af7fc1f4fc73eb69b707cf516106601 | 6,666 | ex | Elixir | lib/wallet.ex | ricn/cardanoex | 871d14d3b59116c8f869364b2506cd6d230fff29 | [
"MIT"
] | 12 | 2021-05-04T15:07:34.000Z | 2022-02-10T20:40:22.000Z | lib/wallet.ex | ricn/cardano | 871d14d3b59116c8f869364b2506cd6d230fff29 | [
"MIT"
] | null | null | null | lib/wallet.ex | ricn/cardano | 871d14d3b59116c8f869364b2506cd6d230fff29 | [
"MIT"
] | 2 | 2021-05-22T06:47:31.000Z | 2021-10-06T13:27:30.000Z | defmodule Cardanoex.Wallet do
alias Cardanoex.Backend
alias Cardanoex.Util
@type assets :: %{
available: list(),
total: list()
}
@type balance :: %{
available: %{quantity: non_neg_integer(), unit: String.t()},
reward: %{quantity: non_neg_integer(), unit: String.t... | 33.164179 | 141 | 0.612661 |
1af218b829fdd855ebd55aab708dbd474b63dd43 | 1,182 | ex | Elixir | lib/oli/utils/recaptcha.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/utils/recaptcha.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/utils/recaptcha.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Utils.Recaptcha do
@moduledoc """
A module for verifying reCAPTCHA version 2.0 response strings.
See the [documentation](https://developers.google.com/recaptcha/docs/verify)
for more details.
"""
import Oli.HTTP
@headers [
{"Content-type", "application/x-www-form-urlencoded"},
... | 28.829268 | 81 | 0.615059 |
1af22cd639e8509545f17810f28aa838ebc97850 | 1,090 | ex | Elixir | lib/hexerss/feed/rss.ex | Awlexus/hexerss | 88af54129f968435483008c276a2fec6a7489139 | [
"MIT"
] | 2 | 2022-02-09T08:37:53.000Z | 2022-02-09T09:24:15.000Z | lib/hexerss/feed/rss.ex | Awlexus/hexerss | 88af54129f968435483008c276a2fec6a7489139 | [
"MIT"
] | 2 | 2022-02-09T08:43:51.000Z | 2022-02-09T12:19:48.000Z | lib/hexerss/feed/rss.ex | Awlexus/hexerss | 88af54129f968435483008c276a2fec6a7489139 | [
"MIT"
] | null | null | null | defmodule Hexerss.Feed.Rss2 do
@behaviour Hexerss.Feed
alias Hexerss.{Feed, Utils}
alias Hexerss.Feed.Item
@impl true
def content_type(), do: "application/rss+xml"
@impl true
def build_feed(%Feed{} = feed) do
[
~s(<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0"><channel><title>),
... | 24.772727 | 117 | 0.555963 |
1af249c156119f42b256c745474c29545a731f02 | 1,280 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/views/error_helpers.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/views/error_helpers.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/views/error_helpers.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWWWWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content... | 31.219512 | 81 | 0.675 |
1af28dad313f19472ef7d225a9041881aeecd87f | 281 | ex | Elixir | lib/codes/codes_r05.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r05.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r05.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_R05 do
alias IcdCode.ICDCode
def _R05 do
%ICDCode{full_code: "R05",
category_code: "R05",
short_code: "",
full_name: "Cough",
short_name: "Cough",
category_name: "Cough"
}
end
end
| 17.5625 | 38 | 0.569395 |
1af29225d861d8c64f96f63bc949af76062009de | 4,465 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_video_annotation_results.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_video_annotation_results.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1_video_annotation_results.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 40.590909 | 217 | 0.747816 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.