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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d50bc4cbfd7336f6cd02877b9fcb569875196159 | 965 | ex | Elixir | lib/lelepua.ex | mudphone/Lelepua | 53a5ba1af806c620a0df13e180548ef0c603a8ed | [
"MIT"
] | 2 | 2015-09-09T13:18:31.000Z | 2015-09-09T16:03:46.000Z | lib/lelepua.ex | mudphone/Lelepua | 53a5ba1af806c620a0df13e180548ef0c603a8ed | [
"MIT"
] | null | null | null | lib/lelepua.ex | mudphone/Lelepua | 53a5ba1af806c620a0df13e180548ef0c603a8ed | [
"MIT"
] | null | null | null | defmodule Lelepua do
@doc """
Much like the standard pipe operator `|>`, but threads the value
resulting from evaluation of the left-hand expression into the
position after the last given argument in the right-hand
expression's function call.
## Examples
# Note: The standard pipe op... | 22.97619 | 68 | 0.560622 |
d50bedfa38e1dac37144b71d474dc8baa5dca369 | 4,103 | ex | Elixir | clients/iam/lib/google_api/iam/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.10274 | 137 | 0.663173 |
d50c0cec64485c40f91acd4e8253606b0ea81a8a | 2,227 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/consumer_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_control/lib/google_api/service_control/v1/model/consumer_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/consumer_info.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.116667 | 136 | 0.7207 |
d50c109820f215801eb7d35d6d5b09fbe75fd0c5 | 13,032 | ex | Elixir | lib/ex_admin/themes/admin_lte2/form.ex | ccmikechen/ex_admin | 4267bcea4b484216e78154f24154a33511bd1171 | [
"MIT"
] | 2 | 2019-08-03T18:44:22.000Z | 2019-08-28T05:05:57.000Z | lib/ex_admin/themes/admin_lte2/form.ex | ccmikechen/ex_admin | 4267bcea4b484216e78154f24154a33511bd1171 | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/form.ex | ccmikechen/ex_admin | 4267bcea4b484216e78154f24154a33511bd1171 | [
"MIT"
] | null | null | null | defmodule ExAdmin.Theme.AdminLte2.Form do
@moduledoc false
import Kernel, except: [div: 2]
import Xain
import ExAdmin.Utils
import ExAdmin.Form
require Integer
use ExAdmin.Adminlog
import ExAdmin.Helpers
import ExAdmin.Gettext
alias ExAdmin.Schema
@doc false
def build_form(conn, resource, items... | 27.66879 | 105 | 0.482121 |
d50c3469f6c94abea905cd28cd6b2cdbcbf9632f | 4,826 | ex | Elixir | lib/slack/bot.ex | rkstarnerd/Elixir-Slack | 1a35968b5d5b8e144e58dffba7215597a525791c | [
"MIT"
] | null | null | null | lib/slack/bot.ex | rkstarnerd/Elixir-Slack | 1a35968b5d5b8e144e58dffba7215597a525791c | [
"MIT"
] | null | null | null | lib/slack/bot.ex | rkstarnerd/Elixir-Slack | 1a35968b5d5b8e144e58dffba7215597a525791c | [
"MIT"
] | null | null | null | defmodule Slack.Bot do
require Logger
@behaviour :websocket_client
@moduledoc """
This module is used to spawn bots and is used to manage the connection to Slack
while delegating events to the specified bot module.
"""
@doc """
Connects to Slack and delegates events to `bot_handler`.
## Options
... | 29.072289 | 131 | 0.651264 |
d50c4fb6c7bc3daf2df59f31bda86e96aecce545 | 1,167 | exs | Elixir | mix.exs | meduza-corp/ueberauth_vkontakte | 6ba133a07bf3fd4a77f079e66031a65825fec00d | [
"MIT"
] | 1 | 2016-05-11T20:19:16.000Z | 2016-05-11T20:19:16.000Z | mix.exs | meduza-corp/ueberauth_vkontakte | 6ba133a07bf3fd4a77f079e66031a65825fec00d | [
"MIT"
] | 1 | 2016-12-02T10:37:59.000Z | 2016-12-02T13:39:42.000Z | mix.exs | meduza-corp/ueberauth_vkontakte | 6ba133a07bf3fd4a77f079e66031a65825fec00d | [
"MIT"
] | null | null | null | defmodule UeberauthVkontakte.Mixfile do
use Mix.Project
@version "0.1.0"
@url "https://github.com/meduza-corp/ueberauth_vkontakte"
def project do
[app: :ueberauth_vkontakte,
version: @version,
name: "Ueberauth Vkontakte Strategy",
package: package,
elixir: "~> 1.1",
build_embedded... | 22.018868 | 59 | 0.59383 |
d50c702fd8e7fd957263e0843245b71cb57cb114 | 24,050 | exs | Elixir | test/ecto/migrator_test.exs | jvantuyl/ecto_sql | a3432619b2837594c674215316d5f39d4a381741 | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | jvantuyl/ecto_sql | a3432619b2837594c674215316d5f39d4a381741 | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | jvantuyl/ecto_sql | a3432619b2837594c674215316d5f39d4a381741 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.MigratorTest do
use ExUnit.Case
import Support.FileHelpers
import Ecto.Migrator
import ExUnit.CaptureLog
alias EctoSQL.TestRepo
alias Ecto.Migration.SchemaMigration
defmodule Migration do
use Ecto.Migration
def up do
execute "up"
end
def down do
execute "dow... | 30.872914 | 148 | 0.648191 |
d50c857a226b6c6f6a563a15a802029df055f29c | 545 | ex | Elixir | apps/core/test/support/ops_factories/medication_dispense_details_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/test/support/ops_factories/medication_dispense_details_factory.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/test/support/ops_factories/medication_dispense_details_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.OPSFactories.MedicationDispenseDetailsFactory do
@moduledoc false
alias Ecto.UUID
defmacro __using__(_opts) do
quote do
def medication_dispense_details_factory do
%{
id: UUID.generate(),
medication: nil,
medication_id: UUID.generate(),
medi... | 23.695652 | 63 | 0.616514 |
d50ca0fa09082aabfeecc7430b588fd5b7c286ce | 1,452 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/http_delivery.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/http_delivery.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/http_delivery.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.893617 | 120 | 0.736226 |
d50cd4e5e4b851c04b5a9d4c5536b079d5fd6ba0 | 2,002 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/recolor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/slides/lib/google_api/slides/v1/model/recolor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/slides/lib/google_api/slides/v1/model/recolor.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.04 | 336 | 0.732767 |
d50ce7c4b84d7616f108e9b56d0751ded007f6a5 | 1,752 | ex | Elixir | lib/obelisk/templates.ex | knewter/obelisk | 360425914d36c1c6094820ae035a4555a177ed00 | [
"MIT"
] | 1 | 2017-04-04T15:44:25.000Z | 2017-04-04T15:44:25.000Z | lib/obelisk/templates.ex | knewter/obelisk | 360425914d36c1c6094820ae035a4555a177ed00 | [
"MIT"
] | null | null | null | lib/obelisk/templates.ex | knewter/obelisk | 360425914d36c1c6094820ae035a4555a177ed00 | [
"MIT"
] | null | null | null | defmodule Obelisk.Templates do
@moduledoc """
This module contains various templates for building initial files
for obelisk sites.
"""
def post(title) do
"""
---
title: #{title}
description: A new blog post
---
Welcome to your brand new obelisk post.
"""
end
def page(title)... | 15.368421 | 75 | 0.484589 |
d50ce8ffa22c65e367240e6ed7576f0e0e56f309 | 7,645 | exs | Elixir | test/rabbit_mq/consumer/consumer_test.exs | szTheory/rabbit_mq | 14d9be5ae488bee82528f8ead279f6dabac48be5 | [
"MIT"
] | null | null | null | test/rabbit_mq/consumer/consumer_test.exs | szTheory/rabbit_mq | 14d9be5ae488bee82528f8ead279f6dabac48be5 | [
"MIT"
] | null | null | null | test/rabbit_mq/consumer/consumer_test.exs | szTheory/rabbit_mq | 14d9be5ae488bee82528f8ead279f6dabac48be5 | [
"MIT"
] | null | null | null | defmodule RabbitMQTest.Consumer do
alias AMQP.{Basic, Channel, Connection, Exchange, Queue}
alias RabbitMQ.Consumer
alias RabbitMQ.Consumer.Worker.State, as: ConsumerWorkerState
use ExUnit.Case
@amqp_url Application.get_env(:rabbit_mq, :amqp_url)
@exchange "#{__MODULE__}"
@routing_key "test.consumer"
... | 31.204082 | 101 | 0.605101 |
d50d0fb9e162f45b590a98b5bda20b080c74e194 | 3,444 | exs | Elixir | lib/elixir/test/elixir/map_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/test/elixir/map_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/map_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule MapTest do
use ExUnit.Case, async: true
defp empty_map do
%{}
end
defp two_items_map do
%{ a: 1, b: 2 }
end
@map %{ a: 1, b: 2 }
test "maps in attributes" do
assert @map == %{ a: 1, b: 2 }
end
test "maps when quoted" do
asser... | 21.797468 | 96 | 0.517712 |
d50d1c3f2a68b457e6d8289a5f3e718c7904f137 | 1,889 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/monitored_resource.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/monitored_resource.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/monitored_resource.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.710526 | 837 | 0.752779 |
d50d205468d83c6016503eac32b60be7a69b1e47 | 2,806 | exs | Elixir | test/mix/tasks/nebulex.gen.cache_test.exs | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | test/mix/tasks/nebulex.gen.cache_test.exs | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | test/mix/tasks/nebulex.gen.cache_test.exs | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Nebulex.Gen.CacheTest do
use ExUnit.Case, async: false
import Nebulex.FileHelpers
import Mix.Tasks.Nebulex.Gen.Cache, only: [run: 1]
test "generates a new cache" do
in_tmp(fn _ ->
run(["-c", "Cache"])
assert_file("lib/cache.ex", """
defmodule Cache do
use Neb... | 21.419847 | 92 | 0.556664 |
d50d37261bda39dc47f2c5ac8d9627f634d2ee5e | 1,997 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/model/aggregate_by.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/fitness/lib/google_api/fitness/v1/model/aggregate_by.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/aggregate_by.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 ... | 39.94 | 336 | 0.742113 |
d50d6fab19a55ebafa043c60c0402563bdb4a2f1 | 1,481 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/table_list_tables_view.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/big_query/lib/google_api/big_query/v2/model/table_list_tables_view.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_list_tables_view.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 ... | 31.510638 | 135 | 0.741391 |
d50d7136ea162090b12bcd8ef8f55448cf5c1f79 | 2,217 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/schema.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/schema.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/model/schema.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.576271 | 232 | 0.691926 |
d50d73a7a68897a06fb49b7aa931104b7ff41a43 | 1,724 | exs | Elixir | test/json_schema_test_suite_test.exs | appcues/ex_json_schema | 3d4abf8a17bb803ab9ec2840c89f1f2bfda16d26 | [
"MIT"
] | null | null | null | test/json_schema_test_suite_test.exs | appcues/ex_json_schema | 3d4abf8a17bb803ab9ec2840c89f1f2bfda16d26 | [
"MIT"
] | null | null | null | test/json_schema_test_suite_test.exs | appcues/ex_json_schema | 3d4abf8a17bb803ab9ec2840c89f1f2bfda16d26 | [
"MIT"
] | null | null | null | defmodule ExJsonSchema.JsonSchemaTestSuiteTest.Helpers do
use ExUnit.Case, async: true
@schema_tests_path "test/JSON-Schema-Test-Suite/tests/draft4/"
def schema_tests_path do
@schema_tests_path
end
def schema_test_path(filename) do
Path.join(schema_tests_path, filename)
end
def load_schema_tes... | 27.365079 | 104 | 0.611949 |
d50d883d1f965b338cfdc6248e938201b87bc0b9 | 89 | exs | Elixir | test/protocol_test.exs | wingyplus/elixir_nsq | a3d6af736efb508c2e3dfbc8d1cab3c624f57c53 | [
"MIT"
] | null | null | null | test/protocol_test.exs | wingyplus/elixir_nsq | a3d6af736efb508c2e3dfbc8d1cab3c624f57c53 | [
"MIT"
] | 9 | 2020-04-05T15:39:46.000Z | 2020-04-06T17:29:00.000Z | test/protocol_test.exs | wingyplus/elixir_nsq | a3d6af736efb508c2e3dfbc8d1cab3c624f57c53 | [
"MIT"
] | null | null | null | defmodule NSQ.ProtocolTest do
use ExUnit.Case, async: false
doctest NSQ.Protocol
end
| 17.8 | 31 | 0.786517 |
d50d8fc84ef6a0fe52064a74e7720062051e285b | 1,272 | exs | Elixir | test/auto_api/commands/diagnostics_command_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | test/auto_api/commands/diagnostics_command_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | test/auto_api/commands/diagnostics_command_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 47.111111 | 79 | 0.78066 |
d50d90126a16dd2c158154dd9009bf6bee45677d | 491 | exs | Elixir | test/bitstyles_phoenix/helper/classnames_test.exs | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | 4 | 2021-03-12T07:57:06.000Z | 2021-11-15T11:41:30.000Z | test/bitstyles_phoenix/helper/classnames_test.exs | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | 39 | 2021-03-11T15:36:51.000Z | 2022-01-04T12:13:48.000Z | test/bitstyles_phoenix/helper/classnames_test.exs | bitcrowd/bitstyles_phoenix | 697d9380d376f23885b696776736643687d4dd14 | [
"0BSD"
] | null | null | null | defmodule BitstylesPhoenix.Helper.ClassnamesTest do
use ExUnit.Case, async: true
import BitstylesPhoenix.Helper.Classnames
doctest BitstylesPhoenix.Helper.Classnames
describe "classnames/1" do
test "removes e2e- classes from class lists" do
assert classnames("e2e-out o-in") == "o-in"
assert cla... | 32.733333 | 59 | 0.670061 |
d50d955c7e8081077a7508f349a1276a2c458daf | 3,030 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/end_reconciliation_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/end_reconciliation_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/end_reconciliation_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 55.090909 | 1,041 | 0.778548 |
d50dd1aea49b5f63965786159154aca3e9658f0c | 1,268 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_sort_order.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_sort_order.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_sort_order.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.SortOrder) do
@moduledoc false
(
defstruct([])
(
@spec default() :: :SORT_ORDER_ASC
def(default()) do
:SORT_ORDER_ASC
end
)
@spec encode(atom()) :: integer() | atom()
[
(
def(encode(:SO... | 16.906667 | 52 | 0.483438 |
d50e07960c22c332c167b081c4f59ebee70c68fb | 10,621 | ex | Elixir | lib/farmbot/bot_state/transport/amqp/amqp.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/bot_state/transport/amqp/amqp.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/bot_state/transport/amqp/amqp.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | defmodule Farmbot.BotState.Transport.AMQP do
@moduledoc "AMQP Bot State Transport."
use GenStage
use AMQP
use Farmbot.Logger
alias Farmbot.CeleryScript
alias CeleryScript.AST
import Farmbot.BotState.Utils
alias Farmbot.System.ConfigStorage
import ConfigStorage, only: [get_config_value: 3, update_c... | 34.151125 | 102 | 0.61143 |
d50e17f7d9d83e01313a9c257695cfb7fcbb6b66 | 1,183 | exs | Elixir | clients/games_management/config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games_management/config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/games_management/config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 38.16129 | 74 | 0.765004 |
d50e1a42a57c19bc311ee85966fad8b84ff98e6f | 5,434 | ex | Elixir | deps/gettext/lib/gettext/po/parser.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/po/parser.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/gettext/lib/gettext/po/parser.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Gettext.PO.Parser do
@moduledoc false
alias Gettext.PO.Translations
alias Gettext.PO.Translation
alias Gettext.PO.PluralTranslation
@doc """
Parses a list of tokens into a list of translations.
"""
@spec parse([Gettext.PO.Tokenizer.token()]) ::
{:ok, [binary], [Gettext.P... | 34.176101 | 99 | 0.657895 |
d50e491180d952b463a2f1599c532e724a660bd3 | 71 | ex | Elixir | lib/backpack/moment/converter.ex | imranismail/backpack | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | 2 | 2017-09-03T15:16:19.000Z | 2018-02-07T02:25:10.000Z | lib/backpack/moment/converter.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | lib/backpack/moment/converter.ex | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | defprotocol Backpack.Moment.Converter do
def to_unix(term, unit)
end
| 17.75 | 40 | 0.802817 |
d50ea7e3d34972e1886ea6ed20aa95422732b29e | 940 | ex | Elixir | lib/still/compiler/template_helpers/link_to_js.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | lib/still/compiler/template_helpers/link_to_js.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | lib/still/compiler/template_helpers/link_to_js.ex | michaeldelago/still | 2c4593779a3c4f987d718fd27ee8a76c79cfd5d8 | [
"0BSD"
] | null | null | null | defmodule Still.Compiler.TemplateHelpers.LinkToJS do
@moduledoc """
Generates a `script` HTML tag to the target JS file.
This file must exist and to ensure that, it **will be compiled** outside
`Still.Compiler.CompilationStage`.
"""
alias Still.Compiler.TemplateHelpers.UrlFor
require Logger
import S... | 22.380952 | 74 | 0.607447 |
d50edbca292e62ad9c68e0f2c8e71de0b2362078 | 1,869 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/profile.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/profile.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/profile.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.789474 | 98 | 0.714821 |
d50eddd2d217bfcdfe6ca9b9aeccd7aa4c4e4f1e | 257 | ex | Elixir | elixir_heat/lib/elixir_heat.ex | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | elixir_heat/lib/elixir_heat.ex | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | elixir_heat/lib/elixir_heat.ex | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | defmodule ElixirHeat do
@moduledoc """
ElixirHeat keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
d50eed121e8e3f18aaca0e619c40020b661bbf53 | 76 | exs | Elixir | config/test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | config/test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | config/test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | use Mix.Config
config :rdf,
default_base_iri: "http://example.com/base/"
| 15.2 | 46 | 0.723684 |
d50efe93016b5790cd10e4d4e1c878f49e28656b | 2,367 | ex | Elixir | lib/poker/printer.ex | 97nomad/TgScrumPoker | e1d57bd65753e06b66957ec84e6a59636cdaac64 | [
"MIT"
] | 1 | 2019-08-20T17:44:07.000Z | 2019-08-20T17:44:07.000Z | lib/poker/printer.ex | 97nomad/TgScrumPoker | e1d57bd65753e06b66957ec84e6a59636cdaac64 | [
"MIT"
] | null | null | null | lib/poker/printer.ex | 97nomad/TgScrumPoker | e1d57bd65753e06b66957ec84e6a59636cdaac64 | [
"MIT"
] | null | null | null | defmodule TgScrumPoker.Printer do
def help() do
"""
Бот для покера планирования (Scrum Poker)
Использование:
1. Добавить в групповой чат
2. Дать админские права на удаление сообщений (необязательно)
Список команд:
/help - выводит текст этого сообщения
/story текст_истории - начать го... | 25.451613 | 83 | 0.591466 |
d50f253d56a75fb981217f4ac1ad2b979d01ab7a | 4,191 | ex | Elixir | lib/path.ex | stuart/svg_builder | b7e1eaa24c36adbd4e7c7c1fe4d30fa8be057b7c | [
"MIT"
] | null | null | null | lib/path.ex | stuart/svg_builder | b7e1eaa24c36adbd4e7c7c1fe4d30fa8be057b7c | [
"MIT"
] | null | null | null | lib/path.ex | stuart/svg_builder | b7e1eaa24c36adbd4e7c7c1fe4d30fa8be057b7c | [
"MIT"
] | null | null | null | defmodule SvgBuilder.Path do
import XmlBuilder
alias SvgBuilder.{Element}
@moduledoc """
Create and modify path elements.
"""
@spec path() :: Element.t()
def path() do
element(:path, %{d: ""}, [])
end
@spec path(Element.t() | [Element.t()]) :: Element.t()
def path(children) when is_list(child... | 27.754967 | 97 | 0.626342 |
d50f451d6544a940b1de8c5c4b6834a4ab848e99 | 5,928 | exs | Elixir | implementations/elixir/ockam/ockam_hub/config/runtime.exs | calebbourg/ockam | 4a1803400909f85e14ec0c35cdfcc60c0a42b5c9 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/config/runtime.exs | calebbourg/ockam | 4a1803400909f85e14ec0c35cdfcc60c0a42b5c9 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/config/runtime.exs | calebbourg/ockam | 4a1803400909f85e14ec0c35cdfcc60c0a42b5c9 | [
"Apache-2.0"
] | null | null | null | import Config
influx_token =
with true <- File.exists?("/mnt/secrets/influx/token"),
{:ok, contents} <- File.read("/mnt/secrets/influx/token"),
client_secret <- String.trim(contents) do
client_secret
else
false ->
System.get_env("INFLUXDB_TOKEN")
{:error, :enoent} ->
System.g... | 25.886463 | 93 | 0.682692 |
d50f47eb7a4fe01166af2f4fd9d2c92e943e5990 | 15,081 | ex | Elixir | lib/aws/generated/work_mail.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/work_mail.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/work_mail.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.WorkMail do
@moduledoc """
Amazon WorkMail is a secure, managed business email and calendaring service with
support for existing desktop and mobile email clients.
You can access your emai... | 31.749474 | 128 | 0.703799 |
d50f5aec16a55aa178c7e6544129fa5a09ef70f2 | 1,527 | ex | Elixir | lib/glasnost/glasnost_web.ex | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 26 | 2017-03-04T20:07:09.000Z | 2018-08-15T10:16:06.000Z | lib/glasnost/glasnost_web.ex | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 18 | 2017-03-18T13:59:31.000Z | 2018-09-06T10:08:33.000Z | lib/glasnost/glasnost_web.ex | metachaos-systems/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 9 | 2017-03-16T19:02:04.000Z | 2018-06-02T23:44:52.000Z | defmodule GlasnostWeb do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use GlasnostWeb, :controller
use GlasnostWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep them sho... | 22.791045 | 88 | 0.683039 |
d50f96bfe6e3f2fd0fe394742d0b731f782109d6 | 9,909 | exs | Elixir | test/plug_capture_test.exs | SophisticaSean/sentry-elixir | 94b37b5217f22097e264a41fe7b9a202cc32b716 | [
"MIT"
] | null | null | null | test/plug_capture_test.exs | SophisticaSean/sentry-elixir | 94b37b5217f22097e264a41fe7b9a202cc32b716 | [
"MIT"
] | null | null | null | test/plug_capture_test.exs | SophisticaSean/sentry-elixir | 94b37b5217f22097e264a41fe7b9a202cc32b716 | [
"MIT"
] | null | null | null | defmodule Sentry.PlugCaptureTest do
use ExUnit.Case
use Plug.Test
import Sentry.TestEnvironmentHelper
import ExUnit.CaptureLog
defmodule PhoenixController do
use Phoenix.Controller
def error(_conn, _params), do: raise("PhoenixError")
def exit(_conn, _params), do: exit(:test)
def throw(_conn, ... | 28.721739 | 84 | 0.621253 |
d50f9c70e5de4192375762a84639a7695d16574e | 490 | exs | Elixir | src/elixir/basic_mathematical_operations.exs | MilesChou/daily-coding | 0c7ca5d4766fbd1984210c73792fb3f737a5b8b1 | [
"MIT"
] | 2 | 2019-08-10T07:46:37.000Z | 2020-01-19T02:22:40.000Z | src/elixir/basic_mathematical_operations.exs | MilesChou/daily-coding | 0c7ca5d4766fbd1984210c73792fb3f737a5b8b1 | [
"MIT"
] | null | null | null | src/elixir/basic_mathematical_operations.exs | MilesChou/daily-coding | 0c7ca5d4766fbd1984210c73792fb3f737a5b8b1 | [
"MIT"
] | null | null | null | ExUnit.start
defmodule SimpleMath do
def basic_op("+", v1, v2) ,do: v1 + v2
def basic_op("-", v1, v2) ,do: v1 - v2
def basic_op("*", v1, v2) ,do: v1 * v2
def basic_op("/", v1, v2) ,do: v1 / v2
end
defmodule SimpleMathTest do
use ExUnit.Case
import SimpleMath, only: [basic_op: 3]
test "Given test cases... | 22.272727 | 40 | 0.589796 |
d50fb2b7588004e9fc76b8d33d83d022fe2dba8f | 2,706 | ex | Elixir | test/registration/support/registration_test_case.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1 | 2020-02-19T01:07:32.000Z | 2020-02-19T01:07:32.000Z | test/registration/support/registration_test_case.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | null | null | null | test/registration/support/registration_test_case.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1 | 2020-02-18T20:53:39.000Z | 2020-02-18T20:53:39.000Z | defmodule Commanded.RegistrationTestCase do
import Commanded.SharedTestCase
define_tests do
alias Commanded.Registration
alias Commanded.Registration.{RegisteredServer, RegisteredSupervisor}
setup %{application: application} do
start_supervised!(application)
supervisor = start_supervised!(... | 37.583333 | 96 | 0.672579 |
d50fc132d10785db0a7cffebc2715d12f75dbe15 | 1,775 | exs | Elixir | test/rpunit/assertions_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | test/rpunit/assertions_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | test/rpunit/assertions_test.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule RoundingPegs.ExUnit.AssertionsTest do
use ExUnit.Case, async: true
use RoundingPegs.ExUnit
describe "assert_exception" do
test "can match on strings using =~ substring" do
assert_exception "partial", do: raise "Expect a partial match"
end
test "can match on regexes" do
assert_e... | 30.084746 | 84 | 0.610141 |
d50fc51921ea6861591f089e6d84a9a89168b7eb | 150 | exs | Elixir | test/ex_aws_polly_test.exs | lawitschka/ex_aws_polly | 0ad8542d78da1371e95258b8bbc65706139bcec8 | [
"MIT"
] | 1 | 2017-12-24T19:05:24.000Z | 2017-12-24T19:05:24.000Z | test/ex_aws_polly_test.exs | lawitschka/ex_aws_polly | 0ad8542d78da1371e95258b8bbc65706139bcec8 | [
"MIT"
] | 2 | 2020-05-28T11:31:41.000Z | 2022-03-21T11:08:53.000Z | test/ex_aws_polly_test.exs | lawitschka/ex_aws_polly | 0ad8542d78da1371e95258b8bbc65706139bcec8 | [
"MIT"
] | 3 | 2018-04-07T20:39:48.000Z | 2022-03-15T11:32:26.000Z | defmodule ExAws.PollyTest do
use ExUnit.Case
doctest ExAws.Polly
test "greets the world" do
assert ExAws.Polly.hello() == :world
end
end
| 16.666667 | 40 | 0.713333 |
d50fc88103fe1ddb60faf431c3f3c3ee1f087421 | 9,781 | ex | Elixir | lib/ecto_neo4j.ex | bluecloudy/ecto_neo4j | fcd0c0f57f2daf6b6c8c5ae3d70f2c50a5f8dc76 | [
"MIT"
] | null | null | null | lib/ecto_neo4j.ex | bluecloudy/ecto_neo4j | fcd0c0f57f2daf6b6c8c5ae3d70f2c50a5f8dc76 | [
"MIT"
] | null | null | null | lib/ecto_neo4j.ex | bluecloudy/ecto_neo4j | fcd0c0f57f2daf6b6c8c5ae3d70f2c50a5f8dc76 | [
"MIT"
] | null | null | null | defmodule Ecto.Neo4j do
@moduledoc "Provides an Ecto integration to Neo4J."
alias Neo4j.Sips.Connection
alias Neo4j.Sips, as: Neo4j
use Timex
use GenServer
require IEx
@config Application.get_env(:neo4j_sips, Neo4j)
@pool_name :neo4j_sips_pool
def connect(opts) do
Connection.start_link(opts)
e... | 30.661442 | 176 | 0.599939 |
d50fd1eeb7ced9b032cee8e3693b254c938b792f | 750 | ex | Elixir | lib/coophub/backends/behaviour.ex | peth-yursick/coophub | 27ef7ffcdace4eb377535f8f1caa47490b45ef22 | [
"MIT"
] | 6 | 2020-06-20T13:55:44.000Z | 2021-08-15T17:35:42.000Z | lib/coophub/backends/behaviour.ex | peth-yursick/coophub | 27ef7ffcdace4eb377535f8f1caa47490b45ef22 | [
"MIT"
] | null | null | null | lib/coophub/backends/behaviour.ex | peth-yursick/coophub | 27ef7ffcdace4eb377535f8f1caa47490b45ef22 | [
"MIT"
] | null | null | null | defmodule Coophub.Backends.Behaviour do
alias Coophub.Backends
@type request_data :: Backends.request_data()
@type org :: Backends.org()
@type repo :: Backends.repo()
@type langs :: Backends.langs()
@type topics :: Backends.topics()
@callback name() :: String.t()
@callback prepare_request_org(String.... | 30 | 64 | 0.732 |
d50fd91c95112e3bf2c68968c05333360e1cca71 | 1,034 | exs | Elixir | apps/fz_vpn/test/fz_vpn/cli/sandbox_test.exs | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | 1 | 2022-02-02T07:56:41.000Z | 2022-02-02T07:56:41.000Z | apps/fz_vpn/test/fz_vpn/cli/sandbox_test.exs | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | null | null | null | apps/fz_vpn/test/fz_vpn/cli/sandbox_test.exs | kaku-io/firezone | 685da0064727df27e444fe4da2be20efe96af9cd | [
"Apache-2.0"
] | null | null | null | defmodule FzVpn.CLI.SandboxTest do
use ExUnit.Case, async: true
import FzVpn.CLI
@expected_returned ""
test "setup" do
assert cli().setup() == @expected_returned
end
test "teardown" do
assert cli().teardown() == @expected_returned
end
test "genkey" do
{privkey, pubkey} = cli().genkey()
... | 20.27451 | 71 | 0.66441 |
d50fdc947cfff15072f90f2d1a1f35c9c0e8ca0d | 1,427 | exs | Elixir | config/dev.exs | PigStyAlleyCoders/phoenix-toggl | dab5a1b9633b98af9cd8206073e09b0e14e5ec0e | [
"MIT"
] | null | null | null | config/dev.exs | PigStyAlleyCoders/phoenix-toggl | dab5a1b9633b98af9cd8206073e09b0e14e5ec0e | [
"MIT"
] | null | null | null | config/dev.exs | PigStyAlleyCoders/phoenix-toggl | dab5a1b9633b98af9cd8206073e09b0e14e5ec0e | [
"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 :phoenix_toggl, PhoenixToggl.Endpoint,
http: [... | 30.361702 | 80 | 0.7274 |
d510050191cd27537f7b541c497192235f7e81ce | 509 | ex | Elixir | learning/programming_elixir/chapter_18/sequence/lib/sequence/supervisor.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/programming_elixir/chapter_18/sequence/lib/sequence/supervisor.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/programming_elixir/chapter_18/sequence/lib/sequence/supervisor.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Sequence.Supervisor do
use Supervisor
def start_link(initial_state) do
result = {:ok, sup} = Supervisor.start_link(__MODULE__, [initial_state])
start_workers(sup, initial_state)
result
end
def start_workers(sup, initial_state) do
{:ok, stash} =
Supervisor.start_child(sup, worke... | 24.238095 | 76 | 0.719057 |
d510158d53a1793448d995b273b77e2324688472 | 1,913 | ex | Elixir | kv_umbrella/apps/kv/lib/command.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | kv_umbrella/apps/kv/lib/command.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | kv_umbrella/apps/kv/lib/command.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | defmodule KVServer.Command do
@doc ~S"""
Parses the given `line` into a command.
## Examples
iex> KVServer.Command.parse("CREATE shopping\r\n")
{:ok, {:create, "shopping"}}
"""
def parse(line) do
case String.split(line) do
["CREATE", bucket] -> {:ok, {:create, bucket}}
["GET", b... | 23.9125 | 78 | 0.580763 |
d5101885b53c93155ca108877d4f1c4b6555a949 | 5,927 | ex | Elixir | lib/neo4_ecto.ex | Caciquez/neo4_ecto | fc27e97a348ca326b3865c9c735c55f01278f8ad | [
"Apache-2.0"
] | 1 | 2022-01-11T22:57:20.000Z | 2022-01-11T22:57:20.000Z | lib/neo4_ecto.ex | Caciquez/neo4_ecto | fc27e97a348ca326b3865c9c735c55f01278f8ad | [
"Apache-2.0"
] | null | null | null | lib/neo4_ecto.ex | Caciquez/neo4_ecto | fc27e97a348ca326b3865c9c735c55f01278f8ad | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.Neo4Ecto do
@moduledoc """
Neo4Ecto is a Neo4j Adapter for Ecto.
Through Neo4Ecto we can do normal Ecto implementations to connect
and manage our Neo4j database in a much simpler way.
Currently Neo4Ecto handles 3 of the main components from Ecto:
* `Ecto.Adapter`
* `Ecto.Adap... | 26.110132 | 106 | 0.649064 |
d510725964d42d6e9dd1b34b6c1b258133711573 | 1,434 | ex | Elixir | lib/spotify/models/artists/artists.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/artists/artists.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/artists/artists.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | defmodule Spotify.Artists do
@moduledoc """
For manipulating artists.
[Spotify Docs](https://beta.developer.spotify.com/documentation/web-api/reference/artists/)
"""
alias Spotify.{ExternalUrls, Followers, Image}
@typedoc """
Known external URLs for this artist.
"""
@type external_urls :: Ext... | 22.40625 | 95 | 0.642957 |
d510964c982b1ec4c92ab865249fd077d1a5fd03 | 2,462 | ex | Elixir | lib/akd/helpers/destination_resolver.ex | annkissam/akd | d9ecd91e005dfeec70d688b98526397fc1374d99 | [
"MIT"
] | 51 | 2018-01-07T03:41:05.000Z | 2021-06-17T21:39:27.000Z | lib/akd/helpers/destination_resolver.ex | annkissam/akd | d9ecd91e005dfeec70d688b98526397fc1374d99 | [
"MIT"
] | 42 | 2017-12-24T04:36:39.000Z | 2019-05-21T01:32:00.000Z | lib/akd/helpers/destination_resolver.ex | annkissam/akd | d9ecd91e005dfeec70d688b98526397fc1374d99 | [
"MIT"
] | 2 | 2018-06-15T11:46:28.000Z | 2018-08-22T16:03:56.000Z | defmodule Akd.DestinationResolver do
@moduledoc """
This module defines helper functions which can be used to resolve
a destination for based on deployment and the destination type
"""
alias Akd.{Destination, Deployment}
@doc """
This function takes a `destination` variable and a `Deployment.t` struct.
... | 35.171429 | 96 | 0.645004 |
d51097bc22ab94cb68d2c2e621168640aac9aa83 | 3,897 | ex | Elixir | lib/chat_api/event_subscriptions.ex | m1ome/papercups | 8c9bf5569dc23d7bce3fcc3a8909bf6d05be8985 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | lib/chat_api/event_subscriptions.ex | kingshalaby1/papercups | 8d59b2ee4a22dd29df42fb771e02db14e14dee68 | [
"MIT"
] | null | null | null | lib/chat_api/event_subscriptions.ex | kingshalaby1/papercups | 8d59b2ee4a22dd29df42fb771e02db14e14dee68 | [
"MIT"
] | null | null | null | defmodule ChatApi.EventSubscriptions do
@moduledoc """
The EventSubscriptions context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.EventSubscriptions.EventSubscription
@doc """
Returns the list of event_subscriptions.
## Examples
iex> list_event_subscriptions(account... | 23.907975 | 91 | 0.668206 |
d510b9cd294aab0928763ec2360e573116098d8f | 187 | exs | Elixir | test/controllers/page_controller_test.exs | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | test/controllers/page_controller_test.exs | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | test/controllers/page_controller_test.exs | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | defmodule Tikt.PageControllerTest do
use Tikt.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 20.777778 | 60 | 0.663102 |
d510bb8424305d618de9f36c16d5277f5d50eaca | 336 | exs | Elixir | apps/local_ledger/config/config.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/local_ledger/config/config.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/config/config.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# BALANCE_CACHING_STRATEGY
# since_beginning
# since_last_cached
config :local_ledger,
ecto_repos: [],
settings: [
:balance_caching_strategy
]
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{... | 22.4 | 68 | 0.764881 |
d510d2dcbbfefa61496acb469d31990d1ed621a2 | 544 | ex | Elixir | examples/ct_ecto/lib/ct/tree_path.ex | scottming/closure_table | 2b567ebe040a5ac5b539bfc3112fec181a025ebc | [
"Apache-2.0"
] | null | null | null | examples/ct_ecto/lib/ct/tree_path.ex | scottming/closure_table | 2b567ebe040a5ac5b539bfc3112fec181a025ebc | [
"Apache-2.0"
] | null | null | null | examples/ct_ecto/lib/ct/tree_path.ex | scottming/closure_table | 2b567ebe040a5ac5b539bfc3112fec181a025ebc | [
"Apache-2.0"
] | null | null | null | defmodule CT.TreePath do
use Ecto.Schema
import Ecto.Changeset
alias CT.Comment
@primary_key false
schema "tree_paths" do
belongs_to :parent_comment, Comment, foreign_key: :ancestor
belongs_to :comment, Comment, foreign_key: :descendant
field :path_length, :integer
end
def changeset(path, p... | 25.904762 | 64 | 0.722426 |
d51125233d08e96801544fcdf56a4fd1d35dbe5e | 1,712 | ex | Elixir | clients/language/lib/google_api/language/v1/model/analyze_entities_request.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/language/lib/google_api/language/v1/model/analyze_entities_request.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/analyze_entities_request.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 34.24 | 117 | 0.735981 |
d5112e6e1d35674dfaeef1f81aec7abefbfbdc38 | 43,654 | ex | Elixir | lib/elixir/lib/stream.ex | vanstee/elixir | ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/stream.ex | vanstee/elixir | ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/stream.ex | vanstee/elixir | ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64 | [
"Apache-2.0"
] | null | null | null | defmodule Stream do
@moduledoc """
Module for creating and composing streams.
Streams are composable, lazy enumerables. Any enumerable that generates
items one by one during enumeration is called a stream. For example,
Elixir's `Range` is a stream:
iex> range = 1..5
1..5
iex> Enum.map rang... | 30.44212 | 108 | 0.61472 |
d511c43c616f7ef54b71f46617267e0a789ecba0 | 1,046 | exs | Elixir | config/config.exs | JeffyMesquita/elixirHeat | 3ec3c59021e90058f00c2eb288a5e6c286e96342 | [
"MIT"
] | null | null | null | config/config.exs | JeffyMesquita/elixirHeat | 3ec3c59021e90058f00c2eb288a5e6c286e96342 | [
"MIT"
] | null | null | null | config/config.exs | JeffyMesquita/elixirHeat | 3ec3c59021e90058f00c2eb288a5e6c286e96342 | [
"MIT"
] | 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 :elixirHeat,
ecto_repos: [ElixirHeat.Re... | 32.6875 | 86 | 0.773423 |
d511c5c963da1bd00b79c382b9600b43cd77bf98 | 1,798 | ex | Elixir | learning/redfour/physics/lib/solar.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/redfour/physics/lib/solar.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/redfour/physics/lib/solar.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Solar do
def power(%{classification: :C, scale: s, stations: c}) when c < 5, do: s * 1.1
def power(%{classification: :M, scale: s, stations: c}) when c < 5, do: s * 10 * 1.1
def power(%{classification: :X, scale: s, stations: c}) when c < 5, do: s * 1000 * 1.1
def power(%{classification: :C, scale: s,... | 33.924528 | 113 | 0.627364 |
d511c9c61a4da08461effec048857fb284d89997 | 1,555 | exs | Elixir | mix.exs | getong/amqp | 4ad44c302bc040f553a0265c86646a2251ad8e73 | [
"MIT"
] | null | null | null | mix.exs | getong/amqp | 4ad44c302bc040f553a0265c86646a2251ad8e73 | [
"MIT"
] | null | null | null | mix.exs | getong/amqp | 4ad44c302bc040f553a0265c86646a2251ad8e73 | [
"MIT"
] | null | null | null | defmodule AMQP.Mixfile do
use Mix.Project
@version "1.3.2"
def project do
[app: :amqp,
version: @version,
elixir: "~> 1.3",
description: description(),
package: package(),
source_url: "https://github.com/pma/amqp",
deps: deps(),
dialyzer: [
ignore_warnings: "dialyze... | 23.923077 | 74 | 0.533762 |
d511ed0356526d5ccb9c67f8848c78d4bd0fc681 | 3,561 | exs | Elixir | exercism/elixir/pig-latin/test/pig_latin_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/pig-latin/test/pig_latin_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/pig-latin/test/pig_latin_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule PigLatinTest do
use ExUnit.Case
describe "ay is added to words that start with vowels" do
test "word beginning with a" do
assert PigLatin.translate("apple") == "appleay"
end
test "word beginning with e" do
assert PigLatin.translate("ear") == "earay"
end
test "word beginn... | 28.717742 | 103 | 0.665263 |
d511f03b35431f23659df0963d4d95ea7717fb3e | 1,109 | exs | Elixir | config/config.exs | lschuermann/fadex | 92a4d19424079a912781322794797101f6d7feab | [
"Apache-2.0"
] | null | null | null | config/config.exs | lschuermann/fadex | 92a4d19424079a912781322794797101f6d7feab | [
"Apache-2.0"
] | null | null | null | config/config.exs | lschuermann/fadex | 92a4d19424079a912781322794797101f6d7feab | [
"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.
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... | 35.774194 | 73 | 0.749324 |
d51204899a5523cc633a51041ee5dc7c1cccb358 | 1,085 | ex | Elixir | lib/dmage_web/channels/user_socket.ex | Devotu/dmage | 54d8e55bf010f2e0beb2bd0c21157366f0375bd3 | [
"MIT"
] | null | null | null | lib/dmage_web/channels/user_socket.ex | Devotu/dmage | 54d8e55bf010f2e0beb2bd0c21157366f0375bd3 | [
"MIT"
] | null | null | null | lib/dmage_web/channels/user_socket.ex | Devotu/dmage | 54d8e55bf010f2e0beb2bd0c21157366f0375bd3 | [
"MIT"
] | null | null | null | defmodule DmageWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", DmageWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ... | 30.138889 | 83 | 0.693088 |
d512275d7cb4487260a67df1a366f8a1c93cfb95 | 74 | exs | Elixir | test/smwc_web/views/page_view_test.exs | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-03-09T18:04:42.000Z | 2022-03-11T22:24:25.000Z | test/smwc_web/views/page_view_test.exs | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | null | null | null | test/smwc_web/views/page_view_test.exs | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-02-27T22:00:17.000Z | 2022-02-28T02:20:21.000Z | defmodule SMWCWeb.PageViewTest do
use SMWCWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
d51242cabae5e9e6062921ba2ef0a49f38e118f7 | 347 | exs | Elixir | priv/repo/seeds.exs | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | 2 | 2022-01-16T23:58:45.000Z | 2022-03-16T09:29:16.000Z | priv/repo/seeds.exs | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"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:
#
# Deuce.Repo.insert!(%Deuce.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
d5125177995d1198c72025babe2fbed4081a1e84 | 76 | exs | Elixir | backend/apps/students_crm_v2/test/test_helper.exs | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | backend/apps/students_crm_v2/test/test_helper.exs | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | 50 | 2018-07-29T09:17:35.000Z | 2019-02-26T05:23:34.000Z | backend/apps/students_crm_v2_web/test/test_helper.exs | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(StudentsCrmV2.Repo, :manual)
| 19 | 59 | 0.789474 |
d512926856fa0391dcfa777582f4047b7ca1dad0 | 18,779 | ex | Elixir | lib/rdf/vocabulary_namespace.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | lib/rdf/vocabulary_namespace.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | lib/rdf/vocabulary_namespace.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.Vocabulary.Namespace do
@moduledoc """
An RDF vocabulary as a `RDF.Namespace`.
`RDF.Vocabulary.Namespace` modules represent a RDF vocabulary as a `RDF.Namespace`.
They can be defined with the `defvocab/2` macro of this module.
RDF.ex comes with predefined modules for some fundamental vocabular... | 27.137283 | 114 | 0.604186 |
d512a7652c78a21751e4c9747713661deafc050c | 30 | ex | Elixir | lib/nitroux/plug.ex | tolyo/nitroux | 8e8c3550cc554028a8b5899d8385417f5fa4dc0f | [
"MIT"
] | null | null | null | lib/nitroux/plug.ex | tolyo/nitroux | 8e8c3550cc554028a8b5899d8385417f5fa4dc0f | [
"MIT"
] | null | null | null | lib/nitroux/plug.ex | tolyo/nitroux | 8e8c3550cc554028a8b5899d8385417f5fa4dc0f | [
"MIT"
] | null | null | null | defmodule Nitroux.Plug do
end
| 10 | 25 | 0.833333 |
d512b453219c1c369fc448708e19e6c9ca915e0c | 4,385 | ex | Elixir | apps/andi/lib/andi_web/views/http_status_messages.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/lib/andi_web/views/http_status_messages.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/lib/andi_web/views/http_status_messages.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule AndiWeb.Views.HttpStatusDescriptions do
@moduledoc """
View translations from status code to descriptive text and help link.
"""
import Plug.Conn.Status,
only: [
reason_phrase: 1
]
@url_200 "https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success"
@url_400 "https://en.w... | 48.186813 | 109 | 0.66203 |
d512d67f233f4abc7271a786c65cdc5a60fb97d6 | 37,321 | ex | Elixir | lib/elixir/lib/supervisor.ex | basdirks/elixir | 2cb058ba32e410e8ea073970ef52d6476ef7b4d3 | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/elixir/lib/supervisor.ex | basdirks/elixir | 2cb058ba32e410e8ea073970ef52d6476ef7b4d3 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/elixir/lib/supervisor.ex | basdirks/elixir | 2cb058ba32e410e8ea073970ef52d6476ef7b4d3 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Supervisor do
@moduledoc ~S"""
A behaviour module for implementing supervisors.
A supervisor is a process which supervises other processes, which we
refer to as *child processes*. Supervisors are used to build a hierarchical
process structure called a *supervision tree*. Supervision trees provide
... | 37.584089 | 98 | 0.695989 |
d512db94e46bb4c07e31dbbce26f2689ecd9c009 | 2,066 | exs | Elixir | config/prod.exs | drews256/this_weekend | 6b20f6b591d2f43044c16a6e4fab6ad5822620c7 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | drews256/this_weekend | 6b20f6b591d2f43044c16a6e4fab6ad5822620c7 | [
"Apache-2.0"
] | 2 | 2021-03-10T17:57:38.000Z | 2022-03-26T16:51:58.000Z | config/prod.exs | drews256/this_weekend | 6b20f6b591d2f43044c16a6e4fab6ad5822620c7 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.245614 | 75 | 0.710068 |
d512dc69dae804771ea2381f6f9f91c6b86d3522 | 67 | ex | Elixir | lib/donatebox_web/views/layout_view.ex | Adnatull/donatebox | 47e07e7831c223265a465425520313da5370f149 | [
"Apache-2.0"
] | null | null | null | lib/donatebox_web/views/layout_view.ex | Adnatull/donatebox | 47e07e7831c223265a465425520313da5370f149 | [
"Apache-2.0"
] | null | null | null | lib/donatebox_web/views/layout_view.ex | Adnatull/donatebox | 47e07e7831c223265a465425520313da5370f149 | [
"Apache-2.0"
] | null | null | null | defmodule DonateboxWeb.LayoutView do
use DonateboxWeb, :view
end
| 16.75 | 36 | 0.820896 |
d512e17367c91766eb8790d9ba7ddd0b954e875c | 6,406 | exs | Elixir | test/surface/components/context_test.exs | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | test/surface/components/context_test.exs | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | test/surface/components/context_test.exs | thorsten-de/surface | 67ebc2eadec22a22e043394f37d0d8d0e0e81b77 | [
"MIT"
] | null | null | null | defmodule Surface.Components.ContextTest do
use Surface.ConnCase, async: true
alias Surface.Components.Context
defmodule Outer do
use Surface.Component
slot default
def render(assigns) do
~F"""
<Context put={__MODULE__, field: "field from Outer"}>
<div><#slot/></div>
</Co... | 21.424749 | 84 | 0.522791 |
d513387c9dc3407cec2f2a7a5d41c3e060f399f7 | 4,886 | exs | Elixir | test/mux/session_test.exs | fishcakez/elixir-mux | 8be71643a79d8eddd93b78b9c74fd14cac436a21 | [
"Apache-2.0"
] | 2 | 2017-07-26T07:28:33.000Z | 2017-08-08T16:26:05.000Z | test/mux/session_test.exs | fishcakez/elixir-mux | 8be71643a79d8eddd93b78b9c74fd14cac436a21 | [
"Apache-2.0"
] | null | null | null | test/mux/session_test.exs | fishcakez/elixir-mux | 8be71643a79d8eddd93b78b9c74fd14cac436a21 | [
"Apache-2.0"
] | 1 | 2021-03-13T23:02:29.000Z | 2021-03-13T23:02:29.000Z | defmodule Mux.SessionTest do
use ExUnit.Case, async: true
setup context do
debug = context[:debug] || [:log]
session_opts = context[:session_opts] || []
opts = [debug: debug, session_opts: session_opts,
headers: context[:headers], contexts: context[:contexts] || []]
{cli, srv} = pair(op... | 34.9 | 86 | 0.59824 |
d513508a8d9c42d8a261a8c44a9e5e37c27d72ca | 266 | ex | Elixir | ex_github/lib/ex_github/schema.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ex_github/lib/ex_github/schema.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ex_github/lib/ex_github/schema.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule ExGithub.Schema do
defmacro __using__(_opts) do
quote do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@type t :: %__MODULE__{}
end
end
end
| 19 | 56 | 0.657895 |
d51394110a78525507fcddddfa6eaee5dcca2cdf | 536 | exs | Elixir | priv/repo/migrations/20170911140505_create_offers.exs | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | priv/repo/migrations/20170911140505_create_offers.exs | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | priv/repo/migrations/20170911140505_create_offers.exs | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | defmodule ElixirJobs.Repo.Migrations.CreateOffers do
use Ecto.Migration
def change do
create table(:offers, primary_key: false) do
add :id, :binary_id, primary_key: true
add :title, :string, null: false, size: 50
add :company, :string, null: false, size: 30
add :description, :string, nu... | 26.8 | 55 | 0.656716 |
d513bf82a49cc2aacdf1cd578bb032d7ff353055 | 705 | ex | Elixir | web/views/token_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/views/token_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/views/token_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.TokenView do
use CodeCorps.Web, :view
def render("show.json", %{token: token, user_id: user_id}) do
%{
token: token,
user_id: user_id,
}
end
def render("401.json", %{message: message}) do
%{
errors: [
%{
id: "UNAUTHORIZED",
title: "... | 17.195122 | 63 | 0.48227 |
d513e1113996445779679e4e86debca558d40055 | 432 | ex | Elixir | lib/paytm/api/oauth/token.ex | wundercar/paytm | 378ce47ae68588b80a60098f84ea50eb380cf7de | [
"MIT"
] | 2 | 2017-11-10T14:57:02.000Z | 2018-01-30T04:53:11.000Z | lib/paytm/api/oauth/token.ex | wundercar/paytm | 378ce47ae68588b80a60098f84ea50eb380cf7de | [
"MIT"
] | 2 | 2019-04-16T12:55:01.000Z | 2020-08-25T15:17:52.000Z | lib/paytm/api/oauth/token.ex | wundercar/paytm | 378ce47ae68588b80a60098f84ea50eb380cf7de | [
"MIT"
] | null | null | null | defmodule Paytm.API.OAuth.Token do
@type t :: %__MODULE__{
access_token: String.t(),
expires_at: integer | nil,
scope: String.t() | nil,
customer_id: String.t() | nil,
email: String.t() | nil,
phone: String.t() | nil
}
@enforce_keys [:access_token]... | 21.6 | 40 | 0.539352 |
d513ee0d6c77f3c8ae0969da774760476f0af778 | 1,753 | exs | Elixir | priv/repo/migrations/20171230083311_add_notify_triggers_to_products_and_categories_and_related_tables.exs | 10clouds/10Books | 622360ea190421e07d4b207700867be105894218 | [
"MIT"
] | 11 | 2018-08-29T15:59:09.000Z | 2021-08-25T16:35:13.000Z | priv/repo/migrations/20171230083311_add_notify_triggers_to_products_and_categories_and_related_tables.exs | fram74/10Books | 9e4e280032c7f7b9625c831efa9850d999327e53 | [
"MIT"
] | 16 | 2018-08-29T15:43:52.000Z | 2021-05-09T00:53:56.000Z | priv/repo/migrations/20171230083311_add_notify_triggers_to_products_and_categories_and_related_tables.exs | fram74/10Books | 9e4e280032c7f7b9625c831efa9850d999327e53 | [
"MIT"
] | 3 | 2019-05-29T14:22:59.000Z | 2020-06-06T12:30:54.000Z | defmodule LibTen.Repo.Migrations.AddNotifyTriggersToProductsAndCategoriesAndRelatedTables do
use Ecto.Migration
def change do
execute """
CREATE FUNCTION notify_about_update()
RETURNS TRIGGER AS $$
DECLARE
product_id text;
col_name text := quote_ident(TG_ARGV[1]);
BEGIN
... | 27.825397 | 92 | 0.660011 |
d513f956c185c4dd64b4f02921f225a375f41d90 | 1,322 | exs | Elixir | mix.exs | terianil/elixir-monero-address | 73f24e3b4554252e11e3e73fa1910a32c25d2c21 | [
"MIT"
] | null | null | null | mix.exs | terianil/elixir-monero-address | 73f24e3b4554252e11e3e73fa1910a32c25d2c21 | [
"MIT"
] | null | null | null | mix.exs | terianil/elixir-monero-address | 73f24e3b4554252e11e3e73fa1910a32c25d2c21 | [
"MIT"
] | null | null | null | defmodule MoneroAddress.MixProject do
use Mix.Project
@version "1.1.1"
@source_url "https://github.com/lukaszsamson/elixir-monero-address"
def project do
[
app: :monero_address,
version: @version,
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
description: description... | 22.793103 | 88 | 0.568835 |
d51408b66ee68da3a4b32e3de931f2240266fca8 | 18,566 | ex | Elixir | lib/myxql/messages.ex | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | lib/myxql/messages.ex | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | lib/myxql/messages.ex | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | defmodule MyXQL.Messages do
@moduledoc false
import Record
use Bitwise
import MyXQL.Types
# https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html
# OK packets are indicating EOF (instead of separate EOF packet)
# from this version.
#
# We support first GA version, 5.7.9, see: https://dev.mysql... | 30.536184 | 118 | 0.670796 |
d5141ab7d43fb45924826fdc3641e8e8e8193d6d | 1,616 | exs | Elixir | basic/strings.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | 1 | 2016-12-25T09:53:53.000Z | 2016-12-25T09:53:53.000Z | basic/strings.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | basic/strings.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | IO.puts <<104,101,108,108,111>> # "hello" <<bytes>>
IO.puts is_list('Example') # true
IO.puts is_list("Example") # false
IO.puts is_binary("Example") # true
IO.puts <<"Example">> === "Example" # true
IO.puts List.to_string('elixir') # "elixir"
IO.puts String.to_char_list("elixir"... | 26.933333 | 72 | 0.619431 |
d51432fc139c6e1b1c1905d0e82183f7df2a465f | 453 | exs | Elixir | config/config.example.exs | Union-Chat/Nerve | e0e6668c5783f21d5b310254b6938b56c1f1b177 | [
"MIT"
] | null | null | null | config/config.example.exs | Union-Chat/Nerve | e0e6668c5783f21d5b310254b6938b56c1f1b177 | [
"MIT"
] | null | null | null | config/config.example.exs | Union-Chat/Nerve | e0e6668c5783f21d5b310254b6938b56c1f1b177 | [
"MIT"
] | null | null | null | use Mix.Config
# Configures Elixir's Logger
config :logger,
:console,
format: "$time $metadata[$level] $message\n"
# Fiber cfg
config :fiber,
int_port: 6669,
ext_port: 8880,
redis_dsn: "redis://:password@127.0.0.1:6379/0",
cookie: "use something *very* long. Used to secure co... | 30.2 | 103 | 0.673289 |
d5143b422aebc734b8f85172cd1e20613ae8a7f7 | 1,097 | ex | Elixir | lib/idService_web/channels/user_socket.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | lib/idService_web/channels/user_socket.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | lib/idService_web/channels/user_socket.ex | dougalcorn/id-server | a699cdc05a484faf498846d7d428921dfaecb978 | [
"MIT"
] | null | null | null | defmodule IdServiceWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", IdServiceWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all ch... | 30.472222 | 84 | 0.696445 |
d51452b3137def40b280603da96e673709b56856 | 2,047 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.94 | 308 | 0.738153 |
d51454e9c47e19087ee06c3b8a998fb114fe2287 | 1,274 | ex | Elixir | src/dguweb/web/controllers/session_controller.ex | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 2 | 2016-08-09T16:46:52.000Z | 2016-08-09T16:46:59.000Z | src/dguweb/web/controllers/session_controller.ex | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 48 | 2016-07-14T15:12:41.000Z | 2016-09-27T16:19:54.000Z | src/dguweb/web/controllers/session_controller.ex | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 1 | 2021-04-10T21:23:44.000Z | 2021-04-10T21:23:44.000Z | defmodule DGUWeb.SessionController do
use DGUWeb.Web, :controller
alias DGUWeb.User
def new(conn, _params) do
changeset = User.changeset(%User{})
render conn, changeset: changeset
end
def create(conn, %{"user" => user_params}) do
changeset = User.changeset(%User{}, user_params)
case DGUWeb.... | 25.48 | 62 | 0.599686 |
d5145a92db93f5f19f8a2069e021dc94fb46ac62 | 6,095 | exs | Elixir | lib/elixir/test/elixir/kernel/import_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/kernel/import_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/kernel/import_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 Kernel.ImportTest do
use ExUnit.Case, async: true
# This should not warn due to the empty only
import URI, only: []
defmodule ImportAvailable do
defmacro flatten do
[flatten: 1]
end
end
test "multi-call" do
assert [List, String... | 24.090909 | 86 | 0.610172 |
d514687679aedf89921d30f48c13b17c4701ab6d | 448 | ex | Elixir | lib/readtome_web/schema/connector_types.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-09-05T20:54:57.000Z | 2021-09-05T20:54:57.000Z | lib/readtome_web/schema/connector_types.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 17 | 2019-07-06T17:31:56.000Z | 2021-06-22T15:31:06.000Z | lib/readtome_web/schema/connector_types.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-03-15T20:50:27.000Z | 2021-03-15T20:50:27.000Z | defmodule ReadtomeWeb.Schema.ConnectorTypes do
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
import Absinthe.Resolution.Helpers, only: [dataloader: 3]
@desc "A Follow Object"
object :follow do
field(:id, non_null(:id))
field(:user, :reader, resolve: dataloader(User, :user, ... | 32 | 71 | 0.716518 |
d514722a6de3e9cc29c15f93810a7d4a94e38cdf | 997 | ex | Elixir | lib/swedbankpay_checkout/client/psp/payment_orders/common/transaction_request.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/common/transaction_request.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/common/transaction_request.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.PaymentOrders.Common.TransactionRequest do
@moduledoc """
"""
@typedoc """
.transaction
`:payee_reference` must be unique for the whole merchant account
`:receipt_reference` must be unique for the whole merchant account (or nil)
See https://developer.swedbankpay... | 24.317073 | 83 | 0.631896 |
d5149c0d00abbe034827de4e497e84f3733f1bec | 380 | exs | Elixir | installer/templates/ecto/seeds.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/ecto/seeds.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/ecto/seeds.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | # 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:
#
# <%= app_module %>.Repo.insert!(%<%= app_module %>.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and ... | 31.666667 | 68 | 0.689474 |
d514a18a3cae7bef7011958e1798afb1915f9e75 | 4,642 | ex | Elixir | lib/ironman/utils.ex | TheFirstAvenger/ironman | 44ad1f6b9000423976215a088c9c0ac9fab5c2ba | [
"MIT"
] | 39 | 2019-02-19T21:59:35.000Z | 2021-03-31T21:43:58.000Z | lib/ironman/utils.ex | TheFirstAvenger/ironman | 44ad1f6b9000423976215a088c9c0ac9fab5c2ba | [
"MIT"
] | 17 | 2019-03-13T15:02:52.000Z | 2020-11-09T20:33:44.000Z | lib/ironman/utils.ex | TheFirstAvenger/ironman | 44ad1f6b9000423976215a088c9c0ac9fab5c2ba | [
"MIT"
] | 5 | 2020-01-30T13:51:15.000Z | 2020-10-25T18:27:59.000Z | defmodule Ironman.Utils do
@moduledoc false
alias Ironman.Config
alias Ironman.Utils.Cmd, as: ICmd
alias Ironman.Utils.Deps
alias Ironman.Utils.File, as: IFile
alias Ironman.Utils.HttpClient, as: IHttpClient
alias Ironman.Utils.IO, as: IIO
def puts(out) do
if Mix.env() != :test, do: IO.puts(out)
... | 25.228261 | 101 | 0.59888 |
d514a29d45ed23dc282c849c18ea2d827ce4cdaa | 4,088 | ex | Elixir | lib/contexsample_web/live/barchart_timer.ex | building39/contex-samples | 618a1394e890fc5c5e80213fa7cec01109ea5d71 | [
"MIT"
] | null | null | null | lib/contexsample_web/live/barchart_timer.ex | building39/contex-samples | 618a1394e890fc5c5e80213fa7cec01109ea5d71 | [
"MIT"
] | null | null | null | lib/contexsample_web/live/barchart_timer.ex | building39/contex-samples | 618a1394e890fc5c5e80213fa7cec01109ea5d71 | [
"MIT"
] | null | null | null | defmodule ContexSampleWeb.BarChartTimer do
use Phoenix.LiveView
use Phoenix.HTML
import ContexSampleWeb.Shared
alias Contex.{BarChart, Plot, Dataset}
def render(assigns) do
~L"""
<h3>Bar Chart On A Timer Example</h3>
<div class="container">
<div class="row">
<div class="co... | 31.206107 | 158 | 0.623288 |
d514a325d8a281e64755f13fd983739262f9bbc4 | 5,710 | ex | Elixir | lib/oban/repo.ex | wjdix/oban | b68bcf02d2942c6ef7a98f8ea6ec80912beea47c | [
"Apache-2.0"
] | null | null | null | lib/oban/repo.ex | wjdix/oban | b68bcf02d2942c6ef7a98f8ea6ec80912beea47c | [
"Apache-2.0"
] | null | null | null | lib/oban/repo.ex | wjdix/oban | b68bcf02d2942c6ef7a98f8ea6ec80912beea47c | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Repo do
@moduledoc """
Wrappers around `Ecto.Repo` callbacks.
These functions should be used when working with an Ecto repo inside a plugin. These functions
will resolve the correct repo instance, and set the schema prefix and the log level, according
to the Oban configuration.
"""
@type ... | 31.032609 | 96 | 0.58669 |
d514b33eafd85a0f50e75b9a283c2251617d42ec | 4,153 | exs | Elixir | 16-euler-tree.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | 16-euler-tree.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | 16-euler-tree.exs | yortz/30-days-of-elixir | b7126eeee16b726df0b00234fd4aff03a5c3e1a9 | [
"MIT"
] | null | null | null | defmodule Tree do
@moduledoc """
Project Euler - Problem 67
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find the maximum total from top to bottom in ... | 28.641379 | 404 | 0.498435 |
d514ddee9e0205ba99073780e063e5a9810bf82f | 347 | exs | Elixir | priv/repo/seeds.exs | esl/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 1 | 2021-06-15T08:18:50.000Z | 2021-06-15T08:18:50.000Z | priv/repo/seeds.exs | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 2 | 2021-06-23T16:35:04.000Z | 2021-06-23T16:35:44.000Z | # 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:
#
# Betex.Repo.insert!(%Betex.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
d5150225362a17b9320def17570090189c5009f8 | 545 | ex | Elixir | lib/remote_points_web/views/error_view.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | 1 | 2020-09-18T03:32:45.000Z | 2020-09-18T03:32:45.000Z | lib/remote_points_web/views/error_view.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | lib/remote_points_web/views/error_view.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | defmodule RemotePointsWeb.ErrorView do
use RemotePointsWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status me... | 32.058824 | 83 | 0.724771 |
d5151b50606644f975f82d4a6149376b4dece1a9 | 2,625 | ex | Elixir | lib/ex_oapi/parser/context/paths.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/context/paths.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | lib/ex_oapi/parser/context/paths.ex | mnussbaumer/ex_oapi | f5eb610283a7f92a69e6266effc0dc4e2c497b61 | [
"MIT"
] | null | null | null | defmodule ExOAPI.Parser.V3.Context.Paths do
use TypedEctoSchema
import Ecto.Changeset
import ExOAPI.Helpers.Casting, only: [translate: 2]
alias ExOAPI.Parser.V3.Context
@list_of_fields [
:ref,
:summary,
:description
]
@translations [
{"$ref", "ref"}
]
@primary_key false
typed_e... | 34.090909 | 86 | 0.689524 |
d515329971e4212c0bdb0d4d71ecb7661dcc5cf0 | 1,661 | exs | Elixir | Elixir/kv/test/kv/registry_test.exs | kkirstein/proglang-playground | d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd | [
"MIT"
] | null | null | null | Elixir/kv/test/kv/registry_test.exs | kkirstein/proglang-playground | d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd | [
"MIT"
] | null | null | null | Elixir/kv/test/kv/registry_test.exs | kkirstein/proglang-playground | d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd | [
"MIT"
] | null | null | null | defmodule KV.RegistryTest do
use ExUnit.Case, async: true
defmodule Forwarder do
use GenEvent
def handle_event(event, parent) do
send parent, event
{:ok, parent}
end
end
setup do
{:ok, manager} = GenEvent.start_link
{:ok, registry} = KV.Registry.start_link(manager)
GenEve... | 27.683333 | 67 | 0.67068 |
d51535068adeb62b7a069d0cccd0883fd7f45f17 | 3,309 | ex | Elixir | lib/learn/course_user.ex | mark-b-kauffman/bblearn_rest_client | 63fb0da9b8027e385df927f43ec5e9ea4a517570 | [
"BSD-3-Clause"
] | null | null | null | lib/learn/course_user.ex | mark-b-kauffman/bblearn_rest_client | 63fb0da9b8027e385df927f43ec5e9ea4a517570 | [
"BSD-3-Clause"
] | null | null | null | lib/learn/course_user.ex | mark-b-kauffman/bblearn_rest_client | 63fb0da9b8027e385df927f43ec5e9ea4a517570 | [
"BSD-3-Clause"
] | null | null | null | defmodule Learn.CourseUser do
# Struct for a v1 CourseUser
defstruct [:userId, :courseId, :childCourse, :dataSourceId, :availability, :courseRoleId, :user, :course]
@doc """
{
"userId": "string",
"courseId": "string",
"childCourseId": "string",
"dataSourceId": "string",
"created": "2019-04... | 26.472 | 107 | 0.496525 |
d515411c9b6b420e23ac2ac9eea6b33691ab515e | 27,649 | exs | Elixir | test/plug/conn_test.exs | DavidAlphaFox/Plug | 3a98e7667d76ba8d2eb629e518bcb7ac83a1a188 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | test/plug/conn_test.exs | DavidAlphaFox/Plug | 3a98e7667d76ba8d2eb629e518bcb7ac83a1a188 | [
"Apache-2.0"
] | null | null | null | test/plug/conn_test.exs | DavidAlphaFox/Plug | 3a98e7667d76ba8d2eb629e518bcb7ac83a1a188 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.ConnTest do
use ExUnit.Case, async: true
use Plug.Test
alias Plug.Conn
alias Plug.ProcessStore
test "test adapter builds on connection" do
conn = Plug.Adapters.Test.Conn.conn(%Plug.Conn{private: %{hello: :world}}, :post, "/hello", nil)
assert conn.method == "POST"
assert conn.path... | 33.192077 | 112 | 0.620637 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.