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 /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\ConfigurableProduct\Test\Block\Product; use Magento\ConfigurableProduct\Test\Block\Product\View\ConfigurableOptions; use Magento\ConfigurableProduct\Test\Fixture\ConfigurableProduct; use Magento\M...
enettolima/magento-training
magento2ce/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Product/View.php
PHP
mit
2,867
<?php namespace Oro\Bundle\SegmentBundle\Tests\Unit\Filter; use Doctrine\Common\Annotations\AnnotationReader; use Doctrine\Common\Cache\ArrayCache; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\EntityManager; use Doctrine\ORM\Mapping\Driver\AnnotationDriver; use Doctrine\ORM\QueryBuilder; use Oro\...
orocrm/platform
src/Oro/Bundle/SegmentBundle/Tests/Unit/Filter/SegmentFilterTest.php
PHP
mit
18,418
<?php namespace Milax\Mconsole\Models; use Illuminate\Database\Eloquent\Model; class Upload extends Model { use \HasTags; protected $fillable = ['type', 'path', 'preset_id', 'filename', 'copies', 'related_id', 'related_class', 'group', 'order', 'unique', 'language_id', 'title', 'description', 'link']; ...
misterpaladin/mconsole
src/Milax/Mconsole/Models/Upload.php
PHP
mit
3,675
class Station < ActiveRecord::Base belongs_to :forecast # validates :pws_id, uniqueness: true end
jackzampolin/my_weather_map
app/models/station.rb
Ruby
mit
102
package com.ngll_prototype; import android.app.ProgressDialog; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Rec...
GIOT-POC/NGLL-APP
app/src/main/java/com/ngll_prototype/MainActivity.java
Java
mit
20,066
#region File Header // The MIT License (MIT) // // Copyright (c) 2016 Stefan Stolz // // 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 ...
StefanStolz/EmbeddedDataVisualStudioExtension
EmbeddedData/EmbeddedData/Properties/AssemblyInfo.cs
C#
mit
2,427
import asyncio import signal import configargparse from structlog import get_logger from alarme import Application from alarme.scripts.common import init_logging, uncaught_exception, loop_uncaught_exception def exit_handler(app, logger, sig): logger.info('application_signal', name=sig.name, value=sig.value) ...
insolite/alarme
alarme/scripts/server.py
Python
mit
1,452
""" Last: 5069 Script with simple UI for creating gaplines data Run: python WordClassDM.py --index 0 Controls: setting gaplines - click and drag saving gaplines - 's' key reseting gaplines - 'r' key skip to next img - 'n' key delete last line - 'd' key """ import cv2 import os import numpy as...
Breta01/handwriting-ocr
src/data/data_creation/WordClassDM.py
Python
mit
6,492
class FixColumnVerificationTypeVerifications < ActiveRecord::Migration def self.up change_column :verifications, :verification_type, "enum('idchecker', 'directid', 'netverify', 'authenticid')" end def self.down end end
malahinisolutions/verify
db/migrate/20151008092718_fix_column_verification_type_verifications.rb
Ruby
mit
232
package tilat; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import hallinta.Grafiikka; import hallinta.Hiiri; import hallinta.Musiikki; import hallinta.Nappaimisto; import hallinta.PeliAlue; import hallinta.PeliOhi; import hallinta.PeliPaussi; import main.IkkunaPaneeli; /**Luokka, joka h...
Qurred/Bubble-Game
src/tilat/Peli.java
Java
mit
3,583
<?php /* SonataAdminBundle:CRUD:edit_sonata_type_immutable_array.html.twig */ class __TwigTemplate_4756e8c5a9c146a3fcb19b2bc6e739a2 extends Twig_Template { protected $parent; public function getParent(array $context) { if (null === $this->parent) { $this->parent = $this->getContext($co...
kohr/HRSymfony2
app/cache/dev/twig/47/56/e8c5a9c146a3fcb19b2bc6e739a2.php
PHP
mit
992
/** * @author weism * copyright 2015 Qcplay All Rights Reserved. */ qc.RoundedRectangle = Phaser.RoundedRectangle; /** * 类名 */ Object.defineProperty(qc.RoundedRectangle.prototype, 'class', { get : function() { return 'qc.RoundedRectangle'; } }); /** * 序列化 */ qc.RoundedRectangle.prototype.toJson = function(...
qiciengine/qiciengine-core
src/geom/RoundedRectangle.js
JavaScript
mit
594
package zame.game.store.products; public class ProductText extends Product { public int purchasedTextResourceId; public int purchasedImageResourceId; public ProductText( int id, int dependsOnId, int price, int titleResourceId, int descriptionResourceId, int iconResourceId, int imageResourceId, int ...
restorer/gloomy-dungeons-2
src/main/java/zame/game/store/products/ProductText.java
Java
mit
610
shared_examples_for type: :collection do |context| let(:described_collection) { described_class.new(service: service) } end
cpb/opennorth-represent
spec/support/shared_examples/collection_spec.rb
Ruby
mit
126
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "treemap.hoverlabel" _path_str = "treemap.hoverlabel.font" _valid_props = {"color", "colorsrc",...
plotly/python-api
packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/_font.py
Python
mit
11,209
package Test; import LinkedList.*; import org.junit.Test; import static org.junit.Assert.*; public class TestSuite { @Test public void addItems() { LinkedList<String> linkedList = new LinkedList<String>(); linkedList.add("Hello"); linkedList.add("Spaghetti"); linkedList.add("This is a sentence"); l...
jaredpetersen/data-structures-and-algorithms
data_structures/linked_list/java/test/TestSuite.java
Java
mit
3,391
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Mi...
diryboy/roslyn
src/EditorFeatures/CSharpTest/CodeActions/Preview/PreviewExceptionTests.cs
C#
mit
4,931
<?php namespace Oro\Bundle\DataGridBundle\Datagrid; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Oro\Bundle\SecurityBundle\SecurityFacade; use Oro\Bundle\DataGridBundle\Event\BuildAfter; use Oro\Bundle\DataGridBundle\Event\Bu...
akeneo/platform
src/Oro/Bundle/DataGridBundle/Datagrid/Builder.php
PHP
mit
5,430
export enum Collection { NESTJS = '@nestjs/schematics', }
ThomRick/nest-cli
lib/schematics/collection.ts
TypeScript
mit
60
namespace DataTradeExamples { class Program { static void Main() { string address = "localhost"; string username = "5"; string password = "123qwe!"; //var example = new TradeServerInfoExample(address, username, password); var example ...
SoftFx/FDK
Examples/CSharp/DataTradeExamples/Program.cs
C#
mit
1,518
package com.skidsdev.fyrestone.item; import java.util.ArrayList; import java.util.List; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.oredict.OreDictio...
gunnerwolf/Fyrestone
src/main/java/com/skidsdev/fyrestone/item/ItemRegister.java
Java
mit
2,022
// Copyright (c) 2013 Richard Long & HexBeerium // // Released under the MIT license ( http://opensource.org/licenses/MIT ) // package jsonbroker.library.common.broker; import jsonbroker.library.common.exception.BaseException; /** * * @deprecated use jsonbroker.library.broker.BrokerMessageType * */...
rlong/java.jsonbroker.library
src/jsonbroker/library/common/broker/BrokerMessageType.java
Java
mit
1,946
class DropTable < ActiveRecord::Migration def up end def down drop_table :Stat end end
suhasdeshpande/DigFollowers
db/migrate/20120308180244_drop_table.rb
Ruby
mit
97
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("Bu...
PhatTrien-MNM/ptnm_cuoiki
BusinessLogic/Properties/AssemblyInfo.cs
C#
mit
1,402
require 'spec_helper' module Recurly describe BillingInfo do # version accounts based on this current files modification dates timestamp = File.mtime(__FILE__).to_i def verify_billing_info(billing_info, billing_attributes) # check the billing data fields billing_info.first_name.should == bil...
compactcode/recurly-client-ruby
spec/integration/billing_info_spec.rb
Ruby
mit
5,228
<?php namespace Fer\UserBundle\Security\User\Provider; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Core\User\UserInterface;...
farconada/sfapi
src/Fer/UserBundle/Security/User/Provider/FacebookProvider.php
PHP
mit
2,117
<?php /* * The MIT License * * Copyright 2014 Ronny Hildebrandt <ronny.hildebrandt@avorium.de>. * * 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, includ...
avorium/myphotostorage
install.php
PHP
mit
7,966
package com.mindera.skeletoid.rxbindings.extensions.views.searchview.support; import android.view.View; import androidx.appcompat.widget.SearchView; import com.jakewharton.rxbinding3.InitialValueObservable; import io.reactivex.Observer; import io.reactivex.android.MainThreadDisposable; public class SearchViewFocusC...
Mindera/skeletoid
rxbindings/src/main/java/com/mindera/skeletoid/rxbindings/extensions/views/searchview/support/SearchViewFocusChangeObservable.java
Java
mit
1,529
import Ember from "ember"; import ENV from '../../config/environment'; export default Ember.Route.extend({ model: function() { return this.store.find('clip'); }, afterModel: function(){ this.metaTags.setTags({ title: "Clips • " + ENV.name, description: ENV.descripti...
APMG/audio-backpack
app/routes/clips/index.js
JavaScript
mit
387
'use strict'; var _ = require('lodash'); var desireds = require('./desireds'); var runner = require('./runconfig'); var gruntConfig = { env: { options:{ } }, simplemocha: { ltr: { options: { timeout: 60000, captureFile: 'reports.xml', ...
Devanshu1991/4LTRProject
GF_CreateStudentAndRunStudentSubmission.js
JavaScript
mit
2,979
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PlotRenderer.cs" company="OxyPlot"> // The MIT License (MIT) // // Copyright (c) 2012 Oystein Bjorke // // Permission is hereby granted, free of charge, to any person ...
ylatuya/oxyplot
Source/OxyPlot/Render/PlotRenderer.cs
C#
mit
7,113
version https://git-lfs.github.com/spec/v1 oid sha256:d99fc51072a5fe30289f7dc885457700f9b08ae17fe81d034245aba73c408033 size 34706
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.17.1/model/model.js
JavaScript
mit
130
<?php namespace Dreamhood\CmsBundle\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 mana...
chanakasan/cms-sandbox
src/Dreamhood/CmsBundle/DependencyInjection/DreamhoodCmsExtension.php
PHP
mit
939
<?php namespace App\AWS; use Aws\S3\S3Client; use Psr\Log\LoggerInterface; class S3 { private $s3; private $bucketName; private $baseUrl; private $logger; /** * S3 constructor. * * @param S3Client $s3 * @param $baseUrl * @param $bucketName * @param LoggerInterface $...
ekreative/apps-server
src/AWS/S3.php
PHP
mit
2,714
namespace CameraBazar.Services.Models.Users { using System; public class UserDetailsModel { public string Id { get; set; } public string Email { get; set; } public string Password { get; set; } public string Phone { get; set; } public DateTime LasLogin { get; se...
VaskoViktorov/SoftUni-Homework
11. C# ASP.NET Core - 30.10.2017/06. Razor & Filters - Part II - Exercise/CameraBazar/CameraBazar.Services/Models/Users/UserDetailsModel.cs
C#
mit
335
module GURPS class Template @modifiers = [] def initialize name @name = name end def << modifier @modifiers << modifier end def applyTo char # Apply this template to a GURPS character. @modifiers.each do |modifier| modifier.applyTo char end char...
AlexSafatli/gurps
lib/gurps/template.rb
Ruby
mit
840
package org.karoglan.tollainmear.signeditor.commandexecutor; import org.karoglan.tollainmear.signeditor.KSECommandManager; import org.karoglan.tollainmear.signeditor.KSERecordsManager; import org.karoglan.tollainmear.signeditor.KaroglanSignEditor; import org.karoglan.tollainmear.signeditor.utils.Translator; import org...
Tollainmear/KaroglanSignEditor
src/main/java/org/karoglan/tollainmear/signeditor/commandexecutor/ReloadExecutor.java
Java
mit
1,591
package gl8080.lifegame.web.resource; import java.net.URI; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.w...
opengl-8080/lifegame-javaee
src/main/java/gl8080/lifegame/web/resource/GameDefinitionResource.java
Java
mit
2,858
package edacc.parameterspace.domain; import java.util.LinkedList; import java.util.List; import java.util.Random; @SuppressWarnings("serial") public class RealDomain extends Domain { protected Double low, high; public static final String name = "Real"; @SuppressWarnings("unused") private RealDomain() { }...
EDACC/edacc_api
src/edacc/parameterspace/domain/RealDomain.java
Java
mit
2,816
'use strict'; const isUriStringCheck = require('../strCheck'); /** * First test if the argument passed in is a String. If true, get page version from uri. * Otherwise throw an error. * @example /pages/foo/@published returns published * @param {string} uri * @return {string|null} */ module.exports = function (u...
nymag/clay-utils
lib/getPageVersion/index.js
JavaScript
mit
442
//# sourceMappingURL=request-constructor.js.map
jlberrocal/ng2-dynatable
src/interfaces/request-constructor.js
JavaScript
mit
47
/* * jQuery File Upload Plugin 5.0.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://creativecommons.org/licenses/MIT/ */ /*jslint nomen: false, unparam: true, regexp: false */ /*global document, XMLHttpReq...
ilyakatz/cucumber-cinema
public/javascripts/jquery.fileupload.js
JavaScript
mit
31,875
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosPint extends React.Component { render() { if(this.props.bare) { return <g> <path d="M368,170.085c0-21.022-0.973-88.554-19.308-125.013C344.244,36.228,336.25,32,316.999,32H195.001 c-19.25,0-27.246,4.197-31....
fbfeix/react-icons
src/icons/IosPint.js
JavaScript
mit
1,517
#include "pch.h" #include "Item.h" #include "GameManager.h" #include "ObjectLayer.h" Item::Item(Vec2 createPos, float scale, BuffTarget buffType) { m_UnitType = UNIT_ITEM; m_CenterSprite->setPosition(createPos); m_CenterSprite->setScale(scale); switch (buffType) { case BUFF_HP: m_RealS...
dlakwwkd/CommitAgain
Skima/Classes/Item.cpp
C++
mit
873
namespace TwitterBackup.Services { using TwitterBackup.Data; using TwitterBackup.Models; using TwitterBackup.Services.Contracts; using System.Linq; using System.Collections.Generic; using System; using TwitterBackup.Services.Exceptions; public class UserService : IUserService { ...
luboganchev/TwitterBackup
TwitterBackup/TwitterBackup.Services/UserService.cs
C#
mit
1,545
package ee.golive.personal.model; import javax.persistence.*; import java.io.Serializable; import java.util.Date; @Entity @Table(name = "workout") public class Workout implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "id", uniqu...
ilves/finance
src/main/java/ee/golive/personal/model/Workout.java
Java
mit
1,619
namespace BlockchainSharp.Tests.Compilers { using System; using BlockchainSharp.Compilers; using BlockchainSharp.Vm; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class SimpleCompilerTests { [TestMethod] public void CompileEmptyString() ...
ajlopez/BlockchainSharp
Src/BlockchainSharp.Tests/Compilers/SimpleCompilerTests.cs
C#
mit
7,021
/** * Wheel, copyright (c) 2020 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const $ = require('../../program/commands'); const errors = require('../errors'); const err = require('../errors').errors; const t ...
ArnoVanDerVegt/wheel
js/frontend/compiler/keyword/CompileObjct.js
JavaScript
mit
3,710
"""Transformation functions for expressions.""" from tt.expressions import BooleanExpression from tt.transformations.utils import ensure_bexpr def apply_de_morgans(expr): """Convert an expression to a form with De Morgan's Law applied. :returns: A new expression object, transformed so that De Morgan's Law ...
welchbj/tt
tt/transformations/bexpr.py
Python
mit
11,265
const assert = require('assert'); const MockServer = require('../../../../lib/mockserver.js'); const CommandGlobals = require('../../../../lib/globals/commands.js'); const Nightwatch = require('../../../../lib/nightwatch.js'); describe('browser.getFirstElementChild', function(){ before(function(done) { Command...
nightwatchjs/nightwatch
test/src/api/commands/element/testGetFirstElementChild.js
JavaScript
mit
3,229
#!/usr/bin/python2.7 #-*- coding: utf-8 -*- import numpy as np import gl def testkf(input1,Q,R): print gl.X_i_1 print gl.P_i_1 #rang(1,N) do not contain N K_i = gl.P_i_1 / (gl.P_i_1 + R) X_i = gl.X_i_1 + K_i * (input1 - gl.X_i_1) P_i = gl.P_i_1 - K_i * gl.P_i_1 + Q #print (X[i]) #Upd...
zharuosi/2017
pythonNRC/modules/testkf.py
Python
mit
379
using System; using System.Collections.Generic; using System.Text; namespace Nucleo.Web.EventsManagement { public class ProviderErrorEvent : WebMonitoringEventBase { private const string EVENT_MESSAGE = "An error occurred within the provider '{0}', with an exception of: {1}"; private const int EVENT_CODE = 10010...
brianmains/Nucleo.NET
src/Nucleo.Web/Web/EventsManagement/ProviderErrorEvent.cs
C#
mit
550
version https://git-lfs.github.com/spec/v1 oid sha256:e63ec89c8bce1f67a79c0a8042e7ad0f2197f9bf615c88fd1ce36266c4050e1b size 5126
yogeshsaroya/new-cdnjs
ajax/libs/backbone.layoutmanager/0.7.0/backbone.layoutmanager.min.js
JavaScript
mit
129
<?php use Illuminate\Database\Seeder; use App\System\System; /** * @author Setiadi, 20 Agustus 2017 */ class RoleUserTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('t_role_user')->delete(); DB::table('t_...
setiadi01/Office-Attendance-System-Rest
database/seeds/RoleUserTableSeeder.php
PHP
mit
917
class AndroidController < ApplicationController def index end def create app = RailsPushNotifications::GCMApp.new app.gcm_key = params[:gcm_api_key] app.save if app.save notif = app.notifications.build( destinations: [params[:destination]], data: { text: params[:message] } ...
calonso/rails_push_notifications_test
app/controllers/android_controller.rb
Ruby
mit
776
module tsp { export interface IDOMBinder { attributes?: { [name: string]: string; }; contentEditable?: bool; dynamicAttributes?: { [name: string]: { (el: IElX): string; }; }; dynamicClasses?: { [name: string]: { (el: IElX): bool; }; }; dynamicStyles?: { [name: string]: { (e...
bahrus/teaspoon
TypeStrictTests/Interface_ElX.ts
TypeScript
mit
2,489
package ee.tuleva.onboarding.user.exception; public class UserAlreadyAMemberException extends RuntimeException { public UserAlreadyAMemberException(String message) { super(message); } }
TulevaEE/onboarding-service
src/main/java/ee/tuleva/onboarding/user/exception/UserAlreadyAMemberException.java
Java
mit
196
namespace ImageGallery.Data.Common.Models { using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public abstract class BaseModel<TKey> : IAuditInfo, IDeletableEntity { public DateTime CreatedOn { get; set; } public DateTime...
atanas-georgiev/ImageGallery
src/ImageGallery.Data.Common/Models/BaseModel{TKey}.cs
C#
mit
581
<!--main content start--> <section id="main-content"> <section class="wrapper"> <!--overview start--> <div class="row"> <div class="col-lg-12"> <h3 class="page-header"><i class="fa fa-laptop"></i> 한글제품 현재사용내역</h3> </div> </div> <br/> <...
jangmac/CodeIgniter
application/views/list/computational/using_soft/use_hangul.php
PHP
mit
1,961
//----------------------------------------- // Grunt configuration //----------------------------------------- module.exports = function(grunt) { // Init config grunt.initConfig({ // environment constant ngconstant: { options: { space: ' ', name: '...
andreavitali/instalurker
gruntfile.js
JavaScript
mit
2,712
<?php namespace Smath\VentasBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;...
rsuarezdeveloper/smath
src/Smath/VentasBundle/Controller/PedidoController.php
PHP
mit
7,983
package com.backusnaurparser.helper; import java.io.PrintStream; import java.io.PrintWriter; /** * Runtime Exception thrown when something goes wrong with parsing the EBNF * grammar. A reason is always given (automatically printed via every * printStackTrace(...) permutation) * * @author Dominik Horn * */ pub...
DominikHorn/FormalLanguageParser
src/com/backusnaurparser/helper/LanguageParseException.java
Java
mit
981
require 'spec_helper' describe Skywriter::Resource::CloudFormation::Authentication do it "is a Resource" do expect(Skywriter::Resource::CloudFormation::Authentication.new('name')).to be_a(Skywriter::Resource) end describe "#as_json" do it "allows the user to define the keyspace" do resource = Skyw...
otherinbox/skywriter
spec/skywriter/resource/cloud_formation/authentication_spec.rb
Ruby
mit
937
/*! * vue-i18n v9.0.0-beta.13 * (c) 2020 kazuya kawaguchi * Released under the MIT License. */ import { ref, getCurrentInstance, computed, watch, createVNode, Text, h, Fragment, inject, onMounted, onUnmounted, isRef } from 'vue'; /** * Original Utilities * written by kazuya kawaguchi */ const inBrowser ...
cdnjs/cdnjs
ajax/libs/vue-i18n/9.0.0-beta.13/vue-i18n.esm-browser.js
JavaScript
mit
168,066
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/arvind/clover_hack_day/er1_robot/src/er1_motor_driver/msg/Motors.msg" services_str = "/home/arvind/clover_hack_day/er1_robot/src/er1_motor_driver/srv/AddTwoInts.srv" pkg_name = "er1_motor_driver" dependencies_str = "std_msgs" langs = "gencpp;gen...
arvindpereira/clover_hack_day
er1_robot/build/er1_motor_driver/cmake/er1_motor_driver-genmsg-context.py
Python
mit
677
export default { name: 'selfie-card', type: 'text', render() { return '[ :) ]'; } };
atonse/mobiledoc-kit
demo/app/mobiledoc-cards/text/selfie.js
JavaScript
mit
97
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("Ch...
NativeScriptHybrids/ChallengeAccepted
ChallengeAccepted.Service/ChallengeAccepted.Models/Properties/AssemblyInfo.cs
C#
mit
1,424
from mimetypes import guess_type def get_git_info(): """ Parses the git info and returns a tuple containg the owner and repo :deprecated: :rtype: tuple :return: (owner name, repo name) """ repo = '' with open('.git/config') as f: for line in f.readlines(): if 'url' ...
GrappigPanda/pygemony
pyg/utils.py
Python
mit
811
#include "ticTacToeFunc.h" #include <cstdio> TicTacToeFunc::TicTacToeFunc() { size = 3; winSize = 3; field = new States *[size]; for (int i = 0; i < size; i++) field[i] = new States[size]; for (int i = 0; i < size; i++) for (int j = 0; j < size; j++) field[...
Sergey-Pravdyukov/Homeworks
term2/hw7/3/tictactoefunc.cpp
C++
mit
4,600
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace QrF.Core.Admin.Dto { public class BasePageInput { public BasePageInput() { this.Page = 1; this.PageSize = 20; } /// <summary> /// 当前分页 ...
ren8179/QrF.Core
src/apis/QrF.Core.Admin/Dto/BasePageInput.cs
C#
mit
507
package com.paratussoftware.ui.cli; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class GrimoireCLI { private static final String TITLE_FILE_NAME = "./lib/grimoire_title.txt"; public static void startGrimoireCLI(String[] args){ showTitle(); CLIM...
JArthurJohnston/Grimoire-V2
Demo/src/main/java/com/paratussoftware/ui/cli/GrimoireCLI.java
Java
mit
754
<?php namespace BDN\Migrations; use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your needs! */ class Version20170820234613 extends AbstractMigration { /** * @param Schema $schema */ public function up(Schema $schema...
Parabot/BDN-V3
app/Migrations/Version20170820234613.php
PHP
mit
32,193
package com.openknowl.okhttpexample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import java.io.IOException; import okhttp3.Call; import okhttp3.Callback; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class MainActivity e...
openknowl/android-prototyper-tutorials
android/android_tutorial_8/OkHttpExample/app/src/main/java/com/openknowl/okhttpexample/MainActivity.java
Java
mit
1,171
/* global describe, it */ var assert = require('assert') var constantCase = require('./') describe('constant case', function () { it('should upper case a single word', function () { assert.equal(constantCase('test'), 'TEST') assert.equal(constantCase('TEST'), 'TEST') }) it('should constant case regular ...
blakeembrey/constant-case
test.js
JavaScript
mit
922
(function($){ $.fn.onImagesLoaded = function(_cb,_ca) { return this.each(function() { var $imgs = (this.tagName.toLowerCase()==='img')?$(this):$('img',this), _cont = this, i = 0, _loading=function() { if( typeof _cb === 'function') _cb(_cont); }, _done=func...
flashycud/timestack
static/js/lib.js
JavaScript
mit
614
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. | | T...
z32556601/90ping_backend
application/config/routes.php
PHP
mit
1,971
@NodeEntity public class Country{ @GraphId private Long id; @Indexed(unique=true) private String coutryName; @RelatedTo private Set<City> cities; public Country(){} public Country(String countryName){ this.countryName = countryName; } }
yanisIk/Hobdy
Domain/Country.java
Java
mit
254
<?php use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\RequestContext; /** * appDevUrlMatcher * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlMatcher ext...
rangakomarthicomo/SuperMarket
app/cache/dev/appDevUrlMatcher.php
PHP
mit
39,321
// The MIT License (MIT) // // Copyright (c) 2015-2018 Rasmus Mikkelsen // Copyright (c) 2015-2018 eBay Software Foundation // https://github.com/eventflow/EventFlow // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Softwar...
rasmus/EventFlow
Source/EventFlow.Tests/IntegrationTests/BackwardCompatibilityTests.cs
C#
mit
3,638
// Generated from ./Select.g4 by ANTLR 4.5 // jshint ignore: start var antlr4 = require('../../index'); var serializedATN = ["\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd", "\2\17\177\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t", "\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\3\2\...
bvellacott/papu-force-adapter
lib/antlr4/parsers/select/SelectLexer.js
JavaScript
mit
4,185
using System; using Microsoft.VisualStudio.Shell.Interop; using NUnit.Framework; using Telerik.JustMock; using VisualStudioSync.Controllers; namespace VisualStudioSync.Tests { [TestFixture] public class SettingsControllerTest { private const string Path = "path"; private const string Value = "test"; private...
aquiladev/Coding4Fun.VisualStudioSync
VisualStudioSync.Tests/SettingsControllerTest.cs
C#
mit
4,052
import styled from 'styled-components'; const Wrapper = styled.div` width: 100%; height: 100%; display: block; align-items: space-between; `; export default Wrapper;
andyfrith/weather.goodapplemedia.com
app/containers/ForecastListItem/Wrapper.js
JavaScript
mit
176
<?php /** * Low Seg2Cat Language file * * @package low_seg2cat * @author Lodewijk Schutte <hi@gotolow.com> * @link http://gotolow.com/addons/low-seg2cat * @license http://creativecommons.org/licenses/by-sa/3.0/ */ $lang = array( 'category_groups' => 'Category groups', 'all_gro...
noslouch/pa
core/expressionengine/third_party/low_seg2cat/language/english/low_seg2cat_lang.php
PHP
mit
547
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Reflection; namespace AKDK.Messages.DockerEvents.Converters { /// <summary> /// JSON converter that that enables custom selection logic during deserialisation of the object to create based on the JSON encountered. /// </summary> /// <ty...
tintoy/aykay-deekay
src/AKDK/Messages/DockerEvents/Converters/JsonCreationConverter.cs
C#
mit
3,851
<?php $files = array('global', 'module', 'admin', 'bootstrap', 'bootstrap-responsive', 'bootstrap-wysihtml5','datetimepicker'); $extended = array('install' => 'installation css', 'mailer' => 'Custom mailer css'); /* Do not edit below this line //-------------------------------*/ header("Content-Type: text/css; ch...
iantearle/Expanse-CMS-Public
expanse/css/expanse.css.php
PHP
mit
1,657
module.exports={ setup(context, cb){ //context.sigslot.signalAt('* * * * * *', 'sayHello') cb() }, sep(msg,next){ console.log(msg); return next() }, route(req, next){ switch(req.method){ case 'POST': return next() case 'GET': this.setOutput(this.time) default: return next(null, this.sigslot.abort()) ...
ldarren/pico-api
test/util.js
JavaScript
mit
464
<?php namespace Murky\HomeBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->asser...
rlbaltha/biblio
src/Murky/HomeBundle/Tests/Controller/DefaultControllerTest.php
PHP
mit
399
/*********************************************** * MIT License * * Copyright (c) 2016 珠峰课堂,Ramroll * 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...
njxiaohan/TransPal
app/domain/component/index.js
JavaScript
mit
1,752
goog.provide('ngeo.CreatefeatureController'); goog.provide('ngeo.createfeatureDirective'); goog.require('ngeo'); goog.require('ngeo.EventHelper'); /** @suppress {extraRequire} */ goog.require('ngeo.filters'); goog.require('ngeo.interaction.MeasureArea'); goog.require('ngeo.interaction.MeasureLength'); goog.require('ol...
ger-benjamin/ngeo
src/directives/createfeature.js
JavaScript
mit
6,955
using System.Collections.Generic; using System.Security.Claims; namespace FujiyBlog.Web.Areas.Admin.ViewModels { public class AdminRoleSave { public string Id { get; set; } public string Name { get; set; } public IEnumerable<string> Claims { get; set; } } }
fujiy/FujiyBlog
src/FujiyBlog.Web/Areas/Admin/ViewModels/AdminRoleSave.cs
C#
mit
302
using UnityEngine; using System.Collections; using UnityEngine.UI; public class StartMenuUIControl : MonoBehaviour { /*===================== GameObjects =====================================================================================*/ public GameObject characterCreationMenuPrefab; /*===================...
Ross-Byrne/Management_Mayhem
Assets/Scripts/UI/StartMenu/StartMenuUIControl.cs
C#
mit
2,906
Mini.define('layerTemplate', function(){ var $detail = $('#t-detail').html() return { detail: _.template($detail) } }); Mini.define('serviceLayer', [ 'layerTemplate' ], function(layerTemplate){ return { ctn: function(e) { layer.open({ title: '箱动态列表', ...
hoozi/hyd2
js/site/components/serviceLayer.js
JavaScript
mit
559
# frozen_string_literal: true Rails.application.routes.draw do match "lock/login", to: "lock#login", as: "lock_login", via: :get match "lock/refused", to: "lock#refused", as: "unlock_refused", via: :get match "lock/unlock", to: "lock#unlock", as: "unlock", via: :post end
charlotte-ruby/lock
config/routes.rb
Ruby
mit
279
// For vendors for example jQuery, Lodash, angular2-jwt just import them here unless you plan on // chunking vendors files for async loading. You would need to import the async loaded vendors // at the entry point of the async loaded file. Also see custom-typings.d.ts as you also need to // run `typings install x` wher...
katallaxie/generator-angular2-starter
template/src/vendor.ts
TypeScript
mit
756
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Internal function to process the separation of a physics body from a tile. * * @function Phaser.Physics.Arcad...
rblopes/phaser
src/physics/arcade/tilemap/ProcessTileSeparationX.js
JavaScript
mit
901
<?php namespace Oro\Bundle\UserBundle\Tests\Unit\Type; use Oro\Bundle\UserBundle\Form\Type\ChangePasswordType; use Symfony\Component\Form\Test\FormIntegrationTestCase; class ChangePasswordTypeTest extends FormIntegrationTestCase { /** @var \PHPUnit_Framework_MockObject_MockObject */ protected $subscriber; ...
akeneo/platform
src/Oro/Bundle/UserBundle/Tests/Unit/Form/Type/ChangePasswordTypeTest.php
PHP
mit
1,781
export function mergeUsers({ props, state, uuid }) { if (props.response.result.users && props.response.result.users.length !== 0) { let orderKey = 1 for (const user of props.response.result.users) { user.orderKey = orderKey const usersInState = state.get('admin.users') const uidInState = Obj...
yacoma/auth-boilerplate
client/app/modules/admin/actions.js
JavaScript
mit
1,148
<?php namespace Dodici\Fansworld\WebBundle\Controller; use Doctrine\ORM\EntityManager; use Symfony\Component\HttpFoundation\Response; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; us...
FansWorldTV/web
src/Dodici/Fansworld/WebBundle/Controller/ContestController.php
PHP
mit
16,104
QuakeMap::Application.configure do # Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test...
QuakeMap/quakemap
config/environments/test.rb
Ruby
mit
1,814
package errors import ( "net/http" "fmt" ) // NewValidationError creates a new APIError with 422 Unprocessable entity http status code to be used as reporting the validation failure func NewValidationError(e ... error) APIError { return APIError{ StatusCode: http.StatusUnprocessableEntity, Title: ...
uroshercog/kanban-board-backend
http/errors/validation.go
GO
mit
874