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
from .cpu import Cpu
Hexadorsimal/pynes
nes/processors/cpu/__init__.py
Python
mit
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <?php require_once("globals.php"); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php $page_title = "Projects"; require_once("meta.php"); ?> </head> <body> <div id="logo"> <?php require_once("hea...
JayWalker512/brandonfoltz.com
projects.php
PHP
mit
1,055
<?php /** * * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Tax\Controller\Adminhtml\Rule; use Magento\Framework\Controller\ResultFactory; class Delete extends \Magento\Tax\Controller\Adminhtml\Rule { /** * @return \Magento\Backend\Mo...
j-froehlich/magento2_wk
vendor/magento/module-tax/Controller/Adminhtml/Rule/Delete.php
PHP
mit
1,412
/// <reference path="initialization.ts" /> function initializeAppInsights() { try { // only initialize if we are running in a browser that supports JSON serialization (ie7<, node.js, cordova) if (typeof window !== "undefined" && typeof JSON !== "undefined") { // get snippet or initiali...
reyno-uk/ApplicationInsights-JS
JavaScript/JavaScriptSDK/Init.ts
TypeScript
mit
1,610
import React from 'react'; import { Link as RouterLink } from 'react-router'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import counterActions from 'actions/counter'; import Radium from 'radium'; import { Scroll, Link, Element, Events } from 'react-scroll'; import { FlatButton, ...
dont-fear-the-repo/fear-the-repo
src/views/HomeView.js
JavaScript
mit
3,354
require 'test_helper' class LockableTest < ActiveSupport::TestCase def setup setup_mailer end test "should respect maximum attempts configuration" do user = create_user user.confirm! swap Devise, :maximum_attempts => 2 do 3.times { user.valid_for_authentication?{ false } } assert use...
piousbox/microsites2-cities
vendor/ruby/1.9.1/gems/devise-2.2.3/test/models/lockable_test.rb
Ruby
mit
8,403
#! /usr/bin/python2 # # Copyright 2016 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # import argparse import collections import re import subprocess import sys __DESCRIPTION = """ Processes a perf.data sample file a...
hoho/dosido
nodejs/deps/v8/tools/ignition/linux_perf_report.py
Python
mit
8,176
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
jbrantly/ts-loader
test/comparison-tests/conditionalRequire/expectedOutput-2.8/bundle.js
JavaScript
mit
3,132
<?php namespace ApplicationInsights\Channel\Contracts; /** * Contains utilities for contract classes */ class Utils { /** * Removes NULL and empty collections * @param array $sourceArray * @return array */ public static function removeEmptyValues($sourceArray) { $newArray = a...
fidmor89/appInsights-Concrete
appinsights/vendor/microsoft/application-insights/ApplicationInsights/Channel/Contracts/Utils.php
PHP
mit
3,254
/* */ var cof = require("./_cof"), TAG = require("./_wks")('toStringTag'), ARG = cof(function() { return arguments; }()) == 'Arguments'; module.exports = function(it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' : typeof(T = (O = Object(it))[TAG]) == 'st...
jdanyow/aurelia-plunker
jspm_packages/npm/core-js@2.1.0/modules/_classof.js
JavaScript
mit
427
/* eslint node/no-unsupported-features: ["error", { version: 4 }] */ // this file is not transpiled by Jest when configured in "snapshotSerializers" "use strict"; const _ = require("lodash"); const normalizeNewline = require("normalize-newline"); const constants = require("./constants"); const VERSION_REGEX = new Reg...
FaHeymann/lerna
test/helpers/serializePlaceholders.js
JavaScript
mit
1,443
/*! * address.js - address object for decentraland * Copyright (c) 2014-2015, Fedor Indutny (MIT License) * Copyright (c) 2014-2016, Christopher Jeffrey (MIT License). * Copyright (c) 2016-2017, Manuel Araoz (MIT License). * https://github.com/decentraland/decentraland-node */ 'use strict'; var networks = requi...
decentraland/bronzeage-node
lib/primitives/address.js
JavaScript
mit
15,225
using Microsoft.EntityFrameworkCore; namespace Sample.RabbitMQ.MySql { public class Person { public int Id { get; set; } public string Name { get; set; } public override string ToString() { return $"Name:{Name}, Id:{Id}"; } } public class AppDbCo...
dotnetcore/CAP
samples/Sample.RabbitMQ.MySql/AppDbContext.cs
C#
mit
689
// Copyright (c) MarinAtanasov. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the project root for license information. using AppBrix.Cloning.Impl; using AppBrix.Container; using AppBrix.Lifecycle; using AppBrix.Modules; using System; using System.Collections.Generic; namespace App...
MarinAtanasov/AppBrix
Modules/AppBrix.Cloning/CloningModule.cs
C#
mit
1,625
// @flow declare module '@reach/portal' { declare export default React$ComponentType<{| children: React$Node, type?: string, |}>; }
flowtype/flow-typed
definitions/npm/@reach/portal_v0.2.x/flow_v0.84.x-/portal_v0.2.x.js
JavaScript
mit
145
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.InteropServices; using System.Globalization; using System.Linq.Expressions; using Mono.Linq.Expressions; namespace V { public enum Keyword : int { _TypesStart, /...
cartman300/Vermin
V/Parser.cs
C#
mit
3,763
shared_context 'optoro_zookeeper' do before do Chef::Recipe.any_instance.stub(:query_role).and_return('kitchen_role') Chef::Recipe.any_instance.stub(:query_role_credentials).and_return('{ "Code" : "Success", "LastUpdated" : "2015-03-09T14:48:17Z", "Type" : "AWS-HMAC", "AccessKeyId" : "ACCESSKEY", "SecretAcces...
smedefind/optoro_zookeeper
spec/helpers.rb
Ruby
mit
606
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Pentax; use JMS\Serializer\Annotation\ExclusionPolicy...
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/Pentax/FlashStatus.php
PHP
mit
1,553
package com.merakianalytics.orianna.types.core.searchable; public abstract interface SearchableObject { public boolean contains(final Object item); }
robrua/Orianna
orianna/src/main/java/com/merakianalytics/orianna/types/core/searchable/SearchableObject.java
Java
mit
155
version https://git-lfs.github.com/spec/v1 oid sha256:90773470146a0daefafb65539bea2a9c6537067655a435ffce48433658e3d73a size 943
yogeshsaroya/new-cdnjs
ajax/libs/highlight.js/7.5/languages/actionscript.min.js
JavaScript
mit
128
<?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...
fabiensebban/magento
dev/tests/functional/tests/app/Mage/Catalog/Test/Handler/CatalogAttributeSet/CatalogAttributeSetInterface.php
PHP
mit
1,196
/** * 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. */ package com.microsoft.azure.management.containerregistry.v2019_04_01; import java.util....
selvasingh/azure-sdk-for-java
sdk/containerregistry/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OS.java
Java
mit
1,118
package com.github.bogdanlivadariu.jenkins.reporting.testng; import hudson.model.AbstractProject; import hudson.tasks.BuildStepDescriptor; import hudson.tasks.Publisher; public class TestNGTestReportBuildStepDescriptor extends BuildStepDescriptor<Publisher> { @Override public String getDisplayName() { ...
BogdanLivadariu/bootstraped-multi-test-results-report
bootstraped-multi-test-results-report/src/main/java/com/github/bogdanlivadariu/jenkins/reporting/testng/TestNGTestReportBuildStepDescriptor.java
Java
mit
507
using System; using System.Diagnostics; using Aspose.Email.Mail; namespace Aspose.Email.Examples.CSharp.Email.SMTP { class SendingEMLFilesWithSMTP { public static void Run() { // The path to the File directory. string dataDir = RunExamples.GetDataDir_SMTP(); ...
jawadaspose/Aspose.Email-for-.NET
Examples/CSharp/SMTP/SendingEMLFilesWithSMTP.cs
C#
mit
1,239
<?php namespace Mongrate\Tests\Command; use Mongrate\Command\TestMigrationCommand; use Mongrate\Enum\DirectionEnum; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; class TestMigrationCommandTest extends BaseCommandTest { public function testExecute_upAndDown() {...
BernardoSilva/mongrate
test/Mongrate/Tests/Command/TestMigrationCommandTest.php
PHP
mit
3,547
<?php /* * 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 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
rainlike/justshop
vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/NullObject/MethodGenerator/StaticProxyConstructor.php
PHP
mit
2,514
/** * Copyright (C) 2016 by Johan von Forstner under the 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 without restriction, * including without limitation the rights to us...
johan12345/opacclient
opacclient/libopac/src/main/java/de/geeksfactory/opacclient/objects/Copy.java
Java
mit
11,432
package id.birokrazy.model; import com.fasterxml.jackson.annotation.JsonIgnore; import org.hibernate.annotations.Type; import org.hibernate.search.annotations.Field; import org.hibernate.search.annotations.Indexed; import javax.persistence.*; import java.util.List; /** * @author Arthur Purnama (arthur@purnama.de) ...
purnama/birokrazy
src/main/java/id/birokrazy/model/Department.java
Java
mit
5,175
/* The MIT License (MIT) Copyright (c) IIIT-DELHI authors: HEMANT JAIN "hjcooljohny75@gmail.com" ANIRUDH NAIN 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 wit...
COOLHEMANTJAIN/MAILDETECTIVE
maildetective1.0/src/check/email/EMAILRDF.java
Java
mit
3,829
import argparse import os import sys import numpy as np from PIL import Image import chainer from chainer import cuda import chainer.functions as F from chainer.functions import caffe from chainer import Variable, optimizers import pickle def subtract_mean(x0): x = x0.copy() x[0,0,:,:] -= 104 x[0,1,:,...
wf9a5m75/chainer-gogh
chainer-gogh.py
Python
mit
7,054
App.SubmissionsResponseController = Ember.ObjectController.extend({ actions: { saveNotes: function() { var onSuccess = function(post) { $(".alert-box").remove(); $("textarea").before("<div data-alert class='alert-box'>Your notes were saved!<a class='close'>&times;</a></div>"); }; ...
andrewjadams3/Klassewerk
app/assets/javascripts/controllers/submissions_response_controller.js
JavaScript
mit
648
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\App\Test\Unit; use \Magento\Framework\App\SetupInfo; class SetupInfoTest extends \PHPUnit_Framework_TestCase { /** * A default fixture * * @var array *...
j-froehlich/magento2_wk
vendor/magento/framework/App/Test/Unit/SetupInfoTest.php
PHP
mit
5,963
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Views extends Application { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/ * - or - * http://example.com/welcome/index * * So any other public methods not prefixed with an unders...
MVC-todo-list/starter-todo4
application/controllers/Views.php
PHP
mit
2,696
'use strict'; const helpers = require('../../../src/helpers'); const assert = require('assert'); const arghun = require('../../../'); const opt = { blDir: ['even-more', 'crap', 'A-characters'] }; const expected = { './test/testData/testDirectory/B-characters': 6, './test/testData/testDirectory/B-characters/mor...
derberg/zlicz
test/testCases/walkDir/walkDirBlacklistDirs.js
JavaScript
mit
1,491
import Ember from 'ember'; export default Ember.Route.extend({ setupController: function(controller) { controller.set('setupRoutes', [ { label: false, links: [ { href: 'heatmap.index', text: 'Setup' }, { href: 'heatmap.proper...
Matt-Jensen/ember-cli-g-maps
tests/dummy/app/pods/heatmap/route.js
JavaScript
mit
499
// Copyright (c) 2010-2013 SharpDX - Alexandre Mutel // // 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, modi...
wyrover/SharpDX
Source/SharpDX.Direct2D1/WIC/ImageEncoder.cs
C#
mit
1,969
#include "StdAfx.h" #include "ComponentsList.h" #include "dotNetInstallerDlg.h" CComponentsList::CComponentsList() : m_pConfiguration(NULL) , m_pExecuteCallback(NULL) { } IMPLEMENT_DYNAMIC(CComponentsList, CCheckListBox) BEGIN_MESSAGE_MAP(CComponentsList, CCheckListBox) ON_CONTROL_REFLECT(CLBN_CH...
dblock/dotnetinstaller
dotNetInstaller/ComponentsList.cpp
C++
mit
5,456
/* * Copyright (c) 2012 Maciej Walkowiak * * 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, pu...
bugix/java-plist-serializer
src/main/java/pl/maciejwalkowiak/plist/handler/MapHandler.java
Java
mit
1,980
package org.deviceconnect.android.libmedia.streaming.mpeg2ts; /** * フレームのタイプを定義します. */ enum FrameType { /** * 音声のフレームタイプを定義. */ AUDIO, /** * 映像のフレームタイプを定義. */ VIDEO, /** * 音声と映像の混合のフレームタイプを定義. */ MIXED }
DeviceConnect/DeviceConnect-Android
dConnectSDK/dConnectLibStreaming/libmedia/src/main/java/org/deviceconnect/android/libmedia/streaming/mpeg2ts/FrameType.java
Java
mit
380
package mariculture.core.helpers; import java.util.Random; import mariculture.core.tile.base.TileMultiBlock; import mariculture.core.util.Fluids; import mariculture.core.util.IItemDropBlacklist; import net.minecraft.block.Block; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPla...
svgorbunov/Mariculture
src/main/java/mariculture/core/helpers/BlockHelper.java
Java
mit
7,041
(function(){ "use strict"; KC3StrategyTabs.aircraft = new KC3StrategyTab("aircraft"); KC3StrategyTabs.aircraft.definition = { tabSelf: KC3StrategyTabs.aircraft, squadNames: {}, _items: {}, _holders: {}, _slotNums: {}, /* INIT Prepares static data needed ---------------------------------*/ ...
c933103/KC3Kai
src/pages/strategy/tabs/aircraft/aircraft.js
JavaScript
mit
10,605
'use strict'; /* This is the primary module of the Ava bot, if you are not using docker to run the bot you can use another method to run this file as long as you make sure you have the correct dependencies */ const bot = require('./bot.js'); const log = require('./logger.js')(module); log.info('======== ava.js runni...
JamesLongman/ava-bot
lib/ava.js
JavaScript
mit
455
/** * @class Jaml * @author Ed Spencer (http://edspencer.net) * Jaml is a simple JavaScript library which makes HTML generation easy and pleasurable. * Examples: http://edspencer.github.com/jaml * Introduction: http://edspencer.net/2009/11/jaml-beautiful-html-generation-for-javascript.html */ Jaml = function() { ...
edspencer/jaml
src/Jaml.js
JavaScript
mit
1,100
require_relative "http_client" require_relative 'artist' require_relative 'album' module Xiami class Song include Virtus.model(finalize: false) attribute :id, Integer attribute :name, String attribute :temporary_url, String attribute :artist, Artist attribute :albu...
forresty/xiami
lib/xiami/song.rb
Ruby
mit
1,928
module.exports = { vert: [ 'uniform mat4 u_view_matrix;', 'attribute vec2 a_position;', 'attribute vec4 a_color;', 'varying vec4 v_color;', 'void main () {', ' gl_Position = u_view_matrix * vec4(a_position, 1.0, 1.0);', ' v_color = a_color;', '}' ...
clark-stevenson/phaser
v3/src/renderer/webgl/shaders/UntexturedAndTintedShader.js
JavaScript
mit
509
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("02...
tddold/Telerik-Academy-2
Csharp-Part2/08.TextFiles/02.ConcatenateTextFiles/Properties/AssemblyInfo.cs
C#
mit
1,422
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Microsoft.VisualStudio.TestTools.UnitTesting; using CM.Payments.Client.Model; using System.Reflection; using CM.Payments.Client.Enums; //<auto-generated> // IMPORTANT NOTE: // This code is generated by Mess...
cmpayments/payments-sdk-net
Source/CM.Payments.Client.Test/Generated/AfterPayDetailsResponse_Tests.cs
C#
mit
10,445
require "spec_helper" describe ChefSpec::Matchers::StateAttrsMatcher do subject { described_class.new(%i{a b}) } context "when the resource does not exist" do let(:resource) { nil } before { subject.matches?(resource) } it "does not match" do expect(subject).to_not be_matches(resource) end ...
chefspec/chefspec
spec/unit/matchers/state_attrs_matcher_spec.rb
Ruby
mit
2,289
<?php /* * This file is part of the PagerBundle package. * * (c) Marcin Butlak <contact@maker-labs.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace MakerLabs\PagerBundle; use MakerLabs\PagerBundle\Adapter\PagerAdap...
soniar4i/Alood
src/MakerLabs/PagerBundle/Pager.php
PHP
mit
4,498
/* * Copyright 2002-2016 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/LICENSE-2.0 * * Unless required by ap...
boggad/jdk9-sample
sample-catalog/spring-jdk9/src/spring.aop/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java
Java
mit
5,744
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\DICOM; use JMS\Serializer\Annotation\ExclusionPolicy;...
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/DICOM/UPSProgressInformationSequence.php
PHP
mit
844
package luhn import "strings" func Valid(id string) bool { if len(strings.TrimSpace(id)) == 1 { return false } d := make([]int, 0, len(id)) for _, r := range id { if r == ' ' { continue } if r < '0' || r > '9' { return false } d = append(d, int(r-'0')) } return sum(d)%10 == 0 } func sum(d...
exercism/xgo
exercises/luhn/example.go
GO
mit
461
/* YUI 3.7.2 (build 5639) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('node-base', function (Y, NAME) { /** * @module node * @submodule node-base */ var methods = [ /** * Determines whether each node has the given className. * @method ...
spadin/coverphoto
node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/node-base/node-base-debug.js
JavaScript
mit
33,629
## Copyright (c) 2001-2010, Scott D. Peckham ## January 2009 (converted from IDL) ## November 2009 (collected into cfg_files.py ## May 2010 (added read_key_value_pair()) ## July 2010 (added read_list() import numpy #--------------------------------------------------------------------- # # unit_test() # # skip_h...
mdpiper/topoflow
topoflow/utils/cfg_files.py
Python
mit
12,732
// Copyright (c) 2003 Compaq Corporation. All rights reserved. // Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved. // Last modified on Mon 30 Apr 2007 at 13:33:37 PST by lamport // modified on Fri Sep 22 13:54:35 PDT 2000 by yuanyu package tlc2.tool.liveness; import tla2sany.semantic.Lev...
lemmy/tlaplus
tlatools/org.lamport.tlatools/src/tlc2/tool/liveness/LNAll.java
Java
mit
2,829
import os import shutil import subprocess def which(program): def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) fpath, fname = os.path.split(program) if fpath: if is_exe(program): return program else: for path in os.environ["PATH"].split(...
liangjg/openmc
tools/ci/travis-install.py
Python
mit
2,019
<?php return array ( 'generalDesc' => array ( 'NationalNumberPattern' => '[2-9]\\d{6}', 'PossibleNumberPattern' => '\\d{7}', 'ExampleNumber' => '', ), 'fixedLine' => array ( 'NationalNumberPattern' => ' (?: 2(?: [034789]\\d| 1[0-7] ...
kokone/wp-phone-number
libphonenumber/data/PhoneNumberMetadata_MU.php
PHP
mit
2,103
package org.cdlib.xtf.textIndexer; /** * Copyright (c) 2006, Regents of the University of California * 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 m...
CDLUC3/dash-xtf
xtf/WEB-INF/src/org/cdlib/xtf/textIndexer/IdxTreeDictMaker.java
Java
mit
6,314
<?php require_once(lib_path.'PHPMailer_5.2.1/class.phpmailer.php'); class Email{ /** * sendMsg * * Envia um e-mail utilizando a bibliteca PHPMailer. * * @version 1.0 * @param string $to E-mail do destinatário. * @param string $subject Assunto do e-mail. * @param string $msg Mensa...
AndrePessoa/Topo
topo/app/core/email.class.php
PHP
mit
3,191
'use strict'; var assert = require('assert') var Promise = require('promise') var connect = require('../') var client = connect({ version: 3, cache: 'file', auth: '90993e4e47b0fdd1f51f4c67b17368c62a3d6097' // github-basic-js-test }); describe('async', function () { it('can make simple api requests', function...
scriptit/github-basic
test/async.js
JavaScript
mit
5,038
class PeopleController < HasAccountsController def index set_collection_ivar resource_class.search( params[:by_text], :star => true, :page => params[:page] ) end def show # Invoice scoping by state @invoices = resource.invoices.where("type != 'Salary'").invoice_state(params[:inv...
hauledev/has_account_engine
spec/dummy/app/controllers/people_controller.rb
Ruby
mit
624
// moment.js locale configuration // locale : Russian [ru] // author : Viktorminator : https://github.com/Viktorminator // Author : Menelion Elensúle : https://github.com/Oire // author : Коренберг Марк : https://github.com/socketpair function plural(word, num) { var forms = word.split('_'); return num % 10 ===...
CatsPoo/ShiftOnline
angular.src/node_modules/ngx-bootstrap/bs-moment/i18n/ru.js
JavaScript
mit
6,071
var express = require('express'); var router = express.Router(); var request = require('request'); // Setup Redis Client var redis = require("redis"); var client = redis.createClient(process.env.REDISCACHE_SSLPORT, process.env.REDISCACHE_HOSTNAME, { auth_pass: process.env.REDISCACHE_PRIMARY_KEY, tls: { servername: pro...
AzureCAT-GSI/DevCamp
HOL/node/03-azuread-office365/start/routes/dashboard.js
JavaScript
mit
2,173
require 'rails_helper' RSpec.describe PusherController, :type => :controller do describe "GET webhook" do it "returns http success" do get :webhook expect(response).to be_success end end end
nnluukhtn/coffee_run
spec/controllers/pusher_controller_spec.rb
Ruby
mit
218
 namespace S22.Xmpp.Extensions { /// <summary> /// Defines possible values for the mood of an XMPP user. /// </summary> /// <remarks>Refer to XEP-0107 for a detailed listing and description of the /// various mood values.</remarks> public enum Mood { /// <summary> /// Impressed with fear or apprehension; in ...
smiley22/S22.Xmpp
Extensions/XEP-0107/Mood.cs
C#
mit
9,671
using System.Windows.Controls; namespace HeroesMatchTracker.Views.RawData { /// <summary> /// Interaction logic for RawMatchReplaysControl.xaml /// </summary> public partial class RawMatchReplaysControl : UserControl { public RawMatchReplaysControl() { InitializeCompone...
koliva8245/HeroesParserData
HeroesMatchTracker/Views/RawData/RawMatchReplaysControl.xaml.cs
C#
mit
346
<?php return [ 'nav-back' => '回上一頁', 'nav-new' => '新增資料夾', 'nav-upload' => '上傳檔案', 'nav-thumbnails' => '縮圖顯示', 'nav-list' => '列表顯示', 'menu-rename' => '重新命名', 'menu-delete' => '刪除', 'menu-view' => '預覽', 'menu-download' =>...
crocodic-studio/simple-stock-manager
vendor/unisharp/laravel-filemanager/src/lang/zh-TW/lfm.php
PHP
mit
2,606
module.exports = function(grunt) { require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { version: '<%= pkg.version %>', banner: '// Backbone.Intercept v<%= meta.version %>\n' }, preprocess: { intercep...
elgubenis/backbone.intercept
gruntfile.js
JavaScript
mit
2,239
System.register([], function (_export, _context) { "use strict"; var p; return { setters: [], execute: function () { _export("p", p = 4); _export("p", p); } }; });
ModuleLoader/es-module-loader
test/fixtures/register-modules/rebinding.js
JavaScript
mit
197
#!/usr/bin/env python """ Apply a surface field to a shape """ from __future__ import print_function import argparse import time import sys import re from numpy import linspace from icqsol.shapes.icqShapeManager import ShapeManager from icqsol import util # time stamp tid = re.sub(r'\.', '', str(time.time())) descr...
gregvonkuster/icqsol
examples/addSurfaceFieldFromExpression.py
Python
mit
3,166
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using Tailviewer.Api; namespace Tailviewer.Core.Filters.ExpressionEngine { internal sealed class IsExpression<T> : IExpression<bool> { private static readonly IEqualityComparer<T> Comparer; private readonly IExpression<T> _lhs...
Kittyfisto/Tailviewer
src/Tailviewer.Core/Filters/ExpressionEngine/IsExpression.cs
C#
mit
2,319
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle...
tesler/cspt-moodle
moodle/lang/ru/enrol_imsenterprise.php
PHP
mit
11,218
module.exports = { //get global stats 'GET /stat': { controller: "StatController", action: "getGlobalStat" } }
badfuture/huoshui-backend-api
api/routes/statRoute.js
JavaScript
mit
126
/** * Node Native Module for Lib Sodium * * @Author Pedro Paixao * @email paixaop at gmail dot com * @License MIT */ #include "node_sodium.h" /** * int crypto_shorthash( * unsigned char *out, * const unsigned char *in, * unsigned long long inlen, * const unsigned char *key) * * Parameters: * ...
paixaop/node-sodium
src/crypto_shorthash.cc
C++
mit
1,709
# frozen_string_literal: true Capybara::SpecHelper.spec '#scroll_to', requires: [:scroll] do before do @session.visit('/scroll') end it 'can scroll an element to the top of the viewport' do el = @session.find(:css, '#scroll') @session.scroll_to(el, align: :top) expect(el.evaluate_script('this.ge...
jnicklas/capybara
lib/capybara/spec/session/scroll_spec.rb
Ruby
mit
5,689
package main import ( "context" "encoding/json" "log" "os" "path/filepath" "time" "github.com/mafredri/cdp" "github.com/mafredri/cdp/devtool" "github.com/mafredri/cdp/protocol/page" "github.com/mafredri/cdp/rpcc" ) func main() { dir, err := os.Getwd() if err != nil { log.Fatal(err) } if err := run(c...
mafredri/cdp
protocol/runtime/testdata/log_input_gen.go
GO
mit
2,730
<?php namespace BeSimple\SoapClient\Tests\AxisInterop; class TestCase extends \PHPUnit_Framework_TestCase { protected function setUp() { $ch = curl_init('http://localhost:8080/'); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt(...
MarkThink/OROCRM
vendor/bundles/besimple/soap/src/BeSimple/SoapClient/Tests/AxisInterop/TestCase.php
PHP
mit
602
'use strict'; var digits = require('./../../../utils/number').digits; // TODO this could be improved by simplifying seperated constants under associative and commutative operators function factory(type, config, load, typed, math) { var util = load(require('./util')); var isCommutative = util.isCommutative; var i...
ocadni/citychrone
node_modules/mathjs/lib/function/algebra/simplify/simplifyConstant.js
JavaScript
mit
7,764
<?php /* If you see this text in your browser, PHP is not configured correctly on this hosting provider. Contact your hosting provider regarding PHP configuration for your site. PHP file generated by Adobe Muse CC 2017.1.0.379 */ function formthrottle_check() { if (!is_writable('.')) { return '8';...
valesbc/valesbc.github.io
scripts/form_throttle.php
PHP
mit
2,961
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2022 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Rotates the vertices of a Face to the given angle. * * The actual vertex positions are adjusted, not their transformed positions. * *...
photonstorm/phaser
src/geom/mesh/RotateFace.js
JavaScript
mit
1,512
/******************************************************************************* * Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr) * 7 Colonel Roche 31077 Toulouse - France * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 ...
cloudcomputinghust/IoT
docker/oneM2M/CSE_IPE/org.eclipse.om2m/org.eclipse.om2m.core/src/main/java/org/eclipse/om2m/core/controller/PollingChannelUriController.java
Java
mit
1,885
/*! * iCheck v1.0.3, http://git.io/arlzeA * =================================== * Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization * * (c) 2013 Damir Sultanov, http://fronteed.com * MIT Licensed */ (function($) { // Cached vars var _iCheck = 'iCheck', _iCheckHelper = _iCh...
cdnjs/cdnjs
ajax/libs/iCheck/1.0.3/icheck.js
JavaScript
mit
14,225
module Voting class Domain include DataMapper::Resource property :id, Serial property :name, String property :created_at, DateTime property :updated_at, DateTime has n, :users, :class_name => "Voting::User", :child_key => [:domain_id] validates_present :name vali...
zapnap/voting
lib/voting/domain.rb
Ruby
mit
352
// Type definitions for @ag-grid-community/core v25.0.1 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> import { Column } from "../entities/column"; import { CellChangedEvent, RowNode } from "../entities/rowNode"; import { CellEvent, FlashCellsEvent } from "../events"; ...
ceolter/angular-grid
community-modules/core/dist/es6/rendering/cellComp.d.ts
TypeScript
mit
6,950
using System; using Csla; namespace Invoices.DataAccess.Sql { public partial class ProductTypeCachedNVLDal { } }
CslaGenFork/CslaGenFork
trunk/CoverageTest/Invoices-CS-DAL-DR/Invoices.DataAccess.Sql/ProductTypeCachedNVLDal.cs
C#
mit
135
const Route = require('../../structures/Route'); class usersGET extends Route { constructor() { super('/admin/users', 'get', { adminOnly: true }); } async run(req, res, db) { try { const users = await db.table('users') .select('id', 'username', 'enabled', 'isAdmin', 'createdAt'); return res.json({ ...
WeebDev/lolisafe
src/api/routes/admin/usersGET.js
JavaScript
mit
473
import { Autowired, Bean, BeanStub, XmlElement } from '@ag-grid-community/core'; import coreFactory from './files/ooxml/core'; import contentTypesFactory from './files/ooxml/contentTypes'; import officeThemeFactory from './files/ooxml/themes/office'; import sharedStringsFactory from './files/ooxml/sharedStrings'; impo...
ceolter/angular-grid
enterprise-modules/excel-export/src/excelExport/excelXlsxFactory.ts
TypeScript
mit
3,835
function DetailCellRenderer() {} DetailCellRenderer.prototype.init = function(params) { this.eGui = document.createElement('div'); this.eGui.innerHTML = '<h1 style="padding: 20px;">My Custom Detail</h1>'; }; DetailCellRenderer.prototype.getGui = function() { return this.eGui; };
ceolter/angular-grid
grid-packages/ag-grid-docs/documentation/src/pages/master-detail-custom-detail/examples/simple-custom-detail/detailCellRenderer_vanilla.js
JavaScript
mit
294
/* * * * (c) 2009-2017 Highsoft, Black Label * * License: www.highcharts.com/license * * */ 'use strict'; import H from '../parts/Globals.js'; import U from '../parts/Utilities.js'; var defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, erase = U.erase, extend = U.extend, ...
cdnjs/cdnjs
ajax/libs/highcharts/8.0.0/es-modules/annotations/annotations.src.js
JavaScript
mit
42,338
#!/usr/bin/python3 """ Simple wrapper to get diff of two schedules It's able to show different attributes (by 'attrs' kwarg) and indicate missing phases Follows 'diff' exit codes: 0 - same 1 - different 2 - other trouble Test as "python -m schedules_tools.batches.diff" """ import argparse from datetime...
RedHat-Eng-PGM/schedules-tools
schedules_tools/diff.py
Python
mit
16,312
this.primereact = this.primereact || {}; this.primereact.multiselect = (function (exports, React, core, inputtext, virtualscroller, PrimeReact) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_in...
cdnjs/cdnjs
ajax/libs/primereact/6.5.1/multiselect/multiselect.js
JavaScript
mit
72,104
/* * * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import H from '../parts/Globals.js'; import U from '../parts/Utilities.js'; var isArray = U.isArray; import reduceArrayMixin from '../mixins/reduce-array.js'; import mul...
cdnjs/cdnjs
ajax/libs/highcharts/7.2.2/es-modules/indicators/stochastic.src.js
JavaScript
mit
5,303
from __future__ import print_function class Sequence(object): def __init__(self, name, seq): """ :param seq: the sequence :type seq: string """ self.name = name self.sequence = seq def __len__(self): return len(self.sequence) def to_fasta(self): ...
C3BI-pasteur-fr/python-course-1
source/_static/code/inheritance_sequence.py
Python
cc0-1.0
1,463
/** * Copyright (c) 2014 openHAB UG (haftungsbeschraenkt) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */...
innoq/smarthome
bundles/core/org.eclipse.smarthome.core.transform.test/src/test/java/org/eclipse/smarthome/core/transform/internal/AbstractTransformationServiceTest.java
Java
epl-1.0
2,058
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.9-03/31/2009 04:14 PM(snajper)-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Ge...
McGill-DP-Group/seg.jUCMNav
src/seg/jUCMNav/importexport/z151/generated/Description.java
Java
epl-1.0
1,823
/****************************************************************************** * * Copyright 2014 Paphus Solutions Inc. * * Licensed under the Eclipse Public License, Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
BOTlibre/BOTlibre
swingdroid/source/android/app/ProgressDialog.java
Java
epl-1.0
1,233
/******************************************************************************* * Copyright (c) 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
OpenLiberty/open-liberty
dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/HandshakeProcessor.java
Java
epl-1.0
20,135
/******************************************************************************* * Copyright (c) 2019 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.clientcontainer_fat/fat/src/com/ibm/ws/jaxws/test/wsr/client/TestUtils.java
Java
epl-1.0
7,976
/******************************************************************************* * Copyright (c) 2021 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.tests.spec10.query_fat.common/test-applications/svlquery/src/com/ibm/ws/query/web/loopqueryano/JULoopQueryAnoTest_001_Servlet.java
Java
epl-1.0
11,753
/******************************************************************************* * Copyright (c) 2012-2016 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available ...
stour/che
plugins/plugin-java/che-plugin-java-ext-lang-client/src/test/java/org/eclipse/che/ide/ext/java/client/action/MarkDirAsSourceActionTest.java
Java
epl-1.0
8,195