repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
radditude/legislately
test/models/gapi_test.rb
118
require 'test_helper' class GapiTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
mit
Spin42/comptaline
lib/comptaline/accounting_entry/clearance.rb
886
module Comptaline module AccountingEntry class Clearance < GeneralOperation def to_a [ action, operation_type, @reference, @amount, ...
mit
threeStone313/auto_web
Ecommerce/src/test/java/KWS/prepare/testdata.java
10731
package KWS.prepare; import java.io.FileInputStream; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import org.openqa.selenium.By; ...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2020-05-01/generated/azure_mgmt_network/operations.rb
8253
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2020_05_01 # # Operations # class Operations include MsRestAzure # # Creates and initializes a new instan...
mit
VALIDproject/DyNetFlowVis
src/datatypes/entityContainer.ts
1909
import Entity from './entity'; import {type} from 'os'; /** * This class is used to store a number of entity objects within a container. This arra yor list contains noraml * entity objects and offers some operations on it, e.g. finiding a specific one by name. For example "Agramarkt Austria". */ export default clas...
mit
fallenswordhelper/fallenswordhelper
src/modules/notepad/monstorLog/monstorLog.js
4023
import buildHtml from './buildHtml'; import calf from '../../support/calf'; import doSortParams from '../../common/doSortParams'; import getArrayByClassName from '../../common/getArrayByClassName'; import getElementById from '../../common/getElementById'; import hasClass from '../../common/hasClass'; import jQueryPrese...
mit
holyshared/peridot-temporary-plugin
RoboFile.php
976
<?php use \Robo\Tasks; use \coverallskit\robo\loadTasks as CoverallsKitTasks; use \holyshared\peridot\robo\loadTasks as PeridotTasks; /** * Class RoboFile */ class RoboFile extends Tasks { use PeridotTasks; use CoverallsKitTasks; public function specAll() { $result = $th...
mit
flyingluscas/Laravel-BugNotifier
tests/MailDriverTest.php
2031
<?php namespace FlyingLuscas\BugNotifier; use Mockery; use MailThief\Testing\InteractsWithMail; use FlyingLuscas\BugNotifier\Drivers\MailDriver; class MailDriverTest extends TestCase { use InteractsWithMail; /** * @test */ public function it_can_send_email_to_multiple_addresses() { ...
mit
HungryAnt/AntWpfDemos
AntWpfDemos/Demo07/Properties/AssemblyInfo.cs
2195
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // 有关程序集的常规信息通过以下 // 特性集控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("Demo07")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration(""...
mit
Rajagunasekaran/sample
application/models/EILIB/Mdl_eilib_currency_to_word.php
5227
<?php //******************************************CURRENCTY TO WORD********************************************// //DONE BY:SARADAMBAL //VER 5.5-SD:03/06/2015 ED:03/06/2015,CHANGED FILE NAME //VER 0.01-SD:12/05/2015 ED:12/02/2015,COMPLETED CURRENCY TO WORD //*************************************************************...
mit
linde002/gstandaard-bundle
Model/GsDailyDefinedDoseQuery.php
210
<?php namespace PharmaIntelligence\GstandaardBundle\Model; use PharmaIntelligence\GstandaardBundle\Model\om\BaseGsDailyDefinedDoseQuery; class GsDailyDefinedDoseQuery extends BaseGsDailyDefinedDoseQuery { }
mit
jeremywrnr/life-of-the-party
SensorKinect-unstable/Source/XnDeviceSensorV2/XnJpegToRGBImageProcessor.cpp
4650
/**************************************************************************** * * * PrimeSense Sensor 5.x Alpha * * Copyright (C) 2011 PrimeSense Ltd. * * ...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/models/permissions.rb
423
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Storage::Mgmt::V2018_07_01 module Models # # Defines values for Permissions # module Permissions R = "r" D = "d"...
mit
durandj/packer
tests/small/cli/test_convert.py
1217
#!/usr/bin/env python """ Tests for the convert command """ import json import tempfile import typing import unittest.mock import yaml import packer.cli from .base import CliTestCase class TestConvert(CliTestCase): """ Tests for the convert command """ def test_malformed_data(self): """ ...
mit
jjchiw/gelf4net
examples/SimpleConsoleApplication/Program.cs
1414
using log4net; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SimpleConsoleApplication { internal class Program { protected static readonly ILog log = LogManager.GetLogger(t...
mit
dracoapi/nodedracoapi
bin/examples/createUser.js
1994
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs"); const DracoNode = require("../index"); function generateDeviceId() { return '00000000-0000-4000-8000-000000000000'.replace(/0/g, () => (0 | Math.random() * 16).toString(16)).toUpperCase(); } function generateNickn...
mit
DeckerCHAN/MaintenanceManagementSystem
Persistence/DataEntityBuilder.cs
827
using System; using System.Collections.Generic; using System.Configuration; using System.Data.Entity; using System.Linq; using System.Text; namespace MMS.Persistence { public static class DataEntityBuilder { public static MMSEntities BuildMmsEntities(String connectString) { return ...
mit
chengFeiBlog/angular2Demo
src/app/app.component.ts
1040
/* * Angular 2 decorators and services */ import { Component, ViewEncapsulation } from '@angular/core'; import { AppState } from './app.service'; /* * App Component * Top Level Component */ @Component({ selector: 'app', encapsulation: ViewEncapsulation.None, styleUrls: [ './app.style.css' ], templa...
mit
chughgaurav/MostViewedPogFinder
aggregate.lua
186
function count(s) function mapper(rec) return 1 end local function reducer(v1, v2) return v1 + v2 end return s : map(mapper) : reduce(reducer) end
mit
hyrise/hyrise
src/lib/storage/base_segment_encoder.hpp
5353
#pragma once #include <memory> #include <type_traits> #include <boost/hana/type.hpp> #include "all_type_variant.hpp" #include "resolve_type.hpp" #include "storage/abstract_encoded_segment.hpp" #include "storage/abstract_segment.hpp" #include "storage/create_iterable_from_segment.hpp" #include "storage/encoding_type....
mit
iand11/boot-on-the-ground
db/migrate/20170717191843_create_companies.rb
404
class CreateCompanies < ActiveRecord::Migration[5.1] def change create_table :companies do |t| t.string :name, null: false t.string :description t.string :location t.string :image t.attachment :logo t.string :url t.timestamps end end def up add_attachment :c...
mit
awalker/relation
tests/SelectTest.php
6576
<?php namespace Relation; class SelectTest extends \PHPUnit_Framework_TestCase { function testBasicConstruction() { $select = new Select(null, null, null); $this->assertNotNull($select); return $select; } /** * @depends testBasicConstruction */ function testQ($select) { $this->assertEqu...
mit
DonHilborn/DataGenerator
faker/providers/lv_LV/person.py
4365
# -*- coding: utf-8 -*- from __future__ import unicode_literals from ..person import Provider as PersonProvider class Provider(PersonProvider): formats = ( '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{last_name}}, {{first_name}}' ) first_names = ( 'Ā...
mit
synctv/synctv-ruby-client
lib/synctv/client/resources/ingest/manifests/smooth.rb
219
class Synctv::Client::Resources::Encodes::Smooth < Synctv::Client::Resource include Synctv::Client::Scopes self.element_name = "smooth_manifest" self.prefix = "/api/v2/ingest_videos/:ingest_video_id/" end
mit
phillipmadsen/grace.repo
app/Repositories/Menu/AbstractMenuDecorator.php
971
<?php namespace App\Repositories\Menu; /** * Class AbstractMenuDecorator. * * @author Phillip Madsen <contact@affordableprogrammer.com> */ abstract class AbstractMenuDecorator implements MenuInterface { /** * @var MenuInterface */ protected $menu; /** * @param MenuInterface $menu ...
mit
CapCaval/ccProjects
01_src/org/capcaval/c3/sample/tutorial04/numberproducer/NumberProducerEvent.java
1287
/* Copyright (C) 2012 by CapCaval.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
mit
ai-ku/langvis
src/ai/ku/constraint/AIConstraintRules.java
405
package ai.ku.constraint; public class AIConstraintRules { public boolean isXDynamic; public boolean isYDynamic; public boolean ignoreX; public boolean ignoreY; public boolean isWidthDynamic; public boolean isDepthDynamic; public AIConstraintRules() { isXDynamic = false;; isYDynamic = false;; ignoreX =...
mit
shipitjs/ssh-pool
src/commands/tar.js
898
import { joinCommandArgs, requireArgs } from './util' function formatExcludes(excludes) { return excludes.reduce( (args, current) => [...args, '--exclude', `"${current}"`], [], ) } export function formatTarCommand({ file, archive, excludes, mode }) { let args = ['tar'] switch (mode) { case 'compre...
mit
yanzhihong23/landlord
app/scripts/controllers/recharge.controller.js
6246
'use strict'; angular.module('landlordApp') .controller('RechargeCtrl', function($scope, $rootScope, $state, UserApi, PayApi, userConfig, md5, utils, toaster, $ionicLoading, $ionicActionSheet, $ionicModal) { var accountInfo, sessionId, mId, payMode = 1, // bank payCode = 2, // recharge extRefNo,...
mit
chicoxyzzy/react
packages/react-reconciler/src/__tests__/ReactMemo-test.js
16140
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment node */ /* eslint-disable no-func-assign */ 'use strict'; let PropTypes; let React; l...
mit
anara123/school-management-kata
spec/user-registrar.spec.js
1510
'use strict'; var chai = require('chai'); var assert = chai.assert; chai.use(require('chai-shallow-deep-equal')); var UserRepository = require('../src/auth/user-repository'); var UserRegistrarFactory = require('../src/users/user-registrar'); describe.skip('register user test', function () { describe('#generate a...
mit
pmarques/node-turnrestapi
lib/keys.js
556
"use strict"; var SEP = ':'; module.exports.SEP = SEP; var crypto = require('crypto'); module.exports.genLongTermKey = function genLongTermKey( username, realm, password ) { var md5 = crypto.createHash( 'md5' ); var text = username + SEP + realm + SEP + password; md5.update( text ); var hash = md5.digest( 'hex...
mit
way2muchnoise/fontbox
src/main/java/net/afterlifelochie/fontbox/api/font/IGLFontMetrics.java
438
package net.afterlifelochie.fontbox.api.font; import java.util.Map; public interface IGLFontMetrics { /** * The individual dimensions and u-v locations of each character in the set */ Map<Integer, IGLGlyphMetric> getGlyphs(); /** * The universal width of the font image. */ float g...
mit
drivefast/node-cipherwallet
cipherwallet/cipherwallet.js
3137
var all_cw_codes = {}; function Cipherwallet(options) { // the id of the (typically) div element that will display the QR code and the "What's this" link underneath this.qrContainer = document.getElementById(options.qrContainerID); if (!this.qrContainer) return; this.tag = options.qrContainerID; // detailsURL is...
mit
sasedev/acf-expert
src/Acf/ResBundle/Resources/public/js/bootstrap/datetimepicker/locales/2.3.1.el.js
908
/** * Greek translation for bootstrap-datetimepicker */ ;(function($){ $.fn.datetimepicker.dates['el'] = { days: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο", "Κυριακή"], daysShort: ["Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ", "Κυρ"], daysMin: ["Κυ", "Δε", "Τρ", "Τε", "Πε", "Π...
mit
dechoD/Telerik-Homeworks
Module II Homeworks/PreCourse exercises/Excel Exercises/Excel modificator/Properties/AssemblyInfo.cs
1410
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("Ex...
mit
trnglina/Papillon
PapillonEditor/Utils/PixelSnapHelpers.cs
3881
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
mit
jakubkulhan/pssh
scripts/flags.php
13062
<?php final class flags implements ArrayAccess, IteratorAggregate { /** @var bool */ private $parsed = FALSE; /** @var array */ private $rest; /** @var string */ private $module = NULL; /** @var array */ private $modules = array(); /** @return void */ private function __const...
mit
supperbowen/bowen-crm-app
src/logic/rss.data.svc.js
908
import BaseLogic from '../common/logic'; class rssDataLogic extends BaseLogic { constructor() { super({ uri: 'api/rss', listUri: 'api/rss/list', enablePaging: true, enableSearch: false, pageSize: 20 }); } async loadPageHtml(link){ link = encodeURIComponent(link); l...
mit
ranjib/lxc-extra
lib/lxc/extra/proxy_client_side.rb
3833
require 'lxc/extra/selector' module LXC module Extra # # Proxy server that listens for connections on the client side and sends # the data to the corresponding ProxyServerSide through an Channel. # # == Usage # # # Forward 127.0.0.1:80 in the container to google.com from the host # ...
mit
BrunoDeNadaiSarnaglia/Chess
src/controller/chessController.java
10703
package controller; import exceptions.InvalidMovimentException; import exceptions.InvalidPlayException; import exceptions.OutOfBoardException; import gamePlace.Board; import gamePlace.Position; import gamePlay.Game; import gamePlay.Player; import gameTracker.GameTracker; import pieces.Piece; import view.ChessInterface...
mit
MiUishadow/magnum
src/Magnum/DebugTools/Profiler.cpp
4221
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016 Vladimír Vondruš <mosra@centrum.cz> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
mit
mogey/CodeSamples
Java/AP Computer Science A/Polygon_Comparable/Rhombus.java
898
/** * (1) Have the Scalene class extend Triangles. * (2) Write 2 constructors: (a) the default that calls the super classes default * constructor and (b) One that takes in 2 doubles representing the base and * the height. It should then call the super classes constructor with these * 2 argument...
mit
stierma1/esi-tester
export.js
988
module.exports = { preprocessor: require("./pre-processor"), DIV_REPORTER:require("./parsers/process-div-reporter").parse, HTML_AST: require("./parsers/process-html-ast").parse, GENERIC: require("./parsers/process-generic-actions").parse, VALIDATOR: require("./parsers/process-validator").parse, TOLERANT_GE...
mit
racaljk/pyann
network/bpnn.py
4545
""" The MIT License (MIT) Copyright (c) 2015 Abstract Operator 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, mer...
mit
vivienchevallier/Article-AzureWebJobs.JobActivatorUnity
AzureWebJobs.JobActivatorUnity/Functions.cs
851
using System; using System.IO; using AzureWebJobs.JobActivatorUnity.Contracts; using Microsoft.Azure.WebJobs; namespace AzureWebJobs.JobActivatorUnity { public class Functions { private readonly INumberService numberService; public Functions(INumberService numberService) {...
mit
ZihadD/matchme
db/pending/20170601202522_create_referrer.rb
387
class CreateReferrer < ActiveRecord::Migration[5.0] def change create_table :referrers do |t| t.string :email, index: true t.string :first_name t.string :last_name t.string :phone t.timestamps end add_reference :offer_soft_skill_values, :referrer, index: true add_refere...
mit
nicepear/machine-learning
tree.py
2782
from math import log def calcShannonEnt(dataSet): numEntries=len(dataSet) labelCounts={} for featVec in dataSet: currentLabel=featVec[-1] ##print(currentLabel) if currentLabel not in labelCounts.keys(): labelCounts[currentLabel]=0 labelCounts[currentLabel]+=1 shannonEnt=0.0 #for value in labelCounts.v...
mit
vanjadardic/KiTTY2
src/kitty2/Kernel32.java
779
package kitty2; import com.sun.jna.Library; import com.sun.jna.Native; import com.sun.jna.Pointer; import com.sun.jna.platform.win32.WinBase; import com.sun.jna.platform.win32.WinDef; import com.sun.jna.win32.W32APIOptions; public interface Kernel32 extends Library { public static final Kernel32 INSTANCE = (Kerne...
mit
jerolba/funsteroid
funsteroid-freemarker/src/main/java/com/otogami/freemarker/macro/DoLayoutMacro.java
842
package com.otogami.freemarker.macro; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.Map; import freemarker.core.Environment; import freemarker.ext.beans.StringModel; import freemarker.template.TemplateDirectiveBody; import freemarker.template.TemplateDirectiveModel; import freemar...
mit
ycabon/presentations
2018-user-conference/arcgis-js-api-road-ahead/demos/gamepad/api-snapshot/esri/widgets/Legend.js
20289
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built require({cache:{"esri/widgets/Legend/styles/Card":function(){define("require exports ../../../core/tsSupport/declareExtendsHelper ../../../core/tsSupport/decorateHe...
mit
thp44/delphin_6_automation
sphinx/conf.py
5539
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Delphin Automation documentation build configuration file, created by # sphinx-quickstart on Mon Feb 26 10:42:44 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present i...
mit
JohnnyCrazy/SpotifyAPI-NET
SpotifyAPI.Web/Models/Response/SavedShow.cs
171
using System; namespace SpotifyAPI.Web { public class SavedShow { public DateTime AddedAt { get; set; } public FullShow Show { get; set; } = default!; } }
mit
jaroslavtyc/drd-plus-properties
DrdPlus/Properties/Derived/FatigueBoundary.php
998
<?php declare(strict_types = 1); declare(strict_types=1); namespace DrdPlus\Properties\Derived; use DrdPlus\Codes\Properties\PropertyCode; use DrdPlus\Properties\Derived\Partials\AbstractDerivedProperty; use DrdPlus\Tables\Measurements\Fatigue\FatigueBonus; use DrdPlus\Tables\Tables; /** * @method FatigueBoundary ...
mit
RadoChervenkov/Football-League-Management-System
Source/FootballLeagueManagementSystem/Data/FLMS.Data.Models/Match.cs
990
namespace FLMS.Data.Models { using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using FLMS.Data.Common.Models; public class Match : AuditInfo, IDeletableEntity { [Key] public int Id { get; set; } public DateT...
mit
8BitRick/tweet_it
app/controllers/application_controller.rb
2996
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception include TwitterClient require 'twitter' require 'pp' def welcome if(current_user) redirect_to '/twee...
mit
MelissaChan/SFJSRMJD
src/HDU/P5327.java
873
package HDU; import java.util.Scanner; /** * @author MelissaChan * * 2016-1-28 下午12:37:10 */ public class P5327 { /** * 数组前缀和 */ public static int isButifulNumber(int num){ int[] temp = new int[10]; int count = 0; while(num > 0){ temp[count] = num % 10; num /= 10; count++; } for(int i = 0...
mit
gjungb/angular
packages/platform-browser/test/dom/events/event_manager_spec.ts
14157
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {NgZone} from '@angular/core/src/zone/ng_zone'; import {beforeEach, describe, expect, it} from '@angular/core...
mit
mrorii/gastroglot
sort_recipes.py
416
#!/usr/bin/env python import argparse import json import utils def main(): parser = argparse.ArgumentParser(description='Sort recipes') parser.add_argument('recipes', help='recipes.json') args = parser.parse_args() recipes = utils.load_data(args.recipes) for recipe in sorted(recipes, key=lambda ...
mit
product-definition-center/pdc-ruby-gem
spec/pdc/v1/multi_destination_spec.rb
1081
require 'spec_helper' # WebMock.disable! # enable to re-record describe PDC::V1::MultiDestination do before do VCR.insert_cassette fixture_name end after do VCR.eject_cassette end let(:multi_destinations) { PDC::V1::MultiDestination } describe 'simple test case' do it 'destination returns ...
mit
alexandernesbitt/BCFier
Bcfier.Revit/Data/RevitUtils.cs
3410
using System; using Autodesk.Revit.DB; using Bcfier.Bcf.Bcf2; using Point = Bcfier.Bcf.Bcf2.Point; namespace Bcfier.Revit.Data { public static class RevitUtils { /// <summary> //MOVES THE CAMERA ACCORDING TO THE PROJECT BASE LOCATION //function that changes the coordinates accordingly to the project ...
mit
argos-ci/argos
apps/app/src/pages/Repository/ToggleButton.js
671
import React from 'react' import { Button } from '@smooth-ui/core-sc' import { useRepository, useToggleRepository } from './RepositoryContext' export function ToggleButton() { const repository = useRepository() const { toggleRepository, loading } = useToggleRepository() const { enabled } = repository return ( ...
mit
geiru/nodepod-app
app/express/express.js
1684
var modExpress = require('express'), modHttp = require('http'), modPath = require('path'), app_core = require(global.buildAppPath('app/core/core.js')), route_index = require('./routes/index.js'), route_client = require('./routes/client.js'), route_master = require('./routes/master.js'); var app...
mit
doodersrage/CheapLocalDeals.com
mobile/includes/pages/custAdmin/passSub.php
1542
<?PHP // check if customer is logged in if (!empty($_POST['password'])) { // check password length if (strlen($_POST['password']) < MINIMUM_PASSWORD_LENGTH) { $error_message = '<center><font color="red"><strong>Password must be atleast '.MINIMUM_PASSWORD_LENGTH.' characters in length.</strong></font></center>'; }...
mit
davidchase/fn.js
src/curry.js
606
var fnToArray = require('./toArray'); // fn.curry module.exports = function (handler, arity) { 'use strict'; if (handler.curried) { return handler; } arity = arity || handler.length; var curry = function curry() { var args = fnToArray(arguments); if (args.length >= arity) ...
mit
pygeo/pycmbs
docs/source/figures/fig_map_difference.py
695
# -*- coding: utf-8 -*- """ This file is part of pyCMBS. (c) 2012- Alexander Loew For COPYING and LICENSE details, please refer to the LICENSE files """ from pycmbs.data import Data from pycmbs.plots import map_difference import matplotlib.pyplot as plt file_name = '../../../pycmbs/examples/example_data/air.mon.mean.n...
mit
perfectsearch/sandman
code/buildscripts/codescan/check_pep8.py
6192
#!/usr/bin/env python # # $Id: check_pep8.py 9319 2011-06-10 02:59:43Z nathan_george $ # # Proprietary and confidential. # Copyright $Date:: 2011#$ Perfect Search Corporation. # All rights reserved. # import sys import os import subprocess buildscriptDir = os.path.dirname(__file__) buildscriptDir = os.path.abspath(os....
mit
rande/sfSolrPlugin
test/unit/helper/sfLuceneHelperTest.php
2574
<?php /* * This file is part of the sfLucenePlugin package * (c) 2007 - 2008 Carl Vondrick <carl@carlsoft.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * @package sfLucenePlugin * @subpackage Test * @author Carl Vo...
mit
jquintus/spikes
ConsoleApps/FunWithSpikes/FunWithNinject.Web/App_Start/RouteConfig.cs
588
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace FunWithNinject.Web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}....
mit
emstlk/nacl4s
src/main/scala/com/emstlk/nacl4s/crypto/scalarmult/Curve25519.scala
10448
package com.emstlk.nacl4s.crypto.scalarmult object Curve25519 { val bytes = 32 val scalarBytes = 32 val two54m152 = (1L << 54) - 152 val two54m8 = (1L << 54) - 8 private val basepoint = { val bp = new Array[Byte](32) bp(0) = 9 bp } @inline def loadLong(in: Array[Byte], offset: Int): Long ...
mit
jiuyuedeyu/201509gitstudy
免费课/js第二周全日制/index.js
34
console.log("welcome to beijing");
mit
AamuLumi/sanic.js
bench/array/forEach.js
1342
'use strict'; const sanicForEach = require('../../index').Library.Array.forEach; module.exports = function (computeSuite, fileWriter, suiteOptions) { const little = (new Array(10)).fill(0).map((e, i) => i % 2); const medium = (new Array(1000)).fill(0).map((e, i) => i % 2); const big = (new Array(1000000))...
mit
space-wizards/space-station-14
Content.Server/AI/Utility/Considerations/Clothing/ClothingInSlotCon.cs
753
using Content.Server.AI.WorldState; using Content.Server.AI.WorldState.States.Clothing; using Content.Shared.Inventory; namespace Content.Server.AI.Utility.Considerations.Clothing { public class ClothingInSlotCon : Consideration { public ClothingInSlotCon Slot(string slot, Blackboard context) ...
mit
samjohnduke/freshly
lib/freshly/ticket.rb
153
module Freshly class Ticket attr_accessor :id def initialize id @id = id end def path "tickets/#{id}" end end end
mit
tomyf/ccg-sandbox
src/card/error/PlayingCardError.js
148
const AbstractError = require('../../error/AbstractError.js'); class PlayingCardError extends AbstractError { } module.exports = PlayingCardError;
mit
elixirhub/events-portal-scraping-scripts
DeleteDataTest.py
121
__author__ = 'chuqiao' import EventsPortal EventsPortal.deleteDataInSolr("http://139.162.217.53:8983/solr/eventsportal")
mit
keverage/customform
gulpfile.js
1064
const packagejson = require('./package.json'); const plugins = require('gulp-load-plugins')({ pattern: ['*'], scope: ['devDependencies'] }); // Compilation SASS function sass(pumpCallback) { return plugins.pump([ plugins.gulp.src('./src/**/*.scss'), plugins.sass(packagejson.sass), p...
mit
proximitybbdomu/mb-boilerplate
app/tasks/build/build-css.js
1190
'use strict'; module.exports = function (gulp, $, gutil, opt) { return function () { // Remove .min and .map before to re-generate .min and .map opt.del(opt.build.cssEach); if (opt.argv.l !== undefined) { // If -l is specified return gulp.src(opt.build.cssLgSpecified) // .pipe($.s...
mit
TOLegalHackers/StonePaper
app/js/index.js
20296
/*globals $, SimpleStorage, document*/ var addToLog = function(id, txt) { $(id + " .logs").append("<br>" + txt); }; var serverAddress = "http://stonepapergaestorage.appspot.com"; //var serverAddress = "http://localhost:41080"; var signaturePad; var signaturePadS; var signaturePadB; var signaturePadL; function ent...
mit
nbonamy/doctrine-0.10.4
lib/Doctrine/Query/Groupby.php
1870
<?php /* * $Id: Groupby.php 3884 2008-02-22 18:26:35Z jwage $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. ...
mit
Eden-06/CROM
org.rosi.crom.toformal/src/org/rosi/crom/toformal/popup/actions/GenerateScrollCodeAction.java
272
package org.rosi.crom.toformal.popup.actions; import org.rosi.crom.toformal.generator.ScrollCodeGenerator; public class GenerateScrollCodeAction extends AbstractGenerateAction { public GenerateScrollCodeAction(){ super(); generator=new ScrollCodeGenerator(); } }
mit
fpt-software/SENTestKit-Server
ats/src/ATS/ENTITY/Model.java
4216
package ATS.ENTITY; import java.io.Serializable; import javax.persistence.*; import com.fasterxml.jackson.annotation.JsonIgnore; import COMMON.ENUM.Platform; import java.util.List; /** * The persistent class for the MODEL database table. * */ @Entity public class Model implements Serializable { public enum Mo...
mit
michaellihs/golab
cmd/branches.go
8701
// Copyright © 2017 Michael Lihs // // 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, di...
mit
Azure/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java
972
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.containerservice.generated; import com.azure.core.util.Context; /** Samples for Snapshots GetByResourceGroup. */ public final c...
mit
pdrobek/polcoin-new
src/rpcmining.cpp
15461
// Copyright (c) 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. #include "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" using name...
mit
TakuyaNoguchi/aizu_online_judge
volume_0/answers/0015_national_budget.rb
141
n = gets.to_i n.times do x = gets.to_i y = gets.to_i if (x + y).to_s.length > 80 puts 'overflow' else puts x + y end end
mit
rahatarmanahmed/UTD-CS-SE-Assignments
CS 4361 - Computer Graphics/assignment5/curves.java
9525
// curves.java import java.io.*; import java.awt.*; import java.awt.event.*; public class curves extends Frame { public static void main(String[] args) { if (args.length == 0) System.out.println("Use filename as program argument."); else new curves(args[0]); } curves(String fi...
mit
TileDB-Inc/TileDB
examples/cmake_project/src/main.cc
1693
/** * @file main.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2018-2021 TileDB, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restric...
mit
BristolPound/cyclos-mobile-3-TownPound
src/component/common/Overlay.js
656
import React from 'react'; import { StyleSheet, TouchableHighlight, View } from 'react-native' import NetworkConnection from '../NetworkConnection' import Colors from '@Colors/colors' const overlayStyle = { visible: { ...StyleSheet.absoluteFillObject, backgroundColor: 'white', opacity: 0....
mit
Na0ki/mikutter_slack
model/user.rb
1153
# -*- frozen_string_literal: true -*- module Plugin::Slack # Userクラス # @see https://toshia.github.io/writing-mikutter-plugin/model/2016/09/30/model-usermixin.html # @see https://toshia.github.io/writing-mikutter-plugin/model/2016/09/30/model-field.html # @see https://api.slack.com/methods/users.info class Us...
mit
floriandejonckheere/thalariond
config/spring.rb
385
# frozen_string_literal: true Spring.watch( '.ruby-version', '.rbenv-vars', 'tmp/restart.txt', 'tmp/caching-dev.txt' ) Spring.after_fork do if ENV['DEBUGGER_STORED_RUBYLIB'] ENV['DEBUGGER_STORED_RUBYLIB'].split(File::PATH_SEPARATOR).each do |path| next unless path =~ /ruby-debug-ide/ load pa...
mit
jakubka/Huerate
Huerate.Services/Settings/SettingsService.cs
2509
/* Huerate - Mobile System for Customer Feedback Collection Master Thesis at BUT FIT (http://www.fit.vutbr.cz), 2013 Available at http://huerate.cz Author: Bc. Jakub Kadlubiec, xkadlu00@stud.fit.vutbr.cz or jakub.kadlubiec@gmail.com */ using System; using System.Collections.Generic; using System.Globalizat...
mit
Azure/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RankingsResponseTablesItem.java
2166
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.cdn.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jacks...
mit
nodeca/nodeca.forum
server/admin/nntp/update/forum/forum.js
707
// Show edit form for a group // 'use strict'; const sanitize_section = require('nodeca.forum/lib/sanitizers/section'); module.exports = function (N, apiPath) { N.validate(apiPath, { _id: { format: 'mongo', required: true } }); N.wire.on(apiPath, async function group_edit(env) { let group = await N...
mit
abcdef506819/zyCMS
client/main.js
918
//meteor entry file //create an mantra app and initialize it import { createApp } from 'mantra-core'; import initContext from './configs/context'; // modules import activityModule from './modules/activity'; import coreModule from './modules/core'; import menusModule from './modules/menus'; import userModule from './m...
mit
koriym/Koriym.Now
src/Exception/RuntimeException.php
221
<?php /** * This file is part of the Koriym.Now * * @license http://opensource.org/licenses/MIT MIT */ namespace Koriym\Now\Exception; class RuntimeException extends \LogicException implements ExceptionInterface { }
mit
pedrogpimenta/dropmarks
app/config/routes.js
258
const React = require('react'); const Main = require('../components/Main'); const Home = require('../components/Home'); const Router = require('react-router'); const Route = Router.Route; module.exports = ( <Route path='/' component={Main}> </Route> );
mit
Icy-Dragon/QuantumSmash
Assets/Scripts/CoinDrop.cs
511
using UnityEngine; using System.Collections; public class CoinDrop : MonoBehaviour { public int value; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Ship") ...
mit
grumpycoin/grumpycoin-v.1.2
src/qt/locale/bitcoin_zh_CN.ts
136453
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="zh_CN"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+26"/> <source>Dialog</source> <translation>对话</translation> </...
mit
TeamSecret/SecretCoin
src/qt/locale/bitcoin_hr.ts
114508
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SecretCoin</source> <translation type="unfinished"/> </message> <message> <location lin...
mit