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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1aa0c2d9b448de58bc1087785c929681772a3aa3 | 4,141 | exs | Elixir | test/adaptable_costs_evaluator/users_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | test/adaptable_costs_evaluator/users_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | test/adaptable_costs_evaluator/users_test.exs | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluator.UsersTest do
use AdaptableCostsEvaluator.DataCase
use AdaptableCostsEvaluator.Fixtures.{UserFixture, OrganizationFixture}
alias AdaptableCostsEvaluator.{Repo, Users, Organizations}
describe "users" do
alias AdaptableCostsEvaluator.Users.User
alias AdaptableCostsEvalua... | 36.973214 | 91 | 0.685825 |
1aa0c2ee0e8d4999471c8352a1fbe1917cb63f33 | 451 | ex | Elixir | lib/simple_pool/v1/worker_lookup_behaviour/dynamic.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 12 | 2018-07-03T10:14:54.000Z | 2020-04-07T02:04:39.000Z | lib/simple_pool/v1/worker_lookup_behaviour/dynamic.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 1 | 2018-12-02T06:05:59.000Z | 2018-12-02T06:05:59.000Z | lib/simple_pool/v1/worker_lookup_behaviour/dynamic.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 2 | 2018-03-05T12:01:51.000Z | 2018-07-03T10:15:04.000Z | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.SimplePool.WorkerLookupBehaviour.Dynamic do
use Noizu.Sim... | 34.692308 | 80 | 0.523282 |
1aa0c90a5b844420d096f9ec498a994a6fa1126a | 925 | exs | Elixir | .iex.exs | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | .iex.exs | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | .iex.exs | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | alias Hexpm.Repo
alias Hexpm.{
Accounts.AuditLog,
Accounts.Auth,
Accounts.Email,
Accounts.Key,
Accounts.KeyPermission,
Accounts.Keys,
Accounts.Organization,
Accounts.Organizations,
Accounts.OrganizationUser,
Accounts.PasswordReset,
Accounts.Session,
Accounts.User,
Accounts.UserHandles,
Acco... | 21.511628 | 57 | 0.778378 |
1aa0dfb8ccad27a7b6a497f88b218f431b2b943c | 5,507 | ex | Elixir | lib/diff_web/controllers/page_controller.ex | leandrocp/diff | be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b | [
"Apache-2.0"
] | null | null | null | lib/diff_web/controllers/page_controller.ex | leandrocp/diff | be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b | [
"Apache-2.0"
] | null | null | null | lib/diff_web/controllers/page_controller.ex | leandrocp/diff | be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b | [
"Apache-2.0"
] | null | null | null | defmodule DiffWeb.PageController do
use DiffWeb, :controller
require Logger
@chunk_size 64 * 1024
def diffs(conn, %{"diffs" => diffs}) do
diffs =
diffs
|> Enum.map(&parse_diff/1)
|> Enum.reject(&is_nil/1)
conn
|> assign(:diffs, diffs)
|> render()
end
def diffs(conn, _p... | 25.146119 | 96 | 0.592337 |
1aa10f132dc1abd90bf866e622ca85e978c3020d | 2,838 | ex | Elixir | lib/mcrypt.ex | buzjuka/elixir-mcrypt | fafba76a716c3208126b9fa53b8b4d948c48996d | [
"MIT"
] | 1 | 2019-05-29T10:25:47.000Z | 2019-05-29T10:25:47.000Z | lib/mcrypt.ex | buzjuka/elixir-mcrypt | fafba76a716c3208126b9fa53b8b4d948c48996d | [
"MIT"
] | null | null | null | lib/mcrypt.ex | buzjuka/elixir-mcrypt | fafba76a716c3208126b9fa53b8b4d948c48996d | [
"MIT"
] | null | null | null | defmodule Mcrypt do
@moduledoc """
This is a thin wrapper around [`libmcrypt`](http://linux.die.net/man/3/mcrypt).
Please see the linked man page for details on the available ciphers and modes.
"""
@on_load :init
def init do
path = :filename.join(:code.priv_dir(:mcrypt), 'lib_mcrypt')
:ok = :erl... | 34.609756 | 113 | 0.668781 |
1aa11d2bac5d1e95a7f7da0c5bc74027d68e6a6e | 2,593 | ex | Elixir | lib/fusion/ssh_port_tunnel.ex | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | 2 | 2020-02-02T20:22:28.000Z | 2020-12-10T18:25:03.000Z | lib/fusion/ssh_port_tunnel.ex | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | lib/fusion/ssh_port_tunnel.ex | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | defmodule Fusion.SshPortTunnel do
@moduledoc """
A GenServer for handling of opening ssh ports tunnels and observing their state.
"""
use GenServer
require Logger
alias Fusion.Utilities.Exec
alias Fusion.Utilities.Ssh
alias Fusion.SshPortTunnel
@conn_refused_err_regex ~r/ssh: connect to host.*Connec... | 25.673267 | 84 | 0.668338 |
1aa141108c579a1739062cbb6e546e69dde2d865 | 1,367 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/double_values.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/double_values.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/double_values.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... | 29.085106 | 75 | 0.727871 |
1aa14f05a635db0dd74943ae17079d7dbb50844d | 2,515 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/vulnerability_location.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/vulnerability_location.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/vulnerability_location.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.122807 | 247 | 0.734394 |
1aa15506667753554edfc0c95f85b2fbfdd63c35 | 1,894 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/model/games_player_level_resource.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/model/games_player_level_resource.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/model/games_player_level_resource.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.735849 | 114 | 0.733897 |
1aa17459986970ca3f749a2a7b1ee281655f513c | 5,689 | ex | Elixir | kousa/lib/beef/schemas/user.ex | Bilal-Akkil/dogehouse | 11aebdd1ae7e97732e43e618f0662f2afbee22a6 | [
"MIT"
] | 1 | 2021-08-14T05:45:10.000Z | 2021-08-14T05:45:10.000Z | kousa/lib/beef/schemas/user.ex | Bilal-Akkil/dogehouse | 11aebdd1ae7e97732e43e618f0662f2afbee22a6 | [
"MIT"
] | null | null | null | kousa/lib/beef/schemas/user.ex | Bilal-Akkil/dogehouse | 11aebdd1ae7e97732e43e618f0662f2afbee22a6 | [
"MIT"
] | 1 | 2021-05-05T15:57:23.000Z | 2021-05-05T15:57:23.000Z | defmodule Beef.Schemas.User do
use Ecto.Schema
# the struct defined here can also be pushed to the user
use Broth.Message.Push
import Ecto.Changeset
alias Beef.Schemas.Room
defmodule Preview do
use Ecto.Schema
# TODO: Make this a separate Schema that sees the same table.
@derive {Poison.Enco... | 33.863095 | 264 | 0.642644 |
1aa181e8a2e2567f3b24b017c429d0a7658f754b | 8,792 | ex | Elixir | clients/iam/lib/google_api/iam/v1/api/roles.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/api/roles.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/api/roles.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... | 44.40404 | 255 | 0.66333 |
1aa1ab9f843ffa9875cbfc3bc3ecb925a1ce53fe | 84 | exs | Elixir | db_server/test/db_server_web/views/layout_view_test.exs | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/test/db_server_web/views/layout_view_test.exs | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/test/db_server_web/views/layout_view_test.exs | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | defmodule DbServerWeb.LayoutViewTest do
use DbServerWeb.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
1aa1fd46ffeca01fa89e034a2c77f666a22e3b6c | 17,933 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/drives.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/drives.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/drives.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.720698 | 368 | 0.623041 |
1aa20a4dd73b96c806ecbfb7c483cdef916f51bd | 38,663 | ex | Elixir | lib/phoenix_live_view/channel.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/channel.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/channel.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Channel do
@moduledoc false
use GenServer, restart: :temporary
require Logger
alias Phoenix.LiveView.{Socket, Utils, Diff, Upload, UploadConfig, Route, Session, Lifecycle}
alias Phoenix.Socket.Message
@prefix :phoenix
@not_mounted_at_router :not_mounted_at_router
def start... | 32.272955 | 130 | 0.630784 |
1aa20ca37e2e51903e9863ac090b5ca8dbac1a62 | 5,977 | ex | Elixir | router_light_ui/lib/router_light_ui_web/live/mock_live.ex | itwasscience/router_light | 2c25643e43f8b670fbd1975d2eabddd3d9c3fd79 | [
"MIT"
] | 1 | 2021-04-26T12:35:03.000Z | 2021-04-26T12:35:03.000Z | router_light_ui/lib/router_light_ui_web/live/mock_live.ex | itwasscience/router_light | 2c25643e43f8b670fbd1975d2eabddd3d9c3fd79 | [
"MIT"
] | null | null | null | router_light_ui/lib/router_light_ui_web/live/mock_live.ex | itwasscience/router_light | 2c25643e43f8b670fbd1975d2eabddd3d9c3fd79 | [
"MIT"
] | null | null | null | defmodule RouterLightUiWeb.MockLive do
use RouterLightUiWeb, :live_view
@update_interval 333
@impl true
def mount(_params, _session, socket) do
state = %{
start_time: :os.system_time(:millisecond),
status_color: "BLUE",
last_event: 0,
t1_latency: :rand.uniform(8) + 6,
t1_traf... | 33.768362 | 110 | 0.644805 |
1aa2685eb51727332935dd370d30c5fb03d0e789 | 197 | exs | Elixir | priv/repo/migrations/20190514140026_add_auctions_has_one_highest_bid.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2021-02-01T12:09:07.000Z | 2021-03-14T12:20:43.000Z | priv/repo/migrations/20190514140026_add_auctions_has_one_highest_bid.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 11 | 2019-04-09T18:01:16.000Z | 2019-05-16T15:02:24.000Z | priv/repo/migrations/20190514140026_add_auctions_has_one_highest_bid.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2019-04-30T22:43:18.000Z | 2019-05-15T20:34:49.000Z | defmodule Renaissance.Repo.Migrations.AddAuctionsHasOneHighestBid do
use Ecto.Migration
def change do
alter table(:auctions) do
add :highest_bid, references(:bids)
end
end
end
| 19.7 | 68 | 0.746193 |
1aa2835f8ed5b71b09096c3471e7776496ad9a8f | 2,012 | exs | Elixir | config/prod.exs | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | config/prod.exs | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | config/prod.exs | angelo-moreira/topflow | 00946c317aba3e2247932e83cc4f5ac7fd38e280 | [
"Unlicense"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.928571 | 66 | 0.714712 |
1aa29ca1ded1906914d18a9eaf899e1a6cd6eb22 | 3,152 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.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 ... | 44.394366 | 178 | 0.697018 |
1aa2ba9a10a148489c526b1ec3807e30a4761c3c | 1,058 | ex | Elixir | backend/test/support/conn_case.ex | tommyblue/salvadanaio | 74723f4875b14f6ae93ced1168c090d891399e01 | [
"MIT"
] | 2 | 2018-07-12T05:05:10.000Z | 2019-02-09T21:55:37.000Z | backend/test/support/conn_case.ex | tommyblue/salvadanaio | 74723f4875b14f6ae93ced1168c090d891399e01 | [
"MIT"
] | null | null | null | backend/test/support/conn_case.ex | tommyblue/salvadanaio | 74723f4875b14f6ae93ced1168c090d891399e01 | [
"MIT"
] | null | null | null | defmodule SalvadanaioWeb.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 datastructures and query the data layer.
Finally, if... | 27.128205 | 73 | 0.724953 |
1aa31938c8b8d332603aff7f8393bf0ee8e6ecc3 | 312 | ex | Elixir | lib/offer_hunters/offers/delete.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | 3 | 2021-10-01T21:13:02.000Z | 2021-11-05T22:25:55.000Z | lib/offer_hunters/offers/delete.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | lib/offer_hunters/offers/delete.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | defmodule OfferHunters.Offers.Delete do
@moduledoc """
Module for delete Offer
"""
alias OfferHunters.{Error, Offer, Repo}
def call(id) do
case Repo.get(Offer, id) do
nil -> {:error, Error.build(:not_found, "This offer doesn't exist'")}
offer -> Repo.delete(offer)
end
end
end
| 22.285714 | 75 | 0.647436 |
1aa327b4eba7517748f2d0a35c5ff0b910b2c288 | 930 | ex | Elixir | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/test/support/channel_case.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/test/support/channel_case.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/test/support/channel_case.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule ADemoWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wit... | 24.473684 | 67 | 0.712903 |
1aa335b518ed8642b921e2ba617d61a3746bc4fb | 325 | ex | Elixir | lib/parallel_stream/executor.ex | davemenninger/parallel_stream | 939e4c2e507aaef642079569ea8ab67c2315c138 | [
"MIT"
] | 90 | 2015-10-17T22:24:07.000Z | 2022-02-20T16:29:34.000Z | lib/parallel_stream/executor.ex | davemenninger/parallel_stream | 939e4c2e507aaef642079569ea8ab67c2315c138 | [
"MIT"
] | 17 | 2016-04-14T13:35:27.000Z | 2022-02-25T20:13:18.000Z | lib/parallel_stream/executor.ex | davemenninger/parallel_stream | 939e4c2e507aaef642079569ea8ab67c2315c138 | [
"MIT"
] | 24 | 2016-01-28T12:31:09.000Z | 2021-09-27T16:30:06.000Z | defmodule ParallelStream.Executor do
@moduledoc ~S"""
The executor - executes the function to be iterated on and sends it to the
relay.
"""
def execute(fun) do
receive do
:halt ->
:halt
{index, item, outqueue} ->
outqueue |> send({index, fun.(item)})
:ok
end
end... | 18.055556 | 76 | 0.587692 |
1aa34032e9b6ce5675475d856f515f594f98d86e | 5,829 | ex | Elixir | lib/bolt_sips/internals/pack_stream/message/encoder.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/internals/pack_stream/message/encoder.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/internals/pack_stream/message/encoder.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | defmodule Bolt.Sips.Internals.PackStream.Message.Encoder do
@moduledoc false
_module_doc = """
Manages the message encoding.
A mesage is a tuple formated as:
`{message_type, data}`
with:
- message_type: atom amongst the valid message type (:init, :discard_all, :pull_all,
:ack_failure, :reset, :run)
-... | 32.932203 | 114 | 0.703894 |
1aa34c7b8353a039a18a1e8b8f818e3a915022ca | 605 | exs | Elixir | test/solver/convergence_test.exs | rjo1970/solver | eaea4bb71b89127309685507fb5e05c361fc60f2 | [
"MIT"
] | null | null | null | test/solver/convergence_test.exs | rjo1970/solver | eaea4bb71b89127309685507fb5e05c361fc60f2 | [
"MIT"
] | null | null | null | test/solver/convergence_test.exs | rjo1970/solver | eaea4bb71b89127309685507fb5e05c361fc60f2 | [
"MIT"
] | null | null | null | defmodule Solver.ConvergenceTest do
use ExUnit.Case, async: true
@subject Solver.Convergence
test "finds the first element where subsequent sequence values differ by less than epsilon" do
fx = fn x -> :math.pow(x, 2) end
dx = Solver.derivative(fx, 0.01)
newton_iterator = Solver.find_zero(fx, dx, 1)
... | 28.809524 | 96 | 0.702479 |
1aa36b6695e751b6ef3758729a7f595fa323ca58 | 3,990 | ex | Elixir | apps/neoprice/lib/neoprice/cache.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoprice/lib/neoprice/cache.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoprice/lib/neoprice/cache.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule Neoprice.Cache do
@moduledoc "macro to define a buffer"
use GenServer
alias Neoprice.Cryptocompare
require Logger
@minute 60
@hour 3600
@day 86_400
defmodule Config do
@moduledoc false
defstruct [:cache_name, :definition, :aggregation, :duration]
end
defmacro __using__(opts \\ ... | 24.036145 | 98 | 0.619799 |
1aa373390646fb3993df25a01975a6c6b5126c99 | 1,157 | exs | Elixir | wasmcloud_host/config/config.exs | janitha09/wasmcloud-otp | 858d7cbba00233eabf91d96cbcb0d6db80202444 | [
"Apache-2.0"
] | 84 | 2021-06-09T16:30:27.000Z | 2022-03-27T23:41:25.000Z | wasmcloud_host/config/config.exs | janitha09/wasmcloud-otp | 858d7cbba00233eabf91d96cbcb0d6db80202444 | [
"Apache-2.0"
] | 239 | 2021-06-07T14:00:09.000Z | 2022-03-30T17:06:05.000Z | wasmcloud_host/config/config.exs | janitha09/wasmcloud-otp | 858d7cbba00233eabf91d96cbcb0d6db80202444 | [
"Apache-2.0"
] | 20 | 2021-06-10T01:10:35.000Z | 2022-03-17T15:59:57.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :wasmcloud_host... | 32.138889 | 91 | 0.749352 |
1aa38495254c0b2a81ab2f0ff4de99f1778626da | 2,020 | ex | Elixir | apps/admin_app/lib/admin_app_web/controllers/shipping_policy_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/admin_app/lib/admin_app_web/controllers/shipping_policy_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/admin_app/lib/admin_app_web/controllers/shipping_policy_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule AdminAppWeb.ShippingPolicyController do
use AdminAppWeb, :controller
import Ecto.Query
alias Snitch.Core.Tools.MultiTenancy.Repo
alias Snitch.Data.Schema.ShippingCategory
alias Snitch.Data.Model.ShippingCategory, as: ScModel
def new(conn, _params) do
shipping_category =
ShippingCatego... | 26.578947 | 75 | 0.642079 |
1aa384f3b8faf73e2a1516eabeaedb346738d901 | 377 | ex | Elixir | rna-transcription/lib/rna_transcription.ex | w0rd-driven/exercism-elixir | 77fabf71ef995530704d06f54196a5c48bc1e0f3 | [
"MIT"
] | null | null | null | rna-transcription/lib/rna_transcription.ex | w0rd-driven/exercism-elixir | 77fabf71ef995530704d06f54196a5c48bc1e0f3 | [
"MIT"
] | null | null | null | rna-transcription/lib/rna_transcription.ex | w0rd-driven/exercism-elixir | 77fabf71ef995530704d06f54196a5c48bc1e0f3 | [
"MIT"
] | null | null | null | defmodule RnaTranscription do
@doc """
Transcribes a character list representing DNA nucleotides to RNA
## Examples
iex> RnaTranscription.to_rna('ACTG')
'UGAC'
"""
@spec to_rna([char]) :: [char]
def to_rna(dna) do
Enum.map(dna, fn item ->
case item do
?G -> ?C
?C -> ?G
... | 17.136364 | 66 | 0.543767 |
1aa3a45067b8144670db2596c855b4034ed089bf | 344 | ex | Elixir | lib/discuss_web/controllers/blog_controller.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | lib/discuss_web/controllers/blog_controller.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | lib/discuss_web/controllers/blog_controller.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | defmodule DiscussWeb.BlogController do
use DiscussWeb, :controller
alias Discuss.Blog
def index(conn, _params) do
render(conn, "index.html", posts: Blog.all_posts())
end
def show(conn, %{"id" => id}) do
IO.inspect(id, label: "^^^^ BlogController id")
render(conn, "show.html", post: Blog.get_pos... | 22.933333 | 61 | 0.674419 |
1aa3c402748a135d938abaa414adac725173ee78 | 4,370 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/search_jobs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/jobs/lib/google_api/jobs/v3/model/search_jobs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/jobs/lib/google_api/jobs/v3/model/search_jobs_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... | 61.549296 | 573 | 0.733867 |
1aa3d0bdda0061b7e2007ae43c2483689bbb4e86 | 62 | exs | Elixir | config/test.exs | firstsports/json_logger | 08329128061a614c369b829e49da1c6412716f3c | [
"Apache-2.0"
] | 26 | 2015-05-11T21:01:51.000Z | 2021-07-26T23:19:39.000Z | config/test.exs | brexhq/json_logger | ed6946df8b685e884128ceda624ead6874575d96 | [
"Apache-2.0"
] | 8 | 2015-10-15T12:42:48.000Z | 2017-03-06T22:15:19.000Z | config/test.exs | brexhq/json_logger | ed6946df8b685e884128ceda624ead6874575d96 | [
"Apache-2.0"
] | 15 | 2016-03-31T04:57:10.000Z | 2020-03-03T21:15:54.000Z | use Mix.Config
config :logger, :json_logger,
level: :debug
| 12.4 | 29 | 0.725806 |
1aa3de95cfe87deb8801462f3006ce35fc21b5f3 | 2,923 | exs | Elixir | fogex/config/runtime.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/config/runtime.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/config/runtime.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 35.216867 | 80 | 0.694834 |
1aa3f28473d34804f96c2e12541e2b69ff9d3c10 | 1,069 | exs | Elixir | mix.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | mix.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | mix.exs | fangkunping/micro-server | 3307b605ed33a8c089283274d2713d8ee3798b1a | [
"Apache-2.0"
] | null | null | null | defmodule MicroServer.MixProject do
use Mix.Project
def project do
[
app: :micro_server,
version: "0.1.0",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about ap... | 25.452381 | 88 | 0.542563 |
1aa3f830b4b1beb9ff2b849e3ccae0120205ad27 | 5,507 | exs | Elixir | test/sparql/algebra/solution_modifier_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | test/sparql/algebra/solution_modifier_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | test/sparql/algebra/solution_modifier_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.Algebra.SolutionModifierTest do
use SPARQL.Test.Case
import SPARQL.Language.Decoder, only: [decode: 1]
test "simple projected variables" do
query = """
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?person ?name WHERE { ?person foaf:name ?name }
"""
assert {:ok, %... | 30.765363 | 121 | 0.510804 |
1aa44399c743249c267bb26ce9e8975c0f0054d5 | 379 | exs | Elixir | mix.exs | CaptChrisD/nerves_lib | 149aab038a60d3c5c83873fb46cc36717c53074d | [
"Apache-2.0"
] | null | null | null | mix.exs | CaptChrisD/nerves_lib | 149aab038a60d3c5c83873fb46cc36717c53074d | [
"Apache-2.0"
] | null | null | null | mix.exs | CaptChrisD/nerves_lib | 149aab038a60d3c5c83873fb46cc36717c53074d | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Lib.Mixfile do
@version "0.1.1-dev"
use Mix.Project
def project do
[app: :nerves_lib,
version: @version,
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application, do: [
applications: [],
m... | 14.576923 | 39 | 0.569921 |
1aa44a16c6d5065902ecf6e5ffa620124f289b27 | 1,878 | ex | Elixir | core/version/core.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | core/version/core.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | core/version/core.ex | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Version.Core do
alias Antikythera.{Time, Env, VersionStr, ContextId}
alias AntikytheraCore.{Version, GearManager, GearModule, GearLog}
alias AntikytheraCore.Version.{Artifact, History}
require AntikytheraCore.Lo... | 43.674419 | 117 | 0.721512 |
1aa46ae0fcec34af7538015e49b1b087e2fba024 | 650 | ex | Elixir | lib/drunkard_web/controllers/fallback_controller.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 2 | 2020-07-05T21:27:33.000Z | 2021-12-12T22:56:00.000Z | lib/drunkard_web/controllers/fallback_controller.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2021-05-11T08:14:48.000Z | 2021-05-11T08:14:48.000Z | lib/drunkard_web/controllers/fallback_controller.ex | shaddysignal/drunkard | 8365c75cd98414dfe38481956e90dda26a177bdd | [
"Unlicense"
] | 1 | 2020-07-05T21:27:46.000Z | 2020-07-05T21:27:46.000Z | defmodule DrunkardWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use DrunkardWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_sta... | 26 | 72 | 0.701538 |
1aa47ec3527c4358a9bec82f03f671e710ec54d1 | 1,290 | ex | Elixir | Elixir/src/driver.ex | houtanf/Conways-Game-of-Life | 856c9adc251a135d959c61962965ee8c72eac4e3 | [
"Apache-2.0"
] | null | null | null | Elixir/src/driver.ex | houtanf/Conways-Game-of-Life | 856c9adc251a135d959c61962965ee8c72eac4e3 | [
"Apache-2.0"
] | null | null | null | Elixir/src/driver.ex | houtanf/Conways-Game-of-Life | 856c9adc251a135d959c61962965ee8c72eac4e3 | [
"Apache-2.0"
] | null | null | null | defmodule Driver do
def y_axis(x, y, max_y, live_cells) when y == max_y, do: if {x, y} in
live_cells, do: IO.puts("X"), else: IO.puts(" ")
def y_axis(x, y, max_y, live_cells) do
if {x, y} in live_cells, do: IO.write("X"), else: IO.write(" ")
y_axis(x, y + 1, max_y, live_cells)
end
def x_axis(l... | 23.888889 | 86 | 0.582171 |
1aa4889ce912a740e37fb6f2b69d14abeb2f8764 | 974 | exs | Elixir | mix.exs | sohjiro/ex_ebook | 4d5d72fbb880a7b25b1c5e217d0a9b679d0496ac | [
"MIT"
] | null | null | null | mix.exs | sohjiro/ex_ebook | 4d5d72fbb880a7b25b1c5e217d0a9b679d0496ac | [
"MIT"
] | null | null | null | mix.exs | sohjiro/ex_ebook | 4d5d72fbb880a7b25b1c5e217d0a9b679d0496ac | [
"MIT"
] | null | null | null | defmodule ExEbook.MixProject do
use Mix.Project
@description """
Metadata extracter for digital books (EPUB, MOBI, PDF)
"""
def project do
[
app: :ex_ebook,
version: "0.1.0",
elixir: "~> 1.10",
name: "ExEbook",
description: @description,
package: package(),
de... | 20.723404 | 62 | 0.569815 |
1aa4d22a939e1c424b040bd6f41b7e365aea1383 | 2,123 | ex | Elixir | lib/docusign/model/power_forms.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/power_forms.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/power_forms.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.PowerForms do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:createdBy,
:createdDateTime,
:emailBod... | 27.217949 | 82 | 0.593971 |
1aa4e054238c9d6288674a2ac09addb38f076d03 | 1,524 | ex | Elixir | rocketpay/lib/rocketpay_web/endpoint.ex | heitorfreitasferreira/nlw4 | 04d5d0b6094eb3a91a044d2a3529a3df462e4abc | [
"MIT"
] | null | null | null | rocketpay/lib/rocketpay_web/endpoint.ex | heitorfreitasferreira/nlw4 | 04d5d0b6094eb3a91a044d2a3529a3df462e4abc | [
"MIT"
] | null | null | null | rocketpay/lib/rocketpay_web/endpoint.ex | heitorfreitasferreira/nlw4 | 04d5d0b6094eb3a91a044d2a3529a3df462e4abc | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :rocketpay
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_rocke... | 28.754717 | 97 | 0.717192 |
1aa5218a573d684b3743e12a537e6ce66bdf5692 | 34,066 | ex | Elixir | lib/mix/lib/mix/compilers/elixir.ex | kenspirit/elixir | 06594f526500d88edc566a0ce7935fca3cf17064 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | kenspirit/elixir | 06594f526500d88edc566a0ce7935fca3cf17064 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | kenspirit/elixir | 06594f526500d88edc566a0ce7935fca3cf17064 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Elixir do
@moduledoc false
@manifest_vsn 13
import Record
defrecord :module, [:module, :kind, :sources, :export, :recompile?]
defrecord :source,
source: nil,
size: 0,
digest: nil,
compile_references: [],
export_references: [],
runtime_references: [],
com... | 34.066 | 106 | 0.649504 |
1aa54698479fc30dc8dac4ddcb8daa30439fed2c | 2,682 | exs | Elixir | parkapp_server/config/prod.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | 2 | 2018-11-06T12:21:16.000Z | 2018-11-21T10:20:17.000Z | parkapp_server/config/prod.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | parkapp_server/config/prod.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# ParkappWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Do... | 32.313253 | 68 | 0.704698 |
1aa57d6c268df7ca22f1465424955c687628e989 | 760 | ex | Elixir | lib/survey/calcuators/calculator.ex | mpisanko/survey | e154e6f9845b9b9c44d4ea4f90d4e6b51ccdb423 | [
"Apache-2.0"
] | null | null | null | lib/survey/calcuators/calculator.ex | mpisanko/survey | e154e6f9845b9b9c44d4ea4f90d4e6b51ccdb423 | [
"Apache-2.0"
] | null | null | null | lib/survey/calcuators/calculator.ex | mpisanko/survey | e154e6f9845b9b9c44d4ea4f90d4e6b51ccdb423 | [
"Apache-2.0"
] | null | null | null | defmodule Survey.Calculators.Calculator do
@callback calculate(s :: %Survey{questions: [%{}], responses: [%{}]}) :: %{type: String.t, result: any()}
def submitted(rs) do
rs |> Enum.filter(fn e -> e[:submitted_at] != nil end)
end
def questions_with_responses(rs, qs) do
rs
|> Enum.map(&Map.get(&1, :... | 28.148148 | 107 | 0.609211 |
1aa5808890ea944565a775af350c02a738a1a5d4 | 458 | exs | Elixir | elixir/priv/repo/migrations/20180329032159_create_user_groups.exs | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | 1 | 2019-04-29T17:46:44.000Z | 2019-04-29T17:46:44.000Z | elixir/priv/repo/migrations/20180329032159_create_user_groups.exs | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | elixir/priv/repo/migrations/20180329032159_create_user_groups.exs | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | defmodule Junks.Repo.Migrations.CreateUserGroups do
use Ecto.Migration
def change do
create table(:user_groups) do
add :user_id, references(:users, on_delete: :delete_all)
add :group_id, references(:groups, on_delete: :delete_all)
timestamps()
end
create unique_index(:user_groups, [... | 26.941176 | 79 | 0.70524 |
1aa5939e8799707556b24c6f19b6fd70811f7bbe | 1,672 | exs | Elixir | test/mixup_test.exs | qyl2021/erlang-mix-deps-json | fe581ebaf216766d7357bf5b4dad41209cd10aaa | [
"MIT"
] | null | null | null | test/mixup_test.exs | qyl2021/erlang-mix-deps-json | fe581ebaf216766d7357bf5b4dad41209cd10aaa | [
"MIT"
] | null | null | null | test/mixup_test.exs | qyl2021/erlang-mix-deps-json | fe581ebaf216766d7357bf5b4dad41209cd10aaa | [
"MIT"
] | null | null | null | defmodule MixupTest do
use ExUnit.Case
test "lockfile can parse mix.lock" do
{:ok, lockfile} = File.read("./test/fixtures/lockfile")
result = Lockfile.parse(lockfile)
assert result == [{:hex, :cowboy, "1.0.0"}]
end
test "mixfile can parse mix.exs" do
{:ok, mixfile} = File.read("./test/fixture... | 32.153846 | 283 | 0.596292 |
1aa5e9bdc418fdd51bcdc9e0fb4c8b87e785f999 | 1,747 | ex | Elixir | lib/chat_api_web/controllers/customer_controller.ex | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | 2 | 2020-09-21T07:27:13.000Z | 2021-12-20T13:23:56.000Z | lib/chat_api_web/controllers/customer_controller.ex | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/customer_controller.ex | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | 1 | 2021-08-29T14:10:18.000Z | 2021-08-29T14:10:18.000Z | defmodule ChatApiWeb.CustomerController do
use ChatApiWeb, :controller
alias ChatApi.Customers
alias ChatApi.Customers.Customer
action_fallback ChatApiWeb.FallbackController
def index(conn, _params) do
with %{account_id: account_id} <- conn.assigns.current_user do
customers = Customers.list_custo... | 30.649123 | 99 | 0.672582 |
1aa5eefc25aa4b170e618b337d3bab82376dd9aa | 13,332 | ex | Elixir | lib/cadet_web/controllers/assessments_controller.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/controllers/assessments_controller.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | lib/cadet_web/controllers/assessments_controller.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule CadetWeb.AssessmentsController do
use CadetWeb, :controller
use PhoenixSwagger
alias Cadet.Assessments
import Cadet.Updater.XMLParser, only: [parse_xml: 2]
@create_assessment_roles ~w(staff admin)a
def submit(conn, %{"assessmentid" => assessment_id}) when is_ecto_id(assessment_id) do
case ... | 28.008403 | 143 | 0.570882 |
1aa62ee4beb7d59b44a5eeb2808f6eca5f9ae772 | 499 | ex | Elixir | server/lib/melody_match_web/views/error_view.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | server/lib/melody_match_web/views/error_view.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | 4 | 2021-03-28T03:09:37.000Z | 2021-04-10T17:45:10.000Z | server/lib/melody_match_web/views/error_view.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | defmodule MelodyMatchWeb.ErrorView do
use MelodyMatchWeb, :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 templ... | 29.352941 | 61 | 0.739479 |
1aa6663c138b93da9c31fd4c78fcf807c4bb8195 | 2,326 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/status.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_control/lib/google_api/service_control/v1/model/status.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.886792 | 427 | 0.72313 |
1aa676bd24ecc41264735ee26bd624365ecd6121 | 5,928 | ex | Elixir | lib/logger/lib/logger/formatter.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/logger/lib/logger/formatter.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/formatter.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | import Kernel, except: [inspect: 2]
defmodule Logger.Formatter do
@moduledoc ~S"""
Conveniences for formatting data for logs.
This module allows developers to specify a string that
serves as template for log messages, for example:
$time $metadata[$level] $message\n
Will print error messages as:
... | 32.751381 | 101 | 0.640351 |
1aa67eb6864042f4395d8cf42a1d16d711279b1b | 371 | exs | Elixir | apps/omg_api/config/config.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/config/config.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/config/config.exs | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :omg_eth, child_block_interval: 1000
config :omg_jsonrpc, api_module: OMG.API
config :omg_api,
ethereum_event_block_finality_margin: 10,
ethereum_event_check_height_interval_ms: 1_000,
rootchain_height_sync_interval_ms: 1_000,
child_block_submit_period: 1,
fee_specs_file_path: "./../..... | 26.5 | 49 | 0.795148 |
1aa68666e4426578aadd8da5aba5dfbf6d758c97 | 2,520 | ex | Elixir | lib/oracleex/error.ex | MikeAlbertFleetSolutions/oracleex | 71c096af28531d3e8f52a7ba6eebfa369f0759fa | [
"Apache-2.0"
] | 1 | 2020-02-28T15:13:32.000Z | 2020-02-28T15:13:32.000Z | lib/oracleex/error.ex | MikeAlbertFleetSolutions/oracleex | 71c096af28531d3e8f52a7ba6eebfa369f0759fa | [
"Apache-2.0"
] | null | null | null | lib/oracleex/error.ex | MikeAlbertFleetSolutions/oracleex | 71c096af28531d3e8f52a7ba6eebfa369f0759fa | [
"Apache-2.0"
] | null | null | null | defmodule Oracleex.Error do
@moduledoc """
Defines an error returned from the ODBC adapter.
* `message` is the full message returned by ODBC
* `odbc_code` is an atom representing the returned
[SQLSTATE](https://docs.microsoft.com/en-us/sql/odbc/reference/appendixes/appendix-a-odbc-error-codes)
or the st... | 35 | 155 | 0.673016 |
1aa6b24e2a5301b46d2faefdc57663104d0d98b8 | 1,250 | ex | Elixir | backend/test/support/conn_case.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/test/support/conn_case.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/test/support/conn_case.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule GetawaysWeb.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 t... | 27.777778 | 70 | 0.708 |
1aa6c779ea95b4ecba246d7424a2f4318c1c9e52 | 1,906 | exs | Elixir | clients/digital_asset_links/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/digital_asset_links/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/digital_asset_links/mix.exs | 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... | 28.447761 | 122 | 0.665792 |
1aa6c9ff8040cbb47dcae3d41b65a9cddc879509 | 1,524 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/explain_query_step.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/explain_query_step.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/model/explain_query_step.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... | 30.48 | 98 | 0.717848 |
1aa6e5568106444f56be94ba5fd049729838317a | 724 | ex | Elixir | lib/docusign/model/currency_feature_set_price.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/currency_feature_set_price.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/currency_feature_set_price.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.CurrencyFeatureSetPrice do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:currencyCode,
:currencySymbol... | 21.939394 | 75 | 0.639503 |
1aa71437d587ec6a2c9ea4c747be011893d5cac3 | 2,599 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_intent_info.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_intent_info.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_request_intent_info.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... | 38.220588 | 253 | 0.747595 |
1aa734bb63e2c8a9d412a7e5926e0cf003e3fc74 | 1,601 | exs | Elixir | apps/blog_api_web/mix.exs | yashin5/blog_api | 5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e | [
"MIT"
] | null | null | null | apps/blog_api_web/mix.exs | yashin5/blog_api | 5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e | [
"MIT"
] | null | null | null | apps/blog_api_web/mix.exs | yashin5/blog_api | 5dd6d0c9e43ca9c1dc555afd73713b62b4efa34e | [
"MIT"
] | null | null | null | defmodule BlogApiWeb.MixProject do
use Mix.Project
def project do
[
app: :blog_api_web,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.7",
elixirc_paths: eli... | 25.822581 | 67 | 0.57589 |
1aa74aab67e31521bc9b7b131f6c75a0342050e5 | 2,262 | exs | Elixir | config/prod.exs | janza/artikl | 7790142a93fe79889045340a7a38055348056ea4 | [
"MIT"
] | null | null | null | config/prod.exs | janza/artikl | 7790142a93fe79889045340a7a38055348056ea4 | [
"MIT"
] | null | null | null | config/prod.exs | janza/artikl | 7790142a93fe79889045340a7a38055348056ea4 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.859155 | 85 | 0.71618 |
1aa76f1dc38f57e0d30688a9c38cdd2a30ce0645 | 597 | exs | Elixir | rocketpay/test/rocketpay/numbers_test.exs | W8jonas/estudos | b8f07bfd1890d94ff74c77adba1e033b4f0edd54 | [
"MIT"
] | 11 | 2021-01-26T03:13:16.000Z | 2021-08-14T01:28:07.000Z | rocketpay/test/rocketpay/numbers_test.exs | W8jonas/estudos | b8f07bfd1890d94ff74c77adba1e033b4f0edd54 | [
"MIT"
] | 4 | 2021-01-26T07:27:37.000Z | 2021-01-26T07:31:18.000Z | rocketpay/test/rocketpay/numbers_test.exs | W8jonas/estudos | b8f07bfd1890d94ff74c77adba1e033b4f0edd54 | [
"MIT"
] | null | null | null | defmodule Rocketpay.NumbersTest do
use ExUnit.Case
alias Rocketpay.Numbers
describe "sum_from_file/1" do
test "when there is a file with the given name, return the sum of numbers" do
response = Numbers.sum_from_file("numbers")
expected_response = {:ok, %{result: 37}}
assert response == e... | 23.88 | 81 | 0.688442 |
1aa79849afd38d63ccb9ccfd928d67ca448eca69 | 2,754 | ex | Elixir | lib/credo/check/refactor/map_into.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/map_into.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/map_into.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Check.Refactor.MapInto do
@moduledoc false
@checkdoc """
`Enum.into/3` is more efficient than `Enum.map/2 |> Enum.into/2`.
This should be refactored:
[:apple, :banana, :carrot]
|> Enum.map(&({&1, to_string(&1)}))
|> Enum.into(%{})
to look like this:
Enum.into([:app... | 26.480769 | 99 | 0.529412 |
1aa79be7812fc08115b30c5b90dcf07cacb03be6 | 645 | ex | Elixir | lib/compiler.ex | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | 1 | 2016-08-20T14:41:55.000Z | 2016-08-20T14:41:55.000Z | lib/compiler.ex | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | 26 | 2016-05-29T00:29:33.000Z | 2018-04-12T13:53:50.000Z | lib/compiler.ex | lpil/jot | d4d0b3852db54a7e5c201c8a68ffa7894b2f0d42 | [
"MIT"
] | null | null | null | defmodule Jot.Compiler do
@moduledoc false
alias Jot.HTML
@engine EEx.SmartEngine
@doc """
Convert a Jot binary string template into Elixir AST.
"""
def compile(template, _opts \\ []) do
template
|> Jot.Parser.parse_template!
|> to_ast(@engine)
end
defp to_ast(fragments, engine) do
... | 21.5 | 63 | 0.655814 |
1aa7b9b578caa02b1995f6af1bfa05afd862d2f4 | 1,260 | exs | Elixir | apps/ui/mix.exs | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | apps/ui/mix.exs | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | apps/ui/mix.exs | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | defmodule Ui.Mixfile do
use Mix.Project
def project do
[app: :ui,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers... | 28 | 103 | 0.580159 |
1aa7d9cff81380e6683252ac554a932b7d3c42ff | 289 | ex | Elixir | lib/phone/nanp/ca/ns_and_pe.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ca/ns_and_pe.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ca/ns_and_pe.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.CA.NSAndPE do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(902|782)([2-9].{6})$/
def area_name, do: ["Nova Scotia", "Prince Edward Island"]
def area_type, do: "provinces"
def area_abbreviation, do: ["NS", "PE"]
matcher ["1902", "1782"]
end
| 22.230769 | 60 | 0.643599 |
1aa81f4bda3b56ff833f69221a788d54b232c237 | 1,037 | ex | Elixir | lib/elxpro_blog/application.ex | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | lib/elxpro_blog/application.ex | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | 4 | 2021-08-11T03:19:33.000Z | 2021-09-26T01:29:58.000Z | lib/elxpro_blog/application.ex | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | defmodule ElxproBlog.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
ElxproBlog.Repo,
# Start the Telemetry supervisor
E... | 29.628571 | 68 | 0.70974 |
1aa828a46d772c4c3bf14909594dca1cc2dc11e9 | 2,683 | ex | Elixir | lib/resx/resource/reference/integrity.ex | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | lib/resx/resource/reference/integrity.ex | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | lib/resx/resource/reference/integrity.ex | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | defmodule Resx.Resource.Reference.Integrity do
@moduledoc """
The integrity of a resource.
%Resx.Resource.Reference.Integrity{
checksum: { :crc32, 3829359344 },
timestamp: DateTime.utc_now
}
"""
alias Resx.Resource.Reference.Integrity
@enforce_keys [:time... | 50.622642 | 246 | 0.660827 |
1aa8527847f4351dcb27b6880f48abd69ad67488 | 4,329 | exs | Elixir | test/appsignal/instrumentation/decorator_test.exs | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | test/appsignal/instrumentation/decorator_test.exs | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | test/appsignal/instrumentation/decorator_test.exs | jwarlander/appsignal-elixir | b0a8a366370cf01a407a381a3041d0f6516f476e | [
"MIT"
] | null | null | null | defmodule UsingAppsignalDecorators do
use Appsignal.Instrumentation.Decorators
@decorate transaction()
def transaction do
bar(123)
end
@decorate transaction(:background_job)
def background_transaction do
bar(123)
end
@decorate transaction()
def transaction_with_return_value(x) do
2 * x
... | 32.548872 | 94 | 0.695311 |
1aa870d57ebe640d3a601fd0a95af58d1d39d96a | 8,628 | ex | Elixir | lib/sample.ex | chgeuer/ex_microsoft_azure_management_samples | 87561193fa00f9c25eab2668790bbd79c408e56f | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:17.000Z | 2021-04-01T18:30:41.000Z | lib/sample.ex | chgeuer/ex_microsoft_azure_management_samples | 87561193fa00f9c25eab2668790bbd79c408e56f | [
"Apache-2.0"
] | null | null | null | lib/sample.ex | chgeuer/ex_microsoft_azure_management_samples | 87561193fa00f9c25eab2668790bbd79c408e56f | [
"Apache-2.0"
] | 1 | 2019-06-13T13:41:32.000Z | 2019-06-13T13:41:32.000Z | defmodule Sample do
alias Microsoft.Azure.Management.Resources.Api.ResourceGroups
alias Microsoft.Azure.Management.Compute.Api.VirtualMachineSizes
alias Microsoft.Azure.Management.Compute.Api.Disks
alias Microsoft.Azure.Management.Resources.Api.Deployments
alias Microsoft.Azure.Management.Subscription.Api.Sub... | 25.678571 | 157 | 0.625637 |
1aa877f910df010e5f264d5b9d394d4c33593a7e | 1,656 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api_config_file.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api_config_file.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/api_gateway/lib/google_api/api_gateway/v1beta/model/apigateway_api_config_file.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... | 33.12 | 152 | 0.728865 |
1aa8cf101a09a35f27fba30ae6bc30fe94a3f350 | 1,313 | exs | Elixir | config/config.exs | praekeltfoundation/sse_test_server | 1e30a7719a40b3581e87bca540e3b7f57a4ad352 | [
"MIT"
] | null | null | null | config/config.exs | praekeltfoundation/sse_test_server | 1e30a7719a40b3581e87bca540e3b7f57a4ad352 | [
"MIT"
] | 9 | 2018-01-12T10:47:41.000Z | 2018-07-26T09:54:05.000Z | config/config.exs | praekeltfoundation/sse_test_server | 1e30a7719a40b3581e87bca540e3b7f57a4ad352 | [
"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.486486 | 73 | 0.757807 |
1aa8f2a12adecd62a6d30ab18341b3a62c64edd5 | 1,125 | exs | Elixir | config/config.exs | alisinabh/fusion_dsl | 7a90d6faf184a9cb9252a475e5784e4373d641e1 | [
"MIT"
] | null | null | null | config/config.exs | alisinabh/fusion_dsl | 7a90d6faf184a9cb9252a475e5784e4373d641e1 | [
"MIT"
] | null | null | null | config/config.exs | alisinabh/fusion_dsl | 7a90d6faf184a9cb9252a475e5784e4373d641e1 | [
"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... | 36.290323 | 73 | 0.755556 |
1aa904df85abfb18795fc7c893dadca7dff5acf1 | 265 | ex | Elixir | lib/kantele/character/commands/tell_command.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/kantele/character/commands/tell_command.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/kantele/character/commands/tell_command.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Kantele.Character.TellCommand do
use Kalevala.Character.Command
def run(conn, params) do
params = %{
name: params["name"],
text: params["text"]
}
conn
|> event("tell/send", params)
|> assign(:prompt, false)
end
end
| 17.666667 | 42 | 0.615094 |
1aa9158855d0ea7bb1c9ceb092b6fd0d5b0e996c | 1,992 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/key_to_path.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/key_to_path.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/key_to_path.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.584906 | 315 | 0.707329 |
1aa93366eca75a28874caf6afab677ec6743f8cb | 642 | exs | Elixir | test/ecto/query/builder/distinct_test.exs | liveforeverx/ecto | 42a812b765762f62cc260a994897a95492ffae28 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/distinct_test.exs | liveforeverx/ecto | 42a812b765762f62cc260a994897a95492ffae28 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/distinct_test.exs | liveforeverx/ecto | 42a812b765762f62cc260a994897a95492ffae28 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.DistinctTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.Distinct
doctest Ecto.Query.Builder.Distinct
test "escape" do
assert {Macro.escape(quote do [&0.y] end), %{}} ==
escape(quote do x.y end, [x: 0])
assert {Macro.escape(quote do [&0.x, &1.y] e... | 26.75 | 72 | 0.596573 |
1aa933ea3ed3bc0f796ea33e17e4044536855356 | 564 | exs | Elixir | test/liquex/tag_test.exs | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 19 | 2020-02-29T01:37:11.000Z | 2022-03-15T06:45:20.000Z | test/liquex/tag_test.exs | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 19 | 2020-09-02T19:35:08.000Z | 2022-03-31T21:42:16.000Z | test/liquex/tag_test.exs | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 4 | 2020-10-20T08:22:43.000Z | 2022-01-19T17:21:32.000Z | defmodule Liquex.TagTest do
@moduledoc false
use ExUnit.Case, async: true
describe "raw" do
test "parse raw properly" do
{:ok, template} =
"""
{% raw %}
In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.
{% endraw %}
"""
|> Liqu... | 23.5 | 91 | 0.492908 |
1aa979b23a850d232864a411e04ccae9a4115c47 | 2,072 | exs | Elixir | medium_graphql_api/config/prod.exs | jayshakes/medium_elixir | 32aa079c1e8fc0bbaaa7e3c53800329bd7cb1e10 | [
"Apache-2.0"
] | null | null | null | medium_graphql_api/config/prod.exs | jayshakes/medium_elixir | 32aa079c1e8fc0bbaaa7e3c53800329bd7cb1e10 | [
"Apache-2.0"
] | null | null | null | medium_graphql_api/config/prod.exs | jayshakes/medium_elixir | 32aa079c1e8fc0bbaaa7e3c53800329bd7cb1e10 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 37 | 66 | 0.722973 |
1aa9949fe4ff48fa82b5f7e49c285b24b5b3ca03 | 1,411 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/delete_events_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/delete_events_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/delete_events_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.813953 | 96 | 0.775337 |
1aa99e0c31fe9dc429f1c42cbfaabc30382ab12a | 2,126 | ex | Elixir | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.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... | 41.686275 | 212 | 0.746472 |
1aa9b20211db1571cb8f9da7f91520e474f54c49 | 1,790 | exs | Elixir | test/bson/types_test.exs | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | test/bson/types_test.exs | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | test/bson/types_test.exs | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | defmodule BSON.TypesTest do
use ExUnit.Case, async: true
test "inspect BSON.Binary" do
value = %BSON.Binary{binary: <<1, 2, 3>>}
assert inspect(value) == "#BSON.Binary<010203>"
value = %BSON.Binary{binary: <<1, 2, 3>>, subtype: :uuid}
assert inspect(value) == "#BSON.Binary<010203, uuid>"
end
... | 29.344262 | 90 | 0.639106 |
1aa9b7eaca71d3f723933e3b228ebf3df46b5c4c | 1,555 | ex | Elixir | lib/elixlsx_view/style.ex | Elonsoft/elixlsx_view | 4990389e800b10ecafcb8778b3b3ec1e44fd266a | [
"MIT"
] | 1 | 2021-07-26T08:51:33.000Z | 2021-07-26T08:51:33.000Z | lib/elixlsx_view/style.ex | Elonsoft/elixlsx_view | 4990389e800b10ecafcb8778b3b3ec1e44fd266a | [
"MIT"
] | null | null | null | lib/elixlsx_view/style.ex | Elonsoft/elixlsx_view | 4990389e800b10ecafcb8778b3b3ec1e44fd266a | [
"MIT"
] | null | null | null | defmodule ElixlsxView.Style do
@moduledoc """
Allows to define styles for cell classes so you don't have to repeat
styles when setting every row.
"""
alias Elixlsx.Sheet
@doc """
Apply styles to the sheet
In example below we do not set styles directly when assigning a
value to A1 cell, but just pro... | 23.560606 | 71 | 0.641158 |
1aa9b9f9dee5067f2cc2cd705c01d0121364591f | 26 | ex | Elixir | apps/examples/lib/examples.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/examples/lib/examples.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/examples/lib/examples.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Examples do
end
| 8.666667 | 21 | 0.846154 |
1aa9c8997c55f58b5e8135fddbd17943d90bb3b6 | 89 | exs | Elixir | test/lotus/shared/prefix_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 3 | 2021-09-20T10:34:15.000Z | 2021-09-20T16:23:07.000Z | test/lotus/shared/prefix_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | test/lotus/shared/prefix_test.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | 1 | 2021-11-23T13:10:27.000Z | 2021-11-23T13:10:27.000Z | defmodule Lotus.Shared.PrefixTest do
use ExUnit.Case
doctest Lotus.Shared.Prefix
end
| 17.8 | 36 | 0.808989 |
1aaa2457344b04e6ff705bc81c4960e43b929133 | 1,733 | ex | Elixir | lib/egdal/gdal/data_type.ex | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | lib/egdal/gdal/data_type.ex | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | lib/egdal/gdal/data_type.ex | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | defmodule Egdal.GDAL.DataType do
@on_load :load_nifs
def load_nifs do
:ok = :erlang.load_nif('./egdal_gdal_data_type', 0)
end
@doc """
Gets the DataType using the shortened `name`.
* Parameters
* _name: Atom that represents the type name.
* Returns a tuple
* *Atom* `:ok` or `:error`
* *... | 23.418919 | 73 | 0.626659 |
1aaa311549d483fc0c95c5bd792bd244d0d06d3c | 1,729 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/seller.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/seller.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/seller.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... | 34.58 | 185 | 0.731058 |
1aaa341be1754abef4416134a543ef0cbdd196e1 | 1,582 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/google_audience_targeting_setting.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/google_audience_targeting_setting.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/google_audience_targeting_setting.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.659574 | 167 | 0.757269 |
1aaa4cf867b91b70759f15f3fe80a92ecfa56a2b | 1,306 | exs | Elixir | mix.exs | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 657 | 2015-01-05T21:56:30.000Z | 2022-03-28T12:56:47.000Z | mix.exs | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 214 | 2015-02-15T18:06:20.000Z | 2022-02-21T21:15:53.000Z | mix.exs | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 207 | 2015-02-26T23:24:36.000Z | 2022-02-27T21:53:57.000Z | defmodule Slack.Mixfile do
use Mix.Project
def project do
[
app: :slack,
version: "0.23.6",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
name: "Slack",
deps: deps(),
docs: docs(),
source_url: "https://github.com/BlakeWilliams/Elixir-Slack",
de... | 21.766667 | 66 | 0.530628 |
1aaa69f69564d1be48b86ebd32878edcf48d12c3 | 675 | ex | Elixir | lib/beam/ksp/quote.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/ksp/quote.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/ksp/quote.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | defmodule Quote do
# import Math
# IO.put("Got #{squared(7)}")
defmacro squared(x) do
quote do
unquote(x) * unquote(x)
end
end
defmodule Math do
defmacro squared(x) do
quote do
x = unquote(x)
x * x
end
end
end
@moduledoc """
:bind_quoted can be used i... | 19.285714 | 75 | 0.622222 |
1aaa6fe4d32eb45cfadd0450a60e5eac0347dffc | 67 | ex | Elixir | lib/bs/event.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 3 | 2018-07-14T22:55:23.000Z | 2019-02-25T06:11:55.000Z | lib/bs/event.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 7 | 2020-02-12T03:22:59.000Z | 2022-02-10T20:23:52.000Z | lib/bs/event.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 12 | 2018-03-27T05:27:20.000Z | 2019-04-02T08:19:04.000Z | defmodule Bs.Event do
defstruct [:name, rel: %{}, data: %{}]
end
| 16.75 | 40 | 0.61194 |
1aaa764ad354d4903c05c4b7ebdce7dad1a7065c | 3,195 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/rule.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/game_services/lib/google_api/game_services/v1/model/rule.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/rule.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.153846 | 300 | 0.695149 |
1aaaa117587cd1e02cb25f506a9a86e9d0b4bddd | 1,078 | ex | Elixir | lib/jisho_elixir/version.ex | szTheory/jisho_elixir | 14124626af134aa54a6ad36c074071dab84b625e | [
"MIT"
] | 20 | 2017-08-31T17:18:46.000Z | 2021-07-12T12:58:15.000Z | lib/jisho_elixir/version.ex | szTheory/jisho_elixir | 14124626af134aa54a6ad36c074071dab84b625e | [
"MIT"
] | 1 | 2020-03-08T14:05:35.000Z | 2020-03-08T14:05:35.000Z | lib/jisho_elixir/version.ex | szTheory/jisho_elixir | 14124626af134aa54a6ad36c074071dab84b625e | [
"MIT"
] | 3 | 2018-05-19T15:11:53.000Z | 2020-03-03T14:53:10.000Z | defmodule JishoElixir.Version do
@moduledoc false
# version control for Jisho API
# current version is V1 (Aug 24, 2017)
@current_version 1
@doc """
Return module name for current version of API
## Examples
iex> JishoElixir.Version.current
:"Elixir.JishoElixir.V1"
"""
def current do
modu... | 16.84375 | 47 | 0.671614 |
1aaaeb24503074e93f5ce788cc5e548e4c893f2e | 1,873 | ex | Elixir | lib/doex/io/shell.ex | capbash/dioex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | 5 | 2017-08-06T09:22:35.000Z | 2017-10-22T15:51:45.000Z | lib/doex/io/shell.ex | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | lib/doex/io/shell.ex | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | defmodule Doex.Io.Shell do
def cmd("doex") do
if has_mix?() do
"mix doex"
else
"doex"
end
end
def cmd(raw_cmd) do
if has_mix?() do
String.replace(raw_cmd, "doex ", "mix doex.")
else
raw_cmd
end
end
def info(raw_msg, args \\ %{}) do
case parse(raw_msg, args... | 20.358696 | 84 | 0.539776 |
1aaaedba4b99f7faea82abcfb8789c940c99b0b2 | 272 | ex | Elixir | lib/throttlex_app.ex | 2nd/throttlex | e5d311d00a301a6c87f17986b893dcbde39acf89 | [
"MIT"
] | 4 | 2017-10-09T06:48:39.000Z | 2021-12-01T11:21:33.000Z | lib/throttlex_app.ex | 2nd/throttlex | e5d311d00a301a6c87f17986b893dcbde39acf89 | [
"MIT"
] | 1 | 2019-07-02T16:21:12.000Z | 2019-07-02T16:21:12.000Z | lib/throttlex_app.ex | 2nd/throttlex | e5d311d00a301a6c87f17986b893dcbde39acf89 | [
"MIT"
] | 2 | 2019-01-31T08:37:09.000Z | 2021-12-01T11:23:06.000Z | defmodule Throttlex.App do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [worker(Throttlex, [])]
opts = [strategy: :one_for_one, name: Throttlex.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 20.923077 | 63 | 0.709559 |
1aaafbcf71fddffa4189a8e2d754cbde4a0f23d2 | 4,659 | ex | Elixir | lib/oli/delivery/sections/section.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/delivery/sections/section.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/delivery/sections/section.ex | Simon-Initiative/oli-torus | 7f3eaeaa18ca8837e5afbff3e8899ae13b49de8b | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Delivery.Sections.Section do
use Ecto.Schema
import Ecto.Changeset
import Oli.Utils
alias Oli.Utils.Slug
alias Oli.Authoring.Course.Project
alias Oli.Delivery.Sections.Enrollment
alias Oli.Institutions.Institution
alias Oli.Branding.Brand
alias Oli.Delivery.Sections.SectionResource
al... | 28.937888 | 95 | 0.693282 |
1aab05d4190f0ead0a6cfb02882e0eaf67d5079d | 16,918 | exs | Elixir | test/epicenter/cases/person_test.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/epicenter/cases/person_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/epicenter/cases/person_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Cases.PersonTest do
use Epicenter.DataCase, async: true
import Euclid.Extra.Enum, only: [tids: 1]
alias Epicenter.Accounts
alias Epicenter.Cases
alias Epicenter.Cases.Demographic
alias Epicenter.Cases.Person
alias Epicenter.Cases.Phone
alias Epicenter.ContactInvestigations
alias ... | 44.521053 | 147 | 0.648954 |
1aab17d74f92d9e5bccff8cc5959f5ab5c01a357 | 1,775 | ex | Elixir | apps/password_diceware_api_web/lib/password_diceware_api_web.ex | sfat/phoenix-passphrase-diceware-generator | 6bf723318c474c6ebd5875e0999717c0da294504 | [
"MIT"
] | null | null | null | apps/password_diceware_api_web/lib/password_diceware_api_web.ex | sfat/phoenix-passphrase-diceware-generator | 6bf723318c474c6ebd5875e0999717c0da294504 | [
"MIT"
] | 3 | 2021-03-10T05:05:50.000Z | 2022-02-14T10:05:59.000Z | apps/password_diceware_api_web/lib/password_diceware_api_web.ex | sfat/phoenix-passphrase-diceware-generator | 6bf723318c474c6ebd5875e0999717c0da294504 | [
"MIT"
] | null | null | null | defmodule PasswordDicewareApiWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use PasswordDicewareApiWeb, :controller
use PasswordDicewareApiWeb, :view
The definitions below will be exe... | 25.724638 | 83 | 0.71493 |
1aab232950dc76913405fe7b3130479efbe255f8 | 2,392 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/status.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/status.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... | 38.580645 | 134 | 0.718227 |
1aab2c905e0db8bd27f4e96bccf3317797b5d98b | 2,117 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/preview_game_server_deployment_rollout_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/preview_game_server_deployment_rollout_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/preview_game_server_deployment_rollout_response.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... | 35.881356 | 119 | 0.737837 |
1aab3c89cf0106cdff95caec057dc1318dacb600 | 655 | ex | Elixir | lib/plug_jwt_json_api_example/auth.ex | craigp/plug_jwt_jsonapi_example | a731b85ff189dc13f3b99cee05ed184bcfccc9c5 | [
"MIT"
] | 5 | 2016-09-14T12:31:05.000Z | 2018-10-24T12:58:53.000Z | lib/plug_jwt_json_api_example/auth.ex | craigp/plug_jwt_jsonapi_example | a731b85ff189dc13f3b99cee05ed184bcfccc9c5 | [
"MIT"
] | null | null | null | lib/plug_jwt_json_api_example/auth.ex | craigp/plug_jwt_jsonapi_example | a731b85ff189dc13f3b99cee05ed184bcfccc9c5 | [
"MIT"
] | null | null | null | defmodule PlugJwtJsonapiExample.Auth do
alias PlugJwtJsonapiExample.Guardian
use Plug.Builder
plug :validate_token
def validate_token(%Plug.Conn{
request_path: "/login"
} = conn, _opts), do: conn
def validate_token(conn, _opts) do
conn
|> get_req_header("authorization")
|> do_validate_t... | 18.714286 | 57 | 0.636641 |
1aab81a18608b50aef37efe85381ab38f70085cb | 345 | ex | Elixir | gateway/lib/cache/distributed.ex | xonnect/server-ce | 7ec2e689a19098a17dfc5eaf190d56f29fb45263 | [
"BSD-2-Clause"
] | null | null | null | gateway/lib/cache/distributed.ex | xonnect/server-ce | 7ec2e689a19098a17dfc5eaf190d56f29fb45263 | [
"BSD-2-Clause"
] | null | null | null | gateway/lib/cache/distributed.ex | xonnect/server-ce | 7ec2e689a19098a17dfc5eaf190d56f29fb45263 | [
"BSD-2-Clause"
] | null | null | null | defmodule Cache.Distributed do
alias Mnesia.Cache.Map, as: Map
def put(key, value) do
%Map{key: key, value: value} |> Map.write!
end
def remove(key) do
Map.delete! key
end
def get(key, default \\ nil) do
result = Map.read! key
case result do
nil -> default
_otherwise -> result... | 17.25 | 46 | 0.623188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.