repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kokimoribe/todo-api
alembic/versions/c1b883dbfff4_add_boards_table.py
1672
"""add boards table Revision ID: c1b883dbfff4 Revises: b764aaedf10d Create Date: 2017-10-30 19:37:00.544958 """ # pylint: skip-file from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c1b883dbfff4' down_revision = 'b764aaedf10d' branch_labels = None depends_on = None ...
mit
tadeucruz/spring-oauth2-jwt
authorizationServer/src/main/java/com/tadeucruz/springoauth2jwt/repository/UserRolesRepository.java
560
package com.tadeucruz.springoauth2jwt.repository; import com.tadeucruz.springoauth2jwt.model.UserRole; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface...
mit
VikkySuresh/bookingInfoApp
protractor.config.js
5440
// FIRST TIME ONLY- run: // ./node_modules/.bin/webdriver-manager update // // Try: `npm run webdriver:update` // // AND THEN EVERYTIME ... // 1. Compile with `tsc` // 2. Make sure the test server (e.g., http-server: localhost:8080) is running. // 3. ./node_modules/.bin/protractor protractor.config.js // // ...
mit
MarijnKoesen/filesytemUtils
setPhotoExifDate.php
3067
<? /** * This program will update the exif 'DateTaken' of the image files. * * The files are sorted by filename, and the first image is given the specified timestring. * All subsequent images are given timestring+i so that the images can be properly ordered on the exif DateTaken field. * * Usage: php setPhotoExif...
mit
swiftcore-lib/php-jose
examples/index.php
125
<?php phpinfo(); // Sample Example 1 function readme() { echo 'This is README!'; } // Sample Example 2 class A { }
mit
johnttan/spicybattle
server/app.js
712
/** * Main application file */ 'use strict'; // Set default node environment to development process.env.NODE_ENV = process.env.NODE_ENV || 'development'; var express = require('express'); var mongoose = require('mongoose'); var config = require('./config/environment'); // Connect to database mongoose.connect(confi...
mit
zhangqiang110/my4j
pms/src/test/java/file/FileCheck.java
2127
package file; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.apache.commons.io.FileUtils; import org.apache.commons.io.LineIterator; /** * 8个日志文件,1000个apv单...
mit
beefyhalo/particles
particles/physics/twoD/tasks/FollowMouse.js
381
define('particles/physics/twoD/tasks/FollowMouse', ['particles/physics/core/tasks/Task'], function (Task) { function FollowMouse (camera) { this.camera = camera; }; $.extend(FollowMouse.prototype, Task.prototype, { update: function (manager, time) { manager.x = this.camera.mouseX; manager.y = th...
mit
cmccullough2/cmv-wab-widgets
cmv/js/gis/dijit/LayerControl/controls/Image.js
529
/* ConfigurableMapViewerCMV * version 2.0.0-beta.1 * Project: http://cmv.io/ */ define(["dojo/_base/declare","dijit/_WidgetBase","dijit/_TemplatedMixin","dijit/_Contained","./_Control","./../plugins/legendUtil"],function(a,b,c,d,e,f){var g=a([b,c,d,e],{_layerType:"overlay",_esriLayerType:"image",_layerTypeInit:f...
mit
Yin-Yang/yin-yang-core
src/reflection.js
4079
/** * Reflection * @module Reflection */ import { each, map } from './iterate'; import { isArray, isValue, isStructure } from './check'; /** * Instantiate class by constructor and arguments * * @param {Function} Constructor * @param {Array} args * @returns {Object} */ export function create(Constructor, args)...
mit
ZLima12/osu
osu.Game/Screens/Ranking/Pages/ScoreResultsPage.cs
15959
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Linq; using osu.Framework.Allocation; using osu.Framework.Extensions; using osu.Framework.Extensions.Color4Ex...
mit
JWT-OSS/sfJwtPhpUnitPlugin
lib/test/Case/Unit.class.php
1483
<?php /** * Copyright (c) 2011 J. Walter Thompson dba JWT * * 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, ...
mit
cwadding/sensit-python
sensit/api/data.py
1147
# Get the value of a specific field within a feed # # topic_id - The key for the parent topic # feed_id - The id of the parent feed # id - The key of the specific field class Data(): def __init__(self, topic_id, feed_id, id, client): self.topic_id = topic_id self.feed_id = feed_id self.id = id self.client = c...
mit
EmilPopov/C-Sharp
C# OOP/OOP Principles - Part 2/Shapes/Shape.cs
356
 namespace Shapes { abstract public class Shape { public Shape(double width,double height) { this.Width = width; this.Height = height; } public double Width { get; private set; } public double Height { get; private set; } public abstract d...
mit
abramz/champion-select
test/spec/server/data/schema.spec.js
748
import { expect } from 'chai'; import schema from '../../../../src/server/data/schema'; describe('GraphQL Schema', () => { const requiredQueries = [ 'content', 'champion', 'champions', 'item', 'items', 'languages', 'languageStrings', 'maps', 'server', ]; it('should contain al...
mit
talentstrong/fireflyEnglish
centralServiceImpl/src/test/java/com/firefly/test/CampApplyDaoTest.java
1218
package com.firefly.test; import com.firefly.model.CampApply; import com.firefly.service.CampApplyService; import com.firefly.service.dao.CampApplyDao; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextC...
mit
pravj/orbis
game.py
243
#!/usr/bin/python try: from gi.repository import Gtk, Gdk except ImportError: raise Exception('unable to import required module') from grid import Grid grid = Grid() grid.connect('delete-event', Gtk.main_quit) grid.show_all() Gtk.main()
mit
peterchaula/ClassicF1
app/src/main/java/com/github/peterchaula/classicf1/IGame.java
513
package com.github.peterchaula.classicf1; import com.github.peterchaula.classicf1.entity.Opponent; public interface IGame { public void play(final float pSpeed); public void die(); public void pause(); public boolean isOver(); public int getLevel(); public void updateScore(); public void score(); public void...
mit
ysadiq/salesucre-android
src/com/ramez/olit/sale/MoreActivity.java
3981
package com.ramez.olit.sale; import java.util.ArrayList; import java.util.List; import com.ramez.olit.sale.R; import com.parse.FindCallback; import com.parse.ParseException; import com.parse.ParseObject; import com.parse.ParseQuery; import android.app.Activity; import android.content.ActivityNotFoundExce...
mit
redraiment/jactiverecord
src/main/java/me/zzp/ar/ex/IllegalTableNameException.java
290
package me.zzp.ar.ex; /** * 表不存在。 * * @since 1.0 * @author redraiment */ public class IllegalTableNameException extends RuntimeException { public IllegalTableNameException(String tableName, Throwable e) { super(String.format("illegal table %s", tableName), e); } }
mit
information-machine/information-machine-api-csharp
InformationMachineAPI.PCL/Models/GetUOMsWrapper.cs
1924
/* * InformationMachineAPI.PCL * * */ using System; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using InformationMachineAPI.PCL; namespace InformationMac...
mit
auser/poolparty
examples/chef_cloud/chef_repo/cookbooks/ganglia/metadata.rb
364
maintainer "Nate Murray" maintainer_email "" license "Apache 2.0" description "Installs/Configures ganglia" long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) version "0.1" recipe "ganglia::default" recipe "ganglia::gmetad" recipe "ganglia::monitor_sshd" recipe "gan...
mit
cdidyk/kwoon
spec/mailers/student_application_mailer_spec.rb
901
RSpec.describe StudentApplicationMailer, type: :mailer do describe ".confirmation" do it "generates a confirmation email to the user" do user = build :user email = StudentApplicationMailer. confirmation(user). deliver_now expect(email.from).to eq(["no-reply@shaolinstpete.com"]) e...
mit
elogent/nandsee
src/main/java/com/github/samestep/nandsee/tile/TileType.java
1182
package com.github.samestep.nandsee.tile; /** The base type of a {@link Tile}. */ public enum TileType { /** A {@link TileType} used to transmit signals. */ WIRE, /** A {@link TileType} used to transmit signals in all four directions. */ WIRE_CONNECT, /** A {@link TileType} used to transmit signals between l...
mit
cwhitney/DelqaTools
DelqaTrack/src/OscManager.cpp
1514
#include "..\include\OscManager.h" #include "cinder/Log.h" using namespace ci; using namespace ci::app; using namespace std; OscManager::OscManager() : mOscHost("127.0.0.1"), mOscPortStr("8000"), bConnected(false) { mGui = Pretzel::PretzelGui::create("OSC Settings", 220, 200); mGui->addTextField("Send Host", &mO...
mit
pengzhanlee/xeact
src/domApi.js
1423
import ReactDOM from "react-dom"; import {attrFlag, componentNamespace} from "./identifiers"; /** * TODO: 通过解析树获取而非dom关系 * node === self * parent === self ce. * parent.parent === parent root. * parent.parent.parent === parent ce. * 获取父节点 * @param context * @return {*} */ export function getParent(context) { ...
mit
satrun77/silverstripe-configurablepage
code/extensions/editablefields/EditableFieldDate.php
623
<?php /** * @author Mohamed Alsharaf <mohamed.alsharaf@gmail.com> */ class EditableFieldDateExtension extends DataExtension { /** * Get field value that is suitable for the view template file. * * @return Date */ public function getViewValue() { $value = Object::create('Date'...
mit
chan-lite/chan-lite.github.io
src/decorators/bindScrollBehavior.js
1573
import React, { PureComponent } from "react"; import Rx from "rxjs/Rx"; export function BindScrollBehavior(Decorated, nearBottom) { return class extends PureComponent { customEventName: "nearBottom"; customEventObservable: null; componentDidMount() { window.scroll(0, 0); this.customEventObse...
mit
nando0208/pantrychef
pantry-chef-model/src/main/java/com/eam/model/User.java
1165
package com.eam.model; import java.io.Serializable; import java.util.Date; import java.util.UUID; import com.pantrychef.model.Ingredient; public class User implements Serializable { /** * */ private static final long serialVersionUID = -3739177568476220034L; private UUID id; ...
mit
ticketevolution/ticketevolution-ruby
lib/ticket_evolution/credential.rb
61
module TicketEvolution class Credential < Model end end
mit
OElabed/vagrant-development-tools
apps/server/src/main/java/com/fix/repository/UserRepository.java
288
package com.fix.repository; import com.fix.model.entities.User; import org.springframework.data.jpa.repository.JpaRepository; /** * Created by oelabed on 2016-10-15. */ public interface UserRepository extends JpaRepository<User, Long> { User findByUsername( String username ); }
mit
simplabs/ember-simple-auth
packages/ember-simple-auth/tests/unit/session-stores/shared/storage-event-handler-behavior.js
2278
import { module, test } from 'qunit'; import { run } from '@ember/runloop'; import sinonjs from 'sinon'; export default function(options) { let sinon; let store; let hooks = options.hooks; hooks.beforeEach(function() { sinon = sinonjs.createSandbox(); store = options.store(); }); hooks.afterEach(...
mit
Flagbit/Magento-FACTFinder
src/lib/FACTFinderCustom/Configuration.php
8116
<?php /** * this class implements the FACTFinder configuration interface and uses the Zend_Config class. so it's like a decorator * for the Zend_Config * * @package FACTFinder\Common */ class FACTFinderCustom_Configuration extends FACTFinder\Core\AbstractConfiguration { const HTTP_AUTH = 'http'; const...
mit
touchtechio/starcatcher
StarCatcherUnity/Assets/UniOSC/Scripts/UniOSCUtils.cs
13269
/* * UniOSC * Copyright © 2014-2015 Stefan Schlupek * All rights reserved * info@monoflow.org */ using UnityEngine; using System; using System.Collections; using System.Net; using System.Net.Sockets; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpre...
mit
9Cube-dpustula/andOTP
app/src/main/java/org/shadowice/flocke/andotp/Utilities/ThemeHelper.java
1921
/* * Copyright (C) 2017 Jakob Nixdorf * * 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, publi...
mit
westlane/connect-lint
index.js
3219
/*! * * Lint - Connect Middleware * Copyright(c) 2014 Paper & Equator, LLC * Copyright(c) 2014 West Lane * MIT Licensed */ var winston = require("winston"); var scanCSS = require("./lib/css"); var scanJavascript = require("./lib/javascript"); /** * Lint Middleware */ exports = module.exports = function(options...
mit
Mistand/Digishop
src/Digiseller.Client.Core/ViewModels/ProductSearch/Pagination.cs
517
using Digiseller.Client.Core.Interfaces.ProductSearch; using Digiseller.Client.Core.Models.Response.ProductSearch; namespace Digiseller.Client.Core.ViewModels.ProductSearch { public class Pagination : IPagination { public Pagination(Pages pages) { PageNumber = pages.Num; ...
mit
dimmir/PaginatorBundle
Exception/ExceptionInterface.php
88
<?php namespace DMR\Bundle\PaginatorBundle\Exception; interface ExceptionInterface { }
mit
hikurangi/feathers-todo
src/services/todos/hooks/restrict-to-sender.js
777
'use strict'; // src/services/message/hooks/restrict-to-sender.js // // Use this hook to manipulate incoming or outgoing data. // For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html const errors = require('feathers-errors'); module.exports = function(options) { return function(hook) { ...
mit
jackybigz/samplelog
test/controllers/customers_controller_test.rb
1231
require 'test_helper' class CustomersControllerTest < ActionController::TestCase setup do @customer = customers(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:customers) end test "should get new" do get :new assert_response :success ...
mit
brenolf/polyjuice
lib/dictionaries/jscs/disallowMultipleLineBreaks.js
506
/** * @fileoverview Translation for `disallowMultipleLineBreaks` (JSCS) to ESLint * @author Breno Lima de Freitas <https://breno.io> * @copyright 2016 Breno Lima de Freitas. All rights reserved. * See LICENSE file in root directory for full license. */ 'use strict' //--------------------------------------------------...
mit
byrnedo/capitan
helpers/stringhelp.go
1256
package helpers import ( "math/rand" "strconv" "strings" "time" "fmt" "crypto/md5" ) var src = rand.NewSource(time.Now().UnixNano()) const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" const ( letterIdxBits = 6 // 6 bits to represent a letter index letterId...
mit
cuibuaa/renrenCawler
ghost_renren.py
5292
import re import time import os from ghost import Ghost def saveImage(imgbytes, imgpath): wfile = open(imgpath, "wb") for i in range(0, imgbytes.size()): wfile.write(imgbytes[i]) wfile.close() def getImage(ghost): html = ghost.content reg = r'id="album-box-(\d+?)"' albumidre = re....
mit
Deslon/Supernova
workspaces/androidstudio/app/src/main/java/com/deslon/supernova/TextInput.java
3864
package com.deslon.supernova; import android.content.Context; import android.opengl.GLSurfaceView; import android.util.AttributeSet; import android.view.KeyEvent; import android.widget.EditText; import android.os.Handler; import android.os.Message; import android.view.inputmethod.InputMethodManager; import android.vie...
mit
portchris/NaturalRemedyCompany
src/app/code/core/Mage/Paypal/Model/Mysql4/Cert.php
1207
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
mit
CodeTanzania/open311-web
app/scripts/controllers/dashboards/standing.js
20264
'use strict'; /** * @ngdoc function * @name ng311.controller:DashboardStandingCtrl * @description * # DashboardStandingCtrl * dashboard daily standing controller of ng311 */ angular .module('ng311') .controller('DashboardStandingCtrl', function ( $rootScope, $scope, $state, $uibModal, Summary, endpoints,...
mit
BenjaminLawson/PeerTunes
gulpfile.js
1127
var gulp = require('gulp') var browserify = require('browserify') var ejs = require('gulp-ejs') var source = require('vinyl-source-stream') var buffer = require('vinyl-buffer') var del = require('del') var pump = require('pump') var uglifyify = require('uglifyify') gulp.task('ejs', function() { return gulp.src("./vi...
mit
skylarsch/Destiny
lib/destiny/player_class.rb
331
module Destiny class PlayerClass attr_reader :hash, :type, :name, :identifier, :vendor_id def initialize(data) @hash = data[:class_hash] @type = data[:class_type] @name = data[:class_name] @identifier = data[:class_identifier] @vendor_id = data[:mentor_vendor_identifier] end...
mit
scriptkitty/SNC
unikl/disco/calculator/symbolic_math/ThetaOutOfBoundException.java
1640
/* * (c) 2017 Michael A. Beck, Sebastian Henningsen * disco | Distributed Computer Systems Lab * University of Kaiserslautern, Germany * All Rights Reserved. * * This software is work in progress and is released in the hope that it will * be useful to the scientific community. It is provided "as i...
mit
kiwipiet/AddressFinder
AddressFinder.Tests/SynonymFilter_Tests.cs
22107
using AddressFinder.Tests.Util; using Lucene.Net.Analysis; using Lucene.Net.Analysis.Standard; using Lucene.Net.Analysis.Tokenattributes; using Lucene.Net.Index; using Lucene.Net.QueryParsers; using Lucene.Net.Search; using Lucene.Net.Util; using NUnit.Framework; using System; using System.Linq; namespace AddressFinde...
mit
johnny-die-tulpe/illuminati
sauron/metrics/MySQLMetric.py
2139
#! /usr/bin/env python # # Copyright (c) 2011 SEOmoz # # 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, m...
mit
mailup/mailup-ruby
lib/mailup/console/group.rb
4697
module MailUp module Console class Group attr_accessor :api def initialize(id, api) @api = api @id = id end # Import a recipient to the specified group(synchronous import). # # @param [Hash] recipient data, see ConsoleRecipientItems (See http://help.mailup.com...
mit
asaforss/phpmvc1
theme/default.tpl.php
4340
<!doctype html> <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif...
mit
mariohd/simpleMath
js/simpleMath.js
8806
(function() { var backgroundMusic = new Audio('sound/background.mp3'); backgroundMusic.addEventListener('ended', function() { this.currentTime = 0; this.play(); }, false); function shuffleArray(array) { for (var i = array.length - 1; i > 0; i--) { var j = Math.floor(Math.random() * (i + 1))...
mit
LearningByExample/reactive-ms-example
src/test/java/org/learning/by/example/reactive/microservices/application/ReactiveMsApplicationTest.java
2695
package org.learning.by.example.reactive.microservices.application; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.learning.by.example.reactive.microservices.model.LocationRequest; import org.learning.by.example.reactive.microservices.mo...
mit
silver-bullet/pkmn-server
spec/models/pokemon_evolution_spec.rb
113
require 'spec_helper' describe PokemonEvolution do pending "add some examples to (or delete) #{__FILE__}" end
mit
cqzongjian/angular4
angular4-hello-world/src/app/app.module.ts
598
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { HelloWorldComponent } from './hello-world/hello-world.component'; import { UserItemComponent } from './user-item/user-item.component'; import { UserListComponent...
mit
sethjuarez/numl
Src/numl/Math/Functions/ClippedRectifiedLinear.cs
1658
// file: Math\Functions\RectifiedLinear.cs // // summary: Implements the rectified linear class namespace numl.Math.Functions { /// <summary>A clipped rectified linear function.</summary> public class ClippedRectifiedLinear : Function { /// <summary> /// Gets or sets the maximum o...
mit
streamj/JX
stream-core/src/main/java/com/example/stream/core/ui/recycler/ComplexViewHolder.java
405
package com.example.stream.core.ui.recycler; import android.view.View; import com.chad.library.adapter.base.BaseViewHolder; /** * Created by StReaM on 8/24/2017. */ public class ComplexViewHolder extends BaseViewHolder { public ComplexViewHolder(View view) { super(view); } public static Compl...
mit
Kelvin-09/SoftwareInstitute
proxy/supervisor.js
823
/** * Created by kelvin on 15-8-2. */ var database = require('../common/database'); var crypto = require('crypto'); exports.validateSupervisor = function (alias, cipher, callback) { if (!alias || !cipher) { return callback(new Error('Parameter: pageSize / pageRequest must be number!')); } var q...
mit
devicehive/devicehive-.net-mf
src/device/DeviceHiveMF/EquipmentEngine.cs
3662
using Microsoft.SPOT; namespace DeviceHive { /// <summary> /// Implementation of common equipment functionality /// </summary> /// <remarks> /// Implementers should derive from this class when creating their own custom equipment. See <see cref="DeviceHive.CommonEquipment.Switch"> Switch</see> class...
mit
BevanR/location.href-cleaner
location-href-cleaner.js
626
/** * Works around the "`location.href` contains BA credentials" bug in Webkit. * * @see https://crbug.com/61946 */ (function(){ "use strict"; var correct = location.origin + location.pathname + location.search + location.hash; if (location.href !== correct) { if (typeof(history.replaceState) === 'functio...
mit
FormsCommunityToolkit/FormsCommunityToolkit
samples/XCT.Sample/Pages/Converters/VariableMultiValueConverterPage.xaml.cs
273
using System; using System.Collections.Generic; using Xamarin.Forms; namespace Xamarin.CommunityToolkit.Sample.Pages.Converters { public partial class VariableMultiValueConverterPage { public VariableMultiValueConverterPage() { InitializeComponent(); } } }
mit
delapecci/titanium-modules
ios7media/example/app.js
960
// This is a test harness for your module // You should do something interesting in this harness // to test out the module and to provide instructions // to users on how to use it by example. // open a single window var win = Ti.UI.createWindow({ backgroundColor:'white' }); var label = Ti.UI.createLabel(); win.add...
mit
Technolords/microservice-mock
src/test/java/net/technolords/micro/registry/eureka/EurekaRequestFactoryTest.java
2160
package net.technolords.micro.registry.eureka; import org.apache.http.client.methods.HttpPost; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import net.technolords.micro.model.jaxb.registration.Registr...
mit
AndriyShepitsen/realsiterSitePrototype
deployment/units/urb-example-inscriptio-webapp/components/__generated__/InscriptioScreen_Viewer.graphql.js
3342
/** * @flow */ /* eslint-disable */ 'use strict'; /*:: import type {ConcreteFragment} from 'relay-runtime'; export type InscriptioScreen_Viewer = {| +Inscriptios: ?{| +edges: ?$ReadOnlyArray<?{| +node: ?{| +id: string; +Inscriptio_LocationLat: ?string; +Inscriptio_LocationLon: ?...
mit
cedricleblond35/capvisu-site_supervision
vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitConstructFixer.php
6244
<?php /* * This file is part of PHP CS Fixer. * * (c) Fabien Potencier <fabien@symfony.com> * Dariusz Rumiński <dariusz.ruminski@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Fixer\PhpUnit; use PhpCsFixer...
mit
woocoins/wooo
src/qt/locale/bitcoin_de.ts
120553
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About WOOLFCOIN</source> <translation>Über WOOLFCOIN</translation> </m...
mit
dafengge0913/lua_playground
traverse_list.lua
330
local function getnext(list, node) if not node then return list else return node.next end end function traverse(list) return getnext, list, nil end list = nil for line in io.lines() do if string.len(line) == 0 then break end list = {val = line, next = list} end for node in traverse(list) do print(nod...
mit
thogg4/sidelifter
lib/sidelifter.rb
138
require 'sidelifter/version' require 'sidelifter/output' require 'sidelifter/error' require 'sidelifter/providers' module Sidelifter end
mit
abhishekbhalani/jquery-mobile
js/widgets/forms/reset.js
583
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude); //>>description: Make a widget react to a form's reset. //>>label: formReset //>>group: Forms define( [ "jquery", "../../jquery.mobile.core" ], function( $ ) { //>>excludeEnd("jqmBuildExclude"); (function( $, undefined ) { $.mobile.behaviors.formReset = { ...
mit
SCPTeam/Safe-Component-Provider
Sat4jCore/src/org/sat4j/tools/SearchEnumeratorListener.java
2916
/******************************************************************************* * SAT4J: a SATisfiability library for Java Copyright (C) 2004, 2012 Artois University and CNRS * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0...
mit
kristianmandrup/slush-markoa
taglib/index.js
1760
/*jslint node: true */ 'use strict'; var _ = require('underscore.string'), inquirer = require('inquirer'), path = require('path'), chalk = require('chalk-log'); module.exports = function() { return function (done) { var prompts = [{ name: 'taglibName', ...
mit
eribeiro9/link-box
ui/src/register/register.module.ts
728
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MaterialModule } from '@angular/material'; import { FormsModule } from '@angular/forms'; import { CookieService } from 'angular2-cookie/services/cookies.service'; import { RegisterComponent } from './register.component...
mit
phillip-hopper/dokuwiki-plugin-door43ta
lang/en/lang.php
754
<?php /** * Name: lang.php * Description: The English language localization file for door43ta plugin. * * Author: Phil Hopper * Date: 2018-09-08 */ // menu entry for admin plugins // $lang['menu'] = 'Your menu entry'; // custom language strings for the plugin $lang['createButtonText'] = 'Create tA Now'; $lan...
mit
RuthAngus/LSST-max
code/barnes.py
506
import numpy as np def tau(P, P0, t): x = P/P0 return .5*(.65*t + ((.65*t)**2 - 23.4*(x**2-1) * np.log(x))**.5)/np.log(x), \ .5*(.65*t - ((.65*t)**2 - 23.4*(x**2-1)*np.log(x))**.5)/np.log(x),\ def period(age, bv): """ From Barnes 2007. This is just a place holder - n...
mit
studio666/Speedcoin
src/qt/locale/bitcoin_ca.ts
96727
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS language="ca" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Speedcoin</source> <translation>A prop de Speedcoi...
mit
Technius/scalajs-mithril
tests/src/test/scala/ScalatagsExtTest.scala
2535
import co.technius.scalajs.mithril._ import co.technius.scalajs.mithril.VNodeScalatags.{ attrs => *, tags => t } import co.technius.scalajs.mithril.VNodeScalatags.implicits._ import org.scalatest._ import org.scalajs.dom import scala.scalajs.js class ScalatagsExtTest extends FlatSpec with Matchers with TestUtils{ "...
mit
sgpotts/slush-template
templates/gulp-tasks/uncss.js
280
module.exports = function (gulp, plugins) { return function () { return gulp.src('.tmp/css/*.css') .pipe(plugins.uncss({ html: ['.tmp/templates/main-body.html', ".tmp/templates/partials/*.html"] })) .pipe(gulp.dest('css')); }; };
mit
ojhaujjwal/OjColorboxModule
src/OjColorboxModule/Exception/ExceptionInterface.php
77
<?php namespace OjColorboxModule\Exception; interface ExceptionInterface {}
mit
DuckDeck/blog
server/sqlhelp/tableSql.js
18983
const sqls = { createDB:[`CREATE DATABASE IF NOT EXISTS blog`,`use blog`,`ALTER DATABASE blog DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci`], createArticleTb:`CREATE TABLE IF NOT EXISTS article ( article_id smallint(5) NOT NULL AUTO_INCREMENT COMMENT '日志自增ID号', article_name varchar(128) NOT NULL COMMEN...
mit
tonyhhyip/ysitd-cloud-portal
app/Models/IssueComment.php
231
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class IssueComment extends Model { public $incrementing = false; public function comment() { return $this->belongsTo(Issue::class); } }
mit
reviewboard/rb-gateway
repositories/hg_test.go
8906
package repositories_test import ( "fmt" "os" "path/filepath" "testing" "github.com/go-ini/ini" "github.com/stretchr/testify/assert" "github.com/reviewboard/rb-gateway/helpers" "github.com/reviewboard/rb-gateway/repositories/events" ) func TestHgGetName(t *testing.T) { repo, client := helpers.CreateHgRepo(...
mit
XsErG/novaposhta_warehouses
lib/novaposhta_warehouses/version.rb
52
module NovaposhtaWarehouses VERSION = "0.0.1" end
mit
Shipow/angular-strap
src/directives/button.js
3812
angular.module('$strap.directives') .directive('bsButton', ['$parse', '$timeout', function($parse, $timeout) { 'use strict'; return { restrict: 'A', require: '?ngModel', link: function postLink(scope, element, attrs, controller) { // If we have a controller (i.e. ngModelController) then wire it up if(...
mit
Sufflavus/Colibri
tests/spec/array-spec.js
27733
describe("Array 'last'", function() { it("is a function of 'Array' prototype", function() { var actual = Array.prototype.last instanceof Function; expect(actual).toBeTruthy(); }); it("is a function of '[]'", function() { var actual = [].last instanceof Function; ...
mit
KeithMcLoughlin/Book-Reservation-Website
reserved.php
4458
<html> <head> <title>My Reserved Books</title> <link rel="stylesheet" type="text/css" href="library.css" /> </head> <body> <?php //connect to database $db = mysql_connect('localhost', 'root', '') or die(mysql_error()); if($db == FALSE) die('Fail message'); ?> <!--Title at the top of page--> <div clas...
mit
greghoover/gluon
hase/hase.ClientUI.XFApp/hase.ClientUI.XFApp/TypedClient/CalculatorPage.xaml.cs
1779
using hase.AppServices.Calculator.Client; using hase.AppServices.Calculator.Contract; using hase.DevLib.Framework.Relay.Proxy; using hase.Relays.Signalr.Client; using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace hase.ClientUI.XFApp { [XamlCompilation(XamlCompilationOptions.Compile)] public parti...
mit
jomjose/js-algorithms
queues/queues (11).js
339
var nums = []; for (var i = 0; i < 10; ++i) { nums[i] = Math.floor(Math.random() * 11); } dispArr(nums); print(); putstr("Enter a value to search for: "); var val = parseInt(readline()); if (seqSearch(nums, val)) { print("Found element: "); print(); dispArr(nums); } else { print(val + " is ...
mit
robledop/Blog
Blog.DataAccess/Repositories/CommentRepository.cs
293
using Blog.DataAccess.Interfaces; using Blog.Model.DomainModels; namespace Blog.DataAccess.Repositories { public class CommentRepository : RepositoryBase<Comment>, ICommentRepository { public CommentRepository(ApplicationDbContext db) : base(db) { } } }
mit
svil4ok/validation
src/Rules/Same.php
1052
<?php namespace SGP\Validation\Rules; use SGP\Validation\Contracts\Rule; use SGP\Validation\Helpers\Arr; class Same implements Rule { use RuleTrait; /** * @var string */ protected $message = "The :attribute value must be the same as the :other-attribute value"; /** * @var string ...
mit
ceolter/angular-grid
community-modules/core/dist/cjs/context/beanStub.js
6426
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.0.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = argument...
mit
TryGhost/Ghost-CLI
packages/ghost-cli/test/unit/commands/install-spec.js
23471
const {expect} = require('chai'); const sinon = require('sinon'); const proxyquire = require('proxyquire').noCallThru(); const Promise = require('bluebird'); const path = require('path'); const fs = require('fs-extra'); const modulePath = '../../../lib/commands/install'; const errors = require('../../../lib/errors'); ...
mit
wangluojisuan/DataStructuresAndAlgorithms
数据结构与算法经典问题解析/ch04/040603ListStack/src/com/jw/stack/ListStack.java
1540
package com.jw.stack; import javax.swing.text.StyledEditorKit; public class ListStack implements IStack { private SingalList list = new SingalList(); public int pop() throws Exception { if(this.isEmpty()){ throw new Exception("栈已为空,不能再次弹出栈顶元素"); } ListNode tempNode = this...
mit
EscherLabs/Graphene
public/assets/js/vendor/vs/editor/editor.main.nls.zh-tw.js
32191
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.12.0(160c7612faa359c4f196a0f3292a0f2752a1daf5) * Released under the MIT license * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt *------------------------------------...
mit
codeflood/revolver
Revolver.Test/SetField.cs
8137
using NUnit.Framework; using Revolver.Core; using Sitecore; using Sitecore.Data.Items; using Cmd = Revolver.Core.Commands; namespace Revolver.Test { [TestFixture] [Category("SetField")] public class SetField : BaseCommandTest { [TestFixtureSetUp] public void Init() { Sitecore.Context.IsUnitTe...
mit
snackzone/puffs
SamplePuffsApp/db/seeds.rb
2476
class Seed def self.populate User.destroy_all! Post.destroy_all! Comment.destroy_all! zach = User.new(name: "Zach").save tina = User.new(name: "Tina").save breakfast = User.new(name: "Breakfast").save z1 = Post.new(body: "Pufffffffffffssss!!!", author_id: zach.id).save z2 = Post.new(...
mit
wwestrop/MercuryApi
test/MercuryApi.UnitTests/Entities/Customer.cs
370
using System.Collections.Generic; namespace MercuryApi.UnitTests.Entities { public class Customer { public int Id { get; set; } public Address Address { get; set; } public string Name { get; set; } public IEnumerable<Order> Orders { get; set; } public IEnumerable<Review> Reviews { get; set; } publi...
mit
mcortesi/react-remote-render
.storybook/msg-logger/register.tsx
1773
import * as React from 'react'; import addons from '@storybook/addons'; import { CHANNEL_ID, PANEL_ID } from './constants'; const styles: {[k:string]: React.CSSProperties} = { notesPanel: { margin: 10, fontFamily: 'Arial', fontSize: 14, color: '#444', width: '100%', overflow: 'auto', }, m...
mit
151706061/Nancy
src/Nancy.Tests/Unit/Bootstrapper/Base/BootstrapperBaseFixtureBase.cs
5598
#if !__MonoCS__ namespace Nancy.Tests.Unit.Bootstrapper.Base { using System; using Nancy.Bootstrapper; using Nancy.Routing; using Xunit; /// <summary> /// Base class for testing the basic behaviour of a bootstrapper that /// implements either of the two bootstrapper base classes. ...
mit