repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
drypot/rapixel
server/express/express-base-test.js
8130
var init = require('../base/init'); var error = require('../base/error'); var config = require('../base/config')({ path: 'config/test.json' }); var expb = require('../express/express-base'); var expl = require('../express/express-local'); var expect = require('../base/assert2').expect; before(function (done) { init....
mit
yaplex/learn-git
LearnGitTestApp/Models/IdentityModels.cs
1214
using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; namespace LearnGitTestApp.Models { // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit ...
mit
ghurlman/emberjs-simpleauth-adal-aad
gulpfile.js
992
/// <binding Clean='clean' /> /* This file in the main entry point for defining Gulp tasks and using Gulp plugins. Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007 */ var gulp = require('gulp'), shell = require('gulp-shell'), del = require('del'), dnx = require('gulp-dnx'); gulp.tas...
mit
ohac/sakuracoin
src/util.cpp
43229
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef WIN32 // for posix_fallocate #ifdef __linux__ #define _POSIX_C_SOURCE 2001...
mit
cmawhorter/hmmac
lib/hmmac.js
9888
/* * hmmac * https://github.com/cmawhorter/hmmac * * Copyright (c) 2014 Cory Mawhorter * Licensed under the MIT license. */ var crypto = require('crypto'); var schemeLoader = { load: function(scheme) { scheme = scheme.toLowerCase(); var includedSchemes = [ 'plain', 'aws4' ]; if (false === included...
mit
groupdocs-comparison/GroupDocs.Comparison-for-Java
Demos/Dropwizard/src/main/java/com/groupdocs/ui/common/resources/Resources.java
8526
package com.groupdocs.ui.common.resources; import com.google.common.collect.Lists; import com.groupdocs.ui.common.config.GlobalConfiguration; import com.groupdocs.ui.common.exception.TotalGroupDocsException; import io.dropwizard.jetty.ConnectorFactory; import io.dropwizard.jetty.HttpConnectorFactory; import io....
mit
callemall/material-ui
packages/material-ui-icons/src/CopyrightRounded.js
465
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /><path d="M14 8h-4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1...
mit
SamDelgado/samson.js
src/component/loadEvents.js
1475
import Async from 'async-lite'; import { SamsonApp } from '../index.js'; import getTopParent from '../utils/getTopParent.js'; export default function loadEvents(callback) { var self = this; Async.parallel({ loadDOMEvents: function(loadDOMEvents_cb) { if (!self.__loadedDOMEvents.leng...
mit
msgpack4z/msgpack4z-core
src/test/scala/msgpack4z/UnionGen.scala
2096
package msgpack4z import java.math.BigInteger import scalaprops._ object UnionGen { val booleanGen: Gen[MsgpackUnion] = Gen.elements( MsgpackUnion.True, MsgpackUnion.False ) val longGen: Gen[MsgpackUnion] = Gen.from1(MsgpackLong) val ulongGen: Gen[MsgpackUnion] = Gen .chooseL...
mit
xuan6/admin_dashboard_local_dev
node_modules/react-icons-kit/md/ic_important_devices.js
507
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ic_important_devices = exports.ic_important_devices = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v...
mit
protechdm/CompareCloudware
CompareCloudware.Web/Models/SearchFiltersModelTwoColumn.cs
1912
using CompareCloudware.Web; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.CompilerServices; namespace CompareCloudware.Web.Models { public class SearchFiltersModelTwoColumn : BaseModel { public SearchFiltersModelTwoColumn() { ...
mit
jepegit/cellpy
dev_utils/helpers/find_bugs.py
837
"""utility for finding bugs / fixing edge-cases""" import os import sys import time from pathlib import Path print(f"running {sys.argv[0]}") import cellpy from cellpy import log from cellpy import cellreader from cellpy.parameters import prms prms.Reader.use_cellpy_stat_file = False prms.Reader.cycle_mode = "cathod...
mit
MOIPA/J2eeStudy
XML/宠物管理系统CS架构/src/petCon/Client.java
3726
package petCon; import javax.swing.*; import java.awt.*; import java.awt.List; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.LinkedList; import javax.swing.event.*; public class Client { public static void main(String[] args) { new Fram().inititalFrm(); } } class Fram{...
mit
8th-mile/android-publicity
app/src/main/java/com/a8thmile/rvce/a8thmile/events/register/RegisterInteractor.java
1154
package com.a8thmile.rvce.a8thmile.events.register; import com.a8thmile.rvce.a8thmile.models.EventResponse; import com.a8thmile.rvce.a8thmile.models.MyEventResponse; /** * Created by vignesh on 24/1/17. */ public interface RegisterInteractor { public void callRegisterApi(String event_id,String user_id,String t...
mit
fosterfarrell9/mampf
db/interactions_migrate/20191211160621_create_consumptions.rb
210
class CreateConsumptions < ActiveRecord::Migration[6.0] def change create_table :consumptions do |t| t.integer :medium_id t.text :sort t.text :mode t.timestamps end end end
mit
cryptodevis/hashold
src/qt/locale/bitcoin_zh_TW.ts
113385
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Hashcoin</source> <translation>關於莱特幣</translation> </message>...
mit
silkcoin-dev/silkcoin
src/qt/qrcodedialog.cpp
4311
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #include <QUrl> #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) : ...
mit
marketplacer/barcodevalidation
spec/lib/barcodevalidation/gtin_spec.rb
3260
# frozen_string_literal: true require "barcodevalidation/mixin/has_check_digit" require "barcodevalidation/mixin/value_object" require "barcodevalidation/digit" require "barcodevalidation/digit_sequence" require "barcodevalidation/gtin" RSpec.describe BarcodeValidation::GTIN do subject(:gtin) { described_class.new(...
mit
greghoover/gluon
hase/hase.DevLib/Framework/Utility/AltFileProvider.cs
559
using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Primitives; namespace hase.DevLib.Framework.Utility { public class AltFileProvider : IFileProvider { public IFileInfo GetFileInfo(string subpath) { return new AltFileInfo(subpath); } public IDirec...
mit
hungpham2511/toppra
toppra/simplepath.py
2329
from typing import List, Union, Optional import numpy as np from scipy.interpolate import BPoly from .interpolator import AbstractGeometricPath class SimplePath(AbstractGeometricPath): """A class for representing continuous multi-dimentional function. This geometric path is specified by positions, velocities...
mit
GameWorthy/ChompRabbit
Assets/Scripts/UI/SettingsMenu.cs
986
using System; using UnityEngine; public class SettingsMenu : MonoBehaviour { [SerializeField] private TextMesh soundText = null; private bool soundIsOn = true; void Start() { soundIsOn = GameData.GlobalPlaySound; SetText (); } void SetText() { if (soundIsOn) { soundText.text = "Sound: ON"; } else { ...
mit
3dseals/Bonnie3D
test/src/js/MirrorRTT.js
241
B3D.MirrorRTT = function ( width, height, options ) { B3D.Mirror.call( this, width, height, options ); this.geometry.setDrawRange( 0, 0 ); // avoid rendering geometry }; B3D.MirrorRTT.prototype = Object.create( B3D.Mirror.prototype );
mit
kiyonori-matsumoto/tcl-ruby
lib/tcl/ruby/list_array.rb
1993
require 'forwardable' module Tcl module Ruby class ListArray extend Forwardable def_delegators :@ary, :find, :any? Array.public_instance_methods(false).each do |name| define_method(name) do |*args, &block| @ary.send(name, *args, &block) end end def uniq!...
mit
jugglinmike/es6draft
src/test/scripts/suite/regress/bug4098.js
512
/* * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSyntaxError } = Assert; // Elison not allowed in ArrayBindingPattern and ArrayAssignmentPattern after RestElement // https://bugs....
mit
bjoberg/brettoberg.com
src/tests/components/footer.component.spec.ts
2702
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { RouterTestingModule } from '@angular/router/testing'; import { FooterComponent } from '../../app/components/footer/footer.component'; import { ...
mit
Mitali-Sodhi/CodeLingo
Dataset/ruby/onegem.rb
541
#--- # Excerpted from "Everyday Scripting in Ruby" # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/bmsft for more book information. #--- module OneGem ONEDIR = "test/data/one" ONENAME = "one-0.0.1.gem" ONEGEM = "#{ONEDIR}/#{ONENAME}" def clear ...
mit
houssem9/SysNews
src/SN/SysNewsBundle/Count/CountListener.php
1784
<?php namespace SN\SysNewsBundle\Count; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInterface; use SN\SysNewsBundle\Entity\Connecte; use Symfony\Bundle\DoctrineBundle\Registry; use Doctrine\ORM\EntityManager; use S...
mit
Arragro/ArragroCMS.Examples
src/arragro.com.ContentTypes/Posts/MarkdownPost.cs
1145
using Arragro.Core.Common.RulesExceptions; using ArragroCMS.Core.Web.Interfaces; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace arragro.com.ContentTypes.Post { [DisplayName("Markdown Post")] public class MarkdownPost : RulesBase<MarkdownPost> { [R...
mit
Countly/countly-sdk-windows-phone
countlyCommon/countlyCommon/Entities/ExceptionEvent.cs
9549
/* Copyright (c) 2012, 2013, 2014 Countly 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, distri...
mit
weebo-org/laravel
app/config/app.php
7330
<?php return array( /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every ...
mit
tias79/jomnipod
src/main/java/com/github/jomnipod/datatypes/DataType.java
1249
/* * Copyright (c) 2017 Mattias Eklöf <mattias.eklof@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use,...
mit
bartonlp/updatesite
updatesite-preview.i.php
4766
<?php // This is included by the program instantiating the UpdateSite class via updatesite.class.php // This is the AJAX PART!!! if($_GET['ajax']) { // The Ajax part does not need the UpdateSite class. // This part reads the 'page' file and replaces the '// START UpdateSite ...' marker with an array that fills th...
mit
ryfeus/lambda-packs
Keras_tensorflow_nightly/source2.7/tensorflow/core/framework/resource_handle_pb2.py
4066
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/core/framework/resource_handle.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pr...
mit
ryfeus/lambda-packs
pytorch/source/caffe2/contrib/playground/resnetdemo/IN1k_resnet_no_test_model.py
2025
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from caffe2.python import workspace, cnn, core from caffe2.python import timeout_guard from caffe2.proto import caffe2_pb2 def init_model(self): ...
mit
htw-bui/EnergieNetz
EnergyNetwork.Domain/Model/WeeklyReference.cs
243
namespace EnergyNetwork.Domain.Model { public enum WeeklyReference { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, WorkingDay, Weekend } }
mit
faizaand/Gluon
src/main/java/me/faizaand/gluon/GluonRegistry.java
2051
package me.faizaand.gluon; import me.faizaand.gluon.property.GluonProperty; import java.util.*; /** * Keeps track of all properties loaded on the server. * * @since 1.0 */ public class GluonRegistry { private List<GluonProperty> gluonProperties; private Map<String, GluonScript> gluonScripts; /** ...
mit
jvasileff/aos-xp
src.java/org/anodyneos/xpImpl/translater/TranslaterResult.java
458
package org.anodyneos.xpImpl.translater; import java.util.List; public interface TranslaterResult { /** * @return "package.class" or "class" if no package. */ String getFullClassName(); /** * @return Package name or null. */ String getPackageName(); /** * @return Clas...
mit
Safello/KnugenCoin
src/qt/locale/bitcoin_et.ts
114095
<?xml version="1.0" ?><!DOCTYPE TS><TS language="et" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Litecoin</source> <translation>KnugenCoinist</translation> </mes...
mit
wiflsnmo/react_study2
node_modules/echarts/lib/chart/pie/PieSeries.js
4975
'use strict'; var List = require('../../data/List'); var zrUtil = require('zrender/lib/core/util'); var modelUtil = require('../../util/model'); var completeDimensions = require('../../data/helper/completeDimensions'); var dataSelectableMixin = require('../../component/helper/selectableMixin'); ...
mit
Pletora/Chester
src/services/calendars/calendars.filters.js
358
/* eslint no-console: 1 */ console.warn( 'You are using the default filter for the calendars service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering' ); // eslint-disable-line no-console module.exports = function(data, connection, hook) { // eslint-disable-...
mit
Engensmax/Warlocked
Properties/AssemblyInfo.cs
1394
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("Wa...
mit
navneetzz/Hackerrank
src/Algorithms/Implementation/JumpingOnTheClouds.java
611
package Algorithms.Implementation; import java.util.Scanner; /** * Created by Navneet Sharma (navneetzz) ryu on 1/7/17. */ public class JumpingOnTheClouds { public static void main (String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int k = in.nextInt(); ...
mit
standart-n/spacepro
gulpfile.js
317
var gulp = require('gulp'); var po2json = require('gulp-po2json'); gulp.task('default', function() { gulp.task('po2json'); }); gulp.task('po2json', function() { return gulp.src(['public/locale/**/messages.po']) .pipe(po2json({ pretty: true, format: 'mf' })) .pipe(gulp.dest('public/i18n/')); })
mit
RenatoMAlves/AnimaSom-Game
.history/animaSom/js/play_20170606134735.js
2186
var playState = { create: function(){ var background = game.add.sprite(0, 0, 'cidade'); background.width = 1300; background.height = 650; graphics = game.add.graphics(0, 0); groupCidade = game.add.group(); groupCidade.inputEnableChildren = true; var x = 1...
mit
tim-group/deployapp
lib/deployapp/service_wrapper.rb
234
require 'deployapp/namespace' class DeployApp::ServiceWrapper def start_service(service_name) system("service #{service_name} start") end def stop_service(service_name) system("service #{service_name} stop") end end
mit
MystFan/TelerikAcademy
JavaScript Fundamentals/Operators and Expressions/scripts/thirdBit.js
1362
/// <reference path="js-console.js" /> jsConsole.writeLine('---------------------------------------------------------------------------'); jsConsole.writeLine('Problem 5: Write a boolean expression for finding if the bit #3 (counting from 0) of a given integer.The bits are counted from right to left, starting from bit...
mit
gitsno/MySqlConnector
src/MySqlConnector/MySqlClient/CommandExecutors/StoredProcedureCommandExecutor.cs
3773
using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Threading; using System.Threading.Tasks; using MySql.Data.MySqlClient.Types; using MySql.Data.Protocol.Serialization; namespace MySql.Data.MySqlClient.CommandExecutors { internal class StoredProcedureCommandExecutor : TextCom...
mit
Blue64/Space_Engineers
AppData/Local/Temp/SpaceEngineers/920013121.sbm_IndustrialAutomaton_CloakingDevice/Cloaking_Device.cs
11276
using Sandbox.Engine; using Sandbox.Engine.Multiplayer; using Sandbox.ModAPI; using Sandbox.Common.ObjectBuilders; using Sandbox.Definitions; using Sandbox.Game.Entities; using Sandbox.Game.EntityComponents; using Sandbox.Game.Weapons; using VRage; using VRage.Game; using VRage.Game.Components; using VRa...
mit
plotly/plotly.py
packages/python/plotly/plotly/validators/layout/ternary/aaxis/_dtick.py
493
import _plotly_utils.basevalidators class DtickValidator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name="dtick", parent_name="layout.ternary.aaxis", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
mit
rmoriz/decaptcha
lib/decaptcha/provider.rb
43
module Decaptcha module Provider; end end
mit
JasonHaley/Redis.WebJobs.Extensions
source/Redis.WebJobs.Extensions/Samples/Publisher/Functions.cs
3478
using Microsoft.Azure.WebJobs; using Redis.WebJobs.Extensions; using System; using System.IO; namespace Publisher { public static class Functions { // PubSub Examples *********************************************************************************** // Pub/Sub example: output binding that pu...
mit
ubpb/metacrunch-ubpb
spec/metacrunch/ubpb/transformations/mab_to_primo/add_issn_spec.rb
706
describe Metacrunch::UBPB::Transformations::MabToPrimo::AddIssn do transformation = transformation_factory(described_class) define_field_test '000637121', issn: ['0935-4018', '1437-2940'] context "secondary forms issns" do context "for a RDA record" do subject do mab_xml = mab_xml_builder do ...
mit
dnair926/AjaxControlToolkit.Extended
AjaxControlToolkit.SampleSite/About.aspx.cs
318
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace AjaxControlToolkit.SampleSite { public partial class About : Page { protected void Page_Load(object sender, EventArgs e) { } } }
mit
mainio/c5_automatic_email_obfuscator
src/EmailObfuscator/HtmlObfuscator.php
1025
<?php namespace Concrete\Package\AutomaticEmailObfuscator\Src\EmailObfuscator; use Concrete\Core\Asset\AssetList; use Concrete\Core\Http\ResponseAssetGroup; class HtmlObfuscator extends AbstractObfuscator { public function registerViewAssets() { $al = AssetList::getInstance(); $al->register( ...
mit
solguttman/nodejs
gulpfile.js
362
//Gulp stuff var gulp = require('gulp'); var sass = require('gulp-sass'); var prefixer = require('gulp-autoprefixer'); var minify = require('gulp-minify-css'); // Default task gulp.task('default',['sass']); //Build Sass gulp.task('sass',function(){ gulp .src('./stylesheets/main.scss') .pipe(sass()) .pipe(prefi...
mit
zenilt/bicubic-framework-php
web/lib/bicubic/MandrillEmail.php
3152
<?php /* * The MIT License * * Copyright 2015 Juan Francisco Rodríguez. * * 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 ...
mit
nirvash/Justaway-for-Android-Original
Justaway/src/main/java/info/justaway/fragment/main/tab/ReactionsFragment.java
1823
package info.justaway.fragment.main.tab; import android.os.AsyncTask; import android.view.View; import info.justaway.event.model.StreamingCreateFavoriteEvent; import info.justaway.model.AccessTokenManager; import info.justaway.model.Row; import info.justaway.model.TabManager; import info.justaway.model.TwitterManager...
mit
1988gadocansey/srms-laravel
app/Models/WorkerModel.php
378
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class WorkerModel extends Model { // /** * The database table used by the model. * * @var string */ protected $table = 'tpoly_workers'; protected $primaryKey="id"; protected $guarded = ...
mit
bgourlie/BriansMod
Oxide.Ext.BriansMod/Model/Rust/Contracts/IHeldEntity.cs
171
namespace Oxide.Ext.BriansMod.Model.Rust.Contracts { public interface IHeldEntity : IBaseEntity { HoldType HoldType { get; } IBasePlayer OwnerPlayer { get; } } }
mit
drewtorg/wramtas
src/templates/informationPage.tsx
667
import React from 'react'; import { graphql } from 'gatsby'; import MainLayout from '../layouts'; import { documentToReactComponents } from '@contentful/rich-text-react-renderer'; import { richTextToComponents } from '../utils/render'; const InformationPage = ({ data }: any) => { const page = data.contentfulInformat...
mit
AndriusBil/material-ui
src/styles/spacing.d.ts
67
export type Spacing = { unit: number; }; export default Spacing;
mit
zflat/label_gen
lib/label_gen.rb
579
require 'prawn' require 'i18n' I18n.enforce_available_locales = true I18n.load_path ||= [] I18n.load_path << [ File.join(File.dirname(__FILE__), "..", "config", "locales", "en.yml") ] require 'data_mapper' require "label_gen/configuration" require "label_gen/version" require "label_gen/frame_iter" require "label_g...
mit
queue-interop/amqp-interop
src/AmqpConsumer.php
811
<?php declare(strict_types=1); namespace Interop\Amqp; use Interop\Queue\Consumer; /** * @method AmqpMessage|null receiveNoWait() * @method AmqpMessage|null receive(int $timeout = 0) * @method AmqpQueue getQueue() * @method void acknowledge(AmqpMessage $message) * @method void reject(AmqpMessage $message, bool ...
mit
ycabon/presentations
2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/widgets/Directions.js
24894
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/tsSupport/assignHelper dojo/i18n!../nls/common dojo/i18n!./...
mit
chd7well/yii2-smartmenu
models/Menu.php
2379
<?php /* * This file is part of the chd7well project. * * (c) chd7well project <http://github.com/chd7well/> by CHD Electronic Engineering * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace chd7well\smartmenu\mode...
mit
Creative-Self/DSA2
A06 - Octree/MyOctant.cpp
8203
#include "MyOctant.h" using namespace Simplex; //static uint MyOctant::m_uOctantCount; uint MyOctant::m_uLeafCount; uint MyOctant::m_uMaxLevel; uint MyOctant::m_uIdealEntityCount; //root construct MyOctant::MyOctant(uint a_nMaxLevel, uint a_nIdealEntityCount) { //create root Init(); m_pRoot = this; m_uMaxLevel =...
mit
GraphExec/GraphExecNet
GraphExec/IDataProvider.cs
373
 namespace GraphExec { public interface IDataProvider : IProvider { } public interface IDataProvider<TData> : IDataProvider { TData GetData(); } public interface IDataProvider<TData, TProviderInfo> : IDataProvider where TProviderInfo : class, IProviderInfo, new() { ...
mit
psolstice/zcoin
src/qt/zerocoinpage.cpp
7596
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "zerocoinpage.h" #include "ui_zerocoinpage.h" ...
mit
zheralfin/oras
resources/views/subjects/partials/form.blade.php
1788
<div class="box-body"> @if (count($errors) > 0) <div class="alert alert-warning"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div class="form-group"> {!! Form::label('code', 'Code') !!} ...
mit
apo-j/Projects_Working
EC/espace-client-dot-net/EspaceClient.BackOffice.Services.Contracts/IServiceTraductionCategorieClient.Generated.cs
1009
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-------...
mit
bingoo0/SoftUni-TechModule
Array and List Algorithms - Exercises/1. Shoot List Elements/ShootListElements.cs
2856
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _1.Shoot_List_Elements { class ShootListElements { static void Main() { var numbers = new List<int>(); var input = Console.ReadLine(); var lastRemoved = 0; ...
mit
moroztaras/my_blog_2015_GH_PHP
app/cache/dev/twig/8b/ae/39be815b75904f2a44a8df12b137a751575dedb81cd6aebe3eca890d2af6.php
2080
<?php /* MorozBlogBundle:Comment:comments.html.twig */ class __TwigTemplate_8bae39be815b75904f2a44a8df12b137a751575dedb81cd6aebe3eca890d2af6 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = a...
mit
Azure/azure-sdk-for-go
services/postgresql/mgmt/2021-06-01/postgresqlflexibleservers/version.go
709
package postgresqlflexibleservers import "github.com/Azure/azure-sdk-for-go/version" // 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 ma...
mit
vujita/playing-card-models
src/FaceValues.ts
337
/** * Created by vuthasone on 8/20/2016. */ export const FaceValues = { TWO: 'TWO', THREE: 'THREE', FOUR: 'FOUR', FIVE: 'FIVE', SIX: 'SIX', SEVEN: 'SEVEN', EIGHT: 'EIGHT', NINE: 'NINE', TEN: 'TEN', JACK: 'JACK', QUEEN: 'QUEEN', KING: 'KING', ACE: 'ACE' }; export de...
mit
axllent/silverstripe-simplemodeladmin
_config.php
90
<?php LeftAndMain::require_css(basename(dirname(__FILE__)) . '/css/simplemodeladmin.css');
mit
jeffbski/git-wiki
extensions.rb
1136
def require_gem_with_feedback(gem) begin require gem rescue LoadError puts "You need to 'sudo gem install #{gem}' before we can proceed" end end class String # convert to a filename (substitute _ for any whitespace, discard anything but word chars, underscores, dots, and dashes, slashes def wiki_file...
mit
googlestadia/renderdoc
renderdoc/driver/d3d11/d3d11_shader_cache.cpp
9404
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2018-2019 Baldur Karlsson * * 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...
mit
epwqice/admin-on-rest-old-man
lib/mui/delete/Delete.js
7856
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopReq...
mit
wabbox/WabboxLettreBundle
src/Wabbox/UserBundle/Entity/User.php
1831
<?php // src/Wabbox/UserBundle/Entity/User.php namespace Wabbox\UserBundle\Entity; use FOS\UserBundle\Entity\User as BaseUser; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; //use Wabbox\LettreBundle\Entity\Per...
mit
pestanko/3scale-api-ruby
lib/three_scale_api/resources/oauth_dev_portal.rb
274
# frozen_string_literal: true require 'three_scale_api/resources/default' module ThreeScaleApi module Resources # WebHook resource wrapper for the OAuth for Developer portal entity received by the REST API class OAuthDevPortal < DefaultResource end end end
mit
tzuhan/organ-donation
test/functional/story_controller_test.rb
132
require 'test_helper' class StoryControllerTest < ActionController::TestCase # test "the truth" do # assert true # end end
mit
TanjidIslam/code-mangler
codemangler/models/user.py
2630
from datetime import datetime from config import MongoConfig class User(object): """ A User Object """ def __init__(self, username, name, email, _id=None, user_type="regular", attempted=[], completed=[], xp=0, level=0, account_created=None, last_modified=None): """ (User, str, ...
mit
zealot128/ruby-habtm-generator
lib/generators/habtm/habtm_generator.rb
2376
require 'rails/generators/migration' require 'rails/generators/active_record' class HabtmGenerator < ActiveRecord::Generators::Base source_root File.expand_path('../templates', __FILE__) argument :other_model, required: true, type: :string, desc: "List both part of the habtm migration to generate the table" ...
mit
selvasingh/azure-sdk-for-java
sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/PhoenixLinkedService.java
12406
/** * 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.datafactory.v2018_06_01; import com.fasterxml.ja...
mit
alt22247/YCQL
YCQL/SQLFunctions/MySQLFunctions/MySQLFunctionLastInsertedID.cs
544
/* * Copyright © 2015 by YuXiang Chen * All rights reserved */ using Ycql.SqlFunctions; namespace Ycql.MySqlFunctions { /// <summary> /// Represents LAST_INSERT_ID function in MySql which returns the most recently generated ID in the server on a per-connection basis /// </summary> public class MySqlFunctionLa...
mit
stivalet/PHP-Vulnerability-test-suite
XSS/CWE_79/safe/CWE_79__SESSION__func_htmlspecialchars__Use_untrusted_data_script-doublequoted_Event_Handler.php
1402
<!-- Safe sample input : get the UserData field of $_SESSION sanitize : use of the function htmlspecialchars. Sanitizes the query but has a high chance to produce unexpected results File : use of untrusted data in a double quoted event handler in a script --> <!--Copyright 2015 Bertrand STIVALET Permission is hereb...
mit
bcvsolutions/CzechIdMng
Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/eav/api/dto/InvalidFormAttributeDto.java
4444
package eu.bcvsolutions.idm.core.eav.api.dto; import java.io.Serializable; import java.math.BigDecimal; import org.springframework.hateoas.core.Relation; import eu.bcvsolutions.idm.core.api.dto.AbstractDto; import eu.bcvsolutions.idm.core.api.service.LookupService; /** * DTO for keep informations about invalidate ...
mit
bmcdorman/libgab
include/gab/agent_selector.hpp
401
#ifndef _GAB_AGENT_SELECTOR_HPP_ #define _GAB_AGENT_SELECTOR_HPP_ #include <list> #include <memory> #include "agent.hpp" #include "fitness_evaluator.hpp" namespace gab { class agent_selector { public: virtual std::list<std::shared_ptr<agent>> operator()(const std::list<std::shared_ptr<agent>> &agents, const...
mit
yosmared/escuela
src/Escuela/CoreBundle/Controller/ParentsController.php
9658
<?php namespace Escuela\CoreBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configu...
mit
skyarch-networks/skyhopper
spec/spec_helper.rb
2725
# # Copyright (c) 2013-2017 SKYARCH NETWORKS INC. # # This software is released under the MIT License. # # http://opensource.org/licenses/mit-license.php # # This file is copied to spec/ when you run 'rails generate rspec:install' ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../config/environment', __dir__) r...
mit
createthis/createthis_vr_ui
Assets/CreateThis/Scripts/VR/UI/Scroller/KineticScroller.cs
5663
using System.Collections.Generic; using UnityEngine; using CreateThis.Math; using CreateThis.Unity; using CreateThis.VR.UI.Interact; using CreateThis.VR.UI.Controller; namespace CreateThis.VR.UI.Scroller { public class KineticScroller : Grabbable { public FixedJoint fixedJoint; public float space =...
mit
bpmn-io/diagram-js
test/spec/features/create/CreateSpec.js
27773
import { bootstrapDiagram, inject } from 'test/TestHelper'; import { createCanvasEvent as canvasEvent } from '../../../util/MockEvents'; import modelingModule from 'lib/features/modeling'; import moveModule from 'lib/features/move'; import dragModule from 'lib/features/dragging'; import createModule from 'lib/f...
mit
ggtakec/k2hash
lib/k2hattrs.cc
11556
/* * K2HASH * * Copyright 2013 Yahoo Japan Corporation. * * K2HASH is key-valuew store base libraries. * K2HASH is made for the purpose of the construction of * original KVS system and the offer of the library. * The characteristic is this KVS library which Key can * layer. And can support multi-processing and...
mit
tesera/bawlk
bin/headers.js
453
#!/usr/bin/env node var es = require('event-stream'); var JSONStream = require('JSONStream'); process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin .pipe(JSONStream.parse('resources.*')) .pipe(es.map(function (resource, callback) { var headers = resource.schema.fields.map(function(f...
mit
betcoinproject/betcoin
build/moc_sendcoinsentry.cpp
4082
/**************************************************************************** ** Meta object code from reading C++ file 'sendcoinsentry.h' ** ** Created: Sun Jan 5 14:07:20 2014 ** by: The Qt Meta Object Compiler version 63 (Qt 4.8.2) ** ** WARNING! All changes made in this file will be lost! *********************...
mit
htonkovac/ieee-raspored
node_modules/googleapis/apis/androidenterprise/v1.js
142194
"use strict"; /** * Copyright 2015 Google Inc. All Rights Reserved. * * 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 * * Unless req...
mit
SELO77/seloPython
3.X/ex/filterAndLambda.py
281
import traceback data = [3,1,2,5,6,7] try: result = filter(lambda x, y: y <x ,data) print(type(result)) print(result) for i in result: print(i) testResult = filter(lambda x:x < 5, data) for i in testResult: print(i) except: print(traceback.format_exc())
mit
volontariat/voluntary_brainstorming
lib/voluntary_brainstorming/engine.rb
833
module VoluntaryBrainstorming class Engine < ::Rails::Engine config.autoload_paths << File.expand_path("../..", __FILE__) config.autoload_paths << File.expand_path("../../../app/models/concerns", __FILE__) config.autoload_paths << File.expand_path("../../../app/serializers", __FILE__) config.i18n.load...
mit
loafbaker/django_ecommerce1
carts/migrations/0001_initial.py
3543
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Cart' db.create_table(u'carts_cart', ( (u'id'...
mit
dsaqt1516g3/walka-project
service/src/main/java/edu/upc/eetac/dsa/walka/Main.java
1537
package edu.upc.eetac.dsa.walka; import org.glassfish.grizzly.http.server.HttpServer; import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; import org.glassfish.jersey.server.ResourceConfig; import java.io.IOException; import java.net.URI; import java.util.PropertyResourceBundle; import java.util....
mit