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
032a74f3542424058eefbd2eacf4a631bf0114a1
2,303
# encoding: utf-8 RobbinSite.controllers :blog do get :index do @blogs = Blog.order('id DESC').page(params[:page]) render 'blog/index' end get :tag_cloud, :map => '/tag' do render 'blog/tag_cloud' end get :tag, :map => '/tag/:name' do @blogs = Blog.tagged_with(params[:name]).order('c...
28.7875
109
0.628311
1d0b10b7e5d8eab726352ae604886333b90fea12
1,566
require 'action_controller' module Rails5BeforeRender module BeforeRender extend ActiveSupport::Concern include ActiveSupport::Callbacks included do define_callbacks :render, terminator: ->(controller, result_lambda) { result_lambda.call if result_l...
36.418605
146
0.615581
d5da55568fcfc852fbbf669d9d6524f3f3baa7af
320
require 'hanami/interactor' class FindOrCreateUserForAuth include Hanami::Interactor expose :user def initialize repository: UserRepository.new @repository = repository end def call(auth) @user = @repository.find_by_provider_and_uid(auth.provider, auth.uid) || @repository.register(auth) end end
20
103
0.759375
ab4bb4dc3e785c304924475507663d93799e5b79
1,278
# frozen_string_literal: true require "active_record_unit" require "active_record/railties/collection_cache_association_loading" ActionView::PartialRenderer.prepend(ActiveRecord::Railties::CollectionCacheAssociationLoading) class MultifetchCacheTest < ActiveRecordTestCase fixtures :topics, :replies def setup ...
30.428571
94
0.737089
4a5afd03331b6b26a3949e4d385141ae6ba17c07
1,248
require 'rails_helper' RSpec.describe StaticPagesController, type: :controller do render_views describe "GET #home" do it "returns http success" do get :home expect(response).to have_http_status(:success) assert_select "title", "Home | Ruby on Rails Tutorial Sample App" assert_template...
27.733333
74
0.671474
18c428483be8dedba0df3275ffc77001ab6c8c21
1,213
# frozen_string_literal: true require "test_helper" class CommandEventsFetchServiceTest < ActiveSupport::TestCase test "fetches command events tied to a given project" do # Given user = User.create!(email: "test@cloud.tuist.io", password: Devise.friendly_token.first(16)) account = user.account proje...
29.585366
116
0.649629
5dd18a6ff841089135da4234febadc2f97d0fba2
169
module DocRipper module Formats class MsDocRipper < Ripper::Base def rip @text ||= %x(antiword #{to_shell(file_path)}) end end end end
14.083333
53
0.60355
6202d123d16bae70e76e4c3a917f12a8f72d7175
13,214
# frozen_string_literal: true require 'find' require 'yaml' require 'shellwords' require_relative '../ext/swiftlint/swiftlint' module Danger # Lint Swift files inside your projects. # This is done using the [SwiftLint](https://github.com/realm/SwiftLint) tool. # Results are passed out as a table in markdown. ...
35.050398
138
0.642122
5d8ac6056dba8d1bd0c59fc541ade0e1c4b19e9e
7,583
=begin #NSX-T Manager API #VMware NSX-T Manager REST API OpenAPI spec version: 2.5.1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.7 =end require 'date' module NSXT # HPM client data collection configuration class ClientTypeCollectionConfiguration # The ...
31.334711
182
0.642754
18b0be79bb5212a0a8fa16bcd713a1e75feb2eae
7,176
# -*- encoding: binary -*- # :enddoc: require 'socket' module Unicorn module SocketHelper # :stopdoc: include Socket::Constants # prevents IO objects in here from being GC-ed IO_PURGATORY = [] # internal interface, only used by Rainbows!/Zbatery DEFAULTS = { # The semantics for TCP_DE...
34.334928
79
0.625697
6ab9ab331fdb927b1839ba1f8e12116b98c4fc31
2,562
class Admin::ShipmentsController < Admin::BaseController before_filter :load_data, :except => :country_changed before_filter :require_object_editable_by_current_user, :only => [:update] resource_controller belongs_to :order update.wants.html do if @order.in_progress? redirect_to admin_order_adjust...
32.025
121
0.750585
03f8089a8d9791e2565f14b40b1e3760a7b89123
1,710
class Chezmoi < Formula desc "Manage your dotfiles across multiple diverse machines, securely" homepage "https://chezmoi.io/" url "https://github.com/twpayne/chezmoi.git", tag: "v2.0.9", revision: "7c7213b32435823ce3fd0dc468fdecefe7c5e8f9" license "MIT" head "https://github.com/twpayne/chezmo...
38
122
0.72807
f8929313170b74b3cb21fbcce497b5a2268f540a
208
require 'test_helper' class AuthenticationControllerTest < ActionDispatch::IntegrationTest test "should get authenticate" do get authentication_authenticate_url assert_response :success end end
20.8
68
0.8125
3823941763a21e19a841db3c43d344293bb023fe
452
module Liquid module Forms module Account class BillingAddress < Forms::Update def html_class_name 'formtastic account' end def path admin_account_payment_details_path end end class PersonalDetails < Forms::Update def html_class_name...
16.142857
44
0.575221
b94535c537e1ccc0950228a6bbca6fe8ef19830d
59
require 'krump/kafka_consumer' require 'krump/ssh_tunnels'
19.666667
30
0.830508
39aa28783f968f3ffe86dc2d0f001f6ec7266862
1,210
# # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 # # 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 # #...
26.304348
74
0.700826
015f95d658be9392bee4da867adca6d56b4a5b5b
140
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_birdious_session'
35
78
0.807143
3333e32c8d59951e3fed5c1ba2f4899b0eab3692
455
class Micropost < ApplicationRecord belongs_to :user default_scope -> { order(created_at: :desc) } mount_uploader :picture, PictureUploader validates :user_id, presence: true validates :content, presence: true, length: {maximum: 140} validate :picture_size private # Validates the size of an uploade...
23.947368
60
0.720879
edfc4a1e8af3c6c30c96139e16da60eec7804a14
1,352
# Copyright (c) 2018 Public Library of Science # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, pub...
43.612903
76
0.76997
ff1d0e20c45e639334040d2b6d0932cbbba2fa1a
414
# frozen_string_literal: true module Blacklight module Response class SortComponent < ViewComponent::Base def initialize(search_state:, param: 'sort', choices: {}, id: 'sort-dropdown', classes: [], selected: nil) @param = param @choices = choices @search_state = search_state ...
24.352941
112
0.620773
398b74161e50ab2d1b4a9c09dbe00f49b368373a
3,144
# Copyright (C) 2010 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 agr...
36.988235
77
0.618957
39a862b380fbca743a1dfeb22fc04851587161a3
2,734
class UpdateBackersByPeriodViewWithDeletedBackerState < ActiveRecord::Migration def up drop_view :backers_by_periods create_view :backers_by_periods, <<-SQL WITH weeks AS ( SELECT generate_series * 7 AS days FROM generate_series(0, 7) ), current_period AS ( SELECT 'current_period'::text as series, ...
25.314815
132
0.704828
62c4c9a67381c5e42cfed5c806cf677dc7fba948
767
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| s.name = 'my_plugin_ios' s.version = '0.0.1' s.summary = 'An iOS implementation of the my_plugin plugin.' s.description = <<-DESC An iOS implementation of the my_plug...
34.863636
83
0.556714
2807805b44fd8fe1c183d74fd1f3ceedaf8d13de
698
Pod::Spec.new do |s| s.name = "MONK" s.version = "1.1.2" s.summary = "Mobelux Network Kit, a simple networking library based on URLSession in Swift" s.homepage = "https://github.com/Mobelux/MONK" s.license = "MIT" s.author = { "Mobelux" => "contact@mobelux.com" } s...
31.727273
98
0.603152
d5d378e8b1a8c30aa6a2538aed8b637da78b2ef4
20,455
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.110899
137
0.695869
1daeff5c53d76d19625b04ba2d2c61651cb21146
2,551
# Xcode 4.3 provides the Apple libtool. # This is not the same so as a result we must install this as glibtool. class Libtool < Formula desc "Generic library support script" homepage "https://www.gnu.org/software/libtool/" url "https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz" mirror "https://ftpmirror.gnu...
36.971014
107
0.673853
e219041e43d29a8c28c6766e7b4261700584605b
140
require 'rails_helper' RSpec.describe "chart1/index.html.erb", type: :view do pending "add some examples to (or delete) #{__FILE__}" end
23.333333
56
0.735714
e257b12826da9b8f98f374e7000cdbb6c721a73e
3,130
require 'forwardable' require 'set' class HBase class Schema extend Forwardable def_delegators :@schema, :inspect, :to_s def initialize @schema = {} @lookup = {} end # [cq] # [cf:cq] # @param [Symbol] table # @param [Hash] definition def []= table, definition if definition.nil? || defin...
22.357143
84
0.565815
bf5aee42f44b32226fd1b435595a1c82df5244d8
1,285
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v4/enums/app_placeholder_field.proto require 'google/protobuf' require 'google/api/annotations_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/ads/googleads/v4/enums/app_placeholder_field.proto", ...
33.815789
201
0.732296
f749046724e6f720082b4a5d278eb21a994b9222
71
{ :'bo_IN' => { :i18n => { :plural => { :keys => nil, :rule => } } } }
71
71
0.366197
b9e62ab021e3223e7b19ef396095fe9fdce93a29
1,834
# config valid for current version and patch releases of Capistrano lock '~> 3.16.0' set :application, 'opencourts-prokuratura' set :repo_url, 'git@github.com:otvorenesudy/otvorenesudy-prokuratura.git' # Sidekiq set :sidekiq_processes, 1 # Rbenv set :rbenv_type, :user set :rbenv_ruby, File.read('.ruby-version').stri...
26.2
113
0.675027
38d380d0a2bf8f07b4da963d2169145c538f1107
1,348
# frozen_string_literal: true lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'super_gem/version' Gem::Specification.new do |spec| spec.name = 'super_gem' spec.version = SuperGem::VERSION spec.authors = ['Oleg Zubchenko'] spec.email ...
39.647059
87
0.672107
33371c2951be831e899b42ffb29ee7e8dd9b4a0b
1,949
require 'spec_helper' module Finitio describe Syntax, "relation_type" do subject{ Syntax.parse(input, root: "relation_type") } describe "compilation result" do let(:compiled){ subject.compile(type_factory) } context 'empty heading' do let(:input){ '{{ }}' } ...
22.929412
68
0.493586
1a4883efb54675295e633b2ef71645f20279c663
1,430
# Copyright (C) 2006-2007 Kurt Stephens <ruby-currency(at)umleta.com> # See LICENSE.txt for details. # The Currency::Exchange package is responsible for # the buying and selling of currencies. # # This feature is currently unimplemented. # # Exchange rate sources are configured via Currency::Exchange::Rate::Source. # ...
29.183673
129
0.697203
5d5a4c91e254f0e084dd7eac194c8b0f69cc3b33
3,627
require 'text_alignment' module AnnotationsHelper def annotations_count_helper(project, doc = nil, span = nil) project = doc.projects.first if project.nil? && doc.projects_num == 1 if project if project.annotations_accessible?(current_user) if doc.present? doc.get_denotations_count(project.id, span) ...
34.542857
141
0.6992
e205741d597d6917039f9e593acb8875e608ec25
1,786
# -*- ruby -*- # encoding: utf-8 require File.expand_path("lib/google/cloud/gaming/v1/version", __dir__) Gem::Specification.new do |gem| gem.name = "google-cloud-gaming-v1" gem.version = Google::Cloud::Gaming::V1::VERSION gem.authors = ["Google LLC"] gem.email = "googleapis-packa...
47
396
0.676372
18fe064a68fed929b77f0e0f5c79cb2004b54edf
925
cask "deezer" do version "5.30.170" sha256 "c090cf238a09a36b2533abf2ac7969afc801312fc20ddf4c5e6c4ffcaccc4d74" url "https://www.deezer.com/desktop/download/artifact/darwin/x64/#{version}" name "Deezer" desc "Music player" homepage "https://www.deezer.com/download" livecheck do url "https://www.deezer...
29.83871
82
0.722162
f79a44b89d9cdb8eb80fac3c96d95e4df2325ccd
48
module SparkPost VERSION = '0.1.2'.freeze end
12
26
0.708333
e287f5799c7429e3fa36190c1c2229edb5390d49
1,116
# == Schema Information # # Table name: weather_periods # # id :integer not null, primary key # weather_id :integer # start_time :datetime # precipitation_type :string(255) # wind_speed :float # created_at :datetime...
30.162162
70
0.55914
ac3cba377b9efd03a4e9902dcb501410f92b9beb
2,242
# # Cookbook Name:: gitlab # Recipe:: mysql # # Copyright 2012, Seth Vargo # # 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 requir...
29.5
104
0.742194
bbfb71406d43cd8d1ced8786c903519e2e4fd591
594
require_relative '../../lib/LitleOnline' #Void void_info = { #litleTxnId contains the Litle Transaction Id returned on the deposit/refund 'litleTxnId' => '100000000000000001', 'id'=>'test' } response = LitleOnline::LitleOnlineRequest.new.void(void_info) #display results puts "Response: " + response.voidResp...
31.263158
78
0.765993
1ac966cfe5ab3c0a59e9d2c348b3befa6260d7be
3,905
require 'rails_helper' RSpec.describe DocAuthRouter do describe '.client' do before do allow(Figaro.env).to receive(:doc_auth_vendor).and_return(doc_auth_vendor) allow(Figaro.env).to receive(:acuant_simulator).and_return(acuant_simulator) end context 'legacy mock configuration' do let(...
29.583333
97
0.641741
bbeeb95de1819c3b66a609ed58e0a175a16ff851
8,447
# frozen_string_literal: true module Hackbot module Interactions module Concerns # rubocop:disable Metrics/ModuleLength module Mirrorable extend ActiveSupport::Concern MIRROR_CHANNEL = Rails.application.secrets.hackbot_mirror_channel_id included do before_handle :m...
32.117871
80
0.580561
7ae85e71532571df7357705b8b0758411f5e857a
918
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint advanced_in_app_review.podspec` to validate before publishing. # Pod::Spec.new do |s| s.name = 'advanced_in_app_review' s.version = '0.0.1' s.summary = 'Advanced In App Reviews ...
38.25
105
0.604575
33aed707071adaa1b57bffe6905a23351f28c3ad
1,992
class User < ApplicationRecord attr_accessor :remember_token, :activation_token, :reset_token before_save :downcase_email before_create :create_activation_digest VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/i validates :name, presence: true, length: {maximum:50} validates :email, ...
26.918919
76
0.702811
18074707d5974ae41e496f11861575aa157076ca
7,792
# May, 2015 # # Copyright (c) 2015-2016 Cisco and/or its affiliates. # # 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 ...
29.740458
167
0.678901
2845266f53b67fa6579ebe489526bb7196652ada
326
class SessionsController < ApplicationController def create user = User.find_or_create_by_auth(request.env['omniauth.auth']) session[:user_id] = user.id redirect_to root_path, notice: "Logged in as <b>#{user.name}</b>" end def destroy session[:user_id] = nil redirect_to root_path, notice: "Logged out" en...
25.076923
67
0.742331
015757fc256ec55d033e1fb2f8377c0bb9edb870
259
require File.expand_path('../../test_helper', __FILE__) require 'mocha/inspect' class StringInspectTest < Mocha::TestCase def test_should_use_default_inspect_method string = "my_string" assert_equal %{"my_string"}, string.mocha_inspect end end
21.583333
55
0.760618
ab7ff710c21143fec3c1ecb781a9e6c47827843c
482
# The Book of Ruby - http://www.sapphiresteel.com # using 'yield' to execute a block def aMethod puts('--- In aMethod ---' ) yield end aMethod{ puts( "Good morning" ) } def caps( anarg ) puts('--- In caps method ---' ) yield( anarg ) end caps( "a lowercase string" ){ |x| x.capitalize! ; puts( x ) } puts( "A...
16.066667
61
0.595436
f79d00ebd71ff83c08bb816ca48039438d89d27a
281
module Nis::Endpoint module Chain module Height # @return [Nis::Struct::BlockHeight] # @see https://nemproject.github.io/#block-chain-height def chain_height Nis::Struct::BlockHeight.build request!(:get, '/chain/height') end end end end
23.416667
70
0.644128
bf8b8938aab60019a0690dc392195fefa4340314
153
module Wikidata class Statement < Wikidata::HashedObject def mainsnak @mainsnak ||= Wikidata::Snak.new(data_hash.mainsnak) end end end
19.125
58
0.705882
91f0b9121b437f15ac60a5b0c95b7b9211f5eaef
76,837
# Copyright 2015 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 applicable law or agreed to in writing, ...
42.311123
150
0.559574
5de1300660ae64a7ada357ed750e4dcff412c8a0
353
require 'metasploit/framework/data_service/remote/http/response_data_helper' module RemoteDbExportDataService include ResponseDataHelper DB_EXPORT_API_PATH = '/api/v1/db-export' def run_db_export(opts) response = json_to_hash(self.get_data(DB_EXPORT_API_PATH, nil, opts)) process_file(response[:db_expo...
25.214286
76
0.793201
7a57f181f689019d7b8e1f2783e5290ae1cec424
819
# frozen_string_literal: true require_relative 'base' module Logux module Test module Matchers class BeApproved < Base def matches?(actual) @actual = JSON.parse(actual.body) be_approved?(@actual) end def failure_message "expected that #{pretty(@actua...
21.552632
66
0.54823
e98ec14914a5c271966c961edafe69c77fb06ea3
6,650
module Transbank module TransaccionCompleta class Transaction extend Utils::NetHelper CREATE_TRANSACTION_ENDPOINT = 'rswebpaytransaction/api/webpay/v1.0/transactions' TRANSACTION_INSTALLMENTS_ENDPOINT = 'rswebpaytransaction/api/webpay/v1.0/transactions/:token/installments' COMMIT_TRANSACT...
56.355932
162
0.709774
e8be71e627252c815899100658770e8db62786a5
27,370
require 'spec_helper' require 'actions/services/service_instance_update' module VCAP::CloudController RSpec.describe ServiceInstanceUpdate do let(:services_event_repo) do instance_double(Repositories::ServiceEventRepository, record_service_instance_event: nil, user_audit_info: user_audit_info) end ...
38.822695
147
0.618816
d544bf7b6b8c6134477e06ce131ac9c252afe4d0
270
module VagrantPlugins module GuestFreeBSD class Config < Vagrant::Config::Base attr_accessor :halt_timeout attr_accessor :halt_check_interval def initialize @halt_timeout = 30 @halt_check_interval = 1 end end end end
19.285714
40
0.674074
4a228d5e3de84521fdc6af2b56f6c0b90e18f4d2
687
require 'spec_helper' describe 'cis_hardening::auth::su' do on_supported_os.each do |os, os_facts| context "on #{os}" do let(:facts) { os_facts } # Check for default class it { is_expected.to contain_class('cis_hardening::auth::su') } # Ensure that Ensure access to...
24.535714
79
0.595342
abbb87dd48ff58006245ce2a036358a58513eaf9
491
Pod::Spec.new do |s| s.name = "AeroGearHttp" s.version = "0.2.0" s.summary = "Lightweight lib around NSURLSession to ease HTTP calls." s.homepage = "https://github.com/aerogear/aerogear-ios-http" s.license = 'Apache License, Version 2.0' s.author = "Red Hat, Inc." s.source...
40.916667
103
0.604888
261a514244d3d54e64a20b252f442517851ef76b
4,387
require 'jekyll/document' require 'fileutils' module Jekyll module Webp # # A static file to hold the generated webp image after generation # so that Jekyll will copy it into the site output directory class WebpFile < StaticFile def write(dest) true # Recover from strange exception wh...
39.169643
131
0.596991
f85c4f6e857cc58ea9f9633f6b2d939270c08ef1
2,227
require 'active_model' module Wiki class Attachment include ActiveModel::AttributeMethods include ActiveModel::Conversion include ActiveModel::Dirty extend ActiveModel::Naming define_attribute_methods :name, :content attr_accessor :wiki, :name, :content, :path, :format alias :id :path def name=(val...
19.034188
86
0.652896
5d35139f2ce18ddaec737fc4a7d5376174efe307
1,166
require "language/node" class ContentfulCli < Formula desc "Contentful command-line tools" homepage "https://github.com/contentful/contentful-cli" url "https://registry.npmjs.org/contentful-cli/-/contentful-cli-1.4.10.tgz" sha256 "fe7a3787e68fb33b349bb721ff9fb82a6ae370567355455e8618d666fb6d2a56" head "https:...
37.612903
93
0.767581
617296748f43554748b73f4cfbf9e5f808485f16
1,866
module Fog module AWS class ELBV2 class Real require 'fog/aws/parsers/elbv2/set_ip_address_type' IP_ADDRESS_TYPES = ['ipv4', 'dualstack'] # Sets the type of IP addresses used by the subnets of the specified Application Load Balancer. # # ==== Parameters # * ...
33.321429
193
0.533226
bbad7255ef0b53f277298d156da5c7d6f76e468d
4,293
# encoding: utf-8 require 'spec_helper' describe Rubocop::Cop::Style::EmptyLinesAroundBody do subject(:cop) { described_class.new } it 'registers an offense for method body starting with a blank' do inspect_source(cop, ['def some_method', '', ' do_s...
32.522727
79
0.479152
28be6d6b7543f2cfd445b62679388df24877d4dc
436
class MarkupController < ApplicationController layout 'markup_reference' verify :params => [:element_id], :xhr => true, :only => :preview def preview respond_to(:js) end def reference @examples = WikiEngine.default_engine.markup_examples @examples[_('Links')] += [ "A solution to this pro...
24.222222
70
0.662844
ff21a10f028266edada5948e18968a260d667440
1,336
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v2/enums/target_cpa_opt_in_recommendation_goal.proto require 'google/protobuf' require 'google/api/annotations_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/ads/googleads/v2/enums/target_cpa_opt...
39.294118
253
0.775449
336c6f5f0bf348d83b7fb5602326b16a24553909
2,408
class BerkeleyDb < Formula desc "High performance key/value database" homepage "https://www.oracle.com/technology/products/berkeley-db/index.html" url "http://download.oracle.com/berkeley-db/db-6.2.23.tar.gz" sha256 "47612c8991aa9ac2f6be721267c8d3cdccf5ac83105df8e50809daea24e95dc7" bottle do cellar :any ...
31.272727
96
0.647841
87627437015a9b57b6f43251fc88104963c681ae
488
module ActionView module Helpers module AssetUrlHelper # Modify ActionView to recognize html files and the '/components' path. ASSET_EXTENSIONS.merge!({ html: '.html' }) ASSET_PUBLIC_DIRECTORIES.merge!({ html: '/components' }) # Convenience method for html. Based on ActionView's standard ...
30.5
77
0.670082
11470c7f437377c3d0deae761b0412fcd9a675ec
933
module ServerlessRedirector class Manifest Redirect = Struct.new(:path, :url) do def initialize(h = {}) super h.fetch('path'), h.fetch('url') end def serializable_hash(options = {}) { 'path' => path, 'url' => url } end end # Conditi...
19.4375
74
0.569132
e8a9748313174fd2a9caf89b7f7a92c0e6689cad
251
require 'test_helper' module DomainStatus class StatusControllerTest < ActionController::TestCase setup do @routes = Engine.routes end test "should get index" do get :index assert_response :success end end end
15.6875
57
0.685259
eda1c66fd8fbdf2ae33dbb31cfe5ef1e6a6692eb
8,456
=begin #NSX-T Manager API #VMware NSX-T Manager REST API OpenAPI spec version: 2.3.0.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.3.1 =end require 'date' module NSXT class AddManagementNodeSpec attr_accessor :mpa_msg_client_info # must be set to AddMa...
29.463415
107
0.625
9129572acf7740a41c6bda22d4868f1feece8507
1,058
require 'spec_helper' describe BitWallet::Transaction, vcr: {record: :once}, bitcoin_cleaner: true do describe 'on initialization' do it 'should be able to take a bitcoind hash' do wallet = build(:wallet) account = wallet.accounts.new('numba') address = account.addresses.new('mi3G43CcN') ...
34.129032
79
0.612476
1a98543eaff3876b64a3556b7153b37309170eee
1,685
class Yazpp < Formula desc "C++ API for the Yaz toolkit" homepage "https://www.indexdata.com/yazpp" url "http://ftp.indexdata.dk/pub/yazpp/yazpp-1.6.5.tar.gz" sha256 "802537484d4247706f31c121df78b29fc2f26126995963102e19ef378f3c39d2" bottle do cellar :any sha256 "fc6c551c54b78b477836368f8f4c24f39bc832...
32.403846
94
0.681306
21821cd212740826d39a8d324524669e3faaffef
140
require File.expand_path('../../prepare', __FILE__) client = Hessian2::Client.new('http://127.0.0.1:8080/') puts client.undefined_method
23.333333
55
0.714286
4a699561762f0f75d28f306434a7672c4fe80ae8
487
module Spree module Api module V2 module Platform class CmsSectionSerializer < BaseSerializer include ResourceSerializerConcern belongs_to :cms_page, serializer: :cms_page belongs_to :linked_resource, polymorphic: { Spree::Cms::Pages::StandardPage => :cms_p...
25.631579
57
0.603696
1cb5350077803ef6c78b0caf3acfd9989b0f8ec7
1,254
#Copyright (c) 2014 silva(http://silva.vc/) #Released under the MIT license #http://opensource.org/licenses/mit-license.php require 'json' require './twitty/simple_o_auth' require './twitty/tweet' require './twitty/tweeter' class Twitty attr_accessor :access_token, :access_token_secret, :consumer_key, :consumer_sec...
28.5
123
0.720893
014a6d65344d372142135f4c70344339b02b271f
137
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_Mappr_session'
34.25
75
0.80292
013abe5db5a984767c1475b5e4900853833b5d37
41
module Incognito VERSION = "0.1.3" end
10.25
19
0.682927
08ab6a9d1e7460496ae10000246336dce71711d8
8,709
require "rails_helper" RSpec.describe CaseContactsController, type: :controller do let(:organization) { build(:casa_org) } let(:volunteer) { create(:volunteer, :with_casa_cases, casa_org: organization) } let(:admin) { create(:casa_admin) } let(:supervisor) { create(:supervisor) } let(:case_id) { volunteer.ca...
36.439331
126
0.646458
e8adbdc95f9ec2edf9aec211a1996c09a637b65f
691
module VagrantPlugins module ProviderIijGp module Action class Boot def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_iijgp::action::boot") end def call(env) @env = env env[:ui].info I18n.t("vagrant.actions.vm.boot.boot...
23.827586
79
0.554269
e2b3f4b046fa443056692af771debb8fb75245fc
1,205
# frozen_string_literal: true module Mutations module ResolvesResourceParent extend ActiveSupport::Concern include Mutations::ResolvesGroup include ResolvesProject included do argument :project_path, GraphQL::ID_TYPE, required: false, description: 'The project ful...
27.386364
84
0.661411
edf4ed5961c72acd45f11b21ae4ee4e01a28ed97
4,657
module KnifeProfitbricks module CreateServer private def create_volumes unless configured_volumes = server_config['volumes'] error("No volumes specified! Please specify \"profitbricks\": {\"server\": \"volumes\": {\"root\": SIZE_IN_GB}} in your node!") end threads = configured_volu...
26.310734
135
0.596736
3856eae8db61b1d49aad7819792cba6d8ec85de4
1,105
class Pycodestyle < Formula desc "Simple Python style checker in one Python file" homepage "http://pycodestyle.pycqa.org" url "https://github.com/PyCQA/pycodestyle/archive/2.4.0.tar.gz" sha256 "b8656dc08ab4af23d001a42b3f68510d15790df28d7d666d3f91e3fe9bf8e938" head "https://github.com/PyCQA/pycodestyle.git" ...
29.078947
77
0.673303
5dc40acd4196c642bc6c40324a904a3015c5f790
370
# This migration comes from omerta_logger (originally 20150328213641) class CreateOmertaLoggerCasinoMaxBetHistories < ActiveRecord::Migration def change create_table :omerta_logger_casino_max_bet_histories do |t| t.references :casino t.datetime :date t.integer :max_bet t.index :casino_id, ...
30.833333
71
0.762162
8731dd6478cf4cbbf2bf9bd10cecbdc686f6d330
629
class CreateSocialStreamOstatus < ActiveRecord::Migration def change create_table :actor_keys do |t| t.integer :actor_id t.binary :key_der t.timestamps end add_index "actor_keys", "actor_id" create_table :remote_subjects, :force => true do |t| t.integer :actor_id t...
23.296296
87
0.675676
ac7ec0ab574679fdab5f42d853403e982cf96b5e
35
module Oat VERSION = "0.0.1" end
8.75
19
0.628571
03e6cba65b22356ee385765a0c8bbbff4e1c3a3f
125
# This file exists to support gem autoloading by bundler. require 'exception_notification' require 'exception_notifier/rake'
31.25
57
0.832
33a78f24c14fddf5c7434bae4c93457e1d19145e
1,079
class Gifski < Formula desc "Highest-quality GIF encoder based on pngquant" homepage "https://gif.ski/" url "https://github.com/ImageOptim/gifski/archive/1.2.4.tar.gz" sha256 "8a968a8b9f605746dfeaf1083a0c6a2a3c68e7d8d62f43bb6a6cd58e9a3d260e" license "AGPL-3.0-only" revision 1 bottle do cellar :any ...
33.71875
95
0.751622
26ed20d89525891f904c4c81cf7838fb7d44ead6
52
json.partial! "c_classes/c_class", c_class: @c_class
52
52
0.788462
1c34480d5dfd3a7dc2bed062833206bc64b22159
148
# frozen_string_literal: true class RemoveDeployBuildId < ActiveRecord::Migration[5.2] def change remove_column :deploys, :build_id end end
21.142857
56
0.777027
d5b32b7bc502747b3801d786f1354bac1ce7b268
1,192
cask 'carbon-copy-cloner' do version '5.1.8.5702' sha256 '705788888d32db8e9c84bf88bc5dc12326cdce683b6ed08c0944189733811778' # bombich.scdn1.secure.raxcdn.com/software/files was verified as official when first introduced to the cask url "https://bombich.scdn1.secure.raxcdn.com/software/files/ccc-#{version}.zip"...
39.733333
130
0.633389
611ce8b6840e77b4a22b58d8d269e3fe330dc794
923
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |spec| spec.name = "pairs" spec.version = "0.2.0" spec.authors = ["Justin Campbell"] spec.email = ["justin@justincampbell.me"] spec.summary...
36.92
74
0.663055
d56233abecb8c384911e1464e64c6e8b9e4665f3
879
class Kf5ExtraCmakeModules < Formula desc "Extra modules and scripts for CMake" homepage "https://www.kde.org" url "https://download.kde.org/stable/frameworks/5.58/extra-cmake-modules-5.58.0.tar.xz" sha256 "514011c12eeb2ac99d3118975832a279af2c2eea5e8b36b49c81962930b2ecc7" head "git://anongit.kde.org/extra-cm...
27.46875
89
0.67463
01e64429caeb1cc98c4a37b5a17ffb2fc2021c1e
1,152
Gem::Specification.new do |s| s.name = 'logstash-filter-ck' s.version = '1.0.0' s.licenses = ['MIT'] s.summary = "Adds ChainKit based event/log tamper protection" s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline...
41.142857
205
0.637153
39901ac4b3b5cc49ff8fec8b06f6781b57ef8adb
136
require 'spec_helper' describe "organisation_updates/update.html.haml" do pending "add some examples to (or delete) #{__FILE__}" end
22.666667
56
0.772059
38b1d9d6f29f67a6a46445416491d59bdca72814
1,551
require "yaml" module Jekyll class TagPage < Page def initialize(site, base, dir, tag) @site = site @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'tag_index.html') self.data['tag'] = tag tag_title_pr...
29.826923
109
0.590587
214f83d2b77d187862b5d64e01b4a4b079e4ab3c
4,252
require 'openssl' require 'uri' require 'faraday' module Percy class Client module Connection class NiceErrorMiddleware < Faraday::Response::Middleware CLIENT_ERROR_STATUS_RANGE = 400...600 def on_complete(env) error_class = nil case env[:status] when 400 ...
27.25641
81
0.551976
03b3eea7a70a18cc60374c4f6f2ec62cf9da60f9
611
Pod::Spec.new do |s| s.name = 'WebPKit' s.version = '0.0.1' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'A view controller that prompts users to enter a passcode.' s.homepage = 'https://github.com/TimOliver/WebPKit' s.author = 'Tim Oliver' s.source = { :git => 'https://githu...
32.157895
88
0.631751
1d3e9813a9bf1c397f56faca33a944c71b26dfcb
3,778
require 'spec_helper' require 'active_support/core_ext/module/delegation' require 'active_support/core_ext/string' require 'doorkeeper/oauth/scopes' module Doorkeeper::OAuth describe Scopes do describe '#add' do it 'allows you to add scopes with symbols' do subject.add :public expect(subjec...
30.467742
96
0.64108
61407f7c569d145e8b4ceba591dd24ed895fc95f
917
require 'contacts/version' module Contacts Identifier = 'Ruby Contacts v' + VERSION::STRING # An object that represents a single contact class Contact attr_accessor :name, :username attr_reader :emails def initialize(email = nil, name = nil, username = nil) @emails = [] @emails...
19.104167
84
0.608506