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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dde1be57ecc5e814d1ec15d508f18f8eff5faf9 | 381 | ex | Elixir | apps/jobex_web/lib/jobex_web/application.ex | andyl/jobex | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 10 | 2019-10-24T01:23:07.000Z | 2020-02-23T00:27:32.000Z | apps/jobex_web/lib/jobex_web/application.ex | andyl/crow | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 6 | 2021-03-09T18:41:09.000Z | 2021-05-27T13:02:42.000Z | apps/jobex_web/lib/jobex_web/application.ex | andyl/crow | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 1 | 2019-10-24T01:23:08.000Z | 2019-10-24T01:23:08.000Z | defmodule JobexWeb.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
JobexWeb.Endpoint
]
opts = [strategy: :one_for_one, name: JobexWeb.Supervisor]
Supervisor.start_link(children, opts)
end
def config_change(changed, _new, removed) do
JobexWe... | 19.05 | 62 | 0.706037 |
2dde5f0fe8e793ecac2f5e32afab14ac729beaae | 1,811 | exs | Elixir | mix.exs | Potrimpo/Multinode-MlDHT | 21860e68443f9e3d05225eb41e31cd4413361891 | [
"MIT"
] | null | null | null | mix.exs | Potrimpo/Multinode-MlDHT | 21860e68443f9e3d05225eb41e31cd4413361891 | [
"MIT"
] | null | null | null | mix.exs | Potrimpo/Multinode-MlDHT | 21860e68443f9e3d05225eb41e31cd4413361891 | [
"MIT"
] | null | null | null | defmodule MlDHT.Mixfile do
use Mix.Project
def project do
[app: :mldht,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
dialyzer: [
paths: [
... | 30.183333 | 316 | 0.581447 |
2dde711ff5a839d098fd50db5c69cacdacf4c783 | 207 | exs | Elixir | priv/repo/migrations/20180427132033_add_soft_delete_to_posts.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T15:46:49.000Z | 2021-01-13T15:46:49.000Z | priv/repo/migrations/20180427132033_add_soft_delete_to_posts.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | 1 | 2021-01-13T16:42:24.000Z | 2021-01-13T16:42:24.000Z | priv/repo/migrations/20180427132033_add_soft_delete_to_posts.exs | saycel/Litelist | 2a1f67385523e5388c431c307b4052a6f8778818 | [
"MIT"
] | null | null | null | defmodule Litelist.Repo.Migrations.AddSoftDeleteToPosts do
use Ecto.Migration
def change do
alter table(:posts) do
add :soft_delete, :boolean, default: false, required: true
end
end
end
| 20.7 | 64 | 0.729469 |
2ddeadb85d426db505724d3a50a8cfeb1627d5ad | 680 | exs | Elixir | elixir/otp_todo_app/mix.exs | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | 1 | 2019-11-28T09:26:00.000Z | 2019-11-28T09:26:00.000Z | elixir/otp_todo_app/mix.exs | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | elixir/otp_todo_app/mix.exs | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | defmodule Todo.MixProject do
use Mix.Project
def project do
[
app: :todo,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applicati... | 20.606061 | 88 | 0.535294 |
2ddeb9759d796abe6bc09a8a4da5a6c6a1176f7d | 1,682 | exs | Elixir | apps/ewallet_api/test/ewallet_api/config_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/config_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/config_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... | 31.148148 | 74 | 0.65874 |
2ddf0d2ed9a31cc2fde02d28fd9f811f158d898f | 2,325 | exs | Elixir | config/test.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"MIT"
] | 3 | 2016-08-08T07:07:35.000Z | 2019-11-08T05:20:31.000Z | config/test.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"MIT"
] | null | null | null | config/test.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"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... | 32.291667 | 73 | 0.717419 |
2ddf1d5946114fed9c730e52ffbdfaecaa74ab6f | 5,058 | exs | Elixir | apps/snitch_core/mix.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/mix.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/mix.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Core.Mixfile do
use Mix.Project
@version "0.0.1"
def project do
[
app: :snitch_core,
version: @version,
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.7.2",
... | 27.639344 | 92 | 0.533017 |
2ddf29b5ac700f9c05d91c4392e71fdba7d3c1e3 | 4,991 | ex | Elixir | lib/chunkr/pagination.ex | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 3 | 2021-09-15T13:21:37.000Z | 2021-10-14T06:07:49.000Z | lib/chunkr/pagination.ex | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 2 | 2021-09-20T16:39:56.000Z | 2021-10-14T18:38:34.000Z | lib/chunkr/pagination.ex | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 1 | 2021-09-20T16:19:13.000Z | 2021-09-20T16:19:13.000Z | defmodule Chunkr.Pagination do
@moduledoc """
Pagination functions.
This module provides the high-level pagination logic. Under the hood, it delegates to whatever
"planner" module is configured in the call to `use Chunkr, planner: YourApp.PaginationPlanner`.
Note that you'll generally want to call the `pagi... | 38.392308 | 99 | 0.68884 |
2ddf4fc0283f66c69d7409c70e3ef7075f88c820 | 98 | exs | Elixir | packages/templates/src/project/potionx/test/{{ appName }}_web/views/page_view_test.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | packages/templates/src/project/potionx/test/{{ appName }}_web/views/page_view_test.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | packages/templates/src/project/potionx/test/{{ appName }}_web/views/page_view_test.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule <%= webNamespace %>.PageViewTest do
use <%= webNamespace %>.ConnCase, async: true
end
| 24.5 | 47 | 0.714286 |
2ddf59e0c740cf81475e21484b6693ed8983b03b | 4,260 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_primitive_transformation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_primitive_transformation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_primitive_transformation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 45.806452 | 99 | 0.776056 |
2ddf69054786cedcb99c9cd6267717420a4c26f2 | 2,670 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/http_query_parameter_match.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/http_query_parameter_match.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/http_query_parameter_match.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... | 47.678571 | 418 | 0.741199 |
2ddf98fcb90dd8522a1748a0c0c567a5248eaa81 | 244 | exs | Elixir | kousa/priv/repo/migrations/20210214140430_twitter_id.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/priv/repo/migrations/20210214140430_twitter_id.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/priv/repo/migrations/20210214140430_twitter_id.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Beef.Repo.Migrations.TwitterId do
use Ecto.Migration
def change do
alter table(:users) do
add :twitterId, :text
end
create unique_index(:users, [:email])
create unique_index(:users, [:twitterId])
end
end
| 18.769231 | 45 | 0.684426 |
2ddfb27d6a3730bf81403868dd773f6e2051bfb4 | 1,340 | exs | Elixir | zipper/zipper.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | zipper/zipper.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | zipper/zipper.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | defrecord BinTree, value: nil, left: nil, right: nil do
@moduledoc """
A node in a binary tree.
`value` is the value of a node.
`left` is the left subtree (nil if no subtree).
`right` is the right subtree (nil if no subtree).
"""
record_type value: any, left: BinTree.t | nil, right: BinTree.t | nil
end
... | 20 | 71 | 0.590299 |
2ddfbca42ffd98485b5c42aabbf20c17b3ca69ab | 1,478 | ex | Elixir | lib/copan/consumers/appointment_created.ex | GabrielMalakias/Copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | 1 | 2019-01-19T00:53:07.000Z | 2019-01-19T00:53:07.000Z | lib/copan/consumers/appointment_created.ex | dkuku/copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | null | null | null | lib/copan/consumers/appointment_created.ex | dkuku/copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | 1 | 2020-01-29T21:46:16.000Z | 2020-01-29T21:46:16.000Z | defmodule Copan.Consumers.AppointmentCreated do
@behaviour GenRMQ.Consumer
require Logger
def start_link() do
GenRMQ.Consumer.start_link(__MODULE__, name: __MODULE__)
end
def init() do
host = System.get_env("RABBITMQ_HOST") || "localhost"
[
queue: "copan_appointment_created",
excha... | 26.392857 | 95 | 0.669824 |
2ddfc0a09b3be9d8d9eb331795c6340b1780c357 | 1,934 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/authorize_environment_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/authorize_environment_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/authorize_environment_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... | 36.490566 | 175 | 0.724922 |
2ddfd5b32bbe2986d9acedf31f9a370a446ff36a | 5,342 | ex | Elixir | lib/word_battle/game_state.ex | oskarkook/word_battle | 0811b1adca2ccdbd23b769f163e25b33fe3dc2d6 | [
"MIT"
] | null | null | null | lib/word_battle/game_state.ex | oskarkook/word_battle | 0811b1adca2ccdbd23b769f163e25b33fe3dc2d6 | [
"MIT"
] | null | null | null | lib/word_battle/game_state.ex | oskarkook/word_battle | 0811b1adca2ccdbd23b769f163e25b33fe3dc2d6 | [
"MIT"
] | null | null | null | defmodule WordBattle.GameState do
use GenServer
require Logger
alias WordBattle.GameDefinition
# === Client ===
def start(pids, opts \\ []) when is_list(pids) and is_list(opts) do
id = for _ <- 1..10, into: "", do: <<Enum.random('0123456789abcdef')>>
opts = Keyword.put(opts, :name, {:via, Registry, {... | 27.822917 | 135 | 0.630663 |
2de002c799decbb56f31515ed55d6fcbf553c978 | 8,571 | ex | Elixir | lib/firestorm_web/markdown/html_renderer.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | null | null | null | lib/firestorm_web/markdown/html_renderer.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | null | null | null | lib/firestorm_web/markdown/html_renderer.ex | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | 1 | 2020-03-20T12:58:37.000Z | 2020-03-20T12:58:37.000Z | # This is a clone of https://raw.githubusercontent.com/pragdave/earmark/894c3a70f47d586665a772b0151cb3b73a3e89bf/lib/earmark/html_renderer.ex
#
# Justification for forking this module:
# - Earmark explicitly provides support for this, but we can't reuse the
# existing render_* functions as they are private.
# - No ex... | 30.72043 | 141 | 0.578229 |
2de031006ced6d96b2c645ac7010d324865f26fb | 2,018 | ex | Elixir | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_pickup_services_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_pickup_services_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/shippingsettings_get_supported_pickup_services_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.690909 | 236 | 0.758176 |
2de0391d0411d6e2d386181a18cbc32e8a0813a7 | 491 | ex | Elixir | lib/jwt_claims/util.ex | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 10 | 2015-08-22T21:13:09.000Z | 2020-01-13T19:32:44.000Z | lib/jwt_claims/util.ex | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 5 | 2016-06-23T21:36:54.000Z | 2019-05-22T14:26:42.000Z | lib/jwt_claims/util.ex | pablodavila95/jwt_claims_ex | d83bc51de170d771fcdb8f46bb2f8ad3b80cf98f | [
"MIT"
] | 3 | 2016-01-25T23:57:06.000Z | 2020-10-01T17:21:52.000Z | defmodule JwtClaims.Util do
@moduledoc "Utility functions"
@m 1_000_000
@doc """
Time interval in seconds (floating point) since the Unix Epoch, 1970-01-01T00:00:00Z UTC,
ignoring leap seconds
cf. timex time.ex; https://github.com/bitwalker/timex
"""
def time_now, do: to_seconds(:os.timestamp)
@do... | 25.842105 | 91 | 0.688391 |
2de04d86f663ca8a664baa965498ee0117460632 | 619 | ex | Elixir | lib/wechat/config.ex | ZXYCir/wechat | 817cfb84243413d02e7169e1b9fa3c1a4be70ab4 | [
"MIT"
] | 36 | 2016-09-08T06:12:34.000Z | 2018-08-14T03:45:16.000Z | lib/wechat/config.ex | ZXYCir/wechat | 817cfb84243413d02e7169e1b9fa3c1a4be70ab4 | [
"MIT"
] | 15 | 2016-09-06T04:25:19.000Z | 2017-12-14T12:08:14.000Z | lib/wechat/config.ex | ZXYCir/wechat | 817cfb84243413d02e7169e1b9fa3c1a4be70ab4 | [
"MIT"
] | 10 | 2016-09-06T03:58:10.000Z | 2017-12-14T06:36:51.000Z | defmodule Wechat.Config do
@moduledoc """
Config for wechat API.
"""
@default_adapter_opts {Wechat.Adapters.Sandbox, []}
@doc """
Get wechat config.
"""
def config do
Application.get_all_env(:wechat)
end
@doc """
Get adapter config, default is `Wechat.Adapters.Sandbox`.
"""
def adapter_... | 17.194444 | 70 | 0.654281 |
2de0724213af34c8a5c1b73ac4b7007bca1ad22d | 1,657 | exs | Elixir | lib/elixir/test/elixir/tuple_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/tuple_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/tuple_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule TupleTest do
use ExUnit.Case, async: true
doctest Tuple
# Tuple-related functions in the Kernel module.
test "Kernel.elem/2" do
assert elem({:a, :b, :c}, 1) == :b
end
test "Kernel.put_elem/3" do
assert put_elem({:a, :b, :c}, 1, :d) == {:a,... | 25.106061 | 71 | 0.563669 |
2de07892425e64903333004c745ea8b9aa51cc60 | 949 | ex | Elixir | apps/cms/lib/search/facet.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/cms/lib/search/facet.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/cms/lib/search/facet.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule CMS.Search.Facet do
@moduledoc "Module for representation of a search facet"
defstruct label: :ignore,
value: "",
active?: false,
count: 0
@type t :: %__MODULE__{
label: String.t() | :ignore,
value: String.t(),
active?: boolean,
... | 27.114286 | 58 | 0.595364 |
2de096e9505cf48563044d259de8d5fd4de4dff0 | 604 | ex | Elixir | lib/countriex/country.ex | gvl/countriex | 4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe | [
"MIT"
] | null | null | null | lib/countriex/country.ex | gvl/countriex | 4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe | [
"MIT"
] | null | null | null | lib/countriex/country.ex | gvl/countriex | 4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe | [
"MIT"
] | null | null | null | defmodule Countriex.Country do
defstruct [
:address_format,
:alpha2,
:alpha3,
:alt_currency,
:continent,
:country_code,
:currency_code,
:eea_member,
:eu_member,
:gec,
:geo,
:international_prefix,
:ioc,
:languages_official,
:languages_spoken,
:name,
:... | 17.257143 | 39 | 0.630795 |
2de0bd404f1418dd75d7863a0261ee95b23ef6b6 | 1,662 | ex | Elixir | lib/file_uploader_web.ex | mazz/Phoenix-File-Upload | 7ab9438bce9c3839ce8129cccb60b40dff2cc538 | [
"MIT"
] | 3 | 2019-04-19T15:55:58.000Z | 2021-06-04T14:02:34.000Z | lib/file_uploader_web.ex | mazz/Phoenix-File-Upload | 7ab9438bce9c3839ce8129cccb60b40dff2cc538 | [
"MIT"
] | null | null | null | lib/file_uploader_web.ex | mazz/Phoenix-File-Upload | 7ab9438bce9c3839ce8129cccb60b40dff2cc538 | [
"MIT"
] | 2 | 2019-04-19T15:56:02.000Z | 2020-11-15T06:13:49.000Z | defmodule FileUploaderWeb 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 FileUploaderWeb, :controller
use FileUploaderWeb, :view
The definitions below will be executed for every view,... | 24.441176 | 69 | 0.697954 |
2de0cb2bb16edcd46d05520d98db4b3d828be693 | 1,666 | ex | Elixir | traceme/lib/traceme_web/endpoint.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | 9 | 2017-10-29T17:35:14.000Z | 2020-04-19T14:06:50.000Z | traceme/lib/traceme_web/endpoint.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | traceme/lib/traceme_web/endpoint.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | defmodule TracemeWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :traceme
socket "/socket", TracemeWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Sta... | 28.724138 | 95 | 0.707683 |
2de0cd9ac79181413207dd8eb99158cad99afec6 | 5,519 | ex | Elixir | lib/database/postgresql.ex | sbesnard/Plsm | a64c47d7c855ac131d585904f97ce39354fa5405 | [
"MIT"
] | null | null | null | lib/database/postgresql.ex | sbesnard/Plsm | a64c47d7c855ac131d585904f97ce39354fa5405 | [
"MIT"
] | null | null | null | lib/database/postgresql.ex | sbesnard/Plsm | a64c47d7c855ac131d585904f97ce39354fa5405 | [
"MIT"
] | null | null | null | defmodule Plsm.Database.PostgreSQL do
defstruct server: "localhost",
port: "5432",
username: "postgres",
password: "postgres",
database_name: "db",
database_schema: "public",
connection: nil
end
defimpl Plsm.Database, for: Plsm.Database.PostgreS... | 34.93038 | 105 | 0.642689 |
2de116dd6bc58d210617f5e31e81e923b3b77590 | 788 | ex | Elixir | web/modules/sql_dust/lib/sql_dust/utils/map_utils.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/modules/sql_dust/lib/sql_dust/utils/map_utils.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/modules/sql_dust/lib/sql_dust/utils/map_utils.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule SqlDust.MapUtils do
def get(map, key, default \\ nil) do
key = "#{key}"
if key |> String.length() > 255 do
default
else
Map.get(map, key, Map.get(map, String.to_atom(key), default))
end
end
def deep_merge(map1, map2) do
Map.keys(map1)
|> Enum.concat(Map.keys(map2))
... | 22.514286 | 68 | 0.544416 |
2de14d684e805cc921f6e3abee8317d7e97b90a2 | 2,805 | ex | Elixir | lib/before_send.ex | EnthuZiastic/absinthe_cache | 48059fa41f4d04ad819f1564e3ea4a7d3b5c69cf | [
"MIT"
] | 19 | 2020-02-06T09:26:28.000Z | 2022-02-18T01:17:40.000Z | lib/before_send.ex | EnthuZiastic/absinthe_cache | 48059fa41f4d04ad819f1564e3ea4a7d3b5c69cf | [
"MIT"
] | 1 | 2021-06-21T16:52:30.000Z | 2021-07-12T00:03:10.000Z | lib/before_send.ex | EnthuZiastic/absinthe_cache | 48059fa41f4d04ad819f1564e3ea4a7d3b5c69cf | [
"MIT"
] | 3 | 2021-05-24T08:36:11.000Z | 2021-08-05T07:47:26.000Z | defmodule AbsintheCache.BeforeSend do
@moduledoc ~s"""
Cache & Persist API Call Data right before sending the response.
This module is responsible for persisting the whole result of some queries
right before it is send to the client.
All queries that did not raise exceptions and were successfully handled
... | 37.4 | 88 | 0.689127 |
2de14def189cbf21ebb5843de363c73c84ad4a0b | 927 | ex | Elixir | test/support/channel_case.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | test/support/channel_case.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | test/support/channel_case.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | defmodule FooApi.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be a... | 22.609756 | 65 | 0.702265 |
2de162a86bc9a93518e47d39ff5ad218bc0ca39b | 1,574 | exs | Elixir | test/xdr/operations/bump_sequence_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/operations/bump_sequence_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/operations/bump_sequence_result_code_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.BumpSequenceResultCodeTest do
use ExUnit.Case
alias StellarBase.XDR.Operations.BumpSequenceResultCode
describe "BumpSequenceResultCode" do
setup do
%{
code: :BUMP_SEQUENCE_SUCCESS,
result: BumpSequenceResultCode.new(:BUMP_SEQUENCE_SUCCESS),
... | 31.48 | 85 | 0.675349 |
2de191f254ca44920ad34334bcd8134b0318d0bb | 274 | exs | Elixir | priv/repo/migrations/20190211103356_create_capitals_distances.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 15 | 2018-12-26T10:31:16.000Z | 2020-12-01T09:27:01.000Z | priv/repo/migrations/20190211103356_create_capitals_distances.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 267 | 2018-12-26T07:46:17.000Z | 2020-04-04T17:05:47.000Z | priv/repo/migrations/20190211103356_create_capitals_distances.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 1 | 2019-07-12T13:53:25.000Z | 2019-07-12T13:53:25.000Z | defmodule Co2Offset.Repo.Migrations.CreateDistances do
use Ecto.Migration
def change do
create table(:distances) do
add :from, :string
add :to, :string
add :distance, :float
add :transport_type, :string
timestamps()
end
end
end
| 18.266667 | 54 | 0.656934 |
2de19f416f7f9ab62e8061ba1f30a3cb718bb343 | 1,535 | ex | Elixir | lib/mailchimp/link.ex | pcarvsilva/mailchimp | 3e15a6c0612581045f7e611b6d3e680185b9bff4 | [
"MIT"
] | null | null | null | lib/mailchimp/link.ex | pcarvsilva/mailchimp | 3e15a6c0612581045f7e611b6d3e680185b9bff4 | [
"MIT"
] | null | null | null | lib/mailchimp/link.ex | pcarvsilva/mailchimp | 3e15a6c0612581045f7e611b6d3e680185b9bff4 | [
"MIT"
] | null | null | null | defmodule Mailchimp.Link do
@moduledoc """
Stores links for a given Entity in Mailchimp's API
### Struct Fields
* `rel` - As with an HTML rel attribute, this describes the type of link.
* `href` - This property contains a fully-qualified URL that can be called to retrieve the linked resource or perfor... | 29.519231 | 174 | 0.661889 |
2de1a38951dd055bdb586908b6459082693f9bb0 | 374 | ex | Elixir | backend/web/views/error_view.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/web/views/error_view.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/web/views/error_view.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | defmodule Backend.ErrorView do
use Backend.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template,... | 20.777778 | 47 | 0.697861 |
2de1ac5d629fb406c36dac83351482339cccd963 | 404 | exs | Elixir | programming/elixir/learning_elixir_code_bundle/code/chapter9/context2.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | 1 | 2020-01-09T03:22:09.000Z | 2020-01-09T03:22:09.000Z | elixir/tour/learning_elixir_code_bundle/code/chapter9/context2.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | elixir/tour/learning_elixir_code_bundle/code/chapter9/context2.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | defmodule MacroContext do
defmacro info do
IO.puts "Macro context: (#{__MODULE__})"
quote do
IO.puts "Caller context: (#{__MODULE__})"
def some_info do
IO.puts """
I am #{__MODULE__} and I come with the following:
#{inspect __info__(:functions)}
"""
end
... | 18.363636 | 57 | 0.621287 |
2de1bb3d756dfe3999feeb4799f37e4dde5f1f5e | 1,129 | exs | Elixir | test/membrane_tee_plugin/master/pipeline_master_test.exs | membraneframework/membrane_tee_plugin | d453c01e00783502ad5945e594fb2450c2492ab7 | [
"Apache-2.0"
] | 1 | 2022-03-03T11:56:40.000Z | 2022-03-03T11:56:40.000Z | test/membrane_tee_plugin/master/pipeline_master_test.exs | membraneframework/membrane_tee_plugin | d453c01e00783502ad5945e594fb2450c2492ab7 | [
"Apache-2.0"
] | null | null | null | test/membrane_tee_plugin/master/pipeline_master_test.exs | membraneframework/membrane_tee_plugin | d453c01e00783502ad5945e594fb2450c2492ab7 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Tee.PipelineMasterTest do
@moduledoc false
use ExUnit.Case
use Bunch
import Membrane.Testing.Assertions
alias Membrane.Buffer
alias Membrane.Testing.{Source, Pipeline, Sink}
def make_pipeline(data) do
import Membrane.ParentSpec
Pipeline.start_link(
children: [
... | 25.088889 | 65 | 0.641275 |
2de1c970c1e0a6cd14c916b0e7557f332f0c7d0d | 569 | ex | Elixir | lib/cadet_web/admin_views/admin_courses_view.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | lib/cadet_web/admin_views/admin_courses_view.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | lib/cadet_web/admin_views/admin_courses_view.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule CadetWeb.AdminCoursesView do
use CadetWeb, :view
def render("assessment_configs.json", %{configs: configs}) do
render_many(configs, CadetWeb.AdminCoursesView, "config.json", as: :config)
end
def render("config.json", %{config: config}) do
transform_map_for_view(config, %{
assessmentCon... | 29.947368 | 79 | 0.725835 |
2de1d3be0d3877b5e21d37c31026830ebe1cbf06 | 13,545 | ex | Elixir | lib/ex_oapi/client.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/client.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/client.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | defmodule ExOAPI.Client do
alias ExOAPI.Parser.V3.Context
alias Context.Operation
@moduledoc """
The client module used to provide an api for generating requests programatically
inside the generated SDK functions.
"""
@parsable_response_type ["application/json", "text/json", "*/*"]
defstruct [
:m... | 30.234375 | 129 | 0.568992 |
2de1e4a746deb64d7eef640167fd65548f75e88b | 1,596 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_certificate.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_certificate.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_certificate.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.957447 | 149 | 0.756892 |
2de1f76a7854053ddf3dc1031a784263b15f0707 | 703 | exs | Elixir | test/legend_test.exs | naramore/legend | 030cacbb761de27c8db73a321ebd2fda51152a15 | [
"MIT"
] | null | null | null | test/legend_test.exs | naramore/legend | 030cacbb761de27c8db73a321ebd2fda51152a15 | [
"MIT"
] | 16 | 2019-01-15T10:18:03.000Z | 2019-10-22T10:17:06.000Z | test/legend_test.exs | naramore/legend | 030cacbb761de27c8db73a321ebd2fda51152a15 | [
"MIT"
] | null | null | null | defmodule LegendTest do
use ExUnit.Case
doctest Legend
end
# TODO: PropCheck generators for Legend.{Stage, Hook, ErrorHandler, Retry}
# in test/support/generators.ex
# TODO: create functions that will do fake, repeatable, work w/o :time.sleep/1
# TODO: benchfella micro-benchmarking of piped/with-clause funct... | 22.677419 | 78 | 0.773826 |
2de2494d12936eaeb4536216136c3c316cc8b087 | 2,039 | ex | Elixir | lib/opencv_nx.ex | rubysolo/evision | e4750224d9fefc15f196b20a86bd2de4dce4e9ca | [
"Apache-2.0"
] | null | null | null | lib/opencv_nx.ex | rubysolo/evision | e4750224d9fefc15f196b20a86bd2de4dce4e9ca | [
"Apache-2.0"
] | null | null | null | lib/opencv_nx.ex | rubysolo/evision | e4750224d9fefc15f196b20a86bd2de4dce4e9ca | [
"Apache-2.0"
] | null | null | null | defmodule Evision.Nx do
@moduledoc """
OpenCV mat to Nx tensor.
`:nx` is an optional dependency, so if you want to use
functions in `OpenCV.Nx`, you need to add it to the dependency
list.
"""
import Evision.Errorize
unless Code.ensure_loaded?(Nx) do
@compile {:no_warn_undefined, Nx}
end
@do... | 25.4875 | 76 | 0.592938 |
2de27aa58e5d128c51c842ca277ac8ed2c3a97be | 226 | ex | Elixir | NEST-14.0-FPGA/debian/nest-default.ex | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 45 | 2019-12-09T06:45:53.000Z | 2022-01-29T12:16:41.000Z | NEST-14.0-FPGA/debian/nest-default.ex | zlchai/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 2 | 2020-05-23T05:34:21.000Z | 2021-09-08T02:33:46.000Z | NEST-14.0-FPGA/debian/nest-default.ex | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 10 | 2019-12-09T06:45:59.000Z | 2021-03-25T09:32:56.000Z | # Defaults for nest initscript
# sourced by /etc/init.d/nest
# installed at /etc/default/nest by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
| 20.545455 | 58 | 0.752212 |
2de2b4fe8cd67e78f7e118a3330d781f441c23f7 | 314 | exs | Elixir | config/test.exs | cas27/ex_taxjar | 507d474dbd7e72a21b2e14194b39170b535913bc | [
"MIT"
] | 6 | 2018-04-13T17:50:57.000Z | 2019-09-08T01:25:56.000Z | config/test.exs | cas27/ex_taxjar | 507d474dbd7e72a21b2e14194b39170b535913bc | [
"MIT"
] | null | null | null | config/test.exs | cas27/ex_taxjar | 507d474dbd7e72a21b2e14194b39170b535913bc | [
"MIT"
] | 1 | 2021-06-24T20:11:16.000Z | 2021-06-24T20:11:16.000Z | use Mix.Config
config :ex_taxjar,
api_key: System.get_env("TAXJAR_SB_API_KEY"),
end_point: "https://api.sandbox.taxjar.com/v2"
config :exvcr,
filter_sensitive_data: [
[pattern: "Bearer [0-9a-z]+", placeholder: "<<access_key>>"]
],
response_headers_blacklist: ["Set-Cookie", "X-Request-Id", "Etag"]
| 26.166667 | 68 | 0.694268 |
2de2bddd7c31045518b488174ecb4d99e44f39da | 637 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/60.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/60.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/60.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
noun cm noun cm cardinal;
pnoun cm adjective adjective cardinal;
pnoun cm adjective noun cardinal;
pnoun cm noun cm cardinal;
pnoun pnoun noun cm cardinal;
cm adjective pnoun cm cardinal;
pnoun cm cardinal particle cardinal;
conj noun adjective noun cardinal;
verb adjective cardinal noun card... | 28.954545 | 39 | 0.78022 |
2de2c732a7e8320ab639f6aaff4f6d46b0b880eb | 1,855 | ex | Elixir | lib/typo_paint_web.ex | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 4 | 2019-07-31T03:34:19.000Z | 2019-08-03T04:53:48.000Z | lib/typo_paint_web.ex | elixir-sea/typo_kart | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T04:18:58.000Z | 2019-08-05T00:00:07.000Z | lib/typo_paint_web.ex | elixir-sea/typo_paint | 61183f0a450e62ce1f561635ed39965fc9fe770d | [
"CC-BY-4.0"
] | 3 | 2019-07-31T05:55:25.000Z | 2019-09-15T22:31:32.000Z | defmodule TypoPaintWeb 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 TypoPaintWeb, :controller
use TypoPaintWeb, :view
The definitions below will be executed for every view,
contro... | 25.410959 | 97 | 0.695957 |
2de324ce3fb4339c38d1cee39857dd8abe48cb7c | 1,207 | ex | Elixir | lib/page_change_notifier_web/channels/user_socket.ex | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | lib/page_change_notifier_web/channels/user_socket.ex | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | lib/page_change_notifier_web/channels/user_socket.ex | elitau/page_change_notifier | 55c02ef0a464040d98cf416c131e39e7a09df975 | [
"MIT"
] | null | null | null | defmodule PageChangeNotifierWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PageChangeNotifierWeb.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# ... | 31.763158 | 93 | 0.710853 |
2de35711aa6f3a74c5ee51721130256740611848 | 2,464 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_processing_details_processing_progress.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_processing_details_processing_progress.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_processing_details_processing_progress.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... | 46.490566 | 520 | 0.75487 |
2de3637eaa516a07b2a146811b0ad02787cd40b4 | 372 | ex | Elixir | test/example_domain/bank_account/withdraw_money_handler.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/example_domain/bank_account/withdraw_money_handler.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/example_domain/bank_account/withdraw_money_handler.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.ExampleDomain.WithdrawMoneyHandler do
@moduledoc false
@behaviour Commanded.Commands.Handler
alias Commanded.ExampleDomain.BankAccount
alias Commanded.ExampleDomain.BankAccount.Commands.WithdrawMoney
def handle(%BankAccount{} = aggregate, %WithdrawMoney{} = withdraw_money) do
BankAc... | 28.615385 | 78 | 0.814516 |
2de3683f4e1edd89e9cfe4d2d7662c21e9d3a6f5 | 14,068 | exs | Elixir | test/teslamate_web/live/car_summary_live_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | null | null | null | test/teslamate_web/live/car_summary_live_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2021-05-12T00:04:50.000Z | 2021-05-12T00:04:50.000Z | test/teslamate_web/live/car_summary_live_test.exs | ograff/teslamate | 677891833623df115c5d4fc8278c298697c45a61 | [
"MIT"
] | 1 | 2019-10-24T13:17:57.000Z | 2019-10-24T13:17:57.000Z | defmodule TeslaMateWeb.CarLive.SummaryTest do
use TeslaMateWeb.ConnCase
use TeslaMate.VehicleCase
alias TeslaApi.Vehicle.State.VehicleState.SoftwareUpdate
alias TeslaMate.{Locations, Settings, Log, Repo}
defp table_row(html, key, value, opts \\ []) do
assert {"tr", _, [{"td", _, [^key]}, {"td", [], [v]}... | 29.868365 | 97 | 0.50462 |
2de39bf8efab4081f69db34b68ff711b8c9be22a | 261 | ex | Elixir | lib/price_tracker.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | lib/price_tracker.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | lib/price_tracker.ex | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | defmodule PriceTracker do
@moduledoc """
PriceTracker keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.1 | 66 | 0.762452 |
2de3ad6ea1a7158b0d673286f8960f6e45e75373 | 2,384 | ex | Elixir | clients/firebase/lib/google_api/firebase/v1beta1/model/admin_sdk_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/admin_sdk_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/admin_sdk_config.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.25 | 134 | 0.711409 |
2de3cd00f8ca168c99bb9d7e449ed359e5d6e9b7 | 4,409 | ex | Elixir | lib/qldbex.ex | Astrocoders/qldbex | c0a13030d3c96c716681681fb20e5656d1bb1498 | [
"MIT"
] | 2 | 2020-05-19T13:44:00.000Z | 2020-07-23T02:27:52.000Z | lib/qldbex.ex | Astrocoders/qldbex | c0a13030d3c96c716681681fb20e5656d1bb1498 | [
"MIT"
] | null | null | null | lib/qldbex.ex | Astrocoders/qldbex | c0a13030d3c96c716681681fb20e5656d1bb1498 | [
"MIT"
] | null | null | null | defmodule Qldbex do
@moduledoc false
alias Qldbex.Session
alias Qldbex.Native
defp prepare_request!(ledger_name) do
{:ok, %{"StartSession" => %{"SessionToken" => session_token}}} =
Session.start_session(ledger_name)
|> ExAws.request()
{:ok, %{"StartTransaction" => %{"TransactionId" => tran... | 26.721212 | 97 | 0.66024 |
2de3ce126a0bd02d6b1d1145b35e9bec3b750a98 | 338 | exs | Elixir | exercises/leap/leap.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/leap/leap.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/leap/leap.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | defmodule Year do
@doc """
Returns whether 'year' is a leap year.
A leap year occurs:
on every year that is evenly divisible by 4
except every year that is evenly divisible by 100
unless the year is also evenly divisible by 400
"""
@spec leap_year?(non_neg_integer) :: boolean
def leap_year?(ye... | 21.125 | 53 | 0.698225 |
2de3d8d0306c706df4a7b2bcd72b449209306a59 | 265 | ex | Elixir | lib/mdns_lite/if_info.ex | amclain/mdns_lite | a09a23561cf5697f0dd80497d5508ffd4685ecb8 | [
"Apache-2.0"
] | 28 | 2020-08-25T15:26:02.000Z | 2022-01-25T00:25:13.000Z | lib/mdns_lite/if_info.ex | amclain/mdns_lite | a09a23561cf5697f0dd80497d5508ffd4685ecb8 | [
"Apache-2.0"
] | 19 | 2020-06-12T22:12:49.000Z | 2022-02-08T22:12:16.000Z | lib/mdns_lite/if_info.ex | amclain/mdns_lite | a09a23561cf5697f0dd80497d5508ffd4685ecb8 | [
"Apache-2.0"
] | 7 | 2020-07-31T08:46:15.000Z | 2022-01-23T10:11:01.000Z | defmodule MdnsLite.IfInfo do
@moduledoc false
# TODO: Delete module
defstruct ipv4_address: nil, ipv6_addresses: []
@type t() :: %__MODULE__{
ipv4_address: :inet.ip4_address() | nil,
ipv6_addresses: [:inet.ip6_address()]
}
end
| 22.083333 | 50 | 0.641509 |
2de4104f8b1d926385e66e3191968f213c61a1c8 | 1,619 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.651163 | 381 | 0.74614 |
2de42539473683ade4988f777da8f2b0713c3b3f | 594 | ex | Elixir | web/router.ex | s-capybara/rumbl | 29aad4f925b92b781bd7cc4a8109f5732e93f5ed | [
"MIT"
] | null | null | null | web/router.ex | s-capybara/rumbl | 29aad4f925b92b781bd7cc4a8109f5732e93f5ed | [
"MIT"
] | null | null | null | web/router.ex | s-capybara/rumbl | 29aad4f925b92b781bd7cc4a8109f5732e93f5ed | [
"MIT"
] | null | null | null | defmodule Rumbl.Router do
use Rumbl.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 "/", Rumbl do
pipe_through :br... | 20.482759 | 57 | 0.659933 |
2de45b937d7b1bd830dec3f81f900cd22ad24cec | 479 | ex | Elixir | look_and_say/elixir1/lib/look_and_say.ex | mikestok/tpm-2016-07 | a3775073859476c34c755657aa7e99f2b5bb970e | [
"MIT"
] | 1 | 2016-07-19T23:08:58.000Z | 2016-07-19T23:08:58.000Z | look_and_say/elixir1/lib/look_and_say.ex | mikestok/tpm-2016-07 | a3775073859476c34c755657aa7e99f2b5bb970e | [
"MIT"
] | null | null | null | look_and_say/elixir1/lib/look_and_say.ex | mikestok/tpm-2016-07 | a3775073859476c34c755657aa7e99f2b5bb970e | [
"MIT"
] | null | null | null | defmodule LookAndSay do
def main([string, n]) do
string
|> look_and_say_n_times(String.to_integer(n))
|> String.length
|> IO.puts
end
def look_and_say_n_times(string, n) do
string
|> Stream.iterate(&look_and_say/1)
|> Stream.drop(n)
|> Enum.take(1)
|> List.first
end
def l... | 20.826087 | 73 | 0.632568 |
2de468a840bb97600f3a5bb34ea3677e3d194916 | 3,122 | ex | Elixir | lib/bitpal_factory/settings_factory.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal_factory/settings_factory.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal_factory/settings_factory.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPalFactory.SettingsFactory do
import BitPalFactory.FactoryHelpers
alias BitPal.Currencies
alias BitPalFactory.CurrencyFactory
alias BitPalFactory.StoreFactory
alias BitPalSchemas.AddressKey
alias BitPalSchemas.Currency
alias BitPalSchemas.Invoice
alias BitPalSchemas.Store
alias BitPalSett... | 30.31068 | 87 | 0.726457 |
2de47f610fcc2dfeda16a086ba1c304b3ca5b364 | 2,498 | exs | Elixir | config/prod.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | config/prod.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | config/prod.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.441558 | 86 | 0.722178 |
2de4b75576f960361367b424e84a963a227501f2 | 3,553 | exs | Elixir | test/decoder/decoding_test.exs | membraneframework/membrane_ffmpeg_h264_plugin | 071265b0d9644120eafe446f23e6f21bfe0e3a29 | [
"Apache-2.0"
] | 4 | 2019-01-02T01:32:39.000Z | 2020-01-29T19:35:30.000Z | test/decoder/decoding_test.exs | membraneframework/membrane_ffmpeg_h264_plugin | 071265b0d9644120eafe446f23e6f21bfe0e3a29 | [
"Apache-2.0"
] | 4 | 2020-01-27T18:42:27.000Z | 2020-08-24T14:29:27.000Z | test/decoder/decoding_test.exs | membraneframework/membrane_ffmpeg_h264_plugin | 071265b0d9644120eafe446f23e6f21bfe0e3a29 | [
"Apache-2.0"
] | 1 | 2020-01-27T18:33:07.000Z | 2020-01-27T18:33:07.000Z | defmodule DecoderTest do
use ExUnit.Case
use Membrane.Pipeline
import Membrane.Testing.Assertions
alias Membrane.H264
alias Membrane.H264.FFmpeg.Common
alias Membrane.Testing
alias Membrane.Testing.Pipeline
@framerate 30
defp prepare_paths(filename, tmp_dir) do
in_path = "../fixtures/input-#{f... | 29.363636 | 84 | 0.680552 |
2de4ba0e3e6bb14b2315a81a5234fc8b6d73df25 | 1,889 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/ads_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/ads_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/ads_list_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... | 35.641509 | 151 | 0.716252 |
2de4c2dc72062140a9568f2bf1cd2f61f78529d6 | 131 | ex | Elixir | lib/algae/id/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 191 | 2016-08-22T17:34:45.000Z | 2019-05-28T19:02:39.000Z | lib/algae/id/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 35 | 2016-08-30T20:56:22.000Z | 2019-05-02T17:32:31.000Z | lib/algae/id/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 10 | 2016-08-30T18:41:54.000Z | 2019-02-14T14:14:55.000Z | import TypeClass
use Witchcraft
definst Witchcraft.Apply, for: Algae.Id do
def convey(data, %{id: fun}), do: map(data, fun)
end
| 18.714286 | 50 | 0.725191 |
2de4ce464548abc6eb965253125f8f8cc1e4d603 | 2,530 | ex | Elixir | lib/ex_twilio/config.ex | SherSpock/ex_twilio | 88d52ed6d0075f2f43e3562e073f04393a57a94d | [
"MIT"
] | null | null | null | lib/ex_twilio/config.ex | SherSpock/ex_twilio | 88d52ed6d0075f2f43e3562e073f04393a57a94d | [
"MIT"
] | null | null | null | lib/ex_twilio/config.ex | SherSpock/ex_twilio | 88d52ed6d0075f2f43e3562e073f04393a57a94d | [
"MIT"
] | 1 | 2021-11-09T07:56:11.000Z | 2021-11-09T07:56:11.000Z | defmodule ExTwilio.Config do
@moduledoc """
Stores configuration variables used to communicate with Twilio's API.
All settings also accept `{:system, "ENV_VAR_NAME"}` to read their
values from environment variables at runtime.
"""
@doc """
Returns the Twilio Account SID. Set it in `mix.exs`:
conf... | 31.625 | 89 | 0.696047 |
2de537b5b24ecc348ea3c441aabf8d2365d555ea | 13,984 | exs | Elixir | test/sanbase_web/graphql/projects/project_api_token_top_transfers_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase_web/graphql/projects/project_api_token_top_transfers_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase_web/graphql/projects/project_api_token_top_transfers_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.ProjectApiTokenTopTransactionsTest do
use SanbaseWeb.ConnCase, async: false
import Sanbase.Factory
import SanbaseWeb.Graphql.TestHelpers
require Sanbase.Utils.Config
setup do
%{
project: insert(:random_erc20_project),
project_no_contract: insert(:random_erc20_pr... | 34.190709 | 106 | 0.567363 |
2de5a260836ab6adae756cfc168657a4747be325 | 64 | exs | Elixir | test/test_helper.exs | tanweerdev/guardian_db | 00d775cb538db205b8e6d720bff941d53558b5d2 | [
"MIT"
] | null | null | null | test/test_helper.exs | tanweerdev/guardian_db | 00d775cb538db205b8e6d720bff941d53558b5d2 | [
"MIT"
] | null | null | null | test/test_helper.exs | tanweerdev/guardian_db | 00d775cb538db205b8e6d720bff941d53558b5d2 | [
"MIT"
] | null | null | null | {:ok, _pid} = Guardian.DB.Test.Repo.start_link()
ExUnit.start()
| 21.333333 | 48 | 0.703125 |
2de5e7ba08e21e6cea5253a697346fdd7623da6b | 2,268 | ex | Elixir | lib/pigeon/apns/shared.ex | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | null | null | null | lib/pigeon/apns/shared.ex | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | null | null | null | lib/pigeon/apns/shared.ex | Frameio/pigeon | 7de765179f74dbf13fbcc9cbe9ae1de59fe953e2 | [
"MIT"
] | null | null | null | defmodule Pigeon.APNS.Shared do
@moduledoc false
import Pigeon.Tasks, only: [process_on_response: 2]
alias Pigeon.APNS.{Config, Error, JWTConfig, Notification}
@type config :: Config.t() | JWTConfig.t()
@type headers :: [{binary(), any()}]
@spec worker_name(any) :: atom | nil
def worker_name(%{name: ... | 26.682353 | 76 | 0.64418 |
2de60481689e460475942d06b3220cdc27571452 | 1,197 | exs | Elixir | apps/artemis/config/config.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis/config/config.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 3 | 2019-03-05T23:55:09.000Z | 2019-05-29T13:46:34.000Z | apps/artemis/config/config.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | use Mix.Config
config :artemis,
ecto_repos: [Artemis.Repo]
config :artemis, :actions,
# NOTE: When adding action entries, also update `config/test.exs`
repo_delete_all: [
enabled: System.get_env("ARTEMIS_ACTION_REPO_DELETE_ALL_ENABLED")
],
repo_generate_filler_data: [
enabled: System.get_env("ARTEMI... | 31.5 | 101 | 0.775272 |
2de605800d56beb42a731e8ab16bc028068b3fda | 5,891 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/api/projects.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... | 41.195804 | 187 | 0.640299 |
2de6685092ec4f6055c326ea94d3fd9cf75ea1e9 | 10,675 | exs | Elixir | lib/elixir/test/elixir/path_test.exs | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/test/elixir/path_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/path_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule PathTest do
use ExUnit.Case, async: true
import PathHelpers
if :file.native_name_encoding == :utf8 do
test :wildcard do
File.mkdir_p(tmp_path("héllò"))
assert Path.wildcard(tmp_path("héllò")) == [tmp_path("héllò")]
after
File.rm_rf... | 39.537037 | 105 | 0.604496 |
2de668ccef79eb4c8e8f97de3e103e0243e871e1 | 2,344 | ex | Elixir | lib/nitroux.ex | tolyo/nitroux | 8e8c3550cc554028a8b5899d8385417f5fa4dc0f | [
"MIT"
] | null | null | null | lib/nitroux.ex | tolyo/nitroux | 8e8c3550cc554028a8b5899d8385417f5fa4dc0f | [
"MIT"
] | null | null | null | lib/nitroux.ex | tolyo/nitroux | 8e8c3550cc554028a8b5899d8385417f5fa4dc0f | [
"MIT"
] | null | null | null | defmodule Nitroux do
import Nitroux.Utils
import Plug.Conn
@moduledoc """
Documentation for `Nitroux`.
"""
@doc """
iex> Nitroux.a("test")
"<a>test</a>"
"""
def a(attrs), do: "a" |> tag(attrs)
def b(attrs), do: "b" |> tag(attrs)
def body(attrs), do: "body" |> tag(attrs)
def br(attrs... | 21.906542 | 77 | 0.5657 |
2de67b5384254b7ec142f8506ca3fab664e334c2 | 2,702 | exs | Elixir | test/nebulex/cache/supervisor_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 845 | 2017-02-14T14:16:11.000Z | 2022-03-30T04:13:08.000Z | test/nebulex/cache/supervisor_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 146 | 2017-04-29T16:11:14.000Z | 2022-03-29T08:49:05.000Z | test/nebulex/cache/supervisor_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 50 | 2017-08-17T13:44:06.000Z | 2022-03-30T11:29:59.000Z | defmodule Nebulex.Cache.SupervisorTest do
use ExUnit.Case, async: true
defmodule MyCache do
use Nebulex.Cache,
otp_app: :nebulex,
adapter: Nebulex.Adapters.Local
@impl true
def init(opts) do
case Keyword.get(opts, :ignore) do
true -> :ignore
false -> opts
end
... | 28.145833 | 98 | 0.683198 |
2de680181bed60d73e4feb2ae604778a03ec1a88 | 1,392 | ex | Elixir | lib/xdr/transactions/operations/claim_claimable_balance.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/operations/claim_claimable_balance.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/operations/claim_claimable_balance.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.ClaimClaimableBalance do
@moduledoc """
Representation of Stellar `ClaimClaimableBalance` type.
"""
alias StellarBase.XDR.ClaimableBalanceID
@behaviour XDR.Declaration
@struct_spec XDR.Struct.new(balance_id: ClaimableBalanceID)
@type t :: %__MODULE__{balance_id: Cla... | 24.857143 | 73 | 0.685345 |
2de6ab470830288717e39919e8b73ade6ff32cd5 | 7,255 | exs | Elixir | integration_test/cases/browser/dialog_test.exs | activeprospect/wallaby | efe49026813e56242a318eab2f94469c480d4a5d | [
"MIT"
] | null | null | null | integration_test/cases/browser/dialog_test.exs | activeprospect/wallaby | efe49026813e56242a318eab2f94469c480d4a5d | [
"MIT"
] | null | null | null | integration_test/cases/browser/dialog_test.exs | activeprospect/wallaby | efe49026813e56242a318eab2f94469c480d4a5d | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.Browser.DialogTest do
use Wallaby.Integration.SessionCase, async: true
setup %{session: session} do
page = visit(session, "dialogs.html")
{:ok, %{page: page}}
end
describe "accept_dialogs/1" do
test "accept window.alert", %{page: page} do
result =
page
... | 27.796935 | 84 | 0.558511 |
2de6bf706604d30b6280cc38d5d46976f8cdd9a1 | 500 | ex | Elixir | lib/geoboard.ex | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | lib/geoboard.ex | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | lib/geoboard.ex | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | # defmodule Geoboard do
# defmodule Corner do
# defstruct [:pins, :blanks, :area]
# @type t :: %Corner{}
# end
# @spec corners(pos_integer, pos_integer) :: [Corner.t, ...]
# def corners(x, y), do: corners(x, y, 0, 1, x, 0)
# def corners(x, y, slope, pins, blanks, area) do
# # do stuff
# end
... | 26.315789 | 63 | 0.576 |
2de6e3c185655fe45398b69e118a73560fca7757 | 1,799 | exs | Elixir | bench/scripts/macro/all_bench.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 384 | 2018-10-03T17:52:39.000Z | 2022-03-24T17:54:21.000Z | bench/scripts/macro/all_bench.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 357 | 2018-10-06T13:47:33.000Z | 2022-03-29T08:18:02.000Z | bench/scripts/macro/all_bench.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 251 | 2018-10-04T11:06:41.000Z | 2022-03-29T07:22:53.000Z | # -----------------------------------Goal--------------------------------------
# Compare the performance of querying all objects of the different supported
# databases
# -------------------------------Description-----------------------------------
# This benchmark tracks performance of querying a set of objects regis... | 33.314815 | 80 | 0.635909 |
2de6e78311c6e2b0d95f18917e83a4c1b8bf8b76 | 3,956 | ex | Elixir | lib/red_potion/artifacts/artifacts.ex | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | lib/red_potion/artifacts/artifacts.ex | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | lib/red_potion/artifacts/artifacts.ex | mvdwg/red_potion | 3026b13d80d9157a598b08e959beb5e56c6f9ff9 | [
"MIT"
] | null | null | null | defmodule RedPotion.Artifacts do
@moduledoc """
The boundary for the Artifacts system.
"""
import Ecto.Query, warn: false
alias RedPotion.Repo
alias RedPotion.Artifacts.Counter
@doc """
Returns the list of counters.
## Examples
iex> list_counters()
[%Counter{}, ...]
"""
def list_... | 18.838095 | 69 | 0.628665 |
2de6ea65e05875eabbfa9d520b6d7e1941ce4299 | 3,236 | exs | Elixir | test/controllers/admin/episode_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/controllers/admin/episode_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/controllers/admin/episode_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Changelog.Admin.EpisodeControllerTest do
use Changelog.ConnCase
alias Changelog.Episode
@valid_attrs %{title: "The one where we win", slug: "181-win"}
@invalid_attrs %{title: ""}
@tag :as_admin
test "lists all podcast episodes on index", %{conn: conn} do
p = insert(:podcast)
e1 = insert... | 34.795699 | 108 | 0.686032 |
2de6f18a696331cc6ee026a00919188ee0b03e90 | 81 | ex | Elixir | lib/phoenixAuthKata/repo.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2016-07-06T02:06:31.000Z | 2016-07-06T02:06:31.000Z | lib/phoenixAuthKata/repo.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2017-04-07T12:58:38.000Z | 2017-04-07T12:58:38.000Z | lib/phoenixAuthKata/repo.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | null | null | null | defmodule PhoenixAuthKata.Repo do
use Ecto.Repo, otp_app: :phoenixAuthKata
end
| 20.25 | 42 | 0.814815 |
2de71e91a92447ff4ad98f1b9a48a2ce0aa0a8f6 | 7,729 | ex | Elixir | lib/plugoid/redirect_uri.ex | tanguilp/plugoid | 1e86b02c69f6e99cc733e6e446a9db6916811762 | [
"Apache-2.0"
] | 5 | 2020-05-31T17:33:02.000Z | 2022-03-20T22:58:30.000Z | lib/plugoid/redirect_uri.ex | tanguilp/plugoid | 1e86b02c69f6e99cc733e6e446a9db6916811762 | [
"Apache-2.0"
] | 12 | 2020-05-31T13:19:54.000Z | 2021-12-14T21:56:35.000Z | lib/plugoid/redirect_uri.ex | tanguilp/plugoid | 1e86b02c69f6e99cc733e6e446a9db6916811762 | [
"Apache-2.0"
] | 1 | 2021-11-07T03:10:15.000Z | 2021-11-07T03:10:15.000Z | defmodule Plugoid.RedirectURI do
@moduledoc """
Plug to configure the application redirect URI
An OAuth2 / OpenID Connect redirect URI is a vanity, non-dynamic URI. The authorization
server redirects to this URI after authentication and authorization success or failure.
## Automatic configuration in a route... | 30.916 | 113 | 0.655324 |
2de735f317a4dae9d20261c6ba482dc4b49d6d0e | 1,332 | exs | Elixir | test/ecto/query/select_builder_test.exs | MSch/ecto | 648f785b2202193921fe00d68bc334399f5edb93 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/select_builder_test.exs | MSch/ecto | 648f785b2202193921fe00d68bc334399f5edb93 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/select_builder_test.exs | MSch/ecto | 648f785b2202193921fe00d68bc334399f5edb93 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.SelectBuilderTest do
use ExUnit.Case, async: true
import Ecto.Query.SelectBuilder
doctest Ecto.Query.SelectBuilder
test "escape" do
assert Macro.escape(quote do &0 end) ==
escape(quote do x end, [x: 0])
assert Macro.escape(quote do &0.y end) ==
escape(quote ... | 31.714286 | 113 | 0.548799 |
2de77fda6bf80c9f4e6bd0c58b10b2af25fc707e | 1,403 | ex | Elixir | activitypub/test/support/data_case.ex | torchhound/activitypub | 362de364764b81ec06ade6d0c48c303218e74522 | [
"MIT"
] | null | null | null | activitypub/test/support/data_case.ex | torchhound/activitypub | 362de364764b81ec06ade6d0c48c303218e74522 | [
"MIT"
] | null | null | null | activitypub/test/support/data_case.ex | torchhound/activitypub | 362de364764b81ec06ade6d0c48c303218e74522 | [
"MIT"
] | null | null | null | defmodule Activitypub.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 ... | 25.981481 | 77 | 0.684248 |
2de78683aaab7c6ac50fb803c7781154803d58ed | 1,460 | exs | Elixir | apps/gen_rtmp_server/mix.exs | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/gen_rtmp_server/mix.exs | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/gen_rtmp_server/mix.exs | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | defmodule GenRtmpServer.Mixfile do
use Mix.Project
def project do
[
app: :gen_rtmp_server,
version: "0.2.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
build_embedded:... | 22.461538 | 91 | 0.569178 |
2de78eb3e029379fa8e65ca0803eaa7720a30db7 | 2,318 | ex | Elixir | clients/domains/lib/google_api/domains/v1beta1/model/status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1beta1/model/status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/domains/lib/google_api/domains/v1beta1/model/status.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.735849 | 427 | 0.722174 |
2de79be10f761549052ecbf987cbc4fffddefbb3 | 620 | ex | Elixir | web/models/video.ex | joeletizia/rumbl | db213d5231927b0cf27d4f59341c370816099a0b | [
"MIT"
] | null | null | null | web/models/video.ex | joeletizia/rumbl | db213d5231927b0cf27d4f59341c370816099a0b | [
"MIT"
] | null | null | null | web/models/video.ex | joeletizia/rumbl | db213d5231927b0cf27d4f59341c370816099a0b | [
"MIT"
] | null | null | null | defmodule Rumbl.Video do
use Rumbl.Web, :model
schema "videos" do
field :url, :string
field :title, :string
field :description, :string
belongs_to :user, Rumbl.User
belongs_to :category, Rumbl.Category
timestamps
end
@required_fields ~w(url title description)
@optional_fields ~w(cat... | 22.142857 | 61 | 0.695161 |
2de7a25a57333d862aaaa5b4b971e504ded3e834 | 1,214 | ex | Elixir | lib/mix/tasks/sass.install.ex | objectuser/dart_sass | 842650dbfe23a302ad8d10e674e7d6f189b17b46 | [
"MIT"
] | null | null | null | lib/mix/tasks/sass.install.ex | objectuser/dart_sass | 842650dbfe23a302ad8d10e674e7d6f189b17b46 | [
"MIT"
] | null | null | null | lib/mix/tasks/sass.install.ex | objectuser/dart_sass | 842650dbfe23a302ad8d10e674e7d6f189b17b46 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Sass.Install do
@moduledoc """
Installs dart-sass under `_build`.
```bash
$ mix sass.install
$ mix sass.install --if-missing
```
By default, it installs #{DartSass.latest_version()} but you
can configure it in your config files, such as:
config :dart_sass, :version, "#{DartS... | 23.803922 | 74 | 0.609555 |
2de7a404a6a6d903f210c6bd94bfc05ff1a1c551 | 7,426 | ex | Elixir | lib/chat_api/slack_conversation_threads.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api/slack_conversation_threads.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api/slack_conversation_threads.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.SlackConversationThreads do
@moduledoc """
The SlackConversationThreads context.
"""
import Ecto.Query, warn: false
require Logger
alias ChatApi.{Repo, Slack, SlackAuthorizations}
alias ChatApi.SlackConversationThreads.SlackConversationThread
alias ChatApi.SlackAuthorizations.SlackAut... | 35.701923 | 115 | 0.69526 |
2de7aef4681f4beb8dac738a86439917c33e19c0 | 451 | ex | Elixir | lib/farmbot/farm_event/execution/execution.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/farm_event/execution/execution.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/farm_event/execution/execution.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2020-12-16T16:39:32.000Z | 2020-12-16T16:39:32.000Z | defprotocol Farmbot.FarmEvent.Execution do
@moduledoc """
Protocol to be implemented by any struct that can be executed by
Farmbot.FarmEvent.Manager.
"""
@typedoc "Data to be executed."
@type data :: map
@doc """
Execute an item.
* `data` - A `Farmbot.Database.Syncable` struct that is implemented... | 25.055556 | 73 | 0.676275 |
2de7d3a6ea43ce951e432856eaaff3f6cf515490 | 12,896 | ex | Elixir | lib/leafblower/game_statem.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 31 | 2021-11-28T05:48:48.000Z | 2022-02-03T01:46:17.000Z | lib/leafblower/game_statem.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 8 | 2021-11-28T06:38:17.000Z | 2021-12-10T01:21:17.000Z | lib/leafblower/game_statem.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 2 | 2021-11-28T21:09:47.000Z | 2022-01-16T03:51:21.000Z | defmodule Leafblower.GameStatem do
use GenStateMachine, callback_mode: [:handle_event_function, :state_enter]
alias Leafblower.{GameTicker, ProcessRegistry, Deck}
@inactivity_timeout_action {:state_timeout,
Application.get_env(:leafblower, :game_inactivity_timeout),
... | 31 | 124 | 0.637407 |
2de7e2fcf1681fb3d26206c2aa1a154aacf8a936 | 5,471 | ex | Elixir | lib/yggdrasil/subscriber/adapter/ethereum.ex | etherharvest/yggdrasil_ethereum | 6dad6c9fe55f0aa7c2fe5726a54275a7a6922956 | [
"MIT"
] | null | null | null | lib/yggdrasil/subscriber/adapter/ethereum.ex | etherharvest/yggdrasil_ethereum | 6dad6c9fe55f0aa7c2fe5726a54275a7a6922956 | [
"MIT"
] | null | null | null | lib/yggdrasil/subscriber/adapter/ethereum.ex | etherharvest/yggdrasil_ethereum | 6dad6c9fe55f0aa7c2fe5726a54275a7a6922956 | [
"MIT"
] | null | null | null | defmodule Yggdrasil.Subscriber.Adapter.Ethereum do
@moduledoc """
Yggdrasil subscriber adapter for Ethereum. The name of the channel must be
a tuple with the `EthEvent` module and its parameters or a list of these
tuples for composable events e.g:
Subscription to channel:
```
iex(1)> channel_name = {Bal... | 25.328704 | 79 | 0.652714 |
2de7feb3563376a9be732314807d0fe94db90bda | 21,008 | exs | Elixir | test/plaid/institutions_test.exs | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | test/plaid/institutions_test.exs | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | test/plaid/institutions_test.exs | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.InstitutionsTest do
use ExUnit.Case, async: true
alias Plug.Conn
setup do
bypass = Bypass.open()
api_host = "http://localhost:#{bypass.port}/"
{:ok, bypass: bypass, api_host: api_host}
end
test "/institutions/get", %{bypass: bypass, api_host: api_host} do
Bypass.expect_once(... | 29.630465 | 90 | 0.435168 |
2de80784d700eb66227d365fe66aa266fac3acaf | 2,063 | ex | Elixir | parser/lib/object/security_scheme.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | parser/lib/object/security_scheme.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | parser/lib/object/security_scheme.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule QuenyaParser.Object.SecurityScheme do
@moduledoc """
SecurityScheme object
"""
use TypedStruct
alias QuenyaParser.Object.{SecurityScheme, Util}
# security scheme options. We only support `apiKey` and `http` for security scheme at the moment
@allowed_security_schema_type ["apiKey", "http"]
# A... | 32.746032 | 98 | 0.680078 |
2de81e627dcf2b2969dfe3d64a08f028ec6aad26 | 720 | ex | Elixir | web/gettext.ex | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | 1 | 2017-01-25T21:34:37.000Z | 2017-01-25T21:34:37.000Z | web/gettext.ex | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | 40 | 2017-02-09T07:22:25.000Z | 2020-10-28T13:43:12.000Z | web/gettext.ex | koenighotze/callforpaper | 3ca57abc0cd8d857dedf20e70bce841264d0fe30 | [
"MIT"
] | null | null | null | defmodule Callforpapers.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 Callforpapers.Gettext
# Simple translation
gettext "Her... | 28.8 | 72 | 0.686111 |
2de8267faebb58cec3f1e031866d9c63bd328916 | 4,896 | ex | Elixir | clients/games/lib/google_api/games/v1/model/room.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 58.285714 | 687 | 0.730801 |
2de8468caba734ceb49c1e508c0f88b7478bfc54 | 997 | exs | Elixir | apps/teller/test/teller/graphql/resolvers/account/open_test.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 2 | 2018-06-23T11:43:34.000Z | 2019-01-07T10:52:42.000Z | apps/teller/test/teller/graphql/resolvers/account/open_test.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-21T01:20:04.000Z | 2018-06-21T01:20:04.000Z | apps/teller/test/teller/graphql/resolvers/account/open_test.exs | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-30T21:40:51.000Z | 2018-06-30T21:40:51.000Z | defmodule Teller.GraphQL.Resolvers.Account.OpenTest do
alias DataBase.Repos.AmethystRepo, as: Repo
alias DataBase.Test.Support.Factories
alias DataBase.Test.Support.Faker
use ExUnit.Case, async: true
import Teller.Test.Support.GraphQuery
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
... | 20.770833 | 62 | 0.594784 |
2de855ef83fce45fcdc85cde67c95b37218a71a6 | 27,213 | exs | Elixir | test/phoenix_live_view/integrations/live_view_test.exs | snewcomer/phoenix_live_view | 477e9e23e9eec9163599649dab0b3ea48d54300e | [
"MIT"
] | 1 | 2019-12-07T19:28:57.000Z | 2019-12-07T19:28:57.000Z | test/phoenix_live_view/integrations/live_view_test.exs | snewcomer/phoenix_live_view | 477e9e23e9eec9163599649dab0b3ea48d54300e | [
"MIT"
] | 1 | 2019-03-17T23:44:09.000Z | 2019-03-19T21:52:06.000Z | test/phoenix_live_view/integrations/live_view_test.exs | snewcomer/phoenix_live_view | 477e9e23e9eec9163599649dab0b3ea48d54300e | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.LiveViewTest do
use ExUnit.Case, async: false
import Plug.Conn
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveView
alias Phoenix.LiveViewTest.{Endpoint, DOM, ClockLive, ClockControlsLive, LayoutView}
@endpoint Endpoint
@moduletag :capture_log
setup... | 34.933248 | 117 | 0.600559 |
2de85c541000f3d12704a7e58a8dcc291b805f6e | 1,059 | exs | Elixir | apps/eth_geth_adapter/test/eth_geth_adapter/balance_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/eth_geth_adapter/test/eth_geth_adapter/balance_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/eth_geth_adapter/test/eth_geth_adapter/balance_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # Copyright 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 writi... | 34.16129 | 82 | 0.751653 |
2de85d087d9e93592eb41d27c7ae60a33ec997bf | 280 | ex | Elixir | lib/elixir_ale.ex | tverlaan/elixir_ale | c1b4b6a216a855b9d657cef75eba2fb90f36215b | [
"Apache-2.0"
] | 349 | 2015-01-05T00:59:16.000Z | 2022-02-16T14:28:01.000Z | lib/elixir_ale.ex | tverlaan/elixir_ale | c1b4b6a216a855b9d657cef75eba2fb90f36215b | [
"Apache-2.0"
] | 70 | 2015-03-09T15:52:35.000Z | 2022-02-09T02:01:03.000Z | lib/elixir_ale.ex | tverlaan/elixir_ale | c1b4b6a216a855b9d657cef75eba2fb90f36215b | [
"Apache-2.0"
] | 61 | 2015-01-20T21:18:43.000Z | 2019-04-09T12:47:42.000Z | defmodule ElixirALE do
@moduledoc """
`elixir_ale` provides high level abstractions for interfacing to GPIOs, I2C
buses and SPI peripherals on Linux platforms. Internally, it uses the Linux
sysclass interface so that it does not require platform-dependent code.
"""
end
| 35 | 77 | 0.775 |
2de8a92be91778b2ae2841bf072dd23ecd83bd30 | 9,209 | exs | Elixir | test/go_champs_api/player_stats_logs_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | test/go_champs_api/player_stats_logs_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | test/go_champs_api/player_stats_logs_test.exs | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApi.PlayerStatsLogsTest do
use GoChampsApi.DataCase
alias GoChampsApi.PlayerStatsLogs
alias GoChampsApi.Tournaments
alias GoChampsApi.Helpers.PlayerHelpers
alias GoChampsApi.PendingAggregatedPlayerStatsByTournaments
alias GoChampsApi.Phases
describe "player_stats_log" do
alias GoCh... | 38.531381 | 156 | 0.704963 |
2de8abb7af096ca275c6d32fbc096007950a7cce | 659 | ex | Elixir | apps/artemis/lib/artemis/contexts/customer/get_customer.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/customer/get_customer.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/customer/get_customer.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-04-10T13:34:15.000Z | 2019-05-17T02:42:24.000Z | defmodule Artemis.GetCustomer do
use Artemis.Context
import Ecto.Query
alias Artemis.Customer
alias Artemis.Repo
@default_preload []
def call!(value, _user, options \\ []) do
get_record(value, options, &Repo.get_by!/2)
end
def call(value, _user, options \\ []) do
get_record(value, options, ... | 21.966667 | 68 | 0.688923 |
2de8b84ac9e94ca63b362d0db24be63168dc32d3 | 115 | exs | Elixir | 30daysofcode/day17_more_exceptions.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | 2 | 2016-09-20T11:56:33.000Z | 2016-10-20T20:11:04.000Z | 30daysofcode/day17_more_exceptions.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | 30daysofcode/day17_more_exceptions.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | # HackerRank "30 Days of Code" - Day 17 - More Exceptions
# HackerRank does not support Elixir for this excercise
| 28.75 | 57 | 0.756522 |
2de8fc92d68f71f713ef4c50a24baa5539067926 | 57,912 | exs | Elixir | lib/elixir/test/elixir/kernel/expansion_test.exs | jhgg/elixir | fc857d6ff18dc1b63383c53de7415652922dab1e | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/test/elixir/kernel/expansion_test.exs | jhgg/elixir | fc857d6ff18dc1b63383c53de7415652922dab1e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/expansion_test.exs | jhgg/elixir | fc857d6ff18dc1b63383c53de7415652922dab1e | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ExpansionTarget do
defmacro seventeen, do: 17
defmacro bar, do: "bar"
end
defmodule Kernel.ExpansionTest do
use ExUnit.Case, async: false
describe "__block__" do
test "expands to nil when empty" do
assert expand(quote(do: unquote(:__... | 25.278045 | 164 | 0.529372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.