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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8855291ed89a11c140c25ad5dbffff1bd633fb5 | 6,282 | ex | Elixir | lib/type_check/options.ex | baldwindavid/elixir-type_check | af07e2b4830202e8e7ff92ea986136bfef72556f | [
"MIT"
] | null | null | null | lib/type_check/options.ex | baldwindavid/elixir-type_check | af07e2b4830202e8e7ff92ea986136bfef72556f | [
"MIT"
] | null | null | null | lib/type_check/options.ex | baldwindavid/elixir-type_check | af07e2b4830202e8e7ff92ea986136bfef72556f | [
"MIT"
] | null | null | null | defmodule TypeCheck.Options do
import TypeCheck.Internals.Bootstrap.Macros
@moduledoc """
Defines the options that TypeCheck supports on calls to `use TypeCheck`.
Supported options:
- `:overrides`: A list of overrides for remote types. (default: `[]`)
- `:default_overrides`: A boolean. If false, will not ... | 36.103448 | 275 | 0.702324 |
c885691ce40a4f8836be37b80749aef585e5a028 | 2,088 | exs | Elixir | config/prod.exs | muziyoshiz/phoenix_sample_ap_app | d8ef72af5ab55f688c3e4e3ca028af9a9642b727 | [
"MIT"
] | null | null | null | config/prod.exs | muziyoshiz/phoenix_sample_ap_app | d8ef72af5ab55f688c3e4e3ca028af9a9642b727 | [
"MIT"
] | null | null | null | config/prod.exs | muziyoshiz/phoenix_sample_ap_app | d8ef72af5ab55f688c3e4e3ca028af9a9642b727 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.677419 | 78 | 0.727011 |
c88571bfda7e6ec439dea3468780a7a9360b13cc | 1,778 | ex | Elixir | apps/gapi_web/lib/gapi_web.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi_web/lib/gapi_web.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi_web/lib/gapi_web.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | defmodule GapiWeb 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 GapiWeb, :controller
use GapiWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 22.506329 | 76 | 0.681665 |
c885772d1ffdd2d420e72392c61b453a14c8e104 | 617 | ex | Elixir | lib/air_vantage.ex | pvp-technologies/ex_vantage | 3f04dbc5c952f0c44a06132992e9112a1e367915 | [
"MIT"
] | null | null | null | lib/air_vantage.ex | pvp-technologies/ex_vantage | 3f04dbc5c952f0c44a06132992e9112a1e367915 | [
"MIT"
] | null | null | null | lib/air_vantage.ex | pvp-technologies/ex_vantage | 3f04dbc5c952f0c44a06132992e9112a1e367915 | [
"MIT"
] | null | null | null | defmodule AirVantage do
@moduledoc """
A simple HTTP client to communicate with AirVantage API.
"""
@doc """
Callback for the application.
It Starts the supervision tree.
"""
@spec start(Application.start_type(), any) :: {:error, any} | {:ok, pid} | {:ok, pid, any}
def start(_type, args) do
child... | 24.68 | 92 | 0.611021 |
c88587e8d5cab27838b73a4062493cabc300ba73 | 1,274 | ex | Elixir | lib/platform_web/endpoint.ex | ruhrjs/ruhrjs-karaoke | 93c6bee18873ead2854e1bbf835a665cc782f7da | [
"Unlicense"
] | null | null | null | lib/platform_web/endpoint.ex | ruhrjs/ruhrjs-karaoke | 93c6bee18873ead2854e1bbf835a665cc782f7da | [
"Unlicense"
] | null | null | null | lib/platform_web/endpoint.ex | ruhrjs/ruhrjs-karaoke | 93c6bee18873ead2854e1bbf835a665cc782f7da | [
"Unlicense"
] | null | null | null | defmodule PlatformWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :platform
socket "/socket", PlatformWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your st... | 27.106383 | 69 | 0.711146 |
c8859c40ed0cd17754f2ae8c6924885288d93623 | 2,010 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_import_data_operation_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_import_data_operation_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_import_data_operation_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.5 | 118 | 0.735323 |
c8859dde99666dea09d2b9f25d8cea78399dcdca | 2,490 | ex | Elixir | lib/kraken/request.ex | Voronchuk/kraken | 4b5d310ebeab5ddd97039773dc0acd8b566a1236 | [
"MIT"
] | 2 | 2019-02-07T18:36:04.000Z | 2020-07-18T13:53:02.000Z | lib/kraken/request.ex | Voronchuk/kraken | 4b5d310ebeab5ddd97039773dc0acd8b566a1236 | [
"MIT"
] | null | null | null | lib/kraken/request.ex | Voronchuk/kraken | 4b5d310ebeab5ddd97039773dc0acd8b566a1236 | [
"MIT"
] | null | null | null | defmodule Kraken.Request do
@moduledoc """
Worker of Request subscribed to Limiter, call request to API and send an answer to Client.
"""
use GenStage
require Logger
alias Kraken.{Client, Client.RequestParams}
@type state :: :ok
@type options :: [
name: atom() | nil,
limiters: [{atom(), keyw... | 30.365854 | 144 | 0.653815 |
c8859f067535914c14cefdbfd8090d1d154f5248 | 2,804 | ex | Elixir | Benchmarks/Taylor-3D/Extract.ex | pantale/abaqusVumat | 3be9d7edcdc495b1d35594b1c6ef9cbaeb74a8ab | [
"BSD-3-Clause"
] | 19 | 2019-12-22T16:24:18.000Z | 2022-02-28T01:15:36.000Z | Benchmarks/Taylor-3D/Extract.ex | pantale/abaqusVumat | 3be9d7edcdc495b1d35594b1c6ef9cbaeb74a8ab | [
"BSD-3-Clause"
] | null | null | null | Benchmarks/Taylor-3D/Extract.ex | pantale/abaqusVumat | 3be9d7edcdc495b1d35594b1c6ef9cbaeb74a8ab | [
"BSD-3-Clause"
] | 19 | 2019-12-22T16:24:19.000Z | 2022-03-14T15:08:55.000Z | # Built-in model
TimeHistory, job=Taylor_BI, value=MISES, name=mises, region=Element PART-1-1.247 Int Point 1
TimeHistory, job=Taylor_BI, value=PEEQ, name=peeq, region=Element PART-1-1.247 Int Point 1
TimeHistory, job=Taylor_BI, value=TEMP, name=temp, region=Element PART-1-1.247 Int Point 1
TimeHistory, job=Taylor_BI, ... | 65.209302 | 96 | 0.786377 |
c885a0180b022b5540a4155ae5d9e5b2f503ecbb | 3,760 | ex | Elixir | lib/asciinema/asciicasts/asciicast.ex | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/asciicasts/asciicast.ex | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/asciicasts/asciicast.ex | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.Asciicasts.Asciicast do
use Ecto.Schema
import Ecto.Changeset
alias Asciinema.Accounts.User
alias Asciinema.Asciicasts.Asciicast
@default_theme "asciinema"
schema "asciicasts" do
field :version, :integer
field :file, :string
field :terminal_columns, :integer
field :term... | 26.293706 | 93 | 0.690691 |
c885a30d129895b97824835bc3f549248d5d4e33 | 2,535 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/health_status_for_network_endpoint.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/health_status_for_network_endpoint.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/health_status_for_network_endpoint.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.267857 | 192 | 0.752268 |
c885ab1b17a536d5516e230cb1b852e4d30c3306 | 368 | exs | Elixir | priv/repo/seeds.exs | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | 1 | 2018-04-25T15:03:42.000Z | 2018-04-25T15:03:42.000Z | priv/repo/seeds.exs | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# AppElixirPhoenix.Repo.insert!(%AppElixirPhoenix.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so... | 30.666667 | 66 | 0.720109 |
c885e6ad5eb9371305263202e809bc9c08953246 | 1,055 | exs | Elixir | test/tirexs/search/sort_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 384 | 2015-03-09T05:03:42.000Z | 2022-02-27T00:45:58.000Z | test/tirexs/search/sort_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 144 | 2015-03-06T11:19:49.000Z | 2021-06-11T11:26:39.000Z | test/tirexs/search/sort_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 97 | 2015-03-21T13:58:38.000Z | 2022-01-07T14:40:49.000Z | Code.require_file "../../../test_helper.exs", __ENV__.file
defmodule Tirexs.Search.SortTest do
use ExUnit.Case
import Tirexs.Search
test "sort" do
sort = sort do
[
[post_date: [reverse: true]],
[name: "desc"],
[age: "desc"]
]
end
expected = [sort: [[post_date: ... | 23.444444 | 131 | 0.561137 |
c886088fba4ec51a3db5e20786b34a4903ef879c | 1,125 | exs | Elixir | config/config.exs | maxbeizer/test_oof | 1a8a5986aa399c68f74dc50c0ef1c1a49114fa2c | [
"MIT"
] | null | null | null | config/config.exs | maxbeizer/test_oof | 1a8a5986aa399c68f74dc50c0ef1c1a49114fa2c | [
"MIT"
] | null | null | null | config/config.exs | maxbeizer/test_oof | 1a8a5986aa399c68f74dc50c0ef1c1a49114fa2c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752 |
c8861e852eb9fc4416b7a73668f99197cab477a1 | 2,168 | exs | Elixir | config/prod.exs | erwald/hangman | 38c8b6cc45bb3bf9f44d6fe5d33714b40dd78d26 | [
"MIT"
] | 1 | 2016-06-28T10:48:46.000Z | 2016-06-28T10:48:46.000Z | config/prod.exs | erwald/hangman | 38c8b6cc45bb3bf9f44d6fe5d33714b40dd78d26 | [
"MIT"
] | null | null | null | config/prod.exs | erwald/hangman | 38c8b6cc45bb3bf9f44d6fe5d33714b40dd78d26 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.848485 | 67 | 0.712177 |
c886423c36f6017dcda1fa6e434618a6102e81a4 | 10,692 | ex | Elixir | lib/ecto_job/job_queue.ex | stone-payments/ecto_job | b0c42c597aa5b5dd4651306d1d2a9b5b04194180 | [
"MIT"
] | 1 | 2019-06-04T17:23:36.000Z | 2019-06-04T17:23:36.000Z | lib/ecto_job/job_queue.ex | stone-payments/ecto_job | b0c42c597aa5b5dd4651306d1d2a9b5b04194180 | [
"MIT"
] | null | null | null | lib/ecto_job/job_queue.ex | stone-payments/ecto_job | b0c42c597aa5b5dd4651306d1d2a9b5b04194180 | [
"MIT"
] | 1 | 2018-08-28T16:11:11.000Z | 2018-08-28T16:11:11.000Z | defmodule EctoJob.JobQueue do
@moduledoc """
Mixin for defining an Ecto schema for a Job Queue table in the database.
## Example
defmodule MyApp.JobQueue do
use EctoJob.JobQueue, table_name: "jobs"
@spec perform(Ecto.Multi.t(), map()) :: any()
def perform(multi, job = %{}) do
... | 30.81268 | 138 | 0.614291 |
c88648f9b3e1574875fc44b60c2cbf2753aabc4b | 1,609 | ex | Elixir | apps/andi/lib/andi_web/router.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/andi/lib/andi_web/router.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2020-01-09T21:00:10.000Z | 2020-01-09T21:00:10.000Z | apps/andi/lib/andi_web/router.ex | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule AndiWeb.Router do
use AndiWeb, :router
@csp "default-src 'self';" <>
"style-src 'self' 'unsafe-inline' 'unsafe-eval' https://fonts.googleapis.com;" <>
"script-src 'self' 'unsafe-inline' 'unsafe-eval';" <>
"font-src https://fonts.gstatic.com data: 'self';" <>
"img-src '... | 31.54902 | 97 | 0.679304 |
c88649959c533b55b5a828eba5fa684045b8114d | 2,745 | exs | Elixir | apps/service_persist/test/persist/writer/two_step_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_persist/test/persist/writer/two_step_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_persist/test/persist/writer/two_step_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Persist.Writer.TwoStepTest do
use ExUnit.Case
require Temp.Env
import Mox
setup :set_mox_global
Temp.Env.modify([
%{
app: :service_persist,
key: Persist.Writer.TwoStep,
set: [
writer: WriterMock,
staged_batches_count: 1
]
},
%{
app: :servic... | 25.654206 | 98 | 0.617851 |
c8866ad2804999b7d55828554bc77ac1fc7f4701 | 19,883 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/images.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/images.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/images.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... | 57.96793 | 1,327 | 0.706533 |
c886a6a9a1a9b9c4b2c2fc947cf83d7b7af1e5c4 | 534 | ex | Elixir | apps/bus_detective_web/lib/bus_detective_web/application.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective_web/lib/bus_detective_web/application.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective_web/lib/bus_detective_web/application.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | defmodule BusDetectiveWeb.Application do
@moduledoc false
use Application
alias BusDetectiveWeb.{Endpoint, RealtimeBroker}
def start(_type, _args) do
import Supervisor.Spec
children = [
supervisor(BusDetectiveWeb.Endpoint, []),
{RealtimeBroker, name: RealtimeBroker}
]
opts = [str... | 22.25 | 69 | 0.722846 |
c886e2d6f8f2aa7aafed01f1303e2b57918b35ce | 1,425 | ex | Elixir | lib/server_sent_event_stage/event.ex | mogorman/server_sent_event_stage | 70a9396f9dcb1d22c5f01b61935096d895420ba9 | [
"MIT"
] | 3 | 2021-05-26T00:40:15.000Z | 2022-01-06T20:01:35.000Z | lib/server_sent_event_stage/event.ex | mogorman/server_sent_event_stage | 70a9396f9dcb1d22c5f01b61935096d895420ba9 | [
"MIT"
] | 11 | 2018-08-11T18:37:34.000Z | 2022-03-25T13:41:44.000Z | lib/server_sent_event_stage/event.ex | mogorman/server_sent_event_stage | 70a9396f9dcb1d22c5f01b61935096d895420ba9 | [
"MIT"
] | 3 | 2018-08-11T18:29:17.000Z | 2019-05-17T16:55:41.000Z | defmodule ServerSentEventStage.Event do
@moduledoc """
A single ServerSentEvent (SSE) from a server.
The SSE protocol is defined by the [W3C](
https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream).
"""
defstruct event: "message",
data: ""
@type t :: %__MODUL... | 23.75 | 90 | 0.614035 |
c8870aecd8cbe5f848438ef02212170349062b2e | 1,615 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/backend.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/backend.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/backend.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... | 33.645833 | 202 | 0.751084 |
c88732b336ce39fc970f3f853892365a80cc6aaa | 23,979 | ex | Elixir | test/support/data.ex | the-mikedavis/duckduck | b76e3d9e7756e1c5eaa5488f817d28e0a0553e5b | [
"BSD-3-Clause"
] | 3 | 2018-12-06T02:46:16.000Z | 2020-09-25T02:07:19.000Z | test/support/data.ex | the-mikedavis/duckduck | b76e3d9e7756e1c5eaa5488f817d28e0a0553e5b | [
"BSD-3-Clause"
] | 2 | 2018-12-25T14:54:32.000Z | 2019-11-08T02:13:56.000Z | test/support/data.ex | the-mikedavis/duckduck | b76e3d9e7756e1c5eaa5488f817d28e0a0553e5b | [
"BSD-3-Clause"
] | null | null | null | defmodule DuckDuck.TestData do
@moduledoc """
Data I've sourced from doing real uploads. Used in the moxing of the
http requests.
"""
def token_http_response do
{:ok,
%HTTPoison.Response{
body:
"{\"id\":148537170,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxNDg1MzcxNzA=\",\"name\":\"doc_gen\",\... | 75.169279 | 4,343 | 0.641228 |
c887d64dff95f71e11909380540b5c296a4d4895 | 380 | exs | Elixir | identicon/test/identicon_test.exs | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | 1 | 2021-04-13T06:48:57.000Z | 2021-04-13T06:48:57.000Z | identicon/test/identicon_test.exs | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | null | null | null | identicon/test/identicon_test.exs | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | null | null | null | defmodule IdenticonTest do
use ExUnit.Case
doctest Identicon
test "hash_input should return the same list each time we call it" do
assert Identicon.hash_input("str") == Identicon.hash_input("str")
end
test "hash_input should return different list when we call different strings" do
refute Identicon.h... | 27.142857 | 82 | 0.75 |
c887e36a1d45dc45f2cd7cbd6cc1dc4c59847e2a | 2,420 | ex | Elixir | lib/guilda_web.ex | wilcorrea-forks/GuildaEx | ef3876cf51c7555da713535c965f39a1f0622054 | [
"MIT"
] | null | null | null | lib/guilda_web.ex | wilcorrea-forks/GuildaEx | ef3876cf51c7555da713535c965f39a1f0622054 | [
"MIT"
] | null | null | null | lib/guilda_web.ex | wilcorrea-forks/GuildaEx | ef3876cf51c7555da713535c965f39a1f0622054 | [
"MIT"
] | null | null | null | defmodule GuildaWeb 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 GuildaWeb, :controller
use GuildaWeb, :view
The definitions below will be executed for every view,
controller, etc... | 22.407407 | 78 | 0.682645 |
c887ff78d8db181560e6087d842653c6726a697b | 3,481 | ex | Elixir | lib/probe/definitions.ex | atlas-forks/instruments | 9df31ecf5388916fbd7a5ebb331ebac371df3e9d | [
"MIT"
] | null | null | null | lib/probe/definitions.ex | atlas-forks/instruments | 9df31ecf5388916fbd7a5ebb331ebac371df3e9d | [
"MIT"
] | null | null | null | lib/probe/definitions.ex | atlas-forks/instruments | 9df31ecf5388916fbd7a5ebb331ebac371df3e9d | [
"MIT"
] | null | null | null | defmodule Instruments.Probe.Definitions do
@moduledoc false
use GenServer
alias Instruments.Probe
alias Instruments.Probe.Errors
@type definition_errors :: {:error, {:probe_names_taken, [String.t()]}}
@type definition_response :: {:ok, [String.t()]} | definition_errors
@probe_prefix Application.get_env... | 30.80531 | 96 | 0.643206 |
c8882435741acd212f625de629d69ff81ea985cf | 2,494 | ex | Elixir | apps/site/lib/site_web/controllers/places_controller.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/controllers/places_controller.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/controllers/places_controller.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.PlacesController do
@moduledoc """
Routes for requesting data from Google Maps.
"""
use SiteWeb, :controller
alias GoogleMaps.{Geocode, Place, Place.AutocompleteQuery}
alias Plug.Conn
alias SiteWeb.ControllerHelpers
@spec autocomplete(Conn.t(), map) :: Conn.t()
def autocomplete(conn... | 32.38961 | 96 | 0.659182 |
c8883c94da6135804dd9fbee57d02a3dd005d9a2 | 4,049 | ex | Elixir | integration_test/test/support/code_generator_case.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | integration_test/test/support/code_generator_case.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | integration_test/test/support/code_generator_case.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule Potionx.Integration.CodeGeneratorCase do
use ExUnit.CaseTemplate
using do
quote do
import unquote(__MODULE__)
end
end
def generate_potionx_app(tmp_dir, app_name, opts \\ [])
when is_binary(app_name) and is_list(opts) do
app_path = Path.expand(app_name, tmp_dir)
integratio... | 26.464052 | 164 | 0.636947 |
c8885e2482e74847f7e51d610c8a7791f6ab8279 | 2,048 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_list_intents_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_list_intents_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_list_intents_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.236364 | 236 | 0.750488 |
c8886ac9f71c5d37ef06f99dfc96c4d5e4e015a6 | 129 | exs | Elixir | 2021/ecto/tome/test/tome_test.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2021/ecto/tome/test/tome_test.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2021/ecto/tome/test/tome_test.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule TomeTest do
use ExUnit.Case
doctest Tome
test "greets the world" do
assert Tome.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
c8887077578b2d8f2cf179cd84667f90ce6a9b70 | 63 | ex | Elixir | entity/lib/entity/repo.ex | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 27 | 2016-12-28T15:00:19.000Z | 2021-11-09T12:55:23.000Z | entity/lib/entity/repo.ex | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 5 | 2017-02-13T13:11:55.000Z | 2019-07-22T19:38:09.000Z | entity/lib/entity/repo.ex | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 8 | 2017-02-08T10:18:50.000Z | 2020-06-01T11:42:04.000Z | defmodule Entity.Repo do
use Ecto.Repo, otp_app: :entity
end
| 15.75 | 33 | 0.761905 |
c8888bd46c677dbc4be8e33c93c67786bafb45f0 | 1,466 | exs | Elixir | mix.exs | JJCOINCWEBDEV/oauth2 | 9d8f06b1e83204689ec73142f7a642d8c678a636 | [
"MIT"
] | null | null | null | mix.exs | JJCOINCWEBDEV/oauth2 | 9d8f06b1e83204689ec73142f7a642d8c678a636 | [
"MIT"
] | null | null | null | mix.exs | JJCOINCWEBDEV/oauth2 | 9d8f06b1e83204689ec73142f7a642d8c678a636 | [
"MIT"
] | 1 | 2020-02-07T15:27:26.000Z | 2020-02-07T15:27:26.000Z | defmodule OAuth2.Mixfile do
use Mix.Project
@version "0.9.2"
def project do
[app: :oauth2,
name: "OAuth2",
version: @version,
elixir: "~> 1.2",
deps: deps(),
package: package(),
description: description(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env),
test... | 23.269841 | 60 | 0.567531 |
c888c2cd0903fe3fe18321d9cff3b1c837036f68 | 2,017 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/audit_log_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/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/audit_log_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/audit_log_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... | 40.34 | 316 | 0.732771 |
c888ce3231322bed7b72b1253be6cde204360f50 | 4,252 | ex | Elixir | lib/stripe/subscriptions/subscription_item.ex | devin-henslee/stripity_stripe | 987782aab0c08ebdb3b988b43fc4b27e3443f06f | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_item.ex | devin-henslee/stripity_stripe | 987782aab0c08ebdb3b988b43fc4b27e3443f06f | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_item.ex | devin-henslee/stripity_stripe | 987782aab0c08ebdb3b988b43fc4b27e3443f06f | [
"BSD-3-Clause"
] | 1 | 2021-06-28T08:42:34.000Z | 2021-06-28T08:42:34.000Z | defmodule Stripe.SubscriptionItem do
@moduledoc """
Work with Stripe subscription item objects.
Stripe API reference: https://stripe.com/docs/api#subscription_items
"""
use Stripe.Entity
import Stripe.Request
@type t :: %__MODULE__{
id: Stripe.id(),
object: String.t(),
bil... | 31.036496 | 98 | 0.558561 |
c888d2122164483688e20140f650f06d8b4082bd | 981 | ex | Elixir | test/support/telemetry_handler.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | 2,219 | 2019-04-10T01:50:19.000Z | 2022-03-30T11:20:01.000Z | test/support/telemetry_handler.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | 532 | 2019-05-16T00:22:28.000Z | 2022-03-31T19:04:02.000Z | test/support/telemetry_handler.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | 230 | 2019-05-15T14:15:18.000Z | 2022-03-23T22:59:43.000Z | defmodule Oban.TelemetryHandler do
@moduledoc """
This utility module is used during job tests to capture telemetry events
and send them back to the test processes that registered the handler.
"""
def attach_events(name) do
events = [
[:oban, :job, :start],
[:oban, :job, :stop],
[:oban,... | 28.852941 | 77 | 0.642202 |
c88903484a68017dce175df82ec88935de0b209b | 724 | ex | Elixir | sample_server/lib/sample_server_web/gettext.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 31 | 2019-03-26T15:26:21.000Z | 2022-02-16T14:33:13.000Z | sample_server/lib/sample_server_web/gettext.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 3 | 2019-04-05T19:45:09.000Z | 2019-10-25T01:48:57.000Z | sample_server/lib/sample_server_web/gettext.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 5 | 2019-03-27T14:16:28.000Z | 2022-02-18T12:01:46.000Z | defmodule SampleServerWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import SampleServerWeb.Gettext
# Simple translation
gettext ... | 28.96 | 72 | 0.687845 |
c8890b0f2cfb1187d6d170b25639474aafbbcb18 | 1,464 | ex | Elixir | lib/exi18n/cache.ex | werkzeugh/exi18n | c29780ba56f516dca471e1cc2379c37ea85cb04b | [
"MIT"
] | null | null | null | lib/exi18n/cache.ex | werkzeugh/exi18n | c29780ba56f516dca471e1cc2379c37ea85cb04b | [
"MIT"
] | null | null | null | lib/exi18n/cache.ex | werkzeugh/exi18n | c29780ba56f516dca471e1cc2379c37ea85cb04b | [
"MIT"
] | null | null | null | defmodule ExI18n.Cache do
@moduledoc """
Cache that manage loaded locales.
"""
use GenServer
@table :exi18n_locales
@doc """
Starts a cache server.
"""
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
@doc """
Initialize cache table.
"""
def init(:ok) do
... | 22.181818 | 217 | 0.579918 |
c88939388dde0de8201a9d568366ff51eecbbcd0 | 1,053 | ex | Elixir | lib/discovery_api/schemas/organizations.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | lib/discovery_api/schemas/organizations.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | lib/discovery_api/schemas/organizations.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Schemas.Organizations do
@moduledoc """
Interface for reading and writing the Organization schema.
"""
alias DiscoveryApi.Repo
alias DiscoveryApi.Schemas.Organizations.Organization
def list_organizations do
Repo.all(Organization)
end
def create_or_update(%SmartCity.Organizat... | 25.682927 | 76 | 0.680912 |
c8896ec97058cad6dec1e4f647ad3035a5ada67d | 223,976 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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... | 48.177242 | 682 | 0.625692 |
c8898e794ceeaa1cc64c326bbb0db7d821b2e996 | 1,410 | ex | Elixir | lib/checkout.ex | qixxit/two_phase_commit_example | 7fbaf03dbf81c4a5d4e989b787f905c0e162899d | [
"BSD-2-Clause"
] | 1 | 2020-06-25T01:57:09.000Z | 2020-06-25T01:57:09.000Z | lib/checkout.ex | qixxit/two_phase_commit_example | 7fbaf03dbf81c4a5d4e989b787f905c0e162899d | [
"BSD-2-Clause"
] | null | null | null | lib/checkout.ex | qixxit/two_phase_commit_example | 7fbaf03dbf81c4a5d4e989b787f905c0e162899d | [
"BSD-2-Clause"
] | 1 | 2019-01-09T18:06:18.000Z | 2019-01-09T18:06:18.000Z | defmodule Checkout do
alias Traktor.Store.InMemory, as: Store
defmodule State do
defstruct [:authorization_ref, :booking_ref, :capture_ref, :amount, :product_ref]
end
def init(product) do
state = %State{amount: product.amount, product_ref: product.ref}
Store.start_link(state)
end
def run(ref... | 23.5 | 95 | 0.619149 |
c889d1b7ab43244e5f984ca48e658af9f2d5bda1 | 3,136 | exs | Elixir | test/acceptance/inline_code_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/acceptance/inline_code_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/acceptance/inline_code_test.exs | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.InlineCodeTest do
use ExUnit.Case
import Support.Helpers, only: [as_html: 1]
describe "Inline Code" do
test "plain simple" do
markdown = "`foo`\n"
html = "<p><code class=\"inline\">foo</code></p>\n"
messages = []
assert as_html(markdown) == {:ok, html, messages}... | 26.352941 | 81 | 0.548151 |
c88a3e247d6754c5b2bc05bf4af057793803f11b | 1,344 | ex | Elixir | test/support/test_gen_server.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 244 | 2016-10-10T15:30:32.000Z | 2021-08-11T08:45:53.000Z | test/support/test_gen_server.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 242 | 2016-10-10T19:34:44.000Z | 2020-11-20T18:56:43.000Z | test/support/test_gen_server.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | 35 | 2016-12-04T07:33:04.000Z | 2020-06-17T20:22:11.000Z | defmodule Timber.TestGenServer do
@moduledoc false
use GenServer
def start_link(pid) do
GenServer.start_link(__MODULE__, pid)
end
def do_throw(pid) do
send(pid, :throw)
end
def bad_exit(pid) do
send(pid, :bad_exit)
end
def raise(pid) do
send(pid, :raise)
end
def divide(pid, d... | 17.230769 | 64 | 0.66369 |
c88a508bad0196aee0c3a5548e3d29d57bf2c043 | 29,220 | ex | Elixir | lib/aws/generated/imagebuilder.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/imagebuilder.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/imagebuilder.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Imagebuilder do
@moduledoc """
EC2 Image Builder is a fully managed Amazon Web Services service that makes it
easier to automate the creation, management, and deployment of customized,
sec... | 22.254379 | 186 | 0.617522 |
c88a5278f55f30f6207332ae9ce15d911771fc8c | 135 | ex | Elixir | lib/rocketpay.ex | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | lib/rocketpay.ex | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | lib/rocketpay.ex | lucasliet/rocketpay-elixir | e0c202e2117b2aef72e7b4800c9322efa59c604a | [
"MIT"
] | null | null | null | defmodule Rocketpay do
alias Rocketpay.Users.Create, as: UserCreate
defdelegate create_user(params), to: UserCreate, as: :call
end
| 27 | 60 | 0.785185 |
c88a7194ed09cafd9bc6246588b97950009ae6c1 | 859 | exs | Elixir | mix.exs | jwarlander/exasol-elixir | 5fb712ccfcb9b2bcd05dd1709ad17915d471e6f7 | [
"MIT"
] | null | null | null | mix.exs | jwarlander/exasol-elixir | 5fb712ccfcb9b2bcd05dd1709ad17915d471e6f7 | [
"MIT"
] | null | null | null | mix.exs | jwarlander/exasol-elixir | 5fb712ccfcb9b2bcd05dd1709ad17915d471e6f7 | [
"MIT"
] | null | null | null | defmodule Exasol.Mixfile do
use Mix.Project
@project_url "https://github.com/jwarlander/exasol-elixir"
def project do
[
app: :exasol,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
descripti... | 18.276596 | 63 | 0.520373 |
c88a7736a285f3449f5244fe2b82a3ff8a9ae09b | 2,646 | ex | Elixir | apps/heroes_web/lib/web/channels/channel_watcher.ex | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | 2 | 2020-04-09T06:42:15.000Z | 2022-03-03T15:52:38.000Z | apps/heroes_web/lib/web/channels/channel_watcher.ex | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | 5 | 2020-04-28T16:05:46.000Z | 2021-01-03T14:08:19.000Z | apps/heroes_web/lib/web/channels/channel_watcher.ex | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | null | null | null | defmodule Web.ChannelWatcher do
@moduledoc """
Watches game channels activity to remove heroes when players disconnect.
"""
use GenServer, restart: :transient
alias Phoenix.PubSub
alias Phoenix.Socket.Broadcast
@typep presences :: Phoenix.Presence.presences()
@typep diff :: %{joins: presences, leaves... | 26.46 | 100 | 0.642101 |
c88a8226992bb79b159a211b09b5a4a3a324b077 | 22,347 | exs | Elixir | test/livebook/session_test.exs | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 1 | 2022-02-16T09:13:27.000Z | 2022-02-16T09:13:27.000Z | test/livebook/session_test.exs | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | test/livebook/session_test.exs | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.SessionTest do
use ExUnit.Case, async: true
alias Livebook.{Session, Delta, Runtime, Utils, Notebook, FileSystem}
alias Livebook.Notebook.{Section, Cell}
setup do
session = start_session()
%{session: session}
end
describe "file_name_for_download/1" do
@tag :tmp_dir
test... | 34.432974 | 102 | 0.667741 |
c88a8c2f51f520435e2d55317332dd1700d09b26 | 1,654 | exs | Elixir | config/dev.exs | lopes05/rocketpay_nlw | f77a586592700f5263d4a96fb965497223c636c8 | [
"MIT"
] | null | null | null | config/dev.exs | lopes05/rocketpay_nlw | f77a586592700f5263d4a96fb965497223c636c8 | [
"MIT"
] | null | null | null | config/dev.exs | lopes05/rocketpay_nlw | f77a586592700f5263d4a96fb965497223c636c8 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :rocketpay, Rocketpay.Repo,
username: "postgres",
password: "postgres",
database: "rocketpay_dev",
hostname: "db",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.... | 28.517241 | 68 | 0.726723 |
c88ab383bec51e437f3e689d597f1f992a7d3980 | 2,902 | ex | Elixir | lib/ex_green_yet_core/server_check_api.ex | Plangora/ex_green_yet_core | 7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f | [
"MIT"
] | null | null | null | lib/ex_green_yet_core/server_check_api.ex | Plangora/ex_green_yet_core | 7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f | [
"MIT"
] | null | null | null | lib/ex_green_yet_core/server_check_api.ex | Plangora/ex_green_yet_core | 7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f | [
"MIT"
] | null | null | null | defmodule ExGreenYetCore.ServerCheckApi do
@moduledoc """
This is the internal API user in the ServerCheck GenServer. It has been extracted to make it easier to test.
"""
@doc """
Used to parse responses from HTTPoison when checking the current server status. Response must return a 200 code or else it wi... | 38.693333 | 155 | 0.692626 |
c88abb6fd0a245fbf8782047ad7edb27313a36da | 11,804 | exs | Elixir | deps/ecto/integration_test/sql/migration.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | deps/ecto/integration_test/sql/migration.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/sql/migration.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | defmodule Ecto.Integration.MigrationTest do
# Cannot be async as other tests may migrate
use ExUnit.Case
alias Ecto.Integration.PoolRepo
defmodule CreateMigration do
use Ecto.Migration
@table table(:create_table_migration)
@index index(:create_table_migration, [:value], unique: true)
def up ... | 27.515152 | 97 | 0.686632 |
c88adcc2a702145c9f4b0727158db68253fdcb4f | 1,964 | ex | Elixir | lib/elixir_jobs_web/router.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/router.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | lib/elixir_jobs_web/router.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | defmodule ElixirJobsWeb.Router do
use ElixirJobsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug ElixirJobsWeb.Plugs.GuardianPipeline
end
pipeline :authentication_required d... | 29.757576 | 85 | 0.692974 |
c88b118022b601e41c6d0bb351a83a9424d4eae7 | 75 | ex | Elixir | lib/phoenix_toggl/web/views/layout_view.ex | arashm/phoenix-toggl | 3a7b8470c48efdbe84bd9dc29403aea851e90986 | [
"MIT"
] | null | null | null | lib/phoenix_toggl/web/views/layout_view.ex | arashm/phoenix-toggl | 3a7b8470c48efdbe84bd9dc29403aea851e90986 | [
"MIT"
] | null | null | null | lib/phoenix_toggl/web/views/layout_view.ex | arashm/phoenix-toggl | 3a7b8470c48efdbe84bd9dc29403aea851e90986 | [
"MIT"
] | 1 | 2020-02-14T20:31:58.000Z | 2020-02-14T20:31:58.000Z | defmodule PhoenixToggl.Web.LayoutView do
use PhoenixToggl.Web, :view
end
| 18.75 | 40 | 0.813333 |
c88b2487d8a3c2fc73e76dae1eb4158eccb729e7 | 3,621 | ex | Elixir | lib/day14.ex | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | lib/day14.ex | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | lib/day14.ex | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | defmodule Day14 do
@moduledoc """
Advent of Code 2019
Day 14: Space Stoichiometry
"""
alias Day14.{Part1, Part2}
def get_reactions() do
Path.join(__DIR__, "inputs/day14.txt")
|> File.open!()
|> IO.stream(:line)
|> parse_reactions()
end
def parse_reactions(lines) do
lines
|> St... | 26.822222 | 86 | 0.645678 |
c88b2580d4e8829a788362e3f5458352cb0ebd59 | 11,560 | ex | Elixir | lib/minizinc_port.ex | bglusman/solverl | e12bf6ac3d58e885f7e212881991cbd669c6fe09 | [
"MIT"
] | null | null | null | lib/minizinc_port.ex | bglusman/solverl | e12bf6ac3d58e885f7e212881991cbd669c6fe09 | [
"MIT"
] | null | null | null | lib/minizinc_port.ex | bglusman/solverl | e12bf6ac3d58e885f7e212881991cbd669c6fe09 | [
"MIT"
] | null | null | null | defmodule MinizincPort do
@moduledoc false
# Port server for Minizinc solver executable.
use GenServer
require Logger
# GenServer API
def start_link(model_info, solver, solver_opts, opts) do
GenServer.start_link(__MODULE__, [model_info, solver, solver_opts], opts)
end
def init([model_info, solve... | 24.595745 | 121 | 0.617128 |
c88b5716c8496813e712b5eca189acc966df5acb | 22,738 | ex | Elixir | lib/elixir/lib/calendar/time.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/time.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/time.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | defmodule Time do
@moduledoc """
A Time struct and functions.
The Time struct contains the fields hour, minute, second and microseconds.
New times can be built with the `new/4` function or using the
`~T` (see `sigil_T/2`) sigil:
iex> ~T[23:00:07.001]
~T[23:00:07.001]
Both `new/4` and sigil re... | 28.782278 | 102 | 0.621822 |
c88b5af9a4a8ef8e4dbb21a1e1b58587f7d92429 | 1,532 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/lookup_invoice_currency_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/lookup_invoice_currency_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/lookup_invoice_currency_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.595745 | 116 | 0.753916 |
c88b69d232d13f633dd405072856e9241ac965b9 | 1,900 | exs | Elixir | mix.exs | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | mix.exs | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | mix.exs | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule Githubist.Mixfile do
use Mix.Project
def project do
[
app: :githubist,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.536232 | 79 | 0.559474 |
c88b816443b2605c249c7a95d212ceb54b12a2ce | 1,380 | ex | Elixir | lib/riffed/macro_helpers.ex | renderedtext/riffed | f7d772753236d6c52ba685cf49e501e9b7c930b0 | [
"Apache-2.0"
] | null | null | null | lib/riffed/macro_helpers.ex | renderedtext/riffed | f7d772753236d6c52ba685cf49e501e9b7c930b0 | [
"Apache-2.0"
] | 1 | 2018-06-19T01:12:29.000Z | 2018-06-20T19:22:17.000Z | lib/riffed/macro_helpers.ex | renderedtext/riffed | f7d772753236d6c52ba685cf49e501e9b7c930b0 | [
"Apache-2.0"
] | 2 | 2018-06-18T20:14:19.000Z | 2021-05-25T23:20:36.000Z | defmodule Riffed.MacroHelpers do
@moduledoc false
def build_arg_list(size) when is_integer(size) do
case size do
0 -> []
size ->
Enum.map(1..size, fn(param_idx) ->
:"arg_#{param_idx}"
|> Macro.var(nil)
end)
end
end
def b... | 34.5 | 92 | 0.561594 |
c88b8be943bba509dd8245c4ec1b339c8270beca | 168 | exs | Elixir | config/test.exs | kianmeng/ex_aws_sqs | 7b8f90b26ba7495e3c589b87c185a40677aa284a | [
"MIT",
"Unlicense"
] | null | null | null | config/test.exs | kianmeng/ex_aws_sqs | 7b8f90b26ba7495e3c589b87c185a40677aa284a | [
"MIT",
"Unlicense"
] | null | null | null | config/test.exs | kianmeng/ex_aws_sqs | 7b8f90b26ba7495e3c589b87c185a40677aa284a | [
"MIT",
"Unlicense"
] | null | null | null | use Mix.Config
config :ex_aws, :sqs,
access_key_id: "foo",
secret_access_key: "bar",
scheme: "http://",
host: "localhost",
port: 9324,
region: "us-east-1"
| 16.8 | 27 | 0.636905 |
c88bf93633c43e3d96532e8cb90532b90c1ade96 | 2,630 | exs | Elixir | test/excoap_test.exs | mbialon/excoap | 929c3c799d6fd664acbc0caf0022a62f0d702df1 | [
"MIT"
] | 3 | 2015-09-26T06:57:56.000Z | 2016-12-14T17:08:44.000Z | test/excoap_test.exs | mbialon/excoap | 929c3c799d6fd664acbc0caf0022a62f0d702df1 | [
"MIT"
] | 1 | 2018-12-17T19:54:52.000Z | 2018-12-17T19:54:52.000Z | test/excoap_test.exs | mbialon/excoap | 929c3c799d6fd664acbc0caf0022a62f0d702df1 | [
"MIT"
] | null | null | null | defmodule ExcoapTest do
use ExUnit.Case
test "decode con get without token, options, and payload" do
msg = Excoap.decode <<1 :: size(2), 0 :: size(2), 0 :: size(4), 1 :: size(8), 279 :: size(16)>>
assert msg == %Excoap.Message{ver: 1, type: :con, code: :get, mid: 279, token: <<>>, options: [], payload: <<>... | 53.673469 | 202 | 0.575285 |
c88bfa092345ac1e8b443637e19264dd0fb15868 | 1,369 | ex | Elixir | lib/ace/http2/frame/6_ping.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | 1 | 2021-11-22T10:30:44.000Z | 2021-11-22T10:30:44.000Z | lib/ace/http2/frame/6_ping.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | null | null | null | lib/ace/http2/frame/6_ping.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | 1 | 2021-11-22T10:31:48.000Z | 2021-11-22T10:31:48.000Z | defmodule Ace.HTTP2.Frame.Ping do
@moduledoc false
@type t :: %__MODULE__{ack: boolean}
@enforce_keys [:identifier, :ack]
defstruct @enforce_keys
@type_id 6
def new(identifier, ack \\ false) when bit_size(identifier) == 64 do
%__MODULE__{identifier: identifier, ack: ack}
end
def ack(%__MODULE__... | 25.830189 | 97 | 0.639883 |
c88c199231e5103c015b714c2ab91ac7413d06b3 | 4,787 | ex | Elixir | lib/schema/rest/rest.ex | omnifroodle/astraex | 873d5ca985c8387f236c086ffb76780092823e01 | [
"Apache-2.0"
] | 3 | 2021-02-16T20:30:52.000Z | 2021-08-16T15:02:59.000Z | lib/schema/rest/rest.ex | omnifroodle/astraex | 873d5ca985c8387f236c086ffb76780092823e01 | [
"Apache-2.0"
] | null | null | null | lib/schema/rest/rest.ex | omnifroodle/astraex | 873d5ca985c8387f236c086ffb76780092823e01 | [
"Apache-2.0"
] | null | null | null | defmodule Astra.Schema.Rest do
alias Astra.Schema.Http
@moduledoc """
Functions for working with the REST (aka keyspace) schema APIs
"""
@doc """
retrieve a list of all keyspaces in the cluster
"""
def get_keyspaces, do: Http.get("keyspaces") |> Http.parse_response
@doc """
create a n... | 28.325444 | 126 | 0.533737 |
c88c23112ad19d14892567455e6ccf3aee920351 | 6,135 | exs | Elixir | test/server_sent_event_stage_test.exs | paulswartz/server_sent_event_stage | 1740c641cbefb95a7f45d9b0a3fe9107eede1d33 | [
"MIT"
] | null | null | null | test/server_sent_event_stage_test.exs | paulswartz/server_sent_event_stage | 1740c641cbefb95a7f45d9b0a3fe9107eede1d33 | [
"MIT"
] | null | null | null | test/server_sent_event_stage_test.exs | paulswartz/server_sent_event_stage | 1740c641cbefb95a7f45d9b0a3fe9107eede1d33 | [
"MIT"
] | null | null | null | defmodule ServerSentEventStageTest do
use ExUnit.Case
import ServerSentEventStage
alias ServerSentEventStage.Event
@moduletag :capture_log
@assert_receive_timeout 500
describe "start_link/1" do
test "returns a pid when a URL is provided" do
assert {:ok, pid} = start_link(url: "http://httpbin.or... | 30.829146 | 95 | 0.632763 |
c88c27559a500b903f2363373cdab1784a28ce44 | 1,784 | ex | Elixir | clients/books/lib/google_api/books/v1/model/offers_items.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/books/lib/google_api/books/v1/model/offers_items.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/books/lib/google_api/books/v1/model/offers_items.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.857143 | 96 | 0.684978 |
c88c33e1b30ab5a8728f072a5009ade8a9021271 | 80 | exs | Elixir | test/winner_web/views/layout_view_test.exs | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | test/winner_web/views/layout_view_test.exs | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | test/winner_web/views/layout_view_test.exs | manojsamanta/winner | 63293ff2f53e7dd271470bfb36498a303a2394b0 | [
"MIT"
] | null | null | null | defmodule WinnerWeb.LayoutViewTest do
use WinnerWeb.ConnCase, async: true
end
| 20 | 37 | 0.825 |
c88c53486942b2bb74056cb30943d1a64f4691b3 | 4,706 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/administrative_body.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/civic_info/lib/google_api/civic_info/v2/model/administrative_body.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/administrative_body.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 ... | 54.72093 | 180 | 0.71802 |
c88ca0a6af775023884912433a2a14895f51b099 | 1,022 | ex | Elixir | lib/guardian.ex | Betterez/btrz_ex_auth_api | cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed | [
"MIT"
] | 1 | 2018-10-16T08:13:12.000Z | 2018-10-16T08:13:12.000Z | lib/guardian.ex | Betterez/btrz_ex_auth_api | cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed | [
"MIT"
] | null | null | null | lib/guardian.ex | Betterez/btrz_ex_auth_api | cf4fc4826a4b41d527b2cf50d1cbfbe34973c1ed | [
"MIT"
] | null | null | null | defmodule BtrzAuth.Guardian do
@moduledoc false
use Guardian,
otp_app: :btrz_ex_auth_api,
issuer: "btrz-api-client"
def subject_for_token(resource, _claims) when resource == %{} do
# encode_and_sign callback
# You can use any value for the subject of your token but
# it should be useful in re... | 30.058824 | 74 | 0.684932 |
c88cb5c1df5ea0dcdd6b78a2b1afefcd220b74c2 | 2,170 | ex | Elixir | tasks/generate_data.ex | maennchen/countriex | 9f8bda3db84ff154be589bdc924459a318fb54eb | [
"MIT"
] | 24 | 2016-11-01T12:42:09.000Z | 2022-02-26T20:43:12.000Z | tasks/generate_data.ex | maennchen/countriex | 9f8bda3db84ff154be589bdc924459a318fb54eb | [
"MIT"
] | 2 | 2018-06-19T09:48:02.000Z | 2019-06-11T12:18:41.000Z | tasks/generate_data.ex | maennchen/countriex | 9f8bda3db84ff154be589bdc924459a318fb54eb | [
"MIT"
] | 8 | 2017-06-29T12:18:09.000Z | 2021-05-26T05:06:24.000Z | defmodule Mix.Tasks.Countriex.GenerateData do
alias Countriex.{Country, Geo}
@countries_json_url "https://raw.githubusercontent.com/hexorx/countries/master/lib/countries/cache/countries.json"
def run(_) do
data_from_url()
|> Map.values
|> parse
|> sort
|> generate_file_content
|> write_t... | 26.463415 | 116 | 0.64977 |
c88cc5bd8462e7bc248874860c4f153bc1bbda66 | 1,551 | ex | Elixir | clients/redis/lib/google_api/redis/v1beta1/model/import_instance_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/lib/google_api/redis/v1beta1/model/import_instance_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/lib/google_api/redis/v1beta1/model/import_instance_request.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... | 33 | 134 | 0.749839 |
c88ceefcb5d4f5239dc2aa6119f22b6c7fff78e1 | 4,988 | ex | Elixir | lib/mix/tasks/knigge/verify.ex | hrzndhrn/knigge | 72e4f7bd14f6b79fde2abdeaa996958984cab3e5 | [
"MIT"
] | null | null | null | lib/mix/tasks/knigge/verify.ex | hrzndhrn/knigge | 72e4f7bd14f6b79fde2abdeaa996958984cab3e5 | [
"MIT"
] | null | null | null | lib/mix/tasks/knigge/verify.ex | hrzndhrn/knigge | 72e4f7bd14f6b79fde2abdeaa996958984cab3e5 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Knigge.Verify do
use Mix.Task
import Knigge.CLI.Output
alias Knigge.Verification
alias Knigge.Verification.Context
require Context
@shortdoc "Verify the validity of your facades and their implementations."
@moduledoc """
#{@shortdoc}
At the moment `knigge.verify` "only" ensure... | 24.81592 | 97 | 0.651764 |
c88cf53021db9b9f433cde44c295a6fa2e9492b1 | 268 | ex | Elixir | lib/phone/nanp/us/co.ex | yuriy-pavlov-castle-co/phone | c488b8f73a55cadbd15cdd77998af4ac2721fcfc | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/nanp/us/co.ex | yuriy-pavlov-castle-co/phone | c488b8f73a55cadbd15cdd77998af4ac2721fcfc | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/nanp/us/co.ex | yuriy-pavlov-castle-co/phone | c488b8f73a55cadbd15cdd77998af4ac2721fcfc | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.NANP.US.CO do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(303|719|720|970)([2-9].{6})$/
def area_name, do: "Colorado"
def area_type, do: "state"
def area_abbreviation, do: "CO"
matcher(["1303", "1719", "1720", "1970"])
end
| 20.615385 | 54 | 0.630597 |
c88d0926db6c974b5e1a07e2e4f752e6f3d42bed | 875 | ex | Elixir | apps/aevm/lib/chain_api.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 131 | 2018-03-10T01:35:56.000Z | 2021-12-27T13:44:41.000Z | apps/aevm/lib/chain_api.ex | aeternity/elixir-node | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 445 | 2018-03-12T09:46:17.000Z | 2018-12-12T09:52:07.000Z | apps/aevm/lib/chain_api.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 23 | 2018-03-12T12:01:28.000Z | 2022-03-06T09:22:17.000Z | defmodule Aevm.ChainApi do
@moduledoc """
Functions needed for the VM to interact with the chain
"""
alias Aecore.Keys
@type chain_state :: any()
@type store :: map()
@type exception :: :out_of_gas
@type call_result :: %{
result: binary() | exception(),
gas_spent: non_neg_integer()
}
@... | 25.735294 | 94 | 0.592 |
c88d0af18a0e6a9961ff41985eeaa528db369c2c | 1,847 | ex | Elixir | lib/jeopardixir_web/telemetry.ex | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | 1 | 2021-06-16T15:27:04.000Z | 2021-06-16T15:27:04.000Z | lib/jeopardixir_web/telemetry.ex | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | 25 | 2021-06-18T13:08:18.000Z | 2021-12-15T19:04:57.000Z | lib/jeopardixir_web/telemetry.ex | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | null | null | null | defmodule JeopardixirWeb.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. Le... | 32.982143 | 86 | 0.676773 |
c88d0b708e8e582c0dc15fab4b6ca85c9b7def2c | 219 | ex | Elixir | lib/mix/tasks/bd_pro/import_zip_codes.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | lib/mix/tasks/bd_pro/import_zip_codes.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | lib/mix/tasks/bd_pro/import_zip_codes.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.BdPro.ImportZipCodes do
use Mix.Task
@shortdoc "Import zip codes into database"
def run(_) do
System.cmd("psql", ["-d", "bd_pro_dev", "-f", "test/fixtures/zip_codes_ohio.sql"])
end
end
| 21.9 | 86 | 0.689498 |
c88d134685f294f424b3971cb51f73dda86105f5 | 311 | ex | Elixir | lib/oli/rendering/utils.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli/rendering/utils.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli/rendering/utils.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule Oli.Rendering.Utils do
alias Oli.Rendering.{Content, Context}
def parse_html_content(content, context \\ %Context{}) do
Content.render(context, content, Content.Html)
|> Phoenix.HTML.raw()
|> Phoenix.HTML.safe_to_string()
# Remove trailing newlines
|> String.trim()
end
end
| 25.916667 | 59 | 0.700965 |
c88d65cd1945a10d5d0597a0a4cb5c4c49c743f7 | 69 | ex | Elixir | home_page_local/lib/home_page_web/views/session_view.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/lib/home_page_web/views/session_view.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/lib/home_page_web/views/session_view.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | defmodule HomePageWeb.SessionView do
use HomePageWeb, :view
end
| 13.8 | 36 | 0.782609 |
c88d71c2f56dd3e4ff7327d2eff8a8fbd6316a8f | 20,658 | ex | Elixir | lib/meca.ex | benknowles/meca500 | 3e03273f6c011228e883f509f4d3af0fe3b976d2 | [
"MIT"
] | null | null | null | lib/meca.ex | benknowles/meca500 | 3e03273f6c011228e883f509f4d3af0fe3b976d2 | [
"MIT"
] | null | null | null | lib/meca.ex | benknowles/meca500 | 3e03273f6c011228e883f509f4d3af0fe3b976d2 | [
"MIT"
] | null | null | null | defmodule Meca do
use GenServer
@moduledoc """
Module for communicating and controlling a Mecademic Robot over TCP.
## Example
{:ok, pid} = Meca.start(%{host: '127.0.0.1', port: 10000})
Meca.activate_robot(pid)
Meca.home(pid)
Meca.set_blending(pid, 0)
Meca.set_joint_vel(pid, 10... | 27.074705 | 98 | 0.630167 |
c88d8c0d4e1823ffb49b605ea09df8af5ef7967d | 1,062 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/input_step_impl.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/input_step_impl.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/input_step_impl.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.InputStepImpl do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class",
:"_links",
:"id",
... | 25.902439 | 96 | 0.660075 |
c88db67719837491d918ec9ffe4fe7c66f29f403 | 717 | ex | Elixir | lib/ephemeral2_web/gettext.ex | losvedir/ephemeral2 | 4d48d6b7724127efc4f416ec45c4c2cb28472fc3 | [
"MIT"
] | 864 | 2015-05-12T13:00:28.000Z | 2022-02-03T20:17:12.000Z | lib/ephemeral2_web/gettext.ex | losvedir/ephemeral2 | 4d48d6b7724127efc4f416ec45c4c2cb28472fc3 | [
"MIT"
] | 4 | 2015-05-13T22:07:17.000Z | 2015-07-10T17:03:31.000Z | lib/ephemeral2_web/gettext.ex | losvedir/ephemeral2 | 4d48d6b7724127efc4f416ec45c4c2cb28472fc3 | [
"MIT"
] | 71 | 2015-05-12T13:30:05.000Z | 2021-10-01T03:37:40.000Z | defmodule Ephemeral2Web.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Ephemeral2Web.Gettext
# Simple translation
gettext "Her... | 28.68 | 72 | 0.684798 |
c88dce139f17b4ac3a4984c89f10fbb6e893aebf | 707 | ex | Elixir | web/gettext.ex | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | web/gettext.ex | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | web/gettext.ex | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | defmodule MyChatEx.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import MyChatEx.Gettext
# Simple translation
gettext "Here is the s... | 28.28 | 72 | 0.680339 |
c88e1a0263c9ed26ada44c03ee385264dfde4c26 | 776 | ex | Elixir | lib/mix/todo.gen.config.ex | akoutmos/ex_todo | f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa | [
"MIT"
] | 14 | 2019-06-18T04:56:18.000Z | 2021-03-22T07:59:43.000Z | lib/mix/todo.gen.config.ex | akoutmos/ex_todo | f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa | [
"MIT"
] | null | null | null | lib/mix/todo.gen.config.ex | akoutmos/ex_todo | f1aaf2ccb4ecdefb3fb48a36ef2cc76a0d9045fa | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Todo.Gen.Config do
@moduledoc false
use Mix.Task
alias Mix.Shell.IO
alias ExTodo.Config
@shortdoc "Creates a .todo.exs config file with defaults"
@doc """
This Mix task generates a .todo.exs configuration file
"""
def run(_args) do
create_file =
if File.exists?(Config... | 20.972973 | 77 | 0.658505 |
c88e2a6cade1bea500e347c31e8c3f3c9801bea9 | 1,876 | ex | Elixir | lib/dynamo/filters/static.ex | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | lib/dynamo/filters/static.ex | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | lib/dynamo/filters/static.ex | stevedomin/dynamo | 3c28f27603a480d2755a89aba3a91e88df3469ce | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | defmodule Dynamo.Filters.Static do
@moduledoc """
A Dynamo filter capable of serving static assets.
It must be initialized passing the path to watch
for assets and path to the assets from the Dynamo
root.
If an assets cannot be found, it simply forwards
the request to the underlying service.
## Examp... | 25.013333 | 74 | 0.619936 |
c88e45c104aff8a9168d0585f0a94b1db2048d65 | 2,424 | ex | Elixir | lib/jumubase/showtime/appearance.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase/showtime/appearance.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase/showtime/appearance.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule Jumubase.Showtime.Appearance do
use Jumubase.Schema
import Ecto.Changeset
import Jumubase.Gettext
alias Ecto.Changeset
alias Jumubase.JumuParams
alias Jumubase.Showtime.{Appearance, Participant, Performance}
schema "appearances" do
field :instrument, :string
field :role, :string
fie... | 29.204819 | 86 | 0.683993 |
c88e487fb6c98d573bb8e9a7c90528438b421f7d | 1,657 | exs | Elixir | test/bitcoin_address/python_test.exs | paulfioravanti/bitcoin_address | ee6581fa122c203eca9889cd1ed1b85292feb114 | [
"MIT"
] | 1 | 2021-05-16T23:22:50.000Z | 2021-05-16T23:22:50.000Z | test/bitcoin_address/python_test.exs | paulfioravanti/bitcoin_address | ee6581fa122c203eca9889cd1ed1b85292feb114 | [
"MIT"
] | null | null | null | test/bitcoin_address/python_test.exs | paulfioravanti/bitcoin_address | ee6581fa122c203eca9889cd1ed1b85292feb114 | [
"MIT"
] | 2 | 2019-02-10T14:52:21.000Z | 2021-05-16T23:23:55.000Z | defmodule BitcoinAddressPythonTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
alias BitcoinAddress.Secp256k1
doctest BitcoinAddress.Python
@output_format ~r"""
\A\
Private key:\s"[0-9a-z]{64}"
Public key:\s"[0-9a-z]{66}"
Bitcoin address:\s"[1-9A-HJ-NP-Za-km-z]{26,35}"
\z\
"""
# htt... | 31.264151 | 70 | 0.687387 |
c88e59afc32999b3d2d8f51a707d91850d449189 | 5,320 | ex | Elixir | lib/exsemantica_web/schema.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | null | null | null | lib/exsemantica_web/schema.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | 2 | 2020-07-21T20:53:13.000Z | 2020-07-21T20:54:15.000Z | lib/exsemantica_web/schema.ex | Chlorophytus/eactivitypub | 469346b4d5cd7ad2b575c245ac50fd71b00c4864 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaWeb.Schema do
@moduledoc """
The ExSemantica GraphQL API schema.
"""
use Absinthe.Schema
import_types(ExsemanticaWeb.SchemaTypes)
query do
# ==========================================================================
field :posts, list_of(:post) do
arg(:ids, list_of(:id12... | 27.005076 | 80 | 0.430075 |
c88e6b6efaa7eba3d8171a38e9f93b94a7a32b54 | 1,849 | exs | Elixir | test/acceptance/get_test.exs | transhapHigsn/ash_json_api | 65b5c10c89e3fbbffeaef461276ef87dd2a58619 | [
"MIT"
] | null | null | null | test/acceptance/get_test.exs | transhapHigsn/ash_json_api | 65b5c10c89e3fbbffeaef461276ef87dd2a58619 | [
"MIT"
] | null | null | null | test/acceptance/get_test.exs | transhapHigsn/ash_json_api | 65b5c10c89e3fbbffeaef461276ef87dd2a58619 | [
"MIT"
] | null | null | null | defmodule Test.Acceptance.GetTest do
use ExUnit.Case, async: true
defmodule Post do
use Ash.Resource,
data_layer: Ash.DataLayer.Ets,
extensions: [
AshJsonApi.Resource
]
ets do
private?(true)
end
json_api do
type("post")
routes do
base("/posts")... | 19.061856 | 96 | 0.563548 |
c88e854718a67460f9e5d65f96c87652863a9d8f | 2,463 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.982143 | 296 | 0.725944 |
c88ec6fcd8872489033b854ec81cfbf1d679db62 | 4,518 | exs | Elixir | test/redis_graph_test.exs | gkorland/redisgraph-ex | 7df9803bbf2ccb7c147080f43d77b30d82d0345a | [
"MIT"
] | 12 | 2019-10-25T13:30:07.000Z | 2022-03-11T19:06:06.000Z | test/redis_graph_test.exs | gkorland/redisgraph-ex | 7df9803bbf2ccb7c147080f43d77b30d82d0345a | [
"MIT"
] | 2 | 2019-10-24T06:41:15.000Z | 2020-02-08T03:54:21.000Z | test/redis_graph_test.exs | gkorland/redisgraph-ex | 7df9803bbf2ccb7c147080f43d77b30d82d0345a | [
"MIT"
] | 1 | 2020-01-29T16:26:13.000Z | 2020-01-29T16:26:13.000Z | defmodule RedisGraphTest do
alias RedisGraph.Edge
alias RedisGraph.Graph
alias RedisGraph.Node
alias RedisGraph.QueryResult
use ExUnit.Case
@redis_address "redis://localhost:6379"
def build_sample_graph() do
graph =
Graph.new(%{
name: "social"
})
john =
Node.new(%{
... | 28.77707 | 93 | 0.63413 |
c88f2bab9cce2790be55e3747791bd2acdd542ac | 140 | exs | Elixir | config/test.exs | STUDITEMPS/ueberauth_passwordless | 74bc826f65e4b5f781214a3ffa7962c44225db9f | [
"MIT"
] | 7 | 2020-02-12T20:44:23.000Z | 2022-02-04T18:28:49.000Z | config/test.exs | STUDITEMPS/ueberauth_passwordless | 74bc826f65e4b5f781214a3ffa7962c44225db9f | [
"MIT"
] | 12 | 2021-07-05T07:07:15.000Z | 2022-03-28T07:06:56.000Z | config/test.exs | STUDITEMPS/ueberauth_passwordless | 74bc826f65e4b5f781214a3ffa7962c44225db9f | [
"MIT"
] | 4 | 2020-02-12T08:42:19.000Z | 2022-03-06T09:55:14.000Z | import Config
config :ueberauth, Ueberauth.Strategy.Passwordless,
token_secret: "lsoU4W4yqjMMaEnxjQP7q+ZDxVU8KIGa",
mailer: TestMailer
| 23.333333 | 51 | 0.821429 |
c88f65f5526216e44552cde690895fbf0910b8e5 | 3,247 | ex | Elixir | lib/user/execute.ex | aratz-lasa/exchange | c82690ec621401e8062185c3039aa92c76a1e6fa | [
"MIT"
] | null | null | null | lib/user/execute.ex | aratz-lasa/exchange | c82690ec621401e8062185c3039aa92c76a1e6fa | [
"MIT"
] | null | null | null | lib/user/execute.ex | aratz-lasa/exchange | c82690ec621401e8062185c3039aa92c76a1e6fa | [
"MIT"
] | null | null | null | defmodule Exchange.Execute do
alias Exchange.Director
import Exchange.Execute.Utils
alias Exchange.Exchange, as: Xch
# sign-in
def execute({1, data}, state) do
execute_new_user(&Director.sign_in/1, data, state)
end
# log-in
def execute({2, data}, state) do
execute_new_user(&Director.log_in/1, d... | 27.516949 | 77 | 0.662458 |
c88f7ce2b7b1f139c239a7979bcbffb36b4c2526 | 3,289 | ex | Elixir | lib/html_builder.ex | dczombera/html_builder | 7f340df509316475e5e71f00a11a25637267b354 | [
"MIT"
] | null | null | null | lib/html_builder.ex | dczombera/html_builder | 7f340df509316475e5e71f00a11a25637267b354 | [
"MIT"
] | null | null | null | lib/html_builder.ex | dczombera/html_builder | 7f340df509316475e5e71f00a11a25637267b354 | [
"MIT"
] | null | null | null | defmodule HtmlBuilder do
@moduledoc """
The module holds the logic for building the HTML tree.
Instead of creating and injecting functions for each tag
into the caller's module, it post walks the AST and changes
nodes that represent a HTML tag. The nodes will be changed to
call the `tag` macro with the app... | 43.276316 | 127 | 0.638188 |
c88fa26f29a15667bf57ce1a33c42e2315b4b212 | 2,056 | exs | Elixir | examples/phoenix_app/config/prod.exs | kianmeng/bakeware | 3c008a1c149ccf22cb3924126f2b8f0be522191f | [
"Apache-2.0"
] | 828 | 2020-09-12T18:56:48.000Z | 2022-03-01T22:34:39.000Z | examples/phoenix_app/config/prod.exs | kianmeng/bakeware | 3c008a1c149ccf22cb3924126f2b8f0be522191f | [
"Apache-2.0"
] | 54 | 2020-10-23T15:01:10.000Z | 2022-03-22T23:23:15.000Z | examples/phoenix_app/config/prod.exs | kianmeng/bakeware | 3c008a1c149ccf22cb3924126f2b8f0be522191f | [
"Apache-2.0"
] | 25 | 2020-09-14T12:01:54.000Z | 2022-02-23T03:30:08.000Z | use Mix.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,
# ... | 36.070175 | 66 | 0.717899 |
c88fcbdc2ad097e1b383dee007c1c0ba90beda42 | 6,731 | ex | Elixir | apps/astarte_trigger_engine/lib/astarte_trigger_engine/config.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_trigger_engine/lib/astarte_trigger_engine/config.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_trigger_engine/lib/astarte_trigger_engine/config.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# 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... | 36.383784 | 192 | 0.741197 |
c88fffa8fab483f806dadbe54a38e3d7c336c9cd | 611 | ex | Elixir | lib/nerves_hub_device.ex | smartrent/nerves_hub | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | null | null | null | lib/nerves_hub_device.ex | smartrent/nerves_hub | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | 4 | 2019-05-30T15:13:04.000Z | 2020-01-09T16:02:10.000Z | lib/nerves_hub_device.ex | smartrent/nerves_hub_device | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubDevice do
@doc """
Checks if the device is connected to the NervesHub channel.
"""
@spec connected? :: boolean()
def connected?() do
channel_state()
|> Map.get(:connected?, false)
end
@doc """
Current status of the device channel
"""
@spec status :: NervesHubDevice.Channe... | 21.821429 | 73 | 0.649755 |
c89011878b7a6c922b5f12172db18e1a11522416 | 61 | ex | Elixir | web/views/layout_view.ex | marnen/contraq-elixir | 69798c1b92a08c76a63e200eadeeb19986d56d91 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | marnen/contraq-elixir | 69798c1b92a08c76a63e200eadeeb19986d56d91 | [
"MIT"
] | 3 | 2016-11-25T20:35:54.000Z | 2016-11-26T19:45:35.000Z | web/views/layout_view.ex | marnen/contraq-elixir | 69798c1b92a08c76a63e200eadeeb19986d56d91 | [
"MIT"
] | null | null | null | defmodule Contraq.LayoutView do
use Contraq.Web, :view
end
| 15.25 | 31 | 0.786885 |
c8901574c10481240e09b58e787f999e394b49d5 | 103 | ex | Elixir | lib/balalaika_bear/notifications.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | lib/balalaika_bear/notifications.ex | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | lib/balalaika_bear/notifications.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.Notifications do
use BalalaikaBear.Macro.API, namespace: "notifications"
end
| 25.75 | 57 | 0.834951 |
c8901c1d4838457caaaaf4fbf7721b48b233ed77 | 2,588 | ex | Elixir | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/admission_rule.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/admission_rule.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/admission_rule.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.830189 | 508 | 0.750773 |
c89040ba7f1559148f9f41086e7439c26c74ab5f | 9,517 | ex | Elixir | lib/oasis/plug/bearer_auth.ex | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | null | null | null | lib/oasis/plug/bearer_auth.ex | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | null | null | null | lib/oasis/plug/bearer_auth.ex | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | null | null | null | defmodule Oasis.Plug.BearerAuth do
@moduledoc ~S"""
Functionality for providing Bearer HTTP authentication.
It is recommended to only use this module in production if SSL is enabled and enforced.
See `Plug.SSL` for more information.
## Example
As any other Plug, we can use the `bearer_auth/2` plug:
... | 32.261017 | 158 | 0.65031 |
c89076a56ed95d33e3dc13134a0271f19ea7e513 | 3,242 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/linked_foreign_account.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics/lib/google_api/analytics/v3/model/linked_foreign_account.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/linked_foreign_account.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 ... | 43.810811 | 175 | 0.692474 |
c890a1a505778edc0a4127cc8f19bec4fa1e2622 | 1,909 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_table_table_row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_table_table_row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_table_table_row.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.913793 | 172 | 0.754845 |
c890c402baa87012a706cc68d672a3121a94fd9f | 2,898 | ex | Elixir | clients/os_login/lib/google_api/os_login/v1alpha/model/posix_account.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/os_login/lib/google_api/os_login/v1alpha/model/posix_account.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/os_login/lib/google_api/os_login/v1alpha/model/posix_account.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 ... | 38.64 | 125 | 0.666322 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.