code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
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
__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 /* * $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
/* * 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
# 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
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
/* * 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
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
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
<?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
// -------------------------------------------------------------------------------------------- // <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
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
<?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
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
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
/* * @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
'@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
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
// implementation for sturm_equation.h #include <cmath> #include <algorithm> #include <list> #include <utils/array1d.h> #include <algebra/vector.h> #include <algebra/sparse_matrix.h> #include <numerics/eigenvalues.h> #include <numerics/gauss_data.h> namespace WaveletTL { template <class WBASIS> SturmEquation<WB...
kedingagnumerikunimarburg/Marburg_Software_Library
WaveletTL/galerkin/sturm_equation.cpp
C++
mit
15,625
module NetSuite module Records class CustomerSubscriptionsList < Support::Sublist include Namespaces::ListRel sublist :subscriptions, CustomerSubscription end end end
jeperkins4/netsuite
lib/netsuite/records/customer_subscriptions_list.rb
Ruby
mit
193
class Downvote < ActiveRecord::Base validates :post, presence: true validates :user, presence: true belongs_to :user, counter_cache: true belongs_to :post end
sudharti/2cents
app/models/downvote.rb
Ruby
mit
169
<?php /* * This file is part of the ONGR package. * * (c) NFQ Technologies UAB <info@nfq.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ONGR\ElasticsearchBundle\Serializer\Normalizer; use Symfony\Component\Serial...
lmikelionis/ElasticsearchBundle
Serializer/Normalizer/CustomReferencedNormalizer.php
PHP
mit
1,062
<?php namespace PuphpetBundle\Twig; use RandomLib; class BaseExtension extends \Twig_Extension { /** @var \RandomLib\Factory */ private $randomLib; public function __construct(RandomLib\Factory $randomLib) { $this->randomLib = $randomLib; } public function getFunctions() { ...
thedeedawg/puphpet
src/PuphpetBundle/Twig/BaseExtension.php
PHP
mit
1,887
/* * 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 lim...
oleg-nenashev/jenkins
core/src/test/java/hudson/model/LoadStatisticsTest.java
Java
mit
4,339
/// <reference path="../../../type-declarations/index.d.ts" /> import * as Phaser from 'phaser'; import { BootState } from './states/boot'; import { SplashState } from './states/splash'; import { GameState } from './states/game'; class Game extends Phaser.Game { constructor() { let width = document.documentEle...
fuzzwizard/builders-game
src/client/game/index.ts
TypeScript
mit
890
<h1>Kitchen List</h1> <div id="p_be_list"> <div class="table"> <div class="body"> <table> <thead> <tr> <th colspan="2"><?php echo __('Name')?></th> </tr> </thead> <tbody> <?php if ($kitchen_list->count() !== false && $kitchen_list->count() == 0): ?> <tr class=...
xop32/propertyx
apps/be/modules/kitchen/templates/indexSuccess.php
PHP
mit
1,100
import { c } from 'ttag'; export class ImportFatalError extends Error { error: Error; constructor(error: Error) { super(c('Error importing calendar').t`An unexpected error occurred. Import must be restarted.`); this.error = error; Object.setPrototypeOf(this, ImportFatalError.prototype)...
ProtonMail/WebClient
packages/shared/lib/contacts/errors/ImportFatalError.ts
TypeScript
mit
330
package com.xruby.runtime.lang; public abstract class RubyConstant extends RubyBasic { public static RubyConstant QFALSE = new RubyConstant(RubyRuntime.FalseClassClass) { public boolean isTrue() { return false; } }; public static RubyConstant QTRUE = new RubyConstant(RubyRuntim...
Yashi100/rhodes3.3.2
platform/bb/RubyVM/src/com/xruby/runtime/lang/RubyConstant.java
Java
mit
802
// This file was generated based on '(multiple files)'. // WARNING: Changes might be lost if you edit this file directly. #include <Fuse.Drawing.Meshes.MeshGenerator.h> #include <Fuse.Entities.Mesh.h> #include <Fuse.Entities.MeshHitTestMode.h> #include <Fuse.Entities.Primitives.ConeRenderer.h> #include <Fuse.Entities....
blyk/BlackCode-Fuse
TestApp/.build/Simulator/Android/jni/Fuse.Entities.Primitives.g.cpp
C++
mit
9,980
game.LoadProfile = me.ScreenObject.extend({ /** * action to perform on state change */ onResetEvent: function() { me.game.world.addChild(new me.Sprite(0, 0, me.loader.getImage('load-screen')), -10); //puts load screen in when game starts document.getElementById("inpu...
MrLarrimore/MiguelRicardo
js/screens/loadProfile.js
JavaScript
mit
1,578
/* --- MooTools: the javascript framework web build: - http://mootools.net/core/8423c12ffd6a6bfcde9ea22554aec795 packager build: - packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Eleme...
lyonbros/composer.js
test/lib/mootools-core-1.4.5.js
JavaScript
mit
149,108
using System; namespace TestAPI.Areas.HelpPage { /// <summary> /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. /// </summary> public class InvalidSample { public InvalidSample(string errorMessage) { ...
OasesOng/TestVS
TestAPI/TestAPI/Areas/HelpPage/SampleGeneration/InvalidSample.cs
C#
mit
969
// //Copyright (C) 2002-2005 3Dlabs Inc. Ltd. //All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // Redistributions of source code must retain the above copyright // notice, this list of...
TimNN/glslang-sys
extern/glslang/glslang/OSDependent/Windows/ossource.cpp
C++
mit
3,734
Template.HostList.events({ }); Template.HostList.helpers({ // Get list of Hosts sorted by the sort field. hosts: function () { return Hosts.find({}, {sort: {sort: 1}}); } }); Template.HostList.rendered = function () { // Make rows sortable/draggable using Jquery-UI. this.$('#sortable').sortable({ ...
bfodeke/syrinx
client/views/hosts/hostList/hostList.js
JavaScript
mit
1,204
import Helper, { states } from './_helper'; import { module, test } from 'qunit'; module('Integration | ORM | Has Many | Named Reflexive | association #set', function(hooks) { hooks.beforeEach(function() { this.helper = new Helper(); }); /* The model can update its association via parent, for all states...
jherdman/ember-cli-mirage
tests/integration/orm/has-many/4-named-reflexive/association-set-test.js
JavaScript
mit
2,462
import * as React from 'react'; export interface LabelDetailProps { [key: string]: any; /** An element type to render as (string or function). */ as?: any; /** Primary content. */ children?: React.ReactNode; /** Additional classes. */ className?: string; /** Shorthand for primary content. */ cont...
aabustamante/Semantic-UI-React
src/elements/Label/LabelDetail.d.ts
TypeScript
mit
446
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Orleans; using Orleans.Runtime; using Orleans.Runtime.Scheduler; using UnitTests.GrainInterfaces; using UnitTests.Grains; namespace UnitTestGrains { public class TimerGrain : Grain, ITimerGrain { ...
jokin/orleans
test/TestInternalGrains/TimerGrain.cs
C#
mit
8,499
#!/usr/bin/env python import sys def fix_terminator(tokens): if not tokens: return last = tokens[-1] if last not in ('.', '?', '!') and last.endswith('.'): tokens[-1] = last[:-1] tokens.append('.') def balance_quotes(tokens): count = tokens.count("'") if not count: return processed = 0 ...
TeamSPoon/logicmoo_workspace
packs_sys/logicmoo_nlu/ext/candc/src/lib/tokeniser/fixes.py
Python
mit
820
<?php namespace YOOtheme\Widgetkit\Framework\View\Asset; interface AssetInterface { /** * Gets the name. * * @return string */ public function getName(); /** * Gets the source. * * @return string */ public function getSource(); /** * Gets the dependen...
yaelduckwen/libriastore
joomla/administrator/components/com_widgetkit/src/Framework/src/View/Asset/AssetInterface.php
PHP
mit
1,339
class Item < ActiveRecord::Base serialize :raw_info , Hash has_many :ownerships , foreign_key: "item_id" , dependent: :destroy has_many :users , through: :ownerships has_many :wants, class_name: "Want", foreign_key: "item_id", dependent: :destroy has_many :want_users, through: :wants, source: :user ...
nekocreate/monolist
app/models/item.rb
Ruby
mit
460
/* describe, it, afterEach, beforeEach */ import './snoocore-mocha'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; chai.use(chaiAsPromised); let expect = chai.expect; import config from '../config'; import util from './util'; import ResponseError from '../../src/ResponseError'; import Endpo...
empyrical/snoocore
test/src/ResponseError-test.js
JavaScript
mit
1,705
using System; using System.Collections.Generic; using Csla; namespace Templates { [Serializable] public class DynamicRootBindingList : DynamicBindingListBase<DynamicRoot> { protected override object AddNewCore() { DynamicRoot item = DataPortal.Create<DynamicRoot>(); Add(item); retur...
MarimerLLC/csla
Support/Templates/cs/Files/DynamicRootBindingList.cs
C#
mit
883
<?php /** * Created by PhpStorm. * User: faustos * Date: 05.06.14 * Time: 13:58 */ namespace Tixi\App\AppBundle\Interfaces; class DrivingOrderHandleDTO { public $id; public $anchorDate; public $lookaheadaddressFrom; public $lookaheadaddressTo; public $zoneStatus; public $zoneId; pub...
Martin-Jonasse/sfitixi
src/Tixi/App/AppBundle/Interfaces/DrivingOrderHandleDTO.php
PHP
mit
679
package org.jsondoc.core.issues.issue151; import org.jsondoc.core.annotation.Api; import org.jsondoc.core.annotation.ApiMethod; import org.jsondoc.core.annotation.ApiResponseObject; @Api(name = "Foo Services", description = "bla, bla, bla ...", group = "foogroup") public class FooController { @ApiMethod(path = { "/...
sarhanm/jsondoc
jsondoc-core/src/test/java/org/jsondoc/core/issues/issue151/FooController.java
Java
mit
612
 namespace Porter2Stemmer { public interface IStemmer { /// <summary> /// Stem a word. /// </summary> /// <param name="word">Word to stem.</param> /// <returns> /// The stemmed word, with a reference to the original unstemmed word. /// </returns> ...
SDCAAU/P7_Helpdesk
sw704e17.Database/sw704e17.Database/Stemmer/IStemmer.cs
C#
mit
361
function someFunctionWithAVeryLongName(firstParameter='something', secondParameter='booooo', third=null, fourthParameter=false, fifthParameter=123.12, sixthParam=true ){ } function someFunctionWithAVeryLongName2( firstParameter='something', secondParameter='booooo', ) { } function blah() { } functio...
oknoorap/wpcs
scripts/phpcs/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js
JavaScript
mit
1,148
#!/usr/bin/env node require("babel/register")({ "stage": 1 }); var fs = require("fs"); GLOBAL.WALLACEVERSION = "Err"; GLOBAL.PLUGIN_CONTRIBUTORS = []; try { var p = JSON.parse(fs.readFileSync(__dirname+"/package.json")); GLOBAL.WALLACEVERSION = p.version; } catch(e) {} var Core = require("./core/Core....
Reanmachine/Wallace
main.js
JavaScript
mit
432
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
suitmedia/suitcoda
app/Http/routes.php
PHP
mit
2,811
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
davewhat/tchannel
out_response.js
JavaScript
mit
10,872
<div class="alert alert-{{$type}}"> <h1>{{$title}}</h1> <p>{{$content}}</p> </div>
chromabits/illuminated
resources/views/alerts/alert.blade.php
PHP
mit
92
using RedditSharp.Things; using System.Threading.Tasks; namespace RedditSharp { partial class Helpers { private const string GetThingUrl = "/api/info.json?id={0}"; /// <summary> /// Get a <see cref="Thing"/> by full name. /// </summary> /// <param name="agent">IWebAgent...
justcool393/RedditSharp-1
RedditSharp/Helpers/Helpers.GetThingByFullnameAsync.cs
C#
mit
779
#!/usr/bin/env node /** * Release this package. */ "use strict"; process.chdir(__dirname + '/..'); const apeTasking = require('ape-tasking'), apeReleasing = require('ape-releasing'); apeTasking.runTasks('release', [ (callback) => { apeReleasing.releasePackage({ beforeRelease: [ ...
ape-repo/ape-scraping
ci/release.js
JavaScript
mit
430
/* Copyright 2016 The Kubernetes 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 in writing, ...
pragkent/aliyun-disk
vendor/k8s.io/kubernetes/federation/cmd/kubefed/app/kubefed.go
GO
mit
1,274
import os, scrapy, argparse from realclearpolitics.spiders.spider import RcpSpider from scrapy.crawler import CrawlerProcess parser = argparse.ArgumentParser('Scrap realclearpolitics polls data') parser.add_argument('url', action="store") parser.add_argument('--locale', action="store", default='') parser.add_argument('...
dpxxdp/berniemetrics
private/scrapers/realclearpolitics-scraper/scraper.py
Python
mit
1,355
/*global d3 */ // asynchronously load data from the Lagotto API queue() .defer(d3.json, encodeURI("/api/agents/")) .await(function(error, a) { if (error) { return console.warn(error); } agentsViz(a.agents); }); // add data to page function agentsViz(data) { for (var i=0; i<data.length; i++) { var a...
CrossRef/lagotto
app/assets/javascripts/agents/index.js
JavaScript
mit
569
describe 'font' do before do @rmq = RubyMotionQuery::RMQ end it 'should return font from RMQ or an instance of rmq' do @rmq.font.should == RubyMotionQuery::Font rmq = RubyMotionQuery::RMQ.new rmq.font.should == RubyMotionQuery::Font end it 'should return a list of font families' do @rmq...
infinitered/rmq
spec/font.rb
Ruby
mit
1,069
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: java.io.WriteAbortedException ================================================================================*/ #ifndef J2CPP_INCLUDE_IM...
hyEvans/ph-open
proj.android/jni/puzzleHero/platforms/android-9/java/io/WriteAbortedException.hpp
C++
mit
5,303
package com.tale.model; import com.blade.jdbc.annotation.Table; import java.io.Serializable; // @Table(name = "t_comments", pk = "coid") public class Comments implements Serializable { private static final long serialVersionUID = 1L; // comment表主键 private Integer coid; // post表主键,关联字段 private ...
sanmubird/yuanjihua_blog
src/main/java/com/tale/model/Comments.java
Java
mit
2,962
"use strict"; const lua = require("../src/lua.js"); const lauxlib = require("../src/lauxlib.js"); const {to_luastring} = require("../src/fengaricore.js"); const toByteCode = function(luaCode) { let L = lauxlib.luaL_newstate(); if (!L) throw Error("failed to create lua state"); if (lauxlib.luaL_loadst...
daurnimator/fengari
test/tests.js
JavaScript
mit
690
require 'active_support/inflector' module Trello class BasicData include ActiveModel::Validations include ActiveModel::Dirty include ActiveModel::Serializers::JSON include Trello::JsonUtils class << self def path_name name.split("::").last.underscore end def find(id, ...
brycemcd/ruby-trello
lib/trello/basic_data.rb
Ruby
mit
3,268
from panda3d.core import NodePath, DecalEffect import DNANode import DNAWall import random class DNAFlatBuilding(DNANode.DNANode): COMPONENT_CODE = 9 currentWallHeight = 0 def __init__(self, name): DNANode.DNANode.__init__(self, name) self.width = 0 self.hasDoor = False def s...
Spiderlover/Toontown
toontown/dna/DNAFlatBuilding.py
Python
mit
5,943
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Mv...
modulexcite/MvcThrottle
MvcThrottle/Properties/AssemblyInfo.cs
C#
mit
1,426
/* Get Programming with JavaScript * Listing 4.01 * Displaying an object's properties on the console */ var movie1; movie1 = { title: "Inside Out", actors: "Amy Poehler, Bill Hader", directors: "Pete Doctor, Ronaldo Del Carmen" }; console.log("Movie information for " + movie1.title); console.log("----...
jrlarsen/GetProgramming
Ch04_Functions/listing4.01.js
JavaScript
mit
688
describe('Component: Product Search', function(){ var scope, q, oc, state, _ocParameters, parameters, mockProductList ; beforeEach(module(function($provide) { $provide.value('Parameters', {searchTerm: null, page: null, pageSize: null, sortBy: null...
Four51SteveDavis/JohnsonBros
src/app/productSearch/tests/productSearch.spec.js
JavaScript
mit
6,607
(function () { 'use strict'; angular.module('common') .directive('svLumxUsersDropdown', function () { return { templateUrl: 'scripts/common/directives/sv-lumx-users-dropdown.html', scope: { btnTitle: '@', actionC...
SvitlanaShepitsena/cl-poster
app/scripts/common/directives/sv-lumx-users-dropdown.js
JavaScript
mit
689
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using FluentAssertions; using Microsoft.OData.Edm; using Micros...
ysanghi/Vipr
test/ODataReader.v4UnitTests/Given_an_ODataVocabularyReader.cs
C#
mit
10,044
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: com.tencent.mm.sdk.openapi.SendAuth ================================================================================*/ #ifndef J2CPP_INCLUDE_IMP...
hyEvans/ph-open
proj.android/jni/puzzleHero/com/tencent/mm/sdk/openapi/SendAuth.hpp
C++
mit
11,739
# -*- coding: utf-8 -*- """ Various i18n functions. Helper functions for both the internal translation system and for TranslateWiki-based translations. By default messages are assumed to reside in a package called 'scripts.i18n'. In pywikibot 2.0, that package is not packaged with pywikibot, and pywikibot 2.0 does ...
emijrp/pywikibot-core
pywikibot/i18n.py
Python
mit
21,745
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * sisane: The stunning micro-library that helps you to develop easily * AJAX web applications by using Angular.js 1.x & sisane-server * sisane is distributed under the MIT License (MIT) * Sources at https://github....
Ecoivan/sisane-client
public_html/js/episodio/viewpop.js
JavaScript
mit
3,146
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var browserSync = require('browser-sync'); function isOnlyChange(event) { return event.type === 'changed'; } gulp.task('watch', ['inject'], function () { gulp.watch([path.join(conf.paths.src, '/*.html'), 'bower....
devmark/laravel-angular-cms
backend/gulp/watch.js
JavaScript
mit
1,176
<?php /** * @copyright Copyright (c) 2018 Robin Appelman <robin@icewind.nl> * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, e...
icewind1991/SMB
src/KerberosApacheAuth.php
PHP
mit
3,766
require "heroku/command/base" require "base64" require "excon" # manage organization accounts # class Heroku::Command::Orgs < Heroku::Command::Base # orgs # # lists the orgs that you are a member of. # # def index response = org_api.get_orgs.body orgs = [] response.fetch('organizations', [])....
soilforlifeforms/forms
vendor/bundle/ruby/2.0.0/gems/heroku-3.3.0/lib/heroku/command/orgs.rb
Ruby
mit
1,786
var assert = require('assert'); var _ = require('@sailshq/lodash'); var SchemaBuilder = require('../lib/waterline-schema'); describe('Has Many Through :: ', function() { describe('Junction Tables', function() { var schema; before(function() { var fixtures = [ { identity: 'user', ...
jhelbig/postman-linux-app
app/resources/app/node_modules/waterline-schema/test/hasManyThrough.js
JavaScript
mit
3,283
package sacloud // IPv6Addr IPアドレス(IPv6) type IPv6Addr struct { HostName string `json:",omitempty"` // ホスト名 IPv6Addr string `json:",omitempty"` // IPv6アドレス Interface *Interface `json:",omitempty"` // インターフェース IPv6Net *IPv6Net `json:",omitempty"` // IPv6サブネット } // GetIPv6NetID IPv6アドレスが所属するIPv6NetのI...
aantono/traefik
vendor/github.com/sacloud/libsacloud/sacloud/ipv6addr.go
GO
mit
939
using System; using System.Runtime.InteropServices; using Duality; using Duality.Drawing; using Duality.Resources; namespace DynamicLighting { [StructLayout(LayoutKind.Sequential)] public struct VertexC1P3T2A4 : IVertexData { public static readonly VertexDeclaration Declaration = VertexDeclaration.Get<VertexC1P...
RockyTV/duality
Samples/DynamicLighting/Core/VertexC1P3T2A4.cs
C#
mit
914
package engine.actions; import engine.gameObject.GameObject; import authoring.model.collections.GameObjectsCollection; public class FixedCollisionTypeAction extends PhysicsTypeAction { public FixedCollisionTypeAction (String type, String secondType, Double value) { super(type, secondType, value); ...
goose2460/game_author_cs308
src/engine/actions/FixedCollisionTypeAction.java
Java
mit
989
<?php phpinfo();
u8lvavhel/lemp-base-docker
www/index.php
PHP
mit
18
module('lively.ide.DirectoryWatcher').requires('lively.Network').toRun(function() { // depends on the DirectoryWatcherServer Object.extend(lively.ide.DirectoryWatcher, { watchServerURL: new URL(Config.nodeJSURL+'/DirectoryWatchServer/'), dirs: {}, reset: function() { // lively.ide.DirectoryWatch...
pascience/LivelyKernel
core/lively/ide/DirectoryWatcher.js
JavaScript
mit
4,138
// Generated by CoffeeScript 1.3.1
trela/qikify
qikify/views/resources/scripts/js/statistics.js
JavaScript
mit
37
package com.jvm_bloggers.core.data_fetching.blog_posts; import akka.actor.ActorRef; import akka.actor.ActorSystem; import akka.routing.RoundRobinPool; import com.jvm_bloggers.core.data_fetching.blogs.PreventConcurrentExecutionSafeguard; import com.jvm_bloggers.core.rss.SyndFeedProducer; import com.jvm_bloggers.entitie...
jvm-bloggers/jvm-bloggers
src/main/java/com/jvm_bloggers/core/data_fetching/blog_posts/BlogPostsFetcher.java
Java
mit
2,766
'use strict'; require('../common'); // This test ensures that zlib throws a RangeError if the final buffer needs to // be larger than kMaxLength and concatenation fails. // https://github.com/nodejs/node/pull/1811 const assert = require('assert'); // Change kMaxLength for zlib to trigger the error without having to ...
enclose-io/compiler
current/test/parallel/test-zlib-brotli-kmaxlength-rangeerror.js
JavaScript
mit
762
const {createAddColumnMigration} = require('../../utils'); module.exports = createAddColumnMigration('posts_meta', 'email_only', { type: 'bool', nullable: false, defaultTo: false });
ErisDS/Ghost
core/server/data/migrations/versions/4.12/01-add-email-only-column-to-posts-meta-table.js
JavaScript
mit
196
import { EventsKey } from '../events'; import BaseEvent from '../events/Event'; import { Extent } from '../extent'; import Feature from '../Feature'; import Geometry from '../geom/Geometry'; import Point from '../geom/Point'; import { ObjectEvent } from '../Object'; import Projection from '../proj/Projection'; import {...
georgemarshall/DefinitelyTyped
types/ol/source/Cluster.d.ts
TypeScript
mit
4,599
<?php require_once($argv[1]); // type.php require_once($argv[2]); // program.php $file_prefix = $argv[3]; ?> [apps..default] run = true count = 1 network.server.0.RPC_CHANNEL_TCP = NET_HDR_HTTP, dsn::tools::asio_network_provider, 65536 [apps.server] name = server type = server arguments = ports = 27001 run = true poo...
glglwty/rDSN
bin/dsn.templates/js/single/config.ini.php
PHP
mit
1,649