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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0350ff64c786b768454d20494cdc13da632e7439 | 194 | ex | Elixir | lib/messaging_status_service_web/views/api/call_view.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | lib/messaging_status_service_web/views/api/call_view.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | lib/messaging_status_service_web/views/api/call_view.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | defmodule MessagingStatusServiceWeb.Api.CallView do
use MessagingStatusServiceWeb, :view
def render("create.json", %{}) do
[]
end
def render("index.json", %{}) do
[]
end
end
| 16.166667 | 51 | 0.664948 |
0351057aa83ca032b1f2efa98500e9fd757a3aba | 132 | exs | Elixir | Dining/philo/test/philo_test.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | Dining/philo/test/philo_test.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | Dining/philo/test/philo_test.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | defmodule PhiloTest do
use ExUnit.Case
doctest Philo
test "greets the world" do
assert Philo.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
035128aba09413255f7cb50b707366b0a6934637 | 96 | exs | Elixir | test/coop_minesweeper_web/views/page_view_test.exs | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | test/coop_minesweeper_web/views/page_view_test.exs | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | test/coop_minesweeper_web/views/page_view_test.exs | sdoering01/coop_minesweeper | 4fc7265c3734584f93a325c2ceaa172da578f7a5 | [
"MIT"
] | null | null | null | defmodule CoopMinesweeperWeb.PageViewTest do
use CoopMinesweeperWeb.ConnCase, async: true
end
| 24 | 46 | 0.854167 |
0351404fe3dea146d0d4c6a6ce0f771d97abab3c | 138 | exs | Elixir | test/mixduty_test.exs | bradediger/mixduty | 7dd18dc4b7166a362a00cba7da038fe337cc5923 | [
"MIT"
] | null | null | null | test/mixduty_test.exs | bradediger/mixduty | 7dd18dc4b7166a362a00cba7da038fe337cc5923 | [
"MIT"
] | null | null | null | test/mixduty_test.exs | bradediger/mixduty | 7dd18dc4b7166a362a00cba7da038fe337cc5923 | [
"MIT"
] | 1 | 2020-03-20T16:49:17.000Z | 2020-03-20T16:49:17.000Z | defmodule MixdutyTest do
use ExUnit.Case
doctest Mixduty
test "greets the world" do
assert Mixduty.hello() == :world
end
end
| 15.333333 | 36 | 0.710145 |
035175fd6b86259c0259a261c8c7f32c14d0f7cb | 568 | exs | Elixir | test/deck_test.exs | Danwhy/blackjack | f4a39c4bf4311f10c85bc969711180bacabef992 | [
"MIT"
] | null | null | null | test/deck_test.exs | Danwhy/blackjack | f4a39c4bf4311f10c85bc969711180bacabef992 | [
"MIT"
] | null | null | null | test/deck_test.exs | Danwhy/blackjack | f4a39c4bf4311f10c85bc969711180bacabef992 | [
"MIT"
] | null | null | null | defmodule DeckTest do
use ExUnit.Case
alias Blackjack.Deck
test "create a deck" do
deck = Deck.create_deck()
assert length(deck) == 52
end
test "handle end of deck" do
deck = []
{deck, hand} = Deck.deal(deck)
assert hand == nil
assert deck == []
end
test "deal hands" do
de... | 17.75 | 49 | 0.605634 |
0351a276443c85e6855ca358e8e3476c851ede5b | 1,705 | ex | Elixir | RAEM/raem/lib/raem_web/controllers/enade_controller.ex | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | null | null | null | RAEM/raem/lib/raem_web/controllers/enade_controller.ex | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | null | null | null | RAEM/raem/lib/raem_web/controllers/enade_controller.ex | pedromcorreia/Rumo-ao-ensino-superior | be0b9bf417604bdf8a349fde8a8a1c0aaf4c4cdb | [
"MIT"
] | 2 | 2018-02-24T19:56:21.000Z | 2018-02-26T00:16:41.000Z | defmodule RaemWeb.EnadeController do
use RaemWeb, :controller
alias Raem.Enades
alias Raem.Enades.Enade
def index(conn, _params) do
enades = Enades.list_enades()
render(conn, "index.html", enades: enades)
end
def new(conn, _params) do
changeset = Enades.change_enade(%Enade{})
render(conn,... | 27.95082 | 69 | 0.626979 |
0351c02be077848b9e201a406f5c9986d5178857 | 2,102 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/place.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/plus/lib/google_api/plus/v1/model/place.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/place.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 ... | 35.627119 | 121 | 0.689343 |
0351d94f4d772f744e581b7b2337c462bc5e4598 | 2,050 | ex | Elixir | lib/20_run/running_example.ex | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | lib/20_run/running_example.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | lib/20_run/running_example.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule EctoTestDSL.Run.RunningExample do
use EctoTestDSL.Drink.Me
use EctoTestDSL.Drink.AndRun
use EctoTestDSL.Drink.Assertively
import MockeryExtras.Getters
@enforce_keys [:example, :history]
defstruct [:example, :history,
script: :none_just_testing,
tracer: :none]
getters ... | 31.060606 | 96 | 0.670732 |
0351faf1950fa2717683cc6cb760eae2d7a1277e | 2,076 | exs | Elixir | clients/runtime_config/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/runtime_config/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/runtime_config/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... | 30.985075 | 296 | 0.678709 |
0352006523e660dc2e1c61b2cce3cd95f68764ca | 291 | ex | Elixir | lib/bloggex_web/controllers/admin/dashboard_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | 1 | 2020-01-14T03:17:51.000Z | 2020-01-14T03:17:51.000Z | lib/bloggex_web/controllers/admin/dashboard_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | lib/bloggex_web/controllers/admin/dashboard_controller.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | defmodule BloggexWeb.Admin.DashboardController do
use BloggexWeb, :controller
alias Bloggex.Accounts.Schemas.User
alias Bloggex.Repo
def index(conn, _params) do
with users <- Repo.aggregate(User, :count, :id) do
render(conn, "index.html", users: users)
end
end
end
| 22.384615 | 54 | 0.718213 |
0352301582ce09b6d814a0654181bfa573b06fd9 | 15,353 | ex | Elixir | lib/cforum/users.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum/users.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | lib/cforum/users.ex | MatthiasApsel/cforum_ex | 52c621a583182d82692b74694b0b2792ac23b8ff | [
"MIT"
] | null | null | null | defmodule Cforum.Users do
@moduledoc """
The boundary for the Accounts.Users system.
"""
import Ecto.Query, warn: false
use Cforum.Constants
alias Cforum.Repo
alias Cforum.Users.User
alias Cforum.Badges.Badge
alias Cforum.Settings
alias Cforum.Groups
alias Cforum.Caching
alias Cforum.Threads.... | 24.139937 | 152 | 0.618967 |
03525f1ac6f8981f2fe7fb59fa33f0ab918db0b3 | 421 | ex | Elixir | lib/hl7/2.5/segments/sft.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/sft.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/sft.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.SFT do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
software_vendor_organization: DataTypes.Xon,
software_certified_version_or_release_number: nil,
software_product_name: nil,
software_binary_i... | 23.388889 | 56 | 0.72209 |
03526185a63a6c9682d700776955f688ab9aa388 | 3,492 | ex | Elixir | lib/storage/jsondb.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/storage/jsondb.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/storage/jsondb.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnector.JsonDB do
@moduledoc """
Small key-based "database" that's stored as a json file on disc.
Intended for retaining long running state between runs in a way that's easy to read on the command line.
"""
use GenServer
@name JsonDB
@null_value :this_value_does_not_exist
@de... | 26.059701 | 122 | 0.619989 |
03526933c4194a48ebbdc36222f4c19711982321 | 3,277 | ex | Elixir | lib/delirium_tremex.ex | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 4 | 2019-09-24T09:32:31.000Z | 2021-02-21T13:13:18.000Z | lib/delirium_tremex.ex | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 2 | 2019-02-20T14:24:43.000Z | 2019-05-08T08:54:49.000Z | lib/delirium_tremex.ex | floatingpointio/delirium_tremexs | 6b7bb1918b7a8a02c4af3b7e266e30b67eba59bc | [
"MIT"
] | 1 | 2020-02-19T19:43:11.000Z | 2020-02-19T19:43:11.000Z | defmodule DeliriumTremex do
@moduledoc """
DeliriumTremex is a library for standardized
[GraphQL](http://graphql.org/)
error handling through
[Absinthe](https://hex.pm/packages/absinthe).
## Idea
All errors should be returned it the `errors` field.
Errors have the following format:
```JSON
{
... | 26.216 | 112 | 0.672566 |
035295b2bc8502ffd036747690d09916c125bde6 | 406,041 | ex | Elixir | lib/codes/codes_s32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_s32.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_S32 do
alias IcdCode.ICDCode
def _S32000A do
%ICDCode{full_code: "S32000A",
category_code: "S32",
short_code: "000A",
full_name: "Wedge compression fracture of unspecified lumbar vertebra, initial encounter for closed fracture",
short_name: ... | 53.279228 | 164 | 0.699695 |
0352a01e43d30b811b196feeb0a0c55c9fd08865 | 2,342 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__face_frame.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__face_frame.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__face_frame.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... | 36.59375 | 316 | 0.748933 |
0352bf386c880d77bd0b629432879932d60c1ab8 | 1,734 | ex | Elixir | lib/restarter.ex | CultivateHQ/restarter | 86db420127bff59a91b17d08dd35090a96aebec2 | [
"MIT"
] | 2 | 2016-07-26T17:43:20.000Z | 2016-07-27T21:12:32.000Z | lib/restarter.ex | CultivateHQ/restarter | 86db420127bff59a91b17d08dd35090a96aebec2 | [
"MIT"
] | null | null | null | lib/restarter.ex | CultivateHQ/restarter | 86db420127bff59a91b17d08dd35090a96aebec2 | [
"MIT"
] | null | null | null | defmodule Restarter do
@moduledoc """
Acts as a back stop. Starts a service (with the supplied module, function, and args).
The function is expected to return {:ok, pid}.
Should the service exit, then it is restarted after an interval. There is also the opportunity
to delay the start by a period of time.
"... | 39.409091 | 105 | 0.654556 |
0352f0e2e6d4105d8e715677827dd233e77f58a1 | 21,827 | exs | Elixir | lib/elixir/test/elixir/code_normalizer/quoted_ast_test.exs | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 2 | 2020-08-11T16:19:53.000Z | 2020-08-11T18:07:11.000Z | lib/elixir/test/elixir/code_normalizer/quoted_ast_test.exs | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 1 | 2021-10-21T08:22:30.000Z | 2021-10-21T08:22:30.000Z | lib/elixir/test/elixir/code_normalizer/quoted_ast_test.exs | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | 1 | 2020-12-18T19:20:35.000Z | 2020-12-18T19:20:35.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Normalizer.QuotedASTTest do
use ExUnit.Case, async: true
describe "quoted_to_algebra/2" do
test "variable" do
assert quoted_to_string(quote(do: foo)) == "foo"
end
test "local call" do
assert quoted_to_string(quote(do: foo(1, ... | 33.121396 | 98 | 0.501168 |
0352f366dd270d76ca51be8036a3bed9c1db5ee1 | 1,497 | exs | Elixir | mix.exs | code-and-effect/ex_effective_bootstrap | 533e43ebd3bb83ec7a98eba3fd128d12fa43e2bb | [
"MIT"
] | 12 | 2020-01-05T14:47:36.000Z | 2021-07-23T14:59:19.000Z | mix.exs | alanvardy/ex_effective_bootstrap | 533e43ebd3bb83ec7a98eba3fd128d12fa43e2bb | [
"MIT"
] | 4 | 2020-01-16T04:55:36.000Z | 2021-07-05T14:13:37.000Z | mix.exs | alanvardy/ex_effective_bootstrap | 533e43ebd3bb83ec7a98eba3fd128d12fa43e2bb | [
"MIT"
] | 7 | 2020-01-22T07:48:51.000Z | 2021-07-23T14:59:25.000Z | defmodule ExEffectiveBootstrap.MixProject do
use Mix.Project
@version "0.1.21"
def project do
[
app: :ex_effective_bootstrap,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
compilers: [:phoenix] ++ Mix.co... | 27.218182 | 88 | 0.591182 |
035306928acf95cbc40570a8b8ad8713b285b059 | 955 | exs | Elixir | mix.exs | cogini/mix_deploy_local | 52a40445d1b917674f27eeb3b52c2d4b75885767 | [
"Apache-2.0"
] | 1 | 2020-01-13T23:23:59.000Z | 2020-01-13T23:23:59.000Z | mix.exs | cogini/mix_deploy_local | 52a40445d1b917674f27eeb3b52c2d4b75885767 | [
"Apache-2.0"
] | null | null | null | mix.exs | cogini/mix_deploy_local | 52a40445d1b917674f27eeb3b52c2d4b75885767 | [
"Apache-2.0"
] | null | null | null | defmodule MixDeployLocal.MixProject do
use Mix.Project
def project do
[
app: :mix_deploy_local,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [
plt_add_apps: [:mix, :eex]
# plt_add_deps: true,
# flags... | 25.810811 | 89 | 0.582199 |
03530a77195768238034c6a9c82025f69a8ce813 | 3,644 | ex | Elixir | back/lib/api_web/controllers/role_controller.ex | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/lib/api_web/controllers/role_controller.ex | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | back/lib/api_web/controllers/role_controller.ex | HugoLefebvre/Epitech_TM_MP03 | 0ed161c956f7a10aec245fe2e17eb5a9b55f6075 | [
"MIT"
] | null | null | null | defmodule ApiWeb.RoleController do
use ApiWeb, :controller
alias Api.Auth
alias Api.Auth.Role
action_fallback ApiWeb.FallbackController
def index(conn, _params) do
case decode(conn) do # Get the user connect with the token
nil -> {:error, :unauthorizedUser}
currentUser ->
case (Str... | 32.828829 | 116 | 0.568606 |
035330cae263d87ab09e968b405f97f9fbd244ed | 1,188 | ex | Elixir | lib/places_alloverse_com/application.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | lib/places_alloverse_com/application.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | lib/places_alloverse_com/application.ex | alloverse/places_alloverse_com | 5c15ea08a88429378ce8f41047418e166cbde7e9 | [
"BSD-2-Clause"
] | null | null | null | defmodule PlacesAlloverseCom.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the PubSub system
# {Phoeni... | 31.263158 | 88 | 0.728956 |
0353338afbe879867b21f89484b1998e77de181e | 1,601 | ex | Elixir | lib/oauth2/response.ex | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | null | null | null | lib/oauth2/response.ex | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 2 | 2018-09-07T04:52:56.000Z | 2018-09-07T04:53:07.000Z | lib/oauth2/response.ex | stephenmoloney/oauth2 | 4a1b2441700f34a54bb4446a36415b71217086d5 | [
"MIT"
] | 1 | 2020-02-07T15:27:26.000Z | 2020-02-07T15:27:26.000Z | defmodule OAuth2.Response do
@moduledoc """
Defines the `OAuth2.Response` struct which is created from the HTTP responses
made by the `OAuth2.Client` module.
## Struct fields
* `status_code` - HTTP response status code
* `headers` - HTTP response headers
* `body` - Parsed HTTP response body (based on "c... | 27.135593 | 79 | 0.678326 |
03533d73d7fd702d7d5b258943be186a9888fbe0 | 92 | ex | Elixir | test/support/web/views/broadcast5_view.ex | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 933 | 2017-01-14T13:47:37.000Z | 2022-03-21T18:14:41.000Z | test/support/web/views/broadcast5_view.ex | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 189 | 2017-01-15T18:35:06.000Z | 2022-01-24T17:41:22.000Z | test/support/web/views/broadcast5_view.ex | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 54 | 2017-01-15T18:10:48.000Z | 2021-02-06T17:21:44.000Z | defmodule DrabTestApp.Broadcast5View do
@moduledoc false
use DrabTestApp.Web, :view
end
| 18.4 | 39 | 0.804348 |
0353551110cbc7c4d9d864f783b087f2b6678c68 | 1,736 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/course_material_set.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/course_material_set.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/course_material_set.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... | 34.72 | 199 | 0.753456 |
03535b1641351cdd80d580060a9f9406a685b4d3 | 7,543 | exs | Elixir | test/cadet/jobs/autograder/lambda_worker_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | null | null | null | test/cadet/jobs/autograder/lambda_worker_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | test/cadet/jobs/autograder/lambda_worker_test.exs | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule Cadet.Autograder.LambdaWorkerTest do
use Cadet.DataCase
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Mock
import ExUnit.CaptureLog
alias Cadet.Assessments.{Answer, Question}
alias Cadet.Autograder.{LambdaWorker, ResultStoreWorker}
setup_all do
# This essentially does :application... | 30.051793 | 124 | 0.442132 |
03537d128544b1c3575e90c7154cd43a5ed055c9 | 840 | exs | Elixir | priv/repo/migrations/20190226213046_article_full_text_search.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 14 | 2016-09-12T02:45:12.000Z | 2021-02-08T04:13:29.000Z | priv/repo/migrations/20190226213046_article_full_text_search.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 3 | 2016-09-12T05:17:35.000Z | 2016-09-14T16:35:04.000Z | priv/repo/migrations/20190226213046_article_full_text_search.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 1 | 2018-02-12T04:30:52.000Z | 2018-02-12T04:30:52.000Z | defmodule Athel.Repo.Migrations.ArticleFullTextSearch do
use Ecto.Migration
def up do
alter table(:articles) do
add :language, :string, null: false, default: "english"
end
execute """
CREATE MATERIALIZED VIEW article_search_index AS
SELECT message_id,
parent_message_id,
"from... | 25.454545 | 136 | 0.684524 |
0353cd05c9ff032ab3d831d56634620e15dd2737 | 1,137 | exs | Elixir | config/config.exs | Byzanteam-Labs/arc_aliyun_oss | a633d0c386e8af7c09ef65a8851b668a1fa3cd8d | [
"MIT"
] | null | null | null | config/config.exs | Byzanteam-Labs/arc_aliyun_oss | a633d0c386e8af7c09ef65a8851b668a1fa3cd8d | [
"MIT"
] | null | null | null | config/config.exs | Byzanteam-Labs/arc_aliyun_oss | a633d0c386e8af7c09ef65a8851b668a1fa3cd8d | [
"MIT"
] | 1 | 2019-01-18T05:35:37.000Z | 2019-01-18T05:35:37.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.677419 | 73 | 0.754617 |
0353dbf40d2f60f378e6d0da6f918344c56e82f9 | 59 | ex | Elixir | examples/example-phx-1_2/web/views/page_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 681 | 2016-06-21T20:49:21.000Z | 2022-02-19T04:08:38.000Z | examples/example-phx-1_2/web/views/page_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 125 | 2016-06-21T21:14:49.000Z | 2020-12-12T20:15:48.000Z | examples/example-phx-1_2/web/views/page_view.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 76 | 2016-09-06T03:40:55.000Z | 2022-01-20T21:29:22.000Z | defmodule Example.PageView do
use Example.Web, :view
end
| 14.75 | 29 | 0.779661 |
0353e269195c3e01a00a12aee98568921a66b4cb | 888 | ex | Elixir | debian/prerm.ex | qiuzhiqian/wallpaper | 9bb347acb78d583336d127016c7da96164d8fa7e | [
"MIT"
] | 9 | 2020-03-04T02:42:12.000Z | 2021-11-17T08:23:58.000Z | debian/prerm.ex | qiuzhiqian/wallpaper | 9bb347acb78d583336d127016c7da96164d8fa7e | [
"MIT"
] | null | null | null | debian/prerm.ex | qiuzhiqian/wallpaper | 9bb347acb78d583336d127016c7da96164d8fa7e | [
"MIT"
] | null | null | null | #!/bin/sh
# prerm script for wallpaper-toolbox
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <n... | 22.769231 | 76 | 0.629505 |
03541825b9454fa3b61041ffcc09bc420dc9a113 | 1,885 | exs | Elixir | test/commodity_api/iam/user/address/invalidation/invalidation_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | test/commodity_api/iam/user/address/invalidation/invalidation_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | test/commodity_api/iam/user/address/invalidation/invalidation_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 30.403226 | 77 | 0.744828 |
035438825ba00bb12fb31d2ce6d9e253e0cee17c | 3,755 | ex | Elixir | lib/cadet/accounts/accounts.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet/accounts/accounts.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | lib/cadet/accounts/accounts.ex | geshuming/cadet | 783cc84173b8f4b504db3d3b1ca91037d51b5c8e | [
"MIT"
] | null | null | null | defmodule Cadet.Accounts do
@moduledoc """
Accounts context contains domain logic for User management and Authentication
"""
use Cadet, :context
import Ecto.Query
alias Cadet.Accounts.Form.Registration
alias Cadet.Accounts.{Authorization, Luminus, Query, User}
@doc """
Register new User entity usin... | 25.371622 | 93 | 0.613049 |
035459273a52fd0e987cf93b76fdf378289aa187 | 1,475 | ex | Elixir | lib/stubbex_web/views/error_helpers.ex | yawaramin/stubbex | 5de6a0b5a7fd05229278673a032f59b6bb4aa06f | [
"MIT"
] | 9 | 2018-10-24T22:56:46.000Z | 2020-07-15T20:34:50.000Z | lib/stubbex_web/views/error_helpers.ex | yawaramin/stubbex | 5de6a0b5a7fd05229278673a032f59b6bb4aa06f | [
"MIT"
] | 10 | 2018-10-21T02:01:21.000Z | 2019-11-14T17:03:32.000Z | lib/stubbex_web/views/error_helpers.ex | yawaramin/stubbex | 5de6a0b5a7fd05229278673a032f59b6bb4aa06f | [
"MIT"
] | 1 | 2018-11-12T12:51:19.000Z | 2018-11-12T12:51:19.000Z | defmodule StubbexWeb.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
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(... | 32.777778 | 76 | 0.671186 |
0354617909d31d1306fa78f43f6e248c0bcfd2dd | 1,908 | exs | Elixir | clients/admin/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/admin/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/admin/mix.exs | 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... | 28.477612 | 189 | 0.658805 |
03549dd3e41a6557413c0ace3c7fddd4d5db67c1 | 551 | ex | Elixir | metaprogramming/controlflow.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | metaprogramming/controlflow.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | metaprogramming/controlflow.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | # 'quote' and 'unquote' are like string interpolation in AST
# 'unquote' is like delaying code execution and injecting the
# values from the external context into an AST
# 'quote' is requesting the internal representation of the code
# inside the do clause
defmodule ControlFlow do
defmacro unless(expression, do: bl... | 22.958333 | 63 | 0.731397 |
0354a6521d3e2dce0b7657f97b325023212750ad | 3,973 | ex | Elixir | lib/ring_logger/server.ex | se-apc/ring_logger | 3b5c59dbfd985e7c1d1aab9fe8ec11e7dbd5dccf | [
"Apache-2.0"
] | null | null | null | lib/ring_logger/server.ex | se-apc/ring_logger | 3b5c59dbfd985e7c1d1aab9fe8ec11e7dbd5dccf | [
"Apache-2.0"
] | 1 | 2019-01-09T21:42:35.000Z | 2019-01-09T21:42:35.000Z | lib/ring_logger/server.ex | se-apc/ring_logger | 3b5c59dbfd985e7c1d1aab9fe8ec11e7dbd5dccf | [
"Apache-2.0"
] | null | null | null | defmodule RingLogger.Server do
use GenServer
alias RingLogger.Client
@opts [:max_size, :module_levels]
defmodule State do
@moduledoc false
@default_max_size 100
defstruct clients: [],
buffer: :queue.new(),
size: 0,
max_size: @default_max_size,
... | 23.508876 | 83 | 0.623458 |
0354bfdbdf793a48a1c0433407e9cc962e7e1198 | 689 | exs | Elixir | test/store_test.exs | jerodsanto/plug_ets_cache | 3fdcf2652a8e5b9d78dc572aec6345b5755355e4 | [
"MIT"
] | null | null | null | test/store_test.exs | jerodsanto/plug_ets_cache | 3fdcf2652a8e5b9d78dc572aec6345b5755355e4 | [
"MIT"
] | null | null | null | test/store_test.exs | jerodsanto/plug_ets_cache | 3fdcf2652a8e5b9d78dc572aec6345b5755355e4 | [
"MIT"
] | null | null | null | defmodule PlugEtsCache.StoreTest do
use ExUnit.Case, async: true
test "sets and gets values from cache" do
conn = %Plug.Conn{request_path: "/test", query_string: ""}
PlugEtsCache.Store.set(conn, "text/plain", "Hello cache")
cache = PlugEtsCache.Store.get(conn)
assert cache.value == "Hello cache"
... | 28.708333 | 67 | 0.682148 |
0354fbd46b956e73ffbf1b243b62416a15964da1 | 25,950 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 52.21328 | 1,213 | 0.701734 |
035505af969e8964ca3c938f6bc51b66d3d29518 | 10,448 | exs | Elixir | lib/elixir/test/elixir/macro_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/elixir/test/elixir/macro_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/macro_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule Macro.ExternalTest do
defmacro external do
18 = __CALLER__.line
__FILE__ = __CALLER__.file
18 = __CALLER__.location[:line]
__FILE__ = __CALLER__.location[:file]
end
end
defmodule MacroTest do
use ExUnit.Case, async: true
# Changing the li... | 29.184358 | 97 | 0.613706 |
03553d2cecf353386c98c5eba1df9cd47d1c99f6 | 344 | exs | Elixir | priv/repo/migrations/20190930150509_remove_unique_constaint_source_slug.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20190930150509_remove_unique_constaint_source_slug.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20190930150509_remove_unique_constaint_source_slug.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.RemoveUniqueConstaintSourceSlug do
use Ecto.Migration
@table "source_slug_mappings"
def up do
drop(unique_index(@table, [:source, :slug], name: :source_slug_unique_combination))
end
def down do
create(unique_index(@table, [:source, :slug], name: :source_slug_unique_... | 26.461538 | 89 | 0.758721 |
035551d9dd2c077b094bbcf682407f0ff2b96089 | 253 | ex | Elixir | lib/phone/nanp/us/nv.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/nv.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/nv.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.US.NV do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(702|7[2|7]5)([2-9].{6})$/
def area_name, do: "Nevada"
def area_type, do: "state"
def area_abbreviation, do: "NV"
matcher ["1702", "1725", "1775"]
end
| 19.461538 | 50 | 0.624506 |
03555aaeb73987bd1d7b8323c3a0122eb88c9d96 | 2,598 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/blockchain_wallet.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/lib/ewallet_db/blockchain_wallet.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/lib/ewallet_db/blockchain_wallet.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 ... | 28.549451 | 74 | 0.680908 |
03556106097d501526b479049d8f7b56689f3394 | 1,066 | ex | Elixir | issues/deps/earmark/lib/earmark/cli.ex | vronic/programming-elixir | 4465a81cc07b31a4c03bd277520e1127dda773b2 | [
"MIT"
] | null | null | null | issues/deps/earmark/lib/earmark/cli.ex | vronic/programming-elixir | 4465a81cc07b31a4c03bd277520e1127dda773b2 | [
"MIT"
] | null | null | null | issues/deps/earmark/lib/earmark/cli.ex | vronic/programming-elixir | 4465a81cc07b31a4c03bd277520e1127dda773b2 | [
"MIT"
] | null | null | null | defmodule Earmark.CLI do
def main(argv) do
argv
|> parse_args
|> process
end
@args """
usage:
earmark [ <file> ]
convert file from Markdown to HTML.
"""
defp parse_args(argv) do
parse = OptionParser.parse(argv, switches: [ help: :boolean],
a... | 20.5 | 81 | 0.546904 |
03557a7a85ac8380193426685591b038cbe70bbf | 7,384 | exs | Elixir | test/workflows/status_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | test/workflows/status_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | test/workflows/status_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.Workflows.StatusTest do
use ExUnit.Case
use Plug.Test
alias Ecto
alias Ecto.Adapters.SQL.Sandbox
alias StepFlow.Jobs
alias StepFlow.Step
alias StepFlow.Workflows
alias StepFlow.Workflows.Status
require Logger
doctest StepFlow
setup do
# Explicitly get a connection before ... | 32.817778 | 95 | 0.654252 |
035580e664c8d621f4199b9a3f1a3595d56fb274 | 4,941 | ex | Elixir | clients/content/lib/google_api/content/v21/model/repricing_product_report.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/model/repricing_product_report.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/repricing_product_report.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... | 58.129412 | 413 | 0.731633 |
03558a8b92eea71e9b1243e87c0dda0996c58ca4 | 93 | exs | Elixir | test/test_helper.exs | GPrimola/posexional | ea4e24388ffba0568a9a7b9aeaf236b81965fb24 | [
"MIT"
] | 10 | 2017-02-21T20:59:18.000Z | 2021-01-28T13:44:41.000Z | test/test_helper.exs | GPrimola/posexional | ea4e24388ffba0568a9a7b9aeaf236b81965fb24 | [
"MIT"
] | 13 | 2016-10-16T15:45:51.000Z | 2021-02-12T09:38:28.000Z | test/test_helper.exs | GPrimola/posexional | ea4e24388ffba0568a9a7b9aeaf236b81965fb24 | [
"MIT"
] | 8 | 2016-10-16T12:43:03.000Z | 2021-01-28T20:47:51.000Z | # ExCheck.start
Application.ensure_all_started(:timex)
ExUnit.start(exclude: [:experiments])
| 23.25 | 38 | 0.806452 |
0355a5260d3a240367cbe026bdbfcfed3a219f4f | 744 | ex | Elixir | lib/matic.ex | zimmydev/matic | 3d79ad0c6999c9984249950fb63e80047686e9ea | [
"MIT"
] | 4 | 2021-09-23T10:06:38.000Z | 2021-09-30T18:50:50.000Z | lib/matic.ex | zimmydev/matic | 3d79ad0c6999c9984249950fb63e80047686e9ea | [
"MIT"
] | null | null | null | lib/matic.ex | zimmydev/matic | 3d79ad0c6999c9984249950fb63e80047686e9ea | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Brandon Zimmerman
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
defmodule Matic do
@moduledoc """
This module houses core `matic` functionality.
"""
alias Matic.Filesystem
@checksum_method Application.compile_env!(:matic, :checksum_method)
... | 20.108108 | 69 | 0.694892 |
0355ab7045de83045c9506195e86a0d0f3b78fa2 | 990 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/deserializer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/deserializer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/deserializer.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... | 38.076923 | 77 | 0.769697 |
0355bb6ff992dad17c5c7ba48bfd646a8fd1820b | 13,984 | exs | Elixir | test/sanbase_web/graphql/projects/project_api_token_top_transfers_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | test/sanbase_web/graphql/projects/project_api_token_top_transfers_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | test/sanbase_web/graphql/projects/project_api_token_top_transfers_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.ProjectApiTokenTopTransactionsTest do
use SanbaseWeb.ConnCase, async: false
import Sanbase.Factory
import SanbaseWeb.Graphql.TestHelpers
require Sanbase.Utils.Config
setup do
%{
project: insert(:random_erc20_project),
project_no_contract: insert(:random_erc20_pr... | 34.190709 | 106 | 0.567363 |
0355c7164daf8bcd918c69aa42daefb6b77c58cc | 10,027 | ex | Elixir | scripts/gen_resources.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 4 | 2020-10-21T18:34:50.000Z | 2022-03-16T06:25:44.000Z | scripts/gen_resources.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 5 | 2020-10-21T23:16:32.000Z | 2021-05-13T13:42:44.000Z | scripts/gen_resources.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 3 | 2020-10-21T21:20:36.000Z | 2021-03-15T18:00:30.000Z | defmodule GenResources do
use Mix.Task
@shortdoc "generate modules from api.json"
@api File.read!("api.json") |> Jason.decode!()
@impl Mix.Task
def run(_args) do
rm_resources()
write_resources()
write_norm_schema_module()
write_typespecs_module()
write_response_schemas_module()
... | 28.648571 | 97 | 0.617932 |
0355d3ef3ff434096a8ef8bcb4b8729f3c8b24f8 | 347 | exs | Elixir | priv/repo/seeds.exs | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | 40 | 2018-05-20T21:30:30.000Z | 2021-09-10T07:25:44.000Z | priv/repo/seeds.exs | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | 3 | 2020-09-07T10:53:53.000Z | 2022-02-12T21:45:34.000Z | priv/repo/seeds.exs | alex2chan/Phoenix-JWT-Auth-API | 5313b41bb590db4c12bdc16f624c11a035d4d692 | [
"MIT"
] | 15 | 2018-06-07T08:16:20.000Z | 2020-04-12T07:38:05.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# MyApi.Repo.insert!(%MyApi.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
0355dbd21de16fd5c761b1226f303e05a30e57ea | 1,131 | exs | Elixir | config/config.exs | itsgreggreg/romanex | d50078fb6b91b7a7fe1d97f83354822407916e35 | [
"Apache-2.0"
] | 1 | 2021-03-10T23:30:03.000Z | 2021-03-10T23:30:03.000Z | config/config.exs | itsgreggreg/romanex | d50078fb6b91b7a7fe1d97f83354822407916e35 | [
"Apache-2.0"
] | null | null | null | config/config.exs | itsgreggreg/romanex | d50078fb6b91b7a7fe1d97f83354822407916e35 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
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.483871 | 73 | 0.7542 |
0355e0a4f3b8aa034a81e4bf73d92b6852d1d7ea | 1,632 | exs | Elixir | exercises/simple-cipher/simple_cipher.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/simple-cipher/simple_cipher.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/simple-cipher/simple_cipher.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2018-07-19T23:43:56.000Z | 2018-07-19T23:43:56.000Z | defmodule SimpleCipher do
@doc """
Given a `plaintext` and `key`, encode each character of the `plaintext` by
shifting it by the corresponding letter in the alphabet shifted by the number
of letters represented by the `key` character, repeating the `key` if it is
shorter than the `plaintext`.
For example, ... | 33.306122 | 79 | 0.723652 |
03560fffa8a9549ee6b34093d71d2ebcd316ae8c | 662 | exs | Elixir | test/acceptance/html/hard_line_breaks_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 734 | 2015-01-05T19:08:00.000Z | 2022-03-28T14:04:21.000Z | test/acceptance/html/hard_line_breaks_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 343 | 2015-01-01T04:56:57.000Z | 2022-02-15T11:00:57.000Z | test/acceptance/html/hard_line_breaks_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 169 | 2015-02-26T15:18:05.000Z | 2022-03-18T08:00:42.000Z | defmodule Acceptance.Html.HardLineBreaksTest do
use Support.AcceptanceTestCase
describe "gfm" do
test "hard line breaks are enabled" do
markdown = "line 1\nline 2\\\nline 3"
html = "<p>\nline 1\nline 2 <br />\nline 3</p>\n"
messages = []
assert as_html(markdown) == {:ok, html, m... | 24.518519 | 67 | 0.607251 |
03561a55a6c2024fb494c6bcc397648d9c36f6ff | 2,690 | exs | Elixir | hello_phx/test/hello_phx_web/controllers/cms/page_controller_test.exs | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | hello_phx/test/hello_phx_web/controllers/cms/page_controller_test.exs | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | hello_phx/test/hello_phx_web/controllers/cms/page_controller_test.exs | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | defmodule HelloPhxWeb.CMS.PageControllerTest do
use HelloPhxWeb.ConnCase
alias HelloPhx.CMS
@create_attrs %{body: "some body", title: "some title", views: 42}
@update_attrs %{body: "some updated body", title: "some updated title", views: 43}
@invalid_attrs %{body: nil, title: nil, views: nil}
def fixture... | 30.224719 | 84 | 0.651301 |
03567cd98833596aed97e2dfda4bf27c4e5ab04e | 498 | exs | Elixir | phoenix_commerce/test/models/product_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_commerce/test/models/product_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_commerce/test/models/product_test.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule PhoenixCommerce.ProductTest do
use PhoenixCommerce.ModelCase
alias PhoenixCommerce.Product
@valid_attrs %{description: "some content", name: "some content", price: "120.5"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Product.changeset(%Product{}, @valid_attrs)
... | 26.210526 | 83 | 0.738956 |
03568daff09407507be00d51ebf772db6b4406a5 | 2,507 | exs | Elixir | installer/templates/phx_single/config/dev.exs | seasharps/phoenix | 95b9383c6a08be4ab1a0c8a7bbf6b6911d888ca1 | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/dev.exs | seasharps/phoenix | 95b9383c6a08be4ab1a0c8a7bbf6b6911d888ca1 | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/dev.exs | seasharps/phoenix | 95b9383c6a08be4ab1a0c8a7bbf6b6911d888ca1 | [
"MIT"
] | null | null | null | import 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 webpack to recompile .js and .css sources.
config :<%= @app_name %>, <%= @endpoint_module %>,
# Bin... | 32.558442 | 76 | 0.659354 |
0356d1637b24adbbc69316fba2ce8a02d45468b4 | 5,393 | ex | Elixir | gen/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | gen/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | gen/envoy/config/filter/http/jwt_authn/v2alpha/config.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule Envoy.Config.Filter.Http.JwtAuthn.V2alpha.JwtProvider do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
jwks_source_specifier: {atom, any},
issuer: String.t(),
audiences: [String.t()],
forward: boolean,
from_headers: [Envoy.Confi... | 29.469945 | 98 | 0.696088 |
0356d7c612a61b58cf11392883c6ae3c504d58bc | 2,718 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/model/sync_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/sync_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/sync_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... | 30.886364 | 144 | 0.650478 |
0356db4afa665454728a5ce856ffb7e5d6128911 | 1,870 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/installation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/installation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/installation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.4 | 190 | 0.742246 |
0357017f0faf797a4b5e834bef37c9cfcdac32c6 | 1,749 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/delete_header_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/delete_header_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/delete_header_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33 | 118 | 0.731847 |
03572556a3953c7b5f7b6b35ca252d1f31d05a1f | 1,361 | ex | Elixir | lib/sanbase/short_url/short_url.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/short_url/short_url.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/short_url/short_url.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.ShortUrl do
use Ecto.Schema
import Ecto.Query
import Ecto.Changeset
alias Sanbase.Repo
@short_url_length 8
schema "short_urls" do
field(:short_url, :string)
field(:full_url, :string)
field(:data, :string)
belongs_to(:user, Sanbase.Accounts.User)
timestamps()
end... | 22.683333 | 102 | 0.637766 |
035745e117a9465b63aabbec684377e80ec7eed9 | 1,173 | exs | Elixir | clients/cloud_debugger/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.CloudDebugger.V2.Mixfile do
use Mix.Project
@version "0.1.0"
def project() do
[
app: :google_api_cloud_debugger,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
... | 23.938776 | 114 | 0.602728 |
03574861ef3fe6b40d12d80d20213bef5afd6be6 | 41 | exs | Elixir | v02/ch09/capture2.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch09/capture2.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch09/capture2.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | func = &(&1 * &3)
x = func.(7)
IO.puts x
| 10.25 | 17 | 0.463415 |
035759cb8cde49a2a11e6a3389e202330d125297 | 30 | ex | Elixir | lib/vagabond_sqs.ex | marcelobelli/VagabondSQS | 25df6cfa890769399c52d0fdc603521b4f3be27b | [
"MIT"
] | null | null | null | lib/vagabond_sqs.ex | marcelobelli/VagabondSQS | 25df6cfa890769399c52d0fdc603521b4f3be27b | [
"MIT"
] | 1 | 2018-07-20T15:33:59.000Z | 2019-06-05T19:46:17.000Z | lib/vagabond_sqs.ex | marcelobelli/VagabondSQS | 25df6cfa890769399c52d0fdc603521b4f3be27b | [
"MIT"
] | null | null | null | defmodule VagabondSqs do
end
| 7.5 | 24 | 0.833333 |
0357a1b2815db5ee35ee87bc312a7ea43b47f16f | 2,167 | ex | Elixir | lib/operation/send_document.ex | mpichette/hippy | 46d7140b6374426812b2c21e7369345fbdf67b17 | [
"MIT"
] | null | null | null | lib/operation/send_document.ex | mpichette/hippy | 46d7140b6374426812b2c21e7369345fbdf67b17 | [
"MIT"
] | null | null | null | lib/operation/send_document.ex | mpichette/hippy | 46d7140b6374426812b2c21e7369345fbdf67b17 | [
"MIT"
] | null | null | null | defmodule Hippy.Operation.SendDocument do
@moduledoc """
Represents a request to cancel a print job from the time it's created up to the time
it's completed, canceled, or aborted.
"""
@def_charset "utf-8"
@def_lang "en"
@def_username "hippy"
@def_mime_media_type "application/octet-stream"
@enforce_k... | 33.859375 | 86 | 0.65713 |
0357adcbce91199713fc9aab67a624f7778b6b61 | 72 | exs | Elixir | test/1000/practice_1088_test.exs | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | test/1000/practice_1088_test.exs | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | test/1000/practice_1088_test.exs | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | defmodule Practice1088Test do
use ExUnit.Case
doctest Practice1088
end | 18 | 29 | 0.861111 |
0357c3fd836ef6183cd8d1175065fb0c2e135885 | 311 | ex | Elixir | lib/flipay/guardian.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | lib/flipay/guardian.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | lib/flipay/guardian.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | defmodule Flipay.Guardian do
@moduledoc false
use Guardian, otp_app: :flipay
def subject_for_token(user, _claims) do
sub = to_string(user.id)
{:ok, sub}
end
def resource_from_claims(claims) do
id = claims["sub"]
resource = Flipay.Accounts.get_user!(id)
{:ok, resource}
end
end
| 19.4375 | 44 | 0.681672 |
035800f9572e3ce385bd9bf68103d7c7e274ddb4 | 1,796 | exs | Elixir | test/lib/presence_agent_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | test/lib/presence_agent_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | test/lib/presence_agent_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.PresenceAgentTest do
use UcxChat.ModelCase
alias UcxChat.PresenceAgent, as: Agent
import UcxChat.TestHelpers
setup do
Agent.clear
{:ok, user: insert_user()}
end
test "load", %{user: user} do
assert Agent.get(user.id) == "offline"
Agent.load user.id
assert Agent.get(us... | 27.630769 | 46 | 0.644766 |
035801d5b4b40fc236987141383200a8d5b1fc17 | 857 | ex | Elixir | lib/level_web/controllers/session_controller.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | lib/level_web/controllers/session_controller.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | lib/level_web/controllers/session_controller.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.SessionController do
@moduledoc false
use LevelWeb, :controller
plug :fetch_current_user_by_session
plug :redirect_if_signed_in
def new(conn, _params) do
render conn, "new.html"
end
def create(conn, %{"session" => %{"email" => email, "password" => pass}}) do
case LevelWeb.Au... | 23.162162 | 78 | 0.621937 |
03581d2e223b0df7a9f34e145ceb33234634614b | 46,430 | exs | Elixir | test/ecto/changeset/has_assoc_test.exs | lafka/ecto | 3e796615c7a2ebd6961f576fda5d75faf85799a1 | [
"Apache-2.0"
] | 2 | 2021-02-25T15:51:16.000Z | 2021-02-25T18:42:35.000Z | test/ecto/changeset/has_assoc_test.exs | lafka/ecto | 3e796615c7a2ebd6961f576fda5d75faf85799a1 | [
"Apache-2.0"
] | 1 | 2021-03-09T16:43:23.000Z | 2021-03-09T16:43:23.000Z | test/ecto/changeset/has_assoc_test.exs | lafka/ecto | 3e796615c7a2ebd6961f576fda5d75faf85799a1 | [
"Apache-2.0"
] | 1 | 2018-06-18T14:47:58.000Z | 2018-06-18T14:47:58.000Z | defmodule Ecto.Changeset.HasAssocTest do
use ExUnit.Case, async: true
alias Ecto.Changeset
alias Ecto.Changeset.Relation
alias Ecto.TestRepo
alias __MODULE__.Author
alias __MODULE__.Post
alias __MODULE__.Profile
defmodule Post do
use Ecto.Schema
schema "posts" do
field :title, :string
... | 38.886097 | 128 | 0.653134 |
0358272d8756e46a3a73cb9139c4739ded4d577e | 3,636 | ex | Elixir | clients/games/lib/google_api/games/v1/model/turn_based_match_participant.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/turn_based_match_participant.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/turn_based_match_participant.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... | 57.714286 | 939 | 0.746425 |
035828691899160ffa4e20a4c2e70189ebdef8a9 | 72 | exs | Elixir | lab3/test/lab2_web/views/page_view_test.exs | TeeSeal/web-tech-labs | 46596ae2eae68e05d4433506a210b003ee18a749 | [
"MIT"
] | null | null | null | lab3/test/lab2_web/views/page_view_test.exs | TeeSeal/web-tech-labs | 46596ae2eae68e05d4433506a210b003ee18a749 | [
"MIT"
] | 2 | 2018-02-12T07:41:50.000Z | 2018-05-04T18:45:28.000Z | lab4/test/lab2_web/views/page_view_test.exs | TeeSeal/web-tech-labs | 46596ae2eae68e05d4433506a210b003ee18a749 | [
"MIT"
] | null | null | null | defmodule LabWeb.PageViewTest do
use LabWeb.ConnCase, async: true
end
| 18 | 34 | 0.805556 |
0358310238b63afdcbbee0f7d52a66dff1a53d09 | 2,239 | ex | Elixir | lib/gettext/extractor_agent.ex | stephenmoloney/gettext | 4b9a0fd71e6ebdfa3ae3fb63c657b67e8745faa1 | [
"Apache-2.0"
] | null | null | null | lib/gettext/extractor_agent.ex | stephenmoloney/gettext | 4b9a0fd71e6ebdfa3ae3fb63c657b67e8745faa1 | [
"Apache-2.0"
] | null | null | null | lib/gettext/extractor_agent.ex | stephenmoloney/gettext | 4b9a0fd71e6ebdfa3ae3fb63c657b67e8745faa1 | [
"Apache-2.0"
] | null | null | null | defmodule Gettext.ExtractorAgent do
@moduledoc false
@name __MODULE__
# :translations is a map where keys are Gettext backends and values
# are maps. In these maps, keys are domains and values are maps of
# translation_id => translation.
# :backends is just a list of backends that call `use Gettext`.
@i... | 27.641975 | 95 | 0.673068 |
03585525949df63ce4c4a5b6d323a9202e5fa6b3 | 22,875 | ex | Elixir | lib/ex_aws/dynamo.ex | circles-learning-labs/ex_aws_ddb | 192794566864605ed9543545554c763d062a44b4 | [
"MIT",
"Unlicense"
] | null | null | null | lib/ex_aws/dynamo.ex | circles-learning-labs/ex_aws_ddb | 192794566864605ed9543545554c763d062a44b4 | [
"MIT",
"Unlicense"
] | null | null | null | lib/ex_aws/dynamo.ex | circles-learning-labs/ex_aws_ddb | 192794566864605ed9543545554c763d062a44b4 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule ExAws.Dynamo do
@moduledoc """
Operations on the AWS Dynamo service.
NOTE: When Mix.env in [:test, :dev] dynamo clients will run by default against
Dynamodb local.
## Basic usage
```elixir
defmodule User do
@derive [ExAws.Dynamo.Encodable]
defstruct [:email, :name, :age, :admin]
end
... | 31.595304 | 136 | 0.638732 |
035867dc7ee5abb6353149dbf4562710dabbcbfa | 273 | exs | Elixir | priv/repo/migrations/20210607004103_create_users.exs | devandcoffee/movekr-be | bff1690e22daec9a545ca7b69495cb928d68c0a5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210607004103_create_users.exs | devandcoffee/movekr-be | bff1690e22daec9a545ca7b69495cb928d68c0a5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210607004103_create_users.exs | devandcoffee/movekr-be | bff1690e22daec9a545ca7b69495cb928d68c0a5 | [
"MIT"
] | null | null | null | defmodule Movekr.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :mail, :string
add :password, :string
timestamps()
end
create unique_index(:users, [:mail])
end
end
| 17.0625 | 47 | 0.644689 |
035896276a3090800a27438ede4859286230b04f | 1,433 | ex | Elixir | lib/doctor_schedule/accounts/entities/user.ex | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | lib/doctor_schedule/accounts/entities/user.ex | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | lib/doctor_schedule/accounts/entities/user.ex | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | defmodule DoctorSchedule.Accounts.Entities.User do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :avatar, :string
field :email, :string, unique: true
field :first_name, :string
field :last_name, :s... | 25.140351 | 98 | 0.650384 |
0358b29b9663bc1eb92230f02623e7e674b876bf | 1,119 | exs | Elixir | mix.exs | mentels/mim_iot_rpi | 084ea4b1e5d71d157938d56c53b961b9accad34b | [
"Apache-2.0"
] | null | null | null | mix.exs | mentels/mim_iot_rpi | 084ea4b1e5d71d157938d56c53b961b9accad34b | [
"Apache-2.0"
] | null | null | null | mix.exs | mentels/mim_iot_rpi | 084ea4b1e5d71d157938d56c53b961b9accad34b | [
"Apache-2.0"
] | null | null | null | defmodule MimIotRpi.Mixfile do
use Mix.Project
@version Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
def project do
[app: :mim_iot_rpi,
version: @version,
elixir: "~> 1.3",
compilers: Mix.compilers ++ [:nerves_package],
description: description(),
package: pac... | 26.642857 | 197 | 0.610366 |
0358cc4d401ea67a57dcdee9b85ea4657938b009 | 341 | ex | Elixir | web/channels/user_socket.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 342 | 2017-01-10T16:13:45.000Z | 2022-02-26T13:55:38.000Z | web/channels/user_socket.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 6 | 2017-01-14T17:59:48.000Z | 2018-03-25T21:35:50.000Z | web/channels/user_socket.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 38 | 2017-01-11T00:18:21.000Z | 2021-07-11T11:28:12.000Z | defmodule Microscope.UserSocket do
use Phoenix.Socket
## Channels
channel "users:*", Microscope.UserChannel
channel "posts:lobby", Microscope.PostChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket, timeout: 45_000
def connect(_params, socket) do
{:ok, socket}
end
def id(_... | 20.058824 | 69 | 0.730205 |
0358f04ad8a68085b8754de16f873b02de6631ec | 1,339 | ex | Elixir | lib/ledemo_web/endpoint.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | lib/ledemo_web/endpoint.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | 7 | 2021-05-10T15:57:48.000Z | 2021-05-27T13:05:14.000Z | lib/ledemo_web/endpoint.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | defmodule LedemoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ledemo
socket "/live", Phoenix.LiveView.Socket
socket "/socket", LedemoWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running ... | 27.326531 | 69 | 0.709485 |
0359140194bfdd4020a77433a3104d7602f9b15a | 3,998 | exs | Elixir | test/tracer_integration/plug/router_test.exs | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | 69 | 2018-09-14T18:17:50.000Z | 2022-01-11T01:20:55.000Z | test/tracer_integration/plug/router_test.exs | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | 49 | 2018-10-11T02:47:58.000Z | 2022-03-17T09:10:07.000Z | test/tracer_integration/plug/router_test.exs | prosapient/spandex_phoenix | 487a635f3334e9aa0a4c86c7abc656ac00a6acc8 | [
"MIT"
] | 27 | 2018-09-19T14:14:06.000Z | 2022-03-07T21:16:33.000Z | defmodule TracerWithPlugRouterTest do
use ExUnit.Case
import RouterHelper
defmodule Router do
use Plug.Router
use SpandexPhoenix
plug(:match)
plug(:dispatch)
get "/hello" do
send_resp(conn, 200, "world")
end
get "/hello/:name" do
send_resp(conn, 200, name)
end
... | 26.130719 | 96 | 0.551776 |
035936126de3c5adfc0f2a10a88be90a1c9e8c85 | 558 | exs | Elixir | test/views/error_view_test.exs | domix/xebex | e1c9e21245a1daf3c818ddd60433fdbc4d7611be | [
"Apache-2.0"
] | 1 | 2015-10-13T02:11:26.000Z | 2015-10-13T02:11:26.000Z | test/views/error_view_test.exs | domix/xebex | e1c9e21245a1daf3c818ddd60433fdbc4d7611be | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | domix/xebex | e1c9e21245a1daf3c818ddd60433fdbc4d7611be | [
"Apache-2.0"
] | null | null | null | defmodule Xebex.ErrorViewTest do
use Xebex.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Xebex.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
as... | 25.363636 | 66 | 0.670251 |
035936b67b66d14fac6be5853d565dfcd08f9512 | 605 | ex | Elixir | lib/sparql_client/query/result_format.ex | kianmeng/sparql_client | f754bb042e865f54bd2f7be276f241434df902b3 | [
"MIT"
] | 18 | 2018-03-19T22:51:00.000Z | 2020-05-17T12:51:03.000Z | lib/sparql_client/query/result_format.ex | kianmeng/sparql_client | f754bb042e865f54bd2f7be276f241434df902b3 | [
"MIT"
] | 3 | 2018-08-16T13:51:45.000Z | 2020-05-17T15:18:16.000Z | lib/sparql_client/query/result_format.ex | kianmeng/sparql_client | f754bb042e865f54bd2f7be276f241434df902b3 | [
"MIT"
] | 2 | 2018-08-16T13:27:31.000Z | 2020-05-01T11:13:37.000Z | defmodule SPARQL.Client.Query.ResultFormat do
@moduledoc false
def by_name(nil, _), do: nil
def by_name(name, query_form) when query_form in ~w[select ask]a,
do: SPARQL.result_format(name)
def by_name(name, query_form) when query_form in ~w[construct describe]a,
do: RDF.Serialization.format(name)
... | 33.611111 | 87 | 0.770248 |
035976cc7be3dcff8956e4d2911680960f5bc9b9 | 631 | ex | Elixir | text_client/lib/text_client/prompter.ex | codebay/game_comps | 1211fab75b2023f9afb32b7272c6f877aabb6f7e | [
"Apache-2.0"
] | null | null | null | text_client/lib/text_client/prompter.ex | codebay/game_comps | 1211fab75b2023f9afb32b7272c6f877aabb6f7e | [
"Apache-2.0"
] | null | null | null | text_client/lib/text_client/prompter.ex | codebay/game_comps | 1211fab75b2023f9afb32b7272c6f877aabb6f7e | [
"Apache-2.0"
] | null | null | null | defmodule TextClient.Prompter do
alias TextClient.State
def accept_move(game = %State{}) do
IO.gets("Your guess: ")
|> check_input(game)
end
defp check_input({:error, reason}, _) do
IO.puts("Game ended: #{reason}")
exit(:normal)
end
defp check_input(:eof, _) do
IO.puts("Looks like you... | 21.758621 | 56 | 0.605388 |
0359bf995b5e6c947a6e2f3216e86bfe97709366 | 5,790 | ex | Elixir | lib/elixir_sense/providers/suggestion.ex | msaraiva/elixir_sense | 15bf8a5d4ea55ced2d76e5f41620c769cf125c82 | [
"Unlicense",
"MIT"
] | 212 | 2017-03-29T09:08:08.000Z | 2022-01-26T13:35:40.000Z | lib/elixir_sense/providers/suggestion.ex | msaraiva/elixir_sense | 15bf8a5d4ea55ced2d76e5f41620c769cf125c82 | [
"Unlicense",
"MIT"
] | 37 | 2017-04-11T04:13:18.000Z | 2020-02-12T20:02:55.000Z | lib/elixir_sense/providers/suggestion.ex | msaraiva/elixir_sense | 15bf8a5d4ea55ced2d76e5f41620c769cf125c82 | [
"Unlicense",
"MIT"
] | 17 | 2017-04-11T17:46:15.000Z | 2021-05-31T09:10:18.000Z | defmodule ElixirSense.Providers.Suggestion do
@moduledoc """
Provider responsible for finding suggestions for auto-completing
"""
alias Alchemist.Helpers.Complete
alias ElixirSense.Core.Introspection
alias ElixirSense.Core.Source
@type fun_arity :: {atom, non_neg_integer}
@type scope :: module | fun_... | 30.797872 | 134 | 0.617444 |
0359cd2703d5bd73835da3b1f78addf303c23e5b | 1,751 | ex | Elixir | server/apps/boardr_api/lib/boardr_api/utils/view_helpers.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2021-04-08T17:26:27.000Z | 2021-04-08T17:26:27.000Z | server/apps/boardr_api/lib/boardr_api/utils/view_helpers.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | 1 | 2022-02-13T05:50:46.000Z | 2022-02-13T05:50:46.000Z | server/apps/boardr_api/lib/boardr_api/utils/view_helpers.ex | AlphaHydrae/boardr | 98eed02801f88c065a24bf13051c5cf96270a5f7 | [
"MIT"
] | null | null | null | defmodule BoardrApi.ViewHelpers do
alias BoardrApi.Endpoint, as: Endpoint
alias BoardrApi.Router.Helpers, as: Routes
import BoardrApi.HalDocument, only: [put_curie: 4, put_link: 4]
def api_document(properties \\ %{}) when is_map(properties) do
properties
|> put_curie(:boardr, "#{Routes.api_root_url(En... | 28.241935 | 97 | 0.63735 |
0359e3ca3343bb00c372dc4ff766bed8c6a93811 | 988 | ex | Elixir | test/support/channel_case.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | lucianosousa/gears | a59a93dd28ccd82e6cd1e3db809535a4dc10d007 | [
"MIT"
] | null | null | null | defmodule Gears.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 and query models.
Finally, if the test case interacts with the database,
it cannot be asy... | 22.454545 | 67 | 0.697368 |
0359f6f085756999eec959dab3ab77a8674b5836 | 902 | ex | Elixir | lib/dojo_sequance.ex | agnaldo4j/sequence_elixir_kata | 2aeee6a276161ff7360b9296cb90ec57bc51d9e4 | [
"MIT"
] | null | null | null | lib/dojo_sequance.ex | agnaldo4j/sequence_elixir_kata | 2aeee6a276161ff7360b9296cb90ec57bc51d9e4 | [
"MIT"
] | null | null | null | lib/dojo_sequance.ex | agnaldo4j/sequence_elixir_kata | 2aeee6a276161ff7360b9296cb90ec57bc51d9e4 | [
"MIT"
] | null | null | null | defmodule Sequence do
def computeSequence([head|tail]) do
tuple = %{:max => head, :min => head, :average => head, :length => 1}
computeSequence(tail, tuple)
end
def computeSequence([head|tail], accumulator) do
tuple = %{
:max => if (accumulator[:max] < head) do head else accumulator[:max] end,
:min => i... | 26.529412 | 76 | 0.670732 |
035a131dc8264c6d554f98555c41008dbe865dfa | 447 | ex | Elixir | lib/airline_api_aggregator/application.ex | SanketSapkal/airline_api_aggregator | fd4d5243c7ee936ab2fa07281ef1db6badec8d14 | [
"Apache-2.0"
] | null | null | null | lib/airline_api_aggregator/application.ex | SanketSapkal/airline_api_aggregator | fd4d5243c7ee936ab2fa07281ef1db6badec8d14 | [
"Apache-2.0"
] | null | null | null | lib/airline_api_aggregator/application.ex | SanketSapkal/airline_api_aggregator | fd4d5243c7ee936ab2fa07281ef1db6badec8d14 | [
"Apache-2.0"
] | null | null | null | defmodule AirlineAPIAggregator.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
Plug.Cowboy.child_spec(scheme: :http, plug: AirlineAPIAggregator.Router, options: [port: 4000]),
{AirlineAPIAggregator, []},
{AirlineAPIAggregator.RateLimiter, []}
]
... | 26.294118 | 102 | 0.713647 |
035a197ea87bdaf669fdf52aa438937a638259d9 | 1,592 | ex | Elixir | web/web.ex | appdojolabs/myapp | 41887a60f7ea86db3c70470631b703455c865042 | [
"MIT"
] | 41 | 2017-05-21T14:33:28.000Z | 2022-03-28T22:29:56.000Z | web/web.ex | DMeechan/deploy-elixir-docker-example | b63a46453629ced5134aba039575a3c010a6f2a1 | [
"MIT"
] | 2 | 2017-07-23T07:06:38.000Z | 2018-07-16T23:53:12.000Z | web/web.ex | appdojolabs/myapp | 41887a60f7ea86db3c70470631b703455c865042 | [
"MIT"
] | 16 | 2017-05-21T22:35:10.000Z | 2022-03-28T22:30:04.000Z | defmodule Myapp.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Myapp.Web, :controller
use Myapp.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and... | 19.414634 | 88 | 0.661432 |
035a2bfce6a3c4d614b8e1382fc96045222fe592 | 787 | ex | Elixir | lib/postgrex/extensions/point.ex | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/extensions/point.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/extensions/point.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.Extensions.Point do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "point_send"
def encode(_) do
quote location: :keep do
%Postgrex.Point{x: x, y: y} ->
<<16::int32, x::float64, y::float64>>
other ->
raise DBConn... | 25.387097 | 88 | 0.662008 |
035a33525f2439d955ae2c8f7a004bd16d2c9dfa | 1,793 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/web_server_config.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/web_server_config.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/web_server_config.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.480769 | 123 | 0.741774 |
035a39d0433dabeb10f4b22cb3159edc5dc434c1 | 238 | ex | Elixir | lib/cadet/env.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | null | null | null | lib/cadet/env.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | null | null | null | lib/cadet/env.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | null | null | null | defmodule Cadet.Env do
@moduledoc """
Cadet.Env just contains a function that returns the current environment
from the configuration.
"""
@spec env :: atom()
def env do
Application.get_env(:cadet, :environment)
end
end
| 19.833333 | 73 | 0.705882 |
035a4f7a028acc4fdb0c4aa413c5c64774adcc26 | 1,676 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_suggestion_feature.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_suggestion_feature.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_suggestion_feature.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... | 34.204082 | 189 | 0.754177 |
035a7c46615597e469e3ebecca854ccbe4fd6116 | 284 | ex | Elixir | phoenix/discuss/web/models/distributor.ex | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | 1 | 2021-04-13T06:48:57.000Z | 2021-04-13T06:48:57.000Z | phoenix/discuss/web/models/distributor.ex | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | null | null | null | phoenix/discuss/web/models/distributor.ex | pshaddel/turbo-Elixir | fb5fc900ad40c963f885b75d94f4fe360d69bcb8 | [
"MIT"
] | null | null | null | defmodule Discuss.Distributor do
use Discuss.Web, :model
schema "distributors" do
field(:name, :string)
belongs_to(:movie, Friends.Movie)
end
def changeset(struct, params \\ %{}) do
struct
|> cast(params, [:name])
|> validate_required([:name])
end
end
| 18.933333 | 41 | 0.651408 |
035ab65edc4dfadde2e2d835d4ea5d8b00392d68 | 234 | ex | Elixir | lib/discovery_api/quantum/scheduler.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | lib/discovery_api/quantum/scheduler.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | lib/discovery_api/quantum/scheduler.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApi.Quantum.Scheduler do
@moduledoc """
This modules defines a quantum scheduler which can be wired to run arbitrary functions
from within config.exs
"""
use Quantum.Scheduler, otp_app: :discovery_api
end
| 29.25 | 88 | 0.777778 |
035ab7c7d28004b07a485946802bd0a6cbca4559 | 254 | ex | Elixir | test/unit/fixtures/compiler/pruner/module_46.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/fixtures/compiler/pruner/module_46.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/fixtures/compiler/pruner/module_46.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Test.Fixtures.Compiler.Pruner.Module46 do
use Hologram.Component
alias Hologram.Test.Fixtures.Compiler.Pruner.Module47
def init(_props) do
Module47.test_fun_47a()
%{}
end
def template do
~H"""
"""
end
end
| 16.933333 | 60 | 0.700787 |
035ac05c17e5b62e253f2149de5434d1299f52ba | 10,602 | ex | Elixir | apps/evm/lib/evm/debugger/breakpoint.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/evm/lib/evm/debugger/breakpoint.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/evm/lib/evm/debugger/breakpoint.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule EVM.Debugger.Breakpoint do
@moduledoc """
Breakpoints allow us to break execution of a given
contract based on a set of conditions.
"""
@table __MODULE__
@type id :: integer()
@type conditions :: [
# only triggers when contract executes at given address
:address
]
... | 33.444795 | 131 | 0.649406 |
035ac7ed3d138e9e212a450f3168bc2a32b772c0 | 4,130 | ex | Elixir | lib/mpesa.ex | manuelgeek/mpesa_elixir | 24e17df6ef2f12cc514932ce4a6696bf348d310d | [
"MIT"
] | 4 | 2020-03-01T18:44:40.000Z | 2021-05-29T15:52:49.000Z | lib/mpesa.ex | manuelgeek/mpesa_elixir | 24e17df6ef2f12cc514932ce4a6696bf348d310d | [
"MIT"
] | null | null | null | lib/mpesa.ex | manuelgeek/mpesa_elixir | 24e17df6ef2f12cc514932ce4a6696bf348d310d | [
"MIT"
] | 1 | 2021-05-29T15:52:58.000Z | 2021-05-29T15:52:58.000Z | defmodule Mpesa do
@moduledoc """
Documentation for `Mpesa`.
"""
@doc false
def get_url do
if Application.get_env(:mpesa, :env) === "sandbox" do
"https://sandbox.safaricom.co.ke"
else
"https://api.safaricom.co.ke"
end
end
@doc false
def authorize do
url = get_url() <> "/oau... | 26.474359 | 97 | 0.643099 |
035acb00afecc200bd53a4e4133e1a0a3328aa6a | 4,935 | ex | Elixir | lib/cf_sync/rich_text.ex | 3h15/CFSync | 0b5024688bcb40786c8313e77385f935686d1bdd | [
"MIT"
] | null | null | null | lib/cf_sync/rich_text.ex | 3h15/CFSync | 0b5024688bcb40786c8313e77385f935686d1bdd | [
"MIT"
] | null | null | null | lib/cf_sync/rich_text.ex | 3h15/CFSync | 0b5024688bcb40786c8313e77385f935686d1bdd | [
"MIT"
] | null | null | null | defmodule CFSync.RichText do
@moduledoc """
RichText recursive struct
RichText in Contentful is implemented as a tree of nodes.
All nodes share a common structure and some of them have specific properties.
Here I chosed to represent all nodes with a single struct for simplicity.
"""
alias CFSync.Link
... | 31.634615 | 94 | 0.586626 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.