repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
wgroeneveld/jasmine-junit-runner
src/test/java/be/klak/junit/jasmine/JasmineSuiteGeneratesRunnerTest.java
4095
package be.klak.junit.jasmine; import static org.fest.assertions.Assertions.assertThat; import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.apache.commons.lang.StringUtils; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; i...
mit
ctongfei/nexus
diff/src/main/scala/nexus/diff/ops/control.scala
2089
package nexus.diff.ops import nexus.diff._ import nexus.diff.execution._ import nexus.diff.exception._ import nexus._ /** * Conditional expression. * * @author Tongfei Chen * @since 0.1.0 */ object If extends PolyOp3 { implicit def ifF[X](implicit X: Grad[X]): P[Boolean, X, X, X] = new P[Boolean, X, X, X] { ...
mit
dlidstrom/MinaGlosor
MinaGlosor.Tool/Program.cs
4010
using System; using System.Linq; using Castle.Windsor; using MinaGlosor.Tool.Commands; using MinaGlosor.Tool.Infrastructure; using NDesk.Options; namespace MinaGlosor.Tool { internal class Program { private static void Main(string[] args) { try { ...
mit
OsmondShine/J2SE-DEMO
src/com/xl/designpattern/command/Computer.java
294
package com.xl.designpattern.command; /** * @author 作者:谢亮 * @data 创建时间:2017-5-25 * @description * @version 1.0 */ public class Computer { public void on(){ System.out.println("开电脑!"); } public void off(){ System.out.println("关电脑!"); } }
mit
ggaughan/dee
DeeWebDemo.py
7082
#!/usr/bin/env python """DeeWebDemo: web server and front-end for Dee demoCluster""" __version__ = "0.12" __author__ = "Greg Gaughan" __copyright__ = "Copyright (C) 2007 Greg Gaughan" __license__ = "MIT" #see Licence.txt for licence information import re import webbrowser import mimetypes from Dee import *...
mit
zbw911/DevLib.EFRepository
Framework/Repository/Dev.Framework.Repository.ContainerAdapter.NInject/Properties/AssemblyInfo.cs
1835
// *********************************************************************************** // Created by zbw911 // 创建于:2012年12月18日 13:28 // // 修改于:2013年02月18日 18:24 // 文件名:AssemblyInfo.cs // // 如果有更好的建议或意见请邮件至zbw911#gmail.com // ***********************************************************************************...
mit
thread-Chen/BEsystem
src/main/java/com/cqnu/base/mapper/RoleMapper.java
790
package com.cqnu.base.mapper; import com.cqnu.base.domain.Role; import com.cqnu.base.domain.RoleExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface RoleMapper { long countByExample(RoleExample example); int deleteByExample(RoleExample example); int deleteByPrimar...
mit
aterai/java-swing-tips
NewTabButton/src/java/example/CloseTabIcon.java
1600
// -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import javax.swing.*; class CloseTabIcon implements Icon { private final Color color; protected CloseTabIcon(Color color) { this.color = color; } @Override public void paintIcon(Compone...
mit
Kagami/material-ui
docs/src/pages/discover-more/team/Team.js
4534
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import CardMedia from '@material-ui/core/CardMedia'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; import...
mit
ArnoVanDerVegt/wheel
js/shared/routes/device/SpikeRoutes.js
3240
/** * Wheel, copyright (c) 2020 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const constants = require('../../device/spike/constants'); exports.SpikeRoutes = class { constructor(opts) { this._spike = opts.spike; ...
mit
Zhang-RQ/OI_DataBase
51NOD/1565.cpp
2627
#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #include<algorithm> #include<vector> #include<set> #include<map> #include<queue> #include<stack> #include<cassert> typedef long long ll; typedef unsigned long long ull; using namespace std; const int MAXN=262145<<1;...
mit
therightsol/test2016
application/views/cause-details.php
27653
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Save a Soul | Project</title> <!-- Stylesheets --> <link href="css/bootstrap.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- Responsive --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=devi...
mit
tlanders/javase8
src/main/java/effectivejava/chapter7/Sublists.java
674
package effectivejava.chapter7; import java.util.Collections; import java.util.List; import java.util.stream.IntStream; import java.util.stream.Stream; public class Sublists { public static <E> Stream<List<E>> of(List<E> list) { return Stream.concat(Stream.of(Collections.emptyList()), prefixes(list)....
mit
tenbits/LibJS
html2mask/index.build/script.js
356594
(function(global) { var helper = { each: function(arr, fn) { if (arr instanceof Array) { for (var i = 0; i < arr.length; i++) fn(arr[i]); return; } fn(arr); }, extendProto: function(proto, x) { var prototype; ...
mit
nowireless/MiscMath
src/main/java/org/nowireless/miscmath/RunningVector.java
785
package org.nowireless.miscmath; public class RunningVector implements Vector { private double x; private double y; public RunningVector(double x, double y) { this.x = x; this.y = y; } public RunningVector() { this(0,0); } @Override public double getX() { return this.x; } @Override public dou...
mit
ua-ql/node-opcua
test/misc/test_utils_normalize_require_file.js
316
import should from "should"; import {normalizeRequireFile} from "lib/misc/utils"; describe("normalizeRequireFile", function () { it("should normalizeRequireFile", function () { normalizeRequireFile("/home/bob/folder1/", "/home/bob/folder1/folder2/toto.js").should.eql("./folder2/toto"); }); });
mit
lannocctech/iovar
usr/include/iovar/frame.js
5118
/* * Copyright (C) 2016 Virgo Venture, Inc. * @%@~LICENSE~@%@ * * depends on: common.js, ajax.js */ function turnme (node1, node2, node3) { node1.className += ' rotated'; node2.className += ' rotated'; loadFrame (node3, 'http://localhost:8080/app/work/open?=9', true); } function turnem (node1, node2...
mit
netcredit/NetCreditHub
src/NetCreditHub.Web.Common/Web/Auditing/AuditingInterceptorRegistrar.cs
1302
namespace NetCreditHub.Web.Auditing { using System; using System.Linq; using Castle.Core; using Dependency; internal static class AuditingInterceptorRegistrar { public static void Initialize(IIocManager iocManager) { var auditingConfiguration = iocManager.Resolve<IA...
mit
Ptimagos/swarmui
app/components/hosts/hostsController.js
3313
angular.module('hosts', []) .controller('HostsController', ['$scope', '$routeParams', 'Swarm', 'Container', 'ConsulPrimarySwarm', 'SettingsConsul', 'Settings', 'Messages', 'ViewSpinner', function ($scope, $routeParams, Swarm, Container, ConsulPrimarySwarm, SettingsConsul, Settings, Messages, ViewSpinner) { $sc...
mit
ibestvina/multithread-centiscape
CentiScaPe2.1/src/main/java/org/cytoscape/centiscape/internal/Betweenness/FinalResultBetweenness.java
1759
/* * FinalResultBetweenness.java * * Created on 15 marzo 2007, 18.06 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ /** * * @author scardoni */ package org.cytoscape.centiscape.internal.Betweenness; import org.cytoscape.model.CyNode; public class Fina...
mit
murex/murex-coding-dojo
Beirut/2016/2016-04-27-apu-codingame/src/main/java/APUPlayer.java
1939
import java.util.ArrayList; import java.util.List; import java.util.Scanner; /** * Don't let the machines win. You are humanity's last hope... **/ class APUPlayer { public static void main(String args[]) { Scanner in = new Scanner(System.in); int width = in.nextInt(); // the number of cells on the X ...
mit
tlainevool/eatspection
geo/geoconfig.py
31
google_key_file='~/.google_key'
mit
stanchev/Telerik-Academy
OOP/Defining Classes Part I/MobilePhone/GSMTest.cs
1041
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MobilePhone { class GSMTest { private static List<GSM> CreateHandys() { List<GSM> handys = new List<GSM>(); handys.Add(new GSM("One mini","HTC",...
mit
kompakt/b3d
lib/Details/Populator/Endpoint/Populator.php
1171
<?php /* * This file is part of the kompakt/b3d package. * * (c) Christian Hoegl <chrigu@sirprize.me> * */ namespace Kompakt\B3d\Details\Populator\Endpoint; use Kompakt\B3d\Details\Graph\PopulatorInterface; use Kompakt\B3d\Details\Populator\DataMapperInterface; use Kompakt\B3d\Details\Populator\Endpoint\Endpoin...
mit
skukit/mobac
src/Mobac/Entity/Property/DefaultValue.php
1105
<?php namespace Mobac\Entity\Property; use Mobac\Entity\AbstractEntity; use Mobac\Transformer\Property\DefaultValueTransformer; class DefaultValue extends AbstractEntity { /** * Gets data transformer. * * @return DefaultValueTransformer */ public function getTransformer() { ...
mit
Azure/azure-sdk-for-go
sdk/resourcemanager/quantum/armquantum/build.go
388
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // This file enables 'go generate' to regenerate this specific SDK //go:generate pwsh.exe ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -ti...
mit
awto/effectfuljs
packages/debugger/test/regenerator-time-travel.test.js
218
require("./setup-time-travel"); const { describe, run, opts } = require("./setup-regenerator"); describe("regenerator run", function() { opts.debug = false; run(require("./es-time-travel/links/regenerator")); });
mit
InseeFr/Pogues-Back-Office
src/main/java/fr/insee/pogues/transforms/PipeLine.java
1521
package fr.insee.pogues.transforms; import org.apache.commons.io.IOUtils; import java.io.InputStream; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; import java.util.Map; public class PipeLine { private String output; private List<Runnable> transforms = new ArrayList<>(...
mit
pillfill/pf-java-client
src/main/java/com/apothesource/pillfill/datamodel/rxnorm/interaction/InteractionPair.java
3907
/* * The MIT License * * Copyright 2015 Apothesource, Inc. * * 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, co...
mit
Evrika/Vidal
src/Vidal/VeterinarBundle/Entity/InfoPageRepository.php
3417
<?php namespace Vidal\VeterinarBundle\Entity; use Doctrine\ORM\EntityRepository; class InfoPageRepository extends EntityRepository { public function findByLetter($l) { return $this->_em->createQuery(' SELECT i.InfoPageID, i.RusName, c.RusName Country, i.Name, i.photo FROM VidalVeterinarBundle:Inf...
mit
openstate/ori-search
app/components/constants/constants.js
4117
'use strict'; angular.module('oriApp.constants', ['ngRoute']) .run(['ConstantsService', '$location', '$rootScope', function (ConstantsService, $location, $rootScope) { console.log('now in the run block of the constants module!'); $rootScope.title = 'Blah'; ConstantsService.init(); }]) .factory("ConstantsServic...
mit
Tekstove/Tekstove-api
src/HttpFoundation/RequestIdentificator.php
588
<?php namespace App\HttpFoundation; use Symfony\Component\HttpFoundation\Request; /** * Return hash, identifying current request * * @author po_taka <angel.koilov@gmail.com> */ class RequestIdentificator { public function identify(Request $request) { $ips = $request->getClientIps(); $ipsA...
mit
msemys/esjc
src/test/java/com/github/msemys/esjc/ITReadEventOfLinkToToDeletedEvent.java
1043
package com.github.msemys.esjc; import org.junit.Test; import static org.junit.Assert.*; public class ITReadEventOfLinkToToDeletedEvent extends AbstractEventStoreTest { public ITReadEventOfLinkToToDeletedEvent(EventStore eventstore) { super(eventstore); } @Test public void readsLinkedEvent(...
mit
G-CorpDev/project
doc/doxygen/html/search/classes_4.js
101
var searchData= [ ['idatabasesource',['iDatabaseSource',['../classiDatabaseSource.html',1,'']]] ];
mit
Dainius14/twinder
Settings.cs
1228
namespace Twinder.Properties { // This class allows you to handle specific events on the settings class: // The SettingChanging event is raised before a setting's value is changed. // The PropertyChanged event is raised after a setting's value is changed. // The SettingsLoaded event is rai...
mit
morzhovets/momo
test/tests/libcxx/unord.set/contains.transparent.pass.cpp
2236
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
mit
nexylan/paybox-direct
src/Response/AbstractResponse.php
4129
<?php /* * This file is part of the Nexylan packages. * * (c) Nexylan SAS <contact@nexylan.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Nexy\PayboxDirect\Response; /** * @author Sullivan Senechal <soullivaneuh...
mit
geocoder-php/Geocoder
src/Provider/OpenCage/Tests/OpenCageTest.php
17326
<?php declare(strict_types=1); /* * This file is part of the Geocoder package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ namespace Geocoder\Provider\OpenCage\Tests; use Geocoder\Collection; use Ge...
mit
Squidex/squidex
backend/src/Squidex.Domain.Apps.Core.Model/Schemas/BooleanFieldEditor.cs
498
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
mit
jonaustin/craigslist-housing-mapper
cake/console/libs/templates/skel/config/routes.php
1786
<?php /* SVN FILE: $Id: routes.php 6311 2008-01-02 06:33:52Z phpnut $ */ /** * Short description for file. * * In this file, you set up routes to your controllers and their actions. * Routes are very important mechanism that allows you to freely connect * different urls to chosen controllers and their actions (fun...
mit
kashif/chainer
chainer/functions/array/reshape.py
2875
import chainer from chainer import function_node from chainer.utils import type_check def _count_unknown_dims(shape): cnt = 0 for dim in shape: cnt += dim < 0 return cnt class Reshape(function_node.FunctionNode): """Reshapes an input array without copy.""" def __init__(self, shape): ...
mit
locnguyen/reactjsoc-examples
index.js
594
var Hapi = require('hapi'); var server = new Hapi.Server(); server.connection({ port: 9000 }); server.start(function () { console.log('Hapi server has started at %S' + server.info.uri); }); server.route({ path: '/', method: 'GET', handler: function (request, reply) { reply.redirect('/exa...
mit
seekmas/fun
src/Mc/AdminBundle/DependencyInjection/Configuration.php
871
<?php namespace Mc\AdminBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony.co...
mit
stingchang/CS_Java
src/CC150/Ch2_LinkedList/Q2_Return_Kth_to_Last.java
433
package CC150.Ch2_LinkedList; public class Q2_Return_Kth_to_Last { public Node kLast(Node node, int k) { Node tmp = node; for (int i = 0; i < k; i++) { if (tmp != null) tmp = tmp.next; else break; } if (tmp == null) return null; while ...
mit
AerisG222/SizePhotos
src/SizePhotos/Minification/StripMetadataPhotoProcessor.cs
732
using System.Threading.Tasks; namespace SizePhotos.Minification { public class StripMetadataPhotoProcessor : IPhotoProcessor { public IPhotoProcessor Clone() { return (IPhotoProcessor) MemberwiseClone(); } public Task<IProcessingResult> ProcessPhotoAsync(P...
mit
umbc-hackafe/sign-drivers
python/fontdemo.py
1765
#!/usr/bin/env python3 import sys, argparse, json def render(dimensions, tflist): strmatrix = [] # Split the flat tflist up into a matrix for rownum, row in enumerate((tflist[i:i+dimensions[0]] for i in range(0, len(tflist), dimensions[0]))): strmatrix.append([]) for colnum, p...
mit
raelcun/rust_tutorials
embed/src/embed.js
122
var ffi = require('ffi'); var lib = ffi.Library('target/release/libembed', { 'process': ['void', []] }); lib.process();
mit
Armature/Server
Handlers/Main.php
943
<?php /* +----------------------------------------------------------------------+ | Armature | +----------------------------------------------------------------------+ | Website: http://armature.pw | | Github:...
mit
qlik-oss/halyard.js
src/table.js
4476
import defaultConnectionMatcher from './default-connection-matcher'; import formatSpecification from './utils/format-specification'; import { escapeText, validFieldType, indentation } from './utils/utils'; class Table { /** * Table definition * @public * @class * @param {Connection} connection * @para...
mit
Fillll/reddit2telegram
reddit2telegram/channels/~inactive/r_nottheonion/app.py
145
#encoding:utf-8 subreddit = 'nottheonion' t_channel = '@r_nottheonion' def send_post(submission, r2t): return r2t.send_simple(submission)
mit
Miz85/react-boilerplate
src/actions/actions.js
139
import * as types from '../constants/ActionTypes'; export function exampleActionCreator(){ return { type: types.EXAMPLE_ACTION_TYPE } }
mit
benoror/ag-grid
src/ts/filter/filterManager.ts
16470
/// <reference path="../utils.ts" /> /// <reference path="textFilter.ts" /> /// <reference path="numberFilter.ts" /> /// <reference path="setFilter.ts" /> /// <reference path="../widgets/agPopupService.ts" /> /// <reference path="../widgets/agPopupService.ts" /> /// <reference path="../grid.ts" /> /// <reference path="...
mit
tjuscs/english
src/com/demo/biz/interceptors/TeacherAuthInterceptor.java
627
package com.demo.biz.interceptors; import com.demo.biz.teacher.TeacherController; import com.jfinal.aop.Interceptor; import com.jfinal.aop.Invocation; import com.jfinal.core.Controller; /** * Created by YanZ on 16/10/4. */ public class TeacherAuthInterceptor implements Interceptor { @Override public void i...
mit
leonardoporro/Detached
src/Detached/Model/Types/Dictionary/DictionaryOptionsFactory.cs
697
using AgileObjects.ReadableExpressions.Extensions; using Detached.Reflection; using System; namespace Detached.Model.Types.Dictionary { public class DictionaryOptionsFactory : ITypeOptionsFactory { readonly DictionaryTypeOptions _typeOptions = new DictionaryTypeOptions(); public ITypeOptions ...
mit
robotdongs/robotdongs.github.io
rsvp.js
3433
//Builds the overlay to show the RSVP form. Could be a seperate web page but this was more fun. $(document).ready(function(){ buildRSVP(); $('#cancel').click(function(){ ccForm(); }) $("#sbmtBtn").click(function(){ validate(); }) }); function buildRSVP(){ var i, div, f...
mit
afreewill333/PAT-Basic-Level-PractiseCode
PAT1011.java
496
import java.util.*; import java.io.*; import java.math.*; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int T = in.nextInt(); for(int i=1;i<=T;i++) { BigDecimal A,B,C; A = in.nextBigDecimal(); B = in.nextBigDecimal(); C = in.ne...
mit
depsir/motorcontrolboard
lib/motorcontrolboard/mcb_connection.rb
2602
#!/usr/bin/env ruby require "serialport" class MotorControlBoard # Descriptor of the vid/pid of the board. Something like '10c4:ea60'. # Can be obtained through a command like 'lsusb'. # # Setting this variable allow to discover the port where the board is conencted automatically attr_accessor :vidpid ...
mit
amecky/breakout
TMP/MainGameState.cpp
9673
#include "MainGameState.h" #include <core\log\Log.h> #include "..\Constants.h" #include <core\math\Bitset.h> #include <core\io\FileRepository.h> #include "..\WarpingGrid.h" MainGameState::MainGameState(GameContext* context) : ds::GameState("MainGameState") , _context(context) { _paddle = (Paddle*)ds::game::get_game_o...
mit
Eptwalabha/shmup
MysteryBazookaDisaster/src/main/java/src/components/Friction.java
421
package src.components; import com.artemis.Component; /** * User: Eptwalabha * Date: 07/02/14 * Time: 14:53 */ public class Friction extends Component { private float friction; public Friction(float friction) { this.friction = friction; } public float getFriction() { return fric...
mit
fcc-joemcintyre/pinster
app/client/src/lib/Form/FormFieldGroup.js
111
import styled from 'styled-components'; export const FormFieldGroup = styled.div` display: inline-block; `;
mit
bzquan/GherkinEditor
GherkinEditor/ReoGrid/Utility/ZipFileArchive.cs
11276
/***************************************************************************** * * ReoGrid - .NET Spreadsheet Control * * http://reogrid.net/ * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF...
mit
NikiStanchev/SoftUni
AngularFundamentals/Angular2/Redux/node_modules/@angular/cli/commands/serve.js
4602
"use strict"; const denodeify = require('denodeify'); const build_1 = require('./build'); const config_1 = require('../models/config'); const version_1 = require('../upgrade/version'); const SilentError = require('silent-error'); const PortFinder = require('portfinder'); const Command = require('../ember-cli/lib/models...
mit
planbcoin/planbcoin
test/functional/decodescript.py
13471
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The PlanBcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test decoding scripts via decodescript RPC command.""" from test_framework.test_framework import Planbcoi...
mit
sped-br/python-sped
sped/__init__.py
228
# -*- coding: utf-8 -*- from .escrituracao import ECD from .escrituracao import ECF from .escrituracao import EFD_ICMS_IPI from .escrituracao import EFD_PIS_COFINS from .escrituracao import Escrituracao __version__ = '1.0.2'
mit
ShadowLordAlpha/EchoEngine
src/main/java/io/github/cybernetic_shadow/echo/graphics/RawModel.java
335
package io.github.cybernetic_shadow.echo.graphics; public class RawModel { private int vaoID; private int vertexCount; public RawModel(int vaoID, int vertexCount) { this.vaoID = vaoID; this.vertexCount = vertexCount; } public int getVaoID() { return vaoID; } public int getVertexCount() { return ver...
mit
skyarch-networks/skyhopper
db/migrate/20141002020942_relation_projects_cloud_provider.rb
145
class RelationProjectsCloudProvider < ActiveRecord::Migration[4.2] def change add_column :projects, :cloud_provider_id, :integer end end
mit
AvaIre/AvaIre
src/main/java/com/avairebot/Main.java
4840
/* * Copyright (c) 2018. * * This file is part of AvaIre. * * AvaIre is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * AvaI...
mit
risetechnologies/fela
benchmarks/dom-comparison/src/index.js
1747
import App from './app/App' import impl from './impl' import Tree from './cases/Tree' import SierpinskiTriangle from './cases/SierpinskiTriangle' import React from 'react' import ReactDOM from 'react-dom' const implementations = impl const packageNames = Object.keys(implementations) const createTestBlock = fn => { ...
mit
jlenoble/wupjs
src/components/list/proptypes.js
1685
import PropTypes from 'prop-types'; // Schema: {_id: 'string'} // Shape: {_id: PropTypes.string} // Checker: PropTypes.shape(Shape) // Helpers const getChecker = type => { switch (type) { case 'funcs': case 'strings': case 'bools': case 'elements': const cut = type.length - 1; return PropTypes.arra...
mit
chrisvanmook/generator-web-initium
app/src/install.js
963
'use strict'; var wiredep = require('wiredep'), yosay = require('yosay'), fs = require('fs'); module.exports = function (WebInitiumGenerator) { WebInitiumGenerator.prototype.writeFiles = function writeFiles() { // perform a npm install if (!this.options['skip-install']) { this.installDependencies...
mit
noelstieglitz/BreezeCRM
BreezeCRM/Models/OrderSubtotal.cs
228
using System; using System.Collections.Generic; namespace BreezeCRM.Models { public partial class OrderSubtotal { public int OrderID { get; set; } public Nullable<decimal> Subtotal { get; set; } } }
mit
SVGN/BullsAndCows
BullsAndCows/BullsAndCows/GameEngine.cs
6960
//----------------------------------------------------------------------- // <copyright file="GameEngine.cs" company="Team Osmium"> // All rights reserved © Team Osmium 2013 // </copyright> //----------------------------------------------------------------------- namespace BullsAndCows { using System; usi...
mit
dwo/panicbutton
vendor/gems/bundler-1.1.0/lib/bundler/cli.rb
25347
require 'bundler/vendored_thor' require 'rubygems/user_interaction' require 'rubygems/config_file' module Bundler class CLI < Thor include Thor::Actions def initialize(*) super the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell) Bundler.ui = UI::Shell.new(the_shell) Bu...
mit
obsidian-btc/subst-attr
test/bench/replace_attribute_with_its_substitute.rb
675
require_relative 'bench_init' module ReplaceWithSubstitute class SomeDependency def self.configure(receiver) receiver.some_attr = new end module Substitute def self.build :some_substutute end end end class Example extend SubstAttr::Macro subst_attr :some_attr,...
mit
jiaorenyu/learning
python/mylib/hash_util.py
180
#!/usr/bin/python #-*- coding:utf8 -*- import hashlib #16进制md5加密,32个大写字符. def md5(msg): m = hashlib.md5() m.update(msg) return m.hexdigest().upper()
mit
Risersoft/GSTN
GSTN.API.Library/Models/GSTR2/B2bInward.cs
5313
using System; using System.Collections.Generic; using System.Linq; using System.ComponentModel.DataAnnotations; namespace Risersoft.API.GSTN.GSTR2 { public class ItmDet { [Required] [Display(Name = "Identifier if Goods or Services")] [MaxLength(1)] [MinLength(1)] ...
mit
kujotx/angular4-template
src/angular4/node_modules/aspnet-prerendering/Prerendering.js
5472
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /// <reference path="./PrerenderingInterfaces.d.ts" /> var url = require("url"); var domain = require("domain"); var main_1 = require("domain-task/main"); var defaultTimeoutMilliseconds = 30 * 1000; function createServerRenderer(bootFunc) { ...
mit
brideout/gen2
application/views/login.php
7627
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="<?php echo base_url() ?>assets/js/jquery-2.1.1.js"></script> <script src="<?php echo base_url() ?>assets/js/functions.js" type="text/javascript" charset="utf-8"></sc...
mit
DarvinStudio/darvin-utils
Command/Cache/Varnish/ClearCommand.php
1775
<?php declare(strict_types=1); /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2020, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace...
mit
gammaker/atom
gameserver/src/main/java/ru/atom/gameserver/model/GameObject.java
1060
package ru.atom.gameserver.model; import ru.atom.gameserver.geometry.Point; /** * Created by gammaker on 05.03.2017. */ public abstract class GameObject { public final int id; public final GameSession session; // position in 1/1000 of pixels protected Point pos; public GameObject(int x, int y,...
mit
chilieu/bible-trivia
app/cache/_var_www_html_dev.chilieu.me_app_views_layouts_index.volt.php
1900
<!DOCTYPE html> <html lang="en"> <head> <?php $this->partial("shared/header") ?> </head> <body> <div class="container-full"> <img src="/img/biblequizbanner.jpg" class="img-responsive" alt="Responsive image"> </div> <div class="container-fluid"> <div class="row...
mit
clair-design/clair
packages/icons/icons/Move.ts
865
export const Move = ` <svg viewBox="0 0 28 28"> <g fill="none" fill-rule="evenodd"> <path d="M14 2v8.5" stroke="currentColor" stroke-linecap="round"/> <polyline stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" transform="rotate(90 14 3)" points="16 -1 12 3 16 7"/> <polyline stroke="cur...
mit
tom5454/Toms-Mod
src/main/java/com/tom/api/block/BlockContainerTomsMod.java
6211
package com.tom.api.block; import net.minecraft.block.Block; import net.minecraft.block.BlockBed; import net.minecraft.block.BlockContainer; import net.minecraft.block.BlockPistonExtension; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.properties...
mit
skaldengine/skald-engine
src/sk/display/Text.js
490
const pixi = require('pixi.js') const FontStyle = require('sk/core/FontStyle') class Text extends pixi.Text { constructor(text, style) { super(text) this.style = new FontStyle(style) } get style() { return this._style } set style(style) { style = style || {} if (style instanceof pixi.TextStyl...
mit
rkrx/php-streams
src/Kir/Streams/SeekableStream.php
470
<?php namespace Kir\Streams; use Kir\Streams\Exceptions\IOException; interface SeekableStream extends InputStream { /** * @throws IOException * @param int $pos * @return $this */ public function setPosition($pos); /** * @throws IOException * @return int */ public function getPosition(); /** * @...
mit
moviepilot-de/omdb
app/models/votes/user_vote.rb
25
class UserVote < Vote end
mit
i2bskn/restrict_cache
lib/restrict_cache/railtie.rb
590
module RestrictCache class Railtie < ::Rails::Railtie initializer "restrict_cache" do require "restrict_cache/rails_ext/all" ActiveSupport.on_load(:action_controller) do ::ActionController::Base.send( :include, RestrictCache::RailsExt::ActionController) end ActiveSuppor...
mit
ameet007/popin
application/views/admin/contact_request/list.php
21777
<div class="content-page"> <div class="content"> <div class="container"> <!-- BEGIN PAGE BASE CONTENT --> <!--Module Title--> <div class="row"> ...
mit
dwd/acapd
src/include/infotrope/datastore/datastore.hh
5185
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will b...
mit
davetimmins/Anywhere.ArcGIS
src/Anywhere.ArcGIS/Operation/ArcGISServerOperation.cs
1267
using System; using Anywhere.ArcGIS.Common; using System.Runtime.Serialization; namespace Anywhere.ArcGIS.Operation { /// <summary> /// Base class for calls to an ArcGIS Server operation /// </summary> public class ArcGISServerOperation : CommonParameters, IHttpOperation { public ArcGISSer...
mit
cburgmer/rasterizeHTML.js
test/specs/proxies.test.js
6720
describe("XHR Proxies", function () { "use strict"; var originaLPromise; var mockPromisesToResolveSynchronously = function () { window.Promise = testHelper.SynchronousPromise; }; beforeEach(function () { originaLPromise = window.Promise; }); afterEach(function () { ...
mit
slavik57/typescript-playground
src/advancedTypes/unionTypes.ts
775
// The video for this file // https://youtu.be/IpP6xbkojy4 export class Cat { constructor(public name: string, public numberOfLives: number) { } public eat(): void { } } export class Dog { constructor(public name: string, public isBarkingOnNeighbors: boolean) { } public eat(): void { } } export class Perso...
mit
mmkassem/gitlabhq
spec/graphql/types/query_type_spec.rb
1609
# frozen_string_literal: true require 'spec_helper' RSpec.describe GitlabSchema.types['Query'] do it 'is called Query' do expect(described_class.graphql_name).to eq('Query') end it 'has the expected fields' do expected_fields = %i[ project namespace group echo metadata ...
mit
Byron/catchit-rs
src/types.rs
3070
use vecmath::{self, vec2_sub, vec2_len}; pub type Scalar = f64; /// [width, height] pub type Extent = vecmath::Vector2<Scalar>; /// [x, y] pub type Position = vecmath::Vector2<Scalar>; pub type Velocity = vecmath::Vector2<Scalar>; use transition::Transition; /// Points on screen. Usually they correspond to pixels, ...
mit
jumpinjackie/mapguide-react-weblayout
src/containers/selected-feature-count.tsx
675
import * as React from "react"; import { SelectedFeatureCount } from "../components/selected-feature-count"; import { useViewerLocale, useActiveMapSelectionSet } from './hooks'; export interface ISelectedFeatureCountContainerProps { style?: React.CSSProperties; } export const SelectedFeatureCountContainer = (prop...
mit
xizhouhezai/react-app
xizhouhezai/js/component/NavBar.js
1330
import React,{ Component } from 'react'; import { View, StyleSheet, Text, Dimensions } from 'react-native'; import PropTypes from 'prop-types'; const { width,height } = Dimensions.get('window'); export default class NavBar extends Component{ static propTypes = { leftItems: PropTypes.elemen...
mit
talyguryn/kohana
public/src/js/main.js
358
'use strict'; var kohana = {}; kohana.init = function () { 'use strict'; /** Instructions to do on load bundle */ }; /** * Add modules here * kohana.myplugin = require('./myplugin'); */ kohana.ajax = require('./modules/ajax'); kohana.transport = require('./modules/transport'); /** * Export module for...
mit
maehler/seqpoet
seqpoet/tests/test_search.py
2437
from collections import defaultdict import os from nose.tools import raises from nose.plugins.skip import SkipTest from seqpoet.search import search, hamming_distance from seqpoet import Sequence from seqpoet import GenBank from seqpoet.genbank import Location class TestHammingDistance: @raises(ValueError) ...
mit
galpratama/keluhanku-hackathon
application/views/template.php
12076
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Keluhanku | Admin Panel</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, us...
mit
FiB3/pyWebRedis
src/redis.py
3021
"""Wrapper module for REDIS.""" import aioredis import logging ENCODING_UTF = "UTF-8" class RedisAIO(object): """Wrapper class for aioredis.""" def __init__(self, url="localhost", port=6379, password=None): """ Constructor for the RedisAIO. :param url: Url of the server. :t...
mit