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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28a806437ea59714afc25309f3e6add3b5a88bea | 1,499 | ex | Elixir | lib/brod_group_subscriber_example/telemetry.ex | reachfh/brod_group_subscriber_example | 9976d5e9c74f658f3c8ba6802e7e4aa80e62bc10 | [
"Apache-2.0"
] | null | null | null | lib/brod_group_subscriber_example/telemetry.ex | reachfh/brod_group_subscriber_example | 9976d5e9c74f658f3c8ba6802e7e4aa80e62bc10 | [
"Apache-2.0"
] | null | null | null | lib/brod_group_subscriber_example/telemetry.ex | reachfh/brod_group_subscriber_example | 9976d5e9c74f658f3c8ba6802e7e4aa80e62bc10 | [
"Apache-2.0"
] | null | null | null | defmodule BrodGroupSubscriberExample.Telemetry do
@moduledoc """
Telemetry integration.
Unless specified, all times are in `:native` units.
Description of all events:
"""
@app Mix.Project.config()[:app]
@doc false
# emits a `start` telemetry event and returns the the start time
def start(event, met... | 25.844828 | 98 | 0.655771 |
28a83956ae66ef7bd4277166b070812dd34481ec | 730 | exs | Elixir | test/ex_doc/markdown/hoedown_test.exs | k1complete/ex_doc | 512dcabef778f9af675dbdfc44fa2bef2b8924f0 | [
"Apache-2.0"
] | null | null | null | test/ex_doc/markdown/hoedown_test.exs | k1complete/ex_doc | 512dcabef778f9af675dbdfc44fa2bef2b8924f0 | [
"Apache-2.0"
] | null | null | null | test/ex_doc/markdown/hoedown_test.exs | k1complete/ex_doc | 512dcabef778f9af675dbdfc44fa2bef2b8924f0 | [
"Apache-2.0"
] | null | null | null | defmodule ExDoc.Markdown.HoedownTest do
use ExUnit.Case, async: true
@moduletag :hoedown
alias ExDoc.Markdown.Hoedown, as: Markdown
test "to_html generate the HTML from the markdown" do
assert Markdown.to_html("# Test") == "<h1>Test</h1>\n"
end
test "to_html raises an ArgumentError if the value pass... | 27.037037 | 103 | 0.691781 |
28a873cc97d49866c2a523d0fd4aa65b6792024f | 2,214 | ex | Elixir | apps/buzzcms/lib/buzzcms/schema/entry.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms/lib/buzzcms/schema/entry.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms/lib/buzzcms/schema/entry.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule Buzzcms.Schema.Entry do
use Ecto.Schema
import Ecto.Changeset
@required_fields [:slug, :title, :entry_type_id]
@optional_fields [
:subtitle,
:description,
:body,
:rich_text,
:featured,
:image,
:state,
:tags,
:published_at,
:created_by_id,
:modified_by_id
... | 34.59375 | 94 | 0.723126 |
28a88bbe58512348cefd58706620da3821712670 | 6,211 | exs | Elixir | integration_test/sql/migrator.exs | sbacarob/ecto_sql | dd457bbeb2f9468487020aa2c6142f323f42b696 | [
"Apache-2.0"
] | null | null | null | integration_test/sql/migrator.exs | sbacarob/ecto_sql | dd457bbeb2f9468487020aa2c6142f323f42b696 | [
"Apache-2.0"
] | null | null | null | integration_test/sql/migrator.exs | sbacarob/ecto_sql | dd457bbeb2f9468487020aa2c6142f323f42b696 | [
"Apache-2.0"
] | 1 | 2020-01-09T14:22:12.000Z | 2020-01-09T14:22:12.000Z | Code.require_file "../support/file_helpers.exs", __DIR__
defmodule Ecto.Integration.MigratorTest do
use Ecto.Integration.Case
import Support.FileHelpers
import ExUnit.CaptureLog
import Ecto.Migrator
alias Ecto.Integration.{TestRepo, PoolRepo}
alias Ecto.Migration.SchemaMigration
setup do
PoolRepo.... | 27.122271 | 102 | 0.664466 |
28a8adb1e180d57ce5f8813fb3a19e5d6801e1c2 | 2,240 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_resource_entitlement.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_resource_entitlement.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_resource_entitlement.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.966102 | 143 | 0.716964 |
28a8f15085a060f230030e797020c506f4afd309 | 1,678 | ex | Elixir | apps/data_warehouse/lib/data_warehouse/subscriber/worker.ex | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | apps/data_warehouse/lib/data_warehouse/subscriber/worker.ex | Cinderella-Man/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | apps/data_warehouse/lib/data_warehouse/subscriber/worker.ex | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | defmodule DataWarehouse.Subscriber.Worker do
use GenServer
require Logger
defmodule State do
@enforce_keys [:topic]
defstruct [:topic]
end
def start_link(topic) do
GenServer.start_link(
__MODULE__,
topic,
name: via_tuple(topic)
)
end
def init(topic) do
Logger.info... | 20.716049 | 66 | 0.635876 |
28a9002a8c75250788f28ad379a128b241b60c64 | 2,068 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/double_verify_brand_safety_categories.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/double_verify_brand_safety_categories.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/double_verify_brand_safety_categories.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.018868 | 137 | 0.749516 |
28a90d03e6c5aaa025aef31ff74afa7c55da3078 | 1,509 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_groups_set_node_template_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/node_groups_set_node_template_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/node_groups_set_node_template_request.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 ... | 32.106383 | 146 | 0.750166 |
28a94a2c48ee99e8bd9bf2b1434a584c6375abc3 | 2,841 | ex | Elixir | apps/api_web/test/support/conn_case.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/test/support/conn_case.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/test/support/conn_case.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the dat... | 27.317308 | 85 | 0.68145 |
28a971170627a5c7b79bb089feddbacfbce51388 | 622 | ex | Elixir | lib/renraku_web/router.ex | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | lib/renraku_web/router.ex | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | lib/renraku_web/router.ex | moroz/renraku | 845e6a72573f138094ba8f868ac91b7f3440bdab | [
"BSD-3-Clause"
] | null | null | null | defmodule RenrakuWeb.Router do
use RenrakuWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug RenrakuWeb.Plugs.VerifyToken
end
pipeline :api do
plug :accepts, ["json"]
end... | 22.214286 | 80 | 0.699357 |
28a9a0315de00508fb2ea6b5b213200f9fb22caa | 487 | ex | Elixir | lib/hivebot/meme_captain.ex | illiatdesdindes/hivebot | 694cd58f0d8b9b9db467cfad3a1a585b8e8fb3ae | [
"MIT"
] | 1 | 2016-08-09T21:27:53.000Z | 2016-08-09T21:27:53.000Z | lib/hivebot/meme_captain.ex | illiatdesdindes/hivebot | 694cd58f0d8b9b9db467cfad3a1a585b8e8fb3ae | [
"MIT"
] | null | null | null | lib/hivebot/meme_captain.ex | illiatdesdindes/hivebot | 694cd58f0d8b9b9db467cfad3a1a585b8e8fb3ae | [
"MIT"
] | null | null | null | defmodule Hivebot.MemeCaptain do
def random_meme(query) do
query
|> search_meme
|> Enum.random()
end
def search_meme(query) do
get("/src_images.json?q=#{URI.encode(query)}&page=2").body
|> JSX.decode!()
|> Enum.map(fn meme -> symbolify(meme) end)
end
def get(url) do
HTTPoison.get... | 20.291667 | 62 | 0.605749 |
28a9c5c685f5f8e4e9de9427b51c9f058178730a | 491 | ex | Elixir | lib/transforms/any_nfd.ex | elixir-cldr/unicode_transform | c95e844e7c1bf26577ff73e1fc03746766ab8b8a | [
"Apache-2.0"
] | 4 | 2019-11-23T04:07:03.000Z | 2022-03-23T21:04:36.000Z | lib/transforms/any_nfd.ex | elixir-cldr/unicode_transform | c95e844e7c1bf26577ff73e1fc03746766ab8b8a | [
"Apache-2.0"
] | 1 | 2022-03-27T23:02:04.000Z | 2022-03-27T23:02:04.000Z | lib/transforms/any_nfd.ex | elixir-cldr/unicode_transform | c95e844e7c1bf26577ff73e1fc03746766ab8b8a | [
"Apache-2.0"
] | 1 | 2022-03-27T17:07:35.000Z | 2022-03-27T17:07:35.000Z | defmodule Unicode.Transform.AnyNfd do
@behaviour Unicode.Transform
@impl Unicode.Transform
def transform(string, caller \\ nil)
def transform(string, nil) do
String.normalize(string, :nfd)
end
def transform("", _caller) do
""
end
def transform(<<char::utf8, rest::binary>>, caller) do
if ... | 21.347826 | 71 | 0.655804 |
28a9c5f804f0034a50d265839b066eb464a90778 | 4,200 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/binding.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/binding.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/binding.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... | 42 | 143 | 0.702857 |
28a9c70a0a54faaea1cf0aa2daf0ec98c665ab39 | 2,807 | exs | Elixir | apps/discovery_api/test/unit/discovery_api/data/persistence_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/discovery_api/test/unit/discovery_api/data/persistence_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/discovery_api/test/unit/discovery_api/data/persistence_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApi.Data.PersistenceTest do
use ExUnit.Case
use Placebo
alias DiscoveryApi.Data.Persistence
describe "persist/2" do
test "sets complex objects correctly" do
allow(Redix.command(:redix, ["SET", any(), any()]), return: :does_not_matter)
Persistence.persist("redis_key", %{value... | 35.0875 | 109 | 0.581404 |
28a9d7e4df452ef2555e98c73edc3d888eb47b50 | 2,984 | exs | Elixir | apps/re_web/test/controllers/listings/featured_controller_test.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/test/controllers/listings/featured_controller_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re_web/test/controllers/listings/featured_controller_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.FeaturedControllerTest do
use ReWeb.ConnCase
alias ReWeb.Guardian
import Re.Factory
setup %{conn: conn} do
conn = put_req_header(conn, "accept", "application/json")
admin_user = insert(:user, email: "admin@email.com", role: "admin")
user_user = insert(:user, email: "user@email.com... | 31.744681 | 98 | 0.606233 |
28a9e08349a549b283e719aea15216b9f26c098a | 485 | ex | Elixir | haha/elixir/lib/haha_web/views/error_view.ex | oasis-open/openc2-lycan-beam | 0be49bb26f4489260f3d8c9c64545c0008c52e1c | [
"MIT"
] | 4 | 2018-04-27T19:40:56.000Z | 2019-07-02T14:12:30.000Z | haha/elixir/lib/haha_web/views/error_view.ex | oasis-open/openc2-lycan-beam | 0be49bb26f4489260f3d8c9c64545c0008c52e1c | [
"MIT"
] | 8 | 2018-10-23T20:12:51.000Z | 2021-05-11T01:27:53.000Z | haha/elixir/lib/haha_web/views/error_view.ex | oasis-open/openc2-lycan-beam | 0be49bb26f4489260f3d8c9c64545c0008c52e1c | [
"MIT"
] | 3 | 2018-03-23T20:37:40.000Z | 2018-06-13T01:12:31.000Z | defmodule HaHaWeb.ErrorView do
use HaHaWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. For ... | 28.529412 | 61 | 0.731959 |
28aa02258ed6e9cbb585ccfd2d99284a2b70a5e7 | 64 | ex | Elixir | lib/nookal/case.ex | theo-agilelab/nookal-elixir | 09db7cc48c48ed1e714fb74c5c38c9a21e7e189a | [
"MIT"
] | 1 | 2020-06-11T07:57:06.000Z | 2020-06-11T07:57:06.000Z | lib/nookal/case.ex | theo-agilelab/nookal-elixir | 09db7cc48c48ed1e714fb74c5c38c9a21e7e189a | [
"MIT"
] | null | null | null | lib/nookal/case.ex | theo-agilelab/nookal-elixir | 09db7cc48c48ed1e714fb74c5c38c9a21e7e189a | [
"MIT"
] | 1 | 2019-09-05T08:30:48.000Z | 2019-09-05T08:30:48.000Z | defmodule Nookal.Case do
defstruct [:id, :title, :status]
end
| 16 | 34 | 0.71875 |
28aa4b38b9eb10b869b39c3569717d88fa4cbb20 | 1,096 | ex | Elixir | chatter/test/support/conn_case.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | chatter/test/support/conn_case.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | chatter/test/support/conn_case.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule Chatter.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the dat... | 24.355556 | 69 | 0.70438 |
28aa690f040d4c2ae3f7e2c20afc6a103ea7c0bc | 5,211 | ex | Elixir | lib/new_relic/tracer/report.ex | cultureamp/elixir_agent | 6a6b883a9032cd60e1872925dae705e99487de69 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/tracer/report.ex | cultureamp/elixir_agent | 6a6b883a9032cd60e1872925dae705e99487de69 | [
"Apache-2.0"
] | 1 | 2019-02-08T01:08:31.000Z | 2019-02-20T00:24:51.000Z | lib/new_relic/tracer/report.ex | cultureamp/elixir_agent | 6a6b883a9032cd60e1872925dae705e99487de69 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Tracer.Report do
alias NewRelic.Transaction
# Helper functions that will report traced function events in their various forms
# - Transaction Trace segments
# - Distributed Trace spans
# - Transaction attributes
# - Metrics
# - Aggregate metric-like NRDB events
@moduledoc false... | 29.607955 | 91 | 0.639417 |
28aa83ba70ad02b5cb5f9cfc91233a5dde3cd629 | 1,364 | ex | Elixir | lib/credo/execution/monitor.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/execution/monitor.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/execution/monitor.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | defmodule Credo.Execution.Monitor do
require Logger
alias Credo.Execution.Timing
def task(exec, task, opts, fun, args) do
context_tuple = {:task, exec, task, opts}
log(:call_start, context_tuple)
{started_at, time, exec} = Timing.run(fun, args)
log(:call_end, context_tuple, time)
Timing.a... | 24.357143 | 86 | 0.637097 |
28aaa873b3d1c0d1c0de1c12a939efcf6242dd24 | 723 | ex | Elixir | lib/jeopardixir_web/gettext.ex | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | 1 | 2021-06-16T15:27:04.000Z | 2021-06-16T15:27:04.000Z | lib/jeopardixir_web/gettext.ex | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | 25 | 2021-06-18T13:08:18.000Z | 2021-12-15T19:04:57.000Z | lib/jeopardixir_web/gettext.ex | arielj/jeopardixir | d596dd4c0af7398f8b533518b5d8dc30c5bac94b | [
"MIT"
] | null | null | null | defmodule JeopardixirWeb.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 JeopardixirWeb.Gettext
# Simple translation
gettext("H... | 28.92 | 72 | 0.683264 |
28aab90a2df45f62098f53e3c7769c5280855bc2 | 628 | exs | Elixir | mix.exs | taskd19/rl-study | a0b80f720471341adada0bc1452b58d6c608b097 | [
"Apache-2.0"
] | null | null | null | mix.exs | taskd19/rl-study | a0b80f720471341adada0bc1452b58d6c608b097 | [
"Apache-2.0"
] | null | null | null | mix.exs | taskd19/rl-study | a0b80f720471341adada0bc1452b58d6c608b097 | [
"Apache-2.0"
] | null | null | null | defmodule RlStudy.MixProject do
use Mix.Project
def project do
[
app: :rl_study,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_a... | 20.258065 | 87 | 0.55414 |
28aac06300dc2b8259efe32089e833d8b910d027 | 596 | exs | Elixir | test/geolix/adapter/fake/lifecycle_test.exs | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | test/geolix/adapter/fake/lifecycle_test.exs | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | test/geolix/adapter/fake/lifecycle_test.exs | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Adapter.Fake.LifecycleTest do
use ExUnit.Case, async: true
@ip {42, 42, 42, 42}
@result :fake_result
@lifecycle_id :test_fake_adapter_lifecycle
@lifecycle_db %{
id: @lifecycle_id,
adapter: Geolix.Adapter.Fake,
data: Map.put(%{}, @ip, @result)
}
test "fake adapter (loading) l... | 23.84 | 62 | 0.699664 |
28ab3b95f8d1e2371c160f1cad96e25dbd21cd17 | 442 | ex | Elixir | lib/siwapp_web/views/api/token_view.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 4 | 2015-02-12T09:23:47.000Z | 2022-03-09T18:11:06.000Z | lib/siwapp_web/views/api/token_view.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 254 | 2021-12-09T14:40:41.000Z | 2022-03-31T08:09:37.000Z | lib/siwapp_web/views/api/token_view.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 1 | 2022-03-07T10:25:49.000Z | 2022-03-07T10:25:49.000Z | defmodule SiwappWeb.Api.TokenView do
@moduledoc false
use SiwappWeb, :view
@spec render(binary, map) :: map()
def render("token.json", %{token: token}) do
%{token: token}
end
def render("error.json", %{error_message: error_message}) do
%{error_message: error_message}
end
def render("valid_tok... | 24.555556 | 81 | 0.680995 |
28ab8d9bb4ab70a4d959996cf504345849896aa1 | 2,402 | exs | Elixir | test/vnu/message_test.exs | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 51 | 2020-04-11T22:30:43.000Z | 2022-01-14T13:24:56.000Z | test/vnu/message_test.exs | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | 20 | 2020-04-13T12:20:49.000Z | 2022-03-29T18:32:41.000Z | test/vnu/message_test.exs | angelikatyborska/vnu-elixir | c12676e41b7fba3b8acf98812f0e3a054c298458 | [
"MIT"
] | null | null | null | defmodule Vnu.MessageTest do
use ExUnit.Case
alias Vnu.Message
describe "from_html_response" do
test "parses a map with camelCase string keys" do
message =
Message.from_http_response(%{
"type" => "error",
"subType" => "fatal",
"message" => "some message",
... | 30.025 | 82 | 0.565779 |
28abca4469653f9620b150f5af1a4b9910452d4f | 294 | ex | Elixir | rumbrella/apps/info_sys/lib/supervisor.ex | antonmi/espec_phoenix | 51c44b6b1ece9fb48438b93f9765dfe834ee5544 | [
"MIT"
] | 144 | 2015-04-30T15:12:46.000Z | 2022-01-07T03:40:26.000Z | rumbrella/apps/info_sys/lib/supervisor.ex | antonmi/espec_phoenix | 51c44b6b1ece9fb48438b93f9765dfe834ee5544 | [
"MIT"
] | 57 | 2015-04-29T11:26:54.000Z | 2022-01-05T13:35:10.000Z | rumbrella/apps/info_sys/lib/supervisor.ex | antonmi/espec_phoenix | 51c44b6b1ece9fb48438b93f9765dfe834ee5544 | [
"MIT"
] | 46 | 2015-06-12T11:26:15.000Z | 2021-12-15T00:38:26.000Z | defmodule InfoSys.Supervisor do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_opts) do
children = [
worker(InfoSys, [], restart: :temporary)
]
supervise children, strategy: :simple_one_for_one
end
end
| 19.6 | 59 | 0.690476 |
28ac17dba04925583d53375cff1dc593cd7e76b6 | 147 | ex | Elixir | apps/core/lib/core/telemetry_handler/fraud_repo_handler.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/telemetry_handler/fraud_repo_handler.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/telemetry_handler/fraud_repo_handler.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.TelemetryHandler.FraudRepoHandler do
@moduledoc false
use EhealthLogger.TelemetryHandler, prefix: :core, repo: :fraud_repo
end
| 24.5 | 70 | 0.816327 |
28ac26f478f5a7ebfaee612e52f6badfd44511c0 | 106,764 | ex | Elixir | lib/elixir/lib/kernel.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | # Use elixir_bootstrap module to be able to bootstrap Kernel.
# The bootstrap module provides simpler implementations of the
# functions removed, simple enough to bootstrap.
import Kernel, except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2,
defmacro: 1, defmacro: 2, defmacrop: 2]
import :elixi... | 25.995617 | 128 | 0.629763 |
28ac2b3cc713397863d1a407e2426c647f3b55b8 | 627 | ex | Elixir | lib/i2c_server/application.ex | mnishiguchi/i2c_server | b18d0aa5b7696d12e493dadf2f59a40d52b7dd71 | [
"MIT"
] | 8 | 2021-04-29T14:01:55.000Z | 2021-05-29T09:17:14.000Z | lib/i2c_server/application.ex | mnishiguchi/i2c_server | b18d0aa5b7696d12e493dadf2f59a40d52b7dd71 | [
"MIT"
] | 3 | 2021-05-19T00:56:01.000Z | 2021-05-29T15:17:38.000Z | lib/i2c_server/application.ex | mnishiguchi/i2c_server | b18d0aa5b7696d12e493dadf2f59a40d52b7dd71 | [
"MIT"
] | 1 | 2022-02-15T15:20:50.000Z | 2022-02-15T15:20:50.000Z | defmodule I2cServer.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: I2cServer.Worker.start_link(arg)
# {I2cServer.Wor... | 27.26087 | 68 | 0.704944 |
28ac34e735662c40418771f216ff7526d3f04dbf | 705 | ex | Elixir | plain-planner/elixir/lib/plain_web/gettext.ex | danielmarreirosdeoliveira/prototypes | 047a7d0cae84b31213c06b45304e41a18e0678cb | [
"Apache-2.0"
] | null | null | null | plain-planner/elixir/lib/plain_web/gettext.ex | danielmarreirosdeoliveira/prototypes | 047a7d0cae84b31213c06b45304e41a18e0678cb | [
"Apache-2.0"
] | 1 | 2020-05-10T13:37:43.000Z | 2020-05-10T13:37:43.000Z | plain-planner/elixir/lib/plain_web/gettext.ex | danielmarreirosdeoliveira/prototypes | 047a7d0cae84b31213c06b45304e41a18e0678cb | [
"Apache-2.0"
] | null | null | null | defmodule PlainWeb.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 PlainWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
28ac36013ee8ce15ebd0bb0a22eeff61237b6a24 | 1,545 | ex | Elixir | test/support/factories/transaction.ex | denvera/ex-yapay | 18ac9a20108f21554a4c61b9c822694fa5189eb8 | [
"MIT"
] | 3 | 2020-08-11T19:05:55.000Z | 2020-08-19T21:57:39.000Z | test/support/factories/transaction.ex | denvera/ex-yapay | 18ac9a20108f21554a4c61b9c822694fa5189eb8 | [
"MIT"
] | 2 | 2020-08-20T16:32:02.000Z | 2021-09-27T18:46:40.000Z | test/support/factories/transaction.ex | denvera/ex-yapay | 18ac9a20108f21554a4c61b9c822694fa5189eb8 | [
"MIT"
] | 3 | 2020-08-11T19:20:22.000Z | 2021-10-17T17:29:59.000Z | defmodule ExYapay.Support.Factories.Transaction do
@moduledoc false
defmacro __using__(_opts) do
quote do
def transaction_factory do
%{
customer: %{
addresses: [
%{
city: "Campo Grande",
completion: "",
neighborho... | 29.150943 | 66 | 0.486084 |
28ac536d17da99d29aae0ad85925f0b8cb7ccdbb | 1,466 | exs | Elixir | config/config.exs | kwoodwardizi/MongoosePush | 9d8408367ccaea56742c3963157a9e861dff1551 | [
"Apache-2.0"
] | null | null | null | config/config.exs | kwoodwardizi/MongoosePush | 9d8408367ccaea56742c3963157a9e861dff1551 | [
"Apache-2.0"
] | null | null | null | config/config.exs | kwoodwardizi/MongoosePush | 9d8408367ccaea56742c3963157a9e861dff1551 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :logger,
handle_otp_reports: true
config :logger, :console,
format: "\n$dateT$time [$level] $metadata$levelpad$message\n",
metadata: [:pid]
# Stop lager redirecting :e... | 22.553846 | 72 | 0.682128 |
28ac5c9033ec56da7a0bd31cf2e31a4a0fa46400 | 859 | ex | Elixir | lib/os/sys_calls/factory_reset.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_os/lib/farmbot_os/sys_calls/factory_reset.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_os/lib/farmbot_os/sys_calls/factory_reset.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotOS.SysCalls.FactoryReset do
@moduledoc false
require FarmbotCore.Logger
alias FarmbotCore.{Asset, BotState}
alias FarmbotExt.APIFetcher
def factory_reset("farmbot_os") do
FarmbotOS.System.factory_reset("Soft resetting...", true)
:ok
end
def factory_reset("arduino_firmware") do
... | 27.709677 | 80 | 0.708964 |
28ac692bd78487dbefc0b51908816f91b37c7319 | 5,868 | exs | Elixir | services/fc_goods/test/fc_goods/router_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_goods/test/fc_goods/router_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_goods/test/fc_goods/router_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCGoods.RouterTest do
use FCBase.RouterCase, async: true
alias FCGoods.Router
alias FCGoods.{
AddStockable,
UpdateStockable,
DeleteStockable
}
alias FCGoods.{
StockableAdded,
StockableUpdated,
StockableDeleted
}
setup do
Application.ensure_all_started(:fc_goods)
... | 26.552036 | 93 | 0.616905 |
28ac998ddcec7c5ad35b788f82128cf49888ef6d | 2,159 | exs | Elixir | apps/thundermoon_web/test/thundermoon_web/live/chat_live_test.exs | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/thundermoon_web/test/thundermoon_web/live/chat_live_test.exs | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/thundermoon_web/test/thundermoon_web/live/chat_live_test.exs | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule ThundermoonWeb.ChatLiveTest do
use ThundermoonWeb.ConnCase
import Phoenix.LiveViewTest
alias Phoenix.PubSub
import ThundermoonWeb.AuthSupport
alias Thundermoon.ChatMessages
def login_as_member(%{conn: conn}) do
conn = login_as(conn, %{username: "crumb"})
%{conn: conn}
end
def logi... | 28.407895 | 72 | 0.605373 |
28ad04770e999e3027bf7d38c861da924f1862b2 | 2,162 | exs | Elixir | config/dev.exs | rmartinsc/livrodealemao | 337e2b7f5bd6de6b84d6ec44a37a839bee71319e | [
"MIT"
] | null | null | null | config/dev.exs | rmartinsc/livrodealemao | 337e2b7f5bd6de6b84d6ec44a37a839bee71319e | [
"MIT"
] | null | null | null | config/dev.exs | rmartinsc/livrodealemao | 337e2b7f5bd6de6b84d6ec44a37a839bee71319e | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :livrodealemao, LivrodealemaoWeb.Endpoint,
http:... | 28.447368 | 68 | 0.694265 |
28ad0adeadb9aa3caee239869d0224d95261acaf | 1,920 | ex | Elixir | lib/providers/assume_role.ex | smanolloff/tesla-aws-signer | 8f5ce9f33c2e86049449a1f089674b27b0d7eea9 | [
"Apache-2.0"
] | null | null | null | lib/providers/assume_role.ex | smanolloff/tesla-aws-signer | 8f5ce9f33c2e86049449a1f089674b27b0d7eea9 | [
"Apache-2.0"
] | null | null | null | lib/providers/assume_role.ex | smanolloff/tesla-aws-signer | 8f5ce9f33c2e86049449a1f089674b27b0d7eea9 | [
"Apache-2.0"
] | null | null | null | defmodule AwsSigner.Providers.AssumeRole do
alias AwsSigner.Credentials
@client Application.get_env(:aws_signer, :aws_client, AwsSigner.Client)
@spec get_credentials(
arn: String.t(),
region: String.t(),
session_name: String.t(),
access_key_id: String.t(),
secre... | 27.042254 | 88 | 0.629688 |
28ad21b078f58bb5ec3b4ebb46f1f38ea1e17938 | 631 | exs | Elixir | test/views/error_view_test.exs | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | defmodule UeberauthExample.ErrorViewTest do
use UeberauthExampleWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(UeberauthExampleWeb.ErrorView, "404.html", []) ==
"Page not found"
... | 28.681818 | 77 | 0.698891 |
28ad30b00006155ddfa3864d13d0e49b9179202a | 8,263 | exs | Elixir | test/details/tag_test.exs | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 218 | 2016-07-29T01:21:45.000Z | 2022-02-08T15:19:41.000Z | test/details/tag_test.exs | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 49 | 2016-08-06T20:57:43.000Z | 2022-01-24T23:46:10.000Z | test/details/tag_test.exs | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 29 | 2016-08-18T07:07:37.000Z | 2022-01-11T14:39:52.000Z | defmodule PhoenixIntegration.Details.TagTest do
use ExUnit.Case, async: true
import FlowAssertions.MapA
import PhoenixIntegration.FormSupport
alias PhoenixIntegration.Form.Tag
describe "common transformations" do
test "single-valued names" do
floki_tag = """
<input name="top_level[animal]" ... | 30.83209 | 99 | 0.507806 |
28ad3ee0207e778c8f04361f3086476d288ab83a | 1,879 | exs | Elixir | apps/site/test/site_web/channels/vehicle_channel_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | apps/site/test/site_web/channels/vehicle_channel_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | 65 | 2021-05-06T18:38:33.000Z | 2022-03-28T20:50:04.000Z | apps/site/test/site_web/channels/vehicle_channel_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | defmodule SiteWeb.VehicleChannelTest do
use SiteWeb.ChannelCase
alias Leaflet.MapData.Marker
alias SiteWeb.{VehicleChannel, UserSocket}
alias Vehicles.Repo
test "sends vehicles and marker data" do
# subscribes to a random channel name to
# avoid receiving real data in assert_push
assert {:ok, _,... | 29.825397 | 82 | 0.584886 |
28ad42784283ffe425186b917da30488542a215c | 3,036 | exs | Elixir | test/mssql_ecto/insert_test.exs | nikneroz/mssql_ecto | d010b6c9c9041756353fc8184fa7e6368103cfac | [
"Apache-2.0"
] | null | null | null | test/mssql_ecto/insert_test.exs | nikneroz/mssql_ecto | d010b6c9c9041756353fc8184fa7e6368103cfac | [
"Apache-2.0"
] | null | null | null | test/mssql_ecto/insert_test.exs | nikneroz/mssql_ecto | d010b6c9c9041756353fc8184fa7e6368103cfac | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.MSSQL.InsertTest do
use Ecto.Adapters.MSSQL.Case, async: true
import Ecto.Query
test "insert" do
query =
SQL.insert(nil, "schema", [:x, :y], [[:x, :y]], {:raise, [], []}, [:id])
assert query ==
~s{INSERT INTO "schema" ("x","y") OUTPUT INSERTED."id" VALUES (?1,... | 27.853211 | 155 | 0.462121 |
28ad67b9f393ce743978f081794a9866f3c003f8 | 299 | ex | Elixir | interop/lib/interop/app.ex | falood/grpc-elixir | 7353aa04cbf4cd982183aacd54d645fe6b4571dd | [
"Apache-2.0"
] | null | null | null | interop/lib/interop/app.ex | falood/grpc-elixir | 7353aa04cbf4cd982183aacd54d645fe6b4571dd | [
"Apache-2.0"
] | null | null | null | interop/lib/interop/app.ex | falood/grpc-elixir | 7353aa04cbf4cd982183aacd54d645fe6b4571dd | [
"Apache-2.0"
] | null | null | null | defmodule Interop.App do
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
supervisor(GRPC.Server.Supervisor, [{Interop.Server, 50051}])
]
opts = [strategy: :one_for_one, name: __MODULE__]
Supervisor.start_link(children, opts)
end
end
| 19.933333 | 67 | 0.688963 |
28ad6945836f362550debdc898afe6c26a2ff09c | 233 | ex | Elixir | lib/tools.ex | cuddlecake/extreme | 98f18ecc2fa38034808ddca37f70508bfc77e809 | [
"MIT"
] | 121 | 2015-11-11T21:04:51.000Z | 2021-11-16T16:20:35.000Z | lib/tools.ex | cuddlecake/extreme | 98f18ecc2fa38034808ddca37f70508bfc77e809 | [
"MIT"
] | 65 | 2016-02-08T18:05:24.000Z | 2021-11-16T09:53:48.000Z | lib/tools.ex | cuddlecake/extreme | 98f18ecc2fa38034808ddca37f70508bfc77e809 | [
"MIT"
] | 34 | 2015-11-19T20:08:16.000Z | 2022-01-11T10:46:38.000Z | defmodule Extreme.Tools do
def gen_uuid do
Keyword.get(UUID.info!(UUID.uuid1()), :binary, :undefined)
end
def normalize_port(port) when is_binary(port), do: String.to_integer(port)
def normalize_port(port), do: port
end
| 25.888889 | 76 | 0.733906 |
28ad6e385a552a20b5d4c1aec1482aad38ec90cc | 1,082 | exs | Elixir | clients/on_demand_scanning/test/test_helper.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/on_demand_scanning/test/test_helper.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/on_demand_scanning/test/test_helper.exs | 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... | 30.055556 | 83 | 0.743068 |
28ad6e7cb9e3e933e111b3ef4b78095f737f42e7 | 1,526 | ex | Elixir | lib/events_web/router.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/router.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/router.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | defmodule EventsWeb.Router do
use EventsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug EventsWeb.Plugs.FetchUser
end
pipeline :api do
plug :accepts, ["json"]
end
s... | 27.745455 | 70 | 0.70118 |
28ad8e88a7a4974902269b7608caaa314088aaba | 5,298 | ex | Elixir | apps/bot/lib/bot/commands.ex | patrickpichler/ElixirTelegramTestBot | 98206298266870c304f2686339b95c2bd7c4e40c | [
"Unlicense"
] | null | null | null | apps/bot/lib/bot/commands.ex | patrickpichler/ElixirTelegramTestBot | 98206298266870c304f2686339b95c2bd7c4e40c | [
"Unlicense"
] | null | null | null | apps/bot/lib/bot/commands.ex | patrickpichler/ElixirTelegramTestBot | 98206298266870c304f2686339b95c2bd7c4e40c | [
"Unlicense"
] | null | null | null | defmodule Bot.Commands do
use Bot.Router
use Bot.Commander
alias Bot.Commands.Scheduler
# You can create commands in the format `/command` by
# using the macro `command "command"`.
command ["hello", "hi"] do
# Logger module injected from Bot.Commander
Logger.log :info, "Command /hello or /hi"
... | 33.745223 | 81 | 0.659872 |
28adb03d7bec1e81b60266d6bfa56cd3fd288082 | 4,483 | exs | Elixir | test/mechanize/request_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 25 | 2020-06-26T02:21:35.000Z | 2022-03-05T18:51:46.000Z | test/mechanize/request_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 29 | 2019-07-02T21:50:06.000Z | 2020-05-28T18:34:01.000Z | test/mechanize/request_test.exs | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 4 | 2020-06-24T02:11:47.000Z | 2022-03-06T00:50:59.000Z | defmodule Mechanize.RequestTest do
use ExUnit.Case, async: true
alias Mechanize.{Request, Header}
doctest Mechanize.Request
@subject %Request{url: "https://example.com/search?q=teste"}
describe ".normalize" do
test "downcase all headers" do
result =
@subject
|> Map.put(:headers, ... | 34.484615 | 112 | 0.489627 |
28adc19eebb7e4719b604eea4c3eb86954dff479 | 815 | exs | Elixir | cpcache/mix.exs | jarda-wien/cpcache | f30d30308fa8d40e422b96bef40a47bf198a2c32 | [
"MIT"
] | 19 | 2017-02-21T14:32:51.000Z | 2020-03-25T08:44:37.000Z | cpcache/mix.exs | jarda-wien/cpcache | f30d30308fa8d40e422b96bef40a47bf198a2c32 | [
"MIT"
] | 27 | 2018-05-04T04:18:07.000Z | 2020-06-01T14:23:10.000Z | cpcache/mix.exs | jarda-wien/cpcache | f30d30308fa8d40e422b96bef40a47bf198a2c32 | [
"MIT"
] | 3 | 2018-10-20T13:00:07.000Z | 2020-03-20T17:49:18.000Z | defmodule Cpc.Mixfile do
use Mix.Project
def project do
[
elixirc_paths: elixirc_paths(Mix.env()),
app: :cpcache,
version: "0.1.0",
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
defp elixirc_paths... | 22.638889 | 88 | 0.532515 |
28adda1de82be599f12533aaf992f166f63c3801 | 752 | ex | Elixir | lib/elastic/document.ex | twix14/elastic | 1e2c7a3fe7b28bfa6cc574b10fd7bc6dca3dadfa | [
"MIT"
] | 63 | 2016-10-19T15:48:22.000Z | 2021-12-21T02:55:39.000Z | lib/elastic/document.ex | twix14/elastic | 1e2c7a3fe7b28bfa6cc574b10fd7bc6dca3dadfa | [
"MIT"
] | 33 | 2016-11-13T02:41:07.000Z | 2021-05-25T11:12:51.000Z | lib/elastic/document.ex | twix14/elastic | 1e2c7a3fe7b28bfa6cc574b10fd7bc6dca3dadfa | [
"MIT"
] | 27 | 2016-11-13T02:47:29.000Z | 2022-01-25T02:16:39.000Z | defmodule Elastic.Document do
@moduledoc false
alias Elastic.HTTP
alias Elastic.Index
def index(index, type, id, data) do
document_path(index, type, id) |> HTTP.put(body: data)
end
def update(index, type, id, data) do
data = %{doc: data}
update_path(index, type, id)
|> HTTP.post(body: da... | 19.789474 | 58 | 0.646277 |
28adea1ffe1f9df2f1538915f92d69e25ab893ac | 1,059 | ex | Elixir | lib/health_inspector/endpoint.ex | ShadowBan/health-inspector | 47a05a97031d2d4dce411fc06bf8612087ba31cb | [
"MIT"
] | null | null | null | lib/health_inspector/endpoint.ex | ShadowBan/health-inspector | 47a05a97031d2d4dce411fc06bf8612087ba31cb | [
"MIT"
] | null | null | null | lib/health_inspector/endpoint.ex | ShadowBan/health-inspector | 47a05a97031d2d4dce411fc06bf8612087ba31cb | [
"MIT"
] | null | null | null | defmodule HealthInspector.Endpoint do
use Phoenix.Endpoint, otp_app: :health_inspector
socket "/socket", HealthInspector.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in producti... | 26.475 | 69 | 0.72238 |
28adf83e31adf10cbff3a24862ef0d1ef83fe6d6 | 64 | ex | Elixir | lib/ex338_web/views/pow/session_view.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | lib/ex338_web/views/pow/session_view.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | lib/ex338_web/views/pow/session_view.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338Web.Pow.SessionView do
use Ex338Web, :view
end
| 16 | 37 | 0.796875 |
28ae0dc3482aeb04c99be40029bacd6aa3df1e37 | 1,037 | ex | Elixir | lib/domain/application.ex | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | 3 | 2020-03-09T04:29:49.000Z | 2020-07-14T16:09:50.000Z | lib/domain/application.ex | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | null | null | null | lib/domain/application.ex | ideaMarcos/portishead | 0ad09af305e1e663c0d080a9637b8420d0f40fd1 | [
"MIT"
] | null | null | null | defmodule Portishead.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Portishead.Repo,
# Start the Telemetry supervisor
P... | 29.628571 | 68 | 0.70974 |
28ae2055ce16f30a5626690d9746267d42a20d95 | 4,008 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/list_update_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/list_update_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/list_update_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 54.90411 | 335 | 0.748004 |
28ae4699d57343cbbbb53f64c12457d4bbaf7985 | 2,851 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/security_settings.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/security_settings.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/security_settings.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... | 50.910714 | 561 | 0.766398 |
28ae4f4cc8e7fa39558fba0736d502e2a1828abd | 604 | exs | Elixir | backend/test/views/error_view_test.exs | tykowale/faketwitter | 8cb2f15bbc285d079daec153311b7f6fda167dd2 | [
"MIT"
] | 1 | 2016-03-20T21:38:39.000Z | 2016-03-20T21:38:39.000Z | backend/test/views/error_view_test.exs | tykowale/faketwitter | 8cb2f15bbc285d079daec153311b7f6fda167dd2 | [
"MIT"
] | null | null | null | backend/test/views/error_view_test.exs | tykowale/faketwitter | 8cb2f15bbc285d079daec153311b7f6fda167dd2 | [
"MIT"
] | null | null | null | defmodule Backend.ErrorViewTest do
use Backend.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(Backend.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
test "render 5... | 27.454545 | 66 | 0.645695 |
28ae6b2e6dea189d47f79a6f0c4b2f6d5c7b7e2e | 183 | exs | Elixir | samples/run.exs | timbuchwaldt/fast_ensure_loaded | 1bb85bf813e4d9286defcc1f5b07b15d266885ba | [
"MIT"
] | null | null | null | samples/run.exs | timbuchwaldt/fast_ensure_loaded | 1bb85bf813e4d9286defcc1f5b07b15d266885ba | [
"MIT"
] | null | null | null | samples/run.exs | timbuchwaldt/fast_ensure_loaded | 1bb85bf813e4d9286defcc1f5b07b15d266885ba | [
"MIT"
] | 1 | 2018-02-20T21:29:32.000Z | 2018-02-20T21:29:32.000Z | Benchee.run(%{
"Code.ensure_loaded" => fn -> Code.ensure_loaded(FastEnsureLoaded) end,
"FastEnsureLoaded" => fn -> FastEnsureLoaded.ensure_loaded(FastEnsureLoaded) end
})
| 36.6 | 86 | 0.715847 |
28aea71ecbf1cbeb12a93fefc94071ab332fe8d9 | 136 | exs | Elixir | test/imagineer/image/png/compression/zlib_test.exs | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 103 | 2015-01-28T19:09:42.000Z | 2018-10-22T15:05:46.000Z | test/imagineer/image/png/compression/zlib_test.exs | tyre/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 12 | 2015-07-11T05:12:41.000Z | 2018-07-21T04:42:47.000Z | test/imagineer/image/png/compression/zlib_test.exs | ndemonner/imagineer | a6872296756cde19f8f575a7d1854d0fe7cbcb02 | [
"MIT"
] | 18 | 2015-06-16T15:48:34.000Z | 2018-06-22T02:34:40.000Z | defmodule Imagineer.Image.PNG.Compression.ZlibTest do
use ExUnit.Case, async: true
doctest Imagineer.Image.PNG.Compression.Zlib
end
| 27.2 | 53 | 0.816176 |
28aea8dad6f13ec75736667e3709fc1f71bcf5fc | 716 | exs | Elixir | test/optimization_test.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | 8 | 2020-01-08T06:55:36.000Z | 2021-03-10T15:44:46.000Z | test/optimization_test.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | test/optimization_test.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | # defmodule MatrexNumerix.OptimizationTest do
# use ExUnit.Case, async: true
# import MatrexNumerix.Optimization
# @tag iterations: 10
# test "genetic optimization returns the solution with the lowest cost" do
# cost_fun = fn(xs) -> Enum.sum(xs) end
# # for_all {min, max, count} in such_that({min_, m... | 28.64 | 88 | 0.608939 |
28aeb5a332d534e4a0db29ce524ce0003d28b046 | 1,254 | ex | Elixir | lib/livebook_web/live/home_live/import_content_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 1,846 | 2021-04-13T14:46:36.000Z | 2021-07-14T20:37:40.000Z | lib/livebook_web/live/home_live/import_content_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 411 | 2021-07-15T07:41:54.000Z | 2022-03-31T21:34:22.000Z | lib/livebook_web/live/home_live/import_content_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 130 | 2021-04-13T15:43:55.000Z | 2021-07-12T16:57:46.000Z | defmodule LivebookWeb.HomeLive.ImportContentComponent do
use LivebookWeb, :live_component
@impl true
def mount(socket) do
{:ok, assign(socket, content: "")}
end
@impl true
def render(assigns) do
~H"""
<div class="flex-col space-y-5">
<p class="text-gray-700">
Import notebook by d... | 27.866667 | 105 | 0.578947 |
28aec6912b8e0c9ff8d4da0f90639b454ec89787 | 814 | exs | Elixir | config/prod.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | config/prod.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | config/prod.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | use Mix.Config
config :sentry,
dsn: System.get_env("SENTRY_DSN") || "",
environment_name: :prod,
enable_source_code_context: true,
root_source_code_path: File.cwd!(),
tags: %{
env: "production"
},
included_environments: [:prod]
config :logger,
backends: [{Logger.Backend.Splunk, :splunk}, :console]... | 27.133333 | 76 | 0.727273 |
28aee409ef72d270794cea86079e500cce3c7237 | 578 | ex | Elixir | lib/nexmo/webhook.ex | CarouselSMS/nexmo_elixir | f9be807bb5198a165b6453bc0aa5cdb6a3dc1a05 | [
"MIT"
] | null | null | null | lib/nexmo/webhook.ex | CarouselSMS/nexmo_elixir | f9be807bb5198a165b6453bc0aa5cdb6a3dc1a05 | [
"MIT"
] | null | null | null | lib/nexmo/webhook.ex | CarouselSMS/nexmo_elixir | f9be807bb5198a165b6453bc0aa5cdb6a3dc1a05 | [
"MIT"
] | null | null | null | defmodule Nexmo.Webhook do
require Logger
use ExActor.GenServer
@doc """
When you start your app, you should start link this or put in application, thus it can mount to application automatically with route /nexmo/callback
"""
@httpoison_opts [{:hackney, [{:pool, __MODULE__}]}]
defstart start_link() do... | 25.130435 | 152 | 0.730104 |
28aee88898ea8a2ef310f39ecfcc3389ddc6c8ba | 10,536 | exs | Elixir | test/astarte_data_updater_plant/data_updater/payloads_decoder_test.exs | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 5 | 2018-01-30T15:08:23.000Z | 2019-12-20T15:06:56.000Z | test/astarte_data_updater_plant/data_updater/payloads_decoder_test.exs | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 17 | 2018-01-31T15:50:22.000Z | 2019-12-05T17:26:06.000Z | test/astarte_data_updater_plant/data_updater/payloads_decoder_test.exs | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 2 | 2018-01-31T15:43:04.000Z | 2019-11-15T12:00:05.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 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... | 38.036101 | 160 | 0.683941 |
28aeeac0781f4b28fd50884d66960b3dc1ad60ee | 7,634 | ex | Elixir | lib/ecto/exceptions.ex | matteing/ecto | beabc36931222ac574bb0047fef90d84cb138459 | [
"Apache-2.0"
] | 3,931 | 2016-06-16T11:38:48.000Z | 2022-03-31T21:24:19.000Z | lib/ecto/exceptions.ex | matteing/ecto | beabc36931222ac574bb0047fef90d84cb138459 | [
"Apache-2.0"
] | 2,343 | 2016-06-16T11:18:09.000Z | 2022-03-27T23:44:43.000Z | deps/ecto/lib/ecto/exceptions.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 1,300 | 2016-06-17T13:56:59.000Z | 2022-03-31T01:46:20.000Z | defmodule Ecto.Query.CompileError do
@moduledoc """
Raised at compilation time when the query cannot be compiled.
"""
defexception [:message]
end
defmodule Ecto.Query.CastError do
@moduledoc """
Raised at runtime when a value cannot be cast.
"""
defexception [:type, :value, :message]
def exception(o... | 24.86645 | 95 | 0.662431 |
28aef644e02e4c187c045db17a84e00c1684b73d | 3,307 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/operation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/operation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/operation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 55.116667 | 661 | 0.725431 |
28af06997fafa5c78d78bc49482537cb223d02f5 | 1,277 | exs | Elixir | mix.exs | mickel8/ex_quic | 23feb136a059cee37ece6db4fc9723c2b570a266 | [
"MIT"
] | 5 | 2021-02-15T12:10:33.000Z | 2022-03-15T19:36:53.000Z | mix.exs | mickel8/ex_quic | 23feb136a059cee37ece6db4fc9723c2b570a266 | [
"MIT"
] | null | null | null | mix.exs | mickel8/ex_quic | 23feb136a059cee37ece6db4fc9723c2b570a266 | [
"MIT"
] | null | null | null | defmodule ExQuic.MixProject do
use Mix.Project
@version "0.1.2"
@github_url "https://github.com/mickel8/ex_quic"
def project do
[
app: :ex_quic,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers() ++ [:third_party, :unifex, :b... | 19.059701 | 70 | 0.509005 |
28af15e504d0c58ee66531ce16ee64221c6fbf23 | 900 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.333333 | 74 | 0.763333 |
28af1cf6b69e97c722f121187bca7e108eeba958 | 1,412 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/ios_test_loop.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/ios_test_loop.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/ios_test_loop.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... | 30.042553 | 79 | 0.734419 |
28af6788f4e7596f8459a70e5e924ee386349f5f | 3,332 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__timestamped_object.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__timestamped_object.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__timestamped_object.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.666667 | 225 | 0.751501 |
28af9171fc07899142b1d4ba2b52d56d9cebe1aa | 1,443 | ex | Elixir | lib/api/suffrages/suffrage.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | lib/api/suffrages/suffrage.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | lib/api/suffrages/suffrage.ex | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.Suffrages.Suffrage do
use Ecto.Schema
import Ecto.Changeset
alias Api.Suffrages.{Candidate, Vote, PaperVote}
alias Api.Competitions.Competition
@valid_attrs ~w(
name
slug
voting_started_at
voting_ended_at
competition_id
)a
@required_attrs ~w(
name
slug
comp... | 23.274194 | 88 | 0.664588 |
28af99d345c11cfc1c84d6ff958baf174cbbe469 | 916 | ex | Elixir | lib/exhort/sat/interval_var.ex | elixir-or-tools/exhort | 8cf3ff1df5031bba6b87343a0068b30ce953a3c1 | [
"Apache-2.0"
] | 3 | 2022-01-04T15:58:43.000Z | 2022-01-06T22:22:13.000Z | lib/exhort/sat/interval_var.ex | elixir-or-tools/exhort | 8cf3ff1df5031bba6b87343a0068b30ce953a3c1 | [
"Apache-2.0"
] | null | null | null | lib/exhort/sat/interval_var.ex | elixir-or-tools/exhort | 8cf3ff1df5031bba6b87343a0068b30ce953a3c1 | [
"Apache-2.0"
] | 1 | 2022-01-21T22:05:18.000Z | 2022-01-21T22:05:18.000Z | defmodule Exhort.SAT.IntervalVar do
@moduledoc """
An interval variable defined in the model.
"""
alias __MODULE__
@type t :: %__MODULE__{}
defstruct [:res, :name, :start, :size, :stop, :opts]
@doc """
Define a new interval variable.
- `name` - The variable name that may be referenced in other exp... | 28.625 | 78 | 0.59607 |
28afdb8a8dd9ff859455dbe74fc7aeb9c757ea28 | 1,990 | exs | Elixir | pig/config/prod.exs | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | 37 | 2021-01-31T17:43:03.000Z | 2021-11-17T12:29:00.000Z | config/prod.exs | queer/pig | 95ff2957fdf8104ca1be584c5a9cdfa99b2d9131 | [
"BSD-3-Clause"
] | 4 | 2021-05-29T04:54:28.000Z | 2021-06-26T20:40:48.000Z | pig/config/prod.exs | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | null | null | null | 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,
# ... | 35.535714 | 66 | 0.711558 |
28aff85685763760ed36184bba6192d4a309a5da | 2,322 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__text_annotation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__text_annotation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__text_annotation.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... | 35.723077 | 195 | 0.737726 |
28b0b3bfc5de1bca83d82ddfe099cc89d8087488 | 1,079 | exs | Elixir | config/config.exs | sandeshsoni/phoenix-liveview-collection | 6a3ae19f9aec1d2776a38edca2ff8497fc371257 | [
"MIT"
] | null | null | null | config/config.exs | sandeshsoni/phoenix-liveview-collection | 6a3ae19f9aec1d2776a38edca2ff8497fc371257 | [
"MIT"
] | null | null | null | config/config.exs | sandeshsoni/phoenix-liveview-collection | 6a3ae19f9aec1d2776a38edca2ff8497fc371257 | [
"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.
# General application configuration
use Mix.Config
# Configures the endpoint
config :live_view_coll... | 34.806452 | 86 | 0.776645 |
28b0c3fd359eb7ab41ae3e7312c629398bcdf595 | 2,746 | ex | Elixir | lib/aws/generated/forecastquery.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/forecastquery.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/forecastquery.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"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.Forecastquery do
@moduledoc """
Provides APIs for creating and managing Amazon Forecast resources.
"""
@doc """
Retrieves a forecast for a single item, filtered by the supplied criteria... | 32.305882 | 114 | 0.671158 |
28b0c621bc0d09ac0c4246e5d929d7aa1765d6e7 | 2,007 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/text_property_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/text_property_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/text_property_options.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... | 40.14 | 208 | 0.760837 |
28b0fa2db839f32aeccd4a788f6cee3b49ba1934 | 560 | ex | Elixir | apps/tai/lib/tai/new_orders/responses/cancel.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/new_orders/responses/cancel.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/new_orders/responses/cancel.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.NewOrders.Responses.Cancel do
@moduledoc """
Return from venue adapters when the order was canceled
"""
@type venue_order_id :: Tai.NewOrders.Order.venue_order_id()
@type t :: %__MODULE__{
id: venue_order_id,
status: atom,
leaves_qty: Decimal.t(),
receive... | 19.310345 | 62 | 0.619643 |
28b1140627307b23ccb662f537ad8c8ba0f3a427 | 336 | ex | Elixir | lib/churrobot/schemas/schemas.ex | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | 1 | 2018-05-18T16:18:03.000Z | 2018-05-18T16:18:03.000Z | lib/churrobot/schemas/schemas.ex | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | null | null | null | lib/churrobot/schemas/schemas.ex | nickveys/slack-churrobot | 1eecbd9dd72185e6efd72cf47b479ee7678532bb | [
"MIT"
] | null | null | null | defmodule Churrobot.Schemas do
import Ecto.Query, warn: false
alias Churrobot.Repo
alias Churrobot.Schemas.Counts
def get_all_counts do
Repo.all(Counts)
end
def get_counts(user) do
from(
c in Counts,
where: c.person_id == ^user
)
|> Repo.one() || %Counts{person_id: user, churro... | 18.666667 | 57 | 0.660714 |
28b117c2a910d44470b2c8be3dfaf15674a01616 | 479 | exs | Elixir | apps/core/priv/prm_repo/migrations/20190304133547_update_medications.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20190304133547_update_medications.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20190304133547_update_medications.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.UpdateMedications do
@moduledoc false
use Ecto.Migration
def change do
execute_migration(Application.get_env(:core, :env))
end
defp execute_migration(:test), do: :ok
defp execute_migration(_) do
prm_migrations_dir = Application.app_dir(:core, "priv/prm_repo/migr... | 23.95 | 80 | 0.728601 |
28b123d913f258bde8ca1ad3ebd6bf6c59fceea8 | 198 | ex | Elixir | lib/deux/presence.ex | 3zcurdia/deux | 59e548fbd7e42b460ce624971dd1a0437d9c1df9 | [
"MIT"
] | null | null | null | lib/deux/presence.ex | 3zcurdia/deux | 59e548fbd7e42b460ce624971dd1a0437d9c1df9 | [
"MIT"
] | null | null | null | lib/deux/presence.ex | 3zcurdia/deux | 59e548fbd7e42b460ce624971dd1a0437d9c1df9 | [
"MIT"
] | null | null | null | defmodule Deux.Presence do
@moduledoc """
Provides presence tracking to channels and processes.
"""
use Phoenix.Presence,
otp_app: :integrity_checker,
pubsub_server: Deux.PubSub
end
| 22 | 55 | 0.737374 |
28b18a16798fa23636af2bc46aab18a3d20f78a3 | 4,778 | ex | Elixir | lib/nostrum/api/ratelimiter.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-12-08T23:47:17.000Z | 2020-12-08T23:47:17.000Z | lib/nostrum/api/ratelimiter.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/api/ratelimiter.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Api.Ratelimiter do
@moduledoc """
Ratelimit implimentation specific to Discord's API.
Only to be used when starting in a rest-only manner.
"""
use GenServer
alias Nostrum.Api.{Base, Bucket}
alias Nostrum.Error.ApiError
alias Nostrum.Util
require Logger
@typedoc """
Return val... | 27.618497 | 92 | 0.654249 |
28b1ecc75a025c521089c5bd29422bfc58e02aa8 | 1,259 | ex | Elixir | lib/breadboard/supervisor/base_supervisor.ex | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | lib/breadboard/supervisor/base_supervisor.ex | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | lib/breadboard/supervisor/base_supervisor.ex | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | defmodule Breadboard.Supervisor.Base do
@moduledoc false
defmacro __using__(opts) do
child_module = Keyword.get(opts, :child_module)
quote do
use DynamicSupervisor
require Logger
@me __MODULE__
def start_link() do
start_link(nil)
end
def start_link(init_arg)... | 23.314815 | 79 | 0.602859 |
28b21cac23041b5e22fd549bc809f21d9d2d9b1f | 132 | exs | Elixir | elixir/test/kata_test.exs | goerge/kata-bootstraps | ecc272555de603adcc35aaf2ade6520625267e7c | [
"MIT"
] | 4 | 2020-11-06T21:58:57.000Z | 2021-12-01T16:14:12.000Z | elixir/test/kata_test.exs | goerge/kata-bootstraps | ecc272555de603adcc35aaf2ade6520625267e7c | [
"MIT"
] | 19 | 2022-02-16T20:21:38.000Z | 2022-03-28T18:19:37.000Z | elixir/test/kata_test.exs | goerge/kata-bootstraps | ecc272555de603adcc35aaf2ade6520625267e7c | [
"MIT"
] | 7 | 2020-03-30T15:02:05.000Z | 2020-08-31T16:48:03.000Z | defmodule KataTest do
use ExUnit.Case
doctest Kata
test "greets the world" do
assert Kata.hello() == :universe
end
end
| 14.666667 | 36 | 0.69697 |
28b21d97f1bc9e324b02e0e0762f52a34bd993f2 | 1,073 | ex | Elixir | lib/eql/ast/mutation.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | lib/eql/ast/mutation.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | lib/eql/ast/mutation.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | defmodule EQL.AST.Mutation do
@moduledoc false
@behaviour EQL.Expression
alias EQL.{AST.Query, Expression}
defstruct module: nil,
fun: nil,
args: []
@type t :: %__MODULE__{
module: module,
fun: atom,
args: [term]
}
@type expr :: call | %{req... | 20.245283 | 85 | 0.56384 |
28b25101ce7c4bf2b9cb08423e889661a679153b | 5,103 | exs | Elixir | test/job_scheduler_test.exs | yashin5/ecto-job-scheduler | 2f21e7272411dc4d4103f3be41d418fc4cc40368 | [
"MIT"
] | 4 | 2019-12-07T12:52:52.000Z | 2021-03-11T18:31:25.000Z | test/job_scheduler_test.exs | yashin5/ecto-job-scheduler | 2f21e7272411dc4d4103f3be41d418fc4cc40368 | [
"MIT"
] | 1 | 2020-12-17T15:47:30.000Z | 2020-12-17T15:47:30.000Z | test/job_scheduler_test.exs | yashin5/ecto-job-scheduler | 2f21e7272411dc4d4103f3be41d418fc4cc40368 | [
"MIT"
] | 5 | 2019-09-10T19:03:52.000Z | 2021-08-16T03:18:00.000Z | defmodule EctoJobScheduler.JobSchedulerTest do
@moduledoc false
use ExUnit.Case, async: true
alias Ecto.{Changeset, Multi}
alias EctoJobScheduler.Logger.Context
alias EctoJobScheduler.Test.{
TestJob,
TestJobParams,
TestJobQueue,
TestJobScheduler
}
describe "schedule/3" do
test "put ... | 28.19337 | 82 | 0.411131 |
28b28b8ee9117a3e15b0b4f9357c335048271519 | 538 | ex | Elixir | lib/demo_web/live/example_live/stateless_component.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 21 | 2019-12-15T19:14:56.000Z | 2022-02-07T16:04:30.000Z | lib/demo_web/live/example_live/stateless_component.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 4 | 2020-02-06T01:05:28.000Z | 2020-09-07T19:08:45.000Z | lib/demo_web/live/example_live/stateless_component.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 6 | 2019-12-15T19:15:02.000Z | 2021-09-16T20:35:53.000Z | defmodule DemoWeb.StatelessComponent do
use Phoenix.LiveComponent
use Phoenix.HTML
def render(assigns) do
~L"""
<h2><%= @title %></h2>
<div>
<%= f = form_for :heading, "#", [phx_submit: :set_title] %>
<%= label f, :title %>
<%= text_input f, :title %>
<div>
<%= submit "S... | 19.925926 | 63 | 0.548327 |
28b2e1efc3720cc0a06550443b56921e4b3530dc | 757 | ex | Elixir | apps/auth/lib/auth/user.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | apps/auth/lib/auth/user.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | apps/auth/lib/auth/user.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | defmodule Auth.User do
use Ecto.Schema
import Ecto.Changeset
schema "auth_users" do
field(:email, :string)
field(:password_hash, :string)
field(:password, :string, virtual: true)
timestamps()
end
@doc false
def changeset(user, params \\ %{}) do
cast(user, params, ~w(email password)a)... | 25.233333 | 79 | 0.67107 |
28b319f7580188aa52639d7a99dab9002eb6716f | 2,242 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/target_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/target_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/target_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.333333 | 190 | 0.742194 |
28b31f137ad793d6226e246f63499740e3a91e7f | 1,274 | ex | Elixir | lib/edgedb/protocol/types/shape_element.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/types/shape_element.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/types/shape_element.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.Types.ShapeElement do
@moduledoc false
use EdgeDB.Protocol.Type
alias EdgeDB.Protocol.{
Datatypes,
Enums
}
@field_is_implicit Bitwise.bsl(1, 0)
@field_is_link_property Bitwise.bsl(1, 1)
@field_is_link Bitwise.bsl(1, 2)
deftype(
encode: false,
fields: [
... | 23.592593 | 56 | 0.653846 |
28b3202a5c1a7094fef2368a6e883a75c622cffd | 5,623 | ex | Elixir | lib/topo/contains.ex | otherchris/topo | 228c2c371c5e89cd1297662da7701c52c5d8b167 | [
"MIT"
] | null | null | null | lib/topo/contains.ex | otherchris/topo | 228c2c371c5e89cd1297662da7701c52c5d8b167 | [
"MIT"
] | null | null | null | lib/topo/contains.ex | otherchris/topo | 228c2c371c5e89cd1297662da7701c52c5d8b167 | [
"MIT"
] | null | null | null | defmodule Topo.Contains do
@moduledoc false
import Topo.Intersects
alias Topo.PointRing
alias Topo.LineLine
alias Topo.LineRing
alias Topo.RingRing
@type geo_struct ::
%Geo.Point{}
| %Geo.MultiPoint{}
| %Geo.LineString{}
| %Geo.MultiLineString{}
| %Geo.... | 36.277419 | 98 | 0.651076 |
28b336f28684ce31ae2c891dba0cc5521c924c25 | 2,841 | ex | Elixir | fade/lib/diagnostics/probes/queue_low_flow_probe.ex | ahives/Fade | 7094b6703933e41a1400b1053764335e32928b0a | [
"Apache-2.0"
] | null | null | null | fade/lib/diagnostics/probes/queue_low_flow_probe.ex | ahives/Fade | 7094b6703933e41a1400b1053764335e32928b0a | [
"Apache-2.0"
] | null | null | null | fade/lib/diagnostics/probes/queue_low_flow_probe.ex | ahives/Fade | 7094b6703933e41a1400b1053764335e32928b0a | [
"Apache-2.0"
] | null | null | null | defmodule Fade.Diagnostic.Probes.QueueLowFlowProbe do
alias Fade.Diagnostic.Config.Types.DiagnosticsConfig
alias Fade.Diagnostic.DiagnosticProbe
alias Fade.Diagnostic.Types.{
DiagnosticProbeMetadata,
ProbeData,
ProbeResult
}
alias Fade.Diagnostic.Types.KnowledgeBaseArticle
alias Fade.Diagnosti... | 25.366071 | 98 | 0.67793 |
28b375a75a9092751499094530f530f415dc92ed | 126 | ex | Elixir | lib/glimesh/repo.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | lib/glimesh/repo.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | lib/glimesh/repo.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | defmodule Glimesh.Repo do
@moduledoc false
use Ecto.Repo,
otp_app: :glimesh,
adapter: Ecto.Adapters.Postgres
end
| 15.75 | 35 | 0.722222 |
28b37e9cab431ab68033338e38543ae1a93ee0f9 | 599 | ex | Elixir | bullion/lib/bullion/table_v2/table.ex | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | null | null | null | bullion/lib/bullion/table_v2/table.ex | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | 8 | 2021-03-10T20:53:42.000Z | 2021-07-30T06:52:16.000Z | bullion/lib/bullion/table_v2/table.ex | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | null | null | null | defmodule Bullion.TableV2.Table do
use Ecto.Schema
import Ecto.Changeset
alias Bullion.TableV2.{Player}
@timestamps_opts [type: :utc_datetime]
schema "table" do
field :table_id, :string
field :name, :string
field :buyin_chips, :integer
field :buyin_dollars, :integer
has_many :players, ... | 21.392857 | 74 | 0.689482 |
28b37ea94f7d0d0bbdd40f23b77a9be2d7c73a58 | 3,993 | ex | Elixir | apps/wechat_base/lib/wechat_base/conn/utils.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/lib/wechat_base/conn/utils.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/lib/wechat_base/conn/utils.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatBase.Conn.Utils do
@type params :: %{binary => binary}
@upper ?A..?Z
@lower ?a..?z
@alpha ?0..?9
@other [?., ?-, ?+]
@space [?\s, ?\t]
@specials ~c|()<>@,;:\\"/[]?={}|
@spec media_type(binary) :: {:ok, type :: binary, subtype :: binary, params} | :error
def media_type(binary) do
... | 31.944 | 102 | 0.569246 |
28b37f2c3da3ce2c47839f6aa8395f5a8f34f75e | 586 | exs | Elixir | mix.exs | sashman/mix_file_editor | a2c4ccd7cca4df382859ec7c5dfe366ad17a09e5 | [
"Apache-2.0"
] | 1 | 2018-08-09T16:08:50.000Z | 2018-08-09T16:08:50.000Z | mix.exs | sashman/mix_file_editor | a2c4ccd7cca4df382859ec7c5dfe366ad17a09e5 | [
"Apache-2.0"
] | null | null | null | mix.exs | sashman/mix_file_editor | a2c4ccd7cca4df382859ec7c5dfe366ad17a09e5 | [
"Apache-2.0"
] | null | null | null | defmodule MixFileEditor.MixProject do
use Mix.Project
def project do
[
app: :mix_file_editor,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.206897 | 88 | 0.585324 |
28b388257e6eb8f9c2cc8fa341c02ace314c3778 | 485 | ex | Elixir | lib/meeseeks/selector/xpath/expr/predicate.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/selector/xpath/expr/predicate.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/selector/xpath/expr/predicate.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.XPath.Expr.Predicate do
use Meeseeks.Selector.XPath.Expr
@moduledoc false
alias Meeseeks.Selector.XPath.Expr
defstruct e: nil
@impl true
def eval(expr, node, document, context) do
case Expr.eval(expr.e, node, document, context) do
:NaN -> false
:Infinity -> fal... | 24.25 | 70 | 0.670103 |
28b38eb2be32d44525d7536f0451130e154241d1 | 20,283 | ex | Elixir | lib/ex_polars/dataframe.ex | tyrchen/ex_polars | 903c2d173b732eece241a7da07e3b38fc0ed3811 | [
"MIT"
] | 9 | 2021-01-13T15:19:13.000Z | 2021-12-11T14:37:31.000Z | lib/ex_polars/dataframe.ex | tyrchen/ex_polars | 903c2d173b732eece241a7da07e3b38fc0ed3811 | [
"MIT"
] | null | null | null | lib/ex_polars/dataframe.ex | tyrchen/ex_polars | 903c2d173b732eece241a7da07e3b38fc0ed3811 | [
"MIT"
] | 1 | 2021-05-26T00:40:46.000Z | 2021-05-26T00:40:46.000Z | defmodule ExPolars.DataFrame do
alias ExPolars.Native
alias ExPolars.Series, as: S
alias ExPolars.Plot
@type t :: ExPolars.DataFrame
@type s :: ExPolars.Series
defstruct [:inner]
@spec read_csv(
String.t(),
integer(),
integer(),
boolean(),
boolean(),
... | 39.005769 | 111 | 0.576542 |
28b39395915159d31e8fa7dc738bf53da26524a7 | 2,001 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/project.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/project.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dns/lib/google_api/dns/v1/model/project.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... | 35.732143 | 156 | 0.697151 |
28b3a9d4186d5902bc3cc2baebe984e604d64d5a | 220 | exs | Elixir | api/priv/repo/migrations/20170330204159_enable_citext_extension.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | 3 | 2017-05-22T13:28:13.000Z | 2018-06-29T16:39:19.000Z | api/priv/repo/migrations/20170330204159_enable_citext_extension.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | api/priv/repo/migrations/20170330204159_enable_citext_extension.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | defmodule Grook.Repo.Migrations.EnableCitextExtension do
use Ecto.Migration
def up do
execute "CREATE EXTENSION IF NOT EXISTS \"citext\";"
end
def down do
execute "DROP EXTENSION \"citext\";"
end
end
| 18.333333 | 56 | 0.713636 |
28b3c6bc9522b304d524f7222f8561e704821803 | 5,019 | exs | Elixir | test/exhal/link_test.exs | akoutmos/exhal | 86bfc2290dc2bd29713eade53e17941089fdca6a | [
"MIT"
] | 23 | 2016-02-02T14:24:38.000Z | 2021-12-07T16:13:30.000Z | test/exhal/link_test.exs | akoutmos/exhal | 86bfc2290dc2bd29713eade53e17941089fdca6a | [
"MIT"
] | 41 | 2016-02-03T17:19:42.000Z | 2019-06-04T15:42:18.000Z | test/exhal/link_test.exs | akoutmos/exhal | 86bfc2290dc2bd29713eade53e17941089fdca6a | [
"MIT"
] | 19 | 2016-02-03T06:04:12.000Z | 2021-11-19T16:44:06.000Z | defmodule ExHal.LinkTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias ExHal.Link, as: Link
alias ExHal.Document, as: Document
test ".from_links_entry w/ explicit href" do
link_entry = %{"href" => "http://example.com",
"templated" => false,
... | 33.46 | 83 | 0.550907 |
28b4032fd80d20d014922836f838499d19ef1fd2 | 1,129 | exs | Elixir | elixir/elixir-flatten/config/config.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/elixir-flatten/config/config.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/elixir-flatten/config/config.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"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.419355 | 73 | 0.751107 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.