hexsha
stringlengths
40
40
size
int64
2
1.01M
content
stringlengths
2
1.01M
avg_line_length
float64
1.5
100
max_line_length
int64
2
1k
alphanum_fraction
float64
0.25
1
1cdf24917255b79e1f61bee864f188a272afa5c4
247
# frozen_string_literal: true module API module Entities module Nuget class PackagesMetadata < Grape::Entity expose :count expose :items, using: ::API::Entities::Nuget::PackagesMetadataItem end end end end
19
74
0.672065
91712c4224a87e7fd5dbaa08c29f95b357c6ed8f
123
def clean_trace(trace, options = {}) options[:indent] ||= 6 trace.gsub(/^ {#{options[:indent]}}/, "").strip + "\n" end
24.6
56
0.577236
1d8789e172c67968940a30f7b483f879849b698d
4,123
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::NetApp::Mgmt::V2019_07_01 module Models # # Volume patch resource # class VolumePatch include MsRestAzure # @r...
29.45
79
0.486296
b950dcdd2da488c59e04fee479654fb6838aa5cf
3,603
# encoding: utf-8 class CreateCallCenterViolationTypes < ActiveRecord::Migration def up create_table :call_center_violation_types do |t| t.string :name t.references :violation_category t.timestamps end CallCenter::ViolationType.create name: 'ВЫБЕРИТЕ ТИП НАРУШЕНИЯ. ЖЕЛАТЕЛЬНО НЕ "ПРОЧИ...
49.356164
123
0.698862
bbc4ba578980a4efee5432637d6e1e7d0de1ba39
2,101
class Libsamplerate < Formula desc "Library for sample rate conversion of audio data" homepage "http://www.mega-nerd.com/SRC" url "http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz" sha256 "0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1" bottle do cellar :any sha256 "9889af146...
35.610169
93
0.71347
e9caab6700e2d46689032f84d09f42c5654f2797
5,352
module Unix::Exec include Beaker::CommandFactory def reboot if self['platform'] =~ /solaris/ exec(Beaker::Command.new("reboot"), :expect_connection_failure => true) else exec(Beaker::Command.new("/sbin/shutdown -r now"), :expect_connection_failure => true) end end def echo(msg, abs=tru...
36.657534
124
0.657885
183bff2f75470eb39c93b19fe42ae103ac542b46
1,563
module Spree module Api module V2 module Storefront class ProductsController < ::Spree::Api::V2::ResourceController private def sorted_collection collection_sorter.new(collection, current_currency, params, allowed_sort_attributes).call end def co...
27.910714
123
0.588612
2655e09b754e3b7c2e995b5e92f2c711334362c7
1,190
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v3/errors/keyword_plan_ad_group_error.proto require 'google/protobuf' require 'google/api/annotations_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/ads/googleads/v3/errors/keyword_plan_ad_group_...
37.1875
218
0.766387
91867a32403424cc84fc4c06f96ad8b7f1ee67d5
7,811
# encoding: UTF-8 module TZInfo module Definitions module America module Yellowknife include TimezoneDefinition timezone 'America/Yellowknife' do |tz| tz.offset :o0, 0, 0, :'-00' tz.offset :o1, -25200, 0, :MST tz.offset :o2, -25200, 3600, :MWT ...
45.947059
51
0.583024
39dab1cc71aa3be015665cd540188efebe18849c
531
# frozen_string_literal: true require "active_support/core_ext/hash/deep_merge" require "active_support/core_ext/hash/except" require "active_support/core_ext/hash/slice" begin require "i18n" rescue LoadError => e $stderr.puts "The i18n gem is not available. Please add it to your Gemfile and run bundle install" ...
31.235294
100
0.792844
870932dbd0700d02684abf6cd5d82a9652c9d4f0
5,753
require 'simplecov' SimpleCov.start require 'config' require 'active_support/testing/autorun' require 'stringio' require 'active_record' require 'cases/test_case' require 'active_support/dependencies' require 'active_support/logger' require 'active_support/core_ext/string/strip' require 'support/config' require 'su...
27.526316
132
0.770728
1aab323a4086e104979e36228822741ba65305ba
280
module SchemaPlus::Compatibility module ActiveRecord module Migration module ClassMethods def latest_version begin ::ActiveRecord::Migration::Current rescue self end end end end end end
17.5
46
0.564286
6a72e78c234e604f332345a5baa12d602d78f5bf
946
ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' require "minitest/reporters" Minitest::Reporters.use! class ActiveSupport::TestCase fixtures :all # Returns true if a test user is logged in. def is_logged_in? !session[:user_id].nil? end ...
24.894737
70
0.633192
b9a9253f1ac84cf1ccfbc837ff2f5cd8493fd100
6,617
get '/site_files/new_page' do require_login erb :'site_files/new_page' end # Redirect from original path get '/site_files/new' do require_login redirect '/site_files/new_page' end post '/site_files/create' do require_login @errors = [] filename = params[:pagefilename] || params[:filename] filename.g...
28.645022
225
0.708327
ab39faf8beaaa777aba1f7b17c5cada39386e329
38
module PoliticalPollEntriesHelper end
12.666667
33
0.921053
b92283986803e0a6b53e4dfa9d86635a44250df1
241
default["rubygems"]["gem_disable_default"] = false default["rubygems"]["gem_sources"] = [ "https://rubygems.org" ] default["rubygems"]["chef_gem_disable_default"] = false default["rubygems"]["chef_gem_sources"] = [ "https://rubygems.org" ]
40.166667
68
0.713693
01c73b1da90fbb1a267859859df204851d8d4f9f
1,928
require 'spec_helper' describe AaGlobalNotifications::PushNotification do it "has valid factory" do push_notification = build(:push_notification) push_notification.should be_valid end describe "scheduling" do before :each do end it "creating a push notification hits send_notification method and deliver...
29.212121
84
0.776452
39f84eb2b8a87356c1094951633234668115bc86
1,000
# encoding: UTF-8 require 'test_helper' describe Vines::Stream::Client::Ready do STANZAS = [] before do @stream = MiniTest::Mock.new @state = Vines::Stream::Client::Ready.new(@stream, nil) def @state.to_stanza(node) if node.name == 'bogus' nil else stanza = MiniTest::Mock....
20.833333
83
0.629
1a8a507dfe807d57b2f6dc96b7a95763e20fd90a
7,685
require 'listener_socket_context' require 'extension/ionian_interface' require 'ionian/extension/io' require 'socket' require 'timeout' describe Ionian::Extension::IO do include_context "ionian subject", Ionian::Extension::IO include_examples "ionian interface" it "can get and set the IO timeout" do ...
22.804154
87
0.613273
018e1fc6c4e75b762d1ca7a751ad574dd25e51ae
880
Pod::Spec.new do |s| s.name = "JIMEnvironments" s.version = "1.0.1" s.summary = "A simple solution to handle environment specific settings." s.description = <<-DESC A simple solution to handle environment specific settings. It uses the current Build Co...
44
124
0.6125
873b8344599f7f62fb16775a558f9e886f104999
2,359
remote_file "start_defense_server" do source "https://raw.githubusercontent.com/clampz/fuzzy_challenge/master/src/start_defense_server" path "/usr/bin/start_defense_server" mode "0765" not_if "test -e /tmp/test-file" end remote_file "equal" do source "https://raw.githubusercontent.com/clampz/fuzzy_challenge/...
29.4875
99
0.752437
08422904d50413b7d141ac6bab587d6dbef1254a
475
$LOAD_PATH << File.dirname(__FILE__) + "/../lib" raise "jruby required" unless defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' require 'magic' require 'java' import 'javax.swing.JFrame' import 'javax.swing.JButton' frame = Magic.build do JFrame do title 'Hello!' size 400,500 JButton('Press me') do |b| ...
19.791667
77
0.686316
619d68f564bd66877197db7ca76011f4bf30fabf
953
class Andi < Formula desc "Estimate evolutionary distance between similar genomes" homepage "https://github.com/EvolBioInf/andi" # tag "bioinformatics" # doi "10.1093/bioinformatics/btu815" url "https://github.com/EvolBioInf/andi/releases/download/v0.11/andi-0.11.tar.gz" sha256 "dba29ced86bb8160b6755eb69e3...
29.78125
92
0.737671
e9df8ed13b981af6de3baf2863bd79b8ed08326d
777
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net> #++ require_relative 'base_afilias' module Whois class Parsers # Parser for the whois.aero server. # # @see Whois::Parsers::Example # The Example parser for the...
17.659091
72
0.6139
33ab11bc6f81e6dd4ad2d6b2f26a61ac050458e1
46
module RandomLocation VERSION = "0.1.0" end
11.5
21
0.717391
6a2e419f9b759c315e284a5589e22db26e9f573b
121
class AddTaglineToSpaces < ActiveRecord::Migration[6.0] def change add_column :spaces, :tagline, :string end end
20.166667
55
0.743802
335fc45d85a04ec78baa964f1a7ad26145195429
301
namespace :knifeswitch do desc 'Generate the migrations necessary to use Knifeswitch' task :create_migrations do sh 'rails g migration CreateKnifeswitchCounters ' \ 'name:string:uniq counter:integer closetime:datetime' puts "Done. Don't forget to run `rake db:migrate`." end end
30.1
61
0.744186
1c71a0a432ad740a68f5f32c76b8d7fc5c6aa808
425
# frozen_string_literal: true module Clusters module Agents class ProjectAuthorization < ApplicationRecord self.table_name = 'agent_project_authorizations' belongs_to :agent, class_name: 'Clusters::Agent', optional: false belongs_to :project, class_name: '::Project', optional: false val...
28.333333
95
0.745882
4a9b755cb3b0a62bc5dd5116e1682824efbe249d
1,678
require 'fileutils' require 'yaml' module Puppet::Parser::Functions newfunction(:cve20113872_store_progress, :doc => <<-'ENDHEREDOC') do |args| This function is used to write state information to persistent storage for an individual node working its way through the remediation process. This function exp...
34.244898
119
0.675209
21e0e54c0d25c7b5ef1aa897df51a233c82f062e
169
class CreateSpaceAgencies < ActiveRecord::Migration[7.0] def change create_table :space_agencies do |t| t.string :name t.timestamps end end end
16.9
56
0.686391
f7bc025bf923c1412b60a455f6dfbc046e456bc6
3,427
Rails.application.routes.draw do # resources :annotation_files post 'project/:user_name/:repo_name/items', to: 'items#create', as: 'create_item' get 'project/:user_name/:repo_name/items/new', to: 'items#new', as: 'new_item' get 'project/:user_name/:repo_name/items/:slug/edit', to: 'items#edit', as: 'edit_item' ...
72.914894
186
0.720163
e86bd2f6b84678ced6e881cb92dbffd875e3e5bc
675
module Spree class BillingIntegration::ConektaGateway::Card < Gateway preference :auth_token, :string preference :public_auth_token, :string preference :source_method, :string, default: 'card' unless Rails::VERSION::MAJOR == 4 attr_accessible :preferred_auth_token, :preferred_public_auth_token,...
18.75
118
0.682963
1a935e625864e0b3d65f827053d1c56adf689cca
2,625
# Space Form model, used for space creation. class SpaceForm include ActiveModel::Model attr_accessor( :name, :description, :host_lead_dxuser, :guest_lead_dxuser, :space_type, :cts, :sponsor_org_handle, :sponsor_lead_dxuser, :source_space_id, :restrict_to_template, ) TY...
27.061856
99
0.729524
081f5663870cc155083b731d75550e83c8368665
306
module SlackRubyBot module Commands class Unknown < Base match(/^(?<bot>\S*)[\s]*(?<expression>.*)$/) def self.call(client, data, _match) client.say(channel: data.channel, text: "Sorry <@#{data.user}>, I don't understand that command!", gif: 'idiot') end end end end
25.5
120
0.604575
b9492aae6d3498940f80789581aa8280d54b77e5
593
Pod::Spec.new do |s| s.name = 'BrightFutures' s.version = '1.0.0-beta.5' s.license = 'MIT' s.summary = 'A simple Futures & Promises library for iOS and OS X written in Swift' s.homepage = 'https://github.com/Thomvis/BrightFutures' s.social_media_url = 'https://twitter.com/thomvis88' s.authors = { 'Thomas ...
34.882353
90
0.677909
267a830d03e7ea43ab35cd7f3b77722a9f9bc3de
664
# frozen_string_literal: true require 'active_support/core_ext/object/blank' require 'active_support/core_ext/hash/reverse_merge' require 'active_support/core_ext/hash/slice' require 'active_support/core_ext/numeric/time' require 'active_support/core_ext/string/inflections' require 'active_support/core_ext/string/stri...
28.869565
52
0.832831
620b9659694ae6902b378e804431fd31b031f560
430
cask "trilium-notes" do version "0.45.5" sha256 "14122579ac299a2ff696fcb879d3d1c007559308ce2934f631f4ebaf8940af58" url "https://github.com/zadam/trilium/releases/download/v#{version}/trilium-mac-x64-#{version}.zip" appcast "https://github.com/zadam/trilium/releases.atom" name "Trilium Notes" desc "Personal...
33.076923
101
0.765116
614788c832f51e0f2a20aa8642656b34ec508328
837
# coding: utf-8 Gem::Specification.new do |spec| spec.name = "jekyll-whiteglass" spec.version = "1.9.1" spec.authors = ["Chayoung You"] spec.email = ["yousbe@gmail.com"] spec.summary = %q{Minimal, responsive Jekyll theme for hackers.} spec.homepage = "https://github...
33.48
77
0.659498
e2c64100451acb54a8f6e39033d5925672f8177e
2,277
FactoryBot.define do factory :member_node_login, class: Member::Node::Login, traits: [:cms_node] do cur_site { cms_site } route "member/login" filename { SS.config.oauth.prefix_path.sub(/^\//, '') || "auth" } twitter_oauth "enabled" twitter_client_id { unique_id } twitter_client_secret { uniqu...
31.625
97
0.720246
2164abbca3fffc09ceab0a95a276c46d680eda40
7,762
# encoding: utf-8 require "logstash/outputs/base" require "logstash/namespace" require "socket" # This output allows you to pull metrics from your logs and ship them to # Graphite. Graphite is an open source tool for storing and graphing metrics. # # An example use case: Some applications emit aggregated stats in the ...
37.679612
156
0.682814
386c352366ae2fe8f72b2d209f48829bc761f9a5
1,274
# Copyright 2015 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 writing,...
33.526316
83
0.732339
1c275f35d472dfde45137afd3bf453a8ef0aee3a
1,090
require_relative 'boot' require "rails" # Pick the frameworks you want: require "active_model/railtie" require "active_job/railtie" require "active_record/railtie" require "active_storage/engine" require "action_controller/railtie" require "action_mailer/railtie" require "action_view/railtie" require "action_cable/eng...
32.058824
82
0.780734
18eb02634d0a77a8805e2cbaab3456f9de38143d
6,144
# # Be sure to run `pod spec lint DictUtils.podspec' to ensure this is a # valid spec and to remove all comments including this before submitting the spec. # # To learn more about Podspec attributes see https://docs.cocoapods.org/specification.html # To see working Podspecs in the CocoaPods repo see https://github....
32.855615
237
0.618164
d51cbfb023ba38a8937e755f8da7dc45fa32683b
2,243
require_relative '../test_helper' # Unit Test for SemanticLogger::Appender::Tcp module Appender class TcpTest < Minitest::Test describe SemanticLogger::Appender::Tcp do before do Net::TCPClient.stub_any_instance(:connect, true) do @appender = SemanticLogger::Appender::Tcp.new(server: 'loc...
33.477612
93
0.563085
4a6d15898dc7d6e8dfdde0b95ce153e7e4fbb8d1
1,141
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'grape/order/version' Gem::Specification.new do |spec| spec.name = "grape-order" spec.version = Grape::Order::VERSION spec.authors = ["Grzegorz Brzezinka"] spec.email ...
36.806452
80
0.684487
79a01c94fdbda1fe7d2b554a196b007906f2ce94
4,928
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. # https://newrelic.atlassian.net/wiki/display/eng/Agent+Thread+Profiling # https://newrelic.atlassian.net/browse/RUBY-917 if RUBY_VERSION >= '1.9' require 'thr...
30.419753
110
0.705966
0160bbdf17baf53670b344808fc1933c1a92d6bc
573
require 'test_helper' class Line::Bot::HeadersTest < Minitest::Test def test_request_headers assert_equal( { 'User-Agent' => "LineBotGem/#{Line::Bot::VERSION}", 'Content-Type' => 'application/json; charset=UTF-8', 'X-Line-ChannelID' => $...
33.705882
80
0.568935
f7a479097565d6aea992e35a8da00699eec2b869
2,811
module Relevance module Tarantula class FormSubmission include Relevance::Tarantula attr_accessor :meth, :action, :data, :attack, :form class << self def attacks # normalize from hash input to Attack @attacks = @attacks.map do |val| Hash === val ? Releva...
28.393939
122
0.579153
39ba5eb7530f21fa44aa3570eb0e9c91a8b08d5f
1,933
require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start 'rails' do add_filter "/admin/backdoors_controller.rb" add_filter "/errors_controller" add_filter "/spec/" add_filter "/...
30.68254
79
0.744956
8746725f843742fac6a5a75aa082e507d81644bd
342
cask "continuity-activation-tool" do version :latest sha256 :no_check url "https://github.com/dokterdok/Continuity-Activation-Tool/archive/master.zip" name "Continuity Activation Tool" homepage "https://github.com/dokterdok/Continuity-Activation-Tool/" app "Continuity-Activation-Tool-master/Continuity Act...
31.090909
82
0.78655
e94f317bb2e79569a0f0dbc26116cc089094073e
1,346
class Pelikan < Formula desc "Production-ready cache services" homepage "https://twitter.github.io/pelikan" url "https://github.com/twitter/pelikan/archive/0.1.2.tar.gz" sha256 "c105fdab8306f10c1dfa660b4e958ff6f381a5099eabcb15013ba42e4635f824" license "Apache-2.0" head "https://github.com/twitter/pelikan.gi...
38.457143
93
0.782318
1c46b0346456c93346a71a64547b23cca3c53d96
253
# encoding: UTF-8 class Qqmusic < Cask url 'http://dldir1.qq.com/music/clntupate/QQMusicForMacV1.3.0.dmg' homepage 'http://y.qq.com' version '1.3.0' sha256 '2f1198f9b3e1407822a771fcdfdd643b65f35f6b51cc0af8c6b11fa11fc30a0d' link 'QQ音乐.app' end
28.111111
75
0.758893
f840952e2715786a74ad7f77a23e1de21265d428
6,613
#-- copyright # OpenProject is an open source project management software. # Copyright (C) 2012-2021 the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork ...
36.738889
126
0.701799
6259eb6e2417dad9de59ad78ba6bb1e4979f17da
12,086
require "rails_helper" RSpec.describe Api::Customer::Cart::CheckoutsController, type: :request do include TimeZoneHelpers let(:place) { create :place, nombre: "loh" } let(:user) { create :user, :customer, current_place: place } before { login_as user } describe "submits my order" do let(...
28.504717
88
0.59118
1da866b4d47eeda9893cf1230c9da33cae2b3172
1,329
class Avce00 < Formula desc "Make Arc/Info (binary) Vector Coverages appear as E00" homepage "http://avce00.maptools.org/avce00/index.html" url "http://avce00.maptools.org/dl/avce00-2.0.0.tar.gz" sha256 "c0851f86b4cd414d6150a04820491024fb6248b52ca5c7bd1ca3d2a0f9946a40" bottle do cellar :any_skip_relocati...
41.53125
107
0.775019
edb0a47d31126f95f43ab215338d9e3af7607d5d
22,814
# require "pry" # require "pry-rescue" require "json" Puppet::Type.type(:azure_route_table).provide(:arm) do mk_resource_methods def initialize(value = {}) super(value) @property_flush = {} @is_create = false @is_delete = false end def etag=(value) Puppet.info("etag setter called to chang...
42.484171
262
0.660472
ac615f8d683a970426e53db22b115434dedb047f
427
module SitemapSearch::Model def self.included(base) base.instance_eval do def site_map_search(options={}) @results = Page.search options[:query], :page => options[:page], :per_page => options[:per_page] ...
30.5
79
0.388759
b9c1009e359ee8bdeb52ad0140a5c531a255760f
1,212
require "language/node" class Nativefier < Formula desc "Wrap web apps natively" homepage "https://github.com/nativefier/nativefier" url "https://registry.npmjs.org/nativefier/-/nativefier-45.0.0.tgz" sha256 "dbe38a880655e48986cfab25f22f1f8c3a2a46eb9879f2bd77c827257227efd7" license "MIT" bottle do sha...
41.793103
139
0.793729
abb394cb94fa4329395e47e659d7d4ca0ae5d3af
377
require 'acts_as_list' require 'acts_as_markup' require 'active_admin-acts_as_list' require 'friendly_id' require 'paperclip' require 'ecm/pictures/engine' require 'ecm/pictures/configuration' require 'ecm/pictures/routing' require 'ecm/pictures/version' require 'ecm/pictures/active_admin/pictureable_helper' module E...
19.842105
54
0.811671
393065da0a8ea14243037a5e72e3d2001d852b42
3,317
require 'spec_helper' describe 'aodh::notifier' do let :pre_condition do "class { '::aodh': }" end shared_examples_for 'aodh-notifier' do context 'with workers' do let :params do { :workers => 8 } end it 'configures workers' do is_expected.to contain_aodh_config('not...
28.110169
100
0.588484
38d5307476ed7c58295a6095d37f9faab9ae49b8
6,501
# frozen_string_literal: true # Copyright 2022 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
46.106383
213
0.676665
08526bd322846605967f0918f04efb9251782f1f
3,482
require 'spec_helper_acceptance' describe "Package pinning:" do if fact('osfamily') != 'Suse' describe "Pinning enabled" do describe "Setup" do it 'should run successful' do write_hiera_config('') pp = "class { 'elasticsearch': config => { 'cluster.name' => '#{test_settings[...
32.240741
261
0.598219
1d429f867fd2582119d50826aca70f49959e28ad
1,099
namespace :scihist do # some tasks for managing config sets and collections through solr cloud, such as # but not limited to SearchStax-hosted solr. # # Config for solr location and collection name is taken from ScihistDigicoll:Env solr_url # # We use config set names that have a fingerprint digest on the e...
34.34375
95
0.733394
6a72c240f14a53320b83a22d006e892d1dca56bd
27,716
require "ostruct" require "ethon" require "uri" require "json" require "time" require 'active_support/core_ext/string/inflections' require 'active_support/core_ext/object/blank' module Sharepoint class Client FILENAME_INVALID_CHARS = '~"#%&*:<>?/\{|}' # @return [OpenStruct] The current configuration. a...
38.123796
150
0.64764
4a4bf065d545a6bc048d8c500692024495209df4
1,028
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'emil_seyidov_view_tool/version' Gem::Specification.new do |spec| spec.name = "emil_seyidov_view_tool" spec.version = EmilSeyidovViewTool::VERSION spec.authors = ["Emil ...
36.714286
80
0.65856
117fc753552151707168a1d0e1002bb6157f456f
1,202
require 'brainstem/api_docs/abstract_collection' require 'brainstem/api_docs/controller' module Brainstem module ApiDocs class ControllerCollection < AbstractCollection attr_accessor :include_internal def valid_options super | [ :include_internal ] end # ...
25.574468
76
0.623128
6af5b3d6a19bd7f4f9fb37ce1d5dd3604ad1785c
709
cask 'devolo-cockpit' do version '5.1.2' sha256 'ebec71ac589ac0fd8b9bf7c0209b8fba01203d52b7009c3073441592b2c4bd97' url "https://www.devolo.com/fileadmin/Web-Content/DE/products/hnw/devolo-cockpit/software/devolo-cockpit-v#{version.dots_to_hyphens}.dmg" appcast 'https://www.devolo.com/support/downloads/download...
41.705882
139
0.70945
1c3643aa161e19a69a3ce878fc9d0bf40805c559
1,083
require 'spec_helper' require 'support/feature_detection' # Tests the automatic usage of `current_user` as the `whodunnit` attribute on the draft object describe WhodunnitsController, type: :controller do let(:trashable) { Trashable.create!(name: 'Bob') } describe 'create' do it 'records `current_user` via `u...
27.769231
94
0.687904
bf45ce73871996457ebc384e9ef906363c05f8da
467
module Intrigue module Entity class Person < Intrigue::Core::Model::Entity def self.metadata { :name => "Person", :description => "A Person", :user_creatable => true, :example => "Bazooka Joe" } end def validate_entity name =~ /^[[[:word:]]\,\s]+$/ end def detail_string ...
14.59375
44
0.599572
f875460e0791d458a311fcf4df9515ca848bf822
919
# frozen_string_literal: true class FindLogsTfUploadsInLog attr_accessor :log LOGS_TF_UPLOADED_REGEX = %r{L (?'time'.*): \[TFTrue\] The log is available here: http://logs.tf/(?'logs_tf_id'\d+). Type !log to view it.} def self.perform(log) finder = new(log) finder.parse_log finder.logs_tf_upload_ids...
23.564103
140
0.706202
03221eb5a1c293d2a7c73b50d181c76c8b82c4e3
440
class User < ApplicationRecord # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :masqueradable, :database_authenticatable, :confirmable, :registerable, :trackable, :recoverable, :rememberable, :validatable, :omniauthable has_one_attached :...
36.666667
149
0.790909
ab669358a082e07e9f3d6b07160334b2f68f26ba
4,615
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2017_10_01 module Models # # Inbound NAT pool of the load balancer. # class InboundNatPool < SubResource ...
32.5
79
0.52221
bf4d4a5ebf71acb949665831d58f29f524465d14
843
# frozen_string_literal: true require 'json' module EsArgParser def self.parse query_string, vars = {} # Remove new line characters json_string = query_string.gsub(/\\n/, '').gsub(/\\r/, '').gsub(/%/, '%%') # Ready string to accept curator vars # rubocop:disable Style/FormatStringToken converte...
28.1
90
0.670225
01e41c7454b43187529dcde1ce34aa5ef692f81d
544
require './config/environment' require 'rack-flash' class ApplicationController < Sinatra::Base configure do set :public_folder, 'public' set :views, 'app/views' enable :sessions set :session_secret, "secret" use Rack::Flash, sweep: true end get "/" do if logged_in? redirect "/pro...
15.111111
51
0.621324
18d039dccd52abb111042bed4c41c81d586faa3c
700
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| s.name = 'clevertap_flutter' s.version = '0.0.1' s.summary = 'Flutter Plugin For Clevertap' s.description = <<-DESC Flutter Plugin For Clevertap ...
31.818182
83
0.562857
91cb2776f999a68bfc1915bfd56ac645873c4269
1,980
require 'rails_helper' RSpec.describe MessagesController, type: :controller do describe "GET #index" do it "returns http success" do get :index expect(response).to have_http_status(:success) expect(assigns(:messages)).to eq([]) expect(response).to render_template(:index) end end ...
30
119
0.639394
03a79072a7043e4d8e16f1bcab1fe3d25e2b39bd
271
require 'active_support/concern' module Versioned extend ActiveSupport::Concern included do has_paper_trail on: [:create, :update], save_changes: true, ignore: [:updated_at, :created_at], if: proc { |_x| User.current.present? }, class_name: 'Version' end end
27.1
162
0.734317
033df0f2874260f661a83ae9a3177afdab96feba
3,243
require 'legacy_spec_helper' describe PDFKit::Source do describe "#url?" do it "returns true if passed a url like string" do source = PDFKit::Source.new('http://google.com') expect(source).to be_url end it "returns false if passed a file" do source = PDFKit::Source.new(File.new(__FILE_...
32.757576
114
0.658033
11361104c5a238b38371883b58d8910575fc949e
8,033
# encoding: UTF-8 # frozen_string_literal: true describe API::V2::Account::Withdraws, type: :request do let(:member) { create(:member, :level_3) } let(:token) { jwt_for(member) } let(:level_0_member) { create(:member, :level_0) } let(:level_0_member_token) { jwt_for(level_0_member) } describe 'GET /api/v2/a...
41.621762
159
0.642599
e9f6137119e866aa61edec371492cdbbc1dde210
1,530
# # This class was auto-generated from the API references found at # https://epayments-api.developer-ingenico.com/s2sapi/v1/ # require 'ingenico/connect/sdk/factory' require 'ingenico/connect/sdk/domain/definitions/card_without_cvv' require 'ingenico/connect/sdk/domain/payment/complete_payment_card_payment_method_speci...
39.230769
125
0.793464
18f9f404ac9e21e353183c1671d587aecba5c9d0
2,827
require 'test_helper' class BigDecimalAnnuitiesTest < Minitest::Test include AnnuitiesHelper def test_improve_interest_rate # Based on Example 6 in http://oakroadsystems.com/math/loan.htm . assert_improve_interest_rate payment: BigDecimal.new('291'), periods: BigDecimal.new('48'), principal: BigDeci...
40.385714
78
0.713477
8775ba252c470e0af50db42abd4b7602cfb0b2d6
1,366
require_relative 'boot' require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module HackfestApp class Application < Rails::Application # Initialize configuration defaults for originally generated Rai...
40.176471
94
0.732796
1adfe10a41d50a58f2e156503efbeb486056369e
574
require "isodoc" require_relative "metadata" require_relative "xref" require_relative "i18n" module IsoDoc module Csa module Init def metadata_init(lang, script, i18n) @meta = Metadata.new(lang, script, i18n) end def xref_init(lang, script, klass, i18n, options) html = HtmlConv...
22.96
62
0.648084
28b3e79c1ff9fb02a00f8972cd0c68fdfc9e8234
1,341
require 'spec_helper' describe 'environments routing' do let(:project) { create(:project) } let(:environment) do create(:environment, project: project, name: 'staging-1.0/review') end let(:environments_route) do "#{project.full_path}/environments/" end describe 'routing ...
27.367347
73
0.646532
7a9e697f241cf05daa4e458cc8920f60e9499890
3,702
class Headword < ActiveRecord::Base has_many :orthographs has_many :phonetic_forms, :through => :orthographs has_many :notes, as: :annotatable translates :form, :fallbacks_for_empty_translations => true globalize_accessors :locales => (Language.defined_language_codes | [I18n.default_locale]) accepts_nest...
33.654545
141
0.708266
91da79dc53f2b1de41e44000a99e9bf79d7c38c0
854
## # $Id$ ## ## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' require 'msf/core/payload/gen...
22.473684
72
0.619438
ab00e1c1d8e0d9795d2aff3f06097b834cfe7713
12,364
require 'test_helper' class MonerisTest < Test::Unit::TestCase include CommStub def setup Base.mode = :test @gateway = MonerisGateway.new( :login => 'store1', :password => 'yesguy' ) @amount = 100 @credit_card = credit_card('4242424242424242') @options = { :order_id => '1', :...
31.380711
225
0.716839
e8cc56bedb3c1638e54b7702d95ccd355654c986
18,259
class ServiceController < ApplicationController include Mixins::GenericSessionMixin include Mixins::GenericShowMixin include Mixins::BreadcrumbsMixin before_action :check_privileges before_action :get_session_data after_action :cleanup_action after_action :set_session_data SERVICE_X_BUTTON_ALLOWED_ACT...
33.258652
152
0.675502
795aed22b96704fb082db4d5ecdc1da97237d4bf
59
class Transaction < Sequel::Model one_to_one :ride end
14.75
33
0.745763
ac6c9cb7f612ed89f4046b57e3e6d1b35daf9e43
315
require "spec_helper" RSpec.describe SolidusSixPayments::Terminal do subject { described_class.new } let(:hash) { { "TerminalID": '17925560' } } describe 'to_hash' do it 'returns the hash representation of the terminal id' do expect(subject.to_hash).to eq(hash) end end end
17.5
62
0.666667
bfa9277b9a817c220fc7f45c3b459a6c9203aed7
620
module Intrigue module Ident module Check class ManageEngine < Intrigue::Ident::Check::Base def generate_checks(url) [ { :type => "fingerprint", :category => "application", :tags => [""], :vendor =>"ManageEngine", :product =>"Servi...
22.142857
53
0.469355
017fc1172a7f770463a904fbc6a78ce99682ba75
242
Sequel.migration do change do alter_table :discovery_response_services do add_foreign_key :sp_sso_descriptor_id, :sp_sso_descriptors, null: false, foreign_key_constraint_name: 'sp_drs_fkey' end end end
26.888889
78
0.719008
ffe58eef0d34e171274ade728afc6098d7743a84
2,195
# encoding: utf-8 # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # /spec/fixtures/responses/whois.nic.ki/status_registered.expected # # and regenerate the tests with the following rake task # # $ rake spec:generate # require 'spec_helper' require 'whoi...
26.768293
82
0.668793
ac272f71aefd72a175a781decf185c4989f4d39a
866
class Clac < Formula desc "Command-line, stack-based calculator with postfix notation" homepage "https://github.com/soveran/clac" url "https://github.com/soveran/clac/archive/0.3.3.tar.gz" sha256 "e751e31bd2d3cdf6daa80da0ea7761630767aa22df6954df35997d1fcc5fa8ae" license "BSD-2-Clause" bottle do cellar ...
36.083333
93
0.778291
e89371aa2a9607a333c58803a98c98a3878a22ba
4,709
# frozen_string_literal: true module Hesa module CodeSets module DegreeTypes # https://www.hesa.ac.uk/collection/c21053/xml/c21053/c21053codelists.xsd MAPPING = { "001" => "BEd", "002" => "BEd (Hons)", "003" => "BSc/Education", "004" => "BSc Hons /Education", ...
46.623762
82
0.543852
ac2f04678c6837c259a6d65b9e32b67c4581dfed
1,971
class Pgpdump < Formula desc "PGP packet visualizer" homepage "https://www.mew.org/~kazu/proj/pgpdump/en/" url "https://github.com/kazu-yamamoto/pgpdump/archive/v0.33.tar.gz" sha256 "fe580ef43f651da59816c70f38f177ea4fa769d64e3d6883a9d1f661bb0a6952" license "BSD-3-Clause" head "https://github.com/kazu-yamamo...
46.928571
122
0.775748
21ed4ff96cec2fdce20919d6fa1b73f8400eac8a
1,040
$:.push File.expand_path("../lib", __FILE__) # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = "proxy_manager" s.version = '1.0.1' s.authors = ["Kirill Platonov"] s.licenses = ['MIT'] s.email = ["platonov.kd@gmail.com"] s.homepage = "https:/...
40
78
0.630769
f755fb1b75fd1b91e13f9812b6704ca7b8049c2e
155
json.array!(@auditoria) do |auditorium| json.extract! auditorium, :id, :name, :seating_capacity json.url auditorium_url(auditorium, format: :json) end
31
57
0.754839
acfa86a7c8412bc33ff8b79455250cfd27705f4d
91
require 'gather_content/error/request_error' module GatherContent module Error end end
15.166667
44
0.824176
189233a7c9d1b859f6e66c6d1acc0351752d2e4a
23
class DecOperations end
11.5
19
0.913043