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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08f5c0d5a8a021c7b14840229c685ded6c80410b | 153 | exs | Elixir | test/rp_middleware_test.exs | DriesDeBackker/rp-middleware | 7066c584236cfb4894dfe40e0a81309e6d8dd1da | [
"MIT"
] | null | null | null | test/rp_middleware_test.exs | DriesDeBackker/rp-middleware | 7066c584236cfb4894dfe40e0a81309e6d8dd1da | [
"MIT"
] | null | null | null | test/rp_middleware_test.exs | DriesDeBackker/rp-middleware | 7066c584236cfb4894dfe40e0a81309e6d8dd1da | [
"MIT"
] | null | null | null | defmodule RpMiddlewareTest do
use ExUnit.Case
doctest RpMiddleware
test "greets the world" do
assert RpMiddleware.hello() == :world
end
end
| 17 | 41 | 0.738562 |
08f5c737e6175ab47313cbb7ac08e3ea7c0ab804 | 1,133 | exs | Elixir | config/config.exs | mdoza/elixir_math | f814faeb9d4d09f8b5c6d71bb09b899fa615fd63 | [
"MIT"
] | 1 | 2019-08-02T22:14:39.000Z | 2019-08-02T22:14:39.000Z | config/config.exs | mdoza/elixir_math | f814faeb9d4d09f8b5c6d71bb09b899fa615fd63 | [
"MIT"
] | null | null | null | config/config.exs | mdoza/elixir_math | f814faeb9d4d09f8b5c6d71bb09b899fa615fd63 | [
"MIT"
] | 1 | 2020-09-16T08:11:22.000Z | 2020-09-16T08:11:22.000Z | # 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.548387 | 73 | 0.751986 |
08f5d3c4bb262a5199e47734ad0fbff0ba98e67d | 578 | exs | Elixir | test/views/error_view_test.exs | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | defmodule Speakeasy.ErrorViewTest do
use Speakeasy.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Speakeasy.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.htm... | 26.272727 | 67 | 0.681661 |
08f5d4abaebed9668ae6f72c185b06bec08228cd | 1,551 | exs | Elixir | test/assertions/be_type_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | test/assertions/be_type_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | test/assertions/be_type_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule BeTypeTest do
use ExUnit.Case, async: true
defmodule SomeSpec do
use ESpec
context "Success" do
it do: :atom |> should(be_atom())
it do: "binary" |> should(be_binary())
it do: <<102>> |> should(be_bitstring())
it do: true |> should(be_boolean())
it do: 1.2 |> should... | 30.411765 | 85 | 0.578337 |
08f5d597a0deb35e2a9a31dba470447354f2dd9a | 829 | ex | Elixir | lib/captain_hook/clients/response.ex | annatel/captain_hook | e16a01107d11756d37d96d1e9092c17d9aa9260b | [
"MIT"
] | 4 | 2020-11-13T11:27:24.000Z | 2021-08-19T17:28:53.000Z | lib/captain_hook/clients/response.ex | annatel/captain_hook | e16a01107d11756d37d96d1e9092c17d9aa9260b | [
"MIT"
] | null | null | null | lib/captain_hook/clients/response.ex | annatel/captain_hook | e16a01107d11756d37d96d1e9092c17d9aa9260b | [
"MIT"
] | null | null | null | defmodule CaptainHook.Clients.Response do
@moduledoc false
defstruct client_error_message: nil,
request_body: nil,
request_headers: nil,
request_method: nil,
request_url: nil,
requested_at: nil,
response_body: nil,
response_http_st... | 29.607143 | 45 | 0.568154 |
08f5d94a18a9eafa248f94f74539356ff2657bb6 | 5,166 | exs | Elixir | apps/snitch_core/test/data/model/line_item_test.exs | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/snitch_core/test/data/model/line_item_test.exs | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_core/test/data/model/line_item_test.exs | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule Snitch.Data.Model.LineItemTest do
use ExUnit.Case, async: true
use Snitch.DataCase
import Mox, only: [expect: 3, verify_on_exit!: 1]
import Snitch.Factory
alias Snitch.Data.Model.{LineItem, Order}
alias Snitch.Data.Model.GeneralConfiguration, as: GCModel
describe "with valid params" do
se... | 27.04712 | 98 | 0.637437 |
08f5df5f48fe81de07befb0a1277c150ac77a1e1 | 527 | ex | Elixir | lib/error_response.ex | karlosmid/exkeycdn | 4f8a756b2ea7b5bcb2d2821509250004ed8850ea | [
"MIT"
] | null | null | null | lib/error_response.ex | karlosmid/exkeycdn | 4f8a756b2ea7b5bcb2d2821509250004ed8850ea | [
"MIT"
] | null | null | null | lib/error_response.ex | karlosmid/exkeycdn | 4f8a756b2ea7b5bcb2d2821509250004ed8850ea | [
"MIT"
] | null | null | null | defmodule ExKeyCDN.ErrorResponse do
@moduledoc """
A general purpose response wrapper that is built for any failed API
response.
See the following pages for details about the various responses:
* https://www.keycdn.com/api#errors
"""
use ExKeyCDN.Construction
@type t :: %__MODULE__{
errors... | 21.08 | 69 | 0.590133 |
08f5e47b09550e6ef56f3ce9b14feb23ad87a009 | 1,297 | ex | Elixir | lib/ptr_web/controllers/session_controller.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | lib/ptr_web/controllers/session_controller.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | lib/ptr_web/controllers/session_controller.ex | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule PtrWeb.SessionController do
use PtrWeb, :controller
plug(:authenticate when action in [:delete])
def new(%{assigns: %{current_session: session}} = conn, _params)
when is_map(session) do
redirect(conn, to: Routes.root_path(conn, :index))
end
def new(conn, _params) do
render(conn, "ne... | 27.595745 | 88 | 0.635312 |
08f5ef3a87babae25319c7596e420f8843951aa6 | 1,677 | ex | Elixir | lib/yum/util.ex | ZURASTA/yum | 132cb79ab328d2e4063d581f79fde0ff4243eb02 | [
"BSD-2-Clause"
] | null | null | null | lib/yum/util.ex | ZURASTA/yum | 132cb79ab328d2e4063d581f79fde0ff4243eb02 | [
"BSD-2-Clause"
] | 4 | 2017-08-02T08:38:18.000Z | 2017-12-23T12:21:02.000Z | lib/yum/util.ex | ZURASTA/yum | 132cb79ab328d2e4063d581f79fde0ff4243eb02 | [
"BSD-2-Clause"
] | 3 | 2017-07-25T10:17:28.000Z | 2017-10-04T05:46:01.000Z | defmodule Yum.Util do
@moduledoc """
Common utilities for interacting with the data.
"""
defp create_parent_ref([_|groups]), do: create_parent_ref(groups, "")
defp create_parent_ref([_], ""), do: nil
defp create_parent_ref([_], ref), do: ref
defp create_parent_ref([current|groups], ref),... | 31.641509 | 101 | 0.595707 |
08f6009c265b71e6b26bf7f0eeef0f9c732d0ca5 | 3,316 | exs | Elixir | test/wunderground/conditions_test.exs | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 2 | 2017-08-23T21:48:07.000Z | 2017-10-16T21:35:36.000Z | test/wunderground/conditions_test.exs | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 8 | 2017-08-23T10:02:35.000Z | 2017-09-03T11:35:36.000Z | test/wunderground/conditions_test.exs | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 1 | 2021-06-22T15:02:15.000Z | 2021-06-22T15:02:15.000Z | defmodule Wunderground.ConditionsTest do
@moduledoc false
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Wunderground.Conditions
@not_found {:not_found, "No cities match your search query"}
@station_offline {:station_offline, "The station you're looking for either doesn... | 28.834783 | 124 | 0.635103 |
08f693ca5f84cf1fcc05f997fd6243e88d54b30d | 377 | ex | Elixir | lib/codes/codes_a55.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a55.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a55.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_A55 do
alias IcdCode.ICDCode
def _A55 do
%ICDCode{full_code: "A55",
category_code: "A55",
short_code: "",
full_name: "Chlamydial lymphogranuloma (venereum)",
short_name: "Chlamydial lymphogranuloma (venereum)",
category_name: "Chla... | 23.5625 | 64 | 0.647215 |
08f69f28fe91e0b5aebed99c3c82c4aa5be97142 | 1,492 | ex | Elixir | lib/tune/spotify/schema/playlist.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 1 | 2021-07-09T11:57:41.000Z | 2021-07-09T11:57:41.000Z | lib/tune/spotify/schema/playlist.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | null | null | null | lib/tune/spotify/schema/playlist.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | 2 | 2021-07-09T11:57:45.000Z | 2022-01-06T23:37:19.000Z | defmodule Tune.Spotify.Schema.Playlist do
@moduledoc """
Represents a playlist.
"""
alias Tune.{Duration, Spotify.Schema}
alias Schema.{Album, Track}
@enforce_keys [
:id,
:uri,
:name,
:description,
:thumbnails,
:tracks
]
defstruct [
:id,
:uri,
:name,
:descriptio... | 21.014085 | 92 | 0.590483 |
08f6c0f18a13d82ad43764c9418fa32327925eae | 671 | exs | Elixir | mix.exs | milangoda/tesseract-elixir | b2ab56f8a91de63ba1c54ba5276081b72613c33e | [
"MIT"
] | 17 | 2016-06-14T12:46:37.000Z | 2020-09-19T15:09:51.000Z | mix.exs | milangoda/tesseract-elixir | b2ab56f8a91de63ba1c54ba5276081b72613c33e | [
"MIT"
] | null | null | null | mix.exs | milangoda/tesseract-elixir | b2ab56f8a91de63ba1c54ba5276081b72613c33e | [
"MIT"
] | 4 | 2016-09-10T05:46:38.000Z | 2018-10-08T11:52:53.000Z | defmodule Tesseract.Mixfile do
use Mix.Project
def project do
[app: :tesseract,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for ... | 20.333333 | 77 | 0.611028 |
08f6d0e532c6bba2ce21220255ed499076599c45 | 1,035 | ex | Elixir | test/support/conn_case.ex | korczis/tosh | dc197f223b460e5769ceaa47d8058202aeab66b8 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | korczis/tosh | dc197f223b460e5769ceaa47d8058202aeab66b8 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | korczis/tosh | dc197f223b460e5769ceaa47d8058202aeab66b8 | [
"MIT"
] | null | null | null | defmodule ToshWeb.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 |
08f6effa997d54709cdbcaeecfc10510c83f703b | 2,416 | ex | Elixir | lib/ex_oneroster/academic_sessions/academic_sessions.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | lib/ex_oneroster/academic_sessions/academic_sessions.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | lib/ex_oneroster/academic_sessions/academic_sessions.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.AcademicSessions do
@moduledoc """
The boundary for the AcademicSessions system.
"""
import Ecto.Query, warn: false
alias ExOneroster.Repo
alias ExOneroster.AcademicSessions.AcademicSession
@doc """
Returns the list of academic_sessions.
## Examples
iex> list_academic_... | 22.792453 | 105 | 0.681705 |
08f6fb9f856f219d85a12bc6e71bc7b7536c6e16 | 58 | ex | Elixir | web/views/admin_view.ex | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/web/views/admin_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/web/views/admin_view.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.AdminView do
use Artour.Web, :view
end
| 14.5 | 29 | 0.775862 |
08f72662778928d73a23293ec8a1d91e664c067d | 1,110 | ex | Elixir | lib/msgpax/bin.ex | gskynet/msgpax | 5b1d8bad8692cbf668cd800a522fb6cc653e2c9d | [
"0BSD"
] | null | null | null | lib/msgpax/bin.ex | gskynet/msgpax | 5b1d8bad8692cbf668cd800a522fb6cc653e2c9d | [
"0BSD"
] | null | null | null | lib/msgpax/bin.ex | gskynet/msgpax | 5b1d8bad8692cbf668cd800a522fb6cc653e2c9d | [
"0BSD"
] | 1 | 2020-07-13T14:05:47.000Z | 2020-07-13T14:05:47.000Z | defmodule Msgpax.Bin do
@moduledoc """
A struct to represent the MessagePack [Binary
type](https://github.com/msgpack/msgpack/blob/master/spec.md#formats-bin).
Elixir binaries are serialized and de-serialized as [MessagePack
strings](https://github.com/msgpack/msgpack/blob/master/spec.md#formats-str):
`Msg... | 27.073171 | 79 | 0.686486 |
08f735a9e800f591212a9a1189be16dfda4607aa | 1,078 | ex | Elixir | test/support/conn_case.ex | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | test/support/conn_case.ex | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | test/support/conn_case.ex | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | defmodule Wiki.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the databa... | 23.955556 | 66 | 0.699443 |
08f749f690cda7f03f904919f4619c9e22825988 | 4,081 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/encrypt_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/encrypt_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/encrypt_response.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... | 65.822581 | 763 | 0.766234 |
08f7580419bca9b92b950d5b1d44589c9afd1c3c | 1,025 | exs | Elixir | config/config.exs | tinfoil/ex_json_schema | 6836d531c9adcd6abfa3a5e296d3da977f7b7fb1 | [
"MIT"
] | 301 | 2015-07-17T22:22:56.000Z | 2022-03-20T13:42:22.000Z | config/config.exs | tinfoil/ex_json_schema | 6836d531c9adcd6abfa3a5e296d3da977f7b7fb1 | [
"MIT"
] | 70 | 2015-09-30T21:19:43.000Z | 2022-02-03T10:23:07.000Z | config/config.exs | tinfoil/ex_json_schema | 6836d531c9adcd6abfa3a5e296d3da977f7b7fb1 | [
"MIT"
] | 100 | 2015-09-16T11:58:15.000Z | 2022-01-31T19:09:32.000Z | # 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... | 41 | 73 | 0.746341 |
08f768a9b695aae045f2b8a07cb77fbcc65542f3 | 1,475 | exs | Elixir | episode04/my_app/mix.exs | paulfioravanti/learn_phoenix | 3767f28b09bb5e740231dd261a0bfa8b3eea98d3 | [
"MIT"
] | null | null | null | episode04/my_app/mix.exs | paulfioravanti/learn_phoenix | 3767f28b09bb5e740231dd261a0bfa8b3eea98d3 | [
"MIT"
] | null | null | null | episode04/my_app/mix.exs | paulfioravanti/learn_phoenix | 3767f28b09bb5e740231dd261a0bfa8b3eea98d3 | [
"MIT"
] | null | null | null | defmodule MyApp.Mixfile do
use Mix.Project
def project do
[app: :my_app,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
... | 28.365385 | 78 | 0.608136 |
08f782f7098f396e70f8409cd94d17857ffc4bd5 | 1,033 | ex | Elixir | elixir/lib/day06.ex | dimspith/aoc2021 | c26cf4b07e85ab140d294e9f2816ea84396c8887 | [
"Unlicense"
] | 1 | 2021-12-08T18:23:55.000Z | 2021-12-08T18:23:55.000Z | elixir/lib/day06.ex | dimspith/aoc2021 | c26cf4b07e85ab140d294e9f2816ea84396c8887 | [
"Unlicense"
] | null | null | null | elixir/lib/day06.ex | dimspith/aoc2021 | c26cf4b07e85ab140d294e9f2816ea84396c8887 | [
"Unlicense"
] | null | null | null | defmodule Day06 do
def get_input(file) do
File.read!(file)
|> String.split(",", trim: true)
|> Enum.map(&String.to_integer/1)
end
def insert_missing_keys(map) do
Enum.reduce(0..8, map, fn x, acc ->
acc |> Map.put_new(x, 0)
end)
end
def simulate(input, days) do
input
|> Enum... | 21.520833 | 52 | 0.479187 |
08f7cad0943f1428e4fc9c3331822629af45093e | 158 | exs | Elixir | .formatter.exs | parikshitgupta1/k8 | 1df84e3f0c37c59c27061c75408b2909e7e44ff9 | [
"MIT"
] | null | null | null | .formatter.exs | parikshitgupta1/k8 | 1df84e3f0c37c59c27061c75408b2909e7e44ff9 | [
"MIT"
] | null | null | null | .formatter.exs | parikshitgupta1/k8 | 1df84e3f0c37c59c27061c75408b2909e7e44ff9 | [
"MIT"
] | null | null | null | [
import_deps: [:ecto, :phoenix],
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"],
subdirectories: ["priv/*/migrations"]
] | 31.6 | 80 | 0.575949 |
08f7cce9ee413e21b8c4b5837cdfb165f390a888 | 655 | ex | Elixir | lib/monet/application.ex | neuralvis/monet | 500cc257b39f8aafd7fae9a3025fd8c1b20b76ef | [
"MIT"
] | null | null | null | lib/monet/application.ex | neuralvis/monet | 500cc257b39f8aafd7fae9a3025fd8c1b20b76ef | [
"MIT"
] | null | null | null | lib/monet/application.ex | neuralvis/monet | 500cc257b39f8aafd7fae9a3025fd8c1b20b76ef | [
"MIT"
] | null | null | null | defmodule Monet.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: Monet.Worker.start_link(arg)
# {Monet.Worker, arg}
... | 27.291667 | 64 | 0.679389 |
08f7e1371eabc12d7d54dd5c6109673d8d393a66 | 198 | ex | Elixir | lib/ash_pow.ex | ash-project/ash_pow | 95bc41d6ba0dd8d6cde62769f3a3811c434f9b0a | [
"MIT"
] | 1 | 2021-12-10T20:29:16.000Z | 2021-12-10T20:29:16.000Z | lib/ash_pow.ex | ash-project/ash_pow | 95bc41d6ba0dd8d6cde62769f3a3811c434f9b0a | [
"MIT"
] | null | null | null | lib/ash_pow.ex | ash-project/ash_pow | 95bc41d6ba0dd8d6cde62769f3a3811c434f9b0a | [
"MIT"
] | null | null | null | defmodule AshPow do
@moduledoc """
Documentation for `AshPow`.
"""
@doc """
Hello world.
## Examples
iex> AshPow.hello()
:world
"""
def hello do
:world
end
end
| 10.421053 | 29 | 0.550505 |
08f7e98679dbfe299f99e9b29b30388095f14c4a | 2,176 | exs | Elixir | apps/api/test/api_web/controllers/user_controller_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/api/test/api_web/controllers/user_controller_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/api/test/api_web/controllers/user_controller_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule ApiWeb.UserControllerTest do
use ApiWeb.ConnCase, async: true
alias Core.Services.Users
describe "#signup" do
test "It will create a new user", %{conn: conn} do
path = Routes.user_path(conn, :create)
result =
conn
|> post(path, %{email: "someone@example.com", name: "Som... | 27.2 | 100 | 0.606618 |
08f7f3fa5a3ad085add259a11c00a52edecc8f43 | 61 | exs | Elixir | test/csvex_test.exs | martin-torhage/csvex | ddf01ca2a8d016654ecd8f0c12e995ec300ce21b | [
"MIT"
] | null | null | null | test/csvex_test.exs | martin-torhage/csvex | ddf01ca2a8d016654ecd8f0c12e995ec300ce21b | [
"MIT"
] | null | null | null | test/csvex_test.exs | martin-torhage/csvex | ddf01ca2a8d016654ecd8f0c12e995ec300ce21b | [
"MIT"
] | null | null | null | defmodule CsvexTest do
use ExUnit.Case
doctest Csvex
end
| 12.2 | 22 | 0.786885 |
08f7f45f5e49da7aa6de1494a4f83e9e53645331 | 238 | ex | Elixir | lib/sass_ex/response.ex | montebrown/sass_ex | 43aae4a8134a8ec418023d7a309036ba7e1debfe | [
"MIT"
] | null | null | null | lib/sass_ex/response.ex | montebrown/sass_ex | 43aae4a8134a8ec418023d7a309036ba7e1debfe | [
"MIT"
] | 1 | 2021-12-15T22:56:26.000Z | 2021-12-29T16:55:46.000Z | lib/sass_ex/response.ex | montebrown/sass_ex | 43aae4a8134a8ec418023d7a309036ba7e1debfe | [
"MIT"
] | 1 | 2021-12-11T22:47:02.000Z | 2021-12-11T22:47:02.000Z | defmodule SassEx.Response do
@moduledoc """
Contains the response from compiling the Sass file
"""
defstruct [:css, :source_map]
@type t :: %__MODULE__{
css: String.t(),
source_map: String.t()
}
end
| 19.833333 | 52 | 0.605042 |
08f7f5eb14ebfb48dadacbfa655b71cdeb07f1c6 | 1,667 | exs | Elixir | mix.exs | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | mix.exs | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | mix.exs | evanob/ExQuickBooks | 8c0f64dd658b1a6edfaa338e0cb62b95b9a853e2 | [
"0BSD"
] | null | null | null | defmodule ExQuickBooks.Mixfile do
use Mix.Project
def project do
[
app: :exquickbooks,
version: "0.9.0",
elixir: "~> 1.12",
# Compilation
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
# Packagi... | 21.371795 | 79 | 0.582484 |
08f800179a9cfb65dad33ce8ca79885bf443c7ae | 1,691 | ex | Elixir | lib/ex_chat_web/controllers/user_controller.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | 1 | 2017-12-28T12:49:19.000Z | 2017-12-28T12:49:19.000Z | lib/ex_chat_web/controllers/user_controller.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | lib/ex_chat_web/controllers/user_controller.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | defmodule ExChatWeb.UserController do
use ExChatWeb, :controller
alias ExChat.Accounts
alias ExChat.Accounts.User
def index(conn, _params) do
users = Accounts.list_users()
render(conn, "index.html", users: users)
end
def new(conn, _params) do
changeset = Accounts.change_user(%User{})
rend... | 27.721311 | 67 | 0.623891 |
08f805240c9955ea39e43b5bfd341ce7cac8a722 | 1,239 | exs | Elixir | postgres/sample/config/prod.secret.exs | penqen/phenix_db_samples | 4ae7211abb3cf66a120a78727641b3963a9aafe3 | [
"MIT"
] | null | null | null | postgres/sample/config/prod.secret.exs | penqen/phenix_db_samples | 4ae7211abb3cf66a120a78727641b3963a9aafe3 | [
"MIT"
] | null | null | null | postgres/sample/config/prod.secret.exs | penqen/phenix_db_samples | 4ae7211abb3cf66a120a78727641b3963a9aafe3 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.5 | 67 | 0.717514 |
08f80d635648ec2ab761edff9c6956d83813fb8c | 724 | exs | Elixir | apps/forklift/config/config.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 1 | 2020-03-18T21:14:39.000Z | 2020-03-18T21:14:39.000Z | apps/forklift/config/config.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | apps/forklift/config/config.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
input_topic_prefix = "transformed"
config :forklift,
data_reader: Pipeline.Reader.DatasetTopicReader,
topic_writer: Pipeline.Writer.TopicWriter,
table_writer: Pipeline.Writer.S3Writer,
retry_count: 100,
retry_initial_delay: 100,
retry_max_wait: 1_000 * 60 * 60,
cache_processing_batch_size... | 24.965517 | 55 | 0.774862 |
08f82dfd12918b0b7f16eb8463d3f555a8897b88 | 354 | exs | Elixir | priv/repo/migrations/20190130185547_create_tags_users.exs | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | 6 | 2019-01-31T23:31:42.000Z | 2020-10-06T20:05:34.000Z | priv/repo/migrations/20190130185547_create_tags_users.exs | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | 2 | 2021-11-09T14:35:51.000Z | 2021-11-09T18:04:15.000Z | priv/repo/migrations/20190130185547_create_tags_users.exs | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | 2 | 2019-01-31T23:53:33.000Z | 2021-11-05T21:47:26.000Z | defmodule Assoc.Test.Repo.Migrations.CreateTagsUsers do
use Ecto.Migration
def change do
create table(:tags_users) do
add :tag_id, references(:tags, on_delete: :delete_all), null: false
add :user_id, references(:users, on_delete: :delete_all), null: false
end
create unique_index(:tags_user... | 27.230769 | 75 | 0.714689 |
08f83adb4b87772bf9e42fa28ecf25ab804d7d46 | 1,276 | exs | Elixir | mix.exs | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | mix.exs | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | mix.exs | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | defmodule Bandit.MixProject do
use Mix.Project
def project do
[
app: :bandit,
version: "0.5.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
name: "Bandit",
description: "A pure-Elixir HTTP server built for Plug apps"... | 25.52 | 80 | 0.528997 |
08f83da12fe74e673d6900074c09f79792dd4044 | 484 | exs | Elixir | config/test.exs | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | 40 | 2018-05-20T21:30:30.000Z | 2021-09-10T07:25:44.000Z | config/test.exs | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | 3 | 2020-09-07T10:53:53.000Z | 2022-02-12T21:45:34.000Z | config/test.exs | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | 15 | 2018-06-07T08:16:20.000Z | 2020-04-12T07:38:05.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :myApi, MyApiWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :myApi, MyApi.Repo,
ad... | 24.2 | 56 | 0.729339 |
08f84d81c113f4f016c447acf28cb9b490367bfc | 116 | exs | Elixir | config/config.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | config/config.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | config/config.exs | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | use Mix.Config
if File.exists?(Path.join([__DIR__, "#{Mix.env()}.exs"])) do
import_config "#{Mix.env()}.exs"
end
| 19.333333 | 60 | 0.646552 |
08f85216530fa001576e30a13ffee5df06fafbd4 | 12,561 | ex | Elixir | lib/commanded/process_managers/process_manager_instance.ex | SimpleBet/commanded | dc89737bd22daf4f6c5b3333b5d8d8de47fea5b8 | [
"MIT"
] | 1 | 2020-03-09T11:50:38.000Z | 2020-03-09T11:50:38.000Z | lib/commanded/process_managers/process_manager_instance.ex | perzanko/commanded | fd18ee3981cd237cbb874d1ccd8155e98d35d178 | [
"MIT"
] | null | null | null | lib/commanded/process_managers/process_manager_instance.ex | perzanko/commanded | fd18ee3981cd237cbb874d1ccd8155e98d35d178 | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.ProcessManagerInstance do
@moduledoc false
use GenServer, restart: :temporary
require Logger
alias Commanded.ProcessManagers.{ProcessRouter, FailureContext}
alias Commanded.EventStore
alias Commanded.EventStore.{RecordedEvent, SnapshotData}
defmodule State do
@m... | 30.050239 | 100 | 0.6681 |
08f85d238b56d3fe39d93a07516b5166875d9843 | 1,129 | exs | Elixir | config/config.exs | jdollar/video_theater_elixir | 4f5899ed2987565613c4a6092bc8cf7eb0d18c06 | [
"MIT"
] | null | null | null | config/config.exs | jdollar/video_theater_elixir | 4f5899ed2987565613c4a6092bc8cf7eb0d18c06 | [
"MIT"
] | null | null | null | config/config.exs | jdollar/video_theater_elixir | 4f5899ed2987565613c4a6092bc8cf7eb0d18c06 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.753764 |
08f863d1533ed854fe27149c07ebfd2aea7fedbd | 1,989 | exs | Elixir | test/nebulex/cache/supervisor_test.exs | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | test/nebulex/cache/supervisor_test.exs | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | test/nebulex/cache/supervisor_test.exs | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | defmodule Nebulex.Cache.SupervisorTest do
use ExUnit.Case, async: true
defmodule MyCache do
use Nebulex.Cache,
otp_app: :nebulex,
adapter: Nebulex.Adapters.Local
end
setup do
:ok = Application.put_env(:nebulex, MyCache, n_shards: 2)
{:ok, pid} = MyCache.start_link()
:ok
on_exi... | 28.414286 | 98 | 0.684766 |
08f86e08ccdc5b69e07a21d627f751707a15302e | 166 | ex | Elixir | lib/bitcoin_simulator_web/controllers/transaction_controller.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator_web/controllers/transaction_controller.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | lib/bitcoin_simulator_web/controllers/transaction_controller.ex | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | null | null | null | defmodule BitcoinSimulatorWeb.TransactionController do
use BitcoinSimulatorWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 20.75 | 54 | 0.777108 |
08f8942b5eacfbabbd59cf5fb92bddbd0b31ea37 | 1,655 | exs | Elixir | test/lib/code_corps_web/controllers/password_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps_web/controllers/password_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps_web/controllers/password_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.PasswordControllerTest do
@moduledoc false
use CodeCorpsWeb.ApiCase, resource_name: :password
use Bamboo.Test
alias CodeCorps.AuthToken
test "Unauthenticated - creates and renders resource when email is valid", %{conn: conn} do
user = insert(:user)
attrs = %{"email" => user.e... | 34.479167 | 111 | 0.712991 |
08f8991da09bdacf813045ce152378957ee4e662 | 406 | ex | Elixir | elixir/elixir-sips/samples/mailman_playground/lib/mailman_playground/emails.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/mailman_playground/lib/mailman_playground/emails.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/mailman_playground/lib/mailman_playground/emails.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule MailmanPlayground.Emails do
def testing_email do
%Mailman.Email{
subject: "Hey!",
from: "test@mailman.ex",
to: [ "afronski@gmail.com" ],
cc: [ "afronski@op.pl" ],
bcc: [],
data: [
name: "TestUser"
],
text: "Hello <%= name %>!",
html: """
<htm... | 17.652174 | 37 | 0.472906 |
08f8bba87c1462b47c51d3f33ce0837ac5d63543 | 555 | ex | Elixir | web/models/reward.ex | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | 1 | 2020-05-24T15:18:36.000Z | 2020-05-24T15:18:36.000Z | web/models/reward.ex | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | null | null | null | web/models/reward.ex | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | null | null | null | defmodule CrowdfundingApi.Reward do
use CrowdfundingApi.Web, :model
schema "rewards" do
field :title, :string
field :description, :string
field :image_url, :string
field :amount, :integer
belongs_to :project, CrowdfundingApi.Project
timestamps()
end
@doc """
Builds a changeset based... | 24.130435 | 69 | 0.67027 |
08f8c75f328d2fc9d87ce1b753e96202f410a0ff | 1,121 | exs | Elixir | config/test.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T18:20:22.000Z | 2018-10-10T18:20:22.000Z | config/test.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 23 | 2018-06-07T15:13:15.000Z | 2019-07-30T09:06:03.000Z | config/test.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :companion, CompanionWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :companion, Comp... | 23.354167 | 60 | 0.719001 |
08f8c7842b6b692ca6ef6ac3bb6777155dcb075e | 3,489 | ex | Elixir | lib/yggdrasil/redis/application.ex | Robugroup/yggdrasil_redis | 6f4ea4f4efb6c77c66f078152b7e705fb6810971 | [
"MIT"
] | null | null | null | lib/yggdrasil/redis/application.ex | Robugroup/yggdrasil_redis | 6f4ea4f4efb6c77c66f078152b7e705fb6810971 | [
"MIT"
] | null | null | null | lib/yggdrasil/redis/application.ex | Robugroup/yggdrasil_redis | 6f4ea4f4efb6c77c66f078152b7e705fb6810971 | [
"MIT"
] | 1 | 2021-12-24T02:30:46.000Z | 2021-12-24T02:30:46.000Z | defmodule Yggdrasil.Redis.Application do
@moduledoc """
[](https://travis-ci.org/gmtprime/yggdrasil_redis) [](https://hex.pm/packages/yggdrasil_redis) [![hex.pm dow... | 30.33913 | 375 | 0.694182 |
08f8ce41dd2c6a9420d131673e67f9d6c81c2a39 | 4,646 | exs | Elixir | apps/admin_api/test/admin_api/v1/views/user_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/user_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/user_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# 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 writi... | 32.48951 | 84 | 0.543909 |
08f8e1efb6f9b3c8c174e96c08d0c2b81f63b51d | 622 | ex | Elixir | fade/lib/snapshot/types/channel_snapshot.ex | ahives/Fade | 7094b6703933e41a1400b1053764335e32928b0a | [
"Apache-2.0"
] | null | null | null | fade/lib/snapshot/types/channel_snapshot.ex | ahives/Fade | 7094b6703933e41a1400b1053764335e32928b0a | [
"Apache-2.0"
] | null | null | null | fade/lib/snapshot/types/channel_snapshot.ex | ahives/Fade | 7094b6703933e41a1400b1053764335e32928b0a | [
"Apache-2.0"
] | null | null | null | defmodule Fade.Snapshot.Types.ChannelSnapshot do
use TypedStruct
alias Fade.Snapshot.Types.QueueOperationMetrics
typedstruct do
field(:prefetch_count, integer())
field(:uncommitted_acknowledgements, integer())
field(:uncommitted_messages, integer())
field(:unconfirmed_messages, integer())
fi... | 29.619048 | 55 | 0.731511 |
08f8f7de4b7db88d781e401040a2fd1f927e12cb | 3,977 | ex | Elixir | lib/cadet_web/controllers/courses_controller.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | lib/cadet_web/controllers/courses_controller.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | lib/cadet_web/controllers/courses_controller.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule CadetWeb.CoursesController do
use CadetWeb, :controller
use PhoenixSwagger
alias Cadet.Courses
alias Cadet.Accounts.CourseRegistrations
def index(conn, %{"course_id" => course_id}) when is_ecto_id(course_id) do
case Courses.get_course_config(course_id) do
{:ok, config} ->
render... | 31.816 | 93 | 0.626854 |
08f8feefa048546f97e5150bfcbe939ad6a96c3a | 5,060 | ex | Elixir | lib/phoenix/controller/pipeline.ex | lancehalvorsen/phoenix | f366b7a399db04badb816f74851040fa141c51ee | [
"MIT"
] | null | null | null | lib/phoenix/controller/pipeline.ex | lancehalvorsen/phoenix | f366b7a399db04badb816f74851040fa141c51ee | [
"MIT"
] | null | null | null | lib/phoenix/controller/pipeline.ex | lancehalvorsen/phoenix | f366b7a399db04badb816f74851040fa141c51ee | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller.Pipeline do
@moduledoc """
This module implements the controller pipeline responsible for handling requests.
## The pipeline
The goal of a controller is to receive a request and invoke the desired
action. The whole flow of the controller is managed by a single pipeline:
d... | 27.351351 | 86 | 0.652767 |
08f92293e79136331eaf5c0d3f7788de0848aa39 | 4,423 | exs | Elixir | test/elixir/test/recreate_doc_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/recreate_doc_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/recreate_doc_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | defmodule RecreateDocTest do
use CouchTestCase
@moduletag :recreate_doc
@moduledoc """
Test CouchDB document recreation
This is a port of the recreate_doc.js suite
"""
@tag :with_db
test "recreate document", context do
db_name = context[:db_name]
# First create a new document with the ID "fo... | 26.644578 | 83 | 0.602984 |
08f92a90d6fc1d0596be1020f9a011d5da4e1144 | 2,878 | exs | Elixir | test/ptr_web/views/cellar_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | test/ptr_web/views/cellar_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | test/ptr_web/views/cellar_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule PtrWeb.CellarViewTest do
use PtrWeb.ConnCase, async: true
alias PtrWeb.CellarView
alias Ptr.Cellars
alias Ptr.Cellars.Cellar
import Phoenix.View
import Phoenix.HTML, only: [safe_to_string: 1]
test "renders empty.html", %{conn: conn} do
content = render_to_string(CellarView, "empty.html", ... | 27.150943 | 98 | 0.649757 |
08f93f4086d588194aa6d0ee361f9e2b95a042cd | 2,256 | ex | Elixir | lib/crit/users/password.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit/users/password.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit/users/password.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | defmodule Crit.Users.Password do
use Ecto.Schema
alias Crit.Users.User
import Ecto.Changeset
import Ecto.Query
alias Crit.Sql
import Ecto.ChangesetX
schema "passwords" do
field :hash, :string
belongs_to :user, User, foreign_key: :auth_id, type: :string
field :new_password, :string, virtual: t... | 25.348315 | 70 | 0.675089 |
08f95b4d204bffd238ccfff48cfbe2a9b5ff848a | 1,584 | ex | Elixir | lib/problem010.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | lib/problem010.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | lib/problem010.ex | lewapkon/eulixir | 990017cdccee7cd508269b7036e290ec777aea3d | [
"MIT"
] | null | null | null | defmodule Eulixir.Problem010 do
@moduledoc """
http://projecteuler.net/problem=10
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
"""
@doc """
iex> Eulixir.Problem010.solve(10)
17
"""
def solve(limit) do
limit
|> primes_to
... | 24 | 63 | 0.654672 |
08f9a880b853bdd2163259dab85a7a370f4260fb | 998 | ex | Elixir | lib/trello.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | null | null | null | lib/trello.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 3 | 2018-10-03T16:59:21.000Z | 2018-10-06T09:53:51.000Z | lib/trello.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 1 | 2018-10-03T17:06:47.000Z | 2018-10-03T17:06:47.000Z | defmodule Trello do
use Application
# See https://hexdocs.pm/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 = [
# Start the Ecto repository
supervisor(... | 31.1875 | 84 | 0.707415 |
08f9d2b7c0a1af5605cacdac2814a455c638bf9b | 9,527 | ex | Elixir | apps/ewallet_config/lib/ewallet_config/setting.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_config/lib/ewallet_config/setting.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_config/lib/ewallet_config/setting.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# 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 ... | 25.610215 | 96 | 0.647423 |
08f9e57ff1e0f3c42fa627dac08e295e9336df02 | 353 | ex | Elixir | programming_elixir/part14/spawn2.ex | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | null | null | null | programming_elixir/part14/spawn2.ex | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | 2 | 2019-09-06T13:24:21.000Z | 2019-09-06T15:04:50.000Z | programming_elixir/part14/spawn2.ex | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | null | null | null | defmodule Spawn2 do
def greet do
receive do
{sender, msg} ->
send sender, { :ok, "Hello, #{msg}" }
end
end
end
pid = spawn(Spawn2, :greet, [])
send pid, { self, "World" }
receive do
{:ok, message} ->
IO.puts message
end
# 以下は実行されない
send pid, { self, "Kermit" }
receive do
{:ok, messa... | 13.576923 | 45 | 0.575071 |
08fa0d455eecee02327670719eef57cccb43b85d | 5,129 | ex | Elixir | lib/ex_admin/csv.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | lib/ex_admin/csv.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | lib/ex_admin/csv.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule ExAdmin.CSV do
@moduledoc """
ExAdmin provides a CSV export link on the index page of each resource.
The CSV file format can be customized with the `csv` macro.
For example, give the following ecto model for Example.Contact:
defmodule Example.Contact do
use Ecto.Model
schema "... | 26.853403 | 92 | 0.597192 |
08fa77634fa58809f0ed205bc3ce4e7385fe01bc | 713 | ex | Elixir | lib/chankins/web/gettext.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | lib/chankins/web/gettext.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | lib/chankins/web/gettext.ex | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | defmodule Chankins.Web.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 Chankins.Web.Gettext
# Simple translation
gettext "Here ... | 28.52 | 72 | 0.680224 |
08faac4cdb1d53a056118f952259693fafe443bc | 2,571 | ex | Elixir | clients/content/lib/google_api/content/v21/model/pos_store.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_store.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_store.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.808824 | 140 | 0.667445 |
08fab2ffd46b8eb60c63b2b126e8a4e024a95d19 | 1,783 | ex | Elixir | web/controllers/episode_controller.ex | thluiz/yehudimtv | 71aba0ee537b4bba28474fb20d3209fc261a03d7 | [
"MIT"
] | null | null | null | web/controllers/episode_controller.ex | thluiz/yehudimtv | 71aba0ee537b4bba28474fb20d3209fc261a03d7 | [
"MIT"
] | null | null | null | web/controllers/episode_controller.ex | thluiz/yehudimtv | 71aba0ee537b4bba28474fb20d3209fc261a03d7 | [
"MIT"
] | null | null | null | defmodule Yehudimtv.EpisodeController do
use Yehudimtv.Web, :controller
alias Yehudimtv.Episode
plug :scrub_params, "episode" when action in [:create, :update]
plug :action
def index(conn, _params) do
episodes = Repo.all(Episode)
render(conn, "index.html", episodes: episodes)
end
def new(conn,... | 26.220588 | 71 | 0.654515 |
08facf6fa3b3ca10094b38845f037c10c54ad8c8 | 1,920 | exs | Elixir | elixir/test/homework/account_test.exs | ceejaay/web-homework | e5844609b62bdfa79a9b5b8f302c0d7ba81dc75d | [
"MIT"
] | null | null | null | elixir/test/homework/account_test.exs | ceejaay/web-homework | e5844609b62bdfa79a9b5b8f302c0d7ba81dc75d | [
"MIT"
] | null | null | null | elixir/test/homework/account_test.exs | ceejaay/web-homework | e5844609b62bdfa79a9b5b8f302c0d7ba81dc75d | [
"MIT"
] | null | null | null | defmodule Homework.AccountTest do
use Homework.DataCase
alias Homework.Account
describe "cards" do
alias Homework.Account.Card
@valid_attrs %{description: "some description"}
@update_attrs %{description: "some updated description"}
@invalid_attrs %{description: nil}
def card_fixture(attrs ... | 29.538462 | 84 | 0.659896 |
08fad7ea6fd5776f4f9bb879fe8e96c0f19c9c1f | 486 | ex | Elixir | lib/flix/protocol/events/no_space_for_new_connection.ex | efcasado/flix | 945fe84e6dba31b7f47d07279a97559e1094da46 | [
"Unlicense",
"MIT"
] | 1 | 2021-07-24T09:44:54.000Z | 2021-07-24T09:44:54.000Z | lib/flix/protocol/events/no_space_for_new_connection.ex | efcasado/flix | 945fe84e6dba31b7f47d07279a97559e1094da46 | [
"Unlicense",
"MIT"
] | 1 | 2021-07-24T07:13:40.000Z | 2021-08-02T13:44:44.000Z | lib/flix/protocol/events/no_space_for_new_connection.ex | efcasado/flix | 945fe84e6dba31b7f47d07279a97559e1094da46 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Flix.Protocol.Events.NoSpaceForNewConnection do
defstruct max_concurrently_connected_buttons: 0
# @type t :: %__MODULE__{
# x: String.t(),
# y: boolean,
# z: integer
# }
def decode(
<<
max_concurrently_connected_buttons::unsigned-little-integer-16
>> = _binary
... | 19.44 | 76 | 0.658436 |
08fae09e15f71ec67478206af7f79cda99c22cfe | 6,831 | ex | Elixir | lib/day14/nanofactory.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | lib/day14/nanofactory.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | lib/day14/nanofactory.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | defmodule Day14.Nanofactory do
@doc """
iex> Day14.Nanofactory.part1("day14-sample0.txt")
31
iex> Day14.Nanofactory.part1("day14-sample1.txt")
165
iex> Day14.Nanofactory.part1("day14-sample2.txt")
13312
iex> Day14.Nanofactory.part1("day14-sample3.txt")
180697
iex>... | 33.816832 | 181 | 0.569024 |
08fb089fa035f8b09115232c16d4a0eec0db2c4d | 13,035 | exs | Elixir | test/elixir/test/attachments_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/attachments_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | test/elixir/test/attachments_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule AttachmentsTest do
use CouchTestCase
@moduletag :attachments
@moduletag kind: :single_node
# MD5 Digests of compressible attachments and therefore Etags
# will vary depending on platform gzip implementation.
# These MIME types are defined in [attachments] compressible_types
@bin_att_doc %{
... | 26.333333 | 93 | 0.589336 |
08fb5e057eefa16c33ef21fb633d4f2e9b0a0ace | 333 | exs | Elixir | test/nerves_livebook_test.exs | trarbr/nerves_livebook | ac5a5f7f8b80fb0c63cfe81e565c439e912973dc | [
"Apache-2.0"
] | 76 | 2021-04-23T15:51:52.000Z | 2021-09-20T19:35:26.000Z | test/nerves_livebook_test.exs | trarbr/nerves_livebook | ac5a5f7f8b80fb0c63cfe81e565c439e912973dc | [
"Apache-2.0"
] | 79 | 2021-11-03T08:33:32.000Z | 2022-03-22T08:29:37.000Z | test/nerves_livebook_test.exs | trarbr/nerves_livebook | ac5a5f7f8b80fb0c63cfe81e565c439e912973dc | [
"Apache-2.0"
] | 14 | 2021-04-30T17:32:50.000Z | 2021-09-19T06:03:16.000Z | defmodule NervesLivebookTest do
use ExUnit.Case
test "check_internet!/0 doesn't raise on host" do
NervesLivebook.check_internet!()
end
test "version/0" do
# Just check that it's a parsable version since
# there's no second source of truth to my knowledge.
Version.parse!(NervesLivebook.version(... | 23.785714 | 56 | 0.723724 |
08fb64e632519ef3efb66331ad964f629974f136 | 5,779 | ex | Elixir | lib/ecto/query/builder/filter.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | lib/ecto/query/builder/filter.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/filter.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 3]
defmodule Ecto.Query.Builder.Filter do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a where or having clause.
It allows query expressions that evaluate to a boolean
or a keyword list of field names and values. In a keyword
list multiple key value pairs w... | 38.785235 | 112 | 0.602872 |
08fb8cfc48f5c7b1fcd32593f754184c2627da82 | 87,141 | ex | Elixir | lib/ash/changeset/changeset.ex | tlietz/ash | 12cfe0d8486b4bf9d750f428b43d8adb87d5c964 | [
"MIT"
] | null | null | null | lib/ash/changeset/changeset.ex | tlietz/ash | 12cfe0d8486b4bf9d750f428b43d8adb87d5c964 | [
"MIT"
] | null | null | null | lib/ash/changeset/changeset.ex | tlietz/ash | 12cfe0d8486b4bf9d750f428b43d8adb87d5c964 | [
"MIT"
] | null | null | null | defmodule Ash.Changeset do
@moduledoc """
Changesets are used to create and update data in Ash.
Create a changeset with `new/1` or `new/2`, and alter the attributes
and relationships using the functions provided in this module. Nothing in this module
actually incurs changes in a data layer. To commit a chan... | 33.095708 | 181 | 0.609265 |
08fbc3db8b0b224e9a6387910b97e74c955cbad7 | 850 | ex | Elixir | lib/lattice_observer/observed/link_definition.ex | janitha09/lattice-observer | 8b71b83e75d610d9caa818ff689b646185eff8ea | [
"Apache-2.0"
] | null | null | null | lib/lattice_observer/observed/link_definition.ex | janitha09/lattice-observer | 8b71b83e75d610d9caa818ff689b646185eff8ea | [
"Apache-2.0"
] | 6 | 2021-11-22T12:51:35.000Z | 2022-02-10T21:29:28.000Z | lib/lattice_observer/observed/link_definition.ex | janitha09/lattice-observer | 8b71b83e75d610d9caa818ff689b646185eff8ea | [
"Apache-2.0"
] | 1 | 2021-11-27T01:16:42.000Z | 2021-11-27T01:16:42.000Z | defmodule LatticeObserver.Observed.LinkDefinition do
alias __MODULE__
@enforce_keys [:actor_id, :provider_id, :contract_id, :link_name]
defstruct [:actor_id, :provider_id, :contract_id, :link_name, :values]
@typedoc """
A representation of an observed link definition. Link definitions are considered
a glo... | 38.636364 | 90 | 0.704706 |
08fbf0ca6a0fc1cd60d41be951a8ec7fab862620 | 1,614 | ex | Elixir | lib/admin_web.ex | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | lib/admin_web.ex | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | lib/admin_web.ex | jeantsai/phoenix-admin | 3f954f0c452d385438b616f7e91bc5d66bcc1adc | [
"MIT"
] | null | null | null | defmodule AdminWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use AdminWeb, :controller
use AdminWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 23.391304 | 83 | 0.680917 |
08fbf4565e4db968cc6d3518002d0442ff37d558 | 5,423 | ex | Elixir | lib/ash/actions/update.ex | axelson/ash | 5992fc00f7bdc0ba0ebdb476a5191245145ef7c8 | [
"MIT"
] | null | null | null | lib/ash/actions/update.ex | axelson/ash | 5992fc00f7bdc0ba0ebdb476a5191245145ef7c8 | [
"MIT"
] | null | null | null | lib/ash/actions/update.ex | axelson/ash | 5992fc00f7bdc0ba0ebdb476a5191245145ef7c8 | [
"MIT"
] | null | null | null | defmodule Ash.Actions.Update do
@moduledoc false
require Logger
alias Ash.Actions.Helpers
alias Ash.Engine
alias Ash.Engine.Request
@spec run(Ash.Api.t(), Ash.Resource.record(), Ash.Resource.Actions.action(), Keyword.t()) ::
{:ok, Ash.Resource.record()} | {:error, Ash.Changeset.t()} | {:error, t... | 31.166667 | 97 | 0.576434 |
08fc15155c3807d6d60cefacdb6c7961fae54edf | 72 | exs | Elixir | src/server/test/views/page_view_test.exs | bryceklinker/trader | 9fb06bf7638e2434802b0414ac9bea46cf4f94c9 | [
"MIT"
] | null | null | null | src/server/test/views/page_view_test.exs | bryceklinker/trader | 9fb06bf7638e2434802b0414ac9bea46cf4f94c9 | [
"MIT"
] | null | null | null | src/server/test/views/page_view_test.exs | bryceklinker/trader | 9fb06bf7638e2434802b0414ac9bea46cf4f94c9 | [
"MIT"
] | null | null | null | defmodule Server.PageViewTest do
use Server.ConnCase, async: true
end
| 18 | 34 | 0.805556 |
08fc1d860be3882aa34e62ce832c750f7fb62ac1 | 1,403 | exs | Elixir | other-benchmarks/elixir-phoenix-absinthe/mix.exs | uladzislau-hlebovich/node-graphql-benchmarks | 00b8ba59299e7f725d7a79215f9e56471247f95b | [
"MIT"
] | null | null | null | other-benchmarks/elixir-phoenix-absinthe/mix.exs | uladzislau-hlebovich/node-graphql-benchmarks | 00b8ba59299e7f725d7a79215f9e56471247f95b | [
"MIT"
] | null | null | null | other-benchmarks/elixir-phoenix-absinthe/mix.exs | uladzislau-hlebovich/node-graphql-benchmarks | 00b8ba59299e7f725d7a79215f9e56471247f95b | [
"MIT"
] | null | null | null | defmodule Benchmark.MixProject do
use Mix.Project
def project do
[
app: :benchmark,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
... | 23.779661 | 84 | 0.588738 |
08fc231f5ccfc3a6bef9e3327ca1f4c18f3cae8e | 72 | ex | Elixir | lib/events_tools_web/views/comment_view.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | lib/events_tools_web/views/comment_view.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | lib/events_tools_web/views/comment_view.ex | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsToolsWeb.CommentView do
use EventsToolsWeb, :view
end
| 18 | 39 | 0.833333 |
08fc2c0458e54596f9b7a8e804c5e86ffa4706b4 | 189 | exs | Elixir | priv/repo/migrations/20210427210239_add_unique_index_to_alert_node_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | priv/repo/migrations/20210427210239_add_unique_index_to_alert_node_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | priv/repo/migrations/20210427210239_add_unique_index_to_alert_node_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Repo.Migrations.AddUniqueIndexToAlertNodeTable do
use Ecto.Migration
def change do
create unique_index(:alert_nodes, [:alert_id, :node_id, :node_type])
end
end
| 23.625 | 72 | 0.783069 |
08fc4f997e5dd18ffe9d2de01499edc31011f180 | 1,438 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/artifact_hashes.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/artifact_hashes.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/artifact_hashes.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.595745 | 88 | 0.741307 |
08fc5684767afbe81a7155044d1c826ecf970582 | 4,788 | ex | Elixir | lib/oli_web/controllers/payment_controller.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/payment_controller.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/payment_controller.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | defmodule OliWeb.PaymentController do
use OliWeb, :controller
require Logger
@doc """
Render the page to show a student that they do not have access because
of the paywall state. This is the route that the enforce paywall plug
redirects to.
"""
def guard(conn, %{"section_slug" => section_slug}) do
... | 29.018182 | 97 | 0.644319 |
08fce39231440c080158123cd1e51c1b36237ceb | 584 | ex | Elixir | web/router.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | web/router.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | web/router.ex | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | defmodule GitEctoSandbox.Router do
use GitEctoSandbox.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", GitEctoSand... | 20.857143 | 57 | 0.693493 |
08fd05575e4e4c72f8cc2b39fcb9260ad69be39a | 1,008 | ex | Elixir | lib/elixible/client/connection.ex | gabrielgatu/elixible | 3d8c4881469f2d3349488caf67f0d8400d7d1426 | [
"MIT"
] | 1 | 2020-05-08T05:11:55.000Z | 2020-05-08T05:11:55.000Z | lib/elixible/client/connection.ex | gabrielgatu/elixible | 3d8c4881469f2d3349488caf67f0d8400d7d1426 | [
"MIT"
] | 1 | 2020-05-08T10:49:17.000Z | 2020-05-08T10:59:55.000Z | lib/elixible/client/connection.ex | gabrielgatu/elixible | 3d8c4881469f2d3349488caf67f0d8400d7d1426 | [
"MIT"
] | null | null | null | defmodule Elixible.Connection do
use GenServer
def start_link(host, port \\ 5222) when is_bitstring(host) and is_integer(port) do
host = String.to_char_list(host)
GenServer.start_link __MODULE__, {host, port}
end
def command(pid, command) do
GenServer.cast(pid, {:command, command})
end
# Serv... | 25.846154 | 84 | 0.65873 |
08fd15c9a767813d7efe4a2c9172bce29e37f5c8 | 353 | exs | Elixir | test/order_api/services/process_test.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | test/order_api/services/process_test.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | 6 | 2021-01-22T15:23:04.000Z | 2021-01-28T07:56:01.000Z | test/order_api/services/process_test.exs | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | defmodule OrderApi.Services.ProcessTest do
use OrderApi.DataCase
doctest Process
import OrderApi.PayloadFixture
alias OrderApi.Services.Process
describe "structure/0" do
test "return structure in json" do
build()
result = Process.structure() |> Jason.decode!()
assert result["deliveryF... | 20.764706 | 53 | 0.699717 |
08fd179484980c666eb40ac0c6fb4248c93d2584 | 10,207 | ex | Elixir | lib/postgrex/messages.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/messages.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/postgrex/messages.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Messages do
@moduledoc false
import Postgrex.BinaryUtils
import Record, only: [defrecord: 2]
@protocol_vsn_major 3
@protocol_vsn_minor 0
@auth_types [ ok: 0, kerberos: 2, cleartext: 3, md5: 5, scm: 6, gss: 7,
gss_cont: 8, sspi: 9, sasl: 10, sasl_cont: 11, sasl_fin: 12 ]... | 25.906091 | 91 | 0.620359 |
08fd26f11807afdb6f61ef99331ab3203a89c03a | 1,129 | exs | Elixir | config/config.exs | Tomboyo/identicon | 69df031bc00346964a8fa4639043ea4d96e4a3eb | [
"MIT"
] | 15 | 2017-09-19T08:09:01.000Z | 2019-04-29T00:37:51.000Z | config/config.exs | Tomboyo/identicon | 69df031bc00346964a8fa4639043ea4d96e4a3eb | [
"MIT"
] | 1 | 2021-03-09T12:34:49.000Z | 2021-03-09T12:34:49.000Z | config/config.exs | Tomboyo/identicon | 69df031bc00346964a8fa4639043ea4d96e4a3eb | [
"MIT"
] | 17 | 2018-02-27T03:15:54.000Z | 2019-04-24T09:26:46.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.751107 |
08fd2b50df9e8a4169aa89dfcdbe8a50b4faf641 | 1,441 | ex | Elixir | lib/elixir/lib/list/chars.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/lib/list/chars.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/lib/list/chars.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defprotocol List.Chars do
@moduledoc ~S"""
The `List.Chars` protocol is responsible for
converting a structure to a charlist (only if applicable).
The only function that must be implemented is
`to_charlist/1` which does the conversion.
The `to_charlist/1` function automatically imported
by `Kernel` invo... | 22.515625 | 61 | 0.714087 |
08fd33d81fa51b7c237751578821595054081f1d | 1,896 | ex | Elixir | lib/integrate_web/controllers/fallback_controller.ex | integratedb/core | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | 13 | 2021-01-28T14:45:43.000Z | 2021-11-04T21:54:19.000Z | lib/integrate_web/controllers/fallback_controller.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | lib/integrate_web/controllers/fallback_controller.ex | integratedb/integrate | 0b4a7a38d014e5ae973a1fa807c137834dfdf9cb | [
"MIT"
] | null | null | null | defmodule IntegrateWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use IntegrateWeb, :controller
# This clause handles errors returned by Ecto's insert/update/delete.
def call... | 28.727273 | 83 | 0.687236 |
08fd54d281a197bbfd2691337734e3cc0556cede | 42,659 | exs | Elixir | test/web/controllers/submission_controller_test.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | test/web/controllers/submission_controller_test.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | test/web/controllers/submission_controller_test.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | defmodule Web.SubmissionControllerTest do
use Web.ConnCase
alias ChallengeGov.Submissions
alias ChallengeGov.TestHelpers.AccountHelpers
alias ChallengeGov.TestHelpers.ChallengeHelpers
alias ChallengeGov.TestHelpers.SubmissionHelpers
describe "index under challenge" do
test "successfully retrieve all s... | 33.991235 | 118 | 0.633184 |
08fd94975ccb82aeff89994504d4d032ecd13bf6 | 587 | ex | Elixir | lib/atecc508a/transport/i2c_supervisor.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 6 | 2018-12-13T16:33:09.000Z | 2022-03-02T08:57:20.000Z | lib/atecc508a/transport/i2c_supervisor.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 10 | 2019-01-30T19:33:48.000Z | 2022-03-03T21:07:37.000Z | lib/atecc508a/transport/i2c_supervisor.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 9 | 2019-08-22T06:26:45.000Z | 2022-03-01T18:05:01.000Z | defmodule ATECC508A.Transport.I2CSupervisor do
use DynamicSupervisor
@moduledoc false
def start_link(args) do
DynamicSupervisor.start_link(__MODULE__, args, name: __MODULE__)
end
@spec start_child(binary() | charlist(), Circuits.I2C.address(), atom()) ::
DynamicSupervisor.on_start_child()
d... | 26.681818 | 77 | 0.737649 |
08fd9fd4971b15c13b2f1351876517ce13c7060f | 8,967 | ex | Elixir | lib/ex_unit/lib/ex_unit/cli_formatter.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/cli_formatter.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/cli_formatter.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.CLIFormatter do
@moduledoc false
use GenServer
import ExUnit.Formatter, only: [format_time: 2, format_filters: 2, format_test_failure: 5,
format_test_all_failure: 5]
## Callbacks
def init(opts) do
print_filters(Keyword.take(opts, [:include, :exclude]))... | 28.466667 | 110 | 0.643136 |
08fe077094144f18743bd0995d5af5ca837c1efd | 563 | ex | Elixir | lib/forget/table.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | lib/forget/table.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | lib/forget/table.ex | MaethorNaur/forget | 8ce8adfcbf88a48d7adabc03c4815f5777e75f03 | [
"MIT"
] | null | null | null | defmodule Forget.Table do
defmacro __using__(_opts) do
quote do
import Forget.Table, only: [deftable: 2]
require Record
end
end
defmacro deftable(name, [_ | _] = do_block) when is_atom(name) and not is_nil(name) do
end
defmacro deftable(_name, _do_block) do
description = """
def... | 20.107143 | 88 | 0.641208 |
08fe131281a13e6476c07d3bb8fb4ee02adeabfb | 7,730 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_term_query.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_term_query.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_term_query.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.TermQuery) do
@moduledoc false
(
defstruct(field_name: nil, term: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
... | 25.939597 | 94 | 0.462484 |
08fe4726e5cc9f1fecd83f5ccb93047f093c991b | 3,270 | exs | Elixir | priv/cabbage/apps/itest/test/itest/watcher_status_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/cabbage/apps/itest/test/itest/watcher_status_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/cabbage/apps/itest/test/itest/watcher_status_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.333333 | 119 | 0.719572 |
08fe896552210a0236c176bb2b8d465fe8276861 | 368 | exs | Elixir | test/wallaby/browser/stale_nodes_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/browser/stale_nodes_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/browser/stale_nodes_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Browser.StaleElementsTest do
use Wallaby.SessionCase, async: true
describe "when a DOM element becomes stale" do
test "the query is retried", %{session: session} do
element =
session
|> visit("stale_nodes.html")
|> find(Query.css(".stale-node", text: "Stale", cou... | 24.533333 | 66 | 0.646739 |
08febdcba1bed94a4b760f7e20fe356f6e82d2a8 | 27,354 | exs | Elixir | test/floki/html/generated/tokenizer/namedEntities_part29_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 1,778 | 2015-01-07T14:12:31.000Z | 2022-03-29T22:42:48.000Z | test/floki/html/generated/tokenizer/namedEntities_part29_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 279 | 2015-01-01T15:54:50.000Z | 2022-03-28T18:06:03.000Z | test/floki/html/generated/tokenizer/namedEntities_part29_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 166 | 2015-04-24T20:48:02.000Z | 2022-03-28T17:29:05.000Z | defmodule Floki.HTML.Generated.Tokenizer.NamedentitiesPart29Test do
use ExUnit.Case, async: true
# NOTE: This file was generated by "mix generate_tokenizer_tests namedEntities.test".
# html5lib-tests rev: e52ff68cc7113a6ef3687747fa82691079bf9cc5
alias Floki.HTML.Tokenizer
test "tokenize/1 Named entity: cap... | 22.62531 | 87 | 0.615011 |
08fee21db4ff4f6d528a70d7d3dc68fc71943c9b | 9,642 | ex | Elixir | lib/site_generator/add_stuff.ex | andersju/municipality-privacy | a9d4a1ae83a0aab3e480ee8ddd35ec897cf10265 | [
"MIT"
] | 11 | 2016-05-31T18:20:37.000Z | 2020-05-27T21:26:21.000Z | lib/site_generator/add_stuff.ex | andersju/municipality-privacy | a9d4a1ae83a0aab3e480ee8ddd35ec897cf10265 | [
"MIT"
] | null | null | null | lib/site_generator/add_stuff.ex | andersju/municipality-privacy | a9d4a1ae83a0aab3e480ee8ddd35ec897cf10265 | [
"MIT"
] | 2 | 2016-06-07T20:33:10.000Z | 2019-01-12T10:59:41.000Z | defmodule SiteGenerator.AddStuff do
import SiteGenerator.Helpers
import Sqlitex.{Query, Statement}
def start do
{:ok, db} = Sqlitex.open("data/crawl-data.sqlite")
add_columns(db, "http_requests", ~w(base_domain scheme), "TEXT")
add_columns(db, "javascript_cookies", ~w(base_domain), "TEXT")
add_c... | 33.595819 | 113 | 0.58826 |
08fef8a9fbd20324cd82029102a96d5839d77dd4 | 4,316 | ex | Elixir | lib/git.ex | fivetwentysix/elixir-git-cli | e9b5aad27fca9195325a699aee6d9c9e12bc12b7 | [
"MIT"
] | null | null | null | lib/git.ex | fivetwentysix/elixir-git-cli | e9b5aad27fca9195325a699aee6d9c9e12bc12b7 | [
"MIT"
] | null | null | null | lib/git.ex | fivetwentysix/elixir-git-cli | e9b5aad27fca9195325a699aee6d9c9e12bc12b7 | [
"MIT"
] | null | null | null | defmodule Git do
@type error :: {:error, Git.Error}
@type cli_arg :: String.t() | [String.t()]
@type path :: String.t()
defp get_repo_path(args) when not is_list(args), do: get_repo_path([args])
defp get_repo_path(args) when is_list(args) do
{_options, positional, _rest} = OptionParser.parse(args, stric... | 33.457364 | 97 | 0.612604 |
08ff0765dba4b6f9618d71e5af373655732ae846 | 10,271 | exs | Elixir | test/membrane_caps_audio_raw_test.exs | membraneframework/membrane-caps-audio-raw | afe28579bb93d8f20bbfc0b23dcded01b7fcbe56 | [
"Apache-2.0"
] | 2 | 2018-07-27T14:16:14.000Z | 2018-09-11T02:26:55.000Z | test/membrane_caps_audio_raw_test.exs | membraneframework/membrane-caps-audio-raw | afe28579bb93d8f20bbfc0b23dcded01b7fcbe56 | [
"Apache-2.0"
] | 1 | 2018-11-05T13:05:08.000Z | 2018-11-05T13:05:08.000Z | test/membrane_caps_audio_raw_test.exs | membraneframework/membrane-caps-audio-raw | afe28579bb93d8f20bbfc0b23dcded01b7fcbe56 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RawAudioTest do
use ExUnit.Case, async: true
alias Membrane.Caps.Audio.Raw, as: RawAudio
@all_formats [
:s8,
:u8,
:s16le,
:u16le,
:s16be,
:u16be,
:s24le,
:u24le,
:s24be,
:u24be,
:s32le,
:u32le,
:s32be,
:u32be,
:f32le,
:f32be,
... | 29.599424 | 96 | 0.654269 |
08ff20935948c7ad9a7ed8ed9099a0307b452856 | 4,056 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1/model/certificate_description.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/certificate_description.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/certificate_description.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... | 59.647059 | 235 | 0.739892 |
08ff9b3fbbfb95065ae6c45b5a7d002620f55014 | 2,428 | ex | Elixir | clients/firebase/lib/google_api/firebase/v1beta1/model/analytics_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/analytics_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/analytics_details.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... | 40.466667 | 178 | 0.737232 |
08ffa4b1a7d538a49e6220277234523c8e443038 | 10,450 | ex | Elixir | lib/groupher_server/cms/cms.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/cms/cms.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/cms/cms.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.CMS do
@moduledoc """
this module defined basic method to handle [CMS] content [CURD] ..
[CMS]: post, job, ...
[CURD]: create, update, delete ...
"""
alias GroupherServer.CMS.Delegate
alias Delegate.{
AbuseReport,
ArticleCURD,
BlogCURD,
WorksCURD,
ArticleComm... | 44.468085 | 97 | 0.787368 |
08ffa57d8afa40b62a56269dbec89d567fd733e5 | 894 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.111111 | 74 | 0.761745 |
08ffeff739d248265a04ab3282c2dc0981b3a3e4 | 1,863 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | rafaelbiten/phoenix | d1cc7c0fd06c0a2484197a49c36cc27085c0c2e6 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | rafaelbiten/phoenix | d1cc7c0fd06c0a2484197a49c36cc27085c0c2e6 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | rafaelbiten/phoenix | d1cc7c0fd06c0a2484197a49c36cc27085c0c2e6 | [
"MIT"
] | 1 | 2021-03-22T14:58:39.000Z | 2021-03-22T14:58:39.000Z | # 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 :<%= @web_app_name %>, <%= @endpoint_module %>,
# Binding to loo... | 31.576271 | 76 | 0.626409 |
1c002332b8273acfd4e1a532b3f206d1da3c9dab | 13 | exs | Elixir | config/config.exs | r26D/ueberauth_apple | bf97cb8ee1894d57253eccd30f78f0f9f3b6214d | [
"MIT"
] | 1 | 2022-03-10T06:54:28.000Z | 2022-03-10T06:54:28.000Z | config/config.exs | r26D/ueberauth_apple | bf97cb8ee1894d57253eccd30f78f0f9f3b6214d | [
"MIT"
] | 1 | 2018-11-15T16:20:06.000Z | 2018-11-24T00:02:57.000Z | config/config.exs | r26D/ueberauth_apple | bf97cb8ee1894d57253eccd30f78f0f9f3b6214d | [
"MIT"
] | 2 | 2017-10-05T11:35:37.000Z | 2018-11-15T16:56:01.000Z | import Config | 13 | 13 | 0.923077 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.