repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
tulp/omniauth-vk
lib/omniauth/strategies/vk.rb
1606
require 'omniauth/strategies/oauth2' module OmniAuth module Strategies # Authenticate to VK utilizing OAuth 2.0 and retrieve # basic user information. # documentation available here: # http://vk.com/dev/authentication # # @example Basic Usage # use OmniAuth::Strategies::VK, 'API Key',...
mit
spatie-custom/blender.js
modules/form.autosave.js
1192
// Autosave form input var $ = require('jquery') require('sisyphus.js') var translate = require("./interface.translations.js") $("form[data-autosave]").each(function () { var $form = $(this) var $save = $(' <a class="button -small" href="#">'+translate('sisyphus.save')+'</a>') .on('click', function (e...
mit
langri-sha/langri-sha.github.io
packages/components/src/analytics.js
954
// @flow import * as React from 'react' declare function ga(...any[]): void window.ga = window.ga || function(...args) { ga.q = ga.q || [] ga.q.push(args) } type Props = {| id: string |} export default class Analytics extends React.PureComponent<Props> { insertScript() { const script = documen...
mit
elydon/fragments
fragments-core/src/main/java/de/elydon/fragments/core/ClassScanner.java
3091
package de.elydon.fragments.core; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.URL; import java.net.URLClassLoader; import java.nio.file.FileVisitResult; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.SimpleFileVisitor; import java.nio.fi...
mit
OutpostOmni/OmniAPI
OmniAPI/Services/Story/IStoryService.cs
2293
/** * This file is part of OmniAPI, licensed under the MIT License (MIT). * * Copyright (c) 2017 Helion3 http://helion3.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 ...
mit
florin-chelaru/epiviz-5
export/controllers/master.js
770
/** * Created by Florin Chelaru ( florin [dot] chelaru [at] gmail [dot] com ) * Date: 11/9/2015 * Time: 4:06 PM */ goog.require('epiviz.controllers.Master'); goog.exportSymbol('epiviz.controllers.Master', epiviz.controllers.Master); goog.exportProperty(epiviz.controllers.Master.prototype, 'loadMoreEpigenomes', epi...
mit
WaveEngine/Materials
Shared/DualMaterial.cs
25032
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using System; using System.Linq; using System.Runtime.InteropServices; using System.Runtime.Serialization; using WaveEngine.Common.Attributes; using WaveEngine.Common.Graphics; using WaveEngine.Common.G...
mit
WulfMarius/ModComponent
ModComponentAPI/src/TypeResolver.cs
770
using System; using System.Reflection; namespace ModComponentAPI { public class TypeResolver { public static Type Resolve(string name) { Type result = Type.GetType(name, false); if (result != null) { return result; } ...
mit
janrain/jruby-rack
src/main/ruby/jruby/rack/servlet_log.rb
575
#-- # Copyright (c) 2010-2012 Engine Yard, Inc. # Copyright (c) 2007-2009 Sun Microsystems, Inc. # This source code is available under the MIT license. # See the file LICENSE.txt for details. #++ module JRuby module Rack class ServletLog def initialize(context = JRuby::Rack.context) raise ArgumentE...
mit
marko-js/marko
packages/translator-default/src/tag/native-tag[vdom]/index.js
5313
import { types as t } from "@marko/compiler"; import write from "../../util/vdom-out-write"; import * as FLAGS from "../../util/runtime-flags"; import { getAttrs, evaluateAttr } from "../util"; import { getTagDef, normalizeTemplateString, importDefault } from "@marko/babel-utils"; import withPreviousLocation from...
mit
mailjet/mailjet-apiv3-java
src/test/java/com/mailjet/client/MailjetClientExceptionTest.java
4339
package com.mailjet.client; import com.mailjet.client.errors.*; import com.mailjet.client.resource.Email; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; import org.json.JSONArray; import org.json.JSONObject; import org.junit.*; import java.io.IOException; /** * @author Nikola...
mit
OpenFibers/TOT2
app/controllers/application_controller.rb
382
class ApplicationController < ActionController::Base # redirect of devise login def after_sign_in_path_for(resource) "/admin" end # redirect of devise logout def after_sign_out_path_for(resource_or_scope) #request.referrer #Keeping user on the same page after signing out "/admin" end def not_found r...
mit
jdbence/capstone-project
src/components/layout/RoomLayout/index.js
67
import RoomLayout from './RoomLayout'; export default RoomLayout;
mit
levfurtado/scoops
vendor/willdurand/js-translation-bundle/Bazinga/Bundle/JsTranslationBundle/Tests/Dumper/TranslationDumperTest.php
3145
<?php namespace Bazinga\JsTranslationBundle\Tests\Finder; use Bazinga\Bundle\JsTranslationBundle\Tests\WebTestCase; /** * @author Adrien Russo <adrien.russo.qc@gmail.com> */ class TranslationDumperTest extends WebTestCase { private $target; private $filesystem; private $dumper; public function s...
mit
nusskylab/nusskylab
app/assets/javascripts/public_projects.js
1367
'use strict'; function createModalBox(team_id) { var modal = document.getElementById("modal_".concat(team_id)); var button = document.getElementById("button_".concat(team_id)); var span = modal.getElementsByClassName("close")[0]; modal.style.display = "block"; // Close using the window close. span.ad...
mit
EntityFX/GdcGame
Sources/EntityFX.Gdcame.DataAccess.Repository/Queries/Counetrs/GetAllCountersQuery.cs
810
using System.Collections.Generic; using System.Linq; using EntityFX.Gdcame.DataAccess.Model.Ef; using EntityFX.Gdcame.DataAccess.Repository.Contract.Criterions.Counters; using EntityFX.Gdcame.Infrastructure.Repository.EF; using EntityFX.Gdcame.Infrastructure.Repository.Query; namespace EntityFX.Gdcame.DataAcce...
mit
Hubert51/ROOMr
server_part/app/forms.py
270
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField from wtforms.validators import DataRequired class LoginForm(FlaskForm): openid = StringField('openid', validators=[DataRequired()]) remember_me = BooleanField('remember_me', default=False)
mit
MingXingTeam/webpack-react-starter
src/scripts/modules/change.js
100
module.exports.change = function change() { document.getElementById('test').innerHTML = 'bb'; };
mit
ignaciocases/hermeneumatics
node_modules/scala-node/main/target/streams/compile/externalDependencyClasspath/$global/package-js/extracted-jars/scalajs-library_2.10-0.4.0.jar--29fb2f8b/scala/collection/convert/Wrappers$JPropertiesWrapper$$anon$3.js
3995
/** @constructor */ ScalaJS.c.scala_collection_convert_Wrappers$JPropertiesWrapper$$anon$3 = (function() { ScalaJS.c.scala_collection_AbstractIterator.call(this); this.ui$2 = null }); ScalaJS.c.scala_collection_convert_Wrappers$JPropertiesWrapper$$anon$3.prototype = new ScalaJS.inheritable.scala_collection_Abstract...
mit
CARFAX/wharf
example/test/paths/queryString.test.js
633
describe('paths', function() { describe('queryString', function() { it('should work with one value', function () { var params = { foo: 'bar' }; var string = foo.paths.queryString(params); expect(string).toBe('?foo=bar'); }); ...
mit
daleksic/poster
www/js/services/database/image.js
2056
angular.module('starter.service.image', ['starter.database']) .factory('ImageService', ['$q', 'DatabaseService', function ($q, DatabaseService) { return { addImage: function(title, location, uri, width, height, contentType, albumId){ DatabaseService.insertImage(title, location, uri, width, height, conten...
mit
joeferraro/MavensMate-VisualStudioCode
typings/main.d.ts
179
/// <reference path="main/definitions/bluebird/index.d.ts" /> /// <reference path="main/definitions/nock/index.d.ts" /> /// <reference path="main/definitions/sinon/index.d.ts" />
mit
ankhuve/bonus
library/enqueue-scripts.php
2683
<?php /** * Enqueue all styles and scripts * * Learn more about enqueue_script: {@link https://codex.wordpress.org/Function_Reference/wp_enqueue_script} * Learn more about enqueue_style: {@link https://codex.wordpress.org/Function_Reference/wp_enqueue_style } * * @package WordPress * @subpackage FoundationPress ...
mit
easytp/easytp
App/Common/Plugin/Imagine/Filter/Basic/Resize.class.php
1066
<?php /* * This file is part of the Imagine package. * * (c) Bulat Shakirzyanov <mallluhuct@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Common\Plugin\Imagine\Filter\Basic; use Common\Plugin\Imagine\Filte...
mit
barsgroup/barsup-core
src/pynch/service.py
11075
# coding: utf-8 """Конструкции для реализация уровня сервисов.""" import operator from datetime import date from sqlalchemy.exc import IntegrityError from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.sql import expression, operators from pynch.adapter import DefaultAdapter import pynch.exceptions as exc ...
mit
zurcoin/zurcoin
src/qt/addresstablemodel.cpp
14358
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "addresstablemodel.h" #include "guiutil.h" #include "walletmodel.h" #include "base58.h" #include "wallet/wallet.h"...
mit
eloquent/phony
test/src/Test/TestInterfaceWithSelfReturnType.php
330
<?php declare(strict_types=1); namespace Eloquent\Phony\Test; interface TestInterfaceWithSelfReturnType { public static function staticMethod(): self; public static function __callStatic($name, array $arguments): self; public function method(): self; public function __call($name, array $arguments)...
mit
pootzko/InfluxData.Net
InfluxData.Net.InfluxDb/RequestClients/InfluxDbRequestClient_v_0_9_6.cs
334
using InfluxData.Net.Common.Infrastructure; namespace InfluxData.Net.InfluxDb.RequestClients { public class InfluxDbRequestClient_v_0_9_6 : InfluxDbRequestClient_v_1_0_0 { public InfluxDbRequestClient_v_0_9_6(IInfluxDbClientConfiguration configuration) : base(configuration) { ...
mit
webtown-php/KunstmaanExtensionBundle
src/HttpCache/Manager.php
1347
<?php /** * Created by IntelliJ IDEA. * User: chris * Date: 2016.04.20. * Time: 9:35 */ namespace Webtown\KunstmaanExtensionBundle\HttpCache; use FOS\HttpCacheBundle\CacheManager; use Symfony\Component\Filesystem\Filesystem; class Manager { /** * @var string */ protected $cacheDir; /** ...
mit
LeandroSJN/CrashBall
Source/src/Engine/GameObject.cpp
107
#include "GameObject.h" GameObject::GameObject() { //ctor } GameObject::~GameObject() { //dtor }
mit
knomedia/js-store
lib/create_collection_store.js
2707
var createStore = require('./create_store'); var findIndex = require('./utils/find_index'); var mergeObject = require('./utils/merge_object'); var findById = require('./utils/find_by_id'); module.exports = function(collectionKey, syncLocally) { var buildInitialState = function() { var initialState = {}; ini...
mit
remp2020/remp
Beam/database/seeders/ArticleSeeder.php
1407
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class ArticleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run(\Faker\Generator $faker) { /** @var \App\Property $property */ $properties = \App\Property::all(...
mit
sebpiq/pychedelic
pychedelic/core/errors.py
355
class PcmDecodeError(Exception): """ Raised when attempt to decode pcm string has failed """ pass class WavFormatError(Exception): """ Raised when attempting to read a wave file failed. """ pass class WavSizeLimitError(Exception): """ Raised when the size limit for wav files ...
mit
bashiransari/Restract
src/Restract/Core/Proxy/IProxyInterceptor.cs
244
namespace Restract.Core.Proxy { using System.Reflection; public interface IProxyInterceptor { object OnMethodCall(MethodInfo mi, object[] args); RestClientConfiguration RestClientConfiguration { get; set; } } }
mit
e7d/neap
api/module/Application/test/ApplicationTest/Hydrator/Panel/PanelHydratorTest.php
1008
<?php /** * Neap (http://neap.io/) * * @link http://github.com/e7d/neap for the canonical source repository * @copyright Copyright (c) 2016 Michaël "e7d" Ferrand (http://github.com/e7d) * @license https://github.com/e7d/neap/blob/master/LICENSE.txt The MIT License */ namespace ApplicationTest\Hydrator\Pan...
mit
blambeau/wlang
spec/unit/dialect/test_evaluate.rb
1363
require 'spec_helper' module WLang describe Dialect, 'evaluate' do let(:struct){ Struct.new(:who) } let(:dialect){ Dialect.new } def with_scope(*args, &bl) dialect.with_scope(*args, &bl) end def evaluate(*args, &bl) dialect.evaluate(*args, &bl) end it 'works with a hash' d...
mit
wjh/zif
vendor/github.com/wjh/zest/vendor/github.com/bitly/go-nsq/conn.go
17778
package nsq import ( "bufio" "bytes" "compress/flate" "crypto/tls" "encoding/json" "errors" "fmt" "io" "net" "strings" "sync" "sync/atomic" "time" "github.com/golang/snappy" ) // IdentifyResponse represents the metadata // returned from an IDENTIFY command to nsqd type IdentifyResponse struct { MaxRdy...
mit
arian/pngjs
test/canvas.js
1177
"use strict"; var PNGReader = require('../PNGReader'); var Canvas = require('canvas'); var fs = require("fs"); var out = fs.createWriteStream(__dirname + '/test.png'); var file = __dirname + "/../html/ubuntu-screenshot.png"; fs.readFile(file, function(err, bytes){ if (err) throw err; var reader = new PNGReader(by...
mit
asyncee/home-bookkeeping-sample
src/expenses/queries/invalidators.py
295
from expenses.queries.cache import KeyedCache class Invalidator: def __init__(self, query): self.query = query def invalidate(self, **kwargs): params = self.query.Params.from_dict(kwargs) self.cache = KeyedCache.create(str(params)) self.cache.delete()
mit
pablo1n7/ProyectoBacheo
web/application/views/mapa.php
2392
<div id="informacionBache" class="modal fade informacionBache" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header tituloFormularioBache"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</...
mit
zhunicole/rekindle_temp
node_modules/lunr/oliver.js
1069
var fs = require('fs') var store = {} var hash = function (str) { return str.split("") .reduce(function (memo, char) { var memo = ((memo << 5) - memo) - char.charCodeAt(0); return memo & memo }, 0) } fs.readFile('/usr/share/dict/words', 'ascii', function (err, words) { words .split("\n") ...
mit
stingerlabs/ember-graph
src/util/util.js
4095
import Ember from 'ember'; import EmberGraphSet from 'ember-graph/util/set'; import { computed } from 'ember-graph/util/computed'; /** * Denotes that method must be implemented in a subclass. * If it's not overridden, calling it will throw an error. * * ```js * var Shape = Ember.Object.extend({ * getNumberO...
mit
lynxtdc/hwh
app/LTDC/Common/Site_Data.php
237
<?php /** * Created by LYNX Technology Development * User: LYNXTDC * Date: 1/14/2015 * Time: 8:41 PM * http://lynxtdc.com */ namespace App\LTDC\Common; class Site_Data { //put functions for returning static site data here }
mit
reidiculous/actionwebservice-client
lib/action_web_service/wsdl/soap/data.rb
1517
# WSDL4R - WSDL SOAP binding data definitions. # Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. # This program is copyrighted free software by NAKAMURA, Hiroshi. You can # redistribute it and/or modify it under the same terms of Ruby's license; # either the dual license version in 2003, or any late...
mit
zoomulus/weaver
rest/src/test/java/com/zoomulus/weaver/rest/RestServerRequestPayloadHandlerTest.java
27963
package com.zoomulus.weaver.rest; import java.io.IOException; import org.apache.http.client.ClientProtocolException; import org.junit.Test; import com.zoomulus.weaver.core.content.ContentType; import com.zoomulus.weaver.rest.testutils.PostRequestResult; import com.zoomulus.weaver.rest.testutils.PutRequestResult; imp...
mit
GerritErpenstein/ionic2-custom-icons-example
src/pages/platform/platform.page.module.ts
420
import {NgModule} from '@angular/core'; import {IonicPageModule} from 'ionic-angular'; import {PlatformPage} from './platform.page'; import {CustomIconsModule} from 'ionic2-custom-icons'; @NgModule({ declarations: [ PlatformPage ], imports: [ IonicPageModule.forChild(PlatformPage), CustomIco...
mit
GIlyass/TouristScheduler
AndroidApp/TEScheduler/TEScheduler/app/src/test/java/com/ericsson/project/tescheduler/ExampleUnitTest.java
325
package com.ericsson.project.tescheduler; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); ...
mit
almamedia/moment-timezone
tests/zones/pacific/ponape.js
310
"use strict"; var helpers = require("../../helpers/helpers"); exports["Pacific/Ponape"] = { "guess:by:offset" : helpers.makeTestGuess("Pacific/Ponape", { offset: true, expect: "Pacific/Norfolk" }), "guess:by:abbr" : helpers.makeTestGuess("Pacific/Ponape", { abbr: true, expect: "Pacific/Norfolk" }), };
mit
agconti/scala-school
04-functions-as-values/slides/slide045.scala
126
// what if we don't want our object to inherit Function1 ? object Foo { def isGood(x: Int): Boolean = { x % 2 == 0 } }
mit
kgroener/Stayin-Alive
src/StayinAlive/World/Specimen/Attributes/MotorInternalAttribute.cs
1616
using StayinAlive.Interface.Specimen.Attributes; using StayinAlive.World.Specimen.Attributes.Actuators; using StayinAlive.World.Specimen.Attributes.Sensors; using System; using System.Collections.Generic; using System.Linq; namespace StayinAlive.World.Specimen.Attributes { internal class MotorInternalAttribute : ...
mit
Houston-Inc/ppr.js
tests/helper/page.js
351
import PageBasePrototype from 'ppr.page.baseprototype'; import EventBusPrototype from 'ppr.library.eventbusprototype'; export const getPageInstance = pageNode => ( new PageBasePrototype(pageNode, { eventBus: new EventBusPrototype() }) ); export const buildPageInstance = (pageInstance) => { pageInstance.build(); ...
mit
Statwolf/node-statwolf
packages/node-statwolf-mocks/mocks/events.js
476
var events = module.exports = function() { this.events = {}; }; events.prototype.on = function(evt, callback) { this.events[evt] = callback; }; events.prototype.once = function(evt, callback) { var self = this; this.on(evt, function() { delete this.events[evt]; callback.apply(self, arguments); });...
mit
lc8882972/HuiTong
webapp/Models/LoginModel.cs
254
using System; namespace webapp.Models { public class LoginModel { public string Name { get; set; } public string Password { get; set; } public bool IsRemember { get; set; } public string Code { get; set; } } }
mit
kaola-fed/nek-ui
src/js/components/navigation/KLPager/index.js
4225
/** * @file KLPager 分页 * @author sensen(rainforest92@126.com) */ const Component = require('../../../ui-base/component'); const template = require('./index.html'); const _ = require('../../../ui-base/_'); /** * @class KLPager * @extend Component * @param {object} [options.data] = 绑...
mit
markfinger/fatcontroller
tests/js/unit-tests.js
2753
(function() { QUnit.test('Triggers bindings', 3, function() { var someFunction = function() { ok(true, 'called bound function'); }; fc.on('test:trigger', someFunction); fc.trigger('test:trigger'); fc.on('test:trigger', someFunction); fc.trigger('test:trigger'); }); QUnit.test('...
mit
fourlabsldn/QBJSParser
tests/Util/Doctrine/Mock/DoctrineParser/MockBadEntityDoctrineParser.php
526
<?php namespace FL\QBJSParser\Tests\Util\Doctrine\Mock\DoctrineParser; use FL\QBJSParser\Parser\Doctrine\DoctrineParser; use FL\QBJSParser\Tests\Util\Doctrine\Mock\Entity\MockEntity; class MockBadEntityDoctrineParser extends DoctrineParser { public function __construct() { parent::__construct(MockEnt...
mit
Team-Cerberus/Invoice
public/models/Address.js
334
class Address { constructor(streetAddress, city, zIP) { this._streetAddress = streetAddress; this._city = city; this._zIP = zIP; } get streetAddress() { return this._streetAddress; } get city() { return this._city; } get zIP() { return this...
mit
devanhurst/trivtrainer
db/migrate/20160110194840_set_column_default_queue.rb
332
class SetColumnDefaultQueue < ActiveRecord::Migration def change change_column_default :queue1_clues, :queue, 1 change_column_default :queue2_clues, :queue, 2 change_column_default :queue3_clues, :queue, 3 change_column_default :queue4_clues, :queue, 4 change_column_default :queue5_clues, :queue, ...
mit
nhnent/tui.editor
plugins/table-merged-cell/webpack.config.js
3330
/* eslint-disable @typescript-eslint/no-var-requires */ const path = require('path'); const webpack = require('webpack'); const { name, version, author, license } = require('./package.json'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plug...
mit
plotly/python-api
packages/python/plotly/plotly/validators/contourcarpet/_legendgroup.py
474
import _plotly_utils.basevalidators class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="legendgroup", parent_name="contourcarpet", **kwargs ): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, par...
mit
vurdalakov/rawcmp
src/rawcmp/Properties/AssemblyInfo.cs
1519
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("Ra...
mit
krytarowski/corert
src/ILCompiler.Compiler/src/Compiler/InteropStubManager.cs
11272
// 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. using System; using System.Collections.Generic; using Internal.IL.Stubs; using Internal.TypeSystem; using Internal...
mit
rgnrok/Symfony
app/AppKernel.php
1409
<?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
dmaldonadol/adm-ceppi
ws/ceppi-core/src/main/java/cl/ml/ceppi/core/model/persona/Persona.java
3657
/** * */ package cl.ml.ceppi.core.model.persona; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.Id; import...
mit
Grimace1975/gpustructs
src/Structs.Data.Pager/Core/KeyInfo.cs
575
namespace Contoso.Core { public class KeyInfo { public sqlite3b db; // The database connection public byte enc; // Text encoding - one of the SQLITE_UTF* values public ushort nField; // Number of entries in aColl[] public byte[] aSortOrder; // ...
mit
Sylius/Resource
Storage/StorageInterface.php
679
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Component\Resource\Storage; interface StorageInterface { ...
mit
arnosthavelka/spring-advanced-training
sat-core/src/test/java/com/github/aha/sat/core/wiring/beverage/BeverageSingleWiringTest.java
1217
package com.github.aha.sat.core.wiring.beverage; import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.cont...
mit
The127/JIoC
src/de/jioc3/IocContainer.java
8768
package de.jioc3; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Parameter; import java.util.HashMap; import java.util.Map; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.function.Supplier; import de.jreflect4.ClassReflect...
mit
robinjfisher/Touchstone
lib/generators/touchstone/templates/touchstone.rb
1019
# encoding: utf-8 Touchstone.config do |c| # By default, Touchstone assumes that you have a User model # in your application and will associate campaign signups # with a user_id in the campaign_signups table. You can # customise the association by using this configuration # option. c.association_name...
mit
JaredShay/aus_post_api
spec/aus_post_api/pac/international_parcel_weight_spec.rb
185
require 'spec_helper' describe AusPostAPI::PAC::InternationalParcelWeight do let(:required_attributes) { {} } let(:optional_attributes) { {} } it_behaves_like 'an endpoint' end
mit
mandarin6b0/rpush
lib/rpush/client/active_model.rb
1357
require 'active_model' require 'rpush/client/active_model/notification' require 'rpush/client/active_model/payload_data_size_validator' require 'rpush/client/active_model/registration_ids_count_validator' require 'rpush/client/active_model/apns/binary_notification_validator' require 'rpush/client/active_model/apns/de...
mit
nohros/must
src/base/common/data/readers/DataField.cs
2034
using System; using System.Data; using Nohros.Resources; namespace Nohros.Data { /// <summary> /// Provides a skeletal implementation of the <see cref="IDataField{T}"/> /// interface to minimize the effort required to implement that interface. /// </summary> /// <typeparam name="T"> /// The typ...
mit
crobert/gesti-truc
application/controllers/collections.php
6549
<?php class Collections extends MY_Auth { function Collections() { parent::__construct(); } function index() { $this->clearBreadcrumbs(); $this->load->model('collection'); $collections = $this->collection->getAll(); $data['collections'] = $collections; ...
mit
zaqwes8811/micro-apps
buffer/win-admin-tools/vb-webm-wmi/cs.net/NetSettingsSet/NetSettingsSet2/Form1.cs
18928
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Management; using System.Windows.Forms; using System.Diagnostics; using System.Threading; using System.Xml; using System.Xml.XPath; using System.IO; /** * Логика работы: * 1. Во время и...
mit
macbury/eter
db/migrate/20141204112542_add_default_values_to_users.rb
198
class AddDefaultValuesToUsers < ActiveRecord::Migration def change change_column :users, :first_name, :string, default: "" change_column :users, :last_name, :string, default: "" end end
mit
qcubed/application
src/Jqui/Event/AutocompleteResponse.php
1319
<?php /** * * Part of the QCubed PHP framework. * * @license MIT * */ namespace QCubed\Jqui\Event; /** * Class AutocompleteResponse * * The abstract AutocompleteResponse class defined here is * code-generated. The code to generate this file is * in the /tools/jquery_ui_gen/jq_control_gen.php file * and you can ...
mit
manjarb/ReduxSimpleStarter
src/components/app.js
280
import React, { Component } from 'react'; import CommentBox from './comment_box' import CommentList from './comment_list' export default class App extends Component { render() { return ( <div> <CommentBox /> <CommentList /> </div> ); } }
mit
ktingvoar/PixiGlitch
src/CutSliderFilter.js
1422
/** * @author Matt Smith http://gun.net.au @ktingvoar */ var core = require('../../node_modules/pixi.js/src/core'); // @see https://github.com/substack/brfs/issues/25 var fs = require('fs'); function CutSliderFilter() { PIXI.AbstractFilter.call(this, null, fs.readFileSync(__dirname + '/cutsli...
mit
CatLabInteractive/charon
example/Petstore/Controllers/AbstractResourceController.php
2022
<?php namespace App\Petstore\Controllers; use CatLab\Charon\Collections\ResourceCollection; use CatLab\Charon\InputParsers\JsonBodyInputParser; use CatLab\Charon\InputParsers\PostInputParser; use CatLab\Charon\Interfaces\RESTResource; use CatLab\Charon\Models\Context; /** * Class AbstractResourceController * @pack...
mit
crmaxx/netscanner-ui
webpack.config.js
3839
/*eslint no-var:0 */ var fs = require('fs'); var path = require('path'); var webpack = require('webpack'); var rimraf = require('rimraf'); var autoprefixer = require('autoprefixer-core'); var mqpacker = require('css-mqpacker'); var csswring = require('csswring'); var cssvars = require('postcss-custom-properties'); var...
mit
amudalab/concept-graphs
document retrieval/try.py
1065
from os import listdir ##fn=open("Corpus/intro/ds11.txt") ##raw=fn.read() ##raw2=raw.replace('subtree','sub tree') ##fn.close() ##fn=open("Corpus/intro/ds11.txt","w") ##fn.write(raw2) ##fn.close() ##fp = open('db/introhier.gdf') ##text=fp.read() ##pl=text.split('\n') ###print(p1) ##flag=0 ##V=[] ##VN={} ...
mit
skela/linkedin-java
Main/src/org/linkedin/schema/MembershipStateCode.java
2517
/* * Copyright 2010-2011 Nabeel Mukhtar * * 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 applica...
mit
orocrm/platform
src/Oro/Bundle/ApiBundle/Tests/Unit/Processor/Delete/InitializeConfigExtrasTest.php
1637
<?php namespace Oro\Bundle\ApiBundle\Tests\Unit\Processor\Delete; use Oro\Bundle\ApiBundle\Config\Extra\EntityDefinitionConfigExtra; use Oro\Bundle\ApiBundle\Config\Extra\FilterIdentifierFieldsConfigExtra; use Oro\Bundle\ApiBundle\Processor\Delete\InitializeConfigExtras; use Oro\Bundle\ApiBundle\Tests\Unit\Processor\...
mit
gaearon/redux-devtools
extension/examples/todomvc/components/Footer.js
1837
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE, } from '../constants/TodoFilters'; const FILTER_TITLES = { [SHOW_ALL]: 'All', [SHOW_ACTIVE]: 'Active', [SHOW_COMPLETED]: 'Completed', }; class ...
mit
Talkdesk/desk
spec/desk/client/user_spec.rb
1711
require 'helper' describe Desk::Client do Desk::Configuration::VALID_FORMATS.each do |format| context ".new(:format => '#{format}')" do before do @client = Desk::Client.new(:subdomain => "example", :format => format, :consumer_key => 'CK', :consumer_secret => 'CS', :oauth_token => 'OT', :oauth_toke...
mit
exu/symfony2-jobeet
src/Ens/JobeetBundle/Entity/Category.php
2837
<?php namespace Ens\JobeetBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Ens\JobeetBundle\Utils\Jobeet; /** * Category * * @ORM\Table() * @ORM\Entity(repositoryClass="Ens\JobeetBundle\Entity\CategoryRepository") * @ORM\HasLifecycleCallbacks */ class Category { /** * @var integer * * @OR...
mit
bigdig/vnpy
vnpy/api/oes/generator/generate_api_functions_td.py
16429
"""""" import importlib class ApiGenerator: """API生成器""""" def __init__(self, filename: str, prefix: str, name: str, class_name: str): """Constructor""" self.filename = filename self.prefix = prefix self.name = name self.class_name = class_name self.callbacks ...
mit
tgallice/wit-php-example
src/Action/QuickAction.php
2516
<?php namespace Tgallice\WitDemo\Action; use Symfony\Component\Console\Output\OutputInterface; use Tgallice\Wit\ActionMapping; use Tgallice\Wit\Helper; use Tgallice\Wit\Model\Context; use Tgallice\Wit\Model\Step\Action; use Tgallice\Wit\Model\Step\Message; use Tgallice\Wit\Model\Step\Merge; use Tgallice\Wit\Model\Ste...
mit
willopez/domainsjs
shared/components/reports-view/config.js
398
export default { chart: { type: 'pie' }, title: { text: 'Top Level Domain types' }, tooltip: { pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, for...
mit
foomango/antex
chapter3_example_irssibot/irssibot/src/irssibot/modules/TopicTools.java
20489
/* * $Id: TopicTools.java,v 1.1.1.1 2001/03/26 10:57:42 matti Exp $ * * IrssiBot - An advanced IRC automation ("bot") * Copyright (C) 2000 Matti Dahlbom * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the...
mit
ayeletshpigelman/azure-sdk-for-net
sdk/servicebus/Azure.Messaging.ServiceBus/src/Processor/ServiceBusProcessorOptions.cs
6896
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.ComponentModel; using Azure.Core; namespace Azure.Messaging.ServiceBus { /// <summary> /// The set of options that can be specified when creating a /// <see cref="ServiceBusProcessor...
mit
nkt/atom-autocomplete-modules
lib/main.js
470
'use babel'; class AutocompleteModulesPlugin { constructor() { this.config = require('./package-configs').registrar; this.completionProvider = null; } activate() { this.completionProvider = new (require('./completion-provider')); } deactivate() { delete this.completionProvider; this.com...
mit
pretzelfisch/Silent-Silver
SilentSilver/default.aspx.cs
434
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace SilentSilver { public partial class _default : System.Web.UI.Page { public int currentCount=-1; protected void Page_Load(object sende...
mit
czaks/bitcoin-jruby
examples/forwarding_service.rb
349
require "bitcoin-jruby" # This is a loose adaptation of: # https://code.google.com/p/bitcoinj/source/browse/examples/src/main/java/com/google/bitcoin/examples/ForwardingService.java if ARGV.count < 1 puts "Usage: address-to-send-back-to" end params = BJR::Params::MainNetParams.get forwarding_address = BJR::Core::...
mit
axtheset/rest-client
spec/app_spec.rb
661
require 'spec_helper' describe AccelaRestClient::App do subject { AccelaRestClient::App.new(app_id,app_secret,access_token,environment,agency) } let(:app_id) { 'app_id' } let(:app_secret) { 'app_secret' } let(:access_token) { 'access_token' } let(:environment) { 'environment' } let(:agency) { 'agency' } ...
mit
whitescape/react-admin-components
src/ui/format/bool.js
73
export default function formatBool(x) { return x ? 'да' : 'нет' }
mit
apo-j/Projects_Working
AC/AnnuaireCertifies/AC.BackOffice/AnnuaireCertifies.BackOffice.Web.ViewModels/ModelBuilders/Administration/Structures/IStructureModelBuilder.cs
487
using AnnuaireCertifies.BackOffice.Web.ViewModels.Pages.Administration.Structures.Details; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AnnuaireCertifies.BackOffice.Web.ViewModels.ModelBuilders.Administration.Structures { pu...
mit
williamliew/brokerApp
src/components/button.js
440
import React, { Component } from 'react'; import BidActions from '../actions/bidactions'; export default React.createClass ({ handleClick: function() { BidActions.addToArray(this.props.name); }, render: function() { return ( <button className="button-primary" value={this.props.value} ...
mit
zcoding/hello-go-lang
vfs/command/cp.go
366
package command import ( // "fmt" // "errors" ) /** * change working directory * @param {map[string]string} options * command options * @param {[]string} rest * rest arguments * @param {string} cwd * current working directory * @return {error} * */ func CommandCp(options map[string]string, rest...
mit
pritchardtw/ReactPersonalSite
src/components/Web/data_viewer.js
798
import React, { Component } from 'react'; import Project from '../project'; export default class DataViewer extends Component { render() { const images = [ '../../static/images/web/dataviewer1.png', '../../static/images/web/dataviewer2.png', '../../static/images/web/dataviewer3.png' ]; ...
mit