code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-core/polyfill'; import path from 'path'; imp...
cheshire137/cheevo-plotter
src/server.js
JavaScript
mit
3,191
package com.github.robocup_atan.atan.parser.objects; /* * #%L * Atan * %% * Copyright (C) 2003 - 2014 Atan * %% * 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, i...
robocup-atan/atan
src/main/java/com/github/robocup_atan/atan/parser/objects/ObjNameFlagGoalWest.java
Java
mit
4,455
#pragma once #include <app/common.hpp> #include <app/LedDisplay.hpp> #include <audio.hpp> namespace rack { namespace app { struct AudioWidget : LedDisplay { LedDisplayChoice* driverChoice; LedDisplaySeparator* driverSeparator; LedDisplayChoice* deviceChoice; LedDisplaySeparator* deviceSeparator; LedDisplayChoi...
AndrewBelt/Rack
include/app/AudioWidget.hpp
C++
mit
505
// @flow /* eslint-disable no-console */ import chalk from "chalk"; import createWatcher from "./watch"; import loadWatches from "./load-watches"; import hasWatchman from "./utils/has-watchman"; import type { WatchDefinition } from "./load-watches"; import getConfig from "./config"; type Targets = { [target: string]...
laat/nurture
src/index.js
JavaScript
mit
1,846
$(document).ready(function(){ initUploadExcerptPhoto(); initUploadMedia(); $('#edcomment_save').removeAttr('disabled'); $(document).on('click', '.js-single-click', function(){ $(this).attr('disabled', 'disabled'); }); $(document).on('submit', '.js-single-submit', function(){ va...
NegMozzie/tapha
src/BlogBundle/Resources/public/js/fe-general.js
JavaScript
mit
10,917
<?php namespace Arthem\GoogleApi\Infrastructure\Client; use Arthem\GoogleApi\Infrastructure\Client\Decoder\DecoderInterface; use Arthem\GoogleApi\Infrastructure\Client\Exception\ClientErrorException; use GuzzleHttp\ClientInterface; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerInterface; abstract class Client ...
4rthem/google-api
src/Infrastructure/Client/Client.php
PHP
mit
2,757
require 'brahma/web/fall' class CmsController < ApplicationController def index @title = t('web.title.cms') @fall_card = Brahma::Web::FallCard.new nil lang = I18n.locale Cms::Article.select(:id, :title, :summary, :logo).where(lang: lang).order(created: :desc).limit(20).each { |a| @fall_card.add cms_...
chonglou/portal
app/controllers/cms_controller.rb
Ruby
mit
468
var statusItems = initStatusItems(); module.exports = { // check for an item completion checkItems: function(content, callback) { // iterate each status item to check for matches for (var i = 0; i < statusItems.length; i++) { var item = statusItems[i]; // skip item if it...
ScopeXL/sugarbuild
lib/phantom-install-helper.js
JavaScript
mit
2,815
import numpy as np def random_flips(X): """ Take random x-y flips of images. Input: - X: (N, C, H, W) array of image data. Output: - An array of the same shape as X, containing a copy of the data in X, but with half the examples flipped along the horizontal direction. """ N, C, H...
UltronAI/Deep-Learning
CS231n/reference/cnn_assignments-master/assignment3/cs231n/data_augmentation.py
Python
mit
4,178
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.1.1 (2019-10-28) */ (function (domGlobals) { 'use st...
cdnjs/cdnjs
ajax/libs/tinymce/5.1.1/plugins/textcolor/plugin.js
JavaScript
mit
650
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using ZSUIFramework; public class CreatRoomGUI : ZSUI { public Button mBtnClose = null; public override void Init() { ZSUIListener.AddClickEvent( mBtnClose.gameObject, Close ); } }
zhanshu233/ZSUIFramework
Assets/Example/Scripts/UI/CreatRoomGUI.cs
C#
mit
293
export {NavbarItemComponent} from './navbar-item/navbar-item.component'; export {NavbarComponent} from './navbar.component';
Hertox82/Lortom
angular-backend/src/app/backend-module/navbar/index.ts
TypeScript
mit
125
# frozen_string_literal: true module DropletKit class AccountMapping include Kartograph::DSL kartograph do root_key singular: 'account', scopes: [:read] mapping Account scoped :read do property :droplet_limit property :floating_ip_limit property :email prop...
digitalocean/droplet_kit
lib/droplet_kit/mappings/account_mapping.rb
Ruby
mit
392
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-09-07 00:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payments', '0004_auto_20160904_0048'), ] operations = [ migrations.AlterFiel...
CCrypto/ccvpn3
payments/migrations/0005_auto_20160907_0018.py
Python
mit
612
#!/usr/bin/python import requests import json # Import modules for CGI handling import cgi, cgitb # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields user_title = form.getvalue('search_title') print "Content-type: text/html\n\n"; # Setting attributes to send to Wik...
azimos/geddit
old/geddit-backend.py
Python
mit
3,469
/* Copyright (c) 2013 Chris Wraith Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
jacksonps4/jutils
src/main/java/com/minorityhobbies/util/URLUtils.java
Java
mit
2,996
#region Usings using System; using Xunit; #endregion namespace Extend.Testing { public partial class StringExTest { [Fact] public void SubstringLeftSafeTest() { var actual = "testabc".SubstringLeftSafe( 4 ); Assert.Equal( "test", actual ); actual ...
DaveSenn/Extend
.Src/Extend.Testing/System.String/String.SubstringLeftSafe.Test.cs
C#
mit
1,814
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("Pr...
BiserSirakov/TelerikAcademyHomeworks
C# - Part 1/Intro-Programming-Homework/04.PrintFirstAndLastName/Properties/AssemblyInfo.cs
C#
mit
1,418
// # Demo Particles 011 // Tracer entity: generation and functionality // [Run code](../../demo/particles-011.html) import * as scrawl from '../source/scrawl.js' import { reportSpeed } from './utilities.js'; // Get Scrawl-canvas to recognise and act on device pixel ratios greater than 1 scrawl.setIgnorePixelRatio(f...
KaliedaRik/Scrawl-canvas
demo/particles-011.js
JavaScript
mit
5,771
'use strict'; /** * Module dependencies. */ const express = require('express'); const session = require('express-session'); const compression = require('compression'); const morgan = require('morgan'); const cookieParser = require('cookie-parser'); const cookieSession = require('cookie-session'); const bodyParser =...
kyue1005/accedotv-demo
config/express.js
JavaScript
mit
2,588
namespace Nancy.Serialization.ServiceStack { using System.Collections.Generic; using System.IO; using global::ServiceStack.Text; using Responses.Negotiation; public class ServiceStackJsonSerializer : ISerializer { /// <summary> /// Whether the serializer can serialize...
NancyFx/Nancy.Serialization.ServiceStack
src/Nancy.Serialization.ServiceStack/ServiceStackJsonSerializer.cs
C#
mit
1,570
/* * Copyright (c) 2017-2019 by Botorabi. All rights reserved. * https://github.com/botorabi/Meet4Eat * * License: MIT License (MIT), read the LICENSE text in * main directory for more details. */ package net.m4e.update.rest.comm; import org.junit.jupiter.api.*; import javax.json.bind.*; import java.ti...
botorabi/Meet4Eat
src/test/java/net/m4e/update/rest/comm/UpdateCheckResultTest.java
Java
mit
1,790
#!/usr/bin/env python import os import sys from setuptools import setup os.system('make rst') try: readme = open('README.rst').read() except FileNotFoundError: readme = "" setup( name='leicaautomator', version='0.0.2', description='Automate scans on Leica SPX microscopes', long_description=r...
arve0/leicaautomator
setup.py
Python
mit
1,212
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Class Jwt * jwt加密类 */ class Jwt { /** * @var int */ public static $leeway = 0; /** * @var null */ public static $timestamp = null; /** * @var array */ public static $supported_algs = a...
wuanlife/wuanlife_api
application/libraries/Jwt.php
PHP
mit
9,916
/* * The MIT License * * Copyright (c) 2019, CloudBees, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
jenkinsci/groovy-plugin
src/test/java/hudson/plugins/groovy/StringScriptSourceTest.java
Java
mit
3,461
<aside id="featured" class="body"> <article> <figure> <img src="img/logo/<?= $prj->slug ?>.png" alt="<?= sprintf(_('Project’s logo for %s'), $prj->name) ?>" /> </figure> <hgroup> <h2><?= $prj->name ?></h2> <h3><?= $prj->short ?></h3> </hgroup> <p><...
malenkiki/reine
templates/WebProjectsShow.php
PHP
mit
3,223
class Solution { public: vector<int> addNegabinary(vector<int>& arr1, vector<int>& arr2) { vector<int> result; int i = arr1.size() - 1, j = arr2.size() - 1, carry = 0; while (i >= 0 || j >= 0 || carry) { int s = carry; if (i >= 0) { s += arr1[i--]; ...
jiadaizhao/LeetCode
1001-1100/1073-Adding Two Negabinary Numbers/1073-Adding Two Negabinary Numbers.cpp
C++
mit
660
"""Forms of the aps_bom app.""" from csv import DictReader from django import forms from django.core.urlresolvers import reverse from django.utils.translation import ugettext as __ from .models import BOM, BOMItem, CBOM, CBOMItem, EPN, IPN, Unit class BaseUploadForm(forms.ModelForm): csv_file = forms.FileField(...
bitmazk/django-aps-bom
aps_bom/forms.py
Python
mit
6,549
class RenameBillingPeriodReferences < ActiveRecord::Migration def up rename_column :billing_schedules, :billing_period_id, :billing_period_range_id rename_column :bills, :billing_period_id, :billing_period_range_id end def down rename_column :billing_schedules, :billing_period_range_id, :billing_peri...
jbrowning/billy
db/migrate/20130305040107_rename_billing_period_references.rb
Ruby
mit
407
require "test_helper" class CrossCrusadeOverallTest < ActiveSupport::TestCase def test_recalc_with_no_series competition_count = Competition.count CrossCrusadeOverall.calculate! CrossCrusadeOverall.calculate!(2007) assert_equal(competition_count, Competition.count, "Should add no new Competition if...
alpendergrass/montanacycling-racing_on_rails
test/unit/competitions/cross_crusade_overall_test.rb
Ruby
mit
17,950
package api import ( "time" "github.com/boilingrip/boiling-api/db" ) type Release struct { ID int `json:"id"` ReleaseGroup ReleaseGroup `json:"release_group"` Edition *string `json:"edition,omitempty"` Medium string `json:"medium"` ReleaseDate time.Time...
boilingrip/boiling-api
api/release.go
GO
mit
1,389
<?php namespace SlowDB\Bundle\ApiBundle\Controller; use FOS\RestBundle\Controller\Annotations as Rest, FOS\RestBundle\Controller\FOSRestController, FOS\RestBundle\Request\ParamFetcher; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\JsonResponse; /** * @auth...
kmfk/slowdb-api
src/Controller/DatabaseController.php
PHP
mit
1,837
<?php // require composer autoloader for loading classes require realpath(__DIR__ . '/../vendor/autoload.php');
slimdash/payum-payeezy
tests/bootstrap.php
PHP
mit
112
var LinkedInStrategy = require('passport-linkedin-oauth2').Strategy, linkOAuthProfile = require('./helpers').linkOAuthProfile, OAuth2 = require('oauth').OAuth2, crypto = require('crypto'); function preprocessProfile(linkedInProfile){ var skills = []; if(linkedInProfile.skills){ skills = linkedInProfile...
muhammadghazali/kabam-kernel
core/strategies/linkedin.js
JavaScript
mit
2,946
const deepCopy = require('./deep-copy'); const sorting = require('./sort'); /* Sorts an array of objects by two keys ** dir = 'asc' yields sort order A, B, C or 1, 2, 3 ** dir = 'des' yields sort order C, B, A or 3, 2, 1 ** type = 'character' for character sorting, type = 'numeric' or 'bool' ** for boolean sorting for...
knightjdr/gene-info
database/helpers/arr-sort-by-two-keys.js
JavaScript
mit
1,260
require "test_helper" module RuleIo class CustomizationTest < Minitest::Test def setup stub_request(:get, /#{RuleIo.base_url}\/customizations\?apikey=*/) .to_return(status: 200, body: fixture("customizations.json")) end def test_all_returns_customizations customizations = Customizati...
varvet/rule_io
test/rule_io/customization_test.rb
Ruby
mit
955
package es.carm.mydom.filters.utils; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletResponse; import org.apache.naming.resources.Resource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Dispatcher...
maltimor/mydom-server
src/main/java/es/carm/mydom/filters/utils/Dispatcher.java
Java
mit
2,187
# coding: utf-8 from django.db import models from django.utils import timezone from .cores import OssManager _oss_manager = OssManager() class StsToken(models.Model): arn = models.CharField(max_length=500) assumed_role_id = models.CharField(max_length=500) access_key_id = models.CharField(max_length=50...
zhaowenxiang/chisch
oss/models.py
Python
mit
677
/* * (C) Copyright 2015 Richard Greenlees * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge,...
RGreenlees/JUMI-Java-Model-Importer
src/com/jumi/scene/objects/JUMIBone.java
Java
mit
5,488
import assert from 'assert'; import proxyquire from 'proxyquire'; import sinon from 'sinon'; import sinonStubPromise from 'sinon-stub-promise'; import mockMbaasClient from './mocks/fhMbaasClientMock'; sinonStubPromise(sinon); const appEnvVarsStub = sinon.stub(); const primaryNodeStub = sinon.stub().returnsPromise(); c...
feedhenry/fh-dataman
src/middleware/dbConnection/test/mbaas_test.js
JavaScript
mit
3,372
import React, { Component, PropTypes } from 'react' import { Router } from 'react-router' import { Provider } from 'react-redux' import routes from 'routes' class AppContainer extends Component { static propTypes = { store : PropTypes.object.isRe...
bartushk/memmi
client-side/src/containers/AppContainer.js
JavaScript
mit
639
<?php /* Safe sample input : get the field userData from the variable $_GET via an object sanitize : use of ternary condition construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and dist...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_90/safe/CWE_90__object-classicGet__ternary_white_list__userByCN-concatenation_simple_quote.php
PHP
mit
1,569
var sizes; var searchKey = ''; if(window.location.search!=''){ $("#searchKey").val(decodeURIComponent(window.location.search.substr(11))) } if (window.location.search != "") { searchKey = window.location.search.substr(11) } $.ajax({ url: '/sizes?searchKey=' + searchKey, async: false, method: 'get', ...
dounine/japi
node/js/index.js
JavaScript
mit
10,577
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Polygon } from 'react-google-maps'; import {map, filter} from './../../../actions'; class Region extends React.Component { constructor(props) { super(props); this.state = { ...
Haaarp/geo
client/analytics/components/partials/maps/Region.js
JavaScript
mit
2,127
namespace Squirrel.Nodes { public interface INode { } }
escamilla/squirrel
src/library/Nodes/INode.cs
C#
mit
71
import { beforeEach, beforeEachProviders, ComponentFixture, describe, expect, injectAsync, it, TestComponentBuilder, } from 'angular2/testing'; import { provide } from 'angular2/core'; import { Config } from 'ionic-framework/ionic'; import { ClickerButton } from './cl...
Fredqin/personal_task_runner
app/components/clickerButton/clickerButton.spec.ts
TypeScript
mit
2,310
<?php namespace zikmont\ContabilidadBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="ctb_movimientos_resumen") * @ORM\Entity(repositoryClass="zikmont\ContabilidadBundle\Repository\CtbMovimientosResumenRepository") */ class CtbMovimientosResumen { /** * @ORM\Id * @ORM\Colum...
wariox3/zikmont
src/zikmont/ContabilidadBundle/Entity/CtbMovimientosResumen.php
PHP
mit
5,658
using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using Abp.Application.Services; using Abp.Application.Services.Dto; using Abp.Authorization; using Abp.Domain.Entities; using Abp.Domain.Repositories; using Abp.Extensions; using Abp.IdentityFramewo...
aspnetboilerplate/aspnetboilerplate-samples
IdentityServerWithEfCoreDemo/aspnet-core/src/IdentityServerWithEfCoreDemo.Application/Users/UserAppService.cs
C#
mit
8,506
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global', 'sap/ui/core/Renderer'], function(jQuery, Renderer) { "use strict"; /** * ObjectNumber ren...
marinho/german-articles
webapp/resources/sap/m/ObjectNumberRenderer-dbg.js
JavaScript
mit
3,233
<?php declare(strict_types=1); /* * The MIT License (MIT) * * Copyright (c) 2014-2017 Spomky-Labs * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace OAuth2Framework\Component\Server\Tests\Stub\Event; use OAuth2Framework\Comp...
OAuth2-Framework/server-library
Tests/Stub/Event/AccessTokenRevokedEventHandler.php
PHP
mit
606
"""Controller for rendering pod content.""" import datetime import mimetypes import os import sys import time from grow.common import utils from grow.documents import static_document from grow.pods import errors from grow.rendering import rendered_document from grow.templates import doc_dependency from grow.templates ...
grow/grow
grow/rendering/render_controller.py
Python
mit
21,264
class AddPublishToSiteVersion < ActiveRecord::Migration[5.0] def change remove_column :author_site_storages, :publish add_column :author_site_versions, :published, :boolean end end
teamco/anthill_layout
db/migrate/20160425125336_add_publish_to_site_version.rb
Ruby
mit
193
# Copyright (C) 2012 Andy Balaam and The Pepper Developers # Released under the MIT License. See the file COPYING.txt for details. from nose.tools import * from libpepper import builtins from libpepper.environment import PepEnvironment from libpepper.vals.all_values import * def PlusEquals_increases_int_value___te...
andybalaam/pepper
old/pepper1/src/test/evaluation/test_plusequals.py
Python
mit
1,124
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import logging import os from clint.textui import prompt from django.core.management.base import BaseCommand from django.core.management.base import CommandError import kolibri from ...utils import db...
lyw07/kolibri
kolibri/core/deviceadmin/management/commands/dbrestore.py
Python
mit
4,759
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Management.Search.Fluent { using Microsoft.Azure.Management.ResourceManager.Fluent.Core; using Microsoft.Azure.Management.Search....
hovsepm/azure-libraries-for-net
src/ResourceManagement/Search/Domain/ICheckNameAvailabilityResult.cs
C#
mit
1,305
# -*- encoding : utf-8 -*- require 'tmail/version' require 'tmail/mail' require 'tmail/mailbox' require 'tmail/core_extensions' require 'tmail/net'
liquidware/saasy
vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail.rb
Ruby
mit
148
using Newtonsoft.Json.Linq; using SolrExpress.Search; using SolrExpress.Search.Parameter; using SolrExpress.Search.Parameter.Validation; using SolrExpress.Utility; namespace SolrExpress.Solr5.Search.Parameter { [AllowMultipleInstances] public sealed class FilterParameter<TDocument> : BaseFilterParameter<TDocu...
solr-express/solr-express
src/SolrExpress.Solr5/Search/Parameter/FilterParameter.cs
C#
mit
817
<?php namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; /** * ProductRepository * * This class was generated by the PhpStorm "Php Annotations" Plugin. Add your own custom * repository methods below. */ class UserRepository extends EntityRepository { }
YX11/timiya
src/AppBundle/Repository/UserRepository.php
PHP
mit
277
import { combineReducers } from 'redux'; import { reducer as form } from 'redux-form'; import { list } from './list'; import { draw } from './draw'; const reducers = combineReducers({ list, draw, form }); export default reducers;
ansonpellissier/gordon-shuffle-react
src/reducers/index.js
JavaScript
mit
233
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'angleApp'; // var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ng...
andreilaza/alt-be-back-server
public/dist/application.js
JavaScript
mit
50,852
/*! * stepviz 0.1.0 (30-05-2016) * https://github.com/suhaibkhan/stepviz * MIT licensed * Copyright (C) 2016 Suhaib Khan, http://suhaibkhan.github.io */ (function() { 'use strict'; // check for dependencies if (typeof window.d3 === 'undefined') { throw 'd3 library not found.'; } // init namespac...
suhaibkhan/stepviz
dist/stepviz.js
JavaScript
mit
30,623
'use strict'; module.exports = function (req, res) { res.statusCode = 401; res.setHeader('X-Frame-Options', 'SAMEORIGIN'); res.setHeader('X-Xss-Protection', '1; mode=block'); res.setHeader('X-Content-Type-Options', 'nosniff'); res.setHeader('Content-Type', 'application/json; charset=utf-8'); res.setHeader...
regalii/regaliator_node
test/tapes/account/failed_info.js
JavaScript
mit
708
<?php require_once('core/action/Action.php'); require_once('core/action/ActionResponse_Default.php'); require_once('model/entities/User.php'); require_once('model/containers/AccessLevelContainer.php'); class Action_user_displayAddForm implements Action { public function run(HttpRequest $httpRequest) { $actionResp...
fabienInizan/WebKernel
modules/user/Action_user_displayAddForm.php
PHP
mit
957
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardHeader from '@material-ui/core/CardHeader'; import CardActions from '@m...
meedan/check-web
src/app/components/user/UserEmail.js
JavaScript
mit
3,974
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About GeyserCoin</source> <translation>Despre GeyserCoin</translation> </message> <message> ...
geysercoin/geysercoin
src/qt/locale/bitcoin_ro_RO.ts
TypeScript
mit
130,407
/* eslint no-unused-vars: 0 */ import { mount, shallow } from 'avoriaz' import should from 'should' import sinon from 'sinon' import { pSwitchbox } from 'prpllnt' describe('switchbox.vue', () => { it('renders a wrapper div with class p-input-group', () => { const value = false const component = shallow(pSwit...
pearofducks/propellant
test/switchbox.spec.js
JavaScript
mit
2,482
<?php /* * This file is part of the Sulu CMS. * * (c) MASSIVE ART WebServices GmbH * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Sulu\Bundle\Sales\OrderBundle\Cart; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Componen...
sulu-io/SuluSalesOrderBundle
Cart/CartManager.php
PHP
mit
23,396
<?php namespace YourApp\App\Newsletter; use Welp\MailchimpBundle\Provider\ProviderInterface; use Welp\MailchimpBundle\Subscriber\Subscriber; use YourApp\Model\User\UserRepository; use YourApp\Model\User\User; class ExampleSubscriberProvider implements ProviderInterface { // these tags should match the one you ad...
welpdev/mailchimp-bundle
src/Provider/ExampleSubscriberProvider.php
PHP
mit
1,790
import java.rmi.Remote; import java.rmi.RemoteException; public interface HeartBeatI extends Remote { public void sendHeartBeat() throws RemoteException; }
jpavelw/SWEN-755
HeartBeatRedundancy/HeartBeatI.java
Java
mit
161
<?php App::uses('AppController', 'Controller'); App::uses('CakeEmail', 'Network/Email'); App::uses('CakeTime', 'Utility'); class CategoriesController extends AppController { public $uses = array( 'SpeedyCake', 'Page', 'User', 'Article', 'Articlefield', 'File', 'Categorie', 'Articlescategorie' ); ...
Mr-Robota/speedy-cake-cms
Controller/CategoriesController.php
PHP
mit
5,139
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import React from 'react'; import { MappingProvider, MappingProviderProps, } from '../mapping/mappingProvider.component'; import { ThemeProvider, ThemePro...
akveo/react-native-ui-kitten
src/components/theme/style/styleProvider.component.tsx
TypeScript
mit
796
using System; using System.Linq; using AdventOfCodeLibrary; using AdventOfCodeLibrary.FileImport; using AdventOfCodeLibrary.Frequencies; namespace Day6 { class Program { static void Main(string[] args) { Part1(); Console.WriteLine(); Part2(); Co...
codemonkey047/AdventOfCode
Day6/Day6/Program.cs
C#
mit
1,471
import pytest from click.testing import CliRunner import doitlive @pytest.fixture(scope="session") def runner(): doitlive.cli.TESTING = True return CliRunner()
sloria/doitlive
tests/conftest.py
Python
mit
171
# frozen_string_literal: true module Analytics class SubjectController < AnalyticsController # rubocop:disable Metrics/PerceivedComplexity # rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/CyclomaticComplexity # rubocop:disable Metrics/AbcSize def index @subject_series = if @...
MindLeaps/tracker
app/controllers/analytics/subject_controller.rb
Ruby
mit
3,998
<?php namespace FMI\ImportBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Prices * * @ORM\Table(name="prices") * @ORM\Entity(repositoryClass="FMI\ImportBundle\Repository\PricesRepository") */ class Prices { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * ...
LAYLSAYF/IMPORT
src/FMI/ImportBundle/Entity/Prices.php
PHP
mit
1,900
// Žè‚ÌŒŸoƒf[ƒ^‚ð•\ަ‚·‚é #include "pxcsensemanager.h" #include "pxchandconfiguration.h" #include <opencv2\opencv.hpp> class RealSenseApp { public: ~RealSenseApp() { if ( senseManager != 0 ){ senseManager->Release(); } } void initilize() { // SenseManager‚ð...
RealSense-Book/RealSense-Book-CPP
CH5-1_3/RealSenseSample/main.cpp
C++
mit
6,752
# see https://github.com/cucumber/aruba#jruby-tips Aruba.configure do |config| config.before_cmd do |cmd| set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived set_env('JAVA_OPTS', "-d32 #{ENV['JAVA_OPTS']}") # force jRuby to use client JVM for faster startu...
alexrothenberg/ammeter
features/support/aruba_timeout.rb
Ruby
mit
365
package alec_wam.CrystalMod.entities.minions.worker; import net.minecraft.entity.EntityLiving; import net.minecraft.pathfinding.Path; import net.minecraft.pathfinding.PathNavigate; import net.minecraft.pathfinding.WalkNodeProcessor; import net.minecraft.util.math.BlockPos; import net.minecraft.world.ChunkCache;...
Alec-WAM/CrystalMod
src/main/java/alec_wam/CrystalMod/entities/minions/worker/PathFinderWorker.java
Java
mit
1,491
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto package google_devtools_clouderrorreporting_v1beta1 import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "go.pedge.io/pb/go/google/api" import goo...
peter-edge/pb
go/google/devtools/clouderrorreporting/v1beta1/report_errors_service.pb.go
GO
mit
7,473
# # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. class Hhvm488 < Formula desc "JIT compiler and runtime for the Hack language" homepage "http://hhvm.com/" head "ht...
hhvm/homebrew-hhvm
Formula/hhvm-4.88.rb
Ruby
mit
9,629
# frozen_string_literal: true FactoryBot.define do factory :access_procedure, class: "Renalware::Accesses::Procedure" do type { create(:access_type) } side { :right } performed_on { Time.zone.today } end end
airslie/renalware-core
spec/factories/accesses/procedures.rb
Ruby
mit
225
module.exports = function (grunt) { "use strict"; require('matchdep').filterDev("grunt-*").forEach(grunt.loadNpmTasks); //grunt.option('verbose', true); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), compass: { prod: { options: { ...
dbondus/code-samples
js/2015-chat-application/Gruntfile.js
JavaScript
mit
3,745
const fs = require('fs'); const de = require('./locale/de.json'); const en = require('./locale/en.json'); const esMX = require('./locale/esMX.json'); const es = require('./locale/es.json'); const fr = require('./locale/fr.json'); const it = require('./locale/it.json'); const ja = require('./locale/ja.json'); const ko ...
DestinyItemManager/DIM
src/build-browsercheck-utils.js
JavaScript
mit
1,744
module Omnitest class Psychic module Execution class TokenStrategy < DefaultStrategy def execute(*extra_args) template = File.read(absolute_file) # Default token pattern/replacement (used by php-opencloud) should be configurable token_handler = Tokens::RegexpTokenHandle...
omnitest/psychic
lib/omnitest/psychic/execution/token_strategy.rb
Ruby
mit
2,030
/* html2canvas 0.5.0-alpha2 <http://html2canvas.hertzen.com> Copyright (c) 2015 Niklas von Hertzen Released under MIT License */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof windo...
ao-dexter/html2canvas
dist/html2canvas.js
JavaScript
mit
154,883
<?php namespace Mtls\ProjectBundle\Entity; use Doctrine\ORM\EntityRepository; /** * MessageRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class MessageRepository extends EntityRepository { public function findOrderedByDate() { return $this->g...
tolgap/Project56
src/Mtls/ProjectBundle/Entity/MessageRepository.php
PHP
mit
462
import assert = require('assert'); import { ConnectionPoolTestFactory } from './ConnectionPoolTestFactory'; import { PoolConnection } from 'mysql'; export class DatabaseUtilities { public static clean(callback:(err:Error)=>void) { let pool = ConnectionPoolTestFactory.create(); let connection:P...
joefallon/mydal
test/config/DatabaseUtilities.ts
TypeScript
mit
2,048
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace VoteApp.Models.AccountViewModels { public class RegisterViewModel { [Required] [EmailAddress] [Display(Name = "Email")] public...
GOlssn/VoteApp
Models/AccountViewModels/RegisterViewModel.cs
C#
mit
861
// stdafx.cpp : source file that includes just the standard includes // AllyTester.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
AndrewAMD/AllyInvestZorroPlugin
AllyTester/stdafx.cpp
C++
mit
289
using System; using System.Collections.Generic; using System.IO; using System.Windows.Forms; using KojtoCAD.KojtoCAD3D.UtilityClasses; #if !bcad using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.Geometry; using Autodesk.AutoC...
kojtoLtd/KojtoCAD
KojtoCAD.2012/KojtoCAD3D/Placement.cs
C#
mit
138,960
print ("Hello python world! My first python script!!") print ("feeling excited!!")
balajithangamani/LearnPy
hello.py
Python
mit
82
<?php /** * キーと値の取得サンプル */ //キーの取得(連想配列) //インデックスはいてるでも使用できますが //あまり意味がないため割愛します。 $array_associat = array( 'blue' => '空', 'yellow' => 'バナナ', 'red' => '血液' ); $keys = array_keys($array_associat); var_dump($keys); //値の取得(連想配列) //インデックスはいてるでも使用できますが //あまり意味がないため割愛します。 $values = array_values($...
Kaoru-1127/php
fuel/app/views/array/array_sample5.php
PHP
mit
568
<?php namespace Application\Modules\Rest; use \Phalcon\Mvc\Router\Group; /** * Routes Rest V1. Api router component * * @package Application\Modules\Rest * @subpackage Routes * @since PHP >=5.6 * @version 1.0 * @author Stanislav WEB | Lugansk <stanisov@gmail.com> * @copyright Stanislav WEB * @f...
stanislav-web/Phalcon-development
Application/Modules/Rest/Routes.php
PHP
mit
1,560
package iso20022 // Choice between a standard code or proprietary code to specify a rate type. type RateType49Choice struct { // Standard code to specify the type of gross dividend rate. Code *GrossDividendRateType2Code `xml:"Cd"` // Proprietary identification of the type of gross dividend rate. Proprietary *Gen...
fgrid/iso20022
RateType49Choice.go
GO
mit
601
# -*- coding: utf-8 -*- require "spec_helper" require "date" describe Date do describe "Meiji period to Heisei period" do it "should parse gregorian calendar date correctly" do Date.parse("2012-02-15").should == Date.new(2012, 2, 15) Date.parse("2012/02/15").should == Date.new(2012, 2, 15) end ...
meltedice/wareki
spec/wareki/default_date_spec.rb
Ruby
mit
2,538
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sjl.mlbapp.gui.util; import java.awt.GridBagConstraints; import java.awt.Insets; /** * * @author samlevin */ public class GBConstrManager extends GridBagConstraints { public GBConstrManager...
levinsamuel/rand
java/MLB2012App/src/main/java/sjl/mlbapp/gui/util/GBConstrManager.java
Java
mit
2,162
module Confluence class BlogEntry < Record extend Findable record_attr_accessor :id => :entry_id record_attr_accessor :space record_attr_accessor :title, :content record_attr_accessor :publishDate record_attr_accessor :url def store # reinitialize blog entry after storing it ...
sspinc/confluencer
lib/confluence/blog_entry.rb
Ruby
mit
737
<?php /** * Emy Itegbe * CMPE 207 * 008740953 * **/ ?> <!DOCTYPE html> <html> <head> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bo...
Budweiser-CMPE207/FileSharingSystem_CMPE207
Emy Itegbe/Php/webclient.php
PHP
mit
2,891
using Microsoft.Azure.Mobile.Server; namespace Miles.People.MobileAppService.DataObjects { public class Item : EntityData { public string Text { get; set; } public string Description { get; set; } } }
pjsamuel3/xPlatformDotNet
app/Miles.People/Miles.People/Miles.People.MobileAppService/DataObjects/Item.cs
C#
mit
232
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2021 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <httpserver.h> #include <index/blockfilterindex.h> #include <index/coinstatsi...
GroestlCoin/bitcoin
src/rpc/misc.cpp
C++
mit
36,710