repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
abscondite/quickblox_api
lib/quickblox_api.rb
443
require 'hmac-sha1' require 'faraday' require 'quickblox_api/version' require 'quickblox_api/encoder' require 'quickblox_api/helpers' require 'quickblox_api/config' require 'quickblox_api/base_client' require 'quickblox_api/client' require 'quickblox_api/user_client' module QuickbloxApi def self.client(opts) Qu...
mit
sunny-g/node-ddp-client
index.js
10251
"use strict"; var _ = require('underscore'); var minimongo = require('minimongo-cache'); var EventEmitter = require('events').EventEmitter; var EJSON = require("ejson"); class DDPClient extends EventEmitter{ constructor(opts) { super(); var self = this; opts = opts || {}; // backwards compatibility ...
mit
MarcLoupias/RandomDNAselector
src/main/java/org/dnaselector/fasta/FastaLineReader.java
2112
package org.dnaselector.fasta; public class FastaLineReader { public static FastaLine readLine(String fastaFilePath, Integer lineNumber, String lineContent) throws FastaLineReaderException { if(lineContent == null) { throw new FastaLineReaderException(fastaFilePath, lineNumber, "Li...
mit
uniquetree/jquery-tablelock
dist/scripts/jquery.tablelock.js
3257
/** * jquery-tablelock - A jquery plugin to lock the table's row or column * @author 郑树聪 * @version 1.0.0 * @link https://github.com/uniquetree/jquery-tablelock#readme * @license MIT */ ;(function($) { // 插件全局变量,此处全局this指向当前调用此插件的DOM的jquery对象, var thisTable; function _TableLock(options){ thi...
mit
Azure/azure-sdk-for-java
sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetSamples.java
868
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.Context; /** Samples for ScriptCmdlets Get. */ public final class ScriptCmdletsGetSam...
mit
peer23peer/pymech
pymech/fluid/Pipe.py
4562
import math import pymech.materials as mat from pymech.units.SI import * from pymech.fluid.Component import Component from pymech.fluid.Point import Point from pymech.fluid.Core import flowrate, Regime, Reynolds, Darcy, flowregime, HagenPoiseuille, friction, fluidspeed, \ hydrostatic_headloss, I_m, hl_to_dp from p...
mit
luthraG/node-validate
test/isTitleCase.js
3102
var isTitleCase = require('../validate.js').isTitleCase, expect = require('chai').expect; describe('isTitleCase API Tests', function () { describe('Valid tests for isTitleCase API', function () { it('Gaurav is a valid title case value', function () { expect(isTitleCase('Gaurav')).to.be...
mit
stierma1/pouch-pid
tests/lib/initialize.spec.js
3223
var chai = require("chai"); var expect = chai.expect; var System = require("pid-system"); var path = require("path"); var testModulePath = path.join(process.cwd(), "./lib/initialize.js"); var mockMessages = path.join(process.cwd(), "tests", "mock-messages", "./lib/initialize.js"); var echoPid = path.join(process.cwd()...
mit
nivinjoseph/n-web
dist/view.d.ts
129
import "reflect-metadata"; export declare const viewSymbol: unique symbol; export declare function view(file: string): Function;
mit
hovsepm/azure-libraries-for-net
src/ResourceManagement/Network/Domain/InterfaceImpl/NetworkSecurityGroupImpl.cs
5112
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Management.Network.Fluent { using System.Threading; using System.Threading.Tasks; using Microsoft.Azure.Management.Network.Fl...
mit
wmira/react-icons-kit
src/fa/rupee.js
480
export const rupee = {"viewBox":"0 0 898 1792","children":[{"name":"path","attribs":{"d":"M898 470v102q0 14-9 23t-23 9h-168q-23 144-129 234t-276 110q167 178 459 536 14 16 4 34-8 18-29 18h-195q-16 0-25-12-306-367-498-571-9-9-9-22v-127q0-13 9.5-22.5t22.5-9.5h112q132 0 212.5-43t102.5-125h-427q-14 0-23-9t-9-23v-102q0-14 9-...
mit
bing-ads-sdk/BingAds-Java-SDK
proxies/com/microsoft/bingads/v12/campaignmanagement/Adapter9.java
635
package com.microsoft.bingads.v12.campaignmanagement; import java.util.Collection; import javax.xml.bind.annotation.adapters.XmlAdapter; public class Adapter9 extends XmlAdapter<String, Collection<MediaEnabledEntityFilter>> { public Collection<MediaEnabledEntityFilter> unmarshal(String value) { ret...
mit
skank/skankydev
vendor/skank/SkankyDev/Utilities/Traits/StringFacility.php
758
<?php /** * Copyright (c) 2015 SCHENCK Simon * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @license http://www.opensource.org/licenses/mit-license.php MIT License * @copy...
mit
sheilanasimiyu/ADTPro
application/helpers/my_api_helper.php
411
<?php //video 009 function remove_unknown_fields($raw_data, $expected_fields) { $new_data=array(); //consists of rows removed from the $raw_data array if they were not found in the $expected_fields array. foreach($raw_data as $field_name=>$field_value) { if($field_value!="" && in_array($field_name,array_values($ex...
mit
cenkalti/kuyruk
example/tasks.py
100
from kuyruk import Kuyruk kuyruk = Kuyruk() @kuyruk.task() def echo(message): print(message)
mit
Alerion/shopping-helper
src/templates/utils/forms.py
711
from django.forms.formsets import BaseFormSet from django.utils.encoding import force_unicode class AjaxForm(object): def get_form_errors(self, form): output = {} for name, value in form.errors.items(): if form.prefix: key = '%s-%s' % (form.prefix, name) el...
mit
saxsir/showgi
db/migrate/20130102041448_add_csa_to_kifus.rb
104
class AddCsaToKifus < ActiveRecord::Migration def change add_column :kifus, :csa, :text end end
mit
mind0n/hive
Cache/Libs/net46/wpf/src/Core/CSharp/System/Windows/Media/Imaging/WmpBitmapDecoder.cs
3847
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, All Rights Reserved // // File: WmpBitmapDecoder.cs // //------------------------------------------------------------------------------ using System; using System.IO; using Sy...
mit
Association-Merci-Edgar/Merci-Edgar
app/controllers/contacts_controller.rb
6300
class ContactsController < ApplicationController def bulk @contact_ids = params[:contact_ids] case params[:bulk_action] when "delete" Contact.where(id: params[:contact_ids]).find_each do |contact| unless contact.fine_model.destroy @error_message = "Une erreur est survenue lors de l...
mit
michalbe/turbulenz_engine
samples/tsscripts/benchmarks/turbulenz/js/inline_functions.ts
8599
// Copyright (c) 2010-2011 Turbulenz Limited /*global BF: false*/ declare var BF; // // Inline functions vs non-inline functions // // // Inline function: Call an inline version of a math function // class InlineFunction { // Settings n = 10000; // Number of times to call the function array: any[]; ...
mit
saeeiabping/project1
application/config/config.php
17729
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
mit
JohanLarsson/Gu.State
Gu.State/Internals/Collections/ReferenceComparer.cs
925
namespace Gu.State { using System.Collections.Generic; internal sealed class ReferenceComparer : IEqualityComparer<object> { internal static readonly ReferenceComparer Default = new ReferenceComparer(); private ReferenceComparer() { } bool IEqualityComparer<object>...
mit
kormoc/xattr
xattr_test.go
1234
package xattr import "io/ioutil" import "os" import "reflect" import "testing" func TestHas(t *testing.T) { var test_xattrName = "user.xattr.test" var test_xattrValue = []byte{11,22,33,44,55,66,77,88,99} tmpfile, err := ioutil.TempFile("", "xattr_Test") if err != nil { t.Fatal(err) } ...
mit
moyuyc/isomorphic-blog
frontend/src/router.js
1366
/** * Created by moyu on 2017/2/8. */ import React from "react"; import {Router, browserHistory, Route, Redirect, IndexRoute} from "react-router"; import App from "./App"; export const routerForSiteMap = ( <Router history={ browserHistory }> <Route path="/"> <IndexRoute/> <Route p...
mit
nathanntg/arctic-api
examples/invoice_transaction_insert.php
824
<?php // set directory chdir(__DIR__); require 'init.i.php'; // load invoice by ID (if invoice number is P185, the ID is 185) try { $invoice = \Arctic\Model\Invoice\Invoice::load(185); } catch (\Arctic\Exception $e) { // invoice not found or communication error die('Unable to load invoice.'); } // create transact...
mit
MSNexploder/mapper
lib/mapper/visitors/sql.js
12200
var util = require('util'); var _ = require('underscore'); var Visitor = require('./visitor'); var SelectStatement = require('../nodes/select_statement'); var In = require('../nodes/in'); var SQL = function() { Visitor.call(this); this.class_name = 'SQL'; }; util.inherits(SQL, Visitor); module.exports = SQL; ...
mit
php-quartz/quartz-dev
pkg/quartz/Core/SchedulerFactory.php
235
<?php namespace Quartz\Core; interface SchedulerFactory { /** * <p> * Returns a client-usable handle to a <code>Scheduler</code>. * </p> * * @return Scheduler */ public function getScheduler(); }
mit
thebakeryio/openmic
internals/webpack/webpack.dev.babel.js
2133
/** * DEVELOPMENT WEBPACK CONFIGURATION */ const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); // PostCSS plugins const cssnext = require('postcss-cssnext'); const postcssFocus = require('postcss-focus'); const postcssReporter = require('postcs...
mit
GICodeWarrior/authlogic_facebook
spec/spec_helper.rb
220
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'authlogic_facebook' require 'spec' require 'spec/autorun' Spec::Runner.configure do |config| end
mit
piotrwitek/typesafe-actions
src/index.ts
1045
/** * @name typesafe-actions * @author Piotr Witek <piotrek.witek@gmail.com> (http://piotrwitek.github.io) * @copyright Copyright (c) 2017 Piotr Witek * @license MIT */ /** Public API */ // action-creators export { action } from './action'; export { createAction } from './create-action'; export { createCustomAct...
mit
andmilj/vip-transfers
src/utils/Format.utils.js
1637
import cityTypes from '../db/constants/cityTypes'; import { pick, find } from 'lodash'; export function cityName(_city, _type) { let city = _city; let type = _type; if (!type) { city = _city.split('_')[0]; type = _city.split('_')[1]; } const suffix = type === cityTypes.AIRPORT ? ' ' + cityTypes.AIR...
mit
apiaryio/dredd-hooks-python
dredd_hooks/__main__.py
225
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2015, 2016 Apiary Czech Republic, s.r.o. # License: MIT # def main(): from dredd_hooks import cli cli.main() if __name__ == '__main__': main()
mit
topameng/tolua
Assets/ToLua/Lua/UnityEngine/Ray.lua
1480
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -------------------------------------------------------------...
mit
efleurine/alumnus
api/libs/logger.js
268
/** * A logger service -TO BE update to use a more reliable solution like morgan or other * this should only be use on the server side and not in the browser * */ function Logger(msg) { // eslint-disable-next-line console.log(msg) } module.exports = Logger
mit
teayudope/laweb
web/bower_components/tiny-slider/src/helpers/removeAttrs.js
362
import { isNodeList } from "./isNodeList"; export function removeAttrs(els, attrs) { els = (isNodeList(els) || els instanceof Array) ? els : [els]; attrs = (attrs instanceof Array) ? attrs : [attrs]; var attrLength = attrs.length; for (var i = els.length; i--;) { for (var j = attrLength; j--;) { els...
mit
twoolie/Minecraft-Tools
src/minecraft/mcproxy.py
10446
#!/usr/bin/env python2.7 from test.test_telnetlib import EOF_sigil __VERSION__ = ('0','5') __AUTHOR__ = ('gm_stack', 'twoolie', 'kleinig') import os.path, sys; sys.path.insert(0,os.path.dirname(os.path.abspath(__file__))) import socket, struct, time, sys, traceback, argparse, logging from Queue import Queue from threa...
mit
ghiscoding/Aurelia-Bootstrap-Plugins
aurelia-bootstrap-select/dist/es2015/util-service.js
1240
export let UtilService = class UtilService { isArrayEqual(a, b) { if (a === b) return true; if (a === null || b === null) return false; if (a.length !== b.length) return false; for (let i = 0; i < a.length; i++) { let aExistsInb = false; for (let j = 0; j < b.length && !aExistsInb; j++) {...
mit
kodazzi/amazonas
system/bundles/Dinnovos/Users/config/routes.cf.php
3096
<?php /* * This file is part of the Kodazzi Framework. * * (c) Jorge Gaitan <jgaitan@kodazzi.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Symfony\Component\Routing\Route; $routes->add( 'user-registration', ne...
mit
sergey-dryabzhinsky/dedupsqlfs
dedupsqlfs/db/sqlite/table/block.py
1972
# -*- coding: utf8 -*- __author__ = 'sergey' from sqlite3 import Binary from dedupsqlfs.db.sqlite.table import Table class TableBlock( Table ): _table_name = "block" def create( self ): c = self.getCursor() # Create table c.execute( "CREATE TABLE IF NOT EXISTS `%s` (" %...
mit
urban/scaffold
test/prompt-test.js
2054
import test from 'tape' import prompt from '../src/prompt' import MockStream from './helpers/mock-stream' import flatten from 'flat' import questions from './fixtures/questions' import userInput from './fixtures/userInput' import captureOutput from './helpers/capture-output' process.on('unhandledRejection', (err) => ...
mit
sql-assurance/sql-assurance
sql_assurance/config.py
613
import sys import os import yaml def find_path_to_config_parameter(): args = sys.argv if 'SQLASSURANCE_CONFIG_PATH' in os.environ: return os.environ['SQLASSURANCE_CONFIG_PATH'] for i, arg in enumerate(args): if arg[i] == 'p': return args[i+1] def load_config(path): if n...
mit
jonathanlurie/canvasSpliner
dist/CanvasSpliner.js
30594
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.CanvasSpliner = global.CanvasSpliner || {}))); }(this, (function (exports) { 'use strict'; /** * by G...
mit
jean1187/plantilla_sf2
app/AppKernel.php
1723
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
mit
ROFISH/smn-tumblr-admin
config/environments/production.rb
3350
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
mit
coojee2012/pm3
SurveyDesign/JSDW/ApplyAQJDBA/PrjFileList.aspx.cs
2789
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Approve.RuleCenter; using EgovaDAO; using Tools; public partial class JSDW_ApplyAQJDBA_PrjFileList : System.Web.UI.Page { EgovaDB dbContext = new EgovaDB(); RCenter ...
mit
teohm/natives
spec/natives/catalog_spec.rb
4375
require 'spec_helper' require 'natives/catalog' describe Natives::Catalog do describe "#new" do it "loads catalogs" do Natives::Catalog.any_instance.should_receive(:reload) Natives::Catalog.new('rubygems', 'mac_os_x', '10.7.5', 'homebrew') end it "requires caller to provide platform and pac...
mit
Stillat/Collection
src/Collection/Traits/Macroable.php
2121
<?php namespace Collection\Traits; use Closure; use BadMethodCallException; trait Macroable { /** * The registered string macros. * * @var array */ protected static $macros = []; /** * Register a custom macro. * * @param string $name * @param callable $macro ...
mit
diasdavid/nitd
modules/fetchIssues.js
3350
require('colors'); var request = require('request'); var Issue = require('model').getModelByName('Issue'); var secret = require('./../secret.json').secret; var repo = 'joyent/node'; var options = { url: 'https://api.github.com/repos/' + repo + '/issues', headers: { 'User-Agent': secret.us...
mit
JMdeKlerk/SMSIM
Windows/Conversation.Designer.cs
4332
namespace SMSIM { partial class Conversation { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param...
mit
ragingwind/hyphenize
index.js
549
'use strict'; module.exports = function (h) { return h.replace(/^(\W|-|\.)*/g, '') .replace(/(|\W|\s)*$/g, '') .replace(/([A-Z])([A-Z])([a-z0-9]){1,2}./g, function (match) { return match.substr(0, 1) + '-' + match.substr(1).toLowerCase(); }) .replace(/([a-z\d])([A-Z])/g, function (match, a, b) { return ...
mit
manland/angular2-bien-ou-pas-bien
app/client/8.1-testDi/Talks/Talks.spec.ts
955
import {beforeEachProviders, inject, async, it, describe} from "@angular/core/testing"; import {Server} from "../Server"; import {Observable} from "rxjs/Observable"; import {TalkModel} from "../Talk/Talk"; import {Talks} from "../Talks/Talks"; import "rxjs/add/observable/of"; const fakeTalks = [{id: 0, speaker: {avata...
mit
lukeapage/rollup
test/form/unmodified-default-exports-function-argument/_expected/umd.js
374
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define === 'function' && define.amd ? define(factory) : factory(); }(this, function () { 'use strict'; var foo = function () { return 42; }; function bar () { return contrivedExample( foo ); } ...
mit
tscolari/docode
docode/runner.go
782
package docode import ( "github.com/tscolari/docode/config" "github.com/tscolari/docode/runtime" ) type Runner struct { config config.Configuration docker runtime.Wrapper } func NewWithWrapper(config config.Configuration, docker runtime.Wrapper) *Runner { return &Runner{ config: config, docker: docker, } }...
mit
jrechandi/sundahipP
src/Sunahip/LicenciaBundle/Entity/AdmClasfLicencias.php
8838
<?php namespace Sunahip\LicenciaBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * AdmClasfLicencias * * @ORM\Table(name="adm_clasf_licencias", indexes={@ORM\Index(name="fk_adm_clasf_licencias_adm_tipos_licencias1_idx", columns={"adm_tipos_licencias_id"})}) * @ORM\Entity */ class AdmClasfLicencias { /** ...
mit
cbetta/primo
spec/primo/template_spec.rb
2538
require "spec_helper" describe Primo::Template do describe ".for" do it "should initialize a template with the right name and remote" do template = Primo::Template.for "foo-bar" expect(template.filename).to be == "bar.rb" expect(template.remote.name).to be == "foo" end end describe "....
mit
letid/framework
src/form/database.php
5470
<?php namespace letId\form; trait database { // NOTE: DONE -> SIGNING UP public function signup($Id=null) { if ($this->responseTerminal()) { $db = avail::$database->insert($this->formPost)->to($this->table)->execute()->rowsId(); $this->responseTask($db->rowsId,$Id,$db,array('Inserted!','Unchanged!')); } ...
mit
RISCfuture/hierarchy
spec/spec_helper.rb
735
require 'bundler' Bundler.require :default, :development require 'active_support' require 'active_record' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'hierarchy' ActiveRecord::Base.establish_connection( adapter: 'postgresql', database: 'hi...
mit
Data2Semantics/nodes
nodes/src/test/java/org/nodes/LightUGraphTest.java
13098
package org.nodes; import static org.junit.Assert.*; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import org.junit.Test; import or...
mit
ideaworld/FHIR_Tester
FHIR_Tester_statics/js/build/.module-cache/3c85e614fa517a7dc1eab324d38caf65ae4a6c72.js
13382
var app = app || {}; (function(){ app.TestButton = React.createClass({displayName: "TestButton", handleClick: function() { this.props.submitTestTask(this.props.btnType); }, render: function() { return ( React.createElement("button", {onClick: this.handleClick, ...
mit
MacHu-GWU/dataIO-project
create_doctree.py
473
#!/usr/bin/env python # -*- coding: utf-8 -*- import docfly # Uncomment this if you follow Sanhe's Sphinx Doc Style Guide #--- Manually Made Doc --- doc = docfly.DocTree("source") doc.fly(table_of_content_header="Table of Content") #--- Api Reference Doc --- package_name = "dataIO" doc = docfly.ApiReferenceDoc( ...
mit
jordifierro/abidria-api
scenes/interactors.py
4108
from .entities import Scene class GetScenesFromExperienceInteractor: def __init__(self, scene_repo, permissions_validator): self.scene_repo = scene_repo self.permissions_validator = permissions_validator def set_params(self, experience_id, logged_person_id): self.experience_id = expe...
mit
talentegra/TesNow
application/views/roles/roles_read.php
326
<h2 style="margin-top:0px">Roles Read</h2> <table class="table"> <tr><td>Name</td><td><?php echo $name; ?></td></tr> <tr><td>Definition</td><td><?php echo $definition; ?></td></tr> <tr><td></td><td><a href="<?php echo site_url('roles') ?>" class="btn btn-default">Cancel</a></td></tr> </table> ...
mit
hgaard/intro-to-docker
src/aspnet-core-sql-server/Data/Migrations/ApplicationDbContextModelSnapshot.cs
7328
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace app.Data.Migrations { [DbContext(typeof(ApplicationDbContext))] partial class ApplicationDbCon...
mit
visa-innovation-sf/ldn-retail-demo
src/components/ui/Button.js
3240
/** * Buttons * <Button text={'Server is down'} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-native-elements'; // Consts and Libs import { AppColors, AppFonts, ...
mit
IndustrialDragonfly/DEdC
Interface/ClassLoader.php
939
<?php /** * Attempts to load Interface classes (Request and Response). * @param String $classname */ function InterfaceClassLoader($classname) { // Handle setting the path if there is one set - such as for PHPUnit if (isset($GLOBALS['path'])) { $prefix = $GLOBALS['path'] . "/"; } else ...
mit
mmnaseri/spring-data-mock
spring-data-mock/src/main/java/com/mmnaseri/utils/spring/data/domain/impl/ImmutableInvocation.java
785
package com.mmnaseri.utils.spring.data.domain.impl; import com.mmnaseri.utils.spring.data.domain.Invocation; import java.lang.reflect.Method; import java.util.Arrays; /** * This is an immutable invocation. * * @author Milad Naseri (m.m.naseri@gmail.com) * @since 1.0 (9/23/15) */ public class ImmutableInvocation...
mit
PrismLibrary/Prism-Samples-Windows
AdventureWorks.Shopper/AdventureWorks.UILogic/Models/Category.cs
875
using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace AdventureWorks.UILogic.Models { [DataContract] public class Category { // Needed only for Serialization public Category() { } [DataMember] public int...
mit
karlthepagan/Glowstone
src/main/java/net/glowstone/net/codec/MapDataCodec.java
1152
package net.glowstone.net.codec; import java.io.IOException; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import net.glowstone.msg.MapDataMessage; public final class MapDataCodec extends MessageCodec<MapDataMessage> { public MapDataCodec() { super(MapDataMe...
mit
Sensis/pyaem
pyaem/packagemanagerservicejsp.py
5185
from . import bagofrequests as bag from . import handlers from . import result as res import xmltodict class PackageManagerServiceJsp(object): def __init__(self, url, **kwargs): self.url = url self.kwargs = kwargs self.handlers = { 401: handlers.auth_fail } def ...
mit
hoopsomuah/orleans
src/Orleans/Serialization/BinaryTokenStreamReader.cs
36804
//#define TRACE_SERIALIZATION using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Runtime.Serialization; using System.Text; using Orleans.CodeGeneration; using Orleans.GrainDirectory; using Orleans.Runtime; namespace Orleans.Seria...
mit
reasonml-editor/reasonml-idea-plugin
src/com/reason/lang/core/stub/type/PsiModuleStubElementType.java
2966
package com.reason.lang.core.stub.type; import com.intellij.lang.Language; import com.intellij.psi.stubs.IndexSink; import com.intellij.psi.stubs.StubElement; import com.intellij.psi.stubs.StubInputStream; import com.intellij.psi.stubs.StubOutputStream; import com.intellij.util.io.StringRef; import com.reason.ide.sear...
mit
akhan-weltkind/newtek
app/Modules/Admin/Resources/Views/common/topmenu/all.blade.php
226
@if (isset($routePrefix)) <div class="header-module-controls"> @include('admin::common.topmenu.list', ['routePrefix'=>$routePrefix]) @include('admin::common.topmenu.create', ['routePrefix'=>$routePrefix]) </div> @endif
mit
JonMercer/Join-Daily-Wave-Files-to-Weekly-Wave-Files
WavWeeklyJoin.java
6502
import java.io.*; import java.util.*; import java.nio.file.Files; import javax.sound.sampled.AudioFileFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import java.text.SimpleDateFormat; import java.text.DateFormat; // The MIT License (MIT) // Copyright (c) [2014] [Jonathan ...
mit
executablebooks/markdown-it-py
markdown_it/__init__.py
113
"""A Python port of Markdown-It""" __all__ = ("MarkdownIt",) __version__ = "2.0.1" from .main import MarkdownIt
mit
realitix/cvulkan
cvulkan/example/example.py
23749
# flake8: noqa import ctypes import os import sdl2 import sdl2.ext from vulkan import * WIDTH = 400 HEIGHT = 400 # ---------- # Create instance appInfo = VkApplicationInfo( sType=VK_STRUCTURE_TYPE_APPLICATION_INFO, pApplicationName="Hello Triangle", applicationVersion=VK_MAKE_VERSION(1, 0, 0), pEngin...
mit
fathomminds/php-rest-models
tests/DynamoDb/QueryBuilderTest.php
1203
<?php namespace Fathomminds\Rest\Tests\DynamoDb; use Mockery; use Aws\DynamoDb\DynamoDbClient as Client; use Fathomminds\Rest\Exceptions\RestException; use Fathomminds\Rest\Database\DynamoDb\Finder; use Fathomminds\Rest\Examples\DynamoDb\Models\FinderModel; class QueryBuilderTest extends TestCase { public functio...
mit
josemesona/ManagedDism
src/Microsoft.Dism/DismDriverPackageCollection.cs
909
// Copyright (c). All rights reserved. // // Licensed under the MIT license. using System; using System.Collections.ObjectModel; namespace Microsoft.Dism { /// <summary> /// Represents a collection of <see cref="DismDriverPackage" /> objects. /// </summary> public sealed class DismDriverPackageCollec...
mit
VictorJL/Redirector
server_modules/test.js
282
var DBManager = require("./export.js")(); var db_manager = new DBManager("../database/users.db"); db_manager.verify("password", "mypwd", "users", "username", "guest", function(err, result){ if(result){ console.log("great"); } else { console.log("not great"); } });
mit
bluedogtraining/avetmiss
src/Config/Config.php
1543
<?php namespace Bdt\Avetmiss\Config; /** * Class for managing configuration options via static values on the object. * * To extend this class, define your own properties on the extending class, e.g.: * * class ExampleConfig extends Config * { * protected $myOptions = [ * 'key' ...
mit
NikitaKozlov/Switchman
app/src/main/java/org/zalando/switchman/ui/RecommendationStateChecker.java
524
package org.zalando.switchman.ui; import org.zalando.switchman.ItemId; import org.zalando.switchman.data.RecommendationDataSource; public class RecommendationStateChecker { private final RecommendationDataSource recommendationDataSource; public RecommendationStateChecker(RecommendationDataSource recommendati...
mit
Boriow/Telerik-Academy
Databases/Nice Solutions Exam 2016/InterestingImporter_Exam/01. Code First/SuperHeroesUniverse/StartUp/StartUp.cs
947
using System.IO; using System; using SuperHeroes.Data; using StartUp.ExportToXml; using System.Data.Entity; using SuperHeroes.Data.Migrations; namespace StartUp { public class StartUp { static void Main() { Database.SetInitializer(new MigrateDatabaseToLatestVersion<SuperHeroesDbCon...
mit
cmdconfig/CodeIgniter_EvrosetParser
application/config/database.php
3787
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
mit
hiphapis/backup
spec/storage/dropbox_spec.rb
8758
require "spec_helper" module Backup describe Storage::Dropbox do let(:model) { Model.new(:test_trigger, 'test label') } let(:storage) { Storage::Dropbox.new(model) } let(:s) { sequence '' } it_behaves_like 'a class that includes Config::Helpers' it_behaves_like 'a subclass of Storage::Base' ...
mit
yogeshsaroya/new-cdnjs
ajax/libs/webshim/1.12.1/minified/shims/form-validators.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:df3617a4d5e30a2fe3c353dd08d8ef572578d0fa8cd4033b7339ef0baa398d70 size 6313
mit
Nexmo/nexmo-java-sdk
src/main/java/com/vonage/client/account/SettingsResponse.java
2857
/* * Copyright 2020 Vonage * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
mit
Tarvald/goodAndEvil
app/Interface/components/registerForm/registerForm.component.ts
1330
import { Component } from '@angular/core'; import { CreatureService } from '../../../Game/components/creature/creature.service'; import { RegisterFormService } from './registerForm.service'; @Component({ moduleId: module.id, selector: 'registration-form', templateUrl: './registerForm.component.html', p...
mit
kbunkrams97/SQL-Log
src/com/gmail/kbunkrams97/DatabaseHandler/SQLSelection.java
2842
package com.gmail.kbunkrams97.DatabaseHandler; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import com.gmail.kbunkrams97.SQLMain; public class SQLSelection { private static Connection con; private static SQLMain plugin = SQLMain.get...
mit
thesevenlayers/sevenlayers-crm
src/Seven/FEBundle/Entity/Client.php
8892
<?php namespace Seven\FEBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Seven\FEBundle\Entity\Partial\BasicInfo; use Seven\FEBundle\Entity\Utilities\ImageContainer; /** * @ORM\Entity(repositoryClass="Seven\FEBundle\Repository\ClientRepository") * @ORM\Table(name="clients") * @ORM\HasLifecycleCallbacks */ clas...
mit
simon-downes/eams
src/classes/users/UserRepository.php
4700
<?php namespace eams\users; use \spf\model\Fieldset; class UserRepository extends \spf\model\GenericRepository { protected $_keys; public function __construct( $db, $map, $mapper, $key_mapper ) { parent::__construct($db, $map, $mapper); $this->keys = $key_mapper; \spf\assert_instance($this->keys, '\\eams\\...
mit
gleicon/RedisLive
src/redis-live.py
1091
#! /usr/bin/env python from twisted.internet import reactor import cyclone.options import cyclone.web from api.controller.BaseStaticFileHandler import BaseStaticFileHandler from api.controller.ServerListController import ServerListController from api.controller.InfoController import InfoController from api.controlle...
mit
mateusmaso/hipbone
lib/storage/index.js
1866
(function() { var Module, Storage, _, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return ch...
mit
junaidappimagine/smartedu
application/views/fees/feesDefaulters.php
12744
<style> .panel-body h1{ font-size: 15px; } </style> <link href="<?php echo base_url(); ?>assets/datatable/jquery.dataTables.min.css" rel="stylesheet" /> <div id="content" class="content"> <ol class="breadcrumb pull-right"> <li><a href="javascript:;">Fees</...
mit
Fatal1ty/amqpipe
amqpipe/utils.py
1021
import twisted.internet.error from twisted.internet import defer, reactor from pika.adapters import twisted_connection def asleep(seconds): d = defer.Deferred() reactor.callLater(seconds, d.callback, None) return d class AMQPConnection(twisted_connection.TwistedProtocolConnection): def __init__(self...
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_90/unsafe/CWE_90__system__no_sanitizing__userByMail-interpretation_simple_quote.php
1354
<?php /* Unsafe sample input : execute a ls command using the function system, and put the last result in $tainted sanitize : none construction : interpretation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, an...
mit
octavioamu/facebook-app-frame
js/functions.js
384
function inputKeyUp(e) { function urlSet(urlSrc) { var iframeElement = document.getElementById('iframeid'); iframeElement.src = "http://" + urlSrc; } e.which = e.which || e.keyCode; if(e.which == 13) { var urlInput = document.getElementById('urlInput'); ...
mit
hackforwesternmass/seednetwork
seednetwork/models.py
886
from django.db import models from django.contrib.auth.models import User, AnonymousUser # Create your models here. class MemberInfo(models.Model): user = models.ForeignKey(User) email_is_public = models.BooleanField(default=True) town = models.CharField(max_length=150, blank=True) phone = models.CharField(max_l...
mit
mattmueller/montabe
test/helper.rb
428
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__),...
mit
Quanteek/bluetoe
tests/test_services.hpp
2377
#ifndef BLUETOE_TESTS_TEST_SERVICES_HPP #define BLUETOE_TESTS_TEST_SERVICES_HPP #include <bluetoe/service.hpp> #include <bluetoe/characteristic.hpp> namespace { std::uint32_t global_temperature; typedef bluetoe::service< bluetoe::service_uuid< 0xF0426E52, 0x4450, 0x4F3B, 0xB058, 0x5BAB1191D92A >, ...
mit
aldeed/PhysicsJS
src/behaviors/interactive.js
7515
/** * class InteractiveBehavior < Behavior * * `Physics.behavior('interactive')`. * * User interaction helper. * * Used to get mouse/touch events and add a mouse grab interaction. * * Additional options include: * - el: The element of the renderer. What you input as the `el` for the renderer. * - moveThrottl...
mit
e-travel/evelpidon_core_ext
test/hash_test.rb
1130
require 'test_helper' require 'evelpidon_core_ext/hash' class HashTest < ActiveSupport::TestCase test "underscore with string camel case keys" do original = {"StringCamelCase" => "string value", "IntegerCamelCase" => 1, "ArrayCamelCase" => ["Foo", ...
mit