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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73b6064a73ce0fb6d0b5a198d8945052722b6bb0 | 494 | ex | Elixir | lib/garuda/view.ex | shankardevy/neem | b78b3da91e7fffb033be5c391d4ac1e1c05e8e22 | [
"MIT"
] | 44 | 2017-06-24T10:33:51.000Z | 2021-09-28T23:17:39.000Z | lib/garuda/view.ex | shankardevy/neem | b78b3da91e7fffb033be5c391d4ac1e1c05e8e22 | [
"MIT"
] | null | null | null | lib/garuda/view.ex | shankardevy/neem | b78b3da91e7fffb033be5c391d4ac1e1c05e8e22 | [
"MIT"
] | 7 | 2017-07-27T07:26:34.000Z | 2019-07-17T04:31:35.000Z | defmodule Garuda.View do
defmacro __using__(opts) do
path = Keyword.fetch!(opts, :path)
for template <- Path.wildcard(path <> "/*.eex") do
base_path = Path.basename(template, ".eex")
template_content = File.read!(template)
quote bind_quoted: [base_path: base_path,
template: temp... | 30.875 | 59 | 0.637652 |
73b624beb74922c98bd36093a7d0439ad85665dc | 6,691 | exs | Elixir | test/crew/periods_test.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | test/crew/periods_test.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | test/crew/periods_test.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule Crew.PeriodsTest do
use Crew.DataCase
alias Crew.Periods
alias Crew.Sites
@valid_site_attrs %{name: "School Fair", slug: "fair", primary_domain: "fair.example.com"}
def site_fixture(attrs \\ %{}) do
{:ok, site} =
attrs
|> Enum.into(@valid_site_attrs)
|> Sites.create_site()
... | 34.137755 | 95 | 0.672545 |
73b661ce5847e99205d7e9f2842101c58dadb52a | 866 | exs | Elixir | config/config.exs | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | 1 | 2020-01-19T17:52:05.000Z | 2020-01-19T17:52:05.000Z | config/config.exs | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | chengyin/json-to-elixir | 896cdc685aac7b0b0bdbdc730b5816f69b169bd5 | [
"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
# Configures the endpoint
config :json_to_elixir, JSONToElixirWeb.Endpoint,
url: [h... | 37.652174 | 86 | 0.775982 |
73b6790e1a80b6886f465ccf0a0b10584e9fc2f7 | 3,729 | exs | Elixir | test/smwc_web/controllers/user_confirmation_controller_test.exs | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-03-09T18:04:42.000Z | 2022-03-11T22:24:25.000Z | test/smwc_web/controllers/user_confirmation_controller_test.exs | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | null | null | null | test/smwc_web/controllers/user_confirmation_controller_test.exs | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-02-27T22:00:17.000Z | 2022-02-28T02:20:21.000Z | defmodule SMWCWeb.UserConfirmationControllerTest do
use SMWCWeb.ConnCase, async: true
import SMWC.AccountsFixtures
alias SMWC.Accounts
alias SMWC.Repo
setup do
%{user: user_fixture()}
end
describe "GET /users/confirm" do
test "renders the resend confirmation page", %{conn: conn} do
conn =... | 34.527778 | 94 | 0.643604 |
73b68f43188cdcd7f0c08afc99e923cb4ac5f887 | 1,803 | ex | Elixir | test/support/conn_simulator.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | test/support/conn_simulator.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | test/support/conn_simulator.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Test.ConnSimulator do
@moduledoc """
mock user_conn, owner_conn, guest_conn
"""
import MastaniServer.Support.Factory
import Phoenix.ConnTest, only: [build_conn: 0]
import Plug.Conn, only: [put_req_header: 3]
alias Helper.{Guardian, ORM}
alias MastaniServer.{Accounts, CMS}
def... | 26.130435 | 86 | 0.686079 |
73b69096bc747c79d928b233508c724b461d32d2 | 1,395 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/batch_clear_values_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_clear_values_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_clear_values_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... | 30.326087 | 84 | 0.754122 |
73b69a4a6d6d6b0053ef28bc74fb1181014f7cc4 | 265 | ex | Elixir | lib/creek_dict_admin.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | lib/creek_dict_admin.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | 7 | 2019-09-20T02:00:23.000Z | 2019-10-07T04:22:51.000Z | lib/creek_dict_admin.ex | nativesintech/creek-dictionary-admin | 14bfd6c364010a1c905f97cd9388bad0a40589bc | [
"MIT"
] | null | null | null | defmodule CreekDictAdmin do
@moduledoc """
CreekDictAdmin 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
| 26.5 | 66 | 0.766038 |
73b6a7a96c83ab9fe9e88b1b60d0f46ad20d3932 | 1,047 | ex | Elixir | lib/exred_node_aws_iot_thingshadow_out.ex | exredorg/exred_node_aws_iot_thingshadow_out | 071fb2085fca560332bdb41ccb65242123fda7f5 | [
"MIT"
] | null | null | null | lib/exred_node_aws_iot_thingshadow_out.ex | exredorg/exred_node_aws_iot_thingshadow_out | 071fb2085fca560332bdb41ccb65242123fda7f5 | [
"MIT"
] | null | null | null | lib/exred_node_aws_iot_thingshadow_out.ex | exredorg/exred_node_aws_iot_thingshadow_out | 071fb2085fca560332bdb41ccb65242123fda7f5 | [
"MIT"
] | null | null | null | defmodule Exred.Node.AwsIotThingShadowOut do
@moduledoc """
Publishes messages to AWS IoT Cloud.
The incoming message needs to have a valid AWS topic in the topic field.
Incoming msg format:
```elixir
msg = %{
topic :: [binary] | binary
payload :: map,
qos :: integer, # quality of ... | 23.266667 | 96 | 0.617001 |
73b6b0f9ed23e735c807cc03b89ac1f6698fe1df | 35,678 | ex | Elixir | lib/teiserver/protocols/spring/spring_in.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | lib/teiserver/protocols/spring/spring_in.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | lib/teiserver/protocols/spring/spring_in.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | defmodule Teiserver.Protocols.SpringIn do
@moduledoc """
In component of the Spring protocol
Protocol definition:
https://springrts.com/dl/LobbyProtocol/ProtocolDescription.html
"""
require Logger
alias Teiserver.Battle.Lobby
alias Teiserver.{Coordinator, Room, User, Client}
alias Phoenix.PubSub
im... | 29.316352 | 128 | 0.603453 |
73b6c3c47158df5f76b613d92f9265a473400cf9 | 147 | exs | Elixir | test/starling_ex_test.exs | shymega/starling_ex | 3ffbf93d2d1785ed91bd52f2881b5552092399ee | [
"Apache-2.0"
] | 1 | 2022-03-01T16:08:22.000Z | 2022-03-01T16:08:22.000Z | test/starling_ex_test.exs | shymega/starling_ex | 3ffbf93d2d1785ed91bd52f2881b5552092399ee | [
"Apache-2.0"
] | null | null | null | test/starling_ex_test.exs | shymega/starling_ex | 3ffbf93d2d1785ed91bd52f2881b5552092399ee | [
"Apache-2.0"
] | null | null | null | defmodule StarlingExTest do
use ExUnit.Case
doctest StarlingEx
test "greets the world" do
assert StarlingEx.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
73b6c3de0f85cc26bb8c419c3126db6eb59236d2 | 1,355 | ex | Elixir | lib/metatags.ex | kidbombay/metatags | 6ac0ff9001b7e97557601132d170a4c9acb96b95 | [
"MIT"
] | 23 | 2018-06-17T18:33:25.000Z | 2022-01-19T17:20:51.000Z | lib/metatags.ex | kidbombay/metatags | 6ac0ff9001b7e97557601132d170a4c9acb96b95 | [
"MIT"
] | 69 | 2018-06-18T12:43:42.000Z | 2022-03-24T04:24:56.000Z | lib/metatags.ex | kidbombay/metatags | 6ac0ff9001b7e97557601132d170a4c9acb96b95 | [
"MIT"
] | 5 | 2019-10-02T08:40:36.000Z | 2021-12-11T14:00:07.000Z | defmodule Metatags do
@moduledoc """
Metatags is used to provide an easy API to print out context-specific
metatags.
"""
alias Metatags.HTML
alias Plug.Conn
@type metatag_value ::
String.t() | [String.t()] | {String.t(), Keyword.t()} | map() | nil
@doc """
Puts a key and a value in ... | 26.057692 | 77 | 0.616236 |
73b6dbcc1a7446d1c45138bfe98d4c3092ab4a77 | 2,569 | exs | Elixir | mix.exs | trarbr/nerves_system_rpi3 | a01e792e3c0c865d06e5ae3d3cd0ad98021abc10 | [
"Apache-2.0"
] | null | null | null | mix.exs | trarbr/nerves_system_rpi3 | a01e792e3c0c865d06e5ae3d3cd0ad98021abc10 | [
"Apache-2.0"
] | null | null | null | mix.exs | trarbr/nerves_system_rpi3 | a01e792e3c0c865d06e5ae3d3cd0ad98021abc10 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi3.MixProject do
use Mix.Project
@app :nerves_system_rpi3
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ [:nerves_pa... | 22.33913 | 79 | 0.579603 |
73b6e4b66653c06764f733b16db026ed3f7d6301 | 2,045 | ex | Elixir | apps/buzzcms_web/lib/buzzcms_web/schemas/routes.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms_web/lib/buzzcms_web/schemas/routes.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms_web/lib/buzzcms_web/schemas/routes.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule BuzzcmsWeb.Schema.Routes do
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
alias BuzzcmsWeb.RouteResolver
node object(:route) do
field :_id, non_null(:id), resolve: fn %{id: id}, _, _ -> {:ok, id} end
field :name, non_null(:string)
field :pattern, non_null(:stri... | 21.989247 | 75 | 0.6489 |
73b6ed3d646951a67d107b30a32386801a3e5eb5 | 446 | ex | Elixir | lib/elixir_adn/parser/meta_parser.ex | shaunc311/ElixirADN | 9d46329c47695eb04bed02fb9316b2090735141b | [
"0BSD"
] | 6 | 2015-02-08T01:22:31.000Z | 2015-09-24T01:24:18.000Z | lib/elixir_adn/parser/meta_parser.ex | shaunc311/ElixirADN | 9d46329c47695eb04bed02fb9316b2090735141b | [
"0BSD"
] | 23 | 2015-02-08T12:26:01.000Z | 2015-06-02T00:39:15.000Z | lib/elixir_adn/parser/meta_parser.ex | shaunc311/ElixirADN | 9d46329c47695eb04bed02fb9316b2090735141b | [
"0BSD"
] | null | null | null | defmodule ElixirADN.Parser.MetaParser do
@moduledoc ~S"""
Parse any meta data from the data object returned from ADN
"""
@doc ~S"""
Parse the document body for an error message
Examples:
iex> ElixirADN.Parser.MetaParser.parse_error "{\"meta\":{\"error_message\":\"hi\"}}"
"hi"
"""
def parse_err... | 24.777778 | 88 | 0.652466 |
73b70300c7bc3a0e0c50275090dfbe868e99c59a | 610 | ex | Elixir | lib/discovery/handler/behaviour.ex | nerandell/discovery | 1bd40ad8a366d28e0f5848835135d989fcb49fdb | [
"MIT"
] | 227 | 2015-01-31T02:32:15.000Z | 2021-11-22T11:58:27.000Z | lib/discovery/handler/behaviour.ex | nerandell/discovery | 1bd40ad8a366d28e0f5848835135d989fcb49fdb | [
"MIT"
] | 9 | 2015-03-26T12:28:41.000Z | 2022-01-21T17:00:04.000Z | lib/discovery/handler/behaviour.ex | nerandell/discovery | 1bd40ad8a366d28e0f5848835135d989fcb49fdb | [
"MIT"
] | 20 | 2015-03-26T12:29:23.000Z | 2021-04-06T01:10:46.000Z | #
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Undead Labs, LLC
#
defmodule Discovery.Handler.Behaviour do
use Behaviour
defmacro __using__(_) do
quote do
@behaviour unquote(__MODULE__)
use GenEvent
#
# GenEvent callbacks
#
def handle_event({:services, services}, s... | 19.677419 | 79 | 0.655738 |
73b70dbfe970f6bfbf79fef040d1ffe2bcf5ef4a | 254 | ex | Elixir | examples/lwm 63 - Application Packaging/package_app/lib/package_app_cli.ex | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 38 | 2018-12-31T10:51:42.000Z | 2022-03-25T18:18:10.000Z | examples/lwm 63 - Application Packaging/package_app/lib/package_app_cli.ex | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | null | null | null | examples/lwm 63 - Application Packaging/package_app/lib/package_app_cli.ex | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 6 | 2019-08-19T03:21:36.000Z | 2021-07-16T09:34:49.000Z | defmodule PackageApp.CLI do
def main(argv) do
#Process the command line arguments and then call another method
#that will actually run something
IO.puts "Running PackageApp"
IO.puts "Command line arguments: #{inspect(argv)}"
end
end
| 25.4 | 68 | 0.728346 |
73b70e6c5e26e37f222afab8f6105eee7cefc0b3 | 715 | ex | Elixir | lib/color_wars_web/gettext.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | 1 | 2020-04-21T10:38:14.000Z | 2020-04-21T10:38:14.000Z | lib/color_wars_web/gettext.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | null | null | null | lib/color_wars_web/gettext.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | null | null | null | defmodule ColorWarsWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ColorWarsWeb.Gettext
# Simple translation
gettext "Here ... | 28.6 | 72 | 0.683916 |
73b7231c0737d1a8ed8ff092be6aff7f05274802 | 193 | ex | Elixir | lib/generate/schedule_download_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/generate/schedule_download_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/generate/schedule_download_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.ScheduleDownloadResponse do
import XmlBuilder
def generate(_req) do
element("cwmp:ScheduleDownloadResponse", nil)
end
end
| 24.125 | 87 | 0.792746 |
73b730d0450193baa0109fcbcd4d910ca1ff32f8 | 718 | exs | Elixir | mix.exs | arghmeleg/algolia-elixir | dd70f242dcf50a1b3142800508b8792ec37b87b0 | [
"Apache-2.0"
] | null | null | null | mix.exs | arghmeleg/algolia-elixir | dd70f242dcf50a1b3142800508b8792ec37b87b0 | [
"Apache-2.0"
] | null | null | null | mix.exs | arghmeleg/algolia-elixir | dd70f242dcf50a1b3142800508b8792ec37b87b0 | [
"Apache-2.0"
] | null | null | null | defmodule Algolia.Mixfile do
use Mix.Project
def project do
[app: :algolia,
version: "0.6.5",
description: "Elixir implementation of Algolia Search API",
elixir: "~> 1.5",
package: package(),
deps: deps()]
end
def package do
[
maintainers: ["Sikan He"],
licenses: [... | 21.117647 | 71 | 0.536212 |
73b7409f9fab8101be3d0d9ff41537c7343087ae | 758 | exs | Elixir | mix.exs | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 6 | 2021-03-17T13:38:27.000Z | 2021-05-09T04:01:08.000Z | mix.exs | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 12 | 2021-03-21T14:44:11.000Z | 2021-07-31T09:35:00.000Z | mix.exs | chun37/dqs | 143f8bf87d1b3022f3344ac5023797677f7a44a9 | [
"MIT"
] | 3 | 2021-04-11T11:08:59.000Z | 2021-11-02T15:36:04.000Z | defmodule Dqs.MixProject do
use Mix.Project
def project do
[
app: :dqs,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applicatio... | 22.294118 | 87 | 0.547493 |
73b752c2238443e584f245166db6fcb04f588823 | 532 | ex | Elixir | lib/course_planner_web/views/auth/layout_view.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | lib/course_planner_web/views/auth/layout_view.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | lib/course_planner_web/views/auth/layout_view.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlannerWeb.Auth.LayoutView do
@moduledoc false
use CoursePlannerWeb, :view
def layout_title do
Application.get_env(:course_planner, :auth_email_title)
end
def error_tag(errors, field) when is_list(errors) and is_atom(field) do
case Keyword.fetch(errors, field) do
{:ok, message}... | 28 | 78 | 0.697368 |
73b7644960629c90f1c339fa93c3834dd67a59d8 | 956 | exs | Elixir | rojak-api/config/config.exs | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 107 | 2016-10-02T05:54:42.000Z | 2021-08-05T00:20:51.000Z | rojak-api/config/config.exs | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 134 | 2016-10-02T21:21:08.000Z | 2016-12-27T02:46:34.000Z | rojak-api/config/config.exs | pyk/rojak | 0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7 | [
"BSD-3-Clause"
] | 54 | 2016-10-02T08:47:56.000Z | 2020-03-08T00:56:03.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
# General application configuration
config :rojak_api,
namespace: RojakAPI,
ecto_... | 32.965517 | 86 | 0.763598 |
73b7698dc97879e3837fcaec643717c3ef5c6fca | 5,905 | ex | Elixir | lib/plug/adapters/test/conn.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/plug/adapters/test/conn.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | null | null | null | lib/plug/adapters/test/conn.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2020-11-16T05:08:58.000Z | 2020-11-16T05:08:58.000Z | defmodule Plug.Adapters.Test.Conn do
@behaviour Plug.Conn.Adapter
@moduledoc false
## Test helpers
def conn(conn, method, uri, body_or_params) do
maybe_flush()
uri = URI.parse(uri)
method = method |> to_string |> String.upcase()
query = uri.query || ""
owner = self()
{body, body_para... | 28.665049 | 94 | 0.630652 |
73b77a22f8150b651e6d455e99151e997829e137 | 7,563 | exs | Elixir | test/unit/parser/function_header_test.exs | wojtekmach/zigler | b2102744bff212351abfeb4f6d87e57dd1ab232c | [
"MIT"
] | 1 | 2021-02-26T00:00:34.000Z | 2021-02-26T00:00:34.000Z | test/unit/parser/function_header_test.exs | fhunleth/zigler | 037ff05087563d3255f58fb0abbaedeb12b97211 | [
"MIT"
] | null | null | null | test/unit/parser/function_header_test.exs | fhunleth/zigler | 037ff05087563d3255f58fb0abbaedeb12b97211 | [
"MIT"
] | null | null | null | defmodule ZiglerTest.Parser.FunctionHeaderTest do
# these tests make sure that the parser can correctly identify docstrings.
use ExUnit.Case, async: true
alias Zig.Parser
alias Zig.Parser.{Nif, Resource, ResourceCleanup}
@moduletag :parser
@moduletag :function
describe "the argument parser" do
test... | 38.19697 | 116 | 0.625545 |
73b79cd3a5bd3173df6f7162150f0b1306f2c41d | 596 | ex | Elixir | lib/ex_rlp/decode.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | null | null | null | lib/ex_rlp/decode.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | null | null | null | lib/ex_rlp/decode.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | null | null | null | defmodule ExRLP.Decode do
@moduledoc false
alias ExRLP.DecodeItem
@spec decode(binary(), keyword()) :: ExRLP.t()
def decode(""), do: raise(ExRLP.DecodeError)
def decode(item, options \\ []) when is_binary(item) do
item
|> unencode(Keyword.get(options, :encoding, :binary))
|> DecodeItem.decode_it... | 25.913043 | 57 | 0.669463 |
73b7d02b9d90707453bd05ee33b179efc0708e09 | 3,624 | ex | Elixir | lib/ex_hl7/writer.ex | CaptChrisD/ex_hl7 | dc35edebba0c5b657aac31e4d18be7b0451f8ccd | [
"Apache-2.0"
] | 38 | 2015-06-21T17:44:44.000Z | 2021-10-03T08:46:08.000Z | lib/ex_hl7/writer.ex | CaptChrisD/ex_hl7 | dc35edebba0c5b657aac31e4d18be7b0451f8ccd | [
"Apache-2.0"
] | 2 | 2019-08-27T17:27:37.000Z | 2021-02-05T14:27:28.000Z | lib/ex_hl7/writer.ex | CaptChrisD/ex_hl7 | dc35edebba0c5b657aac31e4d18be7b0451f8ccd | [
"Apache-2.0"
] | 14 | 2016-02-04T15:11:55.000Z | 2021-11-13T20:28:19.000Z | defmodule HL7.Writer do
@moduledoc """
Writer for the HL7 protocol that converts a message into its wire format.
"""
defstruct state: :start,
separators: nil,
trim: true,
output_format: :wire,
buffer: [],
segment_builder: nil
alias HL7.{Codec, Segme... | 32.945455 | 99 | 0.638245 |
73b7ec9f1e3158e89a56f9e5e15d1689b3267e83 | 1,851 | ex | Elixir | lib/daily_meals_web.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals_web.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals_web.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | defmodule DailyMealsWeb 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 DailyMealsWeb, :controller
use DailyMealsWeb, :view
The definitions below will be executed for every view,
con... | 23.43038 | 76 | 0.694219 |
73b8231c57b477099b5091f5d3243f19673e1586 | 1,108 | exs | Elixir | test/format_test.exs | aleandros/whatsupwith | ccbd70e4dab795a7771ef3ffa66649aa347a23d1 | [
"MIT"
] | null | null | null | test/format_test.exs | aleandros/whatsupwith | ccbd70e4dab795a7771ef3ffa66649aa347a23d1 | [
"MIT"
] | null | null | null | test/format_test.exs | aleandros/whatsupwith | ccbd70e4dab795a7771ef3ffa66649aa347a23d1 | [
"MIT"
] | null | null | null | defmodule FormatTest do
use ExUnit.Case
alias Whatsupwith.{Format, Program}
test "returns and empty string for no program data" do
assert Format.tabular_format([]) == ""
end
test "separates every column by at least one space" do
prog = %Program{name: "a", path: "/bin/a"}
assert Format.tabular_fo... | 27.02439 | 60 | 0.558664 |
73b8324d465ec5f6faea4e17d6e51f49797e54e2 | 699 | ex | Elixir | lib/exp_web/gettext.ex | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | lib/exp_web/gettext.ex | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | lib/exp_web/gettext.ex | karloescota/exp | 77267b80febf6d738b3ac6b6203795feef01e666 | [
"MIT"
] | null | null | null | defmodule ExpWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ExpWeb.Gettext
# Simple translation
gettext("Here is the strin... | 27.96 | 72 | 0.672389 |
73b83ed3c997cf7268a85c41c0f083f80c54ecc2 | 1,561 | ex | Elixir | lib/project1.ex | sanketachari/Bitcoin_Miner | 3dabebad93fd9ca6f2244b0cb6205c220a576e50 | [
"MIT"
] | null | null | null | lib/project1.ex | sanketachari/Bitcoin_Miner | 3dabebad93fd9ca6f2244b0cb6205c220a576e50 | [
"MIT"
] | null | null | null | lib/project1.ex | sanketachari/Bitcoin_Miner | 3dabebad93fd9ca6f2244b0cb6205c220a576e50 | [
"MIT"
] | 1 | 2018-11-18T05:05:57.000Z | 2018-11-18T05:05:57.000Z | defmodule Project1 do
use GenServer
def main(args \\ []) do
leadingZeros = ""
{_, input, _} = OptionParser.parse(args, switches: [])
if length(input) === 1 do
k = List.to_string(input)
if String.contains? k, "." do
IO.puts "This is client. Calling server"
MiningManager.g... | 31.22 | 81 | 0.57271 |
73b844eaf5c254051308e9a9a87a32364fcdfef1 | 179 | exs | Elixir | priv/repo/migrations/20190324155606_add_password_hash_to_users.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20190324155606_add_password_hash_to_users.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20190324155606_add_password_hash_to_users.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddPasswordHashToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :password_hash, :string
end
end
end
| 17.9 | 61 | 0.731844 |
73b879d8f0a3f1613ad7f21def4c21614c475ac7 | 5,302 | ex | Elixir | lib/google_api/pub_sub/v1/model/policy.ex | balena/elixir-google-api-pubsub | 40a089e324effd7e17dac21279e4dd1bd3f8fe19 | [
"Apache-2.0"
] | null | null | null | lib/google_api/pub_sub/v1/model/policy.ex | balena/elixir-google-api-pubsub | 40a089e324effd7e17dac21279e4dd1bd3f8fe19 | [
"Apache-2.0"
] | null | null | null | lib/google_api/pub_sub/v1/model/policy.ex | balena/elixir-google-api-pubsub | 40a089e324effd7e17dac21279e4dd1bd3f8fe19 | [
"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.567164 | 159 | 0.675594 |
73b8a595f96d56bfbe2300f2cafda05b1fecf0ee | 8,812 | ex | Elixir | lib/taglet.ex | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | lib/taglet.ex | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | lib/taglet.ex | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | defmodule Taglet do
alias Taglet.{Tagging, Tag, TagletQuery}
import Taglet.RepoClient
@moduledoc """
Documentation for Taglet.
Taglet allows you to manage tags associated to your records.
Please read README.md to get more info about how to use that
package.
"""
@type taggable :: module | struct
@... | 30.919298 | 98 | 0.684181 |
73b8d6b7ee3479fde03cee4008f0efb8a1ecbeee | 973 | exs | Elixir | apps/omg_child_chain/test/test_helper.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain/test/test_helper.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain/test/test_helper.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.541667 | 92 | 0.769784 |
73b8e121a1be7c6caeee6f47e83bbd99f799a93f | 1,103 | exs | Elixir | apps/wechat_base/test/wechat_base/api/endpoint/body_type/form_test.exs | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/test/wechat_base/api/endpoint/body_type/form_test.exs | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/test/wechat_base/api/endpoint/body_type/form_test.exs | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatBase.Api.Endpoint.BodyType.FormTest do
use WechatBase.Api.Endpoint.BodyType.Case
alias WechatBase.Api.Endpoint.BodyType.Form
alias Maxwell.Conn
test "should embed a valid body" do
opts = Form.init([
{:string, "string", %{}},
{:integer, "integer", %{}},
{:float, "float", ... | 28.282051 | 81 | 0.511333 |
73b903286af21679c82f10ff96bbfe1682481d09 | 435 | ex | Elixir | lib/rocketpay_web/views/users_view.ex | mCodex/nlw4-elixir | e1e281d1790c4638cec5b6a4380d9bc6b7ef9472 | [
"MIT"
] | null | null | null | lib/rocketpay_web/views/users_view.ex | mCodex/nlw4-elixir | e1e281d1790c4638cec5b6a4380d9bc6b7ef9472 | [
"MIT"
] | null | null | null | lib/rocketpay_web/views/users_view.ex | mCodex/nlw4-elixir | e1e281d1790c4638cec5b6a4380d9bc6b7ef9472 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersView do
alias Rocketpay.{Account, User}
def render("create.json", %{user: %User{id: id, name: name, nickname: nickname, account: %Account{id: account_id, balance: balance}}}) do
%{
message: "User created",
user: %{
id: id,
name: name,
nickname: ni... | 22.894737 | 139 | 0.558621 |
73b9319250abadd55e8296651f0094d742b121bb | 4,990 | ex | Elixir | lib/surface/catalogue/components/component_api.ex | kevinschweikert/surface_catalogue | 692cd58352e79b4ebe185c8e7f34a0ed354a6762 | [
"MIT"
] | 132 | 2021-02-02T04:03:17.000Z | 2022-03-24T07:02:00.000Z | lib/surface/catalogue/components/component_api.ex | kevinschweikert/surface_catalogue | 692cd58352e79b4ebe185c8e7f34a0ed354a6762 | [
"MIT"
] | 30 | 2021-02-16T13:18:43.000Z | 2022-03-20T20:25:47.000Z | lib/surface/catalogue/components/component_api.ex | kevinschweikert/surface_catalogue | 692cd58352e79b4ebe185c8e7f34a0ed354a6762 | [
"MIT"
] | 17 | 2021-03-20T16:23:13.000Z | 2022-03-15T16:21:08.000Z | defmodule Surface.Catalogue.Components.ComponentAPI do
@moduledoc false
use Surface.Component
alias Surface.Catalogue.Components.Tabs
alias Surface.Catalogue.Components.Tabs.TabItem
alias Surface.Catalogue.Components.Table
alias Surface.Catalogue.Components.Table.Column
alias Surface.Catalogue.Markdown
... | 26.402116 | 98 | 0.547094 |
73b93b897341ee67a929471bd1d5052c3578b65f | 2,004 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/service_attachments_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/service_attachments_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/service_attachments_scoped_list.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... | 40.08 | 205 | 0.759481 |
73b97a30fe2bf3d58fd300c556595762ae565abf | 1,115 | exs | Elixir | config/config.exs | mirego/sigaws | d16d6bc72859ef9664f3892dad001e628e6263e3 | [
"MIT"
] | 8 | 2017-04-18T05:28:21.000Z | 2022-01-20T16:32:35.000Z | config/config.exs | mirego/sigaws | d16d6bc72859ef9664f3892dad001e628e6263e3 | [
"MIT"
] | 11 | 2017-04-09T18:51:33.000Z | 2021-11-11T00:10:17.000Z | config/config.exs | mirego/sigaws | d16d6bc72859ef9664f3892dad001e628e6263e3 | [
"MIT"
] | 14 | 2017-08-06T22:11:46.000Z | 2022-03-17T18:24:49.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... | 35.967742 | 73 | 0.750673 |
73b9b5bb26a38b095ec4cae1e3b0bd54ceea998e | 326 | ex | Elixir | lib/graphql/types/role.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/graphql/types/role.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/graphql/types/role.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.GraphQL.Types.Role do
use Absinthe.Schema.Notation
enum :role do
value(:bot, as: "bot")
value(:owner, as: "owner")
value(:admin, as: "admin")
value(:developer, as: "developer")
value(:reviewer, as: "reviewer")
end
object :role_item do
field(:slug, non_null(:role))
en... | 20.375 | 38 | 0.644172 |
73b9bb5a7c040bed7f7dad24ceefa71d594a73c4 | 40,309 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/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... | 44.393172 | 196 | 0.611402 |
73ba0d446b9188bdfafc95d8bef12799087e52db | 182 | ex | Elixir | lib/pdf_party/reader/xref/stream.ex | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 4 | 2018-10-26T02:11:14.000Z | 2019-04-25T20:59:52.000Z | lib/pdf_party/reader/xref/stream.ex | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 1 | 2018-10-26T21:20:40.000Z | 2018-10-26T21:20:40.000Z | lib/pdf_party/reader/xref/stream.ex | luisgabrielroldan/pdf_party | f26fd69a05a9050a1a8faaa226c0c3ad5ba1c6db | [
"MIT"
] | 1 | 2018-10-26T02:11:17.000Z | 2018-10-26T02:11:17.000Z | defmodule PDFParty.Reader.XRef.StreamParser do
@moduledoc """
XRef Stream parser
"""
def parse(_io_device, _stream_offset),
do: {:error, :xref_stream_not_supported}
end
| 20.222222 | 46 | 0.730769 |
73ba871d0b2bed0560af75cf8fd82ecb34548560 | 10,885 | ex | Elixir | apps/admin_api/lib/admin_api/v1/router.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/lib/admin_api/v1/router.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/lib/admin_api/v1/router.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.736655 | 95 | 0.729995 |
73ba8bf964599487ca98ceb5d47af8f27aeefb80 | 3,031 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/interconnect_diagnostics_link_status.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/interconnect_diagnostics_link_status.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/interconnect_diagnostics_link_status.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 41.520548 | 220 | 0.758825 |
73ba8e643d54e212b71bb0e5160189716e550b6b | 651 | ex | Elixir | lib/bankapi_web/views/client_view.ex | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 4 | 2020-05-05T18:37:28.000Z | 2022-01-05T00:56:19.000Z | lib/bankapi_web/views/client_view.ex | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 21 | 2019-12-01T15:32:02.000Z | 2019-12-19T13:10:36.000Z | lib/bankapi_web/views/client_view.ex | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 2 | 2020-09-12T16:07:11.000Z | 2020-12-11T06:46:45.000Z | defmodule BankWeb.ClientView do
use BankWeb, :view
alias BankWeb.ClientView
alias BankWeb.UserView
def render("index.json", %{clients: clients}) do
%{data: render_many(clients, ClientView, "client.json")}
end
def render("show.json", %{client: client}) do
%{data: render_one(client, ClientView, "cli... | 25.038462 | 60 | 0.660522 |
73baab291f79a9eaad5f7f6015be89ef7822ec6e | 312 | exs | Elixir | config/test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | config/test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | config/test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | use Mix.Config
import_config "test.secret.exs"
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :cncf_dashboard_api, CncfDashboardApi.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :info
| 24 | 56 | 0.766026 |
73babc97abb42161283247631a203ef4e82ebbaa | 1,670 | ex | Elixir | debian/manpage.1.ex | alibenD/design_pattern_example_code | f78b2c2ac2ff3ce73cd404ea0e16d345d17b217f | [
"MIT"
] | null | null | null | debian/manpage.1.ex | alibenD/design_pattern_example_code | f78b2c2ac2ff3ce73cd404ea0e16d345d17b217f | [
"MIT"
] | null | null | null | debian/manpage.1.ex | alibenD/design_pattern_example_code | f78b2c2ac2ff3ce73cd404ea0e16d345d17b217f | [
"MIT"
] | null | null | null | .\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2020 Aliben <aliben.develop@gmail.com>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH Design-pattern SECTION... | 29.298246 | 70 | 0.667066 |
73babcfef1de55ba9b8e27be9ef707dcf79d5b2b | 1,015 | ex | Elixir | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.833333 | 74 | 0.753695 |
73bae7aabf60489d4b0eed9a22bfa55533d471d2 | 837 | ex | Elixir | lib/policr_mini/ecto_enums.ex | uxh/policr-mini | bad33834a9bd6405afb241b74000cec2cb78ef21 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini/ecto_enums.ex | uxh/policr-mini | bad33834a9bd6405afb241b74000cec2cb78ef21 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini/ecto_enums.ex | uxh/policr-mini | bad33834a9bd6405afb241b74000cec2cb78ef21 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMini.EctoEnums do
@moduledoc """
枚举类型定义。
"""
import EctoEnum
defenum ChatType,
private: "private",
group: "group",
supergroup: "supergroup",
channel: "channel"
defenum VerificationModeEnum, image: 0, custom: 1, arithmetic: 2, initiative: 3
defenum VerificationStatusEnum,... | 33.48 | 91 | 0.729988 |
73bb1ab668756f521eb89f585f508fda055fe58a | 1,939 | ex | Elixir | lib/aql/update.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | 7 | 2018-03-04T14:33:46.000Z | 2020-10-26T17:32:23.000Z | lib/aql/update.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | 5 | 2018-08-01T07:29:02.000Z | 2018-12-31T12:59:16.000Z | lib/aql/update.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | null | null | null | defmodule Durango.AQL.Update do
alias Durango.Query
defmacro inject_parser() do
quote do
alias Durango.Query
alias Durango.Dsl
@in_keys [:in, :into]
def parse_query(%Query{} = q, [{:update, update_expr}, {:with, with_expr}, {in_key, in_expr} | rest ]) when in_key in @in_keys do
... | 30.777778 | 135 | 0.570913 |
73bb44f8a5a37d0d0205b6b29133d353401ed565 | 597 | exs | Elixir | elixir/elixir-sips/samples/digraph_maps/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/digraph_maps/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/digraph_maps/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule DigraphMaps.Mixfile do
use Mix.Project
def project do
[app: :digraph_maps,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger]]
end
... | 19.258065 | 77 | 0.613065 |
73bb4aa52de0167caa73ca97e023e9f5fd827208 | 2,072 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/order_documents_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/order_documents_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/order_documents_list_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 ... | 39.09434 | 198 | 0.742761 |
73bb5bf07226b0c725e40c440c5a10da321d9f50 | 2,422 | exs | Elixir | test/absinthe/phase/document/validation/variables_of_correct_type_test.exs | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | null | null | null | test/absinthe/phase/document/validation/variables_of_correct_type_test.exs | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | null | null | null | test/absinthe/phase/document/validation/variables_of_correct_type_test.exs | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.VariablesOfCorrectTypeTest do
@phase Absinthe.Phase.Document.Arguments.VariableTypesMatch
import ExUnit.CaptureLog
use Absinthe.ValidationPhaseCase, async: true, phase: @phase
test "types of variables does not match types of arguments" do
fun = fn ->
Abs... | 27.83908 | 112 | 0.576383 |
73bb7001086d62b013b5515f77770bb2d7123d46 | 1,838 | exs | Elixir | config/config.exs | mammenj/elixir-auction | 94941bb820a221e3917014919d97571784ac9388 | [
"Apache-2.0"
] | null | null | null | config/config.exs | mammenj/elixir-auction | 94941bb820a221e3917014919d97571784ac9388 | [
"Apache-2.0"
] | null | null | null | config/config.exs | mammenj/elixir-auction | 94941bb820a221e3917014919d97571784ac9388 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your umbrella
# and **all applications** and their dependencies with the
# help of the Config module.
#
# Note that all applications in your umbrella share the
# same configuration and dependencies, which is why they
# all use the same configuration file. If you want different... | 30.633333 | 117 | 0.711643 |
73bb70ff51b3b4f8582178b00743cabaa715d80a | 1,027 | ex | Elixir | apps/robby_web/web/models/user.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/web/models/user.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/web/models/user.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | defmodule RobbyWeb.User do
use RobbyWeb.Web, :model
schema "users" do
field :dn, :string
field :username, :string
field :salt, :string
field :email, :string
timestamps()
end
@required_fields ~w(dn username salt email)a
@optional_fields ~w()
@doc """
Creates a changeset based on the... | 22.326087 | 69 | 0.644596 |
73bb884c312fa4e55700c1bb294b2422d3683e84 | 1,974 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/endpoints_api_service.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/endpoints_api_service.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/endpoints_api_service.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... | 41.125 | 348 | 0.762411 |
73bbba32dd5ed42b8aaeab013e9fd935a2b49790 | 1,194 | ex | Elixir | test/support/helpers.ex | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/support/helpers.ex | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | test/support/helpers.ex | RichMorin/earmark | e65fcf67345c84c23d237c732e5c174246662c68 | [
"Apache-1.1"
] | null | null | null | defmodule Support.Helpers do
alias Earmark.Block.IdDef
alias Earmark.Context
alias Earmark.Inline
###############
# Helpers.... #
###############
def context do
%Earmark.Context{}
end
def as_html(markdown, options \\ []) do
Earmark.as_html(markdown, struct(Earmark.Options, options))
end
... | 21.321429 | 64 | 0.627303 |
73bbbcfdc5c551694ed5a9cff096780f06688b75 | 3,402 | exs | Elixir | mix.exs | fmarczin/custom-rpi0 | e92197165ae683865937d681282773caaeee080f | [
"Apache-2.0"
] | null | null | null | mix.exs | fmarczin/custom-rpi0 | e92197165ae683865937d681282773caaeee080f | [
"Apache-2.0"
] | null | null | null | mix.exs | fmarczin/custom-rpi0 | e92197165ae683865937d681282773caaeee080f | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi0.MixProject do
use Mix.Project
@github_organization "nerves-project"
@app :nerves_system_rpi0
@source_url "https://github.com/#{@github_organization}/#{@app}"
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
... | 24.3 | 83 | 0.585244 |
73bbbcfe36c1a92b69f6013277c881f0c49b68e6 | 1,919 | ex | Elixir | lib/entitiex/formatter.ex | undr/entitiex | c6666909290b4077b47659ce11891659226e3b88 | [
"MIT"
] | null | null | null | lib/entitiex/formatter.ex | undr/entitiex | c6666909290b4077b47659ce11891659226e3b88 | [
"MIT"
] | null | null | null | lib/entitiex/formatter.ex | undr/entitiex | c6666909290b4077b47659ce11891659226e3b88 | [
"MIT"
] | null | null | null | defmodule Entitiex.Formatter do
alias Entitiex.Types
@spec to_s(any() | [any()]) :: String.t()
def to_s(value) when is_list(value),
do: Enum.map(value, &to_s/1)
def to_s(value),
do: to_string(value)
@spec to_atom(any() | [any()]) :: atom()
def to_atom(value) when is_list(value),
do: Enum.map(v... | 31.983333 | 69 | 0.662845 |
73bbd5097fecec9c4eebe6c98cc0f914a4f1c4c0 | 192 | exs | Elixir | priv/repo/migrations/20171213115525_add_contract_block_number_to_icos.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20171213115525_add_contract_block_number_to_icos.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20171213115525_add_contract_block_number_to_icos.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.AddContractBlockNumberToIcos do
use Ecto.Migration
def change do
alter table(:icos) do
add(:contract_block_number, :integer)
end
end
end
| 19.2 | 65 | 0.744792 |
73bbdb24b1d53b931deae23bd2f30a8fcd59e567 | 591 | exs | Elixir | mix.exs | Spock1992/Simple-chat-in-elixir | 513b8b1d428840d7ebd15c0341be27795605fc29 | [
"MIT"
] | null | null | null | mix.exs | Spock1992/Simple-chat-in-elixir | 513b8b1d428840d7ebd15c0341be27795605fc29 | [
"MIT"
] | null | null | null | mix.exs | Spock1992/Simple-chat-in-elixir | 513b8b1d428840d7ebd15c0341be27795605fc29 | [
"MIT"
] | null | null | null | defmodule Chat.MixProject do
use Mix.Project
def project do
[
app: :chat,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applicati... | 19.7 | 88 | 0.558376 |
73bbe82d698c78d0a6aa283606903bb614a0e0c6 | 1,117 | ex | Elixir | lib/Base/Client_handler/client_handler_AfterAuth.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | 2 | 2018-10-19T06:14:08.000Z | 2018-11-23T00:56:09.000Z | lib/Base/Client_handler/client_handler_AfterAuth.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | lib/Base/Client_handler/client_handler_AfterAuth.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | defmodule Servus.ClientHandler_AfterAuth do
@moduledoc """
Handles the socket connection of a client (player). All messages are
received via tcp and interpreted as JSON.
"""
alias Servus.Serverutils
require Logger
def run(clientHandle, decodedProtobuf) do
if Map.has_key?(clientHandle, :auth) do
... | 31.914286 | 78 | 0.679499 |
73bbf620c369289eae7df5fe1dff582a73a7c82d | 315 | ex | Elixir | lib/api/fake.ex | m3ta4a/amplitude_ex | 0fbd2ac7cbdaec4d8c0070b8f5fa6cd38eb7cb84 | [
"BSD-3-Clause"
] | null | null | null | lib/api/fake.ex | m3ta4a/amplitude_ex | 0fbd2ac7cbdaec4d8c0070b8f5fa6cd38eb7cb84 | [
"BSD-3-Clause"
] | null | null | null | lib/api/fake.ex | m3ta4a/amplitude_ex | 0fbd2ac7cbdaec4d8c0070b8f5fa6cd38eb7cb84 | [
"BSD-3-Clause"
] | null | null | null | defmodule Amplitude.API.Fake do
defp priv(path) do
priv =
:code.priv_dir(:amplitude)
|> to_string
priv <> "/mock" <> path
end
defp load(path) do
with {:ok, content} <- File.read(priv(path)),
do: Jason.decode(content)
end
def api_track(_), do: load("/track/response.txt")
end
| 19.6875 | 51 | 0.615873 |
73bc1d4eb4615d816dd9532ac1dce75cb5167280 | 10,348 | ex | Elixir | lib/shitty_linq_ex.ex | uduDudu/shitty_linq_ex | 8e9e93afd2aeb2a93b936755e14fd80edf0b5f03 | [
"Unlicense"
] | null | null | null | lib/shitty_linq_ex.ex | uduDudu/shitty_linq_ex | 8e9e93afd2aeb2a93b936755e14fd80edf0b5f03 | [
"Unlicense"
] | null | null | null | lib/shitty_linq_ex.ex | uduDudu/shitty_linq_ex | 8e9e93afd2aeb2a93b936755e14fd80edf0b5f03 | [
"Unlicense"
] | null | null | null | defmodule ShittyLinqEx do
@moduledoc """
Documentation for `ShittyLinqEx`.
"""
@doc """
Applies an accumulator function over a sequence. The specified seed value is used as the initial
accumulator value, and the specified function is used to select the result value.
## Parameters
- `source`: an enume... | 26 | 137 | 0.622632 |
73bc211a27b0fcf75cbcdea05ae3deafffe0e8cc | 1,435 | exs | Elixir | test/gateways/stripe_test.exs | aashishsingh2803/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | 4 | 2018-03-23T13:02:37.000Z | 2018-08-14T15:55:24.000Z | test/gateways/stripe_test.exs | Siriusdark/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | null | null | null | test/gateways/stripe_test.exs | Siriusdark/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | null | null | null | defmodule Gringotts.Gateways.StripeTest do
use ExUnit.Case
alias Gringotts.Gateways.Stripe
alias Gringotts.{
CreditCard,
Address
}
@card %CreditCard{
first_name: "John",
last_name: "Smith",
number: "4242424242424242",
year: "2017",
month: "12",
verification_code: "123"
}
... | 24.322034 | 89 | 0.629965 |
73bcb3023db7e8cc59df2031c46d9256a263cc8f | 741 | exs | Elixir | mix.exs | demarius/slacker | d31566c260486e61af8da2bca1edbdd4af5bd274 | [
"MIT"
] | 1 | 2016-08-10T17:46:51.000Z | 2016-08-10T17:46:51.000Z | mix.exs | demarius/slacker | d31566c260486e61af8da2bca1edbdd4af5bd274 | [
"MIT"
] | null | null | null | mix.exs | demarius/slacker | d31566c260486e61af8da2bca1edbdd4af5bd274 | [
"MIT"
] | null | null | null | defmodule Slacker.Mixfile do
use Mix.Project
def project do
[app: :slacker,
version: "0.0.1",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 20.027027 | 77 | 0.578947 |
73bcd97904099d1d362934f2a833e2436f049412 | 2,734 | exs | Elixir | config/prod.exs | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | config/prod.exs | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | config/prod.exs | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.939759 | 67 | 0.724214 |
73bce609ababb36f059f727d453c05c926d18a19 | 143 | exs | Elixir | test/organizing_a_project_3/issues_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | test/organizing_a_project_3/issues_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | 1 | 2020-01-28T00:19:53.000Z | 2020-01-28T00:19:53.000Z | test/organizing_a_project_3/issues_test.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | defmodule Issues3Test do
use ExUnit.Case
doctest ElixirPractice.OrganizingAProject3
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.888889 | 44 | 0.727273 |
73bd03d6aa92e6a32c9dc6db997d6edfa561cc9e | 957 | exs | Elixir | config/config.exs | Frylock13/PhoenixChat | 05f9a14df49a981ce1c9ebf41740577ccb2aae81 | [
"MIT"
] | 1 | 2016-02-24T01:45:57.000Z | 2016-02-24T01:45:57.000Z | config/config.exs | Frylock13/PhoenixChat | 05f9a14df49a981ce1c9ebf41740577ccb2aae81 | [
"MIT"
] | null | null | null | config/config.exs | Frylock13/PhoenixChat | 05f9a14df49a981ce1c9ebf41740577ccb2aae81 | [
"MIT"
] | 1 | 2016-02-24T01:47:02.000Z | 2016-02-24T01:47:02.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 :chat_demo, ChatDemo.Endpoint,
url: [host: "localh... | 31.9 | 86 | 0.756531 |
73bd05f885e1bbd626bc76178ed4cc572143bfc5 | 2,555 | exs | Elixir | test/honeybadger/plug_data_test.exs | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 175 | 2015-07-04T16:01:53.000Z | 2022-03-30T10:18:03.000Z | test/honeybadger/plug_data_test.exs | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 225 | 2015-07-03T22:08:58.000Z | 2022-02-03T14:16:20.000Z | test/honeybadger/plug_data_test.exs | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 69 | 2015-09-17T13:56:28.000Z | 2022-03-20T17:49:17.000Z | defmodule Honeybadger.PlugDataTest do
use Honeybadger.Case, async: true
use Plug.Test
alias Honeybadger.PlugData
describe "build_plug_env/2" do
test "building outside of a phoenix app" do
conn = conn(:get, "/bang?foo=bar")
assert match?(
%{component: "PlugApp", params: %{"foo" ... | 29.367816 | 90 | 0.52955 |
73bd3c6a3f74956bce365abca8d2bd7f0786d08e | 156 | ex | Elixir | lib/chapter_2_exercise_1.ex | danpker/elixir-otp-guidebook | 9c04f498207d6f397ecaa02d1dfba0861e425728 | [
"MIT"
] | null | null | null | lib/chapter_2_exercise_1.ex | danpker/elixir-otp-guidebook | 9c04f498207d6f397ecaa02d1dfba0861e425728 | [
"MIT"
] | null | null | null | lib/chapter_2_exercise_1.ex | danpker/elixir-otp-guidebook | 9c04f498207d6f397ecaa02d1dfba0861e425728 | [
"MIT"
] | null | null | null | defmodule Chapter2.Exercise1 do
def sum([]) do
0
end
def sum([head | tail]) do
head + sum(tail)
end
def sum(head) do
head
end
end
| 11.142857 | 31 | 0.589744 |
73bd46659a3085faaab0ea55ad95b77ea5931601 | 3,296 | ex | Elixir | lib/new_relic/harvest/collector/harvest_cycle.ex | trustvox/elixir_agent | 391c83c82336c96fd78a03c8ee316d48de2eea4f | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/harvest_cycle.ex | trustvox/elixir_agent | 391c83c82336c96fd78a03c8ee316d48de2eea4f | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/harvest_cycle.ex | trustvox/elixir_agent | 391c83c82336c96fd78a03c8ee316d48de2eea4f | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Harvest.Collector.HarvestCycle do
use GenServer
# Manages the harvest cycle for a given harvester.
@moduledoc false
alias NewRelic.Harvest.Collector
def start_link(config) do
GenServer.start_link(__MODULE__, config, name: config[:name])
end
def init(
name: name,
... | 27.016393 | 85 | 0.689017 |
73bd8616c37b9ac8e80bce14330c8a360d11fe37 | 272 | exs | Elixir | fizzbuzz.exs | PragTob/fizzbuzz | 13a362f0ad88ee202164ea3aadbbfce185c7ce57 | [
"MIT"
] | 2 | 2018-01-02T13:47:40.000Z | 2018-01-28T20:08:28.000Z | fizzbuzz.exs | PragTob/fizzbuzz | 13a362f0ad88ee202164ea3aadbbfce185c7ce57 | [
"MIT"
] | null | null | null | fizzbuzz.exs | PragTob/fizzbuzz | 13a362f0ad88ee202164ea3aadbbfce185c7ce57 | [
"MIT"
] | null | null | null | defmodule FizzBuzz do
def fizzbuzz(n) when rem(n, 15) == 0, do: "FizzBuzz"
def fizzbuzz(n) when rem(n, 5) == 0, do: "Buzz"
def fizzbuzz(n) when rem(n, 3) == 0, do: "Fizz"
def fizzbuzz(n), do: n
end
Enum.each(1..100, fn i -> i |> FizzBuzz.fizzbuzz |> IO.puts end)
| 30.222222 | 64 | 0.613971 |
73bd8a0f2c9abd6f0079791f9541e7f9d1dd087f | 14,876 | ex | Elixir | lib/config_cat.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 14 | 2020-10-15T09:15:12.000Z | 2022-03-18T19:42:28.000Z | lib/config_cat.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 54 | 2020-10-14T05:08:21.000Z | 2021-05-28T13:00:22.000Z | lib/config_cat.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 5 | 2020-10-13T10:24:17.000Z | 2021-11-30T17:47:11.000Z | defmodule ConfigCat do
@moduledoc """
The ConfigCat Elixir SDK.
`ConfigCat` provides a `Supervisor` that must be added to your applications
supervision tree and an API for accessing your ConfigCat settings.
## Add ConfigCat to Your Supervision Tree
Your application's supervision tree might need to be dif... | 32.76652 | 99 | 0.693399 |
73bdbd9e548aa8673e7bcbe9f9bb32bc5a3f5827 | 13,768 | ex | Elixir | test/event_store/support/subscription_test_case.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | null | null | null | test/event_store/support/subscription_test_case.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | test/event_store/support/subscription_test_case.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:15:03.000Z | 2018-12-05T18:15:03.000Z | defmodule Commanded.EventStore.SubscriptionTestCase do
import Commanded.SharedTestCase
define_tests do
alias Commanded.EventStore
alias Commanded.EventStore.{EventData, Subscriber}
alias Commanded.Helpers.ProcessHelper
defmodule BankAccountOpened do
defstruct [:account_number, :initial_balan... | 36.231579 | 96 | 0.664149 |
73bdcdec1322964626d9bace65eece5ae42c94ea | 345 | ex | Elixir | lib/options_tracker_web/live/components_live/radio_button_component.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 12 | 2020-06-25T17:25:15.000Z | 2021-09-30T20:13:33.000Z | lib/options_tracker_web/live/components_live/radio_button_component.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 5 | 2020-08-05T03:12:31.000Z | 2021-07-15T04:59:03.000Z | lib/options_tracker_web/live/components_live/radio_button_component.ex | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 2 | 2021-07-03T17:20:15.000Z | 2021-09-01T15:38:58.000Z | defmodule OptionsTrackerWeb.Components.RadioButtonComponent do
use OptionsTrackerWeb, :live_component
def is_button_on?(%{params: params, data: data}, name) do
value = params[name] || params[to_string(name)] || Map.get(data, name)
if is_binary(value) do
value != "" && value != "false"
else
... | 24.642857 | 74 | 0.672464 |
73be3d32a34af63f14de6dfad2e36c6a5b9a7188 | 2,582 | exs | Elixir | test/board_test.exs | marc-costello/elixirConnect4 | e4a0b879cdcbddb9a112d806a7b66c92790e35f9 | [
"MIT"
] | null | null | null | test/board_test.exs | marc-costello/elixirConnect4 | e4a0b879cdcbddb9a112d806a7b66c92790e35f9 | [
"MIT"
] | null | null | null | test/board_test.exs | marc-costello/elixirConnect4 | e4a0b879cdcbddb9a112d806a7b66c92790e35f9 | [
"MIT"
] | null | null | null | defmodule BoardTests do
use ExUnit.Case
alias GameSettings, as: GS
test "a connect4 board should have 7 columns" do
board = Board.create_new()
columnCount = length board
assert columnCount == GS.no_columns
end
test "a connect4 board should have 6 rows" do
board = Board.create_ne... | 31.876543 | 114 | 0.631294 |
73be409cf8dda42a679dc2cf54478d120327b876 | 17,826 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/targeting_templates.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/targeting_templates.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/targeting_templates.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.691176 | 480 | 0.614888 |
73be6bce1b873c602b173dffbe31b23259a4e5bc | 705 | ex | Elixir | lib/cotoami_web/gettext.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | 337 | 2016-11-28T15:46:58.000Z | 2022-03-01T06:21:25.000Z | lib/cotoami_web/gettext.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | 79 | 2017-02-27T05:44:36.000Z | 2021-12-09T00:28:11.000Z | lib/cotoami_web/gettext.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | 47 | 2018-02-03T01:32:13.000Z | 2021-11-08T07:54:43.000Z | defmodule CotoamiWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Cotoami.Gettext
# Simple translation
gettext "Here is the ... | 28.2 | 72 | 0.679433 |
73be6e467ece8363cd0aab5b18c3607277dc2cf5 | 884 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.740741 | 74 | 0.75905 |
73be70e5159d9ff23057808c0265eb325b4292df | 1,402 | ex | Elixir | apps/ello_events/lib/sidekiq.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_events/lib/sidekiq.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_events/lib/sidekiq.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Events.Sidekiq do
@doc "Sidekiq queue to enqueue in"
@callback queue() :: String.t
@doc "Sidekiq worker to process the event"
@callback worker() :: String.t
@doc "List of arguments to pass into Sidekiq"
@callback args(opts :: struct) :: [any()]
defmacro __using__(_) do
quote do
... | 23.366667 | 82 | 0.615549 |
73beb5de50ce41702b18dd06081b5d5e83d15520 | 1,142 | exs | Elixir | mix.exs | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | mix.exs | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | mix.exs | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | defmodule Faker.Mixfile do
use Mix.Project
@version "0.12.0"
def project do
[
app: :faker,
version: @version,
elixir: "~> 1.4",
description: "Faker is a pure Elixir library for generating fake data.",
package: package(),
name: "Faker",
source_url: "https://github.co... | 19.689655 | 78 | 0.510508 |
73bec19886624032102dffd6d0b79b8360492927 | 836 | ex | Elixir | lib/grizzly/zwave/commands/thermostat_mode_supported_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/thermostat_mode_supported_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/thermostat_mode_supported_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ThermostatModeSupportedGet do
@moduledoc """
This module implements command THERMOSTAT_MODE_SUPPORTED_GET of the
COMMAND_CLASS_THERMOSTAT_MODE command class.
This command is used to query the thermostat's supported modes.
"""
@behaviour Grizzly.ZWave.Command
alias Grizz... | 22.594595 | 69 | 0.710526 |
73bec33983fb9ac9b050f0b2e08ef5b47efb2fba | 1,339 | ex | Elixir | lib/phone/nanp/us.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.US do
@moduledoc false
use Helper.Country
def country, do: "United States"
def a2, do: "US"
def a3, do: "USA"
matcher :modules, [Phone.NANP.US.AK, Phone.NANP.US.AL, Phone.NANP.US.AR, Phone.NANP.US.AZ,
Phone.NANP.US.CA, Phone.NANP.US.CO, Phone.NANP.US.CT, Phone.NA... | 55.791667 | 92 | 0.57879 |
73bede1e97a90ec01185cc1e8a59a11828289e69 | 2,055 | exs | Elixir | test/jwt/algorithm/hmac_test.exs | tzumby/elixir-jwt | 1e44bef4d1f706062050fedad79bdd9b3b4d81a5 | [
"MIT"
] | 13 | 2017-05-15T13:37:11.000Z | 2021-07-29T23:06:23.000Z | test/jwt/algorithm/hmac_test.exs | tzumby/elixir-jwt | 1e44bef4d1f706062050fedad79bdd9b3b4d81a5 | [
"MIT"
] | 7 | 2019-01-26T12:42:24.000Z | 2021-03-16T23:01:00.000Z | test/jwt/algorithm/hmac_test.exs | tzumby/elixir-jwt | 1e44bef4d1f706062050fedad79bdd9b3b4d81a5 | [
"MIT"
] | 3 | 2019-07-26T06:03:48.000Z | 2020-01-14T20:42:55.000Z | defmodule JWT.Algorithm.HmacTest do
use ExUnit.Case
alias JWT.Algorithm.Hmac
doctest Hmac
@hs256_key "gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr9C"
@hs384_key "AyM1SysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS"
@hs512_key "ysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS0gZH75aKtMN3Yj0iPS4hc"
@signing_input_0 "{\"iss\"... | 36.052632 | 95 | 0.724574 |
73bedf84020152576c8ef04961de3f6e2e94e182 | 2,621 | ex | Elixir | lib/option.ex | kianmeng/artificery | 6322217f8c028d77254a4cefc8a06c8a0864c736 | [
"Apache-2.0"
] | null | null | null | lib/option.ex | kianmeng/artificery | 6322217f8c028d77254a4cefc8a06c8a0864c736 | [
"Apache-2.0"
] | null | null | null | lib/option.ex | kianmeng/artificery | 6322217f8c028d77254a4cefc8a06c8a0864c736 | [
"Apache-2.0"
] | null | null | null | defmodule Artificery.Option do
@moduledoc false
defstruct name: nil,
type: :string,
help: nil,
flags: %{}
# These mimic those accepted by OptionParser
@type option_type :: :boolean
| :integer
| :float
| :string
| :... | 25.950495 | 100 | 0.581076 |
73bedf9eb5e814e2e280015fe06dd6876e0b3cb2 | 325 | exs | Elixir | priv/repo/migrations/20170406200237_create_awesome_list_section.exs | sprql/awesome_elixir | ae1a372bf3060142a546aaf6cb28ffda491d9fa0 | [
"MIT"
] | 1 | 2017-04-13T05:37:08.000Z | 2017-04-13T05:37:08.000Z | priv/repo/migrations/20170406200237_create_awesome_list_section.exs | sprql/awesome_elixir | ae1a372bf3060142a546aaf6cb28ffda491d9fa0 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170406200237_create_awesome_list_section.exs | sprql/awesome_elixir | ae1a372bf3060142a546aaf6cb28ffda491d9fa0 | [
"MIT"
] | null | null | null | defmodule AwesomeElixir.Repo.Migrations.CreateAwesomeElixir.AwesomeList.Section do
use Ecto.Migration
def change do
create table(:awesome_list_sections) do
add :name, :string
add :description, :string
timestamps()
end
create index(:awesome_list_sections, [:name], unique: true)
end... | 21.666667 | 82 | 0.72 |
73bef68ffe293a20e5e8bfd27a6256721bb6987b | 1,542 | exs | Elixir | mix.exs | appcues/jorb | 4aad0ae440b18374ff1d37cb4780e812f48b704e | [
"MIT"
] | null | null | null | mix.exs | appcues/jorb | 4aad0ae440b18374ff1d37cb4780e812f48b704e | [
"MIT"
] | 7 | 2018-02-08T21:48:39.000Z | 2019-10-16T19:53:18.000Z | mix.exs | appcues/jorb | 4aad0ae440b18374ff1d37cb4780e812f48b704e | [
"MIT"
] | null | null | null | defmodule Jorb.Mixfile do
use Mix.Project
def project do
[
app: :jorb,
version: "0.4.1",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Jorb",
source_url: "https://github.com/appcues/jorb",
homepage_url: "http://hexdocs.pm/jorb",
... | 26.135593 | 65 | 0.51751 |
73bef96752dc5af8fd258a1f56ef7f7205a70354 | 2,601 | ex | Elixir | lib/mix/tasks/ecto.drop.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | lib/mix/tasks/ecto.drop.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/mix/tasks/ecto.drop.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Drop do
use Mix.Task
import Mix.Ecto
@shortdoc "Drops the repository storage"
@default_opts [force: false]
@aliases [
f: :force,
q: :quiet,
r: :repo
]
@switches [
force: :boolean,
quiet: :boolean,
repo: [:keep, :string],
no_compile: :boolean,
no_... | 28.9 | 98 | 0.635525 |
73bf05ec9f731c69328bb1872e207ede6d3ba5db | 884 | ex | Elixir | chapter2/challenges/exflight/lib/bookings/report.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter2/challenges/exflight/lib/bookings/report.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter2/challenges/exflight/lib/bookings/report.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule Exflight.Bookings.Report do
alias Exflight.Bookings.Agent, as: BookingAgent
alias Exflight.Bookings.Booking
def generate_report(from_date, to_date, filename \\ "report.csv") do
bookings = BookingAgent.get_by_interval(from_date, to_date)
bookings_strings = parse_bookings_result(bookings)
g... | 26.787879 | 83 | 0.713801 |
73bf1834c9c17da9ddf92596887092e575bd6a14 | 77 | exs | Elixir | config/test.exs | phpcitizen/rstwitter | 2d7d2d139a75cb590dcf67b66fff2341ec15dd4f | [
"MIT"
] | 2 | 2018-08-21T03:52:51.000Z | 2020-09-26T23:00:37.000Z | config/test.exs | phpcitizen/rstwitter | 2d7d2d139a75cb590dcf67b66fff2341ec15dd4f | [
"MIT"
] | 1 | 2019-06-17T09:58:23.000Z | 2019-06-17T09:58:23.000Z | config/test.exs | phpcitizen/rstwitter | 2d7d2d139a75cb590dcf67b66fff2341ec15dd4f | [
"MIT"
] | 2 | 2019-06-15T20:27:35.000Z | 2020-08-24T19:48:50.000Z | use Mix.Config
config :rs_twitter,
http_client: RsTwitter.Http.ClientMock
| 15.4 | 40 | 0.805195 |
73bf26c4bd78ef9b8250f8255879e4a01e265876 | 3,078 | ex | Elixir | lib/cforum_web/views/users/user_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/views/users/user_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum_web/views/users/user_view.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule CforumWeb.Users.UserView do
use CforumWeb, :view
alias Cforum.Tags.Tag
alias Cforum.ConfigManager
alias CforumWeb.Paginator
alias CforumWeb.Sortable
alias Cforum.Abilities
alias Cforum.ConfigManager
alias Cforum.Helpers
alias CforumWeb.Views.ViewHelpers
alias CforumWeb.Views.ViewHelper... | 42.164384 | 120 | 0.715075 |
73bf6daa56a0650f08890596ff0837a2fb7db977 | 144 | exs | Elixir | test/test_helper.exs | esl/sphinx | 2b514a713035512d80ab5d63f6945b1e11357b28 | [
"Apache-2.0"
] | 1 | 2021-03-11T23:23:34.000Z | 2021-03-11T23:23:34.000Z | test/test_helper.exs | filipevarjao/sphinx | ef9e3296ed134a6dbc448654541facf5d0792574 | [
"Apache-2.0"
] | 6 | 2019-12-04T19:42:33.000Z | 2019-12-19T16:27:15.000Z | test/test_helper.exs | esl/sphinx | 2b514a713035512d80ab5d63f6945b1e11357b28 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:27:14.000Z | 2022-03-06T10:20:41.000Z | Application.ensure_all_started(:sphinx)
ExUnit.configure(exclude: :pending)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Sphinx.Repo, :manual)
| 28.8 | 52 | 0.8125 |
73bf773a549a83276c3f90320530137a84b5e656 | 904 | ex | Elixir | clients/big_query_reservation/lib/google_api/big_query_reservation/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/big_query_reservation/lib/google_api/big_query_reservation/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/big_query_reservation/lib/google_api/big_query_reservation/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.481481 | 74 | 0.764381 |
73bfb95378aeafa885ad97f1e43527aaac1f1f4a | 1,102 | exs | Elixir | config/config.exs | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | config/config.exs | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | config/config.exs | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :inventory_management,
ecto_repos: [Inv... | 34.4375 | 92 | 0.783122 |
73bfba9971f72840283c7b0b56734a6058b390cb | 863 | ex | Elixir | apps/core/test/support/ops_factories/medication_dispense_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/test/support/ops_factories/medication_dispense_factory.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/test/support/ops_factories/medication_dispense_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.OPSFactories.MedicationDispenseFactory do
@moduledoc false
alias Ecto.UUID
defmacro __using__(_opts) do
quote do
def medication_dispense_factory do
%{
id: UUID.generate(),
status: "NEW",
inserted_by: UUID.generate(),
updated_by: UUID.gener... | 27.83871 | 56 | 0.606025 |
73bfce69a31d1f1548b5ee98fc0354b683b9edc8 | 11,051 | ex | Elixir | lib/mapper/greek.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | lib/mapper/greek.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | 1 | 2020-07-16T09:38:33.000Z | 2020-07-16T09:38:33.000Z | lib/mapper/greek.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | defmodule Exconv.Mapper.Greek do
def to_unicode(255), do: 173 # <<194, 173>> | ""
def to_unicode(254), do: 944 # <<206, 176>> | "ΰ"
def to_unicode(253), do: 912 # <<206, 144>> | "ΐ"
def to_unicode(252), do: 971 # <<207, 139>> | "ϋ"
def to_unicode(251), do: 970 # <<207, 138>> | "ϊ"
def to_unicode(250), do: ... | 49.115556 | 57 | 0.523392 |
73bfd0a47eb302e31663f8842c241dd22c5e71dc | 1,460 | ex | Elixir | lib/google_api/translate/v3beta1/model/gcs_source.ex | dungkvy/google_api_translate | 3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a | [
"Apache-2.0"
] | null | null | null | lib/google_api/translate/v3beta1/model/gcs_source.ex | dungkvy/google_api_translate | 3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a | [
"Apache-2.0"
] | null | null | null | lib/google_api/translate/v3beta1/model/gcs_source.ex | dungkvy/google_api_translate | 3c49bb93b921d4ca2a542fb3ca93bffe9dd0c51a | [
"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... | 29.795918 | 125 | 0.732192 |
73bfd82260c73f0beb7addf4a35c9a8cc72476ea | 2,126 | exs | Elixir | test/queutils/blocking_producer_test.exs | Cantido/queutils | 5f5bade636eb54431502b7c11990ed72d7fdabf5 | [
"MIT"
] | 3 | 2020-05-27T11:19:29.000Z | 2021-03-24T20:03:01.000Z | test/queutils/blocking_producer_test.exs | Cantido/queutils | 5f5bade636eb54431502b7c11990ed72d7fdabf5 | [
"MIT"
] | 2 | 2020-11-06T04:33:01.000Z | 2022-02-24T11:05:36.000Z | test/queutils/blocking_producer_test.exs | Cantido/queutils | 5f5bade636eb54431502b7c11990ed72d7fdabf5 | [
"MIT"
] | null | null | null | defmodule Queutils.BlockingProducerTest do
use ExUnit.Case
alias Queutils.BlockingProducer
doctest Queutils.BlockingProducer
test "pushing with zero demand adds to the queue" do
pushed_item = make_ref()
state = %{
queue: [],
waiting: [],
demand: 0,
max_length: 1_000,
pushe... | 26.246914 | 84 | 0.631703 |
73bfdf304614ea84733268e6c10de8e99a178844 | 2,188 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_text_anchor.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_text_anchor.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_text_anchor.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.730159 | 195 | 0.738117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.