repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
XZiar/ZhiHuExt | ZhiHuExt/3rd/js/echarts-wordcloud.js | 424082 | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("echarts"));
else if(typeof define === 'function' && define.amd)
define(["echarts"], factory);
else if(typeof exports === 'object')
exports["echarts-wordclo... | mit |
elearninglondon/ematrix_2015 | system/expressionengine/third_party/assets/views/mcp/components/gc_buckets.php | 408 | <?php
echo '<select name="gc_bucket">';
foreach ($bucket_list as $bucket_name => $bucket_data)
{
$selected = '';
if ( $bucket_name == $source_settings->bucket)
{
$selected = ' selected="selected"';
}
echo '<option value="'.$bucket_name.'" data-location="'.$bucket_data->location.'" data-url-prefix="'.$bucket_da... | mit |
anhstudios/swganh | data/scripts/templates/object/static/structure/corellia/shared_corl_imprv_column_s04.py | 460 | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Static()
result.template = "object/static/structure/corellia/shared_corl_imprv_column_s04.iff"
result.attribute_t... | mit |
Skierz/Java-Music-Player | org/skierz/net/Song.java | 9838 | package org.skierz.net;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import javax.... | mit |
bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/MXF/DescriptiveMetadataSets.php | 839 | <?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\MXF;
use JMS\Serializer\Annotation\ExclusionPolicy;
u... | mit |
wmzsoft/JXADF | Source/JxADF/JxPlatform/src/main/webapp/javascript/jxkj/jx.i18n.js | 1039 | /**
* @desc : jx 国际化处理 js处理
* @author : cxm
* @date : 2014/8/19
*/
function loadLanguage(lang) {
var browserLang;
if (lang && lang.length > 0) {
browserLang = lang.slice(0,2);
} else {
browserLang = $.i18n.browserLang();
}
$.i18n.properties({
name: 'lang',// 资源文件名称
... | mit |
ravinderpayal/material2 | src/lib/list/list.ts | 4370 | import {
Component,
ViewEncapsulation,
ContentChildren,
ContentChild,
QueryList,
Directive,
ElementRef,
Input,
Optional,
Renderer2,
AfterContentInit,
} from '@angular/core';
import {MdLine, MdLineSetter, coerceBooleanProperty} from '../core';
@Directive({
selector: 'md-divider, mat-divider'
})
... | mit |
c57fr/c57 | plugins/rainlab/pages/lang/lv/lang.php | 5947 | <?php
return [
'plugin' => [
'name' => 'Lapas',
'description' => 'Lapu un izvēļņu funkcijas.',
],
'page' => [
'menu_label' => 'Lapas',
'delete_confirmation' => 'Vai tu tiešām vēlies dzēst izvēlētās lapas? Šī operācija izdzēsīs arī apakšlapas (ja tādas ir).',
'no_recor... | mit |
damianh/Cedar.EventStore | tests/SqlStreamStore.HAL.Tests/Link.cs | 1397 | namespace SqlStreamStore.HAL.Tests
{
using System;
internal class Link : IEquatable<Link>
{
public string Rel { get; set; }
public string Href { get; set; }
public string Title { get; set; }
public bool Equals(Link other)
{
if(ReferenceEquals(null, other... | mit |
anders-akero/Prisjakt-woocommerce | admin/prisjaktAdmin.php | 946 | <?php
namespace rendom\prisjakt\admin;
class Prisjakt {
private static $instance = null;
public function __construct(){
$this->registerHooks();
$this->registerActions();
}
public static function getInstance(){
if( self::$instance == null ) self::$instance = new self;
r... | mit |
brianhonohan/sketchbook | p5js/forest-01/classes/cell_viewer.js | 143 | class CellViewer {
renderCell(tmpCell, tmpX, tmpY, cellWidth, cellHeight){
fill(255);
rect(tmpX, tmpY, cellWidth, cellHeight);
}
}
| mit |
myeveryheart/infinitus-hot-code-push | examples/android/hcp/src/main/java/com/infinitus/hcp/storage/FileStorageAbs.java | 1615 | package com.infinitus.hcp.storage;
import android.text.TextUtils;
import com.infinitus.hcp.utils.FilesUtility;
import java.io.IOException;
/**
* Created by M on 16/9/9.
* <p/>
* 从文件夹读取和保存配置的基类
*
* @see IObjectFileStorage
*/
abstract class FileStorageAbs<T> implements IObjectFileStorage<T> {
/**
* JS... | mit |
atompulse/php-ml-56 | tests/Phpml/NeuralNetwork/LayerTest.php | 1437 | <?php
declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork;
use Phpml\NeuralNetwork\Node\Bias;
use Phpml\NeuralNetwork\Layer;
use Phpml\NeuralNetwork\Node\Neuron;
use PHPUnit\Framework\TestCase;
class LayerTest extends TestCase
{
public function testLayerInitialization()
{
$layer = new Layer... | mit |
LXiangJian/XJFitUtil | XJFitUtilDemo/FitUtil/fit_connectivity_mesg_listener.hpp | 1356 | ////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Dynastream Innovations Inc.
// The software is being provided on an "as-is" basis and as an accommodat... | mit |
ungdev/integration-UTT | database/migrations/2017_07_07_154226_isNewComerDefaultValue.php | 625 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class IsNewComerDefaultValue extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('students', f... | mit |
DarthCoder117/Lots-of-Lines | docs/html/search/all_a.js | 690 | var searchData=
[
['mapindices',['mapIndices',['../class_lots_of_lines_1_1_i_vertex_buffer_object.html#a8820943ddcb998bccb03a9769611218b',1,'LotsOfLines::IVertexBufferObject::mapIndices()'],['../class_lots_of_lines_1_1_open_g_l_vertex_buffer_object.html#a59c71c761341ca1732b5816bdfe6d239',1,'LotsOfLines::OpenGLVertexB... | mit |
JohannesHoppe/Workshop_AngularJS | _START_/Scripts/angular-partition.js | 2950 | // Extracted from Angular Components
// https://github.com/m59peacemaker/angular-pmkr-components
define(['angular'], function (angular) {
// Readme:
// https://github.com/m59peacemaker/angular-pmkr-components/tree/master/src/services/memoize
angular.module('memoize', [])
.factory('memoize', ... | mit |
sant0ro/Yupi | Yupi.Model/Domain/Users/FriendRequestOverride.cs | 1877 | // ---------------------------------------------------------------------------------
// <copyright file="FriendRequestOverride.cs" company="https://github.com/sant0ro/Yupi">
// Copyright (c) 2016 Claudio Santoro, TheDoctor
// </copyright>
// <license>
// Permission is hereby granted, free of charge, to any person ... | mit |
nikatruskawka/BEMA | app/scripts/services/unitList.js | 2541 | /**
* Created by krzysztofderek on 28.07.14.
*/
define(['angular'], function (angular) {
'use strict';
angular.module('UnitListService', [])
.service('UnitListService', [ function () {
var numberOfUnits = 0,
listOfUnits = [
{id: 0, name: "Unit 1: Fa... | mit |
NMandapaty/Rocket.Chat | packages/rocketchat-lib/server/functions/createRoom.js | 2729 | /* globals RocketChat */
RocketChat.createRoom = function(type, name, owner, members, readOnly, extraData={}) {
name = s.trim(name);
owner = s.trim(owner);
members = [].concat(members);
if (!name) {
throw new Meteor.Error('error-invalid-name', 'Invalid name', { function: 'RocketChat.createRoom' });
}
owner = ... | mit |
jonathan-w/twitch-plinko | bower_components/Matter/examples/circleStack.js | 2200 | var Example = Example || {};
Example.circleStack = function() {
var Engine = Matter.Engine,
Render = Matter.Render,
Runner = Matter.Runner,
Composites = Matter.Composites,
MouseConstraint = Matter.MouseConstraint,
Mouse = Matter.Mouse,
World = Matter.World,
B... | mit |
Azure/azure-documentdb-datamigrationtool | DocumentDb/Microsoft.DataTransfer.DocumentDb/Transformation/Dates/ConvertedDateTimeDataItemBase.cs | 704 | using Microsoft.DataTransfer.Extensibility;
using System;
namespace Microsoft.DataTransfer.DocumentDb.Transformation.Dates
{
abstract class ConvertedDateTimeDataItemBase : TransformedDataItemBase
{
public ConvertedDateTimeDataItemBase(IDataItem dataItem)
: base(dataItem) { }
prote... | mit |
MaiyaT/cocosStudy | Eliminate/builds/jsb-default/frameworks/cocos2d-x/extensions/anysdk/js-bindings/jsb_anysdk_protocols_auto.cpp | 107697 | #include "jsb_anysdk_protocols_auto.hpp"
#include "scripting/js-bindings/manual/cocos2d_specifics.hpp"
#include "jsb_anysdk_basic_conversions.h"
using namespace anysdk;
#include "PluginManager.h"
#include "ProtocolAnalytics.h"
#include "ProtocolIAP.h"
#include "ProtocolAds.h"
#include "ProtocolShare.h"
#include "Protoc... | mit |
Kiandr/CrackingCodingInterview | java/Ch 16. Moderate/Q16_06_Smallest_Difference/QuestionB.java | 879 | package Q16_06_Smallest_Difference;
import java.util.Arrays;
public class QuestionB {
public static int findSmallestDifference(int[] arrayA, int[] arrayB) {
if (arrayA.length == 0 || arrayB.length == 0) return -1;
Arrays.sort(arrayA);
Arrays.sort(arrayB);
int indexA = 0;
int indexB = 0;
int smallestDiffer... | mit |
vCaesar/gitea | routers/api/v1/notify/threads.go | 2710 | // Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package notify
import (
"fmt"
"net/http"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
// GetThread get notification by ID
func... | mit |
kmtabish/googleAppsSheetsPlugin | control/content/app.services.js | 2259 | 'use strict';
(function (angular, buildfire) {
angular.module('googleAppsSheetsPluginContent')
.provider('Buildfire', [function () {
var Buildfire = this;
Buildfire.$get = function () {
return buildfire
};
return Buildfire;
}])
.factory("DataStore", ['Buildfire', '$q', 'ST... | mit |
asanoturna/economizzer | messages/config.php | 3472 | <?php
return [
// string, required, root directory of all source files
'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..',
// array, required, list of language codes that the extracted messages
// should be translated to. For example, ['zh-CN', 'de'].
'languages' => ['es', 'fr', 'hu', 'ko', 'pt',... | mit |
ivelin1936/Studing-SoftUni- | Databases Frameworks - Hibernate & Spring Data - март 2018/Databases Frameworks Exam - Oct 2017 - Exam prep 2/src/main/java/app/exam/io/interfaces/FileIO.java | 209 | package app.exam.io.interfaces;
import java.io.IOException;
public interface FileIO {
String read(String file) throws IOException;
void write(String fileContent, String file) throws IOException;
}
| mit |
Lambda-3/indra | indra-essentials/src/main/java/org/lambda3/indra/filter/Filter.java | 1543 | package org.lambda3.indra.filter;
/*-
* ==========================License-Start=============================
* Indra Essentials Module
* --------------------------------------------------------------------
* Copyright (C) 2016 - 2017 Lambda^3
* --------------------------------------------------------------------
... | mit |
clement911/ShopifySharp | ShopifySharp/Services/ShopifyService.cs | 23024 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using ShopifySharp.Infrastructure;
using Newtonsoft.Json;
using System.IO;
using System.Threading;
using ShopifySharp.Lists;
using ShopifySharp.Filters;
using Microsoft.Ex... | mit |
aayusharora/loklak_webclient | iframely/plugins/domains/vk.com/vk.video.js | 1331 | module.exports = {
re: [
/^https?:\/\/vk\.com\/video/i,
/^https?:\/\/m\.vk\.com\/video/i
],
mixins: [
"og-image",
"favicon",
"canonical",
"og-description",
"og-video-duration",
"og-site",
"og-title"
],
getLink: function(url, ... | mit |
jskDr/jamespy_py3 | jff.py | 775 | """
Finger print related codes are colected.
"""
def find_cluster( fa_list, thr = 0.5):
"""
find similar pattern with
the first element: fa0
"""
fa0 = fa_list[0]
fa0_group = [fa0]
fa_other = fa_list[1:]
for fa_o in fa_list[1:]:
tm_d = jchem.calc_tm_dist_int( fa0, fa_o)
i... | mit |
suhongrui/gitlab | vendor/bundle/ruby/2.1.0/gems/fog-1.21.0/lib/fog/rackspace/models/storage/directory.rb | 8094 | require 'fog/core/model'
require 'fog/rackspace/models/storage/files'
require 'fog/rackspace/models/storage/metadata'
module Fog
module Storage
class Rackspace
class Directory < Fog::Model
# @!attribute [r] key
# @return [String] The name of the directory
identity :key, :aliases ... | mit |
swimlane/angular2-data-table | src/app/summary/summary-row-inline-html.component.ts | 2275 | import { Component } from '@angular/core';
import { ColumnMode } from 'projects/swimlane/ngx-datatable/src/public-api';
@Component({
selector: 'summary-row-inline-html',
template: `
<div>
<h3>
Inline HTML template
<small>
<a
href="https://github.com/swimlane/ngx-data... | mit |
daijiale/DaiJiale-ProfessionalNotes | DaiJiale-C-Demo/C Studio/C语言实例解析精粹/165/165.C | 1545 | /* ÔÚBC31ϱàÒë */
/* compile under Borland C++ 3.1 */
#include <stdio.h>
#include <bios.h>
void main(void)
{
struct Equip
{
unsigned floppy_available:1;
unsigned coprocessor_available:1;
unsigned system_memory:2;
unsigned video_memory:2;
unsigned floppy_disk_count:2;
unsigned u... | mit |
ipmobiletech/rubytogether.org | app/controllers/thanks_controller.rb | 92 | class ThanksController < ApplicationController
after_action :set_cache_control_headers
end | mit |
AimeeKnight/Blogament | lib/generators/templates/blogament.rb | 84 | Rails.application.config.before_initialize do
Blogament.author_class = "User"
end
| mit |
devlead/documentation | src/Sparrow.Testing/Asserts/BooleanAsserts.cs | 1870 | using Xunit.Sdk;
namespace Xunit
{
public partial class Assert
{
/// <summary>
/// Verifies that the condition is false.
/// </summary>
/// <param name="condition">The condition to be tested</param>
/// <exception cref="FalseException">Thrown if the condition is not fal... | mit |
398897505/jinghuimeng | code/app/base/hook/AppHook.php | 575 | <?php
namespace app\base\hook;
class AppHook{
public $startTime = 0;
public function appBegin(){
$this->startTime = microtime(true);
}
public function appEnd(){
//echo microtime(true) - $this->startTime ;
}
public function appError($e){
if( 404 == $e->getCode() ){
$action = 'error404';
}else{
$ac... | mit |
cmalaboeuf/mean-docker-compose | server/routes/api.js | 775 | var express = require('express');
var router = express.Router();
var posts = require('./posts');
var tags = require('./tags');
var users = require('./users');
/**
* API Posts
*/
router.get('/posts',posts.getAll);
router.get('/posts/:url',posts.getByUrl);
router.post('/posts', posts.newPost);
router.put('/posts/:id',... | mit |
deadlylaid/book_connect | wef/watson/backends.py | 18398 | """Search backends used by django-watson."""
from __future__ import unicode_literals
import abc
import re
from django.contrib.contenttypes.models import ContentType
from django.db import connection, transaction
from django.db.models import Q
from django.utils.encoding import force_text
from django.utils import six
... | mit |
theguii/osu | osu.Game/Beatmaps/Beatmap.cs | 2790 | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using System.Linq;
using OpenTK.Graphics;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
using osu.Game.Modes.Objects... | mit |
devmaster-terian/hwt-backend | gestion/recurso/framework/ext-5.1.3/packages/sencha-core/src/util/Format.js | 36454 | /**
* @class Ext.util.Format
*
* This class is a centralized place for formatting functions. It includes
* functions to format various different types of data, such as text, dates and numeric values.
*
* ## Localization
*
* This class contains several options for localization. These can be set once the libr... | mit |
Rouksana/ecvd-php | finaltest/rouksana/chat/functions.php | 3321 | <?php
namespace ECVChat {
define('ECVChat\UPLOAD_DIR', __DIR__.'/uploads/');
function redirect($route){
header('Location: ' . $route);
exit();
}
function sanitizeString($string){
$string = filter_var($string, FILTER_SANITIZE_STRING);
$string = trim($string);
return $string;
}
function checkUpload($... | mit |
cosnics/cosnics | src/Chamilo/Libraries/Protocol/Microsoft/Graph/Test/Unit/Storage/Repository/GraphRepositoryFactoryTest.php | 7774 | <?php
namespace Chamilo\Libraries\Protocol\Microsoft\Graph\Test\Unit\Storage\Repository;
use Chamilo\Configuration\Service\ConfigurationConsulter;
use Chamilo\Libraries\Architecture\Test\TestCases\ChamiloTestCase;
use Chamilo\Libraries\Platform\ChamiloRequest;
use Chamilo\Libraries\Protocol\Microsoft\Graph\Storage\Re... | mit |
Coryvmcs1/Influxcoin | src/qt/bitcoin.cpp | 9741 | /*
* W.J. van der Laan 2011-2012
*/
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "init.h"
#include "ui_interface.h"
#include "qtipcserver.h"
#include "intro.h"
#include <QApplication>
#include <QMessageBox... | mit |
darrelljefferson/themcset.com | bin/test/d/j/d.php | 37 | <?php
namespace test\d\j;
class d { } | mit |
asposewords/Aspose_Words_Cloud | Examples/Python/Examples/ExecuteMailMergeWithoutRegionsUsingThirdParty.py | 1915 | import asposewordscloud
from asposewordscloud.WordsApi import WordsApi
from asposewordscloud.WordsApi import ApiException
from asposewordscloud.models import ProtectionRequest
import asposestoragecloud
from asposestoragecloud.StorageApi import StorageApi
from asposestoragecloud.StorageApi import ResponseMessage
apiK... | mit |
mmohan01/ReFactory | data/jhotdraw/jhotdraw-6.0b1/org/jhotdraw/contrib/GraphicalCompositeFigure.java | 11496 | /*
* @(#)GraphicalCompositeFigure.java
*
* Project: JHotdraw - a GUI framework for technical drawings
* http://www.jhotdraw.org
* http://jhotdraw.sourceforge.net
* Copyright: © by the original author(s) and all contributors
* License: Lesser GNU Public License (LGPL)
* http://www.opensource.org/licen... | mit |
GooTechnologies/goojs | test/e2etesting/filterList.js | 1220 | // jshint node:true
var filterList = [
'example',
'carousel',
'Destroy',
'GooToImage',
'RestoreContext',
'GroundBound',
'Gamepad',
'Script',
'script',
'stress',
'goofy',
'TimelineComponent',
'HTMLComponent', // displays nothing on the canvas, it's html!
'Dom3dComponent', // displays nothing on the canvas... | mit |
icsharpcode/RefactoringEssentials | RefactoringEssentials/CSharp/Diagnostics/Synced/PracticesAndImprovements/UseIsOperatorCodeFixProvider.cs | 1419 | using Microsoft.CodeAnalysis;
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CodeFixes;
using System.Threading.Tasks;
using System.Linq;
namespace RefactoringEssentials.CSharp.Diagnostics
{
[ExportCodeFixProvider(LanguageNames.CSharp), System.Composition.Shared]
public class UseIsOperatorCod... | mit |
Westbrook-PreitoC/KaelenCameron | php/controller/create-user.php | 1108 | <?php
require_once(__DIR__ . "/../model/config.php");
$email = filter_input(INPUT_POST, "email", FILTER_SANITIZE_EMAIL);
$username = filter_input(INPUT_POST, "username", FILTER_SANITIZE_STRING);
$password = filter_input(INPUT_POST, "password", FILTER_SANITIZE_STRING);
$salt = "$5$" . "round=5000$... | mit |
wearelung/portoalegrecc | vendor/cache/ruby/1.8/gems/rbx-require-relative-0.0.5/test/bar.rb | 64 | # Just something else to try require_relative on.
class Bar
end
| mit |
Libaier/Courses | 算法/剑指offer/12.cpp | 616 | class Solution {
public:
void reOrderArray(vector<int> &array) {
if(array.empty())
{
return ;
}
vector<int> odd,even;
for (int i = 0; i < array.size(); ++i)
{
if (array[i]&0x1==1)
{
odd.push_back(array[i]);
... | mit |
bradwoo8621/nest | arcteryx-meta-beans/src/main/java/com/github/nest/arcteryx/meta/beans/annotation/scan/BeanConstraintReorganizerGenerator.java | 2111 | /**
*
*/
package com.github.nest.arcteryx.meta.beans.annotation.scan;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import com.github.nest.arcteryx.meta.annotation.AnnotationDefineException;
import com.github.nest.arcteryx.meta.beans... | mit |
JeffProgrammer/Torque3D | Engine/source/T3D/gameBase/gameConnectionEvents.cpp | 13654 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | mit |
Harmeko/badass_shop | vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php | 4216 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper;
us... | mit |
Thealexbarney/LibDspAdpcm | src/VGAudio/Codecs/CriHca/CriHcaEncryption.cs | 2712 | using System;
using VGAudio.Utilities;
namespace VGAudio.Codecs.CriHca
{
public static partial class CriHcaEncryption
{
private const int FramesToTest = 10;
private static Crc16 Crc { get; } = new Crc16(0x8005);
public static void Crypt(HcaInfo hca, byte[][] audio, CriHcaKey key, boo... | mit |
ebirito/ps-react-ebirito | scripts/setupTests.js | 122 | import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-15';
configure({ adapter: new Adapter() }); | mit |
bitcoin-hivemind/hivemind | src/base58.cpp | 9614 | // Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2015 The Hivemind Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "hash.h"
#include "uint256.h"
#include <assert.h... | mit |
shadow000902/blog_source | node_modules/npm/lib/token.js | 7060 | 'use strict'
const profile = require('npm-profile')
const npm = require('./npm.js')
const output = require('./utils/output.js')
const Table = require('cli-table2')
const Bluebird = require('bluebird')
const isCidrV4 = require('is-cidr').v4
const isCidrV6 = require('is-cidr').v6
const readUserInfo = require('./utils/rea... | mit |
Azure/azure-sdk-for-java | sdk/metricsadvisor/azure-ai-metricsadvisor/src/main/java/com/azure/ai/metricsadvisor/implementation/models/CreateHookHeaders.java | 1000 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.ai.metricsadvisor.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The... | mit |
ntamvl/vemaybaygiareonline | wp-content/themes/traveler/single.php | 1042 | <?php
/**
* @package WordPress
* @subpackage Traveler
* @since 1.0
*
* Single blog
*
* Created by ShineTheme
*
*/
get_header();
?>
<div class="container">
<h1 class="page-title"><?php the_title()?></h1>
<div class="row">
<?php $sidebar_pos=apply_filters('st_blog_sidebar','right'... | mit |
AnonymousSheep/BlueSheep | BlueSheep/Common/Protocol/messages/web/krosmaster/KrosmasterTransferRequestMessage.cs | 963 |
// Generated on 12/11/2014 19:02:01
using System;
using System.Collections.Generic;
using System.Linq;
using BlueSheep.Common.Protocol.Types;
using BlueSheep.Common.IO;
using BlueSheep.Engine.Types;
namespace BlueSheep.Common.Protocol.Messages
{
public class KrosmasterTransferRequestMessage : Message
... | mit |
andriyko/sublime-robot-framework-assistant | test/unit/test_queue.py | 5977 | import unittest
from collections import OrderedDict
from queue.queue import ParsingQueue
class TestLibraryParsingQueue(unittest.TestCase):
"""Unit test for test data parsing queue"""
def setUp(self):
self.queue = ParsingQueue()
self.expected = OrderedDict()
self.not_scanned... | mit |
0x90sled/droidtowers | main/source/org/apach3/http/params/HttpProtocolParams.java | 9864 | /*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this ... | mit |
dyep49/Angular-Umpire-Auditor | config/application.rb | 1167 | require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to... | mit |
fabrickit/fabkit | core/fabkit/databag/__init__.py | 44 | # coding: utf-8
from base import * # noqa
| mit |
CodeForCharlotte/CMPD-Holiday-Gift | frontend/applications/admin/src/components/Card/Card.tsx | 1093 | import * as React from 'react';
export class Card extends React.Component<any, any> {
render() {
return (
<div className={'card' + (this.props.plain ? ' card-plain' : '')}>
<div className={'header' + (this.props.hCenter ? ' text-center' : '')}>
<h4 className="title">{this.props.title}</h4... | mit |
primefaces/primeng | src/app/components/dataview/public_api.ts | 27 | export * from './dataview'; | mit |
siggame/Joueur.py | games/anarchy/player.py | 4833 | # Player: A player in this game. Every AI controls one player.
# DO NOT MODIFY THIS FILE
# Never try to directly create an instance of this class, or modify its member variables.
# Instead, you should only be reading its variables and calling its functions.
from typing import List
from games.anarchy.game_object impor... | mit |
shmao/corefx | src/System.Private.Xml/src/Workarounds/CodeDom/MemberAttributes.cs | 2354 | // 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.
namespace System.CodeDom
{
using System.Diagnostics;
using System.Runtime.InteropServices;
/// <devdoc>... | mit |
juanpinzon/citydogshare | app/models/dog_mix_linker.rb | 79 | class DogMixLinker < ActiveRecord::Base
belongs_to :dog
belongs_to :mix
end | mit |
m-Peter/nested-form-examples | survey-example/before/app/controllers/surveys_controller.rb | 1807 | class SurveysController < ApplicationController
before_action :set_survey, only: [:show, :edit, :update, :destroy]
# GET /surveys
# GET /surveys.json
def index
@surveys = Survey.all
end
# GET /surveys/1
# GET /surveys/1.json
def show
end
# GET /surveys/new
def new
@survey = Survey.new
... | mit |
Yuyuu/agoodfriendalwayspayshisdebts-webapp | server/configuration/environment_configuration.js | 784 | "use strict";
var config = require("12factor-config");
var appConfig = config({
apiUrl: {
env: "AGFAPHD_WEBAPP_API_URL",
type: "string",
default: "http://localhost:8089"
},
emailApiKey: {
env: "AGFAPHD_WEBAPP_EMAIL_API_KEY",
type: "string",
required: true
},
emailApiUrl: {
env: "... | mit |
dataline-gmbh/SocialInsurance.Germany.Messages | src/Dataline.SocialInsurance.Germany.Messages.Pocos/Verfahrenkennzeichen.cs | 1414 | // <copyright file="Verfahrenkennzeichen.cs" company="DATALINE GmbH & Co. KG">
// Copyright (c) DATALINE GmbH & Co. KG. All rights reserved.
// </copyright>
namespace SocialInsurance.Germany.Messages.Pocos
{
/// <summary>
/// Implementation der <see cref="IVerfahrenkennzeichen"/>-Schnittstelle
///... | mit |
dlarkinc/lc_tutorials | lc-tutorial-cloudfoundry/src/main/java/ie/cit/caf/larkin/cfdemo/service/ArtistServiceImpl.java | 636 | package ie.cit.caf.larkin.cfdemo.service;
import java.util.List;
import ie.cit.caf.larkin.cfdemo.entity.Artist;
import ie.cit.caf.larkin.cfdemo.repository.ArtistRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ArtistServi... | mit |
graves/twirloc | lib/twirloc/algorithms/k_means/cluster.rb | 893 | module Twirloc
module Algorithms
module KMeans
class Cluster
attr_reader :data_points, :centroid
def initialize(options)
options = defaults.merge(options)
@data_points = Set.new(options[:data_points])
@centroid = options[:centroid]
end
def reco... | mit |
tzengerink/groceries-ui | karma.conf.js | 433 | 'use strict';
module.exports = function(config) {
config.set({
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
singleRun: true,
files: ['tests/bootstrap.js'],
preprocessors: {
'tests/*': ['webpack']
},
plugins: [
require('karma-jasmi... | mit |
RReverser/parse5 | test/benchmark/bench-huge.js | 796 | 'use strict';
var path = require('path'),
fs = require('fs'),
upstreamParse5 = require('parse5');
//HACK: https://github.com/bestiejs/benchmark.js/issues/51
/* global workingCopy, upstreamParser, hugePage */
global.workingCopy = require('../../lib');
global.upstreamParser = new upstreamParse5.Parser();
global... | mit |
scalus/ember-cli | tests/unit/tasks/git-init-test.js | 2815 | 'use strict';
var fs = require('fs-extra');
var expect = require('chai').expect;
var MockUI = require('console-ui/mock');
var GitInitTask = require('../../../lib/tasks/git-init');
var MockProject = require('../../helpers/mock-project');
var Promise = require('../../../lib/ext/promise');
var remo... | mit |
Adoxio/xRM-Portals-Community-Edition | Framework/Adxstudio.Xrm/Blogs/WebsiteBlogAggregationDataAdapter.cs | 13354 | /*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for license information.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Adxstudio.Xrm.Cms;
using Adxstudio.Xrm.Collections.Generic;
using A... | mit |
NetOfficeFw/NetOffice | Examples/PowerPoint/C#/IExtensibility COMAddin Examples/TaskPane/SampleControl.cs | 5889 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Reflection;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using NetOffice;
using Office = NetOffice.OfficeApi;
using NetOffice.OfficeApi.Enums;
using PowerPoint = NetOffi... | mit |
enettolima/magento-training | magento2ce/lib/internal/Magento/Framework/Validator/Test/Unit/FactoryTest.php | 5535 | <?php
/**
* Unit test for \Magento\Framework\Validator\Factory
*
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Validator\Test\Unit;
class FactoryTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Magento\Framework\ObjectManagerI... | mit |
bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/ID3v22/Album.php | 761 | <?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\ID3v22;
use JMS\Serializer\Annotation\ExclusionPolicy... | mit |
TheSwanFactory/maml | test/frames/frame-spec.ts | 1059 |
import { expect } from 'chai'
import {} from 'mocha'
import { Context, Frame, FrameArray, FrameString, FrameSymbol, IKeyValuePair, NilContext } from '../../src/frames'
describe('Frame', () => {
const frame = new Frame({ nil: Frame.nil })
it('is constructed from a dictionary', () => {
expect(frame).to.be.inst... | mit |
kbrock/ancestry | test/concerns/orphan_strategies_test.rb | 3977 | require_relative '../environment'
class OphanStrategiesTest < ActiveSupport::TestCase
def test_default_orphan_strategy
AncestryTestDatabase.with_model do |model|
assert_equal :destroy, model.orphan_strategy
end
end
def test_non_default_orphan_strategy
AncestryTestDatabase.with_model :orphan_st... | mit |
JumpStartGeorgia/Place-ge-Scraper | spec/place_ge_ad_scraper/ads/removed_from_site/355198.rb | 2094 | test_place_ge_ad(
355_198,
place_ge_id: 355_198,
link: 'http://place.ge/en/ads/view/355198',
publication_date: Date.new(2015, 6, 2),
deal_type: 'for_sale',
property_type: 'private_house',
city_id: 43,
city: 'Gori',
region_id: nil,
region: nil,
district_id: nil,
district: nil,
street_id: nil,
... | mit |
enettolima/magento-training | magento2ce/app/code/Magento/Sales/Model/ResourceModel/Order/Item.php | 1408 | <?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Sales\Model\ResourceModel\Order;
use Magento\Sales\Model\ResourceModel\EntityAbstract as SalesResource;
/**
* Flat sales order item resource
*/
class Item extends SalesResource
{
/**
* ... | mit |
lmazuel/azure-sdk-for-python | azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/database_account_connection_string.py | 1348 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit |
athanasiouconst/pmctool | application/views/pmctoolContent/pmctoolModelsContent/pmctoolModelsContentEdit.php | 5904 | <?php $this->load->view('header/header'); ?>
<body>
<!-- Heaser Area Start -->
<header class="header-area">
<!-- Navigation start -->
<nav class="navbar navbar-custom tb-nav" role="navigation">
<div class="container">
<div class="navbar-header">
... | mit |
pveeckhout/bachelor-thesis | implementation/lib/Encog/src/test/java/org/encog/neural/networks/structure/TestAnalyzeNetwork.java | 1727 | /*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | mit |
fabiocav/azure-webjobs-sdk-script | src/WebJobs.Script.WebHost/Standby/StandbyManager.cs | 7474 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs.Script.Rpc;
using Micros... | mit |
joshuafcole/spook | routes/runnables.js | 313 | 'use strict';
var path = require('path');
var routes = [];
module.exports = function(opts) {
routes.push({
method: 'GET',
path: '/file/{file*}',
handler: {
directory: {
path: path.join(opts.dbd),
listing: false,
index: false
}
}
});
return routes;
};
| mit |
robsiera/Dnn.Platform | DNN Platform/Library/Services/Mobile/IRedirectionController.cs | 2149 | #region Copyright
//
// DotNetNuke® - https://www.dnnsoftware.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restri... | mit |
bandama-framework/bandama-framework | src/foundation/database/Connection.php | 4496 | <?php
namespace Bandama\Foundation\Database;
use PDO;
use PDOException;
use Exception;
/**
* Database connection class
*
* @package Bandama
* @subpackage Foundation\Database
* @author Jean-François YOBOUE <yoboue.kouamej@live.fr>
* @version 1.0.1
* @since 1.0.1 Adding PDO attributes, support for Oracle, SQLit... | mit |
ceolter/angular-grid | community-modules/core/src/ts/widgets/managedFocusComponent.ts | 7714 | import { PostConstruct, Autowired } from '../context/context';
import { Component } from './component';
import { FocusController } from '../focusController';
import { isNodeOrElement, addCssClass, clearElement } from '../utils/dom';
import { KeyCode } from '../constants/keyCode';
import { isStopPropagationForAgGrid, st... | mit |
robsiera/Dnn.Platform | DNN Platform/DotNetNuke.Web.Deprecated/UI/WebControls/DnnToolBar.cs | 1356 | #region Copyright
//
// DotNetNuke® - https://www.dnnsoftware.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restric... | mit |
Grimace1975/bclcontrib-scriptsharp | src/ScriptApp/System.Tests/IO/PathTests.cs | 287 | using System;
using System.Specialized.JsTestRunner;
namespace IO
{
public class PathTests
{
static PathTests() { TestCaseBuilder.TestCase("PathTests", typeof(PathTests).Prototype); }
//public void Test_simple_format()
//{
//}
}
} | mit |
HaliteChallenge/Halite | website/lib/swiftmailer/tests/unit/Swift/Plugins/Loggers/EchoLoggerTest.php | 647 | <?php
class Swift_Plugins_Loggers_EchoLoggerTest extends \PHPUnit_Framework_TestCase{
public function testAddingEntryDumpsSingleLineWithoutHtml() {
$logger = new Swift_Plugins_Loggers_EchoLogger(false);
ob_start();
$logger->add('>> Foo');
$data = ob_get_clean();
$this->asse... | mit |