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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28935ab8e20c482f358d862121b221a293d48363 | 993 | exs | Elixir | test/document_test.exs | vic/elaxtic | da40220f75d530250844d806ccda868979c4a75b | [
"Apache-2.0"
] | 7 | 2016-03-06T18:39:35.000Z | 2016-08-23T16:08:54.000Z | test/document_test.exs | vic/elaxtic | da40220f75d530250844d806ccda868979c4a75b | [
"Apache-2.0"
] | 5 | 2016-03-06T18:40:02.000Z | 2017-03-25T02:59:22.000Z | test/document_test.exs | vic/elaxtic | da40220f75d530250844d806ccda868979c4a75b | [
"Apache-2.0"
] | null | null | null | defmodule Elaxtic.DocumentTest do
use ExUnit.Case
use Elaxtic.TestSetup
alias Elaxtic.Document
alias Elaxtic.TestSetup.{Repo, Doc}
test "id extracts id field from data" do
assert "one" == Document.id(%{id: "one"})
assert "two" == Document.id(id: "two")
end
test "id extracts from elastic result... | 23.642857 | 61 | 0.634441 |
2893669e394bc77265bb7fe13affe127a63cf02d | 835 | exs | Elixir | other/using-phoenix/fall/config/config.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | 1 | 2016-12-25T09:53:53.000Z | 2016-12-25T09:53:53.000Z | other/using-phoenix/fall/config/config.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | other/using-phoenix/fall/config/config.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :fall, Fall.Endpoint,
url: [host: "localhost"],
... | 34.791667 | 86 | 0.755689 |
2893bc72405d9f62476a0a41ae184cce035a1474 | 1,462 | ex | Elixir | test_fixtures/plugins/dummy_plugin_3.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | test_fixtures/plugins/dummy_plugin_3.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | test_fixtures/plugins/dummy_plugin_3.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | defmodule Serum.DummyPlugin3 do
@behaviour Serum.Plugin
def name, do: "dummy_plugin_3"
def version, do: "0.0.1"
def elixir, do: ">= 1.6.0"
def serum, do: ">= 0.10.0"
def description, do: "This is dummy plugin no. 3"
def implements do
[
build_started: 3,
reading_pages: 2,
reading_po... | 19.756757 | 65 | 0.623119 |
2893d4173e6bae1ac46ad0545de316e43400747d | 14,057 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/job.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v3/model/job.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/jobs/lib/google_api/jobs/v3/model/job.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... | 103.360294 | 1,734 | 0.734012 |
2893d7b848f5ebf33de167b5288db7dbc8e253d3 | 3,281 | ex | Elixir | apps/neoscan_monitor/lib/neoscan_monitor/monitor/utils.ex | naetkss/neo-scan | ecfdffc3e8fca21adad2d292c056f3ba557c42be | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoscan_monitor/lib/neoscan_monitor/monitor/utils.ex | solohin/neo-scan | 2aa6dfdb0346b108a20463efe1dcd8bbb00cbc0e | [
"MIT"
] | null | null | null | apps/neoscan_monitor/lib/neoscan_monitor/monitor/utils.ex | solohin/neo-scan | 2aa6dfdb0346b108a20463efe1dcd8bbb00cbc0e | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule NeoscanMonitor.Utils do
@moduledoc false
alias NeoscanSync.Blockchain
alias Neoscan.Transactions
alias Neoscan.Addresses
alias Neoscan.Stats
# blockchain api nodes
def seeds do
[
"http://seed1.cityofzion.io:8080",
"http://seed2.cityofzion.io:8080",
"http://seed3.cityofzion... | 23.948905 | 75 | 0.619933 |
28942f4e0717271eddaa9d84cd6a0a3f3300fd4c | 399 | ex | Elixir | lib/hamlex/node.ex | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | lib/hamlex/node.ex | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | lib/hamlex/node.ex | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | defprotocol Hamlex.Node do
alias Hamlex.Node.{Element, Prolog}
@type t :: Element.t | Prolog.t
def to_html(node, opts \\ [])
end
defimpl Hamlex.Node, for: BitString do
def to_html(string, _opts \\ []), do: string
end
defimpl Hamlex.Node, for: Any do
@spec to_html(Hamlex.Node.t) :: Hamlex.html
def to_html... | 24.9375 | 87 | 0.681704 |
28943c371827a31da902944bd3f59e111174f314 | 127 | ex | Elixir | lib/google_fit/activity_type/meditation.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | 2 | 2017-02-01T13:51:26.000Z | 2019-04-12T11:37:25.000Z | lib/google_fit/activity_type/meditation.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | lib/google_fit/activity_type/meditation.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | defmodule GoogleFit.ActivityType.Meditation do
@moduledoc false
def code, do: GoogleFit.ActivityType.code(__MODULE__)
end
| 21.166667 | 55 | 0.811024 |
289490b3083ab8ff47aaaa80ad8eb684dbee8ed3 | 2,199 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/autoscaler_aggregated_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/autoscaler_aggregated_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/autoscaler_aggregated_list_warning.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... | 40.722222 | 194 | 0.727149 |
2894ad3286fec8939cdf11dd54c526105336410f | 784 | ex | Elixir | test/support/bypass_helpers.ex | regno-node/ex_monero | bb14065d4b664297aa919a068aa00eb0735eca40 | [
"Unlicense",
"MIT"
] | 7 | 2017-09-08T18:17:55.000Z | 2021-07-11T01:03:40.000Z | test/support/bypass_helpers.ex | regno-node/ex_monero | bb14065d4b664297aa919a068aa00eb0735eca40 | [
"Unlicense",
"MIT"
] | 11 | 2017-09-08T10:23:34.000Z | 2018-08-24T16:10:09.000Z | test/support/bypass_helpers.ex | libra-ventures/ex_monero | 9ef72502b8334bb9d9d9f27bd30601adfe3fb301 | [
"Unlicense",
"MIT"
] | 2 | 2018-11-12T06:42:31.000Z | 2021-07-11T01:33:34.000Z | defmodule Support.BypassHelpers do
@moduledoc false
def start_bypass(_) do
bypass = Bypass.open()
[bypass: bypass]
end
def service_config_for_bypass(bypass, service \\ :wallet) do
Monero.Config.new(service,
user: "user",
password: "password",
url: "http://localhost:#{bypass.port}... | 28 | 118 | 0.678571 |
2894c5d9b9274ab16667a0c3fcdd030232783cd4 | 705 | exs | Elixir | project3/project3_Bonus/mix.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | project3/project3_Bonus/mix.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | null | null | null | project3/project3_Bonus/mix.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | defmodule Project3.Mixfile do
use Mix.Project
def project do
[
app: :project3,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
escript: [main_module: Project3],
]
end
# Run "mix help compile.app" to learn about applications.
de... | 20.735294 | 67 | 0.592908 |
2894c875118d2f6171bba888b6c2363e6fbdfbe3 | 1,703 | ex | Elixir | lib/excommerce_web/workflows/cancel_line_item_fullfillment.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce_web/workflows/cancel_line_item_fullfillment.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce_web/workflows/cancel_line_item_fullfillment.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule ExcommerceWeb.Workflow.CancelLineItemFullfillment do
alias Ecto.{Multi, Changeset}
def run(repo, line_item), do: repo.transaction(steps(repo, line_item))
# Caution: Ensure order and variant data is preloaded
def steps(repo, line_item) do
changeset = Excommerce.Orders.LineItem.fullfillment_change... | 41.536585 | 140 | 0.754551 |
2894c978d771ba34c10f295268742fac81f2600b | 1,739 | ex | Elixir | lib/elir/utils.ex | azohra/elir | 45a7fcc051949d77a791cdad0b8f0b04576afd8b | [
"MIT"
] | 5 | 2017-09-23T19:35:30.000Z | 2017-09-27T20:00:02.000Z | lib/elir/utils.ex | azohra/elir | 45a7fcc051949d77a791cdad0b8f0b04576afd8b | [
"MIT"
] | 4 | 2017-10-02T15:43:21.000Z | 2017-10-03T01:21:26.000Z | lib/elir/utils.ex | azohra/elir | 45a7fcc051949d77a791cdad0b8f0b04576afd8b | [
"MIT"
] | null | null | null | defmodule Elir.Utils do
@moduledoc """
various utilitarian functions
"""
@doc """
I am cheating here ... sorry.
return the cartesian product between every value of the k/V structures in the given list.
The list contain maps with a singular key ... (the weird result of getting a yaml converted to Elixir)... | 29.474576 | 113 | 0.626222 |
2894d319c54e2e655429d3c1fcb60345b399385b | 2,317 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/group_assets_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/group_assets_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/security_center/lib/google_api/security_center/v1/model/group_assets_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... | 41.375 | 296 | 0.730255 |
2894da53025ba302adbc5d1011e9a2bf08624959 | 340 | ex | Elixir | web/views/message_view.ex | jordanell/broadcaster | 62574b21e3ea630918b0b081868e238bfb3b8c12 | [
"MIT"
] | null | null | null | web/views/message_view.ex | jordanell/broadcaster | 62574b21e3ea630918b0b081868e238bfb3b8c12 | [
"MIT"
] | null | null | null | web/views/message_view.ex | jordanell/broadcaster | 62574b21e3ea630918b0b081868e238bfb3b8c12 | [
"MIT"
] | null | null | null | defmodule Broadcaster.MessageView do
use Broadcaster.Web, :view
def render("create.json", %{message: message}) do
message_json(message)
end
def message_json(message) do
%{
channel: message.channel,
body: message.body,
inserted_at: message.inserted_at,
updated_at: message.update... | 21.25 | 51 | 0.685294 |
2894ff8e7610ff065b14991631b23ad84b5cc491 | 2,224 | exs | Elixir | test/phoenix_example/b_table_context_test.exs | getong/phoenix_example | cec4ba1ab2d601a3d4c709d3b77b1284f28ae36b | [
"Apache-2.0"
] | null | null | null | test/phoenix_example/b_table_context_test.exs | getong/phoenix_example | cec4ba1ab2d601a3d4c709d3b77b1284f28ae36b | [
"Apache-2.0"
] | 6 | 2020-07-20T14:24:28.000Z | 2022-03-29T02:25:55.000Z | test/phoenix_example/b_table_context_test.exs | getong/phoenix_example | cec4ba1ab2d601a3d4c709d3b77b1284f28ae36b | [
"Apache-2.0"
] | null | null | null | defmodule PhoenixExample.BTableContextTest do
use PhoenixExample.DataCase
alias PhoenixExample.BTableContext
describe "b_table" do
alias PhoenixExample.BTableContext.BTable
@valid_attrs %{age: 42, name: "some name"}
@update_attrs %{age: 43, name: "some updated name"}
@invalid_attrs %{age: nil, ... | 33.19403 | 96 | 0.689299 |
289510b600310526f251a83ce4d6a867b522e9b4 | 1,017 | ex | Elixir | lib/chat_api/tags/conversation_tag.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api/tags/conversation_tag.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api/tags/conversation_tag.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Tags.ConversationTag do
use Ecto.Schema
import Ecto.Changeset
alias ChatApi.{Accounts.Account, Conversations.Conversation, Tags.Tag, Users.User}
@type t :: %__MODULE__{
# Foreign keys
account_id: Ecto.UUID.t(),
conversation_id: Ecto.UUID.t(),
tag_id: E... | 28.25 | 89 | 0.6588 |
289520eea11dcf5b2fd7688dedddc4722b611429 | 1,659 | ex | Elixir | lib/recurring_events/yearly.ex | voughtdq/recurring_events | 93bc1ce12f20d18c6ba9decb33a74bf8619fab0e | [
"MIT"
] | 21 | 2017-01-11T00:02:46.000Z | 2020-12-28T15:59:04.000Z | lib/recurring_events/yearly.ex | voughtdq/recurring_events | 93bc1ce12f20d18c6ba9decb33a74bf8619fab0e | [
"MIT"
] | 20 | 2017-04-11T20:39:55.000Z | 2021-09-18T09:20:44.000Z | lib/recurring_events/yearly.ex | voughtdq/recurring_events | 93bc1ce12f20d18c6ba9decb33a74bf8619fab0e | [
"MIT"
] | 9 | 2017-04-11T19:31:20.000Z | 2020-10-14T18:36:27.000Z | defmodule RecurringEvents.Yearly do
@moduledoc """
Handles `:yearly` frequency rule
"""
alias RecurringEvents.Date
@doc """
Returns yearly stream of dates with respect to `:interval`, `:count` and
`:until` rules. Only year form `:until` date is used, the rest of it is
ignored.
# Example
iex>... | 27.196721 | 78 | 0.603978 |
289547cb983ac7b49ac25bf4ecf3e55b9954282c | 577 | exs | Elixir | priv/repo/migrations/20190611100813_add_versions_table.exs | zven21/footprint | ebbc4ba6c7b95cdfab28ea406146f2de90e58211 | [
"MIT"
] | 2 | 2018-08-23T08:30:01.000Z | 2019-06-17T08:09:19.000Z | priv/repo/migrations/20190611100813_add_versions_table.exs | zven21/footprint | ebbc4ba6c7b95cdfab28ea406146f2de90e58211 | [
"MIT"
] | 3 | 2020-07-17T07:15:56.000Z | 2021-05-09T04:18:19.000Z | priv/repo/migrations/20190611100813_add_versions_table.exs | zven21/footprint | ebbc4ba6c7b95cdfab28ea406146f2de90e58211 | [
"MIT"
] | null | null | null | defmodule Footprint.Repo.Migrations.AddVersionsTable do
use Ecto.Migration
def change do
create table(:versions) do
add :event, :string
add :item_id, :integer, null: false
add :item_type, :string, null: false
add :item_base, :string, null: false
add :item_prev, :map, null: false
... | 26.227273 | 55 | 0.64818 |
28957008da64581f3745784435fc777b2662f442 | 1,092 | ex | Elixir | priv/templates/lib/web/controllers/veil/fallback_controller.ex | Oliphaunte/veil | d6e70414a15a26ed1f0aa4083d7764ac9e7c1ced | [
"MIT"
] | 164 | 2018-02-10T21:33:40.000Z | 2022-03-15T06:10:50.000Z | priv/templates/lib/web/controllers/veil/fallback_controller.ex | Oliphaunte/veil | d6e70414a15a26ed1f0aa4083d7764ac9e7c1ced | [
"MIT"
] | 21 | 2018-02-15T02:31:40.000Z | 2021-04-04T07:16:43.000Z | priv/templates/lib/web/controllers/veil/fallback_controller.ex | Oliphaunte/veil | d6e70414a15a26ed1f0aa4083d7764ac9e7c1ced | [
"MIT"
] | 14 | 2018-03-24T11:15:07.000Z | 2020-06-28T12:33:38.000Z | defmodule <%= web_module %>.Veil.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
require Logger
use <%= web_module %>, :controller
alias <%= main_module %>.Veil.User
def call(co... | 29.513514 | 83 | 0.619963 |
289581a900f0256052beedcf89939a00b7e260c9 | 1,279 | ex | Elixir | lib/furlex/parser/json_ld.ex | XukuLLC/furlex | 8ccd3e09be4f7f5ff16520022287d9282d9c494f | [
"Apache-2.0"
] | null | null | null | lib/furlex/parser/json_ld.ex | XukuLLC/furlex | 8ccd3e09be4f7f5ff16520022287d9282d9c494f | [
"Apache-2.0"
] | null | null | null | lib/furlex/parser/json_ld.ex | XukuLLC/furlex | 8ccd3e09be4f7f5ff16520022287d9282d9c494f | [
"Apache-2.0"
] | 1 | 2019-12-12T07:21:31.000Z | 2019-12-12T07:21:31.000Z | defmodule Furlex.Parser.JsonLD do
@behaviour Furlex.Parser
@json_library Application.get_env(:furlex, :json_library, Jason)
@spec parse(String.t()) :: {:ok, List.t()}
def parse(html) do
meta = "script[type=\"application/ld+json\"]"
with {:ok, document} <- Floki.parse_document(html) do
case Flok... | 22.839286 | 69 | 0.616106 |
2895a7b3792094b4a3778f0d86e4710bf9a0ceae | 1,537 | exs | Elixir | config/config.exs | carlo-colombo/webhook_me | ca5d8181faa4b5b317da336e091bec4499d059f1 | [
"MIT"
] | null | null | null | config/config.exs | carlo-colombo/webhook_me | ca5d8181faa4b5b317da336e091bec4499d059f1 | [
"MIT"
] | 37 | 2019-04-22T06:59:31.000Z | 2021-06-25T15:18:47.000Z | config/config.exs | carlo-colombo/webhook_me | ca5d8181faa4b5b317da336e091bec4499d059f1 | [
"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... | 29 | 75 | 0.731945 |
2895e1a1a81c55e1617498733adc7ccd0b5b98d4 | 56 | ex | Elixir | lib/ueberauth_quickbooks.ex | buildrtech/ueberauth_quickbooks | e14ad9ebb0599b0cbd2082a342b246c2e2b9c8c5 | [
"MIT"
] | null | null | null | lib/ueberauth_quickbooks.ex | buildrtech/ueberauth_quickbooks | e14ad9ebb0599b0cbd2082a342b246c2e2b9c8c5 | [
"MIT"
] | null | null | null | lib/ueberauth_quickbooks.ex | buildrtech/ueberauth_quickbooks | e14ad9ebb0599b0cbd2082a342b246c2e2b9c8c5 | [
"MIT"
] | null | null | null | defmodule UeberauthQuickbooks do
@moduledoc false
end
| 14 | 32 | 0.839286 |
28960fc38fbb920a4be06bea05880ac7df50388f | 1,561 | ex | Elixir | lib/codes/codes_f42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_f42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_f42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_F42 do
alias IcdCode.ICDCode
def _F422 do
%ICDCode{full_code: "F422",
category_code: "F42",
short_code: "2",
full_name: "Mixed obsessional thoughts and acts",
short_name: "Mixed obsessional thoughts and acts",
category_name: "Mixed... | 30.019231 | 69 | 0.613069 |
28961f4e94f977f812e8b6d1985ec4f0b75cccdd | 1,546 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/inline_object_properties.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/inline_object_properties.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/inline_object_properties.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... | 32.893617 | 138 | 0.748383 |
28968c916e02055d604558879f67354fd2396ba1 | 2,169 | ex | Elixir | lib/mix/lib/mix/tasks/compile.yecc.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2021-12-16T20:32:28.000Z | 2021-12-16T20:32:28.000Z | lib/mix/lib/mix/tasks/compile.yecc.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/mix/lib/mix/tasks/compile.yecc.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | defmodule Mix.Tasks.Compile.Yecc do
use Mix.Task.Compiler
alias Mix.Compilers.Erlang
@recursive true
@manifest "compile.yecc"
@switches [force: :boolean, all_warnings: :boolean]
# These options can't be controlled with :yecc_options.
@forced_opts [report: true, return: true]
@moduledoc """
Compiles... | 29.712329 | 86 | 0.696173 |
28968ee2cf0b6872bffa1c1cfa274d4578a0a362 | 2,801 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_address.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_address.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_address.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... | 38.902778 | 186 | 0.674759 |
2896afd775c258c3973b741ad6fe62f35f1102cc | 9,649 | ex | Elixir | lib/csv.ex | agsilvajonathan/csv | 0de3a6a5d350c60e9344ea5b12d4dc8e6cb0138b | [
"MIT"
] | 464 | 2015-03-24T22:03:51.000Z | 2022-03-31T06:24:40.000Z | lib/csv.ex | agsilvajonathan/csv | 0de3a6a5d350c60e9344ea5b12d4dc8e6cb0138b | [
"MIT"
] | 104 | 2015-03-25T09:52:34.000Z | 2022-03-11T11:22:47.000Z | lib/csv.ex | agsilvajonathan/csv | 0de3a6a5d350c60e9344ea5b12d4dc8e6cb0138b | [
"MIT"
] | 93 | 2015-03-25T08:58:00.000Z | 2021-12-08T19:44:45.000Z | defmodule CSV do
use CSV.Defaults
alias CSV.Decoding.Preprocessing
alias CSV.Decoding.Decoder
alias CSV.Encoding.Encoder
alias CSV.EscapeSequenceError
alias CSV.StrayQuoteError
@moduledoc ~S"""
RFC 4180 compliant CSV parsing and encoding for Elixir. Allows to specify
other separators, so it could al... | 33.387543 | 99 | 0.613846 |
2896bf51e937a6159c1898bc2b033bbb40b93fd9 | 2,144 | ex | Elixir | lib/chat_web.ex | Jethro-Mushilingwa/chat | 9ed85178c3f95ab63cb8ac4eb234e2291c3fa801 | [
"MIT"
] | null | null | null | lib/chat_web.ex | Jethro-Mushilingwa/chat | 9ed85178c3f95ab63cb8ac4eb234e2291c3fa801 | [
"MIT"
] | 1 | 2021-03-10T17:36:53.000Z | 2021-03-10T17:36:53.000Z | lib/chat_web.ex | Jethro-Mushilingwa/chat | 9ed85178c3f95ab63cb8ac4eb234e2291c3fa801 | [
"MIT"
] | null | null | null | defmodule ChatWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ChatWeb, :controller
use ChatWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 24.363636 | 73 | 0.678638 |
28971263377a5ce2cebc3c4179965868c74248ff | 1,343 | exs | Elixir | mix.exs | valiot/samly | 7ff599286560069d0d62b04ccf473f94a689c646 | [
"MIT"
] | 108 | 2017-09-15T18:31:52.000Z | 2022-02-09T23:04:49.000Z | mix.exs | valiot/samly | 7ff599286560069d0d62b04ccf473f94a689c646 | [
"MIT"
] | 51 | 2017-09-30T01:49:15.000Z | 2021-11-11T23:14:47.000Z | mix.exs | valiot/samly | 7ff599286560069d0d62b04ccf473f94a689c646 | [
"MIT"
] | 54 | 2017-10-24T23:33:23.000Z | 2022-03-17T18:24:11.000Z | defmodule Samly.Mixfile do
use Mix.Project
@version "1.0.0"
@description "SAML Single-Sign-On Authentication for Plug/Phoenix Applications"
@source_url "https://github.com/handnot2/samly"
@blog_url "https://handnot2.github.io/blog/auth/saml-auth-for-phoenix"
def project() do
[
app: :samly,
... | 22.016393 | 81 | 0.546538 |
2897222c51680f05c276bd6012c3a9f4d905395e | 1,927 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/processing_error.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/processing_error.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/processing_error.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.358491 | 207 | 0.723923 |
289723e7b2509c953973ee3051889f37ad1bd6c5 | 641 | exs | Elixir | test/window_test.exs | gyson/Numerix | b96a9946b2f9680ab0b24e89287f7b9bf4481d9e | [
"MIT"
] | null | null | null | test/window_test.exs | gyson/Numerix | b96a9946b2f9680ab0b24e89287f7b9bf4481d9e | [
"MIT"
] | null | null | null | test/window_test.exs | gyson/Numerix | b96a9946b2f9680ab0b24e89287f7b9bf4481d9e | [
"MIT"
] | null | null | null | defmodule Numerix.WindowTest do
use ExUnit.Case, async: true
use ExCheck
import ListHelper
alias Numerix.Window
test "gaussian is correct for specific examples" do
[
{0.0, 1.0},
{0.1, 0.99501247919268232},
{1.0, 0.60653065971263342},
{3.0, 0.01110899653824231}
]
|> Enum.... | 22.103448 | 69 | 0.641186 |
289765eafec1cc824c3e46c5017a3a5551b93a22 | 2,202 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/pubsub_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/pubsub_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/pubsub_config.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.321429 | 175 | 0.716167 |
28976b3b318bff0f9cf0ce4c12827843debd3548 | 75 | exs | Elixir | test/exreddit/api_test.exs | Zarathustra2/exreddit | ff2a1a898ee0846278c0485f4323192c703f5f3e | [
"MIT"
] | null | null | null | test/exreddit/api_test.exs | Zarathustra2/exreddit | ff2a1a898ee0846278c0485f4323192c703f5f3e | [
"MIT"
] | null | null | null | test/exreddit/api_test.exs | Zarathustra2/exreddit | ff2a1a898ee0846278c0485f4323192c703f5f3e | [
"MIT"
] | null | null | null | defmodule ExReddit.ApiTest do
use ExUnit.Case
doctest ExReddit.Api
end
| 15 | 29 | 0.8 |
289780cbe4928bee45356efaf13464bc5b71b4bd | 4,558 | exs | Elixir | mix.exs | dukalskis/stripity_stripe | 2f639e99300d3bac767d6023c898298f633b00bc | [
"BSD-3-Clause"
] | null | null | null | mix.exs | dukalskis/stripity_stripe | 2f639e99300d3bac767d6023c898298f633b00bc | [
"BSD-3-Clause"
] | null | null | null | mix.exs | dukalskis/stripity_stripe | 2f639e99300d3bac767d6023c898298f633b00bc | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Mixfile do
use Mix.Project
def project do
[
app: :stripity_stripe,
deps: deps(),
description: description(),
dialyzer: [
plt_add_apps: [:mix],
plt_file: {:no_warn, "priv/plts/stripity_stripe.plt"}
],
elixir: "~> 1.7",
package: package()... | 24.374332 | 85 | 0.560992 |
289799039d5de4ff98c2e565e18738d8d43e692b | 2,845 | ex | Elixir | test/process_managers/support/error/error_handling_process_manager.ex | Aleksion/commanded | 266587f7786d27b390a355991cbb792944ac0885 | [
"MIT"
] | null | null | null | test/process_managers/support/error/error_handling_process_manager.ex | Aleksion/commanded | 266587f7786d27b390a355991cbb792944ac0885 | [
"MIT"
] | null | null | null | test/process_managers/support/error/error_handling_process_manager.ex | Aleksion/commanded | 266587f7786d27b390a355991cbb792944ac0885 | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.ErrorHandlingProcessManager do
@moduledoc false
alias Commanded.ProcessManagers.{
ErrorHandlingProcessManager,
ErrorRouter,
}
alias Commanded.ProcessManagers.ErrorAggregate.Commands.{
AttemptProcess,
ContinueProcess,
}
alias Commanded.ProcessManagers.Erro... | 29.635417 | 119 | 0.729701 |
2897bbee0c985b861db55e08ba31a1295517adee | 5,988 | ex | Elixir | lib/joken/hooks.ex | chulkilee/joken | 8ce829f98c365fdf6bb75ad9dfdb5ea8482907eb | [
"Apache-2.0"
] | null | null | null | lib/joken/hooks.ex | chulkilee/joken | 8ce829f98c365fdf6bb75ad9dfdb5ea8482907eb | [
"Apache-2.0"
] | null | null | null | lib/joken/hooks.ex | chulkilee/joken | 8ce829f98c365fdf6bb75ad9dfdb5ea8482907eb | [
"Apache-2.0"
] | null | null | null | defmodule Joken.Hooks do
@moduledoc """
Behaviour for defining hooks into Joken's lifecycle.
Hooks are passed to `Joken` functions or added to `Joken.Config` through the
`add_hook/2` macro. They can change the execution flow of a token configuration.
Hooks are executed in a reduce_while call and so must alw... | 33.082873 | 99 | 0.614729 |
2897c67d4f96430b71ae3cc34c85939079c1c903 | 1,661 | ex | Elixir | lib/helloPhoenix_web.ex | herrkessler/helloPhoenix | be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa | [
"MIT"
] | null | null | null | lib/helloPhoenix_web.ex | herrkessler/helloPhoenix | be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa | [
"MIT"
] | null | null | null | lib/helloPhoenix_web.ex | herrkessler/helloPhoenix | be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa | [
"MIT"
] | null | null | null | defmodule HelloPhoenixWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use HelloPhoenixWeb, :controller
use HelloPhoenixWeb, :view
The definitions below will be executed for every view,... | 24.426471 | 69 | 0.697772 |
2897cc9a53df351b1c216109a45405133a25faa2 | 752 | exs | Elixir | mix.exs | timdeputter/theriac | 7bb589b7008c7134125462ae8477cfa3d9ad1101 | [
"MIT"
] | 4 | 2015-11-30T15:08:20.000Z | 2021-01-13T09:44:03.000Z | mix.exs | timdeputter/theriac | 7bb589b7008c7134125462ae8477cfa3d9ad1101 | [
"MIT"
] | null | null | null | mix.exs | timdeputter/theriac | 7bb589b7008c7134125462ae8477cfa3d9ad1101 | [
"MIT"
] | null | null | null | defmodule Theriac.Mixfile do
use Mix.Project
def project do
[app: :theriac,
version: "0.0.1",
description: "Implementation of clojure style transducers in elixir",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package,
deps: d... | 23.5 | 74 | 0.598404 |
2897f2745cf346c6423574c81159387c6a2453af | 626 | ex | Elixir | rumbl/lib/rumbl/repo.ex | uzumakitensho/phoenix-projects | 630904c7201b6ca0f6605b6626c8b5bec9deef70 | [
"MIT"
] | null | null | null | rumbl/lib/rumbl/repo.ex | uzumakitensho/phoenix-projects | 630904c7201b6ca0f6605b6626c8b5bec9deef70 | [
"MIT"
] | null | null | null | rumbl/lib/rumbl/repo.ex | uzumakitensho/phoenix-projects | 630904c7201b6ca0f6605b6626c8b5bec9deef70 | [
"MIT"
] | null | null | null | defmodule Rumbl.Repo do
@moduledoc """
In memory repository
"""
def all(Rumbl.User) do
[%Rumbl.User{id: "1", name: "Jose", username: "josevalim", password: "elixir"},
%Rumbl.User{id: "2", name: "Bruce", username: "redrapids", password: "7langs"},
%Rumbl.User{id: "3", name: "Chris", username: "chris... | 26.083333 | 83 | 0.605431 |
2897f4938d5f3d5b0e97d2fbdf8e18d2dadb8b13 | 11,804 | ex | Elixir | lib/prom_ex/config.ex | treble37/prom_ex | f5bb45279cf9576b1c4533de0ad555d3b2987f76 | [
"MIT"
] | null | null | null | lib/prom_ex/config.ex | treble37/prom_ex | f5bb45279cf9576b1c4533de0ad555d3b2987f76 | [
"MIT"
] | null | null | null | lib/prom_ex/config.ex | treble37/prom_ex | f5bb45279cf9576b1c4533de0ad555d3b2987f76 | [
"MIT"
] | null | null | null | defmodule PromEx.Config do
@moduledoc """
This module defines a struct that contains all of the fields necessary to configure
an instance of PromEx.
While this module does not directly access your Application config, PromEx will call the
`PromEx.Config.build/1` function directly with the contents of `Applica... | 44.882129 | 136 | 0.726872 |
289801585386ac1a9f7b57725d4185f07e3394df | 2,394 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/crypto.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher/lib/omg_watcher/crypto.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher/lib/omg_watcher/crypto.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 32.794521 | 107 | 0.662072 |
289804bbc028bf01b31739a6be055e1c5eea514b | 788 | ex | Elixir | apps/note_it_web/web/controllers/password_controller.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it_web/web/controllers/password_controller.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it_web/web/controllers/password_controller.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | defmodule NoteItWeb.PasswordController do
use NoteItWeb.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
def change(conn, %{"change_password" => params}) do
user = NoteItWeb.Session.current_user(conn)
IO.inspect user
cond do
params["new_password"] == "" ->
... | 27.172414 | 89 | 0.609137 |
289816d2ce12715798552df74cf792c6660b9624 | 990 | exs | Elixir | test/error_agent_test.exs | sebastian/excheck | 1a13bb582e6df9fcdec8dd2073f46d46cac255df | [
"MIT"
] | 318 | 2015-01-19T16:45:51.000Z | 2022-03-18T21:28:16.000Z | test/error_agent_test.exs | sebastian/excheck | 1a13bb582e6df9fcdec8dd2073f46d46cac255df | [
"MIT"
] | 44 | 2015-01-04T13:02:20.000Z | 2019-08-08T19:35:21.000Z | test/error_agent_test.exs | sebastian/excheck | 1a13bb582e6df9fcdec8dd2073f46d46cac255df | [
"MIT"
] | 35 | 2015-01-30T02:48:37.000Z | 2019-08-06T14:37:48.000Z | defmodule ExCheck.ErrorAgentTest do
use ExUnit.Case, async: false
alias ExCheck.ErrorAgent, as: ErrAgent
test "Starting and stopping agent" do
{:ok, agent} = ErrAgent.start_link
assert Process.alive?(agent)
ErrAgent.stop(agent)
refute Process.alive?(agent)
end
test "Adding and returning erro... | 33 | 65 | 0.661616 |
28981e267e5debef3fb88fa7c9550ec6ebf56e2a | 2,473 | ex | Elixir | farmbot_ext/lib/farmbot_ext/amqp/bot_state_channel.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_ext/lib/farmbot_ext/amqp/bot_state_channel.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_ext/lib/farmbot_ext/amqp/bot_state_channel.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotExt.AMQP.BotStateChannel do
@moduledoc """
Publishes JSON encoded bot state updates onto an AMQP channel
"""
use GenServer
use AMQP
alias AMQP.Channel
require FarmbotCore.Logger
alias FarmbotCore.JSON
alias FarmbotExt.AMQP.ConnectionWorker
alias FarmbotCore.{BotState, BotStateNG}... | 26.880435 | 93 | 0.648201 |
28983e16d9519f9cf2fb6dcf612ad323b9c24eff | 1,557 | ex | Elixir | lib/nerves_time/rtc/ds3231/status.ex | nerves-time/nerves_time_rtc_ds3231 | c4fc80eb924c3bf730768bdec0cf35794faf0563 | [
"Apache-2.0"
] | 3 | 2020-02-24T15:30:00.000Z | 2021-03-11T15:19:32.000Z | lib/nerves_time/rtc/ds3231/status.ex | nerves-time/nerves_time_rtc_ds3231 | c4fc80eb924c3bf730768bdec0cf35794faf0563 | [
"Apache-2.0"
] | 8 | 2020-03-03T03:42:42.000Z | 2020-03-25T12:34:00.000Z | lib/nerves_time/rtc/ds3231/status.ex | nerves-time/nerves_time_rtc_ds3231 | c4fc80eb924c3bf730768bdec0cf35794faf0563 | [
"Apache-2.0"
] | 5 | 2020-02-25T05:36:06.000Z | 2020-11-01T03:09:24.000Z | defmodule NervesTime.RTC.DS3231.Status do
@moduledoc false
alias NervesTime.RTC.DS3231
@typedoc "The DS3231 status registers are a 1-byte binary."
@type registers :: <<_::8>>
@typedoc "The shape of the status registers after decoding them."
@type data :: %{
osc_stop_flag: DS3231.flag(),
... | 25.52459 | 84 | 0.600514 |
28984dc3b66bca17f2900a77ad18908bac699653 | 1,778 | ex | Elixir | farmbot_core/lib/farmbot_core/asset/point.ex | EarthEngineering/facetop-os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset/point.ex | EarthEngineering/facetop-os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset/point.ex | EarthEngineering/facetop-os | c82a7f1e8098d3a03dddbd2f2cb46cda7b88b6fb | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.Point do
@moduledoc """
Points are data around an x,y,z
"""
use FarmbotCore.Asset.Schema, path: "/api/points"
schema "points" do
field(:id, :id)
has_one(:local_meta, FarmbotCore.Asset.Private.LocalMeta,
on_delete: :delete_all,
references: :local_id,
fore... | 22.506329 | 61 | 0.606862 |
28985905e50b8dabe85a681b399cc35c90c6e797 | 209 | ex | Elixir | lib/docdog_web/controllers/fallback_controller.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | 40 | 2017-04-19T15:35:42.000Z | 2020-02-14T11:07:44.000Z | lib/docdog_web/controllers/fallback_controller.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | 43 | 2017-01-17T23:03:47.000Z | 2018-08-16T01:25:24.000Z | lib/docdog_web/controllers/fallback_controller.ex | sobolevn/docdog-engine | 5f7ad60465063fac3d56574f2bf27a4a52d0a91e | [
"MIT"
] | 6 | 2018-02-15T09:43:15.000Z | 2018-04-10T21:08:36.000Z | defmodule DocdogWeb.FallbackController do
use DocdogWeb, :controller
def call(conn, {:error, :unauthorized}) do
conn
|> put_status(:forbidden)
|> render(DocdogWeb.ErrorView, :"403")
end
end
| 20.9 | 44 | 0.698565 |
2898671bd9140fc2042aa53f73ef3e42afdd9160 | 1,285 | ex | Elixir | verify/lib/ua_inspector_verify/fixtures/os.ex | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 57 | 2015-04-07T03:10:45.000Z | 2019-03-11T01:01:40.000Z | verify/lib/ua_inspector_verify/fixtures/os.ex | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 16 | 2015-03-09T19:56:17.000Z | 2019-03-16T14:24:02.000Z | verify/lib/ua_inspector_verify/fixtures/os.ex | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 15 | 2015-02-02T23:14:00.000Z | 2019-03-16T13:15:05.000Z | defmodule UAInspectorVerify.Fixtures.OS do
@moduledoc false
alias UAInspector.Config
@fixture_base "https://raw.githubusercontent.com/matomo-org/device-detector/"
@fixture_path "/Tests/Parser/fixtures/"
@fixtures_default [
"oss.yml"
]
@fixtures_release %{
"master" => []
}
def download do
... | 21.779661 | 81 | 0.667704 |
28987576f6a54430f0bacce32bd7065cf462fe0d | 1,234 | ex | Elixir | lib/event_loop/event_handlers/occupation.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 5 | 2016-10-20T10:00:59.000Z | 2017-11-19T08:14:18.000Z | lib/event_loop/event_handlers/occupation.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 39 | 2020-04-22T05:27:32.000Z | 2022-03-13T17:22:26.000Z | lib/event_loop/event_handlers/occupation.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | null | null | null | defimpl LaFamiglia.Event, for: LaFamiglia.Occupation do
require Logger
alias Ecto.Changeset
alias Ecto.Multi
alias LaFamiglia.Repo
alias LaFamiglia.Player
alias LaFamiglia.ComebackMovement
alias LaFamiglia.ConquestReport
def happens_at(occupation) do
occupation.succeeds_at
end
def handle(occ... | 28.697674 | 95 | 0.725284 |
28988a47431c9f5d251250f0ae68c616ef05e3c8 | 4,573 | ex | Elixir | lib/customer.ex | Packlane/braintree-elixir | 018ed351c64cdac577bf4acb93f73c1adddf70da | [
"MIT"
] | null | null | null | lib/customer.ex | Packlane/braintree-elixir | 018ed351c64cdac577bf4acb93f73c1adddf70da | [
"MIT"
] | null | null | null | lib/customer.ex | Packlane/braintree-elixir | 018ed351c64cdac577bf4acb93f73c1adddf70da | [
"MIT"
] | 1 | 2019-12-19T14:17:36.000Z | 2019-12-19T14:17:36.000Z | defmodule Braintree.Customer do
@moduledoc """
You can create a customer by itself, with a payment method, or with a
credit card with a billing address.
For additional reference see:
https://developers.braintreepayments.com/reference/request/customer/create/ruby
"""
use Braintree.Construction
alias B... | 27.884146 | 85 | 0.588891 |
28988f94a9177388f23a9ab0f2752ff459780220 | 260 | exs | Elixir | priv/repo/migrations/20190504162842_add_fields_to_global_config.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | priv/repo/migrations/20190504162842_add_fields_to_global_config.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | priv/repo/migrations/20190504162842_add_fields_to_global_config.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule Shopix.Repo.Migrations.AddFieldsToGlobalConfig do
use Ecto.Migration
def change do
alter table(:global_config) do
add :shipping_cost_default_amount, :integer, default: 0
add :upload_provider_public_key, :string
end
end
end
| 23.636364 | 61 | 0.753846 |
2898a2a988f217080ae6fe800c7b535cfa5cc71a | 4,159 | ex | Elixir | lib/ex338/championships.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | lib/ex338/championships.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | lib/ex338/championships.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338.Championships do
@moduledoc false
alias Ex338.{
Championships.Championship,
Championships.CreateSlot,
FantasyTeams,
Repo,
InSeasonDraftPicks.InSeasonDraftPick
}
def all_for_league(fantasy_league_id) do
Championship
|> Championship.all_for_league(fantasy_league_id)
... | 27.912752 | 100 | 0.732868 |
2898cca44b0d934f7cebb5fa4f56a3d889b56581 | 4,672 | ex | Elixir | lib/livebook_web/live/session_live/shortcuts_component.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/shortcuts_component.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/shortcuts_component.ex | brettcannon/livebook | d6c9ab1783efa083aea2ead81e078bb920d57ad6 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.ShortcutsComponent do
use LivebookWeb, :live_component
@shortcuts %{
insert_mode: [
%{seq: ["esc"], desc: "Switch back to navigation mode"},
%{seq: ["ctrl", "↵"], desc: "Evaluate cell and stay in insert mode"},
%{seq: ["tab"], desc: "Autocomplete expression w... | 30.535948 | 132 | 0.568279 |
2898dd08192ad13ac800b582b3413559157aa150 | 881 | ex | Elixir | debian/prerm.ex | Aeronavics/dronekit-la | 6b9b48aec5dcc610ad87631514aad12b67b753a9 | [
"Apache-2.0"
] | 33 | 2016-02-08T19:54:14.000Z | 2022-03-22T22:25:38.000Z | debian/prerm.ex | hnjm/dronekit-la | 68c11b61e049e72ca8217cf9f9b94fab93c12eab | [
"Apache-2.0"
] | 48 | 2016-01-27T06:22:42.000Z | 2022-03-29T21:54:14.000Z | debian/prerm.ex | hnjm/dronekit-la | 68c11b61e049e72ca8217cf9f9b94fab93c12eab | [
"Apache-2.0"
] | 32 | 2016-01-27T17:24:32.000Z | 2022-03-15T00:54:49.000Z | #!/bin/sh
# prerm script for dronekit-la
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-ver... | 22.589744 | 76 | 0.626561 |
2898e2df707a82b3a72ae0d384acd6ed52f87723 | 769 | exs | Elixir | mix.exs | ishikawa/plug_hackney_trace | eed2943d93134fb1bbc2dd88c47d205b9622e7f9 | [
"MIT"
] | 1 | 2019-06-11T13:23:56.000Z | 2019-06-11T13:23:56.000Z | mix.exs | ishikawa/plug_hackney_trace | eed2943d93134fb1bbc2dd88c47d205b9622e7f9 | [
"MIT"
] | null | null | null | mix.exs | ishikawa/plug_hackney_trace | eed2943d93134fb1bbc2dd88c47d205b9622e7f9 | [
"MIT"
] | null | null | null | defmodule PlugHackneyTrace.MixProject do
use Mix.Project
def project do
[
app: :plug_hackney_trace,
version: "0.1.0",
elixir: "~> 1.7",
description: "A plug to enable hackney_trace",
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
d... | 19.717949 | 76 | 0.526658 |
2898f04aaee4572afa312df96b295b6f810d2238 | 357 | ex | Elixir | lib/singyeong.ex | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 70 | 2018-10-25T06:06:37.000Z | 2022-03-14T19:51:56.000Z | lib/singyeong.ex | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 140 | 2019-02-19T06:52:59.000Z | 2022-03-01T11:13:41.000Z | lib/singyeong.ex | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 9 | 2019-03-20T12:17:28.000Z | 2021-03-11T18:51:00.000Z | defmodule Singyeong do
@moduledoc """
Singyeong 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.
"""
@version Mix.Project.config[:version]
@spec version() :: String... | 23.8 | 66 | 0.728291 |
289915e6ba195b2eff1325b684b72a2f1a6a080b | 38 | exs | Elixir | test/ex_png/line_test.exs | mad42/ex_png | bde6fbb237c632342dc009c315125d4c3e2a8b99 | [
"Unlicense"
] | 14 | 2021-01-31T16:06:43.000Z | 2021-11-04T18:10:25.000Z | test/ex_png/line_test.exs | mad42/ex_png | bde6fbb237c632342dc009c315125d4c3e2a8b99 | [
"Unlicense"
] | 6 | 2021-01-31T14:52:17.000Z | 2022-02-01T08:41:03.000Z | test/ex_png/line_test.exs | mad42/ex_png | bde6fbb237c632342dc009c315125d4c3e2a8b99 | [
"Unlicense"
] | 2 | 2021-04-26T18:51:35.000Z | 2022-01-17T03:39:25.000Z | defmodule ExPng.Image.LineTest do
end
| 12.666667 | 33 | 0.842105 |
289926918e8c9b679450be5e4fda40679294bd83 | 74 | exs | Elixir | phoenix/test/views/page_view_test.exs | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | phoenix/test/views/page_view_test.exs | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | phoenix/test/views/page_view_test.exs | pfac/generated | 3611d887bb4eba1ef63b1f16ed1dba54ce94f341 | [
"MIT"
] | null | null | null | defmodule Phoenix.PageViewTest do
use Phoenix.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
289928c7066568e69a3a5460c3626e57698b0d61 | 2,274 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/optimization_activity.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/optimization_activity.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/optimization_activity.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... | 42.111111 | 255 | 0.746702 |
289983a9ed14efc13ed550d805c4c89393048b57 | 5,315 | exs | Elixir | test/type_server_test.exs | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | test/type_server_test.exs | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | test/type_server_test.exs | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule TypeServerTest do
use ExUnit.Case, async: true
alias Postgrex.TypeSupervisor, as: TM
alias Postgrex.TypeServer, as: TS
@types Postgrex.DefaultTypes
test "fetches and unlocks" do
key = make_ref()
server = TM.locate(@types, key)
assert {:lock, ref, {@types, table}} = TS.fetch(server)
... | 26.843434 | 89 | 0.604327 |
289997c812f6432f13e0588274053c6c6dfbe7d6 | 18,659 | ex | Elixir | application/config/config.php.ex | Arya-rgb/learning | e82eb389dac49435171d3501860019ca0535469d | [
"MIT"
] | 2 | 2021-05-02T19:00:48.000Z | 2021-06-30T14:36:35.000Z | application/config/config.php.ex | Arya-rgb/learning | e82eb389dac49435171d3501860019ca0535469d | [
"MIT"
] | null | null | null | application/config/config.php.ex | Arya-rgb/learning | e82eb389dac49435171d3501860019ca0535469d | [
"MIT"
] | null | null | null | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | 35.339015 | 106 | 0.550297 |
28999cd0ec194dca49cdc1eb0e4b33d42994b2c4 | 1,119 | exs | Elixir | 01/config/config.exs | smt/adventofcode2018 | 4e584465775e4928cdae4d30af08c8827dae96cd | [
"MIT"
] | null | null | null | 01/config/config.exs | smt/adventofcode2018 | 4e584465775e4928cdae4d30af08c8827dae96cd | [
"MIT"
] | null | null | null | 01/config/config.exs | smt/adventofcode2018 | 4e584465775e4928cdae4d30af08c8827dae96cd | [
"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.096774 | 73 | 0.748883 |
2899aee1fbb56f0d6d7672ed1c01a1e8f9b8a0c7 | 545 | ex | Elixir | lib/ash/type/binary.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/type/binary.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/type/binary.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Type.Binary do
@moduledoc """
Represents a binary.
A builtin type that can be referenced via `:binary`
"""
use Ash.Type
@impl true
def storage_type, do: :binary
@impl true
def cast_input(value, _) do
Ecto.Type.cast(:binary, value)
end
@impl true
def cast_stored(nil, _), do... | 17.03125 | 53 | 0.655046 |
2899bbd0dd90580061189a426bdea4f5a3c6d0ea | 130 | exs | Elixir | config/dev.exs | techgaun/darkskyx | 81e66f9f1bbda074831cafe9a8538950dfa8b946 | [
"Apache-2.0"
] | 16 | 2016-10-03T23:04:33.000Z | 2020-03-04T17:54:43.000Z | config/dev.exs | techgaun/darkskyx | 81e66f9f1bbda074831cafe9a8538950dfa8b946 | [
"Apache-2.0"
] | 9 | 2018-01-07T12:13:42.000Z | 2020-04-12T23:38:26.000Z | config/dev.exs | techgaun/darkskyx | 81e66f9f1bbda074831cafe9a8538950dfa8b946 | [
"Apache-2.0"
] | 3 | 2018-01-07T11:20:42.000Z | 2018-08-22T20:05:38.000Z | use Mix.Config
config :darkskyx,
api_key: System.get_env("DARKSKY_API_KEY"),
defaults: [
units: "us",
lang: "en"
]
| 14.444444 | 45 | 0.630769 |
2899c9208848d32ad83a0c889a42d5c255a4c15d | 1,577 | ex | Elixir | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/lodging_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/lodging_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/lodging_metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.553191 | 218 | 0.745086 |
2899de94760e760350fd7e776800dff5f2445ef5 | 1,575 | ex | Elixir | lib/code_corps_web/channels/user_socket.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps_web/channels/user_socket.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps_web/channels/user_socket.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "conversation:*", CodeCorpsWeb.ConversationChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket,
timeout: 45_000,
check_origin: Application.get_env(:code_corps, :allowed_origins)
# transport :longpoll, ... | 32.8125 | 85 | 0.695873 |
2899edef30a57de0498bd0216934623b0c859aee | 2,322 | ex | Elixir | lib/companies_web/viewing_stats.ex | BobbyMcWho/elixir-companies | 05ca7f05ce4331afda24beaa13c6adaa54e4139e | [
"MIT"
] | null | null | null | lib/companies_web/viewing_stats.ex | BobbyMcWho/elixir-companies | 05ca7f05ce4331afda24beaa13c6adaa54e4139e | [
"MIT"
] | null | null | null | lib/companies_web/viewing_stats.ex | BobbyMcWho/elixir-companies | 05ca7f05ce4331afda24beaa13c6adaa54e4139e | [
"MIT"
] | null | null | null | defmodule CompaniesWeb.ViewingStats do
@moduledoc """
GenServer to handle aggregating simple app stats and history for telemetry_poller
to pass on to LiveDashboard.
"""
use GenServer
@telemetry_event [:page_views, :count_events]
@historic_metrics [:page_views, :companies_web]
@history_buffer_size 500
... | 26.089888 | 102 | 0.661929 |
2899fd1db7d35d58eb7b5b418061d4d2f9180978 | 155 | ex | Elixir | lib/noap/type/string.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | 1 | 2022-03-04T03:55:46.000Z | 2022-03-04T03:55:46.000Z | lib/noap/type/string.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | null | null | null | lib/noap/type/string.ex | bpardee/noap | 4c21c55ef2d88ad26a9fab94805beff954315dbf | [
"MIT"
] | null | null | null | defmodule Noap.Type.String do
use Noap.Type
@impl true
def from_str(str, _opts), do: {:ok, str}
@impl true
def to_str(str, _opts), do: str
end
| 15.5 | 42 | 0.664516 |
289a2412c9b983c876ba8eeac07a422943dda413 | 995 | ex | Elixir | packages/templates/src/project/potionx/lib/{{ appName }}_graphql/schema.ex | PotionApps/potionx | 92a23f05c9b640256ec980b87cd6b262a1d03157 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | packages/templates/src/project/potionx/lib/{{ appName }}_graphql/schema.ex | PotionApps/potionx | 92a23f05c9b640256ec980b87cd6b262a1d03157 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | packages/templates/src/project/potionx/lib/{{ appName }}_graphql/schema.ex | PotionApps/potionx | 92a23f05c9b640256ec980b87cd6b262a1d03157 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule <%= appModule %>GraphQl.Schema do
use Potionx.Schema
node interface do
resolve_type fn
%<%= appModule %>.Users.User{}, _ ->
:user
%<%= appModule %>.UserIdentities.UserIdentity{}, _ ->
:user_identity
_, _ ->
nil
end
end
def context(ctx) ... | 25.512821 | 114 | 0.656281 |
289a38d32a11a8a4cb9709841186a697767e5425 | 1,332 | exs | Elixir | 2018/Elixir/day02/day02.exs | nicbet/advent-of-code | a44a16c777081bdc9fabdfee72541a95c291ef18 | [
"MIT"
] | null | null | null | 2018/Elixir/day02/day02.exs | nicbet/advent-of-code | a44a16c777081bdc9fabdfee72541a95c291ef18 | [
"MIT"
] | null | null | null | 2018/Elixir/day02/day02.exs | nicbet/advent-of-code | a44a16c777081bdc9fabdfee72541a95c291ef18 | [
"MIT"
] | null | null | null | defmodule Day02 do
defp input do
File.stream!("day02_input.txt")
|> Enum.map(&String.trim/1)
end
def has_n?(input, n) do
String.graphemes(input)
|> Enum.reduce(%{}, fn x, acc -> Map.update(acc, x, 1, &(&1 + 1)) end)
|> Enum.filter(fn {_, b} -> b == n end) |> Enum.count() > 0
end
def part1() do
a =
... | 18 | 72 | 0.584835 |
289a420e85c1f1958c36b0d24302c718ae1f483f | 1,659 | ex | Elixir | todo/lib/todo/todos.ex | IITA-DMCS-2122/iita_elixir | e636360edd96f0bfcde91eec212a467f10186437 | [
"MIT"
] | null | null | null | todo/lib/todo/todos.ex | IITA-DMCS-2122/iita_elixir | e636360edd96f0bfcde91eec212a467f10186437 | [
"MIT"
] | 22 | 2021-12-11T13:12:45.000Z | 2022-01-29T14:20:03.000Z | todo/lib/todo/todos.ex | IITA-DMCS-2122/iita_elixir | e636360edd96f0bfcde91eec212a467f10186437 | [
"MIT"
] | null | null | null | defmodule Todo.Todos do
@moduledoc """
The Todos context.
"""
import Ecto.Query, warn: false
alias Todo.Repo
alias Todo.Todos.Item
@doc """
Returns the list of items.
## Examples
iex> list_items()
[%Item{}, ...]
"""
def list_items do
Repo.all(Item)
end
@doc """
Gets a ... | 15.8 | 59 | 0.561181 |
289a584822bc47134fcc5427b4fcaf4aac020a64 | 238 | ex | Elixir | debian/td-agent.default.ex | ThoughtWorksStudios/td-agent | ebaa52ae8f3a756a9e001098e24728ac9a3a6ae0 | [
"Apache-2.0"
] | 58 | 2015-01-16T05:16:03.000Z | 2021-07-11T16:19:49.000Z | debian/td-agent.default.ex | ThoughtWorksStudios/td-agent | ebaa52ae8f3a756a9e001098e24728ac9a3a6ae0 | [
"Apache-2.0"
] | 22 | 2015-01-13T06:32:25.000Z | 2017-05-10T10:29:50.000Z | debian/td-agent.default.ex | ThoughtWorksStudios/td-agent | ebaa52ae8f3a756a9e001098e24728ac9a3a6ae0 | [
"Apache-2.0"
] | 22 | 2015-03-12T12:58:39.000Z | 2021-03-17T18:27:36.000Z | # Defaults for td-agent initscript
# sourced by /etc/init.d/td-agent
# installed at /etc/default/td-agent by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
| 21.636364 | 62 | 0.752101 |
289a66038cd381d8c6221ad1f3a2da54bf4f9b19 | 70 | ex | Elixir | web/views/login_view.ex | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | 5 | 2015-12-21T00:33:41.000Z | 2016-05-07T20:51:55.000Z | web/views/login_view.ex | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | null | null | null | web/views/login_view.ex | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | null | null | null | defmodule SecretKeeper.LoginView do
use SecretKeeper.Web, :view
end
| 17.5 | 35 | 0.814286 |
289a75cc29ae4ce86fc750fbea452de9da8659bc | 72 | ex | Elixir | lib/portfolio_web/views/public/page_view.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | lib/portfolio_web/views/public/page_view.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | lib/portfolio_web/views/public/page_view.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | defmodule PortfolioWeb.Public.PageView do
use PortfolioWeb, :view
end
| 18 | 41 | 0.819444 |
289a77e3b018ae96281da89e87c6c953b73b72b8 | 1,347 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_longrunning_cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_longrunning_cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_longrunning_cancel_operation_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.071429 | 97 | 0.777283 |
289a7e4c2269f871188fe87a4462f914bf6511f4 | 1,825 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/visited_expression.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/visited_expression.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/visited_expression.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.5 | 175 | 0.739178 |
289a9783c3b940b1da9290559075bdc3c4d3f9bb | 1,380 | exs | Elixir | test/gandalf/plugs/unauthorized_only_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | 1 | 2018-05-01T01:34:56.000Z | 2018-05-01T01:34:56.000Z | test/gandalf/plugs/unauthorized_only_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | test/gandalf/plugs/unauthorized_only_test.exs | pragmaticivan/gandalf | d6f79489104f3b3544247856bb93679f47ec9e0d | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Gandalf.Plug.UnauthorizedOnlyTest do
use ExUnit.Case
use Plug.Test
use Gandalf.{ModelCase, ConnCase}
import Gandalf.Factory
alias Gandalf.Plug.UnauthorizedOnly, as: UnauthorizedOnlyPlug
@default_opts [
store: :cookie,
key: "foobar",
encryption_salt: "encrypted cookie salt",
signin... | 29.361702 | 79 | 0.699275 |
289aa29b7dbebb0c241dead0bb0c6b013decadb1 | 619 | exs | Elixir | test/screens_web/auth_manager_test.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | test/screens_web/auth_manager_test.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | test/screens_web/auth_manager_test.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.AuthManagerTest do
use ExUnit.Case
describe "subject_for_token/2" do
test "returns username" do
assert ScreensWeb.AuthManager.subject_for_token("foo", %{}) == {:ok, "foo"}
end
end
describe "resource_from_claims/1" do
test "returns username and expiration when well-format... | 29.47619 | 91 | 0.675283 |
289ab79940849057e71c4207b61e48d2359c029c | 880 | ex | Elixir | clients/storage/lib/google_api/storage/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.592593 | 74 | 0.757955 |
289ad1710ab31541d2e1d84251416fe35d46845c | 3,556 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.873563 | 179 | 0.687008 |
289b10a6b2bb513ba8bfa5dd4ea383065ae315dc | 6,240 | ex | Elixir | lib/logger/lib/logger/backends/console.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/backends/console.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/backends/console.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule Logger.Backends.Console do
@moduledoc false
use GenEvent
defstruct [format: nil, metadata: nil, level: nil, colors: nil, device: nil,
max_buffer: nil, buffer_size: 0, buffer: [], ref: nil, output: nil]
def init(:console) do
if Process.whereis(:user) do
init({:user, []})
e... | 28.888889 | 83 | 0.624038 |
289b4026f270d07004acf58fc6e4f33edc40c9b3 | 1,325 | exs | Elixir | Chapter09/apps/elixir_drip_web/test/elixir_drip_web/controllers/file_controller_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter09/apps/elixir_drip_web/test/elixir_drip_web/controllers/file_controller_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter09/apps/elixir_drip_web/test/elixir_drip_web/controllers/file_controller_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDripWeb.FileControllerTest do
use ElixirDripWeb.ConnCase, async: true
describe "when the user is authenticated" do
setup [:create_user, :login_user, :create_media]
test "GET /files lists the files for the current user", %{conn: conn, media: media} do
response = get(conn, "/files?path... | 27.604167 | 90 | 0.638491 |
289b7bf425a86540c26213a9a5c60eb875a82665 | 3,504 | ex | Elixir | lib/xgit/object_id.ex | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 94 | 2019-05-28T05:29:54.000Z | 2022-02-18T20:03:20.000Z | lib/xgit/object_id.ex | scouten/xgit | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 156 | 2019-05-26T03:27:24.000Z | 2020-10-08T05:44:26.000Z | lib/xgit/object_id.ex | scouten/redo | 0e2f849c83cdf39a9249b319d63ff3682c482c2f | [
"Apache-2.0"
] | 5 | 2019-05-28T16:35:55.000Z | 2021-06-16T14:25:17.000Z | defmodule Xgit.ObjectId do
@moduledoc ~S"""
An object ID is a string that identifies an object within a repository.
This string must match the format for a SHA-1 hash (i.e. 40 characters
of lowercase hex).
"""
use Xgit.ObjectType
import Xgit.Util.ForceCoverage
alias Xgit.ContentSource
@typedoc "A ... | 27.590551 | 98 | 0.667237 |
289bdf08a0b1477842bce6a2d53f820f31a4256d | 1,540 | ex | Elixir | lib/grizzly/command_class/switch_multilevel/get.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/switch_multilevel/get.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/switch_multilevel/get.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.SwitchMultilevel.Get do
@moduledoc """
Command module for working with SWITCH_MULTILEVEL GET command.
command options:
* `:seq_number` - The sequence number for the Z/IP Packet
"""
@behaviour Grizzly.Command
alias Grizzly.Packet
alias Grizzly.CommandClass.SwitchMultil... | 25.666667 | 98 | 0.643506 |
289c2cccaf1b4bbce0a1bb1b5c04b78bb1f4361a | 1,306 | exs | Elixir | mix.exs | cryptobird/ex_iss | b6124614e68f09bedb1ba8739aab1b4a66014b40 | [
"WTFPL"
] | 4 | 2015-12-08T14:00:37.000Z | 2020-05-11T11:24:45.000Z | mix.exs | cryptobird/ex_iss | b6124614e68f09bedb1ba8739aab1b4a66014b40 | [
"WTFPL"
] | null | null | null | mix.exs | cryptobird/ex_iss | b6124614e68f09bedb1ba8739aab1b4a66014b40 | [
"WTFPL"
] | null | null | null | defmodule ExISS.Mixfile do
use Mix.Project
def project do
[app: :ex_iss,
version: "1.0.0",
elixir: "~> 1.1",
description: description,
package: package,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP appli... | 24.185185 | 80 | 0.590352 |
289c6b7cf9ab0d6a52639da0753ae4011921b10f | 51,384 | exs | Elixir | test/query_test.exs | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | 60 | 2018-01-12T12:53:13.000Z | 2022-02-23T23:32:59.000Z | test/query_test.exs | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | 1 | 2018-02-22T13:09:08.000Z | 2018-02-22T18:33:53.000Z | test/query_test.exs | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | null | null | null | require Logger
defmodule QueryTest.WillFail do
def schema(_db) do
{:ok, ["willfail"]}
end
def schema(_db, "willfail"), do: {:ok, %{columns: ["fail"]}}
def execute(_db, "willfail", quals, _columns) do
fail =
Enum.find_value(quals, [], fn
{"fail", "=", fail} -> fail
_other -> "fai... | 27.895765 | 144 | 0.561653 |
289c8ebce3f7f59d08179bc7d1763a6b7673d702 | 983 | ex | Elixir | lib/mix/tasks/convert_yahoo_data.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | 1 | 2019-07-31T13:43:21.000Z | 2019-07-31T13:43:21.000Z | lib/mix/tasks/convert_yahoo_data.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | null | null | null | lib/mix/tasks/convert_yahoo_data.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.ConvertYahooData do
def run(args) do
csv_path = Enum.at(args, 0)
[name, _extenstion] =
String.split(csv_path, ".")
json_path =
"#{name}.json"
content =
csvToJson(csv_path)
File.write!(json_path, content)
end
defp csvToJson(path) do
path
|> Fi... | 18.203704 | 69 | 0.462869 |
289c9567bd53e98287c4a0881301963d7de8dbd8 | 4,961 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_user_event.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_user_event.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_user_event.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... | 59.059524 | 883 | 0.755493 |
289ca7153bbca9d05063ac7ee1b86633e14a1535 | 397 | ex | Elixir | testData/org/elixir_lang/parser_definition/bracket_operation_parsing_test_case/OrOperator.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/bracket_operation_parsing_test_case/OrOperator.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/bracket_operation_parsing_test_case/OrOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | Module.or[key: value]
Module.or [key: value]
Module.or[()]
Module.or [()]
Module.or[matched_expression]
Module.or [matched_expression]
Module.or[matched_expression,]
Module.or [matched_expression,]
Module.||[key: value]
Module.|| [key: value]
Module.||[()]
Module.|| [()]
Module.||[matched_expression]
Module.|| [matche... | 22.055556 | 31 | 0.725441 |
289cd8887cadc7147567def1a274c75b6ae3d319 | 7,538 | ex | Elixir | test/support/test_msg.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | test/support/test_msg.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | test/support/test_msg.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | defmodule TestMsg do
@moduledoc false
defmodule SyntaxOption do
@moduledoc false
use Protobuf, syntax: :proto3
defstruct []
end
defmodule Foo.Bar do
@moduledoc false
use Protobuf, syntax: :proto3
defstruct [:a, :b]
field :a, 1, type: :int32
field :b, 2, type: :string
end
... | 24.877888 | 92 | 0.609976 |
289ce1f5430e3586e6d4f1ff469432b9164f3d66 | 1,619 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/model/weekly_cycle.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/managed_identities/lib/google_api/managed_identities/v1/model/weekly_cycle.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/managed_identities/lib/google_api/managed_identities/v1/model/weekly_cycle.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... | 34.446809 | 168 | 0.749228 |
289cfe8be6653ca65d1d09a53fc95b859a94e22c | 960 | ex | Elixir | clients/content/lib/google_api/content/v2/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.923077 | 77 | 0.763542 |
289d20c50350b60c93d4609fd3cc526b9475e3e0 | 828 | ex | Elixir | web/router.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | web/router.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | web/router.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | defmodule HomeWorkManager.Router do
use HomeWorkManager.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
plug Guardian.Plug.Verify... | 22.378378 | 60 | 0.69686 |
289d318c8a3c865712ef8def77a6020c433a6f54 | 104 | ex | Elixir | examples/botany/lib/botany/repo.ex | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | examples/botany/lib/botany/repo.ex | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | examples/botany/lib/botany/repo.ex | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | defmodule Botany.Repo do
use Ecto.Repo,
otp_app: :botany,
adapter: Ecto.Adapters.Postgres
end
| 17.333333 | 35 | 0.721154 |
289d562a17e3c0ac30997f8e7df8361e3b80ba56 | 5,399 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 42.511811 | 230 | 0.742545 |
289d6395af96181f5563b7aa6b67623c0dc68fc9 | 476 | ex | Elixir | lib/git_hub_actions/conv_case.ex | kianmeng/git_hub_actions | f60cc151d6dc13983132fbf773f3233ca381406d | [
"MIT"
] | 6 | 2021-08-22T22:23:54.000Z | 2021-08-29T12:25:53.000Z | lib/git_hub_actions/conv_case.ex | kianmeng/git_hub_actions | f60cc151d6dc13983132fbf773f3233ca381406d | [
"MIT"
] | 2 | 2022-02-15T16:36:41.000Z | 2022-02-18T17:32:07.000Z | lib/git_hub_actions/conv_case.ex | hrzndhrn/git_hub_actions | 5d96718cf5aacb017c0b1114ca3283fe75c8913e | [
"MIT"
] | null | null | null | defmodule GitHubActions.ConvCase do
@moduledoc false
def to_kebab(atom) when is_atom(atom) do
atom
|> to_string()
|> to_kebab()
|> String.to_atom()
end
def to_kebab(string) when is_binary(string) do
case env_var?(string) do
true ->
string
false ->
nil
S... | 18.307692 | 49 | 0.596639 |
289d826acd4343cd74337c3aca02614995beace9 | 1,748 | exs | Elixir | apps/gitgud/test/gitgud/user_query_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud/test/gitgud/user_query_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud/test/gitgud/user_query_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.UserQueryTest do
use GitGud.DataCase, async: true
use GitGud.DataFactory
alias GitGud.Email
alias GitGud.User
alias GitGud.UserQuery
setup :create_users
test "gets single user by id", %{users: users} do
for user <- users do
assert user.id == UserQuery.by_id(user.id).id
en... | 29.133333 | 107 | 0.65389 |
289dd44b0302ee8df1350e66aab1b95e3ac28d0f | 1,808 | ex | Elixir | lib/queries/attribute.ex | samueljseay/hound_page_object | 5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8 | [
"MIT"
] | 20 | 2016-07-02T10:10:43.000Z | 2021-01-07T19:03:56.000Z | lib/queries/attribute.ex | samueljseay/hound_page_object | 5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8 | [
"MIT"
] | 6 | 2016-12-31T22:31:22.000Z | 2018-06-12T01:00:07.000Z | lib/queries/attribute.ex | samueljseay/hound_page_object | 5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8 | [
"MIT"
] | 7 | 2016-09-02T15:07:20.000Z | 2021-09-13T17:09:49.000Z | defmodule PageObject.Queries.Attribute do
@moduledoc """
A module wrapper for the attribute query macro
"""
@doc """
Defines a module function that queries the attribute value of an element on an html page. The function name is derived
by `name`. When scoped to a collection the function takes an elem... | 29.16129 | 122 | 0.643252 |
289de9c52b98bc8349ea74c52dcb4cd70f833926 | 68 | exs | Elixir | test/test_helper.exs | imrinzzzz/reborn | eedd5104264c9ade37907f20956c06fc03a80646 | [
"MIT"
] | null | null | null | test/test_helper.exs | imrinzzzz/reborn | eedd5104264c9ade37907f20956c06fc03a80646 | [
"MIT"
] | null | null | null | test/test_helper.exs | imrinzzzz/reborn | eedd5104264c9ade37907f20956c06fc03a80646 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Reborn.Repo, :manual)
| 22.666667 | 52 | 0.779412 |
289e4272451a5b773bd147c2a6e78b30845bd742 | 69 | ex | Elixir | lib/signinsheet_web/views/page_view.ex | Dhall777/signinsheet | 703f6f2b0bc4e31888bf7e81939cfd4b05d99cfb | [
"BSD-3-Clause"
] | null | null | null | lib/signinsheet_web/views/page_view.ex | Dhall777/signinsheet | 703f6f2b0bc4e31888bf7e81939cfd4b05d99cfb | [
"BSD-3-Clause"
] | null | null | null | lib/signinsheet_web/views/page_view.ex | Dhall777/signinsheet | 703f6f2b0bc4e31888bf7e81939cfd4b05d99cfb | [
"BSD-3-Clause"
] | null | null | null | defmodule SigninsheetWeb.PageView do
use SigninsheetWeb, :view
end
| 17.25 | 36 | 0.826087 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.