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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
335331b50487bda9e26457da5acb29dccd1fe13f | 1,696 | ex | Elixir | lib/annon_api/management_api/controllers/api.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | lib/annon_api/management_api/controllers/api.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | lib/annon_api/management_api/controllers/api.ex | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.ManagementAPI.Controllers.API do
@moduledoc """
REST interface that allows to manage API's and their settings.
API is a core entity that tells what host, port, path Annon should listen.
After creating API you can assign plugins to it.
You can find full description in [REST API documentation]... | 27.803279 | 105 | 0.662146 |
33533a8662bbedac52d18e8d06a56fef1cc0d1f6 | 726 | ex | Elixir | apps/tools_2/lib/sentences_api/web/gettext.ex | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/tools_2/lib/sentences_api/web/gettext.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/tools_2/lib/sentences_api/web/gettext.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule SentencesAPI.Web.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 SentencesAPI.Web.Gettext
# Simple translation
gettex... | 29.04 | 72 | 0.68595 |
33534bcd05f270160cf170058ffcb55e53dd81c1 | 2,028 | ex | Elixir | clients/discovery/lib/google_api/discovery/v1/model/rest_method_media_upload_protocols.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/discovery/lib/google_api/discovery/v1/model/rest_method_media_upload_protocols.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/discovery/lib/google_api/discovery/v1/model/rest_method_media_upload_protocols.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 ... | 40.56 | 166 | 0.769724 |
3353556a6e2e14336f6735db2551654add12ca80 | 24,032 | ex | Elixir | conteudo/cheat_sheet.ex | victormelo/dissertation | 942bd6e57796d760e152dbfcc31745950dc3fd32 | [
"MIT"
] | 1 | 2021-02-19T15:39:48.000Z | 2021-02-19T15:39:48.000Z | conteudo/cheat_sheet.ex | victormelo/dissertation | 942bd6e57796d760e152dbfcc31745950dc3fd32 | [
"MIT"
] | null | null | null | conteudo/cheat_sheet.ex | victormelo/dissertation | 942bd6e57796d760e152dbfcc31745950dc3fd32 | [
"MIT"
] | 1 | 2021-02-19T15:39:50.000Z | 2021-02-19T15:39:50.000Z | %!TEX root = ../dissertation_vkslm.tex
\chapter{Resultados de comandos}\label{cap_exemplos}
% ---
\section{Codificação dos arquivos: UTF8}
% ---
A codificação de todos os arquivos do \abnTeX\ é \texttt{UTF8}. É necessário que
você utilize a mesma codificação nos documentos que escrever, inclusive nos
arquivos de bas... | 34.331429 | 140 | 0.754993 |
33536878db84c369b54b90f38f64ae2512f70f3f | 952 | ex | Elixir | apps/re/lib/application.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/lib/application.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/lib/application.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Application do
@moduledoc """
Application module for Re, starts supervision tree.
"""
use Application
import Supervisor.Spec
alias Re.{
BuyerLeads,
Developments,
Listings,
AlikeTeller,
Listings.History,
PubSub,
Repo,
SellerLeads
}
def start(_type, _args) ... | 20.255319 | 56 | 0.627101 |
3353a837c3c209128b767b8c5dac04c9b4879ef9 | 85 | ex | Elixir | lib/timeutils.ex | exit9/jwt-google-tokens | 8e2d97fde486dc43687d92e91b6951515fef133b | [
"Apache-2.0"
] | null | null | null | lib/timeutils.ex | exit9/jwt-google-tokens | 8e2d97fde486dc43687d92e91b6951515fef133b | [
"Apache-2.0"
] | null | null | null | lib/timeutils.ex | exit9/jwt-google-tokens | 8e2d97fde486dc43687d92e91b6951515fef133b | [
"Apache-2.0"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Jwt.TimeUtils do
def get_system_time(), do: :os.system_time(:seconds)
end | 28.333333 | 54 | 0.776471 |
3353ac72e41b79c76fdc23c13bdbad4e377c4f28 | 662 | ex | Elixir | lib/poker_hands/hand/pair.ex | fredwu/kata-poker-hands-elixir | b818ebcf73392f48280c3c1ececf60cfb0c0f016 | [
"MIT"
] | 4 | 2016-09-29T05:14:55.000Z | 2021-05-06T08:42:03.000Z | lib/poker_hands/hand/pair.ex | fredwu/kata-poker-hands-elixir | b818ebcf73392f48280c3c1ececf60cfb0c0f016 | [
"MIT"
] | null | null | null | lib/poker_hands/hand/pair.ex | fredwu/kata-poker-hands-elixir | b818ebcf73392f48280c3c1ececf60cfb0c0f016 | [
"MIT"
] | null | null | null | defmodule PokerHands.Hand.Pair do
alias PokerHands.{Hand.HighCard, Utils}
@doc """
## Examples
iex> PokerHands.Hand.Pair.valid?(
iex> PokerHands.DealtHand.init("2D 5H 6S 7D 2C")
iex> )
true
iex> PokerHands.Hand.Pair.valid?(
iex> PokerHands.DealtHand.init("2D 5H 6S 7D 8C"... | 21.354839 | 56 | 0.613293 |
3353c59225d14d1558c9947862f529f6590a7dd0 | 2,393 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/source.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... | 45.150943 | 318 | 0.748433 |
3353d58b22853d07f96043efe83e026009dba655 | 674 | ex | Elixir | lib/syn_osc/control/set_loop_left.ex | camshaft/syn_osc_ex | c7ed257f2ea772f197096d356467e812a0d5e59a | [
"MIT"
] | 1 | 2020-12-08T01:44:03.000Z | 2020-12-08T01:44:03.000Z | lib/syn_osc/control/set_loop_left.ex | camshaft/syn_osc_ex | c7ed257f2ea772f197096d356467e812a0d5e59a | [
"MIT"
] | null | null | null | lib/syn_osc/control/set_loop_left.ex | camshaft/syn_osc_ex | c7ed257f2ea772f197096d356467e812a0d5e59a | [
"MIT"
] | null | null | null | defmodule SynOSC.Control.SetLoopLeft do
defstruct id: nil,
relative: false,
beats: nil,
milliseconds: nil
end
defimpl OSC.Encoder, for: SynOSC.Control.SetLoopLeft do
use SynOSC
def encode(message, options) do
message
|> call("LOOPL")
|> set_arguments(format_argume... | 24.962963 | 107 | 0.68546 |
335404c42f12bd7baf2de6b075241d94f67e6620 | 544 | exs | Elixir | test/credo/check/readability/trailing_blank_line_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/credo/check/readability/trailing_blank_line_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/credo/check/readability/trailing_blank_line_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Readability.TrailingBlankLineTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.TrailingBlankLine
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
end
"""
|> to_source_file
|> re... | 18.758621 | 60 | 0.704044 |
33549a69e5fa360e281490488ff103aee58c32d3 | 8,393 | ex | Elixir | lib/supabase/storage.ex | relax2code/supabase-elixir | ac61175d4dbaec905139ee92489ebfccb6361f62 | [
"Apache-2.0"
] | 16 | 2021-05-17T02:19:08.000Z | 2022-03-08T10:56:09.000Z | lib/supabase/storage.ex | relax2code/supabase-elixir | ac61175d4dbaec905139ee92489ebfccb6361f62 | [
"Apache-2.0"
] | 1 | 2021-07-13T15:47:36.000Z | 2021-07-14T05:18:09.000Z | lib/supabase/storage.ex | relax2code/supabase-elixir | ac61175d4dbaec905139ee92489ebfccb6361f62 | [
"Apache-2.0"
] | 2 | 2021-07-13T11:34:34.000Z | 2021-09-09T15:31:01.000Z | defmodule Supabase.Storage do
@moduledoc """
Module to work with Supabase storage and the same API the
[storage-js](https://github.com/supabase/storage-js) client provides.
"""
alias Supabase.Connection
alias Supabase.Storage.Buckets
alias Supabase.Storage.Objects
@spec list_buckets(Supabase.Connecti... | 25.510638 | 94 | 0.629334 |
3354caf895bbeba28dbbb33760aa1988e8def764 | 2,509 | exs | Elixir | test/example/customer_test.exs | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | 1 | 2020-12-30T18:30:32.000Z | 2020-12-30T18:30:32.000Z | test/example/customer_test.exs | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | test/example/customer_test.exs | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | defmodule MongoAgile.Examples.Customer.Test do
@moduledoc false
use ExUnit.Case
doctest MongoAgile.Examples.Customer.CustomerModel
alias MongoAgile.Examples.Customer.CustomerController
alias MongoAgile.Examples.Customer.CustomerModel
test "create customer, get and remove it" do
pep = CustomerModel.con... | 34.847222 | 106 | 0.657633 |
3354e394842dd007a585959e541b8295ca6e77db | 14,857 | ex | Elixir | lib/google/protobuf/descriptor.pb.ex | arctic-grpc/protobuf | 228e1a2912af7b7f7f49ef871e43dd6b886f6675 | [
"MIT"
] | null | null | null | lib/google/protobuf/descriptor.pb.ex | arctic-grpc/protobuf | 228e1a2912af7b7f7f49ef871e43dd6b886f6675 | [
"MIT"
] | null | null | null | lib/google/protobuf/descriptor.pb.ex | arctic-grpc/protobuf | 228e1a2912af7b7f7f49ef871e43dd6b886f6675 | [
"MIT"
] | null | null | null | defmodule Google.Protobuf.FieldDescriptorProto.Type do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.9.0-dev", syntax: :proto2
field :TYPE_DOUBLE, 1
field :TYPE_FLOAT, 2
field :TYPE_INT64, 3
field :TYPE_UINT64, 4
field :TYPE_INT32, 5
field :TYPE_FIXED64, 6
field :TYPE_FIXED... | 37.049875 | 97 | 0.752575 |
3355331010d3a3753d071e4c2586636f0bfe3b36 | 1,042 | ex | Elixir | apps/day13/lib/day13.ex | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day13/lib/day13.ex | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day13/lib/day13.ex | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | defmodule Day13 do
@moduledoc "Day 13: Packet Scanners"
def part1(input) do
input
|> to_int_tuple
|> Enum.reduce(0, &next_scanner/2)
end
def part2(input) do
input
|> to_int_tuple
|> Enum.into(%{})
|> wait
end
defp to_int_tuple(input) do
input
|> Enum.map(& String.split... | 20.431373 | 78 | 0.584453 |
3355360f9f66766c4d55d4d4f46124e34713ab39 | 245 | exs | Elixir | .formatter.exs | patricklafleur/phoenix-live-props | a93e364cf1d83fba276fa000da0bd11d145c6a32 | [
"MIT"
] | 11 | 2020-07-02T17:02:18.000Z | 2021-10-31T11:27:53.000Z | .formatter.exs | patricklafleur/phoenix-live-props | a93e364cf1d83fba276fa000da0bd11d145c6a32 | [
"MIT"
] | null | null | null | .formatter.exs | patricklafleur/phoenix-live-props | a93e364cf1d83fba276fa000da0bd11d145c6a32 | [
"MIT"
] | 1 | 2021-01-04T20:29:07.000Z | 2021-01-04T20:29:07.000Z | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [prop: 2, prop: 3, state: 2, state: 3],
export: [
locals_without_parens: [prop: 2, prop: 3, state: 2, state: 3]
]
]
| 27.222222 | 70 | 0.595918 |
33555c2be120ab11c30b0ba60661cc9b85791bb0 | 568 | exs | Elixir | MixProject/help/test/help_web/views/error_view_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | MixProject/help/test/help_web/views/error_view_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | MixProject/help/test/help_web/views/error_view_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | defmodule HelpWeb.ErrorViewTest do
use HelpWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(HelpWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
... | 25.818182 | 66 | 0.676056 |
335567ffbdffb850f24037b6fe06dd85800317a6 | 209 | exs | Elixir | priv/repo/migrations/20170805032719_add_flags_to_users.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20170805032719_add_flags_to_users.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20170805032719_add_flags_to_users.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.AddFlagsToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :flags, {:array, :string}, default: fragment("'{}'"), null: false
end
end
end
| 20.9 | 75 | 0.669856 |
33556d20f9106549af62ffe891856312fd7f59b9 | 1,246 | ex | Elixir | apps/rig/lib/rig/jwt/claims.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | apps/rig/lib/rig/jwt/claims.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | apps/rig/lib/rig/jwt/claims.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RIG.JWT.Claims do
@moduledoc "Read JSON Web Tokens."
alias Joken
@type token :: String.t()
@type claims :: %{optional(String.t()) => String.t()}
@type jwt_conf :: %{alg: String.t(), key: String.t()}
# ---
@doc "Obtain JWT claims by parsing and validating a token."
@spec from(token, jwt_con... | 24.92 | 82 | 0.601926 |
33558a8d920d865adc6c87dafcf15dfb3a881888 | 1,779 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/web_server_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/web_server_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/web_server_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.851064 | 401 | 0.75267 |
3355a19cdc707e658fbf6077fc71be5d51fd0791 | 8,321 | ex | Elixir | apps/neoscan_web/lib/neoscan_web/api.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan_web/lib/neoscan_web/api.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan_web/lib/neoscan_web/api.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | defmodule NeoscanWeb.Api do
@moduledoc """
Main API for accessing data from the explorer.
All data is provided through GET requests in `/api/main_net/v1`.
Testnet isn't currently available.
"""
@total_neo 100_000_000
alias Neoscan.Blocks
alias Neoscan.BlocksCache
alias Neoscan.Counters
alias... | 32.377432 | 96 | 0.664584 |
3355b0161937471d8e232b381a9e3d5f4e730cde | 1,631 | ex | Elixir | lib/ex_oneroster/web/endpoint.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | lib/ex_oneroster/web/endpoint.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | lib/ex_oneroster/web/endpoint.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.Web.Endpoint do
use Phoenix.Endpoint, otp_app: :ex_oneroster
socket "/socket", ExOneroster.Web.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.
... | 29.654545 | 93 | 0.720417 |
3355dcbbff99c04d6e2de659aa2338999df39738 | 452 | exs | Elixir | config/test.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 4 | 2020-05-05T18:37:28.000Z | 2022-01-05T00:56:19.000Z | config/test.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 21 | 2019-12-01T15:32:02.000Z | 2019-12-19T13:10:36.000Z | config/test.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 2 | 2020-09-12T16:07:11.000Z | 2020-12-11T06:46:45.000Z | import Config
# Configure your database
config :bankapi, Bank.Repo,
username: "postgres",
password: "postgres",
database: "bankapi_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :bankapi,... | 23.789474 | 56 | 0.730088 |
33563018a9ad67d8b4943d2412d05c19c2f4a46c | 2,818 | ex | Elixir | clients/sts/lib/google_api/sts/v1/model/google_identity_sts_v1_exchange_token_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sts/lib/google_api/sts/v1/model/google_identity_sts_v1_exchange_token_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sts/lib/google_api/sts/v1/model/google_identity_sts_v1_exchange_token_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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... | 47.762712 | 363 | 0.735273 |
33564aae007ee453bc440bae1036efd4182af675 | 1,538 | exs | Elixir | mix.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | mix.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | mix.exs | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.MixProject do
use Mix.Project
@version "0.3.2"
def project do
[
app: :surface,
version: @version,
elixir: "~> 1.8",
description: "A component based library for Phoenix LiveView",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compi... | 23.30303 | 78 | 0.552016 |
3356531f01ab8cb897e321c57cc426832bd1f0b6 | 2,768 | ex | Elixir | lib/livebook_web/live/output/stdout_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 657 | 2021-07-15T07:38:37.000Z | 2022-03-31T16:47:48.000Z | lib/livebook_web/live/output/stdout_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 411 | 2021-07-15T07:41:54.000Z | 2022-03-31T21:34:22.000Z | lib/livebook_web/live/output/stdout_component.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 112 | 2021-07-16T02:13:21.000Z | 2022-03-30T01:25:08.000Z | defmodule LivebookWeb.Output.StdoutComponent do
use LivebookWeb, :live_component
@impl true
def mount(socket) do
{:ok, assign(socket, modifiers: [], last_line: nil, last_html_line: nil),
temporary_assigns: [html_lines: []]}
end
@impl true
def update(assigns, socket) do
{text, assigns} = Map.p... | 33.756098 | 123 | 0.607659 |
33567d10f8149fd2f1a1ed710ad4409245adf80d | 6,066 | ex | Elixir | apps/admin_api/lib/admin_api/v1/controllers/api_key_controller.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/controllers/api_key_controller.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/controllers/api_key_controller.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 ... | 32.438503 | 85 | 0.632872 |
3356810c69924f80d3729d7256467206676234d1 | 1,021 | exs | Elixir | Elixir/Phoenix/chirp/config/config.exs | Jac21/GistsCollection | 4200b0cecf00af443711ca127028fccbbe8cfbf5 | [
"MIT"
] | 5 | 2015-09-11T15:02:54.000Z | 2020-10-14T05:16:18.000Z | Elixir/Phoenix/chirp/config/config.exs | Jac21/GistsCollection | 4200b0cecf00af443711ca127028fccbbe8cfbf5 | [
"MIT"
] | 21 | 2019-12-28T11:18:09.000Z | 2022-01-02T10:32:36.000Z | Elixir/Phoenix/chirp/config/config.exs | Jac21/GistsCollection | 4200b0cecf00af443711ca127028fccbbe8cfbf5 | [
"MIT"
] | 2 | 2016-11-07T23:16:56.000Z | 2020-10-14T05:16:49.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.
# General application configuration
use Mix.Config
config :chirp,
ecto_repos: [Chirp.Repo]
# Con... | 31.90625 | 86 | 0.763957 |
335693f206b4f251ca6077516d7cae0c139e5ad8 | 722 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/72.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/72.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set1/TrainingInstances/72.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
noun cm noun neg demonstrative;
cm nst noun neg demonstrative;
noun cm noun verb demonstrative;
nst particle noun neg demonstrative;
noun cm noun neg demonstrative;
noun cm noun neg demonstrative;
pn ordinal adjective noun demonstrative;
SYM SYM particle noun pn;
noun cm noun verb pn;
verb c... | 28.88 | 41 | 0.777008 |
335695ae32397aac9bc355797fe6fdc8cb7e36bf | 1,104 | ex | Elixir | lib/mix/tasks/esbuild.install.ex | BlueSlimee/esbuild | 46003b5f9f424bdc9824a7a4f3b3830211617654 | [
"MIT"
] | null | null | null | lib/mix/tasks/esbuild.install.ex | BlueSlimee/esbuild | 46003b5f9f424bdc9824a7a4f3b3830211617654 | [
"MIT"
] | null | null | null | lib/mix/tasks/esbuild.install.ex | BlueSlimee/esbuild | 46003b5f9f424bdc9824a7a4f3b3830211617654 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Esbuild.Install do
@moduledoc """
Installs esbuild under `_build`.
```bash
$ mix esbuild.install
$ mix esbuild.install --if-missing
```
By default, it installs #{Esbuild.latest_version()} but you
can configure it in your config files, such as:
config :esbuild, :version, "#{E... | 24 | 85 | 0.604167 |
3356b01898be44c2700dcd5c098a24a09d655a4b | 48 | exs | Elixir | test/learn_kit_test.exs | davidrichey/elixir_learn_kit | 4f79d052ffca7bf45f5fa887607710fa50689307 | [
"MIT"
] | 28 | 2018-11-12T13:46:08.000Z | 2022-02-09T14:05:15.000Z | test/learn_kit_test.exs | Kinyugo/elixir_learn_kit | 4f79d052ffca7bf45f5fa887607710fa50689307 | [
"MIT"
] | 2 | 2019-01-08T05:54:58.000Z | 2020-03-12T10:06:26.000Z | test/learn_kit_test.exs | Kinyugo/elixir_learn_kit | 4f79d052ffca7bf45f5fa887607710fa50689307 | [
"MIT"
] | 4 | 2018-12-23T14:35:26.000Z | 2019-11-28T08:45:30.000Z | defmodule LearnKitTest do
use ExUnit.Case
end
| 12 | 25 | 0.8125 |
3356ccd21bb7923e16703c42dfe26b1c5b4fd536 | 7,617 | ex | Elixir | lib/catalog_api/address/iso_3166.ex | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 2 | 2018-03-03T18:23:07.000Z | 2018-05-03T00:36:02.000Z | lib/catalog_api/address/iso_3166.ex | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 1 | 2018-03-04T17:55:11.000Z | 2018-03-04T17:55:11.000Z | lib/catalog_api/address/iso_3166.ex | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | null | null | null | defmodule CatalogApi.Address.Iso3166 do
@moduledoc false
@doc false
@spec validate(any()) :: :ok | :error
def validate("AB"), do: :ok
def validate("AD"), do: :ok
def validate("AE"), do: :ok
def validate("AF"), do: :ok
def validate("AG"), do: :ok
def validate("AI"), do: :ok
def validate("AL"), do: :... | 29.638132 | 39 | 0.56899 |
3356e9512d7e04f4a2b486166b76abb191900be4 | 5,392 | ex | Elixir | lib/phoenix/controller.ex | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller do
import Phoenix.Controller.Connection
alias Plug.MIME
alias Phoenix.Plugs
alias Phoenix.View
@default_content_type "text/html"
@plug_default_mime_type "application/octet-stream"
@layout_extension_types ["html"]
@moduledoc """
Phoenix Controllers are responsible for han... | 28.378947 | 88 | 0.669696 |
3356eb11e24c362a6c8eae4b7f8705e6ea794c6f | 378 | exs | Elixir | day23/test/day23_test.exs | bjorng/advent-of-code-2019 | b3612eefb5097f07ae139b5b7c637fabd3c86bef | [
"Apache-2.0"
] | 5 | 2019-12-08T05:14:27.000Z | 2020-10-26T04:06:22.000Z | day23/test/day23_test.exs | bjorng/advent-of-code-2019 | b3612eefb5097f07ae139b5b7c637fabd3c86bef | [
"Apache-2.0"
] | 1 | 2019-12-22T18:20:36.000Z | 2019-12-22T19:06:48.000Z | day23/test/day23_test.exs | bjorng/advent-of-code-2019 | b3612eefb5097f07ae139b5b7c637fabd3c86bef | [
"Apache-2.0"
] | null | null | null | defmodule Day23Test do
use ExUnit.Case
doctest Day23
test "part 1 with my input" do
assert Day23.part1(input()) == 21160
end
test "part 2 with my input" do
# 14334 is too high
# 14329 is too high
assert Day23.part2(input()) == 14327
end
defp input do
File.read!('input.txt')
|> S... | 16.434783 | 40 | 0.613757 |
33571c7b5ffa031adad697e52ac0df0503f73ee8 | 180 | exs | Elixir | test/test_helper.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | test/test_helper.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | test/test_helper.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | Code.require_file "plug_helper.exs", __DIR__
Logger.configure(level: :debug)
Logger.configure_backend(:console, colors: [enabled: false])
Mix.shell(Mix.Shell.Process)
ExUnit.start
| 30 | 60 | 0.8 |
335742ad83050ebaf83b8a8acd3dfcb4c424ae39 | 388 | ex | Elixir | chromoid_web/lib/chromoid/schedule/registry.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/lib/chromoid/schedule/registry.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/lib/chromoid/schedule/registry.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.Schedule.Registry do
@moduledoc "Wrapper around Elixir.Registry to track names of stages in a guild"
@doc false
def child_spec(_) do
Registry.child_spec(name: __MODULE__, keys: :unique)
end
@doc "Dynamic name generation"
def via(%Chromoid.Schedule{id: id}, module) do
{:via, Regi... | 27.714286 | 81 | 0.726804 |
33574ed5fe2c00b2e7e52dfedd6466c9b78b41e7 | 101 | exs | Elixir | config/config.exs | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | 1 | 2020-01-19T04:55:09.000Z | 2020-01-19T04:55:09.000Z | config/config.exs | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | null | null | null | config/config.exs | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | 1 | 2019-11-05T19:06:55.000Z | 2019-11-05T19:06:55.000Z | use Mix.Config
config :swoosh, :json_library, Jason
config :bypass, adapter: Plug.Adapters.Cowboy2
| 16.833333 | 46 | 0.782178 |
335751b6a11b5de5a2995a27022d798f7e6a4a1c | 651 | ex | Elixir | apps/site/lib/vehicle_helpers/vehicle_tooltip.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/vehicle_helpers/vehicle_tooltip.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/vehicle_helpers/vehicle_tooltip.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule VehicleTooltip do
@moduledoc """
Represents a vehicle with its associated status information, used to render tooltips on schedule and
line representations
"""
alias Vehicles.Vehicle
alias Predictions.Prediction
alias Routes.Route
alias Schedules.Trip
defstruct vehicle: %Vehicle{},
... | 26.04 | 102 | 0.600614 |
33575740173feb17f0ef1728f28d13a4a83851f7 | 3,289 | exs | Elixir | web_finngen_r8/config/prod.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/config/prod.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/config/prod.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 34.621053 | 158 | 0.719064 |
33578f6e460fb924d5b6edce3221a87a9c1ad909 | 964 | ex | Elixir | lib/mango_web/router.ex | sophiabrandt/mango | c42c2e463c7bdeb7f18400a3001a8cc6e326159d | [
"MIT"
] | 4 | 2019-07-17T04:46:37.000Z | 2020-09-20T14:15:23.000Z | lib/mango_web/router.ex | sophiabrandt/mango | c42c2e463c7bdeb7f18400a3001a8cc6e326159d | [
"MIT"
] | null | null | null | lib/mango_web/router.ex | sophiabrandt/mango | c42c2e463c7bdeb7f18400a3001a8cc6e326159d | [
"MIT"
] | 1 | 2019-07-17T04:46:39.000Z | 2019-07-17T04:46:39.000Z | defmodule MangoWeb.Router do
use MangoWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug MangoWeb.Plugs.LoadCustomer
plug MangoWeb.Plugs.FetchCart
end
pipeline :api do
... | 25.368421 | 54 | 0.684647 |
3357941fd7a572e56244ce13939c0e7d75386d91 | 5,375 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 41.992188 | 185 | 0.707163 |
3357a20f24b027f1e10625234d6fbd832b736f67 | 451 | ex | Elixir | test/support/fixtures/accounts_fixtures.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/support/fixtures/accounts_fixtures.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | test/support/fixtures/accounts_fixtures.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | defmodule Philopets.AccountsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Philopets.Accounts` context.
"""
@doc """
Generate a account.
"""
def account_fixture(attrs \\ %{}) do
{:ok, account} =
attrs
|> Enum.into(%{
ntag: "0000",
... | 19.608696 | 48 | 0.600887 |
3357ae7f8a13ce921f1318493caf6ce23eb5f196 | 810 | ex | Elixir | lib/channel_benchmarker/application.ex | VoiceLayer/channel_benchmarker | 75a610b5d252b7d396875094f6d0c4e687f01b22 | [
"MIT"
] | 1 | 2017-10-10T20:02:06.000Z | 2017-10-10T20:02:06.000Z | lib/channel_benchmarker/application.ex | VoiceLayer/channel_benchmarker | 75a610b5d252b7d396875094f6d0c4e687f01b22 | [
"MIT"
] | null | null | null | lib/channel_benchmarker/application.ex | VoiceLayer/channel_benchmarker | 75a610b5d252b7d396875094f6d0c4e687f01b22 | [
"MIT"
] | null | null | null | defmodule ChannelBenchmarker.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be superv... | 33.75 | 90 | 0.734568 |
3357cc9b49ced45bb48d5655e99ab76e980e0fd2 | 1,668 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/list_operations_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/list_operations_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/list_operations_response.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.36 | 125 | 0.758393 |
3357db1a79c33f5674eff895085ed66a9cb001d5 | 985 | ex | Elixir | test/support/conn_case.ex | markevich/travel | f6f7dd7dd459149926c305984685d91ca1376f77 | [
"MIT"
] | 4 | 2016-11-01T14:59:33.000Z | 2016-11-01T15:05:57.000Z | test/support/conn_case.ex | markevich/travel | f6f7dd7dd459149926c305984685d91ca1376f77 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | markevich/travel | f6f7dd7dd459149926c305984685d91ca1376f77 | [
"MIT"
] | null | null | null | defmodule Travel.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the dat... | 23.452381 | 65 | 0.704569 |
335815790021a56cea94e64eb2c5fdd199e3bac3 | 1,820 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_intents_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_intents_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_intents_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.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... | 35 | 200 | 0.763736 |
33582d63d80054529efc1d87e6c5d7633fc054c6 | 3,824 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_floodlight_criteria.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_floodlight_criteria.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_floodlight_criteria.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... | 55.42029 | 299 | 0.748692 |
33583c97dd045478e6a7e0079db3ad7e70ca6ad0 | 1,295 | ex | Elixir | lib/gear_application/g2g.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | lib/gear_application/g2g.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | lib/gear_application/g2g.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.GearApplication.G2g do
@moduledoc """
Helper module to define each gear's `G2g` module that contains interface for gear-to-gear communication.
"""
alias Antikythera.{Conn, Context, G2gRequest, G2gResponse}
defma... | 33.205128 | 106 | 0.661776 |
3358a08cabe8e8ebbd5be50b615a923b44482d5c | 619 | ex | Elixir | elixir/sieve/lib/sieve.ex | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | elixir/sieve/lib/sieve.ex | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | elixir/sieve/lib/sieve.ex | jiegillet/exercism | bf901cd477aede9d06f322dae0763c968688806d | [
"MIT"
] | null | null | null | defmodule Sieve do
@doc """
Generates a list of primes up to a given limit.
"""
@spec primes_to(non_neg_integer) :: [non_neg_integer]
def primes_to(limit) when limit < 2, do: []
def primes_to(limit) do
do_primes(Enum.to_list(2..limit), [])
end
def do_primes([], primes), do: Enum.reverse(primes)
... | 24.76 | 68 | 0.625202 |
3358c1df210228c01fd3186ea0b60e88816c80dc | 194 | exs | Elixir | priv/repo/migrations/20181128022028_create_socials.exs | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | priv/repo/migrations/20181128022028_create_socials.exs | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | priv/repo/migrations/20181128022028_create_socials.exs | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | defmodule Hubby.Repo.Migrations.CreateSocials do
use Ecto.Migration
def change do
create table(:socials) do
add :name, :string, null: false
timestamps()
end
end
end
| 14.923077 | 48 | 0.675258 |
335916026bee5594a5067e32ed16e5c57bf43fb8 | 273 | exs | Elixir | test/hide_test.exs | samfatoks/attrition | 5074afde6f8fb8c200bfb3057387523bb4a84b47 | [
"MIT"
] | null | null | null | test/hide_test.exs | samfatoks/attrition | 5074afde6f8fb8c200bfb3057387523bb4a84b47 | [
"MIT"
] | null | null | null | test/hide_test.exs | samfatoks/attrition | 5074afde6f8fb8c200bfb3057387523bb4a84b47 | [
"MIT"
] | null | null | null | defmodule HideTest do
alias Attrition.Hide
use ExUnit.Case
describe "data_qa/1" do
test "with any value, returns empty string" do
assert Hide.data_qa("test") == ""
assert Hide.data_qa(1) == ""
assert Hide.data_qa(:test) == ""
end
end
end
| 21 | 50 | 0.6337 |
3359190efefc370688503a445021b9b634cafe60 | 14,355 | ex | Elixir | lib/exq/manager/server.ex | ianatha/exq | 9b2dd1e1b589bc314606348c91f74ebed3264901 | [
"Apache-2.0"
] | null | null | null | lib/exq/manager/server.ex | ianatha/exq | 9b2dd1e1b589bc314606348c91f74ebed3264901 | [
"Apache-2.0"
] | null | null | null | lib/exq/manager/server.ex | ianatha/exq | 9b2dd1e1b589bc314606348c91f74ebed3264901 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Manager.Server do
@moduledoc """
The Manager module is the main orchestrator for the system
It is also the entry point Pid process used by the client to interact
with the Exq system.
It's responsibilities include:
* Handle interaction with client and delegate to responsible sub-system
... | 33.461538 | 101 | 0.652177 |
33596fa6cb2eee319c24b281d104c70c6893df23 | 3,736 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/baseline_value_format.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/baseline_value_format.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/baseline_value_format.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... | 54.941176 | 266 | 0.730193 |
3359737fd13230ff8e5b821fb000dff1e0b8c1a9 | 2,719 | ex | Elixir | apps/meeple_web/lib/meeple_web/live/board_live/sections.ex | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | apps/meeple_web/lib/meeple_web/live/board_live/sections.ex | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | 13 | 2021-12-24T23:44:10.000Z | 2022-03-04T20:56:28.000Z | apps/meeple_web/lib/meeple_web/live/board_live/sections.ex | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | defmodule MeepleWeb.BoardLive.Sections do
use MeepleWeb, :component
alias MeepleWeb.BoardLive.{AdminToolbar, HourTimeline}
def header(assigns) do
~H"""
<div style="grid-area: header">
<h1>Meeple Board</h1>
</div>
"""
end
def nav(assigns) do
~H"""
<div style="grid-area: nav">
... | 23.042373 | 106 | 0.549834 |
335976cd570e64d703a81a5c666e7fd3f2d4c31c | 47,904 | ex | Elixir | lib/elixir/lib/string.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [length: 1]
defmodule String do
@moduledoc ~S"""
A String in Elixir is a UTF-8 encoded binary.
## Codepoints and graphemes
The functions in this module act according to the Unicode
Standard, version 6.3.0.
As per the standard, a codepoint is a single Unicode Character,
which may... | 26.451684 | 112 | 0.635145 |
33597e2b7cd45b50d0ce3215dfbc82c02646f3d1 | 9,822 | ex | Elixir | test/mongooseice/udp/auth_template.ex | MarkESDR/MongooseICE | 77f14106ccbf4716bbf25e4db7d92ea9c33f200e | [
"Apache-2.0"
] | 90 | 2017-09-26T12:20:06.000Z | 2022-01-30T17:58:11.000Z | test/mongooseice/udp/auth_template.ex | MarkESDR/MongooseICE | 77f14106ccbf4716bbf25e4db7d92ea9c33f200e | [
"Apache-2.0"
] | 39 | 2017-01-20T08:54:13.000Z | 2017-09-13T11:30:14.000Z | test/mongooseice/udp/auth_template.ex | MarkESDR/MongooseICE | 77f14106ccbf4716bbf25e4db7d92ea9c33f200e | [
"Apache-2.0"
] | 13 | 2018-03-29T07:03:25.000Z | 2022-03-06T10:21:45.000Z | defmodule MongooseICE.UDP.AuthTemplate do
use ExUnit.Case
defmacro __using__(_opts) do
quote do
import unquote __MODULE__
import Mock
use Helper.Macros
alias Jerboa.Format.Body.Attribute.Nonce
@max_value_bytes 763 - 1
@max_value_chars 128 - 1
@valid_secret "abc"
... | 32.523179 | 91 | 0.53258 |
335996c13d032aae383d0182f7ef161058eecc12 | 3,714 | ex | Elixir | kousa/lib/routes/github_auth.ex | yakohere/dogehouse | 3df9602f3148f3b7613a6cf82d8d87c185f5daf9 | [
"MIT"
] | 1 | 2021-06-11T09:23:24.000Z | 2021-06-11T09:23:24.000Z | kousa/lib/routes/github_auth.ex | agt25/dogehouse | 6666028fa52b48f11bf64e60e859610dce2a3956 | [
"MIT"
] | 1 | 2022-02-27T19:40:57.000Z | 2022-02-27T19:40:57.000Z | kousa/lib/routes/github_auth.ex | agt25/dogehouse | 6666028fa52b48f11bf64e60e859610dce2a3956 | [
"MIT"
] | null | null | null | defmodule Kousa.GitHubAuth do
import Plug.Conn
use Plug.Router
plug(:match)
plug(:dispatch)
get "/web" do
state =
if(
Kousa.Caster.bool(Application.get_env(:kousa, :is_staging)),
do:
%{
redirect_base_url: fetch_query_params(conn).query_params["redirect_after_b... | 27.109489 | 122 | 0.570005 |
33599fb6a0bed6600de674f781c43d90a6273262 | 1,815 | ex | Elixir | lib/jeff_bank/conta.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | lib/jeff_bank/conta.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | lib/jeff_bank/conta.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | defmodule JeffBank.Conta do
@moduledoc """
Módulo de Conta
"""
use Ecto.Schema
alias Ecto.Changeset
import Changeset
import Brcpfcnpj.Changeset
import Comeonin.Bcrypt, only: [hashpwsalt: 1]
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "contas" do
f... | 24.527027 | 84 | 0.630854 |
3359a8a86e80a01835042fdb7732906cf91fb60e | 1,998 | ex | Elixir | apps/local_ledger_db/lib/local_ledger_db/token.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/lib/local_ledger_db/token.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/lib/local_ledger_db/token.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule LocalLedgerDB.Token do
@moduledoc """
Ecto Schema representing tokens. Tokens are made up of an
id (e.g. OMG) and the associated UUID in eWallet DB.
"""
use Ecto.Schema
import Ecto.Changeset
alias Ecto.UUID
alias LocalLedgerDB.{Repo, Token, Entry}
@primary_key {:uuid, UUID, autogenerate: tr... | 24.975 | 80 | 0.628629 |
3359af84280f9fe6e54d50fe2e44bf707d295d41 | 85 | ex | Elixir | test/ticket/testTicket/pipe/CoreTx.TestTicket.Verify.ex | ArcBlock/forge-python-sdk | 4e72d75d3c06b16554d660860708732c83b5f8b2 | [
"Apache-2.0"
] | 9 | 2019-05-08T01:30:22.000Z | 2020-05-08T22:11:40.000Z | test/ticket/testTicket/pipe/CoreTx.TestTicket.Verify.ex | ArcBlock/forge-python-sdk | 4e72d75d3c06b16554d660860708732c83b5f8b2 | [
"Apache-2.0"
] | 22 | 2019-05-14T18:36:17.000Z | 2019-12-24T10:09:42.000Z | test/ticket/testTicket/pipe/CoreTx.TestTicket.Verify.ex | ArcBlock/forge-python-sdk | 4e72d75d3c06b16554d660860708732c83b5f8b2 | [
"Apache-2.0"
] | null | null | null | defmodule CoreTx.TestTicket.Verify do
@moduledoc(false)
use ForgePipe.Builder
end | 21.25 | 37 | 0.811765 |
3359de12ad00820dfe806b9916d742fef1ec5e6c | 997 | exs | Elixir | config/config.exs | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | 3 | 2019-11-06T23:40:55.000Z | 2020-06-20T22:33:25.000Z | config/config.exs | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | config/config.exs | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"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 :op_api,
ecto_repos: [OpApi.Repo]
# Co... | 32.16129 | 86 | 0.767302 |
335a05611138bd2df5c2da11c8fd46ae8bdaca78 | 1,272 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/matched_call_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/matched_call_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_dot_operator_call_operation/matched_call_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 1.2e-3.and Qualifier.qualified positional, key: value
1.2e-3.&& Qualifier.qualified positional, key: value
1.2e-3.|> Qualifier.qualified positional, key: value
1.2e-3.@ Qualifier.qualified positional, key: value
1.2e-3.& Qualifier.qualified positional, key: value
1.2e-3.== Qualifier.qualified positional, key: value
1.2... | 50.88 | 55 | 0.771226 |
335a0fb5b2aee480a4a31c27492ababee871e93a | 262 | ex | Elixir | apps/dashboard/lib/dashboard_web/live/about_live.ex | Arp-G/csv2sql | 21c7310d768afa38282708120af07bb66c8c3f42 | [
"MIT"
] | 26 | 2020-09-13T13:54:59.000Z | 2022-03-30T08:12:55.000Z | apps/dashboard/lib/dashboard_web/live/about_live.ex | Arp-G/csv2sql | 21c7310d768afa38282708120af07bb66c8c3f42 | [
"MIT"
] | 11 | 2020-10-18T14:27:16.000Z | 2022-03-19T09:11:31.000Z | apps/dashboard/lib/dashboard_web/live/about_live.ex | Arp-G/csv2sql | 21c7310d768afa38282708120af07bb66c8c3f42 | [
"MIT"
] | 1 | 2021-12-22T14:10:16.000Z | 2021-12-22T14:10:16.000Z | defmodule DashboardWeb.AboutLive do
use DashboardWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
@impl true
def handle_params(_unsigned_params, _uri, socket) do
{:noreply, socket}
end
end
| 18.714286 | 55 | 0.675573 |
335a5f8fdac711d5bfc52297fe4ce84327e9d6e6 | 9,547 | exs | Elixir | apps/ewallet/test/ewallet/web/orchestrator_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/orchestrator_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/orchestrator_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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 writi... | 32.92069 | 96 | 0.618309 |
335a7f969f09e3507c7ea123ef2a2af3d35d84cc | 705 | exs | Elixir | priv/repo/migrations/19700101000001_schemas_country_blocks_decimal.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | 1 | 2020-06-20T14:40:16.000Z | 2020-06-20T14:40:16.000Z | priv/repo/migrations/19700101000001_schemas_country_blocks_decimal.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/19700101000001_schemas_country_blocks_decimal.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Adapter.MaxMindCSV.Repo.Migrations.SchemasCountryBlocksDecimal do
use Ecto.Migration
def change do
create table("geolix_maxmind_csv_country_blocks_decimal", primary_key: false) do
add :network_start_integer, :decimal
add :network_last_integer, :decimal
add :geoname_id, :integ... | 32.045455 | 84 | 0.713475 |
335abf99ceed0b23ee483654f41aee62591f0b11 | 1,387 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/undelete_folder_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/undelete_folder_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/undelete_folder_metadata.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... | 33.02381 | 105 | 0.77217 |
335ae42dab67b1d3f8c6d7d92a10519d6bdc2e59 | 6,366 | ex | Elixir | lib/elixir/lib/hash_set.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/lib/hash_set.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/hash_set.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule HashSet do
@moduledoc """
WARNING: this module is deprecated.
Use the `MapSet` module instead.
"""
@node_bitmap 0b111
@node_shift 3
@node_size 8
@node_template :erlang.make_tuple(@node_size, [])
@opaque t :: %__MODULE__{size: non_neg_integer, root: term}
@doc false
defstruct size: 0, ... | 24.674419 | 102 | 0.571788 |
335b1bdfe69adf439fd360613f47c1445e10ae74 | 1,565 | ex | Elixir | web/controllers/twitter_follower_status_controller.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | 5 | 2015-11-07T11:27:08.000Z | 2017-06-23T00:54:20.000Z | web/controllers/twitter_follower_status_controller.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | web/controllers/twitter_follower_status_controller.ex | Project-ShangriLa/sana_server_phoenix | d2ea4cc023d02e7249ae9267bb2b41a212b79ce7 | [
"Apache-2.0"
] | null | null | null | defmodule SanaServerPhoenix.TwitterFollowerStatusController do
use SanaServerPhoenix.Web, :controller
def index(conn, _params) do
# http://hexdocs.pm/ecto/Ecto.Adapters.SQL.html#query/4
# IN句のプリペアードステートメント
# http://rikutoto.blogspot.jp/2013/08/preparedstatementin.html
# http://localhost:4000/anime... | 36.395349 | 136 | 0.708626 |
335b21b007cf7abec52c387a30d706f02196c174 | 2,136 | ex | Elixir | lib/ex_bank_id.ex | anfly0/exBankID | 8e62f4250b533543a6b4b423b0c2fb3ec262dc7b | [
"MIT"
] | 15 | 2020-08-05T11:20:03.000Z | 2021-09-22T15:20:41.000Z | lib/ex_bank_id.ex | anfly0/exBankID | 8e62f4250b533543a6b4b423b0c2fb3ec262dc7b | [
"MIT"
] | 9 | 2020-08-10T14:42:27.000Z | 2021-06-14T14:45:05.000Z | lib/ex_bank_id.ex | anfly0/exBankID | 8e62f4250b533543a6b4b423b0c2fb3ec262dc7b | [
"MIT"
] | 2 | 2020-08-10T13:42:15.000Z | 2020-10-03T04:10:06.000Z | defmodule ExBankID do
@moduledoc """
Simple abstraction over the swedish BankID API.
"""
@doc """
Initiates a new BankID authentication session.
Supported options:\n#{NimbleOptions.docs(ExBankID.Auth.options())}
"""
@spec auth(String.t(), Keyword.t()) ::
{:error, %ExBankID.Error.Api{} | bin... | 38.836364 | 212 | 0.651217 |
335b2b8a8421fbd702c24ad2aefd07e096a5f140 | 527 | ex | Elixir | lib/mix/tasks/compile.roads.ex | quangbuule/phoenix-roads | 903d65068efeb61756b417be22723b95e0c7ff1e | [
"MIT"
] | 4 | 2016-10-06T04:47:01.000Z | 2016-10-06T10:07:40.000Z | lib/mix/tasks/compile.roads.ex | quangbuule/phoenix-roads | 903d65068efeb61756b417be22723b95e0c7ff1e | [
"MIT"
] | null | null | null | lib/mix/tasks/compile.roads.ex | quangbuule/phoenix-roads | 903d65068efeb61756b417be22723b95e0c7ff1e | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Compile.Roads do
@default_config [
out_file: "web/static/js/roads.js",
camelcase: false,
global_name: nil
]
def run(_args) do
router
|> routes
|> Roads.compile(config)
|> Roads.install(config)
end
defp router do
Module.concat(Mix.Phoenix.base(), "Router")
... | 18.821429 | 76 | 0.652751 |
335b33dc1fcb2fe83b89af7b9b0bf3e4ed04027d | 489 | ex | Elixir | lib/juvet/slack_api/users.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 19 | 2018-07-14T16:54:11.000Z | 2022-03-01T09:02:19.000Z | lib/juvet/slack_api/users.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 31 | 2018-06-29T15:30:40.000Z | 2022-02-26T01:07:12.000Z | lib/juvet/slack_api/users.ex | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | null | null | null | defmodule Juvet.SlackAPI.Users do
@moduledoc """
A wrapper around the users methods on the Slack API.
"""
alias Juvet.SlackAPI
@doc """
Requests information on a specific user.
Returns a map of the Slack response.
## Example
%{
ok: true,
user: {
id: "U123456"
}
} = Juvet.Slack... | 17.464286 | 60 | 0.625767 |
335b47a1e28ca3d4889d6f11dc4570bd2a6e9604 | 85 | ex | Elixir | web/views/post_view.ex | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | 3 | 2016-12-20T17:16:39.000Z | 2017-02-22T11:06:56.000Z | web/views/post_view.ex | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | 1 | 2017-05-31T16:32:41.000Z | 2017-05-31T16:32:41.000Z | web/views/post_view.ex | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | null | null | null | defmodule BigSnips.PostView do
use BigSnips.Web, :view
import Scrivener.HTML
end
| 17 | 30 | 0.788235 |
335b5c40715e9f687c91cd6c5613970fb84b0160 | 324 | ex | Elixir | lib/commanded/scheduler/scheduling/dispatcher.ex | betoxd40/commanded-scheduler | a72b701faa2901ddc5ff7fce0cf2046d4acce4b4 | [
"MIT"
] | null | null | null | lib/commanded/scheduler/scheduling/dispatcher.ex | betoxd40/commanded-scheduler | a72b701faa2901ddc5ff7fce0cf2046d4acce4b4 | [
"MIT"
] | null | null | null | lib/commanded/scheduler/scheduling/dispatcher.ex | betoxd40/commanded-scheduler | a72b701faa2901ddc5ff7fce0cf2046d4acce4b4 | [
"MIT"
] | null | null | null | defmodule Commanded.Scheduler.Dispatcher do
@moduledoc false
require Logger
alias Commanded.Scheduler.Router
@behaviour Commanded.Scheduler.Job
def execute(schedule_uuid, command) do
Logger.debug(fn -> "Attempting to trigger schedule #{inspect(schedule_uuid)}" end)
Router.dispatch(command)
end
... | 20.25 | 86 | 0.762346 |
335b8e474714c58157277be6de5cf408e720408c | 2,400 | ex | Elixir | apps/potterhat_rpc/lib/potterhat_rpc/router.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 6 | 2019-03-28T14:47:41.000Z | 2019-06-25T02:38:06.000Z | apps/potterhat_rpc/lib/potterhat_rpc/router.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 30 | 2019-05-22T10:08:09.000Z | 2019-08-02T06:37:56.000Z | apps/potterhat_rpc/lib/potterhat_rpc/router.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | null | null | null | # Copyright 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 writi... | 31.168831 | 95 | 0.66875 |
335bb219b7425d6417b14e99a54cbe9f290b28c9 | 1,978 | ex | Elixir | apps/core/lib/core/oauth/api.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/oauth/api.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/oauth/api.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.OAuth.API do
@moduledoc """
OAuth service layer
"""
import Core.API.Helpers.Connection, only: [get_consumer_id: 1, get_client_id: 1]
alias Core.LegalEntities.LegalEntity
require Logger
@mithril_api Application.get_env(:core, :api_resolvers)[:mithril]
def upsert_client_with_connection... | 32.966667 | 114 | 0.68908 |
335bba00ecc64c6b0b8da9d5f2ae7c45ad824749 | 5,137 | ex | Elixir | lib/formex/field.ex | mirego/formex | 689caa74415ce659134adb1123411fa3ff25e341 | [
"MIT"
] | null | null | null | lib/formex/field.ex | mirego/formex | 689caa74415ce659134adb1123411fa3ff25e341 | [
"MIT"
] | null | null | null | lib/formex/field.ex | mirego/formex | 689caa74415ce659134adb1123411fa3ff25e341 | [
"MIT"
] | null | null | null | defmodule Formex.Field do
alias __MODULE__
@doc """
Defines the Formex.Field struct.
* `:name` - a field name, for example: `:title`
* `:struct_name` - a name of a key in your struct. By default the same as `:name`
* `:custom_value` - custom function that extracts a value that will be used in view
... | 30.217647 | 97 | 0.599377 |
335bbad9d77e37a8f5adf085fc4e863741fe40d9 | 587 | ex | Elixir | lib/dovetail/watcher.ex | thusfresh/dovetail | f4a498f0db572484b6fe70a3885ce4a89e3a3492 | [
"BSD-3-Clause"
] | 2 | 2016-02-07T22:36:34.000Z | 2016-02-09T13:33:01.000Z | lib/dovetail/watcher.ex | thusfresh/dovetail | f4a498f0db572484b6fe70a3885ce4a89e3a3492 | [
"BSD-3-Clause"
] | 1 | 2015-08-10T10:00:18.000Z | 2015-08-10T15:44:21.000Z | lib/dovetail/watcher.ex | thusfresh/dovetail | f4a498f0db572484b6fe70a3885ce4a89e3a3492 | [
"BSD-3-Clause"
] | null | null | null | defmodule Dovetail.Watcher do
@moduledoc """
This module implements a worker process for starting, monitoring,
and stopping a dovecot server.
TODO: notification (poll?) if dovecot dies
"""
use GenServer
@supervisor_name __MODULE__
## Public Functions
def start_link(opts \\ []) do
GenServer.sta... | 18.935484 | 69 | 0.65247 |
335bbe2ce9864a75d9ed16d91ffebc8a14810562 | 1,349 | ex | Elixir | lib/grizzly/zwave/commands/barrier_operator_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/barrier_operator_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/barrier_operator_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.BarrierOperatorReport do
@moduledoc """
This command is used to advertise the status of the barrier operator device.
Params:
* `:state` - The current state of the device
"""
@behaviour Grizzly.ZWave.Command
alias Grizzly.ZWave.{Command, DecodeError}
alias Grizzly.... | 25.942308 | 80 | 0.673091 |
335bc194219ff2e6090de864412eb1bac1212ef9 | 1,747 | exs | Elixir | config/test.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | config/test.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | config/test.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
c... | 33.596154 | 83 | 0.783057 |
335bc3ef44eaa4b07a0fc401d2f2d432d65bd978 | 541 | ex | Elixir | apps/panacea_validator/lib/validator/application.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_validator/lib/validator/application.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_validator/lib/validator/application.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | defmodule Validator.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Starts a worker by calling: Validator.Worker.start_link(arg)
# {Validator.Worker, arg}
... | 27.05 | 68 | 0.713494 |
335bcc3ceed10bc701072ca90f69b37b4e2092cd | 5,474 | ex | Elixir | lib/api/graphql/mutations/teams.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | lib/api/graphql/mutations/teams.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | lib/api/graphql/mutations/teams.ex | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule Api.GraphQL.Mutations.Teams do
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
alias Api.GraphQL.Middleware.{RequireAuthn, RequireAdmin}
alias Api.Competitions
alias Api.Integrations.Github
alias Api.Teams
alias Api.Teams.ProjectFavorites
object :teams_mutations do
... | 26.191388 | 97 | 0.626781 |
335be9e4bbc9fe73fe28db32a8bbd6ad4d8af4f6 | 794 | exs | Elixir | test/rocketpay_web/views/users_view_test.exs | AZagatti/rocketpay | 2964bae698bdbe4052f1f26ef47bef70a1e4a4b9 | [
"MIT"
] | 2 | 2021-02-23T00:02:01.000Z | 2021-03-01T17:55:55.000Z | test/rocketpay_web/views/users_view_test.exs | AZagatti/rocketpay | 2964bae698bdbe4052f1f26ef47bef70a1e4a4b9 | [
"MIT"
] | null | null | null | test/rocketpay_web/views/users_view_test.exs | AZagatti/rocketpay | 2964bae698bdbe4052f1f26ef47bef70a1e4a4b9 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersViewTest do
use RocketpayWeb.ConnCase, async: true
import Phoenix.View
alias Rocketpay.{Account, User}
alias RocketpayWeb.UsersView
test "render create.json" do
params = %{
name: "Andre",
password: "123456",
nickname: "Zagatti",
email: "andre@teste.co... | 22.055556 | 73 | 0.610831 |
335c15a345d0880d54001e7aa011de0b46eb4ba7 | 24,664 | ex | Elixir | lib/baiji/service/codestar.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/codestar.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/codestar.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | defmodule Baiji.CodeStar do
@moduledoc """
AWS CodeStar
This is the API reference for AWS CodeStar. This reference provides
descriptions of the operations and data types for the AWS CodeStar API
along with usage examples.
You can use the AWS CodeStar API to work with:
Projects and their resources, by... | 63.241026 | 12,512 | 0.561101 |
335c1c84a17bb6e72f737c779520377dcf53b336 | 1,099 | ex | Elixir | lib/discovery/node_connector/handler.ex | nerandell/discovery | 1bd40ad8a366d28e0f5848835135d989fcb49fdb | [
"MIT"
] | 227 | 2015-01-31T02:32:15.000Z | 2021-11-22T11:58:27.000Z | lib/discovery/node_connector/handler.ex | nerandell/discovery | 1bd40ad8a366d28e0f5848835135d989fcb49fdb | [
"MIT"
] | 9 | 2015-03-26T12:28:41.000Z | 2022-01-21T17:00:04.000Z | lib/discovery/node_connector/handler.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.NodeConnector.Handler do
use Behaviour
@type state :: term
@spec notify_connect(pid, node) :: :ok
def notify_connect(em, node) do
GenEvent.notify(em, {:connect, node})
end
@spec notify_disconnect(pid, node) ... | 23.382979 | 88 | 0.649682 |
335c6443d761c99cdca53d29e436aa7f841d4b08 | 1,792 | ex | Elixir | lib/absinthe/blueprint/document/operation.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/blueprint/document/operation.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/blueprint/document/operation.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Blueprint.Document.Operation do
@moduledoc false
alias Absinthe.Blueprint
@enforce_keys [:name, :type]
defstruct [
:name,
:type,
current: false,
selections: [],
directives: [],
variable_definitions: [],
variable_uses: [],
fragment_uses: [],
source_locatio... | 29.866667 | 76 | 0.625 |
335c84d102de9fb14e1b562b94f38685772fd58f | 2,610 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/test_iam_permissions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/storage/lib/google_api/storage/v1/model/test_iam_permissions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/storage/lib/google_api/storage/v1/model/test_iam_permissions_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... | 40.78125 | 257 | 0.715326 |
335cb5803d967d418bcb7085dad34ac50dd7091d | 730 | ex | Elixir | web/gettext.ex | cpjolicoeur/pivotal-swimlanes | ebe6b2b48516e6bd8dec557cda2b890f820974be | [
"CC0-1.0"
] | 6 | 2015-10-27T01:46:27.000Z | 2021-04-08T18:28:44.000Z | web/gettext.ex | cpjolicoeur/pivotal-swimlanes | ebe6b2b48516e6bd8dec557cda2b890f820974be | [
"CC0-1.0"
] | 66 | 2015-10-23T20:21:12.000Z | 2018-04-18T15:25:57.000Z | web/gettext.ex | cpjolicoeur/pivotal-swimlanes | ebe6b2b48516e6bd8dec557cda2b890f820974be | [
"CC0-1.0"
] | null | null | null | defmodule PivotalSwimlanes.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 PivotalSwimlanes.Gettext
# Simple translation
gettex... | 29.2 | 72 | 0.690411 |
335cdbfedd12cb093e17d25a57e2e1e61aee0da5 | 3,047 | ex | Elixir | apps/blunt/lib/blunt/message/options/parser.ex | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt/lib/blunt/message/options/parser.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt/lib/blunt/message/options/parser.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.Message.Options.Parser do
alias Blunt.Message.{Changeset, Metadata}
def parse_message_opts(message_module, opts) do
message_opts = Metadata.get(message_module, :options, [])
%{parsed: parsed, unparsed: unparsed} =
Enum.reduce(
message_opts,
%{parsed: [], unparsed: opt... | 28.476636 | 101 | 0.630128 |
335d19482f2f8186900f2564cee58edb933b0ebd | 1,898 | ex | Elixir | lib/mix/tasks/logs.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | 1 | 2017-06-02T10:07:47.000Z | 2017-06-02T10:07:47.000Z | lib/mix/tasks/logs.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | lib/mix/tasks/logs.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Zeroth.Logs do
@shortdoc "Prints logs from Auth0"
@moduledoc """
Prints logs from Auth0.
mix zeroth.logs
"""
use Mix.Task
alias Zeroth.HTTPClient
alias Zeroth.Token
alias Zeroth.Log
alias Lonely.Result
@doc false
def run(argv) do
api_client = argv
... | 32.724138 | 94 | 0.476291 |
335d4ca2530cc8ea15292cc5c66524ab3c40b829 | 1,606 | exs | Elixir | plugins/ucc_admin/mix.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_admin/mix.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_admin/mix.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccAdmin.Mixfile do
use Mix.Project
def project do
[app: :ucc_admin,
version: "0.0.1",
# elixir: "~> 1.4",
# elixirc_paths: elixirc_paths(Mix.env),
# compilers: [:phoenix, :gettext] ++ Mix.compilers,
# start_permanent: Mix.env == :prod,
# aliases: aliases(),
# deps:... | 30.301887 | 80 | 0.579078 |
335d4e1d693cc4ac5e03bf7df434a1c15b7918d4 | 1,045 | ex | Elixir | src/server/apps/domain_web/test/support/conn_case.ex | akeating/pespa | f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4 | [
"MIT"
] | 28 | 2017-04-07T03:23:30.000Z | 2021-09-29T13:41:04.000Z | src/server/apps/domain_web/test/support/conn_case.ex | akeating/pespa | f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4 | [
"MIT"
] | null | null | null | src/server/apps/domain_web/test/support/conn_case.ex | akeating/pespa | f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4 | [
"MIT"
] | 7 | 2017-10-22T10:47:53.000Z | 2021-04-21T23:11:22.000Z | defmodule DomainWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the... | 26.794872 | 68 | 0.716746 |
335d4ff52aae1c3915ba48b79519fb889b366708 | 1,470 | exs | Elixir | mix.exs | DefactoSoftware/ex_css_modules | b3ff31b0976745cc06d88072626a14781c04888b | [
"MIT"
] | 16 | 2017-09-26T12:07:27.000Z | 2022-03-23T12:05:13.000Z | mix.exs | DefactoSoftware/ex_css_modules | b3ff31b0976745cc06d88072626a14781c04888b | [
"MIT"
] | 77 | 2017-10-06T13:13:13.000Z | 2022-03-28T04:18:44.000Z | mix.exs | DefactoSoftware/ex_css_modules | b3ff31b0976745cc06d88072626a14781c04888b | [
"MIT"
] | 1 | 2021-12-29T22:28:20.000Z | 2021-12-29T22:28:20.000Z | defmodule ExCSSModules.Mixfile do
use Mix.Project
@version "0.0.6"
def project do
[
app: :ex_css_modules,
name: "ExCSSModules",
source_url: "https://github.com/defactosoftware/ex_css_modules",
version: @version,
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env()),
... | 24.915254 | 79 | 0.57619 |
335d521f9381b281ea5ea3920c68be92f5cb8049 | 75 | ex | Elixir | lib/protected_hello_web/views/page_view.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | lib/protected_hello_web/views/page_view.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | lib/protected_hello_web/views/page_view.ex | KeenMate/phoenix-guardian-example | 163d83780f8a8f3b7be20b1e4be63945e8434fb9 | [
"MIT"
] | null | null | null | defmodule ProtectedHelloWeb.PageView do
use ProtectedHelloWeb, :view
end
| 18.75 | 39 | 0.84 |
335d7f1a5774763f85d76fdffa0604100917c74f | 1,808 | exs | Elixir | mix.exs | astutecat/horde | dd1fecba00520f6abc6284b41a0a3ca33cb6b8b2 | [
"MIT"
] | null | null | null | mix.exs | astutecat/horde | dd1fecba00520f6abc6284b41a0a3ca33cb6b8b2 | [
"MIT"
] | null | null | null | mix.exs | astutecat/horde | dd1fecba00520f6abc6284b41a0a3ca33cb6b8b2 | [
"MIT"
] | null | null | null | defmodule Horde.MixProject do
use Mix.Project
def project do
[
app: :horde,
version: "0.8.3",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
docs: docs(),
package: package(),
name: "Horde",
... | 24.432432 | 82 | 0.551991 |
335d90f156c08d892fa41fdd4276af49afe3530e | 5,493 | ex | Elixir | lib/glimesh_web/live/user_live/components/channel_title.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/components/channel_title.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | lib/glimesh_web/live/user_live/components/channel_title.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserLive.Components.ChannelTitle do
use GlimeshWeb, :live_view
alias Glimesh.ChannelCategories
alias Glimesh.ChannelLookups
alias Glimesh.Streams
@impl true
def render(assigns) do
~L"""
<h5 class="mb-0">
<%= render_badge(@channel) %> <span class="badge badge-primary"><%=... | 35.43871 | 162 | 0.544693 |
335dbbca17f5cb54749aba0f16641863bbc4c390 | 1,757 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/search_references_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/search_references_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/search_references_response.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... | 35.14 | 269 | 0.75811 |
335dd762f3a49ac3bb0dd8262cca2d70ab516f18 | 102 | ex | Elixir | lib/ex_aws/error.ex | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | lib/ex_aws/error.ex | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | lib/ex_aws/error.ex | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | defmodule ExAws.Error do
@moduledoc """
A generic AWS error.
"""
defexception [:message]
end
| 12.75 | 25 | 0.666667 |
335e1e8f58c3df6413540e2aef5f6de04499d065 | 8,088 | exs | Elixir | test/adapter_hackney_test.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 608 | 2015-01-05T18:44:49.000Z | 2022-03-21T19:54:01.000Z | test/adapter_hackney_test.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 165 | 2015-01-04T13:01:01.000Z | 2022-03-16T08:31:48.000Z | test/adapter_hackney_test.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 130 | 2015-01-28T19:33:21.000Z | 2022-02-08T22:21:43.000Z | defmodule ExVCR.Adapter.HackneyTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
@port 34009
setup_all do
HttpServer.start(path: "/server", port: @port, response: "test_response")
{:ok, _} = HTTPoison.start
on_exit fn ->
HttpServer.stop(@port)
end
:o... | 34.126582 | 131 | 0.633037 |
335e293284ade11c871d2c9a08b48c1bf87ef9c5 | 75 | exs | Elixir | test/test_helper.exs | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | test/test_helper.exs | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | test/test_helper.exs | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Jabberwocky.Repo, :manual)
| 15 | 57 | 0.773333 |
335e510becaae3b8e7a17263c7cdbcfdb708619f | 1,591 | exs | Elixir | test/xdr/ledger/account_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/ledger/account_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/ledger/account_test.exs | kommitters/stellar_base | cf36723d5add4fead1029526230299def68048fe | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Ledger.AccountTest do
use ExUnit.Case
alias StellarBase.XDR.{AccountID, PublicKey, PublicKeyType, UInt256}
alias StellarBase.XDR.Ledger.Account
alias StellarBase.StrKey
describe "Ledger Account" do
setup do
pk_type = PublicKeyType.new(:PUBLIC_KEY_TYPE_ED25519)
ac... | 28.927273 | 95 | 0.63105 |
335e72ec64bcd9e0bd447ba36fd15329d823c2d4 | 7,554 | ex | Elixir | lib/system/facade.ex | drozzy/extreme_system | c3dd85daf340d9e157a7c31db23a9fdba4d6e3d9 | [
"MIT"
] | null | null | null | lib/system/facade.ex | drozzy/extreme_system | c3dd85daf340d9e157a7c31db23a9fdba4d6e3d9 | [
"MIT"
] | null | null | null | lib/system/facade.ex | drozzy/extreme_system | c3dd85daf340d9e157a7c31db23a9fdba4d6e3d9 | [
"MIT"
] | null | null | null | defmodule Extreme.System.Facade do
@moduledoc """
defmodule MyFacade do
use Extreme.System.Facade
route :do_something, MyController # calls MyController.do_something(params)
route :do_something_else, {MyController, :else} # calls MyController.else(params)
... | 37.029412 | 125 | 0.596373 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.