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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2888ada71b40108e31076b76a0106922a71cf857 | 492 | ex | Elixir | control-flow/fizzbuzz.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | control-flow/fizzbuzz.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | control-flow/fizzbuzz.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule FizzBuzz do
def upto(n) when n > 0, do: _upto(1, n, [])
defp _upto(_current, 0, result), do: Enum.reverse(result)
defp _upto(current, left, result) do
next_answer =
cond do
rem(current, 3) == 0 and rem(current, 5) == 0 ->
"FizzBuzz"
rem(current, 3) == 0 ->
... | 19.68 | 59 | 0.512195 |
2888d4108ef865ceb008083b3e9cb50430a9f992 | 11,787 | exs | Elixir | test/fixtures/chain.exs | fantypants/elixium_core | 54071b6126af2b20a310bc7beb92efc24e7acabd | [
"MIT"
] | null | null | null | test/fixtures/chain.exs | fantypants/elixium_core | 54071b6126af2b20a310bc7beb92efc24e7acabd | [
"MIT"
] | null | null | null | test/fixtures/chain.exs | fantypants/elixium_core | 54071b6126af2b20a310bc7beb92efc24e7acabd | [
"MIT"
] | null | null | null | [
%Elixium.Blockchain.Block{
difficulty: 5.0,
hash: "00000A23C3D541A44F575D09BC8D0D7080493AB295BCBC9F39229A8A6F1CDD29",
index: 11,
merkle_root: "8A629F71916CC6F690146378E91815D0704B1B72C8F4696B75DEA50FAE061FF2",
nonce: 83_921,
previous_hash: "0000077E74627951E01EE76DDF7F7609788CFED573F4BFAB4D2... | 37.300633 | 151 | 0.697124 |
2888f81a6f855d4a12ae60b4e01b2701144d5480 | 754 | exs | Elixir | test/authable/grant_types/password_test.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | test/authable/grant_types/password_test.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | test/authable/grant_types/password_test.exs | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | 1 | 2021-01-12T00:55:56.000Z | 2021-01-12T00:55:56.000Z | defmodule Authable.GrantType.PasswordTest do
use ExUnit.Case
use Authable.Rollbackable
use Authable.RepoBase
import Authable.Factory
alias Authable.GrantType.Password, as: PasswordGrantType
setup do
resource_owner = insert(:user)
client_owner = insert(:user)
client = insert(:client, user_id: cl... | 26 | 76 | 0.690981 |
288909c2cdca7a3a4f65b1c6d72f9da1e4563237 | 3,822 | ex | Elixir | web/ex_admin/errors_helper.ex | IvanIvanoff/ex_admin | 550f748c3b8e18f02ea86b63c67e4e674b2edb41 | [
"MIT"
] | 1 | 2020-08-07T19:51:47.000Z | 2020-08-07T19:51:47.000Z | web/ex_admin/errors_helper.ex | IvanIvanoff/ex_admin | 550f748c3b8e18f02ea86b63c67e4e674b2edb41 | [
"MIT"
] | null | null | null | web/ex_admin/errors_helper.ex | IvanIvanoff/ex_admin | 550f748c3b8e18f02ea86b63c67e4e674b2edb41 | [
"MIT"
] | 1 | 2019-11-24T12:39:38.000Z | 2019-11-24T12:39:38.000Z | defmodule ExAdmin.ErrorsHelper do
@moduledoc """
The primary purpose of this module is to take nested changeset errors created
by many_to_many and has many through relationships and change them into a format
that the forms can use to get the error message from the field name.
Changes sets such as:
... | 35.06422 | 99 | 0.641549 |
28890ec7670f8d51b18e7bd59918cbe97c6949f9 | 4,266 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/targetable_remarketing_list.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/targetable_remarketing_list.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/targetable_remarketing_list.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... | 53.325 | 550 | 0.710033 |
288921b463a9b77e4832530583dc7e1c10e57925 | 4,286 | ex | Elixir | lib/canvas_api/workers/slack_notifier.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | lib/canvas_api/workers/slack_notifier.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | lib/canvas_api/workers/slack_notifier.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.SlackNotifier do
@moduledoc """
Notifes a Slack channel of canvas activity.
"""
use CanvasAPI.Web, :worker
alias CanvasAPI.{Block, Canvas, CanvasWatchService, Comment, CommentService,
ThreadSubscriptionService, User}
@doc """
Notify a Slack channel of a new canvas... | 33.484375 | 80 | 0.631358 |
2889266c246c57d18a69f4cf09274acab2236a1c | 1,239 | ex | Elixir | lib/annon_api/requests/repo.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | lib/annon_api/requests/repo.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | lib/annon_api/requests/repo.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.Requests.Repo do
@moduledoc """
This repo is used to store request and responses.
We recommend database with low write latency,
because it will have up to 2 writes for each API call that is going trough Annon.
Also, if Idempotency plug is enabled and `X-Idempotency-Key: <key>` header is sent... | 26.361702 | 99 | 0.692494 |
288946dadad2b55ab5896ad7f0f88961938db424 | 2,260 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_info_type_transformation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_info_type_transformation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_info_type_transformation.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... | 41.851852 | 288 | 0.766372 |
288966efba227a6157c7990ebf8d266d12777c14 | 148 | ex | Elixir | web/controllers/page_controller.ex | jchartsell/caesar_cipher | bc23b2d8f55a6e25ecefe6539af7e476f69410fb | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | jchartsell/caesar_cipher | bc23b2d8f55a6e25ecefe6539af7e476f69410fb | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | jchartsell/caesar_cipher | bc23b2d8f55a6e25ecefe6539af7e476f69410fb | [
"MIT"
] | null | null | null | defmodule CaesarCipher.PageController do
use CaesarCipher.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.5 | 40 | 0.75 |
288968d1a2c6601ee6471880dff241f63a857d0c | 1,624 | ex | Elixir | lib/livewords_web/endpoint.ex | evanbattaglia/livewords | c1324cde64e6d7873942e24a473feb16482c9fbb | [
"MIT"
] | null | null | null | lib/livewords_web/endpoint.ex | evanbattaglia/livewords | c1324cde64e6d7873942e24a473feb16482c9fbb | [
"MIT"
] | null | null | null | lib/livewords_web/endpoint.ex | evanbattaglia/livewords | c1324cde64e6d7873942e24a473feb16482c9fbb | [
"MIT"
] | null | null | null | defmodule LivewordsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :livewords
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_livew... | 29.527273 | 97 | 0.721059 |
28897588e923a62e720658a99ec69384031e2e0d | 87 | exs | Elixir | test/assembla_cli_test.exs | assembla/ex_assembla_cli | c479e9752e708f772231e5b9550f66a4f6489ceb | [
"MIT"
] | null | null | null | test/assembla_cli_test.exs | assembla/ex_assembla_cli | c479e9752e708f772231e5b9550f66a4f6489ceb | [
"MIT"
] | null | null | null | test/assembla_cli_test.exs | assembla/ex_assembla_cli | c479e9752e708f772231e5b9550f66a4f6489ceb | [
"MIT"
] | null | null | null | defmodule AssemblaCliTest do
use ExUnit.Case, async: true
doctest AssemblaCli
end
| 14.5 | 30 | 0.793103 |
2889836d8dededd39089abccf63bf0025805a382 | 1,906 | exs | Elixir | mix.exs | ArthurClemens/bolt_sips | e80616fc785d7a8e0a5e42381008d8ee27f07e0e | [
"Apache-2.0"
] | null | null | null | mix.exs | ArthurClemens/bolt_sips | e80616fc785d7a8e0a5e42381008d8ee27f07e0e | [
"Apache-2.0"
] | null | null | null | mix.exs | ArthurClemens/bolt_sips | e80616fc785d7a8e0a5e42381008d8ee27f07e0e | [
"Apache-2.0"
] | null | null | null | defmodule BoltSips.Mixfile do
use Mix.Project
@version "0.5.10"
def project do
[
app: :bolt_sips,
version: @version,
elixir: "~> 1.5",
deps: deps(),
package: package(),
description: "Neo4j driver for Elixir, using the fast Bolt protocol",
name: "Bolt.Sips",
bu... | 25.078947 | 76 | 0.537251 |
28898ed29f3d4d950360d6ec63f1be223be7d5c3 | 1,213 | ex | Elixir | microService-elixir/lib/heat_tags_web/views/error_helpers.ex | Willian-Rodrigues/NextLevelWeek-Heat | 3b46e6e83afb08b7d779a9a82f3f51c6f124213b | [
"MIT"
] | 2 | 2021-10-30T11:53:58.000Z | 2022-02-06T02:17:06.000Z | microService-elixir/lib/heat_tags_web/views/error_helpers.ex | Willian-Rodrigues/NextLevelWeek-Heat | 3b46e6e83afb08b7d779a9a82f3f51c6f124213b | [
"MIT"
] | 1 | 2021-10-30T14:24:28.000Z | 2021-10-30T14:24:28.000Z | microService-elixir/lib/heat_tags_web/views/error_helpers.ex | Willian-Rodrigues/NextLevelWeek-Heat | 3b46e6e83afb08b7d779a9a82f3f51c6f124213b | [
"MIT"
] | null | null | null | defmodule HeatTagsWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static arg... | 35.676471 | 77 | 0.671888 |
2889a1d57ba98814793c52f53752ce70c1732737 | 224 | exs | Elixir | priv/repo/migrations/20190416124051_add_auth0_fields_to_users.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | priv/repo/migrations/20190416124051_add_auth0_fields_to_users.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | priv/repo/migrations/20190416124051_add_auth0_fields_to_users.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Repo.Migrations.AddAuth0FieldsToUsers do
use Ecto.Migration
def change do
alter table("users") do
add :auth0_uid, :string
end
create index("users", [:auth0_uid], unique: true)
end
end
| 18.666667 | 54 | 0.691964 |
2889a3827b06a727ce403c22846b19cd3641f5d7 | 180 | ex | Elixir | lib/naboo/accounts/user/user_by_email_query.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | lib/naboo/accounts/user/user_by_email_query.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | lib/naboo/accounts/user/user_by_email_query.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | null | null | null | defmodule Naboo.Accounts.Queries.UserByEmail do
import Ecto.Query
alias Naboo.Accounts.User
def new(email) do
from u in User,
where: u.email == ^email
end
end
| 15 | 47 | 0.694444 |
2889ec8242e83cdc696f5ed0d74849ff69a47e98 | 1,109 | exs | Elixir | config/config.exs | voppe/hexgrid | fa880349c555e9a63abc59be639620461182546a | [
"MIT"
] | 27 | 2016-11-04T21:38:55.000Z | 2022-03-29T04:53:48.000Z | config/config.exs | voppe/hexgrid | fa880349c555e9a63abc59be639620461182546a | [
"MIT"
] | 7 | 2017-03-30T02:47:24.000Z | 2019-08-06T09:30:19.000Z | config/config.exs | voppe/hexgrid | fa880349c555e9a63abc59be639620461182546a | [
"MIT"
] | 6 | 2017-02-24T14:37:39.000Z | 2021-03-10T23:16:34.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... | 35.774194 | 73 | 0.749324 |
288a1a7437f2f286fb9e41459b09ae71ad0d4d3c | 59 | ex | Elixir | dingen/lib/dingen_web/views/page_view.ex | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/lib/dingen_web/views/page_view.ex | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/lib/dingen_web/views/page_view.ex | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | defmodule DingenWeb.PageView do
use DingenWeb, :view
end
| 14.75 | 31 | 0.79661 |
288a2495381fc402f6eebbb2fc0ff2e650dc4202 | 1,591 | exs | Elixir | test/plug_webhook_test.exs | michalmuskala/plug_webhook | 8636d7dc83810879bd2f7f5e1f0e3e963bec849a | [
"Apache-2.0"
] | 20 | 2018-07-29T18:44:51.000Z | 2020-01-05T01:40:45.000Z | test/plug_webhook_test.exs | michalmuskala/plug_webhook | 8636d7dc83810879bd2f7f5e1f0e3e963bec849a | [
"Apache-2.0"
] | null | null | null | test/plug_webhook_test.exs | michalmuskala/plug_webhook | 8636d7dc83810879bd2f7f5e1f0e3e963bec849a | [
"Apache-2.0"
] | null | null | null | defmodule PlugWebhookTest do
use ExUnit.Case, async: true
use Plug.Test
defmodule Sample do
import Plug.Conn
@behaviour Plug
@behaviour PlugWebhook
@impl true
def verify_signature(conn, "x=good", _), do: conn
def verify_signature(conn, "x=bad", _) do
conn
|> send_resp(400, ... | 25.253968 | 76 | 0.622879 |
288a28edd1f96f31967f091c5ee51e4d123109dc | 545 | ex | Elixir | test/support/xa.ex | aman-io/yacto | 4c26772343a9029923ad7e25245f17f2be22a1a1 | [
"Apache-2.0"
] | 56 | 2017-11-30T02:07:07.000Z | 2022-02-16T17:38:42.000Z | test/support/xa.ex | aman-io/yacto | 4c26772343a9029923ad7e25245f17f2be22a1a1 | [
"Apache-2.0"
] | 22 | 2018-01-04T00:34:51.000Z | 2021-08-01T06:52:10.000Z | test/support/xa.ex | aman-io/yacto | 4c26772343a9029923ad7e25245f17f2be22a1a1 | [
"Apache-2.0"
] | 13 | 2018-08-08T05:32:42.000Z | 2021-07-30T14:57:35.000Z | defmodule Yacto.XATest.Repo0 do
use Ecto.Repo, otp_app: :yacto, adapter: Ecto.Adapters.MyXQL
end
defmodule Yacto.XATest.Repo1 do
use Ecto.Repo, otp_app: :yacto, adapter: Ecto.Adapters.MyXQL
end
defmodule Yacto.XATest.Player do
use Ecto.Schema
schema "xa_player" do
field(:name)
field(:value, :integer)... | 19.464286 | 62 | 0.706422 |
288a29357f5ed5ce739cf8d52cfffd7e0fbe7b8e | 18,583 | exs | Elixir | test/phoenix_live_view/html_engine_test.exs | khionu/phoenix_live_view | 4ada690fb1579eebf787bd7459233086b383bd7b | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_engine_test.exs | khionu/phoenix_live_view | 4ada690fb1579eebf787bd7459233086b383bd7b | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_engine_test.exs | khionu/phoenix_live_view | 4ada690fb1579eebf787bd7459233086b383bd7b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLEngineTest do
use ExUnit.Case, async: true
import Phoenix.LiveView.Helpers, only: [sigil_H: 2, render_block: 1, render_block: 2]
alias Phoenix.LiveView.HTMLEngine
alias Phoenix.LiveView.HTMLTokenizer.ParseError
defp eval(string, assigns \\ %{}, opts \\ []) do
opts =
... | 29.7328 | 114 | 0.552925 |
288a350fec3d1b5f61062e9cb059835a0bcaea2d | 573 | ex | Elixir | learning/redfour/physics/lib/calcs.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/redfour/physics/lib/calcs.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/redfour/physics/lib/calcs.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Calcs do
def square_root(val), do: nth_root(2, val)
def cube_root(val), do: nth_root(3, val)
def squared(val), do: val * val
def cubed(val), do: val * val * val
def pi_squared, do: :math.pi() |> squared
def nth_root(n, x, precision \\ 1.0e-5) do
f = fn prev -> ((n - 1) * prev + x / :math.pow(... | 35.8125 | 90 | 0.633508 |
288a46c7533b3414099163651023b9581fcb6297 | 1,858 | ex | Elixir | lib/text/ru.ex | verrchu/james | 266ad1bc81afe239b962a9f8106fa695b237dcb1 | [
"MIT"
] | null | null | null | lib/text/ru.ex | verrchu/james | 266ad1bc81afe239b962a9f8106fa695b237dcb1 | [
"MIT"
] | null | null | null | lib/text/ru.ex | verrchu/james | 266ad1bc81afe239b962a9f8106fa695b237dcb1 | [
"MIT"
] | null | null | null | defmodule James.Text.RU do
use James.Text
defmsg(:INVALID_MESSAGE_TYPE, [
"""
Поалуйста, введите тестковое сообщение
""",
"""
К сожалению, я понимаю только текст
"""
])
defmsg(:INVALID_COMMAND, [
"""
__*Ошибка*__: Неверная команда
*Подсказка*:
```
Введите одну из п... | 16.017241 | 112 | 0.532831 |
288a6bb499ea3f81b9bf61d78541deb6ac59ba2e | 1,833 | ex | Elixir | Elixir/kv/lib/kv/registry.ex | kkirstein/proglang-playground | d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd | [
"MIT"
] | null | null | null | Elixir/kv/lib/kv/registry.ex | kkirstein/proglang-playground | d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd | [
"MIT"
] | null | null | null | Elixir/kv/lib/kv/registry.ex | kkirstein/proglang-playground | d00be09ba2bb2351c6f5287cc4d93fcaf21f75fd | [
"MIT"
] | null | null | null | defmodule KV.Registry do
use GenServer
## Client API
@doc """
Start the registry.
"""
def start_link(event_manager, opts \\ []) do
GenServer.start_link(__MODULE__, event_manager, opts)
end
@doc """
Looks up the bucket pid for 'name' stored in 'server'.
Returns `{:ok, pid}` in case a bucket e... | 23.202532 | 70 | 0.633933 |
288a7ba627bd9c081c4035a1ad6b19e3fad2bed4 | 203 | ex | Elixir | web/controllers/play_controller.ex | mogest/superlific | 375d64e3fce594fa1b2322c1652f2f2e648bfe85 | [
"MIT"
] | 6 | 2016-10-13T02:29:54.000Z | 2017-09-13T18:17:56.000Z | web/controllers/play_controller.ex | mogest/superlific | 375d64e3fce594fa1b2322c1652f2f2e648bfe85 | [
"MIT"
] | null | null | null | web/controllers/play_controller.ex | mogest/superlific | 375d64e3fce594fa1b2322c1652f2f2e648bfe85 | [
"MIT"
] | null | null | null | defmodule Superlific.PlayController do
use Superlific.Web, :controller
def index(conn, _params) do
render conn, "index.html", token: :crypto.strong_rand_bytes(16) |> Base.url_encode64
end
end
| 25.375 | 88 | 0.753695 |
288a8a8100a627a7824a0247c99e3a57011598df | 119 | ex | Elixir | test/advanced.ex | exCSS/configurator | fce7abe86965020afeef90894e50c867d3e3781b | [
"MIT"
] | null | null | null | test/advanced.ex | exCSS/configurator | fce7abe86965020afeef90894e50c867d3e3781b | [
"MIT"
] | null | null | null | test/advanced.ex | exCSS/configurator | fce7abe86965020afeef90894e50c867d3e3781b | [
"MIT"
] | null | null | null | [ExtendedCSS]
bodyBG="grey"
fontcolor="cyan"
font-type="monospace"
baseMargin="2px"
basePadding="2px"
font-size="23px"
| 14.875 | 21 | 0.756303 |
288ac8f3d6130e5d34beb3de9d250afb10b431da | 2,891 | ex | Elixir | apps/andi/lib/andi_web/controllers/api/organization_controller.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/andi/lib/andi_web/controllers/api/organization_controller.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/andi/lib/andi_web/controllers/api/organization_controller.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule AndiWeb.API.OrganizationController do
@moduledoc """
Creates new organizations and retrieves existing ones in ViewState.
"""
use AndiWeb, :controller
require Logger
alias SmartCity.Organization
import Andi
import SmartCity.Event, only: [organization_update: 0]
@doc """
Parse a data messa... | 24.709402 | 83 | 0.595988 |
288b0d4f61d5df7db3af30c29a252071d6df2f6a | 674 | ex | Elixir | OTPServers/sequence/lib/sequence/server.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | 2 | 2015-11-14T21:35:01.000Z | 2017-07-12T07:09:40.000Z | OTPServers/sequence/lib/sequence/server.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | OTPServers/sequence/lib/sequence/server.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | defmodule Sequence.Server do
use GenServer
def start_link(current_number) do
GenServer.start_link(__MODULE__, current_number, name: __MODULE__)
end
def next_number do
GenServer.call __MODULE__, :next_number
end
def increment_number(delta) do
GenServer.cast __MODULE__, {:increment_number, delta}
end
de... | 24.962963 | 78 | 0.747774 |
288b2b3af754f747d2d8bf8c72e9339491b13057 | 2,588 | exs | Elixir | deps/ex_doc/mix.exs | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/ex_doc/mix.exs | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/ex_doc/mix.exs | mwindholtz/limbo | 84da57c72ddb2f1dd78bf2992410268c5ad1b2d4 | [
"Apache-2.0"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule ExDoc.Mixfile do
use Mix.Project
@version "0.19.1"
def project do
[
app: :ex_doc,
version: @version,
elixir: "~> 1.7",
deps: deps(),
aliases: aliases(),
package: package(),
escript: escript(),
source_url: "https://github.com/elixir-lang/ex_doc/",
... | 22.504348 | 94 | 0.550618 |
288b7141bbfc910c0cad7353c4859af781b9fb21 | 1,619 | exs | Elixir | mindcrunch/phoenix/config/dev.exs | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | mindcrunch/phoenix/config/dev.exs | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | mindcrunch/phoenix/config/dev.exs | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | 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 :mindcrunch, MindcrunchWeb.Endpoint,
http: [po... | 33.040816 | 170 | 0.714639 |
288b9218c54cbee3422f183814c4819070aabb02 | 136 | ex | Elixir | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}/mailer.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-01-16T15:40:04.000Z | 2020-01-11T19:34:42.000Z | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}/mailer.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-03-10T14:18:37.000Z | 2018-03-13T20:43:06.000Z | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}/mailer.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 1 | 2019-10-11T20:52:31.000Z | 2019-10-11T20:52:31.000Z | defmodule {{cookiecutter.app_name.split('_')|map('title')|join}}.Mailer do
use Bamboo.Mailer, otp_app: :{{cookiecutter.app_name}}
end
| 34 | 74 | 0.735294 |
288b92cd452fb74e1a64821bc07e68fe35665bf9 | 863 | ex | Elixir | lib/type_class/utility/attribute.ex | heydtn/type_class | 442bbfbac336231351feecb83ec7bc9ccbe07a57 | [
"MIT"
] | 50 | 2019-06-14T09:46:47.000Z | 2022-02-22T19:46:57.000Z | lib/type_class/utility/attribute.ex | heydtn/type_class | 442bbfbac336231351feecb83ec7bc9ccbe07a57 | [
"MIT"
] | 10 | 2019-07-08T10:08:57.000Z | 2022-01-23T23:29:52.000Z | lib/type_class/utility/attribute.ex | heydtn/type_class | 442bbfbac336231351feecb83ec7bc9ccbe07a57 | [
"MIT"
] | 6 | 2019-06-25T17:07:57.000Z | 2022-01-14T19:58:49.000Z | defmodule TypeClass.Utility.Attribute do
@moduledoc "Helpers to module attributes"
@doc "Set up a compile time attribute key for getting and setting"
@spec register(atom(), []) :: no_return()
defmacro register(attribute, opts \\ []) do
quote bind_quoted: [attribute: attribute, opts: opts] do
Module.r... | 33.192308 | 78 | 0.711472 |
288b95940c5d3a641bcf2fb4ad81c880c0235ec1 | 2,471 | ex | Elixir | apps/admin_app/lib/admin_app_web/views/promotion_view.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/admin_app/lib/admin_app_web/views/promotion_view.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/admin_app/lib/admin_app_web/views/promotion_view.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | defmodule AdminAppWeb.PromotionView do
@moduledoc false
use AdminAppWeb, :view
alias AdminApp.Promotion.ActionContext
alias AdminApp.Promotion.RuleContext
alias Ecto.Changeset
alias Snitch.Data.Schema.{Promotion, PromotionAction, PromotionRule}
def render("index.json", %{promotions: promotions}) do
... | 27.764045 | 91 | 0.643464 |
288b98358b5be141c3e7a25d74c9e0181598c59b | 155 | ex | Elixir | lib/oli_web/live/breadcrumb/breadcrumb.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/live/breadcrumb/breadcrumb.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/live/breadcrumb/breadcrumb.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.Breadcrumb.Breadcrumb do
defstruct full_title: nil,
short_title: nil,
link: nil,
render_fn: nil
end
| 22.142857 | 41 | 0.612903 |
288b991ae9539571af19ede543ef295b90a16bfa | 2,460 | exs | Elixir | test/cachex/actions/purge_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | test/cachex/actions/purge_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | test/cachex/actions/purge_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Actions.PurgeTest do
use CachexCase
# This test makes sure that we can manually purge expired records from the cache.
# We attempt to purge before a key has expired and verify that it has not been
# removed. We then wait until after the TTL has passed and ensure that it is
# removed by the p... | 31.538462 | 84 | 0.647561 |
288ba51daa8baac0b832397e8dc783febf8bb804 | 3,005 | exs | Elixir | test/controllers/page_controller_test.exs | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | null | null | null | test/controllers/page_controller_test.exs | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | 2 | 2019-12-18T18:08:10.000Z | 2020-11-30T23:01:37.000Z | test/controllers/page_controller_test.exs | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | null | null | null | defmodule ExCiProxy.PageControllerTest do
use ExCiProxy.ConnCase
@valid_attrs %{project: "testproj", ref: "193689e8a01e", arch: "amd64", interface: "cli" }
@invalid_project_attrs %{project: "invalidname", ref: "834f6f81e394", arch: "amd64", interface: "cli" }
@ci_system_misconfigured %{project: "prometheus",... | 49.262295 | 145 | 0.70416 |
288bd7b11ff1b51421752f359d3008f15c2606cb | 901 | exs | Elixir | isogram/isogram_test.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | isogram/isogram_test.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | isogram/isogram_test.exs | ChrisWilding/exercism-elixir | ee966439b460f82ef9581611f71c2f626402d14a | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("isogram.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule IsogramTest do
use ExUnit.Case
test "isogram lowercase" do
assert Isogram.isogram?("subdermatoglyphic")
end
test "not isogram lowercase "... | 20.953488 | 61 | 0.713651 |
288c02f449fb07e5ae3fdff08510f8cba8b40dcf | 1,038 | ex | Elixir | test/support/conn_case.ex | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | krishnakumar4a4/speak_up | a7b99e812ea4aaa6473a866f89fb0f4bb8973f6e | [
"MIT"
] | null | null | null | defmodule SpeakUpWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the... | 26.615385 | 69 | 0.719653 |
288c0a950d2645b4e3cf92fd0d6d53b574c2c91c | 14,351 | ex | Elixir | lib/elixir/lib/hash_set.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/hash_set.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/hash_set.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | defmodule HashSet do
@moduledoc """
A set store.
The `HashSet` is meant to work well with both small and
large sets. It is an implementation of the `Set` behaviour.
For more information about the functions and their APIs,
please consult the `Set` module.
"""
@behaviour Set
# The ordered record cont... | 29.109533 | 146 | 0.622674 |
288c109ce0ad1c649d307a0dce561970e85a956b | 2,623 | ex | Elixir | lib/prism/server.ex | nsweeting/prism | fdedd2a1a07d1d3aa7636b27824de7c3b7b855fb | [
"MIT"
] | null | null | null | lib/prism/server.ex | nsweeting/prism | fdedd2a1a07d1d3aa7636b27824de7c3b7b855fb | [
"MIT"
] | null | null | null | lib/prism/server.ex | nsweeting/prism | fdedd2a1a07d1d3aa7636b27824de7c3b7b855fb | [
"MIT"
] | null | null | null | defmodule Prism.Server do
@moduledoc false
use GenServer
################################
# Public API
################################
@doc false
@spec start_link(atom(), Prism.subscribers()) :: GenServer.on_start()
def start_link(name, subscribers) do
GenServer.start_link(__MODULE__, {name, sub... | 24.980952 | 78 | 0.600457 |
288c1c9703066f17fd750c9c5fc413f46f9cd946 | 3,095 | ex | Elixir | lib/database/patch.ex | gfleury/bors-ng | 02ca714283a5c5a2592c8b5ce5409e3db00ac954 | [
"Apache-2.0"
] | 1,223 | 2017-01-11T19:25:08.000Z | 2022-03-21T12:31:28.000Z | lib/database/patch.ex | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 1,428 | 2017-01-09T16:36:18.000Z | 2022-03-28T14:19:40.000Z | lib/database/patch.ex | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 184 | 2017-01-10T18:08:06.000Z | 2022-03-14T18:53:24.000Z | defmodule BorsNG.Database.Patch do
@moduledoc """
Corresponds to a pull request in GitHub.
A closed patch may not be r+'ed,
nor can a patch associated with a completed batch be r+'ed again,
though a patch may be merged and r+'ed at the same time.
"""
use BorsNG.Database.Model
@type t :: %__MODULE__{}... | 25.368852 | 85 | 0.617447 |
288c3419770d555c9b558a4f0ff4a20b3d48c227 | 1,982 | exs | Elixir | test/unit/xsd/utils/regex_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/xsd/utils/regex_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/xsd/utils/regex_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.XSD.Utils.RegexTest do
use ExUnit.Case
alias RDF.XSD.Utils.Regex
@poem """
<poem author="Wilhelm Busch">
Kaum hat dies der Hahn gesehen,
Fängt er auch schon an zu krähen:
Kikeriki! Kikikerikih!!
Tak, tak, tak! - da kommen sie.
</poem>
"""
describe "matches?" do
test "without f... | 29.147059 | 98 | 0.510091 |
288c42b21ff9110ad0f7ed0121899ad1d7b2e7c8 | 1,681 | ex | Elixir | apps/day2/lib/day2.ex | DFilipeS/advent-of-code-2020 | 89acbc1dcc2352e91463b0faebda868417d7e5d7 | [
"Unlicense"
] | null | null | null | apps/day2/lib/day2.ex | DFilipeS/advent-of-code-2020 | 89acbc1dcc2352e91463b0faebda868417d7e5d7 | [
"Unlicense"
] | null | null | null | apps/day2/lib/day2.ex | DFilipeS/advent-of-code-2020 | 89acbc1dcc2352e91463b0faebda868417d7e5d7 | [
"Unlicense"
] | null | null | null | defmodule Day2 do
@moduledoc """
Documentation for `Day2` problems.
Source: https://adventofcode.com/2020/day/2
"""
def validate(path, policy) do
path
|> read_input(policy)
|> Enum.map(&is_valid?/1)
|> Enum.filter(& &1)
|> length()
end
def is_valid?(%{"min" => min, "max" => max, "ta... | 28.491525 | 97 | 0.553837 |
288c4968db0e7b25838ecbb2f5de3797cd2f07b9 | 2,245 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/query_timeline_sample.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/query_timeline_sample.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/query_timeline_sample.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 ... | 38.050847 | 227 | 0.711359 |
288c6403ae46e980f3462924f03f2dede8d03172 | 2,352 | ex | Elixir | lib/membrane_portaudio_plugin/source.ex | membraneframework/membrane-element-portaudio | b1622040281e790422e0be94092957e1ef8cc4c1 | [
"Apache-2.0"
] | 2 | 2018-07-27T14:16:02.000Z | 2019-10-30T17:54:41.000Z | lib/membrane_portaudio_plugin/source.ex | membraneframework/membrane-element-portaudio | b1622040281e790422e0be94092957e1ef8cc4c1 | [
"Apache-2.0"
] | 3 | 2018-10-15T07:58:25.000Z | 2020-08-07T05:20:30.000Z | lib/membrane_portaudio_plugin/source.ex | membraneframework/membrane-element-portaudio | b1622040281e790422e0be94092957e1ef8cc4c1 | [
"Apache-2.0"
] | 1 | 2019-10-30T17:54:51.000Z | 2019-10-30T17:54:51.000Z | defmodule Membrane.PortAudio.Source do
@moduledoc """
Audio source that captures sound via multi-platform PortAudio library.
"""
use Membrane.Source
alias Membrane.Buffer
alias Membrane.RawAudio
alias Membrane.PortAudio.SyncExecutor
alias __MODULE__.Native
@pa_no_device -1
# TODO Add support for... | 28 | 98 | 0.600765 |
288ca5d63ece3adbc33756d45106e78edb671192 | 17,543 | ex | Elixir | clients/slides/lib/google_api/slides/v1/api/presentations.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/api/presentations.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/api/presentations.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 44.867008 | 196 | 0.634327 |
288cb7523abdfa588a46c10f0254abd792e244f4 | 1,474 | exs | Elixir | config/releases.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | config/releases.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | config/releases.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | import Config
defmodule CFG do
def application_port(), do: String.to_integer(System.get_env("PORT", "4000"))
def canonical_host(), do: System.fetch_env!("CANONICAL_HOST")
def live_view_signing_salt(), do: System.get_env("LIVE_VIEW_SIGNING_SALT")
def secret_key_base(), do: System.fetch_env!("SECRET_KEY_BASE")
... | 32.043478 | 122 | 0.706242 |
288cb86c44080e41d5d3ca660541f63de8c16e81 | 1,059 | ex | Elixir | godin_umbrella/apps/godin_web/lib/godin_web/channels/user_socket.ex | ruben44bac/god-n | af78dc683b58bb3a5e4dbfec2dd53887651a8aa7 | [
"MIT"
] | null | null | null | godin_umbrella/apps/godin_web/lib/godin_web/channels/user_socket.ex | ruben44bac/god-n | af78dc683b58bb3a5e4dbfec2dd53887651a8aa7 | [
"MIT"
] | null | null | null | godin_umbrella/apps/godin_web/lib/godin_web/channels/user_socket.ex | ruben44bac/god-n | af78dc683b58bb3a5e4dbfec2dd53887651a8aa7 | [
"MIT"
] | null | null | null | defmodule GodinWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", GodinWeb.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, ... | 31.147059 | 83 | 0.694995 |
288cc224609cc748835e9a639a9da883dfe43b95 | 24,449 | exs | Elixir | lib/elixir/test/elixir/code_formatter/comments_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/test/elixir/code_formatter/comments_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/test/elixir/code_formatter/comments_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.CommentsTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
describe "at the root" do
test "for empty documents" do
assert_same "# hello world"
end
test "are reformatted"... | 15.875974 | 72 | 0.404884 |
288cd240ee84f14c6ab4cbefd7167ad4f1fdc2af | 156 | exs | Elixir | bin/scenario.exs | savonarola/smppex_graceful | dd8b5e2d26f2f4f11b357327a304ef39b188da70 | [
"MIT"
] | null | null | null | bin/scenario.exs | savonarola/smppex_graceful | dd8b5e2d26f2f4f11b357327a304ef39b188da70 | [
"MIT"
] | null | null | null | bin/scenario.exs | savonarola/smppex_graceful | dd8b5e2d26f2f4f11b357327a304ef39b188da70 | [
"MIT"
] | 2 | 2020-08-06T20:25:30.000Z | 2021-02-01T13:22:41.000Z | ESME.start(:esme1, "localhost", 2775, "sid1", "pass1")
ESME.start(:esme2, "localhost", 2775, "sid2", "pass2")
:timer.sleep(1000)
Application.stop(:esme)
| 19.5 | 54 | 0.673077 |
288cd5ad67cf42511874ed8d5bf12ba12409eab4 | 959 | exs | Elixir | year2021/day1.exs | CerealBoy/adventofcode | 22c9dfceda8b8a8abdd23e8bff868119573156e4 | [
"Apache-2.0"
] | null | null | null | year2021/day1.exs | CerealBoy/adventofcode | 22c9dfceda8b8a8abdd23e8bff868119573156e4 | [
"Apache-2.0"
] | null | null | null | year2021/day1.exs | CerealBoy/adventofcode | 22c9dfceda8b8a8abdd23e8bff868119573156e4 | [
"Apache-2.0"
] | null | null | null | defmodule AoC do
def read_file do
{:ok, d} = File.read("./day1-in")
d
|> String.split
|> Enum.map(&String.to_integer/1)
end
def first([], _, count), do: IO.puts "#1: " <> Integer.to_string(count)
def first([head | tail], prev, count) do
with :true <- head > prev do
first(tail, head, c... | 27.4 | 80 | 0.611053 |
288ce034dca5f21c1357bd90d21b5db8059f505a | 1,028 | exs | Elixir | mix.exs | evangilo/elixir_mod_event | 833d7ed18d7e06769f10ed8bd5eab4170e2408ca | [
"Apache-2.0"
] | null | null | null | mix.exs | evangilo/elixir_mod_event | 833d7ed18d7e06769f10ed8bd5eab4170e2408ca | [
"Apache-2.0"
] | null | null | null | mix.exs | evangilo/elixir_mod_event | 833d7ed18d7e06769f10ed8bd5eab4170e2408ca | [
"Apache-2.0"
] | 1 | 2019-09-10T00:07:58.000Z | 2019-09-10T00:07:58.000Z | defmodule FSModEvent.Mixfile do
use Mix.Project
def project do
[
app: :elixir_mod_event,
name: "elixir_mod_event",
version: "0.0.10",
description: description(),
package: package(),
source_url: "https://github.com/marcelog/elixir_mod_event",
elixir: "~> 1.0",
bui... | 20.979592 | 66 | 0.548638 |
288ceb1bfe794a90169369461655cd1f73a43978 | 1,538 | ex | Elixir | lib/tarkus_web/endpoint.ex | ramonsantos/tarkus | fe59b810b448824e149c19c7568bd284aef6407a | [
"MIT"
] | 1 | 2020-11-07T01:59:11.000Z | 2020-11-07T01:59:11.000Z | lib/tarkus_web/endpoint.ex | ramonsantos/tarkus | fe59b810b448824e149c19c7568bd284aef6407a | [
"MIT"
] | null | null | null | lib/tarkus_web/endpoint.ex | ramonsantos/tarkus | fe59b810b448824e149c19c7568bd284aef6407a | [
"MIT"
] | null | null | null | defmodule TarkusWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :tarkus
socket "/socket", TarkusWeb.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.Static... | 27.963636 | 95 | 0.70026 |
288cfbd8d7236e29f591a84bd75f65972bbfc521 | 1,562 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1/model/dsse_attestation_note.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/dsse_attestation_note.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/dsse_attestation_note.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.234043 | 152 | 0.753521 |
288d0031a078f0a067b0544df696ce49ca9329f7 | 8,046 | ex | Elixir | lib/muweb/server.ex | alco/muweb | 3eab0489ba025a66393fb98da0bdbcac0c3cd011 | [
"MIT"
] | 2 | 2015-03-27T09:50:02.000Z | 2018-05-27T08:39:19.000Z | lib/muweb/server.ex | alco/muweb | 3eab0489ba025a66393fb98da0bdbcac0c3cd011 | [
"MIT"
] | null | null | null | lib/muweb/server.ex | alco/muweb | 3eab0489ba025a66393fb98da0bdbcac0c3cd011 | [
"MIT"
] | null | null | null | defmodule HttpReq do
defstruct [
method: nil,
path: "",
query: "",
headers: [],
proto: nil,
version: nil,
body: "",
conn: nil,
]
end
defmodule Muweb.Server do
@moduledoc """
An http server that allows users to set up handlers to process data coming
from the clients.
"""
... | 30.022388 | 112 | 0.597564 |
288d315260cc8ba56e81ad4db33a007627c09a1d | 2,785 | exs | Elixir | test/rumbl/multimedia_test.exs | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | test/rumbl/multimedia_test.exs | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | null | null | null | test/rumbl/multimedia_test.exs | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | null | null | null | defmodule Rumbl.MultimediaTest do
use Rumbl.DataCase, async: true
alias Rumbl.Multimedia
alias Rumbl.Multimedia.Category
describe "categories" do
test "list_alphabetical_categories/0" do
for name <- ~w(Drama Action Comedy) do
Multimedia.create_category!(name)
end
alpha_names =
... | 28.418367 | 76 | 0.643447 |
288d4278882a5b728ad58c59fa1b1bd5998577cf | 434 | ex | Elixir | lib/sprint_poker/operations/socket_operations.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 199 | 2015-10-22T16:20:09.000Z | 2021-11-08T11:20:45.000Z | lib/sprint_poker/operations/socket_operations.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 4 | 2015-10-24T20:43:29.000Z | 2016-03-03T21:09:06.000Z | lib/sprint_poker/operations/socket_operations.ex | elpassion/sprint-poker | 5c9b34bb264c7a30ff48f0aeac40821b67310ff8 | [
"MIT"
] | 34 | 2015-10-23T06:38:43.000Z | 2019-08-13T23:49:24.000Z | defmodule SprintPoker.SocketOperations do
@moduledoc """
Socket related operations
"""
alias SprintPoker.Repo
alias SprintPoker.Repo.Game
alias SprintPoker.Repo.User
def get_game_and_user(socket) do
"game:" <> game_id = socket.topic
game = Repo.get!(Game, game_id)
user = Repo.get!(User, sock... | 20.666667 | 50 | 0.693548 |
288d5fad9736d80fcfdc31188ec1bf97acd3c3c9 | 70 | exs | Elixir | test/test_helper.exs | spkane31/cc-rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 1 | 2020-06-28T19:31:07.000Z | 2020-06-28T19:31:07.000Z | test/test_helper.exs | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 5 | 2019-07-25T17:00:39.000Z | 2019-07-25T17:12:07.000Z | test/test_helper.exs | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Rankings.Repo, :manual)
| 23.333333 | 54 | 0.785714 |
288d76819e8f0f60c0faa70345d2f7f3023e662e | 323 | exs | Elixir | priv/repo/migrations/20160322222933_add_null_chat_provider.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | priv/repo/migrations/20160322222933_add_null_chat_provider.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | priv/repo/migrations/20160322222933_add_null_chat_provider.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Repo.Migrations.AddNullChatProvider do
use Ecto.Migration
import Ecto.Query, only: [from: 2]
alias Cog.Repo
alias Cog.Models.ChatProvider
def up do
Repo.insert!(%ChatProvider{name: "null"})
end
def down do
Repo.delete_all(from p in ChatProvider, where: p.name == "null")
end
e... | 19 | 68 | 0.702786 |
288da969c1ea20e54a69300f475e2bb4e5ff3a8e | 2,216 | ex | Elixir | lib/sanbase_web/graphql/schema/types/comment_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/types/comment_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/types/comment_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.CommentTypes do
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers
import SanbaseWeb.Graphql.Cache, only: [cache_resolve: 1]
alias SanbaseWeb.Graphql.Resolvers.CommentEntityIdResolver
alias SanbaseWeb.Graphql.SanbaseRepo
enum :comment_entity_type_enum do
valu... | 29.157895 | 74 | 0.729242 |
288dc8856971ae8119408174369782f1a11837e4 | 2,488 | ex | Elixir | lib/codes/codes_q10.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q10.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q10.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Q10 do
alias IcdCode.ICDCode
def _Q100 do
%ICDCode{full_code: "Q100",
category_code: "Q10",
short_code: "0",
full_name: "Congenital ptosis",
short_name: "Congenital ptosis",
category_name: "Congenital ptosis"
}
end
def ... | 31.493671 | 79 | 0.616158 |
288dd0abe3e814c20a90f0cd3ab527f16854a6c6 | 2,394 | exs | Elixir | test/grizzly/command_class/schedule_entry_lock/enable_all_set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/schedule_entry_lock/enable_all_set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/schedule_entry_lock/enable_all_set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.ScheduleEntryLock.EnableAllSet.Test do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.ScheduleEntryLock.EnableAllSet
describe "implements the Grizzly command behaviour" do
test "initializes the command state" do
{:ok, command} = EnableAllS... | 34.2 | 95 | 0.670844 |
288ddcd26a9deddebf82a2dae63a73c925bc8f51 | 1,191 | ex | Elixir | Phoenix-Examples/discuss/lib/discuss/endpoint.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | Phoenix-Examples/discuss/lib/discuss/endpoint.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | null | null | null | Phoenix-Examples/discuss/lib/discuss/endpoint.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | defmodule Discuss.Endpoint do
use Phoenix.Endpoint, otp_app: :discuss
socket "/socket", Discuss.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.Static,
... | 27.697674 | 69 | 0.714526 |
288e05aff368d514a3b3888e60b5574051cc21c4 | 6,949 | exs | Elixir | test/io/binary_reader_regression_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | 7 | 2018-11-01T15:47:05.000Z | 2021-05-19T10:07:23.000Z | test/io/binary_reader_regression_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | test/io/binary_reader_regression_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | Code.require_file("test/support/sauce_helpers.exs")
defmodule Saucexages.BinaryReaderRegressionTest do
use ExUnit.Case, async: true
require Saucexages.Sauce
require Saucexages.IO.BinaryReader
alias Saucexages.IO.{BinaryReader}
alias Saucexages.{SauceBlock}
test "read an ansi with comments" do
bin = Sa... | 29.075314 | 69 | 0.455173 |
288e090b144afba70ee5f6975dd66f81f3a17b8e | 3,370 | ex | Elixir | deps/ecto/lib/ecto/log_entry.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/log_entry.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/log_entry.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | defmodule Ecto.LogEntry do
@moduledoc """
Struct used for logging entries.
It is composed of the following fields:
* query - the query as string or a function that when invoked resolves to string;
* source - the query data source;
* params - the query parameters;
* result - the query result as a... | 33.7 | 94 | 0.648071 |
288e2a881973a9c03ba7f16e69edce70a83afa2e | 729 | exs | Elixir | config/influxdb_config.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | config/influxdb_config.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | config/influxdb_config.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | # 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.
import Config
config :sanbase, Sanbase.Influxdb.Store,
host: {:system, "INFLUXDB_HOST", "localhost... | 29.16 | 61 | 0.72428 |
288e7ba497e925ebad04607ab87d5ef04946e024 | 1,087 | ex | Elixir | lib/legends_web/resolvers/accounts_resolver.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | lib/legends_web/resolvers/accounts_resolver.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | 6 | 2019-11-20T19:31:23.000Z | 2021-09-02T02:34:05.000Z | lib/legends_web/resolvers/accounts_resolver.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | defmodule LegendsWeb.Resolvers.AccountsResolver do
alias Legends.Accounts
def get_user(_parent, args, _resolutions) do
{:ok, Accounts.get_user!(args[:id])}
end
def list_users(_parent, _args, _resolutions) do
{:ok, Accounts.list_users()}
end
def create_user(_parent, args, _resolutions) do
args... | 21.74 | 50 | 0.613615 |
288eb26282a0426cc7fe67f5146baffb750742b4 | 572 | ex | Elixir | projects/sequence/lib/sequence/supervisor.ex | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | 8 | 2018-08-26T08:10:08.000Z | 2021-04-05T16:05:05.000Z | projects/sequence/lib/sequence/supervisor.ex | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | null | null | null | projects/sequence/lib/sequence/supervisor.ex | renanlage/programming-elixir-book | 71e58398269cde2b76a377d28cc906fb528c4134 | [
"MIT"
] | 1 | 2019-10-08T09:56:43.000Z | 2019-10-08T09:56:43.000Z | defmodule Sequence.Supervisor do
use Supervisor
def start_link(initial_number, initial_delta) do
result = {:ok, sup} = Supervisor.start_link(__MODULE__, [])
initial_state = {initial_number, initial_delta}
start_workers(sup, initial_state)
result
end
def start_workers(sup, initial_state) do
... | 26 | 80 | 0.725524 |
288ebb03de37de5e60803592eab21b4c300425f5 | 2,089 | ex | Elixir | lib/bootstrap.ex | oliverandrich/bootstrap_icons_elixir | d1c6b4e5f8d4ad03841116ab551a2dde9bd48ddd | [
"MIT"
] | 1 | 2021-11-27T15:46:59.000Z | 2021-11-27T15:46:59.000Z | lib/bootstrap.ex | oliverandrich/bootstrap_icons_elixir | d1c6b4e5f8d4ad03841116ab551a2dde9bd48ddd | [
"MIT"
] | null | null | null | lib/bootstrap.ex | oliverandrich/bootstrap_icons_elixir | d1c6b4e5f8d4ad03841116ab551a2dde9bd48ddd | [
"MIT"
] | null | null | null | defmodule Bootstrap do
@external_resource readme = "README.md"
@moduledoc readme
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
@doc false
defmacro __before_compile__(%Macro.Env{module: module}) do
unless Module.has_attribute?(module, :icon_dir) d... | 27.853333 | 96 | 0.560077 |
288ed2f6c537758a51d22b568f5f3eb141fa8aea | 2,052 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.716981 | 198 | 0.741715 |
288ef3fdb7d4a1e7561e259cac35f87647b49c7d | 819 | exs | Elixir | ex_cubic_ingestion/priv/repo/migrations/20220509202312_add_ods_tables.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 1 | 2022-01-30T21:02:48.000Z | 2022-01-30T21:02:48.000Z | ex_cubic_ingestion/priv/repo/migrations/20220509202312_add_ods_tables.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 21 | 2022-01-25T16:35:50.000Z | 2022-03-31T19:42:52.000Z | ex_cubic_ingestion/priv/repo/migrations/20220509202312_add_ods_tables.exs | mbta/data_platform | 3fa66cb74134b2baa5234e908e147bf393c13926 | [
"MIT"
] | 1 | 2022-02-02T14:34:17.000Z | 2022-02-02T14:34:17.000Z | defmodule ExCubicIngestion.Repo.Migrations.AddOdsTables do
use Ecto.Migration
def up do
create table(:cubic_ods_table_snapshots, primary_key: false) do
add :id, :bigserial, primary_key: true
add :table_id, :bigint, null: false
add :snapshot, :utc_datetime
add :snapshot_s3_key, :string, ... | 25.59375 | 67 | 0.698413 |
288ef4c3e077c151cc54d5b780b52e72ad30fcb6 | 266 | ex | Elixir | test/support/test.ex | Virviil/individual | 62f8128b21c5f523ac9e987cab19094369bcf0d3 | [
"MIT"
] | 12 | 2017-12-02T16:10:48.000Z | 2022-01-23T23:21:32.000Z | test/support/test.ex | Virviil/individual | 62f8128b21c5f523ac9e987cab19094369bcf0d3 | [
"MIT"
] | 4 | 2018-04-11T05:47:21.000Z | 2021-11-09T09:55:46.000Z | test/support/test.ex | Virviil/individual | 62f8128b21c5f523ac9e987cab19094369bcf0d3 | [
"MIT"
] | 9 | 2018-04-11T18:30:42.000Z | 2022-02-11T19:16:46.000Z | defmodule Individual.Test do
use GenServer
def start_link(arg) do
GenServer.start_link(__MODULE__, arg)
end
def ping() do
GenServer.call({:global, :test}, :ping)
end
def handle_call(:ping, _from, state) do
{:reply, :pong, state}
end
end
| 16.625 | 43 | 0.672932 |
288efcfaf8815da9d8bae43fa6e6bbda24c6164c | 793 | exs | Elixir | priv/repo/migrations/20210519094205_rename_communiites_article_join_table.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210519094205_rename_communiites_article_join_table.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210519094205_rename_communiites_article_join_table.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.RenameCommuniitesArticleJoinTable do
use Ecto.Migration
def change do
rename(table(:communities_posts), to: table(:communities_join_posts))
rename(table(:communities_jobs), to: table(:communities_join_jobs))
rename(table(:communities_repos), to: table(:communiti... | 44.055556 | 77 | 0.762926 |
288efea1ad62316765c0fb5a7e9ba7a7b2b98315 | 2,521 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dynamic_targeting_key.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dynamic_targeting_key.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/dynamic_targeting_key.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.017857 | 389 | 0.731456 |
288f2813b73b8118fd0dfdc3f320d50c721cff68 | 819 | ex | Elixir | test/support/integration_test_case.ex | fr0stbyte/spandex_otlp | 5c311939c4035ea094cb7c22c96522e2bf08ba42 | [
"MIT"
] | 2 | 2021-05-24T16:34:13.000Z | 2021-05-25T06:14:54.000Z | test/support/integration_test_case.ex | fr0stbyte/spandex_otlp | 5c311939c4035ea094cb7c22c96522e2bf08ba42 | [
"MIT"
] | 5 | 2021-05-22T19:30:03.000Z | 2021-05-25T03:01:10.000Z | test/support/integration_test_case.ex | fr0stbyte/spandex_otlp | 5c311939c4035ea094cb7c22c96522e2bf08ba42 | [
"MIT"
] | 3 | 2021-05-25T06:15:00.000Z | 2022-01-28T18:58:59.000Z | defmodule SpandexOTLP.Integration.TestCase do
@moduledoc false
use ExUnit.CaseTemplate, async: false
require Logger
using do
quote do
import SpandexOTLP.Integration.TestCase
setup :setup_request_store
end
end
def setup_request_store(_) do
SpandexOTLP.RequestStore.start_link()
... | 19.046512 | 56 | 0.64591 |
288f485e88e573cfbce88adbc9a2c771839c11a2 | 2,833 | exs | Elixir | test/plowman/dynohost_test.exs | azukiapp/plowman | 38bbab040eb691f8402e3073329bb19a1f0b7b9a | [
"MIT"
] | 11 | 2015-06-04T20:03:48.000Z | 2019-12-09T13:19:09.000Z | test/plowman/dynohost_test.exs | azukiapp/plowman | 38bbab040eb691f8402e3073329bb19a1f0b7b9a | [
"MIT"
] | null | null | null | test/plowman/dynohost_test.exs | azukiapp/plowman | 38bbab040eb691f8402e3073329bb19a1f0b7b9a | [
"MIT"
] | 1 | 2021-03-24T19:29:18.000Z | 2021-03-24T19:29:18.000Z | Code.require_file "../../test_helper.exs", __FILE__
defmodule PlowmanDynohostTest do
use Plowman.Test, async: false
import Plowman.Config, only: [config: 1]
@target Plowman.Dynohost
alias Plowman.GitCli.CliState, as: CliState
setup_all do
{:ok, [
ssl: Mock.new(:ssl, [stub_all: :ok]),
conn:... | 29.206186 | 83 | 0.628309 |
288f4a3d257f745a7b0929e12685d64c463769fd | 1,936 | exs | Elixir | config/dev.exs | karabiner-inc/materia_chat | 6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | karabiner-inc/materia_chat | 6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2 | [
"Apache-2.0"
] | 4 | 2019-04-01T01:35:25.000Z | 2019-06-06T05:36:31.000Z | config/dev.exs | karabiner-inc/materia_chat | 6670c97e2bd6e677b4ac1234f2c9f10a7f0020b2 | [
"Apache-2.0"
] | 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 :materia_chat, MateriaChatWeb.Endpoint,
http: ... | 32.266667 | 170 | 0.72469 |
288f4b7c3c2e0cd9b0daa55f9d4018b59e3de22a | 2,446 | ex | Elixir | test/apps/migrator/lib/migrator.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | null | null | null | test/apps/migrator/lib/migrator.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | null | null | null | test/apps/migrator/lib/migrator.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | null | null | null | defmodule Migrator.Player do
use Yacto.Schema
def dbname(), do: :player
schema "player" do
field(:name)
field(:value, :integer)
timestamps()
end
end
defmodule Migrator.Player2 do
use Yacto.Schema
def dbname(), do: :player
schema "player2" do
field(:name2)
field(:value, :string)
... | 20.214876 | 80 | 0.664759 |
288f4e06a5f6ef9618b5979dad9cea9fa5d217ac | 382 | ex | Elixir | lib/aba_model/hotsdata.ex | jscheel42/aba_model | 5e005b9efe84d15b76cc9645701c662e855903ea | [
"MIT"
] | null | null | null | lib/aba_model/hotsdata.ex | jscheel42/aba_model | 5e005b9efe84d15b76cc9645701c662e855903ea | [
"MIT"
] | null | null | null | lib/aba_model/hotsdata.ex | jscheel42/aba_model | 5e005b9efe84d15b76cc9645701c662e855903ea | [
"MIT"
] | null | null | null | defmodule AbaModel.HotsData do
use Ecto.Schema
import Ecto.Changeset
@params_cast [:file, :result, :success]
@params_req [:file]
schema "hotsdata" do
field :file, :string
field :result, :string
field :success, :integer
end
def changeset(map, params \\ %{}) do
map
|> cast(params,... | 20.105263 | 41 | 0.657068 |
288f5873fe3c6ce87153909d979a91da6754a7dd | 4,372 | ex | Elixir | lib/crew_web/live/time_slot_live/form_component.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | lib/crew_web/live/time_slot_live/form_component.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | lib/crew_web/live/time_slot_live/form_component.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule CrewWeb.TimeSlotLive.FormComponent do
use CrewWeb, :live_component
import Ecto.Changeset
alias Crew.TimeSlots
alias Crew.Persons
@impl true
def update(%{time_slot: time_slot} = assigns, socket) do
changeset = TimeSlots.change_time_slot_batch(time_slot)
{:ok,
socket
|> assign(a... | 32.147059 | 95 | 0.65279 |
288f8bf02e6c726365a0990b96c423ba83863700 | 322 | ex | Elixir | lib/ping_and_log/server.ex | philosodad/ping_and_log | d16a2cb35bde323b09ba655176e071021256538b | [
"MIT"
] | 1 | 2017-04-17T12:56:02.000Z | 2017-04-17T12:56:02.000Z | lib/ping_and_log/server.ex | philosodad/ping_and_log | d16a2cb35bde323b09ba655176e071021256538b | [
"MIT"
] | null | null | null | lib/ping_and_log/server.ex | philosodad/ping_and_log | d16a2cb35bde323b09ba655176e071021256538b | [
"MIT"
] | null | null | null | defmodule PingAndLog.Server do
use Plug.Router
alias Plug.Adapters.Cowboy
plug :match
plug :dispatch
def start_link do
Cowboy.http PingAndLog.Server, [], port: Settings.port
end
get "/ping" do
send_resp(conn, 200, "pong")
end
get _ do
send_resp(conn, 404, "Nothin' to see here")
end
en... | 16.947368 | 58 | 0.680124 |
28901f0ef0a5da0b9a345ced16b0be4ed5da8d72 | 175 | exs | Elixir | elixir-class/basic/6-functions/func6/test/func12_test.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/6-functions/func6/test/func12_test.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/6-functions/func6/test/func12_test.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null |
defmodule Func12.ExampleTest do
use ExUnit.Case
doctest Func12.Example
test "greets the world" do
assert Func12.Example.hello() == :world
end
end | 19.444444 | 47 | 0.662857 |
28908177e3b67639ab95043f520ae3f6de3510c5 | 2,674 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/update_transfer_job_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/update_transfer_job_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/update_transfer_job_request.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... | 39.323529 | 171 | 0.733732 |
28908363367b21fdfdca8fb9368a0c0ff35ccebb | 357 | exs | Elixir | day_05/mix.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_05/mix.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_05/mix.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | defmodule Day05.MixProject do
use Mix.Project
def project do
[
app: :day_05,
version: "1.0.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:... | 13.730769 | 42 | 0.512605 |
289097fb1449d61f7cec4f2e7d601be4d60c2f56 | 1,090 | ex | Elixir | backend/test/support/conn_case.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/test/support/conn_case.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/test/support/conn_case.ex | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | defmodule Palike.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the data... | 24.222222 | 68 | 0.702752 |
2890d4b5db32e407aad46f3516cead5560e3076e | 3,565 | ex | Elixir | apps/alert_processor/lib/alert_parsing/alert_worker.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/lib/alert_parsing/alert_worker.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/lib/alert_parsing/alert_worker.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule AlertProcessor.AlertWorker do
@moduledoc """
Main worker that periodically calls `AlertParser` to fetch and process the appropriate group of
alerts, based on when each group was last processed.
"""
use GenServer
alias AlertProcessor.{Lock, Model.Metadata}
require Logger
# Milliseconds to wai... | 28.75 | 97 | 0.672651 |
2890e3c1a50106a937e7a94b3ea4b06292271397 | 395 | ex | Elixir | lib/history/candles/supervisor.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 20 | 2021-08-06T01:09:48.000Z | 2022-03-28T18:44:56.000Z | lib/history/candles/supervisor.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 13 | 2021-08-21T21:17:02.000Z | 2022-03-27T06:33:51.000Z | lib/history/candles/supervisor.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 2 | 2021-09-23T11:31:59.000Z | 2022-01-09T16:19:35.000Z | defmodule History.Candles.Supervisor do
use Supervisor
alias History.Candles
@spec start_link(term) :: Supervisor.on_start()
def start_link(_) do
Supervisor.start_link(__MODULE__, :ok)
end
def init(_) do
children = [
{Candles.CreateChunksBroadway, []},
{Candles.DownloadChunksBroadway, ... | 20.789474 | 53 | 0.696203 |
28911dc34d5d14098ced4045b539813b84cb1094 | 1,163 | ex | Elixir | elixir/rocketpay/lib/rocketpay_web/channels/user_socket.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay/lib/rocketpay_web/channels/user_socket.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay/lib/rocketpay_web/channels/user_socket.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UserSocket do
use Phoenix.Socket
## Canais
# channel "room: *", RocketpayWeb.RoomChannel
# Os parâmetros de soquete são passados do cliente e podem
# ser usado para verificar e autenticar um usuário. Depois de
# verificação, você pode colocar atribuições padrão em
# o soquete que ... | 34.205882 | 98 | 0.716251 |
2891291b236c08994a3a779430f348163a4ec113 | 1,319 | exs | Elixir | clients/firestore/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firestore/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firestore/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApiFirestore.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :google_api_firestore,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package... | 23.553571 | 99 | 0.583776 |
28913cf0ee88dadbc88dc29f2848f5138ce04166 | 3,102 | exs | Elixir | test/blog/accounts_test.exs | romenigld/blog | ce808e024dbea16a829916f090a2545938f24236 | [
"MIT"
] | null | null | null | test/blog/accounts_test.exs | romenigld/blog | ce808e024dbea16a829916f090a2545938f24236 | [
"MIT"
] | 4 | 2021-06-23T16:48:58.000Z | 2021-07-08T17:25:11.000Z | test/blog/accounts_test.exs | romenigld/blog | ce808e024dbea16a829916f090a2545938f24236 | [
"MIT"
] | null | null | null | defmodule Blog.AccountsTest do
use Blog.DataCase
alias Blog.Accounts
describe "users" do
alias Blog.Accounts.User
@valid_attrs %{
email: "some@email.com",
first_name: "some first_name",
image: "some image",
last_name: "some last_name",
provider: "some provider",
toke... | 30.712871 | 85 | 0.643133 |
2891892107c2bab8389ff6d30b0e0215bd419b2a | 4,430 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_line_item.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_line_item.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_line_item.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... | 49.222222 | 179 | 0.722799 |
2891bf04fe1e85e82f6037dc311a54cb584b0e0a | 2,238 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/saml.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/saml.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/saml.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... | 47.617021 | 971 | 0.754692 |
28924aac24f905f7a31c56a3ff1078b6dddeb5ca | 2,047 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_colors.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_colors.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style_colors.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 ... | 34.694915 | 157 | 0.684905 |
289261e31d4da343f2d9ba239359eadbf9c4b304 | 1,724 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/on_screen_position_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/on_screen_position_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/on_screen_position_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.925926 | 102 | 0.761601 |
28927dfe0442e5867719e9305e35927479a26e9f | 249 | ex | Elixir | refuge/lib/refuge.ex | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | refuge/lib/refuge.ex | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/pragstudio/refuge/lib/refuge.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | defmodule Refuge do
@moduledoc """
Refuge 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
| 24.9 | 66 | 0.751004 |
289287cfe7dcf5230a73a5e209e3539028fe2fda | 14,412 | ex | Elixir | lib/ecto/repo.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo do
@moduledoc """
Defines a repository.
A repository maps to an underlying data store, controlled by the
adapter. For example, Ecto ships with a Postgres adapter that
stores data into a PostgreSQL database.
When used, the repository expects the `:otp_app` as option.
The `:otp_app` sh... | 29.292683 | 92 | 0.643075 |
2892d1fc86f769c66e2aa2f06a4bfcb32311a0ae | 594 | exs | Elixir | priv/repo/migrations/20160708075812_create_user_log.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 27 | 2016-10-15T12:13:22.000Z | 2021-02-07T20:31:41.000Z | priv/repo/migrations/20160708075812_create_user_log.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160708075812_create_user_log.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 4 | 2016-08-21T15:03:29.000Z | 2019-11-22T13:15:29.000Z | defmodule EmbedChat.Repo.Migrations.CreateUserLog do
use Ecto.Migration
def change do
create table(:user_logs) do
add :agent, :string
add :current_url, :string
add :referrer, :string
add :screen_width, :integer
add :screen_height, :integer
add :language, :string
add :v... | 24.75 | 66 | 0.6633 |
2892d86672c704b4dcc7a3b7be12f96242cb5dee | 1,482 | ex | Elixir | lib/sanbase_web/graphql/resolvers/ico_resolver.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/resolvers/ico_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/resolvers/ico_resolver.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Resolvers.IcoResolver do
require Logger
import Ecto.Query, warn: false
import Absinthe.Resolution.Helpers
alias Sanbase.Model.Ico
alias Sanbase.Model.Currency
def cap_currency(%Ico{cap_currency_id: nil}, _args, _resolution), do: {:ok, nil}
def cap_currency(%Ico{cap_currenc... | 28.5 | 89 | 0.720648 |
28930914a7528b28edd55e7a17c5f2302491f09a | 147 | exs | Elixir | test/warukani_ex_test.exs | swarut/warukani_ex | f207607949dbe35c66e75e67bbfa8e0fe6637ba8 | [
"MIT"
] | null | null | null | test/warukani_ex_test.exs | swarut/warukani_ex | f207607949dbe35c66e75e67bbfa8e0fe6637ba8 | [
"MIT"
] | null | null | null | test/warukani_ex_test.exs | swarut/warukani_ex | f207607949dbe35c66e75e67bbfa8e0fe6637ba8 | [
"MIT"
] | null | null | null | defmodule WarukaniExTest do
use ExUnit.Case
doctest WarukaniEx
test "greets the world" do
assert WarukaniEx.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
28931b02928a1ea779ab836205725591e036eb8f | 458 | exs | Elixir | test/models/user_test.exs | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | 5 | 2015-12-21T00:33:41.000Z | 2016-05-07T20:51:55.000Z | test/models/user_test.exs | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | null | null | null | test/models/user_test.exs | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | null | null | null | defmodule SecretKeeper.UserTest do
use SecretKeeper.ModelCase
alias SecretKeeper.User
@valid_attrs %{email: "some content", password_hash: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, @valid_attrs)
assert changeset.valid?
end
... | 24.105263 | 70 | 0.731441 |
2893499e2b80dc01897ba5023cc27eaaed7313bd | 325,292 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/api/advertisers.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/api/advertisers.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/api/advertisers.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... | 49.662901 | 2,142 | 0.63115 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.