repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kt3k/class-component-initializer
spec.js
3290
before(function () { $.defineRole('foo', function (pt, parent) { pt.constructor = function (elem) { parent.constructor.call(this, elem); elem.attr('is_foo', 'true'); }; }); $.defineRole('bar', function (pt, parent) { pt.constructor = function (elem) ...
mit
thfabian/sequoia
sequoia-engine/src/sequoia-engine/Render/UniformVariable.cpp
4942
//===--------------------------------------------------------------------------------*- C++ -*-===// // _____ _ // / ____| (_) // | (___ ___ __ _ _ _ ___ _ __ _ // \___ \ / _ \...
mit
space-wizards/space-station-14
Content.Shared/Ghost/SharedGhostComponent.cs
2303
using System; using Robust.Shared.GameObjects; using Robust.Shared.GameStates; using Robust.Shared.Players; using Robust.Shared.Serialization; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables; namespace Content.Shared.Ghost { [NetworkedComponent()] public class SharedGhos...
mit
salsify/ember-css-modules
packages/ember-css-modules/tests/integration/splattributes-test.js
928
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import setupStyles from '../helpers/render-with-styles'; import styles from 'dummy/components/component-with-splattributes/styles'; module('Integration | Components with splattributes',...
mit
guiwoda/fluent
src/FluentDriver.php
3669
<?php namespace LaravelDoctrine\Fluent; use Doctrine\Common\Persistence\Mapping\ClassMetadata; use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver; use Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder; use Doctrine\ORM\Mapping\MappingException; use InvalidArgumentException; use LaravelDoctrine\Fluent\Builde...
mit
aponsin/basic-online-mail-merge
config/environments/production.rb
2982
BasicOnlineMailMerge::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 # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false ...
mit
jinaveiras/Qt-basic-interpreter
doc/Documentación doxygen/search/functions_69.js
3239
var searchData= [ ['inicializa',['inicializa',['../class_parser.html#a94b1efb497d47ea53d6699c5ad164b3d',1,'Parser::inicializa()'],['../class_scanner.html#a8dbdd837a88b1eee5f064a5467d8d404',1,'Scanner::inicializa()']]], ['input',['Input',['../class_input.html#abae3f379d3f157cf42dc857309832dba',1,'Input::Input()'],['...
mit
giacomelli/Escrutinador
src/Escrutinador.UnitTests/DataAnnotationsMetadataProviderTest.cs
3345
using NUnit.Framework; namespace Escrutinador.UnitTests { [TestFixture] public class DataAnnotationsMetadataProviderTest { [Test] public void Property_StringProperty_Metadata() { var target = new DataAnnotationsMetadataProvider(); var actual = target.Propert...
mit
yangjm/winlet
winlet/src/main/java/com/aggrepoint/winlet/jsp/taglib/IncludeParamTag.java
574
package com.aggrepoint.winlet.jsp.taglib; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.TagSupport; public class IncludeParamTag extends TagSupport { private static final long serialVersionUID = 1L; String name; String value; public void setName(String str) { name = str; } public v...
mit
arafattehsin/CognitiveRocket
Cognitive-Library/CustomVision/Properties/AssemblyInfo.cs
1368
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Co...
mit
mind0n/hive
History/Website/3js/editor/js/ui/Sidebar.Renderer.js
1768
Sidebar.Renderer = function ( signals ) { var rendererClasses = { 'CanvasRenderer': THREE.CanvasRenderer, 'SoftwareRenderer': THREE.SoftwareRenderer, 'SVGRenderer': THREE.SVGRenderer, 'WebGLRenderer': THREE.WebGLRenderer }; var container = new UI.Panel(); container.setPadding( '10px' ); container.setBo...
mit
crazyhitty/Capstone-Project
app/src/main/java/com/crazyhitty/chdev/ks/predator/ui/adapters/recycler/PostsRecyclerAdapter.java
14419
/* * MIT License * * Copyright (c) 2016 Kartik Sharma * * 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, mo...
mit
lopezdp/JavaPracticeProblems
ResControl.java
6194
/** * David P. Lopez * COP2800 Test-2 * Programming Assignment */ package oysterBar; import java.util.Scanner; /** * 305.467.5719 * @author david.lopez016@mymdc.net */ public class ResControl { /** * @param args the command line arguments */ public static void main(String[] args) { //...
mit
buzzler/titan
Assets/Packages/Vortex Game Studios/Editor/UEditor.cs
2117
using UnityEditor; using UnityEngine; using System.Reflection; using System.Collections.Generic; namespace UT.UEditor { public class UEditor { #region Inspector Box Component public static void BeginBox( string title, Color color ) { // Actions list GUI.background...
mit
grncdr/node-any-db
packages/any-db-adapter-spec/interfaces/connection.js
484
var Queryable = require('./queryable') exports.testProperties = function(connection, adapter, assert) { Queryable.testProperties(connection, adapter, assert, 'connection') assert.equal(typeof connection.end, 'function') } exports.testEvents = function(connection, assert) { connection.on('open', function() { ...
mit
mmazilu/FullStackStarter
NodeJS/routes/routes.js
3657
var express = require('express'); var router = express.Router(); var UserController = require('./userController'); var BoardController = require('./boardController'); // Authentication and Authorization Middleware var auth = function(req, res, next) { if (req.session && req.session.loggedIn === true) retur...
mit
davidhuynh/ludi.graphics
Test/Psuedocode.cpp
884
int main(int argc, char** argv) { Program* program = Program::Create(<config>); program->Shader<Shader::kVertex>()->type(); Shader* tempShader = program->Shader<Shader::kVertex>(); program->Attach(Shader); Shader* vertexShader; //vertexShader->introspection(); Pipeline* pipeline; ...
mit
lozjackson/ember-time-tools
tests/integration/components/tt-picker-item-test.js
540
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('tt-picker-item', 'Integration | Component | tt picker item', { integration: true }); test('it renders', function(assert) { this.render(hbs`{{tt-picker-item}}`); assert.equal(this.$().text()....
mit
herpec-j/BehaviorTree
BehaviorTree/Includes/BehaviorTree/Details/DecimalCondition.hpp
3313
#pragma once #include <functional> #include <limits> #include <cmath> #include <cassert> #include "BehaviorTree/Details/ConditionNode.hpp" #include "BehaviorTree/Details/ConditionTest.hpp" #include "BehaviorTree/Details/Private/DecimalConditionEnabler.hpp" namespace AO { namespace BehaviorTree { inline namespace...
mit
nicoagostini/sistemademandas
classes/bd.class.php
840
<?php class bd{ public $conexao; public $id; public function __construct(){ $this->conexao = new mysqli("localhost", "root", "", "sistemaif"); } public function consulta($select){ $this->conexao->query($select); $retorno = array(); $dados = array(); $result = $this->conexao->query($sel...
mit
khowrurk/MSA
application/views/pages/dashboard/expenseAndWeight/index.php
8343
<?php if(isset($_SESSION["MSA"]["right"])){ $right=$_SESSION["MSA"]["right"]; } $loggedIn=$_SESSION["MSA"]["loggedIn"]; ?> <script src="assets/js/Highcharts-5.0.6/code/highcharts.js" type="text/javascript"></script> <script src="assets/js/Highcharts-5.0.6/code/modules/drilldown.js" type="text/javasc...
mit
Yasushi/oxidized_silver_bird
lib/popup/theme_manager.js
6043
var ThemeManager = { init: function () { $("link.theme").remove(); var theme = OptionsBackend.get('theme'); $(theme.split(",")).each(function(i, p) { $("<link rel='stylesheet' type='text/css' class='theme' href='" + p + "'>").appendTo(document.head); }); var baseStyle = $("#base_stylesheet")...
mit
kh3dr0n/projetphp
src/site/adminBundle/Controller/PassagerController.php
5322
<?php /** * Created by PhpStorm. * User: kh3dr0n * Date: 19/04/2014 * Time: 20:27 */ namespace site\adminBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use site\adminBundle\Entity\Passager; class PassagerController extends Controller { function listerAction(){ $...
mit
brucevsked/vskeddemolist
vskeddemos/mavenproject/vskedtool/src/main/java/com/vsked/common/IdWorkerSnowflake.java
6625
package com.vsked.common; import java.lang.management.ManagementFactory; import java.net.InetAddress; import java.net.NetworkInterface; /** * <p>名称:IdWorker.java</p> * <p>描述:分布式自增长ID</p> * <pre> * Twitter的 Snowflake JAVA实现方案 * </pre> * 核心代码为其IdWorker这个类实现,其原理结构如下,我分别用一个0表示一位,用—分割开部分的作用: * 1||0...
mit
dutu/cryptox
test/bitxIntegrationTests.js
1004
'use strict'; const chai = require('chai'); const sharedTests = require('./shared/integrationTest.js'); // configure Integration tests variables below this line const slug = 'bitx'; const apiHost = { private: 'https://api.mybitx.com', public: 'https://api.mybitx.com' }; const publicMethodsToTest = ['getRat...
mit
jkpenner/RPGSystemTutorial
Assets/RPGSystems/Scripts/Stats/Interfaces/IStatLinkable.cs
324
using UnityEngine; using System.Collections; /// <summary> /// Allows the stat to use stat linkers /// </summary> public interface IStatLinkable { int StatLinkerValue { get; } void AddLinker(RPGStatLinker linker); void RemoveLinker(RPGStatLinker linker); void ClearLinkers(); void UpdateLinkers();...
mit
horst-naujoks/vollibro
src/Controllers/Settings/ConfigurePinController.ts
5475
module Naujoks.Vollibro.Controllers { export class ConfigurePinController extends BaseController<ViewModels.ConfigurePinViewModel> { //#region Injection public static ID = "ConfigurePinController"; public static get $inject(): string[] { return [ "$scope", ...
mit
DeepakRajendranMsft/azure-sdk-for-node
lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js
4197
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
mit
Team-Papaya-Web-Services-and-Cloud/Web-Services-and-Cloud-Teamwork-2014
Votter/Votter.Services/Areas/HelpPage/App_Start/HelpPageConfig.cs
6501
// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData // package to your project. ////#define Handle_PageResultOfT using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ...
mit
francjvs/FSPatcher
src/fspatcher/FSPatcher.java
19028
package fspatcher; import java.awt.Color; import java.awt.Font; import java.net.URL; import java.util.ArrayList; import javax.swing.JFrame; import javax.swing.JOptionPane; import lev.gui.LSaveFile; import skyproc.*; import skyproc.gui.SPMainMenuPanel; import skyproc.gui.SUM; import skyproc.gui.SUMGUI; import fspatcher...
mit
Azure/azure-sdk-for-net
sdk/cognitiveservices/Vision.Face/src/Generated/Models/IdentifyRequest.cs
6678
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
mit
sachinnitw1317/artphillic
application/modules/profile_page_videos/views/main_page.php
301
<?php defined('BASEPATH') OR exit('No direct script access allowed'); //$this->load->view('header'); //$this->load->view('left_list'); $this->load->view('videos',$query); //$this->load->view('right_list'); ?> <!--<li class="list-group-item"> <span class="badge">5</span> GOLD </li>-->
mit
Ezhil-Language-Foundation/open-tamil
examples/classifier/demo.py
355
import sklearn from sklearn.neural_network import MLPClassifier X = [[0, 1], [1, 0], [1, 1]] Y = [1, 1, 0] clf = MLPClassifier( solver="lbfgs", alpha=1e-3, hidden_layer_sizes=(5, 2), random_state=1 ) clf.fit(X, Y) clf.predict([[2, 2], [0, 0], [-1, -2]]) print(clf.score([[2, 2], [0, 0], [-1, -2]], [1, 0, 0])) for c...
mit
harizSalim/LOG6306-SalimAlex
lock/src/main/java/com/auth0/lock/error/LoginAuthenticationErrorBuilder.java
3190
/* * LoginAuthenticationErrorBuilder.java * * Copyright (c) 2014 Auth0 (http://auth0.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 limit...
mit
gardr/validator
lib/rule/preprocess/screenshots.js
2531
var fs = require('fs'); var async = require('async'); var moment = require('moment'); var internals = {}; var REG_EXP_FILENAME = /^(\d+)x(\d+)_(\d+)/; internals.getImages = function (harvested, output, next, options) { fs.readdir(options.outputDirectory, function (err, folder) { if (err) { r...
mit
drypot/raysoda
src/ts/server/express/express2-html-test.ts
828
import { Express2 } from '@server/express/express2' import supertest, { SuperAgentTest } from 'supertest' import { omanCloseAllObjects, omanGetObject, omanNewSession } from '@server/oman/oman' describe('Express2 Html', () => { let web: Express2 let sat: SuperAgentTest beforeAll(async () => { omanNewSession...
mit
axiom4/RaspiCamera
webapp/raspicamera/src/app/raspi-camera/image-preview/image-preview.component.ts
296
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-image-preview', templateUrl: './image-preview.component.html', styleUrls: ['./image-preview.component.css'] }) export class ImagePreviewComponent implements OnInit { constructor() { } ngOnInit() { } }
mit
dudanogueira/tiss
tiss/extensoes/providers/cardio_senha/cardio_senha.py
2908
# -*- coding: utf-8 -*- from yapsy.IPlugin import IPlugin import datetime import pymssql class PluginModelo(IPlugin): ''' Retorna provider de senhas do prestador para checagens - Senha (indice) - Cod Beneficiario - Procedimentos: list com todos aprovados Cardio Provider: provid...
mit
techlib/adminator
adminator/static/js/src/stores/ConfigPattern.js
2841
'use strict' import * as Reflux from 'reflux' import {ConfigPatternActions, FeedbackActions} from '../actions' import {ErrorMixin} from './Mixins' import {hashHistory as BrowserHistory} from 'react-router' export var ConfigPatternStore = Reflux.createStore({ mixins: [ErrorMixin], listenables: [ConfigPatternAction...
mit
nicholascloud/vette
src/validators/nodupe.js
900
'use strict'; var sameValueZero = require('../same-value-zero'); var DuplicateElementValidationError = require('../errors').DuplicateElementValidationError; module.exports = function nodupe (message) { return function (adapter) { var value = adapter.value(); if (!Array.isArray(value)) { return new Type...
mit
frainfreeze/studying
university/10004-Programming/home exercises 1/Di3z2.cpp
580
#include <iostream> using namespace std; bool neparan(int broj) { //ako broj nije paran, vracamo true if (broj % 2 != 0) { return true; } //vracamo false jer je paran return false; } int main() { cout << "Unesite molim jedan broj: "; int broj; cin >> broj; //poziv metode i...
mit
phucnguyen81/jeran
src/main/java/lou/jeran/db/RsMapper.java
193
package lou.jeran.db; import java.sql.ResultSet; /** * Converts result-set to another type. * * @author phuc */ public interface RsMapper<T> { T map(ResultSet rs) throws Exception; }
mit
ManakCP/NestJs
node_modules/face-api.js/build/commonjs/dom/bufferToImage.js
926
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var env_1 = require("../env"); function bufferToImage(buf) { return new Promise(function (resolve, reject) { if (!(buf instanceof Blob)) { return reject('bufferToImage - expected buf to be of type: Blob'); } ...
mit
Vertexwahn/appleseed
src/appleseed.studio/mainwindow/project/objectinstanceitem.cpp
19091
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2015 Francois Beaune, The appleseedhq Organization // ...
mit
myxvisual/react-uwp
docs/src/components/DocsTreeView/index.tsx
5132
import * as React from "react"; import * as PropTypes from "prop-types"; import { Link, browserHistory } from "react-router"; import AutoSuggestBox from "react-uwp/AutoSuggestBox"; import TreeView from "react-uwp/TreeView"; import docTreeData from "./docTreeData"; export interface Item { titleNode?: string; expa...
mit
dsouzadyn/Hilo
build/cmd/hilo/tween/Tween.js
13373
/** * Hilo 1.0.0 for cmd * Copyright 2016 alibaba.com * Licensed under the MIT License */ define(function(require, exports, module){ var Class = require('hilo/core/Class'); /** * Hilo * Copyright 2015 alibaba.com * Licensed under the MIT License */ /** * <iframe src='../../../examples/Tween.html?noHeader' w...
mit
rogeriochaves/react-decompiler
dist/stringify-object.js
2200
/* this is an monkey-patched copy of https://github.com/yeoman/stringify-object/blob/master/index.js */ 'use strict'; var _reactAddonsTestUtils = require('react-addons-test-utils'); var _decompiler = require('./decompiler'); var isRegexp = require('is-regexp'); var isPlainObj = require('is-plain-obj'); module.expor...
mit
apalkowski/KinectMotionCapture
KinectMotionCapture/App.xaml.cs
335
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace KinectMotionCapture { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application ...
mit
Jamongkad/s36-beta
application/routes/dashboard.php
821
<?php $company = new Company\Repositories\DBCompany; $company_name = Config::get('application.subdomain'); return Array( 'GET /dashboard' => Array('name' => 'dashboard', 'before' => 's36_auth', 'do' => function() use($company,$company_name) { $dash = new DBDashboard(S36Auth::user()->companyid); $da...
mit
coderFirework/app
js/jqwidgets-4.4.0/demos/angular2/app/popover/defaultfunctionality/app.module.ts
474
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { jqxPopoverComponent } from 'components/angular_jqxpopover'; import { jqxButtonComponent } from 'components/angular_jqxbuttons'; @NgModule({ imports:...
mit
ditrace/csharp
Kontur.Tracing.Core/Impl/StringBuilderExtensions.cs
1497
using System.Collections.Generic; using System.Text; namespace Kontur.Tracing.Core.Impl { internal static class StringBuilderExtensions { public static StringBuilder AppendPlainObject(this StringBuilder builder, string name, IEnumerable<KeyValuePair<string, string>> fields) { builde...
mit
JHKennedy4/nqr-client
jspm_packages/npm/react@0.14.2/lib/ReactUpdateQueue.js
7315
/* */ (function(process) { 'use strict'; var ReactCurrentOwner = require("./ReactCurrentOwner"); var ReactElement = require("./ReactElement"); var ReactInstanceMap = require("./ReactInstanceMap"); var ReactUpdates = require("./ReactUpdates"); var assign = require("./Object.assign"); var invariant = requi...
mit
benjamn/reify
test/export/default/object.js
30
export default { foo: 42 };
mit
omegasoft7/DBFlow
library/src/main/java/com/raizlabs/android/dbflow/config/FlowSQLiteOpenHelper.java
17672
package com.raizlabs.android.dbflow.config; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteStatement; import com.raizlabs.android.dbflow.DatabaseHelperL...
mit
aLagoG/kygerand
and/lessThan10/eleven.cpp
3215
#define _CRT_SECURE_NO_DEPRECATE #include <cctype> #include <iostream> #include <queue> #include <stack> #include <string> #include <unordered_map> using namespace std; inline int itoa(int n) { return n + '0'; } int main() { // infijo a posfijo stack<char> st; string in, res = ""; unordered_map<char...
mit
fahadonline/sulu
vendor/sulu/sulu/src/Sulu/Bundle/ContentBundle/Resources/public/dist/validation/types/singleInternalLink.js
528
define(["type/default"],function(a){"use strict";var b=function(a,b){App.emit("sulu.preview.update",b,a),App.emit("sulu.content.changed")};return function(c,d){var e={},f={initializeSub:function(){var a="sulu.single-internal-link."+d.instanceName+".data-changed";App.off(a,b),App.on(a,b)},setValue:function(a){App.dom.da...
mit
srdjanRakic/devmeetup-vue
src/main.js
1663
import * as firebase from 'firebase'; import Vue from 'vue'; import Vuetify from 'vuetify'; import './stylus/main.styl'; import App from './App'; import router from './router'; import { store } from './store'; import DateFilter from './filters/date'; import AlertCmp from './components/Shared/Alert'; import EditMeetupDe...
mit
space-wizards/space-station-14
Content.Shared/Temperature/IsHotEvent.cs
409
using Robust.Shared.Analyzers; using Robust.Shared.GameObjects; namespace Content.Shared.Temperature { /// <summary> /// Directed event raised on entities to query whether they're "hot" or not. /// For example, a lit welder or matchstick would be hot, etc. /// </summary> public class IsHot...
mit
mdoviedor/WEBsimon
src/GS/ConsultasBundle/Entity/Categoriapublicacion.php
1111
<?php namespace GS\ConsultasBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Categoriapublicacion * * @ORM\Table(name="categoriapublicacion") * @ORM\Entity */ class Categoriapublicacion { /** * @var integer * * @ORM\Column(name="idcategoriaPublicacion", type="integer", nullable=false) ...
mit
carney520/vuf7
src/components/page/index.js
97
import Page from './page' import PageContent from './page-content' export { Page, PageContent }
mit
Kagami/material-ui
packages/material-ui-icons/src/DragIndicatorRounded.js
523
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-...
mit
Kagami/material-ui
packages/material-ui-icons/src/DesktopMacSharp.js
278
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M23 2H1v16h9l-2 3v1h8v-1l-2-3h9V2zm-2 12H3V4h18v10z" /></g></React.Fragment> , 'DesktopMacSharp');
mit
AHJenin/acm-type-problems
leetcode/AC/Easy/to-lower-case.py
87
class Solution: def toLowerCase(self, str: str) -> str: return str.lower()
mit
Crimx/crx-saladict
src/_locales/zh-TW/background.ts
360
import { locale as _locale } from '../zh-CN/background' export const locale: typeof _locale = { app: { off: '沙拉查詞已關閉(快捷查詞依然可用)', tempOff: '沙拉查詞已對當前標籤關閉(快捷查詞依然可用)', unsupported: '內嵌查字介面不支援此類頁面(獨立視窗查字介面依然可用)' } }
mit
aspnetboilerplate/aspnetboilerplate-samples
GraphQLDemo/aspnet-core/src/Hotel.Core/Authorization/Roles/StaticRoleNames.cs
300
namespace Hotel.Authorization.Roles { public static class StaticRoleNames { public static class Host { public const string Admin = "Admin"; } public static class Tenants { public const string Admin = "Admin"; } } }
mit
laslabs/Python-Carepoint
carepoint/tests/models/cph/fixtures/fdb_gcn.py
432
# -*- coding: utf-8 -*- # Copyright 2015-TODAY LasLabs Inc. # License MIT (https://opensource.org/licenses/MIT). from mixer.backend.sqlalchemy import mixer from datetime import datetime dt_now = datetime.now() __model__ = 'carepoint.models.cph.fdb_gcn.FdbGcn' fdb_gcn_default = mixer.blend( __model__, gcn_s...
mit
rosmantorres/SAF
lib/filter/doctrine/SAF_MINUTAFormFilter.class.php
328
<?php /** * SAF_MINUTA filter form. * * @package Proyecto_SAF * @subpackage filter * @author Rosman_Torres * @version SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class SAF_MINUTAFormFilter extends BaseSAF_MINUTAFormFilter { public function configure() ...
mit
HallM/eslint-plugin-checkbugs
lib/rules/no-double-comparison.js
2457
/** * @fileoverview Prevents comparing a comparison which may not operate as expected * @author Matt Hall */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.expo...
mit
gfw-api/gfw-area
app/src/services/team.service.js
887
const logger = require('logger'); const { RWAPIMicroservice } = require('rw-api-microservice-node'); class TeamService { static async getTeamByUserId(userId) { logger.info('Get team by user id', userId); const team = await RWAPIMicroservice.requestToMicroservice({ uri: `/teams/user/${u...
mit
stormbrew/channel9
environments/ruby/src/rb_glob.cpp
3338
#include "c9/channel9.hpp" #include "c9/message.hpp" #include "c9/string.hpp" #include "c9/value.hpp" #include "c9/context.hpp" #include "rb_glob.hpp" #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <fnmatch.h> #include <unistd.h> #include <list> #include <string> using namespace Channel9; ...
mit
vdaubry/photo-api
spec/models/post_image_spec.rb
872
require "rails_helper" describe PostImage do describe "create" do let(:website_post) { FactoryGirl.create(:website_post) } let(:website_post2) { FactoryGirl.create(:website_post) } context "valid PostImage" do it { FactoryGirl.build(:post_image).save.should == true } end context "duplicat...
mit
swarnimsinha1994/gamer
src/qt/gamertip.cpp
9179
/* * W.J. van der Laan 2011-2012 */ #include "gamertipgui.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 <QApplication> #include <QMessageBox> #include <QTextC...
mit
gravitano/framework
src/App/Http/Controllers/HomeController.php
182
<?php namespace App\Http\Controllers; use Gravitano\Routing\Controller; class HomeController extends Controller { public function index() { return view()->make('hello'); } }
mit
mrLSD/go-benchmark-app
tools/siege_test.go
3272
package tools import ( cfg "github.com/mrlsd/go-benchmark-app/config" "testing" ) const SIEGE_RESULT = ` Transactions: 146229 hits Availability: 99.63 % Elapsed time: 9.11 secs Data transferred: 2.65 MB Response time: 0.01 secs Transaction rate: 16051.48 trans/sec Throug...
mit
Ameliorate/Buildstation-Server
Buildstation-Server/Class/NetworkThread.cs
2872
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Net.Sockets; using System.Threading; namespace Buildstation_Server.Class { static class NetworkThread { private static TcpClient NewConnection; pr...
mit
rtnews/rtsfnt
node_modules/@swimlane/ngx-charts/release/polar-chart/polar-series.component.d.ts
1195
import { OnChanges, SimpleChanges } from '@angular/core'; import { LocationStrategy } from '@angular/common'; export declare class PolarSeriesComponent implements OnChanges { private location; name: any; data: any; xScale: any; yScale: any; colors: any; scaleType: any; curve: any; ac...
mit
stas-vilchik/bdd-ml
data/7659.js
1127
{ var OnePlugin = createPlugin({ eventTypes: { click: { registrationName: "onClick" }, focus: { registrationName: "onFocus" } } }); var TwoPlugin = createPlugin({ eventTypes: { magic: { phasedRegistrationNames: { bubbled: "onMagicBubble",...
mit
caseyhammond/COMP4711-01
Student.php
1095
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Student * * @author caseyy */ class Student { function __construct() { $this->surname...
mit
cmorenokkatoo/kkatooapp
amqp-1.8.0beta2/tests/amqpqueue_bind_basic.phpt
522
--TEST-- AMQPQueue --SKIPIF-- <?php if (!extension_loaded("amqp")) print "skip"; ?> --FILE-- <?php $cnn = new AMQPConnection(); $cnn->connect(); $ch = new AMQPChannel($cnn); $ex = new AMQPExchange($ch); $ex->setName('exchange-' . microtime(true)); $ex->setType(AMQP_EX_TYPE_DIRECT); $ex->declareExchange(); $queue = n...
mit
andersjo/hals
hals/cli/predict.py
68
def predict(args): print(args) print("Doing the prediction")
mit
pedrogpimenta/dropmarks
app/components/Home.js
195
var React = require('react'); var Home = React.createClass({ render: function() { return( <h2 className="text-center"> See your bookmarks in Dropbox </h2> ) } });
mit
alymdrictels/symfony-cms
src/Alymdrictels/CMSBundle/Controller/PageController.php
6133
<?php namespace Alymdrictels\CMSBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Alymdrictels\CMSBundle\Entity\Page; use Alymdrictels\CMSBundle\Form\PageType; /** * Page controller. * */ class PageController extends Controller { /...
mit
ssi-anik/clan
library/constants.php
492
<?php define('MAXIMUM_USERNAME_CHARACTER_LENGTH', 30); define('MAXIMUM_NAME_CHARACTER_LENGTH', 50); define('MAXIMUM_EMAIL_CHARACTER_LENGTH', 80); define('MAXIMUM_PASSWORD_CHARACTER_LENGTH', 60); define('MAXIMUM_UID_CHARACTER_LENGTH', 50); define('ADMIN_USER', 1); define('GENERAL_USER', 2); define('MAXIMUM_DESIGNATION_...
mit
in9web/ultracms
core/helpers/language.php
218
<?php use \Ultra\App; function _t($text) { if (isset(App::$lang[$text])) { return App::$lang[$text]; } else { return $text; } } function t($text) { echo _t($text); }
mit
akhildhanuka/slush-ppp-generator
templates/app/vendor.js
121
require('jquery'); require('angular'); require('angular-ui-router'); require('angular-sanitize'); require('ng-focus-if');
mit
xlplbo/translate_tool
vendor/github.com/360EntSecGroup-Skylar/excelize/styles_test.go
2558
package excelize import ( "testing" "github.com/stretchr/testify/assert" ) func TestSetConditionalFormat(t *testing.T) { cases := []struct { label string format string rules []*xlsxCfRule }{{ label: "3_color_scale", format: `[{ "type":"3_color_scale", "criteria":"=", "min_type":"num", "mi...
mit
s-bear/H5TL
doc/html/navtreeindex0.js
18438
var NAVTREEINDEX0 = { "_h5_t_l_8hpp.html":[2,0,0,0], "_h5_t_l_8hpp.html#a0a256efae396de32f6c8e17a0ac5b410":[2,0,0,0,48], "_h5_t_l_8hpp.html#a1068acc4b97b59901883bbb88b1f4434":[2,0,0,0,36], "_h5_t_l_8hpp.html#a112af217f39b59064ce8a48cccc74764":[2,0,0,0,50], "_h5_t_l_8hpp.html#a18b8ab0e48c3efb5dca7d93efd1bfbf6":[2,0,0,0,...
mit
ArcherSys/ArcherSys
node_modules/npm/node_modules/cmd-shim/test/basic.js
17714
<<<<<<< HEAD <<<<<<< HEAD var test = require('tap').test var mkdirp = require('mkdirp') var fs = require('fs') var path = require('path') var fixtures = path.resolve(__dirname, 'fixtures') var cmdShim = require('../') test('no shebang', function (t) { var from = path.resolve(fixtures, 'from.exe') var to = path.re...
mit
Biont/Linak-Control
src/js/app.js
1145
import {Renderer as background} from "./util/ipcHandler"; import AppSettingsModel from "./backbone/Models/AppSettings"; import AppView from "./backbone/Views/AppView"; import ScheduleCollection from "./backbone/Collections/ScheduleCollection.js"; import ScheduleItem from "./backbone/Models/ScheduleItem"; class App { ...
mit
RachelWiens/minesweeper_website
tile.js
1999
/** * Minesweeper board tile * UNKNOWN : Tile has not been clicked so its contents is not known * EMPTY : Tile is not a mine and is not a neighbour of any mines * ONE - EIGHT : Tile is a neighbour of some number of mines. The number of mines is the value of the number * MINE : Tile is a mine. * FLAGGED : T...
mit
26rahulsingh/attandence_mean.io
app/routes/leavedeny.server.routes.js
242
'use strict'; module.exports = function(app) { // Routing logic // ... var leavedeny = require('../../app/controllers/leavedeny.server.controller'); app.route('/leavedeny') .post(leavedeny.delete); //.post(leave.create); };
mit
andres1537/ml-java
src/main/java/com/cgomez/search/lsh/hash/IHashFunction.java
457
/* * Copyright (c) 2015 cgomez. All rights reserved. */ package com.cgomez.search.lsh.hash; import java.io.Serializable; /** * The Interface HashFunction. * * @author <a href="mailto:andres1537@gmail.com">Carlos Gomez</a> * @param <T> the generic type * @since ml-java-1.0 */ public interface IHashFunction<T> ...
mit
antonioalegria/esper-ext
src/frogfish/esper/ext/TrixAggregationFunction.java
1807
package frogfish.esper.ext; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import com.espertech.esper.epl.agg.AggregationSupport; import com.espertech.esper.epl.agg.AggregationValidationContext; public class TrixAggregationFunction extends AggregationSupport { private int mDataWind...
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.0.0/datasource/datasource-local.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:ab3a9ba97498cc1665b8a21cded0192ec053d263b1c7c8f3c0da8ee524c1c5d9 size 11096
mit
tehmaze-labs/pkidump
x500.go
4803
package main import "encoding/asn1" var attributeNameMap = map[string]string{ "0.9.2342.19200300.100.1.1": "user ID", "0.9.2342.19200300.100.1.2": "address", "0.9.2342.19200300.100.1.3": "mailbox", "0.9.2342.19200300.100.1.4": "info", "0.9.2342.19200300.100.1.5": "favourite drink", "0.9.2342.19200300.100.1...
mit
bobril/bobril-m-icons
gen/generate.js
4013
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var fs = require("fs"); var path = require("path"); var svgs = Object.create(null); function humanize(str) { var frags = str.split('_'); for (var i = 1; i < frags.length; i++) { frags[i] = frags[i].charAt(0).toUpperCase...
mit
lynxtdc/bioscan
database/migrations/2015_02_11_215056_create_person_table.php
774
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePersonTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('person', function(Blueprint $table) { $table->increments('id'); $table->e...
mit
radu-matei/mic-slack-integration
src/SlackIntegration.API/DAL/SlackDbContext.cs
315
using SlackIntegration.SlackLibrary; using System.Data.Entity; namespace SlackIntegration.DAL { public class SlackDbContext : DbContext { public SlackDbContext(string connectionString): base(connectionString) { } public DbSet<SlackMessage> Messages { get; set; } } }
mit
s3inlc/cineast-evaluator
inc/gamification/achievements/GamesInDayLevel3Achievement.class.php
1319
<?php use DBA\Player; /** * Created by IntelliJ IDEA. * User: sein * Date: 25.04.17 * Time: 15:31 */ class GamesInDayLevel3Achievement extends GameAchievement { /** * @return string */ function getAchievementName() { return "Games per day Level 3"; } function getIsHidden() { return fal...
mit
yht-fand/cardone-platform-authority
consumer-bak/src/test/java/top/cardone/func/v1/authority/role/D0002FuncTest.java
3243
package top.cardone.func.v1.authority.role; import com.google.common.base.Charsets; import com.google.common.collect.Maps; import com.google.gson.Gson; import top.cardone.CardoneConsumerApplication; import lombok.extern.log4j.Log4j2; import lombok.val; import org.apache.commons.io.FileUtils; import org.junit.Assert; i...
mit