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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9075dbcd47c67945b061cee91ff2ee76644656e | 2,501 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/custom_attribute_histogram_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/custom_attribute_histogram_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/custom_attribute_histogram_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 45.472727 | 300 | 0.764894 |
e907607ddfe913b7263214c10e4d44b92a8d47fe | 1,119 | ex | Elixir | test/support/channel_case.ex | abmBispo/keycloak-poc | 3730a1966e737370cdd22d9f457770224999068e | [
"MIT"
] | 1 | 2021-10-24T00:47:19.000Z | 2021-10-24T00:47:19.000Z | test/support/channel_case.ex | abmBispo/keycloak-poc | 3730a1966e737370cdd22d9f457770224999068e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | abmBispo/keycloak-poc | 3730a1966e737370cdd22d9f457770224999068e | [
"MIT"
] | null | null | null | defmodule KeyCloakPocWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interac... | 30.243243 | 92 | 0.741734 |
e9076bfdc85787d464b66ca3005b43858de93068 | 994 | exs | Elixir | ping_elixir/config/config.exs | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | ping_elixir/config/config.exs | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"MIT"
] | null | null | null | ping_elixir/config/config.exs | tedpark/Clojure_Elixir_Concurrent_Ping | 44fd2cc7b4056332998695de46b37c3e3ff54be7 | [
"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
# Configures the endpoint
config :ping_elixir, P... | 34.275862 | 86 | 0.775654 |
e9077b1a5df33d0a17315a703beaf6a9bda00fdc | 1,632 | ex | Elixir | lib/mango_web/endpoint.ex | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | lib/mango_web/endpoint.ex | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | lib/mango_web/endpoint.ex | Mdlkxzmcp/mango | 0009f3ce5d45e392496cdfbd7fa5ad545b65bf04 | [
"MIT"
] | null | null | null | defmodule MangoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :mango
socket "/socket", MangoWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 28.631579 | 95 | 0.704657 |
e907a72a317c5d2b60e21b44a0c3ddc7a8bfe4c5 | 11,902 | ex | Elixir | lib/rabbit_mq/consumer/consumer.ex | szTheory/rabbit_mq | 14d9be5ae488bee82528f8ead279f6dabac48be5 | [
"MIT"
] | null | null | null | lib/rabbit_mq/consumer/consumer.ex | szTheory/rabbit_mq | 14d9be5ae488bee82528f8ead279f6dabac48be5 | [
"MIT"
] | null | null | null | lib/rabbit_mq/consumer/consumer.ex | szTheory/rabbit_mq | 14d9be5ae488bee82528f8ead279f6dabac48be5 | [
"MIT"
] | null | null | null | defmodule RabbitMQ.Consumer do
@moduledoc """
This module can be `use`d to start and maintain a pool of Consumer workers.
## Example usage
`rabbit_mq` allows you to design consistent, SDK-like Consumers.
ℹ️ The following example assumes that the `"customer/customer.updated"` queue already exists.
First,... | 32.969529 | 127 | 0.666191 |
e907a754750aa03a9d2a50c3267e714524d5b971 | 1,205 | ex | Elixir | test/support/conn_case.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | defmodule RefWeb.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 te... | 30.125 | 84 | 0.727801 |
e907bddc153bbf8884b1266f6e8955ece98585ec | 1,265 | ex | Elixir | lib/credo/cli.ex | ityonemo/credo | a95a404cb42df0b5074f23db029a1b20932934fe | [
"MIT"
] | null | null | null | lib/credo/cli.ex | ityonemo/credo | a95a404cb42df0b5074f23db029a1b20932934fe | [
"MIT"
] | null | null | null | lib/credo/cli.ex | ityonemo/credo | a95a404cb42df0b5074f23db029a1b20932934fe | [
"MIT"
] | 1 | 2019-10-08T16:42:40.000Z | 2019-10-08T16:42:40.000Z | defmodule Credo.CLI do
@moduledoc """
`Credo.CLI` is the entrypoint for both the Mix task and the escript.
"""
alias Credo.Execution
alias Credo.CLI.Output.CaptureIO
@doc """
Runs Credo with the given `argv` and exits the process.
See `Credo.run/1` if you want to run Credo programmatically.
"""
d... | 20.737705 | 88 | 0.674308 |
e907d8a4388ef173749c776ef7fadb43db8c240c | 2,447 | ex | Elixir | lib/health_web/live/glucose/index_live.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | lib/health_web/live/glucose/index_live.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | lib/health_web/live/glucose/index_live.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule HealthWeb.GlucoseLive.Index do
use Phoenix.LiveView
alias HealthWeb.Router.Helpers, as: Routes
alias Health.Data.Glucoses
alias Health.Accounts
alias HealthWeb.GlucoseView
def render(assigns) do
GlucoseView.render("index.html", assigns)
end
def mount(%{user_id: user_id}, socket) do
... | 23.990196 | 86 | 0.619125 |
e907e95e8cff8bc79738e73614a987d2ea218519 | 6,673 | ex | Elixir | test/support/factory.ex | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | test/support/factory.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | test/support/factory.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Test.Factory do
use ExMachina.Ecto, repo: BlockchainAPI.Repo
alias BlockchainAPI.{
Schema.Account,
Schema.Block,
Schema.ConsensusMember,
Schema.ElectionTransaction,
Schema.GatewayTransaction,
Schema.Hotspot,
Schema.POCPathElement,
Schema.POCReceipt,
Schem... | 27.348361 | 78 | 0.661022 |
e907eaae687a96eda2ddf51f99ea29939d9165f3 | 23,697 | ex | Elixir | lib/data_frame.ex | app-craft/dataframe | f667d77dd87c15e18490b543bbaa3c19c9761ed7 | [
"Apache-2.0"
] | null | null | null | lib/data_frame.ex | app-craft/dataframe | f667d77dd87c15e18490b543bbaa3c19c9761ed7 | [
"Apache-2.0"
] | 1 | 2018-10-09T12:58:11.000Z | 2018-10-09T12:58:11.000Z | lib/data_frame.ex | app-craft/dataframe | f667d77dd87c15e18490b543bbaa3c19c9761ed7 | [
"Apache-2.0"
] | null | null | null | defmodule DataFrame do
@moduledoc """
Functions to create and modify a Frame, a structure with a 2D table with information, indexes and columns
"""
alias DataFrame.Table
alias DataFrame.Frame
@doc """
Creates a new Frame from a 2D table, It creates a numeric index and a numeric column array automatic... | 28.934066 | 175 | 0.612736 |
e907fa3eebd4145956f469b7e3531b1a59a9ae1d | 2,142 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_key.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_key.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... | 40.415094 | 204 | 0.744164 |
e907faf20f36f905030a8a45ebfd29217d736570 | 1,409 | ex | Elixir | apps/cam_web/lib/cam_web/telemetry.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/cam_web/lib/cam_web/telemetry.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/cam_web/lib/cam_web/telemetry.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule CamWeb.Telemetry do
@moduledoc false
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 1... | 28.18 | 86 | 0.669269 |
e907fd2d9e9ebd23adb3016d335f209febf55b87 | 31,481 | ex | Elixir | teachme/deps/gettext/lib/gettext.ex | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | teachme/deps/gettext/lib/gettext.ex | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | teachme/deps/gettext/lib/gettext.ex | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | defmodule Gettext do
@moduledoc ~S"""
The `Gettext` module provides a
[gettext](https://www.gnu.org/software/gettext/)-based API for working with
internationalized applications.
## Using Gettext
To use `Gettext`, a module that calls `use Gettext` has to be defined:
defmodule MyApp.Gettext do
... | 35.174302 | 102 | 0.700518 |
e908115d33a5ee74639f1bbebfa60f198d64543a | 2,012 | exs | Elixir | apps/statistics/config/prod.exs | dcbartlett/exFACI | ab8ba1c9490dbe22960d4241434452ba0f55f4ef | [
"MIT"
] | null | null | null | apps/statistics/config/prod.exs | dcbartlett/exFACI | ab8ba1c9490dbe22960d4241434452ba0f55f4ef | [
"MIT"
] | null | null | null | apps/statistics/config/prod.exs | dcbartlett/exFACI | ab8ba1c9490dbe22960d4241434452ba0f55f4ef | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.451613 | 67 | 0.7167 |
e908140a0662c0a47f54ad735cdd0aab8ea44153 | 913 | ex | Elixir | lib/autogenerate.ex | Swingcloud/strukt | 236c253146546f2d11b1c57e29645860f0159cc5 | [
"Apache-2.0"
] | 59 | 2021-06-09T01:47:04.000Z | 2022-03-17T23:41:22.000Z | lib/autogenerate.ex | Swingcloud/strukt | 236c253146546f2d11b1c57e29645860f0159cc5 | [
"Apache-2.0"
] | 7 | 2021-07-12T14:11:04.000Z | 2022-03-17T18:06:45.000Z | lib/autogenerate.ex | Swingcloud/strukt | 236c253146546f2d11b1c57e29645860f0159cc5 | [
"Apache-2.0"
] | 4 | 2021-06-13T13:45:31.000Z | 2021-07-01T08:34:38.000Z | defmodule Strukt.Autogenerate do
@moduledoc false
defstruct [:entity, :keys, :attr, :info]
@compile {:inline, [get: 1]}
@doc """
Returns metadata about the given module's primary keys and autogenerated fields
"""
def get(module) when is_atom(module) do
module.__schema__(:autogenerate)
|> Enum.f... | 25.361111 | 91 | 0.657174 |
e9082a3244df8b073e2713a940f49f64dfa11dbd | 1,357 | ex | Elixir | lib/community_web/endpoint.ex | elixir-china-community/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 18 | 2019-10-04T01:49:16.000Z | 2020-07-04T23:53:26.000Z | lib/community_web/endpoint.ex | elixirchina/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 2 | 2019-10-17T04:56:54.000Z | 2019-11-11T04:05:06.000Z | lib/community_web/endpoint.ex | elixir-china-community/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 5 | 2019-10-17T06:42:26.000Z | 2020-02-17T18:08:54.000Z | defmodule CommunityWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :community
socket "/socket", CommunityWeb.UserSocket,
websocket: true,
longpoll: false
socket "/live", Phoenix.LiveView.Socket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are... | 27.693878 | 69 | 0.713338 |
e9082aaf5e6d959ee8eaff58c3e068e7e874bed7 | 816 | exs | Elixir | config/test.exs | pedrosnk/erlef-website | bb8da73d09930056c9d31bcc75a92b8fb3caf6da | [
"Apache-2.0"
] | null | null | null | config/test.exs | pedrosnk/erlef-website | bb8da73d09930056c9d31bcc75a92b8fb3caf6da | [
"Apache-2.0"
] | null | null | null | config/test.exs | pedrosnk/erlef-website | bb8da73d09930056c9d31bcc75a92b8fb3caf6da | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :erlef, ErlefWeb.Endpoint,
http: [port: 4002],
server: false
config :erlef, :env, :test
config :erlef, Erlef.Mailer, adapter: Swoosh.Adapters.Test
config :erlef, :wild_apricot_base_api_url, "... | 28.137931 | 67 | 0.737745 |
e9082b72afbc7b798e3563550f69f66f0f772321 | 175 | exs | Elixir | priv/repo/migrations/20200703153637_sms_defaults_take_two.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20200703153637_sms_defaults_take_two.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20200703153637_sms_defaults_take_two.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.SmsDefaultsTakeTwo do
use Ecto.Migration
def change do
alter table(:sms_messages) do
remove :media_urls
end
end
end
| 17.5 | 59 | 0.742857 |
e90866a7727cceb9facf6d4f58980b444b36c7d8 | 1,378 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/update_project_metadata.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_resource_manager/lib/google_api/cloud_resource_manager/v3/model/update_project_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"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/v3/model/update_project_metadata.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... | 32.809524 | 100 | 0.773585 |
e9087a5dcd9ce54de69bb61659b7a2fb7dd9b7ef | 76 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/Associativity.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_two_operation_parsing_test_case/Associativity.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_two_operation_parsing_test_case/Associativity.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | one ++ two ++ three
one -- two -- three
one..two..three
one <> two <> three
| 15.2 | 19 | 0.578947 |
e90898bee4de8d9f8313a23100eaba9b07a72e98 | 74 | exs | Elixir | test/bsdc_web/views/page_view_test.exs | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | test/bsdc_web/views/page_view_test.exs | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | test/bsdc_web/views/page_view_test.exs | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | defmodule BsdcWeb.PageViewTest do
use BsdcWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
e908b973ed658647cf5051c993858131d86b6745 | 955 | ex | Elixir | apps/app_with_brunch/test/support/channel_case.ex | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/app_with_brunch/test/support/channel_case.ex | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/app_with_brunch/test/support/channel_case.ex | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | defmodule AppWithBrunch.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cann... | 23.292683 | 72 | 0.710995 |
e908c7d7c0b8477dd63b1e813d48f88a87c581e7 | 11 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_at_non_numeric_operation_parsing_test_case/DecimalWholeNumber.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_at_non_numeric_operation_parsing_test_case/DecimalWholeNumber.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_at_non_numeric_operation_parsing_test_case/DecimalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @9876543210 | 11 | 11 | 0.909091 |
e908d25eba9373128e0b4b2a41a7b2fcd4e5972a | 4,240 | exs | Elixir | test/scheduler_test.exs | Aleksion/commanded-scheduler | bebde0aabee545f6675a6974b5e28a554e4b79ed | [
"MIT"
] | 31 | 2017-11-25T00:18:12.000Z | 2022-03-03T20:11:17.000Z | test/scheduler_test.exs | Aleksion/commanded-scheduler | bebde0aabee545f6675a6974b5e28a554e4b79ed | [
"MIT"
] | 12 | 2018-01-09T21:18:30.000Z | 2021-09-06T10:35:43.000Z | test/scheduler_test.exs | Aleksion/commanded-scheduler | bebde0aabee545f6675a6974b5e28a554e4b79ed | [
"MIT"
] | 13 | 2018-02-08T15:15:11.000Z | 2020-08-13T12:25:18.000Z | defmodule Commanded.SchedulerTest do
use Commanded.Scheduler.RuntimeCase
import Commanded.Assertions.EventAssertions
alias Commanded.Helpers.Wait
alias Commanded.Scheduler
alias Commanded.Scheduler.{Batch, Jobs}
alias Timex.Duration
alias ExampleDomain.ExampleRouter
alias ExampleDomain.ExampleAggregat... | 29.041096 | 96 | 0.682311 |
e908e70605d08b6e1c82025636679748e3a8239d | 1,354 | exs | Elixir | test/liquex/context_test.exs | univers-agency/liquex | 1a12e56be21da064d092b76fa3cce9bcb192103c | [
"MIT"
] | 19 | 2020-02-29T01:37:11.000Z | 2022-03-15T06:45:20.000Z | test/liquex/context_test.exs | univers-agency/liquex | 1a12e56be21da064d092b76fa3cce9bcb192103c | [
"MIT"
] | 19 | 2020-09-02T19:35:08.000Z | 2022-03-31T21:42:16.000Z | test/liquex/context_test.exs | univers-agency/liquex | 1a12e56be21da064d092b76fa3cce9bcb192103c | [
"MIT"
] | 4 | 2020-10-20T08:22:43.000Z | 2022-01-19T17:21:32.000Z | defmodule Liquex.ContextTest do
@moduledoc false
use ExUnit.Case, async: true
alias Liquex.Context
describe "assign/3" do
test "it assigns object to a key" do
context =
%{}
|> Context.new()
|> Context.assign("test", "value")
|> Context.assign("another", "value")
... | 22.566667 | 76 | 0.537666 |
e908e80420fa7e0287b5344f8ba81338f2928503 | 1,064 | ex | Elixir | lib/koans/11_sigils.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | lib/koans/11_sigils.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | lib/koans/11_sigils.ex | magusd/elixir-koans | 7a9a0bc3658a06339ec8ecd2e2d9569ca8cf3c79 | [
"MIT"
] | null | null | null | defmodule Sigils do
use Koans
@intro "Sigils"
koan "The ~s sigil is a different way of expressing string literals" do
assert ~s{This is a string} == "This is a string"
end
koan "Sigils are useful to avoid escaping quotes in strings" do
assert "\"Welcome to the jungle\", they said." == ~s{"Welcome t... | 27.282051 | 93 | 0.613722 |
e908fe71a3341b8e16fbf192e95029c9c6baa9ec | 2,258 | ex | Elixir | lib/pusher/ws/pusher_event.ex | edgurgel/pusher | 83d6c7a5cd01e455a15fc89408ca89b64eeb16ec | [
"MIT"
] | 19 | 2015-02-12T02:22:16.000Z | 2022-01-08T18:28:54.000Z | lib/pusher/ws/pusher_event.ex | edgurgel/pusher | 83d6c7a5cd01e455a15fc89408ca89b64eeb16ec | [
"MIT"
] | 14 | 2015-06-07T08:59:51.000Z | 2021-10-08T07:25:27.000Z | lib/pusher/ws/pusher_event.ex | edgurgel/pusher | 83d6c7a5cd01e455a15fc89408ca89b64eeb16ec | [
"MIT"
] | 17 | 2015-06-06T05:24:09.000Z | 2021-10-05T19:10:42.000Z | defmodule Pusher.WS.PusherEvent do
import Jason
alias Pusher.WS.Credential
alias Pusher.WS.User
@doc """
Returns JSON for a client `event` on `channel` sending `data`
"""
def client_event(event, data, channel) do
%{event: event, data: data, channel: channel} |> encode!
end
@doc """
Return a JS... | 30.931507 | 96 | 0.649247 |
e9092290d11c781f42ea130a7566ac58cbe07a5e | 486 | exs | Elixir | config/releases.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | config/releases.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | config/releases.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | import Config
pool_size =
case System.get_env("DATABASE_POOL_SIZE") do
nil -> 10
val -> String.to_integer(val)
end
port = System.get_env("DATABASE_PORT") |> String.to_integer()
config :arrow, Arrow.Repo,
username: System.get_env("DATABASE_USER"),
database: System.get_env("DATABASE_NAME"),
hostname:... | 25.578947 | 61 | 0.718107 |
e9094f5b7820d6666099ea184946bcb0d969711f | 231 | ex | Elixir | lib/mtg/client.ex | naps62/mtg-sdk-elixir | de2d05b5f0b15dc83ed13b558f45ed82046d0f39 | [
"MIT"
] | null | null | null | lib/mtg/client.ex | naps62/mtg-sdk-elixir | de2d05b5f0b15dc83ed13b558f45ed82046d0f39 | [
"MIT"
] | null | null | null | lib/mtg/client.ex | naps62/mtg-sdk-elixir | de2d05b5f0b15dc83ed13b558f45ed82046d0f39 | [
"MIT"
] | null | null | null | defmodule MTG.Client do
use HTTPoison.Base
def process_url(endpoint) do
"https://api.magicthegathering.io/v1/" <> endpoint
end
def process_response_body(body) do
body
|> Poison.decode!(keys: :atoms)
end
end
| 17.769231 | 54 | 0.69697 |
e9096d60b005e72fa7dbc258fbe055910c83cb89 | 1,463 | exs | Elixir | mix.exs | rzcastilho/dealer_scraping_robot | fe255f7d303ce1387f042606f2e9399d27752d95 | [
"MIT"
] | null | null | null | mix.exs | rzcastilho/dealer_scraping_robot | fe255f7d303ce1387f042606f2e9399d27752d95 | [
"MIT"
] | null | null | null | mix.exs | rzcastilho/dealer_scraping_robot | fe255f7d303ce1387f042606f2e9399d27752d95 | [
"MIT"
] | null | null | null | defmodule DealerScrapingRobot.MixProject do
use Mix.Project
def project do
[
app: :dealer_scraping_robot,
version: "0.4.0",
elixir: "~> 1.9.1",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: escript(),
test_coverage: [tool: ExCoveralls],
preferred_cl... | 22.507692 | 74 | 0.535885 |
e9099b80a8e011f9a2d47bc2a4d4576226cce279 | 1,174 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/connection.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... | 35.575758 | 74 | 0.752129 |
e909a7e40dce71b66902624adc17d4bb924ed423 | 1,276 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/connection.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/connection.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... | 37.529412 | 77 | 0.744514 |
e909aa1587d084499d220a20318bec768bc6c5ce | 361 | exs | Elixir | priv/repo/seeds.exs | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | 4 | 2021-03-01T21:25:42.000Z | 2022-02-10T23:50:11.000Z | priv/repo/seeds.exs | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# FirestormWeb.Repo.insert!(%FirestormWeb.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as... | 30.083333 | 61 | 0.714681 |
e909c1418b90769778794d7746be7b9d9849be48 | 2,489 | ex | Elixir | lib/basic_web/controllers/user_settings_controller.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | lib/basic_web/controllers/user_settings_controller.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | lib/basic_web/controllers/user_settings_controller.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule BasicWeb.UserSettingsController do
use BasicWeb, :controller
alias Basic.Accounts
alias BasicWeb.UserAuth
plug :assign_email_and_password_changesets
def edit(conn, _params) do
render(conn, "edit.html")
end
def update(conn, %{"action" => "update_email"} = params) do
%{"current_passwor... | 31.506329 | 82 | 0.653274 |
e909cf4504e214c4b0e1d39da11df3e1c440a6e0 | 6,103 | exs | Elixir | test/controllers/v1/trigger_controller_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/controllers/v1/trigger_controller_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/controllers/v1/trigger_controller_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.V1.TriggerControllerTest do
use Cog.ModelCase
use Cog.ConnCase
alias Cog.Models.Trigger
@bad_uuid "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
setup do
# Requests handled by the role controller require this permission
required_permission = permission("#{Cog.Util.Misc.embedded_bundle}:manage... | 36.54491 | 88 | 0.604621 |
e909e496ae6c9eef08c206b168471bb3f2854598 | 5,835 | ex | Elixir | lib/bsv/contract/helpers.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 26 | 2019-08-31T13:39:50.000Z | 2022-01-18T10:23:26.000Z | lib/bsv/contract/helpers.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-04-24T18:24:01.000Z | 2021-06-15T10:59:33.000Z | lib/bsv/contract/helpers.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-05-21T15:27:31.000Z | 2021-06-13T05:26:47.000Z | defmodule BSV.Contract.Helpers do
@moduledoc """
Base helper module containing helper functions for use in `BSV.Contract`
modules.
Using `BSV.Contract.Helpers` will import itself and all related helper modules
into your context.
use BSV.Contract.Helpers
Alternative, helper modules can be imported i... | 27.266355 | 85 | 0.636161 |
e90a20ef216f982be5b4d32dbb3c5a52bd7c97ea | 772 | ex | Elixir | lib/syntax/sugar.ex | sproutapp/pavlov | 7f3c0d7c75c8c2875e21b495511a291194bfc85a | [
"MIT"
] | 148 | 2015-01-04T16:44:30.000Z | 2022-02-15T03:08:28.000Z | lib/syntax/sugar.ex | sproutapp/pavlov | 7f3c0d7c75c8c2875e21b495511a291194bfc85a | [
"MIT"
] | 25 | 2015-01-05T16:24:24.000Z | 2016-05-05T05:28:07.000Z | lib/syntax/sugar.ex | sproutapp/pavlov | 7f3c0d7c75c8c2875e21b495511a291194bfc85a | [
"MIT"
] | 11 | 2015-01-06T11:08:29.000Z | 2019-11-10T01:41:45.000Z | defmodule Pavlov.Syntax.Sugar do
@moduledoc """
Provides an alternative DSL for BDD methods.
"""
for describe_alias <- [:context] do
@doc """
An alias for `describe`.
"""
defmacro unquote(describe_alias)(description, var \\ quote(do: _), contents) do
quote do
Pavlov.Case.describe(... | 22.705882 | 84 | 0.638601 |
e90a2c2e5e38d8f52fe24527b208335c87a1f2fa | 129 | ex | Elixir | testData/org/elixir_lang/inspection/match_operator_instead_of_type_operator_test_case/match_operator.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/inspection/match_operator_instead_of_type_operator_test_case/match_operator.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/inspection/match_operator_instead_of_type_operator_test_case/match_operator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @type status_effects<error descr="Type specifications separate the name from the definition using `::`, not `=`">=</error> [any]
| 64.5 | 128 | 0.728682 |
e90a6ef0405cfe17cd48cb7525e5fb9aabd62179 | 1,775 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/explicit.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/explicit.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/explicit.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... | 37.765957 | 408 | 0.733521 |
e90a8006ab64d53d3d9ffda5f31f134e89d3297b | 1,659 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1/model/get_iam_policy_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/container_analysis/lib/google_api/container_analysis/v1/model/get_iam_policy_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/get_iam_policy_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... | 35.297872 | 183 | 0.759494 |
e90ac0bbbcff50bb8f0a3ee05b953a610389ed91 | 3,652 | exs | Elixir | test/club/accounts/accounts_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | test/club/accounts/accounts_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | test/club/accounts/accounts_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.AccountsTest do
use Club.DataCase
alias Commanded.Aggregates.Aggregate
alias Club.Commanded
alias Club.Accounts
alias Club.Accounts.Aggregates.User
alias Club.Accounts.Events.{
UserRegistered
}
describe "register_user/2" do
@describetag :integration
test "should succeed a... | 26.273381 | 111 | 0.616375 |
e90ad669708d81b5064230a057be68324daea239 | 40,566 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/captions.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/captions.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... | 50.143387 | 196 | 0.632352 |
e90b3dbff20e8e41bb16ca6f8c73690cb67c626a | 3,464 | exs | Elixir | test/still/preprocessor/image_test.exs | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 202 | 2021-01-13T15:45:17.000Z | 2022-03-22T01:26:27.000Z | test/still/preprocessor/image_test.exs | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | 55 | 2021-01-26T14:11:34.000Z | 2022-03-22T22:34:37.000Z | test/still/preprocessor/image_test.exs | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | 10 | 2021-02-04T21:14:41.000Z | 2022-03-20T10:12:59.000Z | defmodule Still.Preprocessor.ImageTest do
use Still.Case, async: false
alias Still.Preprocessor.Image
alias Still.SourceFile
@input_file "img/bg.jpg"
@output_file "img/bg.jpg"
@output_file_100 "img/bg-111931420-100w.jpg"
@output_file_200 "img/bg-111931420-200w.jpg"
describe "render/1" do
test "pl... | 24.920863 | 86 | 0.562644 |
e90b42e6ed6003860a977d9554bad0a19a5a7109 | 229 | ex | Elixir | lib/utils.ex | 97nomad/TgScrumPoker | e1d57bd65753e06b66957ec84e6a59636cdaac64 | [
"MIT"
] | 1 | 2019-08-20T17:44:07.000Z | 2019-08-20T17:44:07.000Z | lib/utils.ex | 97nomad/TgScrumPoker | e1d57bd65753e06b66957ec84e6a59636cdaac64 | [
"MIT"
] | null | null | null | lib/utils.ex | 97nomad/TgScrumPoker | e1d57bd65753e06b66957ec84e6a59636cdaac64 | [
"MIT"
] | null | null | null | defmodule TgScrumPoker.Utils do
def extract_name(user) do
case user do
%{first_name: first_name, last_name: last_name} -> ~s"#{first_name} #{last_name}"
%{first_name: first_name} -> first_name
end
end
end
| 25.444444 | 87 | 0.681223 |
e90b530e6a11cd7783dd67cd00c5d3b2a6623891 | 314 | exs | Elixir | elixir/elixir-sips/samples/current_weather/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/current_weather/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/current_weather/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule CurrentWeather.Mixfile do
use Mix.Project
def project do
[app: :current_weather,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
def application do
[applications: [:logger, :inets, :hackney]]
end
defp deps do
[
{:hackney, "~> 1.0.6"}
]
end
end
| 14.952381 | 47 | 0.570064 |
e90b5b94d3d357bea146c577b8e9f98aee6123c2 | 1,262 | exs | Elixir | deps/ueberauth_github/mix.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | null | null | null | deps/ueberauth_github/mix.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | null | null | null | deps/ueberauth_github/mix.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Github.Mixfile do
use Mix.Project
@version "0.7.0"
def project do
[app: :ueberauth_github,
version: @version,
name: "Ueberauth Github",
package: package(),
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
source_url... | 23.37037 | 74 | 0.596672 |
e90b695856c070ccb85e1d081f3f22be2c6dc40f | 484 | exs | Elixir | config/test.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | 1 | 2019-04-23T05:10:06.000Z | 2019-04-23T05:10:06.000Z | config/test.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | null | null | null | config/test.exs | ramondelemos/elixir-cluster-k8s-discovery | b7f790a6d37df3ad1fff84cfd182ea080d7f04cb | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :myapp, MyappWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :myapp, Myapp.Repo,
ad... | 24.2 | 56 | 0.729339 |
e90b6deea7b2215a816d28dcff4b2fd0f14547a2 | 1,314 | ex | Elixir | lib/ex_oauth2_provider/oauth2/authorization/utils.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/authorization/utils.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/authorization/utils.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Authorization.Utils do
@moduledoc false
alias ExOauth2Provider.{Applications, Utils.Error}
alias Ecto.Schema
@doc false
@spec prehandle_request(Schema.t(), map(), keyword()) :: {:ok, map()} | {:error, map()}
def prehandle_request(resource_owner, request, config) do
resource_... | 29.863636 | 89 | 0.666667 |
e90b9151a090e6ce3fb7d7089baa9d2c6a8493b4 | 4,134 | exs | Elixir | lib/elixir/test/elixir/kernel/fn_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/fn_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/fn_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.FnTest do
use ExUnit.Case, async: true
import CompileAssertion
test "arithmetic constants on match" do
assert (fn 1 + 2 -> :ok end).(3) == :ok
assert (fn 1 - 2 -> :ok end).(-1) == :ok
assert (fn -1 -> :ok end).(-1) == :ok
assert (... | 28.708333 | 98 | 0.560716 |
e90be4afac4aad8d17a6ab29160b785c5096eff0 | 7,203 | ex | Elixir | lib/webengine_kiosk.ex | elcritch/webengine_kiosk | 010d53ec78961dd6ab0a145fb1ff97d055e603b4 | [
"Apache-2.0"
] | null | null | null | lib/webengine_kiosk.ex | elcritch/webengine_kiosk | 010d53ec78961dd6ab0a145fb1ff97d055e603b4 | [
"Apache-2.0"
] | null | null | null | lib/webengine_kiosk.ex | elcritch/webengine_kiosk | 010d53ec78961dd6ab0a145fb1ff97d055e603b4 | [
"Apache-2.0"
] | null | null | null | defmodule WebengineKiosk do
use Supervisor
def child_spec({opts, genserver_opts}) do
id = genserver_opts[:id] || __MODULE__
%{
id: id,
start: {__MODULE__, :start_link, [opts, genserver_opts]}
}
end
def child_spec(opts) do
child_spec({opts, []})
end
@moduledoc """
Control a ... | 32.445946 | 100 | 0.670137 |
e90bfa700e2c5ddaa93d9a6b0344e29f3f3ca789 | 787 | exs | Elixir | apps/decoder_csv/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/decoder_csv/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/decoder_csv/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule DecoderCsv.MixProject do
use Mix.Project
def project do
[
app: :decoder_csv,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: Mi... | 21.861111 | 64 | 0.50953 |
e90c1074612033a509ed6f4d3280cc258e74b88a | 3,922 | ex | Elixir | lib/lotus/props/flex.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 3 | 2021-09-20T10:34:15.000Z | 2021-09-20T16:23:07.000Z | lib/lotus/props/flex.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | lib/lotus/props/flex.ex | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 1 | 2021-11-23T13:10:27.000Z | 2021-11-23T13:10:27.000Z | defmodule Lotus.Props.Flex do
@moduledoc """
Utilize the power of flexbox to create a wide range of layouts.
Documentation: https://getuikit.com/docs/flex
"""
defmacro __using__(_) do
quote do
@doc """
flex
"""
prop flex, :boolean
@doc """
flex_inline
"""
... | 31.886179 | 98 | 0.63335 |
e90c1547f82832e4720896e0590ff9491b752d3d | 795 | ex | Elixir | lib/easypost/http/hackney.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 6 | 2017-09-21T13:19:56.000Z | 2021-01-07T18:31:42.000Z | lib/easypost/http/hackney.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | null | null | null | lib/easypost/http/hackney.ex | winestyr/ex_easypost | a8563ccbff429ad181280c438efeea65383ff852 | [
"MIT"
] | 2 | 2018-07-11T07:12:08.000Z | 2020-06-29T02:04:48.000Z | defmodule EasyPost.HTTP.Hackney do
@behaviour EasyPost.HTTP
@spec request(
EasyPost.http_method_t(),
String.t(),
EasyPost.http_headers_t(),
String.t(),
any
) :: { :ok, EasyPost.HTTP.response_t() } | { :error, any }
def request(method, url, headers, body, ... | 24.090909 | 76 | 0.535849 |
e90c4129b0bc413e59c95dfc94343a0c71067959 | 1,859 | ex | Elixir | lib/countries.ex | bfcarpio/countries | 2893af1557e20e670df5981e98f46e1c78959533 | [
"MIT"
] | null | null | null | lib/countries.ex | bfcarpio/countries | 2893af1557e20e670df5981e98f46e1c78959533 | [
"MIT"
] | null | null | null | lib/countries.ex | bfcarpio/countries | 2893af1557e20e670df5981e98f46e1c78959533 | [
"MIT"
] | null | null | null | defmodule Countries do
@doc """
Returns all countries.
"""
def all do
countries()
end
@doc """
Returns one country given is alpha2 country code
## Examples
iex> %Countries.Country{name: name} = Countries.get("PL")
iex> name
"Poland"
"""
def get(country_code) do
[country... | 21.367816 | 78 | 0.646046 |
e90c415d27ac239e3128fad0958a69d8efcd6548 | 937 | ex | Elixir | lib/input_event/report.ex | fhunleth/input_event | eab66b277f7d290ece3820229d9c937e71c8ad25 | [
"Apache-2.0"
] | null | null | null | lib/input_event/report.ex | fhunleth/input_event | eab66b277f7d290ece3820229d9c937e71c8ad25 | [
"Apache-2.0"
] | null | null | null | lib/input_event/report.ex | fhunleth/input_event | eab66b277f7d290ece3820229d9c937e71c8ad25 | [
"Apache-2.0"
] | null | null | null | defmodule InputEvent.Report do
alias InputEvent.Types
@doc """
Decode a report from the port
This returns a list of event lists.
"""
@spec decode(binary()) :: [[{atom(), atom(), integer()}]]
def decode(report) do
decode(report, [], [])
|> Enum.reverse()
end
defp decode(<<>>, [], all_events)... | 24.657895 | 87 | 0.608324 |
e90c5f9a33ce9b99409c28e43a207d56cd1ff1b3 | 863 | exs | Elixir | test/gcs_signed_url/client_test.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 16 | 2019-07-25T16:05:20.000Z | 2022-02-09T06:24:55.000Z | test/gcs_signed_url/client_test.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 53 | 2020-04-21T16:35:49.000Z | 2022-03-28T13:04:07.000Z | test/gcs_signed_url/client_test.exs | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 10 | 2020-04-21T12:19:47.000Z | 2021-11-19T12:00:06.000Z | defmodule GcsSignedUrl.ClientTest do
use ExUnit.Case
alias GcsSignedUrl.Client, as: MUT
alias GcsSignedUrl.Fixtures.Client, as: Fixtures
describe "load/1" do
test "returns client struct for correct file" do
client = MUT.load("test/gcs_config_sample.json")
assert client.__struct__ == MUT
end... | 27.83871 | 68 | 0.705678 |
e90c7192c7f09e261e627ed83ea4b2d31031c60a | 215 | ex | Elixir | test/support/mock_widget_audio_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | test/support/mock_widget_audio_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | test/support/mock_widget_audio_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.V2.Audio.MockWidgetView do
use ScreensWeb, :view
import Phoenix.HTML
def render("_widget.ssml", %{content: content}) do
~E"<s>Mock widget with content: <%= content %></s>"
end
end
| 21.5 | 55 | 0.693023 |
e90c93ffea9c35f896b12c90ea8469e2df958572 | 204 | ex | Elixir | Tracer/compile-tracer.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | Tracer/compile-tracer.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | Tracer/compile-tracer.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | defmodule Compile do
def compile do
c("camera.ex")
c("light.ex")
c("object.ex")
c("ppm.ex")
c("ray.ex")
c("snap.ex")
c("sphere.ex")
c("tracer.ex")
c("test.ex")
c("vector.ex")
c("world.ex")
end
end | 13.6 | 20 | 0.602941 |
e90cc895411f92fba1da2884ba59805f4c33b4dc | 3,067 | ex | Elixir | lib/ex_plasma/output/type/payment_v1.ex | nondejus/ex_plasma | 3be21c80ab9d28a40d44a6950969e72270f9bbb4 | [
"Apache-2.0"
] | null | null | null | lib/ex_plasma/output/type/payment_v1.ex | nondejus/ex_plasma | 3be21c80ab9d28a40d44a6950969e72270f9bbb4 | [
"Apache-2.0"
] | null | null | null | lib/ex_plasma/output/type/payment_v1.ex | nondejus/ex_plasma | 3be21c80ab9d28a40d44a6950969e72270f9bbb4 | [
"Apache-2.0"
] | null | null | null | defmodule ExPlasma.Output.Type.PaymentV1 do
@moduledoc """
Payment V1 Output Type.
"""
@behaviour ExPlasma.Output
alias ExPlasma.Output
@type address() :: <<_::160>>
@type output_guard() :: address()
@type token() :: address()
@type amount() :: non_neg_integer()
@type rlp() :: [output_guard() | ... | 28.663551 | 109 | 0.599609 |
e90ceb538ec4df7c922cf77f9f560bed4d3b2c1e | 82 | exs | Elixir | src/schnapps-ex/apps/schnapps_web/test/schnapps_web/views/page_view_test.exs | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | src/schnapps-ex/apps/schnapps_web/test/schnapps_web/views/page_view_test.exs | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | src/schnapps-ex/apps/schnapps_web/test/schnapps_web/views/page_view_test.exs | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | defmodule SchnappsWeb.PageViewTest do
use SchnappsWeb.ConnCase, async: true
end
| 20.5 | 39 | 0.829268 |
e90cf04fe96b9f78a5b7c8055cd7c9c3475123c7 | 858 | exs | Elixir | extensions/raxx_method_override/mix.exs | lasseebert/raxx | e614d214e3ba0ed7db8f7fc6e709a554560e81e1 | [
"Apache-2.0"
] | null | null | null | extensions/raxx_method_override/mix.exs | lasseebert/raxx | e614d214e3ba0ed7db8f7fc6e709a554560e81e1 | [
"Apache-2.0"
] | null | null | null | extensions/raxx_method_override/mix.exs | lasseebert/raxx | e614d214e3ba0ed7db8f7fc6e709a554560e81e1 | [
"Apache-2.0"
] | null | null | null | defmodule RaxxMethodOverride.MixProject do
use Mix.Project
def project do
[
app: :raxx_method_override,
version: "0.4.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package()
]
end
def application ... | 18.652174 | 91 | 0.561772 |
e90cf11ce64f00985907dcae969f10cfaba8bfd2 | 3,418 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/group.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/group.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/model/group.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.264706 | 336 | 0.704798 |
e90cf9c8806ca25016dbbf345f6dfdbfdb5bee9f | 773 | exs | Elixir | apps/worker/test/demo_projects/pipeline_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | apps/worker/test/demo_projects/pipeline_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | apps/worker/test/demo_projects/pipeline_test.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | defmodule Worker.DemoProjects.PipelineTest do
use Core.SchemaCase, async: false
use Mimic
alias Worker.DemoProjects
setup :set_mimic_global
describe "demo projects pipeline" do
test "it can poll and process demo projects" do
{:ok, producer} = DemoProjects.Producer.start_link()
{:ok, _} = Dem... | 29.730769 | 110 | 0.681759 |
e90cfddfd166787e3a1a09b09837adb83a0346ba | 1,835 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/lat_lng.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/lat_lng.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/lat_lng.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.7 | 256 | 0.725341 |
e90d3222660c407d4c4d8840d79c896c17c53e6b | 65 | ex | Elixir | examples/simple_blog/web/views/post_view.ex | inaka/Dayron | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 169 | 2016-05-05T17:21:45.000Z | 2022-01-31T20:23:07.000Z | examples/simple_blog/web/views/post_view.ex | inaka/Dayron | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 51 | 2016-04-22T20:46:37.000Z | 2022-02-22T00:15:40.000Z | examples/simple_blog/web/views/post_view.ex | inaka/RestRepo | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 26 | 2016-05-21T09:52:26.000Z | 2022-02-11T18:07:14.000Z | defmodule SimpleBlog.PostView do
use SimpleBlog.Web, :view
end
| 16.25 | 32 | 0.8 |
e90d3f681765b2c8f5644e9634a52cf24ab77f02 | 1,915 | ex | Elixir | apps/andi/lib/andi/event_handler.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/andi/lib/andi/event_handler.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/andi/lib/andi/event_handler.ex | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule Andi.EventHandler do
@moduledoc "Event Handler for event stream"
use Brook.Event.Handler
require Logger
import SmartCity.Event,
only: [dataset_update: 0, organization_update: 0, user_organization_associate: 0, data_ingest_end: 0]
alias SmartCity.{Dataset, Organization}
alias SmartCity.UserOr... | 36.132075 | 203 | 0.713316 |
e90d6d303ed35fd1095834522964cc031a939d41 | 2,152 | ex | Elixir | lib/postoffice.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | lib/postoffice.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | lib/postoffice.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | defmodule Postoffice do
@moduledoc """
Postoffice keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
require Logger
alias Postoffice.Messaging
def receive_messa... | 26.567901 | 95 | 0.70539 |
e90d70f706fc7b262e580ed8614e337afdf42200 | 2,070 | ex | Elixir | lib/http_parser/response.ex | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | lib/http_parser/response.ex | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | lib/http_parser/response.ex | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | defmodule HttpParser.Response do
alias __MODULE__
defstruct status_code: 0,
status_text: "",
http_version: :http1_1,
headers: [], # e.g. [{"User-Agent", "Danny"}, {"Accept", "text/html"}]
body: [] # iodata/iolist
def parse(response_binary)
when is_binary(response_binary)
do
with {:ok, re... | 32.34375 | 90 | 0.65942 |
e90d8ff611385ae1af3af07c4166facf51e13251 | 239 | ex | Elixir | lib/web/controllers/page_controller.ex | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | 9 | 2019-02-22T10:33:28.000Z | 2021-02-27T20:26:03.000Z | lib/web/controllers/page_controller.ex | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | 11 | 2019-04-02T19:21:25.000Z | 2022-01-05T23:22:04.000Z | lib/web/controllers/page_controller.ex | wenusch/XRPL-Webhooks | 69bce5ea891d5024911f960f4faabe6af3b2bba0 | [
"MIT"
] | 6 | 2019-03-07T15:54:30.000Z | 2020-03-26T02:33:40.000Z | defmodule EspyWeb.PageController do
use EspyWeb, :controller
def index(conn, _params) do
conn
|> render("index.html")
end
def docs(conn, _params) do
conn
|> redirect(to: "/docs/index.html")
|> halt
end
end
| 14.9375 | 39 | 0.635983 |
e90dabb5e5aeef1fd163ef181d0ef6c219e0cff7 | 13,816 | ex | Elixir | clients/content/lib/google_api/content/v21/api/collections.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/api/collections.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/api/collections.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... | 47.315068 | 249 | 0.628402 |
e90db9543e7e3f356aaa67ef7fd7efacdde46628 | 89,862 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/api/accounts.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/api/accounts.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/api/accounts.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.121463 | 170 | 0.66394 |
e90dc00ba795c8ba488b633140ff468d41568225 | 4,265 | exs | Elixir | test/phoenix_live_view_test.exs | tiagoefmoraes/phoenix_live_view | ed77fa52443c77bd9f281f1a64da832a6e8724e8 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | tiagoefmoraes/phoenix_live_view | ed77fa52443c77bd9f281f1a64da832a6e8724e8 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | tiagoefmoraes/phoenix_live_view | ed77fa52443c77bd9f281f1a64da832a6e8724e8 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewUnitTest do
use ExUnit.Case, async: true
import Phoenix.LiveView
alias Phoenix.LiveView.{Utils, Socket}
alias Phoenix.LiveViewTest.Endpoint
@socket Utils.configure_socket(
%Socket{endpoint: Endpoint, router: Phoenix.LiveViewTest.Router},
%{connect_params: %... | 33.849206 | 121 | 0.619461 |
e90dc7fc93efad01a4e3aded80eb2e0b36d3c63b | 4,220 | exs | Elixir | test/slipstream/synchronicity_test.exs | jjcarstens/slipstream | 00376311e23504a71d00c627a0399b07587192a7 | [
"Apache-2.0"
] | null | null | null | test/slipstream/synchronicity_test.exs | jjcarstens/slipstream | 00376311e23504a71d00c627a0399b07587192a7 | [
"Apache-2.0"
] | null | null | null | test/slipstream/synchronicity_test.exs | jjcarstens/slipstream | 00376311e23504a71d00c627a0399b07587192a7 | [
"Apache-2.0"
] | null | null | null | defmodule Slipstream.SynchronicityTest do
use ExUnit.Case, async: true
import Slipstream
import Slipstream.Socket
import Slipstream.PidHelpers
alias Slipstream.Socket
@moduletag :capture_log
@server SlipstreamWeb.TestChannel
setup do
[config: Application.fetch_env!(:slipstream, Slipstream.GoodEx... | 25.731707 | 79 | 0.548815 |
e90dd5d0adbd15987a3757ecae8b1130294f85a6 | 1,197 | ex | Elixir | test/support/single_evaluator_runtime.ex | mcrumm/livebook | b1ceedc2205e64348212fbf7edce568cdb084e97 | [
"Apache-2.0"
] | 1 | 2021-04-16T05:42:12.000Z | 2021-04-16T05:42:12.000Z | test/support/single_evaluator_runtime.ex | cristina007-bot/livebook | 101f582196a161a06b62b38fe55c7f8c0a04b54d | [
"Apache-2.0"
] | null | null | null | test/support/single_evaluator_runtime.ex | cristina007-bot/livebook | 101f582196a161a06b62b38fe55c7f8c0a04b54d | [
"Apache-2.0"
] | null | null | null | defmodule LivebookTest.Runtime.SingleEvaluator do
@moduledoc false
# A simple runtime backed by a single evaluator process
# running on the local node.
#
# This allows for working code evaluation without
# starting a standalone Elixir runtime, so is neat for testing.
defstruct [:evaluator]
def init()... | 22.166667 | 70 | 0.687552 |
e90df5e15f796dfc7f11f16fed706b80aa0929b7 | 1,705 | ex | Elixir | lib/punting_server_web/endpoint.ex | codingmelee/punting_server | 81c5423b556951beb7412bea5b3610b9e37ba9aa | [
"Apache-2.0"
] | null | null | null | lib/punting_server_web/endpoint.ex | codingmelee/punting_server | 81c5423b556951beb7412bea5b3610b9e37ba9aa | [
"Apache-2.0"
] | null | null | null | lib/punting_server_web/endpoint.ex | codingmelee/punting_server | 81c5423b556951beb7412bea5b3610b9e37ba9aa | [
"Apache-2.0"
] | null | null | null | defmodule PuntingServerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :punting_server
socket "/socket", PuntingServerWeb.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 producti... | 29.396552 | 95 | 0.713196 |
e90e4284768a2ab5f77250fbe04d68c6f08e4ca7 | 69 | ex | Elixir | lib/texas_holdem_web/views/page_view.ex | thelightcosine/texas_holdem-phoenix | 31da9754082015b7562639bf2d5b8ac5212f11d0 | [
"BSD-3-Clause"
] | null | null | null | lib/texas_holdem_web/views/page_view.ex | thelightcosine/texas_holdem-phoenix | 31da9754082015b7562639bf2d5b8ac5212f11d0 | [
"BSD-3-Clause"
] | null | null | null | lib/texas_holdem_web/views/page_view.ex | thelightcosine/texas_holdem-phoenix | 31da9754082015b7562639bf2d5b8ac5212f11d0 | [
"BSD-3-Clause"
] | null | null | null | defmodule TexasHoldemWeb.PageView do
use TexasHoldemWeb, :view
end
| 17.25 | 36 | 0.826087 |
e90e4febeab86aad01f15a83efc02ca1ee962720 | 1,101 | ex | Elixir | example/lib/phoenix_datatables_example_web/channels/user_socket.ex | smartmetals/phoenix_datatables | 40c9074742ee7643327ac735defa9960abc50250 | [
"MIT"
] | 12 | 2017-10-20T21:08:33.000Z | 2021-11-08T13:04:43.000Z | example/lib/phoenix_datatables_example_web/channels/user_socket.ex | smartmetals/phoenix_datatables | 40c9074742ee7643327ac735defa9960abc50250 | [
"MIT"
] | 8 | 2017-11-07T19:53:02.000Z | 2021-01-18T22:15:35.000Z | example/lib/phoenix_datatables_example_web/channels/user_socket.ex | smartmetals/phoenix_datatables | 40c9074742ee7643327ac735defa9960abc50250 | [
"MIT"
] | 7 | 2018-07-03T08:18:17.000Z | 2020-05-28T03:06:02.000Z | defmodule PhoenixDatatablesExampleWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PhoenixDatatablesExampleWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the sock... | 32.382353 | 99 | 0.708447 |
e90edab65a08d5b4237642a9b7a9b1db3267dcb8 | 2,860 | ex | Elixir | apps/admin_app/lib/admin_app_web/controllers/dashboard_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/admin_app/lib/admin_app_web/controllers/dashboard_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/admin_app/lib/admin_app_web/controllers/dashboard_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule AdminAppWeb.DashboardController do
use AdminAppWeb, :controller
alias Snitch.Data.Model
alias AdminAppWeb.Helpers
def index(conn, params) do
{start_date, end_date} = get_date_from_params(params)
conn
|> assign(:order_state_counts, get_order_state_count(start_date, end_date))
|> assi... | 27.5 | 90 | 0.692657 |
e90edd83a9dc3405eb34fd1ae751c56e3cd62e7e | 1,089 | ex | Elixir | clients/iap/lib/google_api/iap/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/iap/lib/google_api/iap/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/iap/lib/google_api/iap/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33 | 74 | 0.733701 |
e90f120dc7343200666b2be49b56c24c132cc5a9 | 446 | exs | Elixir | test/scoop_web/views/error_view_test.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | test/scoop_web/views/error_view_test.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | test/scoop_web/views/error_view_test.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | defmodule ScoopWeb.ErrorViewTest do
use ScoopWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(ScoopWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "renders 500.json" do
... | 27.875 | 90 | 0.67713 |
e90f47b65f884a7902104bb9e04d15e429ea39c4 | 74 | exs | Elixir | test/test_helper.exs | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | cjeich/MysteryNightServer | 36f37187c67562ceb4d6383b0d22b43cbe504515 | [
"Apache-2.0"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(MysteryNight.Repo, :manual)
| 14.8 | 58 | 0.797297 |
e90f56dbda1a34adba160fa9680a793264dfff86 | 377 | ex | Elixir | test/test_app/application.ex | laszlohegedus/phoenix_pubsub_eventstore | 7645eb70a90422dfd8ab587bec2734c702e55e64 | [
"MIT"
] | 11 | 2020-05-15T19:54:50.000Z | 2021-06-30T15:51:41.000Z | test/test_app/application.ex | laszlohegedus/phoenix_pubsub_eventstore | 7645eb70a90422dfd8ab587bec2734c702e55e64 | [
"MIT"
] | null | null | null | test/test_app/application.ex | laszlohegedus/phoenix_pubsub_eventstore | 7645eb70a90422dfd8ab587bec2734c702e55e64 | [
"MIT"
] | null | null | null | defmodule Phoenix.PubSub.EventStoreTest.TestApp.Application do
use Application
def start(_type, _args) do
pubsub_config = Application.get_env(:phoenix_pubsub_eventstore, :pubsub)
children = [
Phoenix.PubSub.EventStoreTest.TestApp.EventStore,
{Phoenix.PubSub, pubsub_config}
]
Superviso... | 25.133333 | 76 | 0.750663 |
e90f67ddaf52b86cfd4206c5709fd02727de39d1 | 1,433 | exs | Elixir | mix.exs | twined/brando_analytics | 19a3a687f9eee52aa75b7c2926566a3a27f5caa3 | [
"MIT"
] | 1 | 2020-01-13T23:45:34.000Z | 2020-01-13T23:45:34.000Z | mix.exs | twined/brando_analytics | 19a3a687f9eee52aa75b7c2926566a3a27f5caa3 | [
"MIT"
] | null | null | null | mix.exs | twined/brando_analytics | 19a3a687f9eee52aa75b7c2926566a3a27f5caa3 | [
"MIT"
] | null | null | null | defmodule Brando.Analytics.Mixfile do
use Mix.Project
@version "0.1.0-dev"
def project do
[app: :brando_analytics,
version: @version,
compilers: [:gettext, :phoenix] ++ Mix.compilers,
elixirc_paths: elixirc_paths(Mix.env),
test_coverage: [tool: ExCoveralls],
elixir: "~> 1.3",
b... | 25.140351 | 75 | 0.607816 |
e90f7f4369e3605d35d1eaa98c78b35813a856e2 | 689 | exs | Elixir | mix.exs | aforward-oss/lazymaru | e656a342e1dc2989b8e27ab399cb2f4c571aa502 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | aforward-oss/lazymaru | e656a342e1dc2989b8e27ab399cb2f4c571aa502 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | aforward-oss/lazymaru | e656a342e1dc2989b8e27ab399cb2f4c571aa502 | [
"BSD-3-Clause"
] | null | null | null | defmodule Lazymaru.Mixfile do
use Mix.Project
def project do
[ app: :lazymaru,
version: "0.2.4",
elixir: "~> 1.0.0",
deps: deps,
description: "Elixir copy of grape for creating REST-like APIs.",
source_url: "https://github.com/falood/lazymaru",
package: package,
]
end
... | 20.264706 | 71 | 0.532656 |
e90f98fe681d02fc0b213cd7f0b4fec6bbfb74c1 | 271 | ex | Elixir | lib/real_world/repo.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | lib/real_world/repo.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | lib/real_world/repo.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | defmodule RealWorld.Repo do
use Ecto.Repo, otp_app: :real_world
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 19.357143 | 66 | 0.697417 |
e90fd816f21bd82ad86b7798db45cfc319aff165 | 322 | exs | Elixir | priv/repo/migrations/20160329160118_create_category.exs | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 8 | 2016-06-12T20:11:26.000Z | 2017-05-02T04:36:41.000Z | priv/repo/migrations/20160329160118_create_category.exs | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 2 | 2016-06-12T15:49:06.000Z | 2016-06-12T20:00:02.000Z | priv/repo/migrations/20160329160118_create_category.exs | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | null | null | null | defmodule WhistlerNewsReader.Repo.Migrations.CreateCategory do
use Ecto.Migration
def change do
create table(:categories) do
add :title, :string
add :user_id, :integer
timestamps
end
create unique_index(:categories, [:user_id, :title], name: :categories_user_id_title_index)
end
en... | 21.466667 | 95 | 0.717391 |
e90fdc8731f94bffb9c79f4eb56dde7102d30975 | 580 | exs | Elixir | interpreter/mix.exs | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | interpreter/mix.exs | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | interpreter/mix.exs | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | defmodule Interpreter.MixProject do
use Mix.Project
def project do
[
app: :interpreter,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20 | 87 | 0.582759 |
e91004e969d436c8a780c3744d4c779127849425 | 16,537 | ex | Elixir | lib/ecto/adapters/sql/sandbox.ex | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql/sandbox.ex | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql/sandbox.ex | cnsa/ecto | a6e0eaaa5da1032fad571308c338eca1b5f77738 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQL.Sandbox do
@moduledoc ~S"""
A pool for concurrent transactional tests.
The sandbox pool is implemented on top of an ownership mechanism.
When started, the pool is in automatic mode, which means the
repository will automatically check connections out as with any
other pool.
Th... | 35.110403 | 96 | 0.673883 |
e9100b1c84347f9fc60bb8fe64ec1aa09234c567 | 2,942 | ex | Elixir | lib/openstex/keystone/v2.ex | stephenmoloney/openstex | e62f548d67e9c71317be670ed80c49e97d9b2dd2 | [
"MIT"
] | 6 | 2016-07-08T05:29:23.000Z | 2019-09-17T14:17:06.000Z | lib/openstex/keystone/v2.ex | stephenmoloney/openstex | e62f548d67e9c71317be670ed80c49e97d9b2dd2 | [
"MIT"
] | 16 | 2016-05-21T08:21:45.000Z | 2018-03-04T22:11:49.000Z | lib/openstex/keystone/v2.ex | stephenmoloney/openstex | e62f548d67e9c71317be670ed80c49e97d9b2dd2 | [
"MIT"
] | 2 | 2017-08-28T22:24:51.000Z | 2019-06-16T14:47:38.000Z | defmodule Openstex.Keystone.V2 do
@moduledoc ~S"""
Helper functions to assist in building queries for openstack compatible keystone apis (version 2.0).
## Example
Openstex.Keystone.V2.get_token(endpoint, username, password) |> Client.request!()
"""
alias Openstex.Transformation.Body
alias HTTPipe.Co... | 24.114754 | 118 | 0.561863 |
e910131d6b40aa0abc386d1ae5159578761ef57d | 704 | ex | Elixir | lib/cassandra/load_balancing.ex | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 37 | 2016-11-02T11:51:12.000Z | 2021-07-10T14:05:05.000Z | lib/cassandra/load_balancing.ex | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 9 | 2016-10-25T20:26:49.000Z | 2018-11-04T09:59:41.000Z | lib/cassandra/load_balancing.ex | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 17 | 2016-10-25T06:12:05.000Z | 2022-03-02T12:45:08.000Z | defmodule Cassandra.LoadBalancing do
@moduledoc false
alias Cassandra.LoadBalancing.Policy
alias Cassandra.Session.ConnectionManager
@distances [:ignore, :local, :remote]
defmacro distances, do: @distances
def plan(statement, balancer, cluster, connection_manager) do
if Keyword.get(statement.options... | 23.466667 | 83 | 0.713068 |
e91024318af7b33d8a26c9014d8ef9b9d7d2f945 | 711 | exs | Elixir | demos/brella_demo_umbrella/mix.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | 8 | 2020-03-15T19:22:02.000Z | 2021-09-28T11:00:18.000Z | demos/brella_demo_umbrella/mix.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | 7 | 2020-03-11T06:21:57.000Z | 2020-11-15T19:48:54.000Z | demos/brella_demo_umbrella/mix.exs | axelson/priv_check | ba4228881edbf16ac61b0e006537de517c7f6f06 | [
"MIT"
] | null | null | null | defmodule BrellaDemo.Umbrella.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
# compilers: [:priv_check] ++ Mix.compilers(),
deps: deps()
]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or g... | 22.935484 | 77 | 0.611814 |
e9103de1bc3bb5c7caf8f0c204367e967c243386 | 2,496 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_speech_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_speech_context.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_speech_context.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... | 49.92 | 498 | 0.75601 |
e910ac98f46d1aeb525d7fee87fe4a86dc3a2264 | 1,109 | exs | Elixir | config/config.exs | paulfri/elo | 6a2632a3e2cbb8e13219c972fe0624dc7f0f7c6b | [
"MIT"
] | 5 | 2016-07-15T15:16:20.000Z | 2022-02-04T18:07:06.000Z | config/config.exs | paulfri/elo | 6a2632a3e2cbb8e13219c972fe0624dc7f0f7c6b | [
"MIT"
] | null | null | null | config/config.exs | paulfri/elo | 6a2632a3e2cbb8e13219c972fe0624dc7f0f7c6b | [
"MIT"
] | 1 | 2022-03-04T12:35:17.000Z | 2022-03-04T12:35:17.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.774194 | 73 | 0.749324 |
e910f270052ad982c105291880289dbffe1a141c | 294 | exs | Elixir | priv/repo/migrations/20170801221826_create_coin.exs | andreihod/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-07-19T17:03:41.000Z | 2017-09-18T12:58:42.000Z | priv/repo/migrations/20170801221826_create_coin.exs | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 7 | 2017-07-18T23:32:45.000Z | 2017-08-18T01:09:11.000Z | priv/repo/migrations/20170801221826_create_coin.exs | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-08-03T19:55:21.000Z | 2018-07-01T19:54:22.000Z | defmodule Cryptofolio.Repo.Migrations.CreateCoin do
use Ecto.Migration
def change do
create table(:coins) do
add :name, :string
add :symbol, :string
timestamps()
end
create unique_index(:coins, [:name])
create unique_index(:coins, [:symbol])
end
end
| 17.294118 | 51 | 0.659864 |
e91166d33c0881479a1756accb9f7b1ce02454be | 44,352 | exs | Elixir | test/ecto/type_test.exs | bjyoungblood/ecto | 44387118748fbc71f1dfd221f610a5da41dce988 | [
"Apache-2.0"
] | null | null | null | test/ecto/type_test.exs | bjyoungblood/ecto | 44387118748fbc71f1dfd221f610a5da41dce988 | [
"Apache-2.0"
] | null | null | null | test/ecto/type_test.exs | bjyoungblood/ecto | 44387118748fbc71f1dfd221f610a5da41dce988 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.TypeTest do
use ExUnit.Case, async: true
defmodule Custom do
use Ecto.Type
def type, do: :custom
def load(_), do: {:ok, :load}
def dump(_), do: {:ok, :dump}
def cast(_), do: {:ok, :cast}
def equal?(true, _), do: true
def equal?(_, _), do: false
def embed_as... | 44.93617 | 134 | 0.574766 |
e91168094b9d600a610802fbdd5a675c1eae498e | 1,032 | ex | Elixir | lib/tilex_web/models/developer.ex | SeriousM/tilex | 4cfc2bd64cfa29503714b90e145db25e0f0a21b2 | [
"MIT"
] | null | null | null | lib/tilex_web/models/developer.ex | SeriousM/tilex | 4cfc2bd64cfa29503714b90e145db25e0f0a21b2 | [
"MIT"
] | null | null | null | lib/tilex_web/models/developer.ex | SeriousM/tilex | 4cfc2bd64cfa29503714b90e145db25e0f0a21b2 | [
"MIT"
] | null | null | null | defmodule Tilex.Developer do
use TilexWeb, :model
@type t :: module
alias Tilex.{Developer, Post}
schema "developers" do
field(:email, :string)
field(:username, :string)
field(:twitter_handle, :string)
field(:admin, :boolean)
field(:editor, :string)
has_many(:posts, Post)
timest... | 19.846154 | 66 | 0.612403 |
e911b38a32c097f5d02b8387bf9ddf28fc0cf39b | 626 | ex | Elixir | lib/groupher_server_web/schema/Helper/metrics.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server_web/schema/Helper/metrics.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server_web/schema/Helper/metrics.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServerWeb.Schema.Helper.Metrics do
@moduledoc """
common types might be used in all context
"""
import GroupherServerWeb.Schema.Helper.Fields
use Absinthe.Schema.Notation
object :done do
field(:done, :boolean)
end
object :geo_info do
field(:city, :string)
field(:value, :... | 20.866667 | 68 | 0.707668 |
e911b6d9968c5cf2db1812cbb3d3c1f2b8a7054c | 4,563 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_shared_flow_revision.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_shared_flow_revision.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_shared_flow_revision.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... | 52.448276 | 356 | 0.695376 |
e911cc4ef05638d09e6cac57e3b934f672603488 | 23,520 | ex | Elixir | lib/elixir/lib/kernel/special_forms.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/elixir/lib/kernel/special_forms.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/special_forms.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | defmodule Kernel.SpecialForms do
@moduledoc """
In this module we define Elixir special forms. Special forms
cannot be overriden by the developer and are the basic
building blocks of Elixir code.
Some of those forms are lexical (like `alias`, `import`, etc).
The macros `{}`, `[]` and `<<>>` are also specia... | 28.894349 | 85 | 0.667347 |
e911cd2f0054fb6de4d92f7d1dfc4c1a917437e5 | 4,302 | ex | Elixir | implementations/elixir/ockam/ockam_services/lib/services/token_lease_manager/cloud_service/influxdb.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/lib/services/token_lease_manager/cloud_service/influxdb.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/lib/services/token_lease_manager/cloud_service/influxdb.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Services.TokenLeaseManager.CloudService.Influxdb do
@moduledoc false
use Ockam.Services.TokenLeaseManager.CloudService
alias Ockam.Services.TokenLeaseManager.Lease
@auth_url "/api/v2/authorizations"
@default_permissions [%{"action" => "read", "resource" => %{"type" => "authorizations"}}]
@... | 26.720497 | 91 | 0.617852 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.