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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dd3ce14007c63238b1f03c2399d1fe9b5f681ff | 905 | exs | Elixir | elixir/scrabble-score/scrabble_score_test.exs | jkrukoff/Exercism | a58535afaef312b6ad45730eaa346f2c9f4c3056 | [
"MIT"
] | null | null | null | elixir/scrabble-score/scrabble_score_test.exs | jkrukoff/Exercism | a58535afaef312b6ad45730eaa346f2c9f4c3056 | [
"MIT"
] | null | null | null | elixir/scrabble-score/scrabble_score_test.exs | jkrukoff/Exercism | a58535afaef312b6ad45730eaa346f2c9f4c3056 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("scrabble.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule ScrabbleScoreTest do
use ExUnit.Case
test "empty word scores zero" do
assert Scrabble.score("") == 0
end
test "whitespace scores zero" d... | 21.046512 | 52 | 0.687293 |
2dd3dba3f5ae5c2999f70e6c387aac692cc2b1e8 | 1,086 | ex | Elixir | test/support/network/api/github_in_memory.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | test/support/network/api/github_in_memory.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | test/support/network/api/github_in_memory.ex | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | defmodule Adoptoposs.Network.Api.GithubInMemory do
alias Adoptoposs.Network.Api
import Adoptoposs.Factory
@behaviour Api
@impl Api
def provider, do: Api.Github.provider()
@impl Api
def organizations(_token, limit, _after_cursor) do
{:ok, {build(:page_info), build_list(limit, :organization)}}
end... | 25.857143 | 99 | 0.67035 |
2dd3e06c5a152a8c388176a81408d0f72cf27622 | 898 | exs | Elixir | apps/day7/test/day7_test.exs | DFilipeS/advent-of-code-2020 | 89acbc1dcc2352e91463b0faebda868417d7e5d7 | [
"Unlicense"
] | null | null | null | apps/day7/test/day7_test.exs | DFilipeS/advent-of-code-2020 | 89acbc1dcc2352e91463b0faebda868417d7e5d7 | [
"Unlicense"
] | null | null | null | apps/day7/test/day7_test.exs | DFilipeS/advent-of-code-2020 | 89acbc1dcc2352e91463b0faebda868417d7e5d7 | [
"Unlicense"
] | null | null | null | defmodule Day7Test do
use ExUnit.Case
test "possible_bags/2 with example input returns 4" do
path = Path.relative_to_cwd("priv/example.txt")
assert Day7.possible_bags(path, "shiny gold") == 4
end
test "possible_bags/2 with problem input returns 144" do
path = Path.relative_to_cwd("priv/input.txt")... | 30.965517 | 58 | 0.709354 |
2dd3f7408abe7daba85d6f20e9e697f254ea568b | 363 | exs | Elixir | .formatter.exs | dallagi/telepoison | 955d4b0bc0b0f7ade3a2423aa8cea2752b618907 | [
"MIT"
] | 3 | 2021-12-21T17:23:47.000Z | 2022-01-31T19:38:26.000Z | .formatter.exs | dallagi/telepoison | 955d4b0bc0b0f7ade3a2423aa8cea2752b618907 | [
"MIT"
] | 31 | 2021-04-26T09:22:35.000Z | 2022-03-23T12:20:23.000Z | .formatter.exs | dallagi/telepoison | 955d4b0bc0b0f7ade3a2423aa8cea2752b618907 | [
"MIT"
] | 3 | 2021-01-22T15:01:27.000Z | 2022-01-14T11:51:11.000Z | [
locals_without_parens: [
field: :*,
resolve: :*,
plug: :*,
arg: :*,
add: :*,
parse: :*,
serialize: :*,
value: :*,
has_one: :*,
has_many: :*,
from: :*,
get: :*,
post: :*,
put: :*,
belongs_to: :*
],
inputs: ["lib/**/*.{ex,exs}", "test/**/*.{ex,exs}", "co... | 16.5 | 78 | 0.410468 |
2dd416444d6d75247753cb294f92bbd0aaf67343 | 4,856 | ex | Elixir | lib/logger_sentry.ex | Tubitv/logger_sentry | be456bd98ef1b1bdc986dac9a4cb3efd93ad5dd8 | [
"Apache-2.0"
] | 18 | 2017-12-03T09:40:29.000Z | 2022-03-29T12:55:00.000Z | lib/logger_sentry.ex | Tubitv/logger_sentry | be456bd98ef1b1bdc986dac9a4cb3efd93ad5dd8 | [
"Apache-2.0"
] | 7 | 2018-07-18T19:06:27.000Z | 2022-02-03T03:46:54.000Z | lib/logger_sentry.ex | Tubitv/logger_sentry | be456bd98ef1b1bdc986dac9a4cb3efd93ad5dd8 | [
"Apache-2.0"
] | 4 | 2019-04-01T07:19:05.000Z | 2021-07-07T22:06:11.000Z | defmodule Logger.Backends.Sentry do
@moduledoc """
This module is the sentry backend for Logger and it can handle the event
message from the Logger event server and push the log message to the sentry
dashboard. This module have a set of interface functions:
* get/set the log level
* get/set the log met... | 26.248649 | 99 | 0.655478 |
2dd429e3c4252880ef88cccce78085420735f4b7 | 3,100 | ex | Elixir | apps/imposc/lib/dynamics/chatter.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc/lib/dynamics/chatter.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc/lib/dynamics/chatter.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | defmodule Chatter do
@moduledoc """
Functions and data for numerically approximating 'chatter'.
'Chatter' is when an infinite sequence of impacts accumulates in a finite time on a 'sticking' impact. It is
the analogue in this system to a real-world situation in which the mass judders against the stop. To handl... | 32.631579 | 119 | 0.646129 |
2dd42d02ca4ca558dbcb1eee6b01d5e32176ddd6 | 810 | exs | Elixir | mix.exs | battistar/tiny_xml | 0e202a7e5fb29f0e0b38d58a3d79bcd5c9d1e69d | [
"MIT"
] | null | null | null | mix.exs | battistar/tiny_xml | 0e202a7e5fb29f0e0b38d58a3d79bcd5c9d1e69d | [
"MIT"
] | null | null | null | mix.exs | battistar/tiny_xml | 0e202a7e5fb29f0e0b38d58a3d79bcd5c9d1e69d | [
"MIT"
] | null | null | null | defmodule TinyXml.MixProject do
use Mix.Project
def project do
[
app: :tiny_xml,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
dialyzer: dialyzer... | 18 | 55 | 0.55679 |
2dd4aabe99c8af84d8a4586fecbe123916886dfe | 27 | ex | Elixir | lib/rocketpay.ex | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | null | null | null | lib/rocketpay.ex | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | 1 | 2021-03-05T12:39:11.000Z | 2021-03-05T12:39:11.000Z | lib/rocketpay.ex | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | null | null | null | defmodule Rocketpay do
end
| 9 | 22 | 0.851852 |
2dd4e4b7c5cd3f1e019ac084a57b57372824356d | 6,356 | ex | Elixir | lib/game/command/target.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/game/command/target.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/game/command/target.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Command.Target do
@moduledoc """
The "target" command
"""
use Game.Command
alias Data.NPC
alias Data.Room
alias Data.User
alias Game.Character
alias Game.Session.GMCP
alias Game.Utility
@must_be_alive true
commands([{"target", ["t"]}], parse: false)
@impl Game.Command
def... | 27.162393 | 129 | 0.603524 |
2dd4e80fa7eccd1f5013f6943a1cb3cb78a5eec8 | 1,453 | ex | Elixir | apps/man_api/test/support/data_case.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | 7 | 2017-06-08T21:15:11.000Z | 2021-12-28T16:57:10.000Z | apps/man_api/test/support/data_case.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | 11 | 2017-04-16T17:59:55.000Z | 2019-01-28T17:18:36.000Z | apps/man_api/test/support/data_case.ex | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | 3 | 2017-07-27T16:10:42.000Z | 2021-12-28T17:00:44.000Z | defmodule Man.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test run... | 26.907407 | 84 | 0.670337 |
2dd4f9539d6e415f4e817c4a7cd90b3de2b1eb05 | 3,421 | exs | Elixir | mix.exs | sbacarob/ecto_sql | dd457bbeb2f9468487020aa2c6142f323f42b696 | [
"Apache-2.0"
] | null | null | null | mix.exs | sbacarob/ecto_sql | dd457bbeb2f9468487020aa2c6142f323f42b696 | [
"Apache-2.0"
] | null | null | null | mix.exs | sbacarob/ecto_sql | dd457bbeb2f9468487020aa2c6142f323f42b696 | [
"Apache-2.0"
] | 1 | 2020-01-09T14:22:12.000Z | 2020-01-09T14:22:12.000Z | defmodule EctoSQL.MixProject do
use Mix.Project
@version "3.0.4"
@adapters ~w(pg mysql)
def project do
[
app: :ecto_sql,
version: @version,
elixir: "~> 1.4",
deps: deps(),
test_paths: test_paths(System.get_env("ECTO_ADAPTER")),
xref: [
exclude: [
Maria... | 24.611511 | 90 | 0.556562 |
2dd4fbbf1fcdc15891c1f7060673ca586c0d3eba | 1,887 | exs | Elixir | config/config.exs | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 6 | 2017-06-16T10:26:35.000Z | 2021-04-07T15:01:00.000Z | config/config.exs | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | 2 | 2020-04-14T02:17:46.000Z | 2021-03-10T11:09:05.000Z | config/config.exs | jgsmith/militerm | c4252d0a93f5620b90750ac2b61baf282e9ef7eb | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :militerm, Militerm.Cache.Session.Primary... | 30.435484 | 86 | 0.777424 |
2dd506472007c9d2981f3725777f9eb034d435ac | 1,422 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/last_modified_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/last_modified_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/last_modified_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.255319 | 111 | 0.739803 |
2dd535d917e238a829673d03085db608e0026342 | 13,741 | ex | Elixir | src/elixir/lib/dnsresolvd.ex | rgolubtsov/dnsresolvd-multilang | 44c03edd685f8b1276cff3dacfc821ea135038f1 | [
"MIT"
] | 2 | 2019-03-02T23:07:46.000Z | 2020-09-05T10:19:06.000Z | src/elixir/lib/dnsresolvd.ex | rgolubtsov/dnsresolvd-multilang | 44c03edd685f8b1276cff3dacfc821ea135038f1 | [
"MIT"
] | 147 | 2017-10-17T22:08:00.000Z | 2020-02-12T20:35:08.000Z | src/elixir/lib/dnsresolvd.ex | rgolubtsov/dnsresolvd-multilang | 44c03edd685f8b1276cff3dacfc821ea135038f1 | [
"MIT"
] | null | null | null | #
# src/elixir/lib/dnsresolvd.ex
# =============================================================================
# DNS Resolver Daemon (dnsresolvd). Version 0.9.9
# =============================================================================
# A daemon that performs DNS lookups for the given hostname
# passed in an HT... | 38.169444 | 109 | 0.435703 |
2dd5410b08975ce4857f47e986d33bdae3768b3b | 29,432 | ex | Elixir | deps/ecto/lib/ecto/repo/schema.ex | davemarkov/wichat | df34a66094beafb121d0c9be54a886ef040d8ca6 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/repo/schema.ex | davemarkov/wichat | df34a66094beafb121d0c9be54a886ef040d8ca6 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/repo/schema.ex | davemarkov/wichat | df34a66094beafb121d0c9be54a886ef040d8ca6 | [
"MIT"
] | null | null | null | defmodule Ecto.Repo.Schema do
# The module invoked by user defined repos
# for schema related functionality.
@moduledoc false
alias Ecto.Changeset
alias Ecto.Changeset.Relation
require Ecto.Query
@doc """
Implementation for `Ecto.Repo.insert_all/3`.
"""
def insert_all(repo, adapter, schema, rows, ... | 36.698254 | 114 | 0.628669 |
2dd5bb14bd43ffa3b3757a19a45db68bda3a5c41 | 2,109 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/user_email.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/user_email.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/user_email.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... | 37.660714 | 343 | 0.703177 |
2dd5c4802289d360da6a6da92de45c78579f13cc | 8,603 | ex | Elixir | lib/membrane/time.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/time.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/time.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Time do
@moduledoc """
Module containing functions needed to perform handling of time.
Membrane always internally uses nanosecond as a time unit. This is how all time
units should represented in the code unless there's a good reason to act
differently.
Please note that Erlang VM may int... | 22.880319 | 82 | 0.641288 |
2dd6009aefbdc205687aac606882c5c081acafc4 | 1,585 | ex | Elixir | lib/mix/tasks/users/chat.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/users/chat.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 2 | 2020-04-22T09:06:38.000Z | 2020-04-22T09:15:33.000Z | lib/mix/tasks/users/chat.ex | Hou-Rui/cadet | f9036d76005bf3b267b632dce176067ae1a19f71 | [
"Apache-2.0"
] | 1 | 2020-06-01T03:26:02.000Z | 2020-06-01T03:26:02.000Z | defmodule Mix.Tasks.Cadet.Users.Chat do
@moduledoc """
Creates ChatKit accounts for all users in the database.
User creation: https://pusher.com/docs/chatkit/reference/api#create-a-user
Status codes: https://pusher.com/docs/chatkit/reference/api#response-and-error-codes
Note:
- Task is to run aft... | 30.480769 | 89 | 0.646057 |
2dd606e5bf1f9f2a4d1dd1aaf43fe765f8bf2668 | 4,328 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/api.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/api.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/api.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 66.584615 | 1,033 | 0.734982 |
2dd611ca90d8f1f7dca43ae9aeaf0ea9ad82101c | 84 | exs | Elixir | web/test/squitter_web/views/page_view_test.exs | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 34 | 2017-08-30T02:29:41.000Z | 2021-05-29T20:21:43.000Z | web/test/squitter_web/views/page_view_test.exs | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 7 | 2017-09-12T05:27:23.000Z | 2020-01-06T22:07:52.000Z | web/test/squitter_web/views/page_view_test.exs | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 9 | 2017-09-11T22:17:55.000Z | 2022-01-31T03:07:58.000Z | defmodule Squitter.Web.PageViewTest do
use Squitter.Web.ConnCase, async: true
end
| 21 | 40 | 0.809524 |
2dd62e76071dbc11b8f9118454ff2cfa3147f373 | 3,917 | exs | Elixir | test/acceptance/ast/ial_test.exs | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | 32 | 2020-07-01T17:25:08.000Z | 2022-03-23T05:38:38.000Z | test/acceptance/ast/ial_test.exs | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | 91 | 2020-06-30T09:08:00.000Z | 2022-03-24T18:11:16.000Z | test/acceptance/ast/ial_test.exs | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | 22 | 2020-07-02T08:50:17.000Z | 2022-02-21T08:31:27.000Z | defmodule Acceptance.Ast.IalTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, parse_html: 1]
import EarmarkAstDsl
describe "IAL no errors" do
test "link with simple ial" do
markdown = "[link](url){: .classy}"
html = "<p><a class=\"classy\" href=\"url\">link</a></p>\... | 30.130769 | 115 | 0.546336 |
2dd6510f7dd62edb1c350290e4d5d68bcf9f0464 | 808 | exs | Elixir | test/hangman/cli_handler_test.exs | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | 1 | 2016-12-19T00:10:34.000Z | 2016-12-19T00:10:34.000Z | test/hangman/cli_handler_test.exs | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | test/hangman/cli_handler_test.exs | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | defmodule Hangman.CLI.Handler.Test do
use ExUnit.Case
alias Hangman.{CLI}
setup_all do
IO.puts("CLI Handler Test")
Application.stop(:hangman_game)
:ok = Application.start(:hangman_game)
end
# @tag :pending
# 90 secs
@tag timeout: 90_000
test "test running 2 human games" do
secrets =... | 23.764706 | 70 | 0.669554 |
2dd657e55ff75d3a0bb7eb8cc75bf3013d469364 | 481 | ex | Elixir | lib/brando_admin/components/form/input/email.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_admin/components/form/input/email.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_admin/components/form/input/email.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input.Email do
use Surface.Component
# use Phoenix.LiveComponent
use Phoenix.HTML
alias BrandoAdmin.Components.Form.FieldBase
prop form, :form
prop blueprint, :any
def render(%{input: %{name: name, opts: opts}} = assigns) do
~F"""
<FieldBase
blueprint=... | 21.863636 | 62 | 0.644491 |
2dd65b29e575c69fe2e90ec3cf048439408e2429 | 1,248 | ex | Elixir | test/aggregates/support/snapshot_aggregate.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | test/aggregates/support/snapshot_aggregate.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | test/aggregates/support/snapshot_aggregate.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | defmodule Commanded.Aggregates.SnapshotAggregate do
@moduledoc false
@derive Jason.Encoder
defstruct [:name, :datetime]
defmodule Commands do
defmodule Create do
defstruct [:name, :datetime]
end
end
defmodule Events do
defmodule Created do
@derive Jason.Encoder
defstruct [:na... | 23.54717 | 70 | 0.715545 |
2dd66cbf49fa95cb88ab6b25a1f3201115b540d3 | 4,406 | ex | Elixir | lib/nostrum/struct/application_command.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/application_command.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/application_command.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.ApplicationCommand do
@moduledoc """
Typespecs for creating Application Commands
Official reference:
https://discord.com/developers/docs/interactions/application-commands
"""
@moduledoc since: "0.5.0"
alias Nostrum.Snowflake
@typedoc """
The name of the command, subcommand,... | 36.114754 | 167 | 0.661371 |
2dd66d4701235dc19295721b2f4007a81cce0ace | 324 | exs | Elixir | test/phoenix/template_engine_test.exs | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | test/phoenix/template_engine_test.exs | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | test/phoenix/template_engine_test.exs | sparta-science/appsignal-elixir | 4710b4e7ec514a54b82d5c2561f72369ff48e2e2 | [
"MIT"
] | null | null | null | defmodule Appsignal.Phoenix.TemplateEngineTest do
use ExUnit.Case, async: true
test "Whether the template instrumenter compiles files" do
path = "test/fixtures/test.txt.eex"
assert {_, _, [_, "render.phoenix_template", ^path, _]} =
Appsignal.Phoenix.Template.EExEngine.compile(path, "test.txt")
end
... | 32.4 | 68 | 0.725309 |
2dd67f85a104f81bbb41c83f7ff89fb11dea1256 | 2,059 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/entity_key.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/entity_key.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/entity_key.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.5 | 129 | 0.729966 |
2dd681ff06d1e7ed86c797cd69b438d21384fd35 | 241 | ex | Elixir | lib/slurp/explorer_adapters/bsc_scan.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 20 | 2021-01-02T07:45:04.000Z | 2022-03-29T07:34:42.000Z | lib/slurp/explorer_adapters/bsc_scan.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 11 | 2021-01-25T13:10:34.000Z | 2021-09-23T05:34:08.000Z | lib/slurp/explorer_adapters/bsc_scan.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 1 | 2021-03-12T07:27:05.000Z | 2021-03-12T07:27:05.000Z | defmodule Slurp.ExplorerAdapters.BscScan do
@behaviour Slurp.ExplorerAdapter
@impl true
def home_url(endpoint) do
endpoint
end
@impl true
def address_url(endpoint, address) do
"#{endpoint}/address/#{address}"
end
end
| 17.214286 | 43 | 0.726141 |
2dd68c265fdf8e49aa9fb128e082969abc6c1584 | 182 | exs | Elixir | priv/repo/migrations/20190309161733_add_pk_boards_users.exs | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20190309161733_add_pk_boards_users.exs | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | 1 | 2019-11-02T13:46:12.000Z | 2019-11-02T13:46:12.000Z | priv/repo/migrations/20190309161733_add_pk_boards_users.exs | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | defmodule Erlnote.Repo.Migrations.AddPkBoardsUsers do
use Ecto.Migration
def change do
alter table(:boards_users) do
add :id, :id, primary_key: true
end
end
end
| 18.2 | 53 | 0.714286 |
2dd69244bdcbe3be441713d3219e75ee4f1e33a9 | 307 | exs | Elixir | apps/dead_letter/config/integration.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/dead_letter/config/integration.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/dead_letter/config/integration.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :dead_letter,
divo: [
{DivoKafka, [create_topics: "dead-letters:1:1", auto_topic: false]}
],
divo_wait: [dwell: 700, max_tries: 50],
driver: [
module: DeadLetter.Carrier.Kafka,
init_args: [
endpoints: [localhost: 9092],
topic: "dead-letters"
]
]
| 20.466667 | 71 | 0.625407 |
2dd697aa7fe183778d38764e3ff1b3deca52afb8 | 601 | exs | Elixir | Elixir/Q-1.4-palindrome-permutation/mix.exs | nicbet/puzzles | d6bb529bf3ef8570934495d50cb4b67d85a64e1d | [
"MIT"
] | null | null | null | Elixir/Q-1.4-palindrome-permutation/mix.exs | nicbet/puzzles | d6bb529bf3ef8570934495d50cb4b67d85a64e1d | [
"MIT"
] | null | null | null | Elixir/Q-1.4-palindrome-permutation/mix.exs | nicbet/puzzles | d6bb529bf3ef8570934495d50cb4b67d85a64e1d | [
"MIT"
] | null | null | null | defmodule PalindromePermutation.MixProject do
use Mix.Project
def project do
[
app: :palindrome_permutation,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def applica... | 20.724138 | 88 | 0.595674 |
2dd701ea7f28f5a76525abfa48886142f3e14f2e | 6,386 | ex | Elixir | lib/lapin/channel.ex | lswith/lapin | a8a588dc1a0d8032d85d2c661c22b437fec3519b | [
"MIT"
] | null | null | null | lib/lapin/channel.ex | lswith/lapin | a8a588dc1a0d8032d85d2c661c22b437fec3519b | [
"MIT"
] | null | null | null | lib/lapin/channel.ex | lswith/lapin | a8a588dc1a0d8032d85d2c661c22b437fec3519b | [
"MIT"
] | null | null | null | defmodule Lapin.Channel do
@moduledoc """
Lapin Channel handling
"""
use AMQP
require Logger
import Lapin.Utils, only: [check_mandatory_params: 2]
@typedoc "Channel role"
@type role :: :consumer | :producer | :passive
@typedoc "Exchange name"
@type exchange :: String.t
@typedoc "Queue name"
... | 37.127907 | 120 | 0.677106 |
2dd71c88adbd66dc95ea80372c0dca83ba229296 | 151 | ex | Elixir | backend/voxel_handler/lib/voxel_handler_web/controllers/page_controller.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-06T15:31:54.000Z | 2022-03-27T12:10:13.000Z | backend/voxel_handler/lib/voxel_handler_web/controllers/page_controller.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 9 | 2022-03-01T05:17:43.000Z | 2022-03-11T01:04:24.000Z | backend/voxel_handler/lib/voxel_handler_web/controllers/page_controller.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-04T15:52:44.000Z | 2022-03-27T12:16:27.000Z | defmodule VoxelHandlerWeb.PageController do
use VoxelHandlerWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.875 | 43 | 0.754967 |
2dd72bad069bf041c6ee1c56dd9043a2d0f1dd34 | 176 | ex | Elixir | lib/strava/model/meta_activity.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/meta_activity.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/meta_activity.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.MetaActivity do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:id
]
@type t :: %__MODULE__{
id: integer()
}
end
| 11.733333 | 32 | 0.539773 |
2dd745fc211507efb8b8720ff3e0a81e82b8e3c1 | 1,077 | ex | Elixir | lib/zero_phoenix_web/channels/user_socket.ex | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 9 | 2019-03-26T22:16:08.000Z | 2021-09-27T12:42:34.000Z | lib/zero_phoenix_web/channels/user_socket.ex | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 3 | 2020-06-08T23:03:49.000Z | 2020-06-09T03:11:12.000Z | lib/zero_phoenix_web/channels/user_socket.ex | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 7 | 2019-01-15T17:00:07.000Z | 2021-07-18T23:30:29.000Z | defmodule ZeroPhoenixWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ZeroPhoenixWeb.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 al... | 31.676471 | 86 | 0.700093 |
2dd786fcd0aea1ca3e0bee90a6f4ae3605232553 | 1,200 | exs | Elixir | test/mix.exs | xoxyuxu/nerves_system_ebin | bac9e37447412b27a9a74b0dc6e878ee2d44a6e9 | [
"Apache-2.0"
] | 3 | 2020-03-20T04:04:03.000Z | 2021-06-15T11:01:33.000Z | test/mix.exs | xoxyuxu/nerves_system_ebin | bac9e37447412b27a9a74b0dc6e878ee2d44a6e9 | [
"Apache-2.0"
] | null | null | null | test/mix.exs | xoxyuxu/nerves_system_ebin | bac9e37447412b27a9a74b0dc6e878ee2d44a6e9 | [
"Apache-2.0"
] | null | null | null | if Mix.env() == :test do
hash =
:os.cmd('git rev-parse HEAD')
|> to_string
|> String.trim()
System.put_env("NERVES_FW_VCS_IDENTIFIER", hash)
end
defmodule Test.MixProject do
use Mix.Project
@app :test
def project do
[
app: @app,
name: "system-test",
version: "0.1.0",
... | 21.428571 | 72 | 0.596667 |
2dd7a501ff31ca1f33b16374d40588f957397b6e | 1,494 | ex | Elixir | lib/oban/midwife.ex | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | lib/oban/midwife.ex | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | lib/oban/midwife.ex | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Midwife do
@moduledoc false
use GenServer
alias Oban.{Config, Notifier, Registry}
alias Oban.Queue.Supervisor, as: QueueSupervisor
@type option :: {:name, module()} | {:conf, Config.t()}
defmodule State do
@moduledoc false
defstruct [:conf]
end
@spec start_link([option]) :: ... | 23.714286 | 87 | 0.647256 |
2dd7bad5ca9013257798f75184aa2a4d3d85c446 | 1,870 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_list_indexes_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_list_indexes_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_list_indexes_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.961538 | 125 | 0.753476 |
2dd7cb351228f5d8487ce66157ac0babd84263b3 | 379 | exs | Elixir | config/dogma.exs | Nebo15/ecto_aggregate | a68c1d9f8462aeeeece049e0927985cb34218582 | [
"MIT"
] | null | null | null | config/dogma.exs | Nebo15/ecto_aggregate | a68c1d9f8462aeeeece049e0927985cb34218582 | [
"MIT"
] | null | null | null | config/dogma.exs | Nebo15/ecto_aggregate | a68c1d9f8462aeeeece049e0927985cb34218582 | [
"MIT"
] | 1 | 2020-02-23T20:38:22.000Z | 2020-02-23T20:38:22.000Z | use Mix.Config
alias Dogma.Rule
config :dogma,
rule_set: Dogma.RuleSet.All,
exclude: [
~r(\Arel/),
~r(\Adeps/),
~r(\Atest/),
],
override: [
%Rule.LineLength{ max_length: 120 },
%Rule.TakenName{ enabled: false }, # TODO: https://github.com/lpil/dogma/issues/201
%Rule.InfixOperatorPadding... | 22.294118 | 87 | 0.62533 |
2dd7eee72bd054fabc09e9fe54a782c32ec30654 | 10,511 | exs | Elixir | test/phoenix/test/conn_test.exs | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | null | null | null | test/phoenix/test/conn_test.exs | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | null | null | null | test/phoenix/test/conn_test.exs | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | null | null | null | defmodule Phoenix.Test.ConnTest.CatchAll do
def init(opts), do: opts
def call(conn, _opts), do: Plug.Conn.assign(conn, :catch_all, true)
end
defmodule Phoenix.Test.ConnTest.Router do
use Phoenix.Router
alias Phoenix.Test.ConnTest.CatchAll
pipeline :browser do
plug :put_bypass, :browser
end
pipeline... | 29.360335 | 95 | 0.594139 |
2dd7f236a9f32275a50f1e7bb826fe682971da43 | 2,508 | ex | Elixir | lib/protobuf/protoc/generator.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | lib/protobuf/protoc/generator.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | lib/protobuf/protoc/generator.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defmodule Protobuf.Protoc.Generator do
@moduledoc false
alias Protobuf.Protoc.Generator.Message, as: MessageGenerator
alias Protobuf.Protoc.Generator.Enum, as: EnumGenerator
alias Protobuf.Protoc.Generator.Service, as: ServiceGenerator
alias Protobuf.Protoc.Generator.Extension, as: ExtensionGenerator
@loc... | 26.125 | 86 | 0.658293 |
2dd7fab7240c58774f0f71fc6ab52fd620d8c3c5 | 1,546 | ex | Elixir | lib/quadquizaminos/Tetris.ex | sFractal-Podii/quadquizaminos | 1693f2d1c6ffee33065dd2ba7d899ac4aa405762 | [
"MIT"
] | null | null | null | lib/quadquizaminos/Tetris.ex | sFractal-Podii/quadquizaminos | 1693f2d1c6ffee33065dd2ba7d899ac4aa405762 | [
"MIT"
] | 1 | 2021-02-09T13:19:49.000Z | 2021-02-09T13:19:49.000Z | lib/quadquizaminos/Tetris.ex | sFractal-Podii/quadquizaminos | 1693f2d1c6ffee33065dd2ba7d899ac4aa405762 | [
"MIT"
] | 2 | 2021-01-28T06:37:04.000Z | 2021-02-09T06:47:33.000Z | defmodule Quadquizaminos.Tetris do
alias Quadquizaminos.{Bottom, Brick, Points}
def prepare(brick) do
brick
|> Brick.prepare()
|> Points.move_to_location(brick.location)
end
def drop(brick, bottom, color) do
new_brick = Brick.down(brick)
maybe_do_drop(
Bottom.collides?(bottom, prepa... | 21.472222 | 80 | 0.636481 |
2dd80f867d8b72e4f165d479ff2dd6914ba4e88e | 615 | ex | Elixir | lib/parse/datetime/tokenizer.ex | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | lib/parse/datetime/tokenizer.ex | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | lib/parse/datetime/tokenizer.ex | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | null | null | null | defmodule Timex.Parse.DateTime.Tokenizer do
@moduledoc """
Defines the API for a custom tokenizer which can extend Timex's datetime parsing facilities.
"""
alias Timex.Parse.DateTime.Tokenizers.Directive
@callback tokenize(format_string :: String.t) :: {:ok, [Directive.t]} | {:error, term}
@callback apply(... | 32.368421 | 106 | 0.715447 |
2dd85756791391e951d65d888deaa3922f63f0c9 | 5,157 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/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... | 40.289063 | 170 | 0.69013 |
2dd8581ea34009044e95c2e88dc751f826ab26d0 | 4,222 | exs | Elixir | test/schema_test.exs | ivofuru/arc_ecto | fcf07e7d8933208822ae73b8c91624058a568ef8 | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | ivofuru/arc_ecto | fcf07e7d8933208822ae73b8c91624058a568ef8 | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | ivofuru/arc_ecto | fcf07e7d8933208822ae73b8c91624058a568ef8 | [
"Apache-2.0"
] | null | null | null | defmodule ArcTest.Ecto.Schema do
use ExUnit.Case, async: false
import Mock
defmodule TestUser do
use Ecto.Schema
import Ecto.Changeset
use Arc.Ecto.Schema
schema "users" do
field(:first_name, :string)
field(:avatar, DummyDefinition.Type)
end
def changeset(user, params \\ :in... | 35.779661 | 97 | 0.637849 |
2dd87a78aa8841acba8dd8ae75df342ca3270c85 | 75 | ex | Elixir | apps/faqcheck_web/lib/faqcheck_web/views/user_confirmation_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | apps/faqcheck_web/lib/faqcheck_web/views/user_confirmation_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | 20 | 2021-09-08T04:07:31.000Z | 2022-03-10T21:52:24.000Z | apps/faqcheck_web/lib/faqcheck_web/views/user_confirmation_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | defmodule FaqcheckWeb.UserConfirmationView do
use FaqcheckWeb, :view
end
| 18.75 | 45 | 0.84 |
2dd8861ffa7021517cc264eaa1fb7fc72d27175f | 944 | ex | Elixir | lib/example_web/controllers/health_controller.ex | ntilwalli/distillery-aws-example | bf9a0d31ab39e76869b32dfcb75e0cbcffbdfa9b | [
"Apache-2.0"
] | 1 | 2018-09-26T15:28:28.000Z | 2018-09-26T15:28:28.000Z | lib/example_web/controllers/health_controller.ex | ntilwalli/distillery-aws-example | bf9a0d31ab39e76869b32dfcb75e0cbcffbdfa9b | [
"Apache-2.0"
] | null | null | null | lib/example_web/controllers/health_controller.ex | ntilwalli/distillery-aws-example | bf9a0d31ab39e76869b32dfcb75e0cbcffbdfa9b | [
"Apache-2.0"
] | null | null | null | defmodule ExampleWeb.HealthController do
use ExampleWeb, :controller
require Logger
def healthz(conn, _params) do
if Example.Database.available?() do
healthy(conn)
else
degraded(conn, [database: :unavailable])
end
rescue
err ->
failed(conn, Exception.message(err))
end
def... | 24.842105 | 58 | 0.665254 |
2dd8937c6efdd60a4bf85e9fb6f6218c1e9e4edf | 7,626 | ex | Elixir | lib/network/server.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 8 | 2021-03-12T15:35:09.000Z | 2022-03-06T06:37:49.000Z | lib/network/server.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 2 | 2021-03-12T15:34:40.000Z | 2022-02-03T10:05:01.000Z | lib/network/server.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 5 | 2021-10-01T12:52:28.000Z | 2022-02-02T19:29:56.000Z | # Diode Server
# Copyright 2021 Diode
# Licensed under the Diode License, Version 1.1
defmodule Network.Server do
@moduledoc """
General TLS 1.2 socket server that ensures:
* Secp256k1 handshakes
* Identities on server and client
* Self-signed certs on both of them
Then it spawns client con... | 26.387543 | 122 | 0.583006 |
2dd8984428e8c694282e90562fc1817f21d7fdcd | 689 | ex | Elixir | lib/pontoon.ex | erik/pontoon | 87512e5020ca548cb2cb511d6c8379d5b58ac57d | [
"BSD-2-Clause"
] | null | null | null | lib/pontoon.ex | erik/pontoon | 87512e5020ca548cb2cb511d6c8379d5b58ac57d | [
"BSD-2-Clause"
] | null | null | null | lib/pontoon.ex | erik/pontoon | 87512e5020ca548cb2cb511d6c8379d5b58ac57d | [
"BSD-2-Clause"
] | null | null | null | defmodule Pontoon do
require Logger
use Application
defp get_env_to_int(name, default) do
case System.get_env(name) do
nil -> default
str -> String.to_integer(str)
end
end
def start(_type, _args) do
import Supervisor.Spec
options = [
rpc_port: get_env_to_int("RPC_PORT", 92... | 20.878788 | 61 | 0.656023 |
2dd8adbd5fda35078843c6cc6203b9744adb49be | 2,161 | exs | Elixir | config/dev.exs | ARtoriouSs/not_a_blog | 7e2810d1ae6f9fd579d2964981dbbeead7df1e79 | [
"MIT"
] | null | null | null | config/dev.exs | ARtoriouSs/not_a_blog | 7e2810d1ae6f9fd579d2964981dbbeead7df1e79 | [
"MIT"
] | null | null | null | config/dev.exs | ARtoriouSs/not_a_blog | 7e2810d1ae6f9fd579d2964981dbbeead7df1e79 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :not_a_blog, NotABlog.Repo,
username: "not_a_blog",
password: "not_a_blog",
database: "not_a_blog_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and cod... | 28.064935 | 68 | 0.694123 |
2dd8bcfdecfca7c8a68919fe639b2fb4b5057041 | 364 | exs | Elixir | phoenix_webpack/priv/repo/seeds.exs | davejmac/phoenix-webpack | b7d0076069529311abfa6d4b6eda332bb970a24b | [
"MIT"
] | null | null | null | phoenix_webpack/priv/repo/seeds.exs | davejmac/phoenix-webpack | b7d0076069529311abfa6d4b6eda332bb970a24b | [
"MIT"
] | null | null | null | phoenix_webpack/priv/repo/seeds.exs | davejmac/phoenix-webpack | b7d0076069529311abfa6d4b6eda332bb970a24b | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# PhoenixWebpack.Repo.insert!(%PhoenixWebpack.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on)... | 30.333333 | 62 | 0.717033 |
2dd8d4b6b48417bd690ce738acdf1a6c1ae62069 | 1,184 | ex | Elixir | app/lib/ubg5_web/endpoint.ex | finalclass/ubg5 | 237c51f4a54668cc8164382a3895d9dcf07ae6e0 | [
"MIT"
] | null | null | null | app/lib/ubg5_web/endpoint.ex | finalclass/ubg5 | 237c51f4a54668cc8164382a3895d9dcf07ae6e0 | [
"MIT"
] | 2 | 2021-03-09T13:44:12.000Z | 2021-05-10T05:02:52.000Z | app/lib/ubg5_web/endpoint.ex | finalclass/ubg5 | 237c51f4a54668cc8164382a3895d9dcf07ae6e0 | [
"MIT"
] | null | null | null | defmodule Ubg5Web.Endpoint do
use Phoenix.Endpoint, otp_app: :ubg5
socket "/socket", Ubg5Web.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static files i... | 26.311111 | 63 | 0.700169 |
2dd8ddb8b40995d8bfdbd1649bdb64e7957c7962 | 5,283 | ex | Elixir | coherence_demo_no_confirm/lib/coherence_demo_web/coherence_messages.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_no_confirm/lib/coherence_demo_web/coherence_messages.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_no_confirm/lib/coherence_demo_web/coherence_messages.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | defmodule CoherenceDemoWeb.Coherence.Messages do
@moduledoc """
Application facing messages generated by the Coherence application.
This module was created by the coh.install mix task. It contains all the
messages used in the coherence application except those in other generated
files like the view and templ... | 66.873418 | 137 | 0.770017 |
2dd93f3c234b03a9ef29181e1c055a98beb0e4ec | 1,893 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/source_instance_params.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/source_instance_params.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/source_instance_params.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... | 40.276596 | 380 | 0.759641 |
2dd9655c8ae2d7aeef7b282c42aabc54677e39c6 | 2,452 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_tree.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_tree.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_tree.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.275862 | 397 | 0.765905 |
2dd985d1849471a81824e7a3d4eef2fce3ef817f | 10,879 | ex | Elixir | lib/r_enum/active_support.ex | TORIFUKUKaiou/ex-r_enum | 5fd99b61dae3c7fe8fc3838158af342ff308dff1 | [
"Apache-2.0"
] | null | null | null | lib/r_enum/active_support.ex | TORIFUKUKaiou/ex-r_enum | 5fd99b61dae3c7fe8fc3838158af342ff308dff1 | [
"Apache-2.0"
] | null | null | null | lib/r_enum/active_support.ex | TORIFUKUKaiou/ex-r_enum | 5fd99b61dae3c7fe8fc3838158af342ff308dff1 | [
"Apache-2.0"
] | null | null | null | defmodule REnum.ActiveSupport do
import RUtils
import REnum.Support
import REnum.Ruby
@moduledoc """
Summarized all of Enumerable functions in Rails.ActiveSupport.
If a function with the same name already exists in Elixir, that is not implemented.
Defines all of here functions when `use RUtils`.
"""
... | 25.18287 | 181 | 0.556209 |
2dd99e5b1e3d753d79c5a2f03320977ee65f3503 | 122 | exs | Elixir | test/zigor_proxy_test.exs | SoroushMehrInst/ZigorProxy | a8571bb4a5bb8306c6c6c80a6b0a519161744c5e | [
"Apache-2.0"
] | null | null | null | test/zigor_proxy_test.exs | SoroushMehrInst/ZigorProxy | a8571bb4a5bb8306c6c6c80a6b0a519161744c5e | [
"Apache-2.0"
] | null | null | null | test/zigor_proxy_test.exs | SoroushMehrInst/ZigorProxy | a8571bb4a5bb8306c6c6c80a6b0a519161744c5e | [
"Apache-2.0"
] | null | null | null | defmodule ZigorProxyTest do
use ExUnit.Case
doctest ZigorProxy
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.555556 | 27 | 0.688525 |
2dd9c8779d6a9d469a7d98d77a99841cd1b49aaa | 150 | ex | Elixir | lib/elixir_groups_web/controllers/page_controller.ex | moxley/elixir_groups | cb37e0cec44316c17c60a0d12cfb0231d6b11eea | [
"Apache-2.0"
] | 2 | 2018-02-24T18:38:29.000Z | 2018-02-25T22:32:55.000Z | lib/elixir_groups_web/controllers/page_controller.ex | moxley/elixir_groups | cb37e0cec44316c17c60a0d12cfb0231d6b11eea | [
"Apache-2.0"
] | 2 | 2018-03-25T02:01:08.000Z | 2019-10-23T20:00:57.000Z | lib/elixir_groups_web/controllers/page_controller.ex | moxley/elixir_groups | cb37e0cec44316c17c60a0d12cfb0231d6b11eea | [
"Apache-2.0"
] | 1 | 2018-03-17T19:07:34.000Z | 2018-03-17T19:07:34.000Z | defmodule ElixirGroupsWeb.PageController do
use ElixirGroupsWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.75 | 43 | 0.76 |
2dd9d10792ebdeaa20cba89246a04601ca97af3d | 1,098 | exs | Elixir | config/dev.exs | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | 2 | 2015-08-04T02:04:56.000Z | 2016-06-18T00:43:10.000Z | config/dev.exs | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | null | null | null | config/dev.exs | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :my_app_7191136, MyApp_7191136.Endpoint,
http:... | 30.5 | 63 | 0.720401 |
2dd9de028b8298a3a7c07474f6bbd4764ce057a8 | 444 | exs | Elixir | spawn/working-with-multiple-processes-4.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | spawn/working-with-multiple-processes-4.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | spawn/working-with-multiple-processes-4.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule MultipleProcesses do
import :timer, only: [sleep: 1]
def sad_function(pid) do
send pid, { :ok, "Hello from child"}
raise("boom")
end
def run do
spawn_link(MultipleProcesses, :sad_function, [self()])
sleep 500
receive do
msg ->
IO.puts "Message received: #{inspec... | 21.142857 | 58 | 0.63964 |
2dd9e4f1ea0cc20d89c1527eff8e33f8a8478248 | 5,293 | ex | Elixir | lib/ecto_extract_migrations.ex | kianmeng/ecto_extract_migrations | 460df0cfb6d9d0fcf695254c36e055fcf75598da | [
"Apache-2.0"
] | 7 | 2020-09-02T14:50:12.000Z | 2021-11-12T20:07:36.000Z | lib/ecto_extract_migrations.ex | kianmeng/ecto_extract_migrations | 460df0cfb6d9d0fcf695254c36e055fcf75598da | [
"Apache-2.0"
] | 2 | 2020-10-31T12:17:25.000Z | 2020-11-05T13:13:13.000Z | lib/ecto_extract_migrations.ex | kianmeng/ecto_extract_migrations | 460df0cfb6d9d0fcf695254c36e055fcf75598da | [
"Apache-2.0"
] | 3 | 2020-10-31T11:46:31.000Z | 2022-02-11T15:23:10.000Z | defmodule EctoExtractMigrations do
@moduledoc """
The main entry point is lib/mix/tasks/ecto_extract_migrations.ex.
This module mainly has common library functions.
"""
@app :ecto_extract_migrations
require EEx
@template_execute_sql """
execute(
\"\"\"
<%= Regex.replace(~r/^/m, sql, "... | 32.875776 | 112 | 0.645003 |
2dda12e46358a445139158fa0828c6760cbacdb2 | 2,040 | ex | Elixir | clients/service_control/lib/google_api/service_control/v2/model/report_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_control/lib/google_api/service_control/v2/model/report_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_control/lib/google_api/service_control/v2/model/report_request.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.8 | 262 | 0.74951 |
2dda1b18ab10d89e9e630f30597b5afb08a46c53 | 1,075 | ex | Elixir | test/support/conn_case.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraphWeb.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, ... | 27.564103 | 74 | 0.724651 |
2dda7604318b176b4e931eb0e5ed3b01e791f962 | 1,896 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout_pages_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout_pages_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/store_layout_pages_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.92 | 212 | 0.751582 |
2dda9275f68541b31842da1e0339c99108093fb8 | 804 | ex | Elixir | test/support/channel_case.ex | ckruse/podlove-subscribe-button-test | f4ebceb0757cff46275313a3033d7e59962cea6e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | ckruse/podlove-subscribe-button-test | f4ebceb0757cff46275313a3033d7e59962cea6e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | ckruse/podlove-subscribe-button-test | f4ebceb0757cff46275313a3033d7e59962cea6e | [
"MIT"
] | null | null | null | defmodule PodloveSubscribeButtonWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test ca... | 23.647059 | 58 | 0.736318 |
2ddaa9cc984e2fa18e78bc098eceb1a313ee5871 | 71 | exs | Elixir | test/test_helper.exs | chaitanyapandit/phoenix_gon | cafd6ee815d25079a5955b910caa984903081dd5 | [
"MIT"
] | 98 | 2017-04-25T18:23:51.000Z | 2022-01-25T09:48:10.000Z | test/test_helper.exs | chaitanyapandit/phoenix_gon | cafd6ee815d25079a5955b910caa984903081dd5 | [
"MIT"
] | 21 | 2017-04-26T05:58:58.000Z | 2020-11-26T08:46:14.000Z | test/test_helper.exs | chaitanyapandit/phoenix_gon | cafd6ee815d25079a5955b910caa984903081dd5 | [
"MIT"
] | 18 | 2017-06-13T19:35:46.000Z | 2022-01-15T02:53:04.000Z | Code.require_file("support/router_helper.exs", __DIR__)
ExUnit.start()
| 23.666667 | 55 | 0.802817 |
2ddac9cdd180777addef002d72d038253bf7c4c7 | 514 | ex | Elixir | lib/live_sup_web/components/headers/projects_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/components/headers/projects_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/components/headers/projects_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Components.ProjectsHeaderComponent do
use LiveSupWeb, :component
def render(assigns) do
~H"""
<div class="justify-between flex flex-row space-x-4 border-b dark:border-primary-darker px-4 py-2">
<div class="flex items-center basis-4/5 flex-wrap">
<%= link "Home", class: "t... | 34.266667 | 155 | 0.659533 |
2ddb1fca0a6b26a0b2ef58f0ac7273fe01239fe4 | 392 | exs | Elixir | clients/cloud_shell/test/test_helper.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_shell/test/test_helper.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/test/test_helper.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | ExUnit.start()
defmodule GoogleApi.CloudShell.V1.TestHelper do
defmacro __using__(opts) do
quote do
use ExUnit.Case, unquote(opts)
import GoogleApi.CloudShell.V1.TestHelper
end
end
def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " "))
def for_scope(scope) do
... | 20.631579 | 83 | 0.701531 |
2ddb354d24feabd195525a5f4fd1e0817cc6fd73 | 805 | exs | Elixir | test/mix/tasks/redbird/delete_all_sessions_test.exs | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | test/mix/tasks/redbird/delete_all_sessions_test.exs | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | 1 | 2021-03-02T15:37:57.000Z | 2021-03-02T15:57:43.000Z | test/mix/tasks/redbird/delete_all_sessions_test.exs | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Redbird.DeleteAllSessionsTest do
use ExUnit.Case
alias Plug.Session.REDIS
setup do
on_exit(fn ->
Mix.Tasks.Redbird.DeleteAllSessions.run([])
end)
end
test "deletes all redbird session keys" do
conn = %{}
options = []
key = REDIS.put(conn, nil, %{foo: :bar}, opti... | 24.393939 | 58 | 0.653416 |
2ddb59b167c0ef6c2ce62ca9d2c01b2ed3d205a6 | 1,658 | ex | Elixir | lib/elixero/core_api/models/repeating_invoices/repeating_invoice.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | lib/elixero/core_api/models/repeating_invoices/repeating_invoice.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | lib/elixero/core_api/models/repeating_invoices/repeating_invoice.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.CoreApi.Models.RepeatingInvoices.RepeatingInvoice do
use Ecto.Schema
import Ecto.Changeset
@derive {Poison.Encoder, except: [:__meta__, :id]}
@fields [
:RepeatingInvoiceID,
:Type,
:LineAmountTypes,
:Reference,
:BrandingThemeID,
... | 32.509804 | 97 | 0.613993 |
2ddb662eaa6af6a834bf4dd147a4545ecb22863f | 46,644 | ex | Elixir | lib/ecto/association.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/association.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/association.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | import Ecto.Query, only: [from: 2, join: 4, distinct: 3]
defmodule Ecto.Association.NotLoaded do
@moduledoc """
Struct returned by associations when they are not loaded.
The fields are:
* `__field__` - the association field in `owner`
* `__owner__` - the schema that owns the association
* `__cardin... | 35.769939 | 122 | 0.657941 |
2ddb8248dc11abb2eefa66d0286b5e526bf171e5 | 4,136 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/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 ... | 37.6 | 173 | 0.676983 |
2ddb8c41b009d2fd3e6fe8089095bbcb244df448 | 2,788 | ex | Elixir | chromoid_link/lib/chromoid/ble_ctx.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_link/lib/chromoid/ble_ctx.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_link/lib/chromoid/ble_ctx.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.BLECtx do
use GenServer
require Logger
alias BlueHeron.HCI.Command.{
ControllerAndBaseband.WriteLocalName,
LEController.SetScanEnable
}
alias BlueHeron.HCI.Event.{
LEMeta.AdvertisingReport,
LEMeta.AdvertisingReport.Device
}
# Sets the name of the BLE device
@write_l... | 25.577982 | 109 | 0.660689 |
2ddb8fa38ec3c08a9d0c3f2b6b815f826ea6aa61 | 5,914 | ex | Elixir | lib/evercam_models/camera_activity.ex | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | lib/evercam_models/camera_activity.ex | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | lib/evercam_models/camera_activity.ex | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | defmodule CameraActivity do
use Evercam.Schema
@required_fields [:camera_id, :action]
@optional_fields [:access_token_id, :camera_exid, :name, :action, :extra, :done_at, :user_id]
schema "camera_activities" do
belongs_to :camera, Camera
belongs_to :access_token, AccessToken
field :action, :string... | 28.161905 | 141 | 0.62445 |
2ddba4c32665283bd691fe34e7c19f5bad21c9f7 | 1,239 | ex | Elixir | lib/tanks/game/operations.ex | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | lib/tanks/game/operations.ex | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | lib/tanks/game/operations.ex | marcinbiegun/elixir-tanks | 29a3beef303825a137249c8ae0a3ff21c33d9a1c | [
"MIT"
] | null | null | null | defmodule Tanks.Game.Operations do
def move_to_nonblocking(game_id, x, y, entities) do
entities =
entities
|> Enum.map(fn entity ->
position = entity.components.position
new_position_state = %{position.state | x: x, y: y}
new_position = ECS.Component.update(position.pid, new_po... | 31.769231 | 95 | 0.669895 |
2ddbc2f2812c62afb9864563c40ff7390460b859 | 545 | ex | Elixir | lib/aba/validator.ex | whitepaperclip/BigBrother | 9f81ab21c3197e2a60fe83ea367830f40e56f0cd | [
"MIT"
] | 1 | 2020-11-12T19:16:33.000Z | 2020-11-12T19:16:33.000Z | lib/aba/validator.ex | whitepaperclip/aba | 9f81ab21c3197e2a60fe83ea367830f40e56f0cd | [
"MIT"
] | null | null | null | lib/aba/validator.ex | whitepaperclip/aba | 9f81ab21c3197e2a60fe83ea367830f40e56f0cd | [
"MIT"
] | 1 | 2020-04-16T08:06:12.000Z | 2020-04-16T08:06:12.000Z | defmodule ABA.Validator do
@moduledoc false
@spec routing_number_valid?(any) :: boolean
def routing_number_valid?(routing_number) do
[a, b, c, d, e, f, g, h, i] =
routing_number
|> String.split("")
|> Enum.map(&Integer.parse/1)
|> Enum.map(fn
{digit, _} when is_integer(digit) ... | 22.708333 | 81 | 0.524771 |
2ddbd149ed0cfa718e0ca258d236fae32ccb636a | 55 | ex | Elixir | web/views/page_view.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | web/views/page_view.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | web/views/page_view.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | defmodule Yacht.PageView do
use Yacht.Web, :view
end
| 13.75 | 27 | 0.763636 |
2ddc119d0b9763c430c727e4d31320faf818ffbf | 360 | ex | Elixir | lib/blockfrost/shared/object_pin_info.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | lib/blockfrost/shared/object_pin_info.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | lib/blockfrost/shared/object_pin_info.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Shared.ObjectPinInfo do
use Blockfrost.Response.BaseSchema
@type t :: %__MODULE__{
ipfs_hash: String.t(),
state: :queued | :pinned | :unpinned | :failed | :gc
}
embedded_schema do
field(:ipfs_hash, :string)
field(:state, Ecto.Enum, values: [:queued, :pinn... | 25.714286 | 81 | 0.638889 |
2ddc51c94b3118bc7f4b5e96ebb8f51e23e5ed22 | 389 | ex | Elixir | lib/fake_status_api/application.ex | wesleimp/fake-status-api | 4f6e8fc011272901c9fb38645f504a5f900091f3 | [
"MIT"
] | null | null | null | lib/fake_status_api/application.ex | wesleimp/fake-status-api | 4f6e8fc011272901c9fb38645f504a5f900091f3 | [
"MIT"
] | null | null | null | lib/fake_status_api/application.ex | wesleimp/fake-status-api | 4f6e8fc011272901c9fb38645f504a5f900091f3 | [
"MIT"
] | null | null | null | defmodule FakeStatusAPI.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 = [
FakeStatusAPI.Endpoint
]
opts = [strategy: :one_for_one, name: FakeStatu... | 21.611111 | 67 | 0.722365 |
2ddc676af3daf80ca35419e4de5b18115aa5b39d | 198 | exs | Elixir | bowman/test/bowman_web/controllers/page_controller_test.exs | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | null | null | null | bowman/test/bowman_web/controllers/page_controller_test.exs | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | 3 | 2020-07-17T01:30:50.000Z | 2021-05-08T20:23:35.000Z | bowman/test/bowman_web/controllers/page_controller_test.exs | mudphone/bowman | e916d0921f259f2c9dcba9313a64402b0bc43f9e | [
"MIT"
] | null | null | null | defmodule BowmanWeb.PageControllerTest do
use BowmanWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22 | 60 | 0.676768 |
2ddc7c64c51e84f9e10168a6b8114e4fd030ca63 | 65 | ex | Elixir | plugins/one_wiki/lib/one_wiki_web/views/flex_bar_view.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_wiki/lib/one_wiki_web/views/flex_bar_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_wiki/lib/one_wiki_web/views/flex_bar_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWikiWeb.FlexBarView do
use OneWikiWeb, :view
end
| 13 | 35 | 0.8 |
2ddcb5183315e9d074b9a3a67ba7e85b6bb3c4e1 | 12,863 | ex | Elixir | lib/geometry/polygon_zm.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | lib/geometry/polygon_zm.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | 2 | 2020-10-25T10:06:07.000Z | 2020-10-26T18:15:20.000Z | lib/geometry/polygon_zm.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | defmodule Geometry.PolygonZM do
@moduledoc """
A polygon struct, representing a 3D polygon with a measurement.
A none empty line-string requires at least one ring with four points.
"""
alias Geometry.{GeoJson, LineStringZM, PolygonZM, WKB, WKT}
defstruct rings: []
@type t :: %PolygonZM{rings: [Geometr... | 28.712054 | 127 | 0.491487 |
2ddcbaa1ab2037ccef94ad8b9b32f4be5320d4f9 | 2,832 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/context.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.714286 | 176 | 0.730579 |
2ddcc584ea845d9b97620bdec4f15df0b1d42d7b | 3,521 | exs | Elixir | test/mock_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | null | null | null | test/mock_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | null | null | null | test/mock_test.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | null | null | null | defmodule MockTest do
use ExUnit.Case
import ExUnit.TestHelpers
defmodule SomeModule do
def f, do: :f
def m, do: :m
def f1(a), do: a
end
|> write_beam
defmodule SomeSpec do
use ESpec
context "with mock" do
before do
allow(SomeModule) |> to(accept(:f, fn a -> "mock! #{a... | 25.330935 | 73 | 0.591593 |
2ddcc9702a6527f6d344597aafca834612508f1c | 817 | exs | Elixir | mix.exs | jurraca/gun | 8b843a059a69311ae4d82db3cdef7d365f0b3c05 | [
"0BSD"
] | null | null | null | mix.exs | jurraca/gun | 8b843a059a69311ae4d82db3cdef7d365f0b3c05 | [
"0BSD"
] | null | null | null | mix.exs | jurraca/gun | 8b843a059a69311ae4d82db3cdef7d365f0b3c05 | [
"0BSD"
] | null | null | null | defmodule Gun.Mixfile do
use Mix.Project
def project do
[
app: :gun,
version: "2.0.0",
description: description(),
deps: deps(),
package: package()
]
end
defp description do
"""
HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
"""
end
defp deps do
... | 19.926829 | 91 | 0.531212 |
2ddccc43021986dbbdbd0b50280dcbc0b27627e6 | 5,039 | exs | Elixir | mix.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | mix.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | mix.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
aliases: aliases(),
app: :nys_etl,
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
deps: deps(),
docs: docs(),
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
rele... | 27.237838 | 124 | 0.538996 |
2ddd0795f7461fb4e6397899bd09f25cf034e9a2 | 340 | exs | Elixir | priv/repo/migrations/20220603190826_add_on_delete_cascade_to_site_checks.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 9 | 2015-10-04T11:47:19.000Z | 2019-12-09T16:02:23.000Z | priv/repo/migrations/20220603190826_add_on_delete_cascade_to_site_checks.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 14 | 2015-07-28T04:41:57.000Z | 2022-03-31T18:12:51.000Z | priv/repo/migrations/20220603190826_add_on_delete_cascade_to_site_checks.exs | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 1 | 2017-07-26T03:17:02.000Z | 2017-07-26T03:17:02.000Z | defmodule SituationRoom.Repo.Migrations.AddOnDeleteCascadeToSiteChecks do
use Ecto.Migration
def change do
execute "ALTER TABLE site_checks DROP CONSTRAINT site_checks_site_id_fkey;"
execute "ALTER TABLE site_checks ADD CONSTRAINT site_checks_site_id_fk FOREIGN KEY (site_id) REFERENCES sites(id) ON DELETE ... | 37.777778 | 137 | 0.820588 |
2ddd1192f0061d3e6f9740e1f600f4d54a33a1f8 | 300 | exs | Elixir | test/control/monoid/list_test.exs | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | 23 | 2015-10-04T20:49:56.000Z | 2022-01-09T19:35:52.000Z | test/control/monoid/list_test.exs | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | null | null | null | test/control/monoid/list_test.exs | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | 2 | 2015-10-11T22:07:56.000Z | 2015-12-21T13:56:07.000Z | defmodule Control.Monoid.ListTest do
use ExUnit.Case
import Control.Monoid
test "mempty" do
assert mempty([]) == []
end
test "mappend" do
assert [] |> mappend([]) == []
assert [1,2,3] |> mappend([]) == [1,2,3]
assert [1,2,3] |> mappend([4,5,6]) == [1,2,3,4,5,6]
end
end
| 20 | 55 | 0.556667 |
2ddd4248495f019776f2b1e142e11828fffd8d23 | 4,615 | exs | Elixir | test/appsignal/ecto_test.exs | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | test/appsignal/ecto_test.exs | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | test/appsignal/ecto_test.exs | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | defmodule Appsignal.EctoTest do
use ExUnit.Case
alias Appsignal.{FakeTransaction, Transaction}
setup do
{:ok, fake_transaction} = FakeTransaction.start_link()
{:ok, fake_transaction: fake_transaction}
end
describe "with a transaction" do
setup do
transaction = Transaction.start("test", :ht... | 28.312883 | 111 | 0.523944 |
2ddd4935354a1462563d9b7883eb01ccb0107f6f | 1,854 | ex | Elixir | lib/area.ex | joaoeliandro/api-heavy-processing | 4073b18e2e3e85f336e9d85d45f9cd8349805d51 | [
"MIT"
] | null | null | null | lib/area.ex | joaoeliandro/api-heavy-processing | 4073b18e2e3e85f336e9d85d45f9cd8349805d51 | [
"MIT"
] | null | null | null | lib/area.ex | joaoeliandro/api-heavy-processing | 4073b18e2e3e85f336e9d85d45f9cd8349805d51 | [
"MIT"
] | null | null | null | defmodule ApiHeavyProcessing.Area do
def call(%{"areas" => areas, "funcionarios" => employees}) do
formated_employes =
employees
|> Enum.map(fn employee -> new_map_employee_formated(employee) end)
min_max =
formated_employes
|> min_max_wage_by_area(areas)
%{min_max: min_max}
en... | 25.39726 | 73 | 0.607335 |
2ddd493a81769ea1510e25dae2e83ece59f11e15 | 310 | exs | Elixir | test/nomex/allocations_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-12-08T17:56:01.000Z | 2022-01-04T00:26:43.000Z | test/nomex/allocations_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2017-11-24T18:10:47.000Z | 2017-11-26T17:58:11.000Z | test/nomex/allocations_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-20T15:27:13.000Z | 2021-07-20T15:27:13.000Z | defmodule Nomex.AllocationsTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
test "allocations" do
use_cassette "allocations" do
{ :ok, response } = Nomex.Allocations.allocations
assert response.status_code == 200
assert response.body == []
end
end
end
| 22.142857 | 55 | 0.696774 |
2ddd51c80c88f59e0e63c87f9f6506d3218a35e3 | 688 | exs | Elixir | utils/mix.exs | aroojahmad/beta_curriculum | 635ac56f833c544483cbba20e8ecdba8494246f7 | [
"MIT"
] | 15 | 2022-02-26T08:00:13.000Z | 2022-03-28T05:06:19.000Z | utils/mix.exs | aroojahmad/beta_curriculum | 635ac56f833c544483cbba20e8ecdba8494246f7 | [
"MIT"
] | 19 | 2022-03-06T19:07:41.000Z | 2022-03-31T02:08:20.000Z | utils/mix.exs | aroojahmad/beta_curriculum | 635ac56f833c544483cbba20e8ecdba8494246f7 | [
"MIT"
] | 11 | 2022-03-02T13:00:18.000Z | 2022-03-22T22:19:57.000Z | defmodule Utils.MixProject do
use Mix.Project
def project do
[
app: :utils,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 20.235294 | 61 | 0.513081 |
2ddd54b3bf2d4723ce528b26feb1df17bf2de0f0 | 2,474 | exs | Elixir | test/views/progressions_view_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/views/progressions_view_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/views/progressions_view_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.ProgressionsViewTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
setup do
# Explicitly get a connection before each test
Sandbox.checkout(StepFlow.Repo)
end
@workflow ... | 25.505155 | 96 | 0.568715 |
2ddd623c570307ee7f267648218698716337c988 | 1,205 | ex | Elixir | lib/erlef_web/views/page_view.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/views/page_view.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/views/page_view.ex | RudolfMan/website | dacf833f043e22f8f297a149a7ecce0d2fdb1696 | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.PageView do
use ErlefWeb, :view
def subscribe_form do
"""
<form action="https://erlef.us20.list-manage.com/subscribe/post?u=8d8ff4d9284d463c374e574bb&id=8cad7357f8"
method="post" id="mc-embedded-subscribe-form"
name="mc-embedded-subscribe-form"
cl... | 40.166667 | 164 | 0.583402 |
2ddd88416b53aeada81eda7103af2e9909c3a630 | 616 | ex | Elixir | lib/enmity/gateway/operations.ex | Cantido/enmity | 385d6b54824e167a77b7eeab445a4e42ef19114e | [
"Unlicense",
"MIT"
] | 1 | 2019-11-25T11:09:04.000Z | 2019-11-25T11:09:04.000Z | lib/enmity/gateway/operations.ex | Cantido/enmity | 385d6b54824e167a77b7eeab445a4e42ef19114e | [
"Unlicense",
"MIT"
] | 7 | 2020-10-14T18:28:36.000Z | 2022-02-24T11:06:17.000Z | lib/enmity/gateway/operations.ex | Cantido/enmity | 385d6b54824e167a77b7eeab445a4e42ef19114e | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Enmity.Gateway.Operations do
def heartbeat(last_sequence_number) do
%{
"op" => 1,
"t" => "HEARTBEAT",
"d" => last_sequence_number
}
end
def identify(last_sequence_number) do
{osfamily, osname} = :os.type()
osname = "#{osfamily} #{to_string(osname)}"
%{
"op" ... | 21.241379 | 59 | 0.496753 |
2ddd8d43f85093fb17cf6925c4b4c6aef5fa20cd | 9,326 | exs | Elixir | test/pow/plug/session_test.exs | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | null | null | null | test/pow/plug/session_test.exs | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | null | null | null | test/pow/plug/session_test.exs | crooke/pow | 34ef1282260f2765b0b3df14485771b5e9c2094b | [
"MIT"
] | null | null | null | defmodule Pow.Plug.SessionTest do
use ExUnit.Case
doctest Pow.Plug.Session
alias Plug.{Conn, Test}
alias Pow.{Plug, Plug.Session, Store.Backend.EtsCache, Store.CredentialsCache}
alias Pow.Test.{ConnHelpers, Ecto.Users.User, EtsCacheMock}
@default_opts [
current_user_assigns_key: :current_user,
ses... | 31.400673 | 129 | 0.655801 |
2ddda3f665a23cc22a17d41622af3ae19d278661 | 1,616 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.32 | 143 | 0.718441 |
2dddacd8e3dffeb8a0fbaa4fd9cf0a2fa1f339ef | 3,077 | exs | Elixir | test/mix/tasks/ecto.migrations_test.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 384 | 2018-10-03T17:52:39.000Z | 2022-03-24T17:54:21.000Z | test/mix/tasks/ecto.migrations_test.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 357 | 2018-10-06T13:47:33.000Z | 2022-03-29T08:18:02.000Z | test/mix/tasks/ecto.migrations_test.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 251 | 2018-10-04T11:06:41.000Z | 2022-03-29T07:22:53.000Z | defmodule Mix.Tasks.Ecto.MigrationsTest do
use ExUnit.Case
import Mix.Tasks.Ecto.Migrations, only: [run: 3]
import Support.FileHelpers
migrations_path = Path.join([tmp_path(), inspect(Ecto.Migrations), "migrations"])
setup do
File.mkdir_p!(unquote(migrations_path))
:ok
end
defmodule Repo do
... | 27.473214 | 88 | 0.579136 |
2dddbc98994669e2c920c30fa10980002f3830ca | 17,375 | exs | Elixir | apps/api_web/test/api_web/controllers/route_controller_test.exs | mbta/automatic-fiesta | de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5 | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/test/api_web/controllers/route_controller_test.exs | mbta/automatic-fiesta | de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5 | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/test/api_web/controllers/route_controller_test.exs | mbta/automatic-fiesta | de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5 | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.RouteControllerTest do
use ApiWeb.ConnCase
@route %Model.Route{
id: "1",
agency_id: "1",
type: 1,
sort_order: 1,
description: "First Route",
fare_class: "Ferry",
short_name: "First",
long_name: "The First",
color: "FFFFFF",
text_color: "000000",
line_id:... | 33.542471 | 97 | 0.565065 |
2ddde116a3a85c8c726935f9b4a6cc9bd378d0d5 | 519 | ex | Elixir | lib/meteo_stick/station_supervisor.ex | NationalAssociationOfRealtors/meteo_stick | 2892158be4f79b98e6688a9364590bb06d6daf2b | [
"Apache-2.0"
] | 1 | 2016-10-18T19:15:36.000Z | 2016-10-18T19:15:36.000Z | lib/meteo_stick/station_supervisor.ex | NationalAssociationOfRealtors/meteo_stick | 2892158be4f79b98e6688a9364590bb06d6daf2b | [
"Apache-2.0"
] | null | null | null | lib/meteo_stick/station_supervisor.ex | NationalAssociationOfRealtors/meteo_stick | 2892158be4f79b98e6688a9364590bb06d6daf2b | [
"Apache-2.0"
] | null | null | null | defmodule MeteoStick.StationSupervisor do
use Supervisor
require Logger
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
worker(MeteoStick.WeatherStation, [], restart: :transient)
]
supervise(ch... | 24.714286 | 70 | 0.653179 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.