repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
etelic/sampleapp
src/GeneratorBase.MVC/Scripts/bootstrap.js
59195
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
mit
neermitt/ng2-highcharts
webpack.config.js
1613
'use strict'; var webpack = require('webpack'); var path = require('path'); var srcPath = path.join(__dirname, 'demo'); var production = -1 < process.argv.indexOf('--dist'); console.log('production', production); var outPath = production ? 'dist' : 'build'; var devtool = production ? 'source-map' : 'eval-source-map'; ...
mit
moqada/github-wiki-notifier
src/utils/env.js
215
const PREFIX = 'GHWIKINOTIFIER_'; /** * Get environment variables * * @param {string} name variable name * @return {string|undefined} */ export function get(name) { return process.env[`${PREFIX}${name}`]; }
mit
thorstenwagner/TraJ
src/main/java/de/biomedical_imaging/traJ/features/MeanSquaredDisplacmentFeature.java
4347
/* The MIT License (MIT) Copyright (c) 2015 Thorsten Wagner (wagner@biomedical-imaging.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, including without limitation the ri...
mit
cloudteams/designs
src/views/user/dashboard/profile/index.php
630
<?php include("../partials/header.php"); ?> <section class="page page-user-dashboard-projects dashboard-page user-dashboard-page"> <div class="container"> <div class="content"> <div class="row"> <?php include("../partials/side-menu.php"); ?> <main> <header class="main-header"> <div class="ver...
mit
avajs/eslint-plugin-ava
rules/prefer-power-assert.js
1694
'use strict'; const {isDeepStrictEqual} = require('util'); const espurify = require('espurify'); const {visitIf} = require('enhance-visitors'); const createAvaRule = require('../create-ava-rule'); const util = require('../util'); const notAllowed = [ 'truthy', 'true', 'falsy', 'false', 'is', 'not', 'regex', '...
mit
msegers/ng2-blog
app/components/contact/contact.ts
858
import {Component, View, NgFor} from 'angular2/angular2'; //import {forms, required, formDirectives, materialDesign, FormBuilder} from 'angular2/forms'; @Component({ selector: 'contact', }) @View({ templateUrl: './components/contact/contact.html', directives: [NgFor] }) export class Contact { //contactForm:Con...
mit
Teknikaali/BenchmarkDotNet
src/BenchmarkDotNet.Disassembler.x64/ClrSourceExtensions.cs
4888
using Microsoft.Diagnostics.Runtime; using Microsoft.Diagnostics.Runtime.Utilities; using Microsoft.Diagnostics.Runtime.Utilities.Pdb; using System; using System.Collections.Generic; using System.IO; namespace Microsoft.Diagnostics.RuntimeExt { // This is taken from the Samples\FileAndLineNumbers projects from mi...
mit
robertlemke/flow-development-collection
TYPO3.Flow/Classes/TYPO3/Flow/Cache/Exception/ClassAlreadyLoadedException.php
634
<?php namespace TYPO3\Flow\Cache\Exception; /* * * This script belongs to the Flow framework. * * * * It is free software; you can redistribute it...
mit
galaxykate/Stellar2014
js/modules/shared/common/rect.js
4057
/** * @author Kate Compton */ // Reusable Vector class define(["./vector"], function(Vector) { var Rect = Class.extend({ // use as init(x, y, w, h) or init(position:Vector, dimensions:Vector) init : function() { if (arguments.length == 4) { this.x = arguments[0]; ...
mit
next0/gtd
src/js/gtd.js
352
'use strict'; // imports var $ = require('jquery'), TableGTDView = require('./views/table-gtd'), StickersCollection = require('./collections/stickers'); // code var collection = new StickersCollection(); var table = new TableGTDView({ el: $('[data-ui="grid"]'), collection: coll...
mit
wcmatthysen/android-filechooser
code/src/group/pals/android/lib/ui/filechooser/utils/ui/GestureUtils.java
7345
/* * Copyright (c) 2012 Hai Bison * * See the file LICENSE at the root directory of this project for copying * permission. */ package group.pals.android.lib.ui.filechooser.utils.ui; import group.pals.android.lib.ui.filechooser.BuildConfig; import android.graphics.Rect; import android.util.Log; import an...
mit
octoblu/redis-interval-work-queue
main.go
420
package main import ( "log" "os" "github.com/codegangsta/cli" ) func main() { app := cli.NewApp() app.Name = "redis-interval-work-queue" app.Usage = "Run the work queue" app.Action = processQueue app.Run(os.Args) } func processQueue(context *cli.Context) { queue := NewProcessQueue() for { if ...
mit
difaharashta/SKRIPSI
admin/login-cek.php
504
<?php session_start(); include 'connect.php'; $username = $_POST['username']; $password = $_POST['password']; $query = "select * from admin where username='$username' and password=md5('$password')"; $rows = mysql_num_rows(mysql_query($query)); if($rows>0){ $data = mysql_fetch_array(mysql_query($query)); ...
mit
mdouchement/iosupport
storage_service.go
4175
package iosupport //go:generate codecgen -u -o codec.go -r TsvLine tsv_indexer.go import ( "bytes" "fmt" "strings" "sync" "github.com/oxtoacart/bpool" "github.com/peterbourgon/diskv" "github.com/ugorji/go/codec" ) // A StorageService allows to store blobs type StorageService interface { // Marshal writes th...
mit
jawher/mow.cli
internal/matcher/matchers.go
698
package matcher /* Matcher is used to parse and consume the args and populate the ParseContext */ type Matcher interface { /* Match examines the provided args and: - likes it, fills the parse context and returns true and the remaining args it didn't consume - doesn't like it, returns false and the remaining args i...
mit
isliliye/CES-Wordpess-site
functions.php
17644
<?php /* * Author: Todd Motto | @toddmotto * URL: html5blank.com | @html5blank * Custom functions, support, custom post types and more. */ /*------------------------------------*\ External Modules/Files \*------------------------------------*/ // Load any external files you have here /*----------------------...
mit
nossas/vivos-em-nos
src/views/components/form/upload-multiples-field.js
1082
import { h, Component } from 'preact' /** @jsx h */ import { Field } from 'redux-form' import { FormGroup, UploadField } from '~src/views/components/form' export default class UploadMultiplesField extends Component { componentDidMount() { this.props.fields.push() } render() { const { fields, label, meta...
mit
rmc00/gsf
Source/Libraries/GSF.TimeSeries/UI/WPF/UserControls/AdapterUserControl.xaml.cs
12066
//****************************************************************************************************** // AdapterUserControl.xaml.cs - Gbtc // // Copyright © 2010, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements....
mit
sheplu/LiveDemo
SUPINFO/Tamagocci.js - base 1/src/tamagocci.js
293
function Tamagocci() { this.weight = 5; this.happiness = 5; this.age = 0; this.minWeight = 1; this.maxWeight = 10; this.eat = function() { this.weight += 2; }; this.play = function() { this.weight--; this.happiness++; } }
mit
PaulNoth/hackerrank
practice/algorithms/implementation/cats_and_a_mouse/CatsAndMouse.java
1016
import java.util.*; public class CatsAndMouse { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int tests = Integer.parseInt(stdin.nextLine()); for(int i = 0; i < tests; i++) { String line = stdin.nextLine(); String[] abmString = lin...
mit
chilts/rustle
lib/epoch.js
428
function toEpoch(d) { if ( d instanceof Date ) { return Math.floor(d.valueOf() / 1000); } if ( typeof d === 'string' ) { return Math.floor((Date.parse(d)).valueOf() / 1000); } if ( typeof d === 'number' ) { return Math.floor((new Date(+(d + '000'))).valueOf() / 1000); }...
mit
mprinc/KnAllEdge
src/frontend/dev_puzzles/flow/audit/lib/colabo-flow-audit.service.ts
8687
const MODULE_NAME: string = "@colabo-flow/f-audit"; import { Injectable, Inject } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { catchError, map, tap } from 'rxjs/operators'; import { AuditedAction, AuditedActionClass } from '@colabo-flow/i-audit'; import { Observable, ...
mit
moeadham/ripple-simple
js/util/base58.js
2881
var Base58Utils = (function () { var alphabets = { 'ripple': "rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz", 'bitcoin': "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" }; var SHA256 = function (bytes) { return sjcl.codec.bytes.fromBits(sjcl.hash.sha256.hash(sjcl.codec.by...
mit
towski/disc-jockey
node_modules/mongodb/lib/mongodb/index.js
912
var sys = require('sys') // // Add both the BSON Pure classes and the native ones var BSONPure = exports.BSONPure = require('./bson/bson'); var BSONNative = null try { BSONNative = exports.BSONNative = require('../../external-libs/bson/bson'); } catch(err) { } [ 'bson/binary_parser', 'commands/base_command', 'co...
mit
eripa/rtelldus
lib/rtelldus/version.rb
40
module Rtelldus VERSION = "1.0.1" end
mit
InsertCleverNameHere/cleverjobhunter
src/components/list-companies/company-detail/edit-company/edit-company.js
763
import template from './edit-company.html'; export default { template, bindings: { companyToEdit: '<company' }, controller }; controller.$inject = ['$mdDialog', 'companyService', '$state']; function controller($mdDialog, companyService, $state){ this.company = angular.copy(this.companyToEdit); //get...
mit
ShowingCloud/Elnath
config/environment.rb
196
# Load the Rails application. require File.expand_path('../application', __FILE__) require_relative 'initializers/arel_patch' # Initialize the Rails application. Elnath::Application.initialize!
mit
waynesayonara/imperium
lib/engine/map/tile_sets.rb
1098
module Engine module Map class TileSets def initialize(data, data_dir) @data = data @tilesets = {} @data.each do |t| tileset = Gosu::Image.load_tiles( $window, File.join(data_dir, t.image), t.tilewidth, t.tileheight, true) @tilesets[t.firstgid] = { ...
mit
gilcierweb/CMS-Rails
db/migrate/20150712203840_devise_create_users.rb
1361
class DeviseCreateUsers < ActiveRecord::Migration[5.2] def change create_table(:users) do |t| ## Database authenticatable t.string :email, null: false, default: "" t.string :encrypted_password, null: false, default: "" ## Recoverable t.string :reset_password_token ...
mit
keefekwan/symfony2_forms
src/KK/FormsBundle/Entity/Account.php
1441
<?php // src/KK/FormsBundle/Entity/Account.php namespace KK\FormsBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Account * * @ORM\Table() * @ORM\Entity(repositoryClass="KK\FormsBundle\Repository\AccountRepository") */ class Account { /** * @var integer * * @ORM\Column(name="id", type="i...
mit
gazzlab/LSL-gazzlab-branch
liblsl/external/lslboost/fusion/adapted/boost_array/detail/size_impl.hpp
866
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2005-2006 Dan Marsden Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.lslboost.org/LICENSE_1_0.tx...
mit
thedersen/UnityConfiguration
src/UnityConfiguration.Tests/CustomConventionTests.cs
946
using System; using NUnit.Framework; using Unity; using UnityConfiguration.Services; namespace UnityConfiguration { [TestFixture] public class CustomConventionTests { [Test] public void Can_create_custom_conventions() { var container = new UnityContainer(); ...
mit
hrgdavor/java-hipster-sql
processor/src/main/java/hr/hrg/hipster/processor/GenDelta.java
642
package hr.hrg.hipster.processor; import static hr.hrg.javapoet.PoetUtil.*; import com.squareup.javapoet.*; public class GenDelta { public TypeSpec.Builder gen2(EntityDef def) { TypeSpec.Builder cp = classBuilder(PUBLIC(), def.typeDelta); // cp.superclass(parametrized(EnumGetterUpdateDelta.class, def.typeI...
mit
lache/RacingKingLee
server/core/nancy/Nancy/Routing/Trie/TrieNodeFactory.cs
2724
namespace Nancy.Routing.Trie { using System.Linq; using System.Collections.Generic; using Nancy.Routing.Constraints; using Nancy.Routing.Trie.Nodes; /// <summary> /// Factory for creating the correct type of TrieNode /// </summary> public class TrieNodeFactory : ITrieNodeFactory { ...
mit
akshaydewan/qbittorrent-remote
PhoneApp1/StorageWrapper.cs
2035
using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.IO.IsolatedStorage; namespace PhoneApp1...
mit
SantiMA10/HomePi
src/module/sensor/impl/RestSensor.ts
797
import { ReadData } from "../read" import * as requestPromise from "request-promise"; import {Configuration, RestOptions} from "../../../util/RestUtil"; export interface RestSensorConfig{ param : RestOptions, url : string } export class RestSensor implements ReadData{ param : RestOptions; options : C...
mit
coma/svg-reactify
src/index.js
3411
import { basename } from 'path'; import { transform as babel } from 'babel-core'; import react from 'babel-preset-react'; import SVGO from 'svgo'; import through from 'through2'; import camelCase from 'lodash.camelcase'; import kebabCase ...
mit
bokuweb/react-resizable-box
src/index.tsx
30190
import * as React from 'react'; import { Resizer, Direction } from './resizer'; import memoize from 'fast-memoize'; const DEFAULT_SIZE = { width: 'auto', height: 'auto', }; export type ResizeDirection = Direction; export interface Enable { top?: boolean; right?: boolean; bottom?: boolean; left?: boolean;...
mit
Gletschr/ephedrine
ephedrine/src/EphedrineMath.cpp
11980
//----------------------------------------------------------------------------- // // Ephedrine API // // File: src/EphedrineMath.cpp // // Author: Kostarev Georgy // E-Mail: kostarevgi@gmail.com // //----------------------------------------------------------------------------- //--------------------------------------...
mit
selvasingh/azure-sdk-for-java
sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/CreateLinkedIntegrationRuntimeRequest.java
3634
/** * 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
Shtereva/Fundamentals-with-CSharp
Regex/03. Karate Strings/KarateStrings.cs
1109
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _03.Karate_Strings { class KarateStrings { static void Main() { var path = Console.ReadLine(); int power = 0; for (int i = 0; i < path.Length; i++) {...
mit
optimumweb/anode
js/vendor/jquery.ajaxForm.js
5872
/* * ajaxForm * * Validate and send a form asynchronously * @author Jonathan Roy <jroy@optimumweb.ca> * @version 2.1 * @package wpboilerplate */ $(function() { "use strict"; // jshint ;_; jQuery.fn.ajaxForm = function() { return this.each(function() { // define form elements ...
mit
TracKer/epguides-api
lib/EpGuidesAPI/Episode.php
2299
<?php namespace EpGuidesAPI; class Episode { /** * @var Show */ private $show; private $title; private $is_special; private $season; private $episode; private $number; private $release_date; private $raw_data; public function __construct($show, $episode_data) { $this->raw_data = $episo...
mit
sportngin/indefinite_article
lib/indefinite_article/version.rb
49
module IndefiniteArticle VERSION = "0.1.2" end
mit
prashanth-cpaul/ReactReduxSample
src/lib/dataStub.js
3854
let ucl = "UEFA Champions League", laliga = "La Liga", espCup = "Spanish Cup", euLeague = "Europa League", commS = "Community Shield", fac = "FA Cup", prem = "Premier League", cc = "Carling Cup", intl = "International Friendly", atlMad = "Atletico Madrid", manUtd = "Man...
mit
laobubu/HyperMD
rollup.config.js
1467
import buble from 'rollup-plugin-buble' import typescript from 'rollup-plugin-typescript2' import { uglify } from 'rollup-plugin-uglify' const { banner, globalNames, externalNames, bundleFiles } = require(__dirname + '/dev/HyperMD.config') const plugins = { ts: typescript({ tsconfigOverride: { compilerOpt...
mit
mbdavid/LiteDB
LiteDB.Stress/Program.cs
605
using LiteDB; using LiteDB.Engine; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Threading; using System.Threading.Tasks; namespace LiteDB.Stress { public class Program { static void Main(string[] args) ...
mit
testbars/testbars
src/bitcoinrpc.cpp
119457
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 The Litecoin Developers // Copyright (c) 2013 adam m. // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. ...
mit
pact-foundation/pact-python
tests/test_broker.py
4974
import os from unittest import TestCase from mock import patch from pact.broker import Broker from pact.consumer import Consumer, Provider from pact.constants import BROKER_CLIENT_PATH from pact import broker as broker class BrokerTestCase(TestCase): def setUp(self): self.consumer = Consumer('TestConsu...
mit
DirectMyFile/JPower
modules/Core/src/main/java/jpower/core/Task.java
737
package jpower.core; import jpower.core.internal.CancelStateTracker; @FunctionalInterface public interface Task extends Runnable { /** * Used to run in Threads */ @Override default void run() { execute(); } /** * Executes this Task */ void execute(); /** * Checks if t...
mit
csteinmetz1/pyloudnorm
pyloudnorm/util.py
925
import numpy as np def valid_audio(data, rate, block_size): """ Validate input audio data. Ensure input is numpy array of floating point data bewteen -1 and 1 Params ------- data : ndarray Input audio data rate : int Sampling rate of the input audio in Hz block_size : ...
mit
Jozain/three.js
examples/js/shaders/GlossyMirrorShader.js
7218
THREE.GlossyMirrorShader = { defines: { "SPECULAR_MAP": 0, "ROUGHNESS_MAP": 0, "GLOSSY_REFLECTIONS": 1, "REFLECTION_LOD_LEVELS": 4, "PERSPECTIVE_CAMERA": 1 }, uniforms: { "metalness": { type: "f", value: 0.0 }, "specularColor": { type: "c", value: new THREE.Color( 0xffffff ) }, "tSpecular": { t...
mit
duboviy/misc
map_it.py
498
#!/usr/bin/env python # Launches a map in the browser using an address from the command line or clipboard. import webbrowser import sys import pyperclip # pip install pyperclip def map_it(): if len(sys.argv) > 1: # get address from command line address = ' '.join(sys.argv[1:]) else: ...
mit
cheminfo-js/chromatography
src/util/__tests__/getClosestData.test.js
287
import { simple4 as chromatogram } from '../../../testFiles/examples'; test('Get closest data', () => { // time : [1, 2, 3, 4] expect(chromatogram.getClosestData(1.9)).toStrictEqual({ rt: 2, index: 1, data: [ [102, 202, 302], [12, 22, 32], ], }); });
mit
cuckata23/wurfl-data
data/alcatel_ot903_ver1.php
1344
<?php return array ( 'id' => 'alcatel_ot903_ver1', 'fallback' => 'generic_android_ver2_3', 'capabilities' => array ( 'uaprof' => 'http://www-ccpp.tcl-ta.com/files/ALCATEL_ONE_TOUCH_903.xml', 'model_name' => 'OT-903', 'brand_name' => 'Alcatel', 'marketing_name' => 'One Touch 903', 'release_d...
mit
jmervine/omnistruct
omnistruct.rb
844
Dir.glob(File.join(File.dirname(__FILE__), 'ext', '*.rb')).each do |lib| require lib end require 'json' # Top level class, mainly for correct requiring, but wraps Hash extensions as # well. module OmniStruct # Wraps Hash.to_struct # # Examples: # # s = OmniStruct.new({:foo => :bar}) # s.class # #...
mit
itconsultis/weixin-payment
src/ITC/Weixin/Payment/Contracts/MessageFactory.php
275
<?php namespace ITC\Weixin\Payment\Contracts; interface MessageFactory { /** * @param mixed $data * @param array $required * * @return ITC\Weixin\Payment\Contracts\Message */ public function createMessage($data = null, $required = null); }
mit
charlessweet/amandadb
Amanda.IO/IAmandaFile.cs
368
using System.IO; namespace Amanda.IO { public interface IAmandaFile { bool Exists { get; } string GetNameWithoutExtension(); string GetRelativeFileName(); bool IsLargerThan(double fileSizeInGb); Stream OpenRead(); Stream OpenWrite(); void Tru...
mit
caninojories/farmer
front-end/resources/js/routes/client/signup/farmer.js
1430
(function() { 'use strict'; angular .module('app.signup') .controller('Farmer', Farmer); Farmer.$inject = ['$q', '$rootScope', '$state', 'commonsDataService', 'signupServiceApi']; /* @ngInject */ function Farmer($q, $rootScope, $state, commonsDataService, signupServiceApi) { var vm =...
mit
umurkaragoz/laravel-std-admin
src/ManagesEditing.php
1034
<?php namespace Umurkaragoz\StdAdmin; use Illuminate\Database\Eloquent\Builder; /** * Trait ManagesEdit * Supplies common data to both `create` and `edit` operations. * * @package Umurkaragoz\StdAdmin */ trait ManagesEditing { /* ------------------------------------------------------------------------------...
mit
Innodite/laravel5-scaffold
src/Innodite/Generator/Generators/Common/MigrationGenerator.php
1743
<?php namespace Innodite\Generator\Generators\Common; use Config; use Innodite\Generator\CommandData; use Innodite\Generator\Generators\GeneratorProvider; use Innodite\Generator\SchemaCreator; class MigrationGenerator implements GeneratorProvider { /** @var CommandData */ private $commandData; private $path; f...
mit
kaoDev/waterchat-app
src/components/profile-picture.tsx
423
import glamorous from 'glamorous' export const ProfilePicture = glamorous.div< { url?: string, diameter?: number } >( { borderRadius: '50%', backgroundPosition: 'center', backgroundColor: 'black', backgroundRepeat: 'no-repeat', backgroundSize: 'contain', }, ({ url = '', diameter = 50 }) => ...
mit
i-square/LeetCode
451-sort-characters-by-frequency/sort-characters-by-frequency_[AC4_29ms].cpp
1106
// Given a string, sort it in decreasing order based on the frequency of characters. // // Example 1: // // Input: // "tree" // // Output: // "eert" // // Explanation: // 'e' appears twice while 'r' and 't' both appear once. // So 'e' must appear before both 'r' and 't'. Therefore "eetr" is also a valid answer. // // /...
mit
Xeltor/ovale
src/simulationcraft/text-tools.ts
2938
import { LuaArray, tonumber, setmetatable, rawset, type, tostring, pairs } from "@wowts/lua"; import { format, gsub, upper, lower, match } from "@wowts/string"; import { Annotation } from "./definitions"; import { OvalePool } from "../Pool"; export let INDENT: LuaArray<string> = {} { INDENT[0] = ""; le...
mit
igraal/stats-table
tests/Tests/DynamicColumn/RelativeColumnBuilderTest.php
1088
<?php namespace Tests\DynamicColumn; use IgraalOSL\StatsTable\DynamicColumn\RelativeColumnBuilder; use IgraalOSL\StatsTable\StatsTableBuilder; class RelativeColumnBuilderTest extends \PHPUnit_Framework_TestCase { public function testWithData() { $statsTable = new StatsTableBuilder( [ ...
mit
vir-mir/test_kudago
test_kudago_import/models.py
2959
# -*- coding: utf-8 -*- from django.db import models class Gallery(models.Model): image_url = models.URLField(max_length=255, verbose_name='Ссылка на изображение', unique=True) class Tag(models.Model): name = models.CharField(max_length=255, unique=True) class City(models.Model): name = models.CharFie...
mit
theWaR13/ivk
app/reducers/long-poll.js
736
import * as con from 'app/constants/long-poll'; const initialState = { lpKey: '', lpServer: '', lpTs: '', updates: [], requestNumber: '', isFetching: false }; export default function longPoll(state=initialState, action) { switch (action.type) { case con.SAVE_LP_DATA: return { ...state,...
mit
EmberSands/esi_client
spec/models/get_characters_character_id_not_found_spec.rb
1036
=begin #EVE Swagger Interface #An OpenAPI for EVE Online OpenAPI spec version: 0.4.6.dev11 Generated by: https://github.com/swagger-api/swagger-codegen.git =end require 'spec_helper' require 'json' require 'date' # Unit tests for ESIClient::GetCharactersCharacterIdNotFound # Automatically generated by swagger-cod...
mit
ribeiro-ucl/UCLGoProject
UCLGo/management/commands/fix_permissions.py
1110
import sys from django.contrib.auth.management import _get_all_permissions from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.core.management.base import BaseCommand from django.apps import apps class Command(BaseCommand): help = "Fix permissi...
mit
SamaPanda/symfony
vendor/symfony/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php
1351
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Loader; use Symfony\Component\Config\Exception...
mit
VidaID/bcoin
bench/script.js
932
'use strict'; var assert = require('assert'); var crypto = require('../lib/crypto/crypto'); var Script = require('../lib/script/script'); var bench = require('./bench'); var opcodes = Script.opcodes; var i, hashes, end; Script.prototype.fromPubkeyhashOld = function fromScripthash(hash) { assert(Buffer.isBuffer(hash...
mit
alexanderpa/angular-number-converter
karma.conf.js
1604
// Karma configuration module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', frameworks: ["jasmine"], // list of files / patterns to load in the browser files: [ 'bower_components/angular/angular.min.js', ...
mit
ernestas-poskus/codeschool
Rails 4 Zombie Outlaws/routes_test_html_patch.rb
206
class WeaponsControllerTest < ActionController::TestCase test "updates weapon" do patch :update, zombie_id: @zombie, weapons: { name: 'Scythe' } assert_redirected_to zombie_url(@zombie) end end
mit
htfy96/htscheme
types/float.hpp
161
#ifndef __SCHEME_TYPES_FLOAT #define __SCHEME_TYPES_FLOAT #include "arch.hpp" #include <string> PARSER_DECLARATION(FloatParser, Float, long double) #endif
mit
hetcollectief/express-upload
example/app/router.js
700
var _ = require('underscore') , upload = require('express-upload'); module.exports = function(app) { app.get('/', function(req, res) { res.redirect('/upload'); }); // ROUTE: GET /upload app.get('/upload', function(req, res) { res.render('upload', _.extend({ title: 'Server Upload', uploadpath: '/upl...
mit
mipengine/mip-extensions-platform
mip-jia-house-style/mip-jia-house-style.js
6597
/** * @file mip-jia-house-style 组件 * @author */ define(function (require) { var $ = require('zepto'); var customElement = require('customElement').create(); // 根据传入面积获取室厅卫的数量 function fenFn(obj, area) { if (area <= 60) { obj.find('input[name="shi1"]').val(1); obj.find...
mit
SilkStack/Silk.Data.SQL.ORM
Silk.Data.SQL.ORM/Silk.Data/IDeferred.cs
942
using System.Threading.Tasks; namespace Silk.Data { /// <summary> /// A deferred task waiting to be executed. /// </summary> public interface IDeferred { /// <summary> /// Create a new instance of the preferred transaction controller implemenation. /// Note: this might not be the transaction con...
mit
DeclanCarter/CDDLabs
Lab 3 Rendezvous/html/search/searchdata.js
301
var indexSectionsWithContent = { 0: "mrstw", 1: "s", 2: "ms", 3: "mstw", 4: "r" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "files", 3: "functions", 4: "pages" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Files", 3: "Functions", 4: "Pages" };
mit
WildflowerSchools/sensei
frontend/src/visualizations/components/entityTypeSection.js
987
import * as d3 from "d3"; import _ from 'lodash'; const defaultOpts = { rowHeight: 30, className: 'sections', labels: true } export default function entityTypeSection(selection, opts = {}) { opts = _.merge({}, defaultOpts, opts); selection.exit().remove(); // selects group tag that corresponds to the cu...
mit
heilc/TableTop
TableTop.Domain.CMS/Services/NuPickersService.cs
1543
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TableTop.Domain.CMS.Interfaces; using TableTop.Models.CMS.Models; using TableTop.Repository.CMS.Interfaces; using TableTop.Repository.CMS.Services; using Umbraco.Core.Models; using Umbraco.Web; na...
mit
valdisiljuconoks/ImageResizer.Plugins.EPiServerBlobReader
samples/SampleAlloy/Models/Media/ImageFile.cs
579
using EPiServer.Core; using EPiServer.DataAnnotations; using EPiServer.Framework.DataAnnotations; using System.ComponentModel.DataAnnotations; namespace SampleAlloy.Models.Media { [ContentType(GUID = "0A89E464-56D4-449F-AEA8-2BF774AB8730")] [MediaDescriptor(ExtensionString = "jpg,jpeg,jpe,ico,gif,bmp,png")] ...
mit
graphaware/GithubNeo4j
src/GraphAware/Neo4jBundle/GraphAwareNeo4jBundle.php
779
<?php namespace GraphAware\Neo4jBundle; use Symfony\Component\HttpKernel\Bundle\Bundle, Symfony\Component\DependencyInjection\ContainerBuilder; use Neoxygen\NeoClient\DependencyInjection\Compiler\ConnectionRegistryCompilerPass, Neoxygen\NeoClient\DependencyInjection\Compiler\NeoClientExtensionsCompilerPass; u...
mit
SoubhagyaDash/ApplicationInsights-Home
Samples/Heartbeat/AspNetCore/ASPNetCoreSample/Models/ErrorViewModel.cs
224
using System; namespace ASPNetCoreSample.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
mit
abhineet97/webrtc-chess
app/lib/peer.js
1971
'use strict'; import SimplePeer from 'simple-peer'; /** Class representing a library-independent WebRTC peer */ class Peer { /** * Create a peer. * @param {string} id */ constructor(id) { this._isInitiator = id === ''; this._id = id || this._genID(); this._offer = null; this._answer = nul...
mit
omniscopeio/flight-plans
app/models/user.rb
430
class User < ActiveRecord::Base enum role: [:user, :vip, :admin] after_initialize :set_default_role, :if => :new_record? def set_default_role self.role ||= :user end # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_aut...
mit
d-fischer/twitch
packages/chat/src/commands/TwitchPrivateMessage.ts
2672
import type { BaseCheermoteList, CheermoteFormat, ParsedMessageCheerPart, ParsedMessagePart } from '@twurple/common'; import { fillTextPositions, rtfm } from '@twurple/common'; import { MessageTypes } from 'ircv3'; import { ChatUser } from '../ChatUser'; import { parseEmoteOffsets, parseEmotePositions } from '../utils/...
mit
cs383-4/sQuire
src/main/java/squire/Users/ProjectFile.java
902
package squire.Users; /** * Implements files to be used by the project database */ import squire.BaseModel; import javax.persistence.Entity; import javax.persistence.ManyToOne; import javax.persistence.Table; @Entity //some databases have user as a reserved word, so following ebean examples, prefix tables with "o...
mit
gfviegas/anboil
template/components/socket/socket.service.js
2085
/* global io */ 'use strict'; angular.module('applicationApp') .factory('socket', function(socketFactory) { // socket.io now auto-configures its connection when we ommit a connection url var ioSocket = io('', { // Send auth token on connection, you will need to DI the Auth service above // 'quer...
mit
ahonn/ahonn.github.io
store/post.ts
649
import * as next from 'next'; import Api from '../lib/api'; interface IGetReducerPayload { id: number; post: IGithubIssue; } export default { state: { posts: {}, }, reducers: { get(state: any, payload: IGetReducerPayload) { const { id, post } = payload; return { ...state, ...
mit
Tetcoin/tetcoin
src/qt/locale/bitcoin_ro_RO.ts
109726
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Tetcoin</source> <translation>Despre Tetcoin</translation> </...
mit
hongjianqiang/Reading-Notes
精通JavaScript开发/第一章/1-34.js
297
(function() { 'use strict'; // ECMAScript 5 中的属性定义 var personalDetails = { name: 'Den Odell', email: 'den.odell@me.com' }; Object.defineProperty(personalDetails, 'age', { value: 25, writable: false, enumerable: true, configurable: true }); })();
mit
crestonbunch/botbox
common/game/synchronized.go
2890
package game import ( "errors" "golang.org/x/net/websocket" "log" "sync" "time" ) type SynchronizedGameClient struct { id string conn *websocket.Conn watchdog *Watchdog send chan ServerMessage receive chan ClientMessage err chan ClientError } func (c *SynchronizedGameClient) Id() strin...
mit
CaliburnFx/Caliburn
src/Caliburn/PresentationFramework/Actions/ActionAttribute.cs
1358
namespace Caliburn.PresentationFramework.Actions { using System; /// <summary> /// Designates an <see cref="IAction"/>. /// </summary> public class ActionAttribute : Attribute, IActionFactory { /// <summary> /// Gets or sets a value indicating whether to block interact...
mit
Centural/Centural.github.io
assets/js/mapsAPI.js
2311
--- --- function initialize() { $.getJSON( 'https://githubschool.github.io/open-enrollment-classes-introduction-to-github/createMap.topojson', function (data) { var mapSize = new google.maps.Size(256, 256), // original size, fallback for space invador images scaledSize = new google.maps.Size(20,...
mit
tranquvis/SimpleSmsRemote
app/src/main/java/tranquvis/simplesmsremote/Adapters/ManageControlModulesListAdapter.java
2335
package tranquvis.simplesmsremote.Adapters; import android.content.Context; import android.support.annotation.NonNull; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; impor...
mit
IrmantasLiepis/logo-design
public/js/vendor/angular2-notifications/lib/notification.component.js
9640
"use strict"; const core_1 = require('@angular/core'); const platform_browser_1 = require('@angular/platform-browser'); const notifications_service_1 = require('./notifications.service'); class NotificationComponent { constructor(notificationService, domSanitizer) { this.notificationService = notificationSe...
mit
danielsan80/danilosanchi-net
src/Dan/UserBundle/DataFixtures/ORM/LoadGroupData.php
859
<?php namespace Dan\UserBundle\DataFixtures\ORM; use Doctrine\ORM\EntityManager; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Dan\UserBundle\Entity\Group; class LoadGroupData extends AbstractFixture imp...
mit
jjcollinge/DroneSimulation
src/DroneSim/WebApp/wwwroot/lib/babylonjs/src/Culling/babylon.boundingSphere.ts
2228
module BABYLON { export class BoundingSphere { public center: Vector3; public radius: number; public centerWorld: Vector3; public radiusWorld: number; private _tempRadiusVector = Vector3.Zero(); constructor(public minimum: Vector3, public maximum: Vector3) { ...
mit
carlosedusousa/curso-java-fonts
trabalho4/src/oo/edu/empregado/TralhadorHora.java
1823
// (c)2014|carlosedusousa. package oo.edu.empregado; // TralhadorHora: empregado que é pago por hora e que recebe um adicional // por hora extra trabalhada. O retorno do método ganho desta classe é o // resultado da operação sobre os valores atribuídos aos atributos // desta classe da seguinte forma: salarioHora * h...
mit