repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kimkulling/osre
test/UnitTests/src/Scene/DbgRendererTest.cpp
2196
/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
mit
SebSept/onemorelaravelblog
app/tests/admin/AdminModerate_DeleteCept.php
725
<?php use SebSept\OMLB\Models\Comment\Comment; use Laracasts\TestDummy\Factory; // prepare data $post = Factory::create('SebSept\OMLB\Models\Post\Post', ['published' => 1]); $comment = Laracasts\TestDummy\Factory::create('SebSept\OMLB\Models\Comment\Comment', ['post_id' => $post->id]); $I = new Admin($scenario); $I->...
mit
directhex/xwt
Xwt.XamMac/Xwt.Mac/TextEntryBackend.cs
6948
// // TextEntryBackend.cs // // Author: // Lluis Sanchez <lluis@xamarin.com> // // Copyright (c) 2011 Xamarin 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 rest...
mit
kybarg/material-ui
packages/material-ui-icons/src/ArrowDropDownTwoTone.js
168
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 10l5 5 5-5H7z" /> , 'ArrowDropDownTwoTone');
mit
boomcms/boom-core
tests/Database/Models/PageTest.php
18074
<?php namespace BoomCMS\Tests\Database\Models; use BoomCMS\Database\Models\Page; use BoomCMS\Database\Models\PageVersion; use BoomCMS\Database\Models\Site; use BoomCMS\Database\Models\Tag; use BoomCMS\Database\Models\URL; use BoomCMS\Support\Helpers\URL as URLHelper; use DateTime; use Illuminate\Database\Eloquent\Bui...
mit
marcosQuesada/WhiteOctober-Admin-Generator
src/Base/TestBundle/Admin/CategoryAdmin.php
520
<?php namespace Base\TestBundle\Admin; use WhiteOctober\AdminBundle\DataManager\Doctrine\ORM\Admin\DoctrineORMAdmin; class CategoryAdmin extends DoctrineORMAdmin { protected function configure() { $this ->setName('Category') ->setDataClass('Base\TestBundle\Entity\Category') ...
mit
dieggop/prefeiturasertania
app/Downloads.php
338
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Downloads extends Model { use SoftDeletes; protected $table = 'downloads'; protected $fillable = ['title','arquivo','sobre','quantidade']; protected $dates = ['deleted_at','created_at',...
mit
SUTDMEC/TripInference
mainActivites.py
5972
import numpy as np import oldTripParse as tp import getActivities as ga import itertools ######################### # Read pilot nodes data # ######################### # 0 1 2 3 4 # Data is nid / ts / mode / lat / lon data = np.genfromtxt("pilot2_trimmed.csv", delimiter=",") data = data[1:-1,:]...
mit
podefr/es6-fun
arrow-function.js
357
// Use with traceur: traceur arrow-function.js --experimental "use strict"; function Klass() { this.value = 2; this.test = (p, q = 6) => p * q * this.value; this.rest = (first, ...otherParams) => console.log(otherParams); } var klass = new Klass(); console.log(klass.test(3)); console.log(klass.rest(...
mit
UmassJin/Leetcode
LintCode/Count of Smaller Number.py
1705
''' Give you an integer array (index from 0 to n-1, where n is the size of this array, value from 0 to 10000) and an query list. For each query, give you an integer, return the number of element in the array that are smaller that the given integer. Have you met this question in a real interview? Yes Example For array ...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/ddos_settings.rb
1758
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2018_12_01 module Models # # Contains the DDoS protection settings of the public IP. # class DdosSettings ...
mit
martyndavies/cmdgrid
lib/cmdgrid.js
6272
#!/usr/bin/env node var program = require('commander'), Table = require('cli-table'), request = require('request'); var username, pwd, optionsString; var table = new Table({ head: ['#', 'Hostname', 'URL', 'Spam Check?'] , colWidths: [5, 20, 50, 15] }); function errorCatcher(){ console.log('\033[31mThere...
mit
alucidwolf/alucidwolf.github.io
tinymce/onclick.js
12795
function activateTinyEditor(el) { if ($(el).hasClass('is-editable')) { //console.log(el); var selectorTinyId = el.id; var selectorTiny = "#" + selectorTinyId; //console.log(selectorTinyId); //console.log(selectorTiny); // remove other editors from being active ...
mit
D10221/ng-shell
test/view2/view2_test.js
323
'use strict'; describe('ngShell.view2 module', function() { beforeEach(module('ngShell.view2')); describe('view2 controller', function(){ it('should ....', inject(function($controller) { //spec body var view2Ctrl = $controller('View2Ctrl'); expect(view2Ctrl).toBeDefined(); })); }); ...
mit
wknishio/variable-terminal
src/lanterna/com/googlecode/lanterna/input/KeyStroke.java
15442
/* * This file is part of lanterna (https://github.com/mabe02/lanterna). * * lanterna is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any lat...
mit
madhusudhand/markdown-docs
src/app/offline/doc-nav/doc-nav.component.ts
477
import { Component, OnInit, Input } from '@angular/core'; import {MarkdownService} from '../../markdown/markdown.service'; @Component({ selector: 'app-doc-nav', templateUrl: './doc-nav.component.html', styleUrls: ['./doc-nav.component.scss'] }) export class DocNavComponent implements OnInit { @Input() markup: ...
mit
dibley1973/UnityStateManager
Assets/Scripts/StateManager/State.cs
2969
using Assets.Scripts.StateManager; using Dibware.UnityStateManager.Assets.Scripts.Resources; using UnityEngine; namespace Dibware.UnityStateManager.Assets.Scripts.StateManager { /// <summary> /// The State object follows a singleton pattern to ensure there is only ever /// one instant of any of the State...
mit
hyp/nnFit
src/nn/trainer.cpp
3674
#include <iostream> #include <chrono> #include "trainer.h" #include "errorCriterion.h" #include "optimizers/optimizer.h" using namespace nnFit; Trainer::Trainer(Network &network, ErrorCriterion &criterion, Dataset &data, size_t parallelisationFactor) : network(network), criterion(criterion), data(data), trainingExamp...
mit
Ybalrid/LeapRift
AbstractLevel.hpp
677
#ifndef ABSTRACTLEVEL #define ABSTRACTLEVEL #include <Annwvyn.h> namespace Annwvyn { //AnnEngine should really be a singleton class with a static method to get the instance... class AbstractLevel { public: ///Construct the level AbstractLevel(); ///Pure virtual methods that loads the level virtual vo...
mit
JordyBaylac/academic-tracker
e2e/app.e2e-spec.ts
338
import { AcademicTrackerPage } from './app.po'; describe('academic-tracker App', () => { let page: AcademicTrackerPage; beforeEach(() => { page = new AcademicTrackerPage(); }); it('should display message saying app works', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('app wo...
mit
ekyna/Characteristics
Tests/ManagerTest.php
1598
<?php namespace Ekyna\Component\Characteristics\Tests; use Ekyna\Component\Characteristics\Manager; use Ekyna\Component\Characteristics\ManagerBuilder; use Ekyna\Component\Characteristics\Schema\Registry; use Symfony\Component\Filesystem\Filesystem; /** * Class ManagerTest * @package Ekyna\Component\Characteristic...
mit
validate-io/typed-array-function
lib/create.js
2158
/* jshint evil:true */ 'use strict'; // MODULES // var isFunction = require( 'validate.io-function' ), isTypedArray = require( 'validate.io-typed-array' ); // CREATE // /** * FUNCTION: create( fcn ) * Returns a function for validating whether an input is a typed array for which all elements pass the test function...
mit
akaraatanasov/SoftUni
Technologies Fundamentals/Software Technologies/JavaScript - Blog Admin Functionality/SoftUniBlog/controllers/article.js
4265
const Article = require('mongoose').model('Article'); module.exports = { createGet: (req, res) => { res.render('article/create'); }, createPost: (req, res) => { let articleArgs = req.body; let errorMsg = ''; if(!req.isAuthenticated()){ errorMsg = 'You should be...
mit
stopyoukid/DojoToTypescriptConverter
out/separate/dojox.atom.widget.FeedViewerGrouping.d.ts
791
/// <reference path="Object.d.ts" /> /// <reference path="dijit._Widget.d.ts" /> /// <reference path="dijit._Templated.d.ts" /> module dojox.atom.widget{ export class FeedViewerGrouping extends dijit._Widget { templateString : String; templatePath : String; widgetsInTemplate : bool; _skipNodeCache : bool; _earlyTemplat...
mit
MIWPFM/pfmweb
src/MIW/BackendBundle/Admin/UserAdmin.php
4065
<?php namespace MIW\BackendBundle\Admin; use Sonata\AdminBundle\Admin\Admin; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Show\ShowMapper; class UserAdmin extends Admin { /** * @param DatagridMappe...
mit
mangafas/siball-analysis-archive
text-based/beta/0.6/0.6.8/0.6.8.py
96310
import subprocess as sub import time # -----> * Filing * <----- # ask the user the name of the game to create a .txt file print("Enter game's name:") name_file = input("") name_file_string = str(name_file) file_name = name_file_string + ".txt" # create a writable .txt file safile = open(file_name, "w") # -----> * T...
mit
JKorf/Binance.Net
Binance.Net/Enums/ExecutionType.cs
715
namespace Binance.Net.Enums { /// <summary> /// The type of execution /// </summary> public enum ExecutionType { /// <summary> /// New /// </summary> New, /// <summary> /// Canceled /// </summary> Canceled, /// <summary> ...
mit
xtrementl/focus
tests/runtests.py
392
import os import sys from focus_unittest import TestLoader, TextTestRunner TEST_DIR = os.path.dirname(os.path.realpath(__file__)) START_DIR = os.path.join(TEST_DIR, 'unit') VERBOSITY = 1 loader = TestLoader() tests = loader.discover(START_DIR, 'test_*.py', TEST_DIR) runner = TextTestRunner(verbosity=VERBOSITY).run(t...
mit
netlogix/angular2-jsonapi
domain/paginator/load-more-paginator.js
1224
"use strict"; var paginator_1 = require('./paginator'); var LoadMorePaginator = (function () { function LoadMorePaginator(firstPage, consumerBackend) { var _this = this; this.firstPage = firstPage; this.consumerBackend = consumerBackend; this._data = []; this.paginator = new ...
mit
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/fjt74l9mlcqisdus/2013-05-10T16-04-15.171+0200/sandbox/my_sandbox/apps/blastX/blastX.cpp
2110
// BLASTX IMPLEMENTIERUNG VON ANNKATRIN BRESSIN UND MARJAN FAIZI // SOFTWAREPROJEKT VOM 2.4. - 29.5.2012 // VERSION VOM 04.MAI.2013 #include "own_functions.h" // MAIN FUNKTION ------------------------------------------------------------------------------- int main(int argc, char const ** argv){ // Klasse ...
mit
InnovateUKGitHub/innovation-funding-service
ifs-web-service/ifs-competition-mgt-service/src/main/java/org/innovateuk/ifs/management/competition/setup/milestone/populator/MilestonesFormPopulator.java
3531
package org.innovateuk.ifs.management.competition.setup.milestone.populator; import org.innovateuk.ifs.competition.resource.CompetitionResource; import org.innovateuk.ifs.competition.resource.CompetitionSetupSection; import org.innovateuk.ifs.competition.resource.MilestoneResource; import org.innovateuk.ifs.competitio...
mit
Mazuh/UrnaEleitoral
src/painel_comite.php
3453
<?php session_start(); function __autoload($file){ if(file_exists('class/' . $file . '.php')){ require_once('class/' . $file . '.php'); } else{ exit('O arquivo ' . $file . ' não encontrado.'); } } // auth $usuario = unserialize($_SESSION["membro_comite"]) or die("Você não está autorizado a...
mit
dominikgrygiel/e-0.3.6
lib/e/helpers/status.rb
636
class E # kindly borrowed from Sinatra Framework # whether or not the status is set to 1xx def informational? status.between? 100, 199 end # whether or not the status is set to 2xx def success? status.between? 200, 299 end # whether or not the status is set to 3xx def redirect? statu...
mit
kyerematics/mesaknust
header.php
1945
<?php /** * Created by PhpStorm. * User: joe * Date: 02/10/2016 * Time: 19:59 */ ?> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>MESA</title> <link rel="stylesheet" href="css/bootstrap.min.css" /> <link rel="stylesheet"...
mit
roroacms/roroacms
app/controllers/roroacms/comments_controller.rb
1236
require_dependency "roroacms/application_controller" module Roroacms class CommentsController < ApplicationController # CommentsController is simply used for the blog comments form. On post it will save the data in the database for the admin to filter. include Roroacms::CommentsHelper def create ...
mit
manisharc/CPTweetsM
app/src/main/java/com/codepath/apps/CPTweetsM/activities/TimelineActivity.java
6452
package com.codepath.apps.CPTweetsM.activities; import android.content.Intent; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatAc...
mit
cookpad/arproxy
spec/arproxy_spec.rb
3925
require "spec_helper" describe Arproxy do before do allow(Arproxy).to receive(:logger) { Logger.new('/dev/null') } end class ProxyA < Arproxy::Base def execute(sql, name) super "#{sql}_A", "#{name}_A" end end class ProxyB < Arproxy::Base def initialize(opt=nil) @opt = opt en...
mit
bstaykov/Telerik-DSA
2015/HashTablesAndSets/06.PhoneBook/PhoneBookItem.cs
406
namespace _06.PhoneBook { public class PhoneBookItem { public PhoneBookItem(string name, string town, string phoneNumber) { this.Name = name; this.Town = town; this.PhoneNumber = phoneNumber; } public string Name { get; set; } public...
mit
itoufo/stoq-web2
src/js/plugins/jsgrid/js/jsgrid-script.js
8464
$(function() { // Static Data $("#jsGrid-static").jsGrid({ height: "70%", width: "100%", sorting: true, paging: true, fields: [ { name: "Name", type: "text", width: 150 }, ...
mit
trelly/stoneoa
application/controllers/Contact.php
482
<?php /** * 联系管理 */ class ContactController extends Controller{ public function init(){ } public function IndexAction(){ $this->scripts[] = '/public/stone/approve.js'; $this->content = $this->getView()->render('contact/index.phtml',array()); } public function listActi...
mit
phlipper/chef-percona
recipes/default.rb
78
# # Cookbook:: percona # Recipe:: default # include_recipe 'percona::client'
mit
azzahrafz99/Appron-Revisi
application/views/browse.php
79
<?php $this->load->view('menubar/v_menubar'); $this->load->view('v_browse');
mit
muddyfish/PYKE
node/product.py
1254
#!/usr/bin/env python import datetime import ephem from nodes import Node from type.type_time import TypeTime class Product(Node): char = "B" args = 1 results = 1 contents = "><+-.,[]" # Possible bytes in a BF program @Node.test_func([[1,2]], [2]) @Node.test_func([[3,4]], [12]) @N...
mit
miconblog/parse-react-redux-router-intl
app/actions/parse.js
2393
/** * Redux Actions for ParseSever * */ import { PARSE, Schemas } from '../middleware/parse' export const PARSE_FETCH_REQUEST = 'PARSE_FETCH_REQUEST'; export const PARSE_FETCH_SUCCESS = 'PARSE_FETCH_SUCCESS'; export const PARSE_FETCH_FAILURE = 'PARSE_FETCH_FAILURE'; export function fetch(params) { const schema...
mit
najd-mrabet/federation-tunisienne-tennis
src/Ftt/GestionActualiteBundle/Entity/ActualiteRepository.php
276
<?php namespace Ftt\GestionActualiteBundle\Entity; use Doctrine\ORM\EntityRepository; /** * ActualiteRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ActualiteRepository extends EntityRepository { }
mit
yiq/SubcloneSeeker
test/TestGenomicLocation.cc
1324
/** * @file Unit tests for class GenomicLocation * * @see GenomicLocation * @author Yi Qiao */ /* The MIT License (MIT) Copyright (c) 2013 Yi Qiao 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 Sof...
mit
51breeze/breezejs
javascript/fix/Function-ie-9.js
784
/** * 绑定一个对象到返回的函数中 * 返回一个函数 * @type {bind} */ Function.prototype.bind = $Function.prototype.bind; if( !$Function.prototype.bind ) { Function.prototype.bind = function bind(thisArg) { if (typeof this !== "function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not call...
mit
DragonSpark/Framework
DragonSpark.Application/Runtime/IThrottling.cs
144
using DragonSpark.Model.Operations; namespace DragonSpark.Application.Runtime; public interface IThrottling<T> : IOperation<Throttle<T>> {}
mit
Maroc-OS/nheqminer
nheqminer/zcash/JoinSplit.hpp
2903
#ifndef _ZCJOINSPLIT_H_ #define _ZCJOINSPLIT_H_ #include "Address.hpp" #include "IncrementalMerkleTree.hpp" #include "Note.hpp" #include "NoteEncryption.hpp" #include "Proof.hpp" #include "Zcash.h" #include "uint252.h" #include "uint256.h" #include <boost/array.hpp> namespace libzcash { class JSInput { public: Z...
mit
mezae/pfptech
modules/core/client/app/config.js
832
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'pfptech'; var applicationModuleVendorDependencies = ['ngResource', 'ui.router', 'ui.bootstrap', 'ui.utils', 'angularFil...
mit
infosimples/ir_investidor
config/environments/production.rb
3694
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
mit
cignoir/trinamo
spec/trinamo/converter/base_converter_spec.rb
163
require 'spec_helper' require 'unindent' describe Trinamo::BaseConverter do it 'has been defined' do expect(Trinamo::BaseConverter).not_to be nil end end
mit
shrift/ads_demo
app/src/main/java/com/bubbletastic/android/appia/ads/service/AdvertisementService.java
464
package com.bubbletastic.android.appia.ads.service; import com.bubbletastic.android.appia.ads.model.Advertisement; import java.util.List; /** * Created by brendanmartens on 1/28/16. */ public interface AdvertisementService { /** * Gets a list of advertisements from Appia's service. * The list return...
mit
abc-dev/2016
tasks/scss.js
640
'use strict'; let gulp = require('gulp'); let plumber = require('gulp-plumber'); let sass = require('gulp-sass'); let autoprefixer = require('gulp-autoprefixer'); let cssnano = require('gulp-cssnano'); let rename = require('gulp-rename'); gulp.task('scss', scssTask); function scssTask() { let autoprefixerOptions =...
mit
luego/botb
functions.php
2308
<?php /** * Author: Ole Fredrik Lie * URL: http://olefredrik.com * * FoundationPress functions and definitions * * Set up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionalit...
mit
TeamApple/RecepiesClient
RecepiesClient/Models/RegisterUserResponseModel.cs
190
using System; namespace RecepiesClient.Models { public class RegisterUserResponseModel { public int Id { get; set; } public string Username { get; set; } } }
mit
401LearningAnalytics/Project
ui/main/usage/intro.php
3925
<?php /** * This page is scatter for Introduction to Software Product Management course. * The scatter plot shows the current time versus performance for each student. * Each dot in the plot means each student. * The color means each student process. * * @package ui * * @author Wei Song <wsong1@ualbert...
mit
hellorich/go-craft
craft/app/elementtypes/BaseElementType.php
16402
<?php namespace Craft; /** * The base class for all Craft element types. Any element type must extend this class. * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @copyright Copyright (c) 2014, Pixel & Tonic, Inc. * @license http://craftcms.com/license Craft License Agreement * @see http:...
mit
rhythmagency/formulate
src/formulate.app/Directives/layoutEditor/layoutEditor.js
708
// Variables. var app = angular.module("umbraco"); // Associate directive/controller. app.directive("formulateLayoutEditor", directive); // Directive. function directive(formulateDirectives, $compile) { return { restrict: "E", template: formulateDirectives.get("layoutEditor/layoutEditor.html"), ...
mit
winnlab/Optimeal
public/js/lib/funcunit/test/funcunit/open_test.js
709
module("funcunit-open") test('F.open accepts a window', function() { F.open(window); F('#tester').click(); F("#tester").text("Changed", "Changed link") F.open(frames["myapp"]); F("#typehere").type("").type("javascriptmvc") F("#seewhatyoutyped").text("typed javascriptmvc","typing"); }) test("Back to back ope...
mit
Juba95/newart
src/NAE/PlateformBundle/Tests/Controller/DefaultControllerTest.php
419
<?php namespace NAE\PlateformBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); ...
mit
leotizzei/MobileMedia-Cosmos-v5
src/br/unicamp/ic/sed/mobilemedia/filesystemmgr/impl/AlbumData.java
8104
/** * University of Campinas - Brazil * Institute of Computing * SED group * * date: February 2009 * */ package br.unicamp.ic.sed.mobilemedia.filesystemmgr.impl; import java.util.Hashtable; import javax.microedition.lcdui.Image; import javax.microedition.rms.RecordStoreException; import br.unicamp.ic.sed.mo...
mit
stangelandcl/Actors
Actors/Distributed/Proxies/DynamicProxy.cs
1322
using System; using System.Dynamic; using Cls.Extensions; using Cls.Connections; using Cls.Serialization; namespace Cls.Actors { public interface IDynamicProxy : IDisposable { RemoteActor Proxy { get; } } public class DynamicProxy : DynamicObject, IDynamicProxy { public DynamicP...
mit
seedboxtech/goauthorizer
authorizerHandler.go
5664
package goauthorizer import ( "encoding/json" "errors" "log" "net/http" "strings" "github.com/gorilla/securecookie" ) type LoginFunc func(uname, pword string) bool type AuthorizerHandler struct { loginfn LoginFunc authorizedfn func(uname string, resource string) bool //UnauthorizedHandler is used in ...
mit
UchiKir/SymfonyPadelApp
var/cache/prod/doctrine/orm/Proxies/__CG__AppBundleEntityMatch.php
6523
<?php namespace Proxies\__CG__\AppBundle\Entity; /** * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR */ class Match extends \AppBundle\Entity\Match implements \Doctrine\ORM\Proxy\Proxy { /** * @var \Closure the callback responsible for loading properties in the proxy object. This cal...
mit
kbase/browse
ws-browser/assets/data/maps/maps-to-json.py
12664
#!/usr/bin/env python import io import json import sys import os from xml.dom import minidom import wsclient # this is the kegg rxn/cpds to seed mapping json files. with open('rxn_mapping.json') as file: json_str = file.read() rxn_mapping = json.loads(json_str) with open('cpd_mapping.json') as file: jso...
mit
trifort/skarn
project/TestBuild.scala
637
import sbt._ import Keys._ object TestBuild extends Build { lazy val E2ETest = config("e2e") extend(Test) lazy val ITest = config("it") extend(Test) def itFilter(name: String): Boolean = name endsWith "ITest" def unitFilter(name: String): Boolean = !itFilter(name) && !e2eFilter(name) def e2eFilter(name: Stri...
mit
kirbysayshi/sea
test/test.dom.js
21918
var assert = require('assert') , sinon = require('sinon') , sea = require('../index.databind') // skip running if not in a browser if(typeof window === 'undefined') return; var scratch = document.querySelector('#scratch'); var $ = function(query, ctx){ return [].slice.call((ctx || scratch).querySelectorAll(que...
mit
IamAdamJowett/angular-logger-max
logger.service.js
15785
/* global angular */ (function() { 'use strict'; angular .module('angular-logger-max', []) .factory('Logger', [Logger]); // check for the availablility of the variety of console functions and create holders if necessary (function() { // handles all the console methods to make ...
mit
designermonkey/symphony-psr
symphony/lib/SymphonyCms/Toolkit/AuthorManager.php
9373
<?php namespace SymphonyCms\Toolkit; use \SymphonyCms\Symphony; use \SymphonyCms\Toolkit\Author; /** * The `AuthorManager` class is responsible for managing all Author objects * in Symphony. Unlike other Manager objects, Authors are stored in the * database in `tbl_authors` and not on the file system. CRUD method...
mit
madhon/statsd.net
statsd.net.shared/Listeners/StatsdnetTcpListener.cs
4938
namespace statsd.net.shared.Listeners { using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; using statsd.net.core; using statsd.net.shared.Loggi...
mit
cculianu/bitcoin-abc
test/functional/mining_basic.py
11862
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mining RPCs - getmininginfo - getblocktemplate proposal mode - submitblock""" import copy from d...
mit
isukces/isukces.code
isukces.code/Compatibility/System.Windows/FrameworkElement.cs
264
namespace iSukces.Code.Compatibility.System.Windows { [EmitType("System.Windows")] public class FrameworkElement { public Thickness Margin { get; set; } public VerticalAlignment VerticalAlignment { get; set; } } }
mit
bashaus/oriancci
src/Oriancci/Drivers/SQLite/Table.php
404
<?php namespace Oriancci\Drivers\SQLite; class Table extends \Oriancci\Table { public function describe() { $modelName = $this->modelName; $connection = $modelName::connection(); return $connection->query('PRAGMA table_info([' . $this->tableFullName() . '])'); } public fu...
mit
afunai/bike
t/test_img.rb
8318
# encoding: UTF-8 # Author:: Akira FUNAI # Copyright:: Copyright (c) 2009-2010 Akira FUNAI require "#{::File.dirname __FILE__}/t" class TC_Img < Test::Unit::TestCase def setup Bike.current[:uri] = nil File.open('t/skin/t_img/test.jpg') {|f| @img = f.read @file = Tempfile.open('tc_img') ...
mit
bear454/osem
db/migrate/20140930092923_move_sponsor_email_to_contact.rb
731
# frozen_string_literal: true class MoveSponsorEmailToContact < ActiveRecord::Migration class TempConference < ActiveRecord::Base self.table_name = 'conferences' end class TempContact < ActiveRecord::Base self.table_name = 'contacts' end def change add_column :contacts, :sponsor_email, :string ...
mit
uqtimes/OnionRingCSharp
Assets/Editor/OnionRingCSharp.cs
11303
using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using UnityEditor; using UnityEngine; // Original // https://github.com/kyubuns/onion_ring/blob/master/onion_ring.rb namespace OnionRingCSharp { /// <summary> /// 'oily_png'のインタフェースを模し...
mit
Timothep/SimpleExpressions
SimpleExpression/SimpleExpression.Core/AbstractTree/Nodes/BaseNode.cs
560
using SimpleExpressions.Core.AbstractTree.DomainObjects; using SimpleExpressions.Core.Converters; namespace SimpleExpressions.Core.AbstractTree.Nodes { public abstract class BaseNode : INode { public INode Parent { get; set; } public Cardinality Cardinality { get; set; } public IConver...
mit
GluuFederation/community-edition-setup
setup_app/utils/progress.py
4603
import sys import time from setup_app import static from setup_app.config import Config from threading import Thread # credit https://github.com/verigak/progress/blob/master/progress/spinner.py phases = ['◑', '◒', '◐', '◓'] phases = ('-', '\\', '|', '/') phases = ['◷', '◶', '◵', '◴'] phases = ['⎺', '⎻', '⎼', '⎽', '⎼'...
mit
MichalPaszkiewicz/depictr
scripts/initialise.ts
319
"use strict"; module Depictr { export var canvas = <HTMLCanvasElement>document.getElementById("my-canvas"); export var ctx = canvas.getContext("2d"); canvas.width = 500; canvas.height = 500; ctx.textAlign = "center"; ctx.fillText("Drop image here", canvas.width / 2, canvas.height / 2); }
mit
resir014/thebestmotherfuckingwebsite.co
src/components/Epilogue/Epilogue.tsx
3117
import * as React from 'react' import { Container } from '../Container' import { FullScreenSection } from '../FullScreenSection' export const Epilogue: React.SFC = () => ( <FullScreenSection name="epilogue"> <Container> <h1> AND YES, THIS WHOLE THING IS <em>STILL</em> SATIRE, YOU DIPSHIT. </...
mit
jasonmit/ember-i18n-errors
tests/dummy/app/locales/en/translations.js
148
export default { errors: { blank: "can't blank", invalid: "generic invalid", email: { blank: "email can't be blank" } } }
mit
Hand-Talk/android-library
android-sdk/src/main/java/br/com/handtalk/androidlib/HugoActivity.java
6756
package br.com.handtalk.androidlib; import android.content.Context; import android.content.SharedPreferences; import android.graphics.PixelFormat; import android.os.Bundle; import android.os.Handler; import android.preference.PreferenceManager; import android.util.DisplayMetrics; import android.util.Log; import androi...
mit
GeovisionGroup/tvb.a
types/rn-viewpager/index.d.ts
383
declare module 'rn-viewpager' { import React, { Component } from 'react' class PagerTabIndicator extends Component<any> { } class IndicatorViewPager extends Component<any> { setPage(pageNumber: number): void } class PagerTitleIndicator extends Component<any> { } class PagerDotIndicator extends Component...
mit
jayli/kissy
tools/module-compiler/src/com/google/protobuf/ExtensionRegistry.java
10427
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
mit
p-org/PSharp
Source/LanguageServices/Syntax/Blocks/BlockSyntax.cs
5928
// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
mit
schneidmaster/debatevid.io
app/assets/components/store/records/tournament.js
243
import { Record } from "immutable"; const defaultTournament = { id: null, name: null, year: null }; export default class Tournament extends Record(defaultTournament) { getYearAndName() { return `${this.year} ${this.name}`; } }
mit
digitalheir/dutch-case-law-to-couchdb
src/deprecated-ruby-importer/deprecated/update_couchdb_bulk.rb
1161
# require 'nokogiri' # require 'json' # require 'erb' # require 'logger' # require 'tilt' # require 'open-uri' # require 'base64' # require_relative 'couch/couch' # require_relative 'rechtspraak-nl/rechtspraak_utils' # include RechtspraakUtils # # # Deprecated for being inefficient on memory # # def update_couchdb # ...
mit
yilliot/souls
app/Services/ServicesGenerator.php
2284
<?php namespace App\Services; use App\Models\Service; use App\Models\User; use Carbon\Carbon; class ServicesGenerator { public function scheduler(Carbon $from, $months = 3) { $last_at = $from->copy(); $last = Service::where('created_by', 0) ->orderBy('at', 'desc') ->f...
mit
chengluyu/sheet
src/ast/AstNodePrinter.java
1828
package ast; public class AstNodePrinter { public AstNodePrinter(boolean useTab, int tabSize) { tabStr_ = useTab ? "\t" : AstNodePrinter.repeat(" ", tabSize); currentLevel_ = 0; indent_ = ""; text_ = new StringBuilder(); } private final String tabStr_; private int currentLevel_; private String indent...
mit
squidfunk/mkdocs-material
src/assets/javascripts/browser/element/focus/index.ts
2522
/* * Copyright (c) 2016-2022 Martin Donath <martin.donath@squidfunk.com> * * 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...
mit
andrewreedy/meteor-organizations
src/models/User.js
1698
/** * User * * @requires Users Collection * * @class User */ class User { /** * @constructor * * @param {String} data Model data * @param {User} app App * @param {Array} components Model Components */ constructor (data, org, app, components) { this._dat...
mit
OpenSiteMobile/mobilesiteos
apps/bootstrap2/controllers/dropdown.js
892
msos.provide("apps.bootstrap2.controllers.dropdown"); apps.bootstrap2.controllers.dropdown.version = new msos.set_version(14, 8, 6); angular.module( 'apps.bootstrap2.controllers.dropdown', ['ng.bootstrap.ui.dropdown'] ).controller( 'apps.bootstrap2.controllers.dropdown.ctrl', [ '$scope',function...
mit
rfceron/mongo-monitor-webapp-boot
src/main/java/com/mongodash/dao/mapper/BackupDBObjectMapper.java
2719
package com.mongodash.dao.mapper; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Component; import com.mongodash.Config; import com.mongodash.dao.DBObjectMapper; import com.mongodash.model.Backup; import com.mongodb.BasicDBList; import com.mongodb.BasicDBObject; import com.m...
mit
williamcspace/vscode
src/vs/workbench/parts/debug/electron-browser/debugHover.ts
10098
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
segwit/atbcoin-insight
src/rpc/server.cpp
14709
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/server.h" #include "base58.h" #include "init.h" #include "random.h"...
mit
squareitechnologies/ABCPdfHtmlToPdfAzure
ABCPdfHtmlToPdfAzure/Scripts/index.js
188
$(function () { $('#generateBtn').click(function () { var url = '/Home/CreateHtmlPdf?url=' + $('#url').val(); var win = window.open(url, '_blank'); win.focus(); }); });
mit
ianhalpern/python-payment-processor
payment_processor/methods/__init__.py
3799
from payment_processor.exceptions import * import datetime class GenericMethod: first_name = None last_name = None company = None card_code = None address = None address2 = None city = None state = None zip_code = None country = None phone = None fax = None email ...
mit
DXCanas/kolibri
kolibri/core/assets/src/api-resources/facility.js
99
import { Resource } from '../api-resource'; export default new Resource({ name: 'facility', });
mit
AlanaFarkas/Crossroads
spec/models/address_spec.rb
1976
require 'rails_helper' describe Address do let(:address){Address.create({address_1: "test", city: "test", state: "test", zip: "12345"})} let(:address_2){Address.new} let(:user){User.create({first_name: "test", last_name: "test", email: "test@test.com", phone_number: "1231231123", password: "Testing1"})} contex...
mit