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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b21c361c54bcb169db829d59bf2efe7bd834040b | 12,973 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/version.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... | 82.107595 | 399 | 0.720728 |
b21c5cf07ca82ab15d40317c62a3a9c2ce672f49 | 2,130 | exs | Elixir | test/mix/phoenix_test.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | test/mix/phoenix_test.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | test/mix/phoenix_test.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | defmodule Mix.PhoenixTest do
use ExUnit.Case, async: true
doctest Mix.Phoenix, import: true
test "base/0 returns the module base based on the Mix application" do
assert Mix.Phoenix.base == "Phoenix"
Application.put_env(:phoenix, :namespace, Phoenix.Sample.App)
assert Mix.Phoenix.base == "Phoenix.Sam... | 25.357143 | 79 | 0.589202 |
b21c6b55088e6413ecf772fbfe4c1f065766298e | 1,270 | ex | Elixir | lib/ex_web3_ec_recover/signed_type/encoder/hexstring_encoder.ex | dagumak/ex_web3_ec_recover | fd82dedb00454ead67613fb56e94ef30086d5ab5 | [
"MIT"
] | 5 | 2021-12-31T11:02:31.000Z | 2022-01-31T09:26:40.000Z | lib/ex_web3_ec_recover/signed_type/encoder/hexstring_encoder.ex | dagumak/ex_web3_ec_recover | fd82dedb00454ead67613fb56e94ef30086d5ab5 | [
"MIT"
] | 6 | 2022-01-05T05:13:42.000Z | 2022-03-30T22:19:23.000Z | lib/ex_web3_ec_recover/signed_type/encoder/hexstring_encoder.ex | dagumak/ex_web3_ec_recover | fd82dedb00454ead67613fb56e94ef30086d5ab5 | [
"MIT"
] | 5 | 2022-01-03T14:19:59.000Z | 2022-03-30T21:17:14.000Z | defmodule ExWeb3EcRecover.SignedType.HexStringEncoder do
@moduledoc """
This module defines an encoder that expects all binaries to be
to be hexstrings.
"""
@behaviour ExWeb3EcRecover.SignedType.Encoder
def encode_value("string", value), do: ExKeccak.hash_256(value)
def encode_value("bytes", value) do
... | 28.863636 | 86 | 0.697638 |
b21c6caad8f3b2a72a5dbdb73b04df27e3a297a0 | 407 | ex | Elixir | books/seven_concurrencies_in_7_weeks/actors/links/links.ex | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-07-20T10:15:49.000Z | 2018-07-20T10:16:54.000Z | books/seven_concurrencies_in_7_weeks/actors/links/links.ex | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-06-26T09:12:44.000Z | 2019-12-18T00:09:14.000Z | books/seven_concurrencies_in_7_weeks/actors/links/links.ex | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | null | null | null | # START:loop
defmodule LinkTest do
def loop do
receive do
{:exit_because, reason} -> exit(reason)
{:link_to, pid} -> Process.link(pid)
{:EXIT, pid, reason} -> IO.puts("#{inspect(pid)} exited because #{reason}")
end
loop
end
# END:loop
# START:loop_system
def loop_system do
Proce... | 18.5 | 81 | 0.636364 |
b21c8774b899c3ca2ca0c3e00e9d801b2f1ca92e | 4,418 | ex | Elixir | lib/credo/check/refactor/cyclomatic_complexity.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/check/refactor/cyclomatic_complexity.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/check/refactor/cyclomatic_complexity.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.CyclomaticComplexity do
@moduledoc """
Cyclomatic complexity is a software complexity metric closely correlated with
coding errors.
If a function feels like it's gotten too complex, it more often than not also
has a high CC value. So, if anything, this is useful to convince tea... | 24.544444 | 87 | 0.590539 |
b21c910a81bcaf8e2d5b74543278a8c4bb6bb7fe | 465 | ex | Elixir | lib/covid19_questionnaire_web/plugs/authorize.ex | betagouv/covid19-algorithme-orientation-elixir | 7d99c0b79551438bd763ae4293b495096bc8d9ad | [
"MIT"
] | 3 | 2020-04-08T19:15:22.000Z | 2020-05-24T22:37:54.000Z | lib/covid19_questionnaire_web/plugs/authorize.ex | betagouv/covid19-algorithme-orientation-elixir | 7d99c0b79551438bd763ae4293b495096bc8d9ad | [
"MIT"
] | 10 | 2020-04-05T17:31:49.000Z | 2020-06-10T11:09:17.000Z | lib/covid19_questionnaire_web/plugs/authorize.ex | betagouv/covid19-algorithme-orientation-elixir | 7d99c0b79551438bd763ae4293b495096bc8d9ad | [
"MIT"
] | null | null | null | defmodule Covid19QuestionnaireWeb.Plugs.Authorize do
@moduledoc """
If there's no token sent by the client, the request gets rejected.
"""
import Plug.Conn
use PlugAttack
rule "authorize", conn do
conn
|> get_req_header("x-token")
|> Enum.at(0)
|> is_nil
|> block
end
def block_act... | 19.375 | 68 | 0.64086 |
b21c976ee8f4b8bb44880f3b7cc0183ab40cbb5b | 1,049 | ex | Elixir | lib/utility/storage/local_implementation.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | 25 | 2020-09-16T22:01:53.000Z | 2022-03-12T02:01:01.000Z | lib/utility/storage/local_implementation.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | 2 | 2021-07-26T20:30:26.000Z | 2022-03-29T19:51:48.000Z | lib/utility/storage/local_implementation.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | null | null | null | defmodule Utility.Storage.LocalImplementation do
@behaviour Utility.Storage
def list(project) do
[dir(), project, "*master*"]
|> Path.join()
|> Path.wildcard()
end
def delete(file) do
File.rm(file)
end
def get(project, id) do
hash = :erlang.phash2({Application.get_env(:utility, :cache... | 23.840909 | 78 | 0.645377 |
b21c9b59561afbd5a2ff3fb63bcd3244553bdd21 | 2,425 | ex | Elixir | lib/tabs_object-locator.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/tabs_object-locator.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/tabs_object-locator.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
use Bitwise
#ELEMENT IoT Parser for TrackNet Tabs object locator
# According to documentation provided by TrackNet
# Payload Description Version v1.3
#
# Changelog
# 2018-05-23 [jb]: Added tests(), formatted code.
#
# Test hex payload: "08FE3D5... | 23.317308 | 105 | 0.492371 |
b21ca49d6a08574c4844068d0c3d249193528729 | 1,939 | exs | Elixir | clients/civic_info/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/civic_info/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/civic_info/mix.exs | 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... | 28.940299 | 192 | 0.665807 |
b21cb4392f9d8cf97f16805ac80c77e2961bc572 | 1,801 | ex | Elixir | lib/beeline/topology.ex | NFIBrokerage/beeline | 8280a351a8c36634ced9088f90fe8103b47d685b | [
"Apache-2.0"
] | null | null | null | lib/beeline/topology.ex | NFIBrokerage/beeline | 8280a351a8c36634ced9088f90fe8103b47d685b | [
"Apache-2.0"
] | null | null | null | lib/beeline/topology.ex | NFIBrokerage/beeline | 8280a351a8c36634ced9088f90fe8103b47d685b | [
"Apache-2.0"
] | null | null | null | defmodule Beeline.Topology do
@moduledoc false
@behaviour GenServer
alias __MODULE__.StageSupervisor
defstruct [:supervisor_pid, :config]
def start_link(config) do
GenServer.start_link(__MODULE__, config,
name: Module.concat(config.name, "Topology")
)
end
@impl GenServer
def init(conf... | 23.38961 | 75 | 0.65075 |
b21ccdfbc617ce4e91bd7f2766c5a369582376aa | 998 | ex | Elixir | lib/gituser/clients/github.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser/clients/github.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser/clients/github.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | defmodule Gituser.Clients.Github do
@moduledoc """
This module provides a client for the Github API.
Check out the Tesla documentation at: https://github.com/teamon/tesla
"""
use Tesla
alias Gituser.Clients.GithubBehaviour
alias Tesla.Env
plug Tesla.Middleware.Headers, [{"user-agent", "vinolivae"}]
... | 27.722222 | 87 | 0.671343 |
b21cd48472e797dd17864a69135179ca0c471bbf | 77 | ex | Elixir | elixir/lib/item/item.ex | ksdenisova/GildedRoseKata | 56bc40077f913bac5fc1211f8c1c8cf34f8db9af | [
"MIT"
] | null | null | null | elixir/lib/item/item.ex | ksdenisova/GildedRoseKata | 56bc40077f913bac5fc1211f8c1c8cf34f8db9af | [
"MIT"
] | null | null | null | elixir/lib/item/item.ex | ksdenisova/GildedRoseKata | 56bc40077f913bac5fc1211f8c1c8cf34f8db9af | [
"MIT"
] | null | null | null | defmodule Item.Item do
defstruct name: nil, sell_in: nil, quality: nil
end
| 19.25 | 49 | 0.753247 |
b21cd97db5e46a6caa02ab6298df5e0b80cbe898 | 4,034 | exs | Elixir | test/vutuv_web/controllers/address_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | test/vutuv_web/controllers/address_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | test/vutuv_web/controllers/address_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule VutuvWeb.AddressControllerTest do
use VutuvWeb.ConnCase
alias Vutuv.UserProfiles
@create_attrs %{
city: "London",
country: "UK",
description: "Home address",
line_1: "221B",
line_2: "Baker St",
line_3: "Marylebone",
line_4: "",
state: "London",
zip_code: "NW1 6XE"
... | 34.478632 | 96 | 0.645761 |
b21cf922546ffb08b52ba452a0ccc4e444fbf9ec | 966 | ex | Elixir | test/support/channel_case.ex | melardev/Elixir_Phoenix_Ecto_Crud | 5eae106bba78229e01b5c62ceed7b2b09677c9e4 | [
"MIT"
] | 3 | 2020-08-17T15:23:26.000Z | 2021-08-19T00:09:12.000Z | test/support/channel_case.ex | melardev/Elixir_Phoenix_Ecto_Crud | 5eae106bba78229e01b5c62ceed7b2b09677c9e4 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | melardev/Elixir_Phoenix_Ecto_Crud | 5eae106bba78229e01b5c62ceed7b2b09677c9e4 | [
"MIT"
] | 1 | 2019-10-21T01:59:16.000Z | 2019-10-21T01:59:16.000Z | defmodule ApiPhoenixCrudWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case inte... | 25.421053 | 76 | 0.723602 |
b21d0438c39c16630ed8415d5b867643a0561fcc | 199 | exs | Elixir | test/controllers/page_controller_test.exs | slitherrr/alchemizer | 390826a7b33085f04ac955c434cdca3238164e74 | [
"Apache-2.0"
] | null | null | null | test/controllers/page_controller_test.exs | slitherrr/alchemizer | 390826a7b33085f04ac955c434cdca3238164e74 | [
"Apache-2.0"
] | null | null | null | test/controllers/page_controller_test.exs | slitherrr/alchemizer | 390826a7b33085f04ac955c434cdca3238164e74 | [
"Apache-2.0"
] | null | null | null | defmodule Alchemizer.PageControllerTest do
use Alchemizer.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
b21d8bcb42fdc8f240d26850a829c052b23b8341 | 182 | exs | Elixir | priv/repo/migrations/20190124113944_create_people.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190124113944_create_people.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190124113944_create_people.exs | LunarLogic/skillset | fe7eda83506ce45e2a60fd77bd17c3981b2ef254 | [
"MIT"
] | null | null | null | defmodule Skillset.Repo.Migrations.CreatePeople do
use Ecto.Migration
def change do
create table(:people) do
add :name, :string
timestamps()
end
end
end
| 14 | 50 | 0.675824 |
b21d9cff0cb6ed75c01fb33f572ddac7fd99fd4d | 144 | ex | Elixir | lib/rankings_web/controllers/about_controller.ex | spkane31/cc-rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 1 | 2020-06-28T19:31:07.000Z | 2020-06-28T19:31:07.000Z | lib/rankings_web/controllers/about_controller.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 5 | 2019-07-25T17:00:39.000Z | 2019-07-25T17:12:07.000Z | lib/rankings_web/controllers/about_controller.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | null | null | null | defmodule RankingsWeb.AboutController do
use RankingsWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18 | 40 | 0.743056 |
b21dcd3d3bee93626ac4d1599519ec9e8cc68f2b | 223 | exs | Elixir | priv/repo/migrations/20160217232101_add_path_and_file_comment_to_operations.exs | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | priv/repo/migrations/20160217232101_add_path_and_file_comment_to_operations.exs | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | priv/repo/migrations/20160217232101_add_path_and_file_comment_to_operations.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Repo.Migrations.AddPathAndFileCommentToOperations do
use Ecto.Migration
def change do
alter table(:operations) do
add(:file_path, :string)
add(:file_comment, :string)
end
end
end
| 20.272727 | 69 | 0.721973 |
b21dd586b0e4a550da92db26c81e27766eee4094 | 4,521 | ex | Elixir | lib/credo/code/block.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/code/block.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/code/block.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | defmodule Credo.Code.Block do
@moduledoc """
This module provides helper functions to analyse blocks, e.g. the block taken
by the `if` macro.
"""
@doc """
Returns the do: block of a given AST node.
"""
def all_blocks_for!(ast) do
[
do_block_for!(ast),
else_block_for!(ast),
rescue_... | 19.487069 | 86 | 0.619774 |
b21e27afbb40da23e5ef38699076bfc47bdecf77 | 954 | ex | Elixir | lib/rocketpay/users/create.ex | luigiMinardi/nlw-4 | 944a90ca2f858d60172ceb2fd52a645d108b4ef5 | [
"MIT"
] | null | null | null | lib/rocketpay/users/create.ex | luigiMinardi/nlw-4 | 944a90ca2f858d60172ceb2fd52a645d108b4ef5 | [
"MIT"
] | null | null | null | lib/rocketpay/users/create.ex | luigiMinardi/nlw-4 | 944a90ca2f858d60172ceb2fd52a645d108b4ef5 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Users.Create do
alias Ecto.Multi
alias Rocketpay.{Account, Repo, User}
def call(params) do
Multi.new()
|> Multi.insert(:create_user, User.changeset(params))
|> Multi.run(:create_account, fn repo, %{create_user: user} ->
insert_account(repo, user)
end)
|> Multi.run(:p... | 24.461538 | 66 | 0.644654 |
b21e5c61318173994c17575a0fac811d0a5f2598 | 99 | exs | Elixir | examples/new_relic_sandbox_umbrella/config/dev.secret.example.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | null | null | null | examples/new_relic_sandbox_umbrella/config/dev.secret.example.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | 2 | 2019-09-09T08:26:44.000Z | 2019-11-05T04:31:37.000Z | examples/new_relic_sandbox_umbrella/config/dev.secret.example.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | 1 | 2019-09-06T09:27:27.000Z | 2019-09-06T09:27:27.000Z | use Mix.Config
config :new_relic_agent,
harvest_enabled: true,
license_key: "(your key here)"
| 16.5 | 32 | 0.747475 |
b21e90a6fe8acd81e9b862d03e03f8353792843b | 871 | exs | Elixir | test/kwtool/crawlers/upload_parser_test.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | test/kwtool/crawlers/upload_parser_test.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | test/kwtool/crawlers/upload_parser_test.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule UploadParserTest do
use Kwtool.DataCase, async: true
alias Kwtool.Crawlers.UploadParser
describe "parse/1" do
test "returns a list of keyword when given a valid CSV file" do
keyword_file = %Plug.Upload{content_type: "text/csv", path: "test/fixture/keywords.csv"}
assert {:ok, keyword_l... | 32.259259 | 100 | 0.706085 |
b21e99162929383d5a164e3c0d77433e99c0b707 | 1,180 | exs | Elixir | config/config.exs | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 25 | 2018-01-23T13:56:28.000Z | 2021-11-08T08:10:53.000Z | config/config.exs | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 91 | 2018-01-30T20:10:44.000Z | 2022-01-12T19:50:24.000Z | config/config.exs | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 5 | 2018-04-17T15:08:26.000Z | 2019-08-07T19:08:49.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... | 33.714286 | 73 | 0.74661 |
b21ebe8762946299769905514ddc6127a6818787 | 7,560 | exs | Elixir | lib/eex/test/eex_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/eex/test/eex_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/eex/test/eex_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
require EEx
defmodule EExText.Compiled do
def before_compile do
fill_in_stacktrace
{ __ENV__.line, hd(tl(System.stacktrace)) }
end
{ :erlang, 1, 2 }.tuple_to_list
EEx.function_from_string :def, :string_sample, "<%= a + b %>", [:a, :b]
filename = Path.joi... | 21.477273 | 109 | 0.609392 |
b21ed8d8f4619c0ff61612b8b1866322f6e8670d | 322 | ex | Elixir | apps/elixir_security_advisory/test/support/data_case.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 5 | 2019-01-03T18:33:40.000Z | 2021-01-25T10:15:06.000Z | apps/elixir_security_advisory/test/support/data_case.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 15 | 2018-12-27T16:59:06.000Z | 2019-01-04T17:34:38.000Z | apps/elixir_security_advisory/test/support/data_case.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | null | null | null | defmodule ElixirSecurityAdvisory.DataCase do
@moduledoc """
Setup Database correctly to get a new cleared DB for every test
"""
use ExUnit.CaseTemplate
alias ElixirSecurityAdvisory.Vulnerabilities.Database
setup _tags do
Database.destroy()
Database.create!(memory: [Node.self()])
:ok
end
en... | 18.941176 | 65 | 0.732919 |
b21ed96bbca91c28870bddefc858212a90658623 | 1,964 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/list_combined_audiences_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_combined_audiences_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/list_combined_audiences_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.28 | 243 | 0.753564 |
b21edc6ce49126ea7fcb36af432614bb45a25800 | 2,648 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_faq_answer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_faq_answer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_faq_answer.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... | 42.709677 | 230 | 0.707704 |
b21efdddfea63364344557f93e4c3e8170ac2864 | 857 | ex | Elixir | lib/graphql/type/string.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 719 | 2016-03-18T03:10:46.000Z | 2022-02-02T10:07:29.000Z | lib/graphql/type/string.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 51 | 2015-08-30T03:15:17.000Z | 2016-03-02T07:13:26.000Z | lib/graphql/type/string.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 34 | 2016-03-30T12:56:11.000Z | 2021-08-30T09:21:54.000Z | defmodule GraphQL.Type.String do
defstruct name: "String", description:
"""
The `String` scalar type represents textual data, represented as UTF-8
character sequences. The String type is most often used by GraphQL to
represent free-form human-readable text.
""" |> GraphQL.Util.Text.normalize
de... | 32.961538 | 74 | 0.69895 |
b21f1373730b23a8acc9ff4dfc4802fa3cfc465d | 117 | ex | Elixir | rustler_tests/lib/binary_example.ex | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 2,075 | 2019-03-10T02:30:23.000Z | 2022-03-31T21:34:49.000Z | rustler_tests/lib/binary_example.ex | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 194 | 2019-03-10T00:14:16.000Z | 2022-03-30T13:37:00.000Z | rustler_tests/lib/binary_example.ex | sthagen/rusterlium-rustler | 5f0b052e6ae96185794bb5dae6594f0fc48689d7 | [
"Apache-2.0",
"MIT"
] | 130 | 2019-03-13T05:31:10.000Z | 2022-03-27T15:34:05.000Z | defmodule BinaryExample do
use Rustler,
otp_app: :rustler_test,
crate: :binary_example,
lib: false
end
| 16.714286 | 27 | 0.709402 |
b21f199785a17aea4a06c154fc30e4d902618ea0 | 268 | exs | Elixir | config/test.exs | kianmeng/cldr_units_sql | 7ea5c9673b4986c21baf035eaf07451f9ad37d1c | [
"Apache-2.0"
] | null | null | null | config/test.exs | kianmeng/cldr_units_sql | 7ea5c9673b4986c21baf035eaf07451f9ad37d1c | [
"Apache-2.0"
] | 2 | 2021-07-08T21:14:50.000Z | 2022-03-07T20:43:44.000Z | config/test.exs | kianmeng/cldr_units_sql | 7ea5c9673b4986c21baf035eaf07451f9ad37d1c | [
"Apache-2.0"
] | 2 | 2021-07-08T20:24:57.000Z | 2022-03-06T13:54:41.000Z | use Mix.Config
config :ex_cldr_units_sql, Cldr.Unit.SQL.Repo,
username: "kip",
database: "money_dev",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
config :ex_cldr_units_sql,
ecto_repos: [Cldr.Unit.SQL.Repo]
config :logger, level: :error
| 20.615385 | 46 | 0.712687 |
b21f28e383f73e71990e3744a184c2ef3bef2b3c | 2,468 | ex | Elixir | lib/level/users/user.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level/users/user.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level/users/user.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | defmodule Level.Users.User do
@moduledoc """
The User schema.
"""
use Ecto.Schema
import Ecto.Changeset
import Level.Gettext
alias Comeonin.Bcrypt
alias Ecto.Changeset
alias Level.Spaces.SpaceUser
@type t :: %__MODULE__{}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :b... | 25.443299 | 89 | 0.649514 |
b21f3fdd12a47f9e84f70ebc22f314cabfa091c7 | 1,129 | exs | Elixir | config/config.exs | mtchavez/ex_cc_validation | 974d0872934a9ed8eb544b80776a1caaf6d0d443 | [
"MIT"
] | 5 | 2018-01-23T16:32:17.000Z | 2020-01-07T16:39:42.000Z | config/config.exs | mtchavez/ex_cc_validation | 974d0872934a9ed8eb544b80776a1caaf6d0d443 | [
"MIT"
] | 38 | 2018-07-16T13:18:22.000Z | 2021-08-02T13:21:59.000Z | config/config.exs | mtchavez/ex_cc_validation | 974d0872934a9ed8eb544b80776a1caaf6d0d443 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.419355 | 73 | 0.753764 |
b21f5778f282f8902396104d4a82296d819eb2b3 | 910 | exs | Elixir | config/test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | config/test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | config/test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | import Config
#
# Don't forget to update .travis/test.exs!
#
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :grapevine, Web.Endpoint,
http: [port: 4001],
url: [host: "localhost"],
server: false
config :grapevine, :socket, http: [port: 4111]
config :lo... | 22.195122 | 64 | 0.724176 |
b21f64c8f7ed93fb3d5da4db75c8efece85989b9 | 2,958 | exs | Elixir | test/crockford_base32_decode_test.exs | xinz/crockford_base32 | 28e8e231a10db82ba8fd7cb3c93ccd87c739f331 | [
"MIT"
] | null | null | null | test/crockford_base32_decode_test.exs | xinz/crockford_base32 | 28e8e231a10db82ba8fd7cb3c93ccd87c739f331 | [
"MIT"
] | null | null | null | test/crockford_base32_decode_test.exs | xinz/crockford_base32 | 28e8e231a10db82ba8fd7cb3c93ccd87c739f331 | [
"MIT"
] | null | null | null | defmodule CrockfordBase32DecodeTest do
use ExUnit.Case
test "decode string without padding" do
# keep the input string size is 5 (or multiples of 5)
# can make this test case
items = ["YPgeI`r^yD", "abcdefghij", "IhOkH", "EuftlDISMiPbjNLywRvpT`WQY"]
assert_encode_and_decode_binary(items)
end
... | 36.073171 | 98 | 0.687965 |
b21f801a85c29577bbda0d1f00e9eaef25a5407f | 2,657 | ex | Elixir | apps/site/lib/site_web/views/schedule/timetable.ex | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | apps/site/lib/site_web/views/schedule/timetable.ex | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | apps/site/lib/site_web/views/schedule/timetable.ex | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | defmodule SiteWeb.ScheduleView.Timetable do
alias Schedules.Schedule
alias SiteWeb.ViewHelpers, as: Helpers
alias Stops.Stop
import Phoenix.HTML.Tag, only: [content_tag: 3]
import Phoenix.HTML, only: [safe_to_string: 1]
@type vehicle_tooltip_key :: {Schedules.Trip.id_t(), Stops.Stop.id_t()}
@spec stop_... | 25.304762 | 82 | 0.628905 |
b21fda8e53f3dbaaf81b2c1cce4de10d1bef05e5 | 1,879 | exs | Elixir | mix.exs | tomciopp/burnex | 0dae67c4f2d823be1a221410aac86b33e6abd211 | [
"MIT"
] | null | null | null | mix.exs | tomciopp/burnex | 0dae67c4f2d823be1a221410aac86b33e6abd211 | [
"MIT"
] | null | null | null | mix.exs | tomciopp/burnex | 0dae67c4f2d823be1a221410aac86b33e6abd211 | [
"MIT"
] | null | null | null | defmodule Burnex.Mixfile do
use Mix.Project
@source_url "https://github.com/Betree/burnex"
@version String.trim(File.read!("VERSION"))
def project do
[
app: :burnex,
version: @version,
elixir: "~> 1.7",
description: "Elixir burner email (temporary address) detector",
start_pe... | 22.638554 | 70 | 0.523683 |
b21fe5dd192c6a9cec8fdca3f06e553237f99392 | 547 | exs | Elixir | challenge_5/elixir/joegotflow83/find_difference/test/find_difference_test.exs | rchicoli/2017-challenges | 44f0b672e5dea34de1dde131b6df837d462f8e29 | [
"Apache-2.0"
] | 271 | 2017-01-01T22:58:36.000Z | 2021-11-28T23:05:29.000Z | challenge_5/elixir/joegotflow83/find_difference/test/find_difference_test.exs | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 283 | 2017-01-01T23:26:05.000Z | 2018-03-23T00:48:55.000Z | challenge_5/elixir/joegotflow83/find_difference/test/find_difference_test.exs | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 311 | 2017-01-01T22:59:23.000Z | 2021-09-23T00:29:12.000Z | defmodule FindDifferenceTest do
use ExUnit.Case
doctest FindDifference
test "difference is spotted at end of line" do
assert "e" == FindDifference.difference("abcd", "abcde")
end
test "difference is spotted at front of line" do
assert "f" == FindDifference.difference("food", "ood")
end
test "di... | 26.047619 | 62 | 0.700183 |
b22000d03045990e2343803390e2d6955a2550e1 | 5,641 | exs | Elixir | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2021-12-16T20:32:28.000Z | 2021-12-16T20:32:28.000Z | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.LexicalTrackerTest do
use ExUnit.Case, async: true
alias Kernel.LexicalTracker, as: D
setup do
{:ok, pid} = D.start_link()
{:ok, [pid: pid]}
end
test "can add remote dispatch", config do
D.remote_dispatch(config[:pid], String, :... | 32.988304 | 93 | 0.640667 |
b2200261bc5ca150b899d2640dd833ea472d194d | 745 | ex | Elixir | lib/membrane/core/element.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/element.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/element.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.Element do
@moduledoc false
# Modules in this namespace are responsible for managing elements: handling incoming
# data, executing callbacks and evaluating actions. These modules can be divided
# in terms of functionality in the following way:
# - `Membrane.Core.Element.MessageDispatch... | 49.666667 | 86 | 0.774497 |
b22003f9d7d9a97df48799e7020622b743cc6684 | 12,824 | ex | Elixir | apps/demon_spirit_web/lib/demon_spirit_game_ui/game_ui_server.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 12 | 2019-09-17T13:47:57.000Z | 2021-12-11T17:11:11.000Z | apps/demon_spirit_web/lib/demon_spirit_game_ui/game_ui_server.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 181 | 2019-10-15T01:21:44.000Z | 2021-08-31T19:26:54.000Z | apps/demon_spirit_web/lib/demon_spirit_game_ui/game_ui_server.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 2 | 2020-07-11T02:18:46.000Z | 2021-05-31T10:46:39.000Z | defmodule DemonSpiritWeb.GameUIServer do
@moduledoc """
GameUIServer is meant to be one layer above the GameServer.
The GameServer only cares about the game state. You feed it moves, it
updates the board state, and looks for winners.
The GameUIServer takes click events, marks squares as selected, and liste... | 33.570681 | 97 | 0.697052 |
b2205c2c5d8e10d5451031c897222ad5fc481213 | 125 | exs | Elixir | config/test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 19 | 2018-01-22T18:39:20.000Z | 2022-02-22T16:15:30.000Z | config/test.exs | mbta/concentrate | bae6e05713ed079b7da53867a01dd007861fb656 | [
"MIT"
] | 216 | 2018-01-22T14:22:39.000Z | 2022-03-31T10:30:31.000Z | config/test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 5 | 2018-01-22T14:18:15.000Z | 2021-04-26T18:34:19.000Z | use Mix.Config
config :logger,
level: :info,
backends: []
config :concentrate, :sink_s3, ex_aws: Concentrate.TestExAws
| 15.625 | 60 | 0.728 |
b2206b4063ac2b1a74683d1c94d6c4b90afcfed6 | 32,301 | ex | Elixir | lib/elixir/lib/dynamic_supervisor.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/dynamic_supervisor.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/elixir/lib/dynamic_supervisor.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule DynamicSupervisor do
@moduledoc ~S"""
A supervisor that starts children dynamically.
The `Supervisor` module was designed to handle mostly static children
that are started in the given order when the supervisor starts. A
`DynamicSupervisor` starts with no children. Instead, children are
started o... | 31.421206 | 100 | 0.644841 |
b2206f373133159f48aecfdbea04df4d11aa60ae | 2,244 | exs | Elixir | test/etherscan/api/logs_test.exs | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | null | null | null | test/etherscan/api/logs_test.exs | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | null | null | null | test/etherscan/api/logs_test.exs | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | null | null | null | defmodule Etherscan.LogsTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
use Etherscan.Constants
alias Etherscan.Log
setup_all do
HTTPoison.start()
:ok
end
describe "get_logs/1" do
test "returns a log struct" do
use_cassette "get_logs" do
response =
... | 29.142857 | 70 | 0.643494 |
b2209d8ddf542467e02b00d3d094634cad261b60 | 1,069 | ex | Elixir | lib/game_web/channels/user_socket.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | lib/game_web/channels/user_socket.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | 1 | 2021-10-18T21:44:37.000Z | 2021-10-18T21:44:37.000Z | lib/game_web/channels/user_socket.ex | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | defmodule GameWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", GameWeb.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.542857 | 90 | 0.698784 |
b220a1b16f02d250baa1a7601f7225cf203d9fef | 1,145 | exs | Elixir | mix.exs | nemanja-m/matrix | 92298697827f30a2d6ba144004c1668fe70b760e | [
"MIT"
] | null | null | null | mix.exs | nemanja-m/matrix | 92298697827f30a2d6ba144004c1668fe70b760e | [
"MIT"
] | null | null | null | mix.exs | nemanja-m/matrix | 92298697827f30a2d6ba144004c1668fe70b760e | [
"MIT"
] | null | null | null | defmodule Matrix.Mixfile do
use Mix.Project
def project do
[
app: :matrix,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 22.45098 | 63 | 0.50131 |
b220a28c8cb636f0128db122b40203f6d46223de | 218 | ex | Elixir | lib/hl7/2.4/segments/bts.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/bts.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/bts.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.BTS do
@moduledoc false
require Logger
use HL7.Segment,
fields: [
segment: nil,
batch_message_count: nil,
batch_comment: nil,
batch_totals: nil
]
end
| 15.571429 | 34 | 0.646789 |
b221187349281bbe10c17beccba9a91357a903fe | 2,142 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/buildings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/buildings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/buildings.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... | 38.25 | 205 | 0.713352 |
b221525c49ac1d479fa802981b2043e691b853d8 | 29 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/MatchedWhenNoParenthesesKeywordsOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/MatchedWhenNoParenthesesKeywordsOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/MatchedWhenNoParenthesesKeywordsOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | one.(
two when two: three
) | 9.666667 | 21 | 0.62069 |
b221905649d9376251d1f11f630fef92d0d1192f | 4,823 | ex | Elixir | data/route/route_fr2.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/route/route_fr2.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/route/route_fr2.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Data.Route.RouteFR2 do
@behaviour Route.Behaviour
def id(), do: "FR2"
def type(), do: :freizeit
def color(), do: "#006106"
def name(), do: "Osterbekradweg (FR2)"
def article(), do: "freizeitroute-2"
def osm_relation_ref(), do: "https://www.openstreetmap.org/relation/9056480"
forward = %Video... | 49.721649 | 79 | 0.632179 |
b2219397091a79e7966def8c9d152fe36bbcead4 | 2,109 | ex | Elixir | clients/firebase/lib/google_api/firebase/v1beta1/model/list_available_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase/lib/google_api/firebase/v1beta1/model/list_available_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase/lib/google_api/firebase/v1beta1/model/list_available_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.18 | 419 | 0.750593 |
b221959ecebb3d8a9d8f2b7a35b601153539ebd4 | 1,921 | ex | Elixir | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_location.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_location.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_location.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.701754 | 180 | 0.741281 |
b221ab330a35a1324d7fe8f6b5c8dc5ff9343cc1 | 1,783 | ex | Elixir | lib/glimesh_web/live/admin/category_live/form_component.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh_web/live/admin/category_live/form_component.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh_web/live/admin/category_live/form_component.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.Admin.CategoryLive.FormComponent do
use GlimeshWeb, :live_component
alias Glimesh.ChannelCategories
@impl true
def update(%{category: category} = assigns, socket) do
changeset = ChannelCategories.change_category(category)
{:ok,
socket
|> assign(assigns)
|> assign(
... | 29.716667 | 87 | 0.671901 |
b221ba8388d3feecdcd641e9aa360c64873db379 | 836 | ex | Elixir | parser/lib/object/Info.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | parser/lib/object/Info.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | parser/lib/object/Info.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule QuenyaParser.Object.Info do
@moduledoc """
Info object
"""
use TypedStruct
alias QuenyaParser.Object.{Contact, Info, License}
typedstruct do
@typedoc "Info object from the spec"
field(:title, String.t(), enforce: true)
field(:summary, String.t(), default: "")
field(:description, S... | 26.967742 | 53 | 0.633971 |
b221fdeb3024055f6f6c9a541747b46f9fa1a00c | 250 | exs | Elixir | bench/vector/zip.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 95 | 2020-10-18T09:27:46.000Z | 2022-03-29T20:03:16.000Z | bench/vector/zip.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2021-09-22T20:30:08.000Z | 2021-10-13T23:55:34.000Z | bench/vector/zip.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2020-12-15T12:36:16.000Z | 2020-12-15T12:36:16.000Z | list = Enum.to_list(1..100)
vector = Aja.Vector.new(list)
Benchee.run(%{
"Aja.Vector.zip/2" => fn -> Aja.Vector.zip(vector, vector) end,
"Enum.zip/2" => fn -> Enum.zip(list, list) end,
"Aja.Enum.zip/2" => fn -> Aja.Enum.zip(list, list) end
})
| 27.777778 | 65 | 0.62 |
b2220747a573b8a11bbceb65df912adac6eb9517 | 966 | ex | Elixir | debian/postinst.ex | mingw-deb/boost | 1a92562253586e507afecb813465981383606c2d | [
"BSL-1.0"
] | null | null | null | debian/postinst.ex | mingw-deb/boost | 1a92562253586e507afecb813465981383606c2d | [
"BSL-1.0"
] | null | null | null | debian/postinst.ex | mingw-deb/boost | 1a92562253586e507afecb813465981383606c2d | [
"BSL-1.0"
] | 1 | 2021-08-24T09:21:28.000Z | 2021-08-24T09:21:28.000Z | #!/bin/sh
# postinst script for mingw-w64-boost
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <packa... | 24.15 | 71 | 0.640787 |
b22213996e2543c610ebbf76d07573b6d2b94e97 | 766 | exs | Elixir | mix.exs | IdahoEv/cowboy-elixir-example | 9a1e2a1c57c95e58663b938fe1a825f94d8d403c | [
"MIT"
] | 202 | 2015-01-03T17:17:39.000Z | 2022-03-07T20:44:24.000Z | mix.exs | masonforest/cowboy-elixir-example | 9a1e2a1c57c95e58663b938fe1a825f94d8d403c | [
"MIT"
] | 2 | 2016-09-19T16:52:14.000Z | 2017-07-25T13:27:17.000Z | mix.exs | IdahoEv/cowboy-elixir-example | 9a1e2a1c57c95e58663b938fe1a825f94d8d403c | [
"MIT"
] | 40 | 2015-07-24T13:48:13.000Z | 2022-02-16T16:34:48.000Z | defmodule CowboyElixirExample.Mixfile do
use Mix.Project
def project do
[app: :cowboy_elixir_example,
version: "0.0.3",
elixir: ">= 1.0.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[
mod: ... | 21.885714 | 77 | 0.593995 |
b2224179055634fd321ce60a6c0522ed4aee75c8 | 112 | ex | Elixir | lib/playground/repo.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | lib/playground/repo.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | lib/playground/repo.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | defmodule Playground.Repo do
use Ecto.Repo,
otp_app: :playground,
adapter: Ecto.Adapters.Postgres
end
| 18.666667 | 35 | 0.741071 |
b22244a1eff93e9331b2c0949b8158e37356e03a | 3,180 | ex | Elixir | lib/mix/lib/mix/cli.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/cli.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/cli.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.CLI do
@moduledoc false
@doc """
Runs Mix according to the command line arguments.
"""
def main(args \\ System.argv) do
Mix.Local.append_archives
Mix.Local.append_paths
if env_variable_activated?("MIX_QUIET"), do: Mix.shell(Mix.Shell.Quiet)
if env_variable_activated?("MIX_DEBUG... | 24.651163 | 88 | 0.624528 |
b2227543eacce65e01adecfd0024f9fc370329db | 113 | ex | Elixir | lib/mbta/react_io.ex | oberonv1/elixir-react-train-schedule | 89821c5be1f595f1ef34e778df0ca24eeedad674 | [
"MIT"
] | null | null | null | lib/mbta/react_io.ex | oberonv1/elixir-react-train-schedule | 89821c5be1f595f1ef34e778df0ca24eeedad674 | [
"MIT"
] | null | null | null | lib/mbta/react_io.ex | oberonv1/elixir-react-train-schedule | 89821c5be1f595f1ef34e778df0ca24eeedad674 | [
"MIT"
] | null | null | null | defmodule Mbta.ReactIO do
use StdJsonIo, otp_app: :mbta, script: "node_modules/react-stdio/bin/react-stdio"
end | 37.666667 | 83 | 0.787611 |
b222780d90eb7c508ff0b599c40f44fb286b489e | 617 | exs | Elixir | test/membrane_fake_plugin/sink_buffers_test.exs | membraneframework/membrane_fake_plugin | 5afab04f0f5f4691ab1ff4e2edf2b265796d3e25 | [
"Apache-2.0"
] | 1 | 2018-07-27T14:16:12.000Z | 2018-07-27T14:16:12.000Z | test/membrane_fake_plugin/sink_buffers_test.exs | membraneframework/membrane_fake_plugin | 5afab04f0f5f4691ab1ff4e2edf2b265796d3e25 | [
"Apache-2.0"
] | 3 | 2018-10-15T08:04:11.000Z | 2020-06-09T09:47:34.000Z | test/membrane_fake_plugin/sink_buffers_test.exs | membraneframework/membrane_fake_plugin | 5afab04f0f5f4691ab1ff4e2edf2b265796d3e25 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Fake.Sink.BuffersTest do
use ExUnit.Case
@module Membrane.Fake.Sink.Buffers
describe "handle_prepared_to_playing/2 should" do
test "return an :ok result with demand" do
state = nil
assert @module.handle_prepared_to_playing(nil, state) == {{:ok, demand: :input}, state}
end
... | 29.380952 | 93 | 0.669368 |
b22282fa08fdd7d171dd3c1841cd5e50b7fab6a5 | 1,138 | exs | Elixir | config/config.exs | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 10 | 2021-03-02T20:05:13.000Z | 2022-03-14T21:10:39.000Z | config/config.exs | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-14T18:29:44.000Z | 2021-12-23T20:38:27.000Z | config/config.exs | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-05T20:41:26.000Z | 2021-12-26T01:46:42.000Z | import Config
config :elixir,
# https://hexdocs.pm/elixir/DateTime.html#module-time-zone-database
:time_zone_database, Tzdata.TimeZoneDatabase
config :scenic,
:assets, module: Flamelex.Assets
config :flamelex,
:key_mapping, Flamelex.API.KeyMappings.VimClone
config :memelex,
# active?: false,
environment... | 28.45 | 121 | 0.726714 |
b22285412905272bbc41e0266f983af40499ca75 | 266 | exs | Elixir | priv/repo/migrations/20210909132721_create_names.exs | joaothallis/name-of-the-day | 839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210909132721_create_names.exs | joaothallis/name-of-the-day | 839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82 | [
"MIT"
] | 6 | 2021-09-07T15:10:50.000Z | 2021-10-31T02:56:08.000Z | priv/repo/migrations/20210909132721_create_names.exs | joaothallis/name-of-the-day | 839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82 | [
"MIT"
] | null | null | null | defmodule NameOfTheDay.Repo.Migrations.CreateNames do
use Ecto.Migration
def change do
create table(:names) do
add :name, :string
add :meaning, :string
add :gender, :string
add :country, :string
timestamps()
end
end
end
| 17.733333 | 53 | 0.646617 |
b222acfbb68fba5f20437cce5c02c8ad13b384eb | 771 | ex | Elixir | apps/podder_web/test/support/channel_case.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/test/support/channel_case.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/test/support/channel_case.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | defmodule PodderWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wi... | 24.09375 | 59 | 0.726329 |
b222b1b1468628742edfd853c8ab642691b127ee | 1,982 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_info_type_transformations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_info_type_transformations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_info_type_transformations.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... | 38.862745 | 222 | 0.767911 |
b222f9fedcf47772b310b18f2bfbffac504e3da7 | 1,225 | exs | Elixir | mix.exs | amineo/t2_server_query_elixir | 84e923852b57d0225a8859fb39265b88048a27eb | [
"MIT"
] | null | null | null | mix.exs | amineo/t2_server_query_elixir | 84e923852b57d0225a8859fb39265b88048a27eb | [
"MIT"
] | null | null | null | mix.exs | amineo/t2_server_query_elixir | 84e923852b57d0225a8859fb39265b88048a27eb | [
"MIT"
] | null | null | null | defmodule T2ServerQuery.MixProject do
use Mix.Project
def project do
[
app: :t2_server_query,
version: "0.1.3",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "T2ServerQuery",
description: "Query any Tribes 2 server and retrie... | 24.5 | 108 | 0.589388 |
b22322b4d142d3c14e7bfa6a1a80550c9986cf9f | 78 | ex | Elixir | lib/level_web/views/space_view.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level_web/views/space_view.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level_web/views/space_view.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule LevelWeb.SpaceView do
@moduledoc false
use LevelWeb, :view
end
| 13 | 31 | 0.769231 |
b2232bd1708a769e4455c72f75183643ca34d843 | 37 | exs | Elixir | priv/repo/fetch_languages.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | priv/repo/fetch_languages.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | priv/repo/fetch_languages.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | Adoptoposs.Release.fetch_languages()
| 18.5 | 36 | 0.864865 |
b2235f9c68c13532f6b16a707ee48a68c149bbbb | 46,718 | ex | Elixir | lib/ash/filter/filter.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | defmodule Ash.Filter do
alias Ash.Actions.SideLoad
alias Ash.Engine.Request
alias Ash.Error.Query.{
AggregatesNotSupported,
InvalidFilterValue,
NoSuchAttributeOrRelationship,
NoSuchFilterPredicate,
ReadActionRequired
}
alias Ash.Query.Function.IsNil
alias Ash.Query.Operator.{
Eq,
... | 30.614679 | 134 | 0.622437 |
b223685dbbd1d0eeff83b12e3ce3b31c7e213b68 | 1,907 | exs | Elixir | clients/deployment_manager/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/mix.exs | 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... | 28.462687 | 133 | 0.665443 |
b2238e9d99f86341d12d2cb7bfc67a4b03d4877e | 183 | ex | Elixir | lib/mix/test/fixtures/archive/lib/local.sample.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/test/fixtures/archive/lib/local.sample.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/fixtures/archive/lib/local.sample.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Tasks.Local.Sample do
use Mix.Task
@shortdoc "A local install sample"
@moduledoc "A local install sample"
def run(_) do
Mix.shell.info "sample"
end
end
| 16.636364 | 37 | 0.699454 |
b223984ea765db9dd8d2ab666a07f527d0aa7fe3 | 1,166 | exs | Elixir | test/bad_seed_test.exs | jeffkreeftmeijer/bad_seed | 9c29c310e334f54cae49f7b30cbb96268d03bb11 | [
"MIT"
] | 1 | 2018-04-05T17:38:52.000Z | 2018-04-05T17:38:52.000Z | test/bad_seed_test.exs | jeffkreeftmeijer/bad_seed | 9c29c310e334f54cae49f7b30cbb96268d03bb11 | [
"MIT"
] | null | null | null | test/bad_seed_test.exs | jeffkreeftmeijer/bad_seed | 9c29c310e334f54cae49f7b30cbb96268d03bb11 | [
"MIT"
] | null | null | null | defmodule BadSeedTest do
use ExUnit.Case
describe "when .bad_seed exists" do
setup do
seed = Enum.random(0..999999)
FileMock.start_link(seed |> to_string)
%{seed: seed}
end
test "BadSeed.setup/0 overwrites the ExUnit seed", %{seed: seed} do
:ok = BadSeed.setup()
assert s... | 27.761905 | 106 | 0.660377 |
b223cce2bb506319eff552196622cfea06097bfa | 1,884 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/indicator.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/security_center/lib/google_api/security_center/v1/model/indicator.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/security_center/lib/google_api/security_center/v1/model/indicator.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.68 | 286 | 0.732484 |
b223dfe78c561005a0c61b21d56e08589d7a9ddb | 1,113 | ex | Elixir | lib/erlef_web/controllers/event_submission_controller.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/event_submission_controller.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/event_submission_controller.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.EventSubmissionController do
use ErlefWeb, :controller
alias Erlef.Events
action_fallback ErlefWeb.FallbackController
def create(conn, %{"event" => params}) do
case Events.submit(params) do
{:ok, _event} ->
conn
|> put_flash(
:success,
"<h3 clas... | 29.289474 | 101 | 0.612758 |
b223e46be7e0f525b6b242151cc76e5e77719cd1 | 1,258 | ex | Elixir | lib/course_planner_web/endpoint.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | lib/course_planner_web/endpoint.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | lib/course_planner_web/endpoint.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlannerWeb.Endpoint do
@moduledoc false
use Phoenix.Endpoint, otp_app: :course_planner
socket "/socket", CoursePlannerWeb.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 stati... | 28.590909 | 69 | 0.725755 |
b223f56b2d493a798cfa42af126aba53c69c34f5 | 4,795 | exs | Elixir | config/simple_markdown_rules.exs | ScrimpyCat/SimpleMarkdownExtensionCLI | 9694d96f2fce5d500f10e39c428ae01952e95aec | [
"BSD-2-Clause"
] | 3 | 2017-05-02T12:53:07.000Z | 2017-05-28T11:53:15.000Z | config/simple_markdown_rules.exs | ScrimpyCat/SimpleMarkdownExtensionCLI | 9694d96f2fce5d500f10e39c428ae01952e95aec | [
"BSD-2-Clause"
] | null | null | null | config/simple_markdown_rules.exs | ScrimpyCat/SimpleMarkdownExtensionCLI | 9694d96f2fce5d500f10e39c428ae01952e95aec | [
"BSD-2-Clause"
] | 1 | 2019-10-24T11:55:23.000Z | 2019-10-24T11:55:23.000Z | use Mix.Config
config :simple_markdown,
rules: [
line_break: %{ match: ~r/\A $/m, format: "" },
newline: %{ match: ~r/\A\n/, ignore: true },
header: %{ match: ~r/\A(.*?)\n=+(?!.)/, option: 1, exclude: [:paragraph, :header] },
header: %{ match: ~r/\A(.*?)\n-+(?!.)/, option: 2, exclu... | 66.597222 | 253 | 0.44025 |
b223fd01102c8d855c7e2a9a2b2d43b50815c8a7 | 350 | exs | Elixir | priv/repo/seeds.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | priv/repo/seeds.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | priv/repo/seeds.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.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:
#
# BlueJet.Repo.insert!(%BlueJet.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will ... | 29.166667 | 61 | 0.705714 |
b2243601612c98f539ab4d765adfe962402c396b | 601 | ex | Elixir | lib/postgrex/extensions/macaddr.ex | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/extensions/macaddr.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/extensions/macaddr.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.Extensions.MACADDR do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "macaddr_send"
def encode(_) do
quote location: :keep do
%Postgrex.MACADDR{address: {a, b, c, d, e, f}} ->
<<6::int32, a, b, c, d, e, f>>
other ->
... | 26.130435 | 90 | 0.607321 |
b2244676bde2d95ddee685370769769db34a11f8 | 138 | exs | Elixir | app/priv/repo/migrations/20200408010158_add_user_indexes.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/priv/repo/migrations/20200408010158_add_user_indexes.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/priv/repo/migrations/20200408010158_add_user_indexes.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Repo.Migrations.AddUserIndexes do
use Ecto.Migration
def change do
create unique_index(:users, :email)
end
end
| 17.25 | 49 | 0.76087 |
b2244b921b7af4365b446c32f82ebf784b9ffd2b | 779 | ex | Elixir | lib/noap/xml_field.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | 1 | 2022-03-04T03:55:46.000Z | 2022-03-04T03:55:46.000Z | lib/noap/xml_field.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | null | null | null | lib/noap/xml_field.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | null | null | null | defmodule Noap.XMLField do
defstruct [
:field_or_embeds,
:name,
:xml_name,
:xml_map,
:type,
:opts
]
def new(field_or_embeds, name, nil, type, opts) do
app = Mix.Project.config()[:app]
type_map = Noap.Type.type_map(app)
embed_type = type_map[type]
if is_nil(embed_type) do
... | 21.054054 | 77 | 0.614891 |
b22474def32c92c40b686ac04350d7730544eba2 | 2,556 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_master_my_sql_replica_configuration.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_master_my_sql_replica_configuration.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_master_my_sql_replica_configuration.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... | 41.225806 | 250 | 0.710094 |
b224a8f182ec5ad864a59d16f2d21679d6c12a8b | 1,658 | exs | Elixir | test/stop_time_test.exs | jhartwell/ExMetra | 393b38d838e894fcb81e554bb8a53865ebdcf893 | [
"MIT"
] | 8 | 2018-01-08T07:52:21.000Z | 2020-06-19T03:22:33.000Z | test/stop_time_test.exs | jhartwell/ExMetra | 393b38d838e894fcb81e554bb8a53865ebdcf893 | [
"MIT"
] | 1 | 2018-01-08T07:31:22.000Z | 2018-01-08T07:31:22.000Z | test/stop_time_test.exs | jhartwell/ExMetra | 393b38d838e894fcb81e554bb8a53865ebdcf893 | [
"MIT"
] | null | null | null | defmodule ExMetra.StopTimeTest do
use ExUnit.Case
require Logger
alias ExMetra.StopTime
alias ExMetra.Utilities
@trip_id "BNSF_BN1200_V1_A"
@arrival_time "04:30:00"
@departure_time "23:30:00"
@stop_id "AURORA"
@stop_sequence 1
@pickup_type 0
@drop_off_type 0
@center_boarding 0
@south_boarding... | 30.145455 | 79 | 0.715923 |
b224aabe16d3839839896eaeaa76ce86422765d3 | 1,566 | ex | Elixir | web/channels/movement_channel.ex | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | web/channels/movement_channel.ex | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | web/channels/movement_channel.ex | hoodaly/web | 852f4c3da5b1f248d08206b58cd58981e76f6899 | [
"WTFPL"
] | null | null | null | defmodule Entice.Web.MovementChannel do
use Entice.Web.Web, :channel
use Entice.Logic.Attributes
alias Entice.Logic.Maps
alias Entice.Logic.Movement, as: Move
alias Entice.Entity.Coordination
alias Phoenix.Socket
alias Geom.Shape.Vector2D
def join("movement:" <> map, _message, %Socket{assigns: %{map: ... | 27.964286 | 125 | 0.648148 |
b224c2f9bf9e4603807d8b1f0d313c12d7988952 | 2,134 | ex | Elixir | lib/cmd.ex | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 23 | 2016-09-07T03:48:58.000Z | 2021-11-17T10:24:14.000Z | lib/cmd.ex | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 1 | 2017-07-30T11:47:31.000Z | 2017-07-30T11:47:31.000Z | lib/cmd.ex | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 10 | 2016-12-22T07:33:59.000Z | 2020-05-27T10:46:43.000Z | defmodule Injector.Cmd do
@switches [
project: :string,
packtools: :string,
]
def main(args) do
handler_progress()
with options <- parse_args(args),
project_cfg when is_binary(project_cfg) <- Keyword.get(options, :project) do
run(options)
end
end
def run(options) do
projec... | 26.02439 | 82 | 0.622306 |
b224f57cbcb78e897418dab6406960213b914a63 | 1,745 | ex | Elixir | play/lib/play/bullet.ex | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 1 | 2019-05-29T00:45:46.000Z | 2019-05-29T00:45:46.000Z | play/lib/play/bullet.ex | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | null | null | null | play/lib/play/bullet.ex | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | null | null | null | defmodule Play.Bullet do
@moduledoc """
Struct that represents a bullet in the game
"""
alias Play.Bullet
defstruct [:id, :t, :direction, :color, :size]
@speed 0.1
@type t :: %__MODULE__{
id: Play.ScenicEntity.id(),
t: Play.Scene.Asteroids.coords(),
direction: Play.Scene.A... | 24.236111 | 78 | 0.584527 |
b2251be51a577fc2d1c4717882f4689b3b850fcb | 2,294 | exs | Elixir | priv/repo/seeds.exs | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 2 | 2018-08-15T02:03:36.000Z | 2019-02-06T23:27:56.000Z | priv/repo/seeds.exs | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 14 | 2018-08-11T19:47:56.000Z | 2018-08-29T22:44:22.000Z | priv/repo/seeds.exs | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 2 | 2018-08-11T16:44:02.000Z | 2018-08-28T03:45:55.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:
#
# Idvote.Repo.insert!(%Idvote.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will f... | 24.666667 | 70 | 0.564516 |
b22537b23994c97d6b3daf70a18ef198ceee966b | 1,674 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/ungroup_objects_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/ungroup_objects_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/ungroup_objects_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... | 32.192308 | 106 | 0.732975 |
b225735597f02ba85a2c0fd17bf1ca11e408c067 | 7,111 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_capacity_unit.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_capacity_unit.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_capacity_unit.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.TableStore.CapacityUnit) do
@moduledoc false
(
defstruct(read: nil, write: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
... | 25.216312 | 94 | 0.460554 |
b2258d53fb23d3554d5899c60199297980011b80 | 2,144 | ex | Elixir | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_message_lead.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_message_lead.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_message_lead.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.147541 | 124 | 0.720149 |
b225baa3bda56291e24acb648be0edf85772e8ba | 3,392 | exs | Elixir | apps/object_storage/test/object_storage/objects_test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/object_storage/test/object_storage/objects_test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/object_storage/test/object_storage/objects_test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | defmodule Legendary.ObjectStorage.ObjectsTest do
use Legendary.ObjectStorage.DataCase
alias Legendary.ObjectStorage.{Object, ObjectChunk, Objects}
test "get_object/1 returns the object with given id" do
object =
%Object{path: "hello.txt"}
|> Repo.insert!()
assert Objects.get_object(object.pa... | 34.612245 | 100 | 0.642394 |
b225facbb1beff618e246f9ffd8b946027442559 | 50,586 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/api/accounts.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/accounts.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/accounts.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... | 41.362224 | 249 | 0.665797 |
b2263eb8305640a3b121ff085ae1d538b2105e5d | 1,434 | ex | Elixir | apps/core/lib/core/pubsub/protocols/auditable/repositories.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/pubsub/protocols/auditable/repositories.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/pubsub/protocols/auditable/repositories.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defimpl Core.PubSub.Auditable, for: [Core.PubSub.RepositoryCreated, Core.PubSub.RepositoryUpdated] do
alias Core.Schema.Audit
alias Core.PubSub
def audit(%{item: repository, actor: %{id: actor_id, account_id: account_id}}) do
%Audit{
action: "repository:#{action(@for)}",
actor_id: actor_id,
... | 29.875 | 138 | 0.712692 |
b226734fa76a7315af8df02dca847ee74cb6d4df | 1,048 | ex | Elixir | test/support/conn_case.ex | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | 1 | 2018-05-31T02:43:11.000Z | 2018-05-31T02:43:11.000Z | test/support/conn_case.ex | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | null | null | null | defmodule YggdrasilWeb.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 t... | 26.871795 | 71 | 0.722328 |
b2267cd7653d616d5a7f4be6ce7520efa8ba261e | 2,092 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region.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... | 37.357143 | 204 | 0.709847 |
b2269a293fc594b3656e4ace92fe62e7ccd6eb59 | 1,794 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/g_suite_principal.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/g_suite_principal.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/g_suite_principal.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... | 33.849057 | 137 | 0.723523 |
b226a0c24f1cae17265383e5d0ce5b991b8d06eb | 11,025 | ex | Elixir | debian/manpage.xml.ex | tarkhov/deb-release | 8421a676ec542cc5421b39c3ac353f2fb823789a | [
"MIT"
] | null | null | null | debian/manpage.xml.ex | tarkhov/deb-release | 8421a676ec542cc5421b39c3ac353f2fb823789a | [
"MIT"
] | 3 | 2019-06-04T19:43:09.000Z | 2020-11-20T11:55:32.000Z | debian/manpage.xml.ex | tarkhov/deb-release | 8421a676ec542cc5421b39c3ac353f2fb823789a | [
"MIT"
] | null | null | null | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!--
`xsltproc -''-nonet \
-''-param man.charmap.use.subset "0" \
-''-param make.year.ranges "1" \
-''-param make.single.year.r... | 37.756849 | 84 | 0.632472 |
b226be41c5b55ae2fb7d4ddbd4a4a4d6b33baa5b | 436 | exs | Elixir | test/ueberauth_testing_test.exs | Math3v/ueberauth_testing | f909829286f3605e4414a86f17b141d06bef93c7 | [
"MIT"
] | null | null | null | test/ueberauth_testing_test.exs | Math3v/ueberauth_testing | f909829286f3605e4414a86f17b141d06bef93c7 | [
"MIT"
] | null | null | null | test/ueberauth_testing_test.exs | Math3v/ueberauth_testing | f909829286f3605e4414a86f17b141d06bef93c7 | [
"MIT"
] | null | null | null | defmodule UeberauthTestingTest do
use ExUnit.Case
test "supports handle_request!" do
%{assigns: %{}} = Ueberauth.Strategy.Testing.handle_request!(%{assigns: %{}})
end
test "supports handle_callback!" do
%{assigns: %{}} = Ueberauth.Strategy.Testing.handle_callback!(%{assigns: %{}})
end
test "suppo... | 27.25 | 82 | 0.683486 |
b226c964f8672bb49b18f35c93ffbb099755fb3d | 1,665 | exs | Elixir | mix.exs | dev800/ueberauth | 9e9f57529f28bafc5b2161f62390ee901ad6e784 | [
"MIT"
] | null | null | null | mix.exs | dev800/ueberauth | 9e9f57529f28bafc5b2161f62390ee901ad6e784 | [
"MIT"
] | null | null | null | mix.exs | dev800/ueberauth | 9e9f57529f28bafc5b2161f62390ee901ad6e784 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Mixfile do
use Mix.Project
@version "0.5.0"
def project do
[
app: :ueberauth,
name: "Überauth",
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
build_embedded: Mix.env() == :prod,
start_perm... | 25.227273 | 72 | 0.570571 |
b226d645aa5826d4eb6c1945ffe5d9a14245d3f7 | 2,685 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/account_ticket.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics/lib/google_api/analytics/v3/model/account_ticket.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/account_ticket.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 ... | 43.306452 | 189 | 0.712104 |
b226dd1d7beb35746f22651660af81e3e1b2ac42 | 242 | ex | Elixir | lib/fika/compiler/type_checker/types/effect.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 220 | 2020-09-12T18:16:29.000Z | 2022-03-15T14:39:05.000Z | lib/fika/compiler/type_checker/types/effect.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 60 | 2020-09-23T14:20:36.000Z | 2021-03-08T08:55:57.000Z | lib/fika/compiler/type_checker/types/effect.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 25 | 2020-09-19T09:06:10.000Z | 2021-08-24T23:48:39.000Z | defmodule Fika.Compiler.TypeChecker.Types.Effect do
defstruct type: nil
alias Fika.Compiler.TypeChecker.Types, as: T
defimpl String.Chars, for: T.Effect do
def to_string(%{type: type}) do
"Effect(#{type})"
end
end
end
| 20.166667 | 51 | 0.694215 |
b226e0e33d78877ddfeff8e6291efd25f51afdeb | 737 | exs | Elixir | learn/mix.exs | libchaos/elixir-note | d7479e8971485392468516f0988416eca9c8002e | [
"MIT"
] | null | null | null | learn/mix.exs | libchaos/elixir-note | d7479e8971485392468516f0988416eca9c8002e | [
"MIT"
] | null | null | null | learn/mix.exs | libchaos/elixir-note | d7479e8971485392468516f0988416eca9c8002e | [
"MIT"
] | null | null | null | defmodule Learn.Mixfile do
use Mix.Project
def project do
[app: :learn,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more i... | 21.676471 | 79 | 0.622795 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.