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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f716f2355663f7f32f509ca76e0b250e76a8b848 | 2,111 | ex | Elixir | unsilo/lib/unsilo_web/controllers/story_controller.ex | TehSnappy/unsilo_elixir | d0dd592dee71ed5b994ac08cd347aa357d5845f4 | [
"MIT"
] | 1 | 2019-03-21T02:43:06.000Z | 2019-03-21T02:43:06.000Z | unsilo/lib/unsilo_web/controllers/story_controller.ex | TehSnappy/unsilo_elixir | d0dd592dee71ed5b994ac08cd347aa357d5845f4 | [
"MIT"
] | 3 | 2021-03-09T01:43:16.000Z | 2022-02-10T17:04:55.000Z | unsilo/lib/unsilo_web/controllers/story_controller.ex | TehSnappy/unsilo_elixir | d0dd592dee71ed5b994ac08cd347aa357d5845f4 | [
"MIT"
] | null | null | null | defmodule UnsiloWeb.StoryController do
use UnsiloWeb, :controller
require Logger
alias Unsilo.Feeds
alias Unsilo.Feeds.Story
alias Plug.Conn
plug :assign_sub_title
plug :load_and_authorize_resource,
model: Story,
preload: :archive,
only: [:index, :update, :delete]
action_fallback Unsilo... | 27.776316 | 96 | 0.604453 |
f716f7b96371a06cbc5bb727d5d7ab50dd0188f2 | 359 | ex | Elixir | lib/blog_web/views/page_view.ex | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | null | null | null | lib/blog_web/views/page_view.ex | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | 11 | 2015-09-10T02:03:49.000Z | 2021-11-25T11:38:59.000Z | lib/blog_web/views/page_view.ex | mmmries/blog | b65bc86575145b6dc97e344bb55527bf7b0303fa | [
"MIT"
] | null | null | null | defmodule BlogWeb.PageView do
use BlogWeb, :view
def post_link(post, content \\ nil) do
post_url = "/" <> (Date.to_iso8601(post.date) |> String.replace("-", "/")) <> "/#{post.slug}.html"
if content == nil do
link(post.title, to: post_url, class: "post-link")
else
link(content, to: post_url,... | 27.615385 | 102 | 0.612813 |
f716ffe38329728ef6a868a46246a7897e35265a | 1,459 | ex | Elixir | lib/loom_web/endpoint.ex | simonfraserduncan/my-copy | 03c618035a06a63d8fcf9f6511ef59d3e4cf2da9 | [
"Apache-2.0"
] | 4 | 2021-02-20T02:47:36.000Z | 2021-06-08T18:42:40.000Z | lib/loom_web/endpoint.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | null | null | null | lib/loom_web/endpoint.ex | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | 1 | 2021-02-17T18:28:35.000Z | 2021-02-17T18:28:35.000Z | defmodule LoomWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :loom
@session_options [
store: :cookie,
key: "_loom_key",
signing_salt: "1h1IY2+/"
]
socket "/live", Phoenix.LiveView.Socket,
websocket: [connect_info: [session: @session_options]]
# Serve at "/" the static files from "priv/static... | 27.528302 | 69 | 0.711446 |
f717099b14189e1d9bcc76024719acb4d1e64057 | 6,971 | ex | Elixir | lib/remote_ip.ex | inside-track/remote_ip | fbced21bc698c06fd2307a1a031ec5d9909d605c | [
"MIT"
] | null | null | null | lib/remote_ip.ex | inside-track/remote_ip | fbced21bc698c06fd2307a1a031ec5d9909d605c | [
"MIT"
] | null | null | null | lib/remote_ip.ex | inside-track/remote_ip | fbced21bc698c06fd2307a1a031ec5d9909d605c | [
"MIT"
] | null | null | null | defmodule RemoteIp do
@moduledoc """
A plug to overwrite the `Plug.Conn`'s `remote_ip` based on request headers.
To use, add the `RemoteIp` plug to your app's plug pipeline:
```elixir
defmodule MyApp do
use Plug.Builder
plug RemoteIp
end
```
Keep in mind the order of plugs in your pipeline a... | 29.045833 | 80 | 0.643954 |
f71712780fe4fb66b5c213dbbc6e1badad42023e | 2,589 | ex | Elixir | lib/rdf/blank_node/generator.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 19 | 2020-06-05T16:55:54.000Z | 2022-03-22T10:30:11.000Z | lib/rdf/blank_node/generator.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 4 | 2020-07-03T21:02:55.000Z | 2021-11-18T07:22:06.000Z | lib/rdf/blank_node/generator.ex | rdf-elixir/rdf-ex | 7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.BlankNode.Generator do
@moduledoc """
A GenServer generates `RDF.BlankNode`s using a `RDF.BlankNode.Generator.Algorithm`.
"""
use GenServer
# Client API ###############################################################
@doc """
Starts a blank node generator linked to the current process.
... | 31.962963 | 103 | 0.678254 |
f717730abf77cd0dc93ea247e06bdb1d316f0055 | 512 | exs | Elixir | test/controllers/user_controller_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | test/controllers/user_controller_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | test/controllers/user_controller_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.UserControllerTest do
use CanvasAPI.ConnCase
import CanvasAPI.Factory
@valid_attrs %{}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "shows chosen resource", %{conn: conn} do
user = insert(:user)
conn... | 21.333333 | 67 | 0.65625 |
f7178fb183c6973bfd433192d892259a3b4fc6e5 | 2,249 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/add_dns_record_set_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/add_dns_record_set_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/add_dns_record_set_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.433962 | 285 | 0.739884 |
f7179d338490c31646859de08aa045c1c6cf5f01 | 2,694 | exs | Elixir | test/changes_test.exs | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 530 | 2015-05-12T21:06:49.000Z | 2021-07-29T01:06:43.000Z | test/changes_test.exs | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 122 | 2015-05-12T03:12:50.000Z | 2019-11-11T11:21:10.000Z | test/changes_test.exs | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | 79 | 2015-05-14T17:14:52.000Z | 2022-02-14T07:00:00.000Z | defmodule ChangesTest do
use ExUnit.Case, async: true
alias RethinkDB.Feed
use RethinkDB.Connection
import RethinkDB.Query
@table_name "changes_test_table_1"
setup_all do
start_link
table_create(@table_name) |> run
on_exit fn ->
start_link
table_drop(@table_name) |> run
end
... | 26.15534 | 102 | 0.528211 |
f717a2b968e824a18cab2a325f74a419187704ec | 1,176 | ex | Elixir | lib/openflow/get_config/reply.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/get_config/reply.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/get_config/reply.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.GetConfig.Reply do
defstruct(
version: 4,
xid: 0,
datapath_id: "",
aux_id: 0,
# default = "normal" is no special handling
flags: [],
miss_send_len: 128
)
alias __MODULE__
@type flags :: [:drop | :reasm]
@type max_len :: :max | :no_buffer | 0..0xFFFF
@type t ... | 27.348837 | 80 | 0.630952 |
f717ea1960e64b2142cc372c2e2d4d75a05f630b | 4,299 | ex | Elixir | lib/geocoder/providers/google_maps.ex | foggy1/geocoder | 80a5b8c2b43fe5b1ec4277782b33354e1c675f14 | [
"MIT"
] | null | null | null | lib/geocoder/providers/google_maps.ex | foggy1/geocoder | 80a5b8c2b43fe5b1ec4277782b33354e1c675f14 | [
"MIT"
] | null | null | null | lib/geocoder/providers/google_maps.ex | foggy1/geocoder | 80a5b8c2b43fe5b1ec4277782b33354e1c675f14 | [
"MIT"
] | null | null | null | defmodule Geocoder.Providers.GoogleMaps do
use HTTPoison.Base
use Towel
@endpoint "https://maps.googleapis.com/"
def geocode(opts) do
request("maps/api/geocode/json", extract_opts(opts))
|> fmap(&parse_geocode/1)
end
def geocode_list(opts) do
request_all("maps/api/geocode/json", extract_opts(... | 24.706897 | 97 | 0.602466 |
f7182bb91045d8188091ee2224034c2425726c19 | 7,528 | ex | Elixir | lib/eex/lib/eex.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/eex/lib/eex.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/eex/lib/eex.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | defmodule EEx.SyntaxError do
defexception [:message, :file, :line, :column]
@impl true
def message(exception) do
"#{exception.file}:#{exception.line}:#{exception.column}: #{exception.message}"
end
end
defmodule EEx do
@moduledoc ~S"""
EEx stands for Embedded Elixir. It allows you to embed
Elixir cod... | 31.497908 | 92 | 0.653294 |
f718484587dea114ddd7912b1614bfdb36ab4928 | 1,991 | exs | Elixir | mix.exs | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 3 | 2015-01-29T19:11:05.000Z | 2015-10-19T02:12:02.000Z | mix.exs | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 43 | 2015-05-31T00:28:45.000Z | 2017-02-06T20:06:19.000Z | mix.exs | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 2 | 2015-07-11T14:48:04.000Z | 2015-07-13T06:51:37.000Z | defmodule ParticipateApi.Mixfile do
use Mix.Project
def project do
[app: :participate_api,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :pr... | 31.603175 | 78 | 0.579106 |
f71850d625f90c80c699eb1301538f1330d82913 | 350 | exs | Elixir | bench/vector/take.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 95 | 2020-10-18T09:27:46.000Z | 2022-03-29T20:03:16.000Z | bench/vector/take.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2021-09-22T20:30:08.000Z | 2021-10-13T23:55:34.000Z | bench/vector/take.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2020-12-15T12:36:16.000Z | 2020-12-15T12:36:16.000Z | list = Enum.to_list(1..100)
vector = Aja.Vector.new(list)
Benchee.run(%{
"Aja.Vector.take/2" => fn -> Aja.Vector.take(vector, 80) end,
"Aja.Vector.slice/3" => fn -> Aja.Vector.slice(vector, 1, 80) end,
"Aja.Vector.slice/3 0-optimization" => fn -> Aja.Vector.slice(vector, 0, 80) end,
"Enum.take/2 (list)" => fn ... | 35 | 83 | 0.634286 |
f7189efca5c31b7ed7dd80bad0c608856f28fd03 | 746 | ex | Elixir | lib/poller/server.ex | Triangle-Elixir/poller | aee63079e9e8e85748c87e04f3607258b10307fc | [
"MIT"
] | 1 | 2020-02-21T15:33:52.000Z | 2020-02-21T15:33:52.000Z | lib/poller/server.ex | Triangle-Elixir/poller | aee63079e9e8e85748c87e04f3607258b10307fc | [
"MIT"
] | null | null | null | lib/poller/server.ex | Triangle-Elixir/poller | aee63079e9e8e85748c87e04f3607258b10307fc | [
"MIT"
] | null | null | null | defmodule Poller.Server do
@moduledoc false
use GenServer
alias Poller.Client
def start_link(args) do
label = Keyword.fetch!(args, :label)
name = name_via_registry(label)
GenServer.start_link(__MODULE__, args, name: name)
end
def init(args) do
client = Client.new(args)
{:ok, client, {... | 22.606061 | 54 | 0.693029 |
f718a44d35c238660b3432839f45d4b6309a0c2b | 11,950 | exs | Elixir | test/lib/timber/integrations/phoenix_instrumenter_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | test/lib/timber/integrations/phoenix_instrumenter_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | test/lib/timber/integrations/phoenix_instrumenter_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | if Code.ensure_loaded?(Phoenix) do
defmodule Timber.Integrations.PhoenixInstrumenterTest do
# This test case has to be asynchronous since it modifies and depends on
# the application environment which is global
use Timber.TestCase, async: false
import ExUnit.CaptureLog
alias Timber.Integrations.... | 32.037534 | 99 | 0.600921 |
f718e705810d6cf4bc99dfd5762cbda17268a8ac | 377 | ex | Elixir | lib/godfist/requests/status.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 6 | 2017-07-27T08:23:25.000Z | 2020-01-14T19:17:52.000Z | lib/godfist/requests/status.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 7 | 2017-08-26T06:01:16.000Z | 2018-04-03T18:30:44.000Z | lib/godfist/requests/status.ex | whitfin/godfist | b311b17b3db3b47b650b070da4fd753f4492560d | [
"MIT"
] | 2 | 2017-08-26T05:50:29.000Z | 2018-10-01T20:44:42.000Z | defmodule Godfist.Status do
@moduledoc """
Status endpoint.
"""
alias Godfist.LeagueRates
@v "v3"
# Returns shard-data of a specific server
@doc """
Return shard data.
"""
@spec shard(atom) :: {:ok, map} | {:error, String.t()}
def shard(region) do
rest = "/lol/status/#{@v}/shard-data"
... | 17.136364 | 56 | 0.625995 |
f7190c82e6bedb917dfe7129290290019c0fdc0e | 1,514 | exs | Elixir | apps/ewallet/test/ewallet/web/v1/serializers/paginator_serializer_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/v1/serializers/paginator_serializer_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/v1/serializers/paginator_serializer_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Web.V1.PaginatorSerializerTest do
use EWallet.Web.SerializerCase, :v1
alias EWallet.Web.V1.PaginatorSerializer
alias EWallet.Web.Paginator
describe "PaginatorSerializer.serialize/1" do
test "serializes the given paginator into a list object" do
paginator = %Paginator{
data: ... | 24.819672 | 84 | 0.577279 |
f7191dd8d8cebdf174e71b2f1f35f1200b38949a | 162 | exs | Elixir | test/robosseum_client_test.exs | robosseum/client-elixir | 65efed560bc8aa79c866db0efcf6463be28527f0 | [
"MIT"
] | null | null | null | test/robosseum_client_test.exs | robosseum/client-elixir | 65efed560bc8aa79c866db0efcf6463be28527f0 | [
"MIT"
] | null | null | null | test/robosseum_client_test.exs | robosseum/client-elixir | 65efed560bc8aa79c866db0efcf6463be28527f0 | [
"MIT"
] | null | null | null | defmodule RobosseumClientTest do
use ExUnit.Case
doctest RobosseumClient
test "greets the world" do
assert RobosseumClient.hello() == :world
end
end
| 18 | 44 | 0.753086 |
f71922b1cfcce668c60f0f5411815ad40aa60245 | 6,754 | ex | Elixir | apps/cashtrail/lib/cashtrail/users.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 6 | 2020-05-02T01:12:24.000Z | 2020-06-23T12:31:32.000Z | apps/cashtrail/lib/cashtrail/users.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | 16 | 2020-05-02T00:07:51.000Z | 2021-06-11T01:54:11.000Z | apps/cashtrail/lib/cashtrail/users.ex | maxmaccari/cashtrail | 74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7 | [
"MIT"
] | null | null | null | defmodule Cashtrail.Users do
@moduledoc """
The Users context manages the users data of one entity and performs user
authentication.
See `Cashtrail.Users.User` to have more info about user.
"""
import Ecto.Query, warn: false
alias Cashtrail.Repo
alias Cashtrail.{Paginator, Users}
alias Cashtrail.Us... | 26.382813 | 90 | 0.639917 |
f7193307cb1dace3d6ee175e327b2eefac0060cf | 2,933 | exs | Elixir | apps/omg_watcher/test/omg_watcher/integration/transaction_submit_test.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/test/omg_watcher/integration/transaction_submit_test.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/omg_watcher/integration/transaction_submit_test.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # 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... | 29.626263 | 108 | 0.66178 |
f71933617d834be659511f620f66a401fc08c4fa | 1,454 | ex | Elixir | lib/geocoder.ex | gmcintire/geocoder | 174251a2595657157e4e1d70ee2678c2a94f7cd2 | [
"MIT"
] | null | null | null | lib/geocoder.ex | gmcintire/geocoder | 174251a2595657157e4e1d70ee2678c2a94f7cd2 | [
"MIT"
] | null | null | null | lib/geocoder.ex | gmcintire/geocoder | 174251a2595657157e4e1d70ee2678c2a94f7cd2 | [
"MIT"
] | null | null | null | defmodule Geocoder do
use Application
@pool_name :geocoder_workers
@default_config [worker_module: Geocoder.Worker, name: {:local, @pool_name}]
def pool_name, do: @pool_name
def worker_config do
Keyword.merge(Application.get_env(:geocoder, Geocoder.Worker) || [], @default_config)
end
def store_con... | 26.925926 | 89 | 0.649243 |
f7193c883e54d9a53cc23635952d4bfc88e846b8 | 1,728 | ex | Elixir | lib/sanbase_web/controllers/root_controller.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/controllers/root_controller.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/controllers/root_controller.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.RootController do
use SanbaseWeb, :controller
require Logger
alias Sanbase.Oauth2.Hydra
alias Sanbase.Accounts.User
# Used in production mode to serve the reactjs application
def index(conn, _params) do
conn
|> put_resp_header("content-type", "text/html; charset=utf-8")
|... | 24.685714 | 90 | 0.62037 |
f71959bc04010e1d9f8077cd2c2230a51757b903 | 1,436 | exs | Elixir | test/mmdb2/result/connection_type_test.exs | tcitworld/adapter_mmdb2 | 965fd00ce2ba3d11d1749047f97fa2ccaeaaf533 | [
"Apache-2.0"
] | 3 | 2018-03-03T18:59:55.000Z | 2020-12-31T19:36:59.000Z | test/mmdb2/result/connection_type_test.exs | tcitworld/adapter_mmdb2 | 965fd00ce2ba3d11d1749047f97fa2ccaeaaf533 | [
"Apache-2.0"
] | 3 | 2019-07-17T12:55:41.000Z | 2020-08-31T18:55:15.000Z | test/mmdb2/result/connection_type_test.exs | tcitworld/adapter_mmdb2 | 965fd00ce2ba3d11d1749047f97fa2ccaeaaf533 | [
"Apache-2.0"
] | 4 | 2019-07-15T10:07:16.000Z | 2021-09-22T15:46:04.000Z | defmodule Geolix.Adapter.MMDB2.Result.ConnectionTypeTest do
use ExUnit.Case, async: true
alias Geolix.Adapter.MMDB2.Result.ConnectionType
test "result type" do
assert %ConnectionType{} = Geolix.lookup("1.0.0.0", where: :fixture_connection)
end
test "ipv6 lookup" do
ip = "2003::"
{:ok, ip_addres... | 27.615385 | 84 | 0.681755 |
f71993ae1701754ef4bb17e4230ce000ac3b4dd0 | 9,587 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_policy.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_policy.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_policy.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 157.163934 | 5,553 | 0.714509 |
f71997fe3403a55989470e18bd1fd1a8efb5006e | 4,265 | ex | Elixir | lib/links.ex | ddidwyll/shorty | b02968d1093c2b61ab21e889ee39850244e4748e | [
"MIT"
] | null | null | null | lib/links.ex | ddidwyll/shorty | b02968d1093c2b61ab21e889ee39850244e4748e | [
"MIT"
] | 1 | 2021-05-10T22:27:20.000Z | 2021-05-10T22:27:20.000Z | lib/links.ex | ddidwyll/shorty | b02968d1093c2b61ab21e889ee39850244e4748e | [
"MIT"
] | null | null | null | alias Links.Link
alias Links.ChangeRequest, as: ChReq
alias Ecto.ConstraintError, as: DBErr
defmodule LinksBehaviour do
@type item :: Link.t() | ChReq.t()
@callback create(item) :: {:ok, item} | {:error, binary}
@callback create(item, boolean) :: {:ok, item} | {:error, binary}
@callback get_link(binary) :: {:o... | 25.538922 | 88 | 0.565064 |
f719a2f72fe3bb8a1e29510338cbd88e627b3e9f | 14,615 | exs | Elixir | test/teslamate/vehicles/vehicle/suspend_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | 1 | 2020-05-17T05:05:22.000Z | 2020-05-17T05:05:22.000Z | test/teslamate/vehicles/vehicle/suspend_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/suspend_test.exs | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.SuspendTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Vehicles.Vehicle
test "suspends when idling", %{test: name} do
suspendable =
online_event(
drive_state: %{timestamp: 0, latitude: 0.0, longitude: 0.0},
climate_state: %{is_precond... | 29.58502 | 96 | 0.612042 |
f719a91a5b808e4357d2c2fb40a6584f9878443e | 83 | ex | Elixir | lib/newslettex_web/views/campaign_contact_event_view.ex | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | null | null | null | lib/newslettex_web/views/campaign_contact_event_view.ex | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | 10 | 2019-07-29T03:03:02.000Z | 2021-05-10T23:59:25.000Z | lib/newslettex_web/views/campaign_contact_event_view.ex | silva96/newslettex | 4876392c9900c0ce169dcdcb9ebb01ab3da83d65 | [
"MIT"
] | null | null | null | defmodule NewslettexWeb.CampaignContactEventView do
use NewslettexWeb, :view
end
| 20.75 | 51 | 0.855422 |
f719aa6ea3bb7dff52102e7b57801da3a1644299 | 1,502 | exs | Elixir | test/lib/code_corps/transition/user_state_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/transition/user_state_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/transition/user_state_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Transition.UserStateTest do
use ExUnit.Case, async: true
alias CodeCorps.Transition.UserState
describe "next/2" do
test "returns nil if state_transition is nil" do
assert UserState.next("foo", nil) == nil
end
test "returns {:ok, next_state} for valid transitions" do
... | 42.914286 | 98 | 0.690413 |
f719ac5b895474def6dfce640ae8466186f837d3 | 3,324 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_knowledge_answers_answer.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_knowledge_answers_answer.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_knowledge_answers_answer.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... | 41.55 | 142 | 0.72142 |
f719f62ec2a782af39af10b7bbefe72115ee4d50 | 1,299 | ex | Elixir | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/cancel_operation_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/cancel_operation_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/cancel_operation_request.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.928571 | 85 | 0.769053 |
f71a0300f7c4e4f2c2596cb63a5a4432da99bcc7 | 871 | exs | Elixir | deps/decimal/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/decimal/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/decimal/mix.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Decimal.Mixfile do
use Mix.Project
@version "1.6.0"
def project() do
[
app: :decimal,
version: @version,
elixir: "~> 1.0",
deps: deps(),
name: "Decimal",
source_url: "https://github.com/ericmj/decimal",
docs: [source_ref: "v#{@version}", main:... | 20.255814 | 81 | 0.522388 |
f71a3830bc3acddf3e65df064ce69f09e57f78be | 1,242 | ex | Elixir | wsf_c/build/packaging/debian/emacsen-install.ex | michaelarnauts/wso-wsf-php | 48d05363fe70ffd51b159b957bf00c4128d8d615 | [
"Apache-2.0"
] | 1 | 2021-12-02T13:43:00.000Z | 2021-12-02T13:43:00.000Z | wsf_c/build/packaging/debian/emacsen-install.ex | michaelarnauts/wso-wsf-php | 48d05363fe70ffd51b159b957bf00c4128d8d615 | [
"Apache-2.0"
] | null | null | null | wsf_c/build/packaging/debian/emacsen-install.ex | michaelarnauts/wso-wsf-php | 48d05363fe70ffd51b159b957bf00c4128d8d615 | [
"Apache-2.0"
] | 4 | 2017-03-21T15:27:57.000Z | 2021-05-27T11:20:00.000Z | #! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/wso2-wsf-c
# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1
PACKAGE=wso2-wsf-c
if [ ${FLAVOR} = emacs ]; then e... | 27 | 102 | 0.685185 |
f71a3cf0e9c54f913e77dc323db5fe4b9fb4fa5f | 945 | ex | Elixir | lib/postgrex/extensions/line_segment.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/extensions/line_segment.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/postgrex/extensions/line_segment.ex | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Extensions.LineSegment do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "lseg_send"
alias Postgrex.Extensions.Point
def encode(_) do
quote location: :keep do
%Postgrex.LineSegment{point1: p1, point2: p2} ->
encoded_p1 = Poin... | 32.586207 | 87 | 0.655026 |
f71aa4a0518cc983d216dd5a570dd9d274c957ea | 664 | ex | Elixir | xarb/test/support/fixtures/accounts_fixtures.ex | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | xarb/test/support/fixtures/accounts_fixtures.ex | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | xarb/test/support/fixtures/accounts_fixtures.ex | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | defmodule Xarb.AccountsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Xarb.Accounts` context.
"""
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
def valid_user_password, do: "hello world!"
def user_fixture(attrs \\ %{}) do
{:ok, us... | 23.714286 | 73 | 0.63253 |
f71ac152405f06866ddb9adbb6e47eb928e67bab | 425 | exs | Elixir | integration_test/support/types.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 64 | 2015-06-03T09:48:13.000Z | 2020-04-25T08:39:49.000Z | integration_test/support/types.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 70 | 2015-02-13T14:00:13.000Z | 2021-09-15T10:40:01.000Z | integration_test/support/types.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 50 | 2015-02-13T13:55:47.000Z | 2020-03-03T15:34:13.000Z | defmodule Custom.Permalink do
def type, do: :id
def cast(string) when is_binary(string) do
case Integer.parse(string) do
{int, _} -> {:ok, int}
:error -> :error
end
end
def cast(integer) when is_integer(integer), do: {:ok, integer}
def cast(_), do: :error
def load(integer) when is_i... | 25 | 64 | 0.649412 |
f71acee3d1c59ebece06a53e9345420d86d7327c | 1,603 | exs | Elixir | test/integration/atom_keys_test.exs | lexmag/xandra | eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d | [
"0BSD"
] | null | null | null | test/integration/atom_keys_test.exs | lexmag/xandra | eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d | [
"0BSD"
] | null | null | null | test/integration/atom_keys_test.exs | lexmag/xandra | eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d | [
"0BSD"
] | null | null | null | defmodule AtomKeysTest do
use XandraTest.IntegrationCase, async: true, start_options: [atom_keys: true]
alias Xandra.{SchemaChange, SetKeyspace, Void}
@moduletag :cassandra_specific
test "each possible result and prepared", %{conn: conn, keyspace: keyspace} do
result = Xandra.execute!(conn, "USE #{keyspa... | 36.431818 | 84 | 0.641921 |
f71ad88c58b3ac4548804bafc7445d07c4d88a2f | 2,055 | ex | Elixir | clients/run/lib/google_api/run/v1/model/configuration_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/configuration_spec.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/configuration_spec.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.696429 | 166 | 0.742579 |
f71ae1c20e979a08f5b6598ab07c721108493c42 | 1,203 | exs | Elixir | mix.exs | egillet/ueberauth_cas | 9c546226e59eace0504a275431710ec67d8e0370 | [
"MIT"
] | null | null | null | mix.exs | egillet/ueberauth_cas | 9c546226e59eace0504a275431710ec67d8e0370 | [
"MIT"
] | null | null | null | mix.exs | egillet/ueberauth_cas | 9c546226e59eace0504a275431710ec67d8e0370 | [
"MIT"
] | null | null | null | defmodule UeberauthCAS.Mixfile do
use Mix.Project
@version "1.1.0"
@url "https://github.com/marceldegraaf/ueberauth_cas"
def project do
[
app: :ueberauth_cas,
version: @version,
elixir: "~> 1.2",
name: "Ueberauth CAS strategy",
package: package(),
build_embedded: Mi... | 23.134615 | 67 | 0.533666 |
f71b447f4a92e1e71a237324721dbc333c20d867 | 864 | ex | Elixir | apps/tai/lib/tai/venue_adapters/okex.ex | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venue_adapters/okex.ex | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/okex.ex | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.OkEx do
alias Tai.VenueAdapters.OkEx.{
StreamSupervisor,
Products,
AssetBalances,
Positions,
MakerTakerFees,
CreateOrder,
CancelOrder
}
@behaviour Tai.Venues.Adapter
def stream_supervisor, do: StreamSupervisor
defdelegate products(venue_id), to: Produc... | 36 | 87 | 0.780093 |
f71b5299c15825558ab2c63ae90169c1d7dc0a58 | 960 | exs | Elixir | test/integration/sign_in_test.exs | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | test/integration/sign_in_test.exs | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | test/integration/sign_in_test.exs | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | defmodule ExTrello.SignInTest do
use ExTrello.IntegrationCase
@tag :integration
test "GET /" do
navigate_to "/"
assert page_title == "Sign in | Phoenix Trello"
assert element_displayed?({:id, "sign_in_form"})
end
@tag :integration
test "Sign in with wrong email/password" do
navigate_to "/... | 22.325581 | 64 | 0.676042 |
f71b719aacc4d5799d663632de40b8f5772066c8 | 1,133 | exs | Elixir | apps/gen_rtmp_server/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 75 | 2016-12-23T14:37:18.000Z | 2021-04-26T14:07:20.000Z | apps/gen_rtmp_server/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 19 | 2016-12-22T03:20:43.000Z | 2020-06-11T12:10:37.000Z | apps/gen_rtmp_server/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 3 | 2018-03-29T06:40:40.000Z | 2019-02-13T09:37:19.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.548387 | 73 | 0.754634 |
f71b74273ef13ecf5a25f722b9343f74149a1237 | 1,976 | ex | Elixir | lib/prm/global_parameters/global_parameters.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | 1 | 2017-07-27T16:03:28.000Z | 2017-07-27T16:03:28.000Z | lib/prm/global_parameters/global_parameters.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | lib/prm/global_parameters/global_parameters.ex | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | defmodule PRM.GlobalParameters do
@moduledoc """
The boundary for the Global parameters system.
"""
import Ecto.{Query, Changeset}, warn: false
alias PRM.Repo
alias PRM.GlobalParameters.GlobalParameter
def list_global_parameters do
query = from gp in GlobalParameter,
order_by: [desc: :inserte... | 27.444444 | 119 | 0.697368 |
f71ba4a2b4a11bdde723ec82ba6bd340577a96c5 | 2,132 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/audit_log_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/audit_log_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/audit_log_config.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... | 30.457143 | 138 | 0.679174 |
f71bc39f6ec90da6871f5a348d9a6b5caa23121b | 187 | ex | Elixir | lib/find_site_icon/icon_info.ex | XukuLLC/find_site_icon | 08333585f48bfaf742e50f804bbd373f2e9e02b8 | [
"MIT"
] | 1 | 2021-03-11T17:45:43.000Z | 2021-03-11T17:45:43.000Z | lib/find_site_icon/icon_info.ex | Victoria91/find_site_icon | de7514df059725dcfd932123bdf4b4150b6e9100 | [
"MIT"
] | 1 | 2021-03-12T03:18:41.000Z | 2021-03-12T03:18:41.000Z | lib/find_site_icon/icon_info.ex | Victoria91/find_site_icon | de7514df059725dcfd932123bdf4b4150b6e9100 | [
"MIT"
] | 2 | 2021-03-22T13:11:18.000Z | 2021-04-12T10:21:04.000Z | defmodule FindSiteIcon.IconInfo do
@moduledoc """
The basic icon struct, holding all the info we need for an icon
"""
defstruct url: nil, expiration_timestamp: nil, size: nil
end
| 26.714286 | 65 | 0.737968 |
f71bce9a6bcae3fc373150dfe554d37e8a20a595 | 1,071 | ex | Elixir | test/support/ets_cache_mock.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | test/support/ets_cache_mock.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | test/support/ets_cache_mock.ex | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule Pow.Test.EtsCacheMock do
@moduledoc false
@tab __MODULE__
def init, do: :ets.new(@tab, [:set, :protected, :named_table])
def get(config, key) do
ets_key = ets_key(config, key)
@tab
|> :ets.lookup(ets_key)
|> case do
[{^ets_key, value} | _rest] -> value
[] ... | 23.282609 | 76 | 0.586368 |
f71bd6267527b93aeb63a16960e469ea9e18efdf | 74,474 | ex | Elixir | bench/lib/datasets/google_message3/benchmark_message3_1.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | bench/lib/datasets/google_message3/benchmark_message3_1.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | bench/lib/datasets/google_message3/benchmark_message3_1.pb.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defmodule Benchmarks.GoogleMessage3.Message34390 do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
field34452: [Benchmarks.GoogleMessage3.Message34387.t()]
}
defstruct [:field34452]
field :field34452, 1, repeated: true, type: Benchmarks.GoogleMessage3.Message34387
e... | 30.672982 | 96 | 0.643124 |
f71beb5675e604532eef58b2c65574253e45a0dd | 2,310 | exs | Elixir | mix.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | mix.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | mix.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraph.MixProject do
use Mix.Project
def project do
[
app: :banking_graph,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_perma... | 31.643836 | 109 | 0.487013 |
f71bfb7fc71e0224668bb5d6395ba96d78116a52 | 607 | ex | Elixir | clients/client/elixir/lib/ory/model/is_owner_for_project_by_slug_payload.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/is_owner_for_project_by_slug_payload.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/elixir/lib/ory/model/is_owner_for_project_by_slug_payload.ex | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.IsOwnerForProjectBySlugPayload do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"project_scope",
:"project_sl... | 20.233333 | 91 | 0.6771 |
f71c178b1d63546f2c69901d9bde7b27a3e54a38 | 86 | exs | Elixir | config/prod.exs | qgadrian/locux | 77404174c5c66bd27fed0d07404f916c11060393 | [
"MIT"
] | null | null | null | config/prod.exs | qgadrian/locux | 77404174c5c66bd27fed0d07404f916c11060393 | [
"MIT"
] | null | null | null | config/prod.exs | qgadrian/locux | 77404174c5c66bd27fed0d07404f916c11060393 | [
"MIT"
] | null | null | null | use Mix.Config
config :locust, num_of_workers: 1
config :locust, num_of_requests: 10
| 17.2 | 35 | 0.790698 |
f71c55183a5d6ae65852a8221603b67315391ec7 | 8,798 | ex | Elixir | lib/eml/compiler.ex | clemensm/eml | e2dc3dc605d2a61ccbdca1901a444a123abd8e94 | [
"Apache-2.0"
] | null | null | null | lib/eml/compiler.ex | clemensm/eml | e2dc3dc605d2a61ccbdca1901a444a123abd8e94 | [
"Apache-2.0"
] | null | null | null | lib/eml/compiler.ex | clemensm/eml | e2dc3dc605d2a61ccbdca1901a444a123abd8e94 | [
"Apache-2.0"
] | null | null | null | defmodule Eml.Compiler do
@moduledoc """
Various helper functions for implementing an Eml compiler.
"""
@type chunk :: String.t | { :safe, String.t } | Macro.t
# Options helper
@default_opts [escape: true,
transform: nil,
fragment: false,
compiler: Eml.H... | 28.108626 | 117 | 0.612526 |
f71c59822927e88beb5aaddda2e29c3d7188fdce | 1,898 | ex | Elixir | lib/open_exchange_rates/updater.ex | smeevil/open_exchange_rates | ea25dbab9baaf6c61a674452e2143cf6b0bb6d49 | [
"MIT"
] | 5 | 2016-08-07T13:57:56.000Z | 2020-10-05T17:17:17.000Z | lib/open_exchange_rates/updater.ex | smeevil/open_exchange_rates | ea25dbab9baaf6c61a674452e2143cf6b0bb6d49 | [
"MIT"
] | null | null | null | lib/open_exchange_rates/updater.ex | smeevil/open_exchange_rates | ea25dbab9baaf6c61a674452e2143cf6b0bb6d49 | [
"MIT"
] | 5 | 2018-07-01T17:41:40.000Z | 2021-03-31T19:06:47.000Z | defmodule OpenExchangeRates.Updater do
@moduledoc """
This module takes care of updating the cache with new conversion rates from openexchangerates.org and is for internal use only.
"""
require Logger
@update_interval_in_seconds 60
def cache_file, do: Application.get_env(:open_exchange_rates, :cache_file... | 27.114286 | 129 | 0.683878 |
f71c6bfebcd7ba37e1a2abdb75f4c8353e9d4a91 | 1,419 | ex | Elixir | lib/plug/logger.ex | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | lib/plug/logger.ex | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | deps/plug/lib/plug/logger.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | defmodule Plug.Logger do
@moduledoc """
A plug for logging basic request information in the format:
GET /index.html
Sent 200 in 572ms
To use it, just plug it into the desired module.
plug Plug.Logger, log: :debug
## Options
* `:log` - The log level at which this plug should log its re... | 24.894737 | 98 | 0.648344 |
f71ca810f2e75bc5330260800af416800a233897 | 3,245 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/sdf.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/sdf.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/sdf.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.5625 | 187 | 0.669954 |
f71d10ef4d525194bd117aa4da56342f14daa9ad | 710 | exs | Elixir | mix.exs | Plus17/openpayex | dbff5051254fd3c040f86364cf40793804af9e66 | [
"MIT"
] | null | null | null | mix.exs | Plus17/openpayex | dbff5051254fd3c040f86364cf40793804af9e66 | [
"MIT"
] | 1 | 2019-08-19T03:53:19.000Z | 2019-08-19T03:53:19.000Z | mix.exs | Plus17/openpayex | dbff5051254fd3c040f86364cf40793804af9e66 | [
"MIT"
] | null | null | null | defmodule Openpayex.MixProject do
use Mix.Project
def project do
[
app: :openpayex,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra... | 21.515152 | 64 | 0.543662 |
f71d1713a32415580a0dde30a20d77da8cfc9835 | 4,396 | ex | Elixir | clients/content/lib/google_api/content/v21/model/return_policy_online.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/return_policy_online.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/return_policy_online.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... | 55.64557 | 309 | 0.719973 |
f71d1de0cc720dffe1a3882003c4f97f925d073f | 28,367 | exs | Elixir | apps/astarte_appengine_api/test/astarte_appengine_api_web/channels/rooms_channel_test.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_appengine_api/test/astarte_appengine_api_web/channels/rooms_channel_test.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_appengine_api/test/astarte_appengine_api_web/channels/rooms_channel_test.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 Ispirata Srl
#
# 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 appl... | 32.568312 | 100 | 0.627913 |
f71d6a263943d2e862c749223e02e172bb72836a | 2,333 | ex | Elixir | lib/chat_api_web/channels/user_socket.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api_web/channels/user_socket.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api_web/channels/user_socket.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.UserSocket do
use Phoenix.Socket
## Channels
channel("room:*", ChatApiWeb.RoomChannel)
channel("conversation:*", ChatApiWeb.ConversationChannel)
channel("notification:*", ChatApiWeb.NotificationChannel)
channel("events:*", ChatApiWeb.EventChannel)
channel("issue:*", ChatApiWeb.IssueC... | 32.402778 | 84 | 0.69267 |
f71d97f62937a470427b23c183fdaf58d0447587 | 1,547 | exs | Elixir | apps/wechat_base/test/wechat_base/api/endpoint/body_type/json_test.exs | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/test/wechat_base/api/endpoint/body_type/json_test.exs | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/test/wechat_base/api/endpoint/body_type/json_test.exs | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatBase.Api.Endpoint.BodyType.JsonTest do
use WechatBase.Api.Endpoint.BodyType.Case
alias WechatBase.Api.Endpoint.BodyType.Json
alias Maxwell.Conn
test "should embed a valid body" do
opts = Json.init([
{:string, "string", %{}, []},
{:integer, "integer", %{}, []},
{:float, "f... | 30.333333 | 85 | 0.50808 |
f71dada897e8413deb64c18327ed2870ca4487d2 | 1,027 | exs | Elixir | test/edgedb/protocol/codecs/custom/short_str_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | test/edgedb/protocol/codecs/custom/short_str_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | test/edgedb/protocol/codecs/custom/short_str_test.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule Tests.EdgeDB.Protocol.Codecs.Custom.ShortStrTest do
use Tests.Support.EdgeDBCase
alias EdgeDB.Protocol.Error
alias Tests.Support.Codecs
setup do
{:ok, conn} =
start_supervised(
{EdgeDB, codecs: [Codecs.ShortStr], show_sensitive_data_on_connection_error: true}
)
%{conn: ... | 25.675 | 103 | 0.669912 |
f71dc6896700f4cbd6019dbe8b7a7507ef736cd9 | 1,429 | ex | Elixir | lib/ex_slack_notifier/attachment.ex | giraphme/ex_slack_notifier | 065ae95d4c3eb1deb4b407e3751833d6691060ee | [
"MIT"
] | null | null | null | lib/ex_slack_notifier/attachment.ex | giraphme/ex_slack_notifier | 065ae95d4c3eb1deb4b407e3751833d6691060ee | [
"MIT"
] | null | null | null | lib/ex_slack_notifier/attachment.ex | giraphme/ex_slack_notifier | 065ae95d4c3eb1deb4b407e3751833d6691060ee | [
"MIT"
] | null | null | null | defmodule ExSlackNotifier.Attachment do
@type t :: %__MODULE__{
fallback: String.t(),
color: String.t(),
pretext: String.t(),
author_name: String.t(),
author_link: String.t(),
author_icon: String.t(),
title: String.t(),
title_link: String... | 23.42623 | 69 | 0.541638 |
f71e0b4808b26f127c37fefc12777cc04035c437 | 1,287 | exs | Elixir | mix.exs | wesleimp/vroom-elixir | 5c0bc5a8c9ce02f6415eb06a568f3310dfd8977d | [
"MIT"
] | 5 | 2021-04-14T15:02:59.000Z | 2021-04-28T19:18:00.000Z | mix.exs | wesleimp/vroom-elixir | 5c0bc5a8c9ce02f6415eb06a568f3310dfd8977d | [
"MIT"
] | 5 | 2021-04-13T22:03:29.000Z | 2021-05-12T12:47:41.000Z | mix.exs | wesleimp/vroom-elixir | 5c0bc5a8c9ce02f6415eb06a568f3310dfd8977d | [
"MIT"
] | 2 | 2021-04-14T16:39:35.000Z | 2021-04-28T19:17:53.000Z | defmodule VROOM.MixProject do
use Mix.Project
@version "0.1.6"
@source_url "https://github.com/wesleimp/vroom-elixir"
def project do
[
app: :vroom,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
description:
"Implementat... | 21.098361 | 97 | 0.540793 |
f71e4d97771c7d7dd592f565b92ed80eb1a4c2f9 | 1,743 | exs | Elixir | config/dev.exs | douglastofoli/rocketpay | 66dfe3b4d21cf3f1d23a98639f56c797156d6816 | [
"MIT"
] | 1 | 2021-02-27T00:16:26.000Z | 2021-02-27T00:16:26.000Z | config/dev.exs | douglastofoli/rocketpay | 66dfe3b4d21cf3f1d23a98639f56c797156d6816 | [
"MIT"
] | null | null | null | config/dev.exs | douglastofoli/rocketpay | 66dfe3b4d21cf3f1d23a98639f56c797156d6816 | [
"MIT"
] | 1 | 2021-02-27T01:26:17.000Z | 2021-02-27T01:26:17.000Z | use Mix.Config
# Configure your database
config :rocketpay, Rocketpay.Repo,
username: System.get_env("DB_DEV_USERNAME"),
password: System.get_env("DB_DEV_PASSWORD"),
database: System.get_env("DB_DEV_DATABASE"),
hostname: System.get_env("DB_DEV_HOST"),
show_sensitive_data_on_connection_error: true,
pool_siz... | 30.051724 | 68 | 0.733792 |
f71e4efc7a1c5595d279069e563bc7c3cd696416 | 1,183 | exs | Elixir | installer/templates/new/test/views/error_view_test.exs | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | 1 | 2019-06-11T20:22:21.000Z | 2019-06-11T20:22:21.000Z | installer/templates/new/test/views/error_view_test.exs | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | installer/templates/new/test/views/error_view_test.exs | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | defmodule <%= application_module %>.ErrorViewTest do
use <%= application_module %>.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
<%= if html do %>test "renders 404.html" do
assert render_to_string(<%= application_module %>.ErrorView, "404.html",... | 33.8 | 83 | 0.6306 |
f71e548a0a157bfa89bd3494770630bc6a06a619 | 1,381 | ex | Elixir | test/support/data_case.ex | spawnfest/fuchsia-team | 26aa4ee5a6e8ab023ef9038a35b35f4deed16a7d | [
"MIT"
] | 2 | 2019-05-25T18:34:43.000Z | 2020-01-20T17:35:31.000Z | test/support/data_case.ex | spawnfest/fuchsia-team | 26aa4ee5a6e8ab023ef9038a35b35f4deed16a7d | [
"MIT"
] | 1 | 2019-01-25T19:16:23.000Z | 2019-08-30T18:40:10.000Z | test/support/data_case.ex | spawnfest/fuchsia-team | 26aa4ee5a6e8ab023ef9038a35b35f4deed16a7d | [
"MIT"
] | null | null | null | defmodule Eligit.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,
it cannot be async. For this reason, every test ... | 25.574074 | 77 | 0.679218 |
f71e7f0c8fb5660395f14ec2e883978938e744d4 | 776 | ex | Elixir | lib/anchore_engine_api_server/model/api_error_response.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/api_error_response.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/api_error_response.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | # 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 AnchoreEngineAPIServer.Model.ApiErrorResponse do
@moduledoc """
Generic HTTP API error response
"""
@derive [Poison.Encoder]
defstruct ... | 22.823529 | 82 | 0.706186 |
f71e8810141e7a873b144bf6cdb71987ee2f139b | 1,641 | exs | Elixir | config/dev.exs | c18t/elixir-phx-websocket-chat | 4dc921599b263a856a23d04200631bfee83e3fc3 | [
"WTFPL"
] | null | null | null | config/dev.exs | c18t/elixir-phx-websocket-chat | 4dc921599b263a856a23d04200631bfee83e3fc3 | [
"WTFPL"
] | null | null | null | config/dev.exs | c18t/elixir-phx-websocket-chat | 4dc921599b263a856a23d04200631bfee83e3fc3 | [
"WTFPL"
] | 1 | 2020-11-17T08:23:18.000Z | 2020-11-17T08:23:18.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :websocket_chat, WebsocketChatWeb.Endpoint,
ht... | 33.489796 | 170 | 0.718464 |
f71e9ed6d769fa0f013dc3b66aad1123ec69b4db | 753 | ex | Elixir | web/router.ex | ssuprunenko/phoenix-vue-2-example | 78498514927ed507ef911877f9fea8ef88541193 | [
"MIT"
] | 67 | 2016-10-01T03:17:18.000Z | 2021-01-17T15:04:27.000Z | web/router.ex | marvelperseus/phoenix-vue-2-example | 78498514927ed507ef911877f9fea8ef88541193 | [
"MIT"
] | 1 | 2017-01-03T11:30:20.000Z | 2017-01-03T11:30:20.000Z | web/router.ex | marvelperseus/phoenix-vue-2-example | 78498514927ed507ef911877f9fea8ef88541193 | [
"MIT"
] | 10 | 2016-10-15T15:36:46.000Z | 2019-07-29T01:58:03.000Z | defmodule Web.Router do
use Web.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Web do
pipe_through :browser ... | 22.818182 | 73 | 0.667995 |
f71ea26b00e5795a5dcecd7b57063547b922c676 | 216 | exs | Elixir | priv/repo/migrations/20160327180557_add_email_index.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | priv/repo/migrations/20160327180557_add_email_index.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | priv/repo/migrations/20160327180557_add_email_index.exs | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.Repo.Migrations.AddEmailIndex do
use Ecto.Migration
def change do
create unique_index(:users, [:email])
create index(:employees, [:email])
create index(:sessions, [:email])
end
end
| 21.6 | 48 | 0.708333 |
f71ea2bbbf9166fb0fbbaabc8d325ce7c78507a0 | 2,594 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/o_auth_requirements.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/o_auth_requirements.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/o_auth_requirements.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... | 55.191489 | 967 | 0.771781 |
f71eaa1574f7bca55df367ef435db06d5dffdcca | 116 | ex | Elixir | assets/resolvers.ex | valerybugakov/gqlSlides | 7ca310b222738673abbecbfa7345acd316b28008 | [
"MIT"
] | null | null | null | assets/resolvers.ex | valerybugakov/gqlSlides | 7ca310b222738673abbecbfa7345acd316b28008 | [
"MIT"
] | null | null | null | assets/resolvers.ex | valerybugakov/gqlSlides | 7ca310b222738673abbecbfa7345acd316b28008 | [
"MIT"
] | null | null | null | function getViewer(request) {
return request.auth.user
}
function getUserName(user) {
return user.getName()
}
| 12.888889 | 29 | 0.732759 |
f71eaa8af4ce330d116f2b0f2c1870cac8f69350 | 1,858 | ex | Elixir | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1beta1/model/list_domains_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1beta1/model/list_domains_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1beta1/model/list_domains_response.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... | 37.16 | 157 | 0.748116 |
f71eb19861fbef63e11126c590faf041c89c0e87 | 435 | ex | Elixir | lib/pippo/flow.ex | pippo-ex/pippo | 5d8666a53414855647ed95b122dcf43f299c81be | [
"MIT"
] | null | null | null | lib/pippo/flow.ex | pippo-ex/pippo | 5d8666a53414855647ed95b122dcf43f299c81be | [
"MIT"
] | null | null | null | lib/pippo/flow.ex | pippo-ex/pippo | 5d8666a53414855647ed95b122dcf43f299c81be | [
"MIT"
] | null | null | null | defmodule Pippo.Flow do
use Supervisor
def start_link(opts) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
def init(_opts) do
children =
Enum.map(Application.get_env(:pippo, :producers), fn {mod, args} -> worker(mod, args) end) ++
Enum.map(Application.get_env(:pippo, :con... | 27.1875 | 99 | 0.689655 |
f71eb7839b7c108f9dc55b342750b35499c13da8 | 2,890 | ex | Elixir | rustler_mix/lib/mix/tasks/rustler.new.ex | BurntCaramel/rustler | 9ece1e1da22f1a99383c04302549d6a5cd6abe34 | [
"Apache-2.0",
"MIT"
] | null | null | null | rustler_mix/lib/mix/tasks/rustler.new.ex | BurntCaramel/rustler | 9ece1e1da22f1a99383c04302549d6a5cd6abe34 | [
"Apache-2.0",
"MIT"
] | null | null | null | rustler_mix/lib/mix/tasks/rustler.new.ex | BurntCaramel/rustler | 9ece1e1da22f1a99383c04302549d6a5cd6abe34 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Mix.Tasks.Rustler.New do
use Mix.Task
import Mix.Generator
@shortdoc "Creates a new Rustler project"
@moduledoc """
Generates boilerplate for a new Rustler project.
Usage:
mix rustler.new path
"""
@basic [
{:eex, "basic/.cargo/config", ".cargo/config"},
{:eex, "basic/README.md", "... | 25.575221 | 109 | 0.624913 |
f71f2df182ee3c16df81509cadddb7d24e7e2f91 | 120 | ex | Elixir | tags_service/lib/nlw07_heat_tags/repo.ex | miguelriosoliveira/dowhile-mural | 3f616bf7d536f0442b41f6f8795af43ed54e61a0 | [
"MIT"
] | null | null | null | tags_service/lib/nlw07_heat_tags/repo.ex | miguelriosoliveira/dowhile-mural | 3f616bf7d536f0442b41f6f8795af43ed54e61a0 | [
"MIT"
] | null | null | null | tags_service/lib/nlw07_heat_tags/repo.ex | miguelriosoliveira/dowhile-mural | 3f616bf7d536f0442b41f6f8795af43ed54e61a0 | [
"MIT"
] | null | null | null | defmodule Nlw07HeatTags.Repo do
use Ecto.Repo,
otp_app: :nlw07_heat_tags,
adapter: Ecto.Adapters.Postgres
end
| 20 | 35 | 0.758333 |
f71f8908438d209b4986aad944064b33996cbcd2 | 1,543 | ex | Elixir | apps/pipeline/lib/pipeline/writer/table_writer/statement.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/pipeline/lib/pipeline/writer/table_writer/statement.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/pipeline/lib/pipeline/writer/table_writer/statement.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Pipeline.Writer.TableWriter.Statement do
@moduledoc false
alias Pipeline.Writer.TableWriter.Statement.{Create, Insert}
require Logger
defmodule FieldTypeError do
@moduledoc false
defexception message: "Encountered an unsupported field type"
end
def create(%{table: name, as: select}) do... | 23.738462 | 104 | 0.648088 |
f71fab9aff5423144a6765aafae68c3f50d2bfe6 | 18,323 | exs | Elixir | test/manager_test.exs | rentpath/slack_queue_bot | 0fc6b8b729f05e752511baca810df1f9f9d425a6 | [
"MIT"
] | 1 | 2020-01-13T22:09:09.000Z | 2020-01-13T22:09:09.000Z | test/manager_test.exs | rentpath/slack_queue_bot | 0fc6b8b729f05e752511baca810df1f9f9d425a6 | [
"MIT"
] | 5 | 2017-10-23T19:33:42.000Z | 2019-01-18T15:16:13.000Z | test/manager_test.exs | rentpath/slack_queue_bot | 0fc6b8b729f05e752511baca810df1f9f9d425a6 | [
"MIT"
] | null | null | null | defmodule QueueBot.ManagerTest do
use ExUnit.Case, async: true
setup do
{:ok, %{channel: make_ref()}}
end
describe "#help" do
test "returns help items", %{channel: channel} do
name = Application.get_env(:queue_bot, :slack)[:name]
help_items = QueueBot.Manager.call({channel, {:help}})
... | 43.834928 | 121 | 0.594226 |
f71fb304453806b24d9ec2993c364189af58b3f7 | 2,400 | ex | Elixir | pragprog/sab.ex | jnj16180340/elixir-notes | db0ec5a1725491848572272ade4a81891610002d | [
"Unlicense"
] | null | null | null | pragprog/sab.ex | jnj16180340/elixir-notes | db0ec5a1725491848572272ade4a81891610002d | [
"Unlicense"
] | null | null | null | pragprog/sab.ex | jnj16180340/elixir-notes | db0ec5a1725491848572272ade4a81891610002d | [
"Unlicense"
] | null | null | null | defmodule SAB do
@exercise "StringsAndBinaries-1"
# The (? ) to get char code syntax is really bad,
# is there another way to get char code?
# Sigils example: Note that
# SAB.printable?(~c'123\n') => false
# SAB.printable?(~C'123\n') => true
def printable?(lin) do
List.foldl(lin, true, fn(val, acc) ->... | 37.5 | 111 | 0.680833 |
f71fee667379296e6f37f9eca02bf1e0de07fff3 | 2,518 | exs | Elixir | test/scanner_test.exs | myhobnob/exmoji | 08ddcf90ff51942f70674be79f36195d56bf7f11 | [
"MIT"
] | null | null | null | test/scanner_test.exs | myhobnob/exmoji | 08ddcf90ff51942f70674be79f36195d56bf7f11 | [
"MIT"
] | 1 | 2019-03-08T18:55:47.000Z | 2019-03-08T19:24:39.000Z | test/scanner_test.exs | myhobnob/exmoji | 08ddcf90ff51942f70674be79f36195d56bf7f11 | [
"MIT"
] | null | null | null | defmodule ScannerTest do
use ExUnit.Case, async: true
alias Exmoji.Scanner
@case_exact "🚀"
@case_multi "\u{0023}\u{FE0F}\u{20E3}"
@case_variant "flying on my 🚀 to visit the 👾 people."
@case_multivariant "first a \u{0023}\u{FE0F}\u{20E3} then a 🚀"
@case_duplicates "flying my... | 35.464789 | 110 | 0.677919 |
f720307c27c02bc0f4bb3a2b7d8268e932d120a6 | 48,377 | exs | Elixir | lib/elixir/test/elixir/typespec_test.exs | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/typespec_test.exs | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/typespec_test.exs | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
# Holds tests for both Kernel.Typespec and Code.Typespec
defmodule TypespecTest do
use ExUnit.Case, async: true
alias TypespecTest.TypespecSample
defstruct [:hello]
defmacrop test_module(do: block) do
quote do
{:module, _, bytecode, _} =
defmodu... | 33.688719 | 110 | 0.534758 |
f7204f7dd022be886af666f0273dd762b3f80851 | 6,210 | exs | Elixir | test/madari_web/controllers/user_auth_test.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | test/madari_web/controllers/user_auth_test.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | test/madari_web/controllers/user_auth_test.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | defmodule MadariWeb.UserAuthTest do
use MadariWeb.ConnCase
alias Madari.Accounts
alias MadariWeb.UserAuth
import Madari.AccountsFixtures
@remember_me_cookie "_madari_web_user_remember_me"
setup %{conn: conn} do
conn =
conn
|> Map.replace!(:secret_key_base, MadariWeb.Endpoint.config(:secre... | 36.315789 | 98 | 0.675845 |
f72081032316d03276466843cabc457381f7cf51 | 9,765 | ex | Elixir | lib/sanbase/clickhouse/historical_balance/historical_balance.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase/clickhouse/historical_balance/historical_balance.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase/clickhouse/historical_balance/historical_balance.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.Clickhouse.HistoricalBalance do
@moduledoc ~s"""
Module providing functions for historical balances and balance changes.
This module dispatches to underlaying modules and serves as common interface
for many different database tables and schemas.
"""
use AsyncWith
import Sanbase.Utils.T... | 34.62766 | 148 | 0.664209 |
f720b6d604e9bc8228d656ca760249b163fe1c86 | 1,007 | ex | Elixir | lib/azk_dns/options.ex | azukiapp/azk-dns | 88fe8d4ec94c817401be970f0a334db1e3b6a127 | [
"Apache-2.0"
] | 2 | 2015-06-13T03:34:57.000Z | 2015-10-25T05:25:00.000Z | lib/azk_dns/options.ex | azukiapp/azk-dns | 88fe8d4ec94c817401be970f0a334db1e3b6a127 | [
"Apache-2.0"
] | null | null | null | lib/azk_dns/options.ex | azukiapp/azk-dns | 88fe8d4ec94c817401be970f0a334db1e3b6a127 | [
"Apache-2.0"
] | null | null | null | defmodule AzkDns.Options do
@fields [ip: nil, domains: "", pattern: nil]
Record.deffunctions(@fields, __ENV__)
Record.import __MODULE__, as: :opts
def new(ip, domains // "dev.azk.io") do
opts().domains(domains).ip(ip)
end
defoverridable ip: 2
def ip(address, opts() = opts) when is_bitstring(address... | 25.820513 | 74 | 0.632572 |
f720c137e7d4277f3b07ef6f9754d63b9e1f2b24 | 2,110 | ex | Elixir | clients/network_connectivity/lib/google_api/network_connectivity/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_connectivity/lib/google_api/network_connectivity/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_connectivity/lib/google_api/network_connectivity/v1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.2 | 317 | 0.745972 |
f720d31bf2809160867b6b6dd4ae96f11146e4cb | 3,652 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v2/api/pagespeedapi.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v2/api/pagespeedapi.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v2/api/pagespeedapi.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... | 45.08642 | 217 | 0.709474 |
f720ea4268d41136e5dfad93c713cbdcce6d39ba | 1,516 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/bucket_lifecycle_action.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_lifecycle_action.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_lifecycle_action.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... | 32.956522 | 127 | 0.754617 |
f72120ae4f7dc167b0c6fe0f3a1258df7b9ad797 | 1,624 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_cloud_storage_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_cloud_storage_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_cloud_storage_options.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.833333 | 108 | 0.77032 |
f72121c8c43f7e731919ffdcadd03ea509a5a4fd | 646 | ex | Elixir | lib/sonata_seed/numeric.ex | exstruct/sonata_seed | 965c88251190b22356326bd147ad60b191f7d439 | [
"MIT"
] | null | null | null | lib/sonata_seed/numeric.ex | exstruct/sonata_seed | 965c88251190b22356326bd147ad60b191f7d439 | [
"MIT"
] | null | null | null | lib/sonata_seed/numeric.ex | exstruct/sonata_seed | 965c88251190b22356326bd147ad60b191f7d439 | [
"MIT"
] | null | null | null | defmodule Sonata.Seed.Numeric do
use Bolero
alias Bolero.Generators, as: G
# https://www.postgresql.org/docs/9.1/static/datatype-numeric.html
def smallint() do
int(-32768, 32767)
end
def integer() do
int(-2147483648, 2147483647)
end
def bigint() do
int(-9223372036854775808, 9223372036854... | 14.681818 | 68 | 0.648607 |
f721916307f89b4e375fc1fe9d38aa62b5baf1c4 | 558 | ex | Elixir | lib/aspekt/features/milestone_description.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt/features/milestone_description.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt/features/milestone_description.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | defmodule Aspekt.Features.MilestoneDescription do
use Ecto.Schema
import Ecto.Changeset
alias Aspekt.Features.MilestoneDescription
schema "milestone_description" do
field :effort, :integer
field :name, :string
field :node_id, :integer
field :sequence, :integer
timestamps()
end
@doc f... | 24.26087 | 74 | 0.718638 |
f721d888cdea6fe3da1256f4254680507e3a5a5a | 594 | exs | Elixir | test/tesla/adapter/hackney_test.exs | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | 1 | 2020-12-21T03:45:23.000Z | 2020-12-21T03:45:23.000Z | test/tesla/adapter/hackney_test.exs | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | null | null | null | test/tesla/adapter/hackney_test.exs | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | null | null | null | defmodule Tesla.Adapter.HackneyTest do
use ExUnit.Case
use Tesla.AdapterCase, adapter: Tesla.Adapter.Hackney
use Tesla.AdapterCase.Basic
use Tesla.AdapterCase.Multipart
use Tesla.AdapterCase.StreamRequestBody
use Tesla.AdapterCase.SSL,
ssl_options: [
cacertfile: "#{:code.priv_dir(:httparrot)}/ss... | 22.846154 | 68 | 0.678451 |
f721d94225fe497a28ed70ed0afa704bc4928a9e | 300 | ex | Elixir | lib/mix/tasks/compile.simple_make.ex | NatTuck/script_tools | 48f3f96599e58360ff815a3d8f266b9255322105 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/compile.simple_make.ex | NatTuck/script_tools | 48f3f96599e58360ff815a3d8f266b9255322105 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/compile.simple_make.ex | NatTuck/script_tools | 48f3f96599e58360ff815a3d8f266b9255322105 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.SimpleMake do
def run(_args) do
{output, code} = System.cmd("make", [])
if code == 0 do
unless output =~ ~r/up to date/ do
IO.binwrite(output)
end
:ok
else
IO.binwrite(output)
{:error, "compile error"}
end
end
end
| 20 | 43 | 0.57 |
f721fe7de4db15dd73f33fdb55eded8ca2405ca2 | 1,742 | exs | Elixir | mix.exs | G-Corp/rfile | 64464534904c026211f23ab735ea6b15ea17401c | [
"BSD-3-Clause"
] | 5 | 2018-05-11T08:40:11.000Z | 2019-01-26T19:33:17.000Z | mix.exs | G-Corp/rfile | 64464534904c026211f23ab735ea6b15ea17401c | [
"BSD-3-Clause"
] | null | null | null | mix.exs | G-Corp/rfile | 64464534904c026211f23ab735ea6b15ea17401c | [
"BSD-3-Clause"
] | 2 | 2018-06-18T08:41:04.000Z | 2021-08-02T14:40:02.000Z | # File: mix.exs
# This file was generated from rebar.config
# Using rebar3_elixir (https://github.com/G-Corp/rebar3_elixir)
# MODIFY IT AT YOUR OWN RISK AND ONLY IF YOU KNOW WHAT YOU ARE DOING!
defmodule Rfile.Mixfile do
use Mix.Project
def project do
[
app: :rfile,
version: "0.2.0",
elixir: ... | 22.623377 | 77 | 0.578071 |
f721ff74d8927ce6e9f7dce424d777426f3957c9 | 1,946 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accountstatuses_custom_batch_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accountstatuses_custom_batch_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accountstatuses_custom_batch_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.381818 | 204 | 0.748715 |
f7220447845044e70d7e05d3aa0918311a0620ab | 345 | ex | Elixir | lib/stixex/vocabulary/threat_actor_label.ex | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | 1 | 2019-05-07T22:44:45.000Z | 2019-05-07T22:44:45.000Z | lib/stixex/vocabulary/threat_actor_label.ex | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | null | null | null | lib/stixex/vocabulary/threat_actor_label.ex | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | null | null | null | defmodule StixEx.Vocabulary.ThreatActorLabel do
@behaviour StixEx.Vocabulary
@impl StixEx.Vocabulary
def values do
~w[
activist
competitor
crime-syndicate
criminal
hacker
insider-accidental
insider-disgruntled
nation-state
sensationalist
spy
t... | 16.428571 | 47 | 0.649275 |
f7221ec3eb41628ba791130e1a7b351f317f05c5 | 1,886 | ex | Elixir | lib/nostrum/shard/intents.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/shard/intents.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/shard/intents.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | defmodule Nostrum.Shard.Intents do
@moduledoc false
import Bitwise
@privileged_intents [
:guild_members,
:guild_presences,
:message_content
]
@spec intent_values :: [{atom, integer()}, ...]
def intent_values do
[
guilds: 1 <<< 0,
guild_members: 1 <<< 1,
guild_bans: 1 <<<... | 26.942857 | 85 | 0.64316 |
f722656c665062eabf00133c379a895531920a40 | 1,810 | exs | Elixir | mix.exs | qilongxu/tz_world | 010ffae5846006d27fbf613855fb58ee6a40ad33 | [
"MIT"
] | null | null | null | mix.exs | qilongxu/tz_world | 010ffae5846006d27fbf613855fb58ee6a40ad33 | [
"MIT"
] | null | null | null | mix.exs | qilongxu/tz_world | 010ffae5846006d27fbf613855fb58ee6a40ad33 | [
"MIT"
] | null | null | null | defmodule TzWorld.Mixfile do
use Mix.Project
@version "0.4.0"
def project do
[
app: :tz_world,
name: "TzWord",
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
source_url: "https://github.com/kimlai/tz_world... | 21.294118 | 88 | 0.529282 |
f722c5e4b91305b8d795d8659f1b35cc24afc882 | 455 | ex | Elixir | lib/bot/commands/del.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | lib/bot/commands/del.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | lib/bot/commands/del.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | defmodule Lanyard.DiscordBot.Commands.Del do
alias Lanyard.DiscordBot.DiscordApi
def handle([key], payload) do
Lanyard.KV.Interface.del(payload["author"]["id"], key)
DiscordApi.send_message(payload["channel_id"], ":white_check_mark: Deleted key: `#{key}`")
end
def handle(_, payload) do
DiscordApi... | 23.947368 | 94 | 0.679121 |
f722c6765ec2f3b776baaa3121d9ef1ef896f640 | 2,868 | exs | Elixir | test/arango/utils_test.exs | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | test/arango/utils_test.exs | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | test/arango/utils_test.exs | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | 3 | 2018-03-27T09:47:04.000Z | 2019-11-04T22:41:46.000Z | defmodule UtilsTest do
use ExUnit.Case
doctest Arango
alias Arango.Utils
test "opts_to_headers" do
assert %{} = Utils.opts_to_headers([], [])
assert %{} = Utils.opts_to_headers([], [:foo])
assert %{"Foo" => 1} = Utils.opts_to_headers([foo: 1], [:foo, :bar, :baz])
assert %{"Foo" => 1, "Bar" => ... | 46.258065 | 118 | 0.589609 |
f722f8209c1bcfcbaf2048ffbabaeb52b2f6d2cf | 376 | ex | Elixir | web/views/error_view.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | web/views/error_view.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | web/views/error_view.ex | voidlock/ssl_bench | 49dcea2ea8596cfcc7073df90d42536c168351c3 | [
"MIT"
] | null | null | null | defmodule SslBench.ErrorView do
use SslBench.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templat... | 20.888889 | 47 | 0.699468 |
f72327a8fbde64876a4fcfaf28be4890a8156207 | 1,140 | ex | Elixir | installer/lib/mix/tasks/still.new.ex | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | 2 | 2021-02-15T07:55:38.000Z | 2021-03-05T18:04:53.000Z | installer/lib/mix/tasks/still.new.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | installer/lib/mix/tasks/still.new.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | 1 | 2021-04-14T16:12:32.000Z | 2021-04-14T16:12:32.000Z | defmodule Mix.Tasks.Still.New do
@moduledoc """
Creates a new Still project.
Expects the project name as an argument.
mix still.new my_site [--path PATH] [--module MODULE]
## Options
* `--path` - path where the project should be created.
* `--module` - name of the base module to be generated.
""... | 20.727273 | 66 | 0.547368 |
f72334e5a71b316871b3e5921a16639f75c757ff | 339 | exs | Elixir | apps/artemis/priv/repo/migrations/20200514130559_add_value_number_and_value_percent_to_event_answers.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/priv/repo/migrations/20200514130559_add_value_number_and_value_percent_to_event_answers.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/priv/repo/migrations/20200514130559_add_value_number_and_value_percent_to_event_answers.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.Repo.Migrations.AddValueNumberAndValuePercentToEventAnswers do
use Ecto.Migration
def change do
alter table(:event_answers) do
add :value_number, :numeric
add :value_percent, :integer
end
create index(:event_answers, :value_number)
create index(:event_answers, :value_... | 24.214286 | 80 | 0.749263 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.