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
edb2b54458a493364ca12eb49bc41fc658363ec8
755
Pod::Spec.new do |s| s.name = 'MHNotificationHelper' s.version = '0.9.2' s.license = 'MIT' s.homepage = 'https://github.com/mariohahn/MHNotificationHelper' s.author = { 'Mario Hahn' => 'mario_hahn@me.com' } s.summary = 'ViewController to describe the User how to turn on the ...
32.826087
98
0.660927
615755bd97ba13421eab5d72cd64e9f94d764db7
1,659
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'prismic_rails/version' Gem::Specification.new do |spec| spec.name = "prismic_rails" spec.version = PrismicRails::VERSION spec.authors = ["Felix Langenegger"] spec.ema...
43.657895
200
0.664256
39db79297e83ea64ad199f138b1403765d4f8677
4,837
require 'timewizard/versioner/worklight' RSpec.describe 'Timewizard::Versioner::Worklight' do before(:example) do pwd = Dir.pwd.to_s FileUtils.rm_rf Dir["#{pwd}/tmp"] FileUtils.rm_rf Dir["#{pwd}/pkg"] pwd = Dir.pwd.to_s FileUtils.cp_r("#{pwd}/resources/.", "#{pwd}/tmp") @versioner = Timew...
30.613924
104
0.691958
ed555136fc9a170825f746113942850ecc790d48
3,905
def find_or_create_clubs!( names, league:, season: nil) ## note: season is for now optional (and unused) - add/use in the future!!! recs_uniq = [] mappings = {} ## name to db rec mapping (note: more than one name might map to the same uniq rec) ## note: for now allow multiple names for clubs #...
37.190476
182
0.565941
6a8cf5eed77e4afcb059cc0e76369a84bf2040d4
981
# frozen_string_literal: true module Dependabot module Python module PythonVersions PRE_INSTALLED_PYTHON_VERSIONS = %w( 3.9.1 2.7.18 ).freeze # Due to an OpenSSL issue we can only install the following versions in # the Dependabot container. SUPPORTED_VERSIONS = %w( ...
31.645161
77
0.58002
e8ae02affccef46ae74eda3cbdeccac5d73502a3
83
# frozen_string_literal: true json.partial! 'problems/problem', problem: @problem
20.75
51
0.783133
284cd67765029bc3c81ece2fbd45c579f27adfe3
1,846
lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "ivanye/version" Gem::Specification.new do |spec| spec.name = "ivanye" spec.version = Ivanye::VERSION spec.authors = ["Jacob Slack"] spec.email = ["jacobs@instructure.com"] ...
42.930233
96
0.674431
797537a284af606d4e12b69e79190e4bcb3235a8
3,958
# Doubly Linked List | Set 1 (Introduction and Insertion) # A Doubly Linked List (DLL) contains an extra pointer, # typically called previous pointer, together with next pointer # and data which are there in singly linked list. # http://www.geeksforgeeks.org/doubly-linked-list/ # Advantages over singly linked list # 1...
27.873239
147
0.686458
ff16e93f072fc805908c50662fc6c4eb800c626d
26
# typed: true fun (1) {}
6.5
13
0.5
26ea0eab9f551bf8401d66fa44be9da65f9fd517
477
cask "amadeus-pro" do version "2.8.4" sha256 "34d89cb521e7bccef39c02f07ec5dbf25d5255a5e93d563e4b774c79a5a5829e" # s3.amazonaws.com/AmadeusPro2/ was verified as official when first introduced to the cask url "https://s3.amazonaws.com/AmadeusPro2/AmadeusPro.zip" appcast "https://www.hairersoft.com/pro.html" ...
34.071429
92
0.769392
03413b63c01ac87a8ff6addb4850dd1c66288082
2,107
# Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers: a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches...
39.018519
85
0.747034
bf2536acda01f5b2bd1f7790250107445baa5897
2,179
describe :enumerable_take, shared: true do before :each do @values = [4,3,2,1,0,-1] @enum = EnumerableSpecs::Numerous.new(*@values) end it "returns the first count elements if given a count" do @enum.send(@method, 2).should == [4, 3] @enum.send(@method, 4).should == [4, 3, 2, 1] # See redmine #16...
34.046875
115
0.663607
b9eb0063fbc1721c603212cc63c38230c22ad239
8,190
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
41.573604
126
0.714164
f8345ba9cd51f09d7235934ef59d9cdd4595df1c
179
module RunscopeStatuspage class RunscopeAPIException < Exception end class StatuspageAPIException < Exception end class MissingArgumentException < Exception end end
16.272727
44
0.804469
6a91e4ce859e790a965170adfde24735c0c8d0da
842
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint openpgp.podspec' to validate before publishing. # Pod::Spec.new do |s| s.name = 'openpgp' s.version = '0.1.0' s.summary = 'library for use OpenPGP.' s.description = <<-DE...
36.608696
84
0.586698
ff50f7bfe580477413a45048be073f8f21ef2e35
452
# encoding: UTF-8 require 'spec_helper' module Normatron module Filters describe SwapcaseFilter do it { should evaluate("caçador").to("CAÇADOR") } it { should evaluate("CAÇADOR").to("caçador") } it { should evaluate("CaÇaDoR").to("cAçAdOr") } it { should evaluate("cAçAdOr").to("CaÇaDoR")...
28.25
53
0.590708
e8550d730bfa24d6ea8500bf514a2f414e782cc3
1,772
class Bmake < Formula desc "Portable version of NetBSD make(1)" homepage "https://www.crufty.net/help/sjg/bmake.html" url "https://www.crufty.net/ftp/pub/sjg/bmake-20211001.tar.gz" sha256 "cad7ef0fb41138050f8932af3a7ade16f7265b3f37ff6356703e0b1ad6542739" license "BSD-3-Clause" livecheck do url "https:/...
36.916667
123
0.673251
039c8318858d3493b645a62eeaaba255b87fc5db
1,825
require 'date' require 'syslog/pattern' module Syslog class Message attr_accessor :facility, :severity, :version, :datetime, :hostname, :app_name, :procid, :msgid, :str...
24.662162
83
0.484384
d5e3927efe906441a8db6a58ed81f465cc4ad54b
4,903
# -*- encoding: binary -*- require 'raindrops' # Raindrops::Middleware is Rack middleware that allows snapshotting # current activity from an HTTP request. For all operating systems, # it returns at least the following fields: # # * calling - the number of application dispatchers on your machine # * writing - the num...
32.90604
79
0.678564
1d15ecba0e463db92132a510d342de30083d0297
1,208
# frozen_string_literal: true # encoding: utf-8 require 'spec_helper' describe 'Client' do context 'after client is disconnected' do let(:client) { authorized_client.with(server_selection_timeout: 1) } before do client.close end it 'is still usable for operations' do resp = client.data...
25.166667
72
0.639901
bf5ad90761f112dc016c57b3a40fefe4fc03ba25
1,718
require('spec_helper') describe(Recipe) do describe('#ingredients') do it('lists a recipes ingredients') do test_recipe = Recipe.create({:name => 'Green Bean Casserole', :cooking_time => 35, :preparation_time => 10, :serving_size => 1, :rating => nil, :total_time => 40, :instructions => 'bake'}) test...
44.051282
194
0.651339
1100e247c2d7440e4b3a5805a4eb6985cc53d049
766
# require_relative './vedabase.rb' class Vedabase::Scraper @@url_arrays = ["https://vedabase.io/en/library/bg/introduction/", "https://vedabase.io/en/library/sb/1/introduction/", "https://vedabase.io/en/library/cc/adi/introduction/" ] def self.scrape_title doc = Nokogiri::HTML(open("https://vedab...
20.702703
95
0.630548
878cccf18f40730336661d4527eb06ef00c5fd2f
83
# frozen_string_literal: true require 'jsonapi_compliable/adapters/active_record'
20.75
51
0.855422
61baaf6da0e0852b2456fed4f3843e3916b0b651
2,318
# -*- coding: utf-8 -*- require 'sinatra' require 'sinatra/reloader' require "haml" require 'backlog_api' # 何度も読み込まれて舞う PROJECT_ID = ENV['BACKLOG_PROJECTID2'].to_i ASSIGENER_ID = ENV['BACKLOG_USERID'].to_i # CLIENT = BacklogApi::Client.new # トップレベルには定義できないのでここにビューヘルパーとか追加してね helpers do def select_tag(name, select...
18.544
88
0.56428
39f672a1dfd0553e200cf01ab4677a39a451942d
173
require 'rubygems' require 'pathname' gem 'dm-core', '=0.9.5' require 'dm-core' require Pathname(__FILE__).dirname.expand_path / 'dm-is-versioned' / 'is' / 'versioned.rb'
21.625
90
0.705202
91ee16c1d5ccc437584fb9f7156e666ef9fb03de
149
class AddRecipeRefToSubstitutions < ActiveRecord::Migration[5.2] def change add_reference :substitutions, :recipe, foreign_key: true end end
24.833333
64
0.785235
f82ecd4449ab9b3c12c95863802ff58cb6f71cdf
4,411
# frozen_string_literal: true require "cases/helper" require "models/post" module ActiveRecord class RelationMutationTest < ActiveRecord::TestCase (Relation::MULTI_VALUE_METHODS - [:references, :extending, :order, :unscope, :select]).each do |method| test "##{method}!" do assert relation.public_se...
29.211921
125
0.67037
d56bc09adb52f7c9c092159609206347d92c21ca
18,501
# frozen_string_literal: true require 'stringio' RSpec.describe Pry::Command do subject do Class.new(described_class) do def process; end end end let(:default_options) do { argument_required: false, interpolate: true, keep_retval: false, shellwords: true, takes_b...
25.731572
82
0.608616
d56595bb683b8c7ea69de8b7fa1a3b07b7e73fd3
2,321
module Findout class Preprocessor def initialize(base) @base = base end def run(params) process(params) end private def process(params) if params.is_a?(Array) process_array(params) elsif params.is_a?(Hash) process_hash(params) else proce...
23.444444
89
0.567428
bbf449216c8508448f9ff1f2ed74812eba6dbc5f
161
# frozen_string_literal: true # Public: Helper to render only the id and name of the model. class ModelSerializer < BaseSerializer attributes(:id, :name) end
23
61
0.770186
4a8b3d8eeb6657420ae4cf01a3c047136d1dcdec
93
# frozen_string_literal: true module Steam module Wrapper VERSION = "0.1.0" end end
11.625
29
0.698925
ab3e897501b5f50b8769fffadf61d14e4c969902
1,843
require 'twitter' require 'pony' require 'twilio-rb' require 'pushover' module FISC module Alerts # for lower priority things that don't need to get texted every 5 mins def self.email!(message) Pony.mail(FISC.config['email'].merge(body: message)) if FISC.config['email'] end def self.admin!(me...
34.12963
140
0.648942
f81869ee9000ec3f3106c65897abc938c7cc2d93
289
# encoding: UTF-8 newparam(:sys_password) do include EasyType desc 'The password of ythe SYS account' to_translate_to_resource do | raw_resource| # raw_resource.column_data('sys_password') end on_apply do | command_builder| "user sys identified by #{value}" end end
20.642857
45
0.730104
1ab13f47ee113da017177a8ee86642aed200f583
330
# frozen_string_literal: true require 'rails_helper' RSpec.describe BatchLeaderSheet, type: :model do context 'check creation' do let(:batchleadersheet) { create(:batch_leader_sheet) } it 'check creation week' do expect(batchleadersheet.creation_week).to eq(Date.current.at_beginning_of_week) end ...
23.571429
85
0.754545
bf6265a29555a1c2f4ad540bcdb18bbea7d81f46
955
#! /usr/bin/env ruby -S rspec require 'spec_helper_acceptance' describe 'ceiling function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do describe 'success' do it 'ceilings floats' do pp = <<-EOS $a = 12.8 $b = 13 $o = ceiling($a) if $o == $b { ...
23.875
99
0.536126
792fce74e353417f166d82aa909f99868fc9f0eb
547
# frozen_string_literal: true class AddClientFields < ActiveRecord::Migration[5.2] def change remove_index :datacentre, %i[re3data] rename_column :datacentre, :re3data, :re3data_id add_index :datacentre, %i[re3data_id] add_column :datacentre, :issn, :json add_column :datacentre, :certificate, :j...
32.176471
64
0.736746
ede3eb5580b6bcec3df8a47272a53e5e6c216bdb
170
require 'rails_helper' describe BiologicalRelationshipType::BiologicalRelationshipSujbectType, type: :model do skip "add some examples to (or delete) #{__FILE__}" end
28.333333
87
0.805882
21ef5f29b15c3670430fe3e128930f82c904bac0
23,723
# 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, ...
37.715421
118
0.596425
8728eda39200ec29fecb8ce409d3c875e7d33189
15,776
describe MiqServer do context ".seed" do before do MiqRegion.seed Zone.seed end include_examples ".seed called multiple times" end context "#hostname" do it("with a valid hostname") { expect(MiqServer.new(:hostname => "test").hostname).to eq("test") } it("with a valid fqdn") ...
36.35023
183
0.663286
f876cb7a627318a8452f09570e156f3afb28337a
421
class FontKimberella < Formula head "https://moji-waku.com/download/kimberella.zip" desc "Kimberella" desc "Ancient biology styled font inspired by kimberella" homepage "https://moji-waku.com/kimberella/index.html" def install parent = File.dirname(Dir.pwd) != (ENV['HOMEBREW_TEMP'] || '/tmp') ? '../' : '...
32.384615
84
0.693587
d5b43f6d0c36cebc8d51cb0fdeb5a8217ed862ee
917
Pod::Spec.new do |spec| spec.name = "MultipleImageView" spec.version = "0.1.2" spec.summary = "Displaying multiple images like Twitter." spec.homepage = "https://github.com/nnsnodnb/MultipleImageView" spec.swift_version = "5.2" spec.license ...
50.944444
116
0.541985
7adba8e549d4527ce842cf1931d7b791a1c29b48
346
# This is a snippet of the config that powers # https://raindrops-demo.bogomips.org/ # This may be used with the packaged zbatery.conf.rb # # zbatery -c zbatery.conf.ru watcher_demo.ru -E none require "raindrops" use Raindrops::Middleware listeners = %w( 0.0.0.0:9418 0.0.0.0:80 /tmp/.r ) run Raindrops::Watcher.ne...
24.714286
52
0.725434
7a399cb473c61917bc69001c697a3c8b0750404f
2,324
class TransaccionesController < ApplicationController before_action :set_transaccione, only: [:show, :edit, :update, :destroy] layout "template" # GET /transacciones # GET /transacciones.json def index # @transacciones = Transaccione.all respond_to do |format| format.html format.json { re...
29.05
130
0.69191
1a8ffc86f3717637e0b503415ffb44bd6300df86
822
require 'git_utils' require 'r10k_utils' require 'master_manipulator' test_name 'CODEMGMT-84 - C59270 - Attempt to Deploy with Missing r10k Configuration File' #Init r10k_config_path = get_r10k_config_file_path(master) r10k_config_bak_path = "#{r10k_config_path}.bak" #Verification error_message_regex = /Error while r...
29.357143
92
0.778589
5dc85b2baead9dd14f129db1d2796f1fc2b367b7
1,965
require "tempfile" require "tmpdir" require "fileutils" class UploadedFile InvalidPathError = Class.new(StandardError) # The filename, *not* including the path, of the "uploaded" file attr_reader :original_filename # The tempfile attr_reader :tempfile # The content type of the "uploaded" file attr_acc...
27.676056
108
0.699237
1ad697c77cba4bddf3bff6be4949beba451491c8
139
require "test_helper" class AnswersControllerTest < ActionDispatch::IntegrationTest # test "the truth" do # assert true # end end
17.375
61
0.741007
876b7c7f377041da9b9732f41850d6d7f48c8b88
743
Pod::Spec.new do |spec| spec.name = "LYYDispatch" spec.version = "1.0.0" spec.summary = "基于GCD的链式封装" spec.description = <<-DESC 基于系统GCD,采用链式思想、去除重复名称等方式进行的多线程封装 DESC spec.homepage = "https://github.com/liyaoyao613/LYYDispatch" spec.license = "MIT" s...
26.535714
109
0.602961
bf74f48b34905d7e0b8c1d11fd70a1394b20e294
1,073
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'jquery/uploadify/rails/version' Gem::Specification.new do |spec| spec.name = "jquery-uploadify-rails" spec.version = Jquery::Uploadify::Rails::VERSION spec.authors = ["...
41.269231
119
0.671948
911cc150dbbd621272e74e7d9da27719852e08ef
62
module PreventBlankificationValidator VERSION = "0.1.0" end
15.5
37
0.790323
0806f80f1e03c6e0d627645c397b22fff13e88f3
1,161
require 'rails_helper' describe "comments/index_rss_feed.rss.builder", :type => :view do let!(:blog) { build_stubbed :blog } describe "rendering comments" do let(:article) { FactoryGirl.build_stubbed :article } let(:comment) { FactoryGirl.build_stubbed(:comment, article: article, body: "Comment body", gui...
33.171429
124
0.660637
91fc68a5ab60094adbc93ce13b7fd3db12032f6c
6,607
# frozen_string_literal: false module REXMLTests class AttributesTester < Test::Unit::TestCase include REXML def test_accessor doc = Document.new("<a xmlns:foo='a' xmlns:bar='b' foo:att='1' bar:att='2' att='3'/>") assert_equal '3', doc.root.attributes['att'] assert_equal '2', doc.root.attri...
29.761261
106
0.584077
6177ac6e5930b014fbfb84c219aba82f67bd8539
716
require 'spec_helper' describe 'vox_selinux::build' do let(:params) { { module_build_root: '/var/lib/puppet/puppet-selinux' } } it { is_expected.to compile.with_all_deps } it { is_expected.to contain_file('/var/lib/puppet/puppet-selinux').with_ensure('directory') } it { is_expected.to contain_file('/var/lib/p...
55.076923
125
0.75419
38a369c4af582883970ab3184e74bc4ee068a4f9
1,221
module ApplicationHelper def agency_item(agency) "<li class='agency'><h2>#{link_to agency.name, agency_path(agency.oba_id), class: 'btn btn-large btn-info'}</h2></li>" end def route_item(route) "<li class='route'><h3>#{link_to route.name, route_path(route.oba_id), class: 'btn btn-large btn-success'}</h3></li>" ...
32.131579
120
0.642916
21cc400abcc8575ba8801a1e0060316fc444fe76
596
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "History" do before(:each) do @date_time = mock(DateTime) @date_time.stub!(:strftime).and_return("01/11/2010 02:48PM") DateTime.stub!(:now).and_return(@date_time) History.stub!(:file_path).and_return("#{File.dirname(__FILE__)}...
28.380952
86
0.709732
33381cc36462e4e8e3cb1406cfdbdaa02fcf6545
489
# Copyright 2012 Team 254. All Rights Reserved. # @author pat@patfairbank.com (Patrick Fairbank) # # Script for starting/stopping the parts management server. require "bundler/setup" require "daemons" require "pathological" require "thin" pwd = Dir.pwd Daemons.run_proc("parts_server", :monitor => true) do Dir.chdir...
27.166667
79
0.748466
1ad10290dbd910490f3d7e4157ab9d31f59e61e4
541
# frozen_string_literal: true class StatusUpdateCommentsController < CommentsController def create comment = Comment.new(comment_params) status_update = comment.commentable if comment.text.present? comment.save else flash[:alert] = "O no! We can't save an empty comment. Please try again?...
23.521739
110
0.737523
260531b617081ff41bdd19b6afc21afb0569f02a
7,593
# ------------------------------------------------------------------------------------ # <copyright company="Aspose" file="list_format.rb"> # Copyright (c) 2020 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and ass...
32.728448
110
0.623996
87b0b2f308d18c3859469dacfafc97119c204ef1
1,844
# frozen_string_literal: true class CollegeGetTogetherSchema < GraphQL::Schema mutation(Types::MutationType) query(Types::QueryType) # For batch-loading (see https://graphql-ruby.org/dataloader/overview.html) use GraphQL::Dataloader # GraphQL-Ruby calls this when something goes wrong while running a query:...
34.148148
83
0.714751
39ab13a0704eb786d7dda6d1b1039ec2e819136c
9,829
# frozen_string_literal: true require "helper" module Nokogiri module HTML # testing error edge cases of HTML comments from the living WHATWG spec # as of 2020-08-03 # https://html.spec.whatwg.org/multipage/parsing.html class TestComment < Nokogiri::TestCase # https://html.spec.whatwg.org/mult...
44.274775
160
0.607997
211f420d571dafb9660274a8acc4db3a3ee9d4ba
806
# frozen_string_literal: true # == Schema Information # # Table name: players # # id :bigint(8) not null, primary key # session_token :string # player_name :string not null # color :string not null # world_id :bigint(8) # created_at :datetime not nul...
25.1875
73
0.668734
18b644182ea49a2c7f13383282ce5223f366e2d6
884
json.path @path.to_s json.url files_path(@path).to_s #TODO: support array of shell urls, along with the default shell url which could be above json.shell_url OodAppkit.shell.url(path: @path.to_s).to_s json.files @files do |f| json.id f[:id] json.type f[:directory] ? 'd' : 'f' json.name f[:name] json.url file...
35.36
160
0.727376
9144cae1b1e2559a18b02cb2a34f775f9e3a3236
4,478
# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Labservices::Mgmt::V2018_10_15 # # The Managed Labs Client. # class Operations include MsRestAzure # # Creates and initializes a new instan...
38.273504
138
0.690487
b96b6e505e20e7cd3df834b016956ee1a2ac4c15
4,676
class Lua < Formula desc "Powerful, lightweight programming language" homepage "https://www.lua.org/" url "https://www.lua.org/ftp/lua-5.4.4.tar.gz" sha256 "164c7849653b80ae67bec4b7473b884bf5cc8d2dca05653475ec2ed27b9ebf61" license "MIT" revision 1 livecheck do url "https://www.lua.org/ftp/" regex...
33.884058
131
0.679855
91e044d342348c911c56045e756b3f0ae6c595b6
506
class Article < ActiveRecord::Base has_many :comments, dependent: :destroy validates :title, presence: true, length: {minimum: 5} validates :text, presence: true, length: {minimum: 5} # It returns the articles whose titles contain one or more words t...
26.631579
86
0.62253
1ad1ee79c378d371e3127f8777f104ff76e241c9
243
class PictureSet # %%mo%%ps def self.order 'year DESC, weight, sequence DESC' end def self.get(tag=nil) r=(relation=Picture.order PictureSet.order) r=r.joins(:tags).where :tags => {:name => tag} if tag r.all end end
16.2
57
0.633745
03a7513aa403acb7104c14d6814899f741c12569
266
class CreateComments < ActiveRecord::Migration def change create_table :comments do |t| t.string :name t.text :body t.references :article, index: true t.timestamps null: false end add_foreign_key :comments, :articles end end
20.461538
46
0.672932
f7598ab3d9b096f6f86498c67f95f303eb232c5e
1,046
Pod::Spec.new do |s| s.name = "NGTabBarController" s.version = "0.1" s.summary = "A custom TabBarController implementation for iPhone and iPad." s.description = 'A custom TabBarController which can be positioned on the bottom, top, left or top. ' \ 'Utilizes iOS 5 Containme...
55.052632
106
0.624283
6a246f5b1c2f790d51d4a1f8729d97acbb025651
680
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 MaintenanceManagementRailsApp class Application < Rails::Application # Initialize configuration defaults for origin...
34
82
0.772059
ab60ad07ac196c2b88ce1f1e4db73c6be808cc1d
1,621
# Copyright (C) 2015-2019 MongoDB, 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 ...
27.948276
82
0.646514
3373de7c05cc6bbf050a3e518c8e5e350a6d6f77
1,976
require 'test_helper' module ActionController module Serialization class AdapterSelectorTest < ActionController::TestCase class Profile < Model attributes :id, :name, :description associations :comments end class ProfileSerializer < ActiveModel::Serializer type 'profiles...
31.365079
139
0.6417
18107d4a9107050449eaf50e4ea2d94a541d0e9d
695
class Dungeons::API require 'httparty' def race_call url = 'http://www.dnd5eapi.co/api/races' response = HTTParty.get(url) response.parsed_response end def race_info_call(input) url = 'http://www.dnd5eapi.co/api/races' response = HTTParty.get(url + "/#{input}"...
23.166667
50
0.607194
01382866b91383c142d7e849dba01891c343b16e
289
ENV['SINATRA_ENV'] ||= "development" require 'bundler/setup' Bundler.require(:default, ENV['SINATRA_ENV']) # ActiveRecord::Base.establish_connection( # :adapter => "sqlite3", # :database => "db/#{ENV['SINATRA_ENV']}.sqlite" # ) set :database_file, "./database.yml" require_all 'app'
24.083333
50
0.692042
7a47bc612cd39e29b2b1d875593a86561035d311
907
# frozen_string_literal: true # User authenticate operation (server step 1) class Auth::Challenge < AuthTransaction CONTRACT = Auth::ChallengeContract DECORATOR = Auth::ChallengeDecorator step :get_user_from_email_param step :start_sirp_verifier step :get_challenge_and_proof step :store_proof step :chal...
25.914286
106
0.716648
e2521908cc37b011d9083e03468b6b5faced03dc
28,032
# frozen_string_literal: true module Razorpay module IFSC module Bank AACX = :AACX ABBL = :ABBL ABCX = :ABCX ABDX = :ABDX ABEX = :ABEX ABHY = :ABHY ABNA = :ABNA ABPB = :ABPB ABSB = :ABSB ABUX = :ABUX ACAX = :ACAX ACBX = :ACBX ACCX = :A...
19.004746
80
0.422945
03a32d5b3b882457354d0869e419de7f2b19e4e4
3,866
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: subdir/messages.proto require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("subdir/messages.proto", :syntax => :proto3) do add_message "testdata.subdir.IntegerMessage" do optional :value, :int32, 1 ...
46.02381
159
0.724263
6ac51ee67c46aee7c0fdafd2de127a87c4b73bfa
4,204
# encoding: utf-8 # # Cookbook Name:: zap # HWRP:: zap # # Author:: Joseph J. Nuspl Jr. <nuspl@nvwls.com> # # Copyright:: 2014, Joseph J. Nuspl Jr. # # 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 Licens...
24.87574
79
0.616794
79d7f95b35842c11f026fac3667c798bf798d5b6
1,578
=begin #Telegram bot API #This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api). OpenAPI spec version: 3.3 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3 =end require 'spec_helper' require 'json' require 'date' # Unit tests for Te...
25.868852
103
0.722433
ab720aa6dbc95d2ec9894c6c265c720ba65fd707
4,448
require_relative 'base' module RailsRoutesAnalyzer module RouteIssue class Resources < Base fields :suggested_param def human_readable_error_message "`#{route_creation_method}' call at #{file_location} for #{controller_class_name} should use #{suggested_param}" end def error_s...
33.19403
120
0.545414
38758690d622d2f3e9d8bf8323ba251013eedda6
1,573
Pod::Spec.new do |s| s.name = "UMengSocial" s.version = "2.1.3" s.summary = "UMeng's official Social SDK for iOS." s.description = "UMeng Social SDK,You can easily share any content to Sina Weibo, Tencent Weibo, Renren, Qzone, Doubban, Wechat and so on using our unified APIs." s.homepage = "http:...
62.92
255
0.699936
e8bfe49db017a1e4db03f9797b72f61442b66ba2
5,714
require_relative '../../../lib/gitlab/build/info' require 'chef_helper' describe Build::Info do describe '.package' do describe 'shows EE' do it 'when ee=true' do stub_is_ee_env(true) expect(described_class.package).to eq('gitlab-ee') end it 'when env var is not present, checks...
35.490683
182
0.661883
4a41da232cc8b8079031e526848d7b44322a6980
3,360
#-- 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 ChiliProject, which is a fork ...
40
131
0.72619
01533939876d735567dbda17f03a42377d642011
2,740
class OauthController < ApplicationController skip_before_action :authenticate_request def auth_oauth #try to signup res = check_token if res == "Not exists" command = RegisterUserOauth.call(params[:email], params[:token_oauth]) if command.success? ...
33.012048
178
0.485401
ffc4dcbbc68324a8d22a37a680c1ee24728bd592
461
# frozen_string_literal: true class AddCompressImageFileNameToSpreeProductImports < SolidusSupport::Migration[4.2] def change add_column :spree_product_imports, :compress_image_file_file_name, :string add_column :spree_product_imports, :compress_image_file_content_type, :string add_column :spree_product_...
46.1
84
0.83731
87ddaca9b885b1c7d1ddbf2366bed8cfe56e03ec
5,457
# Encoding: utf-8 # Cloud Foundry Java Buildpack # Copyright 2013 the original author or authors. # # 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/LICEN...
45.099174
119
0.703134
e85e02d9cface9d0435a363ea209d8dd0fedb1ef
47
module BrowserifyRails VERSION = "0.4.2" end
11.75
22
0.723404
1a625a89d7df6f421b8bcb43dedec7d1a9819312
2,293
# frozen_string_literal: true class UsersController < ApplicationController layout 'sites' before_action :require_user, only: [:show, :edit, :update] before_action :set_user, except: :create before_action :complain_if_non_gov_email, only: [:show, :edit] NON_GOV_EMAIL_MESSAGE = <<~MESSAGE Because you don...
28.6625
151
0.67597
ff3b2bee005f7a0db563e3db509d9aa91d6a7fbd
1,238
# frozen_string_literal: true require 'active_record' require 'zombie_battleground/api/validation_helper' require 'zombie_battleground/api/requests/request_helper' module ZombieBattleground class Api class Requests ## # Request validator for GetMatch class GetMatchRequest include Acti...
20.295082
64
0.523425
393bc73113457d5d1953a27fffb427a748732274
77
module EventMachine class HttpRequest VERSION = "1.0.3" end end
12.833333
22
0.649351
e937bbe5eace260cfa0d165d3c04d7c0ee9b30bb
1,562
Userland::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test ...
42.216216
85
0.774648
262b932ce78d8851cea9c91deea68525d2040eac
1,528
require 'adyen/signature' module Adyen module HPP # The Signature module can sign and verify HMAC SHA-256 signatures for Hosted Payment Pages module Signature extend self # Sign the parameters with the given shared secret # @param [Hash] params The set of parameters to sign. # @param...
44.941176
105
0.695681
ed51f2777e4d22386f74fc67752fe80ec9b95e58
1,352
class Librcsc < Formula desc "RoboCup Soccer Simulator library" homepage "https://osdn.net/projects/rctools/" # Canonical: https://osdn.net/dl/rctools/librcsc-4.1.0.tar.gz url "https://dotsrc.dl.osdn.net/osdn/rctools/51941/librcsc-4.1.0.tar.gz" sha256 "1e8f66927b03fb921c5a2a8c763fb7297a4349c81d1411c450b180178...
34.666667
93
0.715237
3866460dc28e4d2fe1d3516f19d81787ef816a47
138
class AddRecognitionBotMessageTs < ActiveRecord::Migration[5.0] def change add_column :recognitions, :bot_msg_ts, :string end end
23
63
0.775362
87975c0cca036e73dcbc7b6f21ad78060e2c43c3
445
class TaxonNameClassification::Icnb::NotEffectivelyPublished < TaxonNameClassification::Icnb NOMEN_URI='http://purl.obolibrary.org/obo/NOMEN_0000082'.freeze def self.disjoint_taxon_name_classes self.parent.disjoint_taxon_name_classes + self.collect_descendants_and_itself_to_s(TaxonNameClassification::...
21.190476
101
0.788764
e9b0765ed4834965e76f5a22b2958e2561261b38
19,794
# frozen_string_literal: true # name: discourse-calendar # about: Display a calendar in the first post of a topic # version: 0.2 # author: Daniel Waterworth, Joffrey Jaffeux # url: https://github.com/discourse/discourse-calendar libdir = File.join(File.dirname(__FILE__), "vendor/holidays/lib") $LOAD_PATH.unshift(libd...
31.721154
97
0.705163
1dabfbfaf9d1c09e63948a161bbb2af5130113c1
203
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Paysecure" do it "fails" do fail "hey buddy, you should probably rename this file and start specing for real" end end
25.375
85
0.743842
0309d5edf880f2b06a34c5949d0c86d6ae899df1
9,362
# -*- coding: binary -*- module Msf module Ui module Console ### # # Module-specific command dispatcher. # ### module ModuleCommandDispatcher include Msf::Ui::Console::CommandDispatcher def commands { "reload" => "Reload the current module from disk", "check" => "Check to see if a target is vul...
28.455927
143
0.629673
385540661336b63d96e02c0235e38191cce97be6
1,660
# Copyright 2012 The ham21/radio Authors # # 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 ...
28.62069
77
0.601807
8705b1976793853b16f53132a1f7fb2c3151c838
716
module LanguageServer module Protocol module Interface # # Document link options. # class DocumentLinkOptions def initialize(resolve_provider: nil) @attributes = {} @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.free...
19.351351
78
0.568436
28e330bbe83cbdb6bff5a49858953de9f6595bc2
50
module ForestrapSass VERSION = "0.0.1.pre2" end
12.5
24
0.72
625afe8c8a415afb9bb8a9d29adc2b89ee5e54be
297
module Administer module Fields class BelongsTo < Administer::Fields::Association attr_reader :primary_key def initialize(name, primary_key, association_class, parent) super(name, association_class, parent) @primary_key = primary_key end end end end
22.846154
66
0.700337