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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e826e1be7963deb31b6d2a9d977ed0d23855ab7a | 14,465 | exs | Elixir | test/guardian_test.exs | gestsol/guardian | ee173c7ff0343d77cf10c559bd11ac2c88804ad8 | [
"MIT"
] | null | null | null | test/guardian_test.exs | gestsol/guardian | ee173c7ff0343d77cf10c559bd11ac2c88804ad8 | [
"MIT"
] | null | null | null | test/guardian_test.exs | gestsol/guardian | ee173c7ff0343d77cf10c559bd11ac2c88804ad8 | [
"MIT"
] | null | null | null | defmodule GuardianTest do
@moduledoc false
import Guardian.Support.Utils, only: [gather_function_calls: 0]
use ExUnit.Case, async: true
setup do
{:ok, %{impl: GuardianTest.Impl}}
end
defmodule Impl do
@moduledoc false
use Guardian,
otp_app: :guardian,
token_module: Guardian.Suppo... | 33.717949 | 98 | 0.602351 |
e826ff935c71857fa7a24a12c1c0de3d02ff6e8f | 1,870 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_suggestions.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2019-01-03T22:30:36.000Z | 2019-01-03T22:30:36.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_suggestions.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_suggestions.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | # 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... | 32.241379 | 129 | 0.762032 |
e82710e81f6c87f2f2d544cae9b42c18df0a9b34 | 875 | ex | Elixir | lib/ex_diet_web/graphql/resolvers/accounts.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | lib/ex_diet_web/graphql/resolvers/accounts.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | lib/ex_diet_web/graphql/resolvers/accounts.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDietWeb.GraphQL.Resolvers.Accounts do
@moduledoc false
require Logger
alias ExDiet.Accounts
alias ExDiet.Accounts.{User, Authentication}
def login(_, %{input: %{email: email, password: password}}, _) do
with {:ok, user} <- Accounts.login_with_password(email, password),
{:ok, token,... | 28.225806 | 72 | 0.633143 |
e8272a310b83900c4e9bc6680568dbde69433da3 | 1,674 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/tiers_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/tiers_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/tiers_list_response.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 ... | 33.48 | 106 | 0.727599 |
e8273db09169ba3395ab75c446996f4a5c8c7890 | 463 | ex | Elixir | lib/models/suggested_action.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 35 | 2016-05-11T02:34:27.000Z | 2021-04-29T07:34:11.000Z | lib/models/suggested_action.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 27 | 2016-07-10T18:32:25.000Z | 2021-09-29T07:00:22.000Z | lib/models/suggested_action.ex | Mohammad-Haseeb/ex_microsoftbot | 72c417ce1e6dd42cf982bf856f3b402b67cf820e | [
"MIT"
] | 23 | 2016-05-10T18:53:13.000Z | 2021-06-25T22:04:21.000Z | defmodule ExMicrosoftBot.Models.SuggestedAction do
@moduledoc """
Microsoft bot suggested action structure
"""
@derive [Poison.Encoder]
defstruct [:actions, :to]
@type t :: %ExMicrosoftBot.Models.SuggestedAction{
actions: [ExMicrosoftBot.Models.CardAction.t],
to: String.t,
}
@doc false
def ... | 22.047619 | 64 | 0.712743 |
e82747425e386be8ec469f6201b0edf27ec1e098 | 878 | ex | Elixir | lib/functor.ex | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 325 | 2015-03-03T01:44:05.000Z | 2022-03-25T20:29:58.000Z | lib/functor.ex | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 11 | 2015-05-29T13:33:20.000Z | 2021-05-11T13:48:14.000Z | lib/functor.ex | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 17 | 2015-04-18T09:46:50.000Z | 2019-11-12T21:28:21.000Z | defprotocol Functor do
@moduledoc """
> Functors are mappings or homomorphisms between categories
–[Wikipedia](https://en.wikipedia.org/wiki/Functor)
Functors always take one parameter. They also preserve identity and
composition (see `Functor.Law`).
"""
@fallback_to_any true
@doc """
Takes a funct... | 21.95 | 69 | 0.664009 |
e8275a510163f88db404f2eb3e3230f9c6601d5d | 1,456 | exs | Elixir | test/groupher_server_web/query/cms/community_meta_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/query/cms/community_meta_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/query/cms/community_meta_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Query.CMS.CommunityMeta do
@moduledoc false
use GroupherServer.TestTools
# alias GroupherServer.Accounts.Model.User
alias GroupherServer.CMS
setup do
guest_conn = simu_conn(:guest)
{:ok, user} = db_insert(:user)
community_attrs = mock_attrs(:community) |> Map.merge... | 28.54902 | 96 | 0.629121 |
e82792667422a85c0dede14a212b45ed3407eecd | 2,344 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/app_version.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/app_version.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/app_version.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # 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... | 39.066667 | 234 | 0.723976 |
e827ae3c5deb88b56ff6e4133debbb75714cbbd0 | 937 | ex | Elixir | backend/test/support/channel_case.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 2 | 2019-11-02T21:28:34.000Z | 2019-11-28T18:01:08.000Z | backend/test/support/channel_case.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 17 | 2019-11-29T16:23:38.000Z | 2022-02-14T05:11:41.000Z | backend/test/support/channel_case.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | null | null | null | defmodule KjerSiWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wi... | 24.657895 | 68 | 0.715048 |
e827f5d24ea39db4b828a8be13f4d412645af638 | 3,749 | ex | Elixir | lib/live_sup_web/live/widgets/team_members_live.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/live/widgets/team_members_live.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/live/widgets/team_members_live.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Live.Widgets.TeamMembersLive do
use LiveSupWeb.Live.Widgets.WidgetLive
@impl true
def render_widget(assigns) do
~H"""
<.live_component module={SmartRenderComponent} id={@widget_data.id} let={widget_data} widget_data={@widget_data}>
<!-- Team Members -->
<.live_component... | 62.483333 | 280 | 0.529208 |
e8281a1ad556b19f5dc76955b75dcf94025cd45f | 98 | exs | Elixir | config/test.exs | Ispirata/cfexexl | 98dc50b1cfe5a682b051b38b83cebc644bc08488 | [
"Apache-2.0"
] | 5 | 2017-09-25T18:09:08.000Z | 2017-09-26T07:09:10.000Z | config/test.exs | Ispirata/cfexexl | 98dc50b1cfe5a682b051b38b83cebc644bc08488 | [
"Apache-2.0"
] | 11 | 2017-09-25T17:03:33.000Z | 2021-03-12T15:13:54.000Z | config/test.exs | Ispirata/cfexexl | 98dc50b1cfe5a682b051b38b83cebc644bc08488 | [
"Apache-2.0"
] | 3 | 2017-10-11T16:38:07.000Z | 2021-03-12T10:54:50.000Z | use Mix.Config
config :cfxxl, :test_endpoint,
base_url: "http://localhost:8888",
options: []
| 16.333333 | 36 | 0.693878 |
e8281a661326f17adad395c5b91c11136793a169 | 1,545 | exs | Elixir | test/jrac_test.exs | agleb/jrac | bf140b7b899c9ad87f61512cd11223503f60998e | [
"MIT"
] | null | null | null | test/jrac_test.exs | agleb/jrac | bf140b7b899c9ad87f61512cd11223503f60998e | [
"MIT"
] | null | null | null | test/jrac_test.exs | agleb/jrac | bf140b7b899c9ad87f61512cd11223503f60998e | [
"MIT"
] | null | null | null | defmodule JracTest do
use ExUnit.Case
use Jrac.Behaviour,
app_name: :jrac,
base_url_key_name: :base_url_key,
headers: [{"Accept", "application/json"}]
test "build_url" do
assert "https://reqres.in/api/test" == JracTest.build_url("test")
end
test "build_url/1 guard" do
assert nil == Jrac... | 21.760563 | 86 | 0.544337 |
e8285f089cad32379beca567be6481da317951f4 | 8,592 | ex | Elixir | backend/lib/backend/game.ex | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | backend/lib/backend/game.ex | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | backend/lib/backend/game.ex | ugbots/ggj2022 | 1c7b9f6694268951f93a11fde91fa9573c179c26 | [
"MIT"
] | null | null | null | defmodule Backend.Game do
import Ecto.Query, warn: false
alias Backend.Accounts
alias Backend.Accounts.User
alias Backend.Logs
alias Backend.Items
alias Backend.Repo
alias Backend.Game.Inventory
##
## Accessors
##
@doc """
Gets the name of all items held by the given user.
"""
@spec inven... | 28.078431 | 86 | 0.609055 |
e82860e923f13d2da245ca27c564e626c2f9ccbb | 6,726 | exs | Elixir | test/elixir/test/view_pagination_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/test/view_pagination_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/view_pagination_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule ViewPaginationTest do
use CouchTestCase
@moduletag :view_pagination
@moduletag kind: :single_node
@moduledoc """
Integration tests for pagination.
This is a port of the view_pagination.js test suite.
"""
@tag :pending # Offsets are always null on 4.x
@tag :with_db
test "basic view pagin... | 34.142132 | 77 | 0.594707 |
e828b078f5fcaa3825f42a2c666bad8607a60291 | 167 | ex | Elixir | priv/templates/phx.gen.html/view.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | priv/templates/phx.gen.html/view.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | priv/templates/phx.gen.html/view.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>View do
use <%= inspect context.web_module %>, :view
end
| 41.75 | 115 | 0.730539 |
e828ef57e60374d6e3977b3a5755e050ae3c4b4b | 739 | ex | Elixir | elixir/lib/keepa_api/model/category.ex | mindviser/keepaSDK | 24627e3372bf2ca75d8a42de79d31046e4ae14c1 | [
"MIT"
] | 3 | 2019-09-18T20:18:24.000Z | 2021-07-26T18:08:29.000Z | elixir/lib/keepa_api/model/category.ex | mindviser/keepaSDK | 24627e3372bf2ca75d8a42de79d31046e4ae14c1 | [
"MIT"
] | 3 | 2020-05-15T21:27:09.000Z | 2022-02-09T01:00:00.000Z | elixir/lib/keepa_api/model/category.ex | mindviser/keepaSDK | 24627e3372bf2ca75d8a42de79d31046e4ae14c1 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule KeepaAPI.Model.Category do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"domainId",
:"catId",
:"name",
:"child... | 19.447368 | 91 | 0.603518 |
e8291076cf336c3f32e0d0654a778393928ebddf | 24,058 | ex | Elixir | clients/licensing/lib/google_api/licensing/v1/api/license_assignments.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/licensing/lib/google_api/licensing/v1/api/license_assignments.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/licensing/lib/google_api/licensing/v1/api/license_assignments.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... | 45.912214 | 298 | 0.635256 |
e82912a24470b6241a2f2f78d51776624e5dd54d | 1,479 | ex | Elixir | lib/xadmin/render.ex | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | 5 | 2016-08-30T01:23:50.000Z | 2021-09-22T14:39:00.000Z | lib/xadmin/render.ex | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | null | null | null | lib/xadmin/render.ex | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | 1 | 2021-12-10T11:10:55.000Z | 2021-12-10T11:10:55.000Z | alias XAdmin.Utils
defprotocol XAdmin.Render do
# @fallback_to_any true
def to_string(data)
end
defimpl XAdmin.Render, for: Atom do
def to_string(nil), do: ""
def to_string(atom), do: "#{atom}"
end
defimpl XAdmin.Render, for: BitString do
def to_string(data), do: data
end
defimpl XAdmin.Render, for: Intege... | 19.207792 | 50 | 0.684922 |
e8292d366659610d1c5162f83f29e797547bf0d0 | 1,035 | ex | Elixir | test/support/conn_case.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 50 | 2019-05-23T11:59:30.000Z | 2022-03-11T04:12:36.000Z | test/support/conn_case.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 6 | 2019-05-18T09:53:46.000Z | 2021-01-27T11:26:15.000Z | test/support/conn_case.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 18 | 2019-05-18T08:13:51.000Z | 2021-11-23T13:57:33.000Z | defmodule PhatWeb.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 common data structures and query the data layer.
Finally, if the t... | 26.538462 | 66 | 0.71401 |
e829335f2d1350140d40a156f3d3ce436d54f684 | 1,210 | ex | Elixir | web/channels/user_socket.ex | bbulpett/chatroom-rtc | 9992f3fc80dc685b87a152ef71d6f6b4fc245238 | [
"MIT"
] | 2 | 2017-02-16T09:44:44.000Z | 2018-07-30T06:17:05.000Z | web/channels/user_socket.ex | bbulpett/chatroom-rtc | 9992f3fc80dc685b87a152ef71d6f6b4fc245238 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | bbulpett/chatroom-rtc | 9992f3fc80dc685b87a152ef71d6f6b4fc245238 | [
"MIT"
] | null | null | null | defmodule Chatroom.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Chatroom.RoomChannel
channel "lobby", Chatroom.PageChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the clien... | 30.25 | 83 | 0.704132 |
e8294a30ff395f9a2f7840f1f154df3a393defa3 | 5,558 | exs | Elixir | test/oli/interop/ingest_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli/interop/ingest_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli/interop/ingest_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Interop.IngestTest do
alias Oli.Interop.Ingest
alias Oli.Interop.Export
alias Oli.Publishing.AuthoringResolver
alias Oli.Resources.Revision
alias Oli.Repo
use Oli.DataCase
def by_title(project, title) do
query =
from r in Revision,
where: r.title == ^title,
limit: ... | 35.177215 | 95 | 0.654732 |
e82956f928654fda9416e49fd19ebce1e199cd49 | 4,879 | ex | Elixir | components/notifications-service/server/lib/formatters/compliance_helper.ex | oscar123mendoza/automate | b4c8f4e636bf82e453f684fff88fdc5d9253c0c5 | [
"Apache-2.0"
] | 4 | 2019-10-24T05:59:51.000Z | 2021-08-16T15:17:27.000Z | components/notifications-service/server/lib/formatters/compliance_helper.ex | oscar123mendoza/automate | b4c8f4e636bf82e453f684fff88fdc5d9253c0c5 | [
"Apache-2.0"
] | null | null | null | components/notifications-service/server/lib/formatters/compliance_helper.ex | oscar123mendoza/automate | b4c8f4e636bf82e453f684fff88fdc5d9253c0c5 | [
"Apache-2.0"
] | null | null | null | defmodule Notifications.Formatters.ComplianceHelper do
@moduledoc "Tools for the management of compliance notifications"
alias Notifications.Profile
@crit_control_threshold 0.7
# TODO: mp 2017-09-22
# Note that this is currently tested indirectly in webhook.compliance_test.ex
# when we examine the payloa... | 47.368932 | 138 | 0.722279 |
e82969ee4eb6255707a7e68db3797b883bcb0cfd | 2,658 | ex | Elixir | lib/ecto/migration/schema_migration.ex | elanmajkrzak/ecto_sql | bbaa22b32cf96ca5e90994bb0637e812487c53d4 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration/schema_migration.ex | elanmajkrzak/ecto_sql | bbaa22b32cf96ca5e90994bb0637e812487c53d4 | [
"Apache-2.0"
] | 1 | 2021-01-19T22:05:44.000Z | 2021-02-18T22:38:43.000Z | lib/ecto/migration/schema_migration.ex | elanmajkrzak/ecto_sql | bbaa22b32cf96ca5e90994bb0637e812487c53d4 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration.SchemaMigration do
# Defines a schema that works with a table that tracks schema migrations.
# The table name defaults to `schema_migrations`.
@moduledoc false
use Ecto.Schema
import Ecto.Query, only: [from: 2]
@primary_key false
schema "schema_migrations" do
field :version,... | 35.44 | 128 | 0.698646 |
e8296bcabb01df2c1e793cb88c8898d2acdf53af | 1,119 | ex | Elixir | lib/filix/uploading/commands/request_upload.ex | MrDoops/filix | 8be676e7733df5ea6a5ed78c7cb50f9e0fd76fd3 | [
"MIT"
] | null | null | null | lib/filix/uploading/commands/request_upload.ex | MrDoops/filix | 8be676e7733df5ea6a5ed78c7cb50f9e0fd76fd3 | [
"MIT"
] | null | null | null | lib/filix/uploading/commands/request_upload.ex | MrDoops/filix | 8be676e7733df5ea6a5ed78c7cb50f9e0fd76fd3 | [
"MIT"
] | null | null | null | defmodule Filix.Uploading.Commands.RequestUpload do
@moduledoc """
Command validation layer for Requesting Uploads
"""
use Ecto.Schema
import Ecto.Changeset
@required_fields ~w(name size type tags)a
@optional_fields ~w(storage_provider)a
@primary_key {:id, :binary_id, autogenerate: true}
embedded_sc... | 26.642857 | 84 | 0.705987 |
e82976f28194d9aa4b7b318bdb710ae71ad4801c | 6,623 | ex | Elixir | lib/oli/rendering/content.ex | jrissler/oli-torus | 747f9e4360163d76a6ca5daee3aab1feab0c99b1 | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/rendering/content.ex | jrissler/oli-torus | 747f9e4360163d76a6ca5daee3aab1feab0c99b1 | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/rendering/content.ex | marc-hughes/oli-torus-1 | aa3c9bb2d91b678a365be839761eaf86c60ee35c | [
"MIT"
] | null | null | null | defmodule Oli.Rendering.Content do
@moduledoc """
This modules defines the rendering functionality for Oli structured content. Rendering is
extensible to any format which implements the behavior defined in this module, then specifying
that format at render time. For an example of how exactly to extend this, see... | 31.240566 | 99 | 0.588706 |
e829819832d968cdee4ceb07487eaa6e3a3f8516 | 5,279 | ex | Elixir | lib/wax/attestation_statement_format/fido_u2f.ex | 4eek/wax | eee7c5460267dce2cd8fe76df2e05f46e90e50b6 | [
"Apache-2.0"
] | 101 | 2019-02-11T10:39:34.000Z | 2022-03-18T16:01:26.000Z | lib/wax/attestation_statement_format/fido_u2f.ex | 4eek/wax | eee7c5460267dce2cd8fe76df2e05f46e90e50b6 | [
"Apache-2.0"
] | 19 | 2019-02-14T22:34:34.000Z | 2022-01-25T17:42:13.000Z | lib/wax/attestation_statement_format/fido_u2f.ex | 4eek/wax | eee7c5460267dce2cd8fe76df2e05f46e90e50b6 | [
"Apache-2.0"
] | 10 | 2019-03-12T15:56:21.000Z | 2020-09-20T01:36:23.000Z | defmodule Wax.AttestationStatementFormat.FIDOU2F do
require Logger
@moduledoc false
@behaviour Wax.AttestationStatementFormat
@impl Wax.AttestationStatementFormat
def verify(
att_stmt,
auth_data,
client_data_hash,
%Wax.Challenge{attestation: "direct"} = challenge
) do
with :ok <- vali... | 31.052941 | 97 | 0.671908 |
e8298859ef877133e6d486d9f788023b835a6a8e | 812 | exs | Elixir | ch6.exs | kbuechl/ProgrammingElixir | c46e6d5f10ccbc25203752cef6d073977969b2cf | [
"MIT"
] | null | null | null | ch6.exs | kbuechl/ProgrammingElixir | c46e6d5f10ccbc25203752cef6d073977969b2cf | [
"MIT"
] | null | null | null | ch6.exs | kbuechl/ProgrammingElixir | c46e6d5f10ccbc25203752cef6d073977969b2cf | [
"MIT"
] | null | null | null | defmodule Ex4 do
def sum(0), do: 0
def sum(n), do: n + sum(n-1)
end
defmodule Ex5 do
def gcd(x,0), do: x
def gcd(x,y), do: gcd(y,rem(x,y))
end
defmodule Ex6 do
defmodule Chop do
def guess(actual,low..high) when low <= high do
half = div(high+low,2)
IO.puts "Is it #{half}"
... | 24.606061 | 67 | 0.555419 |
e8298953c94c3b9fb4d5d8d4b73b3981470e4ff0 | 8,834 | ex | Elixir | lib/new_relic/tracer/macro.ex | marocchino/elixir_agent | 3c63715b130cf5997868c3a59097da256bf65102 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/tracer/macro.ex | marocchino/elixir_agent | 3c63715b130cf5997868c3a59097da256bf65102 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/tracer/macro.ex | marocchino/elixir_agent | 3c63715b130cf5997868c3a59097da256bf65102 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Tracer.Macro do
require Logger
# Function Tracer Macros
# 1) __on_definition__: When a function is defined & it's been marked to @trace, we
# store information about the function in module attributes
# 2) __before_compile__: We take the list of functions that are marked to @trac... | 30.567474 | 97 | 0.642744 |
e829c4ce907b2bf68416411b24c2898e2949c7ba | 2,612 | ex | Elixir | lib/cforum_web/controllers/users/session_controller.ex | Rolf-B/cforum_ex | 2dcdfc76f0788824a5aa173c249a7051c61af0c4 | [
"MIT"
] | null | null | null | lib/cforum_web/controllers/users/session_controller.ex | Rolf-B/cforum_ex | 2dcdfc76f0788824a5aa173c249a7051c61af0c4 | [
"MIT"
] | 103 | 2021-10-13T04:24:01.000Z | 2022-03-31T04:26:23.000Z | lib/cforum_web/controllers/users/session_controller.ex | Rolf-B/cforum_ex | 2dcdfc76f0788824a5aa173c249a7051c61af0c4 | [
"MIT"
] | null | null | null | defmodule CforumWeb.Users.SessionController do
use CforumWeb, :controller
alias Cforum.Abilities
alias Cforum.Users
alias Cforum.Users.User
alias Cforum.Messages
alias Cforum.Messages.Message
alias Cforum.Threads
alias Cforum.Threads.Thread
alias CforumWeb.Views.ViewHelpers.Path
def new(conn, _pa... | 30.729412 | 101 | 0.61026 |
e829cb7651dee416c497153c7cca59a24075eb5c | 200 | exs | Elixir | myApp/priv/repo/migrations/20180428220535_create_user.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/priv/repo/migrations/20180428220535_create_user.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/priv/repo/migrations/20180428220535_create_user.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | defmodule MyApp.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :age, :integer
timestamps()
end
end
end
| 15.384615 | 45 | 0.65 |
e829cd18e8c263402e644f7888960b2696015b60 | 31 | ex | Elixir | astreu/lib/pubsub/pubsub.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | 10 | 2021-02-10T12:00:26.000Z | 2021-11-17T10:35:48.000Z | astreu/lib/pubsub/pubsub.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | 11 | 2021-01-30T15:46:00.000Z | 2021-04-27T01:44:07.000Z | astreu/lib/pubsub/pubsub.ex | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | 4 | 2021-01-29T12:18:32.000Z | 2021-04-22T20:20:58.000Z | defmodule Astreu.PubSub do
end
| 10.333333 | 26 | 0.83871 |
e829cf4fd0e56551a3f70da419d896ff8fcce035 | 1,980 | exs | Elixir | mysite/config/prod.exs | palm86/Your-first-Phoenix-app-tutorial | e7de041e141254da6a731aead3a180fb9bd20c79 | [
"MIT"
] | null | null | null | mysite/config/prod.exs | palm86/Your-first-Phoenix-app-tutorial | e7de041e141254da6a731aead3a180fb9bd20c79 | [
"MIT"
] | null | null | null | mysite/config/prod.exs | palm86/Your-first-Phoenix-app-tutorial | e7de041e141254da6a731aead3a180fb9bd20c79 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.935484 | 67 | 0.712121 |
e829f24dfdd46ff043ea752bf90dff36ca96017f | 691 | ex | Elixir | lib/asciinema_web/views/application_view.ex | potherca-contrib/asciinema-server | c5ac6e45e8f117d4d59c9c33da6b59b448e40f0e | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/application_view.ex | potherca-contrib/asciinema-server | c5ac6e45e8f117d4d59c9c33da6b59b448e40f0e | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/application_view.ex | potherca-contrib/asciinema-server | c5ac6e45e8f117d4d59c9c33da6b59b448e40f0e | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.ApplicationView do
import Phoenix.HTML.Tag, only: [content_tag: 3]
def present?([]), do: false
def present?(nil), do: false
def present?(""), do: false
def present?(_), do: true
def time_tag(time) do
iso_8601_ts = Timex.format!(time, "{ISO:Extended:Z}")
rfc_1123_ts = Timex.f... | 25.592593 | 68 | 0.665702 |
e829f56a1bd3a2f30786a2d71fccef18c22fee4f | 792 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/Variable.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/Variable.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/Variable.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | variable &one
variable one \\ default
variable one when guard
variable one :: type
variable one | new
variable one = two
variable one or two
variable one || two
variable one and two
variable one && two
variable one != two
variable one < two
variable one |> two
variable one + two
variable one / two
variable one * two
va... | 16.5 | 27 | 0.717172 |
e82a28cc25b1be6d35a9af21da58965f34803084 | 2,551 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.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... | 45.553571 | 460 | 0.75931 |
e82a29711b399df697887fc00794c9f6a748534b | 7,583 | ex | Elixir | clients/poly/lib/google_api/poly/v1/api/assets.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/api/assets.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/api/assets.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # 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... | 50.553333 | 310 | 0.67981 |
e82a3bc0860fae7009c9f33a9dcb09af618fcff4 | 1,806 | ex | Elixir | clients/slides/lib/google_api/slides/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.411765 | 100 | 0.719269 |
e82a681585c9c0cbbceb5eed9037dda6bf2d77df | 2,633 | ex | Elixir | lib/chess/move/figure_route.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 8 | 2018-11-12T13:45:42.000Z | 2022-03-15T14:45:26.000Z | lib/chess/move/figure_route.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 1 | 2021-08-30T08:58:53.000Z | 2021-10-13T09:15:36.000Z | lib/chess/move/figure_route.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 3 | 2020-12-08T22:32:37.000Z | 2022-01-27T17:54:55.000Z | defmodule Chess.Move.FigureRoute do
@moduledoc """
Module for checking figures routes
"""
alias Chess.Figure
defmacro __using__(_opts) do
quote do
defp do_check_figure_route(%Figure{color: color, type: "p"}, route, [_, move_from_y], _) do
unless pion_move?(route, move_from_y, color), do: {... | 38.15942 | 153 | 0.622104 |
e82a8a15a364835c3b46be373fb7600f342c64b4 | 5,941 | ex | Elixir | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/policies.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/policies.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/policies.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... | 62.536842 | 302 | 0.717556 |
e82ab68957145b7d4c2826dd0dfe93324894e2cf | 132 | exs | Elixir | test/eksel_test.exs | jnylen/eksel | 4270eef1100cf5399e80d41d3230cbfbcfb52be3 | [
"MIT"
] | null | null | null | test/eksel_test.exs | jnylen/eksel | 4270eef1100cf5399e80d41d3230cbfbcfb52be3 | [
"MIT"
] | null | null | null | test/eksel_test.exs | jnylen/eksel | 4270eef1100cf5399e80d41d3230cbfbcfb52be3 | [
"MIT"
] | null | null | null | defmodule EkselTest do
use ExUnit.Case
doctest Eksel
test "greets the world" do
assert Eksel.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
e82ac2aae53ea1fe608687959dc58a06b0db31d6 | 37 | exs | Elixir | elixir/simple.exs | xxxbxxx/advent-of-code | e340ea5c92e12c55ef2b4391e58d9fb733043aa7 | [
"Unlicense"
] | null | null | null | elixir/simple.exs | xxxbxxx/advent-of-code | e340ea5c92e12c55ef2b4391e58d9fb733043aa7 | [
"Unlicense"
] | null | null | null | elixir/simple.exs | xxxbxxx/advent-of-code | e340ea5c92e12c55ef2b4391e58d9fb733043aa7 | [
"Unlicense"
] | null | null | null | IO.puts("Hello world from Elixir")
| 9.25 | 34 | 0.702703 |
e82ae347f59b865c95ad393242aa632399408c4c | 620 | exs | Elixir | priv/repo/migrations/20220208092928_create_access_tokens.exs | mpotra/composable_ecto_queries | c8498b23d8bc05dc410f5bc163c6641049cd07a6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20220208092928_create_access_tokens.exs | mpotra/composable_ecto_queries | c8498b23d8bc05dc410f5bc163c6641049cd07a6 | [
"MIT"
] | null | null | null | priv/repo/migrations/20220208092928_create_access_tokens.exs | mpotra/composable_ecto_queries | c8498b23d8bc05dc410f5bc163c6641049cd07a6 | [
"MIT"
] | null | null | null | defmodule Repo.Migrations.CreateAccessTokens do
use Ecto.Migration
def change do
create table("access_tokens") do
add(:issuer_id, references("issuers", type: :bigserial, on_delete: :delete_all),
null: false
)
add(:audience_id, references("audience", type: :bigserial, on_delete: :delet... | 29.52381 | 95 | 0.670968 |
e82af33513056cafca784277bb2a38138b70c5a4 | 375 | ex | Elixir | lib/movement/persisters/revision_uncorrect_all.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/movement/persisters/revision_uncorrect_all.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/movement/persisters/revision_uncorrect_all.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Movement.Persisters.RevisionUncorrectAll do
@behaviour Movement.Persister
alias Accent.Repo
alias Movement.Persisters.Base, as: BasePersister
@batch_action "uncorrect_all"
def persist(context) do
Repo.transaction(fn ->
context
|> Movement.Context.assign(:batch_action, @batch_actio... | 22.058824 | 62 | 0.730667 |
e82af6f0d216fc60c7362680c4c1b47b0486c7c6 | 983 | ex | Elixir | lib/mix/tasks/plex.token.ex | wisq/plextube | 96984d6e6a114709e563c1dcb7a557fd14d46ef6 | [
"Apache-2.0"
] | 15 | 2017-09-18T12:02:12.000Z | 2022-02-15T00:35:00.000Z | lib/mix/tasks/plex.token.ex | wisq/plextube | 96984d6e6a114709e563c1dcb7a557fd14d46ef6 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/plex.token.ex | wisq/plextube | 96984d6e6a114709e563c1dcb7a557fd14d46ef6 | [
"Apache-2.0"
] | 2 | 2017-09-21T20:17:49.000Z | 2020-04-12T12:21:42.000Z | defmodule Mix.Tasks.Plex.Token do
use Mix.Task
@shortdoc "Get a Plex application token"
def run([username, password]) do
{:ok, _started} = Application.ensure_all_started(:plextube)
headers = Plextube.Plex.headers(false)
body = URI.encode_query(%{
"user[login]" => username,
"user[passwor... | 27.305556 | 74 | 0.624619 |
e82afcffe4ed47fa83ac59aebf960fd1e60afcfb | 70 | exs | Elixir | test/test_helper.exs | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | 1 | 2020-01-14T03:17:51.000Z | 2020-01-14T03:17:51.000Z | test/test_helper.exs | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | test/test_helper.exs | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Bloggex.Repo, :manual)
| 17.5 | 53 | 0.771429 |
e82b04d35c7ec62650b18bf912f656b46949beeb | 584 | exs | Elixir | spec/web/views/auth_view_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/web/views/auth_view_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/web/views/auth_view_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Web.AuthViewSpec do
use ESpec.Phoenix, async: true, view: AuthView
use ESpec.Phoenix.Extend, :view
describe "callback.json" do
let :user, do: insert(:user)
let :content do
render(SquadsterWeb.AuthView, "callback.json", user: user(), show_info: true)
end
it "renders user... | 26.545455 | 84 | 0.65411 |
e82b3eead6af4383c41162559caed17088d9f4fc | 19,286 | exs | Elixir | lib/elixir/test/elixir/module/types/types_test.exs | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/types_test.exs | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/types_test.exs | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | Code.require_file("type_helper.exs", __DIR__)
defmodule Module.Types.TypesTest do
use ExUnit.Case, async: true
alias Module.Types
alias Module.Types.{Pattern, Expr}
defmacro warning(patterns \\ [], guards \\ [], body) do
min_line = min_line(patterns ++ guards ++ [body])
patterns = reset_line(patterns,... | 25.748999 | 143 | 0.463445 |
e82b598723e3f9b95110b07aef940f69f59f53db | 257 | ex | Elixir | lib/ephemeral2.ex | losvedir/ephemeral2 | 4d48d6b7724127efc4f416ec45c4c2cb28472fc3 | [
"MIT"
] | 864 | 2015-05-12T13:00:28.000Z | 2022-02-03T20:17:12.000Z | lib/ephemeral2.ex | losvedir/ephemeral2 | 4d48d6b7724127efc4f416ec45c4c2cb28472fc3 | [
"MIT"
] | 4 | 2015-05-13T22:07:17.000Z | 2015-07-10T17:03:31.000Z | lib/ephemeral2.ex | losvedir/ephemeral2 | 4d48d6b7724127efc4f416ec45c4c2cb28472fc3 | [
"MIT"
] | 71 | 2015-05-12T13:30:05.000Z | 2021-10-01T03:37:40.000Z | defmodule Ephemeral2 do
@moduledoc """
Ephemeral2 keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
e82b64c6493737ce65263ca0e8f2a552e8f6a717 | 3,482 | ex | Elixir | lib/fortnox_ex/api/default.ex | rsystem-se/fortnox_ex | 42516a8d364d7b3efb2d09bcfd1bd6dbb0238463 | [
"MIT"
] | 2 | 2021-02-03T14:40:22.000Z | 2021-02-03T17:11:48.000Z | lib/fortnox_ex/api/default.ex | rsystem-se/fortnox_ex | 42516a8d364d7b3efb2d09bcfd1bd6dbb0238463 | [
"MIT"
] | null | null | null | lib/fortnox_ex/api/default.ex | rsystem-se/fortnox_ex | 42516a8d364d7b3efb2d09bcfd1bd6dbb0238463 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule FortnoxEx.Api.Default do
@moduledoc """
API calls for all endpoints tagged `Default`.
"""
alias FortnoxEx.Connection
import FortnoxEx.Reque... | 39.568182 | 530 | 0.674325 |
e82b7c681a6f085db8ba6b1dc13f1b1d4470ff5f | 1,608 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/remove_tenant_project_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/remove_tenant_project_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/remove_tenant_project_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # 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... | 32.16 | 98 | 0.759328 |
e82b94fd2f49b9408518926c700f29f555f100d8 | 122 | ex | Elixir | web/admin/user_properties.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | web/admin/user_properties.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | web/admin/user_properties.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | defmodule Elapi.ExAdmin.UserProperties do
use ExAdmin.Register
register_resource Elapi.UserProperties do
end
end
| 13.555556 | 43 | 0.811475 |
e82bb720ec8e323de39b39d3bfcb9b45f00062dd | 4,640 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/post.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/blogger/lib/google_api/blogger/v3/model/post.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/model/post.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 ... | 45.940594 | 128 | 0.651078 |
e82bbe40887868b2b236d558472011cc92c7e9d1 | 725 | ex | Elixir | lib/perspective/reactor/state/backup_state.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/reactor/state/backup_state.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/reactor/state/backup_state.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.Reactor.BackupState do
def save_state(reactor_name, state) do
state
|> Perspective.Serialize.to_json()
|> Perspective.SaveLocalFile.save(backup_filename(reactor_name))
end
def load_state(reactor_name) do
try do
reactor_name
|> backup_filename()
|> Perspecti... | 26.851852 | 97 | 0.69931 |
e82bca8c1f0a37f57b34393991e5e889cefa0fe6 | 622 | ex | Elixir | apps/tcp_server/lib/tcp_server/workflows/gmsg_heartbeat.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 4 | 2018-11-09T16:57:06.000Z | 2021-03-02T22:57:17.000Z | apps/tcp_server/lib/tcp_server/workflows/gmsg_heartbeat.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 29 | 2018-10-26T08:29:37.000Z | 2018-12-09T21:02:05.000Z | apps/tcp_server/lib/tcp_server/workflows/gmsg_heartbeat.ex | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | null | null | null | defmodule TcpServer.Workflows.GmsgHeartbeat do
@moduledoc false
require Logger
def process_msg(%{type: "GMSG_HEARTBEAT"} = params, opts \\ []) do
Task.Supervisor.async_nolink(TcpServer.TaskSupervisor, fn -> execute(params, opts) end)
end
defp execute(params, opts) do
Logger.info(fn -> "Processing He... | 31.1 | 91 | 0.717042 |
e82bcf2a9062abac0e74fe30a43e5f0b8d5eb34d | 4,038 | exs | Elixir | test/exfile/ecto/file_template_test.exs | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 100 | 2015-12-25T12:38:41.000Z | 2021-12-31T11:41:20.000Z | test/exfile/ecto/file_template_test.exs | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 62 | 2015-12-26T01:43:54.000Z | 2019-09-15T16:16:35.000Z | test/exfile/ecto/file_template_test.exs | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 22 | 2016-04-19T11:54:38.000Z | 2021-09-29T14:48:46.000Z | defmodule Exfile.Ecto.FileTemplateTest do
use ExUnit.Case, async: true
defmodule TestFile do
use Exfile.Ecto.FileTemplate, backend: "store", cache_backend: "cache"
end
import Ecto.Type
def backend(), do: Exfile.Config.get_backend("cache")
def store_backend(), do: Exfile.Config.get_backend("store")
... | 35.421053 | 122 | 0.694156 |
e82c06bb6d0953c6adf78c11a179c42249f6b456 | 1,054 | ex | Elixir | flights/test/support/conn_case.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/test/support/conn_case.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/test/support/conn_case.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | defmodule Flights.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 da... | 24.511628 | 66 | 0.703036 |
e82c2794b6093e1714a7d2c456e160ec56e6d30b | 1,806 | exs | Elixir | test/astarte_core/device_test.exs | Pavinati/astarte_core | dd37ddd2b1bdcef0b1474be9c81d9a0efa4cda81 | [
"Apache-2.0"
] | 16 | 2018-02-02T14:07:10.000Z | 2021-02-03T13:57:30.000Z | test/astarte_core/device_test.exs | Pavinati/astarte_core | dd37ddd2b1bdcef0b1474be9c81d9a0efa4cda81 | [
"Apache-2.0"
] | 62 | 2019-03-14T15:52:12.000Z | 2022-03-22T10:34:56.000Z | test/astarte_core/device_test.exs | Pavinati/astarte_core | dd37ddd2b1bdcef0b1474be9c81d9a0efa4cda81 | [
"Apache-2.0"
] | 9 | 2018-02-02T09:55:06.000Z | 2021-03-04T15:15:08.000Z | defmodule Astarte.Core.DeviceTest do
use ExUnit.Case
alias Astarte.Core.Device
@invalid_characters_device_id "notbase64§"
@short_device_id "uTSXEtcgQ3"
@regular_device_id "74Zp9OoNRc-Vsi5RcsIf4A"
@long_device_id "uTSXEtcgQ3qczX3ixpZeFrWgx0kxk0bfrUzkqTIhCck"
test "invalid device ids decoding fails" do
... | 35.411765 | 96 | 0.762458 |
e82c2d49642e7a7553cf596225a1ce33e0280093 | 613 | ex | Elixir | lib/bex/application.ex | ckampfe/bex | cfbfdd600e03ebb9ef60c3f2f8cb61b0640455ff | [
"BSD-3-Clause"
] | null | null | null | lib/bex/application.ex | ckampfe/bex | cfbfdd600e03ebb9ef60c3f2f8cb61b0640455ff | [
"BSD-3-Clause"
] | null | null | null | lib/bex/application.ex | ckampfe/bex | cfbfdd600e03ebb9ef60c3f2f8cb61b0640455ff | [
"BSD-3-Clause"
] | null | null | null | defmodule Bex.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: Bex.Worker.start_link(arg)
# {Bex.Worker, arg}
{R... | 26.652174 | 62 | 0.683524 |
e82c6e20013c2554bd10dbea74ca557c7bee43d8 | 61 | ex | Elixir | lib/hnlive_web/views/layout_view.ex | josefrichter/hnlive | 5c9953835e447c98e65e9690655f6d602bd18d32 | [
"MIT"
] | 4 | 2020-05-31T11:53:17.000Z | 2021-05-25T11:30:24.000Z | lib/hnlive_web/views/layout_view.ex | josefrichter/hnlive | 5c9953835e447c98e65e9690655f6d602bd18d32 | [
"MIT"
] | 1 | 2020-05-31T13:08:02.000Z | 2020-05-31T13:08:02.000Z | lib/hnlive_web/views/layout_view.ex | josefrichter/hnlive | 5c9953835e447c98e65e9690655f6d602bd18d32 | [
"MIT"
] | 1 | 2020-05-31T11:53:43.000Z | 2020-05-31T11:53:43.000Z | defmodule HNLiveWeb.LayoutView do
use HNLiveWeb, :view
end
| 15.25 | 33 | 0.803279 |
e82c81d91622e29e1de60cba813d3a7fee231945 | 2,490 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/disk.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/disk.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/disk.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.8 | 977 | 0.763454 |
e82cd83ee8166bcaa4feffc0a0b1e22144662982 | 9,494 | ex | Elixir | lib/aws/generated/transcribe.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/transcribe.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/transcribe.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"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.Transcribe do
@moduledoc """
Operations and objects for transcribing speech to text.
"""
@doc """
Creates a new custom language model. Use Amazon S3 prefixes to provide the
location o... | 33.547703 | 78 | 0.706341 |
e82ce380f05ab3b44f5371977621fdfd866165a9 | 2,146 | exs | Elixir | test/type/type_bitstring/subtype_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/type_bitstring/subtype_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/type_bitstring/subtype_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | defmodule TypeTest.TypeBitstring.SubtypeTest do
use ExUnit.Case, async: true
@moduletag :subtype
import Type, only: [builtin: 1]
use Type.Operators
alias Type.Bitstring
@empty_bitstring %Bitstring{size: 0, unit: 0}
@basic_bitstring %Bitstring{size: 0, unit: 1}
@basic_binary %Bitstring{size: 0, u... | 32.515152 | 83 | 0.685461 |
e82cfe0cc01c394319529b4ea68e935abd5545f1 | 1,975 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_permission_groups_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_permission_groups_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/account_permission_groups_list_response.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.909091 | 171 | 0.752405 |
e82d3915c44e03d1f72d7f9b25ae50959fc0fa3d | 1,605 | exs | Elixir | api_user/config/dev.exs | roberttgt/Elixir-Course | 39a0bfc37125703d08114b54a6efac07f7ab7488 | [
"MIT"
] | null | null | null | api_user/config/dev.exs | roberttgt/Elixir-Course | 39a0bfc37125703d08114b54a6efac07f7ab7488 | [
"MIT"
] | null | null | null | api_user/config/dev.exs | roberttgt/Elixir-Course | 39a0bfc37125703d08114b54a6efac07f7ab7488 | [
"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 :api_user, ApiUserWeb.Endpoint,
http: [port: 400... | 28.157895 | 68 | 0.722118 |
e82d4faca9d09f4762a7d120b3e5d38f20972a29 | 746 | ex | Elixir | lib/wishlist/wishlists/gift.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | lib/wishlist/wishlists/gift.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | lib/wishlist/wishlists/gift.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | defmodule Wishlist.Wishlists.Gift do
use Ecto.Schema
import Ecto.Changeset
alias Wishlist.Wishlists.Event
alias Wishlist.Wishlists.Assignment
schema "gifts" do
field :image, :string
field :link, :string
field :link_2, :string
field :link_3, :string
field :name, :string
field :descript... | 23.3125 | 93 | 0.676944 |
e82dc683ee57ddcfe6f33b2486f603426d1d5e58 | 651 | ex | Elixir | apps/summoner_web/lib/summoner_web_web/controllers/tags_controller.ex | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | apps/summoner_web/lib/summoner_web_web/controllers/tags_controller.ex | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | apps/summoner_web/lib/summoner_web_web/controllers/tags_controller.ex | making3/summoner_alerts | fda7a43cab0e2022a90e8fe3d766f95628d9ac00 | [
"MIT"
] | null | null | null | defmodule SummonerWebWeb.TagsController do
use SummonerWebWeb, :controller
import Ecto.Query
alias SummonerBackend.Tag
alias SummonerBackend.TagGroup
alias SummonerBackend.Repo
def create(conn, params) do
tag_group = Repo.get(TagGroup, params["group_id"])
tag_changeset = Ecto.build_assoc(tag_group,... | 25.038462 | 76 | 0.6851 |
e82e10f09019df794df9a62587c9803e489969d3 | 1,064 | exs | Elixir | mix.exs | exredorg/exred_node_trigger | f4c87aeb15e11bf2700e7c767b1a0d4caba3ec31 | [
"MIT"
] | null | null | null | mix.exs | exredorg/exred_node_trigger | f4c87aeb15e11bf2700e7c767b1a0d4caba3ec31 | [
"MIT"
] | null | null | null | mix.exs | exredorg/exred_node_trigger | f4c87aeb15e11bf2700e7c767b1a0d4caba3ec31 | [
"MIT"
] | null | null | null | defmodule Exred.Node.Trigger.Mixfile do
use Mix.Project
@description "Triggers execution of other nodes by sending a configurable message"
@version File.read!("VERSION") |> String.trim()
def project do
[
app: :exred_node_trigger,
version: @version,
elixir: "~> 1.5",
start_permanent... | 23.130435 | 84 | 0.588346 |
e82e1756432e4400fd174937e162969b0c703815 | 11,230 | ex | Elixir | deps/ex_doc/lib/ex_doc/formatter/html/autolink.ex | londoed/cards | 915a259073067c6e35ebe68d11313d2a78a62a10 | [
"Apache-2.0"
] | null | null | null | deps/ex_doc/lib/ex_doc/formatter/html/autolink.ex | londoed/cards | 915a259073067c6e35ebe68d11313d2a78a62a10 | [
"Apache-2.0"
] | null | null | null | deps/ex_doc/lib/ex_doc/formatter/html/autolink.ex | londoed/cards | 915a259073067c6e35ebe68d11313d2a78a62a10 | [
"Apache-2.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.Autolink do
import ExDoc.Formatter.HTML.Templates, only: [h: 1, enc_h: 1]
@moduledoc """
Conveniences for autolinking locals, types and more.
"""
@elixir_docs "http://elixir-lang.org/docs/stable/"
@erlang_docs "http://www.erlang.org/doc/man/"
@doc """
Receives a list of ... | 31.368715 | 112 | 0.602315 |
e82e1ed0af2c7d758da5472126dea1fbab184f05 | 725 | ex | Elixir | lib/blog_post_api_web/gettext.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | lib/blog_post_api_web/gettext.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | lib/blog_post_api_web/gettext.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | defmodule BlogPostApiWeb.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 BlogPostApiWeb.Gettext
# Simple translation
gettext("H... | 29 | 72 | 0.684138 |
e82e26964ee281a4861c9af9d77717eadec0045e | 1,197 | exs | Elixir | mix.exs | MatthewNielsen27/memo_generator | d11f6a7d6c2da3bbc21895c7ee8849f089b05492 | [
"MIT"
] | null | null | null | mix.exs | MatthewNielsen27/memo_generator | d11f6a7d6c2da3bbc21895c7ee8849f089b05492 | [
"MIT"
] | null | null | null | mix.exs | MatthewNielsen27/memo_generator | d11f6a7d6c2da3bbc21895c7ee8849f089b05492 | [
"MIT"
] | null | null | null | defmodule MemoGenerator.MixProject do
use Mix.Project
def project do
[
app: :memo_generator,
version: "0.1.4",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
source_url: "https://github.com/azo... | 22.166667 | 76 | 0.548872 |
e82e5850ae5c130bd8d08523139dd4846878281c | 2,568 | exs | Elixir | apps/andi/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/andi/runtime.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | use Mix.Config
kafka_brokers = System.get_env("KAFKA_BROKERS")
live_view_salt = System.get_env("LIVEVIEW_SALT")
get_redix_args = fn host, password ->
[host: host, password: password]
|> Enum.filter(fn
{_, nil} -> false
{_, ""} -> false
_ -> true
end)
end
redix_args = get_redix_args.(System.get_env(... | 25.68 | 92 | 0.670561 |
e82ead543a701fd373b0a75fc9bbbe59ce011e70 | 9,493 | exs | Elixir | test/parsersv2_test.exs | JustinTangg/ex_aws_elastic_load_balancing | e43871ecd07b12de49d42e7c4d1f442a32eaebae | [
"MIT"
] | 4 | 2017-12-04T21:17:52.000Z | 2018-08-08T20:44:53.000Z | test/parsersv2_test.exs | JustinTangg/ex_aws_elastic_load_balancing | e43871ecd07b12de49d42e7c4d1f442a32eaebae | [
"MIT"
] | 4 | 2017-12-08T21:07:17.000Z | 2021-08-31T19:50:02.000Z | test/parsersv2_test.exs | JustinTangg/ex_aws_elastic_load_balancing | e43871ecd07b12de49d42e7c4d1f442a32eaebae | [
"MIT"
] | 6 | 2018-05-07T22:03:45.000Z | 2022-01-10T18:13:37.000Z | defmodule ExAws.ElasticLoadBalancingV2.ParsersTest do
use ExUnit.Case
doctest ExAws.ElasticLoadBalancingV2.Parsers
describe "describe_target_health parser" do
test "parses DescribeTargetHealthResponse" do
xml = """
<DescribeTargetHealthResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc... | 48.433673 | 1,361 | 0.58875 |
e82ece222878950c51b8e42f4562a94e1f3b4a7c | 2,135 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_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... | 40.283019 | 196 | 0.739578 |
e82ecefa9ebedfc5cba85f0c854f7e31046b2cc9 | 2,012 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/url_assigned_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/url_assigned_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/url_assigned_targeting_option_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... | 35.298246 | 113 | 0.74006 |
e82eecbfa1cf02d1896dab57aebe531c786db47e | 3,000 | exs | Elixir | .credo.exs | chaseconey/slash | f5d21f992b5ee7bbe2d3079b2e1057be32e935bb | [
"MIT"
] | 5 | 2019-03-28T06:56:51.000Z | 2021-03-17T11:05:00.000Z | .credo.exs | chaseconey/slash | f5d21f992b5ee7bbe2d3079b2e1057be32e935bb | [
"MIT"
] | 6 | 2019-03-28T07:06:12.000Z | 2019-05-15T17:04:10.000Z | .credo.exs | chaseconey/slash | f5d21f992b5ee7bbe2d3079b2e1057be32e935bb | [
"MIT"
] | 2 | 2019-04-24T01:12:02.000Z | 2019-09-20T00:26:00.000Z | %{
configs: [
%{
name: "default",
color: true,
strict: false,
check_for_updates: true,
files: %{
included: ["lib/", "config/", "test/"],
excluded: []
},
checks: [
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.LineEnding... | 42.857143 | 84 | 0.677667 |
e82ef2449ed9963bda7d734026b817fe08896edd | 1,750 | ex | Elixir | lib/stash/macros.ex | Dimakoua/stash | 037ae43c8b9b45b2d6849840558d347d3ed99184 | [
"MIT"
] | 34 | 2016-02-11T11:42:30.000Z | 2017-05-06T20:07:34.000Z | lib/stash/macros.ex | Dimakoua/stash | 037ae43c8b9b45b2d6849840558d347d3ed99184 | [
"MIT"
] | 4 | 2017-08-24T10:45:45.000Z | 2019-04-10T16:41:06.000Z | lib/stash/macros.ex | Dimakoua/stash | 037ae43c8b9b45b2d6849840558d347d3ed99184 | [
"MIT"
] | 6 | 2017-08-22T16:39:14.000Z | 2021-06-27T22:26:42.000Z | defmodule Stash.Macros do
@moduledoc false
# A collection of Macros used to define internal function headers
# and should not be used from outside this library (because they
# make a lot of assumptions)
defmacro deft(args, do: body) do
{ args, func_name, ctx, guards } = parse_args(args)
cache = { :c... | 25.735294 | 103 | 0.577714 |
e82f756d2d0b4deecc332e5cf380230554a410c5 | 8,490 | ex | Elixir | lib/bamboo/adapters/send_grid_helper.ex | hostalerye/bamboo | b7aea2a6761062a62e5bdcf27ae07c6bcb374bc5 | [
"MIT"
] | 1 | 2021-12-01T13:37:19.000Z | 2021-12-01T13:37:19.000Z | lib/bamboo/adapters/send_grid_helper.ex | hostalerye/bamboo | b7aea2a6761062a62e5bdcf27ae07c6bcb374bc5 | [
"MIT"
] | 1 | 2021-02-23T18:44:13.000Z | 2021-02-23T18:44:13.000Z | lib/bamboo/adapters/send_grid_helper.ex | hostalerye/bamboo | b7aea2a6761062a62e5bdcf27ae07c6bcb374bc5 | [
"MIT"
] | 1 | 2021-03-29T17:43:54.000Z | 2021-03-29T17:43:54.000Z | defmodule Bamboo.SendGridHelper do
@moduledoc """
Functions for using features specific to Sendgrid.
## Example
email
|> with_template("80509523-83de-42b6-a2bf-54b7513bd2aa")
|> substitute("%name%", "Jon Snow")
|> substitute("%location%", "Westeros")
"""
alias Bamboo.Email
@field... | 28.489933 | 100 | 0.689988 |
e82f86ca3bbc47ec11a44cdebde56521522d7868 | 878 | ex | Elixir | lib/tus/application.ex | infatuAI/tus | 0c8d509f4cb1d3d91fa6cd8cf7dc611f346168ad | [
"BSD-3-Clause"
] | null | null | null | lib/tus/application.ex | infatuAI/tus | 0c8d509f4cb1d3d91fa6cd8cf7dc611f346168ad | [
"BSD-3-Clause"
] | null | null | null | lib/tus/application.ex | infatuAI/tus | 0c8d509f4cb1d3d91fa6cd8cf7dc611f346168ad | [
"BSD-3-Clause"
] | null | null | null | defmodule Tus.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
import Supervisor.Spec, only: [worker: 3]
def start(_type, _args) do
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and... | 26.606061 | 66 | 0.686788 |
e82f8728d6342a35fccb4b7b2b21f182ffbe9c17 | 2,330 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/public_key.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/public_key.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/public_key.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # 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... | 44.807692 | 469 | 0.770815 |
e82fb18aa1c056c98fa61dee2c61b90c0abdb80f | 7,602 | ex | Elixir | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/parse/datetime/parsers/iso8601_extended.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2017-10-16T03:00:50.000Z | 2017-10-16T03:00:50.000Z | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/parse/datetime/parsers/iso8601_extended.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap8/blitzy/deps/timex/lib/parse/datetime/parsers/iso8601_extended.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Timex.Parse.DateTime.Parsers.ISO8601Extended do
use Combine.Helpers
alias Combine.ParserState
defparser parse(%ParserState{status: :ok, column: col, input: input, results: results} = state) do
case parse_extended(input) do
{:ok, parts, len, remaining} ->
%{state | :column => col + len... | 43.193182 | 157 | 0.558274 |
e82fbef64297cb9ab388401db54323f62e813cec | 1,865 | ex | Elixir | clients/games/lib/google_api/games/v1/model/event_update_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/event_update_request.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/event_update_request.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... | 34.537037 | 147 | 0.733512 |
e82fd6bf3e8560e87a39dcadf3b2f2097b4ccf19 | 852 | ex | Elixir | test/support/live_views/layout.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/live_views/layout.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/live_views/layout.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElementTest.ParentLayoutLive do
use LiveElement
def render(assigns) do
~H"""
<%= live_render @socket, LiveElementTest.LayoutLive, session: @session, id: "layout" %>
"""
end
def mount(_params, session, socket) do
{:ok, assign(socket, session: session)}
end
end
defmodule LiveEle... | 23.666667 | 91 | 0.670188 |
e82feccfc79aea3c4d4c97bae75ab2a50c6fb645 | 410 | ex | Elixir | test/support/file_loader.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/support/file_loader.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/support/file_loader.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Test.FileLoader do
@moduledoc false
@behaviour Xema.Loader
@spec fetch(binary) :: {:ok, map} | {:error, any}
def fetch(uri),
do:
"test/fixtures/remote"
|> Path.join(uri.path)
|> File.read!()
|> eval(uri)
defp eval(str, uri) do
{data, _} = Code.eval_string(str)
... | 19.52381 | 58 | 0.580488 |
e83006e7aee898f7c6f213a19bacabdb51c3e8da | 52,119 | ex | Elixir | lib/phoenix_live_view/test/live_view_test.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | jowrjowr/phoenix_live_view | d52da3b41292f9488e4a5c210aa1110c3f6420b0 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest do
@moduledoc """
Conveniences for testing Phoenix LiveViews.
In LiveView tests, we interact with views via process
communication in substitution of a browser. Like a browser,
our test process receives messages about the rendered updates
from the view which can be asserted ag... | 31.72185 | 98 | 0.65243 |
e8300ce8eaa2edb175b1d950c16965a208ff8926 | 2,194 | ex | Elixir | kousa/lib/beef/users.ex | Jawkx/dogehouse | eea5954aec56961a3c0144289e2ed4da739739c3 | [
"MIT"
] | 1 | 2021-04-19T19:32:51.000Z | 2021-04-19T19:32:51.000Z | kousa/lib/beef/users.ex | Jawkx/dogehouse | eea5954aec56961a3c0144289e2ed4da739739c3 | [
"MIT"
] | null | null | null | kousa/lib/beef/users.ex | Jawkx/dogehouse | eea5954aec56961a3c0144289e2ed4da739739c3 | [
"MIT"
] | null | null | null | defmodule Beef.Users do
@moduledoc """
Context module for Users. This module acts as a "gateway" module defining
the "boundary" for Users database access. Consider Beef.Users.* modules
to be "private modules". If in the future we would like to enforce these
boundary conditions at compile time, consider usi... | 48.755556 | 96 | 0.793072 |
e8301e9644ee66bb4a1937f5615e96ee9a22d822 | 2,554 | exs | Elixir | test/controllers/target_controller_test.exs | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | 3 | 2015-08-24T11:44:19.000Z | 2016-10-01T21:37:05.000Z | test/controllers/target_controller_test.exs | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | test/controllers/target_controller_test.exs | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | defmodule Storm.TargetControllerTest do
use Storm.ConnCase
alias Storm.Target
@valid_attrs %{url: "https://gist.github.com/", method: "GET"}
@invalid_attrs %{url: nil, method: nil}
setup do
user = factory(%Storm.User{}, :insert)
token = Storm.AuthToken.generate_token(user)
project = factory(%Sto... | 36.485714 | 109 | 0.668363 |
e830249147c26b84ab4d05833ad17ecc093883ce | 850 | exs | Elixir | test/plug/crypto_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | test/plug/crypto_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/crypto_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | defmodule Plug.CryptoTest do
use ExUnit.Case, async: true
import Plug.Crypto
test "masks tokens" do
assert mask(<<0, 1, 0, 1>>, <<0, 1, 1, 0>>) == <<0, 0, 1, 1>>
assert mask(<<0, 0, 1, 1>>, <<0, 1, 1, 0>>) == <<0, 1, 0, 1>>
end
test "compares binaries securely" do
assert secure_compare(<<>>, <<... | 29.310345 | 73 | 0.529412 |
e8302c3b9a5d4b99e19f674e6eecf1b3a7a60bd2 | 4,431 | ex | Elixir | lib/sanbase/user_lists/settings.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase/user_lists/settings.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase/user_lists/settings.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.UserList.Settings do
@moduledoc ~s"""
Store and work with settings specific for a watchlist.
The settings are stored per user. One watchlist can have many settings for many
users. When a user requires the settings for a watchlist the resolution process
is the first one that matches:
1. If... | 28.403846 | 83 | 0.658993 |
e830916c4c9c0db0e3fe0a911ca8e144e9cf5e97 | 443 | ex | Elixir | lib/guardian.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | lib/guardian.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | lib/guardian.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Guardian do
use Guardian, otp_app: :safira
def subject_for_token(user, _claims) do
sub = to_string(user.id)
{:ok, sub}
end
def subject_for_token(_, _) do
{:error, :reason_for_error}
end
def resource_from_claims(claims) do
id = claims["sub"]
resource = Safira.Accounts.... | 19.26087 | 44 | 0.681716 |
e830955c99c9138a0e015e03f435c720db1dcba8 | 849 | ex | Elixir | lib/acme/resources/challenge.ex | sikanhe/acme | 2c28818a2edea5c570dcb1ab09de695b5e0a4021 | [
"MIT"
] | 44 | 2017-03-31T15:55:48.000Z | 2022-02-21T11:16:26.000Z | lib/acme/resources/challenge.ex | sikanhe/acme | 2c28818a2edea5c570dcb1ab09de695b5e0a4021 | [
"MIT"
] | 7 | 2017-07-12T09:36:57.000Z | 2018-01-18T21:30:43.000Z | lib/acme/resources/challenge.ex | sikanhe/acme | 2c28818a2edea5c570dcb1ab09de695b5e0a4021 | [
"MIT"
] | 6 | 2017-11-20T05:04:10.000Z | 2019-07-09T11:12:41.000Z | defmodule Acme.Challenge do
defstruct [:token, :status, :type, :uri]
def from_map(%{
"type" => type,
"status" => status,
"uri" => uri,
"token" => token
}) do
%__MODULE__{
type: type,
status: status,
uri: uri,
token: token
}
end
@doc """
C... | 22.342105 | 80 | 0.62662 |
e830aee7b275468d0bb132efb444ab2692b4a294 | 4,341 | ex | Elixir | harbor/test/_support/ws_client.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/test/_support/ws_client.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | harbor/test/_support/ws_client.ex | miapolis/port7 | 7df1223f83d055eeb6ce8f61f4af8b4f2cf33e74 | [
"MIT"
] | null | null | null | defmodule PierTest.WsClient do
use WebSockex
@api_url Application.compile_env!(:harbor, :api_url)
def child_spec(info) do
info
|> super
|> Map.put(:id, UUID.uuid4())
end
def start_link(_opts) do
ancestors =
:"$ancestors"
|> Process.get()
|> :erlang.term_to_binary()
|... | 24.805714 | 95 | 0.577747 |
e830b456005f5e45bd40239c571491604d1c70a3 | 1,273 | exs | Elixir | config/config.exs | langens-jonathan/sparql | 9bd4aa7d95fa860cae77f59a17c022771097c9b6 | [
"MIT"
] | null | null | null | config/config.exs | langens-jonathan/sparql | 9bd4aa7d95fa860cae77f59a17c022771097c9b6 | [
"MIT"
] | null | null | null | config/config.exs | langens-jonathan/sparql | 9bd4aa7d95fa860cae77f59a17c022771097c9b6 | [
"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... | 34.405405 | 73 | 0.750982 |
e830e0fd1c306e30f9ce62c17a4205805f4c3091 | 366 | exs | Elixir | test/felix_http_serializer_test.exs | geonnave/felix | f770af9db656978450ae3cf75573559957f203c8 | [
"MIT"
] | 5 | 2019-02-10T03:33:23.000Z | 2019-02-11T12:25:50.000Z | test/felix_http_serializer_test.exs | geonnave/felix | f770af9db656978450ae3cf75573559957f203c8 | [
"MIT"
] | null | null | null | test/felix_http_serializer_test.exs | geonnave/felix | f770af9db656978450ae3cf75573559957f203c8 | [
"MIT"
] | null | null | null | defmodule FelixHTTPSerializerTest do
use ExUnit.Case
doctest Felix
alias Felix.{HTTPSerializer, Connection}
test "build http response" do
response = """
HTTP/1.1 200 Ok\r
\r
hola que tal
"""
connection = %Connection{status: "200 Ok", resp_body: "hola que tal"}
assert ^response = H... | 20.333333 | 73 | 0.68306 |
e83109ff92398bcf78b06c662fdcc48790f22c69 | 757 | ex | Elixir | lib/scd4x/measurement.ex | mnishiguchi/scd4x | 4ad57b3b45d0a6a8302ee6e4fc41e6202af2fed5 | [
"MIT"
] | null | null | null | lib/scd4x/measurement.ex | mnishiguchi/scd4x | 4ad57b3b45d0a6a8302ee6e4fc41e6202af2fed5 | [
"MIT"
] | null | null | null | lib/scd4x/measurement.ex | mnishiguchi/scd4x | 4ad57b3b45d0a6a8302ee6e4fc41e6202af2fed5 | [
"MIT"
] | null | null | null | defmodule SCD4X.Measurement do
@moduledoc """
One sensor measurement
"""
defstruct [:co2_ppm, :humidity_rh, :temperature_c, :timestamp_ms]
@type t :: %{
required(:timestamp_ms) => non_neg_integer(),
required(:co2_ppm) => number,
required(:humidity_rh) => number,
requi... | 29.115385 | 81 | 0.640687 |
e83161055e9a349dd7c88cee130132a488bff136 | 669 | exs | Elixir | patterns/splitter/elixir/splitter/mix.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | patterns/splitter/elixir/splitter/mix.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | patterns/splitter/elixir/splitter/mix.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | defmodule Splitter.Mixfile do
use Mix.Project
def project do
[app: :splitter,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 20.272727 | 77 | 0.609865 |
e831a1d77248f3ddd023e95aa3ba91d15afc7958 | 97 | exs | Elixir | test/zss_service/error_test.exs | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | test/zss_service/error_test.exs | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | 13 | 2017-05-20T12:19:37.000Z | 2017-07-16T10:31:34.000Z | test/zss_service/error_test.exs | nickve28/zss_service_suite_service_ex | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | defmodule ZssService.ErrorTest do
use ExUnit.Case
alias ZssService.Error
doctest Error
end | 16.166667 | 33 | 0.804124 |
e831e97c78eb5af51b8951ba08a82fa0c752904e | 2,338 | ex | Elixir | lib/surface/catalogue/layout_view.ex | RobertDober/surface_catalogue | 05495b00573b4138a167812e33e8d441590e4c89 | [
"MIT"
] | null | null | null | lib/surface/catalogue/layout_view.ex | RobertDober/surface_catalogue | 05495b00573b4138a167812e33e8d441590e4c89 | [
"MIT"
] | null | null | null | lib/surface/catalogue/layout_view.ex | RobertDober/surface_catalogue | 05495b00573b4138a167812e33e8d441590e4c89 | [
"MIT"
] | null | null | null | defmodule Surface.Catalogue.LayoutView do
use Phoenix.View,
namespace: Surface.Catalogue,
root: "lib/surface/catalogue/templates"
import Surface
@makeup_css Makeup.stylesheet(Makeup.Styles.HTML.StyleMap.monokai_style(), "makeup-highlight")
def render("makeup.css", _), do: @makeup_css
def render(_,... | 32.929577 | 115 | 0.586826 |
e8320c2d381b2488efcb1772661ff1dd0df876d8 | 727 | exs | Elixir | test/feature_template_test.exs | TurtleAI/cabbage | a6a5b6b03c13231535d16eccad6d4bc343fb0763 | [
"MIT"
] | 113 | 2017-01-26T21:42:22.000Z | 2022-02-15T02:19:25.000Z | test/feature_template_test.exs | TurtleAI/cabbage | a6a5b6b03c13231535d16eccad6d4bc343fb0763 | [
"MIT"
] | 76 | 2017-01-24T19:53:12.000Z | 2021-11-17T13:23:51.000Z | test/feature_template_test.exs | civilcode/cabbage | bdb14a8efae86bcf437180ce2f7193a1f431742d | [
"MIT"
] | 30 | 2017-01-22T21:43:35.000Z | 2022-02-09T17:21:38.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule Cabbage.FeatureTestTest do
use ExUnit.Case
test "can use custom template" do
defmodule CustomTemplate do
use ExUnit.CaseTemplate
using do
quote do
setup_all do
{:ok, %{case_template: unquote(__MODULE__)}}
... | 23.451613 | 77 | 0.646492 |
e8321f7050b7ca8d75ec4b9fd7707fe563172aa9 | 8,359 | exs | Elixir | test/integration/kayrock/timestamp_test.exs | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | test/integration/kayrock/timestamp_test.exs | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | test/integration/kayrock/timestamp_test.exs | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | null | null | null | defmodule KafkaEx.KayrockTimestampTest do
@moduledoc """
Tests for the timestamp functionality in messages
"""
use ExUnit.Case
alias KafkaEx.TimestampNotSupportedError
@moduletag :new_client
setup do
{:ok, pid} =
KafkaEx.start_link_worker(:no_name, server_impl: KafkaEx.New.Client)
{:ok,... | 23.09116 | 79 | 0.612394 |
e832236475b9cb554eee94d6568a8e44344151c0 | 2,290 | ex | Elixir | web/controllers/home_controller.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | web/controllers/home_controller.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | web/controllers/home_controller.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | defmodule Changelog.HomeController do
use Changelog.Web, :controller
alias Changelog.{Person, Slack}
alias Craisin.Subscriber
plug RequireUser
def show(conn, _params) do
render(conn, :show)
end
def edit(conn = %{assigns: %{current_user: current_user}}, _params) do
render(conn, :edit, changeset... | 31.369863 | 116 | 0.646288 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.