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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0850e517ef0fe4e073d5d2b78f5d5410b3de6e17 | 24,711 | exs | Elixir | lib/ex_unit/test/ex_unit/assertions_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/ex_unit/test/ex_unit/assertions_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/ex_unit/test/ex_unit/assertions_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule ExUnit.AssertionsTest.Value do
def tuple, do: {2, 1}
def falsy, do: nil
def truthy, do: :truthy
def binary, do: <<5, "Frank the Walrus">>
end
defmodule ExUnit.AssertionsTest.BrokenError do
defexception [:message]
@impl true
def message(_) do
... | 27.365449 | 123 | 0.623123 |
085119e6ed7bae2424eecd651cbfa4f644acb63f | 4,736 | ex | Elixir | lib/machinery/transition.ex | joaomdmoura/machinery | f434c90e952cbefd7ec657ec1255d941fe57dc76 | [
"Apache-2.0"
] | 433 | 2017-10-12T17:59:33.000Z | 2022-03-29T17:32:54.000Z | lib/machinery/transition.ex | joaomdmoura/machinery | f434c90e952cbefd7ec657ec1255d941fe57dc76 | [
"Apache-2.0"
] | 74 | 2017-12-11T04:42:39.000Z | 2022-01-24T05:44:43.000Z | lib/machinery/transition.ex | joaomdmoura/machinery | f434c90e952cbefd7ec657ec1255d941fe57dc76 | [
"Apache-2.0"
] | 46 | 2017-12-04T12:54:00.000Z | 2022-03-28T10:13:56.000Z | defmodule Machinery.Transition do
@moduledoc """
Machinery module responsible for control transitions,
guard functions and callbacks (before and after).
This is meant to be for internal use only.
"""
@doc """
Function responsible for checking if the transition from a state to another
was specifically d... | 30.165605 | 91 | 0.693623 |
085126ce5f7bee3be45cf34cbd3b65d6d07a5377 | 356 | ex | Elixir | lib/phat/accounts.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 50 | 2019-05-23T11:59:30.000Z | 2022-03-11T04:12:36.000Z | lib/phat/accounts.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 6 | 2019-05-18T09:53:46.000Z | 2021-01-27T11:26:15.000Z | lib/phat/accounts.ex | tajchumber/live-view-chat | d98d445b145a197eadc4381e264f3d1918f0b90f | [
"Apache-2.0"
] | 18 | 2019-05-18T08:13:51.000Z | 2021-11-23T13:57:33.000Z | defmodule Phat.Accounts do
alias Phat.Repo
alias Phat.Accounts.User
def change_user(changeset) do
User.changeset(changeset)
end
def list_users do
Repo.all(User)
end
def create_user(user_params) do
User.changeset(%User{}, user_params)
|> Repo.insert()
end
def get_user(user_id) do
... | 16.181818 | 40 | 0.696629 |
08512fa1842206c3f2cbe1a354db923fb5655c13 | 2,146 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/update_private_auction_proposal_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/update_private_auction_proposal_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/update_private_auction_proposal_request.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... | 36.372881 | 118 | 0.749767 |
08514568b9f25b7a66013a7a10422e46c4fafd32 | 1,947 | exs | Elixir | config/dev.exs | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | null | null | null | config/dev.exs | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | 1 | 2018-05-31T02:43:11.000Z | 2018-05-31T02:43:11.000Z | config/dev.exs | first-tree/yggdrasil | dfe1417822a04c8d8da24912d0b4a8271c24e7c9 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :yggdrasil, YggdrasilWeb.Endpoint,
http: [port... | 33 | 170 | 0.705701 |
08516c04049b5b2ed8a3f0b1e5bfd185212c8e3e | 948 | exs | Elixir | elixir-lang__org__getting-started/alias_require_import.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-lang__org__getting-started/alias_require_import.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-lang__org__getting-started/alias_require_import.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | require Jim
Jim.i alias Jim, as: J
J.i 123
import Jim
i :asdf
defmodule Stats do
alias Math.List, as: List
end
defmodule Math do
def plus(a, b) do
alias Math.List
end
def minus(a, b) do
end
end
require Integer
i Integer.is_odd(3)
import List, only: [duplicate: 2]
i duplicate :ok, 3
i ExUnit.sta... | 13.352113 | 36 | 0.684599 |
08517afa6462a607a99ebd2cc0636cb60e2539e4 | 7,198 | ex | Elixir | lib/algae.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 191 | 2016-08-22T17:34:45.000Z | 2019-05-28T19:02:39.000Z | lib/algae.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 35 | 2016-08-30T20:56:22.000Z | 2019-05-02T17:32:31.000Z | lib/algae.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 10 | 2016-08-30T18:41:54.000Z | 2019-02-14T14:14:55.000Z | defmodule Algae do
@moduledoc """
Builder DSL to handle common ADT definition use cases
"""
import Algae.Internal
@type ast() :: {atom(), any(), any()}
@doc ~S"""
Build a product type
Includes:
* Struct
* Type definition
* Constructor function (for piping and defaults)
* Implicit defaults f... | 22.49375 | 79 | 0.522506 |
085195cd1f64656534b0d7323491faef76a8c090 | 3,575 | ex | Elixir | lib/akd/destination.ex | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | lib/akd/destination.ex | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | lib/akd/destination.ex | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | null | null | null | defmodule Akd.Destination do
@moduledoc """
This module represents a `Destination` struct which contains metadata about
a destination/location/host.
The meta data involves:
* `user` - Represents the user who will be accessing a host/server.
Expects a string, defaults to `:current`.
* `host` - R... | 31.359649 | 83 | 0.658741 |
0851a3d86d2ebc495f488cdab0a3ce0b26986d4a | 807 | ex | Elixir | lib/openflow/multipart/port_stats/request.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/multipart/port_stats/request.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/multipart/port_stats/request.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.Multipart.Port.Request do
defstruct(
version: 4,
xid: 0,
# virtual field
datapath_id: nil,
flags: [],
port_number: :any
)
alias __MODULE__
def ofp_type, do: 18
def new(options \\ []) do
%Request{
xid: options[:xid] || 0,
port_number: options[:port_... | 23.735294 | 71 | 0.654275 |
0851aad1c90518d9e634766c28b3d0269a3f1d51 | 67 | ex | Elixir | lib/miles_to_go_web/views/layout_view.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | 6 | 2020-12-18T08:36:32.000Z | 2021-06-13T03:02:16.000Z | lib/miles_to_go_web/views/layout_view.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | lib/miles_to_go_web/views/layout_view.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | defmodule MilesToGoWeb.LayoutView do
use MilesToGoWeb, :view
end
| 16.75 | 36 | 0.820896 |
0851ca3b3bf78b1bae464ba6ef4d2c6594b62837 | 153 | exs | Elixir | test/shutdown_flag_test.exs | cogini/shutdown_flag | 1045223cc764ff5b0efc2b7b89445299ddc4ef90 | [
"Apache-2.0"
] | 5 | 2018-05-20T01:49:48.000Z | 2020-01-13T23:22:09.000Z | test/shutdown_flag_test.exs | cogini/shutdown_flag | 1045223cc764ff5b0efc2b7b89445299ddc4ef90 | [
"Apache-2.0"
] | null | null | null | test/shutdown_flag_test.exs | cogini/shutdown_flag | 1045223cc764ff5b0efc2b7b89445299ddc4ef90 | [
"Apache-2.0"
] | null | null | null | defmodule ShutdownFlagTest do
use ExUnit.Case
doctest ShutdownFlag
test "greets the world" do
assert ShutdownFlag.hello() == :world
end
end
| 17 | 41 | 0.738562 |
0851d98e2d564f51440642d0c16f8ad7dfa341c9 | 675 | ex | Elixir | lib/mix/tasks/test_integration.ex | SmartColumbusOS/divo | 9fccc400dcc64142698061b3da2a67e7828829e3 | [
"Apache-2.0"
] | 21 | 2019-05-07T14:08:31.000Z | 2020-08-05T02:04:07.000Z | lib/mix/tasks/test_integration.ex | UrbanOS-Public/divo | 9fccc400dcc64142698061b3da2a67e7828829e3 | [
"Apache-2.0"
] | 11 | 2019-05-08T18:08:09.000Z | 2020-05-19T17:26:55.000Z | lib/mix/tasks/test_integration.ex | UrbanOS-Public/divo | 9fccc400dcc64142698061b3da2a67e7828829e3 | [
"Apache-2.0"
] | 6 | 2019-05-07T19:26:55.000Z | 2020-01-28T17:11:09.000Z | defmodule Mix.Tasks.Test.Integration do
@moduledoc """
Runs integration tests.
This task will only work if your project has been
configured according to the configuration steps provided in `Divo`.
"""
use Mix.Task
require Logger
@impl Mix.Task
def run(args) do
env = :integration
{_, res} =
... | 20.454545 | 69 | 0.592593 |
0851de8def284220bd7d2effffbf09c2d4a68918 | 2,394 | ex | Elixir | lib/cadet/jobs/autograder/result_store_worker.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | lib/cadet/jobs/autograder/result_store_worker.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | lib/cadet/jobs/autograder/result_store_worker.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule Cadet.Autograder.ResultStoreWorker do
# Suppress no_match from macro
@dialyzer {:no_match, __after_compile__: 2}
@moduledoc """
This module writes results from the autograder to db. Separate worker is created with lower
concurrency on the assumption that autograding time >> db IO time so as to reduc... | 27.517241 | 98 | 0.635338 |
0851df68f978d7fef4854fa720de219604e33dca | 16,664 | ex | Elixir | lib/fake_server.ex | fcapovilla/fake_server | 68ee414ed421127f5aaca19c104b7ba01c12d716 | [
"Apache-2.0"
] | null | null | null | lib/fake_server.ex | fcapovilla/fake_server | 68ee414ed421127f5aaca19c104b7ba01c12d716 | [
"Apache-2.0"
] | null | null | null | lib/fake_server.ex | fcapovilla/fake_server | 68ee414ed421127f5aaca19c104b7ba01c12d716 | [
"Apache-2.0"
] | null | null | null | defmodule FakeServer do
@moduledoc """
Manage HTTP servers on your tests
"""
@doc """
Starts an HTTP server.
Returns the tuple `{:ok, pid}` if the server started and `{:error, reason}` if any error happens.
## Parameters:
- `name`: An identifier to the server. It must be an atom.
- `port` (optional... | 31.560606 | 317 | 0.676248 |
0852243421b684ea470caeaf5c0c1dcb6c677201 | 7,252 | ex | Elixir | lib/floki/html_tree.ex | danhuynhdev/floki | 6700c14f842765eb5d1661af18fd686e87d1ddd7 | [
"MIT"
] | null | null | null | lib/floki/html_tree.ex | danhuynhdev/floki | 6700c14f842765eb5d1661af18fd686e87d1ddd7 | [
"MIT"
] | null | null | null | lib/floki/html_tree.ex | danhuynhdev/floki | 6700c14f842765eb5d1661af18fd686e87d1ddd7 | [
"MIT"
] | null | null | null | defmodule Floki.HTMLTree do
@moduledoc false
# Builds a `Map` representing a HTML tree based on tuples or list of tuples.
#
# It is useful because keeps references for each node, and the possibility to
# update the tree.
defstruct nodes: %{}, root_nodes_ids: [], node_ids: []
alias Floki.HTMLTree
alia... | 27.366038 | 98 | 0.622173 |
08522757a9ad3c7f38d8ae541e070a98365fc9bd | 477 | ex | Elixir | lib/tds/versions.ex | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | lib/tds/versions.ex | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | lib/tds/versions.ex | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | 1 | 2021-09-07T15:25:40.000Z | 2021-09-07T15:25:40.000Z | defmodule Tds.Version do
import Tds.Protocol.Grammar
defstruct version: 0x74000004, str_version: "7.4"
@versions [
{0x71000001, "7.1"},
{0x72090002, "7.2"},
{0x730A0003, "7.3.A"},
{0x730B0003, "7.3.B"},
{0x74000004, "7.4"}
]
def decode(<<key::little-dword>>) do
@versions
|> List... | 17.666667 | 51 | 0.580713 |
0852290b936e3704bbd15e5610ca556c1846e618 | 1,448 | ex | Elixir | test/support/data_case.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 64 | 2020-02-10T20:42:46.000Z | 2021-11-16T10:47:50.000Z | test/support/data_case.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 16 | 2020-02-10T20:45:57.000Z | 2022-03-04T12:53:34.000Z | test/support/data_case.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 4 | 2020-04-03T17:13:19.000Z | 2020-07-17T12:56:31.000Z | defmodule MailgunLogger.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, ever... | 26.327273 | 77 | 0.687845 |
08524058427251f68305a21b7e1e842ffbf3ab14 | 731 | exs | Elixir | test/jaya_currency_converter/core/exchange_test.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | test/jaya_currency_converter/core/exchange_test.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | test/jaya_currency_converter/core/exchange_test.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | defmodule JayaCurrencyConverter.ExchangeTest do
use JayaCurrencyConverter.DataCase
alias JayaCurrencyConverter.Core.Exchange
describe "exchange" do
test "fetch_rates_from_currency/1 return value of a currency when currency is valid" do
rates_brl =
"BRL"
|> Exchange.fetch_rates_from_cur... | 30.458333 | 91 | 0.729138 |
085287a0fa8132a28fb40ad157f0ddfabd058ecb | 1,085 | ex | Elixir | example/lib/calculator/generated/vector_product_type.ex | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | 1 | 2020-06-11T03:52:25.000Z | 2020-06-11T03:52:25.000Z | example/lib/calculator/generated/vector_product_type.ex | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | 77 | 2018-08-29T00:36:42.000Z | 2021-08-02T13:14:35.000Z | example/lib/calculator/generated/vector_product_type.ex | thecodeboss/elixir-thrift | 621a2039bcbcec62d1cedc85b01421813e0910e8 | [
"Apache-2.0"
] | 1 | 2021-02-04T15:58:30.000Z | 2021-02-04T15:58:30.000Z | defmodule(Calculator.Generated.VectorProductType) do
@moduledoc false
defmacro(unquote(:dot_product)()) do
1
end
defmacro(unquote(:cross_product)()) do
2
end
def(value_to_name(1)) do
{:ok, :dot_product}
end
def(value_to_name(2)) do
{:ok, :cross_product}
end
def(value_to_name(v)) ... | 14.090909 | 52 | 0.613825 |
0852b56212b5f6040324b9b73e49302fc4967ae9 | 7,926 | exs | Elixir | test/erflow/model_test.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | test/erflow/model_test.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | test/erflow/model_test.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | # defmodule Erflow.ModelTest do
# use Erflow.DataCase
# alias Erflow.Modle
# describe "dags" do
# alias Erflow.Model.Dag
# @valid_attrs %{dag_id: "some dag_id", enabled: "some enabled", end_time: "some end_time", scheduled_time: "some scheduled_time", start_time: "some start_time", status: "some status... | 39.044335 | 264 | 0.648877 |
0852f63fa517a543b716a0b8a9b7ed2e5569e770 | 52 | ex | Elixir | lib/dig/good.ex | codedge-llc/dig | cdbe21dcb3291497b024c6cdc6e9fba0ca3a07da | [
"MIT"
] | null | null | null | lib/dig/good.ex | codedge-llc/dig | cdbe21dcb3291497b024c6cdc6e9fba0ca3a07da | [
"MIT"
] | null | null | null | lib/dig/good.ex | codedge-llc/dig | cdbe21dcb3291497b024c6cdc6e9fba0ca3a07da | [
"MIT"
] | null | null | null | defmodule Dig.Good do
def yo, do: Dig.Derp.uh
end
| 13 | 25 | 0.711538 |
0852f85bb076843a34e220a9be09992bd34295f7 | 239 | ex | Elixir | lib/facebook/graph_video_api.ex | mojidabckuu/facebook.ex | c15c3acc4aa5c5e74140bbeb681fbccf762e3609 | [
"MIT"
] | null | null | null | lib/facebook/graph_video_api.ex | mojidabckuu/facebook.ex | c15c3acc4aa5c5e74140bbeb681fbccf762e3609 | [
"MIT"
] | null | null | null | lib/facebook/graph_video_api.ex | mojidabckuu/facebook.ex | c15c3acc4aa5c5e74140bbeb681fbccf762e3609 | [
"MIT"
] | 1 | 2018-09-10T15:35:53.000Z | 2018-09-10T15:35:53.000Z | defmodule Facebook.GraphVideoAPI do
@moduledoc false
use HTTPoison.Base
alias Facebook.Config
def process_url(url), do: Config.graph_video_url <> url
def process_response_body(body) do
body
|> JSON.decode
end
end
| 15.933333 | 57 | 0.728033 |
0852f9e7f67ab10e7e62f786508d822e0bf43c7b | 664 | ex | Elixir | lib/assertions/use_view_module.ex | facto/bamboo_espec | 5899c1b5109ff9cb62ba7487482e31cc2af01b22 | [
"MIT"
] | 4 | 2017-01-16T08:58:00.000Z | 2018-11-21T09:59:32.000Z | lib/assertions/use_view_module.ex | facto/bamboo_espec | 5899c1b5109ff9cb62ba7487482e31cc2af01b22 | [
"MIT"
] | null | null | null | lib/assertions/use_view_module.ex | facto/bamboo_espec | 5899c1b5109ff9cb62ba7487482e31cc2af01b22 | [
"MIT"
] | 1 | 2018-11-21T09:59:41.000Z | 2018-11-21T09:59:41.000Z | defmodule Bamboo.ESpec.Assertions.UseViewModule do
use ESpec.Assertions.Interface
defp match(%Bamboo.Email{} = email, value) do
result = email.private.view_module == value
{result, value}
end
defp success_message(email, value, _result, positive) do
has = if positive, do: "has", else: "does not hav... | 33.2 | 88 | 0.665663 |
08530050a4adeea4626613a7c3268e5f388cf374 | 2,196 | exs | Elixir | apps/algolia/test/analytics_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/algolia/test/analytics_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/algolia/test/analytics_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Algolia.AnalyticsTest do
use ExUnit.Case, async: true
@params %{
"objectID" => "objectID",
"position" => "1",
"queryID" => "queryID"
}
describe "when click tracking is disabled" do
test "does not send request" do
old_url = Application.get_env(:algolia, :click_analytics_url)
... | 30.929577 | 101 | 0.644809 |
0853986315b8a228212355666135a15c02aef06a | 1,002 | ex | Elixir | lib/ex_oauth2_provider/oauth2/authorization/utils.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/authorization/utils.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/authorization/utils.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Authorization.Utils do
@moduledoc false
alias ExOauth2Provider.OauthApplications
alias ExOauth2Provider.Utils.Error
@doc false
def prehandle_request(resource_owner, request) do
%{resource_owner: resource_owner, request: request}
|> load_client
|> set_defaults
end
... | 30.363636 | 80 | 0.706587 |
08539c169d684f71737341611bc6d178ad85586d | 734 | ex | Elixir | spec/support/factory.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 3 | 2015-01-29T19:11:05.000Z | 2015-10-19T02:12:02.000Z | spec/support/factory.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 43 | 2015-05-31T00:28:45.000Z | 2017-02-06T20:06:19.000Z | spec/support/factory.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 2 | 2015-07-11T14:48:04.000Z | 2015-07-13T06:51:37.000Z | defmodule ParticipateApi.Factory do
use ExMachina.Ecto, repo: ParticipateApi.Repo
def account_factory do
%ParticipateApi.Account{
email: sequence(:email, &"email-#{&1}@example.com"),
facebook_uid: sequence("facebookuid"),
participant: build(:participant)
}
end
def participant_facto... | 22.242424 | 58 | 0.671662 |
08539ce46e7680c9670e427dc390dd71d26686cf | 1,139 | exs | Elixir | config/config.exs | mbramson/ecto_sanitizer | ee56132a481b8ad610ccf0a0f58cf2c503a8a9ab | [
"MIT"
] | 1 | 2019-06-28T17:51:47.000Z | 2019-06-28T17:51:47.000Z | config/config.exs | mbramson/ecto_sanitizer | ee56132a481b8ad610ccf0a0f58cf2c503a8a9ab | [
"MIT"
] | 1 | 2018-11-27T02:34:50.000Z | 2018-11-27T02:34:50.000Z | config/config.exs | mbramson/ecto_sanitizer | ee56132a481b8ad610ccf0a0f58cf2c503a8a9ab | [
"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.741935 | 73 | 0.753292 |
08539f1f94dff5c0b17f54506a7a31f96466d1d0 | 2,668 | ex | Elixir | webrtc/videoroom/lib/videoroom/room.ex | geometerio/membrane_demo | 9a3255199af66353716e935b1efd0ba04dec242f | [
"Apache-2.0"
] | null | null | null | webrtc/videoroom/lib/videoroom/room.ex | geometerio/membrane_demo | 9a3255199af66353716e935b1efd0ba04dec242f | [
"Apache-2.0"
] | null | null | null | webrtc/videoroom/lib/videoroom/room.ex | geometerio/membrane_demo | 9a3255199af66353716e935b1efd0ba04dec242f | [
"Apache-2.0"
] | null | null | null | defmodule Videoroom.Room do
@moduledoc false
use GenServer
require Membrane.Logger
def start(opts) do
GenServer.start(__MODULE__, [], opts)
end
def start_link(opts) do
GenServer.start_link(__MODULE__, [], opts)
end
def add_peer_channel(room, peer_channel_pid, peer_id) do
GenServer.call(... | 28.084211 | 84 | 0.672414 |
0853a9a5a79c7d973e550beda754d0bac2dcdd3a | 1,287 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/os_config/lib/google_api/os_config/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_config/lib/google_api/os_config/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.642857 | 82 | 0.7669 |
0853b08f126984cff92a3d170582b4220381eaa6 | 5,719 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_entity.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_entity.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_entity.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.301724 | 375 | 0.720231 |
0853d86d7b9c4a44e5fd582408b3d3d34e63ece4 | 1,813 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_liens_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.54902 | 136 | 0.737452 |
08540a068d3c74c5fa76de2cc50d4fe909623e96 | 1,155 | exs | Elixir | clients/firebase_dynamic_links/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firebase_dynamic_links/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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... | 37.258065 | 73 | 0.759307 |
08541400f11eb3effd29191240b9d6a75aefc75b | 253 | ex | Elixir | apps/local_hex/lib/local_hex.ex | FrancisMurillo/local_hex_mirror | 005ddaeeb1a004bc44fde92c8ede64e8a399f2c5 | [
"MIT"
] | 5 | 2021-11-13T13:58:06.000Z | 2022-03-26T03:47:57.000Z | apps/local_hex/lib/local_hex.ex | FrancisMurillo/local_hex_mirror | 005ddaeeb1a004bc44fde92c8ede64e8a399f2c5 | [
"MIT"
] | 3 | 2021-11-16T18:45:45.000Z | 2021-12-05T13:58:25.000Z | lib/local_hex.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | null | null | null | defmodule LocalHex do
@moduledoc """
LocalHex keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
085455f6900e2f7cd9dfa0ec89836507327bda1c | 854 | exs | Elixir | apps/financial_system_web/config/config.exs | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | null | null | null | apps/financial_system_web/config/config.exs | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | 2 | 2021-03-10T03:19:32.000Z | 2021-09-02T04:33:17.000Z | apps/financial_system_web/config/config.exs | juniornelson123/tech-challenge-stone | e27b767514bf42a5ade5228de56c3c7ea38459d7 | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :financial_system_web application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
# General application configuration
config :financial_system_web,
generators: [contex... | 40.666667 | 86 | 0.800937 |
08545d25733fb56956c62f32ba43bb5179d1de0a | 336 | exs | Elixir | priv/repo/migrations/20210322015639_add_oban_jobs_table.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | priv/repo/migrations/20210322015639_add_oban_jobs_table.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | priv/repo/migrations/20210322015639_add_oban_jobs_table.exs | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule Kwtool.Repo.Migrations.AddObanJobsTable do
use Ecto.Migration
def up do
Oban.Migrations.up()
end
# We specify `version: 1` in `down`, ensuring that we'll roll all the way back down if
# necessary, regardless of which version we've migrated `up` to.
def down do
Oban.Migrations.down(versio... | 24 | 88 | 0.717262 |
0854bfaf88dd15dcf919149a6639036278484fa1 | 9,402 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_operation_metadata.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... | 58.397516 | 262 | 0.787811 |
0854c5fe3f5a2af99cc272936df6d6df6365740a | 320 | ex | Elixir | lib/adaptable_costs_evaluator_web/views/role_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | lib/adaptable_costs_evaluator_web/views/role_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | lib/adaptable_costs_evaluator_web/views/role_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluatorWeb.RoleView do
use AdaptableCostsEvaluatorWeb, :view
alias AdaptableCostsEvaluatorWeb.RoleView
def render("index.json", %{roles: roles}) do
%{data: render_many(roles, RoleView, "role.json")}
end
def render("role.json", %{role: role}) do
%{type: role.type}
end
end
| 24.615385 | 54 | 0.721875 |
0854c7158411d74555d96f46c1ff36c47a773636 | 46,128 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/api/v1.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/api/v1.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/api/v1.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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... | 78.44898 | 2,326 | 0.688064 |
085506258eb51d68257c33a4afd43d773d8c4995 | 2,674 | exs | Elixir | exercism/elixir/all-your-base/test/all_your_base_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/all-your-base/test/all_your_base_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/all-your-base/test/all_your_base_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule AllYourBaseTest do
use ExUnit.Case
test "convert single bit one to decimal" do
assert AllYourBase.convert([1], 2, 10) == {:ok, [1]}
end
test "convert binary to single decimal" do
assert AllYourBase.convert([1, 0, 1], 2, 10) == {:ok, [5]}
end
test "convert single decimal to binary" do
... | 29.711111 | 96 | 0.605086 |
0855204112732cf6908bdc4b9d177dc208decf85 | 334 | ex | Elixir | lib/automata/core/automaton/types/graphical_models/behavior_tree/config/bt_config.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | null | null | null | lib/automata/core/automaton/types/graphical_models/behavior_tree/config/bt_config.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | null | null | null | lib/automata/core/automaton/types/graphical_models/behavior_tree/config/bt_config.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | null | null | null | defmodule Automaton.Types.BT.Config do
alias Automaton.Types.BT.CompositeServer
alias Automaton.Types.BT.ComponentServer
defstruct node_type: nil,
c_types: CompositeServer.types(),
cn_types: ComponentServer.types(),
allowed_node_types: CompositeServer.types() ++ ComponentServe... | 33.4 | 82 | 0.724551 |
085528915af74f2fb901c20365b7308ff356444e | 1,129 | exs | Elixir | apps/ping_http/config/config.exs | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | apps/ping_http/config/config.exs | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | apps/ping_http/config/config.exs | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"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.751107 |
085539ed3fc33203b62e4d21279245d055b5dced | 2,133 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/cloud_storage_file.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/cloud_storage_file.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/cloud_storage_file.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.967213 | 110 | 0.693858 |
085554fd050f161cf99d594697810ffd091eabf1 | 15,238 | exs | Elixir | lib/elixir/test/elixir/code_formatter/integration_test.exs | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | 1 | 2020-12-18T19:20:37.000Z | 2020-12-18T19:20:37.000Z | lib/elixir/test/elixir/code_formatter/integration_test.exs | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/integration_test.exs | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.IntegrationTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
test "empty documents" do
assert_format " ", ""
assert_format "\n", ""
assert_format ";", ""
end
test "function with multiple calls and case" ... | 25.354409 | 137 | 0.524413 |
0855aa2105ff13937e3040131889ea71af1bc532 | 49 | exs | Elixir | test/full_stackory_slack/plan_cache_test.exs | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | test/full_stackory_slack/plan_cache_test.exs | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | 2 | 2021-03-10T06:19:38.000Z | 2021-05-11T02:11:14.000Z | test/full_stackory_slack/plan_cache_test.exs | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | defmodule FullStackorySlack.PlanCacheTest do
end
| 16.333333 | 44 | 0.897959 |
0855d715d39a43f919fdcfb904ee8ddf03fbdfc9 | 154 | exs | Elixir | sources/Chapter7/sum2.exs | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | sources/Chapter7/sum2.exs | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | sources/Chapter7/sum2.exs | Geroshabu/ProgrammingElixir | 979a835fc728f750af50a3ae771ebbac2ab4000f | [
"MIT"
] | null | null | null | defmodule MyList do
def sum(list), do: _sum(list, 0)
defp _sum([], total), do: total
defp _sum([head|tail], total), do: _sum(tail, head+total)
end
| 22 | 59 | 0.655844 |
0855f2fea180fd03be31ed292d4c47a777ba097a | 1,229 | ex | Elixir | lib/discovery_web/router.ex | spawnphile/discovery | 0ea32c4915f0b0350d2878c7317f5530ea2474a8 | [
"MIT"
] | 3 | 2022-01-07T10:51:48.000Z | 2022-03-15T04:39:09.000Z | lib/discovery_web/router.ex | gamezop/discovery | 0ea32c4915f0b0350d2878c7317f5530ea2474a8 | [
"MIT"
] | null | null | null | lib/discovery_web/router.ex | gamezop/discovery | 0ea32c4915f0b0350d2878c7317f5530ea2474a8 | [
"MIT"
] | null | null | null | defmodule DiscoveryWeb.Router do
use DiscoveryWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {DiscoveryWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
... | 26.717391 | 70 | 0.706265 |
0855f8f654e5da55993d426cc2fc4f23d399852a | 3,966 | exs | Elixir | test/adoptoposs_web/live/settings_live_test.exs | floriank/adoptoposs | 02d1a8d87dbb36ee7364ae737241d6b129d0bf2d | [
"MIT"
] | null | null | null | test/adoptoposs_web/live/settings_live_test.exs | floriank/adoptoposs | 02d1a8d87dbb36ee7364ae737241d6b129d0bf2d | [
"MIT"
] | 1 | 2021-05-11T20:15:21.000Z | 2021-05-11T20:15:21.000Z | test/adoptoposs_web/live/settings_live_test.exs | floriank/adoptoposs | 02d1a8d87dbb36ee7364ae737241d6b129d0bf2d | [
"MIT"
] | null | null | null | defmodule AdoptopossWeb.SettingsLiveTest do
use AdoptopossWeb.LiveCase
alias AdoptopossWeb.SettingsLive
alias Adoptoposs.Accounts.Settings
test "disconnected mount of /settings when logged out", %{conn: conn} do
conn = get(conn, Routes.live_path(conn, SettingsLive))
assert html_response(conn, 302)
... | 35.410714 | 91 | 0.653555 |
085610f840bb3cb125953081bc0749c3547fbab1 | 204 | ex | Elixir | lib/sanbase_web/admin/insights/post_comment.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase_web/admin/insights/post_comment.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase_web/admin/insights/post_comment.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.ExAdmin.Insight.PostComment do
use ExAdmin.Register
register_resource Sanbase.Insight.PostComment do
show post_comment do
attributes_table(all: true)
end
end
end
| 20.4 | 51 | 0.77451 |
08561eb20c7808e2b49317b58498820a329a2a9a | 184 | exs | Elixir | priv/repo/migrations/20210512224557_change_default_flags.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20210512224557_change_default_flags.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20210512224557_change_default_flags.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.ChangeDefaultFlags do
use Ecto.Migration
def change do
alter table(:riders) do
modify :flags, :map, default: %{}
end
end
end
| 18.4 | 59 | 0.701087 |
08562ac5f0cab48d524ab7a62c71de220c560d99 | 1,771 | ex | Elixir | clients/gke_hub/lib/google_api/gke_hub/v1/model/config_management_hierarchy_controller_deployment_state.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/config_management_hierarchy_controller_deployment_state.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/config_management_hierarchy_controller_deployment_state.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... | 32.2 | 133 | 0.729531 |
085637594024facb141b3cdd10f1cc5a8237af89 | 1,875 | ex | Elixir | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/tag.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/tag.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/tag.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.5 | 240 | 0.732267 |
08563b4ebfa77025f962a74fa1cdf78c22742448 | 276 | ex | Elixir | test/support/commands/conditional_increment.ex | toniqsystems/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 103 | 2018-02-09T23:13:21.000Z | 2021-08-18T04:22:41.000Z | test/support/commands/conditional_increment.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 20 | 2018-04-05T16:10:53.000Z | 2021-07-01T08:21:50.000Z | test/support/commands/conditional_increment.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 3 | 2018-09-13T06:03:10.000Z | 2019-07-11T15:22:53.000Z | defmodule Maestro.SampleAggregate.Commands.ConditionalIncrement do
@moduledoc false
@behaviour Maestro.Aggregate.CommandHandler
alias Maestro.InvalidCommandError
def eval(_aggregate, _com) do
raise InvalidCommandError, "command incorrectly specified"
end
end
| 23 | 66 | 0.815217 |
08563fe2e921f987e4595b0a77c91a4e1f178b7b | 164 | exs | Elixir | priv/repo/migrations/20201129175748_add_email_to_users.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | priv/repo/migrations/20201129175748_add_email_to_users.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | priv/repo/migrations/20201129175748_add_email_to_users.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Repo.Migrations.AddEmailToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :email, :string
end
end
end
| 16.4 | 54 | 0.707317 |
0856404e8667d3f62e7ad399fe85acc1354b7774 | 627 | ex | Elixir | lib/oli/delivery/sections/enrollment.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/delivery/sections/enrollment.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/delivery/sections/enrollment.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Sections.Enrollment do
use Ecto.Schema
import Ecto.Changeset
schema "enrollments" do
belongs_to :user, Oli.Accounts.User
belongs_to :section, Oli.Delivery.Sections.Section
field :state, :map, default: %{}
many_to_many :context_roles, Lti_1p3.DataProviders.EctoProvider.Con... | 25.08 | 80 | 0.719298 |
0856417985c1791cf12046648b8b982d4f41b4a7 | 2,335 | exs | Elixir | config/dev.exs | seb3s/live_deck | 316c8a414f81ba6bbd00d232852457d715a729bd | [
"MIT"
] | 1 | 2020-06-15T00:43:17.000Z | 2020-06-15T00:43:17.000Z | config/dev.exs | seb3s/live_deck | 316c8a414f81ba6bbd00d232852457d715a729bd | [
"MIT"
] | null | null | null | config/dev.exs | seb3s/live_deck | 316c8a414f81ba6bbd00d232852457d715a729bd | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :live_deck, LiveDeck.Repo,
username: "postgres",
password: "postgres",
database: "live_deck_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code relo... | 29.556962 | 96 | 0.706638 |
08566895c7d06c2811954df7c23336cf7e7643df | 1,638 | exs | Elixir | test/bootstrap_form_test.exs | amandasposito/bootstrap_form | 498cd0e3b3c29afd655303a757beeafa76cff307 | [
"MIT"
] | null | null | null | test/bootstrap_form_test.exs | amandasposito/bootstrap_form | 498cd0e3b3c29afd655303a757beeafa76cff307 | [
"MIT"
] | null | null | null | test/bootstrap_form_test.exs | amandasposito/bootstrap_form | 498cd0e3b3c29afd655303a757beeafa76cff307 | [
"MIT"
] | null | null | null | defmodule BootstrapFormTest do
use ExUnit.Case
doctest BootstrapForm
import Phoenix.HTML, only: [safe_to_string: 1]
import Phoenix.HTML.Form, only: [form_for: 4]
describe "input/3" do
test "generates an input with bootstrap markup" do
expected =
~s(<div class="form-group">) <>
~s... | 30.333333 | 115 | 0.582418 |
085673b5edb333cb91d515157407ddb1a81bd3e1 | 504 | ex | Elixir | lib/mp_api_web/views/changeset_view.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api_web/views/changeset_view.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api_web/views/changeset_view.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | defmodule MpApiWeb.ChangesetView do
use MpApiWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changeset, &translate_error/1)
end
def render("error.json", %{... | 26.526316 | 65 | 0.728175 |
0856764a4d30624242d4e952f72439d8e398f027 | 243 | ex | Elixir | lib/hub.ex | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | lib/hub.ex | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | 5 | 2020-07-17T23:35:42.000Z | 2021-05-10T07:00:10.000Z | lib/hub.ex | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | defmodule Hub do
@moduledoc """
Hub keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.3 | 66 | 0.744856 |
0856a95b5460db6c37360c5e969d0b689f8af5dd | 2,072 | ex | Elixir | lib/actors/account.ex | nosovk/wms | c887fce7d23e8fc7846c6f1afaee0795c3e30a87 | [
"ISC"
] | 8 | 2019-08-02T01:50:01.000Z | 2021-12-20T07:33:27.000Z | lib/actors/account.ex | nosovk/wms | c887fce7d23e8fc7846c6f1afaee0795c3e30a87 | [
"ISC"
] | 12 | 2019-07-08T14:21:01.000Z | 2019-07-22T12:58:09.000Z | lib/actors/account.ex | enterprizing/plm | 5f03461f7f07586e26f3b370775539d94dac2188 | [
"0BSD"
] | 4 | 2019-07-23T12:28:47.000Z | 2021-11-29T12:49:37.000Z | defmodule BPE.Account do
@moduledoc """
`PLM.Account` is a process that handles user investments.
"""
require ERP
require BPE
require Record
Record.defrecord(:close_account, [])
Record.defrecord(:tx, [])
def def() do
BPE.process(
name: :n2o.user(),
flows: [
BPE.sequenceFlow(so... | 29.6 | 75 | 0.612452 |
0856c2d22d83be1b7102df91155a806758d01a44 | 25,338 | ex | Elixir | lib/aws/generated/doc_db.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/doc_db.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/doc_db.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DocDB do
@moduledoc """
Amazon DocumentDB API documentation
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: "Amazon DocDB",
... | 39.9653 | 170 | 0.740429 |
0856cc5ba31ca1d0862a774685a6369d3816b396 | 618 | ex | Elixir | test/support/acceptance_case.ex | abratashov/shortly | 39dbf813f0cf643525b9038adb39764466e75d5e | [
"MIT"
] | null | null | null | test/support/acceptance_case.ex | abratashov/shortly | 39dbf813f0cf643525b9038adb39764466e75d5e | [
"MIT"
] | null | null | null | test/support/acceptance_case.ex | abratashov/shortly | 39dbf813f0cf643525b9038adb39764466e75d5e | [
"MIT"
] | null | null | null | defmodule Shortly.AcceptanceCase do
use ExUnit.CaseTemplate
using do
quote do
use Wallaby.DSL
alias Shortly.Repo
import Ecto
import Ecto.Changeset
import Ecto.Query
import ShortlyWeb.Router.Helpers
end
end
setup tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout... | 21.310345 | 74 | 0.677994 |
0856d90b40f3847e913ec069a2920a3c0f867b17 | 1,992 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operations_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operations_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operations_list_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... | 37.584906 | 205 | 0.72992 |
0856e0ecdf2153a76bd32898756fcb9862291886 | 1,334 | ex | Elixir | lib/auto_api/commands/rooftop_control_command.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/commands/rooftop_control_command.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/commands/rooftop_control_command.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 46 | 85 | 0.774363 |
0856e875ed9ccbf60915ed3494a74d593f2e7e57 | 551 | ex | Elixir | rocketpay/lib/rocketpay_web/controllers/welcome_controller.ex | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | 3 | 2021-02-24T02:55:37.000Z | 2021-07-14T18:55:40.000Z | rocketpay/lib/rocketpay_web/controllers/welcome_controller.ex | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | null | null | null | rocketpay/lib/rocketpay_web/controllers/welcome_controller.ex | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | 1 | 2021-03-13T01:32:40.000Z | 2021-03-13T01:32:40.000Z | defmodule RocketpayWeb.WelcomeController do
use RocketpayWeb, :controller
alias Rocketpay.Numbers
def index(connection, %{"filename" => filename}) do
filename
|>Numbers.sum_from_file()
|>handle_response(connection)
end
defp handle_response({:ok, %{result: result}}, conn) do
conn
... | 19.678571 | 76 | 0.653358 |
0856ef34d4f614182f9fa7f9f29e8c59279b0b1b | 641 | ex | Elixir | elixir/advent_of_code/lib/day3/part1.ex | childss/aoc-2016 | 8570cf4bcf42e1ea85cfdf5e3444baf71c5c5312 | [
"MIT"
] | null | null | null | elixir/advent_of_code/lib/day3/part1.ex | childss/aoc-2016 | 8570cf4bcf42e1ea85cfdf5e3444baf71c5c5312 | [
"MIT"
] | null | null | null | elixir/advent_of_code/lib/day3/part1.ex | childss/aoc-2016 | 8570cf4bcf42e1ea85cfdf5e3444baf71c5c5312 | [
"MIT"
] | null | null | null | defmodule Day3.Part1 do
def run(input) do
input
|> File.read!
|> parse_input
|> count_triangles
end
defp parse_input(input) do
for line <- String.split(input, "\n", trim: true),
sides = String.split(line, " ", trim: true),
do: Enum.map(sides, &String.to_integer/1)
end
def... | 21.366667 | 55 | 0.592824 |
0856f1e55ee2eebfab201fcff75351e9148a216f | 2,318 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/update_line_properties_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/slides/lib/google_api/slides/v1/model/update_line_properties_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_line_properties_request.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 ... | 36.793651 | 128 | 0.719154 |
08570b91afbb1b48bb21ae57c2c32b2b5bd375d1 | 626 | exs | Elixir | test/absinthe/federation/notation_test.exs | trbngr/absinthe_federation | 7ebe9c26c16ea088e42914df9797acd04e9d9894 | [
"MIT"
] | 40 | 2021-06-26T08:43:50.000Z | 2022-03-30T15:41:08.000Z | test/absinthe/federation/notation_test.exs | trbngr/absinthe_federation | 7ebe9c26c16ea088e42914df9797acd04e9d9894 | [
"MIT"
] | 22 | 2021-07-14T20:01:08.000Z | 2022-03-31T15:58:02.000Z | test/absinthe/federation/notation_test.exs | trbngr/absinthe_federation | 7ebe9c26c16ea088e42914df9797acd04e9d9894 | [
"MIT"
] | 4 | 2021-08-23T14:38:41.000Z | 2021-11-30T00:16:19.000Z | defmodule Absinthe.Federation.NotationTest do
use Absinthe.Federation.Case, async: true
describe "macro schema" do
defmodule MacroSchema do
use Absinthe.Schema
use Absinthe.Federation.Schema
query do
field :me, :user
end
object :user do
key_fields("id")
e... | 20.866667 | 61 | 0.602236 |
085743db919a3af699d32409f96fbfa52b86e4ee | 4,041 | ex | Elixir | apps/artemis_web/lib/artemis_web/controllers/wiki_page_controller.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/lib/artemis_web/controllers/wiki_page_controller.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/lib/artemis_web/controllers/wiki_page_controller.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-04-10T13:34:15.000Z | 2019-05-17T02:42:24.000Z | defmodule ArtemisWeb.WikiPageController do
use ArtemisWeb, :controller
use ArtemisWeb.Controller.CommentsShow,
path: &Routes.wiki_page_path/3,
permission: "wiki-pages:show",
resource_getter: &Artemis.GetWikiPage.call!/2,
resource_id_key: "wiki_page_id",
resource_type: "WikiPage"
alias Artemi... | 29.282609 | 99 | 0.636229 |
085767269bb9b9311dab2e6c039d642ee1b99b63 | 302 | exs | Elixir | adv_2020/test/day_19_test.exs | SamuelSarle/advent | 31025f7b081826cb51b37a2d8b8d263413b71086 | [
"Unlicense"
] | null | null | null | adv_2020/test/day_19_test.exs | SamuelSarle/advent | 31025f7b081826cb51b37a2d8b8d263413b71086 | [
"Unlicense"
] | null | null | null | adv_2020/test/day_19_test.exs | SamuelSarle/advent | 31025f7b081826cb51b37a2d8b8d263413b71086 | [
"Unlicense"
] | null | null | null | defmodule DayNineteenTest do
use ExUnit.Case
test "returns correct result" do
input = """
0: 4 1 5
1: 2 3 | 3 2
2: 4 4 | 5 5
3: 4 5 | 5 4
4: "a"
5: "b"
ababbb
bababa
abbbab
aaabbb
aaaabbb
"""
assert DayNineteen.solve(input) == 2
end
end
| 13.130435 | 40 | 0.523179 |
085767e635e9fa5c47375aa7899cb13121738287 | 845 | ex | Elixir | lib/automata/core/automaton/types/typology.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | null | null | null | lib/automata/core/automaton/types/typology.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | null | null | null | lib/automata/core/automaton/types/typology.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | null | null | null | defmodule Automaton.Types.Typology do
@moduledoc """
## Types are builtin state space representations.
Typology is for interpretation of what state space representation to use based
on user configuration. Each type has a `config/` dir to handle user
config parsing and interpretation specific to its domain.
... | 27.258065 | 80 | 0.674556 |
0857a6f60f38da27f1c4db9ab6dc83d18cf02799 | 1,224 | ex | Elixir | api/lib/contracts/agreements/part/account.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2020-08-17T21:31:04.000Z | 2020-08-17T21:31:04.000Z | api/lib/contracts/agreements/part/account.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | null | null | null | api/lib/contracts/agreements/part/account.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2021-03-21T16:17:29.000Z | 2021-03-21T16:17:29.000Z | defmodule Contracts.Agreements.Part.Account do
use Ecto.Schema
import Ecto.Changeset
alias Contracts.Agreements.{
Part.Profile,
Relation
}
@fields [:email, :password]
schema "accounts" do
field :email, :string
field :password, :string
has_one :profile, Profile
has_many :relations,... | 23.538462 | 83 | 0.665033 |
0857c419edf6d26298aa1f41a834c85e1b8c7033 | 1,126 | ex | Elixir | test/support/conn_case.ex | niklas/prometheus-phx | 3183672a86f00433b58f76fcdf4e08c1955053fa | [
"Apache-2.0"
] | 5 | 2020-09-19T22:29:41.000Z | 2021-03-28T03:17:00.000Z | test/support/conn_case.ex | niklas/prometheus-phx | 3183672a86f00433b58f76fcdf4e08c1955053fa | [
"Apache-2.0"
] | 1 | 2021-04-15T19:03:45.000Z | 2021-04-15T19:03:45.000Z | test/support/conn_case.ex | niklas/prometheus-phx | 3183672a86f00433b58f76fcdf4e08c1955053fa | [
"Apache-2.0"
] | 4 | 2020-10-29T15:28:08.000Z | 2021-12-15T17:44:31.000Z | defmodule PrometheusPhxTestWeb.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 data structures and query the data layer.
Fina... | 29.631579 | 71 | 0.746004 |
0857cad4e617d1db3f9aeccc94e558c978698f5d | 199 | exs | Elixir | test/timetracker_web/controllers/work_block_controller_test.exs | LunarLogic/timetracker | 5c2ffffc9023c7b099d7af8de7f21225352483ca | [
"MIT"
] | 1 | 2019-06-26T06:53:01.000Z | 2019-06-26T06:53:01.000Z | test/timetracker_web/controllers/work_block_controller_test.exs | LunarLogic/timetracker | 5c2ffffc9023c7b099d7af8de7f21225352483ca | [
"MIT"
] | null | null | null | test/timetracker_web/controllers/work_block_controller_test.exs | LunarLogic/timetracker | 5c2ffffc9023c7b099d7af8de7f21225352483ca | [
"MIT"
] | null | null | null | defmodule TimetrackerWeb.WorkBlockControllerTest do
use TimetrackerWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Start"
end
end
| 22.111111 | 51 | 0.693467 |
0857e42ea74b46b13b7adee124eada13cb54c456 | 12,647 | ex | Elixir | lib/geometry/geometry_collection_z.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | lib/geometry/geometry_collection_z.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | 2 | 2020-10-25T10:06:07.000Z | 2020-10-26T18:15:20.000Z | lib/geometry/geometry_collection_z.ex | hrzndhrn/geometry | bffdac0a9554f7f5fd05caceee0fa8f3c96d1c60 | [
"MIT"
] | null | null | null | defmodule Geometry.GeometryCollectionZ do
@moduledoc """
A collection set of 3D geometries.
`GeometryCollectionZ` implements the protocols `Enumerable` and `Collectable`.
## Examples
iex> Enum.map(
...> GeometryCollectionZ.new([
...> PointZ.new(11, 12, 13),
...> LineStringZ.... | 29.618267 | 97 | 0.593817 |
0857eb6d2e0cad37478a7a5b2c1e7def086c59d8 | 505 | exs | Elixir | test/unit/hologram/compiler/transformers/unary_negative_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/transformers/unary_negative_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/transformers/unary_negative_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.UnaryNegativeOperatorTransformerTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.{Context, UnaryNegativeOperatorTransformer}
alias Hologram.Compiler.IR.{IntegerType, UnaryNegativeOperator}
test "transform/3" do
code = "-2"
ast = ast(code)
result ... | 25.25 | 72 | 0.742574 |
0857fa3fd13b7ec5f95fdf5035aa981bb6fe20e8 | 1,867 | exs | Elixir | clients/testing/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/testing/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 27.865672 | 134 | 0.658275 |
0857fcc54704ceaefb501b311bd2dce021e6a4d4 | 2,211 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_product_search_results_object_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_product_search_results_object_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_product_search_results_object_annotation.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.245902 | 207 | 0.713704 |
085808ba87a119a025c150ef64bf07ba61ea2ee0 | 3,417 | exs | Elixir | test/multipart_test.exs | kf8a/multipart | b1fbb0bdc5345045d516170fa0a572f56741e3ce | [
"MIT"
] | null | null | null | test/multipart_test.exs | kf8a/multipart | b1fbb0bdc5345045d516170fa0a572f56741e3ce | [
"MIT"
] | null | null | null | test/multipart_test.exs | kf8a/multipart | b1fbb0bdc5345045d516170fa0a572f56741e3ce | [
"MIT"
] | null | null | null | defmodule MultipartTest do
use ExUnit.Case
doctest Multipart
@boundary "==testboundary=="
alias Multipart.Part
test "building a message of binary parts" do
expected_output = File.read!(file_path("/outputs/binary_parts_message.txt"))
multipart =
Multipart.new(@boundary)
|> Multipart.add... | 32.235849 | 139 | 0.695347 |
0858137eac13e299507c4203f89e04bf892e21a8 | 287 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_arrow_operation_parsing_test_case/MatchedTwoOperation.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_arrow_operation_parsing_test_case/MatchedTwoOperation.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_arrow_operation_parsing_test_case/MatchedTwoOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | one ++ two <~ three -- four
one <> two |> three .. four
one -- two ~> three <> four
one .. two <<< three -- four
one ++ two <<~ three <> four
one ++ two <|> three .. four
one ++ two <~> three -- four
one ++ two >>> three -- four
one ++ two ~>> three -- four
one ++ two ^^^ three -- four
| 26.090909 | 28 | 0.522648 |
085828b3cb8ef662b25a8373f809011903842ecd | 487 | ex | Elixir | lib/teddy_web/views/error_view.ex | abotkit/teddy | 72f1c7015a278d4fd1b2c90daeaeb49d0d8ef142 | [
"MIT"
] | 1 | 2022-02-03T19:41:52.000Z | 2022-02-03T19:41:52.000Z | lib/teddy_web/views/error_view.ex | abotkit/teddy | 72f1c7015a278d4fd1b2c90daeaeb49d0d8ef142 | [
"MIT"
] | null | null | null | lib/teddy_web/views/error_view.ex | abotkit/teddy | 72f1c7015a278d4fd1b2c90daeaeb49d0d8ef142 | [
"MIT"
] | null | null | null | defmodule TeddyWeb.ErrorView do
use TeddyWeb, :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. Fo... | 28.647059 | 61 | 0.73306 |
08582b634fa2051d83757c417bdf5be1436e3a12 | 531 | ex | Elixir | lib/level/schemas/notification.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/schemas/notification.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/schemas/notification.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Schemas.Notification do
@moduledoc """
The Notification schema.
"""
use Ecto.Schema
alias Level.Schemas.Space
alias Level.Schemas.SpaceUser
@type t :: %__MODULE__{}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "notifications" do
field ... | 20.423077 | 52 | 0.698682 |
08583747b255a8910e6389a116fcc4fb0f47cdb7 | 1,099 | exs | Elixir | test/controllers/username_controller_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | test/controllers/username_controller_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | test/controllers/username_controller_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.UsernameControllerTest do
use AsciinemaWeb.ConnCase
import Asciinema.Factory
describe "setting username" do
test "requires logged in user", %{conn: conn} do
conn = get(conn, "/username/new")
assert redirected_to(conn, 302) == "/login/new"
end
test "displays form", %{c... | 28.179487 | 73 | 0.620564 |
08583da63f4c378d7485caa846d7dfce3b968774 | 383 | ex | Elixir | apps/cucumber_expressions/lib/cucumber_expressions/utils/random/random.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-05-18T18:20:05.000Z | 2022-02-13T00:15:06.000Z | apps/cucumber_expressions/lib/cucumber_expressions/utils/random/random.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-04-22T00:28:17.000Z | 2021-05-19T21:04:20.000Z | apps/cucumber_expressions/lib/cucumber_expressions/utils/random/random.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 4 | 2021-04-14T03:07:45.000Z | 2021-12-12T21:23:59.000Z | defmodule CucumberExpressions.Utils.Random do
@moduledoc """
Generate random id with a risk of repeat as being about the same as
that of you being hit by a meteorite.
"""
use Puid, total: 10.0e6, risk: 1.0e12
@type t() :: String.t()
@spec id :: t()
def id, do: generate()
@spec id(:fixed) :: t()
d... | 21.277778 | 69 | 0.64752 |
085873da0475484e5264820ff5d303272b3f9f55 | 467 | ex | Elixir | test/e2e/lib/hologram_e2e_web/pages/operators/subtraction_page.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/e2e/lib/hologram_e2e_web/pages/operators/subtraction_page.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/e2e/lib/hologram_e2e_web/pages/operators/subtraction_page.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule HologramE2E.Operators.SubtractionPage do
use Hologram.Page
route "/e2e/operators/subtraction"
def init(_params, _conn) do
%{
left: 10,
right: 6,
result: 0
}
end
def template do
~H"""
<button id="button" on:click="calculate">Calculate</button>
<div id="text">R... | 18.68 | 63 | 0.625268 |
08588bb7ec3ed789de03dd7d94bdf73420e26fe9 | 384 | ex | Elixir | lib/hangman/letter_retrieval_strategy.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | 1 | 2016-12-19T00:10:34.000Z | 2016-12-19T00:10:34.000Z | lib/hangman/letter_retrieval_strategy.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | lib/hangman/letter_retrieval_strategy.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | defmodule Hangman.Letter.Retrieval.Strategy do
alias Hangman.Letter.{Retrieval, Strategy}
# Letter.Retrieval.Strategy serves as a behavior with one function to implement
@callback optimal(Strategy.t()) :: String.t() | no_return
# Only supports one letter retrieval type for the moment
def select(%Strategy{} ... | 32 | 81 | 0.757813 |
0858987ce87675c29245919dd7fe9f0639021c78 | 487 | ex | Elixir | lib/plate_slate_web/views/layout_view.ex | nontech/graphql_absinthe | c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde | [
"MIT"
] | null | null | null | lib/plate_slate_web/views/layout_view.ex | nontech/graphql_absinthe | c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde | [
"MIT"
] | null | null | null | lib/plate_slate_web/views/layout_view.ex | nontech/graphql_absinthe | c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde | [
"MIT"
] | null | null | null | #---
# Excerpted from "Craft GraphQL APIs in Elixir with Absinthe",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any pur... | 40.583333 | 86 | 0.767967 |
0858abbf495cbe7476b881be09696c1588cefb96 | 383 | ex | Elixir | lib/codes/codes_a94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_a94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_A94 do
alias IcdCode.ICDCode
def _A94 do
%ICDCode{full_code: "A94",
category_code: "A94",
short_code: "",
full_name: "Unspecified arthropod-borne viral fever",
short_name: "Unspecified arthropod-borne viral fever",
category_name: "... | 23.9375 | 66 | 0.652742 |
0858df7b3c05ff0b47d3b3a483446f629a47a680 | 1,692 | ex | Elixir | hello_elixir/lib/hello/hello_catch.ex | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | hello_elixir/lib/hello/hello_catch.ex | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | 4 | 2021-10-06T22:07:13.000Z | 2022-02-27T10:35:34.000Z | hello_elixir/lib/hello/hello_catch.ex | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | defmodule HelloCatch do
@moduledoc ~S"""
Copyright <Woobest> 2020. All Rights Reserved.
History:
2020-11-11 09:20, fred 'wangxingfred@gmail.com', create module
TODO 编写模块描述
"""
def try_catch_else1(term, kind \\ "throw") do
try do
if term !== nil and te... | 26.030769 | 85 | 0.507092 |
0858f2d416f0cef58e52cdd404173eb84a85de7c | 412 | ex | Elixir | test/support/test_helper.ex | ucwaldo/expublish | d56a6d93401d0c0491f38437f0159111af11e3c4 | [
"Apache-2.0"
] | 21 | 2021-02-21T15:45:31.000Z | 2022-03-25T10:47:42.000Z | test/support/test_helper.ex | ucwaldo/expublish | d56a6d93401d0c0491f38437f0159111af11e3c4 | [
"Apache-2.0"
] | 21 | 2021-02-22T09:31:36.000Z | 2021-12-19T19:39:05.000Z | test/support/test_helper.ex | ucwaldo/expublish | d56a6d93401d0c0491f38437f0159111af11e3c4 | [
"Apache-2.0"
] | null | null | null | defmodule Expublish.TestHelper do
@moduledoc false
def with_release_md(fun) do
if File.exists?("RELEASE.md") do
fun.()
else
File.write!("RELEASE.md", "generated by expublish test")
fun.()
File.rm!("RELEASE.md")
end
end
def parts_to_iso(parts, separator \\ "-") do
parts
... | 20.6 | 62 | 0.604369 |
0858f423e17d3f4ee677fb82bf41dc56fd22547a | 2,788 | ex | Elixir | lib/phoenix_live_view/test/structs.ex | sthagen/phoenixframework-phoenix_live_view | 196ba2f8c9c367ee9e0ff8273f2a9c22a1c7027a | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/structs.ex | sthagen/phoenixframework-phoenix_live_view | 196ba2f8c9c367ee9e0ff8273f2a9c22a1c7027a | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/structs.ex | sthagen/phoenixframework-phoenix_live_view | 196ba2f8c9c367ee9e0ff8273f2a9c22a1c7027a | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest.View do
@moduledoc """
The struct for testing LiveViews.
The following public fields represent the LiveView:
* `id` - The DOM id of the LiveView
* `module` - The module of the running LiveView
* `pid` - The Pid of the running LiveView
* `endpoint` - The endpoint fo... | 27.333333 | 89 | 0.61693 |
085945ea8437114b0cb76c36a28b348f07dc0cd4 | 783 | ex | Elixir | apps/reaper/lib/reaper/decoder/xml.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/reaper/lib/reaper/decoder/xml.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/reaper/lib/reaper/decoder/xml.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Reaper.Decoder.Xml do
@moduledoc """
Reaper.Decoder implementation to decode a csv file into a stream of records
"""
alias Reaper.XmlSchemaMapper
defmodule XmlError do
defexception [:message]
end
@behaviour Reaper.Decoder
@impl Reaper.Decoder
def decode(
{:file, filename},
... | 21.162162 | 84 | 0.644955 |
085948c233f6edfb66e24e4dc0710ec59e59407b | 2,277 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/resource_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/resource_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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/resource_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.660714 | 240 | 0.71805 |
0859499e071c9d29e088bf0683f68c66a06112d5 | 1,375 | ex | Elixir | lib/shopify_api/rest/inventory_level.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 18 | 2019-06-07T13:36:39.000Z | 2021-08-03T21:06:36.000Z | lib/shopify_api/rest/inventory_level.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 158 | 2018-08-30T22:09:00.000Z | 2021-09-22T01:18:59.000Z | lib/shopify_api/rest/inventory_level.ex | ProtoJazz/elixir-shopifyapi | 759e20baff5afdff235386193bc42b2ecd343f5d | [
"Apache-2.0"
] | 4 | 2020-09-05T00:48:46.000Z | 2020-09-30T15:53:50.000Z | defmodule ShopifyAPI.REST.InventoryLevel do
@moduledoc """
ShopifyAPI REST API InventoryLevel resource
"""
alias ShopifyAPI.AuthToken
alias ShopifyAPI.REST
@doc """
Return a list of inventory levels.
## Example
iex> ShopifyAPI.REST.InventoryLevel.all(auth)
{:ok, [%{}, ...] = inventory_lev... | 26.960784 | 145 | 0.655273 |
08596186be4631b5c710604d8d196d15e070d3ef | 861 | ex | Elixir | apps/omg_rpc/lib/omg_rpc/web/views/transaction.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/lib/omg_rpc/web/views/transaction.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_rpc/lib/omg_rpc/web/views/transaction.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.75 | 74 | 0.738676 |
08596e8e15569dc3fe39dece40eb05284d2bddc8 | 6,127 | ex | Elixir | lib/akin.ex | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | 8 | 2021-10-31T21:24:37.000Z | 2022-02-27T05:30:24.000Z | lib/akin.ex | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | 1 | 2021-10-31T17:57:41.000Z | 2021-11-09T22:54:50.000Z | lib/akin.ex | vanessaklee/akin | fc97befb871536b6c7ef0b35740fe6efc032c566 | [
"Apache-2.0"
] | null | null | null | defmodule Akin do
@moduledoc """
Akin
=======
Functions for comparing two strings for similarity using a collection of string comparison algorithms for Elixir. Algorithms can be called independently or in total to return a map of metrics.
## Options
Options accepted in a keyword list (i.e. [ngram_size: 3... | 38.534591 | 194 | 0.660845 |
08598779f8074c006e502f213e3918a87246030c | 1,645 | ex | Elixir | apps/astarte_trigger_engine/lib/astarte_trigger_engine_web/plug/health_plug.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_trigger_engine/lib/astarte_trigger_engine_web/plug/health_plug.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_trigger_engine/lib/astarte_trigger_engine_web/plug/health_plug.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# 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 appl... | 25.703125 | 74 | 0.595745 |
0859b170f2677453a9caf8fce6328fa383f05137 | 1,952 | ex | Elixir | lib/distillery_packager/debian/control.ex | denvera/distillery_packager | 337e08ba87653a0e43c1fcbf06f8634e4c91f7a3 | [
"MIT"
] | null | null | null | lib/distillery_packager/debian/control.ex | denvera/distillery_packager | 337e08ba87653a0e43c1fcbf06f8634e4c91f7a3 | [
"MIT"
] | null | null | null | lib/distillery_packager/debian/control.ex | denvera/distillery_packager | 337e08ba87653a0e43c1fcbf06f8634e4c91f7a3 | [
"MIT"
] | null | null | null | defmodule DistilleryPackager.Debian.Control do
@moduledoc """
This module houses the logic required to build the control file and include
custom control data such as pre/post install hooks.
"""
alias DistilleryPackager.Debian.Generators.Control
alias DistilleryPackager.Utils.Compression
import Mix.Releas... | 27.885714 | 77 | 0.629098 |
0859d282088a7c3d1a1f1ba267083a8c10c0fa41 | 4,265 | ex | Elixir | lib/paper/docs.ex | alexanderttalvarez/elixir_dropbox | a1ce6eb7ba6f9b0b082031fba9797db3f7848b05 | [
"MIT"
] | null | null | null | lib/paper/docs.ex | alexanderttalvarez/elixir_dropbox | a1ce6eb7ba6f9b0b082031fba9797db3f7848b05 | [
"MIT"
] | null | null | null | lib/paper/docs.ex | alexanderttalvarez/elixir_dropbox | a1ce6eb7ba6f9b0b082031fba9797db3f7848b05 | [
"MIT"
] | null | null | null | defmodule ElixirDropbox.Paper.Docs do
@moduledoc """
This namespace contains endpoints and data types for
managing docs and folders in Dropbox Paper.
"""
import ElixirDropbox
@doc """
Marks the given Paper doc as archived.
## Example
ElixirDropbox.Paper.Docs.docs_archive client, ""
More info a... | 26.165644 | 110 | 0.665885 |
085a4c1313e262a2201aa6f03441b3aa06349d2b | 1,215 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/extension_class_container_impl1map.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/extension_class_container_impl1map.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/extension_class_container_impl1map.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.ExtensionClassContainerImpl1map do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"io.jenkins.blueocean.... | 36.818182 | 147 | 0.760494 |
085a59b028550a07f5af0f721395303145841dbe | 11,363 | ex | Elixir | lib/coherence/controllers/session_controller.ex | Sathras/coherence-react | c17f9143daceecade7ae724db2d51815f9d09c00 | [
"MIT"
] | 2 | 2018-01-19T06:12:16.000Z | 2018-03-12T07:17:17.000Z | lib/coherence/controllers/session_controller.ex | Sathras/coherence-react | c17f9143daceecade7ae724db2d51815f9d09c00 | [
"MIT"
] | null | null | null | lib/coherence/controllers/session_controller.ex | Sathras/coherence-react | c17f9143daceecade7ae724db2d51815f9d09c00 | [
"MIT"
] | null | null | null | defmodule Coherence.SessionController do
@moduledoc """
Handle the authentication actions.
"""
use CoherenceWeb, :controller
use Timex
use Coherence.Config
import Ecto.Query
import Coherence.{LockableService, RememberableService, TrackableService}
import Coherence.Schemas, only: [schema: 1]
import... | 32.936232 | 112 | 0.675438 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.