code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
#locale-settings { margin-top: 30px; } #preferred-locale { margin-top: 10px; } #locale-settings .label { color: #aaa; display: inline-block; font-size: 16px; font-weight: 300; margin: 6px 10px 0 0; text-align: right; width: 280px; vertical-align: top; } #locale-settings .locale-selector { displ...
mathjazz/pontoon
pontoon/contributors/static/css/settings.css
CSS
bsd-3-clause
1,702
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__char_connect_socket_w32CreateFile_66a.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-66a.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: connect_socket Rea...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s01/CWE23_Relative_Path_Traversal__char_connect_socket_w32CreateFile_66a.cpp
C++
bsd-3-clause
5,179
/* * Copyright (c) 2014 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
etashjian/ECE757-final
src/dev/virtio/pci.cc
C++
bsd-3-clause
7,129
/* $NetBSD: ecoff_machdep.h,v 1.1 2002/03/13 05:03:18 simonb Exp $ */ #include <mips/ecoff_machdep.h>
MarginC/kame
netbsd/sys/arch/evbmips/include/ecoff_machdep.h
C
bsd-3-clause
103
\documentclass{jarticle} \usepackage{plext} \usepackage{calc} \begin{document} %% cf. latex.ltx macros (from ltboxes) ใ‚ใ„ใ†ใˆใŠ\makebox[60pt]{ใ‹ใใ}ใ•ใ—ใ™ใ›ใ\par ใ‚ใ„ใ†ใˆใŠ\makebox[-30pt]{ใ‹ใใ}ใ•ใ—ใ™ใ›ใ\par % calc extension check ใ‚ใ„ใ†ใˆใŠ\makebox[60pt+10pt]{ใ‹ใใ}ใ•ใ—ใ™ใ›ใ\par ใ‚ใ„ใ†ใˆใŠ\makebox[-30pt/2*3]{ใ‹ใใ}ใ•ใ—ใ™ใ›ใ\par % robustness \section{ใ‚ใ„ใ†ใˆใŠ\m...
h-kitagawa/platex
tests/plext_pbox.tex
TeX
bsd-3-clause
1,020
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
5452/durex
includes/src/Mage_Adminhtml_Block_Permissions_Tab_Rolesusers.php
PHP
bsd-3-clause
1,869
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_long_84_goodB2G.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml Template File: sources-sinks-84_goodB2G.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Man...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s07/CWE762_Mismatched_Memory_Management_Routines__new_free_long_84_goodB2G.cpp
C++
bsd-3-clause
1,448
'use strict'; angular.module("ngLocale", [], ["$provide", function ($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; ...
mudunuriRaju/tlr-live
tollbackend/web/js/angular-1.5.5/i18n/angular-locale_en-jm.js
JavaScript
bsd-3-clause
4,012
/* ** License Applicability. Except to the extent portions of this file are ** made subject to an alternative license as permitted in the SGI Free ** Software License B, Version 1.1 (the "License"), the contents of this ** file are subject only to the provisions of the License. You may not use ** this file except in co...
anasazi/POP-REU-Project
pkgs/libs/mesa/src/src/glu/sgi/libnurbs/internals/bufpool.cc
C++
bsd-3-clause
3,853
#ifndef fl_gl_cyclic_color_wheel_h #define fl_gl_cyclic_color_wheel_h #include <FL/gl.h> /* GLfloat GLubyte GLuint GLenum */ #include <FL/Fl.H> #include <FL/Fl_Gl_Window.H> #include <FL/Fl_Value_Input.H> #include <FL/Fl_Check_Button.H> class fl_gl_cyclic_color_wheel : public Fl_Gl_Window { public: fl_gl_cyclic_colo...
masafumi-inoue/GTS
sources/libcpp83gts_callback_and_action/fl_gl_cyclic_color_wheel.h
C
bsd-3-clause
1,711
from django.apps import AppConfig class ContentStoreAppConfig(AppConfig): name = "contentstore" def ready(self): import contentstore.signals contentstore.signals
praekelt/seed-stage-based-messaging
contentstore/apps.py
Python
bsd-3-clause
190
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/prefs/json_pref_store.h" #include <algorithm> #include "base/bind.h" #include "base/callback.h" #include "base/file_util.h" #include ...
cvsuser-chromium/chromium
base/prefs/json_pref_store.cc
C++
bsd-3-clause
11,988
<?php /** * Zym Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * * @category Zym * @package Zym_View * @subpackage Helper * @copyright Copyright (c) 2008 Zym. (http://www.zym-project.com/) * @license http://www.zym-p...
robinsk/zym
library/Zym/View/Helper/GetResponse.php
PHP
bsd-3-clause
928
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
5452/durex
includes/src/Mage_XmlConnect_Model_Simplexml_Form_Element_Checkbox.php
PHP
bsd-3-clause
1,850
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
5452/durex
includes/src/Mage_Catalog_Model_Resource_Product_Option_Value_Collection.php
PHP
bsd-3-clause
8,912
# -*- coding: utf-8 -*- """Git tools.""" from shlex import split from plumbum import ProcessExecutionError from plumbum.cmd import git DEVELOPMENT_BRANCH = "develop" def run_git(*args, dry_run=False, quiet=False): """Run a git command, print it before executing and capture the output.""" command = git[split...
andreoliw/clitoolkit
clit/git.py
Python
bsd-3-clause
899
package testclasses; import de.unifreiburg.cs.proglang.jgs.support.DynamicLabel; import util.printer.SecurePrinter; public class PrintMediumSuccess { public static void main(String[] args) { String med = "This is medium information"; med = DynamicLabel.makeMedium(med); SecurePrinter.printMedium(med); Stri...
luminousfennell/jgs
DynamicAnalyzer/src/main/java/testclasses/PrintMediumSuccess.java
Java
bsd-3-clause
430
define(["pat-autoscale", "jquery"], function(pattern, jQuery) { describe("pat-autoscale", function() { beforeEach(function() { $("<div/>", {id: "lab"}).appendTo(document.body); $(window).off(".autoscale"); }); afterEach(function() { $("#lab").remove(); ...
Patternslib/Patterns-archive
tests/specs/pat/autoscale.js
JavaScript
bsd-3-clause
6,201
require 'spec_helper' RSpec.describe Spree::CheckoutController, type: :controller do # copied from original checkout controller spec let(:token) { 'some_token' } let(:user) { FactoryGirl.create(:user) } let(:order) { OrderWalkthrough.up_to(:delivery) } before do allow_any_instance_of(ActionDispatch::Req...
netguru/spree_payu_integration
spec/controllers/spree/checkout_controller_decorator_spec.rb
Ruby
bsd-3-clause
6,155
/* * Copyright 2014 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 ...
AmiArt/treefrog-framework
3rdparty/mongo-c-driver-1.9.5/src/mongoc/mongoc-bulk-operation.h
C
bsd-3-clause
6,633
#include "pri.h" #include "calcu_erase_dot_noise.h" #include "iip_erase_dot_noise.h" void iip_erase_dot_noise::_exec_uchar( long l_width, long l_height, long l_area_xpos, long l_area_ypos, long l_area_xsize, long l_area_ysize, long l_channels, unsigned char *ucharp_in, unsigned char *ucharp_out ) { long l_start, l_sc...
masafumi-inoue/GTS
sources/libcpp72iip_erase_dot_noise/iip_erase_dot_noise_uchar.cpp
C++
bsd-3-clause
2,775
// Copyright (c) 2013-2015 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package wire_test import ( "bytes" "io" ) // fixedWriter implements the io.Writer interface and intentially allows // testing of error paths by forcing short writes....
hectorj/btcd
wire/fixedIO_test.go
GO
isc
2,030
java_import 'org.apollo.game.action.DistancedAction' # A distanced action which opens a door. class OpenDoorAction < DistancedAction include DoorConstants attr_reader :door def initialize(mob, door) super(0, true, mob, door.position, DOOR_SIZE) @door = door end def executeAction mob.turn_to(@...
garyttierney/apollo
data/plugins/navigation/door/door.rb
Ruby
isc
753
import * as React from 'react'; import { BsPrefixComponent } from './helpers'; interface NavbarToggleProps { label?: string; } declare class NavbarToggle< As extends React.ReactType = 'button' > extends BsPrefixComponent<As, NavbarToggleProps> {} export default NavbarToggle;
glenjamin/react-bootstrap
types/components/NavbarToggle.d.ts
TypeScript
mit
284
๏ปฟusing System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace DotSpatial.Symbology.Forms { public partial class LineSymbolDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.ICo...
CGX-GROUP/DotSpatial
Source/DotSpatial.Symbology.Forms/LineSymbolDialog.Designer.cs
C#
mit
6,632
function* f() { var x; try { x = yield 1; } catch (ex) { yield ex; } return 2; } var g = f(); expect(g.next()).toEqual({value: 1, done: false}); expect(g.next()).toEqual({value: 2, done: true}); g = f(); expect(g.next()).toEqual({value: 1, done: false}); expect(g.throw(3)).toEqual({value: 3, done: f...
kellyselden/babel
packages/babel-preset-es2015/test/fixtures/traceur/Yield/YieldAssignThrow.js
JavaScript
mit
378
package events import ( "errors" "github.com/miketheprogrammer/go-thrust/lib/commands" "github.com/miketheprogrammer/go-thrust/lib/dispatcher" ) /* Create a new EventHandler for a give event. */ func NewHandler(event string, fn interface{}) (ThrustEventHandler, error) { h := ThrustEventHandler{} h.Event = event...
FPurchess/blank
vendor/src/github.com/miketheprogrammer/go-thrust/lib/events/eventhandler.go
GO
mit
1,347
package edu.pacificu.cs493f15_1.paperorplasticapp; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2);...
eheydemann/PaperOrPlastic
PaperOrPlasticApp/app/src/test/java/edu/pacificu/cs493f15_1/paperorplasticapp/ExampleUnitTest.java
Java
mit
326
from __future__ import unicode_literals from .atomicparsley import AtomicParsleyPP from .ffmpeg import ( FFmpegPostProcessor, FFmpegAudioFixPP, FFmpegEmbedSubtitlePP, FFmpegExtractAudioPP, FFmpegFixupStretchedPP, FFmpegMergerPP, FFmpegMetadataPP, FFmpegVideoConvertorPP, ) from .xattrpp ...
janusnic/youtube-dl-GUI
youtube_dl/postprocessor/__init__.py
Python
mit
760
package com.hearthsim.test.minion; import com.hearthsim.card.Card; import com.hearthsim.card.CharacterIndex; import com.hearthsim.card.basic.minion.BoulderfistOgre; import com.hearthsim.card.basic.minion.RaidLeader; import com.hearthsim.card.classic.minion.common.ScarletCrusader; import com.hearthsim.card.classic.mini...
slaymaker1907/HearthSim
src/test/java/com/hearthsim/test/minion/TestAbomination.java
Java
mit
11,770
// Type definitions for yargs 17.0 // Project: https://github.com/chevex/yargs, https://yargs.js.org // Definitions by: Martin Poelstra <https://github.com/poelstra> // Mizunashi Mana <https://github.com/mizunashi-mana> // Jeffery Grajkowski <https://github.com/pushplay> // ...
georgemarshall/DefinitelyTyped
types/yargs/index.d.ts
TypeScript
mit
48,896
๏ปฟusing Mono.Cecil; namespace Cake.Web.Docs.Reflection.Model { /// <summary> /// Represents reflected method information. /// </summary> public interface IMethodInfo { /// <summary> /// Gets the method identity. /// </summary> /// <value>The method identity.</value> ...
naasking/website
src/Cake.Web.Docs/Reflection/Model/IMethodInfo.cs
C#
mit
701
package im.actor.server.api.rpc.service import im.actor.api.rpc.Implicits._ import im.actor.api.rpc._ import im.actor.api.rpc.counters.UpdateCountersChanged import im.actor.api.rpc.groups.{ UpdateGroupInvite, UpdateGroupUserInvited } import im.actor.api.rpc.messaging._ import im.actor.api.rpc.misc.ResponseVoid import ...
nguyenhongson03/actor-platform
actor-server/actor-tests/src/test/scala/im/actor/server/api/rpc/service/MessagingServiceHistorySpec.scala
Scala
mit
18,840
๏ปฟusing System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [asse...
danice/Nancy.Hal
src/Nancy.Hal/Properties/AssemblyInfo.cs
C#
mit
491
<?php /** * This file is part of the Zephir. * * (c) Phalcon Team <team@zephir-lang.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Zephir\Detectors; /** * ForValueUseDetector. * * Detects whether the traversed...
phalcon/zephir
Library/Detectors/ForValueUseDetector.php
PHP
mit
630
<?php namespace Platformsh\Cli\Command\Integration; use Platformsh\Cli\Command\PlatformCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class IntegrationDeleteCommand extends PlatformCommand { /** ...
Fredplais/platformsh-cli
src/Command/Integration/IntegrationDeleteCommand.php
PHP
mit
1,647
# Wind River Workbench generated Makefile. # Do not edit!!! # # The file ".wrmakefile" is the template used by the Wind River Workbench to # generate the makefiles of this project. Add user-specific build targets and # make rules only(!) in this project's ".wrmakefile" file. These will then be # automatically dumped in...
dudomatik/conveyor-belt
StateMachineTelnet/SIMNTdiab/Makefile
Makefile
mit
18,791
__author__ = 'Nishanth' from juliabox.cloud import JBPluginCloud from juliabox.jbox_util import JBoxCfg, retry_on_errors from googleapiclient.discovery import build from oauth2client.client import GoogleCredentials import threading class JBoxGCD(JBPluginCloud): provides = [JBPluginCloud.JBP_DNS, JBPluginCloud.JB...
JuliaLang/JuliaBox
engine/src/juliabox/plugins/dns_gcd/impl_gcd.py
Python
mit
2,592
require 'rails' module StripeI18n class Railtie < ::Rails::Railtie initializer 'stripe-i18n' do |app| StripeI18n::Railtie.instance_eval do pattern = pattern_from app.config.i18n.available_locales add("rails/locale/#{pattern}.yml") end end protected def self.add(pattern)...
ekosz/stripe-i18n
lib/stripe_i18n/railtie.rb
Ruby
mit
567
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi * * 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 l...
chenDoInG/jenkins
core/src/main/java/hudson/node_monitors/DiskSpaceMonitor.java
Java
mit
2,868
class PersonalFileUploader < FileUploader def self.dynamic_path_segment(model) File.join(CarrierWave.root, model_path(model)) end def self.base_dir File.join(root_dir, '-', 'system') end private def secure_url File.join(self.class.model_path(model), secret, file.filename) end def self.mo...
t-zuehlsdorff/gitlabhq
app/uploaders/personal_file_uploader.rb
Ruby
mit
492
<?php /** * @copyright 2006-2013, Miles Johnson - http://milesj.me * @license http://opensource.org/licenses/mit-license.php * @link http://milesj.me/code/php/transit */ namespace Transit\Transformer\Image; use Transit\File; use \InvalidArgumentException; /** * Crops a photo, but resizes and keeps ...
milesj/transit
src/Transit/Transformer/Image/CropTransformer.php
PHP
mit
3,668
--- title: Putain de code ! url: http://putaindecode.io/ source: https://github.com/putaindecode/putaindecode.io showcaseTags: - open-source - community - learning - multi-languages ---
MoOx/phenomic
website/content/showcase/entry/putaindecode.io.md
Markdown
mit
194
teleirc ======= Telegram <-> IRC gateway. * Uses the [node-telegram-bot](https://github.com/orzFly/node-telegram-bot) library for Telegram communication * IRC communication via martynsmith's [node-irc](https://github.com/martynsmith/node-irc) module * All Telegram messages are sent to IRC channel * IRC messages sent ...
jeffry1829/teleirc
README.md
Markdown
mit
1,298
require 'spec_helper' describe "php::5_5_4" do let(:facts) { default_test_facts } it do should contain_php__version("5.5.4") end end
webflo/puppet-php
spec/classes/php_5_5_4_spec.rb
Ruby
mit
145
<?php /* * $Id: MssqlPlatform.php 3752 2007-04-11 09:11:18Z fabien $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE AR...
vincent03460/fxcmiscc-partner
lib/symfony/vendor/propel-generator/classes/propel/engine/platform/MssqlPlatform.php
PHP
mit
3,539
// // NSDictionary+Enumerable.h // MRCEnumerable // // Created by Marcus Crafter on 17/11/10. // Copyright 2010 Red Artisan. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDictionary (Enumerable) - (void)each:(void (^)(id key, id obj))block; - (id)inject:(id)m :(id (^)(id m, id key, id o...
matthewzimmer/bit-miner
wrappers/ios/bitminer/Pods/MRCEnumerable/Classes/NSDictionary+Enumerable.h
C
mit
499
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
lmazuel/azure-sdk-for-node
lib/services/devTestLabs/lib/models/artifactSource.js
JavaScript
mit
5,125
// implementation for cube_support.h #include <utils/multiindex.h> #include <utils/fixed_array1d.h> using MathTL::multi_degree; using MathTL::FixedArray1D; namespace WaveletTL { template <class IBASIS, unsigned int DIM> inline void support(const CubeBasis<IBASIS,DIM>& basis, const typename CubeBasis<IBASI...
agnumerikunimarburg/Marburg_Software_Library
WaveletTL/cube/cube_support.cpp
C++
mit
12,820
<?php /** * Config class **/ class Config extends Application { private $config; function __construct($param = array()) { if (!empty($param['file'])) { $this -> load($param['file']); } } public function reset() { $this -> config = array(); } public function load($filename = '') { $file = APP . ...
Claudiu/Moongrace
Moongrace/Lib/config.php
PHP
mit
542
# frozen_string_literal: true class AddFieldsToCourseMaterialFolders < ActiveRecord::Migration[4.2] def change remove_column :course_material_folders, :parent_folder_id, :integer, foreign_key: { references: :course_material_folders } add_column :course_material_folders, :parent_id, :integer...
cysjonathan/coursemology2
db/migrate/20150812024950_add_fields_to_course_material_folders.rb
Ruby
mit
604
MoeDownloader ====== ๅŸบไบŽpython็š„็ฆๅˆฉๅ›พๅ—…ๆŽขๅ™จ๏ผŒ็›ฎๅ‰ๅฏไปฅๅ—…ๆŽข่‰ๆฆดใ€็…Ž่›‹ๅ’ŒไบŒๆฌก่Œใ‚จใƒญ็”ปๅƒใƒ–ใƒญใ‚ฐ่ฟ™ไธ‰ไธช็ฝ‘็ซ™็š„ๅ›พ็‰‡๏ผŒๅฆ‚ๆžœ้œ€่ฆๅŠ ๅ…ฅๅ…ถไป–็ฝ‘็ซ™ไนŸๆฏ”่พƒๅฎนๆ˜“ใ€‚ ๅŸบๆœฌ็”จๆณ•: ====== "` python catch.py [topic] `" ๅ…ถไธญ๏ผŒ๏ผปtopic๏ผฝๅฏไปฅๆ˜ฏcaoliuใ€moeimgใ€jandanไธ‰ไธช้€‰้กนไน‹ไธ€ ๆ›ดๅคš็š„็”จๆณ•่ฏท่พ“ๅ…ฅ "` python catch.py -h `" ๆฅๆŸฅ็œ‹
shanlinfeiniao/MoeDownloader
README.md
Markdown
mit
385
module Emulation export run_cpu const EMULATED_INTRINSICS = [ :get_global_id, :get_global_size ] type EmulationContext global_id global_size function EmulationContext() new( [0,0,0], [0,0,0] ) end end # Emulated version of intrinsic functions # mainl...
JuliaGPU/HSA.jl
src/emulation/emulation.jl
Julia
mit
2,595
package bf.io.openshop.entities; public class Page { private long id; private String title; private String text; public Page() { } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getTitle() { return title...
openshopio/openshop.io-android
app/src/main/java/bf/io/openshop/entities/Page.java
Java
mit
1,413
require 'abstract_unit' require 'controller/fake_models' class CustomersController < ActionController::Base end module Fun class GamesController < ActionController::Base def hello_world end end end module NewRenderTestHelper def rjs_helper_method_from_module page.visual_effect :highlight end end ...
chip/signal-wiki
vendor/rails/actionpack/test/controller/new_render_test.rb
Ruby
mit
27,616
/** * Bootstrap * (sails.config.bootstrap) * * An asynchronous bootstrap function that runs before your Sails app gets lifted. * This gives you an opportunity to set up your data model, run jobs, or perform some special logic. * * For more information on bootstrapping your app, check out: * http://sailsjs.org/#...
piket/twitter-mafia
config/bootstrap.js
JavaScript
mit
1,211
/* * Exchange Web Services Managed API * * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * * 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 * wit...
axelitus/fork-ews-managed-api
Core/Responses/FindFolderResponse.cs
C#
mit
5,021
#define MICROPY_HW_BOARD_NAME "CustomPCB" #define MICROPY_HW_MCU_NAME "STM32F439" #define MICROPY_HW_HAS_FLASH (1) #define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENAB...
bvernoux/micropython
ports/stm32/boards/STM32F439/mpconfigboard.h
C
mit
3,172
const latestIncome = require('./latestIncome') const latestSpending = require('./latestSpending') function aggFinances(search) { return { latestIncome: () => latestIncome(search), latestSpending: () => latestSpending(search), } } module.exports = aggFinances
tithebarn/charity-base
graphql/resolvers/query/CHC/getCharities/aggregate/finances/index.js
JavaScript
mit
273
#ifndef LEON_RTEMS_CONFIG_H_ #define LEON_RTEMS_CONFIG_H_ #ifndef _RTEMS_CONFIG_H_ #define _RTEMS_CONFIG_H_ #include <OsDrvCpr.h> #if defined(__RTEMS__) #if !defined (__CONFIG__) #define __CONFIG__ /* ask the system to generate a configuration table */ #define CONFIGURE_INIT #ifndef RTEMS_POSIX_API #define RTEMS_...
EyesOfThings/Software
Platform Software/myriad/apps/sdcard_wifi_example/leon/rtems_config.h
C
mit
1,928
require 'spec_helper' require 'generator_spec/test_case' require 'generators/refinery/engine/engine_generator' module Refinery describe EngineGenerator do include GeneratorSpec::TestCase destination File.expand_path("../../../../../../tmp", __FILE__) before do prepare_destination run_generat...
resolve/refinerycms
core/spec/lib/generators/refinery/engine/engine_generator_multiple_resources_spec.rb
Ruby
mit
1,394
--- title: The Title of the Book date: 30/12/2018 --- According to Rev. 1:1 the title of the book is "The Revelation of Jesus Christ". It is a self-revelation of Him to His people and an expression of His care for them. The book is the unveiling of Jesus Christ and it is both from Jesus and about Him. He is the fo...
imasaru/sabbath-school-lessons
src/en/2019-01-45-sec/01/02.md
Markdown
mit
729
package inputs import ( "fmt" ) // DiskIO is based on telegraf DiskIO. type DiskIO struct { baseInput } // PluginName is based on telegraf plugin name. func (d *DiskIO) PluginName() string { return "diskio" } // UnmarshalTOML decodes the parsed data to the object func (d *DiskIO) UnmarshalTOML(data interface{}) ...
influxdb/influxdb
telegraf/plugins/inputs/diskio.go
GO
mit
1,832
// This file was generated based on 'C:\ProgramData\Uno\Packages\UnoCore\0.19.6\Source\Uno\UX\Attributes\$.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.Attribute.h> namespace g{namespace Uno{namespace UX{struct UXSourceFileNameAttribute;}}} namespace g{ namespace ...
blyk/BlackCode-Fuse
TestApp/.build/Simulator/Android/include/Uno.UX.UXSourceFileNameAttribute.h
C
mit
751
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Task extends Model { // }
voiceBits/bitz-admin
voicebitsapps/app/Task.php
PHP
mit
98
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from datetime import timedelta from flask import flash, redirect, request, session from indico.core.db i...
pferreir/indico
indico/modules/news/controllers.py
Python
mit
3,954
package swarm import ( "testing" "time" ma "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr" context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" inet "github.com/ipfs/go-ipfs/p2p/net" ) func TestNotifications(t *testing.T) { ctx := context.Background()...
sbruce/go-ipfs
p2p/net/swarm/swarm_notif_test.go
GO
mit
4,319
## Infiniti Samples This repository contains examples for [Intelledox Infiniti](http://intelledox.com). Directory | Description --------- | ----------- [Extension Examples](ExtensionExamples) | A collection of sample code that helps you learn and explore Infiniti extensions. [API Examples](ApiExamples) | A collectio...
Intelledox/Infiniti
README.md
Markdown
mit
624
๏ปฟ// -------------------------------------------------------------------------------------------- // <copyright file="TransformVisitor.UnionAll.cs" company="Effort Team"> // Copyright (C) 2011-2014 Effort Team // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this ...
wertzui/effort
Main/Source/Effort/Internal/DbCommandTreeTransformation/TransformVisitor.UnionAll.cs
C#
mit
2,438
<?php namespace Kunstmaan\NodeSearchBundle\Helper\FormWidgets; use Doctrine\ORM\EntityManager; use Kunstmaan\AdminBundle\Helper\FormWidgets\FormWidget; use Kunstmaan\NodeBundle\Entity\Node; use Kunstmaan\NodeSearchBundle\Entity\NodeSearch; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\HttpFou...
mwoynarski/KunstmaanBundlesCMS
src/Kunstmaan/NodeSearchBundle/Helper/FormWidgets/SearchFormWidget.php
PHP
mit
1,850
๏ปฟusing System.Reflection; [assembly: AssemblyTitle("Rainbow")] [assembly: AssemblyDescription("Rainbow serialization library")]
kamsar/Rainbow
src/Rainbow/Properties/AssemblyInfo.cs
C#
mit
130
main: main.cc g++ -O2 -Wall -Wextra -o main main.cc run: main ./main debug: main valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./main clean: rm -fv main
PysKa-Ratzinger/personal_project_euler_solutions
solutions/051-075/54/Makefile
Makefile
mit
183
define(function(require, exports, module) { var Notify = require('common/bootstrap-notify'); var FileChooser = require('../widget/file/file-chooser3'); exports.run = function() { var $form = $("#course-material-form"); var materialChooser = new FileChooser({ element: '#materia...
richtermark/SMEAGOnline
web/bundles/topxiaweb/js/controller/course-manage/material-modal.js
JavaScript
mit
1,892
#!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the...
ghodasara/ForecastIO
Pods/Target Support Files/Pods-ForecastIO iOS Tests/Pods-ForecastIO iOS Tests-frameworks.sh
Shell
mit
8,050
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2013 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtain...
vbudovski/ogre
Samples/ShaderSystemMultiLight/include/RTShaderSRSSegmentedLights.h
C
mit
10,199
module.exports={A:{A:{"2":"H D G E A B FB"},B:{"1":"p z J L N I","2":"C"},C:{"1":"0 2 3 5 6 8 9 P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB","2":"4 aB F K H D G E A B C p z J L N I O YB SB"},D:{"1":"0 2 3 5 6 8 9 z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v...
stephaniejn/stephaniejn.github.io
node_modules/caniuse-lite/data/features/download.js
JavaScript
mit
857
<?php /** * This makes our life easier when dealing with paths. Everything is relative * to the application root now. */ chdir(dirname(__DIR__)); // Decline static file requests back to the PHP built-in webserver if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PA...
iansltx/helpwanted
public/index.php
PHP
mit
843
// --------------------------------------------------------------------------------------------- #region // Copyright (c) 2014, SIL International. All Rights Reserved. // <copyright from='2008' to='2014' company='SIL International'> // Copyright (c) 2014, SIL International. All Rights Reserved. // // Distribut...
mccarthyrb/libpalaso
SIL.Scripture/VersificationTable.cs
C#
mit
9,031
{{< layout}} {{$pageTitle}}Upload your photo{{/pageTitle}} {{$header}} <h1>Take your photo</h1> {{/header}} {{$content}} <p>If you need to, <a href="/priority_service_170215/photoguide-short/">read the photo guide again</a>.</p> <p> Weโ€™ll store all photos for up to 30 days in line...
maxinedivers/pass-max
views/priority_service_170215/photoguide-short/short-upload-photo.html
HTML
mit
2,245
require 'sprockets/autoload' require 'sprockets/path_utils' module Sprockets class BabelProcessor VERSION = '1' def self.instance @instance ||= new end def self.call(input) instance.call(input) end def initialize(options = {}) @options = options.merge({ 'blacklist...
Andreis13/sprockets
lib/sprockets/babel_processor.rb
Ruby
mit
1,054
'use strict'; const EventEmitter = require('events'); const uuid = require('node-uuid'); const ItemType = require('./ItemType'); const { Inventory, InventoryFullError } = require('./Inventory'); const Logger = require('./Logger'); const Player = require('./Player'); /** * @property {Area} area Area the it...
CodeOtter/tech-career
src/Item.js
JavaScript
mit
6,892
๏ปฟusing System; using System.Collections.Generic; using Foundation.ObjectHydrator.Interfaces; namespace Foundation.ObjectHydrator.Generators { public class UnitedKingdomCityGenerator : IGenerator<string> { private readonly Random _random; private IList<string> _citynames = new List<string>(); ...
flightlog/flsserver
src/ObjectHydrator-master/Foundation.ObjectHydrator/Generators/UnitedKingdomCityGenerator.cs
C#
mit
29,362
<fieldset class="col-sm-12 bordure"> <legend class="legende">{{ 'Verifyrecord' | translate }}</legend> <div ng-include src="'partials/message-include.html'"></div> <form class="well form-horizontal"> <div class="form-group"> <label for="verifyrecord_uid" class="col-sm-2 control-label">{{ 'verifyr...
cytochromewangdong/HippoStart
src/main/webapp/app_back/partials/verifyrecord/verifyrecord_form.html
HTML
mit
5,603
// This file was generated based on 'C:\ProgramData\Uno\Packages\Fuse.Controls\0.18.8\$.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Fuse.Animations.IResize.h> #include <Fuse.Controls.TextBlock.h> #include <Fuse.IActualPlacement.h> #include <Fuse.Navigation.INavigation...
blyk/BlackCode-Fuse
TestApp/.build/Simulator/Android/include/Fuse.Controls.Text.h
C
mit
1,103
var JobsList = React.createClass({displayName: "JobsList", render: function() { return ( React.createElement(JobItem, {title: "Trabalho Python", desc: "Descricao aqui"}) ); } }); var JobItem = React.createClass({displayName: "JobItem", render: function() { React.createEl...
raonyguimaraes/pyjobs
pyjobs/web/static/js/.module-cache/4ae00001aee8e40f0fb90fff1d2d3b85d7f734e2.js
JavaScript
mit
600
/*************************************************************************/ /* skeleton_modification_stack_3d.h */ /*************************************************************************/ /* This file is part of: */ /* ...
DmitriySalnikov/godot
scene/resources/skeleton_modification_stack_3d.h
C
mit
3,932
Merge Search Result Templates ================ With these templates you are able to merge search results from multiple search web parts into one view. ![Here is an example where a global query is merged with results from ICT](http://www.eliostruyf.com/wp-content/uploads/2015/08/081715_1551_Mergesearch3.png) File | D...
johnmeilleur/DisplayTemplates
Search Display Templates/Merge Search Result Templates/README.md
Markdown
mit
842
/* Copyright (c) 2007-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file geoip.c * \brief Functions related to maintaining an IP-to-country database; * to summarizing client connections by country to entry guards, bridges, * and directory servers; and for statistics on answering...
BreakoutCoin/Breakout-Chain-Client
src/tor/or/geoip.c
C
mit
58,156
# WebSocket [![Swift][swift-badge]][swift-url] [![Zewo][zewo-badge]][zewo-url] [![Platform][platform-badge]][platform-url] [![License][mit-badge]][mit-url] [![Slack][slack-badge]][slack-url] [![Travis][travis-badge]][travis-url] [![Codebeat][codebeat-badge]][codebeat-url] > :warning: This module contains no networkin...
NickAger/elm-slider
ServerSlider/WebSocketServer/Packages/WebSocket-0.14.3/README.md
Markdown
mit
2,315
#ifndef __ABSPRITE_H #define __ABSPRITE_H #include <Arduino.h> #include <Adafruit_GFX.h> #include <Adafruit_ST7735.h> #include <SPI.h> #include "ab_lcd_image.h" #include "abImage.h" #define AB_SPRITE_SIZE 15 #define DEFAULT_MOVE_DIST 20 #define MAX_SCREEN_WIDTH 128 #define MAX_SCREEN_HEIGHT 160 class abSprite { pr...
rosshamish/c275-stamp
examples/abSprite.h
C
mit
949
/* * @package jsDAV * @subpackage CardDAV * @copyright Copyright(c) 2013 Mike de Boer. <info AT mikedeboer DOT nl> * @author Mike de Boer <info AT mikedeboer DOT nl> * @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License */ "use strict"; var jsDAV_Plugin = require("./../DAV/plugin"); var j...
pascience/cloxp-install
win/life_star/node_modules/lively-davfs/node_modules/jsDAV/lib/CardDAV/plugin.js
JavaScript
mit
26,510
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Rule, SchematicsException, Tree, UpdateRecorder} from '@angular-devkit/schematics'; import {relative} from 'p...
gkalpak/angular
packages/core/schematics/migrations/typed-forms/index.ts
TypeScript
mit
1,942
'@fixture click'; '@page http://example.com'; '@test'['Take a screenshot'] = { '1.Click on non-existing element': function () { act.screenshot(); }, }; '@test'['Screenshot on test code error'] = { '1.Click on non-existing element': function () { throw new Error('STOP'); }, };
VasilyStrelyaev/testcafe
test/functional/legacy-fixtures/screenshots/testcafe-fixtures/screenshots.test.js
JavaScript
mit
312
๏ปฟ///////////////////////////////// // Rich Newman // http://richnewman.wordpress.com/about/code-listings-and-diagrams/hslcolor-class/ // using System; using System.Drawing; namespace AldursLab.Essentials.Extensions.DotNet.Drawing { /// <summary> /// Color with Hue/Saturation/Luminescense representation. /...
mdsolver/WurmAssistant3
src/Common/Essentials/Extensions/DotNet/Drawing/HslColor.cs
C#
mit
4,774
# RegionalSettings.Properties WorkDaysSpecified **Namespace:** [OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.V201508](OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.V201508.md) **Assembly:** OfficeDevPnP.Core.dll ## Syntax ```C# public bool WorkDaysSpecified { get; set; } ``` ### Property Val...
PaoloPia/PnP-Guidance
sitescore/OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.V201508.RegionalSettings.WorkDaysSpecified.md
Markdown
mit
600
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Sql.Models { public partial class TransparentDataEncryptionActivityLi...
brjohnstmsft/azure-sdk-for-net
sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TransparentDataEncryptionActivityListResult.Serialization.cs
C#
mit
1,257
using System; using Marten.Services; using Marten.Testing.Documents; using Marten.Testing.Harness; using Xunit; namespace Marten.Testing.CoreFunctionality { public class foreign_key_persisting_Tests: IntegrationContext { [Fact] public void persist_and_overwrite_foreign_key() { ...
ericgreenmix/marten
src/Marten.Testing/CoreFunctionality/foreign_key_persisting_Tests.cs
C#
mit
4,074
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {global} from '../../src/util/global'; // Not yet available in TypeScript: https://github.com/Microsoft/TypeS...
wKoza/angular
packages/core/test/util/global_spec.ts
TypeScript
mit
732
๏ปฟusing System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // ๆœ‰ๅ…ณ็จ‹ๅบ้›†็š„ๅธธ่ง„ไฟกๆฏ้€š่ฟ‡ไธ‹ๅˆ—ๅฑžๆ€ง้›† // ๆŽงๅˆถใ€‚ๆ›ดๆ”น่ฟ™ไบ›ๅฑžๆ€งๅ€ผๅฏไฟฎๆ”น // ไธŽ็จ‹ๅบ้›†ๅ…ณ่”็š„ไฟกๆฏใ€‚ [assembly: AssemblyTitle("Dos.Tools")] [assembly: AssemblyDescription("ITdos.com")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("ITdos.com")] [...
itdos/Dos.Tool
Properties/AssemblyInfo.cs
C#
mit
1,337
#include "Halide.h" #include <tiramisu/utils.h> #include <cstdlib> #include <iostream> #include "wrapper_test_71.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } // extern "C" #endif // We assume that the increment is 1. void reference_saxpy(int N1, float alpha, float *A, float *B) { for (int i=0; i...
rbaghdadi/tiramisu
tests/wrapper_test_71.cpp
C++
mit
933