repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
FunTimeCoding/scala-skeleton
src/LanguageExample/Boilerplate.scala
9857
import scala.collection.mutable.ArrayBuffer import scala.io.StdIn.readLine import scala.math.log10 import java.io.PrintWriter import scala.io.Source object Boilerplate { def main(args: Array[String]) { // Loops var i = 0 while (i <= 10) { println(i) i += 1 } for (i <- 1 to 10) { ...
mit
go-id/learning
ch1-basics/read-line/main.go
213
//package declarate package main import ( "fmt" "bufio" "os" ) func main(){ read := bufio.NewReader(os.Stdin) fmt.Print("Name : ") name, _ := read.ReadString('\n') fmt.Printf("Hello %s",name) }
mit
M1nistry/Cartogram
src/Cartogram/App.xaml.cs
295
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Windows; namespace Cartogram { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
mit
1751634419/SharpJVM
SharpJVM/SharpJVM/Runtime/InstructionType.cs
17492
using System; using SharpJVM.SharpJVM.Runtime.Instructions.Base; using SharpJVM.SharpJVM.Runtime.Instructions.Loads; using SharpJVM.SharpJVM.Runtime.Instructions.Math; using SharpJVM.SharpJVM.Runtime.Instructions.Store; using SharpJVM.SharpJVM.Runtime.Instructions.Comparisons; using SharpJVM.SharpJVM.Runtime.Instructi...
mit
danieldeveloper001/Learning
Ruby/02_DesignPatterns/Behavioral/ChainOfResponsibility/Program.rb
366
require './ChainLink1' require './ChainLink2' require './ChainLink3' def main c1 = ChainLink1.new c2 = ChainLink2.new c3 = ChainLink3.new c1.next_link = c2 c2.next_link = c3 result = c1.process_request 'Request1' puts result result = c1.process_request 'Request2' puts result result = c1.process...
mit
plribeiro3000/fog-google
tests/requests/dns/managed_zone_tests.rb
2289
Shindo.tests("Fog::DNS[:google] | managed_zone requests", ["google"]) do @google = Fog::DNS[:google] @managed_zone_schema = { "kind" => String, "id" => String, "creationTime" => String, "name" => String, "dnsName" => String, "description" => String, "nameServers" => [String] } @lis...
mit
chinxianjun/autorepair
test/unit/company_workflow_test.rb
129
require 'test_helper' class CompanyWorkflowTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
mit
emrizaal/bgg
application/views/admin/detail_facilities.php
646
<?php $this->load->view("admin/header"); ?> <!-- /. NAV SIDE --> <div id="page-wrapper" > <div id="page-inner"> <div class="row"> <div class="col-md-12"> <h2 align="center"><?=$data['name']?></h2> <hr> </div> </div> <di...
mit
bamlab/generator-rn-toolbox
generators/circleci/index.js
6215
const Base = require('yeoman-generator'); require('colors'); const glob = require('glob'); const analytics = require('../../analytics'); // Command creators const getPassphraseAliasForEnvironment = environment => `${environment.envName.toUpperCase()}_SECRETS_PASSPHRASE`; const getUnpackCommandForEnvironment = enviro...
mit
p2pu/learning-circles
studygroups/migrations/0001_initial.py
2548
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_cre...
mit
izonder/labyrinth
src/core/storage.js
1246
'use strict'; var MongoClient = require('mongodb').MongoClient; class Storage { /** * MongoDB storage driver * @param config * @param logger */ constructor(config, logger) { this.config = config || {}; this.logger = logger; this.dsn = this._getDsn(); this.d...
mit
bmcminn/electron-har
src/index.js
2903
var tmp = require('tmp'); var assign = require('object-assign'); var fs = require('fs'); var crossExecFile = require('cross-exec-file'); /** * @param {string} url url (e.g. http://google.com) * @param {object} o CLI options (NOTE: only properties not present in (or different from) CLI are described below) * @param ...
mit
bluepangolin55/IMP
src/functionality/Shape.java
984
package functionality; import java.awt.*; import java.awt.image.BufferedImage; import java.util.Set; /** * Created by dimitri on 27/01/16. * A shape efficiently stores the information of an image, that is not rectangular. * It can be used for example to represent image layers that only cover parts of the * full i...
mit
lastzero/symlex-core
src/Tests/Kernel/AppTest.php
1829
<?php namespace Symlex\Tests\Kernel; use TestTools\TestCase\UnitTestCase; use Symlex\Tests\Kernel\App\App; /** * @author Michael Mayer <michael@liquidbytes.net> * @license MIT */ class AppTest extends UnitTestCase { /** * @var App */ protected $app; public function setUp(): void { ...
mit
CalPolyIEEE/parts.calpolyieee.org
js/Part.js
2779
"use strict"; parts.Part = function (skel) { var self = this; this.skel = skel; if (!skel.quantity) { this.skel.quantity = 1; } this.$liQuantity = $("<input type=\"text\">"); this.$liRemove = $("<i class=\"fa fa-times fa-lg\">"); this.$liQuantity.keyup(function () { self.s...
mit
geea-develop/geea-wedding-planner
config/database.php
4501
<?php return [ /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, ...
mit
Twiknight/tiny
test/request/acceptCharsets.js
1617
'use strict' const expect = require('chai').expect; const Request = require('../../lib/request'); const httpMocks = require('node-mocks-http'); describe('request.acceptCharsets', function () { it('should return single accept charset', function(done){ let requestOpts = { method: 'PUT', ur...
mit
Credit-Jeeves/Heartland
src/Payum2/Heartland/Soap/Base/ActivateMachine.php
1105
<?php namespace Payum2\Heartland\Soap\Base; /** * This class is generated from the following WSDL: * https://heartlandpaymentservices.net/BillingDataManagement/v3/BillingDataManagementService.svc?xsd=xsd0 */ class ActivateMachine { /** * ActivateMachineRequest * * The property has the following ...
mit
wjwu/Settlement-React
SettlementWeb/webpack.config.prd.js
2599
var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var config = { 'API_HOST': 'http://120.24.244.98:9001/api/', 'NODE_ENV': process.env.NODE_ENV } module.exports = { externals: { 'react': 'React', 'react-dom'...
mit
wicak29/takon-seek
assets/tinymce/js/tinymce/plugins/imagetools/src/main/js/CropRect.js
7087
/** * CropRect.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * ... */ define("tinymce/imagetoolsplugin/CropRect", [ "global!tinymce.dom.DomQuer...
mit
ryaan-anthony/eco-breed
www/content/howto/2.php
62128
<button num='2a' class='sub-tab sub-howto'><span class='subCap'>a</span> Actions</button> <button num='2b' class='sub-tab sub-howto'><span class='subCap'>b</span> Names</button> <button num='2c' class='sub-tab sub-howto'><span class='subCap'>c</span> Lifespan</button> <button num='2d' class='sub-tab sub-howto'><span c...
mit
jocode/android-remind
12-fragment-staticos/app/src/main/java/com/example/a12_fragment_staticos/One.java
3552
package com.example.a12_fragment_staticos; import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * A simple {@link Fragment} subclass. * Activities th...
mit
t-recx/Rothko
Rothko/Interfaces/Components/IRangeable.cs
166
using System; namespace Rothko.Interfaces.Components { public interface IRangeable { int RangePoints { get; set; } int DeadZoneRangePoints { get; set; } } }
mit
ryfeus/lambda-packs
HDF4_H5_NETCDF/source2.7/pyhdf/test_SD.py
752
#!/usr/bin/env python import numpy as np import os import pyhdf.SD import tempfile from nose.tools import eq_ from pyhdf.SD import SDC def test_long_varname(): sds_name = 'a'*255 _, path = tempfile.mkstemp(suffix='.hdf', prefix='pyhdf_') try: # create a file with a long variable name sd =...
mit
JuanKRuiz/Estrategias-de-Codigo-Portable
WinPhoneAppT/Properties/AssemblyInfo.cs
1439
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // 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. [ass...
mit
voanna/Deep-Features-or-Not
experiments/finetune-temperature/generic_regression/launch_caffe.py
2787
# 'source /home/voanna/TimePrediction/src/bash/gpu_caffe_env_variables ') import os import time_to_label import glob import math import numpy as np import scipy.io np.random.seed(6) CAFFE_PATH = '/home/voanna/caffe_gpu' CAFFE_MODEL = 'VGG_ILSVRC_16_layers.caffemodel' GPU_ID = 0 DATA_ROOT = os.path.expanduser('~/Time...
mit
ramdesh/vcat
src/com/virtusa/vcat/main/GeneratorHelper.java
5139
package com.virtusa.vcat.main; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.logging.Logger; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.VelocityEngine; import org.apache.v...
mit
GleicyKellenDevelopment/Projeto_1
Horus/src/test/java/br/com/horus/dao/ClienteDAOTest.java
2427
package br.com.horus.dao; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.List; import org.junit.Ignore; import org.junit.Test; import br.com.horus.dao.ClienteDAO; import br.com.horus.dao.PessoaDAO; import br.com.horus.model.Cliente; import br.com.horus.model.Pessoa; public clas...
mit
goodwinxp/Yorozuya
library/ATF/_POINTFLOAT.hpp
260
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE struct _POINTFLOAT { float x; float y; }; END_ATF_NAMESPACE
mit
mvxxx/MV-Engine
MV-Engine/source/MV/loader/Loader.hpp
873
#pragma once #include <fstream> #include <string> #include <SFML/System/Vector2.hpp> #include "MV/config/Config.hpp" #include "MV/logger/Logger.hpp" namespace mv { class Loader final { /* ===Objects=== */ public: //title of the window std::string title; //dimensions of single cell sf::Vector2f cellDim...
mit
rprouse/ChessSharp
Alteridem.Engine/PieceType.cs
335
namespace Alteridem.Engine { /// <summary> /// The type of the piece, for example, pawn, knight, etc. /// </summary> public enum PieceType : byte { None = 0x00, WhitePawn = 0x01, BlackPawn = 0x02, Knight = 0x04, Bishop = 0x05, Rook = 0x06, Queen = 0x07, Kin...
mit
pkazmier/luahue
src/hue.lua
5642
--- Lua Hue API -- -- Copyright Pete Kazmier 2013 local M = {} local json = require 'json' local http = require 'socket.http' local ltn12 = require 'ltn12' local tablex = require 'pl.tablex' local stringx = require 'pl.stringx' --- Discovers any local Hue bridges on the network -- @return a list of IP addresses fun...
mit
thinkingmik/acl-manager-laravel
src/Queries/AclQueryUtils.php
5217
<?php /** * @package thinkingmik/acl-manager-laravel * @author Michele Andreoli <michi.andreoli[at]gmail.com> * @copyright Copyright (c) Michele Andreoli * @license http://mit-license.org/ * @link https://github.com/thinkingmik/acl-manager-laravel */ namespace ThinKingMik\AclManager\Queries; use Th...
mit
sweetlandj/Platibus
Source/Platibus.SampleWebApp/Controllers/SubmitActionAttribute.cs
1354
using System; using System.Reflection; using System.Web.Mvc; namespace Platibus.SampleWebApp.Controllers { [AttributeUsage(AttributeTargets.Method)] public class SubmitActionAttribute : ActionNameSelectorAttribute { private readonly string _parameterName; private readonly string _parameter...
mit
zbigniewcichanski/reserve
core/tests/Service/App/CategoryServiceTest.php
2525
<?php /** * Created by PhpStorm. * @author: Zbyszek Cichanski * Date: 27.12.2016 * Time: 22:29 */ namespace Tests\Owner\App; use Core\Service\App\Command\CategoryCommand; use Core\Service\App\CategoryService; class CategoryServiceTest extends \PHPUnit_Framework_TestCase { /** * @var CategoryService $s...
mit
larsonjj/generator-pistacheo
app/templates/grunt/config/util/clean.js
302
// Configuration for Clean task(s) // Deletes specified folders/files 'use strict'; var taskConfig = function(grunt) { grunt.config.set('clean', { build: ['<%%= pistacheo.directories.destination %>'], tmp: ['<%%= pistacheo.directories.temporary %>'] }); }; module.exports = taskConfig;
mit
MaksimPW/ImgD
app/models/user.rb
308
class User < ActiveRecord::Base has_many :words, dependent: :destroy # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable end
mit
bsas/rails-services
test/rails_app_v3/config/application.rb
1928
require File.expand_path('../boot', __FILE__) require 'rails/all' # If you have a Gemfile, require the gems listed there, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) if defined?(Bundler) module RailsAppV3 class Application < Rails::Application ...
mit
webaio/tracker
src/Event/Handler/EventHandler.ts
76
export interface EventHandler { handle(dataLayerElementPayload: any); }
mit
shendepu/react-ssr-starter-kit
src/routes/Auth/modules/moqui/moquiModule.js
826
import { login as loginMoqui } from 'lib/moqui/moquiLogin' import { username, password } from 'lib/moqui/config' const MOQUI_REST_API_LOGIN_IN_S = 'MOQUI_REST_API_LOGIN_IN_S' export const login = () => dispatch => { return loginMoqui(username, password).then((apiKey) => { dispatch({ type: MOQUI_REST_API_LOGIN_I...
mit
colw/cowpat
src/js/components.js
115
import React from 'react'; export const LinkExt = (props) => ( <a {...props} target="_blank" rel="noopener"/> )
mit
delete/estofadora
estofadora/core/migrations/0001_initial.py
1106
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.AutoField(auto...
mit
worldwidewat/TicksToDateTime
Web/Properties/AssemblyInfo.cs
1370
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("We...
mit
airslie/renalware-core
spec/controllers.legacy/renalware/problems_controller_spec.rb
1340
# frozen_string_literal: true require "rails-controller-testing" require "rails_helper" module Renalware::Problems describe ProblemsController, type: :controller do routes { Renalware::Engine.routes } let(:user) { @current_user } let(:patient) { create(:patient, by: user) } let(:problem) { create(:p...
mit
prat0318/dbms
mini_dbms/je-5.0.103/src/com/sleepycat/je/utilint/LongStat.java
1684
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. * */ package com.sleepycat.je.utilint; import com.sleepycat.je.utilint.StatDefinition.StatType; /** * A long JE stat. */ public class LongStat extends Stat<Long> { pr...
mit
akoken/Jirabox
src/Jirabox/Common/LiveTiles/ImageTile.xaml.cs
2485
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Media.Animation; using System.Windows.Media.Imaging; namespace Jirabox.Common.LiveTiles { public partial class ImageTile : UserControl { public string Title { get { return (string)GetValue(Title...
mit
simark/pygdbmi
pygdbmi/cli/pprint.py
2376
# The MIT License (MIT) # # Copyright (c) 2015 Simon Marchi <simon.marchi@polymtl.ca> # # 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 r...
mit
djfoxer/dp.notification
djfoxer.dp.notification/djfoxer.dp.notification.App/Design/DesignDataService.cs
216
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace djfoxer.dp.notification.App.Design { public class DesignDataService { } }
mit
Azure/azure-sdk-for-java
sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/models/IotDpsSkuDefinitionListResult.java
1965
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.deviceprovisioningservices.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; imp...
mit
Azure/azure-sdk-for-go
services/apimanagement/mgmt/2020-12-01/apimanagement/tenantsettings.go
10315
package apimanagement // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regen...
mit
cyclosproject/cyclos4-ui
src/app/shared/focused.directive.ts
1242
import { AfterViewInit, ChangeDetectorRef, Directive, ElementRef, Inject, Input, Optional } from '@angular/core'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { BaseFieldDirective } from 'app/shared/base-field.directive'; import { focus, truthyAttr } from 'app/shared/helper'; import { LayoutService } from...
mit
dicarlosystems/laravel-permission
tests/CacheTest.php
3197
<?php namespace Spatie\Permission\Test; use Illuminate\Support\Facades\DB; use Spatie\Permission\Contracts\Role; use Spatie\Permission\PermissionRegistrar; use Spatie\Permission\Contracts\Permission; class CacheTest extends TestCase { protected $registrar; public function setUp() { parent::setUp...
mit
l33tdaima/l33tdaima
p021e/merge_two_lists.js
1068
/** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ const List = require('list'); /** * @param {ListNode} l1 * @param {ListNode} l2 * @return {ListNode} */ var mergeTwoLists = function (l1, l2) { let sentinel = new List.ListNode(0); let ...
mit
ozataman/polymorphic_attacher
test/polymorphic_attacher_test.rb
166
require 'test_helper' class PolymorphicAttacherTest < ActiveSupport::TestCase # Replace this with your real tests. test "the truth" do assert true end end
mit
jSherz/lsd-members
frontend/src/app/utils/index.ts
56
export { CustomValidators } from "./custom-validators";
mit
deniszykov/msgpack-unity3d
src/GameDevWare.Serialization.Tests/ValueContainer.cs
102
namespace GameDevWare.Serialization.Tests { public class ValueContainer<T> { public T Value; } }
mit
bfriesen/garply
src/garply/ExecutionContext.cs
729
using System; using System.Collections.Generic; using System.Diagnostics; namespace Garply { internal class ExecutionContext : ErrorContext { private readonly Stack<Value> _evaluationStack = new Stack<Value>(); private Scope _scope; public ExecutionContext(Scope scope) { ...
mit
sotownsend/flok
spec/kern/assets/vm/vm_transaction_diff_pages.js
4287
//Page Factor ////////////////////////////////////////////////////////////////////////////////////////// function PageFactory(head, next) { this.head = head; this.next = next; this.entries = []; } //Add an entry PageFactory.prototype.addEntry = function(eid, value) { this.entries.push({_id: eid, _sig: value, v...
mit
uutils/coreutils
src/uu/ln/src/ln.rs
16022
// * This file is part of the uutils coreutils package. // * // * (c) Joseph Crail <jbcrail@gmail.com> // * // * For the full copyright and license information, please view the LICENSE // * file that was distributed with this source code. // spell-checker:ignore (ToDO) srcpath targetpath EEXIST #[macro_use] ext...
mit
ConsenSys/truffle
packages/db-kit/src/cli/decodeAddress/Splash.tsx
3802
import React from "react"; import { Box, Text } from "ink"; import Spinner from "ink-spinner"; import Divider from "ink-divider"; import type TruffleConfig from "@truffle/config"; import type { Db, Resources } from "@truffle/db"; import { useDecoder } from "@truffle/db-kit/cli/hooks"; import { DecodeAddressResult as...
mit
teoreteetik/api-snippets
rest/taskrouter/taskqueues/instance/post/example-1/example-1.3.x.js
627
// Download the Node helper library from twilio.com/docs/node/install // These consts are your accountSid and authToken from https://www.twilio.com/console const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const authToken = 'your_auth_token'; const workspaceSid = 'WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const taskQ...
mit
implico/frontend-starter
gulpfile.js
9545
/** Frontend-starter @author Bartosz Sak https://github.com/implico/frontend-starter The MIT License (MIT) ******************* API frs default task, equals to frs watch frs clean cleans dist dir frs start runs build and watch frs build cleans and builds the app (with...
mit
bpe78/WpfExamples
src/WpfApplication4/WpfApplication4/TotalSumConverter.cs
661
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; using System.Globalization; namespace WpfApplication4 { public class TotalSumConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) ...
mit
krainboltgreene/authn
lib/authn/model.rb
1410
module AuthN module Model def self.included(object) object.extend ClassMethods end module ClassMethods def has_authentication(options = {}) merge_config_with options end def config=(options) @@config = options end def config @@config ||= AuthN...
mit
dadansetiadi/kedaibeauty.com
application/controllers/Produk.php
2373
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Produk extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('produk_model'); //$this->load->model('user_model'); } public function index(...
mit
ruben-ayrapetyan/coreclr
tests/src/JIT/HardwareIntrinsics/X86/Avx/TestNotZAndNotC.Int16.cs
12893
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /****************************************************************************** * This file is auto-generated from ...
mit
jlumijarvi/excelimporter
ExcelImporter/Account/TwoFactorAuthenticationSignIn.aspx.cs
2830
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using ExcelImporter.Models; namespace ExcelImporter.Account { public parti...
mit
Pulgama/supriya
supriya/ugens/NumControlBuses.py
543
import collections from supriya import CalculationRate from supriya.typing import UGenInputMap from supriya.ugens.InfoUGenBase import InfoUGenBase class NumControlBuses(InfoUGenBase): """ A number of control buses info unit generator. :: >>> supriya.ugens.NumControlBuses.ir() NumControl...
mit
enettolima/magento-training
magento2ce/app/code/Magento/Bundle/Setup/InstallSchema.php
33660
<?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Bundle\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; /** * @codeCoverageIgnore ...
mit
flagholder/php_ci_test
system/libraries/Upload.php
36917
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2017, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
mit
jimbo1299/gcmPushDemo
gen/com/example/pushtester/BuildConfig.java
164
/** Automatically generated file. DO NOT MODIFY */ package com.example.pushtester; public final class BuildConfig { public final static boolean DEBUG = true; }
mit
hivsuper/study
study-parent/jersey2demo/src/main/java/org/lxp/service/CommentService.java
980
package org.lxp.service; import java.util.Date; import javax.annotation.Resource; import org.lxp.mapper.CommentMapper; import org.lxp.model.Comment; import org.lxp.vo.CommentStateEnum; import org.springframework.stereotype.Service; @Service public class CommentService { @Resource private CommentMapper commentMa...
mit
rogeruiz/fly-notify
test/test.js
81
const test = require("tape").test test("fly-notify", function (t) { t.end() })
mit
i5okie/redress_old
config/initializers/devise.rb
12412
# Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| # The secret key used by Devise. Devise uses this key to generate # random tokens. Changing this key will render invalid all existing # confirmat...
mit
solr-express/solr-express
test/SolrExpress.Solr5.IntegrationTests/Properties/AssemblyInfo.cs
682
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("SolrExpress.Solr5.IntegrationTests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SolrExpress.Solr5.IntegrationTests")] [assembly: Assembly...
mit
stefanhoth/ropasclisp
mobile/src/main/java/com/stefanhoth/ropasclisp/CircularFrameDrawable.java
3076
package com.stefanhoth.ropasclisp; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import android.graphics.PixelFormat; import android.graphics.Rect; import android.graphics.RectF; import android.g...
mit
MarkBorcherding/trigger-tasks
lib/trigger-tasks.rb
63
module TriggerTasks end require 'trigger_tasks/trigger_tasks'
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highmaps/config/PathfinderMarker.scala
5284
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highmaps]] */ package com.highmaps.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript n...
mit
JWroe/BloomFilter
BloomFilters/BloomFilter.cs
4152
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace BloomFilters { public class BloomFilter : IHashedDataStore { private LargeBitArray[] BitArray { get; } public int NumBits => NumSlices * BitsPerSlice; public int Capacity {...
mit
WIZUT-PAI/31d
src/AppBundle/Controller/UserController.php
553
<?php namespace AppBundle\Controller; use FOS\RestBundle\Controller\FOSRestController; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; class UserController extends FOSRestController { /** * @Security("has_role('ROLE_USER')") */ public function getMeAction(){ $data = $this->get('secu...
mit
accurat/slush-angular-gulp
tasks/controller.js
3990
/** * Controller Task * This is the main task that is invoked for the processing of the slushfile.js */ (function() { var gulp = require('gulp'), install = require('gulp-install'), conflict = require('gulp-conflict'), template = require('gulp-template'), rename = require('gulp-re...
mit
mongodb-utils/oid-sort-ids
index.js
775
// this algorithm assumes that `.toHexString()` is the expensive operation. // i don't know if it actually is. module.exports = function (docs, oids) { // we precalculate the array lengths // because we expect to use them all var docids = docs.map(toID) var indexes = docs.map(toIndex) var out = [] var in...
mit
tauren/tmpl-precompile
examples/output/templates.js
2545
var templates = templates || {}; templates.level1 = templates.level1 || {}; templates.level1.level2 = templates.level1.level2 || {}; templates.level1.level2.level3 = templates.level1.level2.level3 || {}; function attrs(obj){ var buf = [] , terse = obj.terse; delete obj.terse; var keys = Object.keys(obj) ,...
mit
guusw/fx2
FX2.Game/Database/DatabaseEventType.cs
356
// Copyright(c) 2016 Guus Waals (guus_waals@live.nl) // Licensed under the MIT License(MIT) // See "LICENSE.txt" for more information namespace FX2.Game.Database { /// <summary> /// The type of change that occured in the database /// </summary> public enum DatabaseEventType { Added, ...
mit
ecmas/cocos2d
extensions/GUI/CCControlExtension/CCControlSwitch.cpp
13511
/* * Copyright (c) 2012 cocos2d-x.org * http://www.cocos2d-x.org * * Copyright 2012 Yannick Loriot. All rights reserved. * http://yannickloriot.com * * Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software a...
mit
maartenbreddels/vaex
bin/make_dropbox_uploader_conf.py
293
__author__ = 'maartenbreddels' import os import sys content = """APPKEY={DB_APPKEY} APPSECRET={DB_APPSECRET} ACCESS_LEVEL=sandbox OAUTH_ACCESS_TOKEN={DB_OAUTH_ACCESS_TOKEN} OAUTH_ACCESS_TOKEN_SECRET={DB_OAUTH_ACCESS_TOKEN_SECRET} """.format(**os.environ) open(sys.argv[1], "w").write(content)
mit
scheuk/somecode2
lib/versioner/simple_version_file_manager.rb
1060
require 'thor' require 'versioner/util' module Versioner class SimpleVersionFileManager < Thor include Versioner::Util attr_accessor :version_file, :related_version_files, :extra_flags def initialize(options) self.version_file = options[:version_file] self.related_version_files = options[:r...
mit
inch-ci/inch_ci-web
lib/inch_ci/worker/project/update_info.rb
2001
require 'inch_ci/git_hub_info' module InchCI module Worker module Project # The UpdateInfo worker is responsible for updating a project's # meta information, like homepage and documentation URLs. class UpdateInfo include Sidekiq::Worker # @param uid [String] # @return [...
mit
agelinazf/egb
time.go
2702
package egb import ( "fmt" "strconv" "time" ) //TimeYear return now year string. //eg:2016 func TimeYear() string { now := time.Now() year, _, _ := now.Date() return fmt.Sprintf("%d", year) } //TimeMonth return now month string. //eg:8 func TimeMonth() string { now := time.Now() _, month, _ := now.Date() re...
mit
Onefootball/onefootball-angular-components
src/components.module.js
254
angular .module('onefootball.components', [ 'onefootball.components.config', 'onefootball.components.services', 'onefootball.components.filters', 'onefootball.components.directives' ]);
mit
bemiriq/schoolsystem
application/views/admin/adminHeader.php
8330
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>SB Admin - Bootstrap Admin Temp...
mit
tanapi/FirmataTest
app/src/main/java/com/example/firmatatest/ArduinoScenario.java
20341
package com.example.firmatatest; import android.util.Log; import android.util.Xml; import org.shokai.firmata.ArduinoFirmata; import org.xmlpull.v1.XmlPullParser; import java.io.StringReader; import java.util.ArrayList; import java.util.HashMap; import java.util.Stack; public class ArduinoScenario { final stati...
mit
wwwbruno/monefy
lib/monefy.rb
2599
require "monefy/converter" require "monefy/matchers" require "monefy/arithmetic" require "monefy/version" # Monefy instance with two attr_reader # # @attr_reader amount [Float] is the quantiy of a currency. # @attr_reader currency [String] is the string correspondent to the currency. class Monefy include Monefy::Con...
mit
jugstalt/gViewGisOS
gView.Offline.UI/Framework/Offline/UI/Tools/FormSolveConflicts.Designer.cs
7341
namespace gView.Framework.Offline.UI.Tools { partial class FormSolveConflicts { /// <summary> /// Erforderliche Designervariable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Verwendete Ressourcen bereinigen. ...
mit
Chunfang/defmod-swpc
example/HF3D/HF3D_fd_plot.py
4766
#!/usr/bin/env python import numpy as np import os, sys, netCDF4 from subprocess import call import matplotlib import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib.patches as patches from matplotlib import gridspec font = {'weight' : 'normal', 'size' : 12} matplotlib.rc('font', **font...
mit
debasishdebs/Scarlett-PA
ScarlettHome/AlwaysOnKeyboard.py
381
from brain import brain name = "Debasish" class AlwaysOnKeyboard(object): def __init__(self): pass def listen_keyboard(self): message = raw_input("Hi {}. How can I help you?") return message def start(self): msg = self.listen_keyboard() ret = brain(name, msg) ...
mit
intel-hpdd/GUI
source/iml/user/user-reducer.js
540
// @flow // // Copyright (c) 2018 DDN. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. export const ADD_USER_ITEMS = "ADD_USER_ITEMS"; import Immutable from "seamless-immutable"; import type { ActionT } from "../store/store-module.js"; ex...
mit
neolfdev/dlscxx
java_core_src/src/cn/org/rapid_framework/util/holder/BeanValidatorHolder.java
3326
package cn.org.rapid_framework.util.holder; import java.util.Set; import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolationException; import javax.validation.Validator; import javax.validation.metadata.BeanDescriptor; import org.springframework.beans.factory.InitializingBean; /** * 用于...
mit
molinch/SQLite.Net-PCL
src/SQLite.Net/SQLiteConnection.cs
69665
// // Copyright (c) 2012 Krueger Systems, Inc. // Copyright (c) 2013 Øystein Krog (oystein.krog@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, includi...
mit
UweKeim/ZetaResourceEditor
Source-Skinning/ExtendedControlsLibrary/Skinning/CustomComboBoxEdit/MyCheckedComboBoxEdit.cs
713
namespace ExtendedControlsLibrary.Skinning.CustomComboBoxEdit; using System.ComponentModel; using CustomForm; using DevExpress.XtraEditors; [Designer(@"System.Windows.Forms.Design.ButtonBaseDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] public class MyCheckedComboBoxEdi...
mit