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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d6e4f77bb9b89a54e1f89528b6c0201008ef3e9 | 3,827 | ex | Elixir | lib/mix/tasks/packbeam.ex | bettio/ExAtomVM | 828dae6353b00c75a14627829f477efae1dd47fc | [
"Apache-2.0"
] | 4 | 2020-03-03T01:58:16.000Z | 2020-09-26T04:24:02.000Z | lib/mix/tasks/packbeam.ex | bettio/ExAtomVM | 828dae6353b00c75a14627829f477efae1dd47fc | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/packbeam.ex | bettio/ExAtomVM | 828dae6353b00c75a14627829f477efae1dd47fc | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Atomvm.Packbeam do
use Mix.Task
alias ExAtomVM.PackBEAM
alias Mix.Project
alias Mix.Tasks.Atomvm.Check
def run(args) do
with {:check, {:ok, _}} <- {:check, Check.run(args)},
config = Project.config(),
{:atomvm, {:ok, avm_config}} <- {:atomvm, Keyword.fetch(config, :a... | 28.559701 | 93 | 0.569637 |
1d6e5758389c27c40908d20f8b80fc9f13773997 | 1,530 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor_image.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor_image.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object_actor_image.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... | 31.875 | 102 | 0.750327 |
1d6e5a531b4038f68764b2bb0e774cf28a96b833 | 1,756 | exs | Elixir | test/lob/client_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | null | null | null | test/lob/client_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | null | null | null | test/lob/client_test.exs | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | null | null | null | defmodule Lob.ClientTest do
use ExUnit.Case
alias Lob.Client
alias Lob.Client.MissingAPIKeyError
alias Plug.Conn
setup do
bypass = Bypass.open
{:ok, bypass: bypass}
end
describe "api_key/1" do
test "raises MissingAPIKeyError if no API key is found" do
assert_raise(MissingAPIKeyError... | 23.413333 | 81 | 0.616743 |
1d6e5a7baca56373d3111b01bc231f37b17becd7 | 2,097 | exs | Elixir | config/prod.exs | NtwaliHeritier/elixir_rest_api | 9bfe2c6aee75ef27942d1ce4d48ff59b28f10683 | [
"MIT"
] | null | null | null | config/prod.exs | NtwaliHeritier/elixir_rest_api | 9bfe2c6aee75ef27942d1ce4d48ff59b28f10683 | [
"MIT"
] | null | null | null | config/prod.exs | NtwaliHeritier/elixir_rest_api | 9bfe2c6aee75ef27942d1ce4d48ff59b28f10683 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 37.446429 | 82 | 0.721984 |
1d6e7f1c723a19196e09a750564b88c85e275180 | 310 | exs | Elixir | apps/core/priv/prm_repo/migrations/20181115115847_add_contract_type.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20181115115847_add_contract_type.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20181115115847_add_contract_type.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.AddContractType do
use Ecto.Migration
def change do
alter table(:contracts) do
add(:type, :string, null: false, default: "CAPITATION")
add(:medical_program_id, :uuid)
end
execute("ALTER TABLE contracts ALTER COLUMN type DROP DEFAULT;")
end
end
| 23.846154 | 68 | 0.709677 |
1d6e96f604ca15d8b9245f51e627f48eff7bc634 | 71 | ex | Elixir | server/lib/events_app_web/views/layout_view.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/lib/events_app_web/views/layout_view.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/lib/events_app_web/views/layout_view.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | 1 | 2021-04-10T18:37:30.000Z | 2021-04-10T18:37:30.000Z | defmodule CompanyTestWeb.LayoutView do
use CompanyTestWeb, :view
end
| 17.75 | 38 | 0.830986 |
1d6ecc1b1a82d0a8082713426ca5637ea61d3a51 | 498 | ex | Elixir | lib/arp_server/api/jsonrpc2/server.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | 3 | 2018-07-23T01:50:50.000Z | 2018-08-13T13:12:05.000Z | lib/arp_server/api/jsonrpc2/server.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | lib/arp_server/api/jsonrpc2/server.ex | arpnetwork/arp_server | 4f3ed266ca68f7d6db5db6839067dd810079075a | [
"Apache-2.0"
] | null | null | null | defmodule ARP.API.JSONRPC2.Server do
@moduledoc false
use JSONRPC2.Server.Module
alias ARP.API.JSONRPC2.Protocol
alias ARP.{Account, Server}
def info do
Protocol.response(Server.info())
end
def bind_promise(spender) do
private_key = Account.private_key()
case Server.get_bind_promise(spend... | 19.92 | 60 | 0.688755 |
1d6ed8394274aeeb11d65e54348831eccb60a5d9 | 4,244 | exs | Elixir | test/typo_killer/files_test.exs | kianmeng/typo_killer | a3efa9af6c4895c32caf56787fdb7dfa2a84fb5b | [
"MIT"
] | 41 | 2019-11-29T17:57:13.000Z | 2020-12-08T05:40:25.000Z | test/typo_killer/files_test.exs | adolfont/typo_killer | 1336db19d38542f3d6599e4b265d4dd2d6510e82 | [
"MIT"
] | 24 | 2019-11-29T16:10:16.000Z | 2021-12-20T03:18:09.000Z | test/typo_killer/files_test.exs | adolfont/typo_killer | 1336db19d38542f3d6599e4b265d4dd2d6510e82 | [
"MIT"
] | 10 | 2019-12-02T09:04:07.000Z | 2020-11-28T14:45:26.000Z | defmodule TypoKiller.FilesTest do
use ExUnit.Case
@base_path "./test/tmp"
alias TypoKiller.Files
describe "find_files_on_folder/1" do
setup do
File.mkdir_p!(@base_path)
on_exit(fn ->
File.rm_rf!(@base_path)
end)
files = [
"potato/sample.txt",
"potato/doc.... | 25.721212 | 112 | 0.59213 |
1d6ede8765ae742f04cafcdde5cf5456727e863b | 1,398 | ex | Elixir | test/support/data_case.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | defmodule Ninescraft.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 t... | 25.888889 | 77 | 0.683119 |
1d6f03d9e6fdf15f9f84268a1f3db1af938eb7f9 | 2,132 | ex | Elixir | lib/goldie/components/authentication.ex | scatterbrain/goldie | db649f9555d453541d01d0707d86b41f41156640 | [
"MIT"
] | null | null | null | lib/goldie/components/authentication.ex | scatterbrain/goldie | db649f9555d453541d01d0707d86b41f41156640 | [
"MIT"
] | null | null | null | lib/goldie/components/authentication.ex | scatterbrain/goldie | db649f9555d453541d01d0707d86b41f41156640 | [
"MIT"
] | null | null | null | defmodule Goldie.Component.Authentication do
use Goldie.Component
alias Goldie.Event
require Logger
@spec setup(Goldie.Player) :: {:ok, Goldie.Player}
def setup(%Goldie.Player { :entity => entity } = state) do
entity = Map.merge(entity, %{
id: nil,
pid: self()
})
{:ok, %Goldie.Pla... | 31.820896 | 118 | 0.626642 |
1d6f43f5d45e61321ee0e181d87afc4b5564b715 | 111 | ex | Elixir | gitlab_bot/lib/gitlab_bot/repo.ex | ray1888/elixir-gitlab-bot | 70fcc5adde9e6bf1189988e2a4d0517f60e26950 | [
"MIT"
] | null | null | null | gitlab_bot/lib/gitlab_bot/repo.ex | ray1888/elixir-gitlab-bot | 70fcc5adde9e6bf1189988e2a4d0517f60e26950 | [
"MIT"
] | null | null | null | gitlab_bot/lib/gitlab_bot/repo.ex | ray1888/elixir-gitlab-bot | 70fcc5adde9e6bf1189988e2a4d0517f60e26950 | [
"MIT"
] | null | null | null | defmodule GitlabBot.Repo do
use Ecto.Repo,
otp_app: :gitlab_bot,
adapter: Ecto.Adapters.Postgres
end
| 18.5 | 35 | 0.738739 |
1d6f441a88b2bc170d1e971b5c684fb2689ab6f6 | 1,058 | ex | Elixir | lib/microscope.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 342 | 2017-01-10T16:13:45.000Z | 2022-02-26T13:55:38.000Z | lib/microscope.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 6 | 2017-01-14T17:59:48.000Z | 2018-03-25T21:35:50.000Z | lib/microscope.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 38 | 2017-01-11T00:18:21.000Z | 2021-07-11T11:28:12.000Z | defmodule Microscope do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto reposito... | 33.0625 | 88 | 0.718336 |
1d6f64dd7ac32479deea09cc5ac2b282cb186bd5 | 7,693 | ex | Elixir | lib/ex_unit/lib/ex_unit/formatter.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Formatter do
@moduledoc """
This module holds helper functions related to formatting and contains
documentation about the formatting protocol.
Formatters are registered at the `ExUnit.EventManager` event manager and
will be send events by the runner.
The following events are possible:
... | 31.272358 | 104 | 0.66736 |
1d6f84e4ae8e7e186270aab05bae1e921f013957 | 3,982 | exs | Elixir | test/acceptance/html1/links_images/img_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html1/links_images/img_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html1/links_images/img_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Html1.LinkImages.ImgTest do
use ExUnit.Case, async: true
import Support.Html1Helpers
@moduletag :html1
describe "Image reference definitions" do
test "img with title" do
markdown = "[foo]: /url \"title\"\n\n![foo]\n"
html = "<p>\n <img src=\"/url\" alt=\"foo\" title=\... | 27.846154 | 98 | 0.519337 |
1d6f9ff45dcb4673fe5cd686674ad8ae87f7b386 | 1,091 | ex | Elixir | lib/dagger.ex | zblanco/dagger | cd6aaf399cf6976199146d11d20826a3062453fc | [
"MIT"
] | 11 | 2020-07-10T17:14:37.000Z | 2022-01-24T05:34:29.000Z | lib/dagger.ex | zblanco/dagger | cd6aaf399cf6976199146d11d20826a3062453fc | [
"MIT"
] | null | null | null | lib/dagger.ex | zblanco/dagger | cd6aaf399cf6976199146d11d20826a3062453fc | [
"MIT"
] | 1 | 2020-07-11T15:16:15.000Z | 2020-07-11T15:16:15.000Z | defmodule Dagger do
@moduledoc """
Dagger is a tool for building and operating run-time modifiable pipelines of steps.
A `Step` is a composable recipe calculations and its dependent operations.
Dependent operations are just more steps.
When a Step is ran it is assigned a run_id and dispatched to the `Runne... | 33.060606 | 135 | 0.741522 |
1d6fa6e3d8e55af38f25a12a2a5cad35fa0c37df | 1,451 | ex | Elixir | lib/doim_adapter/services/token_generator.ex | UrbanOS-Examples/doim_adapter | f40e993d0f9b3a15bc244d5453d9d1ed60b7eccc | [
"Apache-2.0"
] | null | null | null | lib/doim_adapter/services/token_generator.ex | UrbanOS-Examples/doim_adapter | f40e993d0f9b3a15bc244d5453d9d1ed60b7eccc | [
"Apache-2.0"
] | null | null | null | lib/doim_adapter/services/token_generator.ex | UrbanOS-Examples/doim_adapter | f40e993d0f9b3a15bc244d5453d9d1ed60b7eccc | [
"Apache-2.0"
] | null | null | null | defmodule DoimAdapter.TokenGenerator do
@moduledoc """
Generates a token by sending stored username and password to esri's generateToken endpoint.
"""
@generate_token_headers ["Content-Type": "application/x-www-form-urlencoded"]
require Logger
def generate_token() do
with {:ok, %{"username" => usernam... | 29.612245 | 93 | 0.679531 |
1d6fc3019e6e3523bfaddc290bf117d8bd24238a | 2,399 | ex | Elixir | lib/psso_web/router.ex | daskycodes/better_psso | 01954d9a84667ff22a4e5dc70856c2023f5e1276 | [
"MIT"
] | null | null | null | lib/psso_web/router.ex | daskycodes/better_psso | 01954d9a84667ff22a4e5dc70856c2023f5e1276 | [
"MIT"
] | null | null | null | lib/psso_web/router.ex | daskycodes/better_psso | 01954d9a84667ff22a4e5dc70856c2023f5e1276 | [
"MIT"
] | null | null | null | defmodule PssoWeb.Router do
use PssoWeb, :router
import PssoWeb.UserAuth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {PssoWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :fetch_... | 28.223529 | 87 | 0.680283 |
1d6fc732295824e203ad0d0e7ceef0967fd3709f | 1,812 | ex | Elixir | lib/comet/cache.ex | DockYard/comet | 1cfd5ea9cafcd9837eec26485af0f9bdae836610 | [
"MIT"
] | null | null | null | lib/comet/cache.ex | DockYard/comet | 1cfd5ea9cafcd9837eec26485af0f9bdae836610 | [
"MIT"
] | null | null | null | lib/comet/cache.ex | DockYard/comet | 1cfd5ea9cafcd9837eec26485af0f9bdae836610 | [
"MIT"
] | null | null | null | defmodule Comet.Cache do
require Comet.CacheWorker
@moduledoc """
Generic `:ets` based cache
This cache will work off of the request path being the unique path to retrieve against.
You can use the `get/1`, `insert/2`, `expire/1`, `expire_all/0` functions.
## Using your own custom cache
If you decide to ... | 22.65 | 117 | 0.631347 |
1d701066a4b2a55f3a9f5e410cfcb1469b3bda01 | 963 | ex | Elixir | testData/org/elixir_lang/parser_definition/anonymous_function_parsing_test_case/FnExpressionEnd.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/anonymous_function_parsing_test_case/FnExpressionEnd.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/anonymous_function_parsing_test_case/FnExpressionEnd.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | fn () end
fn function positional, key: value end
fn &one end
fn one \\ default end
fn one when key: value end
fn one when guard end
fn one :: type end
fn one | two end
fn one = two end
fn one or two end
fn one || two end
fn one and two end
fn one && two end
fn one != two end
fn one < two end
fn one + two end
fn one * t... | 18.169811 | 45 | 0.681205 |
1d7011231913fac2dad65705af801810c246b8f0 | 662 | ex | Elixir | lib/microsoft_graph_api/email/beta/model/list_messages_response.ex | wethanet/microsoft-graph-api | 5830eef0e631b2330bdc070fcd2359363a44b598 | [
"MIT"
] | null | null | null | lib/microsoft_graph_api/email/beta/model/list_messages_response.ex | wethanet/microsoft-graph-api | 5830eef0e631b2330bdc070fcd2359363a44b598 | [
"MIT"
] | null | null | null | lib/microsoft_graph_api/email/beta/model/list_messages_response.ex | wethanet/microsoft-graph-api | 5830eef0e631b2330bdc070fcd2359363a44b598 | [
"MIT"
] | null | null | null | defmodule MicrosoftGraphApi.Email.Beta.Model.ListMessagesResponse do
use GoogleApi.Gax.ModelBase
field(:value, as: MicrosoftGraphApi.Email.Beta.Model.Message, type: :list)
field(String.to_atom("@odata.context"))
field(String.to_atom("@odata.nextLink"))
end
defimpl Poison.Decoder, for: MicrosoftGraphApi.Email.... | 33.1 | 87 | 0.794562 |
1d702d97e1f701d46cbd9d00d15af03b7c6747cf | 683 | exs | Elixir | backend/test/getaways_web/schema/mutation/signup_test.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/test/getaways_web/schema/mutation/signup_test.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/test/getaways_web/schema/mutation/signup_test.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule GetawaysWeb.Schema.Mutation.SignupTest do
use GetawaysWeb.ConnCase, async: true
@query """
mutation signup($username: String!, $email: String!, $password: String!) {
signup(username: $username, email: $email, password: $password) {
user {
username
}
}
}
"""
test "signi... | 21.34375 | 76 | 0.560761 |
1d704910ab31644f78315e3b7504277e19dc3962 | 68,764 | ex | Elixir | lib/elixir/lib/module.ex | vnegrisolo/elixir | 986bd300724aef4035a4ca11795c46b88817509b | [
"Apache-2.0"
] | 1 | 2020-09-24T12:37:29.000Z | 2020-09-24T12:37:29.000Z | lib/elixir/lib/module.ex | vnegrisolo/elixir | 986bd300724aef4035a4ca11795c46b88817509b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module.ex | vnegrisolo/elixir | 986bd300724aef4035a4ca11795c46b88817509b | [
"Apache-2.0"
] | null | null | null | defmodule Module do
@moduledoc ~S'''
Provides functions to deal with modules during compilation time.
It allows a developer to dynamically add, delete and register
attributes, attach documentation and so forth.
After a module is compiled, using many of the functions in
this module will raise errors, since... | 32.298732 | 113 | 0.662978 |
1d709965b03efd5c37b1379126b201fb012fbef9 | 971 | ex | Elixir | lib/changelog_web/views/admin/news_item_view.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog_web/views/admin/news_item_view.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog_web/views/admin/news_item_view.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.NewsItemView do
use ChangelogWeb, :admin_view
alias Changelog.{NewsItem, NewsSource, Person, Topic}
alias ChangelogWeb.{Endpoint, PersonView, NewsItemView}
alias ChangelogWeb.Admin.NewsSponsorshipView
def bookmarklet_code do
url = Routes.admin_news_item_url(Endpoint, :new, q... | 30.34375 | 76 | 0.720906 |
1d70a11c604d72455815d38602d3db4deaf371b6 | 5,471 | ex | Elixir | apps/admin_api/lib/admin_api/v1/controllers/token_controller.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/controllers/token_controller.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/controllers/token_controller.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.TokenController do
@moduledoc """
The controller to serve token endpoints.
"""
use AdminAPI, :controller
import AdminAPI.V1.ErrorHandler
alias EWallet.{MintGate, Helper, TokenPolicy}
alias EWallet.Web.{SearchParser, SortParser, Paginator}
alias EWalletDB.{Account, Token, Mint}
#... | 28.794737 | 94 | 0.636264 |
1d70c6e7aa2239771a0dc5e297cb7d232790678a | 658 | exs | Elixir | priv/repo/migrations/20160826011942_create_cuisine.exs | ZURASTA/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 1 | 2017-06-15T11:20:27.000Z | 2017-06-15T11:20:27.000Z | priv/repo/migrations/20160826011942_create_cuisine.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | null | null | null | priv/repo/migrations/20160826011942_create_cuisine.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 2 | 2017-07-25T10:16:19.000Z | 2017-08-02T06:54:22.000Z | defmodule Bonbon.Repo.Migrations.CreateCuisine do
use Ecto.Migration
import Translecto.Migration
def change do
create table(:cuisine_name_translations, primary_key: false) do
translation
add :term, :string,
null: false#,
# comment: "The local... | 23.5 | 71 | 0.574468 |
1d70e8d615ed192c408b6a6695f98f2e4654da54 | 6,323 | exs | Elixir | test/eds/mesh_test.exs | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | test/eds/mesh_test.exs | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | test/eds/mesh_test.exs | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | defmodule EDS.MeshTests do
use EDS.DataCase, async: false
alias EDS.{
Fixtures.Remote,
Repo,
Utils.Mesh
}
@expected_expr [
{26, [_a@1: 10]},
{27, [_b@1: 10, _a@1: 10]},
{28, [_c@1: 100, _b@1: 10, _a@1: 10]},
{29, [_c@1: 100, _b@1: 10, _a@1: 10]}
]
setup do
{:ok, _pid} = st... | 29.546729 | 108 | 0.651431 |
1d7133340eecf77f3c5a6eb23382a962e2d97434 | 4,320 | exs | Elixir | apps/omg_watcher_rpc/test/omg_watcher_rpc/web/validators/typed_data_signed_test.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/test/omg_watcher_rpc/web/validators/typed_data_signed_test.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/test/omg_watcher_rpc/web/validators/typed_data_signed_test.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 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 writi... | 36.923077 | 118 | 0.654398 |
1d715020c5d1757c971e18e07bb3cb8183b7cbe3 | 1,927 | exs | Elixir | clients/dlp/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/dlp/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/dlp/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.761194 | 221 | 0.660093 |
1d716a6a32ce27d60294c8333c3028dbc477703a | 3,853 | ex | Elixir | lib/koans/12_pattern_matching.ex | Tomyail/elixir-koans | c68cf3e7f6081f0c146be7c02fac8445ea8f9318 | [
"MIT"
] | null | null | null | lib/koans/12_pattern_matching.ex | Tomyail/elixir-koans | c68cf3e7f6081f0c146be7c02fac8445ea8f9318 | [
"MIT"
] | null | null | null | lib/koans/12_pattern_matching.ex | Tomyail/elixir-koans | c68cf3e7f6081f0c146be7c02fac8445ea8f9318 | [
"MIT"
] | null | null | null | defmodule PatternMatching do
use Koans
@intro "PatternMatching"
koan "One matches one" do
assert match?(1, 1)
end
koan "Patterns can be used to pull things apart" do
[head | tail] = [1, 2, 3, 4]
assert head == 1
assert tail == [2,3,4]
end
koan "And then put them back together" do
... | 22.532164 | 101 | 0.592006 |
1d718c29b97b1833646b731ec6b20dfea981e21a | 2,966 | exs | Elixir | apps/snitch_core/test/data/model/stock/stock_movement_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/test/data/model/stock/stock_movement_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/test/data/model/stock/stock_movement_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Model.StockMovementTest do
@moduledoc false
use ExUnit.Case, async: true
use Snitch.DataCase
import Snitch.Factory
alias Snitch.Data.Model.StockMovement, as: StockMovementModel
setup do
[stock_item: insert(:stock_item)]
end
describe "create/4" do
test "Fails for INVALID ... | 38.519481 | 98 | 0.739042 |
1d71ecd0f533a91875f48cf3c41516b891b34a42 | 12,265 | exs | Elixir | test/api/workflows_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/api/workflows_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/api/workflows_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.Api.WorkflowsTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
alias StepFlow.Repo
alias StepFlow.Router
alias StepFlow.WorkflowDefinitions.WorkflowDefinition
alias StepFlow.Workflows
doctest StepFlow
@opts Router.init([])
setup do
# Explicitly get a con... | 27.5 | 96 | 0.536894 |
1d71eef69dfd7fe63e6592e107683671a87412a3 | 1,973 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/table_cell_location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/table_cell_location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/table_cell_location.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.226415 | 159 | 0.718702 |
1d72003f0be1497e00c44c2940c5477bc775b32b | 605 | ex | Elixir | lib/opensource_challenge_web/views/changeset_view.ex | topaxi/opensource-challenge-api | 27e5da9c5162a8f0f4533f9f7f14ca1d145bac31 | [
"MIT"
] | 3 | 2016-11-29T10:58:11.000Z | 2020-04-29T12:17:23.000Z | lib/opensource_challenge_web/views/changeset_view.ex | topaxi/opensource-challenge-api | 27e5da9c5162a8f0f4533f9f7f14ca1d145bac31 | [
"MIT"
] | 50 | 2016-12-04T15:02:31.000Z | 2021-07-23T04:21:55.000Z | lib/opensource_challenge_web/views/changeset_view.ex | topaxi/opensource-challenge-api | 27e5da9c5162a8f0f4533f9f7f14ca1d145bac31 | [
"MIT"
] | 5 | 2019-11-24T11:17:39.000Z | 2020-04-29T12:19:36.000Z | defmodule OpensourceChallengeWeb.ChangesetView do
use OpensourceChallengeWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`OpensourceChallengeWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Chan... | 31.842105 | 75 | 0.765289 |
1d720d19bf7434702df8338aa450573abf87990e | 821 | exs | Elixir | mix.exs | sanmiguel/rest_service | a256ef996f7b42adffb95f5c0969cb7512c01e18 | [
"MIT"
] | 4 | 2016-02-27T16:41:30.000Z | 2017-10-26T12:34:42.000Z | mix.exs | sanmiguel/rest_service | a256ef996f7b42adffb95f5c0969cb7512c01e18 | [
"MIT"
] | null | null | null | mix.exs | sanmiguel/rest_service | a256ef996f7b42adffb95f5c0969cb7512c01e18 | [
"MIT"
] | null | null | null | defmodule RestService.Mixfile do
use Mix.Project
def project do
[ app: :rest_service,
version: "0.0.1",
elixir: "~> 0.15",
deps: deps ]
end
# Configuration for the OTP application
def application do
[ registered: [
:rest_service_sup,
:rest_service_store_sup,
... | 25.65625 | 77 | 0.607795 |
1d72219ccb29a52f44520fdd468b0be973297612 | 564 | exs | Elixir | mix.exs | wingyplus/th_stat_covid19 | d114653d98336e0f342dc4f566ed47b30c25f299 | [
"MIT"
] | null | null | null | mix.exs | wingyplus/th_stat_covid19 | d114653d98336e0f342dc4f566ed47b30c25f299 | [
"MIT"
] | null | null | null | mix.exs | wingyplus/th_stat_covid19 | d114653d98336e0f342dc4f566ed47b30c25f299 | [
"MIT"
] | null | null | null | defmodule ThStat.Covid19.MixProject do
use Mix.Project
def project do
[
app: :th_stat_covid19,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[... | 18.193548 | 59 | 0.533688 |
1d723fa137cb806b1fbdca7415b9f62fff734cac | 809 | ex | Elixir | lib/adyen_checkout_ex/model/pay_u_upi_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/pay_u_upi_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/pay_u_upi_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.PayUUpiDetails do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"recurringDetailReference",
:"sho... | 23.794118 | 91 | 0.68974 |
1d7254842f7f550f70b4570893396bfe1e1f9b0a | 937 | ex | Elixir | debian/postrm.ex | xmake-io/xmake-package-debian-sv | 1bc8bde1feaf2a3c1571f5d086db8da557874b4a | [
"Unlicense"
] | 1 | 2022-01-26T03:38:37.000Z | 2022-01-26T03:38:37.000Z | debian/postrm.ex | xmake-io/xmake-package-debian-sv | 1bc8bde1feaf2a3c1571f5d086db8da557874b4a | [
"Unlicense"
] | null | null | null | debian/postrm.ex | xmake-io/xmake-package-debian-sv | 1bc8bde1feaf2a3c1571f5d086db8da557874b4a | [
"Unlicense"
] | null | null | null | #!/bin/sh
# postrm script for xmake-core-sv
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-instal... | 24.657895 | 78 | 0.628602 |
1d7269a0291197ba68b4c54fb65534d7a1838462 | 29,703 | ex | Elixir | lib/phoenix/router.ex | bruteforcecat/phoenix | af45212f3142a20342031e0eab0a330a314c23cc | [
"MIT"
] | null | null | null | lib/phoenix/router.ex | bruteforcecat/phoenix | af45212f3142a20342031e0eab0a330a314c23cc | [
"MIT"
] | null | null | null | lib/phoenix/router.ex | bruteforcecat/phoenix | af45212f3142a20342031e0eab0a330a314c23cc | [
"MIT"
] | null | null | null | defmodule Phoenix.Router do
defmodule NoRouteError do
@moduledoc """
Exception raised when no route is found.
"""
defexception plug_status: 404, message: "no route found", conn: nil, router: nil
def exception(opts) do
conn = Keyword.fetch!(opts, :conn)
router = Keyword.fetch!(opts, ... | 30.433402 | 100 | 0.632461 |
1d7275f210dd97100604696bb0d4414d37fcd689 | 123 | ex | Elixir | lib/dobble_generator/repo.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 4 | 2020-04-11T23:00:13.000Z | 2022-02-07T14:51:18.000Z | lib/dobble_generator/repo.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 2 | 2021-03-10T13:32:34.000Z | 2021-05-11T09:27:10.000Z | lib/dobble_generator/repo.ex | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | null | null | null | defmodule DobbleGenerator.Repo do
use Ecto.Repo,
otp_app: :dobble_generator,
adapter: Ecto.Adapters.Postgres
end
| 20.5 | 35 | 0.764228 |
1d72ad373c8df66b41b47cd229894bd40067deb1 | 10,480 | exs | Elixir | projects/api/test/margaret/follows/follows_test.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/test/margaret/follows/follows_test.exs | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/test/margaret/follows/follows_test.exs | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule Margaret.FollowsTest do
use Margaret.DataCase
describe "insert_follow/1" do
test "inserts a follow when the followee is a user and the attributes are valid" do
[%User{id: follower_id}, %User{id: user_id}] = Factory.insert_pair(:user)
attrs = %{follower_id: follower_id, user_id: user_id}
... | 34.933333 | 95 | 0.678149 |
1d736d157e5aba39b43ddefc1d3db493a918d7ee | 1,412 | exs | Elixir | bowling_game/test/iteration_02/bowling_game/day10_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/test/iteration_02/bowling_game/day10_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | bowling_game/test/iteration_02/bowling_game/day10_test.exs | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule BowlingGame.Day10Test do
use ExUnit.Case, async: true
alias BowlingGame.Day10, as: BowlingGame
setup do: {:ok, game: BowlingGame.new_game()}
test "gutter game", %{game: game},
do: assert game
|> roll_many(20, 0)
|> BowlingGame.score() == 0
test "all one... | 26.641509 | 62 | 0.482295 |
1d7377728e46bca7a9bffb47909dff8b0a62b3f7 | 2,033 | exs | Elixir | config/config.exs | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 11 | 2020-01-30T17:44:35.000Z | 2022-01-13T19:17:21.000Z | config/config.exs | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 100 | 2020-02-11T10:01:35.000Z | 2022-02-17T10:39:35.000Z | config/config.exs | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 7 | 2020-01-30T11:33:20.000Z | 2021-05-03T09:48:41.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 35.666667 | 98 | 0.773242 |
1d7397e0ea2071cb26ca7c05ad303b104f1bb898 | 1,337 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/98.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/98.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/98.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb verb_aux noun SYM verb_aux;
nst verb noun cm cm;
cm noun noun cm adjective;
SYM verb noun cm cm;
noun verb verb_aux SYM verb_aux;
nst verb noun cm adjective;
adjective verb noun cm cm;
noun verb noun cardinal cm;
cm verb noun cm adjective;
pnoun verb noun noun cm;
noun verb noun adject... | 30.386364 | 41 | 0.780105 |
1d73982a51d65223889d105f44d78730f05f5e45 | 893 | ex | Elixir | lib/bejo/route_store.ex | fossabot/bejo | 7d25d68ef97bd77b7d53fc9a9546261fdc99bfba | [
"Apache-2.0"
] | null | null | null | lib/bejo/route_store.ex | fossabot/bejo | 7d25d68ef97bd77b7d53fc9a9546261fdc99bfba | [
"Apache-2.0"
] | null | null | null | lib/bejo/route_store.ex | fossabot/bejo | 7d25d68ef97bd77b7d53fc9a9546261fdc99bfba | [
"Apache-2.0"
] | null | null | null | defmodule Bejo.RouteStore do
use Agent
require Logger
def start_link(_) do
Agent.start_link(fn -> load_routes() end, name: __MODULE__)
end
def get_route(method, path) do
Agent.get(__MODULE__, fn routes ->
routes["#{method}:#{path}"]
end)
end
def load_routes do
Bejo.Code.load_file... | 19.413043 | 83 | 0.62486 |
1d7405e885d2bbc6e44a9ba24f2565a0d3860a13 | 390 | ex | Elixir | lib/phoenix_trello/guardian_serializer.ex | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 2,784 | 2016-01-06T03:16:07.000Z | 2022-03-14T03:52:20.000Z | lib/phoenix_trello/guardian_serializer.ex | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 49 | 2016-01-07T11:48:10.000Z | 2020-04-27T16:10:12.000Z | lib/phoenix_trello/guardian_serializer.ex | gridgentoo/ElixirTrelloKanban | 11b91d9d864d2e332a94838d43c7a9b1015e17c6 | [
"MIT"
] | 586 | 2016-01-11T17:02:13.000Z | 2021-12-01T10:54:47.000Z | defmodule PhoenixTrello.GuardianSerializer do
@behaviour Guardian.Serializer
alias PhoenixTrello.{Repo, User}
def for_token(user = %User{}), do: { :ok, "User:#{user.id}" }
def for_token(_), do: { :error, "Unknown resource type" }
def from_token("User:" <> id), do: { :ok, Repo.get(User, String.to_integer(id... | 32.5 | 83 | 0.674359 |
1d74080021937e78b8f2aebe9636c0fc9a228bf9 | 647 | ex | Elixir | lib/wasabi_ex/experiment.ex | goodhamgupta/wasabi_ex | 77e5e955aaf6be8cd1e1357cf681c6dc58afc258 | [
"Apache-2.0"
] | null | null | null | lib/wasabi_ex/experiment.ex | goodhamgupta/wasabi_ex | 77e5e955aaf6be8cd1e1357cf681c6dc58afc258 | [
"Apache-2.0"
] | null | null | null | lib/wasabi_ex/experiment.ex | goodhamgupta/wasabi_ex | 77e5e955aaf6be8cd1e1357cf681c6dc58afc258 | [
"Apache-2.0"
] | null | null | null | defmodule WasabiEx.Experiment do
@moduledoc """
Module to interact with the experiments API.
"""
@experiments_url "experiments"
alias WasabiEx.{Client, Helper}
alias WasabiEx.Experiments.Payload
@doc """
API to create the experiment in Wasabi.
"""
def create(%Payload{} = payload, %Client{} = cli... | 22.310345 | 80 | 0.641422 |
1d7433c243997baed46db4943c39cae0a93b8aa6 | 568 | ex | Elixir | web/emails/comment_email.ex | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | web/emails/comment_email.ex | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | 30 | 2016-08-21T18:33:11.000Z | 2020-04-12T23:16:18.000Z | web/emails/comment_email.ex | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | defmodule Scripture.CommentEmail do
use Phoenix.Swoosh, view: Scripture.EmailView, layout: {Scripture.LayoutView, :email}
import Scripture.UserView, only: [full_name: 1]
def notify_admin_new_comment(admin, user, article, comment) do
new()
|> to({full_name(admin), admin.email})
|> from({"Anna und Phi... | 31.555556 | 87 | 0.669014 |
1d743b80b9979690bb52b8c76f9aa5ef14663732 | 4,822 | ex | Elixir | deps/phoenix/lib/phoenix/digester.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | 1 | 2019-06-11T20:22:21.000Z | 2019-06-11T20:22:21.000Z | deps/phoenix/lib/phoenix/digester.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/digester.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | defmodule Phoenix.Digester do
@digested_file_regex ~r/(-[a-fA-F\d]{32})/
@moduledoc """
Digests and compress static files.
For each file under the given input path, Phoenix will generate a digest
and also compress in `.gz` format. The filename and its digest will be
used to generate the manifest file. It ... | 31.51634 | 103 | 0.662796 |
1d745f8c6574426bbad62956d9cbde5fb4b7a0ab | 396 | exs | Elixir | priv/repo/migrations/20210101030030_create_accounts.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210101030030_create_accounts.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210101030030_create_accounts.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | defmodule Shelving.Repo.Migrations.CreateAccounts do
use Ecto.Migration
def change do
create table(:accounts) do
add :name, :string, null: false
add :slug, :string
add :archived_at, :naive_datetime
timestamps()
end
create index(:accounts, [:archived_at])
create unique_inde... | 22 | 52 | 0.674242 |
1d74ad8ff4dd2bf461c5a9220cbe5944e758332b | 1,814 | ex | Elixir | web/controllers/api/list_controller.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | 1 | 2017-07-20T17:41:13.000Z | 2017-07-20T17:41:13.000Z | web/controllers/api/list_controller.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | web/controllers/api/list_controller.ex | robot-overlord/todo-example | 2877bf3dc94e857a576fdc922c040c6af2f68ec0 | [
"MIT"
] | null | null | null | defmodule Todo.API.ListController do
alias Todo.List
use Todo.Web, :controller
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
def index(conn, _params) do
lists =
List
|> Repo.all()
|> Repo.preload([:users, :items])
render(conn, "index.json", lists: lists)
end
@spec user_list... | 23.25641 | 57 | 0.554024 |
1d74d99808bdb39baddf9b9b841407217c5d99d9 | 1,108 | exs | Elixir | config/config.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 8 | 2019-09-26T13:59:25.000Z | 2020-03-30T21:26:48.000Z | config/config.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 39 | 2019-11-16T02:24:28.000Z | 2020-01-14T16:40:28.000Z | config/config.exs | tometoproject/tometo | ed91069b11a020723edb9a143de29d9bac86a2b0 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 2 | 2019-12-16T07:55:14.000Z | 2020-06-11T04:14:00.000Z | use Mix.Config
# Main configuration for Aph
config :aph,
ecto_repos: [Aph.Repo],
cookie_secret: "9RGqJxYrnc3eoQHrDBBdZsSCMytNFWqgsvD572DfPcm2uH+ycGFye8ulrwaFi+zp"
# Internal configuration, you probably don't need to edit this unless you want to
# change the port the application uses, or something like that
config... | 34.625 | 89 | 0.758123 |
1d750dd89ef486a282bd188556835ee666209191 | 2,196 | ex | Elixir | elixir/lib/homework/companies.ex | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies.ex | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies.ex | swalcoff/web-homework | 8aa2aa4c0158a2df9149daf00ba15cdf36a66b73 | [
"MIT"
] | null | null | null | defmodule Homework.Companies do
@moduledoc """
The Companies context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Companies.Company
@doc """
Returns the list of companies.
## Examples
iex> list_companies([])
[%Company{}, ...]
"""
def list_companies(_args... | 18.769231 | 71 | 0.604281 |
1d7517e57e9ed29859e0292dc6ab86f2b970ac02 | 1,081 | ex | Elixir | lib/elixtagram/parser.ex | Zensavona/elixtagram | 248682e23ac416c59d37e964e0a29afda625ece3 | [
"MIT"
] | 84 | 2015-10-02T08:17:54.000Z | 2021-01-25T10:44:00.000Z | lib/elixtagram/parser.ex | Zensavona/elixtagram | 248682e23ac416c59d37e964e0a29afda625ece3 | [
"MIT"
] | 24 | 2015-10-29T14:53:25.000Z | 2019-06-06T19:12:50.000Z | lib/elixtagram/parser.ex | Zensavona/elixtagram | 248682e23ac416c59d37e964e0a29afda625ece3 | [
"MIT"
] | 22 | 2015-11-15T04:06:52.000Z | 2020-11-15T18:41:26.000Z | defmodule Elixtagram.Parser do
def parse_tag(object) do
struct(Elixtagram.Model.Tag, object)
end
def parse_media(object) do
struct(Elixtagram.Model.Media, object)
end
def parse_location(object) do
struct(Elixtagram.Model.Location, object)
end
def parse_user(object) do
struct(Elixtagram... | 22.061224 | 119 | 0.686401 |
1d752be68e09aa2d02af87f959bb246b77709308 | 705 | ex | Elixir | blank/lib/blank_web/gettext.ex | unozerocode/turbo-journey | 55c54e4b10bb1e49a1f999fd0eb03acdd35fef98 | [
"MIT"
] | null | null | null | blank/lib/blank_web/gettext.ex | unozerocode/turbo-journey | 55c54e4b10bb1e49a1f999fd0eb03acdd35fef98 | [
"MIT"
] | 2 | 2021-03-10T20:40:33.000Z | 2021-05-11T16:13:21.000Z | blank/lib/blank_web/gettext.ex | unozerocode/turbo-journey | 55c54e4b10bb1e49a1f999fd0eb03acdd35fef98 | [
"MIT"
] | null | null | null | defmodule BlankWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import BlankWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
1d75343b0e287f8bfc5b9362c613e113d82e490b | 17,812 | ex | Elixir | clients/iam/lib/google_api/iam/v1/api/organizations.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/api/organizations.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/api/organizations.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... | 48.271003 | 448 | 0.665113 |
1d75589466381ab017822bcf8be73c1322390b59 | 760 | ex | Elixir | lib/tesla/adapter/shared.ex | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2021-08-18T06:48:51.000Z | 2021-08-18T06:48:51.000Z | lib/tesla/adapter/shared.ex | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | null | null | null | lib/tesla/adapter/shared.ex | brenomaia/tesla | c1e0f2d031eb87a207db33333b8d4afc58384e87 | [
"MIT"
] | 1 | 2020-05-25T10:18:54.000Z | 2020-05-25T10:18:54.000Z | defmodule Tesla.Adapter.Shared do
@moduledoc false
def stream_to_fun(stream) do
reductor = fn item, _acc -> {:suspend, item} end
{_, _, fun} = Enumerable.reduce(stream, {:suspend, nil}, reductor)
fun
end
def next_chunk(fun), do: parse_chunk(fun.({:cont, nil}))
defp parse_chunk({:suspended, ite... | 30.4 | 70 | 0.648684 |
1d7570c5d057dba69d098cd05397c1106f7a2db1 | 1,878 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_token_policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_token_policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_zone_token_policy.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... | 34.145455 | 138 | 0.72311 |
1d758273175f4051fc0cf67193469c4804a25810 | 9,003 | exs | Elixir | test/oidc/id_token_test.exs | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | null | null | null | test/oidc/id_token_test.exs | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | 5 | 2020-05-30T14:09:52.000Z | 2022-03-09T17:12:47.000Z | test/oidc/id_token_test.exs | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | 3 | 2021-09-03T07:58:07.000Z | 2021-09-21T12:27:29.000Z | defmodule OIDC.IDTokenTest do
use ExUnit.Case
alias OIDC.IDToken
setup_all do
[client: client_conf(), op: op_metadata()]
end
test "valid signed ID token is verified", %{client: client, op: op} do
verification_data = %{
issuer: op["issuer"],
client_id: client["client_id"],
server_m... | 29.518033 | 523 | 0.64734 |
1d7590052ed304b3c5f590235555c92ce73235ef | 19,399 | exs | Elixir | test/oli_web/controllers/delivery_controller_test.exs | argos-education/oli-torus | cff73a277f80c8071217a074d9d8b650a9c068e5 | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | test/oli_web/controllers/delivery_controller_test.exs | argos-education/oli-torus | cff73a277f80c8071217a074d9d8b650a9c068e5 | [
"MIT"
] | 1 | 2022-03-25T13:46:08.000Z | 2022-03-25T16:06:44.000Z | test/oli_web/controllers/delivery_controller_test.exs | marc-hughes/oli-torus-1 | aa3c9bb2d91b678a365be839761eaf86c60ee35c | [
"MIT"
] | null | null | null | defmodule OliWeb.DeliveryControllerTest do
use OliWeb.ConnCase
alias Oli.Accounts
alias OliWeb.Common.LtiSession
alias Oli.Publishing
alias Oli.Seeder
alias Lti_1p3.Tool.ContextRoles
alias Oli.Delivery.Sections
import Oli.Factory
describe "delivery_controller index" do
setup [:setup_lti_session... | 35.335155 | 151 | 0.646992 |
1d75a30a9012b4304b494c3c9b61403ede55b0ad | 19,620 | exs | Elixir | lib/mix/test/mix/umbrella_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/test/mix/umbrella_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/mix/test/mix/umbrella_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.UmbrellaTest do
use MixTest.Case
test "apps_paths" do
in_fixture("umbrella_dep/deps/umbrella", fn ->
assert Mix.Project.apps_paths() == nil
Mix.Project.in_project(:umbrella, ".", fn _ ->
assert Mix.Project.apps_paths() == %{ba... | 32.269737 | 97 | 0.579103 |
1d75af50261a5bf0b387d333c9cafcab705b03f5 | 734 | ex | Elixir | lib/sms_with_phoenix_web/gettext.ex | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | 2 | 2019-02-26T17:33:21.000Z | 2019-04-06T21:04:32.000Z | lib/sms_with_phoenix_web/gettext.ex | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | null | null | null | lib/sms_with_phoenix_web/gettext.ex | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | null | null | null | defmodule SmsWithPhoenixWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import SmsWithPhoenixWeb.Gettext
# Simple translation
gett... | 29.36 | 72 | 0.688011 |
1d75cde1074e91dbc497f921010f6d6b525c327a | 1,196 | ex | Elixir | test/typespecs/typespecs_tests.ex | miros/exc_error | c4f7da518025f7fbe74f5a6a896e845aaf11f4cd | [
"Apache-2.0"
] | 8 | 2020-03-25T10:05:40.000Z | 2021-11-20T10:56:17.000Z | test/typespecs/typespecs_tests.ex | miros/exc_error | c4f7da518025f7fbe74f5a6a896e845aaf11f4cd | [
"Apache-2.0"
] | 2 | 2019-08-23T11:21:47.000Z | 2020-12-22T10:46:59.000Z | test/typespecs/typespecs_tests.ex | miros/exc_error | c4f7da518025f7fbe74f5a6a896e845aaf11f4cd | [
"Apache-2.0"
] | null | null | null | defmodule TypespecsTests do
require ExcError
ExcError.define(ErrorWithoutCustomFields)
@type error_without_custom_fields :: ErrorWithoutCustomFields.t()
ExcError.define(ErrorWithCustomFields, [:custom_field])
@type error_with_custom_fields :: ErrorWithCustomFields.t()
ExcError.define ErrorWithCustomType,... | 23.45098 | 89 | 0.714047 |
1d7618259a87530f4389ba9dc17835b8873f0d4e | 2,344 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/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.226415 | 427 | 0.721416 |
1d763d7a1f51a1206dc850f0e8e33cb4aa66dc5e | 1,673 | exs | Elixir | mix.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | mix.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | mix.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | defmodule Gexbot.Mixfile do
use Mix.Project
def project do
[
app: :gexbot,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: de... | 26.140625 | 79 | 0.572026 |
1d764b06736e0804881228a2780249e1250145e4 | 1,092 | exs | Elixir | test/workers/clean_email_verification_codes_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | test/workers/clean_email_verification_codes_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | test/workers/clean_email_verification_codes_test.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Workers.CleanEmailVerificationCodesTest do
use Plausible.DataCase
alias Plausible.Workers.CleanEmailVerificationCodes
defp issue_code(user, issued_at) do
code =
Repo.one(
from(c in "email_verification_codes", where: is_nil(c.user_id), select: c.code, limit: 1)
)
R... | 31.2 | 97 | 0.696886 |
1d76ac9691b38a59794116403bdcc898b9419d42 | 575 | ex | Elixir | lib/ex_twilio/resources/member.ex | techgaun/ex_twilio | b22f5421c4c709232b5ef53191cc19d5ffb5c99c | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/member.ex | techgaun/ex_twilio | b22f5421c4c709232b5ef53191cc19d5ffb5c99c | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/member.ex | techgaun/ex_twilio | b22f5421c4c709232b5ef53191cc19d5ffb5c99c | [
"MIT"
] | null | null | null | defmodule ExTwilio.Member do
@moduledoc """
Represents an Member resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/api/rest/members)
## Examples
Since Members are members of a Queue in the Twilio API, you must pass a Queue
SID into each function in this module.
ExTwilio.Membe... | 23.958333 | 79 | 0.66087 |
1d76ae346a0b666bde9744bd7d9dd4868e3e2f0e | 11,960 | ex | Elixir | apps/state/lib/state/stops_on_route.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/state/lib/state/stops_on_route.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/state/lib/state/stops_on_route.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | defmodule State.StopsOnRoute do
@moduledoc """
Maintains an ETS-based cache of the stops (in order) for a route.
## Data
The lists of stops are stored as tuples:
{route_id, direction_id, shape_id, service_id, alternate?, stop_id_list}
- shape_id is either a shape ID binary, or :all for a set of stop... | 30.43257 | 106 | 0.673746 |
1d76bc0c78d0572f5837a8fe6f13d3b5568bc031 | 356 | exs | Elixir | priv/repo/seeds.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | # 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:
#
# Pasteboard.Repo.insert!(%Pasteboard.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they... | 29.666667 | 61 | 0.710674 |
1d76cfff1fb864263c9dac187fadb3828186b702 | 260 | exs | Elixir | apps/demarest_mays/config/test.exs | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | apps/demarest_mays/config/test.exs | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | apps/demarest_mays/config/test.exs | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :demarest_mays, DemarestMays.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "demarest_mays_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
| 23.636364 | 41 | 0.753846 |
1d77064d021a0a11fcc8746e4ffce1dc066681a5 | 1,060 | ex | Elixir | lib/siwapp_web/resolvers/customer.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/resolvers/customer.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/resolvers/customer.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | defmodule SiwappWeb.Resolvers.Customer do
@moduledoc false
alias Siwapp.Customers
alias SiwappWeb.Resolvers.Errors
alias SiwappWeb.Resolvers.Helpers
@spec list(map(), Absinthe.Resolution.t()) :: {:ok, [Customers.Customer.t()]}
def list(%{limit: limit, offset: offset}, _resolution) do
{:ok, Customers.l... | 28.648649 | 97 | 0.65566 |
1d7707b45a2f5d1d1db5ad4a9570268d010caa27 | 975 | exs | Elixir | config/dev.exs | itaym2/gittp | ca00e8b37e403cb8b66f89df86a3a777ae1736bd | [
"MIT"
] | 2 | 2017-07-02T17:46:51.000Z | 2017-07-13T12:11:04.000Z | config/dev.exs | Soluto/gittp | ca00e8b37e403cb8b66f89df86a3a777ae1736bd | [
"MIT"
] | 13 | 2017-05-23T07:53:54.000Z | 2017-10-30T13:40:43.000Z | config/dev.exs | itaym2/gittp | ca00e8b37e403cb8b66f89df86a3a777ae1736bd | [
"MIT"
] | 1 | 2017-07-11T15:10:16.000Z | 2017-07-11T15:10:16.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 :gittp, Gittp.Endpoint,
http: [port: 4000],
... | 28.676471 | 68 | 0.700513 |
1d770cc510063ca21153cf70df549442c7131289 | 1,251 | exs | Elixir | 11/solution.exs | jochumb/aoc2015 | 4348372a79966bc4d6324d0874e018e6fe3c26df | [
"MIT"
] | null | null | null | 11/solution.exs | jochumb/aoc2015 | 4348372a79966bc4d6324d0874e018e6fe3c26df | [
"MIT"
] | null | null | null | 11/solution.exs | jochumb/aoc2015 | 4348372a79966bc4d6324d0874e018e6fe3c26df | [
"MIT"
] | null | null | null | defmodule PasswordWrap do
def increment_password(password) do
new_pass = password
|> String.to_charlist
|> Enum.reverse
|> increment_charlist
|> Enum.reverse
|> to_string
if (is_valid_password?(new_pass)) do
new_pass
else
increment_password(new_pass)
end
... | 25.02 | 80 | 0.634692 |
1d770dcc6b2abacb95e8000c8e5977cde968e687 | 2,234 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_list_recommendations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_list_recommendations_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_list_recommendations_response.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... | 34.369231 | 197 | 0.7453 |
1d772558d7b6932e11e081520b824bec23ccf2d1 | 5,240 | exs | Elixir | test/caldav_client/event_test.exs | duderman/elixir-caldav-client | eaee70c890d382d0ee15b5750098e9b4763cb8ae | [
"Apache-2.0"
] | 33 | 2021-02-08T17:53:23.000Z | 2022-03-08T11:16:47.000Z | test/caldav_client/event_test.exs | duderman/elixir-caldav-client | eaee70c890d382d0ee15b5750098e9b4763cb8ae | [
"Apache-2.0"
] | 7 | 2021-02-12T13:54:49.000Z | 2022-03-07T10:50:08.000Z | test/caldav_client/event_test.exs | duderman/elixir-caldav-client | eaee70c890d382d0ee15b5750098e9b4763cb8ae | [
"Apache-2.0"
] | 3 | 2021-03-29T22:36:57.000Z | 2022-02-23T10:29:56.000Z | defmodule CalDAVClient.EventTest do
use ExUnit.Case
@moduletag :integration
@server_url Application.get_env(:caldav_client, :test_server)[:server_url]
@auth Application.get_env(:caldav_client, :test_server)[:auth]
@username Application.get_env(:caldav_client, :test_server)[:username]
@password Application... | 31.190476 | 97 | 0.670611 |
1d776808986d176452064833c14d09e98a339edf | 374 | exs | Elixir | prag-programing/Part2/MultipleProcesses/link2.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | 1 | 2017-03-29T04:10:50.000Z | 2017-03-29T04:10:50.000Z | prag-programing/Part2/MultipleProcesses/link2.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | prag-programing/Part2/MultipleProcesses/link2.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | defmodule Link2 do
import :timer, only: [sleep: 1]
def sad_function do
sleep 500
exit(:boom)
end
def run do
spawn_link(Link2, :sad_function, []) # interesting part
receive do
msg ->
IO.puts "MESSAGE RECEIVED: #{inspect msg}"
after 1000 ->
IO.puts "Nothing happened ... | 19.684211 | 59 | 0.620321 |
1d7777436fe3ac321a72bd2e1340f9658d236360 | 488 | ex | Elixir | lib/speakers/nif_audio.ex | razagill/speakers | 4ec19b17ed82695cee22098ec6916bd3d25c7836 | [
"MIT"
] | 3 | 2019-10-19T13:13:48.000Z | 2020-04-06T08:34:48.000Z | lib/speakers/nif_audio.ex | razagill/speakers | 4ec19b17ed82695cee22098ec6916bd3d25c7836 | [
"MIT"
] | 1 | 2019-10-19T18:27:40.000Z | 2019-10-21T11:37:07.000Z | lib/speakers/nif_audio.ex | razagill/speakers | 4ec19b17ed82695cee22098ec6916bd3d25c7836 | [
"MIT"
] | 1 | 2019-10-19T17:44:17.000Z | 2019-10-19T17:44:17.000Z | defmodule Speakers.NifAudio do
@moduledoc false
use Rustler, otp_app: :speakers, crate: :speakers_nifaudio
def add_to_queue(_file_path), do: :erlang.nif_error(:nif_not_loaded)
def pause(), do: :erlang.nif_error(:nif_not_loaded)
def resume(), do: :erlang.nif_error(:nif_not_loaded)
def get_queue_len(), do: ... | 37.538462 | 70 | 0.762295 |
1d77b4e67945aa5b8186d7490c0b602952336306 | 1,691 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/job_scheduling.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/job_scheduling.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/job_scheduling.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... | 36.76087 | 329 | 0.767002 |
1d77c085816e4a693c98a52dd5c277fc79d9d3a4 | 515 | exs | Elixir | elixir/stalin.exs | astroC86/stalin-sort | 932f24efb218fdde07baa561ba5fe515ba2e2cff | [
"MIT"
] | 1,140 | 2018-10-30T13:03:09.000Z | 2022-03-29T22:41:24.000Z | elixir/stalin.exs | astroC86/stalin-sort | 932f24efb218fdde07baa561ba5fe515ba2e2cff | [
"MIT"
] | 77 | 2018-10-30T13:20:15.000Z | 2021-11-06T03:44:55.000Z | elixir/stalin.exs | astroC86/stalin-sort | 932f24efb218fdde07baa561ba5fe515ba2e2cff | [
"MIT"
] | 245 | 2018-10-30T13:10:53.000Z | 2022-03-14T08:13:56.000Z | # “The tallest blade of grass is the first to be cut by the scythe.” - Russian proverb
# run in terminal `mix run stalin.exs --no-mix-exs`
defmodule Stalin do
def sort(list, lowest \\ 0) do
{result, _} =
Enum.reduce(list, {[], lowest}, fn(num, {acc, lowest}) ->
if num >= lowest, do: {acc ++ [num],... | 27.105263 | 91 | 0.605825 |
1d77fb76eb05205a40a2dcc4c6b6f14aedc66251 | 2,459 | exs | Elixir | test/application/users_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/application/users_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/application/users_test.exs | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | defmodule Elidactyl.Application.UsersTest do
use ExUnit.Case, async: false
use Elidactyl.RequestCase
alias Elidactyl.MockedServer
alias Elidactyl.Application.Users
alias Elidactyl.Schemas.User
setup do
%{attributes: user1} = MockedServer.put(:user)
%{attributes: user2} = MockedServer.put(:user)
... | 26.728261 | 68 | 0.604311 |
1d78011b6912d4ee3190f9842c4d081de094e3eb | 1,553 | ex | Elixir | api/lib/contracts_web/views/error_helpers.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2020-08-17T21:31:04.000Z | 2020-08-17T21:31:04.000Z | api/lib/contracts_web/views/error_helpers.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | null | null | null | api/lib/contracts_web/views/error_helpers.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2021-03-21T16:17:29.000Z | 2021-03-21T16:17:29.000Z | defmodule ContractsWeb.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_ta... | 32.354167 | 78 | 0.666452 |
1d7839a544d6c0be2f8a577ff6b9b49d4e014f2e | 4,848 | ex | Elixir | lib/ex_queb.ex | iwarshak/ex_queb | 3aab53ac21cb9b9292614abadfaeb96c10e1f74b | [
"MIT"
] | null | null | null | lib/ex_queb.ex | iwarshak/ex_queb | 3aab53ac21cb9b9292614abadfaeb96c10e1f74b | [
"MIT"
] | null | null | null | lib/ex_queb.ex | iwarshak/ex_queb | 3aab53ac21cb9b9292614abadfaeb96c10e1f74b | [
"MIT"
] | null | null | null | defmodule ExQueb do
@moduledoc """
Build Ecto filter Queries.
"""
import Ecto.Query
@doc """
Create the filter
Uses the :q query parameter to build the filter.
"""
def filter(query, params) do
q = params[Application.get_env(:ex_queb, :filter_param, :q)]
if q do
filters = Map.to_list(q)... | 30.683544 | 93 | 0.624175 |
1d785d46e0673f959164829c32d038ef99851784 | 1,691 | ex | Elixir | lib/space_raiders_web.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | lib/space_raiders_web.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | lib/space_raiders_web.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | defmodule SpaceRaidersWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use SpaceRaidersWeb, :controller
use SpaceRaidersWeb, :view
The definitions below will be executed for every view,... | 24.157143 | 83 | 0.700177 |
1d786d464140697cddeb81e429dc23fa23bc2e32 | 2,025 | ex | Elixir | lib/data/character.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/character.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/character.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Character do
@moduledoc """
A user's character
Should be used instead of their character as often as possible
"""
use Data.Schema
alias Data.Class
alias Data.QuestProgress
alias Data.Race
alias Data.Save
alias Data.User
schema "characters" do
field(:type, :string, virtual: t... | 22.5 | 81 | 0.624691 |
1d787017b7c2f505979077fa91bf31b588c1ca8f | 85 | ex | Elixir | lib/balalaika_bear/auth.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | lib/balalaika_bear/auth.ex | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | lib/balalaika_bear/auth.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.Auth do
use BalalaikaBear.Macro.API, namespace: "auth"
end
| 21.25 | 48 | 0.8 |
1d7875040a0764d03387695276366a2f9b05cd00 | 1,924 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/tier_rate.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/tier_rate.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/tier_rate.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... | 36.301887 | 118 | 0.733888 |
1d787a82bee227b2f31fa294763b89c5780dbbcf | 2,805 | exs | Elixir | test/event_bus/services/notification_test.exs | jutonz/event_bus | e62700f3c5c8e4319a720728ded47ad96bbd2837 | [
"MIT"
] | null | null | null | test/event_bus/services/notification_test.exs | jutonz/event_bus | e62700f3c5c8e4319a720728ded47ad96bbd2837 | [
"MIT"
] | null | null | null | test/event_bus/services/notification_test.exs | jutonz/event_bus | e62700f3c5c8e4319a720728ded47ad96bbd2837 | [
"MIT"
] | null | null | null | defmodule EventBus.Service.NotificationTest do
use ExUnit.Case, async: false
import ExUnit.CaptureLog
alias EventBus.Model.Event
alias EventBus.Service.Notification
alias EventBus.Support.Helper.{
AnotherBadOne,
AnotherCalculator,
BadOne,
Calculator,
InputLogger,
MemoryLeakerOne
}... | 27.23301 | 211 | 0.63066 |
1d78891bf66d377f64b4bce39aa70bb0eb128af3 | 303 | exs | Elixir | config/test.exs | chaitanyapandit/ecto_identifier | ca04e649064e1c2aa6b05d616031802636a9e18a | [
"Apache-2.0"
] | null | null | null | config/test.exs | chaitanyapandit/ecto_identifier | ca04e649064e1c2aa6b05d616031802636a9e18a | [
"Apache-2.0"
] | null | null | null | config/test.exs | chaitanyapandit/ecto_identifier | ca04e649064e1c2aa6b05d616031802636a9e18a | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :ecto_identifier, EctoIdentifier.TestRepo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "ecto_identifier",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
config :ecto_identifier, ecto_repos: [EctoIdentifier.TestRepo]
| 25.25 | 62 | 0.768977 |
1d78991bc027dde89ebced776de030e0685eea31 | 3,985 | ex | Elixir | lib/rig_api/v2/responses.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/rig_api/v2/responses.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/rig_api/v2/responses.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigApi.V2.Responses do
@moduledoc "Controller for submitting (backend) responses to asynchronous (frontend) requests."
require Logger
use RigApi, :controller
use PhoenixSwagger
alias Rig.Connection.Codec
alias RigCloudEvents.CloudEvent
@prefix "/v2"
action_fallback(RigApi.Fallback)
swag... | 33.771186 | 97 | 0.595232 |
1d78a8936ca60da77e7cc36f514aefc35687f4c3 | 61 | ex | Elixir | web/views/organization_view.ex | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | web/views/organization_view.ex | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | web/views/organization_view.ex | blindingnoises/tikt | eca3ff1f641ce94b84f870c141f46e977f35b670 | [
"BSD-3-Clause"
] | null | null | null | defmodule Tikt.OrganizationView do
use Tikt.Web, :view
end
| 15.25 | 34 | 0.786885 |
1d78dd8267923bae897c224614caa53a2ee4429f | 687 | ex | Elixir | lib/cachex/application.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | lib/cachex/application.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | lib/cachex/application.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Application do
@moduledoc """
Application callback to start any global services.
This will start all needed services for Cachex using the `Cachex.Services`
module, rather than hardcoding any logic into this binding module.
"""
use Application
@doc """
Starts the global services tree f... | 29.869565 | 76 | 0.732169 |
1d78f1704bc1d25d7692ae704687fc13fdb961af | 4,254 | ex | Elixir | lib/stripe/subscriptions/subscription_item.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_item.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_item.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.SubscriptionItem do
@moduledoc """
Work with Stripe subscription item objects.
Stripe API reference: https://stripe.com/docs/api#subscription_items
"""
use Stripe.Entity
import Stripe.Request
@type t :: %__MODULE__{
id: Stripe.id(),
object: String.t(),
bil... | 31.051095 | 98 | 0.558768 |
1d78f672cc9c822fc1272454bc379502e05f4610 | 165 | exs | Elixir | test/codi/doc/doctest1_test.exs | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | test/codi/doc/doctest1_test.exs | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | test/codi/doc/doctest1_test.exs | ianrumford/plymio_codi | 1163b139df0ed344e63597e563637c091ffe1f5e | [
"MIT"
] | null | null | null | defmodule PlymioCodiPatternDocDoctest1Test do
use ExUnit.Case, async: false
use PlymioCodiHelperTest
import Plymio.Codi
doctest Plymio.Codi.Pattern.Doc
end
| 20.625 | 45 | 0.818182 |
1d78f6b15e0c6c155205e5bd3d6bb0e4e39ea2d7 | 211 | ex | Elixir | lib/rule_parser/delegation_op.ex | ArcBlock/rule-parser | 16fd6869d7dff82e2f6f844a2582e53a35a1a12f | [
"MIT"
] | 2 | 2019-12-08T16:57:33.000Z | 2022-03-03T12:11:57.000Z | lib/rule_parser/delegation_op.ex | ArcBlock/rule-parser | 16fd6869d7dff82e2f6f844a2582e53a35a1a12f | [
"MIT"
] | null | null | null | lib/rule_parser/delegation_op.ex | ArcBlock/rule-parser | 16fd6869d7dff82e2f6f844a2582e53a35a1a12f | [
"MIT"
] | null | null | null | defmodule RuleParser.DelegationOp do
@moduledoc """
parse delegation expression
"""
require RuleParser.Gen
import NimbleParsec
import RuleParser.Helper
RuleParser.Gen.create(["itx", "state"])
end
| 19.181818 | 41 | 0.744076 |
1d7907868a82dcc3b579aee8a444c41da2dbcdbf | 2,017 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_text_input.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_text_input.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_text_input.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.54902 | 343 | 0.759048 |
1d7923156dd641f8b0a466e1f4e2928b2bdab176 | 528 | ex | Elixir | lib/tds/result.ex | ArKeD17/tds | cc81d97d6676bbb7f571661e0bf78e4a80390d60 | [
"Apache-2.0"
] | null | null | null | lib/tds/result.ex | ArKeD17/tds | cc81d97d6676bbb7f571661e0bf78e4a80390d60 | [
"Apache-2.0"
] | null | null | null | lib/tds/result.ex | ArKeD17/tds | cc81d97d6676bbb7f571661e0bf78e4a80390d60 | [
"Apache-2.0"
] | null | null | null | defmodule Tds.Result do
@moduledoc """
Result struct returned from any successful query. Its fields are:
* `columns` - The column names;
* `rows` - The result set. A list of tuples, each tuple corresponding to a
row, each element in the tuple corresponds to a column;
* `num_rows` - The n... | 29.333333 | 78 | 0.642045 |
1d795f5ca74f6e91c07419922840745f2ee01bac | 1,908 | ex | Elixir | clients/eventarc/lib/google_api/eventarc/v1/model/google_longrunning_list_operations_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/eventarc/lib/google_api/eventarc/v1/model/google_longrunning_list_operations_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/eventarc/lib/google_api/eventarc/v1/model/google_longrunning_list_operations_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.16 | 184 | 0.753669 |
1d79660c13a7bb416fef3aadd74fbdb68552fa5e | 1,637 | exs | Elixir | mix.exs | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | mix.exs | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | mix.exs | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | defmodule Welp.Mixfile do
use Mix.Project
def project do
[
app: :welp,
version: "0.0.1",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: ... | 25.984127 | 79 | 0.57361 |
1d796619dfbdff72a252a4745257124e6f91a820 | 922 | ex | Elixir | lib/madari_web/live/home_live.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/live/home_live.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/live/home_live.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | defmodule MadariWeb.HomeLive do
use Phoenix.LiveView
alias Phoenix.LiveView.JS
alias Madari.Api.Sysinfo
import Madari.Bulma
def mount(_params, _session, socket) do
if connected?(socket), do: Sysinfo.subscribe()
{:ok, socket |> assign(%{
sysinfo: Sysinfo.state(),
button_text: "Click Me",
... | 20.488889 | 55 | 0.591106 |
1d797de0216993c349a70dfd85d327ffb97fa83f | 2,647 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/model/device.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/device.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/device.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... | 48.127273 | 688 | 0.749528 |
1d79c04adddefb14704955617564c79bf991f68f | 864 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180613095008_rename_entry_uuid_to_local_ledger_transaction_uuid.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180613095008_rename_entry_uuid_to_local_ledger_transaction_uuid.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180613095008_rename_entry_uuid_to_local_ledger_transaction_uuid.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.230769 | 82 | 0.766204 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.