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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3fc354ee2fd9f3a743401ace73e10c95073a9707 | 1,222 | ex | Elixir | lib/find_my_personal_web/controllers/api/member_controller.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | null | null | null | lib/find_my_personal_web/controllers/api/member_controller.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | 11 | 2022-01-12T02:39:42.000Z | 2022-02-09T02:17:04.000Z | lib/find_my_personal_web/controllers/api/member_controller.ex | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | defmodule FindMyPersonalWeb.Api.MemberController do
use FindMyPersonalWeb, :controller
alias FindMyPersonal.Members
alias FindMyPersonal.Members.Member
action_fallback FindMyPersonalWeb.FallbackController
def index(conn, _params) do
members = Members.list_members()
render(conn, "index.json", member... | 27.772727 | 85 | 0.666939 |
3fc3610c2d7d98c69e826d0ed0fb999156bb5495 | 1,372 | exs | Elixir | test/loom_pncounter_test.exs | fribmendes/loom | b370f677f2a183db69337b34c7024410da08c548 | [
"Apache-2.0"
] | 206 | 2015-01-02T02:03:07.000Z | 2021-01-10T11:17:21.000Z | test/loom_pncounter_test.exs | fribmendes/loom | b370f677f2a183db69337b34c7024410da08c548 | [
"Apache-2.0"
] | 7 | 2015-06-17T20:14:17.000Z | 2017-05-30T12:10:28.000Z | test/loom_pncounter_test.exs | fribmendes/loom | b370f677f2a183db69337b34c7024410da08c548 | [
"Apache-2.0"
] | 16 | 2015-05-05T15:19:41.000Z | 2018-11-15T10:15:50.000Z | defmodule LoomPncounterTest do
use ExUnit.Case
use Loom
use ExCheck
alias Loom.CRDT, as: CRDT
doctest Loom.PNCounter
doctest Loom.CRDT.Loom.PNCounter
test "Exception on creation for negative values" do
assert_raise ArgumentError, fn -> Counter.new(values: [a: {5,-1}]) end
end
test "Increment/d... | 31.906977 | 99 | 0.569971 |
3fc382741b3d0ac11292e66480a769e1920a4ca5 | 824 | ex | Elixir | web/controllers/registration_controller.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | web/controllers/registration_controller.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | web/controllers/registration_controller.ex | cuongkta/login_logout_elixir | 71ad24e1077402fa719ce52fb3bc2a77510b1b86 | [
"Apache-2.0"
] | null | null | null | defmodule Blog.RegistrationController do
use Blog.Web, :controller
alias Blog.User
def new(conn, _params) do
changeset = User.changeset(%User{})
render conn, changeset: changeset
end
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.html", users: users)
end
def crea... | 25.75 | 66 | 0.640777 |
3fc39d14aa81acce747a69b1df769173311c967b | 275 | exs | Elixir | priv/repo/migrations/20180327150232_add_extra_info_to_github_users.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20180327150232_add_extra_info_to_github_users.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180327150232_add_extra_info_to_github_users.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.AddExtraInfoToGithubUsers do
use Ecto.Migration
def change do
alter table(:github_users) do
add(:access_token, :string)
add(:node_id, :string)
end
create(unique_index(:github_users, [:node_id]))
end
end
| 21.153846 | 68 | 0.716364 |
3fc3afe9deadd251ffa22cf127bce0adee740944 | 1,587 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/age_range_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/age_range_targeting_option_details.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/age_range_targeting_option_details.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... | 33.765957 | 141 | 0.755514 |
3fc3e5942cc48c7d2f1449842b43d4eb55b0534e | 301 | exs | Elixir | nifs/main.exs | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | nifs/main.exs | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | nifs/main.exs | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | defmodule FastCompare do
@on_load :load_nifs
def load_nifs do
:erlang.load_nif('./build/libfast_compare', 0)
end
def fast_compare(_a, _b) do
raise "NIF fast_compare/2 not implemented"
end
end
IO.puts FastCompare.fast_compare(99, 100)
IO.puts FastCompare.fast_compare(100, 99)
| 20.066667 | 50 | 0.730897 |
3fc3fed9b59126454e002db2da11dbc73a895742 | 995 | ex | Elixir | lib/shiftplaner_web/application.ex | pfitz/shiftplaner_web | ca961b4916e76bb2c87c83c28d8f286dfaa2f2fe | [
"MIT"
] | null | null | null | lib/shiftplaner_web/application.ex | pfitz/shiftplaner_web | ca961b4916e76bb2c87c83c28d8f286dfaa2f2fe | [
"MIT"
] | null | null | null | lib/shiftplaner_web/application.ex | pfitz/shiftplaner_web | ca961b4916e76bb2c87c83c28d8f286dfaa2f2fe | [
"MIT"
] | null | null | null | defmodule ShiftplanerWeb.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 endpoint when... | 33.166667 | 92 | 0.732663 |
3fc402cf5ea51e7c494881514aa7ce028d678929 | 16,528 | exs | Elixir | test/event_store_test.exs | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 576 | 2017-11-03T14:11:07.000Z | 2022-03-29T06:18:47.000Z | test/event_store_test.exs | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 129 | 2017-11-08T06:10:20.000Z | 2021-09-15T16:18:14.000Z | test/event_store_test.exs | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 118 | 2017-11-14T14:10:09.000Z | 2022-03-28T13:13:56.000Z | defmodule EventStore.EventStoreTest do
use EventStore.StorageCase
alias EventStore.{EventData, EventFactory, RecordedEvent}
alias EventStore.Snapshots.SnapshotData
alias TestEventStore, as: EventStore
@all_stream "$all"
@subscription_name "test_subscription"
test "returns already started for started ev... | 34.290456 | 99 | 0.698088 |
3fc4035e9256556aa93553ce26195ca4eb8ae4eb | 607 | ex | Elixir | lib/banking_api/account.ex | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | 2 | 2021-04-20T22:27:53.000Z | 2021-05-13T17:16:15.000Z | lib/banking_api/account.ex | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | lib/banking_api/account.ex | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.Account do
use Ecto.Schema
import Ecto.Changeset
alias BankingApi.User
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@required [:balance, :user_id]
schema "accounts" do
field :balance, :decimal
belongs_to :user, User
timestamp... | 20.233333 | 52 | 0.680395 |
3fc456002b1b4e80a6721ebf83efc5573d826c4c | 9,215 | exs | Elixir | apps/snitch_core/test/domain/shipping_calculator_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/test/domain/shipping_calculator_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/test/domain/shipping_calculator_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Domain.ShippingCalculatorTest do
use ExUnit.Case, async: true
use Snitch.DataCase
import Mox
import Snitch.Factory
alias Snitch.Data.Schema.{Package, ShippingRule}
alias Snitch.Domain.ShippingCalculator
setup do
Application.put_env(:snitch_core, :defaults, currency: :USD)
end
s... | 31.666667 | 96 | 0.637005 |
3fc4734a176c01af8f5032cd9721dba3c5cb52b0 | 5,447 | ex | Elixir | lib/binance/futures/websocket/ws_client.ex | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | lib/binance/futures/websocket/ws_client.ex | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | lib/binance/futures/websocket/ws_client.ex | ihorkatkov/binance.ex | 33b014e3310ce3374b9b9f2ce3cd46314f22f446 | [
"MIT"
] | null | null | null | defmodule Binance.Futures.WebSocket.WSClient do
@moduledoc """
WebSocket client for Binance Futures
There are 2 types of WebSocket channels/streams on Binance:
- Public streams (https://binanceapitest.github.io/Binance-Futures-API-doc/wss/)
- User Data stream (https://binanceapitest.github.io/Binance-Future... | 34.694268 | 121 | 0.656141 |
3fc49b8b20cfa99d104d04cdae3c6bb984cf5dde | 2,577 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/page.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/page.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/page.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.557692 | 705 | 0.733411 |
3fc4d740d83cd8e537714c31edf77106c8f718a4 | 4,062 | ex | Elixir | lib/presence/presence.ex | imveny/lanyard | 9de800957b45ef7352c4377c56cdd9b7aa067442 | [
"MIT"
] | null | null | null | lib/presence/presence.ex | imveny/lanyard | 9de800957b45ef7352c4377c56cdd9b7aa067442 | [
"MIT"
] | null | null | null | lib/presence/presence.ex | imveny/lanyard | 9de800957b45ef7352c4377c56cdd9b7aa067442 | [
"MIT"
] | null | null | null | defmodule Lanyard.Presence do
use GenServer
defstruct user_id: nil,
discord_user: nil,
discord_presence: nil,
subscriber_pids: nil
def start_link(state) do
GenServer.start_link(__MODULE__, state, name: :"presence:#{state.user_id}")
end
def init(state) do
IO.inspe... | 32.496 | 152 | 0.672575 |
3fc4f4dd0727b3e1a8582f314982e91b18a3c276 | 3,864 | exs | Elixir | test/chronik/store/store_test.exs | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 28 | 2017-09-12T13:54:17.000Z | 2021-07-20T22:04:28.000Z | test/chronik/store/store_test.exs | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 18 | 2017-09-22T14:06:00.000Z | 2018-06-09T14:18:35.000Z | test/chronik/store/store_test.exs | parody/chronik | ec2dbc5b415433d8732575db6ce24b02ebaf5da3 | [
"MIT"
] | 2 | 2018-05-11T09:36:50.000Z | 2019-09-23T18:29:58.000Z | defmodule Chronik.Store.Test do
use ExUnit.Case
alias DomainEvents.{CounterCreated, CounterIncremented}
defmodule TestStore do
use Chronik.Store, otp_app: :chronik
def child_spec(opts) do
%{
id: __MODULE__,
start: {__MODULE__, :start_link, [opts]},
type: :worker
}
... | 29.723077 | 91 | 0.610507 |
3fc4f9889ac53052006f0b7e82bae9d1544836f3 | 5,339 | ex | Elixir | lib/new_relic/tracer/report.ex | VitorTrin/elixir_agent | 03b1261eeafef6c016550ad51d939e75d59deda9 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/tracer/report.ex | VitorTrin/elixir_agent | 03b1261eeafef6c016550ad51d939e75d59deda9 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/tracer/report.ex | VitorTrin/elixir_agent | 03b1261eeafef6c016550ad51d939e75d59deda9 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Tracer.Report do
alias NewRelic.Transaction
# Helper functions that will report traced function events in their various forms
# - Transaction Trace segments
# - Distributed Trace spans
# - Transaction attributes
# - Metrics
# - Aggregate metric-like NRDB events
@moduledoc false... | 27.520619 | 91 | 0.637198 |
3fc50fadd242996ac8441f79af4c97d706c712ac | 1,150 | ex | Elixir | test/support/conn_case.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 71 | 2020-03-09T02:09:30.000Z | 2022-03-09T06:10:23.000Z | test/support/conn_case.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | null | null | null | test/support/conn_case.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 4 | 2020-04-03T02:28:05.000Z | 2021-11-24T20:07:25.000Z | defmodule BonfireWeb.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 th... | 28.04878 | 69 | 0.723478 |
3fc52155e52a88b320050357b667c7e27d5e42cf | 776 | ex | Elixir | lib/slackex/oauth.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 30 | 2016-01-12T18:05:37.000Z | 2020-06-19T19:54:11.000Z | lib/slackex/oauth.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 7 | 2016-01-12T18:23:35.000Z | 2020-11-30T13:26:47.000Z | lib/slackex/oauth.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 5 | 2016-11-01T17:17:38.000Z | 2019-10-29T16:08:45.000Z | defmodule Slackex.OAuth do
@moduledoc """
Exchanges a temporary OAuth code for an API token.
"""
@doc """
This method allows you to exchange a temporary OAuth
code for an API access token. This is used as part of
the OAuth authentication flow.
As discussed in RFC 6749 it is possible to supply the
Cl... | 28.740741 | 63 | 0.710052 |
3fc524d6acb616b8ab35e886036df1e291159e13 | 4,431 | ex | Elixir | lib/polling/polling.timeout.pipeline_server.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | lib/polling/polling.timeout.pipeline_server.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | lib/polling/polling.timeout.pipeline_server.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | require Logger;
defmodule CncfDashboardApi.Polling.Timeout.PipelineServer do
@compile if Mix.env == :test, do: :export_all
use GenServer
alias CncfDashboardApi.Repo
import Ecto.Query
use EctoConditionals, repo: CncfDashboardApi.Repo
def start_link(name, skpm_id, timeout) do
Logger.info fn ->
"pi... | 37.871795 | 123 | 0.70729 |
3fc52d007239765f2138194a26a4ce5429819bc6 | 931 | ex | Elixir | lib/mix/tasks/serum.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | lib/mix/tasks/serum.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | null | null | null | lib/mix/tasks/serum.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Serum do
@moduledoc """
Prints a list of available Serum tasks.
mix serum
This task does not take any command line argument.
"""
@shortdoc "Prints a list of available Serum tasks"
use Mix.Task
alias Mix.Tasks.Serum.CLIHelper
@b IO.ANSI.bright()
@c IO.ANSI.cyan()
@r IO.... | 25.861111 | 78 | 0.63695 |
3fc538b461e5465919c4c05f2a0a6d6b2e1b8758 | 4,801 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/container_version.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/container_version.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/container_version.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 50.010417 | 191 | 0.712976 |
3fc540a4359b6ebd54b4b51f7e53c4f2138a23a8 | 11,291 | ex | Elixir | lib/ptolemy_server.ex | davanB/ptolemy | 8af911ff9e6bfa7a3e467dff0e7aaaf4cf9456f3 | [
"MIT"
] | null | null | null | lib/ptolemy_server.ex | davanB/ptolemy | 8af911ff9e6bfa7a3e467dff0e7aaaf4cf9456f3 | [
"MIT"
] | null | null | null | lib/ptolemy_server.ex | davanB/ptolemy | 8af911ff9e6bfa7a3e467dff0e7aaaf4cf9456f3 | [
"MIT"
] | null | null | null | defmodule Ptolemy.Server do
@moduledoc """
`Ptolemy.Server` is responsible for the management of a remote backend's server's data.
Data that `Ptolemy.Server` manages includes but not limited to:
- Authentication Data to a remote vault server and its lifecycle
- IAP authentication and its lifecyle
"""
... | 29.635171 | 131 | 0.551324 |
3fc585dfd04820045908378fdc10fa225388c59b | 1,345 | ex | Elixir | lib/ex_json_schema/validator/items.ex | appcues/ex_json_schema | 3d4abf8a17bb803ab9ec2840c89f1f2bfda16d26 | [
"MIT"
] | null | null | null | lib/ex_json_schema/validator/items.ex | appcues/ex_json_schema | 3d4abf8a17bb803ab9ec2840c89f1f2bfda16d26 | [
"MIT"
] | null | null | null | lib/ex_json_schema/validator/items.ex | appcues/ex_json_schema | 3d4abf8a17bb803ab9ec2840c89f1f2bfda16d26 | [
"MIT"
] | null | null | null | defmodule ExJsonSchema.Validator.Items do
alias ExJsonSchema.Schema
alias ExJsonSchema.Validator
@spec validate(Root.t, Schema.resolved, [ExJsonSchema.data]) :: Validator.errors_with_list_paths
def validate(root, %{"items" => schema = %{}}, items) when is_list(items) do
items
|> Enum.with_index
|> ... | 34.487179 | 135 | 0.698141 |
3fc58de89b1e9b0cd8d35dfa8eedfac2390cd4ab | 136 | exs | Elixir | test/test_helper.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 608 | 2015-01-05T18:44:49.000Z | 2022-03-21T19:54:01.000Z | test/test_helper.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 165 | 2015-01-04T13:01:01.000Z | 2022-03-16T08:31:48.000Z | test/test_helper.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 130 | 2015-01-28T19:33:21.000Z | 2022-02-08T22:21:43.000Z | ExUnit.start
Application.ensure_all_started(:http_server)
Application.ensure_all_started(:telemetry)
Finch.start_link(name: ExVCRFinch)
| 27.2 | 44 | 0.867647 |
3fc5bec3a016950ce48f1220852b630186f0b35d | 206 | ex | Elixir | web/controllers/guardian/guardian_handler.ex | wkozyra95/phoenix-boilerplate | 8fd4607639f327928b0f8319a697f8efa951556e | [
"MIT"
] | null | null | null | web/controllers/guardian/guardian_handler.ex | wkozyra95/phoenix-boilerplate | 8fd4607639f327928b0f8319a697f8efa951556e | [
"MIT"
] | null | null | null | web/controllers/guardian/guardian_handler.ex | wkozyra95/phoenix-boilerplate | 8fd4607639f327928b0f8319a697f8efa951556e | [
"MIT"
] | null | null | null | defmodule StarterProject.GuardianHandler do
use StarterProject.Web, :controller
def unauthenticated(conn, _params) do
conn
|> put_status(401)
|> text("Authentication required")
end
end
| 17.166667 | 43 | 0.728155 |
3fc5ce8d5d20359ecf61ea560098365fdbbc4566 | 361 | exs | Elixir | config/test.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | 1 | 2018-01-14T09:41:05.000Z | 2018-01-14T09:41:05.000Z | config/test.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | config/test.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | use Mix.Config
config :phoenix, BeamToolboxWeb.Router,
port: System.get_env("PORT") || 4001,
ssl: false,
code_reload: false,
cookies: true,
consider_all_requests_local: true,
session_key: "_beam_toolbox_web_key",
session_secret: "@TFCIFT_#V0ZN_^X)&UD1!3D_FFI8CH1E#0=12_!6&P4JWFY1S3VXX18F$TM0H(1NQH%I"
con... | 22.5625 | 89 | 0.739612 |
3fc5eb008a0efded39267da67762bb907a0edaba | 179 | exs | Elixir | priv/repo/migrations/20200607162125_rename_author_usernames_to_usernames.exs | calleluks/ex-remit | 893dbc42c9ace6db6ee044f82371075198089fdc | [
"MIT"
] | 17 | 2020-06-28T19:01:49.000Z | 2021-11-24T23:55:09.000Z | priv/repo/migrations/20200607162125_rename_author_usernames_to_usernames.exs | calleluks/ex-remit | 893dbc42c9ace6db6ee044f82371075198089fdc | [
"MIT"
] | 29 | 2020-06-27T17:44:38.000Z | 2022-01-17T10:00:12.000Z | priv/repo/migrations/20200607162125_rename_author_usernames_to_usernames.exs | calleluks/ex-remit | 893dbc42c9ace6db6ee044f82371075198089fdc | [
"MIT"
] | 2 | 2021-03-01T09:51:56.000Z | 2021-03-04T21:27:56.000Z | defmodule Remit.Repo.Migrations.RenameAuthorUsernamesToUsernames do
use Ecto.Migration
def change do
rename table("commits"), :author_usernames, to: :usernames
end
end
| 22.375 | 67 | 0.782123 |
3fc5f67d697e5a884bd8566faf3cca4e40a2ab39 | 75 | exs | Elixir | test/test_helper.exs | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 61 | 2020-05-27T01:33:39.000Z | 2022-03-30T20:46:02.000Z | test/test_helper.exs | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 18 | 2020-05-29T21:43:45.000Z | 2022-03-30T17:02:54.000Z | test/test_helper.exs | gingman/shopifex | c9a1977c5d50ccd738c59a095b855ee36c93161a | [
"Apache-2.0"
] | 21 | 2020-06-14T17:02:56.000Z | 2022-01-08T18:54:51.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(ShopifexDummy.Repo, :manual)
| 25 | 59 | 0.8 |
3fc63f007f0335309860f30fe928d2782769d70c | 512 | ex | Elixir | lib/ash_admin/components/resource/resource_info.ex | totaltrash/ash_admin | 0b577d7e02a65dbf763a204a44ae3c2531f66da0 | [
"MIT"
] | null | null | null | lib/ash_admin/components/resource/resource_info.ex | totaltrash/ash_admin | 0b577d7e02a65dbf763a204a44ae3c2531f66da0 | [
"MIT"
] | null | null | null | lib/ash_admin/components/resource/resource_info.ex | totaltrash/ash_admin | 0b577d7e02a65dbf763a204a44ae3c2531f66da0 | [
"MIT"
] | null | null | null | defmodule AshAdmin.Components.Resource.Info do
@moduledoc false
use Surface.Component
alias AshAdmin.Components.Resource.{RelationshipTable, AttributeTable}
prop(resource, :any, required: true)
prop(api, :any, required: true)
prop(prefix, :any, required: true)
def render(assigns) do
~H"""
<div ... | 25.6 | 88 | 0.662109 |
3fc64426f1c550e078085cc1ebd81615cb4172fe | 929 | exs | Elixir | server/potter_sea/test/potter_sea_web/controllers/token_controller_test.exs | monarch619/PotterSea | 937fc62fcb0b4e2e071718353bc6ba95bc310aa1 | [
"Apache-2.0"
] | 44 | 2021-12-12T19:28:26.000Z | 2022-03-05T09:48:00.000Z | server/potter_sea/test/potter_sea_web/controllers/token_controller_test.exs | RoniAndarsyah/PotterSea | 40560be7842aa5e791a7b8f0e98b507f4e84a443 | [
"Apache-2.0"
] | 1 | 2021-12-14T12:59:16.000Z | 2022-02-18T09:31:59.000Z | server/potter_sea/test/potter_sea_web/controllers/token_controller_test.exs | RoniAndarsyah/PotterSea | 40560be7842aa5e791a7b8f0e98b507f4e84a443 | [
"Apache-2.0"
] | 7 | 2021-12-12T23:09:04.000Z | 2022-01-02T08:34:45.000Z | defmodule PotterSeaWeb.TokenControllerTest do
use PotterSeaWeb.ConnCase
import PotterSea.NFTFixtures
alias PotterSea.NFT.Token
@create_attrs %{
ipfs_hash: "s5ASC2Cxzx58DXx2xzc1",
price: 12,
user: "Zafer",
meta_data: "{}"
}
@update_attrs %{
}
@invalid_attrs %{
ipfs_hash: "s5ASC2Cx... | 20.644444 | 79 | 0.652314 |
3fc6566935ec4c2f70a37cbc66bbb5efdb415f57 | 1,149 | exs | Elixir | clients/logging/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/logging/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/logging/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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... | 37.064516 | 73 | 0.75805 |
3fc67053588aba6edfeee29300307eec6728b569 | 348 | exs | Elixir | test/web/graphql_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | test/web/graphql_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | test/web/graphql_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule AccentTest.GraphqlInterface do
use Accent.ConnCase
test "graphql", %{conn: conn} do
response =
conn
|> get("/graphql", %{query: "query { __schema { queryType { name } } }"})
assert response.resp_body == ~S({"data":{"__schema":{"queryType":{"name":"RootQueryType"}}}})
assert respo... | 26.769231 | 97 | 0.62931 |
3fc67961991788152c7e68ce7ff17d34b9bc7614 | 428 | ex | Elixir | lib/padlock/mutexes/migrations/v1.ex | annatel/padlock | 0ae17d69078954febb2aaaeef5a6a4d0b5173b5e | [
"MIT"
] | 1 | 2021-06-22T10:15:23.000Z | 2021-06-22T10:15:23.000Z | lib/padlock/mutexes/migrations/v1.ex | annatel/padlock | 0ae17d69078954febb2aaaeef5a6a4d0b5173b5e | [
"MIT"
] | 1 | 2021-06-22T15:14:57.000Z | 2021-06-22T15:14:57.000Z | lib/padlock/mutexes/migrations/v1.ex | annatel/padlock | 0ae17d69078954febb2aaaeef5a6a4d0b5173b5e | [
"MIT"
] | null | null | null | defmodule Padlock.Mutexes.Migrations.V1 do
@moduledoc false
use Ecto.Migration
def up do
create_mutexes_table()
end
def down do
drop_mutexes_table()
end
defp create_mutexes_table() do
create table(:padlock_mutexes) do
add(:name, :string, null: false)
end
create(unique_index(... | 16.461538 | 51 | 0.700935 |
3fc69b865a60621be261469ce132a4cd88a917af | 1,294 | exs | Elixir | mix.exs | gVirtu/bamboo_ses | d9ce4d0ed1b3b0fbfa913392a46838f683ddf511 | [
"MIT"
] | null | null | null | mix.exs | gVirtu/bamboo_ses | d9ce4d0ed1b3b0fbfa913392a46838f683ddf511 | [
"MIT"
] | null | null | null | mix.exs | gVirtu/bamboo_ses | d9ce4d0ed1b3b0fbfa913392a46838f683ddf511 | [
"MIT"
] | null | null | null | defmodule BambooSes.MixProject do
use Mix.Project
def project do
[
app: :bamboo_ses,
elixir: "~> 1.6",
description: description(),
deps: deps(),
docs: docs(),
package: package(),
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/kalys/bamboo_se... | 22.310345 | 65 | 0.553323 |
3fc6fb7501f38643b08f42b16834ea9ef7837298 | 102 | ex | Elixir | lib/atom_tweaks_web/views/tweak_view.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | lib/atom_tweaks_web/views/tweak_view.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | lib/atom_tweaks_web/views/tweak_view.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaksWeb.TweakView do
use AtomTweaksWeb, :view
alias AtomTweaksWeb.LayoutView
end
| 17 | 36 | 0.823529 |
3fc7214aff4637ca133697c9c15578a1b5f92a7d | 1,147 | ex | Elixir | lib/eecrit.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | lib/eecrit.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | lib/eecrit.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit do
use Application
# See http://elixir-lang.org/docs/stable/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 repositories... | 33.735294 | 84 | 0.711421 |
3fc73efac081af2dcb8bf48d5a7382935cd6a641 | 996 | exs | Elixir | implements/raindrops/raindrops.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | implements/raindrops/raindrops.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | 1 | 2018-06-19T18:59:41.000Z | 2018-06-19T18:59:41.000Z | implements/raindrops/raindrops.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | defmodule Raindrops do
@doc """
Returns a string based on raindrop factors.
- If the number contains 3 as a prime factor, output 'Pling'.
- If the number contains 5 as a prime factor, output 'Plang'.
- If the number contains 7 as a prime factor, output 'Plong'.
- If the number does not contain 3, 5, or 7 a... | 35.571429 | 77 | 0.640562 |
3fc782090ba16e06ea6d1cdc76b03fb5f64fe136 | 1,443 | exs | Elixir | mix.exs | soundmonster/spandex_datadog | 1162bcdf7ed0465bb821c22beec5db8f220c56de | [
"MIT"
] | null | null | null | mix.exs | soundmonster/spandex_datadog | 1162bcdf7ed0465bb821c22beec5db8f220c56de | [
"MIT"
] | null | null | null | mix.exs | soundmonster/spandex_datadog | 1162bcdf7ed0465bb821c22beec5db8f220c56de | [
"MIT"
] | null | null | null | defmodule SpandexDatadog.MixProject do
use Mix.Project
@version "0.4.0"
def project do
[
app: :spandex_datadog,
description: description(),
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()... | 20.614286 | 80 | 0.537076 |
3fc7d41959d5f3d3d70f393184eb942cd7a1cd27 | 2,499 | exs | Elixir | test/quiz_site_web/controllers/choice_controller_test.exs | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | 2 | 2017-10-30T00:42:01.000Z | 2017-10-30T21:29:15.000Z | test/quiz_site_web/controllers/choice_controller_test.exs | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | test/quiz_site_web/controllers/choice_controller_test.exs | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | defmodule QuizSiteWeb.ChoiceControllerTest do
use QuizSiteWeb.ConnCase
alias QuizSite.Questions
alias QuizSite.Questions.Choice
@create_attrs %{choice: "some choice"}
@update_attrs %{choice: "some updated choice"}
@invalid_attrs %{choice: nil}
def fixture(:choice) do
{:ok, choice} = Questions.creat... | 31.2375 | 98 | 0.632253 |
3fc7e88305c60f32fd1eebb5e81186197600bda1 | 583 | exs | Elixir | mix.exs | msawka/ccb_import | da9dfb22fdf016c6bcfc19f4e9b00e67f4137a20 | [
"Apache-2.0"
] | null | null | null | mix.exs | msawka/ccb_import | da9dfb22fdf016c6bcfc19f4e9b00e67f4137a20 | [
"Apache-2.0"
] | null | null | null | mix.exs | msawka/ccb_import | da9dfb22fdf016c6bcfc19f4e9b00e67f4137a20 | [
"Apache-2.0"
] | null | null | null | defmodule CcbImport.MixProject do
use Mix.Project
def project do
[
app: :ccb_import,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extr... | 18.806452 | 94 | 0.567753 |
3fc8107ac869218f96140a4bbd174f1c32cc4e46 | 198 | exs | Elixir | test/test_helper.exs | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | 5 | 2015-12-21T00:33:41.000Z | 2016-05-07T20:51:55.000Z | test/test_helper.exs | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | null | null | null | test/test_helper.exs | wsmoak/secret_keeper | 1e14ef26d1421947a81b4e1a77aa9e00fed98a21 | [
"MIT"
] | null | null | null | ExUnit.start
Mix.Task.run "ecto.create", ~w(-r SecretKeeper.Repo --quiet)
Mix.Task.run "ecto.migrate", ~w(-r SecretKeeper.Repo --quiet)
Ecto.Adapters.SQL.begin_test_transaction(SecretKeeper.Repo)
| 28.285714 | 61 | 0.762626 |
3fc81cd51074f0e6e6216b698cbe7568cf4a8d86 | 1,694 | ex | Elixir | lib/phxcrd/ldap.ex | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 18 | 2019-06-21T09:55:46.000Z | 2022-02-16T18:44:17.000Z | lib/phxcrd/ldap.ex | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 16 | 2019-05-21T20:19:44.000Z | 2020-05-12T08:30:42.000Z | lib/phxcrd/ldap.ex | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 2 | 2019-09-05T00:35:27.000Z | 2020-10-17T16:36:35.000Z | defmodule Phxcrd.Ldap do
@connect_timeout 2_000
def entry_to_map(entry) do
%{
object_name: entry.object_name |> List.to_string(),
cn: Exldap.get_attribute!(entry, "cn"),
mail: Exldap.get_attribute!(entry, "mail"),
sn: Exldap.get_attribute!(entry, "sn"),
uid: Exldap.get_attribute!(... | 30.25 | 83 | 0.572609 |
3fc8cd460b035a4183daa83bb682c235fb80ad44 | 1,863 | ex | Elixir | apps/fz_vpn/lib/fz_vpn/cli/live.ex | En-clair/firezone | 1aa1afd2876393a303c0ee76fbcdd1038f6a7cbf | [
"Apache-2.0"
] | 1 | 2022-02-02T07:56:41.000Z | 2022-02-02T07:56:41.000Z | apps/fz_vpn/lib/fz_vpn/cli/live.ex | alsarmi/firezone | 1aa1afd2876393a303c0ee76fbcdd1038f6a7cbf | [
"Apache-2.0"
] | null | null | null | apps/fz_vpn/lib/fz_vpn/cli/live.ex | alsarmi/firezone | 1aa1afd2876393a303c0ee76fbcdd1038f6a7cbf | [
"Apache-2.0"
] | null | null | null | defmodule FzVpn.CLI.Live do
@moduledoc """
A low-level module that wraps common WireGuard CLI operations.
Currently, these are very Linux-specific. In the future,
this could be generalized to any *nix platform that supports a WireGuard
client.
See FzVpn.Server for higher-level functionality.
"""
# Out... | 21.662791 | 98 | 0.672034 |
3fc8df23af6016c2aab699ec3f4b44b404247803 | 553 | ex | Elixir | elixir/scrap_preview/lib/scrap/helper/parse.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/scrap_preview/lib/scrap/helper/parse.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/scrap_preview/lib/scrap/helper/parse.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Scrap.Helper.Parse do
def split(text, separator) do
[name, value] = text
|> String.split(separator)
|> Enum.map(fn str -> String.trim(str) end)
[name, value]
end
def float(value, :pl) when is_float(value) do
value
end
def float(value, :pl) when is_integer(value) do
value /... | 20.481481 | 49 | 0.605787 |
3fc9027bc079a2075a1cc3f904e60d2dc96ae2a0 | 758 | ex | Elixir | lib/juntos_web/live/live_helpers.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 1 | 2019-11-15T15:39:24.000Z | 2019-11-15T15:39:24.000Z | lib/juntos_web/live/live_helpers.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 166 | 2020-06-30T16:07:48.000Z | 2021-11-25T00:02:24.000Z | lib/juntos_web/live/live_helpers.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | null | null | null | defmodule JuntosWeb.LiveHelpers do
@moduledoc false
import Phoenix.LiveView.Helpers
@doc """
Renders a component inside the `JuntosWeb.ModalComponent` component.
The rendered modal receives a `:return_to` option to properly update
the URL when the modal is closed.
## Examples
<%= live_modal @soc... | 30.32 | 80 | 0.699208 |
3fc90a19989331290591b9eaa82e4836e713d90d | 1,315 | ex | Elixir | test/support/conn_case.ex | temp/opencov | 0fc7d5af8d4d88162f9f74f371ed5799a0c8808e | [
"MIT"
] | 189 | 2018-09-25T09:02:41.000Z | 2022-03-09T13:52:06.000Z | test/support/conn_case.ex | temp/opencov | 0fc7d5af8d4d88162f9f74f371ed5799a0c8808e | [
"MIT"
] | 29 | 2018-09-26T05:51:18.000Z | 2021-11-05T08:55:03.000Z | test/support/conn_case.ex | temp/opencov | 0fc7d5af8d4d88162f9f74f371ed5799a0c8808e | [
"MIT"
] | 32 | 2018-10-21T12:28:11.000Z | 2022-03-28T02:20:19.000Z | defmodule Opencov.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the da... | 27.395833 | 106 | 0.679087 |
3fc90f29da385f7ab75297c4d0831872cb1677d8 | 214 | exs | Elixir | farmbot_core/priv/config/migrations/20180802155935_neets_http_sync.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/config/migrations/20180802155935_neets_http_sync.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/config/migrations/20180802155935_neets_http_sync.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config.Repo.Migrations.NeetsHttpSync do
use Ecto.Migration
import FarmbotCore.Config.MigrationHelpers
def change do
create_settings_config("needs_http_sync", :bool, true)
end
end
| 23.777778 | 61 | 0.803738 |
3fc98132dea0bbfdb0dbd3ae88099e630c5dd28e | 124 | ex | Elixir | lib/letter_lines_live/repo.ex | adam-phillips/letter_lines_live | 8ab3fcd6499924390868908a31f8c2935c9392a0 | [
"MIT"
] | null | null | null | lib/letter_lines_live/repo.ex | adam-phillips/letter_lines_live | 8ab3fcd6499924390868908a31f8c2935c9392a0 | [
"MIT"
] | null | null | null | lib/letter_lines_live/repo.ex | adam-phillips/letter_lines_live | 8ab3fcd6499924390868908a31f8c2935c9392a0 | [
"MIT"
] | null | null | null | defmodule LetterLinesLive.Repo do
use Ecto.Repo,
otp_app: :letter_lines_live,
adapter: Ecto.Adapters.Postgres
end
| 20.666667 | 35 | 0.766129 |
3fc984dd9fd066ba37928224d4bfe032e4529b8c | 1,164 | ex | Elixir | web/channels/user_socket.ex | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | 1 | 2018-04-23T14:55:58.000Z | 2018-04-23T14:55:58.000Z | web/channels/user_socket.ex | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | null | null | null | defmodule Flaggy.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", Flaggy.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authenti... | 30.631579 | 83 | 0.701031 |
3fc996f5af2a947b6c393a961697d67e490965ca | 7,705 | ex | Elixir | lib/absinthe/relay/connection/notation.ex | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | lib/absinthe/relay/connection/notation.ex | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | lib/absinthe/relay/connection/notation.ex | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | defmodule Absinthe.Relay.Connection.Notation do
@moduledoc """
Macros used to define Connection-related schema entities
See `Absinthe.Relay.Connection` for more information.
"""
alias Absinthe.Schema.Notation
defmodule Naming do
@moduledoc false
defstruct base_identifier: nil, node_type_identif... | 29.408397 | 121 | 0.701363 |
3fc9b99fe3cbc9a673dfbc4cebc7131edda2ba10 | 59 | ex | Elixir | lib/amrita_web/views/page_view.ex | u3paka/Amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | null | null | null | lib/amrita_web/views/page_view.ex | u3paka/Amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | 2 | 2020-07-17T08:34:44.000Z | 2021-03-09T08:33:47.000Z | lib/amrita_web/views/page_view.ex | u3paka/amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | null | null | null | defmodule AmritaWeb.PageView do
use AmritaWeb, :view
end
| 14.75 | 31 | 0.79661 |
3fca5a8a7e6a23675fcbf48d3319658b2016fe8e | 2,893 | exs | Elixir | test/dispatch/absences/absenceio_client_test.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 21 | 2019-02-13T15:26:00.000Z | 2021-09-18T13:05:42.000Z | test/dispatch/absences/absenceio_client_test.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 26 | 2019-02-13T18:42:44.000Z | 2021-09-16T15:40:05.000Z | test/dispatch/absences/absenceio_client_test.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 2 | 2020-05-26T09:09:19.000Z | 2021-04-21T20:43:07.000Z | defmodule Dispatch.Absences.AbsenceIOClientTest do
use ExUnit.Case, async: false
import Mock
alias Dispatch.Absences.AbsenceIOClient
defp ical_feed_url, do: Application.get_env(:dispatch, AbsenceIOClient)[:ical_feed_url]
test "fetch_absents/0" do
ical = """
BEGIN:VCALENDAR
BEGIN:VEVENT
UID... | 31.791209 | 133 | 0.625302 |
3fca638c4b1ed83bd80595eb66812aa154350652 | 8,887 | exs | Elixir | apps/site/test/site_web/controllers/alert_controller_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/site_web/controllers/alert_controller_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/site_web/controllers/alert_controller_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.AlertControllerTest do
use SiteWeb.ConnCase
use Phoenix.Controller
alias Alerts.Alert
alias SiteWeb.PartialView.SvgIconWithCircle
alias Stops.Repo
import SiteWeb.AlertController, only: [excluding_banner: 2, group_access_alerts: 1]
test "renders commuter rail", %{conn: conn} do
conn... | 30.125424 | 97 | 0.603016 |
3fca6ae6f933c0682e37437995600288aab60c82 | 2,943 | exs | Elixir | lib/elixir/test/elixir/calendar_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule FakeCalendar do
def to_string(_), do: "boom"
end
defmodule DateTest do
use ExUnit.Case, async: true
doctest Date
test "to_string/1" do
assert to_string(~D[2000-01-01]) == "2000-01-01"
date = Map.put(~D[2000-01-01], :calendar, FakeCalendar)
a... | 32.340659 | 98 | 0.626911 |
3fca9c5f039e901ff118b3dea29817ddc0d6cf31 | 2,220 | ex | Elixir | lib/playground/scenario/counters/many/atomics/one.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | 27 | 2019-04-10T15:25:21.000Z | 2021-11-22T14:28:56.000Z | lib/playground/scenario/counters/many/atomics/one.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | null | null | null | lib/playground/scenario/counters/many/atomics/one.ex | evadne/ets-playground | de7f2e4d512be4de6510c8978c1f0b25d7720df2 | [
"MIT"
] | 2 | 2019-05-07T21:45:14.000Z | 2020-07-15T11:55:17.000Z | defmodule Playground.Scenario.Counters.Many.Atomics.One do
use Playground.Scenario
def scenario_type do
{:iterations, Stream.map(10..20, &round(:math.pow(2, &1)))}
end
def scenario_banner do
"""
Scenario: Deeper Comparison of various Atomics access patterns
Tasks:
- Sequentially update a... | 29.210526 | 94 | 0.667568 |
3fcaa913b55e8ee5e48ff0c5d2f153685d6d0378 | 6,633 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/cluster_config.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... | 74.52809 | 610 | 0.74657 |
3fcac6c439b0ffec7398214b9c13903c081ce514 | 592 | ex | Elixir | lib/parser/get_parameter_names_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/parser/get_parameter_names_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/parser/get_parameter_names_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Parser.Messages.GetParameterNamesResponse do
use CWMP.Protocol.ParserHelpers
alias CWMP.Protocol.Messages.GetParameterNamesResponse
def initial_acc do
%GetParameterNamesResponse{}
end
def start_element(state, ['ParameterInfoStruct', 'ParameterList'], _attribs, _uri) do
push_... | 31.157895 | 117 | 0.780405 |
3fcb22de5160e915b3fe835276fb80c32d45176c | 4,278 | exs | Elixir | test/controllers/article_controller_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | test/controllers/article_controller_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | test/controllers/article_controller_test.exs | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | defmodule Ginjyo.ArticleControllerTest do
use Ginjyo.ConnCase
alias Ginjyo.Factory
alias Ginjyo.Article
@valid_attrs %{
body: "some content",
title: "some content",
status: Article.get_status(:public),
thumbnail_path: "/image/logo.png",
tag_ids: [1]
}
@invalid_attrs %{}
setup do
... | 31.455882 | 79 | 0.665498 |
3fcb64be493a6d08dc64489a845f2d11ad433a54 | 495 | exs | Elixir | integration_test/code_generation/app_with_defaults_test.exs | AlexJuca/phoenix | c5fa163e90716c0ee3eeb67778873be67c6f4b8b | [
"MIT"
] | null | null | null | integration_test/code_generation/app_with_defaults_test.exs | AlexJuca/phoenix | c5fa163e90716c0ee3eeb67778873be67c6f4b8b | [
"MIT"
] | null | null | null | integration_test/code_generation/app_with_defaults_test.exs | AlexJuca/phoenix | c5fa163e90716c0ee3eeb67778873be67c6f4b8b | [
"MIT"
] | null | null | null | Code.require_file("../support/code_generator_case.exs", __DIR__)
defmodule Phoenix.Integration.CodeGeneration.AppWithDefaultsTest do
use Phoenix.Integration.CodeGeneratorCase, async: true
test "newly generated app has no warnings or errors" do
with_installer_tmp("new with defaults", fn tmp_dir ->
app_ro... | 33 | 67 | 0.785859 |
3fcbc7ea573e8bafede59e59b8e91a864cd26c3d | 6,576 | ex | Elixir | lib/eex/lib/eex/compiler.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/eex/lib/eex/compiler.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/eex/lib/eex/compiler.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | null | null | null | defmodule EEx.Compiler do
@moduledoc false
# When changing this setting, don't forget to update the docs for EEx
@default_engine EEx.SmartEngine
@doc """
This is the compilation entry point. It glues the tokenizer
and the engine together by handling the tokens and invoking
the engine every time a full e... | 32.716418 | 99 | 0.639903 |
3fcc0762051ebe9008969d7b7c9dcbe936a73300 | 894 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.111111 | 74 | 0.761745 |
3fcc0b898bbbbc17e0d07770502a2369ca7b6ec1 | 868 | ex | Elixir | lib/koans/01_equalities.ex | machad0/elixir-koans | ccf0ae0ab2e7c74f60ab2382970b0d5d22633cd6 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | machad0/elixir-koans | ccf0ae0ab2e7c74f60ab2382970b0d5d22633cd6 | [
"MIT"
] | null | null | null | lib/koans/01_equalities.ex | machad0/elixir-koans | ccf0ae0ab2e7c74f60ab2382970b0d5d22633cd6 | [
"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, v... | 21.7 | 83 | 0.678571 |
3fcc0c653cb97d884bfe1d04db6eb3039bb289b7 | 1,070 | ex | Elixir | apps/omg_db/lib/omg_db/application.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/lib/omg_db/application.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/lib/omg_db/application.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.424242 | 74 | 0.740187 |
3fcc1179aab51d98cf3b7eb7fa5d492477fc8e91 | 987 | exs | Elixir | mix.exs | 7a6163/ex_mitake | 3debb483025bb40db0a495a3f6b548385ef6f3fc | [
"MIT"
] | null | null | null | mix.exs | 7a6163/ex_mitake | 3debb483025bb40db0a495a3f6b548385ef6f3fc | [
"MIT"
] | null | null | null | mix.exs | 7a6163/ex_mitake | 3debb483025bb40db0a495a3f6b548385ef6f3fc | [
"MIT"
] | null | null | null | defmodule ExMitake.MixProject do
use Mix.Project
def project do
[
app: :ex_mitake,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
en... | 20.5625 | 65 | 0.549139 |
3fcc3c09083d7a0176037320c79ae69dba288e04 | 5,487 | ex | Elixir | apps/aecore/lib/aecore/chain/header.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 131 | 2018-03-10T01:35:56.000Z | 2021-12-27T13:44:41.000Z | apps/aecore/lib/aecore/chain/header.ex | aeternity/elixir-node | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 445 | 2018-03-12T09:46:17.000Z | 2018-12-12T09:52:07.000Z | apps/aecore/lib/aecore/chain/header.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 23 | 2018-03-12T12:01:28.000Z | 2022-03-06T09:22:17.000Z | defmodule Aecore.Chain.Header do
@moduledoc """
Module defining the structure of the block header
"""
alias Aecore.Chain.Header
alias Aeutil.{Hash, Bits}
alias Aecore.Keys
alias Aeutil.Bits
@header_version_size 64
@header_height_size 64
@txs_hash_size 32
@header_hash_size 32
@root_hash_size 32... | 25.760563 | 92 | 0.609805 |
3fcc53d3b3eb59cff3626183a8831f6d814c309b | 493 | ex | Elixir | lib/receptar_web/views/error_view.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | lib/receptar_web/views/error_view.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | lib/receptar_web/views/error_view.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | defmodule ReceptarWeb.ErrorView do
use ReceptarWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template na... | 29 | 61 | 0.736308 |
3fcc99c64c68e6c70f08af7f6a9d4bf74962f866 | 2,550 | ex | Elixir | test/support/contact_schema.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | test/support/contact_schema.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | test/support/contact_schema.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule ContactSchema do
use Absinthe.Schema
@bruce %{name: "Bruce", age: 35}
@others [
%{name: "Joe", age: 21},
%{name: "Jill", age: 43}
]
@business %{name: "Someplace", employee_count: 11}
query do
field :person,
type: :person,
resolve: fn
_, _ ->
{:ok, @bruc... | 19.921875 | 88 | 0.548235 |
3fcc9c4817fccaa513c9dc08abda85d957132a25 | 668 | exs | Elixir | priv/repo/migrations/20201108220839_create_authors.exs | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 1 | 2019-04-29T18:07:08.000Z | 2019-04-29T18:07:08.000Z | priv/repo/migrations/20201108220839_create_authors.exs | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 126 | 2020-12-03T15:39:31.000Z | 2022-03-30T22:02:23.000Z | priv/repo/migrations/20201108220839_create_authors.exs | dolfinus/arkenston-backend | 258880936dce673eb15db0c4b52e68d3d40c58ff | [
"MIT"
] | null | null | null | defmodule Arkenston.Repo.Migrations.CreateAuthors do
use Ecto.Migration
import Arkenston.Repo.Migration
def up do
create_audit_table :authors do
add :name, :string, null: false
add :email, :string, null: true
add :translations, :map
end
create unique_index(:authors_data, ["(lower(n... | 24.740741 | 60 | 0.628743 |
3fcd0e4cb1a8b1004db5afbeb411282194d3a551 | 18,434 | ex | Elixir | lib/mix/lib/mix/dep.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/mix/lib/mix/dep.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Dep do
@moduledoc false
@doc """
The Mix.Dep struct keeps information about your project dependencies.
It contains:
* `scm` - a module representing the source code management tool (SCM)
operations
* `app` - the application name as an atom
* `requirement` - a binary or regula... | 31.086003 | 107 | 0.636921 |
3fcd555d60f6d8749462366a5e67d06a4f07b912 | 2,094 | ex | Elixir | lib/manifold/utils.ex | getong/manifold | 8fbb5275313e6b8255c32be88561ae9880e15fff | [
"MIT"
] | 662 | 2017-09-20T02:48:42.000Z | 2020-03-22T18:34:56.000Z | lib/manifold/utils.ex | getong/manifold | 8fbb5275313e6b8255c32be88561ae9880e15fff | [
"MIT"
] | 5 | 2018-02-04T05:20:19.000Z | 2019-12-10T03:50:57.000Z | lib/manifold/utils.ex | getong/manifold | 8fbb5275313e6b8255c32be88561ae9880e15fff | [
"MIT"
] | 30 | 2017-10-08T20:28:06.000Z | 2020-02-11T23:40:04.000Z | defmodule Manifold.Utils do
@type groups :: %{any => [pid]}
@type key_fun :: (any -> any)
@doc """
A faster version of Enum.group_by with less bells and whistles.
"""
@spec group_by([pid], key_fun) :: groups
def group_by(pids, key_fun), do: group_by(pids, key_fun, %{})
@spec group_by([pid], key_fun, g... | 34.9 | 106 | 0.698185 |
3fcdc57d2033904e07edb199558174b1d80ba2d4 | 7,243 | ex | Elixir | apps/astarte_pairing_api/lib/astarte_pairing_api/rpc/pairing.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_pairing_api/lib/astarte_pairing_api/rpc/pairing.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_pairing_api/lib/astarte_pairing_api/rpc/pairing.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2017-2018 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 27.965251 | 100 | 0.693635 |
3fcdef27734da9383f412e094dfd2045490b7de3 | 598 | exs | Elixir | test/web/views/error_view_test.exs | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | test/web/views/error_view_test.exs | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | test/web/views/error_view_test.exs | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | defmodule SlackinEx.Web.ErrorViewTest do
use SlackinEx.Web.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(SlackinEx.Web.ErrorView, "404.html", []) ==
"Page not found"
end
test "re... | 27.181818 | 71 | 0.683946 |
3fce0eb05639f9adb251c0d75b88d40809bafad1 | 2,097 | exs | Elixir | mix.exs | membraneframework/webrtc_plugin | 4b582709494ebc5e3f0fa1f0341b57236f5f32f6 | [
"Apache-2.0"
] | 15 | 2021-04-23T00:11:16.000Z | 2022-03-24T00:16:42.000Z | mix.exs | membraneframework/webrtc_plugin | 4b582709494ebc5e3f0fa1f0341b57236f5f32f6 | [
"Apache-2.0"
] | 23 | 2021-02-19T09:42:40.000Z | 2022-01-26T10:10:40.000Z | mix.exs | membraneframework/webrtc_plugin | 4b582709494ebc5e3f0fa1f0341b57236f5f32f6 | [
"Apache-2.0"
] | 1 | 2021-05-21T20:45:36.000Z | 2021-05-21T20:45:36.000Z | defmodule Membrane.WebRTC.Plugin.Mixfile do
use Mix.Project
@version "0.1.0-alpha.3"
@github_url "https://github.com/membraneframework/membrane_webrtc_plugin"
def project do
[
app: :membrane_webrtc_plugin,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()... | 26.2125 | 78 | 0.567954 |
3fce23a0701d87e5d6bb2d5e96e9cbec59c4b9b2 | 519 | ex | Elixir | lib/nebulex/caching/key_generator.ex | rzcastilho/nebulex | 64c3ece2168b65b31012b2ad3abf40af05eb886c | [
"MIT"
] | null | null | null | lib/nebulex/caching/key_generator.ex | rzcastilho/nebulex | 64c3ece2168b65b31012b2ad3abf40af05eb886c | [
"MIT"
] | null | null | null | lib/nebulex/caching/key_generator.ex | rzcastilho/nebulex | 64c3ece2168b65b31012b2ad3abf40af05eb886c | [
"MIT"
] | null | null | null | defmodule Nebulex.Caching.KeyGenerator do
@moduledoc """
Cache key generator. Used for creating a key based on the given module,
function name and its arguments (the module and function name are used
as context).
See the default implementation `Nebulex.Caching.SimpleKeyGenerator`.
"""
@typedoc "KeyGener... | 28.833333 | 75 | 0.710983 |
3fce2b43d46134aeacec0a3350bc1688e77146d1 | 830 | ex | Elixir | lib/scenic/primitive/transform/matrix.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/transform/matrix.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/transform/matrix.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 10/02/17.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Transform.Matrix do
use Scenic.Primitive.Transform
@matrix_byte_size 16 * 4
# ============================================================================
# data verification and... | 28.62069 | 85 | 0.513253 |
3fcea7fe10047ad0d5066170fb98e9b6d155bbb1 | 1,893 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_worker_pools_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_worker_pools_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_worker_pools_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.86 | 215 | 0.744849 |
3fceab7b94331d27babae41799ff0f85fa87018e | 96 | exs | Elixir | config/config.exs | edenlabllc/ecto_trail | 483fa58455c6cf15aa7f9030c622d0d30d32e244 | [
"MIT"
] | 49 | 2017-04-25T23:41:50.000Z | 2021-12-26T22:25:31.000Z | config/config.exs | edenlabllc/ecto_trail | 483fa58455c6cf15aa7f9030c622d0d30d32e244 | [
"MIT"
] | 20 | 2017-04-25T20:32:13.000Z | 2019-03-12T13:37:34.000Z | config/config.exs | Nebo15/change_logger | efe5ec64d76b6290d30d944e2a4cfe65a50cefe3 | [
"MIT"
] | 9 | 2017-11-20T16:48:19.000Z | 2020-07-16T13:54:18.000Z | use Mix.Config
config :ecto_trail,
table_name: "audit_log"
import_config "#{Mix.env()}.exs"
| 13.714286 | 32 | 0.71875 |
3fceb8db43a45987000340e9703cc721b406032e | 337 | ex | Elixir | lib/hl7/2.4/segments/mfe.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/mfe.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/mfe.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.MFE do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
record_level_event_code: nil,
mfn_control_id: nil,
effective_date_time: DataTypes.Ts,
primary_key_value_mfe: nil,
primary_key_value_typ... | 19.823529 | 40 | 0.68546 |
3fcf02b9568b27a3bfd3167d4d644a016590c1cc | 74 | ex | Elixir | backend/voxel_handler/lib/voxel_handler_web/views/session_view.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-06T15:31:54.000Z | 2022-03-27T12:10:13.000Z | backend/voxel_handler/lib/voxel_handler_web/views/session_view.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 9 | 2022-03-01T05:17:43.000Z | 2022-03-11T01:04:24.000Z | backend/voxel_handler/lib/voxel_handler_web/views/session_view.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-04T15:52:44.000Z | 2022-03-27T12:16:27.000Z | defmodule VoxelHandlerWeb.SessionView do
use VoxelHandlerWeb, :view
end
| 18.5 | 40 | 0.837838 |
3fcf22968a924052eb1dadc5483b1b2a13d530c2 | 7,640 | ex | Elixir | lib/cte/adapter/memory.ex | rmayhue/closure_table | adda01e78f0d9344c1bae9ae8f9d05bcdcea6e0d | [
"Apache-2.0"
] | null | null | null | lib/cte/adapter/memory.ex | rmayhue/closure_table | adda01e78f0d9344c1bae9ae8f9d05bcdcea6e0d | [
"Apache-2.0"
] | null | null | null | lib/cte/adapter/memory.ex | rmayhue/closure_table | adda01e78f0d9344c1bae9ae8f9d05bcdcea6e0d | [
"Apache-2.0"
] | null | null | null | defmodule CTE.Adapter.Memory do
@moduledoc """
Basic implementation of the CTE, using the memory for persisting the models. Adapter provided as a convenient way of using CTE in tests or during the development
"""
use CTE.Adapter
@doc false
def descendants(pid, ancestor, opts) do
GenServer.call(pid, {:d... | 27.482014 | 163 | 0.613482 |
3fcf2faef9064bb0587d774a7299e419d9186006 | 8,368 | ex | Elixir | lib/pay_nl/client.ex | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | 3 | 2017-10-03T12:30:57.000Z | 2020-01-06T00:23:59.000Z | lib/pay_nl/client.ex | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | null | null | null | lib/pay_nl/client.ex | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | 1 | 2019-02-11T11:12:17.000Z | 2019-02-11T11:12:17.000Z | defmodule PayNL.Client do
@moduledoc """
This module wraps the json api of Pay.NL
"""
defp json_post(path, options \\ nil, data \\ %{}) do
auth_header =
if options == nil,
do: [],
else: [Authorization: "Basic #{Base.encode64("#{options.token_id}:#{options.api_token}")}"]
HTTPot... | 30.100719 | 120 | 0.582098 |
3fcf777b16a071bea25710d7a876755713c79f01 | 158 | ex | Elixir | lib/mix/tasks/list_transactions.ex | CodeDraken/elixir-bank-formatter | 21666f22df12de270c8190bec9a456668a021313 | [
"MIT"
] | null | null | null | lib/mix/tasks/list_transactions.ex | CodeDraken/elixir-bank-formatter | 21666f22df12de270c8190bec9a456668a021313 | [
"MIT"
] | null | null | null | lib/mix/tasks/list_transactions.ex | CodeDraken/elixir-bank-formatter | 21666f22df12de270c8190bec9a456668a021313 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.ListTransactions do
use Mix.Task
@shortdoc "List transactions from CSV file"
def run(_) do
Budget.list_transactions
end
end
| 17.555556 | 45 | 0.746835 |
3fcfb3732f2a80e50dbe0d5aff0221dbfd070628 | 450 | ex | Elixir | lib/rocketpay_web/views/user_view.ex | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | null | null | null | lib/rocketpay_web/views/user_view.ex | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | 1 | 2021-03-05T12:39:11.000Z | 2021-03-05T12:39:11.000Z | lib/rocketpay_web/views/user_view.ex | Pliavi/NLW-4-Rocketpay | fc146eb534e8dac634d618c7779b928b6172cbb2 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UserView do
alias Rocketpay.{User, Account}
def render("create.json", %{
user: %User{
id: id,
name: name,
username: username,
account: %Account{} = account
}
}) do
%{
message: "User created",
user: %{
id: i... | 18 | 39 | 0.462222 |
3fcfc487b75d5b2b9b4a940ef7abcddf3821abb5 | 1,627 | exs | Elixir | priv/repo/migrations/20180605211006_one_way_exits.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20180605211006_one_way_exits.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20180605211006_one_way_exits.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.OneWayExits do
use Ecto.Migration
def up do
create table(:new_exits) do
add :start_id, references(:rooms), null: false
add :finish_id, references(:rooms), null: false
add :direction, :string, null: false
add :has_door, :boolean, default: false, null: false... | 29.053571 | 95 | 0.612784 |
3fcfd86eadaead3aa648fb84bb56abe8c409d60b | 2,212 | ex | Elixir | lib/text_delta/backwards_compatibility_with_1.0.ex | document-delta/text_delta | a37ccbcabf83c845a1040dd4fb4de9f45382aaf0 | [
"MIT"
] | 48 | 2017-05-29T19:39:42.000Z | 2022-03-28T15:53:29.000Z | lib/text_delta/backwards_compatibility_with_1.0.ex | document-delta/text_delta | a37ccbcabf83c845a1040dd4fb4de9f45382aaf0 | [
"MIT"
] | 1 | 2017-05-26T15:03:30.000Z | 2017-05-26T15:37:16.000Z | lib/text_delta/backwards_compatibility_with_1.0.ex | document-delta/text_delta | a37ccbcabf83c845a1040dd4fb4de9f45382aaf0 | [
"MIT"
] | 6 | 2017-11-30T16:54:27.000Z | 2021-05-19T10:27:12.000Z | # All modules here are only for bacwards compatibility and will be removed in
# next major bump - 2.0. Please upgrade to the new public API ASAP.
defmodule TextDelta.Delta do
# Deprecated and to be removed in 2.0
@moduledoc false
alias TextDelta.Delta.{Transformation, Composition}
@doc false
def new(ops \\... | 19.75 | 77 | 0.651447 |
3fd01a64c37c83e1e1585364217891da31d12dd9 | 2,927 | exs | Elixir | mix.exs | codyduval/remote_retro_crd | b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247 | [
"MIT"
] | null | null | null | mix.exs | codyduval/remote_retro_crd | b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247 | [
"MIT"
] | null | null | null | mix.exs | codyduval/remote_retro_crd | b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247 | [
"MIT"
] | null | null | null | defmodule RemoteRetro.Mixfile do
use Mix.Project
def project do
[
app: :remote_retro,
version: app_version(),
default_task: "defaults",
elixir: "1.6.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env... | 31.473118 | 94 | 0.559959 |
3fd021ce52761660bdd051f383fad1f1fa1b3d91 | 1,194 | ex | Elixir | raspberry_phoenix/web/channels/user_socket.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/web/channels/user_socket.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/web/channels/user_socket.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | defmodule RaspberryPhoenix.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", RaspberryPhoenix.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to... | 31.421053 | 89 | 0.708543 |
3fd0925079fa74cfe61271f4ae4080da38024aa3 | 4,832 | exs | Elixir | test/buy_the_food_web/controllers/user_settings_controller_test.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | test/buy_the_food_web/controllers/user_settings_controller_test.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | test/buy_the_food_web/controllers/user_settings_controller_test.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | defmodule BuyTheFoodWeb.UserSettingsControllerTest do
use BuyTheFoodWeb.ConnCase, async: true
alias BuyTheFood.Accounts
import BuyTheFood.AccountsFixtures
setup :register_and_log_in_user
describe "GET /users/settings" do
test "renders settings page", %{conn: conn} do
conn = get(conn, Routes.user_... | 38.349206 | 96 | 0.659354 |
3fd0aac70cc6d0a10d84285608b70ac1ce681bd3 | 135 | exs | Elixir | test/ex_ibus_test.exs | konstantinzolotarev/ex_ibus | 2ba037772e7f52427f14d3bbea3eab1244fed511 | [
"MIT"
] | 3 | 2019-05-07T05:52:54.000Z | 2020-12-14T03:44:16.000Z | test/ex_ibus_test.exs | konstantinzolotarev/ex_ibus | 2ba037772e7f52427f14d3bbea3eab1244fed511 | [
"MIT"
] | null | null | null | test/ex_ibus_test.exs | konstantinzolotarev/ex_ibus | 2ba037772e7f52427f14d3bbea3eab1244fed511 | [
"MIT"
] | null | null | null | defmodule ExIbusTest do
use ExUnit.Case
doctest ExIbus
test "greets the world" do
assert ExIbus.hello() == :world
end
end
| 15 | 35 | 0.703704 |
3fd0b408d6cac2412b9b4652f6ef481c92b76bfc | 7,425 | ex | Elixir | lib/nebulex/hook.ex | amplifiedai/nebulex | fa788d9ae71ef0e4aba73f98953e98d8a7644a29 | [
"MIT"
] | 1 | 2021-03-01T16:14:07.000Z | 2021-03-01T16:14:07.000Z | lib/nebulex/hook.ex | amplifiedai/nebulex | fa788d9ae71ef0e4aba73f98953e98d8a7644a29 | [
"MIT"
] | null | null | null | lib/nebulex/hook.ex | amplifiedai/nebulex | fa788d9ae71ef0e4aba73f98953e98d8a7644a29 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Decorator.Define) do
defmodule Nebulex.Hook do
@moduledoc ~S"""
Pre/Post Hooks
Since `v2.0.0`, pre/post hooks are not supported and/or handled by `Nebulex`
itself. Hooks feature is not a common use-case and also it is something that
can be be easily implemented on top of th... | 27.913534 | 92 | 0.588822 |
3fd0ba5ae7bc0b4ecf7a1e5a303dfa1e2adced8b | 446 | ex | Elixir | lib/hexpm/web/views/api/owner_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/api/owner_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/api/owner_view.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.OwnerView do
use Hexpm.Web, :view
alias Hexpm.Web.API.{OwnerView, UserView}
def render("index." <> _format, %{owners: owners}) do
render_many(owners, OwnerView, "show")
end
def render("show." <> _format, %{owner: owner}) do
render_one(owner, OwnerView, "show")
end
def re... | 24.777778 | 55 | 0.656951 |
3fd1060668627363aa09bbb7f3214558f1510426 | 334 | ex | Elixir | lib/supabase_surface/components/icons/icon_eye.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_eye.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_eye.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconEye do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.eye(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.266667 | 61 | 0.712575 |
3fd117becc005875f3fd14d1260056395aa54ea3 | 3,134 | ex | Elixir | clients/fonts/lib/google_api/fonts/v1/api/webfonts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/fonts/lib/google_api/fonts/v1/api/webfonts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/fonts/lib/google_api/fonts/v1/api/webfonts.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... | 40.179487 | 187 | 0.659541 |
3fd118e55ef8334974b1248ecbba154b70b2b073 | 1,757 | ex | Elixir | clients/content/lib/google_api/content/v2/model/productstatuses_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/productstatuses_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/productstatuses_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.788462 | 156 | 0.750711 |
3fd11bec5f8fe6ab966564fb684307553203f321 | 899 | ex | Elixir | lib/find_my_personal_web/views/api/teacher_view.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | null | null | null | lib/find_my_personal_web/views/api/teacher_view.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | null | null | null | lib/find_my_personal_web/views/api/teacher_view.ex | romenigld/find_my_personal | d3545d29cdf80c6e2a90b0bb784579bbd488120c | [
"MIT"
] | null | null | null | defmodule FindMyPersonalWeb.Api.TeacherView do
use FindMyPersonalWeb, :view
alias FindMyPersonal.Repo
alias FindMyPersonalWeb.Api.MemberView
def render("index.json", %{teachers: teachers}) do
%{data: render_many(teachers, __MODULE__, "teacher.json")}
end
def render("show.json", %{teacher: teacher}) do... | 29 | 65 | 0.695217 |
3fd12f91277aa0526d3d799461feb82970b8f670 | 712 | ex | Elixir | lib/live_sup_web/gettext.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/gettext.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/gettext.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import LiveSupWeb.Gettext
# Simple translation
gettext("Here is t... | 28.48 | 72 | 0.678371 |
3fd169aac72fd4084fcaf450684a1a7ee92b0b83 | 3,119 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/cm_hybrid_config.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/cm_hybrid_config.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/cm_hybrid_config.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... | 42.726027 | 165 | 0.723629 |
3fd191f937ba94a0eff57c36519ad54371403f16 | 103 | ex | Elixir | lib/utility/package_repo.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | 25 | 2020-09-16T22:01:53.000Z | 2022-03-12T02:01:01.000Z | lib/utility/package_repo.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | 2 | 2021-07-26T20:30:26.000Z | 2022-03-29T19:51:48.000Z | lib/utility/package_repo.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | null | null | null | defmodule Utility.PackageRepo do
use Ecto.Repo,
otp_app: :utility,
adapter: Etso.Adapter
end
| 17.166667 | 32 | 0.728155 |
3fd1a99d1f1f6f96c6435f60f0459b5ca6e340b7 | 2,511 | ex | Elixir | Elixir/tasks/lib/kujua.tasks.addheader.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | Elixir/tasks/lib/kujua.tasks.addheader.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | Elixir/tasks/lib/kujua.tasks.addheader.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defmodule Mix.Tasks.Kujua.AddHeader do
use Mix.Task
@shortdoc "Generates a file header"
@moduledoc """
Generates a file header.
Usage: *mix kujua.add_header path/to/file.ex*
This command will write an empty header to *file.ex*.
If a header exists it will be overwritten.
Only headers generated with... | 26.15625 | 98 | 0.651932 |
3fd1b05f6866487a1b7fc660f2403669bf7492f1 | 1,603 | ex | Elixir | lib/graph_reasoner/model_info/model_info.ex | langens-jonathan/mu-authorization | 3b411460b81b87581af7c7f302b1d3bec4610608 | [
"MIT"
] | 1 | 2019-09-05T23:00:48.000Z | 2019-09-05T23:00:48.000Z | lib/graph_reasoner/model_info/model_info.ex | langens-jonathan/mu-authorization | 3b411460b81b87581af7c7f302b1d3bec4610608 | [
"MIT"
] | 7 | 2020-10-27T20:42:06.000Z | 2021-11-15T07:41:15.000Z | lib/graph_reasoner/model_info/model_info.ex | langens-jonathan/mu-authorization | 3b411460b81b87581af7c7f302b1d3bec4610608 | [
"MIT"
] | 6 | 2016-04-06T09:28:43.000Z | 2021-08-09T12:29:16.000Z | defmodule GraphReasoner.ModelInfo do
alias GraphReasoner.ModelInfo.Config, as: Config
alias GraphReasoner.ModelInfo.Class, as: Class
@moduledoc """
Stores information about the model in the triplestore which the
optimizer can use to better understand queries.
This module uses GraphReasoner.ModelInfo.Confi... | 26.278689 | 70 | 0.660636 |
3fd1bd9f12493c33a46a17d5a389477ed3e9caa8 | 1,425 | ex | Elixir | elixir/Server.ex | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/Server.ex | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/Server.ex | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | defmodule Store do
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, [])
end
# Client
def add(pid, item) do
GenServer.call(pid, {:add, item})
end
def values(pid) do
GenServer.call(pid, :values)
end
# Server
@impl true
def init(_) do
{:ok, []}
end
@impl t... | 16.011236 | 48 | 0.635789 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.