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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abec24b9b28f4a83e7ac87d3371d2203d6b76b6a | 1,183 | exs | Elixir | config/config.exs | BlinkerGit/soap | e370f1b46421b1c49009a31e9c19555317c7fbf1 | [
"MIT"
] | 32 | 2018-01-09T15:33:50.000Z | 2019-02-12T21:29:21.000Z | config/config.exs | potok-digital/soap | 82d88545918838d31fb7b0ae88db662399b0a4df | [
"MIT"
] | 28 | 2018-01-09T10:08:13.000Z | 2019-02-14T07:43:56.000Z | config/config.exs | BlinkerGit/soap | e370f1b46421b1c49009a31e9c19555317c7fbf1 | [
"MIT"
] | 14 | 2018-03-03T08:24:54.000Z | 2019-02-06T14:56:35.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
import 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 parent... | 34.794118 | 73 | 0.747253 |
abec2ed2dc8a8e66155cb31be793049f51edfbe4 | 25 | ex | Elixir | example/lib/example.ex | fazibear/kiosk_system_amdgpu_x86_64 | ab083e14d13d1caa3a050960cdccdb43b47dfe1e | [
"Apache-2.0"
] | 60 | 2017-08-29T13:57:50.000Z | 2020-06-12T13:53:27.000Z | example/lib/example.ex | fazibear/kiosk_system_amdgpu_x86_64 | ab083e14d13d1caa3a050960cdccdb43b47dfe1e | [
"Apache-2.0"
] | 36 | 2017-07-18T12:09:31.000Z | 2020-06-19T21:55:26.000Z | example/lib/example.ex | fazibear/kiosk_system_amdgpu_x86_64 | ab083e14d13d1caa3a050960cdccdb43b47dfe1e | [
"Apache-2.0"
] | 17 | 2017-07-19T13:22:46.000Z | 2020-06-09T00:41:44.000Z | defmodule Example do
end
| 8.333333 | 20 | 0.84 |
abec6425b484ae55e177ec3e46fba7d373963272 | 15,216 | ex | Elixir | lib/codes/codes_v42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v42.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_V42 do
alias IcdCode.ICDCode
def _V420XXA do
%ICDCode{full_code: "V420XXA",
category_code: "V42",
short_code: "0XXA",
full_name: "Car driver injured in collision with two- or three-wheeled motor vehicle in nontraffic accident, initial encounter",
... | 60.864 | 158 | 0.708136 |
abec7477e5e0860d2be64f2ad958340385b523a1 | 611 | ex | Elixir | lib/rockelivery/users/create.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | 1 | 2022-03-16T20:41:29.000Z | 2022-03-16T20:41:29.000Z | lib/rockelivery/users/create.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery/users/create.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule Rockelivery.Users.Create do
alias Rockelivery.{Error, Repo, User}
def call(params) do
cep = Map.get(params, "cep")
changeset = User.changeset(params)
with {:ok, %User{}} <- User.build(changeset),
{:ok, _cep_info} <- client().get_cep_info(cep),
{:ok, %User{}} = user <- Repo.... | 25.458333 | 69 | 0.613748 |
abec905a15aa003946d09729084dbd57b39cbba5 | 7,712 | ex | Elixir | lib/web/router/impl.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | lib/web/router/impl.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | lib/web/router/impl.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Router.Impl do
@moduledoc """
Internal functions to implement request routing.
"""
alias Antikythera.{Http.Method, PathSegment, PathInfo, Request.PathMatches}
@typep route_entry :: {Method.t, String.t, ... | 43.818182 | 151 | 0.661696 |
abec931ad144c16c7e1db01255f826965d09e563 | 1,746 | exs | Elixir | test/number/number_parser_test.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | test/number/number_parser_test.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | test/number/number_parser_test.exs | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Number.Parsing.Test do
use ExUnit.Case, async: true
test "parse numbers" do
assert Cldr.Number.Parser.parse("100", backend: TestBackend.Cldr) == {:ok, 100}
assert Cldr.Number.Parser.parse("100.0", backend: TestBackend.Cldr) == {:ok, 100.0}
assert Cldr.Number.Parser.parse("1_000", backend... | 38.8 | 99 | 0.676976 |
abeca6ed28c9ef01d09bdb3cbd6b70f65eea0c6c | 411 | ex | Elixir | backend/lib/aptamer_web/views/session_view.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/lib/aptamer_web/views/session_view.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/lib/aptamer_web/views/session_view.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule AptamerWeb.SessionView do
use AptamerWeb, :view
def render("index.json", %{sessions: sessions}) do
%{data: render_many(sessions, AptamerWeb.SessionView, "session.json")}
end
def render("show.json", %{session: session}) do
%{data: render_one(session, AptamerWeb.SessionView, "session.json")}
... | 25.6875 | 74 | 0.693431 |
abecb73625dd1f9565378ca6b08a0d980bc9ff51 | 671 | exs | Elixir | config/hex.exs | leandrocp/hexpm | 837b017b3aa69819985b509e13f01a45d0582d1c | [
"Apache-2.0"
] | 2 | 2020-03-01T18:23:33.000Z | 2021-01-15T10:15:45.000Z | config/hex.exs | leandrocp/hexpm | 837b017b3aa69819985b509e13f01a45d0582d1c | [
"Apache-2.0"
] | 3 | 2020-06-30T11:24:41.000Z | 2020-08-05T15:47:34.000Z | config/hex.exs | leandrocp/hexpm | 837b017b3aa69819985b509e13f01a45d0582d1c | [
"Apache-2.0"
] | null | null | null | import Config
config :hexpm,
tmp_dir: Path.expand("tmp/hex"),
private_key: File.read!("test/fixtures/private.pem"),
user_confirm: false,
docs_url: "http://localhost:4043",
diff_url: "http://localhost:4004",
cdn_url: "http://localhost:4043"
config :hexpm, HexpmWeb.Endpoint,
http: [port: 4043, protocol_op... | 24.851852 | 67 | 0.71237 |
abece4eeb2d2b805d1fd19308d40052037bdbf53 | 1,737 | ex | Elixir | lib/camino_challenge_web/views/api/contrato_view.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/views/api/contrato_view.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/views/api/contrato_view.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | defmodule CaminoChallengeWeb.Api.ContratoView do
@moduledoc false
use CaminoChallengeWeb, :view
def render("index.json", %{contratos: contratos}) do
%{data: render_many(contratos, __MODULE__, "contrato_index.json")}
end
def render("show.json", %{contrato: contrato}) do
%{data: render_one(contrato, _... | 24.464789 | 84 | 0.667818 |
abecf0ccfd93de48f8fe90f3f0b5539b7688f065 | 192 | ex | Elixir | identicon/lib/image.ex | eduardorasgado/ElixirWarlock | 1658ab2ffb2870cb81c8a434755d98678572838c | [
"MIT"
] | null | null | null | identicon/lib/image.ex | eduardorasgado/ElixirWarlock | 1658ab2ffb2870cb81c8a434755d98678572838c | [
"MIT"
] | 1 | 2021-03-10T05:09:49.000Z | 2021-03-10T05:09:49.000Z | identicon/lib/image.ex | eduardorasgado/ElixirWarlock | 1658ab2ffb2870cb81c8a434755d98678572838c | [
"MIT"
] | null | null | null | defmodule Identicon.Image do
@moduledoc """
Module to represent the image struct
"""
defstruct hex: nil,
color: nil,
grid: nil,
pixel_map: nil
end
| 17.454545 | 38 | 0.572917 |
abed03084f09998a6441a998d98fab182789c601 | 1,480 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/google_service_account.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/google_service_account.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/google_service_account.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.833333 | 87 | 0.752703 |
abed76be9e70a3063a1ccaa00a380669fd576c4f | 4,214 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/binding.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/binding.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/binding.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.14 | 145 | 0.703844 |
abed77b17c83bed2d59e19cc7b01a153a256add2 | 925 | ex | Elixir | lib/logger/lib/logger/filter.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/logger/lib/logger/filter.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/logger/lib/logger/filter.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Logger.Filter do
@moduledoc false
@doc """
Filter messages logged via `Logger` module when not logging OTP reports.
"""
def filter_elixir_domain(%{meta: meta}, _extra) do
case meta do
%{domain: [:elixir | _]} -> :ignore
_ -> :stop
end
end
@doc """
Filter out logs if curre... | 20.108696 | 74 | 0.563243 |
abedabf55b5c6d374facafe7555db319b41a91e6 | 2,505 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/seq_map_task.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/seq_map_task.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/seq_map_task.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.761905 | 139 | 0.722156 |
abedd0c1278cfc0e4a41a441cd804b540d1a47d2 | 4,633 | ex | Elixir | lib/kuddle/encoder.ex | IceDragon200/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | 12 | 2021-09-14T15:35:13.000Z | 2022-03-20T20:10:55.000Z | lib/kuddle/encoder.ex | sthagen/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | null | null | null | lib/kuddle/encoder.ex | sthagen/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | 1 | 2021-09-15T13:53:38.000Z | 2021-09-15T13:53:38.000Z | defmodule Kuddle.Encoder do
@moduledoc """
Encodes a Kuddle document into a KDL blob
"""
alias Kuddle.Value
alias Kuddle.Node
import Kuddle.Utils
@doc """
Encodes a kuddle document as a KDL string
"""
@spec encode(Kuddle.Decoder.document()) ::
{:ok, String.t()}
| {:error, term(... | 23.165 | 99 | 0.587308 |
abedf4bdb0ed45e76e53e0eb0605ef272eed8249 | 1,111 | ex | Elixir | playground_project/test/support/channel_case.ex | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | playground_project/test/support/channel_case.ex | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | playground_project/test/support/channel_case.ex | JohnBortotti/learning-elixir | 54ce9c50904e809065d0321d51367cea7a5b2bf8 | [
"MIT"
] | null | null | null | defmodule CrudTddWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts w... | 27.097561 | 69 | 0.727273 |
abedfc7e74a73e13253866d7bcb6fbaebe389aa2 | 1,824 | exs | Elixir | config/dev.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | 9 | 2019-04-10T12:30:20.000Z | 2020-09-07T15:07:02.000Z | config/dev.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | 3 | 2019-10-28T10:39:06.000Z | 2020-09-30T21:56:31.000Z | config/dev.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | null | null | null | import Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config(:vuetaba, VuetabaWeb.Endpoint,
http: [port: 400... | 29.901639 | 170 | 0.710526 |
abee70f9c7d9f7539dea6637606893fc9d1e1d94 | 23,875 | ex | Elixir | clients/life_sciences/lib/google_api/life_sciences/v2beta/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/life_sciences/lib/google_api/life_sciences/v2beta/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/life_sciences/lib/google_api/life_sciences/v2beta/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.038229 | 757 | 0.629445 |
abee811fc1bda0e65dba9caef7e022c429f5fbd5 | 29,649 | ex | Elixir | lib/aws/direct_connect.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 2 | 2019-11-17T02:31:18.000Z | 2019-11-20T22:00:29.000Z | lib/aws/direct_connect.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | null | null | null | lib/aws/direct_connect.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 1 | 2019-11-16T18:08:18.000Z | 2019-11-16T18:08:18.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.DirectConnect do
@moduledoc """
AWS Direct Connect links your internal network to an AWS Direct Connect
location over a standard Ethernet fiber-optic cable. One end of the cable
is connected... | 40.670782 | 92 | 0.753314 |
abee9b3968114d39b80a6de67478bbc57c413ea2 | 735 | ex | Elixir | test/support/test_entries.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | test/support/test_entries.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | test/support/test_entries.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | defmodule Radiator.TestEntries do
alias Radiator.Auth
import Plug.Conn
@testusername "TestUser1"
@testuserpassword "Pass"
def user_password do
@testuserpassword
end
def user do
case Auth.Register.get_user_by_name(@testusername) do
nil ->
Auth.Register.create_user(%{
nam... | 19.342105 | 65 | 0.601361 |
abeea0f23acae17be6568878c347a4ea172391ec | 1,184 | ex | Elixir | web/channels/user_socket.ex | dummey/hard_thing_rule | 4944e82931e638ed7fc40ff89acee9817628d994 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | dummey/hard_thing_rule | 4944e82931e638ed7fc40ff89acee9817628d994 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | dummey/hard_thing_rule | 4944e82931e638ed7fc40ff89acee9817628d994 | [
"MIT"
] | null | null | null | defmodule HardThingRule.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", HardThingRule.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify... | 31.157895 | 86 | 0.706081 |
abeeb22b1cdd57846ac2737d03cff9e699fb3365 | 195 | ex | Elixir | lib/paymill/refund.ex | phikes/elixir_paymill | dcb1deed07c73343c8090dd040018574d2e40fd1 | [
"MIT"
] | null | null | null | lib/paymill/refund.ex | phikes/elixir_paymill | dcb1deed07c73343c8090dd040018574d2e40fd1 | [
"MIT"
] | null | null | null | lib/paymill/refund.ex | phikes/elixir_paymill | dcb1deed07c73343c8090dd040018574d2e40fd1 | [
"MIT"
] | null | null | null | defmodule Paymill.Refund do
import RestClient
require RestClient
resource Paymill, [:id, :transaction, :amount, :status, :description,
:livemode, :created_at, :updated_at, :app_id]
end | 27.857143 | 71 | 0.74359 |
abeeffd9ae8fc754af3bdad9b3e931dd7afbaadb | 65 | ex | Elixir | phoenix/web/views/page_view.ex | sap-archive/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | 1 | 2020-01-03T16:00:09.000Z | 2020-01-03T16:00:09.000Z | phoenix/web/views/page_view.ex | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | phoenix/web/views/page_view.ex | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | defmodule LoginProxy.PageView do
use LoginProxy.Web, :view
end
| 16.25 | 32 | 0.8 |
abef6f49583c155a6cfb3a038fc92fc783beaa77 | 831 | ex | Elixir | lib/gardenhose.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | lib/gardenhose.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | lib/gardenhose.ex | taybin/gardenhose | cd82a7d1838d443810a13b75ac609aaac92a2b0b | [
"Apache-2.0"
] | null | null | null | defmodule Gardenhose do
use Application
require Logger
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
Logger.info "Starting Gardenhose"
children = [
# Define workers... | 30.777778 | 67 | 0.703971 |
abef9058f4294d2fdc5b9ea1be13b7afd32ffbeb | 5,784 | ex | Elixir | lib/ecto/query/builder/filter.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/filter.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/filter.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | import Kernel, except: [apply: 3]
defmodule Ecto.Query.Builder.Filter do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a where or having clause.
It allows query expressions that evaluate to a boolean
or a keyword list of field names and values. In a keyword
list multiple key value pairs w... | 38.818792 | 112 | 0.60287 |
abef92f56c1dfa686d112f896244c38b9c797a15 | 4,742 | exs | Elixir | test/bluetoothctl_test.exs | sadesyllas/nerves_bluetooth | d316dbc192be8beec8b76dd245225117bc7d925f | [
"Apache-2.0"
] | 14 | 2018-01-29T23:34:50.000Z | 2021-07-15T04:29:36.000Z | test/bluetoothctl_test.exs | sadesyllas/nerves_bluetooth | d316dbc192be8beec8b76dd245225117bc7d925f | [
"Apache-2.0"
] | 2 | 2017-05-24T18:16:42.000Z | 2018-11-06T19:29:09.000Z | test/bluetoothctl_test.exs | sadesyllas/nerves_bluetooth | d316dbc192be8beec8b76dd245225117bc7d925f | [
"Apache-2.0"
] | 3 | 2018-06-01T07:10:19.000Z | 2019-01-06T22:32:56.000Z | defmodule Bluetooth.Test.Ctl do
use ExUnit.Case
@moduletag capture_log: true
alias Bluetooth.Ctl
alias Bluetooth.GenBle
setup do
{:ok, controller} = Bluetooth.Ctl.start(fn -> IO.puts "Hey Hey Hey" end)
on_exit(fn ->
ref = Process.monitor(controller)
Process.exit(controller, :kill)
... | 33.631206 | 96 | 0.653943 |
abef9ad00aa6c48998957c0b48f7a92d770144f7 | 980 | ex | Elixir | lib/ircbot/karma.ex | rzalamena/exircbot | 35e3bf8147ca4407ff7db69b4ada44bafbb8681a | [
"MIT"
] | null | null | null | lib/ircbot/karma.ex | rzalamena/exircbot | 35e3bf8147ca4407ff7db69b4ada44bafbb8681a | [
"MIT"
] | null | null | null | lib/ircbot/karma.ex | rzalamena/exircbot | 35e3bf8147ca4407ff7db69b4ada44bafbb8681a | [
"MIT"
] | null | null | null | defmodule IRCBot.Karma do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query
alias IRCBot.Karma
alias IRCBot.Repo
schema "karma" do
field :what, :string
field :score, :integer, default: 0
timestamps()
end
def changeset(karma, params \\ %{}) do
karma
|> cast(params, [:what, :score])
|> valida... | 17.5 | 42 | 0.632653 |
abefce570cbca2a96681f7a783e9580c66ec2dac | 1,596 | ex | Elixir | lib/pfkit_web/endpoint.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit_web/endpoint.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | lib/pfkit_web/endpoint.ex | sean-clayton/pfkit.com | 0324909b07fc3fac1426ea83b2fc6cd607489ac7 | [
"Unlicense"
] | null | null | null | defmodule PfkitWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :pfkit
# 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: "_pfkit_key",
... | 29.018182 | 97 | 0.716165 |
abefe61c130f19fa2c03856bffc11e733174955e | 101 | exs | Elixir | apps/info_sys/config/test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | 144 | 2015-04-30T15:12:46.000Z | 2022-01-07T03:40:26.000Z | apps/info_sys/config/test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | 57 | 2015-04-29T11:26:54.000Z | 2022-01-05T13:35:10.000Z | apps/info_sys/config/test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | 46 | 2015-06-12T11:26:15.000Z | 2021-12-15T00:38:26.000Z | use Mix.Config
config :info_sys, :wolfram,
app_id: "1234",
http_client: InfoSys.Test.HTTPClient
| 16.833333 | 38 | 0.742574 |
abf006d58919cfe14b5cd07b0aa068c36b9e5920 | 1,290 | ex | Elixir | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_cms/lib/{{APP_NAME}}_cms/views/error_helpers.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_cms/lib/{{APP_NAME}}_cms/views/error_helpers.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_cms/lib/{{APP_NAME}}_cms/views/error_helpers.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | defmodule {{MODULE_NAME}}Cms.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
co... | 31.463415 | 84 | 0.667442 |
abf0420405d0011cde6e1cad354f96bea1db9e62 | 179 | exs | Elixir | backend/priv/repo/migrations/20161202011607_create_posts.exs | tykowale/faketwitter | 8cb2f15bbc285d079daec153311b7f6fda167dd2 | [
"MIT"
] | 1 | 2016-03-20T21:38:39.000Z | 2016-03-20T21:38:39.000Z | backend/priv/repo/migrations/20161202011607_create_posts.exs | tykowale/faketwitter | 8cb2f15bbc285d079daec153311b7f6fda167dd2 | [
"MIT"
] | null | null | null | backend/priv/repo/migrations/20161202011607_create_posts.exs | tykowale/faketwitter | 8cb2f15bbc285d079daec153311b7f6fda167dd2 | [
"MIT"
] | null | null | null | defmodule Backend.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :message, :string
timestamps
end
end
end
| 14.916667 | 48 | 0.687151 |
abf070c37aaf41704d28b70b6b024d11ca2990da | 215 | ex | Elixir | lib/parseus/parsers/float_parser.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | 2 | 2017-10-18T17:53:43.000Z | 2020-05-01T23:31:36.000Z | lib/parseus/parsers/float_parser.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | null | null | null | lib/parseus/parsers/float_parser.ex | surgeventures/parseus | 3c26c41dff8bdfb9851e5ebea1be2a4fa4ea6bd2 | [
"MIT"
] | null | null | null | defmodule Parseus.FloatParser do
@moduledoc false
def call(input) when is_binary(input) do
case Float.parse(input) do
{output, ""} ->
{:ok, output}
_ ->
:error
end
end
end
| 16.538462 | 42 | 0.581395 |
abf0df42fd5b3f68d5fe7ea3c7ecdcdc640faa4c | 8,271 | exs | Elixir | elixir/grep/test/grep_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/grep/test/grep_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/grep/test/grep_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule GrepTest do
use ExUnit.Case
setup context do
if context[:files] do
File.write!("iliad.txt", """
Achilles sing, O Goddess! Peleus' son;
His wrath pernicious, who ten thousand woes
Caused to Achaia's host, sent many a soul
Illustrious into Ades premature,
And Heroes ... | 36.117904 | 101 | 0.540443 |
abf0f6fd53e8f0727c95b10c518db5a90d0a7a62 | 1,008 | exs | Elixir | deps/phoenix_html/mix.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | null | null | null | deps/phoenix_html/mix.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | null | null | null | deps/phoenix_html/mix.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | null | null | null | defmodule PhoenixHtml.Mixfile do
use Mix.Project
# Also change package.json version
@version "2.10.5"
def project do
[app: :phoenix_html,
version: @version,
elixir: "~> 1.0",
deps: deps(),
name: "Phoenix.HTML",
description: "Phoenix.HTML functions for working with HTML strings an... | 26.526316 | 87 | 0.625 |
abf0fef65347dc3874f46c87052cab9745449883 | 984 | ex | Elixir | apps/site/lib/site_web/gettext.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/gettext.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/gettext.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import SiteWeb.Gettext
# Simple translation
gettext "Here is the stri... | 29.818182 | 71 | 0.666667 |
abf10058ad3f69f40e5a1bfddd0c4b6e12038b74 | 3,461 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__label_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__label_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__label_annotation.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... | 39.329545 | 191 | 0.739382 |
abf165ebb40949d7c08797ed1790003c70cdc962 | 990 | ex | Elixir | lib/courier/storage.ex | DockYard/courier | 8098f68453a9f5e94053857f312928009b63ff5b | [
"MIT"
] | 50 | 2016-02-26T21:21:56.000Z | 2022-03-31T13:56:35.000Z | lib/courier/storage.ex | DockYard/courier | 8098f68453a9f5e94053857f312928009b63ff5b | [
"MIT"
] | 5 | 2016-08-03T12:32:17.000Z | 2017-12-12T13:18:11.000Z | lib/courier/storage.ex | DockYard/courier | 8098f68453a9f5e94053857f312928009b63ff5b | [
"MIT"
] | 7 | 2016-05-16T22:51:30.000Z | 2020-04-30T15:31:57.000Z | defmodule Courier.Storage do
@moduledoc """
Contains behaviours for Storage based adapters
`use` this module in your adapter:
defmodule CustomAdapter do
use Courier.Storage
end
"""
@callback messages() :: [Mail.Message.t()]
@callback messages_for(String.t()) :: [Mail.Message.t()]
@c... | 22 | 61 | 0.571717 |
abf17cc8309e97e398c5f7cabcdefb197a0aafb0 | 1,830 | exs | Elixir | test/support/schemas.exs | rxndxm/arangox_ecto | 78ee4cbdff38efdacc0e29049caa799c85bd08e0 | [
"Apache-2.0"
] | null | null | null | test/support/schemas.exs | rxndxm/arangox_ecto | 78ee4cbdff38efdacc0e29049caa799c85bd08e0 | [
"Apache-2.0"
] | null | null | null | test/support/schemas.exs | rxndxm/arangox_ecto | 78ee4cbdff38efdacc0e29049caa799c85bd08e0 | [
"Apache-2.0"
] | null | null | null | defmodule ArangoXEctoTest.Integration.User do
use ArangoXEcto.Schema
import Ecto.Changeset
schema "users" do
field(:first_name, :string)
field(:last_name, :string)
field(:location, ArangoXEcto.Types.GeoJSON)
outgoing(:posts, ArangoXEctoTest.Integration.Post)
outgoing(:posts_two, ArangoXEcto... | 21.27907 | 69 | 0.720765 |
abf1abaadc22f1db8ced935af5cca25d23f1cea8 | 2,644 | ex | Elixir | lib/changelog/data/news/news_issue.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/data/news/news_issue.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_issue.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsIssue do
use Changelog.Data, default_sort: :published_at
alias Changelog.{NewsIssueItem, NewsIssueAd, Regexp}
schema "news_issues" do
field :slug, :string
field :note, :string
field :teaser, :string
field :published, :boolean, default: false
field :published_at, Time... | 31.47619 | 106 | 0.689864 |
abf1ca876df77830f42dbfa0508acf512eeb85e1 | 28,327 | exs | Elixir | lib/elixir/test/elixir/kernel/errors_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/test/elixir/kernel/errors_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/errors_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ErrorsTest do
use ExUnit.Case, async: true
defmacro hello do
quote location: :keep do
def hello, do: :world
end
end
test "no optional arguments in fn" do
assert_eval_raise CompileError,
"nofile:1: anonym... | 34.419198 | 144 | 0.569704 |
abf1ece167dc8eb095e42a1ac2afbf56e105470b | 3,675 | ex | Elixir | lib/estated/property/owner.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property/owner.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property/owner.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | defmodule Estated.Property.Owner do
@moduledoc "Current owner details taken from either the assessment."
@moduledoc since: "0.2.0"
defstruct [
:name,
:formatted_street_address,
:unit_type,
:unit_number,
:city,
:state,
:zip_code,
:zip_plus_four_code,
:owner_occupied
]
@typ... | 23.113208 | 95 | 0.637279 |
abf20b2b034634fead59800990a337e1da20d400 | 2,256 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/test_case.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/test_case.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/test_case.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... | 44.235294 | 500 | 0.759752 |
abf2354aded9b32062e4288930fca8c59e9609c4 | 34,139 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/source_repo/lib/google_api/source_repo/v1/api/projects.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... | 47.746853 | 538 | 0.622836 |
abf23b672bf996800eb0e5e2bbddb786c3254284 | 636 | ex | Elixir | apps/naive/lib/naive/symbol_supervisor.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | apps/naive/lib/naive/symbol_supervisor.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | apps/naive/lib/naive/symbol_supervisor.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | null | null | null | defmodule Naive.SymbolSupervisor do
use Supervisor
require Logger
def start_link(symbol) do
Supervisor.start_link(
__MODULE__,
symbol,
name: via_tuple(symbol)
)
end
def init(symbol) do
Logger.info("Starting new supervision tree to trade on #{symbol}")
Supervisor.init(
... | 19.272727 | 82 | 0.625786 |
abf25bee9b4bf6c3b3747c21518fbbbc4a204528 | 351 | exs | Elixir | priv/repo/migrations/20220202145957_unify_views.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20220202145957_unify_views.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20220202145957_unify_views.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.UnifyViews do
use Ecto.Migration
import BikeBrigade.MigrationUtils
def up do
# removing since we load these views later
# execute "drop view if exists rider_program_stats"
# execute "drop view if exists rider_stats"
# load_sql("rider_stats_view.sql")
... | 20.647059 | 57 | 0.726496 |
abf2817f0b5cd9325b207ddb4f0c2b86a79479ad | 12,994 | exs | Elixir | dev.exs | cheerfulstoic/phoenix_live_dashboard | 9e642634410f6062c7865aeb840a1eaa98a8ee61 | [
"MIT"
] | 1,733 | 2020-03-03T14:39:31.000Z | 2022-03-29T14:11:23.000Z | dev.exs | cheerfulstoic/phoenix_live_dashboard | 9e642634410f6062c7865aeb840a1eaa98a8ee61 | [
"MIT"
] | 306 | 2020-03-06T08:28:01.000Z | 2022-03-23T06:38:29.000Z | dev.exs | cheerfulstoic/phoenix_live_dashboard | 9e642634410f6062c7865aeb840a1eaa98a8ee61 | [
"MIT"
] | 169 | 2020-03-05T05:04:10.000Z | 2022-03-28T18:36:27.000Z | # iex -S mix dev
Logger.configure(level: :debug)
pg_url = System.get_env("PG_URL") || "postgres:postgres@127.0.0.1"
pg_db = System.get_env("PG_DATABASE") || "phx_dashboard_dev"
Application.put_env(:phoenix_live_dashboard, Demo.Postgres, url: "ecto://#{pg_url}/#{pg_db}")
defmodule Demo.Postgres do
use Ecto.Repo, otp... | 27.764957 | 102 | 0.60274 |
abf284013cae337cd91c013bf16790b34df1135a | 1,575 | ex | Elixir | lib/erlef/event.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef/event.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef/event.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Event do
@moduledoc """
Erlef.Event schema
"""
use Ecto.Schema
import Ecto.Changeset
schema "events" do
field(:title, :string)
field(:slug, :string)
field(:datetime, :utc_datetime)
field(:start, :utc_datetime)
field(:end, :utc_datetime)
field(:offset, :string)
f... | 32.142857 | 142 | 0.709206 |
abf2a7e264807b7e081e58d48ba6449b6fbe6028 | 2,523 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/unclaim_device_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/unclaim_device_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/unclaim_device_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... | 42.05 | 181 | 0.733254 |
abf2d7c182792b6fa8685006dc6b694605ee3751 | 422 | ex | Elixir | apps/core/lib/core/policies/publisher.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/policies/publisher.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/policies/publisher.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Policies.Publisher do
use Piazza.Policy
import Core.Policies.Utils
alias Core.Schema.{User, Publisher}
def can?(%User{id: user_id}, %Publisher{owner_id: user_id}, _), do: :pass
def can?(%User{} = user, %Publisher{} = pub, _) do
%{account: account} = Core.Repo.preload(pub, [:account])
... | 28.133333 | 75 | 0.668246 |
abf2f52bcacaa35c908daf578bad6a43806763e8 | 2,305 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/delete_content_range_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/delete_content_range_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/delete_content_range_request.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... | 49.042553 | 923 | 0.767462 |
abf31f9106e773da64a0b4ec245148447a47d26f | 453 | ex | Elixir | test_support/gcs_signed_url/fixtures/crypto.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 16 | 2019-07-25T16:05:20.000Z | 2022-02-09T06:24:55.000Z | test_support/gcs_signed_url/fixtures/crypto.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 53 | 2020-04-21T16:35:49.000Z | 2022-03-28T13:04:07.000Z | test_support/gcs_signed_url/fixtures/crypto.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 10 | 2020-04-21T12:19:47.000Z | 2021-11-19T12:00:06.000Z | defmodule GcsSignedUrl.Fixtures.Crypto do
@foo_signed_64 "V2fwL9/C2rogC4a74sE+ppZum0DOtGiFOuugTNeknZCEarrK1MwcyqjlR8cZRCuZccp5/wBgG7U5Wphja/8YsLu+Up7SnZOLeHRbOAX1Kk4qxLXl0G5Q/gmx7h8OoAtXuGd70NfrKPQC+jIaoeWmsBvOgAf6Jtl9HwaP0W1zP6ldFlqdiZGlTHk8mj5ubygt19sF4eAFc1Amdba4/I96GVqflLvF0GtYGaFZZ356mS7S3Lt4jTxzfCdADcBQPaT5hKYS... | 75.5 | 363 | 0.92053 |
abf32a2f8020a0b86d196c1c49a85b9e92e893bc | 5,093 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_promotion.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_promotion.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_promotion.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... | 48.971154 | 330 | 0.679953 |
abf32a78d47b10c2cd468802d32be06a5e07a2c3 | 87 | exs | Elixir | lib/mix/tasks/doc_seeds.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | lib/mix/tasks/doc_seeds.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | lib/mix/tasks/doc_seeds.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | defmodule Kirby.Tasks.DocSeeds do
@moduledoc false
Kirby.DocumentoSeeds.run()
end
| 14.5 | 33 | 0.781609 |
abf32c5931587de8c94f617ac48d6580d7e8df36 | 2,453 | exs | Elixir | mix.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | mix.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | mix.exs | yuchunc/mix-deploy-example | 19072e7f4aca62d782d2dba82e11cdc1ef7d8fd4 | [
"Apache-2.0"
] | null | null | null | defmodule MixDeployExample.MixProject do
use Mix.Project
def project do
[
app: :mix_deploy_example,
version: "0.1.0",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
ali... | 28.195402 | 81 | 0.576437 |
abf37cd1667142eb33c9fb18ac46b435dcb1490d | 1,887 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/url_channels.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/url_channels.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/url_channels.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... | 35.603774 | 206 | 0.746688 |
abf38acbedc10eca8a1ac2707454091539c6dc13 | 946 | exs | Elixir | learning/omgneering/ping_pong.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/omgneering/ping_pong.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/omgneering/ping_pong.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule PingPong do
@game_finish 11
def ready do
receive do
{_sender, _action, @game_finish} ->
IO.puts("Game finished...")
ready()
{sender, action, turn} ->
hit_to(sender, switch(action), turn + 1)
ready()
after
1_000 -> IO.puts("timing out player #{ins... | 21.022222 | 73 | 0.616279 |
abf39e61c03eae47b473c8cd96a04b42f48bc5ca | 4,164 | ex | Elixir | lib/commodity_api/generic/new_module_and_permission_generate.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/generic/new_module_and_permission_generate.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/generic/new_module_and_permission_generate.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 29.118881 | 89 | 0.689721 |
abf3a3e0e084f45ba7b52ea6602c03d700d39653 | 2,460 | ex | Elixir | web/router.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | web/router.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | web/router.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.Router do
use CanvasAPI.Web, :router
use Plug.ErrorHandler
if Mix.env == "prod" do
use Sentry.Plug
end
pipeline :oauth do
plug :fetch_session
plug Plug.CSRFProtection, with: :clear_session
end
pipeline :api do
plug CanvasAPI.OriginCheckPlug
plug :fetch_session
... | 31.948052 | 78 | 0.681707 |
abf3f6c1e31fd9bc3d4b878da1d9e1410f2e6dab | 21,891 | ex | Elixir | lib/iex/lib/iex/helpers.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Helpers do
@moduledoc """
Welcome to Interactive Elixir. You are currently
seeing the documentation for the module `IEx.Helpers`
which provides many helpers to make Elixir's shell
more joyful to work with.
This message was triggered by invoking the helper `h()`,
usually referred to as `h/0`... | 26.761614 | 112 | 0.626742 |
abf40d768478b005335d2c9b40c0e7859b669783 | 907 | ex | Elixir | lib/honeydew/queue_supervisor.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | lib/honeydew/queue_supervisor.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | lib/honeydew/queue_supervisor.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | defmodule Honeydew.QueueSupervisor do
def start_link(queue, module, args, num_queues, dispatcher, failure_mode, success_mode, suspended) do
import Supervisor.Spec
Honeydew.create_groups(queue)
children = [
worker(Honeydew.Queue, [queue, module, args, dispatcher, failure_mode, success_mode, suspen... | 29.258065 | 103 | 0.654906 |
abf4140ff37d17fc7bad704d2f123b7e0ec87527 | 167,120 | ex | Elixir | lib/elixir/lib/kernel.ex | pdgonzalez872/elixir | 9929dddaed613f7f4809af5e119403a85defb989 | [
"Apache-2.0"
] | 1 | 2020-02-27T22:11:53.000Z | 2020-02-27T22:11:53.000Z | lib/elixir/lib/kernel.ex | pdgonzalez872/elixir | 9929dddaed613f7f4809af5e119403a85defb989 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | pdgonzalez872/elixir | 9929dddaed613f7f4809af5e119403a85defb989 | [
"Apache-2.0"
] | 1 | 2022-01-08T16:30:22.000Z | 2022-01-08T16:30:22.000Z | # Use elixir_bootstrap module to be able to bootstrap Kernel.
# The bootstrap module provides simpler implementations of the
# functions removed, simple enough to bootstrap.
import Kernel,
except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2, defmacro: 1, defmacro: 2, defmacrop: 2]
import :elixir_bootstrap
defmodul... | 27.072736 | 116 | 0.633275 |
abf45e8cbd955d4f8cd91cb833439ec34935c7ff | 76 | exs | Elixir | test/views/page_view_test.exs | bbulpett/chatroom | 21a869b4e82ba7311fd1a40d359eadccbbf650fe | [
"MIT"
] | 11 | 2016-09-10T01:24:32.000Z | 2021-03-20T22:54:55.000Z | test/views/page_view_test.exs | bbulpett/chatroom | 21a869b4e82ba7311fd1a40d359eadccbbf650fe | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | bbulpett/chatroom | 21a869b4e82ba7311fd1a40d359eadccbbf650fe | [
"MIT"
] | 2 | 2017-03-01T04:16:41.000Z | 2018-01-02T10:14:52.000Z | defmodule Chatroom.PageViewTest do
use Chatroom.ConnCase, async: true
end
| 19 | 36 | 0.815789 |
abf478cd9dd496438ce85ff6bf9b4dfdc2aabcd1 | 148 | exs | Elixir | apps/omg/config/test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg/config/test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg/config/test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :omg,
deposit_finality_margin: 1,
ethereum_events_check_interval_ms: 50,
coordinator_eth_height_check_interval_ms: 100
| 21.142857 | 47 | 0.831081 |
abf48b88cdf3ee45089406bf69484907393b3ee5 | 295 | exs | Elixir | config/releases.exs | cogini/mix-deploy-example | 5f34c656358af3db1ddc2f85a5cb64056aa2e0de | [
"Apache-2.0"
] | 39 | 2019-07-10T08:34:13.000Z | 2021-07-06T23:54:56.000Z | config/releases.exs | cogini/mix-deploy-example | 5f34c656358af3db1ddc2f85a5cb64056aa2e0de | [
"Apache-2.0"
] | 11 | 2019-07-22T02:35:28.000Z | 2021-05-08T15:27:50.000Z | config/releases.exs | cogini/mix-deploy-example | 5f34c656358af3db1ddc2f85a5cb64056aa2e0de | [
"Apache-2.0"
] | 8 | 2019-11-20T08:04:04.000Z | 2020-11-18T09:48:35.000Z | import Config
# Runtime configuration
config :mix_deploy_example, MixDeployExampleWeb.Endpoint,
http: [:inet6, port: System.get_env("PORT") || 4000],
secret_key_base: System.get_env("SECRET_KEY_BASE")
config :mix_deploy_example, MixDeployExample.Repo, url: System.get_env("DATABASE_URL")
| 29.5 | 86 | 0.786441 |
abf493b31bf0d5852a3d13d6be7efa817093d5ad | 1,577 | exs | Elixir | mix.exs | zentetsukenz/adel | 08854ec56fb6dfe6912abe79ab8aa25ecc3d541a | [
"MIT"
] | null | null | null | mix.exs | zentetsukenz/adel | 08854ec56fb6dfe6912abe79ab8aa25ecc3d541a | [
"MIT"
] | null | null | null | mix.exs | zentetsukenz/adel | 08854ec56fb6dfe6912abe79ab8aa25ecc3d541a | [
"MIT"
] | null | null | null | defmodule Adel.Mixfile do
use Mix.Project
def project do
[
app: :adel,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps()... | 25.852459 | 79 | 0.581484 |
abf4ac2611ebfb85244906909c983ece9552a6e3 | 231 | exs | Elixir | bubblit/priv/repo/migrations/20200417191652_set_foreign_key_table_bubble_logs_user_id_to_users.exs | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | null | null | null | bubblit/priv/repo/migrations/20200417191652_set_foreign_key_table_bubble_logs_user_id_to_users.exs | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | 84 | 2020-04-03T08:06:06.000Z | 2022-02-13T12:45:15.000Z | bubblit/priv/repo/migrations/20200417191652_set_foreign_key_table_bubble_logs_user_id_to_users.exs | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | 1 | 2020-09-25T12:59:02.000Z | 2020-09-25T12:59:02.000Z | defmodule Bubblit.Repo.Migrations.SetForeignKeyTableBubbleLogsUserIdToUsers do
use Ecto.Migration
def change do
alter table("bubble_logs") do
remove :user_id
add :user_id, references("users")
end
end
end
| 21 | 78 | 0.735931 |
abf4cb7322b4a1dc9ca5348cf683698bb686b87b | 2,626 | ex | Elixir | clients/content/lib/google_api/content/v21/model/pos_inventory_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_inventory_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_inventory_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.617647 | 186 | 0.680883 |
abf50db85dc50daa3f7975cba423468e0f9bd49f | 253 | ex | Elixir | apps/bytepack/lib/bytepack.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 313 | 2020-12-03T17:26:24.000Z | 2022-03-18T09:05:14.000Z | apps/bytepack/lib/bytepack.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | null | null | null | apps/bytepack/lib/bytepack.ex | dashbitco/bytepack_archive | 79f8e62149d020f2afcc501592ed399f7ce7a60b | [
"Unlicense"
] | 57 | 2020-12-03T17:41:53.000Z | 2022-03-17T17:28:16.000Z | defmodule Bytepack do
@moduledoc """
Bytepack keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
abf516c530920da21ab58bdf69b2deb3edfa368a | 1,116 | exs | Elixir | test/lib/monero/daemon/parser_test.exs | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | test/lib/monero/daemon/parser_test.exs | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | test/lib/monero/daemon/parser_test.exs | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Monero.Daemon.ParserTest do
use ExUnit.Case, async: true
alias Monero.Daemon.Parser
test "error parsing" do
assert Parser.parse({:error, "error"}, "action", %{}) == {:error, "error"}
end
test "json rpc calls parsing" do
body = ~s<{"id": "0", "jsonrpc": "2.0", "result" :{"fee": 382440000, "... | 37.2 | 102 | 0.603943 |
abf52ef003bc7d63a62c4b7d848a160afda7eb39 | 253 | exs | Elixir | priv/test_repo/tenant_migrations/20160711125401_test_create_tenant_notes.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | 344 | 2017-07-03T11:30:26.000Z | 2022-03-30T19:11:41.000Z | priv/test_repo/tenant_migrations/20160711125401_test_create_tenant_notes.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | 56 | 2017-06-29T01:55:35.000Z | 2022-03-15T22:09:47.000Z | priv/test_repo/tenant_migrations/20160711125401_test_create_tenant_notes.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | 45 | 2017-08-15T18:59:41.000Z | 2022-03-17T17:00:50.000Z | defmodule Triplex.TestRepo.Migrations.CreateTenantNotes do
@moduledoc false
use Ecto.Migration
def change do
create table(:notes) do
add :body, :string
add :parent_id, references(:notes, on_delete: :delete_all)
end
end
end
| 19.461538 | 64 | 0.711462 |
abf5416a8d84f38e02f2eb980e5eeb1efefa4361 | 1,119 | exs | Elixir | config/config.exs | hvnsweeting/exsh | 53154c5874177c8e5ea815c2ced664281e129169 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | hvnsweeting/exsh | 53154c5874177c8e5ea815c2ced664281e129169 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | hvnsweeting/exsh | 53154c5874177c8e5ea815c2ced664281e129169 | [
"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.
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 |
abf566572ab6eec3fa1d50006291079332fecf78 | 2,153 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/reservation_affinity.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/reservation_affinity.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/reservation_affinity.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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.622642 | 269 | 0.734324 |
abf5e5cd2f452fd0f46dad679a1dbbcb4f355df3 | 2,559 | ex | Elixir | lib/20_run/run.ex | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | lib/20_run/run.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | lib/20_run/run.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule EctoTestDSL.Run do
use EctoTestDSL.Drink.Me
use T.Drink.AndRun
use T.Drink.Assertively
alias T.TraceServer
alias T.Nouns.Example
def example(example, opts \\ []) do
running = RunningExample.from(example,
script: workflow_script(example, opts),
history: History.new(example, opts)
... | 29.413793 | 97 | 0.616647 |
abf612f264119fe5a6f98e57f9ca7203abe20365 | 3,876 | ex | Elixir | lib/mmdb2.ex | tcitworld/adapter_mmdb2 | 965fd00ce2ba3d11d1749047f97fa2ccaeaaf533 | [
"Apache-2.0"
] | 3 | 2018-03-03T18:59:55.000Z | 2020-12-31T19:36:59.000Z | lib/mmdb2.ex | tcitworld/adapter_mmdb2 | 965fd00ce2ba3d11d1749047f97fa2ccaeaaf533 | [
"Apache-2.0"
] | 3 | 2019-07-17T12:55:41.000Z | 2020-08-31T18:55:15.000Z | lib/mmdb2.ex | tcitworld/adapter_mmdb2 | 965fd00ce2ba3d11d1749047f97fa2ccaeaaf533 | [
"Apache-2.0"
] | 4 | 2019-07-15T10:07:16.000Z | 2021-09-22T15:46:04.000Z | defmodule Geolix.Adapter.MMDB2 do
@moduledoc """
Adapter for Geolix to work with MMDB2 databases.
## Adapter Configuration
To start using the adapter with a compatible database you need to add the
required configuration entry to your `:geolix` configuration:
config :geolix,
databases: [
... | 29.363636 | 112 | 0.637255 |
abf63d0699a5cec7d04d4494a86a9b12baab785f | 623 | exs | Elixir | integration_test/selenium/all_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | integration_test/selenium/all_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | integration_test/selenium/all_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | Code.require_file("../tests.exs", __DIR__)
# Additional test cases supported by selenium
Code.require_file("../cases/browser/double_click_test.exs", __DIR__)
Code.require_file("../cases/browser/frames_test.exs", __DIR__)
Code.require_file("../cases/browser/hover_test.exs", __DIR__)
Code.require_file("../cases/element/... | 51.916667 | 71 | 0.788122 |
abf645755c61138985da3a6130899375881bed93 | 347 | ex | Elixir | lib/codes/codes_j60.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j60.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j60.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_J60 do
alias IcdCode.ICDCode
def _J60 do
%ICDCode{full_code: "J60",
category_code: "J60",
short_code: "",
full_name: "Coalworker's pneumoconiosis",
short_name: "Coalworker's pneumoconiosis",
category_name: "Coalworker's pneumoconio... | 21.6875 | 54 | 0.634006 |
abf677ef45d6037da462985bd9c3f62d199b7e6c | 7,284 | exs | Elixir | lib/ex_unit/test/ex_unit_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ExUnitTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "it supports many runs" do
defmodule SampleTest do
use ExUnit.Case
test "true" do
assert false
end
test "false" do
assert false
end
end
... | 23.496774 | 93 | 0.588688 |
abf6821ac1b636eb03bc6070a65789655bfa871f | 908 | ex | Elixir | lib/maxmind_csv/schema/asn_block_ip4r.ex | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | 1 | 2020-06-20T14:40:16.000Z | 2020-06-20T14:40:16.000Z | lib/maxmind_csv/schema/asn_block_ip4r.ex | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | lib/maxmind_csv/schema/asn_block_ip4r.ex | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(EctoIPRange.IP4R) do
defmodule Geolix.Adapter.MaxMindCSV.Schema.ASNBlockIP4R do
@moduledoc """
Sample `Ecto.Schema` to use with the adapter for ASN databases.
Table name: `geolix_maxmind_csv_asn_blocks_ip4r`.
"""
use Ecto.Schema
import Ecto.Query, only: [where: 3]
... | 24.540541 | 67 | 0.651982 |
abf68ad3d3ed8d9cf45c947698ee1b06538b9f84 | 1,066 | exs | Elixir | clients/composer/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/composer/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/composer/test/test_helper.exs | 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... | 29.611111 | 83 | 0.739212 |
abf69040b891b323cd8a18923d68bb01a806a8b5 | 573 | ex | Elixir | anagram/lib/anagram.ex | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | anagram/lib/anagram.ex | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | anagram/lib/anagram.ex | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | defmodule Anagram do
@doc """
Returns all candidates that are anagrams of, but not equal to, 'base'.
"""
@spec match(String.t(), [String.t()]) :: [String.t()]
def match(base, candidates) do
base = String.downcase(base)
candidates
|> Enum.filter(&anagram?(base, &1))
end
defp anagram?(base, ca... | 22.92 | 72 | 0.657941 |
abf6d2a35b5f7cc2902f203c254544b0258fc3ab | 289 | exs | Elixir | elixir_backend/migrations/20210607200925_create_rooms_users.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/migrations/20210607200925_create_rooms_users.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/migrations/20210607200925_create_rooms_users.exs | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | defmodule ClubhouseData.Repo.Migrations.CreateRoomsUsers do
use Ecto.Migration
def change do
create table(:rooms_users) do
add :room_id, references(:rooms)
add :user_id, references(:users)
end
create unique_index(:rooms_users, [:room_id, :user_id])
end
end
| 22.230769 | 59 | 0.716263 |
abf71cb4454deb7dd2b68cc9cc998e97a2c904f2 | 3,643 | ex | Elixir | lib/rotary_encoder.ex | nerves-build/rotary_encoder | 11e4422e3f98f11c110b5051790c67a5d42e34f6 | [
"MIT"
] | 1 | 2020-09-16T15:48:07.000Z | 2020-09-16T15:48:07.000Z | lib/rotary_encoder.ex | nerves-build/rotary_encoder | 11e4422e3f98f11c110b5051790c67a5d42e34f6 | [
"MIT"
] | 2 | 2021-03-10T04:43:33.000Z | 2021-05-11T00:34:16.000Z | lib/rotary_encoder.ex | nerves-build/rotary_encoder | 11e4422e3f98f11c110b5051790c67a5d42e34f6 | [
"MIT"
] | 1 | 2020-11-19T15:30:31.000Z | 2020-11-19T15:30:31.000Z | defmodule RotaryEncoder do
@moduledoc """
Documentation for RotaryEncoder, a library for using rotary encoders in Elixir.
Encoders can be set up via the config or can be programatically added and deleted at runtime.
```
config :rotary_encoder, RotaryEncoder,
encoders: [
%{
name: "main"
enco... | 26.398551 | 181 | 0.694208 |
abf724b4c50bf7953e420e74e31c9ba563d1034d | 1,665 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/source_split_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/source_split_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/source_split_options.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... | 34.6875 | 173 | 0.767568 |
abf741703e735e68af17cd4623bd968b2358ae66 | 174 | ex | Elixir | test/support/support.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | test/support/support.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | test/support/support.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Test.Support do
import ExUnit.Assertions
def assert_attr(target, attr, value) do
assert Floki.attribute(target, attr) == value
target
end
end
| 19.333333 | 49 | 0.735632 |
abf74747044b456cd652cf3dc868b49996e5b4b8 | 1,352 | ex | Elixir | lib/example_16/application.ex | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | lib/example_16/application.ex | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | lib/example_16/application.ex | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | defmodule Example16.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
require Logger
alias Example16.Accounts.RBAC
@impl true
def start(_type, _args) do
# Initialize RBAC roles cache
# See https://githu... | 28.166667 | 68 | 0.704882 |
abf74ed57d4ce90669dcbc8edf7ec2697fea9f29 | 3,184 | exs | Elixir | config/config.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 96 | 2016-02-26T20:20:33.000Z | 2020-10-02T16:21:00.000Z | config/config.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 12 | 2016-02-27T16:23:55.000Z | 2017-07-04T13:46:00.000Z | config/config.exs | lyncms/lyn | ef825e7ff8df049a41f9a10685324079ebe116f9 | [
"MIT"
] | 24 | 2016-03-10T23:55:33.000Z | 2019-06-07T18:32:34.000Z | # 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 :lyn, Lyn.Endpoint,
url: [host: "localhost"],
ro... | 31.524752 | 86 | 0.731156 |
abf76240fa0075c5105f514ee37b1b9b3d88d970 | 7,236 | exs | Elixir | test/adapter_test.exs | kianmeng/ecto_tablestore | d07b34a10e4476f15524d37e7a22210cdb9744b3 | [
"MIT"
] | null | null | null | test/adapter_test.exs | kianmeng/ecto_tablestore | d07b34a10e4476f15524d37e7a22210cdb9744b3 | [
"MIT"
] | null | null | null | test/adapter_test.exs | kianmeng/ecto_tablestore | d07b34a10e4476f15524d37e7a22210cdb9744b3 | [
"MIT"
] | null | null | null | defmodule EctoTablestore.AdapterTest do
use ExUnit.Case
alias EctoTablestore.TestSchema.User
alias Ecto.Adapters.Tablestore
alias ExAliyunOts.Const.{LogicOperator, FilterType, ComparatorType, RowExistence}
require FilterType
require LogicOperator
require ComparatorType
require RowExistence
import ... | 31.598253 | 95 | 0.71476 |
abf771ad3d13375d8d946bdfeecf9a71ec8d56df | 1,912 | ex | Elixir | projects/api/lib/margaret/workers/notifications/new_story.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/lib/margaret/workers/notifications/new_story.ex | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/lib/margaret/workers/notifications/new_story.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule Margaret.Workers.Notifications.NewStory do
@moduledoc """
Worker that enqueues notification insertions for new stories.
"""
alias Ecto.Multi
alias Margaret.{Stories, Notifications}
alias Stories.Story
def perform(story_id, timestamp) do
with %Story{} = story <- Stories.get_story(story_id)... | 26.929577 | 87 | 0.697176 |
abf7987eafea995d0efd0b6015487a0ac2dffdec | 15,443 | ex | Elixir | lib/ex_minimatch/compiler.ex | bucha/ex_minimatch | 3cf358f9a6fcf6c3d39951c22ba202a58c3338d5 | [
"MIT"
] | null | null | null | lib/ex_minimatch/compiler.ex | bucha/ex_minimatch | 3cf358f9a6fcf6c3d39951c22ba202a58c3338d5 | [
"MIT"
] | null | null | null | lib/ex_minimatch/compiler.ex | bucha/ex_minimatch | 3cf358f9a6fcf6c3d39951c22ba202a58c3338d5 | [
"MIT"
] | null | null | null | defmodule ExMinimatch.Compiler do
import Dict, only: [merge: 2]
import ExBraceExpansion
import ExMinimatch.Helper
@qmark ExMinimatcher.qmark
@globstar ExMinimatcher.globstar
@star ExMinimatcher.star
@two_star_dot ExMinimatcher.two_star_dot
@two_star_no_dot ExMinimatcher.two_star_no_dot
@re_specials E... | 28.811567 | 195 | 0.583889 |
abf7ec079af5ea312a66c691a014e59d62fa6aa4 | 2,159 | exs | Elixir | test/acceptance/ast/escape_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/escape_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/escape_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Ast.EscapeTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, as_ast: 2, parse_html: 1]
describe "Escapes" do
test "dizzy rhs?" do
markdown = "\\\\!\\\\\""
html = "<p>\\!\\\"</p>\n"
ast = parse_html(html)
messages = []
as... | 30.408451 | 163 | 0.53358 |
abf85687a191ad6a6417d1a96685dbdd98ece054 | 2,786 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/column_break.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/column_break.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/column_break.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... | 48.034483 | 301 | 0.730438 |
abf865166b8ce70a20a12fbc3b4a85958cbbe88e | 1,535 | exs | Elixir | mix.exs | Betterez/btrz_ex_plug | 055a20eaf6a213e25d64bf2b968ccd7ee277b3d9 | [
"MIT"
] | null | null | null | mix.exs | Betterez/btrz_ex_plug | 055a20eaf6a213e25d64bf2b968ccd7ee277b3d9 | [
"MIT"
] | null | null | null | mix.exs | Betterez/btrz_ex_plug | 055a20eaf6a213e25d64bf2b968ccd7ee277b3d9 | [
"MIT"
] | null | null | null | defmodule BtrzExPlug.MixProject do
use Mix.Project
@github_url "https://github.com/Betterez/btrz_ex_plug"
@version "0.1.0"
def project do
[
app: :btrz_ex_plug,
version: @version,
name: "BtrzExPlug",
description: "Elixir package that groups all betterez plugs",
source_url: @gi... | 21.928571 | 98 | 0.5557 |
abf86d42bb412fe9a39e916733f57715fb182c72 | 3,792 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_upload_account_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_upload_account_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_upload_account_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.217391 | 162 | 0.711234 |
abf87ee71c085367ca8733f6a286bbf3276b8795 | 317 | ex | Elixir | lib/slax/poker/round.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | lib/slax/poker/round.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | lib/slax/poker/round.ex | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | defmodule Slax.Round do
@moduledoc false
use Slax.Schema
@type t :: %__MODULE__{}
schema "rounds" do
field(:channel, :string)
field(:closed, :boolean)
field(:issue, :string)
field(:response_url, :string)
field(:revealed, :boolean)
field(:value, :integer)
timestamps()
end
end
| 17.611111 | 33 | 0.643533 |
abf898180c62bb79929f24aee441c6223850d784 | 34,314 | ex | Elixir | lib/elixir/lib/kernel/special_forms.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/special_forms.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/special_forms.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.SpecialForms do
@moduledoc """
In this module we define Elixir special forms. Special forms
cannot be overriden by the developer and are the basic
building blocks of Elixir code.
Some of those forms are lexical (like `alias`, `import`, etc).
The macros `{}`, `[]` and `<<>>` are also specia... | 28.080196 | 85 | 0.648394 |
abf8a07fd15f29f5459b54508cf2e3c5ef2de677 | 1,120 | exs | Elixir | config/dev.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | null | null | null | config/dev.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | null | null | null | config/dev.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | null | null | null | use Mix.Config
config :ex_venture, Data.Repo,
database: "ex_venture_dev",
hostname: "localhost",
pool_size: 10
config :ex_venture, Web.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
server: true,
watchers: [
node: [
"node_modules/webpack/bin/web... | 21.538462 | 66 | 0.679464 |
abf8adea07df8313489abc06bf4f2b9f263c2c7c | 3,101 | exs | Elixir | test/openid_connect/worker_test.exs | tcrossland/openid_connect | cfb424ef5e524f4be6cd25e1d79e1c2e0269aae0 | [
"MIT"
] | null | null | null | test/openid_connect/worker_test.exs | tcrossland/openid_connect | cfb424ef5e524f4be6cd25e1d79e1c2e0269aae0 | [
"MIT"
] | null | null | null | test/openid_connect/worker_test.exs | tcrossland/openid_connect | cfb424ef5e524f4be6cd25e1d79e1c2e0269aae0 | [
"MIT"
] | 1 | 2022-03-14T03:30:25.000Z | 2022-03-14T03:30:25.000Z | defmodule OpenIDConnect.WorkerTest do
use ExUnit.Case
import Mox
setup :set_mox_global
setup :verify_on_exit!
@google_document Fixtures.load(:google, :discovery_document)
@google_certs Fixtures.load(:google, :certs)
alias OpenIDConnect.{HTTPClientMock}
test "starting with :ignore does nothing" do
... | 26.058824 | 106 | 0.670751 |
abf8be4d48e87279079fda01f7e18b2dddf47714 | 892 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.037037 | 74 | 0.761211 |
abf8c8e8f4cd826cf2e4d9c92ac8224a01a72ec4 | 2,302 | ex | Elixir | clients/language/lib/google_api/language/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/language/lib/google_api/language/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.433962 | 427 | 0.720243 |
abf8d595d9cfcaa7438f9fb091c5954465fef5a2 | 259 | ex | Elixir | phx_channels/lib/phx_channels.ex | iomonad/elixir-pocs | bd0fc282a81c013769dea28a8063a2bfbaac557d | [
"Unlicense"
] | null | null | null | phx_channels/lib/phx_channels.ex | iomonad/elixir-pocs | bd0fc282a81c013769dea28a8063a2bfbaac557d | [
"Unlicense"
] | null | null | null | phx_channels/lib/phx_channels.ex | iomonad/elixir-pocs | bd0fc282a81c013769dea28a8063a2bfbaac557d | [
"Unlicense"
] | null | null | null | defmodule PhxChannels do
@moduledoc """
PhxChannels keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.9 | 66 | 0.760618 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.