repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
zalatnaicsongor/discount-warehouse-popular-purchases
src/main/java/hu/zalatnai/discountwarehouse/products/ProductsConfiguration.java
466
package hu.zalatnai.discountwarehouse.products; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration @ConfigurationProperties(prefix = "dw.products") public class ProductsConfiguration { private String baseUrl; ...
mit
jeneratejs/jenerate
lib/utils/read_file.js
429
import path from 'path'; import fs from 'fs'; export default function(relativeFilePath) { const filePath = path.join(process.cwd(), relativeFilePath); return new Promise((resolve, reject) => { fs.access(filePath, fs.R_OK, (err) => { if ( err ) { reject(`Either ${filePath} does not exist, or yo...
mit
linsalrob/EdwardsLab
phage_protein_blast_genera/blast_tax_to_genera.py
2073
""" Read a blast file generated with -outfmt '6 std qlen slen staxids sscinames' and generate a list of taxonomies that match. Our taxonomy has kingdom / phylum / genus / species """ import os import sys import argparse import taxon import re if __name__ == '__main__': parser = argparse.ArgumentParser(descriptio...
mit
Nervanti/eettee
api/manage.py
249
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eettee.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
mit
inosphe/React-Redux-Webpack-starter
src/server/api/index.js
167
'use strict' let express = require('express'); module.exports = function(app){ let router = express.Router(); router.use(require('./v1')(app)); return router; }
mit
sachinlala/SimplifyLearning
algorithms/src/main/java/com/sl/algorithms/search/peakelement/LinearTimePEFinder.java
753
package com.sl.algorithms.search.peakelement; import com.sl.algorithms.core.interfaces.search.PeakElementFinder; /** * <p>Linear time-complexity algorithm to find peak element in a bitonic series.</p> * * @see PeakElementFinder */ public class LinearTimePEFinder<T extends Comparable> implements PeakElementFinder<...
mit
sansicoin/sansicoin
src/qt/bitcoingui.cpp
30170
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "optionsdialog.h" #include "abou...
mit
timeanddate/libtad-net
TimeAndDate.Services.Tests/IntegrationTests/async/DSTServiceTests.cs
7599
using System; using System.Threading.Tasks; using System.Linq; using NUnit.Framework; using TimeAndDate.Services.Tests; using TimeAndDate.Services; using TimeAndDate.Services.DataTypes.DST; using TimeAndDate.Services.DataTypes; namespace TimeAndDate.Services.Tests.IntegrationTests { [TestFixture()] public class DSTS...
mit
littlewin-wang/Baidu_IFE
task32/js/main.js
8361
function addEvent(elem, type, func) { //兼容浏览器差异 if (elem.addEventListener) { elem.addEventListener(type, func); } else if (elem.attachEvent) { elem.attachEvent("on" + type, func); } else { elem["on" + type] = func; } } function $(id){ //getElementById好长啊,每次写好累的。 return document.getElementById(id); } var ...
mit
Thuata/ComponentBundle
Tests/Resources/OtherSingleton.php
1454
<?php /* * The MIT License * * Copyright 2015 Anthony Maudry <anthony.maudry@thuata.com>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without lim...
mit
CKGrafico/Cordova-Multiplatform-Template
App/modules/core/interfaces/iLoadingService.ts
126
module Core { 'use strict'; export interface ILoadingService { show(): void, hide(): void } }
mit
fretelweb/obfuscar
Obfuscar/EventKey.cs
3627
#region Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com> /// <copyright> /// Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com> /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Sof...
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.17.2/pjax-base/pjax-base-coverage.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:d2ffb3a44289a644d12305d24f1aa25fe95db7cecd5288c179a448fe24dcaec5 size 37731
mit
justaniles/smart-home-portal
src/app/accounts/lifx/lifx.component.ts
1127
import { FORM_DIRECTIVES } from "@angular/forms"; import { ViewEncapsulation, Component } from "@angular/core"; import { Router } from "@angular/router"; import { HomeService } from "../../homes"; import { GriddleConstants, GriddleService, RequestMethod } from "../../shared/griddle" @Component({ selec...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_container_service/lib/2017-07-01/generated/azure_mgmt_container_service/models/resource.rb
2954
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ContainerService::Mgmt::V2017_07_01 module Models # # The Resource model definition. # class Resource include MsRestA...
mit
compactcode/static_sync
spec/storage_cache_spec.rb
2066
require "./lib/static_sync/storage_cache" module StaticSync describe StorageCache do let(:path) { "index.html" } let(:version_one) { StorageCache::Version.new(path, "0cc175b9c0f1b6a831c399e269772661") } let(:version_two) { StorageCache::Version.new(path, "92eb5ffee6ae2fec3ad71c777531578f") } let(:...
mit
keepwalking1234/neocoin
src/qt/locale/bitcoin_lv_LV.ts
115935
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About neocoin</source> <translation type="unfinished"/> </message> <message> <location lin...
mit
akashgangil/Tiger
src/TigerWhile.java
1327
import java.util.*; import org.antlr.runtime.tree.*; public class TigerWhile extends TigerStatement { private TigerExpression condition; private List<TigerStatement> statements; public static TigerWhile fromAstNode(CommonTree whileTree, TigerScope scope) throws Exception { List<TigerSt...
mit
ashutoshrishi/slate
packages/slate/benchmark/models/to-json.js
495
/** @jsx h */ /* eslint-disable react/jsx-key */ import h from '../../test/helpers/h' export default function(value) { value.toJSON() } export const input = ( <value> <document> {Array.from(Array(10)).map(() => ( <quote> <paragraph> <paragraph> This is editab...
mit
albertoconnor/website
articles/migrations/0001_initial.py
7175
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.db.models.deletion import modelcluster.fields import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtailembeds.blocks import wagtail.wagtailimages.blocks from django.db import migrations, models import articl...
mit
changbenny/leopard
src/schedule.js
1078
import emitter from './emitter' var queue = [] var counter = 0 var levels = 1000 for (let i = 0; i < levels; i ++) queue.push([]) export function run(count) { for (var i = 0; i < queue.length; i ++) { if (count < 1) break var level = queue[i] while (level.length) { if (count < 1) break coun...
mit
alagalia/CSharp-OOP-Advanced-New
Interfaces and Abstraction/Interfaces/02. Multiple Implementation/MultipleImplementation.cs
1919
using System; namespace _02.Multiple_Implementation { using System.Reflection; public class MultipleImplementation { public static void Main() { Type identifiableInterface = typeof(Citizen).GetInterface("IIdentifiable"); Type birthableInterface = typeof(Citizen)...
mit
zreyn/p3_web
public/js/p3/widget/app/PhylogeneticTree.js
16138
define([ 'dojo/_base/declare', 'dojo/on', 'dojo/dom-class', 'dojo/text!./templates/PhylogeneticTree.html', './AppBase', 'dojo/dom-construct', 'dijit/registry', 'dojo/_base/lang', 'dojo/domReady!', 'dojo/query', 'dojo/dom', 'dijit/Dialog', '../../WorkspaceManager', 'dojo/when' ], function ( declare, on, domCla...
mit
kwschultz/PyVC
pyvc/vcsimdata.py
16630
#!/usr/bin/env python import numpy as np import sys import math import Queue import multiprocessing import time import tables from vcutils import EventDataProcessor import quakelib #------------------------------------------------------------------------------- # A class that manages the connection to a simulation ...
mit
mingkaic/rocnnet
app/tenncor/declare/tensor.cpp
318
// // Created by Mingkai Chen on 2017-03-12. // #include "tensor/tensor.hpp" #include "tensor/tensor_handler.hpp" namespace nnet { template class assign_func<double>; template class transfer_func<double>; template class const_init<double>; template class rand_uniform<double>; template class tensor<double>; }
mit
nicolaslopezj/meteor-apollo-accounts
meteor-server/src/Mutation/oauth/loginWithFacebook.js
824
import resolver from './resolver' import {HTTP} from 'meteor/http' const handleAuthFromAccessToken = function ({accessToken}) { const identity = getIdentity(accessToken) const serviceData = { ...identity, accessToken } return { serviceName: 'facebook', serviceData, options: {profile: {nam...
mit
cuckata23/wurfl-data
data/spice_mi_451_ver1_subu2k8.php
206
<?php return array ( 'id' => 'spice_mi_451_ver1_subu2k8', 'fallback' => 'spice_mi_451_ver1', 'capabilities' => array ( 'mobile_browser' => 'UCWeb', 'mobile_browser_version' => '8', ), );
mit
Bananacoindev/Bananacoin
src/qt/locale/bitcoin_ro_RO.ts
132128
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About bananacoin</source> <translation>Despre bananacoin</translation> </message> <message> ...
mit
nilskp/scuff
src/main/scala/scuff/LRUOffHeapCache.scala
1670
package scuff import java.util.concurrent.locks._ import java.nio._ import scala.concurrent.duration._ /** * This cache allows you to store arbitrary sized objects off * the JVM heap, thereby not affecting GC times. */ final class LRUOffHeapCache[K, V]( maxCapacity: Int, ser: Serializer[V], val defa...
mit
maartenvangelder/AliceBox
api/controllers/MemberController.js
2412
/** * MemberController * * @module :: Controller * @description :: A set of functions called `actions`. * * Actions contain code telling Sails how to respond to a certain type of request. * (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL) *...
mit
Galbar/tiled-map
include/tiled/TileLayer.hpp
959
#ifndef TILED_TILELAYER_HPP #define TILED_TILELAYER_HPP #include <vector> #include <string> #include "Layer.hpp" namespace tiled { class Map; class Tile; class TileLayer : public Layer { public: enum class Encoding { LUA, BASE64, COUNT }; enum class Compression { NONE, ZLIB, GZIB, COUNT }; TileLayer(); ...
mit
willvincent/laravel-rateable
tests/Database/migrations/PostMigrator.php
650
<?php namespace willvincent\Rateable\Tests\Database\migrations; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class PostMigrator extends Migration { /** * Run the migrations. */ public function up() { Schem...
mit
tonysneed/AdvDotNet.Samples
src/07-Web API Architecture/3-Async/After/WebApiQuickstart/Controllers/ValuesController.cs
2832
using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using WebApiQuickstart.Models; namespace WebApiQuickstart.Controllers { [RoutePrefix("api/values")] public class ValuesController : ApiController { ...
mit
c3-ls/Ahoy
test/WebSites/VirtualDirectory/Controllers/CrudActionsController.cs
1302
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; namespace VirtualDirectory.Controllers { [Route("/products")] [Produces("application/json")] public class CrudActionsController { [HttpPost] public int Create([FromBody, Requi...
mit
sutter-dave/ApogeeJS
web/prosemirror/devimports/prosemirror-inputrules.es.js
60
export * from "../repos/prosemirror-inputrules/src/index.js"
mit
qtvideofilter/streamingcoin
src/qt/locale/bitcoin_cy.ts
110079
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About phreak</source> <translation type="unfinished"/> </message> <message> <location line="+...
mit
komitoff/Java-DB-Fundamentals
softuni_game_store/src/main/java/game_store/serviceImpl/GameServiceImpl.java
185
package game_store.serviceImpl; import game_store.service.GameService; import org.springframework.stereotype.Service; @Service public class GameServiceImpl implements GameService { }
mit
allanesquina/version
src/version.js
191
;(function( doc, win ) { 'use strict'; function module() { } var proto = module.prototype; proto.version = '@VERSION'; console.log( new module().version ) })( document, window );
mit
renhongl/Summary
demo-javascript/js-jingjie/section-three.js
1170
function isEven(n) { if (n === 0) { return true; } else if (n === 1) { return false; } else { return this.isEven(n - 2); } } function countChar(str, char) { let count = 0; const countFn = (str, char) => { if(str.length > 1){ if (str.charAt(str.leng...
mit
Sioweb/Sioweb-MVC
app/views/Test/add.php
458
<?php $this->_title = 'Eintrag hinzufügen'; ?> <h2>Eintrag hinzufügen</h2> <form action="<?php echo $this->path_to('create');?>" method="post"> <fieldset> <?php foreach($this->data as $field) echo $field;?> <?php $Form = \sioweb\core\Form::getInstance(); echo $Form->generate(['name'=>'submit','type'=>'submit...
mit
GroganBurners/ferveo
controllers/message.js
2314
const nodemailer = require("nodemailer"); const Router = require("express"); const config = require("../config"); const logger = require("winston"); var rp = require("request-promise"); var ok = require("./utils").ok; var fail = require("./utils").fail; module.exports = class MessageController { constructor() { ...
mit
WeAreOneTeam/DesignPatterns
src/team/struct/decorator/Person.java
392
package team.struct.decorator; //定义被装饰者,被装饰者初始状态有些自己的装饰 public class Person implements Human { @Override public void wearClothes() { // TODO Auto-generated method stub System.out.println("穿什么呢。。"); } @Override public void walkToWhere() { // TODO Auto-generated method stub System.out.println("去哪里呢。。"); ...
mit
angelf/escargot
test/index_options_test.rb
853
# coding: utf-8 require 'test_helper' class CustomIndexOptions < Test::Unit::TestCase load_schema class User < ActiveRecord::Base elastic_index( :updates => false, :index_options => { "analysis.analyzer.default.tokenizer" => 'standard', "analysis.analyzer.default.filter" => ["stan...
mit
ledlogic/blakes7-rpg
js/st/st-stat.js
1076
/* st-stat.js */ st.stat = { descriptions: { "str": "Physical power, ability to lift and carry and to apply force.", "siz": "Physical build, a composite measure of the character's height and weight.", "end": "Physical stamina: ability to physically exert over a period of time.", "ini": "Speed of reflexes: abi...
mit
sdl/groupsharekit.net
Sdl.Community.GroupShareKit/Models/Response/TranslationMemory/Metadata.cs
367
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sdl.Community.GroupShareKit.Models.Response.TranslationMemory { public class Metadata { /// <summary> /// Gets or sets metadata key /// </summary> publi...
mit
feinsteinben/normalizr
normalizr/normalizr.py
8408
from __future__ import absolute_import, unicode_literals import codecs import logging import os import re import string import sys import unicodedata import normalizr.regex as regex path = os.path.dirname(__file__) DEFAULT_NORMALIZATIONS = [ 'remove_extra_whitespaces', 'replace_punctuation', 'replace_symbols', ...
mit
nbehier/MyEncryptedData
src/App/Lib/FileFinder.php
3240
<?php namespace App\Lib; use Symfony\Component\Finder\Finder; use App\Lib\EncryptFile; class FileFinder { /** * List YAML files */ public static function listFiles($sPath, $bLoadContent = true) { $aFiles = array(); $finder = new Finder(); $finder->files()->in($sPath)->d...
mit
aduyng/let-us-meet
app/templates/helpers/avatar50.js
458
/** * Created by Duy A. Nguyen on 3/30/2014. */ 'use strict'; define('templates/helpers/avatar50', ['hbs/handlebars', 'models/user'], function(Handlebars, User) { if (!window.avatar50) { window.avatar50 = function(input) { return '<img src="' + User.getAvatarUrl(input) + '" class="img-circle avat...
mit
dataform-co/dataform
docs/layouts/documentation.tsx
5029
import { Button, Switch } from "@blueprintjs/core"; import * as React from "react"; import { Card, CardActions, CardMasonry } from "df/components/card"; import { Footer } from "df/docs/components/footer"; import Navigation, { getLink } from "df/docs/components/navigation"; import { IHeaderLink, PageLinks } from "df/do...
mit
amphp/aerys
lib/BodyParser.php
19471
<?php namespace Aerys; use Amp\ByteStream\InMemoryStream; use Amp\ByteStream\InputStream; use Amp\ByteStream\IteratorStream; use Amp\ByteStream\PendingReadError; use Amp\Coroutine; use Amp\Deferred; use Amp\Emitter; use Amp\Promise; use Amp\Success; class BodyParser implements InputStream, Promise { /** @var \Am...
mit
portchris/NaturalRemedyCompany
src/app/code/core/Mage/XmlConnect/Block/Customer/Order/Totals/Customerbalance/Refunded.php
2884
<?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
noherczeg/RestExt
src/Noherczeg/RestExt/Entities/AuthorizationSupport.php
206
<?php namespace Noherczeg\RestExt\Entities; interface AuthorizationSupport { /** * Returns an array of Role names for a User * * @return array */ public function roles(); }
mit
wladi0097/pdfV
demo/main.js
129
var dom = document.getElementById('pdfViewer') var myPage = pdfV.new({file: './demo/yes.pdf', dom: dom}, function() { })
mit
Bolt64/my_code
Code Snippets/electronics_notes_expander.py
716
#!/usr/bin/env python from commands import getoutput import os def unzip_file(zip_name): getoutput("unzip {0}".format(zip_name)) return zip_name[:-4] def sanitize_filename(filename): s="" for char in filename: if char==" ": s+="\ " else: s+=char return s ...
mit
ethereum/remix
remix-debug/src/solidity-decoder/types/DynamicByteArray.js
2278
'use strict' const util = require('./util') const remixLib = require('remix-lib') const sha3256 = remixLib.util.sha3_256 const BN = require('ethereumjs-util').BN const RefType = require('./RefType') class DynamicByteArray extends RefType { constructor (location) { super(1, 32, 'bytes', location) } async dec...
mit
mdlayher/aoe
fuzz.go
217
// +build gofuzz package aoe func Fuzz(data []byte) int { h := new(Header) if err := h.UnmarshalBinary(data); err != nil { return 0 } if _, err := h.MarshalBinary(); err != nil { panic(err) } return 1 }
mit
egmkang/SharpServer
src/UnitTest/Grain/RankGrainTest.cs
2356
// Copyright (c) egmkang wang. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace T2 { using System; using System.Linq; using Xunit; using SharpServer.SDK; using SharpServer.GrainInterfaces; using SharpServer.Gra...
mit
zorrodg/node-scraper
server.js
1163
var server = require('express')(), request = require('request'), cheerio = require('cheerio'), detail = require('./functions/detail'), list = require('./functions/list'); server.get('/scrape/:type', function(req, res) { var url = req.param('url'), type = req.param('type'); // URL to scrape if...
mit
relayr/java-sdk
src/main/java/io/relayr/java/helper/observer/TimeZoneUtil.java
1164
package io.relayr.java.helper.observer; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import java.util.logging.Level; import java.util.logging.Logger; public class TimeZoneUtil { private static final int TZ_OFFSET = TimeZone.getDefault().getRawOffset(); private static f...
mit
jkeifer/pyHytemporal
old_TO_MIGRATE/get_ref_values.py
3434
__author__ = 'phoetrymaster' from osgeo import gdal from osgeo.gdalconst import * import sys def get_reference_values(imagepath, refstoget): from math import floor gdal.AllRegister() img = gdal.Open(imagepath, GA_ReadOnly) if img is None: raise Exception("Could not open " + imagepath) ba...
mit
teamtam/xamarin-forms-timesheet
TimesheetXF/TimesheetXF.WinPhone/App.xaml.cs
9052
using System; using System.Diagnostics; using System.Resources; using System.Windows; using System.Windows.Markup; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using TimesheetXF.WinPhone.Resources; namespace TimesheetXF.WinPhone { public partial class App : Applica...
mit
rickytan/UIAutomationJS
UIABaseType.js
471
/** * The CGPoint type in iOS * @constructor */ var Point = function () { }; Point.prototype = { x: 0, y: 0 }; /** * The CGSize type in iOS * @constructor */ var Size = function () { }; Size.prototype = { width: 0, height: 0 }; /** * The CGRect type in iOS * @constructor */ var Rect = funct...
mit
myhgew/CodePractice
Android/AndroidCourse/Programming Mobile Applications for Android Handheld Systems/W3 Intents, Permissions, and the Fragments Class/FragmentDynamicLayout/src/course/examples/Fragments/DynamicLayout/QuoteViewerActivity.java
4651
package course.examples.Fragments.DynamicLayout; import android.app.Activity; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.os.Bundle; import android.util.Log; import android.widget.FrameLayout; import android.widget.LinearLayout; import course.examples.Fragments.DynamicLay...
mit
apizzimenti/funk
lib/functions/methods/groupByValue.js
1371
/** * Created by apizzimenti on 9/3/16. */ var _throwError = require("./throwError"), quicksort = require("../../structures").quicksort; /** * @author Anthony Pizzimeti * @desc Sorts the elements of the array and groups them in place. Does not apply typechecking, so values will be coerced. * @param {Array} a...
mit
kneath/greed
framework/merb-core/spec/public/abstract_controller/partial_spec.rb
1758
require File.join(File.dirname(__FILE__), "spec_helper") describe Merb::AbstractController, " Partials" do it "should work with no options" do dispatch_should_make_body("BasicPartial", "Index Partial") end it "should work with :with" do dispatch_should_make_body("WithPartial", "Partial with With") ...
mit
Petr-By/qtpyvis
qtgui/panels/gan.py
15019
""" File: styltransfer.py Author: Ulf Krumnack Email: krumnack@uni-osnabrueck.de """ # standard imports import logging import random # third-party imports import numpy as np # Qt imports from PyQt5.QtCore import Qt, pyqtSlot from PyQt5.QtWidgets import QPushButton, QSlider from PyQt5.QtWidgets import QLabel, QGroupB...
mit
taskandtool/saas-starter
app/components/Users/UserList.js
604
import React, { PropTypes } from 'react'; import UserItem from './UserItem.js'; export default class UserList extends React.Component { static propTypes = { users: React.PropTypes.array } render() { let users = this.props.users.map((user) => { let email = user.emails && user.emails[0].address ? us...
mit
cbarbat/Mathematica-Parser
src/main/java/de/cbarbat/mathematica/parser/parselets/TagSetParselet.java
4204
/* * Copyright (c) 2013 Patrick Scheibe & 2016 Calin Barbat * * 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
Predator01/potential-adventure
mysite/polls/urls.py
190
from django.conf.urls import include, url, patterns from polls import views urlpatterns = [ url(r'^home/$', views.home, name='home'), url(r'^about/$', views.about, name='about'), ]
mit
PaulNoth/hackerrank
practice/algorithms/bit_manipulation/flipping_bits/FlippingBits.java
467
import java.util.Scanner; public class FlippingBits { private static int MAX = 0b11_111_111_111_111_111_111_111_111_111_111; public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int tests = Integer.parseInt(stdin.nextLine()); for(int i = 0; i < tests; i++) { int input = (i...
mit
caioroque/Asp.Net.Aulas
Projeto/Projeto/ViewSwitcher.ascx.designer.cs
437
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------...
mit
timsuchanek/lycheeJS
tool/configure.js
10977
#!/usr/bin/env nodejs (function() { (function() { if (typeof String.prototype.trim !== 'function') { String.prototype.trim = function() { return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); }; } })(); var _fs = require('fs'); var _package = null; var _path = require('path'...
mit
TinkerPatch/tinkerpatch-sdk
tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/tinker/callback/ResultCallBack.java
1389
/* * The MIT License (MIT) * * Copyright (c) 2013-2016 Shengjie Sim Sun * * 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 ...
mit
gjoshevski/Cabbage-Phonegap-App-generator
public/modules/bcards/controllers/bcards.client.controller.js
1836
'use strict'; // Bcards controller angular.module('bcards').controller('BcardsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Bcards', function($scope, $stateParams, $location, Authentication, Bcards) { $scope.authentication = Authentication; // Create new Bcard $scope.create = function...
mit
fretsonfire/fof-python
src/SvgColors.py
43004
##################################################################### # -*- coding: iso-8859-1 -*- # # # # Frets on Fire # # Copyright (C) 2006 Sami Kyöstilä ...
mit
microsoft/vscode
build/lib/eslint/code-no-unexternalized-strings.ts
4641
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
mikeobrien/graphite
src/Tests/Common/Extensions.cs
8327
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Web.Http; usi...
mit
brunetto/evolve
evolve_test.go
1411
package evolve import ( "testing" ) func Test_ParticleReadFromLine(t *testing.T){ var ( p = &Particle{} check = &Particle{ Mass: 1.000000e+01, Pos: [3]float64{2.000000e+02, 3.000000e+03, 4.000000e+04}, Vel: [3]float64{5.000000e+05, 6.000000e+06, 7.000000e+07}, } ) err := p.ReadFromLine("1...
mit
HPSoftware/hpaa-octane-dev
src/test/java/com/microfocus/application/automation/tools/sse/sdk/TestTestSetRunHandler.java
3421
/* * Certain versions of software and/or documents ("Material") accessible here may contain branding from * Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, * the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to ...
mit
avalanche-development/approach
tests/unit/src/Schema/HeaderTest.php
9677
<?php namespace AvalancheDevelopment\Approach\Schema; use AvalancheDevelopment\Approach\TestHelper\SetPropertyTrait; use PHPUnit_Framework_TestCase; class HeaderTest extends PHPUnit_Framework_TestCase { use SetPropertyTrait; public function testGetDescriptionReturnsDescription() { $description ...
mit
Tekkeitsertok/openpost
openpost/Models/Author.cs
913
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace openpost.Models { public class Author { [Key] [MaxLength(22)] public string Id { get; set; } [MaxLength(22)] public string TokenId { get; set; } public string PlatformId {...
mit
ybakos/boom
lib/boom/item.rb
1805
# coding: utf-8 # The representation of the base unit in boom. An Item contains just a name and # a value. It doesn't know its parent relationship explicitly; the parent List # object instead knows which Items it contains. # module Boom class Item # Public: the String name of the Item attr_accessor :nam...
mit
nelsonwellswku/Yahtzee
Application/Framework/DiceCombinationValidators/IFullHouseValidator.cs
206
using System.Collections.Generic; namespace Octogami.Yahtzee.Application.Framework.DiceCombinationValidators { public interface IFullHouseValidator { bool IsValid(IEnumerable<IDie> diceValues); } }
mit
thushanp/thushanp.github.io
vendor/twilio/sdk/Twilio/Rest/Api/V2010/AccountContext.php
18155
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010; use Twilio\Exceptions\TwilioException; use Twilio\InstanceContext; use Twilio\Options; use Twilio\Rest\Api\V2010\Account\AddressList; use Twilio\Rest\Api\...
mit
Pip3r4o/Zatvoreno
SantaseGameEngine/ZatvorenoAI/PlayFirstStrategy/CardStatistics/CardStatistic.cs
700
namespace ZatvorenoAI.PlayFirstStrategy.CardStatistics { using Santase.Logic.Cards; public class CardStatistic { public CardStatistic(int worth, int canTake, int taken3, int lengthOfSuit, Card card ) { this.CardWorth = worth; this.CanTakeCount = canTake; ...
mit
ComPHPPuebla/sf2workshop
src/Framework/Events/ProvidesEvents.php
433
<?php namespace Framework\Events; use Symfony\Component\EventDispatcher\EventDispatcher; trait ProvidesEvents { /** @var EventDispatcher */ protected $dispatcher; public function setDispatcher(EventDispatcher $dispatcher) { $this->dispatcher = $dispatcher; } public function addListe...
mit
ZucchiniZe/flux-people
scripts/alt.js
145
import Alt from 'alt'; // Initiate new alt object const alt = new Alt(); alt.dispatcher.register(console.log.bind(console)) export default alt;
mit
virtacoin/VirtaCoinProject
src/qt/locale/virtacoin_cy.ts
133268
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About VirtaCoin Core</source> <translation type="unfinished"/> </message> <message> <location...
mit
AlexPodobed/Angular2.0
src/app/core/services/storage/storage.service.ts
416
import { Injectable } from '@angular/core'; @Injectable() export class StorageService { public static set(key: string, value: any): void { if (value === null) { localStorage.removeItem(key); } else { localStorage.setItem(key, JSON.stringify(value)); } } publ...
mit
wwsun/algorithm-book
src/main/java/me/wwsun/basic/Bag.java
323
package me.wwsun.basic; import java.util.Iterator; public class Bag<E> implements Iterable<E> { @Override public Iterator<E> iterator() { return null; } public void add(E e) { } public boolean isEmpty() { return false; } public int size() { return 0; }...
mit
reidka/Markus
app/controllers/tas_controller.rb
3419
class TasController < ApplicationController include TasHelper before_filter :authorize_only_for_admin layout 'assignment_content' def index end def populate render json: get_tas_table_info end def new @user = Ta.new end def edit @user = Ta.find_by_id(params[:id]) end def destr...
mit
DlhSoftTeam/GanttChartHyperLibrary-Demos
GanttChartHyperLibraryDemos/Demos/Samples/TypeScript/NetworkDiagramView/Printing/app.ts
4542
/// <reference path='./Scripts/DlhSoft.ProjectData.PertChart.HTML.Controls.d.ts'/> import NetworkDiagramView = DlhSoft.Controls.Pert.NetworkDiagramView; import NetworkDiagramItem = NetworkDiagramView.Item; import PredecessorItem = NetworkDiagramView.PredecessorItem; // Query string syntax: ?theme // Supported themes:...
mit
kenjoth/webprojects
src/aznet/dataModelBundle/Controller/UserController.php
5143
<?php namespace aznet\dataModelBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use aznet\dataModelBundle\Entity\User; use aznet\dataModelBundle\Form\UserType; /** * User controller. * */ class UserController extends Controller { /** ...
mit
zeroed/acinus
lib/model/news.rb
884
# lib/model/news.rb require_relative '../util/rss_helper' class News attr_reader :id, :title, :source, :timestamp @@last_headlines = [] def initialize id, title, source = 'rss' @id = id @title = title @source = source @timestamp = Time.now end def self.all if @@last_headlines.empty? ...
mit
dchaib/PronoFoot
src/PronoFoot/ViewModels/DayEditViewModel.cs
263
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace PronoFoot.ViewModels { public class DayEditViewModel { public string DayName { get; set; } public DayFormViewModel Day { get; set; } } }
mit
ThorConzales/AoE2HDLobbyCompanion
Commons/Models/Commands/LogCommand.cs
245
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Commons.Models.Commands { public class LogCommand : BaseCommand { public Log Log { get; set; } } }
mit
JustOpenSource/fatalshootings
src/utils/get-filtered-data-dev.js
242
let data = require('../../data/fe.json'); let filterData = require('./lambda/filter-list-logic'); module.exports = function(filter, cb){ let filteredData = filterData(data.items, filter); cb(null, JSON.stringify({body: filteredData})); }
mit
gmbeard/shared_ptr
scoped_ptr/scoped_ptr.hpp
3525
/* The MIT License (MIT) Copyright (c) 2015 Greg Beard 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, modif...
mit
Reprazent/hound
spec/models/style_guide/ruby_spec.rb
9360
require "attr_extras" require "rubocop" require "sentry-raven" require "fast_spec_helper" require "app/models/style_guide/base" require "app/models/style_guide/ruby" require "app/models/violation" describe StyleGuide::Ruby, "#violations_in_file" do context "with default configuration" do describe "for { and } a...
mit
ximsfei/Android-skin-support
android/skin/src/main/java/skin/support/widget/SkinCompatRatingBar.java
1196
package skin.support.widget; import android.content.Context; import android.util.AttributeSet; import android.widget.RatingBar; import skin.support.R; /** * Created by ximsfei on 17-1-21. */ public class SkinCompatRatingBar extends RatingBar implements SkinCompatSupportable { private SkinCompatProgressBarHelp...
mit