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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6524ff07f38b2721baecf47b2090c5263540819f | 1,593 | ex | Elixir | lib/gocardless/client_apis/creditor_bank_account.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 5 | 2017-06-23T16:09:20.000Z | 2020-03-08T15:25:41.000Z | lib/gocardless/client_apis/creditor_bank_account.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 9 | 2017-06-26T10:29:34.000Z | 2018-10-18T11:05:57.000Z | lib/gocardless/client_apis/creditor_bank_account.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 2 | 2017-06-23T19:09:07.000Z | 2021-07-14T20:48:59.000Z | defmodule Gocardless.ClientApi.CreditorBankAccount do
@moduledoc false
defmacro __using__(_) do
quote do
alias Gocardless.Api.CreditorBankAccount
@behaviour Gocardless.Behaviour.CreditorBankAccount
# Creditor API
def list_creditor_bank_accounts(params \\ %{}) do
GenServer.call(... | 35.4 | 98 | 0.73258 |
652524076bcc53dc021ee198d61a16255ec92a47 | 1,452 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_uiv1beta3_import_documents_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_uiv1beta3_import_documents_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_uiv1beta3_import_documents_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.893617 | 101 | 0.778237 |
65254fe681d250c8cc7cd878e234720fc8e9de98 | 6,300 | ex | Elixir | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 73.255814 | 511 | 0.714603 |
65255b903628d972f8226d93834fb1e16dd1ff74 | 13,060 | ex | Elixir | lib/pix_reversal/pix_reversal.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | lib/pix_reversal/pix_reversal.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | lib/pix_reversal/pix_reversal.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfra.PixReversal do
alias __MODULE__, as: PixReversal
alias StarkInfra.Utils.Rest
alias StarkInfra.Utils.Check
alias StarkInfra.User.Project
alias StarkInfra.Utils.Parse
alias StarkInfra.User.Organization
alias StarkInfra.Error
@moduledoc """
Groups PixReversal related functions
"""... | 35.68306 | 336 | 0.655054 |
65256c628223caa6466b0f04cfe9a1722514589e | 11,665 | ex | Elixir | lib/sanbase/alerts/user_trigger.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/alerts/user_trigger.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/alerts/user_trigger.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Alert.UserTrigger do
@moduledoc ~s"""
Module that implements the connectionb between a user and a trigger.
It provides functionsn for creating and updating such user triggerrs. Also
this is the struct that is used in the `Sanbase.Alert.Evaluator` because it
needs to know the user to whom the... | 31.784741 | 96 | 0.645006 |
65256df63bef6e79b47f81395a0782c201763b3b | 5,505 | exs | Elixir | test/liblink/network/consul/agent_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 3 | 2018-10-26T12:55:15.000Z | 2019-05-03T22:41:34.000Z | test/liblink/network/consul/agent_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 4 | 2018-08-26T14:43:57.000Z | 2020-09-23T21:14:56.000Z | test/liblink/network/consul/agent_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 (c) Xerpa
#
# 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, so... | 33.162651 | 99 | 0.60654 |
65259d7ea332ec65821666127f291f969bb841c7 | 6,584 | ex | Elixir | lib/teiserver/account/lib/user_lib.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/account/lib/user_lib.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | null | null | null | lib/teiserver/account/lib/user_lib.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Teiserver.Account.UserLib do
use CentralWeb, :library
alias Central.Account.UserQueries
require Logger
# Functions
@spec icon :: String.t()
def icon, do: "far fa-user-robot"
@spec colours :: {String.t(), String.t(), String.t()}
def colours, do: Central.Helpers.StylingHelper.colours(:success)... | 31.203791 | 99 | 0.610571 |
6525b141a7b34ff1607a1a18b6c8a8c1e93da5f5 | 4,675 | ex | Elixir | lib/nlexch_client/server.ex | MassICTBV/nlexch-client-elixir | 794121d139092ad98be0445eee50434f7802ca2d | [
"MIT"
] | null | null | null | lib/nlexch_client/server.ex | MassICTBV/nlexch-client-elixir | 794121d139092ad98be0445eee50434f7802ca2d | [
"MIT"
] | null | null | null | lib/nlexch_client/server.ex | MassICTBV/nlexch-client-elixir | 794121d139092ad98be0445eee50434f7802ca2d | [
"MIT"
] | null | null | null | require Logger
defmodule NLexchClient.Server do
use HTTPoison.Base
use GenServer
#############################################################################
### GenServer Callback
#############################################################################
def start_link(account, key, secret) do
o... | 28.858025 | 107 | 0.531123 |
6525d0661ec4453afb722505767f37fb2055c543 | 800 | ex | Elixir | lib/comparable/datetime.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | lib/comparable/datetime.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | lib/comparable/datetime.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defimpl Timex.Comparable, for: DateTime do
alias Timex.AmbiguousDateTime
alias Timex.Comparable.Utils
alias Timex.Comparable.Diff
def compare(a, :epoch, granularity), do: compare(a, Timex.epoch(), granularity)
def compare(a, :zero, granularity), do: compare(a, Timex.zero(), granularity)
def compare(_, :dis... | 34.782609 | 81 | 0.7075 |
6525e065a6d1f9e955b0b02e804a86d7119ffbd4 | 594 | exs | Elixir | packages/rlack/api/test/views/error_view_test.exs | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | 1 | 2017-04-08T20:08:05.000Z | 2017-04-08T20:08:05.000Z | packages/rlack/api/test/views/error_view_test.exs | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | null | null | null | packages/rlack/api/test/views/error_view_test.exs | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | null | null | null | defmodule Rlack.ErrorViewTest do
use Rlack.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(Rlack.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
test "render 500.jso... | 27 | 66 | 0.639731 |
6525f6888227992c56b46c4d1f2f5dfe414bf2bb | 1,385 | exs | Elixir | config/config.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | config/config.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | config/config.exs | paulgoetze/adoptoposs | 1a143917ac5a192f12054fff4410a1ee18935353 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
if Mix.env() == :dev do
config :mix_test_watch,
... | 28.265306 | 86 | 0.751625 |
6525f69cd0dffbee118d91786f7850a7dd2ac92d | 510 | ex | Elixir | lib/nomad_client/model/allocation_restart_request.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/model/allocation_restart_request.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/model/allocation_restart_request.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Model.AllocationRestartRequest do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:TaskName
]
@type t :: %__MOD... | 20.4 | 91 | 0.692157 |
65261954fb304fa6fd0256eb28974e652a10b3da | 2,562 | exs | Elixir | code_flow/test/case_test.exs | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/test/case_test.exs | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/test/case_test.exs | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | # ---
# Excerpted from "Thinking Elixir - CodeFlow", published by Mark Ericksen.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact me if you are in doubt. I make
# no guarantees that this code is fit for any purpose. Visit
# https://thinki... | 35.09589 | 94 | 0.649493 |
6526240ee53553cbc6b5d219b072cd1412d4716b | 7,031 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/projects.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... | 46.256579 | 475 | 0.644858 |
6526267d41281b76bc8cbe5dc5617040c695c554 | 3,507 | exs | Elixir | test/unit/macros_test.exs | circles-learning-labs/confex | 525ad3144293a0b7d287b39013fcaf5b65bfdffa | [
"MIT"
] | 299 | 2016-09-08T19:15:02.000Z | 2022-03-16T07:19:56.000Z | test/unit/macros_test.exs | circles-learning-labs/confex | 525ad3144293a0b7d287b39013fcaf5b65bfdffa | [
"MIT"
] | 54 | 2016-09-13T20:55:30.000Z | 2021-04-01T14:31:42.000Z | test/unit/macros_test.exs | circles-learning-labs/confex | 525ad3144293a0b7d287b39013fcaf5b65bfdffa | [
"MIT"
] | 37 | 2016-11-02T12:26:21.000Z | 2021-07-15T21:55:42.000Z | defmodule ConfexMacrosTest do
use ExUnit.Case
defmodule TestModule do
use Confex,
otp_app: :confex,
overriden_var: {:system, "TESTENV_REQ"},
overriden_keyword: [list: [foo: "foo", mix: {:system, "TESTENV", "default mix"}]],
overriden_map: %{list: %{foo: "foo", mix: {:system, "TESTENV", ... | 28.512195 | 112 | 0.642715 |
652636c6ac7717f9bc473e0ffa72d92de55cb769 | 933 | exs | Elixir | test/orders/agent_test.exs | Buckshot-77/exlivery | cf616f1a843318d2004fd3d8be4fb69cac4c0800 | [
"MIT"
] | null | null | null | test/orders/agent_test.exs | Buckshot-77/exlivery | cf616f1a843318d2004fd3d8be4fb69cac4c0800 | [
"MIT"
] | null | null | null | test/orders/agent_test.exs | Buckshot-77/exlivery | cf616f1a843318d2004fd3d8be4fb69cac4c0800 | [
"MIT"
] | null | null | null | defmodule Exlivery.Orders.AgentTest do
use ExUnit.Case
import Exlivery.Factory
alias Exlivery.Orders.Agent, as: OrderAgent
describe "save/1" do
setup do
OrderAgent.start_link(%{})
:ok
end
test "saves the order with valid data" do
order = build(:order)
assert {:ok, _uuid}... | 19.4375 | 58 | 0.635584 |
65263df5041a84701cbc1da3135035d0ceef00e7 | 2,269 | ex | Elixir | lib/sthub_web.ex | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | null | null | null | lib/sthub_web.ex | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | 14 | 2020-07-17T06:00:03.000Z | 2020-10-29T20:28:32.000Z | lib/sthub_web.ex | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | null | null | null | defmodule StHubWeb 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 StHubWeb, :controller
use StHubWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 22.245098 | 83 | 0.680035 |
65264b36d64c1a350b301efd7e1cef5f820d2054 | 2,271 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.155172 | 217 | 0.715984 |
65266a3b2e5ce62bf2b6c3cebc6dd95319b0798b | 5,526 | ex | Elixir | lib/tesla/multipart.ex | michaldarda/tesla | 2ea084c62e06ffbaa64920b6b4a7cce62550b89d | [
"MIT"
] | null | null | null | lib/tesla/multipart.ex | michaldarda/tesla | 2ea084c62e06ffbaa64920b6b4a7cce62550b89d | [
"MIT"
] | null | null | null | lib/tesla/multipart.ex | michaldarda/tesla | 2ea084c62e06ffbaa64920b6b4a7cce62550b89d | [
"MIT"
] | null | null | null | defmodule Tesla.Multipart do
@boundary_length 40
@moduledoc """
Multipart functionality.
## Example
```
mp =
Multipart.new()
|> Multipart.add_content_type_param("charset=utf-8")
|> Multipart.add_field("field1", "foo")
|> Multipart.add_field("field2", "bar",
headers: [{"content-id", ... | 27.63 | 97 | 0.614549 |
6526784fcf972f99ebf95da8f61088e573a728ca | 3,536 | ex | Elixir | lib/seven/event_store/state.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 7 | 2019-08-23T16:28:34.000Z | 2020-12-18T04:57:51.000Z | lib/seven/event_store/state.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 9 | 2021-07-29T16:18:30.000Z | 2021-07-29T16:36:59.000Z | lib/seven/event_store/state.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 6 | 2020-04-07T15:41:50.000Z | 2021-10-01T19:03:08.000Z | defmodule Seven.EventStore.State do
@moduledoc false
@type string_to_pids :: Map.t()
@type pid_to_strings :: Map.t()
@type pid_to_references :: Map.t()
@opaque t :: %__MODULE__{
event_to_pids: string_to_pids,
pid_to_events: pid_to_strings,
pid_to_monitor: pid_to_reference... | 31.571429 | 96 | 0.668552 |
6526893a81e32428f15545f2151757f7611ff97f | 608 | exs | Elixir | config/test.exs | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | 6 | 2019-10-08T01:30:08.000Z | 2020-10-01T04:49:33.000Z | config/test.exs | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | null | null | null | config/test.exs | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | 1 | 2019-11-08T22:58:31.000Z | 2019-11-08T22:58:31.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :photo_gallery, PhotoGalleryWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :photo_ga... | 24.32 | 64 | 0.75 |
6526efcf7eb857c4c2326afc4735e4943b6e8a9a | 2,384 | exs | Elixir | test/changelog_web/views/news_item_view_test.exs | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | test/changelog_web/views/news_item_view_test.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | test/changelog_web/views/news_item_view_test.exs | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.NewstemViewTest do
use ChangelogWeb.ConnCase, async: true
alias ChangelogWeb.NewsItemView
describe "object_path/1" do
test "defaults to nil when object is nil" do
item = build(:news_item, object_id: nil)
assert is_nil(NewsItemView.object_path(item))
end
test "reco... | 35.058824 | 167 | 0.665268 |
652701c3309b4f27e45f862cfd4b671db8def5d8 | 4,064 | ex | Elixir | lib/advent_of_code_2019/day15.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | lib/advent_of_code_2019/day15.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | lib/advent_of_code_2019/day15.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | defmodule AdventOfCode2019.OxygenSystem do
@moduledoc """
Day 15 — https://adventofcode.com/2019/day/15
"""
require AdventOfCode2019.IntcodeComputer
@spec part1(Enumerable.t()) :: integer
def part1(in_stream) do
in_stream
|> load_program()
|> locate()
|> List.first()
end
@spec part2(E... | 28.822695 | 92 | 0.577018 |
6527207f0bfa754ee436756d46e636149d1aaf05 | 2,308 | ex | Elixir | lib/ex_unit/lib/ex_unit/case.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | 1 | 2017-10-29T16:37:08.000Z | 2017-10-29T16:37:08.000Z | lib/ex_unit/lib/ex_unit/case.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | ekosz/elixir | 62e375bc711b4072e1b68de776e96cc31f571d45 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Case do
@moduledoc """
This module is meant to be used in other modules
as a way to configure and prepare them for testing.
When used, it allows the following options:
* :async - configure Elixir to run that specific test case
in parallel with others. Must be used for performan... | 24.553191 | 75 | 0.62435 |
652743076d36b953b45d8f169a8adce39b399906 | 1,688 | exs | Elixir | test/suite/draft4/maximum_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft4/maximum_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft4/maximum_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft4.MaximumTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "maximum validation" do
setup do
%{schema: Xema.new(maximum: 3.0)}
end
test "below the maximum is valid", %{schema: schema} do
data = 2.6
assert valid?(schema, data)
end
t... | 22.810811 | 65 | 0.609005 |
65276e2d21c8758d492bbb251eae511d98238f1d | 5,121 | ex | Elixir | apps/concierge_site/lib/views/stop_select_helper.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/concierge_site/lib/views/stop_select_helper.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/concierge_site/lib/views/stop_select_helper.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule ConciergeSite.StopSelectHelper do
@moduledoc """
Render the stop select component in templates
"""
@type stop_row :: [
id: String.t(),
name: String.t(),
modes: MapSet.t(),
accessible: boolean,
shapes: MapSet.t()
]
alias AlertProcessor.Servic... | 32.207547 | 95 | 0.627612 |
652779133bc70b18bdeac68f24ded37d801d6eac | 80 | ex | Elixir | lib/dobble_generator_web/views/picture_view.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 4 | 2020-04-11T23:00:13.000Z | 2022-02-07T14:51:18.000Z | lib/dobble_generator_web/views/picture_view.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 2 | 2021-03-10T13:32:34.000Z | 2021-05-11T09:27:10.000Z | lib/dobble_generator_web/views/picture_view.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | null | null | null | defmodule DobbleGeneratorWeb.PictureView do
use DobbleGeneratorWeb, :view
end
| 20 | 43 | 0.85 |
652780aacfba20f8af752609c916d437a5e76a10 | 38,519 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/live_broadcasts.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... | 74.361004 | 1,139 | 0.698227 |
6527e6e7dbb0a9557a61a970b54c88e5bbbb9ce3 | 1,923 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_batch_update_entity_types_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_batch_update_entity_types_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_batch_update_entity_types_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 ... | 33.736842 | 179 | 0.764951 |
6527efc22ab3ab3931250e6d6676d97c63d7a95c | 133,698 | ex | Elixir | data/auto_generated/video/b5ddde0ec8f7dde1de5b114ad3fa80fc.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/auto_generated/video/b5ddde0ec8f7dde1de5b114ad3fa80fc.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/auto_generated/video/b5ddde0ec8f7dde1de5b114ad3fa80fc.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule(Data.AutoGenerated.Video.Rendered_b5ddde0ec8f7dde1de5b114ad3fa80fc) do
@moduledoc "#{"Alltagsroute 13: innere Ringroute, gegen Uhrzeigersinn"}
AUTOGENERATED. To update this file, run mix velo.videos.generate.
See Video.Rendered for functionality.
"
@behaviour Video.Rendered
@impl Video.Rendered... | 79.204976 | 98 | 0.702052 |
6527f0d81e878bb6428a3880fd5b1d100a3a4d08 | 1,108 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_delete_instances_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_delete_instances_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_delete_instances_request.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... | 29.945946 | 108 | 0.761733 |
6527fb7520e3b750f65f928707cf05051442b481 | 2,640 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource.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 ... | 48.888889 | 598 | 0.747348 |
65280413b0225f0001fbacbb011e17f4d97bfd6f | 15,235 | exs | Elixir | test/spec/path_test.exs | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | null | null | null | test/spec/path_test.exs | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | null | null | null | test/spec/path_test.exs | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | null | null | null | defmodule Oasis.Spec.PathTest do
use ExUnit.Case
import Oasis.Test.Support.Spec
alias Oasis.Spec.{Path, Utils}
test "format url" do
url = "/{a}"
assert Path.format_url(url) == "/:a"
url = "/a/{b}/c"
assert Path.format_url(url) == "/a/:b/c"
url = "/a/{b}/{c}/d"
assert Path.format_url... | 25.648148 | 130 | 0.488743 |
65282b8974fdcbc1db1afe3e79363570fadddde9 | 122 | exs | Elixir | test/test_helper.exs | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | 1 | 2021-06-17T21:49:04.000Z | 2021-06-17T21:49:04.000Z | test/test_helper.exs | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Bitty.Repo, :manual)
{:ok, _} = Application.ensure_all_started(:ex_machina)
| 30.5 | 54 | 0.770492 |
6528360ffbd9490d840090628456c0061c63c111 | 2,427 | ex | Elixir | lib/sundog/parser.ex | wisq/sundog | 78ec18a07ad2a21bcb0ff9f069679497096ce916 | [
"Apache-2.0"
] | null | null | null | lib/sundog/parser.ex | wisq/sundog | 78ec18a07ad2a21bcb0ff9f069679497096ce916 | [
"Apache-2.0"
] | null | null | null | lib/sundog/parser.ex | wisq/sundog | 78ec18a07ad2a21bcb0ff9f069679497096ce916 | [
"Apache-2.0"
] | null | null | null | defmodule Sundog.Parser do
def parse(text) do
lines = text
|> String.split("\n")
|> Enum.group_by(&line_type/1)
headers = parse_headers(lines[:header])
data = parse_data(headers, lines[:data])
{headers, data}
end
def line_type(line) do
case String.first(line) do
... | 23.336538 | 75 | 0.564895 |
652838b26ca1a86a4092d5e36517095bdf79c8c0 | 419 | ex | Elixir | lib/tlc_app/school/attendance.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | lib/tlc_app/school/attendance.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | lib/tlc_app/school/attendance.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | defmodule TlcApp.School.Attendance do
use Ecto.Schema
import Ecto.Changeset
@fields [:user_id, :time_table_id]
schema "attendances" do
belongs_to :user, TlcApp.Accounts.User
belongs_to :time_table, TlcApp.School.Timetable
timestamps()
end
@doc false
def changeset(%__MODULE__{} = attendance... | 19.952381 | 53 | 0.708831 |
6528491a226feeb88df947596c80733fb02d25bd | 1,113 | exs | Elixir | other/tests/config/config.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | 1 | 2016-12-25T09:53:53.000Z | 2016-12-25T09:53:53.000Z | other/tests/config/config.exs | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | other/tests/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.
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... | 35.903226 | 73 | 0.750225 |
6528635da4050a8452b61de431a7bbce3e50efc2 | 1,063 | ex | Elixir | test/support/conn_case.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | defmodule ListentothisWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, i... | 27.25641 | 74 | 0.726246 |
652866a0e80dd943db820116a7e41905d5eea645 | 2,264 | ex | Elixir | test/support/stripe_case.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | test/support/stripe_case.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | test/support/stripe_case.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.StripeCase do
@moduledoc """
This module defines the setup for tests requiring access to a mocked version of Stripe.
"""
use ExUnit.CaseTemplate
def assert_stripe_requested(expected_method, path, extra \\ []) do
expected_url = build_url(path, Keyword.get(extra, :query))
expected_bod... | 29.025641 | 97 | 0.702297 |
6528ac895d36b0cc2d3367016ce3da37e781b1e3 | 4,062 | ex | Elixir | lib/stripe/checkout/session.ex | Eein/stripity_stripe | c4ca6c50564bafe5eb1377d68d3eee8e79c6d1c8 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/checkout/session.ex | Eein/stripity_stripe | c4ca6c50564bafe5eb1377d68d3eee8e79c6d1c8 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/checkout/session.ex | Eein/stripity_stripe | c4ca6c50564bafe5eb1377d68d3eee8e79c6d1c8 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Session do
@moduledoc """
Work with Stripe Checkout Session objects.
You can:
- Create a new session
- Retrieve a session
Stripe API reference: https://stripe.com/docs/api/checkout/sessions
"""
use Stripe.Entity
import Stripe.Request
@type line_item :: %{
:amount => i... | 30.088889 | 92 | 0.569178 |
6528af53ee90539c5e73d5a7e47093360ae55730 | 1,625 | ex | Elixir | apps/demon_spirit_web/lib/demon_spirit_game_ui/game_registry.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 12 | 2019-09-17T13:47:57.000Z | 2021-12-11T17:11:11.000Z | apps/demon_spirit_web/lib/demon_spirit_game_ui/game_registry.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 181 | 2019-10-15T01:21:44.000Z | 2021-08-31T19:26:54.000Z | apps/demon_spirit_web/lib/demon_spirit_game_ui/game_registry.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 2 | 2020-07-11T02:18:46.000Z | 2021-05-31T10:46:39.000Z | defmodule DemonSpiritWeb.GameRegistry do
@moduledoc """
GameRegistry: A centralized list of all games going on, and a little information about them.
It's stored in key value format, in ETS.
keys = game_name (string)
values = %GameInfo{}, which is a short summary about the game
"""
use GenServer
... | 21.959459 | 96 | 0.632 |
6528b29b3e2fed1924003da19906d6d2c47a6fba | 1,252 | ex | Elixir | apps/snitch_core/lib/core/data/model/store_props.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/data/model/store_props.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/data/model/store_props.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Model.StoreProps do
@moduledoc """
Use this model to store any key value pair struct that will be needed for
application and needs to be persisted.
For eg: We might want to store some secret key or API keys for application we
can store them using this Model.
"""
use Snitch.Data.Mod... | 27.217391 | 93 | 0.653355 |
6528bfc5df28087fa6a887ba8765dd70dacb82cc | 188 | ex | Elixir | lib/softwaremaxims_web/controllers/consulting_controller.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | null | null | null | lib/softwaremaxims_web/controllers/consulting_controller.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | 7 | 2018-10-13T20:45:27.000Z | 2018-10-29T12:42:22.000Z | lib/softwaremaxims_web/controllers/consulting_controller.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | null | null | null | defmodule SoftwaremaximsWeb.ConsultingController do
use SoftwaremaximsWeb, :controller
def index(conn, _params) do
render(conn, "consulting.html", add_blog_style: true)
end
end
| 23.5 | 57 | 0.781915 |
6528dd80010d11da74f681e5802f1ccaaf8e49fb | 1,439 | ex | Elixir | lib/anaconda.ex | nroi/anaconda | d74ab5d2fdbf42c0477acb6b0dcdcd34a468c365 | [
"MIT"
] | null | null | null | lib/anaconda.ex | nroi/anaconda | d74ab5d2fdbf42c0477acb6b0dcdcd34a468c365 | [
"MIT"
] | null | null | null | lib/anaconda.ex | nroi/anaconda | d74ab5d2fdbf42c0477acb6b0dcdcd34a468c365 | [
"MIT"
] | null | null | null | defmodule Anaconda do
def range_from_chars([start], [endd]) do
start..endd
end
def chars() do
first_range = range_from_chars('a', 'z')
second_range = range_from_chars('0', '9')
chars = Enum.to_list(first_range) ++ Enum.to_list(second_range)
List.to_tuple(chars)
end
def string_hash_fixed_... | 30.617021 | 84 | 0.692842 |
6528de7abac907f6ee6e2f637331ba0dcca63b99 | 16,324 | ex | Elixir | clients/partners/lib/google_api/partners/v2/api/users.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/users.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/users.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... | 53 | 218 | 0.691068 |
6528e06433d3396837303e202ff3d56ed95aa396 | 10,119 | ex | Elixir | lib/hunter/account.ex | jeffkreeftmeijer/hunter | a5ccf0849c8aeaee3dd90b431067924ff603a651 | [
"Apache-2.0"
] | null | null | null | lib/hunter/account.ex | jeffkreeftmeijer/hunter | a5ccf0849c8aeaee3dd90b431067924ff603a651 | [
"Apache-2.0"
] | null | null | null | lib/hunter/account.ex | jeffkreeftmeijer/hunter | a5ccf0849c8aeaee3dd90b431067924ff603a651 | [
"Apache-2.0"
] | null | null | null | defmodule Hunter.Account do
@moduledoc """
Account entity
This module defines a `Hunter.Account` struct and the main functions
for working with Accounts.
## Fields
* `id` - the id of the account
* `username` - the username of the account
* `acct` - equals `username` for local users, includes `@... | 28.911429 | 149 | 0.646111 |
6528f1a07a5ece0c9057ef1b7118548acc6c801d | 5,021 | exs | Elixir | test/statix_test.exs | dnlserrano/statix | 00c9d690f41847cab8ad5e70f28e501f98035797 | [
"0BSD"
] | 255 | 2015-05-14T13:39:57.000Z | 2022-03-02T14:50:33.000Z | test/statix_test.exs | dnlserrano/statix | 00c9d690f41847cab8ad5e70f28e501f98035797 | [
"0BSD"
] | 47 | 2015-05-17T13:14:13.000Z | 2021-07-16T15:07:52.000Z | test/statix_test.exs | dnlserrano/statix | 00c9d690f41847cab8ad5e70f28e501f98035797 | [
"0BSD"
] | 68 | 2015-05-16T15:30:04.000Z | 2022-02-02T16:29:39.000Z | runtime_config? = System.get_env("STATIX_TEST_RUNTIME_CONFIG") in ["1", "true"]
defmodule StatixTest do
use Statix.TestCase
import ExUnit.CaptureLog
use Statix, runtime_config: unquote(runtime_config?)
defp close_port() do
%{pool: pool} = current_statix()
Enum.each(pool, &Port.close/1)
end
setu... | 28.207865 | 81 | 0.613623 |
6528fc643d545e7c95294c51ecd498d16113f43b | 1,557 | ex | Elixir | lib/consul/http/client.ex | team-telnyx/consul-elixir | 56f9b13ab1503300e3ab25728649e7ada1e253c8 | [
"MIT"
] | 11 | 2018-10-30T03:55:42.000Z | 2021-02-06T18:23:47.000Z | lib/consul/http/client.ex | team-telnyx/consul-elixir | 56f9b13ab1503300e3ab25728649e7ada1e253c8 | [
"MIT"
] | null | null | null | lib/consul/http/client.ex | team-telnyx/consul-elixir | 56f9b13ab1503300e3ab25728649e7ada1e253c8 | [
"MIT"
] | 3 | 2019-11-27T06:43:52.000Z | 2020-05-24T08:18:34.000Z | defmodule Consul.HTTP.Client do
@moduledoc false
require Logger
use HTTPoison.Base
def process_url(query) do
"http://#{base_url()}/#{query}"
end
def process_response_body(body) do
case Poison.decode(body) do
{:ok, decoded_body} ->
decode_body(decoded_body)
_ ->
body
... | 20.486842 | 98 | 0.630058 |
65290143050f5a5d600c34adf04204c076980afe | 1,800 | ex | Elixir | nevernote/lib/nevernote_web/controllers/note_controller.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | 4 | 2019-01-07T09:15:23.000Z | 2021-06-18T02:56:14.000Z | nevernote/lib/nevernote_web/controllers/note_controller.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | nevernote/lib/nevernote_web/controllers/note_controller.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | defmodule NevernoteWeb.NoteController do
use NevernoteWeb, :controller
alias Nevernote.Content
alias Nevernote.Content.Note
def new(conn, %{"blocknote_id" => blocknote_id}) do
changeset = Content.change_note(%Note{blocknote_id: blocknote_id})
render(conn, "new.html", changeset: changeset, blocknote_id... | 27.692308 | 78 | 0.623333 |
65293e15079fad43be7aa578f45ab5c20096e2ac | 614 | exs | Elixir | apps/crash_dump_1/mix.exs | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/crash_dump_1/mix.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/crash_dump_1/mix.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule Crasher.Mixfile do
use Mix.Project
def project() do
[
app: :crasher,
version: "1.0.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()
]
end
def application() do
[
applications: apps(Mix.env),... | 16.157895 | 42 | 0.470684 |
652990a1c1e7e0f38ef791812ac32503b9dcfc0a | 1,538 | ex | Elixir | rockelivery/lib/rockelivery_web/endpoint.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/lib/rockelivery_web/endpoint.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/lib/rockelivery_web/endpoint.ex | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :rockelivery
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_r... | 29.018868 | 97 | 0.719766 |
6529b5ccb602bb320328476c378e7559e501f400 | 3,119 | ex | Elixir | lib/tentacat/followers.ex | reset/tentacat | 1a69f54ae9b4d79d27246c903c6ef42d2631b7c5 | [
"MIT"
] | null | null | null | lib/tentacat/followers.ex | reset/tentacat | 1a69f54ae9b4d79d27246c903c6ef42d2631b7c5 | [
"MIT"
] | null | null | null | lib/tentacat/followers.ex | reset/tentacat | 1a69f54ae9b4d79d27246c903c6ef42d2631b7c5 | [
"MIT"
] | null | null | null | defmodule Tentacat.Users.Followers do
import Tentacat
alias Tentacat.Client
@doc """
List followers for the authenticated user
## Example
Tentacat.Users.Followers.following client
More info at: http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user
"""
@spec follow... | 24.753968 | 99 | 0.701507 |
6529f4d9951feb5d0f17a19e8e71b40c0ea6ebd5 | 346 | ex | Elixir | elx_otp/lib/request.ex | bhatti/concurency-katas | e235a71d042cf1093544cc7b878a68f27e653747 | [
"MIT"
] | null | null | null | elx_otp/lib/request.ex | bhatti/concurency-katas | e235a71d042cf1093544cc7b878a68f27e653747 | [
"MIT"
] | null | null | null | elx_otp/lib/request.ex | bhatti/concurency-katas | e235a71d042cf1093544cc7b878a68f27e653747 | [
"MIT"
] | null | null | null | defmodule Request do
@enforce_keys [:clientPid, :url, :depth, :created_at]
defstruct [:clientPid, :url, :depth, :created_at]
def new(url, depth, clientPid) when is_binary(url) and is_integer(depth) and is_pid(clientPid) do
%Request{clientPid: clientPid, url: url, depth: depth, created_at: System.system_time(... | 34.6 | 104 | 0.736994 |
652a1d409b9f4c7f21ce79cb6dcda22b63b0eae9 | 1,047 | ex | Elixir | food_poisoning/lib/food_poisoning/endpoint.ex | javflores/food-poison | 6b7503c5830c31044026655846e8009f933fe0f4 | [
"MIT"
] | null | null | null | food_poisoning/lib/food_poisoning/endpoint.ex | javflores/food-poison | 6b7503c5830c31044026655846e8009f933fe0f4 | [
"MIT"
] | null | null | null | food_poisoning/lib/food_poisoning/endpoint.ex | javflores/food-poison | 6b7503c5830c31044026655846e8009f933fe0f4 | [
"MIT"
] | null | null | null | defmodule FoodPoisoning.Endpoint do
use Phoenix.Endpoint, otp_app: :food_poisoning
socket "/socket", FoodPoisoning.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
... | 26.175 | 69 | 0.720153 |
652a31ac1df4842cad2136068de142d973843aaa | 5,200 | ex | Elixir | lib/ex_wikipedia/page/page.ex | luoken/ex-wikipedia | 1d98078682bf56e9f17331159c59a5343e7325ec | [
"Apache-2.0"
] | 2 | 2022-01-15T00:21:42.000Z | 2022-01-16T20:12:38.000Z | lib/ex_wikipedia/page/page.ex | luoken/ex-wikipedia | 1d98078682bf56e9f17331159c59a5343e7325ec | [
"Apache-2.0"
] | 1 | 2022-02-01T12:48:51.000Z | 2022-02-10T21:32:37.000Z | lib/ex_wikipedia/page/page.ex | luoken/ex-wikipedia | 1d98078682bf56e9f17331159c59a5343e7325ec | [
"Apache-2.0"
] | 1 | 2022-01-11T21:18:12.000Z | 2022-01-11T21:18:12.000Z | defmodule ExWikipedia.Page do
@moduledoc """
`ExWikipedia.page/2` delegates here. This module represents the current
implementation.
"""
@behaviour ExWikipedia
@follow_redirect true
@default_http_client HTTPoison
@default_json_parser Jason
@default_status_key :status_code
@default_body_key :body
... | 35.616438 | 236 | 0.660192 |
652a4ecf516fa8d81f8bffbde09b6105ec6415c7 | 198 | exs | Elixir | test/gforce_web/controllers/page_controller_test.exs | JordanCheney/gforce | 44b2862e3a4aacb13316922431f22f0889c5fa99 | [
"MIT"
] | null | null | null | test/gforce_web/controllers/page_controller_test.exs | JordanCheney/gforce | 44b2862e3a4aacb13316922431f22f0889c5fa99 | [
"MIT"
] | 2 | 2021-05-11T10:59:37.000Z | 2021-06-17T00:54:44.000Z | test/gforce_web/controllers/page_controller_test.exs | JordanCheney/gforce | 44b2862e3a4aacb13316922431f22f0889c5fa99 | [
"MIT"
] | null | null | null | defmodule GforceWeb.PageControllerTest do
use GforceWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22 | 60 | 0.676768 |
652a887ef45e2aa74f8011bbaa664e7b93aa2a6c | 817 | exs | Elixir | bot/mix.exs | hectorip/Facebook_Bot_Elixir | 097967c985f2b48c7fc9d67979fed9b4821c888b | [
"Apache-2.0"
] | 1 | 2016-05-25T04:39:09.000Z | 2016-05-25T04:39:09.000Z | bot/mix.exs | hectorip/Facebook_Bot_Elixir | 097967c985f2b48c7fc9d67979fed9b4821c888b | [
"Apache-2.0"
] | null | null | null | bot/mix.exs | hectorip/Facebook_Bot_Elixir | 097967c985f2b48c7fc9d67979fed9b4821c888b | [
"Apache-2.0"
] | null | null | null | defmodule Bot.Mixfile do
use Mix.Project
def project do
[app: :bot,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more informa... | 20.948718 | 77 | 0.555692 |
652aa9003b95daf6202338b33825ca8654b68a97 | 2,144 | ex | Elixir | clients/content/lib/google_api/content/v2/model/account_you_tube_channel_link.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_you_tube_channel_link.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_you_tube_channel_link.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... | 42.88 | 715 | 0.748134 |
652ac6b0d2eb24ab0deb9b36e39fbcfe0f4e1b9c | 447 | ex | Elixir | lib/remedy/schema/callback.ex | bdanklin/nostrum | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | 3 | 2021-09-05T09:44:02.000Z | 2022-01-26T15:31:50.000Z | lib/remedy/schema/callback.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | lib/remedy/schema/callback.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | defmodule Remedy.Schema.Callback do
@moduledoc """
Interaction Callback
"""
use Remedy.Schema
@type t :: %__MODULE__{
type: CallbackType.t(),
data: CallbackData.t()
}
@primary_key false
embedded_schema do
field :type, CallbackType
embeds_one :data, CallbackData
end... | 17.88 | 50 | 0.626398 |
652ad4d8fde973ec5fac7c7b70faa080be0e9f63 | 5,547 | ex | Elixir | lib/site_encrypt/acme/client.ex | bucha/site_encrypt | b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb | [
"MIT"
] | 387 | 2018-05-22T21:46:20.000Z | 2022-03-26T18:51:01.000Z | lib/site_encrypt/acme/client.ex | bucha/site_encrypt | b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb | [
"MIT"
] | 41 | 2018-06-03T13:02:24.000Z | 2022-02-14T11:16:24.000Z | lib/site_encrypt/acme/client.ex | bucha/site_encrypt | b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb | [
"MIT"
] | 24 | 2018-05-24T07:04:12.000Z | 2022-02-09T08:21:05.000Z | defmodule SiteEncrypt.Acme.Client do
@moduledoc """
ACME related functions for endpoints managed by `SiteEncrypt`.
This module exposes higher-level ACME client-side scenarios, such as new account creation, and
certification. Normally these functions are invoked automatically by `SiteEncrypt` processes.
The ... | 36.98 | 98 | 0.687579 |
652afe4766af6dea2d31ee82f1b7085404eff747 | 1,208 | ex | Elixir | lib/print_url.ex | bbense/doc_helpers | e509bbc6740f03e35134485b8a15e6fdf1f31013 | [
"Apache-2.0"
] | null | null | null | lib/print_url.ex | bbense/doc_helpers | e509bbc6740f03e35134485b8a15e6fdf1f31013 | [
"Apache-2.0"
] | null | null | null | lib/print_url.ex | bbense/doc_helpers | e509bbc6740f03e35134485b8a15e6fdf1f31013 | [
"Apache-2.0"
] | null | null | null | defmodule PrintUrl do
@moduledoc """
Implements DocHelp by printing out a documentation url.
"""
def documentation(module) do
case elixir?(module) do
true -> find(ElixirUrl, module)
_ -> find(ErlangUrl, module)
end
end
def documentation(module, _function) do
documentation(module)... | 27.454545 | 107 | 0.656457 |
652b2968bca63b6aeccb105e39e9ccb61b548f96 | 186 | exs | Elixir | config/releases.exs | daniloescolin/elixir-opentelemetry-example | d74107ad4707eea5d8d206519bb17b165daff58c | [
"Apache-2.0"
] | null | null | null | config/releases.exs | daniloescolin/elixir-opentelemetry-example | d74107ad4707eea5d8d206519bb17b165daff58c | [
"Apache-2.0"
] | null | null | null | config/releases.exs | daniloescolin/elixir-opentelemetry-example | d74107ad4707eea5d8d206519bb17b165daff58c | [
"Apache-2.0"
] | null | null | null | import Config
config :opentelemetry,
:processors,
ot_batch_processor: %{
exporter: {:opentelemetry_exporter, %{endpoints: [{:http, 'otel', 55681, []}]}}
}
| 23.25 | 88 | 0.596774 |
652b3a5f9ef2c2384727000771ed3a0a98c4e337 | 1,659 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/free_busy_calendar.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/free_busy_calendar.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/free_busy_calendar.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 33.18 | 120 | 0.747438 |
652b4345cced2d23df9b83683eb15387d504b69d | 1,784 | ex | Elixir | lib/events_tools_web.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | lib/events_tools_web.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | lib/events_tools_web.ex | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityToolsWeb do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use CommunityToolsWeb, :controller
use CommunityToolsWeb, :view
The definitions below will be executed for every view,
controller, etc... | 23.786667 | 102 | 0.701794 |
652b6bb0e3a5e464a98f99da73c1aba00a7cb72f | 422 | ex | Elixir | apps/trial/lib/trial/handlers/driven.ex | losttime/commanded_poc | 9b1101924e8b9918666d565d12119dcd448fd040 | [
"MIT"
] | null | null | null | apps/trial/lib/trial/handlers/driven.ex | losttime/commanded_poc | 9b1101924e8b9918666d565d12119dcd448fd040 | [
"MIT"
] | null | null | null | apps/trial/lib/trial/handlers/driven.ex | losttime/commanded_poc | 9b1101924e8b9918666d565d12119dcd448fd040 | [
"MIT"
] | null | null | null | defmodule Trial.Handlers.Driven do
@moduledoc """
Listens for events and acts on them
"""
use Commanded.Event.Handler, name: "drivenA"
alias Trial.Events.UserRegistered
require Logger
def handle(%UserRegistered{}, _metadata) do
Logger.info("Handling Driven event")
:ok
end
def handle(event, ... | 21.1 | 69 | 0.703791 |
652bbae4e3efc868eba54a5adb5c111aa0e30ae4 | 4,108 | ex | Elixir | lib/logjam_agent/channel.ex | xing/exbeetle | 6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c | [
"MIT"
] | 3 | 2018-02-02T14:38:21.000Z | 2018-02-05T17:33:35.000Z | lib/logjam_agent/channel.ex | xing/elixir_logjam_agent | 6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c | [
"MIT"
] | null | null | null | lib/logjam_agent/channel.ex | xing/elixir_logjam_agent | 6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c | [
"MIT"
] | null | null | null | defmodule LogjamAgent.Channel do
alias LogjamAgent.Instrumentation
@moduledoc """
Use this module if you want to activate Logjam reporting for `Phoenix` channel implementations.
This will automatically instrument the `join`, `handle_in` and `handle_out` functions.
Join is called when a client attempts to "j... | 31.358779 | 136 | 0.655063 |
652bcac35dddd43ec9e6b0315e8aebc43a1d1642 | 1,780 | exs | Elixir | mix.exs | mirego/formex_ecto | 2f113d142b45803b79ef3e6c15ff2c658c678a7b | [
"MIT"
] | 20 | 2017-06-25T12:30:03.000Z | 2021-04-25T06:43:31.000Z | mix.exs | mirego/formex_ecto | 2f113d142b45803b79ef3e6c15ff2c658c678a7b | [
"MIT"
] | 8 | 2017-11-19T17:15:32.000Z | 2020-02-02T12:50:03.000Z | mix.exs | mirego/formex_ecto | 2f113d142b45803b79ef3e6c15ff2c658c678a7b | [
"MIT"
] | 9 | 2018-03-30T22:14:13.000Z | 2021-11-15T12:12:56.000Z | defmodule Formex.Ecto.Mixfile do
use Mix.Project
def project do
[
app: :formex_ecto,
version: "0.2.3",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
d... | 26.176471 | 92 | 0.548315 |
652c1935689fd091a6f6bc6fa3f2088e89b2c53f | 1,631 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/release/tasks.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/release/tasks.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/release/tasks.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWebCore.Release.Tasks do
alias Ecto.Migrator
@otp_app :nerves_hub_web_core
@start_apps [:logger, :ssl, :postgrex, :ecto_sql]
def migrate_and_seed do
init(@otp_app, @start_apps)
run_migrations_for(@otp_app)
run_seed_script("#{seed_path(@otp_app)}/seeds.exs")
stop()
end
... | 23.3 | 73 | 0.667075 |
652c1cf469d7b5bb691a14c69f73930d7ebe69d6 | 353 | ex | Elixir | apps/re_web/lib/graphql/resolvers/seller_leads.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re_web/lib/graphql/resolvers/seller_leads.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_web/lib/graphql/resolvers/seller_leads.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule ReWeb.Resolvers.SellerLeads do
@moduledoc """
Resolver module for seller leads
"""
alias Re.SellerLeads
def create_site(%{input: params}, %{context: %{current_user: current_user}}) do
with :ok <- Bodyguard.permit(SellerLeads, :create_seller_lead, current_user, params) do
SellerLeads.creat... | 27.153846 | 91 | 0.725212 |
652c45cda2afff8f933b00e63b09f845718cb663 | 239 | ex | Elixir | apps/re/lib/interests/types.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/lib/interests/types.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/interests/types.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.Interests.Types do
@moduledoc """
Context module for interest types
"""
def data(params), do: Dataloader.Ecto.new(Re.Repo, query: &query/2, default_params: params)
def query(_query, _args), do: Re.InterestType
end
| 23.9 | 93 | 0.719665 |
652c7e365b12beac63abeb112eb0c1a30cb75a5c | 549 | ex | Elixir | test/support/phoenix/conn_case.ex | dclausen/pow_assent | 63dfe3bd55e6b0a6e30bc95daefb9074f7f73691 | [
"MIT"
] | null | null | null | test/support/phoenix/conn_case.ex | dclausen/pow_assent | 63dfe3bd55e6b0a6e30bc95daefb9074f7f73691 | [
"MIT"
] | null | null | null | test/support/phoenix/conn_case.ex | dclausen/pow_assent | 63dfe3bd55e6b0a6e30bc95daefb9074f7f73691 | [
"MIT"
] | null | null | null | defmodule PowAssent.Test.Phoenix.ConnCase do
@moduledoc false
use ExUnit.CaseTemplate
alias Phoenix.ConnTest
alias PowAssent.Test.Phoenix.{Endpoint, Router}
using do
quote do
use ConnTest
alias Router.Helpers, as: Routes
@endpoint Endpoint
end
end
setup do
conn = ConnTest... | 18.931034 | 90 | 0.661202 |
652c930e13eddcff9dca8ecc7d238c792fa29037 | 3,726 | ex | Elixir | lib/ash/resource/calculation/expression.ex | kernel-io/ash | cb59a8e09c61913fb0443a84fc894714e9199686 | [
"MIT"
] | null | null | null | lib/ash/resource/calculation/expression.ex | kernel-io/ash | cb59a8e09c61913fb0443a84fc894714e9199686 | [
"MIT"
] | null | null | null | lib/ash/resource/calculation/expression.ex | kernel-io/ash | cb59a8e09c61913fb0443a84fc894714e9199686 | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Calculation.Expression do
@moduledoc false
use Ash.Calculation, type: :string
def expression(opts, context) do
expr =
Ash.Filter.build_filter_from_template(opts[:expr], nil, context, context[:context] || %{})
Ash.Filter.build_filter_from_template(expr, nil, context, context[... | 28.227273 | 96 | 0.522276 |
652c979d8c0238ba11236cc749e680e9daaa9194 | 3,065 | ex | Elixir | apps/lexibomb_server/lib/lexibomb_server/board/square.ex | elasticdog/lexibomb-elixir | e69ebf571b7021af8b03d00e1099b07b3d6b2a42 | [
"0BSD"
] | 2 | 2016-03-10T23:41:02.000Z | 2021-01-20T04:40:39.000Z | apps/lexibomb_server/lib/lexibomb_server/board/square.ex | elasticdog/lexibomb-elixir | e69ebf571b7021af8b03d00e1099b07b3d6b2a42 | [
"0BSD"
] | 1 | 2015-07-19T06:27:44.000Z | 2015-07-19T06:27:44.000Z | apps/lexibomb_server/lib/lexibomb_server/board/square.ex | elasticdog/lexibomb-elixir | e69ebf571b7021af8b03d00e1099b07b3d6b2a42 | [
"0BSD"
] | 1 | 2016-09-28T18:09:56.000Z | 2016-09-28T18:09:56.000Z | defmodule LexibombServer.Board.Square do
@moduledoc """
Manages the low-level state data associated with an individual board square.
A square can either be hidden or revealed, which indicates whether its state
data should be available externally. Placing a tile on a square automatically
sets it to the reveal... | 23.396947 | 79 | 0.634584 |
652cc6113d9a7806be3d02e04e537646da0289d5 | 134 | ex | Elixir | debian/checkmem.cron.d.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/checkmem.cron.d.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/checkmem.cron.d.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | #
# Regular cron jobs for the checkmem package
#
0 4 * * * root [ -x /usr/bin/checkmem_maintenance ] && /usr/bin/checkmem_maintenance
| 26.8 | 84 | 0.708955 |
652cf5f77f5b060c48fce0b0db25234d3cb152f7 | 1,753 | ex | Elixir | clients/composer/lib/google_api/composer/v1/model/web_server_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/web_server_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/web_server_config.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... | 37.297872 | 401 | 0.750713 |
652d08330259bc364c9135773594a80381ce284f | 1,760 | ex | Elixir | lib/sparql/query/result/formats/json_decoder.ex | rdf-elixir/sparql-ex | 138141797a1993ecfb50ddac6c1d2977601a11ff | [
"MIT"
] | 6 | 2021-02-12T22:16:05.000Z | 2021-09-24T03:08:57.000Z | lib/sparql/query/result/formats/json_decoder.ex | rdf-elixir/sparql-ex | 138141797a1993ecfb50ddac6c1d2977601a11ff | [
"MIT"
] | null | null | null | lib/sparql/query/result/formats/json_decoder.ex | rdf-elixir/sparql-ex | 138141797a1993ecfb50ddac6c1d2977601a11ff | [
"MIT"
] | 1 | 2020-11-13T08:49:16.000Z | 2020-11-13T08:49:16.000Z | defmodule SPARQL.Query.Result.JSON.Decoder do
@moduledoc false
use SPARQL.Query.Result.Format.Decoder
def decode(content, _opts \\ []) do
try do
with {:ok, object} <- Jason.decode(content) do
{:ok, decode_results(object)}
end
rescue
error ->
{:error, error.message}
... | 27.936508 | 86 | 0.636364 |
652d27816aa5de87d2e649b8bcc7ced47144d9c5 | 6,476 | ex | Elixir | core/sup_tree_core/executor_pool/executor_pool.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/sup_tree_core/executor_pool/executor_pool.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/sup_tree_core/executor_pool/executor_pool.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.ExecutorPool do
alias Antikythera.GearName
alias Antikythera.ExecutorPool.Id, as: EPoolId
alias AntikytheraCore.ExecutorPool.Setting, as: EPoolSetting
alias AntikytheraCore.ExecutorPool.RegisteredName, as: RegNa... | 42.605263 | 144 | 0.672174 |
652d51a51e9251466a2559e46ae7d5c479bdf936 | 7,331 | exs | Elixir | test/bugsnag_test.exs | XukuLLC/bugsnag-elixir | 928b1ae7b5ee8aa55946cd492350e22593b85f4f | [
"MIT"
] | null | null | null | test/bugsnag_test.exs | XukuLLC/bugsnag-elixir | 928b1ae7b5ee8aa55946cd492350e22593b85f4f | [
"MIT"
] | null | null | null | test/bugsnag_test.exs | XukuLLC/bugsnag-elixir | 928b1ae7b5ee8aa55946cd492350e22593b85f4f | [
"MIT"
] | null | null | null | defmodule BugsnagTest do
use ExUnit.Case
alias Bugsnag.HTTPMock
alias Bugsnag.HTTPClient.Request
alias Bugsnag.HTTPClient.Response
import ExUnit.CaptureLog
defmodule FilterAll do
def should_notify(_e, _s), do: false
end
defmodule FilterNone do
def should_notify(_e, _s), do: true
end
def... | 39.413978 | 121 | 0.72514 |
652d56cb371b4d6a8cd3a638f67f06427aee5d45 | 939 | ex | Elixir | eyes/lib/streamer.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | eyes/lib/streamer.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | 2 | 2021-03-09T20:59:23.000Z | 2021-05-10T18:01:00.000Z | eyes/lib/streamer.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | defmodule Eyes.Streamer do
@moduledoc """
Plug for streaming an image
"""
import Plug.Conn
@behaviour Plug
@boundary "w58EW1cEpjzydSCq"
def init(opts), do: opts
def call(conn, _opts) do
conn
|> put_resp_header("Age", "0")
|> put_resp_header("Cache-Control", "no-cache, private")
|> put... | 24.710526 | 96 | 0.624068 |
652d56e613435864f28a107c0b66e3ac17c62f3a | 430 | ex | Elixir | lib/transit_realtime/feed_message.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | lib/transit_realtime/feed_message.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | lib/transit_realtime/feed_message.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule TransitRealtime.FeedMessage do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
header: TransitRealtime.FeedHeader.t(),
entity: [TransitRealtime.FeedEntity.t()]
}
@derive Jason.Encoder
defstruct [:header, :entity]
field(:header, 1, required: true... | 28.666667 | 69 | 0.7 |
652d5b47a6dcf74ea7118c190d5f9ec7135ed9fb | 1,141 | exs | Elixir | config/config.exs | wrren/semantic_live.ex | d90522e2bf136975c0f3cdc6f1707590363a1e83 | [
"MIT"
] | null | null | null | config/config.exs | wrren/semantic_live.ex | d90522e2bf136975c0f3cdc6f1707590363a1e83 | [
"MIT"
] | null | null | null | config/config.exs | wrren/semantic_live.ex | d90522e2bf136975c0f3cdc6f1707590363a1e83 | [
"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.806452 | 73 | 0.753725 |
652d729c7e1dafda0aa0fc6099e653e87162602c | 488 | ex | Elixir | lib/live_sup/core/widgets/jira/list_of_issues/worker.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup/core/widgets/jira/list_of_issues/worker.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup/core/widgets/jira/list_of_issues/worker.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Core.Widgets.Jira.ListOfIssues.Worker do
use LiveSup.Core.Widgets.WidgetServer
alias LiveSup.Core.Widgets.Jira.ListOfIssues.Handler
@default_title "Your Jira issues"
@impl true
def public_settings, do: ["domain"]
@impl true
def settings_keys, do: ["token", "domain", "statuses"]
@i... | 19.52 | 58 | 0.721311 |
652d962394e413f8302413364ffd8c1b2d56251e | 2,355 | exs | Elixir | test/controllers/parameter_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | test/controllers/parameter_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | test/controllers/parameter_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.ParameterControllerTest do
use Tox.ConnCase
alias Tox.Parameter
@valid_attrs %{config_file: "some content", name: "some content", secure: true, value: "some content"}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "li... | 36.796875 | 104 | 0.681953 |
652dba16623e6e52e45750588c16ff6851a8603d | 1,130 | ex | Elixir | lib/verk/worker.ex | dpk07/verk | 36bfb8b5592e1eb091906a07d6963a45d5caae0c | [
"MIT"
] | 746 | 2015-12-13T09:55:47.000Z | 2022-03-29T21:57:55.000Z | lib/verk/worker.ex | dpk07/verk | 36bfb8b5592e1eb091906a07d6963a45d5caae0c | [
"MIT"
] | 176 | 2015-12-16T08:05:19.000Z | 2021-12-21T03:38:55.000Z | lib/verk/worker.ex | dpk07/verk | 36bfb8b5592e1eb091906a07d6963a45d5caae0c | [
"MIT"
] | 78 | 2015-12-16T09:09:52.000Z | 2021-11-05T15:06:03.000Z | defmodule Verk.Worker do
@moduledoc """
Worker executes the job, messages the manager when it's done and shutdowns.
"""
use GenServer
require Logger
@process_dict_key :verk_current_job
@doc """
Get the current job that the worker is running.
"""
@spec current_job :: %Verk.Job{}
def current_job, ... | 25.681818 | 89 | 0.655752 |
652dc4c25069bafae19ca3cf5f181999ea30063e | 6,652 | ex | Elixir | lib/android_manifest.ex | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 23 | 2016-09-07T03:48:58.000Z | 2021-11-17T10:24:14.000Z | lib/android_manifest.ex | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 1 | 2017-07-30T11:47:31.000Z | 2017-07-30T11:47:31.000Z | lib/android_manifest.ex | sean-lin/ApkInjector | 2c56954d6e756411818b0a986cc2933502b83a12 | [
"Apache-2.0"
] | 10 | 2016-12-22T07:33:59.000Z | 2020-05-27T10:46:43.000Z | defmodule Injector.AndroidManifest do
defstruct [
package: nil,
main_activity_name: nil,
main_activity_intent_filter: nil,
body: nil,
uses_permission: nil
]
@scan_opt [quiet: true]
require Record
for {name, define} <- Record.extract_all(from_lib: "xmerl/include/xmerl.hrl") do
Record... | 32.291262 | 111 | 0.649278 |
652dcf1758543cf2bfc3ef672d2d56e5cf6f226f | 737 | ex | Elixir | lib/node_pinger.ex | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | null | null | null | lib/node_pinger.ex | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | 1 | 2020-07-22T14:46:30.000Z | 2020-07-22T14:46:30.000Z | lib/node_pinger.ex | funbox/node_pinger | cab64512c1f7f863d531deddaad2c4f84c17f2e4 | [
"MIT"
] | 1 | 2019-11-15T07:22:49.000Z | 2019-11-15T07:22:49.000Z | defmodule NodePinger do
require Logger
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_opts) do
ping()
schedule()
{:ok, []}
end
def handle_info(:ping, smth) do
Logger.debug("Check nodes")
ping()
schedule()
{:norepl... | 21.057143 | 93 | 0.63365 |
652dd867b5988bbbfab25d631869bb400718ced3 | 1,085 | exs | Elixir | chapter-13/organizing-a-project-3/issues/config/config.exs | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 55 | 2015-12-09T09:23:50.000Z | 2022-01-31T21:14:59.000Z | chapter-13/organizing-a-project-1-2/issues/config/config.exs | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 3 | 2016-06-15T12:53:39.000Z | 2017-08-21T18:20:42.000Z | chapter-13/organizing-a-project-1-2/issues/config/config.exs | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 18 | 2016-01-01T18:18:23.000Z | 2021-05-24T02:22:42.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... | 40.185185 | 73 | 0.741014 |
652de6c98b46ad64f4886e59a5e340e823abe907 | 556 | ex | Elixir | deps/makeup/lib/makeup/styles/html/pygments/igor.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | deps/makeup/lib/makeup/styles/html/pygments/igor.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | deps/makeup/lib/makeup/styles/html/pygments/igor.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null |
defmodule Makeup.Styles.HTML.IgorStyle do
@moduledoc false
@styles %{
:keyword => "#0000FF",
:name_class => "#007575",
:name_decorator => "#CC00A3",
:name_function => "#C34E00",
:string => "#009C00",
:comment => "italic #FF0000",
}
alias Makeup.Styles.HTML.Style
... | 19.857143 | 42 | 0.580935 |
652e00eeaa55a3070b0bcf9e7314e5f9100fb5ad | 467 | exs | Elixir | test/test_helper.exs | pascalwengerter/ProjectEuler100 | 5e553839b6dc3c85521bd979fd6eaa1d02b83fff | [
"MIT"
] | 1 | 2021-02-27T10:57:27.000Z | 2021-02-27T10:57:27.000Z | test/test_helper.exs | pascalwengerter/ProjectEuler100 | 5e553839b6dc3c85521bd979fd6eaa1d02b83fff | [
"MIT"
] | null | null | null | test/test_helper.exs | pascalwengerter/ProjectEuler100 | 5e553839b6dc3c85521bd979fd6eaa1d02b83fff | [
"MIT"
] | null | null | null | ExUnit.start()
Code.compiler_options(ignore_module_conflict: true)
Code.compile_file("challenges/001.exs")
Code.compile_file("challenges/002.exs")
Code.compile_file("challenges/003.exs")
Code.compile_file("challenges/004.exs")
Code.compile_file("challenges/005.exs")
Code.compile_file("challenges/006.exs")
Code.compile_... | 35.923077 | 51 | 0.807281 |
652e02a5b0885ac921c848c6421862b0e7a4a935 | 496 | exs | Elixir | test/isoweek_calendar_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 6 | 2019-08-29T12:31:03.000Z | 2021-08-28T23:15:39.000Z | test/isoweek_calendar_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 8 | 2019-11-08T09:13:00.000Z | 2021-12-26T05:34:28.000Z | test/isoweek_calendar_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 2 | 2020-05-08T12:19:01.000Z | 2022-03-03T14:53:06.000Z | defmodule Cldr.Calendar.ISOWeek.Test do
use ExUnit.Case, async: true
test "the configuration of ISOWeek calendar" do
config = %Cldr.Calendar.Config{
begins_or_ends: :begins,
calendar: Cldr.Calendar.ISOWeek,
cldr_backend: MyApp.Cldr,
day_of_week: 1,
first_or_last: :first,
min... | 24.8 | 55 | 0.665323 |
652e23dfc55db4afe6704192887d151ff316b044 | 1,862 | ex | Elixir | lib/controller/load/controller.ex | da-nikolaev/elm | 2012648b0488a424c35b29f6db895446ac902ef4 | [
"MIT"
] | null | null | null | lib/controller/load/controller.ex | da-nikolaev/elm | 2012648b0488a424c35b29f6db895446ac902ef4 | [
"MIT"
] | null | null | null | lib/controller/load/controller.ex | da-nikolaev/elm | 2012648b0488a424c35b29f6db895446ac902ef4 | [
"MIT"
] | null | null | null | defmodule ELM.Load.Controller do
use GenServer
# Client API
def start_link(opts) do
GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
def start_load(plan) do
GenServer.cast(__MODULE__, {:start_load, plan})
end
def stop_load do
GenServer.cast(__MODULE__, {:stop_load})
end
# ... | 23.275 | 96 | 0.607948 |
652e4382d5bd140309880600ced0965da5ecbc0e | 2,029 | exs | Elixir | mix.exs | topaxi/opensource-challenge-api | 27e5da9c5162a8f0f4533f9f7f14ca1d145bac31 | [
"MIT"
] | 3 | 2016-11-29T10:58:11.000Z | 2020-04-29T12:17:23.000Z | mix.exs | topaxi/opensource-challenge-api | 27e5da9c5162a8f0f4533f9f7f14ca1d145bac31 | [
"MIT"
] | 50 | 2016-12-04T15:02:31.000Z | 2021-07-23T04:21:55.000Z | mix.exs | topaxi/opensource-challenge-api | 27e5da9c5162a8f0f4533f9f7f14ca1d145bac31 | [
"MIT"
] | 5 | 2019-11-24T11:17:39.000Z | 2020-04-29T12:19:36.000Z | defmodule OpensourceChallenge.Mixfile do
use Mix.Project
def project do
[
app: :opensource_challenge,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
st... | 26.697368 | 79 | 0.553967 |
652e6007a559c55b60c7a02972b0a08fdbd4a9ca | 12,021 | ex | Elixir | lib/rafted_value.ex | arago/rafted_value | f03570f96a63495ae64c67b5f63a4dc99386ec36 | [
"MIT"
] | 54 | 2016-06-20T13:27:46.000Z | 2021-12-07T10:57:22.000Z | lib/rafted_value.ex | arago/rafted_value | f03570f96a63495ae64c67b5f63a4dc99386ec36 | [
"MIT"
] | 4 | 2017-10-02T23:17:37.000Z | 2019-07-11T23:47:58.000Z | lib/rafted_value.ex | skirino/rafted_value | 8e46d6b488ddb87f1bf6f6530d5f2b9524efdaed | [
"MIT"
] | 4 | 2017-09-05T10:48:06.000Z | 2020-01-20T01:02:27.000Z | use Croma
defmodule RaftedValue do
@moduledoc """
Public interface functions of `RaftedValue` package.
"""
alias RaftedValue.{TermNumber, Config, Server, Data, LogIndex, Persistence}
@type consensus_group_info :: {:create_new_consensus_group, Config.t} | {:join_existing_consensus_group, [GenServer.server]}... | 47.513834 | 167 | 0.695782 |
652e704ad093809f29b8b8b01a707187178c4132 | 6,440 | ex | Elixir | lib/courier/scheduler.ex | DockYard/courier | 8098f68453a9f5e94053857f312928009b63ff5b | [
"MIT"
] | 50 | 2016-02-26T21:21:56.000Z | 2022-03-31T13:56:35.000Z | lib/courier/scheduler.ex | DockYard/courier | 8098f68453a9f5e94053857f312928009b63ff5b | [
"MIT"
] | 5 | 2016-08-03T12:32:17.000Z | 2017-12-12T13:18:11.000Z | lib/courier/scheduler.ex | DockYard/courier | 8098f68453a9f5e94053857f312928009b63ff5b | [
"MIT"
] | 7 | 2016-05-16T22:51:30.000Z | 2020-04-30T15:31:57.000Z | defmodule Courier.Scheduler do
use GenServer
@timeout 5_000
@pool_size 10
@interval 1_000
@moduledoc """
Scheduler adapter
The Scheduler will allow you to schedule when messages can be sent out.
It accomplishes this with four parts
1. The adapter - needs to be set in the opts
2. The poller - def... | 29.272727 | 119 | 0.671584 |
652e9c6bb48d8f7c2c336f4761309cbc1611baa8 | 199 | exs | Elixir | test/mnemonix/stores/memcachex_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 36 | 2016-10-30T21:40:19.000Z | 2021-05-03T10:51:50.000Z | test/mnemonix/stores/memcachex_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 52 | 2016-10-30T20:57:35.000Z | 2017-12-28T03:39:57.000Z | test/mnemonix/stores/memcachex_test.exs | christhekeele/mnemonix | 41c81b00b89562250ea451035fd34bf775173e50 | [
"MIT"
] | 5 | 2017-01-25T22:02:58.000Z | 2018-01-30T14:27:55.000Z | if Code.ensure_loaded?(Memcache) do
defmodule Mnemonix.Stores.Memcachex.Test do
use Mnemonix.Test.Case, async: true
@moduletag :memcached
doctest Mnemonix.Stores.Memcachex
end
end
| 18.090909 | 45 | 0.748744 |
652efbf62a7502390e54c8300dd528d85a5d1d60 | 634 | exs | Elixir | apps/game_services/config/prod.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 4 | 2018-11-09T16:57:06.000Z | 2021-03-02T22:57:17.000Z | apps/game_services/config/prod.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 29 | 2018-10-26T08:29:37.000Z | 2018-12-09T21:02:05.000Z | apps/game_services/config/prod.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :game_services application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
config :game_services, GameServices.Repo,
hostname: "${DB_HOSTNAME}",
username: "${DB_USER... | 30.190476 | 63 | 0.706625 |
652f0b70e18fb1d1607286f671a98384db44a147 | 960 | exs | Elixir | config/config.exs | caelia/recommenjion | c48adb29d2a8bad3ced55f0bd43e5e761ce15080 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | caelia/recommenjion | c48adb29d2a8bad3ced55f0bd43e5e761ce15080 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | caelia/recommenjion | c48adb29d2a8bad3ced55f0bd43e5e761ce15080 | [
"BSD-3-Clause"
] | 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
# General application configuration
config :recommenjion,
ecto_repos: [Recommenjion... | 34.285714 | 86 | 0.769792 |
652f32e8984a2079a8e72e6c7b17ccfed4eb6dae | 1,421 | ex | Elixir | lib/special_process.ex | rbishop/special_process | 0ac35c68542a1a6e6edc4b19a338c1c2459214f9 | [
"Apache-2.0"
] | 1 | 2016-04-01T12:20:52.000Z | 2016-04-01T12:20:52.000Z | lib/special_process.ex | rbishop/special_process | 0ac35c68542a1a6e6edc4b19a338c1c2459214f9 | [
"Apache-2.0"
] | null | null | null | lib/special_process.ex | rbishop/special_process | 0ac35c68542a1a6e6edc4b19a338c1c2459214f9 | [
"Apache-2.0"
] | null | null | null | defmodule SpecialProcess do
defmacro __using__(_) do
quote location: :keep do
@doc false
def start_link do
:proc_lib.start_link(__MODULE__, :init, [self])
end
@doc false
def init(parent) do
IO.puts "Initing"
Process.register(self, __MODULE__)
debug ... | 24.5 | 83 | 0.570725 |
652f3663a156a11516ed7a770db8d5ac01063988 | 241 | ex | Elixir | lib/slurp/explorer_adapters/ftmscan.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 20 | 2021-01-02T07:45:04.000Z | 2022-03-29T07:34:42.000Z | lib/slurp/explorer_adapters/ftmscan.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 11 | 2021-01-25T13:10:34.000Z | 2021-09-23T05:34:08.000Z | lib/slurp/explorer_adapters/ftmscan.ex | AwaitFuture/slurp | f1d0fe5feb21f3135727c1516908e89130ea5801 | [
"MIT"
] | 1 | 2021-03-12T07:27:05.000Z | 2021-03-12T07:27:05.000Z | defmodule Slurp.ExplorerAdapters.Ftmscan do
@behaviour Slurp.ExplorerAdapter
@impl true
def home_url(endpoint) do
endpoint
end
@impl true
def address_url(endpoint, address) do
"#{endpoint}/address/#{address}"
end
end
| 17.214286 | 43 | 0.726141 |
652f42e40c08b8de1621a2eb9f77055db7d91aa2 | 618 | ex | Elixir | lib/offer_hunters_web/views/user_view.ex | joaopealves/offer_hunters-backend | cbaa9c17f41031df977430f1082e42af2b4b83d6 | [
"MIT"
] | 3 | 2021-10-01T21:13:02.000Z | 2021-11-05T22:25:55.000Z | lib/offer_hunters_web/views/user_view.ex | joaopealves/offer_hunters_backend | cbaa9c17f41031df977430f1082e42af2b4b83d6 | [
"MIT"
] | null | null | null | lib/offer_hunters_web/views/user_view.ex | joaopealves/offer_hunters_backend | cbaa9c17f41031df977430f1082e42af2b4b83d6 | [
"MIT"
] | null | null | null | defmodule OfferHuntersWeb.UserView do
use OfferHuntersWeb, :view
def render("created.json", %{user: user}), do: %{user: user}
def render("get_all.json", %{users: users}), do: %{users: users}
def render("user_message.json", %{user: user}), do: %{user: user}
def render("user.json", %{user: user}) do
%{
... | 24.72 | 67 | 0.600324 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.