repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
vgrem/Office365-REST-Python-Client
office365/sharepoint/attachments/attachmentfile.py
2245
from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.paths.service_operation import ServiceOperationPath from office365.sharepoint.internal.queries.download_file import create_download_file_query from office365.sharepoint.internal.queries.upload_file import create_upload_file_query from...
mit
ccummings/can-migrate-codemods
test/fixtures/version-3/can-map-backup/require-output.js
28
require('can-map-backup');
mit
brucevsked/vskeddemolist
vskeddemos/projects/jogampdemo/src/com/vsked/lesson1/HelloWorld.java
1583
package com.vsked.lesson1; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.Toolkit; import javax.media.opengl.GLCapabilities; import javax.media.opengl.GLProfile; import javax.media.opengl.awt.GLCanvas; import jav...
mit
UKHomeOffice/passports-form-wizard
example/routes/branching/steps.js
652
module.exports = { '/': { entryPoint: true, resetJourney: true, next: 'choose-direction' }, '/choose-direction': { fields: ['direction'], next: [ { field: 'direction', value: 'right', next: 'right-branch' }, { field: 'direction', value: 'left',...
mit
lust4life/WebApiProxy
WebApiProxy.Api.Sample/Areas/HelpPage/HelpPageAreaRegistration.cs
680
using System.Web.Http; using System.Web.Mvc; namespace WebApiProxy.Api.Sample.Areas.HelpPage { public class HelpPageAreaRegistration : AreaRegistration { public override string AreaName { get { return "HelpPage"; } } public ov...
mit
SolidEdgeCommunity/Samples
Assembly/AddOccurrenceByFilename/cs/AddOccurrenceByFilename/Properties/AssemblyInfo.cs
1422
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("Ad...
mit
larister/SimBanker
app/scripts/helpers/SpawnHelper.js
988
define([ 'helpers/MortgageHelper', ], function( MortgageHelper ) { 'use strict'; return Backbone.Model.extend({ initialize: function(){ this.brokers = 1; this.houseCount = 1000; this.houseTypes = _(MortgageHelper.mortgageTypes).pluck('type'); wi...
mit
mriveralee/tracheal-aire2
tests/dicom/dicomParser.test.js
1093
/** * Tests for the 'dicom/dicomParser.js' file. */ // Do not warn if these variables were not defined before. /* global module, asyncTest, equal, start */ module("dicomParser"); asyncTest("Test DICOM parsing.", 2, function() { // Local file: forbidden... // parse the DICOM file /*var reader = new FileRe...
mit
pluskal/AppIdent
src/AppIdent.Tests/Features/Bases/SYNPacketsBaseTests.cs
2947
//Copyright (c) 2017 Jan Pluskal // //Permission is hereby granted, free of charge, to any person //obtaining a copy of this software and associated documentation //files (the "Software"), to deal in the Software without //restriction, including without limitation the rights to use, //copy, modify, merge, publish, dis...
mit
sherxon/AlgoDS
src/problems/easy/SecondMinimumNodeInBinaryTree.java
827
package problems.easy; import problems.utils.TreeNode; import java.util.*; /** * Why Did you create this class? what does it do? */ public class SecondMinimumNodeInBinaryTree { public int findSecondMinimumValue(TreeNode root) { if(root==null || root.left==null)return -1; Queue<TreeNode> q= new ...
mit
kunl/ng2-blog
server/app.ts
1451
import * as express from 'express'; import * as path from 'path'; import * as cookieParser from 'cookie-parser'; import { json, urlencoded } from 'body-parser'; import * as webpack from 'webpack'; // 路径为 dist/server/app import pool from './db'; import router from './routes'; let __root_path = 'server'; let app = ...
mit
FenrirUnbound/apotheosis
test/functional/login.test.js
1800
var atob = require('atob'); var cookie = require('cookie'); var expect = require('chai').expect; var mockery = require('mockery'); var path = require('path'); var q = require('q'); describe('Login', function describeLogin() { var server; before(function onceBefore() { var env; mockery.enable({ useCl...
mit
juniorgasparotto/SpentBook
src_old/SpentBook.Web/Global.asax.cs
618
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace SpentBook.Web { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
mit
orznet/sigamed1
src/Admin/UnadBundle/Form/DocenteType.php
1648
<?php namespace Admin\UnadBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class DocenteType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $option...
mit
riselabs-ufba/alumni-projects
Software-Reuse/2016.2/S.H.E-spl/USBListener/src/usbListener/USBListener.java
5079
package usbListener; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import gnu.io.*; import com.she.manager.DriverMqtt; /*** * * @author Ramon; Edilton; * @category Drive USB. */ public class USBListener { private static String hostMQTT = null; private ...
mit
hl198181/mars
util/lib/merge.js
1678
/*! * merge-descriptors * Copyright(c) 2014 Jonathan Ong * MIT Licensed */ /** * Module exports. * @public */ module.exports = merge /** * Module variables. * @private */ var hasOwnProperty = Object.prototype.hasOwnProperty /** * Merge the property descriptors of `src` into `dest` * * @param {object} ...
mit
robotex82/twitter-bootstrap-components-rails
app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb
5176
module Twitter module Bootstrap module Components module Rails module V4 module ComponentsHelper def bootstrap_alert(options, &block) Twitter::Bootstrap::Components::V4::Alert.new(self, options, &block).perform end def bootstrap_badge(opti...
mit
manuel84/ruby_cbr
lib/ruby_cbr/similarity/mapping_similarity.rb
566
module CBR class Similarity class MappingSimilarity < Similarity def initialize(opts={}) opts[:mapping] = {} opts[:mapping].default = BigDecimal.new(0) opts[:borderpoints].each do |k, v| if k.eql?('{{default}}') opts[:mapping].default = BigDecimal.new(v) ...
mit
kapmahc/axe
plugins/nut/p-admin-cards.go
2994
package nut import ( "time" "github.com/gin-gonic/gin" "github.com/go-pg/pg" "github.com/kapmahc/axe/web" ) func (p *AdminPlugin) checkCardToken(user *User, tid uint) bool { return p.Dao.Is(user.ID, RoleAdmin) } func (p *AdminPlugin) editCardH(tid uint, token string) (string, string, error) { var it Card if ...
mit
jasonlam604/Stringizer
tests/ConcatTest.php
817
<?php use Stringizer\Stringizer; /** * ConcatTest Unit Tests */ class ConcatTest extends PHPUnit_Framework_TestCase { public function testConcat() { $s = new Stringizer("fizz"); $this->assertEquals("fizz buzz", $s->concat(" buzz")); } public function testPreConcat() { $s...
mit
mocchit/sanou
src/primitive/lexical/LexicalUnit.java
227
package primitive.lexical; public class LexicalUnit { private LexicalType type; public LexicalUnit(LexicalType type){ this.type = type; } public LexicalType getType(){ return this.type; } }
mit
Gladg/Triburg
public/modules/accessories-purchase-orders/controllers/accessories-purchase-orders.client.controller.js
2529
'use strict'; // Accessories purchase orders controller angular.module('accessories-purchase-orders').controller('AccessoriesPurchaseOrdersController', ['$scope', '$stateParams', '$location', 'Authentication', 'AccessoriesPurchaseOrders', function($scope, $stateParams, $location, Authentication, AccessoriesPurchaseOr...
mit
Daanvdk/is_valid
is_valid/is_dict.py
137
from .is_instance import is_instance #: A predicate that checks if the data is a dictionary. is_dict = is_instance(dict, rep='a dict')
mit
Lazose/104asisjava
javatest/src/Javatest33.java
717
import java.util.Scanner; import java.util.Random; public class Javatest33 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scn = new Scanner(System.in); Random rnd = new Random(); int[]data= new int[10]; int i = 0 ; boolean flag = false ; while(i<10){ data[i]=...
mit
alexliyu/CDMSYSTEM
pyroute2/ipdb/__init__.py
32471
# -*- coding: utf-8 -*- ''' IPDB module =========== Basically, IPDB is a transactional database, containing records, representing network stack objects. Any change in the database is not reflected immediately in OS (unless you ask for that explicitly), but waits until `commit()` is called. One failed operation during ...
mit
natac13/CareerSmartDemo
app/store/configureStore.dev.js
1114
import { createStore, applyMiddleware } from 'redux'; /*** Middlewares ***/ import logger from 'redux-logger'; /*** Reducer ***/ import rootReducer from '../reducers/'; import { createHistory } from 'history'; import { syncHistory, routeReducer } from 'redux-simple-router'; export const history = createHistory(); ...
mit
rtqichen/torchdiffeq
torchdiffeq/_impl/scipy_wrapper.py
1601
import abc import torch from scipy.integrate import solve_ivp from .misc import _handle_unused_kwargs class ScipyWrapperODESolver(metaclass=abc.ABCMeta): def __init__(self, func, y0, rtol, atol, solver="LSODA", **unused_kwargs): unused_kwargs.pop('norm', None) unused_kwargs.pop('grid_points', Non...
mit
ereddate/jquery-mobile
demos/table-column-toggle-example/index.php
6389
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Table Column toggle demo: Phone comparison - jQuery Mobile Demos</title> <link rel="shortcut icon" href="../favicon.ico"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?...
mit
half-evil/ripper
Ripper.Services/ImageHosts/PussyUpload.cs
5443
////////////////////////////////////////////////////////////////////////// // Code Named: VG-Ripper // Function : Extracts Images posted on RiP forums and attempts to fetch // them to disk. // // This software is licensed under the MIT license. See license.txt for // details. // // Copyright (c) The Watc...
mit
lavaleak/diplomata-unity
Runtime/Persistence/Models/ItemPersistent.cs
206
using System; namespace LavaLeak.Diplomata.Persistence.Models { [Serializable] public class ItemPersistent : Persistent { public string id; public bool have; public bool discarded; } }
mit
gabrielbull/php-waredesk-api
test/tests/Products/ProductUpdateTest.php
2576
<?php namespace Waredesk\Tests\Products; use GuzzleHttp\Psr7\Response; use Waredesk\Image; use Waredesk\Models\Code; use Waredesk\Models\Product; use Waredesk\Tests\BaseTest; class ProductUpdateTest extends BaseTest { public function testFake() { $this->assertTrue(true); } /*private function ...
mit
leowang721/edpx-timeline
lib/output/dep/echarts/2.0.3/src/chart/k.js
19965
/** * echarts图表类:K线图 * * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。 * @author Kener (@Kener-林峰, linzhifeng@baidu.com) * */ define(function (require) { var ComponentBase = require('../component/base'); var ChartBase = require('./base'); // 图形依赖 var CandleShape ...
mit
yangra/SoftUni
DataStructures/Exams/EXAM02072017/src/main/java/enterprise/Position.java
93
package enterprise; public enum Position { DEVELOPER, MANAGER, HR, TEAM_LEAD, OWNER; }
mit
wix/wix-style-react
packages/wix-style-react/src/PageFooter/Center/index.js
36
export { default } from './Center';
mit
kimgea/twitter_scraper_selenium
sbot/twitter/scraper/scrape/base.py
2015
''' Created on 23. nov. 2015 @author: kga ''' import logging from selenium import webdriver class ScrapeBaseSelenium(object): """ Base class for scraping """ def __init__(self): self.browser = None self.base_url="http://mobile.twitter.com/" self.data = None self.u...
mit
Sudwood/AdvancedUtilities
java/com/sudwood/advancedutilities/blocks/BlockCompressorBlock.java
4683
package com.sudwood.advancedutilities.blocks; import java.util.Random; import com.sudwood.advancedutilities.AdvancedUtilities; import com.sudwood.advancedutilities.tileentity.TileEntityCompressor; import com.sudwood.advancedutilities.tileentity.TileEntityCompressor; import cpw.mods.fml.relauncher.Side; import cpw.mo...
mit
tomzx/laravex
src/Illuminate/Console/GeneratorCommand.php
3840
<?php namespace Illuminate\Console; use Illuminate\Filesystem\Filesystem; use Symfony\Component\Console\Input\InputArgument; abstract class GeneratorCommand extends Command { use AppNamespaceDetectorTrait; /** * The filesystem instance. * * @var \Illuminate\Filesystem\Filesystem */ protected $files; /*...
mit
idcf/idcfcloud-cli
lib/idcf/cli/error/init.rb
62
require_relative './api_error' require_relative './cli_error'
mit
steelbrain/declarations
spec/process-spec.js
6446
'use babel' import { processDeclarations, processProvider } from '../lib/process' describe('Process', function() { afterEach(function() { atom.notifications.clear() }) function testResultOf(callback: Function) { callback() return expect(atom.notifications.getNotifications().length === 0) } des...
mit
pierre-haessig/sysdiag
tests/test_sysdiag.py
7646
#!/usr/bin/python # -*- coding: utf-8 -*- """ Test the main module of System Diagram Pierre Haessig — September 2013 """ from nose.tools import assert_equal, assert_true, assert_raises, assert_is # Import sysdiag: import sys try: import sysdiag except ImportError: sys.path.append('..') import sysdiag def...
mit
laidig/siri-20-java
src/uk/org/siri/siri/StopVisitTypeEnumeration.java
1864
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.11....
mit
ringingmaster/ringingmaster-engine
src/main/java/org/ringingmaster/engine/notation/persist/PersistableNotationTransformer.java
1844
package org.ringingmaster.engine.notation.persist; import org.ringingmaster.engine.NumberOfBells; import org.ringingmaster.engine.notation.Notation; import org.ringingmaster.engine.notation.NotationBuilder; import org.ringingmaster.persist.generated.v1.LibraryNotationPersist; /** * Manage the conversion of the persi...
mit
sheldonh/whois
spec/whois/record/parser/responses/whois.iis.se/property_status_ok_spec.rb
909
# encoding: utf-8 # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # /spec/fixtures/responses/whois.iis.se/property_status_ok.expected # # and regenerate the tests with the following rake task # # $ rake spec:generate # require 'spec_helper' require 'who...
mit
Saytiras/Game-Prototypes
Thanatros/Assets/Scripts/Model/Block.cs
300
using UnityEngine; using System.Collections; using System.Runtime.InteropServices; using Assets.Scripts.Model; public struct Block { private readonly byte _type; public Block(byte type) { _type = type; } public bool IsSolid => BlockTypes.GetBlockType(_type).IsSolid; }
mit
Philo/Umbraco.Elasticsearch
samples/Umbraco.Elasticsearch.Samplev73/Features/Search/Controllers/DtSearchController.cs
957
using System.Web.Mvc; using Nest.Queryify.Extensions; using Umbraco.Elasticsearch.Core; using Umbraco.Elasticsearch.Samplev73.Features.Search.Models; using Umbraco.Elasticsearch.Samplev73.Features.Search.Queries.Article; using Umbraco.Web.Models; using Umbraco.Web.Mvc; namespace Umbraco.Elasticsearch.Samplev73.Featur...
mit
nixel2007/vsc-language-1c-bsl
src/util/bsllsDownloadChannel.ts
151
enum BSLLanguageServerDownloadChannel { Stable = "stable", PreRelease = "prerelease" } export default BSLLanguageServerDownloadChannel;
mit
c3mediagroup/el-dorado
test/functional/subscriptions_controller_test.rb
547
require 'test_helper' class SubscriptionsControllerTest < ActionController::TestCase def setup @controller = SubscriptionsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end def test_should_get_index end def test_should_get_new ...
mit
sharecloud/sharecloud
model/User.class.php
7065
<?php final class User extends ModelBase { /** * User ID * @var int */ private $uid = 0; /** * Username * @var string */ private $username; /** * Firstname * @var string */ private $firstname; /** * Lastname * @var string */ private $lastname; /** * New Password * @var ...
mit
nesamouzehkesh/felix-rest
src/AppBundle/Library/Base/BaseController.php
611
<?php namespace AppBundle\Library\Base; use FOS\RestBundle\Controller\FOSRestController; class BaseController extends FOSRestController { /** * * @return \AppBundle\Service\AppService */ public function getAppService() { return $this->get('app.service'); } /** * ...
mit
Casecommons/pg_search
spec/lib/pg_search/configuration/foreign_column_spec.rb
1061
# frozen_string_literal: true require "spec_helper" describe PgSearch::Configuration::ForeignColumn do describe "#alias" do with_model :AssociatedModel do table do |t| t.string "title" end end with_model :Model do table do |t| t.string "title" t.belongs_to :ano...
mit
weltenbauer/home-control
src/app/logic/adapter/openhab1/items/itemColorOpenhab1.model.ts
882
/* * brief Implementation of an OpenHAB 1 Color * author Christian Rathemacher (christian@weltenbauer-se.com) * company weltenbauer. Software Entwicklung GmbH * date February 2017 */ //----------------------------------------------------------------------------- import { ItemColor } from '../../../mode...
mit
sumocoders/forkcms
src/Frontend/Core/Engine/Base/Block.php
17731
<?php namespace Frontend\Core\Engine\Base; use Common\Core\Header\Priority; use Common\Doctrine\Entity\Meta; use Common\Exception\RedirectException; use ForkCMS\App\KernelLoader; use Frontend\Core\Engine\Breadcrumb; use Frontend\Core\Engine\Exception; use Frontend\Core\Engine\Model; use Frontend\Core\Engine\Url; use ...
mit
Gordon-from-Blumberg/Klax
js/team.js
329
/** * @author Gordon from Blumberg * @description Team module * @version 0.1.0 */ define(['GBL'],function (gbl) { "use strict"; var team = {}; team.name = 'team.js'; team.version = '0.1.0'; team.Team = function Team(opts) { }.inherit(gbl.Collection); team.Team.prototype.extend({},tr...
mit
Azure/azure-sdk-for-go
services/preview/logic/mgmt/2015-08-01-preview/logic/integrationaccountagreements.go
16956
package logic // 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 regenerated. ...
mit
Boshen/angular2-components
src/app/app.routes.ts
345
import { RouterConfig } from '@angular/router' import { Home } from './home' import { DatePickerPage } from './date-picker' import { PieChartPage } from './pie-chart' export const routes: RouterConfig = [ { path: '', component: Home }, { path: 'date-picker', component: DatePickerPage }, { path: 'pie-chart', com...
mit
kayler-renslow/arma-intellij-plugin
src/com/kaylerrenslow/armaplugin/lang/sqf/completion/CompletionAdders.java
5604
package com.kaylerrenslow.armaplugin.lang.sqf.completion; import com.intellij.codeInsight.completion.CompletionParameters; import com.intellij.codeInsight.completion.CompletionResultSet; import com.intellij.codeInsight.completion.PrioritizedLookupElement; import com.intellij.codeInsight.lookup.LookupElementBuilder; im...
mit
Romakita/ts-express-decorators
packages/core/src/domain/Metadata.spec.ts
4498
import {expect} from "chai"; import {Metadata} from "../../src"; function logger(target: any, method?: any, descriptor?: any) { return descriptor; } @logger class Test { @logger attribut: string = ""; // tslint:disable-next-line: no-unused-variable constructor(private type?: string) {} static methodStat...
mit
ivandean/junos-python
vpn_ipsec/int_tests/vpnaas_func_test.py
4649
''' Unit tests for VPNaaS ''' import unittest,sys from vpnaas import vpnaas from vpnaas.junos.junos_ike import DeadPeerDetection, LocalIdentity class Test(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_add_ipsec_proposal(self): print ' ' ...
mit
elmar-hinz/Cool
Modules/Cool/Interfaces/Service.php
102
<?php namespace Cool; interface Service { static public function canServe($mixedCriteria); } ?>
mit
MacHu-GWU/sqlite4dummy-project
sqlite4dummy/tests/sqlite3_in_python/tricks/test_count_total_row_in_a_table.py
1222
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from sqlite4dummy.tests.basetest import BaseUnittest import unittest import sqlite3 import time import os dbfile = "test.sqlite3" class Unittest(BaseUnittest): """ 结论: 计算总共有多少列最好的方法是使用: SELECT COUNT(*) FROM (SELECT c...
mit
dpesheva/QuizFactory
QuizFactory/QuizFactory.MVC/Areas/Users/Controllers/HistoryController.cs
3027
namespace QuizFactory.Mvc.Areas.Users.Controllers { using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using AutoMapper.QueryableExtensions; using Microsoft.AspNet.Identity; using MvcPaging; using QuizFactory.Data; using Qu...
mit
Develman/mmi_graphing
src/main/java/de/develman/mmi/ui/util/UIHelper.java
592
package de.develman.mmi.ui.util; import de.develman.mmi.model.Graph; import de.develman.mmi.model.Vertex; import javafx.scene.control.ComboBox; /** * @author Georg Henkel <georg@develman.de> */ public class UIHelper { public static Vertex loadVertex(Graph graph, ComboBox<Integer> vertexCbx, Vertex defaultValue)...
mit
ishenkoyv/ZF2Skeleton
module/Core/Module.php
336
<?php namespace Core; use IyvZF2Generic\ModuleManager\AbstractModule; use Zend\Console\Adapter\AdapterInterface as Console; class Module extends AbstractModule { public function getConsoleUsage(Console $console) { return array( 'app-provisioning' => 'Prepare application for first run', ...
mit
Azure/azure-sdk-for-go
services/costmanagement/mgmt/2019-11-01/costmanagement/dimensions.go
11960
package costmanagement // 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 rege...
mit
mandino/hotelmilosantabarbara.com
wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package.class.php
13536
<?php class WPML_Package { public $ID; public $view_link; public $edit_link; public $is_translation; public $string_data; public $title; public $new_title; public $kind_slug; public $kind; public $trid; public $name; public $translation_element_type; public $post_id; private $element_type_p...
mit
itowtips/shirasagi
app/controllers/opendata/agents/nodes/dataset/dataset_map_controller.rb
1492
class Opendata::Agents::Nodes::Dataset::DatasetMapController < ApplicationController include Cms::NodeFilter::View include Opendata::UrlHelper private def set_map_points @map_points = {} @datasets = [] @items.each do |item| resources = [] item.resources.each_with_index do |resource, id...
mit
kulibali/periapsis
GSGL/src/data/data.hpp
3271
#ifndef GSGL_DATA_DATA_H #define GSGL_DATA_DATA_H // // $Id$ // // Copyright (c) 2008, The Periapsis Project. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistr...
mit
onybo/confcal
app/components/flags/Norway.tsx
557
// Based on https://github.com/lipis/flag-icon-css/tree/master/flags/4x3/no.svg // Copyright (c) 2013 Panayiotis Lipiridis import * as React from 'react'; import SvgIcon from 'material-ui/lib/svg-icon'; const Norway = (props) => ( <SvgIcon viewBox="0 0 640 480" {...props}> <path fill="#ef2b2d" d="M0 0h640v480H...
mit
samwong1990/RoomServiceCommons
RoomServiceCommons/src/hk/samwong/roomservice/commons/parameterEnums/ReturnCode.java
163
package hk.samwong.roomservice.commons.parameterEnums; public enum ReturnCode { NO_RESPONSE, UNRECOVERABLE_EXCEPTION, OK, ILLEGAL_ARGUMENT, NO_SUCH_ALGORITHM; }
mit
aliarham11/volumemonitoringapp
application/models/Monitoringmodel.php
1541
<?php class Monitoringmodel extends CI_Model { public function __construct() { $this->load->database(); } public function getVehicleData() { $sql = "select * from ( SELECT `track_record`.`vehicle_id`, `vehicle_name`, `tank_type`,`driver_contact`, `d...
mit
Iliev88/QA-Automation
DesignPattern/Pages/ResizablePage/ResizablePage.cs
1216
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenQA.Selenium; using OpenQA.Selenium.Interactions; namespace DesignPattern.Pages.ResizablePage { public partial class ResizablePage : BasePage { public ResizablePage(IWebDriver d...
mit
CoolProp/GUI
cpgui_cycle2.py
25806
# -*- coding: utf-8 -*- # import sys import gettext from tkinter import * from tkinter import ttk import CoolProp from CoolProp.CoolProp import PropsSI from cpgui_all import * import numpy as np from math import exp from PIL import ImageTk, Image from scipy.optimize import bisect class cpg_cycl...
mit
johanclasson/Unity.Interception.Serilog
src/Unity.Interception.Serilog/CommonPropertiesEnricher.cs
1382
using System; using Serilog.Core; using Serilog.Events; namespace Unity.Interception.Serilog { internal class CommonPropertiesEnricher : ILogEventEnricher { private readonly ICommonProperties _properties; public CommonPropertiesEnricher(ICommonProperties properties) { _prop...
mit
tsigo/jugglf
app/models/completed_achievement.rb
1609
require 'open-uri' require 'nokogiri' class CompletedAchievement < ActiveRecord::Base attr_accessible :member, :member_id, :achievement, :achievement_id, :completed_on belongs_to :achievement belongs_to :member validates_presence_of :achievement validates_presence_of :member def self.parse_member(member...
mit
gruberro/Sylius
src/Sylius/Component/Core/Promotion/Checker/Rule/CustomerGroupRuleChecker.php
1411
<?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\Core\Promotion\Checker\Rule; use Sylius\Componen...
mit
Wolfy42/EOF-JPA-CompatibilityLayer
JPACompatibilityLayer/Sources/com/webobjects/eocontrol/EOEditingContext.java
869
package com.webobjects.eocontrol; import com.webobjects.foundation.NSArray; public abstract class EOEditingContext { public static final Class<?> _CLASS = EOEditingContext.class; private UndoManager um; private EOObjectStore os; public EOEditingContext() { this.um = new UndoManager(); this.os = new ...
mit
Kstro/erpsystem
src/ERP/CRMBundle/Entity/CtlTipoAccion.php
1456
<?php namespace ERP\CRMBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * CtlTipoAccion * * @ORM\Table(name="ctl_tipo_accion") * @ORM\Entity */ class CtlTipoAccion { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(stra...
mit
micmath/formica
tests/functional/inline_rules.php
1159
<html> <head> <title>Formica Example</title> </head> <body> <?php require_once '../../vendor/autoload.php'; $form = '../fixtures/forms/inline_rules.html'; $ruleSet = Formica::rules($form); $input = count($_POST)? $_POST : array( 'fname' => 'Michael', 'email_address' => 'Bloop'...
mit
pu6ki/elsyser
homeworks/serializers.py
2032
from django.contrib.auth.models import User from rest_framework import serializers from students.serializers import ( ClassSerializer, SubjectSerializer, TeacherAuthorSerializer, StudentAuthorSerializer ) from students.utils import send_creation_email from .models import Homework, Submission class SubmissionSe...
mit
chadqueen/RedFixGreen
test/RedFixGreen.Tests/Properties/AssemblyInfo.cs
829
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: AssemblyConfigurat...
mit
armaniExchange/work-genius
src/components/ResourceMapTable/ResourceMapTableBody.js
5741
import './ResourceMapTable.css'; import './_color.css'; import React, { Component, PropTypes } from 'react'; import moment from 'moment'; import ResourceMapCellAddButton from './ResourceMapCellAddButton.js'; import ResourceMapCellPto from './ResourceMapCellPto.js'; import ResourceMapCellWorkLog from './ResourceMapCell...
mit
kickinrad/healerhealer
cauldron.lua
1894
-- cauldron.lua cauldron = {} testPatient = {"fr","fr","rt","ey","nt"} local sortTreatment = function (a, b) return a < b end function loadCauldron() caulFront = love.graphics.newImage("assets/character/cauldront_front.png") caulBack = love.graphics.newImage("assets/character/cauldron_back.png") logs = love.g...
mit
IKende/IKendeLib
KGlue/KGlue/Center.cs
4479
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace KGlue { public class Center { private System.Collections.ArrayList mDomains = new System.Collections.ArrayList(); private System.Collections.ArrayList mFileWatches = new System.Collections.ArrayLi...
mit
jeromeetienne/augmentedgesture.js
vendor/imageprocessing.js
12148
/** * @author jerome etienne jerome.etienne@gmail.com * @author Djordje Lukic lukic.djordje@gmail.com */ /** * @namespace */ var ImgProc = {}; /** * horizontal flip */ ImgProc.fliph = function(imageData) { var p = imageData.data; var w = imageData.width; var h = imageData.height; var tmp; for(var y = 0; y < ...
mit
vincenti/csharp.series.one
01.Wstep-do-csharp-i-xaml/Zad01/MainWindow.xaml.cs
702
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MainWindow.xaml.cs" company="KUL.NET"> // Created by Jarosław Wąsik // </copyright> // ------------------------------------------------------------------------------------------...
mit
unicorn-fail/grunt-drupal-bootstrap
index.js
8086
/** * The "grunt-drupal-bootstrap" NPM module. * * The MIT License (MIT) * Copyright (c) 2016 Mark Carver */ (function (exports) { "use strict"; var _ = require('./lib/util/underscore'); var bower = require('./lib/bower'); var cwd = process.cwd(); var endpointParser = require('bower-endpoint-parser'); ...
mit
sallyyoo/ced2
book/code/e-shop/webpack/client.js
435
/** * Created on 2018/1/29. */ const webpack = require('webpack') const merge = require('webpack-merge') const common = require('./common') const VueSSRClientPlugin = require('vue-server-renderer/client-plugin') module.exports = merge(common, { entry: './src/entry-client', plugins: [ new webpack.optimize.Com...
mit
bryanphillips/TMDB
MovieDB.Core/ServiceContainer.cs
2640
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MovieDB.Core { /// <summary> /// A simple service container implementation, singleton only /// </summary> public static class ServiceContainer { private static read...
mit
ibramos/The-Feed
client/src/index.js
605
import "materialize-css/dist/css/materialize.min.css"; import React from "react"; import ReactDOM from "react-dom"; import { Provider } from "react-redux"; import { createStore, applyMiddleware } from "redux"; import reduxThunk from "redux-thunk"; import App from "./components/App"; import reducers from "./reducers/co...
mit
kidaa/uw-web
tools/textgenerator/node_modules/generate_tischendorf.js
4955
var fs = require('fs'), path = require('path'), bibleData = require('bible_data'), bibleFormatter = require('bible_formatter'), readline = require('readline'); stream = require('stream'), verseIndexer = require('verse_indexer'); function generate(inputPath, info, createIndex, startProgress, updateProgress) { va...
mit
ehartmann/electric_sheep
lib/electric_sheep/command.rb
953
module ElectricSheep module Command extend ActiveSupport::Concern include Runnable attr_reader :shell delegate :stat_file, :stat_directory, :stat_filesystem, to: :shell def initialize(job, logger, shell, input, metadata) @job = job @logger = logger @shell = shell @input ...
mit
nl-hugo/sqlgraph
src/main/java/nl/hugojanssen/sqlgraph/visitors/TableVisitor.java
4809
package nl.hugojanssen.sqlgraph.visitors; import gudusoft.gsqlparser.ETableSource; import gudusoft.gsqlparser.TBaseType; import gudusoft.gsqlparser.TSourceTokenList; import gudusoft.gsqlparser.nodes.TJoin; import gudusoft.gsqlparser.nodes.TJoinItem; import gudusoft.gsqlparser.nodes.TTable; import gudusoft.gsqlparser.n...
mit
mirazmac/Saika
system/core/Session.php
2093
<?php /** * Saika - The PHP Framework for KIDS * * The Session Wrapper Class * * @version 1.0 * @since 1.0 */ class Session { /** * Start the session if not started already * * @return */ public static function start() { if (session_id() == '') { ...
mit
antimattr/shipment-tracking
src/AntiMattr/ShipmentTracking/Exception/InvalidException.php
624
<?php /* * This file is part of the AntiMattr Shipment Tracking Library, a library by Matthew Fitzgerald. * * (c) 2015 Matthew Fitzgerald * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AntiMattr\ShipmentTracking\Except...
mit
kompyang/UnityGamePlayPocketLab
LeapMotionTest/Assets/LeapMotion/Modules/InteractionEngine/Scripts/Editor/InteractionBehaviourEditor.cs
9109
/****************************************************************************** * Copyright (C) Leap Motion, Inc. 2011-2017. * * Leap Motion proprietary and confidential. * * * ...
mit
inaturalist/inaturalist
spec/lib/darwin_core/simple_multimedia_spec.rb
2294
# frozen_string_literal: true require "spec_helper" describe DarwinCore::SimpleMultimedia do elastic_models( Observation, Taxon ) let( :o ) { make_research_grade_observation } let( :photo ) do first_photo = o.photos.first first_photo.update( license: Photo::CC_BY ) DarwinCore::SimpleMultimedia.adapt...
mit
vaughanbrittonsage/device_wizard
lib/device_wizard/resolvers/internet_explorer.rb
865
# frozen_string_literal: true module DeviceWizard module Resolvers class InternetExplorer < Base NAME = 'Internet Explorer' KEYWORD = 'msie' KEYWORD2 = ' rv:' REGEX = Regexp.new('msie ([0-9]+.[0-9])') REGEX2 = Regexp.new('rv:([0-9]+.[0-9])') def get_version(user_agent) ...
mit
hikrishn/ssu-starter-kit-master
node_modules/vuelidate/src/params.js
1335
const stack = [] // exported for tests export let target = null export const _setTarget = x => { target = x } export function pushParams () { if (target !== null) { stack.push(target) } target = {} } export function popParams () { const lastTarget = target const newTarget = target = stack.pop() || nul...
mit
msawczyn/EFDesigner
src/Testing/Sandbox/Sandbox_EF6_Test/Entity1.generated.cs
2335
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
mit
MESD/JasperReportBundle
InputControl/MultiSelectCheckbox.php
3070
<?php namespace Mesd\Jasper\ReportBundle\InputControl; use Symfony\Component\Form\FormBuilder; /** * Multiselect Checkbox */ class MultiSelectCheckbox extends AbstractReportBundleInputControl { /////////////// // VARIABLES // /////////////// /** * The options list * * @var array ...
mit