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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21e74033bcbe31a2153b4f2ad2ae3521ec379211 | 237 | ex | Elixir | arrow-functions-odd/lib/only_odd.ex | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | arrow-functions-odd/lib/only_odd.ex | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | arrow-functions-odd/lib/only_odd.ex | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | defmodule OnlyOdd do
import Integer, only: [is_odd: 1]
# Time to test your basic knowledge in functions! Return the odds from a list:
# odds([1,2,3,4,5]) #=> [1,3,5]
def odds(nums) do
Enum.filter(nums, &is_odd/1)
end
end
| 21.545455 | 80 | 0.654008 |
21e742723d52a3eaf391c76130188deae9e589f3 | 51 | exs | Elixir | test/vim_compiler_test.exs | RobertDober/vim_compiler | 7bb4f4b26a62d12cb0433279275fadee9abda617 | [
"Apache-2.0"
] | null | null | null | test/vim_compiler_test.exs | RobertDober/vim_compiler | 7bb4f4b26a62d12cb0433279275fadee9abda617 | [
"Apache-2.0"
] | null | null | null | test/vim_compiler_test.exs | RobertDober/vim_compiler | 7bb4f4b26a62d12cb0433279275fadee9abda617 | [
"Apache-2.0"
] | null | null | null | defmodule VimCompilerTest do
use ExUnit.Case
end
| 12.75 | 28 | 0.823529 |
21e75ddb63ba51bfe9b4518d1f522eb8d60011eb | 729 | exs | Elixir | priv/repo/migrations/029_create_email_template.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | priv/repo/migrations/029_create_email_template.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | priv/repo/migrations/029_create_email_template.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Repo.Migrations.CreateEmailTemplate do
use Ecto.Migration
def change do
create table(:email_templates, primary_key: false) do
add :id, :binary_id, primary_key: true
add :account_id, references(:accounts, type: :binary_id, on_delete: :delete_all), null: false
add :system_labe... | 27 | 99 | 0.651578 |
21e7675619df085dafe3e7b451b0a34033335ccf | 159 | exs | Elixir | test/fixtures/parser/create_index_concurrently.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 23 | 2021-10-29T19:58:35.000Z | 2021-11-13T21:42:45.000Z | test/fixtures/parser/create_index_concurrently.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 1 | 2022-02-07T12:15:16.000Z | 2022-02-07T12:15:16.000Z | test/fixtures/parser/create_index_concurrently.exs | surgeventures/strong_migrations | 3c82e34a6e7a372c6de17ba7a0b07da7664baa26 | [
"MIT"
] | 3 | 2021-10-31T02:14:10.000Z | 2021-11-09T08:07:22.000Z | defmodule CreateIndexConcurrently do
@moduledoc false
use Ecto.Migration
def change do
create(index(:users, :email, concurrently: true))
end
end
| 15.9 | 53 | 0.742138 |
21e7759ab06d9f350f30a5000978ae89d576a2d2 | 1,561 | ex | Elixir | lib/exsemantica_web/views/error_helpers.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | null | null | null | lib/exsemantica_web/views/error_helpers.ex | ExSemantica/exsemantica | c2d72513195f44b6b5f73c8cc07394de0a1fd273 | [
"Apache-2.0"
] | 2 | 2020-07-21T20:53:13.000Z | 2020-07-21T20:54:15.000Z | lib/exsemantica_web/views/error_helpers.ex | Chlorophytus/eactivitypub | 469346b4d5cd7ad2b575c245ac50fd71b00c4864 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaWeb.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_... | 32.520833 | 80 | 0.668161 |
21e7790949e9a71706a0ab1fd9613b8bdc517f3f | 3,248 | ex | Elixir | lib/norm/core/spec.ex | gesta/norm | 33395025db1b2750d86a361ad7bb60c94b9c4196 | [
"MIT"
] | 1 | 2021-03-02T21:05:36.000Z | 2021-03-02T21:05:36.000Z | lib/norm/core/spec.ex | gesta/norm | 33395025db1b2750d86a361ad7bb60c94b9c4196 | [
"MIT"
] | null | null | null | lib/norm/core/spec.ex | gesta/norm | 33395025db1b2750d86a361ad7bb60c94b9c4196 | [
"MIT"
] | 1 | 2021-03-02T10:49:33.000Z | 2021-03-02T10:49:33.000Z | defmodule Norm.Core.Spec do
@moduledoc false
# Provides a struct to encapsulate specs
alias __MODULE__
alias Norm.Core.Spec.{
And,
Or
}
defstruct predicate: nil, generator: nil, f: nil
def build({:or, _, [left, right]}) do
l = build(left)
r = build(right)
quote do
%Or{left: ... | 22.4 | 73 | 0.577278 |
21e797ecb6c2623ab010e87f8161e50b971fa991 | 519 | ex | Elixir | lib/web/views/time_view.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/web/views/time_view.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/web/views/time_view.ex | random-mud-pie/grapevine | 40688da3413e5216df5ee19ad6f7272932d49e23 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.TimeView do
@moduledoc """
Time helper functions
"""
def time(time) do
timezone = Timex.Timezone.get("America/New_York", Timex.now())
time
|> Timex.Timezone.convert(timezone)
|> Timex.format!("%Y-%m-%d %I:%M %p", :strftime)
end
def relative(time) do
Timex.format!(time, "... | 19.961538 | 66 | 0.620424 |
21e7e6c9364a4009f893495bc1f9d19af96092f7 | 72 | exs | Elixir | test/test_helper.exs | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/test_helper.exs | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | test/test_helper.exs | no0x9d/chankins | b4fd37d3145a001e4ebbe86eea91742d5a812858 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Chankins.Repo, :manual)
| 14.4 | 54 | 0.763889 |
21e7e97677d20299fbb97afb2ca1a818b41eeca0 | 2,139 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/placement_strategy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/placement_strategy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/placement_strategy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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... | 37.526316 | 200 | 0.728845 |
21e85aac3ca2e09fef06d70e8db57b74ef4bff4a | 689 | ex | Elixir | lib/grizzly/trace/record_queue.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/trace/record_queue.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/trace/record_queue.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.Trace.RecordQueue do
@moduledoc false
alias Grizzly.Trace.Record
@opaque t() :: :queue.queue(Record.t())
@doc """
Create a new `RecordQueue.t()`
"""
@spec new() :: t()
def new() do
:queue.new()
end
@doc """
Add a record to the queue
"""
@spec add_record(t(), Record.t(... | 18.621622 | 45 | 0.587808 |
21e8aa006493051adbb8dcce5f1c91a7cc7d4e1a | 1,648 | ex | Elixir | apps/badger_data/lib/badger_data/schema/downstream.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | apps/badger_data/lib/badger_data/schema/downstream.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | 9 | 2021-03-09T20:25:18.000Z | 2021-05-27T12:58:03.000Z | apps/badger_data/lib/badger_data/schema/downstream.ex | andyl/badger | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | defmodule BadgerData.Schema.Downstream do
@moduledoc """
Downstream DataModel.
"""
use Ecto.Schema
import Ecto.Changeset
alias BadgerData.Schema.Downstream.Influx
alias BadgerData.Schema.Downstream.Nats
schema "downstreams" do
field(:name, :string)
field(:type, :string)
field(:config, :map)... | 23.884058 | 108 | 0.661408 |
21e8bccc273b7eb442e2ef8de6c18abdd9ba0cd4 | 1,676 | ex | Elixir | lib/tipalti/api/soap/client.ex | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 8 | 2018-04-26T21:40:07.000Z | 2019-08-14T10:55:53.000Z | lib/tipalti/api/soap/client.ex | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 198 | 2018-04-26T21:53:20.000Z | 2022-03-23T15:20:11.000Z | lib/tipalti/api/soap/client.ex | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 1 | 2018-11-09T03:10:36.000Z | 2018-11-09T03:10:36.000Z | defmodule Tipalti.API.SOAP.Client do
@moduledoc false
use Tesla
import Tipalti.Config
require Logger
alias Tipalti.RequestError
# NOTE: the `client_recv_timeout` is configurable, but set at compile time
adapter Tesla.Adapter.Hackney, recv_timeout: Application.get_env(:tipalti, :client_recv_timeout, 60_0... | 26.603175 | 106 | 0.575179 |
21e8db27320804e4e466dd8a81645ca9a56a1daa | 966 | ex | Elixir | lib/ex_algo/list/impls/enumerable.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 21 | 2021-11-21T08:07:38.000Z | 2022-03-13T06:19:35.000Z | lib/ex_algo/list/impls/enumerable.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 3 | 2021-11-26T22:54:09.000Z | 2022-03-06T21:16:12.000Z | lib/ex_algo/list/impls/enumerable.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | null | null | null | alias ExAlgo.List.{CircularList, LinkedList}
defimpl Enumerable, for: LinkedList do
def count(%LinkedList{container: container}), do: {:ok, Enum.count(container)}
def member?(%LinkedList{container: container}, item) do
{:ok, Enum.member?(container, item)}
end
def reduce(%LinkedList{container: container},... | 30.1875 | 80 | 0.708075 |
21e933e995f94975730f6e544498e54d918bf304 | 494 | ex | Elixir | farmbot_ext/lib/farmbot_ext.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_ext/lib/farmbot_ext.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_ext/lib/farmbot_ext.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotExt 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 = [
FarmbotExt.Bootstrap
]
# See https://hexdocs.pm/elix... | 24.7 | 53 | 0.714575 |
21e935703168f5f81d9d3df18f0728675caad58e | 198 | exs | Elixir | priv/repo/migrations/20210908081119_allow_trial_expiry_to_be_null.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20210908081119_allow_trial_expiry_to_be_null.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20210908081119_allow_trial_expiry_to_be_null.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AllowTrialExpiryToBeNull do
use Ecto.Migration
def change do
alter table(:users) do
modify :trial_expiry_date, :date, null: true
end
end
end
| 19.8 | 63 | 0.737374 |
21e9407cfdc0a4853f273a49faf1a2848d00b4d2 | 893 | ex | Elixir | lib/riak/crdt/flag.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | lib/riak/crdt/flag.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | lib/riak/crdt/flag.ex | suddenrushofsushi/riak-elixir-client | cc3f7293dc014720e1fc1514cd4fb0f89ffa6919 | [
"Apache-2.0"
] | null | null | null | defmodule Riak.CRDT.Flag do
@moduledoc """
Encapsulates a boolean datatype inside a CRDT.Map
"""
require Record
@doc """
Creates a new flag container
"""
def new, do: :riakc_flag.new
def new(context), do: :riakc_flag.new(context)
def new(value, context) when is_boolean(value), do: :riakc_flag.new(v... | 23.5 | 86 | 0.664054 |
21e96a5ecf7035f030bc5031ae321e73eb839e27 | 3,464 | exs | Elixir | server/config/config.exs | dreamer820/realtime | c293c7680b84e19a068787d0d7f8e49ef8c275f8 | [
"Apache-2.0"
] | 1 | 2021-05-12T01:17:43.000Z | 2021-05-12T01:17:43.000Z | server/config/config.exs | dreamer820/realtime | c293c7680b84e19a068787d0d7f8e49ef8c275f8 | [
"Apache-2.0"
] | 9 | 2021-09-01T19:51:47.000Z | 2022-02-16T03:28:23.000Z | server/config/config.exs | dreamer820/realtime | c293c7680b84e19a068787d0d7f8e49ef8c275f8 | [
"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.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
# These defaults mirror the ones in releases.exs,... | 38.488889 | 128 | 0.752887 |
21e9873f1fb343d3e1710fb76db40bf53ed9e535 | 440 | ex | Elixir | lib/cforum_web/controllers/api/v1/image_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum_web/controllers/api/v1/image_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum_web/controllers/api/v1/image_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule CforumWeb.Api.V1.ImageController do
use CforumWeb, :controller
alias Cforum.Media
def create(conn, %{"image" => image_params}) do
case Media.create_image(conn.assigns.current_user, image_params) do
{:ok, image} -> json(conn, %{status: "success", location: Path.image_path(conn, :show, image)}... | 29.333333 | 101 | 0.675 |
21e98a4f953fec44024d5e86779cd16ab8bddbf8 | 1,925 | exs | Elixir | test/phoenix/router/console_formatter_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | test/phoenix/router/console_formatter_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | test/phoenix/router/console_formatter_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.ConsoleFormatterTest do
use ExUnit.Case, async: true
alias Phoenix.Router.ConsoleFormatter
defmodule RouterTestSingleRoutes do
use Phoenix.Router
socket "/ws" do
end
get "/", Phoenix.PageController, :index, as: :page
post "/images", Phoenix.ImageController, :upload,... | 38.5 | 80 | 0.690909 |
21e98ae1b0474d20f55d73be202b316115f944c2 | 2,281 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accountstatuses_custom_batch_request_entry.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accountstatuses_custom_batch_request_entry.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/accountstatuses_custom_batch_request_entry.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.661017 | 184 | 0.708023 |
21e9c2b06981fc7763bf2a54cd7597ea80d26e21 | 1,576 | exs | Elixir | mix.exs | Mathison-Inc/cabbage | c8b623e32b944b0f71ce357078abc00a2f29eb90 | [
"MIT"
] | null | null | null | mix.exs | Mathison-Inc/cabbage | c8b623e32b944b0f71ce357078abc00a2f29eb90 | [
"MIT"
] | 1 | 2021-07-26T23:32:53.000Z | 2021-07-26T23:32:53.000Z | mix.exs | Mathison-Inc/pickle | c8b623e32b944b0f71ce357078abc00a2f29eb90 | [
"MIT"
] | null | null | null | defmodule Pickle.Mixfile do
use Mix.Project
@version "0.5.2"
def project do
[
app: :pickle,
version: @version,
elixir: "~> 1.3",
source_url: "git@github.com:Mathison-Inc/pickle.git",
homepage_url: "https://github.com/Mathison-Inc/pickle",
elixirc_paths: elixirc_paths(Mix.e... | 25.015873 | 77 | 0.586929 |
21e9d01eee2bf762c88c7701b273a66154bcabab | 6,983 | exs | Elixir | test/packet_framer_test.exs | starbelly/elixir-mllp | 504719a8b47ea5a68e750441facb71c8c9f2fa18 | [
"Apache-2.0"
] | null | null | null | test/packet_framer_test.exs | starbelly/elixir-mllp | 504719a8b47ea5a68e750441facb71c8c9f2fa18 | [
"Apache-2.0"
] | null | null | null | test/packet_framer_test.exs | starbelly/elixir-mllp | 504719a8b47ea5a68e750441facb71c8c9f2fa18 | [
"Apache-2.0"
] | null | null | null | defmodule MLLP.PacketFramerTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias MLLP.{DefaultPacketFramer, FramingContext}
doctest DefaultPacketFramer
# ^K - VT (Vertical Tab)
@mllp_start_of_block <<0x0B>>
@mllp_end_of_block <<0x1C, 0x0D>>
import Mox
setup :verify_on_exit!
describe "DefaultPa... | 29.095833 | 98 | 0.629386 |
21e9d813983bf16f5c3eacb6a4475553752e92bc | 3,492 | ex | Elixir | lib/mail_sniffex_web/live/message_live.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | 3 | 2021-01-25T20:28:00.000Z | 2021-01-26T12:22:08.000Z | lib/mail_sniffex_web/live/message_live.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | lib/mail_sniffex_web/live/message_live.ex | adrid/mailsniffex | 93a0cc8f96eb4786bd85dbebfb92f867e2ca3c3f | [
"MIT"
] | null | null | null | defmodule MailSniffexWeb.Live.MessageLive do
use Surface.LiveView, container: {:div, class: "inside-content"}
alias MailSniffexWeb.Live.MessageHeader
alias MailSniffexWeb.Live.MessageAttachments
alias MailSniffexWeb.Router.Helpers, as: Routes
@data_path Application.compile_env(:mail_sniffex, :data_path)
d... | 29.59322 | 199 | 0.569015 |
21e9ef23ca212c56fceea8798050ea675efa6b34 | 3,581 | ex | Elixir | lib/diff/hex/hex.ex | dbernheisel/diff | 18db7395ec0661230e13f40b2bc65e909641dba8 | [
"Apache-2.0"
] | null | null | null | lib/diff/hex/hex.ex | dbernheisel/diff | 18db7395ec0661230e13f40b2bc65e909641dba8 | [
"Apache-2.0"
] | null | null | null | lib/diff/hex/hex.ex | dbernheisel/diff | 18db7395ec0661230e13f40b2bc65e909641dba8 | [
"Apache-2.0"
] | null | null | null | defmodule Diff.Hex do
@config %{
:hex_core.default_config()
| http_adapter: Diff.Hex.Adapter,
http_user_agent_fragment: "hexpm_diff"
}
require Logger
def get_versions() do
with {:ok, {200, _, results}} <- :hex_repo.get_versions(@config) do
{:ok, results}
else
{:ok, {status, _... | 27.75969 | 98 | 0.556548 |
21e9f3d3c5d87d72ac1d99520ff8347e6433363e | 5,540 | ex | Elixir | lib/wechat_pay/api/client.ex | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | lib/wechat_pay/api/client.ex | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | lib/wechat_pay/api/client.ex | sjava/wechat_pay | 101fd27668f01463d93c1a50033787cfb19bf3e5 | [
"MIT"
] | null | null | null | defmodule WechatPay.API.Client do
@moduledoc false
alias WechatPay.Config
alias WechatPay.Utils.XMLBuilder
alias WechatPay.Utils.XMLParser
alias WechatPay.Utils.NonceStr
alias WechatPay.Utils.Signature
alias WechatPay.Error
@doc """
Send a POST request to Wehchat's Server
"""
@spec post(String.t... | 27.02439 | 90 | 0.627256 |
21ea16a6ffd4c17f9166b96f8a47ea08e73cfb89 | 219 | ex | Elixir | elixir/lib/elixir_example.ex | kintoproj/kinto-examples | 8903127efab78424da936ff1516d3872dd997aaa | [
"Apache-2.0"
] | null | null | null | elixir/lib/elixir_example.ex | kintoproj/kinto-examples | 8903127efab78424da936ff1516d3872dd997aaa | [
"Apache-2.0"
] | null | null | null | elixir/lib/elixir_example.ex | kintoproj/kinto-examples | 8903127efab78424da936ff1516d3872dd997aaa | [
"Apache-2.0"
] | 1 | 2021-08-02T17:57:11.000Z | 2021-08-02T17:57:11.000Z | defmodule ElixirExample do
@moduledoc """
Documentation for `ElixirExample`.
"""
@doc """
Hello world.
## Examples
iex> ElixirExample.hello()
:world
"""
def hello do
:world
end
end
| 11.526316 | 36 | 0.593607 |
21ea1b6070cab5276d4a750fcb5ea3e79c83576b | 1,131 | exs | Elixir | config/config.exs | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 16 | 2016-02-12T15:15:58.000Z | 2021-08-24T21:48:34.000Z | config/config.exs | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 1 | 2016-02-17T04:58:38.000Z | 2016-02-17T04:58:38.000Z | config/config.exs | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 2 | 2016-02-17T03:21:23.000Z | 2016-03-08T09:23:27.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.483871 | 73 | 0.7542 |
21ea2c7db62b94ac3fec7e61bc342bf5001345f2 | 3,484 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/event_attendee.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/event_attendee.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/event_attendee.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... | 46.453333 | 413 | 0.708094 |
21ea305ec26fb4ae567b6b2827c5be59229c0048 | 3,938 | ex | Elixir | lib/codes/codes_n06.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n06.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n06.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_N06 do
alias IcdCode.ICDCode
def _N060 do
%ICDCode{full_code: "N060",
category_code: "N06",
short_code: "0",
full_name: "Isolated proteinuria with minor glomerular abnormality",
short_name: "Isolated proteinuria with minor glomerular abnorma... | 40.597938 | 107 | 0.68131 |
21ea5e352e212a0642b9387b3bb6064048a2da3b | 17,666 | ex | Elixir | lib/hexpm_web/controllers/dashboard/organization_controller.ex | axelson/hexpm | 3608a9aa16d321f8f7d0890528676c0821d85686 | [
"Apache-2.0"
] | 2 | 2020-03-01T18:23:33.000Z | 2021-01-15T10:15:45.000Z | lib/hexpm_web/controllers/dashboard/organization_controller.ex | axelson/hexpm | 3608a9aa16d321f8f7d0890528676c0821d85686 | [
"Apache-2.0"
] | 3 | 2020-06-30T11:24:41.000Z | 2020-08-05T15:47:34.000Z | lib/hexpm_web/controllers/dashboard/organization_controller.ex | axelson/hexpm | 3608a9aa16d321f8f7d0890528676c0821d85686 | [
"Apache-2.0"
] | null | null | null | defmodule HexpmWeb.Dashboard.OrganizationController do
use HexpmWeb, :controller
alias HexpmWeb.Dashboard.KeyController
plug :requires_login
def redirect_repo(conn, params) do
glob = params["glob"] || []
path = Routes.organization_path(conn, :new) <> "/" <> Enum.join(glob, "/")
conn
|> put_st... | 33.082397 | 102 | 0.627986 |
21ea6f9678c253cb251a2e8971fc79e11c4d40f1 | 2,432 | ex | Elixir | lib/api.ex | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | 1 | 2018-02-12T23:14:33.000Z | 2018-02-12T23:14:33.000Z | lib/api.ex | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | 16 | 2017-11-18T15:28:34.000Z | 2019-02-09T10:27:10.000Z | lib/api.ex | optikfluffel/fyyd_ex | 81d271a8132596711ca6f5f24f7fddbd2453a671 | [
"Unlicense"
] | null | null | null | defmodule Fyyd.API do
@moduledoc """
The actual Client for the Fyyd HTTP API.
"""
use HTTPoison.Base
require Logger
@api_version "0.2"
@base_url "https://api.fyyd.de"
@doc """
Get and unwrap data from the Fyyd HTTP API for the given `url`.
## Usage
{:ok, user_data} = Fyyd.API.get_data("/... | 26.725275 | 96 | 0.629523 |
21ea860ebeaf6d985d55e957ab161305e5fe4010 | 425 | ex | Elixir | lib/infohandler.ex | tipok/nerves_mqtt_simulator | 6de90c7e1bab8bd62826e86167f3ba6464104034 | [
"MIT"
] | null | null | null | lib/infohandler.ex | tipok/nerves_mqtt_simulator | 6de90c7e1bab8bd62826e86167f3ba6464104034 | [
"MIT"
] | null | null | null | lib/infohandler.ex | tipok/nerves_mqtt_simulator | 6de90c7e1bab8bd62826e86167f3ba6464104034 | [
"MIT"
] | null | null | null | defmodule Infosender.Infohandler do
use Tortoise.Handler
require Logger
@impl true
def init(_) do
{:ok, %{}}
end
@impl true
def handle_message(topic, <<current_value::float-64>>, state) do
topic = Enum.join(topic, "/")
Logger.info("Got message from: #{topic} with value: #{current_value}")
... | 22.368421 | 74 | 0.651765 |
21ea9dd2c1bc025deab35b5b71668e80b9cf60c5 | 712 | ex | Elixir | apps/podder_web/lib/podder_web/gettext.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/lib/podder_web/gettext.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/lib/podder_web/gettext.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | defmodule PodderWeb.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 PodderWeb.Gettext
# Simple translation
gettext("Here is the... | 28.48 | 72 | 0.678371 |
21ead52b0350fc53456eb39051d907e7aca691a3 | 982 | ex | Elixir | lib/mestatus.ex | ashkan18/mestatus | c0d1cf156729fc2f7a8c822f1757efd663515ba5 | [
"MIT"
] | null | null | null | lib/mestatus.ex | ashkan18/mestatus | c0d1cf156729fc2f7a8c822f1757efd663515ba5 | [
"MIT"
] | null | null | null | lib/mestatus.ex | ashkan18/mestatus | c0d1cf156729fc2f7a8c822f1757efd663515ba5 | [
"MIT"
] | null | null | null | defmodule Mestatus 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, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Mestatus... | 31.677419 | 71 | 0.712831 |
21ead8f76fdf0cbeb8ab3674001a0ea5a5b869a1 | 2,186 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/conditional_format_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/conditional_format_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/conditional_format_rule.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.481481 | 154 | 0.73193 |
21eb09474687db946c1ec6287bd84bc723788b20 | 1,179 | ex | Elixir | lib/gittp/endpoint.ex | itaym2/gittp | ca00e8b37e403cb8b66f89df86a3a777ae1736bd | [
"MIT"
] | 2 | 2017-07-02T17:46:51.000Z | 2017-07-13T12:11:04.000Z | lib/gittp/endpoint.ex | Soluto/gittp | ca00e8b37e403cb8b66f89df86a3a777ae1736bd | [
"MIT"
] | 13 | 2017-05-23T07:53:54.000Z | 2017-10-30T13:40:43.000Z | lib/gittp/endpoint.ex | itaym2/gittp | ca00e8b37e403cb8b66f89df86a3a777ae1736bd | [
"MIT"
] | 1 | 2017-07-11T15:10:16.000Z | 2017-07-11T15:10:16.000Z | defmodule Gittp.Endpoint do
use Phoenix.Endpoint, otp_app: :gittp
socket "/socket", Gittp.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at:... | 27.418605 | 69 | 0.71162 |
21eb129fcad946c5885e26b5fad420a4949ef99d | 20,203 | ex | Elixir | lib/zitadel/idp.pb.ex | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | 3 | 2020-11-11T15:24:21.000Z | 2022-02-04T20:40:36.000Z | lib/zitadel/idp.pb.ex | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | 2 | 2020-11-11T15:15:36.000Z | 2020-11-11T15:19:00.000Z | lib/zitadel/idp.pb.ex | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | null | null | null | defmodule Zitadel.Idp.V1.IDPState do
use Protobuf, enum: true, syntax: :proto3
@type idp_state_unspecified :: :IDP_STATE_UNSPECIFIED
@type idp_state_active :: :IDP_STATE_ACTIVE
@type idp_state_inactive :: :IDP_STATE_INACTIVE
@type t :: integer | idp_state_unspecified() | idp_state_active() | idp_state_inactiv... | 42.177453 | 98 | 0.588279 |
21eb73ee30fb15533221ad32884da58e703ebf53 | 2,948 | ex | Elixir | lib/mix/tasks/ecto.gen.repo.ex | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 1 | 2022-01-24T07:32:34.000Z | 2022-01-24T07:32:34.000Z | lib/mix/tasks/ecto.gen.repo.ex | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.gen.repo.ex | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Gen.Repo do
use Mix.Task
import Mix.Ecto
import Mix.Generator
@shortdoc "Generates a new repository"
@switches [
repo: [:string, :keep],
]
@aliases [
r: :repo,
]
@moduledoc """
Generates a new repository.
The repository will be placed in the `lib` directory.
... | 27.296296 | 91 | 0.636024 |
21eb802789ef67bb2edaf54ead80e68edef21e0c | 257 | ex | Elixir | lib/mangopay_ex/resources/users/transactions.ex | StephaneRob/mangopay_ex | d05dab35f431c2f18f6ae95aedf68dede6731402 | [
"MIT"
] | 1 | 2018-02-01T11:10:09.000Z | 2018-02-01T11:10:09.000Z | lib/mangopay_ex/resources/users/transactions.ex | StephaneRob/mangopay_ex | d05dab35f431c2f18f6ae95aedf68dede6731402 | [
"MIT"
] | null | null | null | lib/mangopay_ex/resources/users/transactions.ex | StephaneRob/mangopay_ex | d05dab35f431c2f18f6ae95aedf68dede6731402 | [
"MIT"
] | null | null | null | defmodule MangopayEx.Users.Transactions do
@moduledoc """
"""
@endpoint "users"
use MangopayEx.Resource
@doc "List all transactions for a given user"
def list(user_id) do
Api.member(__MODULE__, :list, user_id, "transactions")
end
end
| 17.133333 | 59 | 0.700389 |
21eb932abf25fd4684a7a54fd53923e0bde3198c | 1,187 | ex | Elixir | kousa/lib/broth/routes/stats.ex | Bilal-Akkil/dogehouse | 11aebdd1ae7e97732e43e618f0662f2afbee22a6 | [
"MIT"
] | 2 | 2021-05-15T12:46:12.000Z | 2021-05-15T14:15:16.000Z | kousa/lib/broth/routes/stats.ex | Bilal-Akkil/dogehouse | 11aebdd1ae7e97732e43e618f0662f2afbee22a6 | [
"MIT"
] | null | null | null | kousa/lib/broth/routes/stats.ex | Bilal-Akkil/dogehouse | 11aebdd1ae7e97732e43e618f0662f2afbee22a6 | [
"MIT"
] | 1 | 2021-05-05T15:57:23.000Z | 2021-05-05T15:57:23.000Z | defmodule Broth.Routes.Stats do
import Plug.Conn
import Ecto.Query
use Plug.Router
use Timex
plug(Broth.Plugs.Cors)
plug(:match)
plug(:dispatch)
alias Onion.StatsCache
alias Beef.Repo
alias Beef.Schemas.User
defp getStats do
two_days_ago = Timex.now |> Timex.shift(days: -2)
query =
... | 21.981481 | 125 | 0.582982 |
21eb963a7c653eaf64763ecb53c5968a682dfb53 | 425 | ex | Elixir | hackney_pools/client/lib/client/http.ex | TheRealReal/blog_examples | 898796f877ec1615db0fb01b6d4a504f90ae794e | [
"MIT"
] | null | null | null | hackney_pools/client/lib/client/http.ex | TheRealReal/blog_examples | 898796f877ec1615db0fb01b6d4a504f90ae794e | [
"MIT"
] | null | null | null | hackney_pools/client/lib/client/http.ex | TheRealReal/blog_examples | 898796f877ec1615db0fb01b6d4a504f90ae794e | [
"MIT"
] | null | null | null | defmodule Client.HTTP do
use HTTPoison.Base
def get_resource(delay) do
{elapsed_time, result} = :timer.tc(fn ->
get("/resource?delay=#{delay}", [], hackney: [pool: :client_pool])
end)
case result do
{:ok, %HTTPoison.Response{body: body}} ->
{:ok, elapsed_time/1000, body}
_ -... | 20.238095 | 72 | 0.611765 |
21ebb050745fcd569b9a2f5d46ee8c55250a85cb | 965 | ex | Elixir | apps/authenticator/lib/sessions/tokens/client_assertion.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | apps/authenticator/lib/sessions/tokens/client_assertion.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | apps/authenticator/lib/sessions/tokens/client_assertion.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | null | null | null | defmodule Authenticator.Sessions.Tokens.ClientAssertion do
@moduledoc """
Client assertion token configurations.
"""
use Joken.Config
add_hook Joken.Hooks.RequiredClaims, ~w(exp iat nbf iss aud jti typ)
add_hook Authenticator.Sessions.Tokens.Hooks.ValidateUUID, ~w(iss)
# Two hours in seconds
@max_exp... | 32.166667 | 99 | 0.666321 |
21ebded605c8a7f985a3404805e6af6defc622d2 | 8,031 | exs | Elixir | test/integration/tags_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 117 | 2016-09-04T03:56:08.000Z | 2022-03-28T18:51:56.000Z | test/integration/tags_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 73 | 2017-03-21T09:22:45.000Z | 2022-03-01T20:48:22.000Z | test/integration/tags_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 25 | 2017-04-02T02:23:01.000Z | 2022-02-27T20:42:13.000Z | defmodule Solid.Integration.TagsTest do
use ExUnit.Case, async: true
import Solid.Helpers
describe "if" do
test "true expression" do
assert render("{% if 1 == 1 %}True{% endif %} is True", %{"key" => 123}) == "True is True"
end
test "false expression" do
assert render("{% if 1 != 1 %}Tru... | 22.495798 | 98 | 0.446146 |
21ebe68585105b022febd12958f4e3b7fd47c57a | 2,981 | ex | Elixir | ears/lib/sensor/hardware.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | ears/lib/sensor/hardware.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | 2 | 2021-03-09T20:59:23.000Z | 2021-05-10T18:01:00.000Z | ears/lib/sensor/hardware.ex | mashbytes/sentry | d4b13419694d0e30199af6ff0f8a2b68ef54fefa | [
"MIT"
] | null | null | null | defmodule Ears.Sensor.Hardware do
use GenServer
require Logger
alias Ears.Sensor.PubSub
alias Ears.Sensor.Model
@input_pin Application.get_env(:ears, :sound_input_pin, 4)
@tick_timeout Application.get_env(:ears, :tick_timeout, 5_000)
@setup_timeout Application.get_env(:ears, :setup_timeout, 10_000)
... | 31.052083 | 111 | 0.696746 |
21ebfccd00bd8765d815973bd97ce8dd187771c8 | 2,714 | exs | Elixir | test/dockerfile_test.exs | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | 3 | 2020-07-14T13:44:30.000Z | 2022-03-14T21:06:00.000Z | test/dockerfile_test.exs | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | test/dockerfile_test.exs | lgandersen/jocker_dist | b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5 | [
"BSD-2-Clause"
] | null | null | null | defmodule DockerfileTest do
import Jocker.Engine.Dockerfile
use ExUnit.Case
@moduletag :capture_log
test "from instruction" do
test1 = parse("# Testing\nFROM lol\n# One more comment")
test2 = parse("# Testing\nFROM lol AS maxlol\n# One more comment")
assert [{"FROM lol", {:from, "lol"}}] == test1
... | 31.929412 | 93 | 0.499263 |
21ec117bc244c39d18910768b52803ab12c54da5 | 1,157 | exs | Elixir | mix.exs | andreaswillems/verk | 177baf4d1225f4190aec4daaf3fecd595051ce34 | [
"MIT"
] | null | null | null | mix.exs | andreaswillems/verk | 177baf4d1225f4190aec4daaf3fecd595051ce34 | [
"MIT"
] | null | null | null | mix.exs | andreaswillems/verk | 177baf4d1225f4190aec4daaf3fecd595051ce34 | [
"MIT"
] | null | null | null | defmodule Verk.Mixfile do
use Mix.Project
@description """
Verk is a job processing system backed by Redis.
"""
def project do
[
app: :verk,
version: "1.8.0",
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [... | 22.686275 | 62 | 0.497839 |
21ec1875e1b991ab9edeb69d4627497465b29c0f | 185 | exs | Elixir | elixir/Programming Elixir/functions/Functions-5.exs | mikoim/musor | c20d15936acc5a443599ee20a8e1340f20cc12e5 | [
"Unlicense"
] | 1 | 2017-04-25T20:07:58.000Z | 2017-04-25T20:07:58.000Z | elixir/Programming Elixir/functions/Functions-5.exs | mikoim/musor | c20d15936acc5a443599ee20a8e1340f20cc12e5 | [
"Unlicense"
] | null | null | null | elixir/Programming Elixir/functions/Functions-5.exs | mikoim/musor | c20d15936acc5a443599ee20a8e1340f20cc12e5 | [
"Unlicense"
] | null | null | null | IO.puts Enum.map [1,2,3,4], fn x -> x + 2 end
IO.puts Enum.map [1,2,3,4], &(&1 + 2)
IO.puts Enum.each [1,2,3,4], fn x -> IO.inspect x end
IO.puts Enum.each [1,2,3,4], &(IO.inspect &1)
| 30.833333 | 53 | 0.572973 |
21ec221fd7dac919c5315e70eb157b19a2a0a0b9 | 80 | exs | Elixir | programming/elixir/simple_pay/test/views/layout_view_test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/simple_pay/test/views/layout_view_test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/simple_pay/test/views/layout_view_test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule SimplePay.LayoutViewTest do
use SimplePay.ConnCase, async: true
end
| 20 | 37 | 0.825 |
21ec415194c0a89a6c45f10276e4067e482afa08 | 146 | ex | Elixir | lib/we_reports_web/controllers/page_controller.ex | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | null | null | null | lib/we_reports_web/controllers/page_controller.ex | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | 5 | 2020-09-09T01:41:39.000Z | 2021-05-11T00:18:38.000Z | lib/we_reports_web/controllers/page_controller.ex | himrock922/we_reports | 04cffcd0e56f441e5087b65cf80a31602afae419 | [
"MIT"
] | null | null | null | defmodule WeReportsWeb.PageController do
use WeReportsWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 16.222222 | 40 | 0.739726 |
21ec5dbb9f1e3edc0da9760897c8e15169752453 | 556 | ex | Elixir | lib/mbanking/release.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | lib/mbanking/release.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | lib/mbanking/release.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | defmodule Mbanking.Release do
@moduledoc """
Module that executes migrations in production
"""
@app :mbanking
def migrate do
load_app()
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
end
def rollback(repo, version) do
... | 19.857143 | 91 | 0.643885 |
21ec627a7520dde875d90c09116ac3ff7ff12ca2 | 819 | ex | Elixir | elixir/lib/com/spoonacular/client/model/inline_response_200_29.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 21 | 2019-08-09T18:53:26.000Z | 2022-03-14T22:10:10.000Z | elixir/lib/com/spoonacular/client/model/inline_response_200_29.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | null | null | null | elixir/lib/com/spoonacular/client/model/inline_response_200_29.ex | ddsky/spoonacular-api-clients | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | [
"MIT"
] | 55 | 2019-08-13T17:52:47.000Z | 2022-03-27T04:29:34.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule com.spoonacular.client.Model.InlineResponse20029 do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"customFoods",
:"type... | 24.088235 | 111 | 0.689866 |
21ec88aa2617a3d4baa97fc59baa6b85b6ffad6f | 568 | exs | Elixir | jpcarver+elixir/day15/mix.exs | NashFP/avent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | 2 | 2021-11-24T12:54:15.000Z | 2022-01-20T11:02:11.000Z | jpcarver+elixir/day15/mix.exs | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | jpcarver+elixir/day15/mix.exs | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | defmodule Day15.MixProject do
use Mix.Project
def project do
[
app: :day15,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 19.586207 | 87 | 0.573944 |
21ec8be5a02f378cdbd0534ee9bce8f633f24037 | 154 | exs | Elixir | apps/concierge_site/test/web/views/route_helper_test.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/concierge_site/test/web/views/route_helper_test.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/concierge_site/test/web/views/route_helper_test.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule ConciergeSite.RouteHelperTest do
@moduledoc false
use ExUnit.Case, async: true
alias ConciergeSite.RouteHelper
doctest RouteHelper
end
| 19.25 | 42 | 0.811688 |
21ec926c985c20b20f8f0654af23afdf6b4f5474 | 5,127 | exs | Elixir | mix.exs | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | mix.exs | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | mix.exs | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.5.0-dev"
def project do
[
app: :phoenix,
version: @version,
elixir: "~> 1.6",
deps: deps(),
package: package(),
lockfile: lockfile(),
preferred_cli_env: [docs: :docs],
consolidate_protocols: Mix.env(... | 24.768116 | 105 | 0.575775 |
21ecc38aefd79b0dda947f346bb5c9181065db24 | 1,277 | exs | Elixir | test/stripe/request_test.exs | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | test/stripe/request_test.exs | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | test/stripe/request_test.exs | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.RequestTest do
use ExUnit.Case
alias Stripe.Request
describe "object expansion" do
test "prefix_expansions/2 should apply the given prefix to the expansion values" do
opts = [expand: ["balance_transaction"]]
request = Request.prefix_expansions(%Request{opts: opts})
expansi... | 31.146341 | 92 | 0.682067 |
21ecc502fbed2dca429448393f4fb981ee43eede | 759 | exs | Elixir | examples/job_replies.exs | jacobwarren/honeydew | d601143017b8d530df63bf357ed8f2d66649e3d4 | [
"MIT"
] | null | null | null | examples/job_replies.exs | jacobwarren/honeydew | d601143017b8d530df63bf357ed8f2d66649e3d4 | [
"MIT"
] | null | null | null | examples/job_replies.exs | jacobwarren/honeydew | d601143017b8d530df63bf357ed8f2d66649e3d4 | [
"MIT"
] | null | null | null | #
# Optionally, you can receive a response from a job with `yield/2`. To tell Honeydew that we expect a response, you must specify `reply: true`, like so:
#
# iex(1)> {:run, [1]} |> Honeydew.async(:my_queue, reply: true)
# {:ok, 2}
#
# If you pass `reply: true`, and you never call `yield/2` to read the result, your pro... | 23 | 152 | 0.678524 |
21ecdbf5df2afceb938149c4a2c11b4257d40d82 | 725 | ex | Elixir | lib/database/crash.ex | MarkSRobinson/bors-ng | c47499b8f91905cce1f3539ccf19a4357c4c5c15 | [
"Apache-2.0"
] | null | null | null | lib/database/crash.ex | MarkSRobinson/bors-ng | c47499b8f91905cce1f3539ccf19a4357c4c5c15 | [
"Apache-2.0"
] | null | null | null | lib/database/crash.ex | MarkSRobinson/bors-ng | c47499b8f91905cce1f3539ccf19a4357c4c5c15 | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Database.Crash do
@moduledoc """
Crash dumps.
"""
use BorsNG.Database.Model
@type t :: %Crash{}
schema "crashes" do
belongs_to :project, Project
field :crash, :string
field :component, :string
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `... | 19.594595 | 70 | 0.622069 |
21ece17dc528322d1583038e33b1df15e7a7d106 | 767 | ex | Elixir | backend/app/web/resolvers/user_resolver.ex | benjaminshafii/Span | c4235ac51eb56421fc874f79954ce2fe37d20b5d | [
"MIT"
] | null | null | null | backend/app/web/resolvers/user_resolver.ex | benjaminshafii/Span | c4235ac51eb56421fc874f79954ce2fe37d20b5d | [
"MIT"
] | 2 | 2017-06-08T22:06:44.000Z | 2017-06-10T21:08:34.000Z | backend/app/web/resolvers/user_resolver.ex | benjaminshafii/Span | c4235ac51eb56421fc874f79954ce2fe37d20b5d | [
"MIT"
] | null | null | null | defmodule App.UserResolver do
alias App.Repo
alias App.User
def all(_args, _info) do
{:ok, Repo.all(User)}
end
def find(%{id: id}, _info) do
case Repo.get(User, id) do
nil -> {:error, "User id #{id} not found"}
user -> {:ok, user}
end
end
def create(%{ user: user_params }, _info... | 21.305556 | 68 | 0.601043 |
21ecf09c95700375de06915e964eb90d96896917 | 236 | exs | Elixir | priv/config_storage/migrations/20180213164114_ignore_fbos_config.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | priv/config_storage/migrations/20180213164114_ignore_fbos_config.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | priv/config_storage/migrations/20180213164114_ignore_fbos_config.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.System.ConfigStorage.Migrations.IgnoreFbosConfig do
use Ecto.Migration
import Farmbot.System.ConfigStorage.MigrationHelpers
def change do
create_settings_config("ignore_fbos_config", :bool, true)
end
end
| 23.6 | 69 | 0.813559 |
21ecf5738cae392344c305d6a36aff620d7ecf07 | 774 | ex | Elixir | lib/clova/request.ex | line/clova-cek-sdk-elixir | 543c26ed7fc4611351017d9ded6b5456b0854bb2 | [
"Apache-2.0"
] | 12 | 2018-07-24T01:42:03.000Z | 2020-05-29T23:06:44.000Z | lib/clova/request.ex | line/clova-cek-sdk-elixir | 543c26ed7fc4611351017d9ded6b5456b0854bb2 | [
"Apache-2.0"
] | 2 | 2018-08-29T08:03:42.000Z | 2018-11-27T10:16:37.000Z | lib/clova/request.ex | line/clova-cek-sdk-elixir | 543c26ed7fc4611351017d9ded6b5456b0854bb2 | [
"Apache-2.0"
] | 2 | 2018-08-01T09:36:51.000Z | 2019-10-07T05:18:33.000Z | defmodule Clova.Request do
@moduledoc """
Helpers to extract data from the Clova request.
"""
@doc """
Helper function to retrieve the data of a named slot from a clova request. Returns
the retrieved data, or `nil` if not present.
"""
def get_slot(%{"request" => %{"intent" => %{"slots" => slots}}}, slo... | 25.8 | 92 | 0.642119 |
21ed567674f29344220a8c9745a05f9fde135497 | 1,004 | ex | Elixir | lib/hound/element.ex | eduardodflpereira/hound | d30548b0e6e673b886bb98101628e6227afa8c55 | [
"MIT"
] | null | null | null | lib/hound/element.ex | eduardodflpereira/hound | d30548b0e6e673b886bb98101628e6227afa8c55 | [
"MIT"
] | null | null | null | lib/hound/element.ex | eduardodflpereira/hound | d30548b0e6e673b886bb98101628e6227afa8c55 | [
"MIT"
] | null | null | null | defmodule Hound.Element do
@moduledoc """
A representation of a web element
"""
defstruct uuid: nil
@type t :: %__MODULE__{uuid: String.t}
@type strategy :: :css | :class | :id | :name | :tag | :xpath | :link_text | :partial_link_text
@type matcher :: {strategy, String.t}
@type selector :: t | matche... | 24.487805 | 97 | 0.656375 |
21ed7677b7810b0ad588292350396268bad6216a | 686 | ex | Elixir | lib/mapper/resolvers.ex | chrisjowen/rubbergloves | 9fad14e7309374d6792b83774cef9f4125926d34 | [
"MIT"
] | 2 | 2020-01-14T00:41:15.000Z | 2020-02-05T09:09:12.000Z | lib/mapper/resolvers.ex | chrisjowen/rubbergloves | 9fad14e7309374d6792b83774cef9f4125926d34 | [
"MIT"
] | null | null | null | lib/mapper/resolvers.ex | chrisjowen/rubbergloves | 9fad14e7309374d6792b83774cef9f4125926d34 | [
"MIT"
] | null | null | null | defmodule Rubbergloves.Mapper.CamelCaseKeyResolver do
def resolve(key, _map) do
[h | t] =
key
|> Atom.to_string()
|> Macro.camelize()
|> String.split("", trim: true)
String.downcase(h) <> Enum.join(t)
end
end
defmodule Rubbergloves.Mapper.StringKeyResolver do
def resolve(key, _ma... | 20.787879 | 53 | 0.690962 |
21ed916dc9a85051ac83d4b471b167c33dd5f84f | 1,038 | ex | Elixir | test/support/conn_case.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | defmodule OrigamiWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the... | 26.615385 | 69 | 0.719653 |
21edc49f48e1e100aab0546813fbcec756924313 | 2,504 | ex | Elixir | lib/pow_assent/strategies/oauth/base.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | lib/pow_assent/strategies/oauth/base.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | lib/pow_assent/strategies/oauth/base.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | defmodule PowAssent.Strategy.OAuth.Base do
@moduledoc """
OAuth 1.0 strategy base.
## Usage
defmodule MyApp.MyOAuthStratey do
use PowAssent.Strategy.OAuth
def default_config(_config) do
[
site: "https://api.example.com",
authorize_url: "/authorization/new... | 29.116279 | 96 | 0.613019 |
21ee4aa8d55bb4f4ae292e3fe0d6d334a6ecd543 | 2,272 | ex | Elixir | deps/earmark/lib/earmark/cli.ex | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | deps/earmark/lib/earmark/cli.ex | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | deps/earmark/lib/earmark/cli.ex | ench0/ex_identicon | b37e86984cb372d8981b43190b0052e35718f173 | [
"MIT"
] | null | null | null | defmodule Earmark.CLI do
def main(argv) do
argv
|> parse_args
|> process
end
@args """
usage:
earmark --help
earmark --version
earmark [ options... <file> ]
convert file from Markdown to HTML.
where options can be any of:
"""
@cli_options [:code_class_prefix, :gfm, :... | 23.183673 | 83 | 0.584067 |
21ee6c3fb5e4746836edf5444292d4b07703d9a0 | 1,303 | exs | Elixir | test/protobuf/protoc/generator/enum_test.exs | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | test/protobuf/protoc/generator/enum_test.exs | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | test/protobuf/protoc/generator/enum_test.exs | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | null | null | null | defmodule Protobuf.Protoc.Generator.EnumTest do
use ExUnit.Case, async: true
alias Protobuf.Protoc.Context
alias Protobuf.Protoc.Generator.Enum, as: Generator
test "generate/2 generates enum type messages" do
ctx = %Context{package: ""}
desc = %Google.Protobuf.EnumDescriptorProto{
name: "EnumFo... | 32.575 | 105 | 0.638526 |
21eea9be4eef133386723ee4f6120322a39553f2 | 1,029 | ex | Elixir | apps/api_web/lib/api_web/views/error_helpers.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/lib/api_web/views/error_helpers.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/lib/api_web/views/error_helpers.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, _opts}) do
# Because error messages were defined within Ecto, we must
# call the Gette... | 30.264706 | 64 | 0.672498 |
21eebc693998af29eb0c9a28f1284f1be5ec9104 | 533 | ex | Elixir | lib/chewie_web/views/error_view.ex | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | lib/chewie_web/views/error_view.ex | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | lib/chewie_web/views/error_view.ex | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | defmodule ChewieWeb.ErrorView do
use ChewieWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from
... | 31.352941 | 83 | 0.718574 |
21eebe80499f553e55b3e826cbbda65399dbf53a | 697 | ex | Elixir | lib/retrospectivex/retrospectives/schemas/action_item.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 5 | 2018-06-27T17:51:51.000Z | 2020-10-05T09:59:04.000Z | lib/retrospectivex/retrospectives/schemas/action_item.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 1 | 2018-10-08T11:33:12.000Z | 2018-10-08T11:33:12.000Z | lib/retrospectivex/retrospectives/schemas/action_item.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 2 | 2018-10-08T11:31:55.000Z | 2020-10-05T09:59:05.000Z | defmodule Retrospectivex.Retrospectives.Schemas.ActionItem do
use Ecto.Schema
import Ecto.Changeset
alias Retrospectivex.Accounts.Schemas.User
alias Retrospectivex.Retrospectives.Schemas.Card
schema "action_items" do
field(:body, :string)
field(:responsible, :string)
field(:state, ActionItemSta... | 22.483871 | 77 | 0.697274 |
21eedc495f94ac9395e62627569600d92c0f7646 | 585 | ex | Elixir | apps/buzzcms/lib/buzzcms/schema/entry_integer_value.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms/lib/buzzcms/schema/entry_integer_value.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms/lib/buzzcms/schema/entry_integer_value.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule Buzzcms.Schema.EntryIntegerValue do
use Ecto.Schema
import Ecto.Changeset
@required_fields [:entry_id, :field_id, :value]
@optional_fields []
@primary_key false
schema "entry_integer_value" do
belongs_to :entry, Buzzcms.Schema.Entry
belongs_to :field, Buzzcms.Schema.Field
field :valu... | 25.434783 | 57 | 0.723077 |
21eef0131b2b3fa8914e8f93c8074aeda7ebd5a2 | 769 | ex | Elixir | lib/sanbase_web/admin/blockchain_address/blockchain_address_user_pair.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/blockchain_address/blockchain_address_user_pair.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/blockchain_address/blockchain_address_user_pair.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.BlockchainAddressUserPair do
use ExAdmin.Register
register_resource Sanbase.BlockchainAddress.BlockchainAddressUserPair do
show pair do
attributes_table do
row(:id)
row(:notes)
row(:user, link: true)
row(:blockchain_address, link: true)
e... | 24.806452 | 98 | 0.59948 |
21eef66c2d51e53a640ad34f67509b980356162e | 1,602 | ex | Elixir | lib/path_utils.ex | orderthruchaos/path_utils | 1748f157d9240adbc881a85452e27d73428fe0f2 | [
"Apache-2.0"
] | null | null | null | lib/path_utils.ex | orderthruchaos/path_utils | 1748f157d9240adbc881a85452e27d73428fe0f2 | [
"Apache-2.0"
] | null | null | null | lib/path_utils.ex | orderthruchaos/path_utils | 1748f157d9240adbc881a85452e27d73428fe0f2 | [
"Apache-2.0"
] | null | null | null | defmodule PathUtils do
@moduledoc """
Path utilities for Elixir.
Additional utilities that are not provided by `Path` or `:filename`.
These are primarily shortcuts.
"""
@doc """
Returns true if the final portion of a path is actually a symlink.
Symlinks may exist elsewhere in the path. If the fina... | 23.217391 | 77 | 0.64794 |
21eefbf621342e40f26b5afc7af17e9de42fbf69 | 2,394 | ex | Elixir | project2-bonus/lib/Main.ex | DuncanPro64/gossip-push-sum-protocol | 776ca042f30dd00cc3b54a74901a7ec2d1abee67 | [
"MIT"
] | 5 | 2019-02-25T16:55:26.000Z | 2021-05-16T09:45:15.000Z | project2-bonus/lib/Main.ex | DuncanPro64/gossip-push-sum-protocol | 776ca042f30dd00cc3b54a74901a7ec2d1abee67 | [
"MIT"
] | null | null | null | project2-bonus/lib/Main.ex | DuncanPro64/gossip-push-sum-protocol | 776ca042f30dd00cc3b54a74901a7ec2d1abee67 | [
"MIT"
] | 5 | 2017-10-25T17:11:31.000Z | 2021-09-30T03:49:24.000Z | defmodule GossipSimulator.Main do
def main(args) do
args |> parse_args |> delegate
end
defp parse_args(args) do
{_,parameters,_} = OptionParser.parse(args)
parameters
end
def delegate([]) do
IO.puts "No arguments given"
end
def delegate(parameters... | 55.674419 | 297 | 0.723893 |
21eeff0472ffe75b050771e655580b1b563f673b | 433 | exs | Elixir | priv/repo/migrations/20160827201834_create_item.exs | ktornwall/elixir_conf_2016_demo | 5a0adf832773714ba7743c049964623262ee7a13 | [
"MIT"
] | 27 | 2016-09-02T19:26:16.000Z | 2017-11-30T02:27:16.000Z | priv/repo/migrations/20160827201834_create_item.exs | katzenbar/elixir_conf_2016_demo | 5a0adf832773714ba7743c049964623262ee7a13 | [
"MIT"
] | 1 | 2016-10-23T18:24:59.000Z | 2016-10-23T18:24:59.000Z | priv/repo/migrations/20160827201834_create_item.exs | ktornwall/elixir_conf_2016_demo | 5a0adf832773714ba7743c049964623262ee7a13 | [
"MIT"
] | 4 | 2016-10-08T02:51:41.000Z | 2017-12-05T02:02:40.000Z | defmodule ExConf.Repo.Migrations.CreateItem do
use Ecto.Migration
def change do
create table(:items) do
add :name, :string
add :description, :text
add :sanitized_description, :text
add :plaintext, :string
add :purchasable, :boolean, default: false, null: false
add :total_cos... | 21.65 | 61 | 0.65127 |
21ef08a8ba14a142e0db256865c0ce4285249140 | 4,336 | exs | Elixir | community/betterdev/test/betterdev/community/community_test.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 79 | 2017-07-03T13:04:08.000Z | 2022-02-11T13:59:37.000Z | community/betterdev/test/betterdev/community/community_test.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 16 | 2017-07-09T03:16:27.000Z | 2022-01-14T14:29:57.000Z | community/betterdev/test/betterdev/community/community_test.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 10 | 2017-07-09T02:58:59.000Z | 2021-09-14T08:01:02.000Z | defmodule Betterdev.CommunityTest do
use Betterdev.DataCase
alias Betterdev.Community
describe "links" do
alias Betterdev.Community.Link
@valid_attrs %{title: "some title", uri: "some uri"}
@update_attrs %{title: "some updated title", uri: "some updated uri"}
@invalid_attrs %{title: nil, uri: n... | 33.353846 | 98 | 0.678044 |
21ef156e6b8a8af8e133fe4b5789af846442f43b | 22,677 | ex | Elixir | lib/elixir/lib/macro.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [to_string: 1]
defmodule Macro do
@moduledoc """
This module provides conveniences for working with macros.
"""
@typedoc "Abstract Syntax Tree (AST) node"
@type t :: { t, t } | { t, Keyword.t, t } | atom | number | binary | list
@doc false
defmacro binary_ops do
[ :===, :!==,... | 32.395714 | 122 | 0.588482 |
21ef2ca0a749655410c25c463c84cc9a1386dcc3 | 569 | ex | Elixir | web/controllers/api/v1/topic_controller.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 38 | 2016-10-21T08:26:15.000Z | 2021-03-19T23:10:40.000Z | web/controllers/api/v1/topic_controller.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 32 | 2017-02-19T08:57:35.000Z | 2020-02-05T13:15:11.000Z | web/controllers/api/v1/topic_controller.ex | zmstone/kastlex | 3478bc230f08bde99e768067787b0ef3f8e1c026 | [
"Apache-2.0"
] | 6 | 2017-11-24T16:02:20.000Z | 2022-02-22T07:44:36.000Z | defmodule Kastlex.API.V1.TopicController do
require Logger
use Kastlex.Web, :controller
plug Kastlex.Plug.EnsurePermissions
def list_topics(conn, _params) do
topics = Kastlex.MetadataCache.get_topics() |> Enum.map(fn(x) -> x.topic end)
json(conn, topics)
end
def show_topic(conn, %{"topic" => na... | 23.708333 | 81 | 0.652021 |
21ef31ca52f8eace136927ff4cc577b42780b448 | 486 | exs | Elixir | apps/wdpa_models/test/wdpa_models/designation_type_test.exs | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | 4 | 2016-05-08T10:17:19.000Z | 2019-06-10T15:23:20.000Z | apps/wdpa_models/test/wdpa_models/designation_type_test.exs | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | apps/wdpa_models/test/wdpa_models/designation_type_test.exs | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | defmodule WdpaModels.DesignationTypeTest do
use WdpaModels.ModelCase
alias WdpaModels.DesignationType
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = DesignationType.changeset(%DesignationType{}, @valid_attrs)
assert changeset.valid?
e... | 25.578947 | 77 | 0.761317 |
21ef52b0d72a9efc4bebcf2119aff372b9052eaa | 1,749 | exs | Elixir | lib/mix/test/mix/tasks/compile_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/test/mix/tasks/compile_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.CompileTest do
use MixTest.Case
defmodule CustomCompilers do
def project do
[compilers: [:elixir, :app, :custom]]
end
end
setup do
Mix.Project.push MixTest.Case.Sample
:ok
end
test "mix compile --list with mixfi... | 29.15 | 99 | 0.64494 |
21ef5cdd19af6d9bd0b851a8d270c3232aae1f6a | 120 | exs | Elixir | test/pushest/socket/data/presence_test.exs | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 31 | 2018-03-29T10:14:28.000Z | 2021-01-24T16:02:05.000Z | test/pushest/socket/data/presence_test.exs | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 4 | 2018-03-28T21:28:41.000Z | 2020-11-09T15:40:55.000Z | test/pushest/socket/data/presence_test.exs | bigardone/pushest | 3b2712a816f4bab940bd0f5db53b950a04e21401 | [
"MIT"
] | 6 | 2018-04-16T07:37:46.000Z | 2022-03-10T22:11:39.000Z | defmodule Pushest.Socket.Data.PresenceTest do
use ExUnit.Case, async: true
doctest Pushest.Socket.Data.Presence
end
| 24 | 45 | 0.808333 |
21ef77d4ab26c2d74fd5a6632db1a5158bb1a851 | 70 | exs | Elixir | catcasts/test/test_helper.exs | cashmann/phoenix-tutorial | ea37b9d54a79df9bc1351a948eb8f8400c5e62ff | [
"MIT"
] | null | null | null | catcasts/test/test_helper.exs | cashmann/phoenix-tutorial | ea37b9d54a79df9bc1351a948eb8f8400c5e62ff | [
"MIT"
] | 3 | 2021-03-09T20:36:45.000Z | 2021-05-10T17:47:02.000Z | test/test_helper.exs | kniarzyn/catcasts | 69d62bde811f8dbc531e41add1223cc7bc6c175d | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Catcasts.Repo, :manual)
| 23.333333 | 54 | 0.785714 |
21ef78b69646152d41d4489bd3c272cb158532e0 | 159 | exs | Elixir | test/rak/rak_test.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | 2 | 2018-09-30T02:59:33.000Z | 2018-10-08T19:55:38.000Z | test/rak/rak_test.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | test/rak/rak_test.exs | rak/rak | cdfcd7227b38d9c6cac10bd778b03361b28f67df | [
"MIT"
] | null | null | null | defmodule RakTest do
use RakTest.Helper, module: Rak
test "version can be accessed" do
assert Rak.version === Rak.Mixfile.project[:version]
end
end
| 19.875 | 56 | 0.72327 |
21ef9418d8695519dba79cb8412c1da1c0e8352e | 748 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/stream/index/storage.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1,912 | 2019-01-10T14:17:00.000Z | 2022-03-30T19:16:44.000Z | implementations/elixir/ockam/ockam/lib/ockam/stream/index/storage.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1,473 | 2019-01-16T15:14:47.000Z | 2022-03-31T23:44:50.000Z | implementations/elixir/ockam/ockam/lib/ockam/stream/index/storage.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 219 | 2019-01-11T03:35:13.000Z | 2022-03-31T10:25:56.000Z | defmodule Ockam.Stream.Index.Storage do
@moduledoc false
@type options() :: Keyword.t()
@type state() :: any()
## TODO: remove stream_name/partition from save and get
@callback init(options()) :: {:ok, state()} | {:error, any()}
@callback get_index(
client_id :: binary(),
stre... | 29.92 | 81 | 0.491979 |
21efb53b56d88b80c70a12e4301120a4c4ef58bb | 149 | ex | Elixir | lib/phoenixcicd_web/controllers/page_controller.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:03:40.000Z | 2021-05-20T12:03:40.000Z | lib/phoenixcicd_web/controllers/page_controller.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | null | null | null | lib/phoenixcicd_web/controllers/page_controller.ex | JackMaarek/phoenix-cicd | 746c66a7b248e089b1c138a81f5e4169e73aac67 | [
"MIT"
] | 1 | 2021-05-20T12:04:10.000Z | 2021-05-20T12:04:10.000Z | defmodule PhoenixcicdWeb.PageController do
use PhoenixcicdWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.625 | 42 | 0.751678 |
21efb971212ca8fc9179cfd0fea39112be5a1352 | 5,622 | exs | Elixir | test/acceptance/html1/list_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html1/list_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html1/list_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Html1.ListTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_html: 1]
import Support.Html1Helpers
@moduletag :html1
describe "List items" do
test "Unnumbered" do
markdown = "* one\n* two"
html = construct(
{:ul, nil, [
{:li, ... | 25.210762 | 155 | 0.481679 |
21eff567ab680dd3c05882f662984fe7f554435a | 940 | ex | Elixir | lib/ldap/ldap.ex | enterprizing/iot | 1c8d71b2f779fabdad2a33b3ce3133ec2799eb9c | [
"0BSD"
] | 2 | 2019-07-27T13:29:35.000Z | 2019-07-28T08:56:46.000Z | lib/ldap/ldap.ex | erpuno/iot | 1c8d71b2f779fabdad2a33b3ce3133ec2799eb9c | [
"0BSD"
] | 1 | 2019-07-29T22:37:22.000Z | 2019-07-29T22:37:22.000Z | lib/ldap/ldap.ex | enterprizing/iot | 1c8d71b2f779fabdad2a33b3ce3133ec2799eb9c | [
"0BSD"
] | null | null | null | defmodule LDAP.Index do
use N2O, with: [:n2o, :nitro]
use FORM
require IOT
require Logger
def event(:init) do
case N2O.user() do
[] -> event({:off, []})
_ -> event(:on)
end
end
def event({:auth, form}) do
cn = IOT.extract(:cn, :otp, form)
branch = IOT.extract(:branch, :otp, f... | 24.736842 | 72 | 0.555319 |
21f02074b86f5540f869d27e757ea72bd3e3b5f9 | 1,338 | ex | Elixir | api/lib/responda_me_web/controllers/api/question_controller.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/lib/responda_me_web/controllers/api/question_controller.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/lib/responda_me_web/controllers/api/question_controller.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | defmodule Responda.MeWeb.Api.QuestionController do
use Responda.MeWeb, :controller
alias Responda.Me.Questions
alias Responda.Me.Questions.Question
action_fallback Responda.MeWeb.FallbackController
def index(conn, %{"quiz_id" => quiz_id}) do
questions = Questions.list_questions(quiz_id)
render(conn... | 30.409091 | 103 | 0.683109 |
21f0256e27fef9d7bdcae809d39265b541319cfd | 2,160 | ex | Elixir | web/controllers/video_controller.ex | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | web/controllers/video_controller.ex | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | web/controllers/video_controller.ex | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | defmodule Rumbl.VideoController do
use Rumbl.Web, :controller
alias Rumbl.Video
def action(conn, _) do
apply(__MODULE__, action_name(conn), [conn, conn.params, conn.assigns.current_user])
end
def index(conn, _params, user) do
videos = Repo.all(user_videos(user))
render(conn, "index.html", video... | 27 | 88 | 0.622222 |
21f0466c0c33da7c5e3326e092a18f8be3b2429b | 195 | exs | Elixir | priv/test_repo/migrations/20171205222845_add_test_schema.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | priv/test_repo/migrations/20171205222845_add_test_schema.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | priv/test_repo/migrations/20171205222845_add_test_schema.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | defmodule PolyAmory.TestRepo.Migrations.AddTestSchema do
use Ecto.Migration
def change do
create table("test_schema") do
add :channel, :jsonb
timestamps()
end
end
end
| 16.25 | 56 | 0.697436 |
21f052500b178857d21186b0618e8edf43f6cd1d | 1,125 | exs | Elixir | config/config.exs | MarPenc/Superior | 3049dcafb818c3273014ae941481757ce9530507 | [
"MIT"
] | null | null | null | config/config.exs | MarPenc/Superior | 3049dcafb818c3273014ae941481757ce9530507 | [
"MIT"
] | null | null | null | config/config.exs | MarPenc/Superior | 3049dcafb818c3273014ae941481757ce9530507 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752 |
21f07f1c909a6608da3325a56575efa347bf2134 | 2,084 | exs | Elixir | apps/forklift/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/forklift/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/forklift/mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | defmodule Forklift.MixProject do
use Mix.Project
def project do
[
app: :forklift,
version: "0.10.0",
elixir: "~> 1.8",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
start_permanent: Mix.en... | 28.944444 | 88 | 0.506238 |
21f106dfc13b670f7cc8cc52e7c663e523511d23 | 4,298 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1/model/binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/network_management/lib/google_api/network_management/v1/model/binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/network_management/lib/google_api/network_management/v1/model/binding.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... | 81.09434 | 1,972 | 0.754304 |
21f123e9d38f91dbcfba7fe9427886aa0d170d49 | 241 | exs | Elixir | apps/plant_monitor/config/dev.exs | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | 2 | 2019-01-25T21:21:56.000Z | 2021-02-24T08:18:51.000Z | apps/plant_monitor/config/dev.exs | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | apps/plant_monitor/config/dev.exs | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :plant_monitor, PlantMonitor.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "plant_monitor_dev",
hostname: "localhost",
pool_size: 10
| 21.909091 | 41 | 0.746888 |
21f131a26cce71462790efd3268ea1288fd560b6 | 802 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/github_content.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/github_content.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/github_content.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"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 SwaggyJenkins.Model.GithubContent do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"name",
:"sha",
:"_class",
:... | 20.05 | 91 | 0.584788 |
21f13c760e04e996c6ba39c202366fb0f949a914 | 3,068 | ex | Elixir | hackerank_elixir/easy/service_lane.ex | eduardorasgado/ElixirWarlock | 1658ab2ffb2870cb81c8a434755d98678572838c | [
"MIT"
] | null | null | null | hackerank_elixir/easy/service_lane.ex | eduardorasgado/ElixirWarlock | 1658ab2ffb2870cb81c8a434755d98678572838c | [
"MIT"
] | 1 | 2021-03-10T05:09:49.000Z | 2021-03-10T05:09:49.000Z | hackerank_elixir/easy/service_lane.ex | eduardorasgado/ElixirWarlock | 1658ab2ffb2870cb81c8a434755d98678572838c | [
"MIT"
] | null | null | null | defmodule Solution do
@moduledoc """
Implementing the solution for the next problem:
https://www.hackerrank.com/challenges/service-lane/problem
"""
@doc """
function to receive official main to upload to hackerank
"""
def main do
[n, t] = get_stdin()
width_list = get_stdin()
range_min = E... | 23.96875 | 69 | 0.521512 |
21f163cbbe139d1d575ba5db158b369f36ae3526 | 1,352 | exs | Elixir | mix.exs | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | 3 | 2018-05-24T04:38:25.000Z | 2020-01-20T18:21:04.000Z | mix.exs | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | 8 | 2018-05-30T23:11:27.000Z | 2020-07-16T04:54:34.000Z | mix.exs | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | null | null | null | defmodule Rogu.Mixfile do
use Mix.Project
def project do
[
app: :rogu,
version: "0.1.0",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: ... | 23.310345 | 79 | 0.530325 |
21f17502926bbe379f05886d0415a02d3f7b0218 | 2,228 | exs | Elixir | test/managers/build_manager_test.exs | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 189 | 2018-09-25T09:02:41.000Z | 2022-03-09T13:52:06.000Z | test/managers/build_manager_test.exs | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 29 | 2018-09-26T05:51:18.000Z | 2021-11-05T08:55:03.000Z | test/managers/build_manager_test.exs | ramkrishna70/opencov | 7a3415f8eebb797ad1f7b6c832daa4f04d70af8d | [
"MIT"
] | 32 | 2018-10-21T12:28:11.000Z | 2022-03-28T02:20:19.000Z | defmodule Opencov.BuildManagerTest do
use Opencov.ManagerCase
alias Opencov.Build
alias Opencov.BuildManager
test "changeset with valid attributes" do
changeset = BuildManager.changeset(%Build{}, Map.put(params_for(:build), :project_id, 1))
assert changeset.valid?
end
test "changeset with invalid... | 34.8125 | 106 | 0.718133 |
21f19ab8af6f5cf5f659c3faaef829617c59f673 | 3,739 | ex | Elixir | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/accessibility.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/accessibility.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/accessibility.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... | 54.985294 | 324 | 0.745921 |
21f1b22d6639a7216caea776e6f0d72136908811 | 477 | ex | Elixir | lib/new_relic/sampler/reporter.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 227 | 2018-09-05T15:33:23.000Z | 2022-02-25T18:12:06.000Z | lib/new_relic/sampler/reporter.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 211 | 2018-09-05T21:42:41.000Z | 2022-03-25T17:51:56.000Z | lib/new_relic/sampler/reporter.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 84 | 2018-09-05T04:26:26.000Z | 2022-03-09T14:28:14.000Z | defmodule NewRelic.Sampler.Reporter do
@moduledoc false
def report_sample(category, sample) when is_map(sample),
do: NewRelic.report_custom_event(sampler_event_type(), Map.put(sample, :category, category))
def sampler_event_type,
do: Application.get_env(:new_relic_agent, :sample_event_type, "ElixirSampl... | 34.071429 | 96 | 0.781971 |
21f1b4039f46e1f79350776737c2275f028d283b | 3,183 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/logging.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/logging.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/logging.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.949153 | 811 | 0.766572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.