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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d53fc286629976cd6cc009bac21df72126dd1505 | 2,166 | ex | Elixir | lib/exq/scheduler/server.ex | blueshift-labs/exq | 57973ec3e83f9a505fc83385b645bf2e658b8cdd | [
"Apache-2.0"
] | null | null | null | lib/exq/scheduler/server.ex | blueshift-labs/exq | 57973ec3e83f9a505fc83385b645bf2e658b8cdd | [
"Apache-2.0"
] | null | null | null | lib/exq/scheduler/server.ex | blueshift-labs/exq | 57973ec3e83f9a505fc83385b645bf2e658b8cdd | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Scheduler.Server do
@moduledoc """
The Scheduler is responsible for monitoring the `schedule` and `retry` queues.
These queues use a Redis sorted set (term?) to schedule and pick off due jobs.
Once a job is at or past it's execution date, the Scheduler moves the job into the
live execution queue... | 29.27027 | 93 | 0.613573 |
d53fc77f9a481f4118344d5d4bd35b8fbd2e606f | 1,881 | ex | Elixir | lib/livebook_web/live/session_live/export_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/export_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/export_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.ExportComponent do
use LivebookWeb, :live_component
alias Livebook.Session
@impl true
def update(assigns, socket) do
socket = assign(socket, assigns)
socket =
if socket.assigns[:notebook] do
socket
else
# Note: we need to load the notebook... | 30.33871 | 91 | 0.570973 |
d5404edaa1aef558f9d8de1a46e9a66c2666ceb0 | 819 | exs | Elixir | apps/ch1/mix.exs | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | apps/ch1/mix.exs | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | apps/ch1/mix.exs | tscott-au/frdomain_elixir | 1b7790f41ac1de30622e9924c7c661fabae344e3 | [
"Apache-2.0"
] | null | null | null | defmodule Ch1.Mixfile do
use Mix.Project
def project do
[
app: :ch1,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
... | 23.4 | 88 | 0.556777 |
d5406113df74caff9f1570cdeaee669c323d0c8d | 714 | exs | Elixir | mix.exs | BrummbQ/cognixir-demo | e3d9447fb6dbd25e78007f077c8754fefe8d400f | [
"MIT"
] | 1 | 2018-05-23T20:37:27.000Z | 2018-05-23T20:37:27.000Z | mix.exs | BrummbQ/cognixir-demo | e3d9447fb6dbd25e78007f077c8754fefe8d400f | [
"MIT"
] | 1 | 2019-02-21T19:44:04.000Z | 2019-02-26T16:51:32.000Z | mix.exs | BrummbQ/cognixir-demo | e3d9447fb6dbd25e78007f077c8754fefe8d400f | [
"MIT"
] | null | null | null | defmodule CognixirDemo.Mixfile do
use Mix.Project
def project do
[app: :cognixir_demo,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.... | 21.636364 | 77 | 0.610644 |
d5406a23ff60885921329e92fa1505457d957c8a | 544 | ex | Elixir | example/lib/phoenix_datatables_example_web/views/item_table_view.ex | JohnKacz/phoenix_datatables | 747b184972614d87aeb0cd644593951703d718db | [
"MIT"
] | null | null | null | example/lib/phoenix_datatables_example_web/views/item_table_view.ex | JohnKacz/phoenix_datatables | 747b184972614d87aeb0cd644593951703d718db | [
"MIT"
] | null | null | null | example/lib/phoenix_datatables_example_web/views/item_table_view.ex | JohnKacz/phoenix_datatables | 747b184972614d87aeb0cd644593951703d718db | [
"MIT"
] | null | null | null | defmodule PhoenixDatatablesExampleWeb.ItemTableView do
use PhoenixDatatablesExampleWeb, :view
def render("index.json", %{payload: payload}) do
PhoenixDatatables.map_payload(payload, &item_json/1)
end
def item_json(item) do
%{
nsn: item.nsn,
rep_office: item.rep_office,
common_name: i... | 23.652174 | 56 | 0.685662 |
d540cf2936cc8f2ce4696188fb0dd73fbf997181 | 18,388 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/permissions.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/permissions.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive/lib/google_api/drive/v3/api/permissions.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... | 52.991354 | 351 | 0.65037 |
d5413667b1083beed39c73ac041b4f002116daab | 1,953 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_content_item.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_content_item.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_content_item.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... | 36.166667 | 191 | 0.75064 |
d54148d754946965a41a61a09d7d986c76bba447 | 1,249 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_target.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_target.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_target.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 ... | 29.738095 | 77 | 0.759808 |
d5415f4328cab059ba506ba07cd2189232bb8025 | 743 | ex | Elixir | lib/web_driver_client/w3c_wire_protocol_client/tesla_client_builder.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/w3c_wire_protocol_client/tesla_client_builder.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/w3c_wire_protocol_client/tesla_client_builder.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.W3CWireProtocolClient.TeslaClientBuilder do
@moduledoc false
alias Tesla.Client
alias WebDriverClient.Config
@spec build_simple(Config.t()) :: Client.t()
def build_simple(%Config{
base_url: base_url,
debug?: debug?,
http_client_options: http_client_options
... | 25.62069 | 69 | 0.66891 |
d541618dabfa3ddd97734b823d89057a96a3ae74 | 1,882 | ex | Elixir | lib/mix_tasks_phoenix_gen_jumpstart.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 32 | 2015-01-18T08:41:38.000Z | 2016-12-07T07:11:36.000Z | lib/mix_tasks_phoenix_gen_jumpstart.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 5 | 2015-01-31T20:18:43.000Z | 2016-05-03T15:16:30.000Z | lib/mix_tasks_phoenix_gen_jumpstart.ex | itsgreggreg/phoenix_generator | ed39acbaf42900706968fff2a28978605af8fc78 | [
"MIT"
] | 5 | 2015-01-28T06:32:48.000Z | 2016-11-26T18:16:00.000Z | defmodule Mix.Tasks.Phoenix.Gen.Jumpstart do
use Mix.Task
import Phoenix.Gen.Utils
import Mix.Shell.IO, only: [info: 1, error: 1]
@shortdoc "Generate a bunch of setup stuff"
@moduledoc """
Generates a repo and database config
mix phoenix.gen.jumpstart
## Command line options
* `--repo=RepoN... | 33.017544 | 91 | 0.629118 |
d5417a65527a8990ed551f614dd438968cbb9d27 | 59 | ex | Elixir | web/views/page_view.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | web/views/page_view.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | 9 | 2016-09-22T20:30:22.000Z | 2016-09-22T21:00:53.000Z | web/views/page_view.ex | beccanelson/library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | defmodule Bookish.PageView do
use Bookish.Web, :view
end
| 14.75 | 29 | 0.779661 |
d5417bf1b2f35da30c57655e0b24b538fdf5d505 | 1,853 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_annotation_context.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_annotation_context.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_annotation_context.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... | 32.508772 | 131 | 0.728009 |
d541ad089705184228989080c952fa8e7bef3252 | 495 | ex | Elixir | elixir/lib/homework_web/router.ex | joshalling/web-homework | 348e97156e249c9e9dc3ce730bf345ba87e2370e | [
"MIT"
] | null | null | null | elixir/lib/homework_web/router.ex | joshalling/web-homework | 348e97156e249c9e9dc3ce730bf345ba87e2370e | [
"MIT"
] | null | null | null | elixir/lib/homework_web/router.ex | joshalling/web-homework | 348e97156e249c9e9dc3ce730bf345ba87e2370e | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Router do
use HomeworkWeb, :router
pipeline :api do
plug(CORSPlug, origin: "http://localhost:3000")
plug(:accepts, ["json"])
end
scope "/" do
pipe_through(:api)
forward("/graphiql", Absinthe.Plug.GraphiQL,
schema: HomeworkWeb.Schema,
interface: :simple,
... | 20.625 | 51 | 0.652525 |
d541cfc695c7d14897fed6fc6f0a2b7cf26c1bc3 | 2,380 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1/model/containeranalysis_google_devtools_cloudbuild_v1_storage_source_manifest.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/containeranalysis_google_devtools_cloudbuild_v1_storage_source_manifest.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/containeranalysis_google_devtools_cloudbuild_v1_storage_source_manifest.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... | 39.666667 | 214 | 0.744538 |
d541dc1350f89332f9ad4a4e94f832182cc3dde7 | 2,104 | ex | Elixir | apps/api_web/lib/api_web/views/facility_view.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/views/facility_view.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/lib/api_web/views/facility_view.ex | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | 1 | 2019-09-09T20:40:13.000Z | 2019-09-09T20:40:13.000Z | defmodule ApiWeb.FacilityView do
@moduledoc """
View for Facility data
"""
use ApiWeb.Web, :api_view
location("/facilities/:id")
has_one(
:stop,
type: :stop,
serializer: ApiWeb.StopView
)
attributes([:long_name, :short_name, :type, :properties, :latitude, :longitude])
def preload([_ | ... | 25.047619 | 92 | 0.635456 |
d541feca05aa8be550d6ea12b08e967055324717 | 2,063 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/caption.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/caption.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/caption.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.839286 | 152 | 0.707222 |
d5420602a4e45f1adb83a7a6167026740ea83a67 | 691 | ex | Elixir | lib/ews/config.ex | glejeune/ews | f227f33cbcbe27341d454eabc7995e226af833df | [
"MIT"
] | 7 | 2015-05-07T20:10:44.000Z | 2020-01-13T22:17:12.000Z | lib/ews/config.ex | glejeune/ews | f227f33cbcbe27341d454eabc7995e226af833df | [
"MIT"
] | null | null | null | lib/ews/config.ex | glejeune/ews | f227f33cbcbe27341d454eabc7995e226af833df | [
"MIT"
] | null | null | null | defmodule EWSConfig do
use ExConfig.Object
defproperty http_port, default: 8080
defproperty http_ip, default: {127,0,0,1}
@doc false
def decode_ip(ip) when is_tuple(ip), do: ip
@doc false
def decode_ip(ip) when is_list(ip), do: decode_ip(list_to_bitstring(ip))
@doc false
def decode_ip(ip) when is_bin... | 26.576923 | 74 | 0.664255 |
d5425a7c3801022a01f8190759a0e66bc55d2e48 | 1,246 | ex | Elixir | lib/discuss/blog/blog.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | lib/discuss/blog/blog.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | lib/discuss/blog/blog.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | defmodule Discuss.Blog do
alias Discuss.Blog.Post
use NimblePublisher,
build: Post,
from: Application.app_dir(:discuss, "priv/posts/**/*.md"),
as: :posts,
highlighters: [:makeup_elixir, :makeup_erlang]
# The @posts variable is first defined by NimblePublisher.
# Let's further modify it by sort... | 31.15 | 73 | 0.654093 |
d5426924c78ed4b3e05ac58a2b4c0d526413559c | 288 | ex | Elixir | apps/core/lib/core/buffers/orchestrator.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/buffers/orchestrator.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/buffers/orchestrator.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Buffer.Orchestrator do
alias Core.Buffers.Supervisor
def submit(buffer, key, job) do
with {:ok, pid} = Swarm.whereis_or_register_name(
{buffer, key}, Supervisor, :start_child, [buffer, key, []]),
do: buffer.submit(pid, job)
end
end
| 28.8 | 84 | 0.642361 |
d542802371f802eecabac8b3c31daede2358be8f | 1,254 | ex | Elixir | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/storage_account_create_parameters.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/storage_account_create_parameters.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/storage_account_create_parameters.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Storage.Model.StorageAccountCreateParameters do
@moduledoc """
The parameters used when creating a storage account.... | 31.35 | 134 | 0.708931 |
d5429d9424c3434c410276bef37f3d8ff4c2fc20 | 3,213 | ex | Elixir | lib/teiserver/coordinator/parser.ex | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | lib/teiserver/coordinator/parser.ex | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | lib/teiserver/coordinator/parser.ex | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | defmodule Teiserver.Coordinator.Parser do
require Logger
alias Teiserver.Coordinator
alias Teiserver.Data.Types, as: T
alias Teiserver.Battle.Lobby
@spec handle_in(Types.userid(), String.t(), Types.battle_id()) :: :say | :handled
def handle_in(userid, msg, battle_id) do
battle = Lobby.get_battle!(battl... | 26.336066 | 83 | 0.591036 |
d542a14920e1774c5b2bf4025949dacb434f12fa | 833 | exs | Elixir | dave-course/hangman_proj/gallows/mix.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | dave-course/hangman_proj/gallows/mix.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | dave-course/hangman_proj/gallows/mix.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | defmodule Gallows.Mixfile do
use Mix.Project
def project do
[
app: :gallows,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
deps: deps()
]
end
def ... | 21.921053 | 56 | 0.533013 |
d542ea7c6efb048d25c12dfd047d8319a55d473a | 3,248 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/expr.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... | 58 | 1,092 | 0.734914 |
d542f1dbe48b9cb039e436053b5fc2332fa0096b | 1,783 | exs | Elixir | apps/nerves_hub_device/mix.exs | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_device/mix.exs | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_device/mix.exs | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubDevice.Mixfile do
use Mix.Project
def project do
[
app: :nerves_hub_device,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
elixirc_pat... | 27.015152 | 66 | 0.556927 |
d542fefe42fdb225d5547fe86536a137bb0b1f37 | 3,893 | ex | Elixir | lib/data/npc.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/data/npc.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/data/npc.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Data.NPC do
@moduledoc """
NPC Schema
"""
use Data.Schema
alias Data.Script
alias Data.Event
alias Data.Stats
alias Data.NPCItem
alias Data.NPCSpawner
@fields [
:level,
:name,
:tags,
:status_line,
:status_listen,
:description,
:experience_points,
:currenc... | 22.9 | 76 | 0.622399 |
d543222d87ae47fdff2c977076dcd138b3997925 | 2,688 | exs | Elixir | implementations/elixir/test/ockam/transport/udp_test.exs | hollyfeld/ockam | 10a618b60b5b913821bfa8df3ad9693a70913ace | [
"Apache-2.0"
] | 1 | 2021-01-02T11:42:16.000Z | 2021-01-02T11:42:16.000Z | implementations/elixir/test/ockam/transport/udp_test.exs | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | implementations/elixir/test/ockam/transport/udp_test.exs | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Transport.UDP.Tests do
use ExUnit.Case, async: true
doctest Ockam.Transport.UDP
# alias Ockam.Transport.UDP
#
# setup_all do
# nodes = TestCluster.create_nodes("ttt", 1, files: [__ENV__.file])
# on_exit(fn -> :ok = TestCluster.destroy_nodes(nodes) end)
#
# test_node = List.first(... | 26.352941 | 84 | 0.493304 |
d5434795c16550e4415056da24956b6eb66fc435 | 7,243 | exs | Elixir | test/ex2ms_test.exs | ericmj/ex2ms | 34c6a773ad131970eb1f3b646dbd9dca1e14fd70 | [
"Apache-2.0"
] | 146 | 2015-09-16T04:59:41.000Z | 2022-03-18T15:53:47.000Z | test/ex2ms_test.exs | ericmj/ex2ms | 34c6a773ad131970eb1f3b646dbd9dca1e14fd70 | [
"Apache-2.0"
] | 26 | 2015-05-27T09:08:17.000Z | 2022-03-09T14:36:33.000Z | test/ex2ms_test.exs | ericmj/ex2ms | 34c6a773ad131970eb1f3b646dbd9dca1e14fd70 | [
"Apache-2.0"
] | 27 | 2015-05-27T04:28:50.000Z | 2021-09-22T13:25:47.000Z | defmodule Ex2msTest do
use ExUnit.Case, async: true
require Record
Record.defrecordp(:user, [:name, :age])
import TestHelpers
import Ex2ms
test "basic" do
assert (fun do
x -> x
end) == [{:"$1", [], [:"$1"]}]
end
test "$_" do
assert (fun do
{x, y} = z -... | 23.214744 | 105 | 0.409499 |
d5436c0f48c2cb5db631456910d23cc663c6f8fd | 63 | ex | Elixir | lib/majudge_web/views/ballot_view.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | null | null | null | lib/majudge_web/views/ballot_view.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | 1 | 2021-05-10T04:23:56.000Z | 2021-05-10T04:23:56.000Z | lib/majudge_web/views/ballot_view.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | null | null | null | defmodule MajudgeWeb.BallotView do
use MajudgeWeb, :view
end
| 15.75 | 34 | 0.809524 |
d54370bae96c489d63e7460f838a581163863187 | 1,045 | exs | Elixir | config/config.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | null | null | null | config/config.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | 1 | 2016-03-28T03:13:34.000Z | 2020-08-11T22:26:12.000Z | config/config.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :sponsor_dot_dog, SponsorDotDog.Endpoint,
url: [ho... | 29.857143 | 86 | 0.748325 |
d5439345a9c28762b6d9486c9d8fce8c3cb20af9 | 1,950 | exs | Elixir | clients/service_consumer_management/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/mix.exs | 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... | 29.104478 | 118 | 0.673846 |
d543b3286593a50d57bc3a6e7710f853c62f8366 | 1,624 | ex | Elixir | apps/grapevine/lib/web/controllers/decanter/manage/queue_controller.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/grapevine/lib/web/controllers/decanter/manage/queue_controller.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/grapevine/lib/web/controllers/decanter/manage/queue_controller.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.Decanter.Manage.QueueController do
use Web, :controller
alias GrapevineData.Blogs
def index(conn, _params) do
conn
|> assign(:blog_posts, Blogs.submitted_posts())
|> render("index.html")
end
def edit(conn, %{"uid" => uid}) do
with {:ok, blog_post} <- Blogs.get(uid) do
co... | 28.491228 | 83 | 0.612069 |
d543dd014f82ee23f3aa8e973aaa7d168679d29c | 3,400 | exs | Elixir | test/credo/code/charlists_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/code/charlists_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/code/charlists_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Code.CharlistsTest do
use Credo.Test.Case
alias Credo.Code.Charlists
test "it should return the source unchanged if there are no charlists" do
source = """
"it should report a violation if the with doesn't start with <- clauses"
\"\"\"
def some_function(parameter1, parameter2) do... | 27.419355 | 112 | 0.561471 |
d543e5a25cc80d71fd21a9685ed9aa1e3559059f | 861 | exs | Elixir | test/ex_pool/state/stash_test.exs | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | 6 | 2015-11-29T10:43:02.000Z | 2016-04-07T17:32:17.000Z | test/ex_pool/state/stash_test.exs | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | test/ex_pool/state/stash_test.exs | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | defmodule ExPool.State.StashTest do
use ExUnit.Case
alias ExPool.State.Stash
defmodule TestWorker do
def start_link(_opts \\ []), do: Agent.start_link(fn -> :ok end)
end
setup do
stash = Stash.new([])
{:ok, %{stash: stash}}
end
test "#available, #get, #put", %{stash: stash} do
worker_... | 25.323529 | 68 | 0.646922 |
d544022a546385fe359fa2cb22505c7d9ebe5c3d | 1,737 | ex | Elixir | clients/content/lib/google_api/content/v2/model/pos_store.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/pos_store.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/pos_store.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... | 32.773585 | 140 | 0.705815 |
d5440d19a4684d80e363739b3d4367400a508f68 | 549 | ex | Elixir | test/support/test_case.ex | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 12 | 2016-09-10T16:17:32.000Z | 2020-06-04T01:35:54.000Z | test/support/test_case.ex | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 8 | 2016-09-19T05:36:27.000Z | 2020-09-14T08:46:06.000Z | test/support/test_case.ex | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 10 | 2016-07-19T05:03:01.000Z | 2021-02-08T03:20:54.000Z | defmodule Omise.TestCase do
use ExUnit.CaseTemplate
using do
quote do
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Omise.TestCase
end
end
setup_all do
HTTPoison.start()
ExVCR.Config.filter_request_options("basic_auth")
Omise.configure(
public_key: System.get_en... | 19.607143 | 67 | 0.690346 |
d5440ee62d111058b9fe4bf4a102b646a0d37f12 | 575 | exs | Elixir | ex/apps/corals/test/examples/dominoes/corals/dominoes_rules.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/corals/test/examples/dominoes/corals/dominoes_rules.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/corals/test/examples/dominoes/corals/dominoes_rules.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | defmodule Dominoes do
import Corals
import Corals.Helpers
define :dominoes, %{
require: [Dominoes.Controller],
}
def play do play %{} end
def play %{on: {:winner, _}} = done do info done end
def play %{on: {:tie, _}} = done do info done end
def play game do game |> resolve(:dominoes) |> play end... | 25 | 89 | 0.622609 |
d5444d8592853832398890aab5926ce1ad29023f | 14,783 | exs | Elixir | test/phoenix_live_view/html_tokenizer_test.exs | khionu/phoenix_live_view | 4ada690fb1579eebf787bd7459233086b383bd7b | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_tokenizer_test.exs | khionu/phoenix_live_view | 4ada690fb1579eebf787bd7459233086b383bd7b | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_tokenizer_test.exs | khionu/phoenix_live_view | 4ada690fb1579eebf787bd7459233086b383bd7b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLTokenizerTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView.HTMLTokenizer.ParseError
defp tokenize(text) do
Phoenix.LiveView.HTMLTokenizer.tokenize(text, "nofile", 0, [], [])
|> Enum.reverse()
end
describe "text" do
test "represented as {:text, value}" do
... | 27.124771 | 122 | 0.504904 |
d544e453eaabb9b823a6397e6609c06ba06f4b9d | 211 | ex | Elixir | lib/hello_proper.ex | mdarin/propchek-custom-gen-ex | b4727195e92a29b1895a5f953ab352ebb86fba10 | [
"MIT"
] | null | null | null | lib/hello_proper.ex | mdarin/propchek-custom-gen-ex | b4727195e92a29b1895a5f953ab352ebb86fba10 | [
"MIT"
] | null | null | null | lib/hello_proper.ex | mdarin/propchek-custom-gen-ex | b4727195e92a29b1895a5f953ab352ebb86fba10 | [
"MIT"
] | null | null | null | defmodule HelloProper do
@moduledoc """
Documentation for HelloProper.
"""
@doc """
Hello world.
## Examples
iex> HelloProper.hello()
:world
"""
def hello do
:world
end
end
| 11.105263 | 32 | 0.587678 |
d544e657b6ca743f3ac2c17b9018f44d88b71c34 | 73 | exs | Elixir | test/test_helper.exs | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | test/test_helper.exs | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | test/test_helper.exs | juan-b-challenge/challenge | 4cd55084067891ff1a86f827294dad05122f1059 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Challenge.Repo, :manual)
| 14.6 | 55 | 0.767123 |
d544e7b5fc248244f81c9b9b30e31ea146dce7bd | 2,701 | ex | Elixir | data/route/rsw_bad_bramstedt.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/route/rsw_bad_bramstedt.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/route/rsw_bad_bramstedt.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Data.Route.RSWBadBramstedt do
@behaviour Route.Behaviour
def id(), do: "rsw-bad-bramstedt"
def type(), do: :rsw
def color(), do: "#000000"
def name(), do: "Radschnellweg Bad Bramstedt"
def article(), do: "rsw-bad-bramstedt"
def osm_relation_ref(), do: nil
forward = %Video.Track{
group: "... | 49.109091 | 88 | 0.630137 |
d5450a3208839e85e0d7f514068a5db1a297e2cb | 690 | ex | Elixir | www/lib/mix/tasks/krihelinator.import.ex | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 47 | 2016-07-17T08:49:36.000Z | 2020-11-06T14:12:15.000Z | www/lib/mix/tasks/krihelinator.import.ex | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 181 | 2016-07-11T13:20:40.000Z | 2019-10-22T14:43:40.000Z | www/lib/mix/tasks/krihelinator.import.ex | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 2 | 2017-02-25T16:19:09.000Z | 2017-12-24T20:22:32.000Z | defmodule Mix.Tasks.Krihelinator.Import do
use Mix.Task
import Mix.Ecto
@moduledoc """
Import data from a json file. It won't work if the DB is already populated.
"""
@usage "Usage: mix krihelinator.import path/to/json/file"
def run([filepath | args]) do
if File.exists?(filepath) do
import_da... | 20.294118 | 77 | 0.668116 |
d5452f73e057b677bcc5d9ab5aebf41e5ca7d9b7 | 7,000 | ex | Elixir | lib/sanity/cache.ex | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | 1 | 2022-03-16T21:37:14.000Z | 2022-03-16T21:37:14.000Z | lib/sanity/cache.ex | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | 2 | 2022-03-16T20:11:33.000Z | 2022-03-25T17:08:23.000Z | lib/sanity/cache.ex | balexand/sanity_cache | 6fdea86dd34882453563f3c708d94e8702c95767 | [
"MIT"
] | null | null | null | defmodule Sanity.Cache do
@doc false
defmacro __using__([]) do
quote do
import Sanity.Cache, only: [defq: 2]
Module.register_attribute(__MODULE__, :sanity_cache_update_opts, accumulate: true)
@before_compile Sanity.Cache
end
end
@doc false
defmacro __before_compile__(_env) do
... | 27.237354 | 97 | 0.592286 |
d54540f94f97ac7af17b22045268ef76fb2224e9 | 947 | ex | Elixir | lib/azure_ad_openid/strategy/auth_code.ex | whossname/azure_ad_openid | f9ba80b509fbbcbb467e9ea8365b11f89bf44036 | [
"MIT"
] | 6 | 2019-06-12T14:36:49.000Z | 2021-01-22T19:53:15.000Z | lib/azure_ad_openid/strategy/auth_code.ex | whossname/azure_ad_openid | f9ba80b509fbbcbb467e9ea8365b11f89bf44036 | [
"MIT"
] | null | null | null | lib/azure_ad_openid/strategy/auth_code.ex | whossname/azure_ad_openid | f9ba80b509fbbcbb467e9ea8365b11f89bf44036 | [
"MIT"
] | 2 | 2020-05-02T02:18:11.000Z | 2021-02-03T20:37:22.000Z | defmodule AzureADOpenId.Strategy.AuthCode do
@moduledoc """
Oauth2 auth code strategy for Azure Active Directory.
"""
alias OAuth2.Client
alias OAuth2.Strategy.AuthCode
alias AzureADOpenId.NonceStore
# 15 minutes
@timeout 15 * 60 * 1000
@spec authorize_url!(String.t(), Keyword.t()) :: String.t()
... | 24.921053 | 82 | 0.685322 |
d545a0c6171bcb3e861b3a56163144b14e0422c6 | 7,027 | exs | Elixir | test/phoenix_live_view/test/dom_test.exs | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/phoenix_live_view/test/dom_test.exs | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/phoenix_live_view/test/dom_test.exs | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElementTest.DOMTest do
use ExUnit.Case, async: true
alias LiveElementTest.DOM
describe "find_live_views" do
# >= 4432 characters
@too_big_session Enum.map(1..4432, fn _ -> "t" end) |> Enum.join()
test "finds views given html" do
assert DOM.find_live_views(
DOM.par... | 29.401674 | 97 | 0.461363 |
d545b1d2d21c7f03200a045f2ad352e40fe07abb | 6,463 | exs | Elixir | test/unit/strong_migrations/parser_test.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 23 | 2021-10-29T19:58:35.000Z | 2021-11-13T21:42:45.000Z | test/unit/strong_migrations/parser_test.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 1 | 2021-10-31T03:57:47.000Z | 2021-10-31T14:33:45.000Z | test/unit/strong_migrations/parser_test.exs | surgeventures/strong_migrations | 3c82e34a6e7a372c6de17ba7a0b07da7664baa26 | [
"MIT"
] | 3 | 2021-10-31T02:14:10.000Z | 2021-11-09T08:07:22.000Z | defmodule StrongMigrations.ParserTest do
use ExUnit.Case, async: true
alias StrongMigrations.Migration
alias StrongMigrations.Parser
test "parsing empty file means nothing should be found" do
file_path = fixtures("empty.exs")
assert [Migration.new(file_path)] ==
Parser.parse([
... | 24.574144 | 98 | 0.662231 |
d54634efd51c1a43a937784d32e778c4a00bf6d9 | 4,353 | ex | Elixir | lib/elixir/lib/module/types/helpers.ex | adrianomitre/elixir | 556bd254db79ae0c3287a0d6773dce3e96882691 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/types/helpers.ex | adrianomitre/elixir | 556bd254db79ae0c3287a0d6773dce3e96882691 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/elixir/lib/module/types/helpers.ex | TheFirstAvenger/elixir | 1d6779dfd41ed6372db8f493a379fd324b2cc3ff | [
"Apache-2.0"
] | null | null | null | defmodule Module.Types.Helpers do
# AST and enumeration helpers.
@moduledoc false
@doc """
Guard function to check if an AST node is a variable.
"""
defmacro is_var(expr) do
quote do
is_tuple(unquote(expr)) and
tuple_size(unquote(expr)) == 3 and
is_atom(elem(unquote(expr), 0)) and... | 26.222892 | 94 | 0.596141 |
d5465930334b36d73ff363c0e75b5317e2e46147 | 8,371 | ex | Elixir | lib/mix/tasks/phx.gen.context.ex | grigor-aramyan/phoenix | d377b2e8d90753f9ec02972532e20f6878da86ad | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.context.ex | grigor-aramyan/phoenix | d377b2e8d90753f9ec02972532e20f6878da86ad | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.context.ex | grigor-aramyan/phoenix | d377b2e8d90753f9ec02972532e20f6878da86ad | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Context do
@shortdoc "Generates a context with functions around an Ecto schema"
@moduledoc """
Generates a context with functions around an Ecto schema.
mix phx.gen.context Accounts User users name:string age:integer
The first argument is the context module followed by the s... | 31.708333 | 132 | 0.706726 |
d5466afed6aff644442df51279b98d3afb433b79 | 843 | ex | Elixir | lib/plate_slate_web/resolvers/ordering.ex | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | 1 | 2019-05-11T21:50:09.000Z | 2019-05-11T21:50:09.000Z | lib/plate_slate_web/resolvers/ordering.ex | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | null | null | null | lib/plate_slate_web/resolvers/ordering.ex | conradwt/crafting-graphql-apis-in-elixir-with-absinthe | b26d050a350425ac189ea6d205834da1e47d4f90 | [
"MIT"
] | null | null | null | defmodule PlateSlateWeb.Resolvers.Ordering do
alias PlateSlate.Ordering
def place_order(_, %{input: place_order_input}, _) do
case Ordering.create_order(place_order_input) do
{:ok, order} ->
Absinthe.Subscription.publish(PlateSlateWeb.Endpoint, order, new_order: "*")
{:ok, %{order: order}... | 27.193548 | 84 | 0.641756 |
d546accf8220d46045a60782a37ad3c79d869636 | 11,966 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/image_configurations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/image_configurations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/image_configurations.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... | 43.198556 | 196 | 0.624937 |
d546b8e83ff2101b513698db13ac420293f38ace | 570 | exs | Elixir | projetos/pessoa/mix.exs | Elixir-UTFPR/curso_de_elixir_sequencial_marco_2022 | f05d723eebd35ea1b448ddc5a4e420e2a1e39e9c | [
"MIT"
] | 2 | 2022-03-07T18:24:44.000Z | 2022-03-22T09:26:20.000Z | projetos/pessoa/mix.exs | Elixir-UTFPR/curso_de_elixir_sequencial_marco_2022 | f05d723eebd35ea1b448ddc5a4e420e2a1e39e9c | [
"MIT"
] | null | null | null | projetos/pessoa/mix.exs | Elixir-UTFPR/curso_de_elixir_sequencial_marco_2022 | f05d723eebd35ea1b448ddc5a4e420e2a1e39e9c | [
"MIT"
] | 3 | 2022-03-14T22:34:06.000Z | 2022-03-16T20:56:27.000Z | defmodule Pessoa.MixProject do
use Mix.Project
def project do
[
app: :pessoa,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_appl... | 19.655172 | 87 | 0.575439 |
d546be71c0c73d924fc2136c157447c03ae74032 | 1,559 | ex | Elixir | test/support/model_case.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | null | null | null | test/support/model_case.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 3 | 2018-10-03T16:59:21.000Z | 2018-10-06T09:53:51.000Z | test/support/model_case.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 1 | 2018-10-03T17:06:47.000Z | 2018-10-03T17:06:47.000Z | defmodule Trello.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For t... | 26.423729 | 84 | 0.683772 |
d546e401bbbb1e35f0c87e80ca3b2b9bf418dcb8 | 1,880 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/dialog.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chat/lib/google_api/chat/v1/model/dialog.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chat/lib/google_api/chat/v1/model/dialog.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... | 40 | 531 | 0.759043 |
d546e5ff7e15a3363d6e3a7eed28d826b94d1cda | 13,134 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/device.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/device.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/device.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... | 73.374302 | 448 | 0.72773 |
d546f4bf3a5b43341cb8b3e47657d1e653d73562 | 9,998 | ex | Elixir | lib/apiac_auth_client_secret_post.ex | tanguilp/apiac_auth_client_secret_post | 654e2c401f249547e8cf51f01758eda12d93d9fc | [
"Apache-2.0"
] | null | null | null | lib/apiac_auth_client_secret_post.ex | tanguilp/apiac_auth_client_secret_post | 654e2c401f249547e8cf51f01758eda12d93d9fc | [
"Apache-2.0"
] | null | null | null | lib/apiac_auth_client_secret_post.ex | tanguilp/apiac_auth_client_secret_post | 654e2c401f249547e8cf51f01758eda12d93d9fc | [
"Apache-2.0"
] | null | null | null | defmodule APIacAuthClientSecretPost do
@behaviour Plug
@behaviour APIac.Authenticator
use Bitwise
@moduledoc """
An `APIac.Authenticator` plug for API authentication using the OAuth2 client secret post
scheme
The OAuth2 client secret post scheme simply consists in transmitting a client and its password... | 32.355987 | 182 | 0.641228 |
d546f736673c9cb0582a4cc7975b14f20681222d | 24 | ex | Elixir | shritesh+elixir/lib/cipher.ex | NashFP/cipher-fun | 1c1a67551e2f416447958a579aef1533831aa4ae | [
"MIT"
] | null | null | null | shritesh+elixir/lib/cipher.ex | NashFP/cipher-fun | 1c1a67551e2f416447958a579aef1533831aa4ae | [
"MIT"
] | null | null | null | shritesh+elixir/lib/cipher.ex | NashFP/cipher-fun | 1c1a67551e2f416447958a579aef1533831aa4ae | [
"MIT"
] | null | null | null | defmodule Cipher do
end
| 8 | 19 | 0.833333 |
d54706f8d96e2c79561e86cef0652747465b769a | 3,430 | ex | Elixir | lib/exwordnet/synset.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 3 | 2020-03-31T11:48:26.000Z | 2020-12-08T14:47:24.000Z | lib/exwordnet/synset.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 23 | 2019-04-23T04:56:30.000Z | 2021-08-11T08:20:30.000Z | lib/exwordnet/synset.ex | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | null | null | null | defmodule ExWordNet.Synset do
@moduledoc """
Provides abstraction over a synset (or group of synonymous words) in WordNet.
Synsets are related to each other by various (and numerous!) relationships, including
Hypernym (x is a hypernym of y <=> x is a parent of y) and Hyponym (x is a child of y)
Struct membe... | 34.646465 | 99 | 0.673761 |
d5471bc81f2de9d15530b91d2eb44ce0b17cb89d | 10,924 | ex | Elixir | lib/github/github.ex | invisible-tech/bors-ng | 145663a328e98d28e2783bb2068081e03c5db099 | [
"Apache-2.0"
] | null | null | null | lib/github/github.ex | invisible-tech/bors-ng | 145663a328e98d28e2783bb2068081e03c5db099 | [
"Apache-2.0"
] | null | null | null | lib/github/github.ex | invisible-tech/bors-ng | 145663a328e98d28e2783bb2068081e03c5db099 | [
"Apache-2.0"
] | null | null | null | require Logger
defmodule BorsNG.GitHub do
@moduledoc """
Wrappers around the GitHub REST API.
"""
@typedoc """
An authentication token;
this may be a raw token (as on oAuth)
or an installation xref (in which case the server will look it up).
"""
@type ttoken :: {:installation, number} | {:raw, binar... | 25.523364 | 92 | 0.609941 |
d5472afb15e3d293b919ed4626cf8ca12d2518cc | 835 | ex | Elixir | lib/poker_web/controllers/room_controller.ex | jpcaruana/poker | 66a96293bda7a5b6d9d20e5ee0f0f0cb54b6b4cb | [
"MIT"
] | 1 | 2020-12-01T03:23:12.000Z | 2020-12-01T03:23:12.000Z | lib/poker_web/controllers/room_controller.ex | jpcaruana/poker | 66a96293bda7a5b6d9d20e5ee0f0f0cb54b6b4cb | [
"MIT"
] | 17 | 2020-05-25T02:51:00.000Z | 2022-02-21T06:06:41.000Z | lib/poker_web/controllers/room_controller.ex | jpcaruana/poker | 66a96293bda7a5b6d9d20e5ee0f0f0cb54b6b4cb | [
"MIT"
] | 2 | 2021-12-02T17:36:23.000Z | 2022-02-20T07:02:40.000Z | defmodule PokerWeb.RoomController do
use PokerWeb, :controller
import Phoenix.LiveView.Controller
alias PokerWeb.RoomLiveView
alias Poker.Room.Auth
def show(conn, %{"id"=> id}) do
conn
|> live_render(RoomLiveView, session:
%{
"room_id" => id,
"user_token" => conn.assigns.user... | 21.973684 | 78 | 0.62994 |
d5472d6e7cf298cd2d50f0af47e76fb661aea55f | 972 | ex | Elixir | lib/elixir_console/sandbox/command_validator.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 60 | 2019-11-23T15:54:24.000Z | 2022-03-24T15:56:32.000Z | lib/elixir_console/sandbox/command_validator.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 62 | 2019-11-11T00:44:38.000Z | 2022-01-10T13:12:48.000Z | lib/elixir_console/sandbox/command_validator.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 5 | 2020-01-15T00:44:30.000Z | 2021-05-25T05:06:27.000Z | defmodule ElixirConsole.Sandbox.CommandValidator do
@moduledoc """
Check if a given Elixir code from untrusted sources is safe to be executed in
the sandbox. This module also defines a behavior to be implemented by
validator modules, providing a mechanism to compose individual safety checks
over the command.
... | 26.27027 | 79 | 0.701646 |
d54754a3b0debcc595dabce3808c663812bce935 | 3,507 | exs | Elixir | test/phoenix/token_test.exs | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | 2 | 2016-11-01T15:01:48.000Z | 2016-11-01T15:07:20.000Z | test/phoenix/token_test.exs | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | test/phoenix/token_test.exs | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | defmodule Phoenix.TokenTest do
use ExUnit.Case, async: true
alias Phoenix.Token
@moduletag :capture_log
defmodule TokenEndpoint do
def config(:secret_key_base), do: "abc123"
end
test "signes and verifies token with string" do
id = 1
key = String.duplicate("abc123", 5)
token = Token.sign(k... | 34.382353 | 114 | 0.639293 |
d54758509a7930ca93c47698f1d7f169e7c08b36 | 79 | ex | Elixir | lib/realworld_phoenix_web/views/page_view.ex | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | 9 | 2021-08-23T23:21:31.000Z | 2022-03-27T23:19:55.000Z | lib/realworld_phoenix_web/views/page_view.ex | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | null | null | null | lib/realworld_phoenix_web/views/page_view.ex | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | 1 | 2021-09-06T07:26:37.000Z | 2021-09-06T07:26:37.000Z | defmodule RealworldPhoenixWeb.PageView do
use RealworldPhoenixWeb, :view
end
| 19.75 | 41 | 0.848101 |
d54798c309fb314d7d5c60c665084f20392920cd | 67 | ex | Elixir | lib/crew_web/views/user_confirmation_view.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | lib/crew_web/views/user_confirmation_view.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | lib/crew_web/views/user_confirmation_view.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule CrewWeb.UserConfirmationView do
use CrewWeb, :view
end
| 16.75 | 41 | 0.820896 |
d547be2678a5a7b3fd26e0c9ad9cdebc5127f612 | 179 | exs | Elixir | config/config.exs | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | config/config.exs | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | config/config.exs | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | import Config
if Mix.env() == :test do
config :logger, :console,
format: "\n$time $metadata[$level] $levelpad$message\n",
metadata: [:query_time, :response_status]
end
| 22.375 | 60 | 0.675978 |
d547cd206cfd73f118aecb52252458b9fe043a15 | 40,219 | exs | Elixir | test/ecto/repo_test.exs | Qqwy/ecto | c25ab093adcee031a36484ed86e576a4c28b2c6f | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | test/ecto/repo_test.exs | Qqwy/ecto | c25ab093adcee031a36484ed86e576a4c28b2c6f | [
"Apache-2.0"
] | null | null | null | test/ecto/repo_test.exs | Qqwy/ecto | c25ab093adcee031a36484ed86e576a4c28b2c6f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.RepoTest do
use ExUnit.Case, async: true
import Ecto.Query
import Ecto, only: [put_meta: 2]
require Ecto.TestRepo, as: TestRepo
defmodule MyParent do
use Ecto.Schema
@schema_prefix "private"
schema "my_parent" do
field :n, :integer
end
def changeset(struct, params... | 35.125764 | 119 | 0.631841 |
d547cf2737edb119fb633e4da4f2145fceb998eb | 2,976 | exs | Elixir | server/test/server_web/controllers/working_time_controller_test.exs | Nymrinae/TimeManager | 5048280da7c497909bca7faf7d2256c07438d442 | [
"MIT"
] | null | null | null | server/test/server_web/controllers/working_time_controller_test.exs | Nymrinae/TimeManager | 5048280da7c497909bca7faf7d2256c07438d442 | [
"MIT"
] | null | null | null | server/test/server_web/controllers/working_time_controller_test.exs | Nymrinae/TimeManager | 5048280da7c497909bca7faf7d2256c07438d442 | [
"MIT"
] | null | null | null | defmodule ServerWeb.WorkingTimeControllerTest do
use ServerWeb.ConnCase
alias Server.WorkingTimes
alias Server.WorkingTimes.WorkingTime
@create_attrs %{
end: "2010-04-17T14:00:00Z",
start: "2010-04-17T14:00:00Z"
}
@update_attrs %{
end: "2011-05-18T15:01:01Z",
start: "2011-05-18T15:01:01Z"
... | 32 | 119 | 0.643817 |
d547eee875089b95a8e0f5d7741810aeb028d71e | 26 | ex | Elixir | lib/resx_json.ex | ScrimpyCat/ResxJSON | a23f958c95ee9cc83031710c323a09a4531f76ae | [
"BSD-2-Clause"
] | null | null | null | lib/resx_json.ex | ScrimpyCat/ResxJSON | a23f958c95ee9cc83031710c323a09a4531f76ae | [
"BSD-2-Clause"
] | null | null | null | lib/resx_json.ex | ScrimpyCat/ResxJSON | a23f958c95ee9cc83031710c323a09a4531f76ae | [
"BSD-2-Clause"
] | null | null | null | defmodule ResxJSON do
end
| 8.666667 | 21 | 0.846154 |
d54800e64dd4840b99fb0ba9a9f9ae9837e12131 | 1,429 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/pull_stopped_event.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/pull_stopped_event.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/genomics/lib/google_api/genomics/v1/model/pull_stopped_event.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... | 30.404255 | 95 | 0.736179 |
d54812879c37ba6a741b66a75b4c1bc69eac63cc | 5,812 | exs | Elixir | apps/re/test/owner_contacts/owner_contacts_test.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/test/owner_contacts/owner_contacts_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/test/owner_contacts/owner_contacts_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.OwnerContactsTest do
use Re.ModelCase
alias Re.{
OwnerContact,
OwnerContacts
}
import Re.Factory
describe "all/0" do
test "get all owners contacts available" do
%{uuid: uuid_1} = insert(:owner_contact)
%{uuid: uuid_2} = insert(:owner_contact)
result = Enum.map(Ow... | 30.270833 | 91 | 0.6681 |
d5481931023859815d4b419b9a85d34973bc6a23 | 1,769 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_set_parameter_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_set_parameter_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_fulfillment_set_parameter_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... | 32.163636 | 118 | 0.73714 |
d5482965aec6ad367ba19ce454973eaf57c41852 | 1,987 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/network_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/network_list_warning_data.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/network_list_warning_data.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.74 | 527 | 0.736789 |
d548366dda57f421b750c133c44c8c7fd0317e63 | 992 | exs | Elixir | rel/config.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | rel/config.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | rel/config.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :dev
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/co... | 28.342857 | 74 | 0.765121 |
d548494404fff87f55b0d6ddbe6dc19fe86e0dfe | 7,638 | ex | Elixir | lib/mix/tasks.ex | 2trde/excoveralls | 779608a97f5905b394c858890866de0b463ac034 | [
"MIT"
] | null | null | null | lib/mix/tasks.ex | 2trde/excoveralls | 779608a97f5905b394c858890866de0b463ac034 | [
"MIT"
] | null | null | null | lib/mix/tasks.ex | 2trde/excoveralls | 779608a97f5905b394c858890866de0b463ac034 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Coveralls do
@moduledoc """
Provides an entry point for displaying
coveralls.io from local server.
"""
use Mix.Task
@shortdoc "Display the test coverage"
@preferred_cli_env :test
defmodule Runner do
def run(task, args) do
Mix.Task.run(task, args)
end
end
def run(... | 28.822642 | 167 | 0.647814 |
d5484bf2ba7c7b1fad5430dfc47130074a797fba | 1,974 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/download_account_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/download_account_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/download_account_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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.555556 | 142 | 0.741641 |
d54852889fc4740a8f28fd802194bddfbc90513f | 906 | exs | Elixir | test/kwerk/account/user_test.exs | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | 2 | 2018-09-23T08:45:07.000Z | 2020-01-20T15:47:45.000Z | test/kwerk/account/user_test.exs | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | test/kwerk/account/user_test.exs | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | defmodule Kwerk.Account.UserTest do
use Kwerk.DataCase
alias Kwerk.Account.User
import Kwerk.Factory
test "changeset with invalid attributes" do
country = insert(:country)
changeset = User.changeset(%User{}, %{
name: "John Dave Decano",
email: "johndavedecano@gmail.com",
password: "... | 25.885714 | 55 | 0.663355 |
d54857c891419ae8311cdee6b7c112a9bc6e9829 | 468 | exs | Elixir | test/models/user_test.exs | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | 3 | 2016-12-20T17:16:39.000Z | 2017-02-22T11:06:56.000Z | test/models/user_test.exs | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | 1 | 2017-05-31T16:32:41.000Z | 2017-05-31T16:32:41.000Z | test/models/user_test.exs | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | null | null | null | defmodule BigSnips.UserTest do
use BigSnips.ModelCase
alias BigSnips.User
@valid_attrs %{email: "some content", name: "some content", password_hash: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert changeset.valid?... | 24.631579 | 92 | 0.722222 |
d5485b6da7ca9fc999f47b56347204ccb187ef60 | 5,121 | ex | Elixir | lib/codes/codes_x82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_x82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_x82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_X82 do
alias IcdCode.ICDCode
def _X820XXA do
%ICDCode{full_code: "X820XXA",
category_code: "X82",
short_code: "0XXA",
full_name: "Intentional collision of motor vehicle with other motor vehicle, initial encounter",
short_name: "Intentional c... | 44.530435 | 112 | 0.67643 |
d54863a9c6d4368913bd167a5cb40da596a4f3fe | 13,157 | ex | Elixir | lib/lcd_display/driver/hd44780_mcp23017.ex | philipgiuliani/lcd_display | 41ec73eb554d97c02d7ff16489fa4bec88618f3e | [
"MIT"
] | 8 | 2021-01-18T21:24:56.000Z | 2022-02-04T08:14:31.000Z | lib/lcd_display/driver/hd44780_mcp23017.ex | philipgiuliani/lcd_display | 41ec73eb554d97c02d7ff16489fa4bec88618f3e | [
"MIT"
] | null | null | null | lib/lcd_display/driver/hd44780_mcp23017.ex | philipgiuliani/lcd_display | 41ec73eb554d97c02d7ff16489fa4bec88618f3e | [
"MIT"
] | 1 | 2021-01-06T15:39:56.000Z | 2021-01-06T15:39:56.000Z | defmodule LcdDisplay.HD44780.MCP23017 do
@moduledoc """
Knows how to commuticate with HD44780 type display through the 16-bit I/O expander
[MCP23017](https://ww1.microchip.com/downloads/en/devicedoc/20001952c.pdf).
You can turn on/off the backlight and change the LED color by switching on/off red, green and blu... | 35.36828 | 119 | 0.661017 |
d548879329767e84d45b48891faa57689296c5bf | 1,087 | ex | Elixir | webrtc/simple/lib/simple/peer.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 84 | 2020-08-01T14:57:29.000Z | 2022-03-27T13:28:23.000Z | webrtc/simple/lib/simple/peer.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 75 | 2020-08-24T08:01:53.000Z | 2022-03-17T10:41:22.000Z | webrtc/simple/lib/simple/peer.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 17 | 2020-09-15T21:04:23.000Z | 2022-03-31T07:43:48.000Z | defmodule Example.Simple.Peer do
@moduledoc false
use Membrane.WebRTC.Server.Peer
require Logger
@impl true
def parse_request(request) do
with {:ok, room_name} <- get_room_name(request),
{:ok, credentials} <- get_credentials(request) do
{:ok, credentials, nil, room_name}
end
end
... | 23.12766 | 80 | 0.652254 |
d5489b9bd0cb747fddbd2c8ab466c3203d506446 | 639 | ex | Elixir | lib/nomad_client/model/restart_policy.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/restart_policy.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/restart_policy.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 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 NomadClient.Model.RestartPolicy do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:Interval,
:Attempts,
:Delay,
:Mo... | 20.612903 | 91 | 0.618153 |
d548c102c255c496014c7ec52cf00c52110f48b1 | 141 | exs | Elixir | apps/streamer/test/streamer_test.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/streamer/test/streamer_test.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/streamer/test/streamer_test.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | defmodule StreamerTest do
use ExUnit.Case
doctest Streamer
test "greets the world" do
assert Streamer.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
d548d5ac1e139fef6e66bd71bece1483eca85367 | 935 | ex | Elixir | twitter/old/lib/physics/rocketry.ex | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | twitter/old/lib/physics/rocketry.ex | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | twitter/old/lib/physics/rocketry.ex | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | defmodule Physics.Rocketry do
import Converter
import Calcs
import Physics.Laws, only: [newtons_gravitational_constant: 0]
import Planet
@earth Planet.select[:earth]
def orbital_acceleration(height), do: orbital_acceleration(@earth,height)
def orbital_acceleration(planet, height) do
(orbital_speed(planet, h... | 28.333333 | 121 | 0.760428 |
d5490146598f84abc87d3ce1db3089a1fa71bf4e | 1,089 | ex | Elixir | lib/ambry_web/live/book_live/show.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry_web/live/book_live/show.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry_web/live/book_live/show.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule AmbryWeb.BookLive.Show do
@moduledoc """
LiveView for showing book details.
"""
use AmbryWeb, :live_view
import AmbryWeb.TimeUtils, only: [duration_display: 1]
alias Ambry.Books
@impl Phoenix.LiveView
def mount(%{"id" => book_id}, _session, socket) do
book = Books.get_book_with_media!(... | 24.75 | 82 | 0.629936 |
d5495252da374ea2f5255d7ffe8e092a68ccd61c | 1,674 | ex | Elixir | clients/script/lib/google_api/script/v1/model/google_apps_script_type_function.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/google_apps_script_type_function.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/model/google_apps_script_type_function.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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.48 | 140 | 0.727001 |
d5497e9d3b03b82bddc81293a5a0703065a4a3e1 | 553 | ex | Elixir | lib/ex_contract/requires_exception.ex | kbaird/ex_contract | d7d3cb4709b0d7052acd057ea5b75e333268fe55 | [
"MIT"
] | 65 | 2017-11-07T06:45:14.000Z | 2021-12-05T10:17:20.000Z | lib/ex_contract/requires_exception.ex | kbaird/ex_contract | d7d3cb4709b0d7052acd057ea5b75e333268fe55 | [
"MIT"
] | 4 | 2018-05-08T00:12:02.000Z | 2021-04-02T17:08:06.000Z | lib/ex_contract/requires_exception.ex | kbaird/ex_contract | d7d3cb4709b0d7052acd057ea5b75e333268fe55 | [
"MIT"
] | 5 | 2018-02-01T04:53:15.000Z | 2019-08-31T03:01:48.000Z | defmodule ExContract.RequiresException do
@moduledoc """
Custom exception raised by `ExContract.requires/1` macro.
"""
use ExContract.BaseContractException
@spec new(condition_txt :: String.t(), env :: any, msg :: String.t()) :: t
def new(condition_txt, env, msg) do
%__MODULE__{message: message(condit... | 30.722222 | 90 | 0.703436 |
d54986b6610f238f51d3962f2a8e3e2af0cc4a84 | 254 | exs | Elixir | config/test.secret.example.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | config/test.secret.example.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | config/test.secret.example.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | use Mix.Config
# Configure your database
config :agile_pulse, AgilePulse.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "agile_pulse_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
| 23.090909 | 37 | 0.748031 |
d5498ec4a284c1ddd0ca39dd0961c1176fb0f34f | 2,221 | ex | Elixir | lib/arp_server/api/jsonrpc2/device.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | 3 | 2018-07-23T01:50:50.000Z | 2018-08-13T13:12:05.000Z | lib/arp_server/api/jsonrpc2/device.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | lib/arp_server/api/jsonrpc2/device.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | defmodule ARP.API.JSONRPC2.Device do
@moduledoc false
use JSONRPC2.Server.Module
alias ARP.API.JSONRPC2.Protocol
alias ARP.{Account, DeviceManager, Utils}
def request(price, ip, port, nonce, sign) do
decoded_price = Utils.decode_hex(price)
private_key = Account.private_key()
addr = Account.add... | 28.113924 | 96 | 0.662314 |
d549b676010dac62637ae0b2031e548974564301 | 608 | ex | Elixir | lib/naboo/auth/guardian.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | lib/naboo/auth/guardian.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | lib/naboo/auth/guardian.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | defmodule Naboo.Auth.Guardian do
@moduledoc """
Used by Guardian to serialize a JWT token
"""
use Guardian, otp_app: :naboo
alias Naboo.Accounts
alias Naboo.Accounts.User
def subject_for_token(%User{} = user, _claims) do
{:ok, user.uuid}
end
def subject_for_token(_resource, _claims) do
{... | 20.266667 | 56 | 0.689145 |
d549eccd6ec8cf155896bd38c2926e2c2722dbf9 | 4,444 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_request_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_request_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_request_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 58.473684 | 710 | 0.745725 |
d549f43433ddd76a5e59f7bb7b8195593e626710 | 263 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/config/test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | installer/templates/phx_umbrella/apps/app_name_web/config/test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | installer/templates/phx_umbrella/apps/app_name_web/config/test.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | # We don't run a server during test. If one is required,
# you can enable the server option below.
config :<%= @web_app_name %>, <%= @endpoint_module %>,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "<%= @secret_key_base_test %>",
server: false
| 37.571429 | 56 | 0.653992 |
d549fbc605936e881a1215e4a5aeda65c530d336 | 2,332 | exs | Elixir | config/config.exs | kamidev/nerves_livebook | adae20a49f6c9fcac8252806c2284c20b38ab8d2 | [
"Apache-2.0"
] | 51 | 2021-09-21T12:23:41.000Z | 2022-03-31T08:37:17.000Z | config/config.exs | kamidev/nerves_livebook | adae20a49f6c9fcac8252806c2284c20b38ab8d2 | [
"Apache-2.0"
] | 37 | 2021-09-21T11:35:28.000Z | 2022-03-18T13:00:31.000Z | config/config.exs | kamidev/nerves_livebook | adae20a49f6c9fcac8252806c2284c20b38ab8d2 | [
"Apache-2.0"
] | 7 | 2021-09-26T22:33:35.000Z | 2022-02-20T10:59:29.000Z | import Config
# Enable the Nerves integration with Mix
Application.start(:nerves_bootstrap)
config :nerves_livebook, target: Mix.target()
# Customize non-Elixir parts of the firmware. See
# https://hexdocs.pm/nerves/advanced-configuration.html for details.
config :nerves, :firmware,
rootfs_overlay: "rootfs_overla... | 31.513514 | 90 | 0.734991 |
d54a054cfdd3781cfca7f7f6f63248c3b2037d86 | 1,371 | ex | Elixir | lib/handlers/IRC/users.ex | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 19 | 2015-07-21T04:58:12.000Z | 2022-01-20T23:25:18.000Z | lib/handlers/IRC/users.ex | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 3 | 2020-07-17T22:29:17.000Z | 2020-07-20T00:31:41.000Z | lib/handlers/IRC/users.ex | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 3 | 2015-08-26T14:59:37.000Z | 2021-05-05T04:00:06.000Z | defmodule Blur.IRC.Names do
@moduledoc """
Stores the names of the users in a channel
"""
require Logger
use GenServer
@doc """
Start name listener
"""
@spec start_link(client :: pid) :: GenServer.on_start()
def start_link(client) do
GenServer.start_link(__MODULE__, client)
end
@impl GenS... | 24.482143 | 71 | 0.617797 |
d54a283f7bf6918ce2a8c013b39bfd5dfff7e522 | 9,427 | ex | Elixir | lib/mastani_server/accounts/delegates/favorite_category.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/accounts/delegates/favorite_category.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/accounts/delegates/favorite_category.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Accounts.Delegate.FavoriteCategory do
@moduledoc """
user FavoriteCategory related
"""
import Ecto.Query, warn: false
alias Helper.QueryBuilder
import Helper.ErrorCode
import Helper.Utils, only: [done: 1, count_words: 1]
import ShortMaps
alias Helper.ORM
alias MastaniServ... | 37.114173 | 97 | 0.652806 |
d54a2b905567649f55a2c04f82d72a5c43ededda | 2,638 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/image_source.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/image_source.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/image_source.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 51.72549 | 875 | 0.742229 |
d54a37f14b4464830c178626fb1feb321c94e5cf | 1,229 | exs | Elixir | elixir-phoenix/config/prod.secret.exs | duijf/boilerplates | a0aecb0de2c2a3f77ae8eeab1a030f4abc38959f | [
"MIT"
] | null | null | null | elixir-phoenix/config/prod.secret.exs | duijf/boilerplates | a0aecb0de2c2a3f77ae8eeab1a030f4abc38959f | [
"MIT"
] | null | null | null | elixir-phoenix/config/prod.secret.exs | duijf/boilerplates | a0aecb0de2c2a3f77ae8eeab1a030f4abc38959f | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.261905 | 67 | 0.715216 |
d54a50f5e96f1c138dd929133b9a0ae346450ebf | 1,437 | exs | Elixir | apps/event_stream/test/event_stream/event_stream_test.exs | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/event_stream/test/event_stream/event_stream_test.exs | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/event_stream/test/event_stream/event_stream_test.exs | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.EventStream.EventStreamTest do
use ExUnit.Case
alias Staxx.EventStream
alias Staxx.EventStream.Test.EventSubscriber
@moduletag :event_stream
@receive_timeout 200
setup do
{:ok, _pid} = EventSubscriber.start_link(self())
:ok
end
test "receive mesasages on subscribe" do
# ... | 29.9375 | 72 | 0.722338 |
d54a698495dd25a0690bc45f2e8c12e5d9f51661 | 239 | exs | Elixir | functional_programming_triller/exercicio_aula_2/functional/logista.exs | eltonfonseca/d_academy | dcda1e6d170204249eccc925661e41dc7c582b9a | [
"MIT"
] | null | null | null | functional_programming_triller/exercicio_aula_2/functional/logista.exs | eltonfonseca/d_academy | dcda1e6d170204249eccc925661e41dc7c582b9a | [
"MIT"
] | null | null | null | functional_programming_triller/exercicio_aula_2/functional/logista.exs | eltonfonseca/d_academy | dcda1e6d170204249eccc925661e41dc7c582b9a | [
"MIT"
] | null | null | null | defmodule Logista do
defstruct [
nome: "",
sobrenome: "",
anoNascimento: 0,
pais: ""
]
def quantidade_vendida(produtos), do: produtos |> Enum.count
def quantidade_clientes(clientes), do: clientes |> Enum.count
end
| 19.916667 | 63 | 0.661088 |
d54a725f23225cd0e52f760c42ac893b1df5b083 | 877 | exs | Elixir | 12-new-project/balance/test/balance_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/balance/test/balance_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/balance/test/balance_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule BalanceTest do
use ExUnit.Case
doctest Balance
test "Initial amount must't be negative" do
{:error, reason} = Balance.create(-100)
assert reason == "amount can't be negative"
end
test "Default initial amount must be zero" do
{:ok, balance} = Balance.create()
assert Balance.read(bal... | 25.794118 | 50 | 0.675029 |
d54a774b43744178c09ac79b25c88b9b2fa6f408 | 14,908 | ex | Elixir | lib/spect.ex | primait/spect | 159ce8da55884f2afac122ca66e9a7f947b173ee | [
"Apache-2.0"
] | 14 | 2018-02-04T16:27:19.000Z | 2021-01-06T02:55:57.000Z | lib/spect.ex | primait/spect | 159ce8da55884f2afac122ca66e9a7f947b173ee | [
"Apache-2.0"
] | 12 | 2018-06-01T16:26:46.000Z | 2022-02-16T18:42:08.000Z | lib/spect.ex | primait/spect | 159ce8da55884f2afac122ca66e9a7f947b173ee | [
"Apache-2.0"
] | 3 | 2018-06-13T19:45:52.000Z | 2022-03-03T11:25:04.000Z | defmodule Spect do
@moduledoc """
Elixir typespec enhancements
"""
use Memoize
defmodule ConvertError do
@moduledoc """
A custom exception raised when a field could not be converted
to the type declared by the target typespec.
"""
defexception message: "could not map to spec"
end
@d... | 26.909747 | 79 | 0.536893 |
d54aa4a2d06a24086f17f306f520d1a4245715e3 | 3,601 | ex | Elixir | lib/base/config.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 2 | 2021-05-07T03:27:19.000Z | 2021-05-19T02:04:01.000Z | lib/base/config.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | 1 | 2021-05-10T14:09:36.000Z | 2021-05-10T14:10:11.000Z | lib/base/config.ex | lizhaochao/Argx | d2fb6e346d824a2775603e2eb779bb588870636d | [
"MIT"
] | null | null | null | defmodule Argx.Config do
@moduledoc false
alias Argx.Error
@enforce_keys [:type, :optional, :autoconvert, :empty]
defstruct @enforce_keys ++ [:range, :nested, :default, :checkbox, :radio]
def get_defconfigs(m, f_name_keyword) when is_atom(m) do
:functions
|> m.__info__()
|> Enum.filter(fn {f_na... | 28.579365 | 93 | 0.624549 |
d54aa9c0b4634fd043e91df918f5d9030d7e2438 | 1,174 | ex | Elixir | lib/stubbex_web/channels/user_socket.ex | yawaramin/stubbex | 5de6a0b5a7fd05229278673a032f59b6bb4aa06f | [
"MIT"
] | 9 | 2018-10-24T22:56:46.000Z | 2020-07-15T20:34:50.000Z | lib/stubbex_web/channels/user_socket.ex | yawaramin/stubbex | 5de6a0b5a7fd05229278673a032f59b6bb4aa06f | [
"MIT"
] | 10 | 2018-10-21T02:01:21.000Z | 2019-11-14T17:03:32.000Z | lib/stubbex_web/channels/user_socket.ex | yawaramin/stubbex | 5de6a0b5a7fd05229278673a032f59b6bb4aa06f | [
"MIT"
] | 1 | 2018-11-12T12:51:19.000Z | 2018-11-12T12:51:19.000Z | defmodule StubbexWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", StubbexWeb.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and ... | 30.894737 | 83 | 0.702726 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.