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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33c18db9d8c8254fda403924eaa2b3497512b565 | 705 | ex | Elixir | lib/flash_web/gettext.ex | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | 1 | 2021-09-08T16:56:39.000Z | 2021-09-08T16:56:39.000Z | lib/flash_web/gettext.ex | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | null | null | null | lib/flash_web/gettext.ex | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | null | null | null | defmodule FlashWeb.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 FlashWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
33c19a1804943f01e2016b6e6b38a3ba25d04933 | 1,013 | ex | Elixir | lib/ex_twilio/resources/feedback.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/feedback.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/feedback.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | defmodule ExTwilio.Feedback do
@moduledoc """
Represents a Call Feedback resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/api/rest/call-feedback)
## Examples
Since Call Feedback is a nested resource in the Twilio API, you must
pass in a parent Call SID to all functions in this modu... | 26.657895 | 77 | 0.673248 |
33c19c87ee206062d65b69f864dda327ae4daacc | 3,803 | exs | Elixir | apps/astarte_realm_management_api/test/astarte_realm_management_api_web/controllers/realm_config_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:22.000Z | 2020-02-04T13:15:22.000Z | apps/astarte_realm_management_api/test/astarte_realm_management_api_web/controllers/realm_config_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 5 | 2019-11-15T11:51:30.000Z | 2019-11-28T10:18:23.000Z | apps/astarte_realm_management_api/test/astarte_realm_management_api_web/controllers/realm_config_controller_test.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 3 | 2018-03-23T15:06:58.000Z | 2019-11-21T00:08:53.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... | 35.542056 | 100 | 0.727846 |
33c19e1315b14db5e51cc180254142a54ad2457b | 442 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/67.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/67.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/67.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
pnoun verb demonstrative noun pn;
verb_aux verb_aux pn noun pn;
cm verb adjective noun pn;
verb verb_aux adjective pnoun pn;
noun verb demonstrative noun pn;
pn pn verb noun pn;
pnoun cm quantifier noun pn;
noun verb demonstrative noun pn;
verb_aux SYM pn cardinal pn;
SYM SYM particle pn pn;... | 26 | 36 | 0.762443 |
33c1b8abeb15c52282ed0b9053adaa4fd2d85c9e | 939 | ex | Elixir | lib/elavon.ex | infinitered/elavon-elixir | cabe1dcbc4b8ca06145975825a45bfaa59f63eff | [
"MIT"
] | 3 | 2017-11-29T23:02:37.000Z | 2017-11-29T23:11:31.000Z | lib/elavon.ex | infinitered/elavon-elixir | cabe1dcbc4b8ca06145975825a45bfaa59f63eff | [
"MIT"
] | 1 | 2017-11-30T21:02:14.000Z | 2017-11-30T21:11:05.000Z | lib/elavon.ex | infinitered/elavon-elixir | cabe1dcbc4b8ca06145975825a45bfaa59f63eff | [
"MIT"
] | null | null | null | defmodule Elavon do
@moduledoc """
Provides functions to interact with USBank Elavon Converge API. You can configure the API
with a mock for testing if necessary.
## Configuration
config :elavon, api_module: Elavon.API.HTTP
In test mode:
config :elavon, api_module: Elavon.API.Mock
"""
@doc ""... | 22.902439 | 91 | 0.649627 |
33c1ba6eea68515b0b36e6cc7dae293eff57c44d | 120 | ex | Elixir | lib/kantele/character/presence.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/kantele/character/presence.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/kantele/character/presence.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Kantele.Character.Presence do
@moduledoc "Kalevala presense tracker"
use Kalevala.Character.Presence
end
| 20 | 40 | 0.816667 |
33c1cb024f32bdb78a8ed829a539833948dc438d | 1,064 | exs | Elixir | apps/artemis/test/artemis/contexts/project/get_project_test.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/test/artemis/contexts/project/get_project_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/test/artemis/contexts/project/get_project_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.GetProjectTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.GetProject
setup do
project = insert(:project)
{:ok, project: project}
end
describe "call" do
test "returns nil project not found" do
invalid_id = 50_000_000
assert GetProject.call(i... | 24.181818 | 89 | 0.671992 |
33c1de55e8431868239d85abf3c4a98bef3de8cf | 544 | ex | Elixir | lib/mix/seeds/helpers.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/mix/seeds/helpers.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/mix/seeds/helpers.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Seeds.Helpers do
@moduledoc ~s"""
Provides helper functions for easier consturcing of seeds.
"""
def contract1(), do: "0x7c5a0ce9267ed19b22f8cae653f198e3e8daf098"
def contract2(), do: "0x123123"
def random_date(days \\ 90) do
day_shift = :rand.uniform(days)
Timex.now()
|> Tim... | 23.652174 | 67 | 0.711397 |
33c1f322ba919eec8a8c58e1d31194e750afeed6 | 2,022 | ex | Elixir | lib/tentacat/releases/assets.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 432 | 2015-01-19T20:38:35.000Z | 2022-01-11T14:32:28.000Z | lib/tentacat/releases/assets.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 183 | 2015-01-19T08:55:29.000Z | 2022-03-01T20:26:03.000Z | lib/tentacat/releases/assets.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 189 | 2015-01-04T14:56:59.000Z | 2021-12-14T20:48:18.000Z | defmodule Tentacat.Releases.Assets do
import Tentacat
alias Tentacat.Client
#
# Public API
#
@doc """
Get all assets for the given release.
## Example
Tentacat.Releases.Assets.list(95071, "elixir-lang", "elixir", client)
More info at: http:\\developer.github.com/v3/repos/releases/#list-asse... | 28.885714 | 114 | 0.660732 |
33c1f54db56cb3aab660e7dea4e4e2dc8390cc94 | 1,352 | exs | Elixir | mix.exs | alexogar/agent_map | 329920515e24e6d51bb1e3bd5ea38cd602cb6157 | [
"MIT"
] | 1 | 2018-06-05T21:32:23.000Z | 2018-06-05T21:32:23.000Z | mix.exs | alexogar/agent_map | 329920515e24e6d51bb1e3bd5ea38cd602cb6157 | [
"MIT"
] | null | null | null | mix.exs | alexogar/agent_map | 329920515e24e6d51bb1e3bd5ea38cd602cb6157 | [
"MIT"
] | 1 | 2019-03-20T21:10:28.000Z | 2019-03-20T21:10:28.000Z | defmodule AgentMap.Mixfile do
use Mix.Project
def project do
[
app: :agent_map,
name: "AgentMap",
description: """
AgentMap can be seen as a stateful Map that parallelize operations made on
different keys. Basically, it can be used as a cache, memoization,
computational fram... | 20.179104 | 80 | 0.54142 |
33c2013076be4406bd72f3e22c9cd8e790f86f50 | 259 | ex | Elixir | lib/offers.ex | gapfranco/bank_account | ffa60fd76b70b9243e7eb575d52f22bdc31d196e | [
"MIT"
] | null | null | null | lib/offers.ex | gapfranco/bank_account | ffa60fd76b70b9243e7eb575d52f22bdc31d196e | [
"MIT"
] | null | null | null | lib/offers.ex | gapfranco/bank_account | ffa60fd76b70b9243e7eb575d52f22bdc31d196e | [
"MIT"
] | null | null | null | defmodule BankAccount do
@moduledoc """
BankAccount 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.9 | 66 | 0.760618 |
33c23b3de206d0b6f011d6789b7ee22507c87555 | 1,680 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/footnote.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/footnote.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/footnote.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.6 | 179 | 0.720238 |
33c2401e8f20e13269b30fc3b28d14a350650e51 | 377 | ex | Elixir | agma/lib/agma/docker/labels.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | 37 | 2021-01-31T17:43:03.000Z | 2021-11-17T12:29:00.000Z | agma/lib/agma/docker/labels.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | 4 | 2021-05-29T04:54:28.000Z | 2021-06-26T20:40:48.000Z | agma/lib/agma/docker/labels.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | null | null | null | defmodule Agma.Docker.Labels do
@managed "mahou:agma:docker:container:managed"
@namespace "mahou:agma:docker:container:namespace"
@deployment "mahou:agma:docker:container:deployment"
@name_cache "mahou:agma:docker:container:name-cache"
def managed, do: @managed
def namespace, do: @namespace
def deploymen... | 31.416667 | 54 | 0.766578 |
33c25edc0d6c780c57a75e1bb72bf900c933cf1f | 1,246 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/crop_hints_annotation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/crop_hints_annotation.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/crop_hints_annotation.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... | 31.948718 | 84 | 0.752006 |
33c27470209bed1b4380093e4e4744d75340554a | 739 | ex | Elixir | test/ex_type/checker_test_case.ex | gyson/ex_type | 73c3f0743f3b59a35a559f11df04c9d39cf86684 | [
"MIT"
] | 34 | 2019-04-29T03:19:04.000Z | 2022-02-25T21:14:31.000Z | test/ex_type/checker_test_case.ex | gyson/ex_type | 73c3f0743f3b59a35a559f11df04c9d39cf86684 | [
"MIT"
] | 34 | 2019-04-29T09:26:54.000Z | 2022-02-14T15:19:26.000Z | test/ex_type/checker_test_case.ex | gyson/ex_type | 73c3f0743f3b59a35a559f11df04c9d39cf86684 | [
"MIT"
] | 1 | 2020-12-08T11:57:02.000Z | 2020-12-08T11:57:02.000Z | defmodule ExType.CheckerTestCase do
require ExType.T
alias ExType.T
@spec test_case_1({:ok, integer()} | :error) :: any()
def test_case_1(input) do
case input do
{:ok, x} ->
T.assert(x == integer())
x
error ->
T.assert(error == :error)
error
end
end
@s... | 15.395833 | 55 | 0.5318 |
33c27b71b4d5bd725758503d739f143241848b80 | 8,372 | ex | Elixir | lib/cldr/language.ex | RPetrov/cldr_languages | 802a181c2683a98f989c9df4a0f88d0ca74e3b1b | [
"Apache-2.0"
] | null | null | null | lib/cldr/language.ex | RPetrov/cldr_languages | 802a181c2683a98f989c9df4a0f88d0ca74e3b1b | [
"Apache-2.0"
] | null | null | null | lib/cldr/language.ex | RPetrov/cldr_languages | 802a181c2683a98f989c9df4a0f88d0ca74e3b1b | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Language do
@moduledoc """
Cldr Languages does provide functionality regarding languages within the data
supplied by the Cldr core package.
To use the functionality of this module you need to [register it as provider](https://github.com/kipcole9/cldr#providers) in your cldr backend module.
##... | 39.490566 | 152 | 0.550406 |
33c280417c57f8270b13a925a0d92bcb0d1620e4 | 4,745 | ex | Elixir | lib/panglao/client/cheapcdn/base.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | 1 | 2017-02-18T21:20:17.000Z | 2017-02-18T21:20:17.000Z | lib/panglao/client/cheapcdn/base.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | lib/panglao/client/cheapcdn/base.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | defmodule Panglao.Client.Cheapcdn.Base do
defmodule Client do
defmacro __using__(opts) do
quote do
use HTTPoison.Base
@api Application.get_env(:panglao, :cheapcdn)[:api]
@cdnenv unquote(opts[:host])
def cdnenv, do: @cdnenv
def endpoint, do: @cdnenv[:endpoint]
... | 23.606965 | 72 | 0.521391 |
33c283ac381b7fd10459df063318e91d8a1548ca | 454 | exs | Elixir | test/vec2/vec2_length_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 70 | 2015-01-07T10:13:38.000Z | 2021-09-29T05:06:14.000Z | test/vec2/vec2_length_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 28 | 2015-01-22T22:38:24.000Z | 2021-06-24T06:15:38.000Z | test/vec2/vec2_length_test.exs | crertel/graphmath | 798e51d21d509e397a86d9ca855ef18a92243583 | [
"Unlicense"
] | 17 | 2015-01-22T18:35:41.000Z | 2020-12-24T22:42:40.000Z | defmodule GraphmathTest.Vec2.LengthVec2 do
use ExUnit.Case
@tag :vec2
@tag :length
test "length({3,4}) returns 5" do
assert 5 == Graphmath.Vec2.length({3, 4})
end
@tag :vec2
@tag :length
test "length_squared({3,4}) returns 25" do
assert 25 == Graphmath.Vec2.length_squared({3, 4})
end
@tag... | 20.636364 | 55 | 0.65859 |
33c2855b706e384510c184e2ab864cf429692cba | 466 | ex | Elixir | lib/Structs/Channels/StageVoiceChannel.ex | mckethanor/alchemy | 41f218070aa5b6835ec554895cf5074af0084a79 | [
"MIT"
] | 163 | 2017-03-01T09:02:35.000Z | 2022-03-09T23:31:48.000Z | lib/Structs/Channels/StageVoiceChannel.ex | mckethanor/alchemy | 41f218070aa5b6835ec554895cf5074af0084a79 | [
"MIT"
] | 91 | 2017-02-23T23:23:35.000Z | 2021-12-29T23:47:44.000Z | lib/Structs/Channels/StageVoiceChannel.ex | mckethanor/alchemy | 41f218070aa5b6835ec554895cf5074af0084a79 | [
"MIT"
] | 38 | 2017-03-23T13:16:44.000Z | 2022-02-26T15:53:32.000Z | defmodule Alchemy.Channel.StageVoiceChannel do
@moduledoc false
alias Alchemy.OverWrite
import Alchemy.Structs
defstruct [
:id,
:guild_id,
:position,
:permission_overwrites,
:name,
:nsfw,
:bitrate,
:user_limit,
:parent_id,
:rtc_region,
:topic,
:video_quality_mode... | 17.259259 | 69 | 0.656652 |
33c289125bd2dd2e63ed5cdcfab3a93df272b5ec | 1,088 | exs | Elixir | apps/odo/config/integration.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | apps/odo/config/integration.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | 1 | 2020-01-09T21:00:10.000Z | 2020-01-09T21:00:10.000Z | apps/odo/config/integration.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
host =
case System.get_env("HOST_IP") do
nil -> "127.0.0.1"
defined -> defined
end
System.put_env("HOST", host)
config :logger,
level: :info
bucket_name = "kdp-cloud-storage"
endpoints = [{String.to_atom(host), 9092}]
config :odo,
kafka_broker: endpoints,
hosted_file_bucket: bucket_... | 19.428571 | 63 | 0.644301 |
33c2b6c97bfc307682f8cbecd4a688d555efeb8c | 1,996 | ex | Elixir | lib/buffered_queue.ex | rhumbertgz/elixir_qlib | dcebca8dac8a2070ba098b209b6754daf1f49235 | [
"Apache-2.0"
] | 3 | 2016-10-05T21:34:47.000Z | 2021-04-21T15:02:47.000Z | lib/buffered_queue.ex | rhumbertgz/elixir_qlib | dcebca8dac8a2070ba098b209b6754daf1f49235 | [
"Apache-2.0"
] | null | null | null | lib/buffered_queue.ex | rhumbertgz/elixir_qlib | dcebca8dac8a2070ba098b209b6754daf1f49235 | [
"Apache-2.0"
] | null | null | null | defmodule QLib.BufferedQueue do
@moduledoc """
BufferedQueue is a simple and buffered abstraction around state.
A BufferedQueue can only store a N maximum of items. The size of BufferedQueue
will never exceed the N items. If a BufferedQueue achieve its maximum capacity
and a new item has to be inserted, the ... | 22.426966 | 81 | 0.64479 |
33c2e0cee487cd7a2b3585debf5fc39ba50420b8 | 1,008 | ex | Elixir | test/support/channel_case.ex | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | test/support/channel_case.ex | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | 30 | 2016-08-21T18:33:11.000Z | 2020-04-12T23:16:18.000Z | test/support/channel_case.ex | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | defmodule Scripture.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 and query models.
Finally, if the test case interacts with the database,
it cannot be... | 22.909091 | 71 | 0.703373 |
33c31987861e510ad8872aa668a0e7e5db80f278 | 815 | ex | Elixir | lib/vex/blank.ex | Apelsinka223/vex | dfd399724f7950d91fe6d894bb5a02e3d27bfa24 | [
"MIT"
] | null | null | null | lib/vex/blank.ex | Apelsinka223/vex | dfd399724f7950d91fe6d894bb5a02e3d27bfa24 | [
"MIT"
] | null | null | null | lib/vex/blank.ex | Apelsinka223/vex | dfd399724f7950d91fe6d894bb5a02e3d27bfa24 | [
"MIT"
] | null | null | null | defprotocol Vex.Blank do
@only [Atom, Tuple, List, BitString, Map, Any]
@doc "Whether an item is blank"
def blank?(value)
end
defimpl Vex.Blank, for: List do
def blank?([]), do: true
def blank?(_), do: false
end
defimpl Vex.Blank, for: Float do
def blank?(_), do: false
end
defimpl Vex.Blank, for: Intege... | 18.953488 | 48 | 0.651534 |
33c324567f3629c459d68fae2c511d2bda4978fe | 533 | exs | Elixir | config/dev.exs | kmsskelly/banking_api | 89b8682e9317e045396bb783b7f0282ea8a4e13b | [
"Apache-2.0"
] | null | null | null | config/dev.exs | kmsskelly/banking_api | 89b8682e9317e045396bb783b7f0282ea8a4e13b | [
"Apache-2.0"
] | null | null | null | config/dev.exs | kmsskelly/banking_api | 89b8682e9317e045396bb783b7f0282ea8a4e13b | [
"Apache-2.0"
] | null | null | null | import Config
config :banking_api, BankingApi.Repo,
username: "banking_api_user",
password: "banking_api_pass",
database: "banking-api-db",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
config :banking_api_web, BankingApiWeb.Endpoint,
http: [port: 4000],
debug_err... | 23.173913 | 55 | 0.744841 |
33c35ae080779730ade073fba42f9e0ed34616c0 | 14,854 | ex | Elixir | lib/mojito.ex | esvinson/mojito | f0fb221c74bfba10f5818438a707f88d8971d56b | [
"MIT"
] | null | null | null | lib/mojito.ex | esvinson/mojito | f0fb221c74bfba10f5818438a707f88d8971d56b | [
"MIT"
] | null | null | null | lib/mojito.ex | esvinson/mojito | f0fb221c74bfba10f5818438a707f88d8971d56b | [
"MIT"
] | null | null | null | defmodule Mojito do
@moduledoc ~S"""
Mojito is an easy-to-use, high-performance HTTP client built using the
low-level [Mint library](https://github.com/ericmj/mint).
Mojito is built for comfort _and_ for speed. Behind a simple and
predictable interface, there is a sophisticated connection pool manager
tha... | 34.705607 | 330 | 0.63525 |
33c35b713e32873db69d10d75a2f6ec13c7af7ea | 2,317 | exs | Elixir | mix.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 2 | 2020-02-11T15:15:25.000Z | 2020-02-11T15:15:27.000Z | mix.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 8 | 2020-01-28T21:02:56.000Z | 2020-02-24T16:13:38.000Z | mix.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 1 | 2020-02-08T20:46:27.000Z | 2020-02-08T20:46:27.000Z | defmodule VintageNetMobile.MixProject do
use Mix.Project
@version "0.11.1"
@source_url "https://github.com/nerves-networking/vintage_net_mobile"
def project do
[
app: :vintage_net_mobile,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
test_cover... | 23.886598 | 95 | 0.55287 |
33c36e2139ea6f553fc369b837510764568fa734 | 3,087 | ex | Elixir | lib/credo/check/refactor/match_in_condition.ex | egze/credo | 59ee836e9ee07c478421df3078a56230a86c3860 | [
"MIT"
] | 1 | 2021-12-01T13:37:43.000Z | 2021-12-01T13:37:43.000Z | deps/credo/lib/credo/check/refactor/match_in_condition.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/credo/lib/credo/check/refactor/match_in_condition.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 1 | 2020-06-28T00:36:07.000Z | 2020-06-28T00:36:07.000Z | defmodule Credo.Check.Refactor.MatchInCondition do
use Credo.Check,
explanations: [
check: """
Pattern matching should only ever be used for simple assignments
inside `if` and `unless` clauses.
While this fine:
# okay, simple wildcard assignment:
if contents = File.r... | 25.303279 | 79 | 0.580823 |
33c38d8a9925784d62d207506bae7297b9af8af7 | 1,010 | ex | Elixir | lib/json_api_query_builder/fields.ex | mbuhot/json_api_query_builder | c67bc3bf81c27c6ccb69278d09eba337aa81589c | [
"MIT"
] | 8 | 2017-12-13T14:37:37.000Z | 2020-05-22T13:50:45.000Z | lib/json_api_query_builder/fields.ex | mbuhot/json_api_query_builder | c67bc3bf81c27c6ccb69278d09eba337aa81589c | [
"MIT"
] | null | null | null | lib/json_api_query_builder/fields.ex | mbuhot/json_api_query_builder | c67bc3bf81c27c6ccb69278d09eba337aa81589c | [
"MIT"
] | null | null | null | defmodule JsonApiQueryBuilder.Fields do
@moduledoc """
Sparse fieldset operations for JsonApiQueryBuilder
"""
import Ecto.Query
@doc """
Applies sparse fieldset selection from a parsed JSON-API request to an `Ecto.Queryable.t`
The given callback will be used to map from API field name strings to Ecto s... | 30.606061 | 94 | 0.69505 |
33c38dd2989897b16796b901e0425043220e7763 | 178 | exs | Elixir | config/test.exs | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 1 | 2020-05-20T18:31:40.000Z | 2020-05-20T18:31:40.000Z | config/test.exs | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 11 | 2020-05-06T13:32:43.000Z | 2020-05-15T19:18:39.000Z | config/test.exs | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | null | null | null | use Mix.Config
config :phoenix, :json_library, Jason
config :colonel_kurtz_ex, ColonelKurtz,
block_types: ColonelKurtzTest.BlockTypes,
block_views: ColonelKurtzTest.Blocks
| 22.25 | 43 | 0.820225 |
33c3c89de5d387223cd2fcf2f3d5f03287d4b22d | 4,185 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/admin/form/upload_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/form/upload_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/form/upload_component.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.Admin.Form.UploadComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="col-sm-6 admin-upload-form vazir">
<%= label @f , "#{@search_fields.title}:" %>
<div class="drop" phx-drop-target="<%= @ref %>">
<button phx-click="delete... | 39.857143 | 167 | 0.432497 |
33c3d670c90ae1f6c68a1043d83d74779c00c7b8 | 6,092 | ex | Elixir | web/modules/sql/query_runner.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/modules/sql/query_runner.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/modules/sql/query_runner.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.Sql.QueryRunner do
alias AfterGlow.Question
alias AfterGlow.Sql.DbConnection
alias AfterGlow.Async
alias AfterGlow.ColumnValuesTasks
alias AfterGlow.Repo
alias AfterGlow.Database
alias AfterGlow.Table
alias AfterGlow.Column
import Ecto.Query, only: [from: 2]
def make_final_query... | 27.565611 | 98 | 0.646914 |
33c3fddbed4fa76fedbb7a7f56d391afeadfafd0 | 246 | ex | Elixir | lib/code_corps_web/views/stripe_platform_card_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps_web/views/stripe_platform_card_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps_web/views/stripe_platform_card_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.StripePlatformCardView do
@moduledoc false
use CodeCorpsWeb, :view
use JaSerializer.PhoenixView
attributes [:brand, :exp_month, :exp_year, :token, :last4, :name]
has_one :user, type: "user", field: :user_id
end
| 24.6 | 67 | 0.747967 |
33c41239cd28d24480ca1234d033782a9498ed02 | 565 | exs | Elixir | test/optimization_test.exs | gyson/Numerix | b96a9946b2f9680ab0b24e89287f7b9bf4481d9e | [
"MIT"
] | null | null | null | test/optimization_test.exs | gyson/Numerix | b96a9946b2f9680ab0b24e89287f7b9bf4481d9e | [
"MIT"
] | null | null | null | test/optimization_test.exs | gyson/Numerix | b96a9946b2f9680ab0b24e89287f7b9bf4481d9e | [
"MIT"
] | null | null | null | defmodule Numerix.OptimizationTest do
use ExUnit.Case, async: true
use ExCheck
import Numerix.Optimization
@tag iterations: 10
property "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_, max_, _} in... | 28.25 | 84 | 0.683186 |
33c414cca32541b473572194a5c6d8083b967918 | 838 | exs | Elixir | mix.exs | TheGnarCo/api_auth_ex | e5325bcd83dc15621d34fc06492262c8461a6206 | [
"MIT"
] | 9 | 2017-08-26T19:20:34.000Z | 2021-11-15T10:46:40.000Z | mix.exs | TheGnarCo/api_auth_ex | e5325bcd83dc15621d34fc06492262c8461a6206 | [
"MIT"
] | 3 | 2018-01-23T17:27:10.000Z | 2018-02-19T16:49:46.000Z | mix.exs | TheGnarCo/api_auth_ex | e5325bcd83dc15621d34fc06492262c8461a6206 | [
"MIT"
] | 2 | 2018-01-09T16:05:11.000Z | 2018-10-07T14:15:17.000Z | defmodule ApiAuth.Mixfile do
use Mix.Project
def project do
[
app: :api_auth,
version: "0.3.0",
elixir: "~> 1.13",
description: "HMAC API Authentication",
source_url: "https://github.com/TheGnarCo/api_auth_ex/",
start_permanent: Mix.env == :prod,
deps: deps(),
pa... | 20.439024 | 71 | 0.539379 |
33c4209c6800fe82b3894dad768bace56f928f00 | 2,596 | ex | Elixir | ch06/todo_server.ex | fboyer/elixir_in_action | d0acdcfc781020f8737f14900d3e2b5263f6f65e | [
"MIT"
] | null | null | null | ch06/todo_server.ex | fboyer/elixir_in_action | d0acdcfc781020f8737f14900d3e2b5263f6f65e | [
"MIT"
] | null | null | null | ch06/todo_server.ex | fboyer/elixir_in_action | d0acdcfc781020f8737f14900d3e2b5263f6f65e | [
"MIT"
] | null | null | null | defmodule TodoServer do
use GenServer
def start() do
GenServer.start(__MODULE__, :ok)
end
def add_entry(pid, new_entry) do
GenServer.cast(pid, {:add_entry, new_entry})
end
def update_entry(pid, entry_id, updater_fun) do
GenServer.cast(pid, {:update_entry, entry_id, updater_fun})
end
def ... | 24.72381 | 85 | 0.670647 |
33c4232ac72048ea19ae78a96639c410789c7aa1 | 780 | ex | Elixir | apps/telegraph/lib/telegraph/morse_decode.ex | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | 1 | 2018-12-30T04:37:15.000Z | 2018-12-30T04:37:15.000Z | apps/telegraph/lib/telegraph/morse_decode.ex | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | apps/telegraph/lib/telegraph/morse_decode.ex | paulanthonywilson/morsey | b72d1eee54db1bcc8d0f2097c345da602995ce43 | [
"MIT"
] | null | null | null | defmodule Telegraph.MorseDecode do
@moduledoc """
Decodes `{:morse_character, list(:- | :.)}` events into events with alphanumeric characters
`{:telegraph_character, <<_::8>>}` events are sent to the receiver.
"""
use GenServer
defstruct receiver: nil, new_word_timeout: nil
@type t :: %__MODULE__{receive... | 26 | 93 | 0.683333 |
33c44373c41bb46fe8b79dcf31521e276da9d115 | 6,190 | ex | Elixir | apps/aetestframework/lib/worker.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 131 | 2018-03-10T01:35:56.000Z | 2021-12-27T13:44:41.000Z | apps/aetestframework/lib/worker.ex | aeternity/elixir-node | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 445 | 2018-03-12T09:46:17.000Z | 2018-12-12T09:52:07.000Z | apps/aetestframework/lib/worker.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 23 | 2018-03-12T12:01:28.000Z | 2022-03-06T09:22:17.000Z | defmodule Aetestframework.Worker do
@moduledoc """
Module for multi node sync test.
"""
require Logger
use GenServer
defstruct port_id: nil, node_port: nil, sync_port: nil
use ExConstructor
@default_timeout 20_000
@new_node_timeout 40_000
# Client API
def start_link(_args) do
GenServer.st... | 27.633929 | 92 | 0.606139 |
33c47b3fe9d2f01db042c28a7207d09777bd375f | 1,842 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_knowledge_operation_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_knowledge_operation_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_knowledge_operation_metadata.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... | 33.490909 | 131 | 0.742128 |
33c4b9898c63c39427488a954087acc1b22c9ba4 | 1,117 | exs | Elixir | config/config.exs | minhajuddin/kiwi | cd9be87caa6f82b9f322fcb3d1ee567a3cc9581b | [
"MIT"
] | null | null | null | config/config.exs | minhajuddin/kiwi | cd9be87caa6f82b9f322fcb3d1ee567a3cc9581b | [
"MIT"
] | null | null | null | config/config.exs | minhajuddin/kiwi | cd9be87caa6f82b9f322fcb3d1ee567a3cc9581b | [
"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.032258 | 73 | 0.750224 |
33c4c9b73c71d46fe1322daf8aa26f602174a3a6 | 320 | ex | Elixir | lib/shopix/shipping_cost_calculator.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | lib/shopix/shipping_cost_calculator.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | lib/shopix/shipping_cost_calculator.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule Shopix.ShippingCostCalculator do
alias Shopix.Schema.Order
def shipping_cost_amount(shipping_cost_default_amount) do
Money.new(shipping_cost_default_amount)
end
def shipping_cost_for(%Order{} = _order, shipping_cost_default_amount),
do: shipping_cost_amount(shipping_cost_default_amount)
end
| 29.090909 | 73 | 0.828125 |
33c4d03d2ef83c05638b1bdc0a97d4578ce41739 | 1,574 | ex | Elixir | lib/liquid_voting_auth_web/views/error_helpers.ex | jinjagit/auth | e5b8ec515229e7087d6c63a72d50d06120c0ad94 | [
"MIT"
] | null | null | null | lib/liquid_voting_auth_web/views/error_helpers.ex | jinjagit/auth | e5b8ec515229e7087d6c63a72d50d06120c0ad94 | [
"MIT"
] | 21 | 2020-09-28T06:36:30.000Z | 2022-02-07T10:04:36.000Z | lib/liquid_voting_auth_web/views/error_helpers.ex | jinjagit/auth | e5b8ec515229e7087d6c63a72d50d06120c0ad94 | [
"MIT"
] | null | null | null | defmodule LiquidVotingAuthWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
con... | 32.791667 | 85 | 0.670902 |
33c4ec2377d3ebf1c7aff8846492e586531294a0 | 566 | ex | Elixir | Chapter08/vocial-demo-chapter-8/lib/vocial/votes/poll.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 10 | 2018-05-13T14:53:05.000Z | 2021-11-08T13:10:44.000Z | Chapter09/vocial-demo-chapter-9/lib/vocial/votes/poll.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | null | null | null | Chapter09/vocial-demo-chapter-9/lib/vocial/votes/poll.ex | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 2 | 2019-04-23T10:54:33.000Z | 2019-04-27T15:47:07.000Z | defmodule Vocial.Votes.Poll do
use Ecto.Schema
import Ecto.Changeset
alias Vocial.Votes.Poll
alias Vocial.Votes.Option
alias Vocial.Accounts.User
schema "polls" do
field :title, :string
has_many :options, Option
belongs_to :user, User
has_one :image, Vocial.Votes.Image
has_many :vote_... | 20.962963 | 51 | 0.696113 |
33c4eeb45994c872c4922fd245b17da6c635b258 | 932 | exs | Elixir | test/domo/type_ensurer_factory/generator_cleanup_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | test/domo/type_ensurer_factory/generator_cleanup_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | test/domo/type_ensurer_factory/generator_cleanup_test.exs | cuevacreativa/Domo | 5f2f5ff3cb57dfe774408dcae6ccb5b79d1a3089 | [
"MIT"
] | null | null | null | defmodule Domo.TypeEnsurerFactory.GeneratorCleanupTest do
use Domo.FileCase
use Placebo
alias Domo.TypeEnsurerFactory.Generator
alias Domo.TypeEnsurerFactory.Generator.MatchFunRegistry
test "Generator should free resource by stopping MatchFunRegistry server after TypeEnsurer module generation" do
me = s... | 29.125 | 114 | 0.701717 |
33c4fcdbeac0c04535cd4324735bcb45dded6ba7 | 5,209 | exs | Elixir | spec/membrane_mp3_lame/lame_spec.exs | membraneframework/membrane-element-lame | fb8db6170ed8c4cb95432e941d707a1e87175780 | [
"Apache-2.0"
] | 2 | 2018-07-27T14:08:58.000Z | 2019-03-01T10:19:37.000Z | spec/membrane_mp3_lame/lame_spec.exs | membraneframework/membrane-element-lame | fb8db6170ed8c4cb95432e941d707a1e87175780 | [
"Apache-2.0"
] | 9 | 2018-10-15T07:58:53.000Z | 2020-10-22T13:51:43.000Z | spec/membrane_mp3_lame/lame_spec.exs | membraneframework/membrane-element-lame | fb8db6170ed8c4cb95432e941d707a1e87175780 | [
"Apache-2.0"
] | 1 | 2019-02-06T10:28:42.000Z | 2019-02-06T10:28:42.000Z | defmodule Membrane.MP3.Lame.EncoderSpec do
use ESpec, async: false
alias Membrane.MP3.Lame.Encoder.Native
alias Membrane.Element.CallbackContext, as: Ctx
@raw_frame_size 4608
describe ".handle_stopped_to_prepared/2" do
let :previous_state, do: :stopped
let :state, do: %{options: %Membrane.MP3.Lame.... | 32.354037 | 96 | 0.590324 |
33c4fd4b26c266c1d846fe822c12a44cd661a066 | 1,352 | exs | Elixir | test/wasm_modules_test.exs | jamen/wasm | 77a9124944e3d3de5c104cc34979d50dd617815e | [
"MIT"
] | 142 | 2017-06-13T21:24:41.000Z | 2021-04-01T11:51:50.000Z | test/wasm_modules_test.exs | jamen/elixir-wasm | 77a9124944e3d3de5c104cc34979d50dd617815e | [
"MIT"
] | 3 | 2017-06-13T20:40:57.000Z | 2018-08-12T07:49:01.000Z | test/wasm_modules_test.exs | elixir-wasm/wasm | 77a9124944e3d3de5c104cc34979d50dd617815e | [
"MIT"
] | 3 | 2017-10-12T02:07:19.000Z | 2018-03-12T14:34:20.000Z | defmodule WasmModulesTest do
use ExUnit.Case
test "simple module" do
assert_modules_equal(
{:module,
[
type_sec: [
{:func_type, [], [:i32]}
],
func_sec: [
{:type_index, 0}
],
export_sec: [
{:export, {:name, "test"}, {:fu... | 26.509804 | 85 | 0.505178 |
33c527e5be369b33ecb0182c666e510b7a5a1582 | 244 | ex | Elixir | lib/zaryn/p2p/message/transaction_chain_length.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/p2p/message/transaction_chain_length.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/p2p/message/transaction_chain_length.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.P2P.Message.TransactionChainLength do
@moduledoc """
Represents a message with the number of transactions from a chain
"""
defstruct [:length]
@type t :: %__MODULE__{
length: non_neg_integer()
}
end
| 22.181818 | 67 | 0.680328 |
33c52c8236007153eae718ddd0c8d8ac5bdf0f39 | 3,783 | exs | Elixir | scripts/send_notifications.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | scripts/send_notifications.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | scripts/send_notifications.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule SendNotifications do
@user_email "send-notifications-test@example.com"
@user_phone "555-555-5555"
@moduledoc """
Script to create and send a number of fake notifications for testing purposes.
Usage: mix run send_notifications.exs [options]
-h, --help Print this message
-c, --count... | 27.413043 | 89 | 0.646048 |
33c534b399cf64cd2a3467e2b79f40e6fb707c65 | 6,883 | ex | Elixir | clients/speech/lib/google_api/speech/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/api/projects.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... | 44.986928 | 669 | 0.67921 |
33c53f3c5404a5fb0b77a7abde41b0941cefdccc | 71 | ex | Elixir | apps/bob_versions_web/lib/bob_versions_web/views/layout_view.ex | LostKobrakai/hex-bobs-list | 2b42111d70b8c3b19624496d3a3e6708d7139c29 | [
"Apache-2.0"
] | 8 | 2020-01-27T12:01:20.000Z | 2020-12-14T20:30:44.000Z | apps/bob_versions_web/lib/bob_versions_web/views/layout_view.ex | LostKobrakai/hex-bobs-list | 2b42111d70b8c3b19624496d3a3e6708d7139c29 | [
"Apache-2.0"
] | 7 | 2020-01-08T10:33:59.000Z | 2021-05-27T12:47:41.000Z | apps/bob_versions_web/lib/bob_versions_web/views/layout_view.ex | LostKobrakai/hex-bobs-list | 2b42111d70b8c3b19624496d3a3e6708d7139c29 | [
"Apache-2.0"
] | null | null | null | defmodule BobVersionsWeb.LayoutView do
use BobVersionsWeb, :view
end
| 17.75 | 38 | 0.830986 |
33c5434605c652932903a5a699352fdc5e5357f7 | 1,082 | ex | Elixir | lib/live_web/channels/user_socket.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | lib/live_web/channels/user_socket.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | lib/live_web/channels/user_socket.ex | donkeybanana/s2i-elixir | c13796ec3e66bd372d08f08a36f5704d6da98015 | [
"MIT"
] | null | null | null | defmodule LiveWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", LiveWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie... | 30.055556 | 83 | 0.692237 |
33c568098f142a11deab3aa8167de160b0f38a32 | 2,971 | exs | Elixir | test/e2e/test/pattern_matching_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/e2e/test/pattern_matching_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/e2e/test/pattern_matching_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule HologramE2E.PatternMatchingTest do
use HologramE2E.TestCase, async: false
describe "cons operator" do
feature "match expression", %{session: session} do
session
|> visit("/e2e/pattern-matching/cons-operator")
|> click(css("#button_match_expression"))
|> assert_has(css("#text",... | 30.316327 | 75 | 0.606866 |
33c5a2db920e971ff1366784617c947b0bcc8cbb | 972 | ex | Elixir | lib/generate/du_state_change_complete.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/generate/du_state_change_complete.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/generate/du_state_change_complete.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.DUStateChangeComplete do
import XmlBuilder
use CWMP.Protocol.GenerateHelpers
def generate(req) do
element("cwmp:DUStateChangeComplete", [
element(:CommandKey,req.commandkey) ] ++
[ generateOperationsList(req.results) ] )
end
defp g... | 33.517241 | 94 | 0.709877 |
33c5e33944f59df4c0ee8378f98c5fe3be89bae2 | 302 | exs | Elixir | apps/object_storage/test/object_storage_web/views/layout_view_test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/object_storage/test/object_storage_web/views/layout_view_test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/object_storage/test/object_storage_web/views/layout_view_test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | defmodule Legendary.ObjectStorageWeb.LayoutViewTest do
use Legendary.ObjectStorageWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 33.555556 | 65 | 0.784768 |
33c5f15b7aed4962018af3c89ca048a6ab254287 | 212 | ex | Elixir | lib/bpxe/engine/data_object_reference.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/data_object_reference.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/data_object_reference.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | defmodule BPXE.Engine.DataObjectReference do
defstruct attrs: %{}, state: nil
use ExConstructor
import BPXE.Engine.BPMN
def add_data_state(pid, attrs) do
add_node(pid, "dataState", attrs)
end
end
| 19.272727 | 44 | 0.735849 |
33c620de0b47d525e3756828bb80f1b41825a0b1 | 310 | exs | Elixir | test/psso_web/live/page_live_test.exs | daskycodes/better_psso | 01954d9a84667ff22a4e5dc70856c2023f5e1276 | [
"MIT"
] | null | null | null | test/psso_web/live/page_live_test.exs | daskycodes/better_psso | 01954d9a84667ff22a4e5dc70856c2023f5e1276 | [
"MIT"
] | null | null | null | test/psso_web/live/page_live_test.exs | daskycodes/better_psso | 01954d9a84667ff22a4e5dc70856c2023f5e1276 | [
"MIT"
] | null | null | null | defmodule PssoWeb.PageLiveTest do
use PssoWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Better PSSO"
assert render(page_live) =~ "Better PSSO"
end
end
| 25.833333 | 60 | 0.719355 |
33c6813ac6d507b60e743f2bb656b745e81e1f0b | 146 | ex | Elixir | lib/bundlex/platform/macosx.ex | kianmeng/bundlex | c3477977ab1c46bc87c62fbade9b0a7c13c791be | [
"Apache-2.0"
] | 40 | 2018-06-10T20:55:32.000Z | 2021-12-12T22:08:25.000Z | lib/bundlex/platform/macosx.ex | kianmeng/bundlex | c3477977ab1c46bc87c62fbade9b0a7c13c791be | [
"Apache-2.0"
] | 40 | 2018-07-18T16:14:52.000Z | 2022-03-27T16:33:09.000Z | lib/bundlex/platform/macosx.ex | kianmeng/bundlex | c3477977ab1c46bc87c62fbade9b0a7c13c791be | [
"Apache-2.0"
] | 10 | 2018-08-02T06:07:42.000Z | 2022-03-25T15:41:14.000Z | defmodule Bundlex.Platform.MacOSX do
@moduledoc false
use Bundlex.Platform
def toolchain_module() do
Bundlex.Toolchain.XCode
end
end
| 16.222222 | 36 | 0.767123 |
33c70c52f2c42ac878da572976a7e96e19713f4f | 525 | exs | Elixir | test/companies_web/controllers/company_controller_test.exs | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 333 | 2019-05-18T14:01:17.000Z | 2022-03-22T05:07:40.000Z | test/companies_web/controllers/company_controller_test.exs | bglusman/elixir-companies | d6a728cf9136888367e261feb876c5d2a266ed57 | [
"MIT"
] | 89 | 2019-05-18T10:01:54.000Z | 2021-05-12T15:19:26.000Z | test/companies_web/controllers/company_controller_test.exs | envato/elixir-companies | 7488075d1a372c9ca8fa6603f93e384b73977526 | [
"MIT"
] | 33 | 2019-06-07T00:33:53.000Z | 2022-03-21T05:38:28.000Z | defmodule CompaniesWeb.CompanyControllerTest do
use CompaniesWeb.ConnCase
@moduletag capture_log: true
test "GET / without locale", %{conn: conn} do
conn = get(conn, "/")
assert redirected_to(conn, 302) == "/en"
end
test "GET / with en locale", %{conn: conn} do
conn = get(conn, "/en")
asser... | 25 | 62 | 0.653333 |
33c74371d17cbb2f90869ce68e80033ac07c4f63 | 3,329 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/policy.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 ... | 56.423729 | 603 | 0.751877 |
33c75f83ab781ba4f3608deffc7f3b5f279be77b | 20,236 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/policy.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/policy.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/policy.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... | 71.003509 | 586 | 0.749407 |
33c76379a856b6766b97973f0a48c128371b49af | 2,078 | ex | Elixir | web/controllers/admin/product_image_controller.ex | anndream/phoenix-commerce | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 229 | 2016-09-21T09:24:46.000Z | 2020-05-16T22:41:31.000Z | web/controllers/admin/product_image_controller.ex | sadiqmmm/ex-shop | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 3 | 2016-09-21T10:26:50.000Z | 2016-10-19T07:25:12.000Z | web/controllers/admin/product_image_controller.ex | sadiqmmm/ex-shop | 5e4471fa8fd1ac402d4df68fe7ccbcb0f7a53296 | [
"MIT"
] | 32 | 2016-09-22T05:19:05.000Z | 2019-11-01T04:07:13.000Z | defmodule Ap.Admin.ProductImageController do
use Ap.Web, :controller
alias Ap.Product
alias Ap.ProductImage
def new(conn, %{"product_id" => product_id}) do
product = Repo.get!(Product, product_id) |> Repo.preload(:product_images)
changeset = product
|> build_assoc(:product_images)
|> ProductI... | 31.014925 | 121 | 0.627045 |
33c7828f79b739ff438ea7278a8569225ad3615d | 2,026 | ex | Elixir | lib/mix/tasks/ecto/pow.ecto.install.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/mix/tasks/ecto/pow.ecto.install.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | lib/mix/tasks/ecto/pow.ecto.install.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Pow.Ecto.Install do
@shortdoc "Generates user schema module and migration file(s)"
@moduledoc """
Generates a user schema module and migration file(s).
mix pow.ecto.install -r MyApp.Repo
mix pow.ecto.install -r MyApp.Repo Accounts.Account accounts
See `Mix.Tasks.Pow.Ecto.Gen.... | 28.535211 | 125 | 0.71619 |
33c7984c1b43a3491170d4b3de439452859ea99a | 1,088 | ex | Elixir | lib/real_world/application.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | 1 | 2019-09-28T05:50:46.000Z | 2019-09-28T05:50:46.000Z | lib/real_world/application.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | lib/real_world/application.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | defmodule RealWorld.Application do
@moduledoc false
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
... | 32.969697 | 87 | 0.720588 |
33c79fbfd5e752f2c8dd792a6e3ee31eca800473 | 1,645 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_gcs_folder_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_gcs_folder_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_gcs_folder_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.634615 | 117 | 0.757447 |
33c7a3edd81b31d07fb70d3254be8ca669ec89a9 | 189 | exs | Elixir | priv/repo/migrations/20151223045759_add_is_admin_flag.exs | jbr/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 335 | 2015-06-19T18:27:51.000Z | 2020-11-25T19:00:27.000Z | priv/repo/migrations/20151223045759_add_is_admin_flag.exs | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 33 | 2015-06-24T17:00:01.000Z | 2017-11-23T09:53:29.000Z | priv/repo/migrations/20151223045759_add_is_admin_flag.exs | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 95 | 2015-06-30T22:18:00.000Z | 2022-01-14T13:47:10.000Z | defmodule PhoenixGuardian.Repo.Migrations.AddIsAdminFlag do
use Ecto.Migration
def change do
alter table(:users) do
add :is_admin, :boolean, default: false
end
end
end
| 18.9 | 59 | 0.724868 |
33c7d89269f0f7bb325ba5c466f96ddf05c015d2 | 705 | ex | Elixir | lib/canon_web/gettext.ex | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | lib/canon_web/gettext.ex | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | lib/canon_web/gettext.ex | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | defmodule CanonWeb.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 CanonWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
33c7e6c1b8f1e2557d84e751e78eaf0fbd7c176f | 1,498 | exs | Elixir | test/commands/trigger/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/trigger/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/trigger/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.Trigger.CreateTest do
use Cog.CommandCase, command_module: Cog.Commands.Trigger.Create
import Cog.Support.ModelUtilities, only: [user: 1]
test "creating a trigger (simple)" do
{:ok, payload} = new_req(args: ["foo", "echo stuff"])
|> send_req()
assert %{id: _,
... | 30.571429 | 77 | 0.501335 |
33c850da8888958d506b05111eaab7540ecf1417 | 917 | exs | Elixir | mix.exs | Astavie/sveltex | d32b1f379e6d7ceb93f76386b645f1697d26aa4c | [
"MIT"
] | null | null | null | mix.exs | Astavie/sveltex | d32b1f379e6d7ceb93f76386b645f1697d26aa4c | [
"MIT"
] | null | null | null | mix.exs | Astavie/sveltex | d32b1f379e6d7ceb93f76386b645f1697d26aa4c | [
"MIT"
] | null | null | null | defmodule Sveltex.MixProject do
use Mix.Project
def project do
[
app: :sveltex,
version: "1.1.2",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end
defp description do
"""
Embed Sv... | 19.510638 | 65 | 0.550709 |
33c85baa65dcc5b4e9eaee0ec8a595da11865b0c | 1,200 | exs | Elixir | test/grax/id/urn_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | 17 | 2021-01-06T12:11:28.000Z | 2021-05-26T00:39:37.000Z | test/grax/id/urn_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | test/grax/id/urn_test.exs | rdf-elixir/grax | 9628f66d7961cbe62fb38803cb172e67006093af | [
"MIT"
] | null | null | null | defmodule Grax.Id.UrnTest do
use Grax.TestCase
alias Grax.Id
alias Example.{IdSpecs, User, Post, Comment}
test "URN ids" do
assert {:ok, %RDF.IRI{value: "urn:example:John%20Doe"}} =
IdSpecs.UrnIds.expected_id_schema(User)
|> Id.Schema.generate_id(Example.user(EX.User0))
asse... | 34.285714 | 99 | 0.623333 |
33c8701ef9e3a95c62fb49569fc1dd2a99c8f2cd | 2,166 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/region_autoscaler_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/region_autoscaler_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/region_autoscaler_list_warning.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.867925 | 247 | 0.7253 |
33c890dc7e08c54ffd1e0a9b83daeac481abf2cf | 3,180 | exs | Elixir | test/basic_web/controllers/user_session_controller_test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | test/basic_web/controllers/user_session_controller_test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | test/basic_web/controllers/user_session_controller_test.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule BasicWeb.UserSessionControllerTest do
use BasicWeb.ConnCase, async: true
import Basic.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/log_in" do
test "renders log in page", %{conn: conn} do
conn = get(conn, Routes.user_session_path(conn, :new))
respo... | 32.121212 | 89 | 0.599686 |
33c89d471cd96e2a933399a5df2e94d08be81768 | 1,260 | exs | Elixir | mix.exs | DarkMarmot/sandbox_war | da10a1dc4589d115d05a9972725673f08cd9bb25 | [
"Apache-2.0"
] | null | null | null | mix.exs | DarkMarmot/sandbox_war | da10a1dc4589d115d05a9972725673f08cd9bb25 | [
"Apache-2.0"
] | null | null | null | mix.exs | DarkMarmot/sandbox_war | da10a1dc4589d115d05a9972725673f08cd9bb25 | [
"Apache-2.0"
] | 1 | 2019-08-19T14:33:17.000Z | 2019-08-19T14:33:17.000Z | defmodule LuaChat.MixProject do
use Mix.Project
def project do
[
app: :lua_chat,
version: "0.1.0",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
e... | 25.2 | 73 | 0.576984 |
33c89d70c07201aac29c9f8e54e624b52d54b450 | 73 | ex | Elixir | lib/pointing_party_web/views/card_view.ex | smarinskaya/pointing-party | 9259d662eb460d9fbd65655f61ed1d78ad69eede | [
"Apache-2.0"
] | 11 | 2019-07-27T19:22:22.000Z | 2020-11-25T05:57:07.000Z | lib/pointing_party_web/views/card_view.ex | smarinskaya/pointing-party | 9259d662eb460d9fbd65655f61ed1d78ad69eede | [
"Apache-2.0"
] | 3 | 2020-04-30T11:45:19.000Z | 2021-05-10T10:22:58.000Z | lib/pointing_party_web/views/card_view.ex | drews256/planning_party_ex | 8fb8116b0fa321d86fd5908db9c6218a56d79b0e | [
"Apache-2.0"
] | 2 | 2019-08-29T05:18:33.000Z | 2019-10-05T00:15:39.000Z | defmodule PointingPartyWeb.CardView do
use PointingPartyWeb, :view
end
| 18.25 | 38 | 0.835616 |
33c8bbea364b031122c88a16fcbca3cd9225e1cd | 1,007 | ex | Elixir | lib/twittex.ex | almightycouch/twittex | 5643b4e6caadd81009944c97c687b32702c77ac2 | [
"MIT"
] | 56 | 2015-12-05T21:25:50.000Z | 2020-03-08T13:06:08.000Z | lib/twittex.ex | almightycouch/twittex | 5643b4e6caadd81009944c97c687b32702c77ac2 | [
"MIT"
] | 7 | 2016-11-22T16:40:12.000Z | 2018-04-11T13:13:39.000Z | lib/twittex.ex | almightycouch/twittex | 5643b4e6caadd81009944c97c687b32702c77ac2 | [
"MIT"
] | 10 | 2016-01-28T14:24:09.000Z | 2018-09-20T12:29:16.000Z | defmodule Twittex do
@moduledoc """
Twitter client with OAuth1 and OAuth2 support.
"""
defdelegate home_timeline(options \\ []), to: Twittex.Client
defdelegate home_timeline!(options \\ []), to: Twittex.Client
defdelegate mentions_timeline(options \\ []), to: Twittex.Client
defdelegate mentions_timeline... | 37.296296 | 74 | 0.708044 |
33c8e1488da0fd58075a6c7841c453920c01d18c | 356 | ex | Elixir | examples/schemas/hello.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 2 | 2021-08-05T09:08:49.000Z | 2021-08-14T22:38:18.000Z | examples/schemas/hello.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | null | null | null | examples/schemas/hello.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 1 | 2021-12-05T03:03:05.000Z | 2021-12-05T03:03:05.000Z | defmodule Examples.Schemas.HelloExample do
use ExDBus.Schema
node do
interface "org.example.HelloInterface" do
method "SayHello" do
arg("name", "s", :in)
arg("message", "s", :out)
callback(&__MODULE__.say_hello/2)
end
end
end
def say_hello(name, _) do
{:ok, [:st... | 19.777778 | 45 | 0.598315 |
33c8fbd0b45e7a98b9adcc7fdbd7d7974e5d9a7d | 1,062 | ex | Elixir | lib/protox/default.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | 176 | 2017-02-01T13:09:25.000Z | 2022-03-18T02:36:17.000Z | lib/protox/default.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | 94 | 2020-07-20T05:54:51.000Z | 2022-03-09T04:13:03.000Z | lib/protox/default.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | 19 | 2017-02-13T09:17:14.000Z | 2022-02-22T09:29:18.000Z | defmodule Protox.Default do
@moduledoc """
Default values of Protocol Buffers types.
Note that generated structs contain a default/1 function to return the default
value of a field using its name.
"""
@doc """
Returns the default value of a Protocol Buffer type specified with an atom.
## Examples
... | 27.947368 | 85 | 0.645951 |
33c90defc3571e1e4aeb6c411299cabebbfec444 | 1,525 | ex | Elixir | elixir/lib/homework_web/schemas/merchants_schema.ex | Tyler-pollick/web-homework | 758220304f591ab209442f52d8882717a8330833 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/merchants_schema.ex | Tyler-pollick/web-homework | 758220304f591ab209442f52d8882717a8330833 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/merchants_schema.ex | Tyler-pollick/web-homework | 758220304f591ab209442f52d8882717a8330833 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schemas.MerchantsSchema do
@moduledoc """
Defines the graphql schema for merchants.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.MerchantsResolver
object :merchant do
field(:id, non_null(:id))
field(:name, :string)
field(:description, :string)
field(:i... | 24.596774 | 51 | 0.671475 |
33c932cde13d0365ac7a949fad8a7c4a2092bc05 | 1,138 | exs | Elixir | mix.exs | chaehb/ex_gremlin | 209e00f8dceeb80d0d3765e99b7387285ff103ce | [
"MIT"
] | 1 | 2021-05-10T06:10:54.000Z | 2021-05-10T06:10:54.000Z | mix.exs | chaehb/ex_gremlin | 209e00f8dceeb80d0d3765e99b7387285ff103ce | [
"MIT"
] | null | null | null | mix.exs | chaehb/ex_gremlin | 209e00f8dceeb80d0d3765e99b7387285ff103ce | [
"MIT"
] | null | null | null | defmodule ExGremlin.MixProject do
use Mix.Project
def project do
[
app: :ex_gremlin,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/chaehb/ex_... | 21.884615 | 76 | 0.551845 |
33c93d2ff6b75b71081a4f1fde9ebb72c78b53a1 | 555 | ex | Elixir | lib/cabbage/feature/parameter_type.ex | TurtleAI/cabbage | a6a5b6b03c13231535d16eccad6d4bc343fb0763 | [
"MIT"
] | 113 | 2017-01-26T21:42:22.000Z | 2022-02-15T02:19:25.000Z | lib/cabbage/feature/parameter_type.ex | TurtleAI/cabbage | a6a5b6b03c13231535d16eccad6d4bc343fb0763 | [
"MIT"
] | 76 | 2017-01-24T19:53:12.000Z | 2021-11-17T13:23:51.000Z | lib/cabbage/feature/parameter_type.ex | civilcode/cabbage | bdb14a8efae86bcf437180ce2f7193a1f431742d | [
"MIT"
] | 30 | 2017-01-22T21:43:35.000Z | 2022-02-09T17:21:38.000Z | defmodule Cabbage.Feature.ParameterType do
@moduledoc false
# Function to provide the regular expression that maps to a type used in a Cucumber expression.
# For instance, in the cucumber expression `Given I have {count:int} rows`, the parameter
# `count` is of type `int`.
@spec regex_for(String.t()) :: Rege... | 26.428571 | 97 | 0.610811 |
33c962472ae1220c9427efca843ea5aa740a512f | 1,091 | ex | Elixir | server/lib/prepply_web/channels/user_socket.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | 2 | 2021-03-04T15:21:14.000Z | 2021-03-21T13:43:07.000Z | server/lib/prepply_web/channels/user_socket.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | null | null | null | server/lib/prepply_web/channels/user_socket.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | null | null | null | defmodule PrepplyWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PrepplyWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channe... | 30.305556 | 83 | 0.694775 |
33c964d21dd61b1846e78f3845c86a9444cceed4 | 241 | ex | Elixir | lib/phone/es/po.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/po.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/po.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | defmodule Phone.ES.PO do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(34)(986|886)(.{6})/
def area_name, do: "Pontevedra"
def area_type, do: "province"
def area_abbreviation, do: "PO"
matcher(["34986", "34886"])
end
| 18.538462 | 41 | 0.651452 |
33c975703a78c71a7ba4523066b0fd8ade54b2c0 | 338 | exs | Elixir | elixir/space-age/space_age.exs | parkertm/exercism | b6596dfc63129f7aab1ccad758e40e1deeb1d223 | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/space-age/space_age.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/space-age/space_age.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | defmodule SpaceAge do
@type planet :: :mercury | :venus | :earth | :mars | :jupiter
| :saturn | :uranus | :neptune
@doc """
Return the number of years a person that has lived for 'seconds' seconds is
aged on 'planet'.
"""
@spec age_on(planet, pos_integer) :: float
def age_on(planet, secon... | 24.142857 | 77 | 0.630178 |
33c9a3afc45d0031442dd8d6374db414035071a4 | 253 | ex | Elixir | test/support/test_module.ex | felix-starman/double | d2af3b254e2dade4a0a428eb8b679a71676f5c92 | [
"MIT"
] | 43 | 2017-01-11T17:23:05.000Z | 2021-10-05T08:24:45.000Z | test/support/test_module.ex | felix-starman/double | d2af3b254e2dade4a0a428eb8b679a71676f5c92 | [
"MIT"
] | 21 | 2017-01-11T19:19:24.000Z | 2021-06-21T05:07:39.000Z | test/support/test_module.ex | salemove/double | 04f2b48b2de5870ee4642af9e7984b05a850f501 | [
"MIT"
] | 6 | 2017-04-27T15:18:29.000Z | 2021-09-26T19:20:02.000Z | defmodule TestModule do
def io_puts(x), do: x
def sleep(x), do: x
def process, do: nil
def process(x), do: x
def process(x, y, z), do: {x, y, z}
def another_function, do: nil
def another_function(x), do: x
def send(a, b), do: {a, b}
end
| 23 | 37 | 0.620553 |
33c9c69175e2a5d76a25ecf74e22a8fc1aaa2821 | 1,139 | exs | Elixir | apps/logger_backend/config/config.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 4 | 2018-11-09T16:57:06.000Z | 2021-03-02T22:57:17.000Z | apps/logger_backend/config/config.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 29 | 2018-10-26T08:29:37.000Z | 2018-12-09T21:02:05.000Z | apps/logger_backend/config/config.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"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.741935 | 73 | 0.753292 |
33c9d8f15f9ed7cc2bdc7096c93e0b51f6aa4688 | 299 | ex | Elixir | apps/ui/web/controllers/sensor_controller.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | 2 | 2016-11-19T13:27:28.000Z | 2016-11-25T22:00:05.000Z | apps/ui/web/controllers/sensor_controller.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | null | null | null | apps/ui/web/controllers/sensor_controller.ex | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | null | null | null | defmodule Ui.SensorController do
use Ui.Web, :controller
require Logger
@hw Application.get_env(:ui, :sensor_hw)
def index(conn, _params) do
temperature = @hw.get_temperature()
humidity = @hw.get_humidity()
json(conn, %{temperature: temperature, humidity: humidity})
end
end
| 23 | 63 | 0.715719 |
33c9ef75e99f83a7254d1c9a6b2c8be5b9ec21a5 | 1,813 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/list_locations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/list_locations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1beta1/model/list_locations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.26 | 171 | 0.744071 |
33c9f35323bf03c092ce61addaed7c2f30f0d429 | 818 | ex | Elixir | lib/commodity_api/iam/user/address/invalidation/invalidation_policy.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/iam/user/address/invalidation/invalidation_policy.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/iam/user/address/invalidation/invalidation_policy.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 37.181818 | 77 | 0.732274 |
33ca1e8df2a5dc4fdaa72b7818a68672dcdefc5f | 138 | exs | Elixir | apps/evm/test/evm/interface/mock/mock_block_interface_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 105 | 2017-08-02T07:55:17.000Z | 2021-12-23T21:49:57.000Z | apps/evm/test/evm/interface/mock/mock_block_interface_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 19 | 2017-08-21T22:28:39.000Z | 2018-05-01T13:33:12.000Z | apps/evm/test/evm/interface/mock/mock_block_interface_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 17 | 2017-08-10T15:50:47.000Z | 2021-11-19T04:29:59.000Z | defmodule EVM.Interface.Mock.MockBlockInterfaceTest do
use ExUnit.Case, async: true
doctest EVM.Interface.Mock.MockBlockInterface
end
| 27.6 | 54 | 0.833333 |
33ca3e701e3bd5ace1b8c33172f10069f4300497 | 1,248 | ex | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/test/support/data_case.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/test/support/data_case.ex | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_api/test/support/data_case.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2018-02-15T19:08:23.000Z | 2018-09-28T13:49:27.000Z | <% MixTemplates.ignore_file_unless(assigns[:ecto] != nil) %>
defmodule <%= @project_name_camel_case %>API.DataCase do
@moduledoc """
An ExUnit.CaseTemplate which starts up `<%= @project_name_camel_case %>.Repo` properly
so that tests can be run which call it.
"""
use ExUnit.CaseTemplate
using do
quote... | 29.023256 | 93 | 0.664263 |
33ca5f0f54d23041bdd891ef4de477ee13a047a8 | 360 | ex | Elixir | graphical/lib/graphical/posts/post.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical/posts/post.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical/posts/post.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule Graphical.Posts.Post do
use Ecto.Schema
import Ecto.Changeset
schema "posts" do
field :body, :string
field :title, :string
field :user_id, :id
timestamps()
end
@doc false
def changeset(post, attrs) do
post
|> cast(attrs, [:title, :body, :user_id])
|> validate_requir... | 17.142857 | 51 | 0.641667 |
33ca70b16b9909bb212a1f5c2e378cab86cae47a | 916 | ex | Elixir | lib/mix/tasks/pow_assent.install.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 193 | 2019-10-30T00:58:21.000Z | 2022-03-09T20:26:37.000Z | lib/mix/tasks/pow_assent.install.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 82 | 2019-10-29T20:19:38.000Z | 2022-03-22T04:09:27.000Z | lib/mix/tasks/pow_assent.install.ex | mitcheaton1/pow_assent | f3e9e6cc7dd16a3f2d9add885bd160d227abb713 | [
"MIT"
] | 28 | 2019-10-31T12:38:10.000Z | 2021-11-01T18:05:23.000Z | defmodule Mix.Tasks.PowAssent.Install do
@shortdoc "Installs PowAssent"
@moduledoc """
Will generate PowAssent migration file.
mix pow_assent.install -r MyApp.Repo
mix pow_assent.install -r MyApp.Repo Accounts.Identity identities
See `Mix.Tasks.PowAssent.Ecto.Install` for more.
"""
use Mix.T... | 21.302326 | 118 | 0.689956 |
33ca85ca58ecbdec110cd7d85100579aaebac0f3 | 715 | exs | Elixir | test/api/operator/sub_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | test/api/operator/sub_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | test/api/operator/sub_test.exs | emeric-martineau/cloud_stack_lang | 50c9164c06b2a683d3de84c493aaddd3e55de8b8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Cloud Stack Lang Contributors
#
# 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 ag... | 35.75 | 74 | 0.772028 |
33ca8be77c4528ce1fcca667b11248afa8a80fdd | 41 | exs | Elixir | config/dev.exs | silicium14/peertube_index | 241264a2a20f3ad9088f667bc8313a98b52901c2 | [
"MIT"
] | 31 | 2019-06-17T08:55:15.000Z | 2022-01-15T19:08:03.000Z | config/dev.exs | silicium14/peertube_index | 241264a2a20f3ad9088f667bc8313a98b52901c2 | [
"MIT"
] | 7 | 2019-07-03T23:52:49.000Z | 2020-04-12T22:39:29.000Z | config/dev.exs | silicium14/peertube_index | 241264a2a20f3ad9088f667bc8313a98b52901c2 | [
"MIT"
] | 1 | 2020-04-06T15:31:33.000Z | 2020-04-06T15:31:33.000Z | use Mix.Config
import_config "prod.exs"
| 10.25 | 24 | 0.780488 |
33cac91485835334e600327960ea2a69c38cb587 | 3,145 | ex | Elixir | lib/cldr/timezone.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 179 | 2019-06-16T09:16:00.000Z | 2022-03-30T04:04:55.000Z | lib/cldr/timezone.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 46 | 2019-06-09T02:35:58.000Z | 2022-03-08T10:39:08.000Z | lib/cldr/timezone.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 14 | 2020-03-03T16:35:50.000Z | 2022-02-27T14:01:40.000Z | defmodule Cldr.Timezone do
@moduledoc """
Functions to map between the CLDR short time zone code and the
IANA timezone names.
The Unicode [locale](https://unicode.org/reports/tr35/#Locale)
[extension U](https://unicode.org/reports/tr35/#u_Extension)
allows the specification of the time zone requested for t... | 27.831858 | 98 | 0.57806 |
33caeb220b63230894e93a911a745088857f228c | 449 | exs | Elixir | test/elixir_search_extractor_web/views/layout_view_test.exs | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | test/elixir_search_extractor_web/views/layout_view_test.exs | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | 32 | 2021-05-24T06:52:33.000Z | 2021-07-19T05:04:40.000Z | test/elixir_search_extractor_web/views/layout_view_test.exs | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | defmodule ElixirSearchExtractorWeb.LayoutViewTest do
use ElixirSearchExtractorWeb.ConnCase, async: true
alias ElixirSearchExtractorWeb.LayoutView
describe "body_class_name/1" do
test "returns the CSS classes for the document body" do
conn =
get(build_conn(), Routes.user_registration_path(Elixi... | 29.933333 | 97 | 0.768374 |
33caf95fca03337c584109803bf10162296510da | 842 | ex | Elixir | test/support/storage_case.ex | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | test/support/storage_case.ex | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | test/support/storage_case.ex | scudelletti/eventstore | 9f795d45f1a8ca4c72d0614df24586dcb2ecfa12 | [
"MIT"
] | null | null | null | defmodule EventStore.StorageCase do
use ExUnit.CaseTemplate
alias EventStore.Config
alias EventStore.Registration
alias EventStore.Serializer
alias EventStore.Storage
@event_store TestEventStore
setup_all do
config = Config.parsed(@event_store, :eventstore)
registry = Registration.registry(@eve... | 22.756757 | 60 | 0.718527 |
33cb304bf7e8eed5c6d4829e145076192797d85d | 2,072 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_big_query_table.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_big_query_table.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_big_query_table.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... | 35.724138 | 132 | 0.719595 |
33cb51759e6d4d7040465a52f5d70c1a8160c729 | 1,012 | ex | Elixir | lib/ink/encoder.ex | spatrik/ink | e187777a022033d698eab594e4eeed66151e2f14 | [
"MIT"
] | 57 | 2017-04-17T09:40:48.000Z | 2022-02-07T09:04:13.000Z | lib/ink/encoder.ex | spatrik/ink | e187777a022033d698eab594e4eeed66151e2f14 | [
"MIT"
] | 40 | 2017-07-13T08:45:56.000Z | 2022-03-31T08:08:25.000Z | lib/ink/encoder.ex | spatrik/ink | e187777a022033d698eab594e4eeed66151e2f14 | [
"MIT"
] | 20 | 2017-07-12T08:41:34.000Z | 2022-03-30T18:52:41.000Z | defmodule Ink.Encoder do
@moduledoc """
Responsible for encoding any value to JSON. Uses `Jason` for the JSON
encoding, but converts values that are not handled by `Jason` before that,
like tuples or PIDs.
"""
@doc """
Accepts a map and recursively replaces all JSON incompatible values with JSON
encoda... | 25.3 | 79 | 0.668972 |
33cb6d3e8401aff12b0f832ed56dc0de5e2ab0d2 | 741 | ex | Elixir | lib/hologram/compiler/transformers/anonymous_function_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/transformers/anonymous_function_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/transformers/anonymous_function_type_transformer.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.AnonymousFunctionTypeTransformer do
alias Hologram.Compiler.{Context, Helpers, Transformer}
alias Hologram.Compiler.IR.AnonymousFunctionType
def transform({:fn, _, [{:->, _, [params, body]}]}, %Context{} = context) do
params = Helpers.transform_params(params, context)
arity = ... | 43.588235 | 128 | 0.763833 |
33cb7e12cff120957e030474b9f68a574adc8ad2 | 1,970 | ex | Elixir | lib/livebook/content_loader.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook/content_loader.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook/content_loader.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.ContentLoader do
@moduledoc false
alias Livebook.Utils.HTTP
@doc """
Rewrite known URLs, so that they point to plain text file rather than HTML.
Currently the rewerites handle:
* GitHub files
* Gist files
"""
@spec rewrite_url(String.t()) :: String.t()
def rewrite_url(url)... | 24.02439 | 85 | 0.555838 |
33cb9c3bea1999c73ff2c604981deb2b62419095 | 3,364 | ex | Elixir | deps/timex/lib/calendar/julian.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/timex/lib/calendar/julian.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/timex/lib/calendar/julian.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | defmodule Timex.Calendar.Julian do
@moduledoc """
This module contains functions for working with dates in the Julian calendar.
"""
require Bitwise
import Timex.Macros
alias Timex.Types
@doc """
Returns the Julian day number for the given Erlang date (gregorian)
The Julian date (JD) is a continuous ... | 37.377778 | 110 | 0.662901 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.