repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kyriakosbrastianos/friendica-deb
mod/item.php
27473
<?php /** * * This is the POST destination for most all locally posted * text stuff. This function handles status, wall-to-wall status, * local comments, and remote coments - that are posted on this site * (as opposed to being delivered in a feed). * Also processed here are posts and comments coming through th...
mit
enriquecr1990/aseacivikmx
application/views/asea/control_usuarios/ResultadosBusquedaUsuarios.php
3012
<?php if($listaUsuario): ?> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Nombre</th> <th>Correo</th> <th>Teléfono</th> <th>Activo</th> <th></th> </tr> ...
mit
onezens/python
net/2.socket_client.py
336
#!/usr/bin/python #encoding=utf8 import socket client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect(('127.0.0.1', 9999)) print(client.recv(1024).decode('utf8')) for data in [b'Xiaoming', b'Xiaohua', b'Xiaomwang']: client.send(data) print(client.recv(1024).decode('utf8')) client.send(b'exit'...
mit
gozwave/gozw
cc/association-v2/specific-group-get.gen.go
1144
// THIS FILE IS AUTO-GENERATED BY ZWGEN // DO NOT MODIFY package associationv2 import ( "encoding/gob" "github.com/gozwave/gozw/cc" ) const CommandSpecificGroupGet cc.CommandID = 0x0B func init() { gob.Register(SpecificGroupGet{}) cc.Register(cc.CommandIdentifier{ CommandClass: cc.CommandClassID(0x85), Com...
mit
NUBIC/aker
lib/aker/cas/authority.rb
2241
require 'aker/authorities' require 'castanet' module Aker::Cas ## # An authority which verifies CAS tickets with an actual CAS server. # # @see Aker::Cas::UserExt class Authority include ConfigurationHelper include Castanet::Client attr_reader :configuration ## # Creates a new instance...
mit
Kr0oked/BitmapFontLibrary
BitmapFontLibraryTest/Loader/Parser/Text/TextFontFileParserTest.cs
4166
using System.IO; using System.Reflection; using BitmapFontLibrary.Helper; using BitmapFontLibrary.Loader.Parser.Text; using BitmapFontLibrary.Loader.Texture; using BitmapFontLibrary.Model; using Moq; using NUnit.Framework; using TextReader = BitmapFontLibrary.Loader.Parser.Text.TextReader; namespace BitmapFontLibrary...
mit
hsavit1/gosofi_webpage
node_modules/truffle-contract/test/linking.js
6999
// Override artifactor var assert = require("chai").assert; var temp = require("temp").track(); var path = require("path"); var requireNoCache = require("require-nocache")(module); var contract = require("../"); var Web3 = require("web3"); var TestRPC = require("ganache-core"); var fs = require("fs"); var solc = requir...
mit
maxcrane/My-Blog
server/sitemap.js
1207
const sitemap = require('sitemap'); const articleUtils = require("../src/app/utils/articleUtils"); const hostname = 'https://www.maxcrane.org'; const cacheTime = 300000; const changefreq = 'weekly'; let defaultBlogUrls = [{url: '/about', changefreq}, {url: '/articles', changefreq}]; const _ = require('lodash'); let...
mit
jasongin/noble-uwp
uwp/windows.devices.bluetooth.genericattributeprofile/_nodert_generated.cpp
648142
// Copyright (c) Microsoft Corporation // All rights reserved. // // 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 // // THIS CODE IS PROVIDED ON AN ...
mit
renanaugustom/Ferramenta-de-transformacao-de-requisitos-para-arquitetura-de-tres-camadas
Projeto/parametros/urls.py
487
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf.urls import patterns, include, url from parametros import views urlpatterns = patterns('', url(r'^listar_ajax$', views.listar_ajax, name='listar_ajax'), url(r'^excluir_ajax$', views.excluir_ajax, name='excluir_ajax'), url(r'^cadastr...
mit
extr0py/oni
browser/test/Services/Snippets/SnippetVariableResolverTests.ts
826
/** * SnippetVariableResolverTests.ts */ import * as assert from "assert" import { SnippetVariableResolver } from "./../../../src/Services/Snippets" import { MockBuffer } from "./../../Mocks" const createMockVariable = (name: string): any => ({ name, }) describe("SnippetVariableResolverTests", () => { it...
mit
tugberkugurlu/MvcBloggy
src/MvcBloggy.API/Config/RouteConfig.cs
1021
using MvcBloggy.API.Routing; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Http; namespace MvcBloggy.API.Config { public static class RouteConfig { public static void RegisterRoutes(HttpRouteCollection...
mit
LeanKit-Labs/autohost
spec/setup.js
1990
var chai = require( 'chai' ); chai.use( require( 'chai-as-promised' ) ); global.should = chai.should(); global.expect = chai.expect; var _ = global._ = require( 'lodash' ); global.when = require( 'when' ); global.lift = require( 'when/node' ).lift; global.seq = require( 'when/sequence' ); global.fs = require( 'fs' ); g...
mit
kybarg/material-ui
packages/material-ui-icons/src/PhoneLockedOutlined.js
727
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.1-.03-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-...
mit
emclab/task_templatex
app/models/task_templatex/template.rb
939
module TaskTemplatex class Template < ActiveRecord::Base attr_accessible :active, :instruction, :last_updated_by_id, :name, :type_id, :ranking_order, :template_items_attributes, :as => :role_new attr_accessible :active, :instruction, :last_updated_by_id, :name, :type_id, :ranking_order, :template_items_a...
mit
IgniteSTEM/IgniteSTEM-Web-App
server/src/routes/userRoutes.js
239
import { createUser, list, checkUsername } from '../controllers/users'; export default (app) => { app.post('/api/users/create', createUser); app.get('/api/users', list); app.post('/api/users/checkUsername', checkUsername); };
mit
benliddicott/DefinitelyTyped
types/react/index.d.ts
161265
// Type definitions for React 16.0 // Project: http://facebook.github.io/react/ // Definitions by: Asana <https://asana.com> // AssureSign <http://www.assuresign.com> // Microsoft <https://microsoft.com> // John Reilly <https://github.com/johnnyreilly> // ...
mit
Magik3a/PatientManagement_Admin
PatientManagement/PatientManagement.Web/Modules/PatientManagement/Dashboard/CalendarPatientDialog.ts
612
/// <reference path="../Patients/PatientsDialog.ts" /> namespace PatientManagement.PatientManagement { @Serenity.Decorators.panel(false) @Serenity.Decorators.registerClass() export class CalendarPatientDialog extends PatientsDialog { public onSaveSuccess(response: Serenity.SaveResponse): void { ...
mit
vuikit/vuikit
packages/vuikit/tests/core/transition/stories/index.js
135
import { storiesOf } from '@storybook/vue' storiesOf('Core/Transition', module) .add('Default', () => require('./default').default)
mit
IVAgafonov/coral-group
app/services/system/newstagsService.js
1563
(function () { 'use strict'; angular.module('systemModule') .service('newstagsService', ['$http', function($http) { return { get: function() { return $http({ method: 'GET', url: '/api/v1/newstags/get' ...
mit
KingOfFawns/Special_Course
Special Course/Assets/Plugins/StansAssets/Modules/AndroidNative/Scripts/Social/Twitter/Tasks/TW_FollowersIdsRequest.cs
1221
//////////////////////////////////////////////////////////////////////////////// // // @module Android Native Plugin for Unity3D // @author Osipov Stanislav (Stan's Assets) // @support stans.assets@gmail.com // //////////////////////////////////////////////////////////////////////////////// using UnityEngine; us...
mit
zlz/cyan
src/b/scripts/provider.auth.js
575
/*global angular*/ angular.module('app').provider('auth', function() { let that = this; this.$get = () => { return that; }; this.create = (...para) => { window.sessionStorage.setItem('userAuth', JSON.stringify(para[0])); return true; }; this.check = (...para) => { ...
mit
berlios/pe
src/page_01/task044.cpp
1505
#include <algorithm> #include <gmpxx.h> #include <vector> #include "base/number_theory.h" #include "base/task.h" // This struct represents p(a + n) - p(a). struct PentagonalDifference { PentagonalDifference(int n, int a) : n_(n), a_(a), value_(NthPentagonalNumber(a + n) - NthPentagonalNumber(a)) { } ...
mit
azraelrabbit/webstack
depot/src/Depot.Tests/DefaultCacheTests.cs
299
using NUnit.Framework; namespace depot.Tests { [TestFixture] public class DefaultCacheTests : CacheTests { [SetUp] public void SetUp() { Cache = new DefaultCache(); FileCacheDependency = new DefaultFileCacheDependency(); } } }
mit
tunnckoCore/starts-with
benchmark/fixtures/little-negative.js
44
module.exports = [ 'a/b/c.txt', 'c.txt' ]
mit
djazayeri/openmrs-contrib-analyzecontributions
all-commits-by-year.js
2325
var _ = require('lodash'); var elasticsearch = require('elasticsearch'); var HUGE_SIZE = 10000; var csv = require("fast-csv"); var fs = require("fs"); var year = process.argv[2]; if (!(/\d{4}/.test(year))) { console.log("Usage: all-commits-by-year.js 2015 [repo]"); process.exit(1); } var repo = process.argv[...
mit
jmarrec/OpenStudioMeasures
Add A Fully Defined Daylight Sensor/measure.rb
14704
# Author: Julien Marrec # email: julien.marrec@gmail.com # start the measure class AddAFullyDefinedDaylightSensor < OpenStudio::Ruleset::ModelUserScript # human readable name def name return "Add Fully Defined Daylight Sensor to a zone" end # human readable description def description return "This ...
mit
Symftony/form-handler
tests/Form/Extension/NotSubmitted/Type/NotSubmittedTypeExtensionTest.php
1194
<?php namespace Symftony\FormHandler\Tests\Form\Extension\Invalid\Type; use Symftony\FormHandler\Form\Extension\NotSubmitted\Type\NotSubmittedTypeExtension; use Symfony\Component\OptionsResolver\OptionsResolver; class NotSubmittedTypeExtensionTest extends \PHPUnit_Framework_TestCase { /** * @var OptionsReso...
mit
ckcollab/chin-up
project/apps/chinup/migrations/0007_auto__add_field_metric_boolean.py
1887
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Metric.boolean' db.add_column(u'chinup_metric', 'boolean'...
mit
shahabuddinp91/site
application/views/dashboard/settings/addLogo.php
2029
<section class="logosection"> <div class="col-md-offset-1 col-md-8 col-md-offset-1"> <div class="logo"> <div class="panel-info modal-content"> <div class="panel-heading text-center">Change Your Settings</div> <p class="msg"><?php echo $this->session->flashdata('ms...
mit
actfong/mixcloud
lib/mixcloud/track.rb
356
module Mixcloud class Track < Mixcloud::Resource include PopularNewHot attr_accessor :public_url, :api_url, :name, :key, :slug, :artist_url # This class contains the following instance methods # #popular_url ...
mit
NikiStanchev/SoftUni
AngularFundamentals/AngularExamProject/recipe-blog/src/app/services/upload.service.ts
2232
import { Injectable } from '@angular/core'; import { AngularFireModule } from 'angularfire2'; import { GalleryRecipe } from '../models/galleryRecipe.model'; import { AngularFireDatabase, FirebaseListObservable, FirebaseObjectObservable } from 'angularfire2/database'; import { Upload } from '../models/upload.model'; imp...
mit
wilcommerce/Wilcommerce.Core
src/Wilcommerce.Core.Common/Properties/AssemblyInfo.cs
835
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: AssemblyConfigurat...
mit
greg1dime/project
src/Project/UserBundle/Tests/Controller/UserControllerTest.php
1947
<?php namespace Project\UserBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class UserControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static::createClient(); ...
mit
mbostler/blog5
test/models/user_test.rb
439
# == Schema Information # # Table name: users # # id :integer not null, primary key # email :string # name :string not null # password_digest :string not null # created_at :datetime not null # updated_at :datetime not null # ...
mit
Develman/DevelSuite
src/DevelSuite/http/dsResponse.php
7505
<?php /* * This file is part of the DevelSuite * Copyright (C) 2012 Georg Henkel <info@develman.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DevelSuite\http; use DevelSuite\config\dsConfig; /** * FIXME * * @pac...
mit
paysdoc/js-mutation-testing
src/mutationOperator/UnaryExpressionMO.js
1420
/** * This command removes unary expressions. * * e.g. -42 becomes 42, -true becomes true, !false becomes false, ~123 becomes 123. * * Created by Merlin Weemaes on 2/19/15. */ (function(module) { 'use strict'; var MutationUtils = require('../utils/MutationUtils'), MutationOperator = require('./Mu...
mit
fagbokforlaget/eportaljs
lib/client.js
3481
var request = require('urllib').request; // Eportal object function Eportal(params) { params = params || {}; this.host = params.auth_host; this.data_host = params.eportal_host || params.auth_host; this.api_key = params.api_key; this.api_secret = params.api_secret; this.grant_type = params.grant_type || "cl...
mit
cloudmodel/cloudmodel
app/models/cloud_model/mixins/smart_to_string.rb
152
module CloudModel module Mixins module SmartToString def to_s options={} "#{model_name.human} '#{name}'" end end end end
mit
Pouf/CodingCompetition
CiO/digits-multiplication.py
213
from functools import reduce def checkio(i): digits = str(i).replace('0','') result = reduce(lambda x, y: int(x)*int(y), digits) return int(result) golf=lambda n:(n%10or 1)*golf(n//10)if n else 1
mit
Octachore/INTECH-TP-NetworkApp
src/app/services/SocketService.ts
1023
import {Injectable, NgZone } from "@angular/core"; import { ServerConfiguration } from './ServerConfiguration'; import * as io from 'socket.io-client'; @Injectable() export class SocketService { private url: string; private socket: SocketIOClient.Socket; private connect: Promise<SocketIOClient.Socket>; ...
mit
munkychop/bullet
example/js/app/app.js
1474
// TODO : Visually display the current state of Bullet.events // TODO : Provide buttons to add/remove events // TODO : Provide buttons to map/unmap events to callbacks?? (function () { 'use strict'; var Bullet = window.Bullet; // Bullet.setStrictMode(true); Bullet.addEventName('foo'); Bullet.addEventName('bar...
mit
zenkovnick/pfr
lib/migration/doctrine/1384166288_version9.php
3835
<?php /** * This class has been auto-generated by the Doctrine ORM Framework */ class Version9 extends Doctrine_Migration_Base { public function up() { $this->dropForeignKey('account', 'account_chief_pilot_id_sf_guard_user_id'); $this->dropForeignKey('flight', 'flight_pic_id_sf_guard_user_id')...
mit
labai/opa
opa-pa/src/test/java/opalib/opapa/impl/IntTestBase.java
477
package opalib.opapa.impl; import opalib.opapa.OpaServer; import org.junit.Assume; import org.junit.Before; /** * @author Augustus * created on 2018.12.22 */ public class IntTestBase { protected OpaServer server; @Before public void init() { Assume.assumeTrue("Are integration tests enabled?", TestParam...
mit
lftzzzzfeng/myaolin
application/models/MemberModel.php
3671
<?php /** * Created by PhpStorm. * User: LiuFeng * Date: 2017/8/22 * Time: 9:26 */ require_once dirname(__FILE__) . '/../util/Constant.php'; class MemberModel extends CI_Model { const TABLE_MEMBER = 'member'; const SOURCE_TYPE_WEIBO = 1; const SOURCE_TYPE_WECHAT = 2; public function __construct(...
mit
andbet39/recipeMean
app/controllers/answers.server.controller.js
2499
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), Answer = mongoose.model('Answer'), _ = require('lodash'); var ObjectId = (require('mongoose').Types.ObjectId); /** * Create a Answer */ exports.create = function(req, res) ...
mit
xlevus/python-diana
diana/__init__.py
169
from .injector import Injector, NoProvider # noqa from .module import Module, provider, contextprovider, provides # noqa __version__ = "3.1.2" injector = Injector()
mit
websoftwares/ci-cd-webtask-example
function-with-context.test.js
729
'use strict' const tape = require('tape') const functionWithContext = require('./function-with-context') let contextMock = { data: { name: null } } const cbSpy = (t, expected) => (error, actual) => { t.equal(null, error, `Assert expected: null matches actual: ${error}`) t.deepEqual( expected, actual, `...
mit
Michayal/michayal.github.io
node_modules/mathjs/lib/entry/dependenciesAny/dependenciesMolarMassC12.generated.js
695
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.molarMassC12Dependencies = void 0; var _dependenciesBigNumberClass = require("./dependenciesBigNumberClass.generated"); var _dependenciesUnitClass = require("./dependenciesUnitClass.generated"); var _factoriesAny = require("../.....
mit
wix/wix-style-react
packages/wix-style-react/src/Modal/Modal.driver.d.ts
514
import { BaseDriver } from 'wix-ui-test-utils/driver-factory'; export interface ModalDriver<T> extends BaseDriver { element: () => T; isOpen: () => boolean; getChildBySelector: (selector: string) => HTMLElement | null; isScrollable: () => boolean; closeButtonExists: () => boolean; clickOnOverlay: () => boo...
mit
andra49/kakas-visualisasi
resources/views/dataset/upload.blade.php
1751
@extends('layouts.master') @section('content') <div class="container-fluid"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Unggah Dataset Baru</div> <div class="panel-body"> ...
mit
alxhub/angular
packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js
7197
/**************************************************************************************************** * PARTIAL FILE: encapsulation_default.js ****************************************************************************************************/ import { Component, NgModule } from '@angular/core'; import * as i0 from ...
mit
mycoin/lotus
noah-service/src/main/java/com/breakidea/noah/service/impl/UserServiceImpl.java
1996
package com.breakidea.noah.service.impl; import java.util.ArrayList; import java.util.List; import javax.annotation.Resource; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; impor...
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highstock/config/SeriesTreemapAnimation.scala
885
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highstock]] */ package com.highstock.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript...
mit
reinvent-the-wheel/LeetCode
PascalsTriangle2.java
2241
/* *key point: much like the Pascal's Triangle quesion, the only difference * is we don't need to store previous row; just return the last row is enough, * it's even easier than that question. * * However, since I didn't realize that my solution for Pascal's Triangle question * already meets the requirment of...
mit
soutarm/Discovr
Discovr.Agent/Properties/AssemblyInfo.cs
1441
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // 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. [ass...
mit
XyLnEn/projetTest1
Test_Integration_2/src/fr/nantes/cta/one/AirwayImpl.java
651
package fr.nantes.cta.one; import fr.nantes.cta.Airway; import fr.nantes.cta.VOR; public class AirwayImpl implements Airway{ private VOR _depart, _arriver; public AirwayImpl(VOR start, VOR stop){ _depart = start; _arriver = stop; } public double getDistance() { return _depart.distanceTo(_...
mit
reidab/citizenry
db/migrate/20110326230725_convert_group_projects_to_has_to_many.rb
304
class ConvertGroupProjectsToHasToMany < ActiveRecord::Migration def self.up add_column :groups_projects, :id, :primary_key rename_table :groups_projects, :group_projects end def self.down rename_table :group_projects, :groups_projects remove_column :groups_projects, :id end end
mit
IonicaBizau/arc-assembler
clients/ace-builds/src-noconflict/theme-vibrant_ink.js
2506
"use strict"; ace.define("ace/theme/vibrant_ink", ["require", "exports", "module", "ace/lib/dom"], function (require, exports, module) { exports.isDark = true; exports.cssClass = "ace-vibrant-ink"; exports.cssText = ".ace-vibrant-ink .ace_gutter {\ background: #1a1a1a;\ color: #BEBEBE\ }\ .ace-vibrant-ink .ace_...
mit
philgough/NIST-NetworkVis
parse_data/parse_data.py
4205
import os import ujson as json import re import argparse parser = argparse.ArgumentParser() parser.add_argument('folder') args = parser.parse_args() folder_path = args.folder # check what files there are to parse files = [] for file_name in sorted(os.listdir(folder_path)): if file_name[0] == 'C': l = len(file_...
mit
marvinmarnold/mart
lib/carts/reports.js
2610
Meteor.methods({ 'mart/report/carts': function(startDate, endDate) { check(startDate, Date) check(endDate, Date) if(!Mart.isAdmin()) { throw new Meteor.Error('invalid-permission', 'you dont have permission to do that') } var collection = Mart.Carts.find({$and: [ {submittedAt: {$gt: s...
mit
KitKare/KitKare
KitKare.App/kitkare/app/src/main/java/kitkare/kitkare/app/activities/AboutUsActivity.java
961
package kitkare.kitkare.app.activities; import android.app.Fragment; import android.app.FragmentTransaction; import android.content.Context; import android.os.Bundle; import android.app.Activity; import kitkare.kitkare.R; import kitkare.kitkare.app.activities.fragments.AboutUsFragment; public class AboutUsActivity e...
mit
azadkuh/gason--
tests/parser1/main.cpp
7072
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <stddef.h> #include "gason.hpp" /////////////////////////////////////////////////////////////////////////////// /* sample1.json is: { "array": [ 1, 2, 3 ], "boolean": true, "null": null, "number": 123, "object": { "a": "b", ...
mit
jostylr/literate-programming
tests/logs/lprc.js
2125
/*global module, require */ module.exports = function(Folder, args) { Folder.requires.merge(Folder.plugins.snippets, { jquery : '<script type="text/javascript"' + 'src="https://ajax.googleapis.com/ajax/libs/jquery/' + 'ARG0||1.9.0|/jquery.min.js"></script>', geogebra: "ht...
mit
robertlemke/flow-development-collection
TYPO3.Flow/Classes/TYPO3/Flow/I18n/Exception.php
591
<?php namespace TYPO3\Flow\I18n; /* * * This script belongs to the Flow framework. * * * * It is free software; you can redistribute it and/or mod...
mit
chipjacks/runlab
config/env/production.js
1943
'use strict'; module.exports = { db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/runlabs', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css...
mit
mafiya69/corefx
src/System.Reflection/ref/4.0/System.Reflection.Manual.cs
6604
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // This is only needed for COMAwareEventInfo to inherit from EventInfo. Next version when // Reflection is extensib...
mit
kpj/OsciPy
system.py
3392
""" Class which stores coupled collection of Kuramoto oscillators """ import numpy as np import pandas as pd from scipy.integrate import odeint import seaborn as sns import matplotlib.pylab as plt class System(object): """ Represent system of oscillators """ def __init__(self, A, B, omega, OMEGA): ...
mit
Jesus/dropbox_api_v2
spec/endpoints/files/create_folder_batch_spec.rb
1678
describe DropboxApi::Client, "#create_folder_batch" do before :each do @client = DropboxApi::Client.new end it "returns the created folders synchronously", :cassette => "create_folder_batch/synchronous_result_success" do result = @client.create_folder_batch ["/Create Batch", "/Create Batch 1"] expec...
mit
nilsschmidt1337/ldparteditor
src/org/nschmidt/ldparteditor/helper/ShellHelper.java
2920
/* MIT - License Copyright (c) 2012 - this year, Nils Schmidt 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, modif...
mit
Proxiweb/react-boilerplate
app/components/Toggle/index.js
778
/** * * LocaleToggle * */ import React from 'react'; import PropTypes from 'prop-types'; // import { FormattedMessage } from 'react-intl'; import styles from './styles.css'; import ToggleOption from '../ToggleOption'; function Toggle(props) { // eslint-disable-line react/prefer-stateless-function let content = <...
mit
RostovTeam/hackaton
app/tests/DbTestCase.php
700
<?php /** * DbTestCase * Makes a better standard class * * @author Polosin Maxim <polosinms@mail.ru> * @copyright Geoads, 2012 * @package Geoads */ class DbTestCase extends CDbTestCase { public function truncateTable($tableName) { $db = $this->get...
mit
neilhanekom/digrest
modules/orders/tests/server/order.server.routes.tests.js
6679
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Order = mongoose.model('Order'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credentials, user, ord...
mit
wolfoux/soleil
src/soleil/SiteBundle/DependencyInjection/soleilSiteExtension.php
879
<?php namespace soleil\SiteBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manage...
mit
phantom-root/fhq
www/api/events/get.php
1352
<?php /* * API_NAME: Get event * API_DESCRIPTION: Method for get event info * API_ACCESS: all * API_INPUT: id - integer, id of event */ $curdir_events_get = dirname(__FILE__); include_once ($curdir_events_get."/../api.lib/api.base.php"); include_once ($curdir_events_get."/../api.lib/api.security.php"); include_on...
mit
kunalghosh/T-61.6050-Special-Course-in-Deep-Learning
exercises/utils/logistic_reg.py
1644
from __future__ import division import theano import theano.tensor as T import numpy as np # ------- DEBUG CODE -------- # def softmax(mat): # exp_vals = np.exp(mat) # sum_exp = np.sum(exp_vals,axis=1) # return np.true_divide(exp_vals,sum_exp) # # def neq(a,b): # return np.mean((a == b).astype(int)) ...
mit
mass/git-friend
client/app.js
2470
angular.module('git-friend', []) .controller('GitFriendController', function($scope, $http, $q) { $scope.user = {}; $scope.friends = []; $scope.isAuth = false; $scope.remaining = null; $http.get('/isAuth') .success(function(data) { $scope.isAuth = data.isAuth; $scope.remain...
mit
cedricziel/idea-php-typo3-plugin
typo3-cms/testData/com/cedricziel/idea/typo3/tca/codeInspection/v10/invalid_internal_type_v9.php
735
<?php defined('TYPO3_MODE') or die(); define('TYPO3_branch', '9.5'); $ll = 'LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:'; return [ 'ctrl' => [ ], 'interface' => [ ], 'columns' => [ 'description' => [ 'exclude' => true, 'label' => $ll . 'tx_news_domain...
mit
DavidTimms/texo
test/texo-bench.js
2132
var list = require("../texo.js"); function range (n) { var numbers = []; for (var i = 0; i < n; i++) { numbers.push(i); } return numbers; } function consRange (n) { var numbers = list(); for (var i = 0; i < n; i++) { numbers = numbers.append(i); } return numbers; } function sumArray (items) { var total ...
mit
ahwizzang/bootstrap-select
dist/js/i18n/defaults-ua_UA.min.js
615
/*! * Bootstrap-select v1.6.2 (http://silviomoreto.github.io/bootstrap-select/) * * Copyright 2013-2014 bootstrap-select * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE) */ !function(a){a.fn.selectpicker.defaults={noneSelectedText:"Нічого не вибрано",noneResultsText:"Збіг...
mit
TeamSPoon/logicmoo_workspace
packs_web/swish/web/node_modules/bootstrap/js/src/popover.js
4213
/** * -------------------------------------------------------------------------- * Bootstrap (v5.0.2): popover.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ import { defineJQueryPlugin } from './util/in...
mit
loremipsumdolor/CastFast
src/com/mpatric/mp3agic/ID3v2CommentFrameData.java
4304
package com.mpatric.mp3agic; import java.io.UnsupportedEncodingException; public class ID3v2CommentFrameData extends AbstractID3v2FrameData { private static final String DEFAULT_LANGUAGE = "eng"; private String language; private EncodedText description; private EncodedText comment; public ID3v2Co...
mit
getswagcoin/swagcoin
src/qt/optionsdialog.cpp
9038
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> OptionsDialog::OptionsDialog(QWidget *parent) : QDialog(parent), ...
mit
sauli6692/ibc-server
pmm/apps.py
81
from django.apps import AppConfig class PmmConfig(AppConfig): name = 'pmm'
mit
VVoev/Telerik-Academy
15.Data-Structures-and-Algorithms/BIG FAT CHEAT SHEET/Cheatsheet/Cheatsheet/02.Deque/Program.cs
3504
using System; using System.Collections; using System.Collections.Generic; namespace Deque { public class Deque<T> : IEnumerable<T> { private const int MIN_CAPACITY = 4; private T[] buffer; private int startIndex; private int size; private int endIndex; public ...
mit
ldipotetjob/onlinetor
src/org/itadaki/bobbin/peer/protocol/PeerProtocolConstants.java
5622
/* * Copyright (c) 2010 Matthew J. Francis and Contributors of the Bobbin Project * This file is distributed under the MIT licence. See the LICENCE file for further information. */ package org.itadaki.bobbin.peer.protocol; /** * Constants used in the peer protocol */ public class PeerProtocolConstants { /** ...
mit
wpscanteam/CMSScanner
spec/lib/finders/finder/fingerprinter_spec.rb
1733
# frozen_string_literal: true describe CMSScanner::Finders::Finder::Fingerprinter do # Dummy class to test the module class DummyFingerprinterFinder < CMSScanner::Finders::Finder include CMSScanner::Finders::Finder::Fingerprinter end subject(:finder) { DummyFingerprinterFinder.new(target) } let(:target)...
mit
rmachielse/ember-data-paperclip
tests/dummy/app/routes/application.js
153
import Ember from 'ember'; const { Route } = Ember; export default Route.extend({ model() { return this.get('store').find('product', 1); } });
mit
serebro/assets-manager
src/Assets/UndefinedEnvException.php
85
<?php namespace Serebro\Assets; class UndefinedEnvException extends \Exception { }
mit
MarcusTzaen/CNodeUwp
src/CNodeUwp.Models/Topic/Version1/TopicDetailRequest.cs
693
using Newtonsoft.Json; namespace CNodeUwp.Models.Topic.Version1 { public class TopicDetailRequest { public string TopicId { get; set; } /// <summary> /// 当为 false 时,不渲染。默认为 true,渲染出现的所有 markdown 格式文本。 /// </summary> [JsonProperty("mdrender")] public bool NeedRe...
mit
vinhqdang/my_mooc
MOOC-work/coursera/FINISHED/Statistical Mechanics Algorithms and Computations/Week 2/HW2/event_disks_box.py
2813
import math, pylab def wall_time(pos_a, vel_a, sigma): if vel_a > 0.0: del_t = (1.0 - sigma - pos_a) / vel_a elif vel_a < 0.0: del_t = (pos_a - sigma) / abs(vel_a) else: del_t = float('inf') return del_t def pair_time(pos_a, vel_a, pos_b, vel_b, sigma): del_x = [pos_b[0] - ...
mit
creativcoder/AlgorithmicProblems
Python/pascal.py
402
import pprint def gen_pascal(nrows): # the base case aggregator = [[0,1,0]] for i in xrange(nrows): idx = len(aggregator) - 1 aggregator.append(gen_row(aggregator[idx])) return aggregator def gen_row(lis): new_vec = [0] for i in xrange(1, len(lis)): new_vec.append(lis[i] + lis[i-1]) new_vec.append(0) re...
mit
jiboncoco/webzuiplo
application/views/admin/footer.php
8263
<div id="footer-wrapper"> <div id="footer"> <div id="footer-inner"> <div class="footer-top"> <div class="container"> <div class="row"> <div class="widget col-sm-8"> <h2>Disediakan Oleh ZUIPLO</h2> <div class="row"> <div class="feature col-xs-12 col-sm-6"...
mit
ChristianRiedl/RoonApi
RoonApiLib/RoonApiBrowse.cs
6036
using Newtonsoft.Json; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; /* Browse Hierarchie Library Artists artist1 Play Artist Play Now Start Radio album1 Play Album Play Now Start Radio Add Next Add to Queue track1 Play Now S...
mit
TEDxBucharest/Tedster
app/Http/Controllers/IndexController.php
3713
<?php namespace App\Http\Controllers; use Facebook\Facebook; use Imagine\Gd\Imagine; use Imagine\Image\ImageInterface; use Imagine\Image\Point; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class IndexController extends Controller { protected $fb; protected $storagePath; protected ...
mit
nourWag/piweb
app/cache/prod/appProdUrlGenerator.php
64756
<?php use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Psr\Log\LoggerInterface; /** * appProdUrlGenerator * * This class has been auto-generated * by the Symfony Routing Component. */ class appProdUrlGenerator extends Symfony\Component\Routing\Gene...
mit
kutyel/my-anime
e2e/pages/ShareAnime.js
442
var ShareAnime = function() { this.load = function() { return browser.get("/#"); }; this.buttons = function() { // @Todo - remove sleep() when https://github.com/angular/protractor/issues/2154 browser.sleep(500); return element.all(by.css('[ng-click="cp.submitContact(item)"]')); }; this.fo...
mit
mchome/PixivDaily
pixivdaily/pixivdaily.py
4640
#!/usr/bin/env python3 # -*- coding: utf-8 -*- '''pixiv-daily, the tool which helps you to download the illust from pixiv. Usage: pixiv-daily login <pixiv_id> <password> pixiv-daily daily <date> [-o | --output <output_dir>] pixiv-daily areadaily <areanum> [-o | --output <output_dir>] pixiv-daily stated...
mit
stansL/SpringSecHibernateBackEndSecurityFinished
src/ke/co/greid/entities/Address.java
3100
package ke.co.greid.entities; // Generated Apr 1, 2015 12:52:51 PM by Hibernate Tools 3.4.0.CR1 import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; import javax.persisten...
mit
manishbisht/Competitive-Programming
Daily Coding Problem/00002/solution.py
199
l=list(map(int,input("Enter The Numbers").split())) h=[] for o in l: s=1 for i in range(0,len(l)): if o==l[i]: continue else: s=s*l[i] h.append(s)
mit