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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7443205accf8536ad73562cf76a244db35e82bfa | 642 | ex | Elixir | apps/buzzcms/lib/buzzcms/schema/subscriber.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms/lib/buzzcms/schema/subscriber.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms/lib/buzzcms/schema/subscriber.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule Buzzcms.Schema.Subscriber do
use Ecto.Schema
import Ecto.Changeset
@required_fields [:form_id, :data]
@optional_fields [:email, :phone, :name, :labels]
schema "subscriber" do
field :email, :string
field :phone, :string
field :name, :string
belongs_to :form, Buzzcms.Schema.Form
... | 24.692308 | 57 | 0.683801 |
744333fa07c44b6c481979c76ad1246677030a09 | 3,632 | ex | Elixir | lib/DSL/system.ex | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | 23 | 2021-10-24T00:21:13.000Z | 2022-03-13T12:33:38.000Z | lib/DSL/system.ex | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | null | null | null | lib/DSL/system.ex | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | 3 | 2021-11-04T02:42:25.000Z | 2022-02-02T14:22:52.000Z | defmodule ElixirRPG.DSL.System do
defmacro __using__(_options) do
quote do
import ElixirRPG.DSL.System
end
end
defmacro defsystem(name, do: block) do
quote do
defmodule ElixirRPG.RuntimeSystems.unquote(name) do
alias ElixirRPG.Entity
require Logger
Module.registe... | 25.398601 | 99 | 0.655286 |
74433c7feda38da71f0b4ba6461556106f77b6ba | 1,671 | ex | Elixir | clients/run/lib/google_api/run/v1/model/test_iam_permissions_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/test_iam_permissions_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/test_iam_permissions_request.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... | 33.42 | 135 | 0.733692 |
74435aad0a00a5b57ffa0da34bc8e3f03e388881 | 941 | ex | Elixir | lib/materia_career/projects/record.ex | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | null | null | null | lib/materia_career/projects/record.ex | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | 23 | 2019-01-16T01:52:22.000Z | 2019-06-20T01:59:55.000Z | lib/materia_career/projects/record.ex | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | null | null | null | defmodule MateriaCareer.Projects.Record do
use Ecto.Schema
import Ecto.Changeset
schema "records" do
field(:description, :string)
field(:title, :string)
field(:score, :float, default: 0.0)
field(:lock_version, :integer, default: 0)
belongs_to(:user, Materia.Accounts.User)
belongs_to(:proj... | 29.40625 | 88 | 0.697131 |
744364b7a83963aac3eb0027ed9660991709ef04 | 638 | exs | Elixir | apps/tai/test/tai/orders/services/enqueue_order_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/orders/services/enqueue_order_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/test/tai/orders/services/enqueue_order_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.Services.EnqueueOrderTest do
use Tai.TestSupport.DataCase, async: false
import Mock
test "creates an order and executes the callback" do
submission = build_submission(Tai.Orders.Submissions.BuyLimitGtc)
with_mock Tai.Orders.Services.ExecuteOrderCallback,
call: fn _previous, _c... | 35.444444 | 86 | 0.746082 |
7443801cdd8edb8f1e7a182c733bf1c130eb980d | 6,694 | ex | Elixir | test/support/appsignal/fake_transaction.ex | rolandtritsch/appsignal-elixir | 27e001f144e7b13ff9d9fd5ea6cb30dd44055569 | [
"MIT"
] | 1 | 2020-08-11T08:13:25.000Z | 2020-08-11T08:13:25.000Z | test/support/appsignal/fake_transaction.ex | gjaldon/appsignal-elixir | 36d872d96d4c53152e365558bcfe96a3ba689fb9 | [
"MIT"
] | null | null | null | test/support/appsignal/fake_transaction.ex | gjaldon/appsignal-elixir | 36d872d96d4c53152e365558bcfe96a3ba689fb9 | [
"MIT"
] | null | null | null | defmodule Appsignal.FakeTransaction do
@behaviour Appsignal.TransactionBehaviour
use TestAgent, %{
started_transactions: [],
started_events: [],
finished_events: [],
finished_transactions: [],
recorded_events: [],
errors: []
}
def start_event do
self()
|> Appsignal.TransactionRe... | 23.737589 | 80 | 0.614879 |
7443cb49e0d010fcde62e18ba0138c37e60378ef | 2,003 | exs | Elixir | config/prod.exs | ViniciusLinharesAO/phx_api | 22168407c0c037b4ae709306aa254cb7e1a16c6d | [
"MIT"
] | 31 | 2019-10-29T11:08:32.000Z | 2020-01-28T16:16:04.000Z | config/prod.exs | ViniciusLinharesAO/phx_api | 22168407c0c037b4ae709306aa254cb7e1a16c6d | [
"MIT"
] | 2 | 2020-04-11T21:56:21.000Z | 2020-04-15T12:22:05.000Z | examples/elixir-phoenix-openid-connect/config/prod.exs | did-app/did-elixir | 654a39d697efc551c725e8871b5b4fee1b8bd63c | [
"Apache-2.0"
] | 1 | 2019-10-29T14:38:44.000Z | 2019-10-29T14:38:44.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.767857 | 66 | 0.71343 |
7444046ddb272437d66a70ba22d55c8de6d5bb0f | 1,747 | ex | Elixir | clients/translate/lib/google_api/translate/v2/model/languages_resource.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/translate/lib/google_api/translate/v2/model/languages_resource.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v2/model/languages_resource.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.596154 | 123 | 0.71723 |
7444271340adee5ae83549d288440ca1d4501f9d | 2,289 | exs | Elixir | config/config.exs | MattiasJakobsson/alfred_server | e207e7b1a066a70a99758aebbc81dc590e5bec0c | [
"MIT"
] | null | null | null | config/config.exs | MattiasJakobsson/alfred_server | e207e7b1a066a70a99758aebbc81dc590e5bec0c | [
"MIT"
] | null | null | null | config/config.exs | MattiasJakobsson/alfred_server | e207e7b1a066a70a99758aebbc81dc590e5bec0c | [
"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.
use Mix.Config
# Customize non-Elixir parts of the firmware. See
# https://hexdocs.pm/nerves/advance... | 33.173913 | 77 | 0.740498 |
74444e925c5ad8334cf79eb1926991f7ae8f3359 | 74 | exs | Elixir | apps/test_empty_app_web/test/test_helper.exs | baseballlover723/test_empty_app | fd7046ea8ee88e1c0eefee82fe95aecc7ede3f82 | [
"MIT"
] | null | null | null | apps/test_empty_app_web/test/test_helper.exs | baseballlover723/test_empty_app | fd7046ea8ee88e1c0eefee82fe95aecc7ede3f82 | [
"MIT"
] | null | null | null | apps/test_empty_app_web/test/test_helper.exs | baseballlover723/test_empty_app | fd7046ea8ee88e1c0eefee82fe95aecc7ede3f82 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(TestEmptyApp.Repo, :manual)
| 24.666667 | 58 | 0.797297 |
74447a481836b936275f4eca332c36a6e42f1a30 | 1,990 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_image_segmentation_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_image_segmentation_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_image_segmentation_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.912281 | 174 | 0.78191 |
74448877afa4ebaaa1393c2c715d1f4c4fb1eac6 | 644 | exs | Elixir | test/gor_project_web/views/error_view_test.exs | justinrlle/GORProject-API | 07cad451cb9acee242612357d706e4f64e3069d8 | [
"MIT"
] | 2 | 2018-09-03T05:42:54.000Z | 2018-09-18T05:48:17.000Z | test/gor_project_web/views/error_view_test.exs | justinrlle/GORProject-API | 07cad451cb9acee242612357d706e4f64e3069d8 | [
"MIT"
] | 2 | 2018-09-17T16:06:06.000Z | 2018-09-24T18:06:19.000Z | test/gor_project_web/views/error_view_test.exs | justinrlle/GORProject-API | 07cad451cb9acee242612357d706e4f64e3069d8 | [
"MIT"
] | 1 | 2018-09-17T14:57:20.000Z | 2018-09-17T14:57:20.000Z | defmodule GORprojectWeb.ErrorViewTest do
use GORprojectWeb.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(GORprojectWeb.ErrorView, "404.json", []) ==
%{errors: %{detail: "Endpoint not found"}}
... | 29.272727 | 66 | 0.658385 |
7444997eccc73ae13c3338fdf6f6b61d8642c8d8 | 1,897 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/drive_file.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/classroom/lib/google_api/classroom/v1/model/drive_file.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/drive_file.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 30.596774 | 109 | 0.686347 |
7444a2af147a5fff9da2939d57c6f928268ad478 | 81 | ex | Elixir | lib/supreme_tsugu_chan_web/views/layout_view.ex | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | lib/supreme_tsugu_chan_web/views/layout_view.ex | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | lib/supreme_tsugu_chan_web/views/layout_view.ex | c18t/supreme-tsugu-chan | 9d1d4cffcd917f2454a8a2918389ea239f2a6cdc | [
"MIT"
] | null | null | null | defmodule SupremeTsuguChanWeb.LayoutView do
use SupremeTsuguChanWeb, :view
end
| 20.25 | 43 | 0.851852 |
7444a632f8077cddf38680556137eb2aa180c6a1 | 1,778 | ex | Elixir | lib/mapi/mapper.ex | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | 3 | 2018-02-05T03:37:27.000Z | 2020-02-19T23:58:22.000Z | lib/mapi/mapper.ex | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | null | null | null | lib/mapi/mapper.ex | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | null | null | null | defmodule Mapi.Mapper do
require Logger
alias Plug.Conn
@doc false
def init(opts) do
opts
end
@doc false
def call(conn, opts) do
# Make sure function atoms defined before path conversion
opts[:mod].__info__(:functions)
path =
conn.path_info
|> List.first()
|> :erlang.... | 22.506329 | 71 | 0.677728 |
7444af9db4e77c4d2868cf9f40104f35cf3d3c69 | 3,541 | exs | Elixir | mix.exs | phenixdigital/phenix_rpi3 | 74690441ce7553233a672835b2f5aa542d0f0341 | [
"Apache-2.0"
] | null | null | null | mix.exs | phenixdigital/phenix_rpi3 | 74690441ce7553233a672835b2f5aa542d0f0341 | [
"Apache-2.0"
] | 4 | 2021-02-25T14:01:43.000Z | 2021-06-25T15:48:55.000Z | mix.exs | phenixdigital/phenix_rpi3 | 74690441ce7553233a672835b2f5aa542d0f0341 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi3.MixProject do
use Mix.Project
@github_organization "phenixdigital"
@app :phenix_rpi3
@source_url "https://github.com/#{@github_organization}/#{@app}"
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @ap... | 24.42069 | 83 | 0.586557 |
7444cd8cdbf2cad265c2f3dae1096ef2ff4d0bf8 | 1,730 | exs | Elixir | mix.exs | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | mix.exs | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | mix.exs | GPrimola/xlack | a62e80e51e66692aaa98ac3ea2c3cb9e084fa1e7 | [
"MIT"
] | null | null | null | defmodule Xlack.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/GPrimola/xlack"
@logo_path "priv/img/xlack-logo.png"
@licenses ["Apache-2.0"]
@description """
This is a Slack API client for Elixir applications.
"""
def project do
[
app: :xlack,
version:... | 24.027778 | 87 | 0.56474 |
7444e73f4df2db5f83b3423500bf96dc1f9bddc4 | 1,072 | ex | Elixir | lib/phx_boilerplate/application.ex | zegohome/phoenix-boilerplate | 38d7a978dd1ace4885217dba601a7369d50a72e0 | [
"Apache-2.0"
] | null | null | null | lib/phx_boilerplate/application.ex | zegohome/phoenix-boilerplate | 38d7a978dd1ace4885217dba601a7369d50a72e0 | [
"Apache-2.0"
] | null | null | null | lib/phx_boilerplate/application.ex | zegohome/phoenix-boilerplate | 38d7a978dd1ace4885217dba601a7369d50a72e0 | [
"Apache-2.0"
] | null | null | null | defmodule PhxBoilerplate.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto reposito... | 33.5 | 92 | 0.726679 |
7445063bc015b065db4523508544ef70445fbde7 | 1,895 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_annotation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_annotation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_annotation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.454545 | 178 | 0.77467 |
7445073cb27886ff5d4e28a90b148b919d42207b | 887 | ex | Elixir | debian/prerm.ex | tarkhov/composer-aliases | 499b97ed4a72cd5dd9a1c3b010ddd17f812de39f | [
"MIT"
] | null | null | null | debian/prerm.ex | tarkhov/composer-aliases | 499b97ed4a72cd5dd9a1c3b010ddd17f812de39f | [
"MIT"
] | 10 | 2019-05-10T13:37:12.000Z | 2020-11-20T11:58:09.000Z | debian/prerm.ex | tarkhov/composer-aliases | 499b97ed4a72cd5dd9a1c3b010ddd17f812de39f | [
"MIT"
] | null | null | null | #!/bin/sh
# prerm script for composer-aliases
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <ne... | 22.74359 | 76 | 0.629087 |
744539118f13a78978fe5eb56518722f3b712fa4 | 1,822 | ex | Elixir | lib/ratelimit.ex | norbert-k/ex_osrs_api | 7884bf2b28628464812269a77e20b1f552a57f38 | [
"MIT"
] | 1 | 2021-04-15T22:26:54.000Z | 2021-04-15T22:26:54.000Z | lib/ratelimit.ex | norbert-k/ex_osrs_api | 7884bf2b28628464812269a77e20b1f552a57f38 | [
"MIT"
] | 1 | 2021-04-19T00:35:24.000Z | 2021-04-19T11:04:19.000Z | lib/ratelimit.ex | norbert-k/ex_osrs_api | 7884bf2b28628464812269a77e20b1f552a57f38 | [
"MIT"
] | null | null | null | defmodule ExOsrsApi.Ratelimit do
@moduledoc """
### Ratelimit
Ratelimit configuration
* duration: duration of ratelimit in milliseconds
* limit: maximum amount of requests in timeout duration
"""
alias ExOsrsApi.Errors.Error
alias ExOsrsApi.Errors.RatelimitErrorMetadata
@enforce_keys [:limit, :timeo... | 25.661972 | 94 | 0.590011 |
74456fe3e0a9856796b98fb22f423f2e52330eb2 | 1,416 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/thread.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/chat/lib/google_api/chat/v1/model/thread.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/thread.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 28.897959 | 102 | 0.721045 |
74457757750ee47285bde576b77baa2dcb0f0ba3 | 1,524 | ex | Elixir | lib/parsers/content_lines.ex | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | 1 | 2020-06-09T10:42:58.000Z | 2020-06-09T10:42:58.000Z | lib/parsers/content_lines.ex | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | null | null | null | lib/parsers/content_lines.ex | thestakeholdercompany/icalendar | 1e36af22a9ea07917f08a6350636e9cfcbf98f29 | [
"MIT"
] | null | null | null | defmodule ICalex.Parsers.ContentLines do
@moduledoc false
alias ICalex.Parsers.ContentLine
alias ICalex.Components.Factory, as: ComponentsFactory
alias ICalex.Props.Factory, as: PropsFactory
alias ICalex.Components.Component
def to_ical(content_lines) when is_list(content_lines) do
content_lines = for... | 24.983607 | 88 | 0.634514 |
7445aa1fbb2b6b46032a25572eec859c77f3973f | 3,969 | exs | Elixir | mix.exs | ethangunderson/oban | d8d044b4bfd79713ca120be2cb2c70e26eaa5b5d | [
"Apache-2.0"
] | null | null | null | mix.exs | ethangunderson/oban | d8d044b4bfd79713ca120be2cb2c70e26eaa5b5d | [
"Apache-2.0"
] | null | null | null | mix.exs | ethangunderson/oban | d8d044b4bfd79713ca120be2cb2c70e26eaa5b5d | [
"Apache-2.0"
] | null | null | null | defmodule Oban.MixProject do
use Mix.Project
@source_url "https://github.com/sorentwo/oban"
@version "2.12.0-dev"
def project do
[
app: :oban,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(... | 23.909639 | 65 | 0.536659 |
7445b91720eedf4e2f7c7d0d2f7d681e1665fb3f | 1,689 | exs | Elixir | exercises/isbn-verifier/isbn_verifier_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/isbn-verifier/isbn_verifier_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/isbn-verifier/isbn_verifier_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("isbn_verifier.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule ISBNVerifierTest do
use ExUnit.Case
#@tag :pending
test "valid isbn number" do
assert ISBNVerifier.isbn?("3-598-21508-8")
end
@ta... | 22.52 | 63 | 0.694494 |
7445bf90a3c31edeb990acd7187c747c4c845927 | 55,037 | ex | Elixir | lib/phoenix_live_view.ex | szTheory/phoenix_live_view | b476ee8bd0da5fc80974ee0fbbb1509bc7159bf9 | [
"MIT"
] | 1 | 2021-03-24T15:13:06.000Z | 2021-03-24T15:13:06.000Z | lib/phoenix_live_view.ex | szTheory/phoenix_live_view | b476ee8bd0da5fc80974ee0fbbb1509bc7159bf9 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | szTheory/phoenix_live_view | b476ee8bd0da5fc80974ee0fbbb1509bc7159bf9 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc """
LiveView provides rich, real-time user experiences with
server-rendered HTML.
LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to its stat... | 39.200142 | 120 | 0.692589 |
7445c1212271e10d8ddae2c219b679b64cdc4901 | 1,810 | exs | Elixir | mix.exs | omsolem/corenlp | ed7acbb73572c49b1c058727b7b5acf1f7f05541 | [
"Apache-2.0"
] | null | null | null | mix.exs | omsolem/corenlp | ed7acbb73572c49b1c058727b7b5acf1f7f05541 | [
"Apache-2.0"
] | null | null | null | mix.exs | omsolem/corenlp | ed7acbb73572c49b1c058727b7b5acf1f7f05541 | [
"Apache-2.0"
] | null | null | null | defmodule CoreNLP.Mixfile do
use Mix.Project
def project do
[
app: :corenlp,
version: "0.1.1",
elixir: "~> 1.5",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
description: description(),
package: package(),
# Docs.
... | 21.807229 | 131 | 0.543646 |
7445d795c85021c2e2dd0c3d3f0aab6a3913c6e9 | 1,811 | ex | Elixir | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/outdated_library.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/outdated_library.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/outdated_library.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... | 34.169811 | 141 | 0.720596 |
7446065505c297a6d7a5b5e38891462460b2e522 | 1,746 | ex | Elixir | lib/commodity_api/iam/user/personal_information/personal_information.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/iam/user/personal_information/personal_information.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/iam/user/personal_information/personal_information.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 37.148936 | 78 | 0.735395 |
744608849f4b01a71f549582799d2b826cd337d1 | 946 | ex | Elixir | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/lib/{{APP_NAME}}_endpoint/application.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/lib/{{APP_NAME}}_endpoint/application.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | {{APP_NAME}}_umbrella/apps/{{APP_NAME}}_endpoint/lib/{{APP_NAME}}_endpoint/application.ex | Vorzious/Phoenix-Template | 7baa93c97047906afa2557fd0b0980a0bafd320d | [
"MIT"
] | null | null | null | defmodule {{MODULE_NAME}}Endpoint.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the application starts
supervisor({{MODULE_NAME}}Endpoint.Endpoint, [])
# ... | 33.785714 | 101 | 0.718816 |
74460e71f7b52540a07bb14fc216e910be408ed7 | 593 | exs | Elixir | create_fun_umbrella/apps/create_fun_web/test/create_fun_web/views/error_view_test.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | null | null | null | create_fun_umbrella/apps/create_fun_web/test/create_fun_web/views/error_view_test.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 9 | 2018-06-17T09:54:03.000Z | 2018-06-17T09:55:20.000Z | create_fun_umbrella/apps/create_fun_web/test/create_fun_web/views/error_view_test.exs | Vorzious/CreateFun | 5744c913ef706bc29062fa90a8ec5de12d267dab | [
"MIT"
] | 1 | 2018-06-05T18:38:01.000Z | 2018-06-05T18:38:01.000Z | defmodule CreateFunWeb.ErrorViewTest do
use CreateFunWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(CreateFunWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "rende... | 26.954545 | 70 | 0.689713 |
74464e92ffeec311609733177d31312bf4d519f3 | 4,521 | ex | Elixir | web/router.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | web/router.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | web/router.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | defmodule Artus.Router do
use Artus.Web, :router
# use Plug.ErrorHandler
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug NavigationHistory.Tracker
end
pipeline :auth do
plug Artus.... | 29.54902 | 73 | 0.677947 |
74464ecc79db2144a87f9bc48866c3b81bc1de7f | 1,316 | exs | Elixir | services/fc_inventory/test/fc_inventory/router/draft_transaction_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_inventory/test/fc_inventory/router/draft_transaction_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_inventory/test/fc_inventory/router/draft_transaction_test.exs | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCInventory.Router.DraftTransactionTest do
use FCBase.RouterCase
alias FCInventory.Router
alias FCInventory.DraftTransaction
alias FCInventory.TransactionDrafted
setup do
cmd = %DraftTransaction{
source_id: uuid4(),
destination_id: uuid4(),
quantity: Decimal.new(5)
}
... | 26.857143 | 91 | 0.696049 |
744690ec7359cfd41284bc2d398a0323546bdf3f | 840 | ex | Elixir | test/support/data_case.ex | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | 6 | 2019-01-31T23:31:42.000Z | 2020-10-06T20:05:34.000Z | test/support/data_case.ex | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | 2 | 2021-11-09T14:35:51.000Z | 2021-11-09T18:04:15.000Z | test/support/data_case.ex | jmhthethird/assoc | d73c556f398d01258cbc17b6de58a621a6bc4397 | [
"MIT"
] | 2 | 2019-01-31T23:53:33.000Z | 2021-11-05T21:47:26.000Z | defmodule Assoc.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 r... | 22.105263 | 72 | 0.696429 |
7446aeed444b89171ba19badc09c23e51e39b440 | 2,135 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/data_source_index_stats.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/data_source_index_stats.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/data_source_index_stats.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... | 42.7 | 350 | 0.750351 |
7446cca9c3c7b348a5e8753adb7912ae4aef91ca | 2,525 | exs | Elixir | test/unit/mogoose_push_metrics_test.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/unit/mogoose_push_metrics_test.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | test/unit/mogoose_push_metrics_test.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | null | null | null | defmodule MongoosePushMetricsTest do
use ExUnit.Case, async: false
use Quixir
import MongoosePush
import Mock
import MongoosePush.Support.TimeHelper
alias MongoosePush.Service.APNS
alias MongoosePush.Service.FCM
setup do
TestHelper.reload_app()
end
describe "sprial metric" do
test "'ok' i... | 30.059524 | 94 | 0.585347 |
7446d95d53e14ef596af2f31afafdcdb53e6571e | 77 | exs | Elixir | elixir/49.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/49.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/49.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | defmodule Math do
def double(n), do: n * 2
end
Math.double(4)
|> IO.puts
| 9.625 | 26 | 0.636364 |
74470b125806274bee47966d9ebcd89819f6a7b6 | 197 | ex | Elixir | lib/ex_bench.ex | kminwoog/ex_bench | f1ceb875f108e4e0edcfb2bd670ecfec368d61ce | [
"MIT"
] | null | null | null | lib/ex_bench.ex | kminwoog/ex_bench | f1ceb875f108e4e0edcfb2bd670ecfec368d61ce | [
"MIT"
] | null | null | null | lib/ex_bench.ex | kminwoog/ex_bench | f1ceb875f108e4e0edcfb2bd670ecfec368d61ce | [
"MIT"
] | null | null | null | defmodule ExBench do
@moduledoc """
Documentation for ExBench.
"""
@doc """
Hello world.
## Examples
iex> ExBench.hello
:world
"""
def hello do
:world
end
end
| 10.368421 | 28 | 0.568528 |
744728b76cea4bc5d235610d30cfbb0a0e6b48b5 | 29,037 | exs | Elixir | lib/elixir/test/elixir/string_test.exs | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule StringTest do
use ExUnit.Case, async: true
doctest String
test "next_codepoint/1" do
assert String.next_codepoint("ésoj") == {"é", "soj"}
assert String.next_codepoint(<<255>>) == {<<255>>, ""}
assert String.next_codepoint("") == nil
end
# ... | 41.779856 | 211 | 0.573475 |
744738ff39022b927fc56bcc7d106b8073a782f4 | 4,883 | ex | Elixir | lib/maple/helpers.ex | maxneuvians/maple | 9785945c9fce814d7bd63e0c055cc7e71765e322 | [
"MIT"
] | 24 | 2017-10-03T17:22:35.000Z | 2021-06-09T20:19:43.000Z | lib/maple/helpers.ex | maxneuvians/maple | 9785945c9fce814d7bd63e0c055cc7e71765e322 | [
"MIT"
] | 2 | 2017-11-20T04:17:26.000Z | 2018-12-12T23:39:07.000Z | lib/maple/helpers.ex | maxneuvians/maple | 9785945c9fce814d7bd63e0c055cc7e71765e322 | [
"MIT"
] | 4 | 2017-10-29T17:03:08.000Z | 2018-08-30T20:57:24.000Z | defmodule Maple.Helpers do
@moduledoc """
Helper functions to create the dybamic function in the macro. Helps
keep the code somewhat clean and maintainable
"""
require Logger
def apply_type(response, func) do
result = response[func[:name]]
cond do
is_list(result) ->
result
|> ... | 26.394595 | 108 | 0.602703 |
7447c3a0f016ab3fc02a7ef756836325a5d7cca9 | 1,721 | ex | Elixir | lib/ex_oauth2_provider/oauth2/token/strategy/client_credentials.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/token/strategy/client_credentials.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth2/token/strategy/client_credentials.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Token.ClientCredentials do
@moduledoc """
Functions for dealing with client credentials strategy.
"""
alias ExOauth2Provider.{
AccessTokens,
Token.Utils,
Token.Utils.Response,
Utils.Error
}
@doc """
Will grant access token by client credentials.
## Example
... | 28.683333 | 85 | 0.641488 |
7447c9a7a55ec5ba8e061013d54902d458a35957 | 991 | ex | Elixir | priv/perf/apps/load_test/lib/connection/child_chain.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | priv/perf/apps/load_test/lib/connection/child_chain.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | priv/perf/apps/load_test/lib/connection/child_chain.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 35.392857 | 89 | 0.759839 |
7447e1445903dde8cc546c5b585d3d42b3bd2d52 | 2,966 | ex | Elixir | lib/absinthe/pipeline/batch_resolver.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/pipeline/batch_resolver.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | lib/absinthe/pipeline/batch_resolver.ex | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Pipeline.BatchResolver do
alias Absinthe.Phase.Document.Execution
require Logger
@moduledoc false
def run([], _), do: []
def run([bp | _] = blueprints, options) do
schema = Keyword.fetch!(options, :schema)
plugins = schema.plugins()
acc = init(blueprints, :acc)
ctx = in... | 25.791304 | 94 | 0.637559 |
7447e5abb7fe098c67b91a6dc81f0cab6509bef2 | 1,085 | ex | Elixir | lib/shelving/products/item.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | lib/shelving/products/item.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | lib/shelving/products/item.ex | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | defmodule Shelving.Products.Item do
use Ecto.Schema
use Shelving.Types.ArchivedAt
import Ecto.Changeset
import Ecto.Query, only: [from: 2]
alias Shelving.Types.Slug
alias Shelving.Accounts.Account
@type t :: %__MODULE__{
id: pos_integer(),
name: String.t(),
slug: Slug.t(),... | 24.659091 | 71 | 0.635023 |
744834f9719584cba92687d236ea54dc805f7759 | 357 | ex | Elixir | packages/rlack/api/web/models/message.ex | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | 1 | 2017-04-08T20:08:05.000Z | 2017-04-08T20:08:05.000Z | packages/rlack/api/web/models/message.ex | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | null | null | null | packages/rlack/api/web/models/message.ex | ragmha/projects | 673f7bbad8e27868a4cfa81480556bbc3f4d5bea | [
"MIT"
] | null | null | null | defmodule Rlack.Message do
use Rlack.Web, :model
schema "messages" do
field :text, :string
belongs_to :room, Rlack.Room
belongs_to :user, Rlack.User
timestamps()
end
def changeset(struct, params \\ %{}) do
struct
|> cast(params, [:text, :user_id, :room_id])
|> validate_required([:... | 19.833333 | 53 | 0.644258 |
74483bb3d1c7e35d2ab22ebb09e3a2bf29d5c583 | 1,109 | exs | Elixir | config/config.exs | SchrodingerZhu/veb | ad72a76c4138fd180c8fdd8b00b2c2bd8eeb584e | [
"MIT"
] | 2 | 2017-07-30T11:32:22.000Z | 2017-08-14T09:08:35.000Z | config/config.exs | SchrodingerZhu/veb | ad72a76c4138fd180c8fdd8b00b2c2bd8eeb584e | [
"MIT"
] | null | null | null | config/config.exs | SchrodingerZhu/veb | ad72a76c4138fd180c8fdd8b00b2c2bd8eeb584e | [
"MIT"
] | null | null | null | # 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 |
7448703b13c2a5ccfecbc51fe2b754715e6f7013 | 2,261 | exs | Elixir | mix.exs | markevich/co2_offset | 98a799d3f30d21b595c9e083d9ee43bb96a4c68c | [
"Apache-2.0"
] | 15 | 2018-12-26T10:31:16.000Z | 2020-12-01T09:27:01.000Z | mix.exs | markevich/co2_offset | 98a799d3f30d21b595c9e083d9ee43bb96a4c68c | [
"Apache-2.0"
] | 267 | 2018-12-26T07:46:17.000Z | 2020-04-04T17:05:47.000Z | mix.exs | markevich/co2_offset | 98a799d3f30d21b595c9e083d9ee43bb96a4c68c | [
"Apache-2.0"
] | 1 | 2019-07-12T13:53:25.000Z | 2019-07-12T13:53:25.000Z | defmodule Co2Offset.MixProject do
use Mix.Project
def project do
[
app: :co2_offset,
version: "0.4.1",
elixir: "~> 1.9.0",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases... | 28.620253 | 79 | 0.571429 |
744874daa8f643529a861ea262328a307d1fc3df | 1,520 | ex | Elixir | test/support/data_case.ex | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | test/support/data_case.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | test/support/data_case.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | defmodule Noted.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to the... | 27.142857 | 77 | 0.686184 |
74487c484c0eb70f7db6c8276389af528591ed77 | 2,214 | exs | Elixir | test/features/events_test.exs | jeffhsta/nubank_api | c4ca246f6e6ff6e77e349293daaff3741d3975ff | [
"MIT"
] | 14 | 2019-02-19T16:59:16.000Z | 2021-10-30T14:57:10.000Z | test/features/events_test.exs | fernandozoomp/API_NuBank | cb05de00d48275f3eae94fa3cb4ea55684289937 | [
"MIT"
] | 32 | 2019-02-21T02:40:03.000Z | 2020-06-09T00:04:03.000Z | test/features/events_test.exs | fernandozoomp/API_NuBank | cb05de00d48275f3eae94fa3cb4ea55684289937 | [
"MIT"
] | 3 | 2019-02-22T00:20:34.000Z | 2021-04-08T20:35:07.000Z | defmodule NubankAPI.Feature.EventsTest do
use ExUnit.Case, async: true
import Mox
alias NubankAPI.{Access, Event}
alias NubankAPI.Feature.Events
alias NubankAPI.Mock.HTTP
setup do
events_fixture = NubankAPI.TestHelper.load_fixture(:events)
access = %Access{
access_token: "fake_access_token"... | 26.674699 | 74 | 0.655827 |
74488c1caca1421b4a65ee5af6944cd145e54539 | 3,830 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context.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... | 47.875 | 167 | 0.704178 |
74489e262cd0a66cf575926ba4ed3bb600249ef6 | 1,226 | exs | Elixir | config/config.exs | churcho/puppeteer-pdf | 2f67ec7e8c4ca8625cf27560b8e9343453f8ca2a | [
"MIT"
] | 90 | 2018-04-26T15:51:36.000Z | 2022-03-21T22:18:41.000Z | config/config.exs | churcho/puppeteer-pdf | 2f67ec7e8c4ca8625cf27560b8e9343453f8ca2a | [
"MIT"
] | 26 | 2018-05-26T14:53:58.000Z | 2021-06-28T05:03:17.000Z | config/config.exs | churcho/puppeteer-pdf | 2f67ec7e8c4ca8625cf27560b8e9343453f8ca2a | [
"MIT"
] | 23 | 2018-05-25T18:40:55.000Z | 2022-01-22T07:33:48.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :puppeteer_pdf, exec_path: System.get_env("PUPPETEER_PDF_PATH") || "puppeteer-pdf"
# This configuration is loaded before any dependency and is restricted
# to this project. I... | 37.151515 | 89 | 0.756117 |
7448ca8ced963d748f51df6be1a97eae81cf00aa | 582 | exs | Elixir | apps/artemis/priv/repo/migrations/20190321133217_create_wiki_pages.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/priv/repo/migrations/20190321133217_create_wiki_pages.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/priv/repo/migrations/20190321133217_create_wiki_pages.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.Repo.Migrations.CreateWikiPages do
use Ecto.Migration
def change do
create table(:wiki_pages) do
add :body, :text
add :body_html, :text
add :section, :string
add :slug, :string
add :title, :string
add :weight, :integer
add :user_id, references(:users,... | 26.454545 | 62 | 0.658076 |
7448fcffd179ba9ed66dedf9c175f09d560d8df4 | 2,484 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/source_repository.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/source_repository.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/source_repository.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.215385 | 134 | 0.721417 |
74491d89dd179062243bf5beb837198194302801 | 868 | ex | Elixir | lib/koans/01_equalities.ex | omajul85/Elixir-Koans | 7b22cc4fdc075b7e3e744d6c79ed35324bb29f1f | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | omajul85/Elixir-Koans | 7b22cc4fdc075b7e3e744d6c79ed35324bb29f1f | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | omajul85/Elixir-Koans | 7b22cc4fdc075b7e3e744d6c79ed35324bb29f1f | [
"MIT"
] | null | null | null | defmodule Equalities do
use Koans
@intro """
Welcome to the Elixir koans.
Let these be your first humble steps towards learning a new language.
The path laid in front of you is one of many.
"""
# Replace ___ with the answer to make the koan pass.
koan "We shall contemplate truth by testing reality, ... | 21.7 | 83 | 0.678571 |
74492b9bc8793203e88bb56507a3523f6298a152 | 969 | ex | Elixir | lib/home_bot/data_store/home_climate_store.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_bot/data_store/home_climate_store.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_bot/data_store/home_climate_store.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | defmodule HomeBot.DataStore.HomeClimateStore do
@moduledoc "Data store for Home Climate data"
import HomeBot.DataStore.PostgresStore
def get_latest_temperature do
result =
Postgrex.query!(
HomeBot.DbConnection,
"SELECT * FROM home_climate_events ORDER BY time DESC limit 1",
[]
... | 22.534884 | 112 | 0.632611 |
74493d8bdc99679c8a7bc0a46b202a4b88b27374 | 4,336 | ex | Elixir | lib/elasticfusion/search/lexer.ex | fanuniverse/elasticfusion | fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e | [
"CC0-1.0"
] | null | null | null | lib/elasticfusion/search/lexer.ex | fanuniverse/elasticfusion | fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e | [
"CC0-1.0"
] | null | null | null | lib/elasticfusion/search/lexer.ex | fanuniverse/elasticfusion | fea34d51051f5bb3c3d9e33fd99b2d5baf261f7e | [
"CC0-1.0"
] | null | null | null | defmodule Elasticfusion.Search.Lexer do
@moduledoc """
This module exposes functions for lexical scanning operations on a string.
State tracking is explicit: functions receieve a state
and return a tuple of {match, new_state}. Initial state is set up
through `initialize/1`.
All functions match the beginnin... | 29.69863 | 92 | 0.583948 |
74495225fd4cff8a78957915c41afde4d3ba120a | 1,467 | ex | Elixir | apps/crawler/lib/custo_justo.ex | dih78/rent-bot | 35ee3f32ca227979922aee37678e98e6e46491c8 | [
"MIT"
] | null | null | null | apps/crawler/lib/custo_justo.ex | dih78/rent-bot | 35ee3f32ca227979922aee37678e98e6e46491c8 | [
"MIT"
] | 2 | 2021-03-10T03:48:31.000Z | 2021-05-10T23:32:27.000Z | apps/crawler/lib/custo_justo.ex | dih78/rent-bot | 35ee3f32ca227979922aee37678e98e6e46491c8 | [
"MIT"
] | null | null | null | defmodule Crawler.CustoJusto do
def import(page \\ 1) do
url = "https://www.gumtree.pl/s-mieszkania-i-domy-do-wynajecia/mokotow/v1c9008l3200012p1?pr=1000,2300"
url
|> get_page_html()
|> get_dom_elements()
|> extract_metadata()
end
defp get_page_html(url) do
{:ok, %HTTPoison.Response{body... | 24.04918 | 106 | 0.584185 |
744977ad3a757a8303a9e54ed50bc6391b0c30cb | 590 | exs | Elixir | test/cog/chat/slack/templates/embedded/relay_group_member_assign_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/slack/templates/embedded/relay_group_member_assign_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/slack/templates/embedded/relay_group_member_assign_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.Slack.Templates.Embedded.RelayGroupMemberAssignTest do
use Cog.TemplateCase
test "relay-group-member-assign template" do
data = %{"results" => [%{"name" => "testgroup",
"bundles_assigned" => ["bundle1",
"bundle2... | 34.705882 | 92 | 0.6 |
7449ec7434bb13ce0b1bd6bb74487c8082d36558 | 1,316 | ex | Elixir | lib/koans/20_comprehensions.ex | svanburen/elixir-koans | b19e744b4b7598f5aa2b697b2ce21cb51e176950 | [
"MIT"
] | null | null | null | lib/koans/20_comprehensions.ex | svanburen/elixir-koans | b19e744b4b7598f5aa2b697b2ce21cb51e176950 | [
"MIT"
] | null | null | null | lib/koans/20_comprehensions.ex | svanburen/elixir-koans | b19e744b4b7598f5aa2b697b2ce21cb51e176950 | [
"MIT"
] | null | null | null | defmodule Comprehensions do
use Koans
@intro "A comprehension is made of three parts: generators, filters, and collectibles. We will look at how these interact with eachother"
koan "The generator, `n <- [1, 2, 3, 4]`, is providing the values for our comprehension" do
assert for(n <- [1, 2, 3, 4], do: n * n)... | 34.631579 | 139 | 0.574468 |
744a267e0c7a140b970213f5f26a2dc60f7b69e5 | 485 | exs | Elixir | mix.exs | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | mix.exs | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | mix.exs | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | defmodule MyXQL.MixProject do
use Mix.Project
def project() do
[
app: :myxql,
version: "0.1.0",
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application() do
[
extra_applications: [:logger]
]
end
defp deps() do
[
... | 16.724138 | 48 | 0.482474 |
744a330c38de6166a5c976332ff99c869fa85773 | 669 | exs | Elixir | csvtodb/mix.exs | bhargavrpatel/elixir_experiments | 4c32d2386d17146586a518251b36855fdcf93f1f | [
"Unlicense"
] | null | null | null | csvtodb/mix.exs | bhargavrpatel/elixir_experiments | 4c32d2386d17146586a518251b36855fdcf93f1f | [
"Unlicense"
] | null | null | null | csvtodb/mix.exs | bhargavrpatel/elixir_experiments | 4c32d2386d17146586a518251b36855fdcf93f1f | [
"Unlicense"
] | null | null | null | defmodule Csvtodb.Mixfile do
use Mix.Project
def project do
[app: :csvtodb,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 20.272727 | 77 | 0.606876 |
744a44ead89bbcbd1083b9c96a4564d96397bbf2 | 2,360 | exs | Elixir | test/engine/config/headway_test.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | test/engine/config/headway_test.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | test/engine/config/headway_test.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | defmodule Engine.Config.HeadwayTest do
use ExUnit.Case, async: true
alias Engine.Config.Headway
describe "from_map/2" do
test "parses successfully" do
assert Headway.from_map("A", "peak", %{"range_low" => 5, "range_high" => 10}) ==
{:ok, %Headway{headway_id: {"A", :peak}, range_low: 5, r... | 47.2 | 96 | 0.668644 |
744a4b8dadcd491d2ac9633d059fcdd4258616a8 | 500 | ex | Elixir | lib/sift/events/types/browser.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/events/types/browser.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/events/types/browser.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | defmodule Sift.Events.Types.Browser do
alias Sift.Schema
alias Sift.Schema.{Field, Type}
@behaviour Type
@impl Type
def type_alias, do: :browser
@fields %{
user_agent: %Field{key: "$user_agent", required?: true},
accept_language: %Field{key: "$accept_language"},
content_language: %Field{key: ... | 21.73913 | 60 | 0.672 |
744aa9a33104e682f36a9d386164834f17473bd0 | 6,324 | exs | Elixir | server/config/config.exs | sthagen/supabase-realtime | ffdf4f28db629e82d1fb3b601a71fde5b3a5a450 | [
"Apache-2.0"
] | null | null | null | server/config/config.exs | sthagen/supabase-realtime | ffdf4f28db629e82d1fb3b601a71fde5b3a5a450 | [
"Apache-2.0"
] | null | null | null | server/config/config.exs | sthagen/supabase-realtime | ffdf4f28db629e82d1fb3b601a71fde5b3a5a450 | [
"Apache-2.0"
] | 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
import Config
alias Realtime.{PubSub, RLS}
alias RealtimeWeb.{E... | 37.2 | 126 | 0.763283 |
744ab3b1d9dc40bccd038d903bc93e19106fca89 | 1,863 | ex | Elixir | clients/connectors/lib/google_api/connectors/v1/model/list_runtime_entity_schemas_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/connectors/lib/google_api/connectors/v1/model/list_runtime_entity_schemas_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/connectors/lib/google_api/connectors/v1/model/list_runtime_entity_schemas_response.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... | 36.529412 | 142 | 0.748256 |
744ae1e2d5a43910be28ba3264f9dec01e4e59b0 | 15,724 | ex | Elixir | lib/cldr/utils/digits.ex | elixir-cldr/cldr_utils | 66c6598706e7feea00188f96f2f4f1b3bee5e17c | [
"Apache-2.0"
] | 6 | 2019-07-19T17:49:11.000Z | 2021-03-20T14:38:28.000Z | lib/cldr/utils/digits.ex | elixir-cldr/cldr_utils | 66c6598706e7feea00188f96f2f4f1b3bee5e17c | [
"Apache-2.0"
] | 5 | 2020-01-28T06:11:50.000Z | 2022-03-22T01:31:16.000Z | lib/cldr/utils/digits.ex | elixir-cldr/cldr_utils | 66c6598706e7feea00188f96f2f4f1b3bee5e17c | [
"Apache-2.0"
] | 3 | 2020-01-28T06:08:42.000Z | 2020-10-20T13:40:19.000Z | defmodule Cldr.Digits do
@moduledoc """
Abstract representation of number (integer, float, Decimal) in tuple form
and functions for transformations on number parts.
Representing a number as a list of its digits, and integer representing
where the decimal point is placed and an integer representing the sign
... | 27.830088 | 93 | 0.652697 |
744b1fedd98fadde563d63d16f73989bdacbc07d | 1,952 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_carousel_select.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_carousel_select.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_carousel_select.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... | 33.084746 | 169 | 0.750512 |
744b3bf077d14cdaf1272b36a48ce82977076688 | 3,811 | ex | Elixir | lib/flipay/best_rate_finder.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | lib/flipay/best_rate_finder.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | lib/flipay/best_rate_finder.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | defmodule Flipay.BestRateFinder do
@moduledoc """
Find the best rate according to input/output assets, input amount and exchange's order book.
"""
@doc """
Finds the best rate for input request.
Order book comes from specific exchange and the quotes are sorted by best to worst order.
Input/output assets ... | 33.725664 | 119 | 0.631855 |
744b59a81414e6e837968dbc092c31d3f4768cae | 5,660 | ex | Elixir | lib/still/preprocessor.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 202 | 2021-01-13T15:45:17.000Z | 2022-03-22T01:26:27.000Z | lib/still/preprocessor.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 55 | 2021-01-26T14:11:34.000Z | 2022-03-22T22:34:37.000Z | lib/still/preprocessor.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 10 | 2021-02-04T21:14:41.000Z | 2022-03-20T10:12:59.000Z | defmodule Still.Preprocessor do
@moduledoc """
Defines functions to be used by the several preprocessors as well as the
behaviour they should have.
Preprocessors are the cornerstone of Still. A preprocessor chain can take a
markdown file, execute its embedded Elixir, extract metadata from its front
matter,... | 27.609756 | 95 | 0.637102 |
744b5c1d2372e9da31fabc4d512196aa96ff0ca0 | 6,282 | ex | Elixir | lib/changelog_web/helpers/shared_helpers.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 1 | 2019-11-02T08:32:25.000Z | 2019-11-02T08:32:25.000Z | lib/changelog_web/helpers/shared_helpers.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | lib/changelog_web/helpers/shared_helpers.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Helpers.SharedHelpers do
use Phoenix.HTML
alias Changelog.{ListKit, Regexp}
alias Phoenix.{Controller, Naming}
@doc """
Returns `class_name` for a given connection if it matches any of the provided
'matchers'. A 'matcher' could be a string representation of a controller/
action co... | 31.41 | 100 | 0.670805 |
744b68aff13672c98cf8b3156f9bc1246490ac87 | 431 | ex | Elixir | lib/console/events_stat_runs/events_stat_run.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console/events_stat_runs/events_stat_run.ex | JeffcoTrading/console | 78a6634b0f1cbe922de02488ecc0492b0680e724 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console/events_stat_runs/events_stat_run.ex | JeffcoTrading/console | 78a6634b0f1cbe922de02488ecc0492b0680e724 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.EventsStatRuns.EventsStatRun do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "events_stat_runs" do
field :last_event_id, :string
field :reported_at_epoch, :integer
timestamps()
end
def changese... | 19.590909 | 52 | 0.696056 |
744bb8fc0e5c63a6c2e29b259751050a5b6f845d | 1,125 | exs | Elixir | mix.exs | jchung722/tic_tac_toe_elixir | e61d7d30670c6d753bed64685212015c0f3b96c1 | [
"MIT"
] | null | null | null | mix.exs | jchung722/tic_tac_toe_elixir | e61d7d30670c6d753bed64685212015c0f3b96c1 | [
"MIT"
] | 1 | 2019-04-29T15:13:21.000Z | 2019-04-29T15:13:21.000Z | mix.exs | jchung722/tic_tac_toe_elixir | e61d7d30670c6d753bed64685212015c0f3b96c1 | [
"MIT"
] | null | null | null | defmodule TicTacToeElixir.MixProject do
use Mix.Project
def project do
[
app: :tic_tac_toe_elixir,
version: "1.2.0",
description: "Logic for a game of TicTacToe",
elixir: "~> 1.8",
escript: [main_module: TicTacToeElixir],
start_permanent: Mix.env() == :prod,
deps: deps... | 25.568182 | 87 | 0.601778 |
744be3846fcd20c00fb7a8995fb491aec92d0c13 | 16,144 | ex | Elixir | lib/desktop/menu/html_tokenizer.ex | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | lib/desktop/menu/html_tokenizer.ex | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | lib/desktop/menu/html_tokenizer.ex | watsy0007/desktop | 3ba43a1c16aa39bab3e03c94e56024c66f0b1d96 | [
"MIT"
] | null | null | null | defmodule Desktop.Menu.HTMLTokenizer do
# This is the internal tokenizer from Phoenix.LiveView.HTMLTokenizer
# unfortunately the token/4 API changed into token/6 so copying it inplace...
@moduledoc false
@space_chars '\s\t\f'
@name_stop_chars @space_chars ++ '>/=\r\n'
defmodule ParseError do
defexcept... | 34.348936 | 108 | 0.659254 |
744bec915fb7aaea202134179f1ff68cad7d860d | 659 | exs | Elixir | test/ex_config/data_sources/env_config_test.exs | djthread/ex_config | 6900ffe3c0cdc089a224621749bfd5d32cced562 | [
"MIT"
] | null | null | null | test/ex_config/data_sources/env_config_test.exs | djthread/ex_config | 6900ffe3c0cdc089a224621749bfd5d32cced562 | [
"MIT"
] | null | null | null | test/ex_config/data_sources/env_config_test.exs | djthread/ex_config | 6900ffe3c0cdc089a224621749bfd5d32cced562 | [
"MIT"
] | null | null | null | defmodule(ConfigInBetaEnv, do: def(env, do: :beta))
defmodule(ConfigInProdEnv, do: def(env, do: :prod))
defmodule ExConfig.EnvConfigDataSourceTest do
use ExUnit.Case
alias ExConfig.EnvConfigDataSource, as: DS
@env_configs [beta: [some_key: "some value"]]
test "fetch works" do
Application.put_env(:my_app,... | 29.954545 | 79 | 0.698027 |
744bf7935e6ddf236e17931017fcab2574a95929 | 1,662 | exs | Elixir | mix.exs | wise-home/quantity | 62cae5d049d6909a47b37a2b9df2a93ef61461a0 | [
"MIT"
] | 8 | 2020-01-17T08:00:51.000Z | 2022-03-07T10:30:01.000Z | mix.exs | wise-home/quantity | 62cae5d049d6909a47b37a2b9df2a93ef61461a0 | [
"MIT"
] | 15 | 2020-01-17T10:35:06.000Z | 2021-11-19T07:40:18.000Z | mix.exs | wise-home/quantity | 62cae5d049d6909a47b37a2b9df2a93ef61461a0 | [
"MIT"
] | null | null | null | defmodule Quantity.MixProject do
use Mix.Project
def project do
[
app: :quantity,
version: "0.6.1",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: dialyzer(),
elixirc_paths: elixirc_paths(Mix.env()),
# He... | 21.037975 | 92 | 0.569194 |
744c1281118d440533ab5ea6ebe9c3aa8044e080 | 821 | exs | Elixir | test/glimesh_web/live/user_live_components/social_buttons_test.exs | coredreamstudios/glimesh.tv | 736f4f03aa51a7fbcaaf276ffee2af470afc2fa7 | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | test/glimesh_web/live/user_live_components/social_buttons_test.exs | coredreamstudios/glimesh.tv | 736f4f03aa51a7fbcaaf276ffee2af470afc2fa7 | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | test/glimesh_web/live/user_live_components/social_buttons_test.exs | coredreamstudios/glimesh.tv | 736f4f03aa51a7fbcaaf276ffee2af470afc2fa7 | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.UserLive.Components.SocialButtonsTest do
use GlimeshWeb.ConnCase
import Phoenix.LiveViewTest
import Glimesh.AccountsFixtures
@component GlimeshWeb.UserLive.Components.SocialButtons
defp create_channel(_) do
streamer = streamer_fixture()
%{
channel: streamer.channel,
... | 24.147059 | 92 | 0.671133 |
744ccaad0af7b04afa6819fdc0dbe5dd45ab69eb | 1,592 | exs | Elixir | config/config.exs | UnisonUI/libcluster_ec2 | df6953c702d188e9fb81e9c0188b5515892e0887 | [
"MIT"
] | null | null | null | config/config.exs | UnisonUI/libcluster_ec2 | df6953c702d188e9fb81e9c0188b5515892e0887 | [
"MIT"
] | null | null | null | config/config.exs | UnisonUI/libcluster_ec2 | df6953c702d188e9fb81e9c0188b5515892e0887 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use 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 parent pr... | 30.615385 | 73 | 0.720477 |
744ce003efeef5199c772c7711aa641643dc0887 | 1,579 | exs | Elixir | mix.exs | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | mix.exs | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | mix.exs | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | defmodule CiVisuals.Mixfile do
use Mix.Project
def project do
[app: :ci_visuals,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: al... | 28.709091 | 78 | 0.597847 |
744ce605bed96c23748c71d4797396aa4e7c43b7 | 67 | ex | Elixir | game_server_umbrella/apps/game_server_web/lib/game_server_web/views/page_view.ex | jburky/dara-dots | 7a67de3d77448792435ccbf9fb8291e821fed4ac | [
"MIT"
] | 6 | 2021-03-25T21:02:28.000Z | 2022-02-10T08:11:28.000Z | game_server_umbrella/apps/game_server_web/lib/game_server_web/views/page_view.ex | jburky/dara-dots | 7a67de3d77448792435ccbf9fb8291e821fed4ac | [
"MIT"
] | 20 | 2020-09-02T23:17:29.000Z | 2022-03-27T22:54:20.000Z | game_server_umbrella/apps/game_server_web/lib/game_server_web/views/page_view.ex | jburky/dara-dots | 7a67de3d77448792435ccbf9fb8291e821fed4ac | [
"MIT"
] | 2 | 2021-03-25T21:08:15.000Z | 2021-09-25T19:11:36.000Z | defmodule GameServerWeb.PageView do
use GameServerWeb, :view
end
| 16.75 | 35 | 0.820896 |
744ceb94e349f131198c68b90e8822a7a4c7a873 | 4,726 | ex | Elixir | lib/io/export.ex | cpursley/Plsm | 9964f7d26d93ea79c66ad3b34858d176fbfce1c2 | [
"MIT"
] | null | null | null | lib/io/export.ex | cpursley/Plsm | 9964f7d26d93ea79c66ad3b34858d176fbfce1c2 | [
"MIT"
] | null | null | null | lib/io/export.ex | cpursley/Plsm | 9964f7d26d93ea79c66ad3b34858d176fbfce1c2 | [
"MIT"
] | null | null | null | defmodule Plsm.IO.Export do
@doc """
Generate the schema field based on the database type
"""
def type_output({name, type, is_primary_key?}) do
escaped_name = escaped_name(name)
type_output_with_source(escaped_name, name, map_type(type), is_primary_key?)
|> four_space()
end
defp map_type(:bo... | 30.490323 | 150 | 0.657004 |
744cf60488b4a488339a1f9aa2e23c97569c3c79 | 3,564 | ex | Elixir | lib/advent_of_code_2019/day11.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | lib/advent_of_code_2019/day11.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | lib/advent_of_code_2019/day11.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | defmodule AdventOfCode2019.SpacePolice do
@moduledoc """
Day 11 — https://adventofcode.com/2019/day/11
"""
@spec part1(Enumerable.t()) :: integer
def part1(in_stream) do
in_stream
|> paint(0)
|> map_size()
end
@spec part2(Enumerable.t()) :: String.t()
def part2(in_stream) do
in_stream
... | 33.622642 | 83 | 0.608586 |
744cfe2b5661021e1e4a5c3711fa5842cfdac239 | 329 | ex | Elixir | lib/phone/nanp/us/nj.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/nj.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/nj.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.US.NJ do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(201|551|609|732|848|856|862|908|973)([2-9].{6})$/
def area_name, do: "New Jersey"
def area_type, do: "state"
def area_abbreviation, do: "NJ"
matcher ["1201", "1551", "1609", "1732", "1848", "1856", "1862", "1908", "19... | 25.307692 | 82 | 0.6231 |
744d0f238ceed37351c725536db52c113f35b4cb | 2,624 | exs | Elixir | implementations/elixir/ockam/ockam_services/test/services/forwarding_test.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/test/services/forwarding_test.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/test/services/forwarding_test.exs | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | defmodule Test.Services.ForwardingTest do
use ExUnit.Case
alias Ockam.Services.Forwarding, as: ForwardingService
alias Ockam.Node
alias Ockam.Router
alias Ockam.Workers.RemoteForwarder
alias Test.Utils
test "forwarding" do
{:ok, _worker, worker_address} =
Test.Services.ForwardingTestWorker.s... | 23.221239 | 97 | 0.676829 |
744d1f0a3dd8ac12d9216b0b3c239da0d8d893f5 | 46 | exs | Elixir | test/test_helper.exs | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | test/test_helper.exs | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | test/test_helper.exs | livinginthepast/sibilant | 2ad2e4362986de25102ce98832483ec7ddaa15ab | [
"MIT"
] | null | null | null | {:ok, _pid} = Gestalt.start()
ExUnit.start()
| 11.5 | 29 | 0.630435 |
744d236c46c2467f37ab2c1392558060b32763ca | 5,189 | exs | Elixir | test/generate/autonomous_transfer_complete_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | test/generate/autonomous_transfer_complete_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | test/generate/autonomous_transfer_complete_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Generator.AutonomousTransferCompleteTest do
use ExUnit.Case, async: true
import TestHelpers
@sample ~s|<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp="urn:dslforum-org:cwmp-1-4" xmlns:xsd=... | 47.172727 | 289 | 0.710156 |
744d2bfa6325f84db97b04e0d3ad43979ae9e180 | 5,117 | ex | Elixir | lib/glimesh/graphql/schema/chat_types.ex | Eein/glimesh.tv | e55e96b852363b0d9576ca47d19f1499889c68db | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/chat_types.ex | Eein/glimesh.tv | e55e96b852363b0d9576ca47d19f1499889c68db | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/chat_types.ex | Eein/glimesh.tv | e55e96b852363b0d9576ca47d19f1499889c68db | [
"MIT"
] | null | null | null | defmodule Glimesh.Schema.ChatTypes do
@moduledoc false
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers
alias Glimesh.Repo
alias Glimesh.Resolvers.ChatResolver
alias Glimesh.Streams
input_object :chat_message_input do
field :message, :string
end
object :chat_mutations do
@de... | 27.961749 | 86 | 0.68419 |
744d71beccadd132463a770be970d7986f6a6c7a | 289 | ex | Elixir | apps/ui/lib/ui_web/live/dashboard_live.ex | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/ui/lib/ui_web/live/dashboard_live.ex | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/ui/lib/ui_web/live/dashboard_live.ex | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | defmodule UiWeb.DashboardLive do
use Phoenix.LiveView
def render(assigns) do
~L"""
<div class="">
Current prices of streamed symbol
<%= live_render(@socket, UiWeb.PriceFeedLive) %>
</div>
"""
end
def mount(%{}, socket) do
{:ok, socket}
end
end
| 16.055556 | 54 | 0.602076 |
744d88cd8248a6f83cb1b06625ac41e83a3d9e6f | 1,438 | ex | Elixir | lib/cadet/assessments/submission.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet/assessments/submission.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet/assessments/submission.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | defmodule Cadet.Assessments.Submission do
@moduledoc false
use Cadet, :model
alias Cadet.Accounts.User
alias Cadet.Assessments.{Answer, Assessment, SubmissionStatus}
schema "submissions" do
field(:grade, :integer, virtual: true)
field(:adjustment, :integer, virtual: true)
field(:xp, :integer, vi... | 31.955556 | 85 | 0.732962 |
744db7d3af2c7590888b7815570f9325be5b028e | 2,320 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/absolute_date_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/absolute_date_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/absolute_date_range.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... | 46.4 | 300 | 0.755603 |
744dd4b99f3a087bf1437506dd5bc48b5806da6c | 2,325 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/service_identity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/service_identity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/service_identity.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... | 43.867925 | 357 | 0.742796 |
744de8e1f682054fc34b77ffe707d9329f3d2418 | 3,115 | ex | Elixir | lib/forge_sdk/rpc/helper.ex | ArcBlock/forge-elixir-sdk | 61ff656a59116d3da18055d54655e8eb5ca15f63 | [
"Apache-2.0"
] | 21 | 2019-05-08T01:25:42.000Z | 2022-02-08T02:30:18.000Z | lib/forge_sdk/rpc/helper.ex | ArcBlock/forge-elixir-sdk | 61ff656a59116d3da18055d54655e8eb5ca15f63 | [
"Apache-2.0"
] | 6 | 2019-05-27T23:07:00.000Z | 2020-03-10T04:33:10.000Z | lib/forge_sdk/rpc/helper.ex | ArcBlock/forge-elixir-sdk | 61ff656a59116d3da18055d54655e8eb5ca15f63 | [
"Apache-2.0"
] | 2 | 2019-07-21T18:12:47.000Z | 2021-07-31T21:18:38.000Z | defmodule ForgeSdk.Rpc.Helper do
@moduledoc false
require Logger
alias ForgeSdk.Rpc.Stub, as: ForgeRpc
alias GRPC.Stub, as: Client
@recv_timeout 10_000
@deadline_expired 4
@doc """
Send a single request to GRPC server.
"""
def send(service, conn, req, opts, fun) do
grpc_opts = get_grpc_opts(... | 25.958333 | 95 | 0.607384 |
744debf4e65712baa45310b7cc8af5769bd054c6 | 1,718 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/get_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/get_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/get_iam_policy_request.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.791667 | 170 | 0.760768 |
744df493feaa08e03c4614d5ff9e905485354f4d | 1,149 | ex | Elixir | lib/quadquizaminos/release_task.ex | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | lib/quadquizaminos/release_task.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | lib/quadquizaminos/release_task.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule Quadquizaminos.ReleaseTask do
@moduledoc """
Tasks that can be automatically run during release
"""
@app :quadquizaminos
@start_apps [:postgrex, :ecto, :ecto_sql]
@repo Quadquizaminos.Repo
def migrate do
load_app()
IO.puts("Running migrations for Quadquizaminos.Repo")
{:ok, _, _} ... | 24.978261 | 91 | 0.667537 |
744df7bc88460463de80a95b96bfebd1646c1688 | 1,320 | ex | Elixir | lib/aeacus.ex | MainShayne233/aeacus | b91685a051f1b03de6d061eec4a720bcbf613638 | [
"BSD-3-Clause"
] | 42 | 2015-07-05T12:20:04.000Z | 2022-02-20T23:38:16.000Z | lib/aeacus.ex | MainShayne233/aeacus | b91685a051f1b03de6d061eec4a720bcbf613638 | [
"BSD-3-Clause"
] | 1 | 2015-07-06T19:48:00.000Z | 2015-07-06T20:54:03.000Z | lib/aeacus.ex | MainShayne233/aeacus | b91685a051f1b03de6d061eec4a720bcbf613638 | [
"BSD-3-Clause"
] | 5 | 2016-02-13T05:13:46.000Z | 2022-01-23T00:45:44.000Z | defmodule Aeacus do
@moduledoc """
A simple, secure, and highly configurable Elixir identity [username |
email | id | etc.]/password authentication module to use with Ecto.
"""
@default_config %{
crypto: Comeonin.Pbkdf2,
identity_field: :email,
password_field: :hashed_password,
error_mess... | 33.846154 | 96 | 0.737121 |
744df89479beaeaed640bc8df318a06621144ee7 | 7,221 | exs | Elixir | lib/elixir/test/elixir/kernel/comprehension_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/comprehension_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/comprehension_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.ComprehensionTest do
use ExUnit.Case, async: true
import CompileAssertion
import ExUnit.CaptureIO
require Integer
defmodule Pdict do
defstruct []
defimpl Collectable do
def into(struct) do
{struct,
fn
... | 26.450549 | 91 | 0.5448 |
744e0302b08666b46bd9d0024ceea6f1a360f77b | 6,442 | ex | Elixir | lib/bitpal/backends/mock/backend_mock.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal/backends/mock/backend_mock.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal/backends/mock/backend_mock.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.BackendMock do
@behaviour BitPal.Backend
use BitPalFactory
use GenServer
import BitPalSettings.ConfigHelpers
alias BitPal.Backend
alias BitPal.BlockchainEvents
alias BitPal.Blocks
alias BitPal.Invoices
alias BitPal.ProcessRegistry
alias BitPal.Transactions
alias BitPalSchemas.Cur... | 24.401515 | 97 | 0.682086 |
744e1b0ee26f03f76de09f3972381f9e2ad83184 | 306 | exs | Elixir | priv/repo/migrations/20200613005803_create_sms_messages.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20200613005803_create_sms_messages.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20200613005803_create_sms_messages.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.CreateSmsMessages do
use Ecto.Migration
def change do
create table(:sms_messages) do
add :to, :string
add :from, :string
add :body, :text
add :sent_at, :utc_datetime
add :twilio_sid, :string
timestamps()
end
end
end
| 19.125 | 58 | 0.653595 |
744e2deb2b09a77d6325e97d1f37013762597728 | 113 | ex | Elixir | lib/uncalote_me/repo.ex | daniel-leal/uncaloteme-api | 708be51ae446077bee8350a876bc2357cb3a66b8 | [
"MIT"
] | null | null | null | lib/uncalote_me/repo.ex | daniel-leal/uncaloteme-api | 708be51ae446077bee8350a876bc2357cb3a66b8 | [
"MIT"
] | null | null | null | lib/uncalote_me/repo.ex | daniel-leal/uncaloteme-api | 708be51ae446077bee8350a876bc2357cb3a66b8 | [
"MIT"
] | null | null | null | defmodule UncaloteMe.Repo do
use Ecto.Repo,
otp_app: :uncalote_me,
adapter: Ecto.Adapters.Postgres
end
| 18.833333 | 35 | 0.743363 |
744e7cfc00610815dd73cf3e61d6e980a692846f | 4,266 | exs | Elixir | test/absinthe/schema/sdl_render_test.exs | jscheid/absinthe | 5b5079f03402f482c5f52a35efc263a5a6ccaf64 | [
"MIT"
] | null | null | null | test/absinthe/schema/sdl_render_test.exs | jscheid/absinthe | 5b5079f03402f482c5f52a35efc263a5a6ccaf64 | [
"MIT"
] | null | null | null | test/absinthe/schema/sdl_render_test.exs | jscheid/absinthe | 5b5079f03402f482c5f52a35efc263a5a6ccaf64 | [
"MIT"
] | null | null | null | defmodule SdlRenderTest do
use ExUnit.Case
defmodule SdlTestSchema do
use Absinthe.Schema
@sdl """
schema {
query: Query
}
directive @foo(name: String!) on OBJECT | SCALAR
interface Animal {
legCount: Int!
}
\"""
A submitted post
Multiline description
\""... | 19.84186 | 83 | 0.563057 |
744e8d87ceee7b0b11db5cf42abffdc402fcf352 | 1,866 | exs | Elixir | legacy/artie/apps/artie_main/config/config.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | legacy/artie/apps/artie_main/config/config.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | legacy/artie/apps/artie_main/config/config.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | # 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... | 32.736842 | 81 | 0.713826 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.