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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1886750b85ada79eeec847bbc43db825d1c2fe9b | 868 | ex | Elixir | lib/types/tuple_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 3 | 2019-01-07T20:11:40.000Z | 2021-02-03T22:24:07.000Z | lib/types/tuple_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 13 | 2018-07-27T12:39:01.000Z | 2022-03-28T20:16:15.000Z | lib/types/tuple_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | null | null | null | defmodule JsonSchema.Types.TupleType do
@moduledoc """
Represents a custom `tuple` type definition in a JSON schema.
JSON Schema:
"shapePair": {
"description": "A choice of shape",
"type": "array",
"items": [
{ "$ref": "#/rectangle" },
{ "$ref": "#/circle" }
... | 25.529412 | 63 | 0.542627 |
188681dd78a19b7fb6afe88f65087577299b9a87 | 2,827 | exs | Elixir | config/runtime.exs | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | null | null | null | config/runtime.exs | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 4 | 2021-03-04T13:00:52.000Z | 2021-03-12T12:42:09.000Z | config/runtime.exs | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.202703 | 82 | 0.696144 |
18869c76231894b06f2f97e77357eb7556694b77 | 3,395 | ex | Elixir | lib/game/message.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/message.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/game/message.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule Game.Message do
@moduledoc """
Player or NPC message, something said
"""
defstruct [:type, :sender, :message, :formatted, from_gossip: false]
alias Data.User
alias Game.Format
@type t :: %{
type: :user | :npc,
sender: User.t(),
message: String.t(),
form... | 21.903226 | 75 | 0.613844 |
1887270594e1021481ecdc6f15a125ec376c6883 | 1,824 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/versioned_package.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/versioned_package.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/versioned_package.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.415094 | 136 | 0.71875 |
188734b4be9d468127046a3ad91f57bf1e956500 | 795 | ex | Elixir | lib/nerves_hub/client/default.ex | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | lib/nerves_hub/client/default.ex | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | lib/nerves_hub/client/default.ex | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHub.Client.Default do
@moduledoc """
Default NervesHub.Client implementation
This client always accepts an update.
"""
@behaviour NervesHub.Client
require Logger
@impl NervesHub.Client
def update_available(_), do: :apply
@impl NervesHub.Client
def handle_fwup_message({:progress, ... | 22.083333 | 77 | 0.704403 |
18878bbc77ca3af259d37d7cc04f62a0beaf0aeb | 1,333 | exs | Elixir | mix.exs | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | 1 | 2020-12-31T22:23:00.000Z | 2020-12-31T22:23:00.000Z | mix.exs | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | null | null | null | mix.exs | hpopp/tarot-cup | cc358145d35e7a0cee2ea68ce00e2e374b83ab11 | [
"MIT"
] | null | null | null | defmodule TarotCup.MixProject do
use Mix.Project
@version String.trim(File.read!("VERSION"))
def project do
[
app: :tarot_cup,
compilers: Mix.compilers(),
deps: deps(),
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
coveralls: :tes... | 21.852459 | 56 | 0.535634 |
18878dcaa31fb039ab31cd45b4ab02a0c2cf939a | 2,135 | ex | Elixir | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/add_targeted_sites_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/add_targeted_sites_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/add_targeted_sites_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.7 | 299 | 0.756909 |
1887ac83a3de99bc4c7f09bdd612992851359aa2 | 997 | ex | Elixir | seq_eq.ex | codecakes/elixir_days | 66fab751eef5bceff1ddf895f77464f3a9284bdf | [
"MIT"
] | null | null | null | seq_eq.ex | codecakes/elixir_days | 66fab751eef5bceff1ddf895f77464f3a9284bdf | [
"MIT"
] | null | null | null | seq_eq.ex | codecakes/elixir_days | 66fab751eef5bceff1ddf895f77464f3a9284bdf | [
"MIT"
] | null | null | null | defmodule Solution do
@moduledoc """
See:
https://www.hackerrank.com/challenges/permutation-equation/problem?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=30-day-campaign
"""
def take_inputs() do
n = IO.gets("") |> String.trim_trailing() |> String.to_integer()
IO.gets("")
|> ... | 24.925 | 150 | 0.604814 |
1887b4fd65f4d9546644247233a88a5e1741f4d0 | 639 | ex | Elixir | lib/central/account/schemas/group_membership.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/central/account/schemas/group_membership.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central/account/schemas/group_membership.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.Account.GroupMembership do
@moduledoc false
use CentralWeb, :schema
@primary_key false
schema "account_group_memberships" do
field :admin, :boolean, default: false
belongs_to :user, Central.Account.User, primary_key: true
belongs_to :group, Central.Account.Group, primary_key: tru... | 25.56 | 63 | 0.690141 |
1887caf225a3fa8f11f497533799b99c18830853 | 1,273 | exs | Elixir | benchmark/benchmark.exs | 2players/chinese_translation | 92dd535598ca9f21c4113ab048d12409d9551f80 | [
"MIT"
] | null | null | null | benchmark/benchmark.exs | 2players/chinese_translation | 92dd535598ca9f21c4113ab048d12409d9551f80 | [
"MIT"
] | null | null | null | benchmark/benchmark.exs | 2players/chinese_translation | 92dd535598ca9f21c4113ab048d12409d9551f80 | [
"MIT"
] | null | null | null | simplified_sentence = """
《京华春梦》(英语:Yesterday's Glitter)是香港电视广播有限公司拍摄制作的清末民初剧集,于1980年5月26日期间首播,原定20集,后因播出时观众反映强烈增至25集,由刘松仁、汪明荃、邓碧云及鲍方领衔主演,监制王天林,外景拍摄场地景贤里。主题曲及多首插曲由顾嘉辉作曲,邓伟雄、黄霑填词,汪明荃主唱。
"""
traditional_sentence = """
《京華春夢》(英語:Yesterday's Glitter)是香港電視廣播有限公司拍攝製作的清末民初劇集,於1980年5月26日期間首播,原定20集,後因播出時觀眾反映強烈增至25集,由劉松仁、汪明荃、鄧碧... | 36.371429 | 158 | 0.739984 |
1887e7971db7b0c193fcd8c00f6ac3d212bd407a | 8,908 | exs | Elixir | test/unit/xsd/datatypes/decimal_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/xsd/datatypes/decimal_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | test/unit/xsd/datatypes/decimal_test.exs | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.XSD.DecimalTest do
# TODO: Why can't we use the Decimal alias in the use options? Maybe it's the special ExUnit.CaseTemplate.using/2 macro in XSD.Datatype.Test.Case?
# alias Elixir.Decimal, as: D
use RDF.XSD.Datatype.Test.Case,
datatype: RDF.XSD.Decimal,
name: "decimal",
primitive: true... | 43.881773 | 148 | 0.620117 |
1887e9af581c01e9084b5603ef1c6b99c498092e | 1,876 | exs | Elixir | test/elrondex/sc/wrap_egld_sc_test.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 8 | 2021-10-02T16:25:19.000Z | 2022-02-03T17:50:34.000Z | test/elrondex/sc/wrap_egld_sc_test.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 1 | 2022-01-19T12:10:49.000Z | 2022-01-19T12:10:49.000Z | test/elrondex/sc/wrap_egld_sc_test.exs | victorflx/elrondex | a90521ce5e39ad37453dcb53f527b8311ae1ae4f | [
"MIT"
] | 2 | 2022-01-10T07:48:16.000Z | 2022-02-06T17:05:57.000Z | defmodule Elrondex.Sc.WrapEgldScTest do
alias Elrondex.{Account, Transaction, Network, REST}
alias Elrondex.Sc.WrapEgldSc
use ExUnit.Case
def account() do
mnemonic =
"cost turn honey genre mercy reunion start lion snap box endorse horse cross destroy figure acid glue virtual taxi vital finish option... | 22.333333 | 156 | 0.673241 |
1887eed0da4de752ee96e58eb486fff82f6aa488 | 937 | ex | Elixir | lib/sparql/algebra/expression/function_call/extension.ex | marcelotto/sparql-ex | 7bf939a2b0eec7e1096f6fdb999b07757995c145 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | lib/sparql/algebra/expression/function_call/extension.ex | rdf-elixir/sparql-ex | 138141797a1993ecfb50ddac6c1d2977601a11ff | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | lib/sparql/algebra/expression/function_call/extension.ex | marcelotto/sparql-ex | 7bf939a2b0eec7e1096f6fdb999b07757995c145 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.Algebra.FunctionCall.Extension do
defstruct name: nil,
arguments: [],
distinct: false
alias SPARQL.Algebra.FunctionCall
defimpl SPARQL.Algebra.Expression do
def evaluate(%SPARQL.Algebra.FunctionCall.Extension{
name: name, arguments: arguments, dis... | 30.225806 | 83 | 0.645678 |
1887f33bb3303503b5f27dea7cfdc40c79ecb22c | 1,929 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_shipment_line_item_shipment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/order_shipment_line_item_shipment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/order_shipment_line_item_shipment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.396226 | 203 | 0.722136 |
1887f5512f938cce789f451679dfc9727dd18a6a | 2,202 | ex | Elixir | lib/konvex/implementation/riak/ability/to_get_text_map_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-03-08T08:30:24.000Z | 2022-03-08T08:30:24.000Z | lib/konvex/implementation/riak/ability/to_get_text_map_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-01-28T16:45:57.000Z | 2022-01-28T16:56:22.000Z | lib/konvex/implementation/riak/ability/to_get_text_map_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | null | null | null | defmodule Konvex.Implementation.Riak.Ability.ToGetTextMapValue do
defmacro __using__(
[
bucket_name: <<_, _ :: binary>> = bucket_name,
connection: quoted_riak_connection,
map_type_name: <<_, _ :: binary>> = map_type_name
]
) do
quot... | 36.098361 | 121 | 0.544959 |
18881f87caaf110a345d801553a77fb8309e9fce | 374 | ex | Elixir | flights/web/views/error_view.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/web/views/error_view.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | flights/web/views/error_view.ex | sifxtreme/phoenix-flights | afc8724e9a9d6f9158305d57df8132327943894d | [
"MIT"
] | null | null | null | defmodule Flights.ErrorView do
use Flights.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template,... | 20.777778 | 47 | 0.697861 |
18882a25db4aa9a5c35646bb0beba0f9bc797bc8 | 37,410 | exs | Elixir | test/ecto/association_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | test/ecto/association_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | test/ecto/association_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.AssociationTest do
use ExUnit.Case, async: true
doctest Ecto.Association
import Ecto
import Ecto.Query, only: [from: 2]
alias __MODULE__.Author
alias __MODULE__.Comment
alias __MODULE__.CommentWithPrefix
alias __MODULE__.Permalink
alias __MODULE__.Post
alias __MODULE__.PostWithPrefi... | 41.291391 | 119 | 0.599439 |
188838aafe34ba970dcf0d3c76c5b96fc6e50699 | 489 | ex | Elixir | lib/tcpbin_web/views/error_view.ex | dominicletz/tcpbin | 4d6b614d46844f40ac03adfeb16352417f64f7d3 | [
"MIT"
] | null | null | null | lib/tcpbin_web/views/error_view.ex | dominicletz/tcpbin | 4d6b614d46844f40ac03adfeb16352417f64f7d3 | [
"MIT"
] | null | null | null | lib/tcpbin_web/views/error_view.ex | dominicletz/tcpbin | 4d6b614d46844f40ac03adfeb16352417f64f7d3 | [
"MIT"
] | null | null | null | defmodule TcpbinWeb.ErrorView do
use TcpbinWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. ... | 28.764706 | 61 | 0.734151 |
1888603a1867b568e914598f9421519bf7c1eb30 | 1,317 | ex | Elixir | lib/lists_and_recursion_8/tax.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | lib/lists_and_recursion_8/tax.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | 1 | 2020-01-28T00:19:53.000Z | 2020-01-28T00:19:53.000Z | lib/lists_and_recursion_8/tax.ex | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | defmodule ListsAndRecursion8 do
def tax_ins(orders, rates), do: orders |> Enum.map(&tax_in(&1, rates[&1[:ship_to]]))
defp tax_in(order, nil), do: order ++ [total_amount: order[:net_amount]]
defp tax_in(order, rate), do: order ++ [total_amount: order[:net_amount] * (1 + rate)]
end
tax_rates = [ NC: 0.075, TX: 0.0... | 48.777778 | 88 | 0.64161 |
18887d0ad4246eb93425411b16c49f1f8a8714bc | 2,411 | ex | Elixir | lib/tentacat/repositories/deployments.ex | wesleimp/tentacat | 6e4de63dd19ae719f2b59d4f289979a91e3cb5e2 | [
"MIT"
] | null | null | null | lib/tentacat/repositories/deployments.ex | wesleimp/tentacat | 6e4de63dd19ae719f2b59d4f289979a91e3cb5e2 | [
"MIT"
] | null | null | null | lib/tentacat/repositories/deployments.ex | wesleimp/tentacat | 6e4de63dd19ae719f2b59d4f289979a91e3cb5e2 | [
"MIT"
] | null | null | null | defmodule Tentacat.Repositories.Deployments do
import Tentacat
alias Tentacat.Client
@doc """
List Deployments
## Example
Tentacat.Repositories.Deployments.list "elixir-lang", "elixir"
Tentacat.Repositories.Deployments.list client, "elixir-lang", "elixir"
More info at: https://developer.gith... | 29.765432 | 103 | 0.679386 |
18892efdad7e17cdf682b1a686f9abbd3e4bfe71 | 1,924 | ex | Elixir | lib/commodity_api/util/type/inet.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/util/type/inet.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/util/type/inet.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 28.716418 | 93 | 0.679834 |
18893b0610ee7f4823d930ddcd41e09c288a42c1 | 1,049 | ex | Elixir | lib/openflow/multipart/reply.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/multipart/reply.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/multipart/reply.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.Multipart.Reply do
def ofp_type, do: 19
def read(<<type_int::16, flags_int::16, _::size(4)-unit(8), reply_bin::bytes>>) do
codec = Openflow.Enums.to_atom(type_int, :multipart_reply_codec)
flags = Openflow.Enums.int_to_flags(flags_int, :multipart_reply_flags)
reply = codec.read(reply_... | 34.966667 | 84 | 0.693994 |
18893f0465e67e0af23cde76be7e447710c4e202 | 110 | ex | Elixir | example/lib/backoffice_admin_example.ex | leuchtturm-solutions/backoffice | 7c6671f3bd4e837417d59813b2ddaf01a20d0291 | [
"MIT"
] | null | null | null | example/lib/backoffice_admin_example.ex | leuchtturm-solutions/backoffice | 7c6671f3bd4e837417d59813b2ddaf01a20d0291 | [
"MIT"
] | null | null | null | example/lib/backoffice_admin_example.ex | leuchtturm-solutions/backoffice | 7c6671f3bd4e837417d59813b2ddaf01a20d0291 | [
"MIT"
] | null | null | null | defmodule BackofficeAdminExample do
@moduledoc """
Documentation for `BackofficeAdminExample`.
"""
end
| 15.714286 | 45 | 0.754545 |
188944e84155256814e4524fb810657dffcd115e | 1,318 | exs | Elixir | config/config.exs | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | 2 | 2021-04-22T10:54:55.000Z | 2021-06-17T03:09:14.000Z | config/config.exs | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | null | null | null | config/config.exs | luizDorval/Rocketpay | b8cafbbb8b65b53596a350897aeee3dc4dd474ed | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :rocketpay,
ecto_repos: [Rocketpay.Repo... | 31.380952 | 86 | 0.76783 |
188958d05f4d15284f627373df78ca746de2b6dd | 2,245 | ex | Elixir | lib/baiji_generator/spec/finder.ex | wrren/baiji_generator.ex | 7c36c0089d6b88576fa6e064e86c342f03729003 | [
"MIT"
] | null | null | null | lib/baiji_generator/spec/finder.ex | wrren/baiji_generator.ex | 7c36c0089d6b88576fa6e064e86c342f03729003 | [
"MIT"
] | null | null | null | lib/baiji_generator/spec/finder.ex | wrren/baiji_generator.ex | 7c36c0089d6b88576fa6e064e86c342f03729003 | [
"MIT"
] | null | null | null | defmodule Baiji.Generator.Spec.Finder do
@moduledoc """
Navigates the models/apis directory to find api-spec JSON
files and generates a Spec struct.
"""
alias Baiji.Generator.Spec
@doc """
Finds all api-spec files under the given directory. Assumes the specified
directory contains subdirectories named ... | 34.015152 | 114 | 0.666815 |
18897a0ff499810dcee83653be7d9890509f1694 | 692 | ex | Elixir | slave/templates/dh_make/preinst.ex | dBucik/perun-services | ef3b1162eef5ffd7ef615fa94588a08b2e778610 | [
"BSD-2-Clause"
] | 7 | 2015-07-29T08:36:29.000Z | 2019-02-27T08:23:53.000Z | slave/templates/dh_make/preinst.ex | dBucik/perun-services | ef3b1162eef5ffd7ef615fa94588a08b2e778610 | [
"BSD-2-Clause"
] | 153 | 2015-09-30T10:57:04.000Z | 2022-03-28T11:32:12.000Z | slave/templates/dh_make/preinst.ex | dBucik/perun-services | ef3b1162eef5ffd7ef615fa94588a08b2e778610 | [
"BSD-2-Clause"
] | 49 | 2015-05-25T11:25:52.000Z | 2022-02-08T17:51:34.000Z | #!/bin/sh
# preinst script for #PACKAGE#
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for detail... | 19.222222 | 63 | 0.625723 |
1889a076157e3fb75a3aec88cbe05877f0d2ed50 | 863 | ex | Elixir | lib/future_made_concerts/spotify/schema/show.ex | Future-Made/concerts-for-impact | 5532cd1be5252fa0ccb0b956f0961be8701e0e04 | [
"MIT"
] | null | null | null | lib/future_made_concerts/spotify/schema/show.ex | Future-Made/concerts-for-impact | 5532cd1be5252fa0ccb0b956f0961be8701e0e04 | [
"MIT"
] | null | null | null | lib/future_made_concerts/spotify/schema/show.ex | Future-Made/concerts-for-impact | 5532cd1be5252fa0ccb0b956f0961be8701e0e04 | [
"MIT"
] | null | null | null | defmodule FutureMadeConcerts.Spotify.Schema.Show do
@moduledoc """
Represents a show.
"""
alias FutureMadeConcerts.Spotify.Schema
alias Schema.Publisher
@enforce_keys [
:id,
:uri,
:name,
:spotify_url,
:description,
:episodes,
:publisher,
:thumbnails,
:total_episodes
]... | 19.177778 | 56 | 0.566628 |
1889b325a2f5934754111f62559fb185862df707 | 874 | exs | Elixir | test/test_helper.exs | sheharyarn/better_params | 3bc8d9fd57732fda06195745611b0900fd812fb2 | [
"MIT"
] | 98 | 2017-06-14T05:05:55.000Z | 2022-01-29T07:56:09.000Z | test/test_helper.exs | sheharyarn/better_params | 3bc8d9fd57732fda06195745611b0900fd812fb2 | [
"MIT"
] | 5 | 2017-06-14T06:02:00.000Z | 2018-01-23T00:18:26.000Z | test/test_helper.exs | sheharyarn/better_params | 3bc8d9fd57732fda06195745611b0900fd812fb2 | [
"MIT"
] | 2 | 2017-06-14T19:23:17.000Z | 2017-12-09T00:53:45.000Z |
# Test-Specific Modules
defmodule BetterParams.Tests.Meta do
# Helper Methods
defmodule Helpers do
def build_upload(path) do
%Plug.Upload{path: path, filename: Path.basename(path)}
end
end
# Minimal Router to test our Plug against
defmodule Router do
use Plug.Router
plug :match
... | 16.807692 | 61 | 0.6373 |
188a11159a2fc5c91e41f9739de6cc5e096271d7 | 1,839 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/conference_solution_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/conference_solution_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/conference_solution_key.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... | 34.698113 | 153 | 0.731376 |
188a1e144e106f13a74f5cae520e6c23e6c28e86 | 2,018 | ex | Elixir | lib/chess/move/parse.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 8 | 2018-11-12T13:45:42.000Z | 2022-03-15T14:45:26.000Z | lib/chess/move/parse.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 1 | 2021-08-30T08:58:53.000Z | 2021-10-13T09:15:36.000Z | lib/chess/move/parse.ex | 7hoenix/Chess | 8b57b2d6dd4235e2ee67622f6521f83cd237417b | [
"MIT"
] | 3 | 2020-12-08T22:32:37.000Z | 2022-01-27T17:54:55.000Z | defmodule Chess.Move.Parse do
@moduledoc """
Module for parsing moves
"""
alias Chess.Game
defmacro __using__(_opts) do
quote do
defp do_parse_move(%Game{status: "check", check: check}, move, active)
when check != active and (move == "0-0" or move == "0-0-0"),
do: {:error, "Your ki... | 29.676471 | 89 | 0.557483 |
188a61c025f0a11cdd2a6c7cd74a251fa2186576 | 1,610 | ex | Elixir | exercises/practice/complex-numbers/lib/complex_numbers.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/complex-numbers/lib/complex_numbers.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/complex-numbers/lib/complex_numbers.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule ComplexNumbers do
@typedoc """
In this module, complex numbers are represented as a tuple-pair containing the real and
imaginary parts.
For example, the real number `1` is `{1, 0}`, the imaginary number `i` is `{0, 1}` and
the complex number `4+3i` is `{4, 3}'.
"""
@type complex :: {float, float... | 22.054795 | 89 | 0.614286 |
188a6ccdc14967f0ac2accb490a7f61026b29e8d | 10,578 | ex | Elixir | lib/elixir/lib/task/supervisor.ex | arjan/elixir | 7f3f33d1004ee518b9ef3a23501d23af156410be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervisor.ex | arjan/elixir | 7f3f33d1004ee518b9ef3a23501d23af156410be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervisor.ex | arjan/elixir | 7f3f33d1004ee518b9ef3a23501d23af156410be | [
"Apache-2.0"
] | null | null | null | defmodule Task.Supervisor do
@moduledoc """
A task supervisor.
This module defines a supervisor which can be used to dynamically
supervise tasks. Behind the scenes, this module is implemented as a
`:simple_one_for_one` supervisor where the workers are temporary by
default (that is, they are not restarted a... | 38.326087 | 100 | 0.704765 |
188a7247d4d6122f4283f7c406cb8cf68fa7bbce | 1,073 | ex | Elixir | lib/maze_generator/cell.ex | kbsymanz/maze_generator | f9519b83b53d4e74d51aece6644028f1e577b145 | [
"MIT"
] | 3 | 2021-07-07T03:45:24.000Z | 2021-07-12T13:12:05.000Z | lib/maze_generator/cell.ex | kbsymanz/maze_generator | f9519b83b53d4e74d51aece6644028f1e577b145 | [
"MIT"
] | null | null | null | lib/maze_generator/cell.ex | kbsymanz/maze_generator | f9519b83b53d4e74d51aece6644028f1e577b145 | [
"MIT"
] | null | null | null | defmodule MazeGenerator.Cell do
alias __MODULE__
@moduledoc """
Represents a cell.
x: zero based horizontal position starting from the left.
y: zero based vertical position starting from the top.
n: north wall, x/y coordinates
e: east wall, x/y coordinates
s: south wall, x/y coordinates
w: west wall... | 21.897959 | 75 | 0.56384 |
188a78bb1760ea293565a67fc46ddc42739a456e | 152 | exs | Elixir | priv/test_repo/migrations/20170409145427_user_school.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 20 | 2017-06-25T12:30:03.000Z | 2021-04-25T06:43:31.000Z | priv/test_repo/migrations/20170409145427_user_school.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 8 | 2017-11-19T17:15:32.000Z | 2020-02-02T12:50:03.000Z | priv/test_repo/migrations/20170409145427_user_school.exs | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 9 | 2018-03-30T22:14:13.000Z | 2021-11-15T12:12:56.000Z | defmodule App.Repo.Migrations.UserSchool do
use Ecto.Migration
def change do
alter table(:users) do
add :schools, :map
end
end
end
| 15.2 | 43 | 0.684211 |
188aa076b97edb903a73c4e206d38d8b2da7b867 | 1,243 | exs | Elixir | test/steroids_test.exs | elliott-davis/steroids | 7a3419778fbacf51f4d69316d8a389a1631da953 | [
"Apache-2.0"
] | null | null | null | test/steroids_test.exs | elliott-davis/steroids | 7a3419778fbacf51f4d69316d8a389a1631da953 | [
"Apache-2.0"
] | null | null | null | test/steroids_test.exs | elliott-davis/steroids | 7a3419778fbacf51f4d69316d8a389a1631da953 | [
"Apache-2.0"
] | null | null | null | defmodule SteroidsTest do
use ExUnit.Case
doctest Steroids
test "should merge a single query and filter" do
expected = %{
query: %{
bool: %{
must: %{
match: %{
message: "this is a test"
}
},
filter: %{
term: %{user... | 23.903846 | 84 | 0.501207 |
188aaeaa0ef8e5e038d14aac3b18e6af053b746a | 222 | exs | Elixir | apps/core/priv/prm_repo/migrations/20190424132631_add_legal_entity_accreditation.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20190424132631_add_legal_entity_accreditation.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20190424132631_add_legal_entity_accreditation.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.AddLegalEntityAccreditation do
@moduledoc false
use Ecto.Migration
def change do
alter table("legal_entities") do
add(:accreditation, :map, null: true)
end
end
end
| 18.5 | 64 | 0.72973 |
188ac4fb3a399775c7b70334ed21022750123674 | 47,839 | ex | Elixir | lib/phoenix_live_view.ex | ZeLarpMaster/phoenix_live_view | b55b3858dc9f0b8e63ffa9a0303e3daf2d945d22 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | ZeLarpMaster/phoenix_live_view | b55b3858dc9f0b8e63ffa9a0303e3daf2d945d22 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | ZeLarpMaster/phoenix_live_view | b55b3858dc9f0b8e63ffa9a0303e3daf2d945d22 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc """
LiveView provides rich, real-time user experiences with
server-rendered HTML.
LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to its stat... | 38.925142 | 111 | 0.689333 |
188acaf857d4b5b52d0a003f352aeec475757171 | 1,461 | ex | Elixir | elixir_phx_standard/service/lib/phx_service_web/endpoint.ex | estroz/docker-slim-examples | e8448bbe27e848b340d0c80557eb606e0bc69c18 | [
"Apache-2.0"
] | 77 | 2019-03-16T15:55:51.000Z | 2022-03-18T04:48:44.000Z | elixir_phx_standard/service/lib/phx_service_web/endpoint.ex | estroz/docker-slim-examples | e8448bbe27e848b340d0c80557eb606e0bc69c18 | [
"Apache-2.0"
] | 17 | 2019-11-28T17:43:54.000Z | 2022-01-06T21:32:57.000Z | elixir_phx_standard/service/lib/phx_service_web/endpoint.ex | estroz/docker-slim-examples | e8448bbe27e848b340d0c80557eb606e0bc69c18 | [
"Apache-2.0"
] | 17 | 2019-11-04T16:16:45.000Z | 2022-03-16T07:57:26.000Z | defmodule PhxServiceWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :phx_service
# 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,
at: "/", from: :phx_service... | 28.096154 | 95 | 0.704997 |
188acd22d5d3287738f223c994af8bc73af01f61 | 1,640 | exs | Elixir | test/pow_assent/strategies/auth0_test.exs | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | test/pow_assent/strategies/auth0_test.exs | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | test/pow_assent/strategies/auth0_test.exs | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | defmodule PowAssent.Strategy.Auth0Test do
use PowAssent.Test.OAuth2TestCase
alias PowAssent.Strategy.Auth0
@user_response %{
"sub" => 9_999_999,
"given_name" => "Jason",
"family_name" => "Fried",
"name" => "Jason Fried",
"preferred_username" => "jfried",
"email" => "jason@auth0.com",
... | 31.538462 | 150 | 0.627439 |
188adb7f1f6c3038f08d38cd8e22058b5058b164 | 4,850 | ex | Elixir | lib/credo/code/block.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/code/block.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/code/block.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | 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.635628 | 86 | 0.623093 |
188add3079c4e315fae9da8ba50059efb1a592c3 | 2,615 | ex | Elixir | clients/content/lib/google_api/content/v21/model/return_policy_policy.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/return_policy_policy.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/return_policy_policy.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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.339623 | 608 | 0.739962 |
188af043c00f04c7efc9913803e748b509f7670f | 1,844 | ex | Elixir | lib/ex_jenga/account_services/account_balance.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 1 | 2021-09-14T09:50:22.000Z | 2021-09-14T09:50:22.000Z | lib/ex_jenga/account_services/account_balance.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 15 | 2021-04-23T11:28:49.000Z | 2021-06-23T04:42:35.000Z | lib/ex_jenga/account_services/account_balance.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | null | null | null | defmodule ExJenga.AccountServices.AccountBalance do
@moduledoc """
This enables your application to retrieve the current and available balance of an account.
"""
import ExJenga.JengaBase
alias ExJenga.Signature
@uri_affix "/account/v2/accounts/balances/"
@doc """
Inquire current and available account... | 32.350877 | 132 | 0.632863 |
188b08bb8ff0bd89658a9bd14154c2717fc69932 | 487 | exs | Elixir | test/fuschia_web/user_agent_test.exs | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | 1 | 2022-02-21T18:25:14.000Z | 2022-02-21T18:25:14.000Z | test/fuschia_web/user_agent_test.exs | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | 32 | 2021-07-27T20:48:30.000Z | 2022-03-26T10:35:43.000Z | test/fuschia_web/user_agent_test.exs | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | null | null | null | defmodule FuschiaWeb.V1.UserAgentTest do
@moduledoc false
use FuschiaWeb.ConnCase, async: true
alias FuschiaWeb.UserAgent
@user_agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "use... | 24.35 | 121 | 0.698152 |
188b2aa6324ddb6152bfd47f76b44d503aca6530 | 2,287 | exs | Elixir | test/mix/tasks/phx.gen.cert_test.exs | 4goodapp/phoenix | d1b7ff9095fe5cf94150b7bdaa65e007af8eac83 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.gen.cert_test.exs | 4goodapp/phoenix | d1b7ff9095fe5cf94150b7bdaa65e007af8eac83 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.gen.cert_test.exs | 4goodapp/phoenix | d1b7ff9095fe5cf94150b7bdaa65e007af8eac83 | [
"MIT"
] | null | null | null | Code.require_file("../../../installer/test/mix_helper.exs", __DIR__)
defmodule Mix.Tasks.Phx.CertTest do
use ExUnit.Case
@otp_release :erlang.system_info(:otp_release) |> List.to_integer()
if @otp_release >= 20 do
import MixHelper
alias Mix.Tasks.Phx.Gen
@timeout 5_000
# RSA key generation re... | 32.671429 | 88 | 0.599038 |
188b80f95422e49f0451437914b721bcbaeb3b9c | 2,518 | ex | Elixir | lib/cql/result/rows.ex | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 37 | 2016-11-02T11:51:12.000Z | 2021-07-10T14:05:05.000Z | lib/cql/result/rows.ex | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 9 | 2016-10-25T20:26:49.000Z | 2018-11-04T09:59:41.000Z | lib/cql/result/rows.ex | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 17 | 2016-10-25T06:12:05.000Z | 2022-03-02T12:45:08.000Z | defmodule CQL.Result.Rows do
@moduledoc """
Represents a CQL rows result
"""
import CQL.DataTypes.Decoder, except: [decode: 2]
defstruct [
:columns,
:columns_count,
:column_types,
:rows,
:rows_count,
:paging_state,
]
@doc false
def decode_meta(buffer) do
with {:ok, %CQL.Fr... | 24.211538 | 94 | 0.625496 |
188b853ac21b69eed3ee819be0cb059278e6b71d | 1,377 | ex | Elixir | test/support/model_case.ex | skatsuta/elixir_sample | 8b03a5879278c492b0ba5fd212c8c4aeb6b55c57 | [
"MIT"
] | null | null | null | test/support/model_case.ex | skatsuta/elixir_sample | 8b03a5879278c492b0ba5fd212c8c4aeb6b55c57 | [
"MIT"
] | null | null | null | test/support/model_case.ex | skatsuta/elixir_sample | 8b03a5879278c492b0ba5fd212c8c4aeb6b55c57 | [
"MIT"
] | null | null | null | defmodule ElixirSample.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async.... | 25.981132 | 81 | 0.69281 |
188b89bba5a29aa3bba36e8728841fd65aaedc21 | 663 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/config/config.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-07-23T18:03:42.000Z | 2020-07-23T18:03:42.000Z | installer/templates/phx_umbrella/apps/app_name_web/config/config.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-05-26T19:38:18.000Z | 2020-05-26T19:38:18.000Z | installer/templates/phx_umbrella/apps/app_name_web/config/config.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 1 | 2020-08-31T15:29:31.000Z | 2020-08-31T15:29:31.000Z | <%= if namespaced? || ecto || generators do %>
config :<%= web_app_name %><%= if namespaced? do %>,
namespace: <%= web_namespace %><% end %><%= if ecto do %>,
ecto_repos: [<%= app_module %>.Repo]<% end %><%= if generators do %>,
generators: <%= inspect generators %><% end %>
<% end %># Configures the endpoint
co... | 47.357143 | 121 | 0.616893 |
188ba4654cc68dc678a479b4bcf86da71a0d9375 | 17,450 | ex | Elixir | lib/mix/lib/mix/task.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/task.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/task.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Task do
@moduledoc """
Provides conveniences for creating, loading, and manipulating Mix tasks.
A Mix task can be defined by using `Mix.Task` in a module whose name
begins with `Mix.Tasks.` and which defines the `run/1` function.
Typically, task modules live inside the `lib/mix/tasks/` director... | 28.842975 | 102 | 0.644871 |
188c4f9aa0bea2d36d2d325d104c65e3ae2279ed | 756 | ex | Elixir | web/views/zip_code_view.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | web/views/zip_code_view.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | web/views/zip_code_view.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule BdPro.ZipCodeView do
use BdPro.Web, :view
def render("index.json", %{ results: results }) do
%{
zip_codes: render_many(results, BdPro.ZipCodeView, "zip_code.json")
}
end
def render("zip_code.json", %{zip_code: [zip_code, count]}) do
%{
id: zip_code.id,
code: zip_code.zi... | 25.2 | 73 | 0.650794 |
188c58faecf95d294e5016c8e8891d38ecd260be | 966 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.153846 | 77 | 0.76501 |
188c66c44650b7bb5861a5f3f0af6cf459dabf27 | 900 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.333333 | 74 | 0.763333 |
188c72b4f2b72ea7165e74353a3beff1a3c05171 | 1,236 | ex | Elixir | test/blue_jet_web/support/conn_case.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | test/blue_jet_web/support/conn_case.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | test/blue_jet_web/support/conn_case.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJetWeb.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 ... | 25.75 | 69 | 0.699838 |
188c7ad321c9db618211eb52ee3865c1da6a23bb | 1,326 | ex | Elixir | lib/phoenix/transports/websocket.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | lib/phoenix/transports/websocket.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | lib/phoenix/transports/websocket.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2020-05-16T22:44:14.000Z | 2020-05-16T22:44:14.000Z | defmodule Phoenix.Transports.WebSocket do
@moduledoc false
alias Phoenix.Socket.{V1, V2, Transport}
def default_config() do
[
path: "/websocket",
serializer: [{V1.JSONSerializer, "~> 1.0.0"}, {V2.JSONSerializer, "~> 2.0.0"}],
timeout: 60_000,
transport_log: false,
compress: fals... | 30.837209 | 120 | 0.622926 |
188cab58206e38ac386e7db29968aa539980c7a5 | 1,195 | ex | Elixir | lib/ex_monobank/public_api.ex | romkor/ex_monobank | 6fa9c22b3d22bf8fe56e20cb376cd1a702154b33 | [
"MIT"
] | 3 | 2020-01-30T13:04:54.000Z | 2020-02-25T07:46:25.000Z | lib/ex_monobank/public_api.ex | romkor/ex_monobank | 6fa9c22b3d22bf8fe56e20cb376cd1a702154b33 | [
"MIT"
] | 13 | 2020-05-20T03:29:25.000Z | 2021-08-03T03:30:57.000Z | lib/ex_monobank/public_api.ex | romkor/ex_monobank | 6fa9c22b3d22bf8fe56e20cb376cd1a702154b33 | [
"MIT"
] | null | null | null | defmodule ExMonobank.PublicAPI do
@moduledoc """
Documentation for ExMonobank.PublicAPI
"""
use Tesla, only: [:get], docs: false
plug(
Tesla.Middleware.BaseUrl,
Application.get_env(
:ex_monobank,
:base_url
) || "https://api.monobank.ua"
)
plug(Tesla.Middleware.JSON)
if Mix.en... | 22.980769 | 81 | 0.616736 |
188ce130095267b1c445ad623be4680cfb4e822e | 6,655 | ex | Elixir | lib/nerves/package/squashfs.ex | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | lib/nerves/package/squashfs.ex | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | lib/nerves/package/squashfs.ex | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Package.Squashfs do
use GenServer
require Logger
@file_types ["c", "b", "l", "d", "-"]
@device_types ["c", "b"]
@posix [r: 4, w: 2, x: 1, s: 1, t: 1]
@sticky ["s", "t", "S", "T"]
def start_link(rootfs) do
params = unsquashfs(rootfs)
dir =
Path.dirname(rootfs)
|> Pat... | 27.163265 | 116 | 0.576258 |
188d0caa38cd3658d9d53b99fbcc2451ba979387 | 14,341 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/api/operations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/api/operations.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... | 48.449324 | 607 | 0.636078 |
188d10aaf4cb32642fbbd34de8030ad4f71496ac | 75 | ex | Elixir | lib/ex_jagaimo_blog_web/views/layout_view.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:19:06.000Z | 2021-06-19T04:19:06.000Z | lib/ex_jagaimo_blog_web/views/layout_view.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:21:52.000Z | 2021-06-19T04:21:52.000Z | lib/ex_jagaimo_blog_web/views/layout_view.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | null | null | null | defmodule ExJagaimoBlogWeb.LayoutView do
use ExJagaimoBlogWeb, :view
end
| 18.75 | 40 | 0.84 |
188d5dfcf250c7e7b6611cfe62e732646c40f7b9 | 5,066 | exs | Elixir | test/noted/telegram/bot_poller_test.exs | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | test/noted/telegram/bot_poller_test.exs | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | test/noted/telegram/bot_poller_test.exs | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | defmodule Noted.Telegram.BotPollerTest do
use ExUnit.Case, async: true
defmodule TestTelegramEmpty do
def get_me(key) do
Phoenix.PubSub.broadcast!(Noted.PubSub, "test-telegram:#{key}", :get_me)
{:ok, %{"id" => 101, "username" => "test_bot"}}
end
def get_updates(key, params) do
Phoeni... | 29.976331 | 98 | 0.556455 |
188d71c7a55061cf797c6a0d0a59a8a1e702d9e7 | 23,728 | ex | Elixir | lib/plausible_web/controllers/site_controller.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | lib/plausible_web/controllers/site_controller.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | lib/plausible_web/controllers/site_controller.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule PlausibleWeb.SiteController do
use PlausibleWeb, :controller
use Plausible.Repo
alias Plausible.{Sites, Goals}
plug PlausibleWeb.RequireAccountPlug
plug PlausibleWeb.AuthorizeSiteAccess,
[:owner, :admin, :super_admin] when action not in [:index, :new, :create_site]
def index(conn, params... | 30.342711 | 98 | 0.652352 |
188d88db566222e506764457fff8d2eb8ed179fc | 2,801 | exs | Elixir | test/groupher_server/cms/comments/drink_pending_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | test/groupher_server/cms/comments/drink_pending_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | test/groupher_server/cms/comments/drink_pending_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | null | null | null | defmodule GroupherServer.Test.CMS.Comments.DrinkPending do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.{Accounts, CMS}
alias Accounts.Model.User
alias CMS.Model.Comment
alias Helper.ORM
alias CMS.Constant
@audit_legal Constant.pending(:legal)
@audit_illegal Constant.pending(:... | 30.78022 | 87 | 0.626205 |
188d9724c3d2d1b2b5551d6097f5f244aa37b181 | 60 | exs | Elixir | config/dev.exs | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | null | null | null | import Config
config :ex_cldr, default_backend: MyApp.Cldr
| 15 | 44 | 0.816667 |
188db898ee00b24e08793c4d4681b6c3ed854035 | 543 | ex | Elixir | lib/pummpcomm/history/change_bolus_scroll_step_size.ex | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | lib/pummpcomm/history/change_bolus_scroll_step_size.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | lib/pummpcomm/history/change_bolus_scroll_step_size.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | defmodule Pummpcomm.History.ChangeBolusScrollStepSize do
@moduledoc """
When the bolus scroll step size was changed.
"""
@behaviour Pummpcomm.History.Decoder
# Functions
## Pummpcomm.History.Decoder callbacks
@doc """
`timestamp` when the bolus scroll step size was changed.
"""
@impl Pummpcomm.His... | 30.166667 | 93 | 0.745856 |
188de048ed07d48597920858e990e962ea11a170 | 1,046 | ex | Elixir | lib/epad_web/router.ex | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | 2 | 2020-09-07T19:45:28.000Z | 2021-05-04T05:31:41.000Z | lib/epad_web/router.ex | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | null | null | null | lib/epad_web/router.ex | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | null | null | null | defmodule EpadWeb.Router do
use EpadWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scope "/", EpadWeb do
pipe_through :browser
get "/", PageController, :index
get "... | 28.27027 | 70 | 0.708413 |
188de341fd14480abc1c5ee53be88d6dc517b11c | 1,131 | exs | Elixir | config/config.exs | aselder/sparklinex | 5b6e6cad22ea101302857e0c0920c39416418ce3 | [
"MIT"
] | 2 | 2018-12-26T19:52:00.000Z | 2021-02-09T09:32:50.000Z | config/config.exs | aselder/sparklinex | 5b6e6cad22ea101302857e0c0920c39416418ce3 | [
"MIT"
] | null | null | null | config/config.exs | aselder/sparklinex | 5b6e6cad22ea101302857e0c0920c39416418ce3 | [
"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.483871 | 73 | 0.751547 |
188e486cff6e14c171b1ee9ffe6bada615b65fde | 3,632 | exs | Elixir | test/feed_test.exs | ntilwalli/streamex | 1cc6ba5d1c144fbf8890881e4d79f526facd55fc | [
"MIT"
] | null | null | null | test/feed_test.exs | ntilwalli/streamex | 1cc6ba5d1c144fbf8890881e4d79f526facd55fc | [
"MIT"
] | null | null | null | test/feed_test.exs | ntilwalli/streamex | 1cc6ba5d1c144fbf8890881e4d79f526facd55fc | [
"MIT"
] | 2 | 2020-07-22T05:03:30.000Z | 2020-10-14T17:09:29.000Z | defmodule FeedTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Streamex.{Feed, Follow, ErrorInput, ErrorFeedNotFound}
doctest Streamex
setup_all do
ExVCR.Config.cassette_library_dir("fixture/vcr_cassettes")
end
test "Feed initialization params get validated... | 31.310345 | 81 | 0.653084 |
188e579d15723101a089c7edfa26595f4a0f4c76 | 243 | ex | Elixir | lib/surgex/parser/parsers/required_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | lib/surgex/parser/parsers/required_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | lib/surgex/parser/parsers/required_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.Parser.RequiredParser do
@moduledoc false
@spec call(term()) :: {:ok, term()} | {:error, :required}
def call(nil), do: {:error, :required}
def call([]), do: {:error, :required}
def call(input), do: {:ok, input}
end
| 27 | 59 | 0.62963 |
188e71750250495f74a16c87379be3341bfb22e3 | 5,773 | exs | Elixir | test/yatapp/translator_test.exs | antonioparisi/yatapp-elixir | 5d426dda3ec8b9222a7197951da32d6f90d75d83 | [
"MIT"
] | 2 | 2019-08-23T09:42:30.000Z | 2019-10-29T14:38:36.000Z | test/yatapp/translator_test.exs | antonioparisi/yatapp-elixir | 5d426dda3ec8b9222a7197951da32d6f90d75d83 | [
"MIT"
] | 6 | 2019-03-27T13:30:05.000Z | 2022-01-14T21:12:29.000Z | test/yatapp/translator_test.exs | antonioparisi/yatapp-elixir | 5d426dda3ec8b9222a7197951da32d6f90d75d83 | [
"MIT"
] | 2 | 2019-11-14T13:51:42.000Z | 2022-01-14T09:18:03.000Z | defmodule Yatapp.TranslatorTest do
use ExUnit.Case
setup do
Yatapp.Fixtures.load_translations()
:ok
end
test "t/3 returns proper translation for given path" do
assert Yatapp.Translator.translate("en", "number", %{}) == 1
assert Yatapp.Translator.translate("en", "hello", %{}) == "Hello world"
... | 42.448529 | 96 | 0.664473 |
188e719f25d20cc53a7cda953cdcf680c342ce87 | 1,810 | exs | Elixir | mix.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | mix.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | mix.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | defmodule Rocketpay.MixProject do
use Mix.Project
def project do
[
app: :rocketpay,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),... | 27.424242 | 84 | 0.576243 |
188e8c91b65fc72997ebd21840c30ddd3e406605 | 1,825 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/location_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/location_metadata.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/location_metadata.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... | 35.784314 | 145 | 0.76 |
188e8febe7ee8fc9ca2e9d1269d5a3117d528dad | 144 | exs | Elixir | elixir_cli/test/elixir_cli_test.exs | elcritch/forthwith | aaef523ccd3db74dab323702a588be4fc6446e7e | [
"BSD-3-Clause"
] | 16 | 2018-09-11T01:47:26.000Z | 2020-09-22T10:19:24.000Z | elixir_cli/test/elixir_cli_test.exs | elcritch/forthwith | aaef523ccd3db74dab323702a588be4fc6446e7e | [
"BSD-3-Clause"
] | 3 | 2019-03-03T18:35:24.000Z | 2019-07-14T06:36:10.000Z | elixir_cli/test/elixir_cli_test.exs | elcritch/forthwith | aaef523ccd3db74dab323702a588be4fc6446e7e | [
"BSD-3-Clause"
] | 2 | 2019-07-13T08:38:36.000Z | 2021-06-30T19:01:10.000Z | defmodule ElixirCliTest do
use ExUnit.Case
doctest ElixirCli
test "greets the world" do
assert ElixirCli.hello() == :world
end
end
| 16 | 38 | 0.722222 |
188eaa058d3fdbbaa91e1e4a5d351b5c99084eee | 2,593 | ex | Elixir | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/model/check_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/model/check_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/model/check_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.57971 | 133 | 0.715002 |
188ec3e21a341395bac249fd62dd004a7418f683 | 989 | exs | Elixir | test/superior_test.exs | MarPenc/Superior | 3049dcafb818c3273014ae941481757ce9530507 | [
"MIT"
] | null | null | null | test/superior_test.exs | MarPenc/Superior | 3049dcafb818c3273014ae941481757ce9530507 | [
"MIT"
] | null | null | null | test/superior_test.exs | MarPenc/Superior | 3049dcafb818c3273014ae941481757ce9530507 | [
"MIT"
] | null | null | null | defmodule SuperiorTest do
use ExUnit.Case
doctest Superior
def test_deck do
["Two of Clubs", "Three of Diamonds"]
end
test "provides a deck of 52 cards" do
assert length(Superior.new_deck) == 52
end
test "the deck contains the Ace of Spades card" do
assert Enum.member?(Superior.new_deck, "A... | 25.358974 | 69 | 0.678463 |
188ec77d6a6c6eda3e3b50e6cfa52ebc89d6e172 | 1,830 | ex | Elixir | backend/lib/caffe_web/schema/menu_types.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | 7 | 2020-03-27T08:26:52.000Z | 2021-08-29T09:50:31.000Z | backend/lib/caffe_web/schema/menu_types.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | backend/lib/caffe_web/schema/menu_types.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | defmodule CaffeWeb.Schema.MenuTypes do
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers, only: [dataloader: 1]
alias Caffe.Menu
alias CaffeWeb.Resolvers
object :menu_item do
field :id, :id
field :name, :string
field :description, :string
field :price, :decimal
field :is_dri... | 25.416667 | 69 | 0.66612 |
188ec9e51e78be122b29b23a54e4324f8529e91c | 3,691 | ex | Elixir | lib/infusionsoft/endpoints/xml/affiliates.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | null | null | null | lib/infusionsoft/endpoints/xml/affiliates.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | 2 | 2019-01-30T20:57:48.000Z | 2019-03-25T17:29:16.000Z | lib/infusionsoft/endpoints/xml/affiliates.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | null | null | null | defmodule Infusionsoft.Endpoints.XML.Affiliate do
@moduledoc """
Provides the raw endpoints to Infusionsoft's XML API for Affiliate.
"""
alias Infusionsoft.Endpoints.XML.Helpers
@doc "https://developer.infusionsoft.com/docs/xml-rpc/#affiliate-retrieve-clawbacks"
@spec retrieve_clawbacks(integer(), %Date{}... | 51.985915 | 110 | 0.720401 |
188ed8ca7ffe542283952590c719d93eb84053dc | 277 | ex | Elixir | apps/speedrun_blogengine_web/lib/speedrun_blogengine_web/router.ex | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | null | null | null | apps/speedrun_blogengine_web/lib/speedrun_blogengine_web/router.ex | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:14:50.000Z | 2021-09-18T01:14:50.000Z | apps/speedrun_blogengine_web/lib/speedrun_blogengine_web/router.ex | jhonndabi/speedrun_blogengine-1 | 047ce8b913b170f9f329fd86c0bf643953e0a761 | [
"Apache-2.0"
] | null | null | null | defmodule SpeedrunBlogengineWeb.Router do
use SpeedrunBlogengineWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", SpeedrunBlogengineWeb do
pipe_through :api
# Criar um author
post "/authors", AuthorController, :create
end
end
| 18.466667 | 46 | 0.711191 |
188eeab163e3aaf347bd8856b3f24c833711667e | 2,897 | ex | Elixir | lib/mix/tasks/update_customer_io.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | 1 | 2021-01-18T09:57:23.000Z | 2021-01-18T09:57:23.000Z | lib/mix/tasks/update_customer_io.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | null | null | null | lib/mix/tasks/update_customer_io.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.UpdateCustomerIo do
use Mix.Task
require Logger
import Ecto.Query, warn: false
alias ChatApi.Repo
@shortdoc "Updates user data in customer.io"
@moduledoc """
This task syncs latest user data with customer.io
"""
def run(_args) do
Application.ensure_all_started(:chat_api)
... | 27.330189 | 91 | 0.649983 |
188f02c792b3754abb0b6a95e185d9a41b80b8a4 | 1,507 | ex | Elixir | Chapter7/persistable_todo_cache/lib/todo/database.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter7/persistable_todo_cache/lib/todo/database.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | Chapter7/persistable_todo_cache/lib/todo/database.ex | benjamindburke/elixir-studies | 65231b5af83dcf701041cae2879107c3bd3e5078 | [
"Unlicense"
] | null | null | null | defmodule Todo.Database do
use GenServer
@db_folder "./persist"
def start do
# registering the process locally will force the process to only run once
# this is very useful if one module needs to orchestrate other processes
# or manage some shared state between process
# thus, locally registered... | 25.982759 | 100 | 0.677505 |
188f87b57f95c8a2a020f6a32120dae07934210a | 1,413 | ex | Elixir | lib/ex_oauth2_provider/oauth2/token/strategy/client_credentials.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | 2 | 2021-04-25T20:59:53.000Z | 2021-07-13T22:49:20.000Z | lib/ex_oauth2_provider/oauth2/token/strategy/client_credentials.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/token/strategy/client_credentials.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Token.ClientCredentials do
@moduledoc """
Functions for dealing with client credentials strategy.
"""
alias ExOauth2Provider.Utils.Error
alias ExOauth2Provider.Token.Utils
alias ExOauth2Provider.Token.Utils.Response
@doc """
Will grant access token by client credentials.
#... | 31.4 | 83 | 0.676575 |
188f96691f512e10482ac2a59464c878d5a6b302 | 1,370 | ex | Elixir | backend/test/support/conn_case.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/test/support/conn_case.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/test/support/conn_case.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule AptamerWeb.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 ... | 24.909091 | 73 | 0.675182 |
188fa0467cf288d881db9dec5a7ca1d5bfaff76b | 7,935 | ex | Elixir | lib/gen_socket_client/test_socket.ex | alboratech/phoenix_gen_socket_client | 6d8176bb8d163b8047a41afb75f9b3d984753a4c | [
"MIT"
] | null | null | null | lib/gen_socket_client/test_socket.ex | alboratech/phoenix_gen_socket_client | 6d8176bb8d163b8047a41afb75f9b3d984753a4c | [
"MIT"
] | null | null | null | lib/gen_socket_client/test_socket.ex | alboratech/phoenix_gen_socket_client | 6d8176bb8d163b8047a41afb75f9b3d984753a4c | [
"MIT"
] | null | null | null | defmodule Phoenix.Channels.GenSocketClient.TestSocket do
@moduledoc """
A simple synchronous Phoenix Channels client.
This module can be used in your project for testing your own functionality. The
module implements the `Phoenix.Channels.GenSocketClient` behaviour to provide
a controllable API for channel cl... | 30.875486 | 92 | 0.603529 |
189014e7896666b2b63b110ef061b762931a0b99 | 462 | ex | Elixir | test/support/rbac/resources/organization.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | null | null | null | test/support/rbac/resources/organization.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | 1 | 2020-06-05T01:06:15.000Z | 2020-06-05T01:06:15.000Z | test/support/rbac/resources/organization.ex | ash-project/ash_policy_access | a954bf12e3a65c9ea0b0eb888162064cae786cbd | [
"MIT"
] | null | null | null | defmodule AshPolicyAuthorizer.Test.Rbac.Organization do
@moduledoc false
use Ash.Resource,
data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
actions do
create(:create)
read(:read)
update(:update)
destroy(:destroy)
end
attributes do
uuid_primary_key(:id)
end
relati... | 17.111111 | 70 | 0.707792 |
189035c0399c7a8e11306fb1af20c2fa51a6ec6c | 1,511 | ex | Elixir | web/lib/infolab_light_games_web/router.ex | simmsb/infolab-lights | 1cd685029c50cde0de84176efd65fb0cabc6c820 | [
"MIT"
] | null | null | null | web/lib/infolab_light_games_web/router.ex | simmsb/infolab-lights | 1cd685029c50cde0de84176efd65fb0cabc6c820 | [
"MIT"
] | 47 | 2020-08-03T09:30:46.000Z | 2021-03-01T08:18:51.000Z | web/lib/infolab_light_games_web/router.ex | nitros12/something-secret | 1cd685029c50cde0de84176efd65fb0cabc6c820 | [
"MIT"
] | null | null | null | defmodule InfolabLightGamesWeb.Router do
use InfolabLightGamesWeb, :router
import Phoenix.LiveDashboard.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {InfolabLightGamesWeb.LayoutView, :root}
plug :protect_from_forgery
... | 25.183333 | 89 | 0.696889 |
18904eb7804b61b1fce3dc044b85045c5fe46a45 | 1,315 | ex | Elixir | lib/squadster/formations/services/notify_squad_changes.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | lib/squadster/formations/services/notify_squad_changes.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | lib/squadster/formations/services/notify_squad_changes.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Formations.Services.NotifySquadChanges do
import SquadsterWeb.Gettext
import Mockery.Macro
def call(changes, squad, %{id: user_id}) do
if changes[:class_day] || changes[:advertisment] || changes[:squad_number] do
mockable(Squadster.Accounts.Tasks.Notify).start_link([
message... | 26.836735 | 115 | 0.64943 |
1890541b302f4c8d21f82de49c9febc9cdc5255d | 1,878 | exs | Elixir | apps/artemis/priv/repo/migrations/20200517133648_create_event_integrations_search.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/priv/repo/migrations/20200517133648_create_event_integrations_search.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/priv/repo/migrations/20200517133648_create_event_integrations_search.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.Repo.Migrations.CreateEventIntegrationsSearch do
use Ecto.Migration
def up do
# 1. Create Search Data Column
#
# Define a column to store full text search data
#
alter table(:event_integrations) do
add :tsv_search, :tsvector
end
# 2. Create Search Data Index
... | 26.828571 | 107 | 0.63951 |
1890b6cc8f88ea35257780b3b50d1ff1bf44c443 | 1,074 | exs | Elixir | mix.exs | eahanson/exboard | ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db | [
"MIT"
] | null | null | null | mix.exs | eahanson/exboard | ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db | [
"MIT"
] | 2 | 2021-03-09T18:32:46.000Z | 2021-05-10T15:18:35.000Z | mix.exs | eahanson/exboard | ff2da4d6afd2a01d0e0b54f04198b2e4ffbb48db | [
"MIT"
] | null | null | null | defmodule Exboard.MixProject do
use Mix.Project
def project do
[
app: :exboard,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
en... | 23.866667 | 57 | 0.57635 |
1890de0c4bf3151a46cf6769e1b5c9b51ce88f8f | 1,643 | exs | Elixir | mix.exs | hpaul/rox | 0cf6fd016dcf8b6579b314cef6e9a344202eecb9 | [
"MIT"
] | null | null | null | mix.exs | hpaul/rox | 0cf6fd016dcf8b6579b314cef6e9a344202eecb9 | [
"MIT"
] | null | null | null | mix.exs | hpaul/rox | 0cf6fd016dcf8b6579b314cef6e9a344202eecb9 | [
"MIT"
] | 2 | 2018-10-30T18:21:58.000Z | 2022-03-19T10:39:37.000Z | defmodule Rox.Mixfile do
use Mix.Project
def project do
[app: :rox,
version: "2.2.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
package: package(),
de... | 24.522388 | 118 | 0.564212 |
1890e248ed61e272ebf3861c17e2f216621f5e5b | 144 | exs | Elixir | elixir/test/tic_tac_toe_test.exs | techacolyte42/tictactoe | 688a630ddcfacc2710ac0924fe0cf306388e21e0 | [
"MIT"
] | null | null | null | elixir/test/tic_tac_toe_test.exs | techacolyte42/tictactoe | 688a630ddcfacc2710ac0924fe0cf306388e21e0 | [
"MIT"
] | null | null | null | elixir/test/tic_tac_toe_test.exs | techacolyte42/tictactoe | 688a630ddcfacc2710ac0924fe0cf306388e21e0 | [
"MIT"
] | null | null | null | defmodule TicTacToeTest do
use ExUnit.Case
doctest TicTacToe
test "greets the world" do
assert TicTacToe.hello() == :world
end
end
| 16 | 38 | 0.722222 |
1890e26c4d383f256f1dc13ce2bbc0d8115d68e4 | 1,470 | ex | Elixir | lib/traktor/action.ex | qixxit/traktor | 9d7f332570768d3d1e4339c2a3e2c71bc92c12e5 | [
"BSD-2-Clause"
] | 8 | 2018-12-27T08:02:49.000Z | 2020-06-25T01:57:15.000Z | lib/traktor/action.ex | qixxit/traktor | 9d7f332570768d3d1e4339c2a3e2c71bc92c12e5 | [
"BSD-2-Clause"
] | null | null | null | lib/traktor/action.ex | qixxit/traktor | 9d7f332570768d3d1e4339c2a3e2c71bc92c12e5 | [
"BSD-2-Clause"
] | 1 | 2019-01-09T18:06:23.000Z | 2019-01-09T18:06:23.000Z | defmodule Traktor.Action do
@moduledoc """
The action specification.
An action defines the business logic that is executed in a two-phase-commit approch. A module providing the busness logic must export the following two functions:
- `prepare/2` function that prepares the execution of the businses logic;... | 33.409091 | 166 | 0.655782 |
1890f4222b5470edd91791929a4ac8af6ac41a16 | 1,626 | ex | Elixir | test_support/mock_setup/crypto.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 16 | 2019-07-25T16:05:20.000Z | 2022-02-09T06:24:55.000Z | test_support/mock_setup/crypto.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 53 | 2020-04-21T16:35:49.000Z | 2022-03-28T13:04:07.000Z | test_support/mock_setup/crypto.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 10 | 2020-04-21T12:19:47.000Z | 2021-11-19T12:00:06.000Z | defmodule GcsSignedUrl.MockSetup.Crypto do
import Mox
@type opts :: [
error: atom,
]
@doc """
Use this function to setup the HTTP Mock in order to call sign/2.
## Options
`:error` - Pass the error option if you want to simulate the API call to return an error.
* `... | 25.015385 | 134 | 0.555966 |
1890f7d8789206d491b7338dbde9c1c42c654ad6 | 712 | ex | Elixir | apps/rappel_web/lib/rappel_web/gettext.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | 2 | 2021-08-09T14:37:42.000Z | 2021-11-18T14:54:39.000Z | apps/rappel_web/lib/rappel_web/gettext.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | 4 | 2020-05-13T14:04:55.000Z | 2021-07-18T17:03:50.000Z | apps/rappel_web/lib/rappel_web/gettext.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | null | null | null | defmodule RappelWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import RappelWeb.Gettext
# Simple translation
gettext("Here is the... | 28.48 | 72 | 0.678371 |
1890f89cb9036f1cf421421053e14108c9db6ae1 | 1,226 | ex | Elixir | lib/excat.ex | caius/excat | 0373142ac1b24d7d5779b090cfafcc649c41ea8c | [
"MIT",
"Unlicense"
] | null | null | null | lib/excat.ex | caius/excat | 0373142ac1b24d7d5779b090cfafcc649c41ea8c | [
"MIT",
"Unlicense"
] | null | null | null | lib/excat.ex | caius/excat | 0373142ac1b24d7d5779b090cfafcc649c41ea8c | [
"MIT",
"Unlicense"
] | null | null | null | defmodule Excat do
# No arguments means we read stdin
def main([]) do
{:ok, ["-"]} |> process_arguments
end
# Process arguments in turn
def main(args) do
{:ok, args} |> process_arguments
end
# Process the next argument
def process_arguments({state, [path | remaining]}) do
case copy_file(pa... | 23.576923 | 62 | 0.6354 |
1890fd50915dddb40605438c89a1babe89a7424f | 281 | ex | Elixir | lib/mix/tasks/create_thread.ex | did-app/project-calm | bc2d4618497622783ea47629fc146195ff261522 | [
"Apache-2.0"
] | 3 | 2020-04-20T17:02:29.000Z | 2020-04-26T13:49:31.000Z | lib/mix/tasks/create_thread.ex | did-app/project-calm | bc2d4618497622783ea47629fc146195ff261522 | [
"Apache-2.0"
] | 2 | 2020-04-20T10:31:55.000Z | 2021-05-11T10:52:52.000Z | lib/mix/tasks/create_thread.ex | did-app/project-calm | bc2d4618497622783ea47629fc146195ff261522 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.CreateThread do
use Mix.Task
require Logger
def run(args) do
Application.ensure_all_started(:calm)
[subject] = args
{:ok, thread} = Calm.Thread.create(%{"subject" => subject})
Logger.info("Thread created with id: #{thread.id}")
end
end
| 23.416667 | 63 | 0.679715 |
1891147fc769911ddb1220a584cd8cd1ded73869 | 1,918 | ex | Elixir | apps/ex_cucumber/lib/mix/tasks/cucumber.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-05-18T18:20:05.000Z | 2022-02-13T00:15:06.000Z | apps/ex_cucumber/lib/mix/tasks/cucumber.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-04-22T00:28:17.000Z | 2021-05-19T21:04:20.000Z | apps/ex_cucumber/lib/mix/tasks/cucumber.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 4 | 2021-04-14T03:07:45.000Z | 2021-12-12T21:23:59.000Z | defmodule Mix.Tasks.Cucumber do
@moduledoc """
Mix Task that runs cucumber framework against your feature files.
"""
use Mix.Task
alias ExCucumber.Report
alias ExCucumber.Exceptions.Messages
alias ExCucumber.Exceptions.{
ConfigurationError,
MatchFailure,
StepError,
UsageError
}
@cucu... | 24.589744 | 98 | 0.626173 |
1891271f16efb3b779192fe1ad205181f145d8fc | 387 | ex | Elixir | lib/hologram/compiler/call_graph_builder/not_equal_to_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/call_graph_builder/not_equal_to_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/call_graph_builder/not_equal_to_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | # TODO: test
alias Hologram.Compiler.CallGraphBuilder
alias Hologram.Compiler.IR.NotEqualToOperator
defimpl CallGraphBuilder, for: NotEqualToOperator do
def build(%{left: left, right: right}, module_defs, templates, from_vertex) do
CallGraphBuilder.build(left, module_defs, templates, from_vertex)
CallGraphB... | 32.25 | 80 | 0.801034 |
189128ab0570b9797a75604ace5ba5d5ee2cc1d6 | 2,846 | exs | Elixir | mix.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 3 | 2021-11-23T23:07:34.000Z | 2021-11-24T01:40:01.000Z | mix.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | null | null | null | mix.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 1 | 2021-07-19T11:48:30.000Z | 2021-07-19T11:48:30.000Z | defmodule Shikoba.MixProject do
use Mix.Project
def project do
[
app: :shikoba,
version: "0.1.0",
elixir: "~> 1.10",
elixirc_options: [warnings_as_errors: System.get_env("WARNINGS_AS_ERRORS") == "true"],
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext... | 26.110092 | 92 | 0.494027 |
189156351472c31235c52343fd3b0f619f486232 | 4,183 | ex | Elixir | lib/step_flow/controllers/workflow_events_controller.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | lib/step_flow/controllers/workflow_events_controller.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | lib/step_flow/controllers/workflow_events_controller.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.WorkflowEventsController do
use StepFlow, :controller
require Logger
import StepFlow.Controller.Helpers
alias StepFlow.{
Amqp.CommonEmitter,
Jobs,
Notifications.Notification,
Step.Helpers,
Step.Launch,
Workflows
}
action_fallback(StepFlow.FallbackController)
... | 28.848276 | 92 | 0.622759 |
18916b729bd7f25bf39aa8b1f5b6cb81a604d740 | 728 | ex | Elixir | lib/ewebmachine/plug.error_as_exception.ex | awetzel/ewebmachine | 64b7ed15aa10bee8b012c46383259c24a46a5309 | [
"MIT"
] | 66 | 2015-01-22T06:40:13.000Z | 2017-04-19T09:16:32.000Z | lib/ewebmachine/plug.error_as_exception.ex | awetzel/ewebmachine | 64b7ed15aa10bee8b012c46383259c24a46a5309 | [
"MIT"
] | 19 | 2015-01-22T12:12:46.000Z | 2017-02-09T10:47:38.000Z | lib/ewebmachine/plug.error_as_exception.ex | awetzel/ewebmachine | 64b7ed15aa10bee8b012c46383259c24a46a5309 | [
"MIT"
] | 10 | 2015-01-25T11:27:34.000Z | 2016-10-03T12:56:11.000Z | defmodule Ewebmachine.Plug.ErrorAsException do
@moduledoc """
This plug checks the current response status. If it is an error, raise a plug
exception with the status code and the HTTP error name as the message. If
this response body is not void, use it as the exception message.
"""
defexception [:plug_statu... | 45.5 | 91 | 0.718407 |
18917b2c1358fa2fedea9b54384dc68b253d4ddb | 3,045 | exs | Elixir | test/mix/tasks/gen_components_test.exs | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | 2 | 2022-03-28T21:33:39.000Z | 2022-03-30T17:14:34.000Z | test/mix/tasks/gen_components_test.exs | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | test/mix/tasks/gen_components_test.exs | inspired-consulting/gen_components | 47c567fb2d6e918341e2efa07c2f7345038a8a90 | [
"MIT"
] | null | null | null | Code.require_file("../../mix_helper.exs", __DIR__)
defmodule Mix.Tasks.Gen.ComponentsTest do
use ExUnit.Case
import MixHelper
alias Mix.Tasks.Gen
setup do
Mix.Task.clear()
:ok
end
test "generates components and the catalogue" do
in_tmp_project(:test_project, fn _proj ->
Gen.Components.r... | 33.461538 | 87 | 0.642365 |
1891acc842a30c8a611ac9dbfff6b70c944e7ca8 | 2,395 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/bid_response_without_bids_status_row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/bid_response_without_bids_status_row.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/bid_response_without_bids_status_row.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... | 43.545455 | 197 | 0.761169 |
1891ba405985f69e0a1974dc4703011eca043a08 | 502 | ex | Elixir | lib/mantis/application.ex | spawnfest/mantis | a576e1ab2c8bd53dfef781f52e5d5d9ce556aa9b | [
"MIT"
] | 2 | 2021-09-20T11:32:06.000Z | 2021-09-21T00:00:08.000Z | lib/mantis/application.ex | spawnfest/mantis | a576e1ab2c8bd53dfef781f52e5d5d9ce556aa9b | [
"MIT"
] | 6 | 2021-11-23T03:50:49.000Z | 2022-01-11T12:43:09.000Z | lib/mantis/application.ex | spawnfest/mantis | a576e1ab2c8bd53dfef781f52e5d5d9ce556aa9b | [
"MIT"
] | null | null | null | defmodule Mantis.Application do
@moduledoc false
use Application
def start(_type, _args) do
node_id = gen_node_id()
children = [
{HLClock, name: Mantis.Clock, node_id: node_id},
{Mantis.ClockSync, [sync_interval: 3_000, clock: Mantis.Clock]},
]
opts = [strategy: :one_for_one, name:... | 20.916667 | 70 | 0.675299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.