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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
031a42ed5eb6a7f09fecee4cec3f56b3006781ee | 75 | ex | Elixir | web/views/layout_view.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | 1 | 2017-09-20T23:46:35.000Z | 2017-09-20T23:46:35.000Z | web/views/layout_view.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | defmodule PastryChefTest.LayoutView do
use PastryChefTest.Web, :view
end
| 18.75 | 38 | 0.826667 |
031a5809549cdde4e691aeb1b223b343a29411c1 | 2,809 | ex | Elixir | year_2019/lib/day_10/asteroids.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/lib/day_10/asteroids.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2019/lib/day_10/asteroids.ex | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day10.Asteroids do
def run(1) do
10
|> InputFile.contents_of
|> String.split("\n")
|> Day10.Asteroids.parse
|> Day10.Asteroids.counts
|> Enum.map(fn({loc, set}) -> {MapSet.size(set), loc} end)
|> Enum.max
|> IO.puts
end
def run(2) do
10
|> InputFile.contents_of
... | 31.920455 | 105 | 0.589534 |
031a5d9cd4b495575caf61c4abf14090db1f3ec5 | 467 | exs | Elixir | config/test.exs | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | 2 | 2018-12-19T16:12:41.000Z | 2020-01-20T17:37:15.000Z | config/test.exs | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | config/test.exs | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :spawn_api, SpawnApiWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :spawn_api, Spawn... | 24.578947 | 56 | 0.736617 |
031a62b812d8fdeb9daf26ac45a3653e953d66d8 | 15,801 | exs | Elixir | apps/ewallet_api/test/ewallet_api/v1/controllers/transaction_request_controller_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_api/test/ewallet_api/v1/controllers/transaction_request_controller_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_api/test/ewallet_api/v1/controllers/transaction_request_controller_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.113333 | 100 | 0.540599 |
031a77041e0ce959a4f7fd712105703d4771dfd2 | 401 | ex | Elixir | lib/rocketpay/accounts/deposit.ex | paulop2/Rocketpay-NLW4-Elixir | 815b225494077431753f6fec5f09a70392d6a53b | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/deposit.ex | paulop2/Rocketpay-NLW4-Elixir | 815b225494077431753f6fec5f09a70392d6a53b | [
"MIT"
] | null | null | null | lib/rocketpay/accounts/deposit.ex | paulop2/Rocketpay-NLW4-Elixir | 815b225494077431753f6fec5f09a70392d6a53b | [
"MIT"
] | null | null | null | defmodule Rocketpay.Accounts.Deposit do
alias Rocketpay.Accounts.Operation
alias Rocketpay.Repo
def call(params) do
params
|> Operation.call(:deposit)
|> run_transaction()
end
defp run_transaction(multi) do
case Repo.transaction(multi) do
{:error, _operation, reason, _chances} -> {:err... | 22.277778 | 64 | 0.670823 |
031aab209aa32185f229b9c289d627ab3d67b5b4 | 2,204 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_content_details_region_restriction.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_content_details_region_restriction.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_content_details_region_restriction.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... | 44.08 | 361 | 0.74637 |
031ab377a17165c5af379b5ace31ec1e362bcdc0 | 1,239 | ex | Elixir | lib/consul/watch/handler.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | 3 | 2018-07-11T08:20:22.000Z | 2018-07-21T23:33:44.000Z | lib/consul/watch/handler.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | null | null | null | lib/consul/watch/handler.ex | kiopro/exconsul | a74843ab06e5211380ce1847957b6ed42c1d7941 | [
"MIT"
] | null | null | null | #
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Undead Labs, LLC
#
defmodule Consul.Watch.Handler do
@type on_return :: {:ok, term} | :remove_handler
@doc """
Handle notifications of Consul Events. When the handler is initially added all prior events
will be notified to the handler, subsequent notificat... | 24.78 | 93 | 0.683616 |
031abf7704b20f55043e382963d8b17b0098e2ff | 3,333 | exs | Elixir | test/mix/tasks/ua_inspector/download_test.exs | lessless/ua_inspector | 6c01e12f80c629916de0c53ae5950a89dbd5de17 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/ua_inspector/download_test.exs | lessless/ua_inspector | 6c01e12f80c629916de0c53ae5950a89dbd5de17 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/ua_inspector/download_test.exs | lessless/ua_inspector | 6c01e12f80c629916de0c53ae5950a89dbd5de17 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.UaInspector.DownloadTest do
use ExUnit.Case, async: false
import ExUnit.CaptureIO
alias Mix.Tasks.UaInspector.Download, as: MixTask
setup_all do
# setup internal testing webserver
Application.ensure_all_started(:inets)
fixture_path = Path.expand("../../../fixtures", __DIR__)
... | 25.06015 | 76 | 0.624662 |
031ac4db2f0d9a24b79175835779b018994b4b4e | 6,092 | ex | Elixir | lib/confex/resolver.ex | fossabot/confex | dbb08c3755d2813faffb91dd37141aa5374658ee | [
"MIT"
] | null | null | null | lib/confex/resolver.ex | fossabot/confex | dbb08c3755d2813faffb91dd37141aa5374658ee | [
"MIT"
] | null | null | null | lib/confex/resolver.ex | fossabot/confex | dbb08c3755d2813faffb91dd37141aa5374658ee | [
"MIT"
] | null | null | null | defmodule Confex.Resolver do
@moduledoc """
This module provides API to recursively resolve system tuples in a `Map` or `Keyword` structures.
"""
alias Confex.Adapter
alias Confex.Type
@known_types [:string, :integer, :float, :boolean, :atom, :module, :list]
@known_adapter_aliases [:system, :system_file]... | 30.923858 | 105 | 0.632797 |
031ae4c0d0616edb15b929b769ed0f4d3ef05c83 | 2,644 | ex | Elixir | lib/advent_of_code/day_1_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | 3 | 2017-12-26T20:51:47.000Z | 2019-05-14T04:59:38.000Z | lib/advent_of_code/day_1_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | lib/advent_of_code/day_1_a.ex | rob-brown/AdventOfCode2017 | cb8a56fba4b1999820b3aec4c4f03d7094836484 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day1A do
def sum(input) do
input
|> wrap_first
|> calculate_sum(0)
end
def solve do
sum "9513446799636685297929646689682997114316733445451534532351778534251427172168183621874641711534917291674333857423799375512628489423332297538215855176592633692631974822259161766238385922... | 105.76 | 2,174 | 0.93003 |
031b4da1f210e0b18aad6ae8a9a26f3105e4fbac | 49 | exs | Elixir | test/guachiman_test.exs | gmtprime/guachiman | 32df4cb37617aadf6f98b6b2bbe7ba628b8815cc | [
"MIT"
] | 1 | 2019-01-09T10:04:10.000Z | 2019-01-09T10:04:10.000Z | test/guachiman_test.exs | gmtprime/guachiman | 32df4cb37617aadf6f98b6b2bbe7ba628b8815cc | [
"MIT"
] | null | null | null | test/guachiman_test.exs | gmtprime/guachiman | 32df4cb37617aadf6f98b6b2bbe7ba628b8815cc | [
"MIT"
] | null | null | null | defmodule GuachimanTest do
use ExUnit.Case
end
| 12.25 | 26 | 0.816327 |
031b56efe369e93157c14c348154c3727e6dfed7 | 1,761 | exs | Elixir | clients/apigee/mix.exs | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/apigee/mix.exs | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/apigee/mix.exs | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"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... | 26.283582 | 97 | 0.646224 |
031b5e288af76422c95439055ca03dd686631ac2 | 996 | ex | Elixir | apps/muster_web/lib/muster_web/live/game_monitor.ex | eugenebolshakov/muster | dd5465da2c9c1a64817e271b297de95fa31c07d9 | [
"Unlicense"
] | null | null | null | apps/muster_web/lib/muster_web/live/game_monitor.ex | eugenebolshakov/muster | dd5465da2c9c1a64817e271b297de95fa31c07d9 | [
"Unlicense"
] | null | null | null | apps/muster_web/lib/muster_web/live/game_monitor.ex | eugenebolshakov/muster | dd5465da2c9c1a64817e271b297de95fa31c07d9 | [
"Unlicense"
] | null | null | null | defmodule MusterWeb.GameMonitor do
use GenServer
@impl true
def init(processes) do
{:ok, processes}
end
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, %{}, opts)
end
def monitor(callback) do
GenServer.call(__MODULE__, {:monitor, callback})
end
def demonitor() do
Gen... | 22.133333 | 75 | 0.660643 |
031be2ef83ab7377d17d3d86aec8063f197f8de3 | 721 | ex | Elixir | lib/expug/runtime.ex | rstacruz/expug | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 89 | 2016-06-27T07:06:23.000Z | 2022-03-15T18:21:50.000Z | lib/expug/runtime.ex | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 11 | 2016-07-28T17:12:39.000Z | 2021-01-22T02:54:58.000Z | lib/expug/runtime.ex | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 4 | 2016-07-26T15:50:35.000Z | 2019-09-16T22:49:21.000Z | defmodule Expug.Runtime do
@moduledoc """
Functions used by Expug-compiled templates at runtime.
```eex
<div class=<%= raw(Expug.Runtime.attr_value(str)) %>></div>
```
"""
@doc """
Quotes a given `str` for use as an HTML attribute.
"""
def attr_value(str) do
"\"#{attr_value_escape(str)}\""
e... | 17.585366 | 61 | 0.553398 |
031bf1abe5d9a876408d667ff89c75040cd34dd1 | 648 | exs | Elixir | astreux/mix.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreux/mix.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreux/mix.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | defmodule Astreux.MixProject do
use Mix.Project
def project do
[
app: :astreux,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_ap... | 20.25 | 59 | 0.554012 |
031bf9623202824ae6b6bd954ff1e38ca61cab68 | 1,645 | exs | Elixir | mix.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | mix.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | mix.exs | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.MixProject do
use Mix.Project
def project do
[
app: :edgedb,
version: "0.0.0",
elixir: "~> 1.10",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [
warnings_as_errors: true
],
consolidate_protocols: Mix.env() != :t... | 21.089744 | 65 | 0.507599 |
031c273ed9a3aa8c884e3b7dfc05db9c7edf5723 | 1,015 | ex | Elixir | phoenix_trello/web/views/error_helpers.ex | hectorip/TrelloPhoenix | 343e0730c294d8e590ed04e23c3c5a682ffb7ff9 | [
"MIT"
] | 1 | 2020-07-24T17:13:26.000Z | 2020-07-24T17:13:26.000Z | phoenix_trello/web/views/error_helpers.ex | hectorip/TrelloPhoenix | 343e0730c294d8e590ed04e23c3c5a682ffb7ff9 | [
"MIT"
] | null | null | null | phoenix_trello/web/views/error_helpers.ex | hectorip/TrelloPhoenix | 343e0730c294d8e590ed04e23c3c5a682ffb7ff9 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(er... | 28.194444 | 84 | 0.684729 |
031c289e748f923981f7720cc49e207c8b5b2cbc | 1,166 | ex | Elixir | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1beta/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.333333 | 74 | 0.751286 |
031c30683caa46cde1a9d2be25f2b876f7d24775 | 555 | ex | Elixir | lib/weebo/request.ex | stevenschobert/weebo | 630084458fbd6a1adad0296c4752fdd5f6a00490 | [
"MIT"
] | 6 | 2015-06-08T07:34:57.000Z | 2019-03-30T06:49:02.000Z | lib/weebo/request.ex | stevenschobert/weebo | 630084458fbd6a1adad0296c4752fdd5f6a00490 | [
"MIT"
] | null | null | null | lib/weebo/request.ex | stevenschobert/weebo | 630084458fbd6a1adad0296c4752fdd5f6a00490 | [
"MIT"
] | null | null | null | defmodule Weebo.Request do
@moduledoc "Struct used to represent an XML-RPC request."
defstruct method: nil, params: []
@type t :: %Weebo.Request{method: String.t, params: list}
end
defimpl Weebo.Formattable, for: Weebo.Request do
@spec format(Weebo.Request.t) :: Weebo.xml_tree
def format(%Weebo.Request{meth... | 32.647059 | 71 | 0.691892 |
031c7d9ee4bbe8c7f30438670bb4dabc5952022f | 549 | ex | Elixir | authentication/lib/authentication_web/views/error_view.ex | hbobenicio/phoenix-examples | dd2adc8887a341b50d192bc31c61ee528e896672 | [
"MIT"
] | null | null | null | authentication/lib/authentication_web/views/error_view.ex | hbobenicio/phoenix-examples | dd2adc8887a341b50d192bc31c61ee528e896672 | [
"MIT"
] | null | null | null | authentication/lib/authentication_web/views/error_view.ex | hbobenicio/phoenix-examples | dd2adc8887a341b50d192bc31c61ee528e896672 | [
"MIT"
] | null | null | null | defmodule AuthenticationWeb.ErrorView do
use AuthenticationWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the statu... | 32.294118 | 83 | 0.726776 |
031cb08cb0a5c2a13c0faabfd313e6b6e53ecacc | 1,121 | exs | Elixir | config/config.exs | xronos-i-am/tarantool.ex | 929ee9dd3da1b6dd3e38961870e758fba3e6aa8c | [
"MIT"
] | 27 | 2016-02-11T08:38:46.000Z | 2022-02-23T21:48:13.000Z | config/config.exs | xronos-i-am/tarantool.ex | 929ee9dd3da1b6dd3e38961870e758fba3e6aa8c | [
"MIT"
] | 5 | 2016-06-04T18:32:00.000Z | 2019-04-14T08:14:46.000Z | config/config.exs | xronos-i-am/tarantool.ex | 929ee9dd3da1b6dd3e38961870e758fba3e6aa8c | [
"MIT"
] | 6 | 2016-03-01T08:34:09.000Z | 2019-02-09T17:29:56.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.752007 |
031cda1e8ed2563549a0276b958cd666b178fa02 | 329 | exs | Elixir | config/config.exs | jgaviria/symmetric_encryption | f9790a3df02795a50af0975635390e5284e9c5b1 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jgaviria/symmetric_encryption | f9790a3df02795a50af0975635390e5284e9c5b1 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jgaviria/symmetric_encryption | f9790a3df02795a50af0975635390e5284e9c5b1 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Test keys
config :symmetric_encryption,
key: [
key: "ABCDEF1234567890ABCDEF1234567890",
iv: "ABCDEF1234567890",
version: 2
]
config :symmetric_encryption,
old_keys: [
[key: "1234567890ABCDEF1234567890ABCDEF", iv: "1234567890ABCDEF", version: 1]
... | 23.5 | 86 | 0.6231 |
031ce0293001702cca0ba4617e585c1824ff875f | 447 | ex | Elixir | web/controllers/plugs/require_auth.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | web/controllers/plugs/require_auth.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | web/controllers/plugs/require_auth.ex | leomindez/Discuss | f1f720dccb331f4f8606d8403416f91b4d5a287d | [
"MIT"
] | null | null | null | defmodule Discuss.Plugs.RequireAuth do
import Plug.Conn
import Phoenix.Controller
alias Discuss.Router.Helpers
def init(_params) do
end
def call(conn, _params) do
if conn.assigns[:user] do
conn
else
conn
|> put_flash(:error, "You m... | 21.285714 | 61 | 0.550336 |
031ce9cc6327661ae2b613b157fc6d271aeb0511 | 280 | exs | Elixir | test/phoenix_hello_web/views/layout_view_test.exs | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 6 | 2019-06-11T22:16:47.000Z | 2021-05-19T10:32:58.000Z | test/phoenix_hello_web/views/layout_view_test.exs | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 2 | 2021-08-22T19:41:42.000Z | 2021-12-16T15:26:14.000Z | test/phoenix_hello_web/views/layout_view_test.exs | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 16 | 2019-06-12T19:39:41.000Z | 2022-03-26T07:34:44.000Z | defmodule PhoenixHelloWeb.LayoutViewTest do
use PhoenixHelloWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 31.111111 | 65 | 0.775 |
031cf68be36fdaf1ba555b5d2c2f1d4b98430154 | 1,455 | exs | Elixir | test/hexpm_web/controllers/tfa_auth_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | test/hexpm_web/controllers/tfa_auth_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | test/hexpm_web/controllers/tfa_auth_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.TFAAuthControllerTest do
use HexpmWeb.ConnCase, async: true
setup do
%{user: insert(:user_with_tfa)}
end
describe "get /two_factor_auth" do
test "shows auth code form", c do
conn =
build_conn()
|> test_login(c.user)
|> put_session("tfa_user_id", c.user.... | 26.454545 | 83 | 0.582818 |
031cf8199167b64faaabbf39303805c9b175c9c3 | 2,330 | exs | Elixir | config/dev.exs | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 14 | 2018-03-23T04:13:29.000Z | 2021-07-26T06:15:50.000Z | config/dev.exs | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 2 | 2021-03-08T18:20:20.000Z | 2021-05-06T22:47:09.000Z | config/dev.exs | chenxsan/telegram-bot-for-twitter | 892107c7609123028ac2375342cd7b2329931635 | [
"MIT"
] | 3 | 2020-11-04T08:11:47.000Z | 2022-01-13T17:41:42.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :tweet_bot, TweetBotWeb.Endpoint,
http: [port:... | 29.493671 | 170 | 0.709871 |
031d06a469c58c11344c1a483c577e87a4f57370 | 1,164 | ex | Elixir | web/channels/user_socket.ex | dkarter/exblog | 3bc2c52dc6b8263506d5fc5e842436f64414d9c7 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | dkarter/exblog | 3bc2c52dc6b8263506d5fc5e842436f64414d9c7 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | dkarter/exblog | 3bc2c52dc6b8263506d5fc5e842436f64414d9c7 | [
"MIT"
] | null | null | null | defmodule Exblog.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", Exblog.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 |
031d21221bfd20fec609b9bfaea8ac1b206f0185 | 541 | ex | Elixir | lib/guitarbot/user.ex | dariodf/GuitarBotex | a8e4d9244dca7e90fedbb0db9c7376a156d220db | [
"MIT"
] | 1 | 2018-07-26T00:59:45.000Z | 2018-07-26T00:59:45.000Z | lib/guitarbot/user.ex | dariodf/GuitarBotex | a8e4d9244dca7e90fedbb0db9c7376a156d220db | [
"MIT"
] | null | null | null | lib/guitarbot/user.ex | dariodf/GuitarBotex | a8e4d9244dca7e90fedbb0db9c7376a156d220db | [
"MIT"
] | null | null | null | defmodule GuitarBot.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :chat_id, :integer
field :first_name, :string
field :last_name, :string
field :username, :string
field :language_code, :string
field :is_bot, :boolean
timestamps()
end
def changeset(user, p... | 24.590909 | 91 | 0.687616 |
031d331c9aec604f11c9e999d07eb4ec97204ed5 | 2,384 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_rpc_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_rpc_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_rpc_status.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... | 44.981132 | 427 | 0.726091 |
031d5f16493223767afd121d324a802f141fe331 | 2,078 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_provenance_parent.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_provenance_parent.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_provenance_parent.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.827586 | 196 | 0.727141 |
031d7cc51c40b2629c97e9638db70f9af9471601 | 4,824 | ex | Elixir | apps/data/lib/grapevine_data/games/images.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/data/lib/grapevine_data/games/images.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/data/lib/grapevine_data/games/images.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineData.Games.Images do
@moduledoc """
Handle uploading images to remote storage for games
"""
alias GrapevineData.Games.Game
alias GrapevineData.Images
alias GrapevineData.Repo
alias Stein.Storage
@doc """
If present, upload a cover and/or hero image for a game
Only uploads a cov... | 27.409091 | 90 | 0.638474 |
031d8f1569089a44552e79cee410f83649fd15bd | 14,900 | ex | Elixir | lib/aws/generated/dev_ops_guru.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/dev_ops_guru.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/dev_ops_guru.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DevOpsGuru do
@moduledoc """
Amazon DevOps Guru is a fully managed service that helps you identify anomalous
behavior in business critical operational applications.
You specify the AWS re... | 25.297114 | 175 | 0.643624 |
031da3fbdea67060e356da0fd1634a177debd9f0 | 2,074 | ex | Elixir | lib/kafka_ex/utils/murmur.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 536 | 2015-08-10T03:14:39.000Z | 2022-03-24T15:07:33.000Z | lib/kafka_ex/utils/murmur.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 349 | 2015-09-16T21:27:42.000Z | 2022-03-28T08:51:56.000Z | lib/kafka_ex/utils/murmur.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 180 | 2015-09-01T22:58:26.000Z | 2022-03-25T16:47:49.000Z | defmodule KafkaEx.Utils.Murmur do
@moduledoc """
Utility module that provides Murmur hashing algorithm.
"""
use Bitwise
# Arbitrary constant for murmur2 hashing
# https://github.com/aappleby/smhasher/blob/master/src/MurmurHash2.cpp#L39-L43
@m 0x5BD1E995
@r 24
# Default seed to hashing, copied form ... | 25.604938 | 149 | 0.627772 |
031dd7a803c25a9e56dd0b2486a4aeb00f9ff15f | 1,033 | exs | Elixir | mix.exs | eryx67/elixir-keycloak | 8fa4d3bdf0686965b36aed47fa69ba0b6aa99221 | [
"MIT"
] | null | null | null | mix.exs | eryx67/elixir-keycloak | 8fa4d3bdf0686965b36aed47fa69ba0b6aa99221 | [
"MIT"
] | null | null | null | mix.exs | eryx67/elixir-keycloak | 8fa4d3bdf0686965b36aed47fa69ba0b6aa99221 | [
"MIT"
] | 1 | 2021-07-23T14:42:44.000Z | 2021-07-23T14:42:44.000Z | defmodule Keycloak.Mixfile do
use Mix.Project
def project do
[
app: :keycloak,
version: "0.2.2",
elixir: "~> 1.6",
name: "keycloak",
description: "Library for interacting with a Keycloak authorization server",
package: package(),
deps: deps(),
docs: [extras: ["RE... | 24.023256 | 82 | 0.548887 |
031dfc7a69641876c73191c77260e4c7f22de7f1 | 27,058 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/networks.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/api/networks.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/networks.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 ... | 52.336557 | 414 | 0.656848 |
031dfd3aef635d5b2ccf386cc918570e8e6fadd6 | 334 | ex | Elixir | lib/supabase_surface/components/icons/icon_box.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_box.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_box.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.IconBox do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.box(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.266667 | 61 | 0.712575 |
031e003d172b1cb658b9998071cad1bfbe03a5dc | 334 | ex | Elixir | lib/hl7/2.5/segments/qak.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/qak.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/qak.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.QAK do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
query_tag: nil,
query_response_status: nil,
message_query_name: DataTypes.Ce,
hit_count: nil,
this_payload: nil,
hits_remaining: ... | 18.555556 | 39 | 0.652695 |
031e0418825349f9f21372bd69b0a6fa749e1aad | 663 | ex | Elixir | lib/spectre/api.ex | ijzer/spectre | 1f23c60b5e6add3e9dd2aaf54e234efb5438355d | [
"MIT"
] | null | null | null | lib/spectre/api.ex | ijzer/spectre | 1f23c60b5e6add3e9dd2aaf54e234efb5438355d | [
"MIT"
] | 1 | 2017-04-13T18:27:31.000Z | 2017-04-13T18:27:31.000Z | lib/spectre/api.ex | ijzer/spectre | 1f23c60b5e6add3e9dd2aaf54e234efb5438355d | [
"MIT"
] | null | null | null | defmodule Spectre.API do
@moduledoc """
Main entry point into the Spectre API.
Requests to /api/* are for the Spectre API and are forwarded to
Spectre.API.Spectre, requests to /subsonic/rest/* are for the Subsonic
API layer and are forwarded to Spectre.API.Subsonic. The Subsonic API
includes /rest/ because ... | 28.826087 | 73 | 0.730015 |
031e31f833b848018dffabf03d6e34dce8f129be | 3,165 | ex | Elixir | lib/mix/lib/mix/generator.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/generator.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/generator.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Generator do
@moduledoc """
Conveniences for working with paths and generating content.
All of these functions are verbose, in the sense they log
the action to be performed via `Mix.shell/0`.
"""
@doc """
Creates a file with the given contents.
If the file already exists, asks for user c... | 26.822034 | 102 | 0.641706 |
031e97af35eef5081306c909fb9c084620981094 | 917 | ex | Elixir | lib/diff_web/views/render_view.ex | dbernheisel/diff | 18db7395ec0661230e13f40b2bc65e909641dba8 | [
"Apache-2.0"
] | null | null | null | lib/diff_web/views/render_view.ex | dbernheisel/diff | 18db7395ec0661230e13f40b2bc65e909641dba8 | [
"Apache-2.0"
] | null | null | null | lib/diff_web/views/render_view.ex | dbernheisel/diff | 18db7395ec0661230e13f40b2bc65e909641dba8 | [
"Apache-2.0"
] | null | null | null | defmodule DiffWeb.RenderView do
use DiffWeb, :view
def file_header(patch, status) do
from = patch.from
to = patch.to
case status do
"changed" -> from
"renamed" -> "#{from} -> #{to}"
"removed" -> from
"added" -> to
end
end
def patch_status(patch) do
from = patch.fro... | 20.377778 | 59 | 0.570338 |
031e9e7c2f944118af68da0d69a4685c3359e8fd | 248 | ex | Elixir | web/channels/run_channel.ex | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | web/channels/run_channel.ex | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | web/channels/run_channel.ex | austinschwartz/docker_frontend_demo | 5f6d0bb3db91db93d032b59cec95998bbb1935d8 | [
"MIT"
] | null | null | null | defmodule Demo.RunChannel do
use Phoenix.Channel
def join("run", _payload, socket) do
{:ok, socket}
end
def handle_in("run_instance", payload, socket) do
broadcast! socket, "run_instance", payload
{:noreply, socket}
end
end
| 19.076923 | 51 | 0.689516 |
031ea81a20ea0132bb9fed917006d090820aee48 | 1,425 | ex | Elixir | apps/web_server/lib/web_server.ex | wajsel/shout_it_out_loud | f2b8a77a5cd2d158ed9ca65404ee2a18a7ab0cf3 | [
"MIT"
] | null | null | null | apps/web_server/lib/web_server.ex | wajsel/shout_it_out_loud | f2b8a77a5cd2d158ed9ca65404ee2a18a7ab0cf3 | [
"MIT"
] | null | null | null | apps/web_server/lib/web_server.ex | wajsel/shout_it_out_loud | f2b8a77a5cd2d158ed9ca65404ee2a18a7ab0cf3 | [
"MIT"
] | null | null | null | defmodule WebServer do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
#TODO: separate the webserver and the supervisor.
# Put the webserver in a genserver as a WebServer.Worker
# ¿ perhaps the Ic... | 38.513514 | 80 | 0.607018 |
031ee312e2f73f32c8e459936c7f0b5f6c2fd70a | 2,162 | ex | Elixir | lib/codes/codes_g52.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_g52.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_g52.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_G52 do
alias IcdCode.ICDCode
def _G520 do
%ICDCode{full_code: "G520",
category_code: "G52",
short_code: "0",
full_name: "Disorders of olfactory nerve",
short_name: "Disorders of olfactory nerve",
category_name: "Disorders of olfact... | 30.885714 | 70 | 0.609621 |
031ef1e1376a70d02d7b9e9fc55dcefcb9902a20 | 1,039 | ex | Elixir | lib/level_web/controllers/user_controller.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level_web/controllers/user_controller.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level_web/controllers/user_controller.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.UserController do
@moduledoc false
use LevelWeb, :controller
import Level.FeatureFlags
alias Level.Users
alias Level.Users.User
plug :check_feature_flag
def new(conn, _params) do
case conn.assigns[:current_user] do
%User{} ->
conn
|> redirect(to: main_path... | 20.78 | 67 | 0.588065 |
031ef504fa1465be58835f3ccbd7d081550a9dd1 | 3,837 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request_scope.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request_scope.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request_scope.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... | 37.617647 | 144 | 0.699765 |
031f36ae5c697ef3b211da62e169c1b680d241f9 | 1,613 | ex | Elixir | lib/web/controllers/document_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/web/controllers/document_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/web/controllers/document_controller.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule Web.DocumentController do
use Web, :controller
alias ChallengeGov.Challenges
alias ChallengeGov.SupportingDocuments
alias Web.ErrorView
action_fallback(Web.FallbackController)
def create(conn, %{"challenge_id" => challenge_id, "document" => params}) do
with {:ok, challenge} <- Challenges.ge... | 29.87037 | 80 | 0.618103 |
031f3f18feef9c2eccb0ee09ecd73013eee8bc41 | 1,343 | ex | Elixir | lib/session.ex | rob05c/exedra | 550091d95739959f2587f1245c105f2561caf1ab | [
"MIT"
] | 1 | 2020-11-20T01:58:11.000Z | 2020-11-20T01:58:11.000Z | lib/session.ex | rob05c/exedra | 550091d95739959f2587f1245c105f2561caf1ab | [
"MIT"
] | null | null | null | lib/session.ex | rob05c/exedra | 550091d95739959f2587f1245c105f2561caf1ab | [
"MIT"
] | null | null | null | defmodule Exedra.SessionManager do
use GenServer
@spec get(GenServer.server, String.t) :: {:ok, pid} | :error
def get(server, player) do
GenServer.call server, {:get, player}
end
@spec set(GenServer.server, String.t, pid) :: :ok
def set(server, player, pid) do
GenServer.cast server, {:set, player,... | 27.408163 | 101 | 0.610573 |
031f7af9bb96cf9bc70d310c91494bd93611bc55 | 4,327 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/cities.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/cities.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/cities.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... | 45.072917 | 196 | 0.648024 |
031f80fa5a190bd0dde337a66c0fbbc36c7da24b | 1,283 | ex | Elixir | backend/test/support/conn_case.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | backend/test/support/conn_case.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | backend/test/support/conn_case.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | defmodule CPSIM.BackendWeb.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,... | 29.159091 | 75 | 0.727981 |
031fc3fc2d21a3d48b475e38bc3bf336942b7739 | 257 | exs | Elixir | test/wow/jobs/scheduler_test.exs | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | test/wow/jobs/scheduler_test.exs | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | test/wow/jobs/scheduler_test.exs | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | defmodule Wow.Jobs.SchedulerTest do
use ExUnit.Case, async: true
setup do
Mock.Toniq.clear
:ok
end
test "schedule/0 enqueues 2 jobs" do
Wow.Jobs.Scheduler.schedule(Mock.Toniq)
assert Enum.count(Mock.Toniq.enqueued) == 2
end
end
| 17.133333 | 47 | 0.696498 |
031fd280ef56ede194ecdd4dedc1667b6c773125 | 1,293 | ex | Elixir | lib/jaya_currency_converter/exchanges.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter/exchanges.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | lib/jaya_currency_converter/exchanges.ex | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | defmodule JayaCurrencyConverter.Exchanges do
@moduledoc """
The Exchanges context.
"""
import Ecto.Query, warn: false
alias JayaCurrencyConverter.Repo
alias JayaCurrencyConverter.Accounts.User
alias JayaCurrencyConverter.Exchanges.Transaction
@doc """
Returns the list of transactions.
## Example... | 19.892308 | 65 | 0.645012 |
031fd60684f9c75f519eb756444228392a9859a2 | 507 | ex | Elixir | lib/ash/error/invalid/no_such_action.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | 1 | 2021-12-27T09:43:29.000Z | 2021-12-27T09:43:29.000Z | lib/ash/error/invalid/no_such_action.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/error/invalid/no_such_action.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Error.Invalid.NoSuchAction do
@moduledoc "Used when an action name is provided that doesn't exist"
use Ash.Error
def_ash_error([:resource, :action, :type], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ecto.UUID.generate()
def code(_), do: "no_such_action"
def message(%{... | 26.684211 | 81 | 0.670611 |
031fe0b58f5a7d5b85305c86380b169e404c8f0d | 3,248 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/historical_offer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/partners/lib/google_api/partners/v2/model/historical_offer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/partners/lib/google_api/partners/v2/model/historical_offer.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... | 39.13253 | 139 | 0.703202 |
031fe1925e08199256a4abd69859f4055aa0a005 | 16,848 | exs | Elixir | test/oli/institutions_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/institutions_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/institutions_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule Oli.InstitutionsTest do
use Oli.DataCase
import Oli.Factory
alias Oli.Institutions
alias Oli.Institutions.Institution
alias Oli.Institutions.PendingRegistration
alias Oli.Lti_1p3.Tool.Registration
describe "institutions" do
test "get_institution_by!/1 with existing data returns an institu... | 36.626087 | 153 | 0.679487 |
031fe330a03e7ec528245c669012367ed85447bb | 181 | ex | Elixir | apps/local_ledger/lib/local_ledger/errors/invalid_amount_error.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/local_ledger/lib/local_ledger/errors/invalid_amount_error.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/errors/invalid_amount_error.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule LocalLedger.Errors.InvalidAmountError do
defexception message: "Transaction could not be created.
Debit and Credit amounts were different."
end
| 36.2 | 66 | 0.718232 |
031fef341feeea4459bb60171f239605d30a3c95 | 527 | ex | Elixir | traceme/lib/traceme/avatar.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | 9 | 2017-10-29T17:35:14.000Z | 2020-04-19T14:06:50.000Z | traceme/lib/traceme/avatar.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | traceme/lib/traceme/avatar.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | defmodule Traceme.Avatar do
use ExRay, pre: :pre_call, post: :post_call
@trace kind: :function
def get_icon(_req_id, _p_span, castle) do
:timer.sleep(500)
castle.name
av = castle.name
|> String.replace(" ", "")
|> String.downcase
|> Macro.underscore
av <> ".png"
end
defp pre_cal... | 21.08 | 70 | 0.631879 |
031ff09bf95e82122f4cfa5cffc4b184f1926dc3 | 5,089 | ex | Elixir | backend/lib/getaways_web/schema/schema.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/lib/getaways_web/schema/schema.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/lib/getaways_web/schema/schema.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule GetawaysWeb.Schema.Schema do
use Absinthe.Schema
alias Getaways.{Accounts, Vacation}
import_types Absinthe.Type.Custom
import Absinthe.Resolution.Helpers, only: [dataloader: 1, dataloader: 3]
alias GetawaysWeb.Resolvers
alias GetawaysWeb.Schema.Middleware
query do
@desc "Get a place by it... | 26.925926 | 74 | 0.672431 |
031ffcf40f09f0111dfe4e9b6f8cdc4ef4afe526 | 347 | ex | Elixir | lib/supabase_surface/components/icons/icon_chevron_up.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_chevron_up.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_chevron_up.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.IconChevronUp do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.chevron_up(width: icon_size, height: icon_size)}
</IconCo... | 23.133333 | 68 | 0.723343 |
03201346e46234a0630bde968c56f56c5332be3c | 8,776 | ex | Elixir | lib/mix/tasks/phx.gen.html.ex | oskarrough/phoenix | 43c9829511cf2836dda4128b5101005bd2cc0ab9 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.html.ex | oskarrough/phoenix | 43c9829511cf2836dda4128b5101005bd2cc0ab9 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.html.ex | oskarrough/phoenix | 43c9829511cf2836dda4128b5101005bd2cc0ab9 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Html do
@shortdoc "Generates controller, views, and context for an HTML resource"
@moduledoc """
Generates controller, views, and context for an HTML resource.
mix phx.gen.html Accounts User users name:string age:integer
The first argument is the context module followed by t... | 39.531532 | 133 | 0.673883 |
03201f9cdb06f2c30f06607a6958f3772c3b6334 | 947 | exs | Elixir | test/lz_string_test.exs | koudelka/elixir-lz-string | 59130abee4ddd67b634888a069744a517d620c3e | [
"MIT"
] | 13 | 2016-02-10T06:00:47.000Z | 2019-10-23T06:49:41.000Z | test/lz_string_test.exs | koudelka/elixir-lz-string | 59130abee4ddd67b634888a069744a517d620c3e | [
"MIT"
] | null | null | null | test/lz_string_test.exs | koudelka/elixir-lz-string | 59130abee4ddd67b634888a069744a517d620c3e | [
"MIT"
] | 3 | 2017-06-24T02:13:29.000Z | 2019-09-19T19:36:24.000Z | defmodule LzStringTest do
use ExUnit.Case, async: true
import TestHelper
import LZString
doctest LZString
test "roundtrip repeated single-bute strings" do
Enum.each 1..2000, &(assert_roundtrip String.ljust("", &1, ?a))
end
test "roundtrip repeated multi-byte char strings" do
Enum.each 1..2000, &... | 24.921053 | 97 | 0.676874 |
03202fc3a8e538f0d8098bda0a353558a12e1d25 | 1,790 | exs | Elixir | clients/sheets/mix.exs | dsdshcym/elixir-google-api | 2d9eef7207bb422d7ecfc1ec780721c6abd0ac81 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | dsdshcym/elixir-google-api | 2d9eef7207bb422d7ecfc1ec780721c6abd0ac81 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | dsdshcym/elixir-google-api | 2d9eef7207bb422d7ecfc1ec780721c6abd0ac81 | [
"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... | 26.716418 | 97 | 0.649162 |
03207ca849b358f6c4fa9cd43dc7883cf23b61c5 | 3,509 | ex | Elixir | lib/phoenix_component.ex | phaleth/phoenix_live_view | 84108603663f546871dcbb9b32c2dfeb2f6afda5 | [
"MIT"
] | null | null | null | lib/phoenix_component.ex | phaleth/phoenix_live_view | 84108603663f546871dcbb9b32c2dfeb2f6afda5 | [
"MIT"
] | null | null | null | lib/phoenix_component.ex | phaleth/phoenix_live_view | 84108603663f546871dcbb9b32c2dfeb2f6afda5 | [
"MIT"
] | null | null | null | defmodule Phoenix.Component do
@moduledoc """
API for function components.
A function component is any function that receives
an assigns map as argument and returns a rendered
struct built with [the `~H` sigil](`Phoenix.LiveView.Helpers.sigil_H/2`).
Here is an example:
defmodule MyComponent do
... | 26.186567 | 95 | 0.630664 |
03209a82b7a4a886c3c17a012fe905926a61b241 | 1,807 | ex | Elixir | clients/poly/lib/google_api/poly/v1/model/quaternion.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/poly/lib/google_api/poly/v1/model/quaternion.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/poly/lib/google_api/poly/v1/model/quaternion.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... | 32.267857 | 183 | 0.665744 |
0320a29c58e5404be59a8ec28d2cd8750971538a | 9,424 | ex | Elixir | lib/phoenix/live_dashboard/pages/os_mon_page.ex | vegg89/phoenix_live_dashboard | bedfa909fe5ba9f42723a6e29d7f4dcc98c86488 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/os_mon_page.ex | vegg89/phoenix_live_dashboard | bedfa909fe5ba9f42723a6e29d7f4dcc98c86488 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/os_mon_page.ex | vegg89/phoenix_live_dashboard | bedfa909fe5ba9f42723a6e29d7f4dcc98c86488 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.OSMonPage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder
alias Phoenix.LiveDashboard.{
SystemInfo,
ColorBarComponent,
ColorBarLegendComponent,
TitleBarComponent
}
@temporary_assigns [os_mon: nil, memory_usage: nil, cpu_total: nil, cpu_count: 0]
@... | 35.164179 | 181 | 0.528438 |
0320b513f0ad7cb28b50d47284e1e3a23a9d5fc6 | 1,401 | ex | Elixir | lib/bigcommerce/app.ex | mcampa/bigcommerce-elixir-app | f1fe40b2a456b49c09970a5317108316f054d5ec | [
"MIT"
] | 1 | 2017-06-02T07:17:22.000Z | 2017-06-02T07:17:22.000Z | lib/bigcommerce/app.ex | mcampa/bigcommerce-elixir-app | f1fe40b2a456b49c09970a5317108316f054d5ec | [
"MIT"
] | null | null | null | lib/bigcommerce/app.ex | mcampa/bigcommerce-elixir-app | f1fe40b2a456b49c09970a5317108316f054d5ec | [
"MIT"
] | null | null | null | defmodule Bigcommerce.App do
def authorize(code, scope, context) do
config = Application.get_env(:app, :bigcommerce) |> Enum.into(%{})
body = %{
client_id: config.client_id,
client_secret: config.client_secret,
grant_type: "authorization_code",
redirect_uri: config.redirect_uri,
... | 28.591837 | 96 | 0.573162 |
0320d30326325dc23e34cfc31bebfd0e6263c809 | 264 | exs | Elixir | test/dzen_web/views/layout_view_test.exs | d-led/d-zen | 25aec2d78e3053df055c0be9cdfac5673dc94f0f | [
"Unlicense"
] | null | null | null | test/dzen_web/views/layout_view_test.exs | d-led/d-zen | 25aec2d78e3053df055c0be9cdfac5673dc94f0f | [
"Unlicense"
] | null | null | null | test/dzen_web/views/layout_view_test.exs | d-led/d-zen | 25aec2d78e3053df055c0be9cdfac5673dc94f0f | [
"Unlicense"
] | null | null | null | defmodule DzenWeb.LayoutViewTest do
use DzenWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 29.333333 | 65 | 0.761364 |
0320d734cde8beceb325345a76674a7a9b752f6a | 7,172 | ex | Elixir | lib/graphql/resolver.ex | PedrOC20/ash_graphql | e4311f38e542726e7f900282ce1bb28cc4a21b3e | [
"MIT"
] | null | null | null | lib/graphql/resolver.ex | PedrOC20/ash_graphql | e4311f38e542726e7f900282ce1bb28cc4a21b3e | [
"MIT"
] | null | null | null | lib/graphql/resolver.ex | PedrOC20/ash_graphql | e4311f38e542726e7f900282ce1bb28cc4a21b3e | [
"MIT"
] | null | null | null | defmodule AshGraphql.Graphql.Resolver do
@moduledoc false
def resolve(
%{arguments: %{id: id}, context: context} = resolution,
{api, resource, :get, action}
) do
opts = [
actor: Map.get(context, :actor),
authorize?: AshGraphql.Api.authorize?(api),
action: action
]
... | 26.66171 | 98 | 0.586168 |
0320dac3cdc40f792215a3ed4660d9ecf751f0b3 | 396 | ex | Elixir | lib/idefix/refactor/rename_variable.ex | arjan/idefix | d6a2f074ed2b18b77c7058ce82ab73eed62feb26 | [
"MIT"
] | 1 | 2020-03-26T16:46:05.000Z | 2020-03-26T16:46:05.000Z | lib/idefix/refactor/rename_variable.ex | arjan/idefix | d6a2f074ed2b18b77c7058ce82ab73eed62feb26 | [
"MIT"
] | null | null | null | lib/idefix/refactor/rename_variable.ex | arjan/idefix | d6a2f074ed2b18b77c7058ce82ab73eed62feb26 | [
"MIT"
] | null | null | null | defmodule Idefix.Refactor.RenameVariable do
@moduledoc """
Rename a variable at the point
"""
alias Idefix.AST
def rename_variable(input, {line, col}, newname) do
ast = AST.parse(input)
with {var, _meta, nil} <- Idefix.AST.find_node(ast, line, col) do
IO.puts("Rename #{var} to #{newname}")
... | 19.8 | 69 | 0.623737 |
03210e55b498f683bec009b90f8baffd812bec97 | 1,106 | ex | Elixir | apps/omg_watcher_info/lib/omg_watcher_info/db/types/atom_type.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/lib/omg_watcher_info/db/types/atom_type.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/lib/omg_watcher_info/db/types/atom_type.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 32.529412 | 74 | 0.722423 |
032116808f5c6052f4fe9d17bb5c270c920fdd04 | 5,301 | ex | Elixir | lib/apache_passwd_md5.ex | kevinmontuori/Apache.PasswdMD5 | bbb8fd49a28c601308a999f789b302529ffea543 | [
"MIT",
"Unlicense"
] | 3 | 2015-10-02T11:39:17.000Z | 2016-10-10T13:26:54.000Z | lib/apache_passwd_md5.ex | kevinmontuori/Apache.PasswdMD5 | bbb8fd49a28c601308a999f789b302529ffea543 | [
"MIT",
"Unlicense"
] | null | null | null | lib/apache_passwd_md5.ex | kevinmontuori/Apache.PasswdMD5 | bbb8fd49a28c601308a999f789b302529ffea543 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule Apache.PasswdMD5 do
@moduledoc """
Provides a means of generating an Apache style MD5 hash (as used by
htaccess). This code was derived from the Crypt::PasswdMD5 Perl
module which appears to have been based on
http://svn.apache.org/viewvc/apr/apr/trunk/crypto/apr_md5.c?view=co
Corrections... | 31.366864 | 78 | 0.58687 |
03213483d6f2f78f88529b54aaf35281aaf34554 | 10,474 | exs | Elixir | apps/omg/test/omg/state/persistence_test.exs | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg/test/omg/state/persistence_test.exs | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg/test/omg/state/persistence_test.exs | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 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 ... | 32.32716 | 120 | 0.6308 |
0321576ba0856811478d506c573f95b88374aa61 | 2,391 | exs | Elixir | test/controllers/video_controller_test.exs | joeletizia/rumbl | db213d5231927b0cf27d4f59341c370816099a0b | [
"MIT"
] | null | null | null | test/controllers/video_controller_test.exs | joeletizia/rumbl | db213d5231927b0cf27d4f59341c370816099a0b | [
"MIT"
] | null | null | null | test/controllers/video_controller_test.exs | joeletizia/rumbl | db213d5231927b0cf27d4f59341c370816099a0b | [
"MIT"
] | null | null | null | defmodule Rumbl.VideoControllerTest do
use Rumbl.ConnCase
alias Rumbl.Video
@valid_attrs %{description: "some content", title: "some content", url: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, video_path(conn, :index)
assert html_response(co... | 35.686567 | 98 | 0.682141 |
03215989ba85cef1d6444ab0d84f836d13501fe4 | 971 | exs | Elixir | elixir/roman-numerals/roman.exs | bwheel/exercism | 6648252bf61f0782ff0a0469ce0df6bf483b3d4d | [
"MIT"
] | null | null | null | elixir/roman-numerals/roman.exs | bwheel/exercism | 6648252bf61f0782ff0a0469ce0df6bf483b3d4d | [
"MIT"
] | null | null | null | elixir/roman-numerals/roman.exs | bwheel/exercism | 6648252bf61f0782ff0a0469ce0df6bf483b3d4d | [
"MIT"
] | null | null | null | defmodule Roman do
@doc """
Convert the number to a roman number.
"""
@spec numerals(pos_integer) :: String.t()
def numerals(number) do
cond do
number >= 1000 ->
"M" <> numerals(number - 1000)
number >= 900 ->
"CM" <> numerals(number - 900)
number >= 500 ->
"D" <>... | 25.552632 | 43 | 0.465499 |
0321702b08988187ca6104e848e1822d172c8f0c | 379 | ex | Elixir | lib/idvote/models/subscriber.ex | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 2 | 2018-08-15T02:03:36.000Z | 2019-02-06T23:27:56.000Z | lib/idvote/models/subscriber.ex | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 14 | 2018-08-11T19:47:56.000Z | 2018-08-29T22:44:22.000Z | lib/idvote/models/subscriber.ex | boisebrigade/idvote | fb1d3f348db094e0578d6976a0a349971bf7aab7 | [
"ISC"
] | 2 | 2018-08-11T16:44:02.000Z | 2018-08-28T03:45:55.000Z | defmodule Idvote.Subscriber do
alias Idvote.Precinct
use Ecto.Schema
import Ecto.Changeset
schema "subscriber" do
belongs_to(:precinct, Precinct)
field(:email, :string)
field(:phone_number, :string)
timestamps()
end
@doc false
def changeset(precinct, attrs) do
precinct
|> cast(a... | 18.047619 | 35 | 0.6781 |
0321923c5a3c06492d125df35fd698f3d541b117 | 186 | exs | Elixir | priv/repo/migrations/20210415085842_add_meta_to_article_comment.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210415085842_add_meta_to_article_comment.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210415085842_add_meta_to_article_comment.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.AddMetaToArticleComment do
use Ecto.Migration
def change do
alter table(:articles_comments) do
add(:meta, :map)
end
end
end
| 18.6 | 67 | 0.736559 |
0321a4ccbc1e466c8cd149bff4ee969df2343f89 | 1,690 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/delete_order_deals_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/delete_order_deals_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/delete_order_deals_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.8 | 125 | 0.763314 |
0321adc2a2de812d321cb34d46b0b2af0925ff7e | 1,122 | exs | Elixir | mix.exs | pcarvsilva/excaffolder | d3bda1e7a064dc1eb5312ca01728b208684bb503 | [
"MIT"
] | 3 | 2019-11-01T22:20:06.000Z | 2020-02-09T22:53:13.000Z | mix.exs | pcarvsilva/excaffolder | d3bda1e7a064dc1eb5312ca01728b208684bb503 | [
"MIT"
] | null | null | null | mix.exs | pcarvsilva/excaffolder | d3bda1e7a064dc1eb5312ca01728b208684bb503 | [
"MIT"
] | null | null | null | defmodule Excaffolder.MixProject do
use Mix.Project
def project do
[
app: :excaffolder,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description()
]
end
# Run "mix help compile.app" to ... | 22 | 90 | 0.567736 |
0321b771c8b3f8ee21c844be111d2b4fc7286907 | 1,094 | exs | Elixir | mix.exs | martide/airports | d2fcc97bff555c066932ec53467e1435197ab9f3 | [
"MIT"
] | 1 | 2020-01-20T12:51:52.000Z | 2020-01-20T12:51:52.000Z | mix.exs | martide/airports | d2fcc97bff555c066932ec53467e1435197ab9f3 | [
"MIT"
] | 3 | 2022-01-24T12:27:54.000Z | 2022-03-01T09:06:35.000Z | mix.exs | martide/airports | d2fcc97bff555c066932ec53467e1435197ab9f3 | [
"MIT"
] | 2 | 2019-02-11T13:18:04.000Z | 2021-12-21T05:20:29.000Z | defmodule Airports.Mixfile do
use Mix.Project
@project_url "https://github.com/nerds-and-company/airports"
def project do
[
app: :airports,
version: "1.0.0",
elixir: "~> 1.10",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
de... | 23.276596 | 129 | 0.585923 |
0321c32be0cbabec534f178ce02bd6eb21702bd2 | 1,515 | ex | Elixir | lib/vex/validators/absence.ex | jtmoulia/vex | 78161e174777cb2d0d808326afe619fb893da8d1 | [
"MIT"
] | null | null | null | lib/vex/validators/absence.ex | jtmoulia/vex | 78161e174777cb2d0d808326afe619fb893da8d1 | [
"MIT"
] | null | null | null | lib/vex/validators/absence.ex | jtmoulia/vex | 78161e174777cb2d0d808326afe619fb893da8d1 | [
"MIT"
] | null | null | null | defmodule Vex.Validators.Absence do
@moduledoc """
Ensure a value is absent.
Vex uses the `Vex.Blank` protocol to determine "absence."
Notably, empty strings and collections are considered absent.
## Options
* `:message`: Optional. A custom error message. May be in EEx format
and use the fields de... | 27.545455 | 92 | 0.663366 |
0322101e3fb1d34ee85909fa492607f124fc6ebb | 4,190 | exs | Elixir | www/test/import_export_test.exs | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 47 | 2016-07-17T08:49:36.000Z | 2020-11-06T14:12:15.000Z | www/test/import_export_test.exs | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 181 | 2016-07-11T13:20:40.000Z | 2019-10-22T14:43:40.000Z | www/test/import_export_test.exs | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 2 | 2017-02-25T16:19:09.000Z | 2017-12-24T20:22:32.000Z | # Some helper modules
defmodule Person do
defstruct name: nil, age: nil
end
defmodule FakedRepo do
def all(Person) do
[
%Person{name: "moshe", age: 25},
%Person{name: "jacob", age: 35},
%Person{name: "yossi", age: 45},
]
end
end
defmodule Krihelinator.ImportExportTest do
use Krihel... | 28.896552 | 91 | 0.652983 |
03221da7af69bc4a5aed26387a84a1e8cb1192cc | 1,383 | ex | Elixir | test/support/data_case.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | defmodule Origami.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test... | 25.611111 | 77 | 0.679682 |
03221e5c23b64c967420ddfa954e9c3fc4f6d766 | 315 | ex | Elixir | web/controllers/api/current_user_controller.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 342 | 2017-01-10T16:13:45.000Z | 2022-02-26T13:55:38.000Z | web/controllers/api/current_user_controller.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 6 | 2017-01-14T17:59:48.000Z | 2018-03-25T21:35:50.000Z | web/controllers/api/current_user_controller.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 38 | 2017-01-11T00:18:21.000Z | 2021-07-11T11:28:12.000Z | defmodule Microscope.CurrentUserController do
use Microscope.Web, :controller
plug Guardian.Plug.EnsureAuthenticated, handler: Microscope.SessionController
def show(conn, _) do
user = Guardian.Plug.current_resource(conn)
conn
|> put_status(:ok)
|> render("show.json", user: user)
end
end
| 22.5 | 79 | 0.733333 |
03224449ef81bae675f254bf49aabb7f796fc0d7 | 1,073 | exs | Elixir | apps/core/test/unit/medication_request_requests/medication_request_requests_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/test/unit/medication_request_requests/medication_request_requests_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/test/unit/medication_request_requests/medication_request_requests_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.MedicationRequestRequestsTest do
use Core.ConnCase, async: true
alias Core.MedicationRequestRequests, as: API
describe "medication_request_requests" do
setup do
legal_entity = insert(:prm, :legal_entity, id: "7cc91a5d-c02f-41e9-b571-1ea4f2375552")
division =
insert(
... | 24.386364 | 114 | 0.652377 |
03225e116f2b0a1e2f91c8a7ae51247744c0cf70 | 3,085 | ex | Elixir | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/api_gateway/lib/google_api/api_gateway/v1alpha2/model/apigateway_audit_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"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... | 56.090909 | 1,106 | 0.750081 |
032268b0600b95e631b654df2993b9cf930b25a5 | 2,282 | ex | Elixir | lib/atom_tweaks_web/controllers/auth_controller.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | lib/atom_tweaks_web/controllers/auth_controller.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | lib/atom_tweaks_web/controllers/auth_controller.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaksWeb.AuthController do
@moduledoc """
Handles authentication for the application via GitHub OAuth2 user flow.
"""
use AtomTweaksWeb, :controller
alias AtomTweaks.Accounts.User
alias AtomTweaksWeb.GitHub
alias OAuth2.Client, as: OAuthClient
require Logger
@doc """
Signs the user... | 27.166667 | 87 | 0.66915 |
0322699c6041a97798a9aa054d6a1e4a46942534 | 256 | ex | Elixir | lib/bitlog_web/open_api_spex/schema_helpers.ex | Soonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | 2 | 2019-12-03T10:38:38.000Z | 2019-12-04T23:52:11.000Z | lib/bitlog_web/open_api_spex/schema_helpers.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | lib/bitlog_web/open_api_spex/schema_helpers.ex | moonad/Bitlog | 17f41b591169dca7412b9790e8f20abf11b46313 | [
"MIT"
] | null | null | null | defmodule BitlogWeb.OpenApiSpex.SchemaHelpers do
@moduledoc false
alias OpenApiSpex.Schema
def object(properties) do
%Schema{type: :object, properties: properties}
end
def enum(values) do
%Schema{type: :string, enum: values}
end
end
| 18.285714 | 50 | 0.730469 |
03226aebf62b4abc49293d9b7c46650721384081 | 2,545 | ex | Elixir | lib/codes/codes_n82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n82.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_N82 do
alias IcdCode.ICDCode
def _N820 do
%ICDCode{full_code: "N820",
category_code: "N82",
short_code: "0",
full_name: "Vesicovaginal fistula",
short_name: "Vesicovaginal fistula",
category_name: "Vesicovaginal fistula"
... | 32.21519 | 73 | 0.615324 |
0322df8848f6130b804bbc2059e6578489b30768 | 48 | exs | Elixir | test/test_helper.exs | am-kantox/finitomata | 7ebbcfe7ed4774ae4db1fc880045c6081a3c5d42 | [
"MIT"
] | 2 | 2022-03-31T11:57:45.000Z | 2022-03-31T15:02:31.000Z | test/test_helper.exs | am-kantox/finitomata | 7ebbcfe7ed4774ae4db1fc880045c6081a3c5d42 | [
"MIT"
] | null | null | null | test/test_helper.exs | am-kantox/finitomata | 7ebbcfe7ed4774ae4db1fc880045c6081a3c5d42 | [
"MIT"
] | null | null | null | ExUnit.start(exclude: :skip, capture_log: true)
| 24 | 47 | 0.770833 |
0322e12afd7b1ca77039e8456af3353d336df069 | 68 | ex | Elixir | lib/jean_grey/repo.ex | AgtLucas/jean-grey | 2aa3de025de67124c0d2bc6621f7795b547011e5 | [
"MIT"
] | null | null | null | lib/jean_grey/repo.ex | AgtLucas/jean-grey | 2aa3de025de67124c0d2bc6621f7795b547011e5 | [
"MIT"
] | null | null | null | lib/jean_grey/repo.ex | AgtLucas/jean-grey | 2aa3de025de67124c0d2bc6621f7795b547011e5 | [
"MIT"
] | null | null | null | defmodule JeanGrey.Repo do
use Ecto.Repo, otp_app: :jean_grey
end
| 17 | 36 | 0.779412 |
0323006c530ab703644d578f5fae1a45395a57ef | 8,712 | ex | Elixir | clients/partners/lib/google_api/partners/v2/api/offers.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/offers.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/offers.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... | 51.857143 | 305 | 0.700872 |
03231ee73cc186df1d0c04447b16f2e823d442b2 | 426 | ex | Elixir | test/sample_apps/minimal_phoenix/lib/minimal_phoenix_web.ex | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 170 | 2017-08-25T06:40:14.000Z | 2022-01-10T22:18:51.000Z | test/sample_apps/minimal_phoenix/lib/minimal_phoenix_web.ex | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 27 | 2017-09-07T05:57:37.000Z | 2022-03-22T13:40:47.000Z | test/sample_apps/minimal_phoenix/lib/minimal_phoenix_web.ex | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 16 | 2017-11-14T01:45:00.000Z | 2021-10-09T03:26:39.000Z | defmodule MinimalPhoenixWeb do
def controller do
quote do
use Phoenix.Controller, namespace: MinimalPhoenixWeb
import Plug.Conn
import MinimalPhoenixWeb.Router.Helpers
end
end
def router do
quote do
use Phoenix.Router
import Plug.Conn
import Phoenix.Controller
... | 18.521739 | 58 | 0.692488 |
032376e3e2d6d9709cc3e7fc85543c06d2acd31f | 492 | ex | Elixir | lib/abbr/url.ex | elvanja/abbr | b09954df2f68f71c03f308b01927f032bf692ac4 | [
"MIT"
] | 14 | 2020-03-25T22:10:42.000Z | 2021-02-04T01:31:40.000Z | lib/abbr/url.ex | elvanja/abbr | b09954df2f68f71c03f308b01927f032bf692ac4 | [
"MIT"
] | null | null | null | lib/abbr/url.ex | elvanja/abbr | b09954df2f68f71c03f308b01927f032bf692ac4 | [
"MIT"
] | null | null | null | defmodule Abbr.Url do
@moduledoc """
Represents a mapping between original and shortened URL.
Parameters:
- original - contains the full original URL
- short - contains only the hash value of the shortened URL
"""
alias __MODULE__
@enforce_keys [
:short,
:original
]
defstruct [
:shor... | 16.4 | 61 | 0.607724 |
0323a24c3189251d0bda89340fd40c3b14e7c9a2 | 78 | exs | Elixir | apps/mishka_content/test/mishka_content_test.exs | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_content/test/mishka_content_test.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_content/test/mishka_content_test.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaContentTest do
use ExUnit.Case
doctest MishkaContent
end
| 13 | 30 | 0.820513 |
0323aab97c1b02ffd35d87a2fa64d379ccae8c81 | 2,212 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__text_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__text_annotation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__text_annotation.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 ... | 34.030769 | 193 | 0.745027 |
0323ba44c721d13b24eedb2c00ce5b73a59ef511 | 61 | ex | Elixir | lib/hayago_web/views/layout_view.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 60 | 2019-06-14T02:38:33.000Z | 2022-02-27T22:08:36.000Z | lib/hayago_web/views/layout_view.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 2 | 2020-01-05T09:09:58.000Z | 2020-12-31T09:54:13.000Z | lib/hayago_web/views/layout_view.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 15 | 2019-06-14T02:38:39.000Z | 2021-10-30T21:53:08.000Z | defmodule HayagoWeb.LayoutView do
use HayagoWeb, :view
end
| 15.25 | 33 | 0.803279 |
0323c05fcba0be44f789f7287ae1e5bc2b9823dd | 8,135 | ex | Elixir | lib/sanbase/clickhouse/labels.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/clickhouse/labels.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/clickhouse/labels.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Clickhouse.Label do
@moduledoc """
Labeling addresses
"""
@type label :: %{
name: String.t(),
metadata: String.t()
}
def list_all(:all = _blockchain) do
query = """
SELECT DISTINCT(label) FROM blockchain_address_labels
"""
Sanbase.ClickhouseRepo... | 38.372642 | 240 | 0.583036 |
0323f45a8d0161e5494c3edf72b0c5654e4e09b5 | 1,755 | exs | Elixir | test/kvasir/offset_test.exs | IanLuites/kvasir | fb8e577763bff0736c75d5edd227eaff570e64ea | [
"MIT"
] | 12 | 2019-11-28T10:58:51.000Z | 2022-02-08T18:15:12.000Z | test/kvasir/offset_test.exs | IanLuites/kvasir | fb8e577763bff0736c75d5edd227eaff570e64ea | [
"MIT"
] | null | null | null | test/kvasir/offset_test.exs | IanLuites/kvasir | fb8e577763bff0736c75d5edd227eaff570e64ea | [
"MIT"
] | null | null | null | defmodule Kvasir.OffsetTest do
use ExUnit.Case, async: true
alias Kvasir.Offset
describe "compare/2" do
test "eq when exactly the same" do
a = Offset.create(%{1 => 1, 2 => 2})
b = Offset.create(%{1 => 1, 2 => 2})
assert Offset.compare(a, b) == :eq
end
test "eq when exactly the sam... | 22.792208 | 71 | 0.51453 |
03240458eb816ccab7679ff5b12e0e0e19fcad7b | 4,269 | ex | Elixir | lib/remembrance.ex | brayhoward/remembrance | 0b50d8afc9b37b1740beaf2e2ab492e82ed56da1 | [
"Apache-2.0"
] | null | null | null | lib/remembrance.ex | brayhoward/remembrance | 0b50d8afc9b37b1740beaf2e2ab492e82ed56da1 | [
"Apache-2.0"
] | null | null | null | lib/remembrance.ex | brayhoward/remembrance | 0b50d8afc9b37b1740beaf2e2ab492e82ed56da1 | [
"Apache-2.0"
] | null | null | null | defmodule Remembrance do
@moduledoc """
Documentation for Remembrance, a command-line app for setting timers.
"""
@doc """
Hello world.
## Examples
iex> Remembrance.main ["0", "0", "4"]
{:ok, "0 hours 0 minutes 4 seconds"}
iex> Remembrance.main ["-h"]
{:ok, :help_docs}
iex... | 21.560606 | 104 | 0.589365 |
0324108341d00ada48e0d0bcc22329bf1f04308d | 3,662 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/serializers/websocket_response_serializer.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/lib/ewallet/web/v1/serializers/websocket_response_serializer.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/lib/ewallet/web/v1/serializers/websocket_response_serializer.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 24.251656 | 74 | 0.637903 |
032418d7559b53455b12eb8e79372c54aca91bbb | 1,299 | ex | Elixir | web/schema.ex | gimc/joshua | bc77ed12b45f49879222231849e88e96198920d7 | [
"MIT"
] | null | null | null | web/schema.ex | gimc/joshua | bc77ed12b45f49879222231849e88e96198920d7 | [
"MIT"
] | null | null | null | web/schema.ex | gimc/joshua | bc77ed12b45f49879222231849e88e96198920d7 | [
"MIT"
] | null | null | null | defmodule Joshua.Schema do
use Absinthe.Schema
import_types Absinthe.Type.Custom
alias Joshua.Repo
alias Joshua.Badge
alias Joshua.Event
alias Joshua.Progress
object :badge do
field :id, :id
field :name, :string
field :description, :string
field :icon, :string
field :count, :integer... | 19.984615 | 46 | 0.614319 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.