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
185e80040a9d1c3490fd5446330e9e0f55c1195f
737
name 'jdk' maintainer 'The Authors' maintainer_email 'you@example.com' license 'All Rights Reserved' description 'Installs/Configures jdk' long_description 'Installs/Configures jdk' version '0.1.0' chef_version '>= 12.1' if respond_to?(:chef_version) # The `issues_url` points to the location where issues for this cook...
35.095238
79
0.767978
ac0775feb2a2872e397146b3f39162f6a25c4aee
672
cask "devdocs" do version "0.7.1" sha256 "cec5ab99d9d3cff879fedf5379904d0993b09a43cf3fb5838e02450e3798753a" url "https://github.com/egoist/devdocs-desktop/releases/download/v#{version}/DevDocs-#{version}.dmg" appcast "https://github.com/egoist/devdocs-desktop/releases.atom" name "DevDocs App" desc "Full-fe...
32
102
0.729167
6a324bb0103184423d856394404419fdc8a9b62b
68
module TokyoMetro::Factory::Seed::Reference::BarrierFreeFacility end
34
64
0.852941
5d64eda2d0cd2a17a0e6c1b5b7ed22feee707d3c
935
require 'spec_helper' describe Immutable::SortedSet do describe '#drop_while' do [ [[], []], [['A'], []], [%w[A B C], ['C']], [%w[A B C D E F G], %w[C D E F G]] ].each do |values, expected| context "on #{values.inspect}" do let(:sorted_set) { SS[*values] } conte...
26.714286
86
0.525134
9174cc0dffb764d6c3085edecb19a5f39947aca3
2,090
control "VCPF-67-000021" do title "Performance Charts must set the welcome-file node to a default web page." desc "Enumeration techniques, such as URL parameter manipulation, rely on being able to obtain information about the web server's directory structure by locating directories without default pages. In the sc...
33.709677
79
0.703349
6a808885db98884020fb9568f6fb907ba592ec2f
1,736
# Context architecture # # TODO: Complete contexts # # - Tests on database structure and model # - User Creation validations require File.join(File.dirname(__FILE__), '..', 'test_helper') require File.join(File.dirname(__FILE__), '..', 'blueprints', 'helper') require 'shoulda' class UserTest < ActiveSupport::TestCase...
27.555556
71
0.697005
38c90feccc734cc49bf9d7e19b75acab3a65e3fd
3,656
class RedirectController < ApplicationController skip_after_action :verify_authorized def hydra_north_item # Note: sometimes '?file=filename' can happen in query string return hydra_north_file if params[:file] item = find_item_by_noid(noid) redirect_to item_url(item), status: :moved_permanently ...
29.015873
102
0.704322
1a4d063c92c207b5ac5e678a8f76cd80fde02afc
1,061
require 'test_helper' class PostsControllerTest < ActionDispatch::IntegrationTest setup do @post = posts(:one) end test 'should get index' do get posts_url assert_response :success end test 'should get new' do get new_post_url assert_response :success end test 'should create post' ...
21.653061
111
0.688973
39488d16a2d03a89065785bab3ce8e34c7a48dc3
293
module SoftDeletion module Collection def active where(inactive: false) end def inactive where(inactive: true) end end module Record def activate! update(inactive: false) end def deactivate! update(inactive: true) end end end
13.318182
29
0.624573
11589779b93480bdc7156ca1d838a002dd81ac52
1,691
cask "konica-minolta-bizhub-c750i-c650i-c360i-c4050i-c4000i-c3320i-driver" do version "2.2.3,7e6620c13efd50326af685f926806e0f:125070" sha256 "dca184d4122ef1a3af821f64731110d632be813fd2df1e875dd170dad89188b0" url "https://dl.konicaminolta.eu/en/?tx_kmanacondaimport_downloadproxy[fileId]=#{version.after_comma.befo...
54.548387
317
0.778829
1a930c24c28bad30b5a34bcca0c5b11194dbd3de
363
class CreateUserProfileProfiles < ActiveRecord::Migration[5.0] def change create_table :user_profile_profiles do |t| t.integer :user_id, null: false t.string :nickname, null: false t.string :avatar_url, null: false t.timestamps end add_foreign_key UserProfile.user_class, :user_pr...
25.928571
84
0.721763
8777d4ae238003d420327888e5fbf8ff21151809
672
class DestroyObserver < ActiveRecord::Observer observe :taxonomy, :rank, :taxon_concept, :designation, :change_type, :species_listing, :geo_entity, :language, :term, :unit, :source, :purpose, :user, :cites_suspension_notification, :cites_cop, :eu_regulation, :eu_decision_type, :reference, :instrument, :eu...
35.368421
84
0.700893
5d29d7646ab0c906661000495b574615aba64f24
130
class AddHideDonationToSite < ActiveRecord::Migration[5.2] def change add_column :sites, :hide_donation, :boolean end end
21.666667
58
0.761538
e276d5ce6595d4c641a804fd794dcb483bbdcf58
1,540
#-- encoding: UTF-8 #-- copyright # OpenProject is a project management system. # Copyright (C) 2012-2014 the OpenProject Foundation (OPF) # # 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,...
28.518519
91
0.734416
2852e4f37529f087fda9db06b1e1357ed33f09fc
810
class OutboundRateLimitStatus attr_reader :used_count, :used_percentage def self.find_by_name(name) rate_limit = OutboundRateLimit.find_by_name name return unless rate_limit OutboundRateLimitStatus.new(rate_limit) end def initialize(outbound_rate_limit) @outbound_rate_limit = outbound_rate_li...
26.129032
71
0.741975
387279c110d525500a4540fe4a5b2804135a1230
1,268
module Gitlab module Git module Storage class FailureInfo attr_accessor :first_failure, :last_failure, :failure_count def self.reset_all! Gitlab::Git::Storage.redis.with do |redis| all_storage_keys = redis.zrange(Gitlab::Git::Storage::REDIS_KNOWN_KEYS, 0, -1) ...
31.7
97
0.649842
7a5aa10c38e3256d8f66f06af36d18d63e6d9340
144
require 'test_helper' class Distributable::Test < ActiveSupport::TestCase test "truth" do assert_kind_of Module, Distributable end end
18
51
0.770833
1c8a0f5c76d56610184860a684a7dbabf5a64065
2,419
require 'csv' require 'pry' require 'to_regexp' require './comment' def report_ranks(fin, fpstats, frep) # Read list of projects to generate statistics for # project pstats = {} CSV.foreach(fpstats, headers: true) do |row| next if is_comment row h = row.to_h proj = h['project'] if pstats.key? p...
26.582418
181
0.610583
f8944fb43dc5eb859a9695fefa6d48afc4b93657
522
class SendMessengerDeliveryJob < ActiveJob::Base queue_as :messaging def perform(hash) MessageQuickly::Api::Client.create_from_hash(hash) end # To use this: # recipient = MessageQuickly::Messaging::Recipient.new(id: '<facebook page specific id here>') # delivery = MessageQuickly::Messaging::Delivery...
24.857143
96
0.722222
18e08a6a5e2ac7758fed0bdc443fc0518b3ae412
601
require 'test_helper' class Kind::ResultMethodsTest < Minitest::Test require 'kind/result' class Sum include Kind::Result::Methods def initialize(a, b) @a, @b = a, b end def call return Success(@a + @b) if Kind.of?(Numeric, @a, @b) Failure('a anb b must be numerics') end ...
17.676471
58
0.627288
d5d2f6376da6134e9f41f4dae0abf5b507528c08
6,472
require "nokogiri" require "json" require "uri" # The platform api is generated based on the `wizard` key in platforms.yml. This # key can either be an array of documents with optional section slugs, or `true` # which sets the value to `_documentation/quickstart.md` and renders only # the content for that platform. # ...
36.564972
136
0.627781
bbac639b25e1010cb860477f1c6f7c4d40b0c8dc
2,503
require_relative 'filters' module JekyllPagesApi # wrapper for a Jekyll::Page class Page HTML_EXTS = %w(.html .md .markdown .textile).to_set attr_reader :page, :site # Jekyll::StaticFile doesn't expose a `site` accessor, so we require an # explicit `site` argument here. def initialize(page, si...
25.804124
90
0.619656
08fefa27555986be81c45b7ff679d82b7aafcdf8
3,741
repo_dir = File.expand_path(File.dirname(__FILE__)) localhost = Host.find_by_name("localhost") sim_params = { name: "NetworkStochBlockSampling", command: "ruby #{repo_dir}/runner/run_stoch_block_sampling.rb _input.json", support_input_json: true, print_version_command: "cd #{repo_dir} && git describe --always...
37.787879
142
0.716921
38d0e0fa8039ecb82ee167221fea3c619688b60a
1,160
# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE Gem::Specification.new do |spec| spec.name = 'aws-sdk-connect' spec.version = File.read(File...
38.666667
133
0.662931
b914b3067c3c5dfe961d781dc60c371b6ffc56c6
2,171
## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class MetasploitModule < Msf::Exploit::Remote Rank = AverageRanking include Msf::Exploit::Remote::Tcp def initialize(info = {}) super(update_info(info...
28.194805
89
0.550898
61ea953c38aee06b716b6eefad0ca15d6b742296
51
module Uncovered # this file is never loaded end
12.75
29
0.764706
7a73d71dd2bf203f03a21c197b6735e7f47ce234
2,110
# -*- encoding: utf-8 -*- # stub: webpacker 4.0.7 ruby lib Gem::Specification.new do |s| s.name = "webpacker".freeze s.version = "4.0.7" s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "changelog_uri" => "https://github.com/rails/we...
45.869565
198
0.658768
ff119cd43698a13d9db0564fcc291c2ba131ee7e
1,282
describe 'android/element/textfield' do def must_raise_no_element proc { yield }.must_raise Selenium::WebDriver::Error::NoSuchElementError end def left 'Left is best' end def right 'Right is always right' end def before_first # nav to activity wait { find('app').click } wait { f...
20.349206
76
0.675507
e286a618acdb1c4b9742f4ab6980642499937114
1,493
# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE require 'aws-sdk-core' require 'aws-sigv4' require_relative 'aws-sdk-compute...
27.648148
89
0.763563
1a59bffbf5d5ce22740eb0b7e35dc65a0dda84d0
2,787
class Poppler < Formula desc "PDF rendering library (based on the xpdf-3.0 code base)" homepage "https://poppler.freedesktop.org/" url "https://poppler.freedesktop.org/poppler-20.12.1.tar.xz" sha256 "d0aa2586c0a4296c775f0d2045f28bb95a694113fc995f95350faa12930f7b35" license "GPL-2.0-only" head "https://gitla...
29.336842
95
0.692142
6202970a7c46df1746706c1883ae37e969432adf
1,215
module SCSSLint # Enforce a particular value for empty borders. class Linter::BorderZero < Linter include LinterRegistry CONVENTION_TO_PREFERENCE = { 'zero' => %w[0 none], 'none' => %w[none 0], }.freeze BORDER_PROPERTIES = %w[ border border-top border-right bord...
27.613636
83
0.63786
bf248a4a2a43f1f85dc3f7f4837a34e52de22a7c
785
Pod::Spec.new do |s| s.name = "BKPickerView" s.version = "1.1.1" s.summary = "a simple picker" s.homepage = "https://github.com/MMDDZ/BKPickerView" s.license = { :type => "MIT", :file => "LICENSE" } s.authors = { "MMDDZ" => "694092596@qq.com" } s.source = { :git => "https://github...
39.25
252
0.68535
267fe8153f9366d2f595e62138838982337f293c
7,819
=begin #The Plaid API #The Plaid REST API. Please see https://plaid.com/docs/api for more details. The version of the OpenAPI document: 2020-09-14_1.64.13 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.0 =end require 'date' require 'time' module Plaid # Data about the components com...
29.957854
230
0.61811
1adb396fbf0f075f8353baaac5f8a36b9767c35f
4,617
require 'stringio' class String def uncapitalize self[0, 1].downcase + self[1..-1] end end class Member attr_accessor :my_variable_name attr_accessor :element_name attr_accessor :is_set attr_accessor :is_required attr_accessor :element_name_for_cpp def initialize in_my_variable_name, in_element...
35.515385
149
0.55144
39907ae17a43f9bdb2801a702421fad880a80c47
3,923
describe RedClothParslet::Formatter::HTML do subject { described_class.new(:sort_attributes => true).convert(element) } describe "line breaks" do let(:element) { p(["Line one\nline two."]) } it { should == "<p>Line one<br />\nline two.</p>" } end describe "p" do let(:element) { p(["My paragraph."]...
24.672956
115
0.507265
0138b549861dad222edddefc04ec9ce4fa0755f0
475
class CreateSpreeCartEvents < SpreeExtension::Migration[4.2] def change create_table :spree_cart_events do |t| t.belongs_to :actor, polymorphic: true, index: true t.belongs_to :target, polymorphic: true, index: true t.string :activity t.string :referrer t.integer :quantity t.de...
29.6875
60
0.677895
2640bf6cba04928abca98ebbec44bb0861000a1f
279
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :tasuku_taskables_verification, aliases: [:verification], class: 'Tasuku::Taskables::Verification' do association :verifiable, factory: :tasuku_taskables_question end end
34.875
111
0.799283
79d392e4132f17967adcdea5f9e74ec0b4782b66
2,488
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'git_http routing' do describe 'code repositories' do it_behaves_like 'git repository routes' do let(:path) { '/gitlab-org/gitlab-test.git' } end it_behaves_like 'git repository routes with fallback for git-upload-pack' do l...
29.619048
94
0.642685
612754d166e65540ef2ea1ae0e406c7ec22289e8
1,547
class Pdfsandwich < Formula desc "Generate sandwich OCR PDFs from scanned file" homepage "http://www.tobias-elze.de/pdfsandwich/" url "https://downloads.sourceforge.net/project/pdfsandwich/pdfsandwich%200.1.7/pdfsandwich-0.1.7.tar.bz2" sha256 "9795ffea84b9b6b501f38d49a4620cf0469ddf15aac31bac6dbdc9ec1716fa39" ...
37.731707
107
0.714286
083bdaf0cfd0d68b77a64755c254cc71f1ec7701
121
require 'test_helper' class EntrantTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
15.125
43
0.702479
ab365069adf1ea0f8ef8cc79176e4cb1f61d7e62
35,590
# frozen_string_literal: true require 'tempfile' require 'forwardable' require "rubygems/package" module Gitlab module Git class Repository include Gitlab::Git::RepositoryMirroring include Gitlab::Git::WrapsGitalyErrors include Gitlab::EncodingHelper include Gitlab::Utils::StrongMemoize ...
31.523472
157
0.636415
1a741d8234d8de46edfb6693526629648f66009f
1,574
class CategoriesController < ApplicationController before_action :set_exhibition before_action :set_category, only: [:show, :edit, :update, :destroy] cache_sweeper :cache_sweeper, :only => [:create, :update, :destroy] before_action do set_focus('categories') end def index @categories = Category.all...
24.215385
131
0.699492
6291b3a009090a036d734319a5688bff7b99da04
1,261
# frozen_string_literal: true require "project_types/script/test_helper" describe Script::Layers::Infrastructure::ProjectCreator do describe ".for" do let(:script_name) { "foo_discount" } let(:extension_point_config) do { "assemblyscript" => { "package": "@shopify/extension-point-as-...
32.333333
115
0.674861
e92d7ee81e956bab1215e4d87b6293af7c38bc04
123
require 'r2d' window = R2D::Window.new img = R2D::Image.new(100, 100, "media/rainbow.png") window.add(img) window.show
12.3
51
0.691057
284e7436f0d3ff2256aa55e7fc262718255095a3
3,770
require 'spec_helper' require 'gitsh/interpreter' require 'rltk' describe Gitsh::Interpreter do describe '#run' do it 'reads, parses, and executes each command from the input strategy' do env = double command = double(:command, execute: nil) parser = double(:parser, parse: command) lexer ...
29.453125
80
0.606897
08d3fb8ae906ded58983b2ef55be5276dcd9617e
1,237
module Admin::Resources::DataTypes::StringHelper def display_string(item, attribute) if (data = item.send(attribute)).present? data else mdash end end alias_method :display_decimal, :display_string alias_method :display_float, :display_string alias_method :display_integer, :display_s...
31.717949
92
0.760711
ffb7405290859ccb28fbe10b08a728f285db888a
1,445
Pod::Spec.new do |s| s.name = "SwiftFetchedResultsController" s.version = "3.0.1" s.summary = "Swift drop-in replacement for NSFetchedResultsController backed by Realm" s.description = <<-DESC The FetchedResultsController (FRC) is a Swift replacement for NSFetchedResultsCo...
62.826087
323
0.69827
39a07ee5d2cf0e944fe381012bfcb20159fcf23e
655
# frozen_string_literal: true class UserBlock < ApplicationRecord belongs_to :user belongs_to :blocked, class_name: "User" end # == Schema Information # # Table name: user_blocks # # id :integer not null, primary key # created_at :datetime not null # updated_at :datetime not nu...
23.392857
75
0.656489
6a265f0a3cabb290f2f403d7391c2ac5741e41bd
979
require 'test_helper' class ExpressionTest < Minitest::Test # def setup # @engine = Gloo::App::Engine.new( [ '--quiet' ] ) # end def test_expression_construction e = Gloo::Expr::Expression.new( nil ) assert e end def test_tokenizing_boolean o = Gloo::Core::Tokens.new( 'TRUE' ) assert o...
19.196078
54
0.638407
e8acf2e4dac64f4c65d3dbaeb838968a87da5878
92
ACT = 1 SKIP = 0 COMPLETE = 1 INCOMPLETE = 0 FINISHED = 1 UNFINISHED = 0 RUN = 1 NOT_RUN = 0
11.5
14
0.663043
e8e088aea7739d645fbbd001d8941c3c736b6e3b
1,076
ENV['RAILS_ENV'] = 'test' ENV['RAILS_ROOT'] ||= File.join(File.dirname(__FILE__), 'mock_app') require 'rubygems' gem 'sunspot' require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config', 'environment.rb')) require 'spec' require 'spec/rails' require 'rake' require 'ruby-debug' unless RUBY_VERSION > '1.9' require...
21.52
82
0.699814
79202e59521733f0f82f5bf411542f76c7cf8f0d
2,124
# # Cookbook Name:: tokudb # Recipe:: default # # Copyright 2013, Leslie Hensley # # 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 ...
26.222222
145
0.698682
ac9aa9a8ea7a6a83b0556607583bc69366c0ffe8
3,314
require 'cgi' require 'digest/md5' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Alipay class Helper < ActiveMerchant::Billing::Integrations::Helper CREATE_DIRECT_PAY_BY_USER = 'create_direct_pay_by_user' CREATE_PARTNER_TRADE_BY_BUYER...
38.988235
113
0.44146
01e8080f22d48f76b6b8c18d9658ad9db8c3337f
2,989
require 'rails_helper' describe Idv::PhoneConfirmationOtpVerificationForm do let(:user) { create(:user, :signed_up) } let(:idv_session) { double(Idv::Session) } let(:phone_confirmation_otp) { '123456' } let(:phone_confirmation_otp_sent_at) { Time.zone.now.to_s } before do allow(idv_session).to receive(:...
27.675926
85
0.680161
6a71c6b96eccfc997ad272ad8e1e5e0ab30e0e96
1,295
class Txr < Formula desc "Original, new programming language for convenient data munging" homepage "https://www.nongnu.org/txr/" url "http://www.kylheku.com/cgit/txr/snapshot/txr-274.tar.bz2" sha256 "6d6833d2498f2cdd15d2b9054620aac6406384df0557d7cbf95bbc192c3d25ae" license "BSD-2-Clause" livecheck do u...
35.972222
107
0.734363
f72df4ddbc13c201ab4db502b75a5d7c6c6892ab
101
class User < ActiveRecord::Base tokenizable end class Post < ActiveRecord::Base tokenizable end
12.625
31
0.772277
7a62eb2b9a9423da19d81ba30329c950898b1876
239
class UpdateSearchResultsToVersion4 < ActiveRecord::Migration[5.2] def change update_view :search_results, version: 4, revert_to_version: 3, materialized: true end end
26.555556
66
0.58159
080f7c5039ffd1cf1be4e871ea957414bb55fe76
2,430
# frozen_string_literal: true class ShotChartCompare < ShotChart extend Memoist attr_reader :comparison SUFFIX = "_comparison" def initialize(shot, comparison, chart_settings) @comparison = comparison super(shot, chart_settings) end def comparison_data (shot_chart + temperature_chart).filte...
30.759494
181
0.717695
62dbafee6c670f79f9bbf78f7d5053678e5087b5
9,807
require 'active_support/core_ext/hash/except' require 'active_support/core_ext/module/introspection' require 'active_support/core_ext/module/remove_method' module ActiveModel class Name include Comparable attr_reader :singular, :plural, :element, :collection, :singular_route_key, :route_key, :param_ke...
30.936909
134
0.616294
2687c7c0584d69f58c95da3cd86bf4f5e5087a65
4,178
require 'spec_helper' require 'json' require 'base64' describe Diplomat::Node do let(:faraday) { fake } context "nodes" do let(:node_definition) { { "Node" => "foobar", "Address" => "192.168.10.10" } } describe "#register" do let(:path) { "/v1/catalog/register" } ...
24.432749
99
0.526568
d5310ff3724fd334a7cb345dcfcc45bead1c5596
4,161
require "test_helper" class ProxyAttributesParsingTest < I18n::Alchemy::ProxyTestCase # Attributes def test_initializes_proxy_with_attributes @localized = @product.localized( name: "Banana", price: "0,99", released_at: "28/02/2011") assert_equal 0.99, @product.price assert_equal "0,99", @localiz...
32.255814
155
0.749579
03284cd46be7a23469799e0da6039a0d610476ab
1,536
# # Be sure to run `pod lib lint Cellable.podspec' to ensure this is a # valid spec before submitting. # # Any lines starting with a # are optional, but their use is encouraged # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| s.name = 'Cellable' ...
37.463415
100
0.639323
d5d9cfa3b57d166a8b443449220489127359269b
3,261
require 'spec_helper' require 'packetfu/protos/eth' require 'packetfu/protos/ip' require 'packetfu/pcap' require 'tempfile' include PacketFu describe IPHeader do context "when initializing" do before :each do @ip_header = IPHeader.new end it "should have sane defaults" do expect(@ip_header....
30.764151
101
0.648267
08d459a457f39d7608c5457b7c36565c22715b05
2,941
require 'puppet/network/http/handler' require 'resolv' require 'webrick' require 'webrick/httputils' require 'puppet/util/ssl' class Puppet::Network::HTTP::WEBrickREST < WEBrick::HTTPServlet::AbstractServlet include Puppet::Network::HTTP::Handler def self.mutex @mutex ||= Mutex.new end def initialize(se...
26.026549
92
0.675621
bf95b875ca97203817ff61d507353b0ccef9d3cb
82
class DownloadsController < ApplicationController include PrisonRestriction end
20.5
49
0.878049
e8f2df5855724c297f13c927e452b315d2fb6253
2,007
class Gwenhywfar < Formula desc "Utility library required by aqbanking and related software" homepage "http://www.aqbanking.de/" url "http://www2.aquamaniac.de/sites/download/download.php?package=01&release=01&file=01&dummy=gwenhywfar-4.14.0.tar.gz" sha256 "7e0ec2f1cab7d22a5ae0066e0ef827d4affec59470b1bdbc42132b...
33.45
122
0.667165
268d739389502587c5ad6dc969563b7b09718280
41
apt_update include_recipe 'git::server'
10.25
28
0.804878
1a5bfca4a59f363ef8eca7fcbc01917d415a14ee
836
module Cambio # Internal: An object to hold the internal configuration of the Cambio module class Configuration # Public: Gets/Sets the String app_id attr_accessor :app_id # Public: Gets/Sets the String endpoint attr_accessor :endpoint # Internal: By default, don't set an app ID DEFAULT_APP...
26.967742
79
0.692584
4a163f1f0229e0cb3ec7557899242c49c23e3c1d
429
# encoding: utf-8 require "logstash/outputs/base" require "logstash/namespace" # An kafkacsv output that does nothing. class LogStash::Outputs::Kafkacsv < LogStash::Outputs::Base config_name "kafkacsv" default :codec, "line" public def register end # def register def multi_receive_encoded(encoded) e...
19.5
59
0.724942
87c95d26dac1ec79befe3263f1a2dc7e9c881dc8
1,245
# frozen_string_literal: true require 'uri' require 'net/http' require 'json' # List workers on unmineable account class UnmineableWorkers HOST = 'api.unminable.com' VERSION = 'v4' ALGOS = %w[ethash etchash randomx kawpow].freeze attr_reader :account def initialize(account:) @account = account end ...
17.535211
107
0.674699
ab52154d5ab9b06b67bf5f5707cb995b99133f85
231
module EventMachine module WebSocket module Close75 def close_websocket(code, body) @connection.close_connection_after_writing end def supports_close_codes?; false; end end end end
19.25
51
0.670996
03c59b4b40ac8300ce6262fd58b2a28bc19716f0
6,157
# The AccountsController is responsible for account management -- adding users # activating accounts, updating email addresses and the like. class AccountsController < ApplicationController layout 'workspace' before_action :secure_only, :only => [:enable, :reset] before_action :login_required, :except => [:enabl...
42.171233
115
0.723892
2187c3e5269b71efd70a2294dca1a717c32f16b5
2,339
#-- encoding: UTF-8 #-- copyright # OpenProject is an open source project management software. # Copyright (C) 2012-2020 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 ChiliProj...
31.186667
91
0.635314
aca11ebc261c0c2f813c8ae49c5a022bd2905990
1,215
require 'test_helper' class AnimalsControllerTest < ActionDispatch::IntegrationTest setup do @animal = animals(:one) end test "should get index" do get animals_url assert_response :success end test "should get new" do get new_animal_url assert_response :success end test "should cre...
24.795918
167
0.718519
1aa587690df6560348fb07cd7995515835296f49
145
module Acronym def self.abbreviate(phrase) phrase .split(%r{[,\s-]+}) .collect { |word| word[0].upcase } .join end end
16.111111
40
0.558621
bb4a7c70df47e2ae072941ac0ad81c3d320c67db
459
# Pry's new plugin loading system ensures this file runs before pry-remote. So # attempting to load everything directly from lib/pry-debugger.rb and # referencing that here causes a circular dependency when running # bin/pry-remote. # # So delay loading our monkey-patch to when someone explicity does a: # # require '...
28.6875
78
0.771242
08718c382b9675054163f09bf0d95ffb2258ea7a
4,108
require 'spec_helper' describe Gitlab::Ci::Config::Entry::Policy do let(:entry) { described_class.new(config) } context 'when using simplified policy' do describe 'validations' do context 'when entry config value is valid' do context 'when config is a branch or tag name' do let(:config...
27.205298
82
0.593233
215334f0b9c18e288ba13e07e9188148ba9d3e30
302
# frozen_string_literal: true class AddRememberMeTokenToUsers < ActiveRecord::Migration[6.0] def change add_column :users, :remember_me_token, :string, default: nil add_column :users, :remember_me_token_expires_at, :datetime, default: nil add_index :users, :remember_me_token end end
27.454545
77
0.771523
f7e5c113692187104a06cf209d79567a5c650f60
11,076
# == Schema Information # # Table name: public_stats # # id :integer not null, primary key # daily_json :text not null # weekly_json :text not null # monthly_json :text not null # quarterly_json :text not null # created_at :datetime...
39.698925
218
0.665403
1d88116d7d2a33170907d58a549cb534a2606f19
2,397
# TodosFinder # # Used to filter Todos by set of params # # Arguments: # current_user - which user use # params: # action_id: integer # author_id: integer # project_id; integer # state: 'pending' or 'done' # type: 'Issue' or 'MergeRequest' # class TodosFinder NONE = '0' attr_accessor :curr...
16.880282
104
0.629537
38d6412d715bc1c6c28e2b9677cf977ecd35674d
1,532
class ChantsController < ApplicationController before_action :authenticate_admin!, only: [:index] before_action :authenticate_user!, only: [:new, :create] def index end def show @user = User.find(params[:user_id]) @chant = Chant.find(params[:id]) @user = User.find(params[:user_id]) end de...
43.771429
610
0.660574
26de2fc5ae908d4749e54301246e59e21f262e00
237
class Appzapper < Cask version 'latest' sha256 :no_check url 'http://www.appzapper.com/downloads/appzapper.dmg' appcast 'http://www.appzapper.com/az2appcast.xml' homepage 'http://www.appzapper.com/' app 'AppZapper.app' end
21.545455
56
0.725738
f7bcf3f975a66087de398a81ca74044fbf3ad9f6
1,011
cask 'postbox' do version '5.0.6' sha256 '72f7ad58077a53e93f704c70145bb5cc33a60dc41d194861109566d2ba0f13ca' # amazonaws.com/download.getpostbox.com was verified as official when first introduced to the cask url "https://s3.amazonaws.com/download.getpostbox.com/installers/#{version}/1_b5e3d688955b655e18589b871c...
40.44
150
0.673591
110e02c8a8c11ecdfcbd5604a7bfa0a96c2b7b07
378
require "bundler/setup" require "codinbot" require "pry" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" # Disable RSpec exposing methods globally on `Module` and `main` config.disable_monkey_patching! config.e...
23.625
66
0.751323
e26036ef268fdb87043fcbc7293fe2729e67ae6e
2,176
# frozen_string_literal: true module Canary module Resolvers class Records < Canary::Resolvers::Base def resolve(has_body: nil, month: nil, episode_id: nil, by_following: nil, order_by: nil) order = Canary::OrderProperty.build(order_by) @records = object.records.only_kept if has_b...
31.536232
103
0.592371
1da5ff060ea0aac56c36c302361d8b42df3b5657
4,332
# ******************************************************************************* # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
37.669565
85
0.742151
d5ebc069e2c4a5b855692bbe3262ea62097f54cd
137
require 'test_helper' class EmailControllerTest < ActionDispatch::IntegrationTest # test "the truth" do # assert true # end end
17.125
59
0.737226
f7906d48d4bfd4198731662f49a931971d338811
45
ActiveRecord::Base.send :include, TextilizeFu
45
45
0.844444
f83b96648a39f0c9dfb5e153ce2a2651f0afc877
879
namespace :data do desc 'Move the start_time and room attributes from Event to EventSchedule' task move_events_attributes: :environment do Program.all.each do |program| schedule = Schedule.create(program: program) program.selected_schedule = schedule program.save program.events.each do ...
35.16
88
0.614334
2823b634f097230cf33c7bb30d67ec34570eedcc
762
class Typero::DateType < Typero::Type opts :min, 'Smallest date-time allowed' opts :max, 'Maximal date-time allowed' error :en, :min_date, 'Minimal allowed date is %s' error :en, :max_date, 'Maximal allowed date is %s' def set unless [Date].include?(value.class) value { |data| DateTime.parse(data)...
19.538462
66
0.628609
bf2a9f31fd0fe891f383f700601ffcb65e013063
526
module LinkedIn module API module People def profile(selector = '~', **opts) execute 'people', { selector: selector }.merge(opts) end def connections(selector = '~', **opts) execute 'people', opts.merge(selector: selector, path: 'connections') end def people_search(...
27.684211
82
0.61597
e9ae204c2e220ceb53f917f79d4e4a9f218f6e1e
336
module Doorkeeper module OAuth class ClientCredentialsRequest < BaseRequest class Creator def call(client, scopes, attributes = {}) AccessToken.find_or_create_for( client, nil, scopes, attributes[:expires_in], attributes[:use_refresh_token]) end end ...
24
57
0.636905
ff4d261f874a7dcedd4c6fe624ff1feb24ed255b
37
module Nmapr VERSION = "1.0.0" end
9.25
19
0.648649
ff94dc1c055329155a986f0cf2b25ce8ae3e9866
7,535
require 'ffi' module RawMIDI module LibC extend FFI::Library ffi_lib FFI::Library::LIBC # Needed for some functions that expects the user frees memory after use attach_function :free, [:pointer], :void end module API extend FFI::Library ffi_lib 'libasound' enum :snd_ctl_mode, [:d...
33.789238
101
0.63278
33764818f790e5100165a34e3a9ad3f68a2ceb02
6,624
# frozen_string_literal: true require 'spec_helper' describe Admin::ApplicationSettingsController do include StubENV let(:group) { create(:group) } let(:project) { create(:project, namespace: group) } let(:admin) { create(:admin) } let(:user) { create(:user)} before do stub_env('IN_MEMORY_APPLICATIO...
34.14433
125
0.725996
017046b54da1b090733573cd67d69f319de30b7b
1,620
class Apng2gif < Formula desc "Convert APNG animations into animated GIF format" homepage "https://apng2gif.sourceforge.io/" url "https://downloads.sourceforge.net/project/apng2gif/1.8/apng2gif-1.8-src.zip" sha256 "9a07e386017dc696573cd7bc7b46b2575c06da0bc68c3c4f1c24a4b39cdedd4d" revision 2 unless OS.mac? ...
47.647059
123
0.785802
4af54d3c7d8b7bf6c2496c3fd46d51526f673804
138
# frozen_string_literal: true module Robots class Trader def initialize(api) @api = api end def call; end end end
11.5
29
0.644928
28948df556febd47a17046c31002b9b366faf8bb
326,965
Изменения в nginx 1.21.6 25.01.2022 *) Исправление: при использование EPOLLEXCLUSIVE на Linux распределение клиентских соединений между рабочими процессами было неравномерным. *) Исправление: во время плавного завершения старых рабочих процессов nginx во...
36.148701
76
0.685193
6a02d5dbf777d7c10b3704f3dfca8082c2101c4a
10,266
# frozen_string_literal: true require "active_support/core_ext/hash/except" require "active_support/core_ext/module/introspection" require "active_support/core_ext/module/redefine_method" module ActiveModel class Name include Comparable attr_reader :singular, :plural, :element, :collection, :singular...
30.736527
134
0.613384
e823b01fb723f5ae86e4f09f0a3c20d713ea5317
1,282
module Fog module Compute class Vsphere class Real # => VirtualE1000( #addressType: "assigned", #backing: VirtualEthernetCardNetworkBackingInfo( # deviceName: "VM Network", # dynamicProperty: [], # network: Network("network-163"), # useAutoDetect: false #), #connectable: VirtualDeviceC...
24.188679
103
0.576443