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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79a884f3cc76a51408a1c0c314671a873e946aa3 | 2,952 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/site_video_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/site_video_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/site_video_settings.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... | 50.033898 | 252 | 0.752371 |
79a8ac42d1e2347e7b9426755c977fd9fa03fbf5 | 1,402 | ex | Elixir | lib/exchema_coercion.ex | victorprs/exchema_coercion | 3c1d0bbec9b6976fdbd2a18e8c36926232e13e44 | [
"Apache-2.0"
] | 7 | 2018-08-29T09:28:31.000Z | 2020-08-20T12:56:43.000Z | lib/exchema_coercion.ex | victorprs/exchema_coercion | 3c1d0bbec9b6976fdbd2a18e8c36926232e13e44 | [
"Apache-2.0"
] | 3 | 2018-10-08T21:33:04.000Z | 2019-07-22T16:38:02.000Z | lib/exchema_coercion.ex | victorprs/exchema_coercion | 3c1d0bbec9b6976fdbd2a18e8c36926232e13e44 | [
"Apache-2.0"
] | 2 | 2018-10-15T13:36:03.000Z | 2019-03-15T19:00:37.000Z | defmodule ExchemaCoercion do
@moduledoc """
Automagically coercion for Exchema Types
"""
alias Exchema.Type
@type result :: {:ok, any} | {:error, any} | :error
@type coercion :: (any, Type.t(), [coercion] -> result)
@spec coerce(any, Type.t(), [coercion]) :: any
def coerce(input, type, coercions \\ E... | 24.596491 | 71 | 0.614123 |
79a8b3c6757af4de7f30bc818a33702b2936ea88 | 184 | exs | Elixir | config/config.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | config/config.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | config/config.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | 1 | 2021-12-07T09:25:32.000Z | 2021-12-07T09:25:32.000Z | import Config
# Common compile-time app env
config :pathfinder, ecto_repos: [NewWay.Repo]
# Dont use Elixir's logger
config :logger, backends: []
import_config("#{Mix.env()}.exs")
| 16.727273 | 45 | 0.722826 |
79a8e928f6ab1b8808463774b5b3b9eaa564c82e | 1,998 | exs | Elixir | mix.exs | elixir-geolix/geolix_adapter_mmdb2_caching | 935d2db3fa3199321b8eb74cad49a17ff13292bc | [
"Apache-2.0"
] | null | null | null | mix.exs | elixir-geolix/geolix_adapter_mmdb2_caching | 935d2db3fa3199321b8eb74cad49a17ff13292bc | [
"Apache-2.0"
] | null | null | null | mix.exs | elixir-geolix/geolix_adapter_mmdb2_caching | 935d2db3fa3199321b8eb74cad49a17ff13292bc | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Adapter.LookupCache.MixProject do
use Mix.Project
@url_github "https://github.com/elixir-geolix/adapter_lookup_cache"
def project do
[
app: :geolix_adapter_lookup_cache,
name: "Geolix Adapter: Lookup Cache",
version: "0.3.0-dev",
elixir: "~> 1.7",
deps: deps(),... | 24.365854 | 72 | 0.571572 |
79a8ead4bb2a6681206fa1c3b642247cd77aefc4 | 1,739 | exs | Elixir | apps/magnetissimo_web/mix.exs | moonbuggy/magnetissimo | 5faa37e7618ed2556e4158733a7e713f3f6e706c | [
"MIT"
] | null | null | null | apps/magnetissimo_web/mix.exs | moonbuggy/magnetissimo | 5faa37e7618ed2556e4158733a7e713f3f6e706c | [
"MIT"
] | null | null | null | apps/magnetissimo_web/mix.exs | moonbuggy/magnetissimo | 5faa37e7618ed2556e4158733a7e713f3f6e706c | [
"MIT"
] | 1 | 2022-02-05T14:10:49.000Z | 2022-02-05T14:10:49.000Z | defmodule MagnetissimoWeb.MixProject do
use Mix.Project
def project do
[
app: :magnetissimo_web,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
elixirc_p... | 27.603175 | 76 | 0.583094 |
79a8ec257874a3781d91d485f9e639bac5ac57c3 | 1,440 | exs | Elixir | test/stun_test.exs | xirsys/xturn-website | bf3c924e5d3112772fbb9f674a0d7105497c29ae | [
"Apache-2.0"
] | 73 | 2018-11-13T01:10:41.000Z | 2022-01-30T17:58:45.000Z | test/stun_test.exs | xirsys/xturn-website | bf3c924e5d3112772fbb9f674a0d7105497c29ae | [
"Apache-2.0"
] | 1 | 2019-02-21T19:32:51.000Z | 2019-02-22T11:12:09.000Z | test/stun_test.exs | xirsys/xturn-website | bf3c924e5d3112772fbb9f674a0d7105497c29ae | [
"Apache-2.0"
] | 8 | 2019-03-27T01:44:16.000Z | 2022-01-12T12:34:12.000Z | defmodule StunTest do
# bring in the test functionality
use ExUnit.Case
require Logger
alias XMediaLib.Stun
alias Xirsys.Sockets.Conn
alias Xirsys.XTurn.Pipeline
alias Xirsys.Sockets.Socket
@conn %Conn{
client_ip: {127, 0, 0, 2},
client_port: 8881,
server_ip: {127, 0, 0, 3},
server_por... | 24.40678 | 70 | 0.632639 |
79a90dbaa18aa3c93f0592677cd4719264da7499 | 2,285 | ex | Elixir | lib/blog_linter.ex | buys-fran/blog_linter_ex | bf0debb5b66b196d06b3c29e612ad416d720c971 | [
"MIT"
] | 2 | 2021-04-30T04:15:25.000Z | 2021-05-13T17:31:17.000Z | lib/blog_linter.ex | buys-fran/blog_linter_ex | bf0debb5b66b196d06b3c29e612ad416d720c971 | [
"MIT"
] | null | null | null | lib/blog_linter.ex | buys-fran/blog_linter_ex | bf0debb5b66b196d06b3c29e612ad416d720c971 | [
"MIT"
] | 2 | 2021-04-30T04:15:29.000Z | 2021-06-08T13:08:23.000Z | defmodule BlogLinter do
@moduledoc """
Documentation for `BlogLinter`.
"""
@doc """
iex> BlogLinter.clean_path("./blogposts")
"blogposts"
"""
def clean_path(path) do
String.replace(path, ~r/.*\//, "")
end
def file_names(path) do
path = clean_path(path)
Path.wildcard("./#{path}... | 28.209877 | 98 | 0.628009 |
79a94867736bc0c0b35bbdf1e5c8bcceefbe4f9c | 155 | exs | Elixir | priv/repo/migrations/20200811204826_add_index_to_events_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | priv/repo/migrations/20200811204826_add_index_to_events_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | priv/repo/migrations/20200811204826_add_index_to_events_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Repo.Migrations.AddIndexToEventsTable do
use Ecto.Migration
def change do
create index(:events, [:reported_at_naive])
end
end
| 19.375 | 58 | 0.774194 |
79a970d287d58ff3392c50e65607165148c25d71 | 821 | ex | Elixir | daniel/almeida/ch6/dungeon_crawl/lib/dungeon_crawl/enemies.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | daniel/almeida/ch6/dungeon_crawl/lib/dungeon_crawl/enemies.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/almeida/ch6/dungeon_crawl/lib/dungeon_crawl/enemies.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | defmodule DungeonCrawl.Enemies do
alias DungeonCrawl.Character
def all,
do: [
%Character{
name: "Ogre",
description: "A large creature. Big muscles. Angry and hungry.",
hit_points: 12,
max_hit_points: 12,
damage_range: 3..5,
attack_description: "a hammer"
... | 25.65625 | 81 | 0.568819 |
79a9887ca7e07c558498742e50af4c45155ff168 | 750 | ex | Elixir | lib/adify/tool/installation_strategy.ex | ericsullivan/adify | 25b842498ccfbf612e42d8b46530aad1ffb1af5a | [
"MIT"
] | 5 | 2019-07-14T22:24:32.000Z | 2020-11-25T20:36:11.000Z | lib/adify/tool/installation_strategy.ex | ericsullivan/adify | 25b842498ccfbf612e42d8b46530aad1ffb1af5a | [
"MIT"
] | 43 | 2018-01-18T15:16:30.000Z | 2021-01-23T22:12:17.000Z | lib/adify/tool/installation_strategy.ex | ericsullivan/adify | 25b842498ccfbf612e42d8b46530aad1ffb1af5a | [
"MIT"
] | 2 | 2019-05-28T17:50:27.000Z | 2020-03-23T21:00:02.000Z | defmodule Adify.Tool.InstallationStrategy do
@moduledoc """
Represents the set of commands with `up` and `down` with the priority
"""
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:name, :string)
field(:number, :integer)
field(:description, :string)
f... | 25.862069 | 71 | 0.694667 |
79a9e896d6a716dc0e7570e7e6b96fc95b534f54 | 710 | ex | Elixir | services/fc_inventory/lib/fc_inventory/events/reserved_stock_decreased.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_inventory/lib/fc_inventory/events/reserved_stock_decreased.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_inventory/lib/fc_inventory/events/reserved_stock_decreased.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCInventory.ReservedStockDecreased do
use FCBase, :event
@version 1
typedstruct do
field :__version__, integer(), default: @version
field :request_id, String.t()
field :requester_id, String.t()
field :requester_type, String.t()
field :requester_role, String.t()
field :client_i... | 23.666667 | 87 | 0.701408 |
79aa0e699885665cdc54e82db5809c6f1defb487 | 1,152 | ex | Elixir | test/support/message_store_factory.ex | josemrb/ex_message_db | 9defeb9c72bfc47280671d75c82fe33134914fd4 | [
"MIT"
] | null | null | null | test/support/message_store_factory.ex | josemrb/ex_message_db | 9defeb9c72bfc47280671d75c82fe33134914fd4 | [
"MIT"
] | null | null | null | test/support/message_store_factory.ex | josemrb/ex_message_db | 9defeb9c72bfc47280671d75c82fe33134914fd4 | [
"MIT"
] | null | null | null | defmodule ExMessageDB.MessageStoreFactory do
@moduledoc """
MessageStore factory.
"""
use ExMachina
alias Ecto.UUID
alias ExMessageDB.DataGenerator
alias ExMessageDB.TestEvent
def message_factory(attrs) when is_map(attrs) do
category_name = Map.get(attrs, :category_name, "stream")
%{
... | 23.510204 | 69 | 0.648438 |
79aa12d5924ad07603098b0209ffbe1ded94c784 | 945 | ex | Elixir | lib/codes/codes_z64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Z64 do
alias IcdCode.ICDCode
def _Z640 do
%ICDCode{full_code: "Z640",
category_code: "Z64",
short_code: "0",
full_name: "Problems related to unwanted pregnancy",
short_name: "Problems related to unwanted pregnancy",
category_name: ... | 27.794118 | 65 | 0.614815 |
79aa2e955700a460fe2c8017eb3dd83c21731139 | 1,615 | ex | Elixir | clients/people/lib/google_api/people/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.55814 | 381 | 0.745511 |
79aa44acffd559e3a1eb4d8431e6b5d1c29b821a | 362 | ex | Elixir | lib/plain_sitemap/generator.ex | kenta-aktsk/plain_sitemap | 386ea1ca23cc39df943f2a6fcb6136fc54c7a9dc | [
"MIT"
] | 9 | 2016-05-11T04:41:23.000Z | 2019-06-03T14:48:10.000Z | lib/plain_sitemap/generator.ex | kenta-aktsk/plain_sitemap | 386ea1ca23cc39df943f2a6fcb6136fc54c7a9dc | [
"MIT"
] | 7 | 2016-05-06T08:59:37.000Z | 2017-02-26T10:45:32.000Z | lib/plain_sitemap/generator.ex | kenta-aktsk/plain_sitemap | 386ea1ca23cc39df943f2a6fcb6136fc54c7a9dc | [
"MIT"
] | 2 | 2016-09-17T13:48:36.000Z | 2017-02-22T10:33:32.000Z | defmodule PlainSitemap.Generator do
def start_link do
Agent.start_link(fn -> [] end, name: __MODULE__)
end
def add(path, opts) do
entry = {path, opts}
Agent.update(__MODULE__, &([entry | &1]))
end
def flush do
Agent.update(__MODULE__, fn(_) -> [] end)
end
def urlset do
Agent.get(__M... | 19.052632 | 52 | 0.635359 |
79aa75f9fc127cd3b40c50c196035520b4356947 | 713 | ex | Elixir | web/controllers/tp_destination_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_destination_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_destination_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpDestinationController do
use CgratesWebJsonapi.Web, :controller
use JaResource
use CgratesWebJsonapi.TpSubresource
use CgratesWebJsonapi.DefaultSorting
use CgratesWebJsonapi.CsvExport
use CgratesWebJsonapi.DeleteAll
alias CgratesWebJsonapi.TpDestination
plug JaResource
... | 29.708333 | 101 | 0.7223 |
79aa7c2ea2ba327228d71c20199ef0a256a8c855 | 1,731 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_normalized_vertex.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_normalized_vertex.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_normalized_vertex.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.472727 | 144 | 0.729058 |
79aaa998b252fce0705c3ecd2d5aaff8c4603ebb | 465 | ex | Elixir | apps/registration_data/lib/registration_data/channel.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 6 | 2017-08-10T13:57:06.000Z | 2019-01-17T08:48:40.000Z | apps/registration_data/lib/registration_data/channel.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 14 | 2017-08-08T13:07:00.000Z | 2019-02-28T15:10:18.000Z | apps/registration_data/lib/registration_data/channel.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | null | null | null | defmodule RegistrationData.Channel do
use Ecto.Schema
import Ecto.Changeset
alias RegistrationData.{Schedule, Subscribe}
schema "channels" do
field :identifier, :integer
timestamps()
many_to_many :schedules, Schedule, join_through: Subscribe
end
@doc false
def changeset(%__MODULE__{} = da... | 20.217391 | 62 | 0.707527 |
79aaacbde866ca88c218f3af378060720841ecdc | 3,137 | ex | Elixir | lib/ash/dsl/entity.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/dsl/entity.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/dsl/entity.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | defmodule Ash.Dsl.Entity do
@moduledoc """
Declares a DSL entity.
A dsl entity represents a dsl constructor who's resulting value is a struct.
This lets the user create complex objects with arbitrary(mostly) validation rules.
The lifecycle of creating entities is complex, happening as Elixir is compiling
... | 36.905882 | 98 | 0.684093 |
79aad2cc4e3098ab8e8b7ebcd31c4221831f4d31 | 199 | exs | Elixir | priv/repo/migrations/20190116145140_alter_c11n_theme.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20190116145140_alter_c11n_theme.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20190116145140_alter_c11n_theme.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.AlterC11nTheme do
use Ecto.Migration
def change do
alter table(:customizations) do
remove(:theme)
add(:theme, :string)
end
end
end
| 18.090909 | 58 | 0.703518 |
79aae0c2833ad2b61ead0371776f0e328fa67034 | 4,074 | exs | Elixir | test/newslettex_web/controllers/campaign_contact_event_controller_test.exs | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | null | null | null | test/newslettex_web/controllers/campaign_contact_event_controller_test.exs | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | 10 | 2019-07-29T03:03:02.000Z | 2021-05-10T23:59:25.000Z | test/newslettex_web/controllers/campaign_contact_event_controller_test.exs | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | null | null | null | defmodule NewslettexWeb.CampaignContactEventControllerTest do
use NewslettexWeb.ConnCase
alias Newslettex.Newsletter
@create_attrs %{event_type: :send, smtp_message_id: "some smtp_message_id"}
@update_attrs %{event_type: :delivery, smtp_message_id: "some updated smtp_message_id"}
@invalid_attrs %{event_type... | 33.95 | 95 | 0.71404 |
79ab2e9b073f88a445dc26d0e5f52b56d5c3ddd7 | 988 | exs | Elixir | mix.exs | EnaiaInc/live_ex | 43d0d4a8a9d653e5dbadb4fab871641e515ccc68 | [
"MIT"
] | null | null | null | mix.exs | EnaiaInc/live_ex | 43d0d4a8a9d653e5dbadb4fab871641e515ccc68 | [
"MIT"
] | null | null | null | mix.exs | EnaiaInc/live_ex | 43d0d4a8a9d653e5dbadb4fab871641e515ccc68 | [
"MIT"
] | null | null | null | defmodule LiveEx.MixProject do
use Mix.Project
def project do
[
app: :live_ex,
version: "0.3.0",
description: "Flux based State Management for Phoenix LiveView",
source_url: "https://github.com/PJUllrich/live_ex",
package: [
licenses: ["MIT"],
links: %{"GitHub" => ... | 24.7 | 70 | 0.566802 |
79ab32513261ed1b8301ee36e6db377b30f98377 | 79 | exs | Elixir | examples/scale_rectangle/test/scale_rectangle_test.exs | shiryel/rayex | 20cbffe788ef9df66d3e8ff918fe16a040aff737 | [
"Apache-2.0"
] | 8 | 2021-08-06T16:12:53.000Z | 2022-02-07T21:23:00.000Z | examples/scale_rectangle/test/scale_rectangle_test.exs | shiryel/rayex | 20cbffe788ef9df66d3e8ff918fe16a040aff737 | [
"Apache-2.0"
] | 3 | 2021-07-31T20:04:29.000Z | 2021-12-17T19:52:41.000Z | examples/scale_rectangle/test/scale_rectangle_test.exs | shiryel/rayex | 20cbffe788ef9df66d3e8ff918fe16a040aff737 | [
"Apache-2.0"
] | 3 | 2021-07-30T06:20:00.000Z | 2022-02-23T22:33:31.000Z | defmodule ScaleRectangleTest do
use ExUnit.Case
doctest ScaleRectangle
end
| 15.8 | 31 | 0.835443 |
79ab4d3467e4d3d105861f1a92eed3b13d2b3c02 | 717 | exs | Elixir | test/vintage_net/technology/null_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 85 | 2019-05-09T14:54:38.000Z | 2022-02-08T16:52:04.000Z | test/vintage_net/technology/null_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 132 | 2019-05-09T15:57:59.000Z | 2022-02-28T16:31:22.000Z | test/vintage_net/technology/null_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 14 | 2019-07-08T19:18:23.000Z | 2022-02-08T16:52:05.000Z | defmodule VintageNet.Technology.NullTest do
use ExUnit.Case
alias VintageNet.Interface.RawConfig
alias VintageNet.Technology.Null
test "normalizing null" do
# Normalizing anything to Null should be Null
assert %{type: VintageNet.Technology.Null} == Null.normalize(%{})
end
test "converting to raw c... | 25.607143 | 79 | 0.683403 |
79ab4fe2cbbf1f8243932b775d2710b17b6ae2c4 | 1,628 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/bucket_access_controls.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_access_controls.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_access_controls.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... | 33.22449 | 156 | 0.753686 |
79ab9851fde69a6dc1f60d6612dd400d523ada24 | 2,961 | ex | Elixir | lib/desktop/os.ex | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | lib/desktop/os.ex | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | lib/desktop/os.ex | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | defmodule Desktop.OS do
@moduledoc """
The OS module provides shortcuts and helper functions
to access OS specific information.
Most significant one should use OS.type() to differentiate
between the currently supported environments:
- Android
- IOS
- MacOS
- Windows
- Linux
"""... | 21.613139 | 88 | 0.579196 |
79ac08a4e4bf9c7e58bfb9aeed15e915274e3a05 | 1,536 | ex | Elixir | test/support/data_case.ex | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | test/support/data_case.ex | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | 6 | 2021-01-22T15:23:04.000Z | 2021-01-28T07:56:01.000Z | test/support/data_case.ex | gissandrogama/delivery_order | 8642453b03f590fe828225fc13aa58a5f79b2117 | [
"MIT"
] | null | null | null | defmodule OrderApi.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to ... | 26.947368 | 77 | 0.688802 |
79ac28bc861ad4da21b709fc5d4ed2eff56f4b64 | 1,664 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/delete_developer_metadata_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/delete_developer_metadata_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/delete_developer_metadata_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.404255 | 147 | 0.760817 |
79ac56b278abd957c72a865905b9d64181bbcef6 | 312 | ex | Elixir | lib/colorify_web/plugs/ensure_auth.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2020-03-12T18:44:10.000Z | 2020-03-12T18:44:10.000Z | lib/colorify_web/plugs/ensure_auth.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2021-03-10T10:22:38.000Z | 2021-03-10T10:22:38.000Z | lib/colorify_web/plugs/ensure_auth.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2020-03-12T18:41:42.000Z | 2020-03-12T18:41:42.000Z | defmodule ColorifyWeb.Plugs.EnsureAuth do
import Plug.Conn
import Phoenix.Controller
def init(opts), do: opts
def call(conn, _params) do
case get_session(conn, :access_token) do
nil ->
conn
|> redirect(to: "/auth")
|> halt()
_ ->
conn
end
end
end
| 16.421053 | 44 | 0.586538 |
79ac8d900b1478609f89baf2d94a13731295e827 | 773 | ex | Elixir | lib/redlock/node_chooser/store/hash_ring.ex | voode/redlock | a929fd03f04706dd79b2c2f53c1cda8d86f67d25 | [
"MIT"
] | 21 | 2018-01-10T08:38:31.000Z | 2022-01-30T19:15:25.000Z | lib/redlock/node_chooser/store/hash_ring.ex | voode/redlock | a929fd03f04706dd79b2c2f53c1cda8d86f67d25 | [
"MIT"
] | 16 | 2017-10-09T03:31:25.000Z | 2021-09-01T15:06:49.000Z | lib/redlock/node_chooser/store/hash_ring.ex | voode/redlock | a929fd03f04706dd79b2c2f53c1cda8d86f67d25 | [
"MIT"
] | 17 | 2018-05-17T11:30:14.000Z | 2022-01-28T12:46:28.000Z | defmodule Redlock.NodeChooser.Store.HashRing do
alias ExHashRing.HashRing
@behaviour Redlock.NodeChooser.Store
require Logger
@impl true
def new(pools_list) do
len = length(pools_list)
ring =
idx_list(len)
|> Enum.reduce(HashRing.new(), fn idx, ring ->
{:ok, ring2} = HashRing.ad... | 19.325 | 58 | 0.641656 |
79acbf0142503198bc2c2275db87e4dcc80eaf31 | 5,049 | ex | Elixir | web/controllers/console_controller.ex | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | web/controllers/console_controller.ex | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | web/controllers/console_controller.ex | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | defmodule MicroServerShell.ConsoleController do
use MicroServerShell.Web, :controller
def get_token(conn, %{"username" => username, "password" => password}) do
case MicroServerShell.Remoting.User.get_user(conn, username, password) do
nil -> response(conn, "用户名密码错误")
user -> response(conn, %{token: ... | 23.92891 | 112 | 0.506437 |
79acc2ddabbe4d6a21f27954a063ca381dd45f2c | 3,541 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/write.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/write.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1/model/write.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... | 57.112903 | 587 | 0.734821 |
79acca127fb6d45ce18bd7768f2ad7abc9ef86c4 | 2,623 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.224138 | 390 | 0.736942 |
79acf1efe0a87e3638db5516af4ecd6249f0b9f0 | 4,220 | ex | Elixir | web/controllers/password_controller.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | web/controllers/password_controller.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | web/controllers/password_controller.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | defmodule Coherence.PasswordController do
@moduledoc """
Handle password recovery actions.
Controller that handles the recover password feature.
Actions:
* new - render the recover password form
* create - verify user's email address, generate a token, and send the email
* edit - render the reset passw... | 30.57971 | 88 | 0.637204 |
79ad2c4bbd9f12e33cc23538d5b0238dd476df99 | 2,649 | ex | Elixir | lib/codes/codes_n89.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n89.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n89.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_N89 do
alias IcdCode.ICDCode
def _N890 do
%ICDCode{full_code: "N890",
category_code: "N89",
short_code: "0",
full_name: "Mild vaginal dysplasia",
short_name: "Mild vaginal dysplasia",
category_name: "Mild vaginal dysplasia"
... | 30.102273 | 78 | 0.598716 |
79ad4037bbc749cea77e171fe339f2141dacbc83 | 1,970 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/annotate_file_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/annotate_file_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/annotate_file_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.627451 | 131 | 0.756345 |
79ad42b6f620b07a811282ea6a05f9d189f457d6 | 169 | exs | Elixir | apps/estuary/test/unit/test_helper.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | apps/estuary/test/unit/test_helper.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | 1 | 2020-01-09T21:00:10.000Z | 2020-01-09T21:00:10.000Z | apps/estuary/test/unit/test_helper.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | Application.ensure_all_started(:mox)
Application.ensure_all_started(:dead_letter)
Application.ensure_all_started(:pipeline)
ExUnit.start(exclude: [:skip])
Faker.start()
| 28.166667 | 44 | 0.83432 |
79ad43b481e2154fb003b7f0c540439092f9c27e | 691 | ex | Elixir | test/support/test_receiver.ex | michael-borisov/membrane_ice_plugin | 5175473dbbca57f389da3ac1447e5fa82bc0e8a5 | [
"Apache-2.0"
] | null | null | null | test/support/test_receiver.ex | michael-borisov/membrane_ice_plugin | 5175473dbbca57f389da3ac1447e5fa82bc0e8a5 | [
"Apache-2.0"
] | null | null | null | test/support/test_receiver.ex | michael-borisov/membrane_ice_plugin | 5175473dbbca57f389da3ac1447e5fa82bc0e8a5 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.ICE.Support.TestReceiver do
@moduledoc false
use Membrane.Pipeline
alias Membrane.File
require Membrane.Logger
@impl true
def handle_init(opts) do
children = %{
ice: %Membrane.ICE.Bin{
stun_servers: ["64.233.161.127:19302"],
controlling_mode: false,
h... | 19.742857 | 53 | 0.600579 |
79ad7ae761ee019d363449bfd324fda6518315c3 | 1,052 | ex | Elixir | lib/advent_of_code/utils.ex | cro/aoc2021 | fbaa92be16b7849b95e1dd39b7d67954e21dc831 | [
"MIT"
] | null | null | null | lib/advent_of_code/utils.ex | cro/aoc2021 | fbaa92be16b7849b95e1dd39b7d67954e21dc831 | [
"MIT"
] | null | null | null | lib/advent_of_code/utils.ex | cro/aoc2021 | fbaa92be16b7849b95e1dd39b7d67954e21dc831 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Utils do
def get_and_parse_file(fname) do
fname
|> read_file
|> parse_file
end
def read_file(fname) do
{:ok, ftext} = File.read(fname)
ftext
end
def parse_file_to_lines(ftext) do
ftext
|> String.split("\n", trim: true)
end
def parse_file(ftext) do
... | 19.849057 | 59 | 0.628327 |
79ad810d5275716e6c2baf4275e79c8636bcb2dc | 1,082 | ex | Elixir | lib/ergo_web/channels/user_socket.ex | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | null | null | null | lib/ergo_web/channels/user_socket.ex | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | 2 | 2021-03-10T22:00:43.000Z | 2021-05-11T17:17:30.000Z | lib/ergo_web/channels/user_socket.ex | insprac/ergo | 978970ba7f9639adb7ff8c32fec8cd25f487c656 | [
"MIT"
] | null | null | null | defmodule ErgoWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ErgoWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie... | 30.055556 | 83 | 0.692237 |
79adafed4a892fac7c74800826106ec89ef5927d | 17,842 | exs | Elixir | test/eth/transaction_queries_test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | 4 | 2021-12-01T17:20:34.000Z | 2021-12-09T23:09:03.000Z | test/eth/transaction_queries_test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | null | null | null | test/eth/transaction_queries_test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | 4 | 2021-04-29T23:42:55.000Z | 2022-01-30T23:55:58.000Z | defmodule ETH.TransactionQueries.Test do
use ExUnit.Case
setup_all do
ETH.TestClient.start()
on_exit(fn ->
ETH.TestClient.stop()
end)
:ok
end
@first_wallet_in_client %{
eth_address: "0x051D51BA1E1D58DB72EFEA63549A6792C8F5CB13",
mnemonic_phrase:
"pause action enrich descri... | 34.64466 | 171 | 0.701883 |
79adb3151db947c57323a7f7de59581b52f462b0 | 35,027 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/disks.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/disks.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/disks.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 51.284041 | 1,213 | 0.685328 |
79add1d0c1d4cfad26e052cfcd486cd567cd20ad | 1,703 | exs | Elixir | elixir/isbn-verifier/isbn_verifier_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/isbn-verifier/isbn_verifier_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/isbn-verifier/isbn_verifier_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("isbn_verifier.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule ISBNVerifierTest do
use ExUnit.Case
# @tag :pending
test "valid isbn number" do
assert ISBNVerifier.isbn?("3-598-21508-8")
end
#@... | 22.407895 | 63 | 0.688784 |
79adde88d49a8ed1eb760836eb053eb1c67a50a6 | 2,794 | ex | Elixir | lib/rapid_api.ex | Spyes/RapidAPIConnect_Elixir | 7645f99cb90807d72b97939b13303ac3f6816f32 | [
"Unlicense"
] | 2 | 2017-06-12T20:24:20.000Z | 2017-06-28T05:55:10.000Z | lib/rapid_api.ex | RapidAPI/rapidapi-elixir-sdk | 7645f99cb90807d72b97939b13303ac3f6816f32 | [
"Unlicense"
] | 1 | 2021-01-07T08:53:45.000Z | 2021-01-07T08:53:45.000Z | lib/rapid_api.ex | Spyes/RapidAPIConnect_Elixir | 7645f99cb90807d72b97939b13303ac3f6816f32 | [
"Unlicense"
] | 1 | 2021-12-08T23:46:57.000Z | 2021-12-08T23:46:57.000Z | defmodule RapidApi do
@doc """
Creates a synchronous call to the specified package and base, passing all arguments provided.
Returns {:ok, payload} or {:error, reason}.
"""
@spec call(String.t, String.t, map()) :: map()
def call(pack, base, args \\ %{}) when is_bitstring(pack) and is_bitstring(base) and i... | 31.393258 | 147 | 0.643164 |
79adecd017b0cef49ac892373342609bcf95f013 | 1,191 | ex | Elixir | lib/game/status.ex | tarcisiooliveira/ExMon | 51e59d456c338ac051cd5acd37d02d57f771b251 | [
"MIT"
] | null | null | null | lib/game/status.ex | tarcisiooliveira/ExMon | 51e59d456c338ac051cd5acd37d02d57f771b251 | [
"MIT"
] | null | null | null | lib/game/status.ex | tarcisiooliveira/ExMon | 51e59d456c338ac051cd5acd37d02d57f771b251 | [
"MIT"
] | null | null | null | defmodule ExMon.Game.Status do
def print_status_game(%{status: :started} = info) do
IO.puts("\n===========Jogo Inicializado===================\n")
IO.inspect(info)
IO.puts("------------------------------------------------")
end
def print_status_game(%{status: :continue, turn: player} = info) do
I... | 34.028571 | 77 | 0.512175 |
79adefb93002f73e17b686c88998283b4c9b407b | 927 | ex | Elixir | lib/jumubase/foundation/category.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase/foundation/category.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase/foundation/category.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule Jumubase.Foundation.Category do
use Jumubase.Schema
import Ecto.Changeset
alias Jumubase.JumuParams
alias Jumubase.Foundation.Category
schema "categories" do
field :name, :string
field :short_name, :string
field :type, :string
field :genre, :string
field :group, :string
fiel... | 28.090909 | 75 | 0.707659 |
79ae0452d271b38a1f168f37c7fe8b40e666d8d7 | 13,697 | exs | Elixir | lib/mix/test/mix/tasks/deps.git_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/deps.git_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/deps.git_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.DepsGitTest do
use MixTest.Case
defmodule DepsOnGitApp do
def project do
[app: :deps_on_git_app,
version: "0.1.0",
deps: [
{:deps_on_git_repo, "0.2.0", git: fixture_path("deps_on_git_repo")}
]]
end
... | 30.779775 | 138 | 0.636271 |
79ae3569d3ab562d8b81e3916933faa601dfcf31 | 1,058 | exs | Elixir | test/arkecosystem/client/votes_test.exs | ArkEcosystem/ARK-Elixir-Client | a62c0f63c3d490b2d8734384ae354444cc279a9a | [
"MIT"
] | 2 | 2018-07-13T23:05:08.000Z | 2019-02-06T10:27:08.000Z | test/arkecosystem/client/votes_test.exs | ArkEcosystem/ARK-Elixir-Client | a62c0f63c3d490b2d8734384ae354444cc279a9a | [
"MIT"
] | 59 | 2018-06-11T07:59:59.000Z | 2019-11-17T23:30:19.000Z | test/arkecosystem/client/votes_test.exs | ArkEcosystem/ARK-Elixir-Client | a62c0f63c3d490b2d8734384ae354444cc279a9a | [
"MIT"
] | 17 | 2018-07-02T16:10:25.000Z | 2020-11-23T23:43:55.000Z | defmodule ArkEcosystem.Client.API.VotesTest do
use ExUnit.Case
import ArkEcosystem.Client.API.Votes
import Tesla.Mock
@client ArkEcosystem.Client.new(%{
host: "http://127.0.0.1:4003/api",
nethash: "578e820911f24e039733b45e4882b73e301f813a0d2c31330dafda84534ffa23",
version: "... | 29.388889 | 88 | 0.60586 |
79ae7f2cabc26cd76f2a5a1829791151f6841249 | 3,281 | ex | Elixir | lib/elixir_sense/providers/suggestion/reducers/struct.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | lib/elixir_sense/providers/suggestion/reducers/struct.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | lib/elixir_sense/providers/suggestion/reducers/struct.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | defmodule ElixirSense.Providers.Suggestion.Reducers.Struct do
@moduledoc false
alias ElixirSense.Core.Binding
alias ElixirSense.Core.Introspection
alias ElixirSense.Core.Metadata
alias ElixirSense.Core.Source
alias ElixirSense.Core.State
@type field :: %{
type: :field,
subtype: :stru... | 27.805085 | 93 | 0.612009 |
79aea0e6d850542d434777c7080f1f29b2230caf | 4,858 | ex | Elixir | lib/plug/conn/status.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | lib/plug/conn/status.ex | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | deps/plug/lib/plug/conn/status.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | defmodule Plug.Conn.Status do
@moduledoc """
Conveniences for working with status codes.
"""
custom_statuses = Application.get_env(:plug, :statuses, %{})
statuses = %{
100 => "Continue",
101 => "Switching Protocols",
102 => "Processing",
103 => "Early Hints",
200 => "OK",
201 => "Cre... | 27.602273 | 79 | 0.633388 |
79aea31c20458db09f1dc81379fc8d2cf7804d10 | 9,215 | ex | Elixir | lib/plausible_web/controllers/auth_controller.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | 2 | 2020-05-16T13:48:44.000Z | 2020-05-22T09:52:36.000Z | lib/plausible_web/controllers/auth_controller.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | lib/plausible_web/controllers/auth_controller.ex | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.AuthController do
use PlausibleWeb, :controller
use Plausible.Repo
alias Plausible.Auth
require Logger
plug PlausibleWeb.RequireLoggedOutPlug
when action in [:register_form, :register, :login_form, :login]
plug PlausibleWeb.RequireAccountPlug
when action in [:user_sett... | 29.918831 | 98 | 0.617797 |
79aef9eca2ea5fcacf2cd4c4b55f28bd111f5bd8 | 190 | exs | Elixir | test/fixtures/has_hex_dep/mix.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | test/fixtures/has_hex_dep/mix.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | test/fixtures/has_hex_dep/mix.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule HasHexDep.Fixture.MixProject do
use Mix.Project
def project do
[app: :has_hex_dep, version: "0.0.1", deps: deps()]
end
defp deps do
[{:ecto, "~> 0.1"}]
end
end
| 15.833333 | 55 | 0.626316 |
79af110a8fe91de32813be38a2ce6fda4ce7b00f | 516 | ex | Elixir | robotica_ui/lib/scenes/utils.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_ui/lib/scenes/utils.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_ui/lib/scenes/utils.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaUi.Scene.Utils do
@moduledoc """
Helper functions for scenes
"""
import Scenic.Components
import Scenic.Primitives
def add_button(graph, label, id, x, y, opts \\ []) do
x = x * 100 + 120
y = y * 100 + 10
button(graph, label, [id: id, translate: {x, y}, width: 80, height: 80]... | 22.434783 | 84 | 0.587209 |
79af12aa68aa5654824a0e980a0fe164a40746d3 | 2,952 | ex | Elixir | lib/mailmaid/smtp/uri.ex | tsg-global/mailmaid | 1f76beb4a7fe0f397a239baa189a3dac4d5b5602 | [
"MIT"
] | 6 | 2018-08-05T14:57:46.000Z | 2021-03-19T12:28:43.000Z | lib/mailmaid/smtp/uri.ex | tsg-global/mailmaid | 1f76beb4a7fe0f397a239baa189a3dac4d5b5602 | [
"MIT"
] | 2 | 2018-05-14T00:41:08.000Z | 2018-08-24T19:52:17.000Z | lib/mailmaid/smtp/uri.ex | tsg-global/mailmaid | 1f76beb4a7fe0f397a239baa189a3dac4d5b5602 | [
"MIT"
] | 2 | 2019-11-27T21:04:11.000Z | 2020-07-11T10:50:48.000Z | defmodule Mailmaid.SMTP.URI do
@moduledoc """
Handles special uris in mailer config
"""
@spec user_credentials_from_uri(map) :: {String.t | nil, String.t, String.t | nil}
def user_credentials_from_uri(%{userinfo: u} = _uri) when is_nil(u) or u == "", do: nil
def user_credentials_from_uri(%{userinfo: userin... | 25.669565 | 98 | 0.570461 |
79af479bf2b69e6c3fdc09210b1b6bb8b8326332 | 1,554 | exs | Elixir | mix.exs | elixytics/accesslog_parser | d8d565fde15df262ba7725f3f7e0095dc443fdb7 | [
"Apache-2.0"
] | 1 | 2019-06-12T01:22:01.000Z | 2019-06-12T01:22:01.000Z | mix.exs | elixytics/accesslog_parser | d8d565fde15df262ba7725f3f7e0095dc443fdb7 | [
"Apache-2.0"
] | null | null | null | mix.exs | elixytics/accesslog_parser | d8d565fde15df262ba7725f3f7e0095dc443fdb7 | [
"Apache-2.0"
] | null | null | null | defmodule AccessLogParser.MixProject do
use Mix.Project
@url_github "https://github.com/elixytics/accesslog_parser"
def project do
[
app: :accesslog_parser,
version: "0.3.0-dev",
elixir: "~> 1.9",
aliases: aliases(),
deps: deps(),
description: "Access Log Parser",
d... | 21.583333 | 72 | 0.539254 |
79af5ac664013b79373c6f8cf13726d62c0491c6 | 2,960 | ex | Elixir | lib/codes/codes_j38.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j38.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_j38.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_J38 do
alias IcdCode.ICDCode
def _J3800 do
%ICDCode{full_code: "J3800",
category_code: "J38",
short_code: "00",
full_name: "Paralysis of vocal cords and larynx, unspecified",
short_name: "Paralysis of vocal cords and larynx, unspecified",
... | 30.515464 | 75 | 0.589189 |
79af68d3a0737a4d47f06ddc8928fe407e988ed8 | 3,166 | exs | Elixir | test/liquid_voting_web/absinthe/mutations/create_participant_test.exs | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | test/liquid_voting_web/absinthe/mutations/create_participant_test.exs | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | 10 | 2020-09-28T06:37:48.000Z | 2021-12-22T15:04:38.000Z | test/liquid_voting_web/absinthe/mutations/create_participant_test.exs | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | defmodule LiquidVotingWeb.Absinthe.Mutations.CreateParticipantTest do
use LiquidVotingWeb.ConnCase
alias LiquidVotingWeb.Schema.Schema
describe "create participant" do
@new_participant_email "noob@email.com"
@new_participant_name "Noobie"
@another_name "Another Name"
@invalid_email "invalid_emai... | 29.314815 | 97 | 0.598547 |
79af8a4bd15f0d4821928dcf4088d7bc14a67a4b | 1,179 | ex | Elixir | lib/elasr/endpoint.ex | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | lib/elasr/endpoint.ex | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | lib/elasr/endpoint.ex | ench0/ex_elasr | a97e182d13bc5de56c370b687771a485e51fc6ea | [
"MIT"
] | null | null | null | defmodule Elasr.Endpoint do
use Phoenix.Endpoint, otp_app: :elasr
socket "/socket", Elasr.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at:... | 27.418605 | 69 | 0.710772 |
79af8d74d20876a2c4f0fb31afb12c89ffb184ce | 1,466 | ex | Elixir | lib/gerai.ex | boonious/gerai | 781d486ae2477a37502f03cc4da50ea7c9f01e8b | [
"Apache-2.0"
] | null | null | null | lib/gerai.ex | boonious/gerai | 781d486ae2477a37502f03cc4da50ea7c9f01e8b | [
"Apache-2.0"
] | null | null | null | lib/gerai.ex | boonious/gerai | 781d486ae2477a37502f03cc4da50ea7c9f01e8b | [
"Apache-2.0"
] | null | null | null | defmodule Gerai do
@moduledoc """
Client functions for caching JSON objects.
## Examples
iex> Gerai.put("tt1454468", "{\\\"name\\\":\\\"Gravity\\\",\\\"id\\\":\\\"tt1454468\\\"}")
:ok
iex> Gerai.get("tt1454468")
{:ok, "{\\\"name\\\":\\\"Gravity\\\",\\\"id\\\":\\\"tt1454468\\\"}"}
... | 29.32 | 104 | 0.547749 |
79af944fbac4bd8cc903f0b1ece8de6a5fcc41b5 | 935 | exs | Elixir | mix.exs | circles-learning-labs/ex_aws_chime | 5f5ef65a5765f8d6177c0a22c38211d0a0fba9c1 | [
"MIT"
] | 1 | 2020-09-28T19:56:03.000Z | 2020-09-28T19:56:03.000Z | mix.exs | circles-learning-labs/ex_aws_chime | 5f5ef65a5765f8d6177c0a22c38211d0a0fba9c1 | [
"MIT"
] | null | null | null | mix.exs | circles-learning-labs/ex_aws_chime | 5f5ef65a5765f8d6177c0a22c38211d0a0fba9c1 | [
"MIT"
] | 1 | 2020-10-02T22:56:51.000Z | 2020-10-02T22:56:51.000Z | defmodule ExAwsChime.MixProject do
use Mix.Project
def project do
[
app: :ex_aws_chime,
version: "0.1.1",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package()
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do... | 23.375 | 79 | 0.530481 |
79af9e1c01b6db0dfa41dd39fddc41d147553bd2 | 2,180 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/targeting_expansion_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/targeting_expansion_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/targeting_expansion_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.6 | 372 | 0.763303 |
79afba8ff7cd5eeaa7ea377a59c1fd462e0ad34d | 858 | ex | Elixir | lib/solid/tag/cycle.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 117 | 2016-09-04T03:56:08.000Z | 2022-03-28T18:51:56.000Z | lib/solid/tag/cycle.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 73 | 2017-03-21T09:22:45.000Z | 2022-03-01T20:48:22.000Z | lib/solid/tag/cycle.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 25 | 2017-04-02T02:23:01.000Z | 2022-02-27T20:42:13.000Z | defmodule Solid.Tag.Cycle do
import NimbleParsec
alias Solid.Parser.{BaseTag, Literal}
@behaviour Solid.Tag
@impl true
def spec(_parser) do
space = Literal.whitespace(min: 0)
ignore(BaseTag.opening_tag())
|> ignore(string("cycle"))
|> ignore(space)
|> optional(
Literal.double_quot... | 21.45 | 63 | 0.602564 |
79afd888e7606e17454a3832e0dc7f3a160a386a | 6,852 | ex | Elixir | lib/forge_abi/util/bigint.ex | ArcBlock/forge-abi | 918be4d21eba928203a4c0d0ac361ce738bb63da | [
"Apache-2.0"
] | 3 | 2019-05-10T06:13:43.000Z | 2020-09-17T00:12:32.000Z | lib/forge_abi/util/bigint.ex | ArcBlock/forge-abi | 918be4d21eba928203a4c0d0ac361ce738bb63da | [
"Apache-2.0"
] | 3 | 2019-05-23T21:31:34.000Z | 2019-10-04T20:25:50.000Z | lib/forge_abi/util/bigint.ex | ArcBlock/forge-abi | 918be4d21eba928203a4c0d0ac361ce738bb63da | [
"Apache-2.0"
] | null | null | null | defmodule ForgeAbi.Util.BigInt do
@moduledoc """
Big int operators. Note that at the moment we only need `:+` and `:-`.
As for `==`, `!=`, `>`, `>=`, `<`, `<=` the default behavior is as expected so
we won't override them.
"""
import Kernel, except: [+: 2, -: 2, >=: 2, >: 2, <=: 2, <: 2]
alias ForgeAbi.{B... | 31.287671 | 121 | 0.610917 |
79afdc3b3e023192999de2f689ff3add221edb52 | 1,103 | ex | Elixir | deps/mint/lib/mint/core/transport.ex | PrecisionNutrition/frogger | 96374fe0ac0ea616205f6678fe088802572e922e | [
"MIT"
] | null | null | null | deps/mint/lib/mint/core/transport.ex | PrecisionNutrition/frogger | 96374fe0ac0ea616205f6678fe088802572e922e | [
"MIT"
] | null | null | null | deps/mint/lib/mint/core/transport.ex | PrecisionNutrition/frogger | 96374fe0ac0ea616205f6678fe088802572e922e | [
"MIT"
] | null | null | null | defmodule Mint.Core.Transport do
@moduledoc false
@type error() :: {:error, %Mint.TransportError{}}
alias Mint.Types
@callback connect(host :: String.t(), port :: :inet.port_number(), opts :: keyword()) ::
{:ok, Types.socket()} | error()
@callback upgrade(
Types.socket(),
... | 32.441176 | 92 | 0.573889 |
79aff478960641c55129323d6d25ffc2e93e0f5d | 253 | ex | Elixir | lib/gscraper.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | lib/gscraper.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | 25 | 2021-03-23T07:27:21.000Z | 2021-10-31T15:09:52.000Z | lib/gscraper.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | defmodule Gscraper do
@moduledoc """
Gscraper 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 |
79b01376097d19b742b4f463fcba6180e3f58dab | 1,570 | ex | Elixir | lib/console/functions/functions.ex | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | null | null | null | lib/console/functions/functions.ex | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | null | null | null | lib/console/functions/functions.ex | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | null | null | null | defmodule Console.Functions do
import Ecto.Query, warn: false
alias Console.Repo
alias Console.Functions.Function
alias Console.Organizations.Organization
def get_function!(organization, id) do
Repo.get_by!(Function, [id: id, organization_id: organization.id])
end
def get_function(organization, id... | 27.068966 | 95 | 0.687898 |
79b01798ecd9b1bacb2c6fc2f40136849ffd9698 | 231 | ex | Elixir | apps/core/lib/core/struct/trade_event.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | apps/core/lib/core/struct/trade_event.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | apps/core/lib/core/struct/trade_event.ex | itsemilano/orbex | 301dfaad1369acfd68055f1868d9a1dcd7e51e16 | [
"Apache-2.0"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | defmodule Core.Struct.TradeEvent do
defstruct [
:event_type,
:event_time,
:symbol,
:trade_id,
:price,
:quantity,
:buyer_order_id,
:seller_order_id,
:trade_time,
:buyer_market_maker
]
end
| 15.4 | 35 | 0.636364 |
79b02006f8c3f3080c4da23235028076e1fc4f4d | 196 | ex | Elixir | lib/canard.ex | Nax/canard | 6db5b1fe98a7c351339047949be0b59fef407e7d | [
"BSD-3-Clause"
] | 1 | 2019-02-16T11:35:37.000Z | 2019-02-16T11:35:37.000Z | lib/canard.ex | Nax/canard | 6db5b1fe98a7c351339047949be0b59fef407e7d | [
"BSD-3-Clause"
] | null | null | null | lib/canard.ex | Nax/canard | 6db5b1fe98a7c351339047949be0b59fef407e7d | [
"BSD-3-Clause"
] | null | null | null | defmodule Canard do
@moduledoc """
Documentation for Canard.
"""
@doc """
Hello world.
## Examples
iex> Canard.hello()
:world
"""
def hello do
:world
end
end
| 10.315789 | 27 | 0.556122 |
79b03800917d7fc2357a1d690a5c5b4e6e34a6c9 | 32,594 | ex | Elixir | lib/elixir/lib/module.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | defmodule Module do
@moduledoc ~S'''
Provides functions to deal with modules during compilation time.
It allows a developer to dynamically add, delete and register
attributes, attach documentation and so forth.
After a module is compiled, using many of the functions in
this module will raise errors, since... | 29.153846 | 164 | 0.638246 |
79b0524a54365b9384009fe8a15bc085f3182603 | 1,532 | ex | Elixir | lib/xdr/transactions/operations/manage_offer.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/operations/manage_offer.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/operations/manage_offer.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.ManageOffer do
@moduledoc """
Representation of Stellar `ManageOffer` type.
"""
alias StellarBase.XDR.{OfferEntry, Void}
alias StellarBase.XDR.Operations.ManageOfferEffect
@behaviour XDR.Declaration
@arms [
MANAGE_OFFER_CREATED: OfferEntry,
MANAGE_OFFER_UPDAT... | 24.31746 | 73 | 0.658616 |
79b05e263b56d4639b3b7c69b83b4ca0bae0a429 | 718 | ex | Elixir | lib/p7.ex | joekain/ds_p7 | 8ad22fca2d40897314c74b5cc0e3f62e59970000 | [
"MIT"
] | 1 | 2017-06-18T19:06:48.000Z | 2017-06-18T19:06:48.000Z | lib/p7.ex | joekain/ds_p7 | 8ad22fca2d40897314c74b5cc0e3f62e59970000 | [
"MIT"
] | null | null | null | lib/p7.ex | joekain/ds_p7 | 8ad22fca2d40897314c74b5cc0e3f62e59970000 | [
"MIT"
] | null | null | null | defmodule P7 do
use Application
def pool_name, do: :p7_pool
defp poolboy_config do
[
{:name, {:local, pool_name}},
{:worker_module, P7.Worker},
{:size, 5},
{:max_overflow, 10}
]
end
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on ... | 23.933333 | 67 | 0.662953 |
79b065d123c24976c2e50a2639009875cdc058ee | 1,910 | ex | Elixir | lib/docusign/model/document.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/document.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/document.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.Document do
@moduledoc """
A document object.
"""
@derive [Poison.Encoder]
defstruct [
:applyAnchorTabs,
:author... | 26.901408 | 77 | 0.597906 |
79b0771d54aacee5b564e532ec6fafb8a182b871 | 1,298 | ex | Elixir | test/support/worker.ex | cdesch/horde | 6a47e90df5755cca51d6a80705b7d49be6bd4ea2 | [
"MIT"
] | 1,026 | 2018-05-15T13:46:58.000Z | 2022-03-24T02:59:54.000Z | test/support/worker.ex | cdesch/horde | 6a47e90df5755cca51d6a80705b7d49be6bd4ea2 | [
"MIT"
] | 191 | 2018-06-04T09:39:37.000Z | 2022-03-30T07:04:31.000Z | test/support/worker.ex | cdesch/horde | 6a47e90df5755cca51d6a80705b7d49be6bd4ea2 | [
"MIT"
] | 109 | 2018-06-07T07:18:26.000Z | 2022-03-21T21:37:21.000Z | defmodule Worker do
require Logger
defstruct name: "",
state: ""
def state(name) do
GenServer.call(via_tuple(name), :state)
end
def set_state(pid, state) when is_pid(pid) do
GenServer.call(pid, {:set_state, state})
end
def set_state(name, state) do
GenServer.call(via_tuple(name... | 21.633333 | 65 | 0.637904 |
79b07a0c8233f7954aba74c9f12434a1a9f6870a | 1,876 | exs | Elixir | test/validate_test.exs | nobuyo/json-typedef-elixir | c7bf06063f5f33bb926730cc50d49c67519948bf | [
"MIT"
] | 1 | 2021-04-18T05:05:09.000Z | 2021-04-18T05:05:09.000Z | test/validate_test.exs | nobuyo/json-typedef-elixir | c7bf06063f5f33bb926730cc50d49c67519948bf | [
"MIT"
] | null | null | null | test/validate_test.exs | nobuyo/json-typedef-elixir | c7bf06063f5f33bb926730cc50d49c67519948bf | [
"MIT"
] | null | null | null | defmodule ValidateTest do
use ExUnit.Case
ExUnit.Case.register_attribute(__MODULE__, :fixtures, accumulate: true)
@skipped_tests [
# DateTime.from_iso8601 does not supports this format
"timestamp type schema - 1990-12-31T23:59:60Z",
"timestamp type schema - 1990-12-31T15:59:60-08:00",
# Elixir's... | 31.79661 | 136 | 0.639659 |
79b07e8ee815b142be26d75aabf22e2085b4809f | 53,989 | ex | Elixir | lib/aws/api_gateway.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/api_gateway.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/api_gateway.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.APIGateway do
@moduledoc """
Amazon API Gateway
Amazon API Gateway helps developers deliver robust, secure, and scalable
mobile and web application back ends. API Gateway allows developer... | 31.795642 | 171 | 0.642298 |
79b0a336873583ede7098f725c7e35ea7e789235 | 10,667 | exs | Elixir | test/lib/secretsmanger_test.exs | ex-aws/ex_aws_secretsmanager | cdc528b1eb90ada9aa7268660feb74d1389a6740 | [
"MIT",
"Unlicense"
] | 5 | 2019-05-02T19:10:02.000Z | 2021-07-13T14:58:18.000Z | test/lib/secretsmanger_test.exs | ex-aws/ex_aws_secretsmanager | cdc528b1eb90ada9aa7268660feb74d1389a6740 | [
"MIT",
"Unlicense"
] | 3 | 2018-07-25T14:37:52.000Z | 2019-02-28T16:57:23.000Z | test/lib/secretsmanger_test.exs | ex-aws/ex_aws_secretsmanager | cdc528b1eb90ada9aa7268660feb74d1389a6740 | [
"MIT",
"Unlicense"
] | 5 | 2018-06-21T22:41:55.000Z | 2021-05-26T12:08:40.000Z | defmodule ExAws.SecretsManagerTest do
use ExUnit.Case, async: true
alias ExAws.Operation.JSON
alias ExAws.SecretsManager
test "Cancel Rotating Secret" do
assert %JSON{
before_request: nil,
data: %{"SecretId" => "secret-id"},
headers: [
{"x-amz-target",... | 32.226586 | 79 | 0.45158 |
79b0a9f8466209f89d081db1565c2801d7c54d37 | 283 | exs | Elixir | priv/repo/migrations/20210820084006_add_earned_point_resolution_time_submitted_at_to_answers.exs | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 2 | 2021-06-29T02:22:28.000Z | 2022-02-15T06:32:15.000Z | priv/repo/migrations/20210820084006_add_earned_point_resolution_time_submitted_at_to_answers.exs | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 14 | 2021-05-06T04:27:19.000Z | 2021-08-24T11:15:33.000Z | priv/repo/migrations/20210820084006_add_earned_point_resolution_time_submitted_at_to_answers.exs | nimblehq/codewar-web | 5038bc09d4fc42f6be0737857a4c053ff42463f1 | [
"MIT"
] | 1 | 2021-08-20T07:50:19.000Z | 2021-08-20T07:50:19.000Z | defmodule Codewar.Repo.Migrations.AddEarnedPointResolutionTimeSubmittedAtToAnswers do
use Ecto.Migration
def change do
alter table(:answers) do
add :earned_point, :integer
add :resolution_time, :integer
add :submitted_at, :naive_datetime
end
end
end
| 23.583333 | 85 | 0.745583 |
79b0c7c1a775e3d3e89f002a3b291117e37a0f2a | 11,124 | ex | Elixir | apps/evm/lib/evm/operation/system.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/evm/lib/evm/operation/system.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/evm/lib/evm/operation/system.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule EVM.Operation.System do
alias EVM.AccountRepo
alias EVM.BlockHeaderInfo
alias EVM.{
Address,
ExecEnv,
Gas,
MachineState,
Memory,
MessageCall,
Operation,
Stack,
SubState
}
@dialyzer {:no_return, callcode: 2}
@doc """
Create a new account with associated code... | 31.247191 | 132 | 0.668195 |
79b0e35c63c958e90b4c1c15ecbc0524ae27bde0 | 720 | exs | Elixir | apps/elixir_ls_debugger/mix.exs | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/mix.exs | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/mix.exs | E14/elixir-ls | bfa468117d853a30e36e2d3009b7b755e2fca6bf | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.Debugger.Mixfile do
use Mix.Project
def project do
[
app: :elixir_ls_debugger,
version: "0.6.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: ">= 1.8.0",
build_... | 22.5 | 82 | 0.594444 |
79b0f0ddef9d75ba1f126d3cd384effefaf870f9 | 581 | exs | Elixir | config/config.exs | 0nkery/vigilant-octo-memory | 25d7e7e35ba4c433339d3fb23edf2bef8d471d98 | [
"MIT"
] | null | null | null | config/config.exs | 0nkery/vigilant-octo-memory | 25d7e7e35ba4c433339d3fb23edf2bef8d471d98 | [
"MIT"
] | 5 | 2018-10-29T10:10:15.000Z | 2021-06-25T15:15:48.000Z | config/config.exs | 0nkery/vigilant-octo-memory | 25d7e7e35ba4c433339d3fb23edf2bef8d471d98 | [
"MIT"
] | null | null | null | use Mix.Config
config :twitter_feed, TwitterFeed.Repo,
adapter: Ecto.Adapters.Postgres,
database: "twitter_feed_repo",
username: "postgres",
password: "pass",
hostname: "db",
pool_size: 8
config :twitter_feed,
ecto_repos: [TwitterFeed.Repo],
twitter_client: TwitterFeed.TwitterClient
config :twittex,
... | 26.409091 | 61 | 0.765921 |
79b105088df3fcf985785b275e0f1ea8b5f0fb39 | 10,032 | exs | Elixir | test/unit/storage_migrator_test.exs | szTheory/ecto_mnesia | 9d1fd3b2845ac3c2c12c669d68198dff9e82a322 | [
"MIT"
] | 245 | 2016-10-22T14:43:36.000Z | 2022-02-28T03:46:27.000Z | test/unit/storage_migrator_test.exs | KushanChamindu/ecto_mnesia | bc0fb46d210eb1be63bcc8f0383212f0633b8c52 | [
"MIT"
] | 80 | 2016-10-22T16:09:19.000Z | 2021-03-03T10:45:01.000Z | test/unit/storage_migrator_test.exs | KushanChamindu/ecto_mnesia | bc0fb46d210eb1be63bcc8f0383212f0633b8c52 | [
"MIT"
] | 53 | 2016-12-03T14:23:05.000Z | 2021-07-01T01:55:22.000Z | defmodule EctoMnesia.Storage.MigratorTest do
use ExUnit.Case, async: true
require Logger
alias :mnesia, as: Mnesia
alias Ecto.Migration.{Table, Index}
alias EctoMnesia.Storage.Migrator
alias EctoMnesia.Table, as: MnesiaTable
@test_table_name :migration_test_table
@test_record_key 1
defp run_migrati... | 30.962963 | 120 | 0.592703 |
79b11172ec838ed4b58ee772ab3a5d8c797b9c09 | 889 | ex | Elixir | banking_challenge_stone_umbrella/apps/banking_challenge/lib/banking_challenge/transactions/schemas/transaction.ex | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/apps/banking_challenge/lib/banking_challenge/transactions/schemas/transaction.ex | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/apps/banking_challenge/lib/banking_challenge/transactions/schemas/transaction.ex | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | defmodule BankingChallenge.Transactions.Schemas.Transaction do
@moduledoc """
Database schema representation of transaction table
"""
use Ecto.Schema
alias BankingChallenge.Accounts.Schemas.Account
import Ecto.Changeset
@required_fields [:from_account_id, :amount]
@optional_fields [:to_account_id]
... | 22.794872 | 82 | 0.737908 |
79b12977d5f77b0fcb8642c89aaaf8cb66541f89 | 6,710 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/balance_controller_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/test/admin_api/v1/controllers/balance_controller_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/test/admin_api/v1/controllers/balance_controller_test.exs | 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 ... | 31.800948 | 109 | 0.630104 |
79b16847cb43961151c4f7ad20d947842a2e2324 | 11,338 | ex | Elixir | lib/logical_file.ex | mmower/logical_file | 333756092360d36201ceff73df4a94faf5ff3402 | [
"Apache-2.0"
] | null | null | null | lib/logical_file.ex | mmower/logical_file | 333756092360d36201ceff73df4a94faf5ff3402 | [
"Apache-2.0"
] | null | null | null | lib/logical_file.ex | mmower/logical_file | 333756092360d36201ceff73df4a94faf5ff3402 | [
"Apache-2.0"
] | null | null | null | defmodule LogicalFile do
alias LogicalFile.{Macro, Section}
@moduledoc """
## LogicalFile
### One file from many
LogicalFile is a way of creating a logical representation of a unit of lines
of text (e.g. a source code file) supplied by one or more backing files,
presumably separate files on disk. It al... | 33.152047 | 105 | 0.656553 |
79b181a317c3eea4e85515ded9a0e5702525f410 | 1,811 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_definition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_definition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/segment_definition.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... | 36.959184 | 182 | 0.760353 |
79b18bd818783763da01268b27350adc39fafdb4 | 1,298 | ex | Elixir | lib/parser/option_struct.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/parser/option_struct.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/parser/option_struct.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Parser.Messages.OptionStruct do
use CWMP.Protocol.ParserHelpers
alias CWMP.Protocol.Messages.OptionStruct
def initial_acc do
%OptionStruct{}
end
def end_element(state, ['OptionName']) do
update_acc(state, fn cur -> %OptionStruct{cur | option_name: state.last_text} end)
end
... | 34.157895 | 120 | 0.709553 |
79b1a53cab600e959d35e2edbcf17fd488c37357 | 2,060 | ex | Elixir | lib/helper/command.ex | n0isiv/fintex | 69607096cc9c216c81e51ca3053ff30fac01964c | [
"MIT"
] | null | null | null | lib/helper/command.ex | n0isiv/fintex | 69607096cc9c216c81e51ca3053ff30fac01964c | [
"MIT"
] | null | null | null | lib/helper/command.ex | n0isiv/fintex | 69607096cc9c216c81e51ca3053ff30fac01964c | [
"MIT"
] | null | null | null | defmodule FinTex.Helper.Command do
@moduledoc false
alias FinTex.Model.Dialog
import Logger
defmacro __using__(_) do
quote do
alias FinTex.Helper.Command
alias FinTex.Model.Dialog
import Command
import Logger
end
end
def validate!(valid_object) do
# if valid_object do... | 24.52381 | 91 | 0.61165 |
79b1a5a285613b489cd49d52c6f69cf56df29b4e | 1,131 | exs | Elixir | test/file_store/middleware/errors_test.exs | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 17 | 2019-10-11T05:50:28.000Z | 2022-01-25T23:28:02.000Z | test/file_store/middleware/errors_test.exs | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 8 | 2019-10-25T04:19:42.000Z | 2022-01-27T02:32:47.000Z | test/file_store/middleware/errors_test.exs | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 3 | 2019-10-25T02:30:22.000Z | 2022-01-24T21:24:08.000Z | defmodule FileStore.Middleware.ErrorsTest do
use FileStore.AdapterCase
@config [base_url: "http://localhost:4000"]
setup do
start_supervised!(FileStore.Adapters.Memory)
store = FileStore.Adapters.Memory.new(@config)
store = FileStore.Middleware.Errors.new(store)
{:ok, store: store}
end
test... | 28.275 | 73 | 0.668435 |
79b1bc9780495f62f518fda64f2dacc9364f9edb | 955 | ex | Elixir | lib/ecto/query/having_builder.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/having_builder.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/having_builder.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.HavingBuilder do
@moduledoc false
alias Ecto.Query.BuilderUtil
@doc """
Builds a quoted expression.
The quoted expression should evaluate to a query at runtime.
If possible, it does all calculations at compile time to avoid
runtime work.
"""
@spec build(Macro.t, [Macro.t], Macr... | 30.806452 | 73 | 0.678534 |
79b203c71e0397a2df9b96d2723bcd4d6d837852 | 148 | ex | Elixir | examples/token_info.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | null | null | null | examples/token_info.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | 1 | 2019-08-29T23:23:08.000Z | 2019-08-29T23:23:08.000Z | examples/token_info.ex | ipfinder-io/ip-finder-elixir | 281402fc91f90291a46e0fc4e93620a4390e5c17 | [
"Apache-2.0"
] | 2 | 2019-08-29T23:19:07.000Z | 2022-02-02T03:00:16.000Z | defmodule TokenInfo do
use Ipfinder
def stats do
conf = Ipfinder.new("YOUR_TOKEN_GOES_HERE")
{:ok, status} = Ipfinder.getStatus(conf)
end
end | 21.142857 | 45 | 0.75 |
79b217d396679558794e083bc362e3546e9d41d7 | 859 | ex | Elixir | web/controllers/resource_controller.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | null | null | null | web/controllers/resource_controller.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | 5 | 2017-03-31T06:48:29.000Z | 2018-12-20T03:40:59.000Z | web/controllers/resource_controller.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | 1 | 2019-01-20T10:01:27.000Z | 2019-01-20T10:01:27.000Z | defmodule Goncord.ResourceController do
use Goncord.Web, :controller
def self_update(conn, params) do
user = Guardian.Plug.current_resource conn
resource = conn.assigns[:resource]
Goncord.UserResource.update_payload user, resource, params
conn
|> put_status(:ok)
|> put_view(Goncord.UserVi... | 23.861111 | 73 | 0.668219 |
79b2792e90b85cf705ceebdf1fcd11f32a6a91e4 | 963 | exs | Elixir | mix.exs | maltoe/eqrcode | cde803e209eb4840750a24c394a0bb397117f96a | [
"MIT"
] | null | null | null | mix.exs | maltoe/eqrcode | cde803e209eb4840750a24c394a0bb397117f96a | [
"MIT"
] | null | null | null | mix.exs | maltoe/eqrcode | cde803e209eb4840750a24c394a0bb397117f96a | [
"MIT"
] | null | null | null | defmodule EQRCode.MixProject do
use Mix.Project
def project do
[
app: :eqrcode,
version: "0.1.8",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
name: "EQRCode",
description: "Simple QRCode Generator in Elixir",
source_url: "https://github.com/SiliconJungles/eq... | 19.26 | 72 | 0.560748 |
79b27f2d0486e30baf561423dfe149e57d20ad9a | 342 | ex | Elixir | genstage_example/lib/genstage_example/producer.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | 1 | 2019-03-28T09:08:16.000Z | 2019-03-28T09:08:16.000Z | genstage_example/lib/genstage_example/producer.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | genstage_example/lib/genstage_example/producer.ex | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | defmodule GenstageExample.Producer do
use GenStage
def start_link(initial \\ 0) do
GenStage.start_link(__MODULE__, initial, name: __MODULE__)
end
def init(counter), do: {:producer, counter}
def handle_demand(demand, state) do
events = Enum.to_list(state..(state + demand - 1))
{:noreply, events,... | 26.307692 | 62 | 0.704678 |
79b29391fca52e70d17e364b3b389b4161111a4b | 1,146 | exs | Elixir | mix.exs | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | mix.exs | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | mix.exs | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | defmodule Pandemic.Mixfile do
use Mix.Project
def project do
[app: :pandemic,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps... | 27.285714 | 99 | 0.593368 |
79b295329194537fcbf5d5f6b77402e892b6574d | 5,856 | ex | Elixir | apps/robby_web/web/controllers/name_game_controller.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/web/controllers/name_game_controller.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | apps/robby_web/web/controllers/name_game_controller.ex | jeffweiss/openrobby | 9fed2024e6ce87a6fe27ef3af85558f3116aca2a | [
"Apache-2.0"
] | null | null | null | defmodule RobbyWeb.NameGameController do
use RobbyWeb.Web, :controller
alias RobbyWeb.NameGame
alias RobbyWeb.Profile
alias RobbyWeb.LdapRepo
plug :calculate_score when action in [:show]
plug :random_seed when action in [:new]
def new(conn, _) do
game = create_new_game(conn)
redirect(conn, to: ... | 34.650888 | 186 | 0.667179 |
79b2993d843ed41eb9dcac35ecbb77eca5e8962c | 56,035 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/api/projects.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/api/projects.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/api/projects.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 44.72067 | 374 | 0.657732 |
79b2c4fa93fe6728befee0eb8680273f3dd2b63b | 2,243 | ex | Elixir | lib/rediscovery/pub_sub.ex | RyanWillDev/rediscovery | ec3af767431a4cc304d9a537cfd16907c04d584f | [
"MIT"
] | 2 | 2020-10-29T08:56:48.000Z | 2020-11-02T16:12:34.000Z | lib/rediscovery/pub_sub.ex | RyanWillDev/rediscovery | ec3af767431a4cc304d9a537cfd16907c04d584f | [
"MIT"
] | null | null | null | lib/rediscovery/pub_sub.ex | RyanWillDev/rediscovery | ec3af767431a4cc304d9a537cfd16907c04d584f | [
"MIT"
] | 1 | 2021-06-15T17:03:22.000Z | 2021-06-15T17:03:22.000Z | defmodule Rediscovery.PubSub do
use GenServer
import Rediscovery.Logger
alias Rediscovery.State
def start_link(opts) do
GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(%{pubsub: pubsub, redix: redix, prefix: prefix} = opts) do
debug("PubSub: Starting")
{:ok... | 26.702381 | 107 | 0.601872 |
79b2d3d22518943d3ed9026ffef9da18f2bc691a | 157 | ex | Elixir | lib/apoc/hazmat/hash/sha384.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 6 | 2018-10-04T14:18:35.000Z | 2020-05-15T08:43:31.000Z | lib/apoc/hazmat/hash/sha384.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 3 | 2018-10-23T12:20:45.000Z | 2021-01-27T10:41:14.000Z | lib/apoc/hazmat/hash/sha384.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 2 | 2020-02-19T00:43:37.000Z | 2021-08-19T04:04:25.000Z | defmodule Apoc.Hazmat.Hash.SHA384 do
use Apoc.Adapter.Hash
@impl Apoc.Adapter.Hash
def hash!(message) do
:crypto.hash(:sha384, message)
end
end
| 17.444444 | 36 | 0.719745 |
79b2f735c853465b28ff7bf0177302d71de107ba | 698 | ex | Elixir | log-level/lib/log_level.ex | okaram/exercism-elixir | 66429a50738a16da5d352ad4455a483622625949 | [
"Unlicense"
] | null | null | null | log-level/lib/log_level.ex | okaram/exercism-elixir | 66429a50738a16da5d352ad4455a483622625949 | [
"Unlicense"
] | null | null | null | log-level/lib/log_level.ex | okaram/exercism-elixir | 66429a50738a16da5d352ad4455a483622625949 | [
"Unlicense"
] | null | null | null | defmodule LogLevel do
def to_label(level, legacy?) do
if legacy? do
case level do
0 -> :unknown
1 -> :debug
2 -> :info
3 -> :warning
4 -> :error
5 -> :unknown
level -> :unknown
end
else
case level do
0 -> :trace
1 -> :de... | 19.388889 | 44 | 0.481375 |
79b31045db36a32d00339f99d206886075790429 | 119 | exs | Elixir | apps/elixir_security_advisory_api_v1/.formatter.exs | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 5 | 2019-01-03T18:33:40.000Z | 2021-01-25T10:15:06.000Z | apps/elixir_security_advisory_api_v1/.formatter.exs | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 15 | 2018-12-27T16:59:06.000Z | 2019-01-04T17:34:38.000Z | apps/elixir_security_advisory_api_v1/.formatter.exs | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | null | null | null | [
import_deps: [:phoenix, :absinthe, :absinthe_relay],
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"]
]
| 23.8 | 59 | 0.579832 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.