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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab9efd6fcc06fc52eb4c7e3f6969572b5ce459bb | 669 | ex | Elixir | apps/bernard_core/lib/accounts/user.ex | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | apps/bernard_core/lib/accounts/user.ex | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | apps/bernard_core/lib/accounts/user.ex | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | defmodule BernardCore.Accounts.User do
@moduledoc """
[Internal] The Ecto schema and changeset information for the User entity. Users can
have multiple Items (Finance) and Credentials (Auth)
"""
use BernardCore.Schema
import Ecto.Changeset
alias BernardCore.Accounts.Credential
alias BernardCore.Finan... | 21.580645 | 85 | 0.705531 |
ab9f20eba8aa8223a6ac11a6bb485074f8d58ef5 | 2,000 | exs | Elixir | config/prod.exs | rsommerard/killbind | f77ca1cbb464053f9920cb9fa8a339f54fd3648e | [
"MIT"
] | null | null | null | config/prod.exs | rsommerard/killbind | f77ca1cbb464053f9920cb9fa8a339f54fd3648e | [
"MIT"
] | null | null | null | config/prod.exs | rsommerard/killbind | f77ca1cbb464053f9920cb9fa8a339f54fd3648e | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.258065 | 67 | 0.715 |
ab9f33882d3ce62617473d5263fc48f32978c17c | 9,880 | ex | Elixir | apps/evm/lib/evm/operation/environmental_information.ex | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 22 | 2017-06-22T02:50:34.000Z | 2022-01-26T20:43:21.000Z | apps/evm/lib/evm/operation/environmental_information.ex | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 9 | 2018-10-08T22:56:56.000Z | 2018-10-18T20:41:55.000Z | apps/evm/lib/evm/operation/environmental_information.ex | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 5 | 2018-10-06T16:30:48.000Z | 2022-01-26T20:43:26.000Z | defmodule EVM.Operation.EnvironmentalInformation do
alias EVM.Operation
alias EVM.Stack
alias EVM.Helpers
alias EVM.Interface.AccountInterface
alias EVM.Memory
@doc """
Get address of currently executing account.
## Examples
iex> EVM.Operation.EnvironmentalInformation.address([], %{exec_env: %E... | 35.285714 | 215 | 0.680263 |
ab9f9ba9dd6079c9ec9b4ba711373e950505e5b6 | 153 | exs | Elixir | test/qcloud_cos_sts_test.exs | scottming/qcloud_cos_sts | c6571578e0ccf4c63c5706ad6f5232d7245c1922 | [
"MIT"
] | null | null | null | test/qcloud_cos_sts_test.exs | scottming/qcloud_cos_sts | c6571578e0ccf4c63c5706ad6f5232d7245c1922 | [
"MIT"
] | null | null | null | test/qcloud_cos_sts_test.exs | scottming/qcloud_cos_sts | c6571578e0ccf4c63c5706ad6f5232d7245c1922 | [
"MIT"
] | null | null | null | defmodule QcloudCosStsTest do
use ExUnit.Case
doctest QcloudCosSts
test "greets the world" do
assert QcloudCosSts.hello() == :world
end
end
| 17 | 41 | 0.738562 |
ab9f9e9a02d9a53eaaea2490c10e3f5510a1d412 | 743 | exs | Elixir | test/pdf_party_test.exs | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 4 | 2018-10-26T02:11:14.000Z | 2019-04-25T20:59:52.000Z | test/pdf_party_test.exs | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 1 | 2018-10-26T21:20:40.000Z | 2018-10-26T21:20:40.000Z | test/pdf_party_test.exs | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 1 | 2018-10-26T02:11:17.000Z | 2018-10-26T02:11:17.000Z | defmodule PDFPartyTest do
use ExUnit.Case, async: true
@pdf_file_1 "test/file_fixtures/hello_updated.pdf"
@pdf_file_2 "test/file_fixtures/sample.pdf"
test "usage 1" do
assert {:ok, document} = PDFParty.read(@pdf_file_1)
assert {:ok, 1} = PDFParty.pages_count(document)
assert {:ok, [page]} = PDFPar... | 30.958333 | 77 | 0.687752 |
ab9fad8079f65443a2ad6c61d722db7e0c312fea | 534 | ex | Elixir | src/Data/Ord/Unsafe.ex | sriduth/purescript-prelude | 018250e052ec11dc6faae61ea41c1a11fdf64e0e | [
"MIT"
] | null | null | null | src/Data/Ord/Unsafe.ex | sriduth/purescript-prelude | 018250e052ec11dc6faae61ea41c1a11fdf64e0e | [
"MIT"
] | null | null | null | src/Data/Ord/Unsafe.ex | sriduth/purescript-prelude | 018250e052ec11dc6faae61ea41c1a11fdf64e0e | [
"MIT"
] | null | null | null | defmodule Unsafe.Foreign do
def unsafeCompareImpl do
fn (eq) ->
fn (gt) ->
fn (x) ->
fn (y) ->
case x < y do
true -> lt
false ->
if x == y do
eq
else
gt
end
end
end
end
end
end
end
end
# "use strict";
# exports.unsafeCompareImpl = function (lt) {
... | 14.432432 | 50 | 0.445693 |
ab9fc19e92a5ef51ba0f8603e4ec90fc9e85413d | 3,937 | ex | Elixir | web/channels/presence.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 6 | 2017-06-13T19:35:05.000Z | 2020-05-05T06:50:34.000Z | web/channels/presence.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | null | null | null | web/channels/presence.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 1 | 2021-09-27T11:58:11.000Z | 2021-09-27T11:58:11.000Z | defmodule NlbPipeline.Presence do
@moduledoc """
Provides presence tracking to channels and processes.
See the [`Phoenix.Presence`](http://hexdocs.pm/phoenix/Phoenix.Presence.html)
docs for more details.
## Usage
Presences can be tracked in your channel after joining:
defmodule NlbPipeline.MyChannel do
... | 32.270492 | 81 | 0.673609 |
ab9ff20de3117c84913525a8c7b28bb7caaaf4d8 | 4,963 | ex | Elixir | lib/cbor/encoder.ex | scalpel-software/cbor | b81571c1e6753c73234b29c651f9081240713190 | [
"MIT"
] | 15 | 2019-07-22T22:43:13.000Z | 2022-03-10T03:02:22.000Z | lib/cbor/encoder.ex | scalpel-software/cbor | b81571c1e6753c73234b29c651f9081240713190 | [
"MIT"
] | 2 | 2020-11-13T14:59:38.000Z | 2021-09-14T01:33:49.000Z | lib/cbor/encoder.ex | scalpel-software/cbor | b81571c1e6753c73234b29c651f9081240713190 | [
"MIT"
] | 4 | 2020-02-04T01:19:06.000Z | 2021-09-14T01:20:17.000Z | defprotocol CBOR.Encoder do
@doc """
Converts an Elixir data type to its representation in CBOR.
"""
def encode_into(element, acc)
end
defimpl CBOR.Encoder, for: Atom do
def encode_into(false, acc), do: <<acc::binary, 0xf4>>
def encode_into(true, acc), do: <<acc::binary, 0xf5>>
def encode_into(nil, acc)... | 28.687861 | 89 | 0.679831 |
ab9ff57ac7d9790dedddcb42fce84a3943e20152 | 318 | exs | Elixir | priv/repo/migrations/20170707020954_create_presentations_presenters.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170707020954_create_presentations_presenters.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | priv/repo/migrations/20170707020954_create_presentations_presenters.exs | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsTools.Repo.Migrations.CreatePresentationsPresenters do
use Ecto.Migration
def change do
create table(:presentations_presenters, primary_key: true) do
add :presentation_id, references(:presentations)
add :profile_id, references(:profiles)
timestamps()
end
end
end
| 22.714286 | 70 | 0.738994 |
aba0057d2f64c3d469e8a9624255179579238985 | 2,028 | ex | Elixir | web/controllers/student_controller.ex | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | web/controllers/student_controller.ex | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | web/controllers/student_controller.ex | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | defmodule ClassList.StudentController do
use ClassList.Web, :controller
alias ClassList.Student
def index(conn, _params) do
students =
Student
|> order_by([:last_name, :first_name])
|> Repo.all
|> Repo.preload(:class)
render(conn, "index.html", students: students)
end
def ne... | 28.971429 | 80 | 0.630178 |
aba02e5e243fc7726908463eb81abc3841a12f23 | 1,282 | ex | Elixir | lib/live_ui_kit/ui/spinner.ex | liveuikit/live_ui_kit | 8e7b5f1ab5ff0c3edf47a002af78c7bb36f8aa71 | [
"MIT"
] | 2 | 2022-03-01T23:32:08.000Z | 2022-03-08T10:32:14.000Z | lib/live_ui_kit/ui/spinner.ex | liveuikit/live_ui_kit | 8e7b5f1ab5ff0c3edf47a002af78c7bb36f8aa71 | [
"MIT"
] | null | null | null | lib/live_ui_kit/ui/spinner.ex | liveuikit/live_ui_kit | 8e7b5f1ab5ff0c3edf47a002af78c7bb36f8aa71 | [
"MIT"
] | null | null | null | defmodule LiveUiKit.UI.Spinner do
use LiveUiKit.UI
@moduledoc """
Spinners indicate the loading state of a component or page.
"""
@doc ~S'''
Spinner component:
## Examples
<.spinner />
<.spinner visible={false} />
<.spinner class="w-8 h-8 text-primary animate-spin" />
<.spinner... | 30.52381 | 176 | 0.624805 |
aba03407af7ae9672a199deac3f02c2722699491 | 412 | ex | Elixir | lib/hl7/2.3.1/segments/mfa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/mfa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/mfa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.MFA do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
record_level_event_code: nil,
mfn_control_id: nil,
event_completion_date_time: DataTypes.Ts,
mfn_record_level_error_return: DataTypes.Ce,... | 22.888889 | 50 | 0.713592 |
aba042cfbd62e56fa79f12a3d51f85421a3fdfbd | 1,937 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/account_warning.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/account_warning.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/alert_center/lib/google_api/alert_center/v1beta1/model/account_warning.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... | 38.74 | 331 | 0.745483 |
aba058ad52bcb838873bdae29ba54b3c76327e19 | 307 | ex | Elixir | lib/sshkit/host.ex | carterbryden/sshkit.ex | 871a8d29393e33406f541cf72d94eee9c22b5993 | [
"MIT"
] | 112 | 2017-01-26T14:03:49.000Z | 2022-02-23T18:36:23.000Z | lib/sshkit/host.ex | carterbryden/sshkit.ex | 871a8d29393e33406f541cf72d94eee9c22b5993 | [
"MIT"
] | 129 | 2017-01-26T14:04:31.000Z | 2021-12-09T13:25:50.000Z | lib/sshkit/host.ex | carterbryden/sshkit.ex | 871a8d29393e33406f541cf72d94eee9c22b5993 | [
"MIT"
] | 15 | 2017-03-09T17:11:33.000Z | 2021-11-25T10:47:03.000Z | defmodule SSHKit.Host do
@moduledoc ~S"""
Provides the data structure holding the information
about how to connect to a host.
## Examples
```
%SSHKit.Host{name: "3.eg.io", options: [port: 2223]}
|> SSHKit.context()
|> SSHKit.run("touch base")
```
"""
defstruct [:name, :options]
end
| 19.1875 | 54 | 0.638436 |
aba05d4614faa99f6425d9198e08d8f22cea9dd8 | 3,253 | ex | Elixir | year_2019/lib/day_13/game.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/lib/day_13/game.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/lib/day_13/game.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day13.Game do
defstruct pid: nil, paddle: {0, 0}, ball: {0, 0}
def output do
machine = 13 |> InputFile.contents_of() |> Intcode.build
my_pid = self()
spawn(fn -> Intcode.execute(machine, {:mailbox, my_pid}) end)
retrieve_output([])
|> Enum.chunk_every(3)
|> build_screen(%{})
|... | 24.832061 | 104 | 0.526591 |
aba062f112b0bc8d6eab67c7bd504a1a6fd23f83 | 289 | exs | Elixir | book-material/intro/handle_open.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | book-material/intro/handle_open.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | book-material/intro/handle_open.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | handle_open = fn
{:ok, file} -> "First line: #{IO.read(file, :line)}"
{_, error} -> "Error: #{:file.format_error(error)}"
end
# call with a file that exists
IO.puts(handle_open.(File.open("Rakefile")))
# and then with one that doesn't
IO.puts(handle_open.(File.open("nonexistent")))
| 28.9 | 54 | 0.66782 |
aba06865319ccd0c188529c3b05129f8355e3703 | 2,160 | ex | Elixir | lib/zen_ex/http_client.ex | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | lib/zen_ex/http_client.ex | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | lib/zen_ex/http_client.ex | otoyo/zendex | 4995571464e11e891d7136a97b135be313d14cb1 | [
"CC0-1.0"
] | null | null | null | defmodule ZenEx.HTTPClient do
@moduledoc false
alias ZenEx.Collection
def auth_conn(opts \\ %{}) do
Tesla.client([
{Tesla.Middleware.JSON, [engine: Jason]},
{Tesla.Middleware.BasicAuth,
Map.merge(%{username: "#{get_env(:user)}/token", password: "#{get_env(:api_token)}"}, opts)},
Tes... | 26.024096 | 100 | 0.623611 |
aba077e8901e40f384bc2e587ff20c678a079d42 | 1,433 | exs | Elixir | mix.exs | adipurnama/kaffy | d940958b8730648b060dff8a89232dff082a090e | [
"MIT"
] | null | null | null | mix.exs | adipurnama/kaffy | d940958b8730648b060dff8a89232dff082a090e | [
"MIT"
] | null | null | null | mix.exs | adipurnama/kaffy | d940958b8730648b060dff8a89232dff082a090e | [
"MIT"
] | null | null | null | defmodule Kaffy.MixProject do
use Mix.Project
@version "0.8.1"
def project do
[
app: :kaffy,
version: @version,
elixir: "~> 1.7",
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
nam... | 21.073529 | 62 | 0.54501 |
aba07f8708e509a1dd1d4f0fdfd30587eae07c7e | 779 | ex | Elixir | test/support/channel_case.ex | lorenzosinisi/webkontist | 6af002ece0eb56b83c8d26d7f7e7ef6ca6e1562f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | lorenzosinisi/webkontist | 6af002ece0eb56b83c8d26d7f7e7ef6ca6e1562f | [
"MIT"
] | 1 | 2021-05-10T13:24:52.000Z | 2021-05-10T13:24:52.000Z | test/support/channel_case.ex | lorenzosinisi/webkontist | 6af002ece0eb56b83c8d26d7f7e7ef6ca6e1562f | [
"MIT"
] | null | null | null | defmodule WebKontistWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interact... | 24.34375 | 59 | 0.72914 |
aba080834b2c601422e97ee341a33485c625d9b2 | 1,154 | ex | Elixir | lib/adaptable_costs_evaluator/application.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | lib/adaptable_costs_evaluator/application.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | lib/adaptable_costs_evaluator/application.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluator.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
AdaptableCostsEvaluator.Repo,
# Start the Te... | 32.971429 | 81 | 0.739168 |
aba08981e984f32b468426f9ff3762e5b1a5d5c2 | 2,726 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_statistical_table.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_statistical_table.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_statistical_table.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 50.481481 | 427 | 0.777329 |
aba11ff04f9a827f4e9dba72f00ff4aa19e5831f | 1,530 | ex | Elixir | lib/saxy/emitter.ex | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | 1 | 2020-04-29T08:08:22.000Z | 2020-04-29T08:08:22.000Z | lib/saxy/emitter.ex | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | null | null | null | lib/saxy/emitter.ex | marcelotto/saxy | a942d8d2d3ff028294b667487b9251d690ca9364 | [
"MIT"
] | null | null | null | defmodule Saxy.Emitter do
@moduledoc false
alias Saxy.State
defmacro emit_event({:<-, _, [state, emit_args]}, on_halt, do: block) do
quote do
case Saxy.Emitter.emit(unquote_splicing(emit_args)) do
{:ok, new_state} ->
unquote(state) = new_state
unquote(block)
{:stop... | 27.818182 | 89 | 0.627451 |
aba122ca89d3fa36d1de8235a594f73dd5321971 | 527 | ex | Elixir | test/support/fake_benchmark_printer.ex | mayel/benchee | faf3c85c241a4c7eeaab8edfc85094bbbb10c44d | [
"MIT"
] | 636 | 2016-06-06T07:58:36.000Z | 2019-03-19T15:27:37.000Z | test/support/fake_benchmark_printer.ex | mayel/benchee | faf3c85c241a4c7eeaab8edfc85094bbbb10c44d | [
"MIT"
] | 198 | 2016-06-18T08:19:15.000Z | 2019-03-19T15:32:37.000Z | test/support/fake_benchmark_printer.ex | mayel/benchee | faf3c85c241a4c7eeaab8edfc85094bbbb10c44d | [
"MIT"
] | 43 | 2016-06-08T08:04:30.000Z | 2019-02-13T17:10:24.000Z | defmodule Benchee.Test.FakeBenchmarkPrinter do
@moduledoc false
def duplicate_benchmark_warning(name) do
send(self(), {:duplicate, name})
end
def configuration_information(_) do
send(self(), :configuration_information)
end
def benchmarking(name, input_information, _) do
send(self(), {:benchma... | 21.958333 | 58 | 0.73055 |
aba1414c723311cb43880b3ad41d1281644bdf77 | 62 | exs | Elixir | config/test.exs | ninoseki/kanshi | fc6d607e33eb6a7e4a61fd91d0f481a863ea3d9a | [
"MIT"
] | 2 | 2019-01-14T11:17:30.000Z | 2019-01-19T17:40:32.000Z | config/test.exs | ninoseki/kanshi | fc6d607e33eb6a7e4a61fd91d0f481a863ea3d9a | [
"MIT"
] | 1 | 2020-08-07T02:41:03.000Z | 2020-08-07T02:41:03.000Z | config/test.exs | ninoseki/kanshi | fc6d607e33eb6a7e4a61fd91d0f481a863ea3d9a | [
"MIT"
] | null | null | null | use Mix.Config
config :kanshi,
regex_to_monitor: ~r/apple/
| 12.4 | 29 | 0.741935 |
aba155bde124d9ed6a07ce90ad47864c2ba1fe87 | 1,344 | exs | Elixir | clients/replica_pool_updater/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/replica_pool_updater/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/replica_pool_updater/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | defmodule GoogleApi.ReplicaPoolUpdater.V1beta1.Mixfile do
use Mix.Project
def project do
[app: :google_api_replica_pool_updater,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),... | 28.595745 | 183 | 0.645089 |
aba15a2281ad3b7db008537f5f0e25f23320fc14 | 3,077 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_train_processor_version_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_train_processor_version_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_train_processor_version_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... | 42.150685 | 224 | 0.78973 |
aba1863d7710f14551b1307235a22ff658e1cb54 | 467 | exs | Elixir | elixir_rakv/mix.exs | OCLC-Research/ra-examples | cf7bb8813562e35c4bd0d6e1032f127f72f376de | [
"Apache-2.0"
] | null | null | null | elixir_rakv/mix.exs | OCLC-Research/ra-examples | cf7bb8813562e35c4bd0d6e1032f127f72f376de | [
"Apache-2.0"
] | null | null | null | elixir_rakv/mix.exs | OCLC-Research/ra-examples | cf7bb8813562e35c4bd0d6e1032f127f72f376de | [
"Apache-2.0"
] | null | null | null | defmodule RaKv.MixProject do
use Mix.Project
def project do
[
app: :elixir_rakv,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_ap... | 16.678571 | 59 | 0.563169 |
aba18956694b4a0da16337ce6b915fb5007184d3 | 1,771 | exs | Elixir | mix.exs | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | null | null | null | mix.exs | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | null | null | null | mix.exs | BrianPhilips/ecto_nested_changeset | 4d16f2955c1e7c71e25685030f66aefeba5ce0fc | [
"MIT"
] | null | null | null | defmodule EctoNestedChangeset.MixProject do
use Mix.Project
@version "0.1.3"
@source_url "https://github.com/woylie/ecto_nested_changeset"
def project do
[
app: :ecto_nested_changeset,
version: @version,
name: "Ecto Nested Changeset",
description: description(),
elixir: "~> 1... | 23.932432 | 71 | 0.561829 |
aba18c7b2863135b1d5a4c0c04653b6df9f6252f | 1,960 | ex | Elixir | clients/ad_mob/lib/google_api/ad_mob/v1/model/report_footer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_mob/lib/google_api/ad_mob/v1/model/report_footer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_mob/lib/google_api/ad_mob/v1/model/report_footer.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... | 39.2 | 248 | 0.738776 |
aba18cd55ca9700cdba2452d8014f6240849030e | 295 | ex | Elixir | apps/email/lib/email/deliverable/users.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/email/lib/email/deliverable/users.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/email/lib/email/deliverable/users.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defimpl Email.Deliverable, for: Core.PubSub.ResetTokenCreated do
def email(%{item: reset}), do: Email.Builder.ResetToken.email(reset)
end
defimpl Email.Deliverable, for: Core.PubSub.PasswordlessLoginCreated do
def email(%{item: login}), do: Email.Builder.PasswordlessLogin.email(login)
end
| 36.875 | 77 | 0.786441 |
aba1c7afa526d456c0873f6f51b4a52aae32c5e0 | 84 | exs | Elixir | test/test_helper.exs | maxbeizer/ueberauth_heroku_example | e0dce54d9dee70be28ca25422cd2d4a59571248b | [
"MIT"
] | null | null | null | test/test_helper.exs | maxbeizer/ueberauth_heroku_example | e0dce54d9dee70be28ca25422cd2d4a59571248b | [
"MIT"
] | null | null | null | test/test_helper.exs | maxbeizer/ueberauth_heroku_example | e0dce54d9dee70be28ca25422cd2d4a59571248b | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(UeberauthHerokuExample.Repo, :manual)
| 16.8 | 68 | 0.821429 |
aba1dfb55c42b10146ddb8fc315d6429673236a9 | 459 | exs | Elixir | config/test.exs | aseigo/kandesk | fd20322e2b1b3f7a23f34002d442ac223afb5167 | [
"MIT"
] | 158 | 2020-09-01T13:21:59.000Z | 2022-03-31T12:41:03.000Z | config/test.exs | aseigo/kandesk | fd20322e2b1b3f7a23f34002d442ac223afb5167 | [
"MIT"
] | 8 | 2020-09-01T21:09:05.000Z | 2022-01-20T21:46:18.000Z | config/test.exs | aseigo/kandesk | fd20322e2b1b3f7a23f34002d442ac223afb5167 | [
"MIT"
] | 18 | 2020-09-01T13:23:45.000Z | 2022-02-15T09:47:39.000Z | use Mix.Config
# Configure your database
config :kandesk, Kandesk.Repo,
username: "postgres",
password: "postgres",
database: "kandesk_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :kand... | 24.157895 | 56 | 0.732026 |
aba1f11c1847110d682037b4a79686fa7de8b72f | 464 | ex | Elixir | samples/client/petstore/elixir/lib/swagger_petstore/model/boolean.ex | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/swagger_petstore/model/boolean.ex | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | 1 | 2022-01-06T22:28:02.000Z | 2022-01-06T22:28:02.000Z | samples/client/petstore/elixir/lib/swagger_petstore/model/boolean.ex | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule SwaggerPetstore.Model.Boolean do
@moduledoc """
True or False indicator
"""
@derive [Poison.Encoder]
defstruct [
]
@type t ::... | 17.846154 | 75 | 0.702586 |
aba205007e68f178208ad12f1c38c554ebe959b8 | 3,657 | ex | Elixir | lib/gorpo/drivers/httpc.ex | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 3 | 2017-01-06T03:28:00.000Z | 2022-01-04T01:10:13.000Z | lib/gorpo/drivers/httpc.ex | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 2 | 2017-11-28T17:13:33.000Z | 2017-11-28T19:54:28.000Z | lib/gorpo/drivers/httpc.ex | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 1 | 2017-11-28T14:20:33.000Z | 2017-11-28T14:20:33.000Z | defmodule Gorpo.Drivers.HTTPC do
@moduledoc """
A driver that uses erlang's httpc library.
"""
@type url :: String.t
@type method :: :get | :put
@type headers :: [{String.t, String.t}]
@type payload :: binary | nil
@type options :: [params: [{String.t, String.t}]]
@typep charset :: :utf8 | :latin1
... | 26.5 | 83 | 0.586546 |
aba21848158ed2cf2a7fcb36d5390ed13205456a | 9,716 | exs | Elixir | test/teslamate/vehicles/vehicle/suspend_logging_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | 1 | 2020-05-17T05:05:22.000Z | 2020-05-17T05:05:22.000Z | test/teslamate/vehicles/vehicle/suspend_logging_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/suspend_logging_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.SuspendLoggingTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Vehicles.Vehicle
alias TeslaMate.Vehicles.Vehicle
test "immediately returns :ok if asleep", %{test: name} do
events = [
{:ok, %TeslaApi.Vehicle{state: "asleep"}}
]
:ok = start_... | 29.803681 | 97 | 0.635858 |
aba22783fe0b1575d75e471b7545cdd17eab1981 | 932 | ex | Elixir | apps/astarte_appengine_api/lib/astarte_appengine_api_web/controllers/health_controller.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 4 | 2018-03-15T14:26:43.000Z | 2019-12-20T15:07:10.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api_web/controllers/health_controller.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 27 | 2018-06-28T16:00:07.000Z | 2019-12-19T10:05:36.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api_web/controllers/health_controller.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 2 | 2018-03-16T09:37:29.000Z | 2019-11-18T17:37:42.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 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... | 29.125 | 74 | 0.751073 |
aba2475d0969f05235f6e499c42da61366d8c76e | 670 | exs | Elixir | test/ecto/adapters/sql_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/sql_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/sql_test.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQLTest do
use ExUnit.Case, async: true
defmodule Adapter do
use Ecto.Adapters.SQL
def supports_ddl_transaction?, do: false
end
Application.put_env(:ecto, __MODULE__.Repo, adapter: Adapter)
defmodule Repo do
use Ecto.Repo, otp_app: :ecto
end
Application.put_env(:ect... | 24.814815 | 89 | 0.734328 |
aba2711e79ecfd06b93f6c2a98d150277ae9e2a0 | 225 | ex | Elixir | lib/slack_rtm/api.ex | mtgto/Elixir-SlackRTM | bc9ab1d4c20c7fd4c0a6998ee7319bb2fd22c91d | [
"MIT"
] | null | null | null | lib/slack_rtm/api.ex | mtgto/Elixir-SlackRTM | bc9ab1d4c20c7fd4c0a6998ee7319bb2fd22c91d | [
"MIT"
] | null | null | null | lib/slack_rtm/api.ex | mtgto/Elixir-SlackRTM | bc9ab1d4c20c7fd4c0a6998ee7319bb2fd22c91d | [
"MIT"
] | null | null | null | defmodule SlackRtm.API do
use HTTPoison.Base
def process_url(token) do
"https://slack.com/api/rtm.start?token=#{URI.encode token}"
end
def process_response_body(body) do
body
|> Poison.decode!
end
end
| 17.307692 | 63 | 0.697778 |
aba27fdb41a61311ff59cb593ad2528236fb0f51 | 1,127 | exs | Elixir | apps/cloud_logger/config/config.exs | rosetta-home/example_fw | 7359bd0dec05dc2df73b49b815fb844af842098d | [
"Apache-2.0"
] | 67 | 2017-03-25T19:18:09.000Z | 2021-02-15T13:09:57.000Z | apps/cloud_logger/config/config.exs | rosetta-home/example_fw | 7359bd0dec05dc2df73b49b815fb844af842098d | [
"Apache-2.0"
] | 2 | 2018-08-21T20:12:58.000Z | 2020-04-29T23:06:53.000Z | apps/cloud_logger/config/config.exs | rosetta-home/example_fw | 7359bd0dec05dc2df73b49b815fb844af842098d | [
"Apache-2.0"
] | 15 | 2017-03-25T19:16:04.000Z | 2020-07-06T00:14:09.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... | 36.354839 | 73 | 0.753327 |
aba29b62afad9b44ff2cf8147e31fb2f775637b5 | 1,725 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_folder_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_folder_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_folder_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 ... | 36.702128 | 282 | 0.755942 |
aba2acb5b4f27ef3680e342ff17588e311e2564d | 616 | ex | Elixir | lib/credo/cli/output/formatter/flycheck.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/cli/output/formatter/flycheck.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | lib/credo/cli/output/formatter/flycheck.ex | ayrat555/credo | 517699f82fc6ebe266152d997b64878b334e7bd8 | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Output.Formatter.Flycheck do
alias Credo.CLI.Filename
alias Credo.Issue
alias Credo.CLI.Output
alias Credo.CLI.Output.UI
def print_issues(issues) do
Enum.each(issues, fn issue ->
issue
|> to_flycheck()
|> UI.puts()
end)
end
def to_flycheck(
%Issue{
... | 21.241379 | 53 | 0.608766 |
aba2c0715d0863282de418ff6405f0301271fcc0 | 691 | ex | Elixir | lib/plausible/auth/auth.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 2 | 2020-05-16T13:48:44.000Z | 2020-05-22T09:52:36.000Z | lib/plausible/auth/auth.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 2 | 2020-07-09T21:44:35.000Z | 2020-07-14T07:06:10.000Z | lib/plausible/auth/auth.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | defmodule Plausible.Auth do
use Plausible.Repo
alias Plausible.Auth
alias Plausible.Stats.Clickhouse, as: Stats
def create_user(name, email) do
%Auth.User{}
|> Auth.User.new(%{name: name, email: email})
|> Repo.insert()
end
def find_user_by(opts) do
Repo.get_by(Auth.User, opts)
end
de... | 22.290323 | 49 | 0.606368 |
aba30b0dc0c116ce3699c1d674cb0642fae47a0b | 28,598 | ex | Elixir | lib/advent_of_code/day3.ex | h4cc/adventofcode-2016 | 0cc75f6238aa90555c395e4d6c5929789756fb53 | [
"MIT"
] | null | null | null | lib/advent_of_code/day3.ex | h4cc/adventofcode-2016 | 0cc75f6238aa90555c395e4d6c5929789756fb53 | [
"MIT"
] | null | null | null | lib/advent_of_code/day3.ex | h4cc/adventofcode-2016 | 0cc75f6238aa90555c395e4d6c5929789756fb53 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day3 do
@input """
330 143 338
769 547 83
930 625 317
669 866 147
15 881 210
662 15 70
273 277 707
50 592 770
280 313 407
642 487 372
94 619 295
734 243 141
220 141 515
198 824 745
210 787 964
213 627 601
918 4 447
8... | 16.093416 | 82 | 0.544024 |
aba31443f260bb071397478736e89ac244fa4000 | 1,382 | ex | Elixir | lib/workbench_web/endpoint.ex | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | lib/workbench_web/endpoint.ex | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | lib/workbench_web/endpoint.ex | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | defmodule WorkbenchWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :workbench
socket("/socket", WorkbenchWeb.UserSocket,
websocket: true,
longpoll: false
)
socket("/live", Phoenix.LiveView.Socket)
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if yo... | 26.075472 | 70 | 0.700434 |
aba316288099c54db7acacf06a61909739d74b7a | 113 | ex | Elixir | server/lib/events_app/repo.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/lib/events_app/repo.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/lib/events_app/repo.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | 1 | 2021-04-10T18:37:30.000Z | 2021-04-10T18:37:30.000Z | defmodule CompanyTest.Repo do
use Ecto.Repo,
otp_app: :events_app,
adapter: Ecto.Adapters.Postgres
end
| 18.833333 | 35 | 0.743363 |
aba321a66546820ede906a503ca0a819fd437113 | 1,975 | ex | Elixir | web/jobs/column_values_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/jobs/column_values_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/jobs/column_values_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | require IEx
defmodule AfterGlow.ColumnValuesTasks do
alias AfterGlow.Repo
alias AfterGlow.Table
alias AfterGlow.Column
alias AfterGlow.ColumnValue
import Ecto.Query, only: [from: 2]
def save(table_id, results) do
table = Repo.one(from(t in Table, where: t.id == ^table_id)) |> Repo.preload(:columns)
... | 28.623188 | 90 | 0.598987 |
aba3392b7d118250862ad8c78d79d7247f34e30b | 6,551 | ex | Elixir | lib/rihanna/job.ex | slashdotdash/rihanna | 567672735057ce15b34cb394999164073c795746 | [
"MIT"
] | null | null | null | lib/rihanna/job.ex | slashdotdash/rihanna | 567672735057ce15b34cb394999164073c795746 | [
"MIT"
] | null | null | null | lib/rihanna/job.ex | slashdotdash/rihanna | 567672735057ce15b34cb394999164073c795746 | [
"MIT"
] | 1 | 2019-10-10T23:24:10.000Z | 2019-10-10T23:24:10.000Z | defmodule Rihanna.Job do
require Logger
@type result :: any
@type reason :: any
@type t :: %__MODULE__{}
@callback perform(arg :: any) :: :ok | {:ok, result} | :error | {:error, reason}
@moduledoc """
A behaviour for Rihanna jobs.
You must implement `c:Rihanna.Job.perform/1` in your job, and it must... | 22.434932 | 110 | 0.559915 |
aba342e0d746973f4e8d2fde910f774b4e3c822a | 1,766 | exs | Elixir | mix.exs | gilacost/lettuce | 97bf7cd0fdd1300a251c5aff7ba1cccf50833d65 | [
"MIT"
] | 25 | 2020-03-02T12:26:47.000Z | 2021-10-04T03:49:25.000Z | mix.exs | gilacost/lettuce | 97bf7cd0fdd1300a251c5aff7ba1cccf50833d65 | [
"MIT"
] | 16 | 2020-04-03T16:21:57.000Z | 2021-08-02T10:23:32.000Z | mix.exs | gilacost/lettuce | 97bf7cd0fdd1300a251c5aff7ba1cccf50833d65 | [
"MIT"
] | 1 | 2020-04-11T13:35:15.000Z | 2020-04-11T13:35:15.000Z | defmodule Lettuce.MixProject do
use Mix.Project
def project do
[
app: :lettuce,
version: "0.1.5",
elixir: "~> 1.10.2",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
package: package(),
dialyzer: dialyzer(),
test_cove... | 23.236842 | 113 | 0.56795 |
aba350269cb06aeec8ead59849146a47da301c21 | 2,517 | exs | Elixir | config/prod.exs | ukisami/fdl-messenger-bot | 571d29795612a21a3be21ce9f8851afa5a7b387f | [
"MIT"
] | null | null | null | config/prod.exs | ukisami/fdl-messenger-bot | 571d29795612a21a3be21ce9f8851afa5a7b387f | [
"MIT"
] | null | null | null | config/prod.exs | ukisami/fdl-messenger-bot | 571d29795612a21a3be21ce9f8851afa5a7b387f | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 34.958333 | 80 | 0.725467 |
aba365d3fa8107424023914d8d2facb917fe2f8f | 365 | exs | Elixir | priv/repo/seeds.exs | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | 2 | 2019-02-26T17:33:21.000Z | 2019-04-06T21:04:32.000Z | priv/repo/seeds.exs | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# SmsWithPhoenix.Repo.insert!(%SmsWithPhoenix.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on... | 30.416667 | 63 | 0.717808 |
aba37b5b0edafa51ad4daee0bdb671d49a6e1c90 | 1,974 | ex | Elixir | lib/codes/codes_o25.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_o25.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_o25.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_O25 do
alias IcdCode.ICDCode
def _O2510 do
%ICDCode{full_code: "O2510",
category_code: "O25",
short_code: "10",
full_name: "Malnutrition in pregnancy, unspecified trimester",
short_name: "Malnutrition in pregnancy, unspecified trimester",
... | 32.360656 | 75 | 0.627153 |
aba397de5769efe2816c36e6b3cde14b1d45a0ec | 1,570 | ex | Elixir | web/web.ex | kerlak/phoenix-elm-test | 4f999504069cc6f96e83ce7c918ada5947c96eb7 | [
"MIT"
] | 1 | 2019-03-06T16:02:16.000Z | 2019-03-06T16:02:16.000Z | web/web.ex | kerlak/phoenix-elm-test | 4f999504069cc6f96e83ce7c918ada5947c96eb7 | [
"MIT"
] | null | null | null | web/web.ex | kerlak/phoenix-elm-test | 4f999504069cc6f96e83ce7c918ada5947c96eb7 | [
"MIT"
] | null | null | null | defmodule Pet.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Pet.Web, :controller
use Pet.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and clean... | 19.146341 | 88 | 0.656688 |
aba3b8f1f24074506ac30621759fd2a5dcde07b0 | 2,576 | ex | Elixir | kousa/lib/kousa/follow_logic.ex | HakobiDev/dogehouse | dad9fb669f9d0c53c4b0f1cc9d5ec6d99e380d6b | [
"MIT"
] | 1 | 2021-05-03T17:10:36.000Z | 2021-05-03T17:10:36.000Z | kousa/lib/kousa/follow_logic.ex | 32Bites/dogehouse | ac70ced30a7f967979715a98a47ea2ac92f3344d | [
"MIT"
] | null | null | null | kousa/lib/kousa/follow_logic.ex | 32Bites/dogehouse | ac70ced30a7f967979715a98a47ea2ac92f3344d | [
"MIT"
] | null | null | null | defmodule Kousa.Follow do
alias Beef.Follows
alias Beef.Users
alias Beef.UserBlocks
alias Beef.Schemas.Follow
alias Beef.Schemas.Room
def get_follow_list(user_id, user_id_to_get_list_for, get_following_list, cursor) do
if get_following_list do
Follows.get_following(user_id, user_id_to_get_list_fo... | 32.2 | 132 | 0.689829 |
aba3cb7255e284d06e3bdb9d977ddcef7b2aab3a | 780 | exs | Elixir | priv/repo/migrations/20170125142242_create_tekst.exs | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | priv/repo/migrations/20170125142242_create_tekst.exs | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | priv/repo/migrations/20170125142242_create_tekst.exs | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | defmodule Elasr.Repo.Migrations.CreateTekst do
use Ecto.Migration
def change do
create table(:tekstovi) do
add :naslov, :string
add :ukratko, :string, size: 2048
add :tekst, :string, size: 8192
#add :slike, {:array, :string}
#add :fajlovi, {:array, :string}
add :slike, :map
... | 30 | 70 | 0.647436 |
aba3e145f06fcfb354e34fd880df4a6b1d82be41 | 4,870 | exs | Elixir | test/protox/parse_test.exs | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 176 | 2017-02-01T13:09:25.000Z | 2022-03-18T02:36:17.000Z | test/protox/parse_test.exs | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 94 | 2020-07-20T05:54:51.000Z | 2022-03-09T04:13:03.000Z | test/protox/parse_test.exs | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 19 | 2017-02-13T09:17:14.000Z | 2022-02-22T09:29:18.000Z | defmodule Protox.ParseTest do
use ExUnit.Case
setup_all do
data = File.read!("./test/samples/file_descriptor_set.bin")
%{enums: enums, messages: messages} = Protox.Parse.parse(data)
{:ok, enums: enums, messages: messages}
end
test "Parse FileDescriptorSet, protobuf 3 enums", %{enums: enums} do
... | 40.247934 | 97 | 0.629569 |
aba45eedabf3945632fb0c316fb970e9211d6705 | 17,789 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/campaigns.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/campaigns.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/campaigns.ex | 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... | 48.47139 | 486 | 0.626736 |
aba4855dae9871cde96cc2014facccad81cc2be1 | 4,756 | ex | Elixir | lib/calendar/julian.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | lib/calendar/julian.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | lib/calendar/julian.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule Timex.Calendar.Julian do
@moduledoc """
This module contains functions for working with dates in the Julian calendar.
"""
require Bitwise
import Timex.Macros
alias Timex.Types
@doc """
Returns the Julian day number for the given Erlang date (gregorian)
The Julian date (JD) is a continuous ... | 31.919463 | 105 | 0.625526 |
aba490c94f528dd9c987fb58bb1db74674a2a6d4 | 12,296 | ex | Elixir | lib/live_beats_web/live/player_live.ex | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | 1 | 2022-02-15T08:06:08.000Z | 2022-02-15T08:06:08.000Z | lib/live_beats_web/live/player_live.ex | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | null | null | null | lib/live_beats_web/live/player_live.ex | umair-akb/spotifyduo | f32517602c977ad1cf70eaf0e780d839f0ea85f6 | [
"MIT"
] | null | null | null | defmodule LiveBeatsWeb.PlayerLive do
use LiveBeatsWeb, {:live_view, container: {:div, []}}
alias LiveBeats.{Accounts, MediaLibrary}
alias LiveBeats.MediaLibrary.Song
on_mount {LiveBeatsWeb.UserAuth, :current_user}
def render(assigns) do
~H"""
<!-- player -->
<div id="audio-player" phx-hook="Aud... | 32.965147 | 205 | 0.619551 |
aba4bff70e0647e0a025ec8119fda8287254d746 | 3,671 | exs | Elixir | test/dolla_test.exs | maartenvanvliet/dolla | 3620cb4613fa63363014cd78207ddbb055e0818d | [
"BSD-3-Clause"
] | 7 | 2016-06-28T08:36:31.000Z | 2020-02-13T02:39:16.000Z | test/dolla_test.exs | maartenvanvliet/dolla | 3620cb4613fa63363014cd78207ddbb055e0818d | [
"BSD-3-Clause"
] | null | null | null | test/dolla_test.exs | maartenvanvliet/dolla | 3620cb4613fa63363014cd78207ddbb055e0818d | [
"BSD-3-Clause"
] | 3 | 2017-02-22T22:40:04.000Z | 2020-02-11T09:44:34.000Z | defmodule DollaTest do
use ExUnit.Case
alias Dolla.Receipt
alias Dolla.Response
doctest Dolla
setup do
bypass = Bypass.open
Application.put_env(:dolla, :endpoint, "http://localhost:#{bypass.port}/verifyReceipt")
{:ok, bypass: bypass}
end
test "verify a good receipt", %{bypass: bypass} do
... | 37.845361 | 196 | 0.676927 |
aba4d7d6175ad630879d21cfc9aa8ad85e6c39a6 | 455 | ex | Elixir | community/betterdev/lib/betterdev/web/controllers/slack_controller.ex | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 79 | 2017-07-03T13:04:08.000Z | 2022-02-11T13:59:37.000Z | community/betterdev/lib/betterdev/web/controllers/slack_controller.ex | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 16 | 2017-07-09T03:16:27.000Z | 2022-01-14T14:29:57.000Z | community/betterdev/lib/betterdev/web/controllers/slack_controller.ex | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 10 | 2017-07-09T02:58:59.000Z | 2021-09-14T08:01:02.000Z | defmodule Betterdev.Web.SlackController do
use Betterdev.Web, :controller
def index(conn, params) do
code = params["code"]
response = Slack.Web.Oauth.access(client_id, client_secret, params["code"], %{redirect_uri: "http://127.0.0.1:4000/bot/slack"})
IO.inspect response
html conn, response
end
... | 32.5 | 131 | 0.727473 |
aba4e1b6206b2fa70e84103b907e81ec1fd4c8c9 | 1,421 | ex | Elixir | chapter-17/otp-supervisors-2/stack/lib/stack/server.ex | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 55 | 2015-12-09T09:23:50.000Z | 2022-01-31T21:14:59.000Z | chapter-18/otp-applications-1/stack/lib/stack/server.ex | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 3 | 2016-06-15T12:53:39.000Z | 2017-08-21T18:20:42.000Z | chapter-18/otp-applications-1/stack/lib/stack/server.ex | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 18 | 2016-01-01T18:18:23.000Z | 2021-05-24T02:22:42.000Z | defmodule Stack.Server do
use GenServer
#####
# External API
def start_link(stash_pid) do
GenServer.start_link(__MODULE__, stash_pid, name: __MODULE__)
end
def pop do
GenServer.call(__MODULE__, :pop)
end
def push(element) do
GenServer.cast(__MODULE__, {:push, element})
end
#####
#... | 25.375 | 93 | 0.703026 |
aba4e7df29506d999d039d9ed013d0411db4588a | 515 | ex | Elixir | lib/tlotc/event_manager.ex | JM4ier/tlotc | 14a6514c2607194a98c42c174751efdd5657f333 | [
"MIT"
] | null | null | null | lib/tlotc/event_manager.ex | JM4ier/tlotc | 14a6514c2607194a98c42c174751efdd5657f333 | [
"MIT"
] | null | null | null | lib/tlotc/event_manager.ex | JM4ier/tlotc | 14a6514c2607194a98c42c174751efdd5657f333 | [
"MIT"
] | null | null | null | defmodule TLotC.EventManager do
use Agent
def start_link(_opts) do
Agent.start_link(fn -> [] end, name: __MODULE__)
end
def register(kind, mod, fun) do
Agent.update(__MODULE__, &[{kind, mod, fun} | &1])
end
def dispatch(kind, args) do
args =
if is_tuple(args) do
Tuple.to_list(ar... | 18.392857 | 54 | 0.572816 |
aba500d73ac986123e309fb201dcd874c63f341e | 20,907 | ex | Elixir | lib/elixir/lib/io.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | defmodule IO do
@moduledoc ~S"""
Functions handling input/output (IO).
Many functions in this module expect an IO device as an argument.
An IO device must be a PID or an atom representing a process.
For convenience, Elixir provides `:stdio` and `:stderr` as
shortcuts to Erlang's `:standard_io` and `:standa... | 30.388081 | 96 | 0.671689 |
aba501ca1fcdb748b23118361a64bb80bdcc6d56 | 2,084 | exs | Elixir | apps/nerves_hub_web_core/mix.exs | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/mix.exs | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/mix.exs | nerves-hub/beamware | 5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.MixProject do
use Mix.Project
def project do
[
app: :nerves_hub_web_core,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
star... | 27.421053 | 66 | 0.505758 |
aba52ada45695f9e10e9c16a6a66e34494ef61f1 | 1,691 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/list_items_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/list_items_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/list_items_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... | 33.156863 | 131 | 0.725606 |
aba5514fbdebebbc4cca86bf83e0ea566ce67f4e | 1,797 | exs | Elixir | test/unit/resource_generator_test.exs | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | test/unit/resource_generator_test.exs | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | test/unit/resource_generator_test.exs | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 2 | 2018-01-19T15:48:27.000Z | 2020-03-01T00:29:35.000Z | defmodule RDF.ResourceId.GeneratorTest do
use RDF.Test.Case
doctest RDF.Resource.Generator
alias RDF.Resource.Generator
describe "RDF.BlankNode as a generator" do
test "generate/0" do
assert %BlankNode{} = bnode1 = Generator.generate(generator: BlankNode)
assert %BlankNode{} = bnode2 = Genera... | 31.526316 | 93 | 0.675014 |
aba56b0d4870fc5749b3ea748d5f4a865151c5a8 | 1,596 | ex | Elixir | lib/cache/cache_helper.ex | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 3 | 2017-03-14T12:26:35.000Z | 2022-02-19T20:17:09.000Z | lib/cache/cache_helper.ex | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 2 | 2018-01-08T11:37:51.000Z | 2018-01-08T12:43:16.000Z | lib/cache/cache_helper.ex | trojanh/slack-bot-test | 763e3722b39cb2aeaf57b2e7c49d92f0c97a4fcf | [
"MIT"
] | 2 | 2017-09-30T17:07:41.000Z | 2018-01-08T11:20:38.000Z | defmodule Tasker.CacheHelper do
alias Tasker.{Task, Group}
def get_cached_tasks() do
case ConCache.get(:tasker_cache, :tasks) do
nil -> []
active_tasks -> active_tasks
end
end
def get_cached_groups() do
case ConCache.get(:tasker_cache, :groups) do
nil -> []
groups -> group... | 24.181818 | 94 | 0.628446 |
aba56f45b18d3887e8987c5d8ed056e1c9163eb0 | 3,719 | ex | Elixir | lib/exsemantica_web/live/layout_live.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | null | null | null | lib/exsemantica_web/live/layout_live.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | 2 | 2020-07-21T20:53:13.000Z | 2020-07-21T20:54:15.000Z | lib/exsemantica_web/live/layout_live.ex | Chlorophytus/eactivitypub | 469346b4d5cd7ad2b575c245ac50fd71b00c4864 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaWeb.LayoutLive do
use ExsemanticaWeb, :live_view
require Exsemnesia.Handle128
require Logger
@max_search_entries 48
@algorithm 0.707
def login(socket, user) do
case user do
{:ok, user} ->
{:atomic, [remapped]} =
[Exsemnesia.Utils.do_case(user.handle)]
... | 29.283465 | 115 | 0.562786 |
aba57c4d084e0ab6b1ebcdc1366a9890d81b636a | 1,143 | exs | Elixir | test/plenario_web/controllers/field_controller_test.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 13 | 2017-12-11T13:59:42.000Z | 2020-11-16T21:52:31.000Z | test/plenario_web/controllers/field_controller_test.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 310 | 2017-11-13T22:52:26.000Z | 2018-11-19T17:49:30.000Z | test/plenario_web/controllers/field_controller_test.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 3 | 2017-12-05T00:36:12.000Z | 2020-03-10T15:15:29.000Z | defmodule PlenarioWeb.Testing.FieldControllerTest do
use PlenarioWeb.Testing.ConnCase
import Plenario.Testing.DataCase
describe "edit" do
@tag :auth
test "will display a form with the field information filled out", %{conn: conn, user: user} do
data_set = create_data_set(%{user: user})
field ... | 25.977273 | 122 | 0.618548 |
aba58102fee8125fc2654e50e9a5c87c5830ba85 | 1,769 | ex | Elixir | lib/brando_admin/live/config/identity_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando_admin/live/config/identity_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando_admin/live/config/identity_live.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule BrandoAdmin.Sites.IdentityLive do
use BrandoAdmin.LiveView.Form, schema: Brando.Sites.Identity
import Brando.Gettext
alias Brando.Sites
alias BrandoAdmin.Components.Form
def mount(_params, %{"user_token" => token} = assigns, socket) do
{:ok,
socket
|> assign(assigns)
|> assign_cu... | 28.532258 | 101 | 0.641605 |
aba5ab3723b4a3676fcd9566a2d259f909b1d1b5 | 2,218 | exs | Elixir | apps/local_ledger_db/priv/repo/migrations/20180522054422_rename_minted_token_to_token.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/priv/repo/migrations/20180522054422_rename_minted_token_to_token.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/priv/repo/migrations/20180522054422_rename_minted_token_to_token.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"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.805556 | 91 | 0.638413 |
aba5b35daf611b7efa3f0c4f8983861a06265814 | 11,063 | ex | Elixir | lib/rdf/xml/encoder.ex | rdf-elixir/rdf-xml-ex | abee756be39d64381a5126fb81f5cc1b4190f55d | [
"MIT"
] | 1 | 2020-11-16T15:07:18.000Z | 2020-11-16T15:07:18.000Z | lib/rdf/xml/encoder.ex | rdf-elixir/rdf-xml-ex | abee756be39d64381a5126fb81f5cc1b4190f55d | [
"MIT"
] | null | null | null | lib/rdf/xml/encoder.ex | rdf-elixir/rdf-xml-ex | abee756be39d64381a5126fb81f5cc1b4190f55d | [
"MIT"
] | null | null | null | defmodule RDF.XML.Encoder do
@moduledoc """
An encoder for RDF/XML serializations of RDF.ex data structures.
As for all encoders of `RDF.Serialization.Format`s, you normally won't use these
functions directly, but via one of the `write_` functions on the `RDF.XML` format
module or the generic `RDF.Serializat... | 33.935583 | 117 | 0.656422 |
aba5b65426784c0ea843e796d6db28056177d219 | 10,289 | ex | Elixir | lib/aws/generated/honeycode.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/honeycode.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/honeycode.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Honeycode do
@moduledoc """
Amazon Honeycode is a fully managed service that allows you to quickly build
mobile and web apps for teams—without programming.
Build Honeycode apps for managi... | 25.342365 | 189 | 0.635242 |
aba5c1c600e4c6bee02a1a4fea6178ec70248241 | 10,764 | ex | Elixir | lib/ex_debugger/tokenizer/definition.ex | Ajwah/ex_debugger | 44cd5b99c0b7751db052887b7a0bc3ce52a2972e | [
"Apache-2.0"
] | 3 | 2020-07-07T20:41:23.000Z | 2020-07-17T09:05:37.000Z | lib/ex_debugger/tokenizer/definition.ex | Ajwah/ex_debugger | 44cd5b99c0b7751db052887b7a0bc3ce52a2972e | [
"Apache-2.0"
] | 1 | 2020-07-08T00:04:38.000Z | 2020-07-08T00:04:38.000Z | lib/ex_debugger/tokenizer/definition.ex | Ajwah/ex_debugger | 44cd5b99c0b7751db052887b7a0bc3ce52a2972e | [
"Apache-2.0"
] | null | null | null | defmodule ExDebugger.Tokenizer.Definition do
@moduledoc false
# Based on the tokens, chunk all the definitions appearing therein and
# take special note of where they `:end`. Below you can see an example
# of the various tokens that elixir generates.
@default_def_line 0
def default_def_line, do: @default_... | 30.067039 | 97 | 0.486901 |
aba5dabfb7f5f98f908965aa03884911d9820a25 | 191 | exs | Elixir | priv/repo/migrations/20160605190558_add_stats_to_operations.exs | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | priv/repo/migrations/20160605190558_add_stats_to_operations.exs | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | priv/repo/migrations/20160605190558_add_stats_to_operations.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Repo.Migrations.AddMetaToOperations do
use Ecto.Migration
def change do
alter table(:operations) do
add(:stats, {:array, :map}, default: [])
end
end
end
| 19.1 | 55 | 0.685864 |
aba5dc143f2bf14ffbe962445e9622a29d288868 | 628 | exs | Elixir | test/parser/pls_test.exs | mliszcz/radio-playlistgen | 05fc6e5c44ded4ee2c79373661189caa6da8ca14 | [
"MIT"
] | null | null | null | test/parser/pls_test.exs | mliszcz/radio-playlistgen | 05fc6e5c44ded4ee2c79373661189caa6da8ca14 | [
"MIT"
] | null | null | null | test/parser/pls_test.exs | mliszcz/radio-playlistgen | 05fc6e5c44ded4ee2c79373661189caa6da8ca14 | [
"MIT"
] | null | null | null |
defmodule Parser.PLSTest do
use ExUnit.Case
test "parse valid .pls file" do
{:ok, file} = StringIO.open """
NumberOfEntries=2
Version=2
Title1=t1
File1=f1
Length1=l1
Title2=t2
File2=f2
Length2=l2
"""
assert Parser.PLS.parse(file) == ["f2", "f1"]
StringIO.close(file)
end
test "parse inv... | 15.317073 | 47 | 0.644904 |
aba5df883f4253113b63b072738206f68babfcff | 1,311 | ex | Elixir | db_server/lib/db_server_web/endpoint.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/endpoint.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/endpoint.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | defmodule DbServerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :db_server
socket "/socket", DbServerWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your s... | 27.893617 | 69 | 0.712433 |
aba60955ef4964da691bdbb51401e39a41b5367d | 2,116 | ex | Elixir | clients/secret_manager/lib/google_api/secret_manager/v1/model/replication_status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1/model/replication_status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/secret_manager/lib/google_api/secret_manager/v1/model/replication_status.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... | 42.32 | 262 | 0.764178 |
aba648a07cb2dc39813118b249a9d8dfbaa407d9 | 73 | ex | Elixir | robotica_hello/lib/robotica_hello_web/views/page_view.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_hello/lib/robotica_hello_web/views/page_view.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_hello/lib/robotica_hello_web/views/page_view.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaHelloWeb.PageView do
use RoboticaHelloWeb, :view
end
| 18.25 | 38 | 0.835616 |
aba67aa285f016cd73f8cf039d9f8bae8693eefb | 2,934 | ex | Elixir | lib/rtl/videos/tagging.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | lib/rtl/videos/tagging.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | lib/rtl/videos/tagging.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Videos.Tagging do
use Ecto.Schema
import Ecto.Changeset
require Ecto.Query
alias Ecto.Query, as: Q
alias RTL.Repo
schema "taggings" do
belongs_to :coding, RTL.Videos.Coding
belongs_to :tag, RTL.Videos.Tag
field :starts_at, :float
field :ends_at, :float
timestamps()
end
... | 33.340909 | 90 | 0.649284 |
aba680e5ab61e99cc0129a90940ceb634aa46d9e | 183 | exs | Elixir | config/oauth.example.exs | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | 1 | 2018-04-23T14:55:58.000Z | 2018-04-23T14:55:58.000Z | config/oauth.example.exs | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | null | null | null | config/oauth.example.exs | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | null | null | null | # You can rename this file to oauth.exs and replace the values of your app
config :flaggy, Facebook,
client_id: "XXX",
client_secret: "XXX",
redirect_uri: "http://XXX/callback"
| 30.5 | 74 | 0.726776 |
aba691a64f6d16e894d6edd1c0f67e4ff9332102 | 675 | ex | Elixir | lib/mix/tasks/roll.ex | iver/roll | 633c97d42ee867a16a7c42497f40147cd57714c6 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/roll.ex | iver/roll | 633c97d42ee867a16a7c42497f40147cd57714c6 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/roll.ex | iver/roll | 633c97d42ee867a16a7c42497f40147cd57714c6 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Roll do
use Mix.Task
@shortdoc "Prints Roll help information"
@moduledoc """
Prints Roll tasks and their information.
mix roll
"""
@doc false
def run(args) do
{_opts, args} = OptionParser.parse!(args, strict: [])
case args do
[] -> general()
_ -> Mix.raise("In... | 23.275862 | 75 | 0.642963 |
aba69b48b20a9e37f2c29f0451464a12d8b7cee1 | 3,228 | ex | Elixir | lib/util/log_rotator.ex | javobalazs/adb | 2965704fea9025976842ebd25f93b9cec642cb19 | [
"Beerware"
] | null | null | null | lib/util/log_rotator.ex | javobalazs/adb | 2965704fea9025976842ebd25f93b9cec642cb19 | [
"Beerware"
] | 2 | 2019-06-15T08:03:31.000Z | 2019-06-15T08:09:11.000Z | lib/util/log_rotator.ex | javobalazs/adb | 2965704fea9025976842ebd25f93b9cec642cb19 | [
"Beerware"
] | null | null | null | defmodule Util.LogRotator do
@vsn "0.1.0"
use GenServer
require Logger
@msg :log_rotate
@shift 10
@min_diff 1000
@moduledoc """
A napi logokat intezi a `:loggger_file_backend`-hez.
`app.ex`:
```elixir
defmodule App do
use Application
def start(_type, _args) do
import Supervisor.Sp... | 24.454545 | 106 | 0.583333 |
aba6c11f59d3bafcd88aa7556679fd0088558299 | 17,193 | exs | Elixir | test/unit/web/controllers/template_controller_test.exs | Nebo15/printout.api | 292f20add1c92396194dc232eca43c5a93966a1f | [
"MIT"
] | 7 | 2017-06-08T21:15:11.000Z | 2021-12-28T16:57:10.000Z | test/unit/web/controllers/template_controller_test.exs | Nebo15/man.api | 292f20add1c92396194dc232eca43c5a93966a1f | [
"MIT"
] | 11 | 2017-04-16T17:59:55.000Z | 2019-01-28T17:18:36.000Z | test/unit/web/controllers/template_controller_test.exs | Nebo15/printout.api | 292f20add1c92396194dc232eca43c5a93966a1f | [
"MIT"
] | 3 | 2017-07-27T16:10:42.000Z | 2021-12-28T17:00:44.000Z | defmodule Man.Web.TemplateControllerTest do
use Man.Web.ConnCase, async: true
alias Man.Templates.Template
alias Man.FixturesFactory
@update_attrs %{body: "some updated body", validation_schema: %{}, title: "some title"}
@replace_attrs %{body: "some replaced body", validation_schema: %{}, title: "some replac... | 38.549327 | 116 | 0.577677 |
aba7069de81cf59a787691936ab9140d47cb8a20 | 157 | ex | Elixir | lib/sonata_seed/boolean.ex | exstruct/sonata_seed | 965c88251190b22356326bd147ad60b191f7d439 | [
"MIT"
] | null | null | null | lib/sonata_seed/boolean.ex | exstruct/sonata_seed | 965c88251190b22356326bd147ad60b191f7d439 | [
"MIT"
] | null | null | null | lib/sonata_seed/boolean.ex | exstruct/sonata_seed | 965c88251190b22356326bd147ad60b191f7d439 | [
"MIT"
] | null | null | null | defmodule Sonata.Seed.Boolean do
use Bolero
# https://www.postgresql.org/docs/9.1/static/datatype-boolean.html
def boolean() do
bool()
end
end
| 15.7 | 68 | 0.707006 |
aba72363cd12baff83dcae54e7a8ff41612ffbb2 | 43,029 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.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... | 56.027344 | 196 | 0.658928 |
aba74e40e6641c281ce4365296ad64cc26d2c470 | 3,085 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_access_level.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... | 44.710145 | 329 | 0.73517 |
aba7581875b38241540cbb2dd0b99e49f05470a5 | 75,954 | ex | Elixir | lib/elixir/lib/string.ex | RtiWeb/elixir | 78fa1763e423a6e11e1f7361ec62a06d0afe9cd5 | [
"Apache-2.0"
] | 1 | 2021-12-16T20:32:28.000Z | 2021-12-16T20:32:28.000Z | lib/elixir/lib/string.ex | RtiWeb/elixir | 78fa1763e423a6e11e1f7361ec62a06d0afe9cd5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | RtiWeb/elixir | 78fa1763e423a6e11e1f7361ec62a06d0afe9cd5 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [length: 1]
defmodule String do
@moduledoc ~S"""
Strings in Elixir are UTF-8 encoded binaries.
Strings in Elixir are a sequence of Unicode characters,
typically written between double quoted strings, such
as `"hello"` and `"héllò"`.
In case a string must have a double-quote in itse... | 28.694371 | 102 | 0.649933 |
aba78b28379126faaf6e0225be17f0042119c87d | 1,938 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.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... | 34.607143 | 118 | 0.732198 |
aba8089e1b6ac738a62814c767745995f7a77c5d | 1,415 | exs | Elixir | test/mango_web/acceptance/homepage_test.exs | nittin-shankar/mango | 3d988a494f57b26bddaad9a25e63eb4e7f6f9c12 | [
"MIT"
] | 121 | 2017-06-24T10:33:38.000Z | 2022-03-17T16:02:16.000Z | test/mango_web/acceptance/homepage_test.exs | nittin-shankar/mango | 3d988a494f57b26bddaad9a25e63eb4e7f6f9c12 | [
"MIT"
] | 6 | 2017-06-24T22:48:21.000Z | 2018-03-17T01:20:32.000Z | test/mango_web/acceptance/homepage_test.exs | nittin-shankar/mango | 3d988a494f57b26bddaad9a25e63eb4e7f6f9c12 | [
"MIT"
] | 29 | 2017-07-03T04:09:15.000Z | 2022-03-02T15:45:49.000Z | defmodule MangoWeb.Acceptance.HomepageTest do
use Mango.DataCase
use Hound.Helpers
hound_session()
setup do
## GIVEN ##
# There are two products Apple and Tomato priced 100 and 50 respectively
# Where Apple being the only seasonal product
alias Mango.Repo
alias Mango.Catalog.Product
Re... | 30.76087 | 90 | 0.685512 |
aba869a711370e9aad6208292e9beb6339bf88fb | 518 | ex | Elixir | lib/podcatcher/categories/category.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/categories/category.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/categories/category.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | defmodule Podcatcher.Categories.Category do
use Ecto.Schema
alias Podcatcher.Podcasts.Podcast
schema "categories" do
field :name, :string
belongs_to :parent, Podcatcher.Categories.Category
has_many :children, Podcatcher.Categories.Category, foreign_key: :parent_id
many_to_many :podcasts, Podca... | 24.666667 | 79 | 0.776062 |
aba880eabe95cb03cff678344d97243219f36b66 | 3,338 | ex | Elixir | lib/schemas/server.ex | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | lib/schemas/server.ex | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | lib/schemas/server.ex | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | defmodule Elidactyl.Schemas.Server do
@moduledoc false
use Ecto.Schema
alias Elidactyl.Schemas.Server.Container
alias Elidactyl.Schemas.Server.FeatureLimits
alias Elidactyl.Schemas.Server.Limits
alias Elidactyl.Schemas.Server.Database
alias Elidactyl.Utils
alias Elidactyl.Response
alias Elidactyl.Re... | 30.623853 | 122 | 0.657579 |
aba8a483dbf0655438817cdbcd96879e42dbb998 | 1,468 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_actor_verification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_actor_verification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment_actor_verification.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... | 31.234043 | 109 | 0.747956 |
aba8b4911db619c90a1c6d8a8741925627948035 | 761 | ex | Elixir | lib/bubblewrap_engine/application.ex | mikeweber/elixir_prags | ae087248adc484659d7a0948e7056e667301f549 | [
"MIT"
] | null | null | null | lib/bubblewrap_engine/application.ex | mikeweber/elixir_prags | ae087248adc484659d7a0948e7056e667301f549 | [
"MIT"
] | null | null | null | lib/bubblewrap_engine/application.ex | mikeweber/elixir_prags | ae087248adc484659d7a0948e7056e667301f549 | [
"MIT"
] | null | null | null | defmodule BubblewrapEngine.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: BubblewrapEng... | 31.708333 | 75 | 0.717477 |
aba8f5e2e8e25ae7d1d8d694a4982a6a569379c6 | 3,759 | ex | Elixir | lib/absinthe.ex | TheFirstAvenger/absinthe | 176b58723e573e2de748b397beb0bfb16ee4204f | [
"MIT"
] | null | null | null | lib/absinthe.ex | TheFirstAvenger/absinthe | 176b58723e573e2de748b397beb0bfb16ee4204f | [
"MIT"
] | null | null | null | lib/absinthe.ex | TheFirstAvenger/absinthe | 176b58723e573e2de748b397beb0bfb16ee4204f | [
"MIT"
] | null | null | null | defmodule Absinthe do
@moduledoc """
Documentation for the Absinthe package, a toolkit for building GraphQL
APIs with Elixir.
For usage information, see [the documentation](http://hexdocs.pm/absinthe), which
includes guides, API information for important modules, and links to useful resources.
"""
defmo... | 28.915385 | 88 | 0.619846 |
aba90b258c375846334ecbfaf21d70f398d3276d | 2,593 | exs | Elixir | mix.exs | djcarpe/nerves | 8a1bb2c70112e808eaa6c4b47bad3f61ac36dc56 | [
"Apache-2.0"
] | null | null | null | mix.exs | djcarpe/nerves | 8a1bb2c70112e808eaa6c4b47bad3f61ac36dc56 | [
"Apache-2.0"
] | null | null | null | mix.exs | djcarpe/nerves | 8a1bb2c70112e808eaa6c4b47bad3f61ac36dc56 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.MixProject do
use Mix.Project
@version "1.7.5"
@source_url "https://github.com/nerves-project/nerves"
def project do
[
app: :nerves,
version: @version,
elixir: "~> 1.9.4 or ~> 1.10.0 or ~> 1.11.2",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
... | 25.673267 | 89 | 0.55187 |
aba93cfdfca303f4b7195afe5a0cf1fcfdbc7f2d | 8,002 | ex | Elixir | lib/swoosh/adapters/amazon_ses.ex | joshnuss/swoosh | 47e7b46fd7635de90618c1320f6ab90880ec5418 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | joshnuss/swoosh | 47e7b46fd7635de90618c1320f6ab90880ec5418 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | joshnuss/swoosh | 47e7b46fd7635de90618c1320f6ab90880ec5418 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.AmazonSES do
@moduledoc ~S"""
An adapter that sends email using the Amazon Simple Email Service Query API.
This email adapter makes use of the Amazon SES SendRawEmail action and generates
a SMTP style message containing the information to be emailed. This allows for
greater more cus... | 28.578571 | 115 | 0.663584 |
aba9745fc5defd44c29408405a3c80f920ea39e0 | 2,005 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/sensitive_category_assigned_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/sensitive_category_assigned_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/sensitive_category_assigned_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.568966 | 140 | 0.756608 |
aba9933a017d0727076ead0b4f01e6a20a4ccd65 | 17,774 | exs | Elixir | test/teiserver/protocols/spring/spring_matchmaking_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/teiserver/protocols/spring/spring_matchmaking_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/teiserver/protocols/spring/spring_matchmaking_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | defmodule Teiserver.SpringMatchmakingTest do
use Central.ServerCase, async: false
require Logger
alias Teiserver.{Client, Game}
alias Teiserver.Battle.Lobby
alias Teiserver.Data.Matchmaking
import Central.Helpers.NumberHelper, only: [int_parse: 1]
import Teiserver.TeiserverTestLib,
only: [auth_setup:... | 35.762575 | 112 | 0.665016 |
aba9b7a5cea86617d8ade72e3c0c3991a8faf362 | 693 | exs | Elixir | series/series.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | series/series.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | series/series.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | defmodule StringSeries do
@doc """
Given a string `s` and a positive integer `size`, return all substrings
of that size. If `size` is greater than the length of `s`, or less than 1,
return an empty list.
"""
@spec slices(s :: String.t(), size :: integer) :: list(String.t())
def slices(_s, size) when size ... | 23.896552 | 76 | 0.645022 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.