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
<?php /** * @link https://github.com/gromver/yii2-platform-core.git#readme * @copyright Copyright (c) Gayazov Roman, 2014 * @license https://github.com/gromver/yii2-platform-core/blob/master/LICENSE * @package yii2-platform-core * @version 1.0.0 */ namespace gromver\platform\core\modules\menu\widgets\events; u...
gromver/yii2-platform-core
modules/menu/widgets/events/MenuItemRoutesEvent.php
PHP
mit
629
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("06....
whywherewhat/PFundExtendedMay2017
08.Dictionaries-Exercises/06.FilterBase/Properties/AssemblyInfo.cs
C#
mit
1,397
require 'commander' require_relative "edit" module ClusterFsck module Commands class Create include ClusterFsckEnvArgumentParser def run_command(args, options = {}) raise ArgumentError, "must provide a project name" if args.empty? set_cluster_fsck_env_and_key_from_args(args) ...
Amicus/clusterfsck
lib/clusterfsck/commands/create.rb
Ruby
mit
496
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): m = {} def findFrequentTreeSum(self, root): """ :type root: TreeNode :rtype: List[int] ...
Jspsun/LEETCodePractice
Python/MostFrequentSubtreeSum.py
Python
mit
849
#include "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #include <QDataWidgetMapper> #include <QMessageBox> EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mod...
skullzdev/skullz
src/qt/editaddressdialog.cpp
C++
mit
3,563
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <string> #include <vector> namespace { char constexpr START = 'S'; char constexpr FINISH = 'F'; char constexpr FREE = '*'; char constexpr MOUNTAIN = '^'; char constexpr PORT = 'P'; char constexpr ...
snewell/codeeval
challenge-0207.cpp
C++
mit
5,536
<?php function generate_random_str($length = 10, $uppercase = false) { if($uppercase) { return substr(str_shuffle("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $length); } else { return substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $length); }...
jrdncchr/directmail
application/helpers/danero_helper.php
PHP
mit
2,419
/** * 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. */ package com.microsoft.azure.management.appservice.v2019_08_01; import com.microsoft.azu...
selvasingh/azure-sdk-for-java
sdk/appservice/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/appservice/v2019_08_01/MultiRolePools.java
Java
mit
1,543
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Casio; use JMS\Serializer\Annotation\ExclusionPolicy; u...
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/Casio/QualityMode.php
PHP
mit
1,121
using System; using System.CodeDom; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using WienerLinienApi.Information; using WienerLinienApi.Model; using WienerLinienApi.RealtimeData.Monitor; namespac...
KarimDarwish/WienerLinien.NET
WienerLinienApi.Samples.WPF_Proper/Model/NewFavoriteStop.cs
C#
mit
4,931
package com.medicapital.client.doctor.work; import java.util.Date; import com.medicapital.common.entities.Day; interface SetterWorkHoursView { void setDay(Day day); void setDateFrom(Date date); void setDateTo(Date date); void setStartHour(int hour); void setStartMinutes(int minutes); void...
m-wrona/gwt-medicapital
client/com/medicapital/client/doctor/work/SetterWorkHoursView.java
Java
mit
541
package org.gluu.oxauth.ws.rs; import static org.gluu.oxauth.client.Asserter.assertOk; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; import java.util.Arrays; import java.util.List; import java.util.UUID; import org.gluu.oxauth.BaseTest; import org.gluu.oxauth.client.Aut...
GluuFederation/oxAuth
Client/src/test/java/org/gluu/oxauth/ws/rs/RevokeSessionHttpTest.java
Java
mit
4,099
/*--------------------------------------------------------------------------*/ #include "evolution/Generation.h" #include "evolution/Individual.h" #include "game/Game.h" #include "game/Grid.h" #include "game/Player.h" #include "gui/GenerationView.h" #include "ui_GenerationView.h" /*-------------------------------------...
dKirill/evolution
src/gui/GenerationView.cpp
C++
mit
2,800
import { AppPage } from './app.po'; describe('cliente-radio App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to app!'); }); });
ILoveYouDrZaius/cliente-radio
e2e/app.e2e-spec.ts
TypeScript
mit
295
#! /usr/bin/env ruby breakpoints = [ {w: '768', name: '768'}, {w: '1536', name: '768@2x'}, {w: '992', name: '992'}, {w: '1984', name: '992@2x'}, {w: '1200', name: '1200'}, {w: '2400', name: '1200@2x'}, {w: '2560', name: '2560'} ] bg_queries = <<eos $retina: '(min-resolution: 2dppx)'; $bg-queries: ( 'f...
jacobthemyth/jacobthemyth.github.io
scripts/images.rb
Ruby
mit
2,380
namespace AgileObjects.AgileMapper.PerformanceTesting.ConcreteMappers.Mapster { using System.Collections.Generic; using System.Linq; using AbstractMappers; using global::Mapster; using static TestClasses.Complex; public class MapsterComplexTypeMapperSetup : ComplexTypeMapperSetupBase { ...
agileobjects/AgileMapper
AgileMapper.PerformanceTesting/ConcreteMappers/Mapster/MapsterComplexTypeMapperSetup.cs
C#
mit
1,006
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
nadirafirinda/shopatginza
application/config/config.php
PHP
mit
18,446
var test = require('tape'); var last = require('../../packages/array-last'); test('non empty arrays return last', function (t) { t.plan(4); var testArrays = [ [1, 2, 3, 4, 5], [[1, 2, 3], [4, 5, 6], [7, 8, 9]], [{a: 1}, {b: 2}, {c: 3}, {d: 4}], ['a', 1, true, /r/g] ]; testArrays.forEach(functio...
jonathan-fielding/just
test/array-last/index.js
JavaScript
mit
716
// @flow import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { getEncryptedWIF, resetEncryptedWIF, } from '../../../modules/generateEncryptedWIF' import EncryptQR from './EncryptQR' const mapStateToProps = (state: Object) => ({ encryptedWIF: getEncryptedWIF(state), }) const ...
hbibkrim/neon-wallet
app/components/Settings/EncryptQR/index.js
JavaScript
mit
528
<TS language="sn" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Gadzira Kero Itsva</translation> </message> <message> <source>&amp;New</source> <translation>Itsva</translation> </message> <messag...
Phonemetra/TurboCoin
src/qt/locale/turbocoin_sn.ts
TypeScript
mit
9,180
import threading import wx from styled_text_ctrl import StyledTextCtrl class ThreadOutputCtrl(StyledTextCtrl): def __init__(self, parent, env, auto_scroll=False): StyledTextCtrl.__init__(self, parent, env) self.auto_scroll = auto_scroll self.__lock = threading.Lock() self.__queue ...
shaurz/devo
thread_output_ctrl.py
Python
mit
1,266
# frozen_string_literal: true # encoding: utf-8 require 'mongoid/association/referenced/has_and_belongs_to_many/binding' require 'mongoid/association/referenced/has_and_belongs_to_many/buildable' require 'mongoid/association/referenced/has_and_belongs_to_many/proxy' require 'mongoid/association/referenced/has_and_belo...
massayoshi/mongoid
lib/mongoid/association/referenced/has_and_belongs_to_many.rb
Ruby
mit
8,624
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-12"> <h2>All Bookings</h2> <hr> </div> <div class="col-md-2"> <a href="/bookings/create" class="btn btn-primary">Make New Booking</a> </div> <div class="col-md-10"> ...
xahy/container-management-system
resources/views/bookings/index.blade.php
PHP
mit
1,706
<?php namespace DCS\Form\PointFormFieldBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link ht...
damianociarla/DCSPointFormFieldBundle
DependencyInjection/Configuration.php
PHP
mit
890
<?php namespace AppBundle\Controller; use AppBundle\Entity\Comment; use AppBundle\Form\CommentType; use AppBundle\Form\ProjectType; use AppBundle\Entity\Message; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; class CommentController extends Controll...
benleneve/filrouge
src/AppBundle/Controller/CommentController.php
PHP
mit
8,967
import cgi from http.server import HTTPServer, BaseHTTPRequestHandler from database_setup import Base, Restaurant from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from test.restaurant_renderer import RestaurantRenderer engine = create_engine('sqlite:///restaurantmenu.db') Base.metadata.b...
MFry/pyItemCatalog
vagrant/itemCatalog/test/webserver.py
Python
mit
6,549
class Organizer < ActiveRecord::Base devise :all end
bitfluent/wheneva
vendor/plugins/devise/test/rails_app/app/models/organizer.rb
Ruby
mit
55
class ChangeStatusOnTeamUserShips < ActiveRecord::Migration[5.0] def change change_column :team_user_ships, :status, :integer, :using => 'case when status then 1 else 0 end' end end
ShowingCloud/Cancri
db/migrate/20170209083632_change_status_on_team_user_ships.rb
Ruby
mit
190
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace ExemploCRUD { static class Program { /// <summary> /// Ponto de entrada principal para o aplicativo. /// </summary> [STAThread] ...
SaviHex/TP_BD2
Consulta/TP_CRUD/Exemplo_CRUD/ExemploCRUD/ExemploCRUD/Program.cs
C#
mit
549
require 'spec_helper' describe Saml::Elements::EntitiesDescriptor do let(:entities_descriptor) { FactoryBot.build(:entities_descriptor) } describe "Optional fields" do [:name, :valid_until, :cache_duration, :signature].each do |field| it "should have the #{field} field" do expect(entities_descri...
digidentity/libsaml
spec/lib/saml/elements/entities_descriptor_spec.rb
Ruby
mit
2,423
package main import ( "os/user" "fmt" "github.com/bestform/monkey/repl" "os" ) func main() { activeUser, err := user.Current() if err != nil { panic(err) } fmt.Printf("Hello %s! This is the Monkey programming language!\n", activeUser.Username) fmt.Println("Feel free to type...
bestform/monkey
main.go
GO
mit
375
<?php class Laporan1111a1Controller extends \BaseController { /** * konstruktor */ public function __construct() { $this->beforeFilter('auth'); } /** * data faktur laporan 1111b3 * * @return View */ public function index() { } /** * export ke pdf * * @return ...
risatya/smartlogicpro
app/controllers/Laporan1111a1Controller.php
PHP
mit
725
<?php namespace Letim\SecureBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manag...
WoolTeam/letim
src/Letim/SecureBundle/DependencyInjection/LetimSecureExtension.php
PHP
mit
881
<?php session_start(); require_once '../../vendor/autoload.php'; use Emall\Transaction\Bank; use Emall\Auth\Redirect; $seller = new Bank; $home_url = '../../index.php'; if (isset($_POST['seller_bankID'])) { $seller_bankID = $_POST['seller_bankID']; $seller->EditDataBank($seller_bankID); } else...
rezawikan/skripsi
seller/function/Bank/EditDataBank.php
PHP
mit
390
require 'rails_helper' describe WriMetadata::Source, type: :model do it 'should be invalid when name not present' do expect( FactoryBot.build(:wri_metadata_source, name: nil) ).to have(1).errors_on(:name) end end
Vizzuality/climate-watch
spec/models/wri_metadata/source_spec.rb
Ruby
mit
232
# -*- coding: utf-8 -*- from .store import Store from ..tagged_cache import TaggedCache from ..tag_set import TagSet class TaggableStore(Store): def tags(self, *names): """ Begin executing a new tags operation. :param names: The tags :type names: tuple :rtype: cachy.tag...
sdispater/cachy
cachy/contracts/taggable_store.py
Python
mit
497
# -*- encoding : utf-8 -*- class Top4R::Client include Top4R::ClassUtilMixin @@no_login_required_methods = { :user => { :info => 'taobao.user.get', :multi_info => 'taobao.users.get' }, :trade => {}, :area => { :list => 'taobao.areas.get' }, :logistic_company => { :...
biti/top4r
lib/top4r/client.rb
Ruby
mit
920
/** @module ember-ui-components */ import Component from '@ember/component'; import ClickOutsideMixin from 'ember-ui-components/mixins/click-outside'; import layout from '../templates/components/uic-context-menu-container'; import setPosition from 'ember-ui-components/utils/set-position'; import getMousePosition from...
lozjackson/ember-ui-components
addon/components/uic-context-menu-container.js
JavaScript
mit
3,147
from pandac.PandaModules import * from toontown.toonbase.ToonBaseGlobal import * from direct.directnotify import DirectNotifyGlobal from direct.fsm import StateData from direct.showbase.PythonUtil import PriorityCallbacks from toontown.safezone import PublicWalk from toontown.launcher import DownloadForceAcknowledge im...
ksmit799/Toontown-Source
toontown/hood/Place.py
Python
mit
37,078
<?php namespace CentraleReferencementBundle\Repository; /** * PourquoiAdhererRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class PourquoiAdhererRepository extends \Doctrine\ORM\EntityRepository { }
ViraxDev/centrale_referencement
src/CentraleReferencementBundle/Repository/PourquoiAdhererRepository.php
PHP
mit
271
require 'brick/mixin' require 'colorize' module Brick module Models class Service include ::Brick::Mixin::Colors @@waiting_pool = [] attr_accessor :client, :name, :links, :service_config_hash, :container, :volumes_from, :image, :image_name def self.wait_for_de...
cheyang/docker_brick
lib/brick/models/service.rb
Ruby
mit
7,080
/****************************************************************************** The MIT License (MIT) Copyright (c) 2015 Dmitry Root <droot@deeptown.org> 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 S...
dmitry-root/home-automation
firmware/ti/heater/main.cpp
C++
mit
2,216
require File.dirname(__FILE__) + '/../test_helper' class DefaultControllerTest < ActionController::TestCase def setup @controller = DefaultController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end context "get home page" do setup do ...
jbasdf/disguise
test/rails_test/test/functional/default_controller_test.rb
Ruby
mit
1,661
package apimanagement // 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 regen...
Azure/azure-sdk-for-go
services/apimanagement/mgmt/2019-12-01/apimanagement/issue.go
GO
mit
11,883
/*=========================================================================== * Licensed Materials - Property of IBM * "Restricted Materials of IBM" * * IBM SDK, Java(tm) Technology Edition, v8 * (C) Copyright IBM Corp. 1999, 1999. All Rights Reserved * * US Government Users Restricted Rights - Use, duplication...
flyzsd/java-code-snippets
ibm.jdk8/src/java/security/interfaces/RSAKey.java
Java
mit
1,040
namespace Chloe.Server.Models { public class ArticleCategory: BaseEntity { public ArticleCategory() { } } }
QuinntyneBrown/azure-search-getting-started
src/Chloe.Server.Models/ArticleCategory.cs
C#
mit
147
import React from 'react' const columnTypeProptypes = React.PropTypes.oneOf([ 'boolean', 'custom', 'text', ]) export default columnTypeProptypes
npoirey/16AGR
frontend/src/js/core/proptypes/table/columnTypeProptypes.js
JavaScript
mit
153
import test from 'ava'; import deep from 'deep-equal'; import fn from './'; const target = { key1: 'value1', key2: 1, key3: [3, 'value3'], key4: { key41: 'value41', key42: 'value42' }, key5: [ 'value51', 'value51', 'value51' ], key6: { key61: { key611: [ 'value6111', 'value6112' ] } }, ke...
ragingwind/field-value
test.js
JavaScript
mit
1,214
<?php /** * @name Yinhoomail * @desc 通过亿邻(Yinhoo.com)提供的邮件接口来发送邮件 * @author 阿发@YOKA * @createtime 2009-8-12 * @updatetime * 说明: * 因为同是发送邮件功能,为了让大家使用习惯,及以后更改方便 * 大部分函数参数及用法参考并沿用了了Mail.class.php * * 使用方法: * * $ToAddress="alfa@yoka.com"; * $Subject="This is 测试"; * $HtmlCode = <<<HTMLCODE * ...
jimmydong/YEPF3
ext/YinHooMail.class.php
PHP
mit
8,354
const util = require('util'); /** * The request was invalid for a specific reason. * * @param {*} message A message describing the issue. * * @constructor */ const InvalidRequest = function (message) { Error.captureStackTrace(this, this); this.message = message; }; util.inherits(InvalidRequest, Error); Inva...
SOHU-Co/kafka-node
lib/errors/InvalidRequestError.js
JavaScript
mit
400
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-09 16:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Tag', ...
internship2016/sovolo
app/tag/migrations/0001_initial.py
Python
mit
666
// // BodyPartMessage.cs // // Author: Jeffrey Stedfast <jestedfa@microsoft.com> // // Copyright (c) 2013-2020 .NET Foundation and Contributors // // 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 S...
jamie-dainton/MailKit
MailKit/BodyPartMessage.cs
C#
mit
3,919
require.ensure([], function(require) { require("./105.async.js"); require("./211.async.js"); require("./423.async.js"); require("./845.async.js"); }); module.exports = 846;
skeiter9/javascript-para-todo_demo
webapp/node_modules/webpack/benchmark/fixtures/846.async.js
JavaScript
mit
172
require 'oauth' require 'json' require 'mime/types' require 'wrike/client' module Wrike VERSION = '0.1.0' end
mscifo/wrike
lib/wrike.rb
Ruby
mit
114
/* * The MIT License * * Copyright (c) 2014-2014 Efthymios Sarmpanis http://esarbanis.github.io/roolr * * 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...
esarbanis/roolr
src/main/java/com/github/esarbanis/roolr/SimpleEvaluationContext.java
Java
mit
2,050
/** * @overview datejs * @version 1.0.0-beta-2014-03-25 * @author Gregory Wild-Smith <gregory@wild-smith.com> * @copyright 2014 Gregory Wild-Smith * @license MIT * @homepage https://github.com/abritinthebay/datejs */ /* * DateJS Culture String File * Country Code: es-HN * Name: Spanish (Honduras) * Format:...
ubergrape/datejs
build/development/date-es-HN.js
JavaScript
mit
130,170
<?php /** * Conn for Lookupd * User: moyo * Date: 31/03/2017 * Time: 4:53 PM */ namespace NSQClient\Connection; use NSQClient\Access\Endpoint; use NSQClient\Connection\Transport\HTTP; use NSQClient\Exception\LookupTopicException; use NSQClient\Logger\Logger; class Lookupd { /** * @var string */ ...
moolex/nsqclient-php
src/Connection/Lookupd.php
PHP
mit
2,077
import * as React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { demos, docs, requireDemo, } from '!@material-ui/markdown/loader!docs/src/pages/components/menus/menus.md'; export default function Page() { return <MarkdownDocs demos={demos} docs={docs} requireDemo={r...
mbrookes/material-ui
docs/pages/components/menus.js
JavaScript
mit
338
<?php namespace PhpBench\Attributes; use Attribute; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] final class Skip { }
phpbench/phpbench
lib/Attributes/Skip.php
PHP
mit
141
#if !NOT_UNITY3D using System.IO; using UnityEditor; using UnityEngine; using Zenject.Internal; namespace Zenject.ReflectionBaking { public static class ReflectionBakingMenuItems { [MenuItem("Assets/Create/Zenject/Reflection Baking Settings", false, 100)] public static void CreateReflectionBak...
modesttree/Zenject
UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingMenuItems.cs
C#
mit
707
<?php class Yamp_Layout_Block_Left extends Yamp_Layout_Block_Abstract { /** * construct */ public function _construct() { $this->setTemplate("html/left.phtml"); } }
eisbehr-/yamp-framework
core/Layout/Block/Left.php
PHP
mit
175
import {Component} from '@angular/core'; import {TodoService} from './todo-service'; @Component({ selector: 'todo-app', template: ` <div> <todo-input></todo-input> <hr/> <todo-list></todo-list> </div> ` }) export default class TodoApp { }
clbond/augury
example-apps/kitchen-sink-example/source/components/todo-app/todo-app.ts
TypeScript
mit
263
from django.core.urlresolvers import reverse from django.test import TestCase from django.utils import timezone from .models import Course from .models import Step class CourseModelTests(TestCase): def test_course_creation(self): course = Course.objects.create( title="Python Regular Expression...
lorimccurry/learning_site
courses/tests.py
Python
mit
2,724
'use strict'; import View from './index'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import * as ReactTestUtils from 'react-addons-test-utils'; describe('Button test', function () { it('Should render button tag', function () { const view: React.Component<any, {}> = ReactTestUti...
Connormiha/todo-list
src/ts/components/common/Button/index.test.tsx
TypeScript
mit
1,403
typeSearchIndex = [{"p":"main","l":"CheckingSSN"}]
tliang1/Java-Practice
Practice/Intro-To-Java-8th-Ed-Daniel-Y.-Liang/Chapter-9/Chapter09P01/doc/type-search-index.js
JavaScript
mit
50
var React = require("react"); var HttpServices = require("../services/HttpServices"); var update = require("react-addons-update"); module.exports = React.createClass({ getInitialState: function() { return { contentEditable: false } }, onDoubleClick: function() { if (this.props.editable && !th...
chenjic215/search-doctor
node_modules/cheese-toastie/docs/react-components/docs/ContentEditable.js
JavaScript
mit
1,833
<?php echo Asset::css('product.css'); ?> <div class="pay-panel"> <?php if(isset($status) && $status):?> <div class="panel-head"> <h2 class="title-chg"><span class="icon icon-succeed"></span>恭喜您, 支付成功!</h2> <div style="padding: 40px;text-align: center"> ...
lextel/evolution
fuel/app/views/payment/return.php
PHP
mit
1,011
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CloudCompare.Web.FluentSecurity.Policy { internal class LazySecurityPolicy<TSecurityPolicy> : ILazySecurityPolicy where TSecurityPolicy : ISecurityPolicy { public Type PolicyType { ...
protechdm/CloudCompare
CloudCompare.Web/FluentSecurity/Policy/LazySecurityPolicy.cs
C#
mit
1,444
Locations = new Mongo.Collection("locations"); Locations.allow({ insert: function(userId) { return !!userId; } }); Meteor.methods({ addLocation: function(placeId) { Locations.insert({place_id: placeId}); } });
andriyl/raplanet
lib/collections/locations.js
JavaScript
mit
243
import DS from 'ember-data'; /* global moment */ var Pairing = DS.Model.extend({ startDate: DS.attr('date'), endDate: DS.attr('date'), users: DS.hasMany('user', {async: true}), logs: DS.hasMany('log', {async: true}), isEnded: function(){ return +this.get('endDate') <= +moment().toDate(); }.property('e...
alicht/buddybuddy
ember/app/models/pairing.js
JavaScript
mit
906
/* * The MIT License (MIT) * * Copyright (c) Gabriel Harris-Rouquette * * 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 * ...
AfterKraft/KraftRPG-API
src/main/java/com/afterkraft/kraftrpg/api/effect/property/TimedProperty.java
Java
mit
1,789
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present 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 React from 'react'; ...
SergeyGuns/test-site
src/about/about.js
JavaScript
mit
937
var crypto = require('crypto'); /** * 加密算法(md5 → 加盐 → md5) * 依赖: crypto * @param string 源字符串 * @param salt 盐 * @returns {string} */ function communism(string, salt) { var str = md5Hash(string); str = salt + str; str = md5Hash(str); return str; } /** * md5 hash散列 * @param string 源字符串 * @return string ...
mecoepcoo/innocent-blog
lib/hash.js
JavaScript
mit
1,286
<?php /* * @author M2E Pro Developers Team * @copyright M2E LTD * @license Commercial use is forbidden */ class Ess_M2ePro_Block_Adminhtml_Amazon_Template_Description_Category_Chooser_Tabs_Recent extends Mage_Adminhtml_Block_Widget { protected $_selectedCategory = array(); //#################...
portchris/NaturalRemedyCompany
src/app/code/community/Ess/M2ePro/Block/Adminhtml/Amazon/Template/Description/Category/Chooser/Tabs/Recent.php
PHP
mit
1,419
/** * */ package jmeter; /** * @author ricardo * */ public class SeleniumTest { /** * */ public SeleniumTest() { } /** * @param args */ public static void main(String[] args) { } /* * package br.com.zenvia.test; import java.io.IOException; import java.lang.reflect.Method; import jav...
ricardobaumann/jmeter_web_app_test
src/main/java/jmeter/SeleniumTest.java
Java
mit
3,941
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. Rails.a...
rcsole/iron-alumni
config/initializers/assets.rb
Ruby
mit
382
const _ = require('lodash'); const fs = require('fs'); module.exports = (path, validationFailures) => { let jsonRaw; let json; try { jsonRaw = fs.readFileSync(path); } catch (err) { if (err.code === 'ENOENT') { validationFailures.push(`Cannot find "${path}"`); } else { throw err; ...
fluxsauce/dashing-reporter
lib/loadJson.js
JavaScript
mit
533
#!/usr/bin/ruby -wKU # -*- coding: utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'nkf' describe "Kana" do it "オプション'n'によって '0'を'0'に変換できること" do Kana.kana('0','n').should == '0' end it "オプション'r'によって 'a'を'a'に変換できること" do Kana.kana('a','r').should == 'a' end it "オプシ...
miyucy/kana
spec/kana_spec.rb
Ruby
mit
6,351
/** * Created by archheretic on 04.04.17. */ require("./artifacts/src/root.android.js");
Archheretic/ParkingLotTrackerMobileApp
index.android.js
JavaScript
mit
90
package kpc.common.utils; import java.util.Arrays; public class ArgsParserTest { public void testParse() throws Exception { System.out.println(Arrays.toString(ArgsParser.parse("\"Hello World\" \"Test World\""))); } }
BBoldt/KPComputers
src/test/java/kpc/common/utils/ArgsParserTest.java
Java
mit
239
module AlexaRuby # Response for Amazon Alexa service request class Response # Initialize new response # # @param request_type [Symbol] AlexaRuby::Request type # @param version [String] Amazon Alexa SDK version def initialize(request_type, version = '1.0') @req_type = request_type @re...
mulev/alexa-ruby
lib/alexa_ruby/response/response.rb
Ruby
mit
7,547
# encoding: UTF-8 # Some monkeypatches to the `Integer` class. class Integer # Convert this number to a given `base`. # @param (see Bases::Number#to_base) # @return [String] # @see Bases::Number#to_base def to_base(base, opts = {}) Bases.val(self).to_base(base, opts) end # Convert this number in bin...
whatyouhide/bases
lib/bases/monkeypatches/integer.rb
Ruby
mit
557
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03.Animals { public class Dog { public string Name { get; set; } public int Age { get; set; } public int NumberOfLegs { get; set; } public sta...
vankatalp360/Programming-Fundamentals-2017
Objects and Simple Classes - More Exercises/03. Animals/Dog.cs
C#
mit
486
package model; public class InputInfo { private String compiler_version; private String language; private String code_text; private String compiler_option; public String getCompiler_version() { return compiler_version; } public void setCompiler_version(String compiler_version) { ...
GainSury/eClang
src/model/InputInfo.java
Java
mit
884
<?php /** * This file is part of the PropelBundle package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ namespace Propel\PropelBundle\Tests\DataFixtures\Loader; use Propel\PropelBundle\Tests\DataFixtu...
phpchap/mainhostel
vendor/propel/propel-bundle/Propel/PropelBundle/Tests/DataFixtures/Loader/YamlDataLoaderTest.php
PHP
mit
17,260
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators class Migration(migrations.Migration): dependencies = [ ('django_graph', '0001_initial'), ('cyborg_identity', '0001_initial'), ] operations = [ ...
shawnhermans/cyborg-identity-manager
cyborg_identity/migrations/0002_iscontactemailaddress_iscontactphonenumber_phonenumber.py
Python
mit
2,204
// import React from 'react'; // import { shallow } from 'enzyme'; // import About from '../index'; describe('<About />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(true); }); });
mhoffman/CatAppBrowser
app/components/About/tests/index.test.js
JavaScript
mit
226
// ------------------------------------------------------ // SwarmOps - Numeric and heuristic optimization for Java // Copyright (C) 2003-2011 Magnus Erik Hvass Pedersen. // Please see the file license.txt for license details. // SwarmOps on the internet: http://www.Hvass-Labs.org/ // -----------------------------...
gto76/sphere-swarm-optimization
src/sso/pso/random/Random.java
Java
mit
4,104
import $ from "jquery" import Template from "hb-template" import _ from "lodash" const renderNavigation = (customerDetails) => { const navigation = Template.Navigation(customerDetails) $('#customer-details').append(navigation) } const createPostalAddress = (medium) => { return medium.street1 + ', ' + medium.cit...
avinandi/demo-project-poc
app/js/customerDetails.js
JavaScript
mit
1,416
<!doctype html> <html class="fixed sidebar-left-collapsed"> <head> <?php $title = "U-Dashboard"; include 'partials/head.php'; ?> <style type="text/css"> <?php foreach ($types as $type){ $color = dechex(hexdec($type['color']) + 60); ...
CamilaAlvarez/IndicadoresDCC
application/views/index.php
PHP
mit
5,084
#include "app.h" #include <QtWidgets/QApplication> #include <QLibraryInfo> int main(int argc, char *argv[]) { QApplication a(argc, argv); App w; w.show(); return a.exec(); }
patemckin/HestonOptions
OptCalc/App/main.cpp
C++
mit
181
/* * grunt-fontgen * https://github.com/agentk/grunt-fontgen * * Copyright 2015 Karl Bowden * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unl...
agentk/grunt-fontgen
Gruntfile.js
JavaScript
mit
2,128
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* * 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 privilege * * @author loong */ class ...
chengsann/citest
application/controllers/admin/privilege.php
PHP
mit
2,565
class CreatePages < ActiveRecord::Migration[5.0] def change create_table :pages do |t| t.string :title t.string :slug t.text :text t.timestamps null: false end end end
CollegeSTAR/collegestar_org
db/migrate/20161107195717_create_pages.rb
Ruby
mit
204
<?php namespace SuProfile\BlogBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\ExecutionContextInterface; /** * SuProfile\BlogBundle\Entity\Article * * @ORM\Table(name="article") * @ORM\En...
jlafay/SuProfile
src/SuProfile/BlogBundle/Entity/Article.php
PHP
mit
4,382
import React, { Component } from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts(); } renderPosts() { return _.map(t...
arianithetemi/ReactBlog
src/components/posts_index.js
JavaScript
mit
1,050
class Api::ConfirmationsController < ApplicationController def create @confirmation = Confirmation.new(confirmation_params) @confirmation.user_id = current_user.id @home = Home.find(confirmation_params[:home_id]) start_date = confirmation_params[:start_date].to_date end_date = confirmation_params...
qydchen/SafeHavn
app/controllers/api/confirmations_controller.rb
Ruby
mit
1,177
var gulp = require('gulp'), connect = require('gulp-connect'), open = require('gulp-open'), concat = require('gulp-concat'), flatten = require('gulp-flatten'), port = process.env.port || 3051; gulp.task('open', function(){ var options = { url: 'http://localhost:' + port, }; gulp.src('./app/index.html') .pi...
oalami/trends
web/gulpfile.js
JavaScript
mit
1,155
import { AppState } from 'react-native'; import BackgroundTimer from 'react-native-background-timer'; import * as AppStateActionCreators from 'app/redux/shared_actions/AppStateActionCreators'; var state = AppState.currentState; export default function (store) { AppState.addEventListener('change', (nextAppSta...
squatsandsciencelabs/OpenBarbellApp
app/services/AppState.js
JavaScript
mit
811
using System; using System.Collections.Generic; public class IntervalTree { private class Node { internal Interval interval; internal double max; internal Node right; internal Node left; public Node(Interval interval) { this.interval = interval; ...
metodiobetsanov/Tech-Module-CSharp
Data Structures/11. QUAD TREES, K-D TREES, INTERVAL TREES - Lab/IntervalTree/IntervalTree/IntervalTree.cs
C#
mit
2,951